(()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.jQuery;var o=e.n(t);const n=window.wcPPCP.utils;let r;o()(document).on("wfocuBucketCreated",async(e,t)=>{r=t,window?.wfocu_vars?.wcPPCPSettings&&(window.wcPPCPSettings=window.wfocu_vars.wcPPCPSettings)}),o()(document).on("wfocu_external",(e,t)=>{r=t,r.inOfferTransaction=!0,c().then(({redirect:e})=>{window.location=e}).catch(e=>{r.swal.show({text:wfocu_vars?.messages?.offer_msg_pop_failure,type:"warning"}),window.location=wfocu_vars.order_received_url})});const c=()=>new Promise((e,t)=>{o().ajax({method:"post",url:(0,n.getRestRoute)("funnelkit/upsell/order"),data:r.getBucketSendData()}).done(t=>{e(t)}).fail(e=>{t(e)})});(this.wcPPCP=this.wcPPCP||{})["wc-ppcp-funnelkit-upsell"]={}})();
//# sourceMappingURL=wc-ppcp-funnelkit-upsell.js.map