const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HrWorkbench-CzPKue4q.js","assets/jsx-runtime-CutOxEx1.js","assets/createLucideIcon-D6B-X28I.js","assets/trending-up-BD3RfKls.js","assets/bar-chart-3-C-7r74pa.js","assets/briefcase-Dk3vy-5X.js","assets/check-circle-2-CaRj0L55.js","assets/file-text-DsuuTZpm.js","assets/shield-check-zXIudjoP.js","assets/users-round-Cyd3XtZG.js","assets/chunk-6CSD65Y2-BjfinoX-.js","assets/preload-helper-DzyYoeor.js","assets/HrShell-ToXdRH2L.js","assets/PromoTokenQuotaBar-pn7Cbs3x.js","assets/authSession-Dulxhbeq.js","assets/appConfig-CDeG57c-.js","assets/norm-f7iXVy-b.js","assets/billing-dVtO8VuE.js","assets/promoTokenEvents-DnQDjS5Z.js","assets/PromoTokenQuotaBar-DAx8MAvk.css","assets/SiteHeader-uCbWeKX5.js","assets/runtimeTheme-Cf77mCZn.js","assets/SiteHeader-q1Mjl8mG.css","assets/HrShell-BNG5AOUU.css","assets/HrBatchScreen-CwBFc_LH.js","assets/hrResumePdfQueue-D_8fVQl6.js","assets/HrPdfUploadQueue-DiH9QiJr.js","assets/alert-circle-Bbhy7EjJ.js","assets/chevron-down-E5P-IaDw.js","assets/chevron-up-DOrKkqb1.js","assets/loader-2-PLD5ZZNj.js","assets/x-BrDGz5b1.js","assets/HrUsageBadge-BG4XWDhN.js","assets/hrBatchUtils-BDpybu8R.js","assets/resumePdfPipeline-BPJNK1TB.js","assets/aiRecognition-C9ioM0a4.js","assets/roleTaxonomy-BS4qXB9y.js","assets/llm-DjSVhhgj.js","assets/appRole-SS7vy3U_.js","assets/billingCopy-BVxszui8.js","assets/cloudModel-CkCu0fP6.js","assets/notifications-BrcI-_N-.js","assets/aiTextSanitize-BG13aJ14.js","assets/llmSettings-8VBl-FQI.js","assets/proxyDefaults-BVuxpTwU.js","assets/salaryText-DlREJ1k0.js","assets/privacyMask-RjOeeXKn.js","assets/proxyOps-DSvg656Q.js","assets/hostPermissions-Daz5S2M5.js","assets/pdfUtils-BDq1qMVd.js","assets/hrApi-DWh733bL.js","assets/HrBatchJobCompare-Cq0d4Si0.js","assets/jobCompareUtils-D_pLY4rE.js","assets/HrBatchResumeParse-DKER_c5y.js","assets/check-Bkh1dW3V.js","assets/copy-DaLIBI5k.js","assets/download-BtyQsy17.js","assets/HrJdEditor-Bb2W8hHJ.js","assets/rotate-ccw-CWKCobgh.js","assets/send-D2dk6kZF.js","assets/AiUniversalToolPage-6vWxurMC.js","assets/AiqLogo-8C8ekK4A.js","assets/EditorialMarkdown-DmwukgX6.js","assets/EditorialMarkdown-DdDyZsLL.css","assets/PlatformTokenUsage-BOBT9r1m.js","assets/PlatformTokenUsage-Dsn0BWQa.css","assets/ResumeHeatmapCard-CIBEX1dl.js","assets/ResumeHeatmapCard-DofyasGY.css","assets/toolRuntime-CFu8ZbRX.js","assets/useUniversalAgent-_PiDQGeH.js","assets/taskStore-B6nkxJKo.js","assets/AiUniversalToolPage-lGVSYO0j.css","assets/HrCandidateProfile-CiLhYc8i.js","assets/HrPptBuilder-CPQbYnzt.js","assets/printer-xRe3kO9b.js","assets/refresh-cw-DzeRqf3I.js","assets/hrPptHandoff-CpxrwDXl.js","assets/ToolSidebarNav-Py6lZOex.js","assets/AppToastHost-DB87ATVy.js","assets/runtimeFeatures-DPvDAM4s.js","assets/HireEdgeLandingPage-Dbf2UEdh.css","assets/HireEdgeTools-DaRq6kYI.css","assets/ToolLiveStreamPanel-DOjuHZof.js","assets/ThinkingPanel-DbDGAOQ7.js","assets/MarkdownText-Du4i1sv4.js","assets/usePlatformTokenUsage-D1OWw-XN.js","assets/ToolConversationBilling-DMVcVppo.js","assets/usage-BMqPRKoa.js","assets/HrDataAnalysis-7EGYFopL.js","assets/HrInterviewKit-BJdpd9O_.js","assets/HrEmailDraft-DNr9dsw3.js","assets/mail-check-B7RZLqNC.js","assets/HrCompliance-DwpZ2Hgg.js","assets/building-2-J9TZpbAr.js","assets/scale-DoLybUIY.js","assets/search-CBX7SHdv.js","assets/HrSalaryResearch-GT8uM7Fp.js","assets/marketService-JUKV6PH8.js"])))=>i.map(i=>d[i]);
import{a as e,n as t,t as n}from"./jsx-runtime-CutOxEx1.js";import{t as r}from"./preload-helper-DzyYoeor.js";import{c as i,i as a}from"./chunk-6CSD65Y2-BjfinoX-.js";import{r as o}from"./authSession-Dulxhbeq.js";var s=e(t(),1),c=n(),l=(0,s.lazy)(()=>r(()=>import(`./HrWorkbench-CzPKue4q.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]))),u=(0,s.lazy)(()=>r(()=>import(`./HrBatchScreen-CwBFc_LH.js`),__vite__mapDeps([24,1,25,2,16,15,10,11,26,27,6,28,29,7,30,31,32,18,12,13,14,17,19,20,21,22,23,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50]))),d=(0,s.lazy)(()=>r(()=>import(`./HrBatchJobCompare-Cq0d4Si0.js`),__vite__mapDeps([51,1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,33,52,37,38,39,40,41,43,44,46]))),f=(0,s.lazy)(()=>r(()=>import(`./HrBatchResumeParse-DKER_c5y.js`),__vite__mapDeps([53,1,2,54,55,56,7,25,16,15,10,11,26,27,6,28,29,30,31,32,18,12,13,14,17,19,20,21,22,23,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49]))),p=(0,s.lazy)(()=>r(()=>import(`./HrJdEditor-Bb2W8hHJ.js`),__vite__mapDeps([57,1,56,2,30,58,59,10,11,12,13,14,15,16,17,18,19,20,21,22,23,60,61,62,63,64,65,66,67,68,69,70,41,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,71]))),m=(0,s.lazy)(()=>r(()=>import(`./HrCandidateProfile-CiLhYc8i.js`),__vite__mapDeps([72,1,2,54,55,56,25,16,15,10,11,26,27,6,28,29,7,30,31,32,18,12,13,14,17,19,20,21,22,23,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50]))),h=(0,s.lazy)(()=>r(()=>import(`./HrPptBuilder-CPQbYnzt.js`),__vite__mapDeps([73,1,2,56,74,75,58,59,10,11,12,13,14,15,16,17,18,19,20,21,22,23,76,77,61,78,41,37,38,39,40,79,70,80,81,64,65,82,83,84,85,86,87]))),g=(0,s.lazy)(()=>r(()=>import(`./HrDataAnalysis-7EGYFopL.js`),__vite__mapDeps([88,1,2,56,30,59,25,16,15,31,10,11,12,13,14,17,18,19,20,21,22,23,33,76,60,61,62,63,64,65,66,67,68,69,70,41,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,71]))),_=(0,s.lazy)(()=>r(()=>import(`./HrInterviewKit-BJdpd9O_.js`),__vite__mapDeps([89,1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,50,47,39,48]))),v=(0,s.lazy)(()=>r(()=>import(`./HrEmailDraft-DNr9dsw3.js`),__vite__mapDeps([90,1,2,54,55,91,59,10,11,12,13,14,15,16,17,18,19,20,21,22,23,50,47,39,48]))),y=(0,s.lazy)(()=>r(()=>import(`./HrCompliance-DwpZ2Hgg.js`),__vite__mapDeps([92,1,2,93,56,30,58,94,95,59,8,10,11,12,13,14,15,16,17,18,19,20,21,22,23,32,60,61,62,63,64,65,66,67,68,69,70,41,34,35,36,37,38,39,40,42,43,44,45,46,47,48,49,71]))),b=(0,s.lazy)(()=>r(()=>import(`./HrSalaryResearch-GT8uM7Fp.js`),__vite__mapDeps([96,1,2,4,93,56,95,10,11,12,13,14,15,16,17,18,19,20,21,22,23,33,97]))),x={"/hr/resume-compare":`/hr/batch-screen`,"/hr/interview-summary":`/hr/interview-kit`,"/hr/competitor-analysis":`/hr/jd-editor`},S=[{path:`/hr`,Component:l},{path:`/hr/batch-screen`,Component:u},{path:`/hr/candidate-profile`,Component:m},{path:`/hr/batch-job-compare`,Component:d},{path:`/hr/batch-resume-parse`,Component:f},{path:`/hr/jd-editor`,Component:p},{path:`/hr/ppt-builder`,Component:h},{path:`/hr/data-analysis`,Component:g},{path:`/hr/interview-kit`,Component:_},{path:`/hr/email-draft`,Component:v},{path:`/hr/compliance`,Component:y},{path:`/hr/salary-research`,Component:b}],C=e=>{let t=String(e||`/`).trim()||`/`;return t===`/`?`/`:t.replace(/\/+$/g,``)||`/`};function w(){let{pathname:e}=i(),t=(0,s.useMemo)(()=>new Set(S.map(e=>e.path)),[]),n=C(e),r=n===`/hr`||n.startsWith(`/hr/`),l=r?x[n]||(t.has(n)?``:`/hr`):``,u=r&&t.has(n)?n:null,[d,f]=(0,s.useState)(()=>u?new Set([u]):new Set),[p,m]=(0,s.useState)(`loading`);return(0,s.useEffect)(()=>{if(!r)return;let e=!0,t=async()=>{let t=await o().catch(()=>null);if(e){if(!t?.token){m(`guest`);return}m(t.user?.identityRole===`recruiter`?`recruiter`:t.user?.identityRole===`jobseeker`?`jobseeker`:`unknown`)}};t();let n=()=>{t()};return window.addEventListener(`AUTH_SESSION_UPDATED_WEB`,n),window.addEventListener(`focus`,n),()=>{e=!1,window.removeEventListener(`AUTH_SESSION_UPDATED_WEB`,n),window.removeEventListener(`focus`,n)}},[r,n]),(0,s.useEffect)(()=>{u&&f(e=>{if(e.has(u))return e;let t=new Set(e);return t.add(u),t})},[u]),l?(0,c.jsx)(a,{to:l,replace:!0}):r&&p===`loading`?null:r&&p===`guest`?(0,c.jsx)(a,{to:`/auth?returnTo=${encodeURIComponent(e)}`,replace:!0}):r&&p!==`recruiter`?(0,c.jsx)(a,{to:`/business`,replace:!0}):(0,c.jsx)(c.Fragment,{children:S.map(({path:e,Component:t})=>{if(!d.has(e))return null;let n=e===u;return(0,c.jsx)(`div`,{"aria-hidden":!n,style:{display:n?`contents`:`none`},children:(0,c.jsx)(t,{})},e)})})}export{w as default};