(()=>{"use strict";const e=window.React,t=window.wp.htmlEntities,n=window.wc.wcSettings,i=window.wc.wcBlocksRegistry;var l;const c="wc-solana-pay",a=(0,n.getSetting)(`${c}_data`,{}),r=(0,t.decodeEntities)(a.icon)||"",o=(0,t.decodeEntities)(a.title)||"",s=(0,t.decodeEntities)(a.description)||"";function d(){return(0,e.createElement)("div",null,s)}function m(){if(r)return(0,e.createElement)("img",{src:r,alt:`${o} icon`,style:{verticalAlign:"middle",marginRight:"1rem",maxHeight:"2.5rem"}})}const u={name:c,label:(0,e.createElement)(function({components:t}){const{PaymentMethodLabel:n}=t;return(0,e.createElement)("div",null,(0,e.createElement)(m,null),(0,e.createElement)(n,{text:o}))},null),content:(0,e.createElement)(d,null),edit:(0,e.createElement)(d,null),ariaLabel:o,canMakePayment:()=>!0,supports:{features:null!==(l=a.supports)&&void 0!==l?l:[]}};(0,i.registerPaymentMethod)(u)})();