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:"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:()=>ey,A:()=>eN});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","HospitalBased","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),L=function(){return(L=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)},D=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 D(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 L(L({},n),((r={})[t]=L(L({},n[t]),{menu:L(L({},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,l=e.onSpecialtyChange,s=(0,i.useState)(!1),f=s[0],m=s[1],v=(0,i.useState)(""),g=v[0],x=v[1],b=(0,i.useRef)(null),y=(0,i.useRef)(null);(0,a.useRouter)();var N=(0,c.qB)(),I=null==N?void 0:N.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_SPECIALTY_PLACEHOLDER),_=null==N?void 0:N.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_NO_SPECIALTIES_FOUND),A=(0,E.b)({attribute:k,limit:1e3,sortBy:["name:asc"]}),j=A.refine,w=A.items,L=(0,E.J0)().indexUiState,D=!!(null==(t=L.toggle)?void 0:t.isPrimaryCareProvider),C=!(0,p.$c)(null==N?void 0:N.regionalCareSite)&&!!(null==(n=L.toggle)?void 0:n.isHospitalBased),S=(0,i.useMemo)(function(){var e=null==N?void 0:N.getDictionaryValue,t=new Set;return D&&(0,h.EF)(e).forEach(function(e){return t.add(e)}),C&&(0,h.sc)(e).forEach(function(e){return t.add(e)}),t.size>0?t:null},[D,C,N]),R=w.map(function(e){var t;return O(O({},e),{label:(t=e.value,(null==N?void 0:N.getDictionaryValue("hub.Specialties.Id.".concat(t)))||t)})}).filter(function(e){return!S||S.has(e.value)}).sort(function(e,t){return e.label.localeCompare(t.label)});(0,i.useEffect)(function(){if(S){var e=w.find(function(e){return e.isRefined});e&&!S.has(e.value)&&j(e.value)}},[S,w,j]);var T=(0,i.useMemo)(function(){return""===g.trim()?R:R.filter(function(e){return e.label.toLowerCase().includes(g.toLowerCase())})},[R,g]),Y=function(){m(!f),f&&x("")};(0,i.useEffect)(function(){var e=function(e){y.current&&!y.current.contains(e.target)&&(m(!1),x(""))};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[]),(0,i.useEffect)(function(){f&&b.current&&b.current.focus()},[f]);var F=function(e){j(e),(0,u.Ie)(d.UP.PROVIDER,k,e),m(!1),x("")},G=(null==(o=R.find(function(e){return e.isRefined}))?void 0:o.label)||"";return(0,i.useEffect)(function(){null==l||l(G||null)},[G,l]),(0,r.jsxs)("div",{className:"specialty-dropdown relative",ref:y,children:[(0,r.jsxs)("div",{className:"relative border border-neutral-60 rounded-lg overflow-hidden ".concat(f?"rounded-b-none":""),onClick:function(){return!f&&m(!0)},children:[(0,r.jsx)("input",{ref:b,type:"text",className:"w-full px-4 py-3 outline-none ".concat(G?"placeholder:text-neutral-20":"placeholder:text-neutral-40"," text-neutral-20 bg-neutral-90 text-sm"),placeholder:G||I,value:f?g:"",onChange:function(e){x(e.target.value),f||m(!0)},onFocus:function(){return m(!0)}}),G&&!f&&(0,r.jsx)("button",{type:"button",onClick:function(e){e.stopPropagation(),j(""),x("")},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(),Y()},children:(0,r.jsx)(P.Icon,{icon:"chevron-down",size:"xs",className:"transition-transform duration-300 text-neutral-40 ".concat(f?"rotate-180":"")})})]}),f&&(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===T.length?(0,r.jsx)("div",{className:"p-2 text-sm text-neutral-40 text-center",children:_}):(0,r.jsx)("ul",{className:"oh-list-reset space-y-1 list-none bg-neutral-70 p-0",children:T.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 F(e.value)},"aria-label":e.label,children:e.label})},e.value)})})})})]})},Y=n(29864),F=n(88227),G=n.n(F),H=n(32542),V=n.n(H),B=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"
1:!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)(V(),{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)})})})]})},M=n(37257),U=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)},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),L=(0,M.J0)(),D=L.setUiState,C=L.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,U.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,U.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,U.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",D(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({}
1,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";D(function(t){var n,r=t[e]||{},i=q({},r.configure||{});return delete i.aroundLatLng,delete i.aroundRadius,delete i.minimumAroundRadius,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)(M.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,U.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]})]})}),$=n(9901),W=n(56021),K=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,K.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,W.Kt)(o.isEmployed,null==(t=o.myChart)?void 0:t.hasOnlineSc
1heduling,o.hasOnlineScheduling),y=(0,W.Wq)(s.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_USE_MYCHART_REQUEST_APPOINTMENT_FLOW)),N=(0,W.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",hasOnlineScheduling: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)($.v,Q({},_))},et=n(34930),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,g=e.locationDropdownRef,x=(0,et.J0)(),b=x.setUiState,y=x.indexUiState,N=(0,c.qB)(),I=null==N?void 0:N.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_CLEAR_ALL_FILTERS),_=!(y.query&&""!==y.query.trim()||null!=(t=y.menu)&&t["specialties.id"]||null!=(n=y.refinementList)&&n.gender&&y.refinementList.gender.length>0||null!=(i=y.refinementList)&&i["languages.iso6391Code"]&&(null==(a=y.refinementList["languages.iso6391Code"])?void 0:a.length)>0||null!=(o=y.refinementList)&&o.languages&&y.refinementList.languages.length>0||null!=(l=y.refinementList)&&l["specialties.patientGroup"]&&(null==(s=y.refinementList)?void 0:s["specialties.patientGroup"].length)>0||null!=(u=y.refinementList)&&u.isAppProvider&&y.refinementList.isAppProvider.length>0||(null==(d=y.toggle)?void 0:d.isPrimaryCareProvider)===!0||(null==(f=y.toggle)?void 0:f.isHospitalBased)===!0||(null==(p=y.toggle)?void 0:p[m])===!0||(null==(h=y.toggle)?void 0:h.isEmployed)===!0||null!=(v=y.configure)&&v.aroundLatLng);return(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".concat(_?" inv
1isible":""),onClick:function(){g.current&&g.current.clearLocation();var e="idx-provider";b(function(t){var n,r,i=t[e]||{},a=en({},i.configure||{});return delete a.aroundLatLng,delete a.aroundRadius,delete a.minimumAroundRadius,en(en({},t),((n={})[e]=en(en({},i),{query:"",menu:{"specialties.id":""},refinementList:{gender:[],"languages.iso6391Code":[],languages:[],"specialties.patientGroup":[],isAppProvider:[]},toggle:((r={isPrimaryCareProvider:!1,isHospitalBased:!1})[m]=!1,r.isEmployed=!1,r),page:1,hitsPerPage:i.hitsPerPage||10,sortBy:e,configure:a}),n))})},disabled:_,"aria-hidden":_||void 0,"aria-label":"Clear all filters",children:[I,(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"})})]})},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,n=e.attribute,i=e.label,a=e.exclusiveWith,o=(0,et.Bu)({attribute:n,on:!0},{$$widgetType:"ais.toggleRefinement"}),l=o.value,c=o.refine,s=(0,et.J0)().indexUiState,u=!l.isRefined&&!!(a&&(null==(t=s.toggle)?void 0:t[a]));return(0,r.jsx)("div",{className:"flex items-center mb-2",children:(0,r.jsxs)("label",{className:"flex items-center min-h-[44px] text-sm ".concat(u?"text-neutral-50 cursor-not-allowed":"cursor-pointer"),children:[(0,r.jsx)("input",{type:"checkbox",checked:l.isRefined,disabled:u,onChange:function(){return c({isRefined:l.isRefined})},className:"".concat("tap-target mr-3 flex-shrink-0 appearance-none w-4 h-4 border-2 relative 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:top-[1px] checked:before:left-[5px] checked:before:rotate-45"," ").concat(u?"border-neutral-70 bg-neutral-80 cursor-not-allowed":"border-neutral-50 bg-white cursor-pointer checked:border-primary checked:before:border-primary")}),(0,r.jsx)("span",{children:i})]})})},eu=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 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)("span",{children:e.label})]})},e.value)})})},ed=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)})})},ef=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)})]})})]})},ep=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},em=function(){return(em=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)},eh=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}}}},ev=(0,h.Or)();function eg(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}var ex=function(e){var t=e.locationDropdownRef,n=e.onLocationChange,i=e.onSpecialtyChange,a=e.hasMedicalGroupFilterActive,l=(0,c.qB)(),s=(0,p.$c)(null==l?void 0:l.regionalCareSite),u=null==l?void 0:l.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_SPECIALTY_HEADING),d=null==l?void 0:l.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_DOCTOR_INFORMATION),f=null==l?void 0:l.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_DOCTOR_NAME),h=null==l?void 0:l.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_GENDER),v=null==l?void 0:l.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_LANGUAGE),g=null==l?void 0:l.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_ONLINE_SCHEDULING_HEADING),x=null==l?void 0:l.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_ONLINE_SCHEDULING_LABEL),b=null==l?void 0:l.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_MEDICAL_GROUP_HEADING),y=null==l?void 0:l.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_MEDICAL_GROUP_LABEL),N=null==l?void 0:l.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_LOCATION_HEADING),I=null==l?void 0:l.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_PRIMARY_CARE_LABEL),_=null==l?void 0:l.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_HOSPITAL_BASED_LABEL),A=null==l?void 0:l.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_PATIENT_GROUP_HEADING),j=null==l?void 0:l.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_DOCTOR_TYPE_HEADING),w=null==l?void 0:l.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_ADVANCE_PRACTICE_PROVIDER_LABEL),L=null==l?void 0:l.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_PHYSICIAN_LABEL),D={M:null==l?void 0:l.getDictionaryValue("hub.Gender.M"),F:null==l?void 0:l.getDictionaryValue("hub.Gender.F")},C={Adult:null==l?void 0:l.getDictionaryValue("hub.PatientGroup.Adult"),Pediatric:null==l?void 0:l.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:N})}),(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.jsxs)("div",{className:"flex flex-wrap items-center gap-x-6 pl-2 pr-2",children:[(0,r.jsx)(es,{attribute:"isPrimaryCareProvider",label:I,exclusiveWith:s?void 0:"isHospitalBased"}),!s&&(0,r.jsx)(es,{attribute:"isHospitalBased",label:_,exclusiveWith:"isPrimaryCareProvider"})]}),(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)(B,{})]}),(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,{attribute:"gender",labels:D})]}),!s&&(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:j}),(0,r.jsx)(eu,{attribute:"isAppProvider",labels:{true:w,false: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:A}),(0,r.jsx)(eu,{attribute:"specialties.patientGroup",labels:C})]}),(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)(ed,{})]}),!s&&(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:g}),(0,r.jsx)(o.KO,{attribute:m,label:x,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"}})]}),!s&&!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:b}),(0,r.jsx)(o.KO,{attribute:"isEmployed",label:y,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"}})]})]})},eb=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,em({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)(ef,{})})]}),(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,{})})]})]})})},ey=function(e){var t,n,h,_=e.headline,w=e.className,L=e.medicalGroupFilter,D=e.specialtyFilter,S=e.practiceFilter,E=e.programFilter,P=e.medicalStaffFilter,O=e.initialBuilderPageData,k=void 0===O?null:O,T=(0,a.useRouter)(),Y=(0,l.Et)(),F=(0,s.$)().data,G=eg(k)?k:eg(F)?F:null,H=eg(G),V=(0,i.useState)(!1),B=V[0],M=V[1],U=(0,i.useState)(!1),q=(U[0],U[1]),z=(0,i.useState)(function(){return H?G:null}),J=z[0],Z=z[1],$=(0,i.useState)(function(){return!H}),W=$[0],K=$[1],X=(0,i.useRef)(null),Q=(0,i.useState)(null),ee=Q[0],et=Q[1],en=(0,i.useState)(null),er=en[0],ei=en[1],ea=(0,p.if)("dch"),eo=p.Z3[ea],el=eo===p.gu||ea===p.gu?null:eo||null,ec="idx-provider",es=(0,c.qB)();(0,i.useEffect)(function(){q(!1);var e=setTimeout(function(){q(!0)},150);return function(){return clearTimeout(e)}},[void 0===L?"":L,void 0===D?"":D,void 0===S?"":S,void 0===E?"":E,void 0===P?"":P,J]),(0,i.useEffect)(function(){H&&Z(G)},[H,G]),(0,i.useEffect)(function(){var e,t,n,r,i=!1,a=function(){i||K(!1)},o="9182776b5d7b46f48b6f268d038ea68e";return o&&(!H||Y)?(e=void 0,t=void 0,n=void 0,r=function(){var e,t,n;return eh(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)&&Z(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,Y]);var eu=(void 0===_?"":_)||(null==es?void 0:es.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_TITLE))||"Find a Doctor at Orlando Health",ed=null==es?void 0:es.getDictionaryValue(c._A.DICTIONARY_PHYSICIAN_FINDER_EXPAND_ALL_FILTERS),ef=(0,i.useMemo)(function(){var e,t,n,r,i,a,o,l,c,s,u,d,f,p,m,h,v,g,x=el?"regionalCareSites.id:".concat(el," AND NOT metadata.hideFromSearch:true"):"NOT metadata.hideFromSearch:true",b=[],y=(null==(n=null==(t=null==(e=null==J?void 0:J.metadata)?void 0:e.specialties)?void 0:t[0])?void 0:n.toString())||"",N=(null==(a=null==(i=null==(r=null==J?void 0:J.metadata)?void 0:r.practices)?void 0:i[0])?void 0:a.toString())||"",I=(null==(c=null==(l=null==(o=null==J?void 0:J.metadata)?void 0:o.programs)?void 0:l[0])?void 0:c.toString())||"",_=(null==(d=null==(u=null==(s=null==J?void 0:J.metadata)?void 0:s.medicalGroups)?void 0:u[0])?void 0:d.toString())||"",A=(null==(m=null==(p=null==(f=null==J?void 0:J.metadata)?void 0:f.medicalStaffs)?void 0:p[0])?void 0:m.toString())||"",j=(null==(g=null==(v=null==(h=null==J?void 0:J.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
1)),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},[J,el]);(0,i.useEffect)(function(){(0,u.b)(),(0,f.MU)()},[]);var em=(0,u.Wp)(d.UP.PROVIDER,d.wT.PHYSICIAN),ey=(0,i.useMemo)(function(){var e;return e=null==es?void 0:es.getDictionaryValue,{specialtyIdToUrlValue:function(t){return A(t,e)},specialtyUrlValueToId:function(t){return j(t,e,ec)}}},[es,ec]),eN=(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,g=e[ec]||{},x=(null==(t=g.configure)?void 0:t.aroundLatLng)||"",b=(null==(n=g.refinementList)?void 0:n["languages.iso6391Code"])||(null==(r=g.refinementList)?void 0:r.languages)||[],y=(null==(i=g.menu)?void 0:i["specialties.id"])||"",N=y?null!=(a=null==ey?void 0:ey.specialtyIdToUrlValue(y))?a:y:"";return{q:g.query||"",Specialty:N,PrimaryCare:(null==(o=g.toggle)?void 0:o.isPrimaryCareProvider)?"true":"",HospitalBased:(null==(l=g.toggle)?void 0:l.isHospitalBased)?"true":"",Gender:(null==(s=null==(c=g.refinementList)?void 0:c.gender)?void 0:s.join(","))||"",DoctorType:(null==(d=null==(u=g.refinementList)?void 0:u.isAppProvider)?void 0:d.join(","))||"",MedicalGroup:(null==(f=g.toggle)?void 0:f.isEmployed)?"true":"",OnlineScheduling:(null==(p=g.toggle)?void 0:p[m])?"true":"",Languages:b.join(",")||"",PatientGroup:(null==(v=null==(h=g.refinementList)?void 0:h["specialties.patientGroup"])?void 0:v.join(","))||"",Page:String(g.page||"1"),PageSize:g.hitsPerPage?String(g.hitsPerPage):"",SortBy:g.sortBy||"",aroundLatLng:x||""}},routeToState:function(e){var t,n,r,i=e.aroundLatLng?{aroundLatLng:e.aroundLatLng,aroundRadius:"all",minimumAroundRadius:1,_geoloc:{lat:parseFloat(e.aroundLatLng.split(",")[0]),lng:parseFloat(e.aroundLatLng.split(",")[1])},configure:{aroundLatLng:e.aroundLatLng,aroundRadius:"all",minimumAroundRadius:1},sortBy:"".concat(ec,"_distance")}:{sortBy:e.SortBy||ec},a=e.Specialty||"",o=a?null!=(r=null==ey?void 0:ey.specialtyUrlValueToId(a))?r:/^\d+$/.test(a.trim())?a.trim():"":"";return(t={})[ec]=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,isHospitalBased:"true"===e.HospitalBased})[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}},[ec,ey]),eI=(0,i.useMemo)(function(){if(T.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}(T.query);if(0!==Object.keys(e).length)return eN.stateMapping.routeToState(e)}},[T.isReady,T.query,eN]),e_=!!(null==(h=null==(n=null==(t=null==J?void 0:J.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:ev,indexName:ec,routing:eN,initialUiState:eI,future:{preserveSharedStateOnUnmount:!0},insights:{onEvent:em},children:[(0,r.jsx)(o.Zf,{filters:ef,getRankingInfo:!0}),(0,r.jsx)(R,{indexName:ec,filters:ef}),(0,r.jsx)(C,{indexName:ec}),(0,r.jsx)(ep,{specialtyLabel:ee,locationLabel:er}),(0,r.jsx)("div",{className:"bg-neutral-100 py-8 text-center",children:(0,r.jsx)("div",{className:"container mx-auto px-4",children:eu&&(0,r.jsx)("h1",{className:"text-3xl lg:text-4xl",children:eu})})}),(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(){M(!B)},"aria-expanded":B,children:[(0,r.jsx)("span",{children:ed}),(0,r.jsx)("span",{className:"transform transition-transform duration-300 ".concat(B?"rotate-180":""),children:"â¼"})]})}),(0,r.jsxs)("div",{className:"flex flex-col lg:flex-row lg:mb-[40px]",children:[(0,r.jsx)("div",{className:"".concat(B?"block":"hidden"," lg:block lg:w-[30%] lg:pr-4 mb-6 lg:mb-0"),children:(0,r.jsx)(ex,{locationDropdownRef:X,onLocationChange:ei,onSpecialtyChange:et,hasMedicalGroupFilterActive:e_})}),(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)(eb,{})})]})]})})]})})};let eN=ey},70376:(e,t,n)=>{n.d(t,{EF:()=>d,Or:()=>p,mE:()=>a,s1:()=>l,sc:()=>f,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=new Set(["3","38","42","45","56","59","72","85","106","112","119","123","147","152"]),u=function(e,t,n){var r=null==e?void 0:e(t);if(!r)return n;var i=r.split(",").map(function(e){return e.trim()}).filter(function(e){return/^\d+$/.test(e)});return i.length>0?new Set(i):n},d=function(e){return u(e,"physicianFinder.primaryCareSpecialtyIds",c)},f=function(e){return u(e,"physicianFinder.hospitalBasedSpecialtyIds",
1s)},p=function(){return n(87877).Z}}}]); 2//# sourceMappingURL=buildkit-95e3447d-adacfa0ff4b9e88c.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.