1"use strict";(self.webpackChunkradiozet=self.webpackChunkradiozet||[]).push([[401],{8159(e,t,r){function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_typeof(t)?t:t+""}r.r(t),r.d(t,{default:()=>o});var n=document.querySelectorAll(".timeparse"),o=function(){return function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(function TimeParse(){!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,TimeParse),this.yesterday=this.getYesterday(),this.today=this.getToday(),this.current=Math.ceil((new Date).getTime()/1e3),this.fetchByElements(n)},[{key:"fetchByElements",value:function fetchByElements(e){for(var t=0;t<e.length;t++)this.parse(e[t])}},{key:"parse",value:function parse(e){var t=parseInt(e.dataset.timestamp);this.today<t&&this.renderToday(e),this.toogleClass(e)}},{key:"renderToday",value:function renderToday(e){var t=parseInt(e.dataset.timestamp),r=this.diffHours(this.current,t),n="godz.",o=!1;r<1&&(n="min",(r=this.diffMinutes(this.current,t))<30&&(o="timeparse--latest")),e.innerHTML="".concat(r," ").concat(n," temu"),o&&e.classList.add(o)}},{key:"renderYesterday",value:function renderYesterday(e){var t=parseInt(e.dataset.timestamp),r=new Date(1e3*t);e.innerHTML="Wczoraj, ".concat(r.getHours(),":").concat(this.getFullMinutes(r))}},{key:"getYesterday",value:function getYesterday(){var e=new Date;return e.setDate(e.getDate()-1),e.setTime(e.getTime()-3600*e.getHours()*1e3-60*e.getMinutes()*1e3),e.setHours(0,0,0,0),e/1e3}},{key:"getToday",value:function getToday(){var e=new Date;return e.setHours(0,0,0,0),e/1e3}},{key:"diffHours",value:function diffHours(e,t){var r=e-t;return r/=3600,Math.abs(Math.floor(r))}},{key:"diffMinutes",value:function diffMinutes(e,t){var r=e-t;return r/=60,Math.abs(Math.floor(r))}},{key:"toogleClass",value:function toogleClass(e){e.classList.toggle("timeparse"),e.classList.toggle("timeparse--show")}},{key:"getFullMinutes",value:function getFullMinutes(e){return e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes()}}])}()}}]);
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.