(()=>{"use strict";const e=window.wp.element,t=()=>{const[t,n]=(0,e.useState)(""),[a,r]=(0,e.useState)("0px");return(0,e.useEffect)((()=>{if("undefined"!=typeof pgabfwSurcharge&&"1"===pgabfwSurcharge.success){var e;let t=null!==(e=pgabfwSurcharge.google_pay)&&void 0!==e?e:"";n(t),t.length>0?r("15px"):r("0px")}}),[]),(0,e.createElement)("div",{style:{marginTop:a}},(0,e.createElement)("b",null,t))};window.addEventListener("pgabfw-renderFooterComponentsGooglePay",(n=>n.detail.setComponent((0,e.createElement)(t,null))))})();