PageSourceSearch

https://bytemonk-gcect.web.app/assets/CountdownTimer-CpsaAK6i.js

js bytemonk-gcect.web.app collected 2026-10-03 12:19:43 UTC 2,878 bytes, 2 lines download raw bytes

1import{r as d,j as e}from"./vendor-react-7bqd9trT.js";const x=l=>{const r=new Date(l).getTime()-new Date().getTime();return r<=0?null:{days:Math.floor(r/(1e3*60*60*24)),hours:Math.floor(r/(1e3*60*60)%24),minutes:Math.floor(r/1e3/60%60),seconds:Math.floor(r/1e3%60)}},j=({targetDate:l,showExpiredMessage:r=!1,expiredMessage:u="Karmatek is Live!"})=>{const[a,m]=d.useState(x(l));if(d.useEffect(()=>{const s=setInterval(()=>{m(x(l))},1e3);return()=>clearInterval(s)},[l]),!a)return r?e.jsx("div",{className:"text-center text-white fw-bold fs-4",children:u}):null;const i=75,t=i/2,n=32,c=5,p=[{max:365,value:a.days,label:"DAYS",key:"days"},{max:24,value:a.hours,label:"HOURS",key:"hours"},{max:60,value:a.minutes,label:"MINS",key:"minutes"},{max:60,value:a.seconds,label:"SECS",key:"seconds"}];return e.jsx("div",{className:"d-flex justify-content-center align-items-center gap-2 gap-md-3 mt-4 flex-wrap",style:{fontFamily:"'Space Mono', 'Courier New', monospace"},children:p.map((s,o)=>{const f=2*Math.PI*n,h=s.value/s.max,g=f*(1-h);return e.jsxs("div",{className:"position-relative d-flex flex-column align-items-center",children:[e.jsxs("svg",{width:i,height:i,viewBox:`0 0 ${i} ${i}`,style:{filter:"drop-shadow(0 0 15px rgba(125, 249, 255, 0.3))"},children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:`ringGradient${o}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[e.jsx("stop",{offset:"0%",stopColor:"#7df9ff",stopOpacity:"0.8"}),e.jsx("stop",{offset:"50%",stopColor:"#b78bff",stopOpacity:"0.8"}),e.jsx("stop",{offset:"100%",stopColor:"#7df9ff",stopOpacity:"0.8"})]}),e.jsxs("filter",{id:`glow${o}`,children:[e.jsx("feGaussianBlur",{stdDeviation:"2",result:"coloredBlur"}),e.jsxs("feMerge",{children:[e.jsx("feMergeNode",{in:"coloredBlur"}),e.jsx("feMergeNode",{in:"SourceGraphic"})]})]})]}),e.jsx("circle",{cx:t,cy:t,r:n,fill:"none",stroke:"rgba(125, 249, 255, 0.15)",strokeWidth:c}),e.jsx("circle",{cx:t,cy:t,r:n,fill:"none",stroke:`url(#ringGradient${o})`,strokeWidth:c,strokeLinecap:"round",strokeDasharray:f,strokeDashoffset:g,filter:`url(#glow${o})`,style:{transform:"rotate(-90deg)",transformOrigin:"center",transition:"stroke-dashoffset 1s linear",animation:`ringRotate${o} ${60-o*10}s linear infinite`}}),e.jsx("circle",{cx:t,cy:t,r:26,fill:"rgba(0, 0, 0, 0.4)",stroke:"rgba(125, 249, 255, 0.3)",strokeWidth:"2",style:{backdropFilter:"blur(10px)"}}),e.jsx("text",{x:t,y:t+7,textAnchor:"middle",fill:"#ffffff",fontSize:"22",fontWeight:"700",letterSpacing:"1",style:{textShadow:"0 0 10px rgba(125, 249, 255, 0.8)"},children:String(s.value).padStart(2,"0")})]}),e.jsx("div",{className:"mt-1 text-center",style:{fontSize:"clamp(0.65rem, 1.5vw, 0.75rem)",color:"rgba(125, 249, 255, 0.9)",fontWeight:600,letterSpacing:"0.15em",textTransform:"uppercase"},children:s.label})]},s.label)})})};export{j as default};
2//# sourceMappingURL=CountdownTimer-CpsaAK6i.js.map

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.