1import{u as W,a as X,b as Y,c as j,d as q,e as F,p as Z,I as M,n as R,_ as tt}from"./CsX76yAE.js";import{_ as at}from"./DISyIB9Y.js";import{l as et,o as st}from"./B3hQc8YD.js";import{E as ot}from"./CU-9cyxP.js";import{k as lt,ab as V,l as _,_ as nt,J as c,N as z,u as e,L as b,Q as y,X as s,E as v,M as E,a4 as rt,a2 as G,Y as h,F as H,W as ct}from"./DgrxDae8.js";import"./BTc6pZ_Z.js";import"./DASuo0Ro.js";const it={class:"blog-post-container"},ut=["onClick"],dt={class:"back-text"},pt={class:"blog-post"},mt={class:"blog-post-content padded"},gt={class:"blog-post-date"},ft=["innerHTML"],_t={class:"blog-post-tags"},bt={class:"tag"},Bt=lt({__name:"[post-slug]",async setup(vt){var $,w,x,B,N,A;let l,m;const r=W(),k=X(),P=Y(),L=j(),g=P.params.postslug,{data:t}=([l,m]=V(async()=>F(`blog-post-${g}-${r.locale.value}-content`,async()=>{try{return await k.$cms.fetchOne("blog-posts",g,{populate:["featuredImage","tags","author","seo","seo.metaImage"],locale:r.locale.value})}catch(a){if(a.message==="No data")try{(await k.$cms.fetchOne("blog-posts",g,{populate:["localizations"],locale:Z.value})).localizations.data.some(n=>n.attributes.locale===M.getLocaleForStrapi(r.locale.value)?(R(n.attributes.slug,{replace:!0}),!0):!1)||R(L("/blog"))}catch{}throw a}})),l=await l,m(),l),{data:J}=([l,m]=V(()=>F(`blog-post-${g}-${r.locale.value}-processed-content`,async()=>st(t.value.content))),l=await l,m(),l),K=_(()=>M.getLocaleForListrak(r.locale.value)),U=_(()=>t.value?new Date(t.value.publishedAt).toLocaleDateString(r.locale.value,{year:"numeric",month:"long",day:"numeric"}):""),Q=_(()=>{var a;return!t.value||!t.value.author?"Jackbox Games":(a=t.value.author.data)==null?void 0:a.attributes.name}),i=_(()=>{var u,o,n,f,d;if(!t.value)return;const a=(n=(o=(u=t.value)==null?void 0:u.featuredImage)==null?void 0:o.data)==null?void 0:n.attributes;return(d=(f=a==null?void 0:a.formats)==null?void 0:f.large)!=null&&d.url?a.formats.large.url:a==null?void 0:a.url});return q({title:`${($=t.value)==null?void 0:$.title}`,meta:[{name:"description",content:(x=(w=t.value)==null?void 0:w.seo)==null?void 0:x.metaDescription},{name:"og:title",content:(B=t.value)==null?void 0:B.title},{name:"og:description",content:(A=(N=t.value)==null?void 0:N.seo)==null?void 0:A.metaDescription},{name:"og:image",content:i}]}),et(),(a,u)=>{var d,C,I,D,T,O,S;const o=tt,n=at,f=nt("t");return c(),z(H,null,[e(i)?(c(),b(o,{key:0,class:"feature-blur-bg",src:e(i),alt:((d=e(t))==null?void 0:d.title)||""},null,8,["src","alt"])):y("",!0),s("div",it,[v(n,{to:e(L)("/blog"),class:"blog-post-link"},{default:E(({navigate:p})=>[s("div",{class:"blog-breadcrumb","aria-hidden":"",onClick:p},[v(o,{class:"fa fa-regular fa-circle-left",alt:a.$t("NAVBAR.BACK"),"aria-hidden":"",focusable:"false"},null,8,["alt"]),rt(s("span",dt,null,512),[[f,"BLOG.BACK_TO_BLOG"]])],8,ut)]),_:1},8,["to"]),s("div",pt,[e(i)?(c(),b(o,{key:0,src:`${e(i)}?format=auto`,alt:((C=e(t))==null?void 0:C.title)||"",class:"featured"},null,8,["src","alt"])):y("",!0),s("div",mt,[s("div",gt,[v(o,{class:"fa fa-regular fa-calendar-days",alt:"date posted","aria-hidden":"",focusable:"false"}),G(" "+h(e(U))+" | ",1),v(o,{class:"fa fa-regular fa-circle-user",alt:"author","aria-hidden":"",focusable:"false"}),G(" "+h(e(Q)),1)]),s("h1",null,h((I=e(t))==null?void 0:I.title),1),s("div",{class:"blog-post-body paragraph",innerHTML:e(J)},null,8,ft),(D=e(t))!=null&&D.mailingList?(c(),b(ot,{key:0,"subscriber-id":(T=e(t))==null?void 0:T.mailingList,"data-fields":[{name:"language",id:"4242",value:e(K)}],"button-text":a.$t("FORM.SUBMIT")},null,8,["subscriber-id","data-fields","button-text"])):y("",!0),s("div",_t,[(c(!0),z(H,null,ct((S=(O=e(t))==null?void 0:O.tags)==null?void 0:S.data,p=>(c(),b(n,{key:p.attributes.slug,to:e(L)(`/blog?tag=${p.attributes.slug}`)},{default:E(()=>[s("div",bt,h(p.attributes.tag),1)]),_:2},1032,["to"]))),128))])])])])],64)}}});export{Bt as default}; 2//# sourceMappingURL=CwohSOyX.js.map
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.