1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c81ff85e-f8d0-4e48-97da-fdec748e52aa",e._sentryDebugIdIdentifier="sentry-dbid-c81ff85e-f8d0-4e48-97da-fdec748e52aa")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6695],{606:(e,r,t)=>{t.d(r,{h:()=>n});var a=t(80263),i=t(70264),s=t(73545);let n=e=>{let{title:r,texts:t}=e,{t:n}=(0,s.s9)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.o5,{as:"h2",variant:"title",size:"xl",className:"mb-md",children:n(r)}),t.map(e=>(0,a.jsx)(i.o5,{color:"neutral-primary",size:"lg",className:"mb-xl",children:n(e)},e))]})}},9483:(e,r,t)=>{t.d(r,{DT:()=>i,TT:()=>s,_z:()=>o,jh:()=>l});var a=t(14816);let i=e=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e),s=e=>{/[a-z ]/i.test(e.key)||e.preventDefault()},n=[8,37,38,39,40,46],l=e=>{if(isNaN(Number(e.key))&&!n.includes(e.keyCode))return e.preventDefault()},o=e=>{let r=(e=>{if(!e)return"errors.address.not_saved.notification";if(1===e.length){if(7===e[0].field_type){if(4===e[0].error_type)return"errors.address.not_saved.forbidden_zipcode.notification";if(5===e[0].error_type)return"errors.address.wrong_zipcode.notification"}return"errors.address.single_wrong_field.notification"}return e.length>1?"errors.address.several_wrong_fields.notification":"errors.address.not_saved.notification"})(e);return{message:r,hasError:!0,fieldName:"errors.address.single_wrong_field.notification"===r?(e=>{switch(a.PU[e]){case"NAME":return"address.form.name";case"SURNAME":return"address.form.surname";case"ADDRESS_DETAILS":return"address.form.street_and_number";case"ZIP_CODE":return"address.form.zip_code";case"CITY":return"address.form.city";case"PHONE":return"address.form.phone";default:return""}})(e[0].field_type):void 0}}},16695:(e,r,t)=>{t.r(r),t.d(r,{PersonalDataContent:()=>eN});var a=t(80263),i=t(606),s=t(22662),n=t(97098),l=t.n(n),o=t(32304),d=t.n(o),c=t(36996),p=t.n(c),m=t(43667),u=t.n(m),h=t(51964),f=t.n(h),x=t(82975),_=t.n(x),g=t(56400),y=t.n(g),j=t(27144),C=t.n(j),E=t(67415),w=t.n(E),b=t(35458),v=t(53239),T=t(44797),I=t(73545),A=t(45631),N=t(87356),k=t(14816),R=t(48114),O=t(64797),D=t(84081),F=t(58146),S=t(2450);let L=S.default.div.withConfig({displayName:"styles__TextDescription",componentId:"groot__sc-40700d7e-0"})(["margin-bottom:",";"],e=>{let{theme:r}=e;return r.space.s500}),M=S.default.div.withConfig({displayName:"styles__InputWrapper",componentId:"groot__sc-40700d7e-1"})(["margin-bottom:",";"],e=>{let{theme:r}=e;return r.space.s400}),P=e=>{let{open:r,closeAction:t,submitAction:i,title:s,text:n,actionTitle:l}=e;return(0,a.jsxs)(D.Alert,{open:r,onClose:()=>t(),children:[(0,a.jsx)(D.Header,{children:s}),(0,a.jsx)(D.Content,{children:(0,a.jsx)(L,{children:n})}),(0,a.jsx)(D.Footer,{children:(0,a.jsx)(F.default,{onClick:()=>i(),children:l})})]})};var W=t(16748),z=t.n(W),G=t(49631),Z=t.n(G),U=t(35321),B=t(53092),X=t(36324),H=t(52488);let $=S.default.div.withConfig({displayName:"styles__Row",componentId:"groot__sc-8b4bc1fc-0"})(["display:flex;justify-content:space-between;padding:"," 0;border-bottom:",";"],e=>{let{theme:r}=e;return r.space.s200},e=>{let{$withoutBorderBottom:r,theme:t}=e;return!r&&"1px solid ".concat(t.colors.gray.s300,";")}),Y=S.default.div.withConfig({displayName:"styles__NameWrapper",componentId:"groot__sc-8b4bc1fc-1"})(["",";"],e=>{let{theme:r}=e;return(0,S.css)(r.typography.body.boldText)}),K=S.default.div.withConfig({displayName:"styles__IconWrapper",componentId:"groot__sc-8b4bc1fc-2"})(["padding:0 ",";"],e=>{let{theme:r}=e;return r.space.s100}),q=S.default.div.withConfig({displayName:"styles__TextContainer",componentId:"groot__sc-8b4bc1fc-3"})(["flex:1;padding:0 ",";"],e=>{let{theme:r}=e;return r.space.s100}),V=S.default.div.withConfig({displayName:"styles__UnderlinedTextContainer",componentId:"groot__sc-8b4bc1fc-4"})(["text-decoration:underline;flex:1;color:",";padding:0 ",";cursor:pointer;"],e=>{let{theme:r}=e;return r.colors.text.body},e=>{let{theme:r}=e;return r.space.s100}),Q=S.default.div.withConfig({displayName:"styles__IconContainer",componentId:"groot__sc-8b4bc1fc-5"})(["cursor:pointer;"]);var J=t(85420);let ee=e=>{let{isOpen:r,onClose:t}=e,{t:i}=(0,I.s9)(),{track:n}=(0,s.useTracking)();(0,v.useEffect)(()=>(n("Loads Acount Page",{"Page Name":"Modify Email"}),()=>{d(""),p("")}),[r]);let l=(0,A.j)(),[o,d]=(0,v.useState)(""),[c,p]=(0,v.useState)(""),m=(0,N.G)(X.ms)||[],u=e=>{let{name:r,value:t}=e.currentTarget,a=m.filter(e=>e.fieldType!==r);l((0,H.iw)(a));let i=(0,U.A)(t);switch(r){case k.pZ.NEW_EMAIL:d(i);break;case k.pZ.CONFIRM_EMAIL:p(i)}}
1,h=e=>{let r=m.find(r=>r.fieldType===e);return r?i(null==r?void 0:r.errorCode):""};return(0,a.jsxs)(D.Alert,{open:r,onClose:t,children:[(0,a.jsx)(Q,{onClick:t,children:(0,a.jsx)(z(),{})}),(0,a.jsx)(D.Header,{children:i("myprofile.title.personaldata.mail")}),(0,a.jsxs)(D.Content,{children:[(0,a.jsx)(L,{children:i("myprofile.text.personaldata.newmail")}),(0,a.jsx)(M,{children:(0,a.jsx)(Z(),{label:i("myprofile.emailedit.newmail")+"*",isFullWidth:!0,value:o,onChange:u,name:k.pZ.NEW_EMAIL,required:!0,"data-testid":"edit-email-newEmail-input",maxLength:50,hasError:m.some(e=>e.fieldType===k.pZ.NEW_EMAIL),helperText:h(k.pZ.NEW_EMAIL)})}),(0,a.jsx)(M,{children:(0,a.jsx)(Z(),{label:i("myprofile.emailedit.newmailconfirmation")+"*",isFullWidth:!0,"data-testid":"edit-email-confirm-input",value:c,onChange:u,name:k.pZ.CONFIRM_EMAIL,maxLength:50,required:!0,hasError:m.some(e=>e.fieldType===k.pZ.CONFIRM_EMAIL),helperText:h(k.pZ.CONFIRM_EMAIL)})})]}),(0,a.jsx)(D.Footer,{children:(0,a.jsx)(F.default,{"data-testid":"edit-email-submit",isFullWidth:!0,onClick:()=>{let e=(e=>{let{newEmail:r,confirmEmail:t}=e;return[{errorCondition:!r,error:{fieldType:k.pZ.NEW_EMAIL,errorCode:"myprofile.error.missingmail"}},{errorCondition:!(0,J.lQ)(r),error:{fieldType:k.pZ.NEW_EMAIL,errorCode:"errors.not-valid-mail"}},{errorCondition:!(0,J.lQ)(t),error:{fieldType:k.pZ.CONFIRM_EMAIL,errorCode:"errors.not-valid-mail"}},{errorCondition:r!==t,error:{fieldType:k.pZ.CONFIRM_EMAIL,errorCode:"errors.non-identical-mails"}},{errorCondition:!t,error:{fieldType:k.pZ.CONFIRM_EMAIL,errorCode:"myprofile.error.missingconfirmmail"}}].filter(e=>{let{errorCondition:r}=e;return r}).map(e=>{let{error:r}=e;return r})})({newEmail:o,confirmEmail:c});(null==e?void 0:e.length)>0?(l((0,H.iw)(e)),l((0,B.rp)("errors.address.several_wrong_fields.notification"))):(n("Click",{"Click Name":"Save Email modification"}),l((0,H.VE)(o)))},children:i("myprofile.cta.personaldata")})})]})};var er=t(95679),et=t(64867);let ea=e=>{let{isOpen:r,onClose:t}=e,{track:i}=(0,s.useTracking)();(0,v.useEffect)(()=>(i("Loads Acount Page",{"Page Name":"Modify Password"}),()=>{l(""),d(""),p(""),y((0,H.$j)())}),[r]);let[n,l]=(0,v.useState)(""),[o,d]=(0,v.useState)(""),[c,p]=(0,v.useState)(""),[m,u]=(0,v.useState)(!0),[h,f]=(0,v.useState)(!0),x=(0,N.G)(X.NE),_=(0,N.G)(X.u1),g=(0,N.G)(X.in),y=(0,A.j)(),{t:j}=(0,I.s9)(),C=()=>u(o===c),{CURRENT_PASSWORD:E,PASSWORD:w,CONFIRM_PASSWORD:b}=k.eW,T=e=>{u(!0),y((0,H.$j)());let{name:r,value:t}=e.target;switch(r){case E:l(t);break;case w:d(t);break;case b:p(t)}},R=n&&g.find(e=>"password"===e.fieldType)?j("error.incorrect-password"):"";return(0,a.jsxs)(D.Alert,{open:r,onClose:t,children:[(0,a.jsx)(Q,{onClick:t,children:(0,a.jsx)(z(),{})}),(0,a.jsx)(D.Header,{children:j("myprofile.title.personaldata.password")}),(0,a.jsxs)(D.Content,{children:[(0,a.jsx)(L,{children:j("myprofile.text.personaldata.newpassword")}),(0,a.jsx)(M,{children:(0,a.jsx)(Z(),{type:"password","data-testid":"currentPassword",name:E,required:!0,autoComplete:"new-password",value:n,isFullWidth:!0,label:j("text.last-password"),hasError:!h||!!(null==R?void 0:R.length),errorMessage:!h||!!(null==R?void 0:R.length)&&R,onBlur:()=>f(!!(null==n?void 0:n.length)),onChange:T})}),(0,a.jsx)(M,{children:(0,a.jsx)(er.l,{"data-testid":"newPassword",name:w,autoComplete:"new-password",label:j("text.new-password"),value:o,isFullWidth:!0,showTips:!0,showProgressBar:!0,onChange:T,onBlur:()=>{c&&C()}})}),(0,a.jsx)(M,{children:(0,a.jsx)(Z(),{type:"password","data-testid":"confirmPassword",name:b,autoComplete:"new-password",value:c,isFullWidth:!0,label:j("text.new-password.confirm"),hasError:!m,errorMessage:!m&&j("forgotpass.renew.error.identical"),onBlur:C,onChange:T})})]}),(0,a.jsxs)(D.Footer,{children:[(0,a.jsx)(F.default,{"data-testid":"edit-password-submit",type:"submit",loading:x,size:"medium",isFullWidth:!0,onClick:e=>{e.preventDefault();let r=o===c&&(0,J.OF)(o);!x&&r&&(i("Click",{"Click Name":"Save Password modification"}),y((0,H.ou)({oldPassword:n,newPassword:o})))},children:j("myprofile.cta.personaldata")}),_&&(0,a.jsx)(et.IW,{"data-testid":"updated-password-error",children:j("errors.required-field.notification")})]})]})};var ei=t(70264),es=t(43937),en=t.n(es),el=t(53583),eo=t(53064),ed=t(72599),ec=t.n(ed),ep=t(6561),em=t(50743);let eu=()=>{var e;let{t:r}=(0,I.s9)(),t=r("post_sales.personal_data_edit.consent_management.amob_sharing_description"),i=r("post_sales.personal_data_edit.consent_management.communication_preferences_link_label"),s=r("post_sales.personal_data_edit.consent_management.communication_preferences_link_url"),n=r("post_sales.personal_data_edit.consent_management.cookie_management_link_label"),l=t.split(n),o=null==l||null==(e=l[1])?void 0:e.split(i);return(0,v.useEffect)(()=>{(0,ep.reloadOTBanner)()},[]),(0,a.jsx)(ei.az,{display:"flex",children:(0,a.jsxs)(ei.o5,{as:"p",variant:"body",
1size:"xs",children:[null==l?void 0:l[0],(0,a.jsx)(ec(),{tag:"button",className:"ot-sdk-show-settings-cgu",children:r("post_sales.personal_data_edit.consent_management.cookie_management_link_label")}),null==o?void 0:o[0],(0,a.jsx)(em.I,{href:s,target:"_blank",textSize:"xs",children:i}),null==o?void 0:o[1]]})})},eh=S.default.div.withConfig({displayName:"styles__LegalTextWrapper",componentId:"groot__sc-4335b813-0"})(["margin-bottom:",";"],e=>{let{theme:r}=e;return r.space.s300}),ef=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eh,{children:(0,a.jsx)(eo.T,{textKey:"post_sales.personal_data_edit.consent_management.member_relation_description",linkKey:"post_sales.personal_data_edit.consent_management.communication_preferences_link_label",linkUrlKey:"post_sales.personal_data_edit.consent_management.communication_preferences_link_url",textSize:"xs"})}),(0,a.jsx)(eh,{children:(0,a.jsx)(eu,{})}),(0,a.jsx)(eh,{children:(0,a.jsx)(eo.T,{textKey:"post_sales.personal_data_edit.consent_management.privacy_policy_info_description",linkKey:"post_sales.personal_data_edit.consent_management.privacy_policy_link_label",linkUrlKey:"post_sales.personal_data_edit.consent_management.privacy_policy_link_url",textSize:"xs"})})]});var ex=t(7340),e_=t.n(ex),eg=t(15563),ey=t.n(eg);C().extend(e_()),C().extend(ey());var ej=t(9483);let eC=S.default.div.withConfig({displayName:"styles__TextDescription",componentId:"groot__sc-73ec2fb1-0"})(["margin-bottom:",";"],e=>{let{theme:r}=e;return r.space.s500}),eE=S.default.div.withConfig({displayName:"styles__ChipWrapper",componentId:"groot__sc-73ec2fb1-1"})(["display:flex;gap:",";margin-top:",";margin-bottom:",";"],e=>{let{theme:r}=e;return r.space.s200},e=>{let{theme:r}=e;return r.space.s100},e=>{let{theme:r}=e;return r.space.s400}),ew=S.default.div.withConfig({displayName:"styles__InputWrapper",componentId:"groot__sc-73ec2fb1-2"})(["margin-bottom:",";"],e=>{let{theme:r}=e;return r.space.s400}),eb=S.default.div.withConfig({displayName:"styles__ErrorWrapper",componentId:"groot__sc-73ec2fb1-3"})(["text-align:center;color:",";"],e=>{let{theme:r}=e;return r.colors.red.s75}),ev=e=>{var r,t;let{isOpen:i,onClose:n,initialGenderType:l,initialFirstName:o,initialLastName:d,initialPhone:c,initialBirthDate:p}=e,{t:m}=(0,I.s9)(),u=(0,A.j)(),{track:h}=(0,s.useTracking)(),f=(0,N.G)(X.u1),[x,_]=(0,v.useState)(k.w7.OTHER),[g,y]=(0,v.useState)(""),[j,E]=(0,v.useState)(""),[w,b]=(0,v.useState)(""),[T,R]=(0,v.useState)(C()(p).format(k.Es)),O=(0,N.G)(X.QO)||[],S=(0,N.G)(X.ZY),{NAME:L,LAST_NAME:M,PHONE:P,DATE_OF_BIRTH:W}=k.fv;(0,v.useEffect)(()=>(h("Loads Acount Page",{"Page Name":"Modify Personal Data"}),i&&(_(l),y(o),E(d),R(C()(p).format(k.Es)),b(c)),()=>{u((0,H.$j)())}),[i]);let G=e=>{let{name:r,value:t}=e.currentTarget,a=O.filter(e=>e.fieldType!==r);u((0,H.Me)(a));let i=(0,U.A)(t);switch(r){case L:y(i);break;case M:E(i);break;case P:b(i)}},B=w&&S.find(e=>e.fieldType===P)?m("address.form.phone.error.wrong"):"";return(0,a.jsxs)(D.Alert,{open:i,onClose:n,children:[(0,a.jsx)(Q,{onClick:n,children:(0,a.jsx)(z(),{})}),(0,a.jsx)(D.Header,{children:m("myprofile.title.personaldata.edit")}),(0,a.jsxs)(D.Content,{children:[(0,a.jsx)(eC,{children:m("myprofile.text.personaldata.please")}),(0,a.jsx)(ei.o5,{children:m("myprofile.editpersonaldata.gender")}),(0,a.jsxs)(eE,{children:[(0,a.jsx)(en(),{label:m("text.civilitygenderf"),compact:!0,checked:x===k.w7.FEMALE,onChange:()=>_(k.w7.FEMALE),"data-testid":"editPersonalDataCivilityFemaleChip"}),(0,a.jsx)(en(),{label:m("text.civilitygenderm"),compact:!0,checked:x===k.w7.MALE,onChange:()=>_(k.w7.MALE),"data-testid":"editPersonalDataCivilityMaleChip"}),(0,a.jsx)(en(),{label:m("text.civilitygendero"),compact:!0,checked:x===k.w7.OTHER,onChange:()=>_(k.w7.OTHER),"data-testid":"editPersonalDataCivilityOtherChip"})]}),(0,a.jsx)(ew,{children:(0,a.jsx)(Z(),{"data-testid":"editPersonalDataFirstnameInput",label:m("myprofile.editpersonaldata.firstname"),isFullWidth:!0,value:g,onChange:G,name:L,maxLength:20,hasError:O.some(e=>e.fieldType===L),helperText:O.some(e=>e.fieldType===L)?m("address.form.name.error.empty"):""})}),(0,a.jsx)(ew,{children:(0,a.jsx)(Z(),{"data-testid":"editPersonalDataLastnameInput",label:m("myprofile.editpersonaldata.lastname"),isFullWidth:!0,value:j,onChange:G,name:M,maxLength:20,hasError:O.some(e=>e.fieldType===M),helperText:O.some(e=>e.fieldType===M)?m("address.form.surname.error.empty"):""})}),(0,a.jsx)(ew,{children:(0,a.jsx)(el.Ay,{label:m("myprofile.editpersonaldata.dateofbirth"),value:T,onChange:e=>{let r=O.filter(e=>e.fieldType!==W);u((0,H.Me)(r)),R((0,U.A)(e.currentTarget.value))},name:W,hasError:O.some(e=>e.fieldType===W),errorMessage:m(null!=(t=null==(r=O.find(e=>e.fieldType===W))?void 0:r.errorCode)?t:""),"data-testid":"editPersonalDataDateInput",placeholder:m("myprofile.editpersonaldata.bday.desktop"),isFullWidth:!0})}),(0,a.jsx)(ew,{children:(0,a.jsx)(Z(),{label:"".concat(m("myprofile.editpersonaldata.phone")),value:w,onKeyDown:ej.jh,onChange:G,name:P,"data-testid":"editPersonalDataPhoneInput",hasError:!!w&&S.some(e=>e.fieldType===P),errorMessage:null!=B?B:"",isFullWidth:!0})}),(0,a.jsx)(eb,{children:m(f)}),(0,a.jsx)(ef,{})]}),(0,a.jsx)(D.Footer,{children:(0,a.jsx)(F.default,{"data-testid":"editPersonalDataButton",isFullWidth:!0,onClick:()=>{let e=(e=>{let{genderType:r,birthDate:t,name:a,lastName:i}=e;return[{errorCondition:!r,error:{fieldType:k.fv.GENDER,errorCode:k.O4.MISSING_FIELD}},{errorCondition:!t||(e=>{let r=C()(e,k.Es);return 18>=C()().diff(r,"year")})(t),error:{fieldType:k.fv.DATE_OF_BIRTH,errorCode:"errors.date-of-birth-format"}},{errorCondition:!C()(t,k.Es).isValid(),error:{fieldType:k.fv.DATE_OF_BIRTH,errorCode:k.O4.NOT_VALID}},{errorCondition:!a,error:{fieldType:k.fv.NAME,errorCode:k.O4.MISSING_FIELD}},{errorCondition:!i,error:{fieldType:k.fv.LAST_NAME,errorCode:k.O4.MISSING_FIELD}}].filter(e=>{let{errorCondition:r}=e;return r}).map(e=>{let{error:r}=e;return r})})({genderType:x,birthDate:T,name:g,lastName:j});if(u((0,H.Me)(e)),e.length>0)return void u((0,H.rp)("errors.address.several_wrong_fields.notification"));let r=C()((e=>{if(!e)return null;let r=C()(e,k.Es);return r.isValid()?r.utc().toDate():null})(T)).format("YYYY-MM-DDTHH:mm:ss[Z]");h("Click",{"Click Name":"Save My profile modification"}),u((0,H.fs)({firstName:g,lastName:j,gender:x,birthDate:r,phone:w}))},children:m("myprofile.cta.personaldata")})})]})},eT=S.default.div.withConfig({displayName:"styles__CTA",componentId:"groot__sc-e07894e3-0"})(["margin-top:",";width:100%;"],e=>{let{theme:r}=e;return r.space.s200}),eI=e=>{let{isOpen:r,onClose:t,signedInWith:i}=e,{t:s}=(0,I.s9)(),n=(0,A.j)(),l=null==i?void 0:i.name,o=null==i?void 0:i.id;return(0,a.jsxs)(D.Alert,{open:r,onClose:()=>t(),children:[(0,a.jsx)(D.Header,{children:s("myprofile.personaldata.unlink.modal.title").replace("${social}",l)}),(0,a.jsx)(D.Content,{children:(0,a.jsx)(L,{children:s("myprofile.personaldata.unlink.modal.text").replace("${social}",l)})}),(0,a.jsxs)(D.Footer,{children:[(0,a.jsx)(eT,{children:(0,a.jsx)(F.default,{"data-testid":"button-no-unlink",variant:"tertiary",isFullWidth:!0,onClick:()=>t(),children:s("myprofile.personaldata.unlink.modal.cta.no")})}
1),(0,a.jsx)(F.default,{"data-testid":"button-yes-unlink",isFullWidth:!0,onClick:()=>void n((0,H.$e)(o)),children:s("myprofile.personaldata.unlink.modal.cta.yes").replace("${social}",l)})]})]})},eA=e=>{let{action:r}=e,t=(0,A.j)(),{track:i}=(0,s.useTracking)(),n=(0,b.useRouter)(),[o,c]=(0,v.useState)(""),{t:m}=(0,I.s9)(),h=(0,N.G)(X.xo),x=(0,N.G)(X.w5),g=(0,N.G)(X.O4),j=(0,N.G)(X.Y),E=(0,N.G)(X.lU),D=(0,N.G)(X.cr),F=(0,N.G)(X.Oe),S=(0,N.G)(X.hS),L=(0,N.G)(X.SP),M=(0,N.G)(X.nQ),W=(0,N.G)(X.nv),z=(0,N.G)(X.f8),G=(0,N.G)(X.oD),Z=(0,N.G)(X.f2),U=(0,N.G)(X.qq),B=(0,N.G)(X.Rm),J=(0,N.G)(X.k);(0,v.useEffect)(()=>{C().extend(w()),c(C()(L).format(k.Es)),r===k.XO.MANAGE&&(i("Click",{"Click Name":"Account modification"}),i("Loads Acount Page",{"Page Name":"Manage Account"}))},[]);let er=()=>{i("Click",{"Click Name":"My profile modification"}),t((0,H.xX)(!0))},et=()=>{i("Click",{"Click Name":"Email modification"}),t((0,H.dY)(!0))},ei=()=>{i("Click",{"Click Name":"Password modification"}),t((0,H.mF)(!0))},es=e=>{switch(i("Click",{"Click Name":"Continue Account Modification","Account Action":(0,O.FI)(e)}),e){case k.XO.NOTIFICATIONS:(0,R.JU)(n);break;case k.XO.DEACTIVATE:n.push("".concat(T.My,"?action=").concat(k.XO.DEACTIVATE));break;case k.XO.DELETE:n.push("".concat(T.My,"?action=").concat(k.XO.DELETE))}};return(0,v.useEffect)(()=>{r===k.XO.EDIT_EMAIL?et():r===k.XO.EDIT_PASSWORD?ei():r===k.XO.EDIT_PERSONAL_DATA&&er()},[r]),(0,a.jsxs)("div",{children:[(0,a.jsxs)($,{children:[(0,a.jsx)(K,{children:j===k.w7.FEMALE?(0,a.jsx)(d(),{height:"24px",width:"24px"}):(0,a.jsx)(l(),{height:"24px",width:"24px"})}),(0,a.jsxs)(q,{children:[g&&x&&(0,a.jsxs)(Y,{children:[g," ",x]}),(0,a.jsxs)("div",{children:[m("myprofile.personaldata.gender")," ",m(E)]}),D&&(0,a.jsxs)("div",{"data-testid":"dateofbirth",children:[m("myprofile.personaldata.dateofbirth")," ",C()(D).format(k.Es)]}),F&&(0,a.jsxs)("div",{children:[m("myprofile.personaldata.phone")," ",F]}),(0,a.jsxs)("div",{children:[m("myprofile.personaldata.membersince")," ",o]})]}),(0,a.jsx)(Q,{"data-testid":"open-edit-personal-data",onClick:er,children:(0,a.jsx)(u(),{width:"24px",height:"24px"})})]}),(0,a.jsxs)($,{children:[(0,a.jsx)(K,{children:(0,a.jsx)(f(),{height:"24px",width:"24px"})}),(0,a.jsx)(q,{children:S}),U&&(0,a.jsx)(Q,{"data-testid":"open-edit-email",onClick:et,children:(0,a.jsx)(u(),{width:"24px",height:"24px"})})]}),(0,a.jsxs)($,{children:[(0,a.jsx)(K,{children:(0,a.jsx)(_(),{height:"24px",width:"24px"})}),(0,a.jsx)(q,{children:m("myprofile.personaldata.password")}),B&&(0,a.jsx)(Q,{"data-testid":"open-edit-password",onClick:ei,children:(0,a.jsx)(u(),{width:"24px",height:"24px"})})]}),!!h&&(0,a.jsxs)($,{children:[(0,a.jsx)(K,{children:(0,a.jsx)(y(),{width:"24px",height:"24px"})}),(0,a.jsx)(q,{children:m("myprofile.personaldata.signedwith").replace("${social}",null==h?void 0:h.name)}),B&&(null==h?void 0:h.isEditable)&&(0,a.jsx)(Q,{"data-testid":"open-unlink-account",onClick:()=>t((0,H.FB)(!0)),children:(0,a.jsx)(p(),{width:"24px",height:"24px"})})]}),(0,a.jsx)($,{children:(0,a.jsx)(V,{onClick:()=>es(k.XO.NOTIFICATIONS),children:m("myprofile.subtitle.account.notifications")})}),(0,a.jsx)($,{children:(0,a.jsx)(V,{onClick:()=>es(k.XO.DEACTIVATE),children:m("myprofile.subtitle.account.deactivate")})}),(0,a.jsx)($,{$withoutBorderBottom:!0,children:(0,a.jsx)(V,{onClick:()=>es(k.XO.DELETE),children:m("myprofile.subtitle.account.deleteforever")})}),M&&(0,a.jsx)(ev,{isOpen:M,onClose:()=>t((0,H.xX)(!1)),initialGenderType:j,initialFirstName:g,initialLastName:x,initialPhone:F,initialBirthDate:D}),J&&(0,a.jsx)(ea,{isOpen:J,onClose:()=>t((0,H.mF)(!1))}),W&&(0,a.jsx)(ee,{isOpen:W,onClose:()=>t((0,H.dY)(!1))}),!!h&&(0,a.jsx)(eI,{isOpen:z,onClose:()=>t((0,H.FB)(!1)),signedInWith:h}),(0,a.jsx)(P,{open:G,closeAction:()=>t((0,H.t6)(!1)),submitAction:()=>t((0,H.t6)(!1)),title:m("myprofile.modal.title.personaldata.mailsent"),text:m("myprofile.modal.text.personaldata.mailsent"),actionTitle:"OK"}),(0,a.jsx)(P,{open:Z,closeAction:()=>t((0,H.Oo)(!1)),submitAction:()=>{t((0,H.Oo)(!1))},title:m("myprofile.modal.title.editpassword.mailsent"),text:m("myprofile.modal.text.editpassword.mailsent"),actionTitle:"OK"})]})},eN=e=>{let{action:r}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.h,{title:"menu.title.personaldata",texts:["myprofile.text.personaldata.remember"]}),(0,a.jsx)(eA,{action:r})]})}},50743:(e,r,t)=>{t.d(r,{I:()=>s});var a=t(80263),i=t(70264);let s=e=>{let{textSize:r="md",href:t,target:s,children:n}=e;return(0,a.jsx)(i.o5,{color:"brand",as:"span",size:r,children:(0,a.jsx)(i.Yq,{href:t,target:s,rel:"_blank"===s?"noopener noreferrer":void 0,children:n})})}},53064:(e,r,t)=>{t.d(r,{T:()=>l});var a=t(80263),i=t(70264),s=t(73545),n=t(50743);let l=e=>{let{textKey:r,linkKey:t,linkUrlKey:l,isTextInsteadKey:o,isLinkTextInsteadKey:d,isLinkUrlTextInsteadKey:c,textSize:p,openSelf:m}=e,{t:u}=(0,s.s9)(),h=o?r:u(r.toLowerCase()||""),f=d?t||"":u((null==t?void 0:t.toLowerCase())||""),x=c?l:u((null==l?void 0:l.toLowerCase())||""),_=null==h?void 0:h.split(f);return x&&(null==_?void 0:_.length)!==1?(0,a.jsx)(i.az,{display:"flex",children:(0,a.jsxs)(i.o5,{as:"p",variant:"body",
1size:p,children:[(null==_?void 0:_[0])||"",(0,a.jsx)(n.I,{href:x,target:m?"_self":"_blank",textSize:p,children:f}),(null==_?void 0:_[1])||""]})}):(0,a.jsx)(i.az,{display:"flex",children:(0,a.jsx)(i.o5,{as:"p",variant:"body",size:"md",children:h})})}},85420:(e,r,t)=>{t.d(r,{As:()=>u,Bj:()=>f,H:()=>m,MM:()=>o,NI:()=>p,OF:()=>c,Rd:()=>s,X1:()=>h,lQ:()=>d,rP:()=>l,uU:()=>n});var a=t(87475),i=t(36001).Buffer;let s=e=>e.length>=8&&e.length<50,n=e=>e.toUpperCase()!==e&&e.toLowerCase()!==e,l=e=>/\d/.test(e),o=e=>/(?=.*?[#?!@$%^&*-.;+¨(),/<>_~â¬Â£\\°{}[\]ù]).+/.test(e),d=e=>RegExp("^\\w+(\\.?[-+\\w])*@\\w+([-.]\\w+)*\\.[a-zA-Z]{2,80}$").test(e),c=e=>s(e)&&n(e)&&l(e)&&o(e),p=(e,r,t,i)=>(Number(t===a.a9.CORRECT)+Number(r===a.a9.CORRECT)+Number(e===a.a9.CORRECT)+Number(i===a.a9.CORRECT))/4*100,m=e=>{var r;return e&&null!=(r=a.wn[e.toLowerCase()])?r:a.wn.fashion},u=e=>{let r=JSON.parse(i.from(e.split(".")[1],"base64").toString());return{id:r.sub,email:r.email}},h=e=>{let r=JSON.parse(i.from(e.split(".")[1],"base64").toString());return{id:r.sub,email:r.email,firstName:r.given_name,lastName:r.family_name}},f=(e,r)=>e!==r},95679:(e,r,t)=>{t.d(r,{l:()=>E});var a=t(80263),i=t(70264),s=t(82259),n=t(49631),l=t.n(n),o=t(53239),d=t(60241),c=t(43058),p=t.n(c),m=t(7685),u=t.n(m),h=t(73545),f=t(87475);let x=e=>{let{errorStatus:r,label:t}=e;return(0,a.jsxs)(i.az,{display:"flex",align:"center",marginBottom:"sm",children:[(e=>{let r=(0,s.cn)("mr-sm inline-flex size-2xl items-center justify-center",(e=>e===f.a9.CORRECT?"[&_path]:fill-ct-success-default":e===f.a9.FAILED?"[&_path]:fill-ct-error-default":"[&_path]:fill-ct-neutral-secondary-default")(e));switch(e){case f.a9.CORRECT:return(0,a.jsx)("span",{className:r,children:(0,a.jsx)(d.IconCheck,{width:"20px",height:"20px"})});case f.a9.FAILED:return(0,a.jsx)("span",{className:r,children:(0,a.jsx)(u(),{width:"20px",height:"20px"})});default:return(0,a.jsx)("span",{className:r,children:(0,a.jsx)(p(),{width:"10px",height:"10px"})})}})(r),(0,a.jsx)(i.o5,{as:"span",variant:"body",size:"md",color:(e=>e===f.a9.CORRECT?"success":e===f.a9.FAILED?"error":"neutral-primary")(r),children:t})]})},_=e=>{let{errorDigit:r,errorFormat:t,errorLength:s,errorSpecialChar:n}=e,{t:l}=(0,h.s9)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.az,{marginTop:"md",marginBottom:"sm",children:(0,a.jsx)(i.o5,{variant:"body",size:"md",color:"neutral-secondary",children:l("text.pedago-password")})}),(0,a.jsx)(x,{errorStatus:s,label:l("text.pedago-passwordlength")}),(0,a.jsx)(x,{errorStatus:t,label:l("text.pedago-passwordhighandlowcase")}),(0,a.jsx)(x,{errorStatus:r,label:l("text.pedago-passwordatleastonenumber")}),(0,a.jsx)(x,{errorStatus:n,label:l("text.pedago-passwordspecialcar")})]})};var g=t(85420),y=function(e){return e.UPDATE_ERRORS="UPDATE_ERRORS",e.RESET_ERRORS="RESET_ERRORS",e}({});let j={errorLength:f.a9.DEFAULT,errorFormat:f.a9.DEFAULT,errorDigit:f.a9.DEFAULT,errorSpecialChar:f.a9.DEFAULT},C=(e,r)=>{switch(r.type){case y.UPDATE_ERRORS:return{errorLength:(0,g.Rd)(r.value)?f.a9.CORRECT:f.a9.FAILED,errorFormat:(0,g.uU)(r.value)?f.a9.CORRECT:f.a9.FAILED,errorDigit:(0,g.rP)(r.value)?f.a9.CORRECT:f.a9.FAILED,errorSpecialChar:(0,g.MM)(r.value)?f.a9.CORRECT:f.a9.FAILED};case y.RESET_ERRORS:return j;default:throw Error("Undefined action type")}},E=e=>{let{showTips:r,showProgressBar:t,...n}=e,[d,c]=(0,o.useReducer)(C,j);(0,o.useEffect)(()=>{p((null==n?void 0:n.value)||"")},[n.value,n.hasError]);let p=e=>{c({type:y.UPDATE_ERRORS,value:e}),0!==e.length||n.hasError||c({type:y.RESET_ERRORS})},m=(0,g.NI)(d.errorDigit,d.errorFormat,d.errorLength,d.errorSpecialChar);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.az,{position:"relative",className:"h-6xl",children:[(0,a.jsx)(l(),{...n,type:"password"}),t&&(0,a.jsx)(i.az,{"data-testid":"progress-bar",position:"absolute",className:(0,s.cn)("bottom-none h-xs rounded-b-xs transition-all duration-slow",(e=>(0,s.cn)({"bg-bg-success-default":100===e,"bg-bg-warning-default":e>50&&e<100,"bg-bg-error-default":e<=50,"w-none":0===e,"w-1/4":25===e,"w-1/2":50===e,"w-3/4":75===e,"w-full":100===e}))(m))})]}),r&&(0,a.jsx)(_,{errorDigit:d.errorDigit,errorFormat:d.errorFormat,errorLength:d.errorLength,errorSpecialChar:d.errorSpecialChar})]})}}}]);
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.