(()=>{"use strict";var e={d:(t,a)=>{for(var n in a)e.o(a,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:a[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{STORE_KEY:()=>r,store:()=>f});var a={};e.r(a),e.d(a,{addCanceledEmail:()=>E,setCustomerContextId:()=>m,setFastlane:()=>u,setPaymentToken:()=>i});var n={};e.r(n),e.d(n,{getCanceledEmails:()=>P,getFastlane:()=>C,getPaymentToken:()=>y,isCustomerFound:()=>T});const o=window.wp.data,r="wc-ppcp/store/checkout",l="SET_FASTLANE",s="SET_PAYMENT_TOKEN",c="SET_CUSTOMER_CONTEXT",d="ADD_CANCELED_EMAIL",i=e=>({type:s,token:e}),u=e=>({type:l,fastlane:e}),m=e=>({type:c,id:e}),E=e=>({type:d,email:e}),p={token:null,fastlane:null,canceledEmails:[],customerContextId:null},y=e=>e.token,C=e=>e.fastlane,T=e=>!!e.customerContextId,P=e=>e.canceledEmails,b={reducer:function(e=p,t){let a=e;switch(t.type){case l:a={...e,fastlane:t.fastlane};break;case s:a={...e,token:t.token};break;case c:a={...e,customerContextId:t.id};break;case d:a={...e,canceledEmails:[...e.canceledEmails,t.email]}}return a},selectors:n,actions:a},f=(0,o.createReduxStore)(r,b);(0,o.register)(f),(this.wcPPCP=this.wcPPCP||{}).blockData=t})();
//# sourceMappingURL=block-data.js.map