import{m as P,t as Q,s as d,b as z,p as G,q as n,o as K,r as U,n as W,_ as X,y as Y}from"./CJ3Pvzvs.js";import{_ as Z}from"./CTm7uQ0s.js";import{_ as ee}from"./SRyQ3GrM.js";import{_ as se}from"./ecm935Yh.js";import{_ as te}from"./DosLq622.js";import{m as oe}from"./CgDLbCUm.js";import{u as ne}from"./g-9Gx0R_.js";import{d as ae,r as ie,g as ce,o as C,b as V,a as t,f as o,w as _,u as e,F as re,m as le,t as r,q as j}from"./3LwgCWkS.js";import"./B82URuPQ.js";import"./L7O7UxXI.js";import"./BTWky2G2.js";import"./DlAUqK2U.js";const A=(l,u,c)=>{const{t:i}=P();return l&&u?`${i("volume")} ${l}, ${i("issue")} ${u}`:c},ue={class:"bg-primary-800 py-7"},me={class:"container mx-auto max-w-screen-xl p-4 text-white"},de={class:"flex gap-4 items-center"},_e={key:0,class:"group relative h-full"},pe={class:"flex-1"},he={class:"mb-0 text-md font-light"},fe={class:"text-2xl"},ve={class:"text-xl text-gray-200"},xe={class:"mt-3 flex items-center"},$e={class:"flex-1"},ge={class:"container mx-auto max-w-screen-xl flex"},we={class:"flex-1 py-10 px-4 me-7"},ye={class:"min-h-screen"},be={class:"w-1/4 py-4 hidden lg:block overflow-hidden"},Le=ae({__name:"[...slug]",setup(l){var h,f,v,x;const c=Q().params.slug,{id:i,currentIssueId:B}=d(z()),{issue:R,currentIssue:q}=d(ne()),F=ie(window==null?void 0:window.location.origin),s=ce(()=>c[0]==B.value?q.value:R.value),L=G(),{title:m,description:p,keywords:M}=d(L);return n().set({title:s.value&&s.value.id==c[0]?"Archives - "+A((h=s.value)==null?void 0:h.volume,(f=s.value)==null?void 0:f.issueNumber,(v=s.value)==null?void 0:v.issueType):"Archives",description:p.value,keywords:((x=M.value)==null?void 0:x.split(", "))||[]}),K({title:`${n().title} - ${m.value}`,meta:[{name:"description",content:n().description},{name:"keywords",content:`${n().keywords}`}]}),U({title:`${n().title} - ${m.value}`,ogTitle:`${n().title} - ${m.value}`,description:n().description??p.value,keywords:`${n().keywords}`}),(a,ke)=>{const D=W,$=X,g=Y,E=Z,H=ee,J=se,O=te;return C(),V(re,null,[t("div",ue,[t("div",me,[o(H,null,{default:_(()=>{var w,y,b,k,T,I,N,S;return[t("div",de,[e(s)?(C(),V("div",_e,[o(D,{class:"m-auto object-cover w-32 h-full",src:`images/new/${e(i)}/issues/${(w=e(s))==null?void 0:w.id}.jpg`},null,8,["src"])])):le("",!0),t("div",pe,[t("div",he,r(a.$t("archives")),1),t("h1",fe,r(("issueText"in a?a.issueText:e(A))((y=e(s))==null?void 0:y.volume,(b=e(s))==null?void 0:b.issueNumber,(k=e(s))==null?void 0:k.issueType)),1),t("h2",ve,r(("monthText"in a?a.monthText:e(oe))((T=e(s))==null?void 0:T.year,(I=e(s))==null?void 0:I.month)),1),t("div",xe,[o(g,{to:"/archives",class:"text-sm text-white/75"},{default:_(()=>[o($,{name:"ph:arrow-left",class:"me-2"}),j(" "+r(a.$t("backToArchives")),1)]),_:1}),o(g,{to:`/pdf/${e(i)}/issues/${(N=e(s))==null?void 0:N.id}.pdf`,class:"ms-10 text-sm text-white/75",target:"_blank"},{default:_(()=>[o($,{name:"material-symbols:cloud-download-rounded",class:"me-2"}),j(" "+r(a.$t("downloadIssue")),1)]),_:1},8,["to"])])]),o(E,{value:`${e(F)}/pdf/${e(i)}/issues/${(S=e(s))==null?void 0:S.id}.pdf`,height:"80",class:"opacity-90 bg-primary-900 p-2"},null,8,["value"])])]}),_:1})])]),t("div",$e,[t("div",ge,[t("div",we,[t("div",ye,[o(J,{"issue-id":e(c)[0]},null,8,["issue-id"])])]),t("div",be,[o(O)])])])],64)}}});export{Le as default};