(()=>{"use strict";const e=window.wc.wcBlocksRegistry,t=window.React,a=window.wp.i18n,n=window.wp.htmlEntities,i="budpay",l=window.wc.wcSettings,d=()=>{const e=(0,l.getSetting)("budpay_data",null);if(!e)throw new Error("Budpay initialization data is not available");return e};var r,o;const c=()=>(0,t.createElement)("div",null,(0,n.decodeEntities)(d()?.description||(0,a.__)("You may be redirected to a secure page to complete your payment.","budpay"))),u=null!==(r=d()?.asset_url)&&void 0!==r?r:null,s={name:i,label:(0,t.createElement)("div",{style:{display:"flex",flexDirection:"row",rowGap:"0em",alignItems:"center"}},(0,t.createElement)("img",{src:`${u}/img/budpay.png`,alt:(0,n.decodeEntities)(d()?.title||(0,a.__)("Budpay","budpay"))}),(0,t.createElement)("b",null,(0,t.createElement)("h4",null,"BudPay"))),placeOrderButtonLabel:(0,a.__)("Proceed to Budpay","budpay"),ariaLabel:(0,n.decodeEntities)(d()?.title||(0,a.__)("Payment via Budpay","budpay")),canMakePayment:()=>!0,content:(0,t.createElement)(c,null),edit:(0,t.createElement)(c,null),paymentMethodId:i,supports:{features:null!==(o=d()?.supports)&&void 0!==o?o:[]}};(0,e.registerPaymentMethod)(s)})();