(()=>{"use strict";var e={20(e,t,n){var i=n(609),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,c=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function d(e,t,n){var i,o={},d=null,l=null;for(i in void 0!==n&&(d=""+n),void 0!==t.key&&(d=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,i)&&!a.hasOwnProperty(i)&&(o[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===o[i]&&(o[i]=t[i]);return{$$typeof:r,type:e,key:d,ref:l,props:o,_owner:c.current}}t.Fragment=o,t.jsx=d,t.jsxs=d},609(e){e.exports=window.React},848(e,t,n){e.exports=n(20)},984(e,t,n){n.d(t,{v:()=>r});var i=n(848);function r(e){const{sandbox:t,description:n}=e;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"wc-koin-official-description",children:[(0,i.jsx)("span",{children:n}),t&&(0,i.jsx)("div",{style:{lineHeight:1},children:(0,i.jsx)("span",{style:{opacity:"80%",fontSize:"14px",fontStyle:"italic"},children:t})})]})})}}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const i=window.wc.wcBlocksRegistry;n(609);const r=window.wp.htmlEntities,o=window.wc.wcSettings,s=window.wp.i18n;var c=n(984),a=n(848);const d="wc-koin-pix",l=(0,o.getSetting)(`${d}_data`,{}),p=(0,s.__)("Pix - Koin","wc-koin-official"),x=(0,r.decodeEntities)(l.title)||p,f=(0,r.decodeEntities)(l.sandbox||""),w=(0,r.decodeEntities)(l.description||""),y=((0,r.decodeEntities)(l.countries||[]),(0,r.decodeEntities)(l.icon||"")),u=e=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(c.v,{sandbox:f,description:w})}),_=e=>(0,a.jsxs)("span",{style:{width:"100%",display:"flex",alignItems:"center",gap:"8px"},children:[x,y&&(0,a.jsx)("img",{src:y,alt:"Koin",style:{height:"24px"}})]}),j={name:d,label:(0,a.jsx)(_,{}),content:(0,a.jsx)(u,{}),edit:(0,a.jsx)(u,{}),canMakePayment:e=>"BR"===e.billingAddress.country,ariaLabel:x,supports:{features:l.supports}};(0,i.registerPaymentMethod)(j)})();