PageSourceSearch

https://www.oralb.pt/_next/static/chunks/1847.da83102263a28c71.js

js oralb.pt collected 2026-10-05 01:22:30 UTC 35,195 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1847],{1847:(e,r,t)=>{"use strict";t.d(r,{gA:()=>ec,$4:()=>rr,F2:()=>Y,y6:()=>e9,QB:()=>e8,gB:()=>ej,s4:()=>eU,FN:()=>er});var a,n,o,s,i=t(83095),l=t.n(i),d=t(22983),c=t.n(d),u=t(14232),f=t(78962),m=t(18847),p=t.n(m),b=t(31161),g=t.n(b),h=t(26097),w=t.n(h),_=t(95835),v=t.n(_),y=t(10305),j=t.n(y);t(28141);var x=t(80035),P=function(e){return e.length>=8&&e.length>=1},S=function(e){return/[a-z]/.test(e)},N=function(e){return/[0-9]/.test(e)},C=function(e,r){return e===r.newPassword},E=function(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},O=function(e){return/^(\D*)$/.test(e)},I=function(e){return 0!==e.length},L=function(e){return/^[0-9]{1,4}$/.test(e)},A={currentPassword:[{error:"passwordNotBlank",fn:I}],newPassword:[{error:"passwordNotBlank",fn:I},{error:"passwordIsTooShort",fn:P},{error:"passwordMustContainLowercaseLetters",fn:S},{error:"passwordMustContainDigits",fn:N}],newPasswordConfirm:[{error:"passwordNotBlank",fn:I},{error:"passwordIsTooShort",fn:P},{error:"passwordMustContainLowercaseLetters",fn:S},{error:"passwordMustContainDigits",fn:N},{error:"passwordMustBeEqual",fn:C}]},T=function(e,r,t,a){for(var n=0;n<e.length;n++)if(!e[n].fn(r,a))return t[e[n].error]},F=(a=v()(function e(r,t){w()(this,e),g()(this,"formErrorResponse",n,this),g()(this,"errorTexts",o,this),g()(this,"form",s,this),this.validation=r,this.fieldsToValidate=t},[{key:"fieldChange",value:function(e,r){(0,x.hZ)(this.form,e,r)}},{key:"clear",value:function(){this.form={}}},{key:"isInvalidForm",get:function(){return!!this.formErrorResponse.form}},{key:"errors",get:function(){var e=this;return(0,x.HP)(this.form).map(function(r){return{key:r,value:T(e.validation[r],e.form[r],e.errorTexts,e.form)}}).reduce(function(e,r){return e[r.key]=r.value,e},{})}},{key:"formValidated",get:function(){var e=Object.values(this.errors).every(function(e){return void 0===e||"string"!=typeof e});return(0,x.HP)(this.form).length>=this.fieldsToValidate&&e}},{key:"errorsNumber",get:function(){return Object.values(this.errors).filter(function(e){return void 0!==e}).length}}]),n=j()(a.prototype,"formErrorResponse",[x.sH],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),o=j()(a.prototype,"errorTexts",[x.sH],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),s=j()(a.prototype,"form",[x.sH],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),j()(a.prototype,"isInvalidForm",[x.EW],Object.getOwnPropertyDescriptor(a.prototype,"isInvalidForm"),a.prototype),j()(a.prototype,"errors",[x.EW],Object.getOwnPropertyDescriptor(a.prototype,"errors"),a.prototype),j()(a.prototype,"formValidated",[x.EW],Object.getOwnPropertyDescriptor(a.prototype,"formValidated"),a.prototype),j()(a.prototype,"errorsNumber",[x.EW],Object.getOwnPropertyDescriptor(a.prototype,"errorsNumber"),a.prototype),a),D=t(13911),k={formName:"forgotPasswordForm",type:{email:"email"},field:{signInEmailAddress:"signInEmailAddress"}},R=t(76231),M=t(84611),H=t(37876);function q(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,a)}return t}function B(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?q(Object(t),!0).forEach(function(r){l()(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var V=p()(function(){return t.e(8692).then(t.bind(t,48692))},{loadableGenerated:{webpack:function(){return[48692]}}}),G=p()(function(){return Promise.resolve().then(t.bind(t,73177))},{loadableGenerated:{webpack:function(){return[73177]}}}),z=new F({signInEmailAddress:[{error:"emailNotValid",fn:E}]},1);let Y=(0,D.PA)(function(e){var r,t=e.formHeading,a=e.formSubHeading,n=e.janrainLabels,o=e.ariaFormIsSubmitting,s=(e.emailValidationRegex,e.janrainFormErrors),i=e.formSuccessLink,l=z.form,d=z.errors,m=z.formValidated,p=(0,u.useState)(!1),b=p[0],g=p[1],h=(0,u.useState)(!1),w=h[0],_=h[1],v=(0,f.A)(),y=c()(v,2),j=y[0],x=y[1];(0,u.useEffect)(function(){z.clear(),z.errorTexts=s},[]),(0,u.useEffect)(function(){b&&(window.janrain.events.onCaptureSaveSuccess.addHandler(S),window.janrain.events.onCaptureSaveFailed.addHandler(P),window.janrain.capture.ui.postCaptureForm(k.formName,l))},[b]),(0,u.useEffect)(function(){if(w){var e=document.querySelector(".ob-form__subtitle");(0,M.WR)(e)}},[w]);var P=function(e){g(!1),j.isInvalidForm=!0,j.formErrorResponse=e,x(j)},S=function(){g(!1),_(!0)};return(0,H.jsx)("div",{className:"ob-forgot-password",children:(0,H.jsxs)("div",{className:"ob-form__layout ob-forgot-password__wrapper",children:[!w&&(0,H.jsxs)("form",{className:"ob-form__form",name:k.formName,onSubmit:function(e){e.preventDefault(),g(!0)},children:[(0,H.jsx)(H.Fragment,{children:(0,H.jsx)("input",{"aria-label":null==k||null==(r=k.field)?void 0:r.signInEmailAddress,type:k.type.email,style:{display:"none"},name:k.field.signInEmailAddress})}),(0,H.jsx)("h1",{className:"ob-form__title",dangerouslySetInnerHTML:{__html:t}}),(0,H.jsx)("h2",{className:"ob-form__subtitle",dangerouslySetInnerHTML:{__html:a}}),j.isInvalidForm&&(0,H.jsx)(e9,B(B({},j.formErrorResponse),{},{predefinedErrors:s}
1)),(0,H.jsx)(G,{label:n.forgotPasswordEmailFieldLabel,inputType:k.type.email,name:k.field.signInEmailAddress,value:l.signInEmailAddress?l.signInEmailAddress:"",onChange:function(e){return z.fieldChange(k.field.signInEmailAddress,e.target.value)},validationErrorText:d.signInEmailAddress,halfWidth:!0}),(0,H.jsx)(R.b7,{buttonText:n.forgotPasswordButtonText,disabled:!m,ariaFormIsSubmitting:o,isSubmitting:b})]}),w&&(0,H.jsxs)("form",{className:"ob-form__form",children:[(0,H.jsx)("h1",{className:"ob-form__title",dangerouslySetInnerHTML:{__html:t}}),(0,H.jsx)("h2",{className:"ob-form__subtitle",dangerouslySetInnerHTML:{__html:n.forgotPasswordSuccessText}}),(0,H.jsx)(V,{href:i.fields.pagePath.fields.slug,className:"ob-forgot-password__success-link",children:i.fields.title})]})]})})});var Z="changePasswordFormNoAuth",W="password",Q="newPassword",J="newPasswordConfirm",U=t(26316),$=p()(function(){return Promise.resolve().then(t.bind(t,73177))},{loadableGenerated:{webpack:function(){return[73177]}}}),K=p()(function(){return t.e(308).then(t.bind(t,50308))},{loadableGenerated:{webpack:function(){return[50308]}}}),X=p()(function(){return t.e(8692).then(t.bind(t,48692))},{loadableGenerated:{webpack:function(){return[48692]}}}),ee=new F(A,1);let er=(0,D.PA)(function(e){var r=e.formHeading,t=e.formSubHeading,a=e.formSubHeadingSuccess,n=e.ariaFormIsSubmitting,o=e.formSuccessLink,s=e.janrainLabels,i=e.janrainFormErrors,l=e.codeFailRedirectPath,d=ee.form,m=ee.errors,p=ee.formValidated,b=(0,u.useState)(!1),g=b[0],h=b[1],w=(0,u.useState)(!1),_=w[0],v=w[1],y=(0,u.useState)(void 0),j=y[0],x=y[1],P=(0,u.useState)(!1),S=P[0],N=P[1],C=(0,u.useState)(!1),E=C[0],O=C[1],I=(0,f.A)(),L=c()(I,2);L[0],L[1],(0,u.useEffect)(function(){window.janrain.events.onCaptureRenderStart.addHandler(function(e){return A()}),ee.clear(),ee.errorTexts=i,window.janrain.capture.ui.createCaptureSession(j)},[]);var A=function(){var e=!1;new URLSearchParams(window.location.search).get("code")&&(e=!0),_||g||!e?D():(window.janrain.capture.ui.renderScreen("resetPasswordRequestCode"),window.janrain.events.onCaptureSaveFailed.addHandler(T),window.janrain.events.onCaptureSaveSuccess.addHandler(F))},T=function(){h(!0),v(!0),D()},F=function(e){"forgotPasswordCodeRedeemed"===e.statusMessage&&(h(!0),x(e.accessToken))},D=function(){(0,U.S)(l)};(0,u.useEffect)(function(){S&&(window.janrain.events.onCaptureSaveSuccess.addHandler(q),window.janrain.events.onCaptureSaveFailed.addHandler(k),window.janrain.capture.ui.postCaptureForm(Z,d))},[S]),(0,u.useEffect)(function(){if(E){var e=document.querySelector(".ob-form__subtitle");(0,M.WR)(e)}},[E]);var k=function(){N(!1)},q=function(){N(!1),O(!0)};return(0,H.jsx)("div",{className:"ob-reset",children:(0,H.jsxs)("div",{className:"ob-form__layout ob-reset__wrapper",children:[(0,H.jsx)("h1",{className:"ob-form__title",dangerouslySetInnerHTML:{__html:r}}),!E&&(0,H.jsxs)("form",{name:Z,onSubmit:function(e){e.preventDefault(),N(!0)},children:[(0,H.jsx)("h2",{className:"ob-reset__subtitle ob-form__subtitle",dangerouslySetInnerHTML:{__html:t}}),(0,H.jsxs)("div",{className:"ob-form__wrapper",children:[(0,H.jsx)("div",{className:"ob-form__input-wrapper current-password-wrapper",children:(0,H.jsx)($,{label:s.newPasswordFieldLabel,inputType:W,name:Q,value:d.newPassword||"",onChange:function(e){return ee.fieldChange(Q,e.target.value)},validationErrorText:m.newPassword})}),(0,H.jsx)("div",{className:"ob-form__input-wrapper",children:(0,H.jsx)($,{label:s.reEnterPasswordFieldLabel,inputType:W,name:J,value:d.newPasswordConfirm||"",onChange:function(e){return ee.fieldChange(J,e.target.value)},validationErrorText:m.newPasswordConfirm})})]}),(0,H.jsx)(K,{className:"ob-reset__requirements ob-form__requirements",children:s.passwordRequirements}),(0,H.jsx)(R.b7,{buttonText:s.submitButtonLabel,disabled:!p,ariaFormIsSubmitting:n,isSubmitting:S})]}),E&&(0,H.jsxs)("div",{className:"ob-form__success",children:[(0,H.jsx)("h2",{className:"ob-form__subtitle",dangerouslySetInnerHTML:{__html:a}}),(0,H.jsx)(X,{href:o.fields.pagePath.fields.slug,children:o.fields.title})]})]})})});var et="changePasswordFormNoAuth",ea="password",en="newPassword",eo="newPasswordConfirm",es=p()(function(){return Promise.resolve().then(t.bind(t,73177))},{loadableGenerated:{webpack:function(){return[73177]}}}
1),ei=p()(function(){return t.e(8692).then(t.bind(t,48692))},{loadableGenerated:{webpack:function(){return[48692]}}}),el=p()(function(){return t.e(308).then(t.bind(t,50308))},{loadableGenerated:{webpack:function(){return[50308]}}}),ed=new F(A,2);let ec=(0,D.PA)(function(e){var r=e.formHeading,t=e.formSuccessLink,a=e.formSubHeadingSuccess,n=e.ariaFormIsSubmitting,o=e.janrainLabels,s=e.janrainFormErrors,i=ed.form,l=ed.errors,d=ed.formValidated;ed.errorsNumber;var c=(0,u.useState)(!1),f=c[0],m=c[1],p=(0,u.useState)(!1),b=p[0],g=p[1];(0,u.useEffect)(function(){ed.clear(),ed.errorTexts=s},[]),(0,u.useEffect)(function(){f&&(window.janrain.events.onCaptureSaveSuccess.addHandler(w),window.janrain.events.onCaptureSaveFailed.addHandler(h),window.janrain.capture.ui.postCaptureForm(et,i))},[f]),(0,u.useEffect)(function(){if(b){var e=document.querySelector(".ob-form__subtitle");(0,M.WR)(e)}},[b]);var h=function(){m(!1)},w=function(){m(!1),g(!0)};return(0,H.jsx)("div",{className:"ob-change ".concat(b?"updated":""),children:(0,H.jsxs)("div",{className:"ob-form__layout ob-change_wrapper",children:[(0,H.jsx)("h1",{className:"ob-form__title",dangerouslySetInnerHTML:{__html:r}}),!b&&(0,H.jsxs)("form",{name:et,onSubmit:function(e){e.preventDefault(),m(!0)},children:[(0,H.jsxs)("div",{className:"ob-form__wrapper",children:[(0,H.jsx)("div",{className:"ob-form__input-wrapper",children:(0,H.jsx)(es,{label:o.changePasswordNewPasswordFieldLabel,inputType:ea,name:en,value:i.newPassword?i.newPassword:"",ariaDescribedBy:"inputDescription",onChange:function(e){return ed.fieldChange(en,e.target.value)},validationErrorText:l.newPassword})}),(0,H.jsx)("div",{className:"ob-form__input-wrapper",children:(0,H.jsx)(es,{label:o.changePasswordConfirmNewPasswordFieldLabel,inputType:ea,name:eo,value:i.newPasswordConfirm?i.newPasswordConfirm:"",ariaDescribedBy:"inputDescription",onChange:function(e){return ed.fieldChange(eo,e.target.value)},validationErrorText:l.newPasswordConfirm})})]}),(0,H.jsx)(el,{id:"inputDescription",className:"ob-change__requirements ob-form__requirements",children:o.passwordRequirements}),(0,H.jsx)(R.b7,{buttonText:o.submitButtonLabel,disabled:!d,ariaFormIsSubmitting:n,isSubmitting:f})]}),b&&(0,H.jsxs)("div",{className:"ob-form__success",children:[(0,H.jsx)("h2",{className:"ob-form__subtitle",dangerouslySetInnerHTML:{__html:a}}),(0,H.jsx)(ei,{href:t.fields.pagePath.fields.slug,children:t.fields.title})]})]})})});var eu=t(37936),ef=t.n(eu),em=t(83922),ep=t.n(em),eb=t(32249),eg=t.n(eb);function eh(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,a)}return t}function ew(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?eh(Object(t),!0).forEach(function(r){l()(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):eh(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function e_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e_=function(){return!!e})()}var ev=function(e){function r(){var e,t;return w()(this,r),e=r,t=arguments,e=ep()(e),ef()(this,e_()?Reflect.construct(e,t||[],ep()(this).constructor):e.apply(this,t))}return eg()(r,e),v()(r,[{key:"rehydrateForProfileForm",value:function(e){var r=null!==e.birthday?new Date(e.birthday+"T00:00:00"):void 0,t=r?r.getMonth()+1:void 0,a=r?r.getFullYear():void 0;this.form=ew(ew(ew(ew(ew(ew(ew({firstName:e.givenName||"",lastName:e.familyName||"",emailAddress:e.email||""},e.phone&&{phone:e.phone}),e.primaryAddress.zip&&{addressPostalCode:e.primaryAddress.zip}),e.primaryAddress.country&&{addressCountry:e.primaryAddress.country}),e.gender&&{gender:e.gender}),(t||a)&&{"birthdate[dateselect_day]":"1"}),(t||a)&&{"birthdate[dateselect_month]":t}),(t||a)&&{"birthdate[dateselect_year]":a})}}])}(F),ey=new ev({emailAddress:[{error:"emailNotValid",fn:E}],firstName:[{error:"firstNameIsRequired",fn:I},{error:"noDigitsAllowed",fn:O}],lastName:[{error:"lastNameIsRequired",fn:I},{error:"noDigitsAllowed",fn:O}],addressPostalCode:[{error:"postalCodeIsRequired",fn:I}],addressCountry:[],"birthdate[dateselect_day]":[],"birthdate[dateselect_month]":[{error:"dobIsRequired",fn:I},{error:"dobIsRequired",fn:L}],"birthdate[dateselect_year]":[{error:"dobIsRequired",fn:I},{error:"dobIsRequired",fn:L}]},7);let ej=(0,D.PA)(function(e){var r=e.userData,t=e.oralbBenefitPreferenceList,a=e.oralbProductList,n=e.currentTab,o=e.profileProductManagementTab,s=e.commonLabels,i=e.janrainErrors,l=e.profileEditTab,d=e.profileBenefitPreferencesTab,c=e.setOralbProductList,u=e.isGCSAPIDown,f=ey.form,m=ey.errors,p=ey.formValidated,b={overlay:{boxShadow:"rgba(0, 0, 0, 0.5) 0 2px 4px",background:"rgba(0, 0, 0, 0.5)",display:"flex",justifyContent:"center",alignItems:"center"},content:{position:"static",display:"flex"}};return(0,H.jsx)("div",{className:"ob-profile-form",children:(0,H.jsxs)("div",{className:"ob-form__layout ob-profile__wrapper",children:[(0,H.jsx)("div",{className:"ob-profile__tab-container ".concat(0===n?"is-active":""),children:(0,H.jsx)(R.tl,{userData:r,oralbProductList:a,profileProductManagementTab:o,c
1ommonLabels:s,janrainErrors:i,customStyles:b,closeModalTimeoutMS:250,setOralbProductList:c,isGCSAPIDown:u})}),(0,H.jsx)("div",{className:"ob-profile__tab-container ".concat(1===n?"is-active":""),children:(0,H.jsx)(R._t,{janrainErrors:i,errors:m,profileStore:ey,form:f,userData:r,profileEditTab:l,formValidated:p,commonLabels:s,customStyles:b,closeModalTimeoutMS:250})}),(0,H.jsx)("div",{className:"ob-profile__tab-container ".concat(2===n?"is-active":""),children:(0,H.jsx)(R.Rt,{oralbBenefitPreferenceList:t,userData:r,profileBenefitPreferencesTab:d,commonLabels:s,customStyles:b,closeModalTimeoutMS:250})})]})})});var ex="registrationForm",eP="text",eS="email",eN="password",eC="firstName",eE="lastName",eO="emailAddress",eI="emailAddressConfirm",eL="newPassword",eA="newPasswordConfirm",eT="addressPostalCode",eF="addressCountry",eD={dateselect_month:"birthdate[dateselect_month]",dateselect_year:"birthdate[dateselect_year]",dateselect_day:"birthdate[dateselect_day]"},ek="globalOpt_optStatus",eR=t(64256),eM=t(48748),eH=t(41116),eq=t.n(eH),eB=t(39044),eV=t(99742);function eG(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,a)}return t}function ez(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?eG(Object(t),!0).forEach(function(r){l()(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):eG(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var eY=p()(function(){return Promise.resolve().then(t.bind(t,15623))},{loadableGenerated:{webpack:function(){return[15623]}}}),eZ=p()(function(){return t.e(308).then(t.bind(t,50308))},{loadableGenerated:{webpack:function(){return[50308]}}}),eW=p()(function(){return t.e(9195).then(t.bind(t,29195))},{loadableGenerated:{webpack:function(){return[29195]}}}),eQ=p()(function(){return Promise.all([t.e(1944),t.e(5520)]).then(t.bind(t,25520))},{loadableGenerated:{webpack:function(){return[25520]}}}),eJ=new ev({firstName:[{error:"firstNameIsRequired",fn:I},{error:"noDigitsAllowed",fn:O}],lastName:[{error:"lastNameIsRequired",fn:I},{error:"noDigitsAllowed",fn:O}],emailAddress:[{error:"emailIsRequired",fn:I},{error:"emailNotValid",fn:E}],emailAddressConfirm:[{error:"emailIsRequired",fn:I},{error:"emailNotValid",fn:E},{error:"emailMustBeEqual",fn:function(e,r){return e===r.emailAddress}}],newPassword:[{error:"invalidPassword",fn:function(e){return I(e)&&P(e)&&S(e)&&/[A-Z]/.test(e)&&N(e)}}],newPasswordConfirm:[{error:"passwordMustBeEqual",fn:C}],"birthdate[dateselect_day]":[],"birthdate[dateselect_month]":[{error:"dobIsRequired",fn:I},{error:"dobIsRequired",fn:L}],"birthdate[dateselect_year]":[{error:"dobIsRequired",fn:I},{error:"dobIsRequired",fn:L}],addressPostalCode:[{error:"postalCodeIsRequired",fn:I}],addressCountry:[],globalOpt_optStatus:[]},13);let eU=(0,D.PA)(function(e){var r=e.formHeading,t=e.formSubHeading,a=e.disclaimer,n=e.janrainLabels,o=e.janrainFormErrors,s=e.handleRegisterSuccess,i=e.alreadyHaveAnAccount,l=e.passwordRequirements,d=e.whyWeAskForDateOfBirth,m=e.whyWeAskForDateOfBirthLegal,p=e.formStep,b=e.countryOptionList,g=e.optId,h=e.optText,w=e.formLanguage,_=e.disclaimerBottom,v=e.emailDisclaimer,y=e.postalCodeValidationRegex,j=e.postalCodeSecondPattern,x=e.utmSource,P=e.ariaFormIsSubmitting,S=e.minimumAge,N=e.activateDoubleOptInEmailVerification,C=e.oralCareGoals,E=(0,u.useState)(!1),O=E[0],I=E[1],L=(0,u.useState)(!1),A=L[0],T=L[1],F=(0,f.A)(),D=c()(F,2),k=D[0];D[1];var q=(0,u.useState)(!1),B=q[0],V=q[1],G=(0,u.useState)([]),z=G[0],Y=G[1],Z=(0,u.useState)([]),W=Z[0],Q=Z[1],J=(0,u.useState)({}),U=J[0],$=J[1],K=(0,u.useState)(!1),X=K[0],ee=K[1],er=(0,u.useState)(!1),et=er[0],ea=er[1],en=(0,u.useState)(!1),eo=en[0],es=en[1],ei=(0,u.useState)(!1),el=ei[0],ed=ei[1],ec=(0,u.useState)(g),eu=ec[0],ef=ec[1],em=(0,u.useRef)(null),ep=(0,u.useRef)(null),eb=(0,u.useRef)(null),eg=eJ.form,eh=eJ.errors,ew=eJ.formValidated,e_={overlay:{backgroundColor:"none"},content:{position:"fixed",border:"none",top:"0",left:"0",right:"0",bottom:"0",padding:"0",marginRight:"0",height:"100%",background:"rgba(255, 255, 255, 0.5)",display:"flex",justifyContent:"center",alignItems:"center"}},ev=function(){ea(!1),es(!1)},ey=function(){ed(!1)},ej=function(){if(em.current){var e=em.current.querySelector("#openFirstLegalModal");e&&e.addEventListener("click",function(e){e.preventDefault(),ea(!0)});var r=em.current.querySelector("#openSecondLegalModal");r&&r.addEventListener("click",function(e){e.preventDefault(),es(!0)})}},eH={globalOpt_optId:"".concat(eu),globalOpt_optStatus:"".concat(B),globalOpt_optText:h,globalOpt_initialoptStatus:"false",language:w},eG=x?{traitTrafficSource:x}:"",eU=function(e){return new RegExp(e)},e$=function(e){return!!eU(y).test(e)||eU(j).test(e)},eK=function(e){var r=eJ.form["birthdate[dateselect_month]"]-1||0;
1return S<=(new Date-new Date(e,r))/31536e6};function eX(){s&&s(),(0,eM.KH)(),(0,eM.wR)()}function e0(){I(!1)}function e1(){(0,eB.JV)(eX,e0)}(0,u.useEffect)(function(){b.forEach(function(e){e.id=e.fields.countryValue,e.value=e.fields.countryDisplayName}),eJ.clear(),eJ.errorTexts=o,eJ.fieldChange("birthdate[dateselect_day]","01"),Y((0,M.cZ)(n.registerMonthSelectLabel)),Q((0,M.BB)(n.registerYearSelectLabel)),eJ.validation.addressPostalCode.push({error:"postalCodeIsRequired",fn:e$}),eJ.validation["birthdate[dateselect_month]"].push({error:"yearMustBeOldEnough",fn:eK}),document.querySelector(".js-modal-container")&&(eq().setAppElement(".js-modal-container"),ej())},[]);var e2=function(){var e=JSON.parse((0,eM.FM)()),r=(0,eB.$W)(e);delete r.traitProductType,delete r.primaryProduct;var t=(0,M.Yq)(new Date);if(r.traitBrushHeadReminderOptInFlag={traitValue:X?"Yes":null},X||(t=null),r.traitBrushheadReminderDate={traitDate:t,traitValue:t},(0,M.ZF)(U))r.traitBenefitPreferences=[];else{var a=[];r.traitBenefitPreferences=[],U.forEach(function(e){var r={traitValue:e,traitLastUpdated:new Date,traitLastUpdatedClientId:eV.env.JANRAIN_CAPTURE_CIENT_ID};a.push(r)}),r.traitBenefitPreferences=a}(0,eB.p7)(r,e1,e1)};(0,u.useEffect)(function(){if(O){var e=eK(eg["birthdate[dateselect_year]"]);if(eg.addressCountry)T(!1);else{k.formErrorResponse={form:"registrationForm",errors:[{field:"addressCountry",message:o.countryIsAMandatoryField}]},T(!0),I(!1);return}e&&!sessionStorage.getItem("userBirthYear")?(window.janrain.events.onCaptureRegistrationFailed.addHandler(function(){e0()}),window.janrain.events.onCaptureRegistrationSuccess.addHandler(function(e){N&&B?(0,eB.gA)(eg.emailAddress,e2,e2):(e2(),(0,eM.cp)(),(0,eM.X8)())}),(0,eM.if)("true"),eg.locale=eg.locale||eV.env.JANRAIN_CAPTURE_LOCALE,N&&(eH.globalOpt_initialoptStatus="".concat(B),eH.globalOpt_optStatus="false"),window.janrain.capture.ui.postCaptureForm(ex,ez(ez(ez({},eg),eH),eG))):(sessionStorage.getItem("userBirthYear")||sessionStorage.setItem("userBirthYear",eg["birthdate[dateselect_year]"]+"-"+eg["birthdate[dateselect_month]"]),ed(!0),I(!1))}},[O]);var e3=function(e){T(!e),b.forEach(function(r){if(r.fields.countryValue===e){var t,a;r.fields.sourceIdAttributeName&&r.fields.sourceId&&(eJ.validation[r.fields.sourceIdAttributeName]=[],eJ.fieldChange(r.fields.sourceIdAttributeName,r.fields.sourceId)),r.fields.marketingProgramIdAttributeName&&r.fields.marketingProgramId&&(eJ.validation[r.fields.marketingProgramIdAttributeName]=[],eJ.fieldChange(r.fields.marketingProgramIdAttributeName,r.fields.marketingProgramId)),eg.locale=(null==r||null==(t=r.fields)?void 0:t.countryLocale)||eV.env.JANRAIN_CAPTURE_LOCALE,ef((null==r||null==(a=r.fields)?void 0:a.optInId)||"")}})};return(0,H.jsxs)("div",{className:"ob-register js-modal-container",ref:em,children:[(0,H.jsxs)("div",{className:"ob-form__layout ob-register__wrapper",children:[(0,H.jsx)("h1",{className:"ob-form__title",dangerouslySetInnerHTML:{__html:r}}),(0,H.jsx)("p",{className:"ob-form__subtitle",dangerouslySetInnerHTML:{__html:t}}),(0,H.jsx)("div",{className:"ob-form__subtitle",children:(0,H.jsx)(eR.Markdown,{source:i})}),(k.isInvalidForm||A)&&(0,H.jsx)(e9,ez(ez({},k.formErrorResponse),{},{predefinedErrors:o})),(0,H.jsxs)("form",{className:"ob-form__form",name:ex,onSubmit:function(e){e.preventDefault(),I(!0)},children:[(0,H.jsx)(eZ,{className:"ob-register__step-title",children:p}),(0,H.jsx)("p",{className:"ob-register__all-fields-required",children:n.registerAllFieldsRequiredLabel}),(0,H.jsxs)("div",{className:"ob-form__wrapper ob-register__row",children:[(0,H.jsx)(R.ZQ,{label:n.registerFirstNameFieldLabel,name:eC,inputType:eP,value:eg.firstName||"",onChange:function(e){eJ.fieldChange(eC,e.target.value)},validationErrorText:eh.firstName}),(0,H.jsx)(R.ZQ,{label:n.registerLastNameFieldLabel,name:eE,inputType:eP,value:eg.lastName||"",onChange:function(e){return eJ.fieldChange(eE,e.target.value)},validationErrorText:eh.lastName})]}),(0,H.jsxs)("div",{className:"ob-form__wrapper ob-register__row",children:[(0,H.jsx)(R.ZQ,{label:n.registerEmailAddressFieldLabel,name:eO,inputType:eS,value:eg.emailAddress||"",onChange:function(e){return eJ.fieldChange(eO,e.target.value)},validationErrorText:eh.emailAddress}),(0,H.jsx)(R.ZQ,{label:n.registerReEnterEmailAddressFieldLabel,name:eI,inputType:eS,value:eg.emailAddressConfirm||"",onChange:function(e){return eJ.fieldChange(eI,e.target.value)},validationErrorText:eh.emailAddressConfirm})]}),(0,H.jsxs)("div",{className:"ob-form__wrapper ob-register__row ob-register__row-password",children:[(0,H.jsx)(R.ZQ,{label:n.registerPasswordFieldLabel,name:eL,inputType:eN,value:eg.newPassword||"",onChange:function(e){return eJ.fieldChange(eL,e.target.value)},validationErrorText:eh.newPassword,ariaDescribedBy:"inputDescription"}),(0,H.jsx)(R.ZQ,{label:n.registerReEnterPasswordFieldLabel,inputType:eN,name:eA,value:eg.newPasswordConfirm||"",onChange:function(e){return eJ.fieldChange(eA,e.target.value)},validationErrorText:eh.newPasswordConfirm,ariaDescribedBy:"inputDescription"})]}),!eh.newPassword&&(0,H.jsx)(eZ,{className:"ob-register__pass-requirements ob-form__requirements",id:"inputDescription",children:l}),(0,H.jsxs)("div",{className:"ob-form__wrapper ob-register__row ob-register__row-other",children:[(0,H.jsxs)("div",{className:"ob-form__wrapper ob-register__birthdate-wrapper",children:[(0,H.jsx)(R.sH,{dateOfBirthLabel:n.registerDateOfBirthFieldLabel,whyWeAskForDateOfBirth:d,whyWeAskForDateOfBirthLegal:m,arrMonths:z,nameMonth:eD.dateselect_month,monthLabel:n.registerMonthSelectAriaLabel||n.registerMonthSelectLabel,valueMonth:eg["birthdate[dateselect_month]"]||n.registerMonthSelectLabel,onChangeMonth:function(e){return eJ.fieldChange(eD.dateselect_month,parseInt(e.target.value,10))},errorMonth:eh["birthdate[dateselect_month]"],arrYear:W,nameYear:eD.dateselect_year,yearLabel:n.registerYearSelectAriaLabel||n.registerYearSelectLabel,valueYear:eg["birthdate[dateselect_year]"]||n.registerYearSelectLabel,onChangeYear:function(e){return eJ.fieldChange(eD.dateselect_year,e.target.value)},errorYear:eh["birthdate[dateselect_year]"]}),(0,H.jsx)(R.ZQ,{label:n.registerZipCodeFieldLabel,name:eT,inputType:eP,value:eg.addressPostalCode||"",onChange:function(e){return eJ.fieldChange(eT,e.target.value)},validationErrorText:eh.addressPostalCode})]}),(0,H.jsx)(eY,{selectLabel:n.registerCountryFieldLabel,name:eF,value:eg.addressCountry||"",onChange:function(e){e.preventDefault(),eJ.fieldChange(eF,e.target.value),e3(e.target.value)},dataArray:b,validationErrorText:eh.addressCountry})]}),(0,H.jsx)("div",{className:"ob-register-product",children:(0,H.jsx)("div",{className:"ob-register-product__wrapper",children:(0,H.jsxs)("div",{children:[(0,H.jsx)(eQ,{className:"ob-register-product__goals-text",children:n.oralCareGoals}),(0,H.jsx)(eZ,{children:n.selectGoals}),(0,H.jsx)(R.od,{className:"register-product-createprofile",janrainLabels:n,oralCareGoals:C,setGoalsData:function(e){$(e)},setReminderData:function(e){ee(e)}})]})})}),v&&(0,H.jsxs)(H.Fragment,{children:[a&&(0,H.jsx)("div",{className:"ob-register__info-text disclaimer-text-why",children:(0,H.jsx)("p",{dangerouslySetInnerHTML:{__html:a}})}),(0,H.jsx)(R.Oc,{className:"checkbox-email-disclaimer",label:"<p>".concat(v,"</p>"),name:ek,value:eg.globalOpt_optStatus||!1,checked:B,onChange:function(){return V(!B)}}),_&&(0,H.jsx)("div",{className:"ob-register__info-text ob-register__info-text-bottom",children:(0,H.jsx)("p",{dangerouslySetInnerHTML:{__html:_}})})]}),_&&!a&&(0,H.jsx)(R.Oc,{label:"<p>".concat(_,"</p>"),name:ek,value:eg.globalOpt_optStatus||!1,checked:B,onChange:function(){return V(!B)}}),(0,H.jsx)(R.b7,{buttonText:n.registerButtonText,disabled:!ew||O,isSubmitting:O,ariaFormIsSubmitting:P})]})]}),(n.modalLabelFirst||n.modalLabelSecond)&&(0,H.jsx)(eq(),{isOpen:et||eo,style:e_,onRequestClose:ev,closeTimeoutMS:250,overlayClassName:"event_button_click",ref:ep,children:(0,H.jsxs)("div",{className:"ob-register__modal-container",children:[et&&n.modalLabelFirst&&(0,H.jsx)("p",{dangerouslySetInnerHTML:{__html:n.modalLabelFirst}}),eo&&n.modalLabelSecond&&(0,H.jsx)("p",{dangerouslySetInnerHTML:{__html:n.modalLabelSecond}}),(0,H.jsx)("button",{className:"event_close_window ob-modal-close",onClick:ev,"aria-label":n.closeModalLabel,type:"button",children:(0,H.jsx)(eW,{name:"close",size:"2.4"})})]})}),n.underAgeErrorLabel&&(0,H.jsx)(eq(),{isOpen:el,style:e_,onRequestClose:ey,closeTimeoutMS:250,overlayClassName:"event_button_click",ref:eb,children:(0,H.jsxs)("div",{className:"ob-register__modal-container",children:[(0,H.jsx)("p",{dangerouslySetInnerHTML:{__html:n.underAgeErrorLabel}}
1),(0,H.jsx)("button",{className:"event_close_window ob-modal-close",onClick:ey,"aria-label":n.closeModalLabel,type:"button",children:(0,H.jsx)(eW,{name:"close",size:"2.4"})})]})})]})});var e$="signInForm",eK="email",eX="password",e0="signInEmailAddress",e1="currentPassword";function e2(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,a)}return t}function e3(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?e2(Object(t),!0).forEach(function(r){l()(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):e2(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}var e5=new F({signInEmailAddress:[{error:"emailIsRequired",fn:I},{error:"emailNotValid",fn:E}],currentPassword:[{error:"passwordNotBlank",fn:I},{error:"passwordIsTooShort",fn:P}]},2);let e8=(0,D.PA)(function(e){var r=e.formHeading,t=e.formSubHeading,a=e.janrainLabels,n=e.forgotPasswordPath,o=e.forgotProfilePath,s=(e.emailValidationRegex,e.janrainFormErrors),i=e.handleLoginSuccess,l=e.ariaFormIsSubmitting;e.utmSource,e.activateDoubleOptInEmailVerification;var d=e5.form,m=e5.errors,p=e5.formValidated,b=(0,u.useState)(!1),g=b[0],h=b[1],w=(0,f.A)(),_=c()(w,2),v=_[0];return _[1],(0,u.useEffect)(function(){e5.clear(),e5.errorTexts=s},[]),(0,u.useEffect)(function(){g&&(window.janrain.events.onCaptureLoginSuccess.addHandler(function(e){i&&i(e),(0,eM.wR)(),(0,eM.cp)(),(0,eM.a0)()}),window.janrain.events.onCaptureLoginFailed.addHandler(function(){h(!1)}),window.janrain.capture.ui.postCaptureForm(e$,d))},[g]),(0,H.jsx)("div",{className:"ob-login",children:(0,H.jsxs)("div",{className:"ob-form__layout ob-login__wrapper",children:[(0,H.jsx)("h1",{className:"ob-form__title",dangerouslySetInnerHTML:{__html:r}}),(0,H.jsx)("h2",{className:"ob-form__subtitle",dangerouslySetInnerHTML:{__html:t}}),v.isInvalidForm&&(0,H.jsx)(e9,e3(e3({},v.formErrorResponse),{},{predefinedErrors:s})),(0,H.jsxs)("form",{className:"ob-form__form",name:e$,onSubmit:function(e){e.preventDefault(),h(!0)},children:[(0,H.jsxs)("div",{className:"ob-form__wrapper",children:[(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("label",{htmlFor:e0,children:(0,H.jsx)("input",{type:eK,style:{display:"none"},name:e0,id:e0})}),(0,H.jsx)("label",{htmlFor:e1,children:(0,H.jsx)("input",{type:eX,style:{display:"none"},name:e1,id:e1})})]}),(0,H.jsx)("div",{className:"ob-form__input-wrapper",children:(0,H.jsx)(R.ZQ,{label:a.loginEmailFieldLabel,inputType:eK,name:e0,value:d.signInEmailAddress?d.signInEmailAddress:"",onChange:function(e){return e5.fieldChange(e0,e.target.value)},validationErrorText:m.signInEmailAddress})}),(0,H.jsx)("div",{className:"ob-form__input-wrapper",children:(0,H.jsx)(R.ZQ,{label:a.loginPasswordFieldLabel,inputType:eX,name:e1,value:d.currentPassword?d.currentPassword:"",onChange:function(e){return e5.fieldChange(e1,e.target.value)},validationErrorText:m.currentPassword})})]}),(0,H.jsxs)("div",{className:"ob-form__login-submit-container",children:[(0,H.jsx)("div",{className:"ob-form__forgot-pass --mobile",children:(0,H.jsx)("a",{"aria-label":a.loginPasswordForgotPasswordText,href:n,"data-capturescreen":"forgotPassword",children:a.loginPasswordForgotPasswordText})}),(0,H.jsx)(R.b7,{buttonText:a.loginButtonText,disabled:!p,isSubmitting:g,ariaFormIsSubmitting:l}),(0,H.jsx)("div",{className:"ob-form__forgot-pass --desktop",children:(0,H.jsx)("a",{"aria-label":a.loginPasswordForgotPasswordText,href:n,"data-capturescreen":"forgotPassword",children:a.loginPasswordForgotPasswordText})})]}),(0,H.jsxs)("p",{className:"ob-form__create-profile",children:[(0,H.jsx)("span",{children:a.loginPasswordForgotPasswordQuestion}),(0,H.jsx)("a",{"aria-label":a.loginCreateAccount,className:"ob-form__login__link-create",href:o,"data-capturescreen":"forgotPassword",children:a.loginCreateAccount})]})]})]})})});var e7=t(86364);let e9=function(e){var r=e.statusMessage,t=e.form,a=e.errors,n=e.predefinedErrors;(0,u.useEffect)(function(){window.scrollTo(0,0);var e=document.querySelector(".ob-error__wrapper");e&&(0,M.WR)(e)},[r]);var o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.includes(e7.YM.alreadyInUse)};return(0,H.jsx)("div",{className:"ob-error__wrapper",children:(0,H.jsx)("p",{className:"ob-error__heading",children:function(){switch(r){case"invali
1dCredentials":if("signInForm"===t)return n.errorInLoginForm;return n.invalidCredentials;case"validationErrors":default:return"registrationForm"===t&&a&&a.length?a.map(function(e,r){return(null==e?void 0:e.field)==="emailAddress"?o(null==e?void 0:e.message)?n.emailAlreadyExists:n.emailNotAllowedError:n.inputsNotValid}):n.inputsNotValid;case"accountDeactivated":return n.accountDeactivated;case"invalidAccountIdentifier":return n.invalidCredentials;case"rateLimitExceeded":return n.rateLimitExceeded}}()})})};var e4=t(87856),e6=e4.Ay.span.withConfig({displayName:"FakeJanrainScreenstyles__FakeWrapper",componentId:"sc-d5kc1-0"})(["display:none;"]),re=e4.Ay.span.withConfig({displayName:"FakeJanrainScreenstyles__Screen",componentId:"sc-d5kc1-1"})(["display:none;"]);let rr=function(e){var r=e.id;return(0,H.jsx)(e6,{children:(0,H.jsx)(re,{id:r})})}},10305:e=>{e.exports=function(e,r,t,a,n){var o={};return Object.keys(a).forEach(function(e){o[e]=a[e]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=t.slice().reverse().reduce(function(t,a){return a(e,r,t)||t},o),n&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(n):void 0,o.initializer=void 0),void 0===o.initializer?(Object.defineProperty(e,r,o),null):o},e.exports.__esModule=!0,e.exports.default=e.exports},28141:e=>{e.exports=function(e,r){throw Error("Decorating class property failed. Please ensure that transform-class-properties is enabled and runs after the decorators transform.")},e.exports.__esModule=!0,e.exports.default=e.exports},31161:e=>{e.exports=function(e,r,t,a){t&&Object.defineProperty(e,r,{enumerable:t.enumerable,configurable:t.configurable,writable:t.writable,value:t.initializer?t.initializer.call(a):void 0})},e.exports.__esModule=!0,e.exports.default=e.exports}}]);

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.