1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dashboard-Cs8NGRdq.js","assets/vendor-react-EKpbQ58x.js","assets/vendor-query-Cy-95fCG.js","assets/vendor-D5X0EH2b.js","assets/ui-radix-DiOYaS2U.js","assets/icons-Dx8Iaodt.js","assets/switch-x1-tSx7t.js","assets/vendor-routing-DfDPPI-Y.js","assets/FeaturedStoryBanner-7waQe9tP.js","assets/personaContent-A2zH7HJQ.js","assets/resume-BG40p6CW.js","assets/resumePreference-CTAxvQml.js","assets/PageHeader-Dff73aen.js","assets/TutorialVideoModal-DZr8ufvB.js","assets/label-BeENAcCB.js","assets/badge-Cm0J9pKt.js","assets/checkbox-DQHXYpv1.js","assets/select-Pyi2N7ZV.js","assets/VersionHistoryPanel-RKjP7JJd.js","assets/cover-letter-CXNPmNEd.js","assets/empty-state-DzV_t00J.js","assets/alert-dialog-BkYsFFCD.js","assets/testing-center-CJLmn4P2.js","assets/progress-at62drl0.js","assets/job-matching-TWFm65Hu.js","assets/reduce-rejections-BckcaBy8.js","assets/job-opportunity-weVpgwsl.js","assets/popover-Bles7Brs.js","assets/calendar-IKM8Ab_V.js","assets/recruiter-screening-DVx-jyAC.js","assets/recruiter-screening-questions-ByXgfoMI.js","assets/account-manager-screening-BGIcPOS4.js","assets/tabs-QKdd4dXb.js","assets/useVoiceMock-CkMpFVTl.js","assets/pre-screening-questions-Dic8Lr3m.js","assets/salary-discussion-EkyPA60F.js","assets/visa-sponsorship-D2jhU_yP.js","assets/security-clearance-DhsO7IOY.js","assets/automatic-denial-CULPfAC3.js","assets/disability-self-id-DTZ4cfUG.js","assets/interview-prep-Do8RMqHl.js","assets/accordion-HXi_1-S4.js","assets/interview-CIiaIbCW.js","assets/post-interview-DpaG4Xut.js","assets/post-interview-anxiety-BhdSrzXf.js","assets/recruiter-ghosting-4uuO9qU0.js","assets/interview-rejection-lpsDF7xD.js","assets/interview-battle-cards-DNPYnexT.js","assets/pre-interview-scheduling-C2MW9YI4.js","assets/pre-interview-stress-D568nGxP.js","assets/during-interview-dont-Dry5uEvS.js","assets/during-interview-do-BYgOpqAH.js","assets/during-interview-stress-BYKe0o9g.js","assets/during-interview-unknown-Cz1nUhuL.js","assets/during-interview-tics-BuWuUkbu.js","assets/during-interview-nonverbal-SELq097z.js","assets/during-interview-cutoffs-C57DcfSr.js","assets/interview-warning-checks-B8exIkmM.js","assets/networking-job-seeker-COTFKyrG.js","assets/CoachingTip-CEaZjoPE.js","assets/networking-professional-B8hDtoeV.js","assets/networking-events-COoiquev.js","assets/leadership-at-work-eU1Tnbrx.js","assets/charts-DYHBbpoS.js","assets/brag-document-CblXMhRa.js","assets/job-offer-kQ40exke.js","assets/background-check-CXsnKuG9.js","assets/background-advisory-B6Jn6GcP.js","assets/references-DQhcTWgU.js","assets/resignation-Ck1Hyi7S.js","assets/exit-interview-nExjVxKk.js","assets/farewell-xUQEOZuu.js","assets/leaving-smart-Cu-iyVLu.js","assets/parental-leave-BnpspX1u.js","assets/first-90-days-ILe6fxWO.js","assets/first-month-at-work-BB2z7-tl.js","assets/ninety-days-at-work-BaOVxuLi.js","assets/difficult-situations-C_q5i1gG.js","assets/pre-interview-biases-DuCfmBHW.js","assets/pre-interview-likeability-Ceq5vpt4.js","assets/pre-interview-mindsets-7h5oNxPc.js","assets/pre-interview-types-CTGzZDQ3.js","assets/pre-interview-research-levels-BzKpTbWL.js","assets/pre-interview-same-day-loop-2wUcjQrn.js","assets/new-job-biases-D_p1xBjI.js","assets/new-job-conversations-DvgEn_dd.js","assets/card-CwK3uP8c.js","assets/new-job-prioritize-BRdBrSUV.js","assets/new-job-meetings-DScibVs6.js","assets/new-job-focus-time-0RSVIja6.js","assets/new-job-manager-1on1-twYcHJfE.js","assets/new-job-mistake-BnfCRv6T.js","assets/understand-the-company-DEEETKvP.js","assets/unwritten-rules-B5EcMKQ3.js","assets/career-killers-6dJfVojE.js","assets/three-to-six-months-shift-CdXP4Wtu.js","assets/get-promoted-Vxf6Okze.js","assets/promotion-status-B47cloCl.js","assets/giving-back-Ca6OvnyB.js","assets/job-boards-BqiHQYoa.js","assets/what-not-to-do-DFNzpDYw.js","assets/linkedin-DL8n6nlT.js","assets/linkedin-profile-setup-CHUg_rkv.js","assets/linkedin-algorithm-BlnTvEN3.js","assets/other-job-boards-setup-DH_qQXnH.js","assets/refer-a-friend-DLO07mN_.js","assets/management-8vkKBxlF.js","assets/login-CnuVRyia.js","assets/register-Z6SXdFJ-.js","assets/forgot-password-D-UXulMH.js","assets/reset-password-DOAPhu-c.js","assets/profile-BWqZpGE8.js","assets/subscription-Bqr1IdON.js","assets/subscription-success-w0iJ4J5k.js","assets/subscription-cancel-CsHaaeVj.js","assets/onboarding-B2AlCApW.js","assets/terms-d-aUCXHG.js","assets/privacy-CL1ZY5dg.js","assets/cookie
1s-C4RAj9aG.js","assets/not-found-BUOE_az_.js","assets/useSEO-x1wX9oa6.js","assets/mock-interview-DUFYAFg-.js","assets/mock-sprint-Dly3K8hJ.js","assets/communicate-CDnk8zsy.js","assets/five-year-pivot-CQcuCUGo.js","assets/hiring-C9OUr4TA.js","assets/hiring-onboarding-CfOIpnF6.js","assets/candidate-pick-CIaFZEgv.js","assets/shadow-agent-BR0CyLm4.js","assets/annual-review-DbeNFqeA.js","assets/work-politics-B51VGAJm.js","assets/annual-review-prep-BmA0AXmx.js","assets/annual-review-meeting-b1ZL5bQt.js","assets/annual-review-react-BZLpgzZd.js","assets/annual-review-feedback-request-BxtHis4u.js","assets/post-offer-review-Vq78ofbA.js","assets/offer-negotiation-ZnfeFum0.js","assets/browser-extension-CyjXDAAU.js","assets/job-saver-dE6AeZbA.js","assets/tour-GDYJl-vV.js","assets/journey-map-I_SMA898.js","assets/promotion-path-CqtTCxtE.js","assets/ai-outreach-DaxxDQq2.js","assets/value-validation-project-BvQlMzem.js","assets/dream-50-DT05D394.js","assets/landing-DkHJdDg9.js","assets/expert-review-CMumI3Z4.js","assets/career-guide-CYvIsja3.js","assets/PublicSocialProof-C4bVtviR.js","assets/resume-score-QIa3Qw6Y.js","assets/success-stories-DYddMiQ9.js","assets/leadership-principles-Bq5Yfa9g.js","assets/compare--erdbncC.js","assets/LinkedInOptimizer-BpxGMQX-.js","assets/Training-CDFcoHLM.js","assets/workflows-B5uoiydk.js","assets/interview-prep-assessment-BsD6TgTI.js","assets/marketing-B23Th-Xs.js","assets/stories-BDL7_1b2.js","assets/story-detail-0d1gf8LI.js","assets/star-stories-DgKtfT2G.js","assets/recruiter-mock-screen-DiH4c9Vw.js","assets/demo-landing-BwVXnClS.js","assets/partner-landing-Bc2_8SI5.js","assets/partner-dashboard-CD9tcWeL.js","assets/skeleton-DzHRjOl9.js","assets/affiliates-landing-gnMwFCPs.js","assets/affiliate-dashboard-zz7jAK9x.js","assets/interview-questions-hub-ttWceddr.js","assets/companyInterviews-BGxt3znG.js","assets/interview-questions-role-NETSbFOJ.js","assets/interview-questions-companies-BC1RtC3p.js","assets/interview-questions-company-C5fw5Wby.js","assets/interview-tips-D2jKP7Q8.js","assets/salary-guide-DDvmYJT2.js","assets/EmailCaptureBanner-ojfEbmRT.js","assets/paycheck-calculator-BwWnvQqB.js","assets/relocation-calculator-DpHH6cnj.js","assets/mindset-wellbeing-C473Ma_A.js","assets/role-landing-ey1JBh4N.js","assets/toumde-academy-CRHCgQty.js","assets/success-stories-public-CM4F6GZf.js","assets/resume-templates-D_sa78Lh.js","assets/share-your-story-rUFZK5JC.js","assets/culture-decoder-CNdhZ0eu.js","assets/interview-countdown-h0DBIhMP.js","assets/application-funnel-QB7x4N5X.js","assets/offer-comparison-C7-grvZA.js","assets/video-practice-Cu_bBJ3I.js","assets/ats-deep-scanner-C067IoKt.js","assets/linkedin-profile-optimizer--DPPv7ej.js","assets/salary-negotiation-simulator-DoqVafwh.js","assets/skills-gap-CyT6A5al.js","assets/visa-guidance-DA8wfBxl.js","assets/salary-benchmarking-CBy8l4DD.js","assets/networking-sequences-BLS0f8Vx.js","assets/outreach-pipeline-DSTky6S4.js","assets/quick-apply-kit-D1eU_ubJ.js","assets/portfolio-C4d5dDqU.js","assets/portfolio-public-BT6IR_GA.js","assets/knowledge-center-BLmobWxR.js","assets/interview-intelligence-DVmVjqFX.js","assets/job-intel-C3otK54V.js","assets/career-level-DP9ra7t5.js","assets/technical-assessment-D1nKbXMJ.js","assets/learning-center-BNPNST1n.js","assets/career-trajectory-DGdJJv4b.js","assets/rapid-deploy-CuKScrSw.js","assets/personal-brand-C9D4Hv7R.js","assets/roadmap-large-companies-DG8L0gAR.js","assets/job-level-reference-ltg7rcbT.js","assets/career-change-Bei4BInV.js","assets/career-requirements-CJd7uiU2.js","assets/career-level-up-6FqYtLnn.js","assets/student-guide-UUPRffwZ.js","assets/accountability-Kq3X_Bxa.js","assets/goals-v8hefwmE.js","assets/my-wins-6ieswa8l.js","assets/interview-debrief-BrwYGWTi.js","assets/compensation-intel-ZnWZ65Xn.js","assets/rif-playbook-DEv33t2E.js","assets/negotiation-emails-B5qGlfwK.js","assets/offer-timer-7ymCndXu.js","assets/negotiation-playbooks-fqhFYe4b.js","assets/rejection-analyzer-CPVuU7oN.js","assets/performance-review-coach-BE3tEJuq.js","assets/pre-interview-hub-BufN5Yhr.js","assets/interview-mindset-B6n7gE-2.js","assets/during-interview-hub-m1mxysNw.js","assets/during-interview-mindset-CvihTCg4.js","assets/after-interview-hub-9QRTyaE6.js","assets/after-interview-recovery-Bf9w4Vhy.js","assets/leaving-mrN13ooJ.js","assets/background-hub-COP5oksg.js","assets/hiring-calendar-DomF_SvS.js","assets/features-DsjewSs2.js","assets/for-organizations-eNwJFoam.js","assets/affiliate-BBbzMwn7.js","assets/coach-dashboard-COTQr_fL.js","assets/offer-intelligence-BnFLTg8j.js","assets/enterprise-dashboard-D7TkLbpd.js","assets/return-to-workforce-DRX5E2hE.js","assets/vp-cfo-DIqsayWu.js"])))=>i.map(i=>d[i]); 2import{r,j as e,b as gs,f as bs}from"./vendor-react-EKpbQ58x.js";import{$ as js,y as vs,a0 as ur,a1 as ys,a2 as B,a3 as ws,a4 as _s}from"./vendor-D5X0EH2b.js";import{u as A,L as D,R as ks,S as Ns,a as o,b as k}from"./vendor-routing-DfDPPI-Y.js";import{L as be,F as ee,B as oe,M as We,a as le,S as Es,T as se,b as Fe,X as F,c as qe,C as mr,d as xe,e as U,A as Q,Z as M,f as pr,g as ye,R as kt,h as q,i as ce,j as xr,k as ne,l as ze,D as He,m as Nt,P as ft,n as Ce,o as Ps,p as Lt,q as Et,r as je,s as Ee,t as ge,U as ie,N as ke,K as Ts,u as Te,v as hr,w as Ss,x as gt,y as Is,z as As,E as Cs,G as Rs,H as Os,I as Ne,J as Ls,O as Ke,Q as Ds,V as zs,W as bt,Y as jt,_ as fr,$ as Pt,a0 as Le,a1 as Pe,a2 as gr,a3 as br,a4 as jr,a5 as vr,a6 as Vs,a7 as $e,a8 as Ms,a9 as Je,aa as Dt,ab as K,ac as Z,ad as at,ae as ot,af as Fs,ag as Ve,ah as zt,ai as $s,aj as Js,ak as Xe,al as Bs,am as Us,an as Gs,ao as Ws,ap as qs,aq as Vt,ar as Be,as as Ue,at as Hs,au as Mt,av as Ft,aw as Ks,ax as Ys,ay as Qs,az as Xs,aA as Tt,aB as Zs,aC as en,aD as tn,aE as rn}from"./icons-Dx8Iaodt.js";import{S as sn,V as yr,b as wr,A as _r,d as kr,T as Nr,D as Er,e as nn,f as an,g as Pr,h as on,i as ln,j as cn,O as Tr,a as dn,C as Sr,k as un,l as Ir,m as Ar,R as mn,n as Cr,o as Rr,p as pn,q as Or,I as Lr,r as Dr,s as zr,t as Vr,L as Mr,v as Fr,w as xn,x as hn}from"./ui-radix-DiOYaS2U.js";import{u as Se,Q as fn}from"./vendor-query-Cy-95fCG.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))a(i);new MutationObserver(i=>{for(const c of i)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function n(i){const c={};return i.integrity&&(c.integrity=i.integrity),i.referrerPolicy&&(c.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?c.credentials="include":i.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function a(i){if(i.ep)return;i.ep=!0;const c=n(i);fetch(i.href,c)}})();const gn="modulepreload",bn=function(t){return"/"+t},$t={},l=function(s,n,a){let i=Promise.resolve();if(n&&n.length>0){let m=function(h){return Promise.all(h.map(b=>Promise.resolve(b).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),u=d?.nonce||d?.getAttribute("nonce");i=m(n.map(h=>{if(h=bn(h),h in $t)return;$t[h]=!0;const b=h.endsWith(".css"),g=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const j=document.createElement("link");if(j.rel=b?"stylesheet":gn,b||(j.as="script"),j.crossOrigin="",j.href=h,u&&j.setAttribute("nonce",u),document.head.appendChild(j),b)return new Promise((v,w)=>{j.addEventListener("load",v),j.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${h}`)))})}))}function c(d){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=d,window.dispatchEvent(u),!u.defaultPrevented)throw d}return i.then(d=>{for(const u of d||[])u.status==="rejected"&&c(u.reason);return s().catch(c)})},W=[{path:"/dashboard",icon:be,title:"Your Command Center",description:"Your AI-powered job search hub. Urgent tasks surface automatically, progress is tracked across every application, and
2your next best move is always one click away.",tip:"Pro tip: check your Dashboard every morning â it surfaces what needs attention today."},{path:"/resume",icon:ee,title:"AI Resume Builder",description:"Upload your current resume or build from scratch. AI scores it against ATS systems, rewrites weak bullets, and tailors the whole document to match any job description in seconds.",tip:"Paste a job description into the ATS Deep Scanner after building your resume to see your match score."},{path:"/jobs",icon:oe,title:"Job Pipeline",description:"Track every application from saved â submitted â offer in one place. AI drafts follow-up messages, analyses job descriptions, and calculates your resume match score for each role.",tip:"Click any job to see your AI match score and get a tailored cover letter instantly."},{path:"/interview-prep",icon:We,title:"Interview Prep",description:"Get role-specific interview questions with AI coaching on your answers. Practice your responses, close skill gaps, and run mock interviews â so you walk in fully prepared.",tip:"Generate prep for a specific job from the Job Pipeline to get hyper-targeted questions."},{path:"/cover-letter",icon:le,title:"Cover Letter Generator",description:"Personalized, ATS-friendly cover letters in under 60 seconds. AI pulls from your resume and the job description so every letter is genuinely tailored â not a generic template.",tip:"Write a cover letter directly from a job in your pipeline to auto-fill the role details."},{path:"/ats-deep-scanner",icon:Es,title:"ATS Deep Scanner",description:"See exactly how your resume scores against any job posting. Understand which keywords you're missing, which sections need strengthening, and exactly what to fix to beat the bots.",tip:"Run your resume against 3â5 target job descriptions to identify common gaps."},{path:"/first-90-days",icon:se,title:"First 90 Days Planner",description:"Once you land the role, don't stop there. AI builds a personalised 30/60/90-day plan so you make a strong impression from day one and accelerate your path to your first promotion.",tip:"Start your 90-day plan on your first week â it shows your manager you're serious."}],$r=r.createContext({isActive:!1,currentStep:0,step:W[0],total:W.length,startTour:()=>{},exitTour:()=>{},nextStep:()=>{},prevStep:()=>{},goToStep:()=>{}});function jn({children:t}){const[s,n]=r.useState(!1),[a,i]=r.useState(0),[,c]=A(),d=r.useCallback(()=>{i(0),n(!0),c(W[0].path)},[c]),u=r.useCallback(()=>{n(!1)},[]),m=r.useCallback(()=>{i(g=>{if(g>=W.length-1)return n(!1),g;const j=g+1;return c(W[j].path),j})},[c]),h=r.useCallback(()=>{i(g=>{if(g<=0)return g;const j=g-1;return c(W[j].path),j})},[c]),b=r.useCallback(g=>{g>=0&&g<W.length&&(i(g),c(W[g].path),n(!0))},[c]);return e.jsx($r.Provider,{value:{isActive:s,currentStep:a,step:W[a],total:W.length,startTour:d,exitTour:u,nextStep:m,prevStep:h,goToStep:b},children:t})}const Jr=()=>r.useContext($r);function y(...t){return js(vs(t))}const vn=ur("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover-elevate active-elevate-2",{variants:{variant:{default:"bg-primary text-primary-foreground border border-primary-border",destructive:"bg-destructive text-destructive-foreground shadow-sm border-destructive-border",outline:" border [border-color:var(--button-outline)] shadow-xs active:shadow-none ",secondary:"border bg-secondary text-secondary-foreground border border-secondary-border ",ghost:"border border-transparent",link:"text-primary underline-offset-4 hover:underline"},size:{default:"min-h-9 px-4 py-2",sm:"min-h-8 rounded-md px-3 text-xs",lg:"min-h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),P=r.forwardRef(({className:t,variant:s,size:n,asChild:a=!1,...i},c)=>{const d=a?sn:"button";return e.jsx(d,{className:y(vn({variant:s,size:n,className:t})),ref:c,...i})});P.displayName="Button";function yn(){const{isActive:t,currentStep:s,step:n,total:a,exitTour:i,nextStep:c,prevStep:d,goToStep:u}=Jr();if(r.useEffect(()=>{if(!t)return;function b(g){(g.key==="ArrowRight"||g.key==="Enter")&&c(),g.key==="ArrowLeft"&&d(),g.key==="Escape"&&i()}return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[t,c,d,i]),!t)return null;const m=s===a-1,h=n.icon;return e.jsxs("div",{className:"fixed bottom-5 right-5 z-50 w-80 rounded-2xl shadow-2xl border bg-card overflow-hidden animate-in slide-in-from-bottom-4 duration-300",role:"dialog","aria-label":"Guided tour",children:[e.jsxs("div",{className:"bg-gradient-to-r from-blue-600 to-indigo-600 px-4 py-3 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2 text-white",children:[e.jsx(Fe,{className:"w-4 h-4 opacity-80"}),e.jsx("span",{className:"text-xs font-semibold uppercase tracking-wide opacity-90",children:"Platform Tour"})]}),e.jsx("button",{onClick:i,className:"text-white/70 hover:text-white transition-colors rounded-full p-0.5","aria-label":"Exit tour",children:e.jsx(F,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"flex items-center gap-1 px-4 pt-3",children:[W.map((b,g)=>e.jsx("button",{onClick:()=>u(g),className:`h-1.5 rounded-full transition-all duration-200 ${g===s?"w-6 bg-blue-500":g<s?"w-1.5 bg-blue-300":"w-1.5 bg-muted-foreground
2/20"}`,"aria-label":`Go to step ${g+1}`},g)),e.jsxs("span",{className:"ml-auto text-[10px] text-muted-foreground font-medium",children:[s+1," / ",a]})]}),e.jsxs("div",{className:"px-4 pt-3 pb-2 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-8 h-8 rounded-xl bg-blue-50 dark:bg-blue-950/40 flex items-center justify-center shrink-0",children:e.jsx(h,{className:"w-4 h-4 text-blue-600 dark:text-blue-400"})}),e.jsx("h3",{className:"font-bold text-sm leading-tight",children:n.title})]}),e.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:n.description}),n.tip&&e.jsxs("div",{className:"flex items-start gap-2 bg-amber-50 dark:bg-amber-950/30 rounded-lg p-2.5 border border-amber-100 dark:border-amber-900/50",children:[e.jsx(qe,{className:"w-3.5 h-3.5 text-amber-500 shrink-0 mt-0.5"}),e.jsx("p",{className:"text-[11px] text-amber-800 dark:text-amber-300 leading-relaxed",children:n.tip})]})]}),e.jsxs("div",{className:"px-4 pb-4 flex items-center justify-between gap-2",children:[e.jsxs(P,{size:"sm",variant:"ghost",onClick:d,disabled:s===0,className:"h-8 text-xs",children:[e.jsx(mr,{className:"w-3.5 h-3.5 mr-0.5"}),"Back"]}),e.jsx(P,{size:"sm",onClick:m?i:c,className:"h-8 text-xs bg-blue-600 hover:bg-blue-700 text-white flex-1",children:m?"Finish tour â":e.jsxs(e.Fragment,{children:["Next ",e.jsx(xe,{className:"w-3.5 h-3.5 ml-0.5"})]})})]}),e.jsx("p",{className:"text-[10px] text-muted-foreground text-center pb-2.5",children:"â â arrow keys to navigate · Esc to exit"})]})}const wn=` 3@keyframes wmj-ring-draw { 4 from { stroke-dashoffset: 202; } 5 to { stroke-dashoffset: 0; } 6} 7@keyframes wmj-node-in { 8 from { opacity: 0; transform: scale(0.4); } 9 to { opacity: 1; transform: scale(1); } 10} 11@keyframes wmj-glow { 12 0%, 100% { filter: drop-shadow(0 0 3px #3b82f655); } 13 50% { filter: drop-shadow(0 0 10px #3b82f6cc); } 14} 15`;let Jt=!1;function _n(){if(Jt||typeof document>"u")return;const t=document.createElement("style");t.textContent=wn,document.head.appendChild(t),Jt=!0}function Me({size:t=36,ringColor:s="#0a1628",nodeColor:n="#3b82f6",gradientEnd:a="#2563eb",animate:i=!0,className:c}){const d=`wmj-${t}-${s.replace("#","")}`;return r.useEffect(()=>{_n()},[]),e.jsxs("svg",{width:t,height:t,viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,className:c,children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:`${d}-g`,gradientUnits:"userSpaceOnUse",x1:"0",y1:"100",x2:"100",y2:"0",children:[i&&e.jsx("animateTransform",{attributeName:"gradientTransform",type:"rotate",from:"0 50 50",to:"360 50 50",dur:"6s",repeatCount:"indefinite"}),e.jsx("stop",{offset:"0%",stopColor:s}),e.jsx("stop",{offset:"100%",stopColor:a})]})}),e.jsx("path",{d:"M 73.7 26.3 A 36 36 0 1 0 87 50",stroke:`url(#${d}-g)`,strokeWidth:"9",strokeLinecap:"round",style:i?{strokeDasharray:202,strokeDashoffset:0,animation:"wmj-ring-draw 0.7s cubic-bezier(0.4,0,0.2,1) both"}:void 0}),e.jsx("circle",{cx:"80",cy:"20",r:"7",fill:n,style:i?{transformOrigin:"80px 20px",animation:"wmj-node-in 0.4s 0.55s cubic-bezier(0.34,1.56,0.64,1) both, wmj-glow 4s 1.2s ease-in-out infinite"}:void 0})]})}function kn({wordmarkColor:t="#ffffff",markRingColor:s="#ffffff",markGradientEnd:n="#60a5fa",markSize:a=28,animate:i=!0,className:c}){return e.jsxs("div",{className:`flex items-center gap-[10px] ${c??""}`,children:[e.jsx(Me,{size:a,ringColor:s,gradientEnd:n,animate:i}),e.jsx("span",{className:"font-bold leading-none tracking-tight select-none",style:{color:t,fontSize:a*.78,fontFamily:"Inter, system-ui, sans-serif",lineHeight:1},children:"Win My Job"})]})}function pd({size:t=40,borderRadius:s="10px",animate:n=!0}){return e.jsx("div",{className:"bg-[#0a1628] flex items-center justify-center shadow-md",style:{width:t,height:t,borderRadius:s,flexShrink:0},children:e.jsx(Me,{size:Math.round(t*.58),ringColor:"#ffffff",gradientEnd:"#60a5fa",nodeColor:"#3b82f6",animate:n})})}const Nn=1,En=1e6;let it=0;function Pn(){return it=(it+1)%Number.MAX_SAFE_INTEGER,it.toString()}const lt=new Map,Bt=t=>{if(lt.has(t))return;const s=setTimeout(()=>{lt.delete(t),De({type:"REMOVE_TOAST",toastId:t})},En);lt.set(t,s)},Tn=(t,s)=>{switch(s.type){case"ADD_TOAST":return{...t,toasts:[s.toast,...t.toasts].slice(0,Nn)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(n=>n.id===s.toast.id?{...n,...s.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=s;
15return n?Bt(n):t.toasts.forEach(a=>{Bt(a.id)}),{...t,toasts:t.toasts.map(a=>a.id===n||n===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return s.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(n=>n.id!==s.toastId)}}},Ye=[];let Qe={toasts:[]};function De(t){Qe=Tn(Qe,t),Ye.forEach(s=>{s(Qe)})}function vt({...t}){const s=Pn(),n=i=>De({type:"UPDATE_TOAST",toast:{...i,id:s}}),a=()=>De({type:"DISMISS_TOAST",toastId:s});return De({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:i=>{i||a()}}}),{id:s,dismiss:a,update:n}}function Ie(){const[t,s]=r.useState(Qe);return r.useEffect(()=>(Ye.push(s),()=>{const n=Ye.indexOf(s);n>-1&&Ye.splice(n,1)}),[t]),{...t,toast:vt,dismiss:n=>De({type:"DISMISS_TOAST",toastId:n})}}const Sn=nn,Br=r.forwardRef(({className:t,...s},n)=>e.jsx(yr,{ref:n,className:y("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",t),...s}));Br.displayName=yr.displayName;const In=ur("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ur=r.forwardRef(({className:t,variant:s,...n},a)=>e.jsx(wr,{ref:a,className:y(In({variant:s}),t),...n}));Ur.displayName=wr.displayName;const Ze=r.forwardRef(({className:t,...s},n)=>e.jsx(_r,{ref:n,className:y("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",t),...s}));Ze.displayName=_r.displayName;const Gr=r.forwardRef(({className:t,...s},n)=>e.jsx(kr,{ref:n,className:y("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",t),"toast-close":"",...s,children:e.jsx(F,{className:"h-4 w-4"})}));Gr.displayName=kr.displayName;const Wr=r.forwardRef(({className:t,...s},n)=>e.jsx(Nr,{ref:n,className:y("text-sm font-semibold",t),...s}));Wr.displayName=Nr.displayName;const qr=r.forwardRef(({className:t,...s},n)=>e.jsx(Er,{ref:n,className:y("text-sm opacity-90",t),...s}));qr.displayName=Er.displayName;function An(){const{toasts:t}=Ie();return e.jsxs(Sn,{children:[t.map(function({id:s,title:n,description:a,action:i,...c}){return e.jsxs(Ur,{...c,children:[e.jsxs("div",{className:"grid gap-1",children:[n&&e.jsx(Wr,{children:n}),a&&e.jsx(qr,{children:a})]}),i,e.jsx(Gr,{})]},s)}),e.jsx(Br,{})]})}const Cn=cn,xd=on,hd=ln,Rn=r.forwardRef(({className:t,sideOffset:s=4,...n},a)=>e.jsx(an,{children:e.jsx(Pr,{ref:a,sideOffset:s,className:y("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
15de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",t),...n})}));Rn.displayName=Pr.displayName;function ae(t){return`wmj_mode_last_path_${t}`}function On(t,s){for(const n of t){if(n.kind==="item"&&n.href===s)return n.label??null;if(n.kind==="group"&&n.items){for(const a of n.items)if(a.href===s)return a.label}}return null}const Ge="/".replace(/\/$/,"")+"/api",Ln=14,Dn=Ln*24*60*60*1e3;function Hr(t){return t.trialEndsAt?new Date(t.trialEndsAt).getTime():new Date(t.createdAt).getTime()+Dn}function Y(t){return!t||t.subscriptionStatus==="canceled"?!1:Date.now()<Hr(t)}function St(t){return t?Math.max(0,Math.ceil((Hr(t)-Date.now())/(1440*60*1e3))):0}const It=new Set(["admin","marketing","va","cmo"]);function we(t){return t?!!(It.has(t.role)||t.isPremium||t.subscriptionStatus==="active"||t.subscriptionStatus==="trialing"||t.subscriptionStatus==="past_due"&&t.paymentFailedAt&&(Date.now()-new Date(t.paymentFailedAt).getTime())/864e5<=3):!1}const zn=new Set(["admin","marketing","va","cmo","mentor"]),Vn=new Date("2026-06-02T00:00:00Z"),Mn=new Date("2026-06-16T00:00:00Z"),Fn=2880*60*1e3;function Kr(t){if(!t||t.emailVerified||zn.has(t.role))return null;const s=new Date(t.createdAt);return s<Vn?Mn:new Date(s.getTime()+Fn)}function $n(t){const s=Kr(t);return s!==null&&Date.now()<s.getTime()}function Jn(t){const s=Kr(t);return s?Math.max(0,Math.ceil((s.getTime()-Date.now())/864e5)):0}function Bn(t){return!t||t.subscriptionStatus!=="past_due"||!t.paymentFailedAt?!1:(Date.now()-new Date(t.paymentFailedAt).getTime())/864e5<=3}function Un(t){if(!t?.paymentFailedAt)return 0;const s=(Date.now()-new Date(t.paymentFailedAt).getTime())/864e5;return Math.max(0,Math.ceil(3-s))}function Gn(t){return we(t)||Y(t)}const Ut={core:1,pro:2,teams:2};function Yr(t){return t?It.has(t.role)||t.isPremium?"pro":we(t)&&t.subscriptionTier||null:null}function At(t,s){if(!t)return!1;if(It.has(t.role)||t.isPremium||Y(t))return!0;if(!we(t))return!1;const n=Ut[t.subscriptionTier??""]??0,a=Ut[s]??0;return n>=a}const Qr=r.createContext(null);function Wn(){const t=document.cookie.match(/(?:^|;\s*)csrf-token=([^;]+)/);return t?decodeURIComponent(t[1]):""}function ct(t,s={}){const n=Wn(),a=(s.method??"GET").toUpperCase(),i=!["GET","HEAD","OPTIONS"].includes(a);return fetch(t,{...s,headers:{"Content-Type":"application/json",...i&&n?{"X-CSRF-Token":n}:{},...s.headers??{}},credentials:"include"})}function qn({children:t}){const[s,n]=r.useState({user:null,isLoading:!0,isAuthenticated:!1}),a=r.useCallback(async()=>{try{const m=await fetch(`${Ge}/auth/me`,{credentials:"include"});if(m.ok){const h=await m.json();n({user:h,isLoading:!1,isAuthenticated:!0})}else localStorage.removeItem(ae("job_search")),localStorage.removeItem(ae("career")),n({user:null,isLoading:!1,isAuthenticated:!1})}catch{n({user:null,isLoading:!1,isAuthenticated:!1})}},[]);r.useEffect(()=>{a()},[a]);const i=async(m,h,b)=>{const g=await ct(`${Ge}/auth/login`,{method:"POST",body:JSON.stringify({email:m,password:h,...b})}),j=await g.json();if(j.requiresVerification){const _=new Error(j.error||"Please verify your email before signing in.");throw _.requiresVerification=!0,_.email=j.email??m,_}if(j.requires2FASetup){const _=new Error("admin-2fa-setup");throw _.requires2FASetup=!0,_.setupToken=j.setupToken,_}if(j.requires2FA){const _=new Error("2fa-required");throw _.requires2FA=!0,_}if(!g.ok){const _=new Error(j.error||"Login failed");throw _.status=g.status,_}const v=String(j.user.id),w=localStorage.getItem("wmj_last_user_id");return(!w||w!==v)&&(localStorage.removeItem(ae("job_search")),localStorage.removeItem(ae("career"))),localStorage.setItem("wmj_last_user_id",v),n({user:j.user,isLoading:!1,isAuthenticated:!0}),{user:j.user}},c=async(m,h,b="",g="",j)=>{const v=await ct(`${Ge}/auth/register`,{method:"POST",body:JSON.stringify({email:m,password:h,firstName:b,lastName:g,...j})}),w=await v.json();if(!v.ok)throw new Error(w.error||"Registration failed");return{requiresVerification:!0,email:w.email??m,hadPriorAccount:w.hadPriorAccount}},d=async()=>{await ct(`${Ge}/auth/logout`,{method:"POST"}),localStorage.removeItem("wmj_mode_last_path_job_search"),localStorage.removeItem("wmj_mode_last_path_career"),localStorage.removeItem("wmj_last_user_id"),n({user:null,isLoading:!1,isAuthenticated:!1})},u=r.useMemo(()=>
15({...s,login:i,register:c,logout:d,refreshUser:a}),[s,i,c,d,a]);return e.jsx(Qr.Provider,{value:u,children:t})}function I(){const t=r.useContext(Qr);if(!t)throw new Error("useAuth must be used inside AuthProvider");return t}const he={core:{label:"Core",monthly:29,annual:290,annualSaving:58,features:["AI Resume Builder & Optimizer","AI Cover Letter Generator","Job Recommendations (daily)","AI Outreach Message Generator","Job Boards & Networking tools","Testing Center"]},pro:{label:"Pro",monthly:49,annual:490,annualSaving:98,features:["Everything in Core","Interview Prep & AI Coaching","Offer Negotiation Analysis","Background Check Tracker","Resignation & Exit Interview tools","First 90 Days at Work program"]}};function Hn(){const[,t]=A(),[s,n]=r.useState(!1);return s?null:e.jsx("div",{className:"mx-3 mt-3 mb-1 rounded-xl border border-primary/20 bg-gradient-to-r from-primary/5 to-blue-500/5 px-4 py-3.5",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"flex-shrink-0 w-9 h-9 rounded-lg bg-primary/10 flex items-center justify-center mt-0.5",children:e.jsx(U,{className:"w-4 h-4 text-primary"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-foreground",children:"Unlock AI actions â upgrade to continue"}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"You're on view-only access. Upgrade to use AI resume tailoring, interview coaching, offer analysis, and more."})]}),e.jsx("button",{onClick:()=>n(!0),className:"flex-shrink-0 text-muted-foreground hover:text-foreground transition-colors mt-0.5","aria-label":"Dismiss",children:e.jsx(F,{className:"w-4 h-4"})})]}),e.jsxs("div",{className:"mt-2.5 flex items-center gap-3",children:[e.jsxs(P,{size:"sm",className:"h-7 text-xs gap-1.5",onClick:()=>t("/subscription"),children:[e.jsx(M,{className:"w-3 h-3"}),"Upgrade now"]}),e.jsx("span",{className:"text-xs text-muted-foreground",children:"From $29/mo · cancel anytime"})]})]})]})})}const Gt={core:[{icon:M,label:"AI Resume Builder",sub:"ATS-optimized bullets tailored to every role"},{icon:M,label:"AI Cover Letter",sub:"In your voice, specific to the job â not a template"},{icon:M,label:"Job Pipeline + AI Matching",sub:"Daily curated matches + visual application tracker"}],pro:[{icon:U,label:"Interview Prep & AI Coaching",sub:"Role-specific Q&As with model answers + assessment scoring"},{icon:U,label:"Offer & Salary Negotiation",sub:"Word-for-word scripts â subscribers avg $8,240 more"},{icon:U,label:"First 90 Days at Work",sub:"Structured onboarding plan so you land â and stick"}]};function Kn({feature:t,minTier:s}){const[,n]=A(),a=he[s??"core"]??he.core,i=Gt[s??"core"]??Gt.core;return e.jsx("div",{className:"absolute inset-0 z-20 flex items-center justify-center px-4 py-8",style:{background:"radial-gradient(ellipse at center, hsl(var(--background)/0.97) 40%, hsl(var(--background)/0.85) 100%)"},children:e.jsxs("div",{className:"w-full max-w-sm text-center space-y-5",children:[e.jsx("div",{className:"flex justify-center",children:e.jsx("div",{className:"w-14 h-14 rounded-2xl bg-amber-100 border border-amber-200 flex items-center justify-center",children:e.jsx(q,{className:"w-7 h-7 text-amber-600"})})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold mb-1.5",children:"Your Free Trial Has Ended"}),e.jsxs("p",{className:"text-muted-foreground text-sm leading-relaxed",children:["Unlock ",e.jsx("span",{className:"font-semibold text-foreground",children:t})," and your complete AI career toolkit."]})]}),e.jsxs("div",{className:"bg-muted/50 rounded-xl border p-4 text-left space-y-3",children:[e.jsxs("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide flex items-center gap-1.5",children:[e.jsx(ce,{className:"w-3.5 h-3.5 text-primary"})," What you unlock today"]}),i.map(c=>e.jsxs("div",{className:"flex items-start gap-2.5",children:[e.jsx(xr,{className:"w-4 h-4 text-primary flex-shrink-0 mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold",children:c.label}),e.jsx("p",{className:"text-xs text-muted-foreground",children:c.sub})]})]},c.label))]}),e.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl px-4 py-3 flex items-start gap-2.5 text-left dark:bg-emerald-950/30 dark:border-emerald-800/50",children:[e.jsx(ne,{className:"w-4 h-4 text-emerald-600 flex-shrink-0 mt-0.5 dark:text-emerald-400"}),e.jsxs("p",{className:"text-xs text-emerald-800 dark:text-emerald-300 leading-relaxed",children:[e.jsx("span",{className:"font-semibold",children:"One better salary negotiation"})," typically returns $5Kâ20K. At $",he.pro.monthly,"/mo, this pays for itself in the first offer."]})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"text-2xl font-bold",children:["$",a.monthly,e.jsx("span",{className:"text-base font-normal text-muted-foreground",children:"/month"})]}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:["or $",a.annual,"/year â save $",a.annualSaving]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(P,{className:"w-full h-11 text-base font-semibold gap-2",onClick:()=>n("/subscription"),children:[e.jsx(U,{className:"w-4 h-4"}),"Upgrade to ",a.label,e.jsx(Q,{className:"w-4 h-4 ml-auto"})]}),e.jsx(P,{variant:"ghost",className:"w-full text-sm text-muted-foreground",onClick:()=>n("/subscription"),children:"View all plans"})]})]})})}function Yn({feature:t}){const[,s]=A();return e.jsx("div",{className:"absolute inset-0 z-20 flex items-center justify-center px-4",style:{background:"radial-gradient(ellipse at center, hsl(var(--background)/0.97) 40%, hsl(var(--background)/0.85) 100%)"},children:e.jsxs("div",{className:"w-full max-w-sm text-center space-y-5",children:[e.jsx("div",{className:"flex justify-center",children:e.jsx("div",{className:"w-16 h-16 rounded-2xl bg-red-100 border border-red-200 flex items-center justify-center",children:e.jsx(ye,{className:"w-8 h-8 text-red-500"})})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Subscription
15Ended"}),e.jsxs("p",{className:"text-muted-foreground text-sm leading-relaxed",children:["Your subscription has been cancelled. Resubscribe to regain access to"," ",e.jsx("span",{className:"font-semibold text-foreground",children:t})," and all AI features."]})]}),e.jsx("div",{className:"space-y-2",children:e.jsxs(P,{className:"w-full h-11 text-base font-semibold gap-2",onClick:()=>s("/subscription"),children:[e.jsx(kt,{className:"w-4 h-4"}),"Resubscribe",e.jsx(Q,{className:"w-4 h-4 ml-auto"})]})})]})})}function Qn(){const[,t]=A();return e.jsx("div",{className:"absolute inset-0 z-20 flex items-center justify-center px-4",style:{background:"radial-gradient(ellipse at center, hsl(var(--background)/0.97) 40%, hsl(var(--background)/0.85) 100%)"},children:e.jsxs("div",{className:"w-full max-w-sm text-center space-y-5",children:[e.jsx("div",{className:"flex justify-center",children:e.jsx("div",{className:"w-16 h-16 rounded-2xl bg-red-100 border border-red-200 flex items-center justify-center",children:e.jsx(ye,{className:"w-8 h-8 text-red-500"})})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Payment Issue"}),e.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:"Your last payment failed. Please update your billing details to restore full access."})]}),e.jsx("div",{className:"space-y-2",children:e.jsxs(P,{className:"w-full h-11 text-base font-semibold gap-2",onClick:()=>t("/subscription"),children:["Update Billing",e.jsx(Q,{className:"w-4 h-4 ml-auto"})]})})]})})}function Wt({feature:t}){const[,s]=A();return e.jsx("div",{className:"absolute inset-0 z-20 flex items-center justify-center px-4",style:{background:"radial-gradient(ellipse at center, hsl(var(--background)/0.97) 40%, hsl(var(--background)/0.85) 100%)"},children:e.jsxs("div",{className:"w-full max-w-sm text-center space-y-5",children:[e.jsx("div",{className:"flex justify-center",children:e.jsx("div",{className:"w-16 h-16 rounded-2xl bg-primary/10 border border-primary/20 flex items-center justify-center",children:e.jsx(pr,{className:"w-8 h-8 text-primary"})})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Upgrade to Unlock"}),e.jsxs("p",{className:"text-muted-foreground text-sm leading-relaxed",children:[e.jsx("span",{className:"font-semibold text-foreground",children:t})," requires an active subscription."]})]}),e.jsx("div",{className:"space-y-2",children:e.jsxs(P,{className:"w-full h-11 text-base font-semibold gap-2",onClick:()=>s("/subscription"),children:[e.jsx(U,{className:"w-4 h-4"}),"View Plans",e.jsx(Q,{className:"w-4 h-4 ml-auto"})]})})]})})}const qt={core:"Core",pro:"Pro"},Xn={core:M,pro:U},Zn=[{label:"Interview Prep & AI Coaching",sub:"Role-specific Q&As, model answers + assessment scoring"},{label:"Offer & Salary Negotiation",sub:"Word-for-word scripts â subscribers avg $8,240 more"},{label:"First 90 Days at Work",sub:"Structured onboarding plan so you land â and stick"},{label:"Background Check Tracker",sub:"Know exactly what employers will see before they do"},{label:"Resignation & Exit Tools",sub:"Leave gracefully â protect your reputation"}];function ea({feature:t,requiredTier:s,currentTier:n}){const[,a]=A(),i=qt[s]??s,c=Xn[s]??U,d=s in he?`$${he[s].monthly}`:"",u=s==="pro"?Zn:[];return e.jsx("div",{className:"absolute inset-0 z-20 flex items-center justify-center px-4 py-8",style:{background:"radial-gradient(ellipse at center, hsl(var(--background)/0.97) 40%, hsl(var(--background)/0.85) 100%)"},children:e.jsxs("div",{className:"w-full max-w-sm text-center space-y-5",children:[e.jsx("div",{className:"flex justify-center",children:e.jsx("div",{className:"w-14 h-14 rounded-2xl bg-primary/10 border border-primary/20 flex items-center justify-center",children:e.jsx(c,{className:"w-7 h-7 text-primary"})})}),e.jsxs("div",{children:[e.jsxs("div",{className:"inline-flex items-center gap-1.5 bg-primary/10 border border-primary/20 rounded-full px-3 py-1 text-xs font-semibold text-primary mb-2",children:[e.jsx(ce,{className:"w-3 h-3"})," ",i," Plan"]}),e.jsxs("h2",{className:"text-xl font-bold mb-1.5",children:["Unlock ",t]}),e.jsxs("p",{className:"text-muted-foreground text-sm leading-relaxed",children:[n?`Your ${qt[n]??n} plan doesn't include this.`:""," Upgrade to ",i," for the full career toolkit."]})]}),u.length>0&&e.jsxs("div",{className:"bg-muted/50 rounded-xl border p-4 text-left space-y-3",children:[e.jsxs("p",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide flex items-center gap-1.5",children:[e.jsx(c,{className:"w-3.5 h-3.5 text-primary"})," ",i," unlocks"]}),u.slice(0,4).map(m=>e.jsxs("div",{className:"flex items-start gap-2.5",children:[e.jsx(xr,{className:"w-4 h-4 text-primary flex-shrink-0 mt-0.5"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold",children:m.label}),e.jsx("p",{className:"text-xs text-muted-foreground",children:m.sub})]})]},m.label))]}),e.jsxs("div",{className:"bg-emerald-50 border border-emerald-200 rounded-xl px-4 py-3 flex items-start gap-2.5 text-left dark:bg-emerald-950/30 dark:border-emerald-800/50",children:[e.jsx(ne,{className:"w-4 h-4 text-emerald-600 flex-shrink-0 mt-0.5 dark:text-emerald-400"}),e.jsxs("p",{className:"text-xs text-emerald-800 dark:text-emerald-300 leading-relaxed",children:[e.jsx("span",{className:"font-semibold",children:"One better negotiation typically returns $5Kâ20K."})," At $",he[s]?.monthly??he.pro.monthly,"/mo, Pro pays for itself in the first offer."]})]}),d&&e.jsxs("div",{children:[e.jsxs("div",{className:"text-2xl font-bold",children:[d,e.jsx("span",{className:"text-base font-normal text-muted-foreground",children:"/month"})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"or save 17% with annual billing"})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs(P,{className:"w-full h-11 text-base font-semibold gap-2",onClick:()=>a("/subscription"),children:[e.jsx(c,{className:"w-4 h-4"}),"Upgrade to ",i,e.jsx(Q,{className:"w-4 h-4 ml-auto"})]}),e.jsx(P,{variant:"ghost",className:"w-full text-sm text-muted-foreground",onClick:()=>a("/subscription"),children:"View all plans"})]})]})})}function yt({feature:t,minTier:s,allowExpired:n,children:a}){const{user:i,isLoading:c}=I();if(c)return null;if(i?.role==="admin"||i?.role==="marketing")return e.jsx(e.Fragment,{children:a});if(!Gn(i)){if(n&&i)return e.jsxs(e.Fragment,{children:[e.jsx(Hn,{}),a]});const d=(()=>
15{if(!i)return e.jsx(Wt,{feature:t});const u=i.subscriptionStatus;return u==="past_due"?e.jsx(Qn,{}):u==="canceled"?e.jsx(Yn,{feature:t}):Y(i)?e.jsx(Wt,{feature:t}):e.jsx(Kn,{feature:t,minTier:s})})();return e.jsx("div",{className:"relative min-h-[calc(100vh-4rem)] flex items-center justify-center px-4",children:d})}if(s&&!Y(i)&&!At(i,s)){const d=Yr(i);return e.jsx("div",{className:"relative min-h-[calc(100vh-4rem)] flex items-center justify-center px-4",children:e.jsx(ea,{feature:t,requiredTier:s,currentTier:d})})}return e.jsx(e.Fragment,{children:a})}function ta(){const{user:t}=I(),[,s]=A();if(!t||!Bn(t))return null;const n=Un(t),a=n<=1;return e.jsxs("div",{className:`${a?"bg-red-50 border-red-300 text-red-900":"bg-amber-50 border-amber-300 text-amber-900"} border-b px-4 py-2 flex items-center justify-between gap-3 text-sm`,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(ze,{className:`w-4 h-4 flex-shrink-0 ${a?"text-red-600":"text-amber-700"}`}),e.jsxs("span",{children:[e.jsx("span",{className:"font-semibold",children:"Payment failed."})," ",n===0?"Access will be paused today if billing isn't updated.":`You have ${n} day${n!==1?"s":""} to fix your billing before access is paused.`]})]}),e.jsxs(P,{size:"sm",className:`h-7 text-xs gap-1 flex-shrink-0 ${a?"bg-red-600 hover:bg-red-700":""}`,onClick:()=>s("/subscription"),children:[e.jsx(ze,{className:"w-3 h-3"}),"Fix Billing"]})]})}function ra(){const{user:t}=I(),[,s]=A();if(!t||we(t)||!Y(t))return null;const n=St(t);return e.jsxs("div",{className:"bg-amber-50 border-b border-amber-200 px-4 py-2 flex items-center justify-between gap-3 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-2 text-amber-800",children:[e.jsx(q,{className:"w-4 h-4 flex-shrink-0"}),e.jsxs("span",{children:[e.jsxs("span",{className:"font-semibold",children:[n," day",n!==1?"s":""," left"]})," in your free trial"]})]}),e.jsxs(P,{size:"sm",className:"h-7 text-xs gap-1",onClick:()=>s("/subscription"),children:[e.jsx(U,{className:"w-3 h-3"}),"Upgrade"]})]})}function sa(){const{user:t}=I(),[,s]=A(),[n,a]=r.useState(()=>{try{return localStorage.getItem("trial_ext_banner_dismissed")==="1"}catch{return!1}}),[i,c]=r.useState(!1);if(!t||we(t)||!Y(t)||t.cardOnFile===!0||t.trialBonusAwarded===!0||n)return null;const d=St(t);async function u(){c(!0);try{const h="/".replace(/\/$/,""),b=await fetch(`${h}/api/stripe/checkout/start-trial`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({extend:!0})});if(!b.ok){s("/subscription");return}const g=await b.json();g.url?window.location.href=g.url:s("/subscription")}catch{s("/subscription")}finally{c(!1)}}function m(){try{localStorage.setItem("trial_ext_banner_dismissed","1")}catch{}a(!0)}return e.jsx("div",{className:"w-full bg-gradient-to-r from-blue-600 to-indigo-700 text-white px-4 py-3 shadow-md border-b border-indigo-800 relative",children:e.jsxs("div",{className:"max-w-6xl mx-auto flex flex-col sm:flex-row items-center justify-between gap-3 text-center sm:text-left",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"flex h-7 w-7 items-center justify-center rounded-full bg-white/20 text-sm font-bold flex-shrink-0",children:"ð"}),e.jsxs("p",{className:"text-sm font-medium leading-snug",children:[e.jsx("span",{className:"font-bold",children:"Trial Bonus:"})," Add your billing details now to get"," ",e.jsx("span",{className:"bg-amber-400 text-slate-900 px-1.5 py-0.5 rounded font-bold text-xs",children:"+7 extra days free"})," ","â no charge until your extended trial ends."]})]}),e.jsxs("div",{className:"flex items-center gap-3 flex-shrink-0",children:[e.jsxs("span",{className:"text-xs text-indigo-200 hidden lg:inline font-mono whitespace-nowrap",children:["â³ ",d," day",d!==1?"s":""," left in trial"]}),e.jsx("button",{onClick:u,disabled:i,className:"bg-white hover:bg-slate-100 text-blue-700 font-bold text-xs uppercase tracking-wider px-4 py-2 rounded-xl shadow transition-all duration-150 hover:-translate-y-0.5 disabled:opacity-60 whitespace-nowrap",children:i?"Loadingâ¦":"Claim +7 Days Free"}),e.jsx("button",{onClick:m,className:"text-white/60 hover:text-white text-lg leading-none","aria-label":"Dismiss",children:"Ã"})]})]})})}function na(){const{user:t}=I(),[s,n]=r.useState(!1),[a,i]=r.useState(!1),[c,d]=r.useState(!1);if(!t||t.emailVerified!==!1||s)return null;async function u(){if(t){d(!0);try{await fetch(`${"/".replace(/\/$/,"")}/api/auth/resend-verification-public`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t.email}),credentials:"include"}),i(!0)}finally{d(!1)}}}return e.jsxs("div",{className:"bg-blue-50 border-b border-blue-200 px-4 py-2 flex items-center justify-between gap-3 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-2 text-blue-800",children:[e.jsx(le,{className:"w-4 h-4 flex-shrink-0"}),e.jsxs("span",{children:[e.jsx("span",{className:"font-semibold",children:"Verify your email"})," â check your inbox for a verification link."]})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[a?e.jsx("span",{className:"text-xs text-blue-700 font-medium",children:"Email sent!"}):e.jsx(P,{size:"sm",variant:"outline",className:"h-7 text-xs border-blue-300 text-blue-800 hover:bg-blue-100",onClick:u,disabled:c,
15children:c?"Sendingâ¦":"Resend"}),e.jsx("button",{onClick:()=>n(!0),className:"text-blue-400 hover:text-blue-600 text-xs leading-none",children:"â"})]})]})}function fd({context:t,scheduledCount:s}){const{user:n}=I(),[,a]=A(),i=`wmj_pro_hint_${t}_dismissed`,[c,d]=r.useState(()=>localStorage.getItem(i)==="1");if(c||!n||Y(n)||!we(n)||At(n,"pro")||Yr(n)!=="core")return null;const u=s&&s>0?`You have ${s} interview${s!==1?"s":""} coming up â Pro unlocks Interview Prep coaching, Battle Cards, and AI Mock Interviews.`:"Ready to ace your next interview? Pro unlocks Interview Prep coaching, Battle Cards, and AI Mock Interviews.";return e.jsxs("div",{className:"mb-4 flex items-start sm:items-center justify-between gap-3 rounded-xl border border-primary/20 bg-primary/5 px-4 py-3",children:[e.jsxs("div",{className:"flex items-start sm:items-center gap-3",children:[e.jsx(U,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-primary sm:mt-0"}),e.jsx("p",{className:"text-sm leading-snug text-foreground",children:u})]}),e.jsxs("div",{className:"flex flex-shrink-0 items-center gap-2",children:[e.jsxs(P,{size:"sm",className:"h-7 gap-1 text-xs",onClick:()=>a("/subscription"),children:["Upgrade to Pro ",e.jsx(Q,{className:"h-3 w-3"})]}),e.jsx("button",{onClick:()=>{localStorage.setItem(i,"1"),d(!0)},"aria-label":"Dismiss",className:"text-muted-foreground hover:text-foreground",children:e.jsx(F,{className:"h-4 w-4"})})]})]})}const Xr="/".replace(/\/$/,"")+"/api",aa=new Set(["/resumes/parse-upload","/resumes/tailor-for-job","/resumes/quick-start","/ai/update-resume","/ai/generate-resume-summary","/ai/translate-bullets","/ai/translate-accomplishments","/ai/enhance-skills","/ai/suggest-skills","/ai/parse-linkedin","/ai/ats-deep-scan","/ai/rapid-deploy","/ai/rapid-deploy/generate"]);function Zr(){const t=document.cookie.match(/(?:^|;\s*)csrf-token=([^;]+)/);return t?decodeURIComponent(t[1]):""}async function $(t,s,n){const a={"Content-Type":"application/json"};if(!["GET","HEAD","OPTIONS"].includes(t.toUpperCase())){const c=Zr();c&&(a["X-CSRF-Token"]=c)}const i=await fetch(`${Xr}${s}`,{method:t,headers:a,credentials:"include",body:n?JSON.stringify(n):void 0});if(!i.ok){const c=await i.json().catch(()=>({error:i.statusText})),d=new Error(c.message||c.error||"Request failed");throw d.code=c.error,d.status=i.status,d.graceUntil=c.graceUntil??null,d.trialLimitReached=c.trialLimitReached??!1,d.budgetLimitReached=c.budgetLimitReached??!1,d.dailyCreditExhausted=c.dailyCreditExhausted??!1,d.resetsAt=c.resetsAt??null,c.error==="EMAIL_NOT_VERIFIED"&&window.dispatchEvent(new CustomEvent("email-not-verified",{detail:{graceUntil:c.graceUntil}})),c.dailyCreditExhausted&&window.dispatchEvent(new CustomEvent("daily-credit-exhausted",{detail:{resetsAt:c.resetsAt??null}})),(c.trialLimitReached||c.budgetLimitReached)&&window.dispatchEvent(new CustomEvent("ai-budget-exhausted",{detail:{trialLimitReached:c.trialLimitReached??!1,budgetLimitReached:c.budgetLimitReached??!1,trialBudgetUsd:c.trialBudgetUsd??null}})),d}return!["GET","HEAD","OPTIONS"].includes(t.toUpperCase())&&aa.has(s)&&window.dispatchEvent(new CustomEvent("resume-credit-consumed")),i.status===204||i.headers.get("content-length")==="0"?null:i.json()}async function gd(t,s,n){const a=n?{"Content-Type":"application/json"}:{};if(!["GET","HEAD","OPTIONS"].includes(t.toUpperCase())){const m=Zr();m&&(a["X-CSRF-Token"]=m)}const i=await fetch(`${Xr}${s}`,{method:t,headers:a,credentials:"include",body:n?JSON.stringify(n):void 0});if(!i.ok){const m=await i.json().catch(()=>({error:i.statusText})),h=new Error(m.message||m.error||"Request failed");throw h.code=m.error,h.status=i.status,h.graceUntil=m.graceUntil??null,m.error==="EMAIL_NOT_VERIFIED"&&window.dispatchEvent(new CustomEvent("email-not-verified",{detail:{graceUntil:m.graceUntil}})),h}const c=await i.blob(),u=(i.headers.get("Content-Disposition")||"").match(/filename="?([^";\n]+)"?/);return{blob:c,filename:u?.[1]||"download"}}function Ht(t){return`wmj_interview_banner_${t}`}function oa(){const{data:t,isLoading:s}=Se({queryKey:["upcoming-interview"],queryFn:()=>$("GET","/user/me/upcoming-interview"),staleTime:9e5,retry:!1}),[n,a]=r.useState(()=>t?.scheduledAt?localStorage.getItem(Ht(t.scheduledAt))==="1":!1);if(s||!t?.hasUpcoming||n)return null;const{company:i,jobTitle:c,hoursUntil:d=0,scheduledAt:u}=t,m=d===0?"very soon":d===1?"in 1 hour":d<24?`in ${d} hours`:`in ${Math.round(d/24)} day${Math.round(d/24)!==1?"s":""}
15`,h=[c,i].filter(Boolean).join(" at ");function b(){u&&localStorage.setItem(Ht(u),"1"),a(!0)}return e.jsxs("div",{className:"flex items-center gap-3 px-4 py-2.5 bg-amber-50 dark:bg-amber-950/40 border-b border-amber-200 dark:border-amber-800 text-amber-900 dark:text-amber-100",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[e.jsx(q,{className:"w-4 h-4 flex-shrink-0 text-amber-600 dark:text-amber-400"}),e.jsxs("span",{className:"text-sm font-medium truncate",children:["Interview ",m,h&&e.jsxs("span",{className:"font-normal text-amber-700 dark:text-amber-300",children:[" · ",h]})]})]}),e.jsxs(D,{href:"/interview-prep",className:"flex items-center gap-1 text-xs font-semibold text-amber-700 dark:text-amber-300 hover:text-amber-900 dark:hover:text-amber-100 transition-colors flex-shrink-0 whitespace-nowrap",children:["Prep now ",e.jsx(Q,{className:"w-3 h-3"})]}),e.jsx("button",{onClick:b,className:"p-0.5 rounded text-amber-500 hover:text-amber-800 dark:hover:text-amber-200 transition-colors flex-shrink-0","aria-label":"Dismiss",children:e.jsx(F,{className:"w-3.5 h-3.5"})})]})}function ia(){const{user:t}=I(),{startTour:s,isActive:n}=Jr(),[a,i]=r.useState(!1),[,c]=A();return!t||t.email!=="[email protected]"||a?null:e.jsx("div",{className:"relative z-40 bg-gradient-to-r from-blue-600 via-indigo-600 to-violet-600 text-white",children:e.jsxs("div",{className:"max-w-screen-xl mx-auto px-4 py-2.5 flex items-center justify-between gap-4 flex-wrap",children:[e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("div",{className:"w-6 h-6 rounded-full bg-white/20 flex items-center justify-center shrink-0",children:e.jsx(ce,{className:"w-3.5 h-3.5"})}),e.jsxs("p",{className:"text-sm font-medium",children:["You're exploring Win My Job in ",e.jsx("strong",{children:"demo mode"}),e.jsx("span",{className:"hidden sm:inline text-white/80",children:" â changes won't be saved."})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(P,{size:"sm",variant:"ghost",onClick:s,disabled:n,className:"h-7 text-xs text-white hover:text-white hover:bg-white/20 gap-1.5",children:[e.jsx(Fe,{className:"w-3.5 h-3.5"}),n?"Tour runningâ¦":"Take a tour"]}),e.jsxs(P,{size:"sm",onClick:()=>c("/register"),className:"h-7 text-xs bg-white text-indigo-700 hover:bg-white/90 font-semibold gap-1",children:["Sign up free",e.jsx(Q,{className:"w-3 h-3"})]}),e.jsx("button",{onClick:()=>i(!0),className:"text-white/70 hover:text-white transition-colors ml-1","aria-label":"Dismiss",children:e.jsx(F,{className:"w-4 h-4"})})]})]})})}const la=1800*1e3,dt=60*1e3;function ca({onIdle:t,onWarn:s,onResume:n,enabled:a=!0,timeoutMs:i=la}){const c=r.useRef(null),d=r.useRef(null),u=r.useRef(null),m=r.useRef(!1),h=r.useCallback(()=>{c.current&&clearTimeout(c.current),d.current&&clearTimeout(d.current),u.current&&clearInterval(u.current),c.current=null,d.current=null,u.current=null},[]),b=r.useCallback(()=>{m.current=!0;let j=Math.round(dt/1e3);s?.(j),u.current=setInterval(()=>{if(j-=1,j<=0){u.current&&clearInterval(u.current);return}s?.(j)},1e3)},[s]),g=r.useCallback(()=>{a&&(m.current&&(m.current=!1,n?.()),h(),d.current=setTimeout(()=>{b(),c.current=setTimeout(()=>{h(),t()},dt)},i-dt))},[a,h,b,t,n]);r.useEffect(()=>{if(!a)return;const j=["mousemove","mousedown","keydown","touchstart","scroll","click"];return j.forEach(v=>window.addEventListener(v,g,{passive:!0})),g(),()=>{h(),j.forEach(v=>window.removeEventListener(v,g))}},[a,g,h])}const da={mail:le,clock:q,flame:Ps,trophy:Ce,phone:ft,calendar:Nt,"door-open":He},ua={action:"bg-blue-500/10 text-blue-600",warning:"bg-amber-500/10 text-amber-600",success:"bg-green-500/10 text-green-600"};function Kt({collapsed:t,placement:s="sidebar"}){const[n,a]=r.useState(!1),[i,c]=r.useState(null),[d,u]=r.useState({}),m=r.useRef(null),{data:h}=Se({queryKey:["notifications"],queryFn:()=>$("GET","/auth/notifications"),refetchInterval:6e4,staleTime:3e4}),b=h?.notifications??[],g=h?.unread??0;function j(){if(!m.current)return;const N=m.current.getBoundingClientRect(),O=320,T=8;if(s==="header"){const V=window.innerWidth-N.right;u({position:"fixed",top:N.bottom+T,right:Math.max(8,V)})}else{const V=window.innerHeight-N.bottom,C=420,me=Math.max(8,N.right+T),G=Math.min(me,window.innerWidth-O-8);if(V>=C||V>=N.top)u({position:"fixed",top:N.bottom+T,left:G});else{const re=Math.max(8,N.top-C-T);u({position:"fixed",top:re,left:G})}}}function v(){n||j(),a(N=>!N)}r.useEffect(()=>{if(!n)return;function N(){j()}return window.addEventListener("resize",N),()=>window.removeEventListener("resize",N)},[n]),r.useEffect(()=>{a(!1)},[window.location.pathname]);const w=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border bg-muted/40",children:[e.jsx("span",{className:"font-semibold text-sm text-foreground",children:"Notifications"}),e.jsx("button",{onClick:()=>a(!1),className:"text-muted-foreground hover:text-foreground transition-colors",children:e.jsx(F,{className:"w-4 h-4"})})]}),b.length===0?e.jsx("div",{className:"px-4 py-8 text-center text-sm text-muted-foreground",children:"You're all caught up!"}):e.jsx("div",{className:"divide-y divide-border max-h-96 overflow-y-auto",children:b.map(N=>{const O=da[N.icon]??Lt,T=ua[N.type]??"bg-muted text-muted-foreground",V=i===N.id;return e.jsx("div",{className:"px-4 py-3 hover:bg-muted/50 transition-colors cursor-pointer",onClick:()=>c(V?null:N.id),children:e.jsxs("div",{className:"flex gap-3 items-start",children:[e.jsx("div",{className:y("w-8 h-8 rounded-lg flex items-center justify-center flex-shrink-0 mt-0.5",T),children:e.jsx(O,{className:"w-4 h-4"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center justify-between gap-1",children:[e.jsxs("div",{className:"flex items-center gap-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-semibold text-foreground truncate",children:N.title}),N.urgent&&e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-red-500 flex-shrink-0"})]}),e.jsx(Et,{className:y("w-3.5 h-3.5 text-muted-foreground flex-shrink-0 transition-transform",V&&"rotate-180")}
15)]}),e.jsx("p",{className:y("text-xs text-muted-foreground mt-0.5 leading-snug",!V&&"line-clamp-2"),children:N.body}),V&&e.jsxs("div",{className:"mt-2 space-y-1.5",children:[N.type==="action"&&N.id==="verify-email"&&e.jsx(D,{href:"/profile",onClick:()=>a(!1),children:e.jsxs("span",{className:"inline-flex items-center gap-0.5 text-xs text-primary font-medium hover:underline",children:["Verify now ",e.jsx(xe,{className:"w-3 h-3"})]})}),N.type==="warning"&&e.jsx(D,{href:"/subscription",onClick:()=>a(!1),children:e.jsxs("span",{className:"inline-flex items-center gap-0.5 text-xs text-primary font-medium hover:underline",children:["Upgrade ",e.jsx(xe,{className:"w-3 h-3"})]})}),N.id==="share-success-story"&&e.jsx(D,{href:"/success-stories",onClick:()=>a(!1),children:e.jsxs("span",{className:"inline-flex items-center gap-0.5 text-xs text-primary font-medium hover:underline",children:["Share your story ",e.jsx(xe,{className:"w-3 h-3"})]})}),N.type==="action"&&N.id!=="verify-email"&&N.link&&e.jsx(D,{href:N.link,onClick:()=>a(!1),children:e.jsxs("span",{className:"inline-flex items-center gap-0.5 text-xs text-primary font-medium hover:underline",children:[N.cta||"View"," ",e.jsx(xe,{className:"w-3 h-3"})]})})]})]})]})},N.id)})})]}),_=n?gs.createPortal(e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 z-[490]",onClick:()=>a(!1)}),e.jsx("div",{className:"z-[500] w-80 bg-popover border border-border rounded-xl shadow-2xl overflow-hidden",style:d,children:w})]}),document.body):null,R=s==="header"?y("relative flex items-center justify-center rounded-lg p-1.5 transition-colors","text-muted-foreground hover:bg-muted hover:text-foreground",n&&"bg-muted text-foreground"):y("relative flex items-center justify-center rounded-lg p-2 transition-colors","text-sidebar-foreground/70 hover:bg-sidebar-accent/50 hover:text-sidebar-foreground",n&&"bg-sidebar-accent/50 text-sidebar-foreground");return e.jsxs("div",{className:"relative",children:[e.jsxs("button",{ref:m,onClick:v,className:R,title:"Notifications",children:[e.jsx(Lt,{className:s==="header"?"w-5 h-5":"w-4 h-4"}),g>0&&e.jsx("span",{className:"absolute top-0.5 right-0.5 w-4 h-4 bg-red-500 text-white text-[10px] font-bold rounded-full flex items-center justify-center leading-none",children:g>9?"9+":g})]}),_]})}const ma=[{href:"/dashboard",label:"Dashboard",keywords:["home","overview"]},{href:"/tour",label:"App Tour",keywords:["walkthrough","guide","start"]},{href:"/journey-map",label:"Path to Offer",keywords:["roadmap","journey","plan"]},{href:"/browser-extension",label:"Browser Extension",keywords:["extension","plugin","chrome"]},{href:"/training",label:"Training Center",keywords:["video","learn","course"]},{href:"/knowledge-center",label:"Knowledge Center",keywords:["articles","resources","tips"]},{href:"/shadow-agent",label:"Shadow Agent",keywords:["ai","advisor","coach"]},{href:"/student-guide",label:"Student & New Grad Guide",group:"Career Guide",keywords:["graduate","entry level","college","university"]},{href:"/career-change",label:"Career Change: Where to Start",group:"Career Guide",keywords:["pivot","switch","transition","new career"]},{href:"/career-requirements",label:"Career Requirements Analyzer",group:"Career Guide",keywords:["requirements","skills needed","role match"]},{href:"/resume",label:"Resume Builder",group:"Resume & Profile",keywords:["cv","resume","builder","edit resume"]},{href:"/cover-letter",label:"Cover Letter",group:"Resume & Profile",keywords:["cl","cover","letter","application"]},{href:"/linkedin",label:"LinkedIn",group:"Resume & Profile",keywords:["linkedin","profile","algorithm","setup"]},{href:"/other-job-boards-setup",label:"Other Job Boards Setup",group:"Resume & Profile",keywords:["indeed","glassdoor","ziprecruiter","monster"]},{href:"/job-boards",label:"Job Board Checklist",group:"Resume & Profile",keywords:["checklist","job boards","sites"]},{href:"/linkedin-profile-optimizer",label:"LinkedIn Profile Writer (AI)",group:"Resume & Profile",keywords:["linkedin ai","profile writer","optimize linkedin"]},{href:"/communicate",label:"Communicate Efficiently",group:"Outreach & Comms",keywords:["email","communication","messaging"]},{href:"/target-50",label:"Target 50 Tracker",group:"Outreach & Comms",keywords:["tracker","applications","50 companies"]},{href:"/networking-job-seeker",label:"Networking",group:"Outreach & Comms",keywords:["network","contacts","connections","linkedin"]},{href:"/networking-events",label:"Networking Events",group:"Outreach & Comms",keywords:["events","meetup","conference"]},{href:"/personal-brand",label:"LinkedIn Content Calendar (AI)",group:"Outreach & Comms",keywords:["content","posts","personal brand","calendar"]},{href:"/ai-outreach",label:"AI Outreach",group:"Outreach & Comms",keywords:["outreach","cold email","message"]},{href:"/outreach-pipeline",label:"Outreach Pipeline",group:"Outreach & Comms",keywords:["pipeline","follow up","tracking"]},{href:"/testing-center",label:"Testing Center",keywords:["test","assessment","quiz","practice"]},{href:"/technical-assessment",label:"Technical Assessment (AI)",keywords:["technical","coding","test","ai assessment"]},{href:"/learning-center",label:"Learning Center",keywords:["learn","study","lesson","topics","ai lesson","study plan"]},{href:"/resume-score",label:"Resume Score",group:"Free Tools",keywords:["score","grade","resume check"]},{href:"/linkedin-optimizer",label:"LinkedIn Optimizer",group:"Free Tools",keywords:["optimize","linkedin score","profile score"]},{href:"/salary-guide",label:"Salary Guide",group:"Free Tools",keywords:["salary","pay","compensation","wage"]}
15,{href:"/goals",label:"Job Search Goals",group:"Objectives",keywords:["goals","targets","milestones"]},{href:"/accountability",label:"Job Search Accountability",group:"Objectives",keywords:["accountability","track","progress"]},{href:"/my-wins",label:"My Wins",group:"Objectives",keywords:["wins","achievements","success"]},{href:"/automatic-denial",label:"Automatic Denial",group:"Pre-Application",keywords:["rejection","denied","disqualified","auto reject"]},{href:"/disability-self-id",label:"Application Disclosures",group:"Pre-Application",keywords:["disability","self id","disclosure","eeo"]},{href:"/visa-sponsorship",label:"Visa Sponsorship Guide",group:"Pre-Application",keywords:["visa","sponsorship","work permit","authorization"]},{href:"/visa-guidance",label:"H1B AI Planner",group:"Pre-Application",keywords:["h1b","visa","immigration","work visa"]},{href:"/skills-gap",label:"Skills Gap Analyzer",group:"Pre-Application",keywords:["skills","gap","missing skills","requirements"]},{href:"/security-clearance",label:"Security Clearance",group:"Pre-Application",keywords:["clearance","secret","government","federal"]},{href:"/reduce-rejections",label:"Reduce Rejections",group:"Job Application",keywords:["rejection","improve","application tips"]},{href:"/job-recommendations",label:"Job Recommendations",group:"Job Application",keywords:["recommend","jobs","ai jobs","suggestions"]},{href:"/job-opportunity",label:"Job Pipeline",group:"Job Application",keywords:["pipeline","jobs","opportunities","tracker"]},{href:"/job-intel",label:"Job Fit Analyzer (AI)",group:"Job Application",keywords:["fit","match","job analysis","should i apply"]},{href:"/ats-deep-scanner",label:"ATS Deep Scanner",group:"Job Application",keywords:["ats","applicant tracking","keyword","scan","robot"]},{href:"/quick-apply-kit",label:"Quick Apply Kit",group:"Job Application",keywords:["quick apply","kit","answers","application questions"]},{href:"/rapid-deploy",label:"Rapid Deploy (AI)",group:"Job Application",keywords:["rapid","deploy","fast apply","ai cover letter","tailored"]},{href:"/application-funnel",label:"Application Funnel",group:"Job Application",keywords:["funnel","metrics","stats","conversion"]},{href:"/interview-impact-project",label:"Interview Impact Project",group:"Impact Projects",keywords:["impact","project","portfolio","case study"]},{href:"/portfolio",label:"Portfolio Builder",group:"Impact Projects",keywords:["portfolio","work samples","projects"]},{href:"/pre-screening-questions",label:"Pre-Screening Questions",group:"Screening",keywords:["pre screen","screening","questions","phone screen","application questions","form questions","survey"]},{href:"/recruiter-screening",label:"Recruiter Screening",group:"Screening",keywords:["recruiter","screening","phone call","hr screen"]},{href:"/account-manager-screening",label:"Account Manager Screening",group:"Screening",keywords:["account manager","sales","am screen"]},{href:"/account-manager-mock-screen",label:"AM Mock Screen (AI)",group:"Screening",keywords:["account manager mock","am mock","sales mock","am practice","mock am","account manager interview"]},{href:"/salary-discussion",label:"Salary Discussion",group:"Screening",keywords:["salary","pay","compensation","negotiate salary"]},{href:"/what-not-to-do",label:"Job Scam Red Flags",group:"Screening",keywords:["scam","fake","red flags","fraud","avoid"]},{href:"/pre-interview",label:"Pre-Interview Prep",keywords:["prep","prepare","before interview"]},{href:"/pre-interview-mindset",label:"Interview Mindset",keywords:["mindset","confidence","anxiety","nervous"]},{href:"/pre-interview-same-day-loop",label:"Same Day Multi-Interview",keywords:["multiple interviews","back to back","same day"]},{href:"/interview",label:"Interview Pipeline",group:"Interview Prep",keywords:["interviews","schedule","upcoming","pipeline"]},{href:"/interview-prep",label:"Interview Prep Checklist",group:"Interview Prep",keywords:["checklist","prepare","prep","questions"]},{href:"/star-stories",label:"STAR Story Bank",group:"Interview Prep",keywords:["star","story","situation task action result","behavioral"]},{href:"/leadership-principles",label:"Leadership Principles",group:"Interview Prep",keywords:["amazon","leadership","principles","lp"]},{href:"/interview-battle-cards",label:"Interview Battle Cards",group:"Interview Prep",keywords:["battle cards","cheat sheet","quick reference"]},{href:"/interview-countdown",label:"Interview Countdown",group:"Interview Prep",keywords:["countdown","timer","upcoming interview"]},{href:"/mock-interview",label:"Mock Interview (AI)",group:"Interview Prep",keywords:["mock","practice","simulate","ai interview"]},{href:"/during-interview",label:"In the Room",group:"During Interview",keywords:["during interview","tips","in person","in the room"]},{href:"/during-interview-mindset",label:"In Your Head",group:"During Interview",keywords:["mindset","nerves","during","in your head"]},{href:"/after-interview",label:"After Interview",keywords:["follow up","thank you","debrief","after"]},{href:"/after-interview-recovery",label:"When It Goes Wrong",keywords:["recovery","failed interview","bad interview"]},{href:"/offer",label:"Offer",group:"Job Offer",keywords:["job offer","accept","decline","offer letter"]},{href:"/post-offer-review",label:"Post Offer Review",group:"Job Offer",keywords:["review","analyze offer","offer review"]},{href:"/offer-comparison",label:"Compare Offers",group:"Job Offer",keywords:["compare","two offers","multiple offers"]},{href:"/offer-intelligence",label:"Offer Intelligence (AI)",group:"Job Offer",keywords:["offer intel","ai offer","offer advice"]},{href:"/job-level-reference",label:"Job Level Reference",group:"Job Offer",keywords:["levels","senior","principal","staff","ic levels"]},{href:"/offer-timer",label:"Offer Decision Timer",group:"Job Offer",keywords:["deadline","exploding offer","timer","decide"]},{href:"/salary-benchmarking",label:"Salary Benchmarking",group:"Negotiation",keywords:["benchmark","market rate","what should i earn"]},{href:"/compensation-intel",label:"Compensation Intelligence",group:"Negotiation",keywords:["comp","total comp","equity","bonus","rsu"]}
15,{href:"/negotiation-playbooks",label:"Company Negotiation Playbooks",group:"Negotiation",keywords:["playbook","company","how to negotiate"]},{href:"/offer-negotiation",label:"Offer Negotiation & Simulator",group:"Negotiation",keywords:["negotiate","counter offer","simulator"]},{href:"/salary-negotiation",label:"Salary Negotiation Simulator (AI)",group:"Negotiation",keywords:["simulator","practice negotiate","counter"]},{href:"/negotiation-emails",label:"Negotiation Emails",group:"Negotiation",keywords:["email","template","negotiate email"]},{href:"/background",label:"Background Check",keywords:["background","check","criminal","reference"]},{href:"/leaving",label:"Leaving Well",keywords:["leaving","quit","resignation","notice"]},{href:"/rif-playbook",label:"RIF & Layoff Playbook",keywords:["layoff","rif","fired","reduction","job loss"]},{href:"/first-90-days",label:"Day 1 & First Week",group:"New Job",keywords:["first day","onboarding","new job","start"]},{href:"/first-month-at-work",label:"First Month at Work",group:"New Job",keywords:["first month","30 days","new role"]},{href:"/ninety-days-at-work",label:"The 90 Days at Work",group:"New Job",keywords:["90 days","90 day plan","first quarter"]},{href:"/difficult-situations",label:"Difficult Situations",group:"New Job",keywords:["difficult","conflict","hard situations","toxic"]},{href:"/new-job-biases",label:"Biases at a New Job",group:"New Job",keywords:["bias","discrimination","workplace"]},{href:"/new-job-conversations",label:"Starting Conversations",group:"New Job",keywords:["conversations","small talk","colleagues"]},{href:"/new-job-prioritize",label:"Prioritizing Your Work",group:"New Job",keywords:["prioritize","tasks","focus","workload"]},{href:"/new-job-meetings",label:"Managing Meetings",group:"New Job",keywords:["meetings","calendar","agenda"]},{href:"/new-job-focus-time",label:"Setting Up Focus Time",group:"New Job",keywords:["focus","deep work","concentration"]},{href:"/new-job-manager-1on1",label:"1:1 with Your Manager",group:"New Job",keywords:["1on1","one on one","manager meeting"]},{href:"/new-job-mistake",label:"Made a Mistake at Work",group:"New Job",keywords:["mistake","error","mess up","fix"]},{href:"/understand-the-company",label:"Understand the Company",group:"Career Intelligence",keywords:["company culture","research company","know your company"]},{href:"/unwritten-rules",label:"The Unwritten Rules",group:"Career Intelligence",keywords:["unwritten","politics","culture","norms"]},{href:"/career-killers",label:"Career Killers",group:"Career Intelligence",keywords:["mistakes","avoid","career ending","red flags"]},{href:"/work-politics",label:"Things to Never Say",group:"Career Intelligence",keywords:["politics","never say","office politics"]},{href:"/career-trajectory",label:"Career Trajectory Map (AI)",group:"Career Intelligence",keywords:["trajectory","path","future","career map"]},{href:"/hiring-calendar",label:"Hiring Season Calendar",group:"Career Intelligence",keywords:["hiring season","when to apply","q4","january"]},{href:"/promotion-path",label:"Path to Promotion",keywords:["promotion","promote","level up","advance"]},{href:"/three-to-six-months-shift",label:"3 to 6 Month Shift",group:"Promotion Hub",keywords:["shift","transition","3 months","6 months"]},{href:"/leadership-at-work",label:"Become a Leader",group:"Promotion Hub",keywords:["leader","leadership","manage","influence"]},{href:"/get-promoted",label:"Get Promoted",group:"Promotion Hub",keywords:["promoted","raise","title","level"]},{href:"/promotion-status",label:"Promotion Status",group:"Promotion Hub",keywords:["status","track promotion","readiness"]},{href:"/career-level-up",label:"Level Up Roadmap",group:"Career Level Up",keywords:["level up","roadmap","growth plan"]},{href:"/roadmap-companies",label:"Company Roadmaps",group:"Career Level Up",keywords:["companies","faang","big tech","roadmap"]},{href:"/career-level",label:"Career Level Evaluator (AI)",group:"Career Level Up",keywords:["level","evaluate","ai level","seniority"]},{href:"/annual-review/prep",label:"Annual Review Prep",group:"Annual Review",keywords:["performance review","review prep","self eval"]},{href:"/annual-review/meeting",label:"Annual Review Meeting",group:"Annual Review",keywords:["review meeting","manager review"]},{href:"/annual-review/react",label:"How to React to Your Review",group:"Annual Review",keywords:["react","response","bad review","good review"]},{href:"/annual-review/feedback-request",label:"Requesting Feedback",group:"Annual Review",keywords:["feedback","request","peer review","360"]},{href:"/performance-review-coach",label:"Performance Review Coach (AI)",group:"Annual Review",keywords:["coach","ai review","write review","self assessment"]},{href:"/brag-document",label:"Brag Document",keywords:["brag","accomplishments","wins","achievements doc"]},{href:"/leaving-smart",label:"Leaving a Role Smart",group:"Career Transition",keywords:["leaving","quit smart","exit strategy"]},{href:"/resignation",label:"Resignation Letter",group:"Career Transition",keywords:["resign","resignation","notice","quit letter"]},{href:"/exit-interview",label:"Exit Interview",group:"Career Transition",keywords:["exit interview","leaving","feedback"]},{href:"/farewell",label:"Farewell Message",group:"Career Transition",keywords:["farewell","goodbye","leaving message"]},{href:"/networking-professional",label:"Strategic Networking",group:"Networking",keywords:["strategic","build network","professional"]},{href:"/networking-sequences",label:"Outreach Sequences",group:"Networking",keywords:["sequence","follow up","outreach flow"]},{href:"/hiring",label:"Are You Hiring?",group:"Hiring Hub",keywords:["hiring","recruit","job post","employer"]},{href:"/hiring-onboarding",label:"Onboarding",group:"Hiring Hub",keywords:["onboard","new hire","employee"]},{href:"/candidate-pick",label:"Candidate Pick",group:"Hiring Hub",keywords:["candidate","pick","select","choose"]},{href:"/success-stories",label:"Success Stories",keywords:["success","testimonials","stories"]},{href:"/refer-a-friend",label:"Refer a Friend",keywords:["refer","referral","invite","friend"]},{href:"/subscription",label:"Subscription & Billing",keywords:["subscription","billing","plan","upgrade","pricing"]},{href:"/giving-back",label:"Giving Back Loop",keywords:["giving back","mentor","help others"]},{href:"/five-year-pivot",label:"The Next 5 Years Pivot",keywords:["5 year plan","future","pivot","long term"]}];function pa(t,s=6){if(!t||t.trim().length<1)return[];const n=t.toLowerCase().trim(),a=[];for(const i of ma){const c=i.label.toLowerCase(),d=(i.group??"").toLowerCase(),u=(i.keywords??[]).map(h=>h.toLowerCase());let m=0;if(c===n)m=100;else if(c.startsWith(n))m=80;else if(c.includes(n))m=60;else if(d.includes(n))m=40;else for(const h of u)if(h===n)m=Math.max(m,70);else if(h.startsWith(n))m=Math.max(m,55);else if(h.includes(n))m=Math.max(m,35);else{const b=n.split(/\s+/),g=`${c} ${d} ${u.join(" ")}`;b.every(j=>g.includes(j))&&(m=Math.max(m,30))}m>0&&a.push({page:i,score:m})}return a.sort((i,c)=>c.score-i.score).slice(0,s).map(i=>i.page)}const xa={"Pages & Features":{icon:Fe,color:"text-primary",bg:"bg-primary/10"}
15,Resume:{icon:ee,color:"text-blue-600 dark:text-blue-400",bg:"bg-blue-100 dark:bg-blue-900/40"},"Cover Letter":{icon:le,color:"text-violet-600 dark:text-violet-400",bg:"bg-violet-100 dark:bg-violet-900/40"},"Job Opportunity":{icon:oe,color:"text-amber-600 dark:text-amber-400",bg:"bg-amber-100 dark:bg-amber-900/40"},"Network Contact":{icon:ie,color:"text-emerald-600 dark:text-emerald-400",bg:"bg-emerald-100 dark:bg-emerald-900/40"},"Interview Prep":{icon:ge,color:"text-indigo-600 dark:text-indigo-400",bg:"bg-indigo-100 dark:bg-indigo-900/40"},Interview:{icon:Nt,color:"text-rose-600 dark:text-rose-400",bg:"bg-rose-100 dark:bg-rose-900/40"}},ha={saved:"bg-muted text-muted-foreground",submitted:"bg-blue-100 text-blue-700 dark:bg-blue-900/40 dark:text-blue-400",screening:"bg-amber-100 text-amber-700 dark:bg-amber-900/40 dark:text-amber-400",interviewing:"bg-indigo-100 text-indigo-700 dark:bg-indigo-900/40 dark:text-indigo-400",offered:"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-400",accepted:"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-400",rejected:"bg-red-100 text-red-700 dark:bg-red-900/40 dark:text-red-400",withdrawn:"bg-muted text-muted-foreground",scheduled:"bg-blue-100 text-blue-700 dark:bg-blue-900/40 dark:text-blue-400",completed:"bg-green-100 text-green-700 dark:bg-green-900/40 dark:text-green-400",cancelled:"bg-muted text-muted-foreground"};function fa({status:t}){return t?e.jsx("span",{className:`px-1.5 py-0.5 rounded text-[10px] font-medium capitalize shrink-0 ${ha[t]??"bg-muted text-muted-foreground"}`,children:t}):null}const ga=[{label:"Dashboard",href:"/dashboard",icon:be},{label:"Job Pipeline",href:"/job-opportunity",icon:oe},{label:"Resume Builder",href:"/resume",icon:ee},{label:"Cover Letters",href:"/cover-letter",icon:le},{label:"Interview Prep",href:"/interview-prep",icon:ge},{label:"Interviews",href:"/interview",icon:Nt},{label:"Job Recommendations",href:"/job-recommendations",icon:ce},{label:"My Network",href:"/networking-job-seeker",icon:ke}];function ba(t,s){const[n,a]=r.useState(t);return r.useEffect(()=>{const i=setTimeout(()=>a(t),s);return()=>clearTimeout(i)},[t,s]),n}function ja({onClose:t}){const[s,n]=r.useState(""),[a,i]=r.useState([]),[c,d]=r.useState(!1),[,u]=A(),m=ba(s,280),h=r.useMemo(()=>m.trim().length<2?[]:pa(m,6),[m]),b=r.useCallback(async w=>{if(w.length<2){i([]);return}d(!0);try{const _=await $("GET",`/auth/search?q=${encodeURIComponent(w)}`);i(_.results??[])}catch{i([])}finally{d(!1)}},[]);r.useEffect(()=>{b(m)},[m,b]),r.useEffect(()=>{const w=_=>{_.key==="Escape"&&t()};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[t]);const g=r.useMemo(()=>{const w={};h.length>0&&(w["Pages & Features"]=h.map(_=>({id:_.href,href:_.href,title:_.label,subtitle:_.group??null,_isPage:!0})));for(const _ of a)w[_.category]||(w[_.category]=[]),w[_.category].push(_);return w},[h,a]),j=Object.keys(g).length>0,v=s.length>=2;return e.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-14 px-4",onClick:t,children:[e.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm"}),e.jsxs("div",{className:"relative w-full max-w-2xl bg-background rounded-2xl shadow-2xl overflow-hidden border",onClick:w=>w.stopPropagation(),children:[e.jsxs("div",{className:"flex items-center gap-3 px-4 py-3.5 border-b",children:[e.jsx(je,{className:"w-4 h-4 text-muted-foreground flex-shrink-0"}
15),e.jsx("input",{autoFocus:!0,type:"text",value:s,onChange:w=>n(w.target.value),placeholder:"Search pages, resumes, jobs, interviews, contactsâ¦",className:"flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground"}),c&&e.jsx("div",{className:"w-4 h-4 border-2 border-primary border-t-transparent rounded-full animate-spin flex-shrink-0"}),e.jsx("kbd",{className:"hidden sm:flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[10px] font-mono border bg-muted text-muted-foreground",children:"ESC"}),e.jsx("button",{onClick:t,className:"text-muted-foreground hover:text-foreground ml-1 flex-shrink-0",children:e.jsx(F,{className:"w-4 h-4"})})]}),v&&!c&&!j&&e.jsxs("div",{className:"px-4 py-10 text-center",children:[e.jsx(Ee,{className:"h-8 w-8 mx-auto mb-2 text-muted-foreground/40"}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:["No results for ",e.jsxs("strong",{children:['"',s,'"']})]}),e.jsx("p",{className:"text-xs text-muted-foreground/60 mt-1",children:"Try a page name, tool name, company, or contact"})]}),j&&e.jsx("div",{className:"max-h-[60vh] overflow-y-auto divide-y divide-border",children:Object.entries(g).map(([w,_])=>{const R=xa[w]??{icon:ee,color:"text-primary",bg:"bg-primary/10"},N=R.icon;return e.jsxs("div",{children:[e.jsx("p",{className:"px-4 py-1.5 text-[10px] font-semibold text-muted-foreground uppercase tracking-widest bg-muted/40 border-b border-border/50",children:w}),_.map(O=>e.jsx(D,{href:O.href,onClick:t,children:e.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 hover:bg-muted/50 transition-colors cursor-pointer group",children:[e.jsx("div",{className:`w-8 h-8 rounded-lg flex items-center justify-center flex-shrink-0 ${R.bg}`,children:e.jsx(N,{className:`w-4 h-4 ${R.color}`})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsx("p",{className:"text-sm font-medium truncate",children:O.title||"Untitled"}),e.jsx(fa,{status:O.status})]}),O.subtitle&&e.jsx("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:O.subtitle})]}),e.jsx(Q,{className:"w-3.5 h-3.5 text-muted-foreground/40 group-hover:text-muted-foreground flex-shrink-0 transition-colors"})]})},O.id))]},w)})}),!v&&e.jsxs("div",{className:"p-4",children:[e.jsx("p",{className:"text-[10px] font-semibold text-muted-foreground uppercase tracking-widest mb-3",children:"Quick Navigation"}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-2",children:ga.map(({label:w,href:_,icon:R})=>e.jsxs("button",{onClick:()=>{u(_),t()},className:"flex items-center gap-2 px-3 py-2 rounded-lg text-xs font-medium text-muted-foreground hover:bg-muted/60 hover:text-foreground transition-colors text-left border border-transparent hover:border-border",children:[e.jsx(R,{className:"h-3.5 w-3.5 shrink-0"}),w]},_))}),e.jsx("p",{className:"text-[10px] text-muted-foreground/50 mt-3 text-center",children:"Search any page, tool, or feature â or find resumes, jobs, interviews, and contacts"})]})]})]})}const va="/".replace(/\/$/,"")+"/api",Yt=["bg-violet-500","bg-blue-500","bg-emerald-500","bg-amber-500","bg-rose-500","bg-cyan-500","bg-indigo-500","bg-teal-500","bg-orange-500","bg-pink-500"];function ya(t){let s=0;for(let n=0;n<t.length;n++)s=s*31+t.charCodeAt(n)&4294967295;return Yt[Math.abs(s)%Yt.length]}function wa(t,s){const n=(t??"").trim(),a=(s??"").trim();return!n&&!a?"?":a?n?(n.charAt(0)+a.charAt(0)).toUpperCase():a.charAt(0).toUpperCase():n.charAt(0).toUpperCase()}function _a(t){return`${va}/storage${t}`}const ka={xs:"w-6 h-6 text-[10px]",sm:"w-8 h-8 text-xs",md:"w-10 h-10 text-sm",lg:"w-16 h-16 text-xl",xl:"w-24 h-24 text-3xl"};function Qt({firstName:t,lastName:s,avatarUrl:n,size:a="sm",className:i}){const c=`${t??""}${s??""}`,d=ya(c),u=wa(t,s),m=ka[a];return n?e.jsx("img",{src:_a(n),alt:`${t??""} ${s??""}`.trim()||"User",className:y("rounded-full object-cover flex-shrink-0",m,i),onError:h=>{h.currentTarget.style.display="none";const b=h.currentTarget.nextElementSibling;b&&(b.style.display="flex")}}
15):e.jsx("div",{className:y("rounded-full flex items-center justify-center flex-shrink-0 font-semibold text-white select-none",d,m,i),children:u})}function Na(){const[t]=A(),[s,n]=r.useState(!1),[a,i]=r.useState(0),c=r.useRef(t),d=r.useRef(void 0),u=r.useRef(void 0);return r.useEffect(()=>{if(t!==c.current)return c.current=t,clearTimeout(d.current),clearTimeout(u.current),n(!0),i(0),requestAnimationFrame(()=>{requestAnimationFrame(()=>{i(75)})}),d.current=setTimeout(()=>{i(100),u.current=setTimeout(()=>{n(!1),i(0)},350)},250),()=>{clearTimeout(d.current),clearTimeout(u.current)}},[t]),s?e.jsx("div",{className:"fixed top-0 left-0 right-0 z-[200] h-[3px] pointer-events-none","aria-hidden":"true",children:e.jsx("div",{className:"h-full bg-primary shadow-[0_0_10px_rgba(99,102,241,0.7)] transition-all ease-out",style:{width:`${a}%`,transitionDuration:a===100?"200ms":"280ms",opacity:a===100?0:1}})}):null}const Ea=[{label:"Navigation",shortcuts:[{keys:["G","D"],action:"Go to Dashboard"},{keys:["G","R"],action:"Go to Resume"},{keys:["G","J"],action:"Go to Job Opportunities"},{keys:["G","I"],action:"Go to Interviews"},{keys:["G","P"],action:"Go to Profile"}]},{label:"Actions",shortcuts:[{keys:["â","K"],action:"Open search"},{keys:["?"],action:"Show keyboard shortcuts"},{keys:["Esc"],action:"Close dialogs / modals"}]}],Pa={d:"/dashboard",r:"/resume",j:"/job-opportunity",i:"/interview",p:"/profile"};function Xt({children:t}){return e.jsx("kbd",{className:"inline-flex items-center justify-center min-w-[1.75rem] h-7 px-2 rounded-md bg-muted border border-border text-xs font-mono font-semibold text-foreground shadow-sm",children:t})}function Ta(){const[t,s]=r.useState(!1),[,n]=A(),[a,i]=r.useState(!1),c=r.useRef(void 0);return r.useEffect(()=>{const d=u=>{const m=u.target,h=m.tagName==="INPUT"||m.tagName==="TEXTAREA"||m.isContentEditable;if(u.key==="Escape"){s(!1),i(!1);return}if(!h){if(u.key==="?"&&!u.metaKey&&!u.ctrlKey){u.preventDefault(),s(b=>!b);return}if(u.key.toLowerCase()==="g"&&!u.metaKey&&!u.ctrlKey&&!u.altKey){i(!0),clearTimeout(c.current),c.current=setTimeout(()=>i(!1),1200);return}if(a){const b=Pa[u.key.toLowerCase()];b&&(u.preventDefault(),i(!1),clearTimeout(c.current),n(b))}}};return window.addEventListener("keydown",d),()=>{window.removeEventListener("keydown",d),clearTimeout(c.current)}},[a,n]),t?e.jsxs("div",{className:"fixed inset-0 z-[300] flex items-center justify-center p-4",onClick:()=>s(!1),children:[e.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm"}),e.jsxs("div",{className:"relative bg-card border rounded-2xl shadow-2xl w-full max-w-md overflow-hidden",onClick:d=>d.stopPropagation(),children:[e.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(Ts,{className:"w-4 h-4 text-primary"}),e.jsx("h2",{className:"font-semibold text-foreground",children:"Keyboard Shortcuts"})]}),e.jsx("button",{onClick:()=>s(!1),className:"p-1.5 rounded-lg hover:bg-muted transition-colors text-muted-foreground hover:text-foreground",children:e.jsx(F,{className:"w-4 h-4"})})]}),e.jsx("div",{className:"px-5 py-4 space-y-5",children:Ea.map(d=>e.jsxs("div",{children:[e.jsx("p",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-widest mb-3",children:d.label}),e.jsx("div",{className:"space-y-2.5",children:d.shortcuts.map(u=>e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsx("span",{className:"text-sm text-foreground",children:u.action}),e.jsx("div",{className:"flex items-center gap-1 flex-shrink-0",children:u.keys.map((m,h)=>e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(Xt,{children:m}),h<u.keys.length-1&&e.jsx("span",{className:"text-[10px] text-muted-foreground px-0.5",children:"then"})]},h))})]},u.action))})]},d.label))}),e.jsxs("div",{className:"px-5 py-3 border-t bg-muted/30 flex items-center justify-between",children:[e.jsxs("span",{className:"text-xs text-muted-foreground",children:["Press ",e.jsx(Xt,{children:"?"})," anywhere to toggle"]}),e.jsx("button",{onClick:()=>s(!1),className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:"Close"})]})]})]}):null}const Sa="https://www.trustpilot.com/evaluate/winmyjob.com",es="wmj_celebrated_milestones",Ia=[{id:"first_resume",check:t=>t.resumeCount>=1,title:"First resume built!",description:"Your career story is now on paper. Ready to get it in front of recruiters.",emoji:"ð"},{id:"first_job",check:t=>t.jobCount>=1,title:"Pipeline is live!",description:"Your first job is in the tracker. Keep adding and stay consistent.",emoji:"ð¯"},{id:"five_jobs",check:t=>t.jobCount>=5,title:"5 jobs in your pipeline!",description:"You're building serious momentum. This is the volume that gets results.",emoji:"ð"},{id:"ten_jobs",check:t=>t.jobCount>=10,title:"10 applications tracked!",description:"You're in the top tier of active job seekers. Keep going.",emoji:"ð"},{id:"first_interview",check:t=>t.interviewCount>=1,title:"First interview scheduled!",description:"This is what all the prep is for. You've got this â and if it helps, leave us a quick review.",emoji:"ð¤",reviewPrompt:!0},{id:"first_offer",check:t=>t.offerCount>=1,title:"Offer on the table!",description:"You earned this. Negotiate it â and help other job seekers find Win My Job with a quick review.",emoji:"ð°",reviewPrompt:!0}];function ts(){try{const t=localStorage.getItem(es);return t?new Set(JSON.parse(t)):new Set}catch{return new Set}}function Aa(t){try{const s=ts();s.add(t),localStorage.setItem(es,JSON.stringify([...s]))}catch{}}function Ca(){const{user:t}=I(),{toast:s}=Ie(),n=r.useRef(!1),{data:a}=Se({queryKey:["resumes"],queryFn:()=>$("GET","/resumes"),enabled:!!t,staleTime:300*1e3}),{data:i}=Se({queryKey:["job-opportunities"],queryFn:()=>$("GET","/job-opportunities"),enabled:!!t,staleTime:300*1e3}),{data:c}=Se({queryKey:["interviews"],queryFn:()=>$("GET","/interviews"),enabled:!!t,staleTime:300*1e3});return r.useEffect(()=>{if(!t||!a||!i||n.current)return;n.current=!0;const d={resumeCount:a.length,jobCount:i.length,interviewCount:c?.length??0,offerCount:i.filter(g=>g.status==="offered"||g.status==="accepted").length}
15,u=ts(),m=Ia.filter(g=>!u.has(g.id)&&g.check(d));if(m.length===0)return;const h=[];let b=1200;for(const g of m){const j=setTimeout(()=>{s({title:`${g.emoji} ${g.title}`,description:g.description,duration:g.reviewPrompt?12e3:6e3,action:g.reviewPrompt?e.jsx(Ze,{altText:"Leave a review on Trustpilot",onClick:()=>window.open(Sa,"_blank","noopener,noreferrer"),children:"â
Review"}):void 0}),Aa(g.id)},b);h.push(j),b+=2e3}return()=>{for(const g of h)clearTimeout(g)}},[t,a,i,c,s]),null}const rs="wmj_2fa_nudge_dismissed_v1",Ra="wmj_login_count";function Oa(){try{return parseInt(localStorage.getItem(Ra)??"0",10)}catch{return 0}}function La(){try{const t=localStorage.getItem(rs);if(!t)return!1;const s=parseInt(t,10);return Date.now()<s}catch{return!1}}function ut(t=30){try{localStorage.setItem(rs,String(Date.now()+t*864e5))}catch{}}function Da(){const{user:t}=I(),[,s]=A(),[n,a]=r.useState(!1);return r.useEffect(()=>{if(!t||t.twoFactorEnabled||La()||Oa()<3)return;const i=setTimeout(()=>a(!0),4e3);return()=>clearTimeout(i)},[t]),n?e.jsxs("div",{className:"fixed bottom-4 left-4 z-40 w-80 bg-card border border-primary/20 rounded-2xl shadow-lg p-4 animate-in slide-in-from-bottom-3 duration-300",children:[e.jsx("button",{onClick:()=>{ut(7),a(!1)},className:"absolute top-3 right-3 text-muted-foreground hover:text-foreground","aria-label":"Dismiss",children:e.jsx(F,{className:"w-3.5 h-3.5"})}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-amber-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(Te,{className:"w-4.5 h-4.5 text-amber-600"})}),e.jsxs("div",{className:"flex-1 min-w-0 pr-4",children:[e.jsx("p",{className:"text-sm font-semibold mb-0.5",children:"Secure your account"}),e.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Two-factor authentication keeps your career data safe. Takes 60 seconds to set up."})]})]}),e.jsxs("div",{className:"flex gap-2 mt-3",children:[e.jsx(P,{size:"sm",onClick:()=>{ut(90),a(!1),s("/profile")},className:"text-xs flex-1 h-7",children:"Enable 2FA"}),e.jsx(P,{size:"sm",variant:"ghost",onClick:()=>{ut(7),a(!1)},className:"text-xs h-7",children:"Later"})]})]}):null}const de=mn,za=dn,ss=r.forwardRef(({className:t,...s},n)=>e.jsx(Tr,{ref:n,className:y("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...s}));ss.displayName=Tr.displayName;const te=r.forwardRef(({className:t,children:s,...n},a)=>e.jsxs(za,{children:[e.jsx(ss,{}),e.jsxs(Sr,{ref:a,className:y("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...n,children:[s,e.jsxs(un,{className:"absolute right-4 top-4 roun
15ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[e.jsx(F,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));te.displayName=Sr.displayName;const et=({className:t,...s})=>e.jsx("div",{className:y("flex flex-col space-y-1.5 text-center sm:text-left",t),...s});et.displayName="DialogHeader";const Va=({className:t,...s})=>e.jsx("div",{className:y("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...s});Va.displayName="DialogFooter";const ve=r.forwardRef(({className:t,...s},n)=>e.jsx(Ir,{ref:n,className:y("text-lg font-semibold leading-none tracking-tight",t),...s}));ve.displayName=Ir.displayName;const tt=r.forwardRef(({className:t,...s},n)=>e.jsx(Ar,{ref:n,className:y("text-sm text-muted-foreground",t),...s}));tt.displayName=Ar.displayName;const rt=r.forwardRef(({className:t,...s},n)=>e.jsx("textarea",{className:y("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:n,...s}));rt.displayName="Textarea";const ns=r.forwardRef(({className:t,type:s,...n},a)=>e.jsx("input",{type:s,className:y("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:a,...n}));ns.displayName="Input";const Ma=[{value:"actively_searching",emoji:"ð¥",label:"Actively searching",sub:"Sending applications now"},{value:"just_starting",emoji:"ð±",label:"Just getting started",sub:"Building my materials"},{value:"career_pivot",emoji:"ð",label:"Career pivot",sub:"Transitioning to a new field"},{value:"exploring",emoji:"ð",label:"Exploring options",sub:"Not in a rush yet"}],Fa=[{value:"urgent",emoji:"â¡",label:"ASAP",sub:"I need a job in 3 months"},{value:"this_year",emoji:"ð
",label:"This year",sub:"3â12 months"},{value:"next_year",emoji:"ðï¸",label:"Next year",sub:"Planning ahead"},{value:"no_rush",emoji:"ð",label:"No rush",sub:"Just building skills"}],$a=[{value:"new_grad",emoji:"ð",label:"New graduate",sub:"Just entering the workforce"},{value:"career_transitioner",emoji:"ð",label:"Career transitioner",sub:"Switching industries or fields"},{value:"junior",emoji:"ð",label:"Junior professional",sub:"1â3 years of experience"},{value:"mid_level",emoji:"âï¸",label:"Mid-level professional",sub:"3â6 years, leveling up"},{value:"senior",emoji:"ð",label:"Senior professional",sub:"5â10 years, deep expertise"},{value:"principal",emoji:"âï¸",label:"Principal / Staff Engineer",sub:"Senior IC, technical leadership track"},{value:"architect",emoji:"ðï¸",label:"Architect",sub:"Solutions, Enterprise, or Software Architect"},{value:"project_manager",emoji:"ð",label:"Project manager",sub:"Delivering projects & programs"},{value:"manager",emoji:"ð¥",label:"People manager",sub:"Managing and growing a team"},{value:"director",emoji:"ð¯",label:"Director",sub:"Leading departments"},{value:"vp",emoji:"ð",label:"VP / SVP",sub:"Executive leadership"},{value:"c_level",emoji:"ð¢",label:"C-level executive",sub:"CEO, CFO, CTO, COO"},{value:"founder",emoji:"ð",label:"Founder",sub:"Built or building a company"},{value:"career_coach",emoji:"ð§âð«",label:"Career coach",sub:"Coaching clients professionally"},{value:"mentor",emoji:"ð¤",label:"Mentor",sub:"Guiding others informally"}],Zt=5;function Ja(){const{user:t,refreshUser:s}=I(),n=r.useMemo(()=>{try{return t?.onboardingData?JSON.parse(t.onboardingData):{}}catch{return{}}},[t?.onboardingData]),a=!!n.checkinCompletedAt,i=t?.createdAt?(Date.now()-new Date(t.createdAt).getTime())/36e5:0,[c,d]=r.useState(!1),[u,m]=r.useState(0),[h,b]=r.useState(""),[g,j]=r.useState(""),[v,w]=r.useState(""),[_,R]=r.useState(""),[N,O]=r.useState(""),[T,V]=r.useState(!1),C=r.useMemo(()=>h==="career_pivot"?"career_transitioner":null,[h]);if(!(!!t&&!a&&i>=1&&!c))return null;const G=()=>u===0?!!h:u===2?!!v.trim():u===3?!!_:u===4?!!N:!0;async function re(){V(!0);try{const x={...n,searchStatus:h,biggestChallenge:g.trim(),targetMarket:v.trim(),searchTimeline:_,personaType:N,checkinCompletedAt:new Date().toISOString()};await $("PUT","/auth/me",{onboardingData:JSON.stringify(x)}),await s()}finally{V(!1)}}const _e=["Status","Challenge","Market","Timeline","You"];return e.jsx(de,{open:!0,onOpenChange:()=>{},children:e.jsxs(te,{className:"max-w-md max-h-[90vh] overflow-y-auto",onInteractOutside:x=>x.preventDefault(),children:[e.jsx(ve,{className:"sr-only",children:"Qu
15ick check-in with your mentor"}),e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("div",{className:"w-9 h-9 rounded-full bg-primary flex items-center justify-center text-sm font-bold text-white shrink-0",children:"A"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold leading-none",children:"Aboubek â Win My Job"}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Founder & Career Coach"})]})]}),e.jsx("div",{className:"flex items-center gap-1 mb-5",children:Array.from({length:Zt}).map((x,E)=>e.jsxs("div",{className:"flex-1 flex flex-col items-center gap-1",children:[e.jsx("div",{className:y("h-1 w-full rounded-full transition-all duration-300",E<=u?"bg-primary":"bg-muted")}),e.jsx("span",{className:y("text-[9px] font-medium transition-colors",E===u?"text-primary":"text-muted-foreground/50"),children:_e[E]})]},E))}),u===0&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"font-semibold text-base leading-snug",children:["Hey ",t?.firstName||"there"," â where are you in your search right now?"]}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"This helps me personalize everything for you from day one."})]}),e.jsx("div",{className:"grid grid-cols-2 gap-2",children:Ma.map(x=>e.jsxs("button",{onClick:()=>b(x.value),className:y("flex flex-col items-start gap-0.5 rounded-lg border p-3 text-left transition-all",h===x.value?"border-primary bg-primary/5 ring-1 ring-primary":"border-border hover:border-primary/40"),children:[e.jsx("span",{className:"text-xl",children:x.emoji}),e.jsx("span",{className:"text-sm font-medium",children:x.label}),e.jsx("span",{className:"text-xs text-muted-foreground",children:x.sub})]},x.value))})]}),u===1&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-base leading-snug",children:"What's your biggest challenge right now?"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Be honest â the more specific, the better I can help. This is optional."})]}),e.jsx(rt,{placeholder:"e.g. I'm getting interviews but not converting to offers. Or I send applications and hear nothing back...",className:"h-28 resize-none",value:g,onChange:x=>j(x.target.value),autoFocus:!0})]}),u===2&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-base leading-snug",children:"What market or country are you targeting?"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"e.g. USA, Canada, UK, Europe â or multiple markets"})]}),e.jsx(ns,{placeholder:"e.g. United States (New York area)",value:v,onChange:x=>w(x.target.value),autoFocus:!0,onKeyDown:x=>{x.key==="Enter"&&G()&&m(3)}})]}),u===3&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-base leading-snug",children:"What's your timeline?"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"I'll calibrate the urgency of your coaching to match your real situation."})]}),e.jsx("div",{className:"grid grid-cols-2 gap-2",children:Fa.map(x=>e.jsxs("button",{onClick:()=>R(x.value),className:y("flex flex-col items-start gap-0.5 rounded-lg border p-3 text-left transition-all",_===x.value?"border-primary bg-primary/5 ring-1 ring-primary":"border-border hover:border-primary/40"),children:[e.jsx("span",{className:"text-xl",children:x.emoji}),e.jsx("span",{className:"text-sm font-medium",children:x.label}),e.jsx("span",{className:"text-xs text-muted-foreground",children:x.sub})]},x.value))})]}),u===4&&e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"font-semibold text-base leading-snug",children:"Last one â which best describes you?"}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"This lets me speak your language and focus on what actually matters for your situation."}),C&&!N&&e.jsx("button",{onClick:()=>O(C),className:"mt-2 text-xs text-primary underline underline-offset-2 hover:text-primary/80 transition-colors",children:"Suggested for you: Career transitioner â"})]}),e.jsx("div",{className:"grid grid-cols-1 gap-1.5",children:$a.map(x=>e.jsxs("button",{onClick:()=>
15O(x.value),className:y("flex items-center gap-3 rounded-lg border px-3 py-2.5 text-left transition-all",N===x.value?"border-primary bg-primary/5 ring-1 ring-primary":"border-border hover:border-primary/40"),children:[e.jsx("span",{className:"text-lg shrink-0 w-6 text-center",children:x.emoji}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("span",{className:"text-sm font-medium",children:x.label}),e.jsx("span",{className:"text-xs text-muted-foreground ml-2",children:x.sub})]}),N===x.value&&e.jsx("div",{className:"w-2 h-2 rounded-full bg-primary shrink-0"})]},x.value))})]}),e.jsxs("div",{className:"flex items-center justify-between pt-3",children:[e.jsx("button",{className:"text-xs text-muted-foreground hover:text-foreground underline underline-offset-2 transition-colors",onClick:()=>d(!0),children:"Skip for now"}),e.jsxs("div",{className:"flex gap-2",children:[u>0&&e.jsx(P,{variant:"ghost",size:"sm",onClick:()=>m(x=>x-1),children:"Back"}),u<Zt-1?e.jsx(P,{size:"sm",onClick:()=>m(x=>x+1),disabled:!G(),children:"Continue â"}):e.jsx(P,{size:"sm",onClick:re,disabled:!G()||T,children:T?"Savingâ¦":"Let's go ð"})]})]})]})})}const Ba=[{value:"making_progress",emoji:"ð",label:"Making progress",sub:"Things are moving forward"},{value:"okay",emoji:"ð",label:"Okay",sub:"Taking it step by step"},{value:"struggling",emoji:"ð¤",label:"Struggling to get traction",sub:"Not seeing the results I hoped"},{value:"overwhelmed",emoji:"ð°",label:"Feeling overwhelmed",sub:"A lot is happening at once"}];function Ua(){const{user:t,refreshUser:s}=I(),n=r.useMemo(()=>{try{return t?.onboardingData?JSON.parse(t.onboardingData):{}}catch{return{}}},[t?.onboardingData]),a=!!n.feelingCheckinCompletedAt,i=t?.createdAt?(Date.now()-new Date(t.createdAt).getTime())/864e5:0,c=i>=6&&i<10,[d,u]=r.useState(!1),[m,h]=r.useState(""),[b,g]=r.useState(""),[j,v]=r.useState(!1),[w,_]=r.useState(!1);if(!(!!t&&Y(t)&&!a&&c&&!d))return null;const N=["struggling","overwhelmed"].includes(m);async function O(){if(m){v(!0);try{const T={...n,feelingCheckin:{feeling:m,details:b.trim(),needsOutreach:N,answeredAt:new Date().toISOString()},feelingCheckinCompletedAt:new Date().toISOString()};await $("PUT","/auth/me",{onboardingData:JSON.stringify(T)}),await s(),_(!0)}finally{v(!1)}}}return w?e.jsx(de,{open:!0,onOpenChange:()=>{},children:e.jsxs(te,{className:"max-w-sm",onInteractOutside:T=>T.preventDefault(),children:[e.jsx(ve,{className:"sr-only",children:"Check-in submitted"}),e.jsxs("div",{className:"py-4 space-y-3 text-center",children:[e.jsx("p",{className:"text-4xl",children:N?"ð":"ð"}),e.jsx("p",{className:"font-semibold text-base",children:N?"Thank you for being honest with me.":"Love to hear it â keep going!"}),e.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:N?"I'll personally check in to see how I can help you get more traction. You're not alone in this.":"You're doing the right things. Results compound â stay consistent."}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"â Aboubek, Founder, Win My Job"}),e.jsx(P,{size:"sm",className:"mt-2",onClick:()=>u(!0),children:"Close"})]})]})}):e.jsx(de,{open:!0,onOpenChange:()=>{},children:e.jsxs(te,{className:"max-w-md",onInteractOutside:T=>T.preventDefault(),children:[e.jsx(ve,{className:"sr-only",children:"Week 1 check-in"}),e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-9 h-9 rounded-full bg-primary flex items-center justify-center text-sm font-bold text-white shrink-0",children:"A"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold leading-none",children:"Aboubek â Win My Job"}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Checking in on week 1"})]})]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"font-semibold text-base leading-snug",children:[t?.firstName?`${t.firstName}, how`:"How"," are you feeling about your job search right now?"]}),e.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"You've been on Win My Job for a week. I want to make sure you're getting real value â be honest with me."})]}),e.jsx("div",{className:"grid grid-cols-2 gap-2",children:Ba.map(T=>e.jsxs("button",{onClick:()=>h(T.value),className:y("flex flex-col items-start gap-0.5 rounded-lg border p-3 text-left transition-all",m===T.value?"border-primary bg-primary/5 ring-1 ring-primary":"border-border hover:border-primary/40"),children:[e.jsx("span",{className:"text-xl",children:T.emoji}),e.jsx("span",{className:"text-sm font-medium leading-tight",children:T.label}),e.jsx("span",{className:"text-xs text-muted-foreground",children:T.sub})]},T.value))}),m&&e.jsx(rt,{placeholder:N?"Tell me what's getting in the way â I'll do my best to help personally...":"Anything specific you'd like more help with? (Optional)",className:"h-20 resize-none",value:b,onChange:T=>g(T.target.value),autoFocus:!0})]}),e.jsxs("div",{className:"flex items-center justify-between pt-2",children:[e.jsx("button",{className:"text-xs text-muted-foreground hover:text-foreground underline underline-offset-2 transition-colors",onClick:()=>u(!0),children:"Not now"}),e.jsx(P,{size:"sm",onClick:O,disabled:!m||j,children:j?"Sendingâ¦":"Send â"})]})]})})}const er="nova_session_welcomed",tr=["How do I add a job to my pipeline?","How does the AI Match Score work?","How do I tailor my resume to a job?","I want to request a partnership","How do I set up the Chrome extension?"],Ga=["Walk me through building my resume","How do I track a job application?","What's the best way to prep for interviews?","How does the AI Match Score work?","Show me what to do first as a new user"],Wa={"/resume":{sessionKey:"nova_page_resume_v1",message:t=>`Hey ${t}
15! ð Welcome to the Resume Builder. 16 17You can upload an existing PDF or DOCX, paste your LinkedIn data export for an instant start, or build from scratch section by section with AI help. 18 19Hit + New Resume or Import to get going. I'm right here if you need anything!`},"/job-opportunity":{sessionKey:"nova_page_jobs_v1",message:t=>`Hey ${t}! ð This is your Job Pipeline â where every role goes from first look to offer. 20 21Hit + Add Job to get started. Tip: pasting the job description unlocks AI features like Resume Tailoring and Match Score for that specific role. 22 23Want me to walk you through adding your first one?`}};function qa(t,s){const n=t,a=(s.totalResumes??0)>0,i=(s.totalJobOpportunities??0)>0,c=(s.totalCoverLetters??0)>0,d=s.totalJobOpportunities??0,u=s.activeApplications??0;if(!a)return`Hey ${n}! ð I'm Nova, your Win My Job guide. 24 25Your resume is the first thing to tackle â it unlocks AI tailoring, Match Scoring, and the whole pipeline. You can upload a PDF or DOCX, paste your LinkedIn export, or build from scratch with AI help. 26 27Where would you like to start?`;if(!i)return`Hey ${n}! ð Your resume is ready â great start. 28 29Next up: add a role or two to your Job Pipeline so you can start tracking applications and tailoring your resume for each one. Go to Job Pipeline â + Add Job. 30 31Do you have a specific role in mind?`;if(!c)return`Hey ${n}! ð Resume and pipeline are live â you're moving. 32 33One move that sets you apart: a tailored cover letter. Go to Cover Letters â New, paste the job description, and AI writes a personalised letter in seconds. 34 35Want to try it for one of your saved roles?`;const m=u>0?`You've got ${u} active application${u!==1?"s":""} in motion. `:d>0?`You've got ${d} job${d!==1?"s":""} in your pipeline. `:"";return`Hey ${n}! ð ${m}How's the search going? I'm here whenever you need help â interview prep, following up on applications, or just talking through what to do next.`}const mt=/(\/[a-z][a-z0-9-]+(?:\/[a-z][a-z0-9-]+)*)/g;function Ha({content:t,onNavigate:s}){const n=t.split(mt);return e.jsx("span",{className:"whitespace-pre-wrap break-words",children:n.map((a,i)=>mt.test(a)?(mt.lastIndex=0,e.jsxs("button",{onClick:()=>s(a),className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-lg bg-primary/10 text-primary text-xs font-semibold hover:bg-primary/20 transition-colors mx-0.5 align-baseline",children:[a,e.jsx(Q,{className:"w-3 h-3 flex-shrink-0"})]},i)):e.jsx("span",{children:a},i))})}function pt({size:t="sm"}){return e.jsx("div",{className:y("rounded-full bg-gradient-to-br from-blue-400 to-primary flex items-center justify-center flex-shrink-0 shadow-sm",t==="sm"?"w-6 h-6":"w-8 h-8"),children:e.jsx(ce,{className:y("text-white",t==="sm"?"w-3 h-3":"w-4 h-4")})})}function Ka(){const{user:t}=I(),[s,n]=A(),[a,i]=r.useState(!1),[c,d]=r.useState([]),[u,m]=r.useState(""),[h,b]=r.useState(!1),[g,j]=r.useState(null),[v,w]=r.useState(!1),[_,R]=r.useState(!1),N=r.useRef(null),O=r.useRef(null),{data:T}=Se({queryKey:["dashboard-stats"],queryFn:()=>$("GET","/dashboard/stats"),staleTime:120*1e3,retry:!1,enabled:!!t&&t.role!=="admin"});r.useEffect(()=>{if(!t||t.role==="admin"||s!=="/dashboard"||sessionStorage.getItem(er)||!T)return;const x=setTimeout(()=>{sessionStorage.setItem(er,"1"),d([{role:"assistant",content:qa(t.firstName||"there",T)}]),R(!0),i(!0)},3e3);return()=>clearTimeout(x)},[t,s,T]),r.useEffect(()=>{if(!t||t.role==="admin"||!(!!t.createdAt&&Date.now()-new Date(t.createdAt).getTime()<10080*60*1e3))return;const E=Wa[s];if(!E||sessionStorage.getItem(E.sessionKey))return;const z=setTimeout(()=>{sessionStorage.setItem(E.sessionKey,"1"),d([{role:"assistant",content:E.message(t.firstName||"there")}]),R(!0),i(!0)},4e3);return()=>clearTimeout(z)},[t,s]),r.useEffect(()=>{const x=E=>{const{message:z}=E.detail;d([{role:"assistant",content:z}]),R(!1),i(!0),setTimeout(()=>O.current?.focus(),150)};return window.addEventListener("nova-open",x),()=>window.removeEventListener("nova-open",x)},[]),r.useEffect(()=>{a&&(w(!1),setTimeout(()=>O.current?.focus(),120))},[a]),r.useEffect(()=>{a&&N.current?.scrollIntoView({behavior:"smooth"})},[c,a]);const V=async x=>{const E=(x??u).trim();if(!E||h)return;m(""),j(null),R(!1);const z={role:"user",content:E},st=[...c,z];d(st),b(!0);try{const pe={role:"assistant",content:(await $("POST","/chat/message",{message:E,history:c.slice(-10)})).reply};d(nt=>[...nt,pe]),a||w(!0)}catch(H){j(H.message??"Something went wrong. Please try again."),d(pe=>pe.slice(0,-1))}finally{b(!1)}},C=x=>
35{x.key==="Enter"&&!x.shiftKey&&(x.preventDefault(),V())},me=()=>{d([]),j(null),m(""),R(!1)},G=x=>{i(!1),n(x)},re=c.length===0||_&&c.length===1&&c[0].role==="assistant",_e=re&&_?Ga:tr;return e.jsxs(e.Fragment,{children:[e.jsxs("button",{onClick:()=>i(x=>!x),"aria-label":a?"Close Nova chat":"Chat with Nova",className:y("fixed z-50 flex items-center justify-center transition-all duration-200","bottom-[4.75rem] right-4 md:bottom-5 md:right-5","w-12 h-12 rounded-full shadow-lg","bg-gradient-to-br from-blue-500 to-primary text-white","hover:scale-105 hover:shadow-xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary"),children:[a?e.jsx(F,{className:"w-5 h-5"}):e.jsx(ce,{className:"w-5 h-5"}),!a&&v&&e.jsx("span",{className:"absolute -top-0.5 -right-0.5 w-3 h-3 bg-red-500 rounded-full border-2 border-background"}),!a&&_&&e.jsx("span",{className:"absolute inset-0 rounded-full animate-ping bg-primary/40 pointer-events-none"})]}),a&&e.jsxs("div",{className:y("fixed z-50 flex flex-col rounded-2xl border bg-background shadow-2xl overflow-hidden","bottom-[8.75rem] right-4 md:bottom-20 md:right-5","w-[calc(100vw-2rem)] md:w-[360px]"),style:{height:"min(560px, calc(100dvh - 10rem))"},children:[e.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 border-b bg-gradient-to-r from-primary to-blue-600 text-white flex-shrink-0",children:[e.jsxs("div",{className:"relative flex-shrink-0",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-white/20 flex items-center justify-center",children:e.jsx(ce,{className:"w-4 h-4 text-white"})}),e.jsx("span",{className:"absolute -bottom-0.5 -right-0.5 w-2.5 h-2.5 bg-emerald-400 rounded-full border-2 border-primary"})]}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-semibold leading-tight",children:"Nova"}),e.jsx("p",{className:"text-xs text-white/70 leading-tight",children:"Win My Job AI Guide"})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[c.length>0&&e.jsx("button",{onClick:me,title:"Start over",className:"p-1.5 rounded-lg hover:bg-white/10 transition-colors",children:e.jsx(hr,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:()=>i(!1),className:"p-1.5 rounded-lg hover:bg-white/10 transition-colors",children:e.jsx(Et,{className:"w-4 h-4"})})]})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto px-3 py-3 space-y-3 min-h-0 bg-muted/20",children:[c.length===0?e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex gap-2.5",children:[e.jsx(pt,{size:"sm"}),e.jsxs("div",{className:"bg-card rounded-2xl rounded-tl-sm px-3.5 py-2.5 text-sm leading-relaxed max-w-[85%] shadow-sm border border-border/50",children:["Hi! I'm ",e.jsx("strong",{children:"Nova"}),", your Win My Job guide. I can help you navigate the platform, understand features, or point you in the right direction. What can I help you with?"]})]}),e.jsx("p",{className:"text-xs text-muted-foreground px-1 pt-1",children:"Suggested questions:"}),e.jsx("div",{className:"flex flex-col gap-1.5",children:tr.map(x=>e.jsx("button",{onClick:()=>V(x),className:"text-left text-xs px-3 py-2 rounded-xl border bg-card hover:bg-primary/5 hover:border-primary/30 transition-colors text-foreground/80 hover:text-foreground shadow-sm",children:x},x))})]}):e.jsxs(e.Fragment,{children:[c.map((x,E)=>e.jsxs("div",{className:y("flex gap-2",x.role==="user"?"justify-end":"justify-start"),children:[x.role==="assistant"&&e.jsx(pt,{size:"sm"}),e.jsx("div",{className:y("rounded-2xl px-3.5 py-2.5 text-sm leading-relaxed max-w-[85%]",x.role==="user"?"bg-gradient-to-br from-primary to-blue-600 text-white rounded-tr-sm shadow-sm whitespace-pre-wrap break-words":"bg-card rounded-tl-sm border border-border/50 shadow-sm"),children:x.role==="assistant"?e.jsx(Ha,{content:x.content,onNavigate:G}):x.content})]},E)),re&&_&&e.jsxs("div",{className:"space-y-1.5 pl-8",children:[e.jsx("p",{className:"text-xs text-muted-foreground px-1",children:"Where would you like to start?"}),_e.map(x=>e.jsx("button",{onClick:()=>V(x),className:"block w-full text-left text-xs px-3 py-2 rounded-xl border bg-card hover:bg-primary/5 hover:border-primary/30 transition-colors text-foreground
35/80 hover:text-foreground shadow-sm",children:x},x))]})]}),h&&e.jsxs("div",{className:"flex gap-2",children:[e.jsx(pt,{size:"sm"}),e.jsxs("div",{className:"bg-card rounded-2xl rounded-tl-sm px-3.5 py-3 flex items-center gap-1.5 border border-border/50 shadow-sm",children:[e.jsx("span",{className:"w-1.5 h-1.5 bg-primary/50 rounded-full animate-bounce [animation-delay:0ms]"}),e.jsx("span",{className:"w-1.5 h-1.5 bg-primary/50 rounded-full animate-bounce [animation-delay:150ms]"}),e.jsx("span",{className:"w-1.5 h-1.5 bg-primary/50 rounded-full animate-bounce [animation-delay:300ms]"})]})]}),g&&e.jsx("p",{className:"text-xs text-destructive text-center px-2",children:g}),e.jsx("div",{ref:N})]}),e.jsxs("div",{className:"flex-shrink-0 border-t px-3 py-2.5 bg-background",children:[e.jsxs("div",{className:"flex items-end gap-2",children:[e.jsx("textarea",{ref:O,value:u,onChange:x=>m(x.target.value),onKeyDown:C,placeholder:"Ask Nova anythingâ¦",rows:1,maxLength:1e3,disabled:h,className:y("flex-1 resize-none text-sm bg-muted/50 rounded-xl px-3 py-2.5 outline-none","border border-transparent focus:border-primary/30 transition-colors","placeholder:text-muted-foreground/60 disabled:opacity-50","min-h-[40px] max-h-[120px] leading-relaxed"),style:{fieldSizing:"content"}}),e.jsx(P,{size:"icon",onClick:()=>V(),disabled:!u.trim()||h,className:"h-10 w-10 rounded-xl flex-shrink-0 bg-gradient-to-br from-primary to-blue-600 hover:opacity-90 border-0",children:h?e.jsx(Ss,{className:"w-4 h-4 animate-spin"}):e.jsx(gt,{className:"w-4 h-4"})})]}),e.jsx("p",{className:"text-[10px] text-muted-foreground/50 text-center mt-1.5",children:"Enter to send · Shift+Enter for new line"})]})]})]})}const Ya="/".replace(/\/$/,"");function Qa(){const{user:t}=I(),[,s]=A(),[n,a]=r.useState(!1);if(!t||we(t)||!Y(t))return null;const i=St(t);if(i>7)return null;const c=i<=3,d=i<=1;async function u(){a(!0);try{const h=await fetch(`${Ya}/api/stripe/checkout/start-trial`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({convertOffer:!0})});if(!h.ok){s("/subscription");return}const b=await h.json();b.url?window.location.href=b.url:s("/subscription")}catch{s("/subscription")}finally{a(!1)}}if(c)return e.jsx("div",{className:`w-full border-b ${d?"bg-red-600 border-red-700":"bg-gradient-to-r from-orange-500 to-red-500 border-orange-600"}`,children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-2.5 flex flex-col sm:flex-row items-center justify-between gap-2",children:[e.jsxs("div",{className:"flex items-center gap-2 text-white",children:[e.jsx(q,{className:"w-4 h-4 flex-shrink-0"}),e.jsx("span",{className:"text-sm font-semibold",children:i===0?"â¡ Your trial ends today":`â¡ ${i} day${i!==1?"s":""} left in your trial`}),e.jsx("span",{className:"hidden sm:inline text-sm text-white/80",children:"â Save 20% if you upgrade now"})]}),e.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[e.jsx(P,{size:"sm",variant:"ghost",className:"h-7 text-xs text-white/70 hover:text-white hover:bg-white/10 px-2",onClick:()=>s("/subscription"),children:"View plans"}),e.jsxs(P,{size:"sm",className:"h-7 text-xs gap-1 bg-white text-orange-600 hover:bg-white/90 font-bold",onClick:u,disabled:n,children:[e.jsx(M,{className:"w-3 h-3"}),n?"Loadingâ¦":"Claim 20% off"]})]})]})});const m=Math.max(0,Math.min(100,i/7*100));return e.jsxs("div",{className:"relative w-full overflow-hidden cursor-pointer select-none bg-amber-50 border-b border-amber-200",onClick:()=>s("/subscription"),role:"button","aria-label":"View subscription options",children:[e.jsx("div",{className:"absolute inset-0 bg-amber-500/10 transition-all",style:{width:`${m}%`}}),e.jsxs("div",{className:"relative flex items-center justify-between px-4 py-1.5 gap-2",children:[e.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-medium text-amber-800",children:[e.jsx(q,{className:"w-3 h-3 flex-shrink-0"}),e.jsxs("span",{children:[i," day",i!==1?"s":""," left in your free trial"]})]}),e.jsx("span",{className:"text-[11px] font-semibold underline underline-offset-2 flex-shrink-0 text-amber-700",children:"Upgrade now â"})]})]})}const Ct="wmj-accent",wt=[{id:"blue",label:"Blue",color:"#1B62AB"},{id:"violet",label:"Violet",color:"#7c3aed"},{id:"teal",label:"Teal",color:"#0d9488"},{id:"emerald",label:"Emerald",color:"#059669"},{id:"rose",label:"Rose",color:"#e11d48"},{id:"amber",label:"Amber",color:"#d97706"}];function Xa(t){document.documentElement.setAttribute("data-accent",t),localStorage.setItem(Ct,t)}function Za(){if(typeof window>"u")return;const t=localStorage.getItem(Ct);t&&wt.some(s=>s.id===t)&&document.documentElement.setAttribute("data-accent",t)}function eo({collapsed:t}){const{theme:s,setTheme:n}=ys(),[a,i]=r.useState("blue");r.useEffect(()=>{const d=localStorage.getItem(Ct);d&&wt.some(u=>u.id===d)&&i(d)},[]);function c(d){i(d),Xa(d)}return t?null:e.jsxs("div",{className:"border-t border-sidebar-border px-3 py-2.5 space-y-2",children:[e.jsx("p",{className:"text-[10px] font-semibold text-sidebar-foreground
35/40 uppercase tracking-wider",children:"Appearance"}),e.jsx("div",{className:"flex gap-1",children:[{id:"light",Icon:Is,label:"Light"},{id:"system",Icon:As,label:"System"},{id:"dark",Icon:Cs,label:"Dark"}].map(({id:d,Icon:u,label:m})=>e.jsxs("button",{onClick:()=>n(d),title:m,className:y("flex-1 flex items-center justify-center gap-1.5 rounded-md py-1.5 text-[11px] font-medium transition-colors",s===d?"bg-sidebar-primary/20 text-sidebar-primary":"text-sidebar-foreground/50 hover:bg-sidebar-accent/50 hover:text-sidebar-foreground/80"),children:[e.jsx(u,{className:"w-3.5 h-3.5 flex-shrink-0"}),e.jsx("span",{children:m})]},d))}),e.jsx("div",{className:"flex gap-2 flex-wrap",children:wt.map(({id:d,label:u,color:m})=>e.jsx("button",{onClick:()=>c(d),title:u,className:y("w-5 h-5 rounded-full transition-all duration-150",a===d?"ring-2 ring-offset-2 ring-offset-sidebar ring-white/70 scale-110":"opacity-60 hover:opacity-100 hover:scale-110"),style:{backgroundColor:m}},d))})]})}const rr=xn,sr=hn,to=r.forwardRef(({className:t,inset:s,children:n,...a},i)=>e.jsxs(Cr,{ref:i,className:y("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",s&&"pl-8",t),...a,children:[n,e.jsx(xe,{className:"ml-auto"})]}));to.displayName=Cr.displayName;const ro=r.forwardRef(({className:t,...s},n)=>e.jsx(Rr,{ref:n,className:y("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",t),...s}));ro.displayName=Rr.displayName;const _t=r.forwardRef(({className:t,sideOffset:s=4,...n},a)=>e.jsx(pn,{children:e.jsx(Or,{ref:a,sideOffset:s,className:y("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",t),...n})}));_t.displayName=Or.displayName;const X=r.forwardRef(({className:t,inset:s,...n},a)=>e.jsx(Lr,{ref:a,className:y("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",s&&"pl-8",t),...n}));X.displayName=Lr.displayName;const so=r.forwardRef(({className:t,children:s,checked:n,...a},i)=>e.jsxs(Dr,{ref:i,className:y("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:n,...a,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(zr,{children:e.jsx(Rs,{className:"h-4 w-4"})})}),s]}));so.displayName=Dr.displayName;const no=r.forwardRef(({className:t,children:s,...n},a)=>e.jsxs(Vr,{ref:a,className:y("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...n,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(zr,{children:e.jsx(Os,{className:"h-2 w-2 fill-current"})})}),s]}));no.displayName=Vr.displayName;const ao=r.forwardRef(({className:t,inset:s,...n},a)=>e.jsx(Mr,{ref:a,className:y("px-2 py-1.5 text-sm font-semibold",s&&"pl-8",t),...n}));ao.displayName=Mr.displayName;const Re=r.forwardRef(({className:t,...s},n)=>e.jsx(Fr,{ref:n,className:y("-mx-1 my-1 h-px bg-muted",t),...s}));Re.displayName=Fr.displayName;function p(t,s,n,a="job_search"){return{kind:"item",href:t,label:s,icon:n,mode:a}}
35function L(t,s,n,a,i="job_search"){return{kind:"group",id:t,label:s,icon:n,items:a,mode:i}}function oo(t,s){return t.filter(n=>!n.mode||n.mode==="both"||n.mode===s)}const Oe=[p("/dashboard","Dashboard",be,"both"),p("/tour","App Tour",gr,"both"),p("/browser-extension","Browser Extension",br,"job_search"),p("/training","Training Center",jr,"both"),L("career-guide","Career Guide",ge,[p("/student-guide","Student & New Grad Guide",vr),p("/career-change","Career Change: Where to Start",Vs),p("/career-requirements","Career Requirements Analyzer",Ee)],"job_search"),L("resume-cl","Resume & Profile",ee,[p("/resume","Resume",ee),p("/cover-letter","Cover Letter",le),p("/linkedin","LinkedIn",$e),p("/other-job-boards-setup","Other Job Boards Setup",Ke),p("/job-boards","Job Board Checklist",Ms),p("/linkedin-profile-optimizer","LinkedIn Profile Writer (AI)",$e)],"job_search"),L("outreach-communication","Outreach & Comms",Dt,[p("/communicate","Communicate Efficiently",We),p("/target-50","Target 50 Tracker",se),p("/networking-job-seeker","Networking",ke),p("/networking-events","Networking Events",Je),p("/personal-brand","LinkedIn Content Calendar (AI)",$e),p("/ai-outreach","AI Outreach",Dt),p("/outreach-pipeline","Outreach Pipeline",ke)],"job_search"),p("/learning-center","Learning Center",K,"job_search"),L("free-tools","Free Tools",Ne,[p("/resume-score","Resume Score",Ne),p("/linkedin-optimizer","LinkedIn Optimizer",$e),p("/salary-guide","Salary Guide",Z)],"job_search"),L("job-search-objectives","Job Search Objectives",at,[p("/goals","Job Search Goals",at),p("/accountability","Job Search Accountability",se),p("/my-wins","My Wins",Ce)],"job_search"),L("pre-job-application","Pre-job Application",Ve,[p("/automatic-denial","Automatic Denial",ot),p("/disability-self-id","Application Disclosures",Fs),p("/visa-sponsorship","Visa Sponsorship Guide",Ke),p("/visa-guidance","H1B AI Planner",Ke),p("/skills-gap","Skills Gap Analyzer",se),p("/security-clearance","Security Clearance",Te)],"job_search"),L("job-application","Job Application",$s,[p("/reduce-rejections","Reduce Rejections",ge),p("/job-recommendations","Job Recommendations",je),p("/job-opportunity","Job Opportunity",oe),p("/job-intel","Job Fit Analyzer (AI)",zt),p("/ats-deep-scanner","ATS Deep Scanner",je),p("/quick-apply-kit","Quick Apply Kit",M),p("/rapid-deploy","Rapid Deploy (AI)",M),p("/application-funnel","Application Funnel",Ne)],"job_search"),L("impact-projects","Impact Projects",qe,[p("/interview-impact-project","Interview Impact Project",qe),p("/portfolio","Portfolio Builder",oe)],"job_search"),L("screening","Screening",ft,[p("/salary-discussion","Salary Discussion",Z),p("/what-not-to-do","Job Scam Red Flags",ot),p("/pre-screening-questions","Pre-Screening Questions",Js),p("/recruiter-screening","Recruiter Screening",ft),p("/account-manager-screening","Account Manager Screening",Xe)],"job_search"),p("/pre-interview","Pre-Interview Prep",se,"job_search"),p("/pre-interview-mindset","Interview Mindset",K,"job_search"),p("/pre-interview-same-day-loop","Same Day Multi-Interview",Pe,"job_search"),L("interview-prep-group","Interview Prep",Pe,[p("/interview","Interview Pipeline",Pe),p("/interview-prep","Prep Checklist",Ee),p("/interview-intelligence","Interview Intelligence",ke),p("/star-stories","STAR Story Bank",Bs),p("/leadership-principles","Leadership Principles",at),p("/interview-battle-cards","Interview Battle Cards",Ce),p("/interview-countdown","Interview Countdown",q),p("/mock-interview","Mock Interview",Us),p("/mock-sprint","Mock Sprint",M)],"job_search"),L("during-interview-group","During Interview",M,[p("/during-interview","In the Room",M),p("/during-interview-mindset","In Your Head",K)],"job_search"),p("/after-interview","After Interview",Gs,"job_search"),p("/after-interview-recovery","When It Goes Wrong",Ws,"job_search"),p("/knowledge-center","Knowledge Center",K,"both"),L("job-offer-group","Job Offer",Z,[p("/offer","Offer",Z),p("/post-offer-review","Post Offer Review",Ne),p("/offer-comparison","Compare Offers",qs),p("/offer-intelligence","Offer Intelligence (AI)",qe),p("/job-level-reference","Job Level Reference",Vt),p("/offer-timer","Offer Decision Timer",q)],"job_search"),L("negotiation-group","Negotiation",Be,[p("/salary-benchmarking","Salary Benchmarking",Z),p("/compensation-intel","Compensation Intelligence",Ne),p("/negotiation-
35playbooks","Company Negotiation Playbooks",Be),p("/offer-negotiation","Offer Negotiation & Simulator",ne),p("/salary-negotiation","Salary Negotiation Simulator (AI)",Z),p("/negotiation-emails","Negotiation Emails",le)],"job_search"),p("/background","Background",Ve,"job_search"),p("/leaving","Leaving Well",He,"job_search"),p("/rif-playbook","RIF & Layoff Playbook",Ue,"job_search"),L("starting-new-job","Starting a New Job",Mt,[p("/first-90-days","Day 1 & First Week",Pt),p("/first-month-at-work","First Month at Work",Je),p("/ninety-days-at-work","The 90 Days at Work",se),p("/parental-leave","Parental Leave Strategy",Hs),p("/difficult-situations","Difficult Situations",Ue),p("/new-job-biases","Biases at a New Job",K),p("/new-job-conversations","Starting Conversations",We),p("/new-job-prioritize","Prioritizing Your Work",se),p("/new-job-meetings","Managing Meetings",Pe),p("/new-job-focus-time","Setting Up Focus Time",q),p("/new-job-manager-1on1","1:1 with Your Manager",Be),p("/new-job-mistake","Made a Mistake at Work",Ue)],"career"),L("career-intelligence","Career Intelligence",zt,[p("/understand-the-company","Understand the Company",ke),p("/unwritten-rules","The Unwritten Rules",ge),p("/career-killers","Career Killers",ot),p("/work-politics","Things to Never Say",ye),p("/career-trajectory","Career Trajectory Map (AI)",Ft),p("/hiring-calendar","Hiring Season Calendar",Je)],"career"),L("networking-career","Networking",Be,[p("/networking-professional","Strategic Networking",ke),p("/networking-events","Networking Events",Je),p("/networking-sequences","Outreach Sequences",gt)],"career"),p("/promotion-path","Path to Promotion",Fe,"career"),L("promotion-hub","Promotion Hub",ne,[p("/three-to-six-months-shift","3 to 6 Month Shift",M),p("/leadership-at-work","Become a Leader",U),p("/get-promoted","Get Promoted",ne),p("/promotion-status","Promotion Status",Ce)],"career"),L("career-level-up","Career Level Up",Vt,[p("/career-level-up","Level Up Roadmap",ne),p("/roadmap-companies","Company Roadmaps",Mt),p("/career-level","Career Level Evaluator (AI)",Le)],"career"),p("/brag-document","Brag Document",Le,"career"),L("annual-review","Annual Review",Ee,[p("/annual-review/prep","Review Prep",Ee),p("/annual-review/meeting","The Meeting",ie),p("/annual-review/react","How to React",M),p("/annual-review/feedback-request","Requesting Feedback",We),p("/performance-review-coach","Performance Review Coach (AI)",Le)],"career"),p("/giving-back","Giving Back Loop",Ks,"career"),p("/five-year-pivot","The Next 5 Years Pivot",Ft,"career"),L("career-transition","Career Transition",He,[p("/leaving-smart","Leaving a Role Smart",Te),p("/leaving","Resignation Letter",jt),p("/exit-interview","Exit Interview",He),p("/farewell","Farewell Message",gt),p("/rif-playbook","RIF & Layoff Playbook",Ue)],"career"),p("/shadow-agent","Shadow Agent",K,"both"),L("hiring-hub","Hiring Hub",oe,[p("/hiring","Are You Hiring?",ie),p("/hiring-onboarding","Onboarding",Ys),p("/candidate-pick","Candidate Pick",Xe)],"career"),p("/success-stories","Success Stories",Ce,"both"),p("/refer-a-friend","Refer a Friend",ie,"both"),p("/subscription","Subscription",ze,"both")],io=new Set(["/tour","/training","/knowledge-center","/learning-center","/browser-extension","/subscription","/refer-a-friend","/journey-map","/workflows","/testing-center","/technical-assessment"]),as=[p("/tour","App Tour",gr,"both"),p("/journey-map","Path to Offer",Fe,"job_search"),p("/workflows","Workflows",Qs,"job_search"),p("/testing-center","Testing Center",vr,"job_search"),p("/technical-assessment","Technical Assessment",Ee,"job_search"),p("/training","Training Center",jr,"both"),p("/knowledge-center","Knowledge Center",K,"both"),p("/learning-center","Learning Center",K,"job_search"),p("/browser-extension","Browser Extension",br,"job_search")],lo=[{href:"/management?tab=overview",label:"Overview",icon:be,tab:"overview"},{href:"/management?tab=users",label:"Users",icon:ie,tab:"users"},{href:"/management?tab=pipeline",label:"Pipeline",icon:Ne,tab:"pipeline"},{href:"/management?tab=campaigns",label:"Campaigns",icon:Ls,tab:"campaigns"},{href:"/management?tab=traffic",label:"Traffic",icon:Ke,tab:"traffic"},{href:"/management?tab=sessions",label:"Sessions",icon:Ds,tab:"sessions"},{href:"/management?tab=errors",label:"Errors",icon:ye,tab:"errors"},{href:"/management?tab=server",label:"Server",icon:zs,tab:"server"},{href:"/management?tab=email",label:"Email",icon:le,tab:"email"}];function fe(t,s){return s===t||t!=="/dashboard"&&s.startsWith(t+"/")}function xt(t,s){return t.items.some(n=>fe(n.href,s))}function co(t){const s=[];for(const n of t)n.kind==="item"?s.push(n):s.push(...n.items);return s}function uo({location:t,mode:s}){const n=as.filter(a=>!a.mode||a.mode==="both"||a.mode===s);return e.jsx("div",{className:"hidden md:flex items-center gap-0.5 px-4 border-b border-border bg-background/80 backdrop-blur-sm shrink-0",children:n.map(({href:a,label:i,icon:c})=>{const d=fe(a,t);return e.jsxs(D,{href:a,className:y("flex items-center gap-2 px-3 py-2.5 text-sm font-medium transition-colors border-b-2 -mb-px select-none",d?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-border"),children:[e.jsx(c,{className:"w-4 h-4 flex-shrink-0"}),i]},a)})})}function mo({onMenuOpen:t,location:s,isAdmin:n}){if(n)return null;const{user:a}=I(),c=a?.uiMode==="career"?[{href:"/dashboard",label:"Home",icon:be},{href:"/first-90-days",label:"90 Days",icon:Pt},{href:"/brag-document",label:"Wins",icon:Le},{href:"/get-promoted",label:"Growth",icon:ne}]:[{href:"/dashboard",label:"Home",icon:be},{href:"/resume",label:"Resume",icon:ee},{href:"/job-opportunity",label:"Jobs",icon:oe},{href:"/interview",label:"Interviews",icon:Pe}];return e.jsx("div",{className:"md:hidden fixed bottom-0 left-0 right-0 z-40 bg-background/95 backdrop-blur-md border-t border-border",style:{paddingBottom:"env(safe-area-inset-bottom)"},children:e.jsxs("div",{className:"flex items-stretch",children:[c.map(({href:d,label:u,icon:m})=>{const h=fe(d,s);return e.jsxs(D,{href:d,className:y("flex flex-col items-center justify-center gap-0.5 flex-1 py-2 transition-colors min-h-[56px]",h?"text-primary":"text-muted-foreground hover:text-foreground"),children:[e.jsx("div",{className:y("p-1 rounded-lg transition-colors",h&&"bg-primary/10"),children:e.jsx(m,{className:"w-5 h-5"})}),e.jsx("span",{className:y("text-[10px] font-medium leading-none",h?"text-primary":"text-muted-foreground"),children:u})]},d)}),e.jsxs("button",{onClick:t,className:"flex flex-col items-center justify-center gap-0.5 flex-1 py-2 text-muted-foreground hover:text-foreground transition-colors min-h-[56px]",children:[e.jsx("div",{className:"p-1 rounded-lg",children:e.jsx(fr,{className:"w-5 h-5"})}),e.jsx("span",{className:"text-[10px] font-medium leading-none",children:"More"})]})]})})}function po(t){return On(Oe,t)}function xo(){const{user:t,refreshUser:s}=I(),[n,a]=r.useState(!1),[i,c]=A(),d=t?.uiMode??"job_search",u=new Set(["admin","marketing","va","cmo"]),m=Y(t)||At(t,"pro")||u.has(t?.role??"");async function h(g){const j=i.split("?")[0];j&&j!=="/dashboard"&&localStorage.setItem(ae(d),j),a(!0);try{await $("PATCH","/users/me/mode",{mode:g,persist:!0}),await s(),c("/dashboard");const v=ae(g);let w=localStorage.getItem(v);if(!w){const _=sessionStorage.getItem(v);_&&(localStorage.setItem(v,_),w=_)}if(sessionStorage.removeItem(v),w&&w!=="/dashboard"){const _=po(w)??w;vt({title:`Switched to ${g==="job_search"?"Job Search":"Career"}`,description:`Pick up where you left off: ${_}`,action:e.jsx(Ze,{altText:"Resume",onClick:()=>c(w),children:"Go back â"})})}}catch(v){v?.status===403&&vt({title:"Career mode requires Pro",de
35scription:"Upgrade your plan to access Career mode.",action:e.jsx(Ze,{altText:"Upgrade",onClick:()=>c("/subscription"),children:"Upgrade â"})})}finally{a(!1)}}const b=[{id:"job_search",label:"Job Search"},{id:"career",label:"Career"}];return e.jsx("div",{className:"px-3 pb-2",children:e.jsx("div",{className:"flex rounded-lg bg-sidebar-accent/40 p-0.5 gap-0.5",children:b.map(({id:g,label:j})=>{const v=d===g,w=g==="career"&&!m;return e.jsxs("button",{onClick:()=>!w&&!v&&h(g),title:w?"Upgrade to Pro to unlock Career mode":v?j:`Switch to ${j}`,disabled:n||v,className:y("flex-1 flex items-center justify-center gap-1 py-1.5 rounded-md text-xs font-medium transition-all select-none",v?"bg-sidebar-primary text-white shadow-sm cursor-default":w?"text-sidebar-foreground/30 cursor-not-allowed":"text-sidebar-foreground/60 hover:text-sidebar-foreground hover:bg-sidebar-accent/60 cursor-pointer"),children:[w&&e.jsx(pr,{className:"w-3 h-3 flex-shrink-0"}),j]},g)})})})}function ho(){return e.jsxs("div",{className:"p-6 space-y-4 animate-pulse",children:[e.jsx("div",{className:"flex items-center justify-between",children:e.jsxs("div",{children:[e.jsx("div",{className:"h-6 bg-muted rounded-lg w-48 mb-2"}),e.jsx("div",{className:"h-3 bg-muted rounded w-72"})]})}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mt-2",children:[...Array(4)].map((t,s)=>e.jsx("div",{className:"h-24 bg-muted rounded-xl"},s))}),e.jsx("div",{className:"h-52 bg-muted rounded-xl"}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[e.jsx("div",{className:"h-32 bg-muted rounded-xl"}),e.jsx("div",{className:"h-32 bg-muted rounded-xl"})]})]})}function Rt({children:t}){const[s,n]=r.useState(!1),[a,i]=r.useState(!1),[c,d]=r.useState(null),[u,m]=r.useState(!1),[h]=A(),{user:b,logout:g}=I(),j=b?.uiMode??"job_search",v=b?.role==="admin",[w,_]=r.useState(()=>{const x={};for(const E of Oe)E.kind==="group"&&(x[E.id]=xt(E,h));return x});r.useEffect(()=>{_(x=>{const E={...x};for(const z of Oe)z.kind==="group"&&xt(z,h)&&(E[z.id]=!0);return E})},[h]);function R(x){_(E=>({...E,[x]:!E[x]}))}const N=r.useCallback(async()=>{d(null),localStorage.removeItem(ae("job_search")),localStorage.removeItem(ae("career")),await g(),window.location.href="/login"},[g]),O=r.useCallback(x=>d(x),[]),T=r.useCallback(()=>d(null),[]);ca({onIdle:N,onWarn:O,onResume:T,enabled:!!b,timeoutMs:v?600*1e3:1800*1e3}),r.useEffect(()=>{if(v)return;const x=E=>{(E.metaKey||E.ctrlKey)&&E.key==="k"&&(E.preventDefault(),m(z=>!z))};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[v]);const V=x=>{const E=new URLSearchParams(h.split("?")[1]||"").get("tab")||"overview";return x===E},C=s&&!a,me=v?Oe:oo(Oe,j),G=a?me:me.filter(x=>x.kind!=="item"||!io.has(x.href)),re=co(G),_e=a&&!v?as.filter(x=>!x.mode||x.mode==="both"||x.mode===j):[];return e.jsxs(e.Fragment,{children:[e.jsx(Na,{}),e.jsx(Ta,{}),e.jsx(Ca,{}),e.jsxs("div",{className:"flex h-screen overflow-hidden bg-background",children:[a&&e.jsx("div",{className:"fixed inset-0 bg-black/50 z-30 md:hidden",onClick:()=>i(!1)}),e.jsxs("aside",{className:y("fixed md:relative z-40 flex flex-col h-full bg-sidebar text-sidebar-foreground transition-all duration-300 ease-in-out",s&&!a?"w-16":"w-64",a?"translate-x-0":"-translate-x-full md:translate-x-0"),children:[e.jsx("div",{className:y("flex items-center gap-3 px-4 py-4 border-b border-sidebar-border",C&&"justify-center px-2"),children:C?e.jsx(Me,{size:32,ringColor:"#ffffff",gradientEnd:"#60a5fa",nodeColor:"#3b82f6",animate:!1}):e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx(kn,{markSize:28,markRingColor:"#ffffff",markGradientEnd:"#60a5fa",wordmarkColor:"#ffffff",animate:!1}),e.jsx("div",{className:"text-[10px] text-sidebar-foreground/50 tracking-widest uppercase ml-0.5 self-end pb-0.5",children:v?"Admin":""})]})}),v&&!C&&e.jsx("div",{className:"px-4 pt-3 pb-1",children:e.jsxs("div",{className:"flex items-center gap-1.5 text-xs font-semibold text-amber-400/80 uppercase tracking-wider",children:[e.jsx(Te,{className:"w-3.5 h-3.5"}),"Administrator"]})}),!v&&!C&&e.jsx(xo,{}),e.jsxs("nav",{className:"flex-1 overflow-y-auto py-3 px-2 space-y-0.5",children:[v?lo.map(x=>{const E=x.icon,z=V(x.tab);return e.jsxs(D,{href:x.href,className:y("flex items-center gap-3 px-3 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer",z?"bg-sidebar-accent text-sidebar-primary":"text-sidebar-foreground
35/70 hover:bg-sidebar-accent/50 hover:text-sidebar-foreground",C&&"justify-center px-2"),onClick:()=>i(!1),title:C?x.label:void 0,children:[e.jsx(E,{className:"w-4 h-4 flex-shrink-0"}),!C&&e.jsx("span",{children:x.label})]},x.href)}):C?re.map(x=>{const E=x.icon,z=fe(x.href,h);return e.jsx(D,{href:x.href,className:y("flex items-center justify-center px-2 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer",z?"bg-sidebar-accent text-sidebar-primary":"text-sidebar-foreground/70 hover:bg-sidebar-accent/50 hover:text-sidebar-foreground"),onClick:()=>i(!1),title:x.label,children:e.jsx(E,{className:"w-4 h-4 flex-shrink-0"})},x.href)}):G.map(x=>{if(x.kind==="item"){const H=x.icon,pe=fe(x.href,h);return e.jsxs(D,{href:x.href,className:y("flex items-center gap-3 px-3 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer",pe?"bg-sidebar-accent text-sidebar-primary":"text-sidebar-foreground/70 hover:bg-sidebar-accent/50 hover:text-sidebar-foreground"),onClick:()=>i(!1),children:[e.jsx(H,{className:"w-4 h-4 flex-shrink-0"}),e.jsx("span",{children:x.label})]},x.href)}const E=!!w[x.id],z=xt(x,h),st=x.icon;return e.jsxs("div",{children:[e.jsxs("button",{onClick:()=>R(x.id),className:y("w-full flex items-center gap-3 px-3 py-2 rounded-lg text-sm font-medium transition-colors",z?"text-sidebar-foreground hover:bg-sidebar-accent/50":"text-sidebar-foreground/60 hover:bg-sidebar-accent/40 hover:text-sidebar-foreground/80"),children:[e.jsx(st,{className:"w-4 h-4 flex-shrink-0"}),e.jsx("span",{className:"flex-1 text-left",children:x.label}),z&&e.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-sidebar-primary/80 flex-shrink-0 mr-1"}),e.jsx(Et,{className:y("w-3.5 h-3.5 flex-shrink-0 transition-transform duration-200",E?"rotate-0":"-rotate-90")})]}),e.jsx("div",{className:"overflow-hidden transition-all duration-200 ease-in-out",style:{maxHeight:E?"600px":"0"},children:e.jsx("div",{className:"mt-0.5 ml-3 pl-3 border-l border-sidebar-border/50 space-y-0.5",children:x.items.map(H=>{const pe=H.icon,nt=fe(H.href,h);return e.jsxs(D,{href:H.href,className:y("flex items-center gap-3 px-2 py-1.5 rounded-lg text-sm font-medium transition-colors cursor-pointer",nt?"bg-sidebar-accent text-sidebar-primary":"text-sidebar-foreground/60 hover:bg-sidebar-accent/50 hover:text-sidebar-foreground"),onClick:()=>i(!1),children:[e.jsx(pe,{className:"w-3.5 h-3.5 flex-shrink-0"}),e.jsx("span",{children:H.label})]},H.href)})})})]},x.id)}),_e.length>0&&e.jsxs("div",{className:"mt-2 pt-2 border-t border-sidebar-border/50",children:[e.jsx("p",{className:"px-3 py-1.5 text-[10px] font-semibold text-sidebar-foreground/40 uppercase tracking-wider",children:"Tools"}),_e.map(x=>{const E=x.icon,z=fe(x.href,h);return e.jsxs(D,{href:x.href,className:y("flex items-center gap-3 px-3 py-2 rounded-lg text-sm font-medium transition-colors cursor-pointer",z?"bg-sidebar-accent text-sidebar-primary":"text-sidebar-foreground/70 hover:bg-sidebar-accent/50 hover:text-sidebar-foreground"),onClick:()=>i(!1),children:[e.jsx(E,{className:"w-4 h-4 flex-shrink-0"}),e.jsx("span",{children:x.label})]},x.href)})]})]}),!v&&e.jsxs("div",{className:y("border-t border-sidebar-border px-2 py-2 flex gap-1",C?"flex-col items-center":"items-center"),children:[e.jsxs("button",{onClick:()=>m(!0),className:y("flex items-center gap-2 rounded-lg p-2 transition-colors flex-1","text-sidebar-foreground/70 hover:bg-sidebar-accent/50 hover:text-sidebar-foreground",C&&"flex-none"),title:"Search",children:[e.jsx(je,{className:"w-4 h-4 flex-shrink-0"}),!C&&e.jsxs("span",{className:"text-xs flex items-center gap-1.5 flex-1",children:["Search",e.jsx("kbd",{className:"ml-auto hidden sm:inline-flex items-center gap-0.5 rounded bg-sidebar-accent/60 border border-sidebar-border px-1 py-0.5 text-[9px] font-mono text-sidebar-foreground/40",children:"âK"})]})]}),e.jsx(Kt,{collapsed:C})]}),!v&&e.jsx(eo,{collapsed:C}),e.jsx("div",{className:y("border-t border-sidebar-border p-3",C&&"flex justify-center"),children:e.jsxs(rr,{children:[e.jsx(sr,{asChild:!0,children:e.jsxs("button",{className:y("flex items-center gap-3 w-full rounded-lg hover:bg-sidebar-accent/50 px-2 py-2 transition-colors",C&&"justify-center"),children:[v?e.jsx("div",{className:"w-8 h-8 rounded-full bg-amber-500/80 flex items-center justify-center flex-shrink-0",children:e.jsx(Te,{className:"w-4 h-4 text-white"})}):e.jsx(Qt,{firstName:b?.firstName,lastName:b?.lastName,avatarUrl:b?.avatarUrl,size:"sm"}),!C&&e.jsxs("div",{className:"flex-1 min-w-0 text-left",children:[e.jsxs("div",{className:"text-sm font-medium text-white truncate",children:[b?.firstName," ",b?.lastName]}
35),e.jsx("div",{className:"text-xs text-sidebar-foreground/60 truncate",children:b?.email})]})]})}),e.jsxs(_t,{side:"top",align:"start",className:"w-52",children:[e.jsxs("div",{className:"px-3 py-2",children:[e.jsxs("p",{className:"text-sm font-medium",children:[b?.firstName," ",b?.lastName]}),e.jsx("p",{className:"text-xs text-muted-foreground truncate",children:b?.email}),v&&e.jsx("p",{className:"text-xs text-amber-600 font-semibold mt-0.5",children:"Administrator"})]}),e.jsx(Re,{}),e.jsx(D,{href:"/profile",children:e.jsxs(X,{className:"cursor-pointer",children:[e.jsx(bt,{className:"w-4 h-4 mr-2"}),"Profile"]})}),!v&&e.jsxs(e.Fragment,{children:[e.jsx(D,{href:"/subscription",children:e.jsxs(X,{className:"cursor-pointer",children:[e.jsx(ze,{className:"w-4 h-4 mr-2"}),"Subscription"]})}),e.jsx(D,{href:"/refer-a-friend",children:e.jsxs(X,{className:"cursor-pointer",children:[e.jsx(ie,{className:"w-4 h-4 mr-2"}),"Refer a Friend"]})})]}),e.jsx(Re,{}),e.jsxs(X,{onClick:N,className:"text-destructive focus:text-destructive cursor-pointer",children:[e.jsx(jt,{className:"w-4 h-4 mr-2"}),"Sign out"]})]})]})}),e.jsx("button",{onClick:()=>n(!s),"aria-label":C?"Expand sidebar":"Collapse sidebar",className:"hidden md:flex absolute top-6 -right-3 w-6 h-6 bg-sidebar-border text-sidebar-foreground rounded-full items-center justify-center shadow-md hover:bg-sidebar-primary hover:text-white transition-colors",children:C?e.jsx(xe,{className:"w-3 h-3"}):e.jsx(mr,{className:"w-3 h-3"})})]}),u&&e.jsx(ja,{onClose:()=>m(!1)}),e.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[e.jsxs("header",{className:"md:hidden flex items-center gap-2 px-3 py-3 border-b bg-card",children:[e.jsx("button",{onClick:()=>i(!0),"aria-label":"Open navigation menu",className:"p-1.5 rounded-md hover:bg-muted flex-shrink-0",children:e.jsx(fr,{className:"w-5 h-5"})}),e.jsxs("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:[e.jsx(Me,{size:24,ringColor:"#0a1628",gradientEnd:"#3b82f6",nodeColor:"#3b82f6",animate:!1}),e.jsx("span",{className:"font-semibold text-foreground truncate",children:"Win My Job"}),v&&e.jsx("span",{className:"text-xs text-amber-600 font-semibold flex-shrink-0",children:"Admin"})]}),e.jsxs("div",{className:"flex items-center gap-1 flex-shrink-0",children:[!v&&e.jsx("button",{onClick:()=>m(!0),className:"p-1.5 rounded-md hover:bg-muted transition-colors","aria-label":"Search",children:e.jsx(je,{className:"w-5 h-5 text-muted-foreground"})}),!v&&e.jsx(Kt,{placement:"header"}),e.jsxs(rr,{children:[e.jsx(sr,{asChild:!0,children:e.jsx("button",{className:"rounded-full transition-colors",children:v?e.jsx("div",{className:"w-8 h-8 rounded-full bg-amber-500/80 hover:bg-amber-500 flex items-center justify-center transition-colors",children:e.jsx(Te,{className:"w-4 h-4 text-white"})}):e.jsx(Qt,{firstName:b?.firstName,lastName:b?.lastName,avatarUrl:b?.avatarUrl,size:"sm"})})}),e.jsxs(_t,{side:"bottom",align:"end",className:"w-52",children:[e.jsxs("div",{className:"px-3 py-2",children:[e.jsxs("p",{className:"text-sm font-medium truncate",children:[b?.firstName," ",b?.lastName]}),e.jsx("p",{className:"text-xs text-muted-foreground truncate",children:b?.email}),v&&e.jsx("p",{className:"text-xs text-amber-600 font-semibold mt-0.5",children:"Administrator"})]}),e.jsx(Re,{}),e.jsx(D,{href:"/profile",children:e.jsxs(X,{className:"cursor-pointer",onClick:()=>i(!1),children:[e.jsx(bt,{className:"w-4 h-4 mr-2"}),"Profile & Settings"]})}),!v&&e.jsxs(e.Fragment,{children:[e.jsx(D,{href:"/subscription",children:e.jsxs(X,{className:"cursor-pointer",onClick:()=>i(!1),children:[e.jsx(ze,{className:"w-4 h-4 mr-2"}),"Subscription"]})}),e.jsx(D,{href:"/refer-a-friend",children:e.jsxs(X,{className:"cursor-pointer",onClick:()=>i(!1),children:[e.jsx(ie,{className:"w-4 h-4 mr-2"}),"Refer a Friend"]})})]}),e.jsx(Re,{}),e.jsxs(X,{onClick:N,className:"text-destructive focus:text-destructive cursor-pointer",children:[e.jsx(jt,{className:"w-4 h-4 mr-2"}),"Sign out"]})]})]})]})]}),e.jsxs("main",{className:"flex-1 overflow-y-auto flex flex-col min-h-0 pb-14 md:pb-0",children:[!v&&e.jsx(uo,{location:h,mode:j}),e.jsx(ia,{}),e.jsx(Qa,{}),e.jsx(ta,{}),e.jsx(sa,{}),e.jsx(ra,{}),e.jsx(na,{}),!v&&e.jsx(oa,{}),e.jsx("div",{className:"flex-1 min-h-0 flex flex-col",children:e.jsx(r.Suspense,{fallback:e.jsx(ho,{}),children:t})})]})]}),e.jsx(de,{open:c!==null,onOpenChange:()=>{},children:e.jsx(te,{className:"max-w-sm text-center",onInteractOutside:x=>x.preventDefault(),children:e.jsxs("div",{className:"flex flex-col items-center gap-4 py-2",children:[e.jsxs("div",{className:"relative w-20 h-20",children:[e.jsxs("svg",{className:"w-20 h-20
35-rotate-90",viewBox:"0 0 80 80",children:[e.jsx("circle",{cx:"40",cy:"40",r:"34",fill:"none",stroke:"#e5e7eb",strokeWidth:"6"}),e.jsx("circle",{cx:"40",cy:"40",r:"34",fill:"none",stroke:"#ef4444",strokeWidth:"6",strokeLinecap:"round",strokeDasharray:`${2*Math.PI*34}`,strokeDashoffset:`${2*Math.PI*34*(1-(c??60)/60)}`,className:"transition-all duration-1000"})]}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx("span",{className:"text-2xl font-bold text-red-500",children:c})})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-center gap-2 mb-1",children:[e.jsx(q,{className:"w-4 h-4 text-amber-500"}),e.jsx("h3",{className:"font-semibold text-foreground",children:"Session expiring soon"})]}),e.jsxs("p",{className:"text-sm text-muted-foreground leading-relaxed",children:["You've been inactive for a while. For your security, you'll be signed out in ",e.jsxs("strong",{className:"text-red-500",children:[c," second",c!==1?"s":""]})," unless you interact with the page."]})]}),e.jsxs("div",{className:"flex gap-3 w-full",children:[e.jsx(P,{variant:"outline",className:"flex-1",onClick:N,children:"Sign out now"}),e.jsx(P,{className:"flex-1",onClick:()=>{d(null),window.dispatchEvent(new MouseEvent("mousemove"))},children:"Stay signed in"})]})]})})})]}),e.jsx(Da,{}),e.jsx(Ja,{}),e.jsx(Ua,{}),e.jsx(Ka,{}),e.jsx(mo,{onMenuOpen:()=>i(!0),location:h,isAdmin:v})]})}const ht="chunkErrorAutoReloaded";function nr(t){return t.name==="ChunkLoadError"||t.message.includes("Failed to fetch dynamically imported module")||t.message.includes("Loading chunk")||t.message.includes("Importing a module script failed")}class ar extends r.Component{state={hasError:!1,autoRetried:!1};static getDerivedStateFromError(s){return{hasError:!0,error:s}}componentDidCatch(s){if(nr(s)&&!sessionStorage.getItem(ht)){sessionStorage.setItem(ht,"1"),window.location.reload();return}}handleReset=()=>{sessionStorage.removeItem(ht),this.setState({hasError:!1,error:void 0})};render(){if(!this.state.hasError)return this.props.children;if(this.props.fallback)return this.props.fallback;const s=this.state.error&&nr(this.state.error);return e.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[300px] p-8 text-center",children:[e.jsx("div",{className:"w-14 h-14 bg-destructive/10 rounded-2xl flex items-center justify-center mb-4",children:e.jsx(ye,{className:"w-7 h-7 text-destructive"})}),e.jsx("h2",{className:"text-lg font-semibold mb-2",children:s?"Failed to load page":"Something went wrong"}),e.jsx("p",{className:"text-sm text-muted-foreground mb-5 max-w-sm",children:s?"This page failed to load, usually due to a network hiccup or an update. Try again â your data is safe.":"This section ran into an unexpected error. Try again or refresh the page â your data is safe."}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(P,{onClick:this.handleReset,className:"gap-2",children:[e.jsx(hr,{className:"w-4 h-4"}),"Try again"]}),e.jsxs(P,{variant:"outline",onClick:()=>window.location.reload(),className:"gap-2",children:[e.jsx(kt,{className:"w-4 h-4"}),"Refresh page"]})]})]})}}const or="wmj_cookie_consent";function fo(){const[t,s]=r.useState(!1),[n,a]=r.useState(!1);r.useEffect(()=>{if(localStorage.getItem(or))return;const d=setTimeout(()=>s(!0),800);return()=>clearTimeout(d)},[]);function i(c){localStorage.setItem(or,c),a(!0),setTimeout(()=>s(!1),400)}return t?e.jsx("div",{className:`fixed bottom-0 left-0 right-0 z-50 transition-transform duration-400 ease-out ${n?"translate-y-full":"translate-y-0"}`,children:e.jsx("div",{className:"bg-background border-t border-border shadow-2xl",children:e.jsxs("div",{className:"max-w-5xl mx-auto px-4 py-4 flex flex-col sm:flex-row items-start sm:items-center gap-4",children:[e.jsxs("div",{className:"flex items-start gap-3 flex-1 min-w-0",children:[e.jsx("div",{className:"w-9 h-9 rounded-xl bg-primary/10 flex items-center justify-center shrink-0 mt-0.5",children:e.jsx(Xs,{className:"w-4 h-4 text-primary"})}),e.jsxs("div",{className:"text-sm min-w-0",children:[e.jsx("p",{className:"font-semibold text-foreground mb-0.5",children:"We use cookies"}),e.jsxs("p",{className:"text-muted-foreground leading-relaxed text-xs",children:["We use essential cookies to keep you logged in and optional analytics cookies to improve the platform. Read our"," ",e.jsx(D,{href:"/cookies",className:"text-primary hover:underline",children:"Cookie Policy"})," ","and"," ",e.jsx(D,{href:"/privacy",className:"text-primary hover:underline",children:"Privacy Policy"}),"."]})]})]}),e.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[e.jsxs(P,{variant:"outline",size:"sm",onClick:()=>i("essential"),className:"text-xs",children:[e.jsx(Ve,{className:"w-3.5 h-3.5 mr-1.5"}),"Essential Only"]}),e.jsx(P,{size:"sm",onClick:()=>i("all"),className:"text-xs",children:"Accept All"}),e.jsx("button",{onClick:()=>i("essential"),className:"text-muted-foreground hover:text-foreground transition-colors ml-1","aria-label":"Dismiss",children:e.jsx(F,{className:"w-4 h-4"})})]})]})})}):null}const os=r.forwardRef(({className:t,...s},n)=>e.jsx(B,{ref:n,className:y("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",t),...s}));os.displayName=B.displayName;const go=({children:t,...s})=>e.jsx(de,{...s,children:e.jsx(te,{className:"overflow-hidden p-0",children:e.jsx(os,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:t})})}),is=r.forwardRef(({className:t,...s},n)=>e.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[e.jsx(je,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),e.jsx(B.Input,{ref:n,className:y("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",t),...s})]}));is.displayName=B.Input.displayName;const ls=r.forwardRef(({className:t,...s},n)=>e.jsx(B.List,{ref:n,className:y("max-h-[300px] overflow-y-auto overflow-x-hidden",t),...s}));ls.displayName=B.List.displayName;const cs=r.forwardRef((t,s)=>e.jsx(B.Empty,{ref:s,className:"py-6 text-center text-sm",...t}));cs.displayName=B.Empty.displayName;const ds=r.forwardRef(({className:t,...s},n)=>e.jsx(B.Group,{ref:n,className:y("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",t),...s}));ds.displayName=B.Group.displayName;const us=r.forwardRef(({className:t,...s},n)=>e.jsx(B.Separator,{ref:n,className:y("-mx-1 h-px bg-border",t),...s}));us.displayName=B.Separator.displayName;const ms=r.forwardRef(({className:t,...s},n)=>e.jsx(B.Item,{ref:n,className:y("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t),...s}));ms.displayName=B.Item.displayName;const bo=[{label:"Dashboard",href:"/dashboard",icon:be,group:"Navigate"},{label:"My Resume",href:"/resume",icon:ee,group:"Navigate"},{label:"Cover Letter",href:"/cover-letter",icon:ee,group:"Navigate"},{label:"Job Pipeline",href:"/job-opportunity",icon:oe,group:"Navigate"},{label:"Interview Prep",href:"/interview-prep",icon:K,group:"Navigate"},{label:"Mock Interview",href:"/mock-interview",icon:M,group:"Navigate"},{label:"Job Offers",href:"/offer",icon:Z,group:"Navigate"},{label:"Interviews",href:"/interview",icon:Pe,group:"Navigate"},{label:"Job Recommendations",href:"/job-recommendations",icon:se,group:"Navigate"},{label:"Testing Center",href:"/testing-center",icon:ge,group:"Navigate"},{label:"Brag Document",href:"/brag-document",icon:Le,group:"Navigate"},{label:"First 90 Days",href:"/first-90-days",icon:Pt,group:"Navigate"},{label:"Get Promoted",href:"/get-promoted",icon:ne,group:"Navigate"},{label:"Shadow Agent",href:"/shadow-agent",icon:Xe,group:"Navigate"},{label:"5-Year Pivot",href:"/five-year-pivot",icon:Tt,group:"Navigate"},{label:"Refer a Friend",href:"/refer-a-friend",icon:ie,group:"Navigate"},{label:"Compare Plans",href:"/compare",icon:Zs,group:"Navigate"},{label:"Training Center",href:"/training",icon:K,group:"Navigate"},{label:"Networking",href:"/networking-job-seeker",icon:en,group:"Navigate"}],jo=[{label:"Score My Resume (free)",href:"/resume-score",icon:ce,group:"AI Tools"},{label:"Optimize My LinkedIn (free)",href:"/linkedin-optimizer",icon:je,group:"AI Tools"},{label:"AI Outreach Messages",href:"/ai-outreach",icon:M,group:"AI Tools"},{label:"Offer Negotiation Prep",href:"/offer-negotiation",icon:Z,group:"AI Tools"},{label:"Post-Offer Review",href:"/post-offer-review",icon:Ve,group:"AI Tools"},{label:"Recruiter Screening Prep",href:"/recruiter-screening",icon:Xe,group:"AI Tools"},{label:"Salary Discussion Prep",href:"/salary-discussion",icon:Z,group:"AI Tools"}
35,{label:"Background Check Tracker",href:"/background-check",icon:Ve,group:"AI Tools"},{label:"Success Stories Wall",href:"/success-stories",icon:Tt,group:"AI Tools"},{label:"Leadership Principles",href:"/leadership-principles",icon:ge,group:"AI Tools"}],vo=[{label:"My Profile",href:"/profile",icon:bt,group:"Account"},{label:"Subscription",href:"/subscription",icon:Tt,group:"Account"}],ir=[...bo,...jo,...vo];function yo(){const{user:t}=I(),[s,n]=r.useState(!1),[,a]=A();r.useCallback(()=>n(!0),[]),r.useEffect(()=>{if(!t)return;function d(u){(u.metaKey||u.ctrlKey)&&u.key==="k"&&(u.preventDefault(),n(m=>!m))}return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[]);function i(d){n(!1),a(d)}if(!t)return null;const c=Array.from(new Set(ir.map(d=>d.group)));return e.jsx(e.Fragment,{children:e.jsxs(go,{open:s,onOpenChange:n,children:[e.jsx(is,{placeholder:"Search pages, tools, actionsâ¦"}),e.jsxs(ls,{children:[e.jsx(cs,{children:"No results found."}),c.map((d,u)=>e.jsxs("div",{children:[u>0&&e.jsx(us,{}),e.jsx(ds,{heading:d,children:ir.filter(m=>m.group===d).map(m=>e.jsxs(ms,{value:`${m.label} ${m.group}`,onSelect:()=>i(m.href),className:"cursor-pointer",children:[e.jsx(m.icon,{className:"mr-2 h-4 w-4 text-muted-foreground flex-shrink-0"}),e.jsx("span",{children:m.label})]},m.href))})]},d))]})]})})}const wo=3e4,_o=1e4,ps="wmj_health_banner_dismissed_until";function ko(){try{const t=Number(sessionStorage.getItem(ps)??"0");return Date.now()<t}catch{return!1}}function No(t){try{sessionStorage.setItem(ps,String(Date.now()+t))}catch{}}function xs(){const[t,s]=r.useState("unknown"),[n,a]=r.useState([]),[i,c]=r.useState(ko),[d,u]=r.useState(!1),m=r.useRef(null);async function h(){try{const v=await fetch("/api/healthz/detailed",{credentials:"include"});if(!v.ok&&v.status!==503){s("offline"),a([]);return}const w=await v.json().catch(()=>null);if(!w){s("offline");return}if(w.status==="ok")s("ok"),a([]),c(!1);else{const _=[];if(w.checks)for(const[R,N]of Object.entries(w.checks))N.ok||_.push(N.detail??R);s("degraded"),a(_)}}catch{s("offline"),a([])}}r.useEffect(()=>(h(),m.current=setInterval(h,t==="offline"?_o:wo),()=>{m.current&&clearInterval(m.current)}),[t]);async function b(){u(!0),await h(),u(!1)}function g(){No(300*1e3),c(!0)}if(t==="ok"||t==="unknown"||i)return null;const j=t==="offline";return e.jsxs("div",{role:"alert",className:`w-full px-4 py-2.5 flex items-center gap-3 text-sm font-medium ${j?"bg-red-600 text-white":"bg-amber-500 text-white"}`,children:[j?e.jsx(tn,{className:"w-4 h-4 flex-shrink-0"}):e.jsx(ye,{className:"w-4 h-4 flex-shrink-0"}),e.jsx("span",{className:"flex-1 leading-snug",children:j?"Cannot reach the server â check your connection. Your changes may not be saved.":n.length>0?`Service issue detected: ${n.join("; ")}`:"Some platform services are currently degraded."}),e.jsxs(P,{size:"sm",variant:"ghost",className:"h-7 px-2.5 text-white hover:bg-white/20 gap-1.5 flex-shrink-0",onClick:b,disabled:d,children:[e.jsx(kt,{className:`w-3.5 h-3.5 ${d?"animate-spin":""}`}),d?"Checkingâ¦":"Retry"]}),!j&&e.jsx("button",{onClick:g,className:"p-1 rounded hover:bg-white/20 flex-shrink-0","aria-label":"Dismiss alert",children:e.jsx(F,{className:"w-3.5 h-3.5"})})]})}function Eo(){const[t,s]=r.useState(!1),[n,a]=r.useState(!1),[i,c]=r.useState(!1),{user:d}=I(),{toast:u}=Ie();r.useEffect(()=>{const h=()=>s(!0);return window.addEventListener("email-not-verified",h),()=>window.removeEventListener("email-not-verified",h)},[]);const m=r.useCallback(async()=>{a(!0);try{await $("POST","/auth/send-verification"),c(!0),u({title:"Verification email sent",description:"Check your inbox (and spam folder)."})}catch{u({title:"Failed to send",description:"Please try again in a moment.",variant:"destructive"})}finally{a(!1)}},[u]);return e.jsx(de,{open:t,onOpenChange:s,children:e.jsxs(te,{className:"sm:max-w-md",children:[e.jsxs(et,{children:[e.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[e.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-amber-100",children:e.jsx(rn,{className:"h-5 w-5 text-amber-600"})}),e.jsx(ve,{className:"text-lg",children:"Verify your email to continue"})]}),e.jsxs(tt,{className:"text-sm text-muted-foreground",children:["This feature requires a verified email address. We sent a link to"," ",e.jsx("span",{className:"font-medium text-foreground",children:d?.email})," when you signed up."]})]}),e.jsxs("div",{className:"flex flex-col gap-3 mt-2",children:[i?e.jsx("p",{className:"text-sm text-green-700 bg-green-50 rounded-md px-3 py-2",children:"â Verification email sent â check your inbox and spam folder."}):e.jsx(P,{onClick:m,disabled:n,className:"w-full",children:n?"Sendingâ¦":"Resend verification email"}),e.jsx(P,{variant:"outline",onClick:()=>s(!1),className:"w-full",children:"Close"})]}),e.jsx("p",{className:"text-xs text-muted-foreground text-center mt-1",children:"Once verified, refresh the page and you're all set."})]})})}function Po(){const{user:t}=I(),[s,n]=r.useState(!1),[a,i]=r.useState(!1),[c,d]=r.useState(!1),{toast:u}=Ie();if(!t||!$n(t)||s)return null;const m=Jn(t),h=m<=2?"red":m<=5?"amber":"yellow",g={red:{bg:"bg-red-50 border-red-200",icon:"text-red-500",text:"text-red-800",btn:"text-red-700 hover:bg-red-100"},amber:{bg:"bg-amber-50 border-amber-200",icon:"text-amber-500",text:"text-amber-800",btn:"text-amber-700 hover:bg-amber-100"},yellow:{bg:"bg-yellow-50 border-yellow-200",icon:"text-yellow-600",text:"text-yellow-800",btn:"text-yellow-700 hover:bg-yellow-100"}}[h],j=async()=>{i(!0);try{await $("POST","/auth/send-verification"),d(!0),u({title:"Verification email sent",description:"Check your inbox (and spam folder)."})}catch{u({title:"Failed to send",description:"Please try again in a moment.",variant:"destructive"})}finally{i(!1)}};return e.jsxs("div",{className:`w-full border-b px-4 py-2 flex items-center gap-3 ${g.bg}`,children:[e.jsx(ye,{className:`h-4 w-4 shrink-0 ${g.icon}`}),e.jsx("p",{className:`flex-1 text-sm font-medium ${g.text}`,children:m>0?`Verify your email to keep access â ${m} day${m===1?"":"s"}
35 left.`:"Your email verification grace period ends today."}),c?e.jsx("span",{className:"text-xs text-green-700 font-medium",children:"Email sent â"}):e.jsx("button",{onClick:j,disabled:a,className:`text-xs font-semibold underline underline-offset-2 whitespace-nowrap ${g.btn} disabled:opacity-50`,children:a?"Sendingâ¦":"Resend email"}),e.jsx("button",{onClick:()=>n(!0),className:`ml-1 rounded p-0.5 ${g.btn}`,"aria-label":"Dismiss",children:e.jsx(F,{className:"h-3.5 w-3.5"})})]})}function To(){const{user:t}=I();if(r.useEffect(()=>{if(!t)return;const c=u=>u.preventDefault();document.addEventListener("contextmenu",c);const d=u=>{const m=/mac/i.test(navigator.platform);let h=null;u.key==="PrintScreen"?h=u.ctrlKey?"Ctrl+PrtScn":u.altKey?"Alt+PrtScn":"PrtScn":m&&u.metaKey&&u.shiftKey&&u.ctrlKey&&["3","4"].includes(u.key)?h=`Cmd+Ctrl+Shift+${u.key}`:m&&u.metaKey&&u.shiftKey&&["3","4","5"].includes(u.key)&&(h=`Cmd+Shift+${u.key}`),h&&$("POST","/events/screenshot-attempt",{page:window.location.pathname,shortcut:h}).catch(()=>{})};return window.addEventListener("keydown",d),()=>{document.removeEventListener("contextmenu",c),window.removeEventListener("keydown",d)}},[t]),!t)return null;const s=t.email,n=4,a=8,i=Array.from({length:n*a},(c,d)=>d);return e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none select-none fixed inset-0 overflow-hidden",style:{zIndex:9999},children:e.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${n}, 1fr)`,gridTemplateRows:`repeat(${a}, 1fr)`},children:i.map(c=>e.jsx("div",{className:"flex items-center justify-center",children:e.jsx("span",{className:"text-xs font-medium whitespace-nowrap select-none",style:{transform:"rotate(-30deg)",opacity:.06,color:"hsl(var(--foreground))",letterSpacing:"0.05em"},children:s})},c))})})}const So="/".replace(/\/$/,"")+"/api";function Io(){const t=document.cookie.match(/(?:^|;\s*)csrf-token=([^;]+)/);return t?decodeURIComponent(t[1]):""}function Ao({trigger:t="app",onDismiss:s}){const{toast:n}=Ie(),[a,i]=r.useState(null),[c,d]=r.useState(""),[u,m]=r.useState(!1),[h,b]=r.useState(!1);async function g(){if(a!==null){b(!0);try{const j=Io();if(!(await fetch(`${So}/nps`,{method:"POST",headers:{"Content-Type":"application/json",...j?{"X-CSRF-Token":j}:{}},credentials:"include",body:JSON.stringify({score:a,feedback:c,trigger:t})})).ok)throw new Error("Failed");m(!0),setTimeout(s,2500)}catch{n({title:"Couldn't save your response",description:"Please try again.",variant:"destructive"})}finally{b(!1)}}}return u?e.jsxs("div",{className:"fixed bottom-4 right-4 z-50 w-80 bg-card border rounded-2xl shadow-lg p-5 text-center",children:[e.jsx("p",{className:"text-2xl mb-1",children:"ð"}),e.jsx("p",{className:"font-semibold text-sm",children:"Thanks for your feedback!"}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"It genuinely helps us improve."})]}):e.jsxs("div",{className:"fixed bottom-4 right-4 z-50 w-80 bg-card border rounded-2xl shadow-lg p-5",children:[e.jsxs("div",{className:"flex items-start justify-between mb-3",children:[e.jsx("p",{className:"text-sm font-semibold leading-snug flex-1 pr-2",children:"How likely are you to recommend Win My Job to a friend?"}),e.jsx("button",{onClick:s,className:"text-muted-foreground hover:text-foreground mt-0.5 flex-shrink-0",children:e.jsx(F,{className:"w-3.5 h-3.5"})})]}),e.jsx("div",{className:"flex gap-1 mb-3 flex-wrap",children:Array.from({length:11},(j,v)=>e.jsx("button",{onClick:()=>i(v),className:`w-7 h-7 rounded-md text-xs font-bold transition-all ${a===v?"bg-primary text-white scale-110 shadow":v<=6?"bg-red-50 text-red-700 hover:bg-red-100":v<=8?"bg-amber-50 text-amber-700 hover:bg-amber-100":"bg-green-50 text-green-700 hover:bg-green-100"}`,children:v},v))}),e.jsxs("div",{className:"flex justify-between text-[10px] text-muted-foreground mb-3",children:[e.jsx("span",{children:"Not likely"}),e.jsx("span",{children:"Very likely"})]}),a!==null&&e.jsx(rt,{placeholder:"Any comments? (optional)",value:c,onChange:j=>
35d(j.target.value),className:"text-xs mb-3 min-h-[60px] resize-none",maxLength:500}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(P,{variant:"ghost",size:"sm",onClick:s,className:"text-xs flex-1",children:"Skip"}),e.jsx(P,{size:"sm",onClick:g,disabled:a===null||h,className:"text-xs flex-1",children:h?"Sendingâ¦":"Submit"})]})]})}const Co=r.lazy(()=>l(()=>import("./dashboard-Cs8NGRdq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))),Ro=r.lazy(()=>l(()=>import("./resume-BG40p6CW.js"),__vite__mapDeps([10,1,7,3,4,2,11,12,13,5,14,15,16,17,18,9]))),Oo=r.lazy(()=>l(()=>import("./cover-letter-CXNPmNEd.js"),__vite__mapDeps([19,1,2,3,4,12,20,21,14,15,17,5,7,13,18]))),Lo=r.lazy(()=>l(()=>import("./testing-center-CJLmn4P2.js"),__vite__mapDeps([22,1,2,3,4,11,15,17,5,23,7]))),Do=r.lazy(()=>l(()=>import("./job-matching-TWFm65Hu.js"),__vite__mapDeps([24,1,2,3,4,12,13,5,20,14,15,17,7]))),zo=r.lazy(()=>l(()=>import("./reduce-rejections-BckcaBy8.js"),__vite__mapDeps([25,1,12,5]))),Vo=r.lazy(()=>l(()=>import("./job-opportunity-weVpgwsl.js"),__vite__mapDeps([26,1,2,3,4,11,12,13,5,20,21,14,15,17,27,28,9,7]))),Mo=r.lazy(()=>l(()=>import("./recruiter-screening-DVx-jyAC.js"),__vite__mapDeps([29,1,2,3,4,12,13,5,20,21,14,15,17,28,7]))),Fo=r.lazy(()=>l(()=>import("./recruiter-screening-questions-ByXgfoMI.js"),__vite__mapDeps([30,1,12,5]))),$o=r.lazy(()=>l(()=>import("./account-manager-screening-BGIcPOS4.js"),__vite__mapDeps([31,1,2,3,4,12,20,21,14,15,17,5,32,28,33,7]))),Jo=r.lazy(()=>l(()=>import("./pre-screening-questions-Dic8Lr3m.js"),__vite__mapDeps([34,1,2,3,4,12,20,21,14,15,17,5,7]))),Bo=r.lazy(()=>l(()=>import("./salary-discussion-EkyPA60F.js"),__vite__mapDeps([35,1,12,5,3,4,7,2]))),Uo=r.lazy(()=>l(()=>import("./visa-sponsorship-D2jhU_yP.js"),__vite__mapDeps([36,1,12,5,3,4,7,2]))),Go=r.lazy(()=>l(()=>import("./security-clearance-DhsO7IOY.js"),__vite__mapDeps([37,1,12,5,3,4,7,2]))),Wo=r.lazy(()=>l(()=>import("./automatic-denial-CULPfAC3.js"),__vite__mapDeps([38,1,12,5]))),qo=r.lazy(()=>l(()=>import("./disability-self-id-DTZ4cfUG.js"),__vite__mapDeps([39,1,12,5]))),Ho=r.lazy(()=>l(()=>import("./interview-prep-Do8RMqHl.js"),__vite__mapDeps([40,1,7,3,4,2,12,13,5,20,14,15,17,41,9,18]))),Ko=r.lazy(()=>l(()=>import("./interview-CIiaIbCW.js"),__vite__mapDeps([42,1,2,3,4,12,13,5,20,21,14,15,17,7])));r.lazy(()=>l(()=>import("./post-interview-DpaG4Xut.js"),__vite__mapDeps([43,1,2,3,4,12,20,21,14,15,17,5,7])));r.lazy(()=>l(()=>import("./post-interview-anxiety-BhdSrzXf.js"),__vite__mapDeps([44,1,12,5])));r.lazy(()=>l(()=>import("./recruiter-ghosting-4uuO9qU0.js"),__vite__mapDeps([45,1,12,5])));r.lazy(()=>l(()=>import("./interview-rejection-lpsDF7xD.js"),__vite__mapDeps([46,1,12,5])));const Yo=r.lazy(()=>l(()=>import("./interview-battle-cards-DNPYnexT.js"),__vite__mapDeps([47,1,2,3,4,12,15,5,7])));r.lazy(()=>l(()=>import("./pre-interview-scheduling-C2MW9YI4.js"),__vite__mapDeps([48,1,12,5])));r.lazy(()=>l(()=>import("./pre-interview-stress-D568nGxP.js"),__vite__mapDeps([49,1,12,5])));r.lazy(()=>l(()=>import("./during-interview-dont-Dry5uEvS.js"),__vite__mapDeps([50,1,12,5])));r.lazy(()=>l(()=>import("./during-interview-do-BYgOpqAH.js"),__vite__mapDeps([51,1,12,5])));r.lazy(()=>l(()=>import("./during-interview-stress-BYKe0o9g.js"),__vite__mapDeps([52,1,12,5])));r.lazy(()=>l(()=>import("./during-interview-unknown-Cz1nUhuL.js"),__vite__mapDeps([53,1,12,5])));r.lazy(()=>l(()=>import("./during-interview-tics-BuWuUkbu.js"),__vite__mapDeps([54,1,12,5])));r.lazy(()=>l(()=>import("./during-interview-nonverbal-SELq097z.js"),__vite__mapDeps([55,1,12,5])));r.lazy(()=>l(()=>import("./during-interview-cutoffs-C57DcfSr.js"),__vite__mapDeps([56,1,12,5])));r.lazy(()=>l(()=>import("./interview-warning-checks-B8exIkmM.js"),__vite__mapDeps([57,1,12,5])));const Qo=r.lazy(()=>l(()=>import("./networking-job-seeker-COTFKyrG.js"),__vite__mapDeps([58,1,2,3,4,12,59,7,5,15,23,14,16,17]))),Xo=r.lazy(()=>l(()=>import("./networking-professional-B8hDtoeV.js"),__vite__mapDeps([60,1,2,3,4,12,59,7,5,20,21,14,17]))),Zo=r.lazy(()=>l(()=>import("./networking-events-COoiquev.js"),__vite__mapDeps([61,1,12,5,3,4,7,2]))),ei=r.lazy(()=>l(()=>import("./leadership-at-work-eU1Tnbrx.js"),__vite__mapDeps([62,1,2,3,4,12,14,20,5,63,7]))),ti=r.lazy(()=>l(()=>import("./brag-document-CblXMhRa.js"),__vite__mapDeps([64,1,2,3,4,12,14,20,5,7]))),ri=r.lazy(()=>l(()=>import("./job-offer-kQ40exke.js"),__vite__mapDeps([65,1,2,3,4,12,13,5,20,21,14,15,17,7])));r.lazy(()=>l(()=>import("./background-check-CXsnKuG9.js"),__vite__mapDeps([66,1,2,3,4,12,20,21,14,15,17,5,32,7])));r.lazy(()=>l(()=>import("./background-advisory-B6Jn6GcP.js"),__vite__mapDeps([67,1,12,5])));r.lazy(()=>l(()=>import("./references-DQhcTWgU.js"),__vite__mapDeps([68,1,2,3,4,12,20,21,14,15,5,7])));r.lazy(()=>l(()=>import("./resignation-Ck1Hyi7S.js"),__vite__mapDeps([69,1,2,3,4,12,20,21,14,15,17,5,7])));r.lazy(()=>l(()=>import("./exit-interview-nExjVxKk.js"),__vite__mapDeps([70,1,2,3,4,12,20,21,14,15,17,5,7])));r.lazy(()=>l(()=>import("./farewell-xUQEOZuu.js"),__vite__mapDeps([71,1,2,3,4,12,20,21,14,17,5,7])));r.lazy(()=>l(()=>import("./leaving-smart-Cu-iyVLu.js"),__vite__mapDeps([72,1,12,5])));const si=r.lazy(()=>l(()=>import("./parental-leave-BnpspX1u.js"),__vite__mapDeps([73,1,12,14,4,3,5,7,2]))),ni=r.lazy(()=>l(()=>import("./first-90-days-ILe6fxWO.js"),__vite__mapDeps([74,1,2,3,4,12,20,21,14,9,15,5,7]))),ai=r.lazy(()=>l(()=>import("./first-month-at-work-BB2z7-tl.js"),__vite__mapDeps([75,1,2,3,4,12,20,21,14,5,7]))),oi=r.lazy(()=>l(()=>import("./ninety-days-at-work-BaOVxuLi.js"),__vite__mapDeps([76,1,2,3,4,12,20,21,14,5,7]))),ii=r.lazy(()=>l(()=>import("./difficult-situations-C_q5i1gG.js"),__vite__mapDeps([77,1,12,14,4,3,5,7,2])));r.lazy(()=>l(()=>import("./pre-interview-biases-DuCfmBHW.js"),__vite__mapDeps([78,1,12,5,3,4,7,2])));r.lazy(()=>l(()=>import("./pre-interview-likeability-Ceq5vpt4.js"),__vite__mapDeps([79,1,12,5])));r.lazy(()=>l(()=>import("./pre-interview-mindsets-7h5oNxPc.js"),__vite__mapDeps([80,1,12,5])));r.lazy(()=>l(()=>import("./pre-interview-types-CTGzZDQ3.js"),__vite__mapDeps([81,1,12,5])));r.lazy(()=>l(()=>import("./pre-interview-research-levels-BzKpTbWL.js"),__vite__mapDeps([82,1,12,5])));const li=r.lazy(()=>l(()=>import("./pre-interview-same-day-loop-2wUcjQrn.js"),__vite__mapDeps([83,1,12,15,3,4,5,7,2]))),ci=r.lazy(()=>l(()=>import("./new-job-biases-D_p1xBjI.js"),__vite__mapDeps([84,1,12,5]))),di=r.lazy(()=>l(()=>import("./new-job-conversations-DvgEn_dd.js"),__vite__mapDeps([85,1,12,86,5,3,4,7,2]))),ui=r.lazy(()=>l(()=>import("./new-job-prioritize-BRdBrSUV.js"),__vite__mapDeps([87,1,12,86,5,3,4,7,2]))),mi=r.lazy(()=>l(()=>import("./new-job-meetings-DScibVs6.js"),__vite__mapDeps([88,1,12,86,5,3,4,7,2]))),pi=r.lazy(()=>l(()=>import("./new-job-focus-time-0RSVIja6.js"),__vite__mapDeps([89,1,12,86,5,3,4,7,2]))),xi=r.lazy(()=>l(()=>import("./new-job-manager-1on1-twYcHJfE.js"),__vite__mapDeps([90,1,12,86,5,3,4,7,2]))),hi=r.lazy(()=>l(()=>import("./new-job-mistake-BnfCRv6T.js"),__vite__mapDeps([91,1,12,86,5,3,4,7,2]))),fi=r.lazy(()=>l(()=>import("./understand-the-company-DEEETKvP.js"),__vite__mapDeps([92,1,12,5,3,4,7,2]))),gi=r.lazy(()=>l(()=>import("./unwritten-rules-B5EcMKQ3.js"),__vite__mapDeps([93,1,12,5,3,4,7,2]))),bi=r.lazy(()=>l(()=>import("./career-killers-6dJfVojE.js"),__vite__mapDeps([94,1,12,5,3,4,7,2]))),ji=r.lazy(()=>l(()=>import("./three-to-six-months-shift-CdXP4Wtu.js"),__vite__mapDeps([95,1,2,3,4,12,20,21,14,5,7]))),vi=r.lazy(()=>l(()=>import("./get-promoted-Vxf6Okze.js"),__vite__mapDeps([96,1,2,3,4,12,20,21,14,9,5,7]))),yi=r.lazy(()=>l(()=>import("./promotion-status-B47cloCl.js"),__vite__mapDeps([97,1,2,3,4,12,14,21,17,5,7]))),wi=r.lazy(()=>l(()=>import("./giving-back-Ca6OvnyB.js"),__vite__mapDeps([98,1,2,3,4,12,59,7,5,14,17,21]))),_i=r.lazy(()=>l(()=>import("./job-boards-BqiHQYoa.js"),__vite__mapDeps([99,1,5,3,4,7,2]))),ki=r.lazy(()=>l(()=>
35import("./what-not-to-do-DFNzpDYw.js"),__vite__mapDeps([100,1,5]))),Ni=r.lazy(()=>l(()=>import("./linkedin-DL8n6nlT.js"),__vite__mapDeps([101,1,32,4,3,102,5,103,12,15,86,7,2])));r.lazy(()=>l(()=>import("./linkedin-profile-setup-CHUg_rkv.js"),__vite__mapDeps([102,1,5])));r.lazy(()=>l(()=>import("./linkedin-algorithm-BlnTvEN3.js"),__vite__mapDeps([103,1,12,15,3,4,86,5,7,2])));const Ei=r.lazy(()=>l(()=>import("./other-job-boards-setup-DH_qQXnH.js"),__vite__mapDeps([104,1,5]))),Pi=r.lazy(()=>l(()=>import("./refer-a-friend-DLO07mN_.js"),__vite__mapDeps([105,1,2,3,4,12,15,5,7]))),Ti=r.lazy(()=>l(()=>import("./management-8vkKBxlF.js"),__vite__mapDeps([106,1,2,3,4,7,14,15,17,5,32,86,63]))),Si=r.lazy(()=>l(()=>import("./login-CnuVRyia.js"),__vite__mapDeps([107,1,7,3,4,14,5,2]))),Ii=r.lazy(()=>l(()=>import("./register-Z6SXdFJ-.js"),__vite__mapDeps([108,1,7,3,4,14,5,2]))),Ai=r.lazy(()=>l(()=>import("./forgot-password-D-UXulMH.js"),__vite__mapDeps([109,1,7,3,4,14,5,2]))),Ci=r.lazy(()=>l(()=>import("./reset-password-DOAPhu-c.js"),__vite__mapDeps([110,1,7,3,4,14,5,2]))),Ri=r.lazy(()=>l(()=>import("./profile-BWqZpGE8.js"),__vite__mapDeps([111,1,2,3,4,14,7,5]))),Oi=r.lazy(()=>l(()=>import("./subscription-Bqr1IdON.js"),__vite__mapDeps([112,1,2,3,4,15,5,7]))),Li=r.lazy(()=>l(()=>import("./subscription-success-w0iJ4J5k.js"),__vite__mapDeps([113,1,7,3,4,2,5]))),Di=r.lazy(()=>l(()=>import("./subscription-cancel-CsHaaeVj.js"),__vite__mapDeps([114,1,7,3,4,5,2]))),zi=r.lazy(()=>l(()=>import("./onboarding-B2AlCApW.js"),__vite__mapDeps([115,1,7,3,4,2,11,14,5]))),Vi=r.lazy(()=>l(()=>import("./terms-d-aUCXHG.js"),__vite__mapDeps([116,1,7,3,4,5,2]))),Mi=r.lazy(()=>l(()=>import("./privacy-CL1ZY5dg.js"),__vite__mapDeps([117,1,7,3,4,5,2]))),Fi=r.lazy(()=>l(()=>import("./cookies-C4RAj9aG.js"),__vite__mapDeps([118,1,7,3,4,5,2]))),$i=r.lazy(()=>l(()=>import("./not-found-BUOE_az_.js"),__vite__mapDeps([119,1,7,3,4,120,5,2]))),Ji=r.lazy(()=>l(()=>import("./mock-interview-DUFYAFg-.js"),__vite__mapDeps([121,1,2,3,4,14,15,17,5,12,13,33,7]))),Bi=r.lazy(()=>l(()=>import("./mock-sprint-Dly3K8hJ.js"),__vite__mapDeps([122,1,2,3,4,7,12,13,5,14,17,21,41]))),Ui=r.lazy(()=>l(()=>import("./communicate-CDnk8zsy.js"),__vite__mapDeps([123,1,2,3,4,11,15,23,16,5,7]))),Gi=r.lazy(()=>l(()=>import("./five-year-pivot-CQcuCUGo.js"),__vite__mapDeps([124,1,2,3,4,15,7,5]))),Wi=r.lazy(()=>l(()=>import("./hiring-C9OUr4TA.js"),__vite__mapDeps([125,1,2,3,4,12,14,15,17,5,7]))),qi=r.lazy(()=>l(()=>import("./hiring-onboarding-CfOIpnF6.js"),__vite__mapDeps([126,1,2,3,4,12,14,5,7]))),Hi=r.lazy(()=>l(()=>import("./candidate-pick-CIaFZEgv.js"),__vite__mapDeps([127,1,12,14,4,3,15,86,32,5,7,2]))),Ki=r.lazy(()=>l(()=>import("./shadow-agent-BR0CyLm4.js"),__vite__mapDeps([128,1,2,3,4,12,15,7,5])));r.lazy(()=>l(()=>import("./annual-review-DbeNFqeA.js"),__vite__mapDeps([129,1,2,3,4,12,17,5,15,7])));const Yi=r.lazy(()=>l(()=>import("./work-politics-B51VGAJm.js"),__vite__mapDeps([130,1,12,5,3,4,7,2]))),Qi=r.lazy(()=>l(()=>import("./annual-review-prep-BmA0AXmx.js"),__vite__mapDeps([131,1,2,3,4,12,17,5,15,7]))),Xi=r.lazy(()=>l(()=>import("./annual-review-meeting-b1ZL5bQt.js"),__vite__mapDeps([132,1,2,3,4,12,15,5,7]))),Zi=r.lazy(()=>l(()=>import("./annual-review-react-BZLpgzZd.js"),__vite__mapDeps([133,1,2,3,4,12,5,7]))),el=r.lazy(()=>l(()=>import("./annual-review-feedback-request-BxtHis4u.js"),__vite__mapDeps([134,1,12,14,4,3,15,86,17,5,7,2]))),tl=r.lazy(()=>l(()=>import("./post-offer-review-Vq78ofbA.js"),__vite__mapDeps([135,1,2,3,4,12,20,15,5,7]))),rl=r.lazy(()=>l(()=>import("./offer-negotiation-ZnfeFum0.js"),__vite__mapDeps([136,1,2,3,4,12,13,5,20,14,15,17,59,7]))),sl=r.lazy(()=>l(()=>import("./browser-extension-CyjXDAAU.js"),__vite__mapDeps([137,1,12,15,3,4,5,7,2]))),nl=r.lazy(()=>l(()=>import("./job-saver-dE6AeZbA.js"),__vite__mapDeps([138,1,7,3,4,120,5,2]))),al=r.lazy(()=>l(()=>import("./tour-GDYJl-vV.js"),__vite__mapDeps([139,1,3,4,5,7,2]))),ol=r.lazy(()=>l(()=>import("./journey-map-I_SMA898.js"),__vite__mapDeps([140,1,7,3,4,2,12,86,5]))),il=r.lazy(()=>l(()=>import("./promotion-path-CqtTCxtE.js"),__vite__mapDeps([141,1,7,3,4,12,86,5,2]))),ll=r.lazy(()=>l(()=>import("./ai-outreach-DaxxDQq2.js"),__vite__mapDeps([142,1,2,3,4,12,13,5,14,7]))),cl=r.lazy(()=>l(()=>import("./value-validation-project-BvQlMzem.js"),__vite__mapDeps([143,1,2,3,4,12,14,5,7]))),dl=r.lazy(()=>l(()=>import("./dream-50-DT05D394.js"),__vite__mapDeps([144,1,12,14,4,3,7,5,2]))),ul=r.lazy(()=>l(()=>import("./landing-DkHJdDg9.js"),__vite__mapDeps([145,1,120,2,3,4,7,5]))),ml=r.lazy(()=>l(()=>import("./expert-review-CMumI3Z4.js"),__vite__mapDeps([146,1,2,3,4,14,120,5,7]))),pl=r.lazy(()=>l(()=>import("./career-guide-CYvIsja3.js"),__vite__mapDeps([147,1,7,3,4,120,148,5,2]))),xl=r.lazy(()=>l(()=>import("./resume-score-QIa3Qw6Y.js"),__vite__mapDeps([149,1,120,7,3,4,5,2]))),hl=r.lazy(()=>l(()=>import("./success-stories-DYddMiQ9.js"),__vite__mapDeps([150,1,2,3,4,14,6,17,5,7]))),fl=r.lazy(()=>l(()=>import("./leadership-principles-Bq5Yfa9g.js"),__vite__mapDeps([151,1,41,4,3,5,17,15,7,2]))),gl=r.lazy(()=>l(()=>import("./compare--erdbncC.js"),__vite__mapDeps([152,1,120,7,3,4,5,2]))),bl=r.lazy(()=>l(()=>import("./LinkedInOptimizer-BpxGMQX-.js"),__vite__mapDeps([153,1,120,7,3,4,5,2]))),jl=r.lazy(()=>l(()=>import("./Training-CDFcoHLM.js"),__vite__mapDeps([154,1,2,3,4,12,15,7,5]))),vl=r.lazy(()=>l(()=>import("./workflows-B5uoiydk.js"),__vite__mapDeps([155,1,7,3,4,5]))),yl=r.lazy(()=>l(()=>import("./interview-prep-assessment-BsD6TgTI.js"),__vite__mapDeps([156,1,7,3,4,2,15,5]))),wl=r.lazy(()=>l(()=>import("./marketing-B23Th-Xs.js"),__vite__mapDeps([157,1,2,3,4,14,15,86,17,5,7]))),_l=r.lazy(()=>l(()=>import("./stories-BDL7_1b2.js"),__vite__mapDeps([158,1,2,3,4,7,120,8,5]))),kl=r.lazy(()=>l(()=>import("./story-detail-0d1gf8LI.js"),__vite__mapDeps([159,1,2,3,4,7,120,5]))),Nl=r.lazy(()=>l(()=>import("./star-stories-DgKtfT2G.js"),__vite__mapDeps([160,1,2,3,4,12,21,14,17,5,15,20,18,7]))),El=r.lazy(()=>l(()=>import("./recruiter-mock-screen-DiH4c9Vw.js"),__vite__mapDeps([161,1,2,3,4,12,17,5,15,33,7]))),Pl=r.lazy(()=>l(()=>import("./demo-landing-BwVXnClS.js"),__vite__mapDeps([162,1,7,3,4,5,2]))),Tl=r.lazy(()=>l(()=>import("./partner-landing-Bc2_8SI5.js"),__vite__mapDeps([163,1,7,3,4,15,5,2]))),Sl=r.lazy(()=>l(()=>import("./partner-dashboard-CD9tcWeL.js"),__vite__mapDeps([164,1,2,3,4,7,15,165,14,5]))),Il=r.lazy(()=>l(()=>import("./affiliates-landing-gnMwFCPs.js"),__vite__mapDeps([166,1,7,3,4,15,5,2]))),Al=r.lazy(()=>l(()=>import("./affiliate-dashboard-zz7jAK9x.js"),__vite__mapDeps([167,1,2,3,4,7,15,165,14,17,5]))),Cl=r.lazy(()=>l(()=>import("./interview-questions-hub-ttWceddr.js"),__vite__mapDeps([168,1,7,3,4,120,169,5,2]))),Rl=r.lazy(()=>l(()=>import("./interview-questions-role-NETSbFOJ.js"),__vite__mapDeps([170,1,7,3,4,120,5,2]))),Ol=r.lazy(()=>l(()=>import("./interview-questions-companies-BC1RtC3p.js"),__vite__mapDeps([171,1,7,3,4,120,169,5,2]))),Ll=r.lazy(()=>l(()=>import("./interview-questions-company-C5fw5Wby.js"),__vite__mapDeps([172,1,7,3,4,120,169,5,2]))),Dl=r.lazy(()=>l(()=>import("./interview-tips-D2jKP7Q8.js"),__vite__mapDeps([173,1,7,3,4,120,5,2]))),zl=r.lazy(()=>l(()=>import("./salary-guide-DDvmYJT2.js"),__vite__mapDeps([174,1,7,3,4,120,148,5,175,2]))),Vl=r.lazy(()=>l(()=>import("./paycheck-calculator-BwWnvQqB.js"),__vite__mapDeps([176,1,120,7,3,4,175,5,148,14,17,15,41,2]))),Ml=r.lazy(()=>l(()=>import("./relocation-calculator-DpHH6cnj.js"),__vite__mapDeps([177,1,120,7,3,4,175,5,148,14,17,15,2]))),Fl=r.lazy(()=>l(()=>
35import("./mindset-wellbeing-C473Ma_A.js"),__vite__mapDeps([178,1,7,3,4,148,5,175,2]))),$l=r.lazy(()=>l(()=>import("./role-landing-ey1JBh4N.js"),__vite__mapDeps([179,1,7,3,4,148,5,2]))),Jl=r.lazy(()=>l(()=>import("./toumde-academy-CRHCgQty.js"),__vite__mapDeps([180,1,7,3,4,120,148,5,2]))),lr=r.lazy(()=>l(()=>import("./success-stories-public-CM4F6GZf.js"),__vite__mapDeps([181,1,7,3,4,2,120,148,5]))),Bl=r.lazy(()=>l(()=>import("./resume-templates-D_sa78Lh.js"),__vite__mapDeps([182,1,7,3,4,120,5,2]))),Ul=r.lazy(()=>l(()=>import("./share-your-story-rUFZK5JC.js"),__vite__mapDeps([183,1,7,3,4,120,14,5,2])));r.lazy(()=>l(()=>import("./culture-decoder-CNdhZ0eu.js"),__vite__mapDeps([184,1,2,3,4,14,15,5,7])));const Gl=r.lazy(()=>l(()=>import("./interview-countdown-h0DBIhMP.js"),__vite__mapDeps([185,1,2,3,4,14,15,17,5,7]))),Wl=r.lazy(()=>l(()=>import("./application-funnel-QB7x4N5X.js"),__vite__mapDeps([186,1,2,3,4,5,63,7]))),ql=r.lazy(()=>l(()=>import("./offer-comparison-C7-grvZA.js"),__vite__mapDeps([187,1,2,3,4,14,17,5,15,7])));r.lazy(()=>l(()=>import("./video-practice-Cu_bBJ3I.js"),__vite__mapDeps([188,1,2,3,4,15,14,5,7])));const Hl=r.lazy(()=>l(()=>import("./ats-deep-scanner-C067IoKt.js"),__vite__mapDeps([189,1,2,3,4,12,14,15,17,5,7]))),Kl=r.lazy(()=>l(()=>import("./linkedin-profile-optimizer--DPPv7ej.js"),__vite__mapDeps([190,1,12,14,4,3,5,7,2]))),Yl=r.lazy(()=>l(()=>import("./salary-negotiation-simulator-DoqVafwh.js"),__vite__mapDeps([191,1,12,14,4,3,15,17,5,59,7,2]))),Ql=r.lazy(()=>l(()=>import("./skills-gap-CyT6A5al.js"),__vite__mapDeps([192,1,12,14,4,3,15,17,5,7,2]))),Xl=r.lazy(()=>l(()=>import("./visa-guidance-DA8wfBxl.js"),__vite__mapDeps([193,1,12,14,4,3,15,17,5,7,2]))),Zl=r.lazy(()=>l(()=>import("./salary-benchmarking-CBy8l4DD.js"),__vite__mapDeps([194,1,12,14,4,3,17,5,7,2]))),ec=r.lazy(()=>l(()=>import("./networking-sequences-BLS0f8Vx.js"),__vite__mapDeps([195,1,12,14,4,3,17,5,7,2]))),tc=r.lazy(()=>l(()=>import("./outreach-pipeline-DSTky6S4.js"),__vite__mapDeps([196,1,2,3,4,7,14,165,5]))),rc=r.lazy(()=>l(()=>import("./quick-apply-kit-D1eU_ubJ.js"),__vite__mapDeps([197,1,2,3,4,12,14,17,5,7]))),sc=r.lazy(()=>l(()=>import("./portfolio-C4d5dDqU.js"),__vite__mapDeps([198,1,2,3,4,12,14,5,7]))),nc=r.lazy(()=>l(()=>import("./portfolio-public-BT6IR_GA.js"),__vite__mapDeps([199,1,2,3,4,7,15,5]))),ac=r.lazy(()=>l(()=>import("./knowledge-center-BLmobWxR.js"),__vite__mapDeps([200,1,2,3,4,12,14,15,86,41,5,32,7]))),oc=r.lazy(()=>l(()=>import("./interview-intelligence-DVmVjqFX.js"),__vite__mapDeps([201,1,7,3,4,2,12,59,5,14,15,17]))),ic=r.lazy(()=>l(()=>import("./job-intel-C3otK54V.js"),__vite__mapDeps([202,1,12,15,3,4,7,5,2]))),lc=r.lazy(()=>l(()=>import("./career-level-DP9ra7t5.js"),__vite__mapDeps([203,1,2,3,4,12,14,15,17,5,7]))),cc=r.lazy(()=>l(()=>import("./technical-assessment-D1nKbXMJ.js"),__vite__mapDeps([204,1,2,3,4,12,14,15,23,5,7]))),dc=r.lazy(()=>l(()=>import("./learning-center-BNPNST1n.js"),__vite__mapDeps([205,1,2,3,4,15,7,5]))),uc=r.lazy(()=>l(()=>import("./career-trajectory-DGdJJv4b.js"),__vite__mapDeps([206,1,2,3,4,12,59,7,5,14,15]))),mc=r.lazy(()=>l(()=>import("./rapid-deploy-CuKScrSw.js"),__vite__mapDeps([207,1,2,3,4,17,5,7,12,59,14,15,32,27,18,11]))),pc=r.lazy(()=>l(()=>import("./personal-brand-C9D4Hv7R.js"),__vite__mapDeps([208,1,2,3,4,12,59,7,5,14,15,18]))),xc=r.lazy(()=>l(()=>import("./roadmap-large-companies-DG8L0gAR.js"),__vite__mapDeps([209,1,12,15,3,4,5,7,2]))),hc=r.lazy(()=>l(()=>import("./job-level-reference-ltg7rcbT.js"),__vite__mapDeps([210,1,12,5]))),fc=r.lazy(()=>l(()=>import("./career-change-Bei4BInV.js"),__vite__mapDeps([211,1,2,3,4,12,14,15,5,7]))),gc=r.lazy(()=>l(()=>import("./career-requirements-CJd7uiU2.js"),__vite__mapDeps([212,1,2,3,4,12,14,15,5,7]))),bc=r.lazy(()=>l(()=>import("./career-level-up-6FqYtLnn.js"),__vite__mapDeps([213,1,2,3,4,12,14,15,5,7]))),jc=r.lazy(()=>l(()=>import("./student-guide-UUPRffwZ.js"),__vite__mapDeps([214,1,12,7,3,4,5,2]))),vc=r.lazy(()=>l(()=>import("./accountability-Kq3X_Bxa.js"),__vite__mapDeps([215,1,2,3,4,12,14,5,7]))),yc=r.lazy(()=>l(()=>import("./goals-v8hefwmE.js"),__vite__mapDeps([216,1,2,3,4,12,14,5,7]))),wc=r.lazy(()=>l(()=>import("./my-wins-6ieswa8l.js"),__vite__mapDeps([217,1,2,3,4,12,5,7])));r.lazy(()=>l(()=>import("./interview-debrief-BrwYGWTi.js"),__vite__mapDeps([218,1,2,3,4,12,14,17,5,7])));const _c=r.lazy(()=>l(()=>import("./compensation-intel-ZnWZ65Xn.js"),__vite__mapDeps([219,1,2,3,4,12,14,5,7]))),kc=r.lazy(()=>l(()=>import("./rif-playbook-DEv33t2E.js"),__vite__mapDeps([220,1,12,5]))),Nc=r.lazy(()=>l(()=>import("./negotiation-emails-B5qGlfwK.js"),__vite__mapDeps([221,1,12,5]))),Ec=r.lazy(()=>l(()=>import("./offer-timer-7ymCndXu.js"),__vite__mapDeps([222,1,12,14,4,3,5,7,2]))),Pc=r.lazy(()=>l(()=>
35import("./negotiation-playbooks-fqhFYe4b.js"),__vite__mapDeps([223,1,12,5]))),Tc=r.lazy(()=>l(()=>import("./rejection-analyzer-CPVuU7oN.js"),__vite__mapDeps([224,1,12,14,4,3,5,7,2]))),Sc=r.lazy(()=>l(()=>import("./performance-review-coach-BE3tEJuq.js"),__vite__mapDeps([225,1,12,14,4,3,17,5,7,2]))),Ic=r.lazy(()=>l(()=>import("./pre-interview-hub-BufN5Yhr.js"),__vite__mapDeps([226,1,5,3,4,7,2]))),Ac=r.lazy(()=>l(()=>import("./interview-mindset-B6n7gE-2.js"),__vite__mapDeps([227,1,5,3,4,7,2]))),Cc=r.lazy(()=>l(()=>import("./during-interview-hub-m1mxysNw.js"),__vite__mapDeps([228,1,5,3,4,7,2]))),Rc=r.lazy(()=>l(()=>import("./during-interview-mindset-CvihTCg4.js"),__vite__mapDeps([229,1,5,3,4,7,2]))),Oc=r.lazy(()=>l(()=>import("./after-interview-hub-9QRTyaE6.js"),__vite__mapDeps([230,1,5,3,4,7,2]))),Lc=r.lazy(()=>l(()=>import("./after-interview-recovery-Bf9w4Vhy.js"),__vite__mapDeps([231,1,5,3,4,7,2]))),Dc=r.lazy(()=>l(()=>import("./leaving-mrN13ooJ.js"),__vite__mapDeps([232,1,5,3,4,7,2]))),zc=r.lazy(()=>l(()=>import("./background-hub-COP5oksg.js"),__vite__mapDeps([233,1,5,3,4,7,2]))),Vc=r.lazy(()=>l(()=>import("./hiring-calendar-DomF_SvS.js"),__vite__mapDeps([234,1,7,3,4,12,5,2]))),Mc=r.lazy(()=>l(()=>import("./features-DsjewSs2.js"),__vite__mapDeps([235,1,120,7,3,4,5,2]))),Fc=r.lazy(()=>l(()=>import("./for-organizations-eNwJFoam.js"),__vite__mapDeps([236,1,120,7,3,4,5,2]))),$c=r.lazy(()=>l(()=>import("./affiliate-BBbzMwn7.js"),__vite__mapDeps([237,1,120,7,3,4,5,2]))),Jc=r.lazy(()=>l(()=>import("./coach-dashboard-COTQr_fL.js"),__vite__mapDeps([238,1,2,3,4,15,165,14,5,7]))),Bc=r.lazy(()=>l(()=>import("./offer-intelligence-BnFLTg8j.js"),__vite__mapDeps([239,1,2,3,4,12,59,7,5,14,15,63]))),Uc=r.lazy(()=>l(()=>import("./enterprise-dashboard-D7TkLbpd.js"),__vite__mapDeps([240,1,2,3,4,12,86,15,23,32,5,7]))),Gc=r.lazy(()=>l(()=>import("./return-to-workforce-DRX5E2hE.js"),__vite__mapDeps([241,1,2,3,4,12,86,15,32,5,7]))),Wc=r.lazy(()=>l(()=>import("./vp-cfo-DIqsayWu.js"),__vite__mapDeps([242,1,2,3,4,12,86,32,15,5,7]))),hs=new ws({defaultOptions:{queries:{retry:2,staleTime:6e4},mutations:{retry:1}}}),qc="/".replace(/\/$/,"");function Hc({params:t}){const[,s]=A();return r.useEffect(()=>{const n=t?.code;if(!n){s("/");return}try{localStorage.setItem("wmj_aff_code",n)}catch{}const a="/".replace(/\/$/,"");fetch(`${a}/api/affiliates/track/${encodeURIComponent(n)}`,{credentials:"include"}).catch(()=>{}).finally(()=>s("/"))},[t?.code]),e.jsx(ue,{})}function ue(){return e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"w-12 h-12 rounded-2xl bg-primary/10 flex items-center justify-center",children:e.jsx(Me,{size:32,ringColor:"#0a1628",gradientEnd:"#3b82f6",animate:!1,className:"animate-pulse"})}),e.jsx("div",{className:"absolute -bottom-1 -right-1 w-4 h-4 border-2 border-primary border-t-transparent rounded-full animate-spin bg-background"})]}),e.jsx("p",{className:"text-xs text-muted-foreground tracking-wide",children:"Loadingâ¦"})]})})}const cr="wmj_nps_last_shown",Kc=90;function Yc(){const{user:t,isAuthenticated:s,isLoading:n}=I(),[a,i]=r.useState(!1);return r.useEffect(()=>{if(n||!s||!t)return;const c=localStorage.getItem(cr);if(c&&(Date.now()-Number(c))/864e5<Kc||(t.createdAt?(Date.now()-new Date(t.createdAt).getTime())/864e5:0)<3)return;const u="/".replace(/\/$/,"");fetch(`${u}/api/nps/eligible`,{credentials:"include"}).then(m=>m.ok?m.json():null).then(m=>{m?.eligible&&setTimeout(()=>i(!0),8e3)}).catch(()=>{})},[s,n,t]),a?e.jsx(Ao,{trigger:"post_interview",onDismiss:()=>{localStorage.setItem(cr,String(Date.now())),i(!1)}}):null}function Qc(){const[t]=A(),s=r.useRef(null);return r.useEffect(()=>{if(s.current===t)return;const n=s.current;s.current=t,$("POST","/analytics/pageview",{path:t,referrer:n?`${window.location.origin}${n}`:document.referrer}).catch(()=>{}),typeof gtag=="function"&>ag("event","page_view",{page_path:t,page_title:document.title,page_location:window.location.href})},[t]),null}function S({children:t}){const{isAuthenticated:s,isLoading:n,user:a}=I(),[i]=A();if(n)return e.jsx(ue,{});if(!s)return e.jsx(k,{to:"/login"});const c=Ot(a);return c&&!i.startsWith(c)&&!fs.some(d=>i.startsWith(d))?e.jsx(k,{to:c}):e.jsxs(e.Fragment,{children:[e.jsx(xs,{}),e.jsx(Rt,{children:t})]})}function Xc({children:t}){const{isAuthenticated:s,isLoading:n,user:a}=I();return n?e.jsx(ue,{}):s?a&&a.role!=="admin"?e.jsx(k,{to:"/dashboard"}):e.jsxs(e.Fragment,{children:[e.jsx(xs,{}),e.jsx(Rt,{children:t})]}):e.jsx(k,{to:"/login"})}function dr({children:t}){const{isAuthenticated:s,isLoading:n,user:a}=I(),[i]=A();if(n)return e.jsx(ue,{});if(!s)return e.jsx(k,{to:"/login"});const c=Ot(a);return c&&!i.startsWith(c)&&!fs.some(d=>i.startsWith(d))?e.jsx(k,{to:c}):e.jsx(Rt,{children:t})}function Ae({children:t}){const{isAuthenticated:s,isLoading:n}=I();return n?e.jsx(ue,{}):s?e.jsx(e.Fragment,{children:t}):e.jsx(k,{to:"/login"})}function J({children:t}){return e.jsx(e.Fragment,{children:t})}function f({feature:t,minTier:s,allowExpired:n,children:a}){return e.jsx(S,{children:e.jsxs(yt,{feature:t,minTier:s,allowExpired:n,children:[e.jsx(To,{}),a]})})}const Zc=new Set(["marketing","va","cmo","admin"]),fs=["/profile","/billing","/onboarding"];function Ot(t){return t?t.role==="mentor"?"/coach/dashboard":t.partnerId?"/partner/dashboard":t.affiliateId?"/affiliate/dashboard":null:null}function ed({children:t}){const{isAuthenticated:s,isLoading:n,user:a}=I();return n?e.jsx(ue,{}):s?a&&!Zc.has(a.role)?e.jsx(k,{to:"/dashboard"}):e.jsx(e.Fragment,{children:t}):e.jsx(k,{to:"/login"})}function td(){const{isAuthenticated:t,isLoading:s,user:n}=I();if(s)return e.jsx(ue,{});if(!t)return e.jsx(ul,{});if(n?.role==="admin")return e.jsx(k,{to:"/management"});if(n?.role==="marketing"||n?.role==="va"||n?.role==="cmo")return e.jsx(k,{to:"/marketing"});const a=Ot(n);return a?e.jsx(k,{to:a}):e.jsx(k,{to:"/dashboard"})}function rd(){return e.jsx(r.Suspense,{fallback:e.jsx(ue,{}),children:e.jsxs(Ns,{children:[e.jsx(o,{path:"/",component:td}),e.jsx(o,{path:"/login",component:()=>e.jsx(Si,{})}),e.jsx(o,{path:"/register",component:()=>e.jsx(Ii,{})}),e.jsx(o,{path:"/forgot-password",component:()=>e.jsx(Ai,{})}),e.jsx(o,{path:"/reset-password",component:()=>e.jsx(Ci,{})}),e.jsx(o,{path:"/onboarding",component:()=>e.jsx(Ae,{children:e.jsx(zi,{})})}),e.jsx(o,{path:"/dashboard",component:()=>e.jsx(S,{children:e.jsx(Co,{})})}),e.jsx(o,{path:"/tour",component:()=>e.jsx(S,{children:e.jsx(al,{})})}),e.jsx(o,{path:"/journey-map",component:()=>e.jsx(S,{children:e.jsx(ol,{})})}),e.jsx(o,{path:"/promotion-path",component:()=>e.jsx(S,{children:e.jsx(il,{})})}),e.jsx(o,{path:"/resume",component:()=>e.jsx(f,{feature:"Resume Builder",allowExpired:!0,children:e.jsx(Ro,{})})}),e.jsx(o,{path:"/cover-letter",component:()=>e.jsx(f,{feature:"Cover Letter Generator",children:e.jsx(Oo,{})})}),e.jsx(o,{path:"/testing-center",component:()=>e.jsx(f,{feature:"Testing Center",children:e.jsx(Lo,{})})}),e.jsx(o,{path:"/reduce-rejections",component:()=>e.jsx(f,{feature:"Job Recommendations",children:e.jsx(zo,{})})}),e.jsx(o,{path:"/job-recommendations",component:()=>e.jsx(f,{feature:"Job Recommendations",children:e.jsx(Do,{})})}),e.jsx(o,{path:"/job-opportunity",component:()=>e.jsx(S,{children:e.jsx(Vo,{})})}),e.jsx(o,{path:"/recruiter-screening-questions",component:()=>e.jsx(f,{feature:"Questions During Recruiter Screening",children:e.jsx(Fo,{})})}),e.jsx(o,{path:"/recruiter-screening",component:()=>e.jsx(f,{feature:"Recruiter Screening",children:e.jsx(Mo,{})})}),e.jsx(o,{path:"/account-manager-screening",component:()=>e.jsx(f,{feature:"Account Manager Screening",children:e.jsx($o,{})})}),e.jsx(o,{path:"/pre-screening-questions",component:()=>e.jsx(f,{feature:"Pre-Screening Questions",children:e.jsx(Jo,{})})}),e.jsx(o,{path:"/salary-discussion",component:()=>e.jsx(f,{feature:"Salary Discussion",children:e.jsx(Bo,{})})}),e.jsx(o,{path:"/visa-sponsorship",component:()=>e.jsx(f,{feature:"Visa Sponsorship",children:e.jsx(Uo,{})})}),e.jsx(o,{path:"/security-clearance",component:()=>e.jsx(f,{feature:"Security Clearance",children:e.jsx(Go,{})})}),e.jsx(o,{path:"/automatic-denial",component:()=>e.jsx(f,{feature:"Automatic Denial",children:e.jsx(Wo,{})})}),e.jsx(o,{path:"/clearance-readiness",component:()=>e.jsx(k,{to:"/security-clearance"})}),e.jsx(o,{path:"/disability-self-id",component:()=>e.jsx(f,{feature:"Application Disclosures",children:e.jsx(qo,{})})}),e.jsx(o,{path:"/wotc",component:()=>e.jsx(k,{to:"/disability-self-id"})}),e.jsx(o,{path:"/interview-prep",component:()=>e.jsx(f,{feature:"Interview Prep",minTier:"pro",children:e.jsx(Ho,{})})}),e.jsx(o,{path:"/interview",component:()=>e.jsx(f,{feature:"Interview Pipeline",minTier:"pro",children:e.jsx(Ko,{})})}),e.jsx(o,{path:"/pre-interview",component:()=>e.jsx(f,{feature:"Pre-Interview Prep",minTier:"pro",children:e.jsx(Ic,{})})}),e.jsx(o,{path:"/pre-interview-mindset",component:()=>e.jsx(f,{feature:"Interview Mindset",minTier:"pro",children:e.jsx(Ac,{})})}),e.jsx(o,{path:"/pre-interview-scheduling",component:()=>e.jsx(k,{to:"/pre-interview"})}),e.jsx(o,{path:"/pre-interview-types",component:()=>e.jsx(k,{to:"/pre-interview"})}),e.jsx(o,{path:"/pre-interview-research-levels",component:()=>e.jsx(k,{to:"/pre-interview"})}),e.jsx(o,{path:"/culture-decoder",component:()=>e.jsx(k,{to:"/pre-interview"})}),e.jsx(o,{path:"/pre-interview-stress",component:()=>e.jsx(k,{to:"/pre-interview-mindset"})}),e.jsx(o,{path:"/pre-interview-biases",component:()=>e.jsx(k,{to:"/pre-interview-mindset"})}),e.jsx(o,{path:"/pre-interview-likeability",component:()=>e.jsx(k,{to:"/pre-interview-mindset"})}),e.jsx(o,{path:"/pre-interview-mindsets",component:()=>e.jsx(k,{to:"/pre-interview-mindset"})}),e.jsx(o,{path:"/pre-interview-dos-donts",component:()=>e.jsx(k,{to:"/pre-interview-mindset"})}),e.jsx(o,{path:"/pre-interview-duration",component:()=>e.jsx(k,{to:"/pre-interview"})}),e.jsx(o,{path:"/pre-interview-location",component:()=>e.jsx(k,{to:"/pre-interview"})}),e.jsx(o,{path:"/pre-interview-real-jd",component:()=>e.jsx(k,{to:"/pre-interview"})}),e.jsx(o,{path:"/pre-interview-research-interviewers",component:()=>e.jsx(k,{to:"/pre-interview"})}),e.jsx(o,{path:"/fit-call",component:()=>e.jsx(k,{to:"/pre-interview"})}),e.jsx(o,{path:"/pre-interview-same-day-loop",component:()=>e.jsx(f,{feature:"Same Day Multi-Interview",minTier:"pro",children:e.jsx(li,{})})}),e.jsx(o,{path:"/during-interview",component:()=>e.jsx(f,{feature:"During Interview",minTier:"pro",children:e.jsx(Cc,{})})}),e.jsx(o,{path:"/during-interview-mindset",component:()=>e.jsx(f,{feature:"Interview Mindset",minTier:"pro",children:e.jsx(Rc,{})})}),e.jsx(o,{path:"/during-interview-dont",component:()=>e.jsx(k,{to:"/during-interview"})}),e.jsx(o,{path:"/during-interview-do",component:()=>e.jsx(k,{to:"/during-interview"})}),e.jsx(o,{path:"/during-interview-nonverbal",component:()=>e.jsx(k,{to:"/during-interview"})}),e.jsx(o,{path:"/during-interview-cutoffs",component:()=>e.jsx(k,{to:"/during-interview"})}),e.jsx(o,{path:"/during-interview-stress",component:()=>e.jsx(k,{to:"/during-interview-mindset"})}),e.jsx(o,{path:"/during-interview-unknown",component:()=>e.jsx(k,{to:"/during-interview-mindset"})}),e.jsx(o,{path:"/during-interview-tics",component:()=>e.jsx(k,{to:"/during-interview-mindset"})}),e.jsx(o,{path:"/knowledge-center",component:()=>e.jsx(f,{feature:"Knowledge Center",minTier:"pro",children:e.jsx(ac,{})})}),e.jsx(o,{path:"/interview-battle-cards",component:()=>e.jsx(f,{feature:"Interview Battle Cards",minTier:"pro",children:e.jsx(Yo,{})})}),e.jsx(o,{path:"/after-interview",component:()=>e.jsx(f,{feature:"After Interview",minTier:"pro",children:e.jsx(Oc,{})})}),e.jsx(o,{path:"/after-interview-recovery",component:()=>e.jsx(f,{feature:"When It Goes Wrong",minTier:"pro",children:e.jsx(Lc,{})})}),e.jsx(o,{path:"/post-interview",component:()=>e.jsx(k,{to:"/after-interview"})}),e.jsx(o,{path:"/post-interview-anxiety",component:()=>e.jsx(k,{to:"/after-interview"})}),e.jsx(o,{path:"/recruiter-ghosting",component:()=>e.jsx(k,{to:"/after-interview"})}),e.jsx(o,{path:"/interview-debrief",component:()=>e.jsx(k,{to:"/after-interview"})}),e.jsx(o,{path:"/interview-rejection",component:()=>e.jsx(k,{to:"/after-interview-recovery"})}),e.jsx(o,{path:"/interview-warning-checks",component:()=>e.jsx(k,{to:"/after-interview-recovery"})}),e.jsx(o,{path:"/interview-intelligence",component:()=>e.jsx(f,{feature:"Interview Intelligence",minTier:"pro",children:e.jsx(oc,{})})}),e.jsx(o,{path:"/rejection-analyzer",component:()=>e.jsx(k,{to:"/after-interview-recovery"})}),e.jsx(o,{path:"/video-practice",component:()=>e.jsx(k,{to:"/during-interview-mindset"})}),e.jsx(o,{path:"/interview-countdown",component:()=>e.jsx(f,{feature:"Interview Countdown Planner",minTier:"pro",children:e.jsx(Gl,{})})}),e.jsx(o,{path:"/offer",component:()=>e.jsx(f,{feature:"Job Offer",minTier:"pro",children:e.jsx(ri,{})})}),e.jsx(o,{path:"/post-offer-review",component:()=>e.jsx(f,{feature:"Post Offer Review",minTier:"pro",children:e.jsx(tl,{})})}),e.jsx(o,{path:"/offer-negotiation",component:()=>e.jsx(f,{feature:"Offer Negotiation",minTier:"pro",children:e.jsx(rl,{})})}),e.jsx(o,{path:"/offer-comparison",component:()=>e.jsx(f,{feature:"Offer Comparison",minTier:"pro",children:e.jsx(ql,{})})}),e.jsx(o,{path:"/application-funnel",component:()=>e.jsx(f,{feature:"Application Funnel Analytics",children:e.jsx(Wl,{})})}),e.jsx(o,{path:"/job-offer",component:()=>e.jsx(k,{to:"/offer"})}),e.jsx(o,{path:"/background",component:()=>
35e.jsx(f,{feature:"Background",minTier:"pro",children:e.jsx(zc,{})})}),e.jsx(o,{path:"/background-check",component:()=>e.jsx(k,{to:"/background"})}),e.jsx(o,{path:"/background-advisory",component:()=>e.jsx(k,{to:"/background"})}),e.jsx(o,{path:"/references",component:()=>e.jsx(k,{to:"/background"})}),e.jsx(o,{path:"/leaving",component:()=>e.jsx(f,{feature:"Leaving Well",minTier:"pro",children:e.jsx(Dc,{})})}),e.jsx(o,{path:"/leaving-smart",component:()=>e.jsx(k,{to:"/leaving"})}),e.jsx(o,{path:"/resignation",component:()=>e.jsx(k,{to:"/leaving"})}),e.jsx(o,{path:"/exit-interview",component:()=>e.jsx(k,{to:"/leaving"})}),e.jsx(o,{path:"/farewell",component:()=>e.jsx(k,{to:"/leaving"})}),e.jsx(o,{path:"/first-90-days",component:()=>e.jsx(f,{feature:"Day 1 & First Week at Work",minTier:"pro",children:e.jsx(ni,{})})}),e.jsx(o,{path:"/first-month-at-work",component:()=>e.jsx(f,{feature:"First Month at Work",minTier:"pro",children:e.jsx(ai,{})})}),e.jsx(o,{path:"/ninety-days-at-work",component:()=>e.jsx(f,{feature:"The 90 Days at Work",minTier:"pro",children:e.jsx(oi,{})})}),e.jsx(o,{path:"/difficult-situations",component:()=>e.jsx(f,{feature:"Difficult Situations",minTier:"pro",children:e.jsx(ii,{})})}),e.jsx(o,{path:"/new-job-biases",component:()=>e.jsx(f,{feature:"Biases at a New Job",minTier:"pro",children:e.jsx(ci,{})})}),e.jsx(o,{path:"/new-job-conversations",component:()=>e.jsx(f,{feature:"Starting Conversations with Colleagues",minTier:"pro",children:e.jsx(di,{})})}),e.jsx(o,{path:"/new-job-prioritize",component:()=>e.jsx(f,{feature:"How to Prioritize Your Work",minTier:"pro",children:e.jsx(ui,{})})}),e.jsx(o,{path:"/new-job-meetings",component:()=>e.jsx(f,{feature:"How to Manage Meetings",minTier:"pro",children:e.jsx(mi,{})})}),e.jsx(o,{path:"/new-job-focus-time",component:()=>e.jsx(f,{feature:"Set Up Focus Time",minTier:"pro",children:e.jsx(pi,{})})}),e.jsx(o,{path:"/new-job-manager-1on1",component:()=>e.jsx(f,{feature:"1:1 with Your Manager",minTier:"pro",children:e.jsx(xi,{})})}),e.jsx(o,{path:"/new-job-mistake",component:()=>e.jsx(f,{feature:"Made a Mistake at Work",minTier:"pro",children:e.jsx(hi,{})})}),e.jsx(o,{path:"/parental-leave",component:()=>e.jsx(f,{feature:"Parental Leave Strategy",minTier:"pro",children:e.jsx(si,{})})}),e.jsx(o,{path:"/understand-the-company",component:()=>e.jsx(f,{feature:"Understand the Company",minTier:"pro",children:e.jsx(fi,{})})}),e.jsx(o,{path:"/unwritten-rules",component:()=>e.jsx(f,{feature:"The Unwritten Rules",minTier:"pro",children:e.jsx(gi,{})})}),e.jsx(o,{path:"/career-killers",component:()=>e.jsx(f,{feature:"Career Killers",minTier:"pro",children:e.jsx(bi,{})})}),e.jsx(o,{path:"/star-stories",component:()=>e.jsx(f,{feature:"STAR Story Bank",minTier:"pro",children:e.jsx(Nl,{})})}),e.jsx(o,{path:"/recruiter-mock-screen",component:()=>e.jsx(f,{feature:"Recruiter Mock Screen",minTier:"pro",children:e.jsx(El,{})})}),e.jsx(o,{path:"/account-manager-mock-screen",component:()=>e.jsx(k,{to:"/account-manager-screening"})}),e.jsx(o,{path:"/mock-interview",component:()=>e.jsx(f,{feature:"Mock Interview",minTier:"pro",children:e.jsx(Ji,{})})}),e.jsx(o,{path:"/mock-sprint",component:()=>e.jsx(f,{feature:"Mock Sprint",children:e.jsx(Bi,{})})}),e.jsx(o,{path:"/three-to-six-months-shift",component:()=>e.jsx(f,{feature:"The 3 Month to 6 Month Shift",minTier:"pro",children:e.jsx(ji,{})})}),e.jsx(o,{path:"/get-promoted",component:()=>e.jsx(f,{feature:"Get Promoted",minTier:"pro",children:e.jsx(vi,{})})}),e.jsx(o,{path:"/promotion-status",component:()=>e.jsx(f,{feature:"Promotion Status",minTier:"pro",children:e.jsx(yi,{})})}),e.jsx(o,{path:"/networking-professional",component:()=>e.jsx(f,{feature:"Networking as Professional",minTier:"pro",children:e.jsx(Xo,{})})}),e.jsx(o,{path:"/leadership-at-work",component:()=>e.jsx(f,{feature:"Become a Leader",minTier:"pro",children:e.jsx(ei,{})})}),e.jsx(o,{path:"/brag-document",component:()=>e.jsx(f,{feature:"Brag Document",minTier:"pro",children:e.jsx(ti,{})})}),e.jsx(o,{path:"/annual-review",component:()=>e.jsx(k,{to:"/annual-review/prep"})}),e.jsx(o,{path:"/annual-review/prep",component:()=>e.jsx(f,{feature:"Annual Review Prep",minTier:"pro",children:e.jsx(Qi,{})})}),e.jsx(o,{path:"/annual-review/meeting",component:()=>e.jsx(f,{feature:"Annual Review Meeting",minTier:"pro",children:e.jsx(Xi,{})})}),e.jsx(o,{path:"/annual-review/react",component:()=>e.jsx(f,{feature:"How to React to Your Review",minTier:"pro",children:e.jsx(Zi,{})})}),e.jsx(o,{path:"/annual-review/feedback-request",component:()=>e.jsx(f,{feature:"Requesting Feedback",minTier:"pro",children:e.jsx(el,{})})}
35),e.jsx(o,{path:"/work-politics",component:()=>e.jsx(f,{feature:"Things to Never Say at Work",minTier:"pro",children:e.jsx(Yi,{})})}),e.jsx(o,{path:"/giving-back",component:()=>e.jsx(f,{feature:"Giving Back Loop",minTier:"pro",children:e.jsx(wi,{})})}),e.jsx(o,{path:"/five-year-pivot",component:()=>e.jsx(f,{feature:"The Next 5 Years Pivot",minTier:"pro",children:e.jsx(Gi,{})})}),e.jsx(o,{path:"/shadow-agent",component:()=>e.jsx(S,{children:e.jsx(Ki,{})})}),e.jsx(o,{path:"/hiring",component:()=>e.jsx(f,{feature:"Are You Hiring?",minTier:"pro",children:e.jsx(Wi,{})})}),e.jsx(o,{path:"/hiring-onboarding",component:()=>e.jsx(f,{feature:"Onboarding",minTier:"pro",children:e.jsx(qi,{})})}),e.jsx(o,{path:"/candidate-pick",component:()=>e.jsx(f,{feature:"Candidate Pick",minTier:"pro",children:e.jsx(Hi,{})})}),e.jsx(o,{path:"/refer-a-friend",component:()=>e.jsx(f,{feature:"Referral Program",minTier:"core",children:e.jsx(Pi,{})})}),e.jsx(o,{path:"/networking-job-seeker",component:()=>e.jsx(f,{feature:"Networking as Job Seeker",children:e.jsx(Qo,{})})}),e.jsx(o,{path:"/networking-events",component:()=>e.jsx(f,{feature:"Networking Events",children:e.jsx(Zo,{})})}),e.jsx(o,{path:"/job-boards",component:()=>e.jsx(f,{feature:"Job Board Checklist",children:e.jsx(_i,{})})}),e.jsx(o,{path:"/what-not-to-do",component:()=>e.jsx(f,{feature:"What Not To Do",children:e.jsx(ki,{})})}),e.jsx(o,{path:"/linkedin",component:()=>e.jsx(f,{feature:"LinkedIn",children:e.jsx(Ni,{})})}),e.jsx(o,{path:"/linkedin-profile-setup",component:()=>e.jsx(k,{to:"/linkedin"})}),e.jsx(o,{path:"/linkedin-algorithm",component:()=>e.jsx(k,{to:"/linkedin"})}),e.jsx(o,{path:"/other-job-boards-setup",component:()=>e.jsx(f,{feature:"Other Job Boards Setup",children:e.jsx(Ei,{})})}),e.jsx(o,{path:"/communicate",component:()=>e.jsx(f,{feature:"Communicate Efficiently",children:e.jsx(Ui,{})})}),e.jsx(o,{path:"/browser-extension",component:()=>e.jsx(S,{children:e.jsx(sl,{})})}),e.jsx(o,{path:"/ai-outreach",component:()=>e.jsx(f,{feature:"AI Outreach",children:e.jsx(ll,{})})}),e.jsx(o,{path:"/ats-deep-scanner",component:()=>e.jsx(f,{feature:"ATS Deep Scanner",children:e.jsx(Hl,{})})}),e.jsx(o,{path:"/linkedin-profile-optimizer",component:()=>e.jsx(f,{feature:"LinkedIn Profile Optimizer",children:e.jsx(Kl,{})})}),e.jsx(o,{path:"/salary-negotiation",component:()=>e.jsx(f,{feature:"Salary Negotiation Simulator",minTier:"pro",children:e.jsx(Yl,{})})}),e.jsx(o,{path:"/skills-gap",component:()=>e.jsx(f,{feature:"Skills Gap Analyzer",children:e.jsx(Ql,{})})}),e.jsx(o,{path:"/visa-guidance",component:()=>e.jsx(f,{feature:"Visa & H1B Guidance",children:e.jsx(Xl,{})})}),e.jsx(o,{path:"/salary-benchmarking",component:()=>e.jsx(f,{feature:"Salary Benchmarking",children:e.jsx(Zl,{})})}),e.jsx(o,{path:"/job-level-reference",component:()=>e.jsx(f,{feature:"Job Level Reference",children:e.jsx(hc,{})})}),e.jsx(o,{path:"/networking-sequences",component:()=>e.jsx(f,{feature:"Networking Sequence Builder",children:e.jsx(ec,{})})}),e.jsx(o,{path:"/outreach-pipeline",component:()=>e.jsx(f,{feature:"Outreach Pipeline",children:e.jsx(tc,{})})}),e.jsx(o,{path:"/interview-impact-project",component:()=>e.jsx(f,{feature:"Interview Impact Project",children:e.jsx(cl,{})})}),e.jsx(o,{path:"/target-50",component:()=>e.jsx(f,{feature:"Target 50 Tracker",children:e.jsx(dl,{})})}),e.jsx(o,{path:"/career-level",component:()=>e.jsx(S,{children:e.jsx(lc,{})})}),e.jsx(o,{path:"/technical-assessment",component:()=>e.jsx(S,{children:e.jsx(cc,{})})}),e.jsx(o,{path:"/learning-center",component:()=>e.jsx(S,{children:e.jsx(dc,{})})}),e.jsx(o,{path:"/job-intel",component:()=>e.jsx(S,{children:e.jsx(ic,{})})}),e.jsx(o,{path:"/career-trajectory",component:()=>e.jsx(S,{children:e.jsx(uc,{})})}),e.jsx(o,{path:"/rapid-deploy",component:()=>e.jsx(S,{children:e.jsx(mc,{})})}),e.jsx(o,{path:"/personal-brand",component:()=>e.jsx(S,{children:e.jsx(pc,{})})}),e.jsx(o,{path:"/offer-intelligence",component:()=>e.jsx(S,{children:e.jsx(Bc,{})})}),e.jsx(o,{path:"/roadmap-companies",component:()=>e.jsx(f,{feature:"Roadmap to Large-Scale Companies",minTier:"pro",children:e.jsx(xc,{})})}),e.jsx(o,{path:"/career-change",component:()=>e.jsx(f,{feature:"Career Change Roadmap",children:e.jsx(fc,{})})}),e.jsx(o,{path:"/career-requirements",component:()=>e.jsx(f,{feature:"Career Requirements Analyzer",children:e.jsx(gc,{})})}),e.jsx(o,{path:"/career-level-up",component:()=>e.jsx(f,{feature:"Career Level Up",children:e.jsx(bc,{})})}),e.jsx(o,{path:"/student-guide",component:()=>e.jsx(f,{feature:"Student & New Grad Guide",children:e.jsx(jc,{})})}),e.jsx(o,{path:"/quick-apply-kit",component:()=>e.jsx(f,{feature:"Quick Apply Kit",children:e.jsx(rc,{})})}),e.jsx(o,{path:"/portfolio",component:()=>e.jsx(f,{feature:"Portfolio Builder",children:e.jsx(sc,{})})}),e.jsx(o,{path:"/portfolio/:userId",component:()=>e.jsx(nc,{})}),e.jsx(o,{path:"/leadership-principles",component:()=>e.jsx(S,{children:e.jsx(fl,{})})}),e.jsx(o,{path:"/success-stories",component:()=>e.jsx(S,{children:e.jsx(hl,{})})}),e.jsx(o,{path:"/profile",component:()=>e.jsx(dr,{children:e.jsx(Ri,{})})}),e.jsx(o,{path:"/expert-review",component:()=>e.jsx(dr,{children:e.jsx(ml,{})})}),e.jsx(o,{path:"/subscription",component:()=>e.jsx(S,{children:e.jsx(Oi,{})})}),e.jsx(o,{path:"/subscription/success",component:()=>e.jsx(Li,{})}),e.jsx(o,{path:"/subscription/cancel",component:()=>e.jsx(Di,{})}),e.jsx(o,{path:"/management",component:()=>e.jsx(Xc,{children:e.jsx(Ti,{})})}),e.jsx(o,{path:"/marketing",component:()=>e.jsx(ed,{children:e.jsx(wl,{})})}),e.jsx(o,{path:"/training",component:()=>e.jsx(S,{children:e.jsx(jl,{})})}),e.jsx(o,{path:"/workflows",component:()=>e.jsx(S,{children:e.jsx(vl,{})})}),e.jsx(o,{path:"/interview-prep-assessment/:id",component:()=>e.jsx(S,{children:e.jsx(yl,{})})}),e.jsx(o,{path:"/resume-score",component:()=>e.jsx(J,{children:e.jsx(xl,{})})}),e.jsx(o,{path:"/features",component:()=>e.jsx(Mc,{})}),e.jsx(o,{path:"/for-organizations",component:()=>e.jsx(Fc,{})}),e.jsx(o,{path:"/affiliate",component:()=>e.jsx($c,{})}),e.jsx(o,{path:"/compare",component:()=>e.jsx(gl,{})}),e.jsx(o,{path:"/job-saver",component:()=>e.jsx(nl,{})}),e.jsx(o,{path:"/linkedin-optimizer",component:()=>e.jsx(J,{children:e.jsx(bl,{})})}),e.jsx(o,{path:"/stories",component:()=>e.jsx(_l,{})}),e.jsx(o,{path:"/stories/:slug",component:()=>e.jsx(kl,{})}),e.jsx(o,{path:"/about",children:e.jsx(k,{to:"/features"})}),e.jsx(o,{path:"/career-guide",component:()=>e.jsx(J,{children:e.jsx(pl,{})})}),e.jsx(o,{path:"/p/:slug",component:()=>e.jsx(Tl,{})}),e.jsx(o,{path:"/demo",component:()=>e.jsx(Pl,{})}),e.jsx(o,{path:"/affiliates",component:()=>e.jsx(Il,{})}),e.jsx(o,{path:"/affiliate/dashboard",component:()=>e.jsx(Ae,{children:e.jsx(Al,{})})}),e.jsx(o,{path:"/partner/dashboard",component:()=>e.jsx(Ae,{children:e.jsx(Sl,{})})}),e.jsx(o,{path:"/coach/dashboard",component:()=>e.jsx(Ae,{children:e.jsx(Jc,{})})}),e.jsx(o,{path:"/enterprise/dashboard",component:()=>e.jsx(Ae,{children:e.jsx(Uc,{})})}),e.jsx(o,{path:"/return-to-workforce",component:()=>e.jsx(yt,{feature:"Return to Workforce",children:e.jsx(Gc,{})})}),e.jsx(o,{path:"/vp-cfo",component:()=>e.jsx(yt,{feature:"VP & CFO Executive Module",children:e.jsx(Wc,{})})}),e.jsx(o,{path:"/a/:code",component:Hc}),e.jsx(o,{path:"/interview-questions",component:()=>e.jsx(J,{children:e.jsx(Cl,{})})}),e.jsx(o,{path:"/interview-questions/companies",component:()=>e.jsx(J,{children:e.jsx(Ol,{})})}),e.jsx(o,{path:"/interview-questions/company/:company",component:()=>e.jsx(J,{children:e.jsx(Ll,{})})}),e.jsx(o,{path:"/interview-questions/:role",component:()=>e.jsx(J,{children:e.jsx(Rl,{})})}),e.jsx(o,{path:"/interview-tips",component:()=>e.jsx(J,{children:e.jsx(Dl,{})})}),e.jsx(o,{path:"/salary-guide",component:()=>e.jsx(J,{children:e.jsx(zl,{})})}),e.jsx(o,{path:"/paycheck-calculator",component:()=>e.jsx(J,{children:e.jsx(Vl,{})})}),e.jsx(o,{path:"/relocation-calculator",component:()=>e.jsx(J,{children:e.jsx(Ml,{})})}),e.jsx(o,{path:"/mindset-wellbeing",component:()=>e.jsx(J,{children:e.jsx(Fl,{})})}),e.jsx(o,{path:"/for/:role",component:()=>e.jsx(J,{children:e.jsx($l,{})})}
35),e.jsx(o,{path:"/toumde-academy",component:()=>e.jsx(Jl,{})}),e.jsx(o,{path:"/resume-templates",component:()=>e.jsx(J,{children:e.jsx(Bl,{})})}),e.jsx(o,{path:"/success-stories",component:()=>e.jsx(lr,{})}),e.jsx(o,{path:"/wins",component:()=>e.jsx(lr,{})}),e.jsx(o,{path:"/share-your-story",component:()=>e.jsx(Ul,{})}),e.jsx(o,{path:"/terms",component:()=>e.jsx(Vi,{})}),e.jsx(o,{path:"/privacy",component:()=>e.jsx(Mi,{})}),e.jsx(o,{path:"/cookies",component:()=>e.jsx(Fi,{})}),e.jsx(o,{path:"/my-wins",component:()=>e.jsx(S,{children:e.jsx(wc,{})})}),e.jsx(o,{path:"/accountability",component:()=>e.jsx(S,{children:e.jsx(vc,{})})}),e.jsx(o,{path:"/goals",component:()=>e.jsx(S,{children:e.jsx(yc,{})})}),e.jsx(o,{path:"/compensation-intel",component:()=>e.jsx(S,{children:e.jsx(_c,{})})}),e.jsx(o,{path:"/rif-playbook",component:()=>e.jsx(f,{feature:"RIF & Layoff Playbook",children:e.jsx(kc,{})})}),e.jsx(o,{path:"/negotiation-emails",component:()=>e.jsx(f,{feature:"Negotiation Emails",children:e.jsx(Nc,{})})}),e.jsx(o,{path:"/offer-timer",component:()=>e.jsx(S,{children:e.jsx(Ec,{})})}),e.jsx(o,{path:"/negotiation-playbooks",component:()=>e.jsx(f,{feature:"Company Negotiation Playbooks",children:e.jsx(Pc,{})})}),e.jsx(o,{path:"/rejection-analyzer",component:()=>e.jsx(f,{feature:"Rejection Letter Analyzer",children:e.jsx(Tc,{})})}),e.jsx(o,{path:"/performance-review-coach",component:()=>e.jsx(f,{feature:"Performance Review Coach",children:e.jsx(Sc,{})})}),e.jsx(o,{path:"/hiring-calendar",component:()=>e.jsx(S,{children:e.jsx(Vc,{})})}),e.jsx(o,{component:$i})]})})}function sd(){const{toast:t}=Ie(),s=r.useRef(t);return s.current=t,r.useEffect(()=>hs.getMutationCache().subscribe(n=>{if(n.type!=="updated")return;const{mutation:a}=n;if(a.state.status!=="error"||typeof a.options.onError=="function")return;const i=a.state.error;if(i?.code==="EMAIL_NOT_VERIFIED"||i?.trialLimitReached||i?.budgetLimitReached)return;const c=i instanceof Error?i.message:"Something went wrong. Please try again.";s.current({title:"Action failed",description:c,variant:"destructive"})}),[]),null}function nd(){const[t,s]=r.useState(!1),[n,a]=r.useState(null),[,i]=A(),{refreshUser:c}=I();r.useEffect(()=>{const u=m=>{const h=m.detail;a(h?.resetsAt??null),s(!0)};return window.addEventListener("daily-credit-exhausted",u),()=>window.removeEventListener("daily-credit-exhausted",u)},[]),r.useEffect(()=>{const u=()=>{c().catch(()=>{})};return window.addEventListener("resume-credit-consumed",u),()=>window.removeEventListener("resume-credit-consumed",u)},[c]);const d=n?Math.max(1,Math.ceil((new Date(n).getTime()-Date.now())/36e5)):null;return e.jsx(de,{open:t,onOpenChange:s,children:e.jsxs(te,{className:"sm:max-w-md",children:[e.jsxs(et,{children:[e.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[e.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-amber-100 dark:bg-amber-950",children:e.jsx(q,{className:"h-5 w-5 text-amber-600 dark:text-amber-400"})}),e.jsx(ve,{className:"text-lg",children:"Daily resume credit used"})]}),e.jsxs(tt,{className:"text-sm text-muted-foreground",children:["Your free daily AI resume action has been used.",d!==null?` Your credit resets in ${d}h (midnight UTC).`:" Your credit resets at midnight UTC."," ","Upgrade for unlimited AI resume actions â no daily limits."]})]}),e.jsxs("div",{className:"flex flex-col gap-3 mt-2",children:[e.jsxs(P,{className:"w-full gap-2",onClick:()=>{s(!1),i("/subscription")},children:[e.jsx(U,{className:"h-4 w-4"}),"Upgrade for unlimited access"]}),e.jsx(P,{variant:"ghost",className:"w-full",onClick:()=>s(!1),children:"Come back tomorrow"})]})]})})}function ad(){const[t,s]=r.useState(!1),[,n]=A();return r.useEffect(()=>{const a=()=>s(!0);return window.addEventListener("ai-budget-exhausted",a),()=>window.removeEventListener("ai-budget-exhausted",a)},[]),e.jsx(de,{open:t,onOpenChange:s,children:e.jsxs(te,{className:"sm:max-w-md",children:[e.jsxs(et,{children:[e.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[e.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-muted",children:e.jsx(M,{className:"h-5 w-5 text-muted-foreground"})}),e.jsx(ve,{className:"text-lg",children:"AI is taking a breather"})]}),e.jsx(tt,{className:"text-sm text-muted-foreground",children:"You've gotten a lot out of your free trial â nice work! To keep using AI features without interruption, move to a full plan."})]}),e.jsxs("div",{className:"flex flex-col gap-3 mt-2",children:[e.jsx(P,{className:"w-full",onClick:()=>{s(!1),n("/profile")},children:"See plans"}),e.jsx(P,{variant:"ghost",className:"w-full",onClick:()=>s(!1),children:"Continue without AI"})]})]})})}function od(){return e.jsx(_s,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,children:e.jsx(ar,{children:e.jsx(qn,{
35children:e.jsx(fn,{client:hs,children:e.jsxs(Cn,{children:[e.jsx(ks,{base:qc,children:e.jsxs(jn,{children:[e.jsxs(ar,{children:[e.jsx(sd,{}),e.jsx(Po,{}),e.jsx(Eo,{}),e.jsx(nd,{}),e.jsx(ad,{}),e.jsx(Qc,{}),e.jsx(Yc,{}),e.jsx(rd,{})]}),e.jsx(yn,{})]})}),e.jsx(yo,{}),e.jsx(An,{}),e.jsx(fo,{})]})})})})})}Za();"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").catch(()=>{})});bs.createRoot(document.getElementById("root")).render(e.jsx(od,{}));export{xd as A,P as B,hd as C,de as D,Rn as E,kn as F,ja as G,pd as H,ns as I,Kt as N,fd as P,rt as T,Qt as U,Me as W,l as _,Y as a,$ as b,y as c,vt as d,te as e,et as f,Yr as g,ve as h,Gn as i,Va as j,gd as k,we as l,At as m,rr as n,sr as o,_t as p,ao as q,Re as r,X as s,St as t,I as u,tt as v,Ie as w,_a as x,vn as y,Cn as z};
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.