PageSourceSearch

https://www.orlandohealthfoundation.com/_next/static/chunks/buildkit-95e3447d-33d25e73b6c49a65.js

js orlandohealthfoundation.com collected 2026-10-04 03:52:53 UTC 52,378 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6995],{6161:(e,t,n)=>{n.d(t,{U:()=>o,p:()=>a});var r=n(63778),i=n(6781),a=["PhysicianFinder"],o=function(e){void 0===e&&(e=a),r.M$.register("insertMenu",{name:"Physician Finder",items:e.map(function(e){return{name:e}})}),e.includes("PhysicianFinder")&&r.M$.registerComponent((0,r.OF)(i.A),{name:"PhysicianFinder",inputs:[{name:"headline",type:"string",defaultValue:"Find a Doctor at Orlando Health",helperText:"The title of the physician finder"},{name:"className",type:"string",defaultValue:""},{name:"isDCHSite",type:"boolean",defaultValue:!1},{name:"medicalGroupFilter",type:"string",defaultValue:"",helperText:"Filter by specific medical group ID"},{name:"medicalStaffFilter",type:"string",defaultValue:"",helperText:"Filter by specific medical staff ID"}]})}},6781:(e,t,n)=>{n.d(t,{d:()=>eb,A:()=>ey});var r=n(80263),i=n(53239),a=n(93171),o=n(34607),l=n(63778),c=n(1503),s=n(91258),u=n(40021),d=n(44780),f=n(95788),p=n(96073),m="myChart.hasOnlineScheduling",h=n(70376),v=function(){return(v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},g=Symbol("physician-finder-popstate"),x=["q","Specialty","PrimaryCare","Gender","DoctorType","MedicalGroup","OnlineScheduling","Languages","PatientGroup","Page","PageSize","SortBy","aroundLatLng"],b=new WeakMap;function y(e){var t="string"==typeof e?e:Array.isArray(e)?e[0]:"";return t?t.split(",").map(function(e){return e.trim()}).filter(Boolean):[]}function N(e){for(var t=new URLSearchParams(e.startsWith("?")?e.slice(1):e),n={},r=0;r<x.length;r++){var i=x[r],a=t.get(i);a&&(n[i]=a)}return n}function I(e,t){for(var n=0;n<x.length;n++){var r=x[n],i=t[r];i?e.set(r,i):e.delete(r)}"1"===t.Page&&e.delete("Page")}function _(e){return decodeURIComponent(e).trim().toLowerCase().replace(/\s+/g," ")}function A(e,t){if(!e)return"";var n="hub.Specialties.Id.".concat(e),r=null==t?void 0:t(n);return r&&r!==n?r:e}function j(e,t,n){var r,i=e.trim();if(!i)return"";if(/^\d+$/.test(i))return i;for(var a=_(i),o=_(i.replace(/-/g," ")),l=(null==(r=(0,f.CY)(n,"specialties.id"))?void 0:r.length)?r.map(function(e){return String(e.value)}):[],c=0;c<l.length;c++){var s=l[c],u=_(A(s,t));if(u===a||u===o)return s}return""}var w=n(77410),D=function(){return(D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},L=function(e,t){var n,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(c){var s=[l,c];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}},C=function(e){var t=e.indexName,n=(0,a.useRouter)(),r=(0,c.qB)(),o=(0,w.J0)(),l=o.indexUiState,s=o.setUiState,u=(0,i.useRef)(!1);return(0,i.useEffect)(function(){if(n.isReady&&!u.current){var e,i=n.query.Specialty,a="string"==typeof i?i:Array.isArray(i)?i[0]:"";if(!(!a||/^\d+$/.test(a.trim()))){if(null==(e=l.menu)?void 0:e["specialties.id"]){u.current=!0;return}var o,c,d,p,m=!1;return o=void 0,c=void 0,d=void 0,p=function(){var e;return L(this,function(n){switch(n.label){case 0:return[4,(0,f.y_)(t,"specialties.id")];case 1:if(n.sent(),m||!(e=j(a,r.getDictionaryValue,t)))return[2];return u.current=!0,s(function(n){var r,i;return D(D({},n),((r={})[t]=D(D({},n[t]),{menu:D(D({},null==(i=n[t])?void 0:i.menu),{"specialties.id":e})}),r))}),[2]}})},new(d||(d=Promise))(function(e,t){function n(e){try{i(p.next(e))}catch(e){t(e)}}function r(e){try{i(p.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):((i=t.value)instanceof d?i:new d(function(e){e(i)})).then(n,r)}i((p=p.apply(o,c||[])).next())}),function(){m=!0}}}},[n.isReady,n.query.Specialty,t,l.menu,s,r]),null},S=function(){return(S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},R=function(e){var t=e.indexName,n=e.filters,r=(0,w.J0)().setUiState;return(0,i.useEffect)(function(){r(function(e){var r,i=e[t]||{},a=i.configure||{};return a.filters===n?e:S(S({},e),((r={})[t]=S(S({},i),{configure:S(S({},a),{filters:n})}),r))})},[n,t,r]),null},E=n(23450),P=n(97028),O=function(){return(O=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},k="specialties.id",T=function(e){var t,n,o=e.onSpecialtyChange,l=(0,i.useState)(!1),s=l[0],f=l[1],p=(0,i.useState)(""),m=p[0],v=p[1],g=(0,i.useRef)(null),x=(0,i.useRef)(null);(0,a.useRouter)();var b=(0,c.qB)(),y=null==b?void 0:b.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_SPECIALTY_PLACEHOLDER),N=null==b?void 0:b.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_NO_SPECIALTIES_FOUND),I=(0,E.b)({attribute:k,limit:1e3,sortBy:["name:asc"]}),_=I.refine,A=I.items,j=!!(null==(t=(0,E.J0)().indexUiState.toggle)?void 0:t.isPrimaryCareProvider),w=(0,i.useMemo)(function(){return(0,h.EF)(null==b?void 0:b.getDictionaryValue)},[b]),D=A.map(function(e){var t;return O(O({},e),{label:(t=e.value,(null==b?void 0:b.getDictionaryValue("hub.Specialties.Id.".concat(t)))||t)})}).filter(function(e){return!j||w.has(e.value)}).sort(function(e,t){return e.label.localeCompare(t.label)});(0,i.useEffect)(function(){if(j){var e=A.find(function(e){return e.isRefined});e&&!w.has(e.value)&&_(e.value)}},[j,A,w,_]);var L=(0,i.useMemo)(function(){return""===m.trim()?D:D.filter(function(e){return e.label.toLowerCase().includes(m.toLowerCase())})},[D,m]),C=function(){f(!s),s&&v("")};(0,i.useEffect)(function(){var e=function(e){x.current&&!x.current.contains(e.target)&&(f
1(!1),v(""))};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[]),(0,i.useEffect)(function(){s&&g.current&&g.current.focus()},[s]);var S=function(e){_(e),(0,u.Ie)(d.UP.PROVIDER,k,e),f(!1),v("")},R=(null==(n=D.find(function(e){return e.isRefined}))?void 0:n.label)||"";return(0,i.useEffect)(function(){null==o||o(R||null)},[R,o]),(0,r.jsxs)("div",{className:"specialty-dropdown relative",ref:x,children:[(0,r.jsxs)("div",{className:"relative border border-neutral-60 rounded-lg overflow-hidden ".concat(s?"rounded-b-none":""),onClick:function(){return!s&&f(!0)},children:[(0,r.jsx)("input",{ref:g,type:"text",className:"w-full px-4 py-3 outline-none ".concat(R?"placeholder:text-neutral-20":"placeholder:text-neutral-40"," text-neutral-20 bg-neutral-90 text-sm"),placeholder:R||y,value:s?m:"",onChange:function(e){v(e.target.value),s||f(!0)},onFocus:function(){return f(!0)}}),R&&!s&&(0,r.jsx)("button",{type:"button",onClick:function(e){e.stopPropagation(),_(""),v("")},className:"absolute right-8 top-1/2 transform -translate-y-1/2 text-neutral-40 flex pr-3","aria-label":"Clear specialty",children:(0,r.jsx)(P.Icon,{icon:"xmark",size:"xs"})}),(0,r.jsx)("div",{className:"absolute right-4 top-1/2 transform -translate-y-1/2 cursor-pointer flex justify-center",onClick:function(e){e.stopPropagation(),C()},children:(0,r.jsx)(P.Icon,{icon:"chevron-down",size:"xs",className:"transition-transform duration-300 text-neutral-40 ".concat(s?"rotate-180":"")})})]}),s&&(0,r.jsx)("div",{className:"absolute z-[5] w-full bg-white rounded-b-lg shadow-lg border border-neutral-80",children:(0,r.jsx)("div",{className:"max-h-[220px] overflow-y-auto",children:0===L.length?(0,r.jsx)("div",{className:"p-2 text-sm text-neutral-40 text-center",children:N}):(0,r.jsx)("ul",{className:"oh-list-reset space-y-1 list-none bg-neutral-70 p-0",children:L.map(function(e){return(0,r.jsx)("li",{children:(0,r.jsx)("button",{className:"block w-full text-left px-3 py-2 text-sm text-neutral-20 hover:bg-primary hover:text-neutral-100 ".concat(e.isRefined?"font-bold":""),onClick:function(){return S(e.value)},"aria-label":e.label,children:e.label})},e.value)})})})})]})},Y=n(29864),F=n(88227),G=n.n(F),V=n(32542),H=n.n(V),M=function(){var e=(0,a.useRouter)(),t=(0,h.mE)({searchDebounceTime:600}),n=t.indices,o=t.currentRefinement,l=t.refine,s=(0,i.useState)(-1),u=s[0],d=s[1],f=(0,i.useState)(!1),p=f[0],m=f[1],v=(0,i.useState)(o||""),g=v[0],x=v[1],b=(0,i.useRef)(null),y=(0,i.useRef)(null),N=(0,c.qB)(),I=null==N?void 0:N.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_DOCTOR_NAME_PLACEHOLDER);(0,i.useEffect)(function(){document.activeElement!==b.current&&x(o||"")},[o]),(0,i.useEffect)(function(){var e=setTimeout(function(){g!==o&&l(g)},600);return function(){return clearTimeout(e)}},[g,l,o]),(0,i.useEffect)(function(){var e=function(e){y.current&&!y.current.contains(e.target)&&m(!1)};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[]);var _=function(t){var n=t.slug?"/physician-finder/".concat(t.slug):"#";e.push(n),m(!1)};return(0,r.jsxs)("div",{className:"relative DocNameAutocomplete",ref:y,"data-doctor-name-autocomplete":!0,children:[(0,r.jsx)(Y.Zf,{restrictSearchableAttributes:["fullName","npi"]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("input",{ref:b,type:"text",value:g,onChange:function(e){var t=e.target.value;x(t),t&&""!==t.trim()?m(!0):m(!1),d(-1)},onBlur:function(){g!==o&&l(g)},onKeyDown:function(e){if(n.length&&n[0].hits.length){var t=n[0].hits.slice(0,5);switch(e.key){case"ArrowDown":e.preventDefault(),d(function(e){return e<t.length-1?e+1:e});break;case"ArrowUp":e.preventDefault(),d(function(e){return e>0?e-1:0});break;case"Enter":e.preventDefault(),u>=0&&u<t.length&&_(t[u]);break;case"Escape":e.preventDefault(),m(!1)}}},onFocus:function(){return g&&m(!0)},placeholder:I,className:"w-full outline-none px-4 py-3 border border-neutral-60 rounded-lg shadow-sm transition-all text-sm bg-neutral-90","data-doctor-name-input":!0}),g&&(0,r.jsx)("button",{type:"button",onClick:function(e){e.preventDefault(),e.stopPropagation(),x(""),l(""),m(!1),setTimeout(function(){b.current&&b.current.focus()},10)},className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-neutral-40","aria-label":"Clear input",children:(0,r.jsx)(P.Icon,{icon:"xmark",size:"xs"})})]}),p&&n.length>0&&n[0].hits.length>0&&(0,r.jsx)("div",{className:"absolute z-10 w-full mt-1 bg-white rounded-lg shadow-lg border border-neutral-80",children:(0,r.jsx)("ul",{className:"oh-list-reset max-h-[320px] overflow-y-none list-none bg-[#f7f7f7]",children:n[0].hits.slice(0,5).map(function(e,t){return(0,r.jsx)("li",{className:"cursor-pointer border-b border-neutral-50 ".concat(t===u?"bg-neutral-90":""),children:(0,r.jsx)(H(),{className:"block w-full py-1 text-sm text-neutral-40",href:"/physician-finder/".concat(e.slug),prefetch:!1,onClick:function(t){t.preventDefault(),_(e)},children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("div",{className:"flex-shrink-0 mr-3",children:(0,r.jsx)("div",{className:"w-10 h-10 bg-neutral-80 flex items-center justify-center text-neutral-40 overflow-hidden ml-2",children:e.imageUrl?(0,r.jsx)(G(),{src:e.imageUrl,alt:"",width:32,height:40,className:"object-cover"}):(0,r.jsx)(G(),{src:"/images/default-physician.png",alt:"",width:32,height:40,className:"object-cover"})})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"font-medium text-primary",children:e.fullName}),(0,r.jsx)("div",{className:"text-xs text-neutral-40",children:(0,h.zL)(e)})]})]})})},e.objectID)})})})]})},U=n(37257),B=n(53756),q=function(){return(q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)}
1,z=function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}c((r=r.apply(e,t||[])).next())})},J=function(e,t){var n,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(c){var s=[l,c];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}},Z=i.forwardRef(function(e,t){var n,o=e.onLocationChange,l=(0,i.useState)(!1),s=l[0],u=l[1],d=(0,i.useState)(""),f=d[0],p=d[1],m=(0,i.useState)(null),h=m[0],v=m[1],g=(0,i.useState)([]),x=g[0],b=g[1],y=(0,i.useState)(!1),N=y[0],I=y[1],_=(0,i.useRef)(null),A=(0,i.useRef)(null),j=(0,i.useRef)(!1),w=(0,i.useRef)(null),D=(0,U.J0)(),L=D.setUiState,C=D.indexUiState,S=(0,a.useRouter)(),R=(0,c.qB)(),E=null==R?void 0:R.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_USE_MY_LOCATION),O=null==R?void 0:R.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_LOCATION_PLACEHOLDER);(0,i.useEffect)(function(){null==o||o((null==h?void 0:h.label)||null)},[h,o]),i.useImperativeHandle(t,function(){return{clearLocation:T}}),(0,i.useEffect)(function(){var e=function(e){A.current&&!A.current.contains(e.target)&&(u(!1),b([]))};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[]),(0,i.useEffect)(function(){var e;(null==(e=window.google)?void 0:e.maps)&&S.isReady&&z(void 0,void 0,void 0,function(){var e,t,n;return J(this,function(r){switch(r.label){case 0:if(j.current||document.activeElement===_.current||!(e=S.query.aroundLatLng||(null==(n=C.configure)?void 0:n.aroundLatLng))||h||w.current===e)return[2];w.current=e,I(!0),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,B.A.fetchInitialLocation(e)];case 2:if(t=r.sent(),document.activeElement===_.current)return[2];return t&&(v(t),p(t.label)),[3,4];case 3:return r.sent(),w.current=null,[3,4];case 4:return I(!1),[2]}})})},[S.isReady,h,null==(n=C.configure)?void 0:n.aroundLatLng,S.query.aroundLatLng]),(0,i.useEffect)(function(){var e=setTimeout(function(){return z(void 0,void 0,void 0,function(){return J(this,function(e){switch(e.label){case 0:if(!f)return[3,5];I(!0),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,B.A.getLocationSuggestions(f)];case 2:return b(e.sent()),[3,4];case 3:return e.sent(),[3,4];case 4:return I(!1),[3,6];case 5:b([]),e.label=6;case 6:return[2]}})})},300);return function(){return clearTimeout(e)}},[f]);var k=function(e){return z(void 0,void 0,void 0,function(){var t,n,r;return J(this,function(i){switch(i.label){case 0:return I(!0),[4,B.A.getLocationCoordinates(e.place_id)];case 1:if(t=i.sent(),I(!1),!t)return[2];return w.current=n="".concat(t.coordinates.lat,",").concat(t.coordinates.lng),v(q(q({},t),{label:e.description})),p(e.description),u(!1),r="idx-provider",L(function(e){var i,a=e[r]||{};return q(q({},e),((i={})[r]=q(q({},a),{sortBy:"".concat(r,"_distance"),aroundRadius:"all",_geoloc:t.coordinates,configure:q(q({},a.configure),{aroundLatLng:n,aroundRadius:"all",minimumAroundRadius:1})}),i))}),[2]}})})},T=function(){j.current=!0,w.current=null,p(""),v(null),b([]),u(!1);var e="idx-provider";L(function(t){var n,r=t[e]||{},i=q({},r.configure||{});return delete i.aroundLatLng,delete i.aroundRadius,delete i.minimumAroun
1dRadius,q(q({},t),((n={})[e]=q(q({},r),{sortBy:r.sortBy==="".concat(e,"_distance")?e:r.sortBy,_geoloc:void 0,configure:i}),n))}),setTimeout(function(){j.current=!1},500)};return(0,r.jsxs)("div",{className:"location-dropdown relative",ref:A,children:[h&&(0,r.jsx)(U.Zf,{aroundLatLng:"".concat(h.coordinates.lat,",").concat(h.coordinates.lng),aroundRadius:"all",minimumAroundRadius:1}),(0,r.jsxs)("div",{className:"relative border border-neutral-60 rounded-lg overflow-hidden",children:[(0,r.jsx)("input",{ref:_,type:"text",className:"w-full px-4 py-3 outline-none text-neutral-20 bg-neutral-90 text-sm",placeholder:O,value:f,onChange:function(e){p(e.target.value),u(!0)},onFocus:function(){return u(!0)}}),(f||h)&&(0,r.jsx)("button",{type:"button",onClick:T,className:"absolute right-8 top-1/2 transform -translate-y-1/2 text-neutral-40 flex",children:(0,r.jsx)(P.Icon,{icon:"xmark",size:"xs"})})]}),s&&x.length>0&&(0,r.jsx)("div",{className:"absolute z-[50] w-full mt-1 bg-white rounded-lg shadow-lg border border-neutral-80",children:(0,r.jsx)("ul",{className:"oh-list-reset max-h-[320px] overflow-y-auto list-none",children:N?(0,r.jsx)("li",{className:"px-4 py-2 text-sm text-neutral-40",children:"Loading..."}):x.map(function(e){return(0,r.jsx)("li",{className:"cursor-pointer hover:bg-neutral-90 border-b border-neutral-50 last:border-b-0",children:(0,r.jsx)("button",{className:"w-full text-left px-4 py-2 text-sm text-neutral-20",onClick:function(){return k(e)},children:(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)(P.Icon,{icon:"location-dot",size:"xs",className:"mr-2 text-neutral-40"}),(0,r.jsx)("span",{children:e.description})]})})},e.place_id)})})}),(0,r.jsxs)("button",{onClick:function(){"geolocation"in navigator&&(I(!0),navigator.geolocation.getCurrentPosition(function(e){return z(void 0,void 0,void 0,function(){var t;return J(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,3,4]),[4,B.A.fetchInitialLocation("".concat(e.coords.latitude,",").concat(e.coords.longitude))];case 1:return(t=n.sent())&&k({place_id:t.placeId,description:t.label}),[3,4];case 2:return n.sent(),[3,4];case 3:return I(!1),[7];case 4:return[2]}})})},function(e){I(!1)}))},className:"mt-2 min-h-[44px] text-sm text-primary hover:text-primary-dark flex items-center gap-2",type:"button",children:[(0,r.jsx)(P.Icon,{icon:"location-dot",size:"xs"}),E]})]})}),K=n(9901),$=n(56021),W=n(67619),X=n(88088),Q=function(){return(Q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},ee=function(e){var t,n,i,a,o=e.hit,l=(0,E.b)({attribute:"specialties.id"}).refine,s=(0,c.qB)(),u=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_RATING_MODAL_LEARN_MORE_URL),d=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_MILES),f=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_METERS),p=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_MEDICAL_GROUP_NAME),m=(0,X.yK)(o.locations),v=(0,E.J0)().indexUiState,g=function(){var e,t,n=null==(e=o.locations)?void 0:e.find(function(e){return e.isPrimary});if(n)return n;if(null==(t=o._rankingInfo)?void 0:t.matchedGeoLocation){var r=o._rankingInfo.matchedGeoLocation.lat,i=o._rankingInfo.matchedGeoLocation.lng;return o.locations.find(function(e){return(0,W.locationMatchesRankingGeo)(e,r,i)})||m}return m}(),x=function(){var e;if((null==(e=o._rankingInfo)?void 0:e.matchedGeoLocation)&&v.sortBy==="".concat("idx-provider","_distance")){var t=o._rankingInfo.matchedGeoLocation.distance;return t<1e3?"".concat(Math.round(t)," ").concat(f):"".concat((t/1609.34).toFixed(1)," ").concat(d)}}(),b=(0,$.Kt)(o.isEmployed,null==(t=o.myChart)?void 0:t.hasOnlineScheduling,o.hasOnlineScheduling),y=(0,$.Wq)(s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_USE_MYCHART_REQUEST_APPOINTMENT_FLOW)),N=(0,$.Kt)(o.isEmployed,null==(n=o.myChart)?void 0:n.hasRequestAnAppointment),I=o.isEmployed&&(!y||N),_={name:o.fullName||"",image:o.media||"/images/default-physician.png",specialty:(0,h.s1)(o,s),specialtyValue:null==(a=null==(i=o.specialties)?void 0:i[0])?void 0:a.id,objectID:o.objectID||"",npi:o.npi,starRatingLink:u,starRating:0,specialtyLink:"#",isOHMemberGroup:o.isEmployed,groupName:p||"Medical Group Member",hasOnlineSc
1heduling:b,address:{name:(null==g?void 0:g.name)||"",addressLine1:(null==g?void 0:g.address1)||"",addressLine2:(null==g?void 0:g.address2)||"",city:(null==g?void 0:g.city)||"",state:(null==g?void 0:g.state)||"",zip:(null==g?void 0:g.zipCode)||"",distance:x},phone:(null==g?void 0:g.phone)||"",categories:o.specialties?o.specialties.slice(1).map(function(e){return{name:(null==s?void 0:s.getDictionaryValue("hub.Specialties.Id.".concat(String(e.id))))||String(e.id),value:e.id,link:"#"}}):[],profileUrl:"/physician-finder/".concat(o.slug),callbackUrl:I?"/physician-finder/".concat(o.slug,"?RequestAppointment=true"):void 0,onlineSchedulingUrl:b?"/physician-finder/".concat(o.slug,"?OnlineScheduling=true"):void 0,theme:"none",hasMultipleLocations:o.locations&&o.locations.length>1,locationCount:o.locations?o.locations.length:0,onRefinementClick:function(e,t){var n,r=t?Number(t):Number(e);isNaN(r)||(null==(n=v.menu)?void 0:n["specialties.id"])!==String(r)&&(l(String(r)),window.scrollTo({top:0,behavior:"smooth"}))},practiceNames:Array.isArray(o.practices)?o.practices.map(function(e){var t;return null==(t=null==e?void 0:e.name)?void 0:t.trim()}).filter(function(e){return"string"==typeof e&&e.length>0}):[]};return(0,r.jsx)(K.v,Q({},_))},et=n(65053),en=function(){return(en=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},er=function(e,t,n){if(n||2==arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};function ei(e,t){void 0===t&&(t=250);var n=(0,i.useRef)(null);return(0,i.useMemo)(function(){return function(r){n.current&&clearTimeout(n.current),n.current=setTimeout(function(){n.current=null,e(r)},t)}},[e,t])}var ea=function(e){var t=e.children,n=(0,et.J0)().addMiddlewares,a=(0,i.useRef)(null);return(0,i.useEffect)(function(){return n(function(){return{onStateChange:function(){var e=document.body.classList.contains("filtering"),t=document.activeElement,n=(null==t?void 0:t.tagName)==="INPUT"&&((null==t?void 0:t.getAttribute("type"))==="search"||(null==t?void 0:t.closest(".DocNameAutocomplete"))||(null==t?void 0:t.closest(".location-dropdown"))),r=(null==t?void 0:t.closest("[data-doctor-name-autocomplete]"))!==null,i=(null==t?void 0:t.closest(".location-dropdown"))!==null;e||n||r||i||window.scrollTo({top:0,behavior:"smooth"})}}})},[n]),(0,r.jsx)("div",{ref:a,className:"ais-ScrollTo",children:t})},eo=function(){var e=(0,et.J3)().nbHits,t=(0,c.qB)(),n=null==t?void 0:t.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_DOCTORS_FOUND),i=null==t?void 0:t.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_RESULTS_MESSAGE);return(0,r.jsxs)("div",{className:" lg:px-6",children:[(0,r.jsxs)("div",{className:"lg:text-3xl",children:[(0,r.jsx)("span",{className:"text-primary",children:e.toLocaleString()})," ",n]}),(0,r.jsx)("div",{className:"text-primary text-sm",children:i})]})},el=function(e){var t,n,i,a,o,l,s,u,d,f,p,h,v=e.locationDropdownRef,g=(0,et.J0)(),x=g.setUiState,b=g.indexUiState,y=(0,c.qB)(),N=null==y?void 0:y.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_CLEAR_ALL_FILTERS);return b.query&&""!==b.query.trim()||null!=(t=b.menu)&&t["specialties.id"]||null!=(n=b.refinementList)&&n.gender&&b.refinementList.gender.length>0||null!=(i=b.refinementList)&&i["languages.iso6391Code"]&&(null==(a=b.refinementList["languages.iso6391Code"])?void 0:a.length)>0||null!=(o=b.refinementList)&&o.languages&&b.refinementList.languages.length>0||null!=(l=b.refinementList)&&l["specialties.patientGroup"]&&(null==(s=b.refinementList)?void 0:s["specialties.patientGroup"].length)>0||null!=(u=b.refinementList)&&u.isAppProvider&&b.refinementList.isAppProvider.length>0||(null==(d=b.toggle)?void 0:d.isPrimaryCareProvider)===!0||(null==(f=b.toggle)?void 0:f[m])===!0||(null==(p=b.toggle)?void 0:p.isEmployed)===!0||null!=(h=b.configure)&&h.aroundLatLng?(0,r.jsxs)("button",{className:"inline-flex items-center justify-center px-3 py-1.5 text-neutral-40 border border-neutral-60 rounded text-sm hover:text-neutral-20 hover:border-neutral-40 transition-colors bg-white",onClick:function(){v.current&&v.current.clearLocation();var e="idx-provider";x(function(t){var n,r,i=t[e]||{},a=en({},i.configure||{});return delete a.aroundLatLng,delete a.aroundRadius,delete a.minimumAroun
1dRadius,en(en({},t),((n={})[e]=en(en({},i),{query:"",menu:{"specialties.id":""},refinementList:{gender:[],"languages.iso6391Code":[],languages:[],"specialties.patientGroup":[],isAppProvider:[]},toggle:((r={isPrimaryCareProvider:!1})[m]=!1,r.isEmployed=!1,r),page:1,hitsPerPage:i.hitsPerPage||10,sortBy:e,configure:a}),n))})},"aria-label":"Clear all filters",children:[N,(0,r.jsx)("svg",{className:"ml-1.5 w-4 h-4",viewBox:"0 0 20 20",fill:"currentColor",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})]}):null},ec=function(){var e=(0,c.qB)(),t=null==e?void 0:e.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_PAGE_SIZE_LABEL),n=(0,et.mD)({items:[{label:"5",value:5},{label:"10",value:10,default:!0},{label:"15",value:15},{label:"20",value:20}]}).refine,i=(0,et.J0)().indexUiState.hitsPerPage||10,a=(0,et.J3)().nbHits;return(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center relative",children:[(0,r.jsxs)("button",{className:"bg-primary text-white px-4 py-1.5 min-h-[44px] rounded-md font-medium text-sm flex items-center whitespace-nowrap min-w-[120px] justify-between","aria-label":"".concat(t,": ").concat(i),children:[t,": ",i," ",(0,r.jsx)("span",{className:"ml-2 text-xs",children:"▼"})]}),(0,r.jsxs)("select",{id:"hitsPerPage",value:i,onChange:function(e){n(parseInt(e.target.value,10))},className:"opacity-0 absolute top-0 left-0 w-full h-full cursor-pointer","aria-label":"Select page size",children:[(0,r.jsx)("option",{className:"bg-neutral-50",value:"5",children:"5"}),(0,r.jsx)("option",{className:"bg-neutral-50",value:"10",children:"10"}),(0,r.jsx)("option",{className:"bg-neutral-50",value:"15",children:"15"}),(0,r.jsx)("option",{className:"bg-neutral-50",value:"20",children:"20"})]})]}),(0,r.jsxs)("span",{className:"text-neutral-40",children:["of ",a.toLocaleString()]})]})},es=function(e){var t=e.attribute,n=e.labels,a=(0,et.Jq)({attribute:t}),o=a.items,l=ei(a.refine),c=(0,i.useMemo)(function(){return er([],o,!0).map(function(e){return en(en({},e),{label:(null==n?void 0:n[e.value])||e.label})}).sort(function(e,t){return e.label.localeCompare(t.label)})},[o,n]);return(0,r.jsx)("ul",{className:"oh-list-reset list-none flex",children:c.map(function(e){return(0,r.jsx)("li",{className:"w-1/2",children:(0,r.jsxs)("label",{className:"flex items-center min-h-[44px] text-sm cursor-pointer",children:[(0,r.jsx)("input",{type:"checkbox",checked:e.isRefined,onChange:function(){return l(e.value)},className:"tap-target mr-3 appearance-none w-4 h-4 border-2 bg-white relative checked:border-primary cursor-pointer before:content-[''] checked:before:absolute checked:before:w-[5px] checked:before:h-[10px] checked:before:border-r-2 checked:before:border-b-2 checked:before:border-primary checked:before:top-[1px] checked:before:left-[5px] checked:before:rotate-45"}),(0,r.jsx)("span",{children:e.label})]})},e.value)})})},eu=function(){var e,t=(0,c.qB)(),n=(0,et.Jq)({attribute:"languages"}),a=(0,et.Jq)({attribute:"languages.iso6391Code"}),o=(null==(e=a.items)?void 0:e.length)>0?a:n,l=o.items,s=ei(o.refine),u=(0,i.useMemo)(function(){return null==l?void 0:l.map(function(e){return en(en({},e),{label:(null==t?void 0:t.getDictionaryValue("hub.Languages.ISO639_1_Code.".concat(e.value)))||e.label})}).sort(function(e,t){return e.label.localeCompare(t.label)})},[l,t]);return(0,r.jsx)("ul",{className:"oh-list-reset grid grid-cols-2 gap-y-2 gap-x-4 list-none",children:u.map(function(e){return(0,r.jsx)("li",{children:(0,r.jsxs)("label",{className:"flex items-center min-h-[44px] text-sm cursor-pointer max-w-full",children:[(0,r.jsx)("input",{type:"checkbox",checked:e.isRefined,onChange:function(){return s(e.value)},className:"tap-target mr-3 flex-shrink-0 appearance-none w-4 h-4 border-2 border-neutral-50 bg-white relative checked:border-primary cursor-pointer before:content-[''] checked:before:absolute checked:before:w-[5px] checked:before:h-[10px] checked:before:border-r-2 checked:before:border-b-2 checked:before:border-primary checked:before:top-[1px] checked:before:left-[5px] checked:before:rotate-45"}),(0,r.jsx)("span",{className:"truncate max-w-[80%]",children:e.label})]})},e.value)})})},ed=function(){var e,t=(0,i.useState)(!1),n=t[0],a=t[1],o=(0,i.useRef)(null),l="idx-provider",s=(0,c.qB)(),u=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_SORT_BY_LABEL),d=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_DISTANCE_LABEL),f=(0,et.lY)({items:[{label:"A to Z",value:l},{label:"Z to A",value:"".concat(l,"_lastName_desc")},{label:"".concat(d),value:"".concat(l,"_distance")}]}),p=f.refine,m=f.currentRefinement,h=!!(null==(e=(0,et.J0)().indexUiState.configure)?void 0:e.aroundLatLng);return(0,i.useEffect)(function(){var e=function(e){o.current&&!o.current.contains(e.target)&&a(!1)};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[]),(0,r.jsxs)("div",{className:"relative inline-block",ref:o,children:[(0,r.jsxs)("button",{className:"bg-[#C84D1D] text-white px-4 py-2 min-h-[44px] rounded-md appearance-none cursor-pointer flex items-center whitespace-nowrap gap-2 min-w-[180px]",onClick:function(){return a(!n)},"aria-expanded":n,"aria-haspopup":"listbox",children:[(0,r.jsx)("span",{className:"flex-grow text-left",children:function(){var e="idx-provider";switch(m){case e:return"".concat(u,": A to Z");case"".concat(e,"_lastName_desc"):return"".concat(u,": Z to A");case"".concat(e,"_distance"):return"".concat(u,": ").concat(d);default:return"".concat(u,": A to Z")}}()}),(0,r.jsx)("span",{className:"text-xs",children:"▼"})]}),n&&(0,r.jsx)("div",{className:"absolute z-50 w-full bg-white border border-neutral-80 rounded-md shadow-lg",children:(0,r.jsxs)("ul",{className:"oh-list-reset list-none p-0 bg-[#f7f7f7]",role:"listbox",children:[(0,r.jsx)("li",{className:"px-2 py-1 min-h-[44px] flex items-center cursor-pointer whitespace-nowrap text-sm leading-[1.5] font-medium ".concat(m===l?"bg-[#c2c2c2]":""),onClick:function(){p(l),a(!1)},role:"option","aria-selected":m===l,children:"A to Z"}),(0,r.jsx)("li",{className:"px-2 py-1 min-h-[44px] flex items-center cursor-pointer whitespace-nowrap text-sm leading-[1.5] font-medium ".concat(m==="".concat(l,"_lastName_desc")?"bg-[#c2c2c2]":""),onClick:function(){p("".concat(l,"_lastName_desc")),a(!1)},role:"option","aria-selected":m==="".concat(l,"_lastName_desc"),children:"Z to A"}),h&&(0,r.jsx)("li",{className:"px-2 py-1 min-h-[44px] flex items-center cursor-pointer whitespace-nowrap text-sm leading-[1.5] font-medium ".concat(m==="".concat(l,"_distance")?"bg-[#c2c2c2]":""),onClick:function(){p("".concat(l,"_distance")),a(!1)},role:"option","aria-selected":m==="".concat(l,"_distance"),children:"".concat(d)})]})})]})},ef=function(e){var t=e.specialtyLabel,n=e.locationLabel,r=(0,et.J0)().indexUiState,a=(0,et.J3)().nbHits,o=(0,c.qB)(),l=(0,i.useRef)(null);return(0,i.useEffect)(function(){var e,i,c,s,d,f,p,h,v={M:(null==o?void 0:o.getDictionaryValue("hub.Gender.M"))||"Male",F:(null==o?void 0:o.getDictionaryValue("hub.Gender.F"))||"Female"},g={Adult:(null==o?void 0:o.getDictionaryValue("hub.PatientGroup.Adult"))||"Adult",Pediatric:(null==o?void 0:o.getDictionaryValue("hub.PatientGroup.Pediatric"))||"Pediatric"}
1,x=r.query||"",b={searchTerm:x,resultsCount:a,location:n||"",specialty:t||"",doctorName:x,doctorGender:((null==(e=r.refinementList)?void 0:e.gender)||[]).map(function(e){return v[e]||e}).join(", "),doctorType:((null==(i=r.refinementList)?void 0:i.isAppProvider)||[]).map(function(e){return"true"===e?"Advance Practice Provider":"Physician"}).join(", "),patientGroup:((null==(c=r.refinementList)?void 0:c["specialties.patientGroup"])||[]).map(function(e){return g[e]||e}).join(", "),doctorLanguage:((null==(d=null==(s=r.refinementList)?void 0:s["languages.iso6391Code"])?void 0:d.length)?r.refinementList["languages.iso6391Code"]:(null==(f=r.refinementList)?void 0:f.languages)||[]).map(function(e){return(null==o?void 0:o.getDictionaryValue("hub.Languages.ISO639_1_Code.".concat(e)))||e}).join(", "),onlineScheduling:!!(null==(p=r.toggle)?void 0:p[m]),medicalGroup:!!(null==(h=r.toggle)?void 0:h.isEmployed)},y=JSON.stringify(b);y!==l.current&&(l.current=y,(0,u.z2)(b))},[r,a,t,n,o]),null},ep=function(){return(ep=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},em=function(e,t){var n,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(c){var s=[l,c];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}},eh=(0,h.Or)();function ev(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}var eg=function(e){var t=e.locationDropdownRef,n=e.onLocationChange,i=e.onSpecialtyChange,a=e.isDCHSite,l=e.hasMedicalGroupFilterActive,s=(0,c.qB)(),u=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_SPECIALTY_HEADING),d=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_DOCTOR_INFORMATION),f=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_DOCTOR_NAME),p=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_GENDER),h=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_LANGUAGE),v=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_ONLINE_SCHEDULING_HEADING),g=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_ONLINE_SCHEDULING_LABEL),x=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_MEDICAL_GROUP_HEADING),b=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_MEDICAL_GROUP_LABEL),y=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_LOCATION_HEADING),N=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_PRIMARY_CARE_LABEL),I=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_PATIENT_GROUP_HEADING),_=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_DOCTOR_TYPE_HEADING),A=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_ADVANCE_PRACTICE_PROVIDER_LABEL),j=null==s?void 0:s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_PHYSICIAN_LABEL),w={M:null==s?void 0:s.getDictionaryValue("hub.Gender.M"),F:null==s?void 0:s.getDictionaryValue("hub.Gender.F")},D={Adult:null==s?void 0:s.getDictionaryValue("hub.PatientGroup.Adult"),Pediatric:null==s?void 0:s.getDictionaryValue("hub.PatientGroup.Pediatric")};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"flex justify-end mb-4",children:(0,r.jsx)(el,{locationDropdownRef:t})}),(0,r.jsx)("div",{children:(0,r.jsx)("h3",{className:"text-primary font-medium text-lg",children:y})}),(0,r.jsx)("div",{className:"pt-5 pb-5 pl-2 pr-2 border-t-[1px]",children:(0,r.jsx)(Z,{ref:t,onLocationChange:n})}),(0,r.jsx)("div",{children:(0,r.jsx)("h3",{className:"text-primary font-medium text-lg",children:u})}),(0,r.jsx)("div",{className:"pt-5 pb-5 pl-2 pr-2 border-t-[1px]",children:(0,r.jsx)(T,{onSpecialtyChange:i})}),(0,r.jsx)("div",{className:"pl-2 pr-2",children:(0,r.jsx)(o.KO,{attribute:"isPrimaryCareProvider",label:N,on:!0,classNames:{root:"flex items-center mb-2",label:"flex items-center min-h-[44px] text-sm cursor-pointer",checkbox:"tap-target mr-3 flex-shrink-0 appearance-none w-4 h-4 border-2 border-neutral-50 bg-white relative checked:border-primary curs
1or-pointer before:content-[''] checked:before:absolute checked:before:w-[5px] checked:before:h-[10px] checked:before:border-r-2 checked:before:border-b-2 checked:before:border-primary checked:before:top-[1px] checked:before:left-[5px] checked:before:rotate-45"}})}),(0,r.jsx)("h3",{className:"text-primary font-medium text-lg",children:d}),(0,r.jsxs)("div",{className:"pt-5 pb-5 pl-2 pr-2 border-t-[1px]",children:[(0,r.jsx)("h4",{className:" text-neutral-20 mb-3 mt-3 text-base",children:f}),(0,r.jsx)(M,{})]}),(0,r.jsxs)("div",{className:"border-t-[1px] pt-5 pb-5 pl-2 pr-2",children:[(0,r.jsx)("h4",{className:" text-neutral-20 mb-3 mt-3 text-base",children:p}),(0,r.jsx)(es,{attribute:"gender",labels:w})]}),!a&&(0,r.jsxs)("div",{className:"border-t-[1px] pt-5 pb-5 pl-2 pr-2",children:[(0,r.jsx)("h4",{className:" text-neutral-20 mb-3 mt-3 text-base",children:_}),(0,r.jsx)(es,{attribute:"isAppProvider",labels:{true:A,false:j}})]}),(0,r.jsxs)("div",{className:"border-t-[1px] pt-5 pb-5 pl-2 pr-2",children:[(0,r.jsx)("h4",{className:" text-neutral-20 mb-3 mt-3 text-base",children:I}),(0,r.jsx)(es,{attribute:"specialties.patientGroup",labels:D})]}),(0,r.jsxs)("div",{className:"border-t-[1px] pt-5 pb-5 pl-2 pr-2",children:[(0,r.jsx)("h4",{className:"text-neutral-20 mb-3 mt-3 text-base",children:h}),(0,r.jsx)(eu,{})]}),!a&&(0,r.jsxs)("div",{className:"border-t-[1px] pt-5 pb-5 pl-2 pr-2",children:[(0,r.jsx)("h4",{className:"text-neutral-20 mb-3 mt-3 text-base",children:v}),(0,r.jsx)(o.KO,{attribute:m,label:g,on:!0,classNames:{root:"flex items-center mb-2",label:"flex items-center min-h-[44px] text-sm cursor-pointer",checkbox:"tap-target mr-3 flex-shrink-0 appearance-none w-4 h-4 border-2 border-neutral-50 bg-white relative checked:border-primary cursor-pointer before:content-[''] checked:before:absolute checked:before:w-[5px] checked:before:h-[10px] checked:before:border-r-2 checked:before:border-b-2 checked:before:border-primary checked:before:top-[1px] checked:before:left-[5px] checked:before:rotate-45"}})]}),!a&&!l&&(0,r.jsxs)("div",{className:"border-t-[1px] pt-5 pb-5 pl-2 pr-2",children:[(0,r.jsx)("h4",{className:"text-neutral-20 mb-3 mt-3 text-base",children:x}),(0,r.jsx)(o.KO,{attribute:"isEmployed",label:b,on:!0,classNames:{root:"flex items-center mb-2",label:"flex items-center min-h-[44px] text-sm cursor-pointer",checkbox:"tap-target mr-3 flex-shrink-0 appearance-none w-4 h-4 border-2 bg-white relative checked:border-primary cursor-pointer before:content-[''] checked:before:absolute checked:before:w-[5px] checked:before:h-[10px] checked:before:border-r-2 checked:before:border-b-2 checked:before:border-primary checked:before:top-[1px] checked:before:left-[5px] checked:before:rotate-45"}})]})]})},ex=function(){var e,t=null==(e=(0,o.J0)().indexUiState.configure)?void 0:e.aroundLatLng,n=(0,i.useMemo)(function(){return(0,u.dG)()},[]);return(0,r.jsx)(ea,{children:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Zf,ep({distinct:!0,getRankingInfo:!0,clickAnalytics:!0,userToken:n},t?{aroundLatLng:t,aroundRadius:"all",minimumAroundRadius:1}:{})),(0,r.jsxs)("div",{className:"flex justify-between mb-4 flex-col lg:flex-row gap-3 lg:gap-0",children:[(0,r.jsx)(eo,{}),(0,r.jsx)("div",{className:"relative",children:(0,r.jsx)(ed,{})})]}),(0,r.jsx)(o.fs,{hitComponent:ee,classNames:{list:"space-y-4 border-b-[1px] border-neutral-40"}}),(0,r.jsxs)("div",{className:"mt-8 flex flex-col lg:flex-row lg:justify-between lg:items-center gap-4 lg:gap-0",children:[(0,r.jsx)("div",{className:"flex justify-center lg:justify-start",children:(0,r.jsx)(o.dK,{classNames:{root:"flex items-center",list:"flex items-center",item:"flex items-center justify-center text-sm",link:"px-3 py-2 border [32px] h-[32px] flex items-center justify-center",selectedItem:"bg-neutral-50 font-medium",disabledItem:"bg-neutral-70 cursor-not-allowed",pageItem:"",previousPageItem:"",nextPageItem:"",firstPageItem:"",lastPageItem:""},padding:2,showFirst:!0,showLast:!0,showPrevious:!0,showNext:!0})}),(0,r.jsx)("div",{className:"hidden lg:flex lg:justify-end",children:(0,r.jsx)(ec,{})})]})]})})},eb=function(e){var t,n,h,_=e.headline,w=e.className,D=e.isDCHSite,L=e.medicalGroupFilter,S=e.specialtyFilter,E=e.practiceFilter,P=e.programFilter,O=e.medicalStaffFilter,k=e.initialBuilderPageData,T=void 0===k?null:k,Y=(0,a.useRouter)(),F=(0,l.Et)(),G=(0,s.$)().data,V=ev(T)?T:ev(G)?G:null,H=ev(V),M=(0,i.useState)(!1),U=M[0],B=M[1],q=(0,i.useState)(!1),z=(q[0],q[1]),J=(0,i.useState)(function(){return H?V:null}),Z=J[0],K=J[1],$=(0,i.useState)(function(){return!H}),W=$[0],X=$[1],Q=(0,i.useRef)(null),ee=(0,i.useState)(null),et=ee[0],en=ee[1],er=(0,i.useState)(null),ei=er[0],ea=er[1],eo=(0,p.if)("foundation"),el=p.Z3[eo],ec=el===p.gu||eo===p.gu?null:el||null,es="idx-provider",eu=(0,c.qB)();(0,i.useEffect)(function(){z(!1);var e=setTimeout(function(){z(!0)},150);return function(){return clearTimeout(e)}}
1,[void 0===L?"":L,void 0===S?"":S,void 0===E?"":E,void 0===P?"":P,void 0===O?"":O,Z]),(0,i.useEffect)(function(){H&&K(V)},[H,V]),(0,i.useEffect)(function(){var e,t,n,r,i=!1,a=function(){i||X(!1)},o="075e4ed0a9de48768e88180a83fdac5e";return o&&(!H||F)?(e=void 0,t=void 0,n=void 0,r=function(){var e,t,n;return em(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,3,4]),e=window.location.pathname,l.cL.init(o),[4,Promise.race([l.cL.get("page",{url:e,options:{includeRefs:!0}}).promise(),new Promise(function(e,t){setTimeout(function(){t(Error("PhysicianFinder: Builder page fetch timed out"))},12e3)})])];case 1:return t=r.sent(),!i&&(null==t?void 0:t.data)&&K(t.data),[3,4];case 2:return(n=r.sent())instanceof Error&&n.message.includes("timed out"),[3,4];case 3:return a(),[7];case 4:return[2]}})},new(n||(n=Promise))(function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function l(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,l)}c((r=r.apply(e,t||[])).next())}),function(){i=!0}):void a()},[H,F]);var ed=(void 0===_?"":_)||(null==eu?void 0:eu.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_TITLE))||"Find a Doctor at Orlando Health",ep=null==eu?void 0:eu.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_EXPAND_ALL_FILTERS),eb=(0,i.useMemo)(function(){var e,t,n,r,i,a,o,l,c,s,u,d,f,p,m,h,v,g,x=ec?"regionalCareSites.id:".concat(ec," AND NOT metadata.hideFromSearch:true"):"NOT metadata.hideFromSearch:true",b=[],y=(null==(n=null==(t=null==(e=null==Z?void 0:Z.metadata)?void 0:e.specialties)?void 0:t[0])?void 0:n.toString())||"",N=(null==(a=null==(i=null==(r=null==Z?void 0:Z.metadata)?void 0:r.practices)?void 0:i[0])?void 0:a.toString())||"",I=(null==(c=null==(l=null==(o=null==Z?void 0:Z.metadata)?void 0:o.programs)?void 0:l[0])?void 0:c.toString())||"",_=(null==(d=null==(u=null==(s=null==Z?void 0:Z.metadata)?void 0:s.medicalGroups)?void 0:u[0])?void 0:d.toString())||"",A=(null==(m=null==(p=null==(f=null==Z?void 0:Z.metadata)?void 0:f.medicalStaffs)?void 0:p[0])?void 0:m.toString())||"",j=(null==(g=null==(v=null==(h=null==Z?void 0:Z.metadata)?void 0:h.providerGroups)?void 0:v[0])?void 0:g.toString())||"";return(_&&(b.push("medicalGroups.id:".concat(_)),b.push("isEmployed:true")),y&&b.push("specialties.id:".concat(y)),N&&b.push("practices.id:".concat(N)),I&&b.push("programs.id:".concat(I)),A&&b.push('medicalStaffs.name:"'.concat(A,'"')),j&&b.push("providerGroups.id:".concat(j)),b.length>0)?"".concat(x," AND ").concat(b.join(" AND ")):x},[Z,ec]);(0,i.useEffect)(function(){(0,u.b)(),(0,f.MU)()},[]);var ey=(0,u.Wp)(d.UP.PROVIDER,d.wT.PHYSICIAN),eN=(0,i.useMemo)(function(){var e;return e=null==eu?void 0:eu.getDictionaryValue,{specialtyIdToUrlValue:function(t){return A(t,e)},specialtyUrlValueToId:function(t){return j(t,e,es)}}},[eu,es]),eI=(0,i.useMemo)(function(){return{router:{read:function(){return N(window.location.search)},write:function(e){var t=new URL(window.location.href),n=t.searchParams;I(n,e);var r="".concat(t.pathname).concat(n.toString()?"?".concat(n):"").concat(t.hash);window.history.pushState(v(v({},window.history.state),{url:r}),"",r)},createURL:function(e){for(var t=new URLSearchParams(window.location.search),n=0;n<x.length;n++){var r=x[n];t.delete(r)}I(t,e);var i=t.toString();return i?"?".concat(i):""},onUpdate:function(e){var t=function(){e(N(window.location.search))};b.set(g,t),window.addEventListener("popstate",t)},dispose:function(){var e=b.get(g);e&&(window.removeEventListener("popstate",e),b.delete(g))}},stateMapping:{stateToRoute:function(e){var t,n,r,i,a,o,l,c,s,u,d,f,p,h,v=e[es]||{},g=(null==(t=v.configure)?void 0:t.aroundLatLng)||"",x=(null==(n=v.refinementList)?void 0:n["languages.iso6391Code"])||(null==(r=v.refinementList)?void 0:r.languages)||[],b=(null==(i=v.menu)?void 0:i["specialties.id"])||"",y=b?null!=(a=null==eN?void 0:eN.specialtyIdToUrlValue(b))?a:b:"";return{q:v.query||"",Specialty:y,PrimaryCare:(null==(o=v.toggle)?void 0:o.isPrimaryCareProvider)?"true":"",Gender:(null==(c=null==(l=v.refinementList)?void 0:l.gender)?void 0:c.join(","))||"",DoctorType:(null==(u=null==(s=v.refinementList)?void 0:s.isAppProvider)?void 0:u.join(","))||"",MedicalGroup:(null==(d=v.toggle)?void 0:d.isEmployed)?"true":"",OnlineScheduling:(null==(f=v.toggle)?void 0:f[m])?"true":"",Languages:x.join(",")||"",PatientGroup:(null==(h=null==(p=v.refinementList)?void 0:p["specialties.patientGroup"])?void 0:h.join(","))||"",Page:String(v.page||"1"),PageSize:v.hitsPerPage?String(v.hitsPerPage):"",SortBy:v.sortBy||"",aroundLatLng:g||""}},routeToState:function(e){var t,n,r,i=e.aroundLatLng?{aroundLatLng:e.aroundLatLng,aroundRadius:"all",minimumAroun
1dRadius:1,_geoloc:{lat:parseFloat(e.aroundLatLng.split(",")[0]),lng:parseFloat(e.aroundLatLng.split(",")[1])},configure:{aroundLatLng:e.aroundLatLng,aroundRadius:"all",minimumAroundRadius:1},sortBy:"".concat(es,"_distance")}:{sortBy:e.SortBy||es},a=e.Specialty||"",o=a?null!=(r=null==eN?void 0:eN.specialtyUrlValueToId(a))?r:/^\d+$/.test(a.trim())?a.trim():"":"";return(t={})[es]=v({query:e.q||"",menu:{"specialties.id":o},refinementList:v(v(v(v({},e.Gender?{gender:y(e.Gender)}:{}),e.DoctorType?{isAppProvider:y(e.DoctorType)}:{}),e.PatientGroup?{"specialties.patientGroup":y(e.PatientGroup)}:{}),e.Languages?{"languages.iso6391Code":y(e.Languages)}:{}),toggle:((n={isPrimaryCareProvider:"true"===e.PrimaryCare})[m]="true"===e.OnlineScheduling,n.isEmployed="true"===e.MedicalGroup,n),page:e.Page?parseInt(e.Page,10):1,hitsPerPage:e.PageSize?parseInt(e.PageSize,10):10},i),t}},cleanUrlOnDispose:!1}},[es,eN]),e_=(0,i.useMemo)(function(){if(Y.isReady){var e=function(e){for(var t={},n=0;n<x.length;n++){var r=x[n],i=e[r];"string"==typeof i&&i?t[r]=i:Array.isArray(i)&&i[0]&&(t[r]=i[0])}return t}(Y.query);if(0!==Object.keys(e).length)return eI.stateMapping.routeToState(e)}},[Y.isReady,Y.query,eI]),eA=!!(null==(h=null==(n=null==(t=null==Z?void 0:Z.metadata)?void 0:t.medicalGroups)?void 0:n[0])?void 0:h.toString());return(0,i.useEffect)(function(){if(!document.querySelector('script[src*="maps.googleapis.com"]')){var e=document.createElement("script");e.src="https://maps.googleapis.com/maps/api/js?key=".concat("AIzaSyBM44ZiR0sXaJYs04VXTcIn7aG0rFtOUe0","&libraries=places"),e.async=!0,e.defer=!0,e.onerror=function(e){},document.head.appendChild(e)}},[]),(0,r.jsx)("div",{className:"physician-finder min-h-screen ".concat(void 0===w?"":w),children:W?(0,r.jsx)("div",{className:"flex items-center justify-center min-h-[400px]",children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),(0,r.jsx)("p",{className:"text-neutral-40",children:"Loading..."})]})}):(0,r.jsxs)(o.GT,{searchClient:eh,indexName:es,routing:eI,initialUiState:e_,future:{preserveSharedStateOnUnmount:!0},insights:{onEvent:ey},children:[(0,r.jsx)(o.Zf,{filters:eb,getRankingInfo:!0}),(0,r.jsx)(R,{indexName:es,filters:eb}),(0,r.jsx)(C,{indexName:es}),(0,r.jsx)(ef,{specialtyLabel:et,locationLabel:ei}),(0,r.jsx)("div",{className:"bg-neutral-100 py-8 text-center",children:(0,r.jsx)("div",{className:"container mx-auto px-4",children:ed&&(0,r.jsx)("h1",{className:"text-3xl lg:text-4xl",children:ed})})}),(0,r.jsx)("div",{className:"container mx-auto p-4",children:(0,r.jsxs)("div",{className:"py-4 border-t-[1px] border-neutral-40",children:[(0,r.jsx)("div",{className:"lg:hidden mb-4",children:(0,r.jsxs)("button",{className:"flex items-center justify-between w-full px-4 py-3 mb-4 bg-primary text-white border-none rounded cursor-pointer transition-colors",onClick:function(){B(!U)},"aria-expanded":U,children:[(0,r.jsx)("span",{children:ep}),(0,r.jsx)("span",{className:"transform transition-transform duration-300 ".concat(U?"rotate-180":""),children:"▼"})]})}),(0,r.jsxs)("div",{className:"flex flex-col lg:flex-row lg:mb-[40px]",children:[(0,r.jsx)("div",{className:"".concat(U?"block":"hidden"," lg:block lg:w-[30%] lg:pr-4 mb-6 lg:mb-0"),children:(0,r.jsx)(eg,{locationDropdownRef:Q,onLocationChange:ea,onSpecialtyChange:en,isDCHSite:void 0!==D&&D,hasMedicalGroupFilterActive:eA})}),(0,r.jsx)("div",{className:"w-full lg:w-[calc(70%-22px)] lg:pl-5 lg:border-l lg:border-neutral-40 pt-[25px]",children:(0,r.jsx)(ex,{})})]})]})})]})})};let ey=eb},70376:(e,t,n)=>{n.d(t,{EF:()=>s,Or:()=>u,mE:()=>a,s1:()=>l,zL:()=>o});var r=n(71315),i=n(94844);function a(e){return(0,r.Zl)(i.A,e)}var o=function(e){return e.specialties&&e.specialties.length>0?e.specialties[0].name:""},l=function(e,t){if(e.specialties&&e.specialties.length>0){var n=String(e.specialties[0].id);return(null==t?void 0:t.getDictionaryValue("hub.Specialties.Id.".concat(n)))||n}return""},c=new Set(["58"]),s=function(e){var t=null==e?void 0:e("physicianFinder.primaryCareSpecialtyIds");if(!t)return c;var n=t.split(",").map(function(e){return e.trim()}
1).filter(Boolean);return n.length>0?new Set(n):c},u=function(){return n(87877).Z}}}]);
2//# sourceMappingURL=buildkit-95e3447d-33d25e73b6c49a65.js.map

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.