PageSourceSearch

https://4dayweek.io/_next/static/chunks/398sttda7p-mj.js?dpl=19331a6d-1790690377

js 4dayweek.io collected 2026-10-02 06:14:03 UTC 168,443 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||"01a0ed7e-984b-0000-d32a-9ad2941af02f";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="6c374bdc-b043-5a33-8f32-c113fc9b6967")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,333745,e=>{"use strict";var t=e.i(843476),a=e.i(972520),r=e.i(643531),s=e.i(283086),i=e.i(37727),n=e.i(88653),o=e.i(532181),l=e.i(522016),d=e.i(271645),c=e.i(285588);let u="Try auto-apply",h="Start auto-applying",m=["Only verified roles on official career pages","Your resume, tailored per role — you rewrite nothing","Review before each send, or go fully hands-off"],x="Powered by JobCopilot";function p(e){return e&&"other"!==e?e.replace(/-/g," "):""}let f={"4_day_week":"4-day-week","4_day_week_pro_rata":"4-day-week",compressed_week:"compressed-week",half_day_fridays:"half-day-Friday","9_day_fortnight":"9-day-fortnight",summer_fridays:"summer-Friday",rotating_4_day:"rotating 4-day",flex_fridays:"flex-Friday",flexible_hours:"flexible-hours",unlimited_pto:"unlimited-PTO",generous_pto:"generous-PTO",part_time:"part-time",no_meeting_days:"no-meeting-days",generous_parental_leave:"generous-parental-leave"};function g(e){return e?f[e]??e.replace(/_/g,"-"):""}var b=e.i(195716);e.i(64107);var y=e.i(806908);let v="auto-apply-banner-dismissed-until";e.s(["AutoApplyCTACard",0,function({surface:e,context:f,className:j}){let{headline:w,body:k,ctaLabel:N}=function(e,t={}){let a,{category:r,location:s,scheduleType:i,companyName:n}=t,o="string"==typeof i?i:void 0,l=(a=p(r),[g(o),a].filter(Boolean).join(" ").trim()),d=[s,p(r)].filter(Boolean).join(" ").trim(),m=g(o);switch(e){case"job-detail-sidebar":return{headline:l?`Land more ${l} interviews`:"Land 10× more interviews — hands-free",body:"While you read this one, auto-apply is submitting tailored applications to 50+ similar roles a day.",ctaLabel:u};case"job-search-banner":return{headline:d?`Stop applying to ${d} roles by hand.`:"Tired of copy-pasting cover letters?",body:"Auto-apply submits 50+ tailored applications a day. You focus on landing interviews.",ctaLabel:u};case"job-search-zero-results":{let e=p(r);return{headline:e?`No ${e} roles here today. There are 500,000+ elsewhere.`:"Nothing here? Auto-apply scans 500,000+ career pages.",body:e?`Auto-apply finds and applies to ${e} roles you'd never see — even on company sites we don't index.`:"Auto-apply finds roles you'd never see — even on company sites we don't index.",ctaLabel:h}}case"jobs-landing-card":return{headline:l?`Land 10\xd7 more ${l} interviews.`:"Land 10× more interviews — without writing another cover letter.",body:`${c.TRUST_CLAIM}. Auto-apply submits tailored applications every morning while you focus on interviews.`,ctaLabel:u};case"company-detail-sidebar":{let e=m?`${m} `:"";return{headline:n&&m?`Want a ${m} job like ${n}'s?`:n?`Want a job like ${n}'s?`:m?`Want a ${m} job?`:"Want a job like this — hands-free?",body:`Auto-apply submits tailored applications to ${e}companies — 50+ a day, while you focus on interviews.`,ctaLabel:u}}case"company-landing-card":{let e=m?`${m} `:"";return{headline:m?`Find a ${m} job — without applying to each one by hand.`:"Find a job here — without applying to each one by hand.",body:`Auto-apply submits tailored applications to ${e}companies on this list (and 50,000+ more) every morning.`,ctaLabel:u}}case"company-landing-sidebar":return{headline:m?`Land more ${m} interviews — hands-free`:"Land more interviews — hands-free",body:`${c.TRUST_CLAIM}. Auto-apply submits 50+ tailored applications a day, on autopilot.`,ctaLabel:u};case"jobs-landing-sidebar":return{headline:l?`Land more ${l} interviews — hands-free`:"Land more interviews — hands-free",body:`${c.TRUST_CLAIM}. Auto-apply submits 50+ tailored applications a day, on autopilot.`,ctaLabel:u};case"homepage-section":return{headline:"Land 10× more interviews — hands-free",body:`${c.TRUST_CLAIM}. Auto-apply scans 500,000+ career pages and applies for you, every morning.`,ctaLabel:u};case"pro-page-cross-sell":return{headline:"Pro finds the jobs. Auto-apply lands the interviews.",body:"You're already 48 hours ahead with Pro. Let auto-apply send the applications, so being early actually turns into interviews.",ctaLabel:u};case"dashboard-empty-state":return{headline:"Job tracker empty? Fill it on auto
1pilot.",body:"Auto-apply submits 50+ tailored applications a day. Watch your tracker fill up while you focus on landing interviews.",ctaLabel:h}}}(e,f),C=(0,d.useRef)(null),_=(0,d.useRef)(!1),S="job-search-banner"===e,P=e.endsWith("-sidebar"),[E,L]=(0,d.useState)(!1);(0,d.useEffect)(()=>{if(!S)return;let e=function(){try{let e=window.localStorage.getItem(v);if(!e)return null;let t=Number.parseInt(e,10);return Number.isFinite(t)?t:null}catch{return null}}();null!==e&&e>Date.now()&&L(!0)},[S]),(0,d.useEffect)(()=>{let e=C.current;if(!e||_.current)return;let t=new IntersectionObserver(([e])=>{e?.isIntersecting&&!_.current&&(_.current=!0,(0,b.fireEvent)(b.FathomEvents.AutoApplyCardImpression),t.disconnect())},{threshold:.5});return t.observe(e),()=>t.disconnect()},[]);let A=()=>{(0,b.fireEvent)(b.FathomEvents.AutoApplyCardClick)},R=`/auto-apply?ref=${encodeURIComponent(e)}`,T=P?(0,t.jsxs)(l.default,{ref:C,href:R,onClick:A,"data-testid":"auto-apply-cta-card","data-surface":e,"aria-label":`${w}. ${k}`,className:(0,y.cn)("group block w-full overflow-hidden rounded-2xl border border-rose-100 bg-white text-left transition-all duration-200 hover:-translate-y-0.5 hover:border-rose-200 hover:shadow-lg hover:shadow-rose-900/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-rose-500/40",j),children:[(0,t.jsxs)("div",{className:"border-b border-rose-100 bg-gradient-to-br from-rose-50 to-rose-50/30 px-[18px] pb-3.5 pt-4",children:[(0,t.jsx)("p",{className:"text-xs font-extrabold uppercase tracking-[0.14em] text-rose-700",children:"Apply on autopilot"}),(0,t.jsx)("p",{className:"mt-2 font-display text-[18px] font-extrabold leading-[1.25] tracking-tight text-brand-gray-900 [text-wrap:pretty]",children:w}),(0,t.jsx)("p",{className:"mt-1.5 text-sm leading-[1.55] text-brand-gray-700 [text-wrap:pretty]",children:k})]}),(0,t.jsx)("ul",{className:"flex flex-col gap-2.5 px-[18px] pt-[15px]",children:m.map(e=>(0,t.jsxs)("li",{className:"flex items-start gap-2.5",children:[(0,t.jsx)(r.Check,{className:"mt-[3px] h-3.5 w-3.5 shrink-0 text-brand-pink",strokeWidth:3,"aria-hidden":"true"}),(0,t.jsx)("span",{className:"text-sm leading-snug text-brand-gray-700",children:e})]},e))}),(0,t.jsxs)("div",{className:"px-[18px] pb-[18px] pt-4",children:[(0,t.jsxs)("span",{"aria-hidden":"true",className:"flex h-[46px] items-center justify-center gap-2 rounded-xl bg-brand-pink text-sm font-bold text-white shadow-md shadow-rose-500/25 transition-colors group-hover:bg-rose-700",children:[(0,t.jsx)("span",{children:N}),(0,t.jsx)(a.ArrowRight,{className:"h-[15px] w-[15px] transition-transform group-hover:translate-x-0.5",strokeWidth:2.4})]}),(0,t.jsx)("p",{className:"mt-[11px] text-center text-sm text-brand-gray-400",children:x})]})]}):(0,t.jsx)(l.default,{ref:C,href:R,onClick:A,"data-testid":"auto-apply-cta-card","data-surface":e,"aria-label":`${w}. ${k}`,className:(0,y.cn)("group block w-full rounded-2xl bg-gradient-to-r from-emerald-50 via-green-50/80 to-teal-50/50 px-4 py-4 text-left ring-1 ring-emerald-100 transition-all hover:from-emerald-100/80 hover:via-green-50 hover:to-teal-50/70 hover:ring-emerald-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500",j),children:(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("div",{className:"relative flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-lg bg-white shadow-sm ring-1 ring-emerald-200",children:(0,t.jsx)(s.Sparkles,{className:"h-5 w-5 text-emerald-600","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-sm font-semibold leading-tight text-slate-900",children:w}),(0,t.jsx)("p",{className:"mt-1 text-xs leading-snug text-slate-600",children:k})]})]}),(0,t.jsxs)("span",{"aria-hidden":"true",className:"inline-flex w-full items-center justify-center gap-1 rounded-md bg-gradient-to-r from-emerald-500 via-green-500 to-teal-500 px-3 py-2 text-xs font-semibold text-white shadow-sm shadow-emerald-200/60 transition-transform group-hover:scale-[1.01]",children:[(0,t.jsx)("span",{children:N}),(0,t.jsx)(a.ArrowRight,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5"})]}),(0,t.jsx)("p",{className:"text-center text-[11px] text-slate-500",children:x})]})});return S?(0,t.jsx)(n.AnimatePresence,{initial:!1,children:!E&&(0,t.jsxs)(o.motion.div,{initial:!1,exit:{opacity:0,y:-8,scale:.98},transition:{duration:.22,ease:"easeOut"},className:"relative",children:[T,(0,t.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),(0,b.fireEvent)(b.FathomEvents.AutoApplyBannerDismiss);var t=Date.now()+2592e6;try{window.localStorage.setItem(v,String(t))}catch{}L(!0)},"data-testid":"auto-apply-cta-card-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-slate-500 ring-1 ring-slate-200/80 transition-colors hover:bg-white hover:text-slate-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 focus-visible:ring-offset-1",children:(0,t.jsx)(i.X,{className:"h-3.5 w-3.5","aria-hidden":"true"})})]},"auto-apply-cta-card")}):T}],333745)},97630,e=>{"use strict";var t=e.i(843476),a=e.i(326999),r=e.i(283086),s=e.i(37727),i=e.i(618566),n=e.i(271645),o=e.i(167881),l=e.i(630374),d=e.i(267249),c=e.i(195716),u=e.i(285588);let h={third_save:{headline:"Saving lots of jobs?",subtext:"Let JobCopilot apply to similar roles for you while you keep browsing — pay-per-use, no subscription."},first_application:{headline:"Application sent.",subtext:"Want JobCopilot to apply to similar roles automatically while you focus on landing interviews?"}
1,third_application:{headline:"You're putting in the work.",subtext:"JobCopilot can apply for you 24/7 — same energy, more interviews."}},m=["Apply to 50+ roles per day, hands-free","Tailored applications via 500,000+ career pages","Review before each send, or go fully hands-off"],x=[{src:"/images/avatars/user-1.jpg",alt:"Auto-apply user"},{src:"/images/avatars/user-2.jpg",alt:"Auto-apply user"},{src:"/images/avatars/user-3.jpg",alt:"Auto-apply user"},{src:"/images/avatars/user-4.jpg",alt:"Auto-apply user"}];e.s(["AutoApplyUpsellModal",0,function(){let e=(0,i.usePathname)(),[p,f]=(0,n.useState)(!1),[g,b]=(0,n.useState)("first_application"),y=(0,n.useRef)(!1),v=(0,d.isAutoApplyUpsellSuppressedRoute)(e),j=(0,n.useCallback)(e=>{p||v||(0,d.isAutoApplyUpsellShownThisSession)()||(0,d.isAutoApplyUpsellDismissed)()||(y.current=!1,b(e),f(!0),(0,d.markAutoApplyUpsellShownThisSession)(),(0,c.fireEvent)(c.FathomEvents.AutoApplyModalOpen))},[p,v]);(0,n.useEffect)(()=>{let e=e=>{let t=e.detail;t?.trigger&&j(t.trigger)};return window.addEventListener(d.AUTO_APPLY_UPSELL_EVENT,e),()=>window.removeEventListener(d.AUTO_APPLY_UPSELL_EVENT,e)},[j]);let w=e=>{e||!p||y.current||((0,d.markAutoApplyUpsellDismissed)(),(0,c.fireEvent)(c.FathomEvents.AutoApplyModalDismiss)),f(e)},{headline:k,subtext:N}=h[g];return(0,t.jsx)(l.Dialog,{open:p,onOpenChange:w,children:(0,t.jsxs)(l.DialogPortal,{children:[(0,t.jsx)(l.DialogOverlay,{className:"bg-black/65"}),(0,t.jsx)(a.Content,{className:"fixed top-[50%] left-[50%] z-50 w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:max-w-md",children:(0,t.jsxs)("div",{"data-testid":"dialog-auto-apply-upsell","data-trigger":g,className:"rounded-2xl border border-slate-200/80 bg-white/95 p-6 shadow-2xl shadow-slate-200/50 backdrop-blur-sm sm:p-8",children:[(0,t.jsx)("button",{type:"button",onClick:()=>w(!1),className:"absolute right-2 top-2 flex h-11 w-11 cursor-pointer items-center justify-center rounded-full text-brand-gray-400 transition-colors hover:bg-slate-100 hover:text-brand-gray-600","aria-label":"Close",children:(0,t.jsx)(s.X,{className:"h-4 w-4"})}),(0,t.jsx)("div",{className:"mb-5 flex justify-center",children:(0,t.jsxs)("div",{className:"inline-flex items-center gap-3",children:[(0,t.jsx)("div",{className:"flex -space-x-2",children:x.map(e=>(0,t.jsx)("img",{src:e.src,alt:e.alt,className:"h-7 w-7 rounded-full object-cover ring-2 ring-white",loading:"lazy"},e.src))}),(0,t.jsx)("span",{className:"text-sm font-medium text-brand-gray-600",children:u.TRUST_CLAIM})]})}),(0,t.jsx)(a.Title,{asChild:!0,children:(0,t.jsx)("h2",{className:"text-center font-display text-2xl font-bold tracking-tight text-brand-gray-900",children:k})}),(0,t.jsx)(a.Description,{asChild:!0,children:(0,t.jsx)("p",{className:"mt-2 text-center text-sm text-brand-gray-600",children:N})}),(0,t.jsx)("ul",{className:"mt-6 space-y-2.5 text-sm text-brand-gray-700",children:m.map(e=>(0,t.jsxs)("li",{className:"flex items-start gap-2",children:[(0,t.jsx)(r.Sparkles,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-brand-pink"}),(0,t.jsx)("span",{children:e})]},e))}),(0,t.jsxs)("div",{className:"mt-6 space-y-2",children:[(0,t.jsx)(o.Button,{type:"button",onClick:()=>{y.current=!0,(0,c.fireEvent)(c.FathomEvents.AutoApplyModalCtaClick),window.location.href=`/auto-apply?ref=upsell-${encodeURIComponent(g)}`},className:"h-12 w-full cursor-pointer rounded-xl bg-brand-pink text-base font-semibold text-white shadow-md transition-all hover:bg-brand-pink-dark hover:shadow-lg",children:"Start auto-applying"}),(0,t.jsx)("button",{type:"button",onClick:()=>w(!1),className:"h-9 w-full cursor-pointer rounded-lg text-sm text-brand-gray-600 transition-colors hover:text-brand-gray-700",children:"Maybe later"})]})]})})]})})}])},996781,e=>{"use strict";let t=(0,e.i(475254).default)("repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);e.s(["Repeat",0,t],996781)},284823,e=>{"use strict";var t=e.i(843476),a=e.i(531278),r=e.i(271645),s=e.i(846696),i=e.i(167881),n=e.i(630374),o=e.i(697162);e.i(558486);var l=e.i(513793),d=e.i(407860),c=e.i(193872),u=e.i(482754);e.s(["CadenceSwitchModal",0,function({open:e,onOpenChange:h,source:m,currentPeriodEnd:x,fromCadence:p,toCadence:f,savingsPct:g}){let{refresh:b}=(0,o.useEntitlements)(),[y,v]=(0,r.useState)(!1);(0,r.useEffect)(()=>{e&&v(!1)},[e]);let j=x?new Date(x).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"}):"your next renewal date",w=(0,u.proCadenceLabel)(f).toLowerCase(),k=(0,u.formatProPrice)(u.PRO_PRICING[f]),N=(0,u.proRecurringPhrase)(f),C=()=>h(!1),_=async()=>{v(!0);try{await (0,d.switchCadence)({source:m,to_cadence:f}),(0,c.track)("pro_cadence_switch_confirmed",{src:m,to_cadence:f}),s.toast.success(`Switch scheduled — you'll move to ${w}
1 billing on ${j}.`),await b(),C()}catch(e){if(v(!1),e instanceof l.ApiError){if("ALREADY_SWITCHING"===e.errorCode){s.toast.info("A billing change is already scheduled."),await b(),C();return}if("NOT_AN_UPGRADE"===e.errorCode){s.toast.info(`You're already on ${w} billing or longer.`),await b(),C();return}if("SUB_CANCELING"===e.errorCode)return void s.toast.error("Reactivate your subscription first.");if("SUB_PAUSED"===e.errorCode)return void s.toast.error("Resume your subscription first.")}s.toast.error("Could not switch your billing. Please try again.")}};return(0,t.jsx)(n.Dialog,{open:e,onOpenChange:h,children:(0,t.jsxs)(n.DialogContent,{className:"sm:max-w-md","data-testid":"dialog-cadence-switch",children:[(0,t.jsxs)(n.DialogHeader,{children:[(0,t.jsx)(n.DialogTitle,{children:`Switch to ${w} billing`}),(0,t.jsx)(n.DialogDescription,{children:`Nothing changes until ${j} — you keep the ${(0,u.proPeriodLabel)(p)} you've already paid for. From ${j}, you'll pay ${k} ${N}${g>0?` (save ${g}% vs your current plan)`:""}.`})]}),(0,t.jsxs)(n.DialogFooter,{className:"gap-2 sm:flex-col",children:[(0,t.jsx)(i.Button,{onClick:_,disabled:y,size:"lg",className:"w-full","data-testid":"btn-confirm-cadence-switch",children:y?(0,t.jsx)(a.Loader2,{className:"h-4 w-4 animate-spin","aria-label":"Working"}):`Confirm switch — ${k} ${N} starting ${j}`}),(0,t.jsx)(i.Button,{variant:"ghost",onClick:C,disabled:y,className:"w-full text-muted-foreground","data-testid":"btn-keep-current",children:`Keep ${(0,u.proCadenceLabel)(p).toLowerCase()}`})]})]})})}])},763705,e=>{"use strict";var t=e.i(843476),a=e.i(996781),r=e.i(271645),s=e.i(332105),i=e.i(167881);e.i(622183);var n=e.i(697162),o=e.i(193872),l=e.i(482754),d=e.i(284823);e.s(["CadenceSwitchBanner",0,function({className:e,autoOpenSource:c}){let{subscription:u,pendingCadenceSwitch:h,loading:m}=(0,n.useEntitlements)(),[x,p]=(0,r.useState)(!1),[f,g]=(0,r.useState)("billing_banner"),b=(0,r.useRef)(!1),y=(0,r.useRef)(!1),v=u?(0,l.nextCadenceUp)(u.billing_cadence):null,j=!m&&!!u&&"pro"===u.plan_slug&&null!==v&&"active"===u.status&&!u.paused&&!u.cancel_at_period_end&&!h;if((0,r.useEffect)(()=>{j&&!b.current&&(b.current=!0,(0,o.track)("pro_cadence_switch_shown",{src:"billing_banner",to_cadence:v}))},[j,v]),(0,r.useEffect)(()=>{j&&c&&!y.current&&(y.current=!0,g(c),p(!0),(0,o.track)("pro_cadence_switch_clicked",{src:c,to_cadence:v}))},[j,c,v]),!j)return null;let w=u.billing_cadence,k=(0,l.proCadenceLabel)(v).toLowerCase(),N=(0,l.formatProPrice)(l.PRO_PRICING[v]),C=(0,l.formatSubscriptionRate)(u),_=(0,l.switchSavingsPct)(u.unit_amount_cents,u.currency,w,v),S=_>0?`Save ${_}% with ${k} billing`:`Pay less often with ${k} billing`,P=C?`You're on Pro at ${C} ${(0,l.proRecurringPhrase)(w)}.`:`You're on Pro ${(0,l.proCadenceLabel)(w).toLowerCase()} billing.`;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.Banner,{variant:"info",title:S,className:e,"data-testid":"cadence-switch-banner",actions:(0,t.jsxs)(i.Button,{onClick:()=>{g("billing_banner"),p(!0),(0,o.track)("pro_cadence_switch_clicked",{src:"billing_banner",to_cadence:v})},size:"sm","data-testid":"btn-switch-cadence",children:[(0,t.jsx)(a.Repeat,{className:"mr-2 h-4 w-4"}),(0,t.jsx)("span",{children:`Switch to ${k}`})]}),children:`${P} Switch to ${k} and pay ${N} ${(0,l.proRecurringPhrase)(v)} — same Pro, fewer charges.`}),(0,t.jsx)(d.CadenceSwitchModal,{open:x,onOpenChange:p,source:f,currentPeriodEnd:u.current_period_end,fromCadence:w,toCadence:v,savingsPct:_})]})}])},57086,e=>{"use strict";let t=(0,e.i(475254).default)("percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);e.s(["Percent",0,t],57086)},478050,e=>{"use strict";e.i(247167);var t=e.i(843476),a=e.i(463059),r=e.i(531278),s=e.i(475254);let i=(0,s.default)("party-popper",[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]]),n=(0,s.default)("circle-pause",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]]);var o=e.i(57086),l=e.i(996781),d=e.i(271645),c=e.i(846696),u=e.i(167881),h=e.i(630374),m=e.i(697162);e.i(558486);var x=e.i(513793),p=e.i(407860),f=e.i(482754);let g="50% off for 3 months",b=[{value:"too_expensive",label:"It's too expensive",offer:"discount"},{value:"not_using",label:"I'm not using it enough",offer:"pause"},{value:"found_a_job",label:"I found a job",offer:"found_job"},{value:"missing_feature",label:"Missing a feature I need",offer:"pause"},{value:"technical",label:"Technical problems",offer:"pause"},{value:"other",label:"Something else",offer:"pause"}],y={ALREADY_SWITCHING:"A billing change is already scheduled — you can pause instead.",NOT_AN_UPGRADE:"You're already on a longer billing period — you can pause instead.",BILLING_NOT_CONFIGURED:"Monthly billing isn't available right now — you can pause instead."};function v(e){return e?new Date(e).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"}):"the end of your billing period"}function j({onPick:e,onSkip:r,disabled:s}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(h.DialogHeader,{children:[(0,t.jsx)(h.DialogTitle,{children:"Before you go"}),(0,t.jsx)(h.DialogDescription,{children:"What's the main reason you're thinking of cancelling? This helps us improve — and it's optional."})]}),(0,t.jsx)("div",{className:"space-y-2 py-2",children:b.map(r=>(0,t.jsxs)("button",{type:"button",disabled:s,onClick:()=>e(r),"data-testid":`cancel-reason-${r.value}`,className:"flex w-full items-center justify-between rounded-xl border border-slate-200 bg-white px-4 py-3 text-left text-sm font-medium text-slate-700 transition-all hover:border-rose-200 hover:bg-rose-50 hover:text-rose-700 disabled:opacity-50",children:[(0,t.jsx)("span",{children:r.label}),(0,t.jsx)(a.ChevronRight,{className:"h-4 w-4 flex-shrink-0 text-slate-400","aria-hidden":"true"})]},r.value))}),(0,t.jsx)(h.DialogFooter,{children:(0,t.jsx)(u.Button,{variant:"ghost",onClick:r,disabled:s,className:"w-full text-muted-foreground","data-testid":"cancel-skip-survey",children:"Just cancel my plan"})})]})}function w({offer:e,subscription:a,busy:s,onPause:d,onDiscount:c,onSwitch:m,onDecline:x}){if("switch_monthly"===e){let e=(0,f.formatProPrice)(f.PRO_PRICING.monthly),i=a?(0,f.formatSubscriptionRate)(a):null,n=a?(0,f.switchSavingsPct)(a.unit_amount_cents,a.currency,"weekly","monthly"):0,o=i?` instead of your ${i} a week`:"",d=n>0?` (save ${n}% vs your current plan)`:"";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(h.DialogHeader,{children:[(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-rose-50",children:(0,t.jsx)(l.Repeat,{className:"h-6 w-6 text-rose-600","aria-hidden":"true"})}),(0,t.jsx)(h.DialogTitle,{className:"text-center",children:"Pay less with monthly billing"}),(0,t.jsx)(h.DialogDescription,{className:"text-center",children:`Switch to monthly billing — ${e} a month${o}${d}. It takes effect at your next renewal, so you keep the week you've already paid for.`})]}),(0,t.jsxs)(h.DialogFooter,{className:"gap-2 sm:flex-col",children:[(0,t.jsx)(u.Button,{onClick:m,disabled:s,size:"lg",className:"w-full","data-testid":"offer-accept-switch",children:s?(0,t.jsx)(r.Loa
1der2,{className:"h-4 w-4 animate-spin","aria-label":"Working"}):`Switch to monthly — ${e}/month`}),(0,t.jsx)(u.Button,{variant:"ghost",onClick:x,disabled:s,className:"w-full text-muted-foreground","data-testid":"offer-decline",children:"No thanks, cancel"})]})]})}return"found_job"===e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(h.DialogHeader,{children:[(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-emerald-50",children:(0,t.jsx)(i,{className:"h-6 w-6 text-emerald-600","aria-hidden":"true"})}),(0,t.jsx)(h.DialogTitle,{className:"text-center",children:"Congratulations on the new role"}),(0,t.jsx)(h.DialogDescription,{className:"text-center",children:"We'd love to have helped. Pause instead of cancelling and we'll keep your saved searches and settings, so you can pick up right where you left off next time you're looking."})]}),(0,t.jsxs)("div",{className:"rounded-xl border border-slate-200 bg-slate-50 p-3 text-center text-sm text-slate-600",children:[(0,t.jsx)("span",{children:"Did 4dayweek help you land it?"})," ",(0,t.jsx)("a",{href:"/contact?subject=testimonial",rel:"nofollow",className:"font-medium text-rose-600 underline underline-offset-2 hover:text-rose-700",children:"Share a quick testimonial"})]}),(0,t.jsxs)(h.DialogFooter,{className:"gap-2 sm:flex-col",children:[(0,t.jsx)(u.Button,{onClick:d,disabled:s,size:"lg",className:"w-full","data-testid":"offer-accept-pause",children:s?(0,t.jsx)(r.Loa
1der2,{className:"h-4 w-4 animate-spin","aria-label":"Working"}):"Pause my plan"}),(0,t.jsx)(u.Button,{variant:"ghost",onClick:x,disabled:s,className:"w-full text-muted-foreground","data-testid":"offer-decline",children:"No thanks, cancel"})]})]}):"discount"===e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(h.DialogHeader,{children:[(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-rose-50",children:(0,t.jsx)(o.Percent,{className:"h-6 w-6 text-rose-600","aria-hidden":"true"})}),(0,t.jsx)(h.DialogTitle,{className:"text-center",children:"Stay for less"}),(0,t.jsx)(h.DialogDescription,{className:"text-center",children:"We'd hate to lose you over price — keep every Pro feature for less."})]}),(0,t.jsxs)("div",{className:"rounded-xl border border-rose-100 bg-rose-50 px-4 py-3 text-center",children:[(0,t.jsx)("div",{className:"font-display text-xl font-bold text-rose-700",children:g}),(0,t.jsx)("div",{className:"text-xs font-medium text-rose-600",children:"applied to your subscription"})]}),(0,t.jsxs)(h.DialogFooter,{className:"gap-2 sm:flex-col",children:[(0,t.jsx)(u.Button,{onClick:c,disabled:s,size:"lg",className:"w-full","data-testid":"offer-accept-discount",children:s?(0,t.jsx)(r.Loa
1der2,{className:"h-4 w-4 animate-spin","aria-label":"Working"}):"Apply my discount"}),(0,t.jsx)(u.Button,{variant:"ghost",onClick:x,disabled:s,className:"w-full text-muted-foreground","data-testid":"offer-decline",children:"No thanks, cancel"})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(h.DialogHeader,{children:[(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-indigo-50",children:(0,t.jsx)(n,{className:"h-6 w-6 text-indigo-600","aria-hidden":"true"})}),(0,t.jsx)(h.DialogTitle,{className:"text-center",children:"Take a break instead?"}),(0,t.jsx)(h.DialogDescription,{className:"text-center",children:"Pause your plan instead of cancelling. We'll stop billing you and keep your saved searches and settings — resume whenever you're ready."})]}),(0,t.jsxs)(h.DialogFooter,{className:"gap-2 sm:flex-col",children:[(0,t.jsx)(u.Button,{onClick:d,disabled:s,size:"lg",className:"w-full","data-testid":"offer-accept-pause",children:s?(0,t.jsx)(r.Loader2,{className:"h-4 w-4 animate-spin","aria-label":"Working"}):"Pause my plan"}),(0,t.jsx)(u.Button,{variant:"ghost",onClick:x,disabled:s,className:"w-full text-muted-foreground","data-testid":"offer-decline",children:"No thanks, cancel"})]})]})}function k({currentPeriodEnd:e,busy:a,onCancel:s,onKeep:i}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(h.DialogHeader,{children:[(0,t.jsx)(h.DialogTitle,{children:"Cancel your plan?"}),(0,t.jsx)(h.DialogDescription,{children:`You'll keep Pro until ${v(e)}, then move to the free plan. You can resubscribe any time.`})]}),(0,t.jsxs)(h.DialogFooter,{className:"gap-2 sm:flex-col",children:[(0,t.jsx)(u.Button,{variant:"destructive",onClick:s,disabled:a,size:"lg",className:"w-full","data-testid":"cancel-confirm",children:a?(0,t.jsx)(r.Loa
1der2,{className:"h-4 w-4 animate-spin","aria-label":"Working"}):"Cancel my plan"}),(0,t.jsx)(u.Button,{onClick:i,disabled:a,className:"w-full","data-testid":"cancel-keep",children:"Keep my plan"})]})]})}e.s(["CancelFlowModal",0,function({open:e,onOpenChange:a,currentPeriodEnd:r}){var s,i;let{refresh:n,subscription:o}=(0,m.useEntitlements)(),[l,u]=(0,d.useState)("survey"),[f,b]=(0,d.useState)(null),[N,C]=(0,d.useState)(""),[_,S]=(0,d.useState)(!1);(0,d.useEffect)(()=>{if(!e)return;u("survey"),b(null),S(!1);let t=!1;return(0,p.startCancelFlow)().then(e=>{t||C(e.event_id)}).catch(()=>{}),()=>{t=!0}},[e]);let P=(s=f?.offer,i=o,"discount"===s&&i?.billing_cadence==="weekly"?"switch_monthly":s??"pause"),E=()=>a(!1),L=async()=>{S(!0);try{await (0,p.pauseSubscription)({reason:f?.value,event_id:N}),await n(),c.toast.success("Your plan is paused. Resume any time from Billing."),E()}catch(e){S(!1),c.toast.error(e instanceof Error?e.message:"Could not pause your plan.")}},A=async()=>{S(!0);try{await (0,p.acceptRetentionOffer)({reason:f?.value,event_id:N}),await n(),c.toast.success(`You're getting ${g} — thanks for staying!`),E()}catch(e){if(S(!1),e instanceof x.ApiError&&"OFFER_UNAVAILABLE"===e.errorCode){c.toast.info("That offer just expired — you can pause instead."),b(e=>e?{...e,offer:"pause"}:e);return}c.toast.error(e instanceof Error?e.message:"Could not apply the discount.")}},R=async()=>{S(!0);try{await (0,p.switchCadence)({source:"cancel_flow",to_cadence:"monthly",event_id:N,reason:f?.value}),await n(),c.toast.success(`Switch scheduled — you'll move to monthly billing on ${v(r)}.`),E()}catch(t){S(!1);let e=function(e){if(!(e instanceof x.ApiError))return null;let t=e.errorCode?y[e.errorCode]:void 0;return t||(503===e.code?y.BILLING_NOT_CONFIGURED??null:null)}(t);if(e){c.toast.info(e),b(e=>e?{...e,offer:"pause"}:e);return}c.toast.error(t instanceof Error?t.message:"Could not switch your billing.")}},T=async()=>{S(!0);try{let e=await (0,p.cancelSubscription)({reason:f?.value,event_id:N});await n(),c.toast.success(`Your plan will cancel on ${v(e.current_period_end)}.`),E()}catch(e){S(!1),c.toast.error(e instanceof Error?e.message:"Could not cancel your plan.")}};return(0,t.jsx)(h.Dialog,{open:e,onOpenChange:a,children:(0,t.jsxs)(h.DialogContent,{className:"sm:max-w-md","data-testid":"cancel-flow-modal",children:["survey"===l&&(0,t.jsx)(j,{disabled:_,onPick:e=>{b(e),u("offer")},onSkip:()=>{b(null),u("confirm")}}),"offer"===l&&f&&(0,t.jsx)(w,{offer:P,subscription:o,busy:_,onPause:L,onDiscount:A,onSwitch:R,onDecline:()=>u("confirm")}),"confirm"===l&&(0,t.jsx)(k,{currentPeriodEnd:r,busy:_,onCancel:T,onKeep:E})]})})}],478050)},575482,e=>{"use strict";var t=e.i(843476);e.i(64107);var a=e.i(806908);e.s(["DashboardCard",0,function({className:e,variant:r="default",interactive:s=!1,...i}){return(0,t.jsx)("div",{className:(0,a.cn)("flex flex-col rounded-2xl","default"===r&&"border bg-white","gradient"===r&&"border border-emerald-200/60 bg-gradient-to-br from-emerald-50/80 to-teal-50/60","outlined"===r&&"border-2 border-dashed bg-white/50","glass"===r&&"border border-border/80 bg-white/95 shadow-sm backdrop-blur-sm",s&&"cursor-pointer transition-all duration-200 hover:-translate-y-0.5 hover:shadow-md hover:border-border-strong",e),...i})},"DashboardCardContent",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,a.cn)("p-6",e),...r})},"DashboardCardDescription",0,function({className:e,...r}){return(0,t.jsx)("p",{className:(0,a.cn)("text-sm text-muted-foreground",e),...r})},"DashboardCardHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,a.cn)("flex flex-col gap-1.5 p-6 pb-0",e),...r})},"DashboardCardTitle",0,function({className:e,...r}){return(0,t.jsx)("h3",{className:(0,a.cn)("font-semibold leading-none tracking-tight",e),...r})}])},221784,e=>{"use strict";var t=e.i(843476),a=e.i(63209),r=e.i(167881);e.i(64107);var s=e.i(806908),i=e.i(575482);e.s(["DashboardErrorState",0,function({message:e,onRetry:n,className:o,"data-testid":l}){let d=n??(()=>window.location.reload());return(0,t.jsx)(i.DashboardCard,{className:(0,s.cn)("py-12 text-center",o),"data-testid":l,children:(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[(0,t.jsx)("div",{className:"rounded-full bg-rose-100 p-3",children:(0,t.jsx)(a.AlertCircle,{className:"h-8 w-8 text-brand-pink"})}),(0,t.jsx)("h3",{className:"mt-4 font-semibold text-brand-gray-900",children:"Something went wrong"}),(0,t.jsx)("p",{className:"mt-2 max-w-sm text-sm text-muted-foreground",children:e}),(0,t.jsx)(r.Button,{className:"mt-6",onClick:d,children:"Try Again"})]})})}])},63270,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(705844),s=e.i(30030);e.i(30207);var i=e.i(934620),n=e.i(248425),o=Object.defineProperty,l=(e,t)=>
1o(e,"name",{value:t,configurable:!0}),d="Avatar",[c,u]=(0,s.createContextScope)(d),h=[0,()=>void 0],[m,x]=c(d),p=a.forwardRef(l(function(e,r){let{__scopeAvatar:s,...i}=e,[o,l]=a.useState("idle"),[d,c]=b();return(0,t.jsx)(m,{scope:s,imageLoadingStatus:o,setImageLoadingStatus:l,imageCount:d,setImageCount:c,children:(0,t.jsx)(n.Primitive.span,{...i,ref:r})})},"Avatar")),f=a.forwardRef(l(function(e,r){let{__scopeAvatar:s,delayMs:i,...o}=e,l=x("AvatarFallback",s),[d,c]=a.useState(void 0===i);return a.useEffect(()=>{if(void 0!==i){let e=window.setTimeout(()=>c(!0),i);return()=>window.clearTimeout(e)}},[i]),d&&"loaded"!==l.imageLoadingStatus?(0,t.jsx)(n.Primitive.span,{...o,ref:r}):null},"AvatarFallback"));function g(e){return e.complete?e.naturalWidth>0?"loaded":"error":"loading"}function b(){let e=h;if(r.IS_DEVELOPMENT){let[t]=e=a.useState(0),r=a.useRef(!1);a.useEffect(()=>{t>1&&!r.current&&(r.current=!0,console.warn("Avatar: Only one `Avatar.Image` component should be rendered per `Avatar.Root`, but multiple were detected. This will lead to unexpected behavior."))},[t])}return e}l(function(e,{loadingStatus:t,setLoadingStatus:a,referrerPolicy:r,crossOrigin:s}){return(0,i.useLayoutEffect)(()=>{if(!e)return void a("error");let t=new window.Image,i=l(e=>{a(g(e.currentTarget))},"handleLoad"),n=l(()=>a("error"),"handleError");return t.addEventListener("load",i),t.addEventListener("error",n),r&&(t.referrerPolicy=r),t.crossOrigin=s??null,t.src=e,a(g(t)),()=>{t.removeEventListener("load",i),t.removeEventListener("error",n),a("idle")}},[e,s,r,a]),t},"useImageLoadingStatus"),l(g,"getImageLoadingStatus"),l(b,"useImageCount"),l(function(e){r.IS_DEVELOPMENT&&a.useEffect(()=>(e(e=>e+1),()=>{e(e=>e-1)}),[e])},"useUpdateImageCount"),e.i(64107);var y=e.i(806908);e.s(["Avatar",0,function({className:e,...a}){return(0,t.jsx)(p,{"data-slot":"avatar",className:(0,y.cn)("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...a})},"AvatarFallback",0,function({className:e,...a}){return(0,t.jsx)(f,{"data-slot":"avatar-fallback",className:(0,y.cn)("bg-muted flex size-full items-center justify-center rounded-full",e),...a})}],63270)},509237,2157,e=>{"use strict";var t=e.i(843476),a=e.i(972520),r=e.i(63727);let s=(0,e.i(475254).default)("life-buoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]);e.s(["LifeBuoy",0,s],2157);var i=e.i(292270),n=e.i(107233),o=e.i(283086),l=e.i(37727),d=e.i(657688),c=e.i(522016),u=e.i(618566),h=e.i(63270),m=e.i(852917),x=e.i(697162),p=e.i(149328);e.i(64107);var f=e.i(806908);e.s(["DashboardMobileNav",0,function({open:e,onClose:g,sections:b,userName:y,userEmail:v,userInitials:j,onLogout:w,showAutoApply:k}){let N=(0,u.usePathname)(),{subscription:C,loading:_}=(0,x.useEntitlements)(),S=!!k,P=C?.plan_slug==="pro",E=`/pro?origin=${encodeURIComponent(N||"/dashboard")}`;return(0,t.jsx)(m.Sheet,{open:e,onOpenChange:g,children:(0,t.jsxs)(m.SheetContent,{side:"right",className:"flex w-full max-w-[320px] flex-col gap-0 overflow-y-auto bg-white p-0 [&>[data-slot=sheet-close]]:hidden","data-ph-mask":!0,children:[(0,t.jsx)(m.SheetHeader,{className:"sr-only",children:(0,t.jsx)(m.SheetTitle,{children:"Dashboard menu"})}),(0,t.jsxs)("div",{className:"flex h-16 items-center justify-between border-b border-border-subtle bg-gradient-to-br from-brand-gray-50 to-white px-5",children:[(0,t.jsx)(c.default,{href:"/",onClick:g,className:"inline-block transition-opacity hover:opacity-80",children:(0,t.jsx)(d.default,{src:"/logo.png",alt:"4dayweek",width:130,height:26})}),(0,t.jsx)("button",{type:"button",onClick:g,"aria-label":"Close menu",className:"flex h-9 w-9 items-center justify-center rounded-full text-brand-gray-400 transition-colors hover:bg-brand-gray-100 hover:text-brand-gray-900",children:(0,t.jsx)(l.X,{className:"h-5 w-5","aria-hidden":"true"})})]}),(0,t.jsx)("nav",{className:"flex-1 space-y-6 p-4",children:b.map(e=>(0,t.jsxs)("div",{className:"space-y-1.5",children:[e.label&&(0,t.jsxs)("h4",{className:"mb-2 flex items-center gap-2 px-1 text-xs font-semibold uppercase tracking-wider text-brand-gray-400",children:[(0,t.jsx)("span",{className:"h-px flex-1 bg-brand-blue/30"}),(0,t.jsx)("span",{children:e.label}),(0,t.jsx)("span",{className:"h-px flex-1 bg-brand-blue/30"})]}),e.items.map(e=>{var r;let s="/dashboard"===(r=e.href)||"/employer"===r?N===r:N.startsWith(r),i=e.icon;return(0,t.jsxs)(c.default,{href:e.href,onClick:g,"aria-current":s?"page":void 0,className:(0,f.cn)("group flex items-center gap-3 rounded-2xl px-4 py-3 text-sm font-semibold transition-all duration-150 active:scale-[0.98]",s?"bg-gradient-to-r from-rose-50 to-pink-50 text-rose-700":"bg-brand-blue/5/60 text-brand-gray-900 hover:bg-brand-gray-100/70"),children:[(0,t.jsx)("span",{className:(0,f.cn)("flex h-9 w-9 items-center justify-center rounded-xl shadow-sm transition-colors",s?"bg-white text-rose-500":"bg-white text-brand-gray-600"),children:(0,t.jsx)(i,{className:"h-4.5 w-4.5","aria-hidden":"true"})}),(0,t.jsx)("span",{className:"flex-1",children:e.name}),s&&(0,t.jsx)(a.ArrowRight,{className:"h-4 w-4 text-rose-500","aria-hidden":"true"})]},e.href)})]},e.items[0]?.href))}),(0,t.jsxs)("div",{className:"border-t border-border-subtle bg-brand-blue/5 p-4 space-y-2",children:[!S||_||P?S?(0,t.jsxs)(c.default,{href:"/job-search",onClick:g,className:"flex w-full items-center justify-center gap-2 rounded-xl bg-gradient-to-r from-rose-500 to-pink-500 px-4 py-3 text-sm font-semibold text-white shadow-md shadow-rose-500/20 transition-all hover:from-brand-pink hover:to-pink-600 hover:shadow-lg hover:shadow-rose-500/30 active:scale-[0.98]",children:[(0,t.jsx)(r.Briefcase,{className:"h-4 w-4","aria-hidden":"true"}),(0,t.jsx)("span",{children:"Browse Jobs"})]}):(0,t.jsxs)(c.default,{href:"/employer/jobs/new",onClick:g,className:"flex w-full items-center justify-center gap-2 rounded-xl bg-gradient-to-r from-rose-500 to-pink-500 px-4 py-3 text-sm font-semibold text-white shadow-md shadow-rose-500/20 transition-all hover:from-brand-pink hover:to-pink-600 hover:shadow-lg hover:shadow-rose-500/30 active:scale-[0.98]",children:[(0,t.jsx)(n.Plus,{className:"h-4 w-4","aria-hidden":"true"}),(0,t.jsx)("span",{children:"Post a Job"})]}):(0,t.jsxs)(c.default,{href:E,onClick:g,className:"flex w-full items-center justify-center gap-2 rounded-xl bg-gradient-to-r from-rose-500 to-pink-500 px-4 py-3 text-sm font-semibold text-white shadow-md shadow-rose-500/20 transition-all hover:from-brand-pink hover:to-pink-600 hover:shadow-lg hover:shadow-rose-500/30 active:scale-[0.98]","data-testid":"dashboard-nav-try-pro",children:[(0,t.jsx)(o.Sparkles,{className:"h-4 w-4","aria-hidden":"true"}),(0,t.jsx)("span",{children:"Go Pro"})]}),(0,t.jsxs)(c.default,{href:p.BUG_REPORT_HREF,onClick:()=>{(0,p.prepareBugReport)(),g()},className:"flex w-full items-center justify-center gap-2 rounded-xl px-4 py-2 text-xs font-medium text-brand-gray-600 transition-colors hover:bg-white hover:text-brand-gray-900","data-testid":"dashboard-nav-report-problem",children:[(0,t.jsx)(s,{className:"h-4 w-4","aria-hidden":"true"}),"Report a problem"]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-xl bg-white p-2 shadow-sm",children:[(0,t.jsxs)(c.default,{href:S?"/dashboard":"/employer",onClick:g,className:"group flex flex-1 items-center gap-3 rounded-lg p-1 transition-colors hover:bg-brand-blue/5",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(h.Avatar,{className:"h-10 w-10 ring-2 ring-white shadow-sm",children:(0,t.jsx)(h.AvatarFallback,{className:"bg-gradient-to-br from-rose-100 to-pink-100 text-rose-700 text-sm font-semibold",children:j})}),(0,t.jsx)("span",{className:"absolute -bottom-0.5 -right-0.5 h-3 w-3 rounded-full border-2 border-white bg-emerald-500"})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[y&&(0,t.jsx)("p",{className:"truncate text-sm font-semibold text-brand-gray-900",children:y}),v&&(0,t.jsx)("p",{className:"truncate text-xs text-brand-gray-600",children:v})]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>{w(),g()},"aria-label":"Sign out",title:"Sign out",className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg text-brand-gray-400 transition-colors hover:bg-red-50 hover:text-red-600",children:(0,t.jsx)(i.LogOut,{className:"h-4 w-4","aria-hidden":"true"})})]})]})]})})}],509237)},719741,845933,223350,890042,e=>{"use strict";var t=e.i(843476),a=e.i(522016),r=e.i(167881);e.i(64107);var s=e.i(806908),i=e.i(575482);e.s(["DashboardEmptyState",0,function({icon:e,title:n,description:o,action:l,compact:d=!1,className:c,"data-testid":u}){return d?(0,t.jsx)(i.DashboardCard,{className:(0,s.cn)("p-6",c),"data-testid":u,children:(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-4 sm:flex-nowrap",children:[(0,t.jsx)("div",{className:"rounded-full bg-brand-gray-100 p-2 shrink-0",children:(0,t.jsx)(e,{className:"h-5 w-5 text-brand-gray-400"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("h3",{className:"font-semibold text-brand-gray-900",children:n}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground line-clamp-1",children:o})]}),l&&(l.href?(0,t.jsx)(r.Button,{size:"sm",asChild:!0,className:"shrink-0",children:(0,t.jsx)(a.default,{href:l.href,children:l.label})}):(0,t.jsx)(r.Button,{size:"sm",onClick:l.onClick,className:"shrink-0",children:l.label}))]})}):(0,t.jsx)(i.DashboardCard,{className:(0,s.cn)("py-12 text-center",c),"data-testid":u,children:(0,t.jsxs)("div",{className:"flex flex-col items-center",children:[(0,t.jsx)("div",{className:"rounded-full bg-brand-gray-100 p-3",children:(0,t.jsx)(e,{className:"h-8 w-8 text-brand-gray-400"})}),(0,t.jsx)("h3",{className:"mt-4 font-semibold text-brand-gray-900",children:n}),(0,t.jsx)("p",{className:"mt-2 max-w-sm text-sm text-muted-foreground",children:o}),l&&(l.href?(0,t.jsx)(r.Button,{className:"mt-6",asChild:!0,children:(0,t.jsx)(a.default,{href:l.href,children:l.label})}):(0,t.jsx)(r.Button,{className:"mt-6",onClick:l.onClick,children:l.label}))]})})}],719741),e.s(["DashboardPageHeader",0,function({title:e,description:a,actions:r}){return(0,t.jsxs)("div",{className:"relative flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"heading-1",children:e}),a&&(0,t.jsx)("p",{className:"subheading mt-2",children:a})]}),r&&(0,t.jsx)("div",{className:"flex items-center gap-3",children:r})]})}],845933),e.s(["DashboardPageWrapper",0,function({children:e,className:a,...r}){return(0,t.jsx)("div",{className:(0,s.cn)("relative space-y-8",a),...r,children:e})}],223350);var n=e.i(972520);e.s(["DashboardSection",0,function({title:e,description:i,action:o,children:l,className:d,"data-testid":c}){return(0,t.jsxs)("section",{className:(0,s.cn)("space-y-4",d),"data-testid":c,children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"font-display text-xl font-semibold text-brand-gray-900",children:e}),i&&(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:i})]}),o&&(0,t.jsx)(r.Button,{variant:"ghost",size:"sm",asChild:!0,children:(0,t.jsxs)(a.default,{href:o.href,className:"group",children:[(0,t.jsx)("span",{children:o.label}),(0,t.jsx)(n.ArrowRight,{className:"ml-1 h-4 w-4 transition-transform group-hover:translate-x-0.5"})]})})]}),l]})}],890042)},319897,531026,191741,e=>{"use strict";var t=e.i(475254);let a=(0,t.default)("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);e.s(["ChevronsLeft",0,a],319897);let r=(0,t.default)("chevrons-right",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);e.s(["ChevronsRight",0,r],531026);
1let s=(0,t.default)("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);e.s(["ClipboardList",0,s],191741)},227516,e=>{"use strict";let t=(0,e.i(475254).default)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);e.s(["History",0,t],227516)},541382,e=>{"use strict";let t=(0,e.i(475254).default)("square-kanban",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 7v7",key:"1x2jlm"}],["path",{d:"M12 7v4",key:"xawao1"}],["path",{d:"M16 7v9",key:"1hp2iy"}]]);e.s(["KanbanSquare",0,t],541382)},364102,e=>{"use strict";e.i(558486);var t=e.i(980218),a=e.i(567754);let r="pro_upgrade_unlock_id";async function s(e){if("tracker"===e)return"/dashboard/job-tracker";if("origin"===e){let e=(()=>{try{return sessionStorage.getItem(r)}catch{return null}})();if(e)try{let{slug:a}=await (0,t.fetchUnlockSlug)(e);if(a){try{sessionStorage.removeItem(r)}catch{}return`/job/${a}`}}catch{}try{let e=sessionStorage.getItem("pro_upgrade_origin");if(e&&(0,a.isValidRedirect)(e))return e}catch{}return"/job-search"}return"/dashboard/job-tracker"}e.s(["resolveDestination",0,s])},454403,e=>{"use strict";var t=e.i(843476),a=e.i(972520),r=e.i(63727),s=e.i(643531),i=e.i(531278),n=e.i(37727),o=e.i(618566),l=e.i(271645),d=e.i(532181),c=e.i(300134);e.i(64107);var u=e.i(806908);function h({selected:e,icon:a,label:r,description:s,onClick:i}){return(0,t.jsxs)(d.motion.label,{whileTap:c.selectionFeedback.tap,whileHover:c.selectionFeedback.hover,className:(0,u.cn)("relative flex cursor-pointer items-center gap-3 rounded-xl border px-4 py-3 transition-all duration-200",e?"border-rose-400 bg-rose-50/40 shadow-md shadow-rose-100/50 ring-2 ring-rose-400/30":"border-slate-200 bg-white hover:border-rose-200 hover:bg-rose-50/20 hover:shadow-md"),children:[(0,t.jsx)("input",{type:"checkbox",checked:e,onChange:i,className:"sr-only","aria-label":r}),(0,t.jsx)("div",{className:(0,u.cn)("flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-gradient-to-br transition-colors",e?"from-rose-50 to-pink-50 text-brand-pink":"from-slate-50 to-slate-100 text-brand-gray-600"),children:(0,t.jsx)(a,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-sm font-semibold text-brand-gray-900",children:r}),s&&(0,t.jsx)("div",{className:"mt-0.5 text-xs text-brand-gray-600",children:s})]})]})}var m=e.i(167881),x=e.i(623980),p=e.i(193135);e.i(558486);var f=e.i(611995),g=e.i(832372),b=e.i(71829),y=e.i(364102);let v=["job-role","categories","location"],j={"job-role":"express-job-role",categories:"express-categories",location:"express-country"};e.s(["ExpressSetupFlow",0,function(){let e=(0,o.useRouter)(),[d,c]=(0,l.useState)(0),[u,w]=(0,l.useState)(""),[k,N]=(0,l.useState)([]),[C,_]=(0,l.useState)(null),[S,P]=(0,l.useState)(!1),E=v[d]??"job-role",L=d===v.length-1,A=async e=>{try{await (0,f.updateUser)(e)}catch(e){console.error("Express setup: failed to save step",e)}},R=async e=>{(P(!0),await A({...e,onboarding_step:j[E]}),P(!1),L)?await T():c(d+1)},T=async()=>{P(!0),await A({onboarding_completed_at:new Date().toISOString()});let t=await (0,y.resolveDestination)("origin");e.push(t)},D=async()=>{let t=await (0,y.resolveDestination)("close");e.push(t)};(0,l.useEffect)(()=>{let e=e=>{"Escape"!==e.key||e.defaultPrevented||document.querySelector('[role="listbox"]')||D()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]);let I=2-k.length;return(0,t.jsx)("div",{role:"dialog","aria-modal":"true","aria-labelledby":"express-setup-title","data-testid":"express-setup-flow",className:"fixed inset-0 z-50 flex items-center justify-center bg-slate-900/60 p-4 backdrop-blur-sm",children:(0,t.jsxs)("div",{className:"relative flex max-h-[calc(100dvh-2rem)] w-full max-w-xl flex-col overflow-y-auto rounded-2xl bg-white shadow-2xl",children:[(0,t.jsx)("button",{type:"button",onClick:()=>void D(),"aria-label":"Skip setup",className:"absolute right-4 top-4 roun
1ded-full p-1.5 text-slate-400 transition hover:bg-slate-100 hover:text-slate-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-rose-400",children:(0,t.jsx)(n.X,{className:"h-5 w-5","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2 px-8 pt-8 text-center",children:[(0,t.jsx)("span",{className:"inline-flex h-10 w-10 items-center justify-center rounded-full bg-emerald-100",children:(0,t.jsx)(s.Check,{className:"h-5 w-5 text-emerald-700","aria-hidden":"true"})}),(0,t.jsx)("h2",{id:"express-setup-title",className:"text-2xl font-semibold text-slate-900",children:"You’re in — welcome to Pro"}),(0,t.jsx)("p",{className:"text-sm text-slate-600",children:"Set up your matches (30 seconds) — these power your job alerts."})]}),(0,t.jsx)("div",{className:"flex items-center justify-center gap-2 pt-4","aria-hidden":"true",children:v.map((e,a)=>(0,t.jsx)("div",{className:`h-1.5 w-8 rounded-full transition ${a===d?"bg-rose-500":a<d?"bg-rose-200":"bg-slate-200"}`},e))}),(0,t.jsxs)("div",{className:"px-8 pb-2 pt-5",children:["job-role"===E&&(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("p",{className:"text-center text-sm font-medium text-slate-700",children:"What’s your job title?"}),(0,t.jsx)(x.JobTitleCombobox,{value:u,onChange:w,placeholder:"e.g. Software Engineer, Product Manager"})]}),"categories"===E&&(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)("p",{className:"text-center text-sm font-medium text-slate-700",children:["What kind of roles? Pick at least ",2,"."]}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-2.5 sm:grid-cols-3",children:b.JOB_CATEGORIES.slice(0,10).map(e=>(0,t.jsx)(h,{selected:k.includes(e.value),icon:g.CATEGORY_ICONS[e.value]??r.Briefcase,label:e.label,onClick:()=>{var t;return t=e.value,void N(e=>e.includes(t)?e.filter(e=>e!==t):[...e,t])}},e.value))})]}),"location"===E&&(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("p",{className:"text-center text-sm font-medium text-slate-700",children:"Where are you based?"}),(0,t.jsx)(p.LocationAutocomplete,{value:C,onChange:_,placeholder:"Search for your city...",className:"w-full",size:"lg"})]})]}),(0,t.jsxs)("div",{className:"mt-4 flex items-center justify-between gap-2 border-t px-8 py-4",children:[(0,t.jsx)(m.Button,{variant:"ghost",className:"text-slate-500",disabled:S,"data-testid":"express-setup-skip",onClick:()=>{L?R({}):c(d+1)},children:"Skip"}),(0,t.jsx)(m.Button,{className:"gap-1.5","data-testid":"express-setup-continue",disabled:S||"job-role"===E&&!u.trim()||"categories"===E&&I>0,onClick:()=>{let e={};"job-role"===E&&u.trim()&&(e.job_primary=u.trim()),"categories"===E&&k.length>0&&(e.job_categories=k.map(e=>({slug:e}))),"location"===E&&(C?.locationId?e.location_id=C.locationId:C?.country&&(e.country=C.country)),R(e)},children:S?(0,t.jsx)(i.Loader2,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}):L?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:"Done — back to browsing"}),(0,t.jsx)(a.ArrowRight,{className:"h-4 w-4","aria-hidden":"true"})]}):"categories"===E&&I>0?`Select ${I} more`:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:"Continue"}),(0,t.jsx)(a.ArrowRight,{className:"h-4 w-4","aria-hidden":"true"})]})})]})]})})}],454403)},163997,e=>{"use strict";var t=e.i(843476),a=e.i(531278),r=e.i(271645),s=e.i(846696),i=e.i(332105),n=e.i(167881);e.i(622183);var o=e.i(697162);e.i(558486);var l=e.i(513793),d=e.i(407860);e.s(["PastDueBanner",0,function({className:e}){let{subscription:c,loading:u}=(0,o.useEntitlements)(),[h,m]=(0,r.useState)(!1);if(u||!c||"past_due"!==c.status)return null;let x=async()=>{m(!0);try{let{url:e}=await (0,d.createPortalSession)();window.location.href=e}catch(e){if(m(!1),e instanceof l.ApiError&&"BILLING_NOT_CONFIGURED"===e.errorCode)return void s.toast.info("Billing portal is rolling out soon.");s.toast.error(e instanceof Error?e.message:"Could not open billing portal.")}};return(0,t.jsx)(i.Banner,{variant:"progress",title:"Your last payment didn't go through",className:e,actions:(0,t.jsx)(n.Button,{onClick:x,disabled:h,size:"sm",children:h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}),(0,t.jsx)("span",{children:"Opening…"})]}):"Update payment method"}),children:"Your plan is still active while we retry. Update your payment method to avoid losing access."})}])},251380,e=>{"use strict";var t=e.i(843476),a=e.i(531278);let r=(0,e.i(475254).default)("circle-play",[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var s=e.i(271645),i=e.i(846696),n=e.i(332105),o=e.i(167881);e.i(622183);var l=e.i(697162);e.i(558486);var d=e.i(407860);e.s(["PausedBanner",0,function({className:e}){let{subscription:c,loading:u,refresh:h}
1=(0,l.useEntitlements)(),[m,x]=(0,s.useState)(!1);if(u||!c?.paused)return null;let p=async()=>{x(!0);try{await (0,d.resumeSubscription)(),await h(),i.toast.success("Reactivating your plan — this can take a moment to show up.")}catch(e){x(!1),i.toast.error(e instanceof Error?e.message:"Could not resume your plan.")}};return(0,t.jsx)(n.Banner,{variant:"progress",title:"Your Pro plan is paused",className:e,actions:(0,t.jsx)(o.Button,{onClick:p,disabled:m,size:"sm",children:m?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}),(0,t.jsx)("span",{children:"Resuming…"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r,{className:"mr-2 h-4 w-4"}),(0,t.jsx)("span",{children:"Resume Pro"})]})}),children:"We've paused billing — you won't be charged. Resume any time to pick up right where you left off."})}],251380)},698325,e=>{"use strict";var t=e.i(843476),a=e.i(532181),r=e.i(772328);e.s(["AlertsIllustration",0,function({className:e}){let s=(0,r.useReducedMotion)();return(0,t.jsxs)(a.motion.svg,{viewBox:"0 0 320 240",xmlns:"http://www.w3.org/2000/svg",className:e,role:"img","aria-label":"A morning email showing three personalised job listings",children:[(0,t.jsx)("title",{children:"Personalised daily email alerts"}),(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:"al-bg",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#fdf2f8"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#eef2ff"})]}),(0,t.jsxs)("linearGradient",{id:"al-phone",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#ffffff"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#fafafa"})]})]}),(0,t.jsx)("rect",{width:"320",height:"240",rx:"16",fill:"url(#al-bg)"}),(0,t.jsxs)("g",{children:[(0,t.jsx)("rect",{x:"76",y:"20",width:"168",height:"200",rx:"18",fill:"url(#al-phone)",stroke:"#e2e8f0",strokeWidth:"1.5"}),(0,t.jsx)("rect",{x:"142",y:"28",width:"36",height:"5",rx:"2.5",fill:"#1e293b",opacity:"0.2"}),(0,t.jsx)("text",{x:"92",y:"60",fontSize:"12",fontWeight:"800",fill:"#0f172a",children:"Good morning, Alex"}),(0,t.jsx)("text",{x:"92",y:"76",fontSize:"9",fill:"#94a3b8",children:"3 new jobs for you today"}),(0,t.jsx)("line",{x1:"92",y1:"86",x2:"228",y2:"86",stroke:"#e2e8f0",strokeWidth:"1"})]}),[{dot:"#fb7185"},{dot:"#c084fc"},{dot:"#f472b6"}].map((e,r)=>{let i=100+36*r;return(0,t.jsxs)(a.motion.g,{initial:s?{opacity:1,x:0}:{opacity:0,x:8},animate:{opacity:1,x:0},transition:{duration:.45,delay:s?0:.2+.18*r,ease:"easeOut"},children:[(0,t.jsx)("rect",{x:"92",y:i,width:"136",height:"28",rx:"6",fill:"#ffffff",stroke:"#f1f5f9",strokeWidth:"1"}),(0,t.jsx)("circle",{cx:103,cy:i+14,r:"4",fill:e.dot}),(0,t.jsx)("rect",{x:113,y:i+7,width:96,height:"4",rx:"2",fill:"#1e293b"}),(0,t.jsx)("rect",{x:113,y:i+17,width:66,height:"3",rx:"1.5",fill:"#94a3b8"})]},e.dot)})]})}])},665091,e=>{"use strict";var t=e.i(843476),a=e.i(532181),r=e.i(772328);e.s(["EarlyAccessIllustration",0,function({className:e}){let s=(0,r.useReducedMotion)(),i=[{id:"a",color:"#fb7185"},{id:"b",color:"#f472b6"},{id:"c",color:"#e879f9"}];return(0,t.jsxs)(a.motion.svg,{viewBox:"0 0 320 240",xmlns:"http://www.w3.org/2000/svg",className:e,role:"img","aria-label":"A timeline showing Pro members see new jobs 48 hours before the free board",children:[(0,t.jsx)("title",{children:"Early access — 48 hours ahead of the free board"}),(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:"ea-bg",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#fff1f2"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#fdf4ff"})]}),(0,t.jsxs)("linearGradient",{id:"ea-pro-card",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#ffffff"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#fff1f2"})]}),(0,t.jsxs)("linearGradient",{id:"ea-free-card",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#ffffff"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#f8fafc"})]})]}),(0,t.jsx)("rect",{width:"320",height:"240",rx:"16",fill:"url(#ea-bg)"}),(0,t.jsxs)("g",{children:[(0,t.jsx)("rect",{x:"16",y:"44",width:"44",height:"20",rx:"10",fill:"#fb7185"}),(0,t.jsx)("text",{x:"38",y:"58",textAnchor:"middle",fontSize:"11",fontWeight:"700",fill:"#ffffff",letterSpacing:"0.5",children:"PRO"})]}),(0,t.jsxs)("g",{children:[(0,t.jsx)("rect",{x:"16",y:"156",width:"44",height:"20",rx:"10",fill:"#cbd5e1"}),(0,t.jsx)("text",{x:"38",y:"170",textAnchor:"middle",fontSize:"11",fontWeight:"700",fill:"#475569",letterSpacing:"0.5",children:"FREE"})]}),(0,t.jsx)("line",{x1:"70",y1:"54",x2:"310",y2:"54",stroke:"#fecdd3",strokeWidth:"2",strokeDasharray:"4 4"}),(0,t.jsx)("line",{x1:"70",y1:"166",x2:"310",y2:"166",stroke:"#e2e8f0",strokeWidth:"2",strokeDasharray:"4 4"}),i.map((e,r)=>{let i=16+66*r;return(0,t.jsxs)(a.motion.g,{initial:s?{opacity:1,y:0}:{opacity:0,y:-12}
1,animate:{opacity:1,y:0},transition:{duration:.5,delay:s?0:.15+.25*r,ease:"easeOut"},children:[(0,t.jsx)("rect",{x:i,y:"70",width:"58",height:"36",rx:"8",fill:"url(#ea-pro-card)",stroke:"#fecdd3",strokeWidth:"1.5"}),(0,t.jsx)("circle",{cx:i+12,cy:"82",r:"5",fill:e.color}),(0,t.jsx)("rect",{x:i+22,y:"78",width:"28",height:"4",rx:"2",fill:"#1e293b"}),(0,t.jsx)("rect",{x:i+22,y:"86",width:"20",height:"3",rx:"1.5",fill:"#94a3b8"}),(0,t.jsx)("rect",{x:i+8,y:"96",width:"22",height:"4",rx:"2",fill:"#fecdd3"})]},`pro-${e.id}`)}),i.map((e,r)=>{let i=82+66*r;return(0,t.jsxs)(a.motion.g,{initial:s?{opacity:.9,y:0}:{opacity:0,y:-12},animate:{opacity:.9,y:0},transition:{duration:.5,delay:s?0:1.6+.25*r,ease:"easeOut"},children:[(0,t.jsx)("rect",{x:i,y:"182",width:"58",height:"36",rx:"8",fill:"url(#ea-free-card)",stroke:"#e2e8f0",strokeWidth:"1.5"}),(0,t.jsx)("circle",{cx:i+12,cy:"194",r:"5",fill:e.color,opacity:"0.6"}),(0,t.jsx)("rect",{x:i+22,y:"190",width:"28",height:"4",rx:"2",fill:"#475569"}),(0,t.jsx)("rect",{x:i+22,y:"198",width:"20",height:"3",rx:"1.5",fill:"#cbd5e1"}),(0,t.jsx)("rect",{x:i+8,y:"208",width:"22",height:"4",rx:"2",fill:"#e2e8f0"})]},`free-${e.id}`)})]})}])},823523,e=>{"use strict";var t=e.i(843476),a=e.i(972520),r=e.i(643531),s=e.i(541382),i=e.i(263488),n=e.i(57086),o=e.i(37727),l=e.i(618566),d=e.i(271645),c=e.i(698325),u=e.i(665091),h=e.i(532181),m=e.i(772328),x=e.i(167881),p=e.i(193872),f=e.i(482754),g=e.i(245423),b=e.i(531278),y=e.i(522016);e.i(558486);var v=e.i(668827),j=e.i(513793);e.i(64107);var w=e.i(385174);let k="weekly",N="One email a week — and only when new roles match.";function C(){let[e,a]=(0,d.useState)({status:"loading"});(0,d.useEffect)(()=>{let e=!1,t=e=>{(0,p.track)("post_checkout_alert_offer_skipped",{reason:e}),a({status:"skipped",reason:e})};return(async()=>{try{var r;let s,i=await (0,j.apiFetch)("/api/saved-searches/suggested");if(e)return;if(i.existing_count>0)return void t("already_has_alerts");if(!i.filters.category?.length)return void t("no_categories");if(i.filters.near_location)try{let{location:t}=await (0,v.fetchLocationById)(i.filters.near_location);if(e)return;s=t.display_text}catch{}r={categoryCount:i.filters.category?.length??0,hasLocation:!!(i.filters.near_location||i.filters.near_country),remoteFallback:!!i.filters.work_arrangements?.includes("remote")&&!i.filters.near_location&&!i.filters.near_country},(0,p.track)("post_checkout_alert_offered",{category_count:r.categoryCount,has_location:r.hasLocation,remote_fallback:r.remoteFallback}),a({status:"offer",filters:i.filters,name:(0,w.suggestSearchName)(i.filters,s)})}catch{e||t("lookup_failed")}})(),()=>{e=!0}},[]);let s=(0,d.useCallback)(async()=>{var t,r;if("offer"!==e.status&&"failed"!==e.status)return;let{filters:s,name:i}=e;a({status:"creating",filters:s,name:i});try{await (0,j.apiFetch)("/api/saved-searches/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:i,filters:s,notify_frequency:k,is_active:!0})}),a({status:"created",name:i}),t={cadence:k,categoryCount:s.category?.length??0,hasLocation:!!(s.near_location||s.near_country)},(0,p.track)("post_checkout_alert_created",{cadence:t.cadence,category_count:t.categoryCount,has_location:t.hasLocation})}catch(e){a({status:"failed",filters:s,name:i}),r=e?.code,(0,p.track)("post_checkout_alert_failed",r?{status:r}:{})}},[e]);if("loading"===e.status)return(0,t.jsxs)("div",{"data-testid":"post-checkout-alert-loading",className:"flex min-h-24 w-full items-center justify-center gap-2 rounded-xl border border-slate-200 bg-slate-50 px-4 py-4 text-sm text-slate-500",children:[(0,t.jsx)(b.Loader2,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),(0,t.jsx)("span",{children:"Checking what you told us at sign-up…"})]});if("skipped"===e.status)return null;if("created"===e.status)return(0,t.jsxs)("div",{"data-testid":"post-checkout-alert-created",className:"flex min-h-24 w-full flex-col items-center gap-1.5 rounded-xl border border-emerald-200 bg-emerald-50 px-4 py-4 text-center",children:[(0,t.jsxs)("p",{className:"flex items-center gap-1.5 text-sm font-medium text-emerald-900",children:[(0,t.jsx)(r.Check,{className:"h-4 w-4","aria-hidden":"true"}),(0,t.jsx)("span",{children:"Alert created"})]}),(0,t.jsx)("p",{className:"text-xs text-emerald-800",children:N}),(0,t.jsx)(y.default,{href:"/dashboard/job-alerts",className:"text-xs font-medium text-emerald-900 underline underline-offset-2 hover:text-emerald-950",children:"Change or turn it off"})]});let i="creating"===e.status;return(0,t.jsxs)("div",{"data-testid":"post-checkout-alert-offer",className:"flex min-h-24 w-full flex-col items-center gap-3 rounded-xl border border-slate-200 bg-slate-50 px-4 py-4",children:[(0,t.jsx)("p",{className:"text-sm text-slate-600",children:"From your sign-up answers, we can watch this one for you:"}),(0,t.jsxs)("p",{"data-ph-mask":!0,"data-testid":"post-checkout-alert-name",className:"flex items-center gap-1.5 rounded-lg bg-white px-3 py-1.5 text-sm font-medium text-slate-900 shadow-sm ring-1 ring-slate-200",children:[(0,t.jsx)(g.Bell,{className:"h-3.5 w-3.5 text-rose-500","aria-hidden":"true"}),(0,t.jsx)("span",{children:e.name})]}),(0,t.jsxs)(x.Button,{type:"button",onClick:s,disabled:i,"data-testid":"post-checkout-alert-create",className:"gap-1.5",children:[i&&(0,t.jsx)(b.Loader2,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),(0,t.jsx)("span",{children:i?"Creating…":"Create this alert"})]}),(0,t.jsx)("p",{className:"text-xs text-slate-500",children:N}),"failed"===e.status&&(0,t.jsx)("p",{role:"alert",className:"text-xs text-rose-600",children:"That didn't save. Try again, or create one any time from /job-search."})]})}var _=e.i(364102);let S="postCheckoutTourDone",P=[{key:"unlocked",title:"You're in. Here's what just unlocked.",body:`Live on your account from this moment: ${(0,f.proCoreBenefitsSentence)()}. Two minutes of tour and you'll know how to use each one.`,illustration:(0,t.jsx)(u.EarlyAccessIllustration,{className:"h-40 w-auto"}),icon:(0,t.jsx)(r.Check,{className:"h-5 w-5","aria-hidden":"true"})},{key:"alerts",title:"Set up a job alert",body:"We send one deduped digest when new roles match — daily or weekly, your choice — and never when nothing is new. Any search on /job-search has a 'Create alert' button, so you can add more whenever you like.",illustration:(0,t.jsx)(c.AlertsIllustration,{className:"h-40 w-auto"}),icon:(0,t.jsx)(i.Mail,{className:"h-5 w-5","aria-hidden":"true"})},{key:"tracker",title:"Track your hunt (free for every account)",body:"Save any job on 4dayweek.io and it lands in your Tracker. Applications you submit auto-sync to the Applied column. Paste URLs from any ATS to track external roles. Drag cards, add notes, ship job applications with one place to look.",illustration:(0,t.jsx)(function({className:e}){let a=(0,m.useReducedMotion)();return(0,t.jsxs)(h.motion.svg,{viewBox:"0 0 320 240",xmlns:"http://www.w3.org/2000/svg",className:e,role:"img","aria-label":"A kanban board with a job card moving from Applied to Interviewing",children:[(0,t.jsx)("title",{children:"Job Tracker — a kanban board for every role you save, apply to, and interview for"}),(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:"tr-bg",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#fdf4ff"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#f0f9ff"})]}),(0,t.jsxs)("linearGradient",{id:"tr-active",x1:"0%",y1:"0%",x2:"0%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#fff1f2"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#ffe4e6"})]})]}),(0,t.jsx)("rect",{width:"320",height:"240",rx:"16",fill:"url(#tr-bg)"}),(0,t.jsx)("rect",{x:"20",y:"36",width:"280",height:"188",rx:"12",fill:"#ffffff",stroke:"#e2e8f0",strokeWidth:"1.5"}),["Saved","Applied","Interviewing"].map((e,a)=>(0,t.jsxs)("g",{children:[(0,t.jsx)("rect",{x:32+92*a,y:"48",width:"80",height:"22",rx:"11",fill:"#f1f5f9"}),(0,t.jsx)("text",{x:72+92*a,y:"63",textAnchor:"middle",fontSize:"11",fontWeight:"600",fill:"#475569",children:e})]},e)),(0,t.jsxs)("g",{children:[(0,t.jsx)("rect",{x:"32",y:"80",width:"80",height:"32",rx:"6",fill:"#ffffff",stroke:"#e2e8f0"}),(0,t.jsx)("circle",{cx:"42",cy:"90",r:"3",fill:"#c084fc"}),(0,t.jsx)("rect",{x:"50",y:"87",width:"50",height:"4",rx:"2",fill:"#1e293b"}),(0,t.jsx)("rect",{x:"40",y:"98",width:"40",height:"3",rx:"1.5",fill:"#94a3b8"}),(0,t.jsx)("rect",{x:"32",y:"120",width:"80",height:"32",rx:"6",fill:"#ffffff",stroke:"#e2e8f0"}),(0,t.jsx)("circle",{cx:"42",cy:"130",r:"3",fill:"#f472b6"}),(0,t.jsx)("rect",{x:"50",y:"127",width:"46",height:"4",rx:"2",fill:"#1e293b"}),(0,t.jsx)("rect",{x:"40",y:"138",width:"36",height:"3",rx:"1.5",fill:"#94a3b8"}),(0,t.jsx)("rect",{x:"32",y:"160",width:"80",height:"32",rx:"6",fill:"#ffffff",stroke:"#e2e8f0"}),(0,t.jsx)("circle",{cx:"42",cy:"170",r:"3",fill:"#fb923c"}),(0,t.jsx)("rect",{x:"50",y:"167",width:"44",height:"4",rx:"2",fill:"#1e293b"}
1),(0,t.jsx)("rect",{x:"40",y:"178",width:"38",height:"3",rx:"1.5",fill:"#94a3b8"})]}),(0,t.jsxs)("g",{children:[(0,t.jsx)("rect",{x:"124",y:"80",width:"80",height:"32",rx:"6",fill:"#ffffff",stroke:"#e2e8f0"}),(0,t.jsx)("circle",{cx:"134",cy:"90",r:"3",fill:"#60a5fa"}),(0,t.jsx)("rect",{x:"142",y:"87",width:"54",height:"4",rx:"2",fill:"#1e293b"}),(0,t.jsx)("rect",{x:"132",y:"98",width:"42",height:"3",rx:"1.5",fill:"#94a3b8"})]}),(0,t.jsxs)("g",{children:[(0,t.jsx)("rect",{x:"216",y:"160",width:"80",height:"32",rx:"6",fill:"#ffffff",stroke:"#e2e8f0"}),(0,t.jsx)("circle",{cx:"226",cy:"170",r:"3",fill:"#34d399"}),(0,t.jsx)("rect",{x:"234",y:"167",width:"44",height:"4",rx:"2",fill:"#1e293b"}),(0,t.jsx)("rect",{x:"224",y:"178",width:"36",height:"3",rx:"1.5",fill:"#94a3b8"})]}),(0,t.jsxs)(h.motion.g,{initial:a?{x:92,y:0,opacity:1}:{x:0,y:0,opacity:1},animate:a?{x:92,y:0,opacity:1}:{x:[0,0,92,92,92,0],y:[0,0,0,0,0,0],opacity:[1,1,1,1,0,1]},transition:{duration:5*!a,repeat:a?0:1/0,ease:"easeInOut",times:a?void 0:[0,.2,.5,.8,.9,1]},children:[(0,t.jsx)("rect",{x:"124",y:"120",width:"80",height:"32",rx:"6",fill:"url(#tr-active)",stroke:"#fda4af",strokeWidth:"1.5"}),(0,t.jsx)("circle",{cx:"134",cy:"130",r:"3",fill:"#e11d48"}),(0,t.jsx)("rect",{x:"142",y:"127",width:"52",height:"4",rx:"2",fill:"#be123c"}),(0,t.jsx)("rect",{x:"132",y:"138",width:"38",height:"3",rx:"1.5",fill:"#fb7185"})]}),(0,t.jsxs)("g",{transform:"translate(120, 200)",children:[(0,t.jsx)("rect",{x:"0",y:"0",width:"100",height:"18",rx:"9",fill:"#fef2f2",stroke:"#fecdd3",strokeWidth:"1"}),(0,t.jsx)("text",{x:"50",y:"12",textAnchor:"middle",fontSize:"9",fontWeight:"600",fill:"#be123c",children:"+ Add external job"})]})]})},{className:"h-40 w-auto"}),icon:(0,t.jsx)(s.KanbanSquare,{className:"h-5 w-5","aria-hidden":"true"})}];e.s(["PostCheckoutTour",0,function({onFinish:e}){let r=(0,l.useRouter)(),[i,c]=(0,d.useState)(!1),[u,h]=(0,d.useState)(0),m=(0,d.useRef)(!1);(0,d.useEffect)(()=>{try{let e=localStorage.getItem(S);if("1"===e)return;c(!0)}catch{c(!0)}},[]),(0,d.useEffect)(()=>{if(!i)return;let e=P[u];if(e){var t;t={step:e.key,stepIndex:u},(0,p.track)("post_checkout_tour_step_viewed",{...t})}},[i,u]);let g=async(t,a=t)=>{var s;if(m.current)return;m.current=!0;let i=P[u];i&&(s={step:i.key,stepIndex:u,exit:a},(0,p.track)("post_checkout_tour_exited",{...s}));try{localStorage.setItem(S,"1")}catch{}c(!1);let n=await (0,_.resolveDestination)(t);e?e(n):r.push(n)};if((0,d.useEffect)(()=>{if(!i)return;let e=e=>{"Escape"===e.key&&g("close","escape")};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[i,g]),!i)return null;let b=u===P.length-1,y=P[u];return(0,t.jsx)("div",{role:"dialog","aria-modal":"true","aria-labelledby":"tour-title",className:"fixed inset-0 z-50 flex items-center justify-center bg-slate-900/60 p-4 backdrop-blur-sm",children:(0,t.jsxs)("div",{className:"relative flex w-full max-w-xl flex-col rounded-2xl bg-white shadow-2xl",children:[(0,t.jsx)("button",{type:"button",onClick:()=>g("close"),"aria-label":"Close tour",className:"absolute right-4 top-4 roun
1ded-full p-1.5 text-slate-400 transition hover:bg-slate-100 hover:text-slate-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-rose-400",children:(0,t.jsx)(o.X,{className:"h-5 w-5","aria-hidden":"true"})}),(0,t.jsx)("div",{className:"flex items-center justify-center gap-2 pt-6","aria-hidden":"true",children:P.map((e,a)=>(0,t.jsx)("div",{className:`h-1.5 w-8 rounded-full transition ${a===u?"bg-rose-500":a<u?"bg-rose-200":"bg-slate-200"}`},e.key))}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 px-8 pt-6 text-center",children:[(0,t.jsx)("div",{className:"rounded-xl bg-gradient-to-br from-rose-50 to-amber-50 p-3",children:y.illustration}),(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm font-medium text-rose-600",children:[y.icon,(0,t.jsx)("span",{children:`Step ${u+1} of ${P.length}`})]}),(0,t.jsx)("h2",{id:"tour-title",className:"text-2xl font-semibold text-slate-900",children:y.title}),(0,t.jsx)("p",{className:"max-w-md text-sm leading-relaxed text-slate-600",children:y.body}),"alerts"===y.key&&(0,t.jsx)(C,{})]}),(0,t.jsxs)("div",{className:"mt-6 flex items-center justify-between gap-2 border-t px-8 py-4",children:[u>0?(0,t.jsx)(x.Button,{variant:"ghost",onClick:()=>h(u-1),children:"Back"}):(0,t.jsx)(x.Button,{variant:"ghost",onClick:()=>g("close","skip"),className:"text-slate-500",children:"Skip tour"}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[b&&(0,t.jsx)(x.Button,{variant:"outline",onClick:()=>g("origin"),children:"Back to browsing"}),b?(0,t.jsxs)(x.Button,{onClick:()=>g("tracker"),className:"gap-1.5",children:[(0,t.jsx)("span",{children:"Take me to the tracker"}),(0,t.jsx)(s.KanbanSquare,{className:"h-4 w-4","aria-hidden":"true"})]}):(0,t.jsxs)(x.Button,{onClick:()=>h(u+1),className:"gap-1.5",children:[(0,t.jsx)("span",{children:"Next"}),(0,t.jsx)(a.ArrowRight,{className:"h-4 w-4","aria-hidden":"true"})]})]})]}),0===u&&(0,t.jsxs)("p",{className:"flex items-center justify-center gap-1.5 border-t px-8 py-3 text-xs text-slate-500",children:[(0,t.jsx)(n.Percent,{className:"h-3.5 w-3.5 text-emerald-600","aria-hidden":"true"}),"Pro members get ",f.PRO_DISCOUNT_LINE," — applied automatically."]})]})})}],823523)},152616,e=>{"use strict";var t=e.i(843476);e.i(64107);var a=e.i(806908);e.s(["ProTag",0,function({className:e}){return(0,t.jsx)("span",{"data-testid":"pro-tag",className:(0,a.cn)("inline-flex items-center rounded-full bg-brand-pink/10 px-1.5 py-0.5 text-xs font-semibold uppercase leading-none tracking-wide text-brand-pink",e),children:"Pro"})}])},857094,e=>{"use strict";var t=e.i(843476),a=e.i(326999),r=e.i(643531),s=e.i(37727),i=e.i(618566),n=e.i(271645),o=e.i(687043),l=e.i(630374),d=e.i(182534),c=e.i(697162),u=e.i(195716),h=e.i(364059),m=e.i(482754),x=e.i(419060);e.i(64107);var p=e.i(188084);let f="New roles land 48 hours before you see them",g={headline:e=>e.jobTitle?`Unlock “${e.jobTitle}”`:"Unlock this role",subtext:"See the company, read the full description, and get the apply link — plus every other new role 48 hours before the free board."},b=e=>e.count&&e.count>0?`${1===e.count?"1 fresh job is":`${e.count} fresh jobs are`} waiting`:"Fresh jobs are waiting",y={save_3rd:{headline:"You've saved 3 jobs",subtext:"The next one might post tomorrow — Pro members see new roles 48 hours before the free board."},first_application:{headline:"Application sent.",subtext:"New roles like that often appear within 48 hours. Pro members see them the moment they post."},time_scroll:{headline:"Beat the 48-hour delay",subtext:"Pro members see new jobs the moment they post — no waiting."},date_sort:{headline:f,subtext:"Pro members see every job the moment it posts — and sort by newest to catch it first."},salary_sort:{headline:f,subtext:"Pro members see every job the moment it posts — and sort straight to the highest salaries."},salary_filter:{headline:f,subtext:"Pro members see every job the moment it posts — and filter to the salary range they want."},landing_date_sort:{headline:f,subtext:"Pro members see every job the moment it posts — and sort by newest to catch it first."},landing_salary_sort:{headline:f,subtext:"Pro members see every job the moment it posts — and sort straight to the highest salaries."},landing_salary_filter:{headline:f,subtext:"Pro members see every job the moment it posts — and filter to the salary range they want."}
1,locked_job:g,home_locked_job:g,fresh_gate:{headline:b,subtext:"New to the board in the last 48 hours. Pro members see them now — free members wait out the head start."},landing_fresh_gate:{headline:b,subtext:"They’re new to 4dayweek.io and match this page. Pro members see new roles 48 hours before everyone else."},company_fresh_gate:{headline:b,subtext:"They’re among this company’s newest roles on 4dayweek.io. Pro members see new roles 48 hours before everyone else."},job_alerts:{headline:"Get matching jobs by email",subtext:"Pro emails you one deduped digest per saved search — daily or weekly, and never when nothing is new."},save_search:{headline:"Job alerts are a Pro feature",subtext:"Save this search and we’ll email you one digest when new roles match — daily or weekly, never when nothing is new."}};function v(e,t){return"function"==typeof e?e(t):e}e.s(["ProUpsellModal",0,function(){let e=(0,i.usePathname)(),{subscription:f,loading:g}=(0,c.useEntitlements)(),{startCheckout:b,loadingSlug:j}=(0,d.useCheckout)(),[w,k]=(0,n.useState)(!1),[N,C]=(0,n.useState)({trigger:"time_scroll"}),_=(0,n.useRef)(!1),S=(0,n.useRef)(!1),P=N.trigger,E=f?.plan_slug==="pro",L=(0,h.isLoggedInClient)(),A=(0,x.isProUpsellSuppressedRoute)(e),R=(0,n.useCallback)(e=>{let t=!0===e.force;if(!w&&(t||!g)&&!E&&!A){if(!t&&((0,x.isProUpsellShownThisSession)()||(0,x.isProUpsellDismissed)()))return;_.current=!1,S.current=t,C(e),k(!0),t||(0,x.markProUpsellShownThisSession)(),(0,u.fireEvent)(u.FathomEvents.UpsellModalOpen),(0,h.trackPaywallImpression)({surface:"upsell_modal",trigger:e.trigger,job_id:e.jobId,count:e.count,logged_in:(0,h.isLoggedInClient)()},{dedupe:!1}),window.dispatchEvent(new CustomEvent(x.PRO_UPSELL_OPENED_EVENT))}},[w,g,E,A]);(0,n.useEffect)(()=>{let e=e=>{let t=e.detail;t?.trigger&&R(t)};return window.addEventListener(x.PRO_UPSELL_EVENT,e),()=>window.removeEventListener(x.PRO_UPSELL_EVENT,e)},[R]),(0,n.useEffect)(()=>{w&&E&&(_.current=!0,k(!1))},[w,E]),(0,n.useEffect)(()=>{if(g||E||!L||A||"/job-search"!==e||"date"!==new URLSearchParams(window.location.search).get("sort"))return;let t=window.setTimeout(()=>{R({trigger:"time_scroll"})},9e4),a=!1,r=()=>{a||(a=!0,requestAnimationFrame(()=>{a=!1;let e=document.querySelectorAll("[data-job-card]");if(e.length>30){let t=e[30];t instanceof HTMLElement&&t.getBoundingClientRect().top<0&&R({trigger:"time_scroll"})}}))};return window.addEventListener("scroll",r,{passive:!0}),()=>{window.clearTimeout(t),window.removeEventListener("scroll",r)}},[e,g,E,L,A,R]);let T=e=>{e||!w||_.current||(S.current||(0,x.markProUpsellDismissed)(),(0,u.fireEvent)(u.FathomEvents.UpsellModalDismiss),(0,h.trackPaywallDismissed)({surface:"upsell_modal",trigger:P,logged_in:(0,h.isLoggedInClient)()})),k(e)},D=()=>{let e=window.location.pathname+window.location.search,t=new URLSearchParams({origin:e,ref:"upsell",trigger:P});return N.jobId&&t.set("unlock_id",N.jobId),{origin:e,proUrl:`/pro?${t.toString()}`}},I=y[P],M=v(I.headline,N),B=v(I.subtext,N);return(0,t.jsx)(l.Dialog,{open:w,onOpenChange:T,children:(0,t.jsxs)(l.DialogPortal,{children:[(0,t.jsx)(l.DialogOverlay,{className:"bg-black/65"}),(0,t.jsx)(a.Content,{className:"fixed top-[50%] left-[50%] z-50 w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:max-w-md",children:(0,t.jsxs)("div",{"data-testid":"dialog-pro-upsell","data-trigger":P,className:"max-h-[calc(100dvh-2rem)] overflow-y-auto rounded-2xl border border-slate-200/80 bg-white/95 p-5 shadow-2xl shadow-slate-200/50 backdrop-blur-sm sm:p-7",children:[(0,t.jsx)("button",{type:"button",onClick:()=>T(!1),className:"absolute right-2 top-2 flex h-11 w-11 cursor-pointer items-center justify-center rounded-full text-brand-gray-400 transition-colors hover:bg-slate-100 hover:text-brand-gray-600","aria-label":"Close",children:(0,t.jsx)(s.X,{className:"h-4 w-4"})}),(0,t.jsx)(a.Title,{asChild:!0,children:(0,t.jsx)("h2",{className:"pr-9 font-display text-[22px] font-bold leading-7 tracking-tight text-brand-gray-900 sm:text-2xl",children:M})}),(0,t.jsx)(a.Description,{asChild:!0,children:(0,t.jsx)("p",{className:"mt-2 text-sm leading-5 text-brand-gray-700",children:B})}),(0,t.jsx)("ul",{className:"mt-5 space-y-2 text-[15px] leading-5 text-brand-gray-700",children:m.PRO_FEATURE_BULLETS.map(e=>(0,t.jsxs)("li",{className:"flex items-start gap-2.5",children:[(0,t.jsx)(r.Check,{className:"mt-[3px] h-4 w-4 shrink-0 text-brand-gray-500",strokeWidth:2.5,"aria-hidden":"true"}),(0,t.jsx)("span",{children:e})]},e))}),(0,t.jsxs)("div",{className:"mt-6 space-y-2",children:[(0,t.jsx)(o.ProCadenceChoice,{loadingSlug:j,onSelect:e=>{_.current=!0,(0,u.fireEvent)(u.FathomEvents.UpsellModalCtaClick);let{origin:t}=D(),a=(0,m.cadenceForSlug)(e)??void 0;if(!L){(0,h.trackPaywallCtaClick)({surface:"upsell_modal",trigger:P,job_id:N.jobId,destination:"express_signup",logged_in:!1,cadence:a}),window.location.href=(0,p.buildExpressSignupUrl)(e,{origin:t,unlockId:N.jobId,surface:"upsell_modal",trigger:P});return}(0,h.trackPaywallCtaClick)({surface:"upsell_modal",trigger:P,job_id:N.jobId,destination:"checkout",logged_in:!0,cadence:a}),b(e,{origin:t,unlockId:N.jobId,surface:"upsell_modal",trigger:P})},ctaTestId:"btn-pro-upsell"}),(0,t.jsxs)("div",{className:"flex items-center justify-between pt-1 text-[13px]",children:[(0,t.jsx)("a",{href:D().proUrl,onClick:()=>{_.current=!0,(0,u.fireEvent)(u.FathomEvents.UpsellModalCompareClick),(0,h.trackPaywallCtaClick)({surface:"upsell_modal",trigger:P,job_id:N.jobId,destination:"pro_page",logged_in:(0,h.isLoggedInClient)()})},className:"font-medium text-brand-gray-600 transition-colors hover:text-brand-gray-900 hover:underline",children:"Compare plans"}),(0,t.jsx)("button",{type:"button",onClick:()=>T(!1),className:"cursor-pointer font-medium text-brand-gray-600 transition-colors hover:text-brand-gray-900 hover:underline",children:"Maybe later"})]})]}),(0,t.jsx)("p",{className:"mt-3 text-center text-[13px] leading-snug text-brand-gray-600",children:m.PRO_GUARANTEE_LINE})]})})]})})}])},912204,e=>{"use strict";var t=e.i(843476),a=e.i(531278),r=e.i(367240),s=e.i(271645),i=e.i(846696),n=e.i(332105),o=e.i(167881);e.i(622183);var l=e.i(697162);e.i(558486);var d=e.i(407860);e.s(["ReactivateBanner",0,function({className:e}){var c;let{subscription:u,loading:h,refresh:m}
1=(0,l.useEntitlements)(),[x,p]=(0,s.useState)(!1),[f,g]=(0,s.useState)(!1);if(h||f||!u||u.paused||"free"===u.plan_slug||"past_due"===u.status||!u.cancel_at_period_end)return null;let b=async()=>{p(!0);try{await (0,d.reactivateSubscription)(),g(!0),await m(),i.toast.success("You're all set — your Pro plan will keep renewing.")}catch(e){p(!1),i.toast.error(e instanceof Error?e.message:"Could not reactivate your plan.")}};return(0,t.jsx)(n.Banner,{variant:"warning",title:"Your Pro plan is set to cancel",className:e,"data-testid":"reactivate-banner",actions:(0,t.jsx)(o.Button,{onClick:b,disabled:x,size:"sm","data-testid":"reactivate-button",children:x?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}),(0,t.jsx)("span",{children:"Reactivating…"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.RotateCcw,{className:"mr-2 h-4 w-4"}),(0,t.jsx)("span",{children:"Keep my Pro plan"})]})}),children:`You'll keep Pro until ${!(c=u.current_period_end)?"the end of your billing period":new Date(c).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}, then move to the free plan. Changed your mind? Reactivate to keep your benefits — you won't be charged now.`})}])},44476,e=>{"use strict";e.s([]),e.i(333745),e.i(97630),e.i(763705),e.i(284823),e.i(478050),e.i(795702),e.i(454403),e.i(163997),e.i(251380),e.i(823523),e.i(152616),e.i(857094),e.i(912204)},456850,e=>{"use strict";var t=e.i(843476),a=e.i(522016);e.s(["LinkPending",0,function({className:e}){let{pending:r}=(0,a.useLinkStatus)();return r?(0,t.jsx)("span",{"aria-hidden":"true",role:"presentation","data-testid":"link-pending",className:e??"ml-1.5 inline-block h-3 w-3 shrink-0 animate-spin rounded-full border-[1.5px] border-current border-t-transparent align-[-1px] opacity-60"}):null}])},517224,553031,e=>{"use strict";function t(e){return"eeoc"===e.category||"demographic"===e.category}e.s(["isDemographicField",0,t],553031);let a="fdw_quick_apply_answers",r=e=>`${a}:${e}`,s=()=>({version:1,entries:{}});function i(e){return e.toLowerCase().replace(/[^\p{L}\p{N}\s]/gu," ").replace(/\s+/g," ").trim()}function n(e,t){try{let a=localStorage.getItem(r(e));if(!a)return s();let i=JSON.parse(a);if(!i||1!==i.version||"object"!=typeof i.entries)return s();let n={};for(let[e,a]of Object.entries(i.entries))a&&"number"==typeof a.savedAt&&t-a.savedAt<=2592e6&&(n[e]=a);return{version:1,entries:n}}catch{return s()}}function o(e){return!!e.label&&!t(e)&&"file"!==e.type&&"email"!==e.name}e.s(["applyRemembered",0,function(e,t,a,r=Date.now()){if(!a)return;let s=n(a,r);for(let a of e){if(!o(a))continue;let e=t[a.name];if(Array.isArray(e)?e.length>0:!!e)continue;let r=s.entries[i(a.label)];if(!r)continue;let n=function(e,t){let a=new Set((e.options??[]).map(e=>e.label)),r="string"==typeof t.value?t.value:Array.isArray(t.value)?t.value.join(", "):"";switch(e.type){case"text":case"textarea":return r||void 0;case"select":return a.has(r)?r:void 0;case"multiselect":{let e=(Array.isArray(t.value)?t.value:r?r.split(", "):[]).filter(e=>a.has(e));return e.length>0?e:void 0}default:return}}(a,r);void 0!==n&&(t[a.name]=n)}},"clearRememberedAnswers",0,function(){try{let e=[];for(let t=0;t<localStorage.length;t++){let r=localStorage.key(t);r&&(r===a||r.startsWith(`${a}:`))&&e.push(r)}for(let t of e)localStorage.removeItem(t)}catch{}},"saveAnswers",0,function(e,t,a,s=Date.now()){if(a)try{let l=n(a,s);for(let a of e){if(!o(a))continue;let e=t[a.name];void 0!==e&&(Array.isArray(e)?0!==e.length:e)&&(l.entries[i(a.label)]={value:e,type:a.type,savedAt:s})}localStorage.setItem(r(a),JSON.stringify(l))}catch{}}],517224)},165542,e=>{"use strict";var t=e.i(843476),a=e.i(972520),r=e.i(63727),s=e.i(607486);let i=(0,e.i(475254).default)("calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);var n=e.i(664659),o=e.i(178583),l=e.i(248256),d=e.i(952571),c=e.i(292270),u=e.i(203496),h=e.i(283086),m=e.i(284614),x=e.i(37727),p=e.i(657688),f=e.i(522016),g=e.i(618566),b=e.i(271645),y=e.i(63270),v=e.i(167881),j=e.i(852917),w=e.i(697162),k=e.i(71829),N=e.i(817729);e.i(64107);var C=e.i(806908);function _({title:e,icon:a,children:r,defaultOpen:s=!1}){let[i,o]=(0,b.useState)(s);return(0,t.jsxs)("div",{className:"overflow-hidden rounded-2xl bg-brand-blue/5",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>o(!i),"aria-expanded":i,className:"flex w-full items-center justify-between px-4 py-4 text-left transition-colors hover:bg-brand-gray-100/50",children:[(0,t.jsxs)("span",{className:"flex items-center gap-3",children:[(0,t.jsx)("span",{className:"flex h-9 w-9 items-center justify-center rounded-xl bg-white shadow-sm",children:(0,t.jsx)(a,{className:"h-4.5 w-4.5 text-brand-gray-600","aria-hidden":"true"})}),(0,t.jsx)("span",{className:"text-base font-semibold text-brand-gray-900",children:e})]}),(0,t.jsx)(n.ChevronDown,{className:(0,C.cn)("h-5 w-5 text-brand-gray-400 transition-transform duration-200",i&&"rotate-180"),"aria-hidden":"true"})]}),(0,t.jsx)("div",{className:(0,C.cn)("grid transition-all duration-200 ease-in-out",i?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:(0,t.jsx)("div",{className:"overflow-hidden",children:(0,t.jsx)("div",{className:"px-4 pb-4",children:r})})})]})}function S({href:e,icon:a,children:r,onClick:s}){return(0,t.jsxs)(f.default,{href:e,onClick:s,className:"flex items-center gap-3 rounded-2xl bg-brand-blue/5 px-4 py-4 transition-all duration-150 active:scale-[0.98] hover:bg-brand-gray-100/70",children:[(0,t.jsx)("span",{className:"flex h-9 w-9 items-center justify-center rounded-xl bg-white shadow-sm",children:(0,t.jsx)(a,{className:"h-4.5 w-4.5 text-brand-gray-600","aria-hidden":"true"})}),(0,t.jsx)("span",{className:"text-base font-semibold text-brand-gray-900",children:r})]})}e.s(["MobileNav",0,function({open:e,onClose:n,isLoggedIn:b=!1,userRole:C,user:P,onLogout:E,onPostJob:L}){var A;let{subscription:R,loading:T}=(0,w.useEntitlements)(),D=(0,g.usePathname)(),I="company"===C,M=R?.plan_slug==="pro",B=`/pro?origin=${encodeURIComponent(D||"/")}`;return(0,t.jsx)(j.Sheet,{open:e,onOpenChange:n,children:(0,t.jsxs)(j.SheetContent,{side:"right",className:"flex w-full max-w-[320px] flex-col gap-0 overflow-y-auto bg-white p-0 [&>[data-slot=sheet-close]]:hidden","data-testid":"nav-mobile-menu","data-ph-mask":!0,children:[(0,t.jsx)(j.SheetTitle,{className:"sr-only",children:"Main menu"}),(0,t.jsx)(j.SheetDescription,{className:"sr-only",children:"Site navigation, job and company links, and account actions."}),(0,t.jsxs)("div",{className:"flex h-16 items-center justify-between border-b border-border-subtle bg-gradient-to-br from-brand-gray-50 to-white px-5",children:[(0,t.jsx)(f.default,{href:"/",onClick:n,className:"inline-block transition-opacity hover:opacity-80",children:(0,t.jsx)(p.default,{src:"/logo.png",alt:"4dayweek",
1width:130,height:26})}),(0,t.jsx)("button",{type:"button",onClick:n,"aria-label":"Close menu",className:"flex h-9 w-9 items-center justify-center rounded-full text-brand-gray-400 transition-colors hover:bg-brand-gray-100 hover:text-brand-gray-900",children:(0,t.jsx)(x.X,{className:"h-5 w-5","aria-hidden":"true"})})]}),(0,t.jsxs)("div",{className:"flex-1 space-y-2 p-4",children:[(0,t.jsxs)(_,{title:"Jobs",icon:r.Briefcase,children:[(0,t.jsxs)(f.default,{href:"/job-search",onClick:n,className:"group mb-4 flex items-center justify-between rounded-xl bg-gradient-to-r from-rose-500 to-pink-500 px-4 py-3 text-white shadow-md shadow-rose-500/20 transition-all hover:shadow-lg hover:shadow-rose-500/30",children:[(0,t.jsx)("span",{className:"text-sm font-semibold",children:"Browse all jobs"}),(0,t.jsx)(a.ArrowRight,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})]}),(0,t.jsxs)("div",{className:"mb-4",children:[(0,t.jsxs)("h4",{className:"mb-2 flex items-center gap-2 text-xs font-semibold uppercase tracking-wider text-brand-gray-400",children:[(0,t.jsx)("span",{className:"h-px flex-1 bg-brand-blue/30"}),"By Category",(0,t.jsx)("span",{className:"h-px flex-1 bg-brand-blue/30"})]}),(0,t.jsx)("div",{className:"space-y-0.5",children:k.JOB_CATEGORIES.filter(e=>(0,N.hasCategoryLanding)(e.value)).map(e=>(0,t.jsxs)(f.default,{href:(0,N.categorySearchHref)(e.value),onClick:n,prefetch:!1,className:"group flex items-center gap-2 rounded-lg px-2 py-2.5 text-sm text-brand-gray-600 transition-all hover:bg-rose-50 hover:text-brand-gray-900",children:[(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-brand-gray-300 transition-colors group-hover:bg-rose-400"}),(0,t.jsx)("span",{children:e.label})]},e.value))})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("h4",{className:"mb-2 flex items-center gap-2 text-xs font-semibold uppercase tracking-wider text-brand-gray-400",children:[(0,t.jsx)("span",{className:"h-px flex-1 bg-brand-blue/30"}),"By Schedule",(0,t.jsx)("span",{className:"h-px flex-1 bg-brand-blue/30"})]}),(0,t.jsx)("div",{className:"space-y-0.5",children:k.SCHEDULE_TYPES.map(e=>(0,t.jsxs)(f.default,{href:(0,N.jobScheduleSearchHref)(e.value),onClick:n,prefetch:!1,className:"group flex items-center gap-2 rounded-lg px-2 py-2.5 text-sm text-brand-gray-600 transition-all hover:bg-rose-50 hover:text-brand-gray-900",children:[(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-brand-gray-300 transition-colors group-hover:bg-rose-400"}),(0,t.jsx)("span",{children:e.label})]},e.value))})]})]}),(0,t.jsxs)(_,{title:"Companies",icon:s.Building2,children:[(0,t.jsxs)(f.default,{href:"/company-search",onClick:n,className:"group mb-4 flex items-center justify-between rounded-xl bg-gradient-to-r from-rose-500 to-pink-500 px-4 py-3 text-white shadow-md shadow-rose-500/20 transition-all hover:shadow-lg hover:shadow-rose-500/30",children:[(0,t.jsx)("span",{className:"text-sm font-semibold",children:"Browse all companies"}),(0,t.jsx)(a.ArrowRight,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("h4",{className:"mb-2 flex items-center gap-2 text-xs font-semibold uppercase tracking-wider text-brand-gray-400",children:[(0,t.jsx)("span",{className:"h-px flex-1 bg-brand-blue/30"}),"By Schedule",(0,t.jsx)("span",{className:"h-px flex-1 bg-brand-blue/30"})]}),(0,t.jsx)("div",{className:"space-y-0.5",children:N.COMPANY_SCHEDULE_LINKS.map(e=>(0,t.jsxs)(f.default,{href:e.href,onClick:n,prefetch:!1,className:"group flex items-center gap-2 rounded-lg px-2 py-2.5 text-sm text-brand-gray-600 transition-all hover:bg-rose-50 hover:text-brand-gray-900",children:[(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full bg-brand-gray-300 transition-colors group-hover:bg-rose-400"}),(0,t.jsx)("span",{children:e.label})]},e.value))})]})]}),(0,t.jsx)(S,{href:"/pros-and-cons",icon:u.Scale,onClick:n,children:"Pros & Cons"}),(0,t.jsx)(S,{href:"/auto-apply",icon:h.Sparkles,onClick:n,children:"Auto Apply"}),(0,t.jsxs)(_,{title:"Resources",icon:o.FileText,children:[(0,t.jsxs)("div",{className:"space-y-0.5",children:[(0,t.jsxs)(f.default,{href:"/research",onClick:n,className:"group flex items-center gap-3 rounded-lg px-2 py-2.5 text-sm text-brand-gray-600 transition-all hover:bg-rose-50 hover:text-brand-gray-900",children:[(0,t.jsx)(o.FileText,{className:"h-4 w-4 text-brand-gray-400 group-hover:text-rose-500","aria-hidden":"true"}),"Research"]}),(0,t.jsxs)(f.default,{href:"/calculators",onClick:n,className:"group flex items-center gap-3 rounded-lg px-2 py-2.5 text-sm text-brand-gray-600 transition-all hover:bg-rose-50 hover:text-brand-gray-900",children:[(0,t.jsx)(i,{className:"h-4 w-4 text-brand-gray-400 group-hover:text-rose-500","aria-hidden":"true"}),"Calculators"]}),(0,t.jsxs)(f.default,{href:"/countries",onClick:n,className:"group flex items-center gap-3 rounded-lg px-2 py-2.5 text-sm text-brand-gray-600 transition-all hover:bg-rose-50 hover:text-brand-gray-900",children:[(0,t.jsx)(l.Globe,{className:"h-4 w-4 text-brand-gray-400 group-hover:text-rose-500","aria-hidden":"true"}),"Countries"]}),(0,t.jsxs)(f.default,{href:"/about",onClick:n,className:"group flex items-center gap-3 rounded-lg px-2 py-2.5 text-sm text-brand-gray-600 transition-all hover:bg-rose-50 hover:text-brand-gray-900",children:[(0,t.jsx)(d.Info,{className:"h-4 w-4 text-brand-gray-400 group-hover:text-rose-500","aria-hidden":"true"}),"About"]})]}),(0,t.jsxs)(f.default,{href:"/resources",onClick:n,className:"group mt-3 flex items-center justify-center gap-1.5 rounded-xl bg-rose-50 px-4 py-2.5 text-sm font-medium text-rose-700 transition-all hover:bg-rose-100",children:["View all resources",(0,t.jsx)(a.ArrowRight,{className:"h-3.5 w-3.5 transition-transform group-hover:translate-x-0.5","aria-hidden":"true"})]})]})]}),(0,t.jsx)("div",{className:"border-t border-border-subtle bg-brand-blue/5 p-4",children:b?(0,t.jsxs)("div",{className:"space-y-2",children:[I?(0,t.jsx)(v.Button,{onClick:()=>{L?.(),n()},className:"w-full rounded-xl bg-gradient-to-r from-rose-500 to-pink-500 py-6 text-base font-semibold shadow-md shadow-rose-500/20 hover:from-brand-pink hover:to-pink-600 hover:shadow-lg hover:shadow-rose-500/30",children:"Post a Job"}):!b||I||T||M?(0,t.jsx)(v.Button,{asChild:!0,className:"w-full rounded-xl bg-gradient-to-r from-rose-500 to-pink-500 py-6 text-base font-semibold shadow-md shadow-rose-500/20 hover:from-brand-pink hover:to-pink-600 hover:shadow-lg hover:shadow-rose-500/30",onClick:n,children:(0,t.jsx)(f.default,{href:"/job-search",children:"Browse Jobs"})}):(0,t.jsx)(v.Button,{asChild:!0,className:"w-full rounded-xl bg-gradient-to-r from-rose-500 to-pink-500 py-6 text-base font-semibold shadow-md shadow-rose-500/20 hover:from-brand-pink hover:to-pink-600 hover:shadow-lg hover:shadow-rose-500/30",onClick:n,"data-testid":"mobile-nav-try-pro",children:(0,t.jsxs)(f.default,{href:B,children:[(0,t.jsx)(h.Sparkles,{className:"h-5 w-5","aria-hidden":"true"}),(0,t.jsx)("span",{children:"Try Pro"})]})}),(0,t.jsxs)("div",{className:"flex items-center gap-2 rounded-xl bg-white p-2 shadow-sm",children:[(0,t.jsxs)(f.default,{href:I?"/employer":"/dashboard",onClick:n,className:"group flex flex-1 items-center gap-3 rounded-lg p-1 transition-colors hover:bg-brand-blue/5",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(y.Avatar,{className:"h-10 w-10 ring-2 ring-white shadow-sm",children:(0,t.jsx)(y.AvatarFallback,{className:"bg-gradient-to-br from-rose-100 to-pink-100 text-rose-700 text-sm font-semibold",children:P?.full_name||P?.email?(A=P?.full_name||P?.email)?A.split(" ").map(e=>e[0]).join("").toUpperCase().slice(0,2):"":(0,t.jsx)(m.User,{className:"h-5 w-5 text-brand-pink"})})}),(0,t.jsx)("span",{className:"absolute -bottom-0.5 -right-0.5 h-3 w-3 rounded-full border-2 border-white bg-emerald-500"})]}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-sm font-semibold text-brand-gray-900",children:P?.full_name||"Welcome back"}),P?.email&&(0,t.jsx)("p",{className:"truncate text-xs text-brand-gray-600",children:P.email})]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>{E?.(),n()},"aria-label":"Sign out",title:"Sign out",className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg text-brand-gray-400 transition-colors hover:bg-red-50 hover:text-red-600",children:(0,t.jsx)(c.LogOut,{className:"h-4 w-4","aria-hidden":"true"})})]})]}):(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)(v.Button,{variant:"outline",className:"w-full rounded-xl bg-white py-6 text-base font-semibold shadow-sm hover:bg-brand-blue/5 hover:shadow",asChild:!0,children:(0,t.jsx)(f.default,{href:"/login",onClick:n,children:"Sign in"})}),(0,t.jsx)(v.Button,{className:"w-full rounded-xl bg-gradient-to-r from-rose-500 to-pink-500 py-6 text-base font-semibold shadow-md shadow-rose-500/20 hover:from-brand-pink hover:to-pink-600 hover:shadow-lg hover:shadow-rose-500/30",asChild:!0,children:(0,t.jsx)(f.default,{href:"/signup",onClick:n,children:"Sign Up"})})]})})]})})}],165542)},866359,e=>{"use strict";var t=e.i(843476),a=e.i(571930),r=e.i(63727),s=e.i(607486),i=e.i(561659),n=e.i(178583),o=e.i(541382),l=e.i(260289),d=e.i(292270),c=e.i(239616),u=e.i(283086),h=e.i(284614),m=e.i(522016),x=e.i(618566),p=e.i(271645),f=e.i(63270),g=e.i(167881),b=e.i(463415),y=e.i(697162);let v=[{label:"Dashboard",icon:l.LayoutDashboard,href:"/dashboard"},{label:"Saved Jobs",icon:a.Bookmark,href:"/dashboard/saved"},{label:"Job Tracker",icon:o.KanbanSquare,href:"/dashboard/job-tracker"},{label:"Profile",icon:h.User,href:"/dashboard/profile"},{label:"Billing",icon:i.CreditCard,href:"/dashboard/billing"},{label:"Settings",icon:c.Settings,href:"/dashboard/settings"}],j=[{label:"Dashboard",icon:l.LayoutDashboard,href:"/employer"},{label:"My Jobs",icon:r.Briefcase,href:"/employer/jobs"},{label:"Applications",icon:n.FileText,href:"/employer/applications"},{label:"Company Profile",icon:s.Building2,href:"/employer/company"}];e.s(["UserMenu",0,function({user:e,userRole:a,onPostJob:r,onLogout:s}
1){var i;let[n,o]=(0,p.useState)(!1),l=(0,p.useRef)(void 0),{subscription:c,loading:w}=(0,y.useEntitlements)(),k=(0,x.usePathname)(),N=(0,p.useCallback)(()=>{clearTimeout(l.current),o(!0)},[]),C=(0,p.useCallback)(()=>{l.current=setTimeout(()=>o(!1),150)},[]),_=(0,p.useCallback)(e=>{clearTimeout(l.current),o(e)},[]);(0,p.useEffect)(()=>()=>clearTimeout(l.current),[]);let S="company"===a,P=c?.plan_slug==="pro",E=`/pro?origin=${encodeURIComponent(k||"/")}`;return(0,t.jsxs)(t.Fragment,{children:[S?(0,t.jsx)(g.Button,{onClick:r,className:"rounded-xl bg-brand-pink px-5 font-medium shadow-sm transition-all hover:bg-rose-700 hover:shadow-md",children:"Post a Job"}):S||w||P?(0,t.jsx)(g.Button,{asChild:!0,className:"rounded-xl bg-brand-pink px-5 font-medium shadow-sm transition-all hover:bg-rose-700 hover:shadow-md",children:(0,t.jsx)(m.default,{href:"/job-search",children:"Browse Jobs"})}):(0,t.jsx)(g.Button,{asChild:!0,className:"rounded-xl bg-gradient-to-r from-rose-500 to-pink-500 px-5 font-medium shadow-sm shadow-rose-500/30 transition-all hover:from-brand-pink hover:to-pink-600 hover:shadow-md hover:shadow-rose-500/40","data-testid":"nav-try-pro",children:(0,t.jsxs)(m.default,{href:E,children:[(0,t.jsx)(u.Sparkles,{className:"h-4 w-4","aria-hidden":"true"}),(0,t.jsx)("span",{children:"Try Pro"})]})}),(0,t.jsxs)(b.DropdownMenu,{open:n,onOpenChange:_,modal:!1,children:[(0,t.jsx)("div",{onMouseEnter:N,onMouseLeave:C,children:(0,t.jsx)(b.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(m.default,{href:S?"/employer":"/dashboard",className:"group relative flex cursor-pointer items-center justify-center rounded-full transition-all duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-rose-500 focus-visible:ring-offset-2","aria-label":"Go to dashboard","data-testid":"user-menu","data-ph-mask":!0,onClick:e=>{e.stopPropagation()},children:[(0,t.jsx)("span",{className:"absolute inset-0 rounded-full ring-2 ring-transparent transition-all duration-200 group-hover:ring-rose-200 group-hover:ring-offset-2"}),(0,t.jsx)(f.Avatar,{className:"h-10 w-10 transition-transform duration-200 group-hover:scale-105",children:(0,t.jsx)(f.AvatarFallback,{className:"bg-gradient-to-br from-rose-100 to-pink-100 text-rose-700 text-sm font-semibold shadow-sm transition-shadow duration-200 group-hover:shadow-md",children:e?.full_name||e?.email?(i=e?.full_name||e?.email)?i.split(" ").map(e=>e[0]).join("").toUpperCase().slice(0,2):"?":(0,t.jsx)(h.User,{className:"h-5 w-5 text-brand-pink"})})}),(0,t.jsx)("span",{className:"absolute -bottom-0.5 -right-0.5 h-3 w-3 rounded-full border-2 border-white bg-emerald-500 shadow-sm"})]})})}),(0,t.jsxs)(b.DropdownMenuContent,{align:"end",sideOffset:4,onMouseEnter:N,onMouseLeave:C,onCloseAutoFocus:e=>e.preventDefault(),"data-ph-mask":!0,className:"w-56 rounded-xl border border-border/80 bg-white p-1 shadow-xl shadow-slate-900/8",children:[(0,t.jsxs)(b.DropdownMenuLabel,{className:"px-3 py-2",children:[(0,t.jsx)("p",{className:"truncate text-sm font-semibold text-brand-gray-900",children:e?.full_name||"Welcome back"}),e?.email&&(0,t.jsx)("p",{className:"truncate text-xs font-normal text-brand-gray-600",children:e.email})]}),(0,t.jsx)(b.DropdownMenuSeparator,{}),(0,t.jsx)(b.DropdownMenuGroup,{children:(S?j:v).map(e=>(0,t.jsx)(b.DropdownMenuItem,{asChild:!0,children:(0,t.jsxs)(m.default,{href:e.href,className:"flex cursor-pointer items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium text-brand-gray-700 transition-all duration-150 hover:bg-gradient-to-r hover:from-rose-50 hover:to-pink-50/50 hover:text-brand-gray-900",children:[(0,t.jsx)(e.icon,{className:"h-4 w-4 text-brand-gray-400"}),(0,t.jsx)("span",{children:e.label})]})},e.href))}),(0,t.jsx)(b.DropdownMenuSeparator,{}),(0,t.jsxs)(b.DropdownMenuItem,{variant:"destructive",onClick:s,className:"cursor-pointer rounded-lg px-3 py-2",children:[(0,t.jsx)(d.LogOut,{className:"h-4 w-4"}),"Sign out"]})]})]})]})}])},993983,971757,e=>{"use strict";var t=e.i(843476),a=e.i(972520),r=e.i(492161);let s=(0,e.i(475254).default)("plane",[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.
11-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]]);e.s(["Plane",0,s],971757);var i=e.i(657688),n=e.i(522016),o=e.i(618566),l=e.i(271645),d=e.i(456850),c=e.i(167881);e.i(174080);var u=e.i(30030),h=e.i(981140),m=e.i(248425),x=e.i(369340),p=e.i(820783),f=e.i(586318),g=e.i(296626),b=e.i(610772),y=e.i(75830),v=e.i(726330),j=e.i(999682),w=e.i(934620),k=e.i(30207),N=e.i(959411),C=Object.defineProperty,_=(e,t)=>C(e,"name",{value:t,configurable:!0}),S="NavigationMenu",[P,E,L]=(0,y.createCollection)(S),[A,R,T]=(0,y.createCollection)(S),[D,I]=(0,u.createContextScope)(S,[L,T]),[M,B]=D(S),[O,U]=D(S),$=l.forwardRef(_(function(e,a){let{__scopeNavigationMenu:r,value:s,onValueChange:i,defaultValue:n,delayDuration:o=200,skipDelayDuration:d=300,orientation:c="horizontal",dir:u,...h}=e,[g,b]=l.useState(null),y=(0,p.useComposedRefs)(a,b),v=(0,f.useDirection)(u),j=l.useRef(0),w=l.useRef(0),k=l.useRef(0),[N,C]=l.useState(!0),[P,E]=(0,x.useControllableState)({prop:s,onChange:_(e=>{let t=d>0;""!==e?(window.clearTimeout(k.current),t&&C(!1)):(window.clearTimeout(k.current),k.current=window.setTimeout(()=>C(!0),d)),i?.(e)},"onChange"),defaultProp:n??"",caller:S}),L=l.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>E(""),150)},[E]),A=l.useCallback(e=>{window.clearTimeout(w.current),E(e)},[E]),R=l.useCallback(e=>{P===e?window.clearTimeout(w.current):j.current=window.setTimeout(()=>{window.clearTimeout(w.current),E(e)},o)},[P,E,o]);return l.useEffect(()=>()=>{window.clearTimeout(j.current),window.clearTimeout(w.current),window.clearTimeout(k.current)},[]),(0,t.jsx)(F,{scope:r,isRootMenu:!0,value:P,dir:v,orientation:c,rootNavigationMenu:g,onTriggerEnter:e=>{window.clearTimeout(j.current),N?R(e):A(e)},onTriggerLeave:()=>{window.clearTimeout(j.current),L()},onContentEnter:()=>window.clearTimeout(w.current),onContentLeave:L,onItemSelect:e=>{E(t=>t===e?"":e)},onItemDismiss:()=>E(""),children:(0,t.jsx)(m.Primitive.nav,{"aria-label":"Main","data-orientation":c,dir:v,...h,ref:y})})},"NavigationMenu")),F=_(e=>{let{scope:a,isRootMenu:r,rootNavigationMenu:s,dir:i,orientation:n,children:o,value:d,onItemSelect:c,onItemDismiss:u,onTriggerEnter:h,onTriggerLeave:m,onContentEnter:x,onContentLeave:p}=e,[f,g]=l.useState(null),[y,v]=l.useState(new Map),[w,N]=l.useState(null);return(0,t.jsx)(M,{scope:a,isRootMenu:r,rootNavigationMenu:s,value:d,previousValue:(0,j.usePrevious)(d),baseId:(0,b.useId)(),dir:i,orientation:n,viewport:f,onViewportChange:g,indicatorTrack:w,onIndicatorTrackChange:N,onTriggerEnter:(0,k.useCallbackRef)(h),onTriggerLeave:(0,k.useCallbackRef)(m),onContentEnter:(0,k.useCallbackRef)(x),onContentLeave:(0,k.useCallbackRef)(p),onItemSelect:(0,k.useCallbackRef)(c),onItemDismiss:(0,k.useCallbackRef)(u),onViewportContentChange:l.useCallback((e,t)=>{v(a=>(a.set(e,t),new Map(a)))},[]),onViewportContentRemove:l.useCallback(e=>{v(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,t.jsx)(P.Provider,{scope:a,children:(0,t.jsx)(O,{scope:a,items:y,children:o})})})},"NavigationMenuProvider"),z=l.forwardRef(_(function(e,a){let{__scopeNavigationMenu:r,...s}=e,i=B("NavigationMenuList",r),n=(0,t.jsx)(m.Primitive.ul,{"data-orientation":i.orientation,...s,ref:a});return(0,t.jsx)(m.Primitive.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:(0,t.jsx)(P.Slot,{scope:r,children:i.isRootMenu?(0,t.jsx)(ei,{asChild:!0,children:n}):n})})},"NavigationMenuList")),[H,W]=D("NavigationMenuItem"),G=l.forwardRef(_(function(e,a){let{__scopeNavigationMenu:r,value:s,...i}=e,n=(0,b.useId)(),o=l.useRef(null),d=l.useRef(null),c=l.useRef(null),u=l.useRef(()=>{}),h=l.useRef(!1),x=l.useCallback((e="start")=>{if(o.current){u.current();let t=el(o.current);t.length&&ed("start"===e?t:t.reverse())}},[]),p=l.useCallback(()=>{if(o.current){let e=el(o.current);e.length&&(u.current=ec(e))}},[]);return(0,t.jsx)(H,{scope:r,value:s||n||"LEGACY_REACT_AUTO_VALUE",triggerRef:d,contentRef:o,focusProxyRef:c,wasEscapeCloseRef:h,onEntryKeyDown:x,onFocusProxyEnter:x,onRootContentClose:p,onContentFocusOutside:p,children:(0,t.jsx)(m.Primitive.li,{...i,ref:a})})},"NavigationMenuItem")),Y="NavigationMenuTrigger",K=l.forwardRef(_(function(e,a){let{__scopeNavigationMenu:r,disabled:s,...i}=e,n=B(Y,e.__scopeNavigationMenu),o=W(Y,e.__scopeNavigationMenu),d=l.useRef(null),c=(0,p.useComposedRefs)(d,o.triggerRef,a),u=em(n.baseId,o.value),x=ex(n.baseId,o.value),f=l.useRef(!1),g=l.useRef(!1),b=
1o.value===n.value;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(P.ItemSlot,{scope:r,value:o.value,children:(0,t.jsx)(eo,{asChild:!0,children:(0,t.jsx)(m.Primitive.button,{id:u,disabled:s,"data-disabled":s?"":void 0,"data-state":eh(b),"aria-expanded":b,"aria-controls":b?x:void 0,...i,ref:c,onPointerEnter:(0,h.composeEventHandlers)(e.onPointerEnter,()=>{g.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:(0,h.composeEventHandlers)(e.onPointerMove,ep(()=>{s||g.current||o.wasEscapeCloseRef.current||f.current||(n.onTriggerEnter(o.value),f.current=!0)})),onPointerLeave:(0,h.composeEventHandlers)(e.onPointerLeave,ep(()=>{s||(n.onTriggerLeave(),f.current=!1)})),onClick:(0,h.composeEventHandlers)(e.onClick,()=>{n.onItemSelect(o.value),g.current=b}),onKeyDown:(0,h.composeEventHandlers)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===n.dir?"ArrowLeft":"ArrowRight"}[n.orientation];b&&e.key===t&&(o.onEntryKeyDown(),e.preventDefault())})})})}),b&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(N.Root,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:e=>{let t=o.contentRef.current,a=e.relatedTarget,r=a===d.current,s=t?.contains(a);(r||!s)&&o.onFocusProxyEnter(r?"start":"end")}}),n.viewport&&(0,t.jsx)("span",{"aria-owns":x})]})]})},"NavigationMenuTrigger")),J="navigationMenu.linkSelect",V=l.forwardRef(_(function(e,a){let{__scopeNavigationMenu:r,active:s,onSelect:i,...n}=e;return(0,t.jsx)(eo,{asChild:!0,children:(0,t.jsx)(m.Primitive.a,{"data-active":s?"":void 0,"aria-current":s?"page":void 0,...n,ref:a,onClick:(0,h.composeEventHandlers)(e.onClick,e=>{let t=e.target,a=new CustomEvent(J,{bubbles:!0,cancelable:!0});if(t.addEventListener(J,e=>i?.(e),{once:!0}),(0,m.dispatchDiscreteCustomEvent)(t,a),!a.defaultPrevented&&!e.metaKey){let e=new CustomEvent(Z,{bubbles:!0,cancelable:!0});(0,m.dispatchDiscreteCustomEvent)(t,e)}},{checkForDefaultPrevented:!1})})})},"NavigationMenuLink")),q="NavigationMenuContent",X=l.forwardRef(_(function(e,a){let{forceMount:r,...s}=e,i=B(q,e.__scopeNavigationMenu),n=W(q,e.__scopeNavigationMenu),o=(0,p.useComposedRefs)(n.contentRef,a),l=n.value===i.value,d={value:n.value,triggerRef:n.triggerRef,focusProxyRef:n.focusProxyRef,wasEscapeCloseRef:n.wasEscapeCloseRef,onContentFocusOutside:n.onContentFocusOutside,onRootContentClose:n.onRootContentClose,...s};return i.viewport?(0,t.jsx)(Q,{forceMount:r,...d,ref:o}):(0,t.jsx)(g.Presence,{present:r||l,children:(0,t.jsx)(ee,{"data-state":eh(l),...d,ref:o,onPointerEnter:(0,h.composeEventHandlers)(e.onPointerEnter,i.onContentEnter),onPointerLeave:(0,h.composeEventHandlers)(e.onPointerLeave,ep(i.onContentLeave)),style:{pointerEvents:!l&&i.isRootMenu?"none":void 0,...d.style}})})},"NavigationMenuContent")),Q=l.forwardRef(_(function(e,t){let{onViewportContentChange:a,onViewportContentRemove:r}=B(q,e.__scopeNavigationMenu);return(0,w.useLayoutEffect)(()=>{a(e.value,{ref:t,...e})},[e,t,a]),(0,w.useLayoutEffect)(()=>()=>r(e.value),[e.value,r]),null},"ViewportContentMounter")),Z="navigationMenu.rootContentDismiss",ee=l.forwardRef(_(function(e,a){let{__scopeNavigationMenu:r,value:s,triggerRef:i,focusProxyRef:n,wasEscapeCloseRef:o,onRootContentClose:d,onContentFocusOutside:c,...u}=e,m=B(q,r),x=l.useRef(null),f=(0,p.useComposedRefs)(x,a),g=em(m.baseId,s),b=ex(m.baseId,s),y=E(r),j=l.useRef(null),{onItemDismiss:w}=m;l.useEffect(()=>{let e=x.current;if(m.isRootMenu&&e){let t=_(()=>{w(),d(),e.contains(document.activeElement)&&i.current?.focus()},"handleClose");return e.addEventListener(Z,t),()=>e.removeEventListener(Z,t)}},[m.isRootMenu,e.value,i,w,d]);let k=l.useMemo(()=>{let e=y().map(e=>e.value);"rtl"===m.dir&&e.reverse();let t=e.indexOf(m.value),a=e.indexOf(m.previousValue),r=s===m.value,i=a===e.indexOf(s);if(!r&&!i)return j.current;let n=(()=>{if(t!==a){if(r&&-1!==a)return t>a?"from-end":"from-start";if(i&&-1!==t)return t>a?"to-start":"to-end"}return null})();return j.current=n,n},[m.previousValue,m.value,m.dir,y,s]);return(0,t.jsx)(ei,{asChild:!0,children:(0,t.jsx)(v.DismissableLayer,{id:b,"aria-labelledby":g,"data-motion":k,"data-orientation":m.orientation,...u,ref:f,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(Z,{bubbles:!0,cancelable:!0});x.current?.dispatchEvent(e)},onFocusOutside:(0,h.composeEventHandlers)(e.onFocusOutside,e=>{c();let t=e.target;m.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:(0,h.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.target,a=y().some(e=>e.ref.current?.contains(t)),r=m.isRootMenu&&m.viewport?.contains(t);(a||r||!m.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,h.composeEventHandlers)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=el(e.currentTarget),a=document.activeElement,r=t.findIndex(e=>e===a);ed(e.shiftKey?t.slice(0,r).reverse():t.slice(r+1,t.length))?e.preventDefault():n.current?.focus()}}),onEscapeKeyDown:(0,h.composeEventHandlers)(e.onEscapeKeyDown,e=>{o.current=!0})})})},"NavigationMenuContentImpl")),et="NavigationMenuViewport",ea=l.forwardRef(_(function(e,a){let{forceMount:r,...s}=e,i=!!B(et,e.__scopeNavigationMenu).value;return(0,t.jsx)(g.Presence,{present:r||i,children:(0,t.jsx)(er,{...s,ref:a})})},"NavigationMenuViewport")),er=l.forwardRef(_(function(e,a){let{__scopeNavigationMenu:r,children:s,...i}=e,n=B(et,r),o=(0,p.useComposedRefs)(a,n.onViewportChange),d=U(q,e.__scopeNavigationMenu),[c,u]=l.useState(null),[x,f]=l.useState(null),b=c?c?.width+"px":void 0,y=c?c?.height+"px":void 0,v=!!n.value,
1j=v?n.value:n.previousValue,w=_(()=>{x&&u({width:x.offsetWidth,height:x.offsetHeight})},"handleSizeChange");return eu(x,w),(0,t.jsx)(m.Primitive.div,{"data-state":eh(v),"data-orientation":n.orientation,...i,ref:o,style:{pointerEvents:!v&&n.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":b,"--radix-navigation-menu-viewport-height":y,...i.style},onPointerEnter:(0,h.composeEventHandlers)(e.onPointerEnter,n.onContentEnter),onPointerLeave:(0,h.composeEventHandlers)(e.onPointerLeave,ep(n.onContentLeave)),children:Array.from(d.items).map(([e,{ref:a,forceMount:r,...s}])=>{let i=j===e;return(0,t.jsx)(g.Presence,{present:r||i,children:(0,t.jsx)(es,{...s,contentRef:a,isActive:i,onActiveContentChange:f})},e)})})},"NavigationMenuViewportImpl")),es=_(({contentRef:e,isActive:a,onActiveContentChange:r,...s})=>{let i=l.useCallback(e=>{a&&e&&r(e)},[a,r]),n=(0,p.useComposedRefs)(e,i);return(0,t.jsx)(ee,{...s,ref:n})},"NavigationMenuViewportItem"),ei=l.forwardRef(_(function(e,a){let{__scopeNavigationMenu:r,...s}=e,i=B("FocusGroup",r);return(0,t.jsx)(A.Provider,{scope:r,children:(0,t.jsx)(A.Slot,{scope:r,children:(0,t.jsx)(m.Primitive.div,{dir:i.dir,...s,ref:a})})})},"FocusGroup")),en=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],eo=l.forwardRef(_(function(e,a){let{__scopeNavigationMenu:r,...s}=e,i=R(r),n=B("FocusGroupItem",r);return(0,t.jsx)(A.ItemSlot,{scope:r,children:(0,t.jsx)(m.Primitive.button,{...s,ref:a,onKeyDown:(0,h.composeEventHandlers)(e.onKeyDown,e=>{if(["Home","End",...en].includes(e.key)){let t=i().map(e=>e.ref.current);if(["rtl"===n.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),en.includes(e.key)){let a=t.indexOf(e.currentTarget);t=t.slice(a+1)}setTimeout(()=>ed(t)),e.preventDefault()}})})})},"FocusGroupItem"));function el(e){let t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:_(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;a.nextNode();)t.push(a.currentNode);return t}function ed(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ec(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}function eu(e,t){let a=(0,k.useCallbackRef)(t);(0,w.useLayoutEffect)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(a)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,a])}function eh(e){return e?"open":"closed"}function em(e,t){return`${e}-trigger-${t}`}function ex(e,t){return`${e}-content-${t}`}function ep(e){return t=>"mouse"===t.pointerType?e(t):void 0}_(el,"getTabbableCandidates"),_(ed,"focusFirst"),_(ec,"removeFromTabOrder"),_(eu,"useResizeObserver"),_(eh,"getOpenState"),_(em,"makeTriggerId"),_(ex,"makeContentId"),_(ep,"whenMouse");var ef=e.i(225913),eg=e.i(664659);e.i(64107);var eb=e.i(806908);function ey({className:e,children:a,viewport:r=!0,delayDuration:s=0,skipDelayDuration:i=0,...n}){return(0,t.jsxs)($,{"data-slot":"navigation-menu","data-viewport":r,delayDuration:s,skipDelayDuration:i,className:(0,eb.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",e),...n,children:[a,r&&(0,t.jsx)(eC,{})]})}function ev({className:e,...a}){return(0,t.jsx)(z,{"data-slot":"navigation-menu-list",className:(0,eb.cn)("group flex flex-1 list-none items-center justify-center gap-1",e),...a})}function ej({className:e,...a}){return(0,t.jsx)(G,{"data-slot":"navigation-menu-item",className:(0,eb.cn)("relative",e),...a})}let ew=(0,ef.cva)("group inline-flex h-9 w-max cursor-pointer items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focu
1s-visible:ring-[3px] focus-visible:outline-1 ");function ek({className:e,children:a,hideChevron:r,asChild:s,...i}){return(0,t.jsx)(K,{"data-slot":"navigation-menu-trigger",asChild:s,className:(0,eb.cn)(ew(),"group",e),...i,children:s?a:(0,t.jsxs)(t.Fragment,{children:[a,!r&&(0,t.jsx)(eg.ChevronDown,{className:"ml-1 h-3 w-3 shrink-0 opacity-50 transition-transform duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})})}function eN({className:e,...a}){return(0,t.jsx)(X,{"data-slot":"navigation-menu-content",className:(0,eb.cn)("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:border-border group-data-[viewport=false]/navigation-menu:shadow-lg group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",e),...a})}function eC({className:e,...a}){return(0,t.jsx)("div",{className:(0,eb.cn)("absolute top-full left-0 isolate z-50 flex justify-center"),children:(0,t.jsx)(ea,{"data-slot":"navigation-menu-viewport",className:(0,eb.cn)("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)] ",e),...a})})}function e_({className:e,...a}){return(0,t.jsx)(V,{"data-slot":"navigation-menu-link",className:(0,eb.cn)("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-pointer flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",e),...a})}var eS=e.i(47405),eP=e.i(182189);e.i(558486);var eE=e.i(513793),eL=e.i(365466),eA=e.i(832372),eR=e.i(610088),eT=e.i(817729),eD=e.i(517224),eI=e.i(165542),eM=e.i(866359);e.s(["Header",0,function(){let e=(0,o.useRouter)(),[u,h]=(0,l.useState)(!1),{user:m,isLoggedIn:x,userRole:p}=(0,eS.useMarketingUser)(),{isHeaderVisible:f}=(0,eP.useScrollDirection)(),g=(0,o.usePathname)(),b=(0,eR.usePlatformStats)(),y=b?.live_jobs&&b.live_jobs>0?b.live_jobs.toLocaleString("en-GB"):null,v=e=>"/"===e?"/"===g:"/jobs"===e?"/jobs"===g||g.startsWith("/job-search")||g.endsWith("-jobs")||g.startsWith("/jobs-in-"):"/companies"===e?"/companies"===g||g.startsWith("/company-search")||g.endsWith("-companies")||g.startsWith("/companies-in-"):g.startsWith(e),j=async()=>{try{await (0,eL.logout)()}catch{}(0,eE.clearLoggedInCookie)(),(0,eD.clearRememberedAnswers)(),window.location.href="/?logged_out=1"},w=()=>{if("company"===p&&m?.company_id)e.push("/employer/jobs/new");else{try{sessionStorage.setItem("post_onboarding_redirect","/employer/jobs/new")}catch{}e.push("/onboarding")}},k=e=>(0,eb.cn)("group/trigger h-10 rounded-full px-4 font-medium transition-all duration-200","focus-visible:ring-2 focus-visible:ring-rose-500/40 focu
1s-visible:ring-offset-1",e?"bg-rose-50 text-brand-pink hover:bg-rose-50 hover:text-brand-pink data-[state=open]:bg-rose-50 data-[state=open]:text-brand-pink":"bg-transparent text-brand-gray-600 hover:bg-brand-gray-100/80 hover:text-brand-gray-900 data-[state=open]:bg-brand-gray-100/80 data-[state=open]:text-brand-gray-900"),N="overflow-hidden rounded-xl border border-border/80 bg-white shadow-xl shadow-slate-900/8 animate-in fade-in-0 zoom-in-95 duration-200",C="group/item relative block rounded-xl px-3 py-2 text-sm font-medium text-brand-gray-700 transition-all duration-150 hover:bg-gradient-to-r hover:from-rose-50 hover:to-pink-50/50 hover:text-brand-gray-900",_="h-4 w-4 opacity-50 transition-all group-hover/item:text-rose-500 group-hover/item:opacity-100";return(0,t.jsxs)("header",{className:(0,eb.cn)("sticky top-0 z-50 w-full border-b border-border-subtle bg-white/90 backdrop-blur transition-transform duration-300",f?"translate-y-0":"-translate-y-full"),children:[(0,t.jsxs)("nav",{className:"mx-auto flex max-w-7xl items-center justify-between px-4 py-3 lg:py-2 sm:px-6 lg:px-8",children:[(0,t.jsx)("div",{className:"flex lg:flex-1",children:(0,t.jsx)(n.default,{href:"/",className:"-m-1.5 p-1.5 transition-opacity hover:opacity-80",children:(0,t.jsx)(i.default,{src:"/logo.png",alt:"4dayweek",width:194,height:39,priority:!0})})}),(0,t.jsxs)("div",{className:"flex items-center gap-2 lg:hidden",children:[!x&&(0,t.jsx)(c.Button,{asChild:!0,size:"sm",className:"h-9 rounded-xl bg-brand-pink px-4 font-medium shadow-sm transition-all hover:bg-rose-700",children:(0,t.jsx)(n.default,{href:"/signup",children:"Sign Up"})}),(0,t.jsxs)("button",{type:"button","data-testid":"nav-mobile-menu",className:"-m-2 inline-flex items-center justify-center rounded-xl p-2 text-brand-gray-600 transition-colors hover:bg-brand-gray-100 hover:text-brand-gray-900",onClick:()=>h(!0),"aria-expanded":u,children:[(0,t.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,t.jsx)(r.Menu,{className:"h-6 w-6","aria-hidden":"true"})]})]}),(0,t.jsx)("div",{"data-testid":"nav-desktop",className:"hidden lg:flex lg:gap-x-1",children:(0,t.jsx)(ey,{viewport:!1,delayDuration:50,skipDelayDuration:50,children:(0,t.jsxs)(ev,{className:"gap-0.5",children:[(0,t.jsxs)(ej,{children:[(0,t.jsx)(ek,{asChild:!0,className:k(v("/jobs")),children:(0,t.jsx)(n.default,{href:"/job-search","data-testid":"nav-jobs","aria-current":v("/jobs")?"page":void 0,children:(0,t.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{children:"Jobs"}),y&&(0,t.jsx)("span",{className:"text-xs font-medium tabular-nums text-brand-gray-400",children:y})]})})}),(0,t.jsx)(eN,{className:N,children:(0,t.jsxs)("div",{className:"w-[520px] p-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"mb-2 px-3 text-xs font-semibold uppercase tracking-wider text-brand-gray-600",children:"By Category"}),(0,t.jsxs)("ul",{children:[eT.JOB_CATEGORY_LINKS.map(e=>{let a=eA.CATEGORY_ICONS[e.value];return(0,t.jsx)("li",{children:(0,t.jsx)(e_,{asChild:!0,children:(0,t.jsx)(n.default,{href:e.href,prefetch:!1,className:C,children:(0,t.jsxs)("span",{className:"relative z-10 flex items-center gap-2",children:[a&&(0,t.jsx)(a,{className:_}),(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(d.LinkPending,{})]})})})},e.value)}),(0,t.jsx)("li",{children:(0,t.jsxs)(n.default,{href:"/job-search",className:"group/link inline-flex items-center gap-1.5 rounded-xl px-3 py-2 text-sm font-medium text-brand-pink transition-all duration-150 hover:bg-rose-50 hover:gap-2",children:["All categories",(0,t.jsx)(a.ArrowRight,{className:"h-3.5 w-3.5 transition-transform group-hover/link:translate-x-0.5"})]})})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"mb-2 px-3 text-xs font-semibold uppercase tracking-wider text-brand-gray-600",children:"By Schedule"}),(0,t.jsxs)("ul",{children:[eT.JOB_SCHEDULE_LINKS.map(e=>{let a=eT.SCHEDULE_ICONS[e.value];return(0,t.jsx)("li",{children:(0,t.jsx)(e_,{asChild:!0,children:(0,t.jsx)(n.default,{href:e.href,prefetch:!1,className:C,children:(0,t.jsxs)("span",{className:"relative z-10 flex items-center gap-2",children:[a&&(0,t.jsx)(a,{className:_}),(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(d.LinkPending,{})]})})})},e.value)}),(0,t.jsx)("li",{children:(0,t.jsxs)(n.default,{href:"/job-search",className:"group/link 
1inline-flex items-center gap-1.5 rounded-xl px-3 py-2 text-sm font-medium text-brand-pink transition-all duration-150 hover:bg-rose-50 hover:gap-2",children:["All schedules",(0,t.jsx)(a.ArrowRight,{className:"h-3.5 w-3.5 transition-transform group-hover/link:translate-x-0.5"})]})})]})]})]}),(0,t.jsxs)("div",{className:"mt-4 space-y-2",children:[(0,t.jsxs)(n.default,{href:"/work-from-anywhere-jobs",className:"group/wfa flex w-full items-center justify-center gap-2 rounded-xl border border-rose-100 bg-rose-50/50 px-4 py-2 text-sm font-medium text-brand-gray-700 transition-all duration-150 hover:border-rose-200 hover:bg-rose-50",children:[(0,t.jsx)(s,{className:"h-4 w-4 text-brand-pink"}),"Work from Anywhere"]}),(0,t.jsxs)(n.default,{href:"/job-search",className:"group/cta inline-flex w-full items-center justify-center gap-2 rounded-xl bg-gradient-to-r from-rose-500 to-pink-500 px-4 py-2 text-sm font-semibold text-white shadow-md shadow-rose-500/20 transition-all duration-200 hover:from-brand-pink hover:to-pink-600 hover:shadow-lg hover:shadow-rose-500/30",children:["Browse all jobs",(0,t.jsx)(a.ArrowRight,{className:"h-4 w-4 transition-transform group-hover/cta:translate-x-0.5"})]})]})]})})]}),(0,t.jsxs)(ej,{children:[(0,t.jsx)(ek,{asChild:!0,className:k(v("/companies")),children:(0,t.jsx)(n.default,{href:"/company-search","data-testid":"nav-companies","aria-current":v("/companies")?"page":void 0,children:"Companies"})}),(0,t.jsx)(eN,{className:N,children:(0,t.jsxs)("div",{className:"w-[260px] p-4",children:[(0,t.jsx)("h3",{className:"mb-2 px-3 text-xs font-semibold uppercase tracking-wider text-brand-gray-600",children:"By Schedule"}),(0,t.jsx)("ul",{children:eT.COMPANY_SCHEDULE_LINKS.map(e=>{let a=eT.SCHEDULE_ICONS[e.value];return(0,t.jsx)("li",{children:(0,t.jsx)(e_,{asChild:!0,children:(0,t.jsx)(n.default,{href:e.href,prefetch:!1,className:C,children:(0,t.jsxs)("span",{className:"relative z-10 flex items-center gap-2",children:[a&&(0,t.jsx)(a,{className:_}),(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(d.LinkPending,{})]})})})},e.value)})}),(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsxs)(n.default,{href:"/company-search",className:"group/cta inline-flex w-full items-center justify-center gap-2 rounded-xl bg-gradient-to-r from-rose-500 to-pink-500 px-4 py-2 text-sm font-semibold text-white shadow-md shadow-rose-500/20 transition-all duration-200 hover:from-brand-pink hover:to-pink-600 hover:shadow-lg hover:shadow-rose-500/30",children:["Browse all companies",(0,t.jsx)(a.ArrowRight,{className:"h-4 w-4 transition-transform group-hover/cta:translate-x-0.5"})]})})]})})]}),(0,t.jsx)(ej,{children:(0,t.jsx)(n.default,{href:"/pros-and-cons","aria-current":v("/pros-and-cons")?"page":void 0,className:(0,eb.cn)("inline-flex h-10 items-center justify-center rounded-full px-4 text-sm font-medium transition-all duration-200","focus-visible:ring-2 focus-visible:ring-rose-500/40 focus-visible:ring-offset-1",v("/pros-and-cons")?"bg-rose-50 text-brand-pink":"text-brand-gray-600 hover:bg-brand-gray-100/80 hover:text-brand-gray-900"),children:"Pros & Cons"})}),(0,t.jsx)(ej,{children:(0,t.jsx)(n.default,{href:"/auto-apply","aria-current":v("/auto-apply")?"page":void 0,className:(0,eb.cn)("inline-flex h-10 items-center justify-center rounded-full px-4 text-sm font-medium transition-all duration-200","focus-visible:ring-2 focus-visible:ring-rose-500/40 focus-visible:ring-offset-1",v("/auto-apply")?"bg-rose-50 text-brand-pink":"text-brand-gray-600 hover:bg-brand-gray-100/80 hover:text-brand-gray-900"),children:"Auto Apply"})}),(0,t.jsxs)(ej,{children:[(0,t.jsx)(ek,{asChild:!0,className:k(v("/resources")||v("/research")||v("/40-hour-work-week")||v("/calculator")||v("/countries")||v("/about")),children:(0,t.jsx)(n.default,{href:"/resources","data-testid":"nav-resources","aria-current":v("/resources")||v("/research")||v("/40-hour-work-week")||v("/calculator")||v("/countries")||v("/about")?"page":void 0,children:"Resources"})}),(0,t.jsx)(eN,{className:N,children:(0,t.jsxs)("div",{className:"w-[240px] p-2",children:[(0,t.jsx)("ul",{children:eT.RESOURCE_LINKS.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(e_,{asChild:!0,children:(0,t.jsx)(n.default,{href:e.href,className:C,children:(0,t.jsxs)("span",{className:"relative z-10 flex items-start gap-2",children:[(0,t.jsx)(e.icon,{className:(0,eb.cn)(_,"mt-0.5 shrink-0")}),(0,t.jsx)("span",{className:"block text-sm font-medium text-brand-gray-700 group-hover/item:text-brand-gray-900",children:e.label})]})})})},e.href))}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsxs)(n.default,{href:"/resources",className:"group/link 
1inline-flex w-full items-center justify-center gap-1.5 rounded-xl bg-gradient-to-r from-rose-50 to-pink-50 px-4 py-2 text-sm font-medium text-rose-700 transition-all duration-200 hover:from-rose-100 hover:to-pink-100",children:["View all",(0,t.jsx)(a.ArrowRight,{className:"h-3.5 w-3.5 transition-transform group-hover/link:translate-x-0.5"})]})})]})})]})]})})}),(0,t.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end lg:items-center lg:gap-x-3",children:x?(0,t.jsx)(eM.UserMenu,{user:m,userRole:p,onPostJob:w,onLogout:j}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.Button,{variant:"outline",asChild:!0,className:"rounded-xl font-medium border-border-strong text-brand-gray-700 transition-colors hover:bg-brand-blue/5 hover:text-brand-gray-900","data-testid":"nav-login",children:(0,t.jsx)(n.default,{href:"/login",children:"Sign in"})}),(0,t.jsx)(c.Button,{asChild:!0,className:"rounded-xl bg-brand-pink px-5 font-medium shadow-sm transition-all hover:bg-rose-700 hover:shadow-md","data-testid":"nav-signup",children:(0,t.jsx)(n.default,{href:"/signup",children:"Sign Up"})})]})})]}),(0,t.jsx)(eI.MobileNav,{open:u,onClose:()=>h(!1),navigation:eT.MOBILE_NAVIGATION,isLoggedIn:x,userRole:p,user:m,onLogout:j,onPostJob:w})]})}],993983)},583955,e=>{"use strict";var t=e.i(843476),a=e.i(972520),r=e.i(37727),s=e.i(522016);e.i(64107);var i=e.i(806908);e.s(["ProfileBanner",0,function({percentage:e,tip:n,onDismiss:o,variant:l="full-width"}){return(0,t.jsx)("div",{className:(0,i.cn)("bg-gradient-to-r from-brand-pink to-pink-600 text-white","contained"===l&&"mb-6 rounded-xl"),children:(0,t.jsxs)("div",{className:(0,i.cn)("flex items-center justify-between gap-x-3 px-4 py-2 text-sm sm:px-6","full-width"===l&&"mx-auto max-w-7xl"),children:[(0,t.jsx)("div",{className:"flex min-w-0 flex-1 items-center gap-2 sm:hidden",children:(0,t.jsxs)("span",{className:"font-medium",children:[(0,t.jsx)("span",{className:"font-bold tabular-nums",children:`${e}%`})," profile complete"]})}),(0,t.jsx)("div",{className:"hidden min-w-0 flex-1 sm:block",children:(0,t.jsxs)("span",{className:"font-medium",children:[(0,t.jsx)("span",{children:"Your profile is"})," ",(0,t.jsx)("span",{className:"font-bold tabular-nums",children:`${e}%`})," ",(0,t.jsx)("span",{children:"complete"}),n&&(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)("span",{children:"—"})," ",(0,t.jsx)("span",{className:"text-white/90",children:n})]})]})}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,t.jsxs)(s.default,{href:"/onboarding",className:"inline-flex items-center gap-1 rounded-full bg-white/20 px-3 py-1 text-xs font-semibold text-white transition-colors hover:bg-white/30 sm:px-4 sm:text-sm",children:["Complete Setup",(0,t.jsx)(a.ArrowRight,{className:"h-3 w-3 sm:h-3.5 sm:w-3.5"})]}),(0,t.jsx)("button",{type:"button",onClick:o,className:"shrink-0 rounded p-2 text-white/70 transition-colors hover:bg-white/20 hover:text-white hover:cursor-pointer","aria-label":"Dismiss banner",children:(0,t.jsx)(r.X,{className:"h-4 w-4"})})]})]})})}])},387508,714435,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(47405);e.i(64107);let s=[{key:"full_name",label:"Full Name",priority:"high",tip:"Add your name so employers know who you are",actionLink:"/dashboard/profile"},{key:"country",label:"Country",priority:"high",tip:"Set your country to get location-relevant job matches",actionLink:"/dashboard/profile"},{key:"job_primary",label:"Primary Role",priority:"high",tip:"Tell us your main job title for better recommendations",actionLink:"/dashboard/profile"},{key:"job_categories",label:"Job Categories",priority:"high",tip:"Select job categories you're interested in",actionLink:"/dashboard/profile"},{key:"preferred_levels",label:"Experience Level",priority:"medium",tip:"Set your experience level for better job matches",actionLink:"/dashboard/profile"},{key:"preferred_work_arrangement",label:"Work Arrangement",priority:"medium",tip:"Tell us if you prefer remote, hybrid, or onsite work",actionLink:"/dashboard/profile"},{key:"linkedin_url",label:"LinkedIn Profile",priority:"medium",tip:"Link your LinkedIn to strengthen applications",actionLink:"/dashboard/profile"},{key:"has_resume",label:"Resume",priority:"high",tip:'Click "Import Profile" to upload your resume for skill-based job matching',actionLink:"/dashboard/profile"}];function i(e,t){switch(t){case"full_name":return!!e.full_name?.trim();case"country":return!!e.country?.trim();case"job_primary":return!!e.job_primary?.trim();case"job_categories":return Array.isArray(e.job_categories)&&e.job_categories.length>0;case"preferred_levels":return Array.isArray(e.preferred_levels)&&e.preferred_levels.length>0;case"preferred_work_arrangement":return!!e.preferred_work_arrangement;case"linkedin_url":return!!e.linkedin_url?.trim();case"has_resume":return!!e.has_resume;default:return!1}}function n(e){if(!e)return{percentage:0,missingFields:s,tips:s.filter(e=>"high"===e.priority).slice(0,3),isComplete:!1};let t=[],a=[];for(let r of s)i(e,r.key)?t.push(r.key):a.push(r);let r=Math.round(t.length/s.length*100),n=a.sort((e,t)=>
1"high"===e.priority&&"high"!==t.priority?-1:+("high"!==e.priority&&"high"===t.priority)).slice(0,3);return{percentage:r,missingFields:a,tips:n,isComplete:100===r}}e.s(["calculateProfileCompletion",0,n,"hasMinimumProfile",0,function(e){return!!e&&i(e,"full_name")&&i(e,"country")&&i(e,"job_categories")}],714435);var o=e.i(583955);let l="profile-banner-dismissed-v";function d(e){return`${l}${25*Math.floor(e/25)}`}e.s(["SiteBanner",0,function({context:e,user:s,userLoading:i}){let c=(0,r.useMarketingUser)(),[u,h]=(0,a.useState)(!1),m="marketing"===e?c.user:s??null,x="marketing"===e?c.isLoading:i??!1,p="marketing"===e?c.isLoggedIn:!!s,f=m?.role==="company",g=!!(m?.onboarding_completed_at||m?.onboarding_step==="jobcopilot"),b=f||g?null:n(m),y=p&&m&&!f&&!g;if((0,a.useEffect)(()=>{if(!y||!b)return;let e=d(b.percentage);h("1"===localStorage.getItem(e))},[y,b?.percentage]),x)return null;if(y&&!u&&b){let a=b.tips[0]?.tip||"";return(0,t.jsx)(o.ProfileBanner,{percentage:b.percentage,tip:a,onDismiss:()=>{b&&([0,25,50,75].forEach(e=>{localStorage.removeItem(`${l}${e}`)}),localStorage.setItem(d(b.percentage),"1"),h(!0))},variant:"dashboard"===e?"contained":"full-width"})}return null}],387508)},141001,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(558486);var r=e.i(513793),s=e.i(611995),i=e.i(193872);let n=(0,a.createContext)(null);e.s(["DashboardUserProvider",0,function({children:e}){let[o,l]=(0,a.useState)(null),[d,c]=(0,a.useState)(!1),[u,h]=(0,a.useState)(!0),[m,x]=(0,a.useState)(null);async function p(){h(!0);try{let{user:e}=await (0,s.getCurrentUser)();l(e),c(!0),(0,i.identifyUser)(e.id,{role:e.role});let t=(0,r.getUserRoleFromCookie)();e.role&&t!==e.role?((0,r.setUserRoleCookie)(e.role),x(e.role)):x(t)}catch(e){e instanceof r.ApiError&&401===e.code&&((0,r.clearLoggedInCookie)(),c(!1),x(null),l(null))}finally{h(!1)}}return(0,a.useEffect)(()=>{let e="u">typeof document&&document.cookie.includes("logged_in=1");(c(e),x((0,r.getUserRoleFromCookie)()),e)?p():h(!1)},[]),(0,t.jsx)(n.Provider,{value:{user:o,isLoggedIn:d,isLoading:u,userRole:m,refresh:p},children:e})},"useDashboardUser",0,function(){let e=(0,a.useContext)(n);if(!e)throw Error("useDashboardUser must be used within DashboardUserProvider");return e}])},596545,e=>{"use strict";e.s(["DashboardShell",()=>q],596545);var t=e.i(843476),a=e.i(217923),r=e.i(245423),s=e.i(571930),i=e.i(63727),n=e.i(607486),o=e.i(968553),l=e.i(319897),d=e.i(531026),c=e.i(191741),u=e.i(561659),h=e.i(178583),m=e.i(227516),x=e.i(541382),p=e.i(260289),f=e.i(2157),g=e.i(292270),b=e.i(492161),y=e.i(107233),v=e.i(209912),j=e.i(239616),w=e.i(283086),k=e.i(284614),N=e.i(6
157688),C=e.i(522016),_=e.i(618566),S=e.i(271645);e.i(44476);var P=e.i(163997),E=e.i(251380);e.i(858625);var L=e.i(509237),A=e.i(475254);(0,A.default)("facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]),(0,A.default)("instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);var R=e.i(551348),T=e.i(514764),D=e.i(378021);(0,A.default)("youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]),e.i(456850),e.i(64107);var I=e.i(167881);e.i(652749);var M=e.i(71829);e.i(558486);var B=e.i(817729);e.i(285588),[...M.JOB_CATEGORIES.filter(e=>(0,B.hasCategoryLanding)(e.value)).map(e=>({name:e.label,href:(0,B.categoryLandingHref)(e.value)}))],(0,B.scheduleLandingHref)("4_day_week"),(0,B.scheduleLandingHref)("9_day_fortnight"),(0,B.scheduleLandingHref)("half_day_fridays"),(0,B.scheduleLandingHref)("4_day_week_pro_rata"),(0,B.scheduleLandingHref)("flexible_hours"),(0,B.scheduleLandingHref)("summer_fridays"),(0,B.scheduleLandingHref)("rotating_4_day"),(0,B.scheduleLandingHref)("generous_pto"),(0,B.scheduleLandingHref)("part_time"),D.Twitter,R.Linkedin,T.Send,e.i(993983),e.i(165542),e.i(583955);var O=e.i(387508);e.i(866359);var U=e.i(728231),$=e.i(141001),F=e.i(697162),z=e.i(513793),H=e.i(365466),W=e.i(149328),G=e.i(517224),Y=e.i(806908);function K({href:e,label:a,Icon:r,collapsed:s}){return s?(0,t.jsxs)(U.Tooltip,{children:[(0,t.jsx)(U.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(C.default,{href:e,"aria-label":a,className:"mx-auto flex h-10 w-10 items-center justify-center rounded-lg bg-gradient-to-br from-rose-500 to-pink-500 text-white shadow-sm transition-all duration-200 hover:from-brand-pink hover:to-pink-600 hover:shadow-md active:scale-[0.95]",children:(0,t.jsx)(r,{className:"h-4 w-4","aria-hidden":"true"})})}),(0,t.jsx)(U.TooltipContent,{side:"right",sideOffset:8,children:a})]}):(0,t.jsxs)(C.default,{href:e,className:"flex items-center justify-center gap-2 rounded-lg bg-gradient-to-r from-rose-500 to-pink-500 px-4 py-2 text-sm font-semibold text-white shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:from-brand-pink hover:to-pink-600 hover:shadow-md active:scale-[0.98]",children:[(0,t.jsx)(r,{className:"h-4 w-4","aria-hidden":"true"}),(0,t.jsx)("span",{children:a})]})}let J=[{label:"Dashboard",items:[{name:"Overview",href:"/dashboard",icon:p.LayoutDashboard},{name:"Recommendations",href:"/dashboard/recommendations",icon:w.Sparkles},{name:"Job Alerts",href:"/dashboard/job-alerts",icon:r.Bell},{name:"Search History",href:"/dashboard/search-history",icon:m.History},{name:"Analytics",href:"/dashboard/analytics",icon:a.BarChart3}]},{label:"Tools",items:[{name:"Saved Jobs",href:"/dashboard/saved",icon:s.Bookmark},{name:"Job Tracker",href:"/dashboard/job-tracker",icon:x.KanbanSquare},{name:"Headshots",href:"/dashboard/headshots",icon:o.Camera},{name:"Auto Apply",href:"/activate/jobcopilot",icon:v.Rocket}]},{label:"Account",items:[{name:"Profile",href:"/dashboard/profile",icon:k.User},{name:"Settings",href:"/dashboard/settings",icon:j.Settings},{name:"Billing",href:"/dashboard/billing",icon:u.CreditCard}]}],V=[{label:"Profile",items:[{name:"Company Profile",href:"/employer/company",icon:n.Building2}]},{label:"Recruiting",items:[{name:"Jobs",href:"/employer/jobs",icon:i.Briefcase},{name:"Applications",href:"/employer/applications",icon:h.FileText},{name:"Application Templates",href:"/employer/application-templates",icon:c.ClipboardList},{name:"Analytics",href:"/employer/analytics",icon:a.BarChart3}]},{label:"Account",items:[{name:"Settings",href:"/employer/settings",icon:j.Settings}]}];function q({children:e,initialCollapsed:a=!1}){let r=(0,_.usePathname)(),s=(0,_.useRouter)(),{user:n,isLoggedIn:o,isLoading:c,userRole:u}=(0,$.useDashboardUser)(),[h,m]=(0,S.useState)(!1),[x,p]=(0,S.useState)(a),{subscription:v,loading:j}=(0,F.useEntitlements)(),k=n?.full_name||"",A=n?.email||"",R=(0,S.useCallback)(()=>{p(e=>{let t=!e;return document.cookie=`sidebar_collapsed=${t?"1":"0"}; path=/; max-age=31536000; SameSite=Lax`,t})},[]),T=(0,S.useCallback)(async()=>{try{await (0,H.logout)()}catch{}(0,z.clearLoggedInCookie)(),(0,G.clearRememberedAnswers)(),window.location.href="/?logged_out=1"},[]);(0,S.useEffect)(()=>{c||o||s.push(`/login?redirect=${encodeURIComponent(r)}`)},[c,o,r,s.push]);let D="employer"===("company"===u?"employer":u?"job-seeker":null),M=D?V:J,B=v?.plan_slug==="pro",X=`/pro?origin=${encodeURIComponent(r||"/dashboard")}`,Q=k?k.split(/\s+/).slice(0,2).map(e=>e[0]).join("").toUpperCase():A?.[0]?.toUpperCase()||"?";return(0,t.jsxs)("div",{className:"flex min-h-screen bg-brand-blue/5","data-
1ph-mask":!0,children:[(0,t.jsx)("a",{href:"#main-content",className:"sr-only focus-visible:not-sr-only focus-visible:absolute focus-visible:top-4 focus-visible:left-4 focus-visible:z-[100] focus-visible:rounded-lg focus-visible:bg-white focus-visible:px-4 focus-visible:py-2 focus-visible:text-sm focus-visible:font-semibold focus-visible:text-brand-pink focus-visible:shadow-lg focus-visible:ring-2 focus-visible:ring-rose-500/40",children:"Skip to main content"}),(0,t.jsxs)("header",{className:"fixed inset-x-0 top-0 z-40 flex h-14 items-center justify-between bg-white px-4 shadow-[0_1px_2px_0_rgba(0,0,0,0.04)] md:hidden",children:[(0,t.jsx)(C.default,{href:"/",children:(0,t.jsx)(N.default,{src:"/logo.png",alt:"4dayweek",width:130,height:26})}),(0,t.jsx)(I.Button,{variant:"ghost",size:"icon",onClick:()=>m(!0),"aria-label":"Open navigation menu",className:"h-9 w-9 rounded-lg",children:(0,t.jsx)(b.Menu,{className:"h-5 w-5"})})]}),(0,t.jsx)(L.DashboardMobileNav,{open:h,onClose:()=>m(!1),sections:M,userName:k,userEmail:A,userInitials:Q,onLogout:T,showAutoApply:!D}),(0,t.jsx)(U.TooltipProvider,{delayDuration:150,disableHoverableContent:!0,children:(0,t.jsx)("aside",{className:(0,Y.cn)("fixed inset-y-0 left-0 z-50 hidden bg-white shadow-[1px_0_3px_0_rgba(0,0,0,0.04)] transition-[width] duration-200 ease-out motion-reduce:transition-none md:block",x?"w-16":"w-60"),"aria-label":"Sidebar navigation",children:(0,t.jsxs)("div",{className:"flex h-full flex-col",children:[(0,t.jsx)("div",{className:"flex justify-center pt-6 pb-5",children:(0,t.jsx)(C.default,{href:"/","aria-label":"4dayweek home",children:x?(0,t.jsx)("span",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-gradient-to-br from-rose-500 to-pink-500 text-sm font-bold text-white shadow-sm",children:"4"}):(0,t.jsx)(N.default,{src:"/logo.png",alt:"4dayweek",width:160,height:26})})}),(0,t.jsx)("nav",{className:(0,Y.cn)("flex-1 overflow-y-auto pb-4 transition-[padding] duration-200 motion-reduce:transition-none",x?"px-2":"px-3"),"aria-label":"Dashboard navigation","data-testid":"nav-sidebar",children:(0,t.jsx)("div",{className:"space-y-6",children:M.map(e=>(0,t.jsxs)("div",{className:"space-y-0.5",children:[e.label&&(x?(0,t.jsx)("div",{"aria-hidden":"true",className:"mx-auto mb-2 h-px w-6 bg-brand-blue/30"}):(0,t.jsx)("p",{className:"mb-1 px-3 text-xs font-semibold uppercase tracking-wider text-brand-gray-400",children:e.label})),e.items.map(e=>{var a;let s="/dashboard"===(a=e.href)||"/employer"===a?r===a:r.startsWith(a),i=e.icon,n=(0,t.jsxs)(C.default,{href:e.href,className:(0,Y.cn)("group flex items-center rounded-lg text-sm font-medium transition-all duration-150",x?"mx-auto h-10 w-10 justify-center":"gap-2.5 px-3 py-2",s?"bg-rose-50 text-rose-700":"text-brand-gray-600 hover:bg-brand-blue/5 hover:text-brand-gray-900"),"aria-current":s?"page":void 0,"aria-label":x?e.name:void 0,children:[(0,t.jsx)(i,{className:(0,Y.cn)("h-4 w-4 shrink-0 transition-colors duration-150",s?"text-rose-500":"text-brand-gray-400 group-hover:text-brand-gray-600"),"aria-hidden":"true"}),!x&&(0,t.jsx)("span",{children:e.name})]},e.href);return x?(0,t.jsxs)(U.Tooltip,{children:[(0,t.jsx)(U.TooltipTrigger,{asChild:!0,children:n}),(0,t.jsx)(U.TooltipContent,{side:"right",sideOffset:8,children:e.name})]},e.href):(0,t.jsx)("div",{children:n},e.href)})]},e.items[0]?.href))})}),(0,t.jsxs)("div",{className:(0,Y.cn)("space-y-3 pb-4 transition-[padding] duration-200 motion-reduce:transition-none",x?"px-2":"px-3"),children:[D||j||B?(0,t.jsx)(K,{href:D?"/employer/jobs/new":"/job-search",label:D?"Post a Job":"Browse Jobs",Icon:D?y.Plus:i.Briefcase,collapsed:x}):x?(0,t.jsxs)(U.Tooltip,{children:[(0,t.jsx)(U.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(C.default,{href:X,"aria-label":"Go Pro","data-testid":"dashboard-nav-try-pro",className:"mx-auto flex h-10 w-10 items-center justify-center rounded-lg bg-gradient-to-br from-rose-500 to-pink-500 text-white shadow-sm transition-all duration-200 hover:from-brand-pink hover:to-pink-600 hover:shadow-md active:scale-[0.95]",children:(0,t.jsx)(w.Sparkles,{className:"h-4 w-4","aria-hidden":"true"})})}),(0,t.jsx)(U.TooltipContent,{side:"right",sideOffset:8,children:"Go Pro"})]}):(0,t.jsxs)(C.default,{href:X,className:"flex items-center justify-center gap-2 rounded-lg bg-gradient-to-r from-rose-500 to-pink-500 px-4 py-2 text-sm font-semibold text-white shadow-sm transition-all duration-200 hover:-translate-y-0.5 hover:from-brand-pink hover:to-pink-600 hover:shadow-md active:scale-[0.98]","data-testid":"dashboard-nav-try-pro",children:[(0,t.jsx)(w.Sparkles,{className:"h-4 w-4","aria-hidden":"true"}),"Go Pro"]}),x?(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,t.jsxs)(U.Tooltip,{children:[(0,t.jsx)(U.TooltipTrigger,{asChild:!0,children:(0,t.jsx)(C.default,{href:"/dashboard/profile","aria-label":"Profile",className:"flex h-8 w-8 items-center justify-center rounded-full bg-rose-100 text-xs font-semibold text-rose-700 transition-shadow hover:shadow",children:Q})}),(0,t.jsx)(U.TooltipContent,{side:"right",sideOffset:8,"data-ph-mask":!0,children:k||A||"Profile"})]}),(0,t.jsxs)(U.Tooltip,{children:[(0,t.jsx)(U.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",onClick:T,"aria-label":"Sign out",className:"flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg text-brand-gray-400 transition-colors duration-150 hover:bg-brand-blue/5 hover:text-brand-gray-700",children:(0,t.jsx)(g.LogOut,{className:"h-4 w-4"})})}),(0,t.jsx)(U.TooltipContent,{side:"right",sideOffset:8,children:"Sign out"})]})]}):(0,t.jsx)("div",{className:"rounded-lg bg-brand-blue/5 p-2.5",children:(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-rose-100 text-xs font-semibold text-rose-700",children:Q}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[k&&(0,t.jsx)("p",{className:"truncate text-sm font-medium text-brand-gray-900",children:k}),A&&(0,t.jsx)("p",{className:"truncate text-xs text-brand-gray-600",children:A})]}),(0,t.jsx)("button",{type:"button",onClick:T,className:"flex h-8 w-8 shrink-0 cursor-pointer items-center justify-center rounded-lg text-brand-gray-400/50 transition-colors duration-150 hover:bg-brand-blue/30 hover:text-brand-gray-600","aria-label":"Sign out",title:"Sign out",children:(0,t.jsx)(g.LogOut,{className:"h-4 w-4"})})]})}),(0,t.jsxs)(U.Tooltip,{children:[(0,t.jsx)(U.TooltipTrigger,{asChild:!0,children:(0,t.jsxs)(C.default,{href:W.BUG_REPORT_HREF,onClick:()=>(0,W.prepareBugReport)(),"aria-label":x?"Report a problem":void 0,"data-testid":"dashboard-nav-report-problem",className:(0,Y.cn)("flex h-8 items-center justify-center rounded-lg text-brand-gray-400 transition-colors duration-150 hover:bg-brand-blue/5 hover:text-brand-gray-700",x?"mx-auto w-8":"w-full"),children:[(0,t.jsx)(f.LifeBuoy,{className:"h-4 w-4","aria-hidden":"true"}),!x&&(0,t.jsx)("span",{className:"ml-2 text-xs font-medium",children:"Report a problem"})]})}),x&&(0,t.jsx)(U.TooltipContent,{side:"right",sideOffset:8,children:"Report a problem"})]}),(0,t.jsxs)(U.Tooltip,{children:[(0,t.jsx)(U.TooltipTrigger,{asChild:!0,children:(0,t.jsx)("button",{type:"button",onClick:R,"aria-label":x?"Expand sidebar":"Collapse sidebar","aria-expanded":!x,"aria-controls":"main-content","data-testid":"sidebar-collapse-toggle",className:(0,Y.cn)("flex h-8 cursor-pointer items-center justify-center rounded-lg text-brand-gray-400 transition-colors duration-150 hover:bg-brand-blue/5 hover:text-brand-gray-700",x?"mx-auto w-8":"w-full"),children:x?(0,t.jsx)(d.
1ChevronsRight,{className:"h-4 w-4","aria-hidden":"true"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.ChevronsLeft,{className:"h-4 w-4","aria-hidden":"true"}),(0,t.jsx)("span",{className:"ml-2 text-xs font-medium",children:"Collapse"})]})})}),x&&(0,t.jsx)(U.TooltipContent,{side:"right",sideOffset:8,children:"Expand sidebar"})]})]})]})})}),(0,t.jsx)("main",{id:"main-content",tabIndex:-1,className:(0,Y.cn)("flex-1 min-w-0 pt-14 transition-[margin] duration-200 ease-out motion-reduce:transition-none md:pt-0","has-[[data-dashboard-fullheight]]:h-svh has-[[data-dashboard-fullheight]]:overflow-hidden",x?"md:ml-16":"md:ml-60 xl:ml-72"),children:(0,t.jsx)("div",{className:(0,Y.cn)("min-h-screen px-6 py-8","has-[[data-dashboard-fullheight]]:flex has-[[data-dashboard-fullheight]]:h-full has-[[data-dashboard-fullheight]]:min-h-0 has-[[data-dashboard-fullheight]]:flex-col"),children:(0,t.jsxs)("div",{className:(0,Y.cn)("max-w-5xl has-[[data-dashboard-fullwidth]]:max-w-none","has-[[data-dashboard-fullheight]]:flex has-[[data-dashboard-fullheight]]:h-full has-[[data-dashboard-fullheight]]:min-h-0 has-[[data-dashboard-fullheight]]:flex-col"),children:[(0,t.jsx)(O.SiteBanner,{context:"dashboard",user:n,userLoading:c}),(0,t.jsx)(P.PastDueBanner,{className:"mb-6"}),(0,t.jsx)(E.PausedBanner,{className:"mb-6"}),e]})})})]})}},747136,e=>{"use strict";var t=e.i(843476);e.i(64107);var a=e.i(806908);e.s(["DashboardActivitySkeleton",0,function({className:e}){return(0,t.jsx)("div",{className:(0,a.cn)("space-y-4",e),role:"status","aria-label":"Loading",children:Array.from({length:4}).map((e,a)=>(0,t.jsxs)("div",{className:"flex animate-pulse items-start gap-3",children:[(0,t.jsx)("div",{className:"h-8 w-8 rounded-full bg-brand-blue/30"}),(0,t.jsxs)("div",{className:"flex-1 space-y-2 pt-1",children:[(0,t.jsx)("div",{className:"h-4 w-3/4 rounded bg-brand-blue/30"}),(0,t.jsx)("div",{className:"h-3 w-1/4 rounded bg-brand-blue/30"})]})]},a))})},"DashboardCardSkeleton",0,function({className:e}){return(0,t.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-2xl border bg-white p-6",e),role:"status","aria-label":"Loading",children:(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("div",{className:"h-5 w-1/3 rounded bg-brand-blue/30"}),(0,t.jsx)("div",{className:"h-4 w-2/3 rounded bg-brand-blue/30"}),(0,t.jsxs)("div",{className:"mt-4 space-y-2",children:[(0,t.jsx)("div",{className:"h-3 w-full rounded bg-brand-blue/30"}),(0,t.jsx)("div",{className:"h-3 w-5/6 rounded bg-brand-blue/30"}),(0,t.jsx)("div",{className:"h-3 w-4/6 rounded bg-brand-blue/30"})]})]})})},"DashboardListSkeleton",0,function({count:e=3,className:r}){return(0,t.jsx)("div",{className:(0,a.cn)("space-y-3",r),role:"status","aria-label":"Loading",children:Array.from({length:e}).map((e,a)=>(0,t.jsx)("div",{className:"animate-pulse rounded-xl border bg-white p-4",children:(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"h-10 w-10 rounded-lg bg-brand-blue/30"}),(0,t.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,t.jsx)("div",{className:"h-4 w-1/2 roun
1ded bg-brand-blue/30"}),(0,t.jsx)("div",{className:"h-3 w-1/3 rounded bg-brand-blue/30"})]}),(0,t.jsx)("div",{className:"h-6 w-16 rounded-full bg-brand-blue/30"})]})},a))})},"DashboardStatSkeleton",0,function({className:e}){return(0,t.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-2xl border bg-white p-6",e),role:"status","aria-label":"Loading",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("div",{className:"h-4 w-20 rounded bg-brand-blue/30"}),(0,t.jsx)("div",{className:"h-8 w-16 rounded bg-brand-blue/30"})]}),(0,t.jsx)("div",{className:"h-11 w-11 rounded-xl bg-brand-blue/30"})]})})}])},635408,e=>{"use strict";let t=(0,e.i(475254).default)("trending-down",[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]]);e.s(["TrendingDown",0,t],635408)},731535,375201,356917,636630,e=>{"use strict";var t=e.i(843476),a=e.i(63727),r=e.i(607486),s=e.i(643531),i=e.i(694351),n=e.i(346897),o=e.i(299023),l=e.i(37727),d=e.i(657688),c=e.i(522016),u=e.i(351314);e.i(64107);var h=e.i(806908),m=e.i(182547);function x(e){let t=[];return p(e)&&t.push("Matches your role"),"exact"===e.level_match?t.push("Your level"):"adjacent"===e.level_match&&t.push("Near your level"),e.category_match&&t.push("In your field"),e.location_match&&t.push("Open where you live"),e.fresh&&t.push("Posted this week"),t}function p(e){return e.title_words>0&&2*e.title_hits>=e.title_words}function f(e){return e>=g?"bg-emerald-200 text-emerald-700":e>=50?"bg-amber-200 text-amber-700":"bg-brand-gray-100 text-brand-gray-600"}let g=70;e.s(["BEST_MATCH_SCORE",0,g,"fitScoreTone",0,f,"matchReasons",0,x,"titleMatched",0,p],375201);let b={sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"},y={sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6"};function v({logoUrl:e,companyName:r,size:s="lg",className:i}){let n={sm:32,md:40,lg:48};if(e)return(0,t.jsx)("div",{className:(0,h.cn)("relative overflow-hidden rounded-lg bg-white border border-border-subtle shrink-0",b[s],i),children:(0,t.jsx)(d.default,{src:e,alt:r||"Company",width:n[s],height:n[s],className:"object-contain"})});if(r){let e=r.split(/\s+/).slice(0,2).map(e=>e[0]).join("").toUpperCase();return(0,t.jsx)("div",{className:(0,h.cn)(b[s],"flex shrink-0 items-center justify-center rounded-lg bg-brand-gray-100 font-semibold text-brand-gray-600",{sm:"text-xs",md:"text-sm",lg:"text-base"}[s],i),children:e})}return(0,t.jsx)("div",{className:(0,h.cn)(b[s],"flex shrink-0 items-center justify-center rounded-lg bg-brand-gray-100",i),children:(0,t.jsx)(a.Briefcase,{className:(0,h.cn)(y[s],"text-brand-gray-400")})})}let j={remote:i.Home,hybrid:r.Building2,onsite:n.MapPin};function w({job:e,className:a}){let r=(0,m.getLocationBadgeInfo)(e),s=j[r.type]||n.MapPin;return(0,t.jsxs)("div",{className:(0,h.cn)("flex items-center gap-1 text-sm text-muted-foreground",a),children:[(0,t.jsx)(s,{className:"h-3 w-3 shrink-0"}),(0,t.jsx)("span",{className:"line-clamp-1",children:r.label})]})}function k({breakdown:e}){let a=[{label:"Category",match:e.category_match}];if(e.level_match&&a.push({label:"Level",match:"exact"===e.level_match,partial:"adjacent"===e.level_match||"unspecified"===e.level_match,detail:"unspecified"===e.level_match?"not stated":void 0}),a.push({label:"Location",match:e.location_match}),e.title_words>0){let t=p(e);a.push({label:"Role title",match:t,partial:!t&&e.title_hits>0,detail:`${e.title_hits} of ${e.title_words} ${1===e.title_words?"word":"words"}`})}return a.push({label:"Posted this week",match:e.fresh}),(0,t.jsxs)("div",{className:"space-y-1.5 text-xs",children:[(0,t.jsx)("p",{className:"font-semibold text-brand-gray-900",children:"Why this matches"}),a.map(e=>(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[e.match?(0,t.jsx)(s.Check,{className:"h-3 w-3 text-emerald-600 shrink-0","aria-hidden":"true"}):e.partial?(0,t.jsx)(o.Minus,{className:"h-3 w-3 text-amber-500 shrink-0","aria-hidden":"true"}):(0,t.jsx)(l.X,{className:"h-3 w-3 text-brand-gray-300 shrink-0","aria-hidden":"true"}),(0,t.jsx)("span",{className:"sr-only",children:e.match?"Matched:":e.partial?"Close:":"No match:"}),(0,t.jsx)("span",{className:e.match||e.partial?"text-brand-gray-700":"text-brand-gray-400",children:`${e.label}${e.detail?` (${e.detail})`:e.partial?" (close)":""}`})]},e.label))]})}e.s(["JobFitBreakdownTooltip",0,k,"JobLocationText",0,w,"JobLogo",0,v],731535);var N=e.i(270756),C=e.i(283086),_=e.i(728231),S=e.i(63112),P=e.i(618566),E=e.i(474419);function L({job:e,surface:t,onOpen:a}){let r=(0,P.usePathname)(),s=(0,P.useSearchParams)(),i=s?.toString(),n=i?`${r}?${i}`:r??"/job-search";
1return(0,E.proUpsellLinkProps)({surface:t,trigger:"locked_job",origin:n,job:e,onOpen:a})}e.s(["useLockedJobLink",0,L],356917);var A=e.i(364059),R=e.i(193872);function T(e,t){return{surface:e.surface,position:e.position,fit_score:e.fitScore,scored:null!==e.fitScore,locked:e.locked,job_id:t}}let D=new Set;function I(e,t){let a=`${t.surface}:${e.job.id}`;D.has(a)||(D.add(a),(0,R.track)("recommendation_impression",T(t,e.job.id)))}function M(e,t){(0,R.track)("recommendation_click",T(t,e.job.id))}var B=e.i(575482);let O="ph-no-capture block rounded-2xl focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-pink focus-visible:ring-offset-2";function U({match:e,surface:a,position:r,featured:s}){let{job:i}=e,n=(0,S.useImpression)(()=>I(e,{surface:a,position:r,fitScore:e.fit_score,locked:!1}));return(0,t.jsx)(c.default,{ref:n,href:`/job/${i.slug}`,onClick:()=>M(e,{surface:a,position:r,fitScore:e.fit_score,locked:!1}),className:O,"data-testid":"card-match",children:(0,t.jsx)(F,{match:e,featured:s,logo:(0,t.jsx)(v,{logoUrl:i.company?.logo_url??i.company_logo,companyName:i.company?.name||i.company_name,size:"lg"}),company:i.company?.name||i.company_name||"Company"})})}function $({match:e,surface:a,position:r,featured:s}){let{job:i}=e,n={surface:a,trigger:"locked_job",job_id:i.id,logged_in:(0,A.isLoggedInClient)()},o=(0,S.useImpression)(()=>{I(e,{surface:a,position:r,fitScore:e.fit_score,locked:!0}),(0,A.trackPaywallImpression)(n)}),{href:l,onClick:d}=L({job:i,surface:a,onOpen:()=>M(e,{surface:a,position:r,fitScore:e.fit_score,locked:!0})});return(0,t.jsx)(c.default,{ref:o,href:l,prefetch:!1,onClick:d,"aria-haspopup":"dialog",className:O,"data-testid":"card-match-locked",children:(0,t.jsx)(F,{match:e,featured:s,announce:"Locked job. Opens the Pro upsell dialog.",logo:(0,t.jsx)("div",{className:"flex h-12 w-12 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)(N.Lock,{className:"h-5 w-5"})}),company:(0,t.jsx)("span",{className:"italic",children:"Company hidden · Pro only"}),footer:(0,t.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full bg-zinc-900 px-3 py-1 text-xs font-semibold text-white shadow-sm",children:[(0,t.jsx)(N.Lock,{className:"h-3 w-3"}),(0,t.jsx)("span",{children:"Unlock with Pro"})]})})})}function F({match:e,featured:a,logo:r,company:s,footer:i,announce:n}){let{job:o,fit_score:l}=e,d=x(e.fit_breakdown),c=d.slice(0,2);return(0,t.jsxs)(B.DashboardCard,{interactive:!0,variant:a?"gradient":"default",className:"group h-full overflow-hidden",children:[n?(0,t.jsx)("span",{className:"sr-only",children:n}):null,(0,t.jsxs)(B.DashboardCardHeader,{children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[r,null!==l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"sr-only",children:`Fit score ${l} percent${d.length>0?`: ${d.join(", ")}`:""}.`}),(0,t.jsxs)(_.Tooltip,{children:[(0,t.jsx)(_.TooltipTrigger,{asChild:!0,children:(0,t.jsxs)("div",{"aria-hidden":"true",className:(0,h.cn)("flex items-center gap-1.5 rounded-full px-3 py-1 text-sm font-semibold",f(l)),"data-testid":"match-score",children:[(0,t.jsx)(C.Sparkles,{className:"h-3.5 w-3.5"}),(0,t.jsx)("span",{children:`${l}%`})]})}),(0,t.jsx)(_.TooltipContent,{side:"bottom",className:"p-3",children:(0,t.jsx)(k,{breakdown:e.fit_breakdown})})]})]}):null]}),(0,t.jsxs)("div",{className:"mt-3",children:[(0,t.jsx)(B.DashboardCardTitle,{className:"line-clamp-2 transition-colors group-hover:text-brand-pink",children:o.title}),(0,t.jsx)(B.DashboardCardDescription,{className:"mt-1",children:s})]})]}),(0,t.jsxs)(B.DashboardCardContent,{className:"space-y-2",children:[(0,t.jsx)(w,{job:o}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,t.jsx)(u.ScheduleTag,{job:o,company:o.company??void 0,size:"sm"}),(0,t.jsx)(u.SalaryTag,{job:o,size:"sm"})]}),null===l&&c.length>0&&(0,t.jsx)("p",{className:"text-xs text-muted-foreground","data-testid":"match-reasons",children:c.join(" · ")}),i]})]})}e.s(["MatchCard",0,function(e){return e.match.job.locked?(0,t.jsx)($,{...e}):(0,t.jsx)(U,{...e})}],636630)},858625,624927,e=>{"use strict";e.s([],858625);var t=e.i(575482);e.i(719741),e.i(221784),e.i(509237),e.i(845933),e.i(223350),e.i(890042),e.i(596545),e.i(747136);var a=e.i(843476),r=e.i(635408),s=e.i(25652);e.i(64107);var i=e.i(806908);e.s(["DashboardStat",0,function({icon:e,value:n,label:o,trend:l,iconClassName:d,className:c,"data-testid":u}){let h=0===n||"0"===n||"0%"===n;return(0,a.jsx)(t.DashboardCard,{className:(0,i.cn)("p-6",c),"data-testid":u,children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-muted-foreground",children:o}),(0,a.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,a.jsx)("p",{className:(0,i.cn)("font-display text-3xl font-bold",h?"text-brand-gray-600":"text-brand-gray-900"),children:n}),l&&(0,a.jsxs)("span",{className:(0,i.cn)("flex items-center text-xs font-medium","up"===l.direction&&"text-emerald-600","down"===l.direction&&"text-red-600","neutral"===l.direction&&"text-brand-gray-600"),children:["up"===l.direction&&(0,a.jsx)(s.TrendingUp,{className:"mr-0.5 h-3 w-3"}),"down"===l.direction&&(0,a.jsx)(r.TrendingDown,{className:"mr-0.5 h-3 w-3"}),"neutral"!==l.direction&&(0,a.jsx)("span",{children:`${l.value}%`})]})]})]}),(0,a.jsx)("div",{className:(0,i.cn)("rounded-xl p-3 transition-colors",d||"bg-rose-200"),children:(0,a.jsx)(e,{className:(0,i.cn)("h-5 w-5",!d&&"text-brand-pink")})})]})})}],624927),e.i(731535),e.i(636630)},497091,e=>{"use strict";var t=e.i(699354);let a=[{slug:t.PRODUCT_AUTO_APPLY_PACK_20,credits:20,price:29},{slug:t.PRODUCT_AUTO_APPLY_PACK_50,credits:50,price:49,bestValue:!0},{slug:t.PRODUCT_AUTO_APPLY_PACK_100,credits:100,price:89}],r={slug:t.PRODUCT_AUTO_APPLY_PACK_50,credits:50,price:49,bestValue:!0};function s(e){return`$${e.price}`}e.s(["AUTO_APPLY_PACKS",0,a,"FEATURED_AUTO_APPLY_PACK",0,r,"packCtaLabel",0,function(e){return`Buy ${e.credits} credits — ${s(e)}`},"packPrice",0,s,"perApplicationPrice",0,function(e){return`$${(e.price/e.credits).toFixed(2)}`}])},795702,e=>{"use strict";e.s(["CreditPacksCard",()=>h]);var t=e.i(247167),a=e.i(843476),r=e.i(643531),s=e.i(531278),i=e.i(39312);e.i(858625);var n=e.i(575482),o=e.i(167881),l=e.i(182534),d=e.i(697162),c=e.i(497091),u=e.i(699354);function h(){let e="true"===t.default.env.NEXT_PUBLIC_QUICK_APPLY_ENABLED,{remaining:r,has:s,loading:o}=(0,d.useEntitlements)(),{startCheckout:h,loadingSlug:x}=(0,l.useCheckout)();if(!e)return null;let p=r(u.SLUG_AUTO_APPLY_CREDITS),f=s(u.SLUG_PACK_DISCOUNT_10);return(0,a.jsxs)(n.DashboardCard,{"data-testid":"card-credit-packs",id:"credit-packs",children:[(0,a.jsxs)(n.DashboardCardHeader,{children:[(0,a.jsxs)(n.DashboardCardTitle,{className:"flex items-center gap-2",children:[(0,a.jsx)(i.Zap,{className:"h-4 w-4 text-brand-pink"}),"Auto-apply credits"]}),(0,a.jsxs)(n.DashboardCardDescription,{children:[(0,a.jsx)("span",{children:"Each credit submits one application on your behalf with Quick Apply. Credits never expire."}),!o&&(0,a.jsxs)("span",{children:[" ","You have ",(0,a.jsx)("span",{className:"font-semibold text-foreground",children:p}),"."]})]})]}),(0,a.jsxs)(n.DashboardCardContent,{children:[(0,a.jsx)("div",{className:"grid gap-3 sm:grid-cols-3",children:c.AUTO_APPLY_PACKS.map(e=>(0,a.jsx)(m,{pack:e,loading:x===e.slug,disabled:null!==x,onBuy:()=>h(e.slug,{origin:"billing"})},e.slug))}),f&&(0,a.jsx)("p",{className:"mt-3 text-xs text-muted-foreground",children:"Your Pro 10% discount is applied automatically at checkout."})]})]})}function m({pack:e,loading:t,disabled:i,onBuy:n}){return(0,a.jsxs)("div",{className:`relative flex flex-col rounded-xl border p-4 ${e.bestValue?"border-brand-pink ring-1 ring-brand-pink/30":"border-border"}`,"data-testid":`credit-pack-${e.credits}`,children:[e.bestValue&&(0,a.jsx)("span",{className:"absolute -top-2 right-3 rounded-full bg-brand-pink px-2 py-0.5 text-xs font-semibold text-white",children:"Most popular"}),(0,a.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,a.jsx)("span",{className:"text-2xl font-bold",children:e.credits}),(0,a.jsx)("span",{className:"text-sm text-muted-foreground",children:"credits"})]}),(0,a.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:`${(0,c.packPrice)(e)} \xb7 ${(0,c.perApplicationPrice)(e)} per application`}),(0,a.jsxs)("ul",{className:"mt-3 mb-4 space-y-1 text-xs text-muted-foreground",children:[(0,a.jsxs)("li",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(r.Check,{className:"h-3 w-3 text-emerald-500"})," ",(0,a.jsx)("span",{children:`${e.credits} applications`})]}),(0,a.jsxs)("li",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(r.Check,{className:"h-3 w-3 text-emerald-500"})," Never expire"]})]}),(0,a.jsx)(o.Button,{type:"button",onClick:n,disabled:i,className:"mt-auto w-full rounded-lg bg-brand-pink hover:bg-rose-700",children:t?(0,a.jsx)(s.Loader2,{className:"h-4 w-4 animate-spin"}):(0,c.packCtaLabel)(e)})]})}}]);
2
3//# chunkId=6c374bdc-b043-5a33-8f32-c113fc9b6967

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.