PageSourceSearch

https://4dayweek.io/_next/static/chunks/1g0whhvik3i-x.js?dpl=19331a6d-1790690377

js 4dayweek.io collected 2026-10-02 06:13:40 UTC 18,245 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]="60a48f47-da5a-5796-a0a3-240cf75d715c")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,23750,e=>{"use strict";var t=e.i(843476);e.i(64107);var a=e.i(806908);e.s(["Input",0,function({className:e,type:r,...i}){return(0,t.jsx)("input",{type:r,"data-slot":"input",className:(0,a.cn)("h-10 w-full min-w-0 rounded-lg border bg-white px-3 py-2 text-base shadow-sm transition-all outline-none md:text-sm","placeholder:text-brand-gray-400","hover:border-border-strong","focus-visible:border-rose-300 focus-visible:ring-2 focus-visible:ring-rose-100","disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-slate-50 disabled:text-brand-gray-600 disabled:opacity-70","aria-invalid:border-red-300 aria-invalid:ring-2 aria-invalid:ring-red-100","file:text-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium",e),...i})}])},221678,862311,e=>{"use strict";var t=e.i(843476),a=e.i(595468),r=e.i(531278),i=e.i(37727),n=e.i(39312),s=e.i(618566),o=e.i(271645),l=e.i(846696),c=e.i(167881),d=e.i(630374),u=e.i(23750),m=e.i(697162),p=e.i(513793);async function h(e){return(0,p.apiFetch)(`/api/jobs/${e}/apply-form`,{cache:"no-store"})}async function f(e){return(0,p.apiFetch)(`/api/jobs/${e}/apply-form/ai-answers`,{cache:"no-store"})}async function g(e,t,a,r){return(0,p.apiFetch)(`/api/jobs/${e}/quick-apply`,{method:"POST",body:JSON.stringify({answers:t,multi_answers:a,demographic:r})})}async function x(){return(0,p.apiFetch)("/api/quick-apply/active",{cache:"no-store"})}async function b(e,t){return(0,p.apiFetch)(`/api/quick-apply/${e}/otp`,{method:"POST",body:JSON.stringify({code:t})})}async function y(e){return(0,p.apiFetch)(`/api/quick-apply/${e}`,{cache:"no-store"})}e.s(["getActiveQuickApplies",0,x,"getApplyForm",0,h,"getApplyFormAIAnswers",0,f,"getQuickApplyStatus",0,y,"quickApplyOTP",0,b,"quickApplySubmit",0,g],862311);let w=(0,o.createContext)({start:()=>{},attempts:[]}),v="fdw_quick_apply_active";function j(e){try{e>0?window.localStorage.setItem(v,"1"):window.localStorage.removeItem(v)}catch{}}function k({attempt:e,onOpenOtp:n,onDone:c}){let d=(0,s.useRouter)(),[u,m]=(0,o.useState)("applying"),[h,f]=(0,o.useState)(!1),g=(0,o.useRef)(!1),x=(0,o.useRef)(!1),b=(0,o.useRef)(e.rehydratedAwaiting?0:null);return(0,o.useEffect)(()=>{let e=setTimeout(()=>f(!0),3e5);return()=>clearTimeout(e)},[]),(0,o.useEffect)(()=>{let t,a=!1,r=()=>{x.current=!0,m("done"),setTimeout(()=>c(e.id),400)},i=async()=>{try{let s=await y(e.id);if(a||x.current)return;if("succeeded"===s.outcome){l.toast.success(`Applied to ${e.companyName}`,{description:e.jobTitle,action:{label:"Job Tracker",onClick:()=>d.push("/dashboard/job-tracker")}}),r();return}if("blocked"===s.outcome||"failed"===s.outcome){"at_capacity"===s.detail?(0,l.toast)(`We're busy right now — couldn't start ${e.companyName}`,{description:"No credit was used. Please try again in a few minutes."}):(0,l.toast)(`Couldn't auto-apply to ${e.companyName}`,{description:"No credit was used — you can finish on the company site.",action:s.fallback_url?{label:"Apply on site",onClick:()=>window.open(s.fallback_url,"_blank","noopener,noreferrer")}:void 0}),r();return}"awaiting_otp"===s.outcome?(null===b.current&&(b.current=Date.now()),e.relayUsed&&Date.now()-b.current<25e3&&!g.current?m("auto_verifying"):(m("needs_code"),g.current||(g.current=!0,l.toast.info(`Enter your verification code for ${e.companyName}`,{action:{label:"Enter code",onClick:()=>n(e)},duration:1e4})))):m("applying"),t=setTimeout(i,2500)}catch(e){if(e instanceof p.ApiError&&401===e.code)return void d.push("/login");if(e instanceof p.ApiError&&404===e.code)return void r();t=setTimeout(i,5e3)}};return t=setTimeout(i,1200),()=>{a=!0,clearTimeout(t)}},[e,c,n,d]),(0,t.jsxs)("div",{role:"status",className:"flex items-center gap-3 rounded-xl border border-slate-200 bg-white px-4 py-3 shadow-lg shadow-slate-200/60",children:["done"===u?(0,t.jsx)(a.CheckCircle2,{"aria-hidden":!0,
1className:"h-5 w-5 shrink-0 text-emerald-500"}):(0,t.jsx)(r.Loader2,{"aria-hidden":!0,className:"h-5 w-5 shrink-0 animate-spin text-brand-pink"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"truncate text-sm font-medium text-slate-900",title:e.jobTitle,children:e.companyName}),(0,t.jsx)("p",{className:"truncate text-xs text-slate-500",children:"done"===u?"Application sent":"auto_verifying"===u?"Confirming your email automatically…":"needs_code"===u?h?"Still waiting — you can apply on the company site":"Waiting for your code…":h?"Still working — taking longer than usual…":"Applying for you…"})]}),"needs_code"===u&&(0,t.jsx)("button",{type:"button",onClick:()=>n(e),className:"shrink-0 rounded-lg bg-brand-pink px-3 py-1 text-xs font-semibold text-white hover:bg-rose-700",children:"Enter code"}),h&&("applying"===u||"needs_code"===u)&&(0,t.jsx)("button",{type:"button",onClick:()=>c(e.id),"aria-label":"Dismiss",className:"shrink-0 rounded p-1 text-slate-400 hover:text-slate-600",children:(0,t.jsx)(i.X,{"aria-hidden":!0,className:"h-4 w-4"})})]})}function N({attempt:e,onClose:a}){let l=(0,s.useRouter)(),[m,h]=(0,o.useState)(""),[f,g]=(0,o.useState)(!1),[x,y]=(0,o.useState)(""),w=async t=>{t.preventDefault(),g(!0),y("");try{await b(e.id,m.trim()),a()}catch(e){if(e instanceof p.ApiError&&401===e.code)return void l.push("/login");if(e instanceof p.ApiError&&"NOT_AWAITING_OTP"===e.errorCode)return void a();y("That code didn't work. Please check your email and try again."),g(!1)}};return(0,t.jsx)(d.Dialog,{open:!0,onOpenChange:e=>!e&&a(),children:(0,t.jsx)(d.DialogContent,{className:"w-full max-w-md",children:(0,t.jsxs)("form",{onSubmit:w,className:"space-y-5",children:[(0,t.jsxs)(d.DialogHeader,{children:[(0,t.jsxs)(d.DialogTitle,{className:"flex items-center gap-2 font-display",children:[(0,t.jsx)(n.Zap,{className:"h-5 w-5 text-brand-pink"}),"Verify it's you"]}),(0,t.jsx)(d.DialogDescription,{children:e.relayUsed?`We tried to confirm this automatically. To finish, paste the code from the ${e.companyName} email we forwarded to your inbox.`:`${e.companyName}'s application system emailed you a verification code. Paste it below to finish your application.`})]}),x&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:x}),(0,t.jsx)(u.Input,{autoFocus:!0,value:m,onChange:e=>h(e.target.value),placeholder:"Verification code","aria-label":"Verification code",autoComplete:"one-time-code",maxLength:16,className:"text-center text-lg tracking-widest"}),(0,t.jsx)(c.Button,{type:"submit",disabled:f||!m.trim(),className:"h-11 w-full rounded-xl bg-brand-pink hover:bg-rose-700",children:f?(0,t.jsx)(r.Loa
1der2,{className:"h-4 w-4 animate-spin"}):"Verify & submit"}),(0,t.jsxs)("button",{type:"button",onClick:a,className:"flex w-full items-center justify-center gap-1 text-xs text-slate-400 hover:text-slate-600",children:[(0,t.jsx)(i.X,{className:"h-3 w-3"}),"I'll do this later"]})]})})})}e.s(["QuickApplyProvider",0,function({children:e}){let[a,r]=(0,o.useState)([]),[i,n]=(0,o.useState)(null),{refresh:s}=(0,m.useEntitlements)(),l=(0,o.useCallback)(e=>{r(t=>{let a=[...t.filter(t=>t.id!==e.id),e];return j(a.length),a})},[]),c=(0,o.useCallback)(e=>{r(t=>{let a=t.filter(t=>t.id!==e);return j(a.length),a}),s()},[s]);return(0,o.useEffect)(()=>{if(!function(){try{return"1"===window.localStorage.getItem(v)}catch{return!1}}())return;let e=!1;return(async()=>{try{let t=await x();if(e)return;let a=t.attempts.map(e=>({id:e.id,jobId:e.job_id,companyName:e.company_name,jobTitle:e.job_title,relayUsed:e.relay_email_used,rehydratedAwaiting:"awaiting_otp"===e.state}));j(a.length),a.length>0&&r(e=>[...a.filter(t=>!e.some(e=>e.id===t.id)),...e])}catch{j(0)}})(),()=>{e=!0}},[]),(0,t.jsxs)(w.Provider,{value:{start:l,attempts:a},children:[e,a.length>0&&(0,t.jsx)("div",{"aria-live":"polite",className:"fixed bottom-24 right-4 z-50 flex w-72 flex-col gap-2 lg:bottom-4",children:a.map(e=>(0,t.jsx)(k,{attempt:e,onOpenOtp:n,onDone:c},e.id))}),i&&(0,t.jsx)(N,{attempt:i,onClose:()=>n(null)})]})},"useQuickApply",0,function(){return(0,o.useContext)(w)}],221678)},158795,e=>{"use strict";var t=e.i(567754);e.s(["redirectToGoogleAuth",0,function(e={}){try{if(e.claimCompanyId&&sessionStorage.setItem("claim_company_id",e.claimCompanyId),e.redirect){let a=(0,t.toStorableRedirect)(e.redirect);a&&sessionStorage.setItem("post_onboarding_redirect",a)}}catch{}let a=new URLSearchParams;e.loginHint&&a.set("login_hint",e.loginHint),e.prompt&&a.set("prompt",e.prompt);let r=a.toString();window.location.href=`/api/auth/google/start${r?`?${r}`:""}`}])},918008,e=>{"use strict";var t=e.i(618566),a=e.i(271645),r=e.i(846696);e.s(["LogoutToast",0,function(){let e=(0,t.useSearchParams)(),i=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if(i.current||"1"!==e.get("logged_out"))return;i.current=!0,r.toast.success("You've been signed out. See you next time!");let t=new URL(window.location.href);t.searchParams.delete("logged_out"),window.history.replaceState({},"",t.pathname+t.search)},[e]),null}])},630253,e=>{"use strict";var t=e.i(843476),a=e.i(326999),r=e.i(972520),i=e.i(263488),n=e.i(37727),s=e.i(618566),o=e.i(271645),l=e.i(167881),c=e.i(630374),d=e.i(23750),u=e.i(419060),m=e.i(193872);let p=["jobs","remote","flexible","part-time","fortnight","friday"];function h(e){if("/jobs"===e||e.startsWith("/jobs/"))return"job-list";if(e.startsWith("/job/"))return"job-detail";if(e.startsWith("/company/"))return"company";if(e.startsWith("/companies"))return"job-list";if(e.match(/^\/[^/]+\/[^/]+$/)&&!e.startsWith("/job/")&&!e.startsWith("/company/"))return"article";let t=e.slice(1);return!t.includes("/")&&p.some(e=>t.includes(e))?"landing":"general"}function f(e){(0,m.track)("signup_prompt_submitted",{...e})}let g="signupPromptShown",x="signupPromptDismissedUntil";e.i(64107);var b=e.i(158795),y=e.i(285588);let w={"job-list":{headline:"Want a 4-day work week?",subtext:"Get weekly alerts for 4-day week jobs delivered to your inbox. 32 hours, 100% pay."},"job-detail":{headline:"Like this role?",subtext:"Sign up to save jobs and get alerts when similar roles are posted. It's free."},company:{headline:"Want to work here?",subtext:"Create a free account to get notified when this company posts new 4-day week roles."},article:{headline:"Want a 4-day work week?",subtext:"Join thousands of professionals getting weekly alerts for 4-day week jobs. 32 hours, 100% pay."},landing:{headline:"Want a 4-day work week?",subtext:"Get matched with roles like these, delivered to your inbox every week. Free forever."},general:{headline:"Want a 4-day work week?",subtext:"Get weekly alerts for 4-day week jobs. 32 hours at 100% pay — delivered to your inbox."}},v=[{src:"/images/avatars/user-1.jpg",alt:"Job seeker"},{src:"/images/avatars/user-2.jpg",alt:"Job seeker"},{src:"/images/avatars/user-3.jpg",alt:"Job seeker"},{src:"/images/avatars/user-4.jpg",alt:"Job seeker"}];e.s(["SignupPromptModal",0,function(){let e=(0,s.usePathname)(),[p,j]=(0,o.useState)(!1),[k,N]=(0,o.useState)(""),_=(0,o.useRef)(!1),S=(0,o.useRef)(0),C=(0,o.useRef)(e);(0,o.useEffect)(()=>{C.current=e},[e]);let T=(0,o.useCallback)(e=>{var t;if(_.current||document.querySelector('[role="dialog"][data-state="open"]')||document.querySelector('[data-paywall-active="true"]'))return;_.current=!0;try{sessionStorage.setItem(g,"true")}catch{}let a=C.current;t={context:h(a),pathname:a,trigger:e},(0,m.track)("signup_prompt_shown",{...t}),j(!0)},[]);(0,o.useEffect)(()=>{let e=()=>j(!1);return window.addEventListener(u.PRO_UPSELL_OPENED_EVENT,e),()=>window.removeEventListener(u.PRO_UPSELL_OPENED_EVENT,e)},[]),(0,o.useEffect)(()=>
1{if(document.cookie.includes("logged_in=1"))return;try{if("true"===sessionStorage.getItem(g))return}catch{}let e=function(){try{let e=window.localStorage.getItem(x);if(!e)return null;let t=Number.parseInt(e,10);return Number.isFinite(t)?t:null}catch{return null}}();if(null!==e&&e>Date.now())return;let t=()=>{},a=setTimeout(()=>{if(_.current)return;let e=setTimeout(()=>{T("time")},7e3),a=!1,r=window.scrollY,i=performance.now(),n="u">typeof navigator&&navigator.maxTouchPoints>0,s=()=>{_.current||a||(a=!0,S.current=requestAnimationFrame(()=>{if(a=!1,_.current)return;let e=window.scrollY,t=performance.now(),s=document.documentElement.scrollHeight-window.innerHeight;if(s>0&&e/s>=.3)return void T("scroll");if(n&&e<300){let a=(t-i)/1e3;if((a>0?(e-r)/a:0)<-800)return void T("scroll_reversal")}r=e,i=t}))},o=e=>{e.clientY<=10&&null===e.relatedTarget&&T("exit_intent")},l=!1,c=()=>{document.hidden?l=!0:l&&T("tab_return")};window.addEventListener("scroll",s,{passive:!0}),document.addEventListener("mouseleave",o),document.addEventListener("visibilitychange",c),t=()=>{clearTimeout(e),window.removeEventListener("scroll",s),document.removeEventListener("mouseleave",o),document.removeEventListener("visibilitychange",c),cancelAnimationFrame(S.current)}},5e3);return()=>{clearTimeout(a),t()}},[T]);let E=(0,o.useCallback)(()=>{var e,t=Date.now()+2592e6;try{window.localStorage.setItem(x,String(t))}catch{}let a=C.current;e={context:h(a),pathname:a},(0,m.track)("signup_prompt_dismissed",{...e}),j(!1)},[]),{headline:A,subtext:I}=w[h(e)];return(0,t.jsx)(c.Dialog,{open:p,onOpenChange:e=>{e||E()},children:(0,t.jsxs)(c.DialogPortal,{children:[(0,t.jsx)(c.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-signup-prompt",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:E,className:"absolute right-3 top-3 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)(n.X,{className:"h-5 w-5"})}),(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:v.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.jsxs)("span",{className:"text-sm font-medium text-brand-gray-600",children:[y.TRUST_CLAIM_PREFIX," ",(0,t.jsx)("span",{className:"font-semibold text-brand-gray-900",children:y.TRUST_CLAIM_MAGNITUDE})," ",y.TRUST_CLAIM_SUFFIX]})]})}),(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:A})}),(0,t.jsx)(a.Description,{asChild:!0,children:(0,t.jsx)("p",{className:"mt-2 text-center text-sm text-brand-gray-600",children:I})}),(0,t.jsx)("div",{className:"mt-6",children:(0,t.jsxs)(l.Button,{type:"button",onClick:()=>{let e=window.location.pathname+window.location.search;f({context:h(C.current),pathname:C.current,method:"google"});try{sessionStorage.setItem("post_onboarding_redirect",e)}catch{}(0,b.redirectToGoogleAuth)({prompt:"consent"})},className:"h-12 w-full cursor-pointer rounded-xl border bg-white text-base font-semibold text-brand-gray-800 shadow-md transition-all hover:bg-brand-blue/5 hover:shadow-lg",children:[(0,t.jsxs)("svg",{className:"mr-3 h-5 w-5 shrink-0",viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,t.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),(0,t.jsx)("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),(0,t.jsx)("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),(0,t.jsx)("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]}),"Sign up with Google"]})}),(0,t.jsxs)("div",{className:"relative my-5",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("div",{className:"w-full border-t"})}),(0,t.jsx)("div",{className:"relative flex justify-center text-sm",children:(0,t.jsx)("span",{className:"bg-white px-4 text-brand-gray-400",children:"or continue with email"})})]}),(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault();let t=window.location.pathname+window.location.search;f({context:h(C.current),pathname:C.current,method:"email"});let a=new URLSearchParams;k.trim()&&a.set("email",k.trim()),a.set("redirect",t),window.location.href=`/signup?${a.toString()}`},className:"space-y-3","data-testid":"form-signup-prompt",children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(i.Mail,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-brand-gray-400"}),(0,t.jsx)(d.Input,{type:"email",placeholder:"[email protected]",value:k,onChange:e=>N(e.target.value),className:"h-12 rounded-xl pl-10 text-base","aria-label":"Email address"})]}),(0,t.jsxs)(l.Button,{type:"submit",className:"h-12 w-full cursor-pointer rounded-xl bg-slate-900 text-base font-semibold text-white shadow-md transition-all hover:bg-slate-800 hover:shadow-lg",children:["Continue with Email",(0,t.jsx)(r.ArrowRight,{className:"ml-2 h-4 w-4"})]})]}),(0,t.jsx)("p",{className:"mt-4 text-center text-xs text-brand-gray-600",children:"Free forever. No spam, unsubscribe anytime."})]})})]})})}],630253)}]);
2
3//# chunkId=60a48f47-da5a-5796-a0a3-240cf75d715c

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.