1import{Z as o,j as n,m as ke,L as M,g as t,as as W,h as R,aF as w,o as p,ao as e,i as H,n as E,F,a7 as K,ah as Z,aG as ge,aA as He,a as xe,a6 as A,U as J,R as Ve,aB as q,v as $e,W as Me,ad as ae,ae as se,q as Le,x as Se,ay as Q,N as fe,I as pe,ab as me,f as Y,X as Ie,az as Te,D as De,av as re,at as Ze,aD as he,a8 as Ae}from"./DLbABYnb.js";import{_ as X}from"./DbHSgv2O.js";import{_ as ie}from"./DlAUqK2U.js";import{_ as ee}from"./CYfjXOEd.js";import{u as ve,a as Re}from"./Ciyuiudt.js";import{_ as te}from"./DyG2fEZ9.js";import{u as oe,b as le,c as Ee}from"./7YRlh9wW.js";import{u as G,a as Ce}from"./CHtJMb8x.js";import{d as Ne}from"./DzA_KLH1.js";import{u as _e}from"./C4_QyQ5x.js";import{_ as Be}from"./ChO7nv25.js";import{u as Ue}from"./CTfXv1NM.js";import{u as Pe}from"./C1zaJ8KS.js";import"./oBp65Ksk.js";import"./Cpj98o6Y.js";const ze={__name:"ReivLogo",props:{shrink:{type:Boolean,default:!1}},setup(a){return(l,r)=>(o(),n("svg",{class:M(["reiv-logo overflow-visible",{shrink:a.shrink}]),viewBox:"0 0 183 98",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...r[0]||(r[0]=[ke('<title>REIV logo</title><g class="reiv-logo__symbol delay-75 duration-300 ease-linear"><path d="M2.27486 33.2314C1.55175 33.2314 0.823361 33.2526 0.0949707 33.3001C7.1783 36.43 13.813 40.8848 19.6084 46.6855C25.4989 52.576 30.0117 59.3268 33.147 66.5421C33.7592 57.5322 30.8668 48.6385 24.343 42.1199C18.3944 36.1714 10.4613 33.2367 2.27486 33.2367" fill="rgb(var(--primary))"></path><path d="M33.3898 -9.2912e-05C32.7776 9.00976 35.67 17.9035 42.1938 24.4221C48.1424 30.3706 56.0755 33.3052 64.2619 33.3052C64.9851 33.3052 65.7134 33.2841 66.4418 33.2366C59.3585 30.1067 52.7238 25.6466 46.9284 19.8511C41.0379 13.9607 36.5251 7.2099 33.3898 -0.00537109" fill="rgb(var(--primary))"></path><path d="M64.1774 33.3105C55.991 33.3105 48.0578 36.2452 42.1093 42.1937C35.633 48.6701 32.73 57.4899 33.2948 66.4417C36.4194 59.3584 40.8795 52.7237 46.675 46.9283C52.5654 41.0378 59.3162 36.525 66.5315 33.3897C65.745 33.3369 64.9586 33.3105 64.1774 33.3105Z" fill="rgb(var(--primary))"></path><path d="M33.2367 0.0949707C30.1068 7.17829 25.652 13.813 19.8565 19.6084C13.9661 25.4989 7.21528 30.0064 0 33.1417C0.78645 33.1944 1.5729 33.2208 2.35935 33.2208C10.5458 33.2208 18.4737 30.2862 24.4275 24.3377C30.9038 17.8666 33.8015 9.04149 33.2367 0.0949707Z" fill="rgb(var(--primary))"></path><path d="M40.6737 40.8373C39.6656 41.8454 38.0294 41.8454 37.0212 40.8373C36.0131 39.8292 36.0131 38.1929 37.0212 37.1848C38.0294 36.1767 39.6656 36.1767 40.6737 37.1848C41.6819 38.1929 41.6819 39.8292 40.6737 40.8373Z" fill="rgb(var(--primary))"></path></g><g class="reiv-logo__text delay-75 duration-300 ease-linear"><path d="M78.6555 72.6121H65.1961V57.527H79.0461C81.4635 57.527 83.0469 57.9704 84.4984 59.063C86.14 60.2558 87.0478 62.2774 87.0478 64.7423C87.0478 70.1788 82.8358 72.6121 78.6555 72.6121ZM87.8131 98.0001H95.002L83.0575 76.8135L83.6223 76.6182C89.3069 74.6336 92.7007 70.1841 92.7007 64.7053C92.7007 60.9156 91.3073 57.7223 88.6682 55.4844C86.4408 53.5473 83.2264 52.5708 79.1147 52.5708H59.1526V98.0054H65.1961V77.5366H77.3623L87.8184 98.0054L87.8131 98.0001Z" fill="rgb(var(--primary))"></path><path d="M99.7208 98H127.869L125.821 92.3471H105.764V77.716H125.072V72.4536H105.764V58.2184H125.943L127.759 52.5654H99.7208V98Z" fill="rgb(var(--primary))"></path><path d="M139.275 52.5654H133.232V98H139.275V52.5654Z" fill="rgb(var(--primary))"></path><path d="M161.871 98H166.659L183 52.5654H176.64L164.278 88.3726L150.56 52.5654H144.205L161.871 98Z" fill="rgb(var(--primary))"></path></g>',3)])],2))}},je={},Oe={class:"rounded-full",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Fe(a,l){return o(),n("svg",Oe,[...l[0]||(l[0]=[t("title",null,"Search",-1),t("path",{d:"M33.6875 32.8984C34.0781 33.2891 34.0781 33.875 33.6875 34.2266C33.5312 34.4219 33.2969 34.5 33.0625 34.5C32.7891 34.5 32.5547 34.4219 32.3594 34.2266L27.125 28.9922C25.7188 30.125 23.9609 30.75 22.0859 30.75C17.6328 30.75 14 27.1172 14 22.625C14 18.1719 17.5938 14.5 22.0859 14.5C26.5391 14.5 30.2109 18.1719 30.2109 22.625C30.2109 24.5391 29.5859 26.2969 28.4531 27.6641L33.6875 32.8984ZM15.875 22.625C15.875 26.1016 18.6484 28.875 22.125 28.875C25.5625 28.875 28.375 26.1016 28.375 22.625C28.375 19.1875 25.5625 16.375 22.125 16.375C18.6484 16.375 15.875 19.1875 15.875 22.625Z",fill:"currentColor"},null,-1)])])}const qe=ie(je,[["render",Fe]]),Ye={__name:"SearchField",setup(a){const{$trackEvent:l}=W(),{resetSearchFilters:r}=ve();let c=null;function m(){r(),l("header_button",{click_text:"Search"}),c&&clearTimeout(c),c=setTimeout(()=>{const y=document.getElementById("search-reiv");y&&y.scrollIntoView({behavior:"smooth"})},1e3)}return(y,b)=>{const s=qe,u=ee;return o(),R(u,{class:"h-12 w-12",color:"light-outlined","nuxt-link":"/search",icon:"",onClick:m},{default:w(()=>[p(s,{class:"h-full w-full"})]),_:1})}}},Xe={__name:"Menu",props:{close:{type:Boolean,default:!1}},setup(a){return(l,r)=>(o(),n("svg",{class:M(["menu-icon",{"menu-icon--close":a.close},"rounded-full"]),width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",stroke:"currentColor","stroke-width":"2",xmlns:"http://www.w3.org/2000/svg"},[...r[0]||(r[0]=[t("title",null,"Menu",-1),t("line",{class:"menu-icon__middle-line",x1:"15.2929",y1:"32.2634",x2:"32.2635",y2:"15.2928"},null,-1),t("path",{class:"menu-icon__top-line",d:"M23.5429 15.7499L15.25 23.9571"},null,-1),t("path",{class:"menu-icon__bottom-line",d:"M23.543 32.7205L32.2205 23.957"},null,-1)])],2))}},We={},Ke={width:"21",height:"19",viewBox:"0 0 21 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ge(a,l){return o(),n("svg",Ke,[...l[0]||(l[0]=[t("title",null,"Log out",-1),t("path",{d:"M19.7266 10.1641L14.7266 15.1641C14.3359
115.5547 13.75 15.5547 13.3984 15.1641C13.0078 14.8125 13.0078 14.2266 13.3984 13.8359L16.7969 10.4375H7.1875C6.64062 10.4375 6.25 10.0469 6.25 9.5C6.25 8.99219 6.64062 8.5625 7.1875 8.5625H16.7969L13.3984 5.16406C13.0078 4.8125 13.0078 4.22656 13.3984 3.83594C13.75 3.48438 14.3359 3.48438 14.7266 3.83594L19.7266 8.875C20.0781 9.22656 20.0781 9.8125 19.7266 10.1641ZM6.5625 2.625H3.4375C2.53906 2.625 1.875 3.32812 1.875 4.1875V14.8125C1.875 15.7109 2.53906 16.375 3.4375 16.375H6.5625C7.07031 16.375 7.5 16.8047 7.5 17.3125C7.5 17.8594 7.07031 18.25 6.5625 18.25H3.4375C1.52344 18.25 0 16.7266 0 14.8125V4.1875C0 2.3125 1.52344 0.75 3.4375 0.75H6.5625C7.07031 0.75 7.5 1.17969 7.5 1.6875C7.5 2.23438 7.07031 2.625 6.5625 2.625Z",fill:"currentColor"},null,-1)])])}const Je=ie(We,[["render",Ge]]),Qe={__name:"Angle",props:{up:{type:Boolean,default:!1},down:{type:Boolean,default:!1}},setup(a){return(l,r)=>(o(),n("svg",{class:M(`angle-icon angle-icon--${a.up?"up":"down"}`),width:"11",height:"6",viewBox:"0 0 11 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...r[0]||(r[0]=[t("path",{d:"M10.0938 1.71094L5.9375 5.62109C5.80078 5.75781 5.63672 5.8125 5.5 5.8125C5.33594 5.8125 5.17188 5.75781 5.03516 5.64844L0.878906 1.71094C0.605469 1.46484 0.605469 1.05469 0.851562 0.78125C1.09766 0.507812 1.50781 0.507812 1.78125 0.753906L5.5 4.25391L9.19141 0.753906C9.46484 0.507812 9.875 0.507812 10.1211 0.78125C10.3672 1.05469 10.3672 1.46484 10.0938 1.71094Z",fill:"currentColor"},null,-1)])],2))}},et={key:0,class:"mb-16 flex flex-col gap-y-4 pt-20 xl:min-h-[40px]"},tt=["onMouseenter"],ot={key:0,class:"mt-4"},lt={__name:"SiteNavigation",props:{items:{type:Object,default:()=>({})},open:{type:Boolean,default:!1},showDropdownMenus:{type:Boolean,default:!0},showUserMenu:{type:Boolean,default:!1}},emits:["close"],setup(a,{emit:l}){const r=l,{isSignedIn:c,signIn:m,signOut:y,getUserInfo:b}=G(),{$trackEvent:s}=W(),u=oe(le),f=u.smaller("md"),v=u.greaterOrEqual("xl"),h=A(-1);return(T,C)=>{const L=X,O=te,I=Qe,i=ee;return o(),n(F,null,[a.open&&!e(f)&&!e(v)?(o(),n("div",{key:0,class:"absolute left-0 top-full h-screen w-screen cursor-pointer bg-black/60 transition-opacity duration-300 ease-in-out",onClick:C[0]||(C[0]=_=>r("close"))})):H("",!0),t("nav",{class:M(["fixed -top-full left-0 h-screen w-screen bg-neutral-light-tenth p-8 transition-transform ease-out md:left-full md:top-0 md:w-auto",a.showDropdownMenus&&"xl:static xl:z-30 xl:h-auto xl:bg-transparent xl:p-0",a.open?"translate-y-full duration-500 ease-out md:-translate-x-full md:translate-y-0 md:duration-300":"duration-300 ease-in",T.$attrs.class])},[e(f)&&a.showUserMenu?(o(),n("ul",et,[C[8]||(C[8]=t("li",null,[t("a",{class:"flex items-center whitespace-nowrap font-display text-xl text-secondary-light hover:text-secondary-dark focus:text-secondary-dark",href:"https://members.reiv.com.au/"}," View REIV Hub ")],-1)),p(O,null,{default:w(()=>[t("li",null,[p(L,{class:"flex items-center whitespace-nowrap font-display text-xl text-secondary-light hover:text-secondary-dark focus:text-secondary-dark",to:`/agent/${e(b)().id}/${e(b)().firstName.toLowerCase()}-${e(b)().lastName.toLowerCase()}`,onClick:C[1]||(C[1]=_=>r("close"))},{default:w(()=>[...C[6]||(C[6]=[E(" View Public Profile ",-1)])]),_:1},8,["to"])])]),_:1}),t("li",null,[p(L,{class:"flex items-center whitespace-nowrap font-display text-xl text-secondary-light hover:text-secondary-dark focus:text-secondary-dark",to:"/about-us/contact-us",onClick:C[2]||(C[2]=_=>r("close"))},{default:w(()=>[...C[7]||(C[7]=[E(" Contact the REIV ",-1)])]),_:1})])])):(o(),n("ul",{key:1,class:M(["mb-16 flex flex-col gap-y-4 pt-24",a.showDropdownMenus?"md:pt-40 xl:mb-0 xl:flex-row xl:justify-end xl:pt-0 xl:last:-mr-4":"xl:pt-24"])},[(o(!0),n(F,null,K(a.items,(_,x)=>(o(),n("li",{key:x,class:M({"relative overflow-x-visible":_.children?.length}),onMouseenter:$=>h.value=x,onMouseleave:C[3]||(C[3]=$=>h.value=-1)},[p(L,{class:M(["flex items-center whitespace-nowrap font-display text-xl text-secondary-light hover:text-secondary-dark focus:text-secondary-dark",a.showDropdownMenus&&"xl:px-4 xl:pb-4 xl:font-body xl:text-base"]),to:_.link.url?_.link.url:"/"+_.link.cached_url.replace(/\/$/,""),onClick:$=>{e(v)&&x!==e(h)&&($.preventDefault(),h.value=x),r("close"),e(s)("primary_navigation",{click_text:_.display_text})}},{default:w(()=>[t("span",null,Z(_.display_text),1),e(v)&&a.showDropdownMenus&&_.children?.length?(o(),R(I,{key:0,up:!1,class:"ml-2"})):H("",!0)]),_:2},1032,["class","to","onClick"]),e(v)&&a.showDropdownMenus&&_.children?.length?(o(),R(xe,{key:0,"enter-from-class":"opacity-0","enter-to-class":"opacity-100","enter-active-class":"duration-200 ease-out","leave-from-class":"opacity-100","leave-to-class":"opacity-0","leave-active-class":"duration-100 ease-out",mode:"out-in"},{default:w(()=>[ge((o(),n("ul",{key:x,class:M(["absolute left-0 border-t-2 border-secondary-dark bg-white px-4 py-6 shadow-2xl transition-opacity",x===a.items.length-1?"last:left-auto last:right-0":""])},[(o(!0),n(F,null,K(_.children,($,d)=>(o(),n("li",{key:d,class:"mb-4 last:mb-0"},[p(L,{class:"block min-w-[296px] whitespace-nowrap rounded px-4 py-2 text-secondary-light hover:bg-neutral-dark-tenth hover:text-secondary-dark focus:bg-neutral-dark-tenth focus:text-secondary-dark",to:$.link.url?$.link.url:"/"+$.link.cached_url,onClick:N=>(h.value=-1,e(s)("secondary_navigation",{click_text:$.display_text}))},{default:w(()=>[E(Z($.display_text),1)]),_:2},1032,["to","onClick"]),$.children?.length?(o(),n("ul",ot,[(o(!0),n(F,null,K($.children,(N,D)=>(o(),n("li",{key:D,class:"mb-4 last:mb-0"},[p(L,{class:"mb-4 block min-w-[296px] whitespace-nowrap rounded px-4 py-2 text-secondary-light before:mr-2 before:font-extralight before:content-['â'] hover:bg-neutral-dark-tenth hover:text-secondary-dark focus:bg-neutral-dark-tenth focus:text-secondary-dark",to:N.link.url?N.link.url:"/"+N.link.cached_url,onClick:U=>(h.value=-1,e(s)("secondary_navigation",{click_text:N.display_text}))},{default:w(()=>[E(Z(N.display_text),1)]),_:2},1032,["to","onClick"])]))),128))])):H("",!0)]))),128))],2)),[[He,x===e(h)]])]),_:2},1024)):H("",!0)],42,tt))),128))],2)),e(f)?(o(),R(O,{key:2},{default:w(()=>[e(c)()?(o(),R(i,{key:0,onClick:C[4]||(C[4]=_=>(e(s)("header_button",{click_text:"Log out"}),e(y)()))},{default:w(()=>[...C[9]||(C[9]=[E(" Log out ",-1)])]),_:1})):(o(),n(F,{key:1},[p(i,{link:"https://vicforms.reiv.com.au/login?_gl=1*5qtkf3*_gcl_au*MTg4NTM2MDUxOS4xNzU4MDg4OTYx",class:"mb-8 mr-8"},{default:w(()=>[...C[10]||(C[10]=[E("VicForms 2.0",-1)])]),_:1}),p(i,{onClick:C[5]||(C[5]=_=>(e(s)("header_button",{click_text:"Log in"}),e(m)()))},{default:w(()=>[...C[11]||(C[11]=[E("REIV Hub",-1)])]),_:1})],64))]),_:1})):H("",!0)],2)],64)}}},nt=["src"],at={key:2,class:"text-center font-medium text-white"},st={key:0,class:"absolute right-0 top-full mt-3 border-t-2 border-secondary-dark bg-white px-4 py-6 text-left shadow-2xl transition-opacity before:absolute before:-top-4 before:left-0 before:h-4 before:w-full before:content-['']"},rt={class:"mb-4"},it={key:0},ut={__name:"SiteHeader",props:{navItems:{type:Object,default:()=>({})}},setup(a){const{isSignedIn:l,getUserInfo:r,signIn:c,signOut:m}=G(),{$trackEvent:y}=W(),s=oe(le).greaterOrEqual("md"),u=A(!1),f=A(!1);
1function v(I){I.key==="Escape"&&(I.preventDefault(),u.value=!1)}let h=!1,T,C=0;const L=A(!0);function O(I){const i=window.scrollY>C?64:0;L.value=window.scrollY<=i,C=window.scrollY}return J(()=>{T=Ne(O,64),window.addEventListener("scroll",T),h=Ee(document.body)}),Ve(()=>{window.removeEventListener("scroll",T)}),q(()=>u.value,I=>{I?(h.value=!0,window.addEventListener("keydown",v)):(window.removeEventListener("keydown",v),h.value=!1)}),(I,i)=>{const _=ze,x=X,$=Ye,d=ee,N=Xe,D=Je,U=lt,z=te;return o(),R(z,null,{fallback:w(()=>[...i[14]||(i[14]=[t("header",{class:"site-header reiv-container sticky top-0 z-20 grid !w-full !max-w-full grid-cols-[120px_auto_max-content] items-center gap-x-4 border-b border-neutral-light/50 bg-white px-4 py-4 ease-linear after:absolute after:left-0 after:top-0 after:z-10 after:h-full after:w-full after:bg-white after:duration-200 after:content-[''] md:grid-cols-[240px_auto_max-content_max-content_max-content] md:px-8 md:py-8 md:transition-[padding-top,padding-bottom] md:duration-500 md:will-change-[padding-top,padding-bottom] lg:h-[133px] xl:h-[168px] xl:!max-w-[1472px] 2xl:px-16"},null,-1)])]),default:w(()=>[t("header",{class:M(["site-header reiv-container sticky top-0 z-20 grid !w-full !max-w-full items-center gap-x-4 border-b border-neutral-light/50 bg-white px-4 py-4 ease-linear md:gap-x-8 md:px-8 2xl:px-16",e(l)()?"grid-cols-[120px_auto_max-content_max-content]":"grid-cols-[120px_auto_max-content]","before:absolute before:left-0 before:top-0 before:z-20 before:h-full before:w-full before:bg-white before:duration-200 before:content-[''] before:2xl:left-[calc(((100vw_-_1536px)_/_2_+_4rem)_*_-1)] before:2xl:w-screen","md:grid-cols-[140px_auto_max-content_max-content_max-content] md:py-8 md:transition-[padding-top] md:duration-500 md:will-change-[padding-top]","lg:grid-cols-[240px_auto_max-content_max-content_max-content]","xl:!max-w-[1472px] 2xl:!max-w-[1408px] 2xl:overflow-x-visible 2xl:border-none 2xl:!px-0","after:hidden after:2xl:absolute after:2xl:-left-16 after:2xl:bottom-0 after:2xl:z-20 after:2xl:block after:2xl:w-[1536px] after:2xl:border-b after:2xl:border-neutral-light/50 after:2xl:content-['']",e(L)&&"xl:grid-cols-[240px_1fr_auto_auto] xl:grid-rows-[48px_1fr] xl:gap-y-8 xl:pb-4 xl:pt-8 before:xl:z-10",!e(L)&&e(s)&&"!py-0",e(u)&&!e(s)?"before:!bg-neutral-light-tenth":e(u)?"":"after:delay-100"])},[p(x,{to:"/",class:M(["z-30 block h-[48px] md:h-[68px] xl:min-h-[68px] 2xl:h-[98px]",e(L)&&"xl:row-start-1 xl:row-end-2 2xl:row-end-3 2xl:-mt-5"]),onClick:i[0]||(i[0]=P=>(u.value=!1,f.value=!1,e(y)("logo_click")))},{default:w(()=>[p(_,{class:M(e(u)&&!e(s)?"brightness-0 transition-[filter] duration-500":"transition-[filter] duration-300"),height:"100%",shrink:e(s)&&!e(L)},null,8,["class","shrink"])]),_:1},8,["class"]),p($,{class:"z-20 max-w-2xl justify-self-end"}),e(s)&&!e(l)()?(o(),R(d,{key:0,class:"z-20",link:"https://vicforms.reiv.com.au/login?_gl=1*5qtkf3*_gcl_au*MTg4NTM2MDUxOS4xNzU4MDg4OTYx",onClick:i[1]||(i[1]=P=>e(y)("header_button",{click_text:"VicForms 2.0"}))},{default:w(()=>[...i[9]||(i[9]=[E(" VicForms 2.0 ",-1)])]),_:1})):H("",!0),e(l)()?(o(),R(d,{key:1,class:M(["relative z-40 flex items-center justify-center text-center shadow-md",!e(s)&&e(f)||"!border-0 !bg-profile"]),color:!e(s)&&e(f)?"light-outlined":"white",icon:"",onMouseenter:i[2]||(i[2]=P=>e(s)&&(f.value=!0)),onMouseleave:i[3]||(i[3]=P=>e(s)&&(f.value=!1)),onClick:i[4]||(i[4]=P=>{f.value=!e(f),!e(s)&&(u.value=e(f))})},{default:w(()=>[!e(s)&&e(f)?(o(),R(N,{key:0,class:"h-[calc(100%_-_2px)] w-[calc(100%_-_2px)]",close:""})):e(r)().ProfileImage?(o(),n("img",{key:1,class:"h-full w-full rounded-full object-cover",alt:"User profile image",src:`data:image/jpeg;base64,${e(r)().ProfileImage}`},null,8,nt)):e(r)().firstName?(o(),n("h3",at,Z(e(r)().firstName?.charAt(0)??""),1)):H("",!0),e(s)?(o(),R(xe,{key:3,"enter-from-class":"opacity-0","enter-to-class":"opacity-100","enter-active-class":"duration-200 ease-out","leave-from-class":"opacity-100","leave-to-class":"opacity-0","leave-active-class":"duration-100 ease-out",mode:"out-in"},{default:w(()=>[e(f)?(o(),n("ul",st,[i[12]||(i[12]=t("li",{class:"mb-4"},[t("a",{class:"block min-w-[296px] whitespace-nowrap rounded px-4 py-2 text-secondary-light hover:bg-neutral-dark-tenth hover:text-secondary-dark focus:bg-neutral-dark-tenth focus:text-secondary-dark",href:"https://members.reiv.com.au/"}," View REIV Hub ")],-1)),t("li",rt,[p(x,{class:"block min-w-[296px] whitespace-nowrap rounded px-4 py-2 text-secondary-light hover:bg-neutral-dark-tenth hover:text-secondary-dark focus:bg-neutral-dark-tenth focus:text-secondary-dark",to:`/agent/${e(r)().id}/${e(r)().firstName.toLowerCase()}-${e(r)().lastName.toLowerCase()}`},{default:w(()=>[...i[10]||(i[10]=[E(" View Public Profile ",-1)])]),_:1},8,["to"])]),t("li",null,[p(x,{class:"block min-w-[296px] whitespace-nowrap rounded px-4 py-2 text-secondary-light hover:bg-neutral-dark-tenth hover:text-secondary-dark focus:bg-neutral-dark-tenth focus:text-secondary-dark",to:"/about-us/contact-us"},{default:w(()=>[...i[11]||(i[11]=[E(" Contact the REIV ",-1)])]),_:1})])])):H("",!0)]),_:1})):H("",!0)]),_:1},8,["class","color"])):H("",!0),e(s)&&e(l)()?(o(),R(d,{key:2,class:"z-20",icon:"",onClick:i[5]||(i[5]=P=>(e(y)("header_button",{click_text:"Log out"}),e(m)()))},{default:w(()=>[p(D,{class:"ml-[1px] h-full w-full p-3"})]),_:1})):e(s)?(o(),R(d,{key:3,class:"z-20",onClick:i[6]||(i[6]=P=>(e(y)("header_button",{click_text:"Log in"}
1),e(c)()))},{default:w(()=>[...i[13]||(i[13]=[E(" REIV Hub ",-1)])]),_:1})):H("",!0),p(d,{class:M(["z-20 flex h-12 items-center",[e(s)&&"!py-0 pl-6 pr-2",e(L)&&"xl:hidden"]]),icon:!e(s),color:"light-outlined",onClick:i[7]||(i[7]=P=>(u.value=e(f)?!0:!e(u),f.value=!1))},{default:w(()=>[e(s)?(o(),n("span",it,"Menu")):H("",!0),p(N,{class:"h-full",close:!e(s)&&e(f)?!1:e(u)},null,8,["close"])]),_:1},8,["class","icon"]),p(U,{class:M(["z-10 col-start-1 col-end-5 row-start-2 justify-self-end md:col-end-auto xl:col-start-1 xl:col-end-5 2xl:col-start-2",e(L)&&"xl:translate-x-0 xl:transition-none"]),items:a.navItems,open:e(u),"show-dropdown-menus":e(L),"show-user-menu":e(f),onClose:i[8]||(i[8]=P=>(u.value=!1,f.value=!1))},null,8,["class","items","open","show-dropdown-menus","show-user-menu"])],2)]),_:1})}}};function ct(a,l){const r=l/a*100;return 2/Math.PI*100*Math.atan(r/50)}function dt(a={}){const{duration:l=2e3,throttle:r=200,hideDelay:c=500,resetDelay:m=400}=a,y=a.estimatedProgress||ct,b=W(),s=se(0),u=se(!1),f=se(!1);let v=!1,h,T,C,L;const O=(D={})=>{x(),f.value=!1,I(0,D)};function I(D=0,U={}){if(b.isHydrating)return;if(D>=100)return _({force:U.force});$(),s.value=D<0?0:D;const z=U.force?0:r;z?T=setTimeout(()=>{u.value=!0,d()},z):(u.value=!0,d())}function i(){C=setTimeout(()=>{u.value=!1,L=setTimeout(()=>{s.value=0},m)},c)}function _(D={}){s.value=100,v=!0,$(),x(),D.error&&(f.value=!0),D.force?(s.value=0,u.value=!1):i()}function x(){clearTimeout(C),clearTimeout(L)}function $(){clearTimeout(T),cancelAnimationFrame(h)}function d(){v=!1;let D;function U(z){if(v)return;D??=z;const P=z-D;s.value=Math.max(0,Math.min(100,y(l,P))),h=requestAnimationFrame(U)}h=requestAnimationFrame(U)}let N=()=>{};{const D=b.hook("page:loading:start",()=>{O()}),U=b.hook("page:loading:end",()=>{_()}),z=b.hook("vue:error",()=>_({error:!0}));N=()=>{z(),D(),U(),$(),x()}}return{_cleanup:N,progress:ae(s),isLoading:ae(u),error:ae(f),start:O,set:I,finish:_,clear:$}}function ft(a={}){const l=W(),r=l._loadingIndicator||=dt(a);return $e()&&(l._loadingIndicatorDeps||=0,l._loadingIndicatorDeps++,Me(()=>{l._loadingIndicatorDeps--,l._loadingIndicatorDeps===0&&(r._cleanup(),delete l._loadingIndicator)})),r}const pt=Le({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},hideDelay:{type:Number,default:500},resetDelay:{type:Number,default:400},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(a,{slots:l,expose:r}){const{progress:c,isLoading:m,error:y,start:b,finish:s,clear:u}=ft({duration:a.duration,throttle:a.throttle,hideDelay:a.hideDelay,resetDelay:a.resetDelay,estimatedProgress:a.estimatedProgress});return r({progress:c,isLoading:m,error:y,start:b,finish:s,clear:u}),()=>Se("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${a.height}px`,opacity:m.value?1:0,background:y.value?a.errorColor:a.color||void 0,backgroundSize:`${c.value>0?100/c.value*100:0}% auto`,transform:`scaleX(${c.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},l)}}),mt={class:"reiv-container mb-14 grid grid-cols-12 gap-y-4 md:gap-x-8"},ht={class:"max-sm:flex-col col-span-12 flex justify-between gap-y-4 py-8"},gt={class:"-z-index-10 relative h-[calc(100%-23px)] w-[calc(100%-20px)]",width:"196",height:"140",viewBox:"0 0 196 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"},xt={class:"absolute left-4 top-4 z-50 flex h-[calc(100%-32px)] w-[calc(100%-31px)] flex-col items-center justify-center bg-neutral-light-tenth text-center"},vt={key:0,class:"my-auto flex justify-center px-8 py-6 font-bold"},Ct={class:"line-clamp-2 font-bold"},_t={key:0,class:"flex h-full flex-col items-center justify-between px-8 py-11 text-center"},wt={key:1,class:"flex h-full flex-col justify-between px-8 py-6"},yt={class:"line-clamp-3 font-bold text-black"},bt={__name:"ProfileInfoLarge",props:{totalCpdHours:{type:Number,default:10}},setup(a){const l=Q("userInfo",()=>""),{formatDate:r,formatTime:c}=_e(),m=Ce("user",{default:()=>({})}),y=A(),b=Y(()=>X),s=Y(()=>l?.value?.next_pd_code?{to:`/learning/professional-development/event/${l?.value?.next_pd_code}`}:""),u=Y(()=>l?.value?.last_edm_campaign_link?X:"a"),f=Y(()=>l?.value?.last_edm_campaign_link?{to:`/learning/professional-development/event/${l?.value?.last_edm_campaign_link}`}:"");return(v,h)=>{const T=ee;
1return o(),n("div",mt,[t("div",ht,[t("h1",null,"Welcome back"+Z(`, ${e(m).firstName??""}`),1),p(T,{link:"https://members.reiv.com.au/"},{default:w(()=>[...h[0]||(h[0]=[E("View REIV Hub",-1)])]),_:1})]),e(m)?.isStaffSubscriber?H("",!0):(o(),n("a",{key:0,ref_key:"cpdContainer",ref:y,href:"https://members.reiv.com.au/Portal/MyCPD",class:"relative col-span-12 flex h-[152px] flex-col items-center justify-center rounded bg-neutral-light-tenth transition-all duration-100 hover:-translate-y-0.5 md:col-span-2"},[(o(),n("svg",gt,[t("path",{style:fe(`--color: #ff6929; --percent: ${e(l)?.cpd_points===0?1:e(l)?.cpd_points/a.totalCpdHours*100}`),d:"M96 1.99997H187C191.207 2.93441 192.795 4.39616 194 8.99997V131C193.952 136.418 192.755 138.288 187 138H7.99998C3.21435 137.947 1.59754 136.746 1.99998 131V8.99997C1.88219 4.20467 3.06686 2.56261 7.99998 1.99997H95",stroke:"rgb(var(--neutral-dark-tenth))","stroke-width":"25",preserveAspectRatio:"none",x:"5",y:"5"},null,4),t("path",{class:"progress",style:fe(`--color: #ff6929; --percent: ${e(l)?.cpd_points===0?1:e(l)?.cpd_points/a.totalCpdHours*100}`),d:"M96 1.99997H187C191.207 2.93441 192.795 4.39616 194 8.99997V131C193.952 136.418 192.755 138.288 187 138H7.99998C3.21435 137.947 1.59754 136.746 1.99998 131V8.99997C1.88219 4.20467 3.06686 2.56261 7.99998 1.99997H95","stroke-width":"25",preserveAspectRatio:"none",stroke:"rgb(var(--primary))",x:"5",y:"5"},null,4)])),t("div",xt,[t("h1",null,Z(e(l)?.cpd_points),1),t("h5",null,Z(e(l)?.cpd_points===1?"CPD hour":"CPD hours"),1)])],512)),t("div",{class:M(["relative col-span-12 flex h-[152px] flex-col rounded bg-neutral-light-tenth",[e(l)?.next_pd_code&&"transition-all duration-100 hover:-translate-y-0.5",e(m)?.isStaffSubscriber?"md:col-span-6":"md:col-span-5"]])},[e(l).next_pd_code?(o(),R(me(e(b)),pe({key:1},e(s),{class:"flex h-full flex-col justify-between px-8 py-6"}),{default:w(()=>[t("div",Ct,Z(e(l)?.next_pd_title),1),t("h3",null,Z(e(r)(e(l)?.next_pd_date,!1)),1),t("div",null,Z(e(c)(e(l)?.next_pd_date).replace(" ",""))+" - "+Z(e(c)(e(l)?.next_pd_date_end).replace(" ","")),1)]),_:1},16)):(o(),n("div",vt," No upcoming personal development ")),h[1]||(h[1]=t("div",{class:"absolute bottom-4 right-4"},[t("svg",{width:"21",height:"24",viewBox:"0 0 21 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M5.25 0C5.625 0 6 0.375 6 0.75V3H15V0.75C15 0.375 15.3281 0 15.75 0C16.125 0 16.5 0.375 16.5 0.75V3H18C19.6406 3 21 4.35938 21 6V7.5V9V21C21 22.6875 19.6406 24 18 24H3C1.3125 24 0 22.6875 0 21V9V7.5V6C0 4.35938 1.3125 3 3 3H4.5V0.75C4.5 0.375 4.82812 0 5.25 0ZM19.5 9H14.625V12.375H19.5V9ZM19.5 13.875H14.625V17.625H19.5V13.875ZM19.5 19.125H14.625V22.5H18C18.7969 22.5 19.5 21.8438 19.5 21V19.125ZM13.125 17.625V13.875H7.875V17.625H13.125ZM7.875 19.125V22.5H13.125V19.125H7.875ZM6.375 17.625V13.875H1.5V17.625H6.375ZM1.5 19.125V21C1.5 21.8438 2.15625 22.5 3 22.5H6.375V19.125H1.5ZM1.5 12.375H6.375V9H1.5V12.375ZM7.875 12.375H13.125V9H7.875V12.375ZM18 4.5H3C2.15625 4.5 1.5 5.20312 1.5 6V7.5H19.5V6C19.5 5.20312 18.7969 4.5 18 4.5Z",fill:"rgb(var(--neutral-dark))"})])],-1))],2),(o(),R(me(e(u)),pe(e(f),{class:["relative col-span-12 h-[152px] rounded bg-neutral-light-tenth",[e(l)?.last_edm_campaign_link&&"transition-all duration-100 hover:-translate-y-0.5",e(m)?.isStaffSubscriber?"md:col-span-6":"md:col-span-5"]]}),{default:w(()=>[e(l)?.last_edm_title?(o(),n("div",wt,[t("div",yt,Z(e(l)?.last_edm_title),1),t("div",null,Z(e(r)(e(l)?.last_edm_date)),1)])):(o(),n("div",_t,[...h[2]||(h[2]=[t("div",null,"You're not subscribed to the REIV newsletter",-1),t("div",null,[t("a",{class:"text-secondary-light",href:"https://members.reiv.com.au/",target:"_blank"},"You can subscribe in the REIV Hub")],-1)])])),h[3]||(h[3]=t("div",{class:"absolute bottom-4 right-4"},[t("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M11.2969 1.73438L2.10938 8.57812C1.6875 8.85938 1.5 9.28125 1.5 9.79688V9.9375L1.96875 10.3125L11.1094 17.8594C11.3438 18.0469 11.6719 18.1406 12 18.1406C12.2812 18.1406 12.6094 18.0469 12.8438 17.8594L21.9844 10.3125L22.5 9.9375V9.79688C22.5 9.28125 22.2656 8.85938 21.8906 8.57812L12.6562 1.73438C12.4688 1.59375 12.2344 1.5 12 1.5C11.7188 1.5 11.4844 1.59375 11.2969 1.73438ZM1.5 11.8594V21C1.5 21.8438 2.15625 22.5 3 22.5H21C21.7969 22.5 22.5 21.8438 22.5 21V11.8594L13.7812 19.0312C13.2656 19.4062 12.6562 19.6406 12 19.6406C11.3438 19.6406 10.6875 19.4062 10.1719 19.0312L1.5 11.8594ZM10.4062 0.515625C10.875 0.1875 11.3906 0 12 0C12.5625 0 13.0781 0.1875 13.5469 0.515625L22.7812 7.35938C23.5312 7.92188 24 8.8125 24 9.79688V21C24 22.6875 22.6406 24 21 24H3C1.3125 24 0 22.6875 0 21V9.79688C0 8.8125 0.421875 7.92188 1.17188 7.35938L10.4062 0.515625Z",fill:"rgb(var(--neutral-dark))"})])],-1))]),_:1},16,["class"]))])}}},kt={class:"mx-4 max-w-screen-2xl rounded-b bg-neutral-light-tenth lg:mx-auto"},Ht={class:"reiv-container gap-16 py-5 font-bold text-black"},Vt={class:"flex w-full flex-col lg:whitespace-nowrap"},$t={key:0,class:"flex justify-between"},Mt={key:0,class:"max-lg:mt-8 flex gap-x-4 whitespace-nowrap"},Lt={key:0,href:"https://members.reiv.com.au/Portal/MyCPD",class:"hover:text-secondary-dark hover:underline hover:duration-200"},St={class:"max-lg:w-full max-lg:overflow-wrap flex gap-x-4"},It={key:0,class:"max-lg:truncate mr-1"},Tt={key:1},Dt={key:1,class:"max-lg:line-clamp-2"},Zt={class:"flex w-full gap-x-4 overflow-hidden"},At={key:0,class:"max-lg:line-clamp-2 max-lg:mb-5 lg:truncate"},Rt={key:1,class:"max-lg:line-clamp-2 max-lg:mb-5 lg:truncate"},Et={__name:"ProfileInfoSmall",setup(a){const l=oe(le),{formatDate:r}=_e(),c=Q("userInfo",()=>""),m=Ce("user",{default:()=>({})}),y=l.smaller("lg"),b=A(!1),s=A();function u(){y.value?b.value=!b.value:b.value=!0}return q(()=>y.value,()=>{y.value===!0?b.value=!1:b.value=!0}),(f,v)=>{const h=Be,T=X;return o(),n("div",kt,[t("div",Ht,[t("div",Vt,[e(y)?(o(),n("div",$t,[v[0]||(v[0]=t("div",null,"My membership",-1)),p(h,{down:"",class:M(["cursor-pointer transition-all duration-300",e(b)&&"rotate-180"]),onClick:u},null,8,["class"])])):H("",!0),t("div",{ref_key:"profileInformation",ref:s,class:M(["max-lg:flex-col max-lg:items-start flex w-full items-center justify-center gap-x-16 gap-y-4 overflow-y-hidden transition-all duration-300 ease-in-out lg:h-auto",e(b)===!0?"max-h-[200px]":"max-lg:max-h-0"])},[e(m)?.isStaffSubscriber?H("",!0):(o(),n("div",Mt,[v[1]||(v[1]=t("svg",{class:"h-6 w-6",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M8.90625 3.375C8.71875 3.70312 8.39062 3.84375 8.01562 3.75C6.84375 3.375 5.48438 3.65625 4.54688 4.59375C3.60938 5.53125 3.32812 6.89062 3.70312 8.0625C3.79688 8.4375 3.65625 8.76562 3.32812 8.95312C2.20312 9.51562 1.5 10.6875 1.5 12C1.5 13.3594 2.20312 14.4844 3.32812 15.0938C3.65625 15.2812 3.79688 15.6094 3.70312 15.9844C3.32812 17.1562 3.60938 18.5156 4.54688 19.4531C5.48438 20.3906 6.84375 20.6719 8.01562 20.2969C8.39
1062 20.2031 8.76562 20.3438 8.90625 20.6719C9.51562 21.7969 10.6406 22.5 12 22.5C13.3125 22.5 14.4844 21.7969 15.0469 20.6719C15.2344 20.3438 15.6094 20.2031 15.9375 20.2969C17.1094 20.6719 18.4688 20.3906 19.4062 19.4531C20.3438 18.5156 20.625 17.1562 20.25 15.9844C20.1562 15.6094 20.2969 15.2344 20.625 15.0938C21.75 14.4844 22.5 13.3594 22.5 12C22.5 10.6875 21.75 9.51562 20.625 8.95312C20.2969 8.76562 20.1562 8.39062 20.25 8.0625C20.625 6.89062 20.3438 5.53125 19.4062 4.59375C18.4688 3.65625 17.1094 3.375 15.9375 3.75C15.5625 3.84375 15.2344 3.70312 15.0469 3.375C14.4844 2.25 13.3125 1.5 12 1.5C10.6406 1.5 9.51562 2.25 8.90625 3.375ZM12 0C13.6875 0 15.1875 0.890625 16.0781 2.15625C17.625 1.875 19.2656 2.34375 20.4844 3.51562C21.6562 4.73438 22.125 6.375 21.8438 7.92188C23.1094 8.8125 24 10.3125 24 12C24 13.7344 23.1094 15.1875 21.8438 16.125C22.125 17.6719 21.6562 19.3125 20.4844 20.4844C19.2656 21.7031 17.625 22.1719 16.0781 21.8906C15.1875 23.1562 13.6875 24 12 24C10.2656 24 8.8125 23.1562 7.875 21.8906C6.32812 22.1719 4.6875 21.7031 3.51562 20.4844C2.29688 19.3125 1.82812 17.6719 2.10938 16.125C0.84375 15.1875 0 13.7344 0 12C0 10.3125 0.84375 8.8125 2.10938 7.92188C1.82812 6.375 2.29688 4.73438 3.51562 3.51562C4.6875 2.34375 6.32812 1.875 7.875 2.15625C8.8125 0.890625 10.2656 0 12 0ZM17.0156 9.5625L11.0156 15.5625C10.7344 15.8438 10.2188 15.8438 9.9375 15.5625L6.9375 12.5625C6.65625 12.2812 6.65625 11.7656 6.9375 11.4844C7.21875 11.2031 7.73438 11.2031 8.01562 11.4844L10.5 13.9688L15.9375 8.48438C16.2188 8.20312 16.7344 8.20312 17.0156 8.48438C17.2969 8.76562 17.2969 9.28125 17.0156 9.5625Z",fill:"rgb(var(--neutral-dark))"})],-1)),e(c).cpd_points?(o(),n("a",Lt,Z(e(c).cpd_points)+" "+Z(e(c).cpd_points===1?"CPD hour":"CPD hours"),1)):H("",!0)])),t("div",St,[v[2]||(v[2]=t("svg",{class:"h-auto max-h-[24px] w-full max-w-[24px] lg:min-w-[24px]",width:"21",height:"24",viewBox:"0 0 21 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M5.25 0C5.625 0 6 0.375 6 0.75V3H15V0.75C15 0.375 15.3281 0 15.75 0C16.125 0 16.5 0.375 16.5 0.75V3H18C19.6406 3 21 4.35938 21 6V7.5V9V21C21 22.6875 19.6406 24 18 24H3C1.3125 24 0 22.6875 0 21V9V7.5V6C0 4.35938 1.3125 3 3 3H4.5V0.75C4.5 0.375 4.82812 0 5.25 0ZM19.5 9H14.625V12.375H19.5V9ZM19.5 13.875H14.625V17.625H19.5V13.875ZM19.5 19.125H14.625V22.5H18C18.7969 22.5 19.5 21.8438 19.5 21V19.125ZM13.125 17.625V13.875H7.875V17.625H13.125ZM7.875 19.125V22.5H13.125V19.125H7.875ZM6.375 17.625V13.875H1.5V17.625H6.375ZM1.5 19.125V21C1.5 21.8438 2.15625 22.5 3 22.5H6.375V19.125H1.5ZM1.5 12.375H6.375V9H1.5V12.375ZM7.875 12.375H13.125V9H7.875V12.375ZM18 4.5H3C2.15625 4.5 1.5 5.20312 1.5 6V7.5H19.5V6C19.5 5.20312 18.7969 4.5 18 4.5Z",fill:"rgb(var(--neutral-dark))"})],-1)),e(c).next_pd_title?(o(),R(T,{key:0,to:`/learning/professional-development/event/${e(c)?.next_pd_code}`,class:"max-lg:line-clamp-2 max-lg:flex-wrap flex hover:text-secondary-dark hover:underline hover:duration-200"},{default:w(()=>[e(c).next_pd_title?(o(),n("div",It,Z(e(c).next_pd_title)+" - ",1)):H("",!0),e(c).next_pd_date?(o(),n("div",Tt,Z(e(r)(e(c).next_pd_date,!1)),1)):H("",!0)]),_:1},8,["to"])):(o(),n("div",Dt,"No upcoming Professional Development"))]),t("div",Zt,[v[4]||(v[4]=t("svg",{class:"h-auto max-h-[24px] w-full max-w-[24px]",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M11.2969 1.73438L2.10938 8.57812C1.6875 8.85938 1.5 9.28125 1.5 9.79688V9.9375L1.96875 10.3125L11.1094 17.8594C11.3438 18.0469 11.6719 18.1406 12 18.1406C12.2812 18.1406 12.6094 18.0469 12.8438 17.8594L21.9844 10.3125L22.5 9.9375V9.79688C22.5 9.28125 22.2656 8.85938 21.8906 8.57812L12.6562 1.73438C12.4688 1.59375 12.2344 1.5 12 1.5C11.7188 1.5 11.4844 1.59375 11.2969 1.73438ZM1.5 11.8594V21C1.5 21.8438 2.15625 22.5 3 22.5H21C21.7969 22.5 22.5 21.8438 22.5 21V11.8594L13.7812 19.0312C13.2656 19.4062 12.6562 19.6406 12 19.6406C11.3438 19.6406 10.6875 19.4062 10.1719 19.0312L1.5 11.8594ZM10.4062 0.515625C10.875 0.1875 11.3906 0 12 0C12.5625 0 13.0781 0.1875 13.5469 0.515625L22.7812 7.35938C23.5312 7.92188 24 8.8125 24 9.79688V21C24 22.6875 22.6406 24 21 24H3C1.3125 24 0 22.6875 0 21V9.79688C0 8.8125 0.421875 7.92188 1.17188 7.35938L10.4062 0.515625Z",fill:"rgb(var(--neutral-dark))"})],-1)),e(c).last_edm_title?(o(),n("div",At,Z(e(c).last_edm_title),1)):(o(),n("div",Rt,[...v[3]||(v[3]=[E(" Youâre not subscribed to the REIV newsletter. ",-1),t("a",{class:"text-secondary-light",href:"https://members.reiv.com.au/",target:"_blank"},"You can subscribe in the REIV Hub",-1)])]))])],2)])])])}}},Nt=globalThis.setInterval,Bt={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",class:"absolute left-[50%] top-[50%] block h-10 w-10 -translate-x-2/4 -translate-y-2/4"},Ut={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",class:"absolute left-[50%] top-[50%] block h-10 w-10 -translate-x-2/4 -translate-y-2/4"},Pt={class:"flex flex-col"},zt={key:0,class:"group mt-2 flex w-full space-x-3"},jt={class:"relative break-words rounded-r-lg rounded-tr-lg bg-neutral-light-tenth p-3 leading-5"},Ot=["innerHTML"],Ft={key:0,class:"flex w-full justify-end"},qt={class:"flex h-[30px] w-[80px] items-center justify-center rounded-bl-lg rounded-br-lg bg-[#b5b8c0] from-30%"},Yt=["onClick"],Xt=["onClick"],Wt={key:0,class:"m-1 mt-auto text-xs"},Kt={key:1,class:"ml-auto mt-2 flex w-[calc(100%-90px)] justify-end space-x-3"},Gt={class:"break-words rounded-l-lg rounded-br-lg bg-secondary-light p-3"},Jt=["innerHTML"],Qt={key:2,class:"ml-auto mr-auto mt-4 flex w-full space-x-3"},e1={class:"break-words rounded-l-lg rounded-br-lg bg-neutral-light-half p-3 text-center italic text-neutral-dark-half"},t1=["innerHTML"],o1={key:0,class:"absolute bottom-0 left-0 w-full bg-neutral-light-half p-4"},l1={class:"relative flex w-full"},n1={key:1,class:"fixed bottom-0 z-50 w-full bg-neutral-light-tenth py-4 text-center text-sm text-neutral-dark-half transition-all duration-150 lg:bottom-12 lg:right-16 lg:max-w-md xl:right-24"},a1={__name:"ChatWidget",props:{source:{type:String,default:""},apikey:{type:String,default:""},chatApi:{type:String,default:""},intro:{type:String,default:""},textMode:{type:String,default:"light"}},setup(a){const{getIdToken:l}=G(),{setUserUUID:r,getUserUUID:c,deleteUserUUID:m,getMemory:y,refreshChatMemory:b,isChatOpen:s}=ve(),u=re(),f=a,v=A(!1),h=A(!0),T=A(!1),C=A(!1),L=A(""),O=A(new Date),I=A([new Date]),i=A(""),_=A([{index:0,rating:0}]),x=A(null);let $=null;const d=A([{role:"assistant",content:f.intro??"Hi there, I'm your AI assistant. How can I help you today?"}]);function N(k){return k.replace(/\n/g,"<br/>").replace(/\[(.*?)\]\((.*?)\)/g,'<a href="$2" class="underline underline-offset-1" target="_blank">$1</a>').replace(/### (.*?)(?=<br\/>)/g,"<h5>$1</h5>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/__(.*?)__/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/_(.*?)_/g,"<em>$1</em>").replaceAll(`${u.public.SITE_URL}/download/https://s3.amazonaws.com/a.storyblok.com/`,`${u.public.SITE_URL}/download/`)}function D(k){const g=document.createElement("div");g.innerHTML=k;const B=g.childNodes;for(let S=0;S<B.length;S++){const V=B[S];V.tagName&&V.tagName.toLowerCase()!=="a"&&V.tagName.toLowerCase()!=="br"&&V.tagName.toLowerCase()!=="h5"&&g.replaceChild(document.createTextNode(V.textContent||""),V)}return g.innerHTML}const U=async k=>
1{if(k.preventDefault(),L.value===""||T.value)return;const g=L.value.trim();L.value="",T.value=!0,I.value=[...I.value,new Date],d.value=[...d.value,{role:"user",content:g},{content:"",role:"assistant"}],setTimeout(()=>{x.value&&x.value.scrollTo({top:x.value.scrollHeight,behavior:"smooth"})},100);try{await fetch(u.public.AI_SEARCH_URL+"/reiv/public-chat",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${f.apikey}`},body:JSON.stringify({userUuid:i.value,inputMessage:g,sourceId:f.source,isSearch:!1,token:l()})}).then(async B=>{if(!B.ok){T.value=!1,ne(),d.value=d.value.slice(0,-1),d.value=[...d.value,{content:"Sorry, there was a server error, try sending your message again",role:"system"}];return}function S(V){return{async*[Symbol.asyncIterator](){let j=await V.read();for(C.value=!0;!j.done;)yield j.value,j=await V.read();C.value=!1,setTimeout(()=>{x.value&&x.value.scrollTo({top:x.value.scrollHeight})},250)}}}if(B.body){let V="";const j=B.body.getReader();for await(const ye of S(j)){const be=new TextDecoder;V=`${V}${be.decode(ye)}`,d.value=d.value.slice(0,-1),d.value=[...d.value,{role:"assistant",content:V}],x.value&&x.value.scrollTo({top:x.value.scrollHeight,behavior:"smooth"})}}})}catch(B){T.value=!1,console.error(B),ne(),d.value=d.value.slice(0,-1),d.value=[...d.value,{content:"Sorry, there was a server error, try sending your message again",role:"system"}],I.value=[...I.value,new Date]}I.value=[...I.value,new Date],T.value=!1};function z(k){k.preventDefault(),m(),r(),i.value=c(),d.value=[{role:"assistant",content:f.intro??"Hi there, I'm your AI assistant. How can I help you today?"}],I.value=[new Date]}function P(){s.value=!s.value,x.value&&x.value.scrollTo({top:x.value.scrollHeight})}function ne(){fetch(`${u.public.AI_SEARCH_URL}/health`,{method:"GET",headers:{"Content-Type":"application/json"}}).then(k=>k.json()).then(({status:k})=>{k==="ok"?v.value=!0:(v.value=!1,s.value=!1)}).catch(()=>{v.value=!1,s.value=!1}),fetch(`${u.public.AI_SEARCH_URL}/health/openai`,{method:"GET",headers:{"Content-Type":"application/json"}}).then(k=>k.json()).then(({status:k})=>{k!=="ok"&&ue()}).catch(()=>{ue()})}function ue(){d.value.length>1&&(d.value=d.value.slice(0,-1),d.value=[...d.value,{content:"OpenAi is reporting server issues and responses may be slow.",role:"assistant"}])}async function ce(){const k=await y();if(k.length>0){h.value=!1,d.value=[...k];const g=[...I.value];for(let B=0;B<k.length;B++){const S=new Date;S.setFullYear(2100+B),g.push(S),I.value=g}setTimeout(()=>{x.value&&x.value.scrollTo({top:x.value.scrollHeight})},250)}}q(()=>b.value,async()=>{try{await ce()}catch(k){console.error(k)}}),q(()=>i.value,async()=>{if(r(),i.value=c(),i.value)try{await ce()}catch(k){console.error(k)}},{immediate:!0}),J(()=>{ne()}),Ie(()=>{const k=Nt(()=>{O.value=new Date},3e3);clearInterval(k),clearTimeout($)}),q(()=>[h.value,s.value],()=>{$=setTimeout(()=>{h.value&&!s.value&&(h.value=!1,setTimeout(()=>{h.value=!0},500))},15e3)});function de(k,g,B){fetch(`${u.public.AI_SEARCH_URL}/memory/chat-history/${c()}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({rating:k,content:g})}).catch(()=>{});const S=_.value.findIndex(V=>V.index===B);if(S!==-1){const V=[..._.value];V[S]={...V[S],rating:k},_.value=V}else _.value=[..._.value,{index:B,rating:k}]}const we=()=>p("div",{class:"lds-ellipsis"},[p("div",null,null),p("div",null,null),p("div",null,null),p("div",null,null)]);return(k,g)=>{const B=X;return o(),n(F,null,[e(i)&&e(v)?(o(),n(F,{key:0},[t("div",{id:"chat-widget-toggle",class:M(["fixed bottom-4 right-4 z-[200] flex h-12 w-12 origin-center cursor-pointer rounded-full bg-secondary-dark transition-all duration-150 hover:bg-black lg:h-16 lg:w-16 xl:h-20 xl:w-20",[e(s)?"":"translate-y-1 shadow-2xl",e(h)&&!e(s)?"animate-bounce":""]]),onClick:P},[t("div",{class:M(["transition-out-quad text-lg relative w-full transition-transform",[f.textMode==="light"?"text-white":"text-black"]])},[e(s)?(o(),n("svg",Bt,[...g[1]||(g[1]=[t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.75 9.75l4.5 4.5m0-4.5l-4.5 4.5M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)])])):(o(),n("svg",Ut,[...g[2]||(g[2]=[t("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.
1026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 01.865-.501 48.172 48.172 0 003.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"},null,-1)])]))],2)],2),t("div",{class:M(["duration-125 out-quad fixed bottom-12 left-0 right-0 z-[60] flex flex-col items-center justify-center rounded-lg bg-white text-neutral-dark shadow-xl transition lg:bottom-24 lg:left-auto lg:right-16 lg:max-w-md xl:right-24",e(s)?"max-h-[610px] w-full -translate-y-0 p-4 opacity-100":"m-0 h-0 translate-y-3 overflow-hidden p-0 opacity-0"])},[t("div",{class:"relative mb-20 flex h-[500px] max-h-[500px] w-full flex-col justify-start overflow-auto rounded-lg bg-white md-h:max-h-[70vh] md-h:lg:h-[55vh] sm-h:max-h-[50vh] sm-h:lg:h-[30vh]",ref_key:"chatContainer",ref:x},[t("div",Pt,[e(d).length>1?(o(),n("a",{key:0,class:"mb-1 w-full cursor-pointer space-x-3",onClick:z},[...g[3]||(g[3]=[t("div",null,[t("div",{class:"break-words rounded-lg text-right italic text-neutral-dark-half underline"},[t("p",{class:"m-0 break-words text-sm leading-5"},"Reset Chat History")])],-1)])])):H("",!0),(o(!0),n(F,null,K(e(d),(S,V)=>(o(),n("div",{key:`${String(S.content)}${V}`,class:M(`${V===e(d).length-1?"pb-4":""}`)},[S.role==="assistant"?(o(),n("div",zt,[t("div",null,[t("div",jt,[t("p",{class:"m-0 break-words text-start text-sm leading-5",innerHTML:D(N(S.content))},null,8,Ot),e(T)&&S.content===""?(o(),R(we,{key:0})):(o(),n("div",{key:1,class:M(e(d).length!==V+1?"align-items-start absolute -bottom-6 left-0 flex min-h-fit justify-center opacity-0 transition-all group-hover:-bottom-[30px] group-hover:opacity-100":"align-items-start absolute -bottom-[30px] left-0 min-h-fit justify-center opacity-100 transition-all")},[V!==0?(o(),n(F,{key:0},[e(C)?H("",!0):(o(),n("div",Ft,[t("div",qt,[t("div",{class:"cursor-pointer px-1.5",onClick:j=>de(1,S.content,V)},[(o(),n("svg",{width:"16",height:"15",viewBox:"0 0 16 15",xmlns:"http://www.w3.org/2000/svg",class:M(`${e(_).find(j=>j.index===V&&j.rating===1)?"fill-[#424242]":"fill-[#7b7d81]"} hover:fill-[#424242]`)},[...g[4]||(g[4]=[t("path",{opacity:"0.5",d:"M9.78125 1.03125C10.5938 1.21875 11.125 2 10.9688 2.8125L10.875 3.15625C10.7188 4 10.4062 4.78125 10 5.5H14.5C15.3125 5.5 16 6.1875 16 7C16 7.59375 15.6562 8.09375 15.1875 8.34375C15.5312 8.625 15.75 9.03125 15.75 9.5C15.75 10.25 15.2188 10.8438 14.5312 11C14.6562 11.2188 14.75 11.4688 14.75 11.75C14.75 12.4375 14.3125 13 13.6875 13.1875C13.7188 13.2812 13.75 13.4062 13.75 13.5C13.75 14.3438 13.0625 15 12.25 15H9.1875C8.59375 15 8.03125 14.8438 7.53125 14.5L6.3125 13.7188C5.5 13.1562 5 12.2188 5 11.2188V10V8.5V7.75C5 6.8125 5.40625 5.96875 6.125 5.40625L6.34375 5.21875C7.15625 4.53125 7.75 3.625 7.9375 2.5625L8 2.21875C8.1875 1.40625 8.96875 0.875 9.78125 1.03125ZM1 6H3C3.53125 6 4 6.46875 4 7V14C4 14.5625 3.53125 15 3 15H1C0.4375 15 0 14.5625 0 14V7C0 6.46875 0.4375 6 1 6Z"},null,-1)])],2))],8,Yt),t("div",{class:"cursor-pointer px-1.5",onClick:j=>de(0,S.content,V)},[(o(),n("svg",{width:"16",height:"15",viewBox:"0 0 16 15",xmlns:"http://www.w3.org/2000/svg",class:M(`${e(_).find(j=>j.index===V&&j.rating===0)?"fill-[#424242]":"fill-[#7b7d81]"} hover:fill-[#424242]`)},[...g[5]||(g[5]=[t("path",{opacity:"0.5",d:"M9.78125 14C8.96875 14.1562 8.1875 13.625 8 12.8125L7.9375 12.4375C7.75 11.4062 7.15625 10.4688 6.34375 9.8125L6.125 9.625C5.40625 9.0625 5 8.21875 5 7.28125V6.5V5V3.8125C5 2.8125 5.5 1.875 6.3125 1.3125L7.53125 0.53125C8.03125 0.1875 8.59375 0 9.1875 0H12.25C13.0625 0 13.75 0.6875 13.75 1.5C13.75 1.625 13.7188 1.75 13.6875 1.84375C14.3125 2.03125 14.75 2.59375 14.75 3.25C14.75 3.5625 14.6562 3.8125 14.5312 4.03125C15.2188 4.1875 15.75 4.78125 15.75 5.5C15.75 6 15.5312 6.40625 15.1875 6.6875C15.6562 6.9375 16 7.4375 16 8C16 8.84375 15.3125 9.5 14.5 9.5H10C10.4062 10.25 10.7188 11.0312 10.875 11.875L10.9688 12.2188C11.125 13.0312 10.5938 13.8125 9.78125 14ZM1 11C0.4375 11 0 10.5625 0 10V3C0 2.46875 0.4375 2 1 2H3C3.53125 2 4 2.46875 4 3V10C4 10.5625 3.53125 11 3 11H1Z"},null,-1)])],2))],8,Xt)]),e(d).length===V+1?(o(),n("div",Wt,"Rate this response")):H("",!0)]))],64)):H("",!0)],2))])])])):H("",!0),S.role==="user"?(o(),n("div",Kt,[t("div",null,[t("div",Gt,[t("p",{innerHTML:D(N(S.content)),class:M(`m-0 break-words text-sm leading-5 ${f.textMode==="light"?"text-white":"text-black"}`)},null,10,Jt)])])])):H("",!0),S.role==="system"?(o(),n("div",Qt,[t("div",null,[t("div",e1,[t("p",{innerHTML:D(S.content),class:M(`m-0 break-words text-sm leading-5 ${f.textMode==="light"?"text-white":"text-black"}`)},null,10,t1)])])])):H("",!0)],2))),128))])],512),e(s)?(o(),n("div",o1,[t("div",l
11,[t("form",{class:"relative flex w-full",onSubmit:U},[ge(t("input",{id:"chat-widget-input","onUpdate:modelValue":g[0]||(g[0]=S=>De(L)?L.value=S:null),type:"text",placeholder:"Type your message",class:"placeholder-text-neutral-dark-half w-full rounded-full border-0 bg-white py-3 pl-4 pr-[20px] text-base leading-5 text-neutral-dark focus:outline-none lg:pr-[110px]"},null,512),[[Te,e(L)]]),t("div",{class:M(`absolute inset-y-0 right-0 h-full items-center sm:flex ${f.textMode==="light"?"text-white":"text-black"}`)},[...g[6]||(g[6]=[t("button",{type:"submit",class:"!m-0 inline-flex h-full items-center justify-center rounded-full bg-secondary-light px-4 py-3 leading-5 transition duration-500 ease-in-out hover:bg-secondary-dark focus:outline-none"},[t("span",{class:"m-0 text-sm font-bold leading-5"},"Send"),t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"ml-2 h-5 w-5 rotate-90 transform"},[t("path",{d:"M10.894 2.553a1 1 0 00-1.788 0l-7 14a1 1 0 001.169 1.409l5-1.429A1 1 0 009 15.571V11a1 1 0 112 0v4.571a1 1 0 00.725.962l5 1.428a1 1 0 001.17-1.408l-7-14z"})])],-1)])],2)],32)])])):H("",!0)],2)],64)):H("",!0),e(s)&&e(i)&&e(v)?(o(),n("div",n1,[g[8]||(g[8]=E(" Built by ",-1)),g[9]||(g[9]=t("a",{class:"underline underline-offset-1",target:"_blank",href:"https://revium.com.au/"}," Revium ",-1)),g[10]||(g[10]=E(" and Powered by ",-1)),g[11]||(g[11]=t("a",{class:"underline underline-offset-1",target:"_blank",href:"https://openai.com/"}," OpenAI ",-1)),g[12]||(g[12]=E(". ",-1)),p(B,{class:"underline underline-offset-1",to:"/terms-policies/ai"},{default:w(()=>[...g[7]||(g[7]=[E("Terms and Conditions",-1)])]),_:1})])):H("",!0)],64)}}},s1=ie(a1,[["__scopeId","data-v-ea6ba9a3"]]),r1={width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i1={key:0,d:"M25 0C26.625 0 28 1.375 28 3V25C28 26.6875 26.625 28 25 28H16.375V18.5H20L20.6875 14H16.375V11.125C16.375 9.875 17 8.6875 18.9375 8.6875H20.875V4.875C20.875 4.875 19.125 4.5625 17.375 4.5625C13.875 4.5625 11.5625 6.75 11.5625 10.625V14H7.625V18.5H11.5625V28H3C1.3125 28 0 26.6875 0 25V3C0 1.375 1.3125 0 3 0H25Z",fill:"currentColor"},u1={key:1,d:"M14 10.6875C15.8125 10.6875 17.3125 12.1875 17.3125 14C17.3125 14.625 17.125 15.1875 16.875 15.6875C15.5625 17.9375 12.375 17.9375 11.0625 15.6875C9.8125 13.5 11.375 10.6875 14 10.6875ZM21.75 8.125C22.3125 9.4375 22.1875 12.5625 22.1875 14C22.1875 15.5 22.3125 18.625 21.75 19.9375C21.4375 20.8125 20.75 21.5 19.875 21.8125C18.5625 22.375 15.4375 22.25 14 22.25C12.5 22.25 9.375 22.375 8.0625 21.8125C7.1875 21.5 6.5 20.8125 6.1875 19.9375C5.6875 18.625 5.75 15.5 5.75 14C5.75 12.5625 5.6875 9.4375 6.1875 8.125C6.5 7.25 7.1875 6.5625 8.0625 6.25C9.375 5.6875 12.5 5.8125 14 5.8125C15.4375 5.8125 18.5625 5.6875 19.875 6.25C20.75 6.5625 21.4375 7.25 21.75 8.125ZM14 19.125C16.8125 19.1875 19.125 16.875 19.125 14C19.125 13.125 18.875 12.25 18.4375 11.4375C16.4375 8.0625 11.5 8.0625 9.5 11.4375C7.5625 14.875 10 19.125 14 19.125ZM19.3125 9.875C19.9375 9.875 20.5 9.375 20.5 8.6875C20.5 8.5 20.4375 8.25 20.3125 8.0625C19.875 7.3125 18.75 7.3125 18.25 8.0625C17.8125 8.875 18.375 9.875 19.3125 9.875ZM25 0C26.625 0 28 1.375 28 3V25C28 26.6875 26.625 28 25 28H3C1.3125 28 0 26.6875 0 25V3C0 1.375 1.3125 0 3 0H25ZM23.875 18.125C24 16.5 24 11.5625 23.875 9.9375C23.8125 8.3125 23.4375 6.875 22.3125 5.75C21.125 4.5625 19.6875 4.1875 18.125 4.125C16.4375 4 11.5 4 9.875 4.125C8.25 4.1875 6.8125 4.5625 5.6875 5.6875C4.5 6.875 4.125 8.3125 4.0625 9.875C3.9375 11.5625 3.9375 16.5 4.0625 18.125C4.125 19.75 4.5 21.1875 5.6875 22.3125C6.8125 23.5 8.25 23.875 9.875 23.9375C11.5 24.0625 16.4375 24.0625 18.125 23.9375C19.6875 23.875 21.125 23.5 22.3125 22.3125C23.4375 21.1875 23.8125 19.75 23.875 18.125Z",fill:"currentColor"},c1={key:2,d:"M26 0C27.0625 0 28 0.9375 28 2.0625V26C28 27.125 27.0625 28 26 28H1.9375C0.875 28 0 27.125 0 26V2.0625C0 0.9375 0.875 0 1.9375 0H26ZM8.4375 24V10.6875H4.3125V24H8.4375ZM6.375 8.8125C7.6875 8.8125 8.75 7.75 8.75 6.4375C8.75 5.125 7.6875 4 6.375 4C5 4 3.9375 5.125 3.9375 6.4375C3.9375 7.75 5 8.8125 6.375 8.8125ZM24 24V16.6875C24 13.125 23.1875 10.3125 19 10.3125C17 10.3125 15.625 11.4375 15.0625 12.5H15V10.6875H11.0625V24H15.1875V17.4375C1
15.1875 15.6875 15.5 14 17.6875 14C19.8125 14 19.8125 16 19.8125 17.5V24H24Z",fill:"currentColor"},d1={key:3,d:"M25 0C26.625 0 28 1.375 28 3V25C28 26.6875 26.625 28 25 28H3C1.3125 28 0 26.6875 0 25V3C0 1.375 1.3125 0 3 0H25ZM21.9375 9.9375C22.6875 9.375 23.4375 8.625 24 7.8125C23.25 8.125 22.4375 8.375 21.625 8.4375C22.4375 7.9375 23.125 7.1875 23.4375 6.1875C22.625 6.6875 21.75 7 20.8125 7.1875C20.0625 6.375 19 5.875 17.8125 5.875C15.3125 5.875 13.25 8.1875 13.8125 10.9375C10.4375 10.75 7.375 9.125 5.375 6.625C5 7.25 4.8125 7.9375 4.8125 8.75C4.8125 10.125 5.5 11.375 6.625 12.125C5.9375 12.125 5.3125 11.9375 4.8125 11.625V11.6875C4.8125 13.6875 6.1875 15.3125 8.0625 15.6875C7.4375 15.875 6.875 15.875 6.1875 15.75C6.75 17.375 8.25 18.5625 10.0625 18.625C8.625 19.6875 6.875 20.375 4.9375 20.375C4.625 20.375 4.3125 20.375 4 20.3125C5.8125 21.5 7.9375 22.125 10.25 22.125C17.8125 22.125 21.9375 15.875 21.9375 10.5C21.9375 10.3125 21.9375 10.125 21.9375 9.9375Z",fill:"currentColor"},f1={key:4,d:"M4 0H24C26.1875 0 28 1.8125 28 4V24C28 26.25 26.1875 28 24 28H4C1.75 28 0 26.25 0 24V4C0 1.8125 1.75 0 4 0ZM22.5625 5.25H19.5625L14.6875 10.875L10.4375 5.25H4.3125L11.625 14.875L4.6875 22.75H7.6875L13.0625 16.6875L17.6875 22.75H23.6875L16.0625 12.6875L22.5625 5.25ZM20.1875 21H18.5L7.8125 6.9375H9.5625L20.1875 21Z",fill:"currentColor"},p1={__name:"Square",props:{icon:{type:String,required:!0}},setup(a){return(l,r)=>(o(),n("svg",r1,[t("title",null,Z(a.icon),1),a.icon==="Facebook"?(o(),n("path",i1)):a.icon==="Instagram"?(o(),n("path",u1)):a.icon==="LinkedIn"?(o(),n("path",c1)):a.icon==="Twitter"?(o(),n("path",d1)):a.icon==="X"?(o(),n("path",f1)):H("",!0)]))}},m1={class:"reiv-container grid-cols-auto relative grid min-h-[169px] gap-12 border-t border-neutral-light-half pt-16 xl:grid-cols-[3fr_minmax(min-content,270px)] xl:gap-16 xl:!pr-0 2xl:overflow-x-visible 2xl:border-none before:2xl:absolute before:2xl:-left-16 before:2xl:top-0 before:2xl:w-[1536px] before:2xl:border-b before:2xl:border-neutral-light-half before:2xl:content-['']"},h1={class:"flex flex-wrap items-center gap-8"},g1={class:"whitespace-nowrap"},x1={class:"flex gap-8 text-secondary-light 2xl:ml-16"},v1={class:"mb-16"},C1={id:"footer-teleported",class:"flex flex-col empty:hidden"},_1={key:0,class:"relative order-last hidden h-full overflow-hidden only:block 2xl:-right-16"},w1={__name:"SiteFooter",props:{links:{type:Array,default:()=>[]},text:{type:String,default:""}},setup(a){const l=A(!0);J(()=>{const c=oe(le);l.value=c.greaterOrEqual("xl").value,q(c.greaterOrEqual("xl"),m=>{l.value=m})});const{$trackEvent:r}=W();return(c,m)=>{const y=X,b=p1,s=te;return o(),n("footer",m1,[t("ul",h1,[t("li",g1,"© Copyright "+Z(new Date().getFullYear()),1),(o(!0),n(F,null,K(a.links,({_uid:u,display_text:f,link:v})=>(o(),n("li",{key:u},[p(y,{class:"text-secondary-light underline underline-offset-2",to:v.url||"/"+v.cached_url,target:v.url?"_blank":void 0,onClick:h=>e(r)("footer_navigation",{click_text:f})},{default:w(()=>[E(Z(f),1)]),_:2},1032,["to","target","onClick"])]))),128))]),t("ul",x1,[t("li",null,[p(y,{to:"https://www.facebook.com/REIVictoria",target:"_blank",onClick:m[0]||(m[0]=u=>e(r)("footer_navigation",{click_text:"Facebook"}))},{default:w(()=>[p(b,{icon:"Facebook"})]),_:1})]),t("li",null,[p(y,{to:"https://instagram.com/rei_victoria?igshid=Y2IzZGU1MTFhOQ",target:"_blank",onClick:m[1]||(m[1]=u=>e(r)("footer_navigation",{click_text:"Instagram"}))},{default:w(()=>[p(b,{icon:"Instagram"})]),_:1})]),t("li",null,[p(y,{to:"http://www.linkedin.com/company/reiv",target:"_blank",onClick:m[2]||(m[2]=u=>e(r)("footer_navigation",{click_text:"LinkedIn"}))},{default:w(()=>[p(b,{icon:"LinkedIn"})]),_:1})]),t("li",null,[p(y,{to:"https://x.com/reivictoria",target:"_blank",onClick:m[3]||(m[3]=u=>e(r)("footer_navigation",{click_text:"X"}))},{default:w(()=>[p(b,{icon:"X"})]),_:1})])]),t("p",v1,Z(a.text),1),t("div",C1,[p(s,null,{default:w(()=>[e(l)?(o(),n("div",_1,[...m[4]||(m[4]=[t("svg",{class:"absolute right-0 top-0 w-full",viewBox:"0 0 272 408",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"},[t("path",{d:"M 272,408 V 0 L 83.25,90 0,41.5 v 366.4 z",fill:"#6c88dc"})],-1)])])):H("",!0)]),_:1})])])}}};function y1(){const a=re(),l=Q("timestamp",()=>"");async function r(c){try{const{data:m}=await Ue(c,async()=>await $fetch(`${a.public.STORYBLOK_API_URL}/datasource_entries?${l.value?`cv=${l.value}&`:""}datasource=${c}&version=${a.public.NUXT_ENV==="development"?"draft":"published"}&token=${a.public.STORYBLOK_KEY}`),"$UAkgumXq8B");return!l.value&&m?.value?.cv&&(l.value=m?.value?.cv),m?.value?.datasource_entries}catch(m){console.error(m)}}return{fetchDatasource:r}}const b1={class:"flex min-h-screen flex-col font-body"},k1={class:"z-10 flex-1"},U1={__name:"default",async setup(a){let l,r;const{fetchDatasource:c}=y1(),{fetchStoriesBySlugs:m}=Pe(),{isSignedIn:y,getIdToken:b}=G(),{initRouteHistory:s}=Re(),u=re(),f=Ze(),v=Q("userInfo"),h=A(0),T=Y(()=>y()),C=([l,r]=he(()=>m(["global/navigation/header","global/navigation/footer"])),l=await l,r(),l),L=Y(()=>C.value?.stories[0]?.content?.children),O=Y(()=>C.value?.stories[1]?.content);async function I(){const{getAccessTokenStatus:_,refreshTokens:x,clearTokensAndUser:$}=G(),d=_();d==="expired"?$():d==="expiring"&&await x()}async function i(){const _=b(),x=await fetch(`${u.public.REIV_API_URL}/account/dashboard`,{headers:{Authorization:`Bearer ${_}`}});if(x.ok){const $=await x.json();v.value=$.data}}{I(),q(()=>f.fullPath,I),q(()=>T.value,async()=>{T.value&&await i()});const _=([l,r]=he(()=>c("cpd-hours")),l=await l,r(),l);h.value=parseInt(_),isNaN(h.value)&&(h.value=0)}return J(()=>{T.value&&i(),s()}),(_,x)=>{const $=ut,d=pt,N=bt,D=Et,U=te,z=s1,P=w1;return o(),n("div",b1,[p($,{"nav-items":e(L)},null,8,["nav-items"]),t("main",k1,[p(d,{color:"rgb(var(--primary))"}),p(U,null,{default:w(()=>[e(f).path==="/"&&e(y)()?(o(),R(N,{key:0,"user-dashboard-info":e(v),"total-c
1pd-hours":e(h)},null,8,["user-dashboard-info","total-cpd-hours"])):e(y)()?(o(),R(D,{key:1,"user-dashboard-info":e(v),"total-cpd-hours":e(h)},null,8,["user-dashboard-info","total-cpd-hours"])):H("",!0)]),_:1}),Ae(_.$slots,"default")]),p(z,{source:e(u).public.AI_CHAT_SOURCE_ID,apikey:e(u).public.AI_CHAT_API_KEY,intro:"Hi, I'm REIV Assist, your virtual helper from the Real Estate Institute of Victoria. I'm here to support and guide you through our services and resources.",textMode:"light"},null,8,["source","apikey"]),p(P,{links:e(O)?.quick_links,text:e(O)?.footer_text},null,8,["links","text"])])}}};export{U1 as default};
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.