1import{d as g,o as l,b as d,m as D,t as f,q as h,r as _,v as M}from"./zYj6vDai.js";const k={class:"flex"},y={key:0,class:"ml-5 font-extralight italic"},w=g({__name:"date",props:{date:{type:Number,required:!0},skipTime:{type:Boolean,required:!1},updatedDate:{type:Number}},setup(u){const c=u,i=["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],m=M(()=>{const e=new Date(c.date*1e3),t=c.skipTime?"":" - "+e.getHours()+":"+(e.getMinutes()<10?"0":"")+e.getMinutes();return`${e.getDate()}. ${i[e.getMonth()]}. ${e.getFullYear()} ${t}`}),p=e=>{const t=new Date().valueOf(),n=new Date(e*1e3),s=Math.floor((t-e*1e3)/1e3/60/60/24),a=Math.floor((t-e*1e3)/1e3/60/60),o=Math.floor((t-e*1e3)/1e3/60),r=Math.floor((t-e*1e3)/1e3);if(r<60&&o===0&&a===0&&s===0)return r+" sek siden";if(o<60&&a===0&&s===0)return o+" min siden";if(a<24&&s===0)return a!==1?a+" timer siden":a+" time siden";if(s<2)return"I går";if(s>=2)return n.getFullYear()!==new Date(t).getFullYear()?+n.getDate()+". "+i[n.getMonth()]+". "+n.getFullYear():n.getDate()+". "+i[n.getMonth()]+". "+n.getFullYear()};return(e,t)=>(l(),d("span",k,[D("span",null,f(h(m)),1),u.updatedDate?(l(),d("span",y,"(Opd. "+f(p(u.updatedDate))+")",1)):_("",!0)]))}}),j=Object.assign(w,{__name:"Date"});export{j as _};
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.