(()=>{"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 c=(0,n.getSetting)("autopay_recurring_data",{}),s="wppay_recurring",r={name:s,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:s,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:c.icon_url})},(0,a.decodeEntities)(c.label)),content:(0,e.createElement)(l,{elementClass:s},(0,a.decodeEntities)(c.description)),edit:(0,e.createElement)(l,{elementClass:s},(0,a.decodeEntities)(c.description)),canMakePayment:()=>!0,ariaLabel:c.label,paymentMethodId:s,supports:{features:c.supports}};(0,t.registerPaymentMethod)(r)})();