1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="b1c986e1-a5b2-43ce-86fa-3f8893116d30",e._sentryDebugIdIdentifier="sentry-dbid-b1c986e1-a5b2-43ce-86fa-3f8893116d30")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7437],{23716:(e,a,i)=>{"use strict";i.d(a,{A:()=>r});var s=i(37876),t=i(14232),n=i(26207),l=i(90534);let d=i(87856).Ay.div.withConfig({componentId:"sc-289540f6-0"})(["button{display:flex;flex-direction:",";align-items:center;grid-gap:2px;padding:4px;min-width:",";max-width:",";white-space:nowrap;background:transparent;}button:hover{background:#ccc;}.copy-button-text{font-size:11px;color:",";}.copy-button-text.copied{color:var(--success);}"],e=>e.flexDirection,e=>"row"===e.flexDirection?"fit-content":"50px",e=>"row"===e.flexDirection?"fit-content":"50px",e=>e.darkBackground?"#fff":"var(--gray-500)"),r=({copyValue:e,darkBackground:a=!1,flexDirection:i="column"})=>{let[r,c]=(0,t.useState)(!1),o=async a=>{try{await navigator.clipboard.writeText(e),c(!0)}catch(e){console.error("Failed to copy!",e)}};return(0,t.useEffect)(()=>{let e;return r&&(e=setTimeout(()=>{c(!1)},5e3)),()=>{e&&clearTimeout(e)}},[r]),(0,s.jsx)(d,{className:"copy-button-container",darkBackground:a,flexDirection:i,children:(0,s.jsxs)(n.A,{className:"copy-button",theme:"blank",small:!0,title:"Copy to Clipboard",onClick:e=>{e.stopPropagation(),o(e)},children:[(0,s.jsx)(l.A,{width:"16",height:"16",fill:r?"var(--success)":a?"#fff":"var(--gray-500)"}),(0,s.jsx)("span",{className:`copy-button-text ${r?"copied":""}`,children:r?"Copied!":"Copy"})]})})}},44895:(e,a,i)=>{"use strict";i.d(a,{A:()=>p});var s=i(37876),t=i(49519),n=i(87856),l=i(93200);let d=n.Ay.div.withConfig({componentId:"sc-fae2e6f3-0"})(["color:var(--gray-500);.listing-details__name{font-weight:bold;font-size:16px;letter-spacing:-0.04em;margin-bottom:8px;color:var(--gray-500);display:flex;}.listing-details__name:hover{color:var(--gray-500);}.listing-details__address-container{display:flex;flex-wrap:wrap;grid-gap:6px;margin-bottom:8px;}.listing-details__container{display:flex;flex-direction:column;align-items:flex-start;grid-gap:6px;flex-wrap:wrap;}.listing-details__rating{display:flex;align-items:center;letter-spacing:-0.04em;}.listing-details__rating-overall{margin:0 4px;font-weight:bold;}.listing-details__rating-star{margin-right:4px;}.listing-details__reviews-count{font-size:12px;color:var(--gray-400);}.listing-details__reviews-count:hover{text-decoration:none;}.listing-details__phone-container{display:flex;align-items:center;grid-gap:6px;}.listing-details__phone-container .copy-button{display:none;}@media (min-width:","){.listing-details__phone-container .copy-button{display:flex;}}.listing-details__phone{display:block;font-size:14px;font-weight:700;line-height:16px;}.listing-details__view-profile-link{display:block;font-size:14px;line-height:20px;text-decoration:underline;}"],l.SL);var r=i(5703),c=i(23716),o=i(4371),x=i(52973);let p=({url:e="",name:a="",address:i={},ratings:n={},reviewsCount:l=0,distance:p=null,phone:m="",handleClick:h=()=>{}})=>(0,s.jsxs)(d,{className:"listing-details",children:[(0,s.jsx)("a",{className:"listing-details__name",onClick:h,href:e,...(0,x.fB)(e),children:(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:a}})}),(0,s.jsxs)("div",{className:"listing-details__address-container text-xs",children:[(0,s.jsxs)("div",{className:"listing-details__address",children:[i.street_address||""," ",i.city||"",","," ",i.region||""," ",i.zip_code||""]}),p&&(0,s.jsx)("div",{className:"listing-details__distance",children:` - ${p} Miles Away`})]}),(0,s.jsxs)("div",{className:"listing-details__container",children:[n.overall&&"NaN"!==n.overall&&(0,s.jsxs)("div",{className:"listing-details__rating",children:[n.overall&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.A,{}),(0,s.jsx)("div",{className:"listing-details__rating-overall",children:n.overall})]}),l?(0,s.jsxs)("a",{className:"listing-details__reviews-count",onClick:h,href:`${e}#reviews`,...(0,x.fB)(e),children:["(",l,")"]}):null]}),m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"listing-details__phone-container",children:[(0,s.jsx)("a",{className:"listing-details__phone",href:`tel:+1${m}`,children:(0,r.n4)(m)}),(0,s.jsx)(o.A,{children:(0,s.jsx)(c.A,{copyValue:(0,r.n4)(m),flexDirection:"row"})})]}),(0,s.jsx)("a",{className:"listing-details__view-profile-link",onClick:h,href:e,...(0,x.fB)(e),children:(0,s.jsx)("span",{children:"View Profile"})})]})]})]})},49519:(e,a,i)=>{"use strict";i.d(a,{A:()=>t});var s=i(37876);function t(e){return(0,s.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("rect",{width:"18",height:"18",rx:"4",fill:"#FDF6E7"}),(0,s.jsx)("path",{d:"M12.7733 15.1249C12.6812 15.1253 12.5913 15.0966 12.5165 15.0429L8.99983 12.4934L5.48315 15.0429C5.40802 15.0974 5.3175 15.1266 5.22469 15.1262C5.13188 15.1259 5.04158 15.0961 4.96684 15.041C4.89211 14.986 4.83681 14.9086 4.80895 14.8201C4.78109 14.7315 4.78211 14.6364 4.81186 14.5485L6.18342 10.4861L2.62873 8.04837C2.55174 7.99562 2.49362 7.91964 2.46289 7.83152C2.43215 7.7434 2.4304 7.64775 2.45789 7.55856C2.48537 7.46938 2.54067 7.39131 2.61568 7.33579C2.69069 7.28026 2.7815 7.25017 2.87483 7.24993H
17.26022L8.58366 3.17708C8.61217 3.08915 8.66779 3.0125 8.74256 2.95815C8.81733 2.90379 8.90739 2.87451 8.99983 2.87451C9.09227 2.87451 9.18233 2.90379 9.25709 2.95815C9.33186 3.0125 9.38749 3.08915 9.416 3.17708L10.7394 7.2513H15.1248C15.2183 7.25125 15.3093 7.28113 15.3845 7.33655C15.4598 7.39197 15.5153 7.47002 15.5429 7.55928C15.5706 7.64854 15.569 7.74431 15.5382 7.83256C15.5075 7.92082 15.4494 7.99693 15.3723 8.04973L11.8162 10.4861L13.187 14.5474C13.2092 14.6132 13.2154 14.6833 13.2052 14.7519C13.195 14.8206 13.1686 14.8858 13.1281 14.9422C13.0877 14.9986 13.0345 15.0446 12.9728 15.0764C12.911 15.1082 12.8427 15.1248 12.7733 15.1249Z",fill:"#ECB134"})]})}i(14232)},59330:(e,a,i)=>{"use strict";i.d(a,{A:()=>d});var s=i(37876),t=i(74493),n=i.n(t),l=i(93200);let d=({noMargin:e,style:a,pageContentStyle:i,children:t})=>(0,s.jsxs)("div",{style:a,className:n().dynamic([["1e2967125d7c69df",[l.jW,e?0:"24px 15px",l.SL,e?0:"40px 15px"]]]),children:[(0,s.jsx)("div",{style:i,className:n().dynamic([["1e2967125d7c69df",[l.jW,e?0:"24px 15px",l.SL,e?0:"40px 15px"]]])+" page-content",children:t}),(0,s.jsx)(n(),{id:"1e2967125d7c69df",dynamic:[l.jW,e?0:"24px 15px",l.SL,e?0:"40px 15px"],children:`div.__jsx-style-dynamic-selector{margin-right:auto;margin-left:auto;max-width:${l.jW};padding:0px}.page-content.__jsx-style-dynamic-selector{height:100%;margin:${e?0:"24px 15px"}}@media screen and (min-width:${l.SL}){.page-content.__jsx-style-dynamic-selector{margin:${e?0:"40px 15px"}}}`})]})},86362:(e,a,i)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/compare",function(){return i(87497)}])},87497:(e,a,i)=>{"use strict";i.r(a),i.d(a,{__N_SSP:()=>T,default:()=>F});var s=i(37876),t=i(74493),n=i.n(t),l=i(42948),d=i(77328),r=i.n(d),c=i(59330),o=i(87165),x=i(14232),p=i(19580),m=i(78537);function h(e){let a=e.width||45,i=e.height||45;return(0,s.jsxs)("svg",{version:"1.1",id:"Layer_1",x:"0px",y:"0px",viewBox:"0 0 50 50",...e,className:n().dynamic([["dc6efe729ab91799",[a,i]]])+" "+(e&&null!=e.className&&e.className||""),children:[(0,s.jsx)("path",{fill:"none",d:"M6.4,25c0,5,2,9.6,5.3,13c0.1,0.1,0.1,0.1,0.2,0.2l26.3-26.3c-3.4-3.4-8-5.5-13.2-5.5C14.7,6.4,6.4,14.7,6.4,25 z",className:n().dynamic([["dc6efe729ab91799",[a,i]]])}),(0,s.jsx)("path",{fill:e.fill||"var(--primary)",d:"M11.7,38C8.4,34.6,6.4,30,6.4,25C6.4,14.7,14.7,6.4,25,6.4c5.1,0,9.8,2.1,13.2,5.5L41,9 c-4.1-4.1-9.8-6.6-16-6.6C12.5,2.4,2.4,12.5,2.4,25c0,6.1,2.4,11.6,6.3,15.7C8.8,40.8,8.9,40.9,9,41l2.8-2.8 C11.8,38.1,11.7,38.1,11.7,38z",className:n().dynamic([["dc6efe729ab91799",[a,i]]])}),(0,s.jsx)(n(),{id:"dc6efe729ab91799",dynamic:[a,i],children:`@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}svg.__jsx-style-dynamic-selector{animation:rotate 700ms linear infinite;width:100%;height:100%;max-width:${a}px;max-height:${i}px}`})]})}var f=i(52973),y=i(93200),g=i(5703);let u=({selectFacility:e=()=>{},facilities:a=[]})=>{let i=a?.length>=3,[t,l]=(0,x.useState)(""),[d,r]=(0,x.useState)([]),[c,u]=(0,x.useState)(!1),_=(0,f.d7)(1e3,async()=>{try{u(!0);let e=await fetch("/api/search_facilities/",{method:"POST",body:JSON.stringify({filters:{name:(0,f.xV)(t)}}),headers:{"Content-Type":"application/json","XSRF-TOKEN":(0,o.Ri)("XSRF-TOKEN")}}),a=await e.json();r(a)}catch(e){console.warn(e),r([])}finally{u(!1)}});return(0,s.jsxs)(m.A,{style:{width:"100%"},onClick:()=>r([]),children:[(0,s.jsxs)("div",{className:n().dynamic([["2e692c38b538856d",[y.SL,(0,g.fE)("dropdownMenu")]]])+" search-listings",children:[(0,s.jsxs)("div",{className:n().dynamic([["2e692c38b538856d",[y.SL,(0,g.fE)("dropdownMenu")]]])+" search-input",children:[(0,s.jsx)(p.A,{fill:"var(--gray)"}),(0,s.jsx)("input",{type:"text",onChange:e=>{l(e.target.value),i||_()},placeholder:"Search for a facility",value:t,className:n().dynamic([["2e692c38b538856d",[y.SL,(0,g.fE)("dropdownMenu")]]])})]}),(0,s.jsx)("div",{className:n().dynamic([["2e692c38b538856d",[y.SL,(0,g.fE)("dropdownMenu")]]])+" results-container",children:(0,s.jsx)("div",{style:{display:d?.length>0||c?"block":"none"},className:n().dynamic([["2e692c38b538856d",[y.SL,(0,g.fE)("dropdownMenu")]]])+" results",children:c?(0,s.jsxs)("div",{className:n().dynamic([["2e692c38b538856d",[y.SL,(0,g.fE)("dropdownMenu")]]])+" loading",children:[(0,s.jsx)(h,{width:20,height:20})," Loading..."]}):d?.length>0?d.filter(e=>!a.some(a=>a.listing_id===e.listing_id)).map(a=>(0,s.jsx)("div",{onClick:()=>{e(a),r([]),l("")},className:n().dynamic([["2e692c38b538856d",[y.SL,(0,g.fE)("dropdownMenu")]]])+" result",children:a.name},a.listing_id)):(0,s.jsx)("div",{className:n().dynamic([["2e692c38b538856d",[y.SL,(0,g.fE)("dropdownMenu")]]])+" no-results",children:"No results found"})})}),(0,s.jsx)("div",{className:n().dynamic([["2e692c38b538856d",[y.SL,(0,g.fE)("dropdownMenu")]]])+" info",children:"You can compare up to 3 facilities at a time."}),i&&(0,s.jsx)("div",{className:n().dynamic([["2e692c38b538856d",[y.SL,(0,g.fE)("dropdownMenu")]]])+" error",children:"Please remove a facility to add a new one."})]}),(0,s.jsx)(n(),{id:"2e692c38b538856d",dynamic:[y.SL,(0,g.fE)("dropdownMenu")],children:`.search-listings.__jsx-style-dynamic-selector{width:100%;max-width:100%;margin-bottom:24px}@media screen and (min-width:${y.SL}){.search-listings.__jsx-style-dynamic-selector{width:400px;margin:auto}}.search-input.__jsx-style-dynamic-selector{display:flex;align-items:center;gap:10px;border:1px solid#ccc;border-radius:8px;padding-left:10px;overflow:hidden}input.__jsx-style-dynamic-selector{width:100%;padding:16px 16px 16px 0;border:none;outline:none;font-size:16px}.loading.__jsx-style-dynamic-selector{display:flex;align-items:center;gap:10px;padding:10px;font-size:14px;color:var(--gray-400)}.results-container.__jsx-style-dynamic-selector{position:relative;background:#fff}.results.__jsx-style-dynamic-selector{position:absolute;top:0;left:0;right:0;width:100%;border:1px solid#ccc;border-top:none;border-radius:8px;overflow:auto;max-height:300px;background:#fff;z-index:${(0,g.fE)("dropdownMenu")}}.result.__jsx-style-dynamic-selector{background:#fff;padding:10px;cursor:pointer;font-size:14px}.result.__jsx-style-dynamic-selector:hover{background:var(--interactive-100)}.error.__jsx-style-dynamic-selector,.info.__jsx-style-dynamic-selector{font-size:14px;margin:10px;text-align:center}`})]})};var _=i(54587),j=i.n(_),v=i(94496),b=i(44895);let w=({listing:e,removeFacility:a})=>{let{name:i,photo:t,address:l,ratings:d,reviews_count:r,phone:c,listing_id:o}=e;return(0,s.jsxs)("div",{className:"jsx-8a3d76875de61ea2 listing-card__container",children:[(0,s.jsx)("button",{type:"button",onClick:()=>a(o),className:"jsx-8a3d76875de61ea2 listing-card__remove",children:"Remove"}),(0,s.jsxs)("div",{"data-facility-id":o,className:"jsx-8a3d76875de61ea2 compare-listing-card",children:[(0,s.jsx)("div",{className:"jsx-8a3d76875de61ea2 listing-card__image-container",children:(0,s.jsx)(j(),{className:"listing-card__image",src:t,alt:i,fill:!0,objectFit:"cover"})}),(0,s.jsx)(b.A,{url:(0,v.Oz)(e),name:i,address:l,ratings:d,reviewsCount:r,distance:null,phone:c})]}),(0,s.jsx)(n(),{id:"8a3d76875de61ea2",children:".listing-card__container.jsx-8a3d76875de61ea2{height:100%;display:flex;flex-direction:column}.listing-card__remove.jsx-8a3d76875de61ea2{display:flex;align-items:center;justify-content:center;gap:4px;font-size:14px;color:var(--gray-400);
1cursor:pointer;text-align:center;padding:8px 16px;border-radius:50px;background:var(--interactive-100);width:fit-content;margin:16px auto;transition:all.25s;border:none;outline:none}.listing-card__remove.jsx-8a3d76875de61ea2:hover{background:var(--interactive-300);color:var(--white)}.compare-listing-card.jsx-8a3d76875de61ea2{display:flex;flex-direction:column;gap:10px;border:1px solid#ccc;border-radius:8px;padding:16px;width:100%;max-width:350px;margin:auto;height:100%;flex-grow:1}.listing-card__image-container.jsx-8a3d76875de61ea2{width:100%;height:150px;position:relative;overflow:hidden;border-radius:8px}.listing-card__label.jsx-8a3d76875de61ea2{font-weight:bold}.listing-card__value.jsx-8a3d76875de61ea2{font-size:14px}"})]})};var N=i(79611),S=i(27366),C=i(83277);let L=({values:e=[]})=>(0,f.VP)(e)||!e?"N/A":(0,s.jsx)("ul",{className:"values-container",children:e.map(e=>(0,s.jsx)("li",{className:"values-container__item",children:e},e))});var E=i(31135),k=i(71532);let M=e=>{let[a,i]=(0,x.useState)(!1),[t,l]=(0,x.useState)(!1),[d,r]=(0,x.useState)(e.initialValue||null),[c,o]=(0,x.useState)("");(0,x.useEffect)(()=>{e.initialValue!==d&&r(e.initialValue)},[e.initialValue]);let m=a=>{r(a.currentTarget.dataset.value),i(!1),o(""),e.customOnChange&&e.customOnChange(a)},h=e.options.filter(e=>(e.value||e).toLowerCase().includes(c.toLowerCase())),y=t&&!d&&e.required;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(E.A,{onClick:()=>{i(!1)},children:(0,s.jsxs)("div",{tabIndex:"0",className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]])+" "+`dropdown ${a&&"active"}`,children:[e.label&&(0,s.jsxs)("div",{className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]])+" labels",children:[(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:e.label},className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]])+" label"}),e.required&&(0,s.jsx)("div",{style:{color:"var(--error)",marginLeft:"2px"},className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]]),children:"*"})]}),(0,s.jsxs)("div",{onClick:e=>{l(!0),i(!a)},className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]])+" "+`inner-text ${y?"error":""}`,children:[!d&&e.placeholder&&(0,s.jsx)("div",{className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]])+" inner-text__placeholder",children:e.placeholder}),d&&(0,s.jsx)("div",{className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]])+" inner-text__value",children:d}),(0,s.jsx)("div",{className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]])+" dropdown-icon",children:(0,s.jsx)(k.A,{width:"24",height:"24",rotate:a?"180":"0"})})]}),(0,s.jsxs)("div",{className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]])+" options",children:[(0,s.jsxs)("div",{className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]])+" search-container",children:[(0,s.jsx)("div",{className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]])+" search-icon",children:(0,s.jsx)(p.A,{fill:"var(--gray-300)"})}),(0,s.jsx)("input",{value:c,onChange:e=>o(e.target.value),className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]])+" search-input"})]}),(0,s.jsx)("ul",{className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]]),children:h&&h.length>0?h.map((a,i)=>{let t=a.value||a,l=t.toLowerCase(),r=l.toString().replace(/ /g,"-"),o=(0,f.xV)(c).toLowerCase();return l.indexOf(o)>-1&&(l=l.replace(o,`<b>${o}</b>`)),l=`<span style="text-transform: capitalize">${l}</span>`,(0,s.jsx)("li",{"data-index":i,"data-value":t,"data-name":e.name,"data-title":l,onClick:m,className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]])+" "+`${d?.includes(t)?"selected":""}`,children:(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:l},className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]])})},r)}):(0,s.jsx)("div",{className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]])+" no-results",children:"No results found"})}),d&&(0,s.jsx)("div",{className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]])+" clear-all",children:(0,s.jsx)("span",{onClick:()=>{r(null),o(""),e.customClearAll&&e.customClearAll()},className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]]),children:"Clear All"})})]}
1),y&&!a&&(0,s.jsx)("div",{className:n().dynamic([["351296ca0cf75d0",[(0,g.fE)("dropdownMenu")]]])+" input-error",children:e.errorMessage||"Select Option"}),(0,s.jsx)(n(),{id:"351296ca0cf75d0",dynamic:[(0,g.fE)("dropdownMenu")],children:`.dropdown.__jsx-style-dynamic-selector{width:100%;position:relative;margin:0;background:#fff;font-size:14px}.inner-text.__jsx-style-dynamic-selector{width:100%;border:1px solid var(--gray-300);display:flex;align-items:center;justify-content:space-between;padding:8px;position:relative;border-radius:8px;cursor:pointer}.inner-text__value.__jsx-style-dynamic-selector{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.inner-text__placeholder.__jsx-style-dynamic-selector{margin:0;color:var(--gray-400);font-size:14px}ul.__jsx-style-dynamic-selector{list-style:none;padding:0;margin:0}li.__jsx-style-dynamic-selector{padding:12px 16px;margin:4px;border-radius:8px}li.__jsx-style-dynamic-selector:hover{cursor:pointer;background:var(--gray);transition:all.25s}.no-results.__jsx-style-dynamic-selector{font-size:14px;color:var(--gray-500);text-align:center;padding:8px;margin:8px}.dropdown.active.__jsx-style-dynamic-selector .options.__jsx-style-dynamic-selector{display:block}.options.__jsx-style-dynamic-selector{display:none;overflow-x:hidden;border-top:none;min-width:100%;border:1px solid#ddd;position:absolute;max-height:300px;overflow:scroll;z-index:${(0,g.fE)("dropdownMenu")};background:#fff;box-shadow:0px 1px 8px 2px rgba(0,0,0,.08),0px 16px 28px -1px rgba(0,0,0,.18);border-radius:8px}.options.__jsx-style-dynamic-selector ul.__jsx-style-dynamic-selector{max-height:164px;overflow:scroll;border-top:1px solid var(--gray-300)}.options.__jsx-style-dynamic-selector li.selected.__jsx-style-dynamic-selector{background:var(--interactive-100)}.options.__jsx-style-dynamic-selector li.selected.__jsx-style-dynamic-selector:hover{background:var(--interactive-200)}.search-container.__jsx-style-dynamic-selector{width:100%;padding:8px;border-radius:8px;display:flex;align-items:center;gap:8px}.search-input.__jsx-style-dynamic-selector{border:none;outline:none;width:100%;font-size:14px;line-height:20px;color:var(--gray-500);background:transparent;padding:0}.clear-all.__jsx-style-dynamic-selector{border-top:1px solid var(--gray-300);padding:12px 16px}.clear-all.__jsx-style-dynamic-selector span.__jsx-style-dynamic-selector{font-size:14px;cursor:pointer;color:var(--interactive-300);width:fit-content}.error.__jsx-style-dynamic-selector{border:1px solid var(--error)}.dropdown-icon.__jsx-style-dynamic-selector{min-width:24px;min-height:24px}.labels.__jsx-style-dynamic-selector{display:flex;padding-bottom:5px;font-size:13px;height:24px}.input-error.__jsx-style-dynamic-selector{font-size:13px;position:absolute;font-weight:bold;left:10px;bottom:-6px;background:#fff;color:var(--error)}`})]})})})},A=({label:e,options:a,values:i,setValues:t})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"jsx-94a6494aaaaf055e",children:[(0,s.jsx)("span",{className:"jsx-94a6494aaaaf055e label",children:e}),(0,s.jsx)(M,{initialValue:i,placeholder:"Select",options:[...a].sort((e,a)=>i&&i.includes(e)?-1:i&&i.includes(a)?1:0),customOnChange:e=>{i?i.includes(e.currentTarget.dataset.value)?t(i.split(", ").filter(a=>a!==e.currentTarget.dataset.value).join(", ")):t([i,e.currentTarget.dataset.value].join(", ")):t(e.currentTarget.dataset.value)},customClearAll:()=>t(null)})]}),(0,s.jsx)(n(),{id:"94a6494aaaaf055e",children:".label.jsx-94a6494aaaaf055e{display:block;font-weight:bold;text-align:center;margin-bottom:16px}"})]});var z=i(65129),T=!0;let F=()=>{let{userGeo:e}=(0,x.useContext)(N.AppContext),[a,i]=(0,x.useState)(null),[t,d]=(0,x.useState)([]),[p,m]=(0,x.useState)(null),[h,g]=(0,x.useState)(null),[_,j]=(0,x.useState)(null),[v,b]=(0,x.useState)(!1);(0,x.useEffect)(()=>{let e=(0,C.zk)(),a=async e=>{b(!0);try{let a=e.slice(0,C.XS),i=[];if(a.length>0){let e=await fetch("/api/get_listings_by_ids/",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json","XSRF-TOKEN":(0,o.Ri)("XSRF-TOKEN")},body:JSON.stringify({listing_ids:a})}),s=await e.json()||[];
1i.push(...s)}d(i)}catch(e){console.warn("Failed to fetch centers:",e)}finally{b(!1)}};(0,f.EI)(e)&&(0,f.VP)(t)&&a(e)},[]),(0,x.useEffect)(()=>{e?.postal&&!a&&fetch("/api/get_geo_by_zip/",{method:"POST",body:JSON.stringify({zip:e.postal}),headers:{"Content-Type":"application/json","XSRF-TOKEN":(0,o.Ri)("XSRF-TOKEN")}}).then(e=>e.json()).then(e=>{i(e)}).catch(e=>{console.warn("Failed to fetch geo data:",e)})},[e?.postal]);let E=e=>{d(t.filter(a=>a.listing_id!==e)),(0,C.Ip)(e)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r(),{children:(0,s.jsx)("title",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:"Compare Rehab Facilities"})}),(0,s.jsx)(l.A,{children:(0,s.jsxs)(c.A,{style:{maxWidth:y.DB},pageContentStyle:{maxWidth:y.DB},children:[(0,s.jsxs)("div",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]])+" compare-page__header",children:[(0,s.jsx)("h1",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:"Compare Rehab Facilities"}),(0,s.jsx)("p",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:"Compare rehab facilities by treatment type, services, location, and more to find the best option for your needs."}),(0,s.jsx)(u,{selectFacility:e=>{d([...t,e]),(0,C.PR)(e.listing_id)},facilities:t})]}),v&&(0,s.jsx)("div",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]])+" compare-listings-loading",children:(0,s.jsx)(z.A,{width:20,height:20})}),(0,f.VP)(t)||!t?(0,s.jsx)("div",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]])+" compare-listings-empty",children:(0,s.jsx)("p",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:"No facilities selected"})}):(0,s.jsx)("div",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]])+" compare-listings",children:(0,s.jsxs)("table",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:[(0,s.jsx)("thead",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:(0,s.jsxs)("tr",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:[(0,s.jsx)("th",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:" "}),t.map(e=>(0,s.jsx)("th",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:(0,s.jsx)(w,{listing:e,removeFacility:E})},e.listing_id))]})}),(0,s.jsxs)("tbody",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:[a&&(0,s.jsxs)("tr",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:[(0,s.jsx)("td",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:(0,s.jsx)("span",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:"Distance"})}),t.map(e=>{let i=e?.address?.loc?.coordinates,t=Array.isArray(i)&&i.length>=2&&null!=i[0]&&null!=i[1];return(0,s.jsx)("td",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:(0,s.jsx)("ul",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]])+" values-container",children:(0,s.jsx)("li",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]])+" values-container__item",children:t?`${(0,C.hU)(parseFloat(a.latitude),parseFloat(a.longitude),parseFloat(i[1]),parseFloat(i[0]))} miles from your location`:"N/A"})})},e.listing_id)})]}),(0,s.jsxs)("tr",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:[(0,s.jsx)("td",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:(0,s.jsx)(A,{label:"Levels of Care",options:S.Bg,values:p,setValues:m})}),t.map(e=>(0,s.jsx)("td",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:(0,s.jsx)(L,{values:e.service?.filter(e=>!p||p.includes(e))})},e.listing_id))]}),(0,s.jsxs)("tr",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:[(0,s.jsx)("td",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:(0,s.jsx)(A,{label:"Insurance",options:(0,S.UK)(),values:h,setValues:g})}),t.map(e=>(0,s.jsx)("td",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:(0,s.jsx)(L,{values:e.insurance_accepted?.filter(e=>!h||h.includes(e))})},e.listing_id))]}),(0,s.jsxs)("tr",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:[(0,s.jsx)("td",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:(0,s.jsx)(A,{label:"Environment",options:S.dI,values:_,setValues:j})}),t.map(e=>(0,s.jsx)("td",{className:n().dynamic([["a0e4fd159fe38cb4",[y.SL]]]),children:(0,s.jsx)(L,{values:e.environmental_setting?.map(e=>e.display)?.filter(e=>!_||_.includes(e))})},e.listing_id))]})]})]})})]})}),(0,s.jsx)(n(),{id:"a0e4fd159fe38cb4",dynamic:[y.SL],children:`.compare-listings-empty.__jsx-style-dynamic-selector{display:flex;justify-content:center;align-items:center;height:100%;width:100%;font-size:18px;font-weight:bold;color:var(--gray-400);margin-top:40px}table.__jsx-style-dynamic-selector{min-width:1100px;table-layout:fixed}tr.__jsx-style-dynamic-selector{width:100%;display:table-row}th.__jsx-style-dynamic-selector{font-weight:normal;text-align:left;padding:12px;vertical-align:top}td.__jsx-style-dynamic-selector{border:1px solid#ccc;vertical-align:top;padding:24px 16px}td.__jsx-style-dynamic-selector div.__jsx-style-dynamic-selector,th.__jsx-style-dynamic-selector div.__jsx-style-dynamic-selector{max-height:100px;overflow:auto}td.__jsx-style-dynamic-selector:nth-child(1) span.__jsx-style-dynamic-selector{display:block;font-weight:bold;text-align:center;margin-bottom:16px}td.__jsx-style-dynamic-selector:nth-child(1),th.__jsx-style-dynamic-selector:nth-child(1){width:280px}td.__jsx-style-dynamic-selector:nth-child(2),th.__jsx-style-dynamic-selector:nth-child(2){width:100%}td.__jsx-style-dynamic-selector:nth-child(3),th.__jsx-style-dynamic-selector:nth-child(3){width:100%}td.__jsx-style-dynamic-selector:nth-child(4),th.__jsx-style-dynamic-selector:nth-child(4){width:100%}.compare-page__header.__jsx-style-dynamic-selector{display:flex;flex-direction:column;gap:10px;align-items:center;flex-wrap:wrap;grid-gap:10px;margin-bottom:20px}.compare-listings.__jsx-style-dynamic-selector{overflow:auto;width:100%;height:1250px}@media screen and (min-width:${y.SL}){.compare-listings.__jsx-style-dynamic-selector{flex-direction:row;justify-content:center;align-items:flex-start}}.values-container{display:flex;flex-direction:column;gap:8px;max-height:205px;overflow:auto;list-style:inside;padding:0;margin:0}.values-container__item{margin-bottom:4px;width:fit-content;height:fit-content}.values-container::-webkit-scrollbar{width:4px}.values-container::-webkit-scrollbar-track{background:var(--gray-100);border-radius:2px}.values-container::-webkit-scrollbar-thumb{background:var(--gray-300);border-radius:2px}`})]})}}},e=>{e.O(0,[2697,6502,1811,1832,584,2948,636,6593,8792],()=>e(e.s=86362)),_N_E=e.O()}]);
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.