1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Uvnv-9x-.js","./CfOyg1Nd.js","./D80Q6qqe.js"])))=>i.map(i=>d[i]); 2import{aS as B,b8 as D,dL as F,aT as b,aU as t,b1 as n,aY as d,aW as w,b9 as k,b2 as T,a$ as e,b3 as X,b4 as I,b6 as G,aX as o,aZ as h,aQ as S,aR as Z,b5 as K,bd as J,bL as ee,bl as C,bk as P,a_ as x,b0 as te,bj as j,b7 as oe,ck as A,bg as E,aV as L}from"./CfOyg1Nd.js";import{u as ae}from"./BpS7cU5r.js";const z=()=>({version:"2026-08-17T10:00:00Z",header:{logo:{src:"/static/logo-frontend.svg",alt:"Hub of Hope",width:102,height:56},nav:[{label:"Resources",href:"/resources",className:"text-lg"},{label:"About us",href:"/about-us",className:"text-lg"},{label:"Partners",href:"/partners",className:"text-lg"},{label:"Register service",href:"/register-your-service",className:"text-lg"},{label:"FAQs",href:"/faqs",className:"text-lg"},{label:"Get support",href:"/services",className:"text-lg"}],special:{quickExit:{label:"Hide page",href:"https://www.bbc.co.uk/weather",variant:"secondary"}},ctas:[{label:"Get urgent help",href:"/need-help-now",variant:"primary"}]},footer:{columns:[{logo:{src:"/static/logo-frontend.svg",alt:"Hub of Hope",width:102,height:56},description:"The UKâs largest and most comprehensive mental health support directory. Help, when you need it, where you need it",cta:{label:"Donate",href:"https://www.chasingthestigma.co.uk/donate/"}},{title:"About",links:[{label:"Resources",href:"/resources"},{label:"About us",href:"/about-us"},{label:"Register service",href:"/register-your-service"},{label:"Partnerships",href:"/partners"},{label:"FAQs",href:"/faqs"},{label:"Urgent help",href:"/need-help-now"},{label:"Get support",href:"/services"}]},{title:"Terms",links:[{label:"Privacy policy",href:"/privacy-policy"},{label:"Cookie policy",href:"/cookie-policy"},{label:"Disclaimer",href:"/disclaimer"},{label:"Terms & conditions",href:"/terms-conditions"}],special:{cookiePreferences:{label:"Manage cookie preferences",type:"button",attributes:{"data-cc":"show-preferencesModal"}}},providedBy:{label:"Provided by",href:"https://chasingthestigma.co.uk",icon:{src:"/static/provided-by-logo.svg",alt:"Outlines Chasing The Stigma Logo on a dark background"}},charity:{text:"Chasing The Stigma | Registered Charity No 1170757"}},{title:"Get the app",appStores:[{platform:"ios",href:"https://apps.apple.com/gb/app/hub-of-hope/id1337090866",icon:{src:"/static/appstore.svg",alt:"Download on the App Store",width:135,height:40}},{platform:"android",href:"https://play.google.com/store/apps/details?id=com.chasingthestigma.hubofhope",icon:{src:"/static/google-play-white.svg",alt:"Get it on Google Play",width:135,height:40}}]}],socials:[{platform:"instagram",href:"https://www.instagram.com/chasingstigma/",icon:{src:"/static/social-instagram.svg",alt:"Instagram logo"}},{platform:"linkedin",href:"https://www.linkedin.com/company/chasingstigma/",icon:{src:"/static/social-linkedin.svg",alt:"LinkedIn logo"}},{platform:"facebook",href:"https://www.facebook.com/chasingstigma/",icon:{src:"/static/social-facebook.svg",alt:"Facebook logo"}},{platform:"x",href:"https://www.twitter.com/ChasingStigma",icon:{src:"/static/social-x.svg",alt:"X logo"}}],legal:{copyright:`©${new Date().getFullYear()} Hub of Hope. All rights reserved.`}}}),le=B({__name:"HidePageButton",setup(i){const{iframeConfig:a}=D(F()),{header:l}=z(),f=b(()=>{var c;return((c=a.value)==null?void 0:c.quickEscapeButtonText)||l.special.quickExit.label}),s=b(()=>{var c;return((c=a.value)==null?void 0:c.quickEscapeButtonLink)||l.special.quickExit.href}),g=b(()=>{var u;return(((u=a.value)==null?void 0:u.quickEscapeButtonTarget)||"_blank")==="_blank"?"_blank":"_parent"}),_=()=>{const c=s.value;localStorage.clear();const u=window.open(c,g.value);u&&u.focus(),window.location.href=c};return(c,u)=>{const v=I;return t(),n("div",null,[d(v,X({color:"white",ui:{color:{white:{solid:"md:ring-green md:ring-2"}},rounded:"rounded-none md:rounded-md"},class:"focus:ring-white focus:ring-2 focus:ring-offset-2"},c.$attrs,{onClick:_}),{default:w(()=>[k(T(e(f)),1)]),_:1},16)])}}}),se=["aria-label"],ne=B({__name:"HamburgerIcon",props:{modelValue:{type:Boolean},modelModifiers:{}},emits:["update:modelValue"],setup(i){const a=G(i,"modelValue"),l=b(()=>a.value?"Close menu":"Open menu");return(f,s)=>(t(),n("button",{class:h(["relative shrink-0 size-8 p-1.5 rounded-md transition-colors duration-200",{"bg-white":a.value}]),"aria-label":e(l),onClick:s[0]||(s[0]=g=>a.value=!a.value)},[o("div",{class:h(["flex flex-col gap-1.5 w-full transition-opacity duration-200",{"opacity-0":a.value,"opacity-100":!a.value}])},s[1]||(s[1]=[o("span",{class:"bg-white rounded-full w-full h-0.5"},null,-1),o("span",{class:"bg-white rounded-full w-full h-0.5"},null,-1),o("span",{class:"bg-white rounded-full w-full h-0.5"},null,-1)]),2),o("div",{class:h(["absolute inset-0 size-full p-1.5 transition-opacity duration-200",{"opacity-0":!a.value,"opacity-100":a.value}])},s[2]||(s[2]=[o("span",{class:"relative top-1/2 block bg-blue rounded-full w-full h-0.5 transform rotate-45"},null,-1),o("span",{class:"relative top-1/2 block bg-blue rounded-full w-full h-0.5 transform -rotate-45 -translate-y-0.5"},null,-1)]),2)],10,se))}}),re=["src","alt","width","height"],ie=B({__name:"HeaderLogo",setup(i){const{header:a}=z();return(l,f)=>(t(),n("img",{src:e(a).logo.src,alt:e(a).logo.alt,width:e(a).logo.width,height:e(a).logo.height},null,8,re))}}),Y=()=>{const{isNative:i}=S().public;return async(a,l)=>{if(!i||!l.external)return;a.preventDefault();const{Browser:f}=await Z(async()=>{const{Browser:s}=await import("./Uvnv-9x-.js");return{Browser:s}},__vite__mapDeps([0,1,2]),import.meta.url);await f.open({url:l.href,toolbarColor:"#042f57"})}},ce={role:"navigation","aria-label":"mobile-navigation",class:"transition-opacity duration-500 bg-blue flex grow overflow-auto pt-10"},ue={class:"container"},de={class:"font-brown text-sm text-white"},me={class:"font-brown text-sm text-white"},he=B({__name:"MainNavMobile",props:K({headerLinks:{type:Array,required:!0}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(i){const a=G(i,"modelValue"),{isNative:l}=S().public,f=Y(),s=()=>{setTimeout(()=>{a.value=!1},300)},g=(c,u)=>{f(c,u),s()};J(()=>{document.body.classList.add("overflow-hidden","xl:overflow-auto")}),ee(()=>{document.body.classList.remove("overflow-hidden")});const _=b(()=>[{label:"Privacy policy",href:"/privacy-policy",className:"text-sm"},{label:"Cookie policy",href:"/cookie-policy",className:"text-sm"},{label:"Disclaimer",href:"/disclaimer",className:"text-sm"},{label:"Terms & conditions",href:"/terms-conditions",className:"text-sm"}]);return(c,u)=>{const v=te,N=j;return t(),n("nav",ce,[o("div",ue,[o("ul",de,[o("li",null,[d(N,{to:"/",class:"flex items-center gap-4 justify-between py-3.5 mb-2 last:mb-0 text-lg",onClick:s},{default:w(()=>[u[0]||(u[0]=k(" Home ")),d(v,{name:"heroicons:chevron-right-16-solid",class:"size-6"})]),_:1})]),(t(!0),n(C,null,P(i.headerLinks,m=>(t(),n("li",{key:m.href},[d(N,{to:m.href,external:m.external,class:h(["flex items-center gap-4 justify-between py-3.5 mb-2 last:mb-0",m.className]),onClick:H=>g(H,m)},{default:w(()=>[k(T(m.label)+" ",1),d(v,{name:"heroicons:chevron-right-16-solid",class:"size-6"})]),_:2},1032,["to","external","class","onClick"])]))),128))]),e(l)?(t(),n(C,{key:0},[u[1]||(u[1]=o("hr",{class:"border-b border-white/50 mt-4 mb-1"},null,-1)),o("ul",me,[(t(!0),n(C,null,P(e(_),m=>(t(),n("li",{key:m.href},[d(N,{to:m.href,class:h(["flex items-center gap-4 justify-between py-3.5 mb-2 last:mb-0",m.className]),onClick:s},{default:w(()=>[k(T(m.label)+" ",1),d(v,{name:"heroicons:chevron-right-16-solid",class:"size-6"})]),_:2},1032,["to","class"])]))),128))])],64)):x("",!0)])])}}}),pe={key:0,class:"bg-blue w-full fixed top-0 z-[100]",style:{"padding-top":"var(--safe-area-inset-top)"}},fe={class:"flex mb-4 text-nowrap md:hidden"},be={class:"grow"},ge={class:"grow"},ve={key:0,class:"shrink px-4 -mt-1.5"},xe={class:"flex flex-col gap-1"},we=["src"],_e={key:2,class:"text-[0.7rem] text-[var(--hoh-color-primary-text-colour)]"},ye=["href"],ke={class:"flex items-center gap-x-11"},Ne={key:0,role:"navigation","aria-label":"main-navigation-iframe"},Le={class:"flex gap-4 md:flex"},Ce={key:1,id:"mobile-nav-container",class:"fixed inset-0 xl:hidden z-50 h-screen flex flex-col",style:{paddingTop:"var(--safe-area-inset-top)"}},Ve=B({__name:"MainNav",props:{showLinks:{type:Boolean,required:!0},simpleMobileNav:Boolean},setup(i){const a=i,l=oe(!1),{hostName:f}
2=S().public,{iframeConfig:s}=D(F()),g=b(()=>{var y,p;return!!((y=s.value)!=null&&y.logo&&((p=s.value)!=null&&p.showPoweredBy))}),_=b(()=>{var y;return!!((y=s.value)!=null&&y.isLive)}),{isNative:c}=S().public,u=b(()=>a.simpleMobileNav?"h-[40px] md:h-[4.74rem] lg:h-[4.18rem] xl:h-[5.27rem]":g.value?"h-[7.75rem] md:h-[4.74rem] lg:h-[4.18rem] xl:h-[5.27rem]":"h-[6.75rem] md:h-[4.74rem] lg:h-[4.18rem] xl:h-[5.27rem]"),{header:v}=z(),N=ae(),m=Y(),H=b(()=>[...v.nav,{label:"On Your Side",href:N("/OnYourSide/"),className:"text-lg",external:!0}]);return(y,p)=>{var O,R;const $=I,q=le,U=ne,V=j,Q=ie,W=he;return t(),n("div",null,[e(c)?(t(),n("div",pe)):x("",!0),o("div",{"aria-hidden":"true",class:h([e(u),"bg-blue"]),style:A({marginTop:i.simpleMobileNav?"":"var(--safe-area-inset-top)"})},null,6),o("header",{role:"banner",class:h(["fixed z-[100] bg-blue text-white w-full md:py-4 md:flex items-center",[{"inset-y-0 xl:bottom-auto":e(l)},e(u)]]),style:A({top:e(c)?"var(--safe-area-inset-top)":"0px"})},[o("div",fe,[o("div",be,[d($,{label:"Get urgent help",color:"pink",to:"/need-help-now",size:"lg",block:"",ui:{rounded:"rounded-none"}})]),o("div",ge,[d(q,{block:!0,size:"lg"})]),!e(_)&&i.simpleMobileNav?(t(),n("div",ve,[d(U,{modelValue:e(l),"onUpdate:modelValue":p[0]||(p[0]=r=>E(l)?l.value=r:null),tabindex:"4",small:""},null,8,["modelValue"])])):x("",!0)]),o("div",{class:h([{"max-md:hidden":i.simpleMobileNav},"container flex gap-x-10 items-center justify-between"])},[o("div",xe,[(O=e(s))!=null&&O.logo?(t(),L(V,{key:0,to:e(s).referralDomain||"",target:"_blank"},{default:w(()=>{var r;return[o("img",{src:(r=e(s))==null?void 0:r.logo,class:h(["w-auto",[e(g)?"max-h-[36px] md:max-h-[40px]":"max-h-[44px] md:max-h-[56px]"]])},null,10,we)]}),_:1},8,["to"])):(t(),L(V,{key:1,to:"/",target:(R=e(s))!=null&&R.uid?"_blank":"",class:"w-20 lg:w-16 xl:w-24",tabindex:"1","aria-label":"Link to the homepage"},{default:w(()=>[d(Q)]),_:1},8,["target"])),e(g)?(t(),n("p",_e,[p[3]||(p[3]=k(" Powered by Chasing the Stigma's ")),o("a",{href:e(f),target:"_blank",rel:"nofollow",class:"underline"},"Hub of Hope",8,ye)])):x("",!0)]),o("div",ke,[e(_)?x("",!0):(t(),n("nav",Ne,[i.showLinks||e(l)?(t(),n("ul",{key:0,class:h(["hidden gap-10 font-brown text-sm xl:text-base",{"xl:flex":!i.showLinks,"lg:flex":i.showLinks}])},[(t(!0),n(C,null,P(e(H),r=>(t(),n("li",{key:r.href},[d(V,{tabindex:"5",to:r.href,external:r.external,class:"font-bold hover:text-gray-300 transition-colors duration-200",onClick:M=>e(m)(M,r)},{default:w(()=>[k(T(r.label),1)]),_:2},1032,["to","external","onClick"])]))),128))],2)):x("",!0)])),o("div",Le,[(t(!0),n(C,null,P(e(v).ctas,r=>(t(),n("span",{key:r.href},[d(V,{to:r.href},{default:w(()=>{var M;return[(M=e(s))!=null&&M.highLightSecondaryColor?(t(),L($,{key:0,label:r.label,class:"hidden md:block",color:"green",tabindex:"2"},null,8,["label"])):(t(),L($,{key:1,label:r.label,tabindex:"2",color:"pink",class:"hidden md:block focus:ring-white focus:ring-offset-1"},null,8,["label"]))]}),_:2},1032,["to"])]))),128)),d(q,{class:"hidden md:block",tabindex:"3"}),e(_)?x("",!0):(t(),L(U,{key:0,modelValue:e(l),"onUpdate:modelValue":p[1]||(p[1]=r=>E(l)?l.value=r:null),tabindex:"4",class:h({"lg:hidden":i.showLinks,"max-sm:hidden":i.simpleMobileNav})},null,8,["modelValue","class"]))])])],2)],6),e(l)?(t(),n("div",Ce,[o("div",{class:h(e(u))},null,2),d(W,{modelValue:e(l),"onUpdate:modelValue":p[2]||(p[2]=r=>E(l)?l.value=r:null),"header-links":e(H)},null,8,["modelValue","header-links"])])):x("",!0)])}}});export{ie as _,Y as a,Ve as b,z as u}; 3//# sourceMappingURL=C3BU_Jux.js.map
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.