(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{1570:function(t,e,o){"use strict";o.r(e);o(1),o(23);var n=o(5),r=o(989),l=o(21),c=o(56),d=Object(n.c)({props:{isLoaded:Boolean,uptime:Number,timestamp:Number},setup:function(){return{saveHighlight:function(){return Object(l.getSocket)("/systems/highlights").emit("highlight")},getTime:r.getTime,capitalize:c.capitalize}}}),h=o(45),m=o(44),v=o.n(m),f=o(48),y=o(43),_=o(25),M=o(69),O=o(384),T=o(362),component=Object(h.a)(d,(function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-col",{staticStyle:{padding:"2px"},attrs:{cols:"6",lg:"2",md:"4",sm:"4"}},[o("v-hover",{scopedSlots:t._u([{key:"default",fn:function(e){var n=e.hover;return[o("v-card",{attrs:{tile:"","min-height":"48",elevation:"5",loading:!t.isLoaded}},[o("v-card-title",{key:t.timestamp,staticClass:"px-1 py-0 text-truncate",staticStyle:{"font-size":"1rem"}},[[t._v("\n            "+t._s(t.getTime(t.uptime,!1))+"\n          ")]],2),t._v(" "),o("v-card-subtitle",{staticClass:"pa-1 pt-2 text-caption text-truncate"},[t._v("\n          "+t._s(t.capitalize(t.$t("uptime")))+"\n        ")]),t._v(" "),o("v-fade-transition",[n?o("v-overlay",{attrs:{absolute:"",color:"#333"}},[o("v-btn",{attrs:{"x-small":""},on:{click:t.saveHighlight}},[t._v("\n              "+t._s(t.$t("click-to-highlight"))+"\n            ")])],1):t._e()],1)],1)]}}])})],1)}),[],!1,null,null,null);e.default=component.exports;v()(component,{VBtn:f.a,VCard:y.a,VCardSubtitle:y.c,VCardTitle:y.e,VCol:_.a,VFadeTransition:M.d,VHover:O.a,VOverlay:T.a})},989:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.timestampToObject=e.getTime=void 0;const n=o(118);function r(t){let e=0,o=0,n=0,r=0;return t&&(e=Math.floor(t/864e5),e>=1&&(t-=864e5*e),o=Math.floor(t/36e5),o>=1&&(t-=36e5*o),n=Math.floor(t/6e4),n>=1&&(t-=6e4*n),r=Math.floor(t/1e3)),{days:Math.floor(e),hours:Math.floor(o),minutes:Math.floor(n),seconds:Math.floor(r)}}e.getTime=function(time,t){let e=0,o=0,l=0,c=0;const d=null!==time&&time?r((0,n.dayjs)().valueOf()-(0,n.dayjs)(time).valueOf()):{days:0,hours:0,minutes:0,seconds:0};return t?(e=d.days>0?d.days:"",o=d.hours>0?d.hours:"",l=d.minutes>0?d.minutes:"",c=d.seconds>0?d.seconds:"",""===e&&""===o&&""===l&&""===c&&(c=1),{days:e,hours:o,minutes:l,seconds:c}):(e=d.days>0?d.days+"d":"",o=d.hours>=0&&d.hours<10?"0"+d.hours+":":d.hours+":",l=d.minutes>=0&&d.minutes<10?"0"+d.minutes+":":d.minutes+":",c=d.seconds>=0&&d.seconds<10?"0"+d.seconds:d.seconds,e+o+l+c)},e.timestampToObject=r}}]);