PageSourceSearch

https://dtvnieuws.nl/_nuxt/B8dwWSXk.js

js dtvnieuws.nl collected 2026-09-24 19:32:59 UTC 3,473 bytes, 1 lines download raw bytes

1import{l as e}from"./B36yyN6n.js";import{m as t}from"./C8B4ThWv.js";import{_ as n}from"./dGABZGx-.js";var r={newMethods:{showTime(t){if(!t)return`[UNKNOWN]`;let{$dateFns:n}=e(),r=t.getUnixMillis(),i=new Date(r);return n.format(i,`HH:mm`)},showDate(t){if(!t)return`[UNKNOWN]`;let{$dateFns:n}=e(),r=t.getUnixMillis(),i=new Date(r);return n.format(i,`dd-MM-yyyy`)},showDateWithDay(t){if(!t)return`[UNKNOWN]`;let{$dateFns:n}=e(),r=t.getUnixMillis(),i=new Date(r),a=n.format(i,`EEE d LLL`);return a=a.charAt(0).toUpperCase()+a.slice(1),a=a.slice(0,-1),a},showDay(t){if(!t)return`[UNKNOWN]`;let{$dateFns:n}=e(),r=t.getUnixMillis(),i=new Date(r);return n.format(i,`iiii`)},showRelative(t){if(!t)return`Niet gepubliceerd`;let{$dateFns:n}=e(),r=t.getUnixMillis(),i=new Date(r);return n.formatRelative(i,new Date)},showRelativeWithReadableOther(t){if(!t)return`[UNKNOWN]`;let{$dateFns:r}=e(),i=t.getUnixMillis(),a=new Date(i),o=n.formatRelative;n.formatRelative=function(e){return e===`other`?`EEEE d MMMM`:o.call(this,e)};let s=r.formatRelative(a,new Date);return n.formatRelative=o,s},isLive:function(t,n,r){let{$dateFns:i}=e(),a=t.getUnixMillis(),o=new Date(a);if(i.isSameDay(new Date,o)){let e=new Date(a);e.setHours(n.hour),e.setMinutes(n.minute),e.setSeconds(n.second);let t=new Date(a);if(t.setHours(r.hour),t.setMinutes(r.minute),t.setSeconds(r.second),i.isWithinInterval(new Date,{start:e,end:t}))return!0}}},methods:{smallDate:function(e){switch(e=new Date(e.getUnixMillis()),e.getDay()){case 0:return`zo`;case 1:return`ma`;case 2:return`di`;case 3:return`wo`;case 4:return`do`;case 5:return`vr`;case 6:return`za`}},showTime:function(e){let t=e.getUnixMillis(),n=new Date(t);return this.$dateFns.format(n,`HH:mm`)},showDate:function(e){let t=e.getUnixMillis(),n=new Date(t);return this.$dateFns.format(n,`dd-MM-yyyy`)},showEventDate:function(e){let t=e.getUnixMillis(),n=new Date(t);return this.$dateFns.format(n,`d MMMM yyyy`)},showDateWithDay:function(e){let t=e.getUnixMillis(),n=new Date(t),r=this.$dateFns.format(n,`EEE d LLL`);return r=r.charAt(0).toUpperCase()+r.slice(1),r=r.slice(0,-1),r},showDateRange:function(e,t,n=!1){let r=`dd LLL${n?`L`:``}`,i=new Date(e.getUnixMillis()),a=new Date(t.getUnixMillis()),o=this.$dateFns.format(i,r),s=this.$dateFns.format(a,r),c=o===s?o:`${o} - ${s}`;return o!==s&&this.$dateFns.getMonth(i)===this.$dateFns.getMonth(a)&&(c=`${this.$dateFns.format(i,`dd`)} - ${this.$dateFns.format(a,r)}`),c},isLive:function(e,t,n){let r=e.getUnixMillis(),i=new Date(r);if(this.$dateFns.isSameDay(new Date,i)){let e=new Date(r);e.setHours(t.hour),e.setMinutes(t.minute),e.setSeconds(t.second);let i=new Date(r);if(i.setHours(n.hour),i.setMinutes(n.minute),i.setSeconds(n.second),this.$dateFns.isWithinInterval(new Date,{start:e,end:i}))return!0}},showDay:function(e){let t=e.getUnixMillis(),n=new Date(t);return this.$dateFns.format(n,`iiii`)},showRelative:function(e){if(!e)return`Niet gepubliceerd`;let t=e.getUnixMillis(),n=new Date(t);return this.$dateFns.formatRelative(n,new Date)},showTimeBetween:function(e,t){let n=new Date(e.getUnixMillis()),r=new Date(t.getUnixMillis());return this.$dateFns.formatDistance(n,r)},showTimePast:function(e){let t=new Date,n=new Date(e.getUnixMillis());return this.$dateFns.formatDistance(n,t,{addSuffix:!0})},mostReadFromDateTime:function(){let e=new Date;return new t(e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()).minusDays(2).toStartOfDay()}}};export{r as t};

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.