1import{_ as g}from"./Card.fNrth1Ub.js";import{d as v,u as h,l as b,h as i,w,o as d,c as y,p as C,t as k,b as t,e as M,f as x,g as B}from"./entry.MIAtlCAp.js";import{u as D}from"./useAsyncStoryblok.AQxOu0z3.js";const N={id:"caseLatestUpdate"},R={class:"case-h2"},S=v({__name:"CaseLatestUpdate",props:{blok:Object},async setup(U){let a,c;const{t:m,locale:_}=h(),p=b(),s=i(null),e=i(null),f=B(),r=["case.relatedDocuments","case.relatedMedia"],n=([a,c]=w(()=>D(`case/${p.params.slug}`,{version:f.public.branchName==="production"?"published":"draft",resolve_relations:r,language:_.value},{resolveRelations:r})),a=await a,c(),a);if(n.value&&n.value.content&&(s.value=n.value.content),s.value.relatedMedia&&s.value.relatedMedia.length>0){const l=s.value.relatedMedia.sort((u,o)=>new Date(o.content.date).getTime()-new Date(u.content.date).getTime());e.value=l[0]}return(l,u)=>{const o=g;return d(),y("div",N,[C("h2",R,k(t(m)("case.latestUpdate")),1),t(e)&&t(e).content?(d(),M(o,{key:0,article:t(e).content,slug:t(e).slug,narrow:""},null,8,["article","slug"])):x("",!0)])}}});export{S 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.