1import{u as M,S as O,b as x,a as v}from"./BM45Ncu5.js";import C from"./8qbH08Nl.js";import{d as H,k as P,c as n,w as g,l as w,u as A,a as B,b as r,e as T,f as i,g as o,m as d,t as f,o as c,j}from"./CmM1QDzE.js";import"./CizS8yfw.js";const R={class:"dynamic-page blog-post-page"},V={class:"section_blog-post"},F={class:"padding-global padding-section-large"},U={class:"container-medium"},J={class:"blog_post-header"},W={class:"blog_post-title"},z={class:"blog_post-meta"},G={key:0},q={key:1},K={key:2},Q=["src","alt"],X=["innerHTML"],l="https://www.beatthebomb.com",Y=H({__name:"[slug]",async setup(Z){let t,s;const S=P(),m=n(()=>{const a=S.params.slug;return Array.isArray(a)?a[0]:a}),{getBlogPost:I,getLocations:L,getNavigation:N}=M();if(!([t,s]=g(()=>x()),t=await t,s(),t).value)throw w({statusCode:404,statusMessage:"Not Found",fatal:!0});const{data:e}=([t,s]=g(()=>v(`blog-post-${m.value}`,()=>I(m.value),{watch:[m]})),t=await t,s(),t);if(!e.value)throw w({statusCode:404,statusMessage:"Post Not Found",fatal:!0});const{data:y}=([t,s]=g(()=>v("locations",()=>L())),t=await t,s(),t),{data:D}=([t,s]=g(()=>v("navigation",()=>N())),t=await t,s(),t),u=n(()=>`${l}/blog/${e.value.slug}`),p=n(()=>
1{if(!e.value?.publish_at)return"";const a=new Date(e.value.publish_at);return isNaN(a.getTime())?"":a.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}),E={"best-team-outing-dc":"5 Reasons Beat The Bomb DC Is the Best Team Outing"},_=n(()=>E[e.value.slug]||e.value.seo_title||`${e.value.title} | Beat The Bomb`),h=n(()=>e.value.seo_description||e.value.excerpt||"Read the latest from the Beat The Bomb blog."),b=n(()=>{const a=e.value.featured_image_url;return a?a.startsWith("/")?`${l}${a}`:a:`${l}/media/wf/65fd93ce86eb362a00ab52e9_BTB%20Hero.jpeg`});A({title:_,description:h,keywords:e.value.seo_keywords||void 0,ogTitle:_,ogDescription:h,ogImage:b,ogUrl:u,ogType:"article",ogSiteName:"Beat The Bomb",twitterCard:"summary_large_image",twitterTitle:_,twitterDescription:h,twitterImage:b}),B({link:[{rel:"canonical",href:u},...e.value.featured_image_url?[{rel:"preload",as:"image",href:e.value.featured_image_url,fetchpriority:"high",tagPriority:-95}]:[]]});const k={"@context":"https://schema.org","@type":"BlogPosting",headline:e.value.title,image:b.value,datePublished:e.value.publish_at,...e.value.updatedAt?{dateModified:e.value.updatedAt}:{},...e.value.author_name?{author:{"@type":"Person",name:e.value.author_name}}:{},publisher:{"@type":"Organization",name:"Beat The Bomb",logo:{"@type":"ImageObject",url:`${l}/media/wf/67d0ac1e54f7f64e9d937a08_bomb_logo%20256x256.png`}},mainEntityOfPage:{"@type":"WebPage","@id":u.value}},$={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${l}/`},{"@type":"ListItem",position:2,name:"Blog",item:`${l}/blog`},{"@type":"ListItem",position:3,name:e.value.title,item:u.value}]};return B({script:[{type:"application/ld+json",innerHTML:JSON.stringify(k)},{type:"application/ld+json",innerHTML:JSON.stringify($)}]}),(a,te)=>(c(),r("div",R,[T(O,{locations:o(y)},null,8,["locations"]),i("main",null,[i("article",V,[i("div",F,[i("div",U,[i("header",J,[i("h1",W,f(o(e).title),1),i("div",z,[o(e).author_name?(c(),r("span",G,f(o(e).author_name),1)):d("",!0),o(e).author_name&&p.value?(c(),r("span",q," · ")):d("",!0),p.value?(c(),r("span",K,f(p.value),1)):d("",!0)])]),o(e).featured_image_url?(c(),r("img",{key:0,src:o(e).featured_image_url,alt:o(e).title,loading:"eager",fetchpriority:"high",class:"blog_post-image"},null,8,Q)):d("",!0),i("div",{class:"blog_post-content",innerHTML:o(e).content},null,8,X)])])])]),T(C,{locations:o(y),navigation:o(D)},null,8,["locations","navigation"])]))}}),ne=j(Y,[["__scopeId","data-v-a7d0b821"]]);export{ne 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.