PageSourceSearch

https://www.dentalcare.com/_next/static/chunks/pages/en-us/user-account/update-profile-d2e2838379ea9525.js

js dentalcare.com collected 2026-09-24 19:17:44 UTC 23,231 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8027],{99666:function(e,r,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/en-us/user-account/update-profile",function(){return a(97191)}])},97191:function(e,r,a){"use strict";a.r(r),a.d(r,{__N_SSG:function(){return T},default:function(){return M},dynamic:function(){return O}});var t=a(85893),l=a(67294),o=a(45697),s=a.n(o),i=a(5152),n=a.n(i),d=a(94960),u=a(97702),c=a(41135),m=a(51135),p=a(40670),h=a(92723),b=a(82636),x=a(80008),f=a.n(x);let g=n()(()=>a.e(3622).then(a.bind(a,33622)),{loadableGenerated:{webpack:()=>[33622]}}),v=e=>{let{locale:r,labelId:a,labelText:o,required:s,isError:i,errorMessage:n,defaultValue:d,name:u,onUpdate:c}=e,m=(0,h.Cl)(),p=(0,h.H8)(),[x,v]=(0,l.useState)({calenderOpen:!1,value:d?"".concat(f()(d,"YYYY/MM/DD").format("M"),"/").concat(f()(d,"YYYY/MM/DD").format("YYYY")):"",month:d?parseInt(f()(d,"YYYY/MM/DD").format("M")):m,year:d?parseInt(f()(d,"YYYY/MM/DD").format("YYYY")):p}),[w,S]=(0,l.useState)(x.year!=p?Array(12).fill(1).map((e,a)=>({title:(0,h.Rb)(a,null==r?void 0:r.toLowerCase()),value:a+1})):Array(12-m+1).fill(1).map((e,a)=>({title:(0,h.Rb)(a+m-1,null==r?void 0:r.toLowerCase()),value:a+m}))),N=Array(6).fill(p).map((e,r)=>({title:e+r,value:e+r})),j="".concat(a,"-month"),E="".concat(a,"-year"),V=(0,l.useRef)(),R=(0,l.useCallback)(()=>v(e=>({...e,calenderOpen:!0})),[]),y=(0,l.useCallback)(()=>v(e=>({...e,calenderOpen:!1})),[]),T=(0,l.useCallback)(e=>{V.current&&!V.current.contains(e.target)&&y()},[y]);(0,l.useEffect)(()=>(x.calenderOpen&&window.addEventListener("click",T),()=>{window.removeEventListener("click",T)}),[x.calenderOpen,T]);let O=(0,l.useCallback)((e,a)=>{var t;let l=null===(t=e.target.attributes["data-name"])||void 0===t?void 0:t.value,o=a||e.target.value,s=w;v(e=>{let a=e.value,t=e.month,i=e.year;return l===j?(a="".concat(o,"/").concat(e.year),t=o):l===E&&(i=o,o===p?t=(s=Array(12-m+1).fill(1).map((e,a)=>({title:(0,h.Rb)(a+m-1,null==r?void 0:r.toLowerCase()),value:a+m})))[0].value:s=Array(12).fill(1).map((e,a)=>({title:(0,h.Rb)(a,null==r?void 0:r.toLowerCase()),value:a+1})),a=o===p?"".concat(s[0].value.toString().padStart(2,"0"),"/").concat(o):"".concat(e.month,"/").concat(o)),"function"==typeof c&&c(u,a),{...e,value:a,month:t,year:i}}),l===E&&S(s)},[c,x,w]);return(0,t.jsxs)("div",{ref:V,className:"relative max-w-350 graduation",children:[(0,t.jsx)(g,{labelId:a,variant:"registration",labelText:o,required:s,isError:i,errorMessage:n,defaultValue:d,"data-name":u,readOnly:!0,onFocus:R,value:x.value,inputValue:x.value,"data-testid":"test-calendar-text-field"}),x.calenderOpen&&(0,t.jsx)("div",{className:"relative gradte",children:(0,t.jsxs)("div",{className:"flex flex-wrap w-full lg:max-w-350 justify-between bg-white mt-5",children:[(0,t.jsx)("div",{className:"flex flex-wrap w-2/5 ",children:(0,t.jsx)(b.default,{defaultValue:(0,h.Rb)(x.month-1,null==r?void 0:r.toLowerCase()),variant:"registrationDob",options:w,name:j,onSelect:O,resetValue:x.year===p})}),(0,t.jsx)("div",{className:"flex flex-wrap mt:ml-50 w-2/5",children:(0,t.jsx)(b.default,{defaultValue:x.year,variant:"registrationDobYear",options:N,name:E,onSelect:O})})]})})]})};v.propTypes={locale:s().string,labelId:s().string,labelText:s().string,required:s().bool,isError:s().bool,errorMessage:s().string,defaultValue:s().string,name:s().string,onUpdate:s().func};var w=a(46140);let S=n()(()=>Promise.all([a.e(1664),a.e(780)]).then(a.bind(a,76048)),{loadableGenerated:{webpack:()=>[76048]}}),N=n()(()=>Promise.resolve().then(a.bind(a,82636)),{loadableGenerated:{webpack:()=>[82636]}}),j=n()(()=>Promise.all([a.e(7311),a.e(7441),a.e(1664),a.e(3632)]).then(a.bind(a,58834)),{loadableGenerated:{webpack:()=>[58834]}}),E=n()(()=>a.e(3622).then(a.bind(a,33622)),{loadableGenerated:{webpack:()=>[33622]}}),V=e=>{var r,a,o,s;let{locale:i}=e,{labels:n,fields:h,optInCountry:b}=u.ZP[i.toLowerCase()][d.pageTypes.editProfilePage],x=u.uJ[i.toLowerCase()],{reduxState:{userProfile:{user:f,profile:g},forms:V,errors:R},viewProfile:y,updateValueAndValidate:T,editProfile:O,resetRoleCallback:M,resetSchoolStateCallback:D,updateOptIns:C,clearServerError:q}=(0,l.useContext)(m.ReduxContext),{dispatch:z}=(0,l.useContext)(m.ReduxContext);(0,l.useEffect)(()=>{q(),z({type:w.aO.PROFILE_UPDATED,data:!1}),z({type:w.aO.REGISTRTION_SUCCESSFUL,data:!1}),f&&Object.keys(f).length>0||y(!0)},[]);let I=(0,l.useMemo)(()=>h.schoolName.options.sort(function(e,r){var a=e.title.toUpperCase(),t=r.title.toUpperCase();return"OTHER"===a||"OTHER"===t?0:a<t?-1:a>t?1:0}),[]);return f&&Object.keys(f).length>0?(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"limitcont mb-70 mt-50 px-20 lg:px-auto regPag",children:(0,t.jsxs)("div",{className:"lg:w-9/12 lg:mx-auto",children:[(0,t.jsx)("h1",{className:"text-22 leading-30 w-full text-primary mt-100 mb-20 lg:mb-0 font-mont uppercase font-bold lg:text-2xl lg:leading-33 lg:mt-0",children:n.title}),g.studentGraduationError&&(0,t.jsx)("div",{children:n.studentGraduationMessage.map((e,r)=>(0,t.jsx)(j,{className:"text-errorRed",content:e},r))}),R.serverError&&(0,t.jsx)(t.Fragment,{children:R.errorMessage.trim().toLowerCase()===(null===(r=u.Qj[i.toLowerCase()])||void 0===r?void 0:r.unProcessableEntityErrText.trim().toLowerCase())?(0,t.jsxs)("div",{className:"text-errorRed mt-20 linktext",children:[n.contactCustomerService,(0,t.jsx)(S,{href:(0,c.o)({locale:i,pageType:d.pageTypes.contactUsPage}),className:"inline-block pl-5",children:n.clickHereBtn})]}):(0,t.jsx)("div",{className:"text-errorRed mt-20",children:R.errorMessage})}),(0,t.jsxs)("form",{onSubmit:O,children:[(0,t.jsx)("div",{className:"flex flex-wrap dpwrpr",children:(0,t.jsx)("div",{className:"w-full lg:w-1/2",children:(0,t.jsx)(N,{defaultValue:f.title,options:h.title.options,isRequired:!0,isError:!!V.titleError,errorMessage:V.titleError,variant:"registration",labelText:h.title.label,name:h.title.name,onSelect:T})})}),(0,t.jsxs)("div",{className:"flex flex-wrap dpwrpr",children:[(0,t.jsx)("div",{className:"w-full lg:w-1/2 mb-32",children:(0,t.jsx)(E,{labelId:h.firstName.name,variant:"registration",labelText:h.firstName.label,required:!0,isError:!!V.firstNameError,errorMessage:V.firstNameError,defaultValue:f.firstName,"data-name":h.firstName.name,onBlur:T,value:f.firstName})}),(0,t.jsx)("div",{className:"w-full lg:w-1/2  mb-32 ",children:(0,t.jsx)(E,{labelId:h.lastName.name,variant:"registration",labelText:h.lastName.label,required:!0,isError:!!V.lastNameError,errorMessage:V.lastNameError,defaultValue:f.lastName,"data-name":h.lastName.name,onBlur:T})})]}),(0,t.jsx)("div",{className:"mb-32",children:(0,t.jsx)(j,{className:"mb-10 font-lato text-16 text-grayDavy linktext",content:n.notEditableEmailInfo})}),(0,t.jsx)("div",{className:"flex flex-wrap dpwrpr",children:(0,t.jsx)("div",{className:"w-full lg:w-1/2  mb-32",children:(0,t.jsx)(E,{labelId:h.email.name,variant:"registration",labelText:h.email.label,required:!0,isError:!!V.emailError,errorMessage:V.emailError,defaultValue:f.email,"data-name":h.email.name,onBlur:T,disabled:!0})})}),(0,t.jsxs)("div",{className:"flex flex-wrap dpwrpr",children:[(0,t.jsx)("div",{className:"w-full lg:w-1/2 ",children:(0,t.jsx)(N,{defaultValue:f.carrierCountry,options:h.carrierCountry.options,isRequired:!0,isError:!!V.carrierCountryError,errorMessage:V.carrierCountryError,variant:"registration",labelText:h.carrierCountry.label,name:h.carrierCountry.name,onSelect:T})}),(0,t.jsx)("div",{className:"w-full lg:w-1/2 mb-32",children:(0,t.jsx)(E,{labelId:h.mobileNumber.name,variant:"registration",labelText:h.mobileNumber.label,required:!0,isError:!!V.mobileNumberError,errorMessage:V.mobileNumberError,defaultValue:f.mobileNumber,"data-name":h.mobileNumber.name,onBlur:T})})]}),(0,t.jsxs)("div",{className:"flex flex-wrap w-full lg:max-w-350 justify-between mb-32",children:[(0,t.jsxs)("div",{className:"w-full text-sonicSilver text-14 mb-5",children:[" ",h.birthMonth.label,(0,t.jsx)("sup",{className:"text-red",children:"*"})]}),(0,t.jsx)("div",{className:"flex flex-wrap w-2/5",children:(0,t.jsx)(N,{defaultValue:String(f.birthMonth),variant:"registrationDob",options:h.birthMonth.options,required:!0,isError:!!V.birthMonthError,errorMessage:V.birthMonthError,name:h.birthMonth.name,onSelect:T})}),(0,t.jsx)("div",{className:"flex flex-wrap mt:ml-50 w-2/5",children:(0,t.jsx)(N,{defaultValue:String(f.birthYear),variant:"registrationDobYear",options:h.birthYear.options,required:!0,isError:!!V.birthYearError,errorMessage:V.birthYearError,name:h.birthYear.name,onSelect:T})})]}),(0,t.jsxs)("div",{className:"flex flex-wrap dpwrpr",children:[(0,t.jsx)("div",{className:"w-full lg:w-1/2 mb-32",children:(0,t.jsx)(E,{labelId:h.addressLine1.name,variant:"registration",labelText:h.addressLine1.label,required:!0,isError:!!V.addressLine1Error,errorMessage:V.addressLine1Error,defaultValue:f.addressLine1,"data-name":h.addressLine1.name,onBlur:T})}),(0,t.jsx)("div",{className:"w-full lg:w-1/2 mb-32",children:(0,t.jsx)(E,{labelId:h.addressLine2.name,variant:"registration",labelText:h.addressLine2.label,required:!1,defaultValue:f.addressLine2,"data-name":h.addressLine2.name,onBlur:T})})]}),(0,t.jsx)("div",{className:"flex flex-wrap dpwrpr",children:(0,t.jsx)("div",{className:"w-full lg:w-1/2 mb-32",children:(0,t.jsx)(E,{labelId:h.city.name,variant:"registration",labelText:h.city.label,required:!0,isError:!!V.cityError,errorMessage:V.cityError,defaultValue:f.city,"data-name":h.city.name,onBlur:T})})}),(0,t.jsx)("div",{className:"flex flex-wrap dpwrpr",children:(0,t.jsx)("div",{className:"w-full lg:w-1/2 ",children:(0,t.jsx)(N,{options:h.state.options,isRequired:!0,isError:!!V.stateError,errorMessage:V.stateError,variant:"registrationSearchable",labelText:h.state.label,defaultValue:f.state,name:h.state.name,hasSearchableOption:!0,onSelect:T})})}),(0,t.jsx)("div",{className:"flex flex-wrap dpwrpr",children:(0,t.jsx)("div",{className:"w-full lg:w-1/2 mb-32",children:(0,t.jsx)(E,{labelId:h.zip.name,variant:"registration",labelText:h.zip.label,required:!0,isError:!!V.zipError,errorMessage:V.zipError,defaultValue:f.zip,"data-name":h.zip.name,onBlur:T})})}),(0,t.jsx)("div",{className:"flex flex-wrap dpwrpr",children:(0,t.jsx)("div",{className:"w-full lg:w-1/2",children:(0,t.jsx)(N,{defaultValue:f.country&&(null===(o=h.country.options.filter(e=>(null==e?void 0:e.value)===f.country))||void 0===o?void 0:null===(a=o[0])||void 0===a?void 0:a.title),options:h.country.options,isRequired:!0,isError:!!V.countryError,errorMessage:V.countryError,variant:"registrationSearchable",labelText:h.country.label,name:h.country.name,hasSearchableOption:!0,onSelect:T})})}),(0,t.jsx)("div",{className:"w-full lg:w-1/2",children:(0,t.jsx)(N,{defaultValue:V.role?h.role.defaultValue:f.role,labelText:h.role.label,isRequired:!0,isError:!!V.roleError,errorMessage:V.roleError,variant:"registrationSmallDropDown",options:h.role.options,name:h.role.name,onSelect:T})}),(V.role&&V.role===x.dentist||!V.role&&f.role&&f.role===x.dentist)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-full lg:w-1/2",children:(0,t.jsx)(N,{defaultValue:V.role?h.dentistSubRole.defaultValue:f.dentistSubRole,labelText:h.dentistSubRole.label,isRequired:!0,isError:!!V.dentistSubRoleError,errorMessage:V.dentistSubRoleError,variant:"registrationSmallDropDown",options:h.dentistSubRole.options,name:h.dentistSubRole.name,onSelect:T,resetValue:V.roleReset,resetValueComplete:M})},(0,p.O)(V.role+h.dentistSubRole.name)),(0,t.jsx)("div",{className:"w-full lg:w-1/2",children:(0,t.jsx)(N,{defaultValue:V.role?h.dentistSpecialization.defaultValue:f.dentistSpecialization,labelText:h.dentistSpecialization.label,isRequired:!0,isError:!!V.dentistSpecializationError,errorMessage:V.dentistSpecializationError,variant:"registrationSmallDropDown",options:h.dentistSpecialization.options,name:h.dentistSpecialization.name,onSelect:T,resetValue:V.roleReset,resetValueComplete:M})},(0,p.O)(V.role+h.dentistSpecialization.name)),(0,t.jsx)("div",{className:"w-full lg:w-1/2 mb-32",children:(0,t.jsx)(E,{labelId:h.dentistOfficeNumber.name,variant:"registration",labelText:h.dentistOfficeNumber.label,required:!0,isError:!!V.dentistOfficeNumberError,errorMessage:V.dentistOfficeNumberError,defaultValue:V.role?h.dentistOfficeNumber.defaultValue:f.dentistOfficeNumber,"data-name":h.dentistOfficeNumber.name,onBlur:T},(0,p.O)(V.role+h.dentistOfficeNumber.name))})]}),(V.role&&V.role===x.student||!V.role&&f.role&&f.role===x.student)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-full lg:w-1/2",children:(0,t.jsx)(N,{defaultValue:V.role?h.studentSubRole.defaultValue:f.studentSubRole,labelText:h.studentSubRole.label,isRequired:!0,isError:!!V.studentSubRoleError,errorMessage:V.studentSubRoleError,variant:"registrationSmallDropDown",options:h.studentSubRole.options,name:h.studentSubRole.name,onSelect:T,resetValue:V.roleReset,resetValueComplete:M},(0,p.O)(V.role+h.studentSubRole.name))}),(0,t.jsx)("div",{className:"w-full lg:w-1/2",children:(0,t.jsx)(N,{defaultValue:V.role?h.studentSpecialization.defaultValue:0===h.studentSpecialization.options.filter(e=>e.value===f.studentSpecialization).length?null===(s=h.studentSpecialization.options[h.studentSpecialization.options.length-1])||void 0===s?void 0:s.value:f.studentSpecialization,labelText:h.studentSpecialization.label,isRequired:!0,isError:!!V.studentSpecializationError,errorMessage:V.studentSpecializationError,variant:"registrationSmallDropDown",options:h.studentSpecialization.options,name:h.studentSpecialization.name,onSelect:T,resetValue:V.roleReset,resetValueComplete:M},(0,p.O)(V.role+h.studentSpecialization.name))}),(V.studentSpecialization&&V.studentSpecialization===n.other||!V.studentSpecialization&&f.studentSpecialization&&f.studentSpecialization===n.other)&&(0,t.jsx)("div",{className:"w-full lg:w-1/2 mb-32",children:(0,t.jsx)(E,{labelId:h.studentSpecializationOther.name,variant:"registration",labelText:h.studentSpecializationOther.label,required:!0,isError:!!V.studentSpecializationOtherError,errorMessage:V.studentSpecializationOtherError,defaultValue:V.studentSpecialization===n.other?h.studentSpecializationOther.defaultValue:f.studentSpecializationOther,"data-name":h.studentSpecializationOther.name,onBlur:T},(0,p.O)(V.role+h.studentSpecializationOther.name))})]}),(V.role&&V.role===x.educator||!V.role&&f.role&&f.role===x.educator)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-full lg:w-1/2",children:(0,t.jsx)(N,{defaultValue:V.role?h.educatorSubRole.defaultValue:f.educatorSubRole,labelText:h.educatorSubRole.label,isRequired:!0,isError:!!V.educatorSubRoleError,errorMessage:V.educatorSubRoleError,variant:"registrationSmallDropDown",options:h.educatorSubRole.options,name:h.educatorSubRole.name,onSelect:T,resetValue:V.roleReset,resetValueComplete:M},(0,p.O)(V.role+h.educatorSubRole.name))}),(0,t.jsx)("div",{className:"w-full lg:w-1/2 mb-32",children:(0,t.jsx)(E,{labelId:h.educatorDepartment.name,variant:"registration",labelText:h.educatorDepartment.label,required:!0,isError:!!V.educatorDepartmentError,errorMessage:V.educatorDepartmentError,defaultValue:V.role?h.educatorDepartment.defaultValue:f.educatorDepartment,"data-name":h.educatorDepartment.name,onBlur:T,resetValue:V.roleReset,resetValueComplete:M},(0,p.O)(V.role+h.educatorDepartment.name))})]}),(V.role&&(V.role===x.student||V.role===x.educator)||!V.role&&f.role&&(f.role===x.student||f.role===x.educator))&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-full lg:w-1/2 mb-32",children:(0,t.jsx)(N,{defaultValue:V.role?h.schoolState.defaultValue:f.schoolState,labelText:h.schoolState.label,isRequired:!0,isError:!!V.schoolStateError,errorMessage:V.schoolStateError,variant:"registrationSmallDropDownSearchable",options:h.schoolState.options,name:h.schoolState.name,onSelect:T,hasSearchableOption:!0,resetValue:V.roleReset,resetValueComplete:M},(0,p.O)(V.role+h.schoolState.name))}),(V.schoolState||f.schoolName)&&I.length>1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-full lg:w-1/2 mb-32",children:(0,t.jsx)(N,{defaultValue:V.schoolState||V.role?h.schoolName.defaultValue:f.schoolName,labelText:h.schoolName.label,isRequired:!0,isError:!!V.schoolNameError,errorMessage:V.schoolNameError,variant:"registrationSmallDropDown",options:I,name:h.schoolName.name,onSelect:T,resetValue:V.roleReset||V.schoolStateReset,resetValueComplete:M||D}
1,(0,p.O)(V.schoolState+h.schoolName.name))}),(f.schoolName===n.other&&!V.schoolState&&!V.schoolName&&!V.role||V.schoolName===n.other)&&(0,t.jsx)("div",{className:"w-full lg:w-1/2 mb-32",children:(0,t.jsx)(E,{labelId:h.schoolOtherName.name,variant:"registration",labelText:h.schoolOtherName.label,required:!0,isError:!!V.schoolOtherNameError,errorMessage:V.schoolOtherNameError,defaultValue:V.role||V.schoolState||V.schoolName===n.other?h.schoolOtherName.defaultValue:f.schoolOtherName,"data-name":h.schoolOtherName.name,onBlur:T},(0,p.O)(V.role+h.schoolOtherName.name))})]})]}),(V.role&&V.role===x.student||!V.role&&f.role&&f.role===x.student)&&(0,t.jsx)("div",{className:"w-full lg:w-1/2 mb-32",children:(0,t.jsx)(v,{locale:i,labelId:h.studentGraduation.name,variant:"registration",labelText:h.studentGraduation.label,isError:!!V.studentGraduationError,errorMessage:V.studentGraduationError,required:!0,defaultValue:V.role?h.studentGraduation.defaultValue:f.studentGraduation,name:h.studentGraduation.name,onUpdate:T},(0,p.O)(V.role+h.studentGraduation.name))}),(V.role&&V.role!==x.other||!V.role&&f.role&&f.role!==x.other)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-full lg:w-1/2",children:(0,t.jsx)(N,{defaultValue:V.role?h.representativeVisit.defaultValue:f.representativeVisit,labelText:f.role===x.dentist?h.representativeVisit.dentistLabel:h.representativeVisit.otherLabel,isRequired:!0,isError:!!V.representativeVisitError,errorMessage:V.representativeVisitError,variant:"registrationSmallDropDown",options:h.representativeVisit.options,name:h.representativeVisit.name,onSelect:T,resetValue:V.roleReset,resetValueComplete:M},(0,p.O)(V.role+h.representativeVisit.name))}),(0,t.jsxs)("div",{className:"flex flex-wrap",children:[(0,t.jsx)("div",{className:"w-full lg:w-1/2",children:(0,t.jsx)(N,{defaultValue:V.role?h.recommendedElectricToothbrush.defaultValue:f.recommendedElectricToothbrush,labelText:h.recommendedElectricToothbrush.label,isRequired:!0,isError:!!V.recommendedElectricToothbrushError,errorMessage:V.recommendedElectricToothbrushError,variant:"registrationSmallDropDown",options:h.recommendedElectricToothbrush.options,name:h.recommendedElectricToothbrush.name,onSelect:T,resetValue:V.roleReset,resetValueComplete:M},(0,p.O)(V.role+h.recommendedElectricToothbrush.name))}),(0,t.jsx)("div",{className:"w-full lg:w-1/2",children:(0,t.jsx)(N,{defaultValue:V.role?h.recommendedToothpaste.defaultValue:f.recommendedToothpaste,labelText:h.recommendedToothpaste.label,isRequired:!0,isError:!!V.recommendedToothpasteError,errorMessage:V.recommendedToothpasteError,variant:"registrationSmallDropDown",options:h.recommendedToothpaste.options,name:h.recommendedToothpaste.name,onSelect:T,resetValue:V.roleReset,resetValueComplete:M},(0,p.O)(V.role+h.recommendedToothpaste.name))})]}),(0,t.jsxs)("div",{className:"flex flex-wrap",children:[(0,t.jsx)("div",{className:"w-full lg:w-1/2",children:(0,t.jsx)(N,{defaultValue:V.role?h.recommendedManualToothbrush.defaultValue:f.recommendedManualToothbrush,labelText:h.recommendedManualToothbrush.label,isRequired:!0,isError:!!V.recommendedManualToothbrushError,errorMessage:V.recommendedManualToothbrushError,variant:"registrationSmallDropDown",options:h.recommendedManualToothbrush.options,name:h.recommendedManualToothbrush.name,onSelect:T,resetValue:V.roleReset,resetValueComplete:M},(0,p.O)(V.role+h.recommendedManualToothbrush.name))}),(0,t.jsx)("div",{className:"w-full lg:w-1/2",children:(0,t.jsx)(N,{defaultValue:V.role?h.recommendedWhiteStrips.defaultValue:f.recommendedWhiteStrips,labelText:h.recommendedWhiteStrips.label,isRequired:!0,isError:!!V.recommendedWhiteStripsError,errorMessage:V.recommendedWhiteStripsError,variant:"registrationSmallDropDown",options:h.recommendedWhiteStrips.options,name:h.recommendedWhiteStrips.name,onSelect:T,resetValue:V.roleReset,resetValueComplete:M},(0,p.O)(V.role+h.recommendedWhiteStrips.name))})]})]}),(V.role&&V.role===x.other||!V.role&&f.role&&f.role===x.other)&&(0,t.jsx)("div",{className:"w-full lg:w-1/2",children:(0,t.jsx)(N,{defaultValue:V.role?h.otherSubRole.defaultValue:f.otherSubRole,labelText:h.otherSubRole.label,isRequired:!0,isError:!!V.otherSubRoleError,errorMessage:V.otherSubRoleError,variant:"registrationSmallDropDown",options:h.otherSubRole.options,name:h.otherSubRole.name,onSelect:T,resetValue:V.roleReset,resetValueComplete:M},(0,p.O)(V.role+h.otherSubRole.name))}),(!V.country&&f.country&&f.country===b||V.country===b)&&(0,t.jsxs)("div",{className:"optin-wrapper",children:[(0,t.jsx)("input",{type:"checkbox",id:"smsOptIn",checked:null===V.smsOptIn?f.smsOptIn||!1:V.smsOptIn,onChange:e=>{let{checked:r}=e.target;C({name:"smsOptIn",value:r})},className:"checkbox hidden cursor-pointer"}),(0,t.jsx)("label",{htmlFor:"smsOptIn",className:"cursor-pointer relative ml-30 font-lato text-16 leading-25 text-grayDavy block pr-20 mb-32",children:(0,t.jsx)(j,{content:n.smsOptinMessage,className:"mb-32 font-lato text-16 linktext"})}),(0,t.jsx)(j,{content:n.legalMessageForUS,className:"mb-32 font-lato text-16 text-grayDavy linktext"})]}),(0,t.jsx)(j,{content:n.legalMessage,className:"mb-32 font-lato text-16 text-grayDavy linktext"}),(!V.country&&f.country&&f.country===b||V.country===b)&&(0,t.jsxs)("div",{className:"optin-wrapper",children:[(0,t.jsx)("input",{type:"checkbox",id:"optinId",checked:null===V.optIn1?f.optIn1||!1:V.optIn1,onChange:e=>{let{checked:r}=e.target;C({name:"optIn1",value:r})},className:"checkbox hidden cursor-pointer"}),(0,t.jsx)("label",{htmlFor:"optinId",className:"cursor-pointer relative ml-30 font-lato text-16 leading-25 text-grayDavy block pr-20 my-32",children:(0,t.jsx)(j,{content:n.optInMessage,className:"mb-32 font-lato text-16 linktext"})})]}),(0,t.jsxs)("div",{className:"flex flex-wrap",children:[(0,t.jsx)("div",{className:"w-full lg:w-1/2",children:(0,t.jsx)(S,{type:"submit",gaLabel:"Registration-Submit",className:"primBtn py-15 lg:py-16 w-full lg:w-350  lg:mb-20 mb-10 disabled:bg-gray-500",disabled:V.processing,children:n.saveChangesButton})}),(0,t.jsx)("div",{className:"w-full lg:w-1/2",children:(0,t.jsx)(S,{href:(0,c.o)({locale:i,pageType:d.pageTypes.viewProfilePage}),gaLabel:"Registration-Submit",className:"primBtn py-15 lg:py-16 w-full lg:w-350  lg:mb-20 mb-10 disabled:bg-gray-500",disabled:V.processing,children:n.cancelButton})})]})]})]})})}):(0,t.jsx)("div",{className:"text-18 flex items-center justify-center min-h-104 px-50 py-20",children:n.loading})};V.propTypes={locale:s().string,image:s().shape({sys:s().string.isRequired,url:s().string.isRequired,altText:s().string.isRequired,height:s().number.isRequired,width:s().number.isRequired})};var R=(0,l.memo)(V),y=a(57006),T=!0;let O="force-dynamic";var M=(0,y.Z)(R)}},function(e){e.O(0,[2678,4885,9669,2790,4960,1135,6714,2636,2888,9774,179],function(){return e(e.s=99666)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.