diff --git a/public/cfg/config.json b/public/cfg/config.json index 603adcd2..ba94361c 100644 --- a/public/cfg/config.json +++ b/public/cfg/config.json @@ -6,7 +6,8 @@ }, "options": { "maxChartPoints": 100, - "logBuffer": 500 + "logBuffer": 500, + "debugLevel": 5 }, "theme": { "dark": true, diff --git a/src/components/TemplSysmon.vue b/src/components/TemplSysmon.vue index e05d6260..c3a83b7f 100644 --- a/src/components/TemplSysmon.vue +++ b/src/components/TemplSysmon.vue @@ -13,6 +13,11 @@ {{ vals.title }} + + @@ -85,7 +90,13 @@ \ No newline at end of file +fhemapp
\ No newline at end of file diff --git a/www/fhemapp/js/app.0fd8a541.js b/www/fhemapp/js/app.0fd8a541.js deleted file mode 100644 index 4c8317ae..00000000 --- a/www/fhemapp/js/app.0fd8a541.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){function t(t){for(var a,r,o=t[0],c=t[1],u=t[2],p=0,l=[];p0?(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)}}}),p=u,l=n("2877"),d=n("6544"),h=n.n(d),f=n("0798"),m=n("8336"),g=n("62ad"),v=n("132d"),b=n("0fd9"),y=Object(l["a"])(p,o,c,!1,null,null,null),k=y.exports;h()(y,{VAlert:f["a"],VBtn:m["a"],VCol:g["a"],VIcon:v["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:"v3.10.0",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)}}},w=O,j=n("7496"),L=n("40dc"),x=n("5bc1"),R=n("cc20"),C=n("a523"),_=n("ce7e"),P=n("adda"),S=n("8860"),E=n("56b0"),D=n("da13"),F=n("5d23"),V=n("34c3"),A=n("f6c4"),N=n("f774"),T=n("a797"),M=n("490a"),$=n("2fa4"),I=n("3a2f"),B=Object(l["a"])(w,s,i,!1,null,null,null),H=B.exports;h()(B,{VApp:j["a"],VAppBar:L["a"],VAppBarNavIcon:x["a"],VBtn:m["a"],VChip:R["a"],VContainer:C["a"],VDivider:_["a"],VIcon:v["a"],VImg:P["a"],VList:S["a"],VListGroup:E["a"],VListItem:D["a"],VListItemContent:F["a"],VListItemIcon:V["a"],VListItemSubtitle:F["b"],VListItemTitle:F["c"],VMain:A["a"],VNavigationDrawer:N["a"],VOverlay:T["a"],VProgressCircular:M["a"],VSpacer:$["a"],VTooltip:I["a"]});n("3ca3"),n("ddb0");var q=n("8c4f");r["a"].use(q["a"]);var U=[{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"))}}],z=new q["a"]({mode:"hash",base:"",routes:U}),J=z,G=n("f309"),X=n("0fe0"),W=n.n(X),K=n("fcf4");r["a"].use(G["a"]);var Q={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}}}},Y=new G["a"](Q),Z=n("b85c"),ee=n("1da1"),te=n("53ca"),ne=n("d4ec"),ae=n("bee2"),re=n("262e"),se=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(re["a"])(n,e);var t=Object(se["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:{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.loading=this.app.options.loadCount>0}},{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("de-DE"),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("de-DE",{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&&(s+=s?"&":"?",s+=e.param+"="+encodeURIComponent(e.value))})),n+a+r+s}},{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,r){var s,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=new Promise((function(e,s){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"])(r)?Object.assign(r,{data:a}):a)}else"json"===n?t.json().then((function(t){e("object"===Object(te["a"])(r)?Object.assign(r,{data:t}):t)})):t.text().then((function(t){e("object"===Object(te["a"])(r)?Object.assign(r,{data:t}):t)}))})).catch((function(e){s({error:e,request:c})}))})),e.abrupt("return",s);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=[],r=t.length>this.app.options.maxChartPoints?parseInt(t.length/this.app.options.maxChartPoints):1,s=r,i=0,o=1,c=Object(Z["a"])(t);try{for(c.s();!(n=c.n()).done;){var u=n.value,p=u.split(" "),l=Date.parse(p[0].replace("_","T")),d=parseFloat(p[1]);i+=d,(o>=s||o===t.length)&&(o===t.length&&(r-=s-o),a.push({timestamp:l,value:i/r}),s+=r,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 r,s=[],i=0,o=Object(Z["a"])(t.defs);try{for(o.s();!(r=o.n()).done;){var c=r.value,u=/\(.*\)/.exec(c),p=u?c.replace(u[0],"_").split(":"):c.split(":"),l="get ";l+=p[0]?p[0]:t.deviceName,l+=t.from?" - - "+t.from:"",l+=t.to?" "+t.to:"",l+=u?" "+u[0].replace(/\(|\)/g,""):" 4:"+p[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){s.push({id:n.id,data:a.handleLogData(n.data)}),s.length===t.defs.length&&(Object.assign(t,{data:s}),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),r=0,s=1,i=Object(Z["a"])(a);try{for(i.s();!(n=i.n()).done;){var o=n.value;o.match("UPD")&&!o.match("excluded")&&r++,s===a.length&&e(r>0),s++}}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(r){var s,i,o,c,u,p,l,d,h,f,m;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:s=1,i=Object(Z["a"])(r.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(u=n.sent,p=u[e],p&&u.template){l=p.split(","),d=Object(Z["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(g){d.e(g)}finally{d.f()}}s===r.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),s++;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=[],r=2;r0){var r,s=Object(Z["a"])(t);try{for(s.s();!(r=s.n()).done;){var i=r.value,o=i.split(":");if(o.length>2){var c=o[0].match(/\./)?o[0].split("."):["Readings",o[0],"Value"],u=this.getEl.apply(this,[e].concat(Object(a["a"])(c)));if(u){var p=!1;if(isNaN(parseFloat(o[1])))RegExp(o[1]?o[1]:".").test(u)&&(p=!0);else{var l=/-?[0-9]/.exec(u);-1!=l.index&&parseFloat(u.slice(l.index))>=parseFloat(o[1])&&(p=!0)}if(p){n=this.replaceVals(o,u);break}}}}}catch(d){s.e(d)}finally{s.f()}}return n}},{key:"handleStates",value:function(e,t,n){var r=this.getEl(e,"Options","states")||n;if(r){var s,i=Object(Z["a"])(r);try{for(i.s();!(s=i.n()).done;){var o=s.value,c=o.split(":");if(c[0]){var u=c[0].match(/\./)?c[0].split("."):["Readings",c[0],"Value"],p=this.getEl.apply(this,[e].concat(Object(a["a"])(u)));if(p){var l=!1;if(isNaN(parseFloat(c[1]))?RegExp(c[1]?c[1]:".").test(p)&&(l=!0):parseFloat(p)>=parseFloat(c[1])&&(l=!0),l){var d={};c[2]&&(d.mainState=c[0]===c[2]?p:c[2]),c[3]&&(d.mainLevel=c[0]===c[3]?p: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,r,s,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),r=0,s=a;case 4:if(!(rt.Options.sortby?1:t.Options.sortby>e.Options.sortby?-1:0})),t.app.data.deviceList=Object.assign([],r),t.app.options.loading=!1),s++;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 r=t.app.data.deviceList[a],s=Object.assign({},r);e.Name===n.Name&&("Readings"===n.devicePart&&t.getEl(s,"Readings",n.param,n.paramPart)&&(s.Readings[n.param][n.paramPart]=n.value),"Attributes"===n.devicePart&&t.getEl(s,"Attributes",n.param)&&(s.Attributes[n.param]=n.value),t.app.data.deviceList.splice(a,1,s)),"Connected"in e&&Object.values(e.Connected).forEach((function(r,i){if(r.Name===n.Name){var o=Object.keys(e.Connected)[i];"Readings"===n.devicePart&&t.getEl(s.Connected[o],"Readings",n.param,n.paramPart)&&(s.Connected[o].Readings[n.param][n.paramPart]=n.value),"Attributes"===n.devicePart&&t.getEl(s.Connected[o],"Attributes",n.param)&&(s.Connected[o].Attributes[n.param]=n.value),t.app.data.deviceList.splice(a,1,s)}}))}))}}))}},{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?0:3e3;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 3 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("de-DE",{hour:"2-digit",minute:"2-digit"}),this.app.options.date=e.toLocaleString("de-DE",{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),ue=n("1321"),pe=n.n(ue);r["a"].use(pe.a),r["a"].component("apexchart",pe.a),r["a"].config.productionTip=!1,r["a"].prototype.$fhem=new ce,fetch("./cfg/config.json").then((function(e){return e.json()})).catch((function(e){r["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(r["a"].prototype.$fhem.app.connection,e.connection),e.options&&Object.assign(r["a"].prototype.$fhem.app.options,e.options),e.custom&&e.custom.length>0&&(t=r["a"].prototype.$fhem.app.templates).push.apply(t,Object(a["a"])(e.custom)),e.theme&&(-1!=e.theme.dark&&Object.assign(Y.framework.theme,{dark:e.theme.dark}),e.theme.themes&&(e.theme.themes.light&&Object.assign(Y.framework.theme.themes.light,e.theme.themes.light),e.theme.themes.dark&&Object.assign(Y.framework.theme.themes.dark,e.theme.themes.dark))));r["a"].prototype.$fhem.log={type:"status",message:"Config: "+JSON.stringify(e),debugLevel:2},r["a"].prototype.$fhem.log={type:"status",message:"Connection: "+JSON.stringify(r["a"].prototype.$fhem.app.connection),debugLevel:2},new r["a"]({vuetify:Y,router:J,render:function(e){return e(H)}}).$mount("#app")}))},c274:function(e,t,n){e.exports=n.p+"img/FHEM_Logo.2d0f7a38.png"}}); \ No newline at end of file diff --git a/www/fhemapp/js/app.34ba2bf7.js b/www/fhemapp/js/app.34ba2bf7.js new file mode 100644 index 00000000..c1ebd42a --- /dev/null +++ b/www/fhemapp/js/app.34ba2bf7.js @@ -0,0 +1 @@ +(function(e){function t(t){for(var a,r,o=t[0],c=t[1],u=t[2],p=0,l=[];p0?(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)}}}),p=u,l=n("2877"),d=n("6544"),h=n.n(d),f=n("0798"),m=n("8336"),g=n("62ad"),v=n("132d"),b=n("0fd9"),y=Object(l["a"])(p,o,c,!1,null,null,null),k=y.exports;h()(y,{VAlert:f["a"],VBtn:m["a"],VCol:g["a"],VIcon:v["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:"v3.10.0",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)}}},w=O,j=n("7496"),L=n("40dc"),x=n("5bc1"),R=n("cc20"),C=n("a523"),_=n("ce7e"),P=n("adda"),S=n("8860"),E=n("56b0"),D=n("da13"),F=n("5d23"),V=n("34c3"),A=n("f6c4"),N=n("f774"),T=n("a797"),M=n("490a"),$=n("2fa4"),I=n("3a2f"),B=Object(l["a"])(w,s,i,!1,null,null,null),H=B.exports;h()(B,{VApp:j["a"],VAppBar:L["a"],VAppBarNavIcon:x["a"],VBtn:m["a"],VChip:R["a"],VContainer:C["a"],VDivider:_["a"],VIcon:v["a"],VImg:P["a"],VList:S["a"],VListGroup:E["a"],VListItem:D["a"],VListItemContent:F["a"],VListItemIcon:V["a"],VListItemSubtitle:F["b"],VListItemTitle:F["c"],VMain:A["a"],VNavigationDrawer:N["a"],VOverlay:T["a"],VProgressCircular:M["a"],VSpacer:$["a"],VTooltip:I["a"]});n("3ca3"),n("ddb0");var q=n("8c4f");r["a"].use(q["a"]);var U=[{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"))}}],z=new q["a"]({mode:"hash",base:"",routes:U}),J=z,G=n("f309"),X=n("0fe0"),W=n.n(X),K=n("fcf4");r["a"].use(G["a"]);var Q={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}}}},Y=new G["a"](Q),Z=n("b85c"),ee=n("1da1"),te=n("53ca"),ne=n("d4ec"),ae=n("bee2"),re=n("262e"),se=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(re["a"])(n,e);var t=Object(se["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:{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.loading=this.app.options.loadCount>0}},{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("de-DE"),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("de-DE",{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&&(s+=s?"&":"?",s+=e.param+"="+encodeURIComponent(e.value))})),n+a+r+s}},{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,r){var s,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=new Promise((function(e,s){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"])(r)?Object.assign(r,{data:a}):a)}else"json"===n?t.json().then((function(t){e("object"===Object(te["a"])(r)?Object.assign(r,{data:t}):t)})):t.text().then((function(t){e("object"===Object(te["a"])(r)?Object.assign(r,{data:t}):t)}))})).catch((function(e){s({error:e,request:c})}))})),e.abrupt("return",s);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=[],r=t.length>this.app.options.maxChartPoints?parseInt(t.length/this.app.options.maxChartPoints):1,s=r,i=0,o=1,c=Object(Z["a"])(t);try{for(c.s();!(n=c.n()).done;){var u=n.value,p=u.split(" "),l=Date.parse(p[0].replace("_","T")),d=parseFloat(p[1]);i+=d,(o>=s||o===t.length)&&(o===t.length&&(r-=s-o),a.push({timestamp:l,value:i/r}),s+=r,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 r,s=[],i=0,o=Object(Z["a"])(t.defs);try{for(o.s();!(r=o.n()).done;){var c=r.value,u=/\(.*\)/.exec(c),p=u?c.replace(u[0],"_").split(":"):c.split(":"),l="get ";l+=p[0]?p[0]:t.deviceName,l+=t.from?" - - "+t.from:"",l+=t.to?" "+t.to:"",l+=u?" "+u[0].replace(/\(|\)/g,""):" 4:"+p[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){s.push({id:n.id,data:a.handleLogData(n.data)}),s.length===t.defs.length&&(Object.assign(t,{data:s}),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),r=0,s=1,i=Object(Z["a"])(a);try{for(i.s();!(n=i.n()).done;){var o=n.value;o.match("UPD")&&!o.match("excluded")&&r++,s===a.length&&e(r>0),s++}}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(r){var s,i,o,c,u,p,l,d,h,f,m;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:s=1,i=Object(Z["a"])(r.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(u=n.sent,p=u[e],p&&u.template){l=p.split(","),d=Object(Z["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(g){d.e(g)}finally{d.f()}}s===r.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),s++;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=[],r=2;r0){var r,s=Object(Z["a"])(t);try{for(s.s();!(r=s.n()).done;){var i=r.value,o=i.split(":");if(o.length>2){var c=o[0].match(/\./)?o[0].split("."):["Readings",o[0],"Value"],u=this.getEl.apply(this,[e].concat(Object(a["a"])(c)));if(u){var p=!1;if(isNaN(parseFloat(o[1])))RegExp(o[1]?o[1]:".").test(u)&&(p=!0);else{var l=/-?[0-9]/.exec(u);-1!=l.index&&parseFloat(u.slice(l.index))>=parseFloat(o[1])&&(p=!0)}if(p){n=this.replaceVals(o,u);break}}}}}catch(d){s.e(d)}finally{s.f()}}return n}},{key:"handleStates",value:function(e,t,n){var r=this.getEl(e,"Options","states")||n;if(r){var s,i=Object(Z["a"])(r);try{for(i.s();!(s=i.n()).done;){var o=s.value,c=o.split(":");if(c[0]){var u=c[0].match(/\./)?c[0].split("."):["Readings",c[0],"Value"],p=this.getEl.apply(this,[e].concat(Object(a["a"])(u)));if(p){var l=!1;if(isNaN(parseFloat(c[1]))?RegExp(c[1]?c[1]:".").test(p)&&(l=!0):parseFloat(p)>=parseFloat(c[1])&&(l=!0),l){var d={};c[2]&&(d.mainState=c[0]===c[2]?p:c[2]),c[3]&&(d.mainLevel=c[0]===c[3]?p: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,r,s,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),r=0,s=a;case 4:if(!(rt.Options.sortby?1:t.Options.sortby>e.Options.sortby?-1:0})),t.app.data.deviceList=Object.assign([],r),t.app.options.loading=!1),s++;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 r=t.app.data.deviceList[a],s=Object.assign({},r);e.Name===n.Name&&("Readings"===n.devicePart&&t.getEl(s,"Readings",n.param,n.paramPart)&&(s.Readings[n.param][n.paramPart]=n.value),"Attributes"===n.devicePart&&t.getEl(s,"Attributes",n.param)&&(s.Attributes[n.param]=n.value),t.app.data.deviceList.splice(a,1,s)),"Connected"in e&&Object.values(e.Connected).forEach((function(r,i){if(r.Name===n.Name){var o=Object.keys(e.Connected)[i];"Readings"===n.devicePart&&t.getEl(s.Connected[o],"Readings",n.param,n.paramPart)&&(s.Connected[o].Readings[n.param][n.paramPart]=n.value),"Attributes"===n.devicePart&&t.getEl(s.Connected[o],"Attributes",n.param)&&(s.Connected[o].Attributes[n.param]=n.value),t.app.data.deviceList.splice(a,1,s)}}))}))}}))}},{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("de-DE",{hour:"2-digit",minute:"2-digit"}),this.app.options.date=e.toLocaleString("de-DE",{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),ue=n("1321"),pe=n.n(ue);r["a"].use(pe.a),r["a"].component("apexchart",pe.a),r["a"].config.productionTip=!1,r["a"].prototype.$fhem=new ce,fetch("./cfg/config.json").then((function(e){return e.json()})).catch((function(e){r["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(r["a"].prototype.$fhem.app.connection,e.connection),e.options&&Object.assign(r["a"].prototype.$fhem.app.options,e.options),e.custom&&e.custom.length>0&&(t=r["a"].prototype.$fhem.app.templates).push.apply(t,Object(a["a"])(e.custom)),e.theme&&(-1!=e.theme.dark&&Object.assign(Y.framework.theme,{dark:e.theme.dark}),e.theme.themes&&(e.theme.themes.light&&Object.assign(Y.framework.theme.themes.light,e.theme.themes.light),e.theme.themes.dark&&Object.assign(Y.framework.theme.themes.dark,e.theme.themes.dark))));r["a"].prototype.$fhem.log={type:"status",message:"Config: "+JSON.stringify(e),debugLevel:2},r["a"].prototype.$fhem.log={type:"status",message:"Connection: "+JSON.stringify(r["a"].prototype.$fhem.app.connection),debugLevel:2},new r["a"]({vuetify:Y,router:J,render:function(e){return e(H)}}).$mount("#app")}))},c274:function(e,t,n){e.exports=n.p+"img/FHEM_Logo.2d0f7a38.png"}}); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-3c9d184f.dd5860f2.js b/www/fhemapp/js/chunk-17d492e6.b1715dc7.js similarity index 97% rename from www/fhemapp/js/chunk-3c9d184f.dd5860f2.js rename to www/fhemapp/js/chunk-17d492e6.b1715dc7.js index f7a59404..7cc68b68 100644 --- a/www/fhemapp/js/chunk-3c9d184f.dd5860f2.js +++ b/www/fhemapp/js/chunk-17d492e6.b1715dc7.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3c9d184f"],{"297c":function(e,t,s){"use strict";s("a9e3");var a=s("2b0e"),i=s("37c6");t["a"]=a["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(i["a"],{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}})},"37c6":function(e,t,s){"use strict";var a=s("8e36");t["a"]=a["a"]},"480e":function(e,t,s){"use strict";s("7db0");var a=s("7560");t["a"]=a["a"].extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark:function(){return this.root?this.rootIsDark:a["a"].options.computed.isDark.call(this)}},render:function(){return this.$slots.default&&this.$slots.default.find((function(e){return!e.isComment&&" "!==e.text}))}})},"615b":function(e,t,s){},"6ece":function(e,t,s){},"8e36":function(e,t,s){"use strict";var a=s("5530"),i=s("ade3"),n=(s("a9e3"),s("c7cd"),s("6ece"),s("0789")),r=s("a9ad"),l=s("fe6c"),o=s("a452"),c=s("7560"),u=s("80d2"),d=s("58df"),h=Object(d["a"])(r["a"],Object(l["b"])(["absolute","fixed","top","bottom"]),o["a"],c["a"]);t["a"]=h.extend({name:"v-progress-linear",props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:4},indeterminate:Boolean,query:Boolean,reverse:Boolean,rounded:Boolean,stream:Boolean,striped:Boolean,value:{type:[Number,String],default:0}},data:function(){return{internalLazyValue:this.value||0}},computed:{__cachedBackground:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle}))},__cachedBar:function(){return this.$createElement(this.computedTransition,[this.__cachedBarType])},__cachedBarType:function(){return this.indeterminate?this.__cachedIndeterminate:this.__cachedDeterminate},__cachedBuffer:function(){return this.$createElement("div",{staticClass:"v-progress-linear__buffer",style:this.styles})},__cachedDeterminate:function(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__determinate",style:{width:Object(u["g"])(this.normalizedValue,"%")}}))},__cachedIndeterminate:function(){return this.$createElement("div",{staticClass:"v-progress-linear__indeterminate",class:{"v-progress-linear__indeterminate--active":this.active}},[this.genProgressBar("long"),this.genProgressBar("short")])},__cachedStream:function(){return this.stream?this.$createElement("div",this.setTextColor(this.color,{staticClass:"v-progress-linear__stream",style:{width:Object(u["g"])(100-this.normalizedBuffer,"%")}})):null},backgroundStyle:function(){var e,t=null==this.backgroundOpacity?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity);return e={opacity:t},Object(i["a"])(e,this.isReversed?"right":"left",Object(u["g"])(this.normalizedValue,"%")),Object(i["a"])(e,"width",Object(u["g"])(this.normalizedBuffer-this.normalizedValue,"%")),e},classes:function(){return Object(a["a"])({"v-progress-linear--absolute":this.absolute,"v-progress-linear--fixed":this.fixed,"v-progress-linear--query":this.query,"v-progress-linear--reactive":this.reactive,"v-progress-linear--reverse":this.isReversed,"v-progress-linear--rounded":this.rounded,"v-progress-linear--striped":this.striped},this.themeClasses)},computedTransition:function(){return this.indeterminate?n["c"]:n["e"]},isReversed:function(){return this.$vuetify.rtl!==this.reverse},normalizedBuffer:function(){return this.normalize(this.bufferValue)},normalizedValue:function(){return this.normalize(this.internalLazyValue)},reactive:function(){return Boolean(this.$listeners.change)},styles:function(){var e={};return this.active||(e.height=0),this.indeterminate||100===parseFloat(this.normalizedBuffer)||(e.width=Object(u["g"])(this.normalizedBuffer,"%")),e}},methods:{genContent:function(){var e=Object(u["s"])(this,"default",{value:this.internalLazyValue});return e?this.$createElement("div",{staticClass:"v-progress-linear__content"},e):null},genListeners:function(){var e=this.$listeners;return this.reactive&&(e.click=this.onClick),e},genProgressBar:function(e){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:Object(i["a"])({},e,!0)}))},onClick:function(e){if(this.reactive){var t=this.$el.getBoundingClientRect(),s=t.width;this.internalValue=e.offsetX/s*100}},normalize:function(e){return e<0?0:e>100?100:parseFloat(e)}},render:function(e){var t={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,style:{bottom:this.bottom?0:void 0,height:this.active?Object(u["g"])(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return e("div",t,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}})},"99d9":function(e,t,s){"use strict";s.d(t,"a",(function(){return n})),s.d(t,"b",(function(){return r})),s.d(t,"c",(function(){return l})),s.d(t,"d",(function(){return o}));var a=s("b0af"),i=s("80d2"),n=Object(i["i"])("v-card__actions"),r=Object(i["i"])("v-card__subtitle"),l=Object(i["i"])("v-card__text"),o=Object(i["i"])("v-card__title");a["a"]},b0af:function(e,t,s){"use strict";var a=s("5530"),i=(s("a9e3"),s("0481"),s("615b"),s("10d2")),n=s("297c"),r=s("1c87"),l=s("58df");t["a"]=Object(l["a"])(n["a"],r["a"],i["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(a["a"])(Object(a["a"])({"v-card":!0},r["a"].options.computed.classes.call(this)),{},{"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised},i["a"].options.computed.classes.call(this))},styles:function(){var e=Object(a["a"])({},i["a"].options.computed.styles.call(this));return this.img&&(e.background='url("'.concat(this.img,'") center center / cover no-repeat')),e}},methods:{genProgress:function(){var e=n["a"].options.methods.genProgress.call(this);return e?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[e]):null}},render:function(e){var t=this.generateRouteLink(),s=t.tag,a=t.data;return a.style=this.styles,this.isClickable&&(a.attrs=a.attrs||{},a.attrs.tabindex=0),e(s,this.setBackgroundColor(this.color,a),[this.genProgress(),this.$slots.default])}})},dd08:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("v-col",{staticClass:"col-12 col-sm-6 col-md-4 col-lg-4"},[s("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[s("v-progress-linear",{attrs:{height:"7",value:e.vals.mainLevel,color:e.vals.mainColor,"background-color":"secondary darken-1"}}),s("v-card-title",{staticClass:"text-truncate"},[e._v(" "+e._s(e.vals.title)+" "),s("v-spacer"),e.app.options.debugMode?s("jsonList",{attrs:{item:e.item}}):e._e(),s("v-btn",{attrs:{small:"",icon:""},on:{click:e.expand}},[s("v-icon",{attrs:{small:""}},[e._v(" "+e._s(e.maxIcon)+" ")])],1)],1),s("v-divider"),s("v-card-text",[s("v-row",{attrs:{align:"center"}},[s("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e.expanded?e._e():s("v-btn",{attrs:{icon:""},on:{click:function(t){return e.setVolume("D")}}},[s("v-icon",{attrs:{large:""}},[e._v(" "+e._s(e.leftIcon)+" ")])],1),e.expanded?s("v-btn",{attrs:{icon:"",disabled:e.prevDisabled},on:{click:function(t){return e.setPlayer("Previous")}}},[s("v-icon",{attrs:{large:""}},[e._v(" "+e._s(e.prevIcon)+" ")])],1):e._e()],1),s("v-divider",{attrs:{vertical:""}}),s("v-col",{attrs:{align:"center"}},[s("v-btn",{attrs:{icon:""},on:{click:function(t){return e.setPlay()}}},[s("v-icon",{attrs:{large:""}},[e._v(" "+e._s(e.playIcon)+" ")])],1)],1),s("v-divider",{attrs:{vertical:""}}),s("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e.expanded?e._e():s("v-btn",{attrs:{icon:""},on:{click:function(t){return e.setVolume("U")}}},[s("v-icon",{attrs:{large:""}},[e._v(" "+e._s(e.rightIcon)+" ")])],1),e.expanded?s("v-btn",{attrs:{icon:"",disabled:e.nextDisabled},on:{click:function(t){return e.setPlayer("Next")}}},[s("v-icon",{attrs:{large:""}},[e._v(" "+e._s(e.nextIcon)+" ")])],1):e._e()],1)],1)],1),e.expanded?s("v-divider"):e._e(),e.expanded?s("v-card-text",[s("v-row",{attrs:{align:"center"}},[s("v-col",[s("v-slider",{attrs:{"hide-details":"",color:"accent"},on:{change:e.setVolume},scopedSlots:e._u([{key:"prepend",fn:function(){return[s("v-icon",{on:{click:function(t){return e.setMute()}}},[e._v(" "+e._s(e.volumeIcon)+" ")])]},proxy:!0}],null,!1,4048868738),model:{value:e.vals.volume,callback:function(t){e.$set(e.vals,"volume",t)},expression:"vals.volume"}})],1)],1),s("v-row",{attrs:{align:"center"}},[s("v-col",{staticClass:"col-4"}),s("v-col",{staticClass:"col-4 text-h6",attrs:{align:"center"}},[e._v(" "+e._s(e.vals.trackPosition)+" ")]),s("v-col",{staticClass:"col-4",attrs:{align:"center"}},[e._v(" "+e._s(e.vals.tracks)+" ")])],1)],1):e._e(),e.expanded&&e.vals.zones.length>0?s("v-divider"):e._e(),e.expanded&&e.vals.zones.length>0?s("v-card-text",[s("v-row",[s("v-col",e._l(e.vals.zones,(function(t){return s("span",{key:t},[s("v-chip",{staticClass:"mr-2",attrs:{small:""}},[e._v(e._s(t))])],1)})),0)],1)],1):e._e(),s("v-divider"),s("v-system-bar",{attrs:{color:"secondary darken-1"}},[s("v-icon",[e._v(e._s(e.vals.systemIcon))]),s("span",{staticClass:"text-truncate"},[e._v(e._s(e.vals.systemIconValue))])],1)],1)],1)},i=[],n=(s("4de4"),s("1276"),s("ac1f"),s("649b")),r={components:{jsonList:n["a"]},props:{item:{type:Object,default:function(){return{name:"sonos"}}}},data:function(){return{name:"sonos",app:{options:{debugMode:!1}},defaultSet:["Volume:^[0]$:stumm::success:mdi-volume-off","transportState:PLAYING:an:100:success:mdi-play","transportState::aus:0:success:mdi-pause"],vals:{title:"",mainState:"",mainLevel:0,mainColor:"",play:!1,volume:0,volumeChanged:!1,mute:!1,trackPosition:"",zones:[],tracks:"",playInfo1:"",playInfo2:"",systemIcon:"",systemIconValue:""},leftIcon:"mdi-minus",playIcon:"mdi-play",rightIcon:"mdi-plus",maxIcon:"mdi-arrow-expand",expanded:!1,prevIcon:"mdi-skip-previous",prevDisabled:!0,nextIcon:"mdi-skip-next",nextDisabled:!0,volumeIcon:"mdi-volume-high",pendingClick:0}},watch:{item:{immediate:!0,deep:!0,handler:function(e){var t=this.$fhem.getEl(e,"Readings","transportState","Value"),s=this.$fhem.getEl(e,"Readings","nextTrackHandle","Value")||"|",a=this.$fhem.getEl(e,"Readings","Volume","Value"),i=this.$fhem.getEl(e,"Readings","Mute","Value"),n=this.$fhem.getEl(e,"Readings","currentStreamAudio","Value"),r=this.$fhem.getEl(e,"Readings","currentSender","Value"),l=this.$fhem.getEl(e,"Readings","currentSenderInfo","Value"),o=this.$fhem.getEl(e,"Readings","currentAlbum","Value"),c=this.$fhem.getEl(e,"Readings","currentArtist","Value"),u=this.$fhem.getEl(e,"Readings","currentTitle","Value"),d=this.$fhem.getEl(e,"Readings","currentTrack","Value"),h=this.$fhem.getEl(e,"Readings","numberOfTracks","Value"),v=this.$fhem.getEl(e,"Readings","ZoneGroupNameDetails","Value"),m=this.$fhem.getEl(e,"Attributes","alias")||e.Name;this.vals.title=this.$fhem.getEl(e,"Options","name")||m,this.vals=this.$fhem.handleStates(e,this.vals,this.defaultSet),v&&(this.vals.title+=" (gruppiert)"),this.vals.zones=v.split(" + ").filter(Boolean),this.prevDisabled=!(s.split("|")[0].length>0),this.nextDisabled=!(s.split("|")[1].length>0),this.vals.trackPosition=this.$fhem.getEl(e,"Readings","currentTrackPositionSimulated","Value"),this.vals.volumeChanged&&this.vals.volume===parseInt(a)&&(this.vals.volumeChanged=!1),this.vals.volumeChanged||(this.vals.volume=parseInt(a)),this.vals.mute="1"===i,this.volumeIcon=this.vals.mute?"mdi-volume-mute":"mdi-volume-high",o+=c?" ("+c+")":"",this.vals.playInfo1="1"===n?r:o,this.vals.playInfo2="1"===n?l:u,this.vals.systemIconValue||(this.vals.systemIconValue=this.vals.playInfo1),this.vals.tracks="0"===n?d+" von "+h:"",this.vals.play="PLAYING"===t,this.playIcon=this.vals.play?"mdi-pause":"mdi-play"}}},mounted:function(){var e=this;this.app.options=this.$fhem.app.options,setInterval((function(){e.vals.systemIconValue=e.vals.systemIconValue===e.vals.playInfo1?e.vals.playInfo2:e.vals.playInfo1}),3e3)},methods:{sendCmd:function(e,t){var s=this;t?(this.pendingClick&&(clearTimeout(this.pendingClick),this.pendingClick=0),this.pendingClick=setTimeout((function(){s.$fhem.request(e)}),1e3)):this.$fhem.request(e)},setVolume:function(e){this.vals.volumeChanged=!0;var t=this.vals.zones.length>0?" GroupVolume":" Volume";"D"!=e&&"U"!=e&&(e=" "+e);var s="set "+this.item.Name+t+e;this.sendCmd(s)},setPlayer:function(e){var t="set "+this.item.Name+" "+e;this.sendCmd(t)},setPlay:function(){var e="set "+this.item.Name+(this.vals.play?" Pause":" Play");this.sendCmd(e)},setMute:function(){var e="set "+this.item.Name+(this.vals.mute?" Mute 0":" Mute 1");this.sendCmd(e)},expand:function(){this.expanded?(this.expanded=!1,this.maxIcon="mdi-arrow-expand"):(this.expanded=!0,this.maxIcon="mdi-arrow-collapse")}}},l=r,o=s("2877"),c=s("6544"),u=s.n(c),d=s("8336"),h=s("b0af"),v=s("99d9"),m=s("cc20"),p=s("62ad"),f=s("ce7e"),g=s("132d"),b=s("8e36"),_=s("0fd9"),y=s("ba0d"),k=s("2fa4"),V=s("afd9"),C=Object(o["a"])(l,a,i,!1,null,null,null);t["default"]=C.exports;u()(C,{VBtn:d["a"],VCard:h["a"],VCardText:v["c"],VCardTitle:v["d"],VChip:m["a"],VCol:p["a"],VDivider:f["a"],VIcon:g["a"],VProgressLinear:b["a"],VRow:_["a"],VSlider:y["a"],VSpacer:k["a"],VSystemBar:V["a"]})},e4d3:function(e,t,s){"use strict";var a=s("2b0e");t["a"]=a["a"].extend({name:"returnable",props:{returnValue:null},data:function(){return{isActive:!1,originalValue:null}},watch:{isActive:function(e){e?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save:function(e){var t=this;this.originalValue=e,setTimeout((function(){t.isActive=!1}))}}})}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-17d492e6"],{"297c":function(e,t,s){"use strict";s("a9e3");var a=s("2b0e"),i=s("37c6");t["a"]=a["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(i["a"],{props:{absolute:!0,color:!0===this.loading||""===this.loading?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}})},"37c6":function(e,t,s){"use strict";var a=s("8e36");t["a"]=a["a"]},"480e":function(e,t,s){"use strict";s("7db0");var a=s("7560");t["a"]=a["a"].extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark:function(){return this.root?this.rootIsDark:a["a"].options.computed.isDark.call(this)}},render:function(){return this.$slots.default&&this.$slots.default.find((function(e){return!e.isComment&&" "!==e.text}))}})},"615b":function(e,t,s){},"6ece":function(e,t,s){},"8e36":function(e,t,s){"use strict";var a=s("5530"),i=s("ade3"),n=(s("a9e3"),s("c7cd"),s("6ece"),s("0789")),r=s("a9ad"),l=s("fe6c"),o=s("a452"),c=s("7560"),u=s("80d2"),d=s("58df"),h=Object(d["a"])(r["a"],Object(l["b"])(["absolute","fixed","top","bottom"]),o["a"],c["a"]);t["a"]=h.extend({name:"v-progress-linear",props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:4},indeterminate:Boolean,query:Boolean,reverse:Boolean,rounded:Boolean,stream:Boolean,striped:Boolean,value:{type:[Number,String],default:0}},data:function(){return{internalLazyValue:this.value||0}},computed:{__cachedBackground:function(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle}))},__cachedBar:function(){return this.$createElement(this.computedTransition,[this.__cachedBarType])},__cachedBarType:function(){return this.indeterminate?this.__cachedIndeterminate:this.__cachedDeterminate},__cachedBuffer:function(){return this.$createElement("div",{staticClass:"v-progress-linear__buffer",style:this.styles})},__cachedDeterminate:function(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__determinate",style:{width:Object(u["g"])(this.normalizedValue,"%")}}))},__cachedIndeterminate:function(){return this.$createElement("div",{staticClass:"v-progress-linear__indeterminate",class:{"v-progress-linear__indeterminate--active":this.active}},[this.genProgressBar("long"),this.genProgressBar("short")])},__cachedStream:function(){return this.stream?this.$createElement("div",this.setTextColor(this.color,{staticClass:"v-progress-linear__stream",style:{width:Object(u["g"])(100-this.normalizedBuffer,"%")}})):null},backgroundStyle:function(){var e,t=null==this.backgroundOpacity?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity);return e={opacity:t},Object(i["a"])(e,this.isReversed?"right":"left",Object(u["g"])(this.normalizedValue,"%")),Object(i["a"])(e,"width",Object(u["g"])(this.normalizedBuffer-this.normalizedValue,"%")),e},classes:function(){return Object(a["a"])({"v-progress-linear--absolute":this.absolute,"v-progress-linear--fixed":this.fixed,"v-progress-linear--query":this.query,"v-progress-linear--reactive":this.reactive,"v-progress-linear--reverse":this.isReversed,"v-progress-linear--rounded":this.rounded,"v-progress-linear--striped":this.striped},this.themeClasses)},computedTransition:function(){return this.indeterminate?n["c"]:n["e"]},isReversed:function(){return this.$vuetify.rtl!==this.reverse},normalizedBuffer:function(){return this.normalize(this.bufferValue)},normalizedValue:function(){return this.normalize(this.internalLazyValue)},reactive:function(){return Boolean(this.$listeners.change)},styles:function(){var e={};return this.active||(e.height=0),this.indeterminate||100===parseFloat(this.normalizedBuffer)||(e.width=Object(u["g"])(this.normalizedBuffer,"%")),e}},methods:{genContent:function(){var e=Object(u["s"])(this,"default",{value:this.internalLazyValue});return e?this.$createElement("div",{staticClass:"v-progress-linear__content"},e):null},genListeners:function(){var e=this.$listeners;return this.reactive&&(e.click=this.onClick),e},genProgressBar:function(e){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:Object(i["a"])({},e,!0)}))},onClick:function(e){if(this.reactive){var t=this.$el.getBoundingClientRect(),s=t.width;this.internalValue=e.offsetX/s*100}},normalize:function(e){return e<0?0:e>100?100:parseFloat(e)}},render:function(e){var t={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,style:{bottom:this.bottom?0:void 0,height:this.active?Object(u["g"])(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return e("div",t,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}})},"99d9":function(e,t,s){"use strict";s.d(t,"a",(function(){return n})),s.d(t,"b",(function(){return r})),s.d(t,"c",(function(){return l})),s.d(t,"d",(function(){return o}));var a=s("b0af"),i=s("80d2"),n=Object(i["i"])("v-card__actions"),r=Object(i["i"])("v-card__subtitle"),l=Object(i["i"])("v-card__text"),o=Object(i["i"])("v-card__title");a["a"]},b0af:function(e,t,s){"use strict";var a=s("5530"),i=(s("a9e3"),s("0481"),s("615b"),s("10d2")),n=s("297c"),r=s("1c87"),l=s("58df");t["a"]=Object(l["a"])(n["a"],r["a"],i["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(a["a"])(Object(a["a"])({"v-card":!0},r["a"].options.computed.classes.call(this)),{},{"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised},i["a"].options.computed.classes.call(this))},styles:function(){var e=Object(a["a"])({},i["a"].options.computed.styles.call(this));return this.img&&(e.background='url("'.concat(this.img,'") center center / cover no-repeat')),e}},methods:{genProgress:function(){var e=n["a"].options.methods.genProgress.call(this);return e?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[e]):null}},render:function(e){var t=this.generateRouteLink(),s=t.tag,a=t.data;return a.style=this.styles,this.isClickable&&(a.attrs=a.attrs||{},a.attrs.tabindex=0),e(s,this.setBackgroundColor(this.color,a),[this.genProgress(),this.$slots.default])}})},dd08:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("v-col",{staticClass:"col-12 col-sm-6 col-md-4 col-lg-4"},[s("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[s("v-progress-linear",{attrs:{height:"7",value:e.vals.mainLevel,color:e.vals.mainColor,"background-color":"secondary darken-1"}}),s("v-card-title",{staticClass:"text-truncate"},[e._v(" "+e._s(e.vals.title)+" "),s("v-spacer"),e.app.options.debugMode?s("jsonList",{attrs:{item:e.item}}):e._e(),s("v-btn",{attrs:{small:"",icon:""},on:{click:e.expand}},[s("v-icon",{attrs:{small:""}},[e._v(" "+e._s(e.maxIcon)+" ")])],1)],1),s("v-divider"),s("v-card-text",[s("v-row",{attrs:{align:"center"}},[s("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e.expanded?e._e():s("v-btn",{attrs:{icon:""},on:{click:function(t){return e.setVolume("D")}}},[s("v-icon",{attrs:{large:""}},[e._v(" "+e._s(e.leftIcon)+" ")])],1),e.expanded?s("v-btn",{attrs:{icon:"",disabled:e.prevDisabled},on:{click:function(t){return e.setPlayer("Previous")}}},[s("v-icon",{attrs:{large:""}},[e._v(" "+e._s(e.prevIcon)+" ")])],1):e._e()],1),s("v-divider",{attrs:{vertical:""}}),s("v-col",{attrs:{align:"center"}},[s("v-btn",{attrs:{icon:""},on:{click:function(t){return e.setPlay()}}},[s("v-icon",{attrs:{large:""}},[e._v(" "+e._s(e.playIcon)+" ")])],1)],1),s("v-divider",{attrs:{vertical:""}}),s("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e.expanded?e._e():s("v-btn",{attrs:{icon:""},on:{click:function(t){return e.setVolume("U")}}},[s("v-icon",{attrs:{large:""}},[e._v(" "+e._s(e.rightIcon)+" ")])],1),e.expanded?s("v-btn",{attrs:{icon:"",disabled:e.nextDisabled},on:{click:function(t){return e.setPlayer("Next")}}},[s("v-icon",{attrs:{large:""}},[e._v(" "+e._s(e.nextIcon)+" ")])],1):e._e()],1)],1)],1),e.expanded?s("v-divider"):e._e(),e.expanded?s("v-card-text",[s("v-row",{attrs:{align:"center"}},[s("v-col",[s("v-slider",{attrs:{"hide-details":"",color:"accent"},on:{change:e.setVolume},scopedSlots:e._u([{key:"prepend",fn:function(){return[s("v-icon",{on:{click:function(t){return e.setMute()}}},[e._v(" "+e._s(e.volumeIcon)+" ")])]},proxy:!0}],null,!1,4048868738),model:{value:e.vals.volume,callback:function(t){e.$set(e.vals,"volume",t)},expression:"vals.volume"}})],1)],1),s("v-row",{attrs:{align:"center"}},[s("v-col",{staticClass:"col-4"}),s("v-col",{staticClass:"col-4 text-h6",attrs:{align:"center"}},[e._v(" "+e._s(e.vals.trackPosition)+" ")]),s("v-col",{staticClass:"col-4",attrs:{align:"center"}},[e._v(" "+e._s(e.vals.tracks)+" ")])],1)],1):e._e(),e.expanded&&e.vals.zones.length>0?s("v-divider"):e._e(),e.expanded&&e.vals.zones.length>0?s("v-card-text",[s("v-row",[s("v-col",e._l(e.vals.zones,(function(t){return s("span",{key:t},[s("v-chip",{staticClass:"mr-2",attrs:{small:""}},[e._v(e._s(t))])],1)})),0)],1)],1):e._e(),s("v-divider"),s("v-system-bar",{attrs:{color:"secondary darken-1"}},[s("v-icon",[e._v(e._s(e.vals.systemIcon))]),s("span",{staticClass:"text-truncate"},[e._v(e._s(e.vals.systemIconValue))])],1)],1)],1)},i=[],n=(s("4de4"),s("1276"),s("ac1f"),s("649b")),r={components:{jsonList:n["a"]},props:{item:{type:Object,default:function(){return{name:"sonos"}}}},data:function(){return{name:"sonos",app:{options:{debugMode:!1}},defaultSet:["Volume:^[0]$:stumm::success:mdi-volume-off","transportState:PLAYING:an:100:success:mdi-play","transportState::aus:0:success:mdi-pause"],vals:{title:"",mainState:"",mainLevel:0,mainColor:"",play:!1,volume:0,volumeChanged:!1,mute:!1,trackPosition:"",zones:[],tracks:"",playInfo1:"",playInfo2:"",systemIcon:"",systemIconValue:""},leftIcon:"mdi-minus",playIcon:"mdi-play",rightIcon:"mdi-plus",maxIcon:"mdi-arrow-expand",expanded:!1,prevIcon:"mdi-skip-previous",prevDisabled:!0,nextIcon:"mdi-skip-next",nextDisabled:!0,volumeIcon:"mdi-volume-high",pendingClick:0}},watch:{item:{immediate:!0,deep:!0,handler:function(e){var t=this.$fhem.getEl(e,"Readings","transportState","Value"),s=this.$fhem.getEl(e,"Readings","nextTrackHandle","Value")||"|",a=this.$fhem.getEl(e,"Readings","Volume","Value"),i=this.$fhem.getEl(e,"Readings","Mute","Value"),n=this.$fhem.getEl(e,"Readings","currentStreamAudio","Value"),r=this.$fhem.getEl(e,"Readings","currentSender","Value"),l=this.$fhem.getEl(e,"Readings","currentSenderInfo","Value"),o=this.$fhem.getEl(e,"Readings","currentAlbum","Value"),c=this.$fhem.getEl(e,"Readings","currentArtist","Value"),u=this.$fhem.getEl(e,"Readings","currentTitle","Value"),d=this.$fhem.getEl(e,"Readings","currentTrack","Value"),h=this.$fhem.getEl(e,"Readings","numberOfTracks","Value"),v=this.$fhem.getEl(e,"Readings","ZoneGroupNameDetails","Value"),m=this.$fhem.getEl(e,"Attributes","alias")||e.Name;this.vals.title=this.$fhem.getEl(e,"Options","name")||m,this.vals=this.$fhem.handleStates(e,this.vals,this.defaultSet),v&&(this.vals.title+=" (gruppiert)"),this.vals.zones=v.split(" + ").filter(Boolean),this.prevDisabled=!(s.split("|")[0].length>0),this.nextDisabled=!(s.split("|")[1].length>0),this.vals.trackPosition=this.$fhem.getEl(e,"Readings","currentTrackPositionSimulated","Value"),this.vals.volumeChanged&&this.vals.volume===parseInt(a)&&(this.vals.volumeChanged=!1),this.vals.volumeChanged||(this.vals.volume=parseInt(a)),this.vals.mute="1"===i,this.volumeIcon=this.vals.mute?"mdi-volume-mute":"mdi-volume-high",o+=c?" ("+c+")":"",this.vals.playInfo1="1"===n?r:o,this.vals.playInfo2="1"===n?l:u,this.vals.systemIconValue||(this.vals.systemIconValue=this.vals.playInfo1),this.vals.tracks="0"===n?d+" von "+h:"",this.vals.play="PLAYING"===t,this.playIcon=this.vals.play?"mdi-pause":"mdi-play"}}},mounted:function(){var e=this;this.app.options=this.$fhem.app.options,setInterval((function(){e.vals.systemIconValue=e.vals.systemIconValue===e.vals.playInfo1?e.vals.playInfo2:e.vals.playInfo1}),3e3)},methods:{sendCmd:function(e,t){var s=this;t?(this.pendingClick&&(clearTimeout(this.pendingClick),this.pendingClick=0),this.pendingClick=setTimeout((function(){s.$fhem.request(e)}),1e3)):this.$fhem.request(e)},setVolume:function(e){this.vals.volumeChanged=!0;var t=this.vals.zones.length>0?" GroupVolume":" Volume";"D"!=e&&"U"!=e&&(e=" "+e);var s="set "+this.item.Name+t+e;this.sendCmd(s)},setPlayer:function(e){var t="set "+this.item.Name+" "+e;this.sendCmd(t)},setPlay:function(){var e="set "+this.item.Name+(this.vals.play?" Pause":" Play");this.sendCmd(e)},setMute:function(){var e="set "+this.item.Name+(this.vals.mute?" Mute 0":" Mute 1");this.sendCmd(e)},expand:function(){this.expanded?(this.expanded=!1,this.maxIcon="mdi-arrow-expand"):(this.expanded=!0,this.maxIcon="mdi-arrow-collapse")}}},l=r,o=s("2877"),c=s("6544"),u=s.n(c),d=s("8336"),h=s("b0af"),v=s("99d9"),m=s("cc20"),p=s("62ad"),g=s("ce7e"),f=s("132d"),b=s("8e36"),_=s("0fd9"),y=s("ba0d"),k=s("2fa4"),V=s("afd9"),C=Object(o["a"])(l,a,i,!1,null,null,null);t["default"]=C.exports;u()(C,{VBtn:d["a"],VCard:h["a"],VCardText:v["c"],VCardTitle:v["d"],VChip:m["a"],VCol:p["a"],VDivider:g["a"],VIcon:f["a"],VProgressLinear:b["a"],VRow:_["a"],VSlider:y["a"],VSpacer:k["a"],VSystemBar:V["a"]})},e4d3:function(e,t,s){"use strict";var a=s("2b0e");t["a"]=a["a"].extend({name:"returnable",props:{returnValue:null},data:function(){return{isActive:!1,originalValue:null}},watch:{isActive:function(e){e?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save:function(e){var t=this;this.originalValue=e,setTimeout((function(){t.isActive=!1}))}}})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-27250ed3.42ccfa4a.js b/www/fhemapp/js/chunk-27250ed3.42ccfa4a.js deleted file mode 100644 index 1986f1e2..00000000 --- a/www/fhemapp/js/chunk-27250ed3.42ccfa4a.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-27250ed3"],{"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"]},"615b":function(t,e,s){},"6ece":function(t,e,s){},8308: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-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"),{props:{item:{type:Object,default:function(){return{name:"sysmon"}}}},data:function(){return{name:"sysmon",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...",app:{options:{updateProcess:!1}}}},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=s.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")}}}),l=o,c=s("2877"),h=s("6544"),u=s.n(h),d=s("8336"),f=s("b0af"),m=s("99d9"),v=s("62ad"),p=s("ce7e"),g=s("132d"),b=s("8e36"),_=s("0fd9"),y=s("2fa4"),x=s("afd9"),B=Object(c["a"])(l,i,a,!1,null,null,null);e["default"]=B.exports;u()(B,{VBtn:d["a"],VCard:f["a"],VCardActions:m["a"],VCardSubtitle:m["b"],VCardText:m["c"],VCardTitle:m["d"],VCol:v["a"],VDivider:p["a"],VIcon:g["a"],VProgressLinear:b["a"],VRow:_["a"],VSpacer:y["a"],VSystemBar:x["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"]},afd9:function(t,e,s){"use strict";var i=s("5530"),a=(s("a9e3"),s("c7cd"),s("8308"),s("3a66")),r=s("a9ad"),n=s("7560"),o=s("58df"),l=s("80d2");e["a"]=Object(o["a"])(Object(a["a"])("bar",["height","window"]),r["a"],n["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(l["g"])(this.computedHeight)}}},methods:{updateApplication:function(){return this.$el?this.$el.clientHeight:this.computedHeight}},render:function(t){var e={staticClass:"v-system-bar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,e),Object(l["s"])(this))}})},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])}})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-2d212bf1.75844e75.js b/www/fhemapp/js/chunk-2d212bf1.75844e75.js deleted file mode 100644 index d6f7245e..00000000 --- a/www/fhemapp/js/chunk-2d212bf1.75844e75.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d212bf1"],{aa72:function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("v-row",e._l(e.app.data.deviceList,(function(e){return t(e.Options.component,{key:e.Internals.FUUID,tag:"component",attrs:{item:e}})})),1)],1)},s=[],o=(t("d3b7"),t("3ca3"),t("ddb0"),t("b0c0"),t("466d"),t("ac1f"),t("4de4"),t("1276"),{name:"Devices",components:{templ_default:function(){return Promise.all([t.e("chunk-28a3f15f"),t.e("chunk-45f3f6c7"),t.e("chunk-2d0aa92c")]).then(t.bind(null,"121f"))},templ_panel:function(){return Promise.all([t.e("chunk-28a3f15f"),t.e("chunk-dc5178fa")]).then(t.bind(null,"5d11"))},templ_chart:function(){return Promise.all([t.e("chunk-28a3f15f"),t.e("chunk-07709945"),t.e("chunk-53c4ff2a")]).then(t.bind(null,"b009"))},templ_weather:function(){return t.e("chunk-03454508").then(t.bind(null,"1de8"))},templ_scenes:function(){return Promise.all([t.e("chunk-28a3f15f"),t.e("chunk-dd03e16c")]).then(t.bind(null,"09fe"))},templ_sonos:function(){return Promise.all([t.e("chunk-45f3f6c7"),t.e("chunk-3c9d184f")]).then(t.bind(null,"dd08"))},templ_sysmon:function(){return t.e("chunk-27250ed3").then(t.bind(null,"86eb"))},templ_hmlan:function(){return t.e("chunk-15fa718e").then(t.bind(null,"fca9"))}},data:function(){return{app:{session:{connect:!1},options:{mobileHeader:!1},data:{deviceList:[],header:""}}}},watch:{$route:function(){this.subscribe()}},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.app.componentMap=[{name:"panel",component:"templ_panel"},{name:"chart",component:"templ_chart"},{name:"weather",component:"templ_weather"},{name:"sysmon",component:"templ_sysmon"},{name:"hmlan",component:"templ_hmlan"},{name:"sonos",component:"templ_sonos"},{name:"scenes",component:"templ_scenes"}],this.$fhem.on("connect",(function(){return e.subscribe()})),this.subscribe()},methods:{setHeader:function(){this.app.options.mobileHeader&&("Devices"===this.$route.name?this.$route.params.filter.match("device=")?this.app.data.header="":this.app.data.header=this.$route.params.filter.split("=")[1]:this.app.data.header=this.$route.name)},subscribe:function(){if(this.app.session.connect){var e="";this.$route.params.filter&&(e=this.$route.params.filter),"Dashboard"==this.$route.name&&(e="app=dashboard"),"System"==this.$route.name&&(e="app=system"),"Home"==this.$route.name&&(e="app=home"),this.setHeader(),this.$fhem.getDevices(e)}}}}),i=o,c=t("2877"),p=t("6544"),h=t.n(p),r=t("0fd9"),u=Object(c["a"])(i,a,s,!1,null,null,null);n["default"]=u.exports;h()(u,{VRow:r["a"]})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-2d212bf1.e78db2a1.js b/www/fhemapp/js/chunk-2d212bf1.e78db2a1.js new file mode 100644 index 00000000..ac79593f --- /dev/null +++ b/www/fhemapp/js/chunk-2d212bf1.e78db2a1.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d212bf1"],{aa72:function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("v-row",e._l(e.app.data.deviceList,(function(e){return t(e.Options.component,{key:e.Internals.FUUID,tag:"component",attrs:{item:e}})})),1)],1)},s=[],o=(t("d3b7"),t("3ca3"),t("ddb0"),t("b0c0"),t("466d"),t("ac1f"),t("4de4"),t("1276"),{name:"Devices",components:{templ_default:function(){return Promise.all([t.e("chunk-28a3f15f"),t.e("chunk-d4e16e04"),t.e("chunk-4a62a958"),t.e("chunk-2d0aa92c")]).then(t.bind(null,"121f"))},templ_panel:function(){return Promise.all([t.e("chunk-28a3f15f"),t.e("chunk-dc5178fa")]).then(t.bind(null,"5d11"))},templ_chart:function(){return Promise.all([t.e("chunk-28a3f15f"),t.e("chunk-07709945"),t.e("chunk-53c4ff2a")]).then(t.bind(null,"b009"))},templ_weather:function(){return t.e("chunk-03454508").then(t.bind(null,"1de8"))},templ_scenes:function(){return Promise.all([t.e("chunk-28a3f15f"),t.e("chunk-dd03e16c")]).then(t.bind(null,"09fe"))},templ_sonos:function(){return Promise.all([t.e("chunk-d4e16e04"),t.e("chunk-4a62a958"),t.e("chunk-17d492e6")]).then(t.bind(null,"dd08"))},templ_sysmon:function(){return Promise.all([t.e("chunk-d4e16e04"),t.e("chunk-b2de1140")]).then(t.bind(null,"86eb"))},templ_hmlan:function(){return t.e("chunk-15fa718e").then(t.bind(null,"fca9"))}},data:function(){return{app:{session:{connect:!1},options:{mobileHeader:!1},data:{deviceList:[],header:""}}}},watch:{$route:function(){this.subscribe()}},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.app.componentMap=[{name:"panel",component:"templ_panel"},{name:"chart",component:"templ_chart"},{name:"weather",component:"templ_weather"},{name:"sysmon",component:"templ_sysmon"},{name:"hmlan",component:"templ_hmlan"},{name:"sonos",component:"templ_sonos"},{name:"scenes",component:"templ_scenes"}],this.$fhem.on("connect",(function(){return e.subscribe()})),this.subscribe()},methods:{setHeader:function(){this.app.options.mobileHeader&&("Devices"===this.$route.name?this.$route.params.filter.match("device=")?this.app.data.header="":this.app.data.header=this.$route.params.filter.split("=")[1]:this.app.data.header=this.$route.name)},subscribe:function(){if(this.app.session.connect){var e="";this.$route.params.filter&&(e=this.$route.params.filter),"Dashboard"==this.$route.name&&(e="app=dashboard"),"System"==this.$route.name&&(e="app=system"),"Home"==this.$route.name&&(e="app=home"),this.setHeader(),this.$fhem.getDevices(e)}}}}),i=o,c=t("2877"),h=t("6544"),p=t.n(h),r=t("0fd9"),u=Object(c["a"])(i,a,s,!1,null,null,null);n["default"]=u.exports;p()(u,{VRow:r["a"]})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-45f3f6c7.2f66e0ee.js b/www/fhemapp/js/chunk-45f3f6c7.2f66e0ee.js deleted file mode 100644 index 5ca0c341..00000000 --- a/www/fhemapp/js/chunk-45f3f6c7.2f66e0ee.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-45f3f6c7"],{"169a":function(t,e,n){"use strict";var i=n("5530"),s=n("2909"),r=n("ade3"),a=(n("a9e3"),n("498a"),n("caad"),n("2532"),n("7db0"),n("368e"),n("480e")),o=n("4ad4"),l=n("b848"),u=n("75eb"),c=n("e707"),h=n("e4d3"),d=n("21be"),f=n("f2e7"),p=n("a293"),v=n("58df"),m=n("d9bd"),b=n("80d2"),g=Object(v["a"])(o["a"],l["a"],u["a"],c["a"],h["a"],d["a"],f["a"]);e["a"]=g.extend({name:"v-dialog",directives:{ClickOutside:p["a"]},props:{dark:Boolean,disabled:Boolean,fullscreen:Boolean,light:Boolean,maxWidth:{type:[String,Number],default:"none"},noClickAnimation:Boolean,origin:{type:String,default:"center center"},persistent:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,transition:{type:[String,Boolean],default:"dialog-transition"},width:{type:[String,Number],default:"auto"}},data:function(){return{activatedBy:null,animate:!1,animateTimeout:-1,isActive:!!this.value,stackMinZIndex:200,previousActiveElement:null}},computed:{classes:function(){var t;return t={},Object(r["a"])(t,"v-dialog ".concat(this.contentClass).trim(),!0),Object(r["a"])(t,"v-dialog--active",this.isActive),Object(r["a"])(t,"v-dialog--persistent",this.persistent),Object(r["a"])(t,"v-dialog--fullscreen",this.fullscreen),Object(r["a"])(t,"v-dialog--scrollable",this.scrollable),Object(r["a"])(t,"v-dialog--animated",this.animate),t},contentClasses:function(){return{"v-dialog__content":!0,"v-dialog__content--active":this.isActive}},hasActivator:function(){return Boolean(!!this.$slots.activator||!!this.$scopedSlots.activator)}},watch:{isActive:function(t){var e;t?(this.show(),this.hideScroll()):(this.removeOverlay(),this.unbind(),null==(e=this.previousActiveElement)||e.focus())},fullscreen:function(t){this.isActive&&(t?(this.hideScroll(),this.removeOverlay(!1)):(this.showScroll(),this.genOverlay()))}},created:function(){this.$attrs.hasOwnProperty("full-width")&&Object(m["e"])("full-width",this)},beforeMount:function(){var t=this;this.$nextTick((function(){t.isBooted=t.isActive,t.isActive&&t.show()}))},beforeDestroy:function(){"undefined"!==typeof window&&this.unbind()},methods:{animateClick:function(){var t=this;this.animate=!1,this.$nextTick((function(){t.animate=!0,window.clearTimeout(t.animateTimeout),t.animateTimeout=window.setTimeout((function(){return t.animate=!1}),150)}))},closeConditional:function(t){var e=t.target;return!(this._isDestroyed||!this.isActive||this.$refs.content.contains(e)||this.overlay&&e&&!this.overlay.$el.contains(e))&&this.activeZIndex>=this.getMaxZIndex()},hideScroll:function(){this.fullscreen?document.documentElement.classList.add("overflow-y-hidden"):c["a"].options.methods.hideScroll.call(this)},show:function(){var t=this;!this.fullscreen&&!this.hideOverlay&&this.genOverlay(),this.$nextTick((function(){t.$nextTick((function(){t.previousActiveElement=document.activeElement,t.$refs.content.focus(),t.bind()}))}))},bind:function(){window.addEventListener("focusin",this.onFocusin)},unbind:function(){window.removeEventListener("focusin",this.onFocusin)},onClickOutside:function(t){this.$emit("click:outside",t),this.persistent?this.noClickAnimation||this.animateClick():this.isActive=!1},onKeydown:function(t){if(t.keyCode===b["x"].esc&&!this.getOpenDependents().length)if(this.persistent)this.noClickAnimation||this.animateClick();else{this.isActive=!1;var e=this.getActivator();this.$nextTick((function(){return e&&e.focus()}))}this.$emit("keydown",t)},onFocusin:function(t){if(t&&this.retainFocus){var e=t.target;if(e&&![document,this.$refs.content].includes(e)&&!this.$refs.content.contains(e)&&this.activeZIndex>=this.getMaxZIndex()&&!this.getOpenDependentElements().some((function(t){return t.contains(e)}))){var n=this.$refs.content.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),i=Object(s["a"])(n).find((function(t){return!t.hasAttribute("disabled")}));i&&i.focus()}}},genContent:function(){var t=this;return this.showLazyContent((function(){return[t.$createElement(a["a"],{props:{root:!0,light:t.light,dark:t.dark}},[t.$createElement("div",{class:t.contentClasses,attrs:Object(i["a"])({role:"document",tabindex:t.isActive?0:void 0},t.getScopeIdAttrs()),on:{keydown:t.onKeydown},style:{zIndex:t.activeZIndex},ref:"content"},[t.genTransition()])])]}))},genTransition:function(){var t=this.genInnerContent();return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,appear:!0}},[t]):t},genInnerContent:function(){var t={class:this.classes,ref:"dialog",directives:[{name:"click-outside",value:{handler:this.onClickOutside,closeConditional:this.closeConditional,include:this.getOpenDependentElements}},{name:"show",value:this.isActive}],style:{transformOrigin:this.origin}};return this.fullscreen||(t.style=Object(i["a"])(Object(i["a"])({},t.style),{},{maxWidth:"none"===this.maxWidth?void 0:Object(b["g"])(this.maxWidth),width:"auto"===this.width?void 0:Object(b["g"])(this.width)})),this.$createElement("div",t,this.getContentSlot())}},render:function(t){return t("div",{staticClass:"v-dialog__container",class:{"v-dialog__container--attached":""===this.attach||!0===this.attach||"attach"===this.attach},attrs:{role:"dialog"}},[this.genActivator(),this.genContent()])}})},"1b2c":function(t,e,n){},"368e":function(t,e,n){},"38cb":function(t,e,n){"use strict";var i=n("53ca"),s=(n("a9e3"),n("fb6a"),n("a9ad")),r=n("7560"),a=n("3206"),o=n("80d2"),l=n("d9bd"),u=n("58df"),c=Object(u["a"])(s["a"],Object(a["a"])("form"),r["a"]);e["a"]=c.extend({name:"validatable",props:{disabled:Boolean,error:Boolean,errorCount:{type:[Number,String],default:1},errorMessages:{type:[String,Array],default:function(){return[]}},messages:{type:[String,Array],default:function(){return[]}},readonly:Boolean,rules:{type:Array,default:function(){return[]}},success:Boolean,successMessages:{type:[String,Array],default:function(){return[]}},validateOnBlur:Boolean,value:{required:!1}},data:function(){return{errorBucket:[],hasColor:!1,hasFocused:!1,hasInput:!1,isFocused:!1,isResetting:!1,lazyValue:this.value,valid:!1}},computed:{computedColor:function(){if(!this.isDisabled)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},hasError:function(){return this.internalErrorMessages.length>0||this.errorBucket.length>0||this.error},hasSuccess:function(){return this.internalSuccessMessages.length>0||this.success},externalError:function(){return this.internalErrorMessages.length>0||this.error},hasMessages:function(){return this.validationTarget.length>0},hasState:function(){return!this.isDisabled&&(this.hasSuccess||this.shouldValidate&&this.hasError)},internalErrorMessages:function(){return this.genInternalMessages(this.errorMessages)},internalMessages:function(){return this.genInternalMessages(this.messages)},internalSuccessMessages:function(){return this.genInternalMessages(this.successMessages)},internalValue:{get:function(){return this.lazyValue},set:function(t){this.lazyValue=t,this.$emit("input",t)}},isDisabled:function(){return this.disabled||!!this.form&&this.form.disabled},isInteractive:function(){return!this.isDisabled&&!this.isReadonly},isReadonly:function(){return this.readonly||!!this.form&&this.form.readonly},shouldValidate:function(){return!!this.externalError||!this.isResetting&&(this.validateOnBlur?this.hasFocused&&!this.isFocused:this.hasInput||this.hasFocused)},validations:function(){return this.validationTarget.slice(0,Number(this.errorCount))},validationState:function(){if(!this.isDisabled)return this.hasError&&this.shouldValidate?"error":this.hasSuccess?"success":this.hasColor?this.computedColor:void 0},validationTarget:function(){return this.internalErrorMessages.length>0?this.internalErrorMessages:this.successMessages&&this.successMessages.length>0?this.internalSuccessMessages:this.messages&&this.messages.length>0?this.internalMessages:this.shouldValidate?this.errorBucket:[]}},watch:{rules:{handler:function(t,e){Object(o["j"])(t,e)||this.validate()},deep:!0},internalValue:function(){this.hasInput=!0,this.validateOnBlur||this.$nextTick(this.validate)},isFocused:function(t){t||this.isDisabled||(this.hasFocused=!0,this.validateOnBlur&&this.$nextTick(this.validate))},isResetting:function(){var t=this;setTimeout((function(){t.hasInput=!1,t.hasFocused=!1,t.isResetting=!1,t.validate()}),0)},hasError:function(t){this.shouldValidate&&this.$emit("update:error",t)},value:function(t){this.lazyValue=t}},beforeMount:function(){this.validate()},created:function(){this.form&&this.form.register(this)},beforeDestroy:function(){this.form&&this.form.unregister(this)},methods:{genInternalMessages:function(t){return t?Array.isArray(t)?t:[t]:[]},reset:function(){this.isResetting=!0,this.internalValue=Array.isArray(this.internalValue)?[]:null},resetValidation:function(){this.isResetting=!0},validate:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0,n=[];e=e||this.internalValue,t&&(this.hasInput=this.hasFocused=!0);for(var s=0;s1?1:5}}},[n("v-icon",[t._v("mdi-file-tree-outline")])],1),n("v-spacer"),t._v(" "+t._s(t.item.Name)+" "),n("v-spacer"),n("v-btn",{attrs:{icon:""},on:{click:function(e){t.dialog=!1}}},[n("v-icon",[t._v("mdi-close")])],1)],1),n("v-divider"),n("v-card-text",{staticClass:"secondary lighten-2"},[n("vue-json-pretty",{attrs:{"show-line":!1,deep:t.deep,data:t.item}})],1)],1)],1)],1)},s=[],r=n("838b"),a=n.n(r),o=(n("b83f"),{props:{item:{type:Object,default:function(){return{name:"json"}}}},data:function(){return{dialog:!1,deep:1}},components:{VueJsonPretty:a.a}}),l=o,u=n("2877"),c=n("6544"),h=n.n(c),d=n("8336"),f=n("b0af"),p=n("99d9"),v=n("169a"),m=n("ce7e"),b=n("132d"),g=n("2fa4"),y=Object(u["a"])(l,i,s,!1,null,null,null);e["a"]=y.exports;h()(y,{VBtn:d["a"],VCard:f["a"],VCardText:p["c"],VCardTitle:p["d"],VDialog:v["a"],VDivider:m["a"],VIcon:b["a"],VSpacer:g["a"]})},8308:function(t,e,n){},"838b":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var s=e[i]={i:i,l:!1,exports:{}};return t[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var s in t)n.d(i,s,function(e){return t[e]}.bind(null,s));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=67)}([function(t,e){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(t,e,n){var i=n(25)("wks"),s=n(27),r=n(2).Symbol,a="function"==typeof r;(t.exports=function(t){return i[t]||(i[t]=a&&r[t]||(a?r:s)("Symbol."+t))}).store=i},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){t.exports=!n(8)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,n){var i=n(2),s=n(0),r=n(19),a=n(5),o=n(9),l=function(t,e,n){var u,c,h,d=t&l.F,f=t&l.G,p=t&l.S,v=t&l.P,m=t&l.B,b=t&l.W,g=f?s:s[e]||(s[e]={}),y=g.prototype,k=f?i:p?i[e]:(i[e]||{}).prototype;for(u in f&&(n=e),n)(c=!d&&k&&void 0!==k[u])&&o(g,u)||(h=c?k[u]:n[u],g[u]=f&&"function"!=typeof k[u]?n[u]:m&&c?r(h,i):b&&k[u]==h?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):v&&"function"==typeof h?r(Function.call,h):h,v&&((g.virtual||(g.virtual={}))[u]=h,t&l.R&&y&&!y[u]&&a(y,u,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e,n){var i=n(6),s=n(13);t.exports=n(3)?function(t,e,n){return i.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(7),s=n(36),r=n(37),a=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(i(t),e=r(e,!0),i(n),s)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(12);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var i=n(15);t.exports=function(t){return Object(i(t))}},function(t,e,n){t.exports={default:n(62),__esModule:!0}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(39),s=n(28);t.exports=Object.keys||function(t){return i(t,s)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(25)("keys"),s=n(27);t.exports=function(t){return i[t]||(i[t]=s(t))}},function(t,e){t.exports={}},function(t,e,n){var i=n(35);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,s){return t.call(e,n,i,s)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(12),s=n(2).document,r=i(s)&&i(s.createElement);t.exports=function(t){return r?s.createElement(t):{}}},function(t,e,n){var i=n(22),s=n(15);t.exports=function(t){return i(s(t))}},function(t,e,n){var i=n(23);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(16),s=Math.min;t.exports=function(t){return t>0?s(i(t),9007199254740991):0}},function(t,e,n){var i=n(0),s=n(2),r=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(26)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!0},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var i=n(6).f,s=n(9),r=n(1)("toStringTag");t.exports=function(t,e,n){t&&!s(t=n?t:t.prototype,r)&&i(t,r,{configurable:!0,value:e})}},function(t,e,n){t.exports={default:n(33),__esModule:!0}},function(t){t.exports=JSON.parse('{"name":"vue-json-pretty","version":"1.7.1","description":"A JSON tree view component that is easy to use and also supports data selection.","author":"leezng ","main":"lib/vue-json-pretty.js","scripts":{"dev":"node build/dev-server.js","build":"node build/build.js","build:example":"cross-env EXAMPLE_ENV=true node build/build.js","e2e":"node test/e2e/runner.js","test":"npm run e2e","lint":"eslint --ext .js,.vue src test/e2e/specs example"},"repository":{"type":"git","url":"git@github.com:leezng/vue-json-pretty.git"},"homepage":"https://leezng.github.io/vue-json-pretty","keywords":["vue","json","format","pretty","vue-component"],"license":"MIT","bugs":{"url":"https://github.com/leezng/vue-json-pretty/issues"},"devDependencies":{"autoprefixer":"^7.1.2","babel-core":"^6.26.3","babel-loader":"7","babel-plugin-transform-runtime":"^6.23.0","babel-preset-env":"^1.7.0","babel-preset-stage-2":"^6.24.1","chalk":"^2.0.1","clean-webpack-plugin":"^3.0.0","connect-history-api-fallback":"^1.3.0","copy-webpack-plugin":"^6.0.2","cross-env":"^7.0.2","cross-spawn":"^5.0.1","css-loader":"^0.28.0","cssnano":"^3.10.0","eslint":"^7.3.1","eslint-friendly-formatter":"^4.0.1","eslint-loader":"^4.0.2","eslint-plugin-vue":"^6.2.2","eventsource-polyfill":"^0.9.6","express":"^4.17.1","file-loader":"^6.0.0","friendly-errors-webpack-plugin":"^1.7.0","html-webpack-plugin":"^4.3.0","http-proxy-middleware":"^0.17.3","less":"^3.11.3","less-loader":"^6.1.2","mini-css-extract-plugin":"^0.9.0","nightwatch":"^1.0.19","opn":"^5.1.0","optimize-css-assets-webpack-plugin":"^5.0.3","selenium-server":"^3.0.1","semver":"^5.3.0","shelljs":"^0.7.6","url-loader":"^4.1.0","vue":"^2.6.11","vue-loader":"^14.2.4","vue-style-loader":"^4.1.2","vue-template-compiler":"^2.6.11","webpack":"^4.43.0","webpack-bundle-analyzer":"^3.8.0","webpack-dev-middleware":"^3.7.2","webpack-hot-middleware":"^2.25.0","webpack-merge":"^4.1.0"},"engines":{"node":">= 10.0.0","npm":">= 5.0.0"},"browserslist":["> 1%","last 10 versions","not ie <= 11"],"files":["lib"],"dependencies":{}}')},function(t,e,n){"use strict";e.__esModule=!0;var i,s=n(44),r=(i=s)&&i.__esModule?i:{default:i};e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);ec;)for(var f,p=l(arguments[c++]),v=h?s(p).concat(h(p)):s(p),m=v.length,b=0;m>b;)f=v[b++],i&&!d.call(p,f)||(n[f]=p[f]);return n}:u},function(t,e,n){var i=n(9),s=n(21),r=n(40)(!1),a=n(17)("IE_PROTO");t.exports=function(t,e){var n,o=s(t),l=0,u=[];for(n in o)n!=a&&i(o,n)&&u.push(n);for(;e.length>l;)i(o,n=e[l++])&&(~r(u,n)||u.push(n));return u}},function(t,e,n){var i=n(21),s=n(24),r=n(41);t.exports=function(t){return function(e,n,a){var o,l=i(e),u=s(l.length),c=r(a,u);if(t&&n!=n){for(;u>c;)if((o=l[c++])!=o)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var i=n(16),s=Math.max,r=Math.min;t.exports=function(t,e){return(t=i(t))<0?s(t+e,0):r(t,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){t.exports={default:n(45),__esModule:!0}},function(t,e,n){n(46),n(55),t.exports=n(0).Array.from},function(t,e,n){"use strict";var i=n(47)(!0);n(48)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})}))},function(t,e,n){var i=n(16),s=n(15);t.exports=function(t){return function(e,n){var r,a,o=String(s(e)),l=i(n),u=o.length;return l<0||l>=u?t?"":void 0:(r=o.charCodeAt(l))<55296||r>56319||l+1===u||(a=o.charCodeAt(l+1))<56320||a>57343?t?o.charAt(l):r:t?o.slice(l,l+2):a-56320+(r-55296<<10)+65536}}},function(t,e,n){"use strict";var i=n(26),s=n(4),r=n(49),a=n(5),o=n(18),l=n(50),u=n(29),c=n(54),h=n(1)("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,n,p,v,m,b){l(n,e,p);var g,y,k,w=function(t){if(!d&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",x="values"==v,C=!1,S=t.prototype,O=S[h]||S["@@iterator"]||v&&S[v],j=O||w(v),$=v?x?w("entries"):j:void 0,M="Array"==e&&S.entries||O;if(M&&(k=c(M.call(new t)))!==Object.prototype&&k.next&&(u(k,_,!0),i||"function"==typeof k[h]||a(k,h,f)),x&&O&&"values"!==O.name&&(C=!0,j=function(){return O.call(this)}),i&&!b||!d&&!C&&S[h]||a(S,h,j),o[e]=j,o[_]=f,v)if(g={values:x?j:w("values"),keys:m?j:w("keys"),entries:$},b)for(y in g)y in S||r(S,y,g[y]);else s(s.P+s.F*(d||C),e,g);return g}},function(t,e,n){t.exports=n(5)},function(t,e,n){"use strict";var i=n(51),s=n(13),r=n(29),a={};n(5)(a,n(1)("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=i(a,{next:s(1,n)}),r(t,e+" Iterator")}},function(t,e,n){var i=n(7),s=n(52),r=n(28),a=n(17)("IE_PROTO"),o=function(){},l=function(){var t,e=n(20)("iframe"),i=r.length;for(e.style.display="none",n(53).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("