Please fill in your shipping details.
\n \n ");var t=e.value("countryCode"),n=e.value("stateCode"),i=r.states[t]&&r.states[t][n]?r.states[t][n]:n;return r.hasEmptyValues(e)?'\n \n \n
").concat(e.value("email"),"
\n
").concat(e.value("company"),"
\n
").concat(e.value("firstName")," ").concat(e.value("lastName"),"
\n
").concat(e.value("street1"),"
\n
").concat(e.value("street2"),"
\n
").concat(e.value("city")).concat(i?", "+i:""," ").concat(e.value("postCode"),"
\n
").concat(function(e,t){if(!t)return"";var n=document.querySelector("#billing_country");if(!n)return t;var i=n.querySelector('option[value="'.concat(t,'"]'));return i?i.textContent:t}(0,t),"
\n
").concat(e.value("phone"),"
\n
\n ")},fields:{email:{valuePath:"email"},firstName:{key:"firstName",selector:"#shipping_first_name_field",valuePath:"shipping.name.firstName",inputName:"shipping_first_name"},lastName:{selector:"#shipping_last_name_field",valuePath:"shipping.name.lastName",inputName:"shipping_last_name"},street1:{selector:"#shipping_address_1_field",valuePath:"shipping.address.addressLine1",inputName:"shipping_address_1"},street2:{selector:"#shipping_address_2_field",valuePath:null,inputName:"shipping_address_2"},postCode:{selector:"#shipping_postcode_field",valuePath:"shipping.address.postalCode",inputName:"shipping_postcode"},city:{selector:"#shipping_city_field",valuePath:"shipping.address.adminArea2",inputName:"shipping_city"},stateCode:{selector:"#shipping_state_field",valuePath:"shipping.address.adminArea1",inputName:"shipping_state"},countryCode:{selector:"#shipping_country_field",valuePath:"shipping.address.countryCode",inputName:"shipping_country"},company:{selector:"#shipping_company_field",valuePath:null,inputName:"shipping_company"},shipDifferentAddress:{selector:"#ship-to-different-address",valuePath:null,inputName:"ship_to_different_address",valueCallback:function(){return!0}},phone:{valueCallback:function(e){var t,n,i="",r=null==e||null===(t=e.shipping)||void 0===t||null===(t=t.phoneNumber)||void 0===t?void 0:t.countryCode,a=null==e||null===(n=e.shipping)||void 0===n||null===(n=n.phoneNumber)||void 0===n?void 0:n.nationalNumber;return r&&(i="+".concat(r," ")),i+a}}}})},(t=[{key:"hasEmptyValues",value:function(e){return!(e.value("email")&&e.value("firstName")&&e.value("lastName")&&e.value("street1")&&e.value("city"))}},{key:"isActive",value:function(){return this.group.active}},{key:"activate",value:function(){this.group.activate(),this.group.syncDataToForm()}},{key:"deactivate",value:function(){this.group.deactivate()}},{key:"refresh",value:function(){this.group.refresh()}},{key:"setData",value:function(e){this.group.setData(e),this.group.syncDataToForm()}},{key:"toSubmitData",value:function(e){return this.group.toSubmitData(e)}}])&&z(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function X(e,t){for(var n=0;n