UNPKG

camera.ui

Version:

NVR like user interface for RTSP capable cameras.

1 lines 161 kB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["notifications"],{"02f0":function(e,t,i){},"0ccb":function(e,t,i){var n=i("e330"),s=i("50c4"),a=i("577e"),r=i("1148"),o=i("1d80"),l=n(r),c=n("".slice),d=Math.ceil,u=function(e){return function(t,i,n){var r,u,h=a(o(t)),p=s(i),f=h.length,m=void 0===n?" ":a(n);return p<=f||""==m?h:(r=p-f,u=l(m,d(r/m.length)),u.length>r&&(u=c(u,0,r)),e?h+u:u+h)}};e.exports={start:u(!1),end:u(!0)}},"0fd9":function(e,t,i){"use strict";var n=i("ade3"),s=i("5530"),a=(i("d3b7"),i("caad"),i("2532"),i("99af"),i("b64b"),i("ac1f"),i("5319"),i("4ec9"),i("3ca3"),i("ddb0"),i("159b"),i("4b85"),i("2b0e")),r=i("d9f7"),o=i("80d2"),l=["sm","md","lg","xl"],c=["start","end","center"];function d(e,t){return l.reduce((function(i,n){return i[e+Object(o["I"])(n)]=t(),i}),{})}var u=function(e){return[].concat(c,["baseline","stretch"]).includes(e)},h=d("align",(function(){return{type:String,default:null,validator:u}})),p=function(e){return[].concat(c,["space-between","space-around"]).includes(e)},f=d("justify",(function(){return{type:String,default:null,validator:p}})),m=function(e){return[].concat(c,["space-between","space-around","stretch"]).includes(e)},v=d("alignContent",(function(){return{type:String,default:null,validator:m}})),g={align:Object.keys(h),justify:Object.keys(f),alignContent:Object.keys(v)},b={align:"align",justify:"justify",alignContent:"align-content"};function w(e,t,i){var n=b[e];if(null!=i){if(t){var s=t.replace(e,"");n+="-".concat(s)}return n+="-".concat(i),n.toLowerCase()}}var y=new Map;t["a"]=a["a"].extend({name:"v-row",functional:!0,props:Object(s["a"])(Object(s["a"])(Object(s["a"])({tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:u}},h),{},{justify:{type:String,default:null,validator:p}},f),{},{alignContent:{type:String,default:null,validator:m}},v),render:function(e,t){var i=t.props,s=t.data,a=t.children,o="";for(var l in i)o+=String(i[l]);var c=y.get(o);return c||function(){var e,t;for(t in c=[],g)g[t].forEach((function(e){var n=i[e],s=w(t,e,n);s&&c.push(s)}));c.push((e={"no-gutters":i.noGutters,"row--dense":i.dense},Object(n["a"])(e,"align-".concat(i.align),i.align),Object(n["a"])(e,"justify-".concat(i.justify),i.justify),Object(n["a"])(e,"align-content-".concat(i.alignContent),i.alignContent),e)),y.set(o,c)}(),e(i.tag,Object(r["a"])(s,{staticClass:"row",class:c}),a)}})},2102:function(e,t,i){},"2e4b":function(e,t,i){"use strict";var n=i("5530"),s=(i("a9e3"),i("caad"),i("99af"),i("d81d"),i("ac1f"),i("1276"),i("5319"),i("4de4"),i("d3b7"),i("b0c0"),i("d951"),i("9d26")),a=i("daf1"),r=i("58df"),o=Object(r["a"])(a["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(e,t){this.isReversing=e<t}},methods:{genYearIcon:function(){return this.$createElement(s["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(e){return e("div",{staticClass:"v-date-picker-title",class:{"v-date-picker-title--disabled":this.disabled}},[this.getYearBtn(),this.genTitleDate()])}}),l=i("3835"),c=(i("2102"),i("afdd")),d=i("a9ad"),u=i("2b0e"),h=u["a"].extend({name:"localable",props:{locale:String},computed:{currentLocale:function(){return this.locale||this.$vuetify.lang.current}}}),p=i("7560"),f=(i("498a"),i("a15b"),i("50de"));function m(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{start:0,length:0},n=function(e){var t=e.trim().split(" ")[0].split("-"),i=Object(l["a"])(t,3),n=i[0],s=i[1],a=i[2];return[Object(f["a"])(n,4),Object(f["a"])(s||1),Object(f["a"])(a||1)].join("-")};try{var s=new Intl.DateTimeFormat(e||void 0,t);return function(e){return s.format(new Date("".concat(n(e),"T00:00:00+00:00")))}}catch(a){return i.start||i.length?function(e){return n(e).substr(i.start||0,i.length)}:void 0}}var v=m,g=function(e,t){var i=e.split("-").map(Number),n=Object(l["a"])(i,2),s=n[0],a=n[1];return a+t===0?"".concat(s-1,"-12"):a+t===13?"".concat(s+1,"-01"):"".concat(s,"-").concat(Object(f["a"])(a+t))},b=Object(r["a"])(d["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]?v(this.currentLocale,{month:"long",year:"numeric",timeZone:"UTC"},{length:7}):v(this.currentLocale,{year:"numeric",timeZone:"UTC"},{length:4})}},watch:{value:function(e,t){this.isReversing=e<t}},methods:{genBtn:function(e){var t=this,i=e>0?this.nextAriaLabel:this.prevAriaLabel,n=i?this.$vuetify.lang.t(i):void 0,a=this.disabled||e<0&&this.min&&this.calculateChange(e)<this.min||e>0&&this.max&&this.calculateChange(e)>this.max;return this.$createElement(c["a"],{attrs:{"aria-label":n},props:{dark:this.dark,disabled:a,icon:!0,light:this.light},on:{click:function(i){i.stopPropagation(),t.$emit("input",t.calculateChange(e))}}},[this.$createElement(s["a"],e<0===!this.$vuetify.rtl?this.prevIcon:this.nextIcon)])},calculateChange:function(e){var t=String(this.value).split("-").map(Number),i=Object(l["a"])(t,2),n=i[0],s=i[1];return null==s?"".concat(n+e):g(String(this.value),e)},genHeader:function(){var e=this,t=!this.disabled&&(this.color||"accent"),i=this.$createElement("div",this.setTextColor(t,{key:String(this.value)}),[this.$createElement("button",{attrs:{type:"button"},on:{click:function(){return e.$emit("toggle")}}},[this.$slots.default||this.formatter(String(this.value))])]),n=this.$createElement("transition",{props:{name:this.isReversing===!this.$vuetify.rtl?"tab-reverse-transition":"tab-transition"}},[i]);return this.$createElement("div",{staticClass:"v-date-picker-header__value",class:{"v-date-picker-header__value--disabled":this.disabled}},[n])}},render:function(){return this.$createElement("div",{staticClass:"v-date-picker-header",class:Object(n["a"])({"v-date-picker-header--disabled":this.disabled},this.themeClasses)},[this.genBtn(-1),this.genHeader(),this.genBtn(1)])}}),w=(i("2af1"),i("4d90"),i("2909")),y=(i("2532"),i("4e827"),i("c982"),i("c3f0"));i("b64b"),i("8a79"),i("fb6a");function x(e,t,i){return Object.keys(e.$listeners).reduce((function(n,s){return s.endsWith(t)&&(n[s.slice(0,-t.length)]=function(t){return e.$emit(s,i,t)}),n}),{})}function S(e,t){return Object.keys(e.$listeners).reduce((function(i,n){return n.endsWith(t)&&(i[n]=e.$listeners[n]),i}),{})}var C=function(e,t){var i=e.split("-"),n=Object(l["a"])(i,3),s=n[0],a=n[1],r=void 0===a?1:a,o=n[2],c=void 0===o?1:o;return"".concat(s,"-").concat(Object(f["a"])(r),"-").concat(Object(f["a"])(c)).substr(0,{date:10,month:7,year:4}[t])};function k(e,t,i,n){return(!n||n(e))&&(!t||e>=t.substr(0,10))&&(!i||e<=i)}var T=i("d9f7"),E=i("80d2"),M=Object(r["a"])(d["a"],h,p["a"]).extend({directives:{Touch:y["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(e,t){this.isReversing=e<t}},mounted:function(){this.wheelThrottle=Object(E["H"])(this.wheel,250)},methods:{genButtonClasses:function(e,t,i,s,a,r){return Object(n["a"])({"v-size--default":!t,"v-date-picker-table__current":s,"v-btn--active":i,"v-btn--flat":!e||this.disabled,"v-btn--text":i===s,"v-btn--rounded":t,"v-btn--disabled":!e||this.disabled,"v-btn--outlined":s&&!i,"v-date-picker--first-in-range":a,"v-date-picker--last-in-range":r},this.themeClasses)},genButtonEvents:function(e,t,i){var n=this;if(!this.disabled)return Object(T["c"])({click:function(){t&&!n.readonly&&n.$emit("input",e)}},x(this,":".concat(i),e))},genButton:function(e,t,i,n){var s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=k(e,this.min,this.max,this.allowedDates),r=this.isSelected(e)&&a,o=e===this.current,l=r?this.setBackgroundColor:this.setTextColor,c=(r||o)&&(this.color||"accent"),d=!1,u=!1;return this.range&&this.value&&Array.isArray(this.value)&&(d=e===this.value[0],u=e===this.value[this.value.length-1]),this.$createElement("button",l(c,{staticClass:"v-btn",class:this.genButtonClasses(a&&!s,t,r,o,d,u),attrs:{type:"button"},domProps:{disabled:this.disabled||!a||s},on:this.genButtonEvents(e,a,i)}),[this.$createElement("div",{staticClass:"v-btn__content"},[n(e)]),this.genEvents(e)])},getEventColors:function(e){var t,i=function(e){return Array.isArray(e)?e:[e]},n=[];return t=Array.isArray(this.events)?this.events.includes(e):this.events instanceof Function?this.events(e)||!1:this.events&&this.events[e]||!1,t?(n=!0!==t?i(t):"string"===typeof this.eventColor?[this.eventColor]:"function"===typeof this.eventColor?i(this.eventColor(e)):Array.isArray(this.eventColor)?this.eventColor:i(this.eventColor[e]),n.filter((function(e){return e}))):[]},genEvents:function(e){var t=this,i=this.getEventColors(e);return i.length?this.$createElement("div",{staticClass:"v-date-picker-table__events"},i.map((function(e){return t.$createElement("div",t.setBackgroundColor(e))}))):null},isValidScroll:function(e,t){var i=t(e),n=1===i.split("-").length?"year":"month";return e<0&&(!this.min||i>=C(this.min,n))||e>0&&(!this.max||i<=C(this.max,n))},wheel:function(e,t){this.$emit("update:table-date",t(e.deltaY))},touch:function(e,t){this.$emit("update:table-date",t(e))},genTable:function(e,t,i){var s=this,a=this.$createElement("transition",{props:{name:this.computedTransition}},[this.$createElement("table",{key:this.tableDate},t)]),r={name:"touch",value:{left:function(e){return e.offsetX<-15&&s.isValidScroll(1,i)&&s.touch(1,i)},right:function(e){return e.offsetX>15&&s.isValidScroll(-1,i)&&s.touch(-1,i)}}};return this.$createElement("div",{staticClass:e,class:Object(n["a"])({"v-date-picker-table--disabled":this.disabled},this.themeClasses),on:!this.disabled&&this.scrollable?{wheel:function(e){e.preventDefault(),s.isValidScroll(e.deltaY,i)&&s.wheelThrottle(e,i)}}:void 0,directives:[r]},[a])},isSelected:function(e){if(Array.isArray(this.value)){if(this.range&&2===this.value.length){var t=Object(w["a"])(this.value).sort(),i=Object(l["a"])(t,2),n=i[0],s=i[1];return n<=e&&e<=s}return-1!==this.value.indexOf(e)}return e===this.value}}});function O(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e<100&&e>=0?(t=new Date(Date.UTC(e,i,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC(e,i,n)),t}function $(e,t,i){var n=7+t-i,s=(7+O(e,0,n).getUTCDay()-t)%7;return-s+n-1}function D(e,t,i,n){var s=[0,31,59,90,120,151,181,212,243,273,304,334][t];return t>1&&I(e)&&s++,s+i}function P(e,t,i){var n=$(e,t,i),s=$(e+1,t,i),a=I(e)?366:365;return(a-n+s)/7}function L(e,t,i,n,s){var a=$(e,n,s),r=Math.ceil((D(e,t,i,n)-a)/7);return r<1?r+P(e-1,n,s):r>P(e,n,s)?r-P(e,n,s):r}function I(e){return e%4===0&&e%100!==0||e%400===0}var j=Object(r["a"])(M).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||v(this.currentLocale,{day:"numeric",timeZone:"UTC"},{start:8,length:2})},weekdayFormatter:function(){return this.weekdayFormat||v(this.currentLocale,{weekday:"narrow",timeZone:"UTC"})},weekDays:function(){var e=this,t=parseInt(this.firstDayOfWeek,10);return this.weekdayFormatter?Object(E["i"])(7).map((function(i){return e.weekdayFormatter("2017-01-".concat(t+i+15))})):Object(E["i"])(7).map((function(e){return["S","M","T","W","T","F","S"][(e+t)%7]}))}},methods:{calculateTableDate:function(e){return g(this.tableDate,Math.sign(e||1))},genTHead:function(){var e=this,t=this.weekDays.map((function(t){return e.$createElement("th",t)}));return this.showWeek&&t.unshift(this.$createElement("th")),this.$createElement("thead",this.genTR(t))},weekDaysBeforeFirstDayOfTheMonth:function(){var e=new Date("".concat(this.displayedYear,"-").concat(Object(f["a"])(this.displayedMonth+1),"-01T00:00:00+00:00")),t=e.getUTCDay();return(t-parseInt(this.firstDayOfWeek)+7)%7},getWeekNumber:function(e){return L(this.displayedYear,this.displayedMonth,e,parseInt(this.firstDayOfWeek),parseInt(this.localeFirstDayOfYear))},genWeekNumber:function(e){return this.$createElement("td",[this.$createElement("small",{staticClass:"v-date-picker-table--date__week"},String(e).padStart(2,"0"))])},genTBody:function(){var e=[],t=new Date(this.displayedYear,this.displayedMonth+1,0).getDate(),i=[],n=this.weekDaysBeforeFirstDayOfTheMonth();this.showWeek&&i.push(this.genWeekNumber(this.getWeekNumber(1)));var s=this.displayedMonth?this.displayedYear:this.displayedYear-1,a=(this.displayedMonth+11)%12,r=new Date(this.displayedYear,this.displayedMonth,0).getDate(),o=this.showWeek?8:7;while(n--){var l="".concat(s,"-").concat(Object(f["a"])(a+1),"-").concat(Object(f["a"])(r-n));i.push(this.$createElement("td",this.showAdjacentMonths?[this.genButton(l,!0,"date",this.formatter,!0)]:[]))}for(n=1;n<=t;n++){var c="".concat(this.displayedYear,"-").concat(Object(f["a"])(this.displayedMonth+1),"-").concat(Object(f["a"])(n));i.push(this.$createElement("td",[this.genButton(c,!0,"date",this.formatter)])),i.length%o===0&&(e.push(this.genTR(i)),i=[],this.showWeek&&(n<t||this.showAdjacentMonths)&&i.push(this.genWeekNumber(this.getWeekNumber(n+7))))}var d=11===this.displayedMonth?this.displayedYear+1:this.displayedYear,u=(this.displayedMonth+1)%12,h=1;while(i.length<o){var p="".concat(d,"-").concat(Object(f["a"])(u+1),"-").concat(Object(f["a"])(h++));i.push(this.$createElement("td",this.showAdjacentMonths?[this.genButton(p,!0,"date",this.formatter,!0)]:[]))}return i.length&&e.push(this.genTR(i)),this.$createElement("tbody",e)},genTR:function(e){return[this.$createElement("tr",e)]}},render:function(){return this.genTable("v-date-picker-table v-date-picker-table--date",[this.genTHead(),this.genTBody()],this.calculateTableDate)}}),_=(i("cb29"),Object(r["a"])(M).extend({name:"v-date-picker-month-table",computed:{formatter:function(){return this.format||v(this.currentLocale,{month:"short",timeZone:"UTC"},{start:5,length:2})}},methods:{calculateTableDate:function(e){return"".concat(parseInt(this.tableDate,10)+Math.sign(e||1))},genTBody:function(){for(var e=this,t=[],i=Array(3).fill(null),n=12/i.length,s=function(n){var s=i.map((function(t,s){var a=n*i.length+s,r="".concat(e.displayedYear,"-").concat(Object(f["a"])(a+1));return e.$createElement("td",{key:a},[e.genButton(r,!1,"month",e.formatter)])}));t.push(e.$createElement("tr",{key:n},s))},a=0;a<n;a++)s(a);return this.$createElement("tbody",t)}},render:function(){return this.genTable("v-date-picker-table v-date-picker-table--month",[this.genTBody()],this.calculateTableDate)}})),A=(i("02f0"),Object(r["a"])(d["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||v(this.currentLocale,{year:"numeric",timeZone:"UTC"},{length:4})}},mounted:function(){var e=this;setTimeout((function(){var t=e.$el.getElementsByClassName("active")[0];t?e.$el.scrollTop=t.offsetTop-e.$el.offsetHeight/2+t.offsetHeight/2:e.min&&!e.max?e.$el.scrollTop=e.$el.scrollHeight:!e.min&&e.max?e.$el.scrollTop=0:e.$el.scrollTop=e.$el.scrollHeight/2-e.$el.offsetHeight/2}))},methods:{genYearItem:function(e){var t=this,i=this.formatter("".concat(e)),n=parseInt(this.value,10)===e,s=n&&(this.color||"primary");return this.$createElement("li",this.setTextColor(s,{key:e,class:{active:n},on:Object(T["c"])({click:function(){return t.$emit("input",e)}},x(this,":year",e))}),i)},genYearItems:function(){for(var e=[],t=this.value?parseInt(this.value,10):(new Date).getFullYear(),i=this.max?parseInt(this.max,10):t+100,n=Math.min(i,this.min?parseInt(this.min,10):t-100),s=i;s>=n;s--)e.push(this.genYearItem(s));return e}},render:function(){return this.$createElement("ul",{staticClass:"v-date-picker-years",ref:"years"},this.genYearItems())}})),R=i("4754"),N=(i("53ca"),i("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 B(e,t){return I(e)?F[t]:N[t]}var V=i("d9bd");t["a"]=Object(r["a"])(h,R["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(e){return["date","month"].includes(e)}},value:[Array,String],weekdayFormat:Function,yearFormat:Function,yearIcon:String},data:function(){var e=this,t=new Date;return{internalActivePicker:this.type.toUpperCase(),inputDay:null,inputMonth:null,inputYear:null,isReversing:!1,now:t,tableDate:function(){if(e.pickerDate)return e.pickerDate;var i=Object(E["J"])(e.value),n=i[i.length-1]||("string"===typeof e.showCurrent?e.showCurrent:"".concat(t.getFullYear(),"-").concat(t.getMonth()+1));return C(n,"date"===e.type?"month":"year")}()}},computed:{multipleValue:function(){return Object(E["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(e){return e.substr(0,7)})):this.value.substr(0,7):this.value},current:function(){return!0===this.showCurrent?C("".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?C(this.min,"month"):null},maxMonth:function(){return this.max?C(this.max,"month"):null},minYear:function(){return this.min?C(this.min,"year"):null},maxYear:function(){return this.max?C(this.max,"year"):null},formatters:function(){return{year:this.yearFormat||v(this.currentLocale,{year:"numeric",timeZone:"UTC"},{length:4}),titleDate:this.titleDateFormat||(this.isMultiple?this.defaultTitleMultipleDateFormatter:this.defaultTitleDateFormatter)}},defaultTitleMultipleDateFormatter:function(){var e=this;return function(t){return t.length?1===t.length?e.defaultTitleDateFormatter(t[0]):e.$vuetify.lang.t(e.selectedItemsText,t.length):"-"}},defaultTitleDateFormatter:function(){var e={year:{year:"numeric",timeZone:"UTC"},month:{month:"long",timeZone:"UTC"},date:{weekday:"short",month:"short",day:"numeric",timeZone:"UTC"}},t=v(this.currentLocale,e[this.type],{start:0,length:{date:10,month:7,year:4}[this.type]}),i=function(e){return t(e).replace(/([^\d\s])([\d])/g,(function(e,t,i){return"".concat(t," ").concat(i)})).replace(", ",",<br>")};return this.landscape?i:t}},watch:{internalActivePicker:{immediate:!0,handler:function(e){this.$emit("update:active-picker",e)}},activePicker:function(e){this.internalActivePicker=e},tableDate:function(e,t){var i="month"===this.type?"year":"month";this.isReversing=C(e,i)<C(t,i),this.$emit("update:picker-date",e)},pickerDate:function(e){e?this.tableDate=e:this.lastValue&&"date"===this.type?this.tableDate=C(this.lastValue,"month"):this.lastValue&&"month"===this.type&&(this.tableDate=C(this.lastValue,"year"))},value:function(e,t){this.checkMultipleProp(),this.setInputDate(),(this.isMultiple||!this.value||this.pickerDate)&&(!this.isMultiple||!this.multipleValue.length||t&&t.length||this.pickerDate)||(this.tableDate=C(this.inputDate,"month"===this.type?"year":"month"))},type:function(e){if(this.internalActivePicker=e.toUpperCase(),this.value&&this.value.length){var t=this.multipleValue.map((function(t){return C(t,e)})).filter(this.isDateAllowed);this.$emit("input",this.isMultiple?t:t[0])}}},created:function(){this.checkMultipleProp(),this.pickerDate!==this.tableDate&&this.$emit("update:picker-date",this.tableDate),this.setInputDate()},methods:{emitInput:function(e){if(this.range)if(1!==this.multipleValue.length)this.$emit("input",[e]);else{var t=[this.multipleValue[0],e];this.$emit("input",t),this.$emit("change",t)}else{var i=this.multiple?-1===this.multipleValue.indexOf(e)?this.multipleValue.concat([e]):this.multipleValue.filter((function(t){return t!==e})):e;this.$emit("input",i),this.multiple||this.$emit("change",e)}},checkMultipleProp:function(){if(null!=this.value){var e=this.value.constructor.name,t=this.isMultiple?"Array":"String";e!==t&&Object(V["c"])("Value must be ".concat(this.isMultiple?"an":"a"," ").concat(t,", got ").concat(e),this)}},isDateAllowed:function(e){return k(e,this.min,this.max,this.allowedDates)},yearClick:function(e){this.inputYear=e,"month"===this.type?this.tableDate="".concat(e):this.tableDate="".concat(e,"-").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(e){this.inputYear=parseInt(e.split("-")[0],10),this.inputMonth=parseInt(e.split("-")[1],10)-1,"date"===this.type?(this.inputDay&&(this.inputDay=Math.min(this.inputDay,B(this.inputYear,this.inputMonth+1))),this.tableDate=e,this.internalActivePicker="DATE",this.reactive&&!this.readonly&&!this.isMultiple&&this.isDateAllowed(this.inputDate)&&this.$emit("input",this.inputDate)):this.emitInput(this.inputDate)},dateClick:function(e){this.inputYear=parseInt(e.split("-")[0],10),this.inputMonth=parseInt(e.split("-")[1],10)-1,this.inputDay=parseInt(e.split("-")[2],10),this.emitInput(this.inputDate)},genPickerTitle:function(){var e=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(t){return e.internalActivePicker=t?"YEAR":e.type.toUpperCase()}}})},genTableHeader:function(){var e=this;return this.$createElement(b,{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 e.internalActivePicker="DATE"===e.internalActivePicker?"MONTH":"YEAR"},input:function(t){return e.tableDate=t}}})},genDateTable:function(){var e=this;return this.$createElement(j,{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(n["a"])({input:this.dateClick,"update:table-date":function(t){return e.tableDate=t}},S(this,":date"))})},genMonthTable:function(){var e=this;return this.$createElement(_,{props:{allowedDates:"month"===this.type?this.allowedDates:null,color:this.color,current:this.current?C(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(n["a"])({input:this.monthClick,"update:table-date":function(t){return e.tableDate=t}},S(this,":month"))})},genYears:function(){return this.$createElement(A,{props:{color:this.color,format:this.yearFormat,locale:this.locale,min:this.minYear,max:this.maxYear,value:this.tableYear},on:Object(n["a"])({input:this.yearClick},S(this,":year"))})},genPickerBody:function(){var e="YEAR"===this.internalActivePicker?[this.genYears()]:[this.genTableHeader(),"DATE"===this.internalActivePicker?this.genDateTable():this.genMonthTable()];return this.$createElement("div",{key:this.internalActivePicker},e)},setInputDate:function(){if(this.lastValue){var e=this.lastValue.split("-");this.inputYear=parseInt(e[0],10),this.inputMonth=parseInt(e[1],10)-1,"date"===this.type&&(this.inputDay=parseInt(e[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")}})},"40b2":function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.datePicker?i("v-dialog",{ref:"dialog",attrs:{width:"290px"},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,s=t.attrs;return[i("v-badge",{attrs:{dot:"",value:e.selected.filter((function(e){return"date"===e.type})).length,content:e.selected.filter((function(e){return"date"===e.type})).length,color:"var(--cui-primary)","offset-x":"10","offset-y":"10",overlap:""}},[i("v-btn",e._g(e._b({staticClass:"text-muted",attrs:{icon:"",height:"30px",width:"30px"}},"v-btn",s,!1),n),[i("v-icon",{attrs:{size:"20"}},[e._v(e._s(e.icons["mdiCalendar"]))])],1)],1)]}}],null,!1,2810305046),model:{value:e.dateModal,callback:function(t){e.dateModal=t},expression:"dateModal"}},[i("v-date-picker",{attrs:{locale:e.uiConfig.currentLanguage,scrollable:"",range:"","selected-items-text":"{0} "+e.$t("selected")},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}},[i("v-spacer"),i("v-btn",{attrs:{text:"",color:"primary"},on:{click:function(t){e.dateModal=!1}}},[e._v(e._s(e.$t("cancel")))]),i("v-btn",{attrs:{text:"",color:"primary"},on:{click:e.saveDateRange}},[e._v(e._s(e.$t("ok")))])],1)],1):e._e(),i("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:e._u([{key:"activator",fn:function(t){var n=t.on,s=t.attrs;return[i("v-badge",{attrs:{dot:"",value:e.selected.filter((function(e){return"date"!==e.type})).length,content:e.selected.filter((function(e){return"date"!==e.type})).length,color:"var(--cui-primary)","offset-x":"10","offset-y":"10",overlap:""}},[i("v-btn",e._g(e._b({staticClass:"text-muted",attrs:{icon:"",height:"30px",width:"30px"}},"v-btn",s,!1),n),[i("v-icon",{attrs:{size:"20"}},[e._v(e._s(e.icons["mdiFilter"]))])],1)],1)]}}]),model:{value:e.showFilter,callback:function(t){e.showFilter=t},expression:"showFilter"}},[i("v-card",{staticClass:"light-shadow card-border"},[i("div",{staticClass:"tw-p-6 tw-pb-0 tw-flex tw-justify-between filter-title tw-pb-4"},[i("div",{staticClass:"tw-flex tw-items-center filter-menu-title"},[e._v(e._s(e.$t("filters")))])]),i("v-list",{staticClass:"tw-pt-0",attrs:{dark:e.darkMode}},e._l(e.items,(function(t){return t.enabled?i("v-list-group",{key:t.id,attrs:{"no-action":""},scopedSlots:e._u([{key:"prependIcon",fn:function(){return[i("v-icon",{staticClass:"text-default tw-ml-5"},[e._v(e._s(e.filter[t.type]?e.icons["mdiChevronUp"]:e.icons["mdiChevronDown"]))])]},proxy:!0},{key:"activator",fn:function(){return[i("v-list-item-content",[i("v-list-item-title",{staticClass:"filter-menu-subtitle"},[e._v(e._s(t.title))])],1)]},proxy:!0},{key:"appendIcon",fn:function(){return[i("v-icon",{staticClass:"text-default"}),i("v-chip",{staticClass:"tw-mr-5 tw-text-white",staticStyle:{"font-size":"0.6rem !important"},attrs:{small:"",color:"rgba(0,0,0, 0.2)"}},[e._v(e._s(t.items.filter((function(e){return e.selected})).length))])]},proxy:!0}],null,!0),model:{value:e.filter[t.type],callback:function(i){e.$set(e.filter,t.type,i)},expression:"filter[item.type]"}},e._l(t.items,(function(t){return i("v-list-item",{key:t.title,staticClass:"tw-p-0",attrs:{dense:""}},[i("v-checkbox",{attrs:{ripple:!1,label:t.title,color:"var(--cui-primary)",value:t.title,"hide-details":""},model:{value:t.selected,callback:function(i){e.$set(t,"selected",i)},expression:"child.selected"}})],1)})),1):e._e()})),1)],1)],1),i("v-btn",{staticClass:"text-muted",attrs:{icon:"",height:"30px",width:"30px"},on:{click:e.clearFilter}},[i("v-icon",{attrs:{size:"20"}},[e._v(e._s(e.icons["mdiAutorenew"]))])],1)],1)},s=[],a=i("2909"),r=i("1da1"),o=(i("96cf"),i("b0c0"),i("d3b7"),i("159b"),i("d81d"),i("6062"),i("3ca3"),i("ddb0"),i("caad"),i("2532"),i("4de4"),i("25f0"),i("94ed")),l=i("20b6"),c=i("9f6c"),d=i("fe75"),u={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 e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var i,n,s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,"Notifications"===e.$route.name&&e.items.forEach((function(t){"types"===t.type&&t.items.push({title:e.$t("error"),selected:!1},{title:e.$t("warning"),selected:!1})})),!e.camerasSelect){t.next=7;break}return t.next=5,Object(l["b"])("cameras");case 5:i=t.sent,e.items.forEach((function(e){"cameras"===e.type&&(e.items=i.data.map((function(e){return{title:e.name,selected:!1}})))}));case 7:if(!e.labelSelect){t.next=20;break}if("Notifications"!==e.$route.name){t.next=15;break}return t.next=11,e.getNotificationLabels();case 11:n=t.sent,e.items.forEach((function(t){if("labels"===t.type){var i=Object(a["a"])(new Set(n.map((function(t){return t.includes("no label")?e.$t("no_label"):t.includes("Custom")?e.$t("custom"):t}))));t.items=i.map((function(e){return{title:e,selected:!1}}))}})),t.next=20;break;case 15:if("Recordings"!==e.$route.name){t.next=20;break}return t.next=18,e.getRecordingsLabels();case 18:s=t.sent,e.items.forEach((function(t){if("labels"===t.type){var i=Object(a["a"])(new Set(s.map((function(t){return t.includes("no label")?e.$t("no_label"):t.includes("Custom")?e.$t("custom"):t}))));t.items=i.map((function(e){return{title:e,selected:!1}}))}}));case 20:if(!e.roomSelect){t.next=25;break}return t.next=23,Object(l["b"])("general");case 23:r=t.sent,e.items.forEach((function(t){"rooms"===t.type&&(t.items=r.data.rooms.map((function(t){return{title:"Standard"===t?e.$t("standard"):t,selected:!1}})))}));case 25:t.next=31;break;case 27:t.prev=27,t.t0=t["catch"](0),console.log(t.t0),e.$toast.error(t.t0.message);case 31:e.$watch("items",e.watchItems,{deep:!0});case 32:case"end":return t.stop()}}),t,null,[[0,27]])})))()},methods:{clearFilter:function(){this.items.forEach((function(e){e.items.forEach((function(e){e.selected=!1}))})),this.dateRange=[],this.saveDateRange()},filterQuery:function(e){if(e&&e.length){this.query="";var t=e.map((function(e){if("cameras"===e.type)return e.value})).filter((function(e){return e})),i=e.map((function(e){if("labels"===e.type)return e.value})).filter((function(e){return e})),n=e.map((function(e){if("rooms"===e.type)return e.value})).filter((function(e){return e})),s=e.map((function(e){if("types"===e.type)return e.value})).filter((function(e){return e})),a=e.map((function(e){if("date"===e.type)return e.value})).filter((function(e){return e}));if(t&&t.length>0&&(this.query+="&cameras=".concat(t.toString())),i&&i.length>0){var r=this.$t("custom"),o=this.$t("no_label");i=i.map((function(e){return e===r?"Custom":e===o?"no label":e})),this.query+="&labels=".concat(i.toString())}if(n&&n.length>0){var l=this.$t("standard");n=n.map((function(e){return e===l?"Standard":e})),this.query+="&rooms=".concat(n.toString())}if(s&&s.length>0){var c=this.$t("snapshot"),d=this.$t("video"),u=this.$t("error"),h=this.$t("warning");s=s.map((function(e){return e===c?"Snapshot":e===d?"Video":e===u?"ERROR":e===h?"WARN":e})),this.query+="&types=".concat(s.toString())}a&&a.length>0&&a[0].start&&(this.query+="&from=".concat(a[0].start)),a&&a.length>0&&a[0].end&&(this.query+="&to=".concat(a[0].end))}else this.query="";this.$emit("filter",this.query)},getNotificationLabels:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=[],t.next=3,Object(c["a"])("?page=1");case 3:n=t.sent,e.page;case 5:if(!(e.page<=n.data.pagination.totalPages)){t.next=14;break}if(!(e.page>1)){t.next=10;break}return t.next=9,Object(c["a"])("?page=".concat(e.page));case 9:n=t.sent;case 10:n.data.result.forEach((function(e){return i.push(e.label)}));case 11:e.page++,t.next=5;break;case 14:return t.abrupt("return",i);case 15:case"end":return t.stop()}}),t)})))()},getRecordingsLabels:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=[],t.next=3,Object(d["a"])("?page=1");case 3:n=t.sent,e.page;case 5:if(!(e.page<=n.data.pagination.totalPages)){t.next=14;break}if(!(e.page>1)){t.next=10;break}return t.next=9,Object(d["a"])("?page=".concat(e.page));case 9:n=t.sent;case 10:n.data.result.forEach((function(e){return i.push(e.label)}));case 11:e.page++,t.next=5;break;case 14:return t.abrupt("return",i);case 15:case"end":return t.stop()}}),t)})))()},saveDateRange:function(){var e,t=[],i={};if(this.dateRange.length){var n=this.dateRange[0],s=this.dateRange[1];n&&(i.start=n),i.end=s||n,t.push({value:i,type:"date"})}this.selected=this.selected.filter((function(e){return"date"!==e.type})),(e=this.selected).push.apply(e,t),this.filterQuery(this.selected),this.$refs.dialog.save(this.dateRange)},watchItems:function(){var e,t=[];this.items.forEach((function(e){e.items.forEach((function(i){i.selected&&t.push({value:i.title,type:e.type})}))})),this.selected=this.selected.filter((function(e){return"date"===e.type})),(e=this.selected).push.apply(e,t),this.filterQuery(this.selected)}}},h=u,p=(i("d469"),i("2877")),f=i("6544"),m=i.n(f),v=i("4ca6"),g=i("8336"),b=i("b0af"),w=i("ac7c"),y=i("cc20"),x=i("2e4b"),S=i("169a"),C=i("132d"),k=i("8860"),T=i("56b0"),E=i("da13"),M=i("5d23"),O=i("e449"),$=i("2fa4"),D=Object(p["a"])(h,n,s,!1,null,"1cf49cd4",null);t["a"]=D.exports;m()(D,{VBadge:v["a"],VBtn:g["a"],VCard:b["a"],VCheckbox:w["a"],VChip:y["a"],VDatePicker:x["a"],VDialog:S["a"],VIcon:C["a"],VList:k["a"],VListGroup:T["a"],VListItem:E["a"],VListItemContent:M["a"],VListItemTitle:M["c"],VMenu:O["a"],VSpacer:$["a"]})},"455b":function(e,t,i){},"4b85":function(e,t,i){},"4c69":function(e,t,i){},"4d48":function(e,t,i){"use strict";i("4c69")},"4d90":function(e,t,i){"use strict";var n=i("23e7"),s=i("0ccb").start,a=i("9a0c");n({target:"String",proto:!0,forced:a},{padStart:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}})},"4ffd":function(e,t,i){e.exports=i.p+"img/logo.84ee0528.png"},"5aa5":function(e,t,i){},"62ad":function(e,t,i){"use strict";var n=i("ade3"),s=i("5530"),a=(i("d3b7"),i("a9e3"),i("b64b"),i("ac1f"),i("5319"),i("4ec9"),i("3ca3"),i("ddb0"),i("caad"),i("159b"),i("2ca0"),i("4b85"),i("2b0e")),r=i("d9f7"),o=i("80d2"),l=["sm","md","lg","xl"],c=function(){return l.reduce((function(e,t){return e[t]={type:[Boolean,String,Number],default:!1},e}),{})}(),d=function(){return l.reduce((function(e,t){return e["offset"+Object(o["I"])(t)]={type:[String,Number],default:null},e}),{})}(),u=function(){return l.reduce((function(e,t){return e["order"+Object(o["I"])(t)]={type:[String,Number],default:null},e}),{})}(),h={col:Object.keys(c),offset:Object.keys(d),order:Object.keys(u)};function p(e,t,i){var n=e;if(null!=i&&!1!==i){if(t){var s=t.replace(e,"");n+="-".concat(s)}return"col"!==e||""!==i&&!0!==i?(n+="-".concat(i),n.toLowerCase()):n.toLowerCase()}}var f=new Map;t["a"]=a["a"].extend({name:"v-col",functional:!0,props:Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])({cols:{type:[Boolean,String,Number],default:!1}},c),{},{offset:{type:[String,Number],default:null}},d),{},{order:{type:[String,Number],default:null}},u),{},{alignSelf:{type:String,default:null,validator:function(e){return["auto","start","end","center","baseline","stretch"].includes(e)}},tag:{type:String,default:"div"}}),render:function(e,t){var i=t.props,s=t.data,a=t.children,o=(t.parent,"");for(var l in i)o+=String(i[l]);var c=f.get(o);return c||function(){var e,t;for(t in c=[],h)h[t].forEach((function(e){var n=i[e],s=p(t,e,n);s&&c.push(s)}));var s=c.some((function(e){return e.startsWith("col-")}));c.push((e={col:!s||!i.cols},Object(n["a"])(e,"col-".concat(i.cols),i.cols),Object(n["a"])(e,"offset-".concat(i.offset),i.offset),Object(n["a"])(e,"order-".concat(i.order),i.order),Object(n["a"])(e,"align-self-".concat(i.alignSelf),i.alignSelf),e)),f.set(o,c)}(),e(i.tag,Object(r["a"])(s,{class:c}),a)}})},"6ca7":function(e,t,i){},9718:function(e,t,i){"use strict";i("ced8")},9824:function(e,t,i){},"9a0c":function(e,t,i){var n=i("342f");e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},"9f6c":function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return l}));var n=i("1da1"),s=(i("96cf"),i("365c")),a="/notifications",r=function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s["a"].get("".concat(a).concat(t||""));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),o=function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s["a"].delete("".concat(a,"/").concat(t,"/"));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s["a"].delete(a);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},ac7c:function(e,t,i){"use strict";var n=i("15fd"),s=i("5530"),a=(i("d3b7"),i("25f0"),i("6ca7"),i("ec29"),i("9d26")),r=i("c37a"),o=i("fe09"),l=["title"];t["a"]=o["a"].extend({name:"v-checkbox",props:{indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},offIcon:{type:String,default:"$checkboxOff"},onIcon:{type:String,default:"$checkboxOn"}},data:function(){return{inputIndeterminate:this.indeterminate}},computed:{classes:function(){return Object(s["a"])(Object(s["a"])({},r["a"].options.computed.classes.call(this)),{},{"v-input--selection-controls":!0,"v-input--checkbox":!0,"v-input--indeterminate":this.inputIndeterminate})},computedIcon:function(){return this.inputIndeterminate?this.indeterminateIcon:this.isActive?this.onIcon:this.offIcon},validationState:function(){if(!this.isDisabled||this.inputIndeterminate)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":null!==this.hasColor?this.computedColor:void 0}},watch:{indeterminate:function(e){var t=this;this.$nextTick((function(){return t.inputIndeterminate=e}))},inputIndeterminate:function(e){this.$emit("update:indeterminate",e)},isActive:function(){this.indeterminate&&(this.inputIndeterminate=!1)}},methods:{genCheckbox:function(){var e=this.attrs$,t=(e.title,Object(n["a"])(e,l));return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(a["a"],this.setTextColor(this.validationState,{props:{dense:this.dense,dark:this.dark,light:this.light}}),this.computedIcon),this.genInput("checkbox",Object(s["a"])(Object(s["a"])({},t),{},{"aria-checked":this.inputIndeterminate?"mixed":this.isActive.toString()})),this.genRipple(this.setTextColor(this.rippleState))])},genDefaultSlot:function(){return[this.genCheckbox(),this.genLabel()]}}})},afc4:function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:{handler:e.hideNavi,include:e.include},expression:"{ handler: hideNavi, include: include }"}],key:"filterSidebar",staticClass:"settings-navi pl-safe pb-safe tw-flex tw-flex-col tw-h-full",class:(e.showSidebar?"filter-navi-show ":"")+(e.extendSidebar?"extended-sidebar":"")},[i("div",{staticClass:"tw-p-5"},[i("div",{staticClass:"tw-block tw-mb-5"},[i("h4",{staticClass:"tw-mb-4"},[e._v(e._s(e.$t("timerange")))]),i("v-menu",{attrs:{"content-class":"datePicker","close-on-content-click":"",transition:"scroll-y-transition","offset-y":"",bottom:"","max-width":"280px","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,s=t.attrs;return[i("v-text-field",e._g(e._b({attrs:{dense:"",clearable:"",label:"...",readonly:"","hide-details":"","prepend-inner-icon":"mdiCalendarRange","background-color":"var(--cui-bg-card)",color:"var(--cui-text-default)",solo:""},on:{"click:clear":function(t){return e.saveDateRange("from",!0)}},scopedSlots:e._u([{key:"prepend-inner",fn:function(){return[i("v-icon",{staticClass:"text-muted"},[e._v(e._s(e.icons["mdiCalendarRange"]))])]},proxy:!0}],null,!0),model:{value:e.dateFrom,callback:function(t){e.dateFrom=t},expression:"dateFrom"}},"v-text-field",s,!1),n)),i("label",{staticClass:"form-input-label"},[e._v(e._s(e.$t("from")))])]}}]),model:{value:e.dateModalFrom,callback:function(t){e.dateModalFrom=t},expression:"dateModalFrom"}},[i("v-date-picker",{attrs:{scrollable:"","no-title":"",locale:e.uiConfig.currentLanguage},on:{input:function(t){return e.saveDateRange("from")}},model:{value:e.dateFrom,callback:function(t){e.dateFrom=t},expression:"dateFrom"}})],1),i("div",{staticClass:"tw-my-4"}),i("v-menu",{attrs:{"content-class":"datePicker","close-on-content-click":"",transition:"scroll-y-transition","offset-y":"",bottom:"","max-width":"280px","min-width":"auto"},scopedSlots:e._u([{key:"activator",fn:function(t){var n=t.on,s=t.attrs;return[i("v-text-field",e._g(e._b({attrs:{dense:"",clearable:"",label:"...",readonly:"","hide-details":"","prepend-inner-icon":"mdiCalendarRange","background-color":"var(--cui-bg-card)",color:"var(--cui-text-default)",solo:""},on:{"click:clear":function(t){return e.saveDateRange("to",!0)}},scopedSlots:e._u([{key:"prepend-inner",fn:function(){return[i("v-icon",{staticClass:"text-muted"},[e._v(e._s(e.icons["mdiCalendarRange"]))])]},proxy:!0}],null,!0),model:{value:e.dateTo,callback:function(t){e.dateTo=t},expression:"dateTo"}},"v-text-field",s,!1),n)),i("label",{staticClass:"form-input-label"},[e._v(e._s(e.$t("to")))])]}}]),model:{value:e.dateModalTo,callback:function(t){e.dateModalTo=t},expression:"dateModalTo"}},[i("v-date-picker",{attrs:{scrollable:"","no-title":"",locale:e.uiConfig.currentLanguage},on:{input:function(t){return e.saveDateRange("to")}},model:{value:e.dateTo,callback:function(t){e.dateTo=t},expression:"dateTo"}})],1),i("v-divider",{staticClass:"tw-mb-3 tw-mt-6"})],1),e.camerasSelect?i("div",{staticClass:"tw-block tw-mb-5"},[i("h4",{staticClass:"tw-mb-4"},[e._v(e._s(e.$t("cameras")))]),i("v-select",{staticClass:"selector",attrs:{dense:"","small-chips":"","deletable-chips":"","hide-details":"",multiple:"","no-data-text":e.$t("no_data_available"),"item-value":"title","item-text":"title",items:e.availableCameras,label:"...","prepend-inner-icon":"mdi-security","background-color":"var(--cui-bg-card)",solo:""},on:{change:e.watchItems},scopedSlots:e._u([{key:"prepend-inner",fn:function(){return[i("v-icon",{staticClass:"text-muted"},[e._v(e._s(e.icons["mdiCamera"]))])]},proxy:!0}],null,!1,2971207680),model:{value:e.selectedCameras,callback:function(t){e.selectedCameras=t},expression:"selectedCameras"}}),i("v-divider",{staticClass:"tw-mb-3 tw-mt-6"})],1):e._e(),e.roomSelect?i("div",{staticClass:"tw-block tw-mb-5"},[i("h4",{staticClass:"tw-mb-4"},[e._v(e._s(e.$t("rooms")))]),i("v-select",{staticClass:"selector",attrs:{dense:"","small-chips":"","deletable-chips":"","hide-details":"",multiple:"","no-data-text":e.$t("no_data_available"),"item-value":"title","item-text":"title",items:e.availableRooms,label:"...","prepend-inner-icon":"mdi-security","background-color":"var(--cui-bg-card)",solo:""},on:{change:e.watchItems},scopedSlots:e._u([{key:"prepend-inner",fn:function(){return[i("v-icon",{staticClass:"text-muted"},[e._v(e._s(e.icons["mdiDoorOpen"]))])]},proxy:!0}],null,!1,3787362971),model:{value:e.selectedRooms,callback:function(t){e.selectedRooms=t},expression:"selectedRooms"}}),i("v-divider",{staticClass:"tw-mb-3 tw-mt-6"})],1):e._e(),e.labelSelect?i("div",{staticClass:"tw-block tw-mb-5"},[i("h4",{staticClass:"tw-mb-4"},[e._v(e._s(e.$t("labels")))]),i("v-select",{staticClass:"selector",attrs:{dense:"","small-chips":"","deletable-chips":"","hide-details":"",multiple:"","no-data-text":e.$t("no_data_available"),"item-value":"title","item-text":"title",items:e.availableLabels,label:"...","prepend-inner-icon":"mdi-security","background-color":"var(--cui-bg-card)",solo:""},on:{change:e.watchItems},scopedSlots:e._u([{key:"prepend-inner",fn:function(){return[i("v-icon",{staticClass:"text-muted"},[e._v(e._s(e.icons["mdiLabel"]))])]},proxy:!0}],null,!1,1745180671),model:{value:e.selectedLabels,callback:function(t){e.selectedLabels=t},expression:"selectedLabels"}}),i("v-divider",{staticClass:"tw-mb-3 tw-mt-6"})],1):e._e(),e.typeSelect?i("div",{staticClass:"tw-block tw-mb-5"},[i("h4",{staticClass:"tw-mb-4"},[e._v(e._s(e.$t("type")))]),i("v-select",{staticClass:"selector",attrs:{dense:"","small-chips":"","deletable-chips":"","hide-details":"",