PageSourceSearch

https://trueresume.ai/_next/static/chunks/pages/settings/notifications-22e828345cef10dc.js

js trueresume.ai collected 2026-10-02 01:13:45 UTC 6,105 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4682],{47428:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/notifications",function(){return a(74584)}])},42949:function(e,t,a){"use strict";a.d(t,{q:function(){return n}});var s=a(85893);a(67294);var r=a(54271);function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:26;return(0,s.jsx)(r.ZP,{variant:e,size:t,density:"full",animated:!0})}},26709:function(e,t,a){"use strict";a.d(t,{Z:function(){return o}});var s=a(85893);a(67294);var r=a(92761),n=a(79298),i=a(11163),c=a(67694);function o(e){let{title:t,subtitle:a,onPrimary:o,primaryLabel:l,showBack:d=!0}=e,x=(0,i.useRouter)(),{theme:m}=(0,c.F)();return(0,s.jsx)("div",{className:"md:hidden sticky top-12 z-40 px-3 py-2.5  transition-colors ".concat("dark"===m?"bg-[#1A1A1B] border-b border-[#343536]":"bg-white border-b border-[#EDEFF1]"),children:(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[d?(0,s.jsx)(n.hU,{onClick:()=>x.back(),icon:r.Z,"aria-label":"Back",variant:"ghost",size:"sm"}):(0,s.jsx)("div",{className:"w-9 h-9","aria-hidden":!0}),(0,s.jsxs)("div",{className:"flex-1 text-center min-w-0",children:[t&&(0,s.jsx)("div",{className:"font-semibold text-sm truncate ".concat("dark"===m?"text-white":"text-gray-900"),children:t}),a&&(0,s.jsx)("div",{className:"text-xs truncate ".concat("dark"===m?"text-[#818384]":"text-gray-500"),children:a})]}),(0,s.jsx)("div",{className:"flex-shrink-0 flex items-center justify-end",children:o?(0,s.jsx)(n.zx,{onClick:o,size:"sm",variant:"primary",className:"text-xs px-2.5 py-1.5 whitespace-nowrap",children:l||"Done"}):(0,s.jsx)("div",{className:"w-9 h-9","aria-hidden":!0})})]})})}},74584:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return h}});var s=a(85893),r=a(67294),n=a(33299),i=a(9008),c=a.n(i),o=a(85412),l=a(26709),d=a(67694),x=a(79298),m=a(86501),u=a(42949);function h(){let{theme:e}=(0,d.F)(),{data:t}=(0,n.useSession)(),[a,i]=(0,r.useState)(!1),[h,f]=(0,r.useState)(!1),[p,b]=(0,r.useState)(null),[j,g]=(0,r.useState)(""),[y,k]=(0,r.useState)(""),[N,v]=(0,r.useState)(null);if((0,r.useEffect)(()=>{t&&(async()=>{i(!0),v(null);try{let e=await fetch("/api/user/email-preferences");if(!e.ok)throw Error("Failed to fetch");let t=await e.json();b(void 0===t.dailyJobDigest||t.dailyJobDigest),g(t.timeZone||"")}catch(e){console.error(e),v("Failed to load preferences. Try refreshing the page.")}finally{i(!1)}})()},[t]),!t)return(0,s.jsxs)("div",{className:"min-h-screen pt-12 sm:pt-16 ".concat("dark"===e?"bg-[#030303]":"bg-transparent"),children:[(0,s.jsx)(o.Z,{}),(0,s.jsx)(l.Z,{title:"Email preferences",subtitle:"Digests & time zone"}),(0,s.jsxs)("div",{className:"mx-auto mt-8 max-w-[680px] px-4 pb-28 safe-area-bottom",children:[(0,s.jsx)("h1",{className:"text-xl font-bold ".concat("dark"===e?"text-[#D7DADC]":"text-[#1C1C1C]"),children:"Email Preferences"}),(0,s.jsxs)("p",{className:"mt-2 text-sm ".concat("dark"===e?"text-[#818384]":"text-[#7C7C7C]"),children:["Please"," ",(0,s.jsx)("button",{type:"button",onClick:()=>(0,n.signIn)(),className:"font-medium text-[#0079D3] underline decoration-[#0079D3]/30 underline-offset-2 hover:
1decoration-[#0079D3]",children:"sign in"})," ","to manage your email preferences."]})]})]});let C=async()=>{k("");let e=j.trim();if(!e){k("Enter your IANA time zone (for example America/New_York)");return}f(!0);try{if(!(await fetch("/api/user/email-preferences",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({dailyJobDigest:p,timeZone:e})})).ok)throw Error("Failed to save");m.default.success("Preferences saved",{icon:(0,u.q)("check")})}catch(e){console.error(e),m.default.error("Save failed — try again in a moment")}finally{f(!1)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(c(),{children:[(0,s.jsx)("title",{children:"Email Preferences - TrueResume"}),(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,s.jsxs)("div",{className:"min-h-screen pt-12 sm:pt-16 ".concat("dark"===e?"bg-[#030303]":"bg-transparent"),children:[(0,s.jsx)(o.Z,{}),(0,s.jsx)(l.Z,{title:"Email preferences",subtitle:"Digests & time zone"}),(0,s.jsx)("div",{className:"mx-auto mt-6 max-w-[680px] px-4 pb-28 safe-area-bottom font-sans",children:(0,s.jsxs)("div",{className:"rounded-[10px] p-6 sm:p-8 shadow-[0_6px_18px_rgba(0,0,0,0.06)] ".concat("dark"===e?"border border-[#343536] bg-[#1A1A1B] shadow-none":"border border-[#EDEFF1] bg-white"),children:[(0,s.jsx)("h1",{className:"text-xl font-bold ".concat("dark"===e?"text-[#D7DADC]":"text-[#1C1C1C]"),style:{fontFamily:"Rajdhani, system-ui, sans-serif"},children:"Email Preferences"}),a&&null===p&&(0,s.jsx)("p",{className:"mt-3 text-sm ".concat("dark"===e?"text-[#818384]":"text-[#7C7C7C]"),children:"Loading…"}),N&&(0,s.jsx)("p",{role:"alert",className:"mt-3 text-sm ".concat("dark"===e?"text-red-400":"text-red-600"),children:N}),(0,s.jsxs)("div",{className:"mt-6 space-y-6",children:[(0,s.jsxs)("label",{className:"flex cursor-pointer items-start gap-3 rounded-xl border px-3 py-3 sm:py-4 ".concat("dark"===e?"border-[#343536] bg-[#272729]/50":"border-[#EDEFF1] bg-[#F6F7F8]/80"),children:[(0,s.jsx)("input",{type:"checkbox",checked:p||!1,onChange:e=>b(e.target.checked),className:"mt-1 h-[18px] w-[18px] shrink-0 rounded border-[#EDEFF1] accent-[#FF4500]"}),(0,s.jsx)("span",{className:"text-sm leading-snug ".concat("dark"===e?"text-[#D7DADC]":"text-[#1C1C1C]"),children:"Send me a daily job digest"})]}),(0,s.jsx)(x.II,{label:"Time zone (IANA)",placeholder:"e.g., America/New_York",value:j,onChange:e=>{g(e.target.value),y&&k("")},error:y,disabled:a&&null===p,autoComplete:"off"}),(0,s.jsx)("p",{className:"text-xs ".concat("dark"===e?"text-[#818384]":"text-[#7C7C7C]"),children:"Set your local time zone so digests arrive near your preferred morning window."}),(0,s.jsx)(x.zx,{type:"button",variant:"primary",size:"md",fullWidth:!0,loading:h,onClick:()=>void C(),children:"Save preferences"})]})]})})]})]})}}},function(e){e.O(0,[4968,1296,5412,2888,9774,179],function(){return e(e.s=47428)}),_N_E=e.O()}]);

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.