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