1import{_ as m,o as r,c as n,B as d}from"./DikjsCuG.js";const i=15e3,f={props:{date:{type:Number,default:0},english:{type:Boolean,required:!0},datePart:{type:Boolean,default:!0},timePart:{type:Boolean,default:!0},updateText:{type:Boolean,default:!1},relative:{type:Boolean,default:!1},refreshToday:{type:Boolean,default:!1}},data(){return{dateRefresh:null,timeoutId:null}},computed:{dateLocale(){let t="";if(this.$dayjs.locale(this.english?"en":"hu"),this.relative){const h=this.$dayjs().unix()-this.date,e=this.$dayjs.unix(this.date),s=Math.max(Math.floor(h/60),0);s<60?t+=s===0?this.english?"now":"most":s+" "+(this.english?"minute"+(s===1?"":"s")+" ago":"perce"):e.format("YYYYMMDD")===this.$dayjs().format("YYYYMMDD")?t+=this.english?"today "+e.format("hh:mm A"):"ma "+e.format("HH:mm"):e.format("YYYY")===this.$dayjs().format("YYYY")?t+=this.english?e.format("DD. MMMM â hh:mm A"):e.format("MMMM D. â HH:mm"):t+=this.english?e.format("MMMM DD. YYYY. â hh:mm A"):e.format("YYYY. MMMM D. â HH:mm")}else this.updateText&&(t="("+(this.english?"updated at":"frissÃtve")+": "),this.datePart&&(t+=this.english?this.$dayjs.unix(this.date).format("MMMM DD. YYYY."):this.$dayjs.unix(this.date).format("YYYY. MMMM D.")),this.datePart&&this.timePart&&(t+=" â "),this.timePart&&(t+=this.english?this.$dayjs.unix(this.date).format("hh:mm A"):this.$dayjs.unix(this.date).format("HH:mm")),this.updateText&&(t+=")");return t}},mounted(){this.relative&&(Math.floor(this.$dayjs().unix()-this.date/60)<60||this.refreshToday)&&(this.timeoutId=setTimeout(this.update,i))},beforeUnmount(){this.timeoutId!==null&&clearTimeout(this.timeoutId)}
1,methods:{update(){this.$dayjs.locale(this.english?"en":"hu");const t=this.$dayjs.unix(this.date),a=Math.floor((this.$dayjs().unix()-this.date)/60);a<60?(this.dateRefresh=a===0?this.english?"now":"most":a+" "+(this.english?"minute"+(a===1?"":"s")+" ago":"perce"),this.timeoutId=setTimeout(this.update,i)):t.format("YYYYMMDD")===this.$dayjs().format("YYYYMMDD")?(this.dateRefresh=this.english?"today "+t.format("hh:mm A"):"ma "+t.format("HH:mm"),this.refreshToday&&(this.timeoutId=setTimeout(this.update,i))):t.format("YYYY")===this.$dayjs().format("YYYY")?this.dateRefresh=this.english?t.format("DD. MMMM â hh:mm A"):t.format("MMMM D. â HH:mm"):this.dateRefresh=this.english?t.format("MMMM DD. YYYY. â hh:mm A"):t.format("YYYY. MMMM D. â HH:mm")}}};function l(t,a,h,e,s,o){return r(),n("span",{key:s.dateRefresh},d(s.dateRefresh===null?o.dateLocale:s.dateRefresh),1)}const Y=Object.assign(m(f,[["render",l]]),{__name:"DateLocale"});export{Y 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.