Current File : /home/kelaby89/muzza.fit/wp-content/plugins/woo-stripe-payment/assets/build/link-express-cart.js
/*! For license information please see link-express-cart.js.LICENSE.txt */
(()=>{"use strict";var e={95:(e,t,n)=>{function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,o=arguments,n=m(n=t),function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(n,o||[],m(e).constructor):n.apply(e,o));var e,n,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(t,e),n=t,o=[{key:"createExpressElement",value:function(){this.elements&&(this.expressCheckoutElement=this.elements.create("expressCheckout",{buttonHeight:parseInt(this.params.button.height),paymentMethods:{applePay:"applePay"===this.type?"always":"never",googlePay:"googlePay"===this.type?"always":"never",amazonPay:"amazonPay"===this.type?"auto":"never",paypal:"never",klarna:"klarna"===this.type?"auto":"never",link:"link"===this.type?"auto":"never"},emailRequired:!0,phoneNumberRequired:!0,billingAddressRequired:!0,shippingAddressRequired:this.needs_shipping()}),this.expressCheckoutElement.on("ready",this.onReady.bind(this)),this.expressCheckoutElement.on("loaderror",this.onLoadError.bind(this)),this.expressCheckoutElement.on("click",this.onClickElement.bind(this)),this.expressCheckoutElement.on("confirm",this.onConfirm.bind(this)),this.expressCheckoutElement.on("cancel",this.onCancel.bind(this)),this.expressCheckoutElement.on("shippingaddresschange",this.onShippingAddressChange.bind(this)),this.expressCheckoutElement.on("shippingratechange",this.onShippingRateChange.bind(this)))}},{key:"onClickElement",value:function(e){var t={};this.params.items.reduce((function(e,t){return e+t.amount}),0)===parseFloat(this.params.total_cents)&&(t.lineItems=this.params.items),this.needs_shipping()&&this.params.shipping_options.length&&(t.shippingRates=this.params.shipping_options),e.resolve(t),this.modalOpen=!0}},{key:"onReady",value:function(){}},{key:"onConfirm",value:(p=h(s().mark((function e(t){var n,r,o,i,c,l,p,h,f,y,d,m,v;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.billingDetails,(r=t.shippingAddress)&&(o=r.name,i=r.address,c={name:o,shipping_address_1:i.line1||"",shipping_address_2:i.line2||"",shipping_city:i.city||"",shipping_state:i.state||"",shipping_postcode:i.postal_code||"",shipping_country:i.country||""},this.populate_shipping_fields(c)),!n){e.next=22;break}return l=n.name,p=n.email,h=void 0===p?"":p,f=n.phone,y=void 0===f?"":f,d=n.address,m=u(u({name:l,billing_address_1:d.line1||"",billing_address_2:d.line2||"",billing_city:d.city||"",billing_state:d.state||"",billing_postcode:d.postal_code||"",billing_country:d.country||""},(0,a.isEmail)(h)&&{billing_email:h}),(0,a.isPhoneNumber)(y)&&{billing_phone:y}),this.populate_billing_fields(m),this.maybe_set_ship_to_different(),this.fields.toFormFields({update_shipping_method:!1}),e.prev=8,e.next=11,this.elements.submit();case 11:return e.next=13,this.stripe.createPaymentMethod({elements:this.elements});case 13:if(!(v=e.sent).error){e.next=16;break}return e.abrupt("return",this.submit_error(v.error));case 16:this.on_token_received(v.paymentMethod),e.next=22;break;case 19:return e.prev=19,e.t0=e.catch(8),e.abrupt("return",this.submit_error(e.t0));case 22:case"end":return e.stop()}}),e,this,[[8,19]])}))),function(e){return p.apply(this,arguments)})},{key:"onShippingAddressChange",value:(l=h(s().mark((function e(t){var n,r,o,i,a,c,l,p;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.reject,r=t.resolve,o=t.address,e.prev=1,e.next=4,this.update_shipping_address({shippingAddress:o});case 4:i=e.sent,a=i.newData,c=a.total,l=a.displayItems,p=a.shippingOptions,this.elements.update({amount:c.amount}),r(u({shippingRates:p},l.reduce((function(e,t){return e+t.amount}),0)===c.amount&&{lineItems:l})),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),n();case 13:case"end":return e.stop()}}),e,this,[[1,10]])}))),function(e){return l.apply(this,arguments)})},{key:"onShippingRateChange",value:(c=h(s().mark((function e(t){var n,r,o,i,a,c,l,p;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.reject,r=t.resolve,o=t.shippingRate,e.prev=1,e.next=4,this.update_shipping_method({shippingOption:o});case 4:i=e.sent,a=i.newData,c=a.total,l=a.displayItems,p=a.shippingOptions,this.elements.update({amount:c.amount}),r(u({shippingRates:p},l.reduce((function(e,t){return e+t.amount}),0)===c.amount&&{lineItems:l})),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),n();case 13:case"end":return e.stop()}}),e,this,[[1,10]])}))),function(e){return c.apply(this,arguments)})},{key:"onCancel",value:function(){this.modalOpen=!1}},{key:"mountPaymentElement",value:function(){try{this.expressCheckoutElement&&(0,i.default)(this.elementSelector).length&&0===(0,i.default)(this.elementSelector).find("iframe").length&&(this.expressCheckoutElement.unmount(),this.expressCheckoutElement.mount(this.elementSelector))}catch(e){console.log("Error mounting expressCheckoutElement. ",e)}}},{key:"updatePaymentElement",value:function(){try{this.elements&&this.elements.update(this.get_element_options())}catch(e){console.log("Error updating expressCheckoutElement. ",e)}}},{key:"onLoadError",value:function(e){(0,i.default)(this.elementSelector).hide(),console.log("Error loading expressCheckout Element: ",e)}},{key:"get_element_options",value:function(){var e=u({currency:this.params.currency.toLowerCase()},this.params.elementOptions);return delete e.paymentMethodTypes,(this.isPaymentMode()||this.isSubscriptionMode())&&(e.amount=parseFloat(this.params.total_cents)>0?parseFloat(this.params.total_cents):100),e}},{key:"get_gateway_data",value:function(){return this.params}},{key:"isPaymentMode",value:function(){return"payment"===this.params.elementOptions.mode}},{key:"isSubscriptionMode",value:function(){return"subscription"===this.params.elementOptions.mode}},{key:"isSetupMode",value:function(){return"setup"===this.params.elementOptions.mode}},{key:"needs_shipping",value:function(){return"1"===this.params.needs_shipping||!0===this.params.needs_shipping}},{key:"get_currency",value:function(){return this.params.currency}},{key:"map_address",value:function(e){return{city:e.city,postcode:e.postal_code,state:e.state,country:e.country}}},{key:"get_form",value:function(){return(0,i.default)(this.elementSelector).closest("form")}},{key:"set_nonce",value:function(e){(0,i.default)('[name="stripe_link_checkout_token_key"]').length||(0,i.default)(this.elementSelector).append('<input type="hidden" name="stripe_link_checkout_token_key"/>'),(0,i.default)('[name="stripe_link_checkout_token_key"]').val(e),this.fields.set(this.gateway_id+"_token_key",e)}},{key:"onHashChange",value:function(e){var t=window.location.hash.match(/response=(.*)/);if(t)try{var n=JSON.parse(window.atob(decodeURIComponent(t[1])));n&&n.hasOwnProperty("client_secret")&&n.gateway_id===this.gateway_id&&this.modalOpen&&(history.pushState({},"",window.location.pathname),"payment_intent"===n.type?this.processPaymentIntent(n):this.processSetupIntent(n))}catch(e){}return!0}},{key:"processPaymentIntent",value:function(e){var t=this;this.stripe.confirmPayment({clientSecret:e.client_secret,redirect:"if_required",confirmParams:u({return_url:e.return_url,payment_method_data:{billing_details:e.billing_details||this.get_billing_details()}},e.confirmation_args&&e.confirmation_args)}).then((function(n){if(n.error)return t.payment_token_received=!1,t.submit_error(n.error);var r=decodeURI(e.return_url);if(r+="&"+i.default.param({_stripe_local_payment:t.gateway_id,payment_intent:n.paymentIntent.id,payment_intent_client_secret:n.paymentIntent.client_secret}),["promptpay","swish","paynow","cashapp"].includes(t.paymentMethodType)){if("requires_action"===n.paymentIntent.status)return t.get_form().unblock().removeClass("processing");if("requires_payment_method"===n.paymentIntent.status)return t.get_form().unblock().removeClass("processing"),t.submit_error({code:n.paymentIntent.last_payment_error.code})}window.location.href=r})).catch((function(e){return t.submit_error(e)}))}},{key:"processSetupIntent",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.stripe.confirmSetup(u({elements:this.elements,clientSecret:t.client_secret,redirect:"if_required"},t&&{confirmParams:u(u({},t.return_url&&{return_url:t.return_url}),{},{payment_method_data:{billing_details:this.get_billing_details()}},t.confirmParams&&t.confirmParams)})).then((function(t){if(t.error)return e.payment_token_received=!1,e.submit_error(t.error);e.setupIntent=t.setupIntent,e.payment_token_received=!0,e.set_nonce(t.setupIntent.payment_method),e.set_intent(t.setupIntent.id),e.get_form().removeClass("processing"),e.get_form().trigger("submit")})).catch((function(t){return e.submit_error(t)}))}}],o&&f(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,c,l,p}(e)};var o,i=(o=n(428))&&o.__esModule?o:{default:o},a=n(832);function s(){s=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(e){p=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new R(r||[]);return i(a,"_invoke",{value:S(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var y="suspendedStart",d="suspendedYield",m="executing",v="completed",_={};function g(){}function b(){}function w(){}var k={};p(k,c,(function(){return this}));var O=Object.getPrototypeOf,E=O&&O(O(M([])));E&&E!==n&&o.call(E,c)&&(k=E);var P=w.prototype=g.prototype=Object.create(k);function x(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==r(p)&&o.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(p).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function S(t,n,r){var o=y;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=C(s,r);if(c){if(c===_)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===y)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?v:d,u.arg===_)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=v,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),_;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,_;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,_):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,_)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=w,i(P,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:b,configurable:!0}),b.displayName=p(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,p(e,l,"GeneratorFunction")),e.prototype=Object.create(P),e},t.awrap=function(e){return{__await:e}},x(j.prototype),p(j.prototype,u,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(h(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(P),p(P,l,"Generator"),p(P,c,(function(){return this})),p(P,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=M,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,_):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),_},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),_}},t}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function h(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){p(i,r,o,a,s,"next",e)}function s(e){p(i,r,o,a,s,"throw",e)}a(void 0)}))}}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function y(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}},428:e=>{e.exports=window.jQuery},705:e=>{e.exports=window.wc_stripe},832:e=>{e.exports=window.wp.url}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(()=>{var e=n(705),t=o(n(428)),r=(n(832),o(n(95)));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="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},i(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function c(e,t,n){return t=p(t),function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(this,arguments)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function f(t){this.type="link",this.elementSelector="li.payment_method_stripe_link_checkout",e.BaseGateway.call(this,t)}f.prototype=Object.assign(f.prototype,e.BaseGateway.prototype,e.CartGateway.prototype);var y=function(n){function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),c(this,r,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(r,n),o=r,(s=[{key:"initialize",value:function(){this.modalOpen=!1,e.CartGateway.call(this),this.createExpressElement(),this.mountPaymentElement(),window.addEventListener("hashchange",this.onHashChange.bind(this))}},{key:"onReady",value:function(e){var n=(e.availablePaymentMethods||{}).link;void 0!==n&&n?((0,t.default)(this.elementSelector).show().addClass("active"),(0,t.default)(".wc-stripe-banner-checkout").addClass("active"),this.add_cart_totals_class()):(0,t.default)(this.elementSelector).hide()}},{key:"updated_html",value:function(e){var n=(0,t.default)(".woocommerce_"+this.gateway_id+"_gateway_data").data("gateway");"object"===i(n)&&(this.params=n),this.updatePaymentElement(),this.mountPaymentElement()}},{key:"set_selected_shipping_methods",value:function(e){this.fields.set("shipping_method",e)}},{key:"set_nonce",value:function(e){l(p(r.prototype),"set_nonce",this).call(this,e),this.fields.set("stripe_link_checkout_token_key",e)}}])&&a(o.prototype,s),Object.defineProperty(o,"prototype",{writable:!1}),o;var o,s}((0,r.default)(f));"undefined"!=typeof wc_stripe_link_cart_params&&new y(wc_stripe_link_cart_params)})(),(this.wcStripeModules=this.wcStripeModules||{}).linkExpressCart={}})();
//# sourceMappingURL=link-express-cart.js.map
Page not found – Hello World !