1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2841],{5646:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>f});var a=r(37876);r(14232);var o=r(35967),i=r(92387),n=r(18847),s=r.n(n),l=r(36589),c=r(36066),u=r(15429),d=r(99934);let p=s()(()=>r.e(5106).then(r.bind(r,5106)).then(e=>e.NotificationPreferences),{loadableGenerated:{webpack:()=>[5106]}}),g=(0,o.YK)({account:{id:"account.settings.breadcrumbs.account",defaultMessage:"Account"},accountSettings:{id:"account.settings.breadcrumbs.accountSettings",defaultMessage:"Account settings"},notificationPreferences:{id:"account.settings.breadcrumbs.notificationPreferences",defaultMessage:"Manage notifications"}});function h(){let e=(0,i.A)(),t=[{url:"/accounts",label:e.formatMessage(g.account)},{url:"/accounts/settings",label:e.formatMessage(g.accountSettings)},{label:e.formatMessage(g.notificationPreferences)}];return(0,a.jsx)(u.P,{fullWidth:!0,breadcrumbs:t,authRequired:!0,children:(0,a.jsx)(c.m,{children:(0,a.jsx)(p,{})})})}h.getInitialProps=async e=>{try{await e.apolloClient.query({query:l.qg2})}catch(e){}};let f=(0,d.Jo)(h)},31724:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/accounts/settings/notifications",function(){return r(5646)}])},70919:()=>{},91794:()=>{},99934:(e,t,r)=>{"use strict";r.d(t,{nU:()=>O,sE:()=>F,Jo:()=>X});var a=r(37876);r(14232);var o=r(868),i=r(36049),n=r(36589),s=r(91040),l=r(93606),c=r(45978),u=r(3853),d=r(46725),p=r(18610),g=r(98122),h=r(6793),f=r(8455),y=r(70919),C=r.n(y),m=r(11945),w=r(19790);let v=async e=>{if(!e.req?.jwtToken)return null;try{let t=await e.apolloClient.query({query:n.BE3,context:{headers:{Authorization:`Bearer ${e.req.jwtToken}`}}});return e.authUser=t?.data.me?(0,w.o)(t.data.me):void 0,e.authUser}catch(e){d.v.error(e)}return null},q=async(e,t)=>((0,f.f)()&&await v(e),t.getInitialProps(e));var S=r(9215),b=r(91794),x=r.n(b),A=r(23666),k=r(68779);let P=async()=>{let{statsigForwardProxyUrl:e,environment:t}=k.O.experimentation,r={environment:{tier:t},initTimeoutMs:3e3,...e&&{apiForDownloadConfigSpecs:e,fallbackToStatsigAPI:!0}};try{await x().initialize(A.A.statsigAPIKey,r)}catch(t){throw d.v.error({error:t,statsigForwardProxyUrl:e},"Statsig SDK initialization failed"),t}};var E=r(15229),T=r(8759);let I=async(e,t)=>{let{statsigForwardProxyUrl:r,statsigSDKKey:a}=k.O.experimentation;await P();let o=(0,m.h)(t,e.authUser?.id,e.req.DX,e.res.locals[h.AB]),i=C().getClientInitializeResponse(o,a,{hash:"djb2"});return i||d.v.error({statsigForwardProxyUrl:r},"Statsig getClientInitializeResponse returned empty response"),i},_=async e=>{let t=e.appProps.location?.zipCode;try{return await e.apolloClient.query({query:n.u5U,variables:{input:{zipcode:t},excludeL3:!(0,T.DX)(e.query.cid,e.query.slug)}})}catch(e){d.v.error(e)}return null},D=async e=>{try{return(await e.apolloClient.query({query:n.Y5R,variables:{input:{deviceId:e.req.DX},...(0,E.L)(e.appProps.location)},context:{headers:{"user-agent":e.req.useragent.source}}})).data.userContext.userContext}catch(e){d.v.error(e)}return null},M=async e=>{try{let t=await e.apolloClient.query({query:S.GetVideoAuthTokensDocument}),{expirationTime:r}=t.data.getVideoAuthTokens;t.data?.getVideoAuthTokens?.sessionCookies?.forEach(t=>{var a;let o,i,n,s;a=e.res,o=t.indexOf("="),i=t.slice(0,o),n=t.slice(o+1),s=new Date(r).getTime()-Date.now(),a.cookie(i,n,{httpOnly:!0,secure:!0,maxAge:s,sameSite:"none",domain:A.A.cookieSubDomain})})}catch(e){d.v.error(e)}},U=async(e,t=!1)=>{if(!e.res)return{};let[r,a]=await Promise.all([_(e),D(e),M(e),!t?v(e):Promise.resolve({})]);try{let t=await I(e,a);return{categories:r,statsigValues:t,statsigUserContext:a??void 0}}catch(e){d.v.error(e)}return{categories:r}},j=e=>!!e&&(!!e.city||!!e.zipCode||!!e.latitude&&!!e.longitude),z=e=>{e.res?.cookie(p.dX,"1",{maxAge:3e5,sameSite:"lax",secure:!0})},N=async e=>{let t=(0,g.$)(e.req?.cookies[p.FW]);if(j(t))return t;let r=e.req?.ipAddress;if(!r||e.req?.cookies[p.dX])return null;try{let{data:{data:t}}=await s.A.get(`${A.A.locationUrl}/internal/locationv2/location`,{params:{ip:r},timeout:3e3}),a={city:t?.city,state:t?.state,zipCode:t?.zipCode,longitude:t?.lon,latitude:t?.lat,source:"ip"};if(!j(a))return z(e),null;
1return e.res.cookie(p.FW,JSON.stringify(a),{maxAge:864e5,sameSite:"lax",secure:!0}),a}catch(t){return d.v.error("Error fetching location from ip",{error:t,middleware:"location"}),z(e),null}},O=async e=>{let t=await N(e),r={colorMode:e.res?.locals.colorMode,location:t,isWebview:e.res?.locals.isWebview,isFTUE:e.req?.isFTUE,userAgent:e.req?.useragent,authenticatedViaToken:!!e.req?.jwtToken||!!e.req?.refreshToken||!!e.apolloClient?.cache.readQuery({query:n.BE3}),deviceId:e.req?.DX,sessionId:e.res?.locals[h.AB],secGpc:e.req?.headers["sec-gpc"]};return e.appProps=r,r},F=e=>{let t=(0,l.fq)({context:e});return e.apolloClient=t,t};function X(e){let t=t=>(0,a.jsx)(e,{...t});return t.getInitialProps=async t=>{let r,a;F(t);let n=(0,f.f)(),s=await O(t),l={};try{let o=[];return n&&o.push(U(t,!!e.getInitialProps)),e.getInitialProps&&o.push(q(t,e)),(await Promise.allSettled(o)).forEach((e,t)=>{if("rejected"===e.status)throw e.reason;n&&0===t?(r=JSON.stringify(e.value.statsigValues),a=JSON.stringify(e.value.statsigUserContext)):l=e.value}),l?.notFound&&t.res&&(t.res.statusCode=404),{...l,appProps:s,httpStatusCode:t.res?.statusCode,initialApolloState:t.apolloClient.cache.extract(),apolloClient:t.apolloClient,initializeStatsigValues:r,initializeStatsigUserContext:a}}catch(h){d.v.error(h);let e=h instanceof o.K?h:new o.K({errorMessage:String(h)}),n=e.graphQLErrors?.find(e=>(0,c.Kg)(e.extensions)),p=n?.extensions;if(p)return{...l,appProps:s,initialApolloState:t.apolloClient.cache.extract(),apolloClient:t.apolloClient,vpnBlockError:(0,c.bt)(p.exception?.originalError?.error),initializeStatsigValues:r,initializeStatsigUserContext:a};let g=(e=>{let{message:t,httpStatusCode:r,...a}=(0,i.b)(e);return(0,u.DF)({message:t||e.message||"An unexpected error occurred",httpStatusCode:r||500,...a})})(e);return t.res&&(t.res.statusCode=g.httpStatusCode,404===g.httpStatusCode&&(l={...l,notFound:!0})),{...l,appProps:s,initialApolloState:t.apolloClient.cache.extract(),httpStatusCode:g.httpStatusCode,apolloClient:t.apolloClient,error:g,initializeStatsigValues:r,initializeStatsigUserContext:a}}},t.getLayout=e.getLayout,t}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=31724)),_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.