(()=>{"use strict";const e=window.React,t=window.wc.wcSettings,n=window.wp.i18n,c=window.wp.htmlEntities,a=window.wc.wcBlocksRegistry,i=(0,t.getSetting)("mycred_data",{}),o=(0,n.__)("Default Pay with myCRED","mycred-woocommerce"),r=(0,c.decodeEntities)(i.title)||o,s=()=>(0,c.decodeEntities)(i.description||""),w={name:"mycred",label:(0,e.createElement)((t=>{const{PaymentMethodLabel:n}=t.components;return(0,e.createElement)(n,{text:r})}),null),content:(0,e.createElement)(s,null),edit:(0,e.createElement)(s,null),canMakePayment:({cart:e})=>"yes"===e.extensions.mycredwoo.payment_gateway,ariaLabel:r,supports:{features:i.supports}};(0,a.registerPaymentMethod)(w)})();