PageSourceSearch

https://www.himyro.com/_next/static/chunks/app/intel/page-bffff53c8309cef2.js

js himyro.com collected 2026-09-24 14:45:16 UTC 66,421 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[173],{698:function(e,l,t){Promise.resolve().then(t.t.bind(t,6743,23)),Promise.resolve().then(t.bind(t,385)),Promise.resolve().then(t.bind(t,79654)),Promise.resolve().then(t.t.bind(t,87994,23)),Promise.resolve().then(t.t.bind(t,86199,23)),Promise.resolve().then(t.t.bind(t,32168,23)),Promise.resolve().then(t.t.bind(t,13551,23)),Promise.resolve().then(t.bind(t,29683)),Promise.resolve().then(t.bind(t,62052))},79654:function(e,l,t){"use strict";t.d(l,{IntelSurface:function(){return eP}});var n=t(57437),i=t(86942),s=t(2265),a=t(99376),o=t(71632),r=t(20268),c=t(16329),d=t(64948),u=t(6548),m=t(29827),h=t(2141),p=t(20998),v=t(89700),x=t(48638);let y={velocity:{key:"velocity",label:"Hiring velocity"},open:{key:"open",label:"Open roles"},recency:{key:"recency",label:"Most recently updated"},alpha:{key:"alpha",label:"A → Z"}},f=[y.velocity,y.open,y.recency,y.alpha];function j(e){return"".concat("tm.sort.").concat(e)}var b=t(49601),g=t(83777),k=t(1831),N=t(34161),_=t(27648),C=t(69317),w=t(76858);t(39255);let S=["A personalised plan built from the exact gaps between your CV and the role you want","A levelled path to close them — upskill or cross-skill, step by step","One human checkpoint, so a real person looks at your plan, not just the algorithm"];function M(){return(0,n.jsx)("section",{className:"tm-intel-plan","aria-labelledby":"intel-plan-title",children:(0,n.jsxs)("div",{className:"tm-intel-plan-card",children:[(0,n.jsxs)("div",{className:"tm-intel-plan-head",children:[(0,n.jsx)("span",{className:"tm-intel-plan-icon","aria-hidden":!0,children:(0,n.jsx)(C.Z,{size:22,strokeWidth:1.5})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"tm-intel-plan-kicker",children:"When you're ready to move"}),(0,n.jsx)("h2",{id:"intel-plan-title",children:"The Personalised Job-Switch Plan."})]})]}),(0,n.jsx)("p",{className:"tm-intel-plan-summary",children:"A guided path to make you the obvious hire for the roles you want. We don't place you — we close the gap so you can. Guidance continues whether or not the job changes."}),(0,n.jsx)("ul",{className:"tm-intel-plan-points",children:S.map(e=>(0,n.jsx)("li",{children:e},e))}),(0,n.jsxs)("div",{className:"tm-intel-plan-foot",children:[(0,n.jsxs)("p",{className:"tm-intel-plan-price",children:[(0,n.jsx)("strong",{children:"₹199"})," / month ",(0,n.jsx)("span",{children:"engagement"})]}),(0,n.jsxs)(_.default,{href:"/signup",className:"tm-intel-plan-cta",children:["Start with your free score ",(0,n.jsx)(w.Z,{size:16,strokeWidth:1.5,"aria-hidden":!0})]})]})]})})}var L=t(46039);function F(e){return e>=70?"strong":e>=40?"building":"gap"}var R=t(29170),T=t(25901),q=t(99944),I=t(47288),z=t(96843);function E(e){let{data:l,w:t=64,h:i=22,color:s="var(--tm-accent)"}=e;if(!l.length)return null;let a=Math.min(...l,0),o=Math.max(Math.max(...l,1)-a,1),r=t/Math.max(l.length-1,1),c=l.map((e,l)=>[l*r,i-(e-a)/o*(i-4)-2]),d=c.map((e,l)=>(0===l?"M":"L")+e[0].toFixed(1)+" "+e[1].toFixed(1)).join(" "),u=d+" L ".concat(t," ").concat(i," L 0 ").concat(i," Z"),m=c[c.length-1];return(0,n.jsxs)("svg",{width:t,height:i,viewBox:"0 0 ".concat(t," ").concat(i),"aria-hidden":"true",children:[(0,n.jsx)("path",{d:u,fill:s,fillOpacity:"0.08"}),(0,n.jsx)("path",{d:d,fill:"none",stroke:s,strokeWidth:"1.5",strokeLinejoin:"round",strokeLinecap:"round"}),(0,n.jsx)("circle",{cx:m[0],cy:m[1],r:"2",fill:s})]})}function O(e){let{name:l}=e,t=(0,R._5)(l);return(0,n.jsx)("div",{className:"tm-intel-co-logo",style:{background:(0,R.a7)(t,.15),color:t,borderColor:(0,R.a7)(t,.35)},children:(0,R.GA)(l)})}function Z(e){let{co:l,isActive:t,onClick:i}=e,s=l.velocity>=0;return(0,n.jsxs)("div",{className:"tm-intel-co-row"+(t?" is-active":""),role:"button",tabIndex:0,onClick:i,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),i())},"aria-pressed":t,children:[(0,n.jsx)(O,{name:l.name}),(0,n.jsxs)("div",{className:"tm-intel-co-body",children:[(0,n.jsxs)("div",{className:"tm-intel-co-name",children:[(0,n.jsx)(T.O,{company:l.name}),l.industry?(0,n.jsx)("span",{className:"tm-intel-co-industry",children:l.industry}):null]}),(0,n.jsxs)("div",{className:"tm-intel-co-meta",children:[(0,n.jsx)("span",{className:"tm-intel-co-updated",children:l.lastSeenIso?"scraped ".concat((0,R.XF)(l.lastSeenIso)):"scrape date n/a"}),(0,n.jsx)("span",{className:"tm-intel-co-sep",children:"\xb7"}),(0,n.jsx)("span",{children:R.Wb[l.country]||l.country||"—"})]})]}),(0,n.jsxs)("div",{className:"tm-intel-co-spark",children:[(0,n.jsx)(E,{data:l.sparks}),(0,n.jsxs)("div",{className:"tm-intel-co-velocity "+(s?"is-up":"is-down"),children:[s?"↑":"↓"," ",Math.abs(l.velocity),"/wk"]})]}
1),(0,n.jsxs)("div",{className:"tm-intel-co-roles",children:[l.open,(0,n.jsx)("span",{className:"tm-intel-co-roles-lab",children:"open"})]})]})}function A(e){let{g:l,isActive:t,onClick:i}=e;return(0,n.jsxs)("button",{type:"button",className:"tm-intel-co-row"+(t?" is-active":""),onClick:i,"aria-pressed":t,children:[(0,n.jsx)("div",{className:"tm-intel-co-logo tm-intel-co-logo-accent",children:"industry"===l.kind?"\xa7":"◎"}),(0,n.jsxs)("div",{className:"tm-intel-co-body",children:[(0,n.jsx)("div",{className:"tm-intel-co-name",children:(0,n.jsx)("span",{children:l.name})}),(0,n.jsx)("div",{className:"tm-intel-co-meta",children:(0,n.jsx)("span",{children:"industry"===l.kind?"category":"metro"})})]}),(0,n.jsxs)("div",{className:"tm-intel-co-roles",children:[(0,L.CZ)(l.count),(0,n.jsx)("span",{className:"tm-intel-co-roles-lab",children:"jobs"})]})]})}function K(e){let{co:l,onClick:t}=e;return(0,n.jsxs)("div",{className:"tm-intel-co-row",role:"button",tabIndex:0,onClick:t,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t())},children:[(0,n.jsx)(O,{name:l.company_name}),(0,n.jsxs)("div",{className:"tm-intel-co-body",children:[(0,n.jsx)("div",{className:"tm-intel-co-name",children:(0,n.jsx)(T.O,{company:l.company_name})}),(0,n.jsxs)("div",{className:"tm-intel-co-meta",children:[(0,n.jsx)("span",{className:"tm-intel-co-updated",children:l.last_seen_at?"scraped ".concat((0,R.XF)(l.last_seen_at)):"scrape date n/a"}),(0,n.jsx)("span",{className:"tm-intel-co-sep",children:"\xb7"}),(0,n.jsx)("span",{children:R.Wb[l.location_country||""]||l.location_country||"—"})]})]}),(0,n.jsxs)("div",{className:"tm-intel-co-roles",children:[l.open_count,(0,n.jsx)("span",{className:"tm-intel-co-roles-lab",children:"open"})]}),(0,n.jsx)("span",{className:"tm-intel-co-go","aria-hidden":"true",children:"→"})]})}function V(e){let{role:l}=e;return(0,n.jsxs)("div",{className:"tm-industry-role-row",children:[(0,n.jsx)("strong",{children:l.name}),(0,n.jsxs)("span",{children:[(0,L.CZ)(l.count)," openings"]})]})}function P(e){let{authed:l,hasCv:t,fit:i,onCheckFit:s}=e;if(!l)return(0,n.jsxs)("button",{type:"button",className:"tm-intel-fit-locked",title:"Check your fit against this role",onClick:s,children:[(0,n.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,n.jsx)("rect",{x:"3",y:"11",width:"18",height:"11",rx:"2"}),(0,n.jsx)("path",{d:"M7 11V7a5 5 0 0 1 10 0v4"})]}),"check fit"]});if(!t||!i)return(0,n.jsx)("button",{type:"button",className:"tm-intel-fit-muted","aria-label":"Check fit for this role",onClick:s,children:"—"});let a=F(i.overlap_score);return(0,n.jsxs)("button",{type:"button",className:"tm-intel-fit-pill is-".concat(a),title:"".concat(i.matched_count," of ").concat(i.total_skills," required skills matched"),onClick:s,children:[Math.round(i.overlap_score),"%",(0,n.jsxs)("span",{className:"tm-intel-fit-skills",children:["\xb7 ",i.matched_count,"/",i.total_skills," skills"]})]})}function Q(e){let{job:l,authed:t=!1,hasCv:i=!1,fit:s=null,onCheckFit:a,saved:o=!1,onSave:r,onSignup:c,onTailor:d}=e;return(0,n.jsx)(I.Bv,{variant:"compact",data:(0,z.l5)(l,s?{matched_skills:s.matched_skills,total_skills:s.total_skills}:null),onOpen:a,fit:(0,n.jsx)(P,{authed:t,hasCv:i,fit:s,onCheckFit:a}),actions:(0,n.jsx)(q.W,{status:t?o?"saved":"rest":"signed-out",size:"sm",label:l.title,onSave:r,onSignUp:c,onTailor:d})})}function B(){return(0,n.jsxs)("div",{className:"tm-intel-empty",children:[(0,n.jsxs)("svg",{className:"tm-intel-empty-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,n.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,n.jsx)("path",{d:"m21 21-4.3-4.3"})]}),"No matches. Try removing a filter or another query."]})}function J(e){let{variant:l="company"}=e;return"job"===l?(0,n.jsxs)("div",{className:"tm-intel-job-row tm-intel-skel",children:[(0,n.jsxs)("div",{className:"tm-intel-job-head",children:[(0,n.jsx)("div",{className:"tm-intel-skel-bar tm-intel-skel-pulse",style:{width:"60%",height:14}}),(0,n.jsx)("div",{className:"tm-intel-skel-bar tm-intel-skel-pulse",style:{width:72,height:18,borderRadius:10}})]}),(0,n.jsx)("div",{className:"tm-intel-job-sub",style:{marginTop:8},children:(0,n.jsx)("div",{className:"tm-intel-skel-bar tm-intel-skel-pulse",style:{width:"40%",height:11}})}),(0,n.jsxs)("div",{className:"tm-intel-job-skills",style:{marginTop:10},children:[(0,n.jsx)("span",{className:"tm-intel-skel-chip tm-intel-skel-pulse"}),(0,n.jsx)("span",{className:"tm-intel-skel-chip tm-intel-skel-pulse"}),(0,n.jsx)("span",{className:"tm-intel-skel-chip tm-intel-skel-pulse"})]})]}):(0,n.jsxs)("div",{className:"tm-intel-co-row is-static tm-intel-skel","aria-hidden":"true",children:[(0,n.jsx)("div",{className:"tm-intel-co-logo tm-intel-skel-logo tm-intel-skel-pulse"}),(0,n.jsxs)("div",{className:"tm-intel-co-body",children:[(0,n.jsx)("div",{className:"tm-intel-skel-bar tm-intel-skel-pulse",style:{width:"55%",height:13}}),(0,n.jsx)("div",{className:"tm-intel-skel-bar tm-intel-skel-pulse",style:{width:"35%",height:11,marginTop:6}})]}),(0,n.jsx)("div",{className:"tm-intel-co-spark",children:(0,n.jsx)("div",{className:"tm-intel-skel-spark tm-intel-skel-pulse"})}),(0,n.jsx)("div",{className:"tm-intel-co-roles",children:(0,n.jsx)("div",{className:"tm-intel-skel-bar tm-intel-skel-pulse",style:{width:30,height:18}})})]})}
1function D(e){let{count:l=8,variant:t="company"}=e;return(0,n.jsx)(n.Fragment,{children:Array.from({length:l}).map((e,l)=>(0,n.jsx)(J,{variant:t},l))})}function W(e){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(U,{tab:e.tab,onTab:e.onTab,counts:e.counts,sort:e.sort,onSortChange:e.onSortChange}),(0,n.jsx)(G,{...e})]})}function U(e){let{tab:l,onTab:t,counts:i,sort:a,onSortChange:o}=e,r=[{id:"companies",label:"Companies",n:i.companies},{id:"industries",label:"Industries",n:i.industries},{id:"cities",label:"Cities",n:i.cities}],[c,d]=(0,s.useState)(!1),u=(0,s.useRef)(null);return(0,s.useEffect)(()=>{if(c)return document.addEventListener("mousedown",e),document.addEventListener("keydown",l),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",l)};function e(e){var l;(null===(l=u.current)||void 0===l?void 0:l.contains(e.target))||d(!1)}function l(e){"Escape"===e.key&&d(!1)}},[c]),(0,n.jsxs)("div",{className:"tm-intel-tabs",children:[r.map(e=>(0,n.jsxs)("button",{type:"button",className:"tm-intel-tab"+(l===e.id?" is-active":""),onClick:()=>t(e.id),children:[e.label,(0,n.jsx)("span",{className:"tm-intel-tab-badge",children:(0,L.CZ)(e.n)})]},e.id)),"companies"===l?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"tm-intel-spacer"}),(0,n.jsx)("span",{className:"tm-intel-sort-lbl",children:"Sort by"}),(0,n.jsxs)("div",{className:"tm-intel-sort-pill-wrap",ref:u,children:[(0,n.jsxs)("button",{type:"button",className:"tm-intel-sort-pill",onClick:()=>d(e=>!e),"aria-haspopup":"listbox","aria-expanded":c,children:[y[a].label,(0,n.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M2 4l3 3 3-3z"})})]}),c?(0,n.jsx)("div",{className:"tm-intel-sort-menu",role:"listbox",children:f.map(e=>(0,n.jsx)("button",{type:"button",role:"option","aria-selected":a===e.key,className:"tm-intel-sort-menu-item"+(a===e.key?" is-active":""),onClick:()=>{o(e.key),d(!1)},children:e.label},e.key))}):null]})]}):null]})}function G(e){var l;let{tab:t,companies:i,industries:s,cities:a,activeCo:o,onActiveCo:r,activeGroup:c,onActiveGroup:d,groupCompanies:u,isGroupCompaniesLoading:m,onCompanyJump:h,jobsForActive:p,jobsForActiveTotal:v,activeCompanyName:x,isAnalyticsLoading:y,isFiltering:f,isOpenRolesLoading:j,globalSearch:b}=e,g=(y||f)&&!i.length,k=!b.isActive&&"industries"===t,N=!b.isActive&&"cities"===t,_=c&&null!==(l=e.industryRoles[c])&&void 0!==l?l:[];return(0,n.jsxs)("div",{className:"tm-intel-split",children:[(0,n.jsxs)("div",{className:"tm-intel-panel",children:[(0,n.jsxs)("div",{className:"tm-intel-panel-head",children:[(0,n.jsx)("span",{className:"tm-intel-panel-e",children:b.isActive?(0,n.jsxs)(n.Fragment,{children:["Companies matching ",(0,n.jsxs)("b",{children:["“",e.globalSearch.hits.length,"”"]})]}):"companies"===t?(0,n.jsxs)(n.Fragment,{children:["Top companies ",(0,n.jsxs)("b",{children:["\xb7 ",i.length]})]}):"industries"===t?(0,n.jsxs)(n.Fragment,{children:["Industries ",(0,n.jsxs)("b",{children:["\xb7 ",s.length]})]}):(0,n.jsxs)(n.Fragment,{children:["Cities ",(0,n.jsxs)("b",{children:["\xb7 ",a.length]})]})}),(0,n.jsx)("div",{className:"tm-intel-spacer"}),(0,n.jsx)("span",{className:"tm-intel-panel-meta",children:f?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"tm-intel-panel-meta-spin"})," filtering…"]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"tm-intel-panel-meta-ok",children:"●"})," synced \xb7"," ",e.latestBatchIso?"batch ".concat((0,R.XF)(e.latestBatchIso)):"live mirror"]})})]}),g?(0,n.jsx)(D,{count:8,variant:"company"}):"companies"===t?i.length?i.slice(0,12).map(e=>(0,n.jsx)(Z,{co:e,isActive:e.id===o,onClick:()=>r(e.id)},e.id)):(0,n.jsx)(B,{}):"industries"===t?s.length?s.slice(0,50).map(e=>(0,n.jsx)(A,{g:e,isActive:e.name===c,onClick:()=>d(e.name)},e.name)):(0,n.jsx)(B,{}):a.length?a.slice(0,50).map(e=>(0,n.jsx)(A,{g:e,isActive:e.name===c,onClick:()=>d(e.name)},e.name)):(0,n.jsx)(B,{})]}),(0,n.jsxs)("div",{className:"tm-intel-panel",children:[(0,n.jsxs)("div",{className:"tm-intel-panel-head",children:[(0,n.jsx)("span",{className:"tm-intel-panel-e",children:b.isActive?(0,n.jsxs)(n.Fragment,{children:["Search hits ",(0,n.jsxs)("b",{children:["\xb7 ",b.hits.length]})]}):k?c?(0,n.jsxs)(n.Fragment,{children:["Roles available \xb7 ",(0,n.jsx)("b",{children:c})]}):(0,n.jsx)(n.Fragment,{children:"Roles available"}):N?c?(0,n.jsxs)(n.Fragment,{children:["Companies hiring \xb7 ",(0,n.jsx)("b",{children:c})]}):(0,n.jsx)(n.Fragment,{children:"Companies hiring"}):x?(0,n.jsxs)(n.Fragment,{children:["Open roles \xb7 ",(0,n.jsx)("b",{children:x})]}):(0,n.jsx)(n.Fragment,{children:"Open roles"})}),(0,n.jsx)("div",{className:"tm-intel-spacer"}),(0,n.jsx)("span",{className:"tm-intel-panel-meta",children:b.isActive?b.isLoading?"searching…":"".concat(b.hits.length," hits"):k?"".concat(_.length," role families"):N?m?"loading…":"".concat(u.length," hiring"):"".concat(p.length," of ").concat(v)})]}),k?_.length?_.map(e=>(0,n.jsx)(V,{role:e},e.name)):(0,n.jsx)(B,{}):N?m&&!u.length?(0,n.jsx)(D,{count:6,variant:"company"}):u.length?u.map(e=>(0,n.jsx)(K,{co:e,onClick:()=>h(e.company_name)},e.company_name)):(0,n.jsx)(B,{}):b.isActive?b.isLoading&&!b.hits.length?(0,n.jsx)(D,{count:6,variant:"job"}):b.hits.length?b.hits.map(e=>{var l;return(0,n.jsxs)("div",{className:"tm-intel-global-hit-row",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"tm-intel-global-hit-title",children:e.job_title}),(0,n.jsx)("div",{className:"tm-intel-global-hit-co",children:null!==(l=e.company_name)&&void 0!==l?l:"—"})]}),(0,n.jsx)("div",{className:"tm-intel-global-hit-meta",children:[e.city,e.mode].filter(
1Boolean).join(" \xb7 ")})]},e.job_id)}):b.closestMatch.loading?(0,n.jsx)(D,{count:4,variant:"job"}):b.closestMatch.cards.length?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"tm-intel-closest-note",children:["No exact matches. Closest real openings",b.closestMatch.relaxedLocation?" (nearest location)":"",":"]}),b.closestMatch.cards.map(e=>{var l;return(0,n.jsxs)("div",{className:"tm-intel-global-hit-row",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"tm-intel-global-hit-title",children:e.job_title}),(0,n.jsx)("div",{className:"tm-intel-global-hit-co",children:null!==(l=e.company_name)&&void 0!==l?l:"—"})]}),(0,n.jsx)("div",{className:"tm-intel-global-hit-meta",children:[e.city,e.mode].filter(Boolean).join(" \xb7 ")})]},e.job_id)})]}):(0,n.jsx)(B,{}):j&&!p.length?(0,n.jsx)(D,{count:4,variant:"job"}):p.length?(0,n.jsx)("div",{className:"tm-intel-role-cards",children:p.map(l=>{var t;return(0,n.jsx)(Q,{job:l,authed:e.authed,hasCv:e.hasCv,fit:null!==(t=e.fits.get(l.id))&&void 0!==t?t:null,onCheckFit:()=>e.onCheckFit(l,e.activeCompanyName),saved:e.savedJobIds.has(l.id),onSave:()=>e.onSaveJob(l.id),onSignup:()=>e.onSignup(l.id),onTailor:()=>e.onTailor(l.id)},l.id)})}):(0,n.jsx)(B,{}),e.authed?null:(0,n.jsx)(H,{})]})]})}function H(){let e=(0,p.O)();return(0,n.jsxs)("div",{className:"tm-intel-locked-cta",children:[(0,n.jsxs)("div",{className:"tm-intel-locked-body",children:[(0,n.jsx)("div",{className:"tm-intel-locked-t",children:"See your fit against every role."}),(0,n.jsx)("div",{className:"tm-intel-locked-s",children:"Create your profile to match, track, and export."})]}),(0,n.jsx)(_.default,{href:"/signup",className:"tm-intel-locked-btn",onClick:l=>{l.metaKey||l.ctrlKey||l.shiftKey||1===l.button||(l.preventDefault(),e.open({surface:"manual",source:"intel_locked_cta"}))},children:"Create your profile →"})]})}var Y=t(3548),X=t(39019);function $(e){var l;let{open:t,job:i,companyName:c,token:u,hasCv:m,fit:h,onClose:v}=e,x=(0,a.useRouter)(),y=(0,p.O)(),f=(0,s.useRef)(null),[j,b]=(0,s.useState)(null),[g,k]=(0,s.useState)(!1),[N,_]=(0,s.useState)(null),[C,w]=(0,s.useState)(!1),S=!!u,M=null!==(l=null==i?void 0:i.id)&&void 0!==l?l:"";(0,s.useEffect)(()=>{if(t)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e);function e(e){"Escape"===e.key&&v()}},[t,v]),(0,s.useEffect)(()=>{b(null),_(null),k(!1),w(!1),t&&i&&(0,Y.L9)("public_fit_drawer_opened",{job_id:i.id,company:null!=c?c:"",surface:"intel",authed:S?"1":"0",has_cv:m?"1":"0"})},[t,i,c,S,m]);let L=(0,o.useQuery)({queryKey:M?d.fK.skillGap(M):["skill-gap","none"],queryFn:()=>r.jobs.skillGap(u,M),enabled:t&&!!u&&m&&!!M,staleTime:6e5}),R=(0,s.useMemo)(()=>{var e,l,t;if(j)return{score:j.fit_pct,matchedCount:j.matched_count,totalSkills:j.total_skills,matchedSkills:j.matched_skills,missingSkills:j.missing_skills};let n=L.data,i=null!==(l=null!==(e=null==n?void 0:n.skills.filter(e=>!e.missing).map(e=>e.skill))&&void 0!==e?e:null==h?void 0:h.matched_skills)&&void 0!==l?l:[],s=null!==(t=null==n?void 0:n.skills.filter(e=>e.missing).map(e=>e.skill))&&void 0!==t?t:[];return h?{score:h.overlap_score,matchedCount:h.matched_count,totalSkills:h.total_skills,matchedSkills:i,missingSkills:s}:null},[h,L.data,j]);if(!t||!i)return null;async function T(e){if(i){k(!0),_(null),(0,Y.L9)("public_fit_cv_uploaded",{job_id:i.id,company:null!=c?c:"",surface:"intel",authed:"0",has_cv:"0"});try{let l=await r.publicCv.jobFitPreview(i.id,e);(0,X.uh)(e,l.cv_preview),b(l),(0,Y.L9)("public_fit_preview_shown",{job_id:i.id,company:null!=c?c:"",surface:"intel",authed:"0",has_cv:"1",fit_band:F(l.fit_pct)})}catch(e){_(e instanceof Error?e.message:"Could not check this role against your CV.")}finally{k(!1)}}}async function q(){if(i){if(!u){(0,Y.L9)("public_fit_signup_started",{job_id:i.id,company:null!=c?c:"",surface:"intel",authed:"0",has_cv:j?"1":"0"}),y.open({surface:"manual",source:"public_fit_preview",pendingJobId:i.id});return}w(!0),_(null);try{await r.jobs.saveJob(u,i.id),(0,Y.L9)("public_fit_save_tailor_clicked",{job_id:i.id,company:null!=c?c:"",surface:"intel",authed:"1",has_cv:m?"1":"0",fit_band:R?F(R.score):"gap"}),x.push("/cv?jobId=".concat(encodeURIComponent(i.id)))}catch(e){_(e instanceof Error?e.message:"Could not save this role.")}finally{w(!1)}}}let I=R?F(R.score):"gap",z=c?"".concat(i.title," at ").concat(c):i.title;return(0,n.jsx)("div",{className:"tm-intel-fit-drawer-backdrop",role:"presentation",onMouseDown:v,children:(0,n.jsxs)("aside",{className:"tm-intel-fit-drawer",role:"dialog","aria-modal":"true","aria-label":"Fit for ".concat(z),onMouseDown:e=>e.stopPropagation(),children:[(0,n.jsx)("button",{type:"button",className:"tm-intel-fit-drawer-close",onClick:v,"aria-label":"Close fit preview",children:"x"}),(0,n.jsxs)("div",{className:"tm-intel-fit-drawer-head",children:[(0,n.jsx)("span",{className:"tm-intel-fit-drawer-kicker",children:"Role fit"}),(0,n.jsx)("h3",{children:i.title}
1),(0,n.jsx)("p",{children:[c,i.city,i.mode].filter(Boolean).join(" - ")})]}),R?(0,n.jsxs)("div",{className:"tm-intel-fit-readout is-".concat(I),children:[(0,n.jsxs)("div",{className:"tm-intel-fit-score",children:[(0,n.jsxs)("strong",{children:[Math.round(R.score),"%"]}),(0,n.jsxs)("span",{children:[R.matchedCount," of ",R.totalSkills," listed skills"]})]}),(0,n.jsx)("div",{className:"tm-intel-fit-bar","aria-hidden":"true",children:(0,n.jsx)("div",{style:{width:"".concat(Math.max(0,Math.min(100,R.score)),"%")}})}),(0,n.jsx)(ee,{label:"You have",skills:R.matchedSkills,tone:"have"}),(0,n.jsx)(ee,{label:"To close",skills:R.missingSkills,tone:"missing"})]}):S&&!m?(0,n.jsxs)("div",{className:"tm-intel-fit-upload-state",children:[(0,n.jsx)("p",{children:"Upload your CV to check this role."}),(0,n.jsx)("button",{type:"button",className:"tm-intel-fit-primary",onClick:function(){i&&x.push(function(e){var l;let t=(null!==(l=e.jobId)&&void 0!==l?l:"").trim();if(!t)return"/cv?upload=1";let n=new URLSearchParams;return e.hasReplayableCv||n.set("upload","1"),n.set("jobId",t),"/cv?".concat(n.toString())}({jobId:i.id,hasReplayableCv:!1}))},children:"Upload CV for this role"})]}):S?(0,n.jsx)("div",{className:"tm-intel-fit-upload-state",children:(0,n.jsx)("p",{children:"No listed skill map is available for this role yet."})}):(0,n.jsxs)("div",{className:"tm-intel-fit-upload-state","data-source":"public_fit_preview",children:[(0,n.jsx)("input",{ref:f,type:"file",accept:".pdf,.docx,application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document",hidden:!0,onChange:e=>{var l;let t=null===(l=e.target.files)||void 0===l?void 0:l[0];t&&T(t),e.target.value=""}}),(0,n.jsx)("p",{children:"Drop in your CV to check this exact role."}),(0,n.jsx)("button",{type:"button",className:"tm-intel-fit-primary",disabled:g,onClick:()=>{var e;return null===(e=f.current)||void 0===e?void 0:e.click()},children:g?"Checking fit…":"Choose CV"})]}),N?(0,n.jsx)("p",{className:"tm-intel-fit-error",role:"alert",children:N}):null,(0,n.jsxs)("div",{className:"tm-intel-fit-actions",children:[(0,n.jsx)("button",{type:"button",className:"tm-intel-fit-primary",disabled:C||!R&&!S,onClick:()=>void q(),children:C?"Saving…":"Save + tailor CV"}),(0,n.jsx)("button",{type:"button",className:"tm-intel-fit-secondary",onClick:v,children:"Back to roles"})]})]})})}function ee(e){let{label:l,skills:t,tone:i}=e;return t.length?(0,n.jsxs)("div",{className:"tm-intel-fit-skills-block",children:[(0,n.jsx)("div",{className:"tm-intel-fit-skills-label",children:l}),(0,n.jsx)("div",{className:"tm-intel-fit-chip-row",children:t.slice(0,8).map(e=>(0,n.jsx)("span",{className:"tm-intel-fit-chip is-".concat(i),children:e},e))})]}):null}var el=t(89962);function et(e,l,t){switch(t){case"open":return l.open-e.open;case"recency":return e.ageSec-l.ageSec;case"alpha":return e.name.localeCompare(l.name);default:return l.velocity-e.velocity}}function en(){var e,l,t,i,f,_,C,w,S,L;let F=(0,a.useRouter)(),T=(0,a.useSearchParams)(),q=(0,g.Tu)(T),I=(0,s.useRef)(q),[z,E]=(0,s.useState)(q),[O,Z]=(0,s.useState)([]),A=T.get("industry"),[K,V]=(0,s.useState)(A?"industries":"companies"),[P,Q]=(0,s.useState)(null),[B,J]=(0,s.useState)(A),[D,U]=(0,s.useState)(0),[G,H]=(0,s.useState)(null),{sort:Y,setSort:X}=function(e){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"velocity",[t,n]=(0,s.useState)(l);return(0,s.useEffect)(()=>{try{let l=window.localStorage.getItem(j(e));l&&l in y&&n(l)}catch(e){}},[e]),{sort:t,setSort:(0,s.useCallback)(l=>{n(l);try{window.localStorage.setItem(j(e),l)}catch(e){}},[e])}}("intel","velocity");!function(){let e=(0,m.useQueryClient)();(0,s.useEffect)(()=>{let l=(0,h.e)(),t=l.channel("jobs-table-changes").on("postgres_changes",{event:"*",schema:"public",table:"jobs"},()=>{e.invalidateQueries({queryKey:["jobs-analytics"]}),e.invalidateQueries({queryKey:["jobs-analytics-public"]}),e.invalidateQueries({queryKey:["jobs-analytics-me"]})}).subscribe();return()=>{l.removeChannel(t)}},[e])}(),(0,s.useEffect)(()=>{let e=(0,g.Tu)(T);e!==I.current&&(I.current=e,E(e))},[T]);
1let[ee,en]=(0,s.useState)(null);(0,s.useEffect)(()=>{en((0,c.hP)())},[]);let es=!!ee,ea=(0,p.O)(),[eo,er]=(0,s.useState)(new Set),ec=e=>ea.open({surface:"intel_save",pendingJobId:null!=e?e:null}),{data:ed}=(0,o.useQuery)({queryKey:d.fK.profile(),queryFn:()=>r.users.me(ee),enabled:es,staleTime:6e5}),{data:eu}=(0,o.useQuery)({queryKey:d.fK.scores(),queryFn:()=>r.scores.me(ee),enabled:es,staleTime:3e5,retry:!1}),em=null!==(e=null==eu?void 0:eu.total_score)&&void 0!==e?e:null,eh=!!(null==ed?void 0:ed.has_cv),ep=(0,s.useMemo)(()=>{let e={};for(let l of O){let t=R.Nr[l];t&&(t.mode&&(e.locationMode=t.mode),t.country&&(e.locationCountry=t.country))}return e},[O]),ev=null!==(l=ep.locationCountry)&&void 0!==l?l:"",ex=null!==(t=ep.locationMode)&&void 0!==t?t:"",{data:ey,isLoading:ef,isFetching:ej}=(0,o.useQuery)({queryKey:d.fK.jobsAnalyticsPublic("","",ev,ex),queryFn:()=>(0,u.Xd)((0,u.PK)(["analytics_public","","",ev,ex]),6048e5,()=>r.jobs.analytics(void 0,ep)),staleTime:6048e5}),eb=function(e){var l,t,n;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=null!==(l=i.limit)&&void 0!==l?l:12,a=null!==(t=i.minLength)&&void 0!==t?t:2,c=(0,v.c)(e,200).trim(),u=c.length>=a,{data:m,isFetching:h}=(0,o.useQuery)({queryKey:d.fK.globalJobSearch(c,s),queryFn:()=>r.jobs.globalSearch(c,s),enabled:u,staleTime:6e4});return{query:e,debouncedQuery:c,isActive:u,isLoading:u&&h,hits:null!==(n=null==m?void 0:m.hits)&&void 0!==n?n:[]}}(z,{limit:12}),eg=function(e,l){var t,n;let i=e.trim(),{data:s,isFetching:a}=(0,o.useQuery)({queryKey:["jobGenFallback",i],queryFn:async()=>{let e=await (0,x.t)().catch(()=>null);return r.publicCv.searchJobs({query:i,turnstileToken:e})},enabled:l.enabled&&i.length>=2,staleTime:3e5,retry:!1});return{loading:l.enabled&&a,cards:null!==(t=null==s?void 0:s.cards)&&void 0!==t?t:[],relaxed:null!==(n=null==s?void 0:s.relaxed)&&void 0!==n?n:[]}}(z,{enabled:eb.isActive&&!eb.isLoading&&0===eb.hits.length}),{data:ek,isLoading:eN}=(0,o.useQuery)({queryKey:[...d.fK.jobsAtCompany(P,6),ev],queryFn:()=>r.jobs.listAtCompany(P,6,ev||null),enabled:!!P,staleTime:864e5}),e_=(0,s.useMemo)(()=>ey?ey.by_company.map(e=>{var l,t,n;let i=e.velocity_bins&&14===e.velocity_bins.length?e.velocity_bins:null,s=e.last_seen_at?new Date(e.last_seen_at).getTime():null;return{id:e.name,name:e.name,industry:null!==(l=e.industry)&&void 0!==l?l:"",country:null!==(t=e.country)&&void 0!==t?t:"",open:e.count,velocity:i?(0,el.d7)(i):(0,R.Rh)(e.name),sparks:null!=i?i:(0,R.iw)(e.name,e.count),ageSec:null!=s&&Number.isFinite(s)?Math.max(0,Math.floor((D-s)/1e3)):0,lastSeenIso:null!==(n=e.last_seen_at)&&void 0!==n?n:null}}):[],[ey,D]);(0,s.useEffect)(()=>{let e=()=>U(Date.now());e();let l=setInterval(e,3e4);return()=>clearInterval(l)},[]);let eC=(0,s.useMemo)(()=>{if(eb.isActive){let e=new Set(eb.hits.map(e=>(e.company_name||"").trim()).filter(Boolean));return e_.filter(l=>e.has(l.name)).slice().sort((e,l)=>et(e,l,Y))}return e_.slice().sort((e,l)=>et(e,l,Y))},[e_,eb.isActive,eb.hits,Y]);(0,s.useEffect)(()=>{!eC.length||P&&eC.find(e=>e.id===P)||Q(eC[0].id)},[eC,P]);let ew=(0,s.useMemo)(()=>ey?ey.by_industry.map(e=>({name:e.name,count:e.count,kind:"industry"})):[],[ey]),eS=null!==(i=null==ey?void 0:ey.industry_roles)&&void 0!==i?i:{},eM=(0,s.useMemo)(()=>ey?ey.by_location_city.filter(e=>"unknown"!==e.name.toLowerCase()).map(e=>({name:e.name,count:e.count,kind:"city"})):[],[ey]),eL="industries"===K?"industry":"cities"===K?"city":null;(0,s.useEffect)(()=>{if(!eL){J(null);return}let e="industry"===eL?ew:eM;!e.length||B&&e.find(e=>e.name===B)||J(e[0].name)},[eL,ew,eM,B]);let{data:eF,isLoading:eR}=(0,o.useQuery)({queryKey:d.fK.topCompaniesAt(eL,B),queryFn:()=>r.jobs.topCompaniesAt({kind:eL,name:B},8),enabled:"city"===eL&&!!B,staleTime:864e5}),eT=null!==(f=null==eF?void 0:eF.companies)&&void 0!==f?f:[],eq={companies:eC.length,industries:ew.length,cities:eM.length},eI=(0,s.useMemo)(()=>{var e,l;let t=null!==(e=eC.find(e=>e.id===P))&&void 0!==e?e:e_.find(e=>e.id===P);return null!==(l=null==t?void 0:t.name)&&void 0!==l?l:null},[eC,e_,P]),ez=(0,s.useMemo)(()=>{var e;return(null!==(e=null==ek?void 0:ek.jobs)&&void 0!==e?e:[]).map(e=>({id:e.job_id,title:e.job_title,skills:[],city:e.location_city||"—",country:e.location_country||"",mode:ei(e.location_mode),comp:null,ageMin:e.created_at?function(e,l){let t=Date.parse(e);if(Number.isNaN(t)||l<=0)return null;let n=Math.floor((l-t)/6e4);return n>0?n:null}(e.created_at,D):null}))},[ek,D]),eE=(0,s.useMemo)(()=>ez.map(e=>e.id),[ez]),{data:eO}=(0,o.useQuery)({queryKey:["intel_fit",ee,eE],queryFn:()=>r.jobs.fitBatch(ee,eE),enabled:es&&eh&&eE.length>0,staleTime:18e5}),eZ=(0,s.useMemo)(()=>{var e;let l=new Map;for(let t of null!==(e=null==eO?void 0:eO.fits)&&void 0!==e?e:[])l.set(t.job_id,{overlap_score:t.overlap_score,matched_skills:t.matched_skills,matched_count:t.matched_count,total_skills:t.total_skills});return l},[eO]),eA=(0,s.useRef)(!1);return(0,s.useEffect)(()=>{!eA.current&&(eA.current=!0,A&&F.replace("/intel",{scroll:!1}))},[A,F]),(0,n.jsxs)("div",{className:"tm-intel-page tm-page-enter",children:[es?(0,n.jsx)(k.c,{score:em,hasCv:eh}):(0,n.jsx)("h1",{className:"sr-only",children:"Live public job-market mirror"}),(0,n.jsx)(b.l,{variant:"intel",value:z,onValueChange:E,onSubmit:function(e){let l=(0,g.pS)(e);I.current=l,E(l),F.replace((0,g.f7)(l),{scroll:!1})},ariaLabel:"Search live jobs",placeholder:"e.g. staff infra \xb7 india \xb7 hybrid",chips:R.ei,activeChipIds:O,onToggleChip:function(e){Z(l=>l.includes(e)?l.filter(l=>l!==e):[...R.gC.includes(e)?l.filter(e=>!R.gC.includes(e)):l,e])},chipLabel:"Quick filters",enableShortcut:!0}),(0,n.jsx)(N.m,{industries:null!==(_=null==ey?void 0:ey.by_industry)&&void 0!==_?_:[],activeIndustry:"industries"===K?B:null,isLoading:ef,onSelect:function(e){I.current="",E(""),F.replace("/intel",{scroll:!1}),V("industries"),J(e)}}),(0,n.jsx)(W,{tab:K,onTab:V,counts:eq,companies:eC,industries:ew,industryRoles:eS,cities:eM,activeCo:P,onActiveCo:Q,activeGroup:B,onActiveGroup:J,groupCompanies:eT,isGroupCompaniesLoading:eR,onCompanyJump:function(e){Q(e),J(null),V("companies")},jobsForActive:ez,jobsForActiveTotal:ez.length,activeCompanyName:eI,isAnalyticsLoading:ef,isFiltering:ej&&O.length>0,isOpenRolesLoading:eN,globalSearch:{isActive:eb.isActive,isLoading:eb.isLoading,hits:eb.hits.map(e=>{var l,t;return{job_id:e.job_id,job_title:e.job_title,company_name:null!==(l=e.company_name)&&void 0!==l?l:null,city:null!==(t=e.location_city)&&void 0!==t?t:null,mode:ei(e.location_mode)}}),closestMatch:{loading:eg.loading,relaxedLocation:eg.relaxed.includes("location"),cards:eg.cards.map(e=>{var l,t;return{job_id:e.job_id,job_title:e.title,company_name:null!==(l=e.company)&&void 0!==l?l:null,city:null!==(t=e.location_city)&&void 0!==t?t:null,mode:ei(e.location_mode)}})}},sort:Y,onSortChange:X,latestBatchIso:null!==(C=null==ey?void 0:ey.latest_batch)&&void 0!==C?C:null,authed:es,hasCv:eh,fits:eZ,onCheckFit:(e,l)=>H({job:e,companyName:l}),savedJobIds:eo,onSaveJob:e=>{if(!ee)return ec(e);er(l=>new Set(l).add(e)),r.jobs.saveJob(ee,e).catch(()=>{})},onSignup:ec,onTailor:e=>F.push("/cv?jobId=".concat(encodeURIComponent(e)))}),(0,n.jsx)($,{open:!!G,job:null!==(w=null==G?void 0:G.job)&&void 0!==w?w:null,companyName:null!==(S=null==G?void 0:G.companyName)&&void 0!==S?S:null,token:ee,hasCv:eh,fit:G&&null!==(L=eZ.get(G.job.i
1d))&&void 0!==L?L:null,onClose:()=>H(null)}),!es&&(0,n.jsx)(M,{})]})}function ei(e){let l=(e||"").toLowerCase().trim();return"remote"===l?"Remote":"hybrid"===l?"Hybrid":"onsite"===l||"on-site"===l?"On-site":"—"}t(66906);var es=t(93022);let ea=new Set(["ai","api","aws","crm","css","gcp","hr","html","ml","nlp","qa","sql","ui","ux"]);function eo(e){var l;let t=e.replace(/\([^)]*\)/g,"").replace(/[/_-]+/g," ").replace(/\s+/g," ").trim();if(!t)return"Skill";let n=t.split(" ").filter(Boolean),i=n.map(e=>{var l,t;return null!==(t=null===(l=e[0])||void 0===l?void 0:l.toUpperCase())&&void 0!==t?t:""}).join("");if(n.length>1&&n.length<=3&&i.length>=2&&i.length<=4)return i;if(t.length<=8)return t;let s=null!==(l=n[0])&&void 0!==l?l:t,a=n.find((e,l)=>l>0&&!["and","or","of","for","to","in","with"].includes(e.toLowerCase()));return(a?"".concat(er(s)," ").concat(function(e){var l;if(e.length<=4)return e;let t=e.replace(/[aeiou]/gi,""),n="".concat(null!==(l=e[0])&&void 0!==l?l:"").concat(t.slice(1,3)).replace(/\s/g,"");return n.length>=3?n.slice(0,1).toUpperCase()+n.slice(1).toLowerCase():er(e)}(a)):er(s)).slice(0,8).trim()}function er(e){let l=e.toLowerCase();return ea.has(l)?l.toUpperCase():e.length<=4?e:"".concat(e.slice(0,4)).concat(e.length>6?"":".")}var ec=t(21770),ed=t(20);function eu(e){let{readiness:l,errorCode:t}=e;return(0,n.jsxs)("div",{style:{background:"var(--tm-surface)",border:"1px solid var(--tm-border-soft)",borderRadius:"var(--tm-radius-lg)",marginTop:14,padding:"28px 24px",display:"flex",flexDirection:"column",gap:12},children:[(0,n.jsx)("div",{style:{fontSize:"var(--tm-fs-heading)",fontWeight:600,color:"var(--tm-text)"},children:"processing"===l?"Your CV analysis is running":"failed"===l?"CV analysis needs retry":"Upload a CV to personalize Live Job Data"}),(0,n.jsx)("div",{style:{fontSize:"var(--tm-fs-body)",lineHeight:1.6,color:"var(--tm-text-faint)",maxWidth:720},children:"processing"===l?"Mapping your skills. You can keep browsing.":"failed"===l?"Re-upload your CV to restore the heatmap.":"Upload your CV to personalize the heatmap."}),"failed"===l&&t?(0,n.jsxs)("div",{style:{fontFamily:"var(--tm-font-mono)",fontSize:"var(--tm-fs-caption)",letterSpacing:"0.08em",color:"var(--tm-warning)"},children:["LAST ERROR / ",t.toUpperCase()]}):null,(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap",marginTop:2},children:[(0,n.jsx)(_.default,{href:"failed"===l?"/cv?upload=1":"/cv",style:{padding:"8px 14px",borderRadius:"var(--tm-radius-sm)",background:"var(--tm-interactive)",color:"var(--tm-interactive-fg)",border:"1px solid var(--tm-interactive)",textDecoration:"none",fontSize:"var(--tm-fs-caption)",fontWeight:600},children:"processing"===l?"View upload status":"failed"===l?"Retry CV upload":"Upload CV"}),(0,n.jsx)(_.default,{href:"/",style:{padding:"8px 14px",borderRadius:"var(--tm-radius-sm)",background:"transparent",color:"var(--tm-text-faint)",border:"1px solid var(--tm-border-soft)",textDecoration:"none",fontSize:"var(--tm-fs-caption)",fontWeight:600},children:"See how Live Job Data works"})]})]})}function em(e){return null===e?"—":1===e?"100%":0===e?"0%":"".concat(Math.min(99,Math.max(1,Math.round(100*e))),"%")}function eh(){var e;let{data:l}=(0,o.useQuery)({queryKey:["hiring-panel"],queryFn:()=>r.hiringPanel.get(),staleTime:36e5});return(null==l?void 0:null===(e=l.sectors)||void 0===e?void 0:e.length)?(0,n.jsxs)("section",{className:"sb","aria-labelledby":"sb-title",children:[(0,n.jsxs)("header",{className:"sb-head",children:[(0,n.jsx)("h2",{id:"sb-title",className:"sb-title",children:"Where hiring is happening"}),(0,n.jsxs)(_.default,{className:"sb-more tm-control-focus",href:"/hiring",children:["All sectors ",(0,n.jsx)(w.Z,{size:13,"aria-hidden":!0})]})]}),(0,n.jsx)("ul",{className:"sb-list",children:l.sectors.slice(0,6).map(e=>(0,n.jsxs)("li",{className:"sb-item",children:[(0,n.jsx)("span",{className:"sb-name",children:e.sector}),(0,n.jsxs)("span",{className:"sb-figs",children:[(0,n.jsxs)("span",{className:"sb-fig",children:[(0,n.jsx)("b",{children:(0,L.CZ)(e.live_roles)})," live"]}),(0,n.jsxs)("span",{className:"sb-fig",children:[(0,n.jsx)("b",{children:em(e.new_share)})," new in 30d"]}
1),(0,n.jsxs)("span",{className:"sb-fig",title:"Closed roles the employer left advertised",children:[(0,n.jsx)("b",{children:em(e.still_advertised_rate)})," still up after closing"]})]})]},e.sector))})]}):null}t(38141);var ep=t(38067);function ev(e){var l,t;let{mode:i}=e;if(!i||"unknown"===i)return null;let s={remote:"var(--tm-int-border-soft)",hybrid:"color-mix(in oklab, var(--tm-warning) 14%, transparent)",onsite:"color-mix(in oklab, var(--tm-text-faint) 12%, transparent)"};return(0,n.jsx)("span",{style:{fontSize:"var(--tm-fs-caption)",fontFamily:"var(--tm-font-mono)",letterSpacing:"0.06em",padding:"2px 7px",borderRadius:10,background:null!==(l=s[i])&&void 0!==l?l:s.onsite,color:"var(--tm-text-muted)",textTransform:"uppercase"},children:null!==(t=({remote:"Remote",hybrid:"Hybrid",onsite:"On-site"})[i])&&void 0!==t?t:i})}function ex(e){let{companyName:l,skillName:t,drillJobs:i,isLoading:s,savedJobIds:a,onSave:o,onClose:r,isLoggedIn:c}=e;return(0,n.jsxs)("div",{style:{background:"var(--tm-surface)",border:"1px solid var(--tm-border-soft)",borderRadius:"var(--tm-radius-lg)",marginTop:14,overflow:"hidden"},children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:12,padding:"14px 20px",borderBottom:"1px solid var(--tm-border-soft)"},children:[(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,minWidth:0,flexWrap:"wrap"},children:[(0,n.jsx)("span",{style:{fontFamily:"var(--tm-font-mono)",fontSize:"var(--tm-fs-caption)",color:"var(--tm-interactive)",letterSpacing:"0.08em",textTransform:"uppercase"},children:l}),(0,n.jsx)("span",{style:{color:"var(--tm-text-faint)",fontSize:"var(--tm-fs-caption)"},children:"x"}),(0,n.jsx)("span",{style:{fontFamily:"var(--tm-font-mono)",fontSize:"var(--tm-fs-caption)",color:"var(--tm-text-muted)",letterSpacing:"0.08em",textTransform:"uppercase"},children:t}),s?null:(0,n.jsxs)("span",{style:{fontFamily:"var(--tm-font-mono)",fontSize:"var(--tm-fs-caption)",color:"var(--tm-text-faint)"},children:["/ ",i.length," jobs"]})]}),(0,n.jsx)("button",{onClick:r,style:{background:"transparent",border:"1px solid var(--tm-border-soft)",borderRadius:"var(--tm-radius-sm)",padding:"4px 12px",color:"var(--tm-interactive-rest)",fontSize:"var(--tm-fs-caption)",cursor:"pointer",fontFamily:"var(--tm-font-mono)"},children:"Close"})]}),(0,n.jsx)("div",{style:{maxHeight:320,overflowY:"auto"},children:s?(0,n.jsx)("div",{style:{padding:24,color:"var(--tm-text-faint)",fontFamily:"var(--tm-font-mono)",fontSize:"var(--tm-fs-caption)"},children:"Loading jobs..."}):0===i.length?(0,n.jsx)("div",{style:{padding:24,color:"var(--tm-text-faint)",fontFamily:"var(--tm-font-mono)",fontSize:"var(--tm-fs-caption)"},children:"No jobs found for this combination."}):i.map((e,l)=>{let t=a.has(e.job_id),s=(0,ep.Q)({city:e.location_city,country:e.location_country});return(0,n.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:16,padding:"14px 20px",borderBottom:l<i.length-1?"1px solid var(--tm-border-soft)":"none"},children:[(0,n.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,n.jsx)("div",{style:{fontFamily:"var(--tm-font-mono)",fontSize:"var(--tm-fs-caption)",color:"var(--tm-text-faint)",letterSpacing:"0.06em",marginBottom:2},children:e.job_id.slice(0,8).toUpperCase()}),(0,n.jsx)("div",{style:{fontSize:"var(--tm-fs-body)",fontWeight:600,color:"var(--tm-text)",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.job_title}),(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:3},children:[s?(0,n.jsx)("span",{style:{fontSize:"var(--tm-fs-caption)",color:"var(--tm-text-faint)"},children:s}):null,(0,n.jsx)(ev,{mode:e.location_mode})]}),e.job_description?(0,n.jsx)("div",{style:{fontSize:"var(--tm-fs-caption)",color:"var(--tm-text-faint)",marginTop:6,lineHeight:1.5,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.job_description}):null]}),c?(0,n.jsx)("button",{onClick:()=>o(e),disabled:t,style:{flexShrink:0,fontSize:"var(--tm-fs-caption)",fontFamily:"var(--tm-font-mono)",letterSpacing:"0.06em",padding:"5px 14px",borderRadius:"var(--tm-radius-sm)",cursor:t?"default":"pointer",background:t?"var(--tm-int-bg
1-wash)":"transparent",border:"1px solid ".concat(t?"var(--tm-interactive)":"var(--tm-border-soft)"),color:t?"var(--tm-interactive)":"var(--tm-text-muted)"},children:t?"Saved":"Save"}):null]},e.job_id)})})]})}t(33461);var ey=t(95805),ef=t(58896),ej=t(5005),eb=t(70525),eg=t(47411);let ek=(0,eg.Z)("settings-2",[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);var eN=t(10407),e_=t(69793),eC=t(17294),ew=t(10062),eS=t(36972);let eM=(0,eg.Z)("grid-3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);function eL(e){let{skills:l,allSkills:t,selectedSkillNames:i,selectedCount:s,open:a,onOpenChange:o,onToggleSkill:r}=e;return(0,n.jsxs)("div",{className:"si-picker-wrap",children:[(0,n.jsxs)("button",{type:"button",className:"si-columns-btn",onClick:()=>o(!a),children:[(0,n.jsx)(eM,{size:14}),"Columns / ",l.length]}),a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{type:"button",className:"si-picker-scrim","aria-label":"Close skill picker",onClick:()=>o(!1)}),(0,n.jsx)("div",{className:"si-picker",children:t.map(e=>{let l=i.has(e.display_name),t=!l||s>1;return(0,n.jsxs)("button",{type:"button",disabled:!t,onClick:()=>t&&r(e.display_name),children:[(0,n.jsx)("span",{className:l?"is-on":"",children:l?"on":""}),e.display_name,(0,n.jsxs)("b",{children:["L",e.current_level]})]},e.display_name)})})]}):null]})}let eF=(0,eg.Z)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);var eR=t(32489),eT=t(96362),eq=t(71769);function eI(e){let{skillName:l,level:t,readiness:i,nextLevel:s,demand:a,sessionsToNext:o,levelUpReady:r,topCompanies:c,evidenceLines:d,selectedCell:u,onClearCell:m,onViewSkillJobs:h}=e,p=encodeURIComponent(null!=l?l:"");return(0,n.jsxs)("aside",{className:"si-panel","aria-label":"Selected skill intelligence",children:[(0,n.jsxs)("div",{className:"si-panel-top",children:[(0,n.jsx)("div",{className:"si-panel-icon",children:(0,n.jsx)(eF,{size:22})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"si-section-label",children:"Skill Intelligence"}),(0,n.jsx)("h2",{children:l}),(0,n.jsxs)("span",{className:"si-level is-".concat(i.toLowerCase()),children:["L",t," / ",i]})]}),(0,n.jsx)("button",{type:"button",className:"si-panel-close","aria-label":"Clear selected heatmap cell",disabled:!u,onClick:()=>u&&m(u),children:(0,n.jsx)(eR.Z,{size:16})})]}),(0,n.jsxs)("div",{className:"si-ladder","aria-label":"From level ".concat(t," to level ").concat(s),children:[(0,n.jsxs)("b",{children:["L",t]}),[1,2,3,4,5].map(e=>(0,n.jsx)("span",{className:e<=t?"is-filled":""},e)),(0,n.jsxs)("b",{children:["L",s]})]}),(0,n.jsxs)("div",{className:"si-panel-block",children:[(0,n.jsx)("h3",{children:"Company demand"}),(0,n.jsx)("strong",{children:a}),(0,n.jsx)("p",{children:"Open roles across your followed companies"}),(0,n.jsx)("div",{className:"si-company-rank",children:c.length?c.map(e=>(0,n.jsxs)("span",{children:[(0,n.jsx)("b",{children:e.name}),(0,n.jsx)("em",{children:e.value})]},e.name)):(0,n.jsxs)("span",{children:[(0,n.jsx)("b",{children:"No demand yet"}),(0,n.jsx)("em",{children:"0"})]})})]}),(0,n.jsxs)("div",{className:"si-panel-block",children:[(0,n.jsx)("h3",{children:"Your CV evidence"}),d.length?d.map(e=>(0,n.jsx)("p",{className:"si-evidence",children:e},e)):(0,n.jsx)("p",{className:"si-evidence is-muted",children:"No strong CV proof found yet."}),(0,n.jsxs)(_.default,{href:"/cv?skill=".concat(p),children:["Add more evidence ",(0,n.jsx)(eT.Z,{size:13})]})]}),(0,n.jsxs)("div",{className:"si-panel-block",children:[(0,n.jsx)("h3",{children:"Next step"}),t>=s?(0,n.jsx)("p",{children:"You’re at the top level for this skill — keep your CV proof fresh."}):r?(0,n.jsx)("p",{className:"si-predict",children:(0,n.jsxs)("strong",{children:["You’ve practiced enough — level up to L",s," now."]})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("p",{className:"si-predict",children:[(0,n.jsxs)("strong",{children:["≈",o]})," focused practice session",1===o?"":"s"," to L",s,"."]}),(0,n.jsx)("p",{children:"Practice applied questions, then add the proof back to your CV."})]})]}),(0,n.jsxs)("div",{className:"si-panel-actions",children:[(0,n.jsxs)(_.default,{className:"si-primary",href:"/practice?skill=".concat(p),children:[(0,n.jsx)(eq.Z,{size:16})," Practice"]}),(0,n.jsxs)(_.default,{href:"/cv?skill=".concat(p),children:[(0,n.jsx)(ej.Z,{size:16})," Improve CV proof"]}),(0,n.jsxs)("button",{type:"button",onClick:()=>l&&h(l),children:[(0,n.jsx)(ef.Z,{size:16})," View jobs"]})]})]})}function ez(e){let{icon:l,label:t}=e;return(0,n.jsxs)("span",{className:"si-signal",children:[l,t]})}function eE(e){var l,t,i,a,c,d,u;let{companies:m,followCompany:h,rowDataMap:p,skills:v,formatSkillLabel:x,allSkills:y,selectedSkillNames:f,selectedCell:j,skillEvidence:b,trackedCompanyTotal:g,targetRoles:k,targetL
1ocations:N,isFetching:C,isLoggedIn:w,onToggleSkill:S,onCellSelect:M,onPersonalise:L,onViewSkillJobs:F}=e,[R,T]=(0,s.useState)(null),[q,I]=(0,s.useState)(null!==(l=v[0])&&void 0!==l?l:null),[z,E]=(0,s.useState)(!1),{byName:O}=function(e){let l=(0,s.useMemo)(()=>[...e].sort(),[e]),t=(0,o.useQuery)({queryKey:["companyPulse",l.join("|")],queryFn:()=>r.jobs.companyPulse(e),enabled:e.length>0,staleTime:18e5});return{byName:(0,s.useMemo)(()=>{var e,l;let n=new Map;for(let i of null!==(l=null===(e=t.data)||void 0===e?void 0:e.companies)&&void 0!==l?l:[])n.set(i.company_name,i);return n},[t.data]),loading:t.isLoading}}((0,s.useMemo)(()=>m.map(e=>e.company_name),[m])),Z=(0,s.useMemo)(()=>{let e=null,l=-1;for(let n of m){var t;let i=null===(t=O.get(n.company_name))||void 0===t?void 0:t.pulse;null!=i&&i>l&&(l=i,e=n.company_name)}return e},[m,O]);(0,s.useEffect)(()=>{if(!q||!v.includes(q)){var e;I(null!==(e=v[0])&&void 0!==e?e:null)}},[q,v]);let A=(0,s.useMemo)(()=>{let e=1;for(let l of Object.values(p))if(l)for(let t of Object.values(l))e=Math.max(e,t);return e},[p]),K=(0,s.useMemo)(()=>m.map(e=>{let l=p[e.company_name];return{company:e,total:l?v.reduce((e,t)=>{var n;return e+(null!==(n=l[t])&&void 0!==n?n:0)},0):null}}),[m,p,v]),V=(0,s.useMemo)(()=>{var e;return null!==(e=y.find(e=>e.display_name===q))&&void 0!==e?e:null},[y,q]),P=q?b[q.toLowerCase()]:void 0,Q=null!==(i=null!==(t=null==V?void 0:V.current_level)&&void 0!==t?t:null==P?void 0:P.level)&&void 0!==i?i:0,B=(0,ed.O_)(Q),J=(0,ed.RZ)(Q),D=(0,e_.qX)(Q,null!==(a=null==P?void 0:P.forge_sessions_count)&&void 0!==a?a:0),W=null!==(c=null==P?void 0:P.forged_level_up_available)&&void 0!==c&&c,U=q?(0,ed.IB)(p,q):0,G=function(e){var l;let t=null==e?void 0:null===(l=e.evidence_text)||void 0===l?void 0:l.trim();return t?t.split(/\n|\u2022|;|\.\s+/).map(e=>e.trim()).filter(Boolean).slice(0,3):[]}(P),H=(0,s.useMemo)(()=>q?m.map(e=>{var l,t;return{name:e.company_name,value:null!==(t=null===(l=p[e.company_name])||void 0===l?void 0:l[q])&&void 0!==t?t:0}}).filter(e=>e.value>0).sort((e,l)=>l.value-e.value).slice(0,4):[],[m,p,q]),Y=(0,eS.m)(N),X=f.size,$=null!==(d=k[0])&&void 0!==d?d:"Role signals",ee=null!==(u=Y.city)&&void 0!==u?u:"Location signals",el=eC.aR.followedCompanyLimit;return m.length?v.length?(0,n.jsxs)("section",{className:"si-shell","aria-label":"Skill Intelligence",children:[(0,n.jsxs)("div",{className:"si-cockpit",children:[(0,n.jsxs)("div",{className:"si-cockpit-copy",children:[(0,n.jsx)(ew.Fg,{children:"Myro Intel"}),(0,n.jsx)("h1",{children:"Their hiring. Your readiness."}),(0,n.jsx)("p",{children:"Live demand from the companies you follow, matched to your CV."})]}),(0,n.jsxs)("div",{className:"si-meter","aria-label":"".concat(g," companies tracked"),children:[(0,n.jsxs)("div",{className:"si-meter-top",children:[(0,n.jsx)(ey.Z,{size:15}),(0,n.jsxs)("span",{children:[g," companies tracked"]}),(0,n.jsx)("i",{"aria-hidden":!0})]}),(0,n.jsx)("div",{className:"si-meter-bar",children:(0,n.jsx)("span",{style:{width:"".concat(Math.min(100,Math.max(8,m.length/el*100)),"%")}})}),(0,n.jsxs)("button",{type:"button",onClick:L,children:[m.length," / ",el," followed"]})]}),(0,n.jsxs)("div",{className:"si-signals","aria-label":"Personalization signals",children:[(0,n.jsx)(ez,{icon:(0,n.jsx)(ef.Z,{size:14}),label:"Based on your CV skills"}),(0,n.jsx)(ez,{icon:(0,n.jsx)(ej.Z,{size:14}),label:$}),(0,n.jsx)(ez,{icon:(0,n.jsx)(eb.Z,{size:14}),label:ee})]}),(0,n.jsxs)("button",{type:"button",className:"si-personalise",onClick:L,children:[(0,n.jsx)(ek,{size:15}),"Personalise tracking",(0,n.jsx)(eN.Z,{size:15})]})]}),(0,n.jsxs)("div",{className:"si-company-rail","aria-label":"Followed companies",children:[(0,n.jsx)(ew.Fg,{children:"Followed companies"}),(0,n.jsx)("div",{className:"si-compare-strip",children:m.map(e=>(0,n.jsx)(ew.nY,{name:e.company_name,pulse:O.get(e.company_name),followed:!0,highlight:Z===e.company_name,href:"/companies/".concat(encodeURIComponent(e.company_name)),followAction:null==h?void 0:h.action(e.company_name)},e.company_name))})]}),(0,n.jsxs)("div",{className:"si-board",children:[(0,n.jsxs)("div",{className:"si-main",children:[(0,n.jsxs)("div",{className:"si-toolbar",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"si-section-label",children:"Skill demand heatmap"}),(0,n.jsx)("div",{className:"si-toolbar-sub",children:"Company demand by CV skill level"})]}),(0,n.jsxs)("div",{className:"si-toolbar-actions",children:[(0,n.jsxs)("div",{className:"si-legend","aria-label":"Demand scale",children:[(0,n.jsx)("span",{children:"Low"}),[14,28,42,60,78,94].map(e=>(0,n.jsx)("i",{style:{"--si-heat":"".concat(e,"%")}},e)),(0,n.jsx)("span",{children:"High"})]}),w&&y.length>0?(0,n.jsx)(eL,{skills:v,allSkills:y,selectedSkillNames:f,selectedCount:X,open:z,onOpenChange:E,onToggleSkill:S}):null]})]}),(0,n.jsx)("div",{className:"si-matrix-scroll",children:(0,n.jsxs)("table",{className:"si-matrix",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{className:"si-company-head",children:"Companies"}),v.map(e=>{var l,t,i;let s=y.find(l=>l.display_name===e),a=null!==(i=null!==(t=null==s?void 0:s.current_level)&&void 0!==t?t:null===(l=b[e.toLowerCase()])||void 0===l?void 0:l.level)&&void 0!==i?i:0,o=(0,ed.O_)(a),r=q===e;return(0,n.jsx)("th",{children:(0,n.jsxs)("button",{type:"button",className:r?"is-selected":"",onClick:()=>I(e),title:e,children:[(0,n.jsx)("span",{"aria-label":e,children:x(e)}),(0,n.jsxs)("b",{className:"si-level is-".concat(o.toLowerCase()),children:["L",a," / ",o]})]})},e)})]})}),(0,n.jsx)("tbody",{children:K.map((e,l)=>{let{company:t,total:i}=e,s=p[t.company_name];return(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{className:"si-company-cell",children:(0,n.jsxs)(_.default,{href:"/companies/".concat(encodeURIComponent(t.company_name)),children:[(0,n.jsx)("span",{children:t.company_name.split(/\s+/).filter(
1Boolean).slice(0,2).map(e=>{var l,t;return null!==(t=null===(l=e[0])||void 0===l?void 0:l.toUpperCase())&&void 0!==t?t:""}).join("")||"CO"}),(0,n.jsx)("b",{children:t.company_name}),(0,n.jsx)("em",{children:null==i?"Loading":"".concat(i)})]})}),null===s?v.map(e=>(0,n.jsx)("td",{children:(0,n.jsx)("span",{className:"si-cell-skeleton"})},e)):v.map((e,i)=>{var a;let o=null!==(a=null==s?void 0:s[e])&&void 0!==a?a:0,r=(null==j?void 0:j.ci)===l&&(null==j?void 0:j.si)===i,c=(null==R?void 0:R.ci)===l&&(null==R?void 0:R.si)===i;return(0,n.jsx)("td",{children:(0,n.jsx)("button",{type:"button",className:"si-demand-cell".concat(r?" is-active":"").concat(c?" is-hovered":""),style:{"--si-heat":"".concat(o<=0?4:Math.round((.1+o/Math.max(A,1)*.82)*100),"%")},onMouseEnter:()=>T({ci:l,si:i}),onMouseLeave:()=>T(null),onClick:()=>{I(e),M(l,i)},"aria-label":"".concat(t.company_name,", ").concat(e,": ").concat(o," matching roles"),children:o||""})},e)})]},t.company_name)})})]})}),(0,n.jsxs)("div",{className:"si-board-foot",children:[(0,n.jsx)("span",{children:C?"Refreshing visible matrix":"Showing ".concat(m.length," followed companies")}),(0,n.jsxs)("button",{type:"button",onClick:L,children:["View all tracked companies ",(0,n.jsx)(eN.Z,{size:13})]})]})]}),(0,n.jsx)(eI,{skillName:q,level:Q,readiness:B,nextLevel:J,demand:U,sessionsToNext:D,levelUpReady:W,topCompanies:H,evidenceLines:G,selectedCell:j,onClearCell:e=>M(e.ci,e.si),onViewSkillJobs:F})]})]}):null:(0,n.jsxs)("section",{className:"si-empty",children:[(0,n.jsx)("h2",{children:"Track companies to build your skill map"}),(0,n.jsx)("p",{children:"Follow companies from Live Job Data and Myro will map their hiring skills against your CV."}),(0,n.jsx)("button",{type:"button",className:"si-primary",onClick:L,children:"Find companies"})]})}function eO(e){var l,t,i;let{token:a,cvReadyForPersonalization:c,cvReadiness:d,cvUploadErrorCode:u,followedCompanies:h,followCompany:p,selectedCluster:v,targetRoles:x,targetLocations:y,locFilters:f,paramSkill:j,formatSkillLabel:b,onBackToJobs:g,onPersonalise:k,onViewSkillJobs:N}=e,_=(0,m.useQueryClient)(),[C,w]=(0,s.useState)(null),[S,M]=(0,s.useState)(new Set),[L,F]=(0,s.use
1State)(new Set),[R,T]=(0,s.useState)(!1),{data:q}=(0,o.useQuery)({queryKey:["mySkillDemand",a],queryFn:()=>r.jobs.mySkillDemand(a),enabled:!!a&&c,staleTime:18e5}),{data:I}=(0,o.useQuery)({queryKey:["heatmap-user-skills",a],queryFn:()=>r.users.mySkills(a),enabled:!!a&&c,staleTime:3e5}),{data:z}=(0,o.useQuery)({queryKey:["heatmap-market-analytics",a,null!=v?v:"",f],queryFn:()=>r.jobs.analyticsForMe(a,v,f),enabled:!!a,staleTime:18e5});(0,s.useEffect)(()=>{var e;if((null==q?void 0:null===(e=q.skills)||void 0===e?void 0:e.length)&&!R){let e=q.skills.filter(e=>e.weighted_demand>0).sort((e,l)=>l.weighted_demand-e.weighted_demand).map(e=>e.display_name);F(new Set(j?[j,...e.filter(e=>e!==j)]:e)),T(!0)}},[q,R,j]);let E=(0,s.useMemo)(()=>{var e;if(!c||!(null==q?void 0:null===(e=q.skills)||void 0===e?void 0:e.length))return[];let l=q.skills.filter(e=>0===L.size||L.has(e.display_name)).sort((e,l)=>l.weighted_demand-e.weighted_demand).map(e=>e.display_name);return j&&l.includes(j)?[j,...l.filter(e=>e!==j)]:l},[c,L,q,j]),O=(0,s.useMemo)(()=>h.map(e=>e.company_name),[h]),Z=(0,o.useQuery)({queryKey:["heatmap-matrix",O.join(","),E.join(",")],queryFn:()=>r.jobs.skillHeatmap(O,E),enabled:O.length>0&&E.length>0,staleTime:18e5}),A=(0,s.useMemo)(()=>{var e;let l=null===(e=Z.data)||void 0===e?void 0:e.matrix,t={};return h.forEach(e=>{var n;t[e.company_name]=l?null!==(n=l[e.company_name])&&void 0!==n?n:{}:null}),t},[h,Z.data]),K=Z.isFetching,V=(0,s.useMemo)(()=>{if(!C)return null;let e=h[C.ci],l=E[C.si];return e&&l?{companyName:e.company_name,skillName:l}:null},[C,h,E]),{data:P,isLoading:Q}=(0,o.useQuery)({queryKey:["cellJobs",null==V?void 0:V.companyName,null==V?void 0:V.skillName],queryFn:()=>r.jobs.search(V.companyName,{skill:V.skillName,pageSize:50}),enabled:!!V,staleTime:6e5}),B=(0,ec.useMutation)({mutationFn:e=>r.jobs.saveJob(a,e),onMutate:e=>{M(l=>new Set(Array.from(l).concat(e)))},onError:(e,l)=>{M(e=>{let t=new Set(e);return t.delete(l),t})},onSuccess:()=>{_.invalidateQueries({queryKey:["applications"]})}}),J=(0,s.useCallback)(e=>{F(l=>{let t=new Set(l);return t.has(e)?t.size>1&&t.delete(e):t.add(e),t})},[]),D=(0,s.useCallback)((e,l)=>{w(t=>(null==t?void 0:t.ci)===e&&(null==t?void 0:t.si)===l?null:{ci:e,si:l})},[]);return(0,s.useEffect)(()=>{!c&&C&&w(null)},[c,C]),(0,n.jsxs)("div",{style:{marginTop:20},children:[(0,n.jsx)(eh,{}),g?(0,n.jsxs)("button",{type:"button",onClick:g,style:{display:"inline-flex",alignItems:"center",gap:6,background:"none",border:"none",padding:0,cursor:"pointer",color:"var(--tm-interactive)",fontSize:"var(--tm-fs-body)",fontWeight:600,marginBottom:20},children:[(0,n.jsx)("span",{"aria-hidden":!0,children:"<-"})," Back to jobs"]}):null,a&&!c?(0,n.jsx)(eu,{readiness:d,errorCode:null!=u?u:null}):(0,n.jsx)(eE,{companies:h,followCompany:p,rowDataMap:A,skills:E,formatSkillLabel:b,selectedCell:C,onCellSelect:D,allSkills:null!==(l=null==q?void 0:q.skills)&&void 0!==l?l:[],selectedSkillNames:L,onToggleSkill:J,isLoggedIn:!!a,skillEvidence:(0,ed.V3)(I),trackedCompanyTotal:null!==(t=null==z?void 0:z.total_companies)&&void 0!==t?t:h.length,targetRoles:x,targetLocations:y,isFetching:K,onPersonalise:k,onViewSkillJobs:N}),V?(0,n.jsx)(ex,{companyName:V.companyName,skillName:V.skillName,drillJobs:null!==(i=null==P?void 0:P.jobs)&&void 0!==i?i:[],isLoading:Q,savedJobIds:new Set(Array.from(S)),onSave:e=>B.mutate(e.job_id),onClose:()=>w(null),isLoggedIn:!!a}):null]})}function eZ(e){let{alert:l}=e;if(!l)return null;let t=encodeURIComponent(l.skill);return(0,n.jsxs)("div",{className:"gap-alert",role:"status",children:[(0,n.jsx)("span",{className:"gap-alert-dot","aria-hidden":!0}),(0,n.jsxs)("p",{className:"gap-alert-copy",children:[(0,n.jsxs)("strong",{children:[l.company," posted ",l.newRoles," new ",l.skill," role",1===l.newRoles?"":"s"," this week"]})," ",(0,n.jsx)("span",{className:"gap-alert-sub",children:"— the skill closest to your next level."})]}),(0,n.jsxs)("div",{className:"gap-alert-actions",children:[(0,n.jsx)(_.default,{href:"/market?skill=".concat(t),className:"gap-alert-link",children:"See the roles"}),(0,n.jsxs)(_.default,{href:"/practice?skill=".concat(t),className:"gap-alert-cta",children:["Practice ",l.skill," ",(0,n.jsx)(w.Z,{size:14,"aria-hidden":!0})]})]})]})}t(12945);var eA=t(77448);function eK(){return(0,n.jsxs)("section",{className:"si-workspace-loading","aria-label":"Loading your Intel workspace","aria-busy":"true",children:[(0,n.jsxs)("div",{className:"si-workspace-loading-card",children:[(0,n.jsx)(es.O,{style:{width:96,height:12,borderRadius:4}}),(0,n.jsx)(es.O,{style:{width:"min(440px, 82%)",height:32,borderRadius:6,marginTop:16}}),(0,n.jsx)(es.O,{style:{width:"min(320px, 64%)",height:14,borderRadius:4,marginTop:10}})]}),(0,n.jsxs)("div",{className:"si-workspace-loading-card si-workspace-loading-board",children:[(0,n.jsx)(es.O,{style:{width:132,height:12,borderRadius:4}}),(0,n.jsx)("div",{className:"si-workspace-loading-rows","aria-hidden":"true",children:[88,72,80].map(e=>(0,n.jsx)(es.O,{style:{width:"".concat(e,"%"),height:48,borderRadius:6}},e))})]})]})}function eV(e){var l,t;let{token:i}=e,c=(0,a.useRouter)(),d=(0,a.useSearchParams)().get("skill")||null,{data:u,isLoading:m}=(0,o.useQuery)({queryKey:["profile"],queryFn:()=>r.users.me(i),enabled:!!i,staleTime:3e5}),h=(0,eA.FI)(i),{data:p}=(0,o.useQuery)({queryKey:["heatmap-user-skills",i],queryFn:()=>r.users.mySkills(i),enabled:!!i,staleTime:3e5}),v=(0,s.useMemo)(()=>{var e;return Object.values(null!==(e=null==p?void 0:p.by_domain)&&void 0!==e?e:{}).flat().filter(e=>e.level<e_.Ey).map(e=>({name:e.display_name,level:e.level,forgeSessions:e.forge_sessions_count}))},[p]),{alert:x}=function(e,l){let t=(0,s.useMemo)(()=>l.map(e=>e.name),[l]),{data:n}=(0,o.useQuery)({queryKey:["gapSignals",[...e].sort().join("|"),[...t].sort().join("|")],queryFn:()=>r.jobs.companyGapSignals(e,t),enabled:e.length>0&&t.length>0,staleTime:18e5});return{alert:(0,s.useMemo)(()=>{var e;let t=null!==(e=null==n?void 0:n.signals)&&void 0!==e?e:[];
1if(0===t.length)return null;let i=new Map;for(let e of t){let l=e.skill.toLowerCase();i.has(l)||i.set(l,{company:e.company_name,newRoles:e.new_roles})}for(let e of[...l].filter(e=>e.level<e_.Ey).sort((e,l)=>(0,e_.qX)(e.level,e.forgeSessions)-(0,e_.qX)(l.level,l.forgeSessions))){let l=i.get(e.name.toLowerCase());if(l)return{company:l.company,skill:e.name,newRoles:l.newRoles,level:e.level,nextLevel:Math.min(e_.Ey,e.level+1)}}return null},[n,l])}}((0,s.useMemo)(()=>h.companies.map(e=>e.company_name),[h.companies]),v),y=(0,s.useMemo)(()=>{var e;return null!==(e=null==u?void 0:u.target_roles)&&void 0!==e?e:[]},[null==u?void 0:u.target_roles]),f=(0,s.useMemo)(()=>{var e;return(null==u?void 0:u.has_cv)?"ready":null!==(e=null==u?void 0:u.cv_readiness)&&void 0!==e?e:"missing"},[null==u?void 0:u.cv_readiness,null==u?void 0:u.has_cv]);return m||h.isLoading?(0,n.jsx)(eK,{}):(0,n.jsxs)("div",{className:"intel-workspace",children:[(0,n.jsx)(eZ,{alert:x}),(0,n.jsx)(eO,{token:i,cvReadyForPersonalization:"ready"===f,cvReadiness:f,cvUploadErrorCode:null!==(l=null==u?void 0:u.cv_upload_error_code)&&void 0!==l?l:null,followedCompanies:h.companies,followCompany:h,selectedCluster:null,targetRoles:y,targetLocations:null!==(t=null==u?void 0:u.target_locations)&&void 0!==t?t:[],locFilters:{},paramSkill:d,formatSkillLabel:eo,onPersonalise:()=>c.push("/companies"),onViewSkillJobs:e=>c.push("/market?skill=".concat(encodeURIComponent(e)))})]})}function eP(){let{token:e,ready:l}=(0,i.k)();return l&&e?(0,n.jsx)(eV,{token:e}):(0,n.jsx)(en,{})}},38067:function(e,l,t){"use strict";function n(e){var l,t,n;let i=(null!==(l=e.location)&&void 0!==l?l:"").trim(),s=i?i.split(",").map(e=>e.trim()):[null!==(t=e.city)&&void 0!==t?t:"",null!==(n=e.country)&&void 0!==n?n:""],a=new Set,o=[];for(let e of s){let l=e.trim();if(!l)continue;let t=l.toLowerCase();a.has(t)||(a.add(t),o.push(l))}return o.length?o.join(", "):null}t.d(l,{Q:function(){return n}})},36972:function(e,l,t){"use strict";t.d(l,{m:function(){return s}});var n=t(2265);let i={cities:[],city:null,label:"All locations",signature:"",isEmpty:!0};function s(e){let l=(null!=e?e:[]).filter(e=>e&&e.trim()).map(e=>e.trim()).join("\0");return(0,n.useMemo)(()=>(function(e){let l=(null!=e?e:[]).filter(e=>e&&e.trim()).map(e=>e.trim());return 0===l.length?i:{cities:l,city:l[0],label:1===l.length?l[0]:"".concat(l[0]," +").concat(l.length-1),signature:l.map(e=>e.toLowerCase()).sort().join("|"),isEmpty:!1}})(e),[l])}},69793:function(e,l,t){"use strict";t.d(l,{Ey:function(){return i},qX:function(){return s}});let n={0:1,1:3,2:9,3:27},i=4;function s(e,l){var t;let s=Math.max(0,Math.min(i,Math.floor(e)));return s>=i?0:Math.max(0,(null!==(t=n[s])&&void 0!==t?t:0)-Math.max(0,l-function(e,l){let t=Math.max(0,Math.min(i,Math.floor(0))),s=Math.max(t,Math.min(i,Math.floor(l))),a=0;for(let e=t;e<s;e++){var o;a+=null!==(o=n[e])&&void 0!==o?o:0}return a}(0,s)))}},6548:function(e,l,t){"use strict";function n(e){return"myro_qcache_"+e.map(e=>null!=e?e:"").join("|")}function i(e,l){return n([function(e){try{var l;let t=JSON.parse(atob(e.split(".")[1]));return null!==(l=t.sub)&&void 0!==l?l:"anon"}catch(e){return"anon"}}(e),...l])}async function s(e,l,t){try{let t=sessionStorage.getItem(e);if(t){let{ts:e,data:n}=JSON.parse(t);if(Date.now()-e<l)return n}}catch(e){}let n=await t();try{sessionStorage.setItem(e,JSON.stringify({ts:Date.now(),data:n}))}catch(e){}return n}function a(e){try{sessionStorage.removeItem(e)}catch(e){}}t.d(l,{Ip:function(){return i},PK:function(){return n},Xd:function(){return s},Yv:function(){return a}})},20:function(e,l,t){"use strict";function n(e){return e>=4?"Strong":e>=2?"Building":"Gap"}function i(e){return Math.min(5,Math.max(1,e+1))}function s(e){var l;let t={};for(let n of Object.values(null!==(l=null==e?void 0:e.by_domain)&&void 0!==l?l:{}).flat())t[n.display_name.toLowerCase()]=n;return t}function a(e){return e.replace(/\s+/g," ").trim().toLowerCase()}function o(e,l){var t,n;let i=a(e);if(!i)return[];let s=new Set,o=[];for(let e of Object.values(null!==(t=null==l?void 0:l.by_domain)&&void 0!==t?t:{}).flat()){let l=null===(n=e.evidence_text)||void 0===n?void 0:n.trim();if(!l||s.has(e.key))continue;let t=a(l);(i===t||i.includes(t))&&(s.add(e.key),o.push({key:e.key,displayName:e.display_name,level:e.level,evidenceText:l}))}return o}function r(e,l){return Object.values(e).reduce((e,t)=>
1{var n;return e+(null!==(n=null==t?void 0:t[l])&&void 0!==n?n:0)},0)}t.d(l,{IB:function(){return r},O_:function(){return n},RZ:function(){return i},V3:function(){return s},gz:function(){return o}})},71769:function(e,l,t){"use strict";t.d(l,{Z:function(){return n}});let n=(0,t(47411).Z)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},5005:function(e,l,t){"use strict";t.d(l,{Z:function(){return n}});let n=(0,t(47411).Z)("briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]])},10407:function(e,l,t){"use strict";t.d(l,{Z:function(){return n}});let n=(0,t(47411).Z)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},69317:function(e,l,t){"use strict";t.d(l,{Z:function(){return n}});let n=(0,t(47411).Z)("compass",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]])},58896:function(e,l,t){"use strict";t.d(l,{Z:function(){return n}});let n=(0,t(47411).Z)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])},95805:function(e,l,t){"use strict";t.d(l,{Z:function(){return n}});let n=(0,t(47411).Z)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},12945:function(){},38141:function(){},33461:function(){},39255:function(){}},function(e){e.O(0,[3748,9584,359,5306,1330,5140,6380,5727,7046,2696,8062,9277,2979,9762,8482,2972,6137,4791,1632,5878,9096,7577,7763,268,692,471,4377,1139,3515,2971,2117,1744],function(){return e(e.s=698)}),_N_E=e.O()}]);

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.