PageSourceSearch

https://herzlich.app/assets/CountDown-C4ZpX8J4.js

js herzlich.app collected 2026-10-02 16:01:58 UTC 3,026 bytes, 1 lines download raw bytes

1import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{d as t}from"./animation-BmfWTHNX.js";import{_ as n,k as r,w as i,y as a}from"./IEntityCollection-EELl0FHm.js";import{n as o,t as s}from"./getRoundingMethod-B6IiFHdL.js";import{n as c,r as l,t as u}from"./differenceInSeconds-CKkZNhc5.js";import{t as d}from"./differenceInHours-VsMukD3n.js";import{Pt as f,mn as p}from"./mui-C6SoQiqU.js";import{r as m}from"./vendor-BFRf0H0a.js";function h(e,t,n){let[r,i]=a(n?.in,e,t);return r.getFullYear()-i.getFullYear()}function g(e,t,r){let[i,o]=a(r?.in,e,t),s=_(i,o),c=Math.abs(n(i,o));i.setDate(i.getDate()-s*c);let l=s*(c-Number(_(i,o)===-s));return l===0?0:l}function _(e,t){let n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function v(e,t,n){let i=l(e,t)/r;return s(n?.roundingMethod)(i)}function y(e,t,n){let[r,i]=a(n?.in,e,t),s=o(r,i),c=Math.abs(h(r,i));r.setFullYear(1584),i.setFullYear(1584);let l=s*(c-+(o(r,i)===-s));return l===0?0:l}function b(e,t){let[n,r]=a(e,t.start,t.end);return{start:n,end:r}}function x(e,t){let{start:n,end:r}=b(t?.in,e),a={},o=y(r,n);o&&(a.years=o);let s=i(n,{years:a.years}),l=c(r,s);l&&(a.months=l);let f=i(s,{months:a.months}),p=g(r,f);p&&(a.days=p);let m=i(f,{days:a.days}),h=d(r,m);h&&(a.hours=h);let _=i(m,{hours:a.hours}),x=v(r,_);x&&(a.minutes=x);let S=i(_,{minutes:a.minutes}),C=u(r,S);return C&&(a.seconds=C),a}var S=m(),C=e(t(),1),w=p(),T=e=>{let t=(0,S.c)(34),{endDate:n,fontStyle:r,typographyVariant:i}=e,a;t[0]===r?a=t[1]:(a=r===void 0?{}:r,t[0]=r,t[1]=a);let o=a,s=i===void 0?`h4`:i,c;t[2]===n?c=t[3]:(c=x({end:n,start:new Date}),t[2]=n,t[3]=c);let[l,u]=(0,C.useState)(c),d,p;t[4]===n?(d=t[5],p=t[6]):(d=()=>{let e=window.setInterval(()=>{u(x({end:n,start:new Date}))},1e3);return()=>{window.clearInterval(e)}},p=[n],t[4]=n,t[5]=d,t[6]=p),(0,C.useEffect)(d,p);let{seconds:m,minutes:h,hours:g,days:_}=l,v=m===void 0?0:m,y=h===void 0?0:h,b=g===void 0?0:g,T=_===void 0?0:_,D;t[7]===o?D=t[8]:(D={fontWeight:300,...o},t[7]=o,t[8]=D);let O=D,k;t[9]!==T||t[10]!==O||t[11]!==s?(k=T>0&&(0,w.jsxs)(f,{variant:s,style:O,children:[E(T),`:`]}),t[9]=T,t[10]=O,t[11]=s,t[12]=k):k=t[12];let A;t[13]!==b||t[14]!==O||t[15]!==s?(A=b>0&&(0,w.jsxs)(f,{variant:s,style:O,children:[E(b),`:`]}),t[13]=b,t[14]=O,t[15]=s,t[16]=A):A=t[16];let j;t[17]===y?j=t[18]:(j=E(y),t[17]=y,t[18]=j);let M;t[19]!==O||t[20]!==j||t[21]!==s?(M=(0,w.jsxs)(f,{variant:s,style:O,children:[j,`:`]}),t[19]=O,t[20]=j,t[21]=s,t[22]=M):M=t[22];let N;t[23]===v?N=t[24]:(N=E(v),t[23]=v,t[24]=N);let P;t[25]!==O||t[26]!==N||t[27]!==s?(P=(0,w.jsx)(f,{variant:s,style:O,children:N}),t[25]=O,t[26]=N,t[27]=s,t[28]=P):P=t[28];let F;return t[29]!==k||t[30]!==A||t[31]!==M||t[32]!==P?(F=(0,w.jsxs)(`div`,{className:`flex row `,children:[k,A,M,P]}),t[29]=k,t[30]=A,t[31]=M,t[32]=P,t[33]=F):F=t[33],F},E=e=>String(e).padStart(2,`0`);export{T 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.