(()=>{"use strict";var e={d:(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[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:()=>a,store:()=>h});var r={};e.r(r),e.d(r,{addCanceledEmail:()=>y,setCustomerContextId:()=>d,setFastlane:()=>f,setPaymentToken:()=>s});var n={};e.r(n),e.d(n,{getCanceledEmails:()=>S,getFastlane:()=>v,getPaymentToken:()=>P,isCustomerFound:()=>j});const o=window.wp.data;var a="wc-ppcp/store/checkout",c="SET_FASTLANE",i="SET_PAYMENT_TOKEN",u="SET_CUSTOMER_CONTEXT",l="ADD_CANCELED_EMAIL",s=function(e){return{type:i,token:e}},f=function(e){return{type:c,fastlane:e}},d=function(e){return{type:u,id:e}},y=function(e){return{type:l,email:e}};function p(e){return function(e){if(Array.isArray(e))return b(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?b(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var E={token:null,fastlane:null,canceledEmails:[],customerContextId:null},P=function(e){return e.token},v=function(e){return e.fastlane},j=function(e){return!!e.customerContextId},S=function(e){return e.canceledEmails},w={reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E,t=arguments.length>1?arguments[1]:void 0,r=e;switch(t.type){case c:r=O(O({},e),{},{fastlane:t.fastlane});break;case i:r=O(O({},e),{},{token:t.token});break;case u:r=O(O({},e),{},{customerContextId:t.id});break;case l:r=O(O({},e),{},{canceledEmails:[].concat(p(e.canceledEmails),[t.email])})}return r},selectors:n,actions:r},h=(0,o.createReduxStore)(a,w);(0,o.register)(h),(this.wcPPCP=this.wcPPCP||{}).blockData=t})();
//# sourceMappingURL=block-data.js.map