(()=>{"use strict";var e={20(e,i,t){var n=t(609),s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function a(e,i,t){var n,o={},a=null,d=null;for(n in void 0!==t&&(a=""+t),void 0!==i.key&&(a=""+i.key),void 0!==i.ref&&(d=i.ref),i)r.call(i,n)&&!l.hasOwnProperty(n)&&(o[n]=i[n]);if(e&&e.defaultProps)for(n in i=e.defaultProps)void 0===o[n]&&(o[n]=i[n]);return{$$typeof:s,type:e,key:a,ref:d,props:o,_owner:c.current}}i.Fragment=o,i.jsx=a,i.jsxs=a},609(e){e.exports=window.React},848(e,i,t){e.exports=t(20)},984(e,i,t){t.d(i,{v:()=>s});var n=t(848);function s(e){const{sandbox:i,description:t}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"wc-koin-official-description",children:[(0,n.jsx)("span",{children:t}),i&&(0,n.jsx)("div",{style:{lineHeight:1},children:(0,n.jsx)("span",{style:{opacity:"80%",fontSize:"14px",fontStyle:"italic"},children:i})})]})})}}},i={};function t(n){var s=i[n];if(void 0!==s)return s.exports;var o=i[n]={exports:{}};return e[n](o,o.exports,t),o.exports}t.d=(e,i)=>{for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},t.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i);const n=window.wc.wcBlocksRegistry,s=window.wp.htmlEntities,o=window.wc.wcSettings,r=window.wp.i18n;var c=t(984),l=t(848);const a="wc-koin-billet",d=(0,o.getSetting)(`${a}_data`,{}),p=(0,r.__)("Billet - Koin","wc-koin-official"),x=(0,s.decodeEntities)(d.title)||p,w=(0,s.decodeEntities)(d.sandbox||""),f=(0,s.decodeEntities)(d.description||""),h=(0,s.decodeEntities)(d.countries||""),u=(0,s.decodeEntities)(d.icon||""),v=e=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.v,{sandbox:w,description:f}),(0,l.jsx)("div",{className:"koin-checkout-fields",children:(0,l.jsx)("div",{className:"koin-checkout-message",children:(0,l.jsxs)("div",{children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:{width:"20px",height:"20px"},children:(0,l.jsx)("path",{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 128c17.67 0 32 14.33 32 32c0 17.67-14.33 32-32 32S224 177.7 224 160C224 142.3 238.3 128 256 128zM296 384h-80C202.8 384 192 373.3 192 360s10.75-24 24-24h16v-64H224c-13.25 0-24-10.75-24-24S210.8 224 224 224h32c13.25 0 24 10.75 24 24v88h16c13.25 0 24 10.75 24 24S309.3 384 296 384z"})}),(0,l.jsxs)("a",{id:"koin-about-link",onClick:e=>{e.preventDefault();const i=new CustomEvent("koinOpenPopup");document.dispatchEvent(i)},children:[(0,r.__)("How does work","wc-koin-official")," ",(0,l.jsx)("span",{children:(0,r.__)("Koin's payment in installments?","wc-koin-official")}),(0,l.jsx)("i",{children:(0,r.__)("click here","wc-koin-official")}),"."]})]})})})]}),y=e=>(0,l.jsxs)("span",{style:{width:"100%",display:"flex",alignItems:"center",gap:"8px"},children:[x,u&&(0,l.jsx)("img",{src:u,alt:"Koin",style:{height:"24px"}})]}),j={name:a,label:(0,l.jsx)(y,{}),content:(0,l.jsx)(v,{}),edit:(0,l.jsx)(v,{}),canMakePayment:e=>h.includes(e.billingAddress.country),ariaLabel:x,supports:{features:d.supports}};(0,n.registerPaymentMethod)(j)})();