(()=>{"use strict";const e=window.wc.wcBlocksRegistry,t=window.wc.wcSettings,i=window.wp.i18n,s=window.wp.htmlEntities,l=window.ReactJSXRuntime,a=(0,i.__)("Paystack ","woo-paystack"),o=({title:e})=>(0,s.decodeEntities)(e)||a,r=({description:e})=>(0,s.decodeEntities)(e||""),d=({logoUrls:e,label:t})=>(0,l.jsx)("div",{style:{display:"flex",flexDirection:"row",gap:"0.5rem",flexWrap:"wrap"},children:e.map((e,i)=>(0,l.jsx)("img",{src:e,alt:t},i))}),n=({logoUrls:e,title:t})=>(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"row",gap:"0.5rem"},children:[(0,l.jsx)("div",{children:o({title:t})}),(0,l.jsx)(d,{logoUrls:e,label:o({title:t})})]})}),c=(0,t.getSetting)("paystack-three_data",{}),w=o({title:c.title}),p={name:"paystack-three",label:(0,l.jsx)(n,{logoUrls:c.logo_urls,title:c.title}),content:(0,l.jsx)(r,{description:c.description}),edit:(0,l.jsx)(r,{description:c.description}),canMakePayment:()=>!0,ariaLabel:w,supports:{showSavedCards:c.allow_saved_cards,showSaveOption:c.allow_saved_cards,features:c.supports}};(0,e.registerPaymentMethod)(p)})();