UNPKG

camera.ui

Version:

NVR like user interface for RTSP capable cameras.

6 lines 146 kB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["recordings"],{"02f0":function(t,e,n){},"0ccb":function(t,e,n){var i=n("e330"),a=n("50c4"),r=n("577e"),s=n("1148"),o=n("1d80"),l=i(s),c=i("".slice),u=Math.ceil,d=function(t){return function(e,n,i){var s,d,h=r(o(e)),p=a(n),f=h.length,m=void 0===i?" ":r(i);return p<=f||""==m?h:(s=p-f,d=l(m,u(s/m.length)),d.length>s&&(d=c(d,0,s)),t?h+d:d+h)}};t.exports={start:d(!1),end:d(!0)}},"0e8f":function(t,e,n){"use strict";n("20f6");var i=n("e8f2");e["a"]=Object(i["a"])("flex")},2102:function(t,e,n){},"21a6":function(t,e,n){(function(n){var i,a,r;(function(n,s){a=[],i=s,r="function"===typeof i?i.apply(e,a):i,void 0===r||(t.exports=r)})(0,(function(){"use strict";function e(t,e){return"undefined"==typeof e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function i(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){l(i.response,e,n)},i.onerror=function(){console.error("could not download file")},i.send()}function a(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function r(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(i){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,o=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,e,n){var o=s.URL||s.webkitURL,l=document.createElement("a");e=e||t.name||"download",l.download=e,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?r(l):a(l.href)?i(t,e,n):r(l,l.target="_blank")):(l.href=o.createObjectURL(t),setTimeout((function(){o.revokeObjectURL(l.href)}),4e4),setTimeout((function(){r(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,s){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,s),n);else if(a(t))i(t,n,s);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){r(o)}))}}:function(t,e,n,a){if(a=a||open("","_blank"),a&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return i(t,e,n);var r="application/octet-stream"===t.type,l=/constructor/i.test(s.HTMLElement)||s.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&l||o)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},u.readAsDataURL(t)}else{var d=s.URL||s.webkitURL,h=d.createObjectURL(t);a?a.location=h:location.href=h,a=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});s.saveAs=l.saveAs=l,t.exports=l}))}).call(this,n("c8ba"))},"2e4b":function(t,e,n){"use strict";var i=n("5530"),a=(n("a9e3"),n("caad"),n("99af"),n("d81d"),n("ac1f"),n("1276"),n("5319"),n("4de4"),n("d3b7"),n("b0c0"),n("d951"),n("9d26")),r=n("daf1"),s=n("58df"),o=Object(s["a"])(r["a"]).extend({name:"v-date-picker-title",props:{date:{type:String,default:""},disabled:Boolean,readonly:Boolean,selectingYear:Boolean,value:{type:String},year:{type:[Number,String],default:""},yearIcon:{type:String}},data:function(){return{isReversing:!1}},computed:{computedTransition:function(){return this.isReversing?"picker-reverse-transition":"picker-transition"}},watch:{value:function(t,e){this.isReversing=t<e}},methods:{genYearIcon:function(){return this.$createElement(a["a"],{props:{dark:!0}},this.yearIcon)},getYearBtn:function(){return this.genPickerButton("selectingYear",!0,[String(this.year),this.yearIcon?this.genYearIcon():null],!1,"v-date-picker-title__year")},genTitleText:function(){return this.$createElement("transition",{props:{name:this.computedTransition}},[this.$createElement("div",{domProps:{innerHTML:this.date||"&nbsp;"},key:this.value})])},genTitleDate:function(){return this.genPickerButton("selectingYear",!1,[this.genTitleText()],!1,"v-date-picker-title__date")}},render:function(t){return t("div",{staticClass:"v-date-picker-title",class:{"v-date-picker-title--disabled":this.disabled}},[this.getYearBtn(),this.genTitleDate()])}}),l=n("3835"),c=(n("2102"),n("afdd")),u=n("a9ad"),d=n("2b0e"),h=d["a"].extend({name:"localable",props:{locale:String},computed:{currentLocale:function(){return this.locale||this.$vuetify.lang.current}}}),p=n("7560"),f=(n("498a"),n("a15b"),n("50de"));function m(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{start:0,length:0},i=function(t){var e=t.trim().split(" ")[0].split("-"),n=Object(l["a"])(e,3),i=n[0],a=n[1],r=n[2];return[Object(f["a"])(i,4),Object(f["a"])(a||1),Object(f["a"])(r||1)].join("-")};try{var a=new Intl.DateTimeFormat(t||void 0,e);return function(t){return a.format(new Date("".concat(i(t),"T00:00:00+00:00")))}}catch(r){return n.start||n.length?function(t){return i(t).substr(n.start||0,n.length)}:void 0}}var g=m,b=function(t,e){var n=t.split("-").map(Number),i=Object(l["a"])(n,2),a=i[0],r=i[1];return r+e===0?"".concat(a-1,"-12"):r+e===13?"".concat(a+1,"-01"):"".concat(a,"-").concat(Object(f["a"])(r+e))},v=Object(s["a"])(u["a"],h,p["a"]).extend({name:"v-date-picker-header",props:{disabled:Boolean,format:Function,min:String,max:String,nextAriaLabel:String,nextIcon:{type:String,default:"$next"},prevAriaLabel:String,prevIcon:{type:String,default:"$prev"},readonly:Boolean,value:{type:[Number,String],required:!0}},data:function(){return{isReversing:!1}},computed:{formatter:function(){return this.format?this.format:String(this.value).split("-")[1]?g(this.currentLocale,{month:"long",year:"numeric",timeZone:"UTC"},{length:7}):g(this.currentLocale,{year:"numeric",timeZone:"UTC"},{length:4})}},watch:{value:function(t,e){this.isReversing=t<e}},methods:{genBtn:function(t){var e=this,n=t>0?this.nextAriaLabel:this.prevAriaLabel,i=n?this.$vuetify.lang.t(n):void 0,r=this.disabled||t<0&&this.min&&this.calculateChange(t)<this.min||t>0&&this.max&&this.calculateChange(t)>this.max;return this.$createElement(c["a"],{attrs:{"aria-label":i},props:{dark:this.dark,disabled:r,icon:!0,light:this.light},on:{click:function(n){n.stopPropagation(),e.$emit("input",e.calculateChange(t))}}},[this.$createElement(a["a"],t<0===!this.$vuetify.rtl?this.prevIcon:this.nextIcon)])},calculateChange:function(t){var e=String(this.value).split("-").map(Number),n=Object(l["a"])(e,2),i=n[0],a=n[1];return null==a?"".concat(i+t):b(String(this.value),t)},genHeader:function(){var t=this,e=!this.disabled&&(this.color||"accent"),n=this.$createElement("div",this.setTextColor(e,{key:String(this.value)}),[this.$createElement("button",{attrs:{type:"button"},on:{click:function(){return t.$emit("toggle")}}},[this.$slots.default||this.formatter(String(this.value))])]),i=this.$createElement("transition",{props:{name:this.isReversing===!this.$vuetify.rtl?"tab-reverse-transition":"tab-transition"}},[n]);return this.$createElement("div",{staticClass:"v-date-picker-header__value",class:{"v-date-picker-header__value--disabled":this.disabled}},[i])}},render:function(){return this.$createElement("div",{staticClass:"v-date-picker-header",class:Object(i["a"])({"v-date-picker-header--disabled":this.disabled},this.themeClasses)},[this.genBtn(-1),this.genHeader(),this.genBtn(1)])}}),y=(n("2af1"),n("4d90"),n("2909")),w=(n("2532"),n("4e827"),n("c982"),n("c3f0"));n("b64b"),n("8a79"),n("fb6a");function x(t,e,n){return Object.keys(t.$listeners).reduce((function(i,a){return a.endsWith(e)&&(i[a.slice(0,-e.length)]=function(e){return t.$emit(a,n,e)}),i}),{})}function k(t,e){return Object.keys(t.$listeners).reduce((function(n,i){return i.endsWith(e)&&(n[i]=t.$listeners[i]),n}),{})}var S=function(t,e){var n=t.split("-"),i=Object(l["a"])(n,3),a=i[0],r=i[1],s=void 0===r?1:r,o=i[2],c=void 0===o?1:o;return"".concat(a,"-").concat(Object(f["a"])(s),"-").concat(Object(f["a"])(c)).substr(0,{date:10,month:7,year:4}[e])};function O(t,e,n,i){return(!i||i(t))&&(!e||t>=e.substr(0,10))&&(!n||t<=n)}var $=n("d9f7"),C=n("80d2"),j=Object(s["a"])(u["a"],h,p["a"]).extend({directives:{Touch:w["a"]},props:{allowedDates:Function,current:String,disabled:Boolean,format:Function,events:{type:[Array,Function,Object],default:function(){return null}},eventColor:{type:[Array,Function,Object,String],default:function(){return"warning"}},min:String,max:String,range:Boolean,readonly:Boolean,scrollable:Boolean,tableDate:{type:String,required:!0},value:[String,Array]},data:function(){return{isReversing:!1,wheelThrottle:null}},computed:{computedTransition:function(){return this.isReversing===!this.$vuetify.rtl?"tab-reverse-transition":"tab-transition"},displayedMonth:function(){return Number(this.tableDate.split("-")[1])-1},displayedYear:function(){return Number(this.tableDate.split("-")[0])}},watch:{tableDate:function(t,e){this.isReversing=t<e}},mounted:function(){this.wheelThrottle=Object(C["H"])(this.wheel,250)},methods:{genButtonClasses:function(t,e,n,a,r,s){return Object(i["a"])({"v-size--default":!e,"v-date-picker-table__current":a,"v-btn--active":n,"v-btn--flat":!t||this.disabled,"v-btn--text":n===a,"v-btn--rounded":e,"v-btn--disabled":!t||this.disabled,"v-btn--outlined":a&&!n,"v-date-picker--first-in-range":r,"v-date-picker--last-in-range":s},this.themeClasses)},genButtonEvents:function(t,e,n){var i=this;if(!this.disabled)return Object($["c"])({click:function(){e&&!i.readonly&&i.$emit("input",t)}},x(this,":".concat(n),t))},genButton:function(t,e,n,i){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=O(t,this.min,this.max,this.allowedDates),s=this.isSelected(t)&&r,o=t===this.current,l=s?this.setBackgroundColor:this.setTextColor,c=(s||o)&&(this.color||"accent"),u=!1,d=!1;return this.range&&this.value&&Array.isArray(this.value)&&(u=t===this.value[0],d=t===this.value[this.value.length-1]),this.$createElement("button",l(c,{staticClass:"v-btn",class:this.genButtonClasses(r&&!a,e,s,o,u,d),attrs:{type:"button"},domProps:{disabled:this.disabled||!r||a},on:this.genButtonEvents(t,r,n)}),[this.$createElement("div",{staticClass:"v-btn__content"},[i(t)]),this.genEvents(t)])},getEventColors:function(t){var e,n=function(t){return Array.isArray(t)?t:[t]},i=[];return e=Array.isArray(this.events)?this.events.includes(t):this.events instanceof Function?this.events(t)||!1:this.events&&this.events[t]||!1,e?(i=!0!==e?n(e):"string"===typeof this.eventColor?[this.eventColor]:"function"===typeof this.eventColor?n(this.eventColor(t)):Array.isArray(this.eventColor)?this.eventColor:n(this.eventColor[t]),i.filter((function(t){return t}))):[]},genEvents:function(t){var e=this,n=this.getEventColors(t);return n.length?this.$createElement("div",{staticClass:"v-date-picker-table__events"},n.map((function(t){return e.$createElement("div",e.setBackgroundColor(t))}))):null},isValidScroll:function(t,e){var n=e(t),i=1===n.split("-").length?"year":"month";return t<0&&(!this.min||n>=S(this.min,i))||t>0&&(!this.max||n<=S(this.max,i))},wheel:function(t,e){this.$emit("update:table-date",e(t.deltaY))},touch:function(t,e){this.$emit("update:table-date",e(t))},genTable:function(t,e,n){var a=this,r=this.$createElement("transition",{props:{name:this.computedTransition}},[this.$createElement("table",{key:this.tableDate},e)]),s={name:"touch",value:{left:function(t){return t.offsetX<-15&&a.isValidScroll(1,n)&&a.touch(1,n)},right:function(t){return t.offsetX>15&&a.isValidScroll(-1,n)&&a.touch(-1,n)}}};return this.$createElement("div",{staticClass:t,class:Object(i["a"])({"v-date-picker-table--disabled":this.disabled},this.themeClasses),on:!this.disabled&&this.scrollable?{wheel:function(t){t.preventDefault(),a.isValidScroll(t.deltaY,n)&&a.wheelThrottle(t,n)}}:void 0,directives:[s]},[r])},isSelected:function(t){if(Array.isArray(this.value)){if(this.range&&2===this.value.length){var e=Object(y["a"])(this.value).sort(),n=Object(l["a"])(e,2),i=n[0],a=n[1];return i<=t&&t<=a}return-1!==this.value.indexOf(t)}return t===this.value}}});function _(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return t<100&&t>=0?(e=new Date(Date.UTC(t,n,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC(t,n,i)),e}function I(t,e,n){var i=7+e-n,a=(7+_(t,0,i).getUTCDay()-e)%7;return-a+i-1}function E(t,e,n,i){var a=[0,31,59,90,120,151,181,212,243,273,304,334][e];return e>1&&T(t)&&a++,a+n}function D(t,e,n){var i=I(t,e,n),a=I(t+1,e,n),r=T(t)?366:365;return(r-i+a)/7}function P(t,e,n,i,a){var r=I(t,i,a),s=Math.ceil((E(t,e,n,i)-r)/7);return s<1?s+D(t-1,i,a):s>D(t,i,a)?s-D(t,i,a):s}function T(t){return t%4===0&&t%100!==0||t%400===0}var R=Object(s["a"])(j).extend({name:"v-date-picker-date-table",props:{firstDayOfWeek:{type:[String,Number],default:0},localeFirstDayOfYear:{type:[String,Number],default:0},showAdjacentMonths:Boolean,showWeek:Boolean,weekdayFormat:Function},computed:{formatter:function(){return this.format||g(this.currentLocale,{day:"numeric",timeZone:"UTC"},{start:8,length:2})},weekdayFormatter:function(){return this.weekdayFormat||g(this.currentLocale,{weekday:"narrow",timeZone:"UTC"})},weekDays:function(){var t=this,e=parseInt(this.firstDayOfWeek,10);return this.weekdayFormatter?Object(C["i"])(7).map((function(n){return t.weekdayFormatter("2017-01-".concat(e+n+15))})):Object(C["i"])(7).map((function(t){return["S","M","T","W","T","F","S"][(t+e)%7]}))}},methods:{calculateTableDate:function(t){return b(this.tableDate,Math.sign(t||1))},genTHead:function(){var t=this,e=this.weekDays.map((function(e){return t.$createElement("th",e)}));return this.showWeek&&e.unshift(this.$createElement("th")),this.$createElement("thead",this.genTR(e))},weekDaysBeforeFirstDayOfTheMonth:function(){var t=new Date("".concat(this.displayedYear,"-").concat(Object(f["a"])(this.displayedMonth+1),"-01T00:00:00+00:00")),e=t.getUTCDay();return(e-parseInt(this.firstDayOfWeek)+7)%7},getWeekNumber:function(t){return P(this.displayedYear,this.displayedMonth,t,parseInt(this.firstDayOfWeek),parseInt(this.localeFirstDayOfYear))},genWeekNumber:function(t){return this.$createElement("td",[this.$createElement("small",{staticClass:"v-date-picker-table--date__week"},String(t).padStart(2,"0"))])},genTBody:function(){var t=[],e=new Date(this.displayedYear,this.displayedMonth+1,0).getDate(),n=[],i=this.weekDaysBeforeFirstDayOfTheMonth();this.showWeek&&n.push(this.genWeekNumber(this.getWeekNumber(1)));var a=this.displayedMonth?this.displayedYear:this.displayedYear-1,r=(this.displayedMonth+11)%12,s=new Date(this.displayedYear,this.displayedMonth,0).getDate(),o=this.showWeek?8:7;while(i--){var l="".concat(a,"-").concat(Object(f["a"])(r+1),"-").concat(Object(f["a"])(s-i));n.push(this.$createElement("td",this.showAdjacentMonths?[this.genButton(l,!0,"date",this.formatter,!0)]:[]))}for(i=1;i<=e;i++){var c="".concat(this.displayedYear,"-").concat(Object(f["a"])(this.displayedMonth+1),"-").concat(Object(f["a"])(i));n.push(this.$createElement("td",[this.genButton(c,!0,"date",this.formatter)])),n.length%o===0&&(t.push(this.genTR(n)),n=[],this.showWeek&&(i<e||this.showAdjacentMonths)&&n.push(this.genWeekNumber(this.getWeekNumber(i+7))))}var u=11===this.displayedMonth?this.displayedYear+1:this.displayedYear,d=(this.displayedMonth+1)%12,h=1;while(n.length<o){var p="".concat(u,"-").concat(Object(f["a"])(d+1),"-").concat(Object(f["a"])(h++));n.push(this.$createElement("td",this.showAdjacentMonths?[this.genButton(p,!0,"date",this.formatter,!0)]:[]))}return n.length&&t.push(this.genTR(n)),this.$createElement("tbody",t)},genTR:function(t){return[this.$createElement("tr",t)]}},render:function(){return this.genTable("v-date-picker-table v-date-picker-table--date",[this.genTHead(),this.genTBody()],this.calculateTableDate)}}),A=(n("cb29"),Object(s["a"])(j).extend({name:"v-date-picker-month-table",computed:{formatter:function(){return this.format||g(this.currentLocale,{month:"short",timeZone:"UTC"},{start:5,length:2})}},methods:{calculateTableDate:function(t){return"".concat(parseInt(this.tableDate,10)+Math.sign(t||1))},genTBody:function(){for(var t=this,e=[],n=Array(3).fill(null),i=12/n.length,a=function(i){var a=n.map((function(e,a){var r=i*n.length+a,s="".concat(t.displayedYear,"-").concat(Object(f["a"])(r+1));return t.$createElement("td",{key:r},[t.genButton(s,!1,"month",t.formatter)])}));e.push(t.$createElement("tr",{key:i},a))},r=0;r<i;r++)a(r);return this.$createElement("tbody",e)}},render:function(){return this.genTable("v-date-picker-table v-date-picker-table--month",[this.genTBody()],this.calculateTableDate)}})),B=(n("02f0"),Object(s["a"])(u["a"],h).extend({name:"v-date-picker-years",props:{format:Function,min:[Number,String],max:[Number,String],readonly:Boolean,value:[Number,String]},data:function(){return{defaultColor:"primary"}},computed:{formatter:function(){return this.format||g(this.currentLocale,{year:"numeric",timeZone:"UTC"},{length:4})}},mounted:function(){var t=this;setTimeout((function(){var e=t.$el.getElementsByClassName("active")[0];e?t.$el.scrollTop=e.offsetTop-t.$el.offsetHeight/2+e.offsetHeight/2:t.min&&!t.max?t.$el.scrollTop=t.$el.scrollHeight:!t.min&&t.max?t.$el.scrollTop=0:t.$el.scrollTop=t.$el.scrollHeight/2-t.$el.offsetHeight/2}))},methods:{genYearItem:function(t){var e=this,n=this.formatter("".concat(t)),i=parseInt(this.value,10)===t,a=i&&(this.color||"primary");return this.$createElement("li",this.setTextColor(a,{key:t,class:{active:i},on:Object($["c"])({click:function(){return e.$emit("input",t)}},x(this,":year",t))}),n)},genYearItems:function(){for(var t=[],e=this.value?parseInt(this.value,10):(new Date).getFullYear(),n=this.max?parseInt(this.max,10):e+100,i=Math.min(n,this.min?parseInt(this.min,10):e-100),a=n;a>=i;a--)t.push(this.genYearItem(a));return t}},render:function(){return this.$createElement("ul",{staticClass:"v-date-picker-years",ref:"years"},this.genYearItems())}})),L=n("4754"),M=(n("53ca"),n("d9e2"),[0,31,28,31,30,31,30,31,31,30,31,30,31]),F=[0,31,29,31,30,31,30,31,31,30,31,30,31];function N(t,e){return T(t)?F[e]:M[e]}var Y=n("d9bd");e["a"]=Object(s["a"])(h,L["a"]).extend({name:"v-date-picker",props:{activePicker:String,allowedDates:Function,dayFormat:Function,disabled:Boolean,events:{type:[Array,Function,Object],default:function(){return null}},eventColor:{type:[Array,Function,Object,String],default:function(){return"warning"}},firstDayOfWeek:{type:[String,Number],default:0},headerDateFormat:Function,localeFirstDayOfYear:{type:[String,Number],default:0},max:String,min:String,monthFormat:Function,multiple:Boolean,nextIcon:{type:String,default:"$next"},nextMonthAriaLabel:{type:String,default:"$vuetify.datePicker.nextMonthAriaLabel"},nextYearAriaLabel:{type:String,default:"$vuetify.datePicker.nextYearAriaLabel"},pickerDate:String,prevIcon:{type:String,default:"$prev"},prevMonthAriaLabel:{type:String,default:"$vuetify.datePicker.prevMonthAriaLabel"},prevYearAriaLabel:{type:String,default:"$vuetify.datePicker.prevYearAriaLabel"},range:Boolean,reactive:Boolean,readonly:Boolean,scrollable:Boolean,showCurrent:{type:[Boolean,String],default:!0},selectedItemsText:{type:String,default:"$vuetify.datePicker.itemsSelected"},showAdjacentMonths:Boolean,showWeek:Boolean,titleDateFormat:Function,type:{type:String,default:"date",validator:function(t){return["date","month"].includes(t)}},value:[Array,String],weekdayFormat:Function,yearFormat:Function,yearIcon:String},data:function(){var t=this,e=new Date;return{internalActivePicker:this.type.toUpperCase(),inputDay:null,inputMonth:null,inputYear:null,isReversing:!1,now:e,tableDate:function(){if(t.pickerDate)return t.pickerDate;var n=Object(C["J"])(t.value),i=n[n.length-1]||("string"===typeof t.showCurrent?t.showCurrent:"".concat(e.getFullYear(),"-").concat(e.getMonth()+1));return S(i,"date"===t.type?"month":"year")}()}},computed:{multipleValue:function(){return Object(C["J"])(this.value)},isMultiple:function(){return this.multiple||this.range},lastValue:function(){return this.isMultiple?this.multipleValue[this.multipleValue.length-1]:this.value},selectedMonths:function(){return this.value&&"month"!==this.type?this.isMultiple?this.multipleValue.map((function(t){return t.substr(0,7)})):this.value.substr(0,7):this.value},current:function(){return!0===this.showCurrent?S("".concat(this.now.getFullYear(),"-").concat(this.now.getMonth()+1,"-").concat(this.now.getDate()),this.type):this.showCurrent||null},inputDate:function(){return"date"===this.type?"".concat(this.inputYear,"-").concat(Object(f["a"])(this.inputMonth+1),"-").concat(Object(f["a"])(this.inputDay)):"".concat(this.inputYear,"-").concat(Object(f["a"])(this.inputMonth+1))},tableMonth:function(){return Number((this.pickerDate||this.tableDate).split("-")[1])-1},tableYear:function(){return Number((this.pickerDate||this.tableDate).split("-")[0])},minMonth:function(){return this.min?S(this.min,"month"):null},maxMonth:function(){return this.max?S(this.max,"month"):null},minYear:function(){return this.min?S(this.min,"year"):null},maxYear:function(){return this.max?S(this.max,"year"):null},formatters:function(){return{year:this.yearFormat||g(this.currentLocale,{year:"numeric",timeZone:"UTC"},{length:4}),titleDate:this.titleDateFormat||(this.isMultiple?this.defaultTitleMultipleDateFormatter:this.defaultTitleDateFormatter)}},defaultTitleMultipleDateFormatter:function(){var t=this;return function(e){return e.length?1===e.length?t.defaultTitleDateFormatter(e[0]):t.$vuetify.lang.t(t.selectedItemsText,e.length):"-"}},defaultTitleDateFormatter:function(){var t={year:{year:"numeric",timeZone:"UTC"},month:{month:"long",timeZone:"UTC"},date:{weekday:"short",month:"short",day:"numeric",timeZone:"UTC"}},e=g(this.currentLocale,t[this.type],{start:0,length:{date:10,month:7,year:4}[this.type]}),n=function(t){return e(t).replace(/([^\d\s])([\d])/g,(function(t,e,n){return"".concat(e," ").concat(n)})).replace(", ",",<br>")};return this.landscape?n:e}},watch:{internalActivePicker:{immediate:!0,handler:function(t){this.$emit("update:active-picker",t)}},activePicker:function(t){this.internalActivePicker=t},tableDate:function(t,e){var n="month"===this.type?"year":"month";this.isReversing=S(t,n)<S(e,n),this.$emit("update:picker-date",t)},pickerDate:function(t){t?this.tableDate=t:this.lastValue&&"date"===this.type?this.tableDate=S(this.lastValue,"month"):this.lastValue&&"month"===this.type&&(this.tableDate=S(this.lastValue,"year"))},value:function(t,e){this.checkMultipleProp(),this.setInputDate(),(this.isMultiple||!this.value||this.pickerDate)&&(!this.isMultiple||!this.multipleValue.length||e&&e.length||this.pickerDate)||(this.tableDate=S(this.inputDate,"month"===this.type?"year":"month"))},type:function(t){if(this.internalActivePicker=t.toUpperCase(),this.value&&this.value.length){var e=this.multipleValue.map((function(e){return S(e,t)})).filter(this.isDateAllowed);this.$emit("input",this.isMultiple?e:e[0])}}},created:function(){this.checkMultipleProp(),this.pickerDate!==this.tableDate&&this.$emit("update:picker-date",this.tableDate),this.setInputDate()},methods:{emitInput:function(t){if(this.range)if(1!==this.multipleValue.length)this.$emit("input",[t]);else{var e=[this.multipleValue[0],t];this.$emit("input",e),this.$emit("change",e)}else{var n=this.multiple?-1===this.multipleValue.indexOf(t)?this.multipleValue.concat([t]):this.multipleValue.filter((function(e){return e!==t})):t;this.$emit("input",n),this.multiple||this.$emit("change",t)}},checkMultipleProp:function(){if(null!=this.value){var t=this.value.constructor.name,e=this.isMultiple?"Array":"String";t!==e&&Object(Y["c"])("Value must be ".concat(this.isMultiple?"an":"a"," ").concat(e,", got ").concat(t),this)}},isDateAllowed:function(t){return O(t,this.min,this.max,this.allowedDates)},yearClick:function(t){this.inputYear=t,"month"===this.type?this.tableDate="".concat(t):this.tableDate="".concat(t,"-").concat(Object(f["a"])((this.tableMonth||0)+1)),this.internalActivePicker="MONTH",this.reactive&&!this.readonly&&!this.isMultiple&&this.isDateAllowed(this.inputDate)&&this.$emit("input",this.inputDate)},monthClick:function(t){this.inputYear=parseInt(t.split("-")[0],10),this.inputMonth=parseInt(t.split("-")[1],10)-1,"date"===this.type?(this.inputDay&&(this.inputDay=Math.min(this.inputDay,N(this.inputYear,this.inputMonth+1))),this.tableDate=t,this.internalActivePicker="DATE",this.reactive&&!this.readonly&&!this.isMultiple&&this.isDateAllowed(this.inputDate)&&this.$emit("input",this.inputDate)):this.emitInput(this.inputDate)},dateClick:function(t){this.inputYear=parseInt(t.split("-")[0],10),this.inputMonth=parseInt(t.split("-")[1],10)-1,this.inputDay=parseInt(t.split("-")[2],10),this.emitInput(this.inputDate)},genPickerTitle:function(){var t=this;return this.$createElement(o,{props:{date:this.value?this.formatters.titleDate(this.isMultiple?this.multipleValue:this.value):"",disabled:this.disabled,readonly:this.readonly,selectingYear:"YEAR"===this.internalActivePicker,year:this.formatters.year(this.multipleValue.length?"".concat(this.inputYear):this.tableDate),yearIcon:this.yearIcon,value:this.multipleValue[0]},slot:"title",on:{"update:selecting-year":function(e){return t.internalActivePicker=e?"YEAR":t.type.toUpperCase()}}})},genTableHeader:function(){var t=this;return this.$createElement(v,{props:{nextIcon:this.nextIcon,color:this.color,dark:this.dark,disabled:this.disabled,format:this.headerDateFormat,light:this.light,locale:this.locale,min:"DATE"===this.internalActivePicker?this.minMonth:this.minYear,max:"DATE"===this.internalActivePicker?this.maxMonth:this.maxYear,nextAriaLabel:"DATE"===this.internalActivePicker?this.nextMonthAriaLabel:this.nextYearAriaLabel,prevAriaLabel:"DATE"===this.internalActivePicker?this.prevMonthAriaLabel:this.prevYearAriaLabel,prevIcon:this.prevIcon,readonly:this.readonly,value:"DATE"===this.internalActivePicker?"".concat(Object(f["a"])(this.tableYear,4),"-").concat(Object(f["a"])(this.tableMonth+1)):"".concat(Object(f["a"])(this.tableYear,4))},on:{toggle:function(){return t.internalActivePicker="DATE"===t.internalActivePicker?"MONTH":"YEAR"},input:function(e){return t.tableDate=e}}})},genDateTable:function(){var t=this;return this.$createElement(R,{props:{allowedDates:this.allowedDates,color:this.color,current:this.current,dark:this.dark,disabled:this.disabled,events:this.events,eventColor:this.eventColor,firstDayOfWeek:this.firstDayOfWeek,format:this.dayFormat,light:this.light,locale:this.locale,localeFirstDayOfYear:this.localeFirstDayOfYear,min:this.min,max:this.max,range:this.range,readonly:this.readonly,scrollable:this.scrollable,showAdjacentMonths:this.showAdjacentMonths,showWeek:this.showWeek,tableDate:"".concat(Object(f["a"])(this.tableYear,4),"-").concat(Object(f["a"])(this.tableMonth+1)),value:this.value,weekdayFormat:this.weekdayFormat},ref:"table",on:Object(i["a"])({input:this.dateClick,"update:table-date":function(e){return t.tableDate=e}},k(this,":date"))})},genMonthTable:function(){var t=this;return this.$createElement(A,{props:{allowedDates:"month"===this.type?this.allowedDates:null,color:this.color,current:this.current?S(this.current,"month"):null,dark:this.dark,disabled:this.disabled,events:"month"===this.type?this.events:null,eventColor:"month"===this.type?this.eventColor:null,format:this.monthFormat,light:this.light,locale:this.locale,min:this.minMonth,max:this.maxMonth,range:this.range,readonly:this.readonly&&"month"===this.type,scrollable:this.scrollable,value:this.selectedMonths,tableDate:"".concat(Object(f["a"])(this.tableYear,4))},ref:"table",on:Object(i["a"])({input:this.monthClick,"update:table-date":function(e){return t.tableDate=e}},k(this,":month"))})},genYears:function(){return this.$createElement(B,{props:{color:this.color,format:this.yearFormat,locale:this.locale,min:this.minYear,max:this.maxYear,value:this.tableYear},on:Object(i["a"])({input:this.yearClick},k(this,":year"))})},genPickerBody:function(){var t="YEAR"===this.internalActivePicker?[this.genYears()]:[this.genTableHeader(),"DATE"===this.internalActivePicker?this.genDateTable():this.genMonthTable()];return this.$createElement("div",{key:this.internalActivePicker},t)},setInputDate:function(){if(this.lastValue){var t=this.lastValue.split("-");this.inputYear=parseInt(t[0],10),this.inputMonth=parseInt(t[1],10)-1,"date"===this.type&&(this.inputDay=parseInt(t[2],10))}else this.inputYear=this.inputYear||this.now.getFullYear(),this.inputMonth=null==this.inputMonth?this.inputMonth:this.now.getMonth(),this.inputDay=this.inputDay||this.now.getDate()}},render:function(){return this.genPicker("v-picker--date")}})},"335a":function(t,e,n){"use strict"; /*! * vue-aspect-ratio v0.1.1 * (c) 2019 albertodeagostini.dev@gmail.com * Released under the MIT License. */function i(t,e){return a(t)||r(t,e)||s()}function a(t){if(Array.isArray(t))return t}function r(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],i=!0,a=!1,r=void 0;try{for(var s,o=t[Symbol.iterator]();!(i=(s=o.next()).done);i=!0)if(n.push(s.value),e&&n.length===e)break}catch(l){a=!0,r=l}finally{try{i||null==o["return"]||o["return"]()}finally{if(a)throw r}}return n}}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var o={name:"VueAspectRatio",props:{ar:{type:String,default:"1:1",validator:function(t){var e=t.split(":").map((function(t){return parseInt(t)})),n=i(e,2),a=n[0],r=n[1];return!Number.isNaN(a)&&!Number.isNaN(r)}},width:String},data:function(){return{w:null,h:null}},computed:{componentStyle:function(){return this.width?{width:this.width}:{}},innerStyle:function(){return{paddingTop:this.h/this.w*100+"%"}}},created:function(){var t=this.ar.split(":").map((function(t){return parseInt(t)})),e=i(t,2),n=e[0],a=e[1];this.w=n,this.h=a}};function l(t,e,n,i,a,r,s,o,l,c){"boolean"!==typeof s&&(l=o,o=s,s=!1);var u,d="function"===typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,a&&(d.functional=!0)),i&&(d._scopeId=i),r?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=u):e&&(u=s?function(){e.call(this,c(this.$root.$options.shadowRoot))}:function(t){e.call(this,o(t))}),u)if(d.functional){var h=d.render;d.render=function(t,e){return u.call(e),h(t,e)}}else{var p=d.beforeCreate;d.beforeCreate=p?[].concat(p,u):[u]}return n}var c=l,u="undefined"!==typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function d(t){return function(t,e){return f(t,e)}}var h=document.head||document.getElementsByTagName("head")[0],p={};function f(t,e){var n=u?e.media||"default":t,i=p[n]||(p[n]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.ids.add(t);var a=e.source;if(e.map&&(a+="\n/*# sourceURL="+e.map.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),h.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(a),i.element.styleSheet.cssText=i.styles.filter(Boolean).join("\n");else{var r=i.ids.size-1,s=document.createTextNode(a),o=i.element.childNodes;o[r]&&i.element.removeChild(o[r]),o.length?i.element.insertBefore(s,o[r]):i.element.appendChild(s)}}}var m=d;const g=o;var b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-aspect-ratio",style:t.componentStyle},[n("div",{staticClass:"vue-aspect-ratio__inner",style:t.innerStyle},[n("div",{staticClass:"vue-aspect-ratio__content"},[t._t("default")],2)])])},v=[];const y=function(t){t&&t("data-v-f0460d78_0",{source:".vue-aspect-ratio__inner[data-v-f0460d78]{position:relative}.vue-aspect-ratio__content[data-v-f0460d78]{position:absolute;top:0;left:0;width:100%;height:100%}",map:void 0,media:void 0})},w="data-v-f0460d78",x=void 0,k=!1;var S=c({render:b,staticRenderFns:v},y,g,w,k,x,m,void 0),O=Object.freeze({__proto__:null,default:S});function $(t){return t&&t["default"]||t}var C=$(O),j=C;e["a"]=j},"40b2":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.datePicker?n("v-dialog",{ref:"dialog",attrs:{width:"290px"},scopedSlots:t._u([{key:"activator",fn:function(e){var i=e.on,a=e.attrs;return[n("v-badge",{attrs:{dot:"",value:t.selected.filter((function(t){return"date"===t.type})).length,content:t.selected.filter((function(t){return"date"===t.type})).length,color:"var(--cui-primary)","offset-x":"10","offset-y":"10",overlap:""}},[n("v-btn",t._g(t._b({staticClass:"text-muted",attrs:{icon:"",height:"30px",width:"30px"}},"v-btn",a,!1),i),[n("v-icon",{attrs:{size:"20"}},[t._v(t._s(t.icons["mdiCalendar"]))])],1)],1)]}}],null,!1,2810305046),model:{value:t.dateModal,callback:function(e){t.dateModal=e},expression:"dateModal"}},[n("v-date-picker",{attrs:{locale:t.uiConfig.currentLanguage,scrollable:"",range:"","selected-items-text":"{0} "+t.$t("selected")},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}},[n("v-spacer"),n("v-btn",{attrs:{text:"",color:"primary"},on:{click:function(e){t.dateModal=!1}}},[t._v(t._s(t.$t("cancel")))]),n("v-btn",{attrs:{text:"",color:"primary"},on:{click:t.saveDateRange}},[t._v(t._s(t.$t("ok")))])],1)],1):t._e(),n("v-menu",{attrs:{"z-index":"10",transition:"slide-y-transition","min-width":"260px","close-on-content-click":!1,"offset-y":"",bottom:"","nudge-top":"-15","content-class":"light-shadow"},scopedSlots:t._u([{key:"activator",fn:function(e){var i=e.on,a=e.attrs;return[n("v-badge",{attrs:{dot:"",value:t.selected.filter((function(t){return"date"!==t.type})).length,content:t.selected.filter((function(t){return"date"!==t.type})).length,color:"var(--cui-primary)","offset-x":"10","offset-y":"10",overlap:""}},[n("v-btn",t._g(t._b({staticClass:"text-muted",attrs:{icon:"",height:"30px",width:"30px"}},"v-btn",a,!1),i),[n("v-icon",{attrs:{size:"20"}},[t._v(t._s(t.icons["mdiFilter"]))])],1)],1)]}}]),model:{value:t.showFilter,callback:function(e){t.showFilter=e},expression:"showFilter"}},[n("v-card",{staticClass:"light-shadow card-border"},[n("div",{staticClass:"tw-p-6 tw-pb-0 tw-flex tw-justify-between filter-title tw-pb-4"},[n("div",{staticClass:"tw-flex tw-items-center filter-menu-title"},[t._v(t._s(t.$t("filters")))])]),n("v-list",{staticClass:"tw-pt-0",attrs:{dark:t.darkMode}},t._l(t.items,(function(e){return e.enabled?n("v-list-group",{key:e.id,attrs:{"no-action":""},scopedSlots:t._u([{key:"prependIcon",fn:function(){return[n("v-icon",{staticClass:"text-default tw-ml-5"},[t._v(t._s(t.filter[e.type]?t.icons["mdiChevronUp"]:t.icons["mdiChevronDown"]))])]},proxy:!0},{key:"activator",fn:function(){return[n("v-list-item-content",[n("v-list-item-title",{staticClass:"filter-menu-subtitle"},[t._v(t._s(e.title))])],1)]},proxy:!0},{key:"appendIcon",fn:function(){return[n("v-icon",{staticClass:"text-default"}),n("v-chip",{staticClass:"tw-mr-5 tw-text-white",staticStyle:{"font-size":"0.6rem !important"},attrs:{small:"",color:"rgba(0,0,0, 0.2)"}},[t._v(t._s(e.items.filter((function(t){return t.selected})).length))])]},proxy:!0}],null,!0),model:{value:t.filter[e.type],callback:function(n){t.$set(t.filter,e.type,n)},expression:"filter[item.type]"}},t._l(e.items,(function(e){return n("v-list-item",{key:e.title,staticClass:"tw-p-0",attrs:{dense:""}},[n("v-checkbox",{attrs:{ripple:!1,label:e.title,color:"var(--cui-primary)",value:e.title,"hide-details":""},model:{value:e.selected,callback:function(n){t.$set(e,"selected",n)},expression:"child.selected"}})],1)})),1):t._e()})),1)],1)],1),n("v-btn",{staticClass:"text-muted",attrs:{icon:"",height:"30px",width:"30px"},on:{click:t.clearFilter}},[n("v-icon",{attrs:{size:"20"}},[t._v(t._s(t.icons["mdiAutorenew"]))])],1)],1)},a=[],r=n("2909"),s=n("1da1"),o=(n("96cf"),n("b0c0"),n("d3b7"),n("159b"),n("d81d"),n("6062"),n("3ca3"),n("ddb0"),n("caad"),n("2532"),n("4de4"),n("25f0"),n("94ed")),l=n("20b6"),c=n("9f6c"),u=n("fe75"),d={name:"Filters",props:{camerasSelect:Boolean,datePicker:Boolean,labelSelect:Boolean,roomSelect:Boolean,statusSelect:Boolean,typeSelect:Boolean},data:function(){return{dateModal:!1,dateRange:[],filter:{cameras:!1,labels:!1,rooms:!1,types:!1},icons:{mdiAutorenew:o["m"],mdiCalendar:o["q"],mdiChevronDown:o["w"],mdiChevronUp:o["z"],mdiFilter:o["U"]},items:[{enabled:this.camerasSelect,action:"mdi-camera",type:"cameras",items:[],title:this.$t("cameras")},{enabled:this.roomSelect,action:"mdi-door-open",type:"rooms",items:[],title:this.$t("rooms")},{enabled:this.labelSelect,action:"mdi-label",type:"labels",items:[],title:this.$t("labels")},{enabled:this.typeSelect,action:"mdi-image-multiple",type:"types",items:[{title:this.$t("snapshot"),selected:!1},{title:this.$t("video"),selected:!1}],title:this.$t("type")}],page:1,query:"",selected:[],showFilter:!1}},computed:{darkMode:function(){return"dark"===localStorage.getItem("theme")},uiConfig:function(){return this.$store.state.config.ui}},created:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var n,i,a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,"Notifications"===t.$route.name&&t.items.forEach((function(e){"types"===e.type&&e.items.push({title:t.$t("error"),selected:!1},{title:t.$t("warning"),selected:!1})})),!t.camerasSelect){e.next=7;break}return e.next=5,Object(l["b"])("cameras");case 5:n=e.sent,t.items.forEach((function(t){"cameras"===t.type&&(t.items=n.data.map((function(t){return{title:t.name,selected:!1}})))}));case 7:if(!t.labelSelect){e.next=20;break}if("Notifications"!==t.$route.name){e.next=15;break}return e.next=11,t.getNotificationLabels();case 11:i=e.sent,t.items.forEach((function(e){if("labels"===e.type){var n=Object(r["a"])(new Set(i.map((function(e){return e.includes("no label")?t.$t("no_label"):e.includes("Custom")?t.$t("custom"):e}))));e.items=n.map((function(t){return{title:t,selected:!1}}))}})),e.next=20;break;case 15:if("Recordings"!==t.$route.name){e.next=20;break}return e.next=18,t.getRecordingsLabels();case 18:a=e.sent,t.items.forEach((function(e){if("labels"===e.type){var n=Object(r["a"])(new Set(a.map((function(e){return e.includes("no label")?t.$t("no_label"):e.includes("Custom")?t.$t("custom"):e}))));e.items=n.map((function(t){return{title:t,selected:!1}}))}}));case 20:if(!t.roomSelect){e.next=25;break}return e.next=23,Object(l["b"])("general");case 23:s=e.sent,t.items.forEach((function(e){"rooms"===e.type&&(e.items=s.data.rooms.map((function(e){return{title:"Standard"===e?t.$t("standard"):e,selected:!1}})))}));case 25:e.next=31;break;case 27:e.prev=27,e.t0=e["catch"](0),console.log(e.t0),t.$toast.error(e.t0.message);case 31:t.$watch("items",t.watchItems,{deep:!0});case 32:case"end":return e.stop()}}),e,null,[[0,27]])})))()},methods:{clearFilter:function(){this.items.forEach((function(t){t.items.forEach((function(t){t.selected=!1}))})),this.dateRange=[],this.saveDateRange()},filterQuery:function(t){if(t&&t.length){this.query="";var e=t.map((function(t){if("cameras"===t.type)return t.value})).filter((function(t){return t})),n=t.map((function(t){if("labels"===t.type)return t.value})).filter((function(t){return t})),i=t.map((function(t){if("rooms"===t.type)return t.value})).filter((function(t){return t})),a=t.map((function(t){if("types"===t.type)return t.value})).filter((function(t){return t})),r=t.map((function(t){if("date"===t.type)return t.value})).filter((function(t){return t}));if(e&&e.length>0&&(this.query+="&cameras=".concat(e.toString())),n&&n.length>0){var s=this.$t("custom"),o=this.$t("no_label");n=n.map((function(t){return t===s?"Custom":t===o?"no label":t})),this.query+="&labels=".concat(n.toString())}if(i&&i.length>0){var l=this.$t("standard");i=i.map((function(t){return t===l?"Standard":t})),this.query+="&rooms=".concat(i.toString())}if(a&&a.length>0){var c=this.$t("snapshot"),u=this.$t("video"),d=this.$t("error"),h=this.$t("warning");a=a.map((function(t){return t===c?"Snapshot":t===u?"Video":t===d?"ERROR":t===h?"WARN":t})),this.query+="&types=".concat(a.toString())}r&&r.length>0&&r[0].start&&(this.query+="&from=".concat(r[0].start)),r&&r.length>0&&r[0].end&&(this.query+="&to=".concat(r[0].end))}else this.query="";this.$emit("filter",this.query)},getNotificationLabels:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=[],e.next=3,Object(c["a"])("?page=1");case 3:i=e.sent,t.page;case 5:if(!(t.page<=i.data.pagination.totalPages)){e.next=14;break}if(!(t.page>1)){e.next=10;break}return e.next=9,Object(c["a"])("?page=".concat(t.page));case 9:i=e.sent;case 10:i.data.result.forEach((function(t){return n.push(t.label)}));case 11:t.page++,e.next=5;break;case 14:return e.abrupt("return",n);case 15:case"end":return e.stop()}}),e)})))()},getRecordingsLabels:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=[],e.next=3,Object(u["a"])("?page=1");case 3:i=e.sent,t.page;case 5:if(!(t.page<=i.data.pagination.totalPages)){e.next=14;break}if(!(t.page>1)){e.next=10;break}return e.next=9,Object(u["a"])("?page=".concat(t.page));case 9:i=e.sent;case 10:i.data.result.forEach((function(t){return n.push(t.label)}));case 11:t.page++,e.next=5;break;case 14:return e.abrupt("return",n);case 15:case"end":return e.stop()}}),e)})))()},saveDateRange:function(){var t,e=[],n={};if(this.dateRange.length){var i=this.dateRange[0],a=this.dateRange[1];i&&(n.start=i),n.end=a||i,e.push({value:n,type:"date"})}this.selected=this.selected.filter((function(t){return"date"!==t.type})),(t=this.selected).push.apply(t,e),this.filterQuery(this.selected),this.$refs.dialog.save(this.dateRange)},watchItems:function(){var t,e=[];this.items.forEach((function(t){t.items.forEach((function(n){n.selected&&e.push({value:n.title,type:t.type})}))})),this.selected=this.selected.filter((function(t){return"date"===t.type})),(t=this.selected).push.apply(t,e),this.filterQuery(this.selected)}}},h=d,p=(n("d469"),n("2877")),f=n("6544"),m=n.n(f),g=n("4ca6"),b=n("8336"),v=n("b0af"),y=n("ac7c"),w=n("cc20"),x=n("2e4b"),k=n("169a"),S=n("132d"),O=n("8860"),$=n("56b0"),C=n("da13"),j=n("5d23"),_=n("e449"),I=n("2fa4"),E=Object(p["a"])(h,i,a,!1,null,"1cf49cd4",null);e["a"]=E.exports;m()(E,{VBadge:g["a"],VBtn:b["a"],VCard:v["a"],VCheckbox:y["a"],VChip:w["a"],VDatePicker:x["a"],VDialog:k["a"],VIcon:S["a"],VList:O["a"],VListGroup:$["a"],VListItem:C["a"],VListItemContent:j["a"],VListItemTitle:j["c"],VMenu:_["a"],VSpacer:I["a"]})},"495d":function(t,e,n){},"4d90":function(t,e,n){"use strict";var i=n("23e7"),a=n("0ccb").start,r=n("9a0c");i({target:"String",proto:!0,forced:r},{padStart:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}})},"4ffd":function(t,e,n){t.exports=n.p+"img/logo.84ee0528.png"},"5aa5":function(t,e,n){},"5ded":function(t,e,n){"use strict";n("807b")},"6ca7":function(t,e,n){},"807b":function(t,e,n){},"841c":function(t,e,n){"use strict";var i=n("c65b"),a=n("d784"),r=n("825a"),s=n("1d80"),o=n("129f"),l=n("577e"),c=n("dc4a"),u=n("14c3");a("search",(function(t,e,n){return[function(e){var n=s(this),a=void 0==e?void 0:c(e,t);return a?i(a,e,n):new RegExp(e)[t](l(n))},function(t){var i=r(this),a=l(t),s=n(e,i,a);if(s.done)return s.value;var c=i.lastIndex;o(c,0)||(i.lastIndex=0);var d=u(i,a);return o(i.lastIndex,c)||(i.lastIndex=c),null===d?-1:d.index}]}))},"8b37":function(t,e,n){},"8fea":function(t,e,n){"use strict";var i=n("3835"),a=n("53ca"),r=n("5530"),s=(n("4de4"),n("d3b7"),n("498a"),n("a9e3"),n("7db0"),n("c740"),n("a434"),n("4e827"),n("d81d"),n("a630"),n("3ca3"),n("b0c0"),n("99af"),n("91f4"),n("2909")),o=(n("fb6a"),n("ac1f"),n("841c"),n("80d2")),l=n("2b0e"),c=l["a"].extend({name:"v-data",inheritAttrs:!1,props:{items:{type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{}}},sortBy:{type:[String,Array]},sortDesc:{type:[Boolean,Array]},customSort:{type:Function,default:o["G"]},mustSort:Boolean,multiSort:Boolean,page:{type:Number,default:1},itemsPerPage:{type:Number,default:10},groupBy:{type:[String,Array],default:function(){return[]}},groupDesc:{type:[Boolean,Array],default:function(){return[]}},customGroup:{type:Function,default:o["w"]},locale:{type:String,default:"en-US"},disableSort:Boolean,disablePagination:Boolean,disableFiltering:Boolean,search:String,customFilter:{type:Function,default:o["F"]},serverItemsLength:{type:Number,default:-1}},data:function(){var t={page:this.page,itemsPerPage:this.itemsPerPage,sortBy:Object(o["J"])(this.sortBy),sortDesc:Object(o["J"])(this.sortDesc),groupBy:Object(o["J"])(this.groupBy),groupDesc:Object(o["J"])(this.groupDesc),mustSort:this.mustSort,multiSort:this.multiSort};this.options&&(t=Object.assign(t,this.options));var e,n,i=t,a=i.sortBy,r=i.sortDesc,l=i.groupBy,c=i.groupDesc,u=a.length-r.length,d=l.length-c.length;u>0&&(e=t.sortDesc).push.apply(e,Object(s["a"])(Object(o["n"])(u,!1)));d>0&&(n=t.groupDesc).push.apply(n,Object(s["a"])(Object(o["n"])(d,!1)));return{internalOptions:t}},computed:{itemsLength:function(){return this.serverItemsLength>=0?this.serverItemsLength:this.filteredItems.length},pageCount:function(){return this.internalOptions.itemsPerPage<=0?1:Math.ceil(this.itemsLength/this.internalOptions.itemsPerPage)},pageStart:function(){return-1!==this.internalOptions.itemsPerPage&&this.items.length?(this.internalOptions.page-1)*this.internalOptions.itemsPerPage:0},pageStop:function(){return-1===this.internalOptions.itemsPerPage?this.itemsLength:this.items.length?Math.min(this.itemsLength,this.internalOptions.page*this.internalOptions.itemsPerPage):0},isGrouped:function(){return!!this.internalOptions.groupBy.length},pagination:function(){return{page:this.internalOptions.page,itemsPerPage:this.internalOptions.itemsPerPage,pageStart:this.pageStart,pageStop:this.pageStop,pageCount:this.pageCount,itemsLength:this.itemsLength}},filteredItems:function(){var t=this.items.slice();return!this.disableFiltering&&this.serverItemsLength<=0&&(t=this.customFilter(t,this.search)),t},computedItems:function(){var t=this.filteredItems.slice();return(!this.disableSort||this.internalOptions.groupBy.length)&&this.serverItemsLength<=0&&(t=this.sortItems(t)),!this.disablePagination&&this.serverItemsLength<=0&&(t=this.paginateItems(t)),t},groupedItems:function(){return this.isGrouped?this.groupItems(this.computedItems):null},scopedProps:function(){return{sort:this.sort,sortArray:this.sortArray,group:this.group,items:this.computedItems,options:this.internalOptions,updateOptions:this.updateOptions,pagination:this.pagination,groupedItems:this.groupedItems,originalItemsLength:this.items.length}},computedOptions:function(){return Object(r["a"])({},this.options)}},watch:{computedOptions:{handler:function(t,e){Object(o["k"])(t,e)||this.updateOptions(t)},deep:!0,immediate:!0},internalOptions:{handler:function(t,e){Object(o["k"])(t,e)||this.$emit("update:options",t)},deep:!0,immediate:!0},page:function(t){this.updateOptions({page:t})},"internalOptions.page":function(t){this.$emit("update:page",t)},itemsPerPage:function(t){this.updateOptions({itemsPerPage:t})},"internalOptions.itemsPerPage":function(t){this.$emit("update:items-per-page",t)},sortBy:function(t){this.updateOptions({sortBy:Object(o["J"])(t)})},"internalOptions.sortBy":function(t,e){!Object(o["k"])(t,e)&&this.$emit("update:sort-by",Array.isArray(this.sortBy)?t:t[0])},sortDesc:function(t){this.updateOptions({sortDesc:Object(o["J"])(t)})},"internalOptions.sortDesc":function(t,e){!Object(o["k"])(t,e)&&this.$emit("update:sort-desc",Array.isArray(this.sortDesc)?t:t[0])},groupBy:function(t){this.updateOptions({groupBy:Object(o["J"])(t)})},"internalOptions.groupBy":function(t,e){!Object(o["k"])(t,e)&&this.$emit("update:group-by",Array.isArray(this.groupBy)?t:t[0])},groupDesc:function(t){this.updateOptions({groupDesc:Object(o["J"])(t)})},"internalOptions.groupDesc":function(t,e){!Object(o["k"])(t,e)&&this.$emit("update:group-desc",Array.isArray(this.groupDesc)?t:t[0])},multiSort:function(t){this.updateOptions({multiSort:t})},"internalOptions.multiSort":function(t){this.$emit("update:multi-sort",t)},mustSort:function(t){this.updateOptions({mustSort:t})},"internalOptions.mustSort":function(t){this.$emit("update:must-sort",t)},pageCount:{handler:function(t){this.$emit("page-count",t)},immediate:!0},computedItems:{handler:function(t){this.$emit("current-items",t)},immediate:!0},pagination:{handler:function(t,e){Object(o["k"])(t,e)||this.$emit("pagination",this.pagination)},immediate:!0}},methods:{toggle:function(t,e,n,i,a,r){var s=e.slice(),l=n.slice(),c=s.findIndex((function(e){return e===t}));return c<0?(r||(s=[],l=[]),s.push(t),l.push(!1)):c>=0&&!l[c]?l[c]=!0:a?l[c]=!1:(s.splice(c,1),l.splice(c,1)),Object(o["k"])(s,e)&&Object(o["k"])(l,n)||(i=1),{by:s,desc:l,page:i}},group:function(t){var e=this.toggle(t,this.internalOptions.groupBy,this.internalOptions.groupDesc,this.internalOptions.page,!0,!1),n=e.by,i=e.desc,a=e.page;this.updateOptions({groupBy:n,groupDesc:i,page:a})},sort:function(t){if(Array.isArray(t))return this.sortArray(t);var e=this.toggle(t,this.internalOptions.sortBy,this.internalOptions.sortDesc,this.internalOptions.page,this.internalOptions.mustSort,this.internalOptions.multiSort),n=e.by,i=e.desc,a=e.page;this.updateOptions({s