1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},i=(new e.Error).stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="5210f680-c377-4c4e-9b49-2d41269134cb",e._sentryDebugIdIdentifier="sentry-dbid-5210f680-c377-4c4e-9b49-2d41269134cb")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2947],{19378:(e,i,t)=>{t.d(i,{A:()=>eF});var r,a,o=t(37876),n=t(5811),d=t(14232),s=t(29387),l=t(79194),c=t(85283),u=t(57041),m=t(85109),p=t(76733),y=t(49900),g=t(1660);let h=t.n(g)().getLogger();async function x({executeRecaptcha:e,formValues:i,userService:t,updateUserAction:r}){let a=t.getUserRegular(),{sessionCookie:o}=t;if(!a||!o)throw Error("No user or session Cookie");let n={title:"null"!==i.title?Number(i.title):null,company:i.company,firstName:i.firstName,lastName:i.lastName,companyAdditionalLine:i.companyAdditionalLine,street:i.street,additionalLine:i.additionalLine,zipCode:i.zipCode,city:i.city,country:i.country,birthDate:""!==i.birthDate?(0,p.ev)(i.birthDate):"",birthDateVerified:"0"!==i.ageVerification,phoneNumber:i.phoneNumber,mobileNumber:i.mobileNumber,companyUid:"CHE-"===i.companyUid?"":i.companyUid},d=await r(n,e);if(d.error)throw h.error("[club-account-address-form] updateUserAction:error, %s",d.error),new y.A(d.error)}let f=[...t(71384).CZ,"competitionFormErrorTitleRequired","formFieldErrorFirstNameInvalid","formFieldErrorFirstNameRequired","formFieldErrorLastNameInvalid","formFieldErrorLastNameRequired","formFieldErrorAddressRequired","formFieldErrorZIPpostalcodeRequired","formFieldErrorZIPpostalcodeInvalid","errorsCityRequired","formFieldErrorDateofBirthInvalid","formFieldErrorDateofBirthRequired","formFieldErrorTelephoneNumberInvalid","formFieldErrorTelephoneNumberInvalid","errorsFildAdditionalLineTooShort","errorsFildCompanyNotValidSize","errorsFildUidNotvalidSize","errorsCompanyRequired","addressAndCumulusAgeVerification","addressAndCumulusBirthdate","addressAndCumulusPageAgeVerifiedSuccess","addressAndCumulusPageAgeVerifiedSuccess","addressAndCumulusPageNo","addressAndCumulusPageNotYetVerifiedInfo","addressAndCumulusPageVerifyNow","addressAndCumulusPageYes","addressTitleFamily","addressTitleMr","addressTitleMrAndMrs","addressTitleMs","addressTitleEmpty","callcenterBirthDateError","changeAddrAndCumulusIntroText","changeAddrAndCumulusSuccessfulMessage","checkoutRegisterAddressAdditionalLine","checkoutRegisterAddressCity","checkoutRegisterAddressCompany","checkoutRegisterAddressCountry","checkoutRegisterAddressFirstName","checkoutRegisterAddressLastName","checkoutRegisterAddressMobilePhone","checkoutRegisterAddressPhone","checkoutRegisterAddressPhoneIntroText","checkoutRegisterAddressStreet","checkoutRegisterAddressTitle","checkoutRegisterAddressUserTitle","checkoutRegisterAddressZipCode","competitionFormErrorTitleRequired","errorsAddressRequired","errorsCityRequired","errorsFildCompanyNotvalidSize","errorsFildRequiredValid","errorsFildRequiredValid","errorsFildStreetNotvalidSize","errorsFirstnameRequired","errorsLastnameRequired","errorsPhoneCountryCodeNotValid","errorsPhoneIncorrect","errorsPhoneMobileInsteadFixedLine","errorsPhoneFixedLineInsteadMobile","errorsZipRequired","globalFillRequiredFields","globalLiechtenstein","globalSave","globalSwitzerland","globalWrongZipCode","loginDropdownAddress","loginDropdownOpenOrders","newsletterTitleHeader","productDisplayPhone","verfyidRow1Incorect","verfyidRow2Incorect"];var A=t(53495),b=t(30806),C=t(74691),w=t(34761);function N(e,i){let t=e.currentTarget;if(t.value&&(i&&(t.value=t.value.replace(1===i?/[^a-zA-Z]/:/[^\d]/,"")),t.maxLength===t.value.length)){let i=Number(t.getAttribute("tabindex")??0);"Backspace"===e.key?i-=1:"Delete"!==e.key&&(i+=1);let r=document.querySelector(`[tabindex="${i}"]`);r&&-2!==i&&0!==i&&r.focus()}}var v=t(95329),I=t(39296),S=t(59873),j=t(59248),R=t(44279);let k=(0,v.Ay)(j.A).withConfig({displayName:"ButtonWithSpinnerStyled",componentId:"sc-1dc952dd-0"})(["margin:20px 0px;",";"],(0,S.Ay)("md")((0,v.AH)(["margin:20px 0 0 0;"]))),V=v.Ay.div.withConfig({displayName:"FormRow",componentId:"sc-1dc952dd-1"})(["display:flex;flex-basis:content;margin-bottom:12px;max-width:400px;.formRow-section-one{width:100%;display:flex;flex-basis:content;}.formRow-section-two{width:100%;display:flex;}",""],(0,S.Ay)("sm")((0,v.AH)(["margin:0 0 10px 0;"]))),F=(0,v.Ay)(C.lV).withConfig({displayName:"FormStyled",componentId:"sc-1dc952dd-2"})(["width:100%;display:flex;flex-direction:column;",""],(0,S.Ay)("sm")((0,v.AH)(["align-content:space-between;justify-content:flex-end;"]))),M=(0,v.Ay)(I.A).withConfig({displayName:"HeadlineStyled",componentId:"sc-1dc952dd-3"})(["hyphens:none;margin-bottom:10px;"]),E=v.Ay.div.withConfig({displayName:"ModalGrid",componentId:"sc-1dc952dd-4"})(["display:flex;flex-wrap:wrap;flex-direction:row;"]),L=v.Ay.img.withConfig({displayName:"StyledImg",componentId:"sc-1dc952dd-5"})(["display:block;margin-bottom:30px;width:100%;",""],(0,S.Ay)("sm")((0,v.AH)(["max-width:400px;"]))),P=v.Ay.div.withConfig({displayName:"StyledInfoText",componentId:"sc-1dc952dd-6"})(["line-height:21px;margin-bottom:20px;hyphens:none;"]),T=v.Ay.span.withConfig({displayName:"StyledSpan",componentId:"sc-1dc952dd-7"})(["margin-right:5px;display:flex;align-items:center;padding-top:7px;"]),q=(0,v.Ay)(R.A).withConfig({displayName:"TextFieldStyled",componentId:"sc-1dc952dd-8"})(["height:40px;text-indent:0px !important;text-transform:uppercase;padding-left:5px !important;",";"," ",";",";&&&{text-indent:5px;font-size:14px;","}"],({backgroundColor:e})=>e&&(0,v.AH)(["background:",";"],e),({widthValues:e})=>(0,v.AH)(["width:","px;",""],e.mobile,(0,S.Ay)("sm")((0,v.AH)(["width:","px;"],e.desktop))),({elementMargin:e})=>10===e?(0,v.AH)(["margin-right:5px;"]):(0,v.AH)(["margin-right:5px;",""],(0,S.Ay)("sm")((0,v.AH)(["margin-right:0px;"]))),({positionRight:e})=>e&&(0,v.AH)(["position:absolute;right:0;"]),(0,S.Ay)("sm")((0,v.AH)(["text-indent:inherit;font-size:inherit;"])));var _=((r={})[r.letters=1]="letters",r[r.digits=2]="digits",r),U=t(22558);let H=({translations:e,submitHandlerIdSwiss:i,initialSwissIdValues:t,isSendingSwiss:r,swissIdErrorRowOne:a,swissIdErrorRowTwo:n})=>{let d={desktop:70,mobile:65},l={desktop:38,mobile:30};return(0,o.jsxs)(E,{children:[(0,o.jsx)(M,{tag:"h2",uppercase:!0,children:e.verfyidIdTitle}),(0,o.jsx)(P,{children:e.verfyidIdDesc}),(0,o.jsx)(C.l1,{initialValues:t,onSubmit:e=>{i(e)},children:(0,o.jsxs)(F,{noValidate:!0,autoComplete:"off",children:[(0,o.jsx)(L,{src:"/images/age-verification/id_specimen.jpg",alt:""}),(0,o.jsxs)("div",{className:"group-form",children:[a&&(0,o.jsx)(w.PG,{message:a.text,type:s.a.ERROR}),(0,o.jsx)(V,{children:(0,o.jsxs)("div",{className:"formRow-section-one",children:[(0,o.jsx)(q,{backgroundColor:U.A.lightBlue._10,widthValues:d,elementMargin:2,name:"row11",dataCy:"age-verify-eu-first",type:"text",maxLength:5,onKeyUp:e=>{N(e,_.letters)},tabIndex:-13,required:!0}),(0,o.jsx)(q,{backgroundColor:U.A.lightBlue._10,widthValues:d,elementMargin:2,name:"row12",dataCy:"age-verify-eu-first",type:"text",maxLength:4,onKeyUp:e=>{N(e)},tabIndex:-12,required:!0}),(0,o.jsx)(q,{backgroundColor:U.A.lightBlue._10,widthValues:{desktop:65,mobile:55},elementMargin:2,name:"row13",dataCy:"age-verify-eu-first",type:"text",maxLength:4,onKeyUp:e=>{N(e)},tabIndex:-11,required:!0}),(0,o.jsx)(T,{children:"<"}),(0,o.jsx)(q,{backgroundColor:U.A.lightBlue._10,widthValues:l,elementMargin:2,name:"row14",dataCy:"age-verify-eu-first",type:"text",maxLength:1,onKeyUp:e=>{N(e,_.digits)},tabIndex:-10,required:!0})]})}),n&&(0,o.jsx)(w.PG,{message:n.text,type:s.a.ERROR}),(0,o.jsxs)(V,{children:[(0,o.jsxs)("span",{className:"formRow-section-one",children:[(0,o.jsx)(q,{backgroundColor:U.A.red._10,widthValues:d,elementMargin:2,name:"row21",dataCy:"age-verify-eu-first",type:"text",maxLength:6,onKeyUp:e=>{N(e,_.digits)},tabIndex:-9,required:!0}),(0,o.jsx)(q,{backgroundColor:U.A.red._10,widthValues:l,elementMargin:5,name:"row22",dataCy:"age-verify-eu-first",type:"text",maxLength:1,onKeyUp:e=>{N(e,_.digits)},tabIndex:-8,required:!0}),(0,o.jsx)(q,{backgroundColor:U.A.red._10,widthValues:l,elementMargin:5,name:"row23",dataCy:"age-verify-eu-first",type:"text",maxLength:1,onKeyUp:e=>{N(e,_.letters)},tabIndex:-7,required:!0}),(0,o.jsx)(q,{backgroundColor:U.A.red._10,widthValues:d,elementMargin:1,name:"row24",dataCy:"age-verify-eu-first",type:"text",maxLength:6,onKeyUp:e=>{N(e,_.digits)},tabIndex:-6,required:!0}),(0,o.jsx)(q,{backgroundColor:U.A.red._10,widthValues:l,elementMargin:1,name:"row25",dataCy:"age-verify-eu-first",type:"text",maxLength:1,onKeyUp:e=>{N(e,_.digits)},tabIndex:-5,required:!0}),(0,o.jsx)(q,{backgroundColor:U.A.red._10,widthValues:d,elementMargin:5,name:"row26",dataCy:"age-verify-eu-first",type:"text",maxLength:3,onKeyUp:e=>{N(e,_.letters)},tabIndex:-4,required:!0})]}),(0,o.jsx)("span",{className:"formRow-section-two",children:(0,o.jsx)(q,{backgroundColor:U.A.yellow._90,widthValues:l,positionRight:!0,name:"checksum",dataCy:"age-verify-eu-second",type:"text",maxLength:1,onKeyUp:e=>{N(e,_.digits)},tabIndex:-3,required:!0})})]})]}),(0,o.jsx)(k,{dataCy:"age-verify-eu-submit",buttonText:e.buttonMore,pen
1ding:r})]})})]})};var D=t(83592),B=t(92358),O=t(34976),z=t(89388);let Y=(0,v.Ay)(z.A).withConfig({displayName:"ModalStyled",componentId:"sc-3787c3e2-0"})(["overflow:hidden;"]),$=v.Ay.div.withConfig({displayName:"ModalContentStyled",componentId:"sc-3787c3e2-1"})(["",""],(0,S.Ay)("md")((0,v.AH)(["width:710px;"]))),Z=v.Ay.div.withConfig({displayName:"ColumnStyled",componentId:"sc-3787c3e2-2"})(["flex:1;"]),K=v.Ay.div.withConfig({displayName:"StyledText",componentId:"sc-3787c3e2-3"})(["margin-bottom:10px;a{",";}"],O.EZ);function W({translations:e,setFrame:i}){let t=(0,c.Ym)();function r(e){let i=(0,B.H)({route:"/contact",locale:t});return e.replace("{0}",i)}return(0,o.jsxs)(Z,{children:[(0,o.jsx)(I.A,{uppercase:!0,children:e.addressAndCumulusModalVerifyNowTitle}),(0,o.jsx)(K,{dangerouslySetInnerHTML:{__html:e.addressAndCumulusModalVerifyNowPreInfo}}),(0,o.jsx)(K,{dangerouslySetInnerHTML:{__html:e.addressAndCumulusModalVerifyNowViaElectronicProof1Title}}),(0,o.jsx)(D.Ay,{skin:D.Pv.LinkSkinArial,onClick:()=>i(!1),children:e.addressAndCumulusModalVerifyNowViaElectronicProof1Info}),(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),(0,o.jsx)(K,{dangerouslySetInnerHTML:{__html:r(e.addressAndCumulusModalVerifyNowViaContactForm2Title)}}),(0,o.jsx)(K,{dangerouslySetInnerHTML:{__html:r(e.addressAndCumulusModalVerifyNowViaContactForm2Info)}}),(0,o.jsx)(K,{dangerouslySetInnerHTML:{__html:e.addressAndCumulusModalVerifyNowViaEmail3Title}}),(0,o.jsx)(K,{dangerouslySetInnerHTML:{__html:e.addressAndCumulusModalVerifyNowViaEmail3Info}}),(0,o.jsx)(K,{dangerouslySetInnerHTML:{__html:r(e.addressAndCumulusContactSupport)}})]})}let G=["addressAndCumulusModalVerifyNowTitle","addressAndCumulusModalVerifyNowPreInfo","addressAndCumulusModalVerifyNowViaElectronicProof1Title","addressAndCumulusModalVerifyNowViaElectronicProof1Info","addressAndCumulusModalVerifyNowViaContactForm2Title","addressAndCumulusModalVerifyNowViaContactForm2Info","addressAndCumulusModalVerifyNowViaEmail3Title","addressAndCumulusModalVerifyNowViaEmail3Info","addressAndCumulusContactSupport","buttonMore","addressAndCumulusModalVerifyAgeFormTitle","verfyidIdTitle","verfyidPassTitle","verfyidPassDesc","verfyidIdDesc"];function X({showState:e,submitHandlerIdSwiss:i,isSendingSwiss:t,swissIdErrorRowOne:r,swissIdErrorRowTwo:a,setMessageResponseSwissRowOneOnClose:n,setMessageResponseSwissRowTwoOnClose:s}){let l=(0,u.h1)("LocaleService"),m=(0,c.b0)(G),p=l.getLocale(),[y,g]=e,[h,x]=(0,d.useState)(!0);return(0,o.jsx)(Y,{open:y,onCloseRequest:()=>{g(!1),x(!0),n(null),s(null)},children:(0,o.jsxs)("div",{children:[h?(0,o.jsx)("h1",{children:m.clubCardRegistrationModalWindowTitle}):(0,o.jsx)("h1",{children:m.addressAndCumulusModalVerifyAgeFormTitle}),(0,o.jsxs)($,{children:[h&&(0,o.jsx)(W,{locale:p,translations:m,setFrame:x}),!h&&(0,o.jsx)(H,{translations:m,submitHandlerIdSwiss:i,initialSwissIdValues:{row11:"",row12:"",row13:"",row14:"",row21:"",row22:"",row23:"",row24:"",row25:"",row26:"",checksum:""},isSendingSwiss:t,swissIdErrorRowOne:r,swissIdErrorRowTwo:a})]})]})})}var J=t(69060),Q=t(69500),ee=t(18562),ei=t(33812),et=t(93502),er=t(50289),ea=t(87749),eo=t(84942),en=t(42617),ed=t(67839),es=t(57455),el=t(96525),ec=t(70784),eu=t(99206),em=t(18553),ep=t(81508),ey=t(17033),eg=t(70913);let eh=v.Ay.div.withConfig({displayName:"ClubAccountAddressFormStyled",componentId:"sc-aa0e835d-0"})(["margin-bottom:60px;"]),ex=v.Ay.p.withConfig({displayName:"PStyled",componentId:"sc-aa0e835d-1"})(["margin-bottom:20px;"]),ef=(0,v.Ay)(I.A).withConfig({displayName:"Headline1",componentId:"sc-aa0e835d-2"})(["",""],(0,S.Ay)("xs","sm")((0,v.AH)(["margin-bottom:",";",""],eg.MP.mb10,ey.gc))),eA=v.Ay.h3.withConfig({displayName:"H3Styled",componentId:"sc-aa0e835d-3"})(["margin-bottom:15px;&.margin-t-20{margin-top:40px;}"]),eb=(0,v.Ay)(j.A).withConfig({displayName:"ButtonSubmitStyled",componentId:"sc-aa0e835d-4"})(["margin-bottom:20px;",""],(0,S.Ay)("md")((0,v.AH)(["margin:0;"]))),eC=(0,v.Ay)(ep.A).withConfig({displayName:"BackendAlertStyled",componentId:"sc-aa0e835d-5"})(["margin-bottom:20px;"]),ew=(0,v.Ay)(ep.A).withConfig({displayName:"BackendAlertAgeVerifiedStyled",componentId:"sc-aa0e835d-6"})(["margin-bottom:10px;"]),eN=v.Ay.div.withConfig({displayName:"BoxFieldZipStyled",componentId:"sc-aa0e835d-7"})(["margin-right:20px;width:120px;"]),ev=v.Ay.div.withConfig({displayName:"BoxFieldPlaceStyled",componentId:"sc-aa0e835d-8"})(["flex:1;"]),eI=v.Ay.div.withConfig({displayName:"AgeVerifyInfo",componentId:"sc-aa0e835d-9"})(["margin-bottom:5px;"]);v.Ay.div.withConfig({displayName:"ColumnStyled",componentId:"sc-aa0e835d-10"})(["display:flex;flex-direction:column;flex:1;margin:0 8px;"]);var eS=((a={}).no="0",a.yes="1",a);function ej({translations:e,initialValues:i,submitHandler:t,validationSchema:r,className:a,isSending:n,componentModal:s,setShowModal:l,messageResponseOnSaveState:c,messageResponseOnVerifyAge:u}){let[m,p]=c,y=[{id:"ageVerification-yes",label:e.addressAndCumulusPageYes,value:eS.yes,name:"ageVerification"},{id:"ageVerification-no",label:e.addressAndCumulusPageNo,value:eS.no,name:"ageVerification"}],[g,h]=(0,d.useState)([]),[x,f]=(0,d.useState)([]);(0,d.useEffect)(()=>{h([{label:i?.city?i.city:e.formFieldErrorZIPpostalcodeRequired,value:i?.city?i.city:""}]),f((0,eo.b8)(e).filter(e=>e.value===i.country))},[i]);let{NEXT_PUBLIC_CUSTOMER_CENTER:A}=es.clientEnvs,b=(0,d.useCallback)((e,{setFieldError:i,resetForm:r,setFieldValue:a})=>{t({...e,..."private"===e.privateSwitch&&{company:"",companyAdditionalLine:"",companyUid:void 0}},i,a,r)},[t]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(eh,{children:[(0,o.jsx)(ef,{children:e.loginDropdownAddress}),(0,o.jsx)(ex,{children:e.globalFillRequiredFields}
1),m&&(0,o.jsx)(eC,{type:m.type,message:m.text}),(0,o.jsxs)(eA,{children:[" ",e.checkoutRegisterAddressTitle," "]}),(0,o.jsxs)(ea.Y,{className:"margin-b-15",children:[`${e.changeAddrAndCumulusIntroText} `,(0,o.jsx)(er.A,{route:"/orders",skin:er.r.inherit,children:e.loginDropdownOpenOrders})]}),(0,o.jsx)(C.l1,{initialValues:i,enableReinitialize:!0,onSubmit:b,validateOnChange:!0,validationSchema:(0,ee.toFormikValidationSchema)(r),children:({setFieldValue:i,errors:t,touched:r,values:d})=>{let s=d.ageVerification===eS.yes;return(0,o.jsxs)(C.lV,{className:a,noValidate:!0,method:"post",children:[(0,o.jsx)(eu.b,{dataCy:"club-account-address-form",setFieldValue:i,companyUidField:"companyUid",companyAdditionalLineField:"companyAdditionalLine",companyField:"company",salutationField:"title",values:d,salutationOptionPlaceholder:e.newsletterTitleHeader,salutationLabel:e.checkoutRegisterAddressUserTitle}),(0,o.jsxs)(em.k0,{children:[(0,o.jsx)(em.CP,{children:(0,o.jsx)(R.A,{dataCy:"clubaccount-input-firstname",name:"firstName",label:e.checkoutRegisterAddressFirstName,required:"private"===d.privateSwitch})}),(0,o.jsx)(em.CP,{children:(0,o.jsx)(R.A,{dataCy:"clubaccount-input-lastname",name:"lastName",label:e.checkoutRegisterAddressLastName,required:"private"===d.privateSwitch})})]}),(0,o.jsxs)(em.k0,{children:[(0,o.jsx)(em.CP,{children:(0,o.jsx)(R.A,{dataCy:"clubaccount-input-street",name:"street",label:e.checkoutRegisterAddressStreet,required:!0})}),(0,o.jsx)(em.CP,{children:(0,o.jsx)(R.A,{dataCy:"clubaccount-input-additionalLine",name:"additionalLine",label:e.checkoutRegisterAddressAdditionalLine,maxLength:30})})]}),(0,o.jsxs)(em.k0,{children:[(0,o.jsxs)(em.CP,{className:"asInlineContainer",children:[(0,o.jsx)(eN,{children:(0,o.jsx)(R.A,{name:"zipCode",dataCy:"clubaccount-input-zipcode",label:e.checkoutRegisterAddressZipCode,customOnChangeCallback:t=>(0,eo.sW)(t,i,h.bind(g),f.bind(x),e),required:!0,maxLength:4,type:"number",inputMode:"decimal",pattern:"[0-9]*",autoCorrect:"off",autoComplete:"postal-code"})}),(0,o.jsx)(ev,{children:(0,o.jsx)(ec.A,{name:"city",dataCy:"clubaccount-input-city",label:e.checkoutRegisterAddressCity,options:g,required:!0,inputErrorSkins:ei.t.primary})})]}),(0,o.jsx)(em.CP,{children:(0,o.jsx)(ec.A,{name:"country",dataCy:"clubaccount-input-country",label:e.checkoutRegisterAddressCountry,options:x,required:!0,inputErrorSkins:ei.t.primary})})]}),(0,o.jsxs)(em.k0,{children:[(0,o.jsx)(em.CP,{children:(0,o.jsx)(R.A,{dataCy:"clubaccount-input-birthDate",name:"birthDate",label:e.addressAndCumulusBirthdate,disabled:s,type:"date"})}),(0,o.jsxs)(em.CP,{children:[(0,o.jsx)(et.A,{htmlFor:"ageVerification",$hasError:!!(t.ageVerification&&r.ageVerification),required:!0,children:e.addressAndCumulusAgeVerification}),u&&(0,o.jsx)(ew,{type:u.type,message:u.text}),(0,o.jsx)(el.A,{dataCy:"clubaccount-radio-ageVerification",name:"ageVerification",items:y,required:!0,horizontalLayout:!0,disabled:!A}),!s&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eI,{children:e.addressAndCumulusPageNotYetVerifiedInfo}),(0,o.jsx)(D.Ay,{dataCy:"clubaccount-button-openModal-ageVerification",skin:D.Pv.LinkSkinArial,onClick:()=>{l(!0)},children:e.addressAndCumulusPageVerifyNow})]})]})]}),(0,o.jsx)(eA,{className:"margin-t-20",children:e.productDisplayPhone}),(0,o.jsx)(ex,{children:e.checkoutRegisterAddressPhoneIntroText}),(0,o.jsxs)(em.k0,{children:[(0,o.jsx)(em.CP,{children:(0,o.jsx)(R.A,{dataCy:"clubaccount-input-phoneNumber",name:"phoneNumber",label:e.checkoutRegisterAddressPhone,onBlurCallback:e=>{i("phoneNumber",(0,en.m)(e.currentTarget.value))}})}),(0,o.jsx)(em.CP,{children:(0,o.jsx)(R.A,{dataCy:"clubaccount-input-mobileNumber",name:"mobileNumber",label:e.checkoutRegisterAddressMobilePhone,onBlurCallback:e=>{i("mobileNumber",(0,en.m)(e.currentTarget.value))}})})]}),(0,o.jsx)(em.BY,{className:"toRight",children:(0,o.jsx)(eb,{dataCy:"clubaccount-button-submit",buttonText:e.globalSave,pending:n,onClick:()=>{p(null)}})}),(0,o.jsx)(ed.A,{})]})}})]}),s]})}var eR=t(28222),ek=t(52764),eV=t(71917);let eF=(0,n.PA)(function({resetFlag:e}){let i=(0,c.b0)(f),[t,r]=(0,d.useState)(!1),[a,n]=(0,d.useState)(!1),[p,y]=(0,d.useState)(null),[g,h]=(0,d.useState)(null),[C,w]=(0,d.useState)(null),[N,v]=(0,d.useState)(null),I=d.useContext(Q.H),S=(0,u.h1)("UserService"),j=(0,u.h1)("LocaleService"),R=(0,u.h1)(J.z),k=(0,m.AN)(m.xU.CLUB_ACCOUNT_ADDRESS),{isSending:V,setIsSending:F,doSubmit:M}=function({setMessageResponseOnSaveUserData:e}){let i=(0,c.WD)(),t=(0,c.h1)("UserService"),r=(0,m.AN)(m.xU.CLUB_ACCOUNT_ADDRESS),[a,o]=(0,d.useState)(!1),n=(0,c.b0)(f),l=(0,b.QX)();return{doSubmit:(0,d.useCallback)(async(a,d)=>await x({executeRecaptcha:r,formValues:a,userService:t,updateUserAction:l}).then(()=>{o(!1),e({type:s.a.SUCCESS,text:n.changeAddrAndCumulusSuccessfulMessage}),window.scrollTo(0,0)}).catch(t=>{o(!1),"BackendError"===t.name&&(t.codes.includes(A.l.PhoneNumberCouldNotBeMobileNumber)||t.codes.includes(A.l.MobileNumberCouldNotBePhoneNumber)||e({type:s.a.ERROR,text:i(t.translationId)}),t.codes.includes(A.l.MobileNumberCouldNotBePhoneNumber)&&d("mobileNumber",n.errorsPhoneFixedLineInsteadMobile),t.codes.includes(A.l.PhoneNumberCouldNotBeMobileNumber)&&d("phoneNumber",n.errorsPhoneMobileInsteadFixedLine))}),[r,t,i,n]),isSending:a,setIsSending:o}}({setMessageResponseOnSaveUserData:y});if((0,d.useEffect)(()=>{h(null),y(null),w(null),v(null)},[e]),!I)return null;let E=S.getUserRegular(),{sessionCookie:L}=S;async function P(e){n(!0),R.pushShopEvent({eventCategory:"Mein Ex Libris",eventAction:"Weiter",eventLabel:"button.more"});try{await S.validateCustomerAge(`${e.row11}${e.row12}${e.row13}${e.row14}`,`${e.row21}${e.row22}${e.row23}${e.row24}${e.row25}${e.row26}`,`${e.checksum}`,0,k),r(!1),n(!1),h({type:s.a.SUCCESS,text:i.addressAndCumulusPageAgeVerifiedSuccess})}catch(e){w({type:s.a.ERROR,text:i.verfyidRow1Incorect}),v({type:s.a.ERROR,text:i.verfyidRow2Incorect}),n(!1)}}
1let T={title:E&&null!==E.title?E.title.toString():"null",company:E?.company?E.company:"",companyAdditionalLine:E?.companyAdditionalLine?E.companyAdditionalLine:"",firstName:E?E.firstName:"",lastName:E?E.lastName:"",street:E?E.street:"",additionalLine:E?.additionalLine?E.additionalLine:"",zipCode:E?E.zipCode:"",city:E?E.city:"",country:E?E.country:"",birthDate:E?.birthdate?E.birthdate.toString().split("T")[0]:"",ageVerification:E?.birthdateVerified?"1":"0",phoneNumber:E?.phone?E.phone:"",mobileNumber:E?.mobile?E.mobile:"",privateSwitch:E?.company&&""!==E.company?"company":"private",companyUid:E?.companyUid||"CHE-"};async function q(e,i,t,r){if(!I||!E||!L)return;F(!0),R.pushShopEvent({eventCategory:"Mein Ex Libris",eventAction:"Rechnungsadresse speichern",eventLabel:"global.save"});let a={...e};(!a.company||a.firstName||a.lastName)&&null!==a.title&&""!==a.title||(a.title=l.y.Empty,t("title",l.y.Empty)),await M(a,i),r?.()}let _=(0,o.jsx)(X,{showState:[t,r],submitHandlerIdSwiss:P,isSendingSwiss:a,swissIdErrorRowOne:C,swissIdErrorRowTwo:N,setMessageResponseSwissRowOneOnClose:w,setMessageResponseSwissRowTwoOnClose:v});return(0,o.jsx)(ej,{translations:i,initialValues:T,validationSchema:eR.Ik({firstName:(0,eV.l_)({requiredMsg:i.formFieldErrorFirstNameRequired,invalidMsg:i.formFieldErrorFirstNameInvalid}).optional(),lastName:(0,eV.l_)({requiredMsg:i.formFieldErrorLastNameRequired,invalidMsg:i.formFieldErrorLastNameInvalid}).optional(),street:eR.Yj({error:i.formFieldErrorAddressRequired}),additionalLine:eR.Yj().optional(),zipCode:(0,eV.tA)({requiredMsg:i.formFieldErrorZIPpostalcodeRequired,invalidMsg:i.formFieldErrorZIPpostalcodeInvalid}),city:eR.Yj({error:i.errorsCityRequired}),birthDate:eR.p6().optional().or((0,eV.yD)({requiredMsg:i.formFieldErrorDateofBirthRequired,invalidMsg:i.formFieldErrorDateofBirthInvalid})),mobileNumber:eR.Yj().regex(eV.yh,{message:i.formFieldErrorTelephoneNumberInvalid}).optional(),phoneNumber:eR.Yj().regex(eV.il,{message:i.formFieldErrorTelephoneNumberInvalid}).optional(),privateSwitch:eR.Yj(),company:eR.Yj().optional(),companyAdditionalLine:eR.Yj().optional(),companyUid:eR.Yj().regex(eV.If,{message:i.errorsFildUidNotvalidSize})}).superRefine((e,t)=>{let{company:r,firstName:a,lastName:o,companyAdditionalLine:n,privateSwitch:d}=e,s=(e,i)=>t.addIssue({path:[e],code:ek.eq.custom,message:i});"private"!==d||r||((!a?.trim()||a.trim().length<2)&&s("firstName",i.formFieldErrorFirstNameRequired),(!o?.trim()||o.trim().length<2)&&s("lastName",i.formFieldErrorLastNameRequired)),a&&!o&&s("lastName",i.formFieldErrorLastNameRequired),o&&!a&&s("firstName",i.formFieldErrorFirstNameRequired),(!n||r)&&("company"!==d||r)||s("company",i.errorsCompanyRequired)}),submitHandler:q,isSending:V,componentModal:_,setShowModal:r,messageResponseOnSaveState:[p,y],messageResponseOnVerifyAge:g,locale:j.getLocale()})})},34761:(e,i,t)=>{t.d(i,{$J:()=>u,PG:()=>l,Wm:()=>c,fh:()=>s,mc:()=>d});var r=t(95329),a=t(81508),o=t(22558),n=t(70913);let d=r.Ay.div.withConfig({displayName:"Container",componentId:"sc-3a71da5a-0"})(["border:1px solid ",";padding:10px 15px 94px 15px;margin-bottom:",";"],o.A.black._16,n.MP.mb30),s=r.Ay.div.withConfig({displayName:"FormRow",componentId:"sc-3a71da5a-1"})(["margin-bottom:",";"],n.MP.mb10),l=(0,r.Ay)(a.A).withConfig({displayName:"BackendAlert",componentId:"sc-3a71da5a-2"})(["margin-bottom:",";"],n.MP.mb12),c=r.Ay.div.withConfig({displayName:"CaptchaRowStyled",componentId:"sc-3a71da5a-3"})(["display:flex;flex-direction:column-reverse;align-items:start;margin-bottom:15px;img{width:auto;height:34px;margin-top:22px;margin-bottom:18px;}"]),u=r.Ay.div.withConfig({displayName:"CaptchaInputContainerStyled",componentId:"sc-3a71da5a-4"})(["width:100%;"])},86332:(e,i,t)=>{t.d(i,{A:()=>r.A});var r=t(22407)},87749:(e,i,t)=>{t.d(i,{Y:()=>d});var r=t(95329),a=t(59873),o=t(22558),n=t(4940);let d=r.Ay.div.withConfig({displayName:"AdviceBox",componentId:"sc-dee21dc2-0"})(["font-family:",";font-size:14px;color:",";line-height:20px;background-color:",";padding:10px 15px;a:hover{text-decoration:none;}a{color:inherit;}"," &.margin-b-15{margin-bottom:15px;}&.margin-t-15{margin-top:15px;}"],n.Gc.Arial,o.A.black._,o.A.black._20,(0,a.Ay)("md")((0,r.AH)(["line-height:18px;"])))}}]);
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.