1import E from"./COFo-OpQ.js";import{_ as N}from"./CgIxEbHs.js";import z from"./Ddg_c5GD.js";import{_ as B}from"./B13vnEgv.js";import P from"./JlvM_QGk.js";import{_ as R}from"./BUZc7hZi.js";import{s as q,m as D,ad as S,ae as V,c as h,a as _,o as a,u as t,b as r,h as w,i as b,e as o,P as k,Q as C}from"./B3l71nJ5.js";import{u as W}from"./C9Ehk0Tq.js";import{q as j}from"./274UHC2I.js";import{u as A}from"./BF6FIpsy.js";import"./DON81SiH.js";import"./L0qzim7J.js";import"./SW8NK5AX.js";import"./32oZiwkw.js";import"./DlAUqK2U.js";import"./QHiF4sd2.js";import"./T-AlbFTE.js";import"./7-hL7XLo.js";import"./a0M7tbSu.js";import"./D82xI9TF.js";import"./C-v3KzvZ.js";import"./CxYJgpPD.js";import"./C2pbxdxg.js";import"./wSbNHcIL.js";import"./BkDwLsK5.js";import"./BBVjJUDj.js";import"./-MsWPNJE.js";import"./CMsL-1Mp.js";import"./CGuVWUZ-.js";import"./DMiqGZBS.js";const I={class:"relative bg-white overflow-hidden"},T={key:0,class:"px-3.5 pb-14 sm:px-6 sm:pb-20 text-gray-900"},F={class:"max-w-prose mx-auto"},L={class:"flex justify-center pt-12"},O={key:1,class:"relative px-4 sm:px-6 lg:px-8"},Q={class:"mt-8"},Z={class:"px-4 max-w-prose mx-auto"},G={class:"px-4 rounded-lg flex justify-center pt-12"},Me={__name:"[...slug]",async setup(H){let n,d;const v=q(),{path:f}=v,y=f.replace(/\/$/,"")||"/",{data:e,pending:M}=([n,d]=D(async()=>W(`content-essay-${y}`,async()=>await j().where({_path:y}).findOne())),n=await n,d(),n);if(!e.value)throw S({statusCode:404,statusMessage:"Essay not found",fatal:!0});V(()=>{!M.value&&e.value&&A({...e.value,path:f})});const x=h(()=>{var s;return(((s=e.value)==null?void 0:s.tags)||[]).includes("NFL")}),p=h(()=>{const{layout:s,variant:g,coverMode:c,coverWidth:u,eyebrow:i,deck:m,noCover:l}=v.query;return{...e.value,layout:s??e.value.layout,variant:g??e.value.variant??"sans",coverMode:c??e.value.coverMode,coverWidth:u??e.value.coverWidth,eyebrow:i??e.value.eyebrow,deck:m??e.value.deck,coverImage:l?void 0:e.value.coverImage}});return(s,g)=>{const c=E,u=N,i=z,m=B,l=P,$=R;return a(),_("div",I,[t(p).layout==="magazine"?(a(),_("article",T,[r("div",F,[t(x)?(a(),w(c,{key:0,tone:"soft",class:"mt-10"})):b("",!0),o(u,k(C(t(p))),null,16),o(i,{value:t(e),class:"prose blog-post text-gray-700 font-serif"},null,8,["value"]),o(m,{tags:t(e).tags},null,8,["tags"]),r("div",L,[o(l)])])])):(a(),_("div",O,[t(x)?(a(),w(c,{key:0,tone:"soft",class:"max-w-prose mx-auto mt-6"})):b("",!0),o($,k(C(t(p))),null,16),r("div",Q,[o(i,{value:t(e),class:"prose blog-post max-w-prose text-gray-700 mx-auto font-serif"},null,8,["value"]),r("div",Z,[o(m,{tags:t(e).tags},null,8,["tags"])]),r("div",G,[o(l)])])]))])}}};export{Me 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.