(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[488],{8743:function(e,t,n){Promise.resolve().then(n.bind(n,875))},875:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var s=n(7437),a=n(2265),i=n(4033),l=n(3922),r=n(8013),u=n(5925);function c(){let{clientId:e}=(0,i.useParams)(),t=(0,i.useRouter)(),[n,c]=(0,a.useState)(null),[o,d]=(0,a.useState)(null),[f,m]=(0,a.useState)(!0);return((0,a.useEffect)(()=>{(async()=>{try{if(localStorage.getItem("muse_token")){let{user:e}=await r.I8.verify();d(e)}let{client:t}=await r.yj.get(e);c(t)}catch(e){u.default.error(e.message||"Failed to load interview"),t.push("/")}finally{m(!1)}})()},[e,t]),f)?(0,s.jsx)("div",{className:"min-h-screen flex items-center justify-center",style:{background:"var(--bg-primary)"},children:(0,s.jsxs)("div",{className:"flex gap-1.5",children:[(0,s.jsx)("div",{className:"typing-dot"}),(0,s.jsx)("div",{className:"typing-dot",style:{animationDelay:"0.2s"}}),(0,s.jsx)("div",{className:"typing-dot",style:{animationDelay:"0.4s"}})]})}):n?(0,s.jsx)(l.Z,{client:n,user:o,onBack:()=>window.location.href="/",onClientUpdate:c}):null}}},function(e){e.O(0,[114,666,922,971,938,744],function(){return e(e.s=8743)}),_N_E=e.O()}]);