1import{d as z,u as F,g as O,h as W,N as q,w as P,k as y,O as G,c as n,a as b,l as k,G as C,C as I,i as Q,o as s,m as o,n as e,A as i,P as j,F as d,r as x,v as J,Q as K,R as H,L as U,t as N,y as X,z as Y,q as Z,D as ee,E as te}from"./CAIrsy6A.js";import{u as se,_ as ne}from"./DL-C6HwK.js";const ae={class:"legal-main"},le={class:"services-hero"},oe={class:"services-hero__container"},ie={class:"services-hero__content"},re=["innerHTML"],ce=["innerHTML"],ue={key:0,class:"services-hero__figure"},_e=["src","alt"],de={class:"legal-content"},he={class:"menu"},me={class:"menu-label menu-label--legal"},fe={class:"menu-detail"},ve=["id","data-index"],ge={key:0},pe=["innerHTML"],Le=z({__name:"legal",async setup(ye){let _,L;const{locale:S}=F(),h=O(),E=ee(),{find:$}=W(),{width:u}=q(),m=te(),{data:A,refresh:B}=([_,L]=P(()=>Q("tnc",()=>$("tnc",{populate:"deep",locale:S.value}))),_=await _,L(),_),t=A.value?.data.attributes;se({pageTitle:t?.title,seo:t?.seo});const f=C(null),v=C(0),r=C(null);y(u,()=>{M()}),y(S,()=>{B()}),y(h,()=>{w()}),G(()=>{M(),w()});const w=()=>{if(h.hash&&document){const a=h.hash,g=document.querySelector(a);if(g){const p=g.getAttribute("data-index");T(+p)}}},M=()=>{const a="menu-label__list--full-flex";r.value!=null&&(u.value>=640&&u.value<768?r.value.offsetWidth<600&&r.value.classList.add(a):u.value>=768&&u.value<1024?r.value.offsetWidth<720&&r.value.classList.add(a):r.value.classList.remove(a))},T=a=>{v.value=a,f.value&&f.value.scrollIntoView({behavior:"smooth"})};return(a,g)=>{const p=J,V=j,D=ne,R=I;return s(),n("div",null,[b(R,{name:"default"},{default:k(()=>[o("main",ae,[o("section",le,[o("div",oe,[o("article",ie,[e(t)?.hero.title?(s(),n("h1",{key:0,class:"services-hero__title",innerHTML:e(m)(e(t).hero.title)},null,8,re)):i("",!0),e(t)?.hero.subtitle?(s(),n("div",{key:1,class:"services-hero__description",innerHTML:e(m)(e(t).hero.subtitle)},null,8,ce)):i("",!0)]),e(t)?.hero.hero_image.data?(s(),n("figure",ue,[o("img",{src:`${e(E).public.strapi.url}${e(t).hero.hero_image.data.attributes.url}`,alt:e(t).hero.hero_image.data.attributes.alternativeText||"tnc hero illustration",class:"services-hero__figure-img"},null,8,_e)])):i("",!0)])]),o("section",de,[e(t)?.legal_items?(s(),n("div",{key:0,ref_key:"legalContentEl",ref:f,class:"legal-content__container"},[o("div",he,[o("div",me,[b(V,null,{default:k(()=>[o("ul",{ref_key:"ulElement",ref:r,class:"menu-label__list"},[(s(!0),n(d,null,x(e(t).legal_items,(l,c)=>(s(),n(d,null,[l.is_hidden?i("",!0):(s(),n("li",{key:c,class:"menu-label__item"},[b(p,{to:`#${("toSlug"in a?a.toSlug:e(H))(l.menu_title)}`,class:K(["menu-label__item-link menu-label__item-button",{"is-active":e(v)===c}]),onClick:be=>T(c)},{default:k(()=>[U(N(l.menu_title),1)]),_:2},1032,["to","class","onClick"])]))],64))),256))],512)]),_:1})]),o("div",fe,[(s(!0),n(d,null,x(e(t).legal_items,(l,c)=>(s(),n(d,null,[l.is_hidden?i("",!0):X((s(),n("div",{id:("toSlug"in a?a.toSlug:e(H))(l.menu_title),key:`menu-${c}`,"data-index":c,class:"legal-wrapper"},[l.menu_title?(s(),n("h2",ge,N(l.menu_title),1)):i("",!0),l.menu_desc?(s(),n("article",{key:1,class:"legal-article",innerHTML:e(m)(l.menu_desc)},null,8,pe)):i("",!0)],8,ve)),[[Y,e(v)===c]])],64))),256))])])],512)):i("",!0)]),e(t)?.banner_footer?(s(),Z(D,{key:0,banners:e(t).banner_footer},null,8,["banners"])):i("",!0)])]),_:1})])}}});export{Le 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.