{"version":3,"file":"ErrorComponent.CCj_NdRG.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/Qa0RIcvr16DzzJxg62aU/pBnNbtNL2gOhp9qAcaH2/ErrorComponent.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";export function withError(Component){return props=>{const[visible,setVisible]=useState(false);useEffect(()=>{const storage=event=>{const data=localStorage?.getItem(\"error_modal\");if(data&&data===\"true\"){setVisible(true);}else{setVisible(false);}};window?.addEventListener(\"storage\",storage);},[localStorage?.getItem(\"error_modal\")]);return /*#__PURE__*/_jsx(Component,{...props,style:{zIndex:visible?10:-1}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withError\":{\"type\":\"reactHoc\",\"name\":\"withError\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ErrorComponent.map"],"mappings":"uIAAiF,SAAgB,EAAU,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAQ,GAAYA,EAAS,GAAM,CAAgP,OAA/O,MAAc,CAA2I,GAAQ,iBAAiB,UAArJ,GAAO,CAAC,IAAM,EAAK,cAAc,QAAQ,cAAc,CAAyB,EAArB,MAAM,IAAO,QAAgD,EAA+C,EAAG,CAAC,cAAc,QAAQ,cAAc,CAAC,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,OAAO,EAAQ,GAAG,GAAG,CAAC,CAAC,uBAA9b,IAAsC"}