1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8395],{4535:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/get-started",function(){return a(5046)}])},5373:function(e,t,a){"use strict";var n=a(5893),r=a(7294),s=a(5429),i=a(3078),l=a(6414),o=a(4851),c=a(1323),d=a(4796),h=a(7241);let u=e=>{let{text:t,setText:a,onSubmit:u,placeholder:m="Location",uiContext:p}=e,g=(0,r.useRef)(null),[x,b]=(0,r.useState)([]),[f,C]=(0,r.useState)(-1),[A,j]=(0,r.useState)(!1),y=(0,c.kY)("places"),E=(0,c.kY)("geocoding"),v=(0,r.useRef)(null),w=(0,r.useRef)(null);(0,r.useEffect)(()=>{y&&(v.current=new google.maps.places.AutocompleteService)},[y]),(0,r.useEffect)(()=>{E&&(w.current=new google.maps.Geocoder)},[E]);let R=(0,r.useCallback)(e=>{if(!v.current||!e.trim()){b([]);return}v.current.getPlacePredictions({input:e,componentRestrictions:{country:"ca"},types:["geocode"]},(e,t)=>{t===google.maps.places.PlacesServiceStatus.OK&&e?(b(e),j(!0)):b([])})},[]),S=(0,r.useRef)(),O=e=>{a(e),C(-1),clearTimeout(S.current),S.current=setTimeout(()=>R(e),200)},N=async e=>{if(a(e),b([]),j(!1),C(-1),w.current)try{let a=await w.current.geocode({address:e});if(a.results[0]){var t;let{lat:n,lng:r}=a.results[0].geometry.location;u({address:e,lat:n(),lng:r()}),(0,d.dI)({content_type:null,content_id:e,action:h.WL.LOCATION_SEARCH,is_sponsored:!1,metadata:{address:e,lat:n(),lng:r(),ui_context:p}}),null===(t=g.current)||void 0===t||t.blur()}}catch(t){console.error("Error getting coordinates for:",e,t)}};return(0,n.jsx)(s.k,{gap:2,w:"100%",children:(0,n.jsxs)(i.W,{fluid:!0,w:"100%",pos:"relative",px:0,children:[(0,n.jsx)(s.k,{align:"center",gap:2,children:(0,n.jsx)(l.o,{ref:g,size:"lg",value:t,onChange:e=>O(e.currentTarget.value),onKeyDown:e=>{if("ArrowDown"===e.key)e.preventDefault(),C(e=>Math.min(e+1,x.length-1));else if("ArrowUp"===e.key)e.preventDefault(),C(e=>Math.max(e-1,0));else if("Enter"===e.key){if(e.preventDefault(),0===x.length)return;let t=f>=0?x[f]:x[0];t&&N(t.description)}else"Escape"===e.key&&(j(!1),b([]))},onFocus:()=>{t.trim()&&R(t)},onBlur:()=>{setTimeout(()=>j(!1),200)},placeholder:m,style:{width:"100%",cursor:"pointer",zIndex:10},styles:{input:{fontSize:"18px",border:"2px solid #ccc",borderRadius:"8px",backgroundColor:"white"}},leftSection:(0,n.jsx)(o.Z,{style:{cursor:"pointer"},onClick:()=>{var e;return null===(e=g.current)||void 0===e?void 0:e.focus()}})})}),A&&x.length>0&&(0,n.jsx)(i.W,{w:"100%",fluid:!0,top:"100%",pos:"absolute",style:{borderRadius:"12px",zIndex:10},children:x.map((e,t)=>(0,n.jsx)(i.W,{onClick:()=>N(e.description),display:"block",py:4,fz:18,tabIndex:0,style:{cursor:"pointer",backgroundColor:t===f?"#fafafa":"#FFD99C",color:"black",textAlign:"start"},children:e.description},e.place_id))})]})})};t.Z=e=>(0,n.jsx)(c.un,{apiKey:"AIzaSyDAupIESAZXD6zehcTpcN2iJkUPDZ3R88A",libraries:["places"],children:(0,n.jsx)(u,{...e})})},7665:function(e,t,a){"use strict";var n=a(5893),r=a(9008),s=a.n(r);t.Z=e=>{let{title:t,desc:a,type:r,img:i,canonical:l}=e,o=l?"".concat("https://www.elderado.ca").concat(l):null,c=t.includes("Elderado")?t:"".concat(t," - Elderado.ca");return(0,n.jsxs)(s(),{children:[(0,n.jsx)("title",{children:c}),a&&(0,n.jsx)("meta",{name:"description",content:a}),o&&(0,n.jsx)("link",{rel:"canonical",href:o}),(0,n.jsx)("meta",{property:"og:type",content:r||"website"}),(0,n.jsx)("meta",{property:"og:title",content:t}),(0,n.jsx)("meta",{property:"og:description",content:a}),(0,n.jsx)("meta",{property:"og:image",content:i||"https://storage.googleapis.com/elderado-prod/LogoVerticalOpenGraph.jpg"}),(0,n.jsx)("meta",{property:"og:url",content:o}),(0,n.jsx)("meta",{property:"og:site_name",content:"elderado.ca"}),(0,n.jsx)("meta",{name:"twitter:title",content:t}),(0,n.jsx)("meta",{name:"twitter:description",content:a}),i&&(0,n.jsx)("meta",{property:"twitter:image",content:i}),(0,n.jsx)("meta",{property:"twitter:image",content:i||"https://storage.googleapis.com/elderado-prod/LogoVerticalOpenGraph.jpg"}),(0,n.jsx)("meta",{property:"twitter:url",content:o}),(0,n.jsx)("meta",{property:"twitter:card",content:r||"website"}),(0,n.jsx)("meta",{charSet:"utf-8"})]})}},4919:function(e,t,a){"use strict";var n=a(5893),r=a(5429),s=a(929),i=a(991),l=a(8008),o=a(5675),c=a.n(o),d=a(984);t.Z=e=>{let{title:t}=e;return(0,n.jsxs)(r.k,{bg:"brand-navy",p:4,pos:"relative",mih:{base:"64px",md:"96px"},mb:{base:"xs",md:"xl"},children:[(0,n.jsx)(s.E,{component:c(),pos:"absolute",left:"0",bottom:"0",src:d.GN,alt:"",h:"100%",fit:"contain",w:"auto"}),(0,n.jsx)(i.M,{w:"100%",children:(0,n.jsx)(l.D,{c:"white",ta:"center",order:1,children:t})}),(0,n.jsx)(s.E,{component:c(),pos:"absolute",right:"0",bottom:"0",src:d.mx,alt:"",h:"100%",fit:"contain",w:"auto"})]})}},7473:function(e,t,a){"use strict";var n,r,s,i;a.d(t,{Xo:function(){return l},xb:function(){return n}}),(s=n||(n={})).ADDRESS="address",s.CATEGORY="category",s.LANGUAGE="language",s.CULTURE="culture",s.MIN_BED="minBed",s.MAX_BED="maxBed",s.RADIUS="radius",s.BATHING_CARE="bathingCare",s.FEEDING_CARE="feedingCare",s.HYGIENE_CARE="hygieneCare",s.AMBULATION_CARE="ambulationCare",s.WOUND_CARE="woundCare",s.CONTINENCE_CARE="continenceCare",s.DRUG_CARE="drugCare",s.MEAL_CARE="mealCare",s.DRESSING_CARE="dressingCare",s.PHARMACY_CARE="pharmacyCare",s.MEDICINE_CARE="medicineCare",s.NURSING_CARE="nursingCare",s.PAGE="page",s.LIMIT="limit",s.SORT="sortByDistance",s.LAT="lat",s.LNG="lng",s.MAX_PRICE="maxPrice",s.CENTER_LAT="center_lat",s.CENTER_LNG="center_lng",s.ZOOM="zoom",(i=r||(r={})).RH="rh",i.LTC="ltc",i.AL="al",i.IL="il",i.MC="mc",i.RC="rc",i.SA="sa";let l=[{category:"ltc",label:"Long-Term Care"},{category:"rh",label:"Retirement Home"},{category:"al",label:"Assisted Living"}
1,{category:"il",label:"Independant Living"},{category:"mc",label:"Memory Care"},{category:"rc",label:"Respite Care"},{category:"sa",label:"Seniors Apartments"}]},5046:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return W}});var n=a(5893),r=a(4919),s=a(5429),i=a(3078),l=a(576),o=a(991),c=a(8207),d=a(6556),h=a(4410),u=a(7791),m=a(4957),p=a(2054),g=a(356),x=a(7113),b=a(9780),f=a(513),C=a(1163),A=a(7294),j=a(7526),y=a(2331),E=a(85),v=a(8008),w=e=>{let{title:t,desc:a,children:r}=e;return(0,n.jsxs)(c.K,{py:8,gap:4,ta:"center",align:"center",children:[(0,n.jsx)(v.D,{order:2,children:t}),a&&(0,n.jsx)(h.x,{children:a}),(0,n.jsx)(c.K,{w:{base:"100%",sm:"80%",md:"maxText"},py:4,ta:"center",children:r})]})},R=e=>{let{handleOptions:t,removeOptions:a,advanceTab:r,isLast:s}=e;return(0,n.jsxs)(w,{title:"Which care services are required?",desc:"Check all that apply",children:[(0,n.jsx)(c.K,{align:"flex-start",ta:"start",gap:3,children:E.x.map(e=>(0,n.jsx)(y.X,{label:e.label,onChange:n=>{n.target.checked?t({[e.param]:!0}):a([e.param])}},e.param))}),(0,n.jsx)(m.z,{onClick:r,children:s?"Go to Map":"Next page"})]})},S=a(7473),O=a(102),N=a(1604),_=e=>{let{handleOptions:t,removeOptions:a,advanceTab:r}=e,[s,{open:i,close:l}]=(0,x.q)(),o=e=>{"All Cultures"===e?(l(),a([S.xb.CULTURE])):t({[S.xb.CULTURE]:e}),r()},[u,p]=(0,A.useState)([]),[g,b]=(0,A.useState)(!0);return(0,A.useEffect)(()=>{(async()=>{p(await j.Z.getCultureOptions()),b(!1)})()},[]),(0,n.jsxs)(w,{title:"Are you looking for care in a culturally designated home?",desc:"Culturally designated homes provide culturally appropriate meals, activities, and many residents will be of that culture",children:[(0,n.jsx)(m.z,{onClick:i,w:"100%",children:"Yes"}),(0,n.jsx)(O.U,{in:s,animateOpacity:!0,children:(0,n.jsxs)(c.K,{w:"100%",children:[(0,n.jsx)(h.x,{children:"Which cultural designation?"}),g?(0,n.jsx)(d.a,{}):(0,n.jsx)(N.P,{placeholder:"Select cultural designation",onChange:e=>{o(e)},data:u})]})}),(0,n.jsx)(m.z,{onClick:()=>{o("All Cultures")},w:"100%",children:"No"})]})},T=e=>{let{handleOptions:t,removeOptions:a,advanceTab:r}=e,[s,{open:i,close:l}]=(0,x.q)(),o=e=>{"All Languages"===e?(l(),a([S.xb.LANGUAGE])):t({[S.xb.LANGUAGE]:e}),r()},[u,p]=(0,A.useState)([]),[g,b]=(0,A.useState)(!0);return(0,A.useEffect)(()=>{(async()=>{p(await j.Z.getLanguageOptions()),b(!1)})()},[]),(0,n.jsxs)(w,{title:"Are you looking for care in a language other than English?",desc:"",children:[(0,n.jsx)(m.z,{onClick:i,w:"100%",children:"Yes"}),(0,n.jsx)(O.U,{in:s,animateOpacity:!0,children:(0,n.jsxs)(c.K,{w:"100%",py:4,children:[(0,n.jsx)(h.x,{children:"Which languages?"}),g?(0,n.jsx)(d.a,{}):(0,n.jsx)(N.P,{placeholder:"Select language",onChange:e=>{o(e)},data:u})]})}),(0,n.jsx)(m.z,{onClick:()=>{o("All Languages")},w:"100%",children:"No"})]})},k=a(1120),G=a(5373),I=a(7241),D=e=>{let{handleOptions:t,advanceTab:a}=e,[r,s]=(0,A.useState)(""),[i,l]=(0,A.useState)("0");return(0,n.jsxs)(w,{title:"Where are you looking for care?",desc:"",children:[(0,n.jsx)(G.Z,{text:r,setText:s,onSubmit:e=>{t({[S.xb.ADDRESS]:e.address,[S.xb.LAT]:e.lat.toString(),[S.xb.LNG]:e.lng.toString()})},uiContext:I.Nc.LOCATION_SEARCH__GETTING_STARTED}),(0,n.jsx)(o.M,{children:(0,n.jsx)(k.Y.Group,{onChange:e=>{l(e),t({[S.xb.RADIUS]:e})},value:i,label:(0,n.jsx)(v.D,{order:3,pt:4,children:"Within:"}),children:(0,n.jsx)(c.K,{align:"flex-start",gap:2,p:4,children:["10","25","50","100"].map(e=>(0,n.jsx)(k.Y,{value:e,label:"".concat(e," km")},e))})})}),(0,n.jsx)(m.z,{onClick:a,children:"Next page"})]})},P=e=>{let{handleOptions:t,removeOptions:a,advanceTab:r}=e;return(0,n.jsx)(w,{title:"Do you know if you are looking for long-term care or a retirement home?",desc:"",children:[{label:"Long-Term Care",val:"ltc"},{label:"Retirement Home",val:"rh"},{label:"Both",val:"ltc,rh"},{label:"I'm Not Sure"}].map(e=>(0,n.jsx)(m.z,{w:"100%",onClick:()=>{e.val?t({[S.xb.CATEGORY]:e.val}):a([S.xb.CATEGORY]),r()},children:e.label},e.label))})},L=a(7665),M=a(3879),W=()=>{let e=(0,C.useRouter)(),t=["Type","Location","Language","Culture","Care"],[a,y]=(0,A.useState)(1400),[E,v]=(0,A.useState)(!0),[w,S]=(0,A.useState)({}),[O,N]=(0,A.useState)({}),[k,{open:G,close:I}]=(0,x.q)(),[W,{open:U,close:z}]=(0,x.q)();(0,A.useEffect)(()=>{0===a?U():a<=5&&G()},[a]);let H=async()=>{v(!0);let{radius:e,lat:t,lng:a}=w,n=new URLSearchParams(w);e&&!(t&&a)&&n.delete(e),y(await j.Z.getHomesCount(n.toString())),v(!1)};(0,A.useEffect)(()=>{H()},[w]);let[B,Z]=(0,A.useState)(0),F=()=>Z(e=>e<t.length?e+1:e),Y=()=>Z(e=>e>0?e-1:e),K=e=>{S({...w,...e}),N(e)},X=e=>
1{e.forEach(e=>{delete w[e]}),S({...w})},q=()=>{F(),window.scrollTo(0,0)},V=()=>{X(Object.keys(O)),"Care"!==t[B]&&Y(),window.scrollTo(0,0)},J=()=>{let t=new URLSearchParams(w);e.push({pathname:M.nF,search:"?".concat(t)})};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(L.Z,{title:"Get Started",desc:"Get started on your search for long term care and retirement homes in Ontario by using our step-by-step tool",canonical:M.vP}),(0,n.jsx)(r.Z,{title:"Get Started"}),(0,n.jsxs)(s.k,{direction:"column",mih:"90vh",w:"90%",mx:"auto",py:4,pos:"relative",align:"center",children:[(0,n.jsxs)(i.W,{w:{base:"90%",md:"70%"},pt:8,pb:{base:4,sm:8},children:[(0,n.jsx)(l.i,{w:"100%"}),(0,n.jsx)(o.M,{bg:"white",w:"100%",ta:"center",my:{base:"sm",md:"md"},children:(0,n.jsxs)(c.K,{align:"center",gap:"0",children:[E?(0,n.jsx)(d.a,{}):(0,n.jsx)(h.x,{fz:"h1",fw:"bolder",children:a}),(0,n.jsx)(h.x,{children:" homes that match your search "})]})}),(0,n.jsx)(l.i,{w:"100%"})]}),(0,n.jsxs)(u.m,{value:t[B],w:"90%",maw:"maxText",children:[(0,n.jsx)(u.m.Panel,{value:t[0],children:(0,n.jsx)(P,{handleOptions:K,removeOptions:X,advanceTab:q})}),(0,n.jsx)(u.m.Panel,{value:t[1],children:(0,n.jsx)(D,{handleOptions:K,advanceTab:q})}),(0,n.jsx)(u.m.Panel,{value:t[2],children:(0,n.jsx)(T,{handleOptions:K,removeOptions:X,advanceTab:q})}),(0,n.jsx)(u.m.Panel,{value:t[3],children:(0,n.jsx)(_,{handleOptions:K,removeOptions:X,advanceTab:q})}),(0,n.jsx)(u.m.Panel,{value:t[4],children:(0,n.jsx)(R,{handleOptions:K,removeOptions:X,advanceTab:J,isLast:!0})})]}),(0,n.jsx)(c.K,{w:{base:"90%",md:"50%"},align:"center",children:(0,n.jsxs)(s.k,{w:"100%",pt:8,pb:4,justify:"space-between",children:[(0,n.jsxs)(m.z,{onClick:()=>{Y()},disabled:0===B,variant:"navy",children:[(0,n.jsx)(b.Z,{})," Back"]}),(0,n.jsxs)(m.z,{onClick:J,disabled:B===t.length-1,variant:"navy",children:["Skip to map ",(0,n.jsx)(f.Z,{})]})]})}),(0,n.jsxs)(s.k,{direction:"column",w:"90%",mx:"auto",pos:"relative",pt:40,align:"center",children:[(0,n.jsx)(h.x,{fz:"h1",fw:"bolder",children:"FAQ"}),(0,n.jsxs)(i.W,{py:10,children:[(0,n.jsx)(h.x,{fz:"h4",fw:"bolder",pb:4,children:"What is a long-term care home?"}),(0,n.jsx)(h.x,{children:"A long-term care home is a provincially subsidized care home for people who are at least 18 years of age, who no longer have the capabilities, or sufficient support to live independently. A long-term care home may also be referred to as a nursing home."})]}),(0,n.jsxs)(i.W,{py:10,children:[(0,n.jsx)(h.x,{fz:"h4",fw:"bolder",pb:4,children:"What is a retirement home?"}),(0,n.jsx)(h.x,{children:"Retirement homes are private residences that offer housing to seniors, as well as other services that may include providing meals, assistance with bathing, feeding, and dressing, dementia care programs, and more. Retirement homes in Ontario are regulated by the Retirement Homes Regulatory Authority (RHRA)."})]})]}),(0,n.jsx)(p.u,{title:"Only ".concat(a," ").concat(1===a?"Home":"Homes"," Found"),opened:k,onClose:I,centered:!0,children:(0,n.jsxs)(c.K,{children:["Only ",a," ",1===a?"home fits":"homes fit"," your criteria. Go to the map now to see ",1===a?"it":"them",".",(0,n.jsx)(m.z,{mr:3,onClick:J,children:"Go to Map"})]})}),(0,n.jsx)(p.u,{title:"No Homes Found",opened:W,onClose:z,centered:!0,children:(0,n.jsxs)(c.K,{children:["No homes fit your requirements. Go back to change your responses or go directly to the map.",(0,n.jsxs)(g.Z,{justify:"space-between",children:[(0,n.jsx)(m.z,{mr:3,onClick:()=>{z(),V()},children:"Change your Responses"}),(0,n.jsx)(m.z,{onClick:J,children:"Go to Map"})]})]})})]})]})}},85:function(e,t,a){"use strict";a.d(t,{v:function(){return r},x:function(){return s}});var n=a(7473);let r=[{label:"Assistance with Bathing",val:"assistanceWithBathing",param:n.xb.BATHING_CARE},{label:"Assistance with Feeding",val:"assistanceWithFeeding",param:n.xb.FEEDING_CARE},{label:"Assistance with Personal Hygiene",val:"assistanceWithPersonalHygiene",param:n.xb.HYGIENE_CARE},{label:"Assistance with Ambulation",val:"assistanceWithAmbulation",param:n.xb.AMBULATION_CARE,desc:"(Moving from place to place)"},{label:"Provision of Skin and Wound Care",val:"provisionOfSkinAndWoundCare",param:n.xb.WOUND_CARE},{label:"Continence Care",val:"continenceCare",param:n.xb.CONTINENCE_CARE,desc:"(Unexpected or uncontrollable bladder leaks and bowel movements)"},{label:"Administration of Drugs or Another Substance",val:"administrationOfDrugsOrAnotherSubstance",param:n.xb.DRUG_CARE},{label:"Provision of a Meal",val:"provisionOfAMeal",param:n.xb.MEAL_CARE},{label:"Assistance with Dressing",val:"assistanceWithDressing",param:n.xb.DRESSING_CARE},{label:"Any Service That a Member of the Ontario College of Pharmacists Provides While Engaging in the Practice of Pharmacy",val:"anyServiceThatAMemberOfTheOntarioCollegeOfPharmacistsProvi
1desWhileEngagingInThePracticeOfPharmacy",param:n.xb.PHARMACY_CARE,desc:"(e.g. management of the medication administration system and provision of prescription medication)"},{label:"Any service that a member of the College of Physicians and Surgeons of Ontario provides while engaging in the practice of medicine",val:"anyServiceThatAMemberOfTheCollegeOfPhysiciansAndSurgeonsOfOntarioProvidesWhileEngagingInThePracticeOfMedicine",param:n.xb.MEDICINE_CARE,desc:"(e.g. management of the medication administration system and seeing residents for check-ups or if they are sick)"},{label:"Any Service That a Member of the College of Nurses of Ontario Provides While Engaging in the Practice of Nursing",val:"anyServiceThatAMemberOfTheCollegeOfNursesOfOntarioProvidesWhileEngagingInThePracticeOfNursing",param:n.xb.NURSING_CARE,desc:"(e.g. management of the medication administration system and acting as a director of care)"}],s=[{label:"Assistance with bathing",val:"assistanceWithBathing",param:n.xb.BATHING_CARE},{label:"Assistance with feeding",val:"assistanceWithFeeding",param:n.xb.FEEDING_CARE},{label:"Assistance with personal hygiene",val:"assistanceWithPersonalHygiene",param:n.xb.HYGIENE_CARE},{label:"Assistance with ambulation (moving from place to place)",val:"assistanceWithAmbulation",param:n.xb.AMBULATION_CARE},{label:"Skin and wound care program",val:"provisionOfSkinAndWoundCare",param:n.xb.WOUND_CARE},{label:"Continence care (unexpected or uncontrollable bladder leaks and bowel movements)",val:"continenceCare",param:n.xb.CONTINENCE_CARE},{label:"Administration of drugs or other substances",val:"administrationOfDrugsOrAnotherSubstance",param:n.xb.DRUG_CARE},{label:"Daily meals",val:"provisionOfAMeal",param:n.xb.MEAL_CARE},{label:"Assistance with dressing",val:"assistanceWithDressing",param:n.xb.DRESSING_CARE}]}},function(e){e.O(0,[6556,3421,7887,1604,3812,2888,9774,179],function(){return e(e.s=4535)}),_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.