1import{d as F,j as Ce,u as p,a as n,f as c,b as e,m as $,F as B,r as z,t as Z,x as V,n as se,g as S,h as D,q as M,k as I,i as Q,v as W,o as ge,c as H,$ as ne,w,e as x,V as Le,s as X,T as Se,z as $e,B as je}from"./app-B_THiXfe.js";import{_ as le}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{d as ue,_ as ce,a as pe,b as fe,c as N}from"./SelectValue.vue_vue_type_script_setup_true_lang-BxcZpFUh.js";import{b as ee}from"./boundsToString-C95WMlKi.js";import{l as me}from"./loadGoogleMaps-C_1fuIu_.js";const Ne={key:0,class:"bg-off-white/50 relative mt-auto"},Ve={class:"container grid grid-cols-1 gap-10 px-3 py-14 md:grid-cols-2 lg:grid-cols-6"},Te={class:"lg:col-span-2"},Me=["src"],Ie={key:0,class:"flex flex-col gap-2"},Fe=["href","target"],He={key:1,class:"flex flex-col gap-2"},Be=["href","target"],ze=["href","target"],Ze={key:2,class:"flex flex-col gap-2"},De=["href","target"],Ae={key:3,class:"flex flex-col gap-2"},Pe={class:"flex gap-2"},Ue=["href","target","title"],Ee=["src","alt"],Ge={class:"border-off-white container border-t px-3 py-8"},Oe=["innerHTML"],Vo=F({__name:"Footer",setup(T){const f=Ce(),i=()=>{window.dispatchEvent(new Event("open-guided-form"))};return(l,t)=>p(f).props.footerData?(n(),c("footer",Ne,[e("nav",Ve,[e("figure",Te,[p(f).props.footerData.custom_logo_url?(n(),c("img",{key:0,src:p(f).props.footerData.custom_logo_url,alt:"Site Logo",class:"h-auto w-[11.125rem] max-w-full"},null,8,Me)):$("",!0)]),p(f).props.footerData.content_topics.length?(n(),c("nav",Ie,[t[0]||(t[0]=e("h5",{class:"font-heading mb-2 text-sm leading-5 font-bold text-black"},"Content Topics",-1)),(n(!0),c(B,null,z(p(f).props.footerData.content_topics,(o,y)=>(n(),c("a",{key:"topic-"+y,href:o.link.url,target:o.link.target||"_self",class:"font-body text-secondary-black hover:text-brand-red text-sm leading-5 transition-colors"},Z(o.link.title),9,Fe))),128))])):$("",!0),p(f).props.footerData.site_menu.length?(n(),c("nav",He,[t[1]||(t[1]=e("h5",{class:"font-heading mb-2 text-sm leading-5 font-bold text-black"},"Site Menu",-1)),(n(!0),c(B,null,z(p(f).props.footerData.site_menu,(o,y)=>(n(),c("a",{key:"site-"+y,href:o.link.url,target:o.link.target||"_self",class:"font-body text-secondary-black hover:text-brand-red text-sm leading-5 transition-colors"},Z(o.link.title),9,Be))),128)),p(f).props.footerData.header_button?(n(),c("a",{key:0,href:p(f).props.footerData.header_button.url,target:p(f).props.footerData.header_button.target||"_self",class:"font-body text-secondary-black hover:text-brand-red text-sm leading-5 transition-colors"},Z(p(f).props.footerData.header_button.title),9,ze)):(n(),c("button",{key:1,onClick:i,class:"font-body text-secondary-black hover:text-brand-red flex border-0 text-left text-sm leading-5 transition-colors"}," Guided Form "))])):$("",!0),p(f).props.footerData.pages.length?(n(),c("nav",Ze,[t[2]||(t[2]=e("h5",{class:"font-heading mb-2 text-sm leading-5 font-bold text-black"},"Connect With Us",-1)),(n(!0),c(B,null,z(p(f).props.footerData.pages,(o,y)=>(n(),c("a",{key:"page-"+y,href:o.link.url,target:o.link.target||"_self",class:"font-body text-secondary-black hover:text-brand-red text-sm leading-5 transition-colors"},Z(o.link.title),9,De))),128))])):$("",!0),p(f).props.footerData.social_media.length?(n(),c("nav",Ae,[t[3]||(t[3]=e("h5",{class:"font-heading mb-2 text-sm leading-5 font-bold text-black"},"Follow Us On Socials",-1)),e("div",Pe,[(n(!0),c(B,null,z(p(f).props.footerData.social_media,(o,y)=>(n(),c("a",{key:"social-"+y,href:o.link.url,target:o.link.target||"_blank",title:o.link.title,class:"transition hover:opacity-80"},[o.logo_url?(n(),c("img",{key:0,src:o.logo_url,alt:o.link.title,class:"h-6 w-6 object-contain"},null,8,Ee)):$("",!0)],8,Ue))),128))])])):$("",!0)]),e("div",Ge,[e("p",{class:"text-secondary-black text-sm leading-relaxed",innerHTML:p(f).props.footerData.copyright},null,8,Oe)])])):$("",!0)}}),Re={class:"relative z-10 mx-auto flex h-full !max-w-[960px] flex-col p-6"},Ye={class:"pt-11 md:grid md:grid-cols-2 md:gap-x-8 xl:gap-x-12"},Je={class:"flex items-center gap-2.5"},We=F({__name:"Step1",props:{inCanada:{}},emits:["update:inCanada","goToStep"],setup(T,{emit:f}){const i=f,l=(t,o)=>{i("update:inCanada",t),i("goToStep",o)};return(t,o)=>(n(),c("div",Re,[o[4]||(o[4]=V('<div class="relative grid grid-cols-3"><div class="bg-off-white absolute top-1/2 h-1 w-full -translate-y-1/2"></div><div class="bg-brand-red absolute top-1/2 left-0 z-10 h-1 w-1/4 -translate-y-1/2 roun
1ded-r-full"></div><h4 class="text-brand-red border-brand-red relative z-20 flex h-12 w-12 items-center justify-center rounded-full border-2 bg-white">1</h4><div class="flex justify-center"><h4 class="text-slate bg-off-white relative z-20 flex h-12 w-12 items-center justify-center rounded-full">2</h4></div><div class="flex justify-end"><h4 class="text-slate bg-off-white relative z-20 flex h-12 w-12 items-center justify-center rounded-full">3</h4></div></div>',1)),e("div",Ye,[o[3]||(o[3]=V('<div class="pb-8 md:pb-0"><h4 class="text-p pb-5">Guided Form</h4><p class="text-h6 pb-5"> Please answer a few questions, and our guided form will give you the most relevant solutions for your needs. </p><p class="text-h6 pb-5"> You can close this form by clicking outside the form, and return to it at any time by pressing the form button on the siteâs navigation bar. </p><div class="w-full max-w-[450px]"><img src="/images/logo.svg" alt="Prepare for Canada Logo"></div></div>',1)),e("div",null,[o[2]||(o[2]=e("h4",{class:"pb-5"},"Are you currently living in Canada?",-1)),e("div",Je,[e("button",{onClick:o[0]||(o[0]=y=>l("No","step-2-no")),class:"btn-primary"},"No"),e("button",{onClick:o[1]||(o[1]=y=>l("Yes","step-2-yes")),class:"btn-secondary rounded-search"},"Yes")])])])]))}}),qe={class:"relative z-10 mx-auto flex h-full w-full !max-w-[960px] flex-col p-6"},Ke={class:"flex-grow md:grid md:grid-cols-2 md:gap-x-8 xl:gap-x-12"},Qe={class:"flex items-center gap-2.5"},Xe=F({__name:"Step2No",emits:["goToStep"],setup(T,{emit:f}){const i=f;return(l,t)=>(n(),c("div",qe,[t[3]||(t[3]=V('<div class="relative mb-11 grid grid-cols-3"><div class="bg-off-white absolute top-1/2 h-1 w-full -translate-y-1/2"></div><div class="bg-brand-red absolute top-1/2 left-0 z-10 h-1 w-3/4 -translate-y-1/2 rounded-r-full"></div><h4 class="bg-brand-red relative z-20 flex h-12 w-12 items-center justify-center rounded-full"><svg xmlns="http://www.w3.org/2000/svg" width="28" height="29" viewBox="0 0 28 29" fill="none"><path d="M11.6668 18.6837L7.82496 14.8418L6.17529 16.4915L11.6668 21.983L22.9916 10.6582L21.342 9.00848L11.6668 18.6837Z" fill="white"></path></svg></h4><div class="flex justify-center"><h4 class="text-brand-red border-brand-red relative z-20 flex h-12 w-12 items-center justify-center rounded-full border-2 bg-white"> 2 </h4></div><div class="flex justify-end"><h4 class="text-slate bg-off-white relative z-20 flex h-12 w-12 items-center justify-center rounded-full">3</h4></div></div>',1)),e("div",Ke,[t[2]||(t[2]=e("div",{class:"pb-8 md:pb-0"},[e("h4",{class:"font-body text-brand-red pb-5 text-2xl font-bold"},"Do you have a visa?")],-1)),e("div",null,[e("div",Qe,[e("button",{onClick:t[0]||(t[0]=o=>i("goToStep","step-final-no")),class:"btn-primary"},"No"),e("button",{onClick:t[1]||(t[1]=o=>i("goToStep","step-2-yes")),class:"btn-secondary rounded-search"},"Yes")])])])]))}}),et={class:"relative z-10 mx-auto flex h-full !max-w-[960px] flex-col p-6"},tt={class:"flex-grow pt-11 md:grid md:grid-cols-2 md:gap-x-8 xl:gap-x-12"},ot={class:"pb-5"},st={class:"label border-off-white has-[:checked]:bg-light-blue has-[:checked]:border-light-blue mt-1 flex cursor-pointer flex-row-reverse items-center rounded-full border-2 bg-white p-2.5"},nt=["checked"],lt={class:"pb-5"},at={class:"label border-off-white has-[:checked]:bg-yellow has-[:checked]:border-yellow mt-1 flex cursor-pointer flex-row-reverse items-center rounded-full border-2 bg-white p-2.5"},it=["checked"],rt={class:"pb-5"},dt={class:"label border-off-white has-[:checked]:bg-light-green has-[:checked]:border-light-green mt-1 flex cursor-pointer flex-row-reverse items-center rounded-full border-2 bg-white p-2.5"},ut=["checked"],ct={class:"mt-4 flex items-center gap-2.5"},pt=["disabled"],ft=F({__name:"Step2Yes",props:{accommodation:{type:Boolean},jobFinding:{type:Boolean},financeSolutions:{type:Boolean}},emits:["update:accommodation","update:jobFinding","update:financeSolutions","goToStep"],setup(T,{emit:f}){const i=f;return(l,t)=>(n(),c("div",et,[t[11]||(t[11]=V('<div class="relative grid grid-cols-3" data-v-db6d24ac><div class="bg-off-white absolute top-1/2 h-1 w-full -translate-y-1/2" data-v-db6d24ac></div><div class="bg-brand-red absolute top-1/2 left-0 z-10 h-1 w-3/4 -translate-y-1/2 roun
1ded-r-full" data-v-db6d24ac></div><h4 class="bg-brand-red relative z-20 flex h-12 w-12 items-center justify-center rounded-full" data-v-db6d24ac><svg xmlns="http://www.w3.org/2000/svg" width="28" height="29" viewBox="0 0 28 29" fill="none" data-v-db6d24ac><path d="M11.6668 18.6837L7.82496 14.8418L6.17529 16.4915L11.6668 21.983L22.9916 10.6582L21.342 9.00848L11.6668 18.6837Z" fill="white" data-v-db6d24ac></path></svg></h4><div class="flex justify-center" data-v-db6d24ac><h4 class="text-brand-red border-brand-red relative z-20 flex h-12 w-12 items-center justify-center rounded-full border-2 bg-white" data-v-db6d24ac> 2 </h4></div><div class="flex justify-end" data-v-db6d24ac><h4 class="text-slate bg-off-white relative z-20 flex h-12 w-12 items-center justify-center rounded-full" data-v-db6d24ac>3</h4></div></div>',1)),e("div",tt,[t[10]||(t[10]=e("div",{class:"pb-8 md:pb-0"},[e("h4",{class:"pb-5"},"What solutions are you interested in?"),e("p",{class:"text-p pb-5"},"I need the most help with...")],-1)),e("div",null,[t[9]||(t[9]=e("p",{class:"text-h6 pb-5"},"I need the most help with...",-1)),e("div",ot,[e("label",st,[e("input",{type:"checkbox",checked:l.accommodation,onChange:t[0]||(t[0]=o=>i("update:accommodation",o.target.checked)),class:"checkbox-custom border-off-white checked:!border-secondary checked:bg-blue peer/accommodation h-6 w-6 cursor-pointer rounded-full border-2 transition-colors"},null,40,nt),t[5]||(t[5]=V('<span class="label-text flex-auto pl-2.5 select-none" data-v-db6d24ac>Accommodation</span><span class="bg-light-blue flex h-10 w-10 items-center justify-center rounded-full transition-colors peer-checked/accommodation:bg-white" data-v-db6d24ac><svg width="20" height="20" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-db6d24ac><path d="M25.3334 2.66663H12C10.5294 2.66663 9.33337 3.86263 9.33337 5.33329V12.7813L3.05737 19.0573C2.87096 19.2438 2.74402 19.4813 2.6926 19.7399C2.64117 19.9985 2.66758 20.2666 2.76847 20.5102C2.86936 20.7538 3.04022 20.962 3.25943 21.1085C3.47864 21.255 3.73637 21.3332 4.00004 21.3333V28C4.00004 28.3536 4.14052 28.6927 4.39057 28.9428C4.64061 29.1928 4.97975 29.3333 5.33337 29.3333H26.6667C27.0203 29.3333 27.3595 29.1928 27.6095 28.9428C27.8596 28.6927 28 28.3536 28 28V5.33329C28 3.86263 26.804 2.66663 25.3334 2.66663ZM14.6667 26.6666H6.66671V19.2186L10.6667 15.2186L14.6667 19.2186V26.6666ZM25.3334 26.6666H17.3334V21.3333C17.5973 21.3339 17.8555 21.256 18.0751 21.1096C18.2948 20.9632 18.4659 20.7549 18.5669 20.511C18.6679 20.2671 18.6942 19.9988 18.6424 19.7399C18.5906 19.4811 18.4631 19.2435 18.276 19.0573L12 12.7813V5.33329H25.3334V26.6666Z" fill="#0956CA" data-v-db6d24ac></path><path d="M14.6663 8H17.333V10.6667H14.6663V8ZM19.9997 8H22.6663V10.6667H19.9997V8ZM19.9997 13.3747H22.6663V16H19.9997V13.3747ZM19.9997 18.6667H22.6663V21.3333H19.9997V18.6667ZM9.33301 20H11.9997V22.6667H9.33301V20Z" fill="#0956CA" data-v-db6d24ac></path></svg></span>',2))])]),e("div",lt,[e("label",at,[e("input",{type:"checkbox",checked:l.jobFinding,onChange:t[1]||(t[1]=o=>i("update:jobFinding",o.target.checked)),class:"checkbox-custom border-off-white checked:!border-accent checked:bg-orange peer/jobs h-6 w-6 cursor-pointer rounded-full border-2 bg-white transition-colors"},null,40,it),t[6]||(t[6]=e("span",{class:"label-text flex-auto pl-2.5 select-none"},"Job Finding",-1)),t[7]||(t[7]=e("span",{class:"bg-yellow flex h-10 w-10 items-center justify-center rounded-full transition-colors peer-checked/jobs:bg-white"},[e("svg",{width:"20",height:"20",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M22.0007 8.66671H27.334C28.814 8.66671 30.0007 9.85337 30.0007 11.3334V26C30.0007 27.48 28.814 28.6667 27.334 28.6667H6.00065C4.52065 28.6667 3.33398 27.48 3.33398 26L3.34732 11.3334C3.34732 9.85337 4.52065 8.66671 6.00065 8.66671H11.334V6.00004C11.334 4.52004 12.5207 3.33337 14.0007 3.33337H19.334C20.814 3.33337 22.0007 4.52004 22.0007 6.00004V8.66671ZM14.0007 8.66671H19.334V6.00004H14.0007V8.66671Z",fill:"#AB5000"}
1)])],-1))])]),e("div",rt,[e("label",dt,[e("input",{type:"checkbox",checked:l.financeSolutions,onChange:t[2]||(t[2]=o=>i("update:financeSolutions",o.target.checked)),class:"checkbox-custom border-off-white checked:!border-info checked:bg-green peer/finance h-6 w-6 cursor-pointer rounded-full border-2 bg-white transition-colors"},null,40,ut),t[8]||(t[8]=V('<span class="label-text flex-auto pl-2.5 select-none" data-v-db6d24ac>Finance Solutions</span><span class="bg-light-green flex h-10 w-10 items-center justify-center rounded-full transition-colors peer-checked/finance:bg-white" data-v-db6d24ac><svg width="20" height="20" viewBox="0 0 33 32" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-db6d24ac><path d="M28.3333 5.33337H4.33333C3.97971 5.33337 3.64057 5.47385 3.39052 5.7239C3.14048 5.97395 3 6.31309 3 6.66671V25.3334C3 25.687 3.14048 26.0261 3.39052 26.2762C3.64057 26.5262 3.97971 26.6667 4.33333 26.6667H28.3333C28.687 26.6667 29.0261 26.5262 29.2761 26.2762C29.5262 26.0261 29.6667 25.687 29.6667 25.3334V6.66671C29.6667 6.31309 29.5262 5.97395 29.2761 5.7239C29.0261 5.47385 28.687 5.33337 28.3333 5.33337ZM27 20C25.9391 20 24.9217 20.4215 24.1716 21.1716C23.4214 21.9218 23 22.9392 23 24H9.66667C9.66667 22.9392 9.24524 21.9218 8.49509 21.1716C7.74495 20.4215 6.72753 20 5.66667 20V12C6.72753 12 7.74495 11.5786 8.49509 10.8285C9.24524 10.0783 9.66667 9.06091 9.66667 8.00004H23C23 9.06091 23.4214 10.0783 24.1716 10.8285C24.9217 11.5786 25.9391 12 27 12V20Z" fill="#177A26" data-v-db6d24ac></path><path d="M16.3333 10.6666C13.392 10.6666 11 13.0586 11 16C11 18.9413 13.392 21.3333 16.3333 21.3333C19.2747 21.3333 21.6667 18.9413 21.6667 16C21.6667 13.0586 19.2747 10.6666 16.3333 10.6666ZM16.3333 18.6666C14.8627 18.6666 13.6667 17.4706 13.6667 16C13.6667 14.5293 14.8627 13.3333 16.3333 13.3333C17.804 13.3333 19 14.5293 19 16C19 17.4706 17.804 18.6666 16.3333 18.6666Z" fill="#177A26" data-v-db6d24ac></path></svg></span>',2))])]),e("div",ct,[e("button",{onClick:t[3]||(t[3]=o=>i("goToStep","step-1")),class:"btn-primary"},"Back"),e("button",{onClick:t[4]||(t[4]=o=>i("goToStep","step-3")),disabled:!l.accommodation&&!l.jobFinding&&!l.financeSolutions,class:"btn-secondary rounded-search"}," Next ",8,pt)])])])]))}}),mt=le(ft,[["__scopeId","data-v-db6d24ac"]]),gt={class:"relative z-10 mx-auto flex h-full !max-w-[960px] flex-col p-6"},bt={class:"pt-11 md:grid md:grid-cols-2 md:gap-x-8 xl:gap-x-12"},vt={class:"lg:grid lg:grid-cols-2 lg:gap-5"},ht={class:"pb-5 lg:pb-0"},xt={for:"first-name",class:"text-grey text-sm font-medium"},wt=["value","disabled"],yt={class:"pb-5 lg:pb-0"},kt={for:"last-name",class:"text-grey text-sm font-medium"},_t=["value","disabled"],Ct={class:"col-span-2 mt-4 pb-5 lg:pb-0"},Lt={for:"email",class:"text-grey text-sm font-medium"},St=["value","disabled"],$t={class:"col-span-2 mt-4 pb-5 lg:pb-0"},jt={for:"situation",class:"text-grey text-sm font-medium"},Nt=["value","disabled"],Vt={class:"col-span-2 mt-4"},Tt={class:"flex cursor-pointer items-start text-sm"},Mt=["checked","disabled"],It={class:"mt-auto flex items-center gap-2.5 pt-8"},Ft=["disabled"],Ht=["disabled"],Bt=F({__name:"Step3",props:{firstName:{},lastName:{},email:{},situation:{},consent:{type:Boolean},isLoading:{type:Boolean}},emits:["update:firstName","update:lastName","update:email","update:situation","update:consent","goToStep","submit"],setup(T,{emit:f}){const i=f;return(l,t)=>(n(),c("div",gt,[t[15]||(t[15]=V('<div class="relative grid grid-cols-3"><div class="bg-brand-red absolute top-1/2 left-0 z-10 h-1 w-full -translate-y-1/2"></div><h4 class="bg-brand-red relative z-20 flex h-12 w-12 items-center justify-center rounded-full"><svg xmlns="http://www.w3.org/2000/svg" width="28" height="29" viewBox="0 0 28 29" fill="none"><path d="M11.6668 18.6837L7.82496 14.8418L6.17529 16.4915L11.6668 21.983L22.9916 10.6582L21.342 9.00848L11.6668 18.6837Z" fill="white"></path></svg></h4><div class="flex justify-center"><h4 class="bg-brand-red relative z-20 flex h-12 w-12 items-center justify-center rounded-full"><svg xmlns="http://www.w3.org/2000/svg" width="28" height="29" viewBox="0 0 28 29" fill="none"><path d="M11.6668 18.6837L7.82496 14.8418L6.17529 16.4915L11.6668 21.983L22.9916 10.6582
1L21.342 9.00848L11.6668 18.6837Z" fill="white"></path></svg></h4></div><div class="flex justify-end"><h4 class="text-slate border-brand-red relative z-20 flex h-12 w-12 items-center justify-center rounded-full border-2 bg-white">3</h4></div></div>',1)),e("div",bt,[t[14]||(t[14]=e("div",{class:"pb-8 md:pb-0"},[e("h4",{class:"pb-5"},"One last thing!"),e("p",{class:"text-h6 pb-5"},"Please tell us a little about yourself.")],-1)),e("form",{onSubmit:t[7]||(t[7]=se(()=>{},["prevent"]))},[e("div",vt,[e("div",ht,[e("label",xt,[t[8]||(t[8]=S(" First Name ")),e("input",{type:"text",value:l.firstName,onInput:t[0]||(t[0]=o=>i("update:firstName",o.target.value)),placeholder:"Type your name here",class:"border-light-grey focus:border-slate mt-1 w-full rounded border bg-white px-3 py-2 text-sm font-medium focus:ring-0",disabled:l.isLoading},null,40,wt)])]),e("div",yt,[e("label",kt,[t[9]||(t[9]=S(" Last Name ")),e("input",{type:"text",value:l.lastName,onInput:t[1]||(t[1]=o=>i("update:lastName",o.target.value)),placeholder:"Type your name here",class:"border-light-grey focus:border-slate mt-1 w-full rounded border bg-white px-3 py-2 text-sm font-medium focus:ring-0",disabled:l.isLoading},null,40,_t)])]),e("div",Ct,[e("label",Lt,[t[10]||(t[10]=S(" Email Address ")),e("input",{type:"email",value:l.email,onInput:t[2]||(t[2]=o=>i("update:email",o.target.value)),placeholder:"[email protected]",class:"border-light-grey focus:border-slate mt-1 w-full rounded border bg-white px-3 py-2 text-sm font-medium focus:ring-0",disabled:l.isLoading},null,40,St)])]),e("div",$t,[e("label",jt,[t[12]||(t[12]=S(" What describes your current situation? ")),e("select",{value:l.situation,onChange:t[3]||(t[3]=o=>i("update:situation",o.target.value)),class:"border-light-grey focus:border-slate mt-1 w-full rounded border bg-white px-3 py-2 text-sm font-medium focus:ring-0",disabled:l.isLoading},t[11]||(t[11]=[V('<option value="">Please select</option><option value="Iâm thinking of moving to Canada and need to apply for a visa"> Iâm thinking of moving to Canada and need to apply for a visa </option><option value="Iâm looking for a job in Canada without a Visa">Iâm looking for a job in Canada without a Visa</option><option value="I need help with applying for a visa">I need help with applying for a visa</option><option value="I am moving to Canada with a visa">I am moving to Canada with a visa</option><option value="Iâm looking for a job in Canada and I have a Visa"> Iâm looking for a job in Canada and I have a Visa </option><option value="Iâm looking for housing in Canada and I have a job in Canada with a Canadian Visa"> Iâm looking for housing in Canada and I have a job in Canada with a Canadian Visa </option>',7)]),40,Nt)])]),e("div",Vt,[e("label",Tt,[e("input",{type:"checkbox",checked:l.consent,onChange:t[4]||(t[4]=o=>i("update:consent",o.target.checked)),class:"border-light-grey text-brand-red mt-0.5 mr-2 h-5 w-5 cursor-pointer rounded focus:ring-0",disabled:l.isLoading},null,40,Mt),t[13]||(t[13]=e("span",{class:"text-grey font-medium select-none"}
1," I would like Prepare For Canada to contact me by email about events, contests, and special offers. ",-1))])])]),e("div",It,[e("button",{type:"button",class:"btn-primary",onClick:t[5]||(t[5]=o=>i("goToStep","step-2-yes")),disabled:l.isLoading},"Back",8,Ft),e("button",{type:"button",class:"btn-secondary rounded-search min-w-[140px]",disabled:!l.firstName||!l.lastName||!l.email||!l.situation||!l.consent||l.isLoading,onClick:t[6]||(t[6]=o=>i("submit"))},Z(l.isLoading?"Sending...":"Next"),9,Ht)])],32)])]))}}),zt={class:"relative z-10 mx-auto flex h-full !max-w-[960px] flex-col p-6"},Zt={class:"relative grid grid-cols-3"},Dt={class:"flex-grow pt-11 md:grid md:grid-cols-2 md:gap-x-8 xl:gap-x-12"},At={class:"pb-8 md:pb-0"},Pt={class:"pb-5 font-bold text-black"},Ut={class:"custom-scrollbar max-h-[400px] overflow-y-auto pr-2"},Et={key:0,class:"text-grey mb-5"},Gt={key:1,class:"group rounded-btn border-off-white open:bg-off-white mb-5 border-b bg-white p-2.5 shadow-sm [&_summary::-webkit-details-marker]:hidden"},Ot={class:"mt-4 grid gap-2.5 px-2.5 pb-2.5"},Rt=["href","target"],Yt=["innerHTML"],Jt={class:"flex"},Wt={key:2,class:"group rounded-btn border-off-white open:bg-off-white mb-5 border-b bg-white p-2.5 shadow-sm [&_summary::-webkit-details-marker]:hidden"},qt={class:"mt-4 grid gap-2.5 px-2.5 pb-2.5"},Kt=["href","target"],Qt=["innerHTML"],Xt={class:"flex"},eo={class:"col-start-2 mt-8 flex gap-4"},to=F({__name:"StepFinal",props:{firstName:{},solutions:{},links:{}},emits:["goToStep","close"],setup(T,{emit:f}){const i=T,l=f,t=D(()=>{const h=[];return i.solutions.accommodation&&i.links.accommodation&&h.push(...i.links.accommodation),i.solutions.jobFinding&&i.links.jobFinding&&h.push(...i.links.jobFinding),i.solutions.financeSolutions&&i.links.financeSolutions&&h.push(...i.links.financeSolutions),h}),o=D(()=>t.value.filter(h=>h.location==="resources")),y=D(()=>t.value.filter(h=>h.location!=="resources"));return(h,a)=>(n(),c("div",zt,[e("div",Zt,[a[3]||(a[3]=e("div",{class:"bg-brand-red absolute top-1/2 left-0 z-10 h-1 w-full -translate-y-1/2"},null,-1)),(n(),c(B,null,z(3,r=>e("div",{key:r,class:M(["bg-brand-red relative z-20 flex h-12 w-12 items-center justify-center rounded-full",r===2?"mx-auto":r===3?"ml-auto":""])},a[2]||(a[2]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"29",viewBox:"0 0 28 29",fill:"none"},[e("path",{d:"M11.6668 18.6837L7.82496 14.8418L6.17529 16.4915L11.6668 21.983L22.9916 10.6582L21.342 9.00848L11.6668 18.6837Z",fill:"white"})],-1)]),2)),64))]),e("div",Dt,[e("div",At,[e("h4",Pt,"Thank you for your answers, "+Z(h.firstName||"there")+"!",1),a[4]||(a[4]=e("p",{class:"text-h6 pb-5"},"Here are some solutions that fit your profile.",-1))]),e("div",Ut,[!o.value.length&&!y.value.length?(n(),c("p",Et," No resources available for these selections at this time. ")):$("",!0),o.value.length?(n(),c("details",Gt,[a[6]||(a[6]=V('<summary class="flex cursor-pointer list-none items-center justify-between p-2.5" data-v-d3a0215a><div data-v-d3a0215a><p class="pb-1 font-bold" data-v-d3a0215a>Articles</p><p class="text-sm" data-v-d3a0215a>Information relevant to your needs.</p></div><svg class="text-grey h-6 w-6 transition-transform duration-300 group-open:rotate-180" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-d3a0215a><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" data-v-d3a0215a></path></svg></summary>',1)),e("div",Ot,[(n(!0),c(B,null,z(o.value,(r,b)=>{var L;return n(),c("a",{key:b,href:(L=r.link)==null?void 0:L.url,target:r.target||"_blank",class:"rounded-btn group/link hover:border-brand-red/20 flex items-end justify-between border border-transparent bg-white/50 p-5 no-underline shadow-sm transition-all hover:bg-white"},[e("div",null,[e("div",{class:"group-hover/link:text-brand-red pb-4 font-bold transition",innerHTML:r.title},null,8,Yt),e("div",Jt,[e("h6",{class:M(`font-body inline rounded-full px-2.5 py-1 text-xs font-bold bg-light-${r.tag_colour||"grey"}`)},Z(r.tag),3)])]),a[5]||(a[5]=e("div",{class:"group-hover/link:bg-off-white ml-4 flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-white shadow-sm transition-all"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[e("path",{d:"M11.293 17.293L12.707 18.707L19.414 12L12.707 5.29297L11.293 6.70697L15.586 11H6V13H15.586L11.293 17.293Z",class:"fill-grey/25 group-hover/link:fill-brand-red transition-all"})])],-1))],8,Rt)}),128))])])):$("",!0),y.value.length?(n(),c("details",Wt,[a[8]||(a[8]=V('<summary class="flex cursor-pointer list-none items-center justify-between p-2.5" data-v-d3a0215a><div data-v-d3a0215a><p class="pb-1 font-bold" data-v-d3a0215a>Resources</p><p class="text-sm" data-v-d3a0215a>Free webinars and guides to aid you on your journey.</p></div><svg class="text-grey h-6 w-6 transition-transform duration-300 group-open:rotate-180" fill="none" stroke="currentColor" viewBox="0 0 24 24" data-v-d3a0215a><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" data-v-d3a0215a></path></svg></summary>',1)),e("div",qt,[(n(!0),c(B,null,z(y.value,(r,b)=>(n(),c("a",{key:b,href:r.url,target:r.target||"_blank",class:"rounded-btn group/link hover:border-brand-red/20 flex items-end justify-between border border-transparent bg-white/50 p-5 no-underline shadow-sm transition-all hover:bg-white"},[e("div",null,[e("div",{class:"group-hover/link:text-brand-red pb-4 font-bold transition",innerHTML:r.title},null,8,Qt),e("div",Xt,[e("h6",{class:M(`font-body inline rounded-full px-2.5 py-1 text-xs font-bold bg-light-${r.tag_colour||"grey"}`)},Z(r.tag),3)])]),a[7]||(a[7]=e("div",{class:"group-hover/link:bg-off-white ml-4 flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-white shadow-sm transition-all"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[e("path",{d:"M11.293 17.293L12.707 18.707L19.414 12L12.707 5.29297L11.293 6.70697L15.586 11H6V13H15.586L11.293 17.293Z",class:"fill-grey/25 group-hover/link:fill-brand-red transition-all"})])],-1))],8,Kt))),128))])])):$("",!0)]),e("div",eo,[e("button",{onClick:a[0]||(a[0]=r=>l("goToStep","step-3")),class:"btn-primary"},"Back"),e("button",{onClick:a[1]||(a[1]=r=>l("close")),class:"btn-secondary"},"Close")])])]))}}),oo=le(to,[["__scopeId","data-v-d3a0215a"]]),so={class:"relative z-10 mx-auto flex h-full !max-w-[9
160px] flex-col p-6"},no={class:"relative grid grid-cols-3"},lo={class:"flex-grow pt-11 md:grid md:grid-cols-2 md:gap-x-8 xl:gap-x-12"},ao={class:"col-start-2 mt-8 flex gap-4"},io=F({__name:"StepFinalNo",emits:["goToStep","close"],setup(T,{emit:f}){const i=f;return(l,t)=>(n(),c("div",so,[e("div",no,[t[3]||(t[3]=e("div",{class:"bg-brand-red absolute top-1/2 left-0 z-10 h-1 w-full -translate-y-1/2"},null,-1)),(n(),c(B,null,z(3,o=>e("div",{key:o,class:M(["bg-brand-red relative z-20 flex h-12 w-12 items-center justify-center rounded-full",o===2?"mx-auto":o===3?"ml-auto":""])},t[2]||(t[2]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"29",viewBox:"0 0 28 29",fill:"none"},[e("path",{d:"M11.6668 18.6837L7.82496 14.8418L6.17529 16.4915L11.6668 21.983L22.9916 10.6582L21.342 9.00848L11.6668 18.6837Z",fill:"white"})],-1)]),2)),64))]),e("div",lo,[t[4]||(t[4]=V('<div class="pb-8 md:pb-0"><h4 class="text-brand-red pb-5 font-bold">Thank you for your answers!</h4><p class="text-h6 pb-5">Here are some solutions that fit your profile.</p></div><div id="links"><a href="https://www.canada.ca/en/immigration-refugees-citizenship/services/immigrate-canada.html" target="_blank" class="rounded-btn bg-light-grey/50 group hover:border-off-white mb-2.5 flex items-end justify-between border border-transparent p-5 no-underline transition-all hover:bg-white"><div><p class="group-hover:text-brand-red pb-4 font-bold transition">Government of Canada Visa Applications</p><div class="flex"><h6 class="font-body bg-light-purple text-purple inline rounded-full px-2.5 py-1 text-xs font-bold">Immigration</h6></div></div><div class="group-hover:bg-off-white flex h-11 w-11 items-center justify-center rounded-full bg-white shadow-sm transition-all"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M11.293 17.293L12.707 18.707L19.414 12L12.707 5.29297L11.293 6.70697L15.586 11H6V13H15.586L11.293 17.293Z" class="fill-grey/25 group-hover:fill-brand-red transition-all"></path></svg></div></a></div>',2)),e("div",ao,[e("button",{onClick:t[0]||(t[0]=o=>i("goToStep","step-2-no")),class:"btn-primary"},"Back"),e("button",{onClick:t[1]||(t[1]=o=>i("close")),class:"btn-secondary"},"Close")])])]))}}),ro={key:0,class:"fixed inset-0 z-[100] flex items-center justify-center p-4"},uo={class:"rounded-btn to-light-grey/50 relative container flex max-h-[90vh] w-full flex-col overflow-y-auto bg-white bg-gradient-to-l from-white via-25% shadow-lg lg:min-h-[540px] lg:overflow-hidden"},co=F({__name:"GuidedForm",setup(T,{expose:f}){const i=I(!1);f({show:()=>i.value=!0,close:()=>i.value=!1});const l=I("step-1"),t=I(!1),o=I(!1),y=async()=>{o.value=!0;const v="https://api.hsforms.com/submissions/v3/integration/submit/470123/7f094727-19e5-4e57-9488-856a02410772",A=[];r.accommodation&&A.push("Accommodation"),r.jobFinding&&A.push("Job Finding"),r.financeSolutions&&A.push("Finance Solutions");const O={fields:[{name:"firstname",value:a.firstName},{name:"lastname",value:a.lastName},{name:"email",value:a.email},{name:"what_describes_your_situation_the_best_",value:a.situation},{name:"sign_up_to_hear_from_us",value:a.consent},{name:"what_solutions_are_you_interested_in_",value:A.join(";")},{name:"are_you_currently_living_in_canada_",value:a.inCanada}],context:{pageUri:window.location.href,pageName:document.title},legalConsentOptions:{consent:{consentToProcess:a.consent,text:"I would like Prepare For Canada to contact me by email about events, contests, and special offers."}}};try{if(!(await fetch(v,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(O)})).ok)throw new Error("HubSpot submission failed");console.log("Form submitted successfully to HubSpot!"),j("step-final")}catch(R){console.error("HubSpot Error:",R),j("step-final")}finally{o.value=!1}},h=()=>{i.value=!1},a=Q({firstName:"",lastName:"",email:"",situation:"",consent:!1,inCanada:"No"}),r=Q({accommodation:!1,jobFinding:!1,financeSolutions:!1}),b=Q({accommodation:[],jobFinding:[],financeSolutions:[]}),L=D(()=>{const m=[];
1return r.accommodation&&m.push(...b.accommodation),r.jobFinding&&m.push(...b.jobFinding),r.financeSolutions&&m.push(...b.financeSolutions),m}),G=D(()=>L.value.filter(m=>m.location==="resources")),g=D(()=>L.value.filter(m=>m.location!=="resources"));W(r,m=>{localStorage.setItem("accommodation",String(m.accommodation)),localStorage.setItem("jobFinding",String(m.jobFinding)),localStorage.setItem("financeSolutions",String(m.financeSolutions))},{deep:!0}),W([G,g],([m,u])=>{m.length>0?localStorage.setItem("resource_links",JSON.stringify(m)):localStorage.removeItem("resource_links"),u.length>0?localStorage.setItem("outcomes_links",JSON.stringify(u)):localStorage.removeItem("outcomes_links")}),ge(async()=>{r.accommodation=localStorage.getItem("accommodation")==="true",r.jobFinding=localStorage.getItem("jobFinding")==="true",r.financeSolutions=localStorage.getItem("financeSolutions")==="true";const m=localStorage.getItem("inCanada");m&&(a.inCanada=m),await q(),(localStorage.getItem("resource_links")||localStorage.getItem("outcomes_links"))&&(l.value="step-final")});const q=async()=>{t.value=!0;try{const u=await(await fetch("/blog/wp-json/pfc/v1/guided-form-links",{method:"GET",headers:{Accept:"application/json"}})).json();u.success&&(b.accommodation=u.data.accommodation_links||[],b.jobFinding=u.data.job_finding_links||[],b.financeSolutions=u.data.finance_solutions_links||[])}catch(m){console.error("Error loading links: ",m)}finally{t.value=!1}},j=m=>{l.value=m};return(m,u)=>(n(),H(ne,{name:"fade"},{default:w(()=>[i.value?(n(),c("div",ro,[e("div",{class:"absolute inset-0 bg-black/40 transition-opacity",onClick:u[0]||(u[0]=v=>i.value=!1)}),e("div",uo,[u[12]||(u[12]=e("svg",{width:"638",height:"720",viewBox:"0 0 1159 1309",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"pointer-events-none absolute top-16 z-0 hidden scale-x-[-1] lg:block xl:-left-4"},[e("g",{"clip-path":"url(#clip0_10723_21408)"},[e("path",{d:"M6.18945 1083.01L456.959 1306.67C456.959 1306.67 686.209 626.64 1157.59 0.709961C1157.59 0.709961 683.629 469.51 341.049 1133.97L6.18945 1083.01Z",stroke:"white","stroke-width":"3","stroke-miterlimit":"10"}),e("path",{d:"M115.291 792.5L64.4609 805.52L349.571 1034.87C504.391 753.47 678.411 512.08 821.221 333.45L816.461 338.04C795.781 357.99 761.781 352.82 747.971 327.62L646.501 142.53L549.671 332.97C537.231 357.43 505.561 364.45 483.951 347.55L423.961 300.63L490.021 624.02C497.891 658.34 454.641 680.37 431.501 653.82L300.101 503.04L289.061 559.97C283.621 588.05 255.441 605.56 227.861 598.02L86.6209 559.43L149.171 727.78C159.331 755.13 143.561 785.27 115.301 792.51L115.291 792.5Z",stroke:"white","stroke-width":"3","stroke-miterlimit":"10"})]),e("defs",null,[e("clipPath",{id:"clip0_10723_21408"},[e("rect",{width:"1158.39",height:"1308.07",fill:"white"})])])],-1)),x(ne,{name:"fade",mode:"out-in"},{default:w(()=>[l.value==="step-1"?(n(),H(We,{key:"step-1",inCanada:a.inCanada,"onUpdate:inCanada":u[1]||(u[1]=v=>a.inCanada=v),onGoToStep:j},null,8,["inCanada"])):l.value==="step-2-no"?(n(),H(Xe,{key:"step-2-no",onGoToStep:j})):l.value==="step-2-yes"?(n(),H(mt,{key:"step-2-yes",accommodation:r.accommodation,"onUpdate:accommodation":u[2]||(u[2]=v=>r.accommodation=v),jobFinding:r.jobFinding,"onUpdate:jobFinding":u[3]||(u[3]=v=>r.jobFinding=v),financeSolutions:r.financeSolutions,"onUpdate:financeSolutions":u[4]||(u[4]=v=>r.financeSolutions=v),onGoToStep:j},null,8,["accommodation","jobFinding","financeSolutions"])):l.value==="step-3"?(n(),H(Bt,{key:"step-3",firstName:a.firstName,"onUpdate:firstName":u[5]||(u[5]=v=>a.firstName=v),lastName:a.lastName,"onUpdate:lastName":u[6]||(u[6]=v=>a.lastName=v),email:a.email,"onUpdate:email":u[7]||(u[7]=v=>a.email=v),situation:a.situation,"onUpdate:situation":u[8]||(u[8]=v=>a.situation=v),consent:a.consent,"onUpdate:consent":u[9]||(u[9]=v=>a.consent=v),onGoToStep:j,isLoading:o.value,onSubmit:y},null,8,["firstName","lastName","email","situation","consent","isLoading"])):l.value==="step-final"?(n(),H(oo,{key:"step-final",firstName:a.firstName,solutions:r,links:b,onGoToStep:j,onClose:h},null,8,["firstName","solutions","links"])):l.value==="step-final-no"?(n(),H(io,{key:"step-final-no",onGoToStep:j,onClose:h})):$("",!0)]),_:1}),e("button",{onClick:u[10]||(u[10]=v=>i.value=!1),class:"absolute top-4 right-4 z-50 rounded-full p-2 transition hover:bg-black/5"},u[11]||(u[11]=[e("svg",{class:"h-6 w-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]))])])):$("",!0)]),_:1}))}}),To=le(co,[["__scopeId","data-v-094d0618"]]),po={key:0,width:"23",height:"24",viewBox:"0 0 23 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fo={key:1,class:"flex h-6 w-6 items-center justify-center text-xl"},mo={key:0,class:"pointer-events-none fixed inset-0 z-40"},go={class:"border-off-white border-b"},bo={class:"container flex flex-col gap-4 pt-2 xl:h-16 xl:flex-row xl:items-center xl:pt-0"},vo={class:"flex max-w-39 shrink-0 items-center gap-0.5 rounded-full bg-gray-100 p-1"},ho={class:"flex h-11 w-full flex-col gap-1 lg:flex-1"},xo={class:"flex flex-1 flex-col gap-1 border-l pl-2 lg:pl-4"},wo={class:"flex items-center gap-2"},yo=["value"],ko=["value"],_o={class:"flex flex-1 flex-col gap-1 border-l pl-2 lg:pl-4"},Co={class:"flex flex-1 flex-col gap-1 border-l pl-2 lg:pl-4"},te="any-bedrooms",oe="any-property-type",Mo=F({__name:"SearchModal",props:{panelOffsetClass:{}},emits:["toggle"],setup(T,{emit:f}){const i=T,l=f,t=I(!1),o=I(""),y=I(null),h=I("rentals"),a=I(null);let r=null,b=null,L=null;const G=d=>d.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),g=I({city:void 0,rental_types:[],amenities:[],utilities:[],min_price:void 0,max_price:void 0,bedrooms:void 0,pet_friendly:void 0,pet_friendly_not_allowed:void 0,pet_friendly_cats:void 0,pet_friendly_small_dogs:void 0,pet_friendly_large_dogs:void 0}),q=()=>{t.value=!t.value,l("toggle",t.value)},j=()=>{t.value=!1,o.value="",l("toggle",!1)},m=d=>{d.key==="Escape"&&t.value&&j()};ge(()=>{document.addEventListener("keydown",m),me().then(d=>{r=d})}),Le(()=>{document.removeEventListener("keydown",m),u()});function u(){b&&(b.removeEventListener("input",A),b.removeEventListener("gmp-select",O),b=null)}async function v(){r||(r=await me()),!(!r||!a.value)&&(u(),b=new r.maps.places.PlaceAutocompleteElement({includedReg
1ionCodes:["ca"],includedPrimaryTypes:["locality","neighborhood","sublocality"]}),b.setAttribute("name","city"),b.setAttribute("placeholder","Search city..."),b.className="w-full",a.value.innerHTML="",a.value.appendChild(b),b.addEventListener("input",A),b.addEventListener("gmp-select",O))}function A(){L=null,g.value.city=void 0}async function O(d){if(r)try{const s=d.placePrediction;if(!s){L=null;return}const k=s.toPlace();await k.fetchFields({fields:["displayName","location","viewport","addressComponents"]});const _=k.addressComponents??[],C=ke=>{var re;return(re=_.find(_e=>{var de;return(de=_e.types)==null?void 0:de.includes(ke)}))==null?void 0:re.longText},E=C("locality"),P=C("administrative_area_level_1"),U=C("sublocality")??C("sublocality_level_1")??C("neighborhood"),Y=!!U&&!!E,J=E??k.displayName??void 0;L={city:J,citySlug:J?G(J):void 0,provinceSlug:P?G(P):void 0,neighbourhoodSlug:Y?G(U):void 0,bounds:R(k,r)},g.value.city=J}catch(s){L=null,console.error("Failed to fetch place details",s)}}function R(d,s){if(d.viewport){const _=d.viewport.getNorthEast(),C=d.viewport.getSouthWest
1(),E=_.lat()-C.lat(),P=_.lng()-C.lng();if(E<.025*2||P<.025*2){const U=(_.lat()+C.lat())/2,Y=(_.lng()+C.lng())/2;return ee(new s.maps.LatLngBounds({lat:U-.025,lng:Y-.025},{lat:U+.025,lng:Y+.025}))}return ee(d.viewport)}if(d.location){const _=d.location.lat(),C=d.location.lng();return ee(new s.maps.LatLngBounds({lat:_-.15,lng:C-.15},{lat:_+.15,lng:C+.15}))}return null}W(()=>h.value==="rentals"&&t.value,async d=>{d?(await X(),v()):u()}),W(t,async d=>{var s;d&&h.value==="content"&&(await X(),(s=y.value)==null||s.focus())});const be=()=>{o.value.trim()&&(window.location.href=`/blog/?s=${encodeURIComponent(o.value)}`)},ve=()=>{var P;const{provinceSlug:d,citySlug:s,neighbourhoodSlug:k}=L??{},_=new URLSearchParams;g.value.min_price!==void 0&&_.set("min_price",g.value.min_price.toString()),g.value.max_price!==void 0&&_.set("max_price",g.value.max_price.toString()),g.value.bedrooms!==void 0&&_.set("bedrooms",g.value.bedrooms.toString()),(P=g.value.rental_types)!=null&&P.length&&_.set("rental_types",g.value.rental_types.join(","));const C=_.toString(),E=C?`?${C}`:"";if(d&&s){const U=k?`/rentals/${d}/${s}/${k}`:`/rentals/${d}/${s}`;window.location.href=U+E;return}g.value.city&&_.set("city",g.value.city.toLowerCase()),L!=null&&L.bounds&&_.set("bounds",L.bounds),window.location.href=`/rentals${_.toString()?"?"+_.toString():""}`},ae=()=>{h.value==="content"?be():ve()},ie=async d=>{var s;h.value=d,o.value="",d==="content"&&(await X(),(s=y.value)==null||s.focus())},K=d=>{if(d===""||d===null||d===void 0)return;const s=Number(d);return Number.isNaN(s)?void 0:s},he=D(()=>g.value.bedrooms===void 0?te:g.value.bedrooms.toString()),xe=D(()=>{var d;return((d=g.value.rental_types)==null?void 0:d[0])??oe});function we(d){g.value.bedrooms=d===te?void 0:K(typeof d=="string"?d:void 0)}function ye(d){const s=typeof d=="string"&&d!==oe?d:"";g.value.rental_types=s?[s]:[]}return(d,s)=>(n(),c("div",null,[e("button",{onClick:q,class:"border-off-white rounded-search h-full border bg-white px-2.5 py-2 transition-colors hover:bg-gray-50 focus:ring-0 focus:outline-none lg:px-4 lg:py-2.5","aria-label":"Open search"},[t.value?(n(),c("span",fo,"X")):(n(),c("svg",po,s[5]||(s[5]=[e("path",{d:"M9.58366 17.9913C11.2847 17.9909 12.9367 17.4215 14.2766 16.3736L18.4895 20.5865L19.8445 19.2314L15.6317 15.0185C16.6801 13.6785 17.2499 12.0261 17.2503 10.3246C17.2503 6.09741 13.8109 2.65795 9.58366 2.65795C5.35645 2.65795 1.91699 6.09741 1.91699 10.3246C1.91699 14.5518 5.35645 17.9913 9.58366 17.9913ZM9.58366 4.57462C12.7548 4.57462 15.3337 7.15349 15.3337 10.3246C15.3337 13.4957 12.7548 16.0746 9.58366 16.0746C6.41253 16.0746 3.83366 13.4957 3.83366 10.3246C3.83366 7.15349 6.41253 4.57462 9.58366 4.57462Z",class:"fill-black"},null,-1)])))]),(n(),H(Se,{to:"body"},[x(ne,{"enter-active-class":"transition duration-200 ease-out","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition duration-150 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:w(()=>[t.value?(n(),c("div",mo,[e("div",{onClick:j,class:M(["pointer-events-auto fixed inset-0 z-30 cursor-pointer bg-black/30 backdrop-blur-sm",i.panelOffsetClass??"top-39"])},null,2),e("div",{class:M(["pointer-events-auto fixed right-0 left-0 z-40 bg-white/90 shadow-md backdrop-blur",i.panelOffsetClass??"top-16 lg:top-23 xl:top-29.5 2xl:top-23"])},[e("div",go,[e("div",bo,[e("div",vo,[e("button",{type:"button",onClick:s[0]||(s[0]=k=>ie("rentals")),class:M(["rounded-full px-3 py-1 text-xs font-semibold transition-colors",h.value==="rentals"?"bg-brand-red text-white":"text-gray-600 hover:text-black"])}," Rentals ",2),e("button",{type:"button",onClick:s[1]||(s[1]=k=>ie("content")),class:M(["rounded-full px-3 py-1 text-xs font-semibold transition-colors",h.value==="content"?"bg-brand-red text-white":"text-gray-600 hover:text-black"])}," Content ",2)]),h.value==="content"?(n(),c("form",{key:0,onSubmit:se(ae,["prevent"]),class:"flex h-full flex-1 items-center gap-3"},[s[6]||(s[6]=e("svg",{width:"20",height:"20",viewBox:"0 0 23 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"text-grey/50 shrink-0"},[e("path",{d:"M9.58366 17.9913C11.2847 17.9909 12.9367 17.4215 14.2766 16.3736L18.4895 20.5865L19.8445 19.2314L15.6317 15.0185C16.6801 13.6785 17.2499 12.0261 17.2503 10.3246C17.2503 6.09741 13.8109 2.65795 9.58366 2.65795C5.35645 2.65795 1.91699 6.09741 1.91699 10.3246C1.91699 14.5518 5.35645 17.9913 9.58366 17.9913ZM9.58366 4.57462C12.7548 4.57462 15.3337 7.15349 15.3337 10.3246C15.3337 13.4957 12.7548 16.0746 9.58366 16.0746C6.41253 16.0746 3.83366 13.4957 3.83366 10.3246C3.83366 7.15349 6.41253 4.57462 9.58366 4.57462Z",class:"fill-current"})],-1)),$e(e("input",{"onUpdate:modelValue":s[2]||(s[2]=k=>o.value=k),ref_key:"searchInput",ref:y,type:"text",class:"placeholder:text-grey/50 h-full flex-1 bg-transparent text-black focus:outline-none",placeholder:"Search topics, articles, resources and more...",autocomplete:"off"},null,512),[[je,o.value]]),s[7]||(s[7]=e("button",{type:"submit",class:"bg-brand-red hover:bg-brand-red/90 ml-3 flex h-10 w-10 shrink-0 items-center justify-center rounded-full text-white transition-colors","aria-label":"Submit search"},[e("svg",{width:"18",height:"18",viewBox:"0 0 23 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M9.58366 17.9913C11.2847 17.9909 12.9367 17.4215 14.2766 16.3736L18.4895 20.5865L19.8445 19.2314L15.6317 15.0185C16.6801 13.6785 17.2499 12.0261 17.2503 10.3246C17.2503 6.09741 13.8109 2.65795 9.58366 2.65795C5.35645 2.65795 1.91699 6.09741 1.91699 10.3246C1.91699 14.5518 5.35645 17.9913 9.58366 17.9913ZM9.58366 4.57462C12.7548 4.57462 15.3337 7.15349 15.3337 10.3246C15.3337 13.4957 12.7548 16.0746 9.58366 16.0746C6.41253 16.0746 3.83366 13.4957 3.83366 10.3246C3.83366 7.15349 6.41253 4.57462 9.58366 4.57462Z",class:"fill-current"})])],-1))],32)):(n(),c("form",{key:1,onSubmit:se(ae,["prevent"]),class:"flex h-full flex-1 flex-col flex-wrap gap-6 md:flex-row md:items-center"},[e("div",ho,[s[8]||(s[8]=e("label",{class:"text-text-black text-xs font-semibold uppercase"}
1,"Where",-1)),e("div",{ref_key:"autocompleteContainerRef",ref:a,class:"place-autocomplete-host h-6 w-full text-base text-black"},null,512)]),e("div",xo,[s[9]||(s[9]=e("label",{class:"text-text-black text-xs font-semibold uppercase"},"Price",-1)),e("div",wo,[e("input",{value:g.value.min_price??"",type:"number",inputmode:"numeric",min:"0",step:"50",placeholder:"Min",class:"text-grey/50 placeholder:text-grey/50 w-16 flex-1 border-0 bg-transparent p-0 focus:outline-none",onInput:s[3]||(s[3]=k=>g.value.min_price=K(k.target.value))},null,40,yo),e("input",{value:g.value.max_price??"",type:"number",inputmode:"numeric",min:"0",step:"50",placeholder:"Max",class:"text-grey/50 placeholder:text-grey/50 w-16 flex-1 border-0 bg-transparent p-0 focus:outline-none",onInput:s[4]||(s[4]=k=>g.value.max_price=K(k.target.value))},null,40,ko)])]),e("div",_o,[s[16]||(s[16]=e("label",{id:"modal-bedrooms-label",for:"modal-bedrooms",class:"text-text-black text-xs font-semibold uppercase"}," Bedrooms ",-1)),x(p(ue),{"model-value":he.value,"onUpdate:modelValue":we},{default:w(()=>[x(p(ce),{id:"modal-bedrooms","aria-labelledby":"modal-bedrooms-label",class:M(["h-auto w-full border-0 bg-transparent p-0 text-base font-normal shadow-none hover:border-transparent data-[size=default]:h-auto",g.value.bedrooms===void 0?"text-grey/50":"text-grey"])},{default:w(()=>[x(p(pe))]),_:1},8,["class"]),x(p(fe),null,{default:w(()=>[x(p(N),{value:te},{default:w(()=>s[10]||(s[10]=[S("Any beds")])),_:1,__:[10]}),x(p(N),{value:"0"},{default:w(()=>s[11]||(s[11]=[S("Bachelor")])),_:1,__:[11]}),x(p(N),{value:"1"},{default:w(()=>s[12]||(s[12]=[S("1 bed")])),_:1,__:[12]}),x(p(N),{value:"2"},{default:w(()=>s[13]||(s[13]=[S("2 bed")])),_:1,__:[13]}),x(p(N),{value:"3"},{default:w(()=>s[14]||(s[14]=[S("3 bed")])),_:1,__:[14]}),x(p(N),{value:"4"},{default:w(()=>s[15]||(s[15]=[S("4+ bed")])),_:1,__:[15]})]),_:1})]),_:1},8,["model-value"])]),e("div",Co,[s[22]||(s[22]=e("label",{id:"modal-property-type-label",for:"modal-property-type",class:"text-text-black text-xs font-semibold uppercase"}," Property Type ",-1)),x(p(ue),{"model-value":xe.value,"onUpdate:modelValue":ye},{default:w(()=>{var k;return[x(p(ce),{id:"modal-property-type","aria-labelledby":"modal-property-type-label",class:M(["h-auto w-full border-0 bg-transparent p-0 text-base font-normal shadow-none hover:border-transparent data-[size=default]:h-auto",(k=g.value.rental_types)!=null&&k.length?"text-grey":"text-grey/50"])},{default:w(()=>[x(p(pe))]),_:1},8,["class"]),x(p(fe),null,{default:w(()=>[x(p(N),{value:oe},{default:w(()=>s[17]||(s[17]=[S("Any type")])),_:1,__:[17]}),x(p(N),{value:"Apartment"},{default:w(()=>s[18]||(s[18]=[S("Apartment")])),_:1,__:[18]}),x(p(N),{value:"House"},{default:w(()=>s[19]||(s[19]=[S("House")])),_:1,__:[19]}),x(p(N),{value:"Condo"},{default:w(()=>s[20]||(s[20]=[S("Condo")])),_:1,__:[20]}),x(p(N),{value:"Townhouse"},{default:w(()=>s[21]||(s[21]=[S("Townhouse")])),_:1,__:[21]})]),_:1})]}),_:1},8,["model-value"])]),s[23]||(s[23]=e("button",{type:"submit",class:"bg-brand-red hover:bg-brand-red/90 flex h-10 w-full items-center justify-center gap-2 rounded-full text-white transition-colors md:ml-3 md:w-10 md:shrink-0","aria-label":"Search rentals"},[e("svg",{width:"18",height:"18",viewBox:"0 0 23 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M9.58366 17.9913C11.2847 17.9909 12.9367 17.4215 14.2766 16.3736L18.4895 20.5865L19.8445 19.2314L15.6317 15.0185C16.6801 13.6785 17.2499 12.0261 17.2503 10.3246C17.2503 6.09741 13.8109 2.65795 9.58366 2.65795C5.35645 2.65795 1.91699 6.09741 1.91699 10.3246C1.91699 14.5518 5.35645 17.9913 9.58366 17.9913ZM9.58366 4.57462C12.7548 4.57462 15.3337 7.15349 15.3337 10.3246C15.3337 13.4957 12.7548 16.0746 9.58366 16.0746C6.41253 16.0746 3.83366 13.4957 3.83366 10.3246C3.83366 7.15349 6.41253 4.57462 9.58366 4.57462Z",class:"fill-current"})]),e("span",{class:"md:hidden"},"Search")],-1))],32)),e("button",{type:"button",onClick:j,class:"text-grey/50 shrink-0 text-sm font-medium transition-colors hover:text-black"}," Cancel ")])])],2)])):$("",!0)]),_:1})]))]))}});
1export{To as G,Mo as _,Vo as a};
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.