(()=>{"use strict";var e={};(e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e);const t=window.wc.blocksCheckout,o=JSON.parse('{"apiVersion":2,"name":"wc-ppcp/checkout-block","version":"2.0.0","title":"PayPal checkout block","category":"woocommerce","description":"Adds an invisible block to the checkout page.","supports":{"html":false,"align":false,"multiple":false,"reusable":false},"parent":["woocommerce/checkout-fields-block"],"attributes":{"lock":{"type":"object","default":{"remove":true,"move":true}}},"textdomain":"pymntpl-paypal-woocommerce"}'),c=window.wp.element,a=window.wp.data,n=window.wc.wcBlocksData,i=window.wc.wcSettings;(0,t.registerCheckoutBlock)({metadata:o,component:function(e){e.checkoutExtensionData,e.extensions;var t=(0,a.dispatch)("core/notices").createErrorNotice,o=(0,a.dispatch)(n.PAYMENT_STORE_KEY).__internalSetActivePaymentMethod,r=(0,i.getSetting)("ppcp_data");return(0,c.useEffect)((function(){o&&r.errorMessage&&(t(r.errorMessage,{context:"wc/checkout"}),o("ppcp"))}),[]),null}}),(this.wcPPCP=this.wcPPCP||{})["checkout-block"]=e})();
//# sourceMappingURL=checkout-block.js.map