1"use strict";(self.webpackChunktrux_common=self.webpackChunktrux_common||[]).push([[2990],{62990:function(t,e,n){n.r(e);var a=n(52891);e.default=class extends a.xI{static targets=["deadlineDay","deadlineMonth","deadlineYear","deadlineInterval","days","hours","minutes","seconds"];connect(){let t=1*this.deadlineDayTarget.innerHTML,e=1*this.deadlineMonthTarget.innerHTML-1,n=1*this.deadlineYearTarget.innerHTML;const a=this.daysTarget,s=this.hoursTarget,r=this.minutesTarget,o=this.secondsTarget,l=a,i=s,d=r,h=o,c=this.hasDeadlineIntervalTarget,u=c?1*this.deadlineIntervalTarget.innerHTML:0;function g(t,e){const n=new Date(t);return n.setDate(n.getDate()+e),n}let f=new Date(n,e,t);if(c&&u>0){const a=new Date;for(;f<=a;)f=g(f,u);t=f.getDate(),e=f.getMonth(),n=f.getFullYear()}let T=null;function M(t,e){return e[t%100>4&&t%100<20?2:[2,0,1,1,1,2][t%10<5?t%10:5]]}const D=Boolean(+this.element.dataset.noLeadingZero);function x(){const a=new Date;let s=f-a;s<=0&&u>0?(f=g(f,u),t=f.getDate(),e=f.getMonth(),n=f.getFullYear(),s=f-a):s<=0&&clearInterval(T);const r=s>0?Math.floor(s/1e3/60/60/24):0,o=s>0?Math.floor(s/1e3/60/60)%24:0,c=s>0?Math.floor(s/1e3/60)%60:0,x=s>0?Math.floor(s/1e3)%60:0;l.textContent=!D&&r<10?"0"+r:r,i.textContent=!D&&o<10?"0"+o:o,d.textContent=!D&&c<10?"0"+c:c,h.textContent=!D&&x<10?"0"+x:x,l.dataset.title=M(r,["денÑ","днÑ","дней"]),i.dataset.title=M(o,["ÑаÑ","ÑаÑа","ÑаÑов"]),d.dataset.title=M(c,["минÑÑа","минÑÑÑ","минÑÑ"]),h.dataset.title=M(x,["ÑекÑнда","ÑекÑндÑ","ÑекÑнд"])}x(),T=setInterval(x,1e3)}}}}]);
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.