<?php

/* default/template/extension/module/xtensions/checkout/xpayment_address.twig */
class __TwigTemplate_9d279d8cdde6978910913f168b456e75eeb67b2787d2ef5636aca911fa110466 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["force_redirect"]) ? $context["force_redirect"] : null)) {
            // line 2
            echo "<script type=\"text/javascript\">
location = '";
            // line 3
            echo (isset($context["force_redirect"]) ? $context["force_redirect"] : null);
            echo "';
</script>
";
        } else {
            // line 5
            echo " 
";
            // line 6
            echo (isset($context["modal_form"]) ? $context["modal_form"] : null);
            echo " 
<div id=\"addressPage\" class=\"container\">
<div class=\"row equal\">
<div id=\"existingAddress\" class=\"col-md-9 animated fadeIn\">
<ul class=\"hidden nav nav-pills nav-wizard hidden-xs\">
        \t<li class=\"locked\"><a>";
            // line 11
            echo (isset($context["text_checkout_step_1"]) ? $context["text_checkout_step_1"] : null);
            echo "<i class=\"fa fa-lock\"></i></a><div class=\"nav-arrow\"></div></li>
        \t<li class=\"active\"><div class=\"nav-wedge\"></div><a>";
            // line 12
            echo (isset($context["text_checkout_step_2"]) ? $context["text_checkout_step_2"] : null);
            echo "</a><div class=\"nav-arrow\"></div></li>
        \t<li class=\"locked\"><div class=\"nav-wedge\"></div><a>";
            // line 13
            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 id=\"existingAddressPanel\" ";
            // line 15
            echo ((((isset($context["addresses"]) ? $context["addresses"] : null) || ((isset($context["address_modal"]) ? $context["address_modal"] : null) &&  !(isset($context["addresses"]) ? $context["addresses"] : null)))) ? ("") : ("style=\"display:none;\""));
            echo ">
";
            // line 16
            if ((((isset($context["addresses"]) ? $context["addresses"] : null) && (isset($context["shipping_required"]) ? $context["shipping_required"] : null)) &&  !(isset($context["xshipping_method"]) ? $context["xshipping_method"] : null))) {
                echo " 
\t<div class=\"alert alert-danger noshipping margintop20 marginbottom0\">";
                // line 17
                echo (isset($context["shipping_error"]) ? $context["shipping_error"] : null);
                echo "</div>
";
            }
            // line 18
            echo " 
";
            // line 19
            if (((isset($context["address_block"]) ? $context["address_block"] : null) ||  !(isset($context["addresses"]) ? $context["addresses"] : null))) {
                echo " 
";
                // line 20
                if ((( !(isset($context["shipping_required"]) ? $context["shipping_required"] : null) || (isset($context["same_shipping"]) ? $context["same_shipping"] : null)) ||  !(isset($context["addresses"]) ? $context["addresses"] : null))) {
                    echo " 
\t<input type=\"hidden\" name=\"xshipping_address_check\" value=\"1\"  />
";
                } else {
                    // line 22
                    echo " 
\t<div class=\"checkbox is_checkbox info-back-checkout text-center\">
\t\t<label for=\"shipping_check\">
\t\t<input type=\"checkbox\" class=\"input-checkbox\" name=\"xshipping_address_check\" value=\"1\" id=\"shipping_check\" ";
                    // line 25
                    echo (((isset($context["same_address"]) ? $context["same_address"] : null)) ? ("checked=\"checked\"") : (""));
                    echo " />";
                    echo (isset($context["entry_shipping"]) ? $context["entry_shipping"] : null);
                    echo "</label>
\t</div>
";
                }
                // line 28
                if ((isset($context["addresses"]) ? $context["addresses"] : null)) {
                    echo " 
\t<div class=\"row\">
\t\t<div class=\"col-md-12 \">              
\t\t    <h4 style=\"cursor: pointer;\" class=\"pull-right\">
\t\t    ";
                    // line 32
                    if ((isset($context["address_modal"]) ? $context["address_modal"] : null)) {
                        echo " 
\t\t    \t<a data-toggle=\"modal\" data-target=\"#addressModal\"><i class=\"fa fa-plus\"></i>&nbsp;";
                        // line 33
                        echo (isset($context["text_address_new"]) ? $context["text_address_new"] : null);
                        echo "</a>
\t\t\t";
                    } else {
                        // line 34
                        echo " 
\t\t\t\t<a onclick=\"toggleElement('#existingAddressPanel, #addressfields');\$('.col-md-3.lborder').addClass('xblur');\"><i class=\"fa fa-plus\"></i>&nbsp;";
                        // line 35
                        echo (isset($context["text_address_new"]) ? $context["text_address_new"] : null);
                        echo "</a>
\t\t\t";
                    }
                    // line 36
                    echo " 
\t\t    </h4>
\t\t</div>
\t</div>
";
                }
                // line 40
                echo " 
\t<div class=\"clearfix\"></div>
";
                // line 42
                if ((isset($context["addresses"]) ? $context["addresses"] : null)) {
                    echo " 
              <div class=\"row\">
                ";
                    // line 44
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable((isset($context["addresses"]) ? $context["addresses"] : null));
                    foreach ($context['_seq'] as $context["_key"] => $context["address"]) {
                        echo " 
                <div class=\"col-sm-6 col-md-4 text-center\">
                  <div class=\"panel panel-default\">
                   <div class=\"panel-heading ";
                        // line 47
                        echo ((($this->getAttribute($context["address"], "address_id", array()) == (isset($context["address_id"]) ? $context["address_id"] : null))) ? ("selected") : (""));
                        echo "\">
                    <div class=\"radio\">                        
                        <label for=\"p-";
                        // line 49
                        echo $this->getAttribute($context["address"], "address_id", array());
                        echo "\">
                        <input id=\"p-";
                        // line 50
                        echo $this->getAttribute($context["address"], "address_id", array());
                        echo "\" ";
                        echo ((($this->getAttribute($context["address"], "address_id", array()) == (isset($context["address_id"]) ? $context["address_id"] : null))) ? ("checked=\"checked\"") : (""));
                        echo " type=\"radio\" name=\"address_id\" value=\"";
                        echo $this->getAttribute($context["address"], "address_id", array());
                        echo "\" />  
                          <span class=\"padd\">";
                        // line 51
                        echo ((((isset($context["shipping_required"]) ? $context["shipping_required"] : null) && (isset($context["same_shipping"]) ? $context["same_shipping"] : null))) ? ((isset($context["text_psaddress"]) ? $context["text_psaddress"] : null)) : ((isset($context["text_paddress"]) ? $context["text_paddress"] : null)));
                        echo "</span>                         
                        </label>                        
                    </div>
                    </div>                                       
                    <div class=\"panel-body highlight\">
                    <p class=\"text-justified\">";
                        // line 56
                        echo $this->getAttribute($context["address"], "address", array());
                        echo "</p>
                    ";
                        // line 57
                        echo (($this->getAttribute($context["address"], "default", array())) ? ((isset($context["entry_default"]) ? $context["entry_default"] : null)) : ((("<span>" . $this->getAttribute($context["address"], "delete", array())) . "</span>")));
                        echo "
                    <span>";
                        // line 58
                        echo $this->getAttribute($context["address"], "edit", array());
                        echo "</span>
                    <div class=\"clearfix\"></div>  
                    </div>
                    ";
                        // line 61
                        if (((isset($context["shipping_required"]) ? $context["shipping_required"] : null) &&  !(isset($context["same_shipping"]) ? $context["same_shipping"] : null))) {
                            echo " 
                    <div ";
                            // line 62
                            echo (((isset($context["same_address"]) ? $context["same_address"] : null)) ? ("style=\"display:none;\"") : (""));
                            echo " class=\"panel-footer ";
                            echo ((($this->getAttribute($context["address"], "address_id", array()) == (isset($context["shipping_address_id"]) ? $context["shipping_address_id"] : null))) ? ("selected") : (""));
                            echo "\"\">
                    <div class=\"radio\">                    
                        <label for=\"s-";
                            // line 64
                            echo $this->getAttribute($context["address"], "address_id", array());
                            echo "\">
                      <input id=\"s-";
                            // line 65
                            echo $this->getAttribute($context["address"], "address_id", array());
                            echo "\" ";
                            echo ((($this->getAttribute($context["address"], "address_id", array()) == (isset($context["shipping_address_id"]) ? $context["shipping_address_id"] : null))) ? ("checked=\"checked\"") : (""));
                            echo " type=\"radio\" name=\"saddress_id\" value=\"";
                            echo $this->getAttribute($context["address"], "address_id", array());
                            echo "\" />      
                          ";
                            // line 66
                            echo (isset($context["text_saddress"]) ? $context["text_saddress"] : null);
                            echo "                         
                        </label>
                    </div>                  
                    </div>                     
                    ";
                        }
                        // line 70
                        echo "                   
                  </div>
                </div>
                <div class=\"clearfix visible-xs\">
                </div>
                ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['address'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 75
                    echo "                
              </div>
            ";
                } else {
                    // line 77
                    echo " 
              <div class=\"row\">                
                <div class=\"col-md-12\">                                                       
                    <div style=\"background: transparent;\" class=\"jumbotron\">                                   
                    <h3 class=\"text-center\"><a style=\"cursor: pointer;\" data-toggle=\"modal\" data-target=\"#addressModal\"><span style=\"line-height: 170px;\" class=\"glyphicon glyphicon-plus\"></span>";
                    // line 81
                    echo (isset($context["text_new_address_heading"]) ? $context["text_new_address_heading"] : null);
                    echo "</a></h3>
                  </div>
                </div>
              <div class=\"clearfix visible-xs\">
                </div>
              </div>
            ";
                }
                // line 87
                echo " 
            </div>
            ";
            } else {
                // line 89
                echo " 
              ";
                // line 90
                if ((isset($context["addresses"]) ? $context["addresses"] : null)) {
                    echo " 
    \t\t\t<div class=\"row\">       
    \t\t\t";
                    // line 92
                    if ((( !(isset($context["shipping_required"]) ? $context["shipping_required"] : null) || (isset($context["same_shipping"]) ? $context["same_shipping"] : null)) ||  !(isset($context["addresses"]) ? $context["addresses"] : null))) {
                        echo " 
              <input type=\"hidden\" name=\"xshipping_address_check\" value=\"1\"  />
            ";
                    } else {
                        // line 94
                        echo " 
              <div class=\"col-md-12\">\t
               <div class=\"checkbox is_checkbox info-back-checkout text-center\">
              \t<label for=\"shipping_check\">
                <input type=\"checkbox\" class=\"input-checkbox\" name=\"xshipping_address_check\" value=\"1\" id=\"shipping_check\" ";
                        // line 98
                        echo (((isset($context["same_address"]) ? $context["same_address"] : null)) ? ("checked=\"checked\"") : (""));
                        echo " />
        \t\t";
                        // line 99
                        echo (isset($context["entry_shipping"]) ? $context["entry_shipping"] : null);
                        echo " 
              \t</label>
           \t   </div>
           \t   </div>
            ";
                    }
                    // line 103
                    echo "        \t              
                <div class=\"payment-address-panel ";
                    // line 104
                    echo ((( !(isset($context["shipping_required"]) ? $context["shipping_required"] : null) || ((isset($context["shipping_required"]) ? $context["shipping_required"] : null) && (isset($context["same_address"]) ? $context["same_address"] : null)))) ? ("col-md-12") : ("col-md-6"));
                    echo "\">
                  <div class=\"panel-address\">                   
                   <div class=\"panel-address-heading address-type\"><i class=\"fa fa-money\" aria-hidden=\"true\"></i>&nbsp;<span class=\"padd\">";
                    // line 106
                    echo ((((isset($context["shipping_required"]) ? $context["shipping_required"] : null) && (isset($context["same_address"]) ? $context["same_address"] : null))) ? ((isset($context["text_psaddress"]) ? $context["text_psaddress"] : null)) : ((isset($context["text_paddress"]) ? $context["text_paddress"] : null)));
                    echo "</span>
                
                   <small class=\"pull-right\">
                   ";
                    // line 109
                    if ((isset($context["address_modal"]) ? $context["address_modal"] : null)) {
                        echo " 
                   <a data-toggle=\"modal\" data-target=\"#addressModal\"><i class=\"fa fa-plus\"></i>&nbsp;";
                        // line 110
                        echo (isset($context["text_address_new"]) ? $context["text_address_new"] : null);
                        echo "</a>
                   ";
                    } else {
                        // line 111
                        echo " 
                   <a onclick=\"toggleElement('#existingAddressPanel, #addressfields');\$('.col-md-3.lborder').addClass('xblur');\"><i class=\"fa fa-plus\"></i>&nbsp;";
                        // line 112
                        echo (isset($context["text_address_new"]) ? $context["text_address_new"] : null);
                        echo "</a>
                   ";
                    }
                    // line 113
                    echo " 
                   </small>
                   </div>                    
                    <div class=\"panel-address-body payment-address\">
                    \t<div class=\"text-justified\">
                    \t<div class=\"address-list\">
                    \t";
                    // line 119
                    $context["count"] = 1;
                    echo "                    \t
                    \t";
                    // line 120
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable((isset($context["addresses"]) ? $context["addresses"] : null));
                    foreach ($context['_seq'] as $context["_key"] => $context["address"]) {
                        echo " 
                    \t";
                        // line 121
                        $context["count"] = ((isset($context["count"]) ? $context["count"] : null) + 1);
                        echo " 
                    \t<label class=\"address-label ";
                        // line 122
                        echo ((($this->getAttribute($context["address"], "address_id", array()) == (isset($context["address_id"]) ? $context["address_id"] : null))) ? ("selected") : (""));
                        echo " \" sort=\"";
                        echo ((($this->getAttribute($context["address"], "address_id", array()) == (isset($context["address_id"]) ? $context["address_id"] : null))) ? (1) : ((isset($context["count"]) ? $context["count"] : null)));
                        echo "\">
                    \t<input class=\"input-radio\" type=\"radio\" name=\"address_id\" value=\"";
                        // line 123
                        echo $this->getAttribute($context["address"], "address_id", array());
                        echo "\" ";
                        echo ((($this->getAttribute($context["address"], "address_id", array()) == (isset($context["address_id"]) ? $context["address_id"] : null))) ? ("checked=\"checked\"") : (""));
                        echo " />
                    \t<span class=\"address-string\" title=\"";
                        // line 124
                        echo $this->getAttribute($context["address"], "linear_address", array());
                        echo "\">";
                        echo $this->getAttribute($context["address"], "linear_address", array());
                        echo "</span>
                    \t<span class=\"add_delete\">
                    \t\t<span class=\"pull-left\">";
                        // line 126
                        echo (($this->getAttribute($context["address"], "default", array())) ? ((isset($context["entry_default"]) ? $context["entry_default"] : null)) : ($this->getAttribute($context["address"], "delete", array())));
                        echo "</span>
                    \t\t<span class=\"pull-right\">";
                        // line 127
                        echo $this->getAttribute($context["address"], "edit", array());
                        echo "</span>  
                    \t</span>
                    \t</label>
                    \t";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['address'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 130
                    echo " 
                    \t</div>                  \t
                    </div>
                  </div>
                </div>
                </div>
                ";
                    // line 136
                    if (((isset($context["shipping_required"]) ? $context["shipping_required"] : null) &&  !(isset($context["same_shipping"]) ? $context["same_shipping"] : null))) {
                        echo " 
                <div class=\"col-md-6 shipping-address-panel\" ";
                        // line 137
                        echo (((isset($context["same_address"]) ? $context["same_address"] : null)) ? ("style=\"display:none;\"") : (""));
                        echo " >
                  <div class=\"panel-address\">                   
                   <div class=\"panel-address-heading\"><i class=\"fa fa-address-card-o\" aria-hidden=\"true\"></i>&nbsp;";
                        // line 139
                        echo (isset($context["text_saddress"]) ? $context["text_saddress"] : null);
                        echo "                   
                   <small class=\"pull-right\">
                   ";
                        // line 141
                        if ((isset($context["address_modal"]) ? $context["address_modal"] : null)) {
                            echo " 
                   <a data-toggle=\"modal\" data-target=\"#addressModal\"><i class=\"fa fa-plus\"></i>&nbsp;";
                            // line 142
                            echo (isset($context["text_address_new"]) ? $context["text_address_new"] : null);
                            echo "</a>
                   ";
                        } else {
                            // line 143
                            echo " 
                   <a onclick=\"toggleElement('#existingAddressPanel, #addressfields');\$('.col-md-3.lborder').addClass('xblur');\"><i class=\"fa fa-plus\"></i>&nbsp;";
                            // line 144
                            echo (isset($context["text_address_new"]) ? $context["text_address_new"] : null);
                            echo "</a>
                   ";
                        }
                        // line 145
                        echo "                   
                   </small>                   
                   </div>                    
                    <div class=\"panel-address-body shipping-address\">
                    \t<div class=\"text-justified\" >                    \t
                    \t<div class=\"address-list\">
                    \t";
                        // line 151
                        $context["count"] = 1;
                        echo "                    \t
                    \t";
                        // line 152
                        $context['_parent'] = $context;
                        $context['_seq'] = twig_ensure_traversable((isset($context["addresses"]) ? $context["addresses"] : null));
                        foreach ($context['_seq'] as $context["_key"] => $context["address"]) {
                            echo " 
                    \t";
                            // line 153
                            $context["count"] = ((isset($context["count"]) ? $context["count"] : null) + 1);
                            echo " 
                    \t<label class=\"address-label ";
                            // line 154
                            echo ((($this->getAttribute($context["address"], "address_id", array()) == (isset($context["shipping_address_id"]) ? $context["shipping_address_id"] : null))) ? ("selected") : (""));
                            echo "\" sort=\"";
                            echo ((($this->getAttribute($context["address"], "address_id", array()) == (isset($context["shipping_address_id"]) ? $context["shipping_address_id"] : null))) ? (1) : ((isset($context["count"]) ? $context["count"] : null)));
                            echo "\">
                    \t<input class=\"input-radio\" data-formatted-address=\"";
                            // line 155
                            echo $this->getAttribute($context["address"], "address", array());
                            echo "\" type=\"radio\" name=\"saddress_id\" value=\"";
                            echo $this->getAttribute($context["address"], "address_id", array());
                            echo "\" ";
                            echo ((($this->getAttribute($context["address"], "address_id", array()) == (isset($context["shipping_address_id"]) ? $context["shipping_address_id"] : null))) ? ("checked=\"checked\"") : (""));
                            echo " />
                    \t<span class=\"address-string\" title=\"";
                            // line 156
                            echo $this->getAttribute($context["address"], "linear_address", array());
                            echo "\">";
                            echo $this->getAttribute($context["address"], "linear_address", array());
                            echo "</span>
                    \t<span class=\"add_delete\">
                    \t\t<span class=\"pull-left\">";
                            // line 158
                            echo (($this->getAttribute($context["address"], "default", array())) ? ((isset($context["entry_default"]) ? $context["entry_default"] : null)) : ($this->getAttribute($context["address"], "delete", array())));
                            echo "</span>
                    \t\t<span class=\"pull-right\">";
                            // line 159
                            echo $this->getAttribute($context["address"], "edit", array());
                            echo "</span>  
                    \t</span>
                    \t</label>
                    \t";
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['address'], $context['_parent'], $context['loop']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 162
                        echo " 
                    \t</div>
                    \t</div>                    \t
                    </div>
                  </div>
                </div>
                ";
                    }
                    // line 168
                    echo "                            
               <div class=\"clearfix\"></div>                
              </div>
            ";
                }
                // line 171
                echo " 
            ";
                // line 172
                if (((isset($context["shipping_required"]) ? $context["shipping_required"] : null) || (isset($context["display_comments"]) ? $context["display_comments"] : null))) {
                    echo " 
            <div class=\"row\">
            \t";
                    // line 174
                    if ((isset($context["shipping_required"]) ? $context["shipping_required"] : null)) {
                        echo " 
                <div class=\"";
                        // line 175
                        echo (((isset($context["display_comments"]) ? $context["display_comments"] : null)) ? ("col-md-6") : ("col-md-12"));
                        echo "\">
                \t<div id=\"shipping_method\" class=\"container_panel\">                \t              
        \t\t\t<div class=\"heading\"><i class=\"fa fa-truck\" aria-hidden=\"true\"></i>&nbsp;";
                        // line 177
                        echo (isset($context["text_shipping_method"]) ? $context["text_shipping_method"] : null);
                        echo "</div>
          \t\t\t<div class=\"shipping-table\">
          \t\t\t";
                        // line 179
                        if ((((isset($context["addresses"]) ? $context["addresses"] : null) && (isset($context["shipping_required"]) ? $context["shipping_required"] : null)) &&  !(isset($context["xshipping_method"]) ? $context["xshipping_method"] : null))) {
                            echo " 
\t\t\t\t\t<span class=\"xerror noshipping marginbottom0\">";
                            // line 180
                            echo (isset($context["shipping_error"]) ? $context["shipping_error"] : null);
                            echo "</span>
\t\t\t\t\t";
                        } else {
                            // line 181
                            echo " 
\t\t\t\t\t";
                            // line 182
                            echo (isset($context["xshipping_method"]) ? $context["xshipping_method"] : null);
                            echo " 
\t\t\t\t\t";
                        }
                        // line 183
                        echo " 
\t\t\t\t\t</div>
          \t\t\t</div>
                </div>
                ";
                    }
                    // line 187
                    echo " 
                ";
                    // line 188
                    if (((isset($context["addresses"]) ? $context["addresses"] : null) && (isset($context["display_comments"]) ? $context["display_comments"] : null))) {
                        echo " 
                <div class=\"";
                        // line 189
                        echo (((isset($context["shipping_required"]) ? $context["shipping_required"] : null)) ? ("col-md-6") : ("col-md-12"));
                        echo "\">
                \t<div id=\"comment\">
                \t\t<div id=\"order-comment\" class=\"container_panel\" >              
        \t\t\t\t\t<div class=\"heading\"><i class=\"fa fa-comment\"></i>&nbsp;";
                        // line 192
                        echo (isset($context["comment_text"]) ? $context["comment_text"] : null);
                        echo "</div>
        \t\t\t\t\t<textarea name=\"comment\" class=\"form-control\" rows=\"3\" placeholder=\"";
                        // line 193
                        echo (isset($context["comment_placeholder_text"]) ? $context["comment_placeholder_text"] : null);
                        echo "\">";
                        echo (isset($context["comment"]) ? $context["comment"] : null);
                        echo "</textarea>
        \t\t\t\t</div>
        \t\t\t</div>
                 </div>
                ";
                    }
                    // line 197
                    echo " 
             </div> 
\t     <div class=\"clearfix\"></div>
\t     ";
                }
                // line 200
                echo " 
\t     ";
                // line 201
                if ((isset($context["addresses"]) ? $context["addresses"] : null)) {
                    // line 202
                    echo "\t     ";
                    if ((isset($context["isMobile"]) ? $context["isMobile"] : null)) {
                        echo " 
\t      \t<div id=\"options\" class=\"animated1 zoomIn1\">";
                        // line 203
                        echo (isset($context["xoptions"]) ? $context["xoptions"] : null);
                        echo "</div>
\t      \t<div class=\"clearfix\"></div>
\t\t";
                    }
                    // line 205
                    echo " 
\t     ";
                    // line 206
                    if (( !array_key_exists("error_stock_warning", $context) &&  !array_key_exists("error_minimum_warning", $context))) {
                        echo "   
       \t\t<div class=\"row margintop20\">
       \t\t\t<div id=\"agree-panel\" ";
                        // line 208
                        echo (((((isset($context["addresses"]) ? $context["addresses"] : null) && (isset($context["shipping_required"]) ? $context["shipping_required"] : null)) &&  !(isset($context["xshipping_method"]) ? $context["xshipping_method"] : null))) ? ("style=\"display:none;\"") : (""));
                        echo " class=\"col-md-12 agree-panel\">
       \t\t\t";
                        // line 209
                        if ((isset($context["text_agree"]) ? $context["text_agree"] : null)) {
                            // line 210
                            echo "       \t\t\t\t<div id=\"agreeText\" class=\"col-md-6 agreeText\">
          \t\t\t<label class=\"pointer checkbox is_checkbox\"><input type=\"checkbox\" class=\"input-checkbox\" name=\"agree\" value=\"1\" ";
                            // line 211
                            echo (((isset($context["agree"]) ? $context["agree"] : null)) ? ("checked=\"checked\"") : (""));
                            echo "><span>";
                            echo (isset($context["text_agree"]) ? $context["text_agree"] : null);
                            echo "</span></label>          \t\t\t
    \t\t\t\t</div>
    \t\t\t";
                        }
                        // line 214
                        echo "    \t\t\t<div class=\"";
                        echo (((isset($context["text_agree"]) ? $context["text_agree"] : null)) ? ("col-md-6 large-pull-right paddingright0") : ("col-md-12 nopadding"));
                        echo "\">
    \t\t\t\t<div class=\"progress progress-continue-disabled\" id=\"progress-continue-disabled\" ";
                        // line 215
                        echo ((((isset($context["text_agree"]) ? $context["text_agree"] : null) &&  !(isset($context["agree"]) ? $context["agree"] : null))) ? ("style=\"display: block\"") : ("style=\"display: none\""));
                        echo " >
                    \t<div data-trigger=\"focus\" tabindex=\"0\" data-placement=\"top\" data-toggle=\"popover\" title=\"";
                        // line 216
                        echo (isset($context["info_title"]) ? $context["info_title"] : null);
                        echo "\" data-content=\"";
                        echo (isset($context["agree_content"]) ? $context["agree_content"] : null);
                        echo "\" class=\"progress-bar\" role=\"progressbar\" id=\"button-payment-disabled\" aria-valuenow=\"45\" aria-valuemin=\"0\" aria-valuemax=\"100\">
                      \t\t<span>";
                        // line 217
                        echo (isset($context["text_payment_continue"]) ? $context["text_payment_continue"] : null);
                        echo "<i class=\"fa fa-lock\"></i></span>
                    \t</div>
                \t</div>
        \t\t\t<div class=\"progress progress-continue\" id=\"progress-continue\" ";
                        // line 220
                        echo ((((isset($context["text_agree"]) ? $context["text_agree"] : null) &&  !(isset($context["agree"]) ? $context["agree"] : null))) ? ("style=\"display: none\"") : (""));
                        echo " >
                    \t<div class=\"progress-bar progress-bar-success\" onclick=\"callPaymentFromAddress();\" role=\"progressbar\" id=\"button-payment\" aria-valuenow=\"45\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width: 100%\">
                      \t\t<span>";
                        // line 222
                        echo (isset($context["text_payment_continue"]) ? $context["text_payment_continue"] : null);
                        echo "</span>
                    \t</div>
                 \t</div>
                 </div>
        \t\t</div>
        \t\t</div>
\t        ";
                    } else {
                        // line 228
                        echo " 
\t\t        ";
                        // line 229
                        if (array_key_exists("error_stock_warning", $context)) {
                            echo " 
\t\t\t\t\t<div class=\"alert alert-danger noshipping margintop20 marginbottom0\">";
                            // line 230
                            echo (isset($context["error_stock_warning"]) ? $context["error_stock_warning"] : null);
                            echo "</div>
\t\t\t\t";
                        }
                        // line 231
                        echo " 
\t\t\t\t";
                        // line 232
                        if (array_key_exists("error_minimum_warning", $context)) {
                            echo " 
\t\t\t\t\t<div class=\"alert alert-danger noshipping margintop20 marginbottom0\">";
                            // line 233
                            echo (isset($context["error_minimum_warning"]) ? $context["error_minimum_warning"] : null);
                            echo "</div>
\t\t\t\t";
                        }
                        // line 234
                        echo " 
\t        ";
                    }
                    // line 235
                    echo "\t\t
\t      ";
                }
                // line 236
                echo "               
             </div>
            ";
            }
            // line 238
            echo " 
            <div  id=\"addressfields\" ";
            // line 239
            echo ((( !(isset($context["addresses"]) ? $context["addresses"] : null) &&  !(isset($context["address_modal"]) ? $context["address_modal"] : null))) ? ("") : ("style=\"display:none;\""));
            echo " class=\"inlineaddress margintop20  zoomIn\">";
            echo (isset($context["inline_form"]) ? $context["inline_form"] : null);
            echo "</div> 
      \t\t<div id=\"editAddressFields\" style=\"display: none;\" class=\"inlineaddress margintop20 animated1 zoomIn1\"></div>
            </div>
<div class=\"col-md-3 lborder";
            // line 242
            echo (( !(isset($context["addresses"]) ? $context["addresses"] : null)) ? (" xblur") : (""));
            echo "\">  
<div id=\"sLoader\" class=\"loader\"></div>  
      ";
            // line 244
            if (((isset($context["address_block"]) ? $context["address_block"] : null) && (isset($context["shipping_required"]) ? $context["shipping_required"] : null))) {
                echo " 
      ";
                // line 245
                if ((isset($context["addresses"]) ? $context["addresses"] : null)) {
                    echo " 
      \t<div id=\"shipping_method\" class=\"panel panel-green1 clearfix animated1 zoomIn1\">
\t\t<div class=\"panel-heading\"><i class=\"fa fa-truck\" aria-hidden=\"true\"></i>&nbsp;";
                    // line 247
                    echo (isset($context["text_shipping_method"]) ? $context["text_shipping_method"] : null);
                    echo "</div>
\t\t<div class=\"shipping-table\">
\t\t";
                    // line 249
                    if (((isset($context["shipping_required"]) ? $context["shipping_required"] : null) &&  !(isset($context["xshipping_method"]) ? $context["xshipping_method"] : null))) {
                        echo " 
\t\t<span class=\"xerror noshipping marginbottom0\">";
                        // line 250
                        echo (isset($context["shipping_error"]) ? $context["shipping_error"] : null);
                        echo "</span>
\t\t";
                    } else {
                        // line 251
                        echo " 
\t\t";
                        // line 252
                        echo (isset($context["xshipping_method"]) ? $context["xshipping_method"] : null);
                        echo " 
\t\t";
                    }
                    // line 253
                    echo " 
\t\t</div>
\t\t</div>
\t\t<div class=\"clearfix\"></div>
\t\t";
                }
                // line 257
                echo "\t\t
\t\t";
            }
            // line 258
            echo " 
\t   ";
            // line 259
            if ((((isset($context["addresses"]) ? $context["addresses"] : null) && (isset($context["address_block"]) ? $context["address_block"] : null)) && (isset($context["isMobile"]) ? $context["isMobile"] : null))) {
                // line 260
                echo "\t      \t<div id=\"options\" class=\"animated1 zoomIn1\">";
                echo (isset($context["xoptions"]) ? $context["xoptions"] : null);
                echo "</div>
\t      \t<div class=\"clearfix\"></div>
      \t";
            }
            // line 262
            echo "      \t
      \t";
            // line 263
            if (( !(isset($context["shipping_required"]) ? $context["shipping_required"] : null) &&  !(isset($context["isMobile"]) ? $context["isMobile"] : null))) {
                // line 264
                echo "      \t<div id=\"xcart\" class=\"animated1 zoomIn1\">";
                echo (isset($context["xcart"]) ? $context["xcart"] : null);
                echo "</div>
      \t<div class=\"clearfix\"></div>
      \t";
            }
            // line 267
            echo "       ";
            if (((isset($context["addresses"]) ? $context["addresses"] : null) && (isset($context["address_block"]) ? $context["address_block"] : null))) {
                echo " 
       ";
                // line 268
                if (( !array_key_exists("error_stock_warning", $context) &&  !array_key_exists("error_minimum_warning", $context))) {
                    echo "      
       \t\t\t<div id=\"agree-panel\" ";
                    // line 269
                    echo (((((isset($context["addresses"]) ? $context["addresses"] : null) && (isset($context["shipping_required"]) ? $context["shipping_required"] : null)) &&  !(isset($context["xshipping_method"]) ? $context["xshipping_method"] : null))) ? ("style=\"display:none;\"") : (""));
                    echo " class=\"agree-panel animated1 zoomIn1\">
       \t\t\t";
                    // line 270
                    if ((isset($context["text_agree"]) ? $context["text_agree"] : null)) {
                        // line 271
                        echo "       \t\t\t\t<div id=\"agreeText\" class=\"agreeText agreeTextalternate text-center\">
          \t\t\t\t<label class=\"pointer checkbox is_checkbox\"><input type=\"checkbox\" class=\"input-checkbox\" name=\"agree\" value=\"1\" ";
                        // line 272
                        echo (((isset($context["agree"]) ? $context["agree"] : null)) ? ("checked=\"checked\"") : (""));
                        echo "><span>";
                        echo (isset($context["text_agree"]) ? $context["text_agree"] : null);
                        echo "</span></label>
    \t\t\t\t</div>       \t\t\t\t
    \t\t\t";
                    }
                    // line 274
                    echo "    \t\t\t
    \t\t\t<div class=\"progress progress-continue-disabled\" id=\"progress-continue-disabled\" ";
                    // line 275
                    echo ((((isset($context["text_agree"]) ? $context["text_agree"] : null) &&  !(isset($context["agree"]) ? $context["agree"] : null))) ? ("style=\"display: block\"") : ("style=\"display: none\""));
                    echo " >
                    \t<div data-trigger=\"focus\" tabindex=\"0\" data-placement=\"top\" data-toggle=\"popover\" title=\"";
                    // line 276
                    echo (isset($context["info_title"]) ? $context["info_title"] : null);
                    echo "\" data-content=\"";
                    echo (isset($context["agree_content"]) ? $context["agree_content"] : null);
                    echo "\" class=\"progress-bar\" role=\"progressbar\" id=\"button-payment-disabled\" aria-valuenow=\"45\" aria-valuemin=\"0\" aria-valuemax=\"100\">
                      \t\t<span>";
                    // line 277
                    echo (isset($context["text_payment_continue"]) ? $context["text_payment_continue"] : null);
                    echo "<i class=\"fa fa-lock\"></i></span>
                    \t</div>
                </div>
        \t\t<div class=\"progress progress-continue\" id=\"progress-continue\" ";
                    // line 280
                    echo ((((isset($context["text_agree"]) ? $context["text_agree"] : null) &&  !(isset($context["agree"]) ? $context["agree"] : null))) ? ("style=\"display: none\"") : (""));
                    echo " >
                  \t<div class=\"progress-bar progress-bar-success\" onclick=\"callPaymentFromAddress();\" role=\"progressbar\" id=\"button-payment\" aria-valuenow=\"45\" aria-valuemin=\"0\" aria-valuemax=\"100\" style=\"width: 100%\">
                  \t\t<span>";
                    // line 282
                    echo (isset($context["text_payment_continue"]) ? $context["text_payment_continue"] : null);
                    echo "</span>
                   \t</div>
                \t</div>
                 </div>  
       ";
                } else {
                    // line 286
                    echo " 
\t        ";
                    // line 287
                    if (array_key_exists("error_stock_warning", $context)) {
                        echo " 
\t\t\t\t<div class=\"alert alert-danger noshipping margintop20 marginbottom0\">";
                        // line 288
                        echo (isset($context["error_stock_warning"]) ? $context["error_stock_warning"] : null);
                        echo "</div>
\t\t\t";
                    }
                    // line 289
                    echo " 
\t\t\t";
                    // line 290
                    if (array_key_exists("error_minimum_warning", $context)) {
                        echo " 
\t\t\t\t<div class=\"alert alert-danger noshipping margintop20 marginbottom0\">";
                        // line 291
                        echo (isset($context["error_minimum_warning"]) ? $context["error_minimum_warning"] : null);
                        echo "</div>
\t\t\t";
                    }
                    // line 292
                    echo " 
        ";
                }
                // line 293
                echo "\t    \t\t

      ";
            }
            // line 295
            echo " 
\t  ";
            // line 296
            if (((isset($context["shipping_required"]) ? $context["shipping_required"] : null) || (isset($context["isMobile"]) ? $context["isMobile"] : null))) {
                // line 297
                echo "      <div id=\"xcart\" class=\"animated1 zoomIn1\">";
                echo (isset($context["xcart"]) ? $context["xcart"] : null);
                echo "</div>
      <div class=\"clearfix\"></div>
      ";
            }
            // line 300
            echo "      ";
            if ( !(isset($context["isMobile"]) ? $context["isMobile"] : null)) {
                // line 301
                echo "      <div id=\"options\" class=\"animated1 zoomIn1\">";
                echo (isset($context["xoptions"]) ? $context["xoptions"] : null);
                echo "</div>
      <div class=\"clearfix\"></div>
      ";
            }
            // line 304
            echo "\t  <div id=\"totals\" class=\"animated1 zoomIn1\">";
            echo (isset($context["xtotals"]) ? $context["xtotals"] : null);
            echo "</div>           
      <div class=\"clearfix\"></div>
    </div>
  </div>
";
            // line 308
            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 312
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable((isset($context["mask"]) ? $context["mask"] : null));
                foreach ($context['_seq'] as $context["key"] => $context["value"]) {
                    echo "\t      
 \$(\"#address_fields #";
                    // line 313
                    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 315
                echo " });
 </script>
";
            }
            // line 317
            echo " 
<script type=\"text/javascript\" src=\"catalog/view/javascript/xtensions/stylesheet/bs/js/xcustom.js\"></script>
<script type=\"text/javascript\">
address_block = ";
            // line 320
            echo (((isset($context["address_block"]) ? $context["address_block"] : null)) ? ("true") : ("false"));
            echo ";
";
            // line 321
            if ( !(isset($context["addresses"]) ? $context["addresses"] : null)) {
                echo " 
\$(document).ready(function() {
    \$('#addressModal').modal('show');
});
";
            } else {
                // line 325
                echo " 
\$(document).ready(function() {
\t\$('body').removeClass('modal-open');
});
";
            }
            // line 329
            echo " 
\$(function () {
    \$('[data-toggle=\"tooltip\"]').tooltip();
    \$('[data-toggle=\"popover\"]').popover();
});
\$('.date').datetimepicker({
\tlanguage: '";
            // line 335
            echo (isset($context["datepicker"]) ? $context["datepicker"] : null);
            echo "',
\tpickTime: false
});
\$('.time').datetimepicker({
\tlanguage: '";
            // line 339
            echo (isset($context["datepicker"]) ? $context["datepicker"] : null);
            echo "',
\tpickDate: false
});
\$('.datetime').datetimepicker({
\tlanguage: '";
            // line 343
            echo (isset($context["datepicker"]) ? $context["datepicker"] : null);
            echo "',
\tpickDate: true,
\tpickTime: true
});
</script>
";
        }
        // line 348
        echo " 
";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  956 => 348,  947 => 343,  940 => 339,  933 => 335,  925 => 329,  918 => 325,  910 => 321,  906 => 320,  901 => 317,  896 => 315,  886 => 313,  880 => 312,  873 => 308,  865 => 304,  858 => 301,  855 => 300,  848 => 297,  846 => 296,  843 => 295,  838 => 293,  834 => 292,  829 => 291,  825 => 290,  822 => 289,  817 => 288,  813 => 287,  810 => 286,  802 => 282,  797 => 280,  791 => 277,  785 => 276,  781 => 275,  778 => 274,  770 => 272,  767 => 271,  765 => 270,  761 => 269,  757 => 268,  752 => 267,  745 => 264,  743 => 263,  740 => 262,  733 => 260,  731 => 259,  728 => 258,  724 => 257,  717 => 253,  712 => 252,  709 => 251,  704 => 250,  700 => 249,  695 => 247,  690 => 245,  686 => 244,  681 => 242,  673 => 239,  670 => 238,  665 => 236,  661 => 235,  657 => 234,  652 => 233,  648 => 232,  645 => 231,  640 => 230,  636 => 229,  633 => 228,  623 => 222,  618 => 220,  612 => 217,  606 => 216,  602 => 215,  597 => 214,  589 => 211,  586 => 210,  584 => 209,  580 => 208,  575 => 206,  572 => 205,  566 => 203,  561 => 202,  559 => 201,  556 => 200,  550 => 197,  540 => 193,  536 => 192,  530 => 189,  526 => 188,  523 => 187,  516 => 183,  511 => 182,  508 => 181,  503 => 180,  499 => 179,  494 => 177,  489 => 175,  485 => 174,  480 => 172,  477 => 171,  471 => 168,  462 => 162,  452 => 159,  448 => 158,  441 => 156,  433 => 155,  427 => 154,  423 => 153,  417 => 152,  413 => 151,  405 => 145,  400 => 144,  397 => 143,  392 => 142,  388 => 141,  383 => 139,  378 => 137,  374 => 136,  366 => 130,  356 => 127,  352 => 126,  345 => 124,  339 => 123,  333 => 122,  329 => 121,  323 => 120,  319 => 119,  311 => 113,  306 => 112,  303 => 111,  298 => 110,  294 => 109,  288 => 106,  283 => 104,  280 => 103,  272 => 99,  268 => 98,  262 => 94,  256 => 92,  251 => 90,  248 => 89,  243 => 87,  233 => 81,  227 => 77,  222 => 75,  211 => 70,  203 => 66,  195 => 65,  191 => 64,  184 => 62,  180 => 61,  174 => 58,  170 => 57,  166 => 56,  158 => 51,  150 => 50,  146 => 49,  141 => 47,  133 => 44,  128 => 42,  124 => 40,  117 => 36,  112 => 35,  109 => 34,  104 => 33,  100 => 32,  93 => 28,  85 => 25,  80 => 22,  74 => 20,  70 => 19,  67 => 18,  62 => 17,  58 => 16,  54 => 15,  49 => 13,  45 => 12,  41 => 11,  33 => 6,  30 => 5,  24 => 3,  21 => 2,  19 => 1,);
    }
}
/* {% if force_redirect %}*/
/* <script type="text/javascript">*/
/* location = '{{ force_redirect }}';*/
/* </script>*/
/* {% else %} */
/* {{ modal_form }} */
/* <div id="addressPage" class="container">*/
/* <div class="row equal">*/
/* <div id="existingAddress" class="col-md-9 animated fadeIn">*/
/* <ul class="hidden nav nav-pills nav-wizard hidden-xs">*/
/*         	<li class="locked"><a>{{ text_checkout_step_1 }}<i class="fa fa-lock"></i></a><div class="nav-arrow"></div></li>*/
/*         	<li class="active"><div class="nav-wedge"></div><a>{{ text_checkout_step_2 }}</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 id="existingAddressPanel" {{ addresses or (address_modal and not addresses) ?'':'style="display:none;"'}}>*/
/* {% if addresses and shipping_required and not xshipping_method  %} */
/* 	<div class="alert alert-danger noshipping margintop20 marginbottom0">{{ shipping_error }}</div>*/
/* {% endif %} */
/* {% if address_block or not addresses %} */
/* {% if not shipping_required or same_shipping or not addresses  %} */
/* 	<input type="hidden" name="xshipping_address_check" value="1"  />*/
/* {% else %} */
/* 	<div class="checkbox is_checkbox info-back-checkout text-center">*/
/* 		<label for="shipping_check">*/
/* 		<input type="checkbox" class="input-checkbox" name="xshipping_address_check" value="1" id="shipping_check" {{ same_address ?'checked="checked"':'' }} />{{ entry_shipping }}</label>*/
/* 	</div>*/
/* {% endif %}*/
/* {% if addresses  %} */
/* 	<div class="row">*/
/* 		<div class="col-md-12 ">              */
/* 		    <h4 style="cursor: pointer;" class="pull-right">*/
/* 		    {% if address_modal  %} */
/* 		    	<a data-toggle="modal" data-target="#addressModal"><i class="fa fa-plus"></i>&nbsp;{{ text_address_new }}</a>*/
/* 			{% else %} */
/* 				<a onclick="toggleElement('#existingAddressPanel, #addressfields');$('.col-md-3.lborder').addClass('xblur');"><i class="fa fa-plus"></i>&nbsp;{{ text_address_new }}</a>*/
/* 			{% endif %} */
/* 		    </h4>*/
/* 		</div>*/
/* 	</div>*/
/* {% endif %} */
/* 	<div class="clearfix"></div>*/
/* {% if addresses  %} */
/*               <div class="row">*/
/*                 {% for address in addresses %} */
/*                 <div class="col-sm-6 col-md-4 text-center">*/
/*                   <div class="panel panel-default">*/
/*                    <div class="panel-heading {{ address.address_id == address_id?'selected':''}}">*/
/*                     <div class="radio">                        */
/*                         <label for="p-{{ address.address_id }}">*/
/*                         <input id="p-{{ address.address_id }}" {{ address.address_id == address_id?'checked="checked"':''}} type="radio" name="address_id" value="{{ address.address_id }}" />  */
/*                           <span class="padd">{{ shipping_required and same_shipping? text_psaddress:text_paddress }}</span>                         */
/*                         </label>                        */
/*                     </div>*/
/*                     </div>                                       */
/*                     <div class="panel-body highlight">*/
/*                     <p class="text-justified">{{ address.address }}</p>*/
/*                     {{ address.default?entry_default:'<span>'~address.delete~'</span>' }}*/
/*                     <span>{{ address.edit }}</span>*/
/*                     <div class="clearfix"></div>  */
/*                     </div>*/
/*                     {% if shipping_required and not same_shipping  %} */
/*                     <div {{ same_address ?'style="display:none;"':'' }} class="panel-footer {{ address.address_id == shipping_address_id?'selected':''}}"">*/
/*                     <div class="radio">                    */
/*                         <label for="s-{{ address.address_id }}">*/
/*                       <input id="s-{{ address.address_id }}" {{ address.address_id == shipping_address_id?'checked="checked"':''}} type="radio" name="saddress_id" value="{{ address.address_id }}" />      */
/*                           {{ text_saddress }}                         */
/*                         </label>*/
/*                     </div>                  */
/*                     </div>                     */
/*                     {% endif %}                   */
/*                   </div>*/
/*                 </div>*/
/*                 <div class="clearfix visible-xs">*/
/*                 </div>*/
/*                 {% endfor %}                */
/*               </div>*/
/*             {% else %} */
/*               <div class="row">                */
/*                 <div class="col-md-12">                                                       */
/*                     <div style="background: transparent;" class="jumbotron">                                   */
/*                     <h3 class="text-center"><a style="cursor: pointer;" data-toggle="modal" data-target="#addressModal"><span style="line-height: 170px;" class="glyphicon glyphicon-plus"></span>{{ text_new_address_heading }}</a></h3>*/
/*                   </div>*/
/*                 </div>*/
/*               <div class="clearfix visible-xs">*/
/*                 </div>*/
/*               </div>*/
/*             {% endif %} */
/*             </div>*/
/*             {% else %} */
/*               {% if addresses  %} */
/*     			<div class="row">       */
/*     			{% if not shipping_required or same_shipping or not addresses  %} */
/*               <input type="hidden" name="xshipping_address_check" value="1"  />*/
/*             {% else %} */
/*               <div class="col-md-12">	*/
/*                <div class="checkbox is_checkbox info-back-checkout text-center">*/
/*               	<label for="shipping_check">*/
/*                 <input type="checkbox" class="input-checkbox" name="xshipping_address_check" value="1" id="shipping_check" {{ same_address ?'checked="checked"':'' }} />*/
/*         		{{ entry_shipping }} */
/*               	</label>*/
/*            	   </div>*/
/*            	   </div>*/
/*             {% endif %}        	              */
/*                 <div class="payment-address-panel {{ not shipping_required or shipping_required and same_address?'col-md-12':'col-md-6' }}">*/
/*                   <div class="panel-address">                   */
/*                    <div class="panel-address-heading address-type"><i class="fa fa-money" aria-hidden="true"></i>&nbsp;<span class="padd">{{ shipping_required and same_address? text_psaddress:text_paddress }}</span>*/
/*                 */
/*                    <small class="pull-right">*/
/*                    {% if address_modal  %} */
/*                    <a data-toggle="modal" data-target="#addressModal"><i class="fa fa-plus"></i>&nbsp;{{ text_address_new }}</a>*/
/*                    {% else %} */
/*                    <a onclick="toggleElement('#existingAddressPanel, #addressfields');$('.col-md-3.lborder').addClass('xblur');"><i class="fa fa-plus"></i>&nbsp;{{ text_address_new }}</a>*/
/*                    {% endif %} */
/*                    </small>*/
/*                    </div>                    */
/*                     <div class="panel-address-body payment-address">*/
/*                     	<div class="text-justified">*/
/*                     	<div class="address-list">*/
/*                     	{% set count = 1 %}                    	*/
/*                     	{% for address in addresses %} */
/*                     	{% set count = count + 1 %} */
/*                     	<label class="address-label {{address.address_id == address_id ? 'selected':'' }} " sort="{{address.address_id == address_id ? 1:count }}">*/
/*                     	<input class="input-radio" type="radio" name="address_id" value="{{ address.address_id }}" {{address.address_id == address_id?'checked="checked"':'' }} />*/
/*                     	<span class="address-string" title="{{ address.linear_address }}">{{ address.linear_address }}</span>*/
/*                     	<span class="add_delete">*/
/*                     		<span class="pull-left">{{ address.default?entry_default:address.delete }}</span>*/
/*                     		<span class="pull-right">{{ address.edit }}</span>  */
/*                     	</span>*/
/*                     	</label>*/
/*                     	{% endfor %} */
/*                     	</div>                  	*/
/*                     </div>*/
/*                   </div>*/
/*                 </div>*/
/*                 </div>*/
/*                 {% if shipping_required and not same_shipping  %} */
/*                 <div class="col-md-6 shipping-address-panel" {{ same_address ?'style="display:none;"':'' }} >*/
/*                   <div class="panel-address">                   */
/*                    <div class="panel-address-heading"><i class="fa fa-address-card-o" aria-hidden="true"></i>&nbsp;{{ text_saddress }}                   */
/*                    <small class="pull-right">*/
/*                    {% if address_modal  %} */
/*                    <a data-toggle="modal" data-target="#addressModal"><i class="fa fa-plus"></i>&nbsp;{{ text_address_new }}</a>*/
/*                    {% else %} */
/*                    <a onclick="toggleElement('#existingAddressPanel, #addressfields');$('.col-md-3.lborder').addClass('xblur');"><i class="fa fa-plus"></i>&nbsp;{{ text_address_new }}</a>*/
/*                    {% endif %}                   */
/*                    </small>                   */
/*                    </div>                    */
/*                     <div class="panel-address-body shipping-address">*/
/*                     	<div class="text-justified" >                    	*/
/*                     	<div class="address-list">*/
/*                     	{% set count = 1 %}                    	*/
/*                     	{% for address in addresses %} */
/*                     	{% set count = count + 1 %} */
/*                     	<label class="address-label {{address.address_id == shipping_address_id?'selected':'' }}" sort="{{address.address_id == shipping_address_id ? 1:count }}">*/
/*                     	<input class="input-radio" data-formatted-address="{{ address.address }}" type="radio" name="saddress_id" value="{{ address.address_id }}" {{address.address_id == shipping_address_id?'checked="checked"':'' }} />*/
/*                     	<span class="address-string" title="{{ address.linear_address }}">{{ address.linear_address }}</span>*/
/*                     	<span class="add_delete">*/
/*                     		<span class="pull-left">{{ address.default?entry_default:address.delete }}</span>*/
/*                     		<span class="pull-right">{{ address.edit }}</span>  */
/*                     	</span>*/
/*                     	</label>*/
/*                     	{% endfor %} */
/*                     	</div>*/
/*                     	</div>                    	*/
/*                     </div>*/
/*                   </div>*/
/*                 </div>*/
/*                 {% endif %}                            */
/*                <div class="clearfix"></div>                */
/*               </div>*/
/*             {% endif %} */
/*             {% if shipping_required or display_comments  %} */
/*             <div class="row">*/
/*             	{% if shipping_required  %} */
/*                 <div class="{{ display_comments?'col-md-6':'col-md-12' }}">*/
/*                 	<div id="shipping_method" class="container_panel">                	              */
/*         			<div class="heading"><i class="fa fa-truck" aria-hidden="true"></i>&nbsp;{{ text_shipping_method }}</div>*/
/*           			<div class="shipping-table">*/
/*           			{% if addresses and shipping_required and not xshipping_method  %} */
/* 					<span class="xerror noshipping marginbottom0">{{ shipping_error }}</span>*/
/* 					{% else %} */
/* 					{{ xshipping_method }} */
/* 					{% endif %} */
/* 					</div>*/
/*           			</div>*/
/*                 </div>*/
/*                 {% endif %} */
/*                 {% if addresses and display_comments  %} */
/*                 <div class="{{ shipping_required?'col-md-6':'col-md-12' }}">*/
/*                 	<div id="comment">*/
/*                 		<div id="order-comment" class="container_panel" >              */
/*         					<div class="heading"><i class="fa fa-comment"></i>&nbsp;{{ comment_text }}</div>*/
/*         					<textarea name="comment" class="form-control" rows="3" placeholder="{{ comment_placeholder_text }}">{{ comment }}</textarea>*/
/*         				</div>*/
/*         			</div>*/
/*                  </div>*/
/*                 {% endif %} */
/*              </div> */
/* 	     <div class="clearfix"></div>*/
/* 	     {% endif %} */
/* 	     {% if addresses  %}*/
/* 	     {% if isMobile %} */
/* 	      	<div id="options" class="animated1 zoomIn1">{{ xoptions }}</div>*/
/* 	      	<div class="clearfix"></div>*/
/* 		{% endif %} */
/* 	     {% if error_stock_warning is not defined and error_minimum_warning is not defined  %}   */
/*        		<div class="row margintop20">*/
/*        			<div id="agree-panel" {{ addresses and shipping_required and not xshipping_method?'style="display:none;"':'' }} class="col-md-12 agree-panel">*/
/*        			{% if text_agree  %}*/
/*        				<div id="agreeText" class="col-md-6 agreeText">*/
/*           			<label class="pointer checkbox is_checkbox"><input type="checkbox" class="input-checkbox" name="agree" value="1" {{ agree?'checked="checked"':'' }}><span>{{ text_agree }}</span></label>          			*/
/*     				</div>*/
/*     			{% endif %}*/
/*     			<div class="{{ text_agree?'col-md-6 large-pull-right paddingright0':'col-md-12 nopadding' }}">*/
/*     				<div class="progress progress-continue-disabled" id="progress-continue-disabled" {{ text_agree and not agree?'style="display: block"':'style="display: none"' }} >*/
/*                     	<div data-trigger="focus" tabindex="0" data-placement="top" data-toggle="popover" title="{{ info_title }}" data-content="{{ agree_content }}" class="progress-bar" role="progressbar" id="button-payment-disabled" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100">*/
/*                       		<span>{{ text_payment_continue }}<i class="fa fa-lock"></i></span>*/
/*                     	</div>*/
/*                 	</div>*/
/*         			<div class="progress progress-continue" id="progress-continue" {{ text_agree and not agree?'style="display: none"':'' }} >*/
/*                     	<div class="progress-bar progress-bar-success" onclick="callPaymentFromAddress();" role="progressbar" id="button-payment" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 100%">*/
/*                       		<span>{{ text_payment_continue }}</span>*/
/*                     	</div>*/
/*                  	</div>*/
/*                  </div>*/
/*         		</div>*/
/*         		</div>*/
/* 	        {% else %} */
/* 		        {% if error_stock_warning is defined  %} */
/* 					<div class="alert alert-danger noshipping margintop20 marginbottom0">{{ error_stock_warning }}</div>*/
/* 				{% endif %} */
/* 				{% if error_minimum_warning is defined  %} */
/* 					<div class="alert alert-danger noshipping margintop20 marginbottom0">{{ error_minimum_warning }}</div>*/
/* 				{% endif %} */
/* 	        {% endif %}		*/
/* 	      {% endif %}               */
/*              </div>*/
/*             {% endif %} */
/*             <div  id="addressfields" {{ not addresses and not address_modal ?'':'style="display:none;"'}} class="inlineaddress margintop20  zoomIn">{{ inline_form }}</div> */
/*       		<div id="editAddressFields" style="display: none;" class="inlineaddress margintop20 animated1 zoomIn1"></div>*/
/*             </div>*/
/* <div class="col-md-3 lborder{{ not addresses?' xblur':'' }}">  */
/* <div id="sLoader" class="loader"></div>  */
/*       {% if address_block and shipping_required  %} */
/*       {% if addresses  %} */
/*       	<div id="shipping_method" class="panel panel-green1 clearfix animated1 zoomIn1">*/
/* 		<div class="panel-heading"><i class="fa fa-truck" aria-hidden="true"></i>&nbsp;{{ text_shipping_method }}</div>*/
/* 		<div class="shipping-table">*/
/* 		{% if shipping_required and not xshipping_method  %} */
/* 		<span class="xerror noshipping marginbottom0">{{ shipping_error }}</span>*/
/* 		{% else %} */
/* 		{{ xshipping_method }} */
/* 		{% endif %} */
/* 		</div>*/
/* 		</div>*/
/* 		<div class="clearfix"></div>*/
/* 		{% endif %}		*/
/* 		{% endif %} */
/* 	   {% if addresses and address_block and isMobile %}*/
/* 	      	<div id="options" class="animated1 zoomIn1">{{ xoptions }}</div>*/
/* 	      	<div class="clearfix"></div>*/
/*       	{% endif %}      	*/
/*       	{% if not shipping_required and not isMobile %}*/
/*       	<div id="xcart" class="animated1 zoomIn1">{{ xcart }}</div>*/
/*       	<div class="clearfix"></div>*/
/*       	{% endif %}*/
/*        {% if addresses and address_block  %} */
/*        {% if error_stock_warning is not defined and error_minimum_warning is not defined  %}      */
/*        			<div id="agree-panel" {{ addresses and shipping_required and not xshipping_method?'style="display:none;"':'' }} class="agree-panel animated1 zoomIn1">*/
/*        			{% if text_agree  %}*/
/*        				<div id="agreeText" class="agreeText agreeTextalternate text-center">*/
/*           				<label class="pointer checkbox is_checkbox"><input type="checkbox" class="input-checkbox" name="agree" value="1" {{ agree?'checked="checked"':'' }}><span>{{ text_agree }}</span></label>*/
/*     				</div>       				*/
/*     			{% endif %}    			*/
/*     			<div class="progress progress-continue-disabled" id="progress-continue-disabled" {{ text_agree and not agree?'style="display: block"':'style="display: none"' }} >*/
/*                     	<div data-trigger="focus" tabindex="0" data-placement="top" data-toggle="popover" title="{{ info_title }}" data-content="{{ agree_content }}" class="progress-bar" role="progressbar" id="button-payment-disabled" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100">*/
/*                       		<span>{{ text_payment_continue }}<i class="fa fa-lock"></i></span>*/
/*                     	</div>*/
/*                 </div>*/
/*         		<div class="progress progress-continue" id="progress-continue" {{ text_agree and not agree?'style="display: none"':'' }} >*/
/*                   	<div class="progress-bar progress-bar-success" onclick="callPaymentFromAddress();" role="progressbar" id="button-payment" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 100%">*/
/*                   		<span>{{ text_payment_continue }}</span>*/
/*                    	</div>*/
/*                 	</div>*/
/*                  </div>  */
/*        {% else %} */
/* 	        {% if error_stock_warning is defined  %} */
/* 				<div class="alert alert-danger noshipping margintop20 marginbottom0">{{ error_stock_warning }}</div>*/
/* 			{% endif %} */
/* 			{% if error_minimum_warning is defined  %} */
/* 				<div class="alert alert-danger noshipping margintop20 marginbottom0">{{ error_minimum_warning }}</div>*/
/* 			{% endif %} */
/*         {% endif %}	    		*/
/* */
/*       {% endif %} */
/* 	  {% if shipping_required or isMobile %}*/
/*       <div id="xcart" class="animated1 zoomIn1">{{ xcart }}</div>*/
/*       <div class="clearfix"></div>*/
/*       {% endif %}*/
/*       {% if not isMobile %}*/
/*       <div id="options" class="animated1 zoomIn1">{{ xoptions }}</div>*/
/*       <div class="clearfix"></div>*/
/*       {% endif %}*/
/* 	  <div id="totals" class="animated1 zoomIn1">{{ xtotals }}</div>           */
/*       <div class="clearfix"></div>*/
/*     </div>*/
/*   </div>*/
/* {% 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 %}	      */
/*  $("#address_fields #{{ 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">*/
/* address_block = {{ address_block?'true':'false' }};*/
/* {% if not addresses  %} */
/* $(document).ready(function() {*/
/*     $('#addressModal').modal('show');*/
/* });*/
/* {% else %} */
/* $(document).ready(function() {*/
/* 	$('body').removeClass('modal-open');*/
/* });*/
/* {% endif %} */
/* $(function () {*/
/*     $('[data-toggle="tooltip"]').tooltip();*/
/*     $('[data-toggle="popover"]').popover();*/
/* });*/
/* $('.date').datetimepicker({*/
/* 	language: '{{ datepicker }}',*/
/* 	pickTime: false*/
/* });*/
/* $('.time').datetimepicker({*/
/* 	language: '{{ datepicker }}',*/
/* 	pickDate: false*/
/* });*/
/* $('.datetime').datetimepicker({*/
/* 	language: '{{ datepicker }}',*/
/* 	pickDate: true,*/
/* 	pickTime: true*/
/* });*/
/* </script>*/
/* {% endif %} */
/* */
