{"version":3,"file":"AuthGuard.BIo9yCSE.mjs","names":[],"sources":["https:/framerusercontent.com/modules/sb3w3NUPkCjrYgflzFBB/y3mCUJ6P0vvZIoM61zrX/AuthGuard.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export const withAuth=Component=>{return props=>{useEffect(()=>{const isAuthenticated=sessionStorage.getItem(\"pw_authenticated\");if(!isAuthenticated){const currentPath=window.location.pathname;window.location.href=\"/password#\"+currentPath;}},[]);return /*#__PURE__*/_jsx(Component,{...props});};};\nexport const __FramerMetadata__ = {\"exports\":{\"withAuth\":{\"type\":\"reactHoc\",\"name\":\"withAuth\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AuthGuard.map"],"mappings":"kJAA2C,IAA6B,CAAa,EAAS,GAAmB,IAAQ,MAAc,CAAkE,GAAG,CAA9C,eAAe,QAAQ,mBAAmB,CAAqB,CAAC,IAAM,EAAY,EAAO,SAAS,SAAS,EAAO,SAAS,KAAK,aAAa,IAAe,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC"}