1import{p as w,b as M,_ as H,a as A}from"./BmsrMgL8.js";import{d as S,l as q,n as B,o as n,q as o,$ as m,h as b,i as V,x as h,b as p,f as x,F as C,t as L,T as j,u as z,C as D,a0 as T,e as y,v as P,r as k,g as E,z as F,y as I,U as v}from"./BGWtShg2.js";import{a as O}from"./Cd4ICL6Y.js";const U={class:"base-page"},Y=S({__name:"BasePage",props:{page:{type:Object,required:!0}},setup(e){var a,r,u,f,i,_,$,N;const t=e,c=q();return O({title:((r=(a=t.page)==null?void 0:a.seo)==null?void 0:r.title)||((u=t.page)==null?void 0:u.title),description:((i=(f=t.page)==null?void 0:f.seo)==null?void 0:i.description)||((_=t.page)==null?void 0:_.introText),ogImage:(N=($=t.page)==null?void 0:$.seo)==null?void 0:N.image}),B(()=>{t.page&&c.listenToUpdate(t.page.id,async s=>{t.page&&(t.page.title=s.fields.title,t.page.introText=s.fields.introText,t.page.pads=s.fields.pads.map(g=>{var l;return((l=t.page)==null?void 0:l.pads.find(d=>d.id===g.sys.id))||w(g)}),t.page.sections=s.fields.sections.map(g=>{var l;return((l=t.page)==null?void 0:l.sections.find(d=>d.id===g.sys.id))||M(g)}))})}),(s,g)=>{const l=H,d=A;return n(),o("main",U,[m(s.$slots,"before-intro"),b(l,{section:e.page.introSection,class:"section"},null,8,["section"]),m(s.$slots,"default"),b(d,{sections:e.page.sections},null,8,["sections"]),m(s.$slots,"after-sections")])}}}),R={class:"base-intro"},G=["innerHTML"],J=["innerHTML"],Z=S({__name:"BaseIntro",props:{id:{type:String,required:!1,default:null},title:{type:String,required:!0},text:{type:String,required:!1,default:null},withSeparator:{type:Boolean,required:!1,default:!1},ctas:{type:Array,required:!1,default:[]},ctaStyle:{type:String,default:""}},setup(e){const t=q();return(c,a)=>{const r=j;return n(),o("header",R,[m(c.$slots,"default"),V("h1",h(p(t).getAttributes(e.id,"title"),{class:"base-intro__title h1",innerHTML:e.title}),null,16,G),e.text?(n(),o("div",h({key:0},p(t).getAttributes(e.id,"introText"),{class:["base-intro__content",{"--separator":e.withSeparator}],innerHTML:e.text}),null,16,J)):x("",!0),e.ctas.length?(n(),o("ul",h({key:1,class:"base-intro__ctas"},p(t).getAttributes(e.id,"ctas")),[(n(!0),o(C,null,L(e.ctas,u=>(n(),o("li",{key:u.id},[b(r,{cta:u,"cta-style":e.ctaStyle},null,8,["cta","cta-style"])]))),128))],16)):x("",!0)])}}}),K={key:0,class:"pagination container"},ee=S({__name:"Pagination",props:{pagination:{type:Object,required:!0}},setup(e){const t=z(),c=v,a=e;return D(()=>a.pagination.currentPage,()=>{window.scrollTo(0,0)}),T({meta:[{name:"total-pages",content:a.pagination.totalPages.toString()}],link:[a.pagination.hasPrevPage?{rel:"prev",href:`?page=${Number(a.pagination.currentPage)-1}`}:void 0,a.pagination.hasNextPage?{rel:"next",href:`?page=${Number(a.pagination.currentPage)+1}`}:void 0,{rel:"canonical",href:a.pagination.currentPage==1?t.path:t.fullPath}].filter(r=>r!==void 0)}),B(()=>{T({title:`${document.title} - Page ${a.pagination.currentPage} of ${a.pagination.totalPages}`})}),(r,u)=>{const f=v;return e.pagination.totalPages>1?(n(),o("div",K,[(n(),y(k(e.pagination.hasPrevPage?p(c):"span"),{rel:"prev","aria-label":"Previous page",to:{query:{page:Number(e.pagination.currentPage)-1}},class:P(["pagination__prev",{"--disabled":!e.pagination.hasPrevPage}])},null,8,["to","class"])),(n(!0),o(C,null,L(e.pagination.totalPages,i=>(n(),y(f,{key:i,to:{query:{page:i}},class:P(["pagination__page",{"--active":i==e.pagination.currentPage}]),"aria-label":"Page "+i},{default:E(()=>[F(I(i),1)]),_:2},1032,["to","class","aria-label"]))),128)),(n(),y(k(e.pagination.hasNextPage?p(c):"span"),{rel:"next","aria-label":"Next page",to:{query:{page:Number(e.pagination.currentPage)+1}},class:P(["pagination__next",{"--disabled":!e.pagination.hasNextPage}])},null,8,["to","class"]))])):x("",!0)}}});export{Z as _,Y as a,ee as b};
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.