(()=>{var e,t,n,r,o,i,a,c,u,s,l,d={318:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}}},465:(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadStripe:()=>l});var r="https://js.stripe.com/v3",o=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,i="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",a=null,c=function(e,t,n){if(null===e)return null;var r=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.12.1",startTime:t})}(r,n),r},u=Promise.resolve().then((function(){return e=null,null!==a?a:a=new Promise((function(t,n){if("undefined"!=typeof window)if(window.Stripe&&e&&console.warn(i),window.Stripe)t(window.Stripe);else try{var a=function(){for(var e=document.querySelectorAll('script[src^="'.concat(r,'"]')),t=0;t<e.length;t++){var n=e[t];if(o.test(n.src))return n}return null}();a&&e?console.warn(i):a||(a=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(r).concat(t);var o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(n),n}(e)),a.addEventListener("load",(function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))})),a.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(e){return void n(e)}else t(null)}));var e})),s=!1;u.catch((function(e){s||console.warn(e)}));var l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];s=!0;var r=Date.now();return u.then((function(e){return c(e,t,r)}))}},609:e=>{"use strict";e.exports=window.jQuery}},p={};function f(e){if(p[e])return p[e].exports;var t=p[e]={exports:{}};return d[e](t,t.exports,f),t.exports}f.d=(e,t)=>{for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t=f(318),n=f(465),r=t(f(609)),o={},i=function(e,t){s("bucket",t)},a=function(t){var n=t.newURL.match(/response=(.*)/);if(n){var r,o,i=JSON.parse(window.atob(decodeURIComponent(n[1])));null===(r=u("bucket"))||void 0===r||null===(o=r.swal)||void 0===o||o.hide(),s("paymentIntent",i.payment_intent),history.pushState({},"",window.location.pathname+window.location.search),e.confirmCardPayment(i.client_secret).then((function(e){e.error?l():(s("paymentComplete",!0),u("bucket").sendBucket())})).catch((function(e){console.log(e)}))}},c=function(e){return e._payment_intent=u("paymentIntent"),e},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o.hasOwnProperty(e)||(o[e]=t),o[e]},s=function(e,t){o[e]=t},l=function(){u("bucket").inOfferTransaction=!1,u("bucket").EnableButtonState(),u("bucket").HasEventRunning=!1},(0,r.default)(document).on("wfocuBucketCreated",(function(t,l){var d,p;o=null===(d=window)||void 0===d||null===(p=d.wfocu_vars)||void 0===p?void 0:p.stripeData,s("bucket",l),(0,r.default)(document).on("wfocu_external",i),window.addEventListener("hashchange",a),wfocuCommons.addFilter("wfocu_front_charge_data",c),(0,n.loadStripe)(u("publishableKey",u("account")?{stripeAccount:u("account")}:{})).then((function(t){e=t})).catch((function(e){}))})),(this.wpp_payment=this.wpp_payment||{})["wpp-payment-woofunnels"]={}})();
//# sourceMappingURL=wpp-payment-woofunnels.js.map