diff --git a/src/components/TemplDefault.vue b/src/components/TemplDefault.vue index 57350f15..a703594d 100644 --- a/src/components/TemplDefault.vue +++ b/src/components/TemplDefault.vue @@ -224,7 +224,7 @@ {{ vals.info.left1Icon }} {{ vals.info.left1Text }} - {{ vals.info.left2Icon }}{{ vals.info.left2Text }} + {{ vals.info.left2Icon }}{{ vals.info.left2Text }} {{ vals.info.mid1Icon }}{{ vals.info.mid1Text }} @@ -232,7 +232,7 @@ {{ vals.info.mid2Text }} {{ vals.info.right1Icon }}{{ vals.info.right1Text }} - + {{ vals.info.right2Icon }} {{ vals.info.right2Text }} diff --git a/src/components/TemplPanel.vue b/src/components/TemplPanel.vue index 053d2eb4..44426914 100644 --- a/src/components/TemplPanel.vue +++ b/src/components/TemplPanel.vue @@ -119,7 +119,7 @@ {{ vals.info.left1Icon }} {{ vals.info.left1Text }} - {{ vals.info.left2Icon }}{{ vals.info.left2Text }} + {{ vals.info.left2Icon }}{{ vals.info.left2Text }} {{ vals.info.mid1Icon }}{{ vals.info.mid1Text }} @@ -127,7 +127,7 @@ {{ vals.info.mid2Text }} {{ vals.info.right1Icon }}{{ vals.info.right1Text }} - + {{ vals.info.right2Icon }} {{ vals.info.right2Text }} diff --git a/src/components/TemplSysmon.vue b/src/components/TemplSysmon.vue index c3a83b7f..a2fc6290 100644 --- a/src/components/TemplSysmon.vue +++ b/src/components/TemplSysmon.vue @@ -73,7 +73,7 @@ {{ vals.info.left1Icon }} {{ vals.info.left1Text }} - {{ vals.info.left2Icon }}{{ vals.info.left2Text }} + {{ vals.info.left2Icon }}{{ vals.info.left2Text }} {{ vals.info.mid1Icon }}{{ vals.info.mid1Text }} @@ -81,7 +81,7 @@ {{ vals.info.mid2Text }} {{ vals.info.right1Icon }}{{ vals.info.right1Text }} - + {{ vals.info.right2Icon }} {{ vals.info.right2Text }} diff --git a/www/fhemapp/index.html b/www/fhemapp/index.html index cbf02b6e..80626d96 100644 --- a/www/fhemapp/index.html +++ b/www/fhemapp/index.html @@ -1 +1 @@ -fhemapp
\ No newline at end of file +fhemapp
\ No newline at end of file diff --git a/www/fhemapp/js/app.cffb571f.js b/www/fhemapp/js/app.c4f14090.js similarity index 99% rename from www/fhemapp/js/app.cffb571f.js rename to www/fhemapp/js/app.c4f14090.js index ac3f2f79..63501ff9 100644 --- a/www/fhemapp/js/app.cffb571f.js +++ b/www/fhemapp/js/app.c4f14090.js @@ -1 +1 @@ -(function(e){function t(t){for(var a,s,o=t[0],c=t[1],p=t[2],u=0,l=[];u0?(this.type=this.msgList[0].type,this.message=this.msgList[0].message,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={type:"warning",message:"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)}}}),u=p,l=n("2877"),d=n("6544"),h=n.n(d),f=n("0798"),m=n("8336"),v=n("62ad"),g=n("132d"),b=n("0fd9"),y=Object(l["a"])(u,o,c,!1,null,null,null),k=y.exports;h()(y,{VAlert:f["a"],VBtn:m["a"],VCol:v["a"],VIcon:g["a"],VRow:b["a"]});var O={components:{Broadcaster:k},data:function(){return{drawer:null,appBarColor:"primary",app:{options:{loading:!1,reloadBtn:!1,clock:null,date:null},session:{connect:!1},data:{roomList:[],groupList:[],header:""}},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(){var e=this;this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data,this.$fhem.on("connect",(function(){return e.loadRoutes()})),this.$fhem.init(),this.loadRoutes(),this.app.options.debugMode&&(this.appBarColor="pink darken-4")},methods:{loadRoutes:function(){this.app.session.connect&&(this.$fhem.getRoutes("room"),this.$fhem.getRoutes("group"))},reload:function(){location.reload(!0)},goTo:function(e){var t=e||"/";this.$router.currentRoute.path!=t&&this.$router.push(t)}}},w=O,j=n("7496"),L=n("40dc"),x=n("5bc1"),C=n("cc20"),R=n("a523"),_=n("ce7e"),S=n("adda"),P=n("8860"),E=n("56b0"),D=n("da13"),A=n("5d23"),F=n("34c3"),N=n("f6c4"),V=n("f774"),T=n("a797"),$=n("490a"),M=n("2fa4"),I=n("3a2f"),B=Object(l["a"])(w,r,i,!1,null,null,null),H=B.exports;h()(B,{VApp:j["a"],VAppBar:L["a"],VAppBarNavIcon:x["a"],VBtn:m["a"],VChip:C["a"],VContainer:R["a"],VDivider:_["a"],VIcon:g["a"],VImg:S["a"],VList:P["a"],VListGroup:E["a"],VListItem:D["a"],VListItemContent:A["a"],VListItemIcon:F["a"],VListItemSubtitle:A["b"],VListItemTitle:A["c"],VMain:N["a"],VNavigationDrawer:V["a"],VOverlay:T["a"],VProgressCircular:$["a"],VSpacer:M["a"],VTooltip:I["a"]});n("3ca3"),n("ddb0");var q=n("8c4f");s["a"].use(q["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 q["a"]({mode:"hash",base:"",routes:J}),z=U,G=n("f309"),X=n("0fe0"),W=n.n(X),K=n("fcf4");s["a"].use(G["a"]);var Z={lang:{locales:{de:W.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}}}},Q=new G["a"](Z),Y=n("b85c"),ee=n("1da1"),te=n("53ca"),ne=n("d4ec"),ae=n("bee2"),se=n("262e"),re=n("2caf"),ie=(n("96cf"),n("fb6a"),n("1276"),n("ac1f"),n("5319"),n("13d5"),n("159b"),n("466d"),n("d81d"),n("b680"),n("25f0"),n("99af"),n("4d63"),n("b64b"),n("b0c0"),n("07ac"),n("faa1")),oe=n.n(ie),ce=function(e){Object(se["a"])(n,e);var t=Object(re["a"])(n);function n(){var e;return Object(ne["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,csrf:null,restart:!1,restartCnt:0,logList:[],logLast:{}},options:{lang:"de",debugMode:!1,debugLevel:3,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},templates:[],componentMap:[],data:{roomList:[],groupList:[],deviceList:[],header:""}},e}return Object(ae["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",set:function(e){var t={type:"info",timestamp:Date.now(),timeFlag:null,debugLevel:this.app.options.debugLevel,message:"",icon:"",color:""};Object.assign(t,e);var n=new Date(t.timestamp).toLocaleTimeString(this.app.options.lang),a=new Date(t.timestamp).getMilliseconds();t.timeFlag=n+":"+("000"+a).slice(-3),"error"===t.type&&(t.icon="mdi-alert-outline",t.color="error"),"status"===t.type&&(t.icon="mdi-connection",t.color="info"),"request"===t.type&&(t.icon="mdi-send-circle-outline",t.color="success"),"warning"===t.type&&(t.icon="mdi-help-circle-outline",t.color="warning"),"info"===t.type&&(t.icon="mdi-sync",t.color="success"),"intern"===t.type&&(t.icon="mdi-hexagon-multiple-outline",t.color="warning"),this.app.session.logLast=t,"error"===t.type&&this.emit("message",{type:t.type,message:t.message,meta:t.meta}),this.app.options.logRecord&&t.debugLevel<=this.app.options.debugLevel&&(this.app.session.logList.unshift(t),this.app.session.logList.length>this.app.options.logBuffer&&(this.app.session.logList.length=this.app.options.logBuffer))}},{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:"getEl",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a0&&e.forEach((function(e){e.param&&e.value&&(r+=r?"&":"?",r+=e.param+"="+encodeURIComponent(e.value))})),n+a+s+r}},{key:"getCsrfToken",value:function(){var e=Object(ee["a"])(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=new Promise((function(e,t){n.request({},"csrf").then((function(t){return e(t)})).catch((function(e){return t(e)}))})),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"request",value:function(){var e=Object(ee["a"])(regeneratorRuntime.mark((function e(t,n,s){var r,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=new Promise((function(e,r){var o=[];"csrf"!=n&&o.push({param:"fwcsrf",value:i.app.session.csrf}),"json"!==n&&"csrf"!==n||o.push({param:"XHR",value:"1"}),"object"===Object(te["a"])(t)&&(t.length>0?o.push.apply(o,Object(a["a"])(t)):o.push(t)),"string"===typeof t&&o.push({param:"cmd",value:t});var c=i.createURL(o);i.log={type:"request",message:"Request: "+c,debugLevel:3},fetch(c).then((function(t){if(t.ok)if("csrf"===n){var a=t.headers.get("x-fhem-csrftoken");e("object"===Object(te["a"])(s)?Object.assign(s,{data:a}):a)}else"json"===n?t.json().then((function(t){e("object"===Object(te["a"])(s)?Object.assign(s,{data:t}):t)})):t.text().then((function(t){e("object"===Object(te["a"])(s)?Object.assign(s,{data:t}):t)}))})).catch((function(e){r({error:e,request:c})}))})),e.abrupt("return",r);case 2:case"end":return e.stop()}}),e)})));function t(t,n,a){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=[],s=t.length>this.app.options.maxChartPoints?parseInt(t.length/this.app.options.maxChartPoints):1,r=s,i=0,o=1,c=Object(Y["a"])(t);try{for(c.s();!(n=c.n()).done;){var p=n.value,u=p.split(" "),l=Date.parse(u[0].replace("_","T")),d=parseFloat(u[1]);i+=d,(o>=r||o===t.length)&&(o===t.length&&(s-=r-o),a.push({timestamp:l,value:i/s}),r+=s,i=0),o++}}catch(h){c.e(h)}finally{c.f()}return this.log={type:"intern",message:"handle Chartdata (Lines: "+t.length+")",debugLevel:5},a}},{key:"readLogData",value:function(){var e=Object(ee["a"])(regeneratorRuntime.mark((function e(t){var n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=new Promise((function(e,n){t.defs&&t.defs.length>0?function(){var s,r=[],i=0,o=Object(Y["a"])(t.defs);try{for(o.s();!(s=o.n()).done;){var c=s.value,p=/\(.*\)/.exec(c),u=p?c.replace(p[0],"_").split(":"):c.split(":"),l="get ";l+=u[0]?u[0]:t.deviceName,l+=t.from?" - - "+t.from:"",l+=t.to?" "+t.to:"",l+=p?" "+p[0].replace(/\(|\)/g,""):" 4:"+u[1],a.log={type:"intern",message:"Loading Chartdata - "+l,debugLevel:5},a.request([{param:"cmd",value:l},{param:"XHR",value:"1"}],"text",{id:i}).then((function(n){r.push({id:n.id,data:a.handleLogData(n.data)}),r.length===t.defs.length&&(Object.assign(t,{data:r}),e(t))})).catch((function(e){a.log={type:"error",message:"Fetch data from FHEM Logfile failed.",meta:e,debugLevel:1},n()})),i++}}catch(d){o.e(d)}finally{o.f()}}():(a.log={type:"error",message:"No Definitions for Chart found.",meta:t,debugLevel:1},n())})),e.abrupt("return",n);case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"checkUpdate",value:function(){var e=Object(ee["a"])(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=new Promise((function(e,t){n.request([{param:"cmd",value:"update check"},{param:"XHR",value:"1"}]).then((function(t){var n,a=t.split("\n").splice(2),s=0,r=1,i=Object(Y["a"])(a);try{for(i.s();!(n=i.n()).done;){var o=n.value;o.match("UPD")&&!o.match("excluded")&&s++,r===a.length&&e(s>0),r++}}catch(c){i.e(c)}finally{i.f()}})).catch((function(e){n.log={type:"error",message:"FHEM check for Updates failed.",meta:e,debugLevel:1},t(e)}))})),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getRoutes",value:function(e){var t=this;if(this.app.options.loading=!0,"room"===e||"group"===e){var n=e+"List",a=[];this.app.data[n].splice(0),this.request({param:"cmd",value:"jsonList2 appOptions!= appOptions room group"},"json").then(function(){var n=Object(ee["a"])(regeneratorRuntime.mark((function n(s){var r,i,o,c,p,u,l,d,h,f,m;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=1,i=Object(Y["a"])(s.Results),n.prev=2,i.s();case 4:if((o=i.n()).done){n.next=15;break}return c=o.value,n.next=8,t.createOptions(c);case 8:if(p=n.sent,u=p[e],u&&p.template){l=u.split(","),d=Object(Y["a"])(l);try{for(d.s();!(h=d.n()).done;)f=h.value,m="/devices/"+e+"="+f,-1==a.map((function(e){return e.title})).indexOf(f)&&a.push({title:f,route:m})}catch(v){d.e(v)}finally{d.f()}}r===s.Results.length&&(a.sort((function(e,t){return e.title>t.title?1:t.title>e.title?-1:0})),t.app.data[e+"List"]=Object.assign([],a),t.app.options.loading=!1),r++;case 13:n.next=4;break;case 15:n.next=20;break;case 17:n.prev=17,n.t0=n["catch"](2),i.e(n.t0);case 20:return n.prev=20,i.f(),n.finish(20);case 23:case"end":return n.stop()}}),n,null,[[2,17,20,23]])})));return function(e){return n.apply(this,arguments)}}()).catch((function(n){t.log={type:"error",message:"Loading "+e+"s from FHEM failed.",meta:n,debugLevel:1},t.app.options.loading=!1}))}else this.log={type:"error",message:"Creating Routes failed.",meta:e,debugLevel:1},this.app.options.loading=!1}},{key:"replaceVals",value:function(e,t){for(var n=/-?[0-9]/.exec(t),a=[],s=2;s0){var s,r=Object(Y["a"])(t);try{for(r.s();!(s=r.n()).done;){var i=s.value,o=i.split(":");if(o.length>2){var c=o[0].match(/\./)?o[0].split("."):["Readings",o[0],"Value"],p=this.getEl.apply(this,[e].concat(Object(a["a"])(c)))||this.getEl(e,"Readings",o[0],"Value");if(p){var u=!1;if(isNaN(parseFloat(o[1])))RegExp(o[1]?o[1]:".").test(p)&&(u=!0);else{var l=/-?[0-9]/.exec(p);-1!=l.index&&parseFloat(p.slice(l.index))>=parseFloat(o[1])&&(u=!0)}if(u){n=this.replaceVals(o,p);break}}}}}catch(d){r.e(d)}finally{r.f()}}return n}},{key:"handleStates",value:function(e,t,n){var s=this.getEl(e,"Options","states")||n;if(s){var r,i=Object(Y["a"])(s);try{for(i.s();!(r=i.n()).done;){var o=r.value,c=o.split(":");if(c[0]){var p=c[0].match(/\./)?c[0].split("."):["Readings",c[0],"Value"],u=this.getEl.apply(this,[e].concat(Object(a["a"])(p)));if(u){var l=!1;if(isNaN(parseFloat(c[1]))?RegExp(c[1]?c[1]:".").test(u)&&(l=!0):parseFloat(u)>=parseFloat(c[1])&&(l=!0),l){var d={};c[2]&&(d.mainState=c[0]===c[2]?u:c[2]),c[3]&&(d.mainLevel=c[0]===c[3]?u:c[3]),c[4]&&(d.mainColor=c[4]),c[5]&&(d.systemIcon=c[5]),Object.assign(t,d);break}}}else this.log={type:"error",message:"Wrong Definition for Device-States.",meta:e,debugLevel:1}}}catch(h){i.e(h)}finally{i.f()}}return t}},{key:"createConnected",value:function(){var e=Object(ee["a"])(regeneratorRuntime.mark((function e(t){var n,a,s,r,i,o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n={},!("connected"in t.Options)){e.next=12;break}a=Object.keys(t.Options.connected),s=0,r=a;case 4:if(!(st.Options.sortby?1:t.Options.sortby>e.Options.sortby?-1:0})),t.app.data.deviceList=Object.assign([],s),t.app.options.loading=!1),r++;case 29:n.next=5;break;case 31:n.next=36;break;case 33:n.prev=33,n.t0=n["catch"](3),i.e(n.t0);case 36:return n.prev=36,i.f(),n.finish(36);case 39:case"end":return n.stop()}}),n,null,[[3,33,36,39]])})));return function(e){return n.apply(this,arguments)}}()).catch((function(e){t.log={type:"error",message:"Request to FHEM failed.",meta:e,debugLevel:1},t.app.options.loading=!1}))}},{key:"handleData",value:function(e){var t=JSON.parse(e),n=null;if(!t[2].match("0){var n=t.handleData(e);n&&t.app.data.deviceList.forEach((function(e,a){var s=t.app.data.deviceList[a],r=Object.assign({},s);e.Name===n.Name&&("Readings"===n.devicePart&&t.getEl(r,"Readings",n.param,n.paramPart)&&(r.Readings[n.param][n.paramPart]=n.value),"Attributes"===n.devicePart&&t.getEl(r,"Attributes",n.param)&&(r.Attributes[n.param]=n.value),t.app.data.deviceList.splice(a,1,r)),"Connected"in e&&Object.values(e.Connected).forEach((function(s,i){if(s.Name===n.Name){var o=Object.keys(e.Connected)[i];"Readings"===n.devicePart&&t.getEl(r.Connected[o],"Readings",n.param,n.paramPart)&&(r.Connected[o].Readings[n.param][n.paramPart]=n.value),"Attributes"===n.devicePart&&t.getEl(r.Connected[o],"Attributes",n.param)&&(r.Connected[o].Attributes[n.param]=n.value),t.app.data.deviceList.splice(a,1,r)}}))}))}}))}},{key:"connClose",value:function(){var e=this;if(this.app.session.connect=!1,this.app.session.csrf=null,this.app.session.socket=null,!this.app.session.restart){var t=0==this.app.session.restartCnt?1:3e3;this.log={type:"intern",message:"Restart-Sequence is started. (restart counter: "+this.app.session.restartCnt+" - restart on: "+t+" milliseconds)",debugLevel:5},this.app.session.restart=!0,setTimeout((function(){e.app.session.restart=!1,e.app.session.restartCnt++,e.init()}),t),this.log={type:"status",message:"Connection with FHEM was closed. Try to Reconnect in "+t/1e3+" seconds...",debugLevel:2}}}},{key:"connOpen",value:function(){var e=this;this.app.options.loading=!0,this.app.session.restartCnt=0,this.getCsrfToken().then((function(t){e.app.session.csrf=t,e.app.session.connect=!0,e.emit("connect"),e.log={type:"status",message:"Connection with FHEM is opened.",meta:e.session,debugLevel:2},e.app.options.loading=!1})).catch((function(t){e.app.session.csrf=null,e.app.session.connect=!1,e.log={type:"error",message:"Retrieve csrf-Token failed.",meta:t,debugLevel:1}})).finally((function(){return e.app.options.loading=!1}))}},{key:"setClock",value:function(){var e=new Date;this.app.options.clock=e.toLocaleString(this.app.options.lang,{hour:"2-digit",minute:"2-digit"}),this.app.options.date=e.toLocaleString(this.app.options.lang,{weekday:"long",year:"numeric",month:"long",day:"numeric"})}},{key:"init",value:function(){var e=this,t=[{param:"inform",value:"type=status;filter=.*;fmt=JSON"},{param:"XHR",value:"1"}],n=this.createURL(t).replace(/^http/i,"ws");this.app.socket=new WebSocket(n),this.app.socket.onopen=function(){return e.connOpen()},this.app.socket.onmessage=function(t){return e.doUpdate(t)},this.app.socket.onclose=function(){return e.connClose()},this.setClock(),setInterval((function(){return e.setClock()}),this.app.options.clockInterval)}}]),n}(oe.a),pe=n("1321"),ue=n.n(pe),le=n("a925");function de(){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 s=a[1];t[s]=e(n)}})),t}s["a"].use(le["a"]);var he=new le["a"]({locale:"de",fallbackLocale:"en",messages:de()});s["a"].use(ue.a),s["a"].component("apexchart",ue.a),s["a"].config.productionTip=!1,s["a"].prototype.$fhem=new ce,fetch("./cfg/config.json").then((function(e){return e.json()})).catch((function(e){s["a"].prototype.$fhem.log={type:"error",message:"Loading config.json failed.",meta:e,debugLevel:1}})).then((function(e){var t;e&&(e.connection&&Object.assign(s["a"].prototype.$fhem.app.connection,e.connection),e.options&&Object.assign(s["a"].prototype.$fhem.app.options,e.options),e.custom&&e.custom.length>0&&(t=s["a"].prototype.$fhem.app.templates).push.apply(t,Object(a["a"])(e.custom)),e.theme&&(-1!=e.theme.dark&&Object.assign(Q.framework.theme,{dark:e.theme.dark}),e.theme.themes&&(e.theme.themes.light&&Object.assign(Q.framework.theme.themes.light,e.theme.themes.light),e.theme.themes.dark&&Object.assign(Q.framework.theme.themes.dark,e.theme.themes.dark))));he.locale=s["a"].prototype.$fhem.app.options.lang,s["a"].prototype.$fhem.log={type:"status",message:"Config: "+JSON.stringify(e),debugLevel:2},s["a"].prototype.$fhem.log={type:"status",message:"Connection: "+JSON.stringify(s["a"].prototype.$fhem.app.connection),debugLevel:2},new s["a"]({vuetify:Q,router:z,i18n:he,render:function(e){return e(H)}}).$mount("#app")}))},"6ce2":function(e){e.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Gruppen","room":"Bereiche","dashboard":"Dashboard","system":"System"}}}')},9224:function(e){e.exports=JSON.parse('{"name":"fhemapp","version":"3.12.3","private":true,"author":"jemu75","scripts":{"serve":"vue-cli-service serve","build":"vue-cli-service build","lint":"vue-cli-service lint","i18n:report":"vue-cli-service i18n:report --src \\"./src/**/*.?(js|vue)\\" --locales \\"./src/locales/**/*.json\\""},"dependencies":{"apexcharts":"^3.26.1","core-js":"^3.10.1","typeface-roboto":"^1.1.13","vue":"^2.6.11","vue-apexcharts":"^1.6.1","vue-i18n":"^8.22.3","vue-json-pretty":"^1.7.1","vue-router":"^3.5.1","vuetify":"^2.4.9"},"devDependencies":{"@mdi/font":"^5.9.55","@vue/cli-plugin-babel":"^4.5.12","@vue/cli-plugin-eslint":"^4.5.12","@vue/cli-plugin-router":"^4.5.12","@vue/cli-service":"^4.5.12","babel-eslint":"^10.1.0","eslint":"^6.7.2","eslint-plugin-vue":"^6.2.2","sass":"^1.32.8","sass-loader":"^8.0.0","vue-cli-plugin-i18n":"~2.1.0","vue-cli-plugin-vuetify":"~2.0.9","vue-template-compiler":"^2.6.11","vuetify-loader":"^1.7.2"},"bugs":{"url":"https://github.com/jemu75/fhemApp/issues"},"homepage":"https://github.com/jemu75/fhemApp#readme","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jemu75/fhemApp.git"}}')},c274:function(e,t,n){e.exports=n.p+"img/FHEM_Logo.2d0f7a38.png"},edd4:function(e){e.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Groups","room":"Area","dashboard":"Dashboard","system":"System"}}}')}}); \ No newline at end of file +(function(e){function t(t){for(var a,s,o=t[0],c=t[1],p=t[2],u=0,l=[];u0?(this.type=this.msgList[0].type,this.message=this.msgList[0].message,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={type:"warning",message:"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)}}}),u=p,l=n("2877"),d=n("6544"),h=n.n(d),f=n("0798"),m=n("8336"),v=n("62ad"),g=n("132d"),b=n("0fd9"),y=Object(l["a"])(u,o,c,!1,null,null,null),k=y.exports;h()(y,{VAlert:f["a"],VBtn:m["a"],VCol:v["a"],VIcon:g["a"],VRow:b["a"]});var O={components:{Broadcaster:k},data:function(){return{drawer:null,appBarColor:"primary",app:{options:{loading:!1,reloadBtn:!1,clock:null,date:null},session:{connect:!1},data:{roomList:[],groupList:[],header:""}},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(){var e=this;this.app.session=this.$fhem.app.session,this.app.options=this.$fhem.app.options,this.app.data=this.$fhem.app.data,this.$fhem.on("connect",(function(){return e.loadRoutes()})),this.$fhem.init(),this.loadRoutes(),this.app.options.debugMode&&(this.appBarColor="pink darken-4")},methods:{loadRoutes:function(){this.app.session.connect&&(this.$fhem.getRoutes("room"),this.$fhem.getRoutes("group"))},reload:function(){location.reload(!0)},goTo:function(e){var t=e||"/";this.$router.currentRoute.path!=t&&this.$router.push(t)}}},w=O,j=n("7496"),L=n("40dc"),x=n("5bc1"),C=n("cc20"),R=n("a523"),_=n("ce7e"),S=n("adda"),P=n("8860"),E=n("56b0"),D=n("da13"),A=n("5d23"),F=n("34c3"),N=n("f6c4"),V=n("f774"),T=n("a797"),$=n("490a"),M=n("2fa4"),I=n("3a2f"),B=Object(l["a"])(w,r,i,!1,null,null,null),H=B.exports;h()(B,{VApp:j["a"],VAppBar:L["a"],VAppBarNavIcon:x["a"],VBtn:m["a"],VChip:C["a"],VContainer:R["a"],VDivider:_["a"],VIcon:g["a"],VImg:S["a"],VList:P["a"],VListGroup:E["a"],VListItem:D["a"],VListItemContent:A["a"],VListItemIcon:F["a"],VListItemSubtitle:A["b"],VListItemTitle:A["c"],VMain:N["a"],VNavigationDrawer:V["a"],VOverlay:T["a"],VProgressCircular:$["a"],VSpacer:M["a"],VTooltip:I["a"]});n("3ca3"),n("ddb0");var q=n("8c4f");s["a"].use(q["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 q["a"]({mode:"hash",base:"",routes:J}),z=U,G=n("f309"),X=n("0fe0"),W=n.n(X),K=n("fcf4");s["a"].use(G["a"]);var Z={lang:{locales:{de:W.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}}}},Q=new G["a"](Z),Y=n("b85c"),ee=n("1da1"),te=n("53ca"),ne=n("d4ec"),ae=n("bee2"),se=n("262e"),re=n("2caf"),ie=(n("96cf"),n("fb6a"),n("1276"),n("ac1f"),n("5319"),n("13d5"),n("159b"),n("466d"),n("d81d"),n("b680"),n("25f0"),n("99af"),n("4d63"),n("b64b"),n("b0c0"),n("07ac"),n("faa1")),oe=n.n(ie),ce=function(e){Object(se["a"])(n,e);var t=Object(re["a"])(n);function n(){var e;return Object(ne["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,csrf:null,restart:!1,restartCnt:0,logList:[],logLast:{}},options:{lang:"de",debugMode:!1,debugLevel:3,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},templates:[],componentMap:[],data:{roomList:[],groupList:[],deviceList:[],header:""}},e}return Object(ae["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",set:function(e){var t={type:"info",timestamp:Date.now(),timeFlag:null,debugLevel:this.app.options.debugLevel,message:"",icon:"",color:""};Object.assign(t,e);var n=new Date(t.timestamp).toLocaleTimeString(this.app.options.lang),a=new Date(t.timestamp).getMilliseconds();t.timeFlag=n+":"+("000"+a).slice(-3),"error"===t.type&&(t.icon="mdi-alert-outline",t.color="error"),"status"===t.type&&(t.icon="mdi-connection",t.color="info"),"request"===t.type&&(t.icon="mdi-send-circle-outline",t.color="success"),"warning"===t.type&&(t.icon="mdi-help-circle-outline",t.color="warning"),"info"===t.type&&(t.icon="mdi-sync",t.color="success"),"intern"===t.type&&(t.icon="mdi-hexagon-multiple-outline",t.color="warning"),this.app.session.logLast=t,"error"===t.type&&this.emit("message",{type:t.type,message:t.message,meta:t.meta}),this.app.options.logRecord&&t.debugLevel<=this.app.options.debugLevel&&(this.app.session.logList.unshift(t),this.app.session.logList.length>this.app.options.logBuffer&&(this.app.session.logList.length=this.app.options.logBuffer))}},{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:"getEl",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a0&&e.forEach((function(e){e.param&&e.value&&(r+=r?"&":"?",r+=e.param+"="+encodeURIComponent(e.value))})),n+a+s+r}},{key:"getCsrfToken",value:function(){var e=Object(ee["a"])(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=new Promise((function(e,t){n.request({},"csrf").then((function(t){return e(t)})).catch((function(e){return t(e)}))})),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"request",value:function(){var e=Object(ee["a"])(regeneratorRuntime.mark((function e(t,n,s){var r,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=new Promise((function(e,r){var o=[];"csrf"!=n&&o.push({param:"fwcsrf",value:i.app.session.csrf}),"json"!==n&&"csrf"!==n||o.push({param:"XHR",value:"1"}),"object"===Object(te["a"])(t)&&(t.length>0?o.push.apply(o,Object(a["a"])(t)):o.push(t)),"string"===typeof t&&o.push({param:"cmd",value:t});var c=i.createURL(o);i.log={type:"request",message:"Request: "+c,debugLevel:3},fetch(c).then((function(t){if(t.ok)if("csrf"===n){var a=t.headers.get("x-fhem-csrftoken");e("object"===Object(te["a"])(s)?Object.assign(s,{data:a}):a)}else"json"===n?t.json().then((function(t){e("object"===Object(te["a"])(s)?Object.assign(s,{data:t}):t)})):t.text().then((function(t){e("object"===Object(te["a"])(s)?Object.assign(s,{data:t}):t)}))})).catch((function(e){r({error:e,request:c})}))})),e.abrupt("return",r);case 2:case"end":return e.stop()}}),e)})));function t(t,n,a){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=[],s=t.length>this.app.options.maxChartPoints?parseInt(t.length/this.app.options.maxChartPoints):1,r=s,i=0,o=1,c=Object(Y["a"])(t);try{for(c.s();!(n=c.n()).done;){var p=n.value,u=p.split(" "),l=Date.parse(u[0].replace("_","T")),d=parseFloat(u[1]);i+=d,(o>=r||o===t.length)&&(o===t.length&&(s-=r-o),a.push({timestamp:l,value:i/s}),r+=s,i=0),o++}}catch(h){c.e(h)}finally{c.f()}return this.log={type:"intern",message:"handle Chartdata (Lines: "+t.length+")",debugLevel:5},a}},{key:"readLogData",value:function(){var e=Object(ee["a"])(regeneratorRuntime.mark((function e(t){var n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=new Promise((function(e,n){t.defs&&t.defs.length>0?function(){var s,r=[],i=0,o=Object(Y["a"])(t.defs);try{for(o.s();!(s=o.n()).done;){var c=s.value,p=/\(.*\)/.exec(c),u=p?c.replace(p[0],"_").split(":"):c.split(":"),l="get ";l+=u[0]?u[0]:t.deviceName,l+=t.from?" - - "+t.from:"",l+=t.to?" "+t.to:"",l+=p?" "+p[0].replace(/\(|\)/g,""):" 4:"+u[1],a.log={type:"intern",message:"Loading Chartdata - "+l,debugLevel:5},a.request([{param:"cmd",value:l},{param:"XHR",value:"1"}],"text",{id:i}).then((function(n){r.push({id:n.id,data:a.handleLogData(n.data)}),r.length===t.defs.length&&(Object.assign(t,{data:r}),e(t))})).catch((function(e){a.log={type:"error",message:"Fetch data from FHEM Logfile failed.",meta:e,debugLevel:1},n()})),i++}}catch(d){o.e(d)}finally{o.f()}}():(a.log={type:"error",message:"No Definitions for Chart found.",meta:t,debugLevel:1},n())})),e.abrupt("return",n);case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"checkUpdate",value:function(){var e=Object(ee["a"])(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=new Promise((function(e,t){n.request([{param:"cmd",value:"update check"},{param:"XHR",value:"1"}]).then((function(t){var n,a=t.split("\n").splice(2),s=0,r=1,i=Object(Y["a"])(a);try{for(i.s();!(n=i.n()).done;){var o=n.value;o.match("UPD")&&!o.match("excluded")&&s++,r===a.length&&e(s>0),r++}}catch(c){i.e(c)}finally{i.f()}})).catch((function(e){n.log={type:"error",message:"FHEM check for Updates failed.",meta:e,debugLevel:1},t(e)}))})),e.abrupt("return",t);case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getRoutes",value:function(e){var t=this;if(this.app.options.loading=!0,"room"===e||"group"===e){var n=e+"List",a=[];this.app.data[n].splice(0),this.request({param:"cmd",value:"jsonList2 appOptions!= appOptions room group"},"json").then(function(){var n=Object(ee["a"])(regeneratorRuntime.mark((function n(s){var r,i,o,c,p,u,l,d,h,f,m;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=1,i=Object(Y["a"])(s.Results),n.prev=2,i.s();case 4:if((o=i.n()).done){n.next=15;break}return c=o.value,n.next=8,t.createOptions(c);case 8:if(p=n.sent,u=p[e],u&&p.template){l=u.split(","),d=Object(Y["a"])(l);try{for(d.s();!(h=d.n()).done;)f=h.value,m="/devices/"+e+"="+f,-1==a.map((function(e){return e.title})).indexOf(f)&&a.push({title:f,route:m})}catch(v){d.e(v)}finally{d.f()}}r===s.Results.length&&(a.sort((function(e,t){return e.title>t.title?1:t.title>e.title?-1:0})),t.app.data[e+"List"]=Object.assign([],a),t.app.options.loading=!1),r++;case 13:n.next=4;break;case 15:n.next=20;break;case 17:n.prev=17,n.t0=n["catch"](2),i.e(n.t0);case 20:return n.prev=20,i.f(),n.finish(20);case 23:case"end":return n.stop()}}),n,null,[[2,17,20,23]])})));return function(e){return n.apply(this,arguments)}}()).catch((function(n){t.log={type:"error",message:"Loading "+e+"s from FHEM failed.",meta:n,debugLevel:1},t.app.options.loading=!1}))}else this.log={type:"error",message:"Creating Routes failed.",meta:e,debugLevel:1},this.app.options.loading=!1}},{key:"replaceVals",value:function(e,t){for(var n=/-?[0-9]/.exec(t),a=[],s=2;s0){var s,r=Object(Y["a"])(t);try{for(r.s();!(s=r.n()).done;){var i=s.value,o=i.split(":");if(o.length>2){var c=o[0].match(/\./)?o[0].split("."):["Readings",o[0],"Value"],p=this.getEl.apply(this,[e].concat(Object(a["a"])(c)))||this.getEl(e,"Readings",o[0],"Value");if(p){var u=!1;if(isNaN(parseFloat(o[1])))RegExp(o[1]?o[1]:".").test(p)&&(u=!0);else{var l=/-?[0-9]/.exec(p);-1!=l.index&&parseFloat(p.slice(l.index))>=parseFloat(o[1])&&(u=!0)}if(u){n=this.replaceVals(o,p);break}}}}}catch(d){r.e(d)}finally{r.f()}}return n}},{key:"handleStates",value:function(e,t,n){var s=this.getEl(e,"Options","states")||n;if(s){var r,i=Object(Y["a"])(s);try{for(i.s();!(r=i.n()).done;){var o=r.value,c=o.split(":");if(c[0]){var p=c[0].match(/\./)?c[0].split("."):["Readings",c[0],"Value"],u=this.getEl.apply(this,[e].concat(Object(a["a"])(p)));if(u){var l=!1;if(isNaN(parseFloat(c[1]))?RegExp(c[1]?c[1]:".").test(u)&&(l=!0):parseFloat(u)>=parseFloat(c[1])&&(l=!0),l){var d={};c[2]&&(d.mainState=c[0]===c[2]?u:c[2]),c[3]&&(d.mainLevel=c[0]===c[3]?u:c[3]),c[4]&&(d.mainColor=c[4]),c[5]&&(d.systemIcon=c[5]),Object.assign(t,d);break}}}else this.log={type:"error",message:"Wrong Definition for Device-States.",meta:e,debugLevel:1}}}catch(h){i.e(h)}finally{i.f()}}return t}},{key:"createConnected",value:function(){var e=Object(ee["a"])(regeneratorRuntime.mark((function e(t){var n,a,s,r,i,o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n={},!("connected"in t.Options)){e.next=12;break}a=Object.keys(t.Options.connected),s=0,r=a;case 4:if(!(st.Options.sortby?1:t.Options.sortby>e.Options.sortby?-1:0})),t.app.data.deviceList=Object.assign([],s),t.app.options.loading=!1),r++;case 29:n.next=5;break;case 31:n.next=36;break;case 33:n.prev=33,n.t0=n["catch"](3),i.e(n.t0);case 36:return n.prev=36,i.f(),n.finish(36);case 39:case"end":return n.stop()}}),n,null,[[3,33,36,39]])})));return function(e){return n.apply(this,arguments)}}()).catch((function(e){t.log={type:"error",message:"Request to FHEM failed.",meta:e,debugLevel:1},t.app.options.loading=!1}))}},{key:"handleData",value:function(e){var t=JSON.parse(e),n=null;if(!t[2].match("0){var n=t.handleData(e);n&&t.app.data.deviceList.forEach((function(e,a){var s=t.app.data.deviceList[a],r=Object.assign({},s);e.Name===n.Name&&("Readings"===n.devicePart&&t.getEl(r,"Readings",n.param,n.paramPart)&&(r.Readings[n.param][n.paramPart]=n.value),"Attributes"===n.devicePart&&t.getEl(r,"Attributes",n.param)&&(r.Attributes[n.param]=n.value),t.app.data.deviceList.splice(a,1,r)),"Connected"in e&&Object.values(e.Connected).forEach((function(s,i){if(s.Name===n.Name){var o=Object.keys(e.Connected)[i];"Readings"===n.devicePart&&t.getEl(r.Connected[o],"Readings",n.param,n.paramPart)&&(r.Connected[o].Readings[n.param][n.paramPart]=n.value),"Attributes"===n.devicePart&&t.getEl(r.Connected[o],"Attributes",n.param)&&(r.Connected[o].Attributes[n.param]=n.value),t.app.data.deviceList.splice(a,1,r)}}))}))}}))}},{key:"connClose",value:function(){var e=this;if(this.app.session.connect=!1,this.app.session.csrf=null,this.app.session.socket=null,!this.app.session.restart){var t=0==this.app.session.restartCnt?1:3e3;this.log={type:"intern",message:"Restart-Sequence is started. (restart counter: "+this.app.session.restartCnt+" - restart on: "+t+" milliseconds)",debugLevel:5},this.app.session.restart=!0,setTimeout((function(){e.app.session.restart=!1,e.app.session.restartCnt++,e.init()}),t),this.log={type:"status",message:"Connection with FHEM was closed. Try to Reconnect in "+t/1e3+" seconds...",debugLevel:2}}}},{key:"connOpen",value:function(){var e=this;this.app.options.loading=!0,this.app.session.restartCnt=0,this.getCsrfToken().then((function(t){e.app.session.csrf=t,e.app.session.connect=!0,e.emit("connect"),e.log={type:"status",message:"Connection with FHEM is opened.",meta:e.session,debugLevel:2},e.app.options.loading=!1})).catch((function(t){e.app.session.csrf=null,e.app.session.connect=!1,e.log={type:"error",message:"Retrieve csrf-Token failed.",meta:t,debugLevel:1}})).finally((function(){return e.app.options.loading=!1}))}},{key:"setClock",value:function(){var e=new Date;this.app.options.clock=e.toLocaleString(this.app.options.lang,{hour:"2-digit",minute:"2-digit"}),this.app.options.date=e.toLocaleString(this.app.options.lang,{weekday:"long",year:"numeric",month:"long",day:"numeric"})}},{key:"init",value:function(){var e=this,t=[{param:"inform",value:"type=status;filter=.*;fmt=JSON"},{param:"XHR",value:"1"}],n=this.createURL(t).replace(/^http/i,"ws");this.app.socket=new WebSocket(n),this.app.socket.onopen=function(){return e.connOpen()},this.app.socket.onmessage=function(t){return e.doUpdate(t)},this.app.socket.onclose=function(){return e.connClose()},this.setClock(),setInterval((function(){return e.setClock()}),this.app.options.clockInterval)}}]),n}(oe.a),pe=n("1321"),ue=n.n(pe),le=n("a925");function de(){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 s=a[1];t[s]=e(n)}})),t}s["a"].use(le["a"]);var he=new le["a"]({locale:"de",fallbackLocale:"en",messages:de()});s["a"].use(ue.a),s["a"].component("apexchart",ue.a),s["a"].config.productionTip=!1,s["a"].prototype.$fhem=new ce,fetch("./cfg/config.json").then((function(e){return e.json()})).catch((function(e){s["a"].prototype.$fhem.log={type:"error",message:"Loading config.json failed.",meta:e,debugLevel:1}})).then((function(e){var t;e&&(e.connection&&Object.assign(s["a"].prototype.$fhem.app.connection,e.connection),e.options&&Object.assign(s["a"].prototype.$fhem.app.options,e.options),e.custom&&e.custom.length>0&&(t=s["a"].prototype.$fhem.app.templates).push.apply(t,Object(a["a"])(e.custom)),e.theme&&(-1!=e.theme.dark&&Object.assign(Q.framework.theme,{dark:e.theme.dark}),e.theme.themes&&(e.theme.themes.light&&Object.assign(Q.framework.theme.themes.light,e.theme.themes.light),e.theme.themes.dark&&Object.assign(Q.framework.theme.themes.dark,e.theme.themes.dark))));he.locale=s["a"].prototype.$fhem.app.options.lang,s["a"].prototype.$fhem.log={type:"status",message:"Config: "+JSON.stringify(e),debugLevel:2},s["a"].prototype.$fhem.log={type:"status",message:"Connection: "+JSON.stringify(s["a"].prototype.$fhem.app.connection),debugLevel:2},new s["a"]({vuetify:Q,router:z,i18n:he,render:function(e){return e(H)}}).$mount("#app")}))},"6ce2":function(e){e.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Gruppen","room":"Bereiche","dashboard":"Dashboard","system":"System"}}}')},9224:function(e){e.exports=JSON.parse('{"name":"fhemapp","version":"3.12.3","private":true,"author":"jemu75","scripts":{"serve":"vue-cli-service serve","build":"vue-cli-service build","lint":"vue-cli-service lint","i18n:report":"vue-cli-service i18n:report --src \\"./src/**/*.?(js|vue)\\" --locales \\"./src/locales/**/*.json\\""},"dependencies":{"apexcharts":"^3.26.1","core-js":"^3.10.1","typeface-roboto":"^1.1.13","vue":"^2.6.11","vue-apexcharts":"^1.6.1","vue-i18n":"^8.22.3","vue-json-pretty":"^1.7.1","vue-router":"^3.5.1","vuetify":"^2.4.9"},"devDependencies":{"@mdi/font":"^5.9.55","@vue/cli-plugin-babel":"^4.5.12","@vue/cli-plugin-eslint":"^4.5.12","@vue/cli-plugin-router":"^4.5.12","@vue/cli-service":"^4.5.12","babel-eslint":"^10.1.0","eslint":"^6.7.2","eslint-plugin-vue":"^6.2.2","sass":"^1.32.8","sass-loader":"^8.0.0","vue-cli-plugin-i18n":"~2.1.0","vue-cli-plugin-vuetify":"~2.0.9","vue-template-compiler":"^2.6.11","vuetify-loader":"^1.7.2"},"bugs":{"url":"https://github.com/jemu75/fhemApp/issues"},"homepage":"https://github.com/jemu75/fhemApp#readme","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jemu75/fhemApp.git"}}')},c274:function(e,t,n){e.exports=n.p+"img/FHEM_Logo.2d0f7a38.png"},edd4:function(e){e.exports=JSON.parse('{"app":{"navigation":{"home":"Home","group":"Groups","room":"Area","dashboard":"Dashboard","system":"System"}}}')}}); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-2d0aa92c.b975a83b.js b/www/fhemapp/js/chunk-2d0aa92c.b975a83b.js new file mode 100644 index 00000000..4c2bb338 --- /dev/null +++ b/www/fhemapp/js/chunk-2d0aa92c.b975a83b.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0aa92c"],{"121f":function(t,i,e){"use strict";e.r(i);var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-col",{class:t.setup.size},[e("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[e("v-progress-linear",{attrs:{height:"7",value:t.getLevel,color:t.vals.status.color,"background-color":"secondary darken-1"}}),e("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" "),e("v-spacer"),t.app.options.debugMode?e("jsonList",{attrs:{item:t.item}}):t._e(),t.multiLevel&&t.isActive?e("v-btn",{attrs:{small:"",icon:""},on:{click:function(i){return t.setLevel()}}},[e("v-icon",{attrs:{small:""}},[t._v(" "+t._s(t.multiLevelIcon)+" ")])],1):t._e()],1),e("v-divider"),t.vals.main.slider&&t.isActive?t._e():e("v-card-text",[e("v-row",{attrs:{align:"center"}},[0==t.vals.main.leftMenu.length&&t.vals.main.leftBtn&&t.isActive?e("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e("v-btn",{attrs:{small:"",icon:"",disabled:t.vals.main.leftBtnDisabled},on:{touchstart:function(i){return t.clickStart("left","touch")},touchend:function(i){return t.clickEnd("left","touch")},mousedown:function(i){return t.clickStart("left","mouse")},mouseup:function(i){return t.clickEnd("left","mouse")}}},[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.leftBtn)+" ")])],1)],1):t._e(),t.vals.main.leftMenu.length>0&&t.vals.main.leftBtn&&t.isActive?e("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(i){var s=i.on,n=i.attrs;return[e("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",n,!1),s),[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.leftBtn)+" ")])],1)]}}],null,!1,3898370877)},[e("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[e("v-list-item-group",{attrs:{"active-class":"success--text"}},t._l(t.vals.main.leftMenu,(function(i,s){return e("v-list-item",{key:s,on:{click:function(e){return t.sendCmd(i.cmd)}}},[e("v-list-item-content",[e("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(i.name)+" ")])],1)],1)})),1)],1)],1)],1):t._e(),t.vals.main.leftBtn&&t.isActive?e("v-divider",{attrs:{vertical:""}}):t._e(),e("v-col",{attrs:{align:"center"}},[e("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.vals.main.text)+" ")])]),t.vals.main.text2&&t.isActive?e("v-col",{attrs:{align:"center"}},[e("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.vals.main.text2)+" ")])]):t._e(),t.vals.main.rightBtn&&t.isActive?e("v-divider",{attrs:{vertical:""}}):t._e(),0==t.vals.main.rightMenu.length&&t.vals.main.rightBtn&&t.isActive?e("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e("v-btn",{attrs:{small:"",icon:"",disabled:t.vals.main.rightBtnDisabled},on:{touchstart:function(i){return t.clickStart("right","touch")},touchend:function(i){return t.clickEnd("right","touch")},mousedown:function(i){return t.clickStart("right","mouse")},mouseup:function(i){return t.clickEnd("right","mouse")}}},[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.rightBtn)+" ")])],1)],1):t._e(),t.vals.main.rightMenu.length>0&&t.vals.main.rightBtn&&t.isActive?e("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(i){var s=i.on,n=i.attrs;return[e("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",n,!1),s),[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.rightBtn)+" ")])],1)]}}],null,!1,845781958)},[e("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[e("v-list-item-group",{attrs:{"active-class":"success--text"}},t._l(t.vals.main.rightMenu,(function(i,s){return e("v-list-item",{key:s,on:{click:function(e){return t.sendCmd(i.cmd)}}},[e("v-list-item-content",[e("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(i.name)+" ")])],1)],1)})),1)],1)],1)],1):t._e()],1)],1),t.vals.main.slider&&t.isActive?e("v-card-text",[e("v-slider",{staticClass:"ml-5 mr-5",attrs:{min:t.vals.main.sliderMin,max:t.vals.main.sliderMax,"hide-details":"","thumb-label":"","thumb-size":"48",color:"success",step:t.vals.main.sliderStep},on:{change:t.setSlider},scopedSlots:t._u([{key:"thumb-label",fn:function(i){var s=i.value;return[e("div",{staticClass:"text-h6"},[t._v(" "+t._s(s)+" ")])]}},t.vals.main.leftBtn?{key:"prepend",fn:function(){return[e("v-icon",{on:{click:function(i){return t.clickEnd("left")}}},[t._v(" "+t._s(t.vals.main.leftBtn)+" ")])]},proxy:!0}:null,t.vals.main.rightBtn?{key:"append",fn:function(){return[e("v-icon",{on:{click:function(i){return t.clickEnd("right")}}},[t._v(" "+t._s(t.vals.main.rightBtn)+" ")])]},proxy:!0}:null],null,!0),model:{value:t.vals.main.sliderCurrent,callback:function(i){t.$set(t.vals.main,"sliderCurrent",i)},expression:"vals.main.sliderCurrent"}})],1):t._e(),e("v-divider"),e("v-system-bar",{attrs:{color:"secondary darken-1"}},[e("v-icon",{staticClass:"ml-0"},[t._v(" "+t._s(t.vals.info.left1Icon)+" ")]),t._v(t._s(t.vals.info.left1Text)+" "),e("v-icon",{staticClass:"ml-2"},[t._v(t._s(t.vals.info.left2Icon))]),t._v(t._s(t.vals.info.left2Text)+" "),e("v-spacer"),e("v-icon",[t._v(t._s(t.vals.info.mid1Icon))]),t._v(t._s(t.vals.info.mid1Text)+" "),e("v-icon",{staticClass:"ml-2"},[t._v(" "+t._s(t.vals.info.mid2Icon)+" ")]),t._v(t._s(t.vals.info.mid2Text)+" "),e("v-spacer"),e("v-icon",[t._v(t._s(t.vals.info.right1Icon))]),t._v(t._s(t.vals.info.right1Text)+" "),e("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)},n=[],a=e("b85c"),l=(e("1276"),e("ac1f"),e("466d"),e("5319"),e("a15b"),e("c740"),e("649b")),r={components:{jsonList:l["a"]},props:{item:{type:Object,default:function(){return{name:"default"}}}},data:function(){return{name:"default",app:{options:{debugMode:!1}},setup:{size:"col-12 col-sm-6 col-md-4 col-lg-4",status:{bar:[],error:[]},main:[{leftBtn:"",text:"Template unbekannt",rightBtn:""}],info:{left1:[],left2:[],mid1:[],mid2:[],right1:[],right2:[]}},vals:{title:"",status:{level:0,color:"",invert:!1},main:{leftBtn:"",leftBtnDisabled:!1,leftMenu:[],text:"",text2:"",slider:!1,sliderCurrent:0,sliderPrevent:!1,sliderMin:0,sliderMax:100,sliderStep:1,rightBtn:"",rightBtnDisabled:!1,rightMenu:[]},info:{left1Icon:"",left1Text:"",left2Icon:"",left2Text:"",mid1Icon:"",mid1Text:"",mid2Icon:"",mid2Text:"",right1Icon:"",right1Text:"",right2Icon:"",right2Text:""}},multiLevel:!1,multiLevelIcon:"mdi-swap-vertical",mainLevel:0,isActive:!0,timer:!1,long:!1,pendingClick:0,touchFirst:!1}},computed:{getLevel:function(){return this.vals.status.invert?100-this.vals.status.level:this.vals.status.level}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var i=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||i,this.setValues()}},setup:{deep:!0,handler:function(){this.setValues()}}},mounted:function(){this.app.options=this.$fhem.app.options;var t=this.$fhem.getEl(this.item,"Options","setup","size"),i=this.$fhem.getEl(this.item,"Options","setup","status"),e=this.$fhem.getEl(this.item,"Options","setup","main"),s=this.$fhem.getEl(this.item,"Options","setup","info");t&&(this.setup.size=t),i&&Object.assign(this.setup.status,i),e&&Object.assign(this.setup.main,e),s&&Object.assign(this.setup.info,s),this.setLevel(0)},methods:{sendCmd:function(t,i){var e=this;i?(this.pendingClick&&(clearTimeout(this.pendingClick),this.pendingClick=0),this.pendingClick=setTimeout((function(){e.$fhem.request(t)}),1e3)):this.$fhem.request(t)},updateReading:function(t){var i=t.split(" ");4===i.length&&this.$fhem.getEl(this.item,"Readings",i[2],"Value")&&(this.item.Readings[i[2]].Value=i[3])},createCmd:function(t){var i="";if(t.match("set")){var e=t.split(" ");if(e[1].match("Connected")){var s=e[1].replace("Connected.","");e[1]=this.$fhem.getEl(this.item,"Connected",s,"Internals","NAME"),e[1]?i=e.join(" "):this.log={type:"error",message:"Connected Device not found. "+this.item.Options,debugLevel:1}}else i=t}else i="set "+this.item.Name+" "+t;return i},clickStart:function(t,i){var e=this;this.long=!1,this.$fhem.log={type:"intern",message:"ClickStart: type "+t+":"+i,debugLevel:5},this.touchFirst&&"mouse"===i||("touch"===i&&(this.touchFirst=!0),this.timer=setInterval((function(){e.long=!0;var i=e.setup.main[e.mainLevel][t+"Long"];if(e.$fhem.log={type:"intern",message:"ClickEvent: Long ["+i+"]",debugLevel:5},i){var s=e.$fhem.handleVals(e.item,i);if(s[0]){var n=e.createCmd(s[0]);e.sendCmd(n),e.timer=clearInterval(e.timer)}}}),1e3))},clickEnd:function(t,i){if(this.$fhem.log={type:"intern",message:"ClickEnd: type "+t+":"+i,debugLevel:5},!this.touchFirst||"mouse"!==i){"touch"===i&&(this.touchFirst=!0),this.timer=clearInterval(this.timer);var e=this.setup.main[this.mainLevel][t+(this.long?"LongRelease":"Click")];if(this.$fhem.log={type:"intern",message:"ClickEvent: "+(this.long?"LongRelease":"Click")+" ["+e+"]",debugLevel:5},e){var s=this.$fhem.handleVals(this.item,e);if(s[0]){this.vals.main.sliderPrevent=!1;var n=this.createCmd(s[0]),a=-1!=e.findIndex((function(t){return t.match("%i")}));!this.long&&a&&this.updateReading(n),this.sendCmd(n,a)}}}},setSlider:function(t){var i=this.setup.main[this.mainLevel].slider;if(i){var e=this.$fhem.handleVals(this.item,i);if(e[0]){this.vals.main.sliderPrevent=!0;var s=this.createCmd(e[0]);s=s.replace("%v",t),this.sendCmd(s)}}},createMenu:function(t){var i=[];if(t&&t.length>0){var e,s=Object(a["a"])(t);try{for(s.s();!(e=s.n()).done;){var n=e.value,l=n.split(":");if(l.length>1){var r=this.createCmd(l[1]);i.push({name:l[0],cmd:r})}}}catch(h){s.e(h)}finally{s.f()}}return i},setLevel:function(t){isNaN(t)?(this.mainLevel++,this.mainLevel>this.setup.main.length-1&&(this.mainLevel=0)):(this.multiLevel=this.setup.main.length>1,this.mainLevel=t),this.vals.main.leftBtn=this.setup.main[this.mainLevel].leftBtn,this.vals.main.rightBtn=this.setup.main[this.mainLevel].rightBtn;var i=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text),e=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text2),s=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].leftBtn),n=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].rightBtn),a=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].slider),l=this.createMenu(this.setup.main[this.mainLevel].leftMenu),r=this.createMenu(this.setup.main[this.mainLevel].rightMenu);this.vals.main.text=i[0]||"",this.vals.main.text2=e[0]||"",this.vals.main.leftBtn=s[0]||"",this.vals.main.rightBtn=n[0]||"",this.vals.main.leftBtnDisabled=!!s[1],this.vals.main.rightBtnDisabled=!!n[1],this.vals.main.leftMenu=l,this.vals.main.rightMenu=r,this.vals.main.slider=!!a[0],this.vals.main.sliderMin=a[2]||0,this.vals.main.sliderMax=a[3]||100,this.vals.main.sliderStep=a[4]||1,this.vals.main.sliderPrevent?this.vals.main.sliderCurrent===a[1]&&(this.vals.main.sliderPrevent=!1,this.vals.main.sliderCurrent=a[1]||0):this.vals.main.sliderCurrent=a[1]||0},setValues:function(){if(this.setup.main.length>0){var t=this.$fhem.handleVals(this.item,this.setup.status.bar),i=this.$fhem.handleVals(this.item,this.setup.status.error),e=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text),s=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text2),n=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].slider),a=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].leftBtn),l=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].rightBtn),r=this.createMenu(this.setup.main[this.mainLevel].leftMenu),h=this.createMenu(this.setup.main[this.mainLevel].rightMenu),m=this.$fhem.handleVals(this.item,this.setup.info.left1),v=this.$fhem.handleVals(this.item,this.setup.info.left2),c=this.$fhem.handleVals(this.item,this.setup.info.mid1),o=this.$fhem.handleVals(this.item,this.setup.info.mid2),u=this.$fhem.handleVals(this.item,this.setup.info.right1),d=this.$fhem.handleVals(this.item,this.setup.info.right2);this.vals.status.level=t[0]||"0",this.vals.status.color=t[1]||"success",this.vals.status.invert=!!t[2],this.vals.info.left1Icon=m[1]||"",this.vals.info.left1Text=m[0]||"",this.vals.info.left2Icon=v[1]||"",this.vals.info.left2Text=v[0]||"",this.vals.info.mid1Icon=c[1]||"",this.vals.info.mid1Text=c[0]||"",this.vals.info.mid2Icon=o[1]||"",this.vals.info.mid2Text=o[0]||"",this.vals.info.right1Icon=u[1]||"",this.vals.info.right1Text=u[0]||"",this.vals.info.right2Icon=d[1]||"",this.vals.info.right2Text=d[0]||"",this.vals.main.text=e[0]||"",this.vals.main.text2=s[0]||"",this.vals.main.slider=!!n[0],this.vals.main.sliderMin=n[2]||0,this.vals.main.sliderMax=n[3]||100,this.vals.main.sliderStep=n[4]||1,this.vals.main.sliderPrevent?this.vals.main.sliderCurrent===n[1]&&(this.vals.main.sliderPrevent=!1,this.vals.main.sliderCurrent=n[1]||0):this.vals.main.sliderCurrent=n[1]||0,this.vals.main.leftBtn=a[0]||"",this.vals.main.rightBtn=l[0]||"",this.vals.main.leftBtnDisabled=!!a[1],this.vals.main.rightBtnDisabled=!!l[1],this.vals.main.leftMenu=r,this.vals.main.rightMenu=h,i.length>0?(this.vals.status.level=i[0]||"100",this.vals.status.color=i[1]||"error",this.vals.main.text=i[2]||"Fehler",this.isActive=!1):this.isActive=!0}}}},h=r,m=e("2877"),v=e("6544"),c=e.n(v),o=e("8336"),u=e("b0af"),d=e("99d9"),f=e("62ad"),g=e("ce7e"),p=e("132d"),_=e("8860"),b=e("da13"),C=e("5d23"),x=e("1baa"),L=e("e449"),k=e("8e36"),V=e("0fd9"),B=e("ba0d"),$=e("2fa4"),M=e("afd9"),I=Object(m["a"])(h,s,n,!1,null,null,null);i["default"]=I.exports;c()(I,{VBtn:o["a"],VCard:u["a"],VCardText:d["c"],VCardTitle:d["d"],VCol:f["a"],VDivider:g["a"],VIcon:p["a"],VList:_["a"],VListItem:b["a"],VListItemContent:C["a"],VListItemGroup:x["a"],VListItemTitle:C["c"],VMenu:L["a"],VProgressLinear:k["a"],VRow:V["a"],VSlider:B["a"],VSpacer:$["a"],VSystemBar:M["a"]})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-2d0aa92c.d70b1126.js b/www/fhemapp/js/chunk-2d0aa92c.d70b1126.js deleted file mode 100644 index 1d02f5a9..00000000 --- a/www/fhemapp/js/chunk-2d0aa92c.d70b1126.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0aa92c"],{"121f":function(t,i,e){"use strict";e.r(i);var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-col",{class:t.setup.size},[e("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[e("v-progress-linear",{attrs:{height:"7",value:t.getLevel,color:t.vals.status.color,"background-color":"secondary darken-1"}}),e("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" "),e("v-spacer"),t.app.options.debugMode?e("jsonList",{attrs:{item:t.item}}):t._e(),t.multiLevel&&t.isActive?e("v-btn",{attrs:{small:"",icon:""},on:{click:function(i){return t.setLevel()}}},[e("v-icon",{attrs:{small:""}},[t._v(" "+t._s(t.multiLevelIcon)+" ")])],1):t._e()],1),e("v-divider"),t.vals.main.slider&&t.isActive?t._e():e("v-card-text",[e("v-row",{attrs:{align:"center"}},[0==t.vals.main.leftMenu.length&&t.vals.main.leftBtn&&t.isActive?e("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e("v-btn",{attrs:{small:"",icon:"",disabled:t.vals.main.leftBtnDisabled},on:{touchstart:function(i){return t.clickStart("left","touch")},touchend:function(i){return t.clickEnd("left","touch")},mousedown:function(i){return t.clickStart("left","mouse")},mouseup:function(i){return t.clickEnd("left","mouse")}}},[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.leftBtn)+" ")])],1)],1):t._e(),t.vals.main.leftMenu.length>0&&t.vals.main.leftBtn&&t.isActive?e("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(i){var s=i.on,n=i.attrs;return[e("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",n,!1),s),[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.leftBtn)+" ")])],1)]}}],null,!1,3898370877)},[e("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[e("v-list-item-group",{attrs:{"active-class":"success--text"}},t._l(t.vals.main.leftMenu,(function(i,s){return e("v-list-item",{key:s,on:{click:function(e){return t.sendCmd(i.cmd)}}},[e("v-list-item-content",[e("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(i.name)+" ")])],1)],1)})),1)],1)],1)],1):t._e(),t.vals.main.leftBtn&&t.isActive?e("v-divider",{attrs:{vertical:""}}):t._e(),e("v-col",{attrs:{align:"center"}},[e("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.vals.main.text)+" ")])]),t.vals.main.text2&&t.isActive?e("v-col",{attrs:{align:"center"}},[e("div",{staticClass:"headline font-weight-bold"},[t._v(" "+t._s(t.vals.main.text2)+" ")])]):t._e(),t.vals.main.rightBtn&&t.isActive?e("v-divider",{attrs:{vertical:""}}):t._e(),0==t.vals.main.rightMenu.length&&t.vals.main.rightBtn&&t.isActive?e("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e("v-btn",{attrs:{small:"",icon:"",disabled:t.vals.main.rightBtnDisabled},on:{touchstart:function(i){return t.clickStart("right","touch")},touchend:function(i){return t.clickEnd("right","touch")},mousedown:function(i){return t.clickStart("right","mouse")},mouseup:function(i){return t.clickEnd("right","mouse")}}},[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.rightBtn)+" ")])],1)],1):t._e(),t.vals.main.rightMenu.length>0&&t.vals.main.rightBtn&&t.isActive?e("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(i){var s=i.on,n=i.attrs;return[e("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",n,!1),s),[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(t.vals.main.rightBtn)+" ")])],1)]}}],null,!1,845781958)},[e("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[e("v-list-item-group",{attrs:{"active-class":"success--text"}},t._l(t.vals.main.rightMenu,(function(i,s){return e("v-list-item",{key:s,on:{click:function(e){return t.sendCmd(i.cmd)}}},[e("v-list-item-content",[e("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(i.name)+" ")])],1)],1)})),1)],1)],1)],1):t._e()],1)],1),t.vals.main.slider&&t.isActive?e("v-card-text",[e("v-slider",{staticClass:"ml-5 mr-5",attrs:{min:t.vals.main.sliderMin,max:t.vals.main.sliderMax,"hide-details":"","thumb-label":"","thumb-size":"48",color:"success",step:t.vals.main.sliderStep},on:{change:t.setSlider},scopedSlots:t._u([{key:"thumb-label",fn:function(i){var s=i.value;return[e("div",{staticClass:"text-h6"},[t._v(" "+t._s(s)+" ")])]}},t.vals.main.leftBtn?{key:"prepend",fn:function(){return[e("v-icon",{on:{click:function(i){return t.clickEnd("left")}}},[t._v(" "+t._s(t.vals.main.leftBtn)+" ")])]},proxy:!0}:null,t.vals.main.rightBtn?{key:"append",fn:function(){return[e("v-icon",{on:{click:function(i){return t.clickEnd("right")}}},[t._v(" "+t._s(t.vals.main.rightBtn)+" ")])]},proxy:!0}:null],null,!0),model:{value:t.vals.main.sliderCurrent,callback:function(i){t.$set(t.vals.main,"sliderCurrent",i)},expression:"vals.main.sliderCurrent"}})],1):t._e(),e("v-divider"),e("v-system-bar",{attrs:{color:"secondary darken-1"}},[e("v-icon",{staticClass:"ml-0"},[t._v(" "+t._s(t.vals.info.left1Icon)+" ")]),t._v(t._s(t.vals.info.left1Text)+" "),e("v-icon",[t._v(t._s(t.vals.info.left2Icon))]),t._v(t._s(t.vals.info.left2Text)+" "),e("v-spacer"),e("v-icon",[t._v(t._s(t.vals.info.mid1Icon))]),t._v(t._s(t.vals.info.mid1Text)+" "),e("v-icon",{staticClass:"ml-2"},[t._v(" "+t._s(t.vals.info.mid2Icon)+" ")]),t._v(t._s(t.vals.info.mid2Text)+" "),e("v-spacer"),e("v-icon",[t._v(t._s(t.vals.info.right1Icon))]),t._v(t._s(t.vals.info.right1Text)+" "),e("v-icon",{staticClass:"mr-0"},[t._v(" "+t._s(t.vals.info.right2Icon)+" ")]),t._v(t._s(t.vals.info.right2Text)+" ")],1)],1)],1)},n=[],a=e("b85c"),l=(e("1276"),e("ac1f"),e("466d"),e("5319"),e("a15b"),e("c740"),e("649b")),r={components:{jsonList:l["a"]},props:{item:{type:Object,default:function(){return{name:"default"}}}},data:function(){return{name:"default",app:{options:{debugMode:!1}},setup:{size:"col-12 col-sm-6 col-md-4 col-lg-4",status:{bar:[],error:[]},main:[{leftBtn:"",text:"Template unbekannt",rightBtn:""}],info:{left1:[],left2:[],mid1:[],mid2:[],right1:[],right2:[]}},vals:{title:"",status:{level:0,color:"",invert:!1},main:{leftBtn:"",leftBtnDisabled:!1,leftMenu:[],text:"",text2:"",slider:!1,sliderCurrent:0,sliderPrevent:!1,sliderMin:0,sliderMax:100,sliderStep:1,rightBtn:"",rightBtnDisabled:!1,rightMenu:[]},info:{left1Icon:"",left1Text:"",left2Icon:"",left2Text:"",mid1Icon:"",mid1Text:"",mid2Icon:"",mid2Text:"",right1Icon:"",right1Text:"",right2Icon:"",right2Text:""}},multiLevel:!1,multiLevelIcon:"mdi-swap-vertical",mainLevel:0,isActive:!0,timer:!1,long:!1,pendingClick:0,touchFirst:!1}},computed:{getLevel:function(){return this.vals.status.invert?100-this.vals.status.level:this.vals.status.level}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var i=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||i,this.setValues()}},setup:{deep:!0,handler:function(){this.setValues()}}},mounted:function(){this.app.options=this.$fhem.app.options;var t=this.$fhem.getEl(this.item,"Options","setup","size"),i=this.$fhem.getEl(this.item,"Options","setup","status"),e=this.$fhem.getEl(this.item,"Options","setup","main"),s=this.$fhem.getEl(this.item,"Options","setup","info");t&&(this.setup.size=t),i&&Object.assign(this.setup.status,i),e&&Object.assign(this.setup.main,e),s&&Object.assign(this.setup.info,s),this.setLevel(0)},methods:{sendCmd:function(t,i){var e=this;i?(this.pendingClick&&(clearTimeout(this.pendingClick),this.pendingClick=0),this.pendingClick=setTimeout((function(){e.$fhem.request(t)}),1e3)):this.$fhem.request(t)},updateReading:function(t){var i=t.split(" ");4===i.length&&this.$fhem.getEl(this.item,"Readings",i[2],"Value")&&(this.item.Readings[i[2]].Value=i[3])},createCmd:function(t){var i="";if(t.match("set")){var e=t.split(" ");if(e[1].match("Connected")){var s=e[1].replace("Connected.","");e[1]=this.$fhem.getEl(this.item,"Connected",s,"Internals","NAME"),e[1]?i=e.join(" "):this.log={type:"error",message:"Connected Device not found. "+this.item.Options,debugLevel:1}}else i=t}else i="set "+this.item.Name+" "+t;return i},clickStart:function(t,i){var e=this;this.long=!1,this.$fhem.log={type:"intern",message:"ClickStart: type "+t+":"+i,debugLevel:5},this.touchFirst&&"mouse"===i||("touch"===i&&(this.touchFirst=!0),this.timer=setInterval((function(){e.long=!0;var i=e.setup.main[e.mainLevel][t+"Long"];if(e.$fhem.log={type:"intern",message:"ClickEvent: Long ["+i+"]",debugLevel:5},i){var s=e.$fhem.handleVals(e.item,i);if(s[0]){var n=e.createCmd(s[0]);e.sendCmd(n),e.timer=clearInterval(e.timer)}}}),1e3))},clickEnd:function(t,i){if(this.$fhem.log={type:"intern",message:"ClickEnd: type "+t+":"+i,debugLevel:5},!this.touchFirst||"mouse"!==i){"touch"===i&&(this.touchFirst=!0),this.timer=clearInterval(this.timer);var e=this.setup.main[this.mainLevel][t+(this.long?"LongRelease":"Click")];if(this.$fhem.log={type:"intern",message:"ClickEvent: "+(this.long?"LongRelease":"Click")+" ["+e+"]",debugLevel:5},e){var s=this.$fhem.handleVals(this.item,e);if(s[0]){this.vals.main.sliderPrevent=!1;var n=this.createCmd(s[0]),a=-1!=e.findIndex((function(t){return t.match("%i")}));!this.long&&a&&this.updateReading(n),this.sendCmd(n,a)}}}},setSlider:function(t){var i=this.setup.main[this.mainLevel].slider;if(i){var e=this.$fhem.handleVals(this.item,i);if(e[0]){this.vals.main.sliderPrevent=!0;var s=this.createCmd(e[0]);s=s.replace("%v",t),this.sendCmd(s)}}},createMenu:function(t){var i=[];if(t&&t.length>0){var e,s=Object(a["a"])(t);try{for(s.s();!(e=s.n()).done;){var n=e.value,l=n.split(":");if(l.length>1){var r=this.createCmd(l[1]);i.push({name:l[0],cmd:r})}}}catch(h){s.e(h)}finally{s.f()}}return i},setLevel:function(t){isNaN(t)?(this.mainLevel++,this.mainLevel>this.setup.main.length-1&&(this.mainLevel=0)):(this.multiLevel=this.setup.main.length>1,this.mainLevel=t),this.vals.main.leftBtn=this.setup.main[this.mainLevel].leftBtn,this.vals.main.rightBtn=this.setup.main[this.mainLevel].rightBtn;var i=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text),e=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text2),s=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].leftBtn),n=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].rightBtn),a=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].slider),l=this.createMenu(this.setup.main[this.mainLevel].leftMenu),r=this.createMenu(this.setup.main[this.mainLevel].rightMenu);this.vals.main.text=i[0]||"",this.vals.main.text2=e[0]||"",this.vals.main.leftBtn=s[0]||"",this.vals.main.rightBtn=n[0]||"",this.vals.main.leftBtnDisabled=!!s[1],this.vals.main.rightBtnDisabled=!!n[1],this.vals.main.leftMenu=l,this.vals.main.rightMenu=r,this.vals.main.slider=!!a[0],this.vals.main.sliderMin=a[2]||0,this.vals.main.sliderMax=a[3]||100,this.vals.main.sliderStep=a[4]||1,this.vals.main.sliderPrevent?this.vals.main.sliderCurrent===a[1]&&(this.vals.main.sliderPrevent=!1,this.vals.main.sliderCurrent=a[1]||0):this.vals.main.sliderCurrent=a[1]||0},setValues:function(){if(this.setup.main.length>0){var t=this.$fhem.handleVals(this.item,this.setup.status.bar),i=this.$fhem.handleVals(this.item,this.setup.status.error),e=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text),s=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text2),n=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].slider),a=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].leftBtn),l=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].rightBtn),r=this.createMenu(this.setup.main[this.mainLevel].leftMenu),h=this.createMenu(this.setup.main[this.mainLevel].rightMenu),v=this.$fhem.handleVals(this.item,this.setup.info.left1),m=this.$fhem.handleVals(this.item,this.setup.info.left2),c=this.$fhem.handleVals(this.item,this.setup.info.mid1),o=this.$fhem.handleVals(this.item,this.setup.info.mid2),u=this.$fhem.handleVals(this.item,this.setup.info.right1),d=this.$fhem.handleVals(this.item,this.setup.info.right2);this.vals.status.level=t[0]||"0",this.vals.status.color=t[1]||"success",this.vals.status.invert=!!t[2],this.vals.info.left1Icon=v[1]||"",this.vals.info.left1Text=v[0]||"",this.vals.info.left2Icon=m[1]||"",this.vals.info.left2Text=m[0]||"",this.vals.info.mid1Icon=c[1]||"",this.vals.info.mid1Text=c[0]||"",this.vals.info.mid2Icon=o[1]||"",this.vals.info.mid2Text=o[0]||"",this.vals.info.right1Icon=u[1]||"",this.vals.info.right1Text=u[0]||"",this.vals.info.right2Icon=d[1]||"",this.vals.info.right2Text=d[0]||"",this.vals.main.text=e[0]||"",this.vals.main.text2=s[0]||"",this.vals.main.slider=!!n[0],this.vals.main.sliderMin=n[2]||0,this.vals.main.sliderMax=n[3]||100,this.vals.main.sliderStep=n[4]||1,this.vals.main.sliderPrevent?this.vals.main.sliderCurrent===n[1]&&(this.vals.main.sliderPrevent=!1,this.vals.main.sliderCurrent=n[1]||0):this.vals.main.sliderCurrent=n[1]||0,this.vals.main.leftBtn=a[0]||"",this.vals.main.rightBtn=l[0]||"",this.vals.main.leftBtnDisabled=!!a[1],this.vals.main.rightBtnDisabled=!!l[1],this.vals.main.leftMenu=r,this.vals.main.rightMenu=h,i.length>0?(this.vals.status.level=i[0]||"100",this.vals.status.color=i[1]||"error",this.vals.main.text=i[2]||"Fehler",this.isActive=!1):this.isActive=!0}}}},h=r,v=e("2877"),m=e("6544"),c=e.n(m),o=e("8336"),u=e("b0af"),d=e("99d9"),f=e("62ad"),g=e("ce7e"),p=e("132d"),_=e("8860"),b=e("da13"),C=e("5d23"),x=e("1baa"),L=e("e449"),k=e("8e36"),V=e("0fd9"),B=e("ba0d"),$=e("2fa4"),M=e("afd9"),I=Object(v["a"])(h,s,n,!1,null,null,null);i["default"]=I.exports;c()(I,{VBtn:o["a"],VCard:u["a"],VCardText:d["c"],VCardTitle:d["d"],VCol:f["a"],VDivider:g["a"],VIcon:p["a"],VList:_["a"],VListItem:b["a"],VListItemContent:C["a"],VListItemGroup:x["a"],VListItemTitle:C["c"],VMenu:L["a"],VProgressLinear:k["a"],VRow:V["a"],VSlider:B["a"],VSpacer:$["a"],VSystemBar:M["a"]})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-b2de1140.45789a67.js b/www/fhemapp/js/chunk-b2de1140.45789a67.js new file mode 100644 index 00000000..80b2ad6e --- /dev/null +++ b/www/fhemapp/js/chunk-b2de1140.45789a67.js @@ -0,0 +1 @@ +(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",{type:"success",message:"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-b2de1140.5fee925a.js b/www/fhemapp/js/chunk-b2de1140.5fee925a.js deleted file mode 100644 index bca99bdd..00000000 --- a/www/fhemapp/js/chunk-b2de1140.5fee925a.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",[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:"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",{type:"success",message:"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-dc5178fa.752049d4.js b/www/fhemapp/js/chunk-dc5178fa.752049d4.js new file mode 100644 index 00000000..80024d57 --- /dev/null +++ b/www/fhemapp/js/chunk-dc5178fa.752049d4.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-dc5178fa"],{"5d11":function(t,s,e){"use strict";e.r(s);var i=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("v-col",{class:t.setup.size},[e("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[e("v-progress-linear",{attrs:{height:"7",value:t.getLevel,color:t.vals.status.color,"background-color":"secondary darken-1"}}),e("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" ")]),e("v-divider"),e("v-card-text",{staticClass:"pa-0"},t._l(t.list,(function(s){return e("div",{key:s.Name,attrs:{align:"center"}},[e("v-row",{staticClass:"ma-1",attrs:{dense:"",align:"center"}},[e("v-col",{staticClass:"col-2"},[e("v-progress-circular",{attrs:{value:s.level,color:s.color}})],1),e("v-col",{staticClass:"text-truncate",attrs:{align:"left"}},[e("div",{staticClass:"text-truncate headline"},[t._v(" "+t._s(s.title)+" ")]),e("div",{staticClass:"text-truncate"},[t._v(" "+t._s(s.text)+" ")])]),e("v-col",{staticClass:"col-2",attrs:{align:"center"}},[s.route&&!s.click&&s.icon?e("v-btn",{attrs:{icon:"",link:"",to:s.route}},[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(s.icon)+" ")])],1):t._e(),s.click&&!s.route&&s.icon?e("div",[e("v-btn",{attrs:{icon:""},on:{click:function(e){return t.set(s.device,s.click)}}},[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(s.icon)+" ")])],1)],1):t._e(),s.menu&&!s.route&&!s.click&&s.icon?e("div",[e("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(i){var a=i.on,n=i.attrs;return[e("v-btn",t._g(t._b({attrs:{icon:""}},"v-btn",n,!1),a),[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(s.icon)+" ")])],1)]}}],null,!0)},[e("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[e("v-list-item-group",t._l(s.menu,(function(i,a){return e("v-list-item",{key:a,on:{click:function(e){return t.set(s.device,i.cmd)}}},[e("v-list-item-content",[e("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(i.name)+" ")])],1)],1)})),1)],1)],1)],1):t._e()],1)],1),e("v-divider")],1)})),0),e("v-system-bar",{attrs:{color:"secondary darken-1"}},[e("v-icon",{staticClass:"ml-0"},[t._v(" "+t._s(t.vals.info.left1Icon)+" ")]),t._v(t._s(t.vals.info.left1Text)+" "),e("v-icon",{staticClass:"ml-2"},[t._v(t._s(t.vals.info.left2Icon))]),t._v(t._s(t.vals.info.left2Text)+" "),e("v-spacer"),e("v-icon",[t._v(t._s(t.vals.info.mid1Icon))]),t._v(t._s(t.vals.info.mid1Text)+" "),e("v-icon",{staticClass:"ml-2"},[t._v(" "+t._s(t.vals.info.mid2Icon)+" ")]),t._v(t._s(t.vals.info.mid2Text)+" "),e("v-spacer"),e("v-icon",[t._v(t._s(t.vals.info.right1Icon))]),t._v(t._s(t.vals.info.right1Text)+" "),e("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=e("b85c"),l=(e("466d"),e("ac1f"),e("1276"),e("d81d"),e("b0c0"),e("a434"),{props:{item:{type:Object,default:function(){return{name:"panel"}}}},data:function(){return{name:"panel",setup:{size:"col-12 col-sm-6 col-md-6 col-lg-6",status:{bar:[],error:[]},info:{left1:[],left2:[],mid1:[],mid2:[],right1:[],right2:[]}},vals:{title:"",status:{level:0,color:"",invert:!1},info:{left1Icon:"",left1Text:"",left2Icon:"",left2Text:"",mid1Icon:"",mid1Text:"",mid2Icon:"",mid2Text:"",right1Icon:"",right1Text:"",right2Icon:"",right2Text:""}},list:[]}},computed:{getLevel:function(){return this.vals.status.invert?100-this.vals.status.level:this.vals.status.level}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var s=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||s,this.setValues(),this.doList()}},setup:{deep:!0,handler:function(){this.setValues()}}},created:function(){var t=this.$fhem.getEl(this.item,"Options","setup","size"),s=this.$fhem.getEl(this.item,"Options","setup","status"),e=this.$fhem.getEl(this.item,"Options","setup","info");t&&(this.setup.size=t),s&&Object.assign(this.setup.status,s),e&&Object.assign(this.setup.info,e)},methods:{setValues:function(){var t=this.$fhem.handleVals(this.item,this.setup.status.bar),s=this.$fhem.handleVals(this.item,this.setup.status.error),e=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),l=this.$fhem.handleVals(this.item,this.setup.info.right1),o=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=e[1]||"",this.vals.info.left1Text=e[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=l[1]||"",this.vals.info.right1Text=l[0]||"",this.vals.info.right2Icon=o[1]||"",this.vals.info.right2Text=o[0]||"",s.length>0?(this.vals.status.level=s[0]||"100",this.vals.status.color=s[1]||"error",this.vals.main.text=s[2]||"Fehler",this.isActive=!1):this.isActive=!0},set:function(t,s){var e=s.match("set")?s:"set "+t+" "+s;this.$fhem.request(e)},loadItem:function(t){var s=this.$fhem.getEl(t,"Name")||"",e=this.$fhem.getEl(t,"Attributes","alias")||t.Name,i=this.$fhem.getEl(t,"Options","name")||e,a=this.$fhem.getEl(t,"Options","panel","link")||"",l=this.$fhem.handleVals(t,this.$fhem.getEl(t,"Options","panel","status"))||[],o=this.$fhem.handleVals(t,this.$fhem.getEl(t,"Options","panel","btn"))||[],c=this.$fhem.handleVals(t,this.$fhem.getEl(t,"Options","panel","click"))||[],r=this.$fhem.getEl(t,"Options","panel","menu")||[],h=[];if(r.length>0){var v,u=Object(n["a"])(r);try{for(u.s();!(v=u.n()).done;){var f=v.value,d=f.split(":");2==d.length&&h.push({name:d[0],cmd:d[1]})}}catch(p){u.e(p)}finally{u.f()}}var m={device:s,title:i,text:l[0]||"",level:l[1]||0,color:l[2]||"success",icon:o[0]||"",route:a,click:c[0]||"",menu:h};return m},doList:function(){if(this.item.Connected)for(var t in this.item.Options.connected){var s=this.list.map((function(t){return t.name})).indexOf(t),e=this.loadItem(this.item.Connected[t]),i={name:t,device:e.device,level:e.level,color:e.color,title:e.title,text:e.text,icon:e.icon,route:e.route,click:e.click,menu:e.menu};0==this.setup.status.bar.length&&"success"!=i.color&&"success"===this.vals.status.color&&(this.vals.status.color=i.color),-1!=s?this.list.splice(s,1,i):this.list.push(i)}}}}),o=l,c=e("2877"),r=e("6544"),h=e.n(r),v=e("8336"),u=e("b0af"),f=e("99d9"),d=e("62ad"),m=e("ce7e"),p=e("132d"),g=e("8860"),_=e("da13"),b=e("5d23"),x=e("1baa"),V=e("e449"),$=e("490a"),I=e("8e36"),k=e("0fd9"),C=e("2fa4"),O=e("afd9"),y=Object(c["a"])(o,i,a,!1,null,null,null);s["default"]=y.exports;h()(y,{VBtn:v["a"],VCard:u["a"],VCardText:f["c"],VCardTitle:f["d"],VCol:d["a"],VDivider:m["a"],VIcon:p["a"],VList:g["a"],VListItem:_["a"],VListItemContent:b["a"],VListItemGroup:x["a"],VListItemTitle:b["c"],VMenu:V["a"],VProgressCircular:$["a"],VProgressLinear:I["a"],VRow:k["a"],VSpacer:C["a"],VSystemBar:O["a"]})},8308:function(t,s,e){},afd9:function(t,s,e){"use strict";var i=e("5530"),a=(e("a9e3"),e("c7cd"),e("8308"),e("3a66")),n=e("a9ad"),l=e("7560"),o=e("58df"),c=e("80d2");s["a"]=Object(o["a"])(Object(a["a"])("bar",["height","window"]),n["a"],l["a"]).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes:function(){return Object(i["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(c["g"])(this.computedHeight)}}},methods:{updateApplication:function(){return this.$el?this.$el.clientHeight:this.computedHeight}},render:function(t){var s={staticClass:"v-system-bar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,s),Object(c["s"])(this))}})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-dc5178fa.857ffbb2.js b/www/fhemapp/js/chunk-dc5178fa.857ffbb2.js deleted file mode 100644 index a34f21b6..00000000 --- a/www/fhemapp/js/chunk-dc5178fa.857ffbb2.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-dc5178fa"],{"5d11":function(t,s,e){"use strict";e.r(s);var i=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("v-col",{class:t.setup.size},[e("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[e("v-progress-linear",{attrs:{height:"7",value:t.getLevel,color:t.vals.status.color,"background-color":"secondary darken-1"}}),e("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" ")]),e("v-divider"),e("v-card-text",{staticClass:"pa-0"},t._l(t.list,(function(s){return e("div",{key:s.Name,attrs:{align:"center"}},[e("v-row",{staticClass:"ma-1",attrs:{dense:"",align:"center"}},[e("v-col",{staticClass:"col-2"},[e("v-progress-circular",{attrs:{value:s.level,color:s.color}})],1),e("v-col",{staticClass:"text-truncate",attrs:{align:"left"}},[e("div",{staticClass:"text-truncate headline"},[t._v(" "+t._s(s.title)+" ")]),e("div",{staticClass:"text-truncate"},[t._v(" "+t._s(s.text)+" ")])]),e("v-col",{staticClass:"col-2",attrs:{align:"center"}},[s.route&&!s.click&&s.icon?e("v-btn",{attrs:{icon:"",link:"",to:s.route}},[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(s.icon)+" ")])],1):t._e(),s.click&&!s.route&&s.icon?e("div",[e("v-btn",{attrs:{icon:""},on:{click:function(e){return t.set(s.device,s.click)}}},[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(s.icon)+" ")])],1)],1):t._e(),s.menu&&!s.route&&!s.click&&s.icon?e("div",[e("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(i){var a=i.on,n=i.attrs;return[e("v-btn",t._g(t._b({attrs:{icon:""}},"v-btn",n,!1),a),[e("v-icon",{attrs:{large:""}},[t._v(" "+t._s(s.icon)+" ")])],1)]}}],null,!0)},[e("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[e("v-list-item-group",t._l(s.menu,(function(i,a){return e("v-list-item",{key:a,on:{click:function(e){return t.set(s.device,i.cmd)}}},[e("v-list-item-content",[e("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(" "+t._s(i.name)+" ")])],1)],1)})),1)],1)],1)],1):t._e()],1)],1),e("v-divider")],1)})),0),e("v-system-bar",{attrs:{color:"secondary darken-1"}},[e("v-icon",{staticClass:"ml-0"},[t._v(" "+t._s(t.vals.info.left1Icon)+" ")]),t._v(t._s(t.vals.info.left1Text)+" "),e("v-icon",[t._v(t._s(t.vals.info.left2Icon))]),t._v(t._s(t.vals.info.left2Text)+" "),e("v-spacer"),e("v-icon",[t._v(t._s(t.vals.info.mid1Icon))]),t._v(t._s(t.vals.info.mid1Text)+" "),e("v-icon",{staticClass:"ml-2"},[t._v(" "+t._s(t.vals.info.mid2Icon)+" ")]),t._v(t._s(t.vals.info.mid2Text)+" "),e("v-spacer"),e("v-icon",[t._v(t._s(t.vals.info.right1Icon))]),t._v(t._s(t.vals.info.right1Text)+" "),e("v-icon",{staticClass:"mr-0"},[t._v(" "+t._s(t.vals.info.right2Icon)+" ")]),t._v(t._s(t.vals.info.right2Text)+" ")],1)],1)],1)},a=[],n=e("b85c"),l=(e("466d"),e("ac1f"),e("1276"),e("d81d"),e("b0c0"),e("a434"),{props:{item:{type:Object,default:function(){return{name:"panel"}}}},data:function(){return{name:"panel",setup:{size:"col-12 col-sm-6 col-md-6 col-lg-6",status:{bar:[],error:[]},info:{left1:[],left2:[],mid1:[],mid2:[],right1:[],right2:[]}},vals:{title:"",status:{level:0,color:"",invert:!1},info:{left1Icon:"",left1Text:"",left2Icon:"",left2Text:"",mid1Icon:"",mid1Text:"",mid2Icon:"",mid2Text:"",right1Icon:"",right1Text:"",right2Icon:"",right2Text:""}},list:[]}},computed:{getLevel:function(){return this.vals.status.invert?100-this.vals.status.level:this.vals.status.level}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var s=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||s,this.setValues(),this.doList()}},setup:{deep:!0,handler:function(){this.setValues()}}},created:function(){var t=this.$fhem.getEl(this.item,"Options","setup","size"),s=this.$fhem.getEl(this.item,"Options","setup","status"),e=this.$fhem.getEl(this.item,"Options","setup","info");t&&(this.setup.size=t),s&&Object.assign(this.setup.status,s),e&&Object.assign(this.setup.info,e)},methods:{setValues:function(){var t=this.$fhem.handleVals(this.item,this.setup.status.bar),s=this.$fhem.handleVals(this.item,this.setup.status.error),e=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),l=this.$fhem.handleVals(this.item,this.setup.info.right1),o=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=e[1]||"",this.vals.info.left1Text=e[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=l[1]||"",this.vals.info.right1Text=l[0]||"",this.vals.info.right2Icon=o[1]||"",this.vals.info.right2Text=o[0]||"",s.length>0?(this.vals.status.level=s[0]||"100",this.vals.status.color=s[1]||"error",this.vals.main.text=s[2]||"Fehler",this.isActive=!1):this.isActive=!0},set:function(t,s){var e=s.match("set")?s:"set "+t+" "+s;this.$fhem.request(e)},loadItem:function(t){var s=this.$fhem.getEl(t,"Name")||"",e=this.$fhem.getEl(t,"Attributes","alias")||t.Name,i=this.$fhem.getEl(t,"Options","name")||e,a=this.$fhem.getEl(t,"Options","panel","link")||"",l=this.$fhem.handleVals(t,this.$fhem.getEl(t,"Options","panel","status"))||[],o=this.$fhem.handleVals(t,this.$fhem.getEl(t,"Options","panel","btn"))||[],c=this.$fhem.handleVals(t,this.$fhem.getEl(t,"Options","panel","click"))||[],r=this.$fhem.getEl(t,"Options","panel","menu")||[],h=[];if(r.length>0){var v,u=Object(n["a"])(r);try{for(u.s();!(v=u.n()).done;){var f=v.value,d=f.split(":");2==d.length&&h.push({name:d[0],cmd:d[1]})}}catch(p){u.e(p)}finally{u.f()}}var m={device:s,title:i,text:l[0]||"",level:l[1]||0,color:l[2]||"success",icon:o[0]||"",route:a,click:c[0]||"",menu:h};return m},doList:function(){if(this.item.Connected)for(var t in this.item.Options.connected){var s=this.list.map((function(t){return t.name})).indexOf(t),e=this.loadItem(this.item.Connected[t]),i={name:t,device:e.device,level:e.level,color:e.color,title:e.title,text:e.text,icon:e.icon,route:e.route,click:e.click,menu:e.menu};0==this.setup.status.bar.length&&"success"!=i.color&&"success"===this.vals.status.color&&(this.vals.status.color=i.color),-1!=s?this.list.splice(s,1,i):this.list.push(i)}}}}),o=l,c=e("2877"),r=e("6544"),h=e.n(r),v=e("8336"),u=e("b0af"),f=e("99d9"),d=e("62ad"),m=e("ce7e"),p=e("132d"),g=e("8860"),_=e("da13"),b=e("5d23"),x=e("1baa"),V=e("e449"),$=e("490a"),I=e("8e36"),k=e("0fd9"),O=e("2fa4"),y=e("afd9"),C=Object(c["a"])(o,i,a,!1,null,null,null);s["default"]=C.exports;h()(C,{VBtn:v["a"],VCard:u["a"],VCardText:f["c"],VCardTitle:f["d"],VCol:d["a"],VDivider:m["a"],VIcon:p["a"],VList:g["a"],VListItem:_["a"],VListItemContent:b["a"],VListItemGroup:x["a"],VListItemTitle:b["c"],VMenu:V["a"],VProgressCircular:$["a"],VProgressLinear:I["a"],VRow:k["a"],VSpacer:O["a"],VSystemBar:y["a"]})},8308:function(t,s,e){},afd9:function(t,s,e){"use strict";var i=e("5530"),a=(e("a9e3"),e("c7cd"),e("8308"),e("3a66")),n=e("a9ad"),l=e("7560"),o=e("58df"),c=e("80d2");s["a"]=Object(o["a"])(Object(a["a"])("bar",["height","window"]),n["a"],l["a"]).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes:function(){return Object(i["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(c["g"])(this.computedHeight)}}},methods:{updateApplication:function(){return this.$el?this.$el.clientHeight:this.computedHeight}},render:function(t){var s={staticClass:"v-system-bar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,s),Object(c["s"])(this))}})}}]); \ No newline at end of file