PageSourceSearch

https://www.doctorscenterhospital.com/_next/static/chunks/buildkit-be2883e7-904f4ae510cf9020.js

js doctorscenterhospital.com collected 2026-10-07 23:39:47 UTC 41,354 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4046],{15953:(e,t,n)=>{n.d(t,{Qf:()=>u,gz:()=>c,ks:()=>a,tW:()=>l,vI:()=>i});var r=n(17914),o=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(u){var c=[l,u];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},i=10,a=function(e){return Math.max(100,Math.floor(e*r.PJ))};function l(e,t){var n,r,i,a;return n=this,r=void 0,i=void 0,a=function(){var n,r,i,a,l;return o(this,function(o){switch(o.label){case 0:n="AIzaSyBM44ZiR0sXaJYs04VXTcIn7aG0rFtOUe0",o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch("https://maps.googleapis.com/maps/api/geocode/json?latlng=".concat(e,",").concat(t,"&result_type=postal_code&key=").concat(n))];case 2:return[4,o.sent().json()];case 3:if("OK"!==(r=o.sent()).status||!(null==(a=r.results)?void 0:a.length))return[2,void 0];return[2,"string"==typeof(null==(i=null==(l=r.results[0].address_components)?void 0:l.find(function(e){var t;return null==(t=e.types)?void 0:t.includes("postal_code")}))?void 0:i.short_name)?i.short_name:void 0];case 4:return o.sent(),[2,void 0];case 5:return[2]}})},new(i||(i=Promise))(function(e,t){function o(e){try{u(a.next(e))}catch(e){t(e)}}function l(e){try{u(a.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):((n=t.value)instanceof i?n:new i(function(e){e(n)})).then(o,l)}u((a=a.apply(n,r||[])).next())})}function u(){return new Promise(function(e,t){if("undefined"==typeof navigator||!navigator.geolocation)return void t(Error("Geolocation is not supported by your browser"));navigator.geolocation.getCurrentPosition(function(t){e({lat:t.coords.latitude,long:t.coords.longitude})},function(e){return t(e)},r.yh)})}function c(e){if("object"==typeof e&&null!==e&&"code"in e&&"number"==typeof e.code)switch(e.code){case e.PERMISSION_DENIED:return"Location access was denied. Enable location permissions for this site, or search by zip code.";case e.POSITION_UNAVAILABLE:return"Your location is unavailable. Try again, or search by zip code.";case e.TIMEOUT:return"Finding your location took too long. Try again, or search by zip code.";default:return"Unable to retrieve your location"}return e instanceof Error&&e.message?e.message:"Unable to retrieve your location"}},16051:(e,t,n)=>{n.d(t,{E4:()=>l,Mo:()=>s,SL:()=>d,Xb:()=>c,lp:()=>i,qG:()=>u,yR:()=>a});var r=n(17914),o=n(58005),i=function(e,t){if(!e)return[];var n=t.filter(function(t){return(Array.isArray(t.locationTypes)?t.locationTypes:[]).some(function(t){var n=(0,o.K)(t).toLowerCase(),r=e.toLowerCase();return n===r||n.includes(r)||r.includes(n)})}),r=new Set,i=[];return n.forEach(function(e){e.subLocationType&&!r.has(e.subLocationType.id)&&(r.add(e.subLocationType.id),i.push({id:e.subLocationType.id,name:e.subLocationType.name}))}),i.sort(function(e,t){return e.name.localeCompare(t.name)})},a=function(e,t){var n=(null==t?void 0:t.length)?new Set(t.map(function(e){return e.trim().toLowerCase()})):null,r=new Map;return e.forEach(function(e){var t,i,a,l=e.subLocationType;if(l&&null!=l.id){var u=Number(l.id);if(!(!Number.isFinite(u)||r.has(u))){var c=(Array.isArray(e.locationTypes)?e.locationTypes:[]).map(function(e){return(0,o.K)(e)}
1).filter(Boolean),s=null!=(i=null!=(t=n?c.find(function(e){return n.has(e.trim().toLowerCase())}):void 0)?t:c[0])?i:null;r.set(u,{id:u,name:String(null!=(a=l.name)?a:"").trim(),typeTitle:s})}}}),Array.from(r.values()).sort(function(e,t){return e.name.localeCompare(t.name)})},l=function(e){return(e||"").trim()},u=function(e,t){if(!e)return[];var n=t.filter(function(t){var n;return(null!=(n=t.practices)?n:[]).some(function(t){var n;return(null==(n=t.name)?void 0:n.trim().toLowerCase())===e.trim().toLowerCase()})}),r=new Set,o=[];return n.forEach(function(e){var t;(null!=(t=e.programs)?t:[]).forEach(function(e){r.has(e.id)||(r.add(e.id),o.push({id:e.id,name:e.name}))})}),o.sort(function(e,t){return e.name.localeCompare(t.name)})},c=function(e){var t=new Set,n=[];return e.forEach(function(e){var r;(null!=(r=e.practices)?r:[]).forEach(function(e){var r,o=null==(r=e.name)?void 0:r.trim();o&&!t.has(o.toLowerCase())&&(t.add(o.toLowerCase()),n.push({title:o}))})}),n.sort(function(e,t){return e.title.localeCompare(t.title)})},s=function(e,t){void 0===t&&(t="Other");var n=new Set,r=[],o=!1;return e.forEach(function(e){var t,i=null!=(t=e.programs)?t:[];if(0===i.length){o=!0;return}i.forEach(function(e){var t=l(e.name),o=t.toLowerCase();n.has(o)||(n.add(o),r.push({title:t}))})}),o&&r.push({title:t}),r.sort(function(e,n){return e.title===t?1:n.title===t?-1:e.title.localeCompare(n.title)})},d=function(e,t,n,i,a,l,u,c,s,d,f){void 0===d&&(d=!1),void 0===f&&(f=null);var p=[],v=function(e){var t;return!n||(null!=(t=e.practices)?t:[]).some(function(e){var t;return(null==(t=e.name)?void 0:t.trim().toLowerCase())===n.trim().toLowerCase()})},y=function(e){return!n||(Array.isArray(e.locationTypes)?e.locationTypes:[]).some(function(e){var t=(0,o.K)(e).toLowerCase(),r=n.toLowerCase();return t===r||t.includes(r)||r.includes(t)})},h=e;if((0,r.RZ)(a)&&l){var m={lat:a.lat,long:a.long},g=l/r.PJ;h=e.filter(function(e){return!!(0,r.y$)(e)&&(0,r.gd)(m,{lat:e.coordinates.lat,long:e.coordinates.long})<=g})}if(d)switch(t){case"types":default:p=h;break;case"subtypes":p=n?h.filter(v):h;break;case"locations":p=h.filter(v).filter(function(e){if(!s||"all"===s)return!0;var t,n=null!=(t=e.programs)?t:[];return"none"===s?0===n.length:n.some(function(e){var t;return(null==(t=e.id)?void 0:t.toString())===s})});break;case"details":p=i?[i]:h}else switch(t){case"types":default:p=h;break;case"subtypes":if("All Locations"===n&&u&&u.length>0){var b=new Set(u.map(function(e){return e.toString()}));p=h.filter(function(e){return b.has(e.id)})}else if(n)p=h.filter(y);else if(u&&u.length>0){var I=new Set(u.map(function(e){return e.toString()}));p=h.filter(function(e){return I.has(e.id)})}else p=h;break;case"locations":if(f&&n===f.allTypesLabel&&!(u&&u.length>0)&&f.allowedTypeTitles.length>0)p=h.filter(function(e){var t;return!!(t=f.allowedTypeTitles).length&&(Array.isArray(e.locationTypes)?e.locationTypes:[]).some(function(e){var n=(0,o.K)(e);return t.some(function(e){var t,r;return(t=n.toLowerCase())===(r=e.toLowerCase())||t.includes(r)||r.includes(t)})})});else if("All Locations"===n&&u&&u.length>0){var w=new Set(u.map(function(e){return e.toString()}));p=h.filter(function(e){return w.has(e.id)})}else if(n)p=h.filter(y);else if(u&&u.length>0){var L=new Set(u.map(function(e){return e.toString()}));p=h.filter(function(e){return L.has(e.id)})}else p=h;"none"===s?p=p.filter(function(e){var t=e.subLocationType;if(!t)return!0;var n="string"==typeof t?t:null==t?void 0:t.name;return!n||""===n.trim()}):s&&"all"!==s&&(p=p.filter(function(e){var t,n=e.subLocationType;return!!n&&("string"==typeof n?n:null==(t=null==n?void 0:n.id)?void 0:t.toString())===s}));break;case"details":p=i?[i]:h}if("locations"===t&&c&&c.length>0){var S=new Set(c);p=p.filter(function(e){return e.locator&&S.has(e.locator.id.toString())})}return(0,r.RZ)(a)&&l&&(p=(0,r.VK)(p,{lat:a.lat,long:a.long})),p}},17047:(e,t,n)=>{n.r(t),n.d(t,{LocationFinder:()=>X,default:()=>Y});var r=n(80263),o=n(53239),i=n(93171),a=n(63778),l=n(84482),u=n(91991),c=n(66128),s=n(40844),d=n(8752),f=n(40021),p=n(44780),v=n(1503),y=n(96073),h=n(17914),m=n(15953),g=n(16051),b=n(58005),I=n(84531),w=function(){return(w=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},L="view",S="type",T="locationId",x="locatorId",A="subtypeId",C="practice",N="program",j=n(88088),M=n(83658),E=n(91996),k=n(91258),R=function(){return(R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)}
1,_=function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,l)}u((r=r.apply(e,t||[])).next())})},P=function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(u){var c=[l,u];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},O=function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},B=["practices","programs","specialties","locationTypes","subLocationTypes","locationGroups","medicalGroups"];function D(e){if(null!=e){if("number"==typeof e&&Number.isFinite(e)&&e>0)return e;if("string"==typeof e){var t=Number(e);return Number.isFinite(t)&&t>0?t:void 0}if("object"==typeof e&&null!==e&&"id"in e){var t=Number(e.id);return Number.isFinite(t)&&t>0?t:void 0}}}function z(e){if(Array.isArray(e)&&0!==e.length){var t=e.map(D).filter(function(e){return null!=e});return t.length?t:void 0}}function F(e){return!!e&&"object"==typeof e&&B.some(function(t){var n,r;return(null!=(r=null==(n=z(e[t]))?void 0:n.length)?r:0)>0})}function G(e,t){if(!e)return null!=t?t:null;if(!t)return e;var n=F(e.metadata),r=F(t.metadata);return r&&!n?t:n&&!r?e:r&&n?R(R({},e),{metadata:function(e,t){if(e||t){if(!t)return e;if(!e)return t;for(var n=R({},e),r=0;r<B.length;r++){var o=B[r],i=t[o],a=e[o],l=Array.isArray(i)?i.length>0:null!=i&&""!==i;(Array.isArray(a)?a.length>0:null!=a&&""!==a)?n[o]=a:l&&(n[o]=i)}var u=t.locationTypeOrder,c=e.locationTypeOrder;return Array.isArray(u)&&u.length>0?n.locationTypeOrder=u:Array.isArray(c)&&c.length>0&&(n.locationTypeOrder=c),n}}(e.metadata,t.metadata)}):e}function K(e,t){var n=(e||"/").trim()||"/",r=n.startsWith("/")?n:"/".concat(n),o=r.split("/").filter(Boolean);if(o.length&&(null==t?void 0:t.includes(o[0]))){var i=o.slice(1).join("/");return i?"/".concat(i):"/"}return r}function q(e){var t=(e||"").split("?")[0].replace(/\/+$/,"")||"/",n=/^\/facilities\/([^/]+)$/.exec(t);return n?{"data.slug":n[1]}:void 0}function U(){var e=window.location.search;return e.includes("preview=true")||e.includes("builder.preview=")||e.includes("builder.space=")||e.includes("__builder_editing__=true")||window.location.hostname.includes("preview")}var W="data.url,data.title,data.metadata";function V(e,t,n,r){return _(this,void 0,void 0,function(){return P(this,function(o){var i;return[2,a.cL.get(e,(i=(0,M.q4)(R({locale:t,urlPath:n,includeRefs:!0,vercelPreview:!0,fields:W},r?{query:r}:{})),R(R({},i),{fields:W,cachebust:!0,options:R(R({},i.options),{includeUnpublished:U()})}))).promise()]})})}function H(e,t){return _(this,void 0,void 0,function(){return P(this,function(n){return[2,a.cL.get(e,{url:t,fields:W,cachebust:!0,options:{includeRefs:!0,includeUnpublished:U()}}).promise()]})})}var X=function(e){var t,M,D,W,X,Y,$,Z,J,Q,ee,et,en,er,eo,ei,ea,el,eu,ec,es,ed,ef,ep,ev,ey,eh,em,eg,eb=e.headline,eI=e.headlineLevel,ew=void 0===eI?"h2":eI,eL=e.locations,eS=e.locationTypes,eT=e.locationIds,ex=e.startInListView,eA=e.physician,eC=e.includeHiddenLocations,eN=void 0!==eC&&eC,ej=e.startAtLocationsLevel,eM=void 0!==ej&&ej,eE=e.startAtSubtypesLevel,ek=void 0!==eE&&eE,eR=e.showMapStatusLegend,e_=void 0===eR||eR,eP=(0,o.useMemo)(function(){return(0,h.oR)(eN)},[eN]),eO=(0,v.qB)(),eB=eO.getDictionaryValue,eD=eO.regionalCareSite,ez=eB(v._A.DICTIONARY_LOCATION_FINDER_ALL_LOCATIONS),eF=eB(v._A.DICTIONARY_LOCATION_FINDER_MORE_LOCATIONS),eG=(0,i.useRouter)(),eK=(0,k.$)(),eq=eK.data,eU=eK.model,eW=(0,o.useMemo)(function(){return!!eG.isReady&&!!q(K(eG.asPath.split("?")[0].split("#")[0],eG.locales))},[eG.isReady,eG.asPath,eG.locales])&&("location"===eU||!!eq),eV=(0,o.useMemo)(function(){return F(null==eq?void 0:eq.metadata)},[eq]),eH=(0,o.useMemo)(function(){var e;return eV||eW&&!!(e=null==eq?void 0:eq.metadata)&&"object"==typeof e&&B.some(function(t){var n=e[t];return Array.isArray(n)?n.length>0:null!=n&&""!==n})},[eV,eW,eq]),eX=(t={defaultView:void 0!==ex&&ex?"list":"map"},M=(0,i.useRouter)(),D=t.defaultView,W=M.query,{view:(X=(0,o.useMemo)(function(){var e=null!=W?W:{},t=(0,I.uW)(e[L]),n=(0,I.uW)(e[S]),r=(0,I.uW)(e[T]),o=e[x],i=(0,I.uW)(e[A]),a=(0,I.uW)(e[C]),l=(0,I.uW)(e[N]),u=null!=n?n:null,c=null!=r?r:null;return{view:"list"===t?"list":"map"===t?"map":null!=D?D:"map",type:u,locationId:c,locatorIds:(0,h.iG)(void 0===o?void 0:"string"==typeof o||Array.isArray(o)?o:(0,I.uW)(o)),subtypeId:null!=i?i:null,practice:null!=a?a:null,program:null!=l?l:null,level:c?"details":u?"locations":"types",isReady:M.isReady}}
1,[M.isReady,W,D])).view,type:X.type,locationId:X.locationId,locatorIds:X.locatorIds,subtypeId:X.subtypeId,practice:X.practice,program:X.program,level:X.level,isReady:X.isReady,navigate:(0,o.useCallback)(function(e,t){void 0===t&&(t={});var n,r=t.replace,o=w({},null!=(n=M.query)?n:{}),i={view:L,type:S,locationId:T,locatorId:x,subtypeId:A,practice:C,program:N};["view","type","locationId","locatorId","subtypeId","practice","program"].forEach(function(t){if(t in e){var n,r=i[t],a=e[t];if(null==a)n=void 0;else if("locatorId"===t){var l=Array.isArray(a)?a:(0,h.iG)(a);n=l.length>0?l.map(function(e){return(0,I.K_)(e)}).filter(Boolean).join(","):void 0}else n=(0,I.K_)(a);void 0===n?delete o[r]:o[r]=n}}),(void 0!==r&&r?M.replace:M.push)({pathname:M.pathname,query:o},void 0,{shallow:!0})},[M])}),eY=eX.view,e$=eX.type,eZ=eX.locationId,eJ=eX.locatorIds,eQ=eX.subtypeId,e0=eX.practice,e1=eX.program,e2=eX.navigate,e4=(0,o.useState)(!1),e3=e4[0],e5=e4[1],e8=(0,o.useState)(null),e6=e8[0],e9=e8[1],e7=(0,o.useState)([]),te=e7[0],tt=e7[1],tn=(0,o.useState)(null),tr=tn[0],to=tn[1],ti=(0,o.useState)(!0),ta=ti[0],tl=ti[1],tu=(0,o.useState)(function(){return eH&&eq?eq:null}),tc=tu[0],ts=tu[1],td=(0,o.useState)(function(){return eH&&!U()}),tf=td[0],tp=td[1],tv=(0,o.useMemo)(function(){return(0,h.xX)(eT)},[eT]),ty=!!(null==(es=null==eA?void 0:eA.locations)?void 0:es.length)||!!(null==eL?void 0:eL.length)||tv.length>0,th=(0,o.useRef)(new Map),tm=(0,o.useRef)(!1),tg=(0,o.useRef)(!1),tb=(0,o.useRef)(!1),tI=(0,o.useRef)(!1),tw=(0,o.useRef)(!1);(0,o.useEffect)(function(){(0,f.b)()},[]);var tL=(0,f.Wp)(p.UP.LOCATION,p.wT.LOCATION);(0,o.useEffect)(function(){eH&&eq&&ts(eq)},[eH,eq]),(0,o.useEffect)(function(){if(eG.isReady){if(eH&&!U())return void tp(!0);var e=!1;return tp(!1),_(void 0,void 0,void 0,function(){var t,n,r,o,i,l,u,c,s,d,f,p,v,y,h,m;return P(this,function(g){switch(g.label){case 0:g.trys.push([0,10,11,12]);return a.cL.init("9182776b5d7b46f48b6f268d038ea68e"),r=q(n=K(t=eG.asPath.split("?")[0].split("#")[0],eG.locales)),o=(0,E.Y)(eG.locale,eG.defaultLocale),i=function(e){if(e===e.toUpperCase())return null;var t=e.split("/").map(function(e){return e.split("-").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join("-")}).join("/");return t!==e?t:null}(n),l=null,u=null,c=!((n||"").split("?")[0].replace(/\/+$/,"")||"/").startsWith("/services/")&&!!r,s=null==r?void 0:r["data.slug"],[4,(d=function(e,t){return _(void 0,void 0,void 0,function(){var n,o,i,a;return P(this,function(d){switch(d.label){case 0:if(!c)return[3,3];return[4,V("location",e,t,r)];case 1:if((null==(n=d.sent())?void 0:n.data)&&(!s||n.data.slug===s))return u=n,[2,!0];return[4,V("page",e,t,r)];case 2:if(null==(o=d.sent())?void 0:o.data)return l=o,[2,!0];return[2,!1];case 3:return[4,V("page",e,t,r)];case 4:return(a=!!(null==(i=d.sent())?void 0:i.data))&&(l=i),[2,a]}})})})(o,n)];case 1:if(g.sent())return[3,9];if(!(f="Default"!==o))return[3,3];return[4,d("Default",n)];case 2:f=!g.sent(),g.label=3;case 3:if(!f)return[3,9];if(p=!i)return[3,5];return[4,d(o,i)];case 4:p=!g.sent(),g.label=5;case 5:if(!p)return[3,9];if(!c)return[3,7];return[4,H("location",t)];case 6:return(null==(v=g.sent())?void 0:v.data)&&(!s||v.data.slug===s)&&(u=v),[3,9];case 7:return[4,H("page",t)];case 8:(null==(y=g.sent())?void 0:y.data)&&(l=y),g.label=9;case 9:return s&&(null==u?void 0:u.data)&&u.data.slug!==s&&(u=null),!e&&(h=G(null==l?void 0:l.data,null==u?void 0:u.data),(m=G(h,eq))&&ts(m)),[3,12];case 10:return g.sent(),[3,12];case 11:return e||tp(!0),[7];case 12:return[2]}})}),function(){e=!0}}},[eG.isReady,eG.asPath,eG.locale,eG.defaultLocale,eG.locales,eH,eq]);var tS=(0,o.useMemo)(function(){var e=null==tc?void 0:tc.metadata;if(!e)return null;var t=z(e.practices),n=z(e.programs),r=z(e.specialties),o=z(e.locationTypes),i=z(e.subLocationTypes),a=z(e.locationGroups),l=z(e.medicalGroups);return[t,n,r,o,i,a,l].some(function(e){return null==e?void 0:e.length})?{practiceIds:t,programIds:n,specialtyIds:r,locationTypeIds:o,subLocationTypeIds:i,locationGroupIds:a,medicalGroupIds:l}:null},[tc]),tT=(null!=(ef=null==(ed=null==tS?void 0:tS.practiceIds)?void 0:ed.length)?ef:0)>0||(null!=(ev=null==(ep=null==tS?void 0:tS.programIds)?void 0:ep.length)?ev:0)>0,tx=(0,o.useMemo)(function(){var e;return Array.isArray(null==(e=null==tc?void 0:tc.metadata)?void 0:e.locationTypeOrder)?tc.metadata.locationTypeOrder.filter(function(e){return"string"==typeof e}):null},[tc]),tA=(0,o.useMemo)(function(){var e;if(tv.length>0)return[{title:ez}];if(tT&&te.length>0){var t=(0,g.Xb)(te);if(null==(e=null==tS?void 0:tS.practiceIds)?void 0:e.length){var n=new Set;return te.forEach(function(e){var t;
1(null!=(t=e.practices)?t:[]).forEach(function(e){var t;null!=e.id&&tS.practiceIds.some(function(t){return String(t)===String(e.id)})&&(null==(t=e.name)?void 0:t.trim())&&n.add(e.name.trim().toLowerCase())})}),t.filter(function(e){return n.has(e.title.toLowerCase())})}return t}return te.length>0?function(e,t){var n=new Set;e.forEach(function(e){(e.locationTypes||[]).forEach(function(e){return e&&n.add(e)})});var r=Array.from(n);if(null==t?void 0:t.length){for(var o=new Set,i=[],a=0;a<t.length;a++)!function(e){var t=e.trim().toLowerCase(),n=r.find(function(e){return e.trim().toLowerCase()===t});n&&!o.has(n)&&(i.push(n),o.add(n))}(t[a]);var l=r.filter(function(e){return!o.has(e)}).sort();return O(O([],i,!0),l,!0).map(function(e){return{title:e}})}return r.sort().map(function(e){return{title:e}})}(te,tx):"string"==typeof eS?(0,h.yu)(eS):Array.isArray(eS)?eS.map(function(e){return"string"==typeof e?{title:e}:e}):(null==eL?void 0:eL.length)?[{title:ez}]:[]},[eS,tv,eL,ez,null==tS?void 0:tS.practiceIds,tx,te,tT]),tC=(0,o.useMemo)(function(){return tT||tv.length>0||!eM||tA.length<=1?null:{allTypesLabel:ez,allowedTypeTitles:tA.map(function(e){return e.title})}}
1,[tT,tv.length,eM,tA,ez]),tN=ek&&!tT&&!eM,tj=tT?null!=(ey=null!=e0?e0:1===tA.length?tA[0].title:null)?ey:null:null!=(eh=null!=e$?e$:tv.length?ez:1===tA.length?tA[0].title:null)?eh:null,tM=tT?e1:eQ,tE=(0,o.useMemo)(function(){var e;return eZ&&null!=(e=te.find(function(e){return e.id===eZ}))?e:null},[eZ,te]),tk=(0,o.useMemo)(function(){return(0,g.SL)(te,"locations",tj,null,null,null,tv,void 0,void 0,tT,tC)},[te,tj,tv,tT,tC]),tR=(0,o.useMemo)(function(){return tN?(0,g.yR)(te,tA.map(function(e){return e.title})):[]},[tN,te,tA]),t_=(0,o.useMemo)(function(){var e;if(tN)return tR.map(function(e){return{id:e.id,name:e.name,typeTitle:e.typeTitle}});if(tT){var t=(0,g.qG)(tj,tk).map(function(e){return{id:e.id,name:(0,g.E4)(e.name)}});if(null==(e=null==tS?void 0:tS.programIds)?void 0:e.length){var n=new Set(tS.programIds.map(String));t=t.filter(function(e){return n.has(String(e.id))})}return t}return tC&&tj===tC.allTypesLabel?[]:(0,g.lp)(tj,tk)},[tj,tk,tT,tC,null==tS?void 0:tS.programIds,tN,tR]),tP=(0,o.useMemo)(function(){return tT?tk.some(function(e){var t;return!(null==(t=e.programs)?void 0:t.length)}):tk.some(function(e){var t=e.subLocationType;if(!t)return!0;var n="string"==typeof t?t:null==t?void 0:t.name;return!n||""===n.trim()})},[tk,tT]),tO=t_.length>0,tB=($=(Y={urlType:e$,urlSubtypeId:eQ,urlPractice:e0,urlProgram:e1,urlLocationId:eZ,currentTypeHasSubtypes:tO,usePracticeProgramMode:tT,startAtLocationsLevel:eM,startAtSubtypesLevel:ek,locationTypesCount:tA.length}).urlType,Z=Y.urlSubtypeId,J=Y.urlPractice,Q=Y.urlProgram,ee=Y.urlLocationId,et=Y.currentTypeHasSubtypes,en=Y.usePracticeProgramMode,er=Y.startAtLocationsLevel,eo=Y.startAtSubtypesLevel,ei=Y.locationTypesCount,ea=eo&&!en&&!er,el=en?J:$,eu=en?Q:Z,{currentLevel:ec=ee?"details":ea?eu?"locations":"subtypes":el?"none"===eu||"all"===eu||eu?"locations":et?"subtypes":"locations":"types",showBackButton:"types"!==ec&&(ea?"subtypes"!==ec:!er||"details"===ec),listGroupingMode:er&&en||er&&!en&&ei>1?"flat":"types"}),tD=tB.currentLevel,tz=tB.showBackButton,tF=tB.listGroupingMode,tG=(0,o.useState)(null),tK=tG[0],tq=tG[1],tU=(0,o.useState)(null),tW=tU[0],tV=tU[1],tH=(0,o.useState)(!1),tX=tH[0],tY=tH[1],t$=(0,o.useState)(null),tZ=t$[0],tJ=t$[1],tQ=(0,o.useRef)(0),t0=(0,o.useMemo)(function(){return(0,g.SL)(te,tD,tj,tE,tK,tW,tv,eJ.length>0?eJ:void 0,null!=tM?tM:void 0,tT,tC)},[te,tD,tj,tE,tK,tW,tv,eJ,tM,tT,tC]),t1=(0,o.useMemo)(function(){if("locations"!==tD)return[];var e=(0,g.SL)(te,"locations",tj,tE,tK,tW,tv,void 0,null!=tM?tM:void 0,tT,tC),t=new Set;return e.filter(function(e){return e.locator&&!t.has(e.locator.id)&&t.add(e.locator.id)}).map(function(e){return{id:e.locator.id,name:e.locator.name}}).sort(function(e,t){return e.name.localeCompare(t.name)})},[te,tD,tj,tE,tK,tW,tv,tM,tT,tC]),t2=(0,o.useMemo)(function(){return tA.map(function(e){return R(R({},e),{count:te.filter(function(t){var n;return null==(n=t.locationTypes)?void 0:n.includes(e.title)}).length,icon:"https://www.orlandohealth.com/-/media/images/location-types/slh_wp_ap_oh_hospital.png"})})},[tA,te]),t4=(0,o.useCallback)(function(e,t){var n,r,o,i,a,l,u,c={};"view"in e&&(c.view=null!=(n=e.view)?n:void 0),"locationId"in e&&(c.locationId=null!=(r=e.locationId)?r:void 0),"locatorId"in e&&(c.locatorId=null!=(o=e.locatorId)?o:void 0),tT?("type"in e&&(c.practice=null!=(i=e.type)?i:void 0,c.type=void 0),"subtypeId"in e&&(c.program=null!=(a=e.subtypeId)?a:void 0,c.subtypeId=void 0)):("type"in e&&(c.type=null!=(l=e.type)?l:void 0,c.practice=void 0),"subtypeId"in e&&(c.subtypeId=null!=(u=e.subtypeId)?u:void 0,c.program=void 0)),e2(c,t)},[e2,tT]);(0,o.useEffect)(function(){var e=tT?e0:e$;if(eX.isReady&&!ta&&!tg.current&&!e&&(!tN||tv.length))if(tv.length>0)t4({type:ez},{replace:!0}),tg.current=!0;else{if(eM&&!tT)return;1===tA.length&&(t4({type:tA[0].title},{replace:!0}),tg.current=!0)}},[eX.isReady,e$,e0,tT,ta,tv.length,tA,ez,t4,eM,tN]),(0,o.useEffect)(function(){if(eM&&tT&&eX.isReady&&!ta&&!tI.current&&0!==tA.length){var e,t=null!=e0?e0:null==(e=tA[0])?void 0:e.title;if(t){if("all"===e1){tI.current=!0;return}t4({type:t,subtypeId:"all"},{replace:!0})}}},[eM,tT,eX.isReady,ta,tA,e0,e1,t4]),(0,o.useEffect)(function(){if(eM&&!tT&&eX.isReady&&!ta&&!tw.current&&!(tv.length>0)&&0!==tA.length){if(tA.length>1){if(e$===ez&&"all"===eQ){tw.current=!0;return}t4({type:ez,subtypeId:"all"},{replace:!0});return}var e=tA[0].title,t=(0,g.SL)(te,"locations",e,null,null,null,tv,void 0,void 0,!1,null);if((0,g.lp)(e,t).length>0){if(e$===e&&"all"===eQ){tw.current=!0;return}t4({type:e,subtypeId:"all"},{replace:!0});return}if(e$===e){tw.current=!0;return}t4({type:e},{replace:!0})}},[eM,tT,eX.isReady,ta,tv,tA,ez,e$,eQ,te,t4]),(0,o.useEffect)(function(){var e,t=tT?e0:e$,n=tT?e1:eQ;if(eX.isReady&&null==n&&(tN||t)&&!eM){if(1!==t_.length){tb.current=!1;return}if(!tb.current){var r=String(t_[0].id);if(tN){var o=null==(e=tR.find(function(e){return String(e.id)===r}))?void 0:e.typeTitle;t4({type:null!=o?o:void 0,subtypeId:r},{replace:!0})}else t4({subtypeId:r},{replace:!0});tb.current=!0}}},[eX.isReady,e$,e0,eQ,e1,tT,t_,t4,eM,tN,tR]),(0,o.useEffect)(function(){if(tv.length){var e=Date.now(),t=new Set(tv);
1Array.from(th.current.keys()).forEach(function(n){var r=th.current.get(n);(!t.has(n)||r&&e-r.ts>3e5)&&th.current.delete(n)})}},[tv]),(0,o.useEffect)(function(){var e=eD||"dch",t=e?(0,y.if)(e):null;if(!t){e9(null),e5(!0);return}var n=(0,y.Bl)(t);e9(null!=n?n:null),e5(!0)},[eD]),(0,o.useEffect)(function(){if(e3&&(ty||tf)){var e=!1;return _(void 0,void 0,void 0,function(){var t,r,o,i,a,l,u,c,s,f,p,v,m,g,I;return P(this,function(w){switch(w.label){case 0:t=!tm.current,!e&&t?(tl(!0),to(null)):e||to(null),w.label=1;case 1:if(w.trys.push([1,22,23,24]),r=[],!(null==(I=null==eA?void 0:eA.locations)?void 0:I.length))return[3,2];return r=(0,j.$y)(eA.locations).filter(function(e){var t=e._geoLoc||e._geoloc;return(null==t?void 0:t.lat)&&(null==t?void 0:t.lng)}).map(function(e){var t=e._geoLoc||e._geoloc;return{id:e.locationId.toString(),name:e.name,street1:e.address1,street2:e.address2||void 0,city:e.city,state:e.state,zip:e.zipCode,directionsNote:e.directionsNote||null,moreInfoLink:e.moreInfoLink||void 0,locationTypes:["Physician Office"],contactInfo:{phone:e.phone||"",fax:e.fax||"",hours:e.officeHours||""},coordinates:{lat:Number(t.lat),long:Number(t.lng)},directionsLink:(0,h.Xo)({name:e.name,street1:e.address1,city:e.city,state:e.state,zip:e.zipCode,coordinates:{lat:Number(t.lat),long:Number(t.lng)}})}}),[3,21];case 2:if(!(null==eL?void 0:eL.length))return[3,3];return r=eL,[3,21];case 3:if(!(tv.length>0))return[3,10];return[4,(0,d.loadAllLocations)(!1,e6,void 0,eP).catch(function(){return[]})];case 4:for(c=0,o=w.sent(),i=Date.now(),a=[],l=[],u=function(e){var t=o.find(function(t){return t.id===e}),n=t?void 0:th.current.get(e),r=null!=t?t:n&&i-n.ts<=3e5?n.data:void 0;r?a.push(r):l.push(e)},s=tv;c<s.length;c++)u(s[c]);if(f=[],!(l.length>0))return[3,8];w.label=5;case 5:return w.trys.push([5,7,,8]),[4,(0,d.getLocationsByIds)(l,e6,eP)];case 6:return(f=w.sent()).forEach(function(e){return th.current.set(e.id,{data:e,ts:Date.now()})}),[3,8];case 7:return w.sent(),[3,8];case 8:return p=new Set(f.map(function(e){return e.id})),[4,Promise.all(l.filter(function(e){return!p.has(e)}).map(function(e){return _(void 0,void 0,void 0,function(){var t,n,r,o,i,a,l,u,c,s,d,f,p,v,m;return P(this,function(g){switch(g.label){case 0:return g.trys.push([0,3,,4]),[4,fetch("/api/locations/".concat(e))];case 1:if(!(t=g.sent()).ok)throw Error("HTTP ".concat(t.status));return[4,t.json()];case 2:if(n=g.sent(),e6&&!(0,y.Md)(n,e6))return[2,null];return r=(0,b.K)(n.locationType),o=(0,b.K)(n.subLocationType),i=null==(c=null==(u=n.locationStatus)?void 0:u.name)?void 0:c.toLowerCase(),a={active:"active",inactive:"inactive","coming-soon":"coming-soon","temporarily-closed":"temporarily-closed",notice:"active"},l={id:n.locationId.toString(),name:n.name,street1:n.address1,street2:n.address2||void 0,city:n.city,state:n.state,zip:n.zipCode,locationTypes:[r,o].filter(Boolean),contactInfo:{phone:n.phone||"",fax:n.fax||"",hours:n.officeHours||""},coordinates:{lat:n._geoloc.lat,long:n._geoloc.lng},directionsLink:(0,h.Xo)({name:n.name,street1:n.address1,city:n.city,state:n.state,zip:n.zipCode,coordinates:{lat:n._geoloc.lat,long:n._geoloc.lng}}),status:i?a[i]:void 0,statusMessage:n.locationStatusMessage||void 0,locationStatus:n.locationStatus?{id:Number(n.locationStatus.id),name:String(n.locationStatus.name)}:void 0,locationStatusMessage:null!=(s=n.locationStatusMessage)?s:void 0,locator:null!=(d=n.locator)?d:void 0,subLocationType:null!=(f=n.subLocationType)?f:void 0,moreInfoLink:null!=(p=n.moreInfoLink)?p:void 0,media:null!=(v=n.media)?v:void 0,directionsNote:null!=(m=n.directionsNote)?m:void 0},th.current.set(e,{data:l,ts:Date.now()}),[2,l];case 3:return g.sent(),[2,null];case 4:return[2]}})})}))];case 9:if(v=w.sent(),m=new Map,O(O(O([],a,!0),f,!0),v.filter(function(e){return null!==e}),!0).forEach(function(e){return m.set(e.id,e)}),!(r=tv.map(function(e){return m.get(e)}).filter(function(e){return null!=e})).length)throw Error("Failed to load locations for the specified location IDs");return[3,21];case 10:return w.trys.push([10,15,,21]),[4,(0,d.loadAllLocations)(!1,e6,tS,eP)];case 11:if(!((g=w.sent()).length>0))return[3,12];return r=g,[3,14];case 12:return[4,(0,d.loadAllLocations)(!0,e6,tS,eP)];case 13:r=w.sent(),w.label=14;case 14:return[3,21];case 15:w.sent(),w.label=16;case 16:return w.trys.push([16,19,,20]),[4,Promise.resolve().then(n.bind(n,8752))];case 17:return[4,(0,w.sent().searchLocations)({hitsPerPage:100},e6,eP)];case 18:return r=w.sent(),[3,20];case 19:return w.sent(),e||to("Failed to load locations. Please try refreshing the page."),[2];case 20:return[3,21];case 21:return!e&&(r.length>0?(tm.current=!0,tt(r)):tm.current||tt([])),[3,24];case 22:return w.sent(),e||to("Failed to load locations. Please try refreshing the page."),[3,24];case 23:return e||tl(!1),[7];case 24:return[2]}})}),function(){e=!0}}},[eA,eL,tv,e6,tS,e3,tf,ty,eP]);var t3=(0,o.useCallback)(function(e,t){if(!t||!e.lat&&!e.long){tq(null),tV(null),tJ(null);return}((null==tK?void 0:tK.zipCode)!==e.zipCode||(null==tK?void 0:tK.lat)!==e.lat||(null==tK?void 0:tK.long)!==e.long||tW!==t)&&(tJ(null),tq(e),tV(t))},[tK,tW]),t5=(0,o.useCallback)(function(e){return _(void 0,void 0,void 0,function(){var t,n,r,o;return P(this,function(i){switch(i.label){case 0:t=++tQ.current,tY(!0),tJ(null),i.label=1;case 1:return i.trys.push([1,4,5,6]),[4,(0,m.Qf)()];case 2:if(n=i.sent(),t!==tQ.current)return[2];return tq(n),tV(e),[4,(0,m.tW)(n.lat,n.long)];case 3:if(r=i.sent(),t!==tQ.current)return[2];return r&&tq(R(R({},n),{zipCode:r})),[3,6];case 4:if(o=i.sent(),t!==tQ.current)return[2];return tJ((0,m.gz)(o)),[3,6];case 5:return t===tQ.current&&tY(!1),[7];case 6:return[2]}})})},[]),t8=(0,o.useCallback)(function(){if(tT){var e,t,n=null!=e0?e0:null==(e=tA[0])?void 0:e.title;return{type:null!=n?n:void 0,subtypeId:"all"}}if(tA.length>1)return{type:ez,subtypeId:"all"};
1var r=null==(t=tA[0])?void 0:t.title;if(!r)return{};var o=(0,g.SL)(te,"locations",r,null,null,null,tv,void 0,void 0,!1,null);return(0,g.lp)(r,o).length>0?{type:r,subtypeId:"all"}:{type:r}},[tT,e0,tA,ez,te,tv]),t6=(0,o.useCallback)(function(e){var t,n;if(!e)return void t4({locationId:void 0},{replace:!1});if(tL({widgetType:p.r1.WIDGET_TYPE,eventType:p.r1.CLICK_EVENT_TYPE,hits:[{objectID:e.id,__queryID:"",__indexName:p.UP.LOCATION}]}),tT||tN)t4({locationId:e.id,type:null!=tj?tj:void 0,subtypeId:null!=tM?tM:void 0},{replace:!1});else if(eM)t4({locationId:e.id},{replace:!1});else{var r=null==(t=e.locationTypes)?void 0:t[0],o="string"==typeof r?r:null!=(n=null==r?void 0:r.title)?n:null;t4({locationId:e.id,type:null!=o?o:void 0},{replace:!1})}},[tj,tM,tT,eM,tN,t4,tL]),t9=(0,o.useCallback)(function(e){t4({type:null!=e?e:void 0,locationId:void 0,locatorId:void 0,subtypeId:void 0},{replace:!1})},[t4]),t7=(0,o.useCallback)(function(e){var t;if(tN){var n=null==(t=tR.find(function(t){return String(t.id)===e}))?void 0:t.typeTitle;t4({type:null!=n?n:void 0,subtypeId:e,locatorId:void 0},{replace:!1});return}t4({subtypeId:e},{replace:!1})},[t4,tN,tR]),ne=(0,o.useCallback)(function(){tv.length>0||t4({type:void 0,locationId:void 0,locatorId:void 0,subtypeId:void 0},{replace:!1})},[t4,tv.length]),nt=(0,o.useCallback)(function(){if(eM){var e=t8();t4({locationId:void 0,locatorId:void 0,type:e.type,subtypeId:e.subtypeId},{replace:!1});return}t4({locationId:void 0},{replace:!1})},[eM,t8,t4]),nn=(0,o.useCallback)(function(e){"types"===e?t4({type:void 0,locationId:void 0,locatorId:void 0,subtypeId:void 0},{replace:!1}):"subtypes"===e?t4(tN?{type:void 0,subtypeId:void 0,locatorId:void 0}:{subtypeId:void 0},{replace:!1}):"locations"===e&&t4({locationId:void 0},{replace:!1})},[t4,tN]),nr=(0,o.useCallback)(function(e){null==e||e.preventDefault(),e2({view:"map"},{replace:!1})},[e2]),no=(0,o.useCallback)(function(e){null==e||e.preventDefault(),e2({view:"list"},{replace:!1})},[e2]);if(ta)return(0,r.jsxs)("div",{className:"location-finder mx-auto w-full",children:[eb&&(0,r.jsx)("div",{className:"container",children:"h1"===ew?(0,r.jsx)("h1",{className:"font-bold text-primary mb-4",children:eb}):(0,r.jsx)("h2",{className:"font-bold text-primary mb-4",children:eb})}),(0,r.jsx)("div",{className:"w-full h-[500px] md:h-[750px] rounded bg-neutral-95 flex items-center justify-center",children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)("div",{className:"w-16 h-16 bg-neutral-80 rounded-full mx-auto mb-4 animate-pulse"}),(0,r.jsx)("span",{className:"text-neutral-40",children:"Loading locations..."})]})})]});if(tr)return(0,r.jsxs)("div",{className:"location-finder mx-auto w-full",children:[eb&&(0,r.jsx)("div",{className:"container",children:"h1"===ew?(0,r.jsx)("h1",{className:"font-bold text-primary mb-4",children:eb}):(0,r.jsx)("h2",{className:"font-bold text-primary mb-4",children:eb})}),(0,r.jsx)("div",{className:"w-full h-[500px] md:h-[750px] rounded bg-neutral-95 flex items-center justify-center",children:(0,r.jsx)("span",{className:"text-neutral-40",children:tr})})]});var ni=eb&&(0,r.jsx)("div",{className:"container",children:"h1"===ew?(0,r.jsx)("h1",{className:"font-bold text-primary mb-4",children:eb}):(0,r.jsx)("h2",{className:"font-bold text-primary mb-4",children:eb})}),na={showBackButton:tz,locationTypes:t2,onLocationSelect:t6,activeLocation:tE,onSearch:t3,onUseMyLocation:t5,isRequestingLocation:tX,locationRequestError:tZ,activeSearchCoordinates:tK,activeSearchRadiusMeters:tW,onViewListToggle:no,selectedType:tj,onTypeSelect:t9,currentLevel:tD,setCurrentLevel:nn,processedLocations:{grouped:!1,locations:t0},onBackToTypes:ne,hasLocationIds:tv.length>0,locators:t1,selectedLocatorIds:eJ,onLocatorSelect:function(e){return t4({locatorId:null!=e?e:void 0},{replace:!1})},subTypesForCurrentType:t_,typeHasUnsubtypedLocations:tP,onSubtypeSelect:t7,typeHasSubtypes:tO,usePracticeProgramMode:tT,subtypesAreRootLevel:tN,onBackFromDetails:tT||eM||tN?nt:void 0,selectedSubtypeId:tM};return(0,r.jsxs)("div",{className:"location-finder mx-auto w-full",children:[ni,(0,r.jsx)("div",{className:"w-full rounded overflow-hidden",children:"list"===eY?(0,r.jsx)(s.A,{headline:eb,locations:t0,onViewMapToggle:nr,processedLocations:{grouped:!1,locations:t0},locationTypes:t2,usePracticeProgramMode:tT,listGroupingMode:tF,selectedListKey:"flat"===tF?ez:tT?"none"===e1?eF:e1&&null!=(eg=null==(em=t_.find(function(e){return e.id.toString()===e1}))?void 0:em.name)?eg:null:e$,onAccordionToggle:function(e){if("flat"===tF)return void(tT?null===e?t4({subtypeId:void 0},{replace:!1}):t4({type:null!=tj?tj:void 0,subtypeId:"all"},{replace:!1}):null===e?t4({type:void 0,subtypeId:void 0},{replace:!1}):t4({type:ez,subtypeId:"all"},{replace:!1}));if(null===e)tT?t4({subtypeId:void 0},{replace:!1}):t4({type:void 0},{replace:!1});else if(tT)if(e===eF)t4({type:null!=tj?tj:void 0,subtypeId:"none"},{replace:!1});else{var t=t_.find(function(t){return t.name===e});t4({type:null!=tj?tj:void 0,subtypeId:t?String(t.id):void 0},{replace:!1})}else t4({type:e},{replace:!1})},onLocationSelect:function(e){return t4({view:"map",locationId:e.id,type:null!=tj?tj:void 0,subtypeId:null!=tM?tM:void 0},{replace:!1})},hasLocationIds:tv.length>0,showStatusLegend:e_}):(0,r.jsxs)("div",{className:"flex flex-col w-full",children:[e_&&(0,r.jsx)("div",{className:"shrink-0 w-full mb-2",children:(0,r.jsx)(u.A,{className:"rounded"})}),(0,r.jsxs)("div",{className:"relative w-full",children:[(0,r.jsx)(l.A,{locations:t0,activeLocation:tE,onLocationSelect:t6,selectedType:tj,setCurrentLevel:nn,currentLevel:tD,forceLoad:!!eA,searchOrigin:tK,searchRadiusMeters:tW}),(0,r.jsx)("div",{className:"md:absolute md:top-8 md:bottom-8 md:left-0 md:right-0 md:container md:mx-auto md:px-4 md:pointer-events-none",children:(0,r.jsx)("div",{className:"w-full md:w-[320px] h-full bg-neutral-100 md:shadow-lg md:pointer-events-auto md:ml-0 overflow-hidden z-30",children:(0,r.jsx)(c.A,R({},na))})})]})]})})]})};let Y=X}
1,17914:(e,t,n)=>{n.d(t,{PJ:()=>u,RZ:()=>s,VK:()=>v,Xo:()=>m,gd:()=>p,iG:()=>l,oR:()=>o,sN:()=>d,xX:()=>a,y$:()=>f,yh:()=>c,yu:()=>h,zr:()=>y});var r=function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},o=function(e){if(!0===e)return!0;if(!1===e||null==e)return!1;if("number"==typeof e&&1===e)return!0;if("string"==typeof e){var t=e.trim().toLowerCase();return"true"===t||"1"===t||"yes"===t}return!1},i=function(e){return e?"string"==typeof e?e.split(",").map(function(e){return e.trim()}).filter(function(e){return e.length>0}):Array.isArray(e)?e.map(function(e){return e.toString()}):[]:[]},a=i,l=i,u=1609.34,c={enableHighAccuracy:!1,timeout:1e4,maximumAge:3e5},s=function(e){return!!(e&&Number.isFinite(e.lat)&&Number.isFinite(e.long)&&(0!==e.lat||0!==e.long))},d=function(e,t){return!!(s(e)&&t)},f=function(e){var t,n,r=null==(t=e.coordinates)?void 0:t.lat,o=null==(n=e.coordinates)?void 0:n.long;return"number"==typeof r&&"number"==typeof o&&Number.isFinite(r)&&Number.isFinite(o)&&(0!==r||0!==o)},p=function(e,t){var n=(t.lat-e.lat)*Math.PI/180,r=(t.long-e.long)*Math.PI/180,o=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat*Math.PI/180)*Math.cos(t.lat*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2);return 2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o))*3959},v=function(e,t){return r([],e,!0).sort(function(e,n){return(f(e)?p(t,{lat:e.coordinates.lat,long:e.coordinates.long}):1/0)-(f(n)?p(t,{lat:n.coordinates.lat,long:n.coordinates.long}):1/0)})},y=function(e){return!Number.isFinite(e)||e<0?"":e<.1?"< 0.1":e<10?e.toFixed(1):String(Math.round(e))},h=function(e){return e?e.split(",").map(function(e){return e.trim()}).filter(Boolean).map(function(e){return{title:e}}):[]},m=function(e){var t=[e.name,e.street1,e.city,e.state,e.zip].filter(Boolean);if(!(t.length>=4)||"PR"===e.state)return"https://www.google.com/maps/dir/?api=1&destination=".concat(e.coordinates.lat,",").concat(e.coordinates.long);var n=encodeURIComponent(t.join(", "));return"https://www.google.com/maps/dir//".concat(n)}},84531:(e,t,n)=>{n.d(t,{K_:()=>i,cZ:()=>s,hE:()=>d,sK:()=>u,uW:()=>o});var r=function(e){if(null!=e){if("string"==typeof e)return e;if("number"==typeof e||"boolean"==typeof e)return e.toString();if("object"==typeof e){if(void 0!==e.id)return r(e.id);if(void 0!==e.title)return r(e.title);if(void 0!==e.name)return r(e.name);if(Array.isArray(e)&&1===e.length)return r(e[0]);if(Array.isArray(e)){var t=e.map(function(e){return r(e)}).filter(Boolean);if(t.length>0)return t.slice(0,3).join(",")}return}return String(e)}},o=r,i=r,a=["view","type","locationId","locatorId","subtypeId","practice","program"],l="slug";function u(e){var t={Locations:"true"},n=e[l];void 0!==n&&(t[l]=n);for(var r=0;r<a.length;r++){var o=a[r],i=e[o];void 0!==i&&(t[o]=i)}return t}var c=new Set(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([l,"Locations"],a,!0));function s(e){return Object.keys(e).some(function(e){return!c.has(e)})}function d(e){var t={OnlineScheduling:"true"},n=e[l];return void 0!==n&&(t[l]=n),t}},91991:(e,t,n)=>{n.d(t,{A:()=>u});var r=n(80263),o=n(88227),i=n.n(o),a=n(1503),l=n(10771);let u=function(e){var t=e.className,n=(0,a.qB)().getDictionaryValue,o=(0,l.yo)(n);return(0,r.jsx)("div",{className:"bg-neutral-100 shrink-0 px-3 py-2 flex flex-wrap justify-center gap-x-4 gap-y-2 ".concat(null!=t?t:""),role:"region","aria-label":(0,l.CQ)(n),children:o.map(function(e){var t=e.id,n=e.label,o=e.filename;return(0,r.jsxs)("div",{className:"flex items-center gap-2 text-neutral-20",children:[(0,r.jsx)(i(),{src:(0,l.Tx)(o),alt:"",width:24,height:24,className:"shrink-0"}),(0,r.jsx)("span",{children:n})]},t)})})}}}]);
2//# sourceMappingURL=buildkit-be2883e7-904f4ae510cf9020.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.