PageSourceSearch

https://joblet.ai/_next/static/chunks/1480.17851b409cfc0466.js

js joblet.ai collected 2026-10-05 12:08:36 UTC 127,302 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1480],{32660:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},17580:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]])},94766:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]])},61178:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]])},5005:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).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"}]])},98420:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("building-2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]])},40875:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},10407:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},91723:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},78867:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},37760:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]])},28124:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]])},50598:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]])},83774:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},44743:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},68919:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]])},82023:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},70525:function(e,t,r){r.d(t,{Z:function(){return n}});let n=(0,r(79205).Z)("trending-up",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])},60923:function(e,t,r){r.d(t,{Z:function(){return a}});var n=r(57437);r(2265);var l=r(74291);
1function a(e){let{open:t,title:r,description:a,confirmLabel:s="Yes, remove",cancelLabel:o="Cancel",onConfirm:i,onCancel:c}=e;return(0,n.jsx)(l.Vq,{open:t,onOpenChange:e=>!e&&c(),children:(0,n.jsxs)(l.cZ,{className:"sm:max-w-md",children:[(0,n.jsxs)(l.fK,{children:[(0,n.jsx)(l.$N,{children:r}),a&&(0,n.jsx)(l.Be,{children:a})]}),(0,n.jsxs)(l.cN,{children:[(0,n.jsx)("button",{type:"button",onClick:c,className:"inline-flex items-center justify-center rounded-lg border border-gray-200 px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-50",children:o}),(0,n.jsx)("button",{type:"button",onClick:i,className:"inline-flex items-center justify-center rounded-lg bg-[#962727] px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-[#7a1f1f]",children:s})]})]})})}},34584:function(e,t,r){r.r(t),r.d(t,{default:function(){return e8}});var n=r(57437),l=r(2265),a=r(99376),s=r(59250),o=r(40875),i=r(32489),c=r(83774),d=r(79205);let u=(0,d.Z)("brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]),m=(0,d.Z)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]),h=(0,d.Z)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]),p=(0,d.Z)("layout-grid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);var x=r(82023),g=r(32660),f=r(10407),b=r(73247),y=r(45366),v=r(34962),w=r(69081),j=r(34078),k=r(3451),N=r(33307),S=r(1097),C=r(79774),A=r(74141),M=r(62293),R=r(70001),T=r(70961);function L(e){let{...t}=e;return(0,n.jsx)(R.fC,{"data-slot":"sheet",...t})}function E(e){let{...t}=e;return(0,n.jsx)(R.h_,{"data-slot":"sheet-portal",...t})}function P(e){let{className:t,...r}=e;return(0,n.jsx)(R.aV,{"data-slot":"sheet-overlay",className:(0,T.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-[10000] bg-black/50",t),...r})}function J(e){let{className:t,children:r,side:l="right",...a}=e;return(0,n.jsxs)(E,{children:[(0,n.jsx)(P,{}),(0,n.jsxs)(R.VY,{"data-slot":"sheet-content",className:(0,T.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-[10001] flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===l&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm","left"===l&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm","top"===l&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===l&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...a,children:[r,(0,n.jsxs)(R.x8,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,n.jsx)(i.Z,{className:"size-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function I(e){let{className:t,...r}=e;return(0,n.jsx)("div",{"data-slot":"sheet-header",className:(0,T.cn)("flex flex-col gap-1.5 p-4",t),...r})}function _(e){let{className:t,...r}=e;return(0,n.jsx)(R.Dx,{"data-slot":"sheet-title",className:(0,T.cn)("text-foreground font-semibold",t),...r})}
1var F=r(60923),B=r(2015),D=r(87682),Z=r(36726),W=r(47196),U=r(89646),K=r(43966),z=r(71877);function O(e){return window.addEventListener("popstate",e),window.addEventListener("hashchange",e),window.addEventListener(z.q,e),()=>{window.removeEventListener("popstate",e),window.removeEventListener("hashchange",e),window.removeEventListener(z.q,e)}}function H(){var e;let t=(0,a.usePathname)(),r=(0,a.useSearchParams)(),n=null!==(e=null==r?void 0:r.toString())&&void 0!==e?e:"",s="".concat(null!=t?t:"/jobs").concat(n?"?".concat(n):""),o=l.useSyncExternalStore(O,()=>"".concat(window.location.pathname).concat(window.location.search).concat(window.location.hash),()=>s);return l.useMemo(()=>{let e=new URL(o,"http://x");return(0,U.Uu)({pathname:e.pathname,search:e.search,hash:e.hash})},[o])}function q(e){return e?e.split("|").map(e=>e.trim()).filter(Boolean):[]}function V(e,t){return t?e.includes(t)?e:[t,...e]:e}var Y=r(27648),G=r(76858),X=r(98420),Q=r(70525),$=r(94766);let ee=(0,d.Z)("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);var et=r(92864),er=r(9879),en=r(3718);let el='mb-2 flex items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.07em] text-[#8A8780] before:h-3 before:w-[3px] before:shrink-0 before:rounded-full before:bg-[#962727] before:content-[""]',ea="overflow-hidden rounded-xl border border-gray-200 bg-white divide-y divide-gray-100",es="group flex w-full items-center gap-2.5 px-3 py-2.5 text-left transition hover:bg-[#962727]/[0.04]",eo="flex h-7 w-7 shrink-0 items-center justify-center rounded-lg bg-[#F1EFE8] text-[#57534E] ring-1 ring-inset ring-[#E4E1D8] transition group-hover:bg-[#962727]/10 group-hover:text-[#962727] group-hover:ring-[#962727]/25",ei="min-w-0 flex-1 truncate text-[13px] text-[#4B5563] transition group-hover:text-[#1A1A1A]",ec="h-3.5 w-3.5 shrink-0 text-gray-300 opacity-0 transition group-hover:translate-x-0.5 group-hover:text-[#962727] group-hover:opacity-100",ed={top:Z.iI};function eu(e){let{jobs:t,categories:r,locations:l,popularSearches:a,onSearch:s,onSelectLocation:o,onJobClick:i,savedJobIdSet:d,isSavingJob:u,handleToggleSavedJob:m,isAuthenticated:h,userName:p,userEmail:x,userPhotoURL:g,userHeadline:f,userLocation:y,userCompany:v,onSignInRequired:w}=e,k=t.slice(0,20),N=(p||"").trim(),S=N?N[0].toUpperCase():"U",C=!!(f||y||v);return(0,n.jsx)("div",{className:"mx-auto w-full max-w-[1400px] px-4 pb-16 pt-6",children:(0,n.jsxs)("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-[264px_minmax(0,1fr)] lg:items-start xl:grid-cols-[264px_minmax(0,1fr)_320px]",children:[(0,n.jsxs)("aside",{className:"hidden flex-col gap-6 lg:flex",children:[a.length>0&&(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:el,children:"Popular searches"}),(0,n.jsx)("div",{className:ea,children:a.map(e=>(0,n.jsxs)(Y.default,{href:"/jobs?".concat(new URLSearchParams({keyword:e}).toString()),onClick:t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||0!==t.button||(t.preventDefault(),s(e),j.w.trackPopularSearch(e))},className:es,children:[(0,n.jsx)("span",{className:eo,children:(0,n.jsx)(b.Z,{className:"h-3.5 w-3.5",strokeWidth:2.25})}),(0,n.jsx)("span",{className:ei,children:e}),(0,n.jsx)(G.Z,{className:ec})]},e))})]}),r.length>0&&(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:el,children:"Browse by industry"}),(0,n.jsx)("div",{className:ea,children:r.slice(0,10).map(e=>(0,n.jsxs)(Y.default,{href:(0,en.b)(e),className:es,children:[(0,n.jsx)("span",{className:eo,children:(0,n.jsx)(X.Z,{className:"h-3.5 w-3.5",strokeWidth:2.25})}),(0,n.jsx)("span",{className:ei,children:e}),(0,n.jsx)(G.Z,{className:ec})]},e))})]}),l.length>0&&(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:el,children:"Popular locations"}),(0,n.jsx)("div",{className:ea,children:l.slice(0,12).map(e=>(0,n.jsxs)(Y.default,{href:"/jobs?".concat(new URLSearchParams({location:e}).toString()),onClick:t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||0!==t.button||(t.preventDefault(),o(e),j.w.trackPopularLocation(e))},className:es,children:[(0,n.jsx)("span",{className:eo,children:(0,n.jsx)(c.Z,{className:"h-3.5 w-3.5",
1strokeWidth:2.25})}),(0,n.jsx)("span",{className:ei,children:e}),(0,n.jsx)(G.Z,{className:ec})]},e))})]})]}),(0,n.jsxs)("main",{className:"min-w-0",children:[k.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"mb-3",children:(0,n.jsxs)("h2",{className:"flex items-center gap-1.5 text-[15px] font-semibold text-[#1A1A1A]",children:[(0,n.jsx)(Q.Z,{className:"h-4 w-4 shrink-0 text-[#962727]",strokeWidth:2.25}),"Trending jobs"]})}),(0,n.jsx)("ul",{className:"overflow-hidden rounded-xl border border-gray-200 bg-white",children:k.map((e,t)=>(0,n.jsxs)("li",{onClick:r=>{var n;let l=r.target;null!=l&&null!==(n=l.closest)&&void 0!==n&&n.call(l,"button, a, input, label")||i(e,t+1)},className:"group relative cursor-pointer border-b border-gray-100 transition-colors last:border-b-0 hover:bg-[#962727]/[0.03]",children:[(0,n.jsx)("span",{"aria-hidden":!0,className:"absolute inset-y-0 left-0 w-[3px] bg-[#962727] opacity-0 transition-opacity group-hover:opacity-100"}),(0,n.jsx)(et.Z,{job:e,index:t,dense:!0,isSaved:d.has(String(e.id)),isSaving:u,onToggleSave:m,cardHref:(0,er.VK)(e,!0),onCardActivate:()=>i(e,t+1)})]},e.id))})]}),a.length>0&&(0,n.jsxs)("div",{className:"mt-8 lg:hidden",children:[(0,n.jsx)("h2",{className:el,children:"Popular searches"}),(0,n.jsx)("div",{className:"flex flex-wrap gap-1.5",children:a.map(e=>(0,n.jsxs)(Y.default,{href:"/jobs?".concat(new URLSearchParams({keyword:e}).toString()),onClick:t=>{t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||0!==t.button||(t.preventDefault(),s(e),j.w.trackPopularSearch(e))},className:"inline-flex items-center gap-1.5 rounded-full border border-gray-200 bg-white px-2.5 py-1.5 text-[12px] font-medium text-[#4B5563] transition hover:border-[#962727] hover:text-[#962727]",children:[(0,n.jsx)(b.Z,{className:"h-3 w-3 text-gray-400"}),e]},e))})]})]}),(0,n.jsx)("aside",{className:"hidden flex-col gap-4 xl:flex xl:sticky xl:self-start",style:ed,children:h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"overflow-hidden rounded-xl border border-gray-200 bg-white",children:[(0,n.jsx)("div",{className:"h-[3px] bg-[#962727]"}),(0,n.jsxs)("div",{className:"p-4",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[g?(0,n.jsx)("img",{src:g,alt:"",className:"h-12 w-12 shrink-0 rounded-full object-cover ring-1 ring-inset ring-gray-200",referrerPolicy:"no-referrer"}):(0,n.jsx)("span",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-[#962727] text-[17px] font-semibold text-white",children:S}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsx)("div",{className:"truncate text-[14px] font-semibold leading-snug text-[#1A1A1A]",children:N||"Your profile"}),x&&(0,n.jsx)("div",{className:"truncate text-[12px] text-[#6B7280]",children:x})]})]}),f&&(0,n.jsx)("p",{className:"mt-3 text-[12.5px] leading-snug text-[#4B5563]",children:f}),y&&(0,n.jsxs)("p",{className:"mt-1.5 flex items-center gap-1 text-[12px] text-[#6B7280]",children:[(0,n.jsx)(c.Z,{className:"h-3.5 w-3.5 shrink-0"}),(0,n.jsx)("span",{className:"truncate",children:y})]}),v&&(0,n.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,n.jsx)("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center rounded bg-[#1A1A1A] text-white",children:(0,n.jsx)(X.Z,{className:"h-3 w-3"})}),(0,n.jsx)("span",{className:"truncate text-[12.5px] font-medium text-[#1A1A1A]",children:v})]}),(0,n.jsx)(Y.default,{href:"/profile",className:"mt-3 flex items-center justify-center gap-1.5 rounded-lg border border-gray-200 py-2 text-[13px] font-medium text-[#1A1A1A] transition hover:border-[#962727] hover:bg-[#962727]/[0.04] hover:text-[#962727]",children:C?"View profile":"Complete profile"})]})]}),(0,n.jsxs)(Y.default,{href:"/profile",className:"group flex items-center gap-3 rounded-xl border border-gray-200 bg-white p-3 transition hover:border-[#962727]/40 hover:shadow-[0_6px_18px_-12px_rgba(42,38,32,0.25)]",children:[(0,n.jsx)($.Z,{className:"h-5 w-5 shrink-0 text-[#962727]",strokeWidth:2.25}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsx)("div",{className:"text-[13px] font-semibold text-[#1A1A1A]",children:"Job alerts"}),(0,n.jsx)("div",{className:"truncate text-[11.5px] text-[#6B7280]",children:"New matches, straight to your inbox"})]}),(0,n.jsx)(G.Z,{className:"h-4 w-4 shrink-0 text-gray-300 transition group-hover:translate-x-0.5 group-hover:text-[#962727]"})]}),(0,n.jsxs)("div",{className:"rounded-xl border border-gray-200 bg-white p-4",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,n.jsx)(ee,{className:"h-5 w-5 shrink-0 text-[#962727]",strokeWidth:2.25}),(0,n.jsx)("h3",{className:"text-[14px] font-semibold text-[#1A1A1A]",children:"Jobs matched to you"})]}),(0,n.jsx)("p",{className:"mt-2 text-[12px] leading-relaxed text-[#6B7280]",children:"Roles picked from your resume, ranked by fit."}),(0,n.jsxs)(Y.default,{href:"/jobs-for-you",className:"mt-3 flex w-full items-center justify-center gap-1.5 rounded-lg bg-[#962727] py-2 text-[13px] font-medium text-white transition hover:bg-[#7a1f1f]",children:["See your matches",(0,n.jsx)(G.Z,{className:"h-3.5 w-3.5",
1strokeWidth:2.25})]})]})]}):(0,n.jsxs)("div",{className:"rounded-xl border border-gray-200 bg-white p-4",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,n.jsx)(ee,{className:"h-5 w-5 shrink-0 text-[#962727]",strokeWidth:2.25}),(0,n.jsx)("h3",{className:"text-[14px] font-semibold text-[#1A1A1A]",children:"Jobs matched to you"})]}),(0,n.jsx)("p",{className:"mt-2 text-[12px] leading-relaxed text-[#6B7280]",children:"Sign in and add your resume to see roles picked for you and ranked by fit."}),(0,n.jsx)("button",{type:"button",onClick:w,className:"mt-3 w-full rounded-lg bg-[#962727] py-2 text-[13px] font-medium text-white transition hover:bg-[#7a1f1f]",children:"Sign in"})]})})]})})}var em=r(63217);function eh(){return"true"===(0,em.bK)("NEXT_PUBLIC_JOBS_DISCOVERY_ENABLED","VITE_JOBS_DISCOVERY_ENABLED")}let ep=["w-3/4","w-3/5","w-4/5","w-2/3"],ex=["w-1/3","w-2/5","w-1/4","w-1/3"],eg=["w-2/5","w-1/2","w-2/5","w-1/3"];function ef(e){let{className:t="",dense:r=!1,seed:l=0}=e,a=ep[l%ep.length],s=ex[l%ex.length],o=eg[l%eg.length];return r?(0,n.jsxs)("div",{className:["flex animate-pulse gap-3 border-b border-[#1A1A1A]/[0.07] px-[6%] py-3.5",t].join(" "),"aria-hidden":"true",children:[(0,n.jsx)("div",{className:"h-10 w-10 shrink-0 rounded-lg bg-gray-200"}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,n.jsx)("div",{className:"h-3.5 rounded bg-gray-200 ".concat(a)}),(0,n.jsx)("div",{className:"h-4 w-4 shrink-0 rounded bg-gray-100"})]}),(0,n.jsx)("div",{className:"mt-2 h-3 rounded bg-gray-200 ".concat(s)}),(0,n.jsxs)("div",{className:"mt-2.5 flex items-center justify-between gap-3",children:[(0,n.jsx)("div",{className:"h-3 rounded bg-gray-100 ".concat(o)}),(0,n.jsx)("div",{className:"h-3 w-10 rounded bg-gray-100"})]}),(0,n.jsx)("div",{className:"mt-2.5 h-3 w-1/4 rounded bg-gray-200"})]})]}):(0,n.jsxs)("div",{className:["flex h-full min-h-[206px] flex-col rounded-xl border border-gray-300 bg-white px-4 pb-4 pt-4 animate-pulse",t].join(" "),"aria-hidden":"true",children:[(0,n.jsxs)("div",{className:"flex shrink-0 items-start gap-3",children:[(0,n.jsx)("div",{className:"h-8 w-8 shrink-0 rounded-lg bg-gray-200"}),(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,n.jsx)("div",{className:"h-4 w-3/4 rounded bg-gray-200"}),(0,n.jsx)("div",{className:"h-5 w-14 shrink-0 rounded-full bg-gray-200"})]}),(0,n.jsx)("div",{className:"mt-1 h-3.5 w-1/3 rounded bg-gray-200"})]})]}),(0,n.jsxs)("div",{className:"mt-3 flex shrink-0 items-center gap-3",children:[(0,n.jsx)("div",{className:"h-3 w-24 rounded bg-gray-200"}),(0,n.jsx)("div",{className:"ml-auto h-3 w-14 rounded bg-gray-200"})]}),(0,n.jsx)("div",{className:"min-h-0 flex-1"}),(0,n.jsxs)("div",{className:"flex min-h-[32px] w-full shrink-0 items-center justify-between gap-3",children:[(0,n.jsx)("div",{className:"h-5 w-24 shrink-0 rounded-lg bg-gray-200"}),(0,n.jsx)("div",{className:"h-5 w-16 shrink-0 rounded-full bg-gray-200"})]}),(0,n.jsx)("div",{className:"h-[10px] w-full shrink-0"}),(0,n.jsxs)("div",{className:"flex w-full shrink-0 items-center justify-between gap-2",children:[(0,n.jsx)("div",{className:"h-9 min-w-[108px] shrink-0 rounded-lg bg-gray-200"}),(0,n.jsxs)("div",{className:"flex shrink-0 gap-0.5",children:[(0,n.jsx)("div",{className:"h-9 w-9 rounded-lg bg-gray-200"}),(0,n.jsx)("div",{className:"h-9 w-9 rounded-lg bg-gray-200"})]})]})]})}function eb(e){let{jobs:t,savedJobIdSet:r,isSavingJob:l,handleToggleSavedJob:a,handleJobClick:s,singleColumn:o=!1}=e;return(0,n.jsx)("div",{className:o?"grid grid-cols-1 gap-3":"grid grid-cols-1 items-stretch sm:grid-cols-2 lg:grid-cols-3 gap-3",children:t.map((e,t)=>(0,n.jsx)("div",{onMouseEnter:()=>{y.h.prefetchJobById(e.id)},onPointerDown:()=>{y.h.prefetchJobById(e.id)},onClick:r=>{var n;let l=r.target;null!=l&&null!==(n=l.closest)&&void 0!==n&&n.call(l,'button, a, input, select, textarea, label, [role="button"]')||s(e,t+1)},className:"h-full min-h-0 cursor-pointer",children:(0,n.jsx)(et.Z,{job:e,index:t,isSaved:r.has(e.id),isSaving:l,onToggleSave:a,applyButtonVariant:"listing",dense:o,cardHref:(0,er.VK)(e,o),onCardActivate:()=>s(e,t+1)})},e.id))})}function ey(e){let{mainClassName:t,topSlot:r,isInitialLoading:a,isIncrementalLoading:s,currentJobs:o,jobListFetchFailed:i,clearAllFilters:c,recoveryActions:d,suggestedJobs:u,suggestionType:m,suggestionRole:h,loadM
1ore:p,goToPage:x,loadingMore:g,currentPage:f,totalPages:v,hasMoreJobs:w,savedJobIdSet:j,isSavingJob:k,handleToggleSavedJob:N,handleJobClick:S,showBackToJobsInEmpty:C=!1,onBackToJobs:A,selectedJobId:M,singleColumn:R=!1}=e,[T,L]=l.useState(!1);l.useEffect(()=>{L(!0)},[]);let E=R?"mx-auto flex w-full max-w-[680px] flex-col focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[#962727]/60":"grid grid-cols-1 items-stretch sm:grid-cols-2 lg:grid-cols-3 gap-3",P=l.useRef(null),J=l.useCallback(()=>{P.current&&(clearTimeout(P.current),P.current=null)},[]),I=l.useCallback(e=>{J(),P.current=setTimeout(()=>{y.h.prefetchJobById(e)},250)},[J]);l.useEffect(()=>J,[J]);let _=l.useRef(null),F=l.useRef(null),B=l.useRef(!0),D=l.useId(),Z=l.useCallback(e=>"".concat(D,"-opt-").concat(e),[D]),W=l.useCallback(e=>{var t,r;let n=(t=o.findIndex(e=>String(e.id)===M),(r=o.length)<=0?null:"first"===e?0:"last"===e?r-1:-1===t?e>0?0:r-1:Math.min(Math.max(t+e,0),r-1));if(null===n)return;let l=o[n];l&&String(l.id)!==M&&S(l,n+1)},[o,M,S]),U=e=>!!e&&!!e.tagName&&(!!e.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(e.tagName)),K=l.useCallback(e=>{if(!R||U(e.target)||e.metaKey||e.ctrlKey||e.altKey)return;let t={ArrowDown:1,ArrowUp:-1,Home:"first",End:"last"}[e.key];void 0!==t&&(e.preventDefault(),W(t))},[R,W]),z=l.useRef(W);return z.current=W,l.useEffect(()=>{if(!R)return;let e=e=>{("j"===e.key||"k"===e.key)&&(U(e.target)||e.metaKey||e.ctrlKey||e.altKey||(e.preventDefault(),z.current("j"===e.key?1:-1)))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[R]),l.useEffect(()=>{if(!M){F.current=null;return}if(B.current){B.current=!1,F.current=M;return}if(F.current===M)return;let e=_.current;e&&(e.scrollIntoView({block:"nearest"}),F.current=M)},[M,o]),(0,n.jsxs)("div",{className:t,role:"region","aria-label":"Job listings",children:[r,a?(0,n.jsx)("div",{className:E,children:Array.from({length:R?8:9}).map((e,t)=>(0,n.jsx)("div",{className:"h-full min-h-0",children:(0,n.jsx)(ef,{dense:R,seed:t})},"job-skeleton-initial-".concat(t)))}):0===o.length?(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center py-8 text-center px-4",children:[(0,n.jsx)("div",{className:"mb-3 flex justify-center text-gray-300","aria-hidden":!0,children:(0,n.jsx)(b.Z,{className:"h-10 w-10 stroke-[1.25]"})}),(0,n.jsx)("h2",{className:"text-lg font-semibold text-gray-900 mb-2",children:i?"Unable to load jobs":w?"No matching jobs in this batch":"No jobs match your filters"}),(0,n.jsx)("p",{className:"text-gray-500 text-sm max-w-md mb-4",children:i?"Please try again in a moment.":w?"More jobs may be available on the next page.":d&&d.length>0?"Try one of these instead:":"Try broadening your search or clearing filters"}),!i&&d&&d.length>0&&(0,n.jsx)("div",{className:"flex flex-wrap justify-center gap-2 mb-4 max-w-lg",children:d.map(e=>(0,n.jsx)("button",{type:"button",onClick:e.onClick,className:"px-3.5 py-1.5 rounded-full border border-[#962727]/30 bg-[#962727]/5 text-[#962727] text-sm font-medium hover:bg-[#962727]/10 transition",children:e.label},e.label))}),(0,n.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-3",children:[!i&&w&&(0,n.jsx)("button",{type:"button",onClick:()=>x(f+1),disabled:g,className:"px-5 py-2 bg-[#962727] text-white text-sm font-medium rounded-lg hover:bg-[#7a1f1f] disabled:opacity-50",children:"Next page"}),(0,n.jsx)("button",{type:"button",onClick:c,className:d&&d.length>0?"text-sm font-medium text-gray-500 underline underline-offset-4 hover:text-gray-700 transition":"px-5 py-2 bg-[#962727] text-white text-sm font-medium rounded-lg hover:bg-[#7a1f1f] transition",children:"Clear all filters"}),C&&A&&(0,n.jsx)("button",{type:"button",onClick:A,className:"px-5 py-2 bg-[#1A1A1A] text-white text-sm font-bold rounded-lg hover:bg-[#333] transition",children:"Search all jobs"})]}),!i&&("similar_role"===m||"work_from_home"===m)&&u&&u.length>0&&(0,n.jsxs)("div",{className:"mt-6 w-full max-w-5xl text-left",children:[(0,n.jsx)("h3",{className:"mb-4 text-center text-base font-semibold text-gray-900",children:h?"".concat(h," jobs you might like"):"work_from_home"===m?"Remote jobs you might like":"Jobs you might like"}),(0,n.jsx)(eb,{jobs:u,savedJobIdSet:j,isSavingJob:k,handleToggleSavedJob:N,handleJobClick:S,singleColumn:R})]})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:E,...R?{id:D,role:"listbox","aria-label":"Job results",tabIndex:0,"aria-activedescendant":M?Z(M):void 0,onKeyDown:K}:{},children:[o.map((e,t)=>(0,n.jsx)("div",{...R?{id:Z(e.id),role:"option","aria-selected":String(e.id)===M}:{},ref:M&&String(e.id)===M?_:null,onMouseEnter:()=>I(e.id),onMouseLeave:J,onPointerDown:()=>{J(),y.h.prefetchJobById(e.id)},onClick:r=>{var n;let l=r.target;null!=l&&null!==(n=l.closest)&&void 0!==n&&n.call(l,'button, a, input, select, textarea, label, [role="button"]')||S(e,t+1)},"aria-current":M&&String(e.id)===M?"true":void 0,className:R?"relative min-h-0 cursor-pointer transition-colors":"h-full min-h-0 cursor-pointer rounded-xl transition-shadow ".concat(M&&String(e.id)===M?"ring-1 ring-[#962727] [&>.job-card]:border-[#962727]/50 [&>
1.job-card]:bg-[#FBF5F3]":""),style:R?M&&String(e.id)===M?{background:"rgba(150,39,39,0.06)",boxShadow:"inset 3px 0 0 0 #962727",borderBottom:"1px solid transparent"}:{borderBottom:"1px solid rgba(26,26,26,0.07)"}:void 0,children:(0,n.jsx)(et.Z,{job:e,index:t,isSaved:j.has(e.id),isSaving:k,onToggleSave:N,applyButtonVariant:"listing",dense:R,cardHref:(0,er.VK)(e,R),onCardActivate:()=>S(e,t+1),presentationalLink:R})},e.id)),s&&Array.from({length:6}).map((e,t)=>(0,n.jsx)("div",{className:"h-full min-h-0",children:(0,n.jsx)(ef,{dense:R,seed:t})},"job-skeleton-".concat(t)))]}),T&&o.length>0&&(v>1||f>1||w)&&(0,n.jsx)("div",{className:"pb-16 md:pb-24",children:(0,n.jsx)(ew,{currentPage:f,totalPages:Math.max(v,f),onPageChange:x,disabled:g})}),"work_from_home"===m&&u&&u.length>0&&(0,n.jsxs)("div",{className:"mt-4 pb-16 md:pb-24 border-t border-gray-100 pt-8",children:[(0,n.jsx)("h3",{className:"mb-4 text-base font-semibold text-gray-900",children:"You might also like"}),(0,n.jsx)(eb,{jobs:u,savedJobIdSet:j,isSavingJob:k,handleToggleSavedJob:N,handleJobClick:S,singleColumn:R})]})]})]})}function ev(e){let{direction:t}=e;return(0,n.jsx)("svg",{"aria-hidden":!0,viewBox:"0 0 24 24",className:"w-4 h-4",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",children:"left"===t?(0,n.jsx)("path",{d:"M15 18l-6-6 6-6"}):(0,n.jsx)("path",{d:"M9 18l6-6-6-6"})})}function ew(e){let{currentPage:t,totalPages:r,onPageChange:l,disabled:a=!1}=e,s=Math.max(1,r),o=Math.min(Math.max(1,t),s),i=Math.max(1,o-2),c=Math.min(s,i+5-1);i=Math.max(1,c-5+1);let d=[];for(let e=i;e<=c;e+=1)d.push(e);let u="flex items-center justify-center w-11 h-11 rounded-xl border text-sm font-semibold transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#962727]/40 focus-visible:ring-offset-2",m="flex items-center justify-center w-11 h-11 rounded-xl border border-[#962727]/20 bg-[#F5F0EC] text-[#962727] hover:border-[#962727]/40 hover:bg-[#962727]/10 disabled:opacity-40 disabled:pointer-events-none transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#962727]/40 focus-visible:ring-offset-2";return(0,n.jsxs)("nav",{role:"navigation","aria-label":"Pagination",className:"mt-8 flex items-center justify-center gap-2 select-none",children:[o>1&&(0,n.jsx)("button",{type:"button",onClick:()=>l(o-1),disabled:a,className:m,"aria-label":"Previous page",children:(0,n.jsx)(ev,{direction:"left"})}),d.map(e=>{let t=e===o;return(0,n.jsx)("button",{type:"button",onClick:()=>l(e),disabled:a||t,"aria-label":"Page ".concat(e),"aria-current":t?"page":void 0,className:t?"".concat(u," border-[#962727] bg-[#962727] text-white shadow-sm cursor-default"):"".concat(u," border-[#962727]/20 bg-[#F5F0EC] text-[#962727] hover:border-[#962727]/40 hover:bg-[#962727]/10"),children:e},e)}),o<s&&(0,n.jsx)("button",{type:"button",onClick:()=>l(o+1),disabled:a,className:m,"aria-label":"Next page",children:(0,n.jsx)(ev,{direction:"right"})})]})}var ej=r(19719),ek=r(69031),eN=r(89643),eS=r(96788),eC=r(7766),eA=r(86185),eM=r(74324);let eR=new Set(["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid","fbclid","msclkid","ref","source","seed","__pathname"]),eT=new Set(["jobid"]);function eL(e){let t=e.toLowerCase();return t.startsWith("utm_")||eR.has(t)}function eE(e){return eT.has(e.toLowerCase())}function eP(e){for(let[t,r]of e.entries())if(function(e){let t=e.toLowerCase();return!("page"===t||eL(t)||eE(t))}(t)&&""!==String(null!=r?r:"").trim())return!0;return!1}var eJ=r(30166);function eI(){return"true"===(0,em.bK)("NEXT_PUBLIC_JOBS_SPLIT_PANE_ENABLED","VITE_JOBS_SPLIT_PANE_ENABLED")}function e_(e){let t="(min-width: ".concat(e,"px)"),r=l.useCallback(e=>{let r=window.matchMedia(t);return"addEventListener"in r?(r.addEventListener("change",e),()=>r.removeEventListener("change",e)):(r.addListener(e),()=>r.removeListener(e))},[t]);return l.useSyncExternalStore(r,()=>window.matchMedia(t).matches,()=>!1)}var eF=r(56559);function eB(e){let{label:t,count:r=0,children:a,onApply:s,onReset:i,align:c="left"}=e,[d,u]=(0,l.useState)(!1),m=(0,l.useRef)(null);(0,l.useEffect)(()=>
1{if(!d)return;let e=e=>{m.current&&!m.current.contains(e.target)&&u(!1)},t=e=>{"Escape"===e.key&&u(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[d]);let h=r>0;return(0,n.jsxs)("div",{ref:m,className:"relative shrink-0",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>u(e=>!e),"aria-expanded":d,className:"inline-flex h-9 items-center gap-1.5 whitespace-nowrap rounded-full border px-3.5 text-[13px] font-medium transition ".concat(h?"border-[#962727] bg-[#962727]/10 text-[#962727]":"border-gray-300 text-gray-700 hover:bg-gray-50 ".concat(Z.bd)),children:[t,h?" (".concat(r,")"):"",(0,n.jsx)(o.Z,{className:"h-3.5 w-3.5 transition-transform ".concat(d?"rotate-180":"")})]}),d&&(0,n.jsxs)("div",{className:"absolute z-50 mt-2 w-64 rounded-xl border border-gray-200 bg-white p-3 shadow-lg ".concat("right"===c?"right-0":"left-0"),children:[(0,n.jsx)("div",{className:"max-h-72 space-y-0.5 overflow-y-auto overscroll-contain pr-1",children:a}),(0,n.jsxs)("div",{className:"mt-3 flex items-center justify-between border-t border-gray-100 pt-3",children:[(0,n.jsx)("button",{type:"button",onClick:i,className:"text-sm text-gray-500 transition hover:text-gray-800",children:"Reset"}),(0,n.jsx)("button",{type:"button",onClick:()=>{s(),u(!1)},className:"rounded-full bg-[#962727] px-4 py-1.5 text-sm font-medium text-white transition hover:bg-[#7a1f1f]",children:"Show results"})]})]})]})}var eD=r(69713),eZ=r(28393),eW=r(41899),eU=r(88443);let eK=[{id:"ai",label:"AI Model Trainer"},{id:"software",label:"Engineer"},{id:"experts",label:"Subject Matter Expert"},{id:"others",label:"Miscellaneous"}];var ez=r(13580);function eO(e){let{label:t,buttonClassName:r,onNavigate:l}=e;return(0,n.jsx)("button",{type:"button",onClick:l,className:r,children:t})}var eH=r(74845);async function eq(e,t){let r=new URLSearchParams,n=(e,t)=>{null!=t&&""!==String(t).trim()&&r.set(e,String(t))};n("page",t.page),n("limit",t.limit),n("sort",t.sort),n("keyword",t.keyword),n("location",t.location),n("jobType",t.jobType),n("experience",t.experience),void 0!==t.remote&&n("remote",t.remote),n("workMode",t.workMode),n("minSalary",t.minSalary),n("maxSalary",t.maxSalary),n("date",t.date),n("workBucket",t.workBucket);try{var l;let t=await fetch("".concat(e,"?").concat(r.toString()),{headers:{...eH.apiKeyHeader}});if(!t.ok)throw Error("bundled ".concat(t.status));let n=await t.json();return null!==(l=null==n?void 0:n.data)&&void 0!==l?l:{jobs:[],pagination:{}}}catch(e){return{jobs:[],pagination:{total:0,currentPage:Number(t.page)||1,totalPages:1,hasMore:!1}}}}let eV=e=>eq(eZ.vd,e),eY=e=>eq(eW.xt,e),eG=e=>eq(eU.KH,e),eX=e=>eq("/api/joblet-jobs",e),eQ=new Map,e$="inline-flex shrink-0 items-center gap-2 whitespace-nowrap rounded-lg border border-gray-200 bg-white px-3.5 py-2 text-[13px] font-semibold text-[#1A1A1A] shadow-sm transition hover:border-[#962727] hover:bg-[#F5F0EC] hover:text-[#962727]",e0=["Software engineer","Registered nurse","Product manager","Data analyst","Customer service","Sales","Marketing","Accountant"],e1=["Remote","United States","New York","San Francisco","Austin","Chicago","Los Angeles","Seattle","Boston","Atlanta","Dallas","Denver"],e2="inline-flex h-7 shrink-0 items-center gap-1.5 whitespace-nowrap rounded-md border border-gray-200 bg-white px-2.5 text-[12px] font-medium text-gray-600 shadow-[0_1px_1px_rgba(26,26,26,0.04)] transition-colors hover:border-gray-300 hover:bg-gray-50 hover:text-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#962727]/20 focus-visible:ring-offset-1",e7="inline-flex shrink-0 items-center gap-2 whitespace-nowrap rounded-lg border border-gray-200 bg-white px-3.5 py-2 text-[13px] font-semibold text-[#1A1A1A] transition hover:border-[#962727] hover:bg-[#F5F0EC] hover:text-[#962727]",e5="mb-2 block text-[11px] font-semibold uppercase tracking-[0.08em] text-[#8A8780]",e6="flex cursor-pointer items-center gap-2.5 -mx-2 rounded-md px-2 py-1.5 text-[13px] leading-5 text-[#4B5563] transition-colors hover:bg-[#962727]/[0.06] hover:text-[#1A1A1A]",e3="h-[15p
1x] w-[15px] shrink-0 cursor-pointer rounded-[4px] accent-[#962727]";function e4(e){let{items:t,isChecked:r,onToggle:a,initialCount:s=5}=e,[i,c]=(0,l.useState)(!1),d=i?t:t.filter((e,t)=>t<s||r(e)),u=t.length-d.length;return(0,n.jsxs)("div",{children:[d.map(e=>(0,n.jsxs)("label",{className:e6,children:[(0,n.jsx)("input",{type:"checkbox",checked:r(e),onChange:()=>a(e),className:e3}),(0,n.jsx)("span",{className:"truncate",children:e})]},e)),(u>0||i)&&(0,n.jsxs)("button",{type:"button",onClick:()=>c(e=>!e),className:"mt-1.5 inline-flex items-center gap-1 text-[12px] font-medium text-[#962727] transition hover:text-[#7a1f1f]",children:[i?"Show less":"Show all ".concat(t.length),(0,n.jsx)(o.Z,{className:"h-3.5 w-3.5 transition-transform ".concat(i?"rotate-180":""),strokeWidth:2.25})]})]})}let e9=(0,eJ.default)(()=>Promise.all([r.e(6137),r.e(6120)]).then(r.bind(r,66120)),{loadableGenerated:{webpack:()=>[66120]},ssr:!1});function e8(e){var t,r,d,R,T,E,P,z,O;let{initialJobs:Y=[],skipSsrJobPriming:G=!1,pathFilter:X,headingAs:Q="h1",initialTotalJobs:$=0,enableDetailPane:ee=!1}=e,[et]=(0,s.lr)(),er=(0,a.useRouter)(),en=(0,s.s0)(),el=function(){let[e,t]=l.useState(!1);return l.useEffect(()=>{let e=window.matchMedia("(max-width: ".concat(767,"px)")),r=r=>{t("matches"in r?r.matches:e.matches)};return"addEventListener"in e?e.addEventListener("change",r):e.addListener(r),t(e.matches),()=>{"removeEventListener"in e?e.removeEventListener("change",r):e.removeListener(r)}},[]),e}(),[ea,es]=(0,l.useState)(()=>Array.isArray(Y)&&Y.length>0?Y:[]),eo=(0,l.useRef)(null),ei=(0,l.useRef)(new Map),ec=(0,l.useRef)(null),ed=(0,l.useRef)(null),em=(0,l.useRef)(null),ep=(0,l.useRef)(Array.isArray(Y)&&Y.length>0&&!G),ex=(0,l.useRef)(0),eg=(0,l.useRef)(()=>{}),[ef,eb]=(0,l.useState)(()=>!(Array.isArray(Y)&&Y.length>0)||G),[ev,ew]=(0,l.useState)(!1),[eR,eT]=(0,l.useState)(!1),[eJ,eq]=(0,l.useState)(()=>{let e=Number(et.get("page")||1);return Number.isFinite(e)&&e>0?e:1}),e8=e_(1024),te=e_(1080),tt=!X||["flexible","category","role","roleCity","surveys","company"].includes(X.kind),tr=ee&&tt&&eI(),tn=tr&&te,tl=eI()&&(tr||!e8),ta="".concat(window.location.pathname).concat(window.location.search),ts=H(),to=(0,l.useMemo)(()=>(null==X?void 0:X.kind)==="company"?X.value:(new URLSearchParams(window.location.search).get("company")||"").trim(),[X,ts]),ti=(0,l.useMemo)(()=>new URLSearchParams(window.location.search).get("listed")||"",[ts]),{jobId:tc,paneEntry:td,openJob:tu,selectJob:tm,drillJob:th,clearJob:tp,backToParent:tx,savePaneScrollTop:tg}=(0,eF.RL)(ta),tf=!td||td.browseKey===ta||"job"===td.view&&"similar"!==td.source&&td.jobId===tc,tb=tn&&tf?tc:null,ty=(0,l.useMemo)(()=>tb?(null==td?void 0:td.view)==="job"&&tf&&td.listAnchorJobId?td.listAnchorJobId:ea.some(e=>String(e.id)===tb)?tb:null:null,[ea,tf,td,tb]),tv=!!((null==td?void 0:td.view)==="job"&&td.browseKey===ta&&("similar"===td.source||"deep-link"===td.source)),tw=(0,l.useRef)(new Map),tj=(0,l.useRef)(0);(0,l.useEffect)(()=>{var e;tj.current=null!==(e=null==td?void 0:td.paneScrollTop)&&void 0!==e?e:0},[null==td?void 0:td.entryKey,null==td?void 0:td.paneScrollTop]);let tk=(0,l.useCallback)(e=>{tj.current=e,tg(e)},[tg]),tN=(0,l.useRef)(null),tS=(0,l.useRef)(!1),tC=(0,l.useRef)(!1),tA=(0,l.useRef)(!1);tC.current||(tC.current=!0,tN.current=(0,U.u7)(window.location.hash));let tM=tN.current&&(0,U.u7)(window.location.hash)===tN.current?tN.current:null,tR=(0,l.useRef)([]);(0,l.useEffect)(()=>{let e=function(e){let{paneEnabled:t,selectedId:r,arrivedId:n,jobIds:l,loading:a,externalSelectionValid:s=!1,extraSelectableIds:o}=e,i=e=>!!o&&o.includes(e);return t?r?0===l.length?a||r===n||s||i(r)?{type:"none"}:{type:"clear"}:r===n||l.includes(r)||s||i(r)?{type:"none"}:{type:"reselectFirst",firstId:l[0]}:n||0===l.length?{type:"none"}:{type:"autoSelectFirst",firstId:l[0]}:{type:"none"}}({paneEnabled:tn&&!tA.current,selectedId:tc,arrivedId:tM,jobIds:ea.map(e=>String(e.id)),loading:ef,externalSelectionValid:tv,extraSelectableIds:tR.current});switch(e.type){case"clear":tp();return;case"reselectFirst":tm(e.firstId);return;case"autoSelectFirst":{if(tS.current)return;let t=setTimeout(()=>tm(e.firstId),0);return()=>clearTimeout(t)}default:return}},[tn,tc,tM,ea,ef,tv,tm,tp]);let tT=tn&&!!tb,[tL,tE]=(0,l.useState)(null);(0,l.useEffect)(()=>
1{if(!tn||tb===tL)return;if(null===tL||null===tb){tE(tb);return}let e=setTimeout(()=>tE(tb),250);return()=>clearTimeout(e)},[tn,tb,tL]);let tP=(0,l.useMemo)(()=>{var e,t;return tL&&null!==(t=null!==(e=ea.find(e=>String(e.id)===tL))&&void 0!==e?e:tw.current.get(tL))&&void 0!==t?t:null},[tL,ea]),tJ=(null==X?void 0:X.kind)==="aiLab",tI=(0,l.useRef)(new Map),t_=(0,l.useRef)(new Map),tF=(e,t,r)=>{if(e.size>=32){let t=e.keys().next().value;void 0!==t&&e.delete(t)}e.set(t,{ts:Date.now(),value:r})},tB=(e,t)=>{let r=e.get(t);return r?Date.now()-r.ts>3e5?(e.delete(t),null):r.value:null},tD=(null==X?void 0:X.kind)==="flexible",[tZ,tW]=(0,l.useState)(null),[tU,tK]=(0,l.useState)(!1),[tz,tO]=(0,l.useState)(""),[tH,tq]=(0,l.useState)("");(0,l.useEffect)(()=>{(tJ||tD)&&er.prefetch("/jobs")},[tJ,tD,er]);let{searchParams:tV,setSearchParams:tY,jobCategories:tG,keyword:tX,setKeyword:tQ,searchTerm:t$,setSearchTerm:t0,workLocation:t1,setWorkLocation:t2,selectedLocations:t7,setSelectedLocations:t5,experience:t6,setExperience:t3,jobType:t4,setJobType:t9,dateFilter:t8,setDateFilter:re,salaryRange:rt,setSalaryRange:rr,workSchedule:rn,setWorkSchedule:rl,employmentType:ra,setEmploymentType:rs,selectedCategories:ro,setSelectedCategories:ri,selectedSubcategories:rc,setSelectedSubcategories:rd,selectedRoles:ru,setSelectedRoles:rm,sortBy:rh,setSortBy:rp,surveys:rx,setSurveys:rg,appliedFilters:rf,setAppliedFilters:rb,applyFilters:ry,isDirty:rv}=function(e){var t,r,n;let{currentPage:a,setCurrentPage:o,pathFilter:i}=e,[c,d]=(0,s.lr)(),u=(0,l.useMemo)(()=>Object.keys(W.C),[]),m=(null==i?void 0:i.kind)==="category"?i.value:(null==i?void 0:i.kind)==="roleCity"&&null!==(t=i.industry)&&void 0!==t?t:null,h=(null==i?void 0:i.kind)==="role"?i.value:(null==i?void 0:i.kind)==="roleCity"?i.role:null,p=(null==i?void 0:i.kind)==="roleCity"?null!==(r=i.locationLabel)&&void 0!==r?r:null:(null==i?void 0:i.kind)==="location"?i.value:null,x=(null==i?void 0:i.kind)==="roleCity"&&!0===i.remote,g=(null==i?void 0:i.kind)==="roleCity"&&null!==(n=i.roleCategory)&&void 0!==n?n:null,[f,b]=(0,l.useState)(c.get("keyword")||""),[y,v]=(0,l.useState)(c.get("keyword")||""),[w,j]=(0,l.useState)(""),[k,N]=(0,l.useState)(V(c.get("location")?c.get("location").split("|"):[],p)),[S,C]=(0,l.useState)(c.get("experience")||""),[A,M]=(0,l.useState)(c.get("type")||""),[R,T]=(0,l.useState)(c.get("date")||""),[L,E]=(0,l.useState)([0,500]),[P,J]=(0,l.useState)(c.get("workSchedule")?c.get("workSchedule").split(","):[]),[I,_]=(0,l.useState)(V(c.get("employmentType")?c.get("employmentType").split(","):[],x?"Remote":null)),[F,D]=(0,l.useState)(V((0,B.tJ)(c.get("category"),u),m)),[Z,z]=(0,l.useState)(c.get("subcategory")?c.get("subcategory").split(","):[]),[O,Y]=(0,l.useState)(()=>V(V(q(c.get("standardRole")),h),g)),[G,X]=(0,l.useState)(c.get("sort")||"newest"),[Q,$]=(0,l.useState)("1"===c.get("surveys")),[ee,et]=(0,l.useState)(()=>(0,B.M6)({searchTerm:c.get("keyword")||"",selectedLocations:V(c.get("location")?c.get("location").split("|"):[],p),experience:c.get("experience")||"",workSchedule:c.get("workSchedule")?c.get("workSchedule").split(","):[],employmentType:V(c.get("employmentType")?c.get("employmentType").split(","):[],x?"Remote":null),selectedCategories:V((0,B.tJ)(c.get("category"),Object.keys(W.C)),m),selectedSubcategories:c.get("subcategory")?c.get("subcategory").split(","):[],selectedRoles:V(V(q(c.get("standardRole")),h),g),dateFilter:c.get("date")||"",sortBy:c.get("sort")||"newest",salaryMin:void 0,salaryMax:void 0,surveys:"1"===c.get("surveys")})),er=(0,l.useCallback)(e=>{let[t,r]=e;return{salaryMin:t>0?1e3*t:void 0,salaryMax:r<500?1e3*r:void 0}},[]),en=(0,l.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,B.M6)({searchTerm:y,selectedLocations:k,experience:S,workSchedule:P,employmentType:I,selectedCategories:F,selectedSubcategories:Z,selectedRoles:O,dateFilter:R,sortBy:G,surveys:Q,...er(L),...e})},[y,k,S,P,I,F,Z,O,R,G,Q,L,er]),el=(0,l.useMemo)(()=>en(),[en]),ea=(0,l.useMemo)(()=>JSON.stringify(el)!==JSON.stringify(ee),[el,ee]),es=(0,l.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=en(e);o(1),et(t)},[en,o]),eo=(0,l.useRef)(es);eo.current=es,(0,l.useEffect)(()=>{ea&&(0,B.SD)(el)&&es()},[ea,el,es]);let ei=H(),ec=(0,l.useMemo)(()=>(0,U.C6)(new URLSearchParams(window.location.search),{location:p,category:m,employmentType:x?"Remote":null,role:h,roleCategory:g}),[ei,p,m,x,h,g]),ed=(0,l.useMemo)(()=>"".concat(JSON.stringify(ec),"|").concat(ei.page),[ec,ei.page]);return(0,l.useLayoutEffect)(()=>{let e=ec.searchTerm;e!==f&&b(e),e!==y&&v(e);let t=ec.selectedLocations;JSON.stringify(t)!==JSON.stringify(k)&&N(t);let r=ec.experience;r!==S&&C(r);let n=ec.workSchedule;JSON.stringify(n)!==JSON.stringify(P)&&J(n);let l=ec.employmentType;JSON.stringify(l)!==JSON.stringify(I)&&_(l);let a=ec.selectedSubcategories;JSON.stringify(a)!==JSON.stringify(Z)&&z(a);let s=ec.selectedCategories;JSON.stringify(s)!==JSON.stringify(F)&&D(s);let i=ec.selectedRoles;JSON.stringify(i)!==JSON.stringify(O)&&Y(i);let c=ec.sortBy;c!==G&&X(c);let d=ec.dateFilter;d!==R&&T(d);let u=ec.surveys;u!==Q&&$(u),JSON.stringify((0,B.M6)(ec))!==JSON.stringify(ee)&&eo.current({searchTerm:e,selectedLocations:t,experience:r,workSchedule:n,employmentType:l,selectedCategories:s,selectedSubcategories:a,selectedRoles:i,dateFilter:d,sortBy:c,surveys:u}),o(e=>e===ei.page?e:ei.page)},[ed]),(0,l.useEffect)(()=>{var e;let t=(0,U.Uu)({pathname:window.location.pathname,search:window.location.search,hash:window.location.hash}
1),r=new Set([h,g].filter(Boolean)),n=m?new Set((0,B.KT)(m)):null,l={...ee,selectedLocations:p?ee.selectedLocations.filter(e=>e!==p):ee.selectedLocations,employmentType:x?ee.employmentType.filter(e=>"Remote"!==e):ee.employmentType,selectedCategories:m?ee.selectedCategories.filter(e=>e!==m):ee.selectedCategories,selectedSubcategories:n?ee.selectedSubcategories.filter(e=>!n.has(e)):ee.selectedSubcategories,selectedRoles:r.size?ee.selectedRoles.filter(e=>!r.has(e)):ee.selectedRoles},s=null!==(e=t.passthrough)&&void 0!==e?e:[],o=new URLSearchParams(window.location.search).get("keyword");(l.searchTerm||null)!==o&&(s=s.filter(e=>{let[t]=e;return"skipCorrection"!==t}));let i=(0,U.oD)({path:window.location.pathname,filters:l,page:a,jobId:t.jobId,passthrough:s});i!==window.location.pathname+window.location.search+window.location.hash&&(0,K.W)({url:i,paneEntry:"preserve"},"replace")},[ee,a,m,h,p,x,g]),{searchParams:c,setSearchParams:d,jobCategories:u,keyword:f,setKeyword:b,searchTerm:y,setSearchTerm:v,workLocation:w,setWorkLocation:j,selectedLocations:k,setSelectedLocations:N,experience:S,setExperience:C,jobType:A,setJobType:M,dateFilter:R,setDateFilter:T,salaryRange:L,setSalaryRange:E,workSchedule:P,setWorkSchedule:J,employmentType:I,setEmploymentType:_,selectedCategories:F,setSelectedCategories:D,selectedSubcategories:Z,setSelectedSubcategories:z,selectedRoles:O,setSelectedRoles:Y,sortBy:G,setSortBy:X,surveys:Q,setSurveys:$,appliedFilters:ee,setAppliedFilters:et,buildFilterSnapshot:en,currentSnapshot:el,isDirty:ea,applyFilters:es}}({currentPage:eJ,setCurrentPage:eq,pathFilter:X}),[rw,rj]=(0,l.useState)(()=>Math.min(Z.Mp,Math.max(1,Math.ceil(Math.max(0,Number($)||0)/Z.pm)))),[rk,rN]=(0,l.useState)(()=>Array.isArray(Y)&&Y.length>=Z.pm),[rS,rC]=(0,l.useState)([]),[rA,rM]=(0,l.useState)(!1),[rR,rT]=(0,l.useState)(null),[rL,rE]=(0,l.useState)(!1),[rP,rJ]=(0,l.useState)(null),rI=(0,l.useRef)(null),[r_,rF]=(0,l.useState)(!1),[rB,rD]=(0,l.useState)(null),rZ=(0,l.useMemo)(()=>new Set(rS),[rS]),{isAuthenticated:rW,user:rU,userProfile:rK}=(0,eC.aC)(),{registerAdapter:rz}=(0,D.U)();(0,l.useEffect)(()=>{if(rC((0,A.FR)()),!rW)return;let e=!1;return(0,M.s9)().then(t=>{e||0===t.length||rC(e=>Array.from(new Set([...e,...t])))}),()=>{e=!0}},[rW]),(0,l.useEffect)(()=>(0,A.mx)(e=>{let{jobId:t,saved:r}=e;rC(e=>r?e.includes(t)?e:[...e,t]:e.filter(e=>e!==t))}),[]);let rO=(e,t)=>{var r;if(!rW){rI.current={job:e,listPosition:t},rJ(e.id),rE(!0);return}if(rZ.has(e.id)){rD(e);return}(0,A.PU)(e.id),j.w.trackJobBookmark(e.id,e.title,"string"==typeof e.company?e.company:(null===(r=e.company)||void 0===r?void 0:r.name)||"",e.location||"",t),(0,M.HP)(e),rT(null),rC(t=>t.includes(e.id)?t:[...t,e.id])};(0,l.useEffect)(()=>{if(!rW||!rP)return;let e=rI.current;if(rI.current=null,(0,A.PU)(rP),(null==e?void 0:e.job.id)===rP){var t;let{job:r,listPosition:n}=e;j.w.trackJobBookmark(r.id,r.title,"string"==typeof r.company?r.company:(null===(t=r.company)||void 0===t?void 0:t.name)||"",r.location||"",n)}(0,M.HP)({id:rP}),rT(null),rC(e=>e.includes(rP)?e:[...e,rP]),rJ(null)},[rW,rP]);let rH=(0,l.useCallback)(e=>{tQ(e.searchTerm||""),t0(e.searchTerm||""),t5(e.selectedLocations),t3(e.experience),rl(e.workSchedule),rs(e.employmentType),ri(e.selectedCategories),rd(e.selectedSubcategories),rm(e.selectedRoles),re(e.dateFilter),rp(e.sortBy),rg(e.surveys),null!=e.salaryMin||null!=e.salaryMax?rr([null!=e.salaryMin?e.salaryMin/1e3:0,null!=e.salaryMax?e.salaryMax/1e3:500]):rr([0,500]),ry(e),rV(!1)},[ry,tQ,t0,t5,t3,rl,rs,ri,rd,rm,re,rp,rg,rr]),[rq,rV]=(0,l.useState)(!1),[rY,rG]=(0,l.useState)(!1);(0,l.useEffect)(()=>{rY&&j.w.trackAllFiltersOpen("jobs_desktop")},[rY]),(0,l.useEffect)(()=>{rq&&j.w.trackAllFiltersOpen("jobs_mobile")},[rq]);let rX=(0,l.useRef)(null),rQ=(0,l.useRef)(null),[r$,r0]=(0,l.useState)(!1),r1=r$?t1:null!==(t=t7[0])&&void 0!==t?t:"",r2=e=>{let t=String(e||"").trim(),r=t7.slice(1),n=t?Array.from(new Set([t,...r])):r;t5(n),t2(""),r0(!1),ry({selectedLocations:n})},r7=X?0:$,[r5,r6]=(0,l.useState)(Number.isFinite(r7)&&r7>0?r7:0),r3=r5.toLocaleString(),r4="".concat(r3," matching"),[r9,r8]=(0,l.useState)(null),[ne,nt]=(0,l.useState)(null),[nr,nn]=(0,l.useState)([]),[nl,na]=(0,l.useState)(null),[ns,no]=(0,l.useState)(null);(0,l.useEffect)(()=>{tR.current=nr.map(e=>String(e.id))},[nr]);let[ni,nc]=(0,l.useState)(!1),[nd,nu]=(0,l.useState)(!1),nm=(0,l.useRef)(null),nh=(0,l.useRef)(null),np=(0,l.useRef)(null),nx=(0,l.useRef)(null),[ng,nf]=(0,l.useState)([]),{visibleLocationSuggestions:nb,showLocationSuggestions:ny,setShowLocationSuggestions:nv,activeLocationSuggestionIndex:nw,setActiveLocationSuggestionIndex:nj,openLocationSuggestionsDropdown:nk,closeLocationSuggestionsDropdownSoon:nN,clearLocationSuggestCloseTimer:nS,registerLocationBox:nC}=(0,eN.K)(t1,t7),[nA,nM]=(0,l.useState)(!1),[nR,nT]=(0,l.useState)(-1),nL=(0,l.useRef)(null),nE=(0,l.useCallback)(()=>{null!=nL.current&&(window.clearTimeout(nL.current),nL.current=null)},[]),nP=(0,l.useCallback)(()=>{nE(),nL.current=window.setTimeout(()=>{nM(!1),nT(-1),nL.current=null},200)},[nE]);(0,l.useEffect)(()=>()=>{nE()},[nE]);let{suggestions:nJ,loading:nI,noMatches:n_}=(0,ek.m)(tX,{debounceMs:250,minLength:2,listed:tJ?eD.Qk:void 0}),nF=(0,l.useMemo)(()=>(0,ej.bp)(nJ),[nJ]),nB=(0,l.useMemo)(()=>(0,ej.dp)(nJ),[nJ]);(0,l.useEffect)(()=>{nT(-1)},[nJ]);let nD=nA&&tX.trim().length>=2&&(nI||nJ.length>0),nZ=(0,l.useCallback)(e=>{nE();let t="string"==typeof e?{text:e,type:"title"}:e,r=t.text.trim();if(r){if("location"===t.type){t5(e=>{if(e.some(e=>e.toLowerCase()===r.toLowerCase()))return e;let t=[...e,r];return queueMicrotask(()=>{ry({selectedLocations:t,searchTerm:""})}),t}),tQ(""),t0(""),nM(!1),nT(-1);return}tQ(r),t0(r),ry({searchTerm:r}),nM(!1),nT(-1)}},[ry,nE,tQ,t0,t5]),nW=tV.toString();(0,l.useLayoutEffect)(()=>{let e;try{e=new URLSearchParams(nW)}catch(e){return}eP(e)&&ep.current&&(ep.current=!1,es([]),eb(!0))},[nW]);let nU=(0,l.useMemo)(()=>{let e="https://joblet.ai/jobs",t=new URLSearchParams(nW);for(let e of(t.delete("page"),Array.from(t.keys())))(eL(e)||eE(e))&&t.delete(e);let r=t.toString();return r?"".concat(e,"?").concat(r):e},[nW]),nK=(0,l.useMemo)(()=>{let e=Number(new URLSearchParams(nW).get("page")||1);return Number.isFinite(e)&&e>1},[nW]),nz=(0,l.useMemo)(()=>{let e;
1let t=(rf.searchTerm||"").replace(/\s+/g," ").trim(),r=rf.selectedLocations||[],n=rf.selectedCategories||[],l=1===r.length?r[0]:r.length>1?"".concat(r[0]," + ").concat(r.length-1," more"):"",a=1===n.length?n[0]:n.length>1?"".concat(n[0]," + ").concat(n.length-1," more"):"";e=l&&t?"".concat(t," Jobs in ").concat(l):l?"Jobs in ".concat(l):t?"".concat(t," Jobs"):a?"".concat(a," jobs"):"Jobs";let s=eJ>1?" – Page ".concat(eJ):"";return"".concat(e).concat(s)},[rf.searchTerm,rf.selectedLocations,rf.selectedCategories,eJ]),nO=(0,l.useMemo)(()=>{let e=new Map;for(let r of ea.slice(0,40)){var t;let n=((null===(t=r.company)||void 0===t?void 0:t.industry)||r.category||"").trim();n&&e.set(n,(e.get(n)||0)+1)}return Array.from(e.entries()).sort((e,t)=>t[1]-e[1]).slice(0,3).map(e=>{let[t]=e;return t})},[ea]),nH=(0,l.useMemo)(()=>{let e=rf.selectedLocations||[],t=rf.selectedCategories||[],r=1===e.length?String(e[0]||"").trim():"",n=1===t.length?String(t[0]||"").trim():"",l=r5.toLocaleString(),a=nO.length?" Top fields on this page include ".concat(nO.slice(0,2).join(" and "),"."):"";return r?"Find ".concat(l," jobs in ").concat(r,".").concat(a," Filter by title, salary, and work arrangement on joblet.ai."):n?"Explore ".concat(l," ").concat(n," openings on joblet.ai. Add a location to see roles near you or browse nationwide listings."):"Browse thousands of job opportunities. Find your next role with joblet.ai's AI-powered job matching."},[rf.selectedLocations,rf.selectedCategories,r5,nO]),nq=(0,l.useMemo)(()=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:Z.yc.filter(e=>e.path).map((e,t)=>({"@type":"ListItem",position:t+1,name:e.label,item:"/"===e.path?"https://joblet.ai/":"https://joblet.ai".concat(e.path)}))}),[]),nV=(0,l.useMemo)(()=>{if(!nK&&ea&&0!==ea.length)return{"@context":"https://schema.org","@type":"ItemList",itemListElement:ea.slice(0,20).map((e,t)=>({"@type":"ListItem",position:t+1,url:"https://joblet.ai/jobs/".concat(e.id)}))}},[ea,nK]),nY=(0,l.useMemo)(()=>(0,U.wA)(rf,null!=X?X:null),[rf,X]);(0,l.useEffect)(()=>rz({appliedFilters:rf,hasActiveFilters:nY,savedJobCount:rZ.size,applyPreset:rH}),[rf,rH,nY,rz,rZ.size]);let nG="discovery"===(0,U.HE)({path:ts.path,filters:rf,page:ts.page,jobId:tb},{paneEnabled:tn,discoveryEnabled:eh(),pathFilter:null!=X?X:null,arrivedJobId:tM});tA.current=nG,(0,l.useEffect)(()=>{let e=e=>{let t=e.detail,r="string"==typeof(null==t?void 0:t.keyword)?t.keyword.trim():"";r&&(tQ(r),t0(r),ry({searchTerm:r}),tS.current=!1,window.scrollTo({top:0,behavior:"smooth"}))};return window.addEventListener(Z.Tk,e),()=>window.removeEventListener(Z.Tk,e)},[ry,tQ,t0]);let nX=()=>{tW(null),tQ(""),t0(""),t2(""),t5([]),t3(""),ri([]),rd([]),rm([]),rl([]),rs([]),re(""),nf([]),rp("newest"),rg(!1),eq(1),rV(!1),nc(!1),nu(!1),rr([0,500]),rb((0,B.M6)({searchTerm:"",selectedLocations:[],experience:"",workSchedule:[],employmentType:[],selectedCategories:[],selectedSubcategories:[],selectedRoles:[],dateFilter:"",sortBy:"newest",salaryMin:void 0,salaryMax:void 0,surveys:!1})),tY(new URLSearchParams,{replace:!0,shallow:!0}),X&&"aiLab"!==X.kind&&"flexible"!==X.kind&&"company"!==X.kind&&en("/jobs")},nQ=(0,l.useRef)(nX);nQ.current=nX;let n$="/jobs"===window.location.pathname&&!window.location.search&&!window.location.hash;(0,l.useEffect)(()=>{if(n$){if(tc||td){tp();return}nQ.current()}},[tp,n$,td,tc]),(0,l.useEffect)(()=>{if(!rY)return;let e=()=>rG(!1),t=t=>{"Escape"===t.key&&e()},r=t=>{var r,n;let l=t.target,a=null===(r=rX.current)||void 0===r?void 0:r.contains(l),s=null===(n=rQ.current)||void 0===n?void 0:n.contains(l);a||s||e()};return document.addEventListener("keydown",t),document.addEventListener("mousedown",r),()=>{document.removeEventListener("keydown",t),document.removeEventListener("mousedown",r)}},[rY]);let n0=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:e5,children:"Location"}),t7.length>0&&(0,n.jsx)("div",{className:"mb-2 flex flex-wrap gap-1.5",children:t7.map(e=>(0,n.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full border border-[#962727]/15 bg-[#962727]/[0.08] py-0.5 pl-2.5 pr-1 text-xs font-medium text-[#962727]",children:[(0,n.jsx)("span",{className:"max-w-[10rem] truncate",children:e}),(0,n.jsx)("button",{type:"button",onClick:()=>lf(e),"aria-label":"Remove ".concat(e),className:"flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-[#962727]/70 transition hover:bg-[#962727]/15 hover:text-[#962727]",children:(0,n.jsx)(i.Z,{className:"h-2.5 w-2.5"})})]},e))}),(0,n.jsxs)("div",{className:"relative",onMouseDownCapture:nS,children:[(0,n.jsx)("input",{value:t1,onChange:e=>{t2(e.target.value),nj(-1),nk()},onFocus:()=>nk(),onBlur:()=>nN(),onKeyDown:e=>{if("ArrowDown"===e.key){e.preventDefault(),nj(e=>Math.min(e+1,nb.length-1));return}if("ArrowUp"===e.key){e.preventDefault(),nj(e=>Math.max(e-1,0));return}if("Escape"===e.key){nv(!1);return}if("Enter"===e.key){e.preventDefault();let t=ny&&nw>=0&&nb[nw];t?lg(t):lg(t1.trim()),nv(!1),nj(-1)}},placeholder:"City, country, or Remote...",className:"w-full rounded-lg border border-gray-200 px-2.5 py-2 text-[13px] text-[#1A1A1A] transition placeholder:text-[#6B7280] focus:border-[#962727] focus:outline-none focus:ring-2 focus:ring-[#962727]/15 ".concat(Z.bd)}),ny&&nb.length>0&&(0,n.jsx)("div",{className:"absolute z-50 mt-1 w-full bg-white rounded-lg shadow-lg border border-gray-200 max-h-40 overflow-y-auto",children:nb.map((e,t)=>(0,n.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5 text-sm cursor-pointer ".concat(t===nw?"bg-gray-100":"hover:bg-gray-50"),onMouseDown:t=>{t.preventDefault(),lg(e),nv(!1),nj(-1)},children:[(0,n.jsx)(c.Z,{className:"h-3.5 w-3.5 shrink-0 text-emerald-600",strokeWidth:2}),(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e})]},"".concat(e,"-").concat(t)))})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:e5,children:"Work Type"}),["Remote","Hybrid","In office"].map(e=>(0,n.jsxs)("label",{className:e6,children:[(0,n.jsx)("input",{type:"checkbox",checked:ra.includes(e),onChange:()=>lm(e),className:e3}),e]},e))]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:e5,children:"Experience"}),(0,n.jsxs)("select",{value:t6,onChange:e=>t3(e.target.value),className:"w-full rounded-lg border border-gray-200 px-2.5 py-2 text-[13px] text-[#1A1A1A] transition focus:border-[#962727] focus:outline-none focus:ring-2 focus:ring-[#962727]/15 ".concat(Z.bd),children:[(0,n.jsx)("option",{value:"",children:"All levels"}),Z.KP.filter(e=>"Any"!==e).map(e=>(0,n.jsx)("option",{value:e,children:e},e))]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:e5,children:"Schedule"}),["Full time","Part time","Internship"].map(e=>(0,n.jsxs)("label",{className:e6,children:[(0,n.jsx)("input",{type:"checkbox",checked:rn.includes(e),onChange:()=>lu(e),className:e3}),e]},e)),(0,n.jsxs)("label",{className:e6,children:[(0,n.jsx)("input",{type:"checkbox",checked:ra.includes("Gig Work"),onChange:()=>lm("Gig Work"),className:e3}),"Gig Work"]}),!tJ&&(0,n.jsxs)("label",{className:e6,children:[(0,n.jsx)("input",{type:"checkbox",checked:rx||(null==X?void 0:X.kind)==="surveys",onChange:()=>{if((null==X?void 0:X.kind)==="surveys"){en("/jobs");return}let e=!rx;rg(e),ry({surveys:e})},className:e3}),"Surveys"]})]}),tG.length>0&&(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:e5,children:"Industry"}),(0,n.jsx)(e4,{items:tG,isChecked:e=>n7(e).allSelected,onToggle:n3})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:e5,children:"Role"}),(0,n.jsx)(e4,{items:eA._,isChecked:e=>ru.includes(e),onToggle:lh})]})]}),n1=()=>
1{if(!tJ)return null;let e=e=>{let t="h-4 w-4";return"ai"===e?(0,n.jsx)(u,{className:t}):"software"===e?(0,n.jsx)(m,{className:t}):"experts"===e?(0,n.jsx)(h,{className:t}):"others"===e?(0,n.jsx)(p,{className:t}):(0,n.jsx)(x.Z,{className:t})},t=e=>(0,n.jsxs)("button",{type:"button",onClick:e.onClick,"aria-pressed":e.active,className:"flex items-center gap-2.5 rounded-xl px-3 py-2.5 text-left transition "+(e.active?"border border-[#962727] bg-[#962727]/[0.06] ring-1 ring-[#962727]":"border border-gray-200 bg-white hover:border-[#962727]/50 hover:shadow-sm active:scale-[0.98]"),children:[(0,n.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg "+(e.active?"bg-[#962727] text-white":"bg-[#962727]/10 text-[#962727]"),children:e.icon}),(0,n.jsx)("span",{className:"min-w-0 truncate text-sm font-semibold text-[#1A1A1A]",children:e.label})]},e.key);return(0,n.jsxs)("div",{className:"mt-4",children:[(0,n.jsx)("div",{className:"mb-2 text-[11px] font-semibold uppercase tracking-wide text-gray-500",children:"Browse by role"}),(0,n.jsx)("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-4",children:eK.map(r=>t({key:r.id,label:r.label,active:tZ===r.id,onClick:()=>tW(tZ===r.id?null:r.id),icon:e(r.id)}))})]})};(0,l.useEffect)(()=>{let e=e=>{var t;let r=e.target,n=[nm,nh].some(e=>e.current&&e.current.contains(r)),l=null===(t=np.current)||void 0===t?void 0:t.contains(r);n||nc(!1),l||nu(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let n2=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rc,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ro;return(0,B.z3)(e,t)},n7=e=>{let t=(0,B.KT)(e),r=t.filter(e=>rc.includes(e)).length;return{allSelected:t.length>0&&r===t.length,partialSelected:r>0&&r<t.length,selectedCount:r,total:t.length}},n5=(e,t)=>{let r=window;Array.isArray(r.dataLayer)&&r.dataLayer.push({event:"filter_selected",filter_type:e,filter_value:t,filter_action:"apply"})},n6=(e,t,r)=>{let n=window;Array.isArray(n.dataLayer)&&n.dataLayer.push({event:"filter_selected",filter_type:e,filter_value:t,filter_action:r?"select":"deselect"})},n3=e=>{let t=(0,B.KT)(e);if(0===t.length)return;let r=t.every(e=>rc.includes(e)),n=r?rc.filter(e=>!t.includes(e)):Array.from(new Set([...rc,...t])),l=(0,B.fA)(tG,n);rd(n),ri(l),ry({selectedCategories:l,selectedSubcategories:n}),n6("industry",e,!r)},n4=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rf,r=arguments.length>2?arguments[2]:void 0,n=(null==r?void 0:r.append)===!0,l=n8.current;(ec.current!==l||1===e)&&(ei.current.clear(),ed.current=null,em.current=null,ec.current=l);let a=n?ex.current:++ex.current,s=(null==X?void 0:X.kind)==="aiLab";if(n)nx.current=window.scrollY,eT(!0);else{let e=!!String(t.searchTerm||"").trim()||!(0,B.SD)(t);(!ep.current||e)&&eb(!0)}performance.now();try{var o,i,c,d,u,m,h,p,x,g,f,b,v;let r;ew(!1);let w=(null==X?void 0:X.kind)==="roleCity"&&X.roleCategory&&X.roleCategory!==X.role?X.roleCategory:null,j=(null==X?void 0:X.kind)==="roleCity"&&null!==(o=X.industry)&&void 0!==o?o:null,k=w?t.selectedRoles.filter(e=>e!==w):t.selectedRoles,N=j?t.selectedCategories.filter(e=>e!==j):t.selectedCategories,S={page:e,limit:Z.pm,sort:t.sortBy,seed:e>1&&null!==(i=eo.current)&&void 0!==i?i:void 0,keyword:t.searchTerm||void 0,skipCorrection:"true"===tV.get("skipCorrection")||void 0,location:t.selectedLocations.length>0?t.selectedLocations.join("|"):void 0,industry:N.length>0?N.join("|"):void 0,jobType:(()=>{let e=[...t.workSchedule];return e.length>0?e.join(","):void 0})(),remote:void 0,workMode:(()=>{let e=[];return t.employmentType.includes("Remote")&&e.push("Remote"),t.employmentType.includes("Hybrid")&&e.push("Hybrid"),t.employmentType.includes("In office")&&e.push("In office"),e.length>0?e.join(","):void 0})(),gigWork:!!t.employmentType.includes("Gig Work")||void 0,flexibleWork:!!tD||void 0,experience:t.experience||void 0,date:t.dateFilter||void 0,subcategory:n2(t.selectedSubcategories,t.selectedCategories)?t.selectedSubcategories.join(","):void 0,standardRole:k.length>0?k.join("|"):void 0,standardRoleMode:(null==X?void 0:X.kind)==="roleCity"?"all":void 0,company:to||void 0,listed:t.surveys&&!s||(null==X?void 0:X.kind)==="surveys"?"Three Hyphens|Apex Focus Group LLC|TowardJobs|Maxion":s?eD.D3:ti||void 0,companyBalanced:s?"0":void 0,workBucket:tJ&&tZ?tZ:void 0,minSalary:t.salaryMin,maxSalary:t.salaryMax},C=!!(S.keyword||S.location||S.industry||S.subcategory||!0===S.remote||S.workMode),A=()=>{ei.current.clear(),ed.current=null,(0,K.W)({url:(0,U.oD)({path:ts.path,filters:ts.filters,page:4,jobId:null,passthrough:ts.passthrough}),paneEntry:"preserve"},"replace")},M=(null==X?void 0:X.kind)==="company"&&to.toLowerCase()===eZ.Uq.toLowerCase(),R=(null==X?void 0:X.kind)==="company"&&to.toLowerCase()===eW.KH.toLowerCase(),T=(null==X?void 0:X.kind)==="company"&&to.toLowerCase()===eU.yn.toLowerCase(),L=(null==X?void 0:X.kind)==="company"&&"eleven ai"===to.toLowerCase(),E=!!S.standardRole||!!S.industry||!!S.subcategory||!!S.gigWork||!!S.flexibleWork,P=!X&&!t.surveys&&!to&&!ti&&!E;if(s&&t.surveys)r={success:!0,data:{jobs:[],diversified:!0,pagination:{total:0,currentPage:1,totalPages:1,perPage:Z.pm,nextCursor:null,hasMore:!1}}};else if(M)r={success:!0,data:await eV(S)};else if(R)r={success:!0,data:await eY(S)};else if(T)r={success:!0,data:await eG(S)};else if(L)r={success:!0,data:await eX(S)};else if(s){let t=JSON.stringify({page:S.page,keyword:S.keyword,location:S.location,industry:S.industry,jobType:S.jobType,remote:S.remote,gigWork:S.gigWork,flexibleWork:S.flexibleWork,experience:S.experience,date:S.date,subcategory:S.subcategory,standardRole:S.standardRole,standardRoleMode:S.standardRoleMode,company:S.company,listed:S.listed,companyBalanced:S.companyBalanced,workBucket:S.workBucket,minSalary:S.minSalary,maxSalary:S.maxSalary}),n=tB(t_.current,t);if(n)r={success:!0,data:n};else{let n,l,a;let s=eD.oc,o={...S,page:1,limit:1},i=JSON.stringify({keyword:o.keyword,location:o.location,industry:o.industry,jobType:o.jobType,remote:o.remote,gigWork:o.gigWork,flexibleWork:o.flexibleWork,experience:o.experience,date:o.date,subcategory:o.subcategory,standardRole:o.standardRole,standardRoleMode:o.standardRoleMode,company:o.company,listed:o.listed,companyBalanced:o.companyBalanced,workBucket:o.workBucket,minSalary:o.minSalary,maxSalary:o.maxSalary}),u=1===(S.page||1),m=null,h=null,p=null,x=tB(tI.current,i);if(x)n=x.dbCounts,l=x.micro1Count,a=x.turingCount;else if(u){let[e,t,r]=await Promise.all([Promise.all(s.map(e=>y.h.getJobsFromServer({...S,listed:e,limit:Z.pm}))),eV({...S,limit:Z.pm}),eY({...S,limit:Z.pm})]);m=e,h=t,p=r,n=e,l=t,a=r,tF(tI.current,i,{dbCounts:e,micro1Count:t,turingCount:r})}else[n,l,a]=await Promise.all([Promise.all(s.map(e=>y.h.getJobsFromServer({...o,listed:e}))),eV(o),eY(o)]),tF(tI.current,i,{dbCounts:n,micro1Count:l,turingCount:a});let g=[...s.map((e,t)=>{var r,l,a;return{company:e,available:Number(null===(a=n[t])||void 0===a?void 0:null===(l=a.data)||void 0===l?void 0:null===(r=l.pagination)||void 0===r?void 0:r.total)||0}}
1),{company:eZ.Uq,available:Number(null===(c=l.pagination)||void 0===c?void 0:c.total)||0},{company:eW.KH,available:Number(null===(d=a.pagination)||void 0===d?void 0:d.total)||0}];g.sort((e,t)=>(0,eD.dH)(e.company)-(0,eD.dH)(t.company));let f=g.map(e=>Math.min((0,eD.IB)(e.company),e.available)),b=f.reduce((e,t)=>e+t,0);for(let e=0;b<Z.pm&&e<4*Z.pm;e+=1){let t=e%g.length;if(g[t].available>f[t])f[t]+=1,b+=1;else if(g.every((e,t)=>e.available<=f[t]))break}let v=e=>{var t;return null!==(t=f[g.findIndex(t=>t.company===e)])&&void 0!==t?t:0},w=(e,t)=>{let r=Array.isArray(null==e?void 0:e.jobs)?e.jobs:[];return{...e,jobs:t>0?r.slice(0,t):[]}},[j,k,N]=m?[m.map((e,t)=>{var r;let n=v(s[t]),l=(null==e?void 0:e.success)&&Array.isArray(null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.jobs)?e.data.jobs:[];return{...e,data:{...null==e?void 0:e.data,jobs:n>0?l.slice(0,n):[]}}}),w(h,v(eZ.Uq)),w(p,v(eW.KH))]:await Promise.all([Promise.all(s.map(e=>({c:e,limit:v(e)})).map(e=>{let{c:t,limit:r}=e;return r>0?y.h.getJobsFromServer({...S,listed:t,limit:r}):Promise.resolve({success:!0,data:{jobs:[],pagination:null}})})),v(eZ.Uq)>0?eV({...S,limit:v(eZ.Uq)}):Promise.resolve({jobs:[],pagination:l.pagination}),v(eW.KH)>0?eY({...S,limit:v(eW.KH)}):Promise.resolve({jobs:[],pagination:a.pagination})]),C=s.map((e,t)=>{var r,n;return{company:e,jobs:(null===(r=j[t])||void 0===r?void 0:r.success)&&(null===(n=j[t])||void 0===n?void 0:n.data)&&Array.isArray(j[t].data.jobs)?j[t].data.jobs:[]}});C.push({company:eZ.Uq,jobs:Array.isArray(k.jobs)?k.jobs:[]}),C.push({company:eW.KH,jobs:Array.isArray(N.jobs)?N.jobs:[]}),C.sort((e,t)=>(0,eD.dH)(e.company)-(0,eD.dH)(t.company));let A=C[0],M=A?A.jobs.slice(0,eD.xs):[];A&&(A.jobs=A.jobs.slice(eD.xs));let R=C.map(e=>e.jobs),T=g.reduce((e,t)=>e+t.available,0),L=Math.max(1,Math.ceil(T/Z.pm));(r={success:!0,data:{jobs:[...M,...function(e){let t=[],r=e.reduce((e,t)=>Math.max(e,t.length),0);for(let n=0;n<r;n+=1)for(let r of e)n<r.length&&t.push(r[n]);return t}(R)],diversified:!0,pagination:{total:T,currentPage:e,totalPages:L,perPage:Z.pm,nextCursor:null,hasMore:e<L}}}).success&&r.data&&tF(t_.current,t,{jobs:r.data.jobs,pagination:r.data.pagination})}}else{let t=!!String(S.keyword||"").trim(),n=P&&!t?Promise.all([eV({...S,limit:eZ.WG}),eY({...S,limit:eW.bP})]):null;if(C&&e>4&&!1!==ed.current&&!ei.current.has(e)){if(e-4>8){A();return}let t=!1;for(let r=4;r<e;r+=1){if(ei.current.has(r+1))continue;let e=await y.h.getJobsFromServer({...S,page:r,cursor:r>4?ei.current.get(r):void 0,earlyTalrooCursor:4===r&&em.current||void 0});if(!e.success){if(!t&&r>4&&((null===(h=e.error)||void 0===h?void 0:h.code)==="SEARCH_CURSOR_EXPIRED"||(null===(p=e.error)||void 0===p?void 0:p.code)==="SEARCH_CURSOR_REQUIRED")){ei.current.clear(),t=!0,r=3;continue}throw Error("Could not establish the next search page. Please retry from page 4.")}let n=null===(m=e.data)||void 0===m?void 0:null===(u=m.pagination)||void 0===u?void 0:u.nextCursor;if("string"==typeof n&&n)ei.current.set(r+1,n);else{ed.current=!1;break}}}if(r=await y.h.getJobsFromServer({...S,cursor:C&&e>4?ei.current.get(e):void 0,earlyTalrooCursor:C&&4===e&&em.current||void 0}),n&&r.success&&r.data){let[e,t]=await n,l=[...Array.isArray(e.jobs)?e.jobs:[],...Array.isArray(t.jobs)?t.j
1obs:[]];if(l.length>0){let e=Array.isArray(r.data.jobs)?r.data.jobs:[],t=Math.min(l.length,eZ.WG+eW.bP),n=[...e.slice(0,Math.max(0,Z.pm-t)),...l.slice(0,t)];r={...r,data:{...r.data,jobs:n,pagination:r.data.pagination}}}}}if(!n&&a!==ex.current||n&&l!==n8.current)return;if(r.success&&r.data){if(C&&e<4){let e=null===(g=r.data.pagination)||void 0===g?void 0:g.earlyTalrooCursor;"string"==typeof e&&e&&(em.current=e)}if(C&&e>=4){let t=null===(f=r.data.pagination)||void 0===f?void 0:f.nextCursor;ed.current="string"==typeof t&&!!t,"string"==typeof t&&t&&ei.current.set(e+1,t)}let s=r.data.seed;"string"==typeof s&&s&&(eo.current=s);let o=(Array.isArray(r.data.jobs)?r.data.jobs:[]).map(e=>{var t;return{...e,description:"string"==typeof e.description?e.description:null!==(t=e.description)&&void 0!==t?t:""}}),i=t.employmentType.includes("Gig Work")?function(e){if(e.length<=1)return e;let t=new Map;for(let r of e){let e=(r.title||"").toLowerCase().trim(),n=t.get(e);n?n.push(r):t.set(e,[r])}let r=Array.from(t.values());for(let e=r.length-1;e>0;e--){let t=Math.floor(Math.random()*(e+1));[r[e],r[t]]=[r[t],r[e]]}let n=[],l=!0;for(;l;)for(let e of(l=!1,r)){let t=e.shift();void 0!==t&&(n.push(t),l=!0)}return n}(o):o;if(n?es(e=>{let t=new Set(e.map(e=>String(e.id))),r=i.filter(e=>{let r=String(e.id);return!t.has(r)&&(t.add(r),!0)});return[...e,...r]}):es(i),!n){let e="string"==typeof r.data.didYouMean?String(r.data.didYouMean):null;r8(e&&e.trim()?e:null);let t="string"==typeof r.data.correctedFrom?String(r.data.correctedFrom):null;
1nt(t&&t.trim()?t:null);let n=Array.isArray(r.data.suggestedJobs)?r.data.suggestedJobs:[];nn(n);let l=r.data.suggestionType;na("similar_role"===l||"work_from_home"===l?l:null);let a=r.data.suggestionRole;no("string"==typeof a?a:null)}rF(!!r.data.diversified);let c=r.data.pagination||{},d=Number.isFinite(Number(c.currentPage))&&Number(c.currentPage)>0?Number(c.currentPage):e,u="boolean"==typeof c.hasMore?c.hasMore:null,m=o.length>=Z.pm,h=Number.isFinite(Number(c.total))&&Number(c.total)>0?Math.max(1,Math.ceil(Number(c.total)/Z.pm)):null,p=null!==u?u:m,b=Math.min(Z.Mp,Number.isFinite(Number(c.totalPages))&&Number(c.totalPages)>0?Number(c.totalPages):null!==h?h:Math.max(d,d+(p?1:0)));eq(d),rj(b);let v=null!==u?u:d<b;rN(d<Z.Mp&&!!(v||m)),C&&3===e&&p&&(null===(x=r.data.meta)||void 0===x?void 0:x.talrooEligible)===!0&&"visible"===document.visibilityState&&window.setTimeout(()=>{"visible"===document.visibilityState&&a===ex.current&&l===n8.current&&y.h.getJobsFromServer({...S,warmPage4:!0})},100),r.data.pagination&&null!=r.data.pagination.total&&(r6(Number(r.data.pagination.total)||0),le.current=l),n||window.scrollTo({top:0,behavior:"smooth"}),performance.now()}else{if(!n&&a!==ex.current||n&&l!==n8.current)return;if(C&&e>4&&((null===(b=r.error)||void 0===b?void 0:b.code)==="SEARCH_CURSOR_EXPIRED"||(null===(v=r.error)||void 0===v?void 0:v.code)==="SEARCH_CURSOR_REQUIRED")){A();return}ew(!0),n||r8(null)}}catch(e){if(!n&&a!==ex.current||n&&l!==n8.current)return;ew(!0),n||r8(null)}finally{n?eT(!1):a===ex.current&&(eb(!1),ep.current=!1)}},n9=(0,l.useMemo)(()=>JSON.stringify({searchTerm:rf.searchTerm,selectedLocations:rf.selectedLocations,experience:rf.experience,workSchedule:rf.workSchedule,employmentType:rf.employmentType,selectedCategories:rf.selectedCategories,selectedSubcategories:rf.selectedSubcategories,selectedRoles:rf.selectedRoles,dateFilter:rf.dateFilter,sortBy:rf.sortBy,surveys:rf.surveys,salaryMin:rf.salaryMin,salaryMax:rf.salaryMax}),[rf]),n8=(0,l.useRef)(n9);n8.current=n9;let le=(0,l.useRef)(null),lt=(0,l.useRef)(!0),lr=(0,l.useRef)("");(0,l.useEffect)(()=>{let e=(0,U.Uu)({pathname:window.location.pathname,search:window.location.search,hash:window.location.hash}).page,t=lt.current;if(lt.current){if(lt.current=!1,ep.current){if(e<=1)return;ep.current=!1}else try{let e=window.location.search,t=new URLSearchParams(e.startsWith("?")?e.slice(1):e),r=eP(t),n=(0,B.SD)(rf)&&!(rf.searchTerm||"").trim();if(r&&n)return}catch(e){}}let r=[e,n9,null!=tZ?tZ:"",to,ti].join("|");if(lr.current===r)return;let n=Date.now();if(t){let e=eQ.get(r);if(void 0!==e&&n-e<2e3)return}if(eQ.set(r,n),eQ.size>64)for(let[e,t]of eQ)n-t>=2e3&&eQ.delete(e);lr.current=r,n4(e,rf)},[n9,ts.page,to,ti]);let ln=(0,l.useRef)(tZ);(0,l.useEffect)(()=>{tJ&&ln.current!==tZ&&(ln.current=tZ,eq(1),n4(1,rf))},[tZ]),(0,l.useEffect)(()=>{if(!eR&&null!=nx.current){let e=nx.current;nx.current=null;let t=()=>{window.scrollTo({top:e,left:window.scrollX,behavior:"auto"})};requestAnimationFrame(()=>{requestAnimationFrame(t),setTimeout(t,50),setTimeout(t,150)})}},[eR,ea.length]);let ll=()=>{if(eR||ef||!rk)return;let e=eJ+1,t=[e,n9,null!=tZ?tZ:"",to,ti].join("|");lr.current=t,eQ.set(t,Date.now()),n4(e,rf,{append:!0})},la=e=>{if(eR||ef||!Number.isFinite(e)||e<1)return;let t=Math.min(Z.Mp,Math.max(1,Math.trunc(e)));t!==ts.page&&((0,K.W)({url:(0,U.oD)({path:ts.path,filters:ts.filters,page:t,jobId:null,passthrough:ts.passthrough}),paneEntry:"preserve"},"push"),window.scrollTo({top:0,behavior:"smooth"}))},ls=(0,l.useMemo)(()=>r_||eJ>1||ea.length>Z.pm||String(t$||tX||"").trim()||"newest"===rh||"relevant"===rh||!rh?ea:[...ea].sort((e,t)=>{switch(rh){case"newest":case"lastUpdated":return new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime();default:return 0}}),[ea,rh,r_,eJ,t$,tX]),lo=ef&&!eR,li=r5<=0&&(lo||ea.length>0),lc=ea.length>0?ev?"Count unavailable":"Counting…":"Loading…",ld=(0,l.useMemo)(()=>{if(lo||ev||ls.length>0)return[];let e=[];t7.length>0&&e.push({label:"Search all locations",onClick:()=>{t5([]),ry({selectedLocations:[]})}}),(ra.length>0||rn.length>0)&&e.push({label:"Remove work-type filter",onClick:()=>{rs([]),rl([]),ry({employmentType:[],workSchedule:[]})}}),t6&&e.push({label:"Any experience level",onClick:()=>{t3(""),ry({experience:""})}}),(ro.length>0||rc.length>0)&&e.push({label:"Remove industry filter",onClick:()=>{ri([]),rd([]),ry({selectedCategories:[],selectedSubcategories:[]})}});let t=t$.trim();if(t&&t.length<=40)for(let r of((0,w.Uz)(t)||[]).slice(0,2))r.toLowerCase()!==t.toLowerCase()&&e.push({label:'Try "'.concat(r,'"'),onClick:()=>{tQ(r),t0(r),ry({searchTerm:r})}});return e},[lo,ev,ls.length,t7,ra,rn,t6,ro,rc,t$,t5,rs,rl,t3,ri,rd,tQ,t0,ry]),lu=e=>{let t=!rn.includes(e);rl(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),n6("schedule",e,t)},lm=e=>{let t=!ra.includes(e);rs(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]),"Gig Work"===e&&n6("schedule",e,t)},lh=e=>{let t=!ru.includes(e),r=ru.includes(e)?ru.filter(t=>t!==e):[...ru,e];rm(r),ry({selectedRoles:r}),n6("role",e,t)},lp=()=>{let e=String(t1||"").replace(/\s+/g," ").trim();if(!e)return t7;let t=t7.some(t=>t.toLowerCase()===e.toLowerCase()),r=t?t7:[...t7,e];return t||t5(r),t2(""),r},lx=()=>{ry({selectedLocations:lp()})},lg=e=>{let t=String(e||"").trim();if(t){if(t7.includes(t)){t2("");return}t5([...t7,t]),t2("")}},lf=e=>{let t=String(e||"").trim();t5(t7.filter(e=>e!==t))},lb=e=>{e.preventDefault();let t=(0,v.parseSearchQuery)(tX),r=r1.trim(),n=t7.slice(1),l=r?Array.from(new Set([r,...n])):[...n];t2(""),r0(!1),t.locations.length>0&&(l=Array.from(new Set([...l,...t.locations]))),t5(l);let a=[...ra];t.employmentType.length>0&&rs(a=Array.from(new Set([...a,...t.employmentType])));let s=[...rn];t.workSchedule.length>0&&rl(s=Array.from(new Set([...s,...t.workSchedule])));let o=t6;t.experience&&t3(o=t.experience);let i=t.locations.length>0||t.employmentType.length>0||t.workSchedule.length>0||!!t.experience,c=t.keyword.trim()?t.keyword.trim():i?"":tX.trim();t.keyword.trim()?tQ(t.keyword):i&&tQ(""),t0(c),ry({searchTerm:c,selectedLocations:l,employmentType:a,workSchedule:s,experience:o}),j.w.trackJobSearch(tX,ea.length)};eg.current=lb;let ly=(0,l.useCallback)(async e=>{let t=e.trim();if(!t)return;tq("");let r=!1,n=!1;try{let e=await fetch("/api/chatbot/nlp",{method:"POST",headers:{"Content-Type":"application/json",...eH.apiKeyHeader},body:JSON.stringify({query:t})});if(e.ok){n=!0;let t=await e.json();r=!!(t.keyword||t.location||t.category||t.employmentType||t.experience)}}catch(e){}if(!n){let e=(0,v.parseSearchQuery)(t);r=!!(e.locations.length||e.categories.length||e.roles.length||e.employmentType.length||e.experience)}if(!r){tq('Didn\'t catch a job. Try saying "nurse jobs in Dallas".');return}tQ(t),t0(t),setTimeout(()=>{eg.current({preventDefault:()=>{}})},0)},[tQ,t0]);(0,l.useEffect)(()=>{tq("")},[tX]);let lv=(e,t)=>
1{var r,n;if(tS.current=!1,tT&&tg(tj.current),t$.trim()&&y.h.trackSearchClick(t$,{id:e.id,title:e.title,company:"string"==typeof e.company?e.company:(null===(r=e.company)||void 0===r?void 0:r.name)||""}),(0,eM.Y)(String(e.id))){er.push((0,eM.W)(String(e.id)));return}if(tn){tu(String(e.id));return}if(String(e.id).startsWith("talroo-")||"talroo"===e.sourceRef){if(e.applyUrl){let r="string"==typeof e.company?e.company:(null===(n=e.company)||void 0===n?void 0:n.name)||"";j.w.trackJobApply(String(e.id),e.title,r,"job_card",e.location||"",t),(0,k.g)("apply",{event_category:"jobs",event_label:String(e.id)}),(0,N.R$)(e.applyUrl)}return}let l="".concat(window.location.pathname).concat(window.location.search),a=encodeURIComponent(l),o=(0,ez.v2)(e),i="".concat(o).concat(o.includes("?")?"&":"?","from=").concat(a);(0,s.Vx)(i,{job:e,from:l,listPosition:t}),er.push(i)},lw=r9&&!ev?ne?(0,n.jsxs)("div",{className:"mb-3 rounded-xl border border-amber-200 bg-amber-50 px-3 py-2 text-sm text-amber-900",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"mr-1",children:"Showing results for"}),(0,n.jsx)("span",{className:"font-semibold italic",children:r9})]}),(0,n.jsxs)("div",{className:"mt-0.5 text-xs text-amber-800",children:[(0,n.jsx)("span",{className:"mr-1",children:"Search instead for"}),(0,n.jsx)("button",{type:"button",className:"font-semibold underline decoration-amber-500/60 underline-offset-2 hover:text-amber-950",onClick:()=>{tQ(ne),t0(ne);let e=new URLSearchParams(window.location.search);e.set("keyword",ne),e.set("skipCorrection","true"),tY(e,{shallow:!0}),ry({searchTerm:ne})},children:ne})]})]}):(0,n.jsxs)("div",{className:"mb-3 rounded-xl border border-amber-200 bg-amber-50 px-3 py-2 text-sm text-amber-900",children:[(0,n.jsx)("span",{className:"mr-2 font-medium",children:"Did you mean"}),(0,n.jsx)("button",{type:"button",className:"font-semibold underline decoration-amber-500/60 underline-offset-2 hover:text-amber-950",onClick:()=>{tQ(r9),t0(r9),ry({searchTerm:r9})},children:r9}),(0,n.jsx)("span",{className:"ml-1",children:"?"})]}):null,lj=tn?(0,n.jsxs)("div",{className:"flex min-w-0 items-start justify-end gap-2.5",children:[(0,n.jsx)(Q,{className:"inline-flex h-7 shrink-0 items-center whitespace-nowrap text-[13px] font-semibold leading-tight text-[#4B5563]",children:r5>0?r4:li?lc:"0 matching"}),(0,n.jsxs)("nav",{"aria-label":"Explore job collections",className:"flex min-w-0 flex-wrap items-start justify-end gap-2",children:[(tJ||tD)&&(0,n.jsxs)("button",{type:"button",onClick:()=>er.push("/jobs"),className:e2,children:[(0,n.jsx)(g.Z,{className:"h-3.5 w-3.5","aria-hidden":"true"}),"Back to jobs"]}),!tJ&&(0,n.jsx)(eO,{label:"Remote freelance",buttonClassName:e2,onNavigate:()=>er.push("/remote-freelancing")}),!tD&&(0,n.jsx)("button",{type:"button",onClick:()=>er.push("/part-time-jobs"),className:e2,children:"Part-time"})]})]}):null,lk=tn?(0,n.jsxs)("div",{ref:rQ,className:"relative flex min-h-10 w-full min-w-0 shrink-0 flex-nowrap items-center gap-1 px-3 pb-2 pt-0.5 [&>div>button]:h-8 [&>div>button]:gap-1 [&>div>button]:px-2 [&>div>button]:text-[11px] [&>div>button>svg]:h-3 [&>div>button>svg]:w-3 ".concat(rY?"z-40":""),children:[(0,n.jsx)(eB,{label:"Experience",count:t6?1:0,onApply:()=>{lx(),n5("experience",t6||"All levels")},onReset:()=>t3(""),children:[{label:"All levels",value:""},...Z.KP.filter(e=>"Any"!==e).map(e=>({label:e,value:e}))].map(e=>(0,n.jsxs)("label",{className:"flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-gray-50",children:[(0,n.jsx)("input",{type:"radio",name:"pill-experience",checked:t6===e.value,onChange:()=>t3(e.value),className:"accent-[#962727]"}),e.label]},e.value||"all"))}),(0,n.jsx)(eB,{label:"Work type",count:ra.filter(e=>"Remote"===e||"Hybrid"===e||"In office"===e).length,onApply:()=>{lx(),n5("work_type",ra.filter(e=>"Remote"===e||"Hybrid"===e||"In office"===e).join(", ")||"Any")},onReset:()=>rs(ra.filter(e=>"Remote"!==e&&"Hybrid"!==e&&"In office"!==e)),children:["Remote","Hybrid","In office"].map(e=>(0,n.jsxs)("label",{className:"flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-gray-50",children:[(0,n.jsx)("input",{type:"checkbox",checked:ra.includes(e),onChange:()=>lm(e),className:"accent-[#962727]"}),e]},e))}),(0,n.jsx)(eB,{label:"Job type",count:rn.length,onApply:()=>{lx(),n5("job_type",rn.join(", ")||"Any")},onReset:()=>rl([]),children:["Full time","Part time","Internship"].map(e=>(0,n.jsxs)("label",{className:"flex cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-gray-50",children:[(0,n.jsx)("input",{type:"checkbox",checked:rn.includes(e),onChange:()=>lu(e),className:"accent-[#962727]"}),e]},e))}),(0,n.jsxs)("div",{className:"relative shrink-0",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>rG(e=>!e),"aria-expanded":rY,"aria-controls":"jobs-filter-panel",className:"inline-flex h-8 shrink-0 items-center gap-1 whitespace-nowrap rounded-full border px-2 text-[11px] font-medium transition ".concat(rY?"border-[#962727] bg-[#962727]/10 text-[#962727]":"border-gray-300 bg-white text-gray-700 hover:bg-gray-50"),children:["All filters",(0,n.jsx)(o.Z,{className:"h-3 w-3 transition-transform ".concat(rY?"rotate-180":"")})]}),rY&&(0,n.jsxs)("section",{id:"jobs-filter-panel",role:"dialog","aria-modal":"false","aria-labelledby":"jobs-filter-panel-title",className:"absolute left-0 top-[calc(100%+0.5rem)] z-50 flex max-h-[min(72vh,40rem)] w-[min(42rem,calc(100vw-3rem))] flex-col overflow-hidden rounded-2xl border border-gray-200 bg-white shadow-[0_18px_48px_-18px_rgba(42,38,32,0.38)]",children:[(0,n.jsxs)("header",{className:"flex shrink-0 items-start justify-between gap-4 border-b border-gray-100 px-4 py-3.5",children:[(0,n.jsxs)("div",{className:"min-w-0",children:[(0,n.jsx)("h2",{id:"jobs-filter-panel-title",className:"text-sm font-semibold text-[#1A1A1A]",children:"All filters"}),(0,n.jsx)("p",{className:"mt-0.5 text-[11px] leading-4 text-gray-500",children:"Refine the jobs shown in your results."})]}),(0,n.jsx)("button",{type:"button",onClick:()=>rG(!1),"aria-label":"Close all filters",className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-gray-400 transition hover:bg-gray-100 hover:text-gray-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#962727]/25",children:(0,n.jsx)(i.Z,{className:"h-4 w-4"})})]}),(0,n.jsx)("div",{className:"jobs-quiet-scroll min-h-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain px-4 py-4",children:(0,n.jsx)("div",{className:"grid min-w-0 grid-cols-1 gap-3 sm:grid-cols-2 [&>div]:min-w-0 [&>div]:rounded-xl [&>div]:border [&>div]:border-gray-100 [&>div]:bg-[#FCFBFA] [&>div]:p-3",children:n0()})}),(0,n.jsxs)("footer",{className:"flex shrink-0 items-center justify-between gap-3 border-t border-gray-100 bg-white px-4 py-3",children:[(0,n.jsx)("button",{type:"button",onClick:nX,disabled:!nY&&!rv,className:"text-[12px] font-medium text-gray-500 underline decoration-gray-300 underline-offset-4 transition hover:text-gray-800 disabled:cursor-default disabled:text-gray-300 disabled:no-underline",children:"Clear all"}),(0,n.jsx)("button",{type:"button",onClick:()=>{lx(),rG(!1)},className:"rounded-full bg-[#962727] px-5 py-2 text-[12px] font-semibold text-white shadow-sm transition hover:bg-[#7a1f1f] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#962727]/30 focus-visible:ring-offset-2",children:"Show results"})]})]})]}),nY&&(0,n.jsx)("button",{type:"button",onClick:nX,className:"shrink-0 whitespace-nowrap px-1 text-[11px] font-medium text-gray-500 underline decoration-gray-300 underline-offset-4 transition hover:text-[#962727]",children:"Clear filters"}),t7.length>1&&(0,n.jsxs)("button",{type:"button",onClick:()=>rG(!0),"aria-label":"".concat(t7.length-1," additional location ").concat(2===t7.length?"filter":"filters"),className:"inline-flex h-8 shrink-0 items-center whitespace-nowrap rounded-full border border-[#962727]/25 bg-[#962727]/[0.07] px-2 text-[10px] font-semibold text-[#962727] transition hover:bg-[#962727]/10",children:["+",t7.length-1]})]}):null;return(0,n.jsxs)("div",{className:"flex w-full min-h-0 flex-1 flex-col",children:[(0,n.jsx)(C.Z,{title:nz,description:nH,canonicalUrl:nU,robots:nK?"noindex,follow":void 0,structuredData:[nV,nq].filter(
1Boolean)}),(0,n.jsx)("div",{className:"flex min-h-0 flex-1 flex-col",children:el?(0,n.jsxs)("main",{className:"flex min-h-0 flex-1 flex-col ".concat(Z.RP),children:[(0,n.jsxs)("div",{className:"shrink-0 border-b border-gray-100 px-4 py-4 sm:py-5 ".concat(Z.RP),children:[(0,n.jsxs)("div",{className:"mb-4 flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-[20px]",children:[(0,n.jsx)(Q,{className:"text-lg font-bold leading-tight text-[#1A1A1A]",children:(null==X?void 0:X.kind)==="aiLab"?"Remote Freelancing Jobs":(null==X?void 0:X.kind)==="flexible"?"Part-time Jobs":"Job Results"}),(0,n.jsx)("span",{className:Z.zU,children:r5>0?r4:li?lc:"0 matching"})]}),(0,n.jsxs)("div",{className:"flex w-full flex-wrap items-start justify-end gap-2 sm:w-auto",children:[(tJ||tD)&&(0,n.jsxs)("button",{type:"button",onClick:()=>er.push("/jobs"),className:0!==r5||lo?e7:"inline-flex shrink-0 items-center gap-2 whitespace-nowrap rounded-lg border-2 border-[#962727] bg-[#962727] px-3.5 py-2 text-[13px] font-bold text-white shadow-sm transition hover:bg-[#7a1f1f]",children:[(0,n.jsx)(g.Z,{className:"h-4 w-4"}),"Back to Jobs"]}),!tJ&&(0,n.jsx)(eO,{label:"Remote freelance",buttonClassName:e$,onNavigate:()=>er.push("/remote-freelancing")}),!tD&&(0,n.jsx)("button",{type:"button",onClick:()=>er.push("/part-time-jobs"),className:e$,children:"Part-time"}),(0,n.jsxs)("button",{type:"button",onClick:()=>rV(!0),className:"flex shrink-0 items-center gap-1 rounded-lg border border-gray-200 px-3 py-2 text-sm font-medium hover:bg-gray-50 ".concat(Z.bd),children:[(0,n.jsx)(f.Z,{className:"h-3.5 w-3.5"}),"Filters"]})]})]}),(0,n.jsxs)("form",{onSubmit:lb,className:"flex items-center gap-2",children:[(0,n.jsxs)("div",{className:"relative min-w-0 flex-1",onMouseDownCapture:nE,onBlurCapture:e=>{e.currentTarget.contains(e.relatedTarget)||nP()},children:[(0,n.jsx)(b.Z,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-400"}),(0,n.jsx)("input",{type:"text",role:"combobox","aria-expanded":nD,"aria-controls":"job-listing-keyword-suggest-mobile-listbox","aria-activedescendant":nR>=0?"job-listing-keyword-suggest-mobile-opt-".concat(nR):void 0,value:tX,onChange:e=>{tQ(e.target.value),nM(!0),nT(-1)},onFocus:()=>nM(!0),onKeyDown:e=>{if("Escape"===e.key){nE(),nM(!1),nT(-1);return}if(!nD)return;let t=nF.length;if("ArrowDown"===e.key){if(e.preventDefault(),0===t)return;nT(e=>e<0?0:(e+1)%t)}else if("ArrowUp"===e.key){if(e.preventDefault(),0===t)return;nT(e=>e<=0?t-1:e-1)}else"Enter"===e.key&&nR>=0&&nB[nR]&&(e.preventDefault(),nZ(nB[nR]))},placeholder:"Job title, company, or keywords...",className:"w-full rounded-lg border border-gray-200 py-2.5 pl-10 pr-10 text-sm focus:border-[#962727] focus:outline-none ".concat(Z.bd)}),(0,n.jsx)(S.Z,{onTranscript:e=>tQ(e),onInterim:e=>tO(e),onFinalTranscript:ly,onListeningChange:e=>tK(e),className:"absolute right-2 top-1/2 -translate-y-1/2"}),nD?(0,n.jsx)("div",{className:"absolute z-[60] mt-1 max-h-64 w-full overflow-y-auto rounded-lg border border-gray-200 bg-white shadow-lg",children:(0,n.jsx)(ej.BY,{idPrefix:"job-listing-keyword-suggest-mobile",suggestions:nJ,loading:nI,noMatches:n_,activeFlatIndex:nR,onPick:nZ})}):null]}),(0,n.jsx)("button",{type:"submit",className:"shrink-0 rounded-lg bg-[#962727] px-4 py-2.5 text-sm font-medium text-white hover:bg-[#7a1f1f]",children:"Search"})]}),n1()]}),(0,n.jsx)(L,{open:rq,onOpenChange:rV,children:(0,n.jsxs)(J,{side:"left",className:"flex h-full max-h-[100dvh] w-[320px] max-w-[85vw] flex-col overflow-hidden p-0 ".concat(Z.RP),children:[(0,n.jsx)(I,{className:"shrink-0 border-b border-gray-100 px-4 pb-2 pt-4 ".concat(Z.RP),children:(0,n.jsx)(_,{className:"text-base font-semibold",children:"Filters"})}),(0,n.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto ".concat(Z.RP),children:[(0,n.jsxs)("div",{className:"shrink-0 space-y-5 px-3 pt-3 pb-5 text-sm ".concat(Z.RP),children:[(rv||nY)&&(0,n.jsxs)("div",{className:"space-y-2 border-b border-gray-100 pb-4",children:[rv?(0,n.jsx)("button",{type:"button",onClick:()=>{lx(),rV(!1)},className:"w-full rounded-lg bg-[#962727] py-2 text-sm font-medium text-white hover:bg-[#7a1f1f]",children:"Apply filters"}):null,nY?(0,n.jsx)("button",{type:"button",onClick:()=>{nX(),rV(!1)},className:"w-full rounded-lg border border-[#962727]/20 py-1.5 text-sm text-[#962727] transition hover:bg-[#962727]/5",children:"Clear all filters"}):null]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"block font-semibold text-gray-500 uppercase tracking-wide text-xs mb-1",children:"Location"}),(0,n.jsxs)("div",{className:"relative",onMouseDownCapture:nS,children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 border border-gray-200 rounded-lg px-2 py-1.5 w-full focus-within:border-[#962727]",children:[t7.map(e=>(0,n.jsxs)("span",{className:"flex items-center gap-0.5 bg-[#962727]/10 text-[#962727] px-1.5 py-0.5 rounded-full text-xs",children:[e,(0,n.jsx)("button",{type:"button",onClick:()=>lf(e),className:"hover:opacity-80",children:(0,n.jsx)(i.Z,{className:"w-2.5 h-2.5"})})]},e)),(0,n.jsx)("input",{type:"text",placeholder:0===t7.length?"City, country, or Remote...":"Add...",value:t1,onChange:e=>{t2(e.target.value),nj(-1),nk()},onFocus:()=>nk(),onBlur:()=>nN(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),lg(t1.trim()))},className:"text-sm bg-transparent outline-none flex-1 min-w-[50px] py-0.5"})]}),ny&&nb.length>0&&(0,n.jsx)("div",{className:"absolute z-50 mt-1 w-full bg-white rounded-lg shadow-lg border border-gray-200 max-h-40 overflow-y-auto",children:nb.map((e,t)=>(0,n.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 text-sm cursor-pointer hover:bg-gray-50",onMouseDown:t=>{t.preventDefault(),lg(e),nv(!1)},children:[(0,n.jsx)(c.Z,{className:"h-3.5 w-3.5 shrink-0 text-emerald-600",strokeWidth:2}),(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e})]},"".concat(e,"-").concat(t)))})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"block font-semibold text-gray-500 uppercase tracking-wide text-xs mb-1",children:"Work Type"}),["Remote","Hybrid","In office"].map(e=>(0,n.jsxs)("label",{className:"flex items-center gap-2 py-0.5 cursor-pointer",children:[(0,n.jsx)("input",{type:"checkbox",checked:ra.includes(e),onChange:()=>lm(e),className:"accent-[#962727]"}),e]},e))]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"block font-semibold text-gray-500 uppercase tracking-wide text-xs mb-1",children:"Experience"}),(0,n.jsxs)("select",{value:t6,onChange:e=>t3(e.target.value),className:"w-full border border-gray-200 rounded-lg px-2 py-1.5 text-sm focus:outline-none focus:border-[#962727]",children:[(0,n.jsx)("option",{value:"",children:"All levels"}),Z.KP.filter(e=>"Any"!==e).map(e=>(0,n.jsx)("option",{value:e,children:e},e))]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"block font-semibold text-gray-500 uppercase tracking-wide text-xs mb-1",children:"Schedule"}),["Full time","Part time","Internship"].map(e=>(0,n.jsxs)("label",{className:"flex items-center gap-2 py-0.5 cursor-pointer",children:[(0,n.jsx)("input",{type:"checkbox",checked:rn.includes(e),onChange:()=>lu(e),className:"accent-[#962727]"}),e]},e)),(0,n.jsxs)("label",{className:"flex items-center gap-2 py-0.5 cursor-pointer",children:[(0,n.jsx)("input",{type:"checkbox",checked:ra.includes("Gig Work"),onChange:()=>lm("Gig Work"),className:"accent-[#962727]"}),"Gig Work"]}),!tJ&&(0,n.jsxs)("label",{className:"flex items-center gap-2 py-0.5 cursor-pointer",children:[(0,n.jsx)("input",{type:"checkbox",checked:rx||(null==X?void 0:X.kind)==="surveys",onChange:()=>{if((null==X?void 0:X.kind)==="surveys"){en("/jobs");return}let e=!rx;rg(e),ry({surveys:e})},className:"accent-[#962727]"}),"Surveys"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"block font-semibold text-gray-500 uppercase tracking-wide text-xs mb-1",children:"Industry"}),(0,n.jsx)("div",{className:Z._s,children:tG.map(e=>{let{allSelected:t}=n7(e);return(0,n.jsxs)("label",{className:"flex cursor-pointer items-center gap-2 truncate py-0.5",children:[(0,n.jsx)("input",{type:"checkbox",checked:t,onChange:()=>n3(e),className:"flex-shrink-0 accent-[#962727]"}),(0,n.jsx)("span",{className:"truncate",children:e})]},e)})})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"block font-semibold text-gray-500 uppercase tracking-wide text-xs mb-1",children:"Role"}),(0,n.jsx)("div",{className:Z._s,children:eA._.map(e=>(0,n.jsxs)("label",{className:"flex cursor-pointer items-center gap-2 truncate py-0.5",children:[(0,n.jsx)("input",{type:"checkbox",checked:ru.
1includes(e),onChange:()=>lh(e),className:"flex-shrink-0 accent-[#962727]"}),(0,n.jsx)("span",{className:"truncate",children:e})]},e))})]})]}),(0,n.jsx)("div",{className:"min-h-0 flex-1 ".concat(Z.RP),"aria-hidden":!0})]})]})}),(0,n.jsx)(ey,{mainClassName:tl?"jobs-quiet-scroll min-h-0 flex-1 overflow-y-auto":"jobs-quiet-scroll min-h-0 flex-1 overflow-y-auto p-4",singleColumn:tl,topSlot:void 0,isInitialLoading:lo,isIncrementalLoading:eR,currentJobs:ls,jobListFetchFailed:ev,clearAllFilters:nX,recoveryActions:ld,suggestedJobs:nr,suggestionType:nl,suggestionRole:ns,loadMore:ll,goToPage:la,loadingMore:eR,currentPage:eJ,totalPages:rw,hasMoreJobs:rk,savedJobIdSet:rZ,isSavingJob:rA,handleToggleSavedJob:rO,handleJobClick:lv,showBackToJobsInEmpty:tJ||tD,onBackToJobs:()=>er.push("/jobs")})]}):(0,n.jsxs)("div",{className:"flex font-sans ".concat(tn?"mx-auto w-full max-w-[1400px] px-4 xl:px-6 items-start":"w-full min-h-[calc(100dvh-10rem)] items-start ".concat(Z.RP)),children:[(0,n.jsx)("aside",{className:"".concat(tn?"hidden":"hidden lg:flex w-80"," jobs-quiet-scroll sticky z-30 shrink-0 flex-col border-r border-gray-200 overflow-y-auto overscroll-y-contain ").concat(Z.RP),style:{top:Z.iI,maxHeight:"calc(100dvh - ".concat(Z.iI,")")},children:(0,n.jsx)("div",{className:"shrink-0 border-b border-gray-100 px-4 py-4 sm:py-5 ".concat(Z.RP),children:(0,n.jsxs)("div",{className:"w-full space-y-4 text-sm",children:[(rv||nY)&&(0,n.jsxs)("div",{className:"space-y-2 border-b border-gray-100 pb-4",children:[rv?(0,n.jsx)("button",{type:"button",onClick:()=>lx(),className:"w-full rounded-lg bg-[#962727] py-2 text-sm font-medium text-white transition hover:bg-[#7a1f1f]",children:"Apply filters"}):null,nY?(0,n.jsx)("button",{type:"button",onClick:()=>{nX(),en("/jobs",{replace:!0})},className:"w-full rounded-lg border border-[#962727]/20 py-1.5 text-sm text-[#962727] transition hover:bg-[#962727]/5",children:"Clear all filters"}):null]}),n0()]})})}),(0,n.jsxs)("main",{className:"flex flex-col ".concat(tn?"w-full min-w-0":"min-w-0 flex-1 ".concat(Z.RP)),children:[(0,n.jsxs)("div",{ref:rX,className:"relative flex-shrink-0 border-b border-gray-100 ".concat(tn?"grid grid-cols-1 items-center gap-2 px-4 pb-3 pt-3 xl:grid-cols-[minmax(0,7fr)_minmax(0,3fr)] xl:gap-x-4":"space-y-4 px-5 py-5 md:px-6 md:py-6 ".concat(Z.RP)),children:[!tn&&(0,n.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-3",children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-[20px]",children:[(0,n.jsx)(Q,{className:"text-lg font-bold leading-tight text-[#1A1A1A]",children:(null==X?void 0:X.kind)==="aiLab"?"Remote Freelancing Jobs":(null==X?void 0:X.kind)==="flexible"?"Part-time Jobs":"Job Results"}),(0,n.jsx)("span",{className:Z.zU,children:r5>0?r4:li?lc:"0 matching"})]}),(0,n.jsxs)("div",{className:"flex flex-wrap items-start gap-2",children:[(tJ||tD)&&(0,n.jsxs)("button",{type:"button",onClick:()=>er.push("/jobs"),className:0!==r5||lo?e7:"inline-flex shrink-0 items-center gap-2 whitespace-nowrap rounded-lg border-2 border-[#962727] bg-[#962727] px-3.5 py-2 text-[13px] font-bold text-white shadow-sm transition hover:bg-[#7a1f1f]",children:[(0,n.jsx)(g.Z,{className:"h-4 w-4"}),"Back to Jobs"]}),!tJ&&(0,n.jsx)(eO,{label:"Remote freelance",buttonClassName:e$,onNavigate:()=>er.push("/remote-freelancing")}),!tD&&(0,n.jsx)("button",{type:"button",onClick:()=>er.push("/part-time-jobs"),className:e$,children:"Part-time"}),(0,n.jsxs)("button",{type:"button",onClick:()=>rV(!0),className:"lg:hidden flex shrink-0 items-center gap-1 rounded-lg border border-gray-200 px-3 py-2 text-sm font-medium hover:bg-gray-50 ".concat(Z.bd),children:[(0,n.jsx)(f.Z,{className:"h-3.5 w-3.5"}),"Filters"]})]})]}),(0,n.jsx)("form",{onSubmit:lb,className:"relative flex items-center gap-2.5 ".concat(tn?"w-full min-w-0":""),children:(0,n.jsxs)("div",{className:"flex h-[52px] min-w-0 flex-1 items-center rounded-full border border-gray-200/90 bg-white shadow-[0_2px_5px_rgba(42,38,32,0.07),0_12px_26px_-10px_rgba(42,38,32,0.28)] transition-shadow duration-200 hover:shadow-[0_2px_6px_rgba(42,38,32,0.08),0_14px_30px_-10px_rgba(42,38,32,0.32)] focus-within:border-[#962727]/70 focus-within:shadow-[0_2px_6px_rgba(150,39,39,0.10),0_14px_30px_-10px_rgba(150,39,39,0.32)]",children:[(0,n.jsxs)("div",{className:"relative flex h-full min-w-0 flex-[1.25] items-center",onMouseDownCapture:nE,onBlurCapture:e=>{e.currentTarget.contains(e.relatedTarget)||nP()},children:[(0,n.jsx)(b.Z,{className:"pointer-events-none absolute left-4 top-1/2 h-[18px] w-[18px] -translate-y-1/2 text-gray-400"}),(0,n.jsx)("input",{type:"text",role:"combobox","aria-expanded":nD,"aria-controls":"job-listing-keyword-suggest-mobile-listbox","aria-activedescendant":nR>=0?"job-listing-keyword-suggest-mobile-opt-".concat(nR):void 0,value:tX,onChange:e=>{tQ(e.target.value),nM(!0),nT(-1)},onFocus:()=>nM(!0),onKeyDown:e=>{if("Escape"===e.key){nE(),nM(!1),nT(-1);return}if(!nD)return;let t=nF.length;if("ArrowDown"===e.key){if(e.preventDefault(),0===t)return;nT(e=>e<0?0:(e+1)%t)}else if("ArrowUp"===e.key){if(e.preventDefault(),0===t)return;nT(e=>e<=0?t-1:e-1)}else"Enter"===e.key&&nR>=0&&nB[nR]&&(e.preventDefault(),nZ(nB[nR]))},placeholder:tU?tz||"Listening...":"Job title, company, or keyword",className:"h-full w-full rounded-l-full bg-transparent pl-11 pr-11 text-[15px] text-gray-900 placeholder:text-gray-400 focus:outline-none"}),(0,n.jsx)(S.Z,{onTranscript:e=>tQ(e),onInterim:e=>tO(e),onFinalTranscript:ly,onListeningChange:e=>tK(e),className:"absolute right-2 top-1/2 -translate-y-1/2"}),nD?(0,n.jsx)("div",{className:"absolute left-0 top-full z-[60] mt-2 max-h-64 w-full overflow-y-auto rounded-xl border border-gray-200 bg-white shadow-lg",children:(0,n.jsx)(ej.BY,{idPrefix:"job-listing-keyword-suggest-desktop",suggestions:nJ,loading:nI,noMatches:n_,activeFlatIndex:nR,onPick:nZ})}):null]}),(0,n.jsx)("span",{className:"h-6 w-px shrink-0 bg-gray-200","aria-hidden":!0}),(0,n.jsxs)("div",{ref:nC,"data-location-autocomplete":!0,className:"relative flex h-full min-w-0 flex-1 items-center",onMouseDownCapture:nS,onBlurCapture:e=>{e.currentTarget.contains(e.relatedTarget)||nN()},children:[(0,n.jsx)(c.Z,{className:"pointer-events-none absolute left-4 top-1/2 h-[18px] w-[18px] -translate-y-1/2 text-gray-400"}),(0,n.jsx)("input",{type:"text",role:"combobox","aria-label":"City, country, or remote","aria-expanded":ny,"aria-autocomplete":"list",autoComplete:"address-level2",value:r1,onChange:e=>{r$||r0(!0),t2(e.target.value),nj(-1),nk()},onFocus:()=>{var e;r0(!0),t2(null!==(e=t7[0])&&void 0!==e?e:""),nk()},onBlur:()=>r0(!1),onKeyDown:e=>{if("Escape"===e.key){nv(!1);return}if("ArrowDown"===e.key){e.preventDefault(),nj(e=>Math.min(e+1,nb.length-1));return}if("ArrowUp"===e.key){e.preventDefault(),nj(e=>Math.max(e-1,0));return}if("Enter"===e.key&&ny&&nw>=0){let t=nb[nw];t&&(e.preventDefault(),r2(t),nv(!1),nj(-1))}},placeholder:'City, country, or "remote"',className:"h-full w-full bg-transparent pl-11 pr-8 text-[15px] text-gray-900 placeholder:text-gray-400 focus:outline-none"}),!r$&&t7.length>0&&(0,n.jsx)("button",{type:"button",onMouseDown:e=>e.preventDefault(),onClick:()=>r2(""),"aria-label":"Clear location",className:"absolute right-2 top-1/2 flex h-6 w-6 -translate-y-1/2 items-center justify-center rounded-full text-gray-400 transition hover:bg-gray-100 hover:text-gray-700",children:(0,n.jsx)(i.Z,{className:"h-4 w-4"})}),ny&&nb.length>0&&(0,n.jsx)("div",{className:"jobs-quiet-scroll absolute left-0 top-full z-[60] mt-2 max-h-64 w-full overflow-y-auto rounded-xl border border-gray-200 bg-white shadow-lg",children:nb.map((e,t)=>(0,n.jsxs)("button",{type:"button",className:"flex w-full items-center gap-2 px-3 py-2 text-left text-[14px] ".concat(t===nw?"bg-gray-100":"hover:bg-gray-50"),onMouseDown:t=>{t.preventDefault(),r2(e),nv(!1),nj(-1)},children:[(0,n.jsx)(c.Z,{className:"h-3.5 w-3.5 shrink-0 text-emerald-600",strokeWidth:2}),(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e})]},"".concat(e,"-").concat(t)))})]}),(0,n.jsx)("button",{type:"submit",onMouseDown:e=>e.preventDefault(),className:"mr-1.5 h-10 shrink-0 rounded-full bg-[#962727] px-6 text-[14px] font-semibold text-white shadow-[0_1px_2px_rgba(150,39,39,0.30)] transition hover:bg-[#7a1f1f] hover:shadow-[0_2px_8px_-2px_rgba(150,39,39,0.45)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#962727]/40 focu
1s-visible:ring-offset-2",children:"Search"})]})}),lj,n1()]}),(0,n.jsx)("div",{className:nG?"w-full":tn?"flex w-full items-start":"contents",children:nG?(0,n.jsx)(eu,{jobs:ls,categories:tG,locations:e1,popularSearches:e0,onSearch:e=>{let t=e.trim();t&&(tQ(t),t0(t),ry({searchTerm:t}))},onSelectLocation:r2,onJobClick:lv,savedJobIdSet:rZ,isSavingJob:rA,handleToggleSavedJob:rO,isAuthenticated:rW,userName:null!==(r=null==rU?void 0:rU.displayName)&&void 0!==r?r:null,userEmail:null!==(d=null==rU?void 0:rU.email)&&void 0!==d?d:null,userPhotoURL:null!==(R=null==rU?void 0:rU.photoURL)&&void 0!==R?R:null,userHeadline:null!==(T=null==rK?void 0:rK.currentJobTitle)&&void 0!==T?T:null,userLocation:null!==(E=null==rK?void 0:rK.location)&&void 0!==E?E:null,userCompany:null!==(P=null==rK?void 0:rK.currentCompany)&&void 0!==P?P:null,onSignInRequired:()=>{let e=window.location.pathname+window.location.search;er.push("/login?redirect=".concat(encodeURIComponent(e)))}}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:tn?"flex min-h-0 min-w-[504px] shrink basis-0 grow-[2] flex-col":"contents",children:[lk,(0,n.jsx)(L,{open:rq,onOpenChange:rV,children:(0,n.jsxs)(J,{side:"left",className:"flex h-full max-h-[100dvh] w-[320px] max-w-[85vw] flex-col overflow-hidden p-0 ".concat(Z.RP),children:[(0,n.jsx)(I,{className:"shrink-0 border-b border-gray-100 px-4 pb-2 pt-4 ".concat(Z.RP),children:(0,n.jsx)(_,{className:"text-base font-semibold",children:"Filters"})}),(0,n.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col overflow-y-auto ".concat(Z.RP),children:[(0,n.jsxs)("div",{className:"shrink-0 space-y-5 px-3 pt-3 pb-5 text-sm ".concat(Z.RP),children:[(rv||nY)&&(0,n.jsxs)("div",{className:"space-y-2 border-b border-gray-100 pb-4",children:[rv?(0,n.jsx)("button",{type:"button",onClick:()=>{lx(),rV(!1)},className:"w-full rounded-lg bg-[#962727] py-2 text-sm font-medium text-white hover:bg-[#7a1f1f]",children:"Apply filters"}):null,nY?(0,n.jsx)("button",{type:"button",onClick:()=>{nX(),rV(!1)},className:"w-full rounded-lg border border-[#962727]/20 py-1.5 text-sm text-[#962727] transition hover:bg-[#962727]/5",children:"Clear all filters"}):null]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"block font-semibold text-gray-500 uppercase tracking-wide text-xs mb-1",children:"Location"}),(0,n.jsxs)("div",{className:"relative",onMouseDownCapture:nS,children:[(0,n.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 border border-gray-200 rounded-lg px-2 py-1.5 w-full focus-within:border-[#962727]",children:[t7.map(e=>(0,n.jsxs)("span",{className:"flex items-center gap-0.5 bg-[#962727]/10 text-[#962727] px-1.5 py-0.5 rounded-full text-xs",children:[e,(0,n.jsx)("button",{type:"button",onClick:()=>lf(e),className:"hover:opacity-80",children:(0,n.jsx)(i.Z,{className:"w-2.5 h-2.5"})})]},e)),(0,n.jsx)("input",{type:"text",placeholder:0===t7.length?"City, country, or Remote...":"Add...",value:t1,onChange:e=>{t2(e.target.value),nj(-1),nk()},onFocus:()=>nk(),onBlur:()=>nN(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),lg(t1.trim()))},className:"text-sm bg-transparent outline-none flex-1 min-w-[50px] py-0.5"})]}),ny&&nb.length>0&&(0,n.jsx)("div",{className:"absolute z-50 mt-1 w-full bg-white rounded-lg shadow-lg border border-gray-200 max-h-40 overflow-y-auto",children:nb.map((e,t)=>(0,n.jsxs)("div",{className:"flex items-center gap-2 px-3 py-2 text-sm cursor-pointer hover:bg-gray-50",onMouseDown:t=>{t.preventDefault(),lg(e),nv(!1)},children:[(0,n.jsx)(c.Z,{className:"h-3.5 w-3.5 shrink-0 text-emerald-600",strokeWidth:2}),(0,n.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e})]},"".concat(e,"-").concat(t)))})]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"block font-semibold text-gray-500 uppercase tracking-wide text-xs mb-1",children:"Work Type"}),["Remote","Hybrid","In office"].map(e=>(0,n.jsxs)("label",{className:"flex items-center gap-2 py-0.5 cursor-pointer",children:[(0,n.jsx)("input",{type:"checkbox",checked:ra.includes(e),onChange:()=>lm(e),className:"accent-[#962727]"}),e]},e))]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"block font-semibold text-gray-500 uppercase tracking-wide text-xs mb-1",children:"Experience"}),(0,n.jsxs)("select",{value:t6,onChange:e=>t3(e.target.value),className:"w-full border border-gray-200 rounded-lg px-2 py-1.5 text-sm focus:outline-none focus:border-[#962727]",children:[(0,n.jsx)("option",{value:"",children:"All levels"}),Z.KP.filter(e=>"Any"!==e).map(e=>(0,n.jsx)("option",{value:e,children:e},e))]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"block font-semibold text-gray-500 uppercase tracking-wide text-xs mb-1",children:"Schedule"}),["Full time","Part time","Internship"].map(e=>(0,n.jsxs)("label",{className:"flex items-center gap-2 py-0.5 cursor-pointer",children:[(0,n.jsx)("input",{type:"checkbox",checked:rn.includes(e),onChange:()=>lu(e),className:"accent-[#962727]"}),e]},e)),(0,n.jsxs)("label",{className:"flex items-center gap-2 py-0.5 cursor-pointer",children:[(0,n.jsx)("input",{type:"checkbox",checked:ra.includes("Gig Work"),onChange:()=>lm("Gig Work"),className:"accent-[#962727]"}),"Gig Work"]})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"block font-semibold text-gray-500 uppercase tracking-wide text-xs mb-1",children:"Industry"}),(0,n.jsx)("div",{className:Z._s,children:tG.map(e=>{let{allSelected:t}=n7(e);return(0,n.jsxs)("label",{className:"flex cursor-pointer items-center gap-2 truncate py-0.5",children:[(0,n.jsx)("input",{type:"checkbox",checked:t,onChange:()=>n3(e),className:"flex-shrink-0 accent-[#962727]"}),(0,n.jsx)("span",{className:"truncate",children:e})]},e)})})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"block font-semibold text-gray-500 uppercase tracking-wide text-xs mb-1",children:"Role"}),(0,n.jsx)("div",{className:Z._s,children:eA._.map(e=>(0,n.jsxs)("label",{className:"flex cursor-pointer items-center gap-2 truncate py-0.5",children:[(0,n.jsx)("input",{type:"checkbox",checked:ru.
1includes(e),onChange:()=>lh(e),className:"flex-shrink-0 accent-[#962727]"}),(0,n.jsx)("span",{className:"truncate",children:e})]},e))})]})]}),(0,n.jsx)("div",{className:"min-h-0 flex-1 bg-[#F5F0EC]","aria-hidden":!0})]})]})}),(0,n.jsx)(ey,{mainClassName:tn?"jobs-quiet-scroll":tl?"jobs-quiet-scroll min-h-0 flex-1 overflow-y-auto":"jobs-quiet-scroll min-h-0 flex-1 overflow-y-auto p-4",topSlot:lw||void 0,isInitialLoading:lo,isIncrementalLoading:eR,currentJobs:ls,jobListFetchFailed:ev,clearAllFilters:nX,recoveryActions:ld,suggestedJobs:nr,suggestionType:nl,suggestionRole:ns,loadMore:ll,goToPage:la,loadingMore:eR,currentPage:eJ,totalPages:rw,hasMoreJobs:rk,savedJobIdSet:rZ,isSavingJob:rA,handleToggleSavedJob:rO,handleJobClick:lv,showBackToJobsInEmpty:tJ||tD,onBackToJobs:()=>er.push("/jobs"),selectedJobId:ty,singleColumn:tl})]}),tT&&tL?(0,n.jsx)(e9,{jobId:tL,job:tP,entryKey:null!==(z=null==td?void 0:td.entryKey)&&void 0!==z?z:tL,initialScrollTop:null!==(O=null==td?void 0:td.paneScrollTop)&&void 0!==O?O:0,canGoBackToPrevious:!!((null==td?void 0:td.view)==="job"&&td.jobId===tL&&"similar"===td.source&&td.parentJobId),onBackToPrevious:tx,onSelectSimilarJob:(e,t)=>{if((0,eM.Y)(String(e.id))){er.push((0,eM.W)(String(e.id)));return}let r=tw.current,n=String(e.id);for(r.delete(n),r.set(n,e);r.size>24;){let e=r.keys().next().value;if(void 0===e)break;r.delete(e)}th(n)},onPaneScrollTopChange:tk,viewingRelatedJob:!!((null==td?void 0:td.source)==="similar"&&td.jobId===tL&&!ea.some(e=>String(e.id)===tL)),onBackToJobs:()=>{tn&&eh()&&!X&&!nY||(tS.current=!0),(0,K.W)({url:(0,U.oD)({path:ts.path,filters:ts.filters,page:1,jobId:null,passthrough:ts.passthrough}),paneEntry:null},"push")}}):null]})})]})]})}),(0,n.jsx)(F.Z,{open:!!rB,title:"Remove saved job?",description:"This job will be removed from your saved list.",confirmLabel:"Remove",onConfirm:()=>{if(!(null==rB?void 0:rB.id)){rD(null);return}(0,A.zg)(rB.id),(0,M.Gy)(rB.id),rT(null),rC(e=>e.filter(e=>e!==rB.id)),rD(null)},onCancel:()=>rD(null)}),(0,n.jsx)(eS.Z,{isOpen:rL,onClose:()=>rE(!1),initialMode:"login"})]})}},87682:function(e,t,r){r.d(t,{O:function(){return s},U:function(){return o}});var n=r(57437),l=r(2265);let a=(0,l.createContext)(null);function s(e){let{children:t}=e,[r,s]=(0,l.useState)(null),o=(0,l.useRef)(null),i=(0,l.useRef)(null),c=(0,l.useCallback)(e=>{let t=Symbol("saved-search-menu-adapter");o.current={token:t,adapter:e},s(e);let r=i.current;return r&&(i.current=null,e.applyPreset(r)),()=>{var e;(null===(e=o.current)||void 0===e?void 0:e.token)===t&&(o.current=null,s(null))}},[]),d=(0,l.useCallback)(e=>{var t;let r=null===(t=o.current)||void 0===t?void 0:t.adapter;return r?(r.applyPreset(e),!0):(i.current=e,!1)},[]),u=(0,l.useMemo)(()=>({adapter:r,registerAdapter:c,applyOrQueuePreset:d}),[r,d,c]);return(0,n.jsx)(a.Provider,{value:u,children:t})}function o(){let e=(0,l.useContext)(a);if(!e)throw Error("useSavedSearchMenu must be used within SavedSearchMenuProvider");return e}},2015:function(e,t,r){r.d(t,{FD:function(){return u},KT:function(){return i},M6:function(){return s},NU:function(){return m},SD:function(){return o},fA:function(){return c},tJ:function(){return a},z3:function(){return d}});var n=r(47196);let l=e=>[...e].filter(Boolean).sort();function a(e,t){if(!e)return[];let r=String(e).trim();return r?r.includes("|")?r.split("|").map(e=>e.trim()).filter(Boolean):t.includes(r)?[r]:r.includes(",")?r.split(",").map(e=>e.trim()).filter(Boolean):[r]:[]}function s(e){return{...e,selectedLocations:l(e.selectedLocations),workSchedule:l(e.workSchedule),employmentType:l(e.employmentType),selectedCategories:l(e.selectedCategories),selectedSubcategories:l(e.selectedSubcategories),selectedRoles:l(e.selectedRoles)}}function o(e){return 0===e.selectedLocations.length&&0===e.workSchedule.length&&0===e.employmentType.length&&0===e.selectedCategories.length&&0===e.selectedSubcategories.length&&0===e.selectedRoles.length&&!e.experience&&!e.dateFilter&&"newest"===e.sortBy&&null==e.salaryMin&&null==e.salaryMax&&!e.surveys}function i(e){return Array.from(new Set((n.C[e]||[]).filter(Boolean)))}function c(e,t){let r=new Set(t);return e.filter(e=>{let t=i(e);return 0!==t.length&&t.every(e=>r.has(e))})}function d(e,t){if(0===e.length)return!1;if(0===t.length)return!0;let r=new Set(e),n=new Set;
1return t.forEach(e=>{i(e).forEach(e=>n.add(e))}),!(n.size>0&&Array.from(n).every(e=>r.has(e))&&Array.from(r).every(e=>n.has(e)))}function u(e,t){var r,n,l,a;let s=(e,t)=>e.length===t.length&&[...e].sort().every((e,r)=>e===[...t].sort()[r]);return e.searchTerm===t.searchTerm&&s(e.selectedLocations,t.selectedLocations)&&e.experience===t.experience&&s(e.workSchedule,t.workSchedule)&&s(e.employmentType,t.employmentType)&&s(e.selectedCategories,t.selectedCategories)&&s(e.selectedSubcategories,t.selectedSubcategories)&&s(e.selectedRoles,t.selectedRoles)&&e.dateFilter===t.dateFilter&&e.sortBy===t.sortBy&&(null!==(r=e.salaryMin)&&void 0!==r?r:void 0)===(null!==(n=t.salaryMin)&&void 0!==n?n:void 0)&&(null!==(l=e.salaryMax)&&void 0!==l?l:void 0)===(null!==(a=t.salaryMax)&&void 0!==a?a:void 0)&&e.surveys===t.surveys}function m(e){let t=[];return e.employmentType.length>0&&t.push(...e.employmentType),e.workSchedule.length>0&&t.push(...e.workSchedule),e.selectedLocations.length>0&&t.push(e.selectedLocations.length<=2?e.selectedLocations.join(", "):"".concat(e.selectedLocations[0]," +").concat(e.selectedLocations.length-1)),e.selectedCategories.length>0&&t.push(e.selectedCategories.length<=2?e.selectedCategories.join(", "):"".concat(e.selectedCategories[0]," +").concat(e.selectedCategories.length-1)),e.selectedRoles.length>0&&t.push(e.selectedRoles.length<=2?e.selectedRoles.join(", "):"".concat(e.selectedRoles[0]," +").concat(e.selectedRoles.length-1)),e.experience&&t.push(e.experience),e.searchTerm&&t.push('"'.concat(e.searchTerm,'"')),t.length>0?t.join(" \xb7 "):"My search"}},36726:function(e,t,r){r.d(t,{KP:function(){return u},Mp:function(){return s},RP:function(){return i},Tk:function(){return a},_s:function(){return m},bd:function(){return c},iI:function(){return o},pm:function(){return l},yc:function(){return n},zU:function(){return d}});let n=[{label:"Home",path:"/"},{label:"Jobs",path:"/jobs"}],l=20,a="joblet:jobs-inpage-search",s=200,o="4.25rem",i="bg-[#FDFBF7]",c="bg-white",d="inline-flex shrink-0 items-center whitespace-nowrap rounded-full bg-gray-100 px-2 py-0.5 text-xs font-medium text-gray-600",u=["Any","0-1 Years","2-5 Years","5-7 Years","7-10 Years","10+ Years"],m="max-h-[calc(7*1.5rem+0.375rem)] overflow-y-auto overscroll-y-contain rounded-lg border border-gray-200 bg-[#fafafa] px-2 py-1.5"},89646:function(e,t,r){r.d(t,{C6:function(){return u},HE:function(){return f},Uu:function(){return p},VP:function(){return i},oD:function(){return x},u7:function(){return m},wA:function(){return g}});var n=r(47196),l=r(2015),a=r(36726);let s="#job=",o=new Set(["keyword","location","experience","workSchedule","employmentType","category","subcategory","standardRole","sort","date","surveys","page"]);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{searchTerm:"",selectedLocations:[],experience:"",workSchedule:[],employmentType:[],selectedCategories:[],selectedSubcategories:[],selectedRoles:[],dateFilter:"",sortBy:"newest",salaryMin:void 0,salaryMax:void 0,surveys:!1,...e}}function c(e,t){return e?e.split(t):[]}function d(e,t){return t?e.includes(t)?e:[t,...e]:e}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.keys(n.C),a=d((0,l.tJ)(e.get("category"),r),t.category),s=new Set(c(e.get("subcategory"),","));a.forEach(e=>{r.includes(e)&&(0,l.KT)(e).forEach(e=>s.add(e))});let o=Array.from(s),u=d((0,l.fA)(r,o),t.category);return i({searchTerm:e.get("keyword")||"",selectedLocations:d(c(e.get("location"),"|"),t.location),experience:e.get("experience")||"",workSchedule:c(e.get("workSchedule"),","),employmentType:d(c(e.get("employmentType"),","),t.employmentType),selectedCategories:u,selectedSubcategories:o,selectedRoles:d(d(c(e.get("standardRole"),"|").map(e=>e.trim()).filter(Boolean),t.role),t.roleCategory),dateFilter:e.get("date")||"",sortBy:e.get("sort")||"newest",surveys:"1"===e.get("surveys")})}function m(e){if(!e.startsWith(s))return null;let t=e.slice(s.length);if(!t)return null;try{return decodeURIComponent(t)}catch(e){return t}}function h(e){return!Number.isFinite(e)||e<=0?1:Math.min(a.Mp,Math.max(1,Math.trunc(e)))}function p(e){let t=new URLSearchParams(e.search),r=[];for(let[e,n]of t)o.has(e)||r.push([e,n]);return{path:e.pathname||"/jobs",filters:u(t),page:h(Number(t.get("page")||1)),jobId:m(e.hash),passthrough:r}}function x(e){var t;let r=new URLSearchParams;for(let[n,l]of null!==(t=e.passthrough)&&void 0!==t?t:[])r.append(n,l);let{filters:n}=e;n.searchTerm&&r.set("keyword",n.searchTerm),n.selectedLocations.length>0&&r.set("location",n.selectedLocations.join("|")),n.experience&&r.set("experience",n.experience),n.workSchedule.length>0&&r.set("workSchedule",n.workSchedule.join(",")),n.employmentType.length>0&&r.set("employmentType",n.employmentType.join(",")),n.selectedCategories.length>0&&r.set("category",n.selectedCategories.join("|")),(0,l.z3)(n.selectedSubcategories,n.selectedCategories)&&r.set("subcategory",n.selectedSubcategories.join(",")),n.selectedRoles.length>0&&r.set("standardRole",n.selectedRoles.join("|")),n.sortBy&&"newest"!==n.sortBy&&r.set("sort",n.sortBy),n.dateFilter&&r.set("date",n.dateFilter),n.surveys&&r.set("surveys","1");let a=h(e.page);a>1&&r.set("page",String(a));let o=r.toString(),i=e.jobId?"".concat(s).concat(encodeURIComponent(e.jobId)):"";return"".concat(e.path||"/jobs").concat(o?"?".concat(o):"").concat(i)}function g(e,t){var r;return(null==t?void 0:t.kind)==="surveys"||!!(null===(r=e.searchTerm)||void 0===r?void 0:r.trim())||!(0,l.SD)(e)}function f(e,t){return e.jobId||t.arrivedJobId?"job":t.paneEnabled&&t.discoveryEnabled&&!t.pathFilter&&!g(e.filters,t.pathFilter)&&e.page<=1?"discovery":"results"}},56559:function(e,t,r){r.d(t,{RL:function(){return h},vS:function(){return m}});var n=r(2265),l=r(89646),a=r(71877),s=r(43966);function o(){return(0,l.u7)(window.location.hash)}function i(){let e=window.history.state,t=null==e?void 0:e.__jobletPane;return t&&1===t.version&&t.entryKey&&t.browseKey&&("job"===t.view||"results"===t.view)?t:null}function c(){return"".concat(Date.now().toString(36),"-").concat(Math.random().toString(36).slice(2,9))}function d(){return"".concat(window.location.pathname).concat(window.location.search)}function u(e){return"".concat(d()).concat("#job=").concat(encodeURIComponent(e))}function m(){return"/jobs"===window.location.pathname&&((0,s.W)({url:"/jobs",paneEntry:null},"push"),window.scrollTo({top:0,left:0,behavior:"auto"}),!0)}
1function h(e){let[t,r]=(0,n.useState)(null),[l,m]=(0,n.useState)(null),h=(0,n.useCallback)(()=>{r(o()),m(i())},[]);(0,n.useEffect)(()=>{let t=o(),r=i();if(t&&(!r||"job"!==r.view||r.jobId!==t)){let r={version:1,view:"job",source:"deep-link",entryKey:c(),jobId:t,rootJobId:t,browseKey:e};(0,s.W)({url:u(t),paneEntry:r},"replace")}return h(),window.addEventListener("hashchange",h),window.addEventListener("popstate",h),window.addEventListener(a.q,h),()=>{window.removeEventListener("hashchange",h),window.removeEventListener("popstate",h),window.removeEventListener(a.q,h)}},[h]);let p=(0,n.useCallback)(()=>{let t={version:1,view:"results",source:"results",entryKey:c(),browseKey:e};(0,s.W)({url:d(),paneEntry:t},"replace")},[e]);(0,n.useEffect)(()=>{let t=o(),n=i();if((null==n?void 0:n.browseKey)===e&&("results"===n.view&&!t||"job"===n.view&&n.jobId===t)){r(t),m(n);return}if(n&&"job"===n.view&&t&&n.jobId===t&&"similar"!==n.source&&n.browseKey!==e){(0,s.W)({url:window.location.href,paneEntry:{...n,browseKey:e}},"replace");return}n||t||l?p():(r(null),m(null))},[e,l,p]);let x=(0,n.useCallback)((t,r,n)=>{if(!t)return;let l={version:1,view:"job",source:n,entryKey:c(),jobId:t,rootJobId:t,listAnchorJobId:t,browseKey:e,paneScrollTop:0};(0,s.W)({url:u(t),paneEntry:l},r)},[e]),g=(0,n.useCallback)(e=>x(e,"push","list"),[x]),f=(0,n.useCallback)(e=>x(e,"replace","auto"),[x]),b=(0,n.useCallback)(t=>{if(!t)return;let r=o(),n=i();if(!r||!n||"job"!==n.view||n.browseKey!==e){x(t,"push","list");return}let l={...n,paneScrollTop:0};(0,s.W)({url:window.location.href,paneEntry:l},"replace");let a={version:1,view:"job",source:"similar",entryKey:c(),jobId:t,parentJobId:r,rootJobId:n.rootJobId||r,listAnchorJobId:n.listAnchorJobId,browseKey:e,paneScrollTop:0};(0,s.W)({url:u(t),paneEntry:a},"push")},[e,x]),y=(0,n.useCallback)(()=>{let t={version:1,view:"results",source:"results",entryKey:c(),browseKey:e};(0,s.W)({url:d(),paneEntry:t},"push")},[e]),v=(0,n.useCallback)(()=>{(0,s.W)({url:d(),paneEntry:null},"push")},[]);return{jobId:t,paneEntry:l,openJob:g,selectJob:f,drillJob:b,showBrowse:y,showDiscovery:v,replaceWithBrowse:p,clearJob:(0,n.useCallback)(()=>{(0,s.W)({url:d(),paneEntry:null},"replace")},[]),backToParent:(0,n.useCallback)(()=>{let e=i();(null==e?void 0:e.view)==="job"&&"similar"===e.source&&e.parentJobId&&window.history.back()},[]),savePaneScrollTop:(0,n.useCallback)(t=>{if(!Number.isFinite(t))return;let r=i();if(!r||"job"!==r.view||r.browseKey!==e)return;let n={...r,paneScrollTop:Math.max(0,Math.round(t))};(0,s.W)({url:window.location.href,paneEntry:n},"replace")},[e])}}},74324:function(e,t,r){r.d(t,{W:function(){return a},Y:function(){return l}});let n=new Set([]);function l(e){let t=String(null!=e?e:"").trim();return!!t&&n.has(t)}function a(e){let t=String(null!=e?e:"").trim();return"/jobs/".concat(encodeURIComponent(t),"/form")}},9879:function(e,t,r){r.d(t,{V6:function(){return s},VK:function(){return o},a7:function(){return a}});var n=r(13580),l=r(74324);function a(e){var t;let r=String(null!==(t=null==e?void 0:e.id)&&void 0!==t?t:"");return(0,l.Y)(r)?(0,l.W)(r):r.startsWith("talroo-")||(null==e?void 0:e.sourceRef)==="talroo"?(null==e?void 0:e.applyUrl)||"#":(0,n.v2)(e)}function s(e){var t;return String(null!==(t=null==e?void 0:e.id)&&void 0!==t?t:"").startsWith("talroo-")||(null==e?void 0:e.sourceRef)==="talroo"}function o(e,t){if(function(e){var t;let r=String(null!==(t=null==e?void 0:e.id)&&void 0!==t?t:"");return!((0,l.Y)(r)||r.startsWith("talroo-")||(null==e?void 0:e.sourceRef)==="talroo")}(e)){var r;return t?(r=e.id,"/jobs#job=".concat(encodeURIComponent(String(null!=r?r:"")))):a(e)}}},3718:function(e,t,r){r.d(t,{b:function(){return o},sk:function(){return s}});var n=r(86185),l=r(47196),a=r(94487);function s(e){return String(e||"").toLowerCase().replace(/&/g," and ").replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function o(e){return"/jobs/category/".concat(s(e))}r(92029),(()=>{let e=new Map,t=t=>{let r=s(t);r&&!e.has(r)&&e.set(r,t)};for(let e of Object.keys(l.C))t(e);for(let{slug:e}of a.O)t(e);return Array.from(e.values())})().map(e=>[s(e),e]),n._.map(e=>[s(e),e])},62293:function(e,t,r){r.d(t,{Gy:function(){return s},HP:function(){return a},s9:function(){return l}});var n=r(45366);
1async function l(){try{let e=await n.h.getSavedJobsV2();if(e.success&&e.data)return e.data.savedJobIds||[]}catch(e){}return[]}async function a(e){try{await n.h.saveJobV2({jobId:String(e.id),jobTitle:"string"==typeof e.title?e.title:void 0,company:e.company&&"object"==typeof e.company?e.company.name:void 0,location:"string"==typeof e.location?e.location:void 0})}catch(e){}}async function s(e){try{await n.h.unsaveJobV2(String(e))}catch(e){}}},74141:function(e,t,r){r.d(t,{FR:function(){return o},Ju:function(){return d},PU:function(){return i},mx:function(){return a},zg:function(){return c}});let n="joblet_saved_jobs",l=new Set;function a(e){return l.add(e),()=>{l.delete(e)}}function s(e,t){for(let r of Array.from(l))try{r({jobId:e,saved:t})}catch(e){}}function o(){try{let e=localStorage.getItem(n);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch(e){return[]}}function i(e){let t=o();t.includes(e)||(t.unshift(e),localStorage.setItem(n,JSON.stringify(t))),s(e,!0)}function c(e){let t=o().filter(t=>t!==e);localStorage.setItem(n,JSON.stringify(t)),s(e,!1)}function d(e){return o().includes(e)?(c(e),!1):(i(e),!0)}}}]);

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.