1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3282],{73282:function(e,t,s){s.r(t),s.d(t,{CountDownSale:function(){return u}});var l=s(57437),n=s(10910),a=s(66648),i=s(2265);let u=e=>{let{dailySale:t}=e,s=new Date(null==t?void 0:t.end_date).getTime(),u=new Date(null==t?void 0:t.start_date).getTime(),[r,c]=(0,i.useState)(o());function o(){let e;let t=new Date().getTime(),l="Kết th\xfac";u>t?(e=u-t,l="Bắt Äầu"):(e=s-t,l="Kết th\xfac");let n=Math.floor(e/864e5),a=Math.floor(e%864e5/36e5),i=Math.floor(e%36e5/6e4),r=Math.floor(e%6e4/1e3);return e<0?{timeLeft:0,days:0,hours:0,minutes:0,seconds:0}:{timeLeft:e,days:n,hours:a,minutes:i,seconds:r,title:l}}return((0,i.useEffect)(()=>{let e=setInterval(()=>{c(o())},1e3);return()=>clearInterval(e)},[s]),t)?r.timeLeft<=0?null:(0,l.jsxs)("div",{className:"tag-time",children:[(0,l.jsx)(a.default,{src:"/assets/images/ic-time-sale.png",alt:"icon sale",width:512,height:512,className:"icon"}),(0,l.jsxs)("p",{className:"tag-time-ct t12 fw-6",children:[(0,l.jsxs)("span",{className:"txt",children:[null==r?void 0:r.title,": "]}),(0,l.jsxs)("span",{className:"time",children:[!!(null==r?void 0:r.days)&&(0,l.jsxs)("span",{children:[" ",(0,n.Vh)(null==r?void 0:r.days)," NgaÌy - "]}),(0,n.Vh)(null==r?void 0:r.hours),":",(0,n.Vh)(null==r?void 0:r.minutes),":",(0,n.Vh)(null==r?void 0:r.seconds)]})]})]}):(0,l.jsx)(l.Fragment,{})}}}]);
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.