1import{j as e}from"./vendor-editor-B5v07e1y.js";import{a}from"./vendor-charts-x3_JpA8L.js";import{j as p,e as x,k as u}from"./index-fiGoVOw_.js";import{S as d}from"./SimplifiedHeader-CidPV4uV.js";import{u as h}from"./i18n.generated-BtOkNL0B.js";import{T as g}from"./triangle-alert-BtDJ7feK.js";import{C as f}from"./calendar-sZv9_RI6.js";import"./vendor-i18n-C7sBi11W.js";import"./vendor-query-C94pIwNL.js";import"./vendor-sentry-BZrG4QX-.js";import"./vendor-socket-CL3SdtP1.js";import"./Logo-dSSFS_ZP.js";import"./index-C8HjN1ym.js";import"./index-D4mGc1Iv.js";import"./chevron-down-BboIilIx.js";import"./book-open-BRFiitz0.js";import"./menu-DEG0I9xV.js";import"./user-DFIl0cCu.js";const $=()=>{const{t}=h("jobs"),[s]=p(),r=x(),{isAuthenticated:l,isLoading:n}=u(),[j,c]=a.useState(!0),[o,m]=a.useState(null);return a.useEffect(()=>{const i=s.get("application_id");if(!i){m(t("interviewRedirect.invalid.description")),c(!1);return}if(!n){if(l){r(`/applications/${i}`,{replace:!0});return}r("/login",{replace:!0,state:{from:`/applications/${i}`,message:"Please log in to schedule your interview."}})}},[s,r,l,n]),o?e.jsxs(e.Fragment,{children:[e.jsx(d,{}),e.jsx("div",{className:"container mx-auto px-4 py-16 flex flex-col items-center",children:e.jsx("div",{className:"w-full max-w-md bg-white dark:bg-gray-800 rounded-lg shadow-md overflow-hidden",children:e.jsxs("div",{className:"p-8 text-center",children:[e.jsx(g,{size:48,className:"mx-auto mb-4 text-red-500"}),e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-4",children:t("interviewRedirect.invalid.title")}),e.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-6",children:o}),e.jsx("button",{onClick:()=>r("/"),className:"px-4 py-2 bg-purple-500 hover:bg-purple-600 text-white rounded-md transition-colors",children:t("interviewRedirect.invalid.goHome")})]})})})]}):e.jsxs(e.Fragment,{children:[e.jsx(d,{}),e.jsx("div",{className:"container mx-auto px-4 py-16 flex flex-col items-center",children:e.jsx("div",{className:"w-full max-w-md bg-white dark:bg-gray-800 rounded-lg shadow-md overflow-hidden",children:e.jsxs("div",{className:"p-8 text-center",children:[e.jsx("div",{className:"flex justify-center mb-4",children:e.jsx("div",{className:"animate-bounce bg-purple-100 dark:bg-purple-900 p-4 rounded-full",children:e.jsx(f,{size:32,className:"text-purple-500 dark:text-purple-400"})})}),e.jsx("h1",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-4",children:t("interviewRedirect.preparing.title")}),e.jsx("div",{className:"flex justify-center mb-6",children:e.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-purple-500"})}),e.jsx("p",{className:"text-gray-600 dark:text-gray-300",children:t("interviewRedirect.preparing.pleaseWait")})]})})})]})};export{$ as default};
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.