1import{i as f,j as B,d as T,u as I,k as M,q as R,w as q,l as x,B as d,m as z,s as t,o as m,c as h,e as E,f as _,t as L,a as p,g as N,v as U,P as V,x as j,C as F,z as H,D as S}from"./entry.Bg2SW8ob.js";import{B as O}from"./Right.DGzMai51.js";import{u as G}from"./use-ollion-head.CooeuLy2.js";const w=f` 2 *[_type == 'article' && uri.current == $uri] | order(_updatedAt desc){ 3 ..., 4 'uri': uri.current, 5 metaTitle, 6 metaDescription, 7 metaImage {..., asset->}, 8 pdf { ..., asset-> }, 9 blocks[] { ${B} }, 10 robots, 11 }[0] 12`;f` 13 *[_type == 'article' && defined(uri)] | order(_updatedAt desc){ 14 ..., 15 'uri': uri.current, 16 metaTitle, 17 metaDescription, 18 metaImage {..., asset->}, 19 pdf { ..., asset-> }, 20 blocks[] { ${B} }, 21 robots, 22 } 23`;f` 24 *[ 25 _type == 'article' && defined(uri) 26 ] [0...3] | order(date desc, _id desc) { 27 'uri': uri.current, 28 } 29`;const Q=F(()=>S(()=>import("./PdfRenderer.BWrpMqkd.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url).then(l=>l.default||l)),Y={key:0,class:"bg-offwhite text-black"},J={class:"px-gutter py-lg pt-md mx-auto w-full max-w-screen-xl"},K={key:0,class:"px-gutter text-grey mb-md mt-xs italic"},ee=T({__name:"[article]",async setup(l){let o,g;const D=I(),{article:c}=D.params,e=M(null);R("blockBackgroundColor","offwhite");const u=Array.isArray(c)?c.join("/"):c,{data:k,error:y}=([o,g]=q(()=>U(u,()=>H(w,{uri:`/articles/${u||""}`}),"$GBz7UktiPu")),o=await o,g(),o);if(y.value)throw x({statusCode:500,statusMessage:"Internal server error",message:y.value.message});if(!k.value)throw x({statusCode:404,statusMessage:"Page Not Found"});e.value=k.value,G(e);const A=d(()=>e.value?$(e.value.date):null),P=d(()=>{var a;return!((a=e.value)!=null&&a.hideDate)}),v=d(()=>{var a;return(a=e.value)!=null&&a.pdf?e.value.pdf.asset.url:!1});z({query:w,params:{uri:`/articles/${u||""}`},onUpdate:a=>{e.value=a}});function $(a){let n=new Date(a),r=`${n.getMonth()+1}`,s=`${n.getDate()}`,i=n.getFullYear();return r.length<2&&(r=`0${r}`),s.length<2&&(s=`0${s}`),[i,r,s].join("-")}return(a,n)=>{var b;const r=O,s=V,i=j,C=Q;return t(e)?(m(),h("div",Y,[E("article",J,[_(r,{eyebrow:"",summary:t(e).summary,title:t(e).title,image:t(e).marqueeImage,"accent-color":"",back:"","back-text":t(e).backText},null,8,["summary","title","image","back-text"]),t(P)?(m(),h("p",K,L(t(A)),1)):p("",!0),_(s,{value:t(e).body,alignment:"left",class:"px-gutter"},null,8,["value"]),_(i,{blocks:((b=t(e))==null?void 0:b.blocks)??[]},null,8,["blocks"]),t(v)?(m(),N(C,{key:1,"pdf-url":t(v)},null,8,["pdf-url"])):p("",!0)])])):p("",!0)}}});export{ee as default}; 30function __vite__mapDeps(indexes) { 31 if (!__vite__mapDeps.viteFileDeps) { 32 __vite__mapDeps.viteFileDeps = ["./PdfRenderer.BWrpMqkd.js","./PdfRenderer.vue.Bnlr62Z8.js","./entry.Bg2SW8ob.js","./entry.BSZNtQUl.css","./PdfRenderer.DbWrwyMT.css"] 33 } 34 return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) 35}
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.