1import{c as w,ay as q,ak as R,aq as xe,am as J,az as W,aA as he,au as Q,aB as L,j as s,aC as X,aD as Y,aE as ge,Q as E,aF as Z,m as ee,aG as B,aH as V,L as G,D as te,aI as se,aJ as ae,aK as ie,aL as P,aM as U,aN as ne,B as D,aO as be,aP as _e,al as $,w as le,aQ as Ne,aR as ve,aS as je,aT as Ie,aU as ye,aV as re,aW as Ae,aX as Ce,aY as Te,aZ as ke,a_ as Se,U as we,ai as Ee,O as Me}from"./main-BeQUok39.js";import{u as Oe}from"./useLocation-CJ9hrDTc.js";const oe={id:"overview",label:"Tá»ng quan",icon:q,to:"/my",match:"exact"},ce={id:"recommended-jobs",label:"Viá»c là m dà nh cho bạn",description:"Viá»c là m ÄÆ°á»£c gợi ý bá»i AI",icon:R,to:"/my/jobs",match:"prefix"},me={id:"all-jobs",label:"Khám phá viá»c là m",description:"Xem tất cả vá» trà Äang tuyá»n",icon:xe,to:"/jobs",match:"prefix"},de={id:"profile-and-resumes",label:"Há» sÆ¡ & CV",description:"Quản lý há» sÆ¡ tìm viá»c",icon:W,to:"/my/profile",match:"prefix"},fe={id:"create-resume",label:"Tạo CV má»i",description:"Tạo CV chuyên nghiá»p vá»i JoFi AI",icon:he,to:"/cv-builder",match:"prefix"},Le={id:L.id,label:L.label,icon:L.icon,to:L.to,match:"prefix"},Ve=[oe,{id:"jobs",label:"Tìm viá»c",icon:J,children:[ce,me]},{id:"resumes-and-profile",label:"CV & há» sÆ¡",icon:Q,children:[de,fe]},Le],ze=[{id:"workspace",label:"Không gian cá»§a bạn",icon:q,children:[oe,ce]},{id:"job-discovery",label:"Tìm viá»c",icon:J,children:[me]},{id:"resumes-and-profile",label:"CV & há» sÆ¡",icon:Q,children:[de,fe]}],F="relative inline-flex h-9 items-center gap-2 rounded-full px-3.5 font-medium text-sm text-white transition-colors hover:text-brand-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-accent/40",H="text-brand-accent after:absolute after:inset-x-3.5 after:bottom-0 after:h-0.5 after:rounded-full after:bg-brand-accent after:content-['']";function pe(t){return"children"in t}function K(t){return t==="/"?t:t.replace(/\/+$/,"")}function O(t,e,a){const o=K(t),l=K(e);return a==="exact"?o===l:o===l||o.startsWith(`${l}/`)}function Pe(t,e){return pe(t)?t.children.some(a=>O(e,a.to,a.match)):O(e,t.to,t.match)}function De(t){const e=w.c(4),{pathname:a}=t;let o;e[0]!==a?(o=Ve.map(n=>{const i=Pe(n,a);return pe(n)?s.jsxs(X,{children:[s.jsx(Y,{asChild:!0,children:s.jsxs("button",{type:"button",className:E(F,i&&H),children:[s.jsx(n.icon,{className:"size-4"}),n.label,s.jsx(ge,{className:"size-3.5 opacity-60"})]})}),s.jsx(Z,{align:"start",className:"w-72 rounded-xl space-y-2 p-1.5 shadow-lg",sideOffset:8,children:n.children.map(r=>s.jsxs(ee.Fragment,{children:[r.separatorBefore?s.jsx(B,{className:"my-3"}):null,s.jsx(V,{asChild:!0,className:"rounded-lg p-0",children:s.jsx(G,{to:r.to,"aria-current":O(a,r.to,r.match)?"page":void 0,className:E("group flex w-full items-start gap-3 px-2 py-1.5 transition-colors",O(a,r.to,r.match)&&"bg-brand-accent/15"),children:s.jsx(Be,{item:r,isActive:O(a,r.to,r.match)})})})]},r.id))})]},n.id):s.jsxs(G,{to:n.to,"aria-current":i?"page":void 0,className:E(F,i&&H),children:[s.jsx(n.icon,{className:"size-4"}),n.label]},n.id)}),e[0]=a,e[1]=o):o=e[1];let l;return e[2]!==o?(l=s.jsx("nav",{className:"hidden items-center gap-1 lg:flex","aria-label":"Äiá»u hưá»ng ứng dụng",children:o}),e[2]=o,e[3]=l):l=e[3],l}function Be(t){const e=w.c(20),{item:a,isActive:o}=t,l=o&&"text-brand-ink-soft group-hover:text-brand-ink-soft";let n;e[0]!==l?(n=E("mt-0.5 grid size-8 shrink-0 place-items-center text-muted-foreground transition-colors group-hover:text-brand-ink",l),e[0]=l,e[1]=n):n=e[1];let i;e[2]!==a.icon?(i=s.jsx(a.icon,{className:"size-4"}),e[2]=a.icon,e[3]=i):i=e[3];let r;e[4]!==n||e[5]!==i?(r=s.jsx("span",{className:n,children:i}),e[4]=n,e[5]=i,e[6]=r):r=e[6];const f=o&&"font-semibold";let c;e[7]!==f?(c=E("block font-medium text-foreground text-sm",f),e[7]=f,e[8]=c):c=e[8];let p;e[9]!==a.label||e[10]!==c?(p=s.jsx("span",{className:c,children:a.label}),e[9]=a.label,e[10]=c,e[11]=p):p=e[11];let u;e[12]!==a.description?(u=a.description?s.jsx("span",{className:"block text-muted-foreground text-xs",children:a.description}):null,e[12]=a.description,e[13]=u):u=e[13];let m;e[14]!==p||e[15]!==u?(m=s.jsxs("span",{className:"min-w-0",children:[p,u]}),e[14]=p,e[15]=u,e[16]=m):m=e[16];let d;return e[17]!==r||e[18]!==m?(d=s.jsxs(s.Fragment,{children:[r,m]}),e[17]=r,e[18]=m,e[19]=d):d=e[19],d}const Ge={id:"pricing",label:"Bảng giá",icon:Ne,navigationId:"pricing",to:"/pricing"},ue="group flex min-h-11 items-center gap-3 rounded-lg px-3 py-2.5 text-sm text-foreground transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring";function Ue(t){const e=w.c(39),{pathname:a}=t,[o,l]=ee.useState(!1),n=te(),i=se(),r=ae(),f=r.data;let c;e[0]!==i.profile.first_name||e[1]!==i.profile.last_name?(c=ie({firstName:i.profile.first_name,lastName:i.profile.last_name}),e[0]=i.profile.first_name,e[1]=i.profile.last_name,e[2]=c):c=e[2];const p=c,u=P.icon;let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=()=>l(!1),e[3]=m):m=e[3];const d=m;let x;e[4]!==n?(x=()=>{window.confirm("Bạn có chắc muá»n ÄÄng xuất?")&&(d(),n({to:"/logout"}))},e[4]=n,e[5]=x):x=e[5];const C=x;let T;e[6]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(ve,{asChild:!0,children:s.jsx(D,{variant:"ghost",size:"icon",className:"text-white hover:bg-white/10 hover:text-white focus-visible:ring-white/30","aria-label":"Má» menu",children:s.jsx(je,{className:"size-5"})})}),e[6]=T):T=e[6];let I;e[7]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(Ie,{className:"px-2 pt-6 pb-2 text-left",children:s.jsx(ye,{className:"font-semibold text-lg",children:"Menu"})}),e[7]=I):I=e[7];let h;e[8]!==i.profile.avatar_url||e[9]!==i.profile.first_name||e[10]!==i.profile.last_name?(h=s.jsx(U,{className:"size-10 border-0",firstName:i.profile.first_name,lastName:i.profile.last_name,avatarUrl:i.profile.avatar_url,fetchImgSize:100,fallbackBorderSize:0}),e[8]=i.profile.avatar_url,e[9]=i.profile.first_name,e[10]=i.profile.last_name,e[11]=h):h=e[11];let y;e[12]!==p?(y=s.jsx("p",{className:"truncate font-medium text-sm",children:p}),e[12]=p,e[13]=y):y=e[13];let g;e[14]!==i.username?(g=ne(i.username),e[14]=i.username,e[15]=g):g=e[15];let b;e[16]!==g?(b=s.jsx("p",{className:"mt-1 truncate text-muted-foreground text-xs",children:g}),e[16]=g,e[17]=b):b=e[17];let _;e[18]!==y||e[19]!==b?(_=s.jsxs("div",{className:"min-w-0 leading-tight",children:[y,b]}),e[18]=y,e[19]=b,e[20]=_):_=e[20];let A;e[21]!==_||e[22]!==h?(A=s.jsxs("div",{className:"flex items-center gap-3 px-3 py-2",children:[h,_]}),e[21]=_,e[22]=h,e[23]=A):A=e[23];let N;e[24]!==i.is_employer||e[25]!==a||e[26]!==f||e[27]!==r.isPending?(N=i.is_employer?s.jsx(D,{variant:"outline",size:"lg",asChild:!0,className:"mt-3 w-full shadow-none",children:s.jsxs(be,{href:P.href,target:"_blank",rel:"noreferrer",navigationId:P.navigationId,navigationType:"cta",placement:"app_header_mobile",onClick:d,children:[s.jsx(u,{}),P.label,s.jsx(_e,{className:"size-3.5 opacity-60"})]})}):s.jsxs(s.Fragment,{children:[r.isPending?s.jsx("div",{className:"mt-3 h-10 w-full animate-pulse rounded-xl bg-muted","aria-busy":"true"}):f&&!f.is_complete?s.jsx(D,{variant:"brandAccent",size:"lg",asChild:!0,className:"mt-3 w-full shadow-none",children:s.jsxs($,{to:"/onboarding",search:{mode:"guided"},navigationId:"candidate_complete_profile",navigationType:"cta",placement:"app_header_mobile",onClick:()=>{le("onboarding_reminder_clicked",{placement:"menu"}),d()},children:[s.jsx(R,{}),"Hoà n thiá»n há» sÆ¡ · ",f.progress_percent,"%"]})}
1):null,s.jsx("nav",{className:"mt-6 space-y-5","aria-label":"Äiá»u hưá»ng ứng dụng",children:ze.map(M=>s.jsxs("div",{children:[s.jsx("p",{className:"px-3 font-medium text-muted-foreground text-xs",children:M.label}),s.jsx("div",{className:"mt-1 space-y-0.5",children:M.children.map(z=>s.jsx(Re,{item:z,isActive:O(a,z.to,z.match),onClick:d},z.id))})]},M.id))}),s.jsxs("div",{className:"mt-5",children:[s.jsx("p",{className:"px-3 font-medium text-muted-foreground text-xs",children:"Tà i khoản"}),s.jsx("div",{className:"mt-1 space-y-0.5",children:[L,Ge].map(M=>s.jsx($e,{item:M,onClick:d},M.id))})]})]}),e[24]=i.is_employer,e[25]=a,e[26]=f,e[27]=r.isPending,e[28]=N):N=e[28];let k;e[29]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(re,{className:"size-4"}),e[29]=k):k=e[29];let v;e[30]!==C?(v=s.jsx("div",{className:"mt-auto border-border border-t pt-4",children:s.jsxs("button",{type:"button",onClick:C,className:"flex min-h-11 w-full items-center gap-3 rounded-lg px-3 py-2.5 text-destructive text-sm transition-colors hover:bg-destructive/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[k,"ÄÄng xuất"]})}),e[30]=C,e[31]=v):v=e[31];let j;e[32]!==A||e[33]!==N||e[34]!==v?(j=s.jsxs(Ae,{side:"right",className:"w-full overflow-y-auto border-border bg-white px-3 text-foreground shadow-xl dark:bg-neutral-950 sm:max-w-sm",children:[I,s.jsxs("div",{className:"flex flex-1 flex-col px-1 pb-3",children:[A,N,v]})]}),e[32]=A,e[33]=N,e[34]=v,e[35]=j):j=e[35];let S;return e[36]!==o||e[37]!==j?(S=s.jsx("div",{className:"lg:hidden",children:s.jsxs(Ce,{open:o,onOpenChange:l,children:[T,j]})}),e[36]=o,e[37]=j,e[38]=S):S=e[38],S}function Re(t){const e=w.c(15),{item:a,isActive:o,onClick:l}=t,n=a.to,i=`app_${a.id}`,r=o?"page":void 0,f=o&&"bg-muted font-semibold";let c;e[0]!==f?(c=E(ue,f),e[0]=f,e[1]=c):c=e[1];const p=a.icon,u=o&&"text-foreground";let m;e[2]!==u?(m=E("size-4 text-muted-foreground",u),e[2]=u,e[3]=m):m=e[3];let d;e[4]!==a.icon||e[5]!==m?(d=s.jsx(p,{className:m}),e[4]=a.icon,e[5]=m,e[6]=d):d=e[6];let x;return e[7]!==a.label||e[8]!==a.to||e[9]!==l||e[10]!==i||e[11]!==r||e[12]!==c||e[13]!==d?(x=s.jsxs($,{to:n,navigationId:i,navigationType:"nav",placement:"app_header_mobile",onClick:l,"aria-current":r,className:c,children:[d,a.label]}),e[7]=a.label,e[8]=a.to,e[9]=l,e[10]=i,e[11]=r,e[12]=c,e[13]=d,e[14]=x):x=e[14],x}function $e(t){const e=w.c(8),{item:a,onClick:o}=t,l=a.icon;let n;e[0]!==l?(n=s.jsx(l,{className:"size-4 text-muted-foreground"}),e[0]=l,e[1]=n):n=e[1];let i;return e[2]!==a.label||e[3]!==a.navigationId||e[4]!==a.to||e[5]!==o||e[6]!==n?(i=s.jsxs($,{to:a.to,navigationId:a.navigationId,navigationType:"nav",placement:"app_header_mobile",onClick:o,className:ue,children:[n,a.label]}),e[2]=a.label,e[3]=a.navigationId,e[4]=a.to,e[5]=o,e[6]=n,e[7]=i):i=e[7],i}function Fe(){const t=w.c(55),e=te(),a=se(),l=ae().data;let n;t[0]!==a.profile.first_name||t[1]!==a.profile.last_name?(n=ie({firstName:a.profile.first_name,lastName:a.profile.last_name}),t[0]=a.profile.first_name,t[1]=a.profile.last_name,t[2]=n):n=t[2];const i=n,r=`Má» menu tà i khoản cá»§a ${i}`;let f;t[3]!==a.profile.avatar_url||t[4]!==a.profile.first_name||t[5]!==a.profile.last_name?(f=s.jsx(U,{firstName:a.profile.first_name,lastName:a.profile.last_name,avatarUrl:a.profile.avatar_url,fetchImgSize:100,fallbackBorderSize:0}),t[3]=a.profile.avatar_url,t[4]=a.profile.first_name,t[5]=a.profile.last_name,t[6]=f):f=t[6];let c;t[7]!==r||t[8]!==f?(c=s.jsx(Y,{asChild:!0,children:s.jsx(D,{variant:"ghost",size:"icon",className:"text-white hover:bg-brand-accent/10 focus-visible:border-brand-accent/40 focus-visible:ring-brand-accent/40 data-[state=open]:bg-brand-accent/10","aria-label":r,children:f})}),t[7]=r,t[8]=f,t[9]=c):c=t[9];let p;t[10]!==a.profile.avatar_url||t[11]!==a.profile.first_name||t[12]!==a.profile.last_name?(p=s.jsx(U,{className:"size-9 border-0",firstName:a.profile.first_name,lastName:a.profile.last_name,avatarUrl:a.profile.avatar_url,fetchImgSize:100,fallbackBorderSize:0}),t[10]=a.profile.avatar_url,t[11]=a.profile.first_name,t[12]=a.profile.last_name,t[13]=p):p=t[13];let u;t[14]!==i?(u=s.jsx("p",{className:"truncate font-medium text-sm",children:i}),t[14]=i,t[15]=u):u=t[15];let m;t[16]!==a.username?(m=ne(a.username),t[16]=a.username,t[17]=m):m=t[17];let d;t[18]!==m?(d=s.jsx("p",{className:"mt-0.5 truncate text-muted-foreground text-xs",children:m}),t[18]=m,t[19]=d):d=t[19];let x;t[20]!==u||t[21]!==d?(x=s.jsxs("div",{className:"min-w-0 flex-1 leading-tight",children:[u,d]}),t[20]=u,t[21]=d,t[22]=x):x=t[22];let C;t[23]!==p||t[24]!==x?(C=s.jsx(ke,{className:"p-2 font-normal",children:s.jsxs("div",{className:"flex items-center gap-3 text-left",children:[p,x]})}),t[23]=p,t[24]=x,t[25]=C):C=t[25];let T;t[26]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(B,{}),t[26]=T):T=t[26];let I;
1t[27]!==e||t[28]!==l?(I=l&&!l.is_complete?s.jsxs(V,{className:"rounded-lg bg-[#eaf5e3] px-2.5 py-2 text-[#176b45]",onClick:()=>{le("onboarding_reminder_clicked",{placement:"menu"}),e({to:"/onboarding",search:{mode:"guided"}})},children:[s.jsx(R,{}),s.jsx("span",{className:"flex-1",children:"Hoà n thiá»n há» sÆ¡"}),s.jsxs("span",{className:"text-xs",children:[l.progress_percent,"%"]})]}):null,t[27]=e,t[28]=l,t[29]=I):I=t[29];let h;t[30]!==e?(h=()=>e({to:"/my/profile"}),t[30]=e,t[31]=h):h=t[31];let y;t[32]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(W,{}),t[32]=y):y=t[32];let g;t[33]!==h?(g=s.jsxs(V,{className:"rounded-lg px-2.5 py-2",onClick:h,children:[y,"Há» sÆ¡ & CV"]}),t[33]=h,t[34]=g):g=t[34];let b;t[35]!==a.is_employer||t[36]!==e?(b=a.is_employer?null:s.jsxs(V,{className:"rounded-lg px-2.5 py-2",onClick:()=>e({to:"/my/subscription"}),children:[s.jsx(Te,{}),"Gói cá»§a tôi"]}),t[35]=a.is_employer,t[36]=e,t[37]=b):b=t[37];let _;t[38]!==I||t[39]!==g||t[40]!==b?(_=s.jsxs(Se,{className:"space-y-1",children:[I,g,b]}),t[38]=I,t[39]=g,t[40]=b,t[41]=_):_=t[41];let A;t[42]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(B,{}),t[42]=A):A=t[42];let N;t[43]!==e?(N=()=>{window.confirm("Bạn có chắc muá»n ÄÄng xuất?")&&e({to:"/logout"})},t[43]=e,t[44]=N):N=t[44];let k;t[45]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(re,{}),t[45]=k):k=t[45];let v;t[46]!==N?(v=s.jsxs(V,{className:"rounded-lg px-2.5 py-2",variant:"destructive",onClick:N,children:[k,"ÄÄng xuất"]}),t[46]=N,t[47]=v):v=t[47];let j;t[48]!==_||t[49]!==v||t[50]!==C?(j=s.jsxs(Z,{className:"w-64 rounded-xl p-1.5 shadow-lg",side:"bottom",align:"end",sideOffset:8,children:[C,T,_,A,v]}),t[48]=_,t[49]=v,t[50]=C,t[51]=j):j=t[51];let S;return t[52]!==j||t[53]!==c?(S=s.jsxs(X,{children:[c,j]}),t[52]=j,t[53]=c,t[54]=S):S=t[54],S}function He(){const t=w.c(10);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:Ke},t[0]=e):e=t[0];const a=Oe(e);let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(G,{to:"/","aria-label":"Vá» trang chá»§ JoFi AI",className:"flex w-fit items-center rounded-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-accent/40",children:s.jsx(we,{color:"white",width:80,height:21,className:"h-auto w-20"})}),t[1]=o):o=t[1];let l;t[2]!==a?(l=s.jsx(De,{pathname:a}),t[2]=a,t[3]=l):l=t[3];let n;t[4]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"hidden lg:block",children:s.jsx(Fe,{})}),t[4]=n):n=t[4];let i;t[5]!==a?(i=s.jsxs("div",{className:"flex items-center justify-end gap-1.5",children:[n,s.jsx(Ue,{pathname:a})]}),t[5]=a,t[6]=i):i=t[6];let r;return t[7]!==l||t[8]!==i?(r=s.jsx("header",{className:"sticky top-0 z-40 border-brand-accent/15 border-b bg-brand-ink/90 backdrop-blur-xl",children:s.jsxs(Ee,{nestedClassName:"grid h-12 grid-cols-[1fr_auto] items-center gap-3 lg:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)]",children:[o,l,i]})}),t[7]=l,t[8]=i,t[9]=r):r=t[9],r}function Ke(t){return t.pathname}function We(){const t=w.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(He,{}),t[0]=e):e=t[0];let a;return t[1]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsxs("div",{className:"flex min-h-svh flex-col bg-background-alt",children:[e,s.jsx("main",{className:"relative flex-1",children:s.jsx(Me,{})})]}),t[1]=a):a=t[1],a}export{We as component};
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.