(()=>{"use strict";const t=window.wp.i18n,e=window.wc.wcBlocksRegistry,n=window.wp.htmlEntities,i=window.wc.wcSettings,a=window.ReactJSXRuntime,c=(t,c)=>{const s=(0,i.getSetting)(`${t}_data`,{});if(!s||0===Object.keys(s).length)return;const o=(0,n.decodeEntities)(s.title)||c,r=(t=>()=>(0,n.decodeEntities)(t.description||""))(s),d=((t,e)=>n=>{const{PaymentMethodLabel:i}=n.components,c=t.icon||"";return(0,a.jsxs)("div",{className:"btcpay-payment-method-label",children:[c&&(0,a.jsx)("img",{src:c,alt:"BTCPay Bitcoin payment icon",className:"btcpay-payment-icon",style:{width:"50px",marginRight:"10px",verticalAlign:"middle"}}),(0,a.jsx)(i,{text:e})]})})(s,o);(0,e.registerPaymentMethod)({name:t,label:(0,a.jsx)(d,{}),content:(0,a.jsx)(r,{}),edit:(0,a.jsx)(r,{}),canMakePayment:()=>!0,ariaLabel:o,supports:{features:s.supports}})};c("btcpaygf_default",(0,t.__)("Bitcoin / Lightning Network over BTCPay Server","btcpay-greenfield-for-woocommerce"));const s=(0,i.getSetting)("paymentMethodData",{});Object.keys(s).forEach((t=>{t.startsWith("btcpaygf_")&&"btcpaygf_default"!==t&&c(t,t)}))})();