(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63033,e=>{"use strict";var t=e.i(43476),r=e.i(20835),i=e.i(27085),s=e.i(31278),u=e.i(18566),c=e.i(71645);e.s(["default",0,function(){let{isLoaded:e,isSignedIn:n}=(0,r.useAuth)(),{signOut:a}=(0,i.useClerk)(),o=(0,u.useRouter)(),l=(0,c.useRef)(!1);return(0,c.useEffect)(()=>{if(e&&!l.current){if(l.current=!0,!n)return void o.replace("/");a({redirectUrl:"/"})}},[e,n,a,o]),(0,t.jsxs)("div",{className:"flex min-h-[calc(100dvh-12rem)] flex-col items-center justify-center gap-3 px-4 py-16 text-muted-foreground",children:[(0,t.jsx)(s.Loader2,{className:"h-8 w-8 animate-spin text-primary","aria-hidden":!0}),(0,t.jsx)("p",{className:"text-sm font-medium text-foreground",children:"Signing you out…"})]})}])}]);