<?php

/* default/template/extension/module/xtensions/checkout/guest_address_form.twig */
class __TwigTemplate_a093390f5d6e6e262054e6a71eb90b400fc2a1d3bccf9ca43840a829cbb51ca8 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
        if ((isset($context["address_modal"]) ? $context["address_modal"] : null)) {
            echo " 
<div id=\"addressModal";
            // line 2
            echo (isset($context["section"]) ? $context["section"] : null);
            echo "\" class=\"modal fixed xmargin\"  tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">
  <div class=\"modal-dialog\">
    <div class=\"modal-content\">    
      <div class=\"modal-header\">
        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">&times;</button>
        <h4 class=\"modal-title\">";
            // line 7
            echo (isset($context["text_new_address_heading"]) ? $context["text_new_address_heading"] : null);
            echo "</h4>
      </div>
      <div class=\"modal-body\">
";
        }
        // line 10
        echo "      
    \t<div id=\"guestLoader";
        // line 11
        echo (isset($context["section"]) ? $context["section"] : null);
        echo "\" class=\"loader\"></div>    
          <form id=\"form_guest_address_";
        // line 12
        echo (isset($context["section"]) ? $context["section"] : null);
        echo "\" role=\"form\" action=\"#\" autocomplete=\"off\" method=\"post\" novalidate enctype=\"multipart/form-data\"> 
          ";
        // line 13
        if ( !(isset($context["address_modal"]) ? $context["address_modal"] : null)) {
            echo " 
          \t<h3 class=\"address_title\">";
            // line 14
            echo (isset($context["text_new_address_heading"]) ? $context["text_new_address_heading"] : null);
            echo "</h3>
          \t";
        }
        // line 15
        echo "         
            <fieldset id=\"guestfields";
        // line 16
        echo (isset($context["section"]) ? $context["section"] : null);
        echo "\">            
            <input type=\"hidden\" value=\"";
        // line 17
        echo (isset($context["section"]) ? $context["section"] : null);
        echo "\" name=\"section\" />
            ";
        // line 18
        if ((isset($context["same_shipping"]) ? $context["same_shipping"] : null)) {
            echo " 
            <input type=\"hidden\" value=\"1\" name=\"xshipping_address_check\" />
            ";
        }
        // line 20
        echo " 
            ";
        // line 21
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["fields"]) ? $context["fields"] : null), (isset($context["section"]) ? $context["section"] : null), array(), "array"));
        foreach ($context['_seq'] as $context["_key"] => $context["html"]) {
            echo " 
          \t\t";
            // line 22
            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 23
        echo " 
        \t<div class=\"";
        // line 24
        echo (((isset($context["addresses"]) ? $context["addresses"] : null)) ? ("group-half group-left group") : (""));
        echo "\">
        \t<div class=\"buttons\">
         \t\t\t<input type=\"submit\" section=\"";
        // line 26
        echo (isset($context["section"]) ? $context["section"] : null);
        echo "\" value=\"";
        echo (isset($context["button_continue"]) ? $context["button_continue"] : null);
        echo "\" id=\"saveGuestAddress\" data-loading-text=\"Loading...\" class=\"btn btn-success width100\" />
\t\t\t\t</div>     \t
\t\t\t</div>  \t\t
\t\t\t";
        // line 29
        if ((isset($context["addresses"]) ? $context["addresses"] : null)) {
            echo "\t
        \t<div class=\"group-half group-right group\">
        \t<div class=\"progress progress-continue-disabled\">
        \t\t";
            // line 32
            if ((isset($context["address_modal"]) ? $context["address_modal"] : null)) {
                echo " 
                    <div data-dismiss=\"modal\" class=\"progress-bar\" role=\"progressbar\" id=\"cancelAddress\" aria-valuenow=\"45\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width: 100%\">
                     <span>";
                // line 34
                echo (isset($context["text_cancel"]) ? $context["text_cancel"] : null);
                echo "</span>
                    </div>
                    ";
            } else {
                // line 36
                echo " 
                    <div onclick=\"toggleElement('#guestPanel , ";
                // line 37
                echo ((((isset($context["section"]) ? $context["section"] : null) == "payment")) ? ("#guest_payment_panel") : ("#guest_shipping_panel"));
                echo "');\$('.col-md-3.lborder').removeClass('xblur');\" class=\"progress-bar\" role=\"progressbar\" id=\"cancelAddress\" aria-valuenow=\"45\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width: 100%\">
                     <span>";
                // line 38
                echo (isset($context["text_cancel"]) ? $context["text_cancel"] : null);
                echo "</span>
                    </div>                      
                    ";
            }
            // line 40
            echo "                     
                  </div>
\t\t\t</div>   \t\t
\t\t\t";
        }
        // line 43
        echo " 
            </fieldset>
          </form>
";
        // line 46
        if ((isset($context["address_modal"]) ? $context["address_modal"] : null)) {
            echo "          
      </div>     
    </div>
  </div>
</div>
";
        }
        // line 51
        echo " 
<script type=\"text/javascript\">
 \$('#guestfields";
        // line 53
        echo (isset($context["section"]) ? $context["section"] : null);
        echo " ";
        echo (((isset($context["display_country"]) ? $context["display_country"] : null)) ? ("select") : ("input"));
        echo "[name=\\'country_id\\']').bind('change', function() {
\t\tloadZone(";
        // line 54
        echo (((((((("'guestfields" . (isset($context["section"]) ? $context["section"] : null)) . "',this.value,'") . $this->getAttribute((isset($context["zone_id"]) ? $context["zone_id"] : null), (isset($context["section"]) ? $context["section"] : null), array(), "array")) . "','") . (isset($context["text_select"]) ? $context["text_select"] : null)) . "','") . (isset($context["text_none"]) ? $context["text_none"] : null)) . "'");
        echo ");\t
\t});
\$('#guestfields";
        // line 56
        echo (isset($context["section"]) ? $context["section"] : null);
        echo " ";
        echo (((isset($context["display_country"]) ? $context["display_country"] : null)) ? ("select") : ("input"));
        echo "[name=\\'country_id\\']').trigger('change');
 </script>";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  173 => 56,  168 => 54,  162 => 53,  158 => 51,  149 => 46,  144 => 43,  138 => 40,  132 => 38,  128 => 37,  125 => 36,  119 => 34,  114 => 32,  108 => 29,  100 => 26,  95 => 24,  92 => 23,  84 => 22,  78 => 21,  75 => 20,  69 => 18,  65 => 17,  61 => 16,  58 => 15,  53 => 14,  49 => 13,  45 => 12,  41 => 11,  38 => 10,  31 => 7,  23 => 2,  19 => 1,);
    }
}
/* {% if address_modal  %} */
/* <div id="addressModal{{ section }}" class="modal fixed xmargin"  tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">*/
/*   <div class="modal-dialog">*/
/*     <div class="modal-content">    */
/*       <div class="modal-header">*/
/*         <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>*/
/*         <h4 class="modal-title">{{ text_new_address_heading }}</h4>*/
/*       </div>*/
/*       <div class="modal-body">*/
/* {% endif %}      */
/*     	<div id="guestLoader{{ section }}" class="loader"></div>    */
/*           <form id="form_guest_address_{{ section }}" role="form" action="#" autocomplete="off" method="post" novalidate enctype="multipart/form-data"> */
/*           {% if    not address_modal  %} */
/*           	<h3 class="address_title">{{ text_new_address_heading }}</h3>*/
/*           	{% endif %}         */
/*             <fieldset id="guestfields{{ section }}">            */
/*             <input type="hidden" value="{{ section }}" name="section" />*/
/*             {% if    same_shipping  %} */
/*             <input type="hidden" value="1" name="xshipping_address_check" />*/
/*             {% endif %} */
/*             {% for html in fields[section] %} */
/*           		{{ html }} */
/*           	  {% endfor %} */
/*         	<div class="{{ addresses?'group-half group-left group':'' }}">*/
/*         	<div class="buttons">*/
/*          			<input type="submit" section="{{ section }}" value="{{ button_continue }}" id="saveGuestAddress" data-loading-text="Loading..." class="btn btn-success width100" />*/
/* 				</div>     	*/
/* 			</div>  		*/
/* 			{% if    addresses  %}	*/
/*         	<div class="group-half group-right group">*/
/*         	<div class="progress progress-continue-disabled">*/
/*         		{% if    address_modal  %} */
/*                     <div data-dismiss="modal" class="progress-bar" role="progressbar" id="cancelAddress" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 100%">*/
/*                      <span>{{ text_cancel }}</span>*/
/*                     </div>*/
/*                     {% else %} */
/*                     <div onclick="toggleElement('#guestPanel , {{ section == 'payment'?'#guest_payment_panel':'#guest_shipping_panel' }}');$('.col-md-3.lborder').removeClass('xblur');" class="progress-bar" role="progressbar" id="cancelAddress" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 100%">*/
/*                      <span>{{ text_cancel }}</span>*/
/*                     </div>                      */
/*                     {% endif %}                     */
/*                   </div>*/
/* 			</div>   		*/
/* 			{% endif %} */
/*             </fieldset>*/
/*           </form>*/
/* {% if  address_modal  %}          */
/*       </div>     */
/*     </div>*/
/*   </div>*/
/* </div>*/
/* {% endif %} */
/* <script type="text/javascript">*/
/*  $('#guestfields{{ section }} {{ display_country?'select':'input' }}[name=\'country_id\']').bind('change', function() {*/
/* 		loadZone({{ "'guestfields"~section~"',this.value,'"~zone_id[section]~"','"~text_select~"','"~text_none ~"'" }});	*/
/* 	});*/
/* $('#guestfields{{ section }} {{ display_country?'select':'input' }}[name=\'country_id\']').trigger('change');*/
/*  </script>*/
