1import{d as v,r as s,o as _,a as u,b as d,s as g,t as c,F as y,e as x,al as b,f as D,w as P,g as w,h as L,am as V,i as B,j as n}from"./index-bQnwBNeX.js";import{f as F,g as C,b as I}from"./index-DooJyAWc.js";const M={class:"flex flex-col justify-start items-center gap-7 pt-20 sm:pt-30 pb-10 px-5"},N={class:"font-strikerz text-6xl uppercase text-center"},Y={class:"uppercase"},A={key:0,class:"flex flex-col items-center gap-7"},H=v({__name:"ProbabilityPackDatesView",setup(R){const f=b(),r=s(!0),p=s(null),t=s(""),m=s(""),l=s([]);async function k(){try{r.value=!0,p.value=null;const a=f.params.id;t.value=Array.isArray(a)?a[0]:a;const o=(await F()).find(i=>i.id.toString()===t.value);o&&(m.value=C(o.name));const e=await I();e!=null&&e.packs[t.value]&&(l.value=e.packs[t.value].revisions.reverse())}catch(a){p.value=a.message||"Failed to load pack dates"}finally{r.value=!1}}return _(()=>{k()}),(a,h)=>{const o=B("RouterLink");return n(),u("div",M,[d("h1",N,c(m.value),1),d("p",Y,c(a.$t("packsInUFLPage.selectADate")),1),!r.value&&l.value.length>0?(n(),u("div",A,[(n(!0),u(y,null,x(l.value,(e,i)=>(n(),D(o,{key:e.hash,to:{name:"ProbabilityPack",params:{id:t.value},query:{pack_hash:e.hash}},class:"text-base leading-5 underline text-center"},{default:P(()=>[w(c(e.timestamp?L(V)(new Date(e.timestamp),"DD.MM.YYYY HH:mm:ss"):"")+" "+c(i===0?`(${a.$t("packsInUFLPage.currentVersion")})`:""),1)]),_:2},1032,["to"]))),128))])):g("",!0)])}}});export{H 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.