1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,12753,e=>{"use strict";var t=e.i(43476),r=e.i(53145),o=e.i(83912),n=e.i(72226);let i=({message:e})=>(0,t.jsxs)("div",{className:"flex w-full",children:[(0,t.jsx)("div",{className:"p-3 bg-destructive flex items-center shrink-0",children:(0,t.jsx)(n.ExclamationTriangleIcon,{className:"text-white"})}),(0,t.jsx)("p",{className:"p-3 border border-destructive text-sm font-medium text-destructive flex-1",children:e})]});e.s(["FormError",0,i,"FormWrapper",0,({onSubmit:e,children:n,submitText:a="Submit",className:s="",submitDisabled:l=!1,extraActions:c})=>{let d=(0,r.useFormContext)(),u=d.formState.errors.root;return(0,t.jsxs)("form",{onSubmit:d.handleSubmit(e),className:s,children:[n,u&&(0,t.jsx)(i,{message:String(u.message)}),(0,t.jsxs)("div",{className:"flex gap-3 w-full",children:[c,(0,t.jsx)(o.Button,{disabled:l,type:"submit",className:"flex-1",children:a})]})]})}])},84297,(e,t,r)=>{t.exports={id:"google-analytics",description:"Install a Google Analytics tag on your website",website:"https://analytics.google.com/analytics/web/",scripts:[{url:"https://www.googletagmanager.com/gtag/js",params:["id"],strategy:"worker",location:"head",action:"append"},{code:"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag('js',new Date());gtag('config','${args.id}')",strategy:"worker",location:"head",action:"append"}]}},92135,(e,t,r)=>{"use strict";function o(e,t,r=!1){return t?Object.keys(e).filter(e=>r?!t.includes(e):t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{}):{}}function n(e,t,r,o){let n=o&&Object.keys(o).length>0?new URL(Object.values(o)[0],e):new URL(e);return t&&r&&t.forEach(e=>{r[e]&&n.searchParams.set(e,r[e])}),n.toString()}function i(e,t,r,o,i){var a;if(!t)return`<${e}></${e}>`;let s=(null==(a=t.src)?void 0:a.url)?Object.assign(Object.assign({},t),{src:n(t.src.url,t.src.params,o,i)}):t,l=Object.keys(Object.assign(Object.assign({},s),r)).reduce((e,t)=>{let o=null==r?void 0:r[t],n=s[t],i=null!=o?o:n,a=!0===i?t:`${t}="${i}"`;return i?e+` ${a}`:e},"");return`<${e}${l}></${e}>`}Object.defineProperty(r,"__esModule",{value:!0}),r.formatData=r.createHtml=r.formatUrl=void 0,r.formatUrl=n,r.createHtml=i,r.formatData=function(e,t){var r,a,s,l,c;let d=o(t,null==(r=e.scripts)?void 0:r.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),u=o(t,null==(s=null==(a=e.html)?void 0:a.attributes.src)?void 0:s.params),p=o(t,[null==(c=null==(l=e.html)?void 0:l.attributes.src)?void 0:c.slugParam]),f=o(t,[...Object.keys(d),...Object.keys(u),...Object.keys(p)],!0);return Object.assign(Object.assign({},e),{html:e.html?i(e.html.element,e.html.attributes,f,u,p):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:n(e.url,e.params,d)})):null})}},44602,(e,t,r)=>{"use strict";var o=e.e&&e.e.__rest||function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)0>t.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=void 0;let i=n(e.r(84297)),a=e.r(92135);r.GoogleAnalytics=e=>{var t=o(e,[]);return(0,a.formatData)(i.default,t)}},60262,(e,t,r)=>{t.exports={id:"google-maps-embed",description:"Embed a Google Maps embed on your webpage",website:"https://developers.google.com/maps/documentation/embed/get-started",html:{element:"iframe",attributes:{loading:"lazy",src:{url:"https://www.google.com/maps/embed/v1/place",slugParam:"mode",params:["key","q","center","zoom","maptype","language","region"]},referrerpolicy:"no-referrer-when-downgrade",frameborder:"0",style:"border:0",allowfullscreen:!0,width:null,height:null}}}},77813,(e,t,r)=>{"use strict";var o=e.e&&e.e.__rest||function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)0>t.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}
1,n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleMapsEmbed=void 0;let i=n(e.r(60262)),a=e.r(92135);r.GoogleMapsEmbed=e=>{var t=o(e,[]);return(0,a.formatData)(i.default,t)}},86958,(e,t,r)=>{t.exports={id:"youtube-embed",description:"Embed a YouTube embed on your webpage.",website:"https://github.com/paulirish/lite-youtube-embed",html:{element:"lite-youtube",attributes:{videoid:null,playlabel:null}},stylesheets:["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],scripts:[{url:"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js",strategy:"idle",location:"head",action:"append"}]}},15465,(e,t,r)=>{"use strict";var o=e.e&&e.e.__rest||function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)0>t.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.YouTubeEmbed=void 0;let i=n(e.r(86958)),a=e.r(92135);r.YouTubeEmbed=e=>{var t=o(e,[]);return(0,a.formatData)(i.default,t)}},81498,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.YouTubeEmbed=r.GoogleMapsEmbed=r.GoogleAnalytics=void 0;var o=e.r(44602);Object.defineProperty(r,"GoogleAnalytics",{enumerable:!0,get:function(){return o.GoogleAnalytics}});var n=e.r(77813);Object.defineProperty(r,"GoogleMapsEmbed",{enumerable:!0,get:function(){return n.GoogleMapsEmbed}});var i=e.r(15465);Object.defineProperty(r,"YouTubeEmbed",{enumerable:!0,get:function(){return i.YouTubeEmbed}})},67345,(e,t,r)=>{"use strict";var o=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){let{apiKey:t,...r}=e,o={...r,key:t},{html:s}=(0,i.GoogleMapsEmbed)(o);return(0,n.jsx)(a.default,{height:o.height||null,width:o.width||null,html:s,dataNtpc:"GoogleMapsEmbed"})};let n=e.r(43476),i=e.r(81498),a=o(e.r(61316))},21783,(e,t,r)=>{"use strict";var o=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){let{html:t,scripts:r,stylesheets:o}=(0,a.YouTubeEmbed)(e);return(0,n.jsx)(s.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==r?void 0:r.map(e=>(0,n.jsx)(i.default,{src:e.url,strategy:l[e.strategy],stylesheets:o},e.url))})};let n=e.r(43476),i=o(e.r(3303)),a=e.r(81498),s=o(e.r(61316)),l={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"}},64243,(e,t,r)=>{"use strict";var o=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGAEvent=r.GoogleAnalytics=r.sendGTMEvent=r.GoogleTagManager=r.YouTubeEmbed=r.GoogleMapsEmbed=void 0;var n=e.r(67345);Object.defineProperty(r,"GoogleMapsEmbed",{enumerable:!0,get:function(){return o(n).default}});var i=e.r(21783);Object.defineProperty(r,"YouTubeEmbed",{enumerable:!0,get:function(){return o(i).default}});var a=e.r(19598);Object.defineProperty(r,"GoogleTagManager",{enumerable:!0,get:function(){return a.GoogleTagManager}}),Object.defineProperty(r,"sendGTMEvent",{enumerable:!0,get:function(){return a.sendGTMEvent}});var s=e.r(54576);Object.defineProperty(r,"GoogleAnalytics",{enumerable:!0,get:function(){return s.GoogleAnalytics}}),Object.defineProperty(r,"sendGAEvent",{enumerable:!0,get:function(){return s.sendGAEvent}})},23925,e=>{"use strict";var t,r=e.i(71645),o=e.i(64243),n=((t=n||{}).DoctorPortal="doctor-portal",t.NominationPortal="nomination-portal",t);e.s(["default",0,function({profileData:e,template:t}){return(0,r.useEffect)(()=>{(({profileData:e,template:t})=>{let r=e?.brightspot_castleconnolly_model_address_LocatableData?.addresses?.[0],i=r&&r?.cityName||"",a=r&&r?.geographicState?.stateAbbreviation||"",s=r&&r?.zip||"",l=(()=>
1{if(e)return+!!e?.premiumDoctor})(),c={template:t,portal:n.DoctorPortal,doctor_type:e?e?.getContentStatus==="published"?"Top Doctor":"Non Top Doctor":"",category:e?.specialty?.displayName||"",city:i,state:a,zipcode:s,enhanced:l};(0,o.sendGTMEvent)({event:"GA4 Event - Page Load",...c})})({profileData:e,template:t})},[e,t]),null}],23925)},91918,e=>{"use strict";var t=e.i(71645),r=e.i(20783),o=e.i(43476),n=Symbol.for("react.lazy"),i=t[" use ".trim().toString()];function a(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===n&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function s(e){var n;let s,l=(n=e,(s=t.forwardRef((e,o)=>{let{children:n,...s}=e;if(a(n)&&"function"==typeof i&&(n=i(n._payload)),t.isValidElement(n)){var l;let e,i,a=(l=n,(i=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(i=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),c=function(e,t){let r={...t};for(let o in t){let n=e[o],i=t[o];/^on[A-Z]/.test(o)?n&&i?r[o]=(...e)=>{let t=i(...e);return n(...e),t}:n&&(r[o]=n):"style"===o?r[o]={...n,...i}:"className"===o&&(r[o]=[n,i].filter(Boolean).join(" "))}return{...e,...r}}(s,n.props);return n.type!==t.Fragment&&(c.ref=o?(0,r.composeRefs)(o,a):a),t.cloneElement(n,c)}return t.Children.count(n)>1?t.Children.only(null):null})).displayName=`${n}.SlotClone`,s),c=t.forwardRef((e,r)=>{let{children:n,...s}=e;a(n)&&"function"==typeof i&&(n=i(n._payload));let c=t.Children.toArray(n),u=c.find(d);if(u){let e=u.props.children,n=c.map(r=>r!==u?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,o.jsx)(l,{...s,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,n):null})}return(0,o.jsx)(l,{...s,ref:r,children:n})});return c.displayName=`${e}.Slot`,c}var l=s("Slot"),c=Symbol("radix.slottable");function d(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}e.s(["Slot",0,l,"createSlot",0,s])},95187,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var o={callServer:function(){return i.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var n in o)Object.defineProperty(r,n,{enumerable:!0,get:o[n]});let i=e.r(32120),a=e.r(92245),s=e.r(35326)},19550,e=>{"use strict";var t=e.i(43476),r=e.i(89368);e.s(["Input",0,function({className:e,type:o,...n}){return(0,t.jsx)("input",{type:o,"data-slot":"input",className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}])},78745,e=>{"use strict";let t=(0,e.i(75254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",0,t])},35804,e=>{"use strict";var t=e.i(71645),r=e.i(34620);e.s(["useSize",0,function(e){let[o,n]=t.useState(void 0);return(0,r.useLayoutEffect)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),o}])},43531,e=>{"use strict";var t=e.i(78745);e.s(["Check",()=>t.default])},99682,e=>{"use strict";var t=e.i(71645);e.s(["usePrevious",0,function(e){let r=t.useRef({value:e,previous:e});return t.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}])},4132,e=>{"use strict";var t=e.i(43476),r=e.i(71645),o=e.i(20783),n=e.i(30030),i=e.i(81140),a=e.i(69340),s=e.i(99682),l=e.i(35804),c=e.i(96626),d=e.i(48425),u="Checkbox",[p,f]=(0,n.createContextScope)(u),[m,g]=p(u);function b(e){let{__scopeCheckbox:o,checked:n,children:i,defaultChecked:s,disabled:l,form:c,name:d,onCheckedChange:p,required:f,value:g="on",internal_do_not_use_render:b}=e,[h,y]=(0,a.useControllableState)({prop:n,defaultProp:s??!1,onChange:p,caller:u}),[v,w]=r.useState(null),[x,j]=r.useState(null),E=r.useRef(!1),_=!v||!!c||!!v.closest("form"),k={checked:h,disabled:l,setChecked:y,control:v,setControl:w,name:d,form:c,value:g,hasConsumerStoppedPropagationRef:E,required:f,defaultChecked:!O(s)&&s,isFormControl:_,bubbleInput:x,setBubbleInput:j};return(0,t.jsx)(m,{scope:o,...k,children:"function"==typeof b?b(k):i})}var h="CheckboxTrigger",y=r.forwardRef(({__scopeCheckbox:e,onKeyDown:n,onClick:a,...s},l)=>{let{control:c,value:u,disabled:p,checked:f,required:m,setControl:b,setChecked:y,hasConsumerStoppedPropagationRef:v,isFormControl:w,bubbleInput:x}=g(h,e),j=(0,o.useComposedRefs)(l,b),E=r.useRef(f);return r.useEffect(()=>{let e=c?.form;if(e){let t=()=>y(E.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[c,y]),(0,t.jsx)(d.Primitive.button,{type:"button",role:"checkbox","aria-checked":O(f)?"mixed":f,"aria-required":m,"data-state":_(f),"data-disabled":p?"":void 0,disabled:p,value:u,...s,ref:j,onKeyDown:(0,i.composeEventHandlers)(n,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.composeEventHandlers)(a,e=>{y(e=>!!O(e)||!e),x&&w&&(v.current=e.isPropagationStopped(),v.current||e.stopPropagation())})})});y.displayName=h;var v=r.forwardRef((e,r)=>{let{__scopeCheckbox:o,name:n,checked:i,defaultChecked:a,required:s,disabled:l,value:c,onCheckedChange:d,form:u,...p}=e;return(0,t.jsx)(b,{__scopeCheckbox:o,checked:i,defaultChecked:a,disabled:l,required:s,onCheckedChange:d,name:n,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(y,{...p,ref:r,__scopeCheckbox:o}),e&&(0,t.jsx)(E,{__scopeCheckbox:o})]})})});v.displayName=u;var w="CheckboxIndicator",x=r.forwardRef((e,r)=>{let{__scopeCheckbox:o,forceMount:n,...i}=e,a=g(w,o);return(0,t.jsx)(c.Presence,{present:n||O(a.checked)||!0===a.checked,children:(0,t.jsx)(d.Primitive.span,{"data-state":_(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:r,
1style:{pointerEvents:"none",...e.style}})})});x.displayName=w;var j="CheckboxBubbleInput",E=r.forwardRef(({__scopeCheckbox:e,...n},i)=>{let{control:a,hasConsumerStoppedPropagationRef:c,checked:u,defaultChecked:p,required:f,disabled:m,name:b,value:h,form:y,bubbleInput:v,setBubbleInput:w}=g(j,e),x=(0,o.useComposedRefs)(i,w),E=(0,s.usePrevious)(u),_=(0,l.useSize)(a);r.useEffect(()=>{if(!v)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!c.current;if(E!==u&&e){let r=new Event("click",{bubbles:t});v.indeterminate=O(u),e.call(v,!O(u)&&u),v.dispatchEvent(r)}},[v,E,u,c]);let k=r.useRef(!O(u)&&u);return(0,t.jsx)(d.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:p??k.current,required:f,disabled:m,name:b,value:h,form:y,...n,tabIndex:-1,ref:x,style:{...n.style,..._,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function O(e){return"indeterminate"===e}function _(e){return O(e)?"indeterminate":e?"checked":"unchecked"}E.displayName=j;var k=e.i(43531),P=e.i(89368);let S=r.forwardRef(({className:e,...r},o)=>(0,t.jsx)(v,{ref:o,className:(0,P.cn)("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-none data-[state=checked]:bg-controls data-[state=checked]:text-primary-foreground",e),...r,children:(0,t.jsx)(x,{className:(0,P.cn)("grid place-content-center text-current"),children:(0,t.jsx)(k.Check,{className:"h-4 w-4"})})}));S.displayName=v.displayName,e.s(["Checkbox",0,S],4132)},11951,e=>{"use strict";var t=e.i(43476),r=e.i(71645),o=e.i(75254);let n=(0,o.default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),i=(0,o.default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);var a=e.i(19550),s=e.i(83912);e.s(["PasswordInput",0,function({placeholder:e="Password",...o}){let[l,c]=(0,r.useState)(!1);return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(a.Input,{type:l?"text":"password",placeholder:e,className:"pr-10",...o}),(0,t.jsx)(s.Button,{type:"button",variant:"ghost",size:"icon",className:"absolute right-0 top-0 h-full px-3 cursor-pointer",onClick:()=>c(e=>!e),children:l?(0,t.jsx)(i,{className:"h-4 w-4 cursor-pointer"}):(0,t.jsx)(n,{className:"h-4 w-4"})})]})}],11951)},95865,e=>{"use strict";var t=e.i(95187);let r=(0,t.createServerReference)("401d692d5f346e8601f54a515ca8d9a8db9cdb1e2a",t.callServer,void 0,t.findSourceMapURL,"login");e.s(["login",0,r])},20895,e=>{"use strict";var t,r,o,n,i=e.i(43476),a=e.i(18566),s=e.i(4132),l=e.i(52917),c=e.i(12753),d=e.i(22016),u=e.i(94814),p=e.i(53145),f=e.i(81307),m=e.i(95865),g=e.i(11951),b=((t={}).doctor="/profile/main",t.dentist="/profile/main",t);let h={doctor:((r={})["/profile/main"]="/profile/main",r["/profile/personal-information"]="/profile/personal-information",r["/profile/enhanced-profile"]="/profile/enhanced-profile",r["/profile/upgrade-payment"]="/profile/upgrade-payment",r["/profile/print-opportunities"]="/profile/print-opportunities",r["/nominations/top-doctors"]="/nominations/top-doctors",r["/nominations/top-hospitals"]="/nominations/top-hospitals",r["/enhance-your-profile"]="/enhance-your-profile",r),dentist:((o={})["/profile/main"]="/profile/main",o["/nominations/top-dentists"]="/nominations/top-dentists",o["/profile/personal-information"]="/profile/personal-information",o["/profile/enhanced-profile"]="/profile/enhanced-profile",o["/enhance-your-profile"]="/enhance-your-profile",o["/profile/print-opportunities"]="/profile/print-opportunities",o)};var y=((n=y||{})["/profile/account-settings"]="/profile/account-settings",n["/profile/main"]="/profile/main",n["/profile/personal-information"]="/profile/personal-information",n["/profile/practice-information"]="/profile/practice-information",n["/profile/upgrade-payment"]="/profile/upgrade-payment",n["/profile/enhanced-profile"]="/profile/enhanced-profile",n["/profile/print-opportunities"]="/profile/print-opportunities",n["/enhance-your-profile"]="/enhance-your-profile",n["/nominations/top-hospitals"]="/nominations/top-hospitals",n["/nominations/top-doctors"]="/nominations/top-doctors",n["/nominations/top-dentists"]="/nominations/top-dentists",n),v=e.i(71645),w=e.i(95187);let x=(0,w.createServerReference)("40da0c8fbbc39010cdc22c65e4a840679b86bb9a83",w.callServer,void 0,w.findSourceMapURL,"verifyCaptcha"),j="https://www.google.com/recaptcha/api.js?render=explicit";var E=e.i(64243);let O=({variables:e})=>{(0,E.sendGTMEvent)({event:"GA4 Event - Log In",...e})};var _=e.i(69053),k=e.i(19550);let P=f.z.object({password:f.z.string().min(1,"Password is required").min(4,"Password must be at least 4 characters long").max(100,"Password is too long"),email:f.z.string().min(1,"Email is required").email("Invalid email address"),keepSignedIn:f.z.boolean()});e.s(["LogInForm",0,function({siteKey:e}){let t=(0,a.useRouter)(),r=function({siteKey:e,containerId:t}){let[r,o]=(0,v.useState)(!1),n=(0,v.useRef)(null),i=(0,v.useRef)(!1),a=(0,v.useRef)(!1),s=(0,v.useCallback)(()=>new Promise((e,t)=>
1{if(i.current&&window.grecaptcha)return void window.grecaptcha.ready(()=>e());let r=document.querySelector(`script[src="${j}"]`);if(r)return void(window.grecaptcha?.ready?window.grecaptcha.ready(()=>e()):r.addEventListener("load",()=>{window.grecaptcha.ready(()=>e())}));let o=document.createElement("script");o.src=j,o.async=!0,o.defer=!0,o.onload=()=>{i.current=!0,window.grecaptcha.ready(()=>e())},o.onerror=()=>t(Error("Failed to load reCAPTCHA script")),document.head.appendChild(o)}),[]),l=(0,v.useCallback)(async()=>{if(!r&&!a.current){a.current=!0;try{if(await s(),!document.getElementById(t))throw Error(`reCAPTCHA container #${t} not found in the DOM`);n.current=window.grecaptcha.render(t,{sitekey:e,theme:"light"}),o(!0)}finally{a.current=!1}}},[r,s,t,e]);return{isActive:r,activate:l,reset:(0,v.useCallback)(()=>{null!==n.current&&window.grecaptcha.reset(n.current)},[]),verify:(0,v.useCallback)(async()=>{let e=window.grecaptcha.getResponse(n.current??void 0);if(!e)throw Error("Complete reCAPTCHA challenge");let t=await x(e);if(!t.success)throw Error(t.error||"reCAPTCHA verification failed")},[])}}({siteKey:e,containerId:"login-captcha-wrapper"}),o=(0,p.useForm)({resolver:(0,u.zodResolver)(P),mode:"onSubmit",defaultValues:{password:"",email:"",keepSignedIn:!1}});async function n(n){let i=new URLSearchParams(window.location.search).get("ref");if(i&&!/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/i.test(i)&&!(i in y)){let e=new URL(window.location.href);e.search="",window.location.href=e.toString(),t.push("/login")}try{if(r.isActive)try{await r.verify()}catch(e){o.setError("root",{type:"captcha",message:e.message||"Complete reCAPTCHA challenge"}),r.reset();return}let{email:a,password:s,keepSignedIn:l}=n,c=await (0,m.login)({email:a,password:s,keepSignedIn:l});if(!c.success&&!c.data){if(o.setError("root",{type:"server",message:c.error?.message}),r.isActive)r.reset();else{if(!e)return void o.setError("root",{type:"captcha",message:"Security verification is unavailable. Please try again later."});try{await r.activate()}catch{o.setError("root",{type:"captcha",message:"Failed to load security verification. Please refresh the page and try again."})}}return}let{accountType:d,isTopDoctor:u,isPremium:p}=c.data;if(O({variables:{login_success:!0,account_type:d,top_doctor:u,enhanced:p}}),i){let e=(({ref:e,accountType:t})=>e in h[t]?e:b[t])({ref:i,accountType:d});t.push(e)}else{let e=b[d];t.push(e)}}catch{O({variables:{login_success:!1}}),o.setError("root",{type:"server",message:"Something went wrong. Please try again."})}}let{isSubmitting:f}=o.formState;return(0,i.jsx)(_.Form,{...o,children:(0,i.jsxs)(c.FormWrapper,{submitDisabled:f,submitText:o.formState.isSubmitting?"Logging in...":"Log in",onSubmit:o.handleSubmit(n),className:"space-y-6 border p-6 rounded-lg bg-card",children:[(0,i.jsx)("h1",{className:"text-2xl text-center font-bold mb-4",children:"Sign in"}),(0,i.jsx)(_.FormField,{control:o.control,name:"email",render:({field:e})=>(0,i.jsxs)(_.FormItem,{children:[(0,i.jsxs)(_.FormLabel,{children:["Email Address",(0,i.jsx)(d.default,{href:"/forgot-email",className:"link float-right",children:"Forgot email address?"})]}),(0,i.jsx)(_.FormControl,{children:(0,i.jsx)(k.Input,{type:"text",inputMode:"email",autoComplete:"email",placeholder:"Email Address",...e})}),(0,i.jsx)(_.FormMessage,{})]})}),(0,i.jsx)(_.FormField,{control:o.control,name:"password",render:({field:e})=>(0,i.jsxs)(_.FormItem,{children:[(0,i.jsxs)(_.FormLabel,{children:["Password",(0,i.jsx)(d.default,{href:"/forgot-password",className:"link float-right",children:"Forgot password?"})]}),(0,i.jsx)(_.FormControl,{children:(0,i.jsx)(g.PasswordInput,{placeholder:"Password",...e})}),(0,i.jsx)(_.FormMessage,{}),(0,i.jsxs)("div",{className:"mt-4 flex items-center gap-3",children:[(0,i.jsx)(s.Checkbox,{className:"w-5 h-5",id:"keep-signed-in",checked:o.watch("keepSignedIn"),onCheckedChange:e=>o.setValue("keepSignedIn",!!e)}),(0,i.jsx)(l.Label,{htmlFor:"keep-signed-in",children:"Keep me signed in"})]})]})}),(0,i.jsx)("div",{id:"login-captcha-wrapper",className:"flex justify-center"})]})})}],20895)}]);
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.