PageSourceSearch

https://www.caring.com/_next/static/chunks/86156-bfa5f254a5a2894a.js

js caring.com collected 2026-10-01 10:15:32 UTC 27,938 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[86156],{24654:function(){},75347:function(){},31777:function(){},34017:function(){},59905:function(){},15006:function(e,t,r){"use strict";r.d(t,{v:function(){return n}});let n=r(88582).BW.ASSISTED_LIVING},87681:function(e,t,r){"use strict";r.d(t,{B0:function(){return s},DP:function(){return u},k3:function(){return l}});var n=r(42798),o=r.n(n),a=r(31229),i=r(88582),c=r(577);let s=e=>{var t;return Object.values(null!==(t=null==e?void 0:e.pathname.split("/").filter(e=>e))&&void 0!==t?t:[]).find(e=>(0,c.Y)(e))},l=e=>u(e,{withRollUp:!0}),u=(e,t)=>{let{rollupType:r,state:n,city:c,slug:s}=e;try{let e=a.z.object({rollupType:a.z.string().min(1),state:a.z.string().min(1),city:a.z.string().min(1),slug:a.z.string().min(1)}).parse({rollupType:(null==t?void 0:t.withRollUp)?r:i.BW.SENIOR_LIVING,state:n,city:c,slug:s}),l=e.rollupType,u=o()(e.state),d=o()(e.city),v=e.slug;return(null==t?void 0:t.withRollUp)?"/".concat(l,"/").concat(u,"/").concat(d,"/").concat(v):"/".concat(u,"/").concat(d,"/").concat(v)}catch(e){return e instanceof a.z.ZodError&&console.error("buildProviderUrl: Invalid params",e.issues),""}}},703:function(e,t,r){"use strict";r.r(t),r.d(t,{TenantFunctionsContext:function(){return ei},TenantFunctionsProvider:function(){return ec},tenantSwitcher:function(){return el},useTenantFunctions:function(){return es}});var n=r(57437),o=r(99376),a=r(2265),i=r(15989),c=r(37955),s=r(91320),l=r(81479),u=r(64354),d=r(90261),v=r(82050),h=r(76616),p=r(4133),g=r(25614),m=r.n(g),y=r(42798),f=r.n(y),w=r(57685),S=r.n(w),C=r(88582),R=r(87681);let I={label:"Home",url:"/"},T=e=>({getProviderDetailsPath:P(e),getProviderDescription:N,getBreadcrumbLinks:b,getCareTypePath:j,getCareTypePathForSitemap:x,getCareTypeParamsForSitemap:k,generateContentForStateSitemap:D,getTrailingSlashURL:B,getReviewPath:_,getCountyForSearch:W}),P=e=>t=>{var r;let{url:n,locationUrl:o,slug:a,address:{city:i,state:c}={city:"",state:""},services:l=[]}=t,u=(0,R.B0)(e)||(0,s.vg)(f()(null===(r=l[0])||void 0===r?void 0:r.category.name))||C.BW.SENIOR_LIVING;return(n||o||(0,R.k3)({rollupType:u,state:c,city:i,slug:a})).toLowerCase()},N=e=>e.description||"",E=e=>{let t=e.pathname.split("/").filter(e=>e),r=Object.values(t).filter(e=>(0,d.Z)(e)),n=Object.values(e.params).find(e=>(0,v.WU)(e)),o=r.map(e=>S()(e)),a=o.map(e=>f()(e)),i=t.reduce((e,t,r)=>{let n=e[r-1],o=S()(t),a=n?[...n.segments,t]:[t];return e.push({label:o,segments:a}),e},[]).map(e=>{let{label:t,segments:r}=e,n=[...r];return{label:t,url:"/".concat(n.join("/"))}});return r.length>0||n?[I,...r.reduce((e,t,r)=>{let n="/".concat(a.slice(0,r+1).join("/")),i={label:o[r],url:n};return e.push(i),e},[]),...i.slice(r.length)]:[I,...i]},O=e=>{var t,r,n,o,a,i,s,u,d,v,h,p,g,m,y,f,w,S,R,I;let T={[C.BW.SENIOR_LIVING]:[C.BW.ASSISTED_LIVING,C.BW.MEMORY_CARE_FACILITIES,C.BW.NURSING_HOMES,C.BW.INDEPENDENT_LIVING,C.BW.CONTINUING_CARE_RETIREMENT_COMMUNITIES,C.BW.ADULT_DAY_CARE],[C.BW.SENIOR_CARE]:[C.BW.IN_HOME_CARE,C.BW.HOME_HEALTH_AGENCIES,C.BW.HOSPICES,C.BW.GERIATRIC_CARE_MANAGERS]}[(null===(t=e.rollup)||void 0===t?void 0:t.urlName)||C.BW.SENIOR_LIVING]||[],P=(null===(r=e.services)||void 0===r?void 0:r.reduce((t,r)=>{var n;let o=(0,l.Q)(null===(n=r.category)||void 0===n?void 0:n.name);if(!o)return t;let a=T.indexOf(o);if(-1===a)return t;let i=T.indexOf(t.highest);if((-1===i||a<i)&&(t.highest=o),(0,c.w)(o,e.careTypeStatus)){let e=T.indexOf(t.highestValid);(-1===e||a<e)&&(t.highestValid=o)}return t},{highest:"",highestValid:""}))||{highest:"",highestValid:""},N=P.highest||C.BW.ASSISTED_LIVING,E=[{label:null!==(g=null===(n=e.rollup)||void 0===n?void 0:n.singularSeoName)&&void 0!==g?g:"",url:"/".concat(null===(o=e.rollup)||void 0===o?void 0:o.urlName)},{label:null!==(m=null===(a=e.state)||void 0===a?void 0:a.name)&&void 0!==m?m:"",url:"/".concat(null===(i=e.rollup)||void 0===i?void 0:i.urlName,"/").concat(N,"/").concat(null===(s=e.state)||void 0===s?void 0:s.urlName)}];return P.highestValid&&E.push({label:null!==(R=null===(y=e.city)||void 0===y?void 0:y.name)&&void 0!==R?R:"",url:"/".concat(null===(f=e.rollup)||void 0===f?void 0:f.urlName,"/").concat(P.highestValid,"/").concat(null===(w=e.state)||void 0===w?void 0:w.urlName,"/").concat(null===(S=e.city)||void 0===S?void 0:S.urlName)}),E.push({label:null!==(I=e.name)&&void 0!==I?I:"",url:(null===(u=e.url)||void 0===u?void 0:u.toLowerCase())||"/".concat(null===(d=e.rollup)||void 0===d?void 0:d.urlName,"/").concat(null===(v=e.state)||void 0===v?void 0:v.urlName,"/").concat(null===(h=e.city)||void 0===h?void 0:h.urlName,"/").concat(null===(p=e.slug)||void 0===p?void 0:p.toLowerCase())}),E},b=e=>{let t,{provider:r,navigationData:n,catalog:o}=e;return t=r?O(r):E(n),(null==o?void 0:o.county)&&(t=L(t,null==o?void 0:o.county)),t},L=(e,t)=>{if(0===t.length||![4,5].includes(e.length)||e[e.length-1].label===t)return e;let r={label:t,url:"".concat(e[5===e.length?3:2].url,"/").concat((0,p.at)(t))},[n,o,a,i,c]=e;return(0,v.WU)(a.label)?[n,o,a,r,i]:c?[n,o,a,i,r,c]:[n,o,a,i,r]},j=(e,t,r)=>{var n,o,a,i,c,s,l;let d=t.pathname,v=(0,u.h)(t.params)||"",g=(null==e?void 0:null===(o=e.localResourceTypeRegion)||void 0===o?void 0:null===(n=o.state)||void 0===n?void 0:n.urlName)||"",m=(null==e?void 0:null===(i=e.localResourceTypeRegion)||void 0===i?void 0:null===(a=i.region)||void 0===a?void 0:a.urlName)||"",y=(null==e?void 0:null===(s=e.localResourceTypeRegion)||void 0===s?void 0:null===(c=s.localResourceType)||void 0===c?void 0:c.urlName)||"",f=
1d.split(v)[0],w=(0,h.x)(r,"".concat(f).concat((0,p.lF)(y),"/").concat((0,p.lF)(g),"/").concat((0,p.lF)(m)));return null!==(l=e.url)&&void 0!==l?l:w},x=e=>{let t=k(e),r=f()(t.careType),n=f()(t.state),o=f()(t.cityOrCounty),a=(0,s.vg)(r);return a!==r?"/".concat(a,"/").concat(r,"/").concat(n,"/").concat(o):"/".concat(a,"/").concat(n,"/").concat(o)},k=e=>{var t,r,n;return{state:String(null===(t=e.params)||void 0===t?void 0:t.param1),cityOrCounty:String(null===(r=e.params)||void 0===r?void 0:r.param3),careType:String(null===(n=e.params)||void 0===n?void 0:n.param2)}},D=e=>{let t={cities:{},counties:{}};for(let r of e)if(["geo-city","geo-county"].includes((null==r?void 0:r.type)?r.type:"")){let{state:e,county:n,city:o,careType:a,type:i,name:c}=r,s=n.toLowerCase().replace(/ /g,"-"),l=o.toLowerCase().replace(/ /g,"-");if("geo-county"===i){m()(t.counties[s])||(t.counties[s]=[]);let o="/sitemap/"+e+"/"+a+"/"+n;t.counties[s].push(A(r,o))}else{m()(t.cities[l])||(t.cities[l]=[]);let n="/sitemap/"+e+"/"+a+"/"+o;t.cities[l].push(A(r,n))}}return t},A=(e,t)=>({id:e.id,name:e.name||"",urlPath:t.toLowerCase().replace(/ /g,"-"),careType:e.careType}),B=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return(0,h.x)({default:!1,article:!1,city:!1,provider:!1,state:!1}[t],e)},_=e=>{let{rollupType:t,state:r,city:n,slug:o,url:a}=e;return(a||(0,R.k3)({rollupType:t,state:r,city:n,slug:o})).toLowerCase()},W=e=>e,U={getProviderDetailsPath:()=>"",getProviderDescription:()=>"",getBreadcrumbLinks:()=>[],getCareTypePath:()=>"",generateContentForStateSitemap:e=>{let[]=e},getTrailingSlashURL:()=>"",getReviewPath:()=>"",getCountyForSearch:()=>"",getCareTypePathForSitemap:()=>"",getCareTypeParamsForSitemap:()=>({state:"",cityOrCounty:"",careType:""})},F=e=>({...U,getProviderDetailsPath:q}),q=e=>{let{url:t,locationUrl:r,slug:n,address:{city:o,state:a}={city:"",state:""}}=e;return(t||r||(0,R.DP)({state:a,city:o,slug:n})).toLowerCase()};var G=r(15006);let V={label:"Home",url:"/"},M=()=>({getProviderDetailsPath:H,getProviderDescription:z,getBreadcrumbLinks:$,getCareTypePath:Q,getCareTypePathForSitemap:X,getCareTypeParamsForSitemap:ee,generateContentForStateSitemap:et,getTrailingSlashURL:er,getReviewPath:en,getCountyForSearch:ea}),H=e=>{let{address:{city:t,state:r}={city:"",state:""},seniorHomesUrl:n,locationUrl:o,url:a}=e;return(n||o||(a&&!J(a)?a:(0,R.DP)({state:r,city:t,slug:eo(e)}))).toLowerCase()},J=e=>!!e&&(e.startsWith("/senior-living/")||e.startsWith("/senior-care/")),z=e=>e.seniorHomesDescription||e.description||"",Z=(e,t)=>{let r=["careTypeOrState","careTypeOrCountyOrCity","careTypeOrProvider"],n=Object.values(e.params).find(e=>(0,d.Z)(e)),o=Object.values(e.params).find(e=>(0,v.WU)(e)),a=S()(n||t),i=f()(a),c=r.map(t=>e.params[t]).filter(Boolean);n&&(c=c.filter(e=>e!==n));let s=c.reduce((e,t,r)=>{let n=e[r-1],o=S()(t),a=n?[...n.segments,t]:[t];return e.push({label:o,segments:a}),e},[]).map(e=>{let{label:t,segments:n}=e,o=i===G.v,a=n.length===r.length,c=o||a?n:[...n,i];return{label:t,url:"/".concat(c.join("/"),"/")}});return n||o?[V,{label:a,url:"/".concat(i,"/")},...s]:[V,...s]},K=e=>({"Continuing Care Communities":"Continuing Care"})[e]||e,Y=(e,t)=>{var r,n,o,a,i,c,s,l,u,d,v,h,p,g,m,y,w;let C=K(((null===(r=e.services)||void 0===r?void 0:r.some(e=>f()(e.category.name)===G.v))?G.v:null!==(m=null===(a=e.services)||void 0===a?void 0:null===(o=a[0])||void 0===o?void 0:null===(n=o.category)||void 0===n?void 0:n.name)&&void 0!==m?m:G.v)||t),R=f()(C),I=S()(C),T=R===G.v;return[V,{label:I,url:"/".concat(R,"/")},{label:null!==(y=null===(i=e.state)||void 0===i?void 0:i.name)&&void 0!==y?y:"",url:T?"/".concat(null===(c=e.state)||void 0===c?void 0:c.urlName,"/"):"/".concat(null===(s=e.state)||void 0===s?void 0:s.urlName,"/").concat(R,"/")},{label:null!==(w=null===(l=e.city)||void 0===l?void 0:l.name)&&void 0!==w?w:"",url:T?"/".concat(null===(u=e.state)||void 0===u?void 0:u.urlName,"/").concat(null===(d=e.city)||void 0===d?void 0:d.urlName,"/"):"/".concat(null===(v=e.state)||void 0===v?void 0:v.urlName,"/").concat(null===(h=e.city)||void 0===h?void 0:h.urlName,"/").concat(R,"/")},{label:e.name,url:e.url||"/".concat(null===(p=e.state)||void 0===p?void 0:p.urlName,"/").concat(null===(g=e.city)||void 0===g?void 0:g.urlName,"/").concat(eo(e))}]},$=e=>{let{navigationData:t,provider:r,catalog:n}=e,o=(null==n?void 0:n.careType)||G.v;return r?Y(r,o):Z(t,o)},Q=(e,t,r)=>{var n,o,a,i,c,s,l;let d=t.pathname,v=(0,u.h)(t.params)||"",g=(null==e?void 0:null===(o=e.localResourceTypeRegion)||void 0===o?void 0:null===(n=o.state)||void 0===n?void 0:n.urlName)||"",m=(null==e?void 0:null===(i=e.localResourceTypeRegion)||void 0===i?void 0:null===(a=i.region)||void 0===a?void 0:a.urlName)||"",y=(null==e?void 0:null===(s=e.localResourceTypeRegion)||void 0===s?void 0:null===(c=s.localResourceType)||void 0===c?void 0:c.urlName)||"",f=
1d.split(v)[0],w=(0,h.x)(r,"".concat(f).concat((0,p.lF)(g),"/").concat((0,p.lF)(m),"/").concat((0,p.lF)(y)));return null!==(l=e.url)&&void 0!==l?l:w},X=e=>{let t=ee(e),r=f()(t.careType),n=f()(t.state),o=f()(t.cityOrCounty);return r!==G.v?"/".concat(n,"/").concat(o,"/").concat(r,"/"):"/".concat(n,"/").concat(o,"/")},ee=e=>{var t,r,n;return{state:String(null===(t=e.params)||void 0===t?void 0:t.param1),cityOrCounty:String(null===(r=e.params)||void 0===r?void 0:r.param2),careType:String(null===(n=e.params)||void 0===n?void 0:n.param3)}},et=e=>{let t={cities:{},counties:{}};for(let r of e){let{urlPath:e,city:n,county:o}=r,a={...r},i=e.split("/");if(i.shift(),[2,3].includes(i.length)){if(!n&&!o)continue;let[,e]=i,c=null!=e?e:r.name,s=o.toLowerCase().replace(/ /g,"-"),l=n.toLowerCase().replace(/ /g,"-");a.name=c,(0,d.Z)(i[i.length-1])||(a.urlPath=a.urlPath.toLowerCase().replace(/ /g,"-")+"/"+G.v),a.urlPath="/sitemap"+a.urlPath.toLowerCase().replace(/ /g,"-")+"/",e.includes("county")?(m()(t.counties[s])||(t.counties[s]=[]),t.counties[s].push(a)):(m()(t.cities[l])||(t.cities[l]=[]),t.cities[l].push(a))}}return t},er=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return(0,h.x)({state:!0,city:!0,provider:!1,article:!0,default:!0}[t],e)},en=e=>{let{state:t,city:r,slug:n,url:o}=e;return(o||(0,R.DP)({state:t,city:r,slug:n})).toLowerCase()},eo=e=>e.seniorHomesSlug||e.slug,ea=e=>e.replace("County","").trim(),ei=(0,a.createContext)(F()),ec=e=>{let{tenant:t,children:r}=e,a=(0,o.usePathname)(),i=(0,o.useParams)(),c=el(t,{pathname:null!=a?a:"",params:null!=i?i:{}});return(0,n.jsx)(ei.Provider,{value:{...c},children:r})},es=()=>{let e=(0,a.useContext)(ei);if(void 0===e)throw Error("\uD83D\uDEA8 useTenantFunctions must be used within a TenantFunctionsContext");return e},el=(e,t)=>
1{switch(e){case i.GK.SeniorHomesDomains.LIVE:return M();case i.GK.CaringDomains.LIVE:return T(t);default:return F()}}},50948:function(e,t,r){"use strict";r.d(t,{m:function(){return R}});var n=r(79332),o=r(27080),a=r(64927),i=r(15989),c=r(40443),s=r(42798),l=r.n(s),u=r(90498),d=r.n(u),v=r(27027),h=r(4133);let p=e=>{var t,r,n,o,a,i,s;let u=(null===(t=e.promotions)||void 0===t?void 0:t.length)>0,p=(null===(r=e.photos)||void 0===r?void 0:r.length)>0,g=(null===(n=e.services)||void 0===n?void 0:n.map(e=>{var t;return null===(t=e.category)||void 0===t?void 0:t.name}))||[],m=e.reviews&&e.reviews.map(e=>({...e,providerResponse:e.providerResponse&&d()((0,h.d2)(e.providerResponse))})),y=e.description&&d()(e.description,{allowedAttributes:{a:[...d().defaults.allowedAttributes.a,"data-*"]},transformTags:{h1:"p",h2:"p",h3:"p",h4:"p",h5:"p",h6:"p"}}),f=null===(o=e.awards)||void 0===o?void 0:o.filter(e=>["Provider of Choice","Employer of Choice","Leader in Experience","Home Care Pulse Certified"].includes(e.name)),w=null==f?void 0:f.filter(e=>2026===e.year),S=(0,v.i3)(e);return{...e,averageRating:e.averageRating&&parseFloat((0,c.A6)(e.averageRating)),description:y,caringStars:null===(a=e.awards)||void 0===a?void 0:a.filter(e=>"Caring Stars"===e.name),homeCarePulse:w,rollup:e.rollupType,hasActivePromotions:u,hasImages:p,tags:g,reviews:m,careType:l()(g[0]||""),careTypesDescription:(0,v.D$)(g,null===(i=e.city)||void 0===i?void 0:i.urlName,null===(s=e.state)||void 0===s?void 0:s.urlName,e.careTypeStatus),isIndexed:!S}};var g=r(32803),m=r.n(g),y=r(703);let f=e=>{let{data:t,city:r,state:n,domain:o}=e;return t.map(e=>{let{review:t,location:a}=e,{id:i,careType:c,content:s,createdAt:l,name:u,providerResponse:v,rating:h,title:p}=t,{name:g,phoneNumber:f,image:w,slug:S,cityURLName:C,stateURLName:R,rollupType:I,url:T}=a,P=(0,y.tenantSwitcher)(o).getReviewPath({rollupType:I,state:n||R,city:r||C,slug:S,url:T}),N="".concat(o).concat(P);return{id:i,authorName:u,careType:c,content:m()(d()(s)),createdAt:l,image:w,path:P,providerResponse:v,rating:h,resourceName:g,resourceUrl:N,slug:S,telephone:f,title:p}})},w=async e=>{let t=e;if(e.includes("iframe")){var r,n;for(let o of[...null!==(r=e.matchAll(/<iframe[^>]*\ssrc=["'](https?:\/\/[^"']+)["'][^>]*>/gi))&&void 0!==r?r:[]]){let e=o[1];if(e&&(e.includes("youtube")||e.includes("vimeo"))){if(e.includes("http://")){let r=e.replace("http://","https://");t=t.replace(e,r),e=r}if(200!==(await fetch(e)).status){let r=e.replace("?","\\?"),o=RegExp("<iframe[^>]*src=[\"']".concat(r,"[\"'][^>]*>[^<]*<\\/iframe>"),"ig"),a=null===(n=t.match(o))||void 0===n?void 0:n[0];a&&(t=t.replace(a,""))}}}}return t},S=i.GK.CaringDomains.LIVE,C="https://api.caring.com";class R{constructor(e){var t=this;this.getVariant=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"?",r=arguments.length>1?arguments[1]:void 0,o=t.domain;return(0,n.M)(o)?"".concat(e,"variant=seniorhomes"):o===i.GK.CaringDomains.LIVE&&"senior-care"===r?"".concat(e,"careType=seniorcare"):""},this.getLocation=async(e,t)=>{try{if("settings"===e)return null;let r=await fetch("".concat(C,"/v2/location/").concat(e).concat(this.getVariant("?",t)));if(200===r.status){let e=await r.json();if(e.description){let t=await w(e.description);e.description=t}return p(e)}return null}catch(e){return null}},this.getLocationsByIds=async e=>{try{let t=await fetch("".concat(C,"/v1/location/by-ids"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:e})});if(200!==t.status)throw Error("Unexpected response: ".concat(JSON.stringify(t)));return(await t.json()).map(p)}catch(t){return console.error("Unexpected error in getLocationsByIds",{ids:e,error:t}),[]}},this.getLocationAutocomplete=async e=>{let{query:t,pageSize:r=10}=e;try{if(!t||t.trim().length<3)return{locations:[]};let e=new URLSearchParams({query:t.trim(),pageSize:r.toString()}),n=await fetch("".concat(C,"/v1/location/autocomplete-suggestions?").concat(e));if(!n.ok)return console.error("Location autocomplete API error:",n.statusText),{locations:[]};return await n.json()}catch(e){return console.error("Location autocomplete fetch error:",e),{locations:[]}}},this.getLocationByUrl=async e=>{try{var t,r,n,o;let a=await fetch("".concat(C,"/v3/location").concat(e,"?domain=").concat(this.domain),{cache:"force-cache"}),i=await a.json();if((null===(t=i.meta)||void 0===t?void 0:t.statusCode)!==200&&(null===(r=i.meta)||void 0===r?void 0:r.statusCode)!==301&&(null===(n=i.meta)||void 0===n?void 0:n.statusCode)!==304||!i||404===i.statusCode){let t=(null==i?void 0:i.meta)?i.meta:i.message;"getLocationByUrl V3 err: ".concat(e," | ").concat(JSON.stringify(t)),console.error("Request context:",{url:e,domain:this.domain,statusCode:(null==i?void 0:null===(o=i.meta)||void 0===o?void 0:o.statusCode)||i.statusCode,endpoint:"/v3/location".concat(e,"?domain=").concat(this.domain)})}return p(i)}catch(t){return console.error("Unexpected error in getLocationByUrl for ".concat(e,":"),t),null}},this.getTopReviews=async e=>{let{careType:t,city:r,state:n,county:o,limit:a="5"}=e;try{if(!r&&!n&&!o&&!t)return null;let e=new URLSearchParams({careType:t||"",city:r||"",state:n||"",county:o||"",count:a}),i=await fetch("".concat(C,"/v1/location/reviews/by-locale/?").concat(e).concat(this.getVariant("&"))),c=await i.json();if(200===i.status)return f({data:c,city:r,state:n,domain:this.domain});return null}catch(e){return console.error("getTopReviews: Error getting data.",e),null}}
1,this.getSiteMap=async e=>{try{let t=await fetch("".concat(C,"/v1/site-map/").concat(e).concat(this.getVariant())),r=await t.json();if(200===t.status)return r;return[]}catch(e){return console.error(e),[]}},this.sendInquiryForm=async e=>{let{partnerToken:t,body:n,featureOverride:o}=e;try{let{provider_id:e}=n,o="".concat(C,"/v4/partner/inquiry"),a=await fetch(o,{method:"POST",headers:{"Caring-Partner":t,"Content-Type":"application/json"},body:JSON.stringify(n)}),i=await a.json();if(null==i?void 0:i.result)return{success:!0,message:"Ok",provider:i.provider};let c=(null==i?void 0:i.error_code)||"500",s=(null==i?void 0:i.error_message)?JSON.stringify(null==i?void 0:i.error_message):"Server Error",{logApiError:l}=r(35538);return l("Inquiry submission error",{endpoint:o,errorCode:c,errorMessage:s,requestInfo:{hasProviderId:!!e,domain:this.domain}}),{success:!1,message:"".concat(c," - ").concat(s)}}catch(t){let{logApiError:e}=r(35538);return e("Unexpected error in sendInquiryForm",{error:String(t),domain:this.domain,requestInfo:{hasProviderId:!!n.provider_id}}),{success:!1,message:String(t)}}},this.sendSemInquiryForm=async e=>{let{partnerToken:t,body:n}=e,o="".concat(C,"/v1/sem/inquiry");try{let e=await fetch(o,{method:"POST",headers:{"Caring-Partner":t,"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:new URLSearchParams(n)});if(e.ok)return{success:!0,message:"Ok"};let a=await e.text();console.error("SEM Inquiry API error: Status ".concat(e.status,", Response: ").concat(a));let{logApiError:i}=r(35538);return i("SEM Inquiry submission error",{endpoint:o,status:e.status,errorText:a,domain:this.domain}),{success:!1,message:"".concat(e.status," - ").concat(a)}}catch(t){let{logApiError:e}=r(35538);return e("Unexpected error in sendSemInquiryForm",{error:String(t),domain:this.domain}),{success:!1,message:String(t)}}},this.searchProvidersByFacets=async e=>{try{let t=(0,o.o)(null==e?void 0:e.shouldShowOnlyIndexedProviders)?{shouldShowOnlyIndexedProviders:!0}:{},r=(0,a.stringify)({...e,domain:this.domain,...t}),n=await fetch("".concat(C,"/v1/faceted-search?").concat(r),{method:"GET",headers:{"Content-Type":"application/json"}});if(!n.ok)throw Error("searchProvidersByFacets: Server error.");return(await n.json()).data}catch(e){return console.error("searchProvidersByFacets: Error getting data.",e),{listId:"",queryId:"",results:[],totalItems:0,totalNearbyItems:0,totalPages:0,totalRegionItems:0,priceRange:{min:0,max:0,median:0}}}},this.isLatLongInvalid=(e,t)=>"0"===e||"0"===t||""===e||""===t||void 0===e||void 0===t,this.getProviders=async e=>{try{let t=new URL("http://caring.com".concat(e.geoUrl)).pathname,r={page:e.page,domain:this.domain};(0,o.o)(e.shouldShowOnlyIndexedProviders)&&(r.shouldShowOnlyIndexedProviders=!0),(0,o.o)(e.shouldExcludeNearbyResults)&&(r.shouldExcludeNearbyResults=!0),e.hitsPerPage&&(r.hitsPerPage=e.hitsPerPage);let n=(0,a.stringify)(r),i=await fetch("".concat(C,"/v2/enhanced-search").concat(t,"?").concat(n),{method:"GET",headers:{"Content-Type":"application/json"}});if(!i.ok)throw Error("getProviders: Server error.");return(await i.json()).data}catch(e){return console.error("getProviders: Error getting data.",e),{listId:"",queryId:"",totalRegionItems:0,totalNearbyItems:0,totalItems:0,totalPages:0,results:[]}}},this.getNearbyProviders=async e=>{try{let t=(0,a.stringify)({...e,domain:this.domain}),r=await fetch("".concat(C,"/v1/nearby-search?").concat(t),{method:"GET",headers:{"Content-Type":"application/json"}});if(!r.ok)throw Error("getNearbyProviders: Server error.");let n=await r.json();return{totalRegionItems:0,...n.data}}catch(e){return console.error("getNearbyProviders: Error getting data.",e),{listId:"",queryId:"",totalRegionItems:0,totalNearbyItems:0,totalItems:0,totalPages:0,results:[]}}},this.getReviewByToken=async e=>{try{if(!e)return null;let t=await fetch("".concat(C,"/v1/dxp/reviews?token=").concat(e)),r=await t.json();if(200===t.status)return r;return null}catch(e){return null}},this.getReportMoveInLocations=async e=>{try{let t=await fetch("".concat(C,"/v1/dxp/move-in?token=").concat(e)),r=await t.json();if(200===t.status)return r;return null}catch(e){return null}},this.postReportMoveIn=async e=>{try{if((await fetch("".concat(C,"/v1/dxp/move-in"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok)return{success:!0};return{success:!1,error:"An error occurred while processing the request"}}catch(e){return{success:!1,error:"An error occurred while processing the request"}}},this.postReviewResponse=async(e,t)=>{try{let r=await fetch("".concat(C,"/v1/dxp/reviews/response?token=").concat(e),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(r.ok)return{success:!0};let n=await r.json();return{success:!1,error:n.message}}catch(e){return{success:!1,error:"An error occurred while processing the request"}}},this.postReviewContest=async(e,t)=>{try{let r=await fetch("".concat(C,"/v1/dxp/reviews/contest?token=").concat(e),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(r.ok)return{success:!0};let n=await r.json();return{success:!1,error:n.message}}catch(e){return{success:!1,error:"An error occurred while processing the request"}}},this.postConfirmDuplicatedReview=async e=>await this.postConfirmOrDenyDuplicatedReview(e,"".concat(C,"/v1/dxp/reviews/review/duplicate/approve/")),this.postDenyDuplicatedReview=async e=>await this.postConfirmOrDenyDuplicatedReview(e,"".concat(C,"/v1/dxp/reviews/review/duplicate/deny/")),this.postConfirmOrDenyDuplicatedReview=async(e,t)=>{try{let r=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({confirmationToken:e})});if(r.ok)return{success:!0};let n=await r.json();return{success:!1,error:n.error||n.message||"An error occurred while processing the request"}}catch(e){return{success:!1,error:"An error occurred while processing the request"}}},this.getGeoPageData=async e=>{try{let t=e.startsWith("/")?e.slice(1):e,r=await fetch("".concat(C,"/v2/geo-pages/").concat(t,"?").concat((0,a.stringify)({domain:this.domain})));return await r.json()||null}catch(e){return console.error("getGeoPageData: Error getting data.",e),null}},this.getReviewRedirect=async e=>(await fetch("".concat(C,"/v1/dxp/reviews/legacy?id=").concat(e))).json(),this.getRecentReviews=async e=>{let{careType:t,city:r,county:n,state:o,limit:a,domain:i}=e;try{let e=new URLSearchParams(Object.entries({careType:t,city:r,county:n,state:o,limit:a,domain:i}).filter(e=>{let[t,r]=e;return void 0!==r})).toString(),c=await fetch("".concat(C,"/v1/dxp/location-reviews/recent?").
1concat(e));if(!c.ok){let e=await c.json();return console.error("getRecentReviews: ".concat(e.message)),null}return await c.json()}catch(e){return console.error("getRecentReviews: Error getting data.",e),null}},this.getLeads=async e=>{try{let t=await fetch("".concat(C,"/v1/b2c/care-recipient-leads/q/").concat(e));if(!t.ok)throw Error("Failed to fetch leads");return t.json()}catch(e){return console.error("fetchLeads: Error getting data.",e),null}},this.getPage=async e=>this.fetchResponseJSON("".concat(C,"/v1/magnolia/pages?path=").concat(e),{acceptedStatus:[404]}),this.getPriceRange=async e=>{let{careType:t,city:r,county:n,state:o}=e;try{let e=new URLSearchParams;e.append("domain",this.domain),t&&e.append("careType",t),r&&e.append("city",r),n&&e.append("county",n),o&&e.append("state",o);let a=await fetch("".concat(C,"/v1/search/price-range?").concat(e.toString()),{method:"GET",headers:{"Content-Type":"application/json"}});if(!a.ok)return console.error("getPriceRange: Server error.",a.statusText),null;return await a.json()}catch(e){return console.error("getPriceRange: Error getting data.",e),null}},this.fetchResponseJSON=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{acceptedStatus:[]};try{let r=await fetch(e);if(r.ok)return await r.json();if(!t.acceptedStatus.includes(r.status))throw Error();return null}catch(t){return console.error("Error getting data from ".concat(e),t),null}},this.domain=e||S}}},35538:function(e,t,r){"use strict";r.r(t),r.d(t,{logApiError:function(){return n},logWarning:function(){return o}});let n=(e,t)=>{console.error("API Error: ".concat(e),{timestamp:new Date().toISOString(),...t})},o=(e,t)=>{console.warn("Warning: ".concat(e),{timestamp:new Date().toISOString(),...t})}},64354:function(e,t,r){"use strict";r.d(t,{h:function(){return i}});var n=r(90261),o=e=>["search"].includes(null==e?void 0:e.toString()),a=r(82050);let i=e=>{if(!e)return null;let t=null==e?void 0:e.careType,r=null==e?void 0:e.careTypeOrState,i=null==e?void 0:e.careTypeOrProvider,c=null==e?void 0:e.careTypeOrCountyOrCity;return o(r)?null:t||((0,n.Z)(i)?i:(0,n.Z)(c)?c:(0,a.WU)(r)?null:r)}},90261:function(e,t,r){"use strict";var n=r(88582);t.Z=e=>Object.values(n.BW).includes(null==e?void 0:e.toString())},577:function(e,t,r){"use strict";r.d(t,{Y:function(){return o}});var n=r(88582);let o=e=>[n.BW.SENIOR_LIVING,n.BW.SENIOR_CARE].includes(null==e?void 0:e.toString())},82050:function(e,t,r){"use strict";r.d(t,{$q:function(){return a},WU:function(){return i}});var n=r(42798),o=r.n(n);let a=["alaska","alabama","arkansas","arizona","california","colorado","connecticut","district-of-columbia","delaware","florida","georgia","guam","hawaii","iowa","idaho","illinois","indiana","kansas","kentucky","louisiana","massachusetts","maryland","maine","michigan","minnesota","missouri","mississippi","montana","north-carolina","north-dakota","nebraska","new-hampshire","new-jersey","new-mexico","nevada","new-york","ohio","oklahoma","oregon","pennsylvania","puerto-rico","rhode-island","south-carolina","south-dakota","tennessee","texas","utah","virginia","vermont","washington","wisconsin","west-virginia","wyoming"],i=e=>a.includes(o()(e))},27080:function(e,t,r){"use strict";r.d(t,{o:function(){return n}});let n=e=>{if(void 0===e)return!1;if("boolean"==typeof e)return e;if("string"==typeof e){let t=e.toLowerCase();return"true"===t||"yes"===t||"1"===t||"on"===t||"enabled"===t}return!1}},76616:function(e,t,r){"use strict";r.d(t,{x:function(){return n}});let n=(e,t)=>e&&!t.endsWith("/")?t.concat("/"):!e&&t.endsWith("/")?t.slice(0,-1):t}}]);

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.