1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,537814,639679,872238,e=>{"use strict";var t=e.i(843476),n=e.i(50080),r=e.i(225913),i=e.i(271645),s=e.i(876926);let a=(0,r.cva)("max-w-prose text-slate-700 dark:text-slate-300 mb-2 text-center",{variants:{size:{default:"text-base sm:text-lg",sm:"text-sm sm:text-base"}},defaultVariants:{size:"default"}}),o=i.forwardRef(({className:e,size:n,children:r,...i},o)=>(0,t.jsx)("p",{ref:o,...i,className:(0,s.cn)(a({size:n,className:e})),children:r}));o.displayName="Paragraph",e.s(["default",0,o],639679);var c=e.i(107765);function l(e){return!!e?.data&&"object"==typeof e.data&&null!==e.data&&"AUTH_REQUIRED"===e.data.code||!!("string"==typeof e?.message&&e.message.includes("AUTH_REQUIRED"))}let u=!1;e.i(250711);var d=e.i(781958);let f="ridenet-auth-recover",m="ridenet-auth-signout-attempts";function g(e,t){let n=l(e),r=e?.data?.code,s="ACCOUNT_DELETED"===r,{isLoading:a,isAuthenticated:o}=(0,d.useConvexAuth)(),g=(0,i.useRef)(t);g.current=t;let h=(0,i.useRef)(null),[x,p]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{if(!n||a||h.current===e)return;h.current=e;let t=window.location.pathname+window.location.search,r=Date.now();if(o&&!function(e){try{let t=sessionStorage.getItem(f);if(!t)return!1;let n=Number(t);return Number.isFinite(n)&&e-n<8e3}catch{return!1}}(r)){try{sessionStorage.setItem(f,String(r))}catch{}g.current();return}let i=function(e){try{let t=sessionStorage.getItem(m);if(!t)return 0;let n=JSON.parse(t);if("number"==typeof n.at&&"number"==typeof n.n&&e-n.at<6e4)return n.n;return 0}catch{return 0}}(r);if(i>=3)return void p(!0);try{sessionStorage.setItem(m,JSON.stringify({at:r,n:i+1}))}catch{}try{sessionStorage.removeItem(f)}catch{}!function(e,t){if(!l(e)||u)return;u=!0;let n=setTimeout(()=>{u=!1},5e3);c.useUserStore.getState().signOut({callbackUrl:t}).finally(()=>{clearTimeout(n),u=!1})}(e,t)},[n,a,o,e]),(0,i.useEffect)(()=>{s&&h.current!==e&&(h.current=e,c.useUserStore.getState().signOut({}))},[s,e]),x)?"failed":n?"recovering":"ACCOUNT_PENDING_DELETION"===r?"pendingDeletion":s?"deleted":"other"}e.s(["useAuthErrorRecovery",0,g],872238);var h=e.i(526053);function x(){return(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 py-16",children:[(0,t.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-emerald-500 border-t-transparent"}),(0,t.jsx)(o,{children:"Reconnectingâ¦"})]})}function p({error:e}){return(0,t.jsxs)("div",{className:"mx-auto flex max-w-lg flex-col items-center gap-4 px-4 py-12 text-center",children:[(0,t.jsx)(o,{className:"font-semibold",children:"This account is scheduled for deletion."}),(0,t.jsx)(o,{children:e?.data?.message??"Your account is in its deletion grace period. You can restore it from your account settings."}),(0,t.jsx)(n.Button,{size:"lg",onClick:()=>window.location.assign("/dashboard/account"),children:"Restore account"})]})}function j(){return(0,t.jsxs)("div",{className:"mx-auto flex max-w-lg flex-col items-center gap-4 px-4 py-12 text-center",children:[(0,t.jsx)(o,{className:"font-semibold",children:"This account has been deleted."}),(0,t.jsx)(o,{children:"Its deletion grace period ended and the account data was removed. Sign in with a different account, or contact [email protected] if you believe this is an error."}),(0,t.jsx)(n.Button,{size:"lg",onClick:()=>window.location.assign("/auth/signin"),children:"Go to sign in"})]})}function w(){return(0,t.jsxs)("div",{className:"mx-auto flex max-w-lg flex-col items-center gap-4 px-4 py-12 text-center",children:[(0,t.jsx)(o,{className:"font-semibold",children:"We couldn't restore your session."}),(0,t.jsx)(o,{children:"Please sign in again to continue."}),(0,t.jsx)(n.Button,{size:"lg",onClick:()=>{let e=(0,h.safeInternalPath)(window.location.pathname+window.location.search,"/dashboard/home");window.location.href=`/auth/signin?callbackUrl=${encodeURIComponent(e)}`},children:"Sign in"})]})}e.s(["AccountDeletedPanel",0,j,"AccountPendingDeletionPanel",0,p,"AuthAwareError",0,function({error:e,reset:r,fallback:i}){let s=g(e,r);return"recovering"===s?(0,t.jsx)(x,{}):"pendingDeletion"===s?(0,t.jsx)(p,{error:e}):"deleted"===s?(0,t.jsx)(j,{}):"failed"===s?(0,t.jsx)(w,{}):(0,t.jsx)(t.Fragment,{children:i??(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,t.jsx)(o,{children:"Something went wrong while loading this page."}),(0,t.jsx)(n.Button,{size:"lg",onClick:()=>r(),children:"Try again"})]})})},"AuthRecovering",0,x,"AuthRecoveryFailed",0,w],537814)},697432,e=>{"use strict";var t=e.i(843476),n=e.i(537814);e.s(["default",0,function({error:e,reset:r}){return(0,t.jsx)("div",{className:"flex min-h-screen items-center justify-center bg-backgroundLightWarm px-4",children:(0,t.jsx)(n.AuthAwareError,{error:e,reset:r})})}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.