PageSourceSearch

https://verpex.com/_nuxt/BMBIyV2t.js

js verpex.com collected 2026-10-02 02:24:03 UTC 2,097 bytes, 1 lines download raw bytes

1import{d as h,c as b,W as o,D as k,aw as M,e as a,a1 as y,a2 as w,i as v,p as r,o as n,h as i,t as p,g as T}from"./_NciNGW1.js";const I=globalThis.setInterval,_={key:0,class:"px-1"},j=h({__name:"globalCountdownTimer",props:{endDate:{},containerClass:{default:""},countdownClass:{default:""},digitClass:{default:""},labelClass:{default:""},onExpire:{type:Function,default:void 0},alternativeDesign:{type:Boolean,default:!1}},setup(l){const s=l,C=b(()=>s.containerClass||s.countdownClass||"justify-center"),c=o(0),u=o(0),d=o(0),m=o(0);let t=null;const g=b(()=>[{value:String(c.value).padStart(2,"0"),label:"countdownDays"},{value:String(u.value).padStart(2,"0"),label:"countdownHours"},{value:String(d.value).padStart(2,"0"),label:"countdownMinutes"},{value:String(m.value).padStart(2,"0"),label:"countdownSeconds"}]),x=()=>{const f=new Date().getTime(),e=new Date(s.endDate).getTime()-f;if(e<=0){c.value=0,u.value=0,d.value=0,m.value=0,t&&(clearInterval(t),t=null),s.onExpire&&s.onExpire();return}c.value=Math.floor(e/(1e3*60*60*24)),u.value=Math.floor(e%(1e3*60*60*24)/(1e3*60*60)),d.value=Math.floor(e%(1e3*60*60)/(1e3*60)),m.value=Math.floor(e%(1e3*60)/1e3)};return k(()=>{x(),t=I(x,1e3)}),M(()=>{t&&clearInterval(t)}),(f,D)=>(n(),a("div",{class:r(["flex items-center gap-2 md:gap-4",v(C)])},[l.alternativeDesign?(n(!0),a(y,{key:1},w(v(g),(e,S)=>(n(),a("div",{key:e.label,class:"flex flex-col items-center"},[i("div",{class:r(["flex items-center justify-center font-body font-bold text-[16px] tabular-nums",l.digitClass])},[S>0?(n(),a("span",_,":")):T("",!0),i("span",null,p(e.value),1)],2)]))),128)):(n(!0),a(y,{key:0},w(v(g),e=>(n(),a("div",{key:e.label,class:"flex flex-col items-center"},[i("div",{class:r(["flex min-w-[3rem] items-center justify-center rounded-lg px-3 py-2 font-body font-bold text-[25px] tabular-nums md:min-w-[4rem] md:px-4 md:py-3",l.digitClass])},p(e.value),3),i("span",{class:r(["mt-1 font-body text-xs font-medium capitalize tracking-wide",l.labelClass])},p(f.$t(e.label)),3)]))),128))],2))}}),E=Object.assign(j,{__name:"GlobalCountdownTimer"});export{E 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.