(()=>{"use strict";const e=window.wc.blocksCheckout,t=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,o=window.wp.data,a=window.wc.wcBlocksData,s=window.wc.wcSettings;(0,e.registerCheckoutBlock)({metadata:t,component:({checkoutExtensionData:e,extensions:t})=>{const{createErrorNotice:i}=(0,o.dispatch)("core/notices"),{__internalSetActivePaymentMethod:n}=(0,o.dispatch)(a.PAYMENT_STORE_KEY),r=(0,s.getSetting)("ppcp_data");return(0,c.useEffect)(()=>{n&&r.errorMessage&&(i(r.errorMessage,{context:"wc/checkout"}),n("ppcp"))},[]),null}}),(this.wcPPCP=this.wcPPCP||{})["checkout-block"]={}})();
//# sourceMappingURL=checkout-block.js.map