PageSourceSearch

https://mijnomgeving.parool.nl/_next/static/chunks/6190-324fa172719f97b2.js

js parool.nl collected 2026-09-24 08:29:52 UTC 38,957 bytes, 120 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var a=1;a<arguments.length;a++){var i=arguments[a];if(null!=i)for(var s in i)i.hasOwnProperty(s)&&(e[s]=i[s])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:dpg-media-services-csa":!0});var a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="aad06389-9785-4e91-8697-6804d05bc5ff",e._sentryDebugIdIdentifier="sentry-dbid-aad06389-9785-4e91-8697-6804d05bc5ff")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6190],{2869:(e,a,i)=>{i.d(a,{r:()=>d});var s=i(6029),t=i(55729),n=i(57490),l=i(89456),r=i(82203),c=i.n(r),o=i(59036);function d({className:e,routes:a}){let i=(0,o.U)(),r=function(e=[]){return(0,t.useMemo)(()=>e.map((e,a,i)=>a===i.length-1?{label:e.label??"-"}:{label:e.label??"-",...e.route?{path:e.route}:{}}),[e])}(a??[]);return!r.length||i.hasWebviewLimitation?null:(0,s.jsx)(l.rX,{className:(0,n.cx)("container mx-auto desktop:pt-6 tablet:pt-4 pt-3 flex items-baseline space-x-[0.25rem]",e),items:r,as:(0,s.jsx)(c(),{href:""})})}},13860:(e,a,i)=>{i.d(a,{l:()=>l});var s=i(6029);i(55729);var t=i(89456),n=i(43343);let l=({loading:e,children:a,...i})=>{let{getTranslation:l}=(0,n.c3)();return(0,s.jsx)(t.$n,{...i,disabled:i.disabled||e,children:e?(0,s.jsx)(t.fV,{"aria-label":l("isLoadingAriaLabel"),className:"brightness-0"}):a})}},15857:(e,a,i)=>{i.d(a,{Y:()=>o});var s=i(6029),t=i(79132),n=i(95618),l=i(89456);i(55729);var r=i(57490),c=i(25802);function o({brandId:e,status:a,children:i,testId:d}){let m=(0,t.tA)(e),{dpgConfig:u}=(0,c.G)(),p=(0,n.d)(m?m.subscriptionLogo:u.dpgHeaderLogo)?.height(50).url();return(0,s.jsx)(l.Eg,{variant:"SUCCESS"===a?"success":"PENDING"===a?"info":"error",showIcon:!p,className:"mt-2","data-testid":d,shouldAnnounce:!1,children:(0,s.jsxs)("div",{className:"gap-3 grid grid-flow-col rounded-sm items-center",children:[p&&(0,s.jsx)("div",{className:(0,r.cx)("overflow-hidden rounded-xl w-10 h-10 border border-gray-medium bg-white",!m&&"p-1"),children:(0,s.jsx)("img",{src:p,className:"w-full h-full",title:m?m.seoTitle:u.dpgTitle})}),i]})})}},33385:(e,a,i)=>{i.d(a,{K:()=>h});var s=i(6029);i(55729);var t=i(25802),n=i(95618),l=i(46636),r=i(50092),c=i(79132),o=i(59867),d=i(55597),m=i(57490),u=i(89456);let p=({logoUrl:e,title:a,onRemove:i,isRemovable:t,withPadding:n})=>(0,s.jsxs)("li",{className:(0,m.cx)("flex-none relative group",t&&"cursor-pointer"),"data-testid":"selected-subscription",onClick:t?i:()=>{},children:[t&&(0,s.jsx)("div",{className:"invisible group-hover:visible",children:(0,s.jsx)(u.In,{icon:d.s0Q,className:"absolute -top-1 -right-1 bg-white overflow-hidden rounded-full text-gray-dark"})}),(0,s.jsx)("div",{className:"overflow-hidden rounded-xl w-10 h-10 border border-gray-medium",children:e?(0,s.jsx)("img",{src:e,className:(0,m.cx)("w-full h-full",n&&"p-1"),title:a||""}):(0,s.jsx)("div",{className:"w-full h-full bg-gray-light"})})]}),h=({activeItems:e,onRemove:a,...i})=>{let{dpgConfig:d}=(0,t.G)(),m=i.subscriptions.map(e=>(0,r.ni)(l.B,e)),u=(0,c.Ek)(),h=m.filter(({subscriptionKey:a,lowerCaseBrandId:i})=>!!e.includes("magazines")&&"magazine"===u[i].brandCategory||e.includes(a)),g=void 0!==a&&e.length>1,x=g?a:()=>null;return(0,s.jsxs)("ul",{className:"flex gap-1 py-2 max-w-full flex-wrap","data-testid":"selected-subscriptions",children:[h.map(e=>{let a=e.brand.toLowerCase();if(!(0,o.e)(a,u))return null;let i=u[a],t=(0,n.d)(i.subscriptionLogo)?.height(50).url(),l=e.pcsProduct?.descriptor?.name||i.seoTitle;return(0,s.jsx)(p,{logoUrl:t,title:l,onRemove:()=>x(e.subscriptionKey),isRemovable:g},e.subscriptionKey)}
1),e.includes("account")&&(0,s.jsx)(p,{title:"DPG Media Account",onRemove:()=>x("account"),logoUrl:(0,n.d)(d.dpgHeaderLogo)?.url(),withPadding:!0,isRemovable:g})]})}},38926:(e,a,i)=>{i.d(a,{G:()=>r}),i(47349);var s=i(55729),t=i(79132),n=i(59867),l=i(57490);let r=()=>{let e=(0,t.Ek)();return(0,s.useCallback)(a=>(0,l.$z)(a,({lowerCaseBrandId:a})=>(0,n.e)(a,e)?e[a].brandCategory??"unknown":"unknown"),[e])}},46636:(e,a,i)=>{i.d(a,{B:()=>s});let s=(0,i(50092).UG)(`
2  fragment SelectedItem on S2LinkedSubscription {
3    subscriptionKey
4    lowerCaseBrandId
5    brand
6    pcsProduct {
7      descriptor {
8        name
9      }
10    }
11  }
12`)},65394:(e,a,i)=>{i.d(a,{m:()=>r});var s=i(6029);i(55729);var t=i(55597),n=i(57490),l=i(89456);let r=({className:e,subscriptionCount:a=3,"aria-label":i,hasRightArrow:r,hasLeftCheckbox:c})=>(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute w-full text-center pt-6 z-10",children:(0,s.jsx)(l.fV,{"aria-label":i})}),(0,s.jsx)(l.Or,{duration:"2s",className:"saturate-0 opacity-50 bg-transparent",children:(0,s.jsx)("ul",{className:(0,n.cx)("mb-3",e),children:Array(a).fill(null).map((e,a)=>(0,s.jsxs)("li",{className:"flex flex-row items-center border-b border-gray-medium",children:[(0,s.jsx)("span",{className:"block w-full py-4",children:(0,s.jsxs)("div",{className:"flex gap-2 text-sm items-center",children:[c&&(0,s.jsx)("div",{className:"overflow-hidden rounded-md w-4 h-4 border border-gray-medium",children:(0,s.jsx)("div",{className:"w-full h-full bg-gray-light"})}),(0,s.jsx)("div",{className:"overflow-hidden rounded-xl w-10 h-10 border border-gray-medium",children:(0,s.jsx)("div",{className:"w-full h-full bg-gray-light"})}),(0,s.jsxs)("div",{className:"flex flex-col justify-center leading-6 gap-1",children:[(0,s.jsx)("div",{className:"w-36 bg-gray-light h-4 rounded-md shrink"}),(0,s.jsx)("div",{className:"w-22 bg-gray-light h-4 rounded-md shrink"})]})]})}),r&&(0,s.jsx)("div",{className:"w-5",children:(0,s.jsx)(l.In,{icon:t.XkK,className:"text-icon"})})]},a))})})]})},76705:(e,a,i)=>{i.d(a,{B:()=>s});let s=(0,i(50092).UG)(`
13  fragment UmsViolationFields on UmsViolation {
14    code
15  }
16`)},78504:(e,a,i)=>{i.d(a,{A:()=>p});var s=i(6029),t=i(55729),n=i(1699),l=i(89456),r=i(71024),c=i.n(r),o=i(81278),d=i(15615),m=i(43343);let u=c()(()=>Promise.all([i.e(3957),i.e(5330)]).then(i.bind(i,95330)),{loadableGenerated:{webpack:()=>[95330]},loading:()=>(0,s.jsx)("div",{style:{width:"300px",height:"250px"}}),ssr:!1});function p({error:e,traceId:a}){let{getTranslation:i,getPortableText:r}=(0,m.c3)(),{pathname:c,push:h,reload:g}=(0,o.useRouter)();return(0,t.useEffect)(()=>{if(window.location){let i=new URLSearchParams(window.location.search);"forbidden"===i.get("error")&&i.has("reason")||(0,n.c_)(e||Error("[500] Internal server error"),{extra:{traceId:a,href:window.location.href}})}},[a,e]),(0,s.jsxs)("div",{className:"text-center","data-testid":"error-page-500",children:[(0,s.jsx)("div",{className:"mt-8 inline-block",children:(0,s.jsx)(u,{src:"/animations/500.lottie",autoplay:!0,loop:!0,style:{width:"300px",height:"250px"}})}),(0,s.jsx)("div",{className:"flex flex-col text-center bg-white py-8 px-4",children:(0,s.jsxs)("div",{className:"max-w-xl mx-auto space-y-4 tablet:space-y-6",children:[(0,s.jsx)(d.A,{className:"text-xl font-bold",message:r("errorDescription")}),"/500"===c?(0,s.jsx)(l.$n,{variant:"primary",onClick:()=>{h("/account")},children:i("errorBackButtonLabel404")}):(0,s.jsx)(l.$n,{variant:"primary",onClick:()=>{g()},children:i("errorRetryButtonLabel")}),a&&(0,s.jsxs)("span",{"data-testid":"error-trace-id",className:"pt-4 font-monospace block text-gray-dark",children:[i("errorTraceIdLabel")," ",a]})]})})]})}},92290:(e,a,i)=>{i.d(a,{i:()=>ee});var s=i(6029),t=i(55729),n=i(89456),l=i(62074),r=i(57490),c=i(21941),o=i(31576),d=i(90472),m=i(50197),u=i(50092);let p=(0,u.UG)(`
17  mutation InitiateChangeEmail($input: UmsInitiateChangeEmailInput!) {
18    __typename
19    initiateChangeEmail(input: $input) {
20      __typename
21      ... on UmsChallengeResponse {
22        challengeId
23        controlCharacter
24        expirationDate
25      }
26      ... on UmsViolations {
27        violations {
28          ...UmsViolationFields
29        }
30      }
31    }
32  }
33`),h=(0,u.UG)(`
34  mutation ChangeEmail($input: UmsChangeEmailInput!) {
35    __typename
36    changeEmail(input: $input) {
37      __typename
38      ... on UmsChangeEmailResponse {
39        accountUpdatedResult
40        subscriptions {
41          brandId
42          result
43          subscriptionId
44          subscriptionUserRef
45          subscriptionKey
46        }
47      }
48      ... on UmsViolations {
49        violations {
50          ...UmsViolationFields
51        }
52      }
53    }
54  }
55`);var g=i(1699);let x=(0,u.UG)(`
56  query ChangeEmailSubscriptionList {
57    getLinkedSubscriptions {
58      ...ChangeEmailSubscriptionItemFragment
59    }
60  }
61`),b=(0,u.UG)(`
62  fragment ChangeEmailSubscriptionItemFragment on S2LinkedSubscription {
63    role
64    brand
65    status
66    lowerCaseBrandId
67    subscriptionId
68    subscriptionKey
69    ...SelectedItem
70    ...SubscriptionOptionFragment
71    ...EmailMismatchNotificationFragment
72    ...SubscriptionStatusFragment
73  }
74`);var f=i(76705),v=i(38926),j=i(43343),w=i(18654),E=i(55597),N=i(15615),_=i(95810),y=i(79478);function C({changeEmailProps:e,secondsToExpire:a,handleNewChallengeRequest:i,
74challengeId:l,controlCharacter:r,newEmail:c}){let{getTranslation:o,getPortableText:d}=(0,j.c3)(),{getTranslatedViolation:m}=(0,y.s)(),{changeEmailLoading:p,changeEmailViolations:h,requestChallengeViolations:g,isRequestChallengeDisabled:x,requestChallengeLoading:b,isChangeEmailDisabled:v,attemptsRemaining:w,formik:{setFieldValue:E}}=e,S=(0,t.useCallback)(e=>{E("verification_code",e)},[E]),I=(0,u.ni)(f.B,[...g,...h]),L=0===I.length||I.every(({code:e})=>"MO__CHALLENGE_INCORRECT_CODE"===e),M=I.some(({code:e})=>"MO__CHALLENGE_INCORRECT_CODE"===e);return(0,s.jsxs)("div",{className:"flex flex-col items-center gap-3 mb-5",children:[(0,s.jsx)("div",{className:"w-full px-4 text-center",children:(0,s.jsx)(N.A,{"data-dpg-pii":!0,testId:"verify-code-description",className:"w-full text-center text-sm",message:d("changeEmailVerificationEmailCheckInfoNotification"),values:{new_email:c}})}),L&&(0,s.jsx)(_.S,{secondsToExpire:a,timerMessage:d("changeEmailVerificationInfoNotification")}),!L&&I.length>0&&(0,s.jsxs)(n.Eg,{variant:"error",children:[I.map(({code:e})=>e&&(0,s.jsx)("p",{className:"font-semibold","data-testid":`error-${e}`,children:m(e)},e)),!x&&(0,s.jsx)("button",{"data-testid":"error-button-retry",disabled:b||p,className:"no-border mt-1 text-sm underline block",onClick:i,type:"button",children:o("changeEmailVerificationSendNewCodeButtonLabel")})]}),(0,s.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,s.jsx)("p",{children:o("changeEmailVerificationCodeComponentLabel")}),(0,s.jsx)(n.Px,{id:"verification_code","data-testid":"verification_code",labelTemplate:o("changeEmailVerificationCodeSRLabel"),disabled:v||p,invalid:M&&!p,controlCharacter:r,onChange:S},l),M&&(0,s.jsx)(n.Eg,{variant:"error",showIcon:!1,children:(0,s.jsx)(N.A,{testId:"wrong-verification-code-warning",className:"text-sm text-center",message:d("changeEmailVerificationCodeInvalidMessage"),values:{attempts:w.toString(),character:r||""}})})]})]})}var S=i(237),I=i(13860);function L({changeEmailProps:e}){let{getTranslation:a,getPortableText:i}=(0,j.c3)(),{pushAnalyticsEvent:l}=(0,w.iK)(),{accountOnly:c,requestChallengeResponse:o,requestChallengeViolations:d,requestChallengeLoading:m,formik:u,changeEmailViolations:p,changeEmailLoading:h,isChangeEmailDisabled:g,handleChallengeIsExpired:x,handleCancelVerification:b,handleNewChallengeRequest:f,isRequestChallengeDisabled:v}=e,{challengeId:_,controlCharacter:y}=o,{handleSubmit:M,isSubmitting:k}=u;(0,t.useEffect)(()=>
74{l({event:"screenview",steps:4,step_description:"verification code form",funnel_name:"change email",screen_name:window.location.pathname})},[l]);let A=(0,r.L4)(new Date(o.expirationDate).getTime());return(0,t.useEffect)(()=>{0===A&&x()},[x,A]),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"max-w-md w-full mx-auto pt-5 tablet:pt-4 px-3 mb-4 flex flex-col text-center gap-6",children:[(0,s.jsx)(n.gj,{variant:"row",steps:[{id:"step-1",label:a("changeEmailPageStep1Label"),status:"completed",hidden:c,onClick:async()=>{await b(),await u.setFieldValue("currentStep","overview")}},{id:"step-2",label:a("changeEmailPageStep2Label"),status:"completed",onClick:b},{id:"step-3",label:a("changeEmailPageStep3Label"),status:h?"loading":d.length>0||p.length>0?"error":"active"}]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"heading-4 font-bold mb-1",children:a("changeEmailVerificationTitle")}),(0,s.jsx)("span",{children:a("changeEmailVerificationDescription")})]})]}),(0,s.jsx)("div",{className:"bg-white",children:(0,s.jsxs)("form",{onSubmit:M,className:"max-w-md w-full mx-auto pb-6 tablet:pb-10 pt-2 tablet:pt-4 px-3 flex flex-col",children:[_&&(0,s.jsx)(C,{changeEmailProps:e,secondsToExpire:A||0,handleNewChallengeRequest:f,challengeId:_,controlCharacter:y,newEmail:u.values.new_email}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsxs)(n.$n,{type:"button",variant:"secondary",className:"cursor-pointer","data-testid":"change-email-verification-previous-button",onClick:b,children:[(0,s.jsx)(n.In,{icon:E.Wzs,className:"mr-1"}),a("changeEmailVerificationPreviousButtonLabel")]}),(0,s.jsx)(I.l,{type:"submit",variant:"primary",className:"grow",loading:h,disabled:g||k,"data-testid":"change-email-verification-submit-button",children:a("changeEmailVerificationNextButtonLabel")})]}),!v&&(0,s.jsx)("button",{disabled:m,className:"no-border mt-4 w-full text-sm","data-testid":"change-email-verification-code-no-code-received-button",onClick:f,type:"button",children:(0,s.jsx)(N.A,{message:i("changeEmailVerificationCodeNoCodeReceivedMessage"),paragraphElement:"span",paragraphClassName:"block"})}),(0,s.jsx)("div",{className:"text-center border-t border-gray-medium pt-4 mt-4",children:(0,s.jsx)(S.N,{href:"/abonnementen",className:"text-anchor hover:text-anchor-dark underline text-sm font-semibold",children:(0,s.jsx)(s.Fragment,{children:a("changeEmailFormCancelLinkLabel")})})})]})})]})}function M({changeEmailProps:e}){return null!==e.requestChallengeResponse?(0,s.jsx)(L,{changeEmailProps:e}):null}function k({formik:e,disabled:a,handleResetViolations:i,includeAccount:t}){let{getTranslation:l}=(0,j.c3)(),{getErrorTranslation:r}=(0,j.YY)(),c=e.errors;return(0,s.jsxs)("fieldset",{className:"flex flex-col space-y-2",disabled:a,children:[(0,s.jsx)(n.zB,{className:"mt-2",name:"new_email",touched:e.touched.new_email,error:c.new_email&&r(c.new_email),requiredDescription:l("genericFormRequiredDescription"),children:(0,s.jsx)(n.pd,{label:l("changeEmailFormNewEmailLabel"),"data-testid":"edit-new-email",type:"email",value:e.values.new_email,onChange:(...a)=>{i(),e.handleChange(...a)},onBlur:e.handleBlur,autoComplete:"off",validityMessage:c.new_email&&r(c.new_email)})}),(0,s.jsx)(n.zB,{name:"new_email_repeated",touched:e.touched.new_email_repeated,error:c.new_email_repeated&&r(c.new_email_repeated),children:(0,s.jsx)(n.pd,{label:l("changeEmailFormRepeatEmailLabel"),"data-testid":"edit-repeated-email",type:"email",value:e.values.new_email_repeated,onChange:e.handleChange,onBlur:e.handleBlur,autoComplete:"off",validityMessage:c.new_email_repeated&&r(c.new_email_repeated)})}),t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h2",{className:"font-semibold",children:l("changeEmailFormConfirmPasswordTitle")}),(0,s.jsx)(n.zB,{name:"password",touched:e.touched.password,error:c.password&&r(c.password),children:(0,s.jsx)(n.cA,{name:"password",label:l("changeEmailFormPasswordLabel"),value:e.values.password,onBlur:e.handleBlur,onChange:e.handleChange,statusLabels:{required:l("passwordStatusRequiredLabel"),completed:l("passwordStatusCompletedLabel")}})})]})]})}var A=i(33385);function O({changeEmailProps:e}){let{pushAnalyticsEvent:a}=(0,w.iK)(),{getTranslation:i}=(0,j.c3)(),{getTranslatedViolation:l}=(0,y.s)(),{formik:r,requestChallengeViolations:c,submitFormStep:o,requestChallengeLoading:d,activeItems:m,subscriptions:p,isRequestChallengeDisabled:h,accountOnly:g,handleResetViolations:x,includeAccount:b}=e;return(0,t.useEffect)(()=>{a({event:"screenview",steps:4,step_description:"new email form",funnel_name:"change email",screen_name:window.location.pathname,total_subscription_count:p.length,selected_subscription_count:m.filter(e=>"account"!==e).length,account_selected:m.includes("account")}
74)},[]),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"max-w-md w-full mx-auto pt-5 tablet:pt-4 px-3 mb-4 flex flex-col text-center gap-6",children:[(0,s.jsx)(n.gj,{variant:"row",steps:[{id:"step-1",label:i("changeEmailPageStep1Label"),status:"completed",hidden:g,onClick:()=>{r.setFieldValue("currentStep","overview")}},{id:"step-2",label:i("changeEmailPageStep2Label"),status:d?"loading":c.length>0?"error":"active"},{id:"step-3",label:i("changeEmailPageStep3Label"),status:"inactive"}]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"heading-4 font-bold mb-1",children:i("changeEmailFormTitle")}),(0,s.jsx)("span",{children:i("changeEmailFormDescription")})]})]}),(0,s.jsx)("div",{className:"bg-white",children:(0,s.jsxs)("form",{onSubmit:o,className:"max-w-md w-full mx-auto pb-6 tablet:pb-10 pt-2 tablet:pt-4 px-3 flex flex-col gap-4",children:[p.length>0&&(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"h-8 border-b border-b-gray-medium flex items-center",children:(0,s.jsx)("h2",{className:"font-semibold",children:i("changeEmailFormHeading")})}),(0,s.jsx)(A.K,{subscriptions:p,activeItems:m})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"font-semibold mb-2",children:i("changeEmailFormNewEmailTitle")}),c?.length>0&&(0,s.jsx)(n.Eg,{variant:"error",className:"mb-2",children:c.map(e=>{let{code:a}=(0,u.ni)(f.B,e);return a&&(0,s.jsx)("p",{"data-testid":`violation-${a}`,children:l(a)},a)})}),(0,s.jsx)(k,{formik:r,disabled:d,handleResetViolations:x,includeAccount:b})]}),(0,s.jsxs)("div",{className:"flex gap-2",children:[!g&&(0,s.jsxs)(n.$n,{type:"button",variant:"secondary",className:"cursor-pointer",onClick:()=>r.setFieldValue("currentStep","overview"),"data-testid":"change-email-form-previous-button",children:[(0,s.jsx)(n.In,{icon:E.Wzs,className:"mr-1"}),i("changeEmailFormPreviousButtonLabel")]}),(0,s.jsx)(I.l,{type:"submit",variant:"primary",className:"grow","data-testid":"change-email-form-next-button",loading:d,disabled:h,children:i("changeEmailFormNextButtonLabel")})]}),(0,s.jsx)("div",{className:"text-center border-t border-gray-medium pt-4",children:(0,s.jsx)(S.N,{href:"/abonnementen",className:"text-anchor hover:text-anchor-dark underline text-sm font-semibold",children:(0,s.jsx)(s.Fragment,{children:i("changeEmailFormCancelLinkLabel")})})})]})})]})}var U=i(79132),F=i(823);let R=(0,u.UG)(`
75  fragment SubscriptionStatusFragment on S2LinkedSubscription {
76    lowerCaseBrandId
77    pcsProduct {
78      descriptor {
79        name
80      }
81    }
82  }
83`);var B=i(25802),P=i(15857);function T({accountResult:e,error:a,newEmail:i,result:t,newspapers:l,moreMedia:r,magazines:c}){let{getErrorTranslation:o}=(0,j.YY)(),{getPortableText:d}=(0,j.c3)(),m=(0,U.Ek)(),{dpgConfig:p}=(0,B.G)(),h=a?(0,u.ni)(f.B,a).code:void 0,g=[...l,...r,...c].filter(({subscriptionKey:e})=>t.filter(({result:e})=>"FAILURE"===e).map(({subscriptionKey:e})=>e).includes(e)),x=[...l,...r,...c].filter(({subscriptionKey:e})=>t.filter(({result:e})=>"SUCCESS"===e).map(({subscriptionKey:e})=>e).includes(e));return(0,s.jsxs)("div",{"data-testid":"change-email-status-list",className:"flex flex-col gap-2 text-sm",children:[h&&(0,s.jsx)(n.Eg,{variant:"error",className:"mt-2",children:o(h)}),g.map(e=>{let{pcsProduct:a}=(0,u.ni)(R,e);return(0,s.jsx)(P.Y,{status:"FAILURE",brandId:e.lowerCaseBrandId,testId:"subscription-status-item-failure",children:(0,s.jsx)(N.A,{"data-dpg-pii":!0,message:d("changeEmailPageFailedUpdateMessage"),values:{product_name:a?.descriptor.name||m[e?.lowerCaseBrandId].seoTitle,new_email:i}})},e.subscriptionKey)}),"FAILURE"===e&&(0,s.jsx)(P.Y,{status:"FAILURE",testId:"account-status-item-failure",children:(0,s.jsx)(N.A,{"data-dpg-pii":!0,message:d("changeEmailPageFailedUpdateMessage_dpgaccount"),values:{brand_name:p.dpgTitle,new_email:i}})}),x.map(e=>{let{pcsProduct:a}=(0,u.ni)(R,e),t=m[e?.lowerCaseBrandId].brandCategory;return(0,s.jsx)(P.Y,{status:"SUCCESS",brandId:e.lowerCaseBrandId,testId:"subscription-status-item-success",children:(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)(N.A,{"data-dpg-pii":!0,message:d("changeEmailPageSuccessfulUpdateMessage"),values:{product_name:a?.descriptor.name||m[e?.lowerCaseBrandId].seoTitle,new_email:i}}),"account"!==t&&(0,s.jsx)(N.A,{message:d(`changeEmailPageSuccessfulUpdateMessage_${t}`,{optional:!0})})]})},e.subscriptionKey)}),"SUCCESS"===e&&(0,s.jsx)(P.Y,{status:"SUCCESS",testId:"account-status-item-success",children:(0,s.jsx)(N.A,{"data-dpg-pii":!0,message:d("changeEmailPageSuccessfulUpdateMessage_dpgaccount"),values:{brand_name:p.dpgTitle,new_email:i}})})]})}function V({changeEmailProps:e}
83){let a=(0,U.PB)(),{pushAnalyticsEvent:i}=(0,w.iK)(),{getPortableText:l,getTranslation:r}=(0,j.c3)(),{accountOnly:c,changeEmailResponse:o,changeEmailViolations:d,changeEmailLoading:m,formik:u,magazines:p,newspapers:h,moreMedia:g}=e,x=(0,t.useMemo)(()=>[...p,...h,...g],[p,h,g]),b=(0,t.useMemo)(()=>o?.subscriptions||[],[o]),f=o?.accountUpdatedResult,v=u.values.new_email,E=b.length>0&&b.every(e=>"FAILURE"===e.result)||0===b.length&&"FAILURE"===f||d.length>0,_=(0,t.useMemo)(()=>x.filter(e=>b.find(a=>"SUCCESS"===a.result&&a.subscriptionKey===e.subscriptionKey)),[b,x]);return(0,t.useEffect)(()=>{!m&&(b?.length||f)&&i({event:"screenview",steps:4,step_description:"change email confirmation",funnel_name:"change email",screen_name:window.location.pathname,update_account_email:!!f,successful_account_update:"SUCCESS"===f,successful_subscription_count:_.length,successful_brand_ids:(0,w.Gk)(_)})},[m,b,f,i,_]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"max-w-md w-full mx-auto pt-5 tablet:pt-4 px-3 mb-4 flex flex-col text-center gap-6",children:[(0,s.jsx)(n.gj,{variant:"row",steps:[{id:"step-1",label:r("changeEmailPageStep1Label"),status:"completed",hidden:c},{id:"step-2",label:r("changeEmailPageStep2Label"),status:"completed"},{id:"step-3",label:r("changeEmailPageStep3Label"),status:m?"loading":E?"error":"completed"}]}),(0,s.jsx)("div",{children:(0,s.jsx)("h2",{className:"heading-4 font-bold mb-1",children:r("changeEmailPageResultTitle")})})]}),(0,s.jsx)("div",{className:"bg-white",children:(0,s.jsxs)("div",{className:"max-w-md w-full mt-3 tablet:mt-6 mx-auto pb-6 tablet:pb-10 px-3 flex flex-col gap-4",children:[(0,s.jsx)(T,{accountResult:f,error:d[0],newEmail:v,result:b,newspapers:h,magazines:p,moreMedia:g}),!m&&(0,s.jsxs)(s.Fragment,{children:[!E&&r("changeEmailPageMailMessage",{optional:!0})&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"text-sm text-center mb-1",children:r("changeEmailPageMailMessage")}),(0,s.jsx)("hr",{className:"border-gray-medium mb-1"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4 text-center text-sm",children:[!E&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(N.A,{className:"mb-1",message:l("changeEmailPageNoMailMessage")}),(0,s.jsx)("hr",{className:"border-gray-medium"})]}),a.host&&(0,s.jsxs)("div",{className:"mt-1",children:[(0,s.jsx)("h2",{className:"heading-6 font-bold mb-4",children:r("changeEmailPageCallToActionTitle")}),(0,s.jsx)(S.N,{href:(0,F.H)(a),passHref:!0,children:(0,s.jsx)(n.$n,{as:"span",variant:"primary",className:"cursor-pointer","data-testid":"change-email-brand-link",children:(0,s.jsx)(N.A,{message:l("changeEmailPageCallToActionBrandLink"),values:{host:a.host}})})})]}),(0,s.jsx)(S.N,{href:"/abonnementen",className:"font-semibold text-anchor hover:text-anchor-dark text-center underline mt-2",children:(0,s.jsx)("span",{children:r("changeEmailPageCallToActionOverviewLink")})})]})]})]})})]})}var D=i(65394);let K=(0,u.UG)(`
84  fragment SubscriptionOptionFragment on S2LinkedSubscription {
85    ...EmailMismatchNotificationFragment
86    brand
87    lowerCaseBrandId
88    subscriptionKey
89    role
90    canonicalSubscription {
91      customer {
92        email
93      }
94    }
95    pcsProduct {
96      descriptor {
97        name
98      }
99    }
100  }
101`);var G=i(95618);function $(e){let a=e.isEnabled,{getTranslation:i,getPortableText:t}=(0,j.c3)(),l=(0,u.ni)(K,e.subscription),c=(0,U.tA)(l.lowerCaseBrandId),o=(0,G.d)(c.subscriptionLogo)?.height(50).url(),d=l.pcsProduct?.descriptor?.name||c.seoTitle;return(0,s.jsx)("div",{className:"flex flex-row items-center mt-2 first:mt-0",children:(0,s.jsxs)("span",{"data-testid":"subscription-item",className:"w-full flex flex-col gap-3",children:[(0,s.jsxs)("div",{className:(0,r.cx)("flex gap-2 text-sm",!a&&"text-gray-dark"),"data-testid":"subscription-label",children:[(0,s.jsx)("div",{className:(0,r.cx)("overflow-hidden rounded-xl w-10 h-10 border border-gray-medium flex-none"),"data-testid":"subscription-image",children:o?(0,s.jsx)("img",{src:o,className:(0,r.cx)("w-full h-full",!a&&"grayscale brightness-150"),title:d}):(0,s.jsx)("div",{className:"w-full h-full bg-gray-light"})}),(0,s.jsxs)("div",{className:"flex flex-col justify-center leading-6",children:[(0,s.jsx)("span",{className:"font-semibold","data-testid":"subscription-title",children:d}),a&&(0,s.jsx)("span",{"data-dpg-pii":!0,children:l.canonicalSubscription.customer?.email}),!a&&(0,s.jsx)("span",{className:"font-regular text-sm","data-testid":"subscription-no-service-available",children:i("changeEmailOverviewNoServiceItem")})]})]}),!a&&(0,s.jsx)("div",{className:"flex flex-col gap-2",children:"OWNER"!==l.role?(0,s.jsx)(n.Eg,{variant:"warning",children:(0,s.jsx)(N.A,{testId:"subscription-not-owner-warning",className:"mb-1",message:t("changeEmailOverviewNotOwnerItemInfoMessage"),values:{brand_id:c.id,product_name:d}})}):(0,s.jsx)(n.Eg,{variant:"info",children:(0,s.jsx)(N.A,{testId:"subscription-no-service-available-info",className:"mb-1",message:t("changeEmailOverviewNoServiceItemInfoMessage"),values:{brand_id:c.id,product_name:d}})})})]})})}let z=(0,u.UG)(`
102  fragment EmailMismatchNotificationFragment on S2LinkedSubscription {
103    lowerCaseBrandId
104    subscriptionId
105    role
106    canonicalSubscription {
107      customer {
108        email
109      }
110      consumer {
111        email
112      }
113    }
114    pcsProduct {
115      descriptor {
116        name
117      }
118    }
119  }
120`);function H({className:e,...a}){var i,t;let l=(0,u.ni)(z,a.subscription),{getPortableText:r}=(0,j.c3)(),c=(0,U.tA)(l.lowerCaseBrandId);if(i=l.canonicalSubscription.consumer?.email,t=l.canonicalSubscription.customer?.email,!i||!t||i===t)return null;
120let o=l.pcsProduct?.descriptor?.name||c.seoTitle;return(0,s.jsx)(n.Eg,{type:"inline",variant:"warning",className:e,children:(0,s.jsx)(N.A,{"data-dpg-pii":!0,testId:"no-consumer-customer-email-address-match",className:"mb-1",message:r("changeEmailOverviewDifferentCustomerEmailWarning"),values:{product_name:o,customer_email:l.canonicalSubscription.customer?.email||"",consumer_email:l.canonicalSubscription.customer?.email||""}})})}function Y({isActive:e,id:a,onToggle:i,...t}){let l=(0,u.ni)(K,t.subscriptions[0]);return(0,s.jsx)("div",{className:"py-3","data-testid":"change-email-overview-subscription-option",children:(0,s.jsxs)("div",{className:"grid grid-cols-[30px_1fr]",children:[(0,s.jsx)(n.Sc,{id:a,className:"mt-2",checked:e,onClick:()=>i(a)}),(0,s.jsxs)("label",{htmlFor:a,children:[t.subscriptions.map(e=>(0,s.jsx)($,{subscription:e,isEnabled:!0},(0,u.ni)(K,e).subscriptionKey)),l?(0,s.jsx)(H,{subscription:l,className:"mt-3"}):null]})]})},a)}function W({newspapers:e,magazines:a,moreMedia:i,nonEligibleSubscriptions:t,activeItems:l,toggleActiveItem:r}){let{getPortableText:c}=(0,j.c3)();return(0,s.jsxs)("ul",{children:[[...e,...i].map(e=>(0,s.jsx)("li",{className:"border-b border-gray-medium last:border-0",children:(0,s.jsx)(Y,{id:e.subscriptionKey,subscriptions:[e],isActive:l.includes(e.subscriptionKey),onToggle:r})},e.subscriptionKey)),a&&a.length>0&&(0,s.jsxs)("li",{className:"border-b border-gray-medium last:border-0",children:[(0,s.jsx)(Y,{id:"magazines",subscriptions:a,isActive:l.includes("magazines"),onToggle:r}),(0,s.jsxs)("div",{className:"text-xs leading-4 flex items-top mb-2",role:"complementary",children:[(0,s.jsx)(n.In,{icon:E.iW_,className:"text-icon mr-1 mt-0.5"}),(0,s.jsx)(N.A,{message:c("changeEmailOverviewMagazineGroupingInfo")})]})]}),t.map(e=>(0,s.jsx)("li",{className:"py-4 pl-6 border-b border-gray-medium last:border-0","data-testid":"change-email-overview-non-eligible-subscription",children:(0,s.jsx)($,{subscription:e,isEnabled:!1})},e.subscriptionKey))]})}function q({isActive:e,onToggle:a}){let{getTranslation:i,getDictionaryStringValue:t,getDictionaryValue:l}=(0,j.c3)(),[r]=(0,o.F7)();return(0,s.jsxs)("div",{className:"grid grid-cols-[30px_1fr_20px]","data-testid":"change-email-account-option",children:[(0,s.jsx)(n.Sc,{id:"dpgaccount",className:"mt-2",checked:e,onCheckedChange:e=>{"indeterminate"!==e&&a(e)}}),(0,s.jsx)("label",{htmlFor:"dpgaccount",children:(0,s.jsxs)("div",{className:"flex gap-2 text-sm",children:[(0,s.jsx)("div",{className:"overflow-hidden rounded-xl w-10 h-10 p-[8px] border border-gray-medium flex-none",children:(0,s.jsx)("div",{className:"w-full h-full bg-gray-dark rounded-md flex justify-center items-center",children:(0,s.jsx)(n.In,{icon:E.X46,className:"text-white",size:"xl"})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-center grow leading-6",children:[(0,s.jsx)("span",{className:"font-semibold",children:i("changeEmailOverviewAccountCheckboxLabel")}),(0,s.jsx)("span",{className:"font-regular text-sm",children:r.profile.contact_information.email??"-"})]})]})}),(0,s.jsx)(n.lG.Root,{trigger:(0,s.jsx)("button",{className:"self-start","aria-label":t("changeEmailAccountOptionDialogTriggerLabel"),children:(0,s.jsx)(n.In,{icon:E.iW_,className:"text-icon",size:"2xl"})}),title:t("changeEmailAccountOptionDialogTitle"),closeButtonLabel:t("changeEmailAccountOptionDialogCloseButtonLabel"),children:(0,s.jsxs)("div",{className:"flex flex-col gap-2 px-5 pb-5 pt-2",children:[(0,s.jsx)(n.lG.Description,{className:"pb-4",children:(0,s.jsx)(N.A,{className:"text-sm",message:l("changeEmailAccountOptionDialogDescription")})}),(0,s.jsx)(n.lG.Close,{asChild:!0,children:(0,s.jsx)(n.$n,{type:"button",variant:"secondary",children:t("changeEmailAccountOptionDialogCloseButtonLabel")})})]})})]})}function J({changeEmailProps:e}){let{newspapers:a,magazines:i,moreMedia:t,nonEligibleSubscriptions:n,fetching:l,activeItems:r,toggleActiveItem:c}=e,{getTranslation:o}=(0,j.c3)();return(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"flex flex-col",children:l?(0,s.jsx)(D.m,{subscriptionCount:1,"aria-label":o("changeEmailLoadingSubscriptionsAriaLabel")}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(W,{newspapers:a,magazines:i,moreMedia:t,nonEligibleSubscriptions:n,activeItems:r,toggleActiveItem:c}),(0,s.jsx)("div",{className:"py-4 border-t border-gray-medium",children:(0,s.jsx)(q,{isActive:r.includes("account"),onToggle:()=>c("account")}
120)})]})})})}function X({changeEmailProps:e}){let{pushAnalyticsEvent:a}=(0,w.iK)(),{getTranslation:i}=(0,j.c3)(),{fetching:l,activeItems:r,formik:{setFieldValue:c}}=e;return(0,t.useEffect)(()=>{a({event:"screenview",steps:4,step_description:"choose subscriptions",funnel_name:"change email",screen_name:window.location.pathname})},[a]),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"max-w-md w-full mx-auto pt-5 tablet:pt-4 px-3 mb-4 flex flex-col text-center gap-6",children:[(0,s.jsx)(n.gj,{variant:"row",steps:[{id:"step-1",label:i("changeEmailPageStep1Label"),status:"active"},{id:"step-2",label:i("changeEmailPageStep2Label"),status:"inactive"},{id:"step-3",label:i("changeEmailPageStep3Label"),status:"inactive"}]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"heading-4 font-bold mb-1",children:i("changeEmailOverviewTitle")}),(0,s.jsx)("span",{children:i("changeEmailOverviewDescription")})]})]}),(0,s.jsx)("div",{className:"bg-white",children:(0,s.jsxs)("div",{className:"max-w-md w-full mx-auto pb-6 tablet:pb-10 pt-2 tablet:pt-4 px-3 flex flex-col",children:[(0,s.jsx)("div",{className:"h-8 border-b border-b-gray-medium flex items-center",children:(0,s.jsx)("h2",{className:"font-semibold",children:i("changeEmailOverviewHeading")})}),(0,s.jsxs)("div",{children:[(0,s.jsx)(J,{changeEmailProps:e}),(0,s.jsx)("div",{className:"grid grid-flow-row gap-2 mt-3",children:(0,s.jsx)(n.$n,{className:"w-full",type:"button",onClick:()=>c("currentStep","form"),variant:"primary","data-testid":"change-email-overview-next-button",disabled:l||r.length<1,children:i("changeEmailOverviewNextButtonLabel")})}),(0,s.jsx)("div",{className:"text-center border-t border-gray-medium pt-4",children:(0,s.jsx)(S.N,{href:"/abonnementen",className:"text-anchor hover:text-anchor-dark underline text-sm font-semibold",children:(0,s.jsx)(s.Fragment,{children:i("changeEmailFormCancelLinkLabel")})})})]})]})})]})}var Q=i(59036),Z=i(78504);function ee(){let e=function({accountOnly:e}){let[{data:a,error:i,fetching:s}]=(0,m.IT)({query:x}),n=(0,v.G)(),j=(0,d.RD)(),[w,E]=(0,t.useState)(null),[N,_]=(0,o.F7)(),[y,C]=(0,t.useState)([]),[S,I]=(0,t.useState)(!1),[L,M]=(0,t.useState)(void 0),[k,A]=(0,t.useState)(3),[O,U]=(0,t.useState)([]),[F,R]=(0,t.useState)(!1),[B,P]=(0,t.useState)(),[T,V]=(0,m.n_)(p),[D,K]=(0,m.n_)(h),G=(0,t.useRef)(!1),$=(0,t.useMemo)(()=>a?.getLinkedSubscriptions?.map(e=>(0,u.ni)(b,e)),[a]),z=(0,t.useCallback)(e=>j(e,e.lowerCaseBrandId),[j]),{truthy:H,falsy:Y}=(0,r.Of)($,z),{newspaper:W,magazine:q,more_media:J}=(0,t.useMemo)(()=>n(H),[n,H]),X=(0,t.useMemo)(()=>W||[],[W]),Q=(0,t.useMemo)(()=>q||[],[q]),Z=(0,t.useMemo)(()=>J||[],[J]),ee=[...X.map(e=>e.subscriptionKey),...Z.map(e=>e.subscriptionKey),...Q.length>0?["magazines"]:[]],ea=e?["account"]:[...ee,"account"],ei=w??ea,es=(0,t.useMemo)(()=>X?.filter(e=>ei.includes(e.subscriptionKey))||[],[ei,X]),et=(0,t.useMemo)(()=>Z?.filter(e=>ei.includes(e.subscriptionKey))||[],[ei,Z]),en=(0,t.useMemo)(()=>Q&&ei.includes("magazines")?Q:[],[ei,Q]),el=(0,t.useMemo)(()=>[...es,...et,...en],[en,es,et]),er=(0,t.useMemo)(()=>ei.includes("account"),[ei]),ec=async(e,{setFieldValue:a})=>{if(R(!0),!L)return;let i=el.map(e=>({brandId:e.brand,subscriptionId:e.subscriptionId}));try{let{data:s,error:t}=await K({input:{challenge:{challengeCode:e.verification_code,challengeId:L.challengeId},includeAccount:er,newEmail:e.new_email,subscriptionBrandIds:i}});if(t)throw U([(0,u.$O)({__typename:"UmsViolation",code:"MO__UNKNOWN_ERROR"},f.B)]),Error(`[use-change-email/changeEmail] Unknown error, status code ${t.response.status}`);if(s?.changeEmail.__typename==="UmsChangeEmailResponse")s?.changeEmail.accountUpdatedResult==="SUCCESS"&&_({...N,profile:{...N.profile,contact_information:{...N.profile.contact_information,email:e.new_email||""}}}),await a("currentStep","result"),P(s.changeEmail),U([]);else if(s?.changeEmail.__typename==="UmsViolations"&&s.changeEmail.violations.length){let e=s.changeEmail.violations;if(e.some(e=>"MO__CHALLENGE_INCORRECT_CODE"===(0,u.ni)(f.B,e).code)){let a=k-1;a>0?A(a):e=[(0,u.$O)({__typename:"UmsViolation",code:"MO__CHALLENGE_TOO_MANY_ATTEMPTS"},f.B)]}U(e)}else U([(0,u.$O)({__typename:"UmsViolation",code:"MO__UNKNOWN_ERROR"},f.B)])}catch(e){(0,g.c_)(e)}finally{R(!1)}},eo=(0,l.Wx)({validationSchema:(0,c.Ik)().shape({new_email:(0,c.Yj)().email("genericFormInvalidEmailMessage").required("genericFormMissingInputErrorMessage"),new_email_repeated:(0,c.Yj)().email("genericFormInvalidEmailMessage").oneOf([(0,c.KR)("new_email")],"genericFormEmailAddressesDoNotMatchMessage").required("genericFormMissingInputErrorMessage"),password:(0,c.Yj)().when([],{is:()=>ei?.includes("account"),then:e=>e.required("genericFormMissingInputErrorMessage")})}),initialValues:{currentStep:e?"form":"overview",new_email:"",new_email_repeated:"",verification_code:"",password:""},validateOnBlur:!0,onSubmit:ec}),ed=()=>{C([]),U([])},em=async e=>{e.preventDefault();let a=await eo.validateForm();
120return(0,r.ZF)(a)?eu():void Object.keys(a).forEach(e=>{eo.setFieldTouched(e,!0,!0)})},eu=async()=>{ed();let{values:{new_email:e,password:a},setFieldValue:i}=eo;await i("verification_code","");try{I(!0);let{data:s,error:t}=await V({input:{includeAccount:ei.includes("account"),newEmail:e,password:er?a:""}});if(t)throw C([(0,u.$O)({__typename:"UmsViolation",code:"MO__UNKNOWN_ERROR"},f.B)]),Error(`[use-change-email/initiateChangeEmail] Unknown error, status code ${t.response.status}`);if(s?.initiateChangeEmail.__typename==="UmsChallengeResponse"&&s.initiateChangeEmail.challengeId)M(s.initiateChangeEmail),A(3),C([]),await i("currentStep","verification");else if(s?.initiateChangeEmail.__typename==="UmsViolations"&&s.initiateChangeEmail.violations.length)C(s.initiateChangeEmail.violations);else throw C([(0,u.$O)({__typename:"UmsViolation",code:"MO__UNKNOWN_ERROR"},f.B)]),Error("[use-change-email/initiateChangeEmail] Empty response")}catch(e){(0,g.c_)(e)}finally{I(!1)}},ep=[...O,...y].some(e=>{let{code:a}=(0,u.ni)(f.B,e);return a&&["MO__CHALLENGE_EXPIRED","MO__CHALLENGE_TOO_MANY_ATTEMPTS","MO__CHALLENGE_LIMIT_REACHED"].includes(a)});(0,t.useEffect)(()=>{G.current=ep},[ep]);let eh=y.some(e=>"MO__CHALLENGE_LIMIT_REACHED"===(0,u.ni)(f.B,e).code),eg=(0,t.useCallback)(()=>{G.current||U([(0,u.$O)({__typename:"UmsViolation",code:"MO__CHALLENGE_EXPIRED"},f.B)])},[]),ex=async()=>{ed(),await eo.setFieldValue("verification_code",""),await eo.setFieldValue("currentStep","form")};return{accountOnly:e,attemptsRemaining:k,changeEmailLoading:F,changeEmailResponse:B,changeEmailViolations:O,formik:eo,handleCancelVerification:ex,handleChallengeIsExpired:eg,handleNewChallengeRequest:eu,handleResetViolations:ed,nonEligibleSubscriptions:Y,isChangeEmailDisabled:ep,isRequestChallengeDisabled:eh,magazines:Q,newspapers:X,moreMedia:Z,requestChallengeLoading:S,requestChallengeResponse:L,requestChallengeViolations:y,toggleActiveItem:e=>{E(a=>(0,r.Eo)(a??ea,e))},submitFormStep:em,activeItems:ei,subscriptions:el,error:i,fetching:s,includeAccount:er}}({accountOnly:(0,Q.U)().hasWebviewLimitation}),{formik:{values:a},error:i}=e;return((0,t.useEffect)(()=>{(0,r.Ux)()},[a.currentStep]),i)?(0,s.jsx)(Z.A,{error:i}):(0,s.jsxs)(n.BJ.Navigator,{current:a.currentStep,children:[(0,s.jsx)(n.BJ.Screen,{name:"overview",children:(0,s.jsx)(X,{changeEmailProps:e})}),(0,s.jsx)(n.BJ.Screen,{name:"form",children:(0,s.jsx)(O,{changeEmailProps:e})}),(0,s.jsx)(n.BJ.Screen,{name:"verification",children:(0,s.jsx)(M,{changeEmailProps:e})}),(0,s.jsx)(n.BJ.Screen,{name:"result",children:(0,s.jsx)(V,{changeEmailProps:e})})]})}},95810:(e,a,i)=>{i.d(a,{S:()=>l});var s=i(6029);i(55729);var t=i(89456),n=i(15615);let l=({timerMessage:e,...a})=>(0,s.jsx)(t.zR,{...a,children:a=>(0,s.jsx)(n.A,{testId:"verification-code-timer",className:"tabular-nums",message:e,values:{time_left:a}})})}}]);

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.