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||"01a0f991-409e-0000-e04d-bfaafb2c18fc";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="b4c418e9-14fa-5387-8ff3-b9aa5af64ab1")}catch(e){}}();(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[50983],{17919:(e,t,s)=>{"use strict";function r(e){return e?`${e>=8?"standout":"stronger"} matches (${e}+)`:"stronger matches"}function n(e){let t=Number(e);return Number.isInteger(t)&&t>=1&&t<=10?t:null}function a(e){let t=e?new Date(e):null;return!t||Number.isNaN(t.getTime())?null:t.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}function l(e){return{title:`Pause job alerts for ${e} months?`,description:"You won't get TrueUp job alert emails while paused. Partner portfolio emails aren't affected.",confirmLabel:`Pause for ${e} months`,successTitle:"Job alerts paused",successDescription:({result:t})=>{let s=a(t?.job_alerts_paused_until);return s?`You won't get job alert emails until ${s}.`:`You won't get job alert emails for ${e} months.`},undoAction:"resume"}}s.d(t,{CY:()=>c,Dk:()=>o,Dp:()=>i,Lj:()=>n,wR:()=>a});let i={higher_bar:{title:({bar:e})=>`Only send ${r(e)}?`,description:({bar:e})=>e?`We'll only email jobs with a fit score of ${e} or higher. Expect fewer emails, and sometimes none for a while.`:"We'll only email jobs that score one step above your usual fit bar. Expect fewer emails, and sometimes none for a while.",confirmLabel:({bar:e})=>`Only send ${r(e)}`,successTitle:"Fewer, stronger matches",successDescription:({bar:e})=>e?`We'll email you when a new job scores ${e}+ for you.`:"We'll only email you jobs that clear your higher bar.",undoAction:"all_matches"},all_matches:{title:"Send all good matches?",description:"We'll go back to emailing new jobs that are a good fit for your profile.",confirmLabel:"Send all good matches",successTitle:"All good matches are back on",successDescription:()=>"We'll email you new jobs that are a good fit for your profile.",undoAction:"higher_bar"},pause_3m:l(3),pause_6m:l(6),resume:{title:"Resume job alerts?",description:"We'll start emailing you new jobs that fit your profile again.",confirmLabel:"Resume job alerts",successTitle:"Job alerts are back on",successDescription:()=>"We'll email you new jobs that fit your profile again.",undoAction:null}};function o(e,t){return"function"==typeof e?e(t):e}function c({userEmailToken:e,action:t}){return"string"==typeof e&&e.length>0&&e.length<=255&&Object.hasOwn(i,t)}},53869:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>w});var r=s(15383),n=s(14343),a=s(35574),l=s.n(a),i=s(24252),o=s.n(i),c=s(83349),u=s(16303);let m={name:"bell-off",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]]};m.node;let d=(0,u.A)(m),h={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
1],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};h.node;let f=(0,u.A)(h);var p=s(68029),b=s(11958),j=s(91022),y=s(57536),g=s(17919),x=s(85133);function w(){let e=(0,c.useRouter)(),t=(0,x.Ev)(e.query.userEmailToken),s=(0,x.Ev)(e.query.action),a=(0,g.Lj)((0,x.Ev)(e.query.bar)),[i,u]=(0,n.useState)(null),[m,h]=(0,n.useState)(null),[w,_]=(0,n.useState)("ready"),[k,N]=(0,n.useState)(""),T=e.isReady&&(0,g.CY)({userEmailToken:t,action:s}),v=g.Dp[i||s],$=e=>(0,g.Dk)(e,{bar:a,result:m});async function A(e){u(e),_("submitting"),N("");try{let s=await fetch("https://arc.trueup.io/user/unsubscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userEmailToken:t,action:e})}),r=await s.json().catch(()=>null);if(!s.ok||!r?.success)throw Error(r?.error||"We couldn't update your email settings.");h(r),_("success")}catch(e){N(e.message||"We couldn't update your email settings."),_("error")}}let C=s?.startsWith("pause")?d:f;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(l(),{children:[(0,r.jsx)("title",{children:"Job alert settings | TrueUp"}),(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"},"robots"),(0,r.jsx)("meta",{name:"referrer",content:"no-referrer"},"referrer")]}),(0,r.jsx)("main",{className:"bg-muted/30 flex min-h-screen items-center justify-center px-4 py-12",children:(0,r.jsxs)("div",{className:"w-full max-w-md",children:[(0,r.jsx)(o(),{href:"/",className:"mb-8 flex justify-center","aria-label":"TrueUp home",children:(0,r.jsx)(b.A,{size:28,className:"text-foreground"})}),(0,r.jsx)(y.Zp,{children:"success"===w&&v?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(y.aR,{className:"text-center",children:[(0,r.jsx)(p.A,{className:"text-primary mx-auto mb-2 size-10"}),(0,r.jsx)(y.ZB,{className:"text-xl",children:$(v.successTitle)}),(0,r.jsx)(y.BT,{children:$(v.successDescription)})]}),(0,r.jsxs)(y.wL,{className:"flex-col gap-2 sm:flex-row sm:justify-center",children:[v.undoAction?(0,r.jsx)(j.$,{variant:"outline",onClick:()=>A(v.undoAction),children:"Undo"}):null,(0,r.jsx)(j.$,{asChild:!0,children:(0,r.jsx)(o(),{href:"/",children:"Go to TrueUp"})})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(y.aR,{className:"text-center",children:[(0,r.jsx)(C,{className:"text-muted-foreground mx-auto mb-2 size-10"}),(0,r.jsx)(y.ZB,{className:"text-xl",children:T?$(v.title):"Job alert settings"}),(0,r.jsx)(y.BT,{children:T?$(v.description):e.isReady?"This link is invalid or incomplete.":"Checking your linkâ¦"}),"error"===w?(0,r.jsx)("p",{className:"text-destructive pt-2 text-center text-sm",role:"alert",children:k}):null]}),(0,r.jsxs)(y.wL,{className:"flex-col gap-2 sm:flex-row sm:justify-center",children:[(0,r.jsx)(j.$,{disabled:!T||"submitting"===w,onClick:()=>A(i||s),children:"submitting"===w?"Savingâ¦":T?$(v.confirmLabel):"Confirm"}),(0,r.jsx)(j.$,{asChild:!0,variant:"outline",children:(0,r.jsx)(o(),{href:"/",children:"Keep current settings"})})]})]})})]})})]})}},73222:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/email-preferences/job-alerts",function(){return s(53869)}])},85133:(e,t,s)=>{"use strict";s.d(t,{CC:()=>i,Ev:()=>a,R0:()=>n,RV:()=>l});let r={emails_marketing:"TrueUp product updates",emails_job_alerts:"all TrueUp and partner job alerts",emails_insights:"TrueUp insights emails",talent_match:"TrueUp Talent Match emails",emails_candidate_pipeline:"candidate pipeline emails",emails_s_tier:"S-Tier talent emails"},n="emails_portfolio_job_alerts";function a(e){return Array.isArray(e)?e[0]:e}function l({userEmailToken:e,emailType:t,partnerId:s}){return"string"==typeof e&&0!==e.length&&!(e.length>255)&&(t===n?"string"==typeof s&&/^[a-z0-9_-]{1,50}$/i.test(s):Object.hasOwn(r,t))}function i(e,t){return e===n?t?`${t} portfolio job emails`:"partner portfolio job emails":r[e]||"these emails"}}},e=>{e.O(0,[90636,46593,38792],()=>e(e.s=73222)),_N_E=e.O()}]); 2//# chunkId=b4c418e9-14fa-5387-8ff3-b9aa5af64ab1
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.