(()=>{"use strict";const e=window.wp.element,t=window.wc.wcSettings,n=window.wp.htmlEntities,c=window.wp.i18n,s=window.wc.wcBlocksRegistry;var a;const o="sibs_stg_cc",l=(0,t.getSetting)(o+"_data",null),i=t=>{const[n,c]=React.useState(""),s=l?.checkoutLabel||"",{eventRegistration:a,emitResponse:o}=t,{onPaymentProcessing:i}=a;return l?.checkoutLabel?(React.useEffect((()=>{const e=i((async()=>({type:o.responseTypes.SUCCESS,meta:{paymentMethodData:{sibs_stg_oneclick_customer_acceptor:n}}})));return()=>{e()}}),[o.responseTypes.ERROR,o.responseTypes.SUCCESS,i,n]),(0,e.createElement)("div",{style:{display:"flex",alignItems:"flex-start"}},(0,e.createElement)("input",{type:"checkbox",name:"sibs_stg_oneclick_customer_acceptor",className:"wc-block-components-checkbox__input",onChange:e=>{c(e.target.checked)},checked:!1===n||n,id:"sibs_stg_oneclick_customer_acceptor",style:{display:"inline",marginRight:"5px"}}),(0,e.createElement)("label",{htmlFor:"sibs_stg_oneclick_customer_acceptor",className:"wc-block-components-checkbox__label"},(0,e.createElement)("span",{dangerouslySetInnerHTML:{__html:s}})))):""};(0,s.registerPaymentMethod)({name:o,label:(0,e.createElement)((()=>{var t=(0,n.decodeEntities)(l?.title);const c=l?.logos,s=[];return c.forEach((t=>{s.push((0,e.createElement)("img",{src:t,style:{display:"inline",paddingRight:"5px"}}))})),(0,e.createElement)("div",{className:"wc-block-components-payment-method-label wc-block-components-payment-method-label--with-icon"}," ",s," ",(0,e.createElement)("span",null," ",t," "))}),null),ariaLabel:(0,c.__)("SIBS payment method","sibs-woo-stg"),canMakePayment:()=>!0,content:(0,e.createElement)(i,null),edit:(0,e.createElement)(i,null),supports:{features:null!==(a=l?.supports)&&void 0!==a?a:[]}})})();