1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4113],{44113:function(t,e,o){o.r(e),o.d(e,{CountDownTimer:function(){return h}});var n=o(3827),c=o(64090),a=o(74404),r=o.n(a),s=o(86183),l=o(91328),u=o(27579),i=o(4527),f=o(84024);let h=t=>{let{deliveryTimeLeft:e}=t,[o,a]=(0,c.useState)(null),[r,h]=(0,c.useState)(null),m=(0,c.useCallback)(t=>{t>0?(clearTimeout(r),a((0,f.mC)(t)),h(setTimeout(()=>{m(t-1e3)},1e3))):clearTimeout(r)},[]);return(0,c.useEffect)(()=>{let t=(0,i.$O)(null==e?void 0:e.currentTimestamp),o=(0,i.$O)(null==e?void 0:e.cutoffTimestamp);if(!t||!o)return;let n=t.getTime(),c=o.getTime();r&&clearTimeout(r),m(c-n)},[null==e?void 0:e.currentTimestamp,null==e?void 0:e.cutoffTimestamp]),o&&(0,n.jsxs)("div",{className:"flex items-center justify-center gap-4 bg-blue-500 py-8 text-center text-12 md:bg-white-900 md:py-0 md:pb-8",children:[(0,n.jsx)(s.default,{src:"/icons/clock.svg",width:16,height:16,isPriority:!1,sizes:"10vw",alt:"search icons"}),(0,n.jsx)(l.default,{Tag:"p",classes:"text-12 font-500 text-grey-500",children:u._G.TIME_LEFT_TO_GET_DELIVERED}),(0,n.jsx)(l.default,{Tag:"p",classes:"text-12 font-600 text-orange-100",children:o})]})};h.propTypes={deliveryTimeLeft:r().instanceOf(Object).isRequired}},84024:function(t,e,o){o.d(e,{VZ:function(){return c},mC:function(){return n},pi:function(){return a}});let n=t=>{let e=Math.floor(t/1e3),o=Math.floor(e/3600),n=Math.floor((e-3600*o)/60),c=e-3600*o-60*n;return"".concat((o<10?"0":"")+o,":").concat(n<10?"0":"").concat(n,":").concat(c<10?"0":"").concat(c)},c=t=>{let e=new Date,o=new Date(t)-e,n={hours:0,minutes:0,seconds:0};return o>0&&(n={hours:Math.floor(o/36e5),minutes:Math.floor(o%36e5/6e4),seconds:Math.floor(o%6e4/1e3)}),n},a=t=>{let e=new Date(t),o=Math.floor((Date.now()-e)/1e3),n=Math.floor(o/60),c=Math.floor(n/60),a=Math.floor(c/24),r=Math.floor(a/7),s=Math.floor(a/30),l=Math.floor(a/365);return l>0?"".concat(l," year").concat(l>1?"s":""," ago"):s>0?"".concat(s," month").concat(s>1?"s":""," ago"):r>0?"".concat(r," week").concat(r>1?"s":""," ago"):a>0?"".concat(a," day").concat(a>1?"s":""," ago"):c>0?"".concat(c," hour").concat(c>1?"s":""," ago"):n>0?"".concat(n," minute").concat(n>1?"s":""," ago"):"".concat(o," second").concat(o>1?"s":""," ago")}}}]); 2//# sourceMappingURL=4113.8fb36a745b08694a.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.