(()=>{"use strict";const e=window.React,t=window.wc.wcBlocksRegistry,n=window.wc.wcSettings,a=window.wp.htmlEntities;function l({elementClass:t,children:n}){return(0,e.createElement)("p",{className:t+"__description"},n)}const s=(0,n.getSetting)("autopay_data",{}),c="wppay",i={name:c,label:(0,e.createElement)((function({elementClass:t,children:n,paymentIconElement:a}){return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:t+"__label"},n),a)}),{elementClass:c,paymentIconElement:(0,e.createElement)((function({elementClass:t,iconUrl:n}){return(0,e.createElement)("span",{style:{"margin-left":"5px"},className:t+"__logo"},(0,e.createElement)("img",{src:n}))}),{iconUrl:s.icon_url})},(0,a.decodeEntities)(s.label)),content:(0,e.createElement)(l,{elementClass:c},(0,a.decodeEntities)(s.description)),edit:(0,e.createElement)(l,{elementClass:c},(0,a.decodeEntities)(s.description)),canMakePayment:()=>!0,ariaLabel:s.label,paymentMethodId:c,supports:{features:s.supports}};(0,t.registerPaymentMethod)(i)})();