{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/Qa0RIcvr16DzzJxg62aU/NW3989Uf6RCsAK83dZWF/ErrorComponent.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";export function withError(Component){return props=>{var _localStorage;const[visible,setVisible]=useState(false);useEffect(()=>{var _window;const storage=event=>{var _localStorage;const data=(_localStorage=localStorage)===null||_localStorage===void 0?void 0:_localStorage.getItem(\"error_modal\");if(data&&data===\"true\"){setVisible(true);}else{setVisible(false);}};(_window=window)===null||_window===void 0?void 0:_window.addEventListener(\"storage\",storage);},[(_localStorage=localStorage)===null||_localStorage===void 0?void 0:_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": "gGAAwF,SAASA,EAAUC,EAAU,CAAC,OAAOC,GAAO,CAAC,IAAIC,EAAc,GAAK,CAACC,EAAQC,CAAU,EAAEC,EAAS,EAAK,EAAE,OAAAC,EAAU,IAAI,CAAC,IAAIC,EAAQ,IAAMC,EAAQC,GAAO,CAAC,IAAIP,EAAc,IAAMQ,GAAMR,EAAc,gBAAgB,MAAMA,IAAgB,OAAO,OAAOA,EAAc,QAAQ,aAAa,EAA0BE,EAArB,GAAAM,GAAMA,IAAO,OAAuB,CAA2B,GAAGH,EAAQI,KAAU,MAAMJ,IAAU,QAAcA,EAAQ,iBAAiB,UAAUC,CAAO,CAAE,EAAE,EAAEN,EAAc,gBAAgB,MAAMA,IAAgB,OAAO,OAAOA,EAAc,QAAQ,aAAa,CAAC,CAAC,EAAsBU,EAAKZ,EAAU,CAAC,GAAGC,EAAM,MAAM,CAAC,OAAOE,EAAQ,GAAG,EAAE,CAAC,CAAC,CAAE,CAAE",
  "names": ["withError", "Component", "props", "_localStorage", "visible", "setVisible", "ye", "ue", "_window", "storage", "event", "data", "window", "p"]
}
