PageSourceSearch

https://www.tvmainfranken.de/wp-content/themes/cmms-theme-neue_welle/assets/dist/1.108/Countdown.js

js tvmainfranken.de collected 2026-10-02 17:20:13 UTC 3,732 bytes, 1 lines download raw bytes

1import{C as B}from"./app.js";import"./swiper.js";const M=window.Vue.createVNode,a=window.Vue.openBlock,u=window.Vue.createElementBlock,d=window.Vue.createCommentVNode,c=window.Vue.toDisplayString,e=window.Vue.createElementVNode,D=window.Vue.normalizeClass,N={key:0,class:"countdown__background"},S={class:"countdown__overlay"},E={class:"countdown__counter"},I={key:0,class:"countdown__counter__entry"},T={class:"countdown__counter__entry__value"},R={key:1,class:"countdown__counter__entry"},z={class:"countdown__counter__entry__value"},U={key:2,class:"countdown__counter__entry"},$={class:"countdown__counter__entry__value"},j={class:"countdown__counter__entry"},q={class:"countdown__counter__entry__value"},L={class:"countdown__text"},O={key:0,class:"countdown__text__headline"},A={key:1,class:"countdown__text__description"},F={class:"button__label"},G={class:"button__text"},H={class:"button__label"},J={class:"button__text"},f=window.Vue.computed,K=window.Vue.onMounted,P=window.Vue.onUnmounted,p=window.Vue.ref,X={__name:"Countdown",props:{element:{type:Object,required:!1}},setup(s){const n=s,i=new Date("".concat(n.element.data.date," ").concat(n.element.data.time)),k=f(()=>n.element.data.button_text!==""&&n.element.data.button_url!==""),m=f(()=>{var l;return(l=n.element.data)==null?void 0:l.media_url}),o=p({days:0,hours:0,minutes:0,seconds:0});let _=null;const w=p(!1);function r(l){return String(l).padStart(2,"0")}function v(){const l=new Date().getTime();let t=i.getTime()-l;if(t<=0){o.value={days:0,hours:0,minutes:0,seconds:0},V();return}const h=Math.floor(t/(1e3*60*60*24));t-=h*(1e3*60*60*24);const y=Math.floor(t/(1e3*60*60));t-=y*(1e3*60*60);const b=Math.floor(t/(1e3*60));t-=b*(1e3*60);const C=Math.floor(t/1e3);o.value={days:h,hours:y,minutes:b,seconds:C}}K(()=>{i.getTime()-Date.now()<=0?o.value={days:0,hours:0,minutes:0,seconds:0}:(v(),_=setInterval(v,1e3))}),P(()=>{_&&(clearInterval(_),_=null)});const V=()=>{if(_&&(clearInterval(_),_=null),n.element.data.reload_page){window.location.reload();return}if(n.element.data.redirect_url!==""&&n.element.data.redirect_button_text===""){window.location.href=n.element.data.redirect_url;return}n.element.data.redirect_button_text!==""&&(w.value=!0)},g=()=>{n.element.data.button_url&&(window.location.href=n.element.data.button_url)},x=()=>{n.element.data.button_url&&(window.location.href=n.element.data.button_url)};return(l,t)=>(a(),u("div",{class:D(["element",s.element.type,"countdown",m.value?"--background":""])},[m.value?(a(),u("div",N,[M(B,{image:{src:s.element.data.media_url},fill:""},null,8,["image"])])):d("",!0),e("div",S,[e("div",E,[o.value.days>0?(a(),u("div",I,[e("span",T,c(r(o.value.days)),1),t[0]||(t[0]=e("span",{class:"countdown__counter__entry__label"},"Tage",-1))])):d("",!0),o.value.hours>0||o.value.days>0?(a(),u("div",R,[e("span",z,c(r(o.value.hours)),1),t[1]||(t[1]=e("span",{class:"countdown__counter__entry__label"},"Stunden",-1))])):d("",!0),o.value.minutes>0||o.value.hours>0||o.value.days>0?(a(),u("div",U,[e("span",$,c(r(o.value.minutes)),1),t[2]||(t[2]=e("span",{class:"countdown__counter__entry__label"},"Minuten",-1))])):d("",!0),e("div",j,[e("span",q,c(r(o.value.seconds)),1),t[3]||(t[3]=e("span",{class:"countdown__counter__entry__label"},"Sekunden",-1))])]),e("div",L,[s.element.data.title?(a(),u("h3",O,c(s.element.data.title),1)):d("",!0),s.element.data.description?(a(),u("p",A,c(s.element.data.description),1)):d("",!0),k.value?(a(),u("button",{key:2,class:"button",onClick:g},[e("span",F,[e("span",G,c(s.element.data.button_text),1)])])):d("",!0),w.value?(a(),u("button",{key:3,class:"button",onClick:x},[e("span",H,[e("span",J,c(s.element.data.redirect_button_text),1)])])):d("",!0)])])],2))}};export{X 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.