PageSourceSearch

https://cdn-web.mediately.co/_next/static/chunks/pages/user/account-d676d1f393bef70a.js

js mediately.co collected 2026-10-01 11:47:06 UTC 35,696 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7777],{6441:(e,t,i)=>{"use strict";i.d(t,{Ip:()=>a,pL:()=>o,tt:()=>r});var n=i(55689),s=i(5780),l=i(48085);let a=(e,t)=>{if(!t)return{};let i=!!t;return{showCorrectAnswers:i,isCorrect:t&&e.selected&&-1!==t.indexOf(e.id),isCorrection:t&&!e.selected&&-1!==t.indexOf(e.id)}},r=({locale:e,user:t,course:i})=>!(i?.cme_type===l.ZU.VIGNETTE&&i?.non_accredited)&&!!t.isLoggedIn&&t.user?.international_title===n.vb.MD&&!!(!s.vw.includes(e)&&!(o(t?.user?.md_license_number)&&t?.user?.institution)||s.xS.includes(e)&&!(t?.user?.cme_md_identifier&&t?.user?.institution)),o=e=>e&&0!=+e?e:""},7249:(e,t,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/account",function(){return i(58793)}])},12302:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var n=i(37876),s=i(42712),l=i(5646);let a=l.Ay.div.withConfig({componentId:"sc-b79f0440-0"})(["margin-bottom:32px;label{cursor:pointer;display:flex;svg{margin-right:10px;min-width:24px;max-height:24px;border-radius:4px;box-shadow:inset 0 0 0 1px ",";","}}input{opacity:0;width:0;height:0;position:absolute;border:1px red solid;&:not(:checked) + label path{display:none;}}"],e=>e.theme.color.tertiaryGray,e=>e.$invalid&&(0,l.AH)(["box-shadow:inset 0 0 0 1px ",";"],e=>e.theme.color.mdRedLight)),r=({name:e,checked:t,onChange:i,className:l,label:r,invalid:o,innerRef:c,testId:d,...m})=>(0,n.jsxs)(a,{className:l,$invalid:o,"data-testid":d,children:[(0,n.jsx)("input",{onChange:i,checked:t,name:e,id:e,ref:c,type:"checkbox",...m}),(0,n.jsxs)("label",{htmlFor:e,children:[(0,n.jsx)(s.A,{}),r]})]})},17149:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var n=i(37876),s=i(89661),l=i(14232),a=i(5646);let r=705,o=({children:e,maxlength:t=r,warning:i=!1})=>{var a,o,d;let[m,u]=(0,l.useState)(!1),h=e.length>t,p=l.useCallback(()=>{u(e=>!e)},[u]),g=l.useMemo(()=>m?"drug-details.show-less":"drug-details.show-more",[m]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:(a=e,o=m,d=t,a?"string"==typeof a?o||a.length<=d?a:`${a.slice(0,d)}…`:a:null)}}),h&&(0,n.jsx)(c,{onClick:p,$warning:i,children:(0,n.jsx)(s.sA,{id:g})})]})},c=a.Ay.div.withConfig({componentId:"sc-71d99b7c-0"})(["cursor:pointer;font-size:",";color:",";&:hover{color:",";}"],e=>e.theme.font.size.base,e=>e.$warning?e.theme.color.alertWarningColor:e.theme.color.healthyBlue,e=>e.$warning?e.theme.color.alertWarningColor:e.theme.color.healthyBlue)},33203:(e,t,i)=>{"use strict";i.d(t,{A:()=>c});var n=i(37876),s=i(89661),l=i(5646);i(14232);let a=()=>(0,n.jsx)(s.sA,{id:"drug-details.row-title.no-data"});var r=i(17149),o=i(92898);let c=({label:e,children:t,placeholder:i=(0,n.jsx)(a,{}),placeholderId:l,showMore:c,warning:p,maxlength:g=705,icon:x,badgeIcon:f,defaultMessage:b,slotRight:w,...j})=>(0,n.jsxs)(d,{...j,children:[x&&(0,n.jsx)(h,{children:x}),f&&(0,n.jsx)(o.A,{variant:"blue",icon:f}),(0,n.jsxs)("div",{children:[void 0!==e&&(0,n.jsx)(u,{children:(0,n.jsx)(s.sA,{id:e,defaultMessage:b})}),(0,n.jsx)(m,{children:t?c?(0,n.jsx)(r.A,{maxlength:g,warning:p,children:t}):"string"==typeof t?(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:t}}):t:l?(0,n.jsx)(s.sA,{id:l}):i})]}),w||null]}),d=l.Ay.div.withConfig({componentId:"sc-c9e6e276-0"})(["display:flex;gap:15px;"]),m=l.Ay.div.withConfig({componentId:"sc-c9e6e276-1"})(["overflow-wrap:anywhere;"]),u=l.Ay.h3.withConfig({componentId:"sc-c9e6e276-2"})(["&:first-letter{text-transform:capitalize;}color:",";font-size:",";margin:0 !important;font-weight:",";display:block;margin:0;padding:0;line-height:",";"],e=>e.theme.color.gray,e=>e.theme.font.size.sm,e=>e.theme.font.weight.base,e=>e.theme.font.size.xl),h=l.Ay.div.withConfig({componentId:"sc-c9e6e276-3"})(["display:flex;> svg{min-width:29px;width:29px;height:auto;}"])},36159:(e,t,i)=>{"use strict";i.d(t,{Bf:()=>l,VN:()=>r,XF:()=>o,pM:()=>s,q2:()=>a});var n=i(35806);let s=async({locale:e,user:t})=>{let i=await (0,n.A)("https://mediately.co/api/v6/users",{method:"POST",headers:(0,n.l)({locale:e}),body:{user:t}}),s={user:i.user,token:i.access_token};return(await (0,n.A)("/clientApi/user/register",{method:"POST",body:s})).body},l=async({locale:e,data:t})=>(await (0,n.A)("https://mediately.co/api/v6/users/validate_email",{headers:(0,n.l)({locale:e}),params:{email:t.email}}),t),a=async({reset_password_token:e})=>await (0,n.A)("https://mediately.co/api/v6/users/reset_password_token_validity",{params:{reset_password_token:e}}),r=async({locale:e,email:t})=>await (0,n.A)(`https://mediately.co/api/rh/v6/users?email=${t}`,{headers:(0,n.l)({locale:e}),method:"DELETE"}),o=async({locale:e,user:t})=>await (0,n.A)("https://mediately.co/api/v6/users",{headers:(0,n.l)({locale:e,user:t}),params:{full_download:1}})},55144:(e,t,i)=>{"use strict";i.d(t,{A:()=>m});var n=i(37876),s=i(73257),l=i(89099),a=i(14232),r=i(5780),o=i(89661),c=i(55689);let d=({min:e,max:t,fieldName:i,show:l,control:r,disclaimer:o,disabled:c=!1})=>{let d=a.useMemo(()=>"md_edu_number"===i?"login.row-title.md_edu_number":"user.profile.md_license_number",[i]);return l?(0,n.jsx)(s.A,{testId:i,label:d,type:"text",name:i,control:r,disabled:c,disclaimer:o,className:"mixpanel-masked",rules:{required:"common.input.field.not-empty",maxLength:{value:t,message:"doctor_education_number_error"},minLength:{value:e,message:"doctor_education_number_error"},validate:i=>!(i.length<e)&&!(i.length>t)&&!!i.match(RegExp(`^[0-9]{${e},${t}}
1$`,"i"))||"doctor_education_number_error"}}):null},m=({internationalTitle:e,control:t,licenseNumberFieldDisabled:i})=>{let{locale:s}=(0,l.useRouter)(),{messages:a}=(0,o.tz)();return(0,n.jsx)(n.Fragment,{children:Object.keys(r.ww).includes(s)&&(0,n.jsx)(d,{min:r.ww[s].min,max:r.ww[s].max,fieldName:r.ww[s].fieldName,show:e===c.vb.MD,control:t,disabled:i,disclaimer:i?a["profile.md-license.disclaimer"]:null})})}},58793:(e,t,i)=>{"use strict";i.r(t),i.d(t,{StSpinner:()=>eD,__N_SSP:()=>eR,default:()=>eF});var n=i(37876),s=i(83242),l=i(55689),a=i(89661),r=i(89099),o=i(14232),c=i(88992),d=i(5646),m=i(73257),u=i(87101),h=i(33203),p=i(90402);let g=d.Ay.div.withConfig({componentId:"sc-7532596d-0"})(["align-items:start;justify-content:space-between;margin-top:32px;&:first-of-type{margin-top:0;}@media (max-width:","){flex-direction:column;}"],e=>e.theme.gridBreakpoints.sm),x=d.Ay.h4.withConfig({componentId:"sc-7532596d-1"})(["font-size:",";font-weight:",";margin-bottom:8px;"],e=>e.theme.font.size.base,e=>e.theme.font.weight.semibold),f=(0,d.Ay)(p.KY).withConfig({componentId:"sc-7532596d-2"})(["@media (max-width:","){width:100%;}"],e=>e.theme.gridBreakpoints.sm),b=d.Ay.div.withConfig({componentId:"sc-7532596d-3"})(["> *{margin-bottom:16px !important;}@media (max-width:","){width:100%;}"],e=>e.theme.gridBreakpoints.sm),w=({editMode:e,user:t,control:i})=>(0,n.jsxs)(g,{children:[(0,n.jsx)(x,{children:(0,n.jsx)(a.sA,{id:"login.navbar.title"})}),e?(0,n.jsx)(j,{children:(0,n.jsx)(m.A,{testId:"userEmail",label:"login.row-title.email",type:"text",name:"email",autoCapitalize:"off",autoCorrect:"off",control:i,rules:{required:"common.input.field.not-empty",pattern:{value:u.G,message:"login.error.email-invalid"}}})}):(0,n.jsx)(f,{children:(0,n.jsx)(h.A,{label:"login.row-title.email",children:t?.user?.email})})]}),j=(0,d.Ay)(b).withConfig({componentId:"sc-98ae933c-0"})(["> *{margin-bottom:0 !important;}"]);var y=i(5780),v=i(99192),A=i(99141),_=i(55144),C=i(6441),k=i(12227),E=i(53824);let I=({editMode:e,user:t,control:i,watch:s,setValue:r,resetField:c})=>{let{internationalSpecializations:d}=(0,E.A)(),u=s("title"),f=o.useMemo(()=>d?.find(e=>e.label===u)?.internationalTitle,[d,u]),w=o.useMemo(()=>!!f&&!l.PH.includes(f),[f]);return(0,n.jsxs)(g,{className:"mixpanel-masked",children:[(0,n.jsx)(x,{children:(0,n.jsx)(a.sA,{id:"profile.your-info.header"})}),(0,n.jsx)(M,{children:e?(0,n.jsxs)(b,{children:[w&&(0,n.jsx)(m.A,{label:"login.row-title.name",name:"name",control:i,rules:{required:"common.input.field.not-empty"}}),(0,n.jsx)(A.A,{setValue:r,control:i,watch:s,resetField:c}),(0,n.jsx)(_.A,{control:i,internationalTitle:f,licenseNumberFieldDisabled:!!(0,C.pL)(t.user.md_license_number)})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(p.KY,{children:[t?.user?.name&&(0,n.jsx)(h.A,{label:"login.row-title.name","data-testid":"medical-name",children:k.A.sanitize(t?.user?.name)||"-"}),(0,n.jsx)(h.A,{label:"login.row-title.medical-title","data-testid":"medical-title",children:t?.user?.title||"-"}),t?.user?.specialization&&(0,n.jsx)(h.A,{label:"login.row-title.specialty","data-testid":"medical-speciality",children:t?.user?.specialization||"-"}),t?.user?.subspecialization&&(0,n.jsx)(h.A,{label:"login.row-title.subspecialty","data-testid":"medical-subspeciality",children:t?.user?.subspecialization||"-"}),t?.user?.md_edu_number&&(0,n.jsx)(h.A,{label:"login.row-title.md_edu_number","data-testid":"md_edu_number",children:t?.user?.md_edu_number}),t?.user?.md_license_number&&(0,n.jsx)(v.A,{countries:Object.keys(y.ww),children:(0,n.jsx)(h.A,{label:"user.profile.md_license_number","data-testid":"md_license_number",children:t?.user?.md_license_number})})]}),(0,n.jsx)(z,{children:(0,n.jsx)(a.sA,{id:"profile.your-info.footer"})})]})})]})},M=d.Ay.div.withConfig({componentId:"sc-e129908-0"})(["flex:9;"]),z=d.Ay.div.withConfig({componentId:"sc-e129908-1"})(["color:",";font-size:",";padding:12px 16px;"],e=>e.theme.color.secondaryGray,e=>e.theme.font.size.sm);var S={};S.d=(e,t,i)=>{var n=(t,i)=>{for(var n in t)S.o(t,n)&&!S.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,[i]:t[n]})};n(t,"get"),n(i,"value")},S.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),S.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(e,"__esModule",{value:!0})};var B={};S.r(B),S.d(B,{AccountChangePassword:()=>P,AccountDeleteAccountRed:()=>Z,AccountEditNew:()=>T,AccountIconButtonDownload:()=>L,AccountThemeSelectDark:()=>R,AccountThemeSelectLight:()=>D,AccountThemeSelectSystem:()=>F});let P=({title:e,titleId:t,...i})=>o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16","aria-labelledby":t,...i},e?o.createElement("title",{id:t},e):null,o.createElement("g",{fill:"var(--icon-blue-primary, #2E6BE6)",fillRule:"nonzero"},o.createElement("path",{d:"M0 8c0 1.025.191 1.989.573 2.893a7.68 7.68 0 0 0 1.583 2.394 7.463 7.463 0 0 0 2.332 1.625c.88.392 1.82.588 2.818.588.803 0 1.569-.131 2.3-.393a7.403 7.403 0 0 0 2.016-1.1 7.74 7.74 0 0 0 1.594-1.647.63.63 0 0 0 .14-.507.58.58 0 0 0-.262-.404.573.573 0 0 0-.462-.078.718.718 0 0 0-.398.29c-.367.52-.804.974-1.31 1.361a5.97 5.97 0 0 1-3.618 1.228 5.86 5.86 0 0 1-2.37-.482 6.082 6.082 0 0 1-1.942-1.342A6.262 6.262 0 0 1 1.218 8c0-.868.156-1.679.469-2.434a6.219 6.219 0 0 1 1.307-1.989A6.11 6.11 0 0 1 4.935 2.24a5.86 5.86 0 0 1 2.371-.482c.846 0 1.636.16 2.371.482a6.176 6.176 0 0 1 3.248 3.32c.313.755.47 1.566.47 2.434h1.218a7.359 7.359 0 0 0-.573-2.894 7.635 7.635 0 0 0-1.583-2.39 7.492 7.492 0 0 0-2.332-1.62A6.853 6.853 0 0 0 7.306.5c-.998 0-1.937.196-2.818.588a7.463 7.463 0 0 0-2.332 1.625A7.68 7.68 0 0 0 .573 5.107 7.359 7.359 0 0 0 0 8Z"}),o.createElement("path",{d:"M15.494 6.58h-3.288c-.253 0-.412.078-.477.232-.064.155-.027.333.111.534l1.605 2.345c.115.167.248.251.401.254.153.002.29-.082.408-.254l1.598-2.338c.143-.206.182-.386.118-.54-.064-.155-.223-.232-.476-.232ZM4.792 10.809c0 .539.244.809.73.809h3.711c.492 0 .738-.27.738-.81V7.89c0-.54-.246-.81-.738-.81l-3.066-.006v-.942c0-.431.111-.778.333-1.04.223-.262.515-.393.878-.393s.655.114.877.341c.222.228.333.529.333.901v.177c0 .117.037.21.112.28a.39.39 0 0 0 .275.102.344.344 0 0 0 .258-.103.383.383 0 0 0 .1-.28v-.176c0-.598-.179-1.078-.537-1.441-.358-.363-.83-.544-1.418-.544-.583 0-1.054.207-1.415.621-.36.414-.54.96-.54 1.636v.868c-.42.03-.63.296-.63.801v2.927Z"}))),Z=({title:e,titleId:t,...i})=>o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16","aria-labelledby":t,...i},e?o.createElement("title",{id:t},e):null,o.createElement("g",{fill:"#FF2D26",fillRule:"nonzero"},o.createElement("path",{d:"M14.362 2.79a.622.622 0 0 1 .638.628c0 .178-.061.329-.184.452a.616.616 0 0 1-.454.184h-.777l-.48 10.19c-.024.55-.201.98-.531 1.29-.33.31-.77.466-1.318.466H4.744c-.548 0-.988-.154-1.318-.463-.33-.309-.507-.738-.532-1.287L2.416 4.054h-.778a.62.62 0 0 1-.45-.184A.61.61 0 0 1 1 3.418c0-.174.063-.322.188-.445a.62.62 0 0 1 .45-.184ZM12.25 4.053H3.72l.48 9.966c.01.208.078.378.207.51a.65.65 0 0 0 .483.196h6.21c.2 0 .364-.065.493-.194.129-.13.198-.3.207-.512l.45-9.966Z"}),o.createElement("path",{d:"M5.913 13.59a.494.494 0 0 0 .362-.133.433.433 0 0 0 .126-.34L6.19 5.71a.46.46 0 0 0-.146-.336.5.5 0 0 0-.354-.128.48.48 0 0 0-.353.131.454.454 0 0 0-.131.341l.218 7.401a.453.453 0 0 0 .14.341.49.49 0 0 0 .349.129ZM8.003 13.59a.505.505 0 0 0 .359-.13.44.44 0 0 0 .14-.339V5.715a.441.441 0 0 0-.14-.337.505.505 0 0 0-.36-.13.513.513 0 0 0-.364.13.441.441 0 0 0-.14.337v7.406c0 .139.047.251.14.338.093.087.215.13.365.13ZM10.088 13.59a.49.49 0 0 0 .348-.129.454.454 0 0 0 .14-.34l.218-7.402a.45.45 0 0 0-.13-.34.49.49 0 0 0-.36-.132.466.466 0 0 0-.494.47l-.21 7.4a.432.432 0 0 0 .125.34c.09.088.21.133.363.133ZM4.772 3.257H6.1V1.794c0-.18.058-.323.173-.432.115-.109.27-.163.466-.163h2.51c.196 0 .352.054.467.163a.566.566 0 0 1 .173.432v1.463h1.328V1.73c0-.542-.165-.966-.494-1.271C10.393.153 9.933 0 9.34 0H6.65c-.593 0-1.055.153-1.384.459-.33.305-.494.73-.494 1.27v1.528Z"}))),T=({title:e,titleId:t,...i})=>o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16","aria-labelledby":t,...i},e?o.createElement("title",{id:t},e):null,o.createElement("g",{fill:"var(--icon-blue-primary, #2E6BE6)",fillRule:"nonzero"},o.createElement("path",{d:"m3.47 14.193 9.453-9.492-1.624-1.636-9.46 9.499-.815 1.981a.292.292 0 0 0 .006.246.384.384 0 0 0 .17.176c.076.04.155.044.236.01l2.034-.784ZM13.733 3.902 14.645 3c.226-.231.344-.466.354-.704.01-.238-.086-.463-.292-.675l-.332-.334c-.205-.207-.428-.302-.668-.285-.24.017-.474.136-.699.356l-.912.908 1.637 1.636Z"}))),L=({title:e,titleId:t,...i})=>o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16","aria-labelledby":t,...i},e?o.createElement("title",{id:t},e):null,o.createElement("path",{d:"M6.371 12.46c.166 0 .316-.05.482-.216l2.805-2.715a.58.58 0 0 0 .191-.431c0-.34-.257-.581-.606-.581a.606.606 0 0 0-.448.199l-1.253 1.336-.565.59.05-1.246V.647A.661.661 0 0 0 6.37 0a.668.668 0 0 0-.664.647v8.75l.058 1.245-.564-.59-1.262-1.336a.61.61 0 0 0-.457-.2c-.34 0-.597.241-.597.582 0 .174.074.307.199.431l2.806 2.715c.166.166.315.215.481.215ZM1.606 15.92h9.521c1.735 0 2.607-.863 2.607-2.573V5.064c0-1.71-.872-2.573-2.607-2.573H8.812v1.336h2.29c.822 0 1.295.448 1.295 1.312v8.134c0 .864-.473 1.312-1.294 1.312h-9.48c-.83 0-1.287-.448-1.287-1.312V5.14c0-.864.457-1.312 1.287-1.312h2.3V2.491H1.605C-.128 2.49-1 3.354-1 5.064v8.284c0 1.71.872 2.573 2.606 2.573Z",fill:"var(--icon-blue-primary, #2E6BE6)",fillRule:"nonzero"})),R=({title:e,titleId:t,...i})=>o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 33","aria-labelledby":t,...i},e?o.createElement("title",{id:t},e):null,o.createElement("g",{clipPath:"url(#account-theme-select-dark_svg__a)",fill:"var(--icon-blue-primary, #2E6BE6)"},o.createElement("path",{d:"M17.37 10.808c.108 0 .178-.079.198-.187.307-1.636.297-1.
1676 2.023-2.001.11-.03.189-.089.189-.207 0-.128-.08-.187-.189-.207-1.726-.345-1.676-.385-2.023-2.011-.02-.108-.09-.177-.199-.177-.119 0-.188.069-.208.177-.347 1.626-.288 1.666-2.024 2.01-.11.02-.179.08-.179.208 0 .118.07.177.179.207 1.736.345 1.706.365 2.024 2.001.02.108.09.187.208.187ZM22.111 17.47c.179 0 .308-.127.338-.315.317-2.641.456-2.7 3.145-3.134.208-.03.337-.138.337-.335 0-.188-.129-.296-.298-.335-2.708-.513-2.867-.493-3.184-3.135-.03-.188-.159-.316-.338-.316a.335.335 0 0 0-.337.306c-.337 2.671-.437 2.76-3.185 3.145-.168.03-.297.147-.297.335 0 .187.129.305.297.335 2.748.522 2.838.522 3.185 3.154.02.168.159.296.337.296ZM14.64 26.484c3.582 0 6.49-1.774 7.819-4.84.149-.355.129-.65-.05-.838-.149-.138-.417-.167-.724-.05-.814.326-1.756.474-2.838.474-4.484 0-7.39-2.79-7.39-7.176 0-1.114.207-2.356.545-3.036.178-.355.168-.65.02-.838-.169-.197-.477-.227-.873-.07-3.046 1.204-5.08 4.368-5.08 7.985 0 4.791 3.552 8.389 8.572 8.389Z"})),o.createElement("defs",null,o.createElement("clipPath",{id:"account-theme-select-dark_svg__a"},o.createElement("path",{fill:"#fff",transform:"translate(0 .5)",d:"M0 0h32v32H0z"})))),D=({title:e,titleId:t,...i})=>o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 33","aria-labelledby":t,...i},e?o.createElement("title",{id:t},e):null,o.createElement("path",{fill:"var(--icon-blue-primary, #2E6BE6)",d:"M15.995 9.372c.49 0 .897-.407.897-.885V6.352a.902.902 0 0 0-.897-.885.9.9 0 0 0-.887.885v2.135a.9.9 0 0 0 .887.885ZM22.295 11.475l1.518-1.515a.895.895 0 0 0 0-1.261.894.894 0 0 0-1.243 0l-1.54 1.526a.901.901 0 0 0 0 1.25.89.89 0 0 0 1.265 0ZM10.95 11.477c.346-.325.346-.915.01-1.25L9.44 8.7c-.326-.325-.907-.336-1.253 0a.912.912 0 0 0-.01 1.25l1.518 1.526a.887.887 0 0 0 1.254 0ZM15.995 21.698c2.834 0 5.188-2.36 5.188-5.197s-2.354-5.187-5.188-5.187c-2.844 0-5.199 2.35-5.199 5.187 0 2.838 2.355 5.197 5.199 5.197ZM26.137 17.387c.49 0 .898-.407.898-.885a.902.902 0 0 0-.898-.885h-2.13a.9.9 0 0 0-.887.885.9.9 0 0 0 .887.885h2.13ZM7.983 17.387c.49 0 .897-.407.897-.885a.902.902 0 0 0-.897-.885h-2.13a.9.9 0 0 0-.887.885.9.9 0 0 0 .886.885h2.13ZM23.813 24.303a.882.882 0 0 0 0-1.25l-1.529-1.516a.907.907 0 0 0-1.253 0 .901.901 0 0 0 0 1.25l1.539 1.526c.336.336.907.326 1.243-.01ZM9.43 24.303l1.52-1.515a.892.892 0 0 0 .01-1.251c-.337-.336-.918-.336-1.265 0l-1.518 1.505a.912.912 0 0 0-.01 1.25.92.92 0 0 0 1.263.011ZM15.995 27.536c.49 0 .897-.407.897-.885v-2.135a.902.902 0 0 0-.897-.885.9.9 0 0 0-.887.885v2.135a.9.9 0 0 0 .887.885Z"})),F=({title:e,titleId:t,...i})=>o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 33","aria-labelledby":t,...i},e?o.createElement("title",{id:t},e):null,o.createElement("path",{fill:"var(--icon-blue-primary, #2E6BE6)",d:"M16 7.674c4.82 0 8.828 3.998 8.828 8.827 0 4.821-3.999 8.828-8.828 8.828-4.82 0-8.828-4.007-8.828-8.828 0-4.829 3.999-8.827 8.828-8.827Zm0 1.471v14.713a7.323 7.323 0 0 0 7.356-7.357A7.34 7.34 0 0 0 16 9.145Z"}));var $=i(21379);let H=d.Ay.div.withConfig({componentId:"sc-4c84c575-0"})(["font-size:14px;color:",";"],e=>e.theme.color.secondaryGray),V=d.Ay.div.withConfig({componentId:"sc-4c84c575-1"})(['position:relative;margin-left:auto;margin-right:8px;display:flex;gap:12px;svg{width:32px;height:32px;cursor:pointer;}&:before{content:"";position:absolute;transition:all 0.3s;'," opacity:0.2;width:32px;height:32px;background:",";border-radius:8px;}"],e=>{switch(e.$theme){case"dark":return(0,d.AH)(["left:calc(50% - 16px);"]);case"light":return(0,d.AH)(["left:calc(100% - 32px);"]);default:return(0,d.AH)(["left:0;"])}},e=>e.theme.color.mdBluePrimaryHover),N=d.Ay.div.withConfig({componentId:"sc-4c84c575-2"})(["display:flex;align-items:center;"]),O=()=>{let{theme:e,setTheme:t}=(0,$.D)();return e?(0,n.jsxs)(g,{children:[(0,n.jsx)(x,{children:(0,n.jsx)(a.sA,{id:"profile.preferences.header",defaultMessage:"Preferences"})}),(0,n.jsx)(f,{children:(0,n.jsxs)(N,{children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(H,{children:(0,n.jsx)(a.sA,{id:"profile.preferences.theme.title",defaultMessage:"Theme settings"})}),(0,n.jsx)("div",{children:(0,n.jsx)(a.sA,{id:`profile.preferences.theme.selection.${e}`,defaultMessage:e})})]}),(0,n.jsxs)(V,{$theme:e,children:[(0,n.jsx)(F,{onClick:()=>t("system")}),(0,n.jsx)(R,{onClick:()=>t("dark")}),(0,n.jsx)(D,{onClick:()=>t("light")})]})]})})]}):null};var q=i(12302),G=i(35806),U=i(46427);let Y=d.Ay.div.withConfig({componentId:"sc-7332ceb0-0"})(["width:100%;"]),K=d.Ay.div.withConfig({componentId:"sc-7332ceb0-1"})(["padding:24px;text-align:left;border-bottom:0.5px solid ",";"],e=>
1e.theme.color.tertiaryGray),W=d.Ay.div.withConfig({componentId:"sc-7332ceb0-2"})(["display:flex;justify-content:right;"]),X=(0,d.Ay)(U.A).withConfig({componentId:"sc-7332ceb0-3"})(["width:443px;margin-top:35vh !important;@media (max-width:","){width:310px !important;}"],e=>e.theme.gridBreakpoints.sm),Q=(0,d.Ay)(s.lD).withConfig({componentId:"sc-7332ceb0-4"})(["font-weight:",";"],e=>e.theme.font.weight.semibold),J=({show:e,message:t,handleConfirm:i,handleCancel:l})=>(0,n.jsx)(X,{show:e,children:(0,n.jsxs)(Y,{children:[(0,n.jsx)(K,{dangerouslySetInnerHTML:{__html:t}}),(0,n.jsxs)(W,{children:[(0,n.jsx)(s.lD,{variant:"plain",onClick:l,children:(0,n.jsx)(a.sA,{id:"logout_modal.cancel"})}),(0,n.jsx)(Q,{"data-testid":"confirmation-popup_confirm-button",variant:"plain",onClick:i,children:(0,n.jsx)(a.sA,{id:"registration.error.alert-view.cancel-button"})})]})]})}),ee=d.Ay.div.withConfig({componentId:"sc-23fd1cd-0"})(["display:flex;align-items:center;"]),et=(0,d.Ay)(q.A).withConfig({componentId:"sc-23fd1cd-1"})(["margin-bottom:0 !important;margin-right:6px;label{margin-bottom:0;}"]),ei=d.Ay.div.withConfig({componentId:"sc-23fd1cd-2"})(["font-size:",";color:",";margin-top:4px;"],e=>e.theme.font.size.sm,e=>e.theme.color.secondaryGray),en=()=>{let e=(0,r.useRouter)(),{messages:t}=(0,a.tz)(),{mutateUser:i,user:s}=(0,l.ur)(),[c,d]=o.useState(!!s?.user?.email_consent),[m,u]=o.useState(!1),h=o.useCallback(async t=>{try{await (0,G.A)(`/clientApi/user/update?locale=${e.locale}`,{method:"POST",body:{email_consent:t}}),i()}catch(e){console.error(e)}},[i,e]),p=o.useCallback(e=>{let{checked:t}=e.target;t?(d(t),h(!0)):u(!0)},[d,h]),b=o.useCallback(async()=>{await h(!1),d(!1),u(!1)},[h]),w=o.useCallback(()=>{u(!1)},[u]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(J,{show:m,handleConfirm:b,message:t["profile.actions.disable-email-consent.message"],handleCancel:w}),(0,n.jsxs)(g,{children:[(0,n.jsx)(x,{children:(0,n.jsx)(a.sA,{id:"profile.comms.header"})}),(0,n.jsx)(f,{children:(0,n.jsxs)(ee,{children:[(0,n.jsx)(et,{name:"email_consent",checked:c,onChange:p,label:" "}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{children:(0,n.jsx)(a.sA,{id:"profile.comms.mail.title"})}),(0,n.jsx)(ei,{children:(0,n.jsx)(a.sA,{id:"profile.comms.mail.subtitle"})})]})]})})]})]})};var es=i(48230),el=i.n(es),ea=i(25199),er=i(28866),eo=i(60843),ec=i(13626),ed=i(89432),em=i(71079);let eu=()=>{let e=(0,ec.P8)();return(0,n.jsxs)(eg,{children:[(0,n.jsx)(eh,{children:(0,n.jsx)(ed.A,{src:"account/account_subscription_mobile",alt:"",fetchPriority:"high",loading:"eager",hiResolution:!0})}),(0,n.jsxs)(ep,{children:[(0,n.jsx)("h2",{children:(0,n.jsx)(a.sA,{id:"settings_cts_subscribe_title"})}),(0,n.jsx)("p",{children:(0,n.jsx)(a.sA,{id:"settings_cta_subscribe_body"})}),(0,n.jsx)(s.lD,{variant:"primary-gradient",onClick:()=>{e({variant:ec.NR.Comparison,triggerLocation:"Account subscription info"})},children:(0,n.jsx)(a.sA,{id:"settings_cta_subscribe_button"})})]})]})},eh=d.I4.div.withConfig({componentId:"sc-8f1161b8-0"})(["display:none;@media (max-width:","){display:block;img{width:100%;height:auto;}}"],e=>e.theme.gridBreakpoints.xlMax),ep=d.I4.div.withConfig({componentId:"sc-8f1161b8-1"})(["padding:24px;margin-left:33%;z-index:1;h2{color:#000;margin:0 0 8px 0;padding:0;font-size:20px;}p{color:#000;font-size:14px;margin-bottom:16px;}@media (max-width:","){margin-left:0;text-align:center;button{width:100%;max-width:360px;}}"],e=>e.theme.gridBreakpoints.xlMax),eg=d.I4.div.withConfig({componentId:"sc-8f1161b8-2"})(["margin-top:32px;border-radius:12px;overflow:hidden;display:flex;position:relative;display:flex;background-position:-20px center;background-repeat:no-repeat;background-size:contain;background-color:#bee6f4;background-size:44%;@media (max-width:","){background-image:none;display:block;}background-image:url(",");"],e=>e.theme.gridBreakpoints.xlMax,(0,em.D)("_optimized-images/account/account_subscription-600w.webp"));var ex=i(88731),ef=i(29022);let eb=({subscription:e,cancel:t,canceling:i})=>{let{locale:s}=(0,r.useRouter)(),{messages:l}=(0,a.tz)(),[c,d]=o.useState(!1),m=e.currentPeriodEnd?new Date(1e3*e.currentPeriodEnd).toLocaleDateString((0,ea.tS)(s),{day:"numeric",month:"long",year:"numeric"}):null;return(0,n.jsxs)(g,{children:[(0,n.jsx)(x,{children:(0,n.jsx)(a.sA,{id:"settings.subscription.title"})}),(0,n.jsx)(f,{children:(0,n.jsx)(h.A,{label:"settings_subscription_status",children:(0,n.jsxs)(n.Fragment,{children:[e.cancelAtPeriodEnd&&(0,n.jsx)(n.Fragment,{children:(0,er.sprintf)(l.business_pro_subscription_cancelled_notice,m)}),!e.cancelAtPeriodEnd&&m&&(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{children:(0,er.sprintf)(l["settings.subscription.active.renew
1al"],m)}),(0,n.jsx)(ef.A,{size:"sm",variant:"outlined",onClick:()=>d(!0),disabled:i,children:(0,n.jsx)(a.sA,{id:"cancel_subscription_button"})})]})]})})}),(0,n.jsx)(J,{show:c,message:(0,er.sprintf)(l.business_pro_cancel_subscription_confirm,m),handleConfirm:()=>{d(!1),t()},handleCancel:()=>d(!1)})]})},ew=()=>{let e=(()=>{let{user:e,mutateUser:t}=(0,l.ur)(),[i,n]=o.useState(null);return o.useEffect(()=>{if(!e?.user?.subscriber_id)return void n(null);let t=eo.P.configure({apiKey:"rcb_EMCBbXwUjFvVWvtkAgejPhaBdVsh",appUserId:e.user.subscriber_id});(async()=>{try{let e=await t.getCustomerInfo();n(e)}catch(e){n(null),console.log(e)}})()},[t,e]),i})(),{locale:t}=(0,r.useRouter)(),{messages:i}=(0,a.tz)(),{user:s}=(0,l.ur)(),{subscription:c,loading:d,cancel:m,canceling:u}=(e=>{let[t,i]=o.useState(null),[n,s]=o.useState(!0),[l,a]=o.useState(!1);return o.useEffect(()=>{e?(s(!0),fetch("/clientApi/business-pro/subscription").then(e=>e.json()).then(e=>i(e.subscription??null)).catch(()=>null).finally(()=>s(!1))):s(!1)},[e]),{subscription:t,loading:n,cancel:async()=>{if(e){a(!0);try{let e=await fetch("/clientApi/business-pro/cancel-subscription",{method:"POST",headers:{"Content-Type":"application/json"}}),t=await e.json();e.ok&&i(e=>e?{...e,cancelAtPeriodEnd:t.cancelAtPeriodEnd}:e)}finally{a(!1)}}},canceling:l}})(s?.user?.external_id),h=o.useMemo(()=>{if(!e||!e.activeSubscriptions)return null;let[t]=e.activeSubscriptions;return t},[e]),b=o.useMemo(()=>h&&e?.allExpirationDatesByProduct?e.allExpirationDatesByProduct[h]?.toLocaleDateString((0,ea.tS)(t),{day:"numeric",month:"short",year:"numeric"}):null,[e?.allExpirationDatesByProduct,t,h]),w=e?.managementURL;return s.isProUser?d?(0,n.jsx)(ej,{center:!0}):c?(0,n.jsx)(eb,{subscription:c,cancel:m,canceling:u}):(0,n.jsxs)(g,{children:[(0,n.jsx)(x,{children:(0,n.jsx)(a.sA,{id:"settings.subscription.title"})}),(0,n.jsx)(f,{children:(0,n.jsx)(ev,{label:"settings_subscription_status",slotRight:w?(0,n.jsx)(ey,{children:(0,n.jsx)(el(),{href:w,target:"_blank",children:(0,n.jsx)(a.sA,{id:"settings.subscription.link.manage"})})}):null,children:(0,er.sprintf)(i["settings.subscription.active.renewal"],b)})}),w?(0,n.jsx)(p.QO,{children:(0,n.jsx)(eA,{children:(0,n.jsx)(ev,{children:(0,n.jsx)(el(),{href:w,target:"_blank",children:(0,n.jsx)(a.sA,{id:"settings.subscription.link.manage"})})})})}):(0,n.jsx)(z,{children:(0,n.jsx)(a.sA,{id:"settings_subscription_footer"})})]}):(0,n.jsx)(eu,{})},ej=(0,d.I4)(ex.A).withConfig({componentId:"sc-d24fc7db-0"})(["margin-top:24px;"]),ey=(0,d.I4)(p.kd).withConfig({componentId:"sc-d24fc7db-1"})(["margin-left:auto;"]),ev=(0,d.I4)(h.A).withConfig({componentId:"sc-d24fc7db-2"})(["align-items:center;button{margin-left:auto;flex-shrink:0;}"]),eA=(0,d.I4)(f).withConfig({componentId:"sc-d24fc7db-3"})(["margin-top:4px;text-align:center;div{display:block;}"]),e_=({editMode:e,control:t,watch:i,setValue:s,resetField:a})=>{let{user:r}=(0,l.ur)();return(0,n.jsxs)(n.Fragment,{children:[!e&&(0,n.jsx)(w,{editMode:e,user:r,control:t}),(0,n.jsx)(ew,{}),(0,n.jsx)(I,{editMode:e,user:r,control:t,resetField:a,watch:i,setValue:s}),!e&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(en,{}),(0,n.jsx)(O,{})]})]})};var eC=i(15526),ek=i(32446),eE=i(36159),eI=i(78459);let eM=({setEditMode:e})=>{let t=(0,r.useRouter)(),{user:i,mutateUser:s}=(0,l.ur)(),{messages:c}=(0,a.tz)(),[d,m]=o.useState(null),u=(0,eI.d)("changePassword"),{mutate:h}=(0,eC.n)({mutationFn:()=>(0,eE.XF)({locale:t.locale,user:i}),onMutate:()=>ek.oR.loading((0,n.jsx)(a.sA,{id:"profile.actions.download-personal-data.loading",defaultMessage:"Loading..."})),onSuccess:(e,t,i)=>{ek.oR.update(i,{render:(0,n.jsx)(a.sA,{id:"profile.actions.download-personal-data.success",defaultMessage:"Your data was sent. You will receive an email with a download link when your export is ready."}),type:"success",closeButton:!0,isLoading:!1,autoClose:5e3,hideProgressBar:!0})},onError:(e,t,i)=>{ek.oR.update(i,{render:(0,n.jsx)(a.sA,{id:"profile.actions.download-personal-data.error",defaultMessage:"Something went wrong"}),type:"error",closeButton:!0,isLoading:!1,autoClose:5e3,hideProgressBar:!0})}}),g=o.useCallback(async()=>{m({message:`${c["profile.actions.download-personal-data.description"]} <b>${i.user.email}</b>`,handleConfirm:async()=>{m(null),h()}})},[h,c,i?.user?.email]),x=o.useCallback(async()=>{m({message:c["profile.actions.delete.first-confirmation"],handleConfirm:async()=>{await (0,G.A)(`/clientApi/user/delete?locale=${t.locale}`),s(),m(null),await t.push("/")}})},[c,t,s]),f=o.useCallback(()=>{m(null)},[m]),b=o.useMemo(()=>[{Icon:T,description:"profile.actions.edit-user-account",action:()=>e(!0),testid:"edit-account"},{Icon:P,description:"profile.login.change-pass.title",action:u,testid:"change-password"},{Icon:L,description:"profile.actions.download-personal-data.title",action:g,testid:"download-personal-data"},{Icon:Z,description:"profile.actions.delete.title",action:x,testid:"delete-account",danger:!0}],[u,x,g,e]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(J,{show:!!d,handleConfirm:d?.handleConfirm,message:d?.message,handleCancel:f}),(0,n.jsx)(eP,{children:(0,n.jsxs)(ez,{onClick:()=>b[0].action(),"data-testid":b[0].testid,$danger:!!b[0].danger,children:[(0,n.jsx)(eS,{as:b[0].Icon}),(0,n.jsx)(eB,{name:"description",children:(0,n.jsx)(a.sA,{id:b[0].description})})]},b[0].testid)}),(0,n.jsx)(p.KY,{children:b.slice(1,4).map(e=>(0,n.jsxs)(ez,{onClick:()=>e.action(),"data-testid":e.testid,$danger:!!e.danger,children:[(0,n.jsx)(eS,{as:e.Icon}),(0,n.jsx)(eB,{name:"description",children:(0,n.jsx)(a.sA,{id:e.description})})]},e.testid))})]})},ez=d.Ay.div.withConfig({componentId:"sc-e254c99a-0"})(["display:flex;align-items:center;justify-content:center;color:",";"," &:hover{cursor:pointer;}"],e=>e.theme.color.textLink,e=>e.$danger&&(0,d.AH)(["color:",";"],e=>e.theme.color.dangerRed)),eS=d.Ay.div.withConfig({componentId:"sc-e254c99a-1"})(["display:block;margin-right:10px;width:20px;height:16px;path{fill:currentColor;}"]),eB=d.Ay.div.withConfig({componentId:"sc-e254c99a-2"})(["font-size:",";"],e=>e.theme.font.size.base),eP=(0,d.Ay)(p.KY).withConfig({componentId:"sc-e254c99a-3"})(["margin-bottom:8px;@media (max-width:","){margin-top:32px;}"],e=>e.theme.gridBreakpoints.lg);var eZ=i(20987);let eT=e=>({...e.user,hcp:!!e?.user?.name}),eL=()=>{let e=(0,r.useRouter)(),{messages:t}=(0,a.tz)(),{user:i,mutateUser:d}=(0,l.ur)(),[m,u]=o.useState(!1),{control:h,handleSubmit:p,formState:{isSubmitting:g,errors:x},setValue:f,watch:b,resetField:w,setError:j,reset:y}=(0,c.mN)({defaultValues:eT(i)}),v=o.useCallback(async t=>{try{let i=await (0,G.A)(`/clientApi/user/update?locale=${e.locale}`,{method:"POST",body:{...t,name:k.A.sanitize(t.name)}});y(eT(i)),d(),u(!1)}catch(e){"login.error.email-invalid"===e.message&&j("email",{type:"custom",message:e.message})}},[d,e.locale,j,y]),A=o.useCallback(()=>{u(!1)},[u]),_=o.useMemo(()=>m?t["profile.actions.edit-user-account"]:t["settings.profile.title"],[t,m]);return(0,n.jsx)(eZ.A,{pageTitle:_,withHeaderTitle:!0,children:(0,n.jsx)(s.Wt,{children:(0,n.jsx)("form",{onSubmit:p(v),children:(0,n.jsxs)(s.p_,{children:[(0,n.jsx)(s.je,{sm:12,lg:7,children:(0,n.jsx)(e_,{control:h,editMode:m,resetField:w,watch:b,setValue:f})}),(0,n.jsx)(s.je,{lg:4,pushRight:!0,children:m?(0,n.jsxs)(e$,{children:[(0,n.jsx)(s.lD,{isLoading:g,type:"submit",size:"lg",disabled:0!==Object.keys(x).length,children:(0,n.jsx)(a.sA,{id:"settings.navbar.button.save"})}),(0,n.jsx)(s.lD,{size:"lg",variant:"secondary",onClick:A,children:(0,n.jsx)(a.sA,{id:"generic.cancel"})})]}):(0,n.jsx)(eM,{setEditMode:u})})]})})})})};var eR=!0;let eD=(0,d.Ay)(s.UV).withConfig({componentId:"sc-4bbefca6-0"})(["margin:auto;display:block;"]),eF=()=>{let{user:e,loadingUser:t}=(0,l.ur)(),{messages:i}=(0,a.tz)(),c=(0,r.useRouter)();return(o.useEffect(()=>{t||e.isLoggedIn||c.push("/")},[t,c,e.isLoggedIn]),t||!e.isLoggedIn)?(0,n.jsx)(eZ.A,{pageTitle:i["settings.profile.title"],withHeaderTitle:!0,children:(0,n.jsx)(s.Wt,{children:(0,n.jsx)(eD,{})})}):(0,n.jsx)(eL,{})},e$=d.Ay.div.withConfig({componentId:"sc-4bbefca6-1"})(["display:flex;flex-direction:column;> *{div{justify-content:center;}}> * + *{margin-top:8px;}@media (max-width:","){margin-top:32px;}"],e=>e.theme.gridBreakpoints.lg)},87101:(e,t,i)=>{"use strict";i.d(t,{G:()=>n});let n=/[^\s@]+@[^\s@]+\.[^\s@]+/gi},92898:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var n=i(37876),s=i(5646),l=i(36641);let a=(0,s.Ay)(l.A).withConfig({componentId:"sc-d2a82b69-0"})(["align-self:center;padding:1px;svg{width:25px;height:auto;}"]),r=({icon:e,variant:t="blue",...i})=>(0,n.jsx)(a,{variant:t,...i,children:e})},99141:(e,t,i)=>{"use strict";i.d(t,{A:()=>p});var n=i(37876),s=i(89661),l=i(83242),a=i(88992),r=i(12302);let o=({className:e,control:t,name:i,label:l,rules:o,testId:c,...d})=>
1{let{field:{onChange:m,value:u,ref:h},fieldState:{invalid:p}}=(0,a.as)({name:i,control:t,rules:o});return(0,n.jsx)(r.A,{testId:c,onChange:m,checked:u||!1,innerRef:h,name:i,id:i,label:(0,n.jsx)(s.sA,{id:l}),invalid:p,className:e,...d})};var c=i(88466),d=i(14232),m=i(5646),u=i(53824);let h=(0,m.Ay)(l.UV).withConfig({componentId:"sc-41556f28-0"})(["display:block;margin:32px auto;"]),p=({control:e,watch:t,setValue:i,resetField:l})=>{let{messages:a}=(0,s.tz)(),{internationalSpecializations:r,isFetching:m}=(0,u.A)(),{title:p,specialization:g}=t(),x=d.useCallback(()=>{l("specialization"),l("subspecialization"),l("hcp"),i("specialization",null),i("subspecialization",null),i("hcp",!1)},[l,i]),f=d.useCallback(()=>{l("subspecialization"),i("subspecialization",null)},[l,i]),b=d.useMemo(()=>r?r.map(({label:e})=>({label:e,value:e})):[],[r]),w=d.useMemo(()=>r&&r.find(e=>e.label===p),[r,p]);d.useEffect(()=>{i("international_title",w?.internationalTitle||null)},[w,i]);let j=d.useMemo(()=>w?w.children.map(({label:e,...t})=>({label:e,value:e,...t})):[],[w]),y=d.useMemo(()=>g&&j.find(e=>e.label===g),[j,g]),v=d.useMemo(()=>y?y.children.map(({label:e})=>({label:e,value:e})):[],[y]),A=d.useMemo(()=>w?.isHCP,[w]);return m?(0,n.jsx)(h,{}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.A,{testId:"title",options:b,name:"title",control:e,onCustomChange:x,label:"login.row-title.medical-title",placeholder:a["registration.section-title.medical-title"],rules:{required:"common.input.field.not-empty"}}),w&&j.length>0&&(0,n.jsx)(c.A,{testId:"specialization",options:j,name:"specialization",control:e,onCustomChange:f,label:"Student"===p?"title-list.navbar.title.specialty-student":"login.row-title.specialty",placeholder:a["registration.section-title.medical-title"],rules:{required:0!==j.length&&"common.input.field.not-empty"}}),0!==v.length&&(0,n.jsx)(c.A,{testId:"subspecialization",options:v,name:"subspecialization",control:e,label:"login.row-title.subspecialty",placeholder:a["registration.section-title.subspecialty"],rules:{required:0!==v.length&&"common.input.field.not-empty"}}),A&&(0,n.jsx)(o,{testId:"hcpConfirm",name:"hcp",control:e,label:"registration.hcp-alert.message",rules:{required:"common.input.field.not-empty"}})]})}}},e=>{e.O(0,[3391,6593,636,8792],()=>e(e.s=7249)),_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.