PageSourceSearch

https://4dayweek.io/_next/static/chunks/16s2_wj_qrv9_.js?dpl=543dadbd-1790015167

js 4dayweek.io collected 2026-09-24 19:55:09 UTC 100,895 bytes, 3 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||"01a0c53e-a1e2-0000-a4ee-3b4f0c514a0c";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="7cc76760-274c-5af5-b88f-a340f5542291")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59377,e=>{"use strict";var t=e.i(843476),s=e.i(178761),s=s;e.i(393475);var a=e.i(806908);e.s(["Popover",0,function({...e}){return(0,t.jsx)(s.Root,{"data-slot":"popover",...e})},"PopoverContent",0,function({className:e,align:l="center",sideOffset:r=4,...n}){return(0,t.jsx)(s.Portal,{children:(0,t.jsx)(s.Content,{"data-slot":"popover-content",align:l,sideOffset:r,className:(0,a.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 duration-100 motion-reduce:duration-0 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...n})})},"PopoverTrigger",0,function({...e}){return(0,t.jsx)(s.Trigger,{"data-slot":"popover-trigger",...e})}],59377)},649582,e=>{"use strict";let t=(0,e.i(475254).default)("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]);e.s(["SlidersHorizontal",0,t],649582)},144226,430272,e=>{"use strict";var t=e.i(843476),s=e.i(664659),a=e.i(271645),l=e.i(152616),r=e.i(59377),n=e.i(852917),i=e.i(239134);e.i(393475);var o=e.i(806908),c=e.i(643531),d=e.i(23750);let u=(0,a.memo)(function({options:e,selected:s,onToggle:l,mode:r="checkbox",countsLoading:n,searchable:i=!1,label:u,autoFocusSearch:m=!0,onSetMany:h,unbounded:x=!1}){let[g,p]=(0,a.useState)(""),f=(0,a.useMemo)(()=>{if(!i||!g)return e;let t=g.toLowerCase();return e.filter(e=>e.label.toLowerCase().includes(t))},[e,g,i]),b=null!=h&&"checkbox"===r&&f.length>=2;return(0,t.jsxs)("div",{className:"flex flex-col",children:[i&&(0,t.jsx)("div",{className:"border-b p-2",children:(0,t.jsx)(d.Input,{type:"text",placeholder:`Search ${u.toLowerCase()}...`,value:g,onChange:e=>p(e.target.value),className:"h-9 text-sm",autoFocus:m})}),b&&(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 border-b px-3 py-2 sm:px-2 sm:py-1.5",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{h?.(Array.from(new Set([...s,...f.map(e=>e.value)])))},"data-testid":"filter-select-all",className:"font-medium text-emerald-700 text-sm transition-colors hover:text-emerald-800 hover:underline sm:text-xs",children:["Select all (",f.length,")"]}),(0,t.jsx)("button",{type:"button",onClick:()=>{h?.([])},"data-testid":"filter-clear-section",className:"font-medium text-rose-700 text-sm transition-colors hover:text-rose-800 hover:underline sm:text-xs",children:"Clear"})]}),(0,t.jsx)("div",{className:(0,o.cn)("p-1",!x&&"max-h-60 overflow-y-auto"),role:"listbox","aria-multiselectable":"checkbox"===r,"aria-label":u,children:0===f.length?(0,t.jsx)("div",{className:"px-3 py-4 text-center text-base text-brand-gray-400 sm:px-2 sm:text-sm",children:"No options found"}):f.map(e=>{let a=s.includes(e.value),i=0===e.count&&!a;return(0,t.jsxs)("button",{type:"button",role:"option","aria-selected":a,onClick:()=>l(e.value),className:"flex w-full cursor-pointer items-center gap-2 rounded-md px-3 py-3 text-left text-base transition-colors hover:bg-slate-100 focus:bg-slate-100 focus:outline-none sm:px-2 sm:py-1.5 sm:text-sm",children:[(0,t.jsx)("span",{className:(0,o.cn)("flex h-4 w-4 shrink-0 items-center justify-center border","radio"===r?"rounded-full":"rounded",a?"border-emerald-700 bg-emerald-700":"border-border-strong bg-white"),children:a&&("radio"===r?(0,t.jsx)("div",{className:"h-2 w-2 rounded-full bg-white"}):(0,t.jsx)(c.Check,{className:"h-3 w-3 text-white",strokeWidth:3}))}),(0,t.jsx)("span",{className:(0,o.cn)("flex-1",i&&"opacity-60"),children:e.label}),null!=e.count&&!n&&(0,t.jsxs)("span",{className:"text-xs text-brand-gray-600",children:["(",e.count.toLocaleStr
1ing("en-US"),")"]})]},e.value)})}),b&&(0,t.jsxs)("output",{className:"sr-only",children:[s.length," selected"]})]})});e.s(["FilterOptionList",0,u],430272);let m=(0,a.memo)(function({label:e,shortLabel:c,icon:d,options:m,selected:h,onToggle:x,countsLoading:g,searchable:p=!1,mode:f="checkbox",className:b,proTag:j=!1,onSetMany:v,"data-testid":y}){let[w,N]=(0,a.useState)(!1),k=(0,i.useIsMobile)(),_=h.length>0,S=(0,t.jsxs)("button",{type:"button",onClick:()=>N(!w),"data-testid":y,className:(0,o.cn)("inline-flex min-h-11 items-center gap-1.5 rounded-full border px-3 py-2 text-sm font-medium shadow-sm transition-all hover:cursor-pointer sm:min-h-0 sm:py-1.5",_?"border-emerald-300 bg-emerald-50 text-emerald-700 hover:bg-emerald-100":"bg-white text-brand-gray-700 hover:border-emerald-300 hover:bg-emerald-50 hover:shadow-md",b),children:[(0,t.jsx)(d,{className:"h-3.5 w-3.5 opacity-60"}),c?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"sm:hidden",children:c}),(0,t.jsx)("span",{className:"hidden sm:inline",children:e})]}):e,j&&(0,t.jsx)(l.ProTag,{}),_&&(0,t.jsx)("span",{className:"flex h-4 w-4 items-center justify-center rounded-full bg-emerald-500 text-xs font-semibold text-white",children:h.length}),(0,t.jsx)(s.ChevronDown,{className:(0,o.cn)("h-3.5 w-3.5 transition-transform",w&&"rotate-180")})]}),C=(0,t.jsx)(u,{options:m,selected:h,onToggle:x,mode:f,countsLoading:g,searchable:p,label:e,onSetMany:v});return k?(0,t.jsxs)(t.Fragment,{children:[S,(0,t.jsx)(n.Sheet,{open:w,onOpenChange:N,children:(0,t.jsxs)(n.SheetContent,{side:"bottom",className:"rounded-t-2xl pb-8",children:[(0,t.jsx)(n.SheetHeader,{children:(0,t.jsx)(n.SheetTitle,{children:e})}),(0,t.jsx)("div",{className:"mt-4",children:C})]})})]}):(0,t.jsxs)(r.Popover,{open:w,onOpenChange:N,children:[(0,t.jsx)(r.PopoverTrigger,{asChild:!0,children:S}),(0,t.jsx)(r.PopoverContent,{align:"start",className:"w-64 p-0",children:C})]})});e.s(["FilterPillButton",0,m],144226)},517995,e=>{"use strict";var t=e.i(843476),s=e.i(248256),a=e.i(555436),l=e.i(271645);e.i(558486);var r=e.i(39846);e.i(393475);var n=e.i(806908);let i=(0,l.memo)(function({selectedCountry:e,onSelectCountry:i}){let[o,c]=(0,l.useState)([]),[d,u]=(0,l.useState)(!0),[m,h]=(0,l.useState)("");(0,l.useEffect)(()=>{(0,r.fetchCountries)().then(e=>c(e.countries)).catch(()=>{}).finally(()=>u(!1))},[]);let x=(0,l.useMemo)(()=>{if(!m)return o;let e=m.toLowerCase();return o.filter(t=>t.name.toLowerCase().includes(e)||t.continent?.toLowerCase().includes(e))},[o,m]);return d?(0,t.jsx)("div",{className:"space-y-2",children:[void 0,void 0,void 0,void 0,void 0].map((e,s)=>(0,t.jsx)("div",{className:"h-8 animate-pulse rounded-lg bg-brand-gray-100"},s))}):(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(a.Search,{className:"absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-brand-gray-400"}),(0,t.jsx)("input",{type:"text",value:m,onChange:e=>h(e.target.value),placeholder:"Search countries...",className:"w-full rounded-lg border bg-white py-2 pl-8 pr-3 text-sm text-brand-gray-900 placeholder:text-brand-gray-400 focus:border-rose-300 focus:outline-none focus:ring-2 focus:ring-rose-100"})]}),(0,t.jsxs)("div",{className:"max-h-48 space-y-0.5 overflow-y-auto",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>i(void 0),className:(0,n.cn)("flex w-full items-center gap-2.5 rounded-lg px-2.5 py-2 text-left text-sm transition-colors",e?"text-brand-gray-600 hover:bg-brand-blue/5":"bg-rose-50 font-medium text-rose-700"),children:[(0,t.jsx)(s.Globe,{className:"h-4 w-4 flex-shrink-0 text-brand-gray-400"}),(0,t.jsx)("span",{className:"flex-1",children:"Any country"})]}),x.map(s=>(0,t.jsxs)("button",{type:"button",onClick:()=>i(s.name),className:(0,n.cn)("flex w-full items-center gap-2.5 rounded-lg px-2.5 py-2 text-left text-sm transition-colors",e===s.name?"bg-rose-50 font-medium text-rose-700":"text-brand-gray-600 hover:bg-brand-blue/5"),children:[(0,t.jsx)("span",{className:"flex-shrink-0 text-base",children:s.flag_emoji||"🌐"}),(0,t.jsx)("span",{className:"flex-1 truncate",children:s.name}),null!=s.job_count&&s.job_count>0&&(0,t.jsx)("span",{className:"flex-shrink-0 text-xs tabular-nums text-brand-gray-400",children:s.job_count})]},s.id)),0===x.length&&m&&(0,t.jsx)("p",{className:"px-2.5 py-3 text-center text-xs text-brand-gray-400",children:"No countries found"})]})]})});e.s(["CountryFilter",0,i])},829669,e=>{"use strict";var t=e.i(843476),s=e.i(643531),a=e.i(664659),l=e.i(346897),r=e.i(271645),n=e.i(753751),i=e.i(59377),o=e.i(852917);e.i(558486);var c=e.i(39846);let d=null,u=null;var m=e.i(239134);e.i(393475);var h=e.i(806908);let x=(0,r.memo)(function({selectedCountries:e,onToggleCountry:x,onClearAll:g,className:p}){let[f,b]=(0,r.useState)(!1),j=(0,m.useIsMobile)(),{countries:v}=function(){let[e,t]=(0,r.useState)(d??[]),[s,a]=(0,r.useState)(null===d);return(0,r.useEffect)(()=>{d||(u||(u=(0,c.fetchCountriesWithLiveJobs)().then(e=>e.countries.map(e=>({value:e.name,label:e.name,jobCount:e.job_count>
10?e.job_count:void 0}))).catch(e=>{throw u=null,e})),u.then(e=>{d=e,t(e),a(!1)}).catch(()=>{a(!1)}))},[]),{countries:e,loading:s}}(),y=(0,r.useMemo)(()=>new Set(e),[e]),w=(0,r.useMemo)(()=>v.toSorted((e,t)=>e.label.localeCompare(t.label)),[v]),N=(0,r.useCallback)(e=>{x(e)},[x]),k=(0,r.useMemo)(()=>0===e.length?"Any country":1===e.length?e[0]:`${e[0]} +${e.length-1}`,[e]),_=(0,t.jsxs)("button",{type:"button",onClick:()=>b(!f),className:(0,h.cn)("inline-flex h-full w-full items-center gap-2 px-4 text-sm transition-colors",e.length>0?"text-blue-950/80":"text-blue-800/60",p),children:[(0,t.jsx)(l.MapPin,{className:"h-4 w-4 shrink-0 text-blue-800/60"}),(0,t.jsx)("span",{className:"truncate",children:k}),(0,t.jsx)(a.ChevronDown,{className:(0,h.cn)("ml-auto h-4 w-4 shrink-0 text-blue-800/60 transition-transform",f&&"rotate-180")})]}),S=(0,t.jsxs)(n.Command,{children:[(0,t.jsx)(n.CommandInput,{placeholder:"Search countries..."}),(0,t.jsxs)(n.CommandList,{className:"max-h-64",children:[(0,t.jsx)(n.CommandEmpty,{children:"No countries found"}),e.length>0&&(0,t.jsxs)("div",{className:"flex items-center justify-between border-b px-3 py-2 text-xs text-brand-gray-600",children:[(0,t.jsxs)("span",{children:[e.length," selected"]}),(0,t.jsx)("button",{type:"button",onClick:g,className:"text-emerald-600 hover:underline",children:"Clear all"})]}),w.map(e=>{let a=y.has(e.value);return(0,t.jsxs)(n.CommandItem,{value:e.value,onSelect:()=>N(e.value),className:"gap-2",children:[(0,t.jsx)("div",{className:(0,h.cn)("flex h-4 w-4 items-center justify-center rounded border",a?"border-emerald-500 bg-emerald-500 text-white":"border-border-strong bg-white"),children:a&&(0,t.jsx)(s.Check,{className:"h-3 w-3"})}),(0,t.jsx)("span",{className:"flex-1",children:e.label}),null!=e.jobCount&&(0,t.jsxs)("span",{className:"text-xs text-brand-gray-400",children:["(",e.jobCount,")"]})]},e.value)})]})]});return j?(0,t.jsxs)(t.Fragment,{children:[_,(0,t.jsx)(o.Sheet,{open:f,onOpenChange:b,children:(0,t.jsxs)(o.SheetContent,{side:"bottom",className:"rounded-t-2xl pb-8",children:[(0,t.jsx)(o.SheetHeader,{children:(0,t.jsx)(o.SheetTitle,{children:"Select Countries"})}),(0,t.jsx)("div",{className:"mt-4",children:S})]})})]}):(0,t.jsxs)(i.Popover,{open:f,onOpenChange:b,children:[(0,t.jsx)(i.PopoverTrigger,{asChild:!0,children:_}),(0,t.jsx)(i.PopoverContent,{align:"end",className:"w-72 p-0",children:S})]})});e.s(["CountryMultiSelect",0,x],829669)},634959,e=>{"use strict";var t=e.i(843476),s=e.i(63727),a=e.i(555436);let l=(0,e.i(475254).default)("circle-user",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);var r=e.i(37727),n=e.i(271645),i=e.i(753751),o=e.i(239134);e.i(558486);var c=e.i(980218);let d=(0,n.memo)(function({draft:e,categories:d,onAddFilter:u,onExpandFilters:m}){let h=(0,o.useIsMobile)(),[x,g]=(0,n.useState)(""),[p,f]=(0,n.useState)(!1),[b,j]=(0,n.useState)([]),v=(0,n.useRef)(null),y=(0,n.useRef)(null);(0,n.useEffect)(()=>{(0,c.searchRoles)().then(e=>j(e.items)).catch(()=>{})},[]),(0,n.useEffect)(()=>{if(!(x.length<2))return y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{(0,c.searchRoles)(x).then(e=>j(e.items)).catch(()=>{})},300),()=>{y.current&&clearTimeout(y.current)}},[x]),(0,n.useEffect)(()=>{let e=e=>{v.current&&!v.current.contains(e.target)&&f(!1)},t=e=>{"Escape"===e.key&&f(!1)};return p&&(document.addEventListener("mousedown",e),document.addEventListener("keydown",t)),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[p]);let w=(0,n.useMemo)(()=>{let t=x.toLowerCase(),s=e.category||[],a=[],l=d.filter(e=>!s.includes(e.value)&&(!t||e.label.toLowerCase().includes(t)||e.value.toLowerCase().includes(t))).slice(0,5);l.length>0&&a.push({type:"category",label:"Categories",items:l});let r=b.filter(e=>!t||e.label.toLowerCase().includes(t)).slice(0,5);return r.length>0&&a.push({type:"role",label:"Roles",items:r}),a},[x,d,b,e.category]),N=(0,n.useCallback)((e,t)=>{u(e,t),g(""),f(!1)},[u]),k=e.category||[],_=!!e.q||k.length>0,S=k[0],C=S?d.find(e=>e.value===S)?.label||S:"",L=Math.max(0,k.length-1);return(0,t.jsx)("div",{ref:v,children:(0,t.jsxs)(i.Command,{className:"relative w-full overflow-visible rounded-xl border bg-white [&_[data-slot=command-input-wrapper]]:h-12 [&_[data-slot=command-input-wrapper]]:border-0",shouldFilter:!1,children:[(0,t.jsx)(i.CommandInput,{placeholder:_?"":"Search jobs...",value:x,onValueChange:g,onKeyDown:e=>{"Enter"===e.key&&x&&0===w.length&&(u("q",x),g(""),f(!1))},onFocus:()=>f(!0),beforeInput:_&&(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[e.q&&(0,t.jsxs)("span",{className:"inline-flex max-w-[55vw] items-center gap-1 whitespace-nowrap rounded-full bg-slate-100 py-0.5 pl-2 pr-1 text-xs font-medium text-brand-gray-700 sm:max-w-none","data-ph-mask":!0,children:[(0,t.jsxs)("span",{className:"truncate",children:["“",e.q,"”"]}),(0,t.jsx)("button",{type:"button",onClick:()=>u("q",""),className:"shrink-0 rounded-full p-0.5 transition-colors hover:bg-slate-200","aria-label":"Remove search",children:(0,t.jsx)(r.X,{className:"h-3 w-3"})})]}),h?S&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"inline-flex max-w-[40vw] items-center gap-1 whitespace-nowrap rounded-full bg-rose-50 py-0.5 pl-2 pr-1 text-xs font-medium text-rose-700",children:[(0,t.jsx)("span",{className:"truncate",children:C}),(0,t.jsx)("button",{type:"button",onClick:()=>u("category",S),className:"shrink-0 rounded-full p-0.5 transition-colors hover:bg-rose-100","aria-label":`Remove ${C}`,children:(0,t.jsx)(r.X,{className:"h-3 w-3"})})]}),L>0&&(0,t.jsxs)("button",{type:"button",onClick:()=>m?.(),className:"inline-flex shrink-0 items-center whitespace-nowrap rounded-full bg-rose-50 px-2 py-0.5 text-xs font-medium text-rose-700 transition-colors hover:bg-rose-100","aria-label":`${L} more ${1===L?"category":"categories"}. Edit filters.`,children:["+",L," more"]})]}):k.map(e=>{let s=d.find(t=>t.value===e)?.label||e;return(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 whitespace-nowrap rounded-full bg-rose-50 py-0.5 pl-2 pr-1 text-xs font-medium text-rose-700",children:[s,(0,t.jsx)("button",{type:"button",onClick:()=>u("category",e),className:"rounded-full p-0.5 transition-colors hover:bg-rose-100","aria-label":`Remove ${s}`,children:(0,t.jsx)(r.X,{className:"h-3 w-3"})})]},e)})]})}),p&&(0,t.jsxs)(i.CommandList,{className:"absolute left-0 right-0 top-full z-50 mt-1 rounded-xl border bg-white shadow-lg",children:[0===w.length&&x?(0,t.jsxs)(i.CommandItem,{value:`search-${x}`,onSelect:()=>{u("q",x),g(""),f(!1)},className:"ph-no-capture gap-2",children:[(0,t.jsx)(a.Search,{className:"h-4 w-4 text-brand-gray-400"}),"Search for “",x,"”"]}
1):null,w.map(e=>(0,t.jsx)(i.CommandGroup,{heading:e.label,children:e.items.map(a=>(0,t.jsxs)(i.CommandItem,{value:`${e.type}-${a.value}`,onSelect:()=>N(e.type,a.value),className:"gap-2",children:[(e=>{switch(e){case"category":return(0,t.jsx)(s.Briefcase,{className:"h-4 w-4 text-rose-500"});case"role":return(0,t.jsx)(l,{className:"h-4 w-4 text-emerald-500"})}})(e.type),a.label]},`${e.type}-${a.value}`))},e.type)),x&&w.length>0&&(0,t.jsx)(i.CommandGroup,{children:(0,t.jsxs)(i.CommandItem,{value:`freetext-${x}`,onSelect:()=>{u("q",x),g(""),f(!1)},className:"ph-no-capture gap-2",children:[(0,t.jsx)(a.Search,{className:"h-4 w-4 text-brand-gray-400"}),"Search for “",x,"”"]})})]})]})})});e.s(["FilterSearchInput",0,d],634959)},748163,e=>{"use strict";var t=e.i(843476),s=e.i(842009),a=e.i(63727),l=e.i(489853),r=e.i(212426),n=e.i(248256),i=e.i(649582),o=e.i(25652),c=e.i(271645),d=e.i(193135),u=e.i(610088),m=e.i(71829);e.i(393475);var h=e.i(806908),x=e.i(144226),g=e.i(634959),p=e.i(373375),f=e.i(463059),b=e.i(346897),j=e.i(152616),v=e.i(890538),y=e.i(167881),w=e.i(852917),N=e.i(430272);function k({count:e}){return 0===e?null:(0,t.jsx)("span",{className:"ml-1 inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-emerald-100 px-1.5 text-xs font-semibold text-emerald-700",children:e})}let _=(0,c.memo)(function({open:e,onOpenChange:s,filters:i,filterCounts:u,countsLoading:x,scheduleTypes:g,categories:_,levels:S,toggleScheduleType:C,toggleCategory:L,toggleLevel:P,toggleWorkArrangement:T,setSalaryMin:E,whereValue:z,onWhereSelect:R,setScheduleTypes:A,setCategories:M,setLevels:F,setWorkArrangements:I,salaryProGated:$=!1,total:O,isFiltering:D=!1,clearExtraFilters:B}){let J=g.map(e=>({value:e.value,label:e.label,count:u?u.schedule_types?.[e.value]??0:void 0})),W=_.map(e=>({value:e.value,label:e.label,count:u?u.categories?.[e.value]??0:void 0})),U=S.map(e=>({value:e.value,label:e.label,count:u?u.levels?.[e.value]??0:void 0})),q=m.WORK_ARRANGEMENT_OPTIONS.map(e=>({value:e.value,label:e.label,count:u?u.work_arrangements?.[e.value]??0:void 0})),G=m.SALARY_FILTER_BANDS.map(e=>({value:e.value,label:e.label})),H=(0,c.useRef)(null);D||null==O||(H.current=O);let V=D||null==O?H.current:O,[K,X]=(0,c.useState)("filters");(0,c.useEffect)(()=>{X("filters")},[e]);let Y=i.schedule_types?.length??0,Q=i.category?.length??0,Z=(i.work_arrangements?.length??0)+ +!!i.worldwide_only,ee=!!z||!!i.near_location||!!i.near_country||(i.locations?.length??0)>0,et=+!!ee,es=i.level?.length??0,ea=null!=i.salary_min,el=Y+Q+Z+et+es+ +!!ea,er=!!(i.skills?.length||i.posted_after||null!=i.salary_max),en=(0,c.useMemo)(()=>{let e=[];return Y>0&&e.push("schedule"),Q>0&&e.push("category"),Z>0&&e.push("remote"),es>0&&e.push("level"),ea&&e.push("salary"),e},[e]);return(0,t.jsx)(w.Sheet,{open:e,onOpenChange:s,children:(0,t.jsx)(w.SheetContent,{side:"bottom","data-testid":"all-filters-sheet",className:(0,h.cn)("rounded-t-2xl pb-0","location"===K?"h-[88vh]":"max-h-[85vh]"),children:"location"===K?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w.SheetHeader,{className:"border-b",children:(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>X("filters"),"aria-label":"Back to filters",className:"-ml-2 flex h-11 w-11 items-center justify-center rounded-full text-brand-gray-500 transition-colors hover:bg-brand-gray-100 hover:text-brand-gray-900",children:(0,t.jsx)(p.ChevronLeft,{className:"h-5 w-5"})}),(0,t.jsx)(w.SheetTitle,{children:"Where are you based?"})]}),ee&&(0,t.jsx)("button",{type:"button",onClick:()=>{R(null)},className:"text-sm font-medium text-rose-700 transition-colors hover:text-rose-800",children:"Clear"})]})}),(0,t.jsx)("div",{className:"flex min-h-0 flex-1 flex-col px-4 pb-4","data-testid":"all-filters-location-step",children:(0,t.jsx)(d.LocationAutocomplete,{inlineResults:!0,value:z,onChange:e=>{R(e),e&&X("filters")},placeholder:"Search for your city or country"})})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w.SheetHeader,{className:"border-b",children:(0,t.jsx)(w.SheetTitle,{children:"Filters"})}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto px-4",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>X("location"),"data-testid":"all-filters-where",className:"flex w-full items-center justify-between gap-2 border-b py-4 text-left",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2 text-sm font-medium",children:[(0,t.jsx)(b.MapPin,{className:"h-4 w-4 text-brand-gray-500"}),"Where are you based?",(0,t.jsx)(k,{count:et})]}),(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-2 text-brand-gray-500",children:[z?.displayText&&(0,t.jsx)("span",{className:"max-w-[160px] truncate text-sm",children:z.displayText}),(0,t.jsx)(f.ChevronRight,{className:"h-4 w-4 shrink-0"})]})]}),(0,t.jsxs)(v.Accordion,{type:"multiple",className:"w-full",defaultValue:en,children:[(0,t.jsxs)(v.AccordionItem,{value:"schedule",children:[(0,t.jsx)(v.AccordionTrigger,{children:(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(l.CalendarDays,{className:"h-4 w-4 text-brand-gray-500"}
1),"Schedule",(0,t.jsx)(k,{count:Y})]})}),(0,t.jsx)(v.AccordionContent,{children:(0,t.jsx)(N.FilterOptionList,{options:J,selected:i.schedule_types??[],onToggle:C,onSetMany:A,countsLoading:x,label:"Schedule",unbounded:!0})})]}),(0,t.jsxs)(v.AccordionItem,{value:"category",children:[(0,t.jsx)(v.AccordionTrigger,{children:(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(a.Briefcase,{className:"h-4 w-4 text-brand-gray-500"}),"Category",(0,t.jsx)(k,{count:Q})]})}),(0,t.jsx)(v.AccordionContent,{children:(0,t.jsx)(N.FilterOptionList,{options:W,selected:i.category??[],onToggle:L,onSetMany:M,countsLoading:x,searchable:!0,label:"Category",autoFocusSearch:!1,unbounded:!0})})]}),(0,t.jsxs)(v.AccordionItem,{value:"remote",children:[(0,t.jsx)(v.AccordionTrigger,{children:(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(n.Globe,{className:"h-4 w-4 text-brand-gray-500"}),"Remote",(0,t.jsx)(k,{count:Z})]})}),(0,t.jsx)(v.AccordionContent,{children:(0,t.jsx)(N.FilterOptionList,{options:q,selected:[...i.work_arrangements??[],...i.worldwide_only?["worldwide"]:[]],onToggle:e=>T(e),onSetMany:I?e=>I(e):void 0,countsLoading:x,label:"Remote",unbounded:!0})})]}),(0,t.jsxs)(v.AccordionItem,{value:"level",children:[(0,t.jsx)(v.AccordionTrigger,{children:(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(o.TrendingUp,{className:"h-4 w-4 text-brand-gray-500"}),"Level",(0,t.jsx)(k,{count:es})]})}),(0,t.jsx)(v.AccordionContent,{children:(0,t.jsx)(N.FilterOptionList,{options:U,selected:i.level??[],onToggle:P,onSetMany:F,countsLoading:x,label:"Level",unbounded:!0})})]}),(0,t.jsxs)(v.AccordionItem,{value:"salary",className:"border-b-0",children:[(0,t.jsx)(v.AccordionTrigger,{children:(0,t.jsxs)("span",{className:"flex items-center gap-2",children:[(0,t.jsx)(r.DollarSign,{className:"h-4 w-4 text-brand-gray-500"}),"Salary",$&&(0,t.jsx)(j.ProTag,{}),(0,t.jsx)(k,{count:+!!ea})]})}),(0,t.jsx)(v.AccordionContent,{children:(0,t.jsx)(N.FilterOptionList,{options:G,selected:i.salary_min?[i.salary_min.toString()]:[],onToggle:e=>{let t=Number.parseInt(e,10);E(i.salary_min===t?void 0:t)},mode:"radio",label:"Salary",unbounded:!0})})]})]},e?"open":"closed")]}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 border-t bg-background/95 px-4 py-4 backdrop-blur",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{for(let e of i.schedule_types??[])C(e);for(let e of i.work_arrangements??[])T(e);for(let e of(i.worldwide_only&&T("worldwide"),ee&&R(null),i.category??[]))L(e);for(let e of i.level??[])P(e);null!=i.salary_min&&E(void 0),er&&B?.()},disabled:0===el&&!er,"data-testid":"all-filters-clear",className:(0,h.cn)("text-sm font-medium transition-colors",0!==el||er?"text-rose-700 hover:text-rose-800":"cursor-not-allowed text-brand-gray-400"),children:"Clear all"}),(0,t.jsx)(y.Button,{type:"button",onClick:()=>s(!1),"data-testid":"all-filters-done",className:"min-h-11 px-6",children:null==V?"Done":0===V?"No matches":`Show ${V.toLocaleString()} ${1===V?"job":"jobs"}`})]})]})})})}),S=[{value:"55",label:"Good+"},{value:"70",label:"Great+"},{value:"85",label:"Excellent"}],C="border-blue-200/60 shadow-blue-950/5 text-blue-950/80 hover:border-emerald-300 hover:bg-emerald-50 hover:shadow-md",L=(0,c.memo)(function({filters:e,filterCounts:p,countsLoading:f,toggleScheduleType:b,toggleCategory:j,toggleLevel:v,toggleWorkArrangement:y,setSearchQuery:w,whereValue:N,onWhereSelect:k,whereAutoApplied:L=!1,total:P,isFiltering:T,clearExtraFilters:E,setSalaryMin:z,salaryProGated:R=!1,setMinWorkLifeScore:A,hasActiveFilters:M,onClearFilters:F,allFiltersSheetOpen:I,onAllFiltersSheetOpenChange:$,setScheduleTypes:O,setCategories:D,setLevels:B,setWorkArrangements:J}){let{categories:W,levels:U,scheduleTypes:q}=(0,u.useConfig)(),G=!!N||!!e.near_location||!!e.near_country||(e.locations?.length??0)>0,H=(e.schedule_types?.length??0)+(e.work_arrangements?.length??0)+ +!!e.worldwide_only+(G&&!L?1:0)+(e.category?.length??0)+(e.level?.length??0)+ +!!e.salary_min,V=(0,c.useCallback)((e,t)=>{switch(e){case"category":j(t);break;case"role":w(t);break;case"q":w(t||void 0)}},[j,w]),K=(0,c.useMemo)(()=>q.map(e=>({value:e.value,label:e.label,count:p?p.schedule_types?.[e.value]??0:void 0})),[q,p]),X=(0,c.useMemo)(()=>W.map(e=>({value:e.value,label:e.label,count:p?p.categories?.[e.value]??0:void 0})),[W,p]),Y=(0,c.useMemo)(()=>U.map(e=>({value:e.value,label:e.label,count:p?p.levels?.[e.value]??0:void 0})),[U,p]),Q=(0,c.useMemo)(()=>m.WORK_ARRANGEMENT_OPTIONS.map(e=>({value:e.value,label:e.label,count:p?p.work_arrangements?.[e.value]??0:void 0})),[p]),Z=(0,c.useMemo)(()=>m.SALARY_FILTER_BANDS.map(e=>({value:e.value,label:e.label})),[]),ee=(0,c.useMemo)(()=>e.min_work_life_score?[e.min_work_life_score.toString()]:[],[e.min_work_life_score]),et=(0,c.useMemo)(()=>e.schedule_types??[],[e.schedule_types]),es=(0,c.useMemo)(()=>[...e.work_arrangements??[],...e.worldwide_only?["worldwide"]:[]],[e.work_arrangements,e.worldwide_only]),ea=(0,c.useMemo)(()=>e.category??[],[e.category]),el=(0,c.useMemo)(()=>e.level??[],[e.level]),er=(0,c.useMemo)(()=>
1e.salary_min?[e.salary_min.toString()]:[],[e.salary_min]);return(0,t.jsxs)("div",{className:"mx-auto mb-4 max-w-5xl sm:mb-6",children:[(0,t.jsxs)("div",{className:"mx-auto flex max-w-4xl items-stretch rounded-2xl border border-blue-200/60 bg-white shadow-lg shadow-blue-950/8 sm:rounded-full [&_input]:text-blue-950/80",children:[(0,t.jsx)("div",{className:"min-w-0 flex-1 [&_[data-slot=command]]:border-0 [&_[data-slot=command]]:rounded-none [&_[data-slot=command]]:shadow-none [&_[data-slot=command]]:rounded-l-2xl [&_[data-slot=command]]:rounded-r-2xl sm:[&_[data-slot=command]]:rounded-l-full sm:[&_[data-slot=command]]:rounded-r-none",children:(0,t.jsx)(g.FilterSearchInput,{draft:e,categories:W,onAddFilter:V,onExpandFilters:()=>$(!0)})}),(0,t.jsx)("div",{className:"hidden w-px self-center bg-blue-200/40 sm:block",style:{height:"32px"}}),(0,t.jsx)("div",{className:"hidden w-1/3 flex-shrink-0 items-center sm:flex",children:(0,t.jsx)(d.LocationAutocomplete,{value:N,onChange:k,placeholder:"Where are you based?",className:"w-full [&_[data-slot=command]]:border-0 [&_[data-slot=command]]:rounded-none [&_[data-slot=command]]:rounded-r-full [&_[data-slot=command]]:shadow-none [&>div]:rounded-r-full [&>div]:border-0 [&>div]:shadow-none"})})]}),(0,t.jsxs)("div",{className:"mt-3 flex flex-wrap items-center justify-start gap-2 sm:mt-5 sm:justify-center",children:[(0,t.jsx)(x.FilterPillButton,{label:"Work-Life Balance",shortLabel:"WLB",icon:s.Award,options:S,selected:ee,onToggle:t=>{let s=Number.parseInt(t,10);A(e.min_work_life_score===s?void 0:s)},mode:"radio",className:(0,h.cn)("flex",C),"data-testid":"work-life-balance-filter"}),(0,t.jsx)(x.FilterPillButton,{label:"Schedule",icon:l.CalendarDays,options:K,selected:et,onToggle:b,onSetMany:O,countsLoading:f,className:(0,h.cn)("hidden sm:flex",C),"data-testid":"schedule-filter"}),(0,t.jsx)(x.FilterPillButton,{label:"Remote",icon:n.Globe,options:Q,selected:es,onToggle:e=>y(e),onSetMany:J?e=>J(e):void 0,countsLoading:f,className:(0,h.cn)("hidden sm:flex",C),"data-testid":"remote-filter"}),(0,t.jsx)(x.FilterPillButton,{label:"Category",icon:a.Briefcase,options:X,selected:ea,onToggle:j,onSetMany:D,countsLoading:f,searchable:!0,className:(0,h.cn)("hidden sm:flex",C),"data-testid":"category-filter"}),(0,t.jsx)(x.FilterPillButton,{label:"Level",icon:o.TrendingUp,options:Y,selected:el,onToggle:v,onSetMany:B,countsLoading:f,className:(0,h.cn)("hidden sm:flex",C),"data-testid":"level-filter"}),(0,t.jsx)(x.FilterPillButton,{label:"Salary",icon:r.DollarSign,options:Z,selected:er,onToggle:t=>{let s=Number.parseInt(t,10);z(e.salary_min===s?void 0:s)},proTag:R,className:(0,h.cn)("hidden sm:flex",C),"data-testid":"salary-filter"}),(0,t.jsxs)("button",{type:"button",onClick:()=>$(!0),"data-testid":"all-filters-trigger",className:"inline-flex min-h-11 items-center gap-1.5 rounded-full border border-brand-gray-200 bg-brand-gray-50 px-3 py-2 text-sm font-medium text-brand-gray-800 shadow-sm transition-all hover:cursor-pointer hover:border-brand-gray-300 hover:bg-brand-gray-100 hover:shadow-md sm:hidden",children:[(0,t.jsx)(i.SlidersHorizontal,{className:"h-4 w-4 opacity-70","aria-hidden":"true"}),"Filters",H>0&&(0,t.jsx)("span",{className:"ml-0.5 inline-flex h-5 min-w-5 items-center justify-center rounded-full bg-rose-100 px-1.5 text-xs font-semibold text-rose-700",children:H})]}),M&&(0,t.jsx)("button",{type:"button",onClick:F,"data-testid":"clear-filters-button-mobile",className:"-my-2 ml-auto inline-flex items-center py-2 text-sm font-medium text-rose-700 underline-offset-2 hover:cursor-pointer hover:underline focus:outline-none focus:ring-2 focus:ring-rose-300 focus:ring-offset-2 sm:hidden",children:"Clear all"}),M&&(0,t.jsx)("button",{type:"button",onClick:F,"data-testid":"clear-filters-button",className:"hidden items-center text-sm font-medium text-rose-700 underline-offset-2 hover:cursor-pointer hover:underline focus:outline-none focus:ring-2 focus:ring-rose-300 focus:ring-offset-2 sm:inline-flex",children:"Clear"})]}),(0,t.jsx)(_,{open:I,onOpenChange:$,filters:e,filterCounts:p,countsLoading:f,scheduleTypes:q,categories:W,levels:U,toggleScheduleType:b,toggleCategory:j,toggleLevel:v,toggleWorkArrangement:y,whereValue:N,onWhereSelect:k,setSalaryMin:z,setScheduleTypes:O,setCategories:D,setLevels:B,setWorkArrangements:J,salaryProGated:R,total:P,isFiltering:T,clearExtraFilters:E})]})});e.s(["FilterBar",0,L],748163)},85961,e=>{"use strict";var t=e.i(843476);let s={default:{padding:"px-4 py-4 min-h-[116px]",gap:"gap-3",logo:"h-8 w-8",tagHeight:"h-6"},lg:{padding:"px-5 py-5",gap:"gap-4",logo:"h-10 w-10",tagHeight:"h-7"}};e.s(["JobCardSkeleton",0,function({size:e="default"}){let a=s[e];return(0,t.jsx)("div",{className:`job-card-item ${a.padding}`,"aria-hidden":"true",children:(0,t.jsxs)("div",{className:`flex ${a.gap}`,children:[(0,t.jsx)("div",{className:`${a.logo} flex-shrink-0 skeleton-shimmer rounded-lg bg-blue-100/70`}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-2",children:[(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)("div",{className:"h-4 w-28 skeleton-shimmer rounded bg-blue-100/70"}),(0,t.jsx)("div",{className:"h-3 w-16 skeleton-shimmer rounded bg-blue-100/70"})]}),(0,t.jsx)("div",{className:"h-5 w-3/4 skeleton-shimmer rounded bg-blue-200/50"}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("div",{className:`${a.tagHeight} w-24 skeleton-shimmer rounded-full bg-blue-100/70`}),(0,t.jsx)("div",{className:`${a.tagHeight} w-20 skeleton-shimmer rounded-full bg-blue-100/70`}),(0,t.jsx)("div",{className:`${a.tagHeight} w-28 skeleton-shimmer rounded-full bg-blue-100/70`})]})]})]})})}])},104778,e=>{"use strict";var t=e.i(843476),s=e.i(972520),a=e.i(503116),l=e.i(649582),r=e.i(522016),n=e.i(271645),i=e.i(195716),o=e.i(364059),c=e.i(482754),d=e.i(419060);e.s(["ProGateEmptyState",0,function({count:e}){(0,n.useEffect)(()=>{(0,i.fireEvent)(i.FathomEvents.ProGateEmptyStateImpression),(0,o.trackPaywallImpression)({surface:"pro_gate_empty",trigger:"fresh_gate",count:e,logged_in:(0,o.isLoggedInClient)()})},[]);
1let u=1===e?"This matching job just landed":`${e.toLocaleString("en-US")} matching jobs just landed`;return(0,t.jsxs)("div",{className:"flex flex-col items-center px-6 py-16 text-center","data-testid":"pro-gate-empty",children:[(0,t.jsxs)("div",{className:"relative mb-5 flex h-16 w-16 items-center justify-center rounded-2xl bg-gradient-to-br from-rose-100 to-pink-100",children:[(0,t.jsx)(a.Clock,{className:"h-8 w-8 text-brand-pink","aria-hidden":"true"}),(0,t.jsxs)("span",{className:"absolute right-1 top-1 flex h-3 w-3",children:[(0,t.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-rose-400 opacity-75"}),(0,t.jsx)("span",{className:"relative inline-flex h-3 w-3 rounded-full bg-brand-pink ring-2 ring-white"})]})]}),(0,t.jsx)("h3",{className:"text-lg font-semibold text-brand-gray-900",children:u}),(0,t.jsx)("p",{className:"mt-2 max-w-sm text-sm leading-relaxed text-brand-gray-600",children:"Every role matching your filters is brand new to 4dayweek. Free members get new jobs 48 hours after they reach the board — go Pro to see them now and apply first."}),(0,t.jsxs)(r.default,{href:"/pro",onClick:t=>{(0,i.fireEvent)(i.FathomEvents.ProGateEmptyStateClick),t.metaKey||t.ctrlKey||t.shiftKey||0!==t.button||(t.preventDefault(),(0,o.trackPaywallCtaClick)({surface:"pro_gate_empty",trigger:"fresh_gate",count:e,destination:"upsell_modal",logged_in:(0,o.isLoggedInClient)()}),(0,d.dispatchProUpsell)("fresh_gate",{force:!0,count:e}))},"data-testid":"pro-gate-empty-cta","aria-haspopup":"dialog",className:"group mt-6 inline-flex items-center gap-2 rounded-lg bg-brand-pink px-4 py-2 text-sm font-semibold text-white shadow-sm shadow-rose-200/60 transition-transform hover:scale-[1.02] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-pink focus-visible:ring-offset-2",children:["Unlock with Pro",(0,t.jsx)(s.ArrowRight,{className:"h-4 w-4 transition-transform group-hover:translate-x-1"})]}),(0,t.jsxs)("p",{className:"mt-2 text-xs text-brand-gray-400",children:[(0,c.proCompactPriceLine)()," · Cancel anytime"]}),(0,t.jsxs)("div",{className:"mt-5 flex items-center gap-2 text-xs text-brand-gray-400",children:[(0,t.jsx)(l.SlidersHorizontal,{className:"h-4 w-4"}),(0,t.jsx)("span",{children:"Tip: fewer filters = more results"})]})]})}])},687447,e=>{"use strict";var t=e.i(843476),s=e.i(643531),a=e.i(107899),l=e.i(886407),r=e.i(283086),n=e.i(657688),i=e.i(522016),o=e.i(271645),c=e.i(494338);e.i(432236);var d=e.i(941773),u=e.i(114160),m=e.i(994179),h=e.i(167881),x=e.i(842709),g=e.i(671428),p=e.i(71829),f=e.i(394580);e.i(393475);var b=e.i(806908),j=e.i(56428),v=e.i(261422),y=e.i(351314),w=e.i(104778),N=e.i(75022),k=e.i(183773),_=e.i(304225);let S=(0,f.createLogger)("JobDetailPane"),C=(0,o.memo)(function({selectedJobSlug:e,onClose:g,hasNoResults:f=!1,proGatedEmpty:C=!1,hiddenFreshCount:P=0,initialJobDetail:T=null,jobDetailCache:E}){let z=!!(T&&e&&T.job.slug===e),[R,A]=(0,o.useState)(z?T:null),[M,F]=(0,o.useState)(!1),[I,$]=(0,o.useState)(null),[O,D]=(0,o.useState)(!0),B=(0,o.useRef)(null),J=(0,o.useRef)(z),W=(0,o.useCallback)(async(e,t)=>{let s=Date.now(),a=E.getCached(e);if(a){if(S.debug("Loading job",{slug:e,cached:!0}),D(!1),await new Promise(e=>setTimeout(e,150)),t?.aborted)return;A(a),$(null),B.current?.scrollTo({top:0}),requestAnimationFrame(()=>{t?.aborted||D(!0)}),S.debug("Job loaded",{slug:e,durationMs:Date.now()-s});return}S.debug("Loading job",{slug:e,cached:!1}),D(!0),F(!0),$(null);try{let a=await E.load(e);if(t?.aborted)return;A(a),D(!0),B.current?.scrollTo({top:0}),S.debug("Job loaded",{slug:e,durationMs:Date.now()-s})}catch{if(t?.aborted)return;$("Failed to load job details"),A(null)}finally{t?.aborted||F(!1)}},[E]);if((0,o.useEffect)(()=>{if(J.current){J.current=!1;return}if(e){let t=new AbortController;return W(e,t.signal),()=>t.abort()}A(null),$(null),D(!0)},[e,W]),!e&&f)return C?(0,t.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,t.jsx)(w.ProGateEmptyState,{count:P})}):(0,t.jsxs)("div",{className:"flex h-full flex-col items-center justify-center p-8 text-center",children:[(0,t.jsx)("div",{className:"mb-5 flex h-16 w-16 items-center justify-center rounded-2xl bg-gradient-to-br from-blue-100 to-indigo-100",children:(0,t.jsx)(l.SearchX,{className:"h-8 w-8 text-blue-500"})}),(0,t.jsx)("h3",{className:"font-display text-lg font-semibold text-brand-gray-700",children:"No matching jobs found"}),(0,t.jsx)("p",{className:"mt-2 max-w-xs text-sm leading-relaxed text-brand-gray-600",children:"Try broadening your search or removing some filters to 
1see more results."})]});if(!e)return(0,t.jsxs)("div",{className:"flex h-full flex-col items-center justify-center p-8 text-center",children:[(0,t.jsx)("div",{className:"mb-5 flex h-16 w-16 items-center justify-center rounded-2xl bg-gradient-to-br from-slate-100 to-blue-50",children:(0,t.jsx)(a.MousePointerClick,{className:"h-8 w-8 text-brand-gray-400"})}),(0,t.jsx)("h3",{className:"font-display text-lg font-semibold text-brand-gray-700",children:"Select a job to see details"}),(0,t.jsx)("p",{className:"mt-2 max-w-xs text-sm text-brand-gray-600",children:"Click any job from the list to view the full description"})]});if(M)return(0,t.jsx)(L,{});if(I)return(0,t.jsxs)("div",{className:"flex h-full flex-col items-center justify-center p-8 text-center",children:[(0,t.jsx)("p",{className:"text-sm text-brand-gray-600",children:I}),(0,t.jsx)(h.Button,{variant:"outline",size:"sm",className:"mt-3",onClick:()=>e&&W(e),children:"Try again"})]});if(!R)return null;let{job:U,company:q,similar_jobs:G}=R,H=q?.name||U.company_name||"Company",V=new Date(1e3*U.posted),K=U.is_expired,X=(0,j.getJobTags)(U),Y=q?.logo_url,Q=null!=U.work_life_score&&U.work_life_score>0;return(0,t.jsxs)("div",{"data-testid":"section-job-detail-pane",className:(0,b.cn)("flex h-full flex-col transition-opacity duration-150 ease-in-out overflow-hidden rounded-2xl",O?"opacity-100":"opacity-0"),children:[(0,t.jsxs)("div",{className:"relative flex-shrink-0 px-7 pt-7 pb-5",children:[(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[Y?(0,t.jsx)("div",{className:"relative h-11 w-11 flex-shrink-0 overflow-hidden rounded-lg bg-white ring-1 ring-zinc-200",children:(0,t.jsx)(n.default,{src:Y,alt:`${H} logo`,fill:!0,sizes:"44px",className:"object-contain"})}):(0,t.jsx)("div",{className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-lg bg-gradient-to-br from-rose-500 to-pink-600",children:(0,t.jsx)("span",{className:"text-sm font-bold text-white",children:H.charAt(0)})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("h2",{className:"min-w-0 flex-1 font-display text-[21px] leading-snug text-balance font-bold tracking-tight text-zinc-900",children:(0,t.jsx)(i.default,{href:`/job/${U.slug}`,prefetch:!1,className:"hover:text-brand-pink transition-colors",children:U.title})}),(0,t.jsxs)("div",{className:"mt-1 flex flex-shrink-0 items-center gap-1.5",children:[K&&(0,t.jsx)("span",{className:"rounded-full bg-red-50 px-2 py-0.5 text-xs font-medium text-red-600 ring-1 ring-red-100",children:"Expired"}),U.featured&&!K&&(0,t.jsxs)(m.Badge,{variant:`tier-${U.featured}`,className:"text-xs uppercase",children:[(0,t.jsx)(r.Sparkles,{className:"mr-1 h-3 w-3"}),"Featured"]}),(0,t.jsx)("time",{className:"text-sm text-zinc-400 tabular-nums",title:V.toLocaleDateString(),children:(0,j.formatCompactTime)(V)})]})]}),(0,t.jsxs)("div",{className:"mt-1 flex items-center gap-2",children:[q?.slug?(0,t.jsx)(i.default,{href:`/company/${q.slug}`,prefetch:!1,className:"text-sm font-medium text-zinc-500 transition-colors hover:text-brand-pink",children:H}):(0,t.jsx)("span",{className:"text-sm font-medium text-zinc-500",children:H}),q?.verified&&(0,t.jsx)(s.Check,{className:"h-3.5 w-3.5 text-emerald-500"})]})]})]}),(0,t.jsxs)("div",{className:"mt-4 flex flex-wrap gap-1.5",children:[(0,t.jsx)(y.ScheduleTag,{job:U,company:q??void 0,size:"lg"}),(0,t.jsx)(y.SalaryTag,{job:U,size:"lg"}),(0,t.jsx)(y.LocationTag,{job:U,company:q?{hybrid_days_min:q.hybrid_days_min,hybrid_days_max:q.hybrid_days_max}:void 0,size:"lg"})]}),(0,t.jsxs)("div",{className:"mt-5 flex gap-2",children:[(0,t.jsx)(v.ApplyButton,{jobId:U.id,jobSlug:U.slug,jobTitle:U.title,companyName:H,applyUrl:U.apply_url,isExpired:K,className:"h-10 flex-1 rounded-xl bg-rose-600 text-sm font-semibold text-white shadow-none transition-colors hover:bg-rose-700",job:U}),!K&&(0,t.jsx)(N.SaveJobButton,{job:{id:U.id,slug:U.slug,title:U.title,companyName:H},variant:"outline",size:"lg",className:"h-10 rounded-xl px-5 border-zinc-300 text-zinc-700 hover:bg-zinc-50"})]})]}),(0,t.jsxs)("div",{ref:B,className:"flex-1 overflow-y-auto px-7 pt-1 pb-5",children:[(Q||U.schedule_type)&&(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[Q&&(0,t.jsx)(_.WorkLifeScoreCard,{job:U,company:q??void 0}),U.schedule_type&&(0,t.jsx)(c.WorkScheduleWidget,{scheduleType:U.schedule_type,fourDayOff:q?.four_day_off,noMeetingDay:q?.no_meeting_day,parentalLeaveWeeks:q?.parental_leave_weeks,parentalLeaveSecondaryWeeks:q?.parental_leave_secondary_weeks,parentalLeaveIsGlobal:q?.parental_leave_is_global,hoursFullTime:q?.hours_full_time,scheduleType
1ShortDescription:q?.schedule_type_short_description,scheduleTypeDescription:q?.schedule_type_description,fourDayReferenceUrl:q?.four_day_reference_url})]}),(0,t.jsx)(u.RecognizedAwards,{awards:q?.awards,excludeFirst:"best_place_to_work"===U.schedule_type&&!q?.schedule_type_short_description,className:"mt-6"}),(0,t.jsx)("div",{className:"mt-6",children:U.description?(0,t.jsx)(x.MarkdownProse,{variant:"job-pane",shiftHeadings:!0,children:U.description}):(0,t.jsx)("p",{className:"text-sm text-zinc-600",children:"No description available for this role."})}),X.length>0&&(0,t.jsxs)("div",{className:"mt-6 pt-2",children:[(0,t.jsx)("h3",{className:"mb-2 text-xs font-semibold uppercase tracking-wide text-zinc-500",children:"Skills & Tech Stack"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-1.5",children:X.slice(0,12).map(e=>(0,t.jsx)("span",{className:p.SKILL_TAG_CLASSES,children:e.name},e.id))})]}),G&&G.length>0&&(0,t.jsxs)("div",{className:"mt-6 pt-2",children:[(0,t.jsx)("h3",{className:"mb-3 text-xs font-semibold uppercase tracking-wide text-zinc-500",children:"Similar Roles"}),(0,t.jsx)("div",{className:"flex flex-col gap-1",children:G.slice(0,3).map(e=>(0,t.jsx)(k.SimilarJobRow,{job:e},e.id))})]}),(0,t.jsx)("div",{className:"mt-8 border-t border-zinc-200 pt-4 text-center",children:(0,t.jsx)(d.ReportLink,{type:"job",slug:U.slug,title:U.title,companySlug:q?.slug,companyName:H})})]})]})});function L(){return(0,t.jsxs)("div",{className:"flex h-full flex-col",children:[(0,t.jsxs)("div",{className:"flex-shrink-0 px-7 pb-5 pt-7",children:[(0,t.jsxs)("div",{className:"flex items-start gap-4",children:[(0,t.jsx)(g.Skeleton,{className:"h-11 w-11 flex-shrink-0 rounded-lg"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1 space-y-2",children:[(0,t.jsx)(g.Skeleton,{className:"h-6 w-3/4"}),(0,t.jsx)(g.Skeleton,{className:"h-4 w-28"})]})]}),(0,t.jsxs)("div",{className:"mt-4 flex gap-1.5",children:[(0,t.jsx)(g.Skeleton,{className:"h-6 w-24 rounded-full"}),(0,t.jsx)(g.Skeleton,{className:"h-6 w-20 rounded-full"}),(0,t.jsx)(g.Skeleton,{className:"h-6 w-28 rounded-full"})]}),(0,t.jsxs)("div",{className:"mt-5 flex gap-2",children:[(0,t.jsx)(g.Skeleton,{className:"h-10 flex-1 rounded-xl"}),(0,t.jsx)(g.Skeleton,{className:"h-10 w-20 rounded-xl"})]})]}),(0,t.jsxs)("div",{className:"flex-1 px-7 pb-5 pt-1",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,t.jsx)(g.Skeleton,{className:"h-40 w-full rounded-xl"}),(0,t.jsx)(g.Skeleton,{className:"h-40 w-full rounded-xl"})]}),(0,t.jsxs)("div",{className:"mt-6 space-y-3",children:[(0,t.jsx)(g.Skeleton,{className:"h-4 w-full"}),(0,t.jsx)(g.Skeleton,{className:"h-4 w-5/6"}),(0,t.jsx)(g.Skeleton,{className:"h-4 w-4/6"}),(0,t.jsx)(g.Skeleton,{className:"h-4 w-full"}),(0,t.jsx)(g.Skeleton,{className:"h-4 w-3/4"})]})]})]})}e.s(["JobDetailPane",0,C])},879684,e=>{"use strict";var t=e.i(843476),s=e.i(886407),a=e.i(649582),l=e.i(271645);e.i(44476);var r=e.i(333745);e.i(558486);var n=e.i(88852);e.i(393475);var i=e.i(806908),o=e.i(510237),c=e.i(409687),d=e.i(85961),u=e.i(607486),m=e.i(248256),h=e.i(694351),x=e.i(270756),g=e.i(346897),p=e.i(522016),f=e.i(356917),b=e.i(63112),j=e.i(364059);function v(e){return(0,b.useImpression)(()=>(0,j.trackPaywallImpression)(e))}var y=e.i(195716),w=e.i(56428),N=e.i(182547),k=e.i(351314);let _={remote:h.Home,hybrid:u.Building2,onsite:g.MapPin};function S({job:e,showWorkLifeScore:s}){(0,l.useEffect)(()=>{(0,y.fireEvent)(y.FathomEvents.LockedCardImpression)},[]);let a=v({surface:"locked_job_card",trigger:"locked_job",job_id:e.id,logged_in:(0,j.isLoggedInClient)()}),{href:r,onClick:n}=(0,f.useLockedJobLink)({job:e,surface:"locked_job_card",onOpen:()=>(0,y.fireEvent)(y.FathomEvents.LockedCardClick)}),o=(0,N.getLocationBadgeInfo)(e),c=o.isWorldwide?m.Globe:_[o.type]||g.MapPin,d=["Locked job:",e.title,o.label,e.salary||"Salary hidden","Opens the Pro upsell dialog."].filter(Boolean).join(" "),u=e.posted?new Date(1e3*e.posted):null;return(0,t.jsx)(p.default,{ref:a,href:r,prefetch:!1,onClick:n,"data-testid":"job-card-locked","aria-label":d,"aria-haspopup":"dialog",className:"group relative block w-full cursor-pointer overflow-hidden bg-rose-50/30 px-4 py-5 transition-colors hover:bg-rose-50/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-pink focus-visible:ring-inset",children:(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)("div",{className:"mt-0.5 flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-lg bg-rose-100 text-rose-700 ring-1 ring-rose-200/60","aria-hidden":"true",children:(0,t.jsx)(x.Lock,{className:"h-4 w-4"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-2",children:[(0,t.jsx)("h3",{className:"min-w-0 truncate text-[15px] font-semibold text-zinc-900",children:e.title}),(0,t.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-1.5",children:[u&&(0,t.jsx)("time",{className:"text-xs tabular-nums text-zinc-400",title:u.toLocaleDateString(),suppressHydrationWarning:!0,children:(0,w.formatCompactTime)(u)}),(0,t.jsx)(x.Lock,{className:"h-3.5 w-3.5 text-rose-400","aria-hidden":"true"})]})]}),(0,t.jsxs)("div",{className:"mt-0.5 flex items-center gap-1.5 text-sm text-zinc-500",children:[(0,t.jsx)("span",{className:"shrink-0 italic text-zinc-400",children:"Company hidden · Pro only"}),(0,t.jsx)("span",{className:"text-zinc-300",children:"·"}),(0,t.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,t.jsx)(c,{className:"h-3 w-3 shrink-0 text-zinc-400"}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:o.label})]})]}),(0,t.jsxs)("div",{className:(0,i.cn)("mt-2 flex flex-wrap items-center gap-1.5"),children:[s&&(0,t.jsx)(C,{score:e.work_life_score}),(0,t.jsx)(k.ScheduleTag,{job:e,size:"sm"}),(0,t.jsx)(k.SalaryTag,{job:e,size:"sm"}),(0,t.jsxs)("span",{className:"ml-auto inline-flex items-center gap-1 rounded-full bg-zinc-900 px-3 py-1 text-xs font-semibold text-white shadow-sm transition-opacity pointer-fine:opacity-0 pointer-fine:group-hover:opacity-100 pointer-fine:group-focus-visible:opacity-100",children:[(0,t.jsx)(x.Lock,{className:"h-3 w-3"}),"Unlock with Pro"]})]})]})]})})}function C({score:e}){return null==e?null:(0,t.jsxs)(k.BaseTag,{color:e>=90?"green":e>=75?"blue":e>=60?"amber":"slate",size:"sm",className:"tabular-nums",tooltip:["Based on hours, flexibility, remote policy, PTO, and schedule"],children:[e," · ",e>=90?"Excellent":e>=75?"Great":e>=60?"Good":"OK"]})}var L=e.i(972520),P=e.i(503116),T=e.i(37727),E=e.i(88653),z=e.i(532181),R=e.i(482754),A=e.i(419060);let M="progate-banner-dismissed-until";function F({count:e}){let[s,a]=(0,l.useState)(!1);(0,l.useEffect)(()=>{let e=function(){try{let e=window.localStorage.getItem(M);if(!e)return null;let t=Number.parseInt(e,10);return Number.isFinite(t)?t:null}catch{return null}}();null!==e&&e>Date.now()&&a(!0)},[]);let r=v({surface:"pro_gate_banner",trigger:"fresh_gate",count:e,logged_in:(0,j.isLoggedInClient)()});if(e<=0)return null;
1let n=1===e?"1 fresh job":`${e} fresh jobs`;return(0,t.jsx)(E.AnimatePresence,{initial:!1,children:!s&&(0,t.jsxs)(z.motion.div,{ref:r,initial:!1,exit:{opacity:0,y:-8,scale:.98},transition:{duration:.22,ease:"easeOut"},className:"relative",children:[(0,t.jsx)(p.default,{href:"/pro",onClick:t=>{(0,y.fireEvent)(y.FathomEvents.BannerCardClick),t.metaKey||t.ctrlKey||t.shiftKey||0!==t.button||(t.preventDefault(),(0,j.trackPaywallCtaClick)({surface:"pro_gate_banner",trigger:"fresh_gate",count:e,destination:"upsell_modal",logged_in:(0,j.isLoggedInClient)()}),(0,A.dispatchProUpsell)("fresh_gate",{force:!0,count:e}))},"data-testid":"pro-gate-banner","aria-label":`Unlock with Pro — ${n} new to the board in the last 48 hours require Pro to apply`,"aria-haspopup":"dialog",className:"group block w-full bg-gradient-to-r from-rose-50 via-pink-50/80 to-amber-50/50 px-4 py-4 text-left transition-colors hover:from-rose-100/80 hover:via-pink-50 hover:to-amber-50/70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-pink focus-visible:ring-inset",children:(0,t.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-center gap-3 pr-7 sm:pr-0",children:[(0,t.jsxs)("div",{className:"relative mt-0.5 flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-xl bg-white shadow-sm ring-1 ring-rose-200",children:[(0,t.jsx)(P.Clock,{className:"h-4 w-4 text-rose-600","aria-hidden":"true"}),(0,t.jsxs)("span",{className:"absolute -right-0.5 -top-0.5 flex h-2.5 w-2.5",children:[(0,t.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-rose-400 opacity-75"}),(0,t.jsx)("span",{className:"relative inline-flex h-2.5 w-2.5 rounded-full bg-rose-500 ring-2 ring-white"})]})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("p",{className:"text-sm font-semibold leading-tight text-zinc-900",children:[(0,t.jsx)("span",{className:"text-rose-600",children:n})," need Pro to unlock"]}),(0,t.jsxs)("p",{className:"mt-0.5 text-xs text-zinc-500",children:["New to the board in the last 48 hours. ",(0,R.proCompactPriceLine)(),"."]})]})]}),(0,t.jsxs)("span",{"aria-hidden":"true",className:"inline-flex flex-shrink-0 items-center gap-1 self-start rounded-lg bg-zinc-900 px-3 py-1.5 text-xs font-semibold text-white shadow-sm transition-transform group-hover:scale-[1.02] sm:mr-7 sm:self-auto",children:["Unlock",(0,t.jsx)(L.ArrowRight,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]})]})}),(0,t.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),(0,y.fireEvent)(y.FathomEvents.ProGateBannerDismiss),(0,j.trackPaywallDismissed)({surface:"pro_gate_banner",trigger:"fresh_gate",logged_in:(0,j.isLoggedInClient)()});var t=Date.now()+2592e6;try{window.localStorage.setItem(M,String(t))}catch{}a(!0)},"data-testid":"pro-gate-banner-dismiss","aria-label":"Dismiss banner",className:"absolute right-2 top-2 z-10 inline-flex h-6 w-6 items-center justify-center rounded-full bg-white/90 text-zinc-400 ring-1 ring-zinc-200/80 transition-colors hover:bg-white hover:text-zinc-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-pink focus-visible:ring-offset-1",children:(0,t.jsx)(T.X,{className:"h-3.5 w-3.5","aria-hidden":"true"})})]},"pro-gate-banner")})}var I=e.i(104778);let $=[3,13],O=(0,l.memo)(function({jobs:e,isFiltering:u,selectedJobSlug:m,onJobSelect:h,onJobPrefetch:x,advert:g,showWorkLifeScore:p,distanceAnchor:f,distanceUnit:b,gateMeta:j,autoApplySurface:v,autoApplyContext:y,onResultClick:w,zeroResultRecovery:N}){let k=(0,l.useMemo)(()=>new Set($.map(e=>e-1).filter(t=>t>=0&&t<e.length)),[e.length]),_=(0,l.useRef)(new Set),C=(0,l.useCallback)(e=>{_.current.has(e)||(_.current.add(e),(0,n.trackAdvertImpression)(e))},[]);if(u&&0===e.length)return(0,t.jsxs)("div",{className:"space-y-4","aria-busy":"true",role:"status","aria-label":"Loading jobs",children:[(0,t.jsx)(d.JobCardSkeleton,{}),(0,t.jsx)(d.JobCardSkeleton,{}),(0,t.jsx)(d.JobCardSkeleton,{}),(0,t.jsx)(d.JobCardSkeleton,{}),(0,t.jsx)(d.JobCardSkeleton,{})]});if(0===e.length)return j&&j.hidden_fresh_count>0?(0,t.jsx)(I.ProGateEmptyState,{count:j.hidden_fresh_count}):(0,t.jsxs)("div",{className:"flex flex-col items-center px-6 py-16 text-center",children:[(0,t.jsx)("div",{className:"mb-5 flex h-16 w-16 items-center justify-center rounded-2xl bg-gradient-to-br from-blue-100 to-indigo-100",children:(0,t.jsx)(s.SearchX,{className:"h-8 w-8 text-blue-500"})}),(0,t.jsx)("h3",{className:"text-lg font-semibold text-brand-gray-900",children:"No jobs match your filters"}),N?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"mt-2 max-w-sm text-sm leading-relaxed text-brand-gray-600",children:["Your search is narrowed by"," ",(0,t.jsx)("span",{className:"font-medium text-brand-gray-900",children:N.label}),". Dropping it usually brings results back."]}),(0,t.jsxs)("button",{type:"button",onClick:N.onRemove,"data-testid":"zero-result-drop-filter",className:"mt-5 inline-flex min-h-11 items-center gap-2 rounded-full bg-brand-gray-900 px-5 text-sm font-semibold text-white shadow-sm transition-colors hover:cursor-pointer hover:bg-brand-gray-800",children:[(0,t.jsx)(a.SlidersHorizontal,{className:"h-4 w-4"}),"Remove this filter"]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"mt-2 max-w-sm text-sm leading-relaxed text-brand-gray-600",children:"We couldn't find any jobs with those criteria. Try broadening your search or removing some filters."}),(0,t.jsxs)("div",{className:"mt-5 flex items-center gap-2 text-xs text-brand-gray-400",children:[(0,t.jsx)(a.SlidersHorizontal,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{children:"Tip: fewer filters = more results"})]})]}),!1!==v&&(0,t.jsx)("div",{className:"mt-8 w-full max-w-xl",children:(0,t.jsx)(r.AutoApplyCTACard,{surface:"job-search-zero-results",context:y})})]});let L=!!(j&&j.hidden_fresh_count>0),P=v&&!L?v:null;return(0,t.jsxs)("div",{className:"relative","aria-busy":!!u||void 0,children:[u&&(0,t.jsx)("div",{"aria-hidden":"true",className:"progress-indeterminate pointer-events-none absolute inset-x-0 top-0 z-10 h-0.5"}),L&&j&&(0,t.jsx)("div",{className:"border-b border-zinc-100",children:(0,t.jsx)(F,{count:j.hidden_fresh_count})}),P&&(0,t.jsx)("div",{className:"border-b border-zinc-100",children:(0,t.jsx)(r.AutoApplyCTACard,{surface:P,context:y})}),(0,t.jsx)("div",{className:(0,i.cn)("divide-y divide-zinc-100 transition-opacity duration-150",u&&"pointer-events-none opacity-60"),children:e.map((e,s)=>(0,t.jsxs)(l.Fragment,{children:[(0,t.jsx)("div",{className:"job-card-item",onClick:w?t=>{let a=t.target.closest?.("a");!a||a.getAttribute("href")?.startsWith("/company/")||w(s,!!e.locked)}:void 0,children:e.locked?(0,t.jsx)(S,{job:e,showWorkLifeScore:p}):(0,t.jsx)(c.JobCard,{job:e,variant:"row",isSelected:m===e.slug,onSelect:h,onPrefetch:x,showWorkLifeScore:p,distanceAnchor:f,distanceUnit:b})}),g&&k.has(s)&&(0,t.jsx)("div",{className:"job-card-item",children:(0,t.jsx)(o.AdvertJobCard,{advert:g,onImpression:C})})]},e.id))})]})});e.s(["JobList",0,O],879684)},620431,e=>{"use strict";var t=e.i(843476),s=e.i(373375),a=e.i(463059),l=e.i(271645);e.i(393475);var r=e.i(806908);let n=(0,l.memo)(function({currentPage:e,totalPages:l,total:n,perPage:i,onPageChange:o}){if(l<=1)return null;
1let c=Math.min(e*i,n),d=function(e,t){if(t<=5)return Array.from({length:t},(e,t)=>t+1);let s=[1];if(e<=3){for(let e=2;e<=Math.min(3,t-1);e++)s.push(e);s.push(-1),s.push(t)}else if(e>=t-2){s.push(-1);for(let e=Math.max(t-2,2);e<=t;e++)s.push(e)}else s.push(-1),s.push(e),s.push(-2),s.push(t);return s}(e,l);return(0,t.jsxs)("div",{className:"flex flex-col items-center gap-3 border-t border-zinc-100 px-4 py-4",children:[(0,t.jsxs)("p",{className:"text-md text-zinc-500","aria-live":"polite","aria-atomic":"true",children:["Showing"," ",(0,t.jsxs)("span",{className:"font-medium tabular-nums text-zinc-700",children:[(e-1)*i+1,"-",c]})," ","of ",(0,t.jsx)("span",{className:"font-medium tabular-nums text-zinc-700",children:n.toLocaleString()})," ","jobs"]}),(0,t.jsxs)("nav",{className:"flex items-center gap-1.5","aria-label":"Pagination",children:[(0,t.jsx)("button",{type:"button",onClick:()=>o(e-1),disabled:e<=1,className:(0,r.cn)("inline-flex h-11 w-11 items-center justify-center rounded-lg ring-1 ring-inset transition-colors",e<=1?"cursor-not-allowed text-zinc-300 ring-zinc-100":"cursor-pointer text-zinc-700 ring-zinc-200 hover:bg-rose-50 hover:text-rose-700"),"aria-label":"Previous page",children:(0,t.jsx)(s.ChevronLeft,{className:"h-4 w-4"})}),(0,t.jsx)("div",{className:"flex items-center gap-1.5",children:d.map(s=>{if(s<0)return(0,t.jsx)("span",{className:"flex h-11 w-11 items-center justify-center text-sm text-zinc-400",children:"..."},`ellipsis-${s}`);let a=s===e;return(0,t.jsx)("button",{type:"button",onClick:()=>o(s),className:(0,r.cn)("inline-flex h-11 w-11 cursor-pointer items-center justify-center rounded-lg text-sm font-medium tabular-nums transition-colors",a?"bg-zinc-900 text-white shadow-sm":"text-zinc-600 hover:bg-rose-50 hover:text-rose-700"),"aria-label":`Page ${s}`,"aria-current":a?"page":void 0,children:s},s)})}),(0,t.jsx)("button",{type:"button",onClick:()=>o(e+1),disabled:e>=l,className:(0,r.cn)("inline-flex h-11 w-11 items-center justify-center rounded-lg ring-1 ring-inset transition-colors",e>=l?"cursor-not-allowed text-zinc-300 ring-zinc-100":"cursor-pointer text-zinc-700 ring-zinc-200 hover:bg-rose-50 hover:text-rose-700"),"aria-label":"Next page",children:(0,t.jsx)(a.ChevronRight,{className:"h-4 w-4"})})]})]})});e.s(["JobPagination",0,n])},476573,e=>{"use strict";var t=e.i(843476),s=e.i(71829),a=e.i(748163),l=e.i(85961);let r=()=>{},n=e=>{},i=e=>{},o=e=>{};e.s(["JobsPageSkeleton",0,function({rows:e=s.JOBS_PER_PAGE}={}){let c=Array.from({length:Math.max(1,Math.min(e,s.JOBS_PER_PAGE))},(e,t)=>t);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.FilterBar,{filters:{},filterCounts:null,countsLoading:!0,toggleScheduleType:r,toggleCategory:r,toggleLevel:r,toggleWorkArrangement:o,setSearchQuery:n,whereValue:null,onWhereSelect:r,setSalaryMin:i,setMinWorkLifeScore:i,hasActiveFilters:!1,onClearFilters:r,allFiltersSheetOpen:!1,onAllFiltersSheetOpenChange:r}),(0,t.jsxs)("div",{className:"mb-4 flex items-center justify-between px-1",children:[(0,t.jsx)("div",{className:"h-4 w-24 animate-pulse rounded bg-slate-200/50"}),(0,t.jsx)("div",{className:"h-9 w-28 animate-pulse rounded-lg bg-white shadow-sm ring-1 ring-slate-200/60"})]}),(0,t.jsxs)("div",{className:"hidden lg:grid lg:grid-cols-[5fr_9fr] lg:gap-3",children:[(0,t.jsx)("div",{role:"status","aria-label":"Loading jobs",className:"min-h-[calc(100vh-6rem)] overflow-hidden rounded-xl bg-white shadow-lg shadow-blue-950/5",children:c.map(e=>(0,t.jsx)(l.JobCardSkeleton,{},e))}),(0,t.jsx)("div",{className:"flex h-[calc(100vh-6rem)] items-center justify-center rounded-2xl bg-white shadow-lg shadow-blue-950/5",children:(0,t.jsx)("div",{className:"h-4 w-40 animate-pulse rounded bg-blue-200/50"})})]}),(0,t.jsx)("div",{role:"status","aria-label":"Loading jobs",className:"overflow-hidden rounded-xl bg-white shadow-lg shadow-blue-950/5 lg:hidden",children:c.map(e=>(0,t.jsx)(l.JobCardSkeleton,{},e))})]})}])},300579,141120,e=>{"use strict";var t=e.i(843476),s=e.i(618566),a=e.i(271645),l=e.i(846696),r=e.i(899602),n=e.i(643531),i=e.i(664659),o=e.i(152616),c=e.i(59377);e.i(393475);var d=e.i(806908);let u=(0,a.memo)(function({total:e,entityLabel:s,sort:l,sortOptions:u,defaultSort:m,onSortChange:h,isLoading:x,hideTotal:g,leftAction:p,scopeHint:f}){let[b,j]=(0,a.useState)(!1),v=l||m,y=u.find(e=>e.value===v)?.label||u[0]?.label;return(0,t.jsxs)("div",{className:"mb-4 flex items-center justify-between px-1",children:[x?(0,t.jsx)("div",{className:"h-4 w-24 animate-pulse rounded bg-slate-200/50"}):g?f?(0,t.jsxs)("p",{className:"min-w-0 truncate text-sm text-brand-gray-400",children:["Showing jobs ",f]}):(0,t.jsx)("div",{}):(0,t.jsxs)("p",{className:"min-w-0 truncate text-sm text-brand-gray-600",children:[e.toLocaleStr
1ing()," ",s,f&&(0,t.jsxs)("span",{className:"ml-1 text-brand-gray-400",children:["· ",f]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[p,(0,t.jsxs)(c.Popover,{open:b,onOpenChange:j,children:[(0,t.jsx)(c.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)("button",{type:"button","data-testid":"sort-trigger",className:(0,d.cn)("inline-flex min-h-10 min-w-[140px] items-center gap-1.5 rounded-lg bg-white px-3 py-2 text-sm font-medium shadow-sm ring-1 ring-slate-200/60 transition-colors hover:cursor-pointer hover:bg-slate-50 sm:min-h-0 sm:min-w-0",v!==m?"text-emerald-700":"text-brand-gray-600"),children:[(0,t.jsx)(r.ArrowUpDown,{className:"h-3.5 w-3.5 opacity-60"}),y,(0,t.jsx)(i.ChevronDown,{className:(0,d.cn)("h-3.5 w-3.5 transition-transform",b&&"rotate-180")})]})}),(0,t.jsx)(c.PopoverContent,{align:"end",className:"w-48 p-1",children:u.map(e=>(0,t.jsxs)("button",{type:"button","data-testid":`sort-option-${e.value}`,onClick:()=>{h(e.value===m?void 0:e.value),j(!1)},className:(0,d.cn)("flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors",v===e.value?"bg-emerald-50 font-medium text-emerald-700":"text-brand-gray-700 hover:bg-brand-gray-100"),children:[(0,t.jsx)("span",{children:e.label}),e.proTag&&(0,t.jsx)(o.ProTag,{}),v===e.value&&(0,t.jsx)(n.Check,{className:"ml-auto h-4 w-4"})]},e.value))})]})]})]})});e.s(["ResultsHeader",0,u],141120);var m=e.i(47405),h=e.i(697162);e.i(558486);var x=e.i(980218),g=e.i(118036),p=e.i(394580),f=e.i(61976);let b="fdw_job_search_last",j=["q","category","level","work_arrangements","schedule_types","locations","skills","salary_min","sort","min_work_life_score","posted_after"];function v(e){let t={};for(let s of j){let a=e[s];void 0===a||Array.isArray(a)&&0===a.length||("string"!=typeof a||0!==a.length)&&(t[s]=a)}return t}function y(e){for(let t of j){let s=e[t];if(!(void 0===s||Array.isArray(s)&&0===s.length)&&("string"!=typeof s||0!==s.length))return!0}return!1}function w(e){let t=Object.keys(e).sort(),s=[];for(let a of t){let t=e[a];void 0!==t&&(Array.isArray(t)?s.push(`${a}=${[...t].sort().join(",")}`):s.push(`${a}=${String(t)}`))}return s.join("&")}let N=(0,p.createLogger)("useJobFilterPersistence"),k="/job-search";var _=e.i(463440),S=e.i(182189),C=e.i(668827),L=e.i(88852),P=e.i(964556),T=e.i(71829),E=e.i(195716),z=e.i(193872);let R="mobile_v1";function A(e){let t=[];return e.q&&t.push("q"),e.category?.length&&t.push("category"),e.level?.length&&t.push("level"),e.schedule_types?.length&&t.push("schedule_types"),e.work_arrangements?.length&&t.push("work_arrangements"),e.worldwide_only&&t.push("worldwide_only"),(e.near_location||e.near_country)&&t.push("where"),e.locations?.length&&t.push("locations"),e.salary_min&&t.push("salary_min"),e.min_work_life_score&&t.push("min_work_life_score"),e.skills?.length&&t.push("skills"),e.posted_after&&t.push("posted_after"),t}function M(e,t){switch(t){case"q":return e.q?`len:${e.q.length}`:"";case"category":return[...e.category??[]].sort().join(",");case"level":return[...e.level??[]].sort().join(",");case"schedule_types":return[...e.schedule_types??[]].sort().join(",");case"work_arrangements":return[...e.work_arrangements??[]].sort().join(",");case"worldwide_only":return e.worldwide_only?"1":"";case"where":return e.near_location??e.near_country??"";case"locations":return[...e.locations??[]].sort().join(",");case"salary_min":return e.salary_min?String(e.salary_min):"";case"min_work_life_score":return e.min_work_life_score?String(e.min_work_life_score):"";case"skills":return[...e.skills??[]].sort().join(",");case"posted_after":return e.posted_after?String(e.posted_after):""}}let F=["q","category","level","schedule_types","work_arrangements","worldwide_only","where","locations","salary_min","min_work_life_score","skills","posted_after"];var I=e.i(419060),$=e.i(182547),O=e.i(385174),D=e.i(699354),B=e.i(37727);let J={remote:"Remote",hybrid:"Hybrid",onsite:"On-site"},W=(0,a.memo)(function({filters:e,whereLabel:s,onWhereSelect:l,toggleScheduleType:r,toggleLevel:n,toggleWorkArrangement:i,setSalaryMin:o,setSalaryMax:c,toggleSkill:u,setPostedAfter:m}){let h=(0,a.useMemo)(()=>{let t=[],a=s??e.near_country??e.locations?.join(", ")??null;for(let s of(a&&(e.near_location||e.near_country||e.locations?.length)&&t.push({key:"where",label:a,onRemove:()=>l(null)}),e.work_arrangements??[]))t.push({key:`wa:${s}`,label:J[s]??s,onRemove:()=>i(s)});
1for(let s of(e.worldwide_only&&t.push({key:"worldwide",label:"Work from anywhere",onRemove:()=>i("worldwide")}),e.schedule_types??[]))t.push({key:`st:${s}`,label:T.SCHEDULE_TYPE_LABELS[s]??s,onRemove:()=>r(s)});for(let s of e.level??[])t.push({key:`lvl:${s}`,label:T.JOB_LEVELS.find(e=>e.value===s)?.label??s,onRemove:()=>n(s)});for(let s of(e.salary_min&&t.push({key:"salary",label:`$${Math.round(e.salary_min/1e3)}k+`,onRemove:()=>o(void 0)}),e.salary_max&&t.push({key:"salary_max",label:`Under $${Math.round(e.salary_max/1e3)}k`,onRemove:()=>c(void 0)}),e.skills??[]))t.push({key:`skill:${s}`,label:s,onRemove:()=>u(s)});return e.posted_after&&t.push({key:"posted_after",label:1===e.posted_after?"Posted today":`Posted last ${e.posted_after} days`,onRemove:()=>m(void 0)}),t},[e,s,l,i,r,n,o,c,u,m]);return 0===h.length?null:(0,t.jsx)("ul",{role:"list","data-testid":"applied-filter-chips","aria-label":"Applied filters",className:"-mt-1 mb-4 flex list-none flex-wrap gap-2 sm:hidden",children:h.map(e=>(0,t.jsx)("li",{className:"max-w-full",children:(0,t.jsxs)("button",{type:"button",onClick:e.onRemove,"data-testid":`applied-chip-${e.key}`,"aria-label":`Remove filter: ${e.label}`,className:(0,d.cn)("inline-flex h-8 max-w-full items-center gap-1 rounded-full bg-white pl-3 pr-2 text-xs","font-medium text-brand-gray-700 shadow-sm ring-1 ring-brand-gray-200 transition-colors","hover:cursor-pointer hover:bg-brand-gray-50","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-rose-300"),children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"truncate",children:e.label}),(0,t.jsx)(B.X,{className:"h-3 w-3 shrink-0 text-brand-gray-400","aria-hidden":"true"})]})},e.key))})});var U=e.i(748163),q=e.i(687447),G=e.i(879684),H=e.i(620431),V=e.i(476573),K=e.i(245423),X=e.i(531278),Y=e.i(270756),Q=e.i(167881),Z=e.i(630374),ee=e.i(23750),et=e.i(10708),es=e.i(62870),ea=e.i(513793),el=e.i(364059);function er({open:e,onOpenChange:r,filters:n,defaultName:i,isPro:o,onSaved:c}){let d=(0,s.useRouter)(),[u,m]=(0,a.useState)(i),[h,x]=(0,a.useState)("weekly"),[g,p]=(0,a.useState)(!1);(0,a.useEffect)(()=>{e&&(m(i),x("weekly"),(0,E.fireEvent)(E.FathomEvents.SaveSearchModalOpened))},[e,i]);let f=async()=>{let e=u.trim()||i,t="off"!==h,s="weekly"===h?"weekly":"daily";p(!0);try{let a=await (0,ea.apiFetch)("/api/saved-searches/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,filters:n,notify_frequency:s,is_active:t})});(0,E.fireEvent)(E.FathomEvents.SaveSearchCreated),l.toast.success(t?"weekly"===h?`Alert saved — we'll email you on Sundays when new jobs match "${e}".`:`Alert saved — we'll email you daily when new jobs match "${e}".`:`"${e}" saved. Manage it any time from your dashboard.`),c?.(a),r(!1)}catch(e){e?.code===402&&"quota_exceeded"===e.errorCode?l.toast.error("You've hit the 20-alert limit. Delete an alert from your dashboard to add a new one."):e?.code===403&&"upgrade_required"===e.errorCode?(r(!1),d.push("/pro?origin=/job-search")):l.toast.error("Could not create alert. Please try again in a moment.")}finally{p(!1)}};return(0,t.jsx)(Z.Dialog,{open:e,onOpenChange:r,children:(0,t.jsxs)(Z.DialogContent,{className:"sm:max-w-md","data-
1ph-mask":!0,children:[!o&&(0,t.jsxs)("div",{className:"mb-1 flex items-start gap-3 rounded-lg border border-amber-200 bg-amber-50 p-3 text-sm",children:[(0,t.jsx)(Y.Lock,{className:"mt-0.5 h-4 w-4 shrink-0 text-amber-700","aria-hidden":"true"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-semibold text-amber-900",children:"Pro feature"}),(0,t.jsx)("p",{className:"text-amber-800",children:"Save searches and get one deduped email when new jobs match."})]})]}),(0,t.jsxs)(Z.DialogHeader,{children:[(0,t.jsxs)(Z.DialogTitle,{className:"flex items-center gap-2",children:[(0,t.jsx)(K.Bell,{className:"h-4 w-4","aria-hidden":"true"}),"Create a job alert"]}),(0,t.jsx)(Z.DialogDescription,{children:"We'll email you when new matching jobs are posted. Manage from your dashboard any time."})]}),(0,t.jsxs)("div",{className:"space-y-4 py-2",children:[(0,t.jsxs)("div",{className:"ph-no-capture space-y-1.5",children:[(0,t.jsx)(et.Label,{htmlFor:"save-search-name",children:"Name"}),(0,t.jsx)(ee.Input,{id:"save-search-name",value:u,onChange:e=>m(e.target.value),maxLength:255,placeholder:i,disabled:g})]}),(0,t.jsxs)("div",{className:"space-y-1.5",children:[(0,t.jsx)(et.Label,{htmlFor:"save-search-cadence",children:"Email me"}),(0,t.jsxs)(es.Select,{value:h,onValueChange:e=>x(e),disabled:g,children:[(0,t.jsx)(es.SelectTrigger,{id:"save-search-cadence",children:(0,t.jsx)(es.SelectValue,{})}),(0,t.jsxs)(es.SelectContent,{children:[(0,t.jsx)(es.SelectItem,{value:"weekly",children:"Weekly digest (Sundays)"}),(0,t.jsx)(es.SelectItem,{value:"daily",children:"Daily digest"}),(0,t.jsx)(es.SelectItem,{value:"off",children:"Off — just save the search"})]})]})]})]}),(0,t.jsxs)(Z.DialogFooter,{className:"gap-2 sm:gap-0",children:[(0,t.jsx)(Q.Button,{type:"button",variant:"outline",onClick:()=>r(!1),disabled:g,children:"Cancel"}),o?(0,t.jsx)(Q.Button,{type:"button",onClick:f,disabled:g||!u.trim(),"data-testid":"save-search-modal-save",children:g?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(X.Loader2,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Creating…"]}):"Create alert"}):(0,t.jsx)(Q.Button,{type:"button",onClick:()=>{(0,E.fireEvent)(E.FathomEvents.SaveSearchUpgradeClicked),(0,el.trackPaywallCtaClick)({surface:"save_search_modal",trigger:"save_search",destination:"upsell_modal",logged_in:!0}),r(!1),(0,I.dispatchProUpsell)("save_search",{force:!0})},"data-testid":"save-search-modal-upgrade",children:"Upgrade to Pro"})]})]})})}function en({filters:e,className:l}){let r=(0,s.useRouter)(),{has:n,loggedIn:i}=(0,h.useEntitlements)(),[o,c]=(0,a.useState)(!1),u=n(D.SLUG_SAVED_SEARCH_ALERTS);if(i&&u&&!(0,O.hasSearchIntent)(e))return null;let m=(0,O.suggestSearchName)(e);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{if(!i){let e=`${window.location.pathname}${window.location.search}`;r.push(`/signup?redirect=${encodeURIComponent(e)}&reason=saved_search`);return}c(!0)},"data-testid":"save-search-button","aria-label":"Create alert",className:(0,d.cn)("inline-flex min-h-10 items-center gap-1.5 rounded-lg bg-white px-3 py-2 text-sm font-medium text-brand-gray-700 shadow-sm ring-1 ring-slate-200/60 transition-colors hover:cursor-pointer hover:bg-slate-50 sm:min-h-0",l),children:[(0,t.jsx)(K.Bell,{className:"h-3.5 w-3.5 opacity-60","aria-hidden":"true"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Create alert"})]}),i&&(0,t.jsx)(er,{open:o,onOpenChange:c,filters:e,defaultName:m,isPro:u})]})}let ei="(min-width: 64rem)",eo="fdw_job_search_last_rows";e.s(["JobsPageClient",0,function({initialState:e,initialJobDetail:r=null}={}){let n,i,o,c,p,j,B,J,K,X,[Y,Q]=(0,a.useState)(!1),Z=(0,a.useRef)(!1),ee=(0,a.useCallback)(()=>{Z.current=!0,Q(!0)},[]),et=function(){let[e,t]=(0,a.useState)(()=>!window.matchMedia(ei).matches);return(0,a.useEffect)(()=>{let e=window.matchMedia(ei);t(!e.matches);let s=e=>t(!e.matches);return e.addEventListener("change",s),()=>e.removeEventListener("change",s)},[]),e}();(0,a.useEffect)(()=>{let e=setTimeout(ee,1200);return()=>clearTimeout(e)},[ee]);let{filters:es,jobs:ea,total:el,meta:er,isFiltering:ec,initialLoadDone:ed,lastFetchFailed:eu,filterCounts:em,countsLoading:eh,selectedJobSlug:ex,currentPage:eg,totalPages:ep,goToPage:ef,clearAllFilters:eb,selectJob:ej,deselectJob:ev,toggleScheduleType:ey,toggleCategory:ew,toggleLevel:eN,toggleWorkArrangement:ek,setSearchQuery:e_,setLocationAnchor:eS,setNearCountry:eC,clearWhere:eL,setSalaryMin:eP,setSalaryMax:eT,toggleSkill:eE,setPostedAfter:ez,setMinWorkLifeScore:eR,setSort:eA,setScheduleTypes:eM,setCategories:eF,setLevels:eI,setWorkArrangements:e$,hasActiveFilters:eO}=(0,_.useJobFilters)(e,{deferInitialFetch:!Y}),eD=(0,s.useRouter)(),eB=(n=(0,a.useRef)(r?new Map([[r.job.slug,r]]):new Map),i=(0,a.useRef)(new Map),o=(0,a.useCallback)((e,t)=>{let s=n.current;if(s.delete(e),s.set(e,t),s.size>20){let e=s.keys().next().value;void 0!==e&&s.delete(e)}},[]),c=(0,a.useCallback)(e=>{let t=i.current.get(e);if(t)return t;let s=(0,x.fetchJob)(e);return i.current.set(e,s),s.then(t=>o(e,t),()=>{}).finally(()=>i.current.delete(e)),s},[o]),p=(0,a.useCallback)(e=>n.current.get(e),[]),j=(0,a.useCallback)(e=>{n.current.has(e)||i.current.has(e)||c(e).catch(()=>{})},[c]),B=(0,a.useCallback)(e=>{let t=n.current.get(e);return t?Promise.resolve(t):c(e)},[c]),(0,a.useMemo)(()=>({getCached:p,prefetch:j,load:B}),[p,j,B])),{has:eJ,subscription:eW,loading:eU}=(0,h.useEntitlements)(),eq=eW?.plan_slug!=="pro",eG=eJ(D.SLUG_AD_FREE_BROWSING),eH=(0,a.useRef)(null);(0,a.useEffect)(()=>
1{if(1!==eg||!eO||ec)return;let e=JSON.stringify({...es,page:void 0,limit:void 0});if(e===eH.current)return;let t=setTimeout(()=>{eH.current=e,(0,P.trackSearchEvent)(es,el)},1e3);return()=>clearTimeout(t)},[es,el,eg,eO,ec]);let[eV,eK]=(0,a.useState)(!1),eX=(0,a.useRef)(!1);eX.current=eV;let eY=(0,a.useRef)(!1);(0,a.useEffect)(()=>{eY.current=eX.current},[es]);let eQ=(0,a.useRef)(null),eZ=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(ec||!ed||eu)return;let e=setTimeout(()=>{let e=eQ.current;if(eQ.current=es,e){let t=F.filter(t=>M(e,t)!==M(es,t));t.length>0&&function({filters:e,changed:t,source:s,resultCount:a}){let l=A(e);(0,z.track)("job_search_filter_applied",{facet:1===t.length?t[0]:null,changed_facets:t,changed_count:t.length,active_facets:l,active_count:l.length,source:s,result_count:a,has_query:!!e.q,sort:e.sort??"best_match",variant:R})}({filters:es,changed:t,source:eY.current?"sheet":"pill",resultCount:el})}if(0===el){let e=JSON.stringify({...es,page:void 0,limit:void 0,sort:void 0});e!==eZ.current&&(eZ.current=e,(0,z.track)("job_search_zero_results",{active_facets:A(es),has_query:!!es.q,variant:R}))}else eZ.current=null},1e3);return()=>clearTimeout(e)},[es,el,ec,ed,eu]);let e0=(0,a.useCallback)(()=>{for(let e of es.skills??[])eE(e);es.posted_after&&ez(void 0),null!=es.salary_max&&eT(void 0)},[es.skills,es.posted_after,es.salary_max,eE,ez,eT]),e1=(0,a.useCallback)(()=>{!function(){if("u"<typeof document)return;let e=[`${b}=`,"Path=/","Max-Age=0","SameSite=Lax"];"https:"===window.location.protocol&&e.push("Secure"),document.cookie=e.join("; ")}(),(0,E.fireEvent)(E.FathomEvents.JobSearchFiltersCleared),eb()},[eb]);J=(0,s.usePathname)(),K=(0,s.useSearchParams)(),X=(0,a.useRef)(null),(0,a.useEffect)(()=>{if(J!==k)return;let e=v((0,f.getJobFiltersFromParams)(K));if(!y(e))return;let t=function(){if("u"<typeof document)return null;for(let e of document.cookie?document.cookie.split("; "):[]){let t=e.indexOf("=");if(-1!==t&&e.slice(0,t)===b)return decodeURIComponent(e.slice(t+1))||null}return null}();if(t===(0,f.buildFilterSearchString)(e))return;let s=t?v((0,f.getJobFiltersFromParams)(new URLSearchParams(t))):null;e===s||e&&s&&w(e)===w(s)||function(e){if("u"<typeof document||!y(e))return;let t=(0,f.buildFilterSearchString)(e);if(!t)return;let s=[`${b}=${encodeURIComponent(t)}`,"Path=/","Max-Age=7776000","SameSite=Lax"];"https:"===window.location.protocol&&s.push("Secure"),document.cookie=s.join("; ")}(e)},[J,K]),(0,a.useEffect)(()=>{if(J!==k||"u"<typeof document||!document.cookie.includes("logged_in=1"))return;let e=v((0,f.getJobFiltersFromParams)(K));if(y(e))return X.current&&clearTimeout(X.current),X.current=setTimeout(()=>{(0,g.recordSearch)(e).catch(e=>{N.debug("search-history POST failed (non-fatal)",e)})},1500),()=>{X.current&&clearTimeout(X.current)}},[J,K]);let e4=(0,a.useCallback)((e,t)=>{!function({position:e,locked:t,page:s}){(0,z.track)("job_search_result_clicked",{position:e,locked:t,page:s,variant:R})}({position:(eg-1)*T.JOBS_PER_PAGE+e+1,locked:t,page:eg})},[eg]),e5=(0,a.useCallback)(e=>{var t;e&&(t=A(es).length,(0,z.track)("job_search_sheet_opened",{active_facets:t,variant:R})),eK(e)},[es]),e2=(0,a.useCallback)(e=>{if(!eU){if(eq&&void 0!==e)return void(0,I.dispatchProUpsell)("salary_filter",{force:!0});eP(e)}},[eU,eq,eP]),e3=(0,a.useCallback)(e=>{if(eU)return;if(eq&&"date"===e)return void(0,I.dispatchProUpsell)("date_sort",{force:!0});if(eq&&"salary"===e)return void(0,I.dispatchProUpsell)("salary_sort",{force:!0});let t=e??"best_match";t!==(es.sort??"best_match")&&((0,z.track)("job_search_sort_changed",{sort:t,result_count:el,variant:R}),eA(e))},[eU,eq,eA,el,es.sort]),{isHeaderVisible:e6}=(0,S.useScrollDirection)(),e7=(0,s.useSearchParams)();(0,a.useEffect)(()=>{try{"1"===sessionStorage.getItem("onboarding_just_completed")&&(sessionStorage.removeItem("onboarding_just_completed"),l.toast.success("Your preferences are set! Save jobs you like or click Apply to get started."))}catch{}},[]);let[e8,e9]=(0,a.useState)(null),te=es.category?.[0];(0,a.useEffect)(()=>{if(eU||eG||1!==eg)return void e9(null);let e=!1;return(0,L.getActiveAdvert)(void 0,te).then(t=>{e||e9(t)}).catch(()=>{e||e9(null)}),()=>{e=!0}},[eU,eG,eg,te]);let[tt,ts]=(0,a.useState)(!1),[ta,tl]=(0,a.useState)(!1);(0,a.useEffect)(()=>{ts(document.cookie.includes("logged_in=1")),tl(!0)},[]);let{user:tr,isLoading:tn}=(0,m.useMarketingUser)(),[ti,to]=(0,a.useState)(null),[tc,td]=(0,a.useState)(!1),tu=(0,a.useRef)(!1),tm=(0,a.useRef)(!1);(0,a.useEffect)(()=>
1{if(!ti&&!tm.current){if(es.near_location){let e=!1;return(0,C.fetchLocationById)(es.near_location).then(t=>{e||to({locationId:t.location.id,displayText:t.location.display_text,country:t.location.country,city:t.location.city,latitude:t.location.latitude,longitude:t.location.longitude})}).catch(()=>{}),()=>{e=!0}}es.near_country&&to({locationId:"",displayText:es.near_country,country:es.near_country})}},[es.near_location,es.near_country,ti]),(0,a.useEffect)(()=>{tu.current||!tr||(tu.current=!0,es.near_location||es.near_country||es.locations?.length||(tr.location_id?(eS(tr.location_id,{replace:!0}),td(!0)):tr.location?.country&&(eC(tr.location.country,{replace:!0}),td(!0)),ee()))},[tr,es.near_location,es.near_country,es.locations,eS,eC,ee]),(0,a.useEffect)(()=>{Y||(es.near_location||es.near_country||es.locations?.length?ee():ta&&(!tt||tn||tr||ee()))},[Y,ta,tt,tn,tr,es.near_location,es.near_country,es.locations,ee]);let th=(0,a.useRef)(!1);(0,a.useEffect)(()=>{if(th.current||!ta||tt||es.near_location||es.near_country||es.locations?.length||tm.current)return;th.current=!0;let e=!1;return(0,C.detectMyLocation)().then(t=>{!t||e||tm.current||Z.current||(eS(t.location.id,{replace:!0}),td(!0),to({locationId:t.location.id,displayText:t.location.display_text,country:t.location.country,city:t.location.city,latitude:t.location.latitude,longitude:t.location.longitude}))}).catch(()=>{}).finally(ee),()=>{e=!0}},[ta,tt]);let tx=(0,a.useCallback)(e=>{tm.current=!0,td(!1),to(e),e?e.locationId?eS(e.locationId):e.country&&eC(e.country):eL()},[eL,eS,eC]),tg=(0,a.useMemo)(()=>{let e=(0,O.narrowestActiveFilter)(es);if(!e)return null;switch(e.facet){case"q":return{label:e.label,onRemove:()=>e_(void 0)};case"salary_min":return{label:e.label,onRemove:()=>eP(void 0)};case"min_work_life_score":return{label:e.label,onRemove:()=>eR(void 0)};case"level":return{label:e.label,onRemove:()=>eI([])};case"category":return{label:e.label,onRemove:()=>eF([])};case"locations":return{label:e.label,onRemove:()=>tx(null)};case"skills":{let t=es.skills??[];return{label:e.label,onRemove:()=>{for(let e of t)eE(e)}}}}},[es,e_,eP,eR,eI,eF,eE,tx]),tp=!!ti||!!es.near_location||!!es.near_country,tf=(0,a.useMemo)(()=>{let e=ti?.latitude,t=ti?.longitude;return ti?.city&&null!=e&&null!=t&&(0!==e||0!==t)?{lat:e,lng:t}:null},[ti?.city,ti?.latitude,ti?.longitude]),tb=(0,$.distanceUnitForCountry)(ti?.country),tj=!ec&&0===ea.length&&(er?.hidden_fresh_count??0)>0,tv=tf?`Jobs near ${ti?.city}`:(0,O.hasActiveJobFilters)(es)?(0,O.generateFilterSummaryText)(es):"All jobs",ty=ta&&!tt||tj,tw=(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3 border-b border-zinc-100 px-4 py-3",children:[(0,t.jsx)("span",{className:"min-w-0 truncate text-sm font-semibold text-zinc-900",children:tv}),!ty&&(0,t.jsxs)("span",{className:"shrink-0 text-xs tabular-nums text-zinc-400",children:[el.toLocaleString()," ",1===el?"result":"results"]})]}),tN=e=>{if(e!==eg){if((0,z.track)("job_search_paginated",{to_page:e,logged_in:tt,variant:R}),e>1&&!tt){let t=new URLSearchParams(e7.toString());t.set("page",String(e));let s=`/job-search?${t.toString()}`;eD.push(`/signup?redirect=${encodeURIComponent(s)}&reason=pagination`);return}ef(e)}};(0,a.useEffect)(()=>{if(ta&&(Number(e7.get("page"))||1)>1&&!tt){let e=`/job-search?${e7.toString()}`;eD.replace(`/signup?redirect=${encodeURIComponent(e)}&reason=pagination`)}},[ta,tt,e7]),(0,a.useEffect)(()=>{if(ed&&!ec&&!eu)try{sessionStorage.setItem(eo,String(ea.length))}catch{}},[ed,ec,eu,ea.length]);let tk=(0,a.useRef)(null),t_=(0,a.useRef)(null),tS=(0,a.useRef)(eg);return((0,a.useEffect)(()=>{if(tS.current!==eg&&!ec){let e=[tk.current,t_.current].find(e=>e?.offsetParent!=null);e?.scrollIntoView({behavior:"smooth",block:"start"})}tS.current=eg},[eg,ec]),!ed&&ec)?(0,t.jsx)(V.JobsPageSkeleton,{rows:function(){try{let e=sessionStorage.getItem(eo),t=null==e?NaN:Number.parseInt(e,10);return Number.isFinite(t)&&t>0?t:void 0}catch{return}}()}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(U.FilterBar,{filters:es,filterCounts:em,countsLoading:eh,toggleScheduleType:ey,toggleCategory:ew,toggleLevel:eN,toggleWorkArrangement:ek,setSearchQuery:e_,whereValue:ti,onWhereSelect:tx,whereAutoApplied:tc,total:el,isFiltering:ec,setSalaryMin:e2,salaryProGated:eq,setMinWorkLifeScore:eR,hasActiveFilters:eO,onClearFilters:e1,allFiltersSheetOpen:eV,onAllFiltersSheetOpenChange:e5,setScheduleTypes:eM,setCategories:eF,setLevels:eI,setWorkArrangements:e$,clearExtraFilters:e0}),(0,t.jsx)(W,{filters:es,whereLabel:ti?.displayText,onWhereSelect:tx,toggleScheduleType:ey,toggleLevel:eN,toggleWorkArrangement:ek,setSalaryMin:eP,setSalaryMax:eT,toggleSkill:eE,setPostedAfter:ez}),(0,t.jsx)(u,{total:el,entityLabel:"jobs",sort:es.sort||"best_match",sortOptions:[{value:"best_match",label:"Best Match"},...tp?[{value:"nearest",label:"Nearest me"}]:[],{value:"work_life_score",label:"Work-Life Balance"},{value:"date",label:"Newest",proTag:eq},{value:"salary",label:"Highest Salary",proTag:eq}],defaultSort:"best_match",onSortChange:e3,isLoading:ec,hideTotal:ta&&!tt||tj,leftAction:(0,t.jsx)(en,{filters:es}),scopeHint:ti?.country?`eligible from ${ti.country}`:void 0}),(0,t.jsxs)("div",{ref:tk,"data-testid":"split-pane-desktop",className:"hidden scroll-mt-20 lg:grid lg:grid-cols-[5fr_9fr] lg:gap-3",children:[(0,t.jsxs)("div",{className:(0,d.cn)("overflow-hidden rounded-2xl bg-white shadow-sm shadow-zinc-200/60 ring-1 ring-zinc-200",ep>1&&"grid grid-cols-[minmax(0,1fr)] grid-rows-[auto_1fr_auto]",ep>1&&(e6?"min-h-[calc(100vh-6rem)]":"min-h-[calc(100vh-2rem)]")),children:[tw,(0,t.jsx)(G.JobList,{jobs:ea,isFiltering:ec,selectedJobSlug:ex,onJobSelect:ej,onJobPrefetch:eB.prefetch,advert:e8,showWorkLifeScore:!0,distanceAnchor:tf,distanceUnit:tb,gateMeta:er,onResultClick:e4,zeroResultRecovery:tg,autoApplySurface:"job-search-banner",autoApplyContext:{category:es.category?.[0],location:es.locations?.[0],scheduleType:es.schedule_types?.[0]}}),(0,t.jsx)(H.JobPagination,{currentPage:eg,totalPages:ep,total:el,perPage:T.JOBS_PER_PAGE,onPageChange:tN})]}),(0,t.jsx)("div",{className:(0,d.cn)("hidden lg:block self-start sticky overflow-hidden rounded-2xl bg-white ring-1 ring-zinc-200 shadow-sm shadow-zinc-200/50 transition-[top,height] duration-300",e6?"top-20 h-[calc(100vh-6rem)]":"top-4 h-[calc(100vh-2rem)]"),children:!et&&(0,t.jsx)(q.JobDetailPane,{selectedJobSlug:ex,onClose:ev,hasNoResults:!ec&&0===ea.length,proGatedEmpty:tj,hiddenFreshCount:er?.hidden_fresh_count,initialJobDetail:r,
1jobDetailCache:eB})})]}),(0,t.jsxs)("div",{ref:t_,"data-testid":"job-list-mobile",className:"lg:hidden scroll-mt-20 overflow-hidden rounded-2xl bg-white shadow-sm shadow-zinc-200/60 ring-1 ring-zinc-200",children:[tw,(0,t.jsx)(G.JobList,{jobs:ea,isFiltering:ec,advert:e8,showWorkLifeScore:!0,distanceAnchor:tf,distanceUnit:tb,gateMeta:er,onResultClick:e4,zeroResultRecovery:tg}),(0,t.jsx)(H.JobPagination,{currentPage:eg,totalPages:ep,total:el,perPage:T.JOBS_PER_PAGE,onPageChange:tN})]})]})},"LG_MEDIA_QUERY",0,ei],300579)},600620,e=>{"use strict";var t=e.i(843476),s=e.i(607486),a=e.i(503116),l=e.i(565157),r=e.i(694351),n=e.i(346897),i=e.i(271645),o=e.i(806908),c=e.i(182547);let d={remote:{icon:r.Home,label:"Remote",bgClass:"bg-sky-50",textClass:"text-sky-700",iconClass:"text-sky-600",ringClass:"ring-sky-200/80"},hybrid:{icon:s.Building2,label:"Hybrid",bgClass:"bg-emerald-50",textClass:"text-emerald-700",iconClass:"text-emerald-600",ringClass:"ring-emerald-200/80"},onsite:{icon:n.MapPin,label:"On-site",bgClass:"bg-brand-gray-100",textClass:"text-brand-gray-700",iconClass:"text-brand-gray-600",ringClass:"ring-border/80"}},u=(0,i.memo)(function({job:e,hybridDaysMin:r,hybridDaysMax:i,remotePolicy:u,className:m}){let{work_arrangement:h,locations:x,timezones:g}=e,p=h||"remote",f=d[p],b=f.icon,j=(0,c.officeTuples)(x),v=(0,c.remoteTuples)(x);(0,c.getLocationBadgeInfo)(e,{hybrid_days_min:r,hybrid_days_max:i});let y=(0,c.getRemoteRestrictionsSummary)(v,g),w=j.find(e=>e.is_primary)||j[0];return(0,t.jsxs)("div",{className:(0,o.cn)("flex h-full flex-col rounded-2xl border bg-white p-4 shadow-sm shadow-zinc-200/50 transition-all hover:shadow-md hover:shadow-zinc-300/50 hover:border-border-strong",m),children:[(0,t.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[(0,t.jsx)("div",{className:(0,o.cn)("flex h-9 w-9 items-center justify-center rounded-xl shadow-sm",f.bgClass,f.textClass),children:(0,t.jsx)(b,{className:(0,o.cn)("h-5 w-5",f.iconClass)})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:(0,o.cn)("text-sm font-semibold",f.textClass),children:f.label}),"hybrid"===p&&(void 0!==r||void 0!==i)&&(0,t.jsxs)("span",{className:"ml-1.5 text-sm text-zinc-500",children:["(",void 0!==r&&void 0!==i&&r!==i?`${r}-${i} days`:`${r??i} day${(r??i)!==1?"s":""}`,"/week)"]})]})]}),"remote"===p?(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(l.Globe2,{className:"h-4 w-4 text-zinc-400"}),(0,t.jsx)("span",{className:"text-sm text-zinc-700",children:y})]}),g&&g.length>0&&(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsx)(a.Clock,{className:"h-4 w-4 text-zinc-400 mt-0.5"}),(0,t.jsx)("span",{className:"text-sm text-zinc-600",children:g.length<=3?g.join(" or "):`${g.length} timezone options`})]}),u&&(0,t.jsx)("p",{className:"mt-1 text-xs text-zinc-500 leading-relaxed line-clamp-2",title:u,children:u}),w&&(0,t.jsxs)("div",{className:"flex items-center gap-2 text-zinc-500",children:[(0,t.jsx)(s.Building2,{className:"h-4 w-4"}),(0,t.jsxs)("span",{className:"text-sm",children:["Office available in ",(0,c.formatLocation)(w)]})]})]}):"hybrid"===p?(0,t.jsxs)("div",{className:"space-y-2",children:[w&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(n.MapPin,{className:"h-4 w-4 text-zinc-400"}),(0,t.jsx)("span",{className:"text-sm text-zinc-700",children:(0,c.formatLocation)(w)})]}),j.length>1&&(0,t.jsxs)("p",{className:"text-xs text-zinc-500",children:["+",j.length-1," more office",j.length>2?"s":""]})]}):(0,t.jsxs)("div",{className:"space-y-2",children:[w&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(n.MapPin,{className:"h-4 w-4 text-zinc-400"}),(0,t.jsx)("span",{className:"text-sm text-zinc-700",children:(0,c.formatLocation)(w)})]}),j.length>1&&(0,t.jsxs)("p",{className:"text-xs text-zinc-500",children:["+",j.length-1," more location",j.length>2?"s":""]})]})]})});e.s(["LocationEligibilityCard",0,u])},107230,e=>{"use strict";var t=e.i(843476),s=e.i(87316),a=e.i(503116),l=e.i(212426),r=e.i(778917);let n=(0,e.i(475254).default)("sliders-vertical",[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}
1],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]]);var i=e.i(897250),o=e.i(271645);e.i(393475);var c=e.i(556910),d=e.i(642438);let u=(0,o.memo)(function({scheduleType:e,hoursFullTime:o,fourDayOff:u,coreHoursFrom:m,coreHoursTo:h,flexibility:x,fourDayReferenceUrl:g}){let p=(0,d.getScheduleTypeInfo)(e),f=(0,d.formatDayOff)(u),b=(0,d.formatFlexibility)(x);return o||u||m||x?(0,t.jsxs)("div",{className:"space-y-3 text-sm",children:[o&&(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(a.Clock,{className:"h-4 w-4 text-brand-gray-400 shrink-0"}),(0,t.jsxs)("span",{className:"text-brand-gray-700",children:[o," hours per week"]})]}),f&&(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(s.Calendar,{className:"h-4 w-4 text-brand-gray-400 shrink-0"}),(0,t.jsxs)("span",{className:"text-brand-gray-700",children:[f," off"]})]}),p&&(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(l.DollarSign,{className:"h-4 w-4 text-brand-gray-400 shrink-0"}),(0,t.jsx)("span",{className:"text-brand-gray-700",children:100===p.salaryPercent?"100% salary":"80% salary (pro-rata)"})]}),void 0!==m&&void 0!==h&&(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(i.Sun,{className:"h-4 w-4 text-brand-gray-400 shrink-0"}),(0,t.jsxs)("span",{className:"text-brand-gray-700",children:["Core hours: ",(0,d.formatHour)(m)," – ",(0,d.formatHour)(h)]})]}),b&&(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)(n,{className:"h-4 w-4 text-brand-gray-400 shrink-0"}),(0,t.jsxs)("span",{className:"text-brand-gray-700",children:["Flexibility: ",b]})]}),g&&(0,t.jsxs)("a",{href:(0,c.addUtmParams)(g),target:"_blank",rel:"noopener noreferrer",className:"mt-1 inline-flex items-center gap-2 text-sm font-medium text-brand-pink transition-colors hover:text-rose-700",children:["Read their 4-day policy",(0,t.jsx)(r.ExternalLink,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:" (opens in new tab)"})]})]}):null});e.s(["ScheduleDetailsSection",0,u],107230)},858855,e=>{"use strict";var t=e.i(843476),s=e.i(87316),a=e.i(503116),l=e.i(778917);let r=(0,e.i(475254).default)("infinity",[["path",{d:"M6 16c5 0 7-8 12-8a4 4 0 0 1 0 8c-5 0-7-8-12-8a4 4 0 1 0 0 8",key:"18ogeb"}]]);var n=e.i(897250),i=e.i(522016),o=e.i(271645);e.i(393475);var c=e.i(556910),d=e.i(806908),u=e.i(642438);let m=["M","T","W","T","F"],h=(0,o.memo)(function({scheduleType:e,fourDayOff:o,hoursPerWeek:h,scheduleTypeShortDescription:x,scheduleTypeDescription:g,fourDayReferenceUrl:p,resolvedURL:f,className:b}){let j=(0,u.getScheduleVisualization)(e,o),v=x||(0,u.formatScheduleTypeLabel)(e),y=g||(0,u.getScheduleTypeDescription)(e),w=(0,u.formatDayOff)(o),N=[];return h&&N.push(`${h} hrs/week`),w&&N.push(`${w} off`),j.isProRata&&N.push("80% salary"),(0,t.jsxs)("div",{className:(0,d.cn)("relative flex h-full flex-col rounded-2xl border bg-white p-4 shadow-sm shadow-zinc-200/50 transition-all hover:shadow-md hover:shadow-zinc-300/50 hover:border-border-strong",b),children:[p&&(0,t.jsxs)("a",{href:(0,c.addUtmParams)(p),target:"_blank",rel:"noopener noreferrer",className:"absolute top-3 right-3 flex h-7 w-7 items-center justify-center rounded-lg bg-brand-gray-100 text-zinc-500 ring-1 ring-border transition-all hover:bg-brand-blue/30 hover:text-zinc-700 hover:ring-border-strong",title:"View company's work schedule policy",children:[(0,t.jsx)(l.ExternalLink,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{className:"sr-only",children:" (opens in new tab)"})]}),(0,t.jsxs)("div",{className:"mb-3 flex items-center gap-2",children:[j.days.map((e,s)=>(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1",children:[(0,t.jsx)("span",{className:"text-xs font-medium text-zinc-500",children:m[s]}),(0,t.jsx)("div",{className:(0,d.cn)("h-4 w-4 rounded-full transition-all","filled"===e&&"bg-gradient-to-br from-brand-green to-teal-600 shadow-sm","empty"===e&&"border border-zinc-400 bg-brand-blue ring-1 ring-border/80","half"===e&&"bg-gradient-to-b from-emerald-500 via-emerald-500 to-zinc-100 shadow-sm","flex"===e&&"bg-gradient-to-br from-amber-100 to-amber-200 ring-1 ring-amber-300/60")})]},s)),j.icon&&(0,t.jsx)("div",{className:"ml-1 flex h-6 w-6 items-center justify-center",children:(()=>{switch(j.icon){case"sun":return(0,t.jsx)(n.Sun,{className:"h-4 w-4 text-amber-500"});case"infinity":return(0,t.jsx)(r,{className:"h-4 w-4 text-violet-500"});case"calendar":return(0,t.jsx)(s.Calendar,{className:"h-4 w-4 text-sky-500"});case"clock":return(0,t.jsx)(a.Clock,{className:"h-4 w-4 text-emerald-500"});default:return null}})()})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[f?(0,t.jsx)(i.default,{href:f.url,className:"text-sm font-semibold text-zinc-900 hover:text-brand-pink transition-colors",children:v||"Standard Schedule"}):(0,t.jsx)("span",{className:"text-sm font-semibold text-zinc-900",children:v||"Standard Schedule"}),j.isProRata&&(0,t.jsx)("span",{className:"inline-flex items-center rounded-full bg-amber-100 px-2 py-0.5 text-xs font-medium text-amber-700",children:"80%"})]}),N.length>0&&(0,t.jsx)("p",{className:"mt-1 text-sm text-zinc-600",children:N.join(" · ")}),j.note&&(0,t.jsx)("p",{className:"mt-0.5 text-xs text-zinc-500",children:j.note}),y&&(0,t.jsx)("p",{className:"mt-2 text-sm text-zinc-600 line-clamp-2",children:y})]})});e.s(["ScheduleVisualCard",0,h],858855)},995409,e=>{"use strict";var t=e.i(843476),s=e.i(271645),a=e.i(643531),l=e.i(344523),r=e.i(37727),n=e.i(753751),i=e.i(59377);e.i(393475);var o=e.i(806908);function c({options:e,selected:d,onToggle:u,placeholder:m="Select...",searchPlaceholder:h="Search...",emptyMessage:x="No results found",searchable:g=!0,maxDisplayChips:p=2,maxSelections:f,onSearch:b,className:j}
1){let[v,y]=(0,s.useState)(!1),[w,N]=(0,s.useState)(""),k=(0,s.useRef)(null),_=(0,s.useCallback)(e=>{N(e),b&&(k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{b(e)},300))},[b]);(0,s.useEffect)(()=>()=>{k.current&&clearTimeout(k.current)},[]),(0,s.useEffect)(()=>{!v&&(N(""),b&&b(""))},[v,b]);let S=(0,s.useCallback)(e=>{1===f?(u(e),y(!1)):u(e)},[f,u]),C=(0,s.useCallback)((e,t)=>{e.stopPropagation(),u(t)},[u]),L=d.map(t=>e.find(e=>e.value===t)).filter(Boolean),P=L.slice(0,p),T=L.length-p;return(0,t.jsxs)(i.Popover,{open:v,onOpenChange:y,modal:!1,children:[(0,t.jsx)(i.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)("div",{role:"combobox",tabIndex:0,"aria-expanded":v,className:(0,o.cn)("flex w-full cursor-pointer items-center justify-between rounded-lg border bg-white px-3 py-2 text-sm transition-colors hover:bg-brand-blue/5 focus:border-rose-300 focus:outline-none focus:ring-2 focus:ring-rose-100",j),children:[(0,t.jsx)("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1",children:0===L.length?(0,t.jsx)("span",{className:"text-brand-gray-400",children:m}):(0,t.jsxs)(t.Fragment,{children:[P.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-rose-50 py-0.5 pl-2 pr-1 text-xs font-medium text-rose-700 ring-1 ring-rose-100",children:[e.icon&&(0,t.jsx)("span",{className:"text-xs",children:e.icon}),(0,t.jsx)("span",{className:"max-w-[100px] truncate",children:e.label}),(0,t.jsx)("button",{type:"button",onClick:t=>C(t,e.value),className:"rounded-full p-0.5 transition-colors hover:bg-rose-200","aria-label":`Remove ${e.label}`,children:(0,t.jsx)(r.X,{className:"h-3 w-3"})})]},e.value)),T>0&&(0,t.jsxs)("span",{className:"rounded-full bg-rose-100 px-2 py-0.5 text-xs font-medium text-rose-700",children:["+",T]})]})}),(0,t.jsx)(l.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0 text-brand-gray-400"})]})}),(0,t.jsx)(i.PopoverContent,{className:"w-[var(--radix-popover-trigger-width)] p-0",align:"start",sideOffset:4,collisionPadding:16,children:(0,t.jsxs)(n.Command,{shouldFilter:!b,children:[g&&(0,t.jsx)(n.CommandInput,{placeholder:h,value:w,onValueChange:_}),(0,t.jsxs)(n.CommandList,{className:"max-h-[200px]",children:[(0,t.jsx)(n.CommandEmpty,{children:x}),(0,t.jsx)(n.CommandGroup,{children:e.map(e=>{let s=d.includes(e.value);return(0,t.jsxs)(n.CommandItem,{value:e.value,keywords:[e.label],onSelect:()=>S(e.value),className:"gap-2",children:[(0,t.jsx)(a.Check,{className:(0,o.cn)("h-4 w-4 shrink-0",s?"text-brand-pink opacity-100":"opacity-0")}),e.icon&&(0,t.jsx)("span",{className:"text-base",children:e.icon}),(0,t.jsx)("span",{className:"flex-1 truncate",children:e.label}),null!=e.count&&(0,t.jsx)("span",{className:"ml-auto text-xs tabular-nums text-brand-gray-400",children:e.count})]},e.value)})})]})]})})]})}e.i(558486);var d=e.i(980218);let u=(0,s.memo)(function({selectedSkills:e,onToggleSkill:a,className:l}){let[r,n]=(0,s.useState)([]);(0,s.useEffect)(()=>{(0,d.searchSkills)().then(e=>{n(e.skills.map(e=>({value:e.name,label:e.name})))}).catch(()=>{})},[]);let i=(0,s.useCallback)(e=>{(0,d.searchSkills)(e||void 0).then(e=>{n(e.skills.map(e=>({value:e.name,label:e.name})))}).catch(()=>{})},[]);return(0,t.jsx)(c,{options:r,selected:e,onToggle:a,placeholder:"Any skill",searchPlaceholder:"Search skills...",emptyMessage:"No skills found",onSearch:i,className:l})});e.s(["SkillsMultiSelect",0,u],995409)},825117,e=>{"use strict";var t=e.i(843476),s=e.i(842009),a=e.i(994179),l=e.i(728231);e.i(393475);var r=e.i(806908),n=e.i(645720);e.s(["WorkLifeScoreBadge",0,function({score:e,className:i,showIcon:o=!0,showLabel:c=!0,size:d="default"}){let u=(0,n.getWorkLifeScoreInfo)(e);if(!u)return null;let m=(0,t.jsxs)(a.Badge,{variant:"outline",className:(0,r.cn)(u.bgColor,u.textColor,"border-current/20","sm"===d?"text-xs px-1.5 py-0":"text-sm px-2 py-0.5",i),children:[o&&(0,t.jsx)(s.Award,{className:(0,r.cn)("mr-1","sm"===d?"h-3 w-3":"h-3.5 w-3.5")}),u.score,c&&(0,t.jsx)("span",{className:"ml-1 font-normal opacity-80",children:"/ 100"})]});return(0,t.jsxs)(l.Tooltip,{children:[(0,t.jsx)(l.TooltipTrigger,{asChild:!0,children:m}),(0,t.jsx)(l.TooltipContent,{children:(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)("div",{className:"font-medium",children:[u.label," Work-Life Balance"]}),(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:"Based on hours, flexibility, remote policy, PTO, and schedule"})]})})]})},"WorkLifeScoreText",0,function({score:e,className:a}){let i=(0,n.getWorkLifeScoreInfo)(e);return i?(0,t.jsxs)(l.Tooltip,{children:[(0,t.jsx)(l.TooltipTrigger,{asChild:!0,children:(0,t.jsxs)("span",{className:(0,r.cn)("flex items-center gap-1",i.textColor,a),children:[(0,t.jsx)(s.Award,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{className:"font-medium",children:i.score})]})}),(0,t.jsx)(l.TooltipContent,{children:(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)("div",{className:"font-medium",children:[i.label," Work-Life Balance"]}),(0,t.jsx)("div",{className:"text-xs text-muted-foreground",children:i.description})]})})]}):null}])}]);
2
3//# chunkId=7cc76760-274c-5af5-b88f-a340f5542291

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.