(()=>{var e={694:(e,t,n)=>{"use strict";var r=n(925);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,s){if(s!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},556:(e,t,n)=>{e.exports=n(694)()},925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.apply(null,arguments)}const t=window.wp.element;var r=n(556),a=n.n(r);const o=({emitResponse:e,eventRegistration:n,backendConfig:r})=>(((e,n,r)=>{const{onPaymentSetup:a}=n;(0,t.useEffect)((()=>a((()=>{const t={payment_method:r.key};return{type:e.responseTypes.SUCCESS,meta:{paymentMethodData:t}}}))),[a,r])})(e,n,r),(0,t.createElement)(t.Fragment,null,(0,t.createElement)("p",{className:"pagarme-payment-method-instructions"},r.instructions),(0,t.createElement)("p",{className:"pagarme-payment-method-logo"},(0,t.createElement)("img",{className:"logo",src:r.logo,alt:r.label,title:r.label}))));o.propTypes={emitResponse:a().object.isRequired,eventRegistration:a().object.isRequired,backendConfig:a().object.isRequired};const s=o,{registerPaymentMethod:i}=window.wc.wcBlocksRegistry,c=wc.wcSettings.getSetting("woo-pagarme-payments-billet_data"),p=n=>(0,t.createElement)(s,e({},n,{backendConfig:c})),l=({components:e})=>{const{PaymentMethodLabel:n}=e;return(0,t.createElement)(n,{text:c.label})};l.propTypes={components:a().object},i({name:c.name,label:(0,t.createElement)(l,null),content:(0,t.createElement)(p,null),edit:(0,t.createElement)(p,null),canMakePayment:()=>!0,ariaLabel:c.ariaLabel,supports:{features:["products","subscriptions","subscription_cancellation","subscription_suspension","subscription_reactivation","subscription_amount_changes","subscription_date_changes","subscription_payment_method_change","subscription_payment_method_change_customer","subscription_payment_method_change_admin","multiple_subscriptions"]}})})()})();