From 04ec904a99f6244f75ff73278623e9ba2a5aecda Mon Sep 17 00:00:00 2001 From: jemu75 Date: Sat, 24 Apr 2021 14:22:28 +0200 Subject: [PATCH] v3.13.3 --- README.md | 2 +- package.json | 2 +- src/components/Jsonlist.vue | 9 ++-- src/components/TemplChart.vue | 2 +- src/plugins/fhem.js | 29 ++++++---- src/views/Syslog.vue | 54 ++++++++++++++++++- www/fhemapp/css/chunk-2c05d556.cb4d0868.css | 1 - ...bdaac2.css => chunk-3c9d184f.1bbdaac2.css} | 0 ...bdaac2.css => chunk-46bea2ee.1bbdaac2.css} | 0 ...90d9b1.css => chunk-50f89d12.b490d9b1.css} | 0 ...14eec0.css => chunk-ecd3142c.86805334.css} | 0 www/fhemapp/index.html | 2 +- www/fhemapp/js/app.0bdba360.js | 1 + www/fhemapp/js/app.e8b9f39e.js | 1 - www/fhemapp/js/chunk-21b07e80.b3f882b2.js | 1 + www/fhemapp/js/chunk-2c05d556.0cfae3f0.js | 1 - ...923fd44e.js => chunk-2d212bf1.e377c778.js} | 2 +- ...9e183584.js => chunk-3c9d184f.28dc459c.js} | 2 +- www/fhemapp/js/chunk-46bea2ee.942f5a8a.js | 1 + www/fhemapp/js/chunk-4a62a958.b5b68579.js | 1 - www/fhemapp/js/chunk-50f89d12.d065ef66.js | 1 + www/fhemapp/js/chunk-53c4ff2a.47e547a9.js | 1 - www/fhemapp/js/chunk-53c4ff2a.a3ca272e.js | 1 + www/fhemapp/js/chunk-b2de1140.ceddc6db.js | 1 - www/fhemapp/js/chunk-d4e16e04.70c63a71.js | 1 - www/fhemapp/js/chunk-ecd3142c.0688a723.js | 1 + 26 files changed, 87 insertions(+), 30 deletions(-) delete mode 100644 www/fhemapp/css/chunk-2c05d556.cb4d0868.css rename www/fhemapp/css/{chunk-17d492e6.1bbdaac2.css => chunk-3c9d184f.1bbdaac2.css} (100%) rename www/fhemapp/css/{chunk-b2de1140.1bbdaac2.css => chunk-46bea2ee.1bbdaac2.css} (100%) rename www/fhemapp/css/{chunk-4a62a958.b490d9b1.css => chunk-50f89d12.b490d9b1.css} (100%) rename www/fhemapp/css/{chunk-d4e16e04.6714eec0.css => chunk-ecd3142c.86805334.css} (100%) create mode 100644 www/fhemapp/js/app.0bdba360.js delete mode 100644 www/fhemapp/js/app.e8b9f39e.js create mode 100644 www/fhemapp/js/chunk-21b07e80.b3f882b2.js delete mode 100644 www/fhemapp/js/chunk-2c05d556.0cfae3f0.js rename www/fhemapp/js/{chunk-2d212bf1.923fd44e.js => chunk-2d212bf1.e377c778.js} (80%) rename www/fhemapp/js/{chunk-17d492e6.9e183584.js => chunk-3c9d184f.28dc459c.js} (99%) create mode 100644 www/fhemapp/js/chunk-46bea2ee.942f5a8a.js delete mode 100644 www/fhemapp/js/chunk-4a62a958.b5b68579.js create mode 100644 www/fhemapp/js/chunk-50f89d12.d065ef66.js delete mode 100644 www/fhemapp/js/chunk-53c4ff2a.47e547a9.js create mode 100644 www/fhemapp/js/chunk-53c4ff2a.a3ca272e.js delete mode 100644 www/fhemapp/js/chunk-b2de1140.ceddc6db.js delete mode 100644 www/fhemapp/js/chunk-d4e16e04.70c63a71.js create mode 100644 www/fhemapp/js/chunk-ecd3142c.0688a723.js diff --git a/README.md b/README.md index 39d20778..a142b2d2 100644 --- a/README.md +++ b/README.md @@ -743,7 +743,7 @@ Im FHEM-Device muss im Attribut `appOptions` folgendes eingetragen werden. ``` ### Konfiguration von Charts -Da *Chart* kein Standard-Template ist, könnt ihr nur ausgewählte Eigenschaften über den Parameter `setup` in `appOptions` anpassen. Über den Paramter `size` kann die Templatebreite [siehe](#breite-von-templates) verändert werden. Der Parameter `daysAgo` legt ihr fest, wieviele Tage das Chart beim Laden zurückschaut. Als Standard werden die Daten der letzten 7 Tage `"daysAgo": -7` geladen. Über den Parameter `lineWidth` könnt ihr die Linienbreite der Chartlinien verändern. Als Standard ist `"lineWidth": 3` festgelegt. Über den Parameter `chartDef` legt ihr fest, welche Daten im Chart angezeigt werden. Jede Linie entspricht dabei einer Definition. +Da *Chart* kein Standard-Template ist, könnt ihr nur ausgewählte Eigenschaften über den Parameter `setup` in `appOptions` anpassen. Über den Paramter `size` kann die Templatebreite [siehe](#breite-von-templates) verändert werden. Der Parameter `daysAgo` legt ihr fest, wieviele Tage das Chart beim Laden zurückschaut. Als Standard werden die Daten der letzten 7 Tage `"daysAgo": 6` geladen. Über den Parameter `lineWidth` könnt ihr die Linienbreite der Chartlinien verändern. Als Standard ist `"lineWidth": 3` festgelegt. Über den Parameter `chartDef` legt ihr fest, welche Daten im Chart angezeigt werden. Jede Linie entspricht dabei einer Definition. ``` "chartDef": ["logsource:reading:text:präfix:axis"], "setup": { diff --git a/package.json b/package.json index f5c88020..10d4d657 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fhemapp", - "version": "3.13.2", + "version": "3.13.3", "private": true, "author": "jemu75", "scripts": { diff --git a/src/components/Jsonlist.vue b/src/components/Jsonlist.vue index 21f07a0b..f46e401a 100644 --- a/src/components/Jsonlist.vue +++ b/src/components/Jsonlist.vue @@ -2,6 +2,8 @@
- - + + mdi-close - - + new Date(d.setDate(d.getDate() + diff)).toISOString() )(new Date).split('T')[0]; + return ( d => new Date(d.setDate(d.getDate() - diff)).toISOString() )(new Date).split('T')[0]; } // mainFunction: Format Date and Time from FHEM @@ -157,7 +158,7 @@ class Fhem extends EventEmitter { return typeof obj === 'object' ? Object.assign(obj, { data: result }) : result; }) - .catch((err) => this.log({ lvl: 1, msg: err.message + ' - Request: ' + req })) + .catch((err) => this.log({ lvl: 1, msg: 'Request failed ' + req, meta: err.message })) } // coreFunction: to get json-data from a server-file @@ -171,10 +172,9 @@ class Fhem extends EventEmitter { headers: header, }; - this.log({ lvl: 5, msg: 'Read Json-Data from ' + file }); - let result = await fetch(file, options).then((res) => res.json()); + if(result) this.log({ lvl: 5, msg: 'Json-Data parsed from ' + file, meta: result }); if(!result) this.log({ lvl: 1, msg: 'No Json-Data found at ' + file }); return await result; @@ -189,7 +189,7 @@ class Fhem extends EventEmitter { } if(this.app.options.debugMode) this.app.appBar.color = 'pink darken-4'; } else { - this.log({ lvl: 2, msg: 'No Configuration File found. FHEMApp starting with default settings.'}) + this.log({ lvl: 2, msg: 'No Configuration File found. FHEMApp starting with default settings.', meta: this.app.options }) } } @@ -201,7 +201,7 @@ class Fhem extends EventEmitter { try { result = JSON.parse(device.Attributes.appOptions); } catch(err) { - this.log({ lvl: 1, msg: 'Read `appOptions` from ' + device.Name + ' failed. - ' + err.message }) + this.log({ lvl: 1, msg: 'Read `appOptions` from ' + device.Name + ' failed.', meta: err.message }) } if(result) { @@ -563,7 +563,7 @@ class Fhem extends EventEmitter { } } else { // alles was nicht verarbeitet werden kann - this.log({ lvl: 3, msg: 'No Handling for this FHEM data. ' + arr }) + this.log({ lvl: 3, msg: 'No Handling for this FHEM data. ', meta: arr }) } } @@ -624,13 +624,13 @@ class Fhem extends EventEmitter { this.app.session.connect = true; this.app.session.restartCnt = 0; - this.log({ lvl: 2, msg: 'Connection with FHEM is opened.'}) + this.log({ lvl: 2, msg: 'Connection with FHEM is opened.', meta: this.app.connection }) this.loadStructure(); } // subFunction: calls after websocket is closed - async wsClose() { + async wsClose(evt) { this.app.session.connect = false; this.app.session.csrf = null; this.app.session.ready = false; @@ -646,7 +646,14 @@ class Fhem extends EventEmitter { this.wsStart() }, msecs); - this.log({ lvl: 2, msg: 'Connection with FHEM was closed. Try to Reconnect in ' + (msecs / 1000) + ' seconds...' }) + let meta = { + info: 'Websocket was closed.', + errCode: evt.code, + readyState: this.app.socket.readyState + } + + this.log({ lvl: 2, msg: 'Connection with FHEM was closed. Try to Reconnect in ' + (msecs / 1000) + ' seconds...', meta: meta }) + this.loading = false; } } @@ -661,7 +668,7 @@ class Fhem extends EventEmitter { this.app.socket = new WebSocket(url); this.app.socket.onopen = () => this.wsOpen(); this.app.socket.onmessage = (message) => this.doUpdate(message); - this.app.socket.onclose = () => this.wsClose(); + this.app.socket.onclose = (evt) => this.wsClose(evt); } // subFunction: set the actual timestamp for menubar diff --git a/src/views/Syslog.vue b/src/views/Syslog.vue index 84baef85..49413bc1 100644 --- a/src/views/Syslog.vue +++ b/src/views/Syslog.vue @@ -85,7 +85,42 @@ {{ item.icon }} + + + + + + + Systemprotokoll - Details + + + mdi-close + + + + + + + @@ -97,6 +132,9 @@ \ No newline at end of file +fhemapp
\ No newline at end of file diff --git a/www/fhemapp/js/app.0bdba360.js b/www/fhemapp/js/app.0bdba360.js new file mode 100644 index 00000000..f7d43246 --- /dev/null +++ b/www/fhemapp/js/app.0bdba360.js @@ -0,0 +1 @@ +(function(e){function t(t){for(var n,r,o=t[0],c=t[1],p=t[2],u=0,l=[];u0?(this.type=this.types[this.msgList[0].lvl],this.message=this.msgList[0].msg,this.meta=this.msgList[0].meta,this.alert=!0):(this.alert=!1,this.type="info",this.message="",this.meta="")}},mounted:function(){var e=this;this.$fhem.on("message",(function(t){var a={lvl:5,msg:"no valid message received",meta:""};Object.assign(a,t),e.msgList.unshift(a)}))},methods:{clearMessage:function(){this.msgList.length>0&&this.msgList.splice(0,1)}}}),p=c,u=a("2877"),l=a("6544"),h=a.n(l),d=a("0798"),m=a("8336"),f=a("62ad"),v=a("132d"),g=a("0fd9"),b=Object(u["a"])(p,i,o,!1,null,null,null),k=b.exports;h()(b,{VAlert:d["a"],VBtn:m["a"],VCol:f["a"],VIcon:v["a"],VRow:g["a"]});var y={components:{Broadcaster:k},data:function(){return{appBar:{color:"",drawer:null,clock:null,header:null},app:{options:{loading:!1,reloadBtn:!1},session:{connect:!1},data:{roomList:[],groupList:[]}},version:"v"+a("9224").version,status:{color:"secondary",icon:"mdi-circle",text:"unbekannt",time:""}}},computed:{showRooms:function(){return this.app.data.roomList.length>0},showGroups:function(){return this.app.data.groupList.length>0}},watch:{"app.session.connect":function(e){this.status.color=e?"success":"error",this.status.text=e?"online":"offline",this.status.time=this.$fhem.getDateTime()}},mounted:function(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data,this.appBar=this.$fhem.app.appBar},methods:{reload:function(){location.reload(!0)},goTo:function(e){var t=e||"/";this.$router.currentRoute.path!=t&&this.$router.push(t)}}},w=y,x=a("7496"),O=a("40dc"),j=a("5bc1"),_=a("cc20"),R=a("a523"),L=a("ce7e"),C=a("adda"),S=a("8860"),P=a("56b0"),A=a("da13"),D=a("5d23"),E=a("34c3"),N=a("f6c4"),B=a("f774"),V=a("a797"),T=a("490a"),F=a("2fa4"),I=a("3a2f"),M=Object(u["a"])(w,r,s,!1,null,null,null),H=M.exports;h()(M,{VApp:x["a"],VAppBar:O["a"],VAppBarNavIcon:j["a"],VBtn:m["a"],VChip:_["a"],VContainer:R["a"],VDivider:L["a"],VIcon:v["a"],VImg:C["a"],VList:S["a"],VListGroup:P["a"],VListItem:A["a"],VListItemContent:D["a"],VListItemIcon:E["a"],VListItemSubtitle:D["b"],VListItemTitle:D["c"],VMain:N["a"],VNavigationDrawer:B["a"],VOverlay:V["a"],VProgressCircular:T["a"],VSpacer:F["a"],VTooltip:I["a"]});a("d3b7"),a("3ca3"),a("ddb0");var $=a("8c4f");n["a"].use($["a"]);var J=[{path:"/",name:"Home",component:function(){return a.e("chunk-2d212bf1").then(a.bind(null,"aa72"))}},{path:"/system",name:"System",component:function(){return a.e("chunk-2d212bf1").then(a.bind(null,"aa72"))}},{path:"/dashboard",name:"Dashboard",component:function(){return a.e("chunk-2d212bf1").then(a.bind(null,"aa72"))}},{path:"/devices/:filter",name:"Devices",component:function(){return a.e("chunk-2d212bf1").then(a.bind(null,"aa72"))}},{path:"/edit-devices",name:"EditDevice",component:function(){return Promise.all([a.e("chunk-28a3f15f"),a.e("chunk-07709945"),a.e("chunk-72c6e8d8"),a.e("chunk-085bcd30")]).then(a.bind(null,"f87a"))}},{path:"/syslog",name:"Syslog",component:function(){return Promise.all([a.e("chunk-28a3f15f"),a.e("chunk-ecd3142c"),a.e("chunk-07709945"),a.e("chunk-72c6e8d8"),a.e("chunk-21b07e80")]).then(a.bind(null,"beee"))}}],U=new $["a"]({mode:"hash",base:"",routes:J}),q=U,z=a("f309"),G=a("0fe0"),X=a.n(G),W=a("fcf4");n["a"].use(z["a"]);var K={lang:{locales:{de:X.a},current:"de"},theme:{dark:!0,themes:{dark:{primary:W["a"].grey.darken4,secondary:W["a"].grey.darken3,success:W["a"].green.accent2,accent:W["a"].green.accent2},light:{primary:W["a"].grey,secondary:W["a"].grey.lighten3,success:W["a"].green.accent3,accent:W["a"].green.accent3}}}},Z=new z["a"](K),Q=a("1321"),Y=a.n(Q),ee=(a("159b"),a("466d"),a("ac1f"),a("a925"));function te(){var e=a("49f8"),t={};return e.keys().forEach((function(a){var n=a.match(/([A-Za-z0-9-_]+)\./i);if(n&&n.length>1){var r=n[1];t[r]=e(a)}})),t}n["a"].use(ee["a"]);var ae=new ee["a"]({locale:"de",fallbackLocale:"en",messages:te()}),ne=a("b85c"),re=a("2909"),se=a("1da1"),ie=a("53ca"),oe=a("d4ec"),ce=a("bee2"),pe=a("262e"),ue=a("2caf"),le=(a("96cf"),a("fb6a"),a("1276"),a("5319"),a("13d5"),a("b64b"),a("b0c0"),a("d81d"),a("a15b"),a("b680"),a("25f0"),a("99af"),a("4d63"),a("07ac"),a("faa1")),he=a.n(le),de=function(e){Object(pe["a"])(a,e);var t=Object(ue["a"])(a);function a(){var e;return Object(oe["a"])(this,a),e=t.call(this),e.app={connection:{location:window.location.protocol+"//"+window.location.hostname,port:window.location.port,path:"fhem"},socket:null,session:{connect:!1,ready:!1,csrf:null,restart:!1,restartCnt:0,logList:[]},options:{lang:"de",debugMode:!1,debugLevel:5,loading:!1,loadCount:0,clockInterval:5e3,clock:null,date:null,maxChartPoints:100,updateProcess:!1,logRecord:!0,logBuffer:500,ignoreFhemRoom:!1,ignoreFhemGroup:!1,ignoreFhemSortby:!1,mobileHeader:!1},theme:{dark:!0,themes:{}},appBar:{color:"primary",drawer:!1,clock:null,header:null},templates:[],componentMap:[{name:"panel",component:"templ_panel"},{name:"chart",component:"templ_chart"},{name:"weather",component:"templ_weather"},{name:"sysmon",component:"templ_sysmon"},{name:"hmlan",component:"templ_hmlan"},{name:"sonos",component:"templ_sonos"},{name:"scenes",component:"templ_scenes"}],data:{roomList:[],groupList:[],deviceList:[],routeList:[],header:""}},e}return Object(ce["a"])(a,[{key:"loading",set:function(e){e&&this.app.options.loadCount++,!e&&this.app.options.loadCount>0&&this.app.options.loadCount--,this.app.options.loadCount>0&&!this.app.options.loading&&(this.app.options.loading=!0),0===this.app.options.loadCount&&(this.app.options.loading=!1)}},{key:"log",value:function(e){var t=["","mdi-alert-outline","mdi-connection","mdi-send-circle-outline","mdi-sync","mdi-hexagon-multiple-outline"],a=["","error","info","success","success","warning"],n=(new Date).toLocaleTimeString(this.app.options.lang),r=(new Date).getMilliseconds(),s={time:n+":"+("000"+r).slice(-3),msg:e.msg||"",lvl:e.lvl||5,meta:e.meta||null,icon:t[e.lvl||5],color:a[e.lvl||5]};this.app.options.logRecord&&s.lvl<=this.app.options.debugLevel&&(this.app.session.logList.unshift(s),this.app.session.logList.length>this.app.options.logBuffer&&(this.app.session.logList.length=this.app.options.logBuffer)),1==s.lvl&&this.emit("message",s)}},{key:"getDate",value:function(e){var t=e?parseInt(e):0;return function(e){return new Date(e.setDate(e.getDate()-t)).toISOString()}(new Date).split("T")[0]}},{key:"getDateTime",value:function(e){var t=e||(new Date).toISOString();return new Date(t.replace(" ","T")).toLocaleString(this.app.options.lang,{dateStyle:"short",timeStyle:"medium"}).replace(",","")}},{key:"createURL",value:function(e){var t=this.app.connection,a=t.location?t.location:"",n=t.port?":"+t.port.replace(":",""):"",r=t.path?"/"+t.path.replace("/",""):"",s="";return"object"==Object(ie["a"])(e)&&e.length>0&&e.forEach((function(e){e.param&&e.value&&(s+=s?"&":"?",s+=e.param+"="+encodeURIComponent(e.value))})),a+n+r+s}},{key:"getEl",value:function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n0?r.push.apply(r,Object(re["a"])(t)):r.push(t)),"string"===typeof t&&r.push({param:"cmd",value:t}),s=this.createURL(r),this.log({lvl:3,msg:"Request: "+s}),e.next=9,fetch(s).then((function(e){var t=null;return"csrf"===a&&(t=e.headers.get("x-fhem-csrftoken")),"json"===a&&(t=e.json()),t||(t=e.text()),"object"===Object(ie["a"])(n)?Object.assign(n,{data:t}):t})).catch((function(e){return i.log({lvl:1,msg:"Request failed "+s,meta:e.message})}));case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)})));function t(t,a,n){return e.apply(this,arguments)}return t}()},{key:"getJsonFile",value:function(){var e=Object(se["a"])(regeneratorRuntime.mark((function e(t){var a,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=new Headers,a.append("pragma","no-cache"),a.append("cache-control","no-cache"),n={method:"GET",headers:a},e.next=6,fetch(t,n).then((function(e){return e.json()}));case 6:return r=e.sent,r&&this.log({lvl:5,msg:"Json-Data parsed from "+t,meta:r}),r||this.log({lvl:1,msg:"No Json-Data found at "+t}),e.next=11,r;case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"readConfig",value:function(){var e=Object(se["a"])(regeneratorRuntime.mark((function e(t){var a,n,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getJsonFile(t);case 2:if(a=e.sent,a){for(n=0,r=Object.keys(a);n0)){e.next=41;break}a=[],n=[],this.app.data.routeList.splice(0),r=Object(ne["a"])(t.Results),e.prev=8,r.s();case 10:if((s=r.n()).done){e.next=27;break}return i=s.value,e.next=14,this.createOptions(i);case 14:if(o=e.sent,!o.template){e.next=25;break}return e.next=18,this.getTemplate(o);case 18:c=e.sent,c&&this.app.templates.push(c),o.room&&this.createNaviItems(o,a,"room"),o.group&&this.createNaviItems(o,n,"group"),o.home&&this.createRoutes(o,"/"),o.dashboard&&this.createRoutes(o,"/dashboard"),o.system&&this.createRoutes(o,"/system");case 25:e.next=10;break;case 27:e.next=32;break;case 29:e.prev=29,e.t0=e["catch"](8),r.e(e.t0);case 32:return e.prev=32,r.f(),e.finish(32);case 35:a.sort((function(e,t){return e.title>t.title?1:t.title>e.title?-1:0})),n.sort((function(e,t){return e.title>t.title?1:t.title>e.title?-1:0})),this.app.data.roomList=Object.assign([],a),this.app.data.groupList=Object.assign([],n),this.app.session.ready=!0,this.loading=!1;case 41:case"end":return e.stop()}}),e,this,[[8,29,32,35]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"createConnected",value:function(){var e=Object(se["a"])(regeneratorRuntime.mark((function e(t){var a,n,r,s,i,o,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a={},!("connected"in t.Options)){e.next=20;break}n=Object.keys(t.Options.connected),r=0,s=n;case 4:if(!(rt.Options.sortby?1:t.Options.sortby>e.Options.sortby?-1:0})),this.app.data.deviceList=Object.assign([],s),this.loading=!1),i++;case 37:e.next=14;break;case 39:e.next=44;break;case 41:e.prev=41,e.t0=e["catch"](12),o.e(e.t0);case 44:return e.prev=44,o.f(),e.finish(44);case 47:case"end":return e.stop()}}),e,this,[[12,41,44,47]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"checkUpdate",value:function(){var e=Object(se["a"])(regeneratorRuntime.mark((function e(){var t,a,n,r,s,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.request([{param:"cmd",value:"update check"},{param:"XHR",value:"1"}]);case 2:if(t=e.sent,a=0,t){n=t.split("\n").splice(2),r=Object(ne["a"])(n);try{for(r.s();!(s=r.n()).done;)i=s.value,i.match("UPD")&&!i.match("excluded")&&a++}catch(o){r.e(o)}finally{r.f()}}return e.abrupt("return",a>0);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"handleLogData",value:function(e){var t=e.split("\n");t.length>3&&t.splice(-3,3);var a,n=[],r=t.length>this.app.options.maxChartPoints?parseInt(t.length/this.app.options.maxChartPoints):1,s=r,i=0,o=1,c=Object(ne["a"])(t);try{for(c.s();!(a=c.n()).done;){var p=a.value,u=p.split(" "),l=Date.parse(u[0].replace("_","T")),h=parseFloat(u[1]);i+=h,(o>=s||o===t.length)&&(o===t.length&&(r-=s-o),n.push({timestamp:l,value:i/r}),s+=r,i=0),o++}}catch(d){c.e(d)}finally{c.f()}return this.log({lvl:5,msg:"handle Chartdata (Lines: "+t.length+")"}),n}},{key:"readLogData",value:function(){var e=Object(se["a"])(regeneratorRuntime.mark((function e(t){var a,n,r,s,i,o,c,p,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=[],this.loading=!0,!(t.defs&&t.defs.length>0)){e.next=40;break}n=0,r=Object(ne["a"])(t.defs),e.prev=5,r.s();case 7:if((s=r.n()).done){e.next=32;break}return i=s.value,o=/\(.*\)/.exec(i),c=o?i.replace(o[0],"_").split(":"):i.split(":"),p="get ",p+=c[0]?c[0]:t.deviceName,p+=t.from?" - - "+t.from:"",p+=t.to?" "+t.to:"",p+=o?" "+o[0].replace(/\(|\)/g,""):" 4:"+c[1],e.next=18,this.request([{param:"cmd",value:p},{param:"XHR",value:"1"}],"text",{id:n});case 18:if(u=e.sent,!u){e.next=29;break}return e.t0=a,e.t1=u.id,e.t2=this,e.next=25,u.data;case 25:e.t3=e.sent,e.t4=e.t2.handleLogData.call(e.t2,e.t3),e.t5={id:e.t1,data:e.t4},e.t0.push.call(e.t0,e.t5);case 29:n++;case 30:e.next=7;break;case 32:e.next=37;break;case 34:e.prev=34,e.t6=e["catch"](5),r.e(e.t6);case 37:return e.prev=37,r.f(),e.finish(37);case 40:return this.loading=!1,e.abrupt("return",Object.assign(t,{data:a}));case 42:case"end":return e.stop()}}),e,this,[[5,34,37,40]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"replaceVals",value:function(e,t){for(var a=/-?[0-9]/.exec(t),n=[],r=2;r0){var n,r=Object(ne["a"])(t);try{for(r.s();!(n=r.n()).done;){var s=n.value,i=s.split(":");if(i.length>2){var o=i[0].match(/\./)?i[0].split("."):["Readings",i[0],"Value"],c=this.getEl.apply(this,[e].concat(Object(re["a"])(o)))||this.getEl(e,"Readings",i[0],"Value");if(c){var p=!1;if(isNaN(parseFloat(i[1])))RegExp(i[1]?i[1]:".").test(c)&&(p=!0);else{var u=/-?[0-9]/.exec(c);-1!=u.index&&parseFloat(c.slice(u.index))>=parseFloat(i[1])&&(p=!0)}if(p){a=this.replaceVals(i,c);break}}}}}catch(l){r.e(l)}finally{r.f()}}return a}},{key:"handleData",value:function(e){var t=JSON.parse(e),a=null;if(!t[2].match("0){var s=this.handleData(r);if(s){var i,o=0,c=Object(ne["a"])(this.app.data.deviceList);try{for(c.s();!(i=c.n()).done;){var p=i.value,u=this.app.data.deviceList[o],l=Object.assign({},u);if(p.Name===s.Name&&("Readings"===s.devicePart&&this.getEl(l,"Readings",s.param,s.paramPart)&&(l.Readings[s.param][s.paramPart]=s.value),"Attributes"===s.devicePart&&this.getEl(l,"Attributes",s.param)&&(l.Attributes[s.param]=s.value),this.app.data.deviceList.splice(o,1,l)),"Connected"in p)for(var h=0,d=0,m=Object.values(p.Connected);d0?(this.type=this.types[this.msgList[0].lvl],this.message=this.msgList[0].msg,this.meta=this.msgList[0].meta,this.alert=!0):(this.alert=!1,this.type="info",this.message="",this.meta="")}},mounted:function(){var e=this;this.$fhem.on("message",(function(t){var n={lvl:5,msg:"no valid message received",meta:""};Object.assign(n,t),e.msgList.unshift(n)}))},methods:{clearMessage:function(){this.msgList.length>0&&this.msgList.splice(0,1)}}}),p=c,u=n("2877"),l=n("6544"),h=n.n(l),d=n("0798"),m=n("8336"),f=n("62ad"),v=n("132d"),g=n("0fd9"),b=Object(u["a"])(p,i,o,!1,null,null,null),k=b.exports;h()(b,{VAlert:d["a"],VBtn:m["a"],VCol:f["a"],VIcon:v["a"],VRow:g["a"]});var y={components:{Broadcaster:k},data:function(){return{appBar:{color:"",drawer:null,clock:null,header:null},app:{options:{loading:!1,reloadBtn:!1},session:{connect:!1},data:{roomList:[],groupList:[]}},version:"v"+n("9224").version,status:{color:"secondary",icon:"mdi-circle",text:"unbekannt",time:""}}},computed:{showRooms:function(){return this.app.data.roomList.length>0},showGroups:function(){return this.app.data.groupList.length>0}},watch:{"app.session.connect":function(e){this.status.color=e?"success":"error",this.status.text=e?"online":"offline",this.status.time=this.$fhem.getDateTime()}},mounted:function(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data,this.appBar=this.$fhem.app.appBar},methods:{reload:function(){location.reload(!0)},goTo:function(e){var t=e||"/";this.$router.currentRoute.path!=t&&this.$router.push(t)}}},w=y,x=n("7496"),O=n("40dc"),j=n("5bc1"),_=n("cc20"),R=n("a523"),L=n("ce7e"),C=n("adda"),S=n("8860"),P=n("56b0"),A=n("da13"),D=n("5d23"),E=n("34c3"),N=n("f6c4"),B=n("f774"),V=n("a797"),T=n("490a"),F=n("2fa4"),I=n("3a2f"),M=Object(u["a"])(w,r,s,!1,null,null,null),H=M.exports;h()(M,{VApp:x["a"],VAppBar:O["a"],VAppBarNavIcon:j["a"],VBtn:m["a"],VChip:_["a"],VContainer:R["a"],VDivider:L["a"],VIcon:v["a"],VImg:C["a"],VList:S["a"],VListGroup:P["a"],VListItem:A["a"],VListItemContent:D["a"],VListItemIcon:E["a"],VListItemSubtitle:D["b"],VListItemTitle:D["c"],VMain:N["a"],VNavigationDrawer:B["a"],VOverlay:V["a"],VProgressCircular:T["a"],VSpacer:F["a"],VTooltip:I["a"]});n("d3b7"),n("3ca3"),n("ddb0");var $=n("8c4f");a["a"].use($["a"]);var J=[{path:"/",name:"Home",component:function(){return n.e("chunk-2d212bf1").then(n.bind(null,"aa72"))}},{path:"/system",name:"System",component:function(){return n.e("chunk-2d212bf1").then(n.bind(null,"aa72"))}},{path:"/dashboard",name:"Dashboard",component:function(){return n.e("chunk-2d212bf1").then(n.bind(null,"aa72"))}},{path:"/devices/:filter",name:"Devices",component:function(){return n.e("chunk-2d212bf1").then(n.bind(null,"aa72"))}},{path:"/edit-devices",name:"EditDevice",component:function(){return Promise.all([n.e("chunk-28a3f15f"),n.e("chunk-07709945"),n.e("chunk-72c6e8d8"),n.e("chunk-085bcd30")]).then(n.bind(null,"f87a"))}},{path:"/syslog",name:"Syslog",component:function(){return Promise.all([n.e("chunk-28a3f15f"),n.e("chunk-07709945"),n.e("chunk-72c6e8d8"),n.e("chunk-2c05d556")]).then(n.bind(null,"beee"))}}],U=new $["a"]({mode:"hash",base:"",routes:J}),q=U,z=n("f309"),G=n("0fe0"),X=n.n(G),K=n("fcf4");a["a"].use(z["a"]);var W={lang:{locales:{de:X.a},current:"de"},theme:{dark:!0,themes:{dark:{primary:K["a"].grey.darken4,secondary:K["a"].grey.darken3,success:K["a"].green.accent2,accent:K["a"].green.accent2},light:{primary:K["a"].grey,secondary:K["a"].grey.lighten3,success:K["a"].green.accent3,accent:K["a"].green.accent3}}}},Z=new z["a"](W),Q=n("1321"),Y=n.n(Q),ee=(n("159b"),n("466d"),n("ac1f"),n("a925"));function te(){var e=n("49f8"),t={};return e.keys().forEach((function(n){var a=n.match(/([A-Za-z0-9-_]+)\./i);if(a&&a.length>1){var r=a[1];t[r]=e(n)}})),t}a["a"].use(ee["a"]);var ne=new ee["a"]({locale:"de",fallbackLocale:"en",messages:te()}),ae=n("b85c"),re=n("2909"),se=n("1da1"),ie=n("53ca"),oe=n("d4ec"),ce=n("bee2"),pe=n("262e"),ue=n("2caf"),le=(n("96cf"),n("fb6a"),n("1276"),n("5319"),n("13d5"),n("b64b"),n("b0c0"),n("d81d"),n("a15b"),n("b680"),n("25f0"),n("99af"),n("4d63"),n("07ac"),n("faa1")),he=n.n(le),de=function(e){Object(pe["a"])(n,e);var t=Object(ue["a"])(n);function n(){var e;return Object(oe["a"])(this,n),e=t.call(this),e.app={connection:{location:window.location.protocol+"//"+window.location.hostname,port:window.location.port,path:"fhem"},socket:null,session:{connect:!1,ready:!1,csrf:null,restart:!1,restartCnt:0,logList:[]},options:{lang:"de",debugMode:!1,debugLevel:5,loading:!1,loadCount:0,clockInterval:5e3,clock:null,date:null,maxChartPoints:100,updateProcess:!1,logRecord:!0,logBuffer:500,ignoreFhemRoom:!1,ignoreFhemGroup:!1,ignoreFhemSortby:!1,mobileHeader:!1},theme:{dark:!0,themes:{}},appBar:{color:"primary",drawer:!1,clock:null,header:null},templates:[],componentMap:[{name:"panel",component:"templ_panel"},{name:"chart",component:"templ_chart"},{name:"weather",component:"templ_weather"},{name:"sysmon",component:"templ_sysmon"},{name:"hmlan",component:"templ_hmlan"},{name:"sonos",component:"templ_sonos"},{name:"scenes",component:"templ_scenes"}],data:{roomList:[],groupList:[],deviceList:[],routeList:[],header:""}},e}return Object(ce["a"])(n,[{key:"loading",set:function(e){e&&this.app.options.loadCount++,!e&&this.app.options.loadCount>0&&this.app.options.loadCount--,this.app.options.loadCount>0&&!this.app.options.loading&&(this.app.options.loading=!0),0===this.app.options.loadCount&&(this.app.options.loading=!1)}},{key:"log",value:function(e){var t=["","mdi-alert-outline","mdi-connection","mdi-send-circle-outline","mdi-sync","mdi-hexagon-multiple-outline"],n=["","error","info","success","success","warning"],a=(new Date).toLocaleTimeString(this.app.options.lang),r=(new Date).getMilliseconds(),s={time:a+":"+("000"+r).slice(-3),msg:e.msg||"",lvl:e.lvl||5,icon:t[e.lvl||5],color:n[e.lvl||5]};this.app.options.logRecord&&s.lvl<=this.app.options.debugLevel&&(this.app.session.logList.unshift(s),this.app.session.logList.length>this.app.options.logBuffer&&(this.app.session.logList.length=this.app.options.logBuffer)),1==s.lvl&&this.emit("message",s)}},{key:"getDate",value:function(e){var t=e?parseInt(e):0;return function(e){return new Date(e.setDate(e.getDate()+t)).toISOString()}(new Date).split("T")[0]}},{key:"getDateTime",value:function(e){var t=e||(new Date).toISOString();return new Date(t.replace(" ","T")).toLocaleString(this.app.options.lang,{dateStyle:"short",timeStyle:"medium"}).replace(",","")}},{key:"createURL",value:function(e){var t=this.app.connection,n=t.location?t.location:"",a=t.port?":"+t.port.replace(":",""):"",r=t.path?"/"+t.path.replace("/",""):"",s="";return"object"==Object(ie["a"])(e)&&e.length>0&&e.forEach((function(e){e.param&&e.value&&(s+=s?"&":"?",s+=e.param+"="+encodeURIComponent(e.value))})),n+a+r+s}},{key:"getEl",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a0?r.push.apply(r,Object(re["a"])(t)):r.push(t)),"string"===typeof t&&r.push({param:"cmd",value:t}),s=this.createURL(r),this.log({lvl:3,msg:"Request: "+s}),e.next=9,fetch(s).then((function(e){var t=null;return"csrf"===n&&(t=e.headers.get("x-fhem-csrftoken")),"json"===n&&(t=e.json()),t||(t=e.text()),"object"===Object(ie["a"])(a)?Object.assign(a,{data:t}):t})).catch((function(e){return i.log({lvl:1,msg:e.message+" - Request: "+s})}));case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)})));function t(t,n,a){return e.apply(this,arguments)}return t}()},{key:"getJsonFile",value:function(){var e=Object(se["a"])(regeneratorRuntime.mark((function e(t){var n,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=new Headers,n.append("pragma","no-cache"),n.append("cache-control","no-cache"),a={method:"GET",headers:n},this.log({lvl:5,msg:"Read Json-Data from "+t}),e.next=7,fetch(t,a).then((function(e){return e.json()}));case 7:return r=e.sent,r||this.log({lvl:1,msg:"No Json-Data found at "+t}),e.next=11,r;case 11:return e.abrupt("return",e.sent);case 12:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"readConfig",value:function(){var e=Object(se["a"])(regeneratorRuntime.mark((function e(t){var n,a,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getJsonFile(t);case 2:if(n=e.sent,n){for(a=0,r=Object.keys(n);a0)){e.next=41;break}n=[],a=[],this.app.data.routeList.splice(0),r=Object(ae["a"])(t.Results),e.prev=8,r.s();case 10:if((s=r.n()).done){e.next=27;break}return i=s.value,e.next=14,this.createOptions(i);case 14:if(o=e.sent,!o.template){e.next=25;break}return e.next=18,this.getTemplate(o);case 18:c=e.sent,c&&this.app.templates.push(c),o.room&&this.createNaviItems(o,n,"room"),o.group&&this.createNaviItems(o,a,"group"),o.home&&this.createRoutes(o,"/"),o.dashboard&&this.createRoutes(o,"/dashboard"),o.system&&this.createRoutes(o,"/system");case 25:e.next=10;break;case 27:e.next=32;break;case 29:e.prev=29,e.t0=e["catch"](8),r.e(e.t0);case 32:return e.prev=32,r.f(),e.finish(32);case 35:n.sort((function(e,t){return e.title>t.title?1:t.title>e.title?-1:0})),a.sort((function(e,t){return e.title>t.title?1:t.title>e.title?-1:0})),this.app.data.roomList=Object.assign([],n),this.app.data.groupList=Object.assign([],a),this.app.session.ready=!0,this.loading=!1;case 41:case"end":return e.stop()}}),e,this,[[8,29,32,35]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"createConnected",value:function(){var e=Object(se["a"])(regeneratorRuntime.mark((function e(t){var n,a,r,s,i,o,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n={},!("connected"in t.Options)){e.next=20;break}a=Object.keys(t.Options.connected),r=0,s=a;case 4:if(!(rt.Options.sortby?1:t.Options.sortby>e.Options.sortby?-1:0})),this.app.data.deviceList=Object.assign([],s),this.loading=!1),i++;case 37:e.next=14;break;case 39:e.next=44;break;case 41:e.prev=41,e.t0=e["catch"](12),o.e(e.t0);case 44:return e.prev=44,o.f(),e.finish(44);case 47:case"end":return e.stop()}}),e,this,[[12,41,44,47]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"checkUpdate",value:function(){var e=Object(se["a"])(regeneratorRuntime.mark((function e(){var t,n,a,r,s,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.request([{param:"cmd",value:"update check"},{param:"XHR",value:"1"}]);case 2:if(t=e.sent,n=0,t){a=t.split("\n").splice(2),r=Object(ae["a"])(a);try{for(r.s();!(s=r.n()).done;)i=s.value,i.match("UPD")&&!i.match("excluded")&&n++}catch(o){r.e(o)}finally{r.f()}}return e.abrupt("return",n>0);case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"handleLogData",value:function(e){var t=e.split("\n");t.length>3&&t.splice(-3,3);var n,a=[],r=t.length>this.app.options.maxChartPoints?parseInt(t.length/this.app.options.maxChartPoints):1,s=r,i=0,o=1,c=Object(ae["a"])(t);try{for(c.s();!(n=c.n()).done;){var p=n.value,u=p.split(" "),l=Date.parse(u[0].replace("_","T")),h=parseFloat(u[1]);i+=h,(o>=s||o===t.length)&&(o===t.length&&(r-=s-o),a.push({timestamp:l,value:i/r}),s+=r,i=0),o++}}catch(d){c.e(d)}finally{c.f()}return this.log({lvl:5,msg:"handle Chartdata (Lines: "+t.length+")"}),a}},{key:"readLogData",value:function(){var e=Object(se["a"])(regeneratorRuntime.mark((function e(t){var n,a,r,s,i,o,c,p,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=[],this.loading=!0,!(t.defs&&t.defs.length>0)){e.next=40;break}a=0,r=Object(ae["a"])(t.defs),e.prev=5,r.s();case 7:if((s=r.n()).done){e.next=32;break}return i=s.value,o=/\(.*\)/.exec(i),c=o?i.replace(o[0],"_").split(":"):i.split(":"),p="get ",p+=c[0]?c[0]:t.deviceName,p+=t.from?" - - "+t.from:"",p+=t.to?" "+t.to:"",p+=o?" "+o[0].replace(/\(|\)/g,""):" 4:"+c[1],e.next=18,this.request([{param:"cmd",value:p},{param:"XHR",value:"1"}],"text",{id:a});case 18:if(u=e.sent,!u){e.next=29;break}return e.t0=n,e.t1=u.id,e.t2=this,e.next=25,u.data;case 25:e.t3=e.sent,e.t4=e.t2.handleLogData.call(e.t2,e.t3),e.t5={id:e.t1,data:e.t4},e.t0.push.call(e.t0,e.t5);case 29:a++;case 30:e.next=7;break;case 32:e.next=37;break;case 34:e.prev=34,e.t6=e["catch"](5),r.e(e.t6);case 37:return e.prev=37,r.f(),e.finish(37);case 40:return this.loading=!1,e.abrupt("return",Object.assign(t,{data:n}));case 42:case"end":return e.stop()}}),e,this,[[5,34,37,40]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"replaceVals",value:function(e,t){for(var n=/-?[0-9]/.exec(t),a=[],r=2;r0){var a,r=Object(ae["a"])(t);try{for(r.s();!(a=r.n()).done;){var s=a.value,i=s.split(":");if(i.length>2){var o=i[0].match(/\./)?i[0].split("."):["Readings",i[0],"Value"],c=this.getEl.apply(this,[e].concat(Object(re["a"])(o)))||this.getEl(e,"Readings",i[0],"Value");if(c){var p=!1;if(isNaN(parseFloat(i[1])))RegExp(i[1]?i[1]:".").test(c)&&(p=!0);else{var u=/-?[0-9]/.exec(c);-1!=u.index&&parseFloat(c.slice(u.index))>=parseFloat(i[1])&&(p=!0)}if(p){n=this.replaceVals(i,c);break}}}}}catch(l){r.e(l)}finally{r.f()}}return n}},{key:"handleData",value:function(e){var t=JSON.parse(e),n=null;if(!t[2].match("0){var s=this.handleData(r);if(s){var i,o=0,c=Object(ae["a"])(this.app.data.deviceList);try{for(c.s();!(i=c.n()).done;){var p=i.value,u=this.app.data.deviceList[o],l=Object.assign({},u);if(p.Name===s.Name&&("Readings"===s.devicePart&&this.getEl(l,"Readings",s.param,s.paramPart)&&(l.Readings[s.param][s.paramPart]=s.value),"Attributes"===s.devicePart&&this.getEl(l,"Attributes",s.param)&&(l.Attributes[s.param]=s.value),this.app.data.deviceList.splice(o,1,l)),"Connected"in p)for(var h=0,d=0,m=Object.values(p.Connected);dthis.log.pageCount?this.log.pageCount:t<1?1:t,this.log.lastPage=1===this.log.page,this.log.nextPage=this.log.page===this.log.pageCount},showMeta:function(e){this.log.metaDialog=!0,this.log.metaData=e.meta}}}),r=l,c=a("2877"),g=a("6544"),d=a.n(g),v=a("8336"),u=a("b0af"),p=a("99d9"),h=a("62ad"),m=a("8fea"),f=a("169a"),x=a("ce7e"),y=a("132d"),b=a("8e36"),k=a("0fd9"),P=a("2fa4"),_=a("afd9"),C=a("8654"),V=a("269a"),w=a.n(V),D=a("dc22"),I=Object(c["a"])(r,o,s,!1,null,null,null);t["default"]=I.exports;d()(I,{VBtn:v["a"],VCard:u["a"],VCardText:p["c"],VCardTitle:p["d"],VCol:h["a"],VDataTable:m["a"],VDialog:f["a"],VDivider:x["a"],VIcon:y["a"],VProgressLinear:b["a"],VRow:k["a"],VSpacer:P["a"],VSystemBar:_["a"],VTextField:C["a"]}),w()(I,{Resize:D["a"]})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-2c05d556.0cfae3f0.js b/www/fhemapp/js/chunk-2c05d556.0cfae3f0.js deleted file mode 100644 index d0d6c61d..00000000 --- a/www/fhemapp/js/chunk-2c05d556.0cfae3f0.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2c05d556"],{"269a":function(e,t){e.exports=function(e,t){var s="function"===typeof e.exports?e.exports.extendOptions:e.options;for(var a in"function"===typeof e.exports&&(s.directives=e.exports.options.directives),s.directives=s.directives||{},t)s.directives[a]=s.directives[a]||t[a]}},8308:function(e,t,s){},afd9:function(e,t,s){"use strict";var a=s("5530"),o=(s("a9e3"),s("c7cd"),s("8308"),s("3a66")),i=s("a9ad"),n=s("7560"),r=s("58df"),l=s("80d2");t["a"]=Object(r["a"])(Object(o["a"])("bar",["height","window"]),i["a"],n["a"]).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes:function(){return Object(a["a"])({"v-system-bar--lights-out":this.lightsOut,"v-system-bar--absolute":this.absolute,"v-system-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-system-bar--window":this.window},this.themeClasses)},computedHeight:function(){return this.height?isNaN(parseInt(this.height))?this.height:parseInt(this.height):this.window?32:24},styles:function(){return{height:Object(l["g"])(this.computedHeight)}}},methods:{updateApplication:function(){return this.$el?this.$el.clientHeight:this.computedHeight}},render:function(e){var t={staticClass:"v-system-bar",class:this.classes,style:this.styles,on:this.$listeners};return e("div",this.setBackgroundColor(this.color,t),Object(l["s"])(this))}})},beee:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("v-card",{directives:[{name:"resize",rawName:"v-resize",value:e.onResize,expression:"onResize"}],attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[s("v-progress-linear",{attrs:{height:"7",value:e.vals.mainLevel,color:e.vals.mainColor,"background-color":"secondary darken-1"}}),s("v-card-title",{staticClass:"text-truncate"},[e._v(" "+e._s(e.vals.title)+e._s(e.log.recordStatus)+" ")]),s("v-divider"),s("v-card-text",[s("v-row",{attrs:{align:"center"}},[s("v-col",[s("v-text-field",{attrs:{"append-icon":"mdi-magnify",clearable:"","clear-icon":"mdi-close",label:"Filter","single-line":""},on:{"click:clear":e.clearFilter},model:{value:e.log.search,callback:function(t){e.$set(e.log,"search",t)},expression:"log.search"}})],1),s("v-col",{staticClass:"shrink",attrs:{align:"center"}},[s("v-btn",{attrs:{icon:"",small:""},on:{click:function(t){e.options.logRecord=!e.options.logRecord}}},[s("v-icon",[e._v(e._s(e.log.recordIcon))])],1)],1),s("v-col",{staticClass:"shrink",attrs:{align:"center"}},[s("v-btn",{attrs:{icon:"",small:"",disabled:e.log.lastPage},on:{click:function(t){return e.setPage(-1)}}},[s("v-icon",[e._v(e._s(e.log.lastPageIcon))])],1)],1),s("v-col",{staticClass:"shrink",attrs:{align:"center"}},[s("v-btn",{attrs:{icon:"",small:"",disabled:e.log.nextPage},on:{click:function(t){return e.setPage(1)}}},[s("v-icon",[e._v(e._s(e.log.nextPageIcon))])],1)],1)],1),s("v-data-table",{attrs:{dense:"",headers:e.log.headers,items:e.session.logList,search:e.log.search,"items-per-page":e.log.itemsPerPage,page:e.log.page,"hide-default-header":"","hide-default-footer":""},on:{"update:page":function(t){return e.$set(e.log,"page",t)},"page-count":function(t){e.log.pageCount=t}},scopedSlots:e._u([{key:"item.icon",fn:function(t){var a=t.item;return[s("v-icon",{attrs:{color:a.color}},[e._v(" "+e._s(a.icon)+" ")])]}}])})],1),s("v-divider"),s("v-system-bar",{attrs:{color:"secondary darken-1"}},[s("v-icon",[e._v(e._s(e.vals.systemIcon))]),e._v(" "+e._s(e.vals.systemIconValue)+" ")],1)],1)},o=[],i=(s("841c"),s("ac1f"),{data:function(){return{name:"syslog",vals:{title:"Systemprotokoll",mainLevel:0,mainColor:"",systemIcon:"mdi-clipboard-text",systemIconValue:""},options:{logRecord:!0},session:{logList:[],logLast:{}},log:{headers:[{text:"Art",value:"icon",class:"secondary"},{text:"Zeit",value:"time",class:"secondary"},{text:"Nachricht",value:"msg",class:"secondary"}],search:"",lastPageIcon:"mdi-chevron-left",nextPageIcon:"mdi-chevron-right",recordIcon:"",recordStatus:"",itemsPerPage:10,page:1,pageCount:1,lastPage:!0,nextPage:!1}}},watch:{session:{immediate:!0,deep:!0,handler:function(e){this.vals.systemIconValue=e.logList.length}},"log.pageCount":function(){this.log.lastPage=1===this.log.page,this.log.nextPage=this.log.page===this.log.pageCount},options:{immediate:!0,deep:!0,handler:function(e){this.log.recordIcon=e.logRecord?"mdi-pause":"mdi-play",this.log.recordStatus=e.logRecord?"":" - angehalten"}}},mounted:function(){this.session=this.$fhem.app.session,this.options=this.$fhem.app.options},methods:{onResize:function(){this.log.itemsPerPage=parseInt((window.innerHeight-300)/32)},clearFilter:function(){this.log.search=""},setPage:function(e){var t=this.log.page+e;this.log.page=t>this.log.pageCount?this.log.pageCount:t<1?1:t,this.log.lastPage=1===this.log.page,this.log.nextPage=this.log.page===this.log.pageCount}}}),n=i,r=s("2877"),l=s("6544"),c=s.n(l),g=s("8336"),d=s("b0af"),h=s("99d9"),u=s("62ad"),p=s("8fea"),v=s("ce7e"),m=s("132d"),f=s("8e36"),b=s("0fd9"),y=s("afd9"),x=s("8654"),w=s("269a"),P=s.n(w),C=s("dc22"),k=Object(r["a"])(n,a,o,!1,null,null,null);t["default"]=k.exports;c()(k,{VBtn:g["a"],VCard:d["a"],VCardText:h["c"],VCardTitle:h["d"],VCol:u["a"],VDataTable:p["a"],VDivider:v["a"],VIcon:m["a"],VProgressLinear:f["a"],VRow:b["a"],VSystemBar:y["a"],VTextField:x["a"]}),P()(k,{Resize:C["a"]})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-2d212bf1.923fd44e.js b/www/fhemapp/js/chunk-2d212bf1.e377c778.js similarity index 80% rename from www/fhemapp/js/chunk-2d212bf1.923fd44e.js rename to www/fhemapp/js/chunk-2d212bf1.e377c778.js index 90314412..49b39289 100644 --- a/www/fhemapp/js/chunk-2d212bf1.923fd44e.js +++ b/www/fhemapp/js/chunk-2d212bf1.e377c778.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d212bf1"],{aa72:function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("v-row",e._l(e.app.data.deviceList,(function(e){return t(e.Options.component,{key:e.Internals.FUUID,tag:"component",attrs:{item:e}})})),1)],1)},i=[],s=(t("d3b7"),t("3ca3"),t("ddb0"),t("b0c0"),t("466d"),t("ac1f"),t("4de4"),t("1276"),{name:"Devices",components:{templ_default:function(){return Promise.all([t.e("chunk-28a3f15f"),t.e("chunk-d4e16e04"),t.e("chunk-4a62a958"),t.e("chunk-2d0aa92c")]).then(t.bind(null,"121f"))},templ_panel:function(){return Promise.all([t.e("chunk-28a3f15f"),t.e("chunk-dc5178fa")]).then(t.bind(null,"5d11"))},templ_chart:function(){return Promise.all([t.e("chunk-28a3f15f"),t.e("chunk-07709945"),t.e("chunk-53c4ff2a")]).then(t.bind(null,"b009"))},templ_weather:function(){return t.e("chunk-03454508").then(t.bind(null,"1de8"))},templ_scenes:function(){return Promise.all([t.e("chunk-28a3f15f"),t.e("chunk-dd03e16c")]).then(t.bind(null,"09fe"))},templ_sonos:function(){return Promise.all([t.e("chunk-d4e16e04"),t.e("chunk-4a62a958"),t.e("chunk-17d492e6")]).then(t.bind(null,"dd08"))},templ_sysmon:function(){return Promise.all([t.e("chunk-d4e16e04"),t.e("chunk-b2de1140")]).then(t.bind(null,"86eb"))},templ_hmlan:function(){return t.e("chunk-15fa718e").then(t.bind(null,"fca9"))}},data:function(){return{app:{session:{connect:!1},options:{mobileHeader:!1},data:{deviceList:[],header:""}}}},watch:{$route:function(){this.subscribe()},"app.session.ready":function(e){e&&this.subscribe()}},mounted:function(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data},methods:{setHeader:function(){this.app.options.mobileHeader&&("Devices"===this.$route.name?this.$route.params.filter.match("device=")?this.$fhem.app.appBar.header="":this.$fhem.app.appBar.header=this.$route.params.filter.split("=")[1]:this.$fhem.app.appBar.header=this.$route.name)},subscribe:function(){var e=this.$route.params.filter||this.$route.path;this.setHeader(),this.$fhem.getDevices(e)}}}),u=s,c=t("2877"),r=t("6544"),h=t.n(r),o=t("0fd9"),p=Object(c["a"])(u,a,i,!1,null,null,null);n["default"]=p.exports;h()(p,{VRow:o["a"]})}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d212bf1"],{aa72:function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("v-row",e._l(e.app.data.deviceList,(function(e){return t(e.Options.component,{key:e.Internals.FUUID,tag:"component",attrs:{item:e}})})),1)],1)},i=[],s=(t("d3b7"),t("3ca3"),t("ddb0"),t("b0c0"),t("466d"),t("ac1f"),t("4de4"),t("1276"),{name:"Devices",components:{templ_default:function(){return Promise.all([t.e("chunk-28a3f15f"),t.e("chunk-ecd3142c"),t.e("chunk-50f89d12"),t.e("chunk-2d0aa92c")]).then(t.bind(null,"121f"))},templ_panel:function(){return Promise.all([t.e("chunk-28a3f15f"),t.e("chunk-dc5178fa")]).then(t.bind(null,"5d11"))},templ_chart:function(){return Promise.all([t.e("chunk-28a3f15f"),t.e("chunk-07709945"),t.e("chunk-53c4ff2a")]).then(t.bind(null,"b009"))},templ_weather:function(){return t.e("chunk-03454508").then(t.bind(null,"1de8"))},templ_scenes:function(){return Promise.all([t.e("chunk-28a3f15f"),t.e("chunk-dd03e16c")]).then(t.bind(null,"09fe"))},templ_sonos:function(){return Promise.all([t.e("chunk-ecd3142c"),t.e("chunk-50f89d12"),t.e("chunk-3c9d184f")]).then(t.bind(null,"dd08"))},templ_sysmon:function(){return Promise.all([t.e("chunk-ecd3142c"),t.e("chunk-46bea2ee")]).then(t.bind(null,"86eb"))},templ_hmlan:function(){return t.e("chunk-15fa718e").then(t.bind(null,"fca9"))}},data:function(){return{app:{session:{connect:!1},options:{mobileHeader:!1},data:{deviceList:[],header:""}}}},watch:{$route:function(){this.subscribe()},"app.session.ready":function(e){e&&this.subscribe()}},mounted:function(){this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data},methods:{setHeader:function(){this.app.options.mobileHeader&&("Devices"===this.$route.name?this.$route.params.filter.match("device=")?this.$fhem.app.appBar.header="":this.$fhem.app.appBar.header=this.$route.params.filter.split("=")[1]:this.$fhem.app.appBar.header=this.$route.name)},subscribe:function(){var e=this.$route.params.filter||this.$route.path;this.setHeader(),this.$fhem.getDevices(e)}}}),c=s,u=t("2877"),r=t("6544"),h=t.n(r),o=t("0fd9"),p=Object(u["a"])(c,a,i,!1,null,null,null);n["default"]=p.exports;h()(p,{VRow:o["a"]})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-17d492e6.9e183584.js b/www/fhemapp/js/chunk-3c9d184f.28dc459c.js similarity index 99% rename from www/fhemapp/js/chunk-17d492e6.9e183584.js rename to www/fhemapp/js/chunk-3c9d184f.28dc459c.js index 2788f7cb..9eb42bce 100644 --- a/www/fhemapp/js/chunk-17d492e6.9e183584.js +++ b/www/fhemapp/js/chunk-3c9d184f.28dc459c.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-17d492e6"],{"297c":function(t,e,s){"use strict";s("a9e3");var i=s("2b0e"),a=s("37c6");e["a"]=i["a"].extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress:function(){return!1===this.loading?null:this.$slots.progress||this.$createElement(a["a"],{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}})},"37c6":function(t,e,s){"use strict";var i=s("8e36");e["a"]=i["a"]},"480e":function(t,e,s){"use strict";s("7db0");var i=s("7560");e["a"]=i["a"].extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark:function(){return this.root?this.rootIsDark:i["a"].options.computed.isDark.call(this)}},render:function(){return this.$slots.default&&this.$slots.default.find((function(t){return!t.isComment&&" "!==t.text}))}})},"615b":function(t,e,s){},"6ece":function(t,e,s){},"8e36":function(t,e,s){"use strict";var i=s("5530"),a=s("ade3"),n=(s("a9e3"),s("c7cd"),s("6ece"),s("0789")),r=s("a9ad"),l=s("fe6c"),o=s("a452"),c=s("7560"),d=s("80d2"),u=s("58df"),h=Object(u["a"])(r["a"],Object(l["b"])(["absolute","fixed","top","bottom"]),o["a"],c["a"]);e["a"]=h.extend({name:"v-progress-linear",props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:4},indeterminate:Boolean,query:Boolean,reverse:Boolean,rounded:Boolean,stream:Boolean,striped:Boolean,value:{type:[Number,String],default:0}},data:function(){return{internalLazyValue:this.value||0}},computed:{__cachedBackground:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle}))},__cachedBar:function(){return this.$createElement(this.computedTransition,[this.__cachedBarType])},__cachedBarType:function(){return this.indeterminate?this.__cachedIndeterminate:this.__cachedDeterminate},__cachedBuffer:function(){return this.$createElement("div",{staticClass:"v-progress-linear__buffer",style:this.styles})},__cachedDeterminate:function(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__determinate",style:{width:Object(d["g"])(this.normalizedValue,"%")}}))},__cachedIndeterminate:function(){return this.$createElement("div",{staticClass:"v-progress-linear__indeterminate",class:{"v-progress-linear__indeterminate--active":this.active}},[this.genProgressBar("long"),this.genProgressBar("short")])},__cachedStream:function(){return this.stream?this.$createElement("div",this.setTextColor(this.color,{staticClass:"v-progress-linear__stream",style:{width:Object(d["g"])(100-this.normalizedBuffer,"%")}})):null},backgroundStyle:function(){var t,e=null==this.backgroundOpacity?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity);return t={opacity:e},Object(a["a"])(t,this.isReversed?"right":"left",Object(d["g"])(this.normalizedValue,"%")),Object(a["a"])(t,"width",Object(d["g"])(this.normalizedBuffer-this.normalizedValue,"%")),t},classes:function(){return Object(i["a"])({"v-progress-linear--absolute":this.absolute,"v-progress-linear--fixed":this.fixed,"v-progress-linear--query":this.query,"v-progress-linear--reactive":this.reactive,"v-progress-linear--reverse":this.isReversed,"v-progress-linear--rounded":this.rounded,"v-progress-linear--striped":this.striped},this.themeClasses)},computedTransition:function(){return this.indeterminate?n["c"]:n["e"]},isReversed:function(){return this.$vuetify.rtl!==this.reverse},normalizedBuffer:function(){return this.normalize(this.bufferValue)},normalizedValue:function(){return this.normalize(this.internalLazyValue)},reactive:function(){return Boolean(this.$listeners.change)},styles:function(){var t={};return this.active||(t.height=0),this.indeterminate||100===parseFloat(this.normalizedBuffer)||(t.width=Object(d["g"])(this.normalizedBuffer,"%")),t}},methods:{genContent:function(){var t=Object(d["s"])(this,"default",{value:this.internalLazyValue});return t?this.$createElement("div",{staticClass:"v-progress-linear__content"},t):null},genListeners:function(){var t=this.$listeners;return this.reactive&&(t.click=this.onClick),t},genProgressBar:function(t){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:Object(a["a"])({},t,!0)}))},onClick:function(t){if(this.reactive){var e=this.$el.getBoundingClientRect(),s=e.width;this.internalValue=t.offsetX/s*100}},normalize:function(t){return t<0?0:t>100?100:parseFloat(t)}},render:function(t){var e={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,style:{bottom:this.bottom?0:void 0,height:this.active?Object(d["g"])(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return t("div",e,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}})},"99d9":function(t,e,s){"use strict";s.d(e,"a",(function(){return n})),s.d(e,"b",(function(){return r})),s.d(e,"c",(function(){return l})),s.d(e,"d",(function(){return o}));var i=s("b0af"),a=s("80d2"),n=Object(a["i"])("v-card__actions"),r=Object(a["i"])("v-card__subtitle"),l=Object(a["i"])("v-card__text"),o=Object(a["i"])("v-card__title");i["a"]},b0af:function(t,e,s){"use strict";var i=s("5530"),a=(s("a9e3"),s("0481"),s("615b"),s("10d2")),n=s("297c"),r=s("1c87"),l=s("58df");e["a"]=Object(l["a"])(n["a"],r["a"],a["a"]).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes:function(){return Object(i["a"])(Object(i["a"])({"v-card":!0},r["a"].options.computed.classes.call(this)),{},{"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised},a["a"].options.computed.classes.call(this))},styles:function(){var t=Object(i["a"])({},a["a"].options.computed.styles.call(this));return this.img&&(t.background='url("'.concat(this.img,'") center center / cover no-repeat')),t}},methods:{genProgress:function(){var t=n["a"].options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render:function(t){var e=this.generateRouteLink(),s=e.tag,i=e.data;return i.style=this.styles,this.isClickable&&(i.attrs=i.attrs||{},i.attrs.tabindex=0),t(s,this.setBackgroundColor(this.color,i),[this.genProgress(),this.$slots.default])}})},dd08:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-col",{class:t.setup.size},[s("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[s("v-progress-linear",{attrs:{height:"7",value:t.vals.status.level,color:t.vals.status.color,"background-color":"secondary darken-1"}}),s("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" "),s("v-spacer"),t.app.options.debugMode?s("jsonList",{attrs:{item:t.item}}):t._e(),s("v-btn",{attrs:{small:"",icon:""},on:{click:t.expand}},[s("v-icon",{attrs:{small:""}},[t._v(" "+t._s(t.maxIcon)+" ")])],1)],1),s("v-divider"),s("v-card-text",[s("v-row",{attrs:{align:"center"}},[s("v-col",{staticClass:"col-3",attrs:{align:"center"}},[t.expanded?t._e():s("v-btn",{attrs:{icon:""},on:{click:function(e){return t.setVolume("D")}}},[s("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.leftIcon)+" ")])],1),t.expanded?s("v-btn",{attrs:{icon:"",disabled:t.prevDisabled},on:{click:function(e){return t.setPlayer("Previous")}}},[s("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.prevIcon)+" ")])],1):t._e()],1),s("v-divider",{attrs:{vertical:""}}),s("v-col",{attrs:{align:"center"}},[s("v-btn",{attrs:{icon:""},on:{click:function(e){return t.setPlay()}}},[s("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.playIcon)+" ")])],1)],1),s("v-divider",{attrs:{vertical:""}}),s("v-col",{staticClass:"col-3",attrs:{align:"center"}},[t.expanded?t._e():s("v-btn",{attrs:{icon:""},on:{click:function(e){return t.setVolume("U")}}},[s("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.rightIcon)+" ")])],1),t.expanded?s("v-btn",{attrs:{icon:"",disabled:t.nextDisabled},on:{click:function(e){return t.setPlayer("Next")}}},[s("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.nextIcon)+" ")])],1):t._e()],1)],1)],1),t.expanded?s("v-divider"):t._e(),t.expanded?s("v-card-text",[s("v-row",{attrs:{align:"center"}},[s("v-col",[s("v-slider",{attrs:{"hide-details":"",color:"accent"},on:{change:t.setVolume},scopedSlots:t._u([{key:"prepend",fn:function(){return[s("v-icon",{on:{click:function(e){return t.setMute()}}},[t._v(" "+t._s(t.volumeIcon)+" ")])]},proxy:!0}],null,!1,4048868738),model:{value:t.vals.volume,callback:function(e){t.$set(t.vals,"volume",e)},expression:"vals.volume"}})],1)],1),s("v-row",{attrs:{align:"center"}},[s("v-col",{staticClass:"col-4"}),s("v-col",{staticClass:"col-4 text-h6",attrs:{align:"center"}},[t._v(" "+t._s(t.vals.trackPosition)+" ")]),s("v-col",{staticClass:"col-4",attrs:{align:"center"}},[t._v(" "+t._s(t.vals.tracks)+" ")])],1)],1):t._e(),t.expanded&&t.vals.zones.length>0?s("v-divider"):t._e(),t.expanded&&t.vals.zones.length>0?s("v-card-text",[s("v-row",[s("v-col",t._l(t.vals.zones,(function(e){return s("span",{key:e},[s("v-chip",{staticClass:"mr-2",attrs:{small:""}},[t._v(t._s(e))])],1)})),0)],1)],1):t._e(),s("v-divider"),s("v-system-bar",{attrs:{color:"secondary darken-1"}},[s("v-icon",{staticClass:"ml-0"},[t._v(" "+t._s(t.vals.info.left1Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.info.left1Text)+" ")]),s("v-icon",{staticClass:"ml-2"},[t._v(" "+t._s(t.vals.info.left2Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.info.left2Text)+" ")]),s("v-spacer"),s("v-icon",[t._v(" "+t._s(t.vals.info.mid1Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.info.mid1Text)+" ")]),s("v-icon",{staticClass:"ml-2"},[t._v(" "+t._s(t.vals.info.mid2Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.info.mid2Text)+" ")]),s("v-spacer"),s("v-icon",[t._v(" "+t._s(t.vals.info.right1Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.info.right1Text)+" ")]),s("v-icon",{staticClass:"ml-2 mr-0"},[t._v(" "+t._s(t.vals.info.right2Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.info.right2Text)+" ")])],1)],1)],1)},a=[],n=(s("4de4"),s("1276"),s("ac1f"),s("649b")),r={components:{jsonList:n["a"]},props:{item:{type:Object,default:function(){return{name:"sonos"}}}},data:function(){return{name:"sonos",app:{options:{debugMode:!1}},setup:{size:"col-12 col-sm-6 col-md-4 col-lg-4",status:{bar:["transportState:PLAYING:100:success","transportState::0:success"],error:[]},info:{left1:["Mute:1::mdi-volume-off","transportState:PLAYING::mdi-play","transportState:::mdi-pause"],left2:["currentArtist:$:%s","currentSource::%s"],mid1:[],mid2:[],right1:[],right2:["currentTitle::%s"]}},vals:{status:{color:"",level:0},info:{left1Icon:"",left1Text:"",left2Icon:"",left2Text:"",mid1Icon:"",mid1Text:"",mid2Icon:"",mid2Text:"",right1Icon:"",right1Text:"",right2Icon:"",right2Text:""},title:"",mainState:"",play:!1,volume:0,volumeChanged:!1,mute:!1,trackPosition:"",zones:[],tracks:"",playInfo1:"",playInfo2:""},leftIcon:"mdi-minus",playIcon:"mdi-play",rightIcon:"mdi-plus",maxIcon:"mdi-arrow-expand",expanded:!1,prevIcon:"mdi-skip-previous",prevDisabled:!0,nextIcon:"mdi-skip-next",nextDisabled:!0,volumeIcon:"mdi-volume-high",pendingClick:0}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var e=this.$fhem.getEl(t,"Readings","transportState","Value"),s=this.$fhem.getEl(t,"Readings","nextTrackHandle","Value")||"|",i=this.$fhem.getEl(t,"Readings","Volume","Value"),a=this.$fhem.getEl(t,"Readings","Mute","Value"),n=this.$fhem.getEl(t,"Readings","currentStreamAudio","Value"),r=this.$fhem.getEl(t,"Readings","currentTrack","Value"),l=this.$fhem.getEl(t,"Readings","numberOfTracks","Value"),o=this.$fhem.getEl(t,"Readings","ZoneGroupNameDetails","Value"),c=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||c,o&&(this.vals.title+=" (gruppiert)"),this.vals.zones=o.split(" + ").filter(Boolean),this.prevDisabled=!(s.split("|")[0].length>0),this.nextDisabled=!(s.split("|")[1].length>0),this.vals.trackPosition=this.$fhem.getEl(t,"Readings","currentTrackPositionSimulated","Value"),this.vals.volumeChanged&&this.vals.volume===parseInt(i)&&(this.vals.volumeChanged=!1),this.vals.volumeChanged||(this.vals.volume=parseInt(i)),this.vals.mute="1"===a,this.volumeIcon=this.vals.mute?"mdi-volume-mute":"mdi-volume-high",this.vals.tracks="0"===n?r+" von "+l:"",this.vals.play="PLAYING"===e,this.playIcon=this.vals.play?"mdi-pause":"mdi-play",this.setValues()}}},mounted:function(){this.app.options=this.$fhem.app.options},methods:{setValues:function(){var t=this.$fhem.handleVals(this.item,this.setup.status.bar),e=this.$fhem.handleVals(this.item,this.setup.status.error),s=this.$fhem.handleVals(this.item,this.setup.info.left1),i=this.$fhem.handleVals(this.item,this.setup.info.left2),a=this.$fhem.handleVals(this.item,this.setup.info.mid1),n=this.$fhem.handleVals(this.item,this.setup.info.mid2),r=this.$fhem.handleVals(this.item,this.setup.info.right1),l=this.$fhem.handleVals(this.item,this.setup.info.right2);this.vals.status.level=t[0]||"100",this.vals.status.color=t[1]||"success",this.vals.status.invert=!!t[2],this.vals.info.left1Icon=s[1]||"",this.vals.info.left1Text=s[0]||"",this.vals.info.left2Icon=i[1]||"",this.vals.info.left2Text=i[0]||"",this.vals.info.mid1Icon=a[1]||"",this.vals.info.mid1Text=a[0]||"",this.vals.info.mid2Icon=n[1]||"",this.vals.info.mid2Text=n[0]||"",this.vals.info.right1Icon=r[1]||"",this.vals.info.right1Text=r[0]||"",this.vals.info.right2Icon=l[1]||"",this.vals.info.right2Text=l[0]||"",e.length>0?(this.vals.status.level=e[0]||"100",this.vals.status.color=e[1]||"error",this.vals.main.text=e[2]||"Fehler",this.isActive=!1):this.isActive=!0},sendCmd:function(t,e){var s=this;e?(this.pendingClick&&(clearTimeout(this.pendingClick),this.pendingClick=0),this.pendingClick=setTimeout((function(){s.$fhem.request(t)}),1e3)):this.$fhem.request(t)},setVolume:function(t){this.vals.volumeChanged=!0;var e=this.vals.zones.length>0?" GroupVolume":" Volume";"D"!=t&&"U"!=t&&(t=" "+t);var s="set "+this.item.Name+e+t;this.sendCmd(s)},setPlayer:function(t){var e="set "+this.item.Name+" "+t;this.sendCmd(e)},setPlay:function(){var t="set "+this.item.Name+(this.vals.play?" Pause":" Play");this.sendCmd(t)},setMute:function(){var t="set "+this.item.Name+(this.vals.mute?" Mute 0":" Mute 1");this.sendCmd(t)},expand:function(){this.expanded?(this.expanded=!1,this.maxIcon="mdi-arrow-expand"):(this.expanded=!0,this.maxIcon="mdi-arrow-collapse")}}},l=r,o=s("2877"),c=s("6544"),d=s.n(c),u=s("8336"),h=s("b0af"),v=s("99d9"),m=s("cc20"),f=s("62ad"),p=s("ce7e"),g=s("132d"),_=s("8e36"),b=s("0fd9"),x=s("ba0d"),y=s("2fa4"),k=s("afd9"),C=Object(o["a"])(l,i,a,!1,null,null,null);e["default"]=C.exports;d()(C,{VBtn:u["a"],VCard:h["a"],VCardText:v["c"],VCardTitle:v["d"],VChip:m["a"],VCol:f["a"],VDivider:p["a"],VIcon:g["a"],VProgressLinear:_["a"],VRow:b["a"],VSlider:x["a"],VSpacer:y["a"],VSystemBar:k["a"]})},e4d3:function(t,e,s){"use strict";var i=s("2b0e");e["a"]=i["a"].extend({name:"returnable",props:{returnValue:null},data:function(){return{isActive:!1,originalValue:null}},watch:{isActive:function(t){t?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save:function(t){var e=this;this.originalValue=t,setTimeout((function(){e.isActive=!1}))}}})}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3c9d184f"],{"297c":function(t,e,s){"use strict";s("a9e3");var i=s("2b0e"),a=s("37c6");e["a"]=i["a"].extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress:function(){return!1===this.loading?null:this.$slots.progress||this.$createElement(a["a"],{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}})},"37c6":function(t,e,s){"use strict";var i=s("8e36");e["a"]=i["a"]},"480e":function(t,e,s){"use strict";s("7db0");var i=s("7560");e["a"]=i["a"].extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark:function(){return this.root?this.rootIsDark:i["a"].options.computed.isDark.call(this)}},render:function(){return this.$slots.default&&this.$slots.default.find((function(t){return!t.isComment&&" "!==t.text}))}})},"615b":function(t,e,s){},"6ece":function(t,e,s){},"8e36":function(t,e,s){"use strict";var i=s("5530"),a=s("ade3"),n=(s("a9e3"),s("c7cd"),s("6ece"),s("0789")),r=s("a9ad"),l=s("fe6c"),o=s("a452"),c=s("7560"),d=s("80d2"),u=s("58df"),h=Object(u["a"])(r["a"],Object(l["b"])(["absolute","fixed","top","bottom"]),o["a"],c["a"]);e["a"]=h.extend({name:"v-progress-linear",props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:4},indeterminate:Boolean,query:Boolean,reverse:Boolean,rounded:Boolean,stream:Boolean,striped:Boolean,value:{type:[Number,String],default:0}},data:function(){return{internalLazyValue:this.value||0}},computed:{__cachedBackground:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle}))},__cachedBar:function(){return this.$createElement(this.computedTransition,[this.__cachedBarType])},__cachedBarType:function(){return this.indeterminate?this.__cachedIndeterminate:this.__cachedDeterminate},__cachedBuffer:function(){return this.$createElement("div",{staticClass:"v-progress-linear__buffer",style:this.styles})},__cachedDeterminate:function(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__determinate",style:{width:Object(d["g"])(this.normalizedValue,"%")}}))},__cachedIndeterminate:function(){return this.$createElement("div",{staticClass:"v-progress-linear__indeterminate",class:{"v-progress-linear__indeterminate--active":this.active}},[this.genProgressBar("long"),this.genProgressBar("short")])},__cachedStream:function(){return this.stream?this.$createElement("div",this.setTextColor(this.color,{staticClass:"v-progress-linear__stream",style:{width:Object(d["g"])(100-this.normalizedBuffer,"%")}})):null},backgroundStyle:function(){var t,e=null==this.backgroundOpacity?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity);return t={opacity:e},Object(a["a"])(t,this.isReversed?"right":"left",Object(d["g"])(this.normalizedValue,"%")),Object(a["a"])(t,"width",Object(d["g"])(this.normalizedBuffer-this.normalizedValue,"%")),t},classes:function(){return Object(i["a"])({"v-progress-linear--absolute":this.absolute,"v-progress-linear--fixed":this.fixed,"v-progress-linear--query":this.query,"v-progress-linear--reactive":this.reactive,"v-progress-linear--reverse":this.isReversed,"v-progress-linear--rounded":this.rounded,"v-progress-linear--striped":this.striped},this.themeClasses)},computedTransition:function(){return this.indeterminate?n["c"]:n["e"]},isReversed:function(){return this.$vuetify.rtl!==this.reverse},normalizedBuffer:function(){return this.normalize(this.bufferValue)},normalizedValue:function(){return this.normalize(this.internalLazyValue)},reactive:function(){return Boolean(this.$listeners.change)},styles:function(){var t={};return this.active||(t.height=0),this.indeterminate||100===parseFloat(this.normalizedBuffer)||(t.width=Object(d["g"])(this.normalizedBuffer,"%")),t}},methods:{genContent:function(){var t=Object(d["s"])(this,"default",{value:this.internalLazyValue});return t?this.$createElement("div",{staticClass:"v-progress-linear__content"},t):null},genListeners:function(){var t=this.$listeners;return this.reactive&&(t.click=this.onClick),t},genProgressBar:function(t){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:Object(a["a"])({},t,!0)}))},onClick:function(t){if(this.reactive){var e=this.$el.getBoundingClientRect(),s=e.width;this.internalValue=t.offsetX/s*100}},normalize:function(t){return t<0?0:t>100?100:parseFloat(t)}},render:function(t){var e={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,style:{bottom:this.bottom?0:void 0,height:this.active?Object(d["g"])(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return t("div",e,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}})},"99d9":function(t,e,s){"use strict";s.d(e,"a",(function(){return n})),s.d(e,"b",(function(){return r})),s.d(e,"c",(function(){return l})),s.d(e,"d",(function(){return o}));var i=s("b0af"),a=s("80d2"),n=Object(a["i"])("v-card__actions"),r=Object(a["i"])("v-card__subtitle"),l=Object(a["i"])("v-card__text"),o=Object(a["i"])("v-card__title");i["a"]},b0af:function(t,e,s){"use strict";var i=s("5530"),a=(s("a9e3"),s("0481"),s("615b"),s("10d2")),n=s("297c"),r=s("1c87"),l=s("58df");e["a"]=Object(l["a"])(n["a"],r["a"],a["a"]).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes:function(){return Object(i["a"])(Object(i["a"])({"v-card":!0},r["a"].options.computed.classes.call(this)),{},{"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised},a["a"].options.computed.classes.call(this))},styles:function(){var t=Object(i["a"])({},a["a"].options.computed.styles.call(this));return this.img&&(t.background='url("'.concat(this.img,'") center center / cover no-repeat')),t}},methods:{genProgress:function(){var t=n["a"].options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render:function(t){var e=this.generateRouteLink(),s=e.tag,i=e.data;return i.style=this.styles,this.isClickable&&(i.attrs=i.attrs||{},i.attrs.tabindex=0),t(s,this.setBackgroundColor(this.color,i),[this.genProgress(),this.$slots.default])}})},dd08:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-col",{class:t.setup.size},[s("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[s("v-progress-linear",{attrs:{height:"7",value:t.vals.status.level,color:t.vals.status.color,"background-color":"secondary darken-1"}}),s("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" "),s("v-spacer"),t.app.options.debugMode?s("jsonList",{attrs:{item:t.item}}):t._e(),s("v-btn",{attrs:{small:"",icon:""},on:{click:t.expand}},[s("v-icon",{attrs:{small:""}},[t._v(" "+t._s(t.maxIcon)+" ")])],1)],1),s("v-divider"),s("v-card-text",[s("v-row",{attrs:{align:"center"}},[s("v-col",{staticClass:"col-3",attrs:{align:"center"}},[t.expanded?t._e():s("v-btn",{attrs:{icon:""},on:{click:function(e){return t.setVolume("D")}}},[s("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.leftIcon)+" ")])],1),t.expanded?s("v-btn",{attrs:{icon:"",disabled:t.prevDisabled},on:{click:function(e){return t.setPlayer("Previous")}}},[s("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.prevIcon)+" ")])],1):t._e()],1),s("v-divider",{attrs:{vertical:""}}),s("v-col",{attrs:{align:"center"}},[s("v-btn",{attrs:{icon:""},on:{click:function(e){return t.setPlay()}}},[s("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.playIcon)+" ")])],1)],1),s("v-divider",{attrs:{vertical:""}}),s("v-col",{staticClass:"col-3",attrs:{align:"center"}},[t.expanded?t._e():s("v-btn",{attrs:{icon:""},on:{click:function(e){return t.setVolume("U")}}},[s("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.rightIcon)+" ")])],1),t.expanded?s("v-btn",{attrs:{icon:"",disabled:t.nextDisabled},on:{click:function(e){return t.setPlayer("Next")}}},[s("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.nextIcon)+" ")])],1):t._e()],1)],1)],1),t.expanded?s("v-divider"):t._e(),t.expanded?s("v-card-text",[s("v-row",{attrs:{align:"center"}},[s("v-col",[s("v-slider",{attrs:{"hide-details":"",color:"accent"},on:{change:t.setVolume},scopedSlots:t._u([{key:"prepend",fn:function(){return[s("v-icon",{on:{click:function(e){return t.setMute()}}},[t._v(" "+t._s(t.volumeIcon)+" ")])]},proxy:!0}],null,!1,4048868738),model:{value:t.vals.volume,callback:function(e){t.$set(t.vals,"volume",e)},expression:"vals.volume"}})],1)],1),s("v-row",{attrs:{align:"center"}},[s("v-col",{staticClass:"col-4"}),s("v-col",{staticClass:"col-4 text-h6",attrs:{align:"center"}},[t._v(" "+t._s(t.vals.trackPosition)+" ")]),s("v-col",{staticClass:"col-4",attrs:{align:"center"}},[t._v(" "+t._s(t.vals.tracks)+" ")])],1)],1):t._e(),t.expanded&&t.vals.zones.length>0?s("v-divider"):t._e(),t.expanded&&t.vals.zones.length>0?s("v-card-text",[s("v-row",[s("v-col",t._l(t.vals.zones,(function(e){return s("span",{key:e},[s("v-chip",{staticClass:"mr-2",attrs:{small:""}},[t._v(t._s(e))])],1)})),0)],1)],1):t._e(),s("v-divider"),s("v-system-bar",{attrs:{color:"secondary darken-1"}},[s("v-icon",{staticClass:"ml-0"},[t._v(" "+t._s(t.vals.info.left1Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.info.left1Text)+" ")]),s("v-icon",{staticClass:"ml-2"},[t._v(" "+t._s(t.vals.info.left2Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.info.left2Text)+" ")]),s("v-spacer"),s("v-icon",[t._v(" "+t._s(t.vals.info.mid1Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.info.mid1Text)+" ")]),s("v-icon",{staticClass:"ml-2"},[t._v(" "+t._s(t.vals.info.mid2Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.info.mid2Text)+" ")]),s("v-spacer"),s("v-icon",[t._v(" "+t._s(t.vals.info.right1Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.info.right1Text)+" ")]),s("v-icon",{staticClass:"ml-2 mr-0"},[t._v(" "+t._s(t.vals.info.right2Icon)+" ")]),s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.info.right2Text)+" ")])],1)],1)],1)},a=[],n=(s("4de4"),s("1276"),s("ac1f"),s("649b")),r={components:{jsonList:n["a"]},props:{item:{type:Object,default:function(){return{name:"sonos"}}}},data:function(){return{name:"sonos",app:{options:{debugMode:!1}},setup:{size:"col-12 col-sm-6 col-md-4 col-lg-4",status:{bar:["transportState:PLAYING:100:success","transportState::0:success"],error:[]},info:{left1:["Mute:1::mdi-volume-off","transportState:PLAYING::mdi-play","transportState:::mdi-pause"],left2:["currentArtist:$:%s","currentSource::%s"],mid1:[],mid2:[],right1:[],right2:["currentTitle::%s"]}},vals:{status:{color:"",level:0},info:{left1Icon:"",left1Text:"",left2Icon:"",left2Text:"",mid1Icon:"",mid1Text:"",mid2Icon:"",mid2Text:"",right1Icon:"",right1Text:"",right2Icon:"",right2Text:""},title:"",mainState:"",play:!1,volume:0,volumeChanged:!1,mute:!1,trackPosition:"",zones:[],tracks:"",playInfo1:"",playInfo2:""},leftIcon:"mdi-minus",playIcon:"mdi-play",rightIcon:"mdi-plus",maxIcon:"mdi-arrow-expand",expanded:!1,prevIcon:"mdi-skip-previous",prevDisabled:!0,nextIcon:"mdi-skip-next",nextDisabled:!0,volumeIcon:"mdi-volume-high",pendingClick:0}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var e=this.$fhem.getEl(t,"Readings","transportState","Value"),s=this.$fhem.getEl(t,"Readings","nextTrackHandle","Value")||"|",i=this.$fhem.getEl(t,"Readings","Volume","Value"),a=this.$fhem.getEl(t,"Readings","Mute","Value"),n=this.$fhem.getEl(t,"Readings","currentStreamAudio","Value"),r=this.$fhem.getEl(t,"Readings","currentTrack","Value"),l=this.$fhem.getEl(t,"Readings","numberOfTracks","Value"),o=this.$fhem.getEl(t,"Readings","ZoneGroupNameDetails","Value"),c=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||c,o&&(this.vals.title+=" (gruppiert)"),this.vals.zones=o.split(" + ").filter(Boolean),this.prevDisabled=!(s.split("|")[0].length>0),this.nextDisabled=!(s.split("|")[1].length>0),this.vals.trackPosition=this.$fhem.getEl(t,"Readings","currentTrackPositionSimulated","Value"),this.vals.volumeChanged&&this.vals.volume===parseInt(i)&&(this.vals.volumeChanged=!1),this.vals.volumeChanged||(this.vals.volume=parseInt(i)),this.vals.mute="1"===a,this.volumeIcon=this.vals.mute?"mdi-volume-mute":"mdi-volume-high",this.vals.tracks="0"===n?r+" von "+l:"",this.vals.play="PLAYING"===e,this.playIcon=this.vals.play?"mdi-pause":"mdi-play",this.setValues()}}},mounted:function(){this.app.options=this.$fhem.app.options},methods:{setValues:function(){var t=this.$fhem.handleVals(this.item,this.setup.status.bar),e=this.$fhem.handleVals(this.item,this.setup.status.error),s=this.$fhem.handleVals(this.item,this.setup.info.left1),i=this.$fhem.handleVals(this.item,this.setup.info.left2),a=this.$fhem.handleVals(this.item,this.setup.info.mid1),n=this.$fhem.handleVals(this.item,this.setup.info.mid2),r=this.$fhem.handleVals(this.item,this.setup.info.right1),l=this.$fhem.handleVals(this.item,this.setup.info.right2);this.vals.status.level=t[0]||"100",this.vals.status.color=t[1]||"success",this.vals.status.invert=!!t[2],this.vals.info.left1Icon=s[1]||"",this.vals.info.left1Text=s[0]||"",this.vals.info.left2Icon=i[1]||"",this.vals.info.left2Text=i[0]||"",this.vals.info.mid1Icon=a[1]||"",this.vals.info.mid1Text=a[0]||"",this.vals.info.mid2Icon=n[1]||"",this.vals.info.mid2Text=n[0]||"",this.vals.info.right1Icon=r[1]||"",this.vals.info.right1Text=r[0]||"",this.vals.info.right2Icon=l[1]||"",this.vals.info.right2Text=l[0]||"",e.length>0?(this.vals.status.level=e[0]||"100",this.vals.status.color=e[1]||"error",this.vals.main.text=e[2]||"Fehler",this.isActive=!1):this.isActive=!0},sendCmd:function(t,e){var s=this;e?(this.pendingClick&&(clearTimeout(this.pendingClick),this.pendingClick=0),this.pendingClick=setTimeout((function(){s.$fhem.request(t)}),1e3)):this.$fhem.request(t)},setVolume:function(t){this.vals.volumeChanged=!0;var e=this.vals.zones.length>0?" GroupVolume":" Volume";"D"!=t&&"U"!=t&&(t=" "+t);var s="set "+this.item.Name+e+t;this.sendCmd(s)},setPlayer:function(t){var e="set "+this.item.Name+" "+t;this.sendCmd(e)},setPlay:function(){var t="set "+this.item.Name+(this.vals.play?" Pause":" Play");this.sendCmd(t)},setMute:function(){var t="set "+this.item.Name+(this.vals.mute?" Mute 0":" Mute 1");this.sendCmd(t)},expand:function(){this.expanded?(this.expanded=!1,this.maxIcon="mdi-arrow-expand"):(this.expanded=!0,this.maxIcon="mdi-arrow-collapse")}}},l=r,o=s("2877"),c=s("6544"),d=s.n(c),u=s("8336"),h=s("b0af"),v=s("99d9"),m=s("cc20"),f=s("62ad"),p=s("ce7e"),g=s("132d"),_=s("8e36"),b=s("0fd9"),x=s("ba0d"),y=s("2fa4"),k=s("afd9"),C=Object(o["a"])(l,i,a,!1,null,null,null);e["default"]=C.exports;d()(C,{VBtn:u["a"],VCard:h["a"],VCardText:v["c"],VCardTitle:v["d"],VChip:m["a"],VCol:f["a"],VDivider:p["a"],VIcon:g["a"],VProgressLinear:_["a"],VRow:b["a"],VSlider:x["a"],VSpacer:y["a"],VSystemBar:k["a"]})},e4d3:function(t,e,s){"use strict";var i=s("2b0e");e["a"]=i["a"].extend({name:"returnable",props:{returnValue:null},data:function(){return{isActive:!1,originalValue:null}},watch:{isActive:function(t){t?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save:function(t){var e=this;this.originalValue=t,setTimeout((function(){e.isActive=!1}))}}})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-46bea2ee.942f5a8a.js b/www/fhemapp/js/chunk-46bea2ee.942f5a8a.js new file mode 100644 index 00000000..5608d57b --- /dev/null +++ b/www/fhemapp/js/chunk-46bea2ee.942f5a8a.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-46bea2ee"],{"297c":function(t,e,s){"use strict";s("a9e3");var i=s("2b0e"),a=s("37c6");e["a"]=i["a"].extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress:function(){return!1===this.loading?null:this.$slots.progress||this.$createElement(a["a"],{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}})},"37c6":function(t,e,s){"use strict";var i=s("8e36");e["a"]=i["a"]},"480e":function(t,e,s){"use strict";s("7db0");var i=s("7560");e["a"]=i["a"].extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark:function(){return this.root?this.rootIsDark:i["a"].options.computed.isDark.call(this)}},render:function(){return this.$slots.default&&this.$slots.default.find((function(t){return!t.isComment&&" "!==t.text}))}})},"615b":function(t,e,s){},"649b":function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"text-center"},[s("v-dialog",{attrs:{"max-width":"90%",scrollable:""},scopedSlots:t._u([{key:"activator",fn:function(e){var i=e.on,a=e.attrs;return[s("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",a,!1),i),[s("v-icon",{attrs:{small:""}},[t._v(" mdi-code-json ")])],1)]}}]),model:{value:t.dialog,callback:function(e){t.dialog=e},expression:"dialog"}},[s("v-card",{staticClass:"secondary lighten-1"},[s("v-card-title",{staticClass:"secondary"},[s("v-btn",{attrs:{icon:""},on:{click:function(e){t.deep=t.deep>1?1:5}}},[s("v-icon",[t._v("mdi-file-tree-outline")])],1),s("v-spacer"),t._v(" "+t._s(t.item.Name)+" "),s("v-spacer"),s("v-btn",{attrs:{icon:""},on:{click:function(e){t.dialog=!1}}},[s("v-icon",[t._v("mdi-close")])],1)],1),s("v-card-text",[s("vue-json-pretty",{attrs:{"show-line":!1,deep:t.deep,data:t.item}})],1)],1)],1)],1)},a=[],n=s("838b"),r=s.n(n),o=(s("b83f"),{props:{item:{type:Object,default:function(){return{name:"json"}}}},data:function(){return{dialog:!1,deep:1}},components:{VueJsonPretty:r.a}}),l=o,c=s("2877"),u=s("6544"),h=s.n(u),d=s("8336"),f=s("b0af"),m=s("99d9"),v=s("169a"),p=s("132d"),g=s("2fa4"),b=Object(c["a"])(l,i,a,!1,null,null,null);e["a"]=b.exports;h()(b,{VBtn:d["a"],VCard:f["a"],VCardText:m["c"],VCardTitle:m["d"],VDialog:v["a"],VIcon:p["a"],VSpacer:g["a"]})},"6ece":function(t,e,s){},"86eb":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-col",{class:t.setup.size},[s("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[s("v-progress-linear",{attrs:{height:"7",value:t.vals.status.level,color:t.vals.status.color,"background-color":"secondary darken-1"}}),s("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" "),s("v-spacer"),t.app.options.debugMode?s("jsonList",{attrs:{item:t.item}}):t._e()],1),s("v-divider"),s("v-card-subtitle",[t._v(" "+t._s(t.vals.subTitle)+" ")]),s("v-card-text",[s("v-row",t._l(t.vals.list,(function(e){return s("v-col",{key:e.name,staticClass:"col-12 col-md-4 col-lg-4"},[s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(e.name)+" ")]),e.isBar?s("v-progress-linear",{attrs:{height:"7",value:e.value,color:e.color,min:e.min,max:e.max,"background-color":"secondary lighten-4"}}):t._e(),s("div",[t._v(t._s(e.subText))])],1)})),1)],1),t.setup.fhemBtns?s("v-card-actions",[s("v-btn",{staticClass:"mr-2",on:{click:function(e){return t.goTo()}}},[s("v-icon",[t._v("mdi-format-list-bulleted")])],1),s("v-spacer"),s("v-btn",{attrs:{disabled:!t.update},on:{click:t.fhemUpdate}},[t._v(" "+t._s(t.updateText)+" ")]),s("v-btn",{attrs:{disabled:!t.restart},on:{click:t.fhemRestart}},[t._v(" Restart ")])],1):t._e(),s("v-divider"),s("v-system-bar",{attrs:{color:"secondary darken-1"}},[s("v-icon",{staticClass:"ml-0"},[t._v(" "+t._s(t.vals.info.left1Icon)+" ")]),t._v(t._s(t.vals.info.left1Text)+" "),s("v-icon",{staticClass:"ml-2"},[t._v(" "+t._s(t.vals.info.left2Icon)+" ")]),t._v(t._s(t.vals.info.left2Text)+" "),s("v-spacer"),s("v-icon",[t._v(t._s(t.vals.info.mid1Icon))]),t._v(t._s(t.vals.info.mid1Text)+" "),s("v-icon",{staticClass:"ml-2"},[t._v(" "+t._s(t.vals.info.mid2Icon)+" ")]),t._v(t._s(t.vals.info.mid2Text)+" "),s("v-spacer"),s("v-icon",[t._v(t._s(t.vals.info.right1Icon))]),t._v(t._s(t.vals.info.right1Text)+" "),s("v-icon",{staticClass:"ml-2 mr-0"},[t._v(" "+t._s(t.vals.info.right2Icon)+" ")]),t._v(t._s(t.vals.info.right2Text)+" ")],1)],1)],1)},a=[],n=s("1da1"),r=s("b85c"),o=(s("96cf"),s("d81d"),s("b0c0"),s("a434"),s("d3b7"),s("649b")),l={components:{jsonList:o["a"]},props:{item:{type:Object,default:function(){return{name:"sysmon"}}}},data:function(){return{name:"sysmon",app:{options:{updateProcess:!1,debugMode:!1}},setup:{size:"col-12 col-sm-12 col-md-6 col-lg-6",status:{bar:[],error:[]},subTitle:[],main:[],fhemBtns:!0,info:{left1:[],left2:[],mid1:[],mid2:[],right1:[],right2:[]}},vals:{title:"",subTitle:"",status:{level:0,color:"success"},list:[],info:{left1Icon:"",left1Text:"",left2Icon:"",left2Text:"",mid1Icon:"",mid1Text:"",mid2Icon:"",mid2Text:"",right1Icon:"",right1Text:"",right2Icon:"",right2Text:""}},restart:!0,update:!0,updateText:"prüfe updates..."}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var e=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||e,this.setValues(),this.doList()}},setup:{deep:!0,handler:function(){this.setValues(),this.doList()}},"app.options.updateProcess":function(t){t||(this.$fhem.emit("message",{lvl:4,msg:"Update war erfolgreich. Das System sollte neu gestartet werden."}),this.updateText="system aktuell",this.restart=!0)}},mounted:function(){this.app.options=this.$fhem.app.options,this.fhemUpdateCheck();var t=this.$fhem.getEl(this.item,"Options","setup","size"),e=this.$fhem.getEl(this.item,"Options","setup","subTitle"),s=this.$fhem.getEl(this.item,"Options","setup","fhemBtns"),i=this.$fhem.getEl(this.item,"Options","setup","status"),a=this.$fhem.getEl(this.item,"Options","setup","main"),n=this.$fhem.getEl(this.item,"Options","setup","info");t&&(this.setup.size=t),e&&(this.setup.subTitle=e),i&&Object.assign(this.setup.status,i),a&&Object.assign(this.setup.main,a),n&&Object.assign(this.setup.info,n),this.setup.fhemBtns=s},methods:{setValues:function(){var t=this.$fhem.handleVals(this.item,this.setup.status.bar),e=this.$fhem.handleVals(this.item,this.setup.status.error),s=this.$fhem.handleVals(this.item,this.setup.subTitle),i=this.$fhem.handleVals(this.item,this.setup.info.left1),a=this.$fhem.handleVals(this.item,this.setup.info.left2),n=this.$fhem.handleVals(this.item,this.setup.info.mid1),r=this.$fhem.handleVals(this.item,this.setup.info.mid2),o=this.$fhem.handleVals(this.item,this.setup.info.right1),l=this.$fhem.handleVals(this.item,this.setup.info.right2);this.vals.status.level=t[0]||"100",this.vals.status.color=t[1]||"success",this.vals.subTitle=s[0]||"",this.vals.info.left1Icon=i[1]||"",this.vals.info.left1Text=i[0]||"",this.vals.info.left2Icon=a[1]||"",this.vals.info.left2Text=a[0]||"",this.vals.info.mid1Icon=n[1]||"",this.vals.info.mid1Text=n[0]||"",this.vals.info.mid2Icon=r[1]||"",this.vals.info.mid2Text=r[0]||"",this.vals.info.right1Icon=o[1]||"",this.vals.info.right1Text=o[0]||"",this.vals.info.right2Icon=l[1]||"",this.vals.info.right2Text=l[0]||"",e.length>0&&(this.vals.status.level=e[0]||"100",this.vals.status.color=e[1]||"error")},doList:function(){var t,e=Object(r["a"])(this.setup.main);try{for(e.s();!(t=e.n()).done;){var s=t.value,i=this.vals.list.map((function(t){return t.name})).indexOf(s.name),a=this.$fhem.handleVals(this.item,s.bar),n=this.$fhem.handleVals(this.item,s.subText),o={name:s.name,isBar:a.length>0,value:a[0]||0,color:a[1]||"success",min:a[2]||0,max:a[3]||100,subText:n[0]||""};o.isBar&&"success"!=o.color&&(this.vals.status.color=o.color),-1!=i?this.vals.list.splice(i,1,o):this.vals.list.push(o)}}catch(l){e.e(l)}finally{e.f()}},fhemRestart:function(){this.restart=!1,this.$fhem.request({param:"cmd",value:"shutdown restart"})},fhemUpdateCheck:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=new Promise((function(e,s){t.restart=!1,t.update=!1,t.$fhem.checkUpdate().then((function(s){s?(t.updateText="update",t.update=!0):t.updateText="system aktuell",e(s)})).catch((function(e){t.$fhem.emit("message",{type:"error",message:"Updateprüfung fehlgeschlagen.",meta:e}),s()})).finally((function(){t.restart=!0}))})),e.abrupt("return",s);case 2:case"end":return e.stop()}}),e)})))()},fhemUpdate:function(){this.restart=!1,this.update=!1,this.updateText="update läuft...",this.app.options.updateProcess=!0,this.$fhem.request({param:"cmd",value:"update"})},goTo:function(){this.$router.push("syslog")}}},c=l,u=s("2877"),h=s("6544"),d=s.n(h),f=s("8336"),m=s("b0af"),v=s("99d9"),p=s("62ad"),g=s("ce7e"),b=s("132d"),_=s("8e36"),y=s("0fd9"),x=s("2fa4"),V=s("afd9"),k=Object(u["a"])(c,i,a,!1,null,null,null);e["default"]=k.exports;d()(k,{VBtn:f["a"],VCard:m["a"],VCardActions:v["a"],VCardSubtitle:v["b"],VCardText:v["c"],VCardTitle:v["d"],VCol:p["a"],VDivider:g["a"],VIcon:b["a"],VProgressLinear:_["a"],VRow:y["a"],VSpacer:x["a"],VSystemBar:V["a"]})},"8e36":function(t,e,s){"use strict";var i=s("5530"),a=s("ade3"),n=(s("a9e3"),s("c7cd"),s("6ece"),s("0789")),r=s("a9ad"),o=s("fe6c"),l=s("a452"),c=s("7560"),u=s("80d2"),h=s("58df"),d=Object(h["a"])(r["a"],Object(o["b"])(["absolute","fixed","top","bottom"]),l["a"],c["a"]);e["a"]=d.extend({name:"v-progress-linear",props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:4},indeterminate:Boolean,query:Boolean,reverse:Boolean,rounded:Boolean,stream:Boolean,striped:Boolean,value:{type:[Number,String],default:0}},data:function(){return{internalLazyValue:this.value||0}},computed:{__cachedBackground:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle}))},__cachedBar:function(){return this.$createElement(this.computedTransition,[this.__cachedBarType])},__cachedBarType:function(){return this.indeterminate?this.__cachedIndeterminate:this.__cachedDeterminate},__cachedBuffer:function(){return this.$createElement("div",{staticClass:"v-progress-linear__buffer",style:this.styles})},__cachedDeterminate:function(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__determinate",style:{width:Object(u["g"])(this.normalizedValue,"%")}}))},__cachedIndeterminate:function(){return this.$createElement("div",{staticClass:"v-progress-linear__indeterminate",class:{"v-progress-linear__indeterminate--active":this.active}},[this.genProgressBar("long"),this.genProgressBar("short")])},__cachedStream:function(){return this.stream?this.$createElement("div",this.setTextColor(this.color,{staticClass:"v-progress-linear__stream",style:{width:Object(u["g"])(100-this.normalizedBuffer,"%")}})):null},backgroundStyle:function(){var t,e=null==this.backgroundOpacity?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity);return t={opacity:e},Object(a["a"])(t,this.isReversed?"right":"left",Object(u["g"])(this.normalizedValue,"%")),Object(a["a"])(t,"width",Object(u["g"])(this.normalizedBuffer-this.normalizedValue,"%")),t},classes:function(){return Object(i["a"])({"v-progress-linear--absolute":this.absolute,"v-progress-linear--fixed":this.fixed,"v-progress-linear--query":this.query,"v-progress-linear--reactive":this.reactive,"v-progress-linear--reverse":this.isReversed,"v-progress-linear--rounded":this.rounded,"v-progress-linear--striped":this.striped},this.themeClasses)},computedTransition:function(){return this.indeterminate?n["c"]:n["e"]},isReversed:function(){return this.$vuetify.rtl!==this.reverse},normalizedBuffer:function(){return this.normalize(this.bufferValue)},normalizedValue:function(){return this.normalize(this.internalLazyValue)},reactive:function(){return Boolean(this.$listeners.change)},styles:function(){var t={};return this.active||(t.height=0),this.indeterminate||100===parseFloat(this.normalizedBuffer)||(t.width=Object(u["g"])(this.normalizedBuffer,"%")),t}},methods:{genContent:function(){var t=Object(u["s"])(this,"default",{value:this.internalLazyValue});return t?this.$createElement("div",{staticClass:"v-progress-linear__content"},t):null},genListeners:function(){var t=this.$listeners;return this.reactive&&(t.click=this.onClick),t},genProgressBar:function(t){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:Object(a["a"])({},t,!0)}))},onClick:function(t){if(this.reactive){var e=this.$el.getBoundingClientRect(),s=e.width;this.internalValue=t.offsetX/s*100}},normalize:function(t){return t<0?0:t>100?100:parseFloat(t)}},render:function(t){var e={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,style:{bottom:this.bottom?0:void 0,height:this.active?Object(u["g"])(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return t("div",e,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}})},"99d9":function(t,e,s){"use strict";s.d(e,"a",(function(){return n})),s.d(e,"b",(function(){return r})),s.d(e,"c",(function(){return o})),s.d(e,"d",(function(){return l}));var i=s("b0af"),a=s("80d2"),n=Object(a["i"])("v-card__actions"),r=Object(a["i"])("v-card__subtitle"),o=Object(a["i"])("v-card__text"),l=Object(a["i"])("v-card__title");i["a"]},b0af:function(t,e,s){"use strict";var i=s("5530"),a=(s("a9e3"),s("0481"),s("615b"),s("10d2")),n=s("297c"),r=s("1c87"),o=s("58df");e["a"]=Object(o["a"])(n["a"],r["a"],a["a"]).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes:function(){return Object(i["a"])(Object(i["a"])({"v-card":!0},r["a"].options.computed.classes.call(this)),{},{"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised},a["a"].options.computed.classes.call(this))},styles:function(){var t=Object(i["a"])({},a["a"].options.computed.styles.call(this));return this.img&&(t.background='url("'.concat(this.img,'") center center / cover no-repeat')),t}},methods:{genProgress:function(){var t=n["a"].options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render:function(t){var e=this.generateRouteLink(),s=e.tag,i=e.data;return i.style=this.styles,this.isClickable&&(i.attrs=i.attrs||{},i.attrs.tabindex=0),t(s,this.setBackgroundColor(this.color,i),[this.genProgress(),this.$slots.default])}})},e4d3:function(t,e,s){"use strict";var i=s("2b0e");e["a"]=i["a"].extend({name:"returnable",props:{returnValue:null},data:function(){return{isActive:!1,originalValue:null}},watch:{isActive:function(t){t?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save:function(t){var e=this;this.originalValue=t,setTimeout((function(){e.isActive=!1}))}}})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-4a62a958.b5b68579.js b/www/fhemapp/js/chunk-4a62a958.b5b68579.js deleted file mode 100644 index f7db20d2..00000000 --- a/www/fhemapp/js/chunk-4a62a958.b5b68579.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4a62a958"],{"1b2c":function(t,e,i){},"38cb":function(t,e,i){"use strict";var s=i("53ca"),n=(i("a9e3"),i("fb6a"),i("a9ad")),a=i("7560"),r=i("3206"),o=i("80d2"),l=i("d9bd"),h=i("58df"),u=Object(h["a"])(n["a"],Object(r["a"])("form"),a["a"]);e["a"]=u.extend({name:"validatable",props:{disabled:Boolean,error:Boolean,errorCount:{type:[Number,String],default:1},errorMessages:{type:[String,Array],default:function(){return[]}},messages:{type:[String,Array],default:function(){return[]}},readonly:Boolean,rules:{type:Array,default:function(){return[]}},success:Boolean,successMessages:{type:[String,Array],default:function(){return[]}},validateOnBlur:Boolean,value:{required:!1}},data:function(){return{errorBucket:[],hasColor:!1,hasFocused:!1,hasInput:!1,isFocused:!1,isResetting:!1,lazyValue:this.value,valid:!1}},computed:{computedColor:function(){if(!this.isDisabled)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},hasError:function(){return this.internalErrorMessages.length>0||this.errorBucket.length>0||this.error},hasSuccess:function(){return this.internalSuccessMessages.length>0||this.success},externalError:function(){return this.internalErrorMessages.length>0||this.error},hasMessages:function(){return this.validationTarget.length>0},hasState:function(){return!this.isDisabled&&(this.hasSuccess||this.shouldValidate&&this.hasError)},internalErrorMessages:function(){return this.genInternalMessages(this.errorMessages)},internalMessages:function(){return this.genInternalMessages(this.messages)},internalSuccessMessages:function(){return this.genInternalMessages(this.successMessages)},internalValue:{get:function(){return this.lazyValue},set:function(t){this.lazyValue=t,this.$emit("input",t)}},isDisabled:function(){return this.disabled||!!this.form&&this.form.disabled},isInteractive:function(){return!this.isDisabled&&!this.isReadonly},isReadonly:function(){return this.readonly||!!this.form&&this.form.readonly},shouldValidate:function(){return!!this.externalError||!this.isResetting&&(this.validateOnBlur?this.hasFocused&&!this.isFocused:this.hasInput||this.hasFocused)},validations:function(){return this.validationTarget.slice(0,Number(this.errorCount))},validationState:function(){if(!this.isDisabled)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":this.hasColor?this.computedColor:void 0},validationTarget:function(){return this.internalErrorMessages.length>0?this.internalErrorMessages:this.successMessages&&this.successMessages.length>0?this.internalSuccessMessages:this.messages&&this.messages.length>0?this.internalMessages:this.shouldValidate?this.errorBucket:[]}},watch:{rules:{handler:function(t,e){Object(o["j"])(t,e)||this.validate()},deep:!0},internalValue:function(){this.hasInput=!0,this.validateOnBlur||this.$nextTick(this.validate)},isFocused:function(t){t||this.isDisabled||(this.hasFocused=!0,this.validateOnBlur&&this.$nextTick(this.validate))},isResetting:function(){var t=this;setTimeout((function(){t.hasInput=!1,t.hasFocused=!1,t.isResetting=!1,t.validate()}),0)},hasError:function(t){this.shouldValidate&&this.$emit("update:error",t)},value:function(t){this.lazyValue=t}},beforeMount:function(){this.validate()},created:function(){this.form&&this.form.register(this)},beforeDestroy:function(){this.form&&this.form.unregister(this)},methods:{genInternalMessages:function(t){return t?Array.isArray(t)?t:[t]:[]},reset:function(){this.isResetting=!0,this.internalValue=Array.isArray(this.internalValue)?[]:null},resetValidation:function(){this.isResetting=!0},validate:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0,i=[];e=e||this.internalValue,t&&(this.hasInput=this.hasFocused=!0);for(var n=0;n0?parseFloat(this.step):0},inputWidth:function(){return(this.roundValue(this.internalValue)-this.minValue)/(this.maxValue-this.minValue)*100},trackFillStyles:function(){var t,e=this.vertical?"bottom":"left",i=this.vertical?"top":"right",n=this.vertical?"height":"width",a=this.$vuetify.rtl?"auto":"0",r=this.$vuetify.rtl?"0":"auto",o=this.isDisabled?"calc(".concat(this.inputWidth,"% - 10px)"):"".concat(this.inputWidth,"%");return t={transition:this.trackTransition},Object(s["a"])(t,e,a),Object(s["a"])(t,i,r),Object(s["a"])(t,n,o),t},trackStyles:function(){var t,e=this.vertical?this.$vuetify.rtl?"bottom":"top":this.$vuetify.rtl?"left":"right",i=this.vertical?"height":"width",n="0px",a=this.isDisabled?"calc(".concat(100-this.inputWidth,"% - 10px)"):"calc(".concat(100-this.inputWidth,"%)");return t={transition:this.trackTransition},Object(s["a"])(t,e,n),Object(s["a"])(t,i,a),t},showTicks:function(){return this.tickLabels.length>0||!(this.isDisabled||!this.stepNumeric||!this.ticks)},numTicks:function(){return Math.ceil((this.maxValue-this.minValue)/this.stepNumeric)},showThumbLabel:function(){return!this.isDisabled&&!(!this.thumbLabel&&!this.$scopedSlots["thumb-label"])},computedTrackColor:function(){if(!this.isDisabled)return this.trackColor?this.trackColor:this.isDark?this.validationState:this.validationState||"primary lighten-3"},computedTrackFillColor:function(){if(!this.isDisabled)return this.trackFillColor?this.trackFillColor:this.validationState||this.computedColor},computedThumbColor:function(){return this.thumbColor?this.thumbColor:this.validationState||this.computedColor}},watch:{min:function(t){var e=parseFloat(t);e>this.internalValue&&this.$emit("input",e)},max:function(t){var e=parseFloat(t);e0}},r)},genThumbContainer:function(t,e,i,s,a,r){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"thumb",l=[this.genThumb()],h=this.genThumbLabelContent(t);return this.showThumbLabel&&l.push(this.genThumbLabel(h)),this.$createElement("div",this.setTextColor(this.computedThumbColor,{ref:o,key:o,staticClass:"v-slider__thumb-container",class:{"v-slider__thumb-container--active":i,"v-slider__thumb-container--focused":s,"v-slider__thumb-container--show-label":this.showThumbLabel},style:this.getThumbContainerStyles(e),attrs:Object(n["a"])({role:"slider",tabindex:this.isDisabled?-1:this.$attrs.tabindex?this.$attrs.tabindex:0,"aria-label":this.label,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this.internalValue,"aria-readonly":String(this.isReadonly),"aria-orientation":this.vertical?"vertical":"horizontal"},this.$attrs),on:{focus:a,blur:r,keydown:this.onKeyDown}}),l)},genThumbLabelContent:function(t){return this.$scopedSlots["thumb-label"]?this.$scopedSlots["thumb-label"]({value:t}):[this.$createElement("span",[String(t)])]},genThumbLabel:function(t){var e=Object(u["g"])(this.thumbSize),i=this.vertical?"translateY(20%) translateY(".concat(Number(this.thumbSize)/3-1,"px) translateX(55%) rotate(135deg)"):"translateY(-20%) translateY(-12px) translateX(-50%) rotate(45deg)";return this.$createElement(r["d"],{props:{origin:"bottom center"}},[this.$createElement("div",{staticClass:"v-slider__thumb-label-container",directives:[{name:"show",value:this.isFocused||this.isActive||"always"===this.thumbLabel}]},[this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb-label",style:{height:e,width:e,transform:i}}),[this.$createElement("div",t)])])])},genThumb:function(){return this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb"}))},getThumbContainerStyles:function(t){var e=this.vertical?"top":"left",i=this.$vuetify.rtl?100-t:t;return i=this.vertical?100-i:i,Object(s["a"])({transition:this.trackTransition},e,"".concat(i,"%"))},onSliderMouseDown:function(t){var e,i=this;t.preventDefault(),this.oldValue=this.internalValue,this.isActive=!0;var s=!u["B"]||{passive:!0,capture:!0},n=!!u["B"]&&{passive:!0};(null==(e=t.target)?void 0:e.matches(".v-slider__thumb-container, .v-slider__thumb-container *"))?this.thumbPressed=!0:(window.clearTimeout(this.mouseTimeout),this.mouseTimeout=window.setTimeout((function(){i.thumbPressed=!0}),300));var a="touches"in t;this.onMouseMove(t),this.app.addEventListener(a?"touchmove":"mousemove",this.onMouseMove,n),Object(u["a"])(this.app,a?"touchend":"mouseup",this.onSliderMouseUp,s),this.$emit("start",this.internalValue)},onSliderMouseUp:function(t){t.stopPropagation(),window.clearTimeout(this.mouseTimeout),this.thumbPressed=!1;var e=!!u["B"]&&{passive:!0};this.app.removeEventListener("touchmove",this.onMouseMove,e),this.app.removeEventListener("mousemove",this.onMouseMove,e),this.$emit("mouseup",t),this.$emit("end",this.internalValue),Object(u["j"])(this.oldValue,this.internalValue)||(this.$emit("change",this.internalValue),this.noClick=!0),this.isActive=!1},onMouseMove:function(t){"mousemove"===t.type&&(this.thumbPressed=!0),this.internalValue=this.parseMouseMove(t)},onKeyDown:function(t){if(this.isInteractive){var e=this.parseKeyDown(t,this.internalValue);null==e||ethis.maxValue||(this.internalValue=e,this.$emit("change",e))}},onSliderClick:function(t){if(this.noClick)this.noClick=!1;else{var e=this.$refs.thumb;e.focus(),this.onMouseMove(t),this.$emit("change",this.internalValue)}},onBlur:function(t){this.isFocused=!1,this.$emit("blur",t)},onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},parseMouseMove:function(t){var e=this.vertical?"top":"left",i=this.vertical?"height":"width",s=this.vertical?"clientY":"clientX",n=this.$refs.track.getBoundingClientRect(),a=n[e],r=n[i],o="touches"in t?t.touches[0][s]:t[s],l=Math.min(Math.max((o-a)/r,0),1)||0;return this.vertical&&(l=1-l),this.$vuetify.rtl&&(l=1-l),parseFloat(this.min)+l*(this.maxValue-this.minValue)},parseKeyDown:function(t,e){if(this.isInteractive){var i=u["x"].pageup,s=u["x"].pagedown,n=u["x"].end,a=u["x"].home,r=u["x"].left,o=u["x"].right,l=u["x"].down,h=u["x"].up;if([i,s,n,a,r,o,l,h].includes(t.keyCode)){t.preventDefault();var c=this.stepNumeric||1,d=(this.maxValue-this.minValue)/c;if([r,o,l,h].includes(t.keyCode)){var p=this.$vuetify.rtl?[r,h]:[o,h],v=p.includes(t.keyCode)?1:-1,f=t.shiftKey?3:t.ctrlKey?2:1;e+=v*c*f}else if(t.keyCode===a)e=this.minValue;else if(t.keyCode===n)e=this.maxValue;else{var m=t.keyCode===s?1:-1;e-=m*c*(d>100?d/10:10)}return e}}},roundValue:function(t){if(!this.stepNumeric)return t;var e=this.step.toString().trim(),i=e.indexOf(".")>-1?e.length-e.indexOf(".")-1:0,s=this.minValue%this.stepNumeric,n=Math.round((t-s)/this.stepNumeric)*this.stepNumeric+s;return parseFloat(Math.min(n,this.maxValue).toFixed(i))}}})},ba87:function(t,e,i){"use strict";var s=i("5530"),n=(i("a9e3"),i("1b2c"),i("a9ad")),a=i("7560"),r=i("58df"),o=i("80d2"),l=Object(r["a"])(a["a"]).extend({name:"v-label",functional:!0,props:{absolute:Boolean,color:{type:String,default:"primary"},disabled:Boolean,focused:Boolean,for:String,left:{type:[Number,String],default:0},right:{type:[Number,String],default:"auto"},value:Boolean},render:function(t,e){var i=e.children,r=e.listeners,l=e.props,h={staticClass:"v-label",class:Object(s["a"])({"v-label--active":l.value,"v-label--is-disabled":l.disabled},Object(a["b"])(e)),attrs:{for:l.for,"aria-hidden":!l.for},on:r,style:{left:Object(o["g"])(l.left),right:Object(o["g"])(l.right),position:l.absolute?"absolute":"relative"},ref:"label"};return t("label",n["a"].options.methods.setTextColor(l.focused&&l.color,h),i)}});e["a"]=l},c37a:function(t,e,i){"use strict";var s=i("5530"),n=(i("a9e3"),i("4de4"),i("d81d"),i("1276"),i("ac1f"),i("99af"),i("d191"),i("9d26")),a=i("ba87"),r=(i("8ff2"),i("a9ad")),o=i("7560"),l=i("58df"),h=i("80d2"),u=Object(l["a"])(r["a"],o["a"]).extend({name:"v-messages",props:{value:{type:Array,default:function(){return[]}}},methods:{genChildren:function(){return this.$createElement("transition-group",{staticClass:"v-messages__wrapper",attrs:{name:"message-transition",tag:"div"}},this.value.map(this.genMessage))},genMessage:function(t,e){return this.$createElement("div",{staticClass:"v-messages__message",key:e},Object(h["s"])(this,"default",{message:t,key:e})||[t])}},render:function(t){return t("div",this.setTextColor(this.color,{staticClass:"v-messages",class:this.themeClasses}),[this.genChildren()])}}),c=u,d=i("7e2b"),p=i("38cb"),v=i("d9f7"),f=Object(l["a"])(d["a"],p["a"]),m=f.extend().extend({name:"v-input",inheritAttrs:!1,props:{appendIcon:String,backgroundColor:{type:String,default:""},dense:Boolean,height:[Number,String],hideDetails:[Boolean,String],hint:String,id:String,label:String,loading:Boolean,persistentHint:Boolean,prependIcon:String,value:null},data:function(){return{lazyValue:this.value,hasMouseDown:!1}},computed:{classes:function(){return Object(s["a"])({"v-input--has-state":this.hasState,"v-input--hide-details":!this.showDetails,"v-input--is-label-active":this.isLabelActive,"v-input--is-dirty":this.isDirty,"v-input--is-disabled":this.isDisabled,"v-input--is-focused":this.isFocused,"v-input--is-loading":!1!==this.loading&&null!=this.loading,"v-input--is-readonly":this.isReadonly,"v-input--dense":this.dense},this.themeClasses)},computedId:function(){return this.id||"input-".concat(this._uid)},hasDetails:function(){return this.messagesToDisplay.length>0},hasHint:function(){return!this.hasMessages&&!!this.hint&&(this.persistentHint||this.isFocused)},hasLabel:function(){return!(!this.$slots.label&&!this.label)},internalValue:{get:function(){return this.lazyValue},set:function(t){this.lazyValue=t,this.$emit(this.$_modelEvent,t)}},isDirty:function(){return!!this.lazyValue},isLabelActive:function(){return this.isDirty},messagesToDisplay:function(){var t=this;return this.hasHint?[this.hint]:this.hasMessages?this.validations.map((function(e){if("string"===typeof e)return e;var i=e(t.internalValue);return"string"===typeof i?i:""})).filter((function(t){return""!==t})):[]},showDetails:function(){return!1===this.hideDetails||"auto"===this.hideDetails&&this.hasDetails}},watch:{value:function(t){this.lazyValue=t}},beforeCreate:function(){this.$_modelEvent=this.$options.model&&this.$options.model.event||"input"},methods:{genContent:function(){return[this.genPrependSlot(),this.genControl(),this.genAppendSlot()]},genControl:function(){return this.$createElement("div",{staticClass:"v-input__control"},[this.genInputSlot(),this.genMessages()])},genDefaultSlot:function(){return[this.genLabel(),this.$slots.default]},genIcon:function(t,e){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=this["".concat(t,"Icon")],r="click:".concat(Object(h["w"])(t)),o=!(!this.listeners$[r]&&!e),l=Object(v["a"])({attrs:{"aria-label":o?Object(h["w"])(t).split("-")[0]+" icon":void 0,color:this.validationState,dark:this.dark,disabled:this.isDisabled,light:this.light},on:o?{click:function(t){t.preventDefault(),t.stopPropagation(),i.$emit(r,t),e&&e(t)},mouseup:function(t){t.preventDefault(),t.stopPropagation()}}:void 0},s);return this.$createElement("div",{staticClass:"v-input__icon",class:t?"v-input__icon--".concat(Object(h["w"])(t)):void 0},[this.$createElement(n["a"],l,a)])},genInputSlot:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor,{staticClass:"v-input__slot",style:{height:Object(h["g"])(this.height)},on:{click:this.onClick,mousedown:this.onMouseDown,mouseup:this.onMouseUp},ref:"input-slot"}),[this.genDefaultSlot()])},genLabel:function(){return this.hasLabel?this.$createElement(a["a"],{props:{color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:this.hasState,for:this.computedId,light:this.light}},this.$slots.label||this.label):null},genMessages:function(){var t=this;return this.showDetails?this.$createElement(c,{props:{color:this.hasHint?"":this.validationState,dark:this.dark,light:this.light,value:this.messagesToDisplay},attrs:{role:this.hasMessages?"alert":null},scopedSlots:{default:function(e){return Object(h["s"])(t,"message",e)}}}):null},genSlot:function(t,e,i){if(!i.length)return null;var s="".concat(t,"-").concat(e);return this.$createElement("div",{staticClass:"v-input__".concat(s),ref:s},i)},genPrependSlot:function(){var t=[];return this.$slots.prepend?t.push(this.$slots.prepend):this.prependIcon&&t.push(this.genIcon("prepend")),this.genSlot("prepend","outer",t)},genAppendSlot:function(){var t=[];return this.$slots.append?t.push(this.$slots.append):this.appendIcon&&t.push(this.genIcon("append")),this.genSlot("append","outer",t)},onClick:function(t){this.$emit("click",t)},onMouseDown:function(t){this.hasMouseDown=!0,this.$emit("mousedown",t)},onMouseUp:function(t){this.hasMouseDown=!1,this.$emit("mouseup",t)}},render:function(t){return t("div",this.setTextColor(this.validationState,{staticClass:"v-input",class:this.classes}),this.genContent())}});e["a"]=m},d191:function(t,e,i){}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-50f89d12.d065ef66.js b/www/fhemapp/js/chunk-50f89d12.d065ef66.js new file mode 100644 index 00000000..92f6f1fa --- /dev/null +++ b/www/fhemapp/js/chunk-50f89d12.d065ef66.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-50f89d12"],{"1b2c":function(t,e,i){},"38cb":function(t,e,i){"use strict";var s=i("53ca"),n=(i("a9e3"),i("fb6a"),i("a9ad")),a=i("7560"),r=i("3206"),o=i("80d2"),l=i("d9bd"),u=i("58df"),h=Object(u["a"])(n["a"],Object(r["a"])("form"),a["a"]);e["a"]=h.extend({name:"validatable",props:{disabled:Boolean,error:Boolean,errorCount:{type:[Number,String],default:1},errorMessages:{type:[String,Array],default:function(){return[]}},messages:{type:[String,Array],default:function(){return[]}},readonly:Boolean,rules:{type:Array,default:function(){return[]}},success:Boolean,successMessages:{type:[String,Array],default:function(){return[]}},validateOnBlur:Boolean,value:{required:!1}},data:function(){return{errorBucket:[],hasColor:!1,hasFocused:!1,hasInput:!1,isFocused:!1,isResetting:!1,lazyValue:this.value,valid:!1}},computed:{computedColor:function(){if(!this.isDisabled)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},hasError:function(){return this.internalErrorMessages.length>0||this.errorBucket.length>0||this.error},hasSuccess:function(){return this.internalSuccessMessages.length>0||this.success},externalError:function(){return this.internalErrorMessages.length>0||this.error},hasMessages:function(){return this.validationTarget.length>0},hasState:function(){return!this.isDisabled&&(this.hasSuccess||this.shouldValidate&&this.hasError)},internalErrorMessages:function(){return this.genInternalMessages(this.errorMessages)},internalMessages:function(){return this.genInternalMessages(this.messages)},internalSuccessMessages:function(){return this.genInternalMessages(this.successMessages)},internalValue:{get:function(){return this.lazyValue},set:function(t){this.lazyValue=t,this.$emit("input",t)}},isDisabled:function(){return this.disabled||!!this.form&&this.form.disabled},isInteractive:function(){return!this.isDisabled&&!this.isReadonly},isReadonly:function(){return this.readonly||!!this.form&&this.form.readonly},shouldValidate:function(){return!!this.externalError||!this.isResetting&&(this.validateOnBlur?this.hasFocused&&!this.isFocused:this.hasInput||this.hasFocused)},validations:function(){return this.validationTarget.slice(0,Number(this.errorCount))},validationState:function(){if(!this.isDisabled)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":this.hasColor?this.computedColor:void 0},validationTarget:function(){return this.internalErrorMessages.length>0?this.internalErrorMessages:this.successMessages&&this.successMessages.length>0?this.internalSuccessMessages:this.messages&&this.messages.length>0?this.internalMessages:this.shouldValidate?this.errorBucket:[]}},watch:{rules:{handler:function(t,e){Object(o["j"])(t,e)||this.validate()},deep:!0},internalValue:function(){this.hasInput=!0,this.validateOnBlur||this.$nextTick(this.validate)},isFocused:function(t){t||this.isDisabled||(this.hasFocused=!0,this.validateOnBlur&&this.$nextTick(this.validate))},isResetting:function(){var t=this;setTimeout((function(){t.hasInput=!1,t.hasFocused=!1,t.isResetting=!1,t.validate()}),0)},hasError:function(t){this.shouldValidate&&this.$emit("update:error",t)},value:function(t){this.lazyValue=t}},beforeMount:function(){this.validate()},created:function(){this.form&&this.form.register(this)},beforeDestroy:function(){this.form&&this.form.unregister(this)},methods:{genInternalMessages:function(t){return t?Array.isArray(t)?t:[t]:[]},reset:function(){this.isResetting=!0,this.internalValue=Array.isArray(this.internalValue)?[]:null},resetValidation:function(){this.isResetting=!0},validate:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0,i=[];e=e||this.internalValue,t&&(this.hasInput=this.hasFocused=!0);for(var n=0;n1?1:5}}},[i("v-icon",[t._v("mdi-file-tree-outline")])],1),i("v-spacer"),t._v(" "+t._s(t.item.Name)+" "),i("v-spacer"),i("v-btn",{attrs:{icon:""},on:{click:function(e){t.dialog=!1}}},[i("v-icon",[t._v("mdi-close")])],1)],1),i("v-card-text",[i("vue-json-pretty",{attrs:{"show-line":!1,deep:t.deep,data:t.item}})],1)],1)],1)],1)},n=[],a=i("838b"),r=i.n(a),o=(i("b83f"),{props:{item:{type:Object,default:function(){return{name:"json"}}}},data:function(){return{dialog:!1,deep:1}},components:{VueJsonPretty:r.a}}),l=o,u=i("2877"),h=i("6544"),c=i.n(h),d=i("8336"),p=i("b0af"),v=i("99d9"),f=i("169a"),m=i("132d"),b=i("2fa4"),g=Object(u["a"])(l,s,n,!1,null,null,null);e["a"]=g.exports;c()(g,{VBtn:d["a"],VCard:p["a"],VCardText:v["c"],VCardTitle:v["d"],VDialog:f["a"],VIcon:m["a"],VSpacer:b["a"]})},"8ff2":function(t,e,i){},"9e29":function(t,e,i){},ba0d:function(t,e,i){"use strict";var s=i("ade3"),n=i("5530"),a=(i("a9e3"),i("d81d"),i("99af"),i("caad"),i("2532"),i("498a"),i("d3b7"),i("25f0"),i("b680"),i("9e29"),i("c37a")),r=i("0789"),o=i("58df"),l=i("297c"),u=i("a293"),h=i("80d2"),c=i("d9bd");e["a"]=Object(o["a"])(a["a"],l["a"]).extend({name:"v-slider",directives:{ClickOutside:u["a"]},mixins:[l["a"]],props:{disabled:Boolean,inverseLabel:Boolean,max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:1},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:function(t){return"boolean"===typeof t||"always"===t}},thumbSize:{type:[Number,String],default:32},tickLabels:{type:Array,default:function(){return[]}},ticks:{type:[Boolean,String],default:!1,validator:function(t){return"boolean"===typeof t||"always"===t}},tickSize:{type:[Number,String],default:2},trackColor:String,trackFillColor:String,value:[Number,String],vertical:Boolean},data:function(){return{app:null,oldValue:null,thumbPressed:!1,mouseTimeout:-1,isFocused:!1,isActive:!1,noClick:!1}},computed:{classes:function(){return Object(n["a"])(Object(n["a"])({},a["a"].options.computed.classes.call(this)),{},{"v-input__slider":!0,"v-input__slider--vertical":this.vertical,"v-input__slider--inverse-label":this.inverseLabel})},internalValue:{get:function(){return this.lazyValue},set:function(t){t=isNaN(t)?this.minValue:t;var e=this.roundValue(Math.min(Math.max(t,this.minValue),this.maxValue));e!==this.lazyValue&&(this.lazyValue=e,this.$emit("input",e))}},trackTransition:function(){return this.thumbPressed?this.showTicks||this.stepNumeric?"0.1s cubic-bezier(0.25, 0.8, 0.5, 1)":"none":""},minValue:function(){return parseFloat(this.min)},maxValue:function(){return parseFloat(this.max)},stepNumeric:function(){return this.step>0?parseFloat(this.step):0},inputWidth:function(){return(this.roundValue(this.internalValue)-this.minValue)/(this.maxValue-this.minValue)*100},trackFillStyles:function(){var t,e=this.vertical?"bottom":"left",i=this.vertical?"top":"right",n=this.vertical?"height":"width",a=this.$vuetify.rtl?"auto":"0",r=this.$vuetify.rtl?"0":"auto",o=this.isDisabled?"calc(".concat(this.inputWidth,"% - 10px)"):"".concat(this.inputWidth,"%");return t={transition:this.trackTransition},Object(s["a"])(t,e,a),Object(s["a"])(t,i,r),Object(s["a"])(t,n,o),t},trackStyles:function(){var t,e=this.vertical?this.$vuetify.rtl?"bottom":"top":this.$vuetify.rtl?"left":"right",i=this.vertical?"height":"width",n="0px",a=this.isDisabled?"calc(".concat(100-this.inputWidth,"% - 10px)"):"calc(".concat(100-this.inputWidth,"%)");return t={transition:this.trackTransition},Object(s["a"])(t,e,n),Object(s["a"])(t,i,a),t},showTicks:function(){return this.tickLabels.length>0||!(this.isDisabled||!this.stepNumeric||!this.ticks)},numTicks:function(){return Math.ceil((this.maxValue-this.minValue)/this.stepNumeric)},showThumbLabel:function(){return!this.isDisabled&&!(!this.thumbLabel&&!this.$scopedSlots["thumb-label"])},computedTrackColor:function(){if(!this.isDisabled)return this.trackColor?this.trackColor:this.isDark?this.validationState:this.validationState||"primary lighten-3"},computedTrackFillColor:function(){if(!this.isDisabled)return this.trackFillColor?this.trackFillColor:this.validationState||this.computedColor},computedThumbColor:function(){return this.thumbColor?this.thumbColor:this.validationState||this.computedColor}},watch:{min:function(t){var e=parseFloat(t);e>this.internalValue&&this.$emit("input",e)},max:function(t){var e=parseFloat(t);e0}},r)},genThumbContainer:function(t,e,i,s,a,r){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"thumb",l=[this.genThumb()],u=this.genThumbLabelContent(t);return this.showThumbLabel&&l.push(this.genThumbLabel(u)),this.$createElement("div",this.setTextColor(this.computedThumbColor,{ref:o,key:o,staticClass:"v-slider__thumb-container",class:{"v-slider__thumb-container--active":i,"v-slider__thumb-container--focused":s,"v-slider__thumb-container--show-label":this.showThumbLabel},style:this.getThumbContainerStyles(e),attrs:Object(n["a"])({role:"slider",tabindex:this.isDisabled?-1:this.$attrs.tabindex?this.$attrs.tabindex:0,"aria-label":this.label,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this.internalValue,"aria-readonly":String(this.isReadonly),"aria-orientation":this.vertical?"vertical":"horizontal"},this.$attrs),on:{focus:a,blur:r,keydown:this.onKeyDown}}),l)},genThumbLabelContent:function(t){return this.$scopedSlots["thumb-label"]?this.$scopedSlots["thumb-label"]({value:t}):[this.$createElement("span",[String(t)])]},genThumbLabel:function(t){var e=Object(h["g"])(this.thumbSize),i=this.vertical?"translateY(20%) translateY(".concat(Number(this.thumbSize)/3-1,"px) translateX(55%) rotate(135deg)"):"translateY(-20%) translateY(-12px) translateX(-50%) rotate(45deg)";return this.$createElement(r["d"],{props:{origin:"bottom center"}},[this.$createElement("div",{staticClass:"v-slider__thumb-label-container",directives:[{name:"show",value:this.isFocused||this.isActive||"always"===this.thumbLabel}]},[this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb-label",style:{height:e,width:e,transform:i}}),[this.$createElement("div",t)])])])},genThumb:function(){return this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb"}))},getThumbContainerStyles:function(t){var e=this.vertical?"top":"left",i=this.$vuetify.rtl?100-t:t;return i=this.vertical?100-i:i,Object(s["a"])({transition:this.trackTransition},e,"".concat(i,"%"))},onSliderMouseDown:function(t){var e,i=this;t.preventDefault(),this.oldValue=this.internalValue,this.isActive=!0;var s=!h["B"]||{passive:!0,capture:!0},n=!!h["B"]&&{passive:!0};(null==(e=t.target)?void 0:e.matches(".v-slider__thumb-container, .v-slider__thumb-container *"))?this.thumbPressed=!0:(window.clearTimeout(this.mouseTimeout),this.mouseTimeout=window.setTimeout((function(){i.thumbPressed=!0}),300));var a="touches"in t;this.onMouseMove(t),this.app.addEventListener(a?"touchmove":"mousemove",this.onMouseMove,n),Object(h["a"])(this.app,a?"touchend":"mouseup",this.onSliderMouseUp,s),this.$emit("start",this.internalValue)},onSliderMouseUp:function(t){t.stopPropagation(),window.clearTimeout(this.mouseTimeout),this.thumbPressed=!1;var e=!!h["B"]&&{passive:!0};this.app.removeEventListener("touchmove",this.onMouseMove,e),this.app.removeEventListener("mousemove",this.onMouseMove,e),this.$emit("mouseup",t),this.$emit("end",this.internalValue),Object(h["j"])(this.oldValue,this.internalValue)||(this.$emit("change",this.internalValue),this.noClick=!0),this.isActive=!1},onMouseMove:function(t){"mousemove"===t.type&&(this.thumbPressed=!0),this.internalValue=this.parseMouseMove(t)},onKeyDown:function(t){if(this.isInteractive){var e=this.parseKeyDown(t,this.internalValue);null==e||ethis.maxValue||(this.internalValue=e,this.$emit("change",e))}},onSliderClick:function(t){if(this.noClick)this.noClick=!1;else{var e=this.$refs.thumb;e.focus(),this.onMouseMove(t),this.$emit("change",this.internalValue)}},onBlur:function(t){this.isFocused=!1,this.$emit("blur",t)},onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},parseMouseMove:function(t){var e=this.vertical?"top":"left",i=this.vertical?"height":"width",s=this.vertical?"clientY":"clientX",n=this.$refs.track.getBoundingClientRect(),a=n[e],r=n[i],o="touches"in t?t.touches[0][s]:t[s],l=Math.min(Math.max((o-a)/r,0),1)||0;return this.vertical&&(l=1-l),this.$vuetify.rtl&&(l=1-l),parseFloat(this.min)+l*(this.maxValue-this.minValue)},parseKeyDown:function(t,e){if(this.isInteractive){var i=h["x"].pageup,s=h["x"].pagedown,n=h["x"].end,a=h["x"].home,r=h["x"].left,o=h["x"].right,l=h["x"].down,u=h["x"].up;if([i,s,n,a,r,o,l,u].includes(t.keyCode)){t.preventDefault();var c=this.stepNumeric||1,d=(this.maxValue-this.minValue)/c;if([r,o,l,u].includes(t.keyCode)){var p=this.$vuetify.rtl?[r,u]:[o,u],v=p.includes(t.keyCode)?1:-1,f=t.shiftKey?3:t.ctrlKey?2:1;e+=v*c*f}else if(t.keyCode===a)e=this.minValue;else if(t.keyCode===n)e=this.maxValue;else{var m=t.keyCode===s?1:-1;e-=m*c*(d>100?d/10:10)}return e}}},roundValue:function(t){if(!this.stepNumeric)return t;var e=this.step.toString().trim(),i=e.indexOf(".")>-1?e.length-e.indexOf(".")-1:0,s=this.minValue%this.stepNumeric,n=Math.round((t-s)/this.stepNumeric)*this.stepNumeric+s;return parseFloat(Math.min(n,this.maxValue).toFixed(i))}}})},ba87:function(t,e,i){"use strict";var s=i("5530"),n=(i("a9e3"),i("1b2c"),i("a9ad")),a=i("7560"),r=i("58df"),o=i("80d2"),l=Object(r["a"])(a["a"]).extend({name:"v-label",functional:!0,props:{absolute:Boolean,color:{type:String,default:"primary"},disabled:Boolean,focused:Boolean,for:String,left:{type:[Number,String],default:0},right:{type:[Number,String],default:"auto"},value:Boolean},render:function(t,e){var i=e.children,r=e.listeners,l=e.props,u={staticClass:"v-label",class:Object(s["a"])({"v-label--active":l.value,"v-label--is-disabled":l.disabled},Object(a["b"])(e)),attrs:{for:l.for,"aria-hidden":!l.for},on:r,style:{left:Object(o["g"])(l.left),right:Object(o["g"])(l.right),position:l.absolute?"absolute":"relative"},ref:"label"};return t("label",n["a"].options.methods.setTextColor(l.focused&&l.color,u),i)}});e["a"]=l},c37a:function(t,e,i){"use strict";var s=i("5530"),n=(i("a9e3"),i("4de4"),i("d81d"),i("1276"),i("ac1f"),i("99af"),i("d191"),i("9d26")),a=i("ba87"),r=(i("8ff2"),i("a9ad")),o=i("7560"),l=i("58df"),u=i("80d2"),h=Object(l["a"])(r["a"],o["a"]).extend({name:"v-messages",props:{value:{type:Array,default:function(){return[]}}},methods:{genChildren:function(){return this.$createElement("transition-group",{staticClass:"v-messages__wrapper",attrs:{name:"message-transition",tag:"div"}},this.value.map(this.genMessage))},genMessage:function(t,e){return this.$createElement("div",{staticClass:"v-messages__message",key:e},Object(u["s"])(this,"default",{message:t,key:e})||[t])}},render:function(t){return t("div",this.setTextColor(this.color,{staticClass:"v-messages",class:this.themeClasses}),[this.genChildren()])}}),c=h,d=i("7e2b"),p=i("38cb"),v=i("d9f7"),f=Object(l["a"])(d["a"],p["a"]),m=f.extend().extend({name:"v-input",inheritAttrs:!1,props:{appendIcon:String,backgroundColor:{type:String,default:""},dense:Boolean,height:[Number,String],hideDetails:[Boolean,String],hint:String,id:String,label:String,loading:Boolean,persistentHint:Boolean,prependIcon:String,value:null},data:function(){return{lazyValue:this.value,hasMouseDown:!1}},computed:{classes:function(){return Object(s["a"])({"v-input--has-state":this.hasState,"v-input--hide-details":!this.showDetails,"v-input--is-label-active":this.isLabelActive,"v-input--is-dirty":this.isDirty,"v-input--is-disabled":this.isDisabled,"v-input--is-focused":this.isFocused,"v-input--is-loading":!1!==this.loading&&null!=this.loading,"v-input--is-readonly":this.isReadonly,"v-input--dense":this.dense},this.themeClasses)},computedId:function(){return this.id||"input-".concat(this._uid)},hasDetails:function(){return this.messagesToDisplay.length>0},hasHint:function(){return!this.hasMessages&&!!this.hint&&(this.persistentHint||this.isFocused)},hasLabel:function(){return!(!this.$slots.label&&!this.label)},internalValue:{get:function(){return this.lazyValue},set:function(t){this.lazyValue=t,this.$emit(this.$_modelEvent,t)}},isDirty:function(){return!!this.lazyValue},isLabelActive:function(){return this.isDirty},messagesToDisplay:function(){var t=this;return this.hasHint?[this.hint]:this.hasMessages?this.validations.map((function(e){if("string"===typeof e)return e;var i=e(t.internalValue);return"string"===typeof i?i:""})).filter((function(t){return""!==t})):[]},showDetails:function(){return!1===this.hideDetails||"auto"===this.hideDetails&&this.hasDetails}},watch:{value:function(t){this.lazyValue=t}},beforeCreate:function(){this.$_modelEvent=this.$options.model&&this.$options.model.event||"input"},methods:{genContent:function(){return[this.genPrependSlot(),this.genControl(),this.genAppendSlot()]},genControl:function(){return this.$createElement("div",{staticClass:"v-input__control"},[this.genInputSlot(),this.genMessages()])},genDefaultSlot:function(){return[this.genLabel(),this.$slots.default]},genIcon:function(t,e){var i=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=this["".concat(t,"Icon")],r="click:".concat(Object(u["w"])(t)),o=!(!this.listeners$[r]&&!e),l=Object(v["a"])({attrs:{"aria-label":o?Object(u["w"])(t).split("-")[0]+" icon":void 0,color:this.validationState,dark:this.dark,disabled:this.isDisabled,light:this.light},on:o?{click:function(t){t.preventDefault(),t.stopPropagation(),i.$emit(r,t),e&&e(t)},mouseup:function(t){t.preventDefault(),t.stopPropagation()}}:void 0},s);return this.$createElement("div",{staticClass:"v-input__icon",class:t?"v-input__icon--".concat(Object(u["w"])(t)):void 0},[this.$createElement(n["a"],l,a)])},genInputSlot:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor,{staticClass:"v-input__slot",style:{height:Object(u["g"])(this.height)},on:{click:this.onClick,mousedown:this.onMouseDown,mouseup:this.onMouseUp},ref:"input-slot"}),[this.genDefaultSlot()])},genLabel:function(){return this.hasLabel?this.$createElement(a["a"],{props:{color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:this.hasState,for:this.computedId,light:this.light}},this.$slots.label||this.label):null},genMessages:function(){var t=this;return this.showDetails?this.$createElement(c,{props:{color:this.hasHint?"":this.validationState,dark:this.dark,light:this.light,value:this.messagesToDisplay},attrs:{role:this.hasMessages?"alert":null},scopedSlots:{default:function(e){return Object(u["s"])(t,"message",e)}}}):null},genSlot:function(t,e,i){if(!i.length)return null;var s="".concat(t,"-").concat(e);return this.$createElement("div",{staticClass:"v-input__".concat(s),ref:s},i)},genPrependSlot:function(){var t=[];return this.$slots.prepend?t.push(this.$slots.prepend):this.prependIcon&&t.push(this.genIcon("prepend")),this.genSlot("prepend","outer",t)},genAppendSlot:function(){var t=[];return this.$slots.append?t.push(this.$slots.append):this.appendIcon&&t.push(this.genIcon("append")),this.genSlot("append","outer",t)},onClick:function(t){this.$emit("click",t)},onMouseDown:function(t){this.hasMouseDown=!0,this.$emit("mousedown",t)},onMouseUp:function(t){this.hasMouseDown=!1,this.$emit("mouseup",t)}},render:function(t){return t("div",this.setTextColor(this.validationState,{staticClass:"v-input",class:this.classes}),this.genContent())}});e["a"]=m},d191:function(t,e,i){}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-53c4ff2a.47e547a9.js b/www/fhemapp/js/chunk-53c4ff2a.47e547a9.js deleted file mode 100644 index 6b47f078..00000000 --- a/www/fhemapp/js/chunk-53c4ff2a.47e547a9.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-53c4ff2a"],{"02f0":function(t,e,i){},"0ccb":function(t,e,i){var a=i("50c4"),n=i("1148"),s=i("1d80"),r=Math.ceil,o=function(t){return function(e,i,o){var l,h,c=String(s(e)),u=c.length,d=void 0===o?" ":String(o),p=a(i);return p<=u||""==d?c:(l=p-u,h=n.call(d,r(l/d.length)),h.length>l&&(h=h.slice(0,l)),t?c+h:h+c)}};t.exports={start:o(!1),end:o(!0)}},2102:function(t,e,i){},"2af1":function(t,e,i){var a=i("23e7"),n=i("f748");a({target:"Math",stat:!0},{sign:n})},"4d90":function(t,e,i){"use strict";var a=i("23e7"),n=i("0ccb").start,s=i("9a0c");a({target:"String",proto:!0,forced:s},{padStart:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})},8308:function(t,e,i){},"9a0c":function(t,e,i){var a=i("342f");t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(a)},afd9:function(t,e,i){"use strict";var a=i("5530"),n=(i("a9e3"),i("c7cd"),i("8308"),i("3a66")),s=i("a9ad"),r=i("7560"),o=i("58df"),l=i("80d2");e["a"]=Object(o["a"])(Object(n["a"])("bar",["height","window"]),s["a"],r["a"]).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes:function(){return Object(a["a"])({"v-system-bar--lights-out":this.lightsOut,"v-system-bar--absolute":this.absolute,"v-system-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-system-bar--window":this.window},this.themeClasses)},computedHeight:function(){return this.height?isNaN(parseInt(this.height))?this.height:parseInt(this.height):this.window?32:24},styles:function(){return{height:Object(l["g"])(this.computedHeight)}}},methods:{updateApplication:function(){return this.$el?this.$el.clientHeight:this.computedHeight}},render:function(t){var e={staticClass:"v-system-bar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),Object(l["s"])(this))}})},b009:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-col",{class:t.setup.size},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.vals.mainLevel,color:t.vals.mainColor,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" "),i("v-spacer"),i("v-btn",{attrs:{small:"",icon:""},on:{click:t.goTo}},[i("v-icon",{attrs:{small:""}},[t._v(" "+t._s(t.vals.linkIcon)+" ")])],1)],1),i("v-divider"),i("v-card-text",{staticClass:"pa-0"},[t.vals.maxSize?i("v-row",{staticClass:"ma-3",attrs:{align:"center"}},[i("v-col",[i("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","max-width":"290px","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,n=e.attrs;return[i("v-text-field",t._g(t._b({attrs:{readonly:"",label:t.$t("app.dates.from"),"prepend-icon":"mdi-calendar"},model:{value:t.vals.fromLocale,callback:function(e){t.$set(t.vals,"fromLocale",e)},expression:"vals.fromLocale"}},"v-text-field",n,!1),a))]}}],null,!1,386214587),model:{value:t.vals.fromPicker,callback:function(e){t.$set(t.vals,"fromPicker",e)},expression:"vals.fromPicker"}},[i("v-date-picker",{attrs:{locale:t.setup.lang,"no-title":""},on:{input:t.loadChartData},model:{value:t.vals.from,callback:function(e){t.$set(t.vals,"from",e)},expression:"vals.from"}})],1)],1),i("v-col",[i("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"",left:"","max-width":"290px","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,n=e.attrs;return[i("v-text-field",t._g(t._b({attrs:{readonly:"",label:t.$t("app.dates.to"),"prepend-icon":"mdi-calendar"},model:{value:t.vals.toLocale,callback:function(e){t.$set(t.vals,"toLocale",e)},expression:"vals.toLocale"}},"v-text-field",n,!1),a))]}}],null,!1,2833546523),model:{value:t.vals.toPicker,callback:function(e){t.$set(t.vals,"toPicker",e)},expression:"vals.toPicker"}},[i("v-date-picker",{attrs:{locale:t.setup.lang,"no-title":""},on:{input:t.loadChartData},model:{value:t.vals.to,callback:function(e){t.$set(t.vals,"to",e)},expression:"vals.to"}})],1)],1)],1):t._e(),i("apexchart",{attrs:{options:t.chart.options,series:t.chart.series},on:{zoomed:t.afterZoom}})],1),i("v-divider"),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",[t._v(t._s(t.vals.systemIcon))]),i("v-spacer")],1)],1)],1)},n=[],s=i("b85c"),r=(i("4de4"),i("466d"),i("ac1f"),i("1276"),i("a434"),i("5319"),i("d81d"),i("b680"),{props:{item:{type:Object,default:function(){return{name:"chart"}}}},data:function(){return{name:"chart",setup:{size:"col-12 col-sm-12 col-md-6 col-lg-4",daysAgo:-6,daysTo:0,lang:"de"},vals:{title:"",mainLevel:0,mainColor:"success",maxSize:!1,linkIcon:"mdi-arrow-expand",fromPicker:!1,from:"",fromLocale:"",toPicker:!1,to:"",systemIcon:"mdi-chart-bar"},chart:{options:{theme:{mode:"dark"},chart:{type:"line",height:"auto",toolbar:{show:!1}},stroke:{curve:"smooth"},tooltip:{x:{format:"ddd dd.MM.yy HH:mm:ss"}},xaxis:{type:"datetime",labels:{datetimeUTC:!1}},yaxis:[]},series:[]}}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var e=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||e}},"vals.from":function(t){this.vals.fromLocale=new Date(t).toLocaleString(this.setup.lang,{dateStyle:"medium"})},"vals.to":function(t){this.vals.toLocale=new Date(t).toLocaleString(this.setup.lang,{dateStyle:"medium"})}},created:function(){this.init()},methods:{init:function(){this.setup.lang=this.$fhem.app.options.lang;var t=this.$fhem.getEl(this.item,"Options","setup");t&&Object.assign(this.setup,t),this.setup.lineWidth&&(this.chart.options.stroke.width=this.setup.lineWidth),this.$route.params.filter&&this.$route.params.filter.match("&size=max")&&(this.vals.maxSize=!0,this.setup.size="col-12",this.vals.linkIcon="mdi-arrow-collapse"),this.vals.from=this.$fhem.getDate(this.setup.daysAgo),this.vals.to=this.$fhem.getDate(this.setup.daysTo),this.chart.options.chart.height=window.innerHeight>600&&this.vals.maxSize?parseInt(window.innerHeight-320):"auto",this.chart.options.theme.mode=this.$vuetify.theme.dark?"dark":"light",this.loadChartData()},goTo:function(){this.vals.maxSize?this.$router.go(-1):this.$router.push("/devices/device="+this.item.Name+"&size=max")},afterZoom:function(t,e){var i=e.xaxis;this.vals.from=new Date(i.min).toISOString().split("T")[0],this.vals.to=new Date(i.max).toISOString().split("T")[0],this.loadChartData()},loadChartData:function(){var t=this;if(this.vals.fromPicker=!1,this.vals.toPicker=!1,this.item){this.$fhem.loading=!0;var e=new Date(this.vals.to);e.setDate(e.getDate()+1),e=e.toISOString().split("T")[0];var i={deviceName:this.item.Name,from:this.vals.from,to:e,defs:this.item.Options.chartDef};this.$fhem.readLogData(i).then((function(e){if(e.defs.length>0){var i=0,a="",n="";t.chart.options.yaxis.splice(0),t.chart.series.splice(0);var r,o=Object(s["a"])(e.defs);try{var l=function(){var o,l=r.value,h=/\(.*\)/.exec(l),c=h?l.replace(h[0],"_").split(":"):l.split(":"),u=[],d=e.data[e.data.map((function(t){return t.id})).indexOf(i)].data,p=Object(s["a"])(d);try{for(p.s();!(o=p.n()).done;){var m=o.value;u.push([m.timestamp,m.value])}}catch(b){p.e(b)}finally{p.f()}t.chart.series.push({name:c[2],data:u});var f="secondary"===c[4],v=!1;a||f||(a=c[2],v=!0),!n&&f&&(n=c[2],v=!0);var g={seriesName:f?n:a,show:v,opposite:f,labels:{formatter:function(t){var e="";return t&&(e=t.toFixed(1)+c[3]),e}}};t.chart.options.yaxis.push(g),i++};for(o.s();!(r=o.n()).done;)l()}catch(h){o.e(h)}finally{o.f()}}t.chart.options=Object.assign({},t.chart.options),t.$fhem.loading=!1}))}else this.$fhem.emit("message",{lvl:1,msg:"No valid device for Chart Data defined at "+this.item.Name})}}}),o=r,l=i("2877"),h=i("6544"),c=i.n(h),u=i("8336"),d=i("b0af"),p=i("99d9"),m=i("62ad"),f=i("5530"),v=(i("a9e3"),i("caad"),i("99af"),i("b0c0"),i("d951"),i("9d26")),g=(i("498a"),i("a9ad")),b=i("58df"),y=i("80d2"),k=Object(b["a"])(g["a"]).extend({methods:{genPickerButton:function(t,e,i){var a=this,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",r=this[t]===e,o=function(i){i.stopPropagation(),a.$emit("update:".concat(Object(y["w"])(t)),e)};return this.$createElement("div",{staticClass:"v-picker__title__btn ".concat(s).trim(),class:{"v-picker__title__btn--active":r,"v-picker__title__btn--readonly":n},on:r||n?void 0:{click:o}},Array.isArray(i)?i:[i])}}}),D=Object(b["a"])(k).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>=0,t=String(t),i=String(i),t.length>e?String(t):(e-=t.length,e>i.length&&(i+=i.repeat(e/i.length)),i.slice(0,e)+String(t))}),M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return S(t,e,"0")};function O(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{start:0,length:0},a=function(t){var e=t.trim().split(" ")[0].split("-"),i=Object($["a"])(e,3),a=i[0],n=i[1],s=i[2];return[M(a,4),M(n||1),M(s||1)].join("-")};try{var n=new Intl.DateTimeFormat(t||void 0,e);return function(t){return n.format(new Date("".concat(a(t),"T00:00:00+00:00")))}}catch(s){return i.start||i.length?function(t){return a(t).substr(i.start||0,i.length)}:void 0}}var Y=O,B=function(t,e){var i=t.split("-").map(Number),a=Object($["a"])(i,2),n=a[0],s=a[1];return s+e===0?"".concat(n-1,"-12"):s+e===13?"".concat(n+1,"-01"):"".concat(n,"-").concat(M(s+e))},E=Object(b["a"])(g["a"],x,C["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]?Y(this.currentLocale,{month:"long",year:"numeric",timeZone:"UTC"},{length:7}):Y(this.currentLocale,{year:"numeric",timeZone:"UTC"},{length:4})}},watch:{value:function(t,e){this.isReversing=t0?this.nextAriaLabel:this.prevAriaLabel,a=i?this.$vuetify.lang.t(i):void 0,n=this.disabled||t<0&&this.min&&this.calculateChange(t)0&&this.max&&this.calculateChange(t)>this.max;return this.$createElement(w["a"],{attrs:{"aria-label":a},props:{dark:this.dark,disabled:n,icon:!0,light:this.light},on:{click:function(i){i.stopPropagation(),e.$emit("input",e.calculateChange(t))}}},[this.$createElement(v["a"],t<0===!this.$vuetify.rtl?this.prevIcon:this.nextIcon)])},calculateChange:function(t){var e=String(this.value).split("-").map(Number),i=Object($["a"])(e,2),a=i[0],n=i[1];return null==n?"".concat(a+t):B(String(this.value),t)},genHeader:function(){var t=this,e=!this.disabled&&(this.color||"accent"),i=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))])]),a=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}},[a])}},render:function(){return this.$createElement("div",{staticClass:"v-date-picker-header",class:Object(f["a"])({"v-date-picker-header--disabled":this.disabled},this.themeClasses)},[this.genBtn(-1),this.genHeader(),this.genBtn(1)])}}),A=(i("2af1"),i("4d90"),i("2909")),j=(i("2532"),i("c982"),i("c3f0"));i("13d5"),i("b64b"),i("8a79");function F(t,e,i){return Object.keys(t.$listeners).reduce((function(a,n){return n.endsWith(e)&&(a[n.slice(0,-e.length)]=function(e){return t.$emit(n,i,e)}),a}),{})}function I(t,e){return Object.keys(t.$listeners).reduce((function(i,a){return a.endsWith(e)&&(i[a]=t.$listeners[a]),i}),{})}var _=function(t,e){var i=t.split("-"),a=Object($["a"])(i,3),n=a[0],s=a[1],r=void 0===s?1:s,o=a[2],l=void 0===o?1:o;return"".concat(n,"-").concat(M(r),"-").concat(M(l)).substr(0,{date:10,month:7,year:4}[e])};function P(t,e,i,a){return(!a||a(t))&&(!e||t>=e.substr(0,10))&&(!i||t<=i)}var L=i("d9f7"),V=Object(b["a"])(g["a"],x,C["a"]).extend({directives:{Touch:j["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=t4&&void 0!==arguments[4]&&arguments[4],s=P(t,this.min,this.max,this.allowedDates),r=this.isSelected(t)&&s,o=t===this.current,l=r?this.setBackgroundColor:this.setTextColor,h=(r||o)&&(this.color||"accent");return this.$createElement("button",l(h,{staticClass:"v-btn",class:this.genButtonClasses(s&&!n,e,r,o),attrs:{type:"button"},domProps:{disabled:this.disabled||!s||n},on:this.genButtonEvents(t,s,i)}),[this.$createElement("div",{staticClass:"v-btn__content"},[a(t)]),this.genEvents(t)])},getEventColors:function(t){var e,i=function(t){return Array.isArray(t)?t:[t]},a=[];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?(a=!0!==e?i(e):"string"===typeof this.eventColor?[this.eventColor]:"function"===typeof this.eventColor?i(this.eventColor(t)):Array.isArray(this.eventColor)?this.eventColor:i(this.eventColor[t]),a.filter((function(t){return t}))):[]},genEvents:function(t){var e=this,i=this.getEventColors(t);return i.length?this.$createElement("div",{staticClass:"v-date-picker-table__events"},i.map((function(t){return e.$createElement("div",e.setBackgroundColor(t))}))):null},isValidScroll:function(t,e){var i=e(t.deltaY),a=1===i.split("-").length?"year":"month";return 0===t.deltaY||t.deltaY<0&&(!this.min||i>=_(this.min,a))||t.deltaY>0&&(!this.max||i<=_(this.max,a))},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,i){var a=this,n=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.touch(1,i)},right:function(t){return t.offsetX>15&&a.touch(-1,i)}}};return this.$createElement("div",{staticClass:t,class:Object(f["a"])({"v-date-picker-table--disabled":this.disabled},this.themeClasses),on:!this.disabled&&this.scrollable?{wheel:function(t){t.preventDefault(),a.isValidScroll(t,i)&&a.wheelThrottle(t,i)}}:void 0,directives:[s]},[n])},isSelected:function(t){if(Array.isArray(this.value)){if(this.range&&2===this.value.length){var e=Object(A["a"])(this.value).sort(),i=Object($["a"])(e,2),a=i[0],n=i[1];return a<=t&&t<=n}return-1!==this.value.indexOf(t)}return t===this.value}}});function N(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return t<100&&t>=0?(e=new Date(Date.UTC(t,i,a)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC(t,i,a)),e}function W(t,e,i){var a=7+e-i,n=(7+N(t,0,a).getUTCDay()-e)%7;return-n+a-1}function H(t,e,i,a){var n=[0,31,59,90,120,151,181,212,243,273,304,334][e];return e>1&&z(t)&&n++,n+i}function R(t,e,i){var a=W(t,e,i),n=W(t+1,e,i),s=z(t)?366:365;return(s-a+n)/7}function U(t,e,i,a,n){var s=W(t,a,n),r=Math.ceil((H(t,e,i,a)-s)/7);return r<1?r+R(t-1,a,n):r>R(t,a,n)?r-R(t,a,n):r}function z(t){return t%4===0&&t%100!==0||t%400===0}var Z=Object(b["a"])(V).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||Y(this.currentLocale,{day:"numeric",timeZone:"UTC"},{start:8,length:2})},weekdayFormatter:function(){return this.weekdayFormat||Y(this.currentLocale,{weekday:"narrow",timeZone:"UTC"})},weekDays:function(){var t=this,e=parseInt(this.firstDayOfWeek,10);return this.weekdayFormatter?Object(y["h"])(7).map((function(i){return t.weekdayFormatter("2017-01-".concat(e+i+15))})):Object(y["h"])(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(M(this.displayedMonth+1),"-01T00:00:00+00:00")),e=t.getUTCDay();return(e-parseInt(this.firstDayOfWeek)+7)%7},getWeekNumber:function(t){return U(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(),i=[],a=this.weekDaysBeforeFirstDayOfTheMonth();this.showWeek&&i.push(this.genWeekNumber(this.getWeekNumber(1)));var n=this.displayedMonth?this.displayedYear:this.displayedYear-1,s=(this.displayedMonth+11)%12,r=new Date(this.displayedYear,this.displayedMonth,0).getDate(),o=this.showWeek?8:7;while(a--){var l="".concat(n,"-").concat(M(s+1),"-").concat(M(r-a));i.push(this.$createElement("td",this.showAdjacentMonths?[this.genButton(l,!0,"date",this.formatter,!0)]:[]))}for(a=1;a<=e;a++){var h="".concat(this.displayedYear,"-").concat(M(this.displayedMonth+1),"-").concat(M(a));i.push(this.$createElement("td",[this.genButton(h,!0,"date",this.formatter)])),i.length%o===0&&(t.push(this.genTR(i)),i=[],this.showWeek&&(a=a;n--)t.push(this.genYearItem(n));return t}},render:function(){return this.$createElement("ul",{staticClass:"v-date-picker-years",ref:"years"},this.genYearItems())}})),X=(i("0481"),i("e53c"),i("615b"),i("c995")),G=Object(b["a"])(g["a"],X["a"],C["a"]).extend({name:"v-picker",props:{flat:Boolean,fullWidth:Boolean,landscape:Boolean,noTitle:Boolean,transition:{type:String,default:"fade-transition"},width:{type:[Number,String],default:290}},computed:{computedTitleColor:function(){var t=!this.isDark&&(this.color||"primary");return this.color||t}},methods:{genTitle:function(){return this.$createElement("div",this.setBackgroundColor(this.computedTitleColor,{staticClass:"v-picker__title",class:{"v-picker__title--landscape":this.landscape}}),this.$slots.title)},genBodyTransition:function(){return this.$createElement("transition",{props:{name:this.transition}},this.$slots.default)},genBody:function(){return this.$createElement("div",{staticClass:"v-picker__body",class:Object(f["a"])({"v-picker__body--no-title":this.noTitle},this.themeClasses),style:this.fullWidth?void 0:{width:Object(y["g"])(this.width)}},[this.genBodyTransition()])},genActions:function(){return this.$createElement("div",{staticClass:"v-picker__actions v-card__actions",class:{"v-picker__actions--no-title":this.noTitle}},this.$slots.actions)}},render:function(t){return t("div",{staticClass:"v-picker v-card",class:Object(f["a"])(Object(f["a"])({"v-picker--flat":this.flat,"v-picker--landscape":this.landscape,"v-picker--full-width":this.fullWidth},this.themeClasses),this.elevationClasses)},[this.$slots.title?this.genTitle():null,this.genBody(),this.$slots.actions?this.genActions():null])}}),K=G,Q=Object(b["a"])(g["a"],X["a"],C["a"]).extend({name:"picker",props:{flat:Boolean,fullWidth:Boolean,headerColor:String,landscape:Boolean,noTitle:Boolean,width:{type:[Number,String],default:290}},methods:{genPickerTitle:function(){return null},genPickerBody:function(){return null},genPickerActionsSlot:function(){return this.$scopedSlots.default?this.$scopedSlots.default({save:this.save,cancel:this.cancel}):this.$slots.default},genPicker:function(t){var e=[];if(!this.noTitle){var i=this.genPickerTitle();i&&e.push(i)}var a=this.genPickerBody();return a&&e.push(a),e.push(this.$createElement("template",{slot:"actions"},[this.genPickerActionsSlot()])),this.$createElement(K,{staticClass:t,props:{color:this.headerColor||this.color,dark:this.dark,elevation:this.elevation,flat:this.flat,fullWidth:this.fullWidth,landscape:this.landscape,light:this.light,width:this.width,noTitle:this.noTitle}},e)}}}),tt=(i("53ca"),[0,31,28,31,30,31,30,31,31,30,31,30,31]),et=[0,31,29,31,30,31,30,31,31,30,31,30,31];function it(t,e){return z(t)?et[e]:tt[e]}var at=i("d9bd"),nt=Object(b["a"])(x,Q).extend({name:"v-date-picker",props:{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{activePicker:this.type.toUpperCase(),inputDay:null,inputMonth:null,inputYear:null,isReversing:!1,now:e,tableDate:function(){if(t.pickerDate)return t.pickerDate;var i=Object(y["H"])(t.value),a=i[i.length-1]||("string"===typeof t.showCurrent?t.showCurrent:"".concat(e.getFullYear(),"-").concat(e.getMonth()+1));return _(a,"date"===t.type?"month":"year")}()}},computed:{multipleValue:function(){return Object(y["H"])(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?_("".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(M(this.inputMonth+1),"-").concat(M(this.inputDay)):"".concat(this.inputYear,"-").concat(M(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?_(this.min,"month"):null},maxMonth:function(){return this.max?_(this.max,"month"):null},minYear:function(){return this.min?_(this.min,"year"):null},maxYear:function(){return this.max?_(this.max,"year"):null},formatters:function(){return{year:this.yearFormat||Y(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=Y(this.currentLocale,t[this.type],{start:0,length:{date:10,month:7,year:4}[this.type]}),i=function(t){return e(t).replace(/([^\d\s])([\d])/g,(function(t,e,i){return"".concat(e," ").concat(i)})).replace(", ",",
")};return this.landscape?i:e}},watch:{tableDate:function(t,e){var i="month"===this.type?"year":"month";this.isReversing=_(t,i)<_(e,i),this.$emit("update:picker-date",t)},pickerDate:function(t){t?this.tableDate=t:this.lastValue&&"date"===this.type?this.tableDate=_(this.lastValue,"month"):this.lastValue&&"month"===this.type&&(this.tableDate=_(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=_(this.inputDate,"month"===this.type?"year":"month"))},type:function(t){if(this.activePicker=t.toUpperCase(),this.value&&this.value.length){var e=this.multipleValue.map((function(e){return _(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 i=this.multiple?-1===this.multipleValue.indexOf(t)?this.multipleValue.concat([t]):this.multipleValue.filter((function(e){return e!==t})):t;this.$emit("input",i),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(at["c"])("Value must be ".concat(this.isMultiple?"an":"a"," ").concat(e,", got ").concat(t),this)}},isDateAllowed:function(t){return P(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(M((this.tableMonth||0)+1)),this.activePicker="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,it(this.inputYear,this.inputMonth+1))),this.tableDate=t,this.activePicker="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(D,{props:{date:this.value?this.formatters.titleDate(this.isMultiple?this.multipleValue:this.value):"",disabled:this.disabled,readonly:this.readonly,selectingYear:"YEAR"===this.activePicker,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.activePicker=e?"YEAR":t.type.toUpperCase()}}})},genTableHeader:function(){var t=this;return this.$createElement(E,{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.activePicker?this.minMonth:this.minYear,max:"DATE"===this.activePicker?this.maxMonth:this.maxYear,nextAriaLabel:"DATE"===this.activePicker?this.nextMonthAriaLabel:this.nextYearAriaLabel,prevAriaLabel:"DATE"===this.activePicker?this.prevMonthAriaLabel:this.prevYearAriaLabel,prevIcon:this.prevIcon,readonly:this.readonly,value:"DATE"===this.activePicker?"".concat(M(this.tableYear,4),"-").concat(M(this.tableMonth+1)):"".concat(M(this.tableYear,4))},on:{toggle:function(){return t.activePicker="DATE"===t.activePicker?"MONTH":"YEAR"},input:function(e){return t.tableDate=e}}})},genDateTable:function(){var t=this;return this.$createElement(Z,{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(M(this.tableYear,4),"-").concat(M(this.tableMonth+1)),value:this.value,weekdayFormat:this.weekdayFormat},ref:"table",on:Object(f["a"])({input:this.dateClick,"update:table-date":function(e){return t.tableDate=e}},I(this,":date"))})},genMonthTable:function(){var t=this;return this.$createElement(q,{props:{allowedDates:"month"===this.type?this.allowedDates:null,color:this.color,current:this.current?_(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(M(this.tableYear,4))},ref:"table",on:Object(f["a"])({input:this.monthClick,"update:table-date":function(e){return t.tableDate=e}},I(this,":month"))})},genYears:function(){return this.$createElement(J,{props:{color:this.color,format:this.yearFormat,locale:this.locale,min:this.minYear,max:this.maxYear,value:this.tableYear},on:Object(f["a"])({input:this.yearClick},I(this,":year"))})},genPickerBody:function(){var t="YEAR"===this.activePicker?[this.genYears()]:[this.genTableHeader(),"DATE"===this.activePicker?this.genDateTable():this.genMonthTable()];return this.$createElement("div",{key:this.activePicker},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")}}),st=i("ce7e"),rt=i("132d"),ot=i("e449"),lt=i("8e36"),ht=i("0fd9"),ct=i("2fa4"),ut=i("afd9"),dt=i("8654"),pt=Object(l["a"])(o,a,n,!1,null,null,null);e["default"]=pt.exports;c()(pt,{VBtn:u["a"],VCard:d["a"],VCardText:p["c"],VCardTitle:p["d"],VCol:m["a"],VDatePicker:nt,VDivider:st["a"],VIcon:rt["a"],VMenu:ot["a"],VProgressLinear:lt["a"],VRow:ht["a"],VSpacer:ct["a"],VSystemBar:ut["a"],VTextField:dt["a"]})},c982:function(t,e,i){},d951:function(t,e,i){},e53c:function(t,e,i){}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-53c4ff2a.a3ca272e.js b/www/fhemapp/js/chunk-53c4ff2a.a3ca272e.js new file mode 100644 index 00000000..b877ab4c --- /dev/null +++ b/www/fhemapp/js/chunk-53c4ff2a.a3ca272e.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-53c4ff2a"],{"02f0":function(t,e,i){},"0ccb":function(t,e,i){var a=i("50c4"),n=i("1148"),s=i("1d80"),r=Math.ceil,o=function(t){return function(e,i,o){var l,h,c=String(s(e)),u=c.length,d=void 0===o?" ":String(o),p=a(i);return p<=u||""==d?c:(l=p-u,h=n.call(d,r(l/d.length)),h.length>l&&(h=h.slice(0,l)),t?c+h:h+c)}};t.exports={start:o(!1),end:o(!0)}},2102:function(t,e,i){},"2af1":function(t,e,i){var a=i("23e7"),n=i("f748");a({target:"Math",stat:!0},{sign:n})},"4d90":function(t,e,i){"use strict";var a=i("23e7"),n=i("0ccb").start,s=i("9a0c");a({target:"String",proto:!0,forced:s},{padStart:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})},8308:function(t,e,i){},"9a0c":function(t,e,i){var a=i("342f");t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(a)},afd9:function(t,e,i){"use strict";var a=i("5530"),n=(i("a9e3"),i("c7cd"),i("8308"),i("3a66")),s=i("a9ad"),r=i("7560"),o=i("58df"),l=i("80d2");e["a"]=Object(o["a"])(Object(n["a"])("bar",["height","window"]),s["a"],r["a"]).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes:function(){return Object(a["a"])({"v-system-bar--lights-out":this.lightsOut,"v-system-bar--absolute":this.absolute,"v-system-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-system-bar--window":this.window},this.themeClasses)},computedHeight:function(){return this.height?isNaN(parseInt(this.height))?this.height:parseInt(this.height):this.window?32:24},styles:function(){return{height:Object(l["g"])(this.computedHeight)}}},methods:{updateApplication:function(){return this.$el?this.$el.clientHeight:this.computedHeight}},render:function(t){var e={staticClass:"v-system-bar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),Object(l["s"])(this))}})},b009:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-col",{class:t.setup.size},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.vals.mainLevel,color:t.vals.mainColor,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" "),i("v-spacer"),i("v-btn",{attrs:{small:"",icon:""},on:{click:t.goTo}},[i("v-icon",{attrs:{small:""}},[t._v(" "+t._s(t.vals.linkIcon)+" ")])],1)],1),i("v-divider"),i("v-card-text",{staticClass:"pa-0"},[t.vals.maxSize?i("v-row",{staticClass:"ma-3",attrs:{align:"center"}},[i("v-col",[i("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","max-width":"290px","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,n=e.attrs;return[i("v-text-field",t._g(t._b({attrs:{readonly:"",label:t.$t("app.dates.from"),"prepend-icon":"mdi-calendar"},model:{value:t.vals.fromLocale,callback:function(e){t.$set(t.vals,"fromLocale",e)},expression:"vals.fromLocale"}},"v-text-field",n,!1),a))]}}],null,!1,386214587),model:{value:t.vals.fromPicker,callback:function(e){t.$set(t.vals,"fromPicker",e)},expression:"vals.fromPicker"}},[i("v-date-picker",{attrs:{locale:t.setup.lang,"no-title":""},on:{input:t.loadChartData},model:{value:t.vals.from,callback:function(e){t.$set(t.vals,"from",e)},expression:"vals.from"}})],1)],1),i("v-col",[i("v-menu",{attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"",left:"","max-width":"290px","min-width":"auto"},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on,n=e.attrs;return[i("v-text-field",t._g(t._b({attrs:{readonly:"",label:t.$t("app.dates.to"),"prepend-icon":"mdi-calendar"},model:{value:t.vals.toLocale,callback:function(e){t.$set(t.vals,"toLocale",e)},expression:"vals.toLocale"}},"v-text-field",n,!1),a))]}}],null,!1,2833546523),model:{value:t.vals.toPicker,callback:function(e){t.$set(t.vals,"toPicker",e)},expression:"vals.toPicker"}},[i("v-date-picker",{attrs:{locale:t.setup.lang,"no-title":""},on:{input:t.loadChartData},model:{value:t.vals.to,callback:function(e){t.$set(t.vals,"to",e)},expression:"vals.to"}})],1)],1)],1):t._e(),i("apexchart",{attrs:{options:t.chart.options,series:t.chart.series},on:{zoomed:t.afterZoom}})],1),i("v-divider"),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",[t._v(t._s(t.vals.systemIcon))]),i("v-spacer")],1)],1)],1)},n=[],s=i("b85c"),r=(i("4de4"),i("466d"),i("ac1f"),i("1276"),i("a434"),i("5319"),i("d81d"),i("b680"),{props:{item:{type:Object,default:function(){return{name:"chart"}}}},data:function(){return{name:"chart",setup:{size:"col-12 col-sm-12 col-md-6 col-lg-4",daysAgo:6,daysTo:0,lang:"de"},vals:{title:"",mainLevel:0,mainColor:"success",maxSize:!1,linkIcon:"mdi-arrow-expand",fromPicker:!1,from:"",fromLocale:"",toPicker:!1,to:"",systemIcon:"mdi-chart-bar"},chart:{options:{theme:{mode:"dark"},chart:{type:"line",height:"auto",toolbar:{show:!1}},stroke:{curve:"smooth"},tooltip:{x:{format:"ddd dd.MM.yy HH:mm:ss"}},xaxis:{type:"datetime",labels:{datetimeUTC:!1}},yaxis:[]},series:[]}}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var e=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||e}},"vals.from":function(t){this.vals.fromLocale=new Date(t).toLocaleString(this.setup.lang,{dateStyle:"medium"})},"vals.to":function(t){this.vals.toLocale=new Date(t).toLocaleString(this.setup.lang,{dateStyle:"medium"})}},created:function(){this.init()},methods:{init:function(){this.setup.lang=this.$fhem.app.options.lang;var t=this.$fhem.getEl(this.item,"Options","setup");t&&Object.assign(this.setup,t),this.setup.lineWidth&&(this.chart.options.stroke.width=this.setup.lineWidth),this.$route.params.filter&&this.$route.params.filter.match("&size=max")&&(this.vals.maxSize=!0,this.setup.size="col-12",this.vals.linkIcon="mdi-arrow-collapse"),this.vals.from=this.$fhem.getDate(this.setup.daysAgo),this.vals.to=this.$fhem.getDate(this.setup.daysTo),this.chart.options.chart.height=window.innerHeight>600&&this.vals.maxSize?parseInt(window.innerHeight-320):"auto",this.chart.options.theme.mode=this.$vuetify.theme.dark?"dark":"light",this.loadChartData()},goTo:function(){this.vals.maxSize?this.$router.go(-1):this.$router.push("/devices/device="+this.item.Name+"&size=max")},afterZoom:function(t,e){var i=e.xaxis;this.vals.from=new Date(i.min).toISOString().split("T")[0],this.vals.to=new Date(i.max).toISOString().split("T")[0],this.loadChartData()},loadChartData:function(){var t=this;if(this.vals.fromPicker=!1,this.vals.toPicker=!1,this.item){this.$fhem.loading=!0;var e=new Date(this.vals.to);e.setDate(e.getDate()+1),e=e.toISOString().split("T")[0];var i={deviceName:this.item.Name,from:this.vals.from,to:e,defs:this.item.Options.chartDef};this.$fhem.readLogData(i).then((function(e){if(e.defs.length>0){var i=0,a="",n="";t.chart.options.yaxis.splice(0),t.chart.series.splice(0);var r,o=Object(s["a"])(e.defs);try{var l=function(){var o,l=r.value,h=/\(.*\)/.exec(l),c=h?l.replace(h[0],"_").split(":"):l.split(":"),u=[],d=e.data[e.data.map((function(t){return t.id})).indexOf(i)].data,p=Object(s["a"])(d);try{for(p.s();!(o=p.n()).done;){var m=o.value;u.push([m.timestamp,m.value])}}catch(b){p.e(b)}finally{p.f()}t.chart.series.push({name:c[2],data:u});var f="secondary"===c[4],v=!1;a||f||(a=c[2],v=!0),!n&&f&&(n=c[2],v=!0);var g={seriesName:f?n:a,show:v,opposite:f,labels:{formatter:function(t){var e="";return t&&(e=t.toFixed(1)+c[3]),e}}};t.chart.options.yaxis.push(g),i++};for(o.s();!(r=o.n()).done;)l()}catch(h){o.e(h)}finally{o.f()}}t.chart.options=Object.assign({},t.chart.options),t.$fhem.loading=!1}))}else this.$fhem.emit("message",{lvl:1,msg:"No valid device for Chart Data defined at "+this.item.Name})}}}),o=r,l=i("2877"),h=i("6544"),c=i.n(h),u=i("8336"),d=i("b0af"),p=i("99d9"),m=i("62ad"),f=i("5530"),v=(i("a9e3"),i("caad"),i("99af"),i("b0c0"),i("d951"),i("9d26")),g=(i("498a"),i("a9ad")),b=i("58df"),y=i("80d2"),k=Object(b["a"])(g["a"]).extend({methods:{genPickerButton:function(t,e,i){var a=this,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",r=this[t]===e,o=function(i){i.stopPropagation(),a.$emit("update:".concat(Object(y["w"])(t)),e)};return this.$createElement("div",{staticClass:"v-picker__title__btn ".concat(s).trim(),class:{"v-picker__title__btn--active":r,"v-picker__title__btn--readonly":n},on:r||n?void 0:{click:o}},Array.isArray(i)?i:[i])}}}),D=Object(b["a"])(k).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>=0,t=String(t),i=String(i),t.length>e?String(t):(e-=t.length,e>i.length&&(i+=i.repeat(e/i.length)),i.slice(0,e)+String(t))}),M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return S(t,e,"0")};function O(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{start:0,length:0},a=function(t){var e=t.trim().split(" ")[0].split("-"),i=Object($["a"])(e,3),a=i[0],n=i[1],s=i[2];return[M(a,4),M(n||1),M(s||1)].join("-")};try{var n=new Intl.DateTimeFormat(t||void 0,e);return function(t){return n.format(new Date("".concat(a(t),"T00:00:00+00:00")))}}catch(s){return i.start||i.length?function(t){return a(t).substr(i.start||0,i.length)}:void 0}}var Y=O,B=function(t,e){var i=t.split("-").map(Number),a=Object($["a"])(i,2),n=a[0],s=a[1];return s+e===0?"".concat(n-1,"-12"):s+e===13?"".concat(n+1,"-01"):"".concat(n,"-").concat(M(s+e))},E=Object(b["a"])(g["a"],x,C["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]?Y(this.currentLocale,{month:"long",year:"numeric",timeZone:"UTC"},{length:7}):Y(this.currentLocale,{year:"numeric",timeZone:"UTC"},{length:4})}},watch:{value:function(t,e){this.isReversing=t0?this.nextAriaLabel:this.prevAriaLabel,a=i?this.$vuetify.lang.t(i):void 0,n=this.disabled||t<0&&this.min&&this.calculateChange(t)0&&this.max&&this.calculateChange(t)>this.max;return this.$createElement(w["a"],{attrs:{"aria-label":a},props:{dark:this.dark,disabled:n,icon:!0,light:this.light},on:{click:function(i){i.stopPropagation(),e.$emit("input",e.calculateChange(t))}}},[this.$createElement(v["a"],t<0===!this.$vuetify.rtl?this.prevIcon:this.nextIcon)])},calculateChange:function(t){var e=String(this.value).split("-").map(Number),i=Object($["a"])(e,2),a=i[0],n=i[1];return null==n?"".concat(a+t):B(String(this.value),t)},genHeader:function(){var t=this,e=!this.disabled&&(this.color||"accent"),i=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))])]),a=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}},[a])}},render:function(){return this.$createElement("div",{staticClass:"v-date-picker-header",class:Object(f["a"])({"v-date-picker-header--disabled":this.disabled},this.themeClasses)},[this.genBtn(-1),this.genHeader(),this.genBtn(1)])}}),A=(i("2af1"),i("4d90"),i("2909")),j=(i("2532"),i("c982"),i("c3f0"));i("13d5"),i("b64b"),i("8a79");function F(t,e,i){return Object.keys(t.$listeners).reduce((function(a,n){return n.endsWith(e)&&(a[n.slice(0,-e.length)]=function(e){return t.$emit(n,i,e)}),a}),{})}function I(t,e){return Object.keys(t.$listeners).reduce((function(i,a){return a.endsWith(e)&&(i[a]=t.$listeners[a]),i}),{})}var _=function(t,e){var i=t.split("-"),a=Object($["a"])(i,3),n=a[0],s=a[1],r=void 0===s?1:s,o=a[2],l=void 0===o?1:o;return"".concat(n,"-").concat(M(r),"-").concat(M(l)).substr(0,{date:10,month:7,year:4}[e])};function P(t,e,i,a){return(!a||a(t))&&(!e||t>=e.substr(0,10))&&(!i||t<=i)}var L=i("d9f7"),V=Object(b["a"])(g["a"],x,C["a"]).extend({directives:{Touch:j["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=t4&&void 0!==arguments[4]&&arguments[4],s=P(t,this.min,this.max,this.allowedDates),r=this.isSelected(t)&&s,o=t===this.current,l=r?this.setBackgroundColor:this.setTextColor,h=(r||o)&&(this.color||"accent");return this.$createElement("button",l(h,{staticClass:"v-btn",class:this.genButtonClasses(s&&!n,e,r,o),attrs:{type:"button"},domProps:{disabled:this.disabled||!s||n},on:this.genButtonEvents(t,s,i)}),[this.$createElement("div",{staticClass:"v-btn__content"},[a(t)]),this.genEvents(t)])},getEventColors:function(t){var e,i=function(t){return Array.isArray(t)?t:[t]},a=[];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?(a=!0!==e?i(e):"string"===typeof this.eventColor?[this.eventColor]:"function"===typeof this.eventColor?i(this.eventColor(t)):Array.isArray(this.eventColor)?this.eventColor:i(this.eventColor[t]),a.filter((function(t){return t}))):[]},genEvents:function(t){var e=this,i=this.getEventColors(t);return i.length?this.$createElement("div",{staticClass:"v-date-picker-table__events"},i.map((function(t){return e.$createElement("div",e.setBackgroundColor(t))}))):null},isValidScroll:function(t,e){var i=e(t.deltaY),a=1===i.split("-").length?"year":"month";return 0===t.deltaY||t.deltaY<0&&(!this.min||i>=_(this.min,a))||t.deltaY>0&&(!this.max||i<=_(this.max,a))},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,i){var a=this,n=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.touch(1,i)},right:function(t){return t.offsetX>15&&a.touch(-1,i)}}};return this.$createElement("div",{staticClass:t,class:Object(f["a"])({"v-date-picker-table--disabled":this.disabled},this.themeClasses),on:!this.disabled&&this.scrollable?{wheel:function(t){t.preventDefault(),a.isValidScroll(t,i)&&a.wheelThrottle(t,i)}}:void 0,directives:[s]},[n])},isSelected:function(t){if(Array.isArray(this.value)){if(this.range&&2===this.value.length){var e=Object(A["a"])(this.value).sort(),i=Object($["a"])(e,2),a=i[0],n=i[1];return a<=t&&t<=n}return-1!==this.value.indexOf(t)}return t===this.value}}});function N(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return t<100&&t>=0?(e=new Date(Date.UTC(t,i,a)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC(t,i,a)),e}function W(t,e,i){var a=7+e-i,n=(7+N(t,0,a).getUTCDay()-e)%7;return-n+a-1}function H(t,e,i,a){var n=[0,31,59,90,120,151,181,212,243,273,304,334][e];return e>1&&z(t)&&n++,n+i}function R(t,e,i){var a=W(t,e,i),n=W(t+1,e,i),s=z(t)?366:365;return(s-a+n)/7}function U(t,e,i,a,n){var s=W(t,a,n),r=Math.ceil((H(t,e,i,a)-s)/7);return r<1?r+R(t-1,a,n):r>R(t,a,n)?r-R(t,a,n):r}function z(t){return t%4===0&&t%100!==0||t%400===0}var Z=Object(b["a"])(V).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||Y(this.currentLocale,{day:"numeric",timeZone:"UTC"},{start:8,length:2})},weekdayFormatter:function(){return this.weekdayFormat||Y(this.currentLocale,{weekday:"narrow",timeZone:"UTC"})},weekDays:function(){var t=this,e=parseInt(this.firstDayOfWeek,10);return this.weekdayFormatter?Object(y["h"])(7).map((function(i){return t.weekdayFormatter("2017-01-".concat(e+i+15))})):Object(y["h"])(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(M(this.displayedMonth+1),"-01T00:00:00+00:00")),e=t.getUTCDay();return(e-parseInt(this.firstDayOfWeek)+7)%7},getWeekNumber:function(t){return U(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(),i=[],a=this.weekDaysBeforeFirstDayOfTheMonth();this.showWeek&&i.push(this.genWeekNumber(this.getWeekNumber(1)));var n=this.displayedMonth?this.displayedYear:this.displayedYear-1,s=(this.displayedMonth+11)%12,r=new Date(this.displayedYear,this.displayedMonth,0).getDate(),o=this.showWeek?8:7;while(a--){var l="".concat(n,"-").concat(M(s+1),"-").concat(M(r-a));i.push(this.$createElement("td",this.showAdjacentMonths?[this.genButton(l,!0,"date",this.formatter,!0)]:[]))}for(a=1;a<=e;a++){var h="".concat(this.displayedYear,"-").concat(M(this.displayedMonth+1),"-").concat(M(a));i.push(this.$createElement("td",[this.genButton(h,!0,"date",this.formatter)])),i.length%o===0&&(t.push(this.genTR(i)),i=[],this.showWeek&&(a=a;n--)t.push(this.genYearItem(n));return t}},render:function(){return this.$createElement("ul",{staticClass:"v-date-picker-years",ref:"years"},this.genYearItems())}})),X=(i("0481"),i("e53c"),i("615b"),i("c995")),G=Object(b["a"])(g["a"],X["a"],C["a"]).extend({name:"v-picker",props:{flat:Boolean,fullWidth:Boolean,landscape:Boolean,noTitle:Boolean,transition:{type:String,default:"fade-transition"},width:{type:[Number,String],default:290}},computed:{computedTitleColor:function(){var t=!this.isDark&&(this.color||"primary");return this.color||t}},methods:{genTitle:function(){return this.$createElement("div",this.setBackgroundColor(this.computedTitleColor,{staticClass:"v-picker__title",class:{"v-picker__title--landscape":this.landscape}}),this.$slots.title)},genBodyTransition:function(){return this.$createElement("transition",{props:{name:this.transition}},this.$slots.default)},genBody:function(){return this.$createElement("div",{staticClass:"v-picker__body",class:Object(f["a"])({"v-picker__body--no-title":this.noTitle},this.themeClasses),style:this.fullWidth?void 0:{width:Object(y["g"])(this.width)}},[this.genBodyTransition()])},genActions:function(){return this.$createElement("div",{staticClass:"v-picker__actions v-card__actions",class:{"v-picker__actions--no-title":this.noTitle}},this.$slots.actions)}},render:function(t){return t("div",{staticClass:"v-picker v-card",class:Object(f["a"])(Object(f["a"])({"v-picker--flat":this.flat,"v-picker--landscape":this.landscape,"v-picker--full-width":this.fullWidth},this.themeClasses),this.elevationClasses)},[this.$slots.title?this.genTitle():null,this.genBody(),this.$slots.actions?this.genActions():null])}}),K=G,Q=Object(b["a"])(g["a"],X["a"],C["a"]).extend({name:"picker",props:{flat:Boolean,fullWidth:Boolean,headerColor:String,landscape:Boolean,noTitle:Boolean,width:{type:[Number,String],default:290}},methods:{genPickerTitle:function(){return null},genPickerBody:function(){return null},genPickerActionsSlot:function(){return this.$scopedSlots.default?this.$scopedSlots.default({save:this.save,cancel:this.cancel}):this.$slots.default},genPicker:function(t){var e=[];if(!this.noTitle){var i=this.genPickerTitle();i&&e.push(i)}var a=this.genPickerBody();return a&&e.push(a),e.push(this.$createElement("template",{slot:"actions"},[this.genPickerActionsSlot()])),this.$createElement(K,{staticClass:t,props:{color:this.headerColor||this.color,dark:this.dark,elevation:this.elevation,flat:this.flat,fullWidth:this.fullWidth,landscape:this.landscape,light:this.light,width:this.width,noTitle:this.noTitle}},e)}}}),tt=(i("53ca"),[0,31,28,31,30,31,30,31,31,30,31,30,31]),et=[0,31,29,31,30,31,30,31,31,30,31,30,31];function it(t,e){return z(t)?et[e]:tt[e]}var at=i("d9bd"),nt=Object(b["a"])(x,Q).extend({name:"v-date-picker",props:{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{activePicker:this.type.toUpperCase(),inputDay:null,inputMonth:null,inputYear:null,isReversing:!1,now:e,tableDate:function(){if(t.pickerDate)return t.pickerDate;var i=Object(y["H"])(t.value),a=i[i.length-1]||("string"===typeof t.showCurrent?t.showCurrent:"".concat(e.getFullYear(),"-").concat(e.getMonth()+1));return _(a,"date"===t.type?"month":"year")}()}},computed:{multipleValue:function(){return Object(y["H"])(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?_("".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(M(this.inputMonth+1),"-").concat(M(this.inputDay)):"".concat(this.inputYear,"-").concat(M(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?_(this.min,"month"):null},maxMonth:function(){return this.max?_(this.max,"month"):null},minYear:function(){return this.min?_(this.min,"year"):null},maxYear:function(){return this.max?_(this.max,"year"):null},formatters:function(){return{year:this.yearFormat||Y(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=Y(this.currentLocale,t[this.type],{start:0,length:{date:10,month:7,year:4}[this.type]}),i=function(t){return e(t).replace(/([^\d\s])([\d])/g,(function(t,e,i){return"".concat(e," ").concat(i)})).replace(", ",",
")};return this.landscape?i:e}},watch:{tableDate:function(t,e){var i="month"===this.type?"year":"month";this.isReversing=_(t,i)<_(e,i),this.$emit("update:picker-date",t)},pickerDate:function(t){t?this.tableDate=t:this.lastValue&&"date"===this.type?this.tableDate=_(this.lastValue,"month"):this.lastValue&&"month"===this.type&&(this.tableDate=_(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=_(this.inputDate,"month"===this.type?"year":"month"))},type:function(t){if(this.activePicker=t.toUpperCase(),this.value&&this.value.length){var e=this.multipleValue.map((function(e){return _(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 i=this.multiple?-1===this.multipleValue.indexOf(t)?this.multipleValue.concat([t]):this.multipleValue.filter((function(e){return e!==t})):t;this.$emit("input",i),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(at["c"])("Value must be ".concat(this.isMultiple?"an":"a"," ").concat(e,", got ").concat(t),this)}},isDateAllowed:function(t){return P(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(M((this.tableMonth||0)+1)),this.activePicker="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,it(this.inputYear,this.inputMonth+1))),this.tableDate=t,this.activePicker="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(D,{props:{date:this.value?this.formatters.titleDate(this.isMultiple?this.multipleValue:this.value):"",disabled:this.disabled,readonly:this.readonly,selectingYear:"YEAR"===this.activePicker,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.activePicker=e?"YEAR":t.type.toUpperCase()}}})},genTableHeader:function(){var t=this;return this.$createElement(E,{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.activePicker?this.minMonth:this.minYear,max:"DATE"===this.activePicker?this.maxMonth:this.maxYear,nextAriaLabel:"DATE"===this.activePicker?this.nextMonthAriaLabel:this.nextYearAriaLabel,prevAriaLabel:"DATE"===this.activePicker?this.prevMonthAriaLabel:this.prevYearAriaLabel,prevIcon:this.prevIcon,readonly:this.readonly,value:"DATE"===this.activePicker?"".concat(M(this.tableYear,4),"-").concat(M(this.tableMonth+1)):"".concat(M(this.tableYear,4))},on:{toggle:function(){return t.activePicker="DATE"===t.activePicker?"MONTH":"YEAR"},input:function(e){return t.tableDate=e}}})},genDateTable:function(){var t=this;return this.$createElement(Z,{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(M(this.tableYear,4),"-").concat(M(this.tableMonth+1)),value:this.value,weekdayFormat:this.weekdayFormat},ref:"table",on:Object(f["a"])({input:this.dateClick,"update:table-date":function(e){return t.tableDate=e}},I(this,":date"))})},genMonthTable:function(){var t=this;return this.$createElement(q,{props:{allowedDates:"month"===this.type?this.allowedDates:null,color:this.color,current:this.current?_(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(M(this.tableYear,4))},ref:"table",on:Object(f["a"])({input:this.monthClick,"update:table-date":function(e){return t.tableDate=e}},I(this,":month"))})},genYears:function(){return this.$createElement(J,{props:{color:this.color,format:this.yearFormat,locale:this.locale,min:this.minYear,max:this.maxYear,value:this.tableYear},on:Object(f["a"])({input:this.yearClick},I(this,":year"))})},genPickerBody:function(){var t="YEAR"===this.activePicker?[this.genYears()]:[this.genTableHeader(),"DATE"===this.activePicker?this.genDateTable():this.genMonthTable()];return this.$createElement("div",{key:this.activePicker},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")}}),st=i("ce7e"),rt=i("132d"),ot=i("e449"),lt=i("8e36"),ht=i("0fd9"),ct=i("2fa4"),ut=i("afd9"),dt=i("8654"),pt=Object(l["a"])(o,a,n,!1,null,null,null);e["default"]=pt.exports;c()(pt,{VBtn:u["a"],VCard:d["a"],VCardText:p["c"],VCardTitle:p["d"],VCol:m["a"],VDatePicker:nt,VDivider:st["a"],VIcon:rt["a"],VMenu:ot["a"],VProgressLinear:lt["a"],VRow:ht["a"],VSpacer:ct["a"],VSystemBar:ut["a"],VTextField:dt["a"]})},c982:function(t,e,i){},d951:function(t,e,i){},e53c:function(t,e,i){}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-b2de1140.ceddc6db.js b/www/fhemapp/js/chunk-b2de1140.ceddc6db.js deleted file mode 100644 index 5c7f334c..00000000 --- a/www/fhemapp/js/chunk-b2de1140.ceddc6db.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b2de1140"],{"297c":function(t,e,s){"use strict";s("a9e3");var i=s("2b0e"),a=s("37c6");e["a"]=i["a"].extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress:function(){return!1===this.loading?null:this.$slots.progress||this.$createElement(a["a"],{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}})},"37c6":function(t,e,s){"use strict";var i=s("8e36");e["a"]=i["a"]},"480e":function(t,e,s){"use strict";s("7db0");var i=s("7560");e["a"]=i["a"].extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark:function(){return this.root?this.rootIsDark:i["a"].options.computed.isDark.call(this)}},render:function(){return this.$slots.default&&this.$slots.default.find((function(t){return!t.isComment&&" "!==t.text}))}})},"615b":function(t,e,s){},"6ece":function(t,e,s){},"86eb":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-col",{class:t.setup.size},[s("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[s("v-progress-linear",{attrs:{height:"7",value:t.vals.status.level,color:t.vals.status.color,"background-color":"secondary darken-1"}}),s("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" "),s("v-spacer"),t.app.options.debugMode?s("jsonList",{attrs:{item:t.item}}):t._e()],1),s("v-divider"),s("v-card-subtitle",[t._v(" "+t._s(t.vals.subTitle)+" ")]),s("v-card-text",[s("v-row",t._l(t.vals.list,(function(e){return s("v-col",{key:e.name,staticClass:"col-12 col-md-4 col-lg-4"},[s("div",{staticClass:"text-truncate"},[t._v(" "+t._s(e.name)+" ")]),e.isBar?s("v-progress-linear",{attrs:{height:"7",value:e.value,color:e.color,min:e.min,max:e.max,"background-color":"secondary lighten-4"}}):t._e(),s("div",[t._v(t._s(e.subText))])],1)})),1)],1),t.setup.fhemBtns?s("v-card-actions",[s("v-btn",{staticClass:"mr-2",on:{click:function(e){return t.goTo()}}},[s("v-icon",[t._v("mdi-format-list-bulleted")])],1),s("v-spacer"),s("v-btn",{attrs:{disabled:!t.update},on:{click:t.fhemUpdate}},[t._v(" "+t._s(t.updateText)+" ")]),s("v-btn",{attrs:{disabled:!t.restart},on:{click:t.fhemRestart}},[t._v(" Restart ")])],1):t._e(),s("v-divider"),s("v-system-bar",{attrs:{color:"secondary darken-1"}},[s("v-icon",{staticClass:"ml-0"},[t._v(" "+t._s(t.vals.info.left1Icon)+" ")]),t._v(t._s(t.vals.info.left1Text)+" "),s("v-icon",{staticClass:"ml-2"},[t._v(" "+t._s(t.vals.info.left2Icon)+" ")]),t._v(t._s(t.vals.info.left2Text)+" "),s("v-spacer"),s("v-icon",[t._v(t._s(t.vals.info.mid1Icon))]),t._v(t._s(t.vals.info.mid1Text)+" "),s("v-icon",{staticClass:"ml-2"},[t._v(" "+t._s(t.vals.info.mid2Icon)+" ")]),t._v(t._s(t.vals.info.mid2Text)+" "),s("v-spacer"),s("v-icon",[t._v(t._s(t.vals.info.right1Icon))]),t._v(t._s(t.vals.info.right1Text)+" "),s("v-icon",{staticClass:"ml-2 mr-0"},[t._v(" "+t._s(t.vals.info.right2Icon)+" ")]),t._v(t._s(t.vals.info.right2Text)+" ")],1)],1)],1)},a=[],r=s("1da1"),n=s("b85c"),o=(s("96cf"),s("d81d"),s("b0c0"),s("a434"),s("d3b7"),s("649b")),l={components:{jsonList:o["a"]},props:{item:{type:Object,default:function(){return{name:"sysmon"}}}},data:function(){return{name:"sysmon",app:{options:{updateProcess:!1,debugMode:!1}},setup:{size:"col-12 col-sm-12 col-md-6 col-lg-6",status:{bar:[],error:[]},subTitle:[],main:[],fhemBtns:!0,info:{left1:[],left2:[],mid1:[],mid2:[],right1:[],right2:[]}},vals:{title:"",subTitle:"",status:{level:0,color:"success"},list:[],info:{left1Icon:"",left1Text:"",left2Icon:"",left2Text:"",mid1Icon:"",mid1Text:"",mid2Icon:"",mid2Text:"",right1Icon:"",right1Text:"",right2Icon:"",right2Text:""}},restart:!0,update:!0,updateText:"prüfe updates..."}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var e=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||e,this.setValues(),this.doList()}},setup:{deep:!0,handler:function(){this.setValues(),this.doList()}},"app.options.updateProcess":function(t){t||(this.$fhem.emit("message",{lvl:4,msg:"Update war erfolgreich. Das System sollte neu gestartet werden."}),this.updateText="system aktuell",this.restart=!0)}},mounted:function(){this.app.options=this.$fhem.app.options,this.fhemUpdateCheck();var t=this.$fhem.getEl(this.item,"Options","setup","size"),e=this.$fhem.getEl(this.item,"Options","setup","subTitle"),s=this.$fhem.getEl(this.item,"Options","setup","fhemBtns"),i=this.$fhem.getEl(this.item,"Options","setup","status"),a=this.$fhem.getEl(this.item,"Options","setup","main"),r=this.$fhem.getEl(this.item,"Options","setup","info");t&&(this.setup.size=t),e&&(this.setup.subTitle=e),i&&Object.assign(this.setup.status,i),a&&Object.assign(this.setup.main,a),r&&Object.assign(this.setup.info,r),this.setup.fhemBtns=s},methods:{setValues:function(){var t=this.$fhem.handleVals(this.item,this.setup.status.bar),e=this.$fhem.handleVals(this.item,this.setup.status.error),s=this.$fhem.handleVals(this.item,this.setup.subTitle),i=this.$fhem.handleVals(this.item,this.setup.info.left1),a=this.$fhem.handleVals(this.item,this.setup.info.left2),r=this.$fhem.handleVals(this.item,this.setup.info.mid1),n=this.$fhem.handleVals(this.item,this.setup.info.mid2),o=this.$fhem.handleVals(this.item,this.setup.info.right1),l=this.$fhem.handleVals(this.item,this.setup.info.right2);this.vals.status.level=t[0]||"100",this.vals.status.color=t[1]||"success",this.vals.subTitle=s[0]||"",this.vals.info.left1Icon=i[1]||"",this.vals.info.left1Text=i[0]||"",this.vals.info.left2Icon=a[1]||"",this.vals.info.left2Text=a[0]||"",this.vals.info.mid1Icon=r[1]||"",this.vals.info.mid1Text=r[0]||"",this.vals.info.mid2Icon=n[1]||"",this.vals.info.mid2Text=n[0]||"",this.vals.info.right1Icon=o[1]||"",this.vals.info.right1Text=o[0]||"",this.vals.info.right2Icon=l[1]||"",this.vals.info.right2Text=l[0]||"",e.length>0&&(this.vals.status.level=e[0]||"100",this.vals.status.color=e[1]||"error")},doList:function(){var t,e=Object(n["a"])(this.setup.main);try{for(e.s();!(t=e.n()).done;){var s=t.value,i=this.vals.list.map((function(t){return t.name})).indexOf(s.name),a=this.$fhem.handleVals(this.item,s.bar),r=this.$fhem.handleVals(this.item,s.subText),o={name:s.name,isBar:a.length>0,value:a[0]||0,color:a[1]||"success",min:a[2]||0,max:a[3]||100,subText:r[0]||""};o.isBar&&"success"!=o.color&&(this.vals.status.color=o.color),-1!=i?this.vals.list.splice(i,1,o):this.vals.list.push(o)}}catch(l){e.e(l)}finally{e.f()}},fhemRestart:function(){this.restart=!1,this.$fhem.request({param:"cmd",value:"shutdown restart"})},fhemUpdateCheck:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=new Promise((function(e,s){t.restart=!1,t.update=!1,t.$fhem.checkUpdate().then((function(s){s?(t.updateText="update",t.update=!0):t.updateText="system aktuell",e(s)})).catch((function(e){t.$fhem.emit("message",{type:"error",message:"Updateprüfung fehlgeschlagen.",meta:e}),s()})).finally((function(){t.restart=!0}))})),e.abrupt("return",s);case 2:case"end":return e.stop()}}),e)})))()},fhemUpdate:function(){this.restart=!1,this.update=!1,this.updateText="update läuft...",this.app.options.updateProcess=!0,this.$fhem.request({param:"cmd",value:"update"})},goTo:function(){this.$router.push("syslog")}}},c=l,h=s("2877"),u=s("6544"),d=s.n(u),f=s("8336"),m=s("b0af"),v=s("99d9"),p=s("62ad"),g=s("ce7e"),b=s("132d"),_=s("8e36"),y=s("0fd9"),x=s("2fa4"),k=s("afd9"),$=Object(h["a"])(c,i,a,!1,null,null,null);e["default"]=$.exports;d()($,{VBtn:f["a"],VCard:m["a"],VCardActions:v["a"],VCardSubtitle:v["b"],VCardText:v["c"],VCardTitle:v["d"],VCol:p["a"],VDivider:g["a"],VIcon:b["a"],VProgressLinear:_["a"],VRow:y["a"],VSpacer:x["a"],VSystemBar:k["a"]})},"8e36":function(t,e,s){"use strict";var i=s("5530"),a=s("ade3"),r=(s("a9e3"),s("c7cd"),s("6ece"),s("0789")),n=s("a9ad"),o=s("fe6c"),l=s("a452"),c=s("7560"),h=s("80d2"),u=s("58df"),d=Object(u["a"])(n["a"],Object(o["b"])(["absolute","fixed","top","bottom"]),l["a"],c["a"]);e["a"]=d.extend({name:"v-progress-linear",props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:4},indeterminate:Boolean,query:Boolean,reverse:Boolean,rounded:Boolean,stream:Boolean,striped:Boolean,value:{type:[Number,String],default:0}},data:function(){return{internalLazyValue:this.value||0}},computed:{__cachedBackground:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle}))},__cachedBar:function(){return this.$createElement(this.computedTransition,[this.__cachedBarType])},__cachedBarType:function(){return this.indeterminate?this.__cachedIndeterminate:this.__cachedDeterminate},__cachedBuffer:function(){return this.$createElement("div",{staticClass:"v-progress-linear__buffer",style:this.styles})},__cachedDeterminate:function(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__determinate",style:{width:Object(h["g"])(this.normalizedValue,"%")}}))},__cachedIndeterminate:function(){return this.$createElement("div",{staticClass:"v-progress-linear__indeterminate",class:{"v-progress-linear__indeterminate--active":this.active}},[this.genProgressBar("long"),this.genProgressBar("short")])},__cachedStream:function(){return this.stream?this.$createElement("div",this.setTextColor(this.color,{staticClass:"v-progress-linear__stream",style:{width:Object(h["g"])(100-this.normalizedBuffer,"%")}})):null},backgroundStyle:function(){var t,e=null==this.backgroundOpacity?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity);return t={opacity:e},Object(a["a"])(t,this.isReversed?"right":"left",Object(h["g"])(this.normalizedValue,"%")),Object(a["a"])(t,"width",Object(h["g"])(this.normalizedBuffer-this.normalizedValue,"%")),t},classes:function(){return Object(i["a"])({"v-progress-linear--absolute":this.absolute,"v-progress-linear--fixed":this.fixed,"v-progress-linear--query":this.query,"v-progress-linear--reactive":this.reactive,"v-progress-linear--reverse":this.isReversed,"v-progress-linear--rounded":this.rounded,"v-progress-linear--striped":this.striped},this.themeClasses)},computedTransition:function(){return this.indeterminate?r["c"]:r["e"]},isReversed:function(){return this.$vuetify.rtl!==this.reverse},normalizedBuffer:function(){return this.normalize(this.bufferValue)},normalizedValue:function(){return this.normalize(this.internalLazyValue)},reactive:function(){return Boolean(this.$listeners.change)},styles:function(){var t={};return this.active||(t.height=0),this.indeterminate||100===parseFloat(this.normalizedBuffer)||(t.width=Object(h["g"])(this.normalizedBuffer,"%")),t}},methods:{genContent:function(){var t=Object(h["s"])(this,"default",{value:this.internalLazyValue});return t?this.$createElement("div",{staticClass:"v-progress-linear__content"},t):null},genListeners:function(){var t=this.$listeners;return this.reactive&&(t.click=this.onClick),t},genProgressBar:function(t){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:Object(a["a"])({},t,!0)}))},onClick:function(t){if(this.reactive){var e=this.$el.getBoundingClientRect(),s=e.width;this.internalValue=t.offsetX/s*100}},normalize:function(t){return t<0?0:t>100?100:parseFloat(t)}},render:function(t){var e={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,style:{bottom:this.bottom?0:void 0,height:this.active?Object(h["g"])(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return t("div",e,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}})},"99d9":function(t,e,s){"use strict";s.d(e,"a",(function(){return r})),s.d(e,"b",(function(){return n})),s.d(e,"c",(function(){return o})),s.d(e,"d",(function(){return l}));var i=s("b0af"),a=s("80d2"),r=Object(a["i"])("v-card__actions"),n=Object(a["i"])("v-card__subtitle"),o=Object(a["i"])("v-card__text"),l=Object(a["i"])("v-card__title");i["a"]},b0af:function(t,e,s){"use strict";var i=s("5530"),a=(s("a9e3"),s("0481"),s("615b"),s("10d2")),r=s("297c"),n=s("1c87"),o=s("58df");e["a"]=Object(o["a"])(r["a"],n["a"],a["a"]).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes:function(){return Object(i["a"])(Object(i["a"])({"v-card":!0},n["a"].options.computed.classes.call(this)),{},{"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised},a["a"].options.computed.classes.call(this))},styles:function(){var t=Object(i["a"])({},a["a"].options.computed.styles.call(this));return this.img&&(t.background='url("'.concat(this.img,'") center center / cover no-repeat')),t}},methods:{genProgress:function(){var t=r["a"].options.methods.genProgress.call(this);return t?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[t]):null}},render:function(t){var e=this.generateRouteLink(),s=e.tag,i=e.data;return i.style=this.styles,this.isClickable&&(i.attrs=i.attrs||{},i.attrs.tabindex=0),t(s,this.setBackgroundColor(this.color,i),[this.genProgress(),this.$slots.default])}})},e4d3:function(t,e,s){"use strict";var i=s("2b0e");e["a"]=i["a"].extend({name:"returnable",props:{returnValue:null},data:function(){return{isActive:!1,originalValue:null}},watch:{isActive:function(t){t?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save:function(t){var e=this;this.originalValue=t,setTimeout((function(){e.isActive=!1}))}}})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-d4e16e04.70c63a71.js b/www/fhemapp/js/chunk-d4e16e04.70c63a71.js deleted file mode 100644 index 82810056..00000000 --- a/www/fhemapp/js/chunk-d4e16e04.70c63a71.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d4e16e04"],{"169a":function(e,t,n){"use strict";var r=n("5530"),i=n("2909"),o=n("ade3"),s=(n("a9e3"),n("498a"),n("caad"),n("2532"),n("7db0"),n("368e"),n("480e")),a=n("4ad4"),c=n("b848"),l=n("75eb"),u=n("e707"),d=n("e4d3"),h=n("21be"),f=n("f2e7"),p=n("a293"),v=n("58df"),m=n("d9bd"),b=n("80d2"),y=Object(v["a"])(a["a"],c["a"],l["a"],u["a"],d["a"],h["a"],f["a"]);t["a"]=y.extend({name:"v-dialog",directives:{ClickOutside:p["a"]},props:{dark:Boolean,disabled:Boolean,fullscreen:Boolean,light:Boolean,maxWidth:{type:[String,Number],default:"none"},noClickAnimation:Boolean,origin:{type:String,default:"center center"},persistent:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,transition:{type:[String,Boolean],default:"dialog-transition"},width:{type:[String,Number],default:"auto"}},data:function(){return{activatedBy:null,animate:!1,animateTimeout:-1,isActive:!!this.value,stackMinZIndex:200,previousActiveElement:null}},computed:{classes:function(){var e;return e={},Object(o["a"])(e,"v-dialog ".concat(this.contentClass).trim(),!0),Object(o["a"])(e,"v-dialog--active",this.isActive),Object(o["a"])(e,"v-dialog--persistent",this.persistent),Object(o["a"])(e,"v-dialog--fullscreen",this.fullscreen),Object(o["a"])(e,"v-dialog--scrollable",this.scrollable),Object(o["a"])(e,"v-dialog--animated",this.animate),e},contentClasses:function(){return{"v-dialog__content":!0,"v-dialog__content--active":this.isActive}},hasActivator:function(){return Boolean(!!this.$slots.activator||!!this.$scopedSlots.activator)}},watch:{isActive:function(e){var t;e?(this.show(),this.hideScroll()):(this.removeOverlay(),this.unbind(),null==(t=this.previousActiveElement)||t.focus())},fullscreen:function(e){this.isActive&&(e?(this.hideScroll(),this.removeOverlay(!1)):(this.showScroll(),this.genOverlay()))}},created:function(){this.$attrs.hasOwnProperty("full-width")&&Object(m["e"])("full-width",this)},beforeMount:function(){var e=this;this.$nextTick((function(){e.isBooted=e.isActive,e.isActive&&e.show()}))},beforeDestroy:function(){"undefined"!==typeof window&&this.unbind()},methods:{animateClick:function(){var e=this;this.animate=!1,this.$nextTick((function(){e.animate=!0,window.clearTimeout(e.animateTimeout),e.animateTimeout=window.setTimeout((function(){return e.animate=!1}),150)}))},closeConditional:function(e){var t=e.target;return!(this._isDestroyed||!this.isActive||this.$refs.content.contains(t)||this.overlay&&t&&!this.overlay.$el.contains(t))&&this.activeZIndex>=this.getMaxZIndex()},hideScroll:function(){this.fullscreen?document.documentElement.classList.add("overflow-y-hidden"):u["a"].options.methods.hideScroll.call(this)},show:function(){var e=this;!this.fullscreen&&!this.hideOverlay&&this.genOverlay(),this.$nextTick((function(){e.$nextTick((function(){e.previousActiveElement=document.activeElement,e.$refs.content.focus(),e.bind()}))}))},bind:function(){window.addEventListener("focusin",this.onFocusin)},unbind:function(){window.removeEventListener("focusin",this.onFocusin)},onClickOutside:function(e){this.$emit("click:outside",e),this.persistent?this.noClickAnimation||this.animateClick():this.isActive=!1},onKeydown:function(e){if(e.keyCode===b["x"].esc&&!this.getOpenDependents().length)if(this.persistent)this.noClickAnimation||this.animateClick();else{this.isActive=!1;var t=this.getActivator();this.$nextTick((function(){return t&&t.focus()}))}this.$emit("keydown",e)},onFocusin:function(e){if(e&&this.retainFocus){var t=e.target;if(t&&![document,this.$refs.content].includes(t)&&!this.$refs.content.contains(t)&&this.activeZIndex>=this.getMaxZIndex()&&!this.getOpenDependentElements().some((function(e){return e.contains(t)}))){var n=this.$refs.content.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),r=Object(i["a"])(n).find((function(e){return!e.hasAttribute("disabled")}));r&&r.focus()}}},genContent:function(){var e=this;return this.showLazyContent((function(){return[e.$createElement(s["a"],{props:{root:!0,light:e.light,dark:e.dark}},[e.$createElement("div",{class:e.contentClasses,attrs:Object(r["a"])({role:"document",tabindex:e.isActive?0:void 0},e.getScopeIdAttrs()),on:{keydown:e.onKeydown},style:{zIndex:e.activeZIndex},ref:"content"},[e.genTransition()])])]}))},genTransition:function(){var e=this.genInnerContent();return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,appear:!0}},[e]):e},genInnerContent:function(){var e={class:this.classes,ref:"dialog",directives:[{name:"click-outside",value:{handler:this.onClickOutside,closeConditional:this.closeConditional,include:this.getOpenDependentElements}},{name:"show",value:this.isActive}],style:{transformOrigin:this.origin}};return this.fullscreen||(e.style=Object(r["a"])(Object(r["a"])({},e.style),{},{maxWidth:"none"===this.maxWidth?void 0:Object(b["g"])(this.maxWidth),width:"auto"===this.width?void 0:Object(b["g"])(this.width)})),this.$createElement("div",e,this.getContentSlot())}},render:function(e){return e("div",{staticClass:"v-dialog__container",class:{"v-dialog__container--attached":""===this.attach||!0===this.attach||"attach"===this.attach},attrs:{role:"dialog"}},[this.genActivator(),this.genContent()])}})},"368e":function(e,t,n){},"649b":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"text-center"},[n("v-dialog",{scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,i=t.attrs;return[n("v-btn",e._g(e._b({attrs:{small:"",icon:""}},"v-btn",i,!1),r),[n("v-icon",{attrs:{small:""}},[e._v(" mdi-code-json ")])],1)]}}]),model:{value:e.dialog,callback:function(t){e.dialog=t},expression:"dialog"}},[n("v-card",[n("v-card-title",{staticClass:"headline secondary"},[n("v-btn",{attrs:{icon:""},on:{click:function(t){e.deep=e.deep>1?1:5}}},[n("v-icon",[e._v("mdi-file-tree-outline")])],1),n("v-spacer"),e._v(" "+e._s(e.item.Name)+" "),n("v-spacer"),n("v-btn",{attrs:{icon:""},on:{click:function(t){e.dialog=!1}}},[n("v-icon",[e._v("mdi-close")])],1)],1),n("v-divider"),n("v-card-text",{staticClass:"secondary lighten-2"},[n("vue-json-pretty",{attrs:{"show-line":!1,deep:e.deep,data:e.item}})],1)],1)],1)],1)},i=[],o=n("838b"),s=n.n(o),a=(n("b83f"),{props:{item:{type:Object,default:function(){return{name:"json"}}}},data:function(){return{dialog:!1,deep:1}},components:{VueJsonPretty:s.a}}),c=a,l=n("2877"),u=n("6544"),d=n.n(u),h=n("8336"),f=n("b0af"),p=n("99d9"),v=n("169a"),m=n("ce7e"),b=n("132d"),y=n("2fa4"),g=Object(l["a"])(c,r,i,!1,null,null,null);t["a"]=g.exports;d()(g,{VBtn:h["a"],VCard:f["a"],VCardText:p["c"],VCardTitle:p["d"],VDialog:v["a"],VDivider:m["a"],VIcon:b["a"],VSpacer:y["a"]})},8308:function(e,t,n){},"838b":function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=67)}([function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(25)("wks"),i=n(27),o=n(2).Symbol,s="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=s&&o[e]||(s?o:i)("Symbol."+e))}).store=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){e.exports=!n(8)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(2),i=n(0),o=n(19),s=n(5),a=n(9),c=function(e,t,n){var l,u,d,h=e&c.F,f=e&c.G,p=e&c.S,v=e&c.P,m=e&c.B,b=e&c.W,y=f?i:i[t]||(i[t]={}),g=y.prototype,w=f?r:p?r[t]:(r[t]||{}).prototype;for(l in f&&(n=t),n)(u=!h&&w&&void 0!==w[l])&&a(y,l)||(d=u?w[l]:n[l],y[l]=f&&"function"!=typeof w[l]?n[l]:m&&u?o(d,r):b&&w[l]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):v&&"function"==typeof d?o(Function.call,d):d,v&&((y.virtual||(y.virtual={}))[l]=d,e&c.R&&g&&!g[l]&&s(g,l,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){var r=n(6),i=n(13);e.exports=n(3)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(7),i=n(36),o=n(37),s=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(12);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(15);e.exports=function(e){return Object(r(e))}},function(e,t,n){e.exports={default:n(62),__esModule:!0}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(39),i=n(28);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(25)("keys"),i=n(27);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){e.exports={}},function(e,t,n){var r=n(35);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(12),i=n(2).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(22),i=n(15);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(23);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(16),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(0),i=n(2),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(26)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(6).f,i=n(9),o=n(1)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){e.exports={default:n(33),__esModule:!0}},function(e){e.exports=JSON.parse('{"name":"vue-json-pretty","version":"1.7.1","description":"A JSON tree view component that is easy to use and also supports data selection.","author":"leezng ","main":"lib/vue-json-pretty.js","scripts":{"dev":"node build/dev-server.js","build":"node build/build.js","build:example":"cross-env EXAMPLE_ENV=true node build/build.js","e2e":"node test/e2e/runner.js","test":"npm run e2e","lint":"eslint --ext .js,.vue src test/e2e/specs example"},"repository":{"type":"git","url":"git@github.com:leezng/vue-json-pretty.git"},"homepage":"https://leezng.github.io/vue-json-pretty","keywords":["vue","json","format","pretty","vue-component"],"license":"MIT","bugs":{"url":"https://github.com/leezng/vue-json-pretty/issues"},"devDependencies":{"autoprefixer":"^7.1.2","babel-core":"^6.26.3","babel-loader":"7","babel-plugin-transform-runtime":"^6.23.0","babel-preset-env":"^1.7.0","babel-preset-stage-2":"^6.24.1","chalk":"^2.0.1","clean-webpack-plugin":"^3.0.0","connect-history-api-fallback":"^1.3.0","copy-webpack-plugin":"^6.0.2","cross-env":"^7.0.2","cross-spawn":"^5.0.1","css-loader":"^0.28.0","cssnano":"^3.10.0","eslint":"^7.3.1","eslint-friendly-formatter":"^4.0.1","eslint-loader":"^4.0.2","eslint-plugin-vue":"^6.2.2","eventsource-polyfill":"^0.9.6","express":"^4.17.1","file-loader":"^6.0.0","friendly-errors-webpack-plugin":"^1.7.0","html-webpack-plugin":"^4.3.0","http-proxy-middleware":"^0.17.3","less":"^3.11.3","less-loader":"^6.1.2","mini-css-extract-plugin":"^0.9.0","nightwatch":"^1.0.19","opn":"^5.1.0","optimize-css-assets-webpack-plugin":"^5.0.3","selenium-server":"^3.0.1","semver":"^5.3.0","shelljs":"^0.7.6","url-loader":"^4.1.0","vue":"^2.6.11","vue-loader":"^14.2.4","vue-style-loader":"^4.1.2","vue-template-compiler":"^2.6.11","webpack":"^4.43.0","webpack-bundle-analyzer":"^3.8.0","webpack-dev-middleware":"^3.7.2","webpack-hot-middleware":"^2.25.0","webpack-merge":"^4.1.0"},"engines":{"node":">= 10.0.0","npm":">= 5.0.0"},"browserslist":["> 1%","last 10 versions","not ie <= 11"],"files":["lib"],"dependencies":{}}')},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(44),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);tu;)for(var f,p=c(arguments[u++]),v=d?i(p).concat(d(p)):i(p),m=v.length,b=0;m>b;)f=v[b++],r&&!h.call(p,f)||(n[f]=p[f]);return n}:l},function(e,t,n){var r=n(9),i=n(21),o=n(40)(!1),s=n(17)("IE_PROTO");e.exports=function(e,t){var n,a=i(e),c=0,l=[];for(n in a)n!=s&&r(a,n)&&l.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){var r=n(21),i=n(24),o=n(41);e.exports=function(e){return function(t,n,s){var a,c=r(t),l=i(c.length),u=o(s,l);if(e&&n!=n){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(16),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){e.exports={default:n(45),__esModule:!0}},function(e,t,n){n(46),n(55),e.exports=n(0).Array.from},function(e,t,n){"use strict";var r=n(47)(!0);n(48)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(16),i=n(15);e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),c=r(n),l=a.length;return c<0||c>=l?e?"":void 0:(o=a.charCodeAt(c))<55296||o>56319||c+1===l||(s=a.charCodeAt(c+1))<56320||s>57343?e?a.charAt(c):o:e?a.slice(c,c+2):s-56320+(o-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(26),i=n(4),o=n(49),s=n(5),a=n(18),c=n(50),l=n(29),u=n(54),d=n(1)("iterator"),h=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,p,v,m,b){c(n,t,p);var y,g,w,_=function(e){if(!h&&e in j)return j[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},x=t+" Iterator",k="values"==v,C=!1,j=e.prototype,O=j[d]||j["@@iterator"]||v&&j[v],S=O||_(v),A=v?k?_("entries"):S:void 0,B="Array"==t&&j.entries||O;if(B&&(w=u(B.call(new e)))!==Object.prototype&&w.next&&(l(w,x,!0),r||"function"==typeof w[d]||s(w,d,f)),k&&O&&"values"!==O.name&&(C=!0,S=function(){return O.call(this)}),r&&!b||!h&&!C&&j[d]||s(j,d,S),a[t]=S,a[x]=f,v)if(y={values:k?S:_("values"),keys:m?S:_("keys"),entries:A},b)for(g in y)g in j||o(j,g,y[g]);else i(i.P+i.F*(h||C),t,y);return y}},function(e,t,n){e.exports=n(5)},function(e,t,n){"use strict";var r=n(51),i=n(13),o=n(29),s={};n(5)(s,n(1)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(7),i=n(52),o=n(28),s=n(17)("IE_PROTO"),a=function(){},c=function(){var e,t=n(20)("iframe"),r=o.length;for(t.style.display="none",n(53).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("