(()=>{"use strict";const external_wc_wcBlocksRegistry_namespaceObject=window.wc.wcBlocksRegistry,external_wc_wcSettings_namespaceObject=window.wc.wcSettings,external_wp_data_namespaceObject=window.wp.data,external_wp_hooks_namespaceObject=window.wp.hooks,external_React_namespaceObject=window.React,external_wp_htmlEntities_namespaceObject=window.wp.htmlEntities,settings=(0,external_wc_wcSettings_namespaceObject.getSetting)("wc-bookings-gateway_data",{}),label=(0,external_wp_htmlEntities_namespaceObject.decodeEntities)(settings.title),orderButtonText=(0,external_wp_htmlEntities_namespaceObject.decodeEntities)(settings.order_button_text),Content=()=>(0,external_wp_htmlEntities_namespaceObject.decodeEntities)(settings.description||""),check_availability={name:"wc-bookings-gateway",content:(0,external_React_namespaceObject.createElement)(Content,null),label:(0,external_React_namespaceObject.createElement)((props=>{const{PaymentMethodLabel}=props.components;return(0,external_React_namespaceObject.createElement)(PaymentMethodLabel,{text:label})}),null),edit:(0,external_React_namespaceObject.createElement)(Content,null),canMakePayment:()=>!0,ariaLabel:label,supports:{features:settings.supports},placeOrderButtonLabel:orderButtonText},payment_method_settings=(0,external_wc_wcSettings_namespaceObject.getSetting)("wc-bookings-gateway_data",{}),{PAYMENT_STORE_KEY}=wc.wcBlocksData;(0,external_wc_wcBlocksRegistry_namespaceObject.registerPaymentMethod)(check_availability),payment_method_settings.is_enabled&&(0,external_wp_hooks_namespaceObject.addAction)("experimental__woocommerce_blocks-checkout-render-checkout-form","woocommerce-bookings-gateway",(()=>(0,external_wp_data_namespaceObject.dispatch)(PAYMENT_STORE_KEY).__internalSetActivePaymentMethod("wc-bookings-gateway")))})();
//# sourceMappingURL=blocks.js.map