1import{a as j,_ as z}from"./CvBdjI3z.js";import{_ as E,u as F,w as L,z as f,I,a as U,b as q,c as A,q as $,e,o as h,v as k,l as H,d as i,m as x,y as M,A as R,x as T}from"./CcnIdBSx.js";import{r as Z,b as O,_ as W}from"./BDmUlOAe.js";import{_ as J}from"./CadUfp66.js";import{d as K,_ as Q}from"./BEFBcVsM.js";import{g as X}from"./nPyudofL.js";import{t as Y}from"./BkBlAi77.js";import"./BebxN0bC.js";import"./Bp6Lc5M4.js";const ee={key:0,class:"stories"},te={class:"stories__header"},se={class:"related-content"},oe={__name:"[id]",async setup(ae){var b,w,D;let a,m;const y=F(),{data:s,error:d}=([a,m]=L(()=>X(y.params.type,y.params.id)),a=await a,m(),a);if(d!=null&&d.value)throw f({fatal:!0,statusCode:404,statusMessage:(b=d.value)==null?void 0:b.message});let c=null,u=null,p=null,g=null,v=null;const C=t=>{const r=new Date(t),n={year:"numeric",month:"long",day:"numeric"};return r.toLocaleDateString("en-US",n).toUpperCase()};if(s&&s.length>0)c=s==null?void 0:s[0],u=(w=s==null?void 0:s[0].acf)==null?void 0:w.content_sections;else try{const t=I(),{data:r}=([a,m]=L(()=>U(`${t.public.s3Legacy}/tour-galleries/${y.params.slug}.json`,"$DBZUEHVDvZ")),a=await a,m(),a),n=JSON.parse(r==null?void 0:r.value),o=(D=n==null?void 0:n.concerts)==null?void 0:D[0];if(o)p=o.modules,g={date:C(o.storyDate),title:o.storyTitle,image:`${t.public.s3Legacy}/media/${o.storyImage}`},v=Z(o.related,"tour-gallery/concerts");else throw f({fatal:!1,statusCode:404,statusMessage:"Resource could not be loaded, sorry."})}catch(t){throw f({fatal:!0,statusCode:404,statusMessage:t==null?void 0:t.message})}const B=s&&s.length>0?Y(c==null?void 0:c.yoast_head_json):g;return q(B),(t,r)=>{const n=j,o=T,N=W,S=J,V=O,G=Q,P=z;return e(u)||e(p)?(h(),A("div",ee,[k("div",te,[i(n,{size:"s",element:"span",align:"center"},{default:x(()=>{var l,_;return[M(R(((l=e(g))==null?void 0:l.date)||C((_=e(c))==null?void 0:_.date)),1)]}),_:1}),i(o,{size:"xl",element:"h1",align:"center"},{default:x(()=>{var l,_;return[M(R(((l=e(g))==null?void 0:l.title)||("decodeHtml"in t?t.decodeHtml:e(K))((_=e(c))==null?void 0:_.title.rendered)),1)]}),_:1})]),e(u)?(h(),H(N,{key:0,sections:e(u),type:"post"},null,8,["sections"])):e(p)?(h(),H(S,{key:1,sections:e(p),type:"post"},null,8,["sections"])):$("",!0),k("div",se,[i(V,{"unique-id":"gallery-related-content-divider"}),i(P,null,{default:x(()=>[i(G,{title:"Related content","posts-legacy":e(v),aspect:"rect"},null,8,["posts-legacy"])]),_:1})])])):$("",!0)}}},pe=E(oe,[["__scopeId","data-v-191cbb83"]]);export{pe 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.