(()=>{"use strict";const e=window.React,t=window.wc.wcBlocksRegistry,l=window.wc.wcSettings,i=window.wp.i18n,r=window.wp.htmlEntities,a=(0,i.__)("支付宝支付","wenprise-wc-alipay"),n=({title:e})=>(0,r.decodeEntities)(e)||a,s=({description:e})=>(0,r.decodeEntities)(e||""),c=({logoUrls:t,label:l})=>(0,e.createElement)("div",{style:{display:"flex",flexDirection:"row",gap:"0.5rem",flexWrap:"wrap"}},t.map(((t,i)=>(0,e.createElement)("img",{key:i,src:t,alt:l})))),o=(0,l.getSetting)("wprs-wc-alipay_data",{}),w=n({title:o.title}),p={name:"wprs-wc-alipay",label:(0,e.createElement)((({logoUrls:t,title:l})=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{style:{display:"flex",flexDirection:"row",gap:"0.5rem"}},(0,e.createElement)("div",null,n({title:l})),(0,e.createElement)(c,{logoUrls:t,label:n({title:l})})))),{logoUrls:o.logo_urls,title:w}),content:(0,e.createElement)(s,{description:o.description}),edit:(0,e.createElement)(s,{description:o.description}),canMakePayment:()=>!0,ariaLabel:w,supports:{features:o.supports}};(0,t.registerPaymentMethod)(p)})();