<?php

/* default/template/extension/module/xtensions/checkout/xlogin.twig */
class __TwigTemplate_d2df80fbbef4a4cfcb6de244e7c8548a68f638011932e52e94fc91b858ebd150 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "<input type=\"hidden\" name=\"account\" id=\"account\" value=\"";
        echo (isset($context["account"]) ? $context["account"] : null);
        echo "\" />
";
        // line 2
        if ((isset($context["clean_login"]) ? $context["clean_login"] : null)) {
            echo " 
<div id=\"xlogin\" class=\"login-panel-bg\">
<div id=\"loginPage\" class=\"login-section\">
<div id=\"login-tabs\" class=\"tabbable\">
<ul id=\"accountTabs\" class=\"nav nav-tabs\">
<li class=\"login-step";
            // line 7
            echo ((((isset($context["account"]) ? $context["account"] : null) == "login")) ? (" active") : (""));
            echo "\" data-sort=\"";
            echo $this->getAttribute((isset($context["account_sort"]) ? $context["account_sort"] : null), "login", array());
            echo "\">
\t<a data-target=\"#panel-login\" data-toggle=\"tab\" account=\"login\">";
            // line 8
            echo (isset($context["text_login"]) ? $context["text_login"] : null);
            echo "</a>
</li>
<li class=\"register-step";
            // line 10
            echo ((((isset($context["account"]) ? $context["account"] : null) == "register")) ? (" active") : (""));
            echo "\" data-sort=\"";
            echo $this->getAttribute((isset($context["account_sort"]) ? $context["account_sort"] : null), "register", array());
            echo "\">
\t<a data-target=\"#panel-register\" data-toggle=\"tab\" account=\"register\">";
            // line 11
            echo (isset($context["text_register"]) ? $context["text_register"] : null);
            echo "</a>
</li>
";
            // line 13
            if ((isset($context["checkout_guest"]) ? $context["checkout_guest"] : null)) {
                echo " 
<li class=\"guest-step";
                // line 14
                echo ((((isset($context["account"]) ? $context["account"] : null) == "guest")) ? (" active") : (""));
                echo "\" data-sort=\"";
                echo $this->getAttribute((isset($context["account_sort"]) ? $context["account_sort"] : null), "guest", array());
                echo "\">
\t<a data-target=\"#panel-register\" data-toggle=\"tab\" account=\"guest\">";
                // line 15
                echo (isset($context["text_guest"]) ? $context["text_guest"] : null);
                echo "</a>
</li>
";
            }
            // line 18
            echo "</ul>
</div>
";
            // line 20
            echo (isset($context["xsocial"]) ? $context["xsocial"] : null);
            echo " 
<div class=\"tab-content\">
<div class=\"tab-pane ";
            // line 22
            echo ((((isset($context["account"]) ? $context["account"] : null) == "login")) ? ("active") : (""));
            echo "\" id=\"panel-login\"> 
            <div class=\"row\">
              <div class=\"col-md-12\">
              <form role=\"form\" id=\"form_login\" action=\"#\" autocomplete=\"off\" method=\"post\" novalidate enctype=\"multipart/form-data\">              
               <div id=\"xlogin-panel\">
               ";
            // line 27
            if ( !(isset($context["xsocial"]) ? $context["xsocial"] : null)) {
                echo " 
               <div class=\"section-heading\">";
                // line 28
                echo (isset($context["text_login_heading"]) ? $context["text_login_heading"] : null);
                echo "</div>
               ";
            }
            // line 29
            echo " 
               <div class=\"group is_first\">                    
                    <input type=\"text\" name=\"email\" class=\"inputMaterial\">
                    <label for=\"email\">";
            // line 32
            echo (isset($context["entry_email"]) ? $context["entry_email"] : null);
            echo "</label>
                  </div>                 
                    <div class=\"group\">
                      ";
            // line 35
            if (twig_constant("false")) {
                echo " 
\t\t\t\t\t  ";
                // line 36
                echo " 
\t\t\t\t\t  <input name=\"password\" style=\"display: none;\" type=\"password\" />
\t\t\t\t\t  ";
            }
            // line 38
            echo "                      
                      <input type=\"password\" name=\"password\" class=\"inputMaterial\">
                      <label>";
            // line 40
            echo (isset($context["entry_password"]) ? $context["entry_password"] : null);
            echo "</label>                      
                    </div>
                    <input type=\"hidden\" name=\"account\" id=\"account_login\" class=\"account_form\" value=\"";
            // line 42
            echo (isset($context["account"]) ? $context["account"] : null);
            echo "\" />                              
                    <div class=\"buttons\">
         \t\t\t\t<input type=\"submit\" value=\"";
            // line 44
            echo (isset($context["button_continue"]) ? $context["button_continue"] : null);
            echo "\" account=\"login\" id=\"button-login\" data-loading-text=\"Loading...\" class=\"btn btn-success width100\" />
       \t\t\t\t</div>
       \t\t\t\t</div>     \t\t\t\t       
       \t\t\t\t</form>                     
              </div>
            </div>  
             <div class=\"footer-separator\"><span class=\"pull-left\"> <a href=\"";
            // line 50
            echo (isset($context["forgotten"]) ? $context["forgotten"] : null);
            echo "\">";
            echo (isset($context["text_forgotten"]) ? $context["text_forgotten"] : null);
            echo "</a> </span>
\t\t\t\t<span class=\"pull-right\"> <a class=\"pointer\" onclick=\"\$('#accountTabs.nav-tabs li.register-step a').click();\">";
            // line 51
            echo (isset($context["text_account_new"]) ? $context["text_account_new"] : null);
            echo "</a>
\t\t\t</span>
\t\t\t</div>  
\t\t\t<div class=\"clearfix\"></div>
</div>
<div class=\"tab-pane ";
            // line 56
            echo ((((isset($context["account"]) ? $context["account"] : null) != "login")) ? ("active") : (""));
            echo "\" id=\"panel-register\">             
<div id=\"xregister-panel\">
            <div class=\"row\" id=\"tab-register\">
              <div class=\"col-md-12\" >  
              <form role=\"form\" id=\"form_register\" autocomplete=\"off\"  action=\"#\" novalidate method=\"post\" enctype=\"multipart/form-data\">
              <div class=\"section-heading hide_register\">";
            // line 61
            echo (isset($context["text_guest_checkout"]) ? $context["text_guest_checkout"] : null);
            echo "</div>
              ";
            // line 62
            if ( !(isset($context["xsocial"]) ? $context["xsocial"] : null)) {
                echo " 
              <div class=\"section-heading hide_guest\">";
                // line 63
                echo (isset($context["text_account_new"]) ? $context["text_account_new"] : null);
                echo "</div>
              ";
            }
            // line 64
            echo " 
              <input type=\"hidden\" name=\"account\" id=\"account_register\" class=\"account_form\" value=\"";
            // line 65
            echo (isset($context["account"]) ? $context["account"] : null);
            echo "\" />
              ";
            // line 66
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["fields"]) ? $context["fields"] : null), "checkout", array()));
            foreach ($context['_seq'] as $context["_key"] => $context["html"]) {
                echo " 
          \t\t";
                // line 67
                echo $context["html"];
                echo " 
          \t  ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['html'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 68
            echo "   
          \t  ";
            // line 69
            if ((isset($context["display_newsletter"]) ? $context["display_newsletter"] : null)) {
                echo " 
                  <div class=\"form-group hide_guest\">
                      <div class=\"checkbox is_checkbox\">
\t\t\t\t\t  \t<label for=\"newsletter\"><input type=\"checkbox\" class=\"input-checkbox\" name=\"newsletter\" value=\"1\" id=\"newsletter\" checked=\"checked\">";
                // line 72
                echo (isset($context["entry_newsletter"]) ? $context["entry_newsletter"] : null);
                echo "</label>
\t\t\t\t\t  </div>
                  </div>
               ";
            }
            // line 75
            echo "  
               ";
            // line 76
            if ((isset($context["text_agree"]) ? $context["text_agree"] : null)) {
                echo " 
                  <div id=\"xagreep\" class=\"form-group hide_guest\">
                      <div class=\"checkbox is_checkbox\">
\t\t\t\t\t  \t<label id=\"xagree\" for=\"agree\"><input type=\"checkbox\" class=\"input-checkbox\" name=\"agree\" value=\"1\" id=\"agree\">";
                // line 79
                echo (isset($context["text_agree"]) ? $context["text_agree"] : null);
                echo "</label>
\t\t\t\t\t  </div>
                  </div>
                ";
            }
            // line 82
            echo " 
                ";
            // line 83
            if ((isset($context["captcha"]) ? $context["captcha"] : null)) {
                echo " 
               \t<div class=\"group ";
                // line 84
                echo (((isset($context["register_captcha"]) ? $context["register_captcha"] : null)) ? ("") : ("hide_register"));
                echo " ";
                echo ((((isset($context["checkout_guest"]) ? $context["checkout_guest"] : null) && (isset($context["guest_captcha"]) ? $context["guest_captcha"] : null))) ? ("") : ("hide_guest"));
                echo "\">
\t\t\t  \t\t";
                // line 85
                echo (isset($context["captcha"]) ? $context["captcha"] : null);
                echo " 
\t\t\t  \t</div>
\t\t\t  \t";
            }
            // line 87
            echo " 
                <div class=\"buttons\">
         \t\t   <input type=\"submit\" value=\"";
            // line 89
            echo (isset($context["button_continue"]) ? $context["button_continue"] : null);
            echo "\" id=\"button-register\" account=\"register\" data-loading-text=\"Loading...\" class=\"btn btn-success width100\" />
       \t\t\t</div>
              </form>
              </div>
            </div> 
             <div class=\"separator\"></div>
             <div class=\"text-center\">  
             <label class=\"text-separator\">";
            // line 96
            echo (isset($context["text_account_already_checkout"]) ? $context["text_account_already_checkout"] : null);
            echo "</label>
             <a onclick=\"\$('#accountTabs.nav-tabs li.login-step a').click();\" class=\"btn btn btn-success width100\" >";
            // line 97
            echo (isset($context["text_login"]) ? $context["text_login"] : null);
            echo "</a>                                   
             </div>
             </div>
             </div>
</div>              
\t\t\t             
</div>
</div>
";
        } else {
            // line 105
            echo " 
<div id=\"loginPage\" class=\"container animated zoomIn\">
  <div class=\"row equal\">
    <div class=\"col-md-9\">
    <ul class=\"row hidden nav nav-pills nav-wizard hidden-xs\">
        \t<li class=\"active\"><a>";
            // line 110
            echo (isset($context["text_checkout_step_1"]) ? $context["text_checkout_step_1"] : null);
            echo "</a><div class=\"nav-arrow\"></div></li>
        \t<li class=\"locked\"><div class=\"nav-wedge\"></div><a>";
            // line 111
            echo (isset($context["text_checkout_step_2"]) ? $context["text_checkout_step_2"] : null);
            echo "<i class=\"fa fa-lock\"></i></a><div class=\"nav-arrow\"></div></li>
        \t<li class=\"locked\"><div class=\"nav-wedge\"></div><a>";
            // line 112
            echo (isset($context["text_checkout_step_3"]) ? $context["text_checkout_step_3"] : null);
            echo "<i class=\"fa fa-lock\"></i></a></li>
    \t</ul>
    <div class=\"row\">
      <div class=\"col-md-3 nopadding\">
      <div class=\"pside-bar\">        
        <nav id=\"login-tabs\" class=\"nav-sidebar\">
          <ul id=\"accountTabs\" class=\"nav nav-tabs tabs-left\">
            <li ";
            // line 119
            if (((isset($context["account"]) ? $context["account"] : null) == "login")) {
                echo " ";
                echo "class=\"active\"";
            }
            echo " data-sort=\"";
            echo $this->getAttribute((isset($context["account_sort"]) ? $context["account_sort"] : null), "login", array());
            echo "\">
              <a data-target=\"#tab-login\" data-toggle=\"tab\" account=\"login\">
                <span>";
            // line 121
            echo (isset($context["text_login"]) ? $context["text_login"] : null);
            echo "</span>
              </a>
            </li>
            <li ";
            // line 124
            if (((isset($context["account"]) ? $context["account"] : null) == "register")) {
                echo " ";
                echo "class=\"active\"";
            }
            echo " data-sort=\"";
            echo $this->getAttribute((isset($context["account_sort"]) ? $context["account_sort"] : null), "register", array());
            echo "\">
              <a data-target=\"#tab-register\" data-toggle=\"tab\" account=\"register\">
                <span>";
            // line 126
            echo (isset($context["text_register"]) ? $context["text_register"] : null);
            echo "</span>
              </a>
            </li>
            ";
            // line 129
            if ((isset($context["checkout_guest"]) ? $context["checkout_guest"] : null)) {
                echo "             
            <li ";
                // line 130
                if (((isset($context["account"]) ? $context["account"] : null) == "guest")) {
                    echo " ";
                    echo "class=\"active\"";
                }
                echo " data-sort=\"";
                echo $this->getAttribute((isset($context["account_sort"]) ? $context["account_sort"] : null), "guest", array());
                echo "\">
              <a data-target=\"#tab-register\" data-toggle=\"tab\" account=\"guest\">
                <span>";
                // line 132
                echo (isset($context["text_guest"]) ? $context["text_guest"] : null);
                echo "</span>
              </a>
            </li>
           ";
            }
            // line 135
            echo " 
          </ul>
        </nav>
      </div>
      </div>
      <!--col-md-3 ends-->
      <div class=\"col-md-9\">
      ";
            // line 142
            echo (isset($context["xsocial"]) ? $context["xsocial"] : null);
            echo " 
        <div class=\"tab-content\">
          <div class=\"tab-pane ";
            // line 144
            if (((isset($context["account"]) ? $context["account"] : null) == "login")) {
                echo " ";
                echo "active";
            }
            echo "  text-style\" id=\"tab-login\">
             
            <div class=\"row\">
              ";
            // line 147
            if ( !(isset($context["xsocial"]) ? $context["xsocial"] : null)) {
                echo " 
              <div class=\"section-heading\">";
                // line 148
                echo (isset($context["text_login_heading"]) ? $context["text_login_heading"] : null);
                echo "</div>
              ";
            }
            // line 149
            echo " 
              <div class=\"col-md-12\">
              <form role=\"form\" id=\"form_login\" action=\"#\" autocomplete=\"off\" method=\"post\" novalidate enctype=\"multipart/form-data\">              
               <div id=\"xlogin-panel\">
               <div class=\"group is_first\">                    
                    <input type=\"text\" name=\"email\" class=\"inputMaterial\">
                    <label for=\"email\">";
            // line 155
            echo (isset($context["entry_email"]) ? $context["entry_email"] : null);
            echo "</label>
                  </div>                 
                    <div class=\"group\">
                      ";
            // line 158
            if (twig_constant("false")) {
                echo " 
\t\t\t\t\t  ";
                // line 159
                echo " 
\t\t\t\t\t  <input name=\"password\" style=\"display: none;\" type=\"password\" />
\t\t\t\t\t  ";
            }
            // line 161
            echo " 
                      <input type=\"password\" name=\"password\" class=\"inputMaterial\">
                      <label>";
            // line 163
            echo (isset($context["entry_password"]) ? $context["entry_password"] : null);
            echo "</label>
                      <a href=\"";
            // line 164
            echo (isset($context["forgotten"]) ? $context["forgotten"] : null);
            echo "\">";
            echo (isset($context["text_forgotten"]) ? $context["text_forgotten"] : null);
            echo "</a>
                    </div>
                    <input type=\"hidden\" name=\"account\" id=\"account_login\" class=\"account_form\" value=\"";
            // line 166
            echo (isset($context["account"]) ? $context["account"] : null);
            echo "\" />                              
                    <div class=\"buttons\">
         \t\t\t\t<input type=\"submit\" value=\"";
            // line 168
            echo (isset($context["button_continue"]) ? $context["button_continue"] : null);
            echo "\" account=\"login\" id=\"button-login\" data-loading-text=\"Loading...\" class=\"btn btn-success width100\" />
       \t\t\t\t</div>
       \t\t\t\t</div>     \t\t\t\t       
       \t\t\t\t</form>                     
              </div>
            </div>
          </div>
          <div class=\"tab-pane ";
            // line 175
            echo ((twig_in_filter((isset($context["account"]) ? $context["account"] : null), array(0 => "register", 1 => "guest"))) ? ("active") : (""));
            echo " text-style\" id=\"tab-register\">
            <div class=\"row\">
              <div class=\"col-md-12\" >  
              <form role=\"form\" id=\"form_register\" autocomplete=\"off\"  action=\"#\" novalidate method=\"post\" enctype=\"multipart/form-data\">
              <div class=\"section-heading hide_register\">";
            // line 179
            echo (isset($context["text_guest_checkout"]) ? $context["text_guest_checkout"] : null);
            echo "</div>
              ";
            // line 180
            if ( !(isset($context["xsocial"]) ? $context["xsocial"] : null)) {
                echo " 
              <div class=\"section-heading hide_guest\">";
                // line 181
                echo (isset($context["text_account_new"]) ? $context["text_account_new"] : null);
                echo "</div>
              ";
            }
            // line 182
            echo " 
              <input type=\"hidden\" name=\"account\" id=\"account_register\" class=\"account_form\" value=\"";
            // line 183
            echo (isset($context["account"]) ? $context["account"] : null);
            echo "\" />
              ";
            // line 184
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["fields"]) ? $context["fields"] : null), "checkout", array()));
            foreach ($context['_seq'] as $context["_key"] => $context["html"]) {
                echo " 
          \t\t";
                // line 185
                echo $context["html"];
                echo " 
          \t  ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['html'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 186
            echo "   
          \t  ";
            // line 187
            if ((isset($context["display_newsletter"]) ? $context["display_newsletter"] : null)) {
                echo " 
                  <div class=\"form-group hide_guest\">
                      <div class=\"checkbox is_checkbox\">
\t\t\t\t\t  \t<label for=\"newsletter\"><input type=\"checkbox\" class=\"input-checkbox\" name=\"newsletter\" value=\"1\" id=\"newsletter\" checked=\"checked\">";
                // line 190
                echo (isset($context["entry_newsletter"]) ? $context["entry_newsletter"] : null);
                echo "</label>
\t\t\t\t\t  </div>
                  </div>
               ";
            }
            // line 193
            echo "   
               ";
            // line 194
            if ((isset($context["text_agree"]) ? $context["text_agree"] : null)) {
                echo " 
                  <div id=\"xagreep\" class=\"form-group hide_guest\">
                      <div class=\"checkbox is_checkbox\">
\t\t\t\t\t  \t<label id=\"xagree\" for=\"agree\"><input type=\"checkbox\" class=\"input-checkbox\" name=\"agree\" value=\"1\" id=\"agree\">";
                // line 197
                echo (isset($context["text_agree"]) ? $context["text_agree"] : null);
                echo "</label>
\t\t\t\t\t  </div>
                  </div>
\t\t\t  ";
            }
            // line 200
            echo " 
\t\t\t  ";
            // line 201
            if ((isset($context["captcha"]) ? $context["captcha"] : null)) {
                echo " 
\t\t\t  <div class=\"group ";
                // line 202
                echo (((isset($context["register_captcha"]) ? $context["register_captcha"] : null)) ? ("") : ("hide_register"));
                echo " ";
                echo ((((isset($context["checkout_guest"]) ? $context["checkout_guest"] : null) && (isset($context["guest_captcha"]) ? $context["guest_captcha"] : null))) ? ("") : ("hide_guest"));
                echo "\">
\t\t\t  ";
                // line 203
                echo (isset($context["captcha"]) ? $context["captcha"] : null);
                echo " 
\t\t\t  </div>                
\t\t\t  ";
            }
            // line 205
            echo " 
              <div class=\"buttons\">
         \t\t<input type=\"submit\" value=\"";
            // line 207
            echo (isset($context["button_continue"]) ? $context["button_continue"] : null);
            echo "\" id=\"button-register\" account=\"register\" data-loading-text=\"Loading...\" class=\"btn btn-success width100\" />
       \t\t  </div>
              </form>
              </div>
            </div>
          </div>
        </div>
      </div>
      </div>
    </div>
  <div class=\"col-md-3 lborder\">
  <div id=\"xcart\" class=\"animated1 zoomIn1\">";
            // line 218
            echo (isset($context["xcart"]) ? $context["xcart"] : null);
            echo "</div>
  <div id=\"options\" class=\"animated fadeIn\">";
            // line 219
            echo (isset($context["xoptions"]) ? $context["xoptions"] : null);
            echo "<div class=\"clearfix\"></div></div>
  <div id=\"totals\" class=\"animated fadeIn\">";
            // line 220
            echo (isset($context["xtotals"]) ? $context["xtotals"] : null);
            echo "</div>
  </div>
  </div>
</div>
";
        }
        // line 224
        echo " 
";
        // line 225
        if ((isset($context["mask"]) ? $context["mask"] : null)) {
            echo " 
<script type=\"text/javascript\" src=\"catalog/view/javascript/xtensions/stylesheet/bs/js/jquery.maskedinput.min.js\"></script>
<script type=\"text/javascript\">
jQuery(function(\$){
";
            // line 229
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["mask"]) ? $context["mask"] : null));
            foreach ($context['_seq'] as $context["key"] => $context["value"]) {
                echo "\t      
\$(\"#form_register #";
                // line 230
                echo $context["key"];
                echo "\").mask(\"";
                echo $context["value"];
                echo "\");\t      
";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 232
            echo "});
</script>
";
        }
        // line 234
        echo " 
<script type=\"text/javascript\" src=\"catalog/view/javascript/xtensions/stylesheet/bs/js/xcustom.js\"></script>  
<script type=\"text/javascript\">
\$(document).ready(function(){
\t\$(\"#accountTabs\").append(\$(\"#accountTabs li\").get().sort(function(a, b) {
    return parseInt(\$(a).attr(\"data-sort\").match(/\\d+/), 10)
         - parseInt(\$(b).attr(\"data-sort\").match(/\\d+/), 10);
\t}));
});
\$('#tab-register input[name=\\'customer_group_id\\']').on('change', function() {
\t\$.ajax({
\t\turl: 'index.php?route=";
        // line 245
        echo (isset($context["xtensions_controller_path"]) ? $context["xtensions_controller_path"] : null);
        echo "checkout/customfield&customer_group_id=' + this.value,
\t\tdataType: 'json',
\t\tsuccess: function(json) {
\t\t\t\$('#tab-register .custom-field').hide();
\t\t\t\$('#tab-register .custom-field label span.fieldlabel').removeClass('required');\t\t\t
\t\t\tfor (i = 0; i < json.length; i++) {
\t\t\t\tcustom_field = json[i];
\t\t\t\t\$('#tab-register  #custom-field' + custom_field.custom_field_id).show();
\t\t\t\tif (custom_field.required) {\t\t\t\t\t
\t\t\t\t\t\$('#tab-register #custom-field' + custom_field.custom_field_id + ' label > span.fieldlabel').addClass('required');
\t\t\t\t}
\t\t\t}
\t\t},
\t\terror: function(xhr, ajaxOptions, thrownError) {
\t\t\talert(thrownError + \"\\r\\n\" + xhr.statusText + \"\\r\\n\" + xhr.responseText);
\t\t}
\t});
});
\$('#tab-register input[name=\\'customer_group_id\\']:checked').trigger('change');
</script>
<script type=\"text/javascript\">
\$('[data-toggle=\"tooltip\"]').tooltip();
\$(document).on(\"click\", \"#login-tabs [data-toggle='tab']\", function(event) {        
     \$('.account_form').val(\$(this).attr('account'));
     \$('#account').val(\$(this).attr('account'));  
     hide_guest();       
});
\$(function () {
\t  \$('[data-toggle=\"tooltip\"]').tooltip();
})
function hide_guest(){
\tif(\$('#account').val() == 'guest'){
\t\t\$('.hide_guest').hide();
\t\t\$('.hide_register').show();
\t\t\$('.hide_guest').each(function( index ) {
\t\t\tif (\$(this).parent().hasClass('group-left') || \$(this).parent().hasClass('group-middle') || \$(this).parent().hasClass('group-right')) {
\t\t\t\t\$(this).parent().hide();
\t\t\t}
\t\t});\t\t
\t}else{
\t\t\$('.hide_guest').show();
\t\t\$('.hide_register').hide();
\t\t\$('.hide_guest').each(function( index ) {
\t\t\tif (\$(this).parent().hasClass('group-left') || \$(this).parent().hasClass('group-middle') || \$(this).parent().hasClass('group-right')) {
\t\t\t\t\$(this).parent().show();
\t\t\t}
\t\t});\t\t
\t}
}
hide_guest();
</script>
<script type=\"text/javascript\">
\$('.date').datetimepicker({
\tlanguage: '";
        // line 298
        echo (isset($context["datepicker"]) ? $context["datepicker"] : null);
        echo "',
\tpickTime: false
});
\$('.time').datetimepicker({
\tlanguage: '";
        // line 302
        echo (isset($context["datepicker"]) ? $context["datepicker"] : null);
        echo "',
\tpickDate: false
});
\$('.datetime').datetimepicker({
\tlanguage: '";
        // line 306
        echo (isset($context["datepicker"]) ? $context["datepicker"] : null);
        echo "',
\tpickDate: true,
\tpickTime: true
});
</script>";
    }

    public function getTemplateName()
    {
        return "default/template/extension/module/xtensions/checkout/xlogin.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  679 => 306,  672 => 302,  665 => 298,  609 => 245,  596 => 234,  591 => 232,  581 => 230,  575 => 229,  568 => 225,  565 => 224,  557 => 220,  553 => 219,  549 => 218,  535 => 207,  531 => 205,  525 => 203,  519 => 202,  515 => 201,  512 => 200,  505 => 197,  499 => 194,  496 => 193,  489 => 190,  483 => 187,  480 => 186,  472 => 185,  466 => 184,  462 => 183,  459 => 182,  454 => 181,  450 => 180,  446 => 179,  439 => 175,  429 => 168,  424 => 166,  417 => 164,  413 => 163,  409 => 161,  404 => 159,  400 => 158,  394 => 155,  386 => 149,  381 => 148,  377 => 147,  368 => 144,  363 => 142,  354 => 135,  347 => 132,  337 => 130,  333 => 129,  327 => 126,  317 => 124,  311 => 121,  301 => 119,  291 => 112,  287 => 111,  283 => 110,  276 => 105,  264 => 97,  260 => 96,  250 => 89,  246 => 87,  240 => 85,  234 => 84,  230 => 83,  227 => 82,  220 => 79,  214 => 76,  211 => 75,  204 => 72,  198 => 69,  195 => 68,  187 => 67,  181 => 66,  177 => 65,  174 => 64,  169 => 63,  165 => 62,  161 => 61,  153 => 56,  145 => 51,  139 => 50,  130 => 44,  125 => 42,  120 => 40,  116 => 38,  111 => 36,  107 => 35,  101 => 32,  96 => 29,  91 => 28,  87 => 27,  79 => 22,  74 => 20,  70 => 18,  64 => 15,  58 => 14,  54 => 13,  49 => 11,  43 => 10,  38 => 8,  32 => 7,  24 => 2,  19 => 1,);
    }
}
/* <input type="hidden" name="account" id="account" value="{{ account }}" />*/
/* {% if clean_login  %} */
/* <div id="xlogin" class="login-panel-bg">*/
/* <div id="loginPage" class="login-section">*/
/* <div id="login-tabs" class="tabbable">*/
/* <ul id="accountTabs" class="nav nav-tabs">*/
/* <li class="login-step{{ account == 'login'?' active':'' }}" data-sort="{{ account_sort.login }}">*/
/* 	<a data-target="#panel-login" data-toggle="tab" account="login">{{ text_login }}</a>*/
/* </li>*/
/* <li class="register-step{{ account == 'register'?' active':'' }}" data-sort="{{ account_sort.register }}">*/
/* 	<a data-target="#panel-register" data-toggle="tab" account="register">{{ text_register }}</a>*/
/* </li>*/
/* {% if   checkout_guest  %} */
/* <li class="guest-step{{ account == 'guest'?' active':'' }}" data-sort="{{ account_sort.guest }}">*/
/* 	<a data-target="#panel-register" data-toggle="tab" account="guest">{{ text_guest }}</a>*/
/* </li>*/
/* {% endif %}*/
/* </ul>*/
/* </div>*/
/* {{ xsocial }} */
/* <div class="tab-content">*/
/* <div class="tab-pane {{ account == 'login'?'active':'' }}" id="panel-login"> */
/*             <div class="row">*/
/*               <div class="col-md-12">*/
/*               <form role="form" id="form_login" action="#" autocomplete="off" method="post" novalidate enctype="multipart/form-data">              */
/*                <div id="xlogin-panel">*/
/*                {% if   not xsocial  %} */
/*                <div class="section-heading">{{ text_login_heading }}</div>*/
/*                {% endif %} */
/*                <div class="group is_first">                    */
/*                     <input type="text" name="email" class="inputMaterial">*/
/*                     <label for="email">{{ entry_email }}</label>*/
/*                   </div>                 */
/*                     <div class="group">*/
/*                       {% if   constant('false')  %} */
/* 					  {# this was supposed to be a fix to disable autofill in chrome and other browsers that ignore automplete #} */
/* 					  <input name="password" style="display: none;" type="password" />*/
/* 					  {% endif %}                      */
/*                       <input type="password" name="password" class="inputMaterial">*/
/*                       <label>{{ entry_password }}</label>                      */
/*                     </div>*/
/*                     <input type="hidden" name="account" id="account_login" class="account_form" value="{{ account }}" />                              */
/*                     <div class="buttons">*/
/*          				<input type="submit" value="{{ button_continue }}" account="login" id="button-login" data-loading-text="Loading..." class="btn btn-success width100" />*/
/*        				</div>*/
/*        				</div>     				       */
/*        				</form>                     */
/*               </div>*/
/*             </div>  */
/*              <div class="footer-separator"><span class="pull-left"> <a href="{{ forgotten }}">{{ text_forgotten }}</a> </span>*/
/* 				<span class="pull-right"> <a class="pointer" onclick="$('#accountTabs.nav-tabs li.register-step a').click();">{{ text_account_new }}</a>*/
/* 			</span>*/
/* 			</div>  */
/* 			<div class="clearfix"></div>*/
/* </div>*/
/* <div class="tab-pane {{ account != 'login'?'active':'' }}" id="panel-register">             */
/* <div id="xregister-panel">*/
/*             <div class="row" id="tab-register">*/
/*               <div class="col-md-12" >  */
/*               <form role="form" id="form_register" autocomplete="off"  action="#" novalidate method="post" enctype="multipart/form-data">*/
/*               <div class="section-heading hide_register">{{ text_guest_checkout }}</div>*/
/*               {% if   not xsocial  %} */
/*               <div class="section-heading hide_guest">{{ text_account_new }}</div>*/
/*               {% endif %} */
/*               <input type="hidden" name="account" id="account_register" class="account_form" value="{{ account }}" />*/
/*               {% for html in fields.checkout %} */
/*           		{{ html }} */
/*           	  {% endfor %}   */
/*           	  {% if   display_newsletter  %} */
/*                   <div class="form-group hide_guest">*/
/*                       <div class="checkbox is_checkbox">*/
/* 					  	<label for="newsletter"><input type="checkbox" class="input-checkbox" name="newsletter" value="1" id="newsletter" checked="checked">{{ entry_newsletter }}</label>*/
/* 					  </div>*/
/*                   </div>*/
/*                {% endif %}  */
/*                {% if   text_agree  %} */
/*                   <div id="xagreep" class="form-group hide_guest">*/
/*                       <div class="checkbox is_checkbox">*/
/* 					  	<label id="xagree" for="agree"><input type="checkbox" class="input-checkbox" name="agree" value="1" id="agree">{{ text_agree }}</label>*/
/* 					  </div>*/
/*                   </div>*/
/*                 {% endif %} */
/*                 {% if   captcha  %} */
/*                	<div class="group {{ register_captcha?'':'hide_register' }} {{ checkout_guest and guest_captcha?'':'hide_guest' }}">*/
/* 			  		{{ captcha }} */
/* 			  	</div>*/
/* 			  	{% endif %} */
/*                 <div class="buttons">*/
/*          		   <input type="submit" value="{{ button_continue }}" id="button-register" account="register" data-loading-text="Loading..." class="btn btn-success width100" />*/
/*        			</div>*/
/*               </form>*/
/*               </div>*/
/*             </div> */
/*              <div class="separator"></div>*/
/*              <div class="text-center">  */
/*              <label class="text-separator">{{ text_account_already_checkout }}</label>*/
/*              <a onclick="$('#accountTabs.nav-tabs li.login-step a').click();" class="btn btn btn-success width100" >{{ text_login }}</a>                                   */
/*              </div>*/
/*              </div>*/
/*              </div>*/
/* </div>              */
/* 			             */
/* </div>*/
/* </div>*/
/* {% else %} */
/* <div id="loginPage" class="container animated zoomIn">*/
/*   <div class="row equal">*/
/*     <div class="col-md-9">*/
/*     <ul class="row hidden nav nav-pills nav-wizard hidden-xs">*/
/*         	<li class="active"><a>{{ text_checkout_step_1 }}</a><div class="nav-arrow"></div></li>*/
/*         	<li class="locked"><div class="nav-wedge"></div><a>{{ text_checkout_step_2 }}<i class="fa fa-lock"></i></a><div class="nav-arrow"></div></li>*/
/*         	<li class="locked"><div class="nav-wedge"></div><a>{{ text_checkout_step_3 }}<i class="fa fa-lock"></i></a></li>*/
/*     	</ul>*/
/*     <div class="row">*/
/*       <div class="col-md-3 nopadding">*/
/*       <div class="pside-bar">        */
/*         <nav id="login-tabs" class="nav-sidebar">*/
/*           <ul id="accountTabs" class="nav nav-tabs tabs-left">*/
/*             <li {% if   account == 'login'  %} {{ 'class="active"' }}{% endif %} data-sort="{{ account_sort.login }}">*/
/*               <a data-target="#tab-login" data-toggle="tab" account="login">*/
/*                 <span>{{ text_login }}</span>*/
/*               </a>*/
/*             </li>*/
/*             <li {% if   account == 'register'  %} {{ 'class="active"' }}{% endif %} data-sort="{{ account_sort.register }}">*/
/*               <a data-target="#tab-register" data-toggle="tab" account="register">*/
/*                 <span>{{ text_register }}</span>*/
/*               </a>*/
/*             </li>*/
/*             {% if   checkout_guest  %}             */
/*             <li {% if   account == 'guest'  %} {{ 'class="active"' }}{% endif %} data-sort="{{ account_sort.guest }}">*/
/*               <a data-target="#tab-register" data-toggle="tab" account="guest">*/
/*                 <span>{{ text_guest }}</span>*/
/*               </a>*/
/*             </li>*/
/*            {% endif %} */
/*           </ul>*/
/*         </nav>*/
/*       </div>*/
/*       </div>*/
/*       <!--col-md-3 ends-->*/
/*       <div class="col-md-9">*/
/*       {{ xsocial }} */
/*         <div class="tab-content">*/
/*           <div class="tab-pane {% if   account == 'login'  %} {{ 'active' }}{% endif %}  text-style" id="tab-login">*/
/*              */
/*             <div class="row">*/
/*               {% if   not xsocial  %} */
/*               <div class="section-heading">{{ text_login_heading }}</div>*/
/*               {% endif %} */
/*               <div class="col-md-12">*/
/*               <form role="form" id="form_login" action="#" autocomplete="off" method="post" novalidate enctype="multipart/form-data">              */
/*                <div id="xlogin-panel">*/
/*                <div class="group is_first">                    */
/*                     <input type="text" name="email" class="inputMaterial">*/
/*                     <label for="email">{{ entry_email }}</label>*/
/*                   </div>                 */
/*                     <div class="group">*/
/*                       {% if   constant('false')  %} */
/* 					  {# this was supposed to be a fix to disable autofill in chrome and other browsers that ignore automplete #} */
/* 					  <input name="password" style="display: none;" type="password" />*/
/* 					  {% endif %} */
/*                       <input type="password" name="password" class="inputMaterial">*/
/*                       <label>{{ entry_password }}</label>*/
/*                       <a href="{{ forgotten }}">{{ text_forgotten }}</a>*/
/*                     </div>*/
/*                     <input type="hidden" name="account" id="account_login" class="account_form" value="{{ account }}" />                              */
/*                     <div class="buttons">*/
/*          				<input type="submit" value="{{ button_continue }}" account="login" id="button-login" data-loading-text="Loading..." class="btn btn-success width100" />*/
/*        				</div>*/
/*        				</div>     				       */
/*        				</form>                     */
/*               </div>*/
/*             </div>*/
/*           </div>*/
/*           <div class="tab-pane {{ account in ['register','guest']?'active':'' }} text-style" id="tab-register">*/
/*             <div class="row">*/
/*               <div class="col-md-12" >  */
/*               <form role="form" id="form_register" autocomplete="off"  action="#" novalidate method="post" enctype="multipart/form-data">*/
/*               <div class="section-heading hide_register">{{ text_guest_checkout }}</div>*/
/*               {% if   not xsocial  %} */
/*               <div class="section-heading hide_guest">{{ text_account_new }}</div>*/
/*               {% endif %} */
/*               <input type="hidden" name="account" id="account_register" class="account_form" value="{{ account }}" />*/
/*               {% for html in fields.checkout %} */
/*           		{{ html }} */
/*           	  {% endfor %}   */
/*           	  {% if   display_newsletter  %} */
/*                   <div class="form-group hide_guest">*/
/*                       <div class="checkbox is_checkbox">*/
/* 					  	<label for="newsletter"><input type="checkbox" class="input-checkbox" name="newsletter" value="1" id="newsletter" checked="checked">{{ entry_newsletter }}</label>*/
/* 					  </div>*/
/*                   </div>*/
/*                {% endif %}   */
/*                {% if   text_agree  %} */
/*                   <div id="xagreep" class="form-group hide_guest">*/
/*                       <div class="checkbox is_checkbox">*/
/* 					  	<label id="xagree" for="agree"><input type="checkbox" class="input-checkbox" name="agree" value="1" id="agree">{{ text_agree }}</label>*/
/* 					  </div>*/
/*                   </div>*/
/* 			  {% endif %} */
/* 			  {% if   captcha  %} */
/* 			  <div class="group {{ register_captcha?'':'hide_register' }} {{ checkout_guest and guest_captcha?'':'hide_guest' }}">*/
/* 			  {{ captcha }} */
/* 			  </div>                */
/* 			  {% endif %} */
/*               <div class="buttons">*/
/*          		<input type="submit" value="{{ button_continue }}" id="button-register" account="register" data-loading-text="Loading..." class="btn btn-success width100" />*/
/*        		  </div>*/
/*               </form>*/
/*               </div>*/
/*             </div>*/
/*           </div>*/
/*         </div>*/
/*       </div>*/
/*       </div>*/
/*     </div>*/
/*   <div class="col-md-3 lborder">*/
/*   <div id="xcart" class="animated1 zoomIn1">{{ xcart }}</div>*/
/*   <div id="options" class="animated fadeIn">{{ xoptions }}<div class="clearfix"></div></div>*/
/*   <div id="totals" class="animated fadeIn">{{ xtotals }}</div>*/
/*   </div>*/
/*   </div>*/
/* </div>*/
/* {% endif %} */
/* {% if mask  %} */
/* <script type="text/javascript" src="catalog/view/javascript/xtensions/stylesheet/bs/js/jquery.maskedinput.min.js"></script>*/
/* <script type="text/javascript">*/
/* jQuery(function($){*/
/* {% for key,value in mask %}	      */
/* $("#form_register #{{ key }}").mask("{{ value }}");	      */
/* {% endfor %}*/
/* });*/
/* </script>*/
/* {% endif %} */
/* <script type="text/javascript" src="catalog/view/javascript/xtensions/stylesheet/bs/js/xcustom.js"></script>  */
/* <script type="text/javascript">*/
/* $(document).ready(function(){*/
/* 	$("#accountTabs").append($("#accountTabs li").get().sort(function(a, b) {*/
/*     return parseInt($(a).attr("data-sort").match(/\d+/), 10)*/
/*          - parseInt($(b).attr("data-sort").match(/\d+/), 10);*/
/* 	}));*/
/* });*/
/* $('#tab-register input[name=\'customer_group_id\']').on('change', function() {*/
/* 	$.ajax({*/
/* 		url: 'index.php?route={{ xtensions_controller_path }}checkout/customfield&customer_group_id=' + this.value,*/
/* 		dataType: 'json',*/
/* 		success: function(json) {*/
/* 			$('#tab-register .custom-field').hide();*/
/* 			$('#tab-register .custom-field label span.fieldlabel').removeClass('required');			*/
/* 			for (i = 0; i < json.length; i++) {*/
/* 				custom_field = json[i];*/
/* 				$('#tab-register  #custom-field' + custom_field.custom_field_id).show();*/
/* 				if (custom_field.required) {					*/
/* 					$('#tab-register #custom-field' + custom_field.custom_field_id + ' label > span.fieldlabel').addClass('required');*/
/* 				}*/
/* 			}*/
/* 		},*/
/* 		error: function(xhr, ajaxOptions, thrownError) {*/
/* 			alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);*/
/* 		}*/
/* 	});*/
/* });*/
/* $('#tab-register input[name=\'customer_group_id\']:checked').trigger('change');*/
/* </script>*/
/* <script type="text/javascript">*/
/* $('[data-toggle="tooltip"]').tooltip();*/
/* $(document).on("click", "#login-tabs [data-toggle='tab']", function(event) {        */
/*      $('.account_form').val($(this).attr('account'));*/
/*      $('#account').val($(this).attr('account'));  */
/*      hide_guest();       */
/* });*/
/* $(function () {*/
/* 	  $('[data-toggle="tooltip"]').tooltip();*/
/* })*/
/* function hide_guest(){*/
/* 	if($('#account').val() == 'guest'){*/
/* 		$('.hide_guest').hide();*/
/* 		$('.hide_register').show();*/
/* 		$('.hide_guest').each(function( index ) {*/
/* 			if ($(this).parent().hasClass('group-left') || $(this).parent().hasClass('group-middle') || $(this).parent().hasClass('group-right')) {*/
/* 				$(this).parent().hide();*/
/* 			}*/
/* 		});		*/
/* 	}else{*/
/* 		$('.hide_guest').show();*/
/* 		$('.hide_register').hide();*/
/* 		$('.hide_guest').each(function( index ) {*/
/* 			if ($(this).parent().hasClass('group-left') || $(this).parent().hasClass('group-middle') || $(this).parent().hasClass('group-right')) {*/
/* 				$(this).parent().show();*/
/* 			}*/
/* 		});		*/
/* 	}*/
/* }*/
/* hide_guest();*/
/* </script>*/
/* <script type="text/javascript">*/
/* $('.date').datetimepicker({*/
/* 	language: '{{ datepicker }}',*/
/* 	pickTime: false*/
/* });*/
/* $('.time').datetimepicker({*/
/* 	language: '{{ datepicker }}',*/
/* 	pickDate: false*/
/* });*/
/* $('.datetime').datetimepicker({*/
/* 	language: '{{ datepicker }}',*/
/* 	pickDate: true,*/
/* 	pickTime: true*/
/* });*/
/* </script>*/
