diff --git a/README.md b/README.md index 2c035f0a..245fc313 100644 --- a/README.md +++ b/README.md @@ -165,13 +165,15 @@ In den Template-Dateien können folgende Eigenschaften definiert werden. Die Zuw "leftClick": ["reading:value:set_param"], "leftLong": ["reading:value:set_param"], "leftLongRelease": ["reading:value:set_param"], + "leftMenu": ["text:set_param"], "text": ["reading:value:text"], "text2": ["reading:value:text"], "slider": ["reading:value:set_param:current:min:max"], "rightBtn": ["reading:value:icon:disabled"], "rightClick": ["reading:value:set_param"], "rightLong": ["reading:value:set_param"], - "rightLongRelease": ["reading:value:set_param"] + "rightLongRelease": ["reading:value:set_param"], + "rightMenu": ["text:set_param"] } ], "info": { @@ -211,6 +213,7 @@ Beispiele: |main|leftClick|reading:wert:cmd|defniert welches FHEM-Kommando bei Klick auf die linke Taste abgesendet wird. *Hinweis:* `set ` kann weggelassen werden| |main|leftLong|reading:wert:cmd|defniert welches FHEM-Kommando bei langem Halten der linken Taste abgesendet wird. *Hinweis:* `set ` kann weggelassen werden| |main|leftLongRelease|reading:wert:cmd|defniert welches FHEM-Kommando beim loslassen nach langem Halten der linken Taste abgesendet wird. *Hinweis:* `set ` kann weggelassen werden| +|main|leftMenu|text:cmd|definiert für das **linke Menü** die Texte und FHEM-Kommandos. Wenn dieses Element zugewiesen wird, klappt bei Klick auf die linke Taste ein Menü auf. *Hinweis:* leftClick, leftLong und leftLongRelease stehen bei Zuweisung des Menüs nicht zur Verfügung.| |main|text|reading:wert:text|definiert den **ersten Text** der in der Mitte angezeigt wird| |main|text2|reading:wert:text|definiert den **zweiten Text** der in der Mitte angezeigt wird *Hinweis:* bei Verwendung von Tasten sollte auf die Anzeige eines zweiten Wertes verzichtet werden, da die Breite des Templates im Normalfall nicht ausreicht| |main|slider|reading:wert:cmd:current:min:max|stellt einen **Slider** in der Mitte dar. In diesem Fall werden die Elemente `text` und `text2` nicht angezeigt und evtl. definierte Tasten reagieren nur auf `leftClick` bzw. `rightClick`. *Wichtig:* `cmd` muss die Ersetzung *%v* (den aktuellen Wert des Sliders) enthalten. `current` sollte nur die Ersetzung *%n* enthalten, damit der Slider den aktuellen Wert des Readings anzeigt. `min` und `max` begrenzen die Sliderwerte. *Beispiel:* `["pct::pct %v:%n:0:100"]` verbindet das Reading `pct` mit einem Slider und begrenzt die Werte auf 0-100| @@ -218,6 +221,7 @@ Beispiele: |main|leftClick|reading:wert:cmd|defniert welches FHEM-Kommando bei Klick auf die rechte Taste abgesendet wird. *Hinweis:* `set ` kann weggelassen werden| |main|rightLong|reading:wert:cmd|defniert welches FHEM-Kommando bei langem Halten der rechten Taste abgesendet wird. *Hinweis:* `set ` kann weggelassen werden| |main|rightLongRelease|reading:wert:cmd|defniert welches FHEM-Kommando beim loslassen nach langem Halten der rechten Taste abgesendet wird. *Hinweis:* `set ` kann weggelassen werden| +|main|rightMenu|text:cmd|definiert für das **rechte Menü** die Texte und FHEM-Kommandos. Wenn dieses Element zugewiesen wird, klappt bei Klick auf die rechte Taste ein Menü auf. *Hinweis:* rightClick, rightLong und rightLongRelease stehen bei Zuweisung des Menüs nicht zur Verfügung.| |info|left1..2,
mid1..2,
right1..2|reading:wert:text:icon|definiert welches **Icon** und welcher **Text** in der Infozeile anzeigeigt wird| # Übersicht der verfügbaren Templates diff --git a/src/App.vue b/src/App.vue index f99e84e4..1a8da1ce 100644 --- a/src/App.vue +++ b/src/App.vue @@ -114,7 +114,7 @@ groupList: [] } }, - version: 'v3.2.1', + version: 'v3.3.1', status: { color: 'secondary', icon: 'mdi-circle', diff --git a/src/components/TemplDefault.vue b/src/components/TemplDefault.vue index 5d4db5ad..f00cd75a 100644 --- a/src/components/TemplDefault.vue +++ b/src/components/TemplDefault.vue @@ -14,11 +14,30 @@ - + {{ vals.main.leftBtn }} + + + + + + + + + {{ menu.name }} + + + + + +
{{ vals.main.text }}
@@ -27,11 +46,30 @@
{{ vals.main.text2 }}
- + {{ vals.main.rightBtn }} + + + + + + + + + {{ menu.name }} + + + + + +
@@ -72,9 +110,9 @@ }, main: [ { - btnLeft: '', + leftBtn: '', text: 'Template unbekannt', - btnRight: '' + rightBtn: '', } ], info: { @@ -96,6 +134,7 @@ main: { leftBtn: '', leftBtnDisabled: false, + leftMenu: [], text: '', text2: '', slider: false, @@ -103,7 +142,8 @@ sliderMin: 0, sliderMax: 100, rightBtn: '', - rightBtnDisabled: false + rightBtnDisabled: false, + rightMenu: [] }, info: { left1Icon: '', @@ -229,6 +269,23 @@ } }, + createMenu(arr) { + let result = []; + + if(arr && arr.length > 0) { + for(let item of arr) { + let vals = item.split(':'); + + if(vals.length > 1) { + let cmd = vals[1].match('set') ? vals[1] : 'set ' + this.item.Name + ' ' + vals[1]; + result.push({ name: vals[0], cmd }); + } + } + } + + return result; + }, + setLevel(lvl) { if(!isNaN(lvl)) { this.multiLevel = this.setup.main.length > 1 ? true : false; @@ -244,11 +301,14 @@ let mainText = this.$fhem.handleVals(this.item, this.setup.main[this.mainLevel].text); let mainText2 = this.$fhem.handleVals(this.item, this.setup.main[this.mainLevel].text2); - let mainLeftBtn = this.$fhem.handleVals(this.item, this.setup.main[this.mainLevel].leftBtn) - let mainRightBtn = this.$fhem.handleVals(this.item, this.setup.main[this.mainLevel].rightBtn) + let mainLeftBtn = this.$fhem.handleVals(this.item, this.setup.main[this.mainLevel].leftBtn); + let mainRightBtn = this.$fhem.handleVals(this.item, this.setup.main[this.mainLevel].rightBtn); let mainSlider = this.$fhem.handleVals(this.item, this.setup.main[this.mainLevel].slider); + let mainLeftMenu = this.createMenu(this.setup.main[this.mainLevel].leftMenu); + let mainRightMenu = this.createMenu(this.setup.main[this.mainLevel].rightMenu); + this.vals.main.text = mainText[0] || ''; this.vals.main.text2 = mainText2[0] || ''; @@ -256,6 +316,8 @@ this.vals.main.rightBtn = mainRightBtn[0] || ''; this.vals.main.leftBtnDisabled = mainLeftBtn[1] ? true : false; this.vals.main.rightBtnDisabled = mainRightBtn[1] ? true : false; + this.vals.main.leftMenu = mainLeftMenu; + this.vals.main.rightMenu = mainRightMenu; this.vals.main.slider = mainSlider[0] ? true : false; this.vals.main.sliderCurrent = mainSlider[1] || 0; @@ -272,6 +334,8 @@ let mainSlider = this.$fhem.handleVals(this.item, this.setup.main[this.mainLevel].slider); let mainLeftBtn = this.$fhem.handleVals(this.item, this.setup.main[this.mainLevel].leftBtn); let mainRightBtn = this.$fhem.handleVals(this.item, this.setup.main[this.mainLevel].rightBtn); + let mainLeftMenu = this.createMenu(this.setup.main[this.mainLevel].leftMenu); + let mainRightMenu = this.createMenu(this.setup.main[this.mainLevel].rightMenu); let infoLeft1Vals = this.$fhem.handleVals(this.item, this.setup.info.left1); let infoLeft2Vals = this.$fhem.handleVals(this.item, this.setup.info.left2); let infoMid1Vals = this.$fhem.handleVals(this.item, this.setup.info.mid1); @@ -314,6 +378,9 @@ this.vals.main.leftBtnDisabled = mainLeftBtn[1] ? true : false; this.vals.main.rightBtnDisabled = mainRightBtn[1] ? true : false; + this.vals.main.leftMenu = mainLeftMenu; + this.vals.main.rightMenu = mainRightMenu; + if(errorVals.length > 0) { this.vals.status.level = errorVals[0] || '100'; this.vals.status.color = errorVals[1] || 'error'; diff --git a/www/fhemapp/css/chunk-5b592ef2.611711b5.css b/www/fhemapp/css/chunk-57a6c555.611711b5.css similarity index 100% rename from www/fhemapp/css/chunk-5b592ef2.611711b5.css rename to www/fhemapp/css/chunk-57a6c555.611711b5.css diff --git a/www/fhemapp/css/chunk-f087d6f2.288ff701.css b/www/fhemapp/css/chunk-62d9ca09.792facbe.css similarity index 100% rename from www/fhemapp/css/chunk-f087d6f2.288ff701.css rename to www/fhemapp/css/chunk-62d9ca09.792facbe.css diff --git a/www/fhemapp/css/chunk-788ccab5.611711b5.css b/www/fhemapp/css/chunk-788ccab5.611711b5.css deleted file mode 100644 index 7c88167b..00000000 --- a/www/fhemapp/css/chunk-788ccab5.611711b5.css +++ /dev/null @@ -1 +0,0 @@ -.theme--light.v-slider .v-slider__thumb,.theme--light.v-slider .v-slider__track-background,.theme--light.v-slider .v-slider__track-fill{background:rgba(0,0,0,.26)}.theme--dark.v-slider .v-slider__thumb,.theme--dark.v-slider .v-slider__track-background,.theme--dark.v-slider .v-slider__track-fill{background:hsla(0,0%,100%,.2)}.v-slider{cursor:default;display:flex;align-items:center;position:relative;flex:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-slider input{cursor:default;padding:0;width:100%;display:none}.v-slider__track-container{position:absolute;border-radius:0}.v-slider__thumb-container,.v-slider__track-background,.v-slider__track-fill{position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider__thumb-container{outline:none;top:50%}.v-slider__thumb-container:hover .v-slider__thumb:before{transform:scale(1)}.v-slider__thumb{width:12px;height:12px;left:-6px;top:50%;transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-slider__thumb,.v-slider__thumb:before{position:absolute;border-radius:50%;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider__thumb:before{content:"";color:inherit;width:36px;height:36px;background:currentColor;opacity:.3;left:-12px;top:-12px;transform:scale(.1);pointer-events:none}.v-slider__tick,.v-slider__ticks-container{position:absolute}.v-slider__tick{opacity:0;background-color:rgba(0,0,0,.5);transition:.3s cubic-bezier(.25,.8,.5,1);border-radius:0}.v-slider__tick--filled{background-color:hsla(0,0%,100%,.5)}.v-application--is-ltr .v-slider__tick:first-child .v-slider__tick-label{transform:none}.v-application--is-rtl .v-slider__tick:first-child .v-slider__tick-label{transform:translateX(100%)}.v-application--is-ltr .v-slider__tick:last-child .v-slider__tick-label{transform:translateX(-100%)}.v-application--is-rtl .v-slider__tick:last-child .v-slider__tick-label{transform:none}.v-slider__tick-label{position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.v-slider__thumb-label-container{top:0}.v-slider__thumb-label,.v-slider__thumb-label-container{position:absolute;left:0;transition:.3s cubic-bezier(.25,.8,.25,1)}.v-slider__thumb-label{display:flex;align-items:center;justify-content:center;font-size:.75rem;color:#fff;width:32px;height:32px;border-radius:50% 50% 0;bottom:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-slider--horizontal{min-height:32px;margin-left:8px;margin-right:8px}.v-slider--horizontal .v-slider__track-container{width:100%;height:2px;left:0;top:50%;transform:translateY(-50%)}.v-slider--horizontal .v-slider__track-background,.v-slider--horizontal .v-slider__track-fill{height:100%}.v-slider--horizontal .v-slider__ticks-container{left:0;height:2px;width:100%}.v-application--is-ltr .v-slider--horizontal .v-slider__tick:first-child .v-slider__tick-label,.v-application--is-rtl .v-slider--horizontal .v-slider__tick:first-child .v-slider__tick-label{transform:translateX(0)}.v-application--is-ltr .v-slider--horizontal .v-slider__tick:last-child .v-slider__tick-label{transform:translateX(-100%)}.v-application--is-rtl .v-slider--horizontal .v-slider__tick:last-child .v-slider__tick-label{transform:translateX(100%)}.v-slider--horizontal .v-slider__tick .v-slider__tick-label{top:8px}.v-application--is-ltr .v-slider--horizontal .v-slider__tick .v-slider__tick-label{transform:translateX(-50%)}.v-application--is-rtl .v-slider--horizontal .v-slider__tick .v-slider__tick-label{transform:translateX(50%)}.v-slider--horizontal .v-slider__thumb-label{transform:translateY(-20%) translateY(-12px) translateX(-50%) rotate(45deg)}.v-slider--horizontal .v-slider__thumb-label>*{transform:rotate(-45deg)}.v-slider--vertical{min-height:150px;margin-top:12px;margin-bottom:12px}.v-slider--vertical .v-slider__track-container{height:100%;width:2px;left:50%;top:0;transform:translateX(-50%)}.v-slider--vertical .v-slider__track-background,.v-slider--vertical .v-slider__track-fill{width:100%}.v-slider--vertical .v-slider__thumb-container{left:50%}.v-slider--vertical .v-slider__ticks-container{top:0;width:2px;height:100%;left:50%;transform:translateX(-50%)}.v-application--is-ltr .v-slider--vertical .v-slider__tick .v-slider__tick-label,.v-application--is-ltr .v-slider--vertical .v-slider__tick:first-child .v-slider__tick-label,.v-application--is-ltr .v-slider--vertical .v-slider__tick:last-child .v-slider__tick-label{transform:translateY(-50%);left:12px}.v-application--is-rtl .v-slider--vertical .v-slider__tick .v-slider__tick-label,.v-application--is-rtl .v-slider--vertical .v-slider__tick:first-child .v-slider__tick-label,.v-application--is-rtl .v-slider--vertical .v-slider__tick:last-child .v-slider__tick-label{transform:translateY(-50%);right:12px}.v-slider--vertical .v-slider__thumb-label>*{transform:rotate(-135deg)}.v-slider__thumb-container--focused .v-slider__thumb:before{transform:scale(1)}.v-slider--active .v-slider__tick{opacity:1}.v-slider__thumb-container--active .v-slider__thumb:before{transform:scale(1.5)!important}.v-slider--disabled{pointer-events:none}.v-slider--disabled .v-slider__thumb{width:8px;height:8px;left:-4px}.v-slider--disabled .v-slider__thumb:before{display:none}.v-slider__ticks-container--always-show .v-slider__tick{opacity:1}.v-input__slider.v-input--is-readonly>.v-input__control{pointer-events:none}.v-application--is-ltr .v-input__slider .v-input__slot .v-label{margin-left:0;margin-right:12px}.v-application--is-ltr .v-input__slider--inverse-label .v-input__slot .v-label,.v-application--is-rtl .v-input__slider .v-input__slot .v-label{margin-right:0;margin-left:12px}.v-application--is-rtl .v-input__slider--inverse-label .v-input__slot .v-label{margin-left:0;margin-right:12px}.v-input__slider--vertical{align-items:center}.v-application--is-ltr .v-input__slider--vertical{flex-direction:column-reverse}.v-application--is-rtl .v-input__slider--vertical{flex-direction:column}.v-input__slider--vertical .v-input__append-outer,.v-input__slider--vertical .v-input__prepend-outer,.v-input__slider--vertical .v-input__slot{margin:0}.v-input__slider--vertical .v-messages{display:none}.v-input--has-state .v-slider__track-background{opacity:.4}.theme--light.v-system-bar{background-color:#e0e0e0;color:rgba(0,0,0,.6)}.theme--light.v-system-bar .v-icon{color:rgba(0,0,0,.6)}.theme--light.v-system-bar--lights-out{background-color:hsla(0,0%,100%,.7)!important}.theme--dark.v-system-bar{background-color:#000;color:hsla(0,0%,100%,.7)}.theme--dark.v-system-bar .v-icon{color:hsla(0,0%,100%,.7)}.theme--dark.v-system-bar--lights-out{background-color:rgba(0,0,0,.2)!important}.v-system-bar{align-items:center;display:flex;font-size:.875rem;font-weight:400;padding:0 8px}.v-system-bar .v-icon{font-size:1rem;margin-right:4px}.v-system-bar--absolute,.v-system-bar--fixed{left:0;top:0;width:100%;z-index:3}.v-system-bar--fixed{position:fixed}.v-system-bar--absolute{position:absolute}.v-system-bar--window .v-icon{font-size:1.25rem;margin-right:8px} \ No newline at end of file diff --git a/www/fhemapp/css/chunk-83618c9a.3058ccc5.css b/www/fhemapp/css/chunk-83618c9a.3058ccc5.css new file mode 100644 index 00000000..0bc0f5d2 --- /dev/null +++ b/www/fhemapp/css/chunk-83618c9a.3058ccc5.css @@ -0,0 +1 @@ +.v-menu{display:none}.v-menu--attached{display:inline}.v-menu__content{position:absolute;display:inline-block;max-width:80%;overflow-y:auto;overflow-x:hidden;contain:content;will-change:transform;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);border-radius:4px}.v-menu__content--active{pointer-events:none}.v-menu__content--auto .v-list-item{transition-property:transform,opacity;transition-duration:.3s;transition-timing-function:cubic-bezier(.25,.8,.25,1)}.v-menu__content--fixed{position:fixed}.v-menu__content>.card{contain:content;-webkit-backface-visibility:hidden;backface-visibility:hidden}.v-menu>.v-menu__content{max-width:none}.v-menu-transition-enter .v-list-item{min-width:0;pointer-events:none}.v-menu-transition-enter-to .v-list-item{transition-delay:.1s}.v-menu-transition-leave-active,.v-menu-transition-leave-to{pointer-events:none}.v-menu-transition-enter,.v-menu-transition-leave-to{opacity:0}.v-menu-transition-enter-active,.v-menu-transition-leave-active{transition:all .3s cubic-bezier(.25,.8,.25,1)}.v-menu-transition-enter.v-menu__content--auto{transition:none!important}.v-menu-transition-enter.v-menu__content--auto .v-list-item{opacity:0;transform:translateY(-15px)}.v-menu-transition-enter.v-menu__content--auto .v-list-item--active{opacity:1;transform:none!important;pointer-events:auto}.theme--light.v-slider .v-slider__thumb,.theme--light.v-slider .v-slider__track-background,.theme--light.v-slider .v-slider__track-fill{background:rgba(0,0,0,.26)}.theme--dark.v-slider .v-slider__thumb,.theme--dark.v-slider .v-slider__track-background,.theme--dark.v-slider .v-slider__track-fill{background:hsla(0,0%,100%,.2)}.v-slider{cursor:default;display:flex;align-items:center;position:relative;flex:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-slider input{cursor:default;padding:0;width:100%;display:none}.v-slider__track-container{position:absolute;border-radius:0}.v-slider__thumb-container,.v-slider__track-background,.v-slider__track-fill{position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider__thumb-container{outline:none;top:50%}.v-slider__thumb-container:hover .v-slider__thumb:before{transform:scale(1)}.v-slider__thumb{width:12px;height:12px;left:-6px;top:50%;transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-slider__thumb,.v-slider__thumb:before{position:absolute;border-radius:50%;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider__thumb:before{content:"";color:inherit;width:36px;height:36px;background:currentColor;opacity:.3;left:-12px;top:-12px;transform:scale(.1);pointer-events:none}.v-slider__tick,.v-slider__ticks-container{position:absolute}.v-slider__tick{opacity:0;background-color:rgba(0,0,0,.5);transition:.3s cubic-bezier(.25,.8,.5,1);border-radius:0}.v-slider__tick--filled{background-color:hsla(0,0%,100%,.5)}.v-application--is-ltr .v-slider__tick:first-child .v-slider__tick-label{transform:none}.v-application--is-rtl .v-slider__tick:first-child .v-slider__tick-label{transform:translateX(100%)}.v-application--is-ltr .v-slider__tick:last-child .v-slider__tick-label{transform:translateX(-100%)}.v-application--is-rtl .v-slider__tick:last-child .v-slider__tick-label{transform:none}.v-slider__tick-label{position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.v-slider__thumb-label-container{top:0}.v-slider__thumb-label,.v-slider__thumb-label-container{position:absolute;left:0;transition:.3s cubic-bezier(.25,.8,.25,1)}.v-slider__thumb-label{display:flex;align-items:center;justify-content:center;font-size:.75rem;color:#fff;width:32px;height:32px;border-radius:50% 50% 0;bottom:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.v-slider--horizontal{min-height:32px;margin-left:8px;margin-right:8px}.v-slider--horizontal .v-slider__track-container{width:100%;height:2px;left:0;top:50%;transform:translateY(-50%)}.v-slider--horizontal .v-slider__track-background,.v-slider--horizontal .v-slider__track-fill{height:100%}.v-slider--horizontal .v-slider__ticks-container{left:0;height:2px;width:100%}.v-application--is-ltr .v-slider--horizontal .v-slider__tick:first-child .v-slider__tick-label,.v-application--is-rtl .v-slider--horizontal .v-slider__tick:first-child .v-slider__tick-label{transform:translateX(0)}.v-application--is-ltr .v-slider--horizontal .v-slider__tick:last-child .v-slider__tick-label{transform:translateX(-100%)}.v-application--is-rtl .v-slider--horizontal .v-slider__tick:last-child .v-slider__tick-label{transform:translateX(100%)}.v-slider--horizontal .v-slider__tick .v-slider__tick-label{top:8px}.v-application--is-ltr .v-slider--horizontal .v-slider__tick .v-slider__tick-label{transform:translateX(-50%)}.v-application--is-rtl .v-slider--horizontal .v-slider__tick .v-slider__tick-label{transform:translateX(50%)}.v-slider--horizontal .v-slider__thumb-label{transform:translateY(-20%) translateY(-12px) translateX(-50%) rotate(45deg)}.v-slider--horizontal .v-slider__thumb-label>*{transform:rotate(-45deg)}.v-slider--vertical{min-height:150px;margin-top:12px;margin-bottom:12px}.v-slider--vertical .v-slider__track-container{height:100%;width:2px;left:50%;top:0;transform:translateX(-50%)}.v-slider--vertical .v-slider__track-background,.v-slider--vertical .v-slider__track-fill{width:100%}.v-slider--vertical .v-slider__thumb-container{left:50%}.v-slider--vertical .v-slider__ticks-container{top:0;width:2px;height:100%;left:50%;transform:translateX(-50%)}.v-application--is-ltr .v-slider--vertical .v-slider__tick .v-slider__tick-label,.v-application--is-ltr .v-slider--vertical .v-slider__tick:first-child .v-slider__tick-label,.v-application--is-ltr .v-slider--vertical .v-slider__tick:last-child .v-slider__tick-label{transform:translateY(-50%);left:12px}.v-application--is-rtl .v-slider--vertical .v-slider__tick .v-slider__tick-label,.v-application--is-rtl .v-slider--vertical .v-slider__tick:first-child .v-slider__tick-label,.v-application--is-rtl .v-slider--vertical .v-slider__tick:last-child .v-slider__tick-label{transform:translateY(-50%);right:12px}.v-slider--vertical .v-slider__thumb-label>*{transform:rotate(-135deg)}.v-slider__thumb-container--focused .v-slider__thumb:before{transform:scale(1)}.v-slider--active .v-slider__tick{opacity:1}.v-slider__thumb-container--active .v-slider__thumb:before{transform:scale(1.5)!important}.v-slider--disabled{pointer-events:none}.v-slider--disabled .v-slider__thumb{width:8px;height:8px;left:-4px}.v-slider--disabled .v-slider__thumb:before{display:none}.v-slider__ticks-container--always-show .v-slider__tick{opacity:1}.v-input__slider.v-input--is-readonly>.v-input__control{pointer-events:none}.v-application--is-ltr .v-input__slider .v-input__slot .v-label{margin-left:0;margin-right:12px}.v-application--is-ltr .v-input__slider--inverse-label .v-input__slot .v-label,.v-application--is-rtl .v-input__slider .v-input__slot .v-label{margin-right:0;margin-left:12px}.v-application--is-rtl .v-input__slider--inverse-label .v-input__slot .v-label{margin-left:0;margin-right:12px}.v-input__slider--vertical{align-items:center}.v-application--is-ltr .v-input__slider--vertical{flex-direction:column-reverse}.v-application--is-rtl .v-input__slider--vertical{flex-direction:column}.v-input__slider--vertical .v-input__append-outer,.v-input__slider--vertical .v-input__prepend-outer,.v-input__slider--vertical .v-input__slot{margin:0}.v-input__slider--vertical .v-messages{display:none}.v-input--has-state .v-slider__track-background{opacity:.4}.theme--light.v-system-bar{background-color:#e0e0e0;color:rgba(0,0,0,.6)}.theme--light.v-system-bar .v-icon{color:rgba(0,0,0,.6)}.theme--light.v-system-bar--lights-out{background-color:hsla(0,0%,100%,.7)!important}.theme--dark.v-system-bar{background-color:#000;color:hsla(0,0%,100%,.7)}.theme--dark.v-system-bar .v-icon{color:hsla(0,0%,100%,.7)}.theme--dark.v-system-bar--lights-out{background-color:rgba(0,0,0,.2)!important}.v-system-bar{align-items:center;display:flex;font-size:.875rem;font-weight:400;padding:0 8px}.v-system-bar .v-icon{font-size:1rem;margin-right:4px}.v-system-bar--absolute,.v-system-bar--fixed{left:0;top:0;width:100%;z-index:3}.v-system-bar--fixed{position:fixed}.v-system-bar--absolute{position:absolute}.v-system-bar--window .v-icon{font-size:1.25rem;margin-right:8px} \ No newline at end of file diff --git a/www/fhemapp/index.html b/www/fhemapp/index.html index fabc30e0..f7498d39 100644 --- a/www/fhemapp/index.html +++ b/www/fhemapp/index.html @@ -1 +1 @@ -fhemapp
\ No newline at end of file +fhemapp
\ No newline at end of file diff --git a/www/fhemapp/js/app.e2a7b17b.js b/www/fhemapp/js/app.4c69462b.js similarity index 97% rename from www/fhemapp/js/app.e2a7b17b.js rename to www/fhemapp/js/app.4c69462b.js index 59c63e22..57de1118 100644 --- a/www/fhemapp/js/app.e2a7b17b.js +++ b/www/fhemapp/js/app.4c69462b.js @@ -1 +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="")}},methods:{clearMessage:function(){this.msgList.length>0&&this.msgList.splice(0,1)}},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)}))}}),p=u,l=n("2877"),h=n("6544"),f=n.n(h),d=n("0798"),m=n("8336"),v=n("62ad"),g=n("132d"),b=n("0fd9"),k=Object(l["a"])(p,o,c,!1,null,null,null),y=k.exports;f()(k,{VAlert:d["a"],VBtn:m["a"],VCol:v["a"],VIcon:g["a"],VRow:b["a"]});var O={data:function(){return{drawer:null,back:!1,app:{options:{loading:!1,clock:null},session:{connect:!1},data:{roomList:[],groupList:[]}},version:"v3.2.1",status:{color:"secondary",icon:"mdi-circle",text:"unbekannt",time:""}}},components:{Broadcaster:y},watch:{"app.session.connect":function(e){this.status.color=e?"success":"error",this.status.text=e?"online":"offline",this.status.time=this.$fhem.getDateTime()},$route:function(e){this.back="/"!==e.path}},computed:{showRooms:function(){return this.app.data.roomList.length>0},showGroups:function(){return this.app.data.groupList.length>0}},methods:{loadRoutes:function(){this.app.session.connect&&(this.$fhem.getRoutes("room"),this.$fhem.getRoutes("group"))},goTo:function(){this.$router.go(-1)}},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()}},w=O,j=n("7496"),x=n("40dc"),R=n("5bc1"),L=n("cc20"),C=n("a523"),_=n("ce7e"),P=n("adda"),E=n("8860"),S=n("56b0"),D=n("da13"),V=n("5d23"),A=n("34c3"),N=n("f6c4"),T=n("f774"),F=n("a797"),$=n("490a"),M=n("2fa4"),I=n("3a2f"),H=Object(l["a"])(w,s,i,!1,null,null,null),B=H.exports;f()(H,{VApp:j["a"],VAppBar:x["a"],VAppBarNavIcon:R["a"],VBtn:m["a"],VChip:L["a"],VContainer:C["a"],VDivider:_["a"],VIcon:g["a"],VImg:P["a"],VList:E["a"],VListGroup:S["a"],VListItem:D["a"],VListItemContent:V["a"],VListItemIcon:A["a"],VListItemSubtitle:V["b"],VListItemTitle:V["c"],VMain:N["a"],VNavigationDrawer:T["a"],VOverlay:F["a"],VProgressCircular:$["a"],VSpacer:M["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-0458398b"),n.e("chunk-f087d6f2"),n.e("chunk-72c6e8d8"),n.e("chunk-f90907bc")]).then(n.bind(null,"f87a"))}},{path:"/syslog",name:"Syslog",component:function(){return Promise.all([n.e("chunk-0458398b"),n.e("chunk-f087d6f2"),n.e("chunk-72c6e8d8"),n.e("chunk-2c05d556")]).then(n.bind(null,"beee"))}}],J=new q["a"]({mode:"hash",base:"",routes:U}),z=J,G=n("f309"),X=n("0fe0"),W=n.n(X),K=n("fcf4");r["a"].use(G["a"]);var Y={lang:{locales:{de:W.a},current:"de"},theme:{dark:!0,themes:{dark:{primary:K["a"].grey.darken4,secondary:K["a"].grey.darken3,success:K["a"].green.accent2,accent:K["a"].green.accent2},light:{primary:K["a"].grey,secondary:K["a"].grey.lighten3,success:K["a"].green.accent3,accent:K["a"].green.accent3}}}},Q=new G["a"](Y),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("99af"),n("4d63"),n("25f0"),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,logList:[],logLast:{}},options:{loading:!1,loadCount:0,clock:null,maxChartPoints:100,updateProcess:!1,logRecord:!0,logBuffer:500},templates:[],componentMap:[],data:{roomList:[],groupList:[],deviceList:[]}},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,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),t.icon="error"===t.type?"mdi-alert":"info"===t.type?"mdi-information":"mdi-sync-circle",t.color=t.type,this.app.session.logLast=t,"error"===t.type&&this.emit("message",{type:t.type,message:t.message,meta:t.meta}),this.app.options.logRecord&&(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||Date.now();return new Date(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:"info",message:"Request: "+c},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")),h=parseFloat(p[1]);i+=h,(o>=s||o===t.length)&&(o===t.length&&(r-=s-o),a.push({timestamp:l,value:i/r}),s+=r,i=0),o++}}catch(f){c.e(f)}finally{c.f()}return a}},{key:"readLogFile",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=c.split(":"),p="get ";p+=u[0]?u[0]:t.deviceName,p+=t.from?" - - "+t.from:"",p+=t.to?" "+t.to:"",p+=u[1]?" 4:"+u[1]:"",a.request([{param:"cmd",value:p},{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},n()})),i++}}catch(l){o.e(l)}finally{o.f()}}():(a.log={type:"error",message:"No Definitions for Chart found.",meta:t},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},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 "+e},"json").then(function(){var n=Object(ee["a"])(regeneratorRuntime.mark((function n(r){var s,i,o,c,u,p,l,h,f,d,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,!0);case 8:if(u=n.sent,p=u[e]||c.Attributes[e],p){l=p.split(","),h=Object(Z["a"])(l);try{for(h.s();!(f=h.n()).done;)d=f.value,m="/devices/"+e+"="+d.replaceAll(" ","\\s").replaceAll("&","."),u[e]&&(m+="&options=true"),-1==a.map((function(e){return e.title})).indexOf(d)&&a.push({title:d,route:m})}catch(v){h.e(v)}finally{h.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},t.app.options.loading=!1}))}else this.log={type:"error",message:"Creating Routes failed.",meta:e},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):parseFloat(u)>=parseFloat(o[1])&&(p=!0),p){n=this.replaceVals(o,u);break}}}}}catch(l){s.e(l)}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 h={};c[2]&&(h.mainState=c[0]===c[2]?p:c[2]),c[3]&&(h.mainLevel=c[0]===c[3]?p:c[3]),c[4]&&(h.mainColor=c[4]),c[5]&&(h.systemIcon=c[5]),Object.assign(t,h);break}}}else this.log={type:"error",message:"Wrong Definition for Device-States.",meta:e}}}catch(f){i.e(f)}finally{i.f()}}return t}},{key:"createConnected",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){"connected"in t.Options?function(){for(var r=Object.keys(t.Options.connected),s={},i=1,o=function(){var o=u[c];a.request({param:"cmd",value:"jsonlist2 "+t.Options.connected[o]},"json").then(function(){var t=Object(ee["a"])(regeneratorRuntime.mark((function t(n){var c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s[o]=n.Results[0],"PossibleSets"in s[o]&&delete s[o].PossibleSets,"PossibleAttrs"in s[o]&&delete s[o].PossibleAttrs,t.next=5,a.createOptions(s[o]);case 5:c=t.sent,c&&(s[o].Options=c),i===r.length&&e(s),i++;case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){return n(e)}))},c=0,u=r;c0)){e.next=21;break}s=Object(Z["a"])(n.Results),e.prev=4,o=regeneratorRuntime.mark((function e(){var s,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=i.value,"PossibleSets"in s&&delete s.PossibleSets,"PossibleAttrs"in s&&delete s.PossibleAttrs,e.next=5,t.createOptions(s);case 5:o=e.sent,o?(s.Options=o,s.Options.order=s.Attributes.sortby||"zzz",t.createConnected(s).then((function(e){s.Connected=e,r.push(s),a===n.Results.length&&(r.sort((function(e,t){return e.Options.order>t.Options.order?1:t.Options.order>e.Options.order?-1:0})),t.app.data.deviceList=Object.assign([],r),t.app.options.loading=!1),a++})).catch((function(e){t.log={type:"error",message:"Add Connected Element failed.",meta:e},t.app.options.loading=!1}))):t.app.options.loading=!1;case 7:case"end":return e.stop()}}),e)})),s.s();case 7:if((i=s.n()).done){e.next=11;break}return e.delegateYield(o(),"t0",9);case 9:e.next=7;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e["catch"](4),s.e(e.t1);case 16:return e.prev=16,s.f(),e.finish(16);case 19:e.next=22;break;case 21:t.app.options.loading=!1;case 22:case"end":return e.stop()}}),e,null,[[4,13,16,19]])})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.log={type:"error",message:"Request to FHEM failed.",meta:e},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;this.app.session.connect=!1,this.app.session.csrf=null,this.app.session.socket=null,this.app.session.restart||(this.app.session.restart=!0,setTimeout((function(){e.app.session.restart=!1,e.init()}),3e3)),this.log={type:"info",message:"Connection with FHEM was closed. Try to Reconnect in 3 seconds..."}}},{key:"connOpen",value:function(){var e=this;this.app.options.loading=!0,this.getCsrfToken().then((function(t){e.app.session.csrf=t,e.app.session.connect=!0,e.emit("connect"),e.log={type:"info",message:"Connection with FHEM is opened.",meta:e.session},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}})).finally((function(){return e.app.options.loading=!1}))}},{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","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()},setInterval((function(){e.app.options.clock=(new Date).toLocaleTimeString("de-DE",{hour:"2-digit",minute:"2-digit"})}),1e3)}}]),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}})).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(Q.framework.theme,{dark:e.theme.dark}),e.theme.themes&&(e.theme.themes.light&&Object.assign(Q.framework.theme.themes.light,e.theme.themes.light),e.theme.themes.dark&&Object.assign(Q.framework.theme.themes.dark,e.theme.themes.dark))));r["a"].prototype.$fhem.log={type:"info",message:"Config: "+JSON.stringify(e)},r["a"].prototype.$fhem.log={type:"info",message:"Connection: "+JSON.stringify(r["a"].prototype.$fhem.app.connection)},new r["a"]({vuetify:Q,router:z,render:function(e){return e(B)}}).$mount("#app")}))},c274:function(e,t,n){e.exports=n.p+"img/FHEM_Logo.2d0f7a38.png"}}); \ No newline at end of file +(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="")}},methods:{clearMessage:function(){this.msgList.length>0&&this.msgList.splice(0,1)}},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)}))}}),p=u,l=n("2877"),h=n("6544"),f=n.n(h),d=n("0798"),m=n("8336"),v=n("62ad"),g=n("132d"),b=n("0fd9"),k=Object(l["a"])(p,o,c,!1,null,null,null),y=k.exports;f()(k,{VAlert:d["a"],VBtn:m["a"],VCol:v["a"],VIcon:g["a"],VRow:b["a"]});var O={data:function(){return{drawer:null,back:!1,app:{options:{loading:!1,clock:null},session:{connect:!1},data:{roomList:[],groupList:[]}},version:"v3.3.1",status:{color:"secondary",icon:"mdi-circle",text:"unbekannt",time:""}}},components:{Broadcaster:y},watch:{"app.session.connect":function(e){this.status.color=e?"success":"error",this.status.text=e?"online":"offline",this.status.time=this.$fhem.getDateTime()},$route:function(e){this.back="/"!==e.path}},computed:{showRooms:function(){return this.app.data.roomList.length>0},showGroups:function(){return this.app.data.groupList.length>0}},methods:{loadRoutes:function(){this.app.session.connect&&(this.$fhem.getRoutes("room"),this.$fhem.getRoutes("group"))},goTo:function(){this.$router.go(-1)}},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()}},w=O,j=n("7496"),x=n("40dc"),R=n("5bc1"),L=n("cc20"),C=n("a523"),_=n("ce7e"),P=n("adda"),E=n("8860"),S=n("56b0"),D=n("da13"),V=n("5d23"),A=n("34c3"),N=n("f6c4"),T=n("f774"),F=n("a797"),$=n("490a"),M=n("2fa4"),I=n("3a2f"),H=Object(l["a"])(w,s,i,!1,null,null,null),B=H.exports;f()(H,{VApp:j["a"],VAppBar:x["a"],VAppBarNavIcon:R["a"],VBtn:m["a"],VChip:L["a"],VContainer:C["a"],VDivider:_["a"],VIcon:g["a"],VImg:P["a"],VList:E["a"],VListGroup:S["a"],VListItem:D["a"],VListItemContent:V["a"],VListItemIcon:A["a"],VListItemSubtitle:V["b"],VListItemTitle:V["c"],VMain:N["a"],VNavigationDrawer:T["a"],VOverlay:F["a"],VProgressCircular:$["a"],VSpacer:M["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-0458398b"),n.e("chunk-62d9ca09"),n.e("chunk-72c6e8d8"),n.e("chunk-f90907bc")]).then(n.bind(null,"f87a"))}},{path:"/syslog",name:"Syslog",component:function(){return Promise.all([n.e("chunk-0458398b"),n.e("chunk-62d9ca09"),n.e("chunk-72c6e8d8"),n.e("chunk-2c05d556")]).then(n.bind(null,"beee"))}}],J=new q["a"]({mode:"hash",base:"",routes:U}),z=J,G=n("f309"),X=n("0fe0"),W=n.n(X),K=n("fcf4");r["a"].use(G["a"]);var Y={lang:{locales:{de:W.a},current:"de"},theme:{dark:!0,themes:{dark:{primary:K["a"].grey.darken4,secondary:K["a"].grey.darken3,success:K["a"].green.accent2,accent:K["a"].green.accent2},light:{primary:K["a"].grey,secondary:K["a"].grey.lighten3,success:K["a"].green.accent3,accent:K["a"].green.accent3}}}},Q=new G["a"](Y),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("99af"),n("4d63"),n("25f0"),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,logList:[],logLast:{}},options:{loading:!1,loadCount:0,clock:null,maxChartPoints:100,updateProcess:!1,logRecord:!0,logBuffer:500},templates:[],componentMap:[],data:{roomList:[],groupList:[],deviceList:[]}},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,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),t.icon="error"===t.type?"mdi-alert":"info"===t.type?"mdi-information":"mdi-sync-circle",t.color=t.type,this.app.session.logLast=t,"error"===t.type&&this.emit("message",{type:t.type,message:t.message,meta:t.meta}),this.app.options.logRecord&&(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||Date.now();return new Date(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:"info",message:"Request: "+c},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")),h=parseFloat(p[1]);i+=h,(o>=s||o===t.length)&&(o===t.length&&(r-=s-o),a.push({timestamp:l,value:i/r}),s+=r,i=0),o++}}catch(f){c.e(f)}finally{c.f()}return a}},{key:"readLogFile",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=c.split(":"),p="get ";p+=u[0]?u[0]:t.deviceName,p+=t.from?" - - "+t.from:"",p+=t.to?" "+t.to:"",p+=u[1]?" 4:"+u[1]:"",a.request([{param:"cmd",value:p},{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},n()})),i++}}catch(l){o.e(l)}finally{o.f()}}():(a.log={type:"error",message:"No Definitions for Chart found.",meta:t},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},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 "+e},"json").then(function(){var n=Object(ee["a"])(regeneratorRuntime.mark((function n(r){var s,i,o,c,u,p,l,h,f,d,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,!0);case 8:if(u=n.sent,p=u[e]||c.Attributes[e],p){l=p.split(","),h=Object(Z["a"])(l);try{for(h.s();!(f=h.n()).done;)d=f.value,m="/devices/"+e+"="+d.replaceAll(" ","\\s").replaceAll("&","."),u[e]&&(m+="&options=true"),-1==a.map((function(e){return e.title})).indexOf(d)&&a.push({title:d,route:m})}catch(v){h.e(v)}finally{h.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},t.app.options.loading=!1}))}else this.log={type:"error",message:"Creating Routes failed.",meta:e},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):parseFloat(u)>=parseFloat(o[1])&&(p=!0),p){n=this.replaceVals(o,u);break}}}}}catch(l){s.e(l)}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 h={};c[2]&&(h.mainState=c[0]===c[2]?p:c[2]),c[3]&&(h.mainLevel=c[0]===c[3]?p:c[3]),c[4]&&(h.mainColor=c[4]),c[5]&&(h.systemIcon=c[5]),Object.assign(t,h);break}}}else this.log={type:"error",message:"Wrong Definition for Device-States.",meta:e}}}catch(f){i.e(f)}finally{i.f()}}return t}},{key:"createConnected",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){"connected"in t.Options?function(){for(var r=Object.keys(t.Options.connected),s={},i=1,o=function(){var o=u[c];a.request({param:"cmd",value:"jsonlist2 "+t.Options.connected[o]},"json").then(function(){var t=Object(ee["a"])(regeneratorRuntime.mark((function t(n){var c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s[o]=n.Results[0],"PossibleSets"in s[o]&&delete s[o].PossibleSets,"PossibleAttrs"in s[o]&&delete s[o].PossibleAttrs,t.next=5,a.createOptions(s[o]);case 5:c=t.sent,c&&(s[o].Options=c),i===r.length&&e(s),i++;case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){return n(e)}))},c=0,u=r;c0)){e.next=21;break}s=Object(Z["a"])(n.Results),e.prev=4,o=regeneratorRuntime.mark((function e(){var s,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=i.value,"PossibleSets"in s&&delete s.PossibleSets,"PossibleAttrs"in s&&delete s.PossibleAttrs,e.next=5,t.createOptions(s);case 5:o=e.sent,o?(s.Options=o,s.Options.order=s.Attributes.sortby||"zzz",t.createConnected(s).then((function(e){s.Connected=e,r.push(s),a===n.Results.length&&(r.sort((function(e,t){return e.Options.order>t.Options.order?1:t.Options.order>e.Options.order?-1:0})),t.app.data.deviceList=Object.assign([],r),t.app.options.loading=!1),a++})).catch((function(e){t.log={type:"error",message:"Add Connected Element failed.",meta:e},t.app.options.loading=!1}))):t.app.options.loading=!1;case 7:case"end":return e.stop()}}),e)})),s.s();case 7:if((i=s.n()).done){e.next=11;break}return e.delegateYield(o(),"t0",9);case 9:e.next=7;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e["catch"](4),s.e(e.t1);case 16:return e.prev=16,s.f(),e.finish(16);case 19:e.next=22;break;case 21:t.app.options.loading=!1;case 22:case"end":return e.stop()}}),e,null,[[4,13,16,19]])})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.log={type:"error",message:"Request to FHEM failed.",meta:e},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;this.app.session.connect=!1,this.app.session.csrf=null,this.app.session.socket=null,this.app.session.restart||(this.app.session.restart=!0,setTimeout((function(){e.app.session.restart=!1,e.init()}),3e3)),this.log={type:"info",message:"Connection with FHEM was closed. Try to Reconnect in 3 seconds..."}}},{key:"connOpen",value:function(){var e=this;this.app.options.loading=!0,this.getCsrfToken().then((function(t){e.app.session.csrf=t,e.app.session.connect=!0,e.emit("connect"),e.log={type:"info",message:"Connection with FHEM is opened.",meta:e.session},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}})).finally((function(){return e.app.options.loading=!1}))}},{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","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()},setInterval((function(){e.app.options.clock=(new Date).toLocaleTimeString("de-DE",{hour:"2-digit",minute:"2-digit"})}),1e3)}}]),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}})).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(Q.framework.theme,{dark:e.theme.dark}),e.theme.themes&&(e.theme.themes.light&&Object.assign(Q.framework.theme.themes.light,e.theme.themes.light),e.theme.themes.dark&&Object.assign(Q.framework.theme.themes.dark,e.theme.themes.dark))));r["a"].prototype.$fhem.log={type:"info",message:"Config: "+JSON.stringify(e)},r["a"].prototype.$fhem.log={type:"info",message:"Connection: "+JSON.stringify(r["a"].prototype.$fhem.app.connection)},new r["a"]({vuetify:Q,router:z,render:function(e){return e(B)}}).$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-2d212bf1.70ce6758.js b/www/fhemapp/js/chunk-2d212bf1.eb7d7b1d.js similarity index 92% rename from www/fhemapp/js/chunk-2d212bf1.70ce6758.js rename to www/fhemapp/js/chunk-2d212bf1.eb7d7b1d.js index a573b5a2..52a3d3a8 100644 --- a/www/fhemapp/js/chunk-2d212bf1.70ce6758.js +++ b/www/fhemapp/js/chunk-2d212bf1.eb7d7b1d.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d212bf1"],{aa72:function(n,e,t){"use strict";t.r(e);var s=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",[t("v-row",n._l(n.app.data.deviceList,(function(n){return t(n.Options.component,{key:n.Internals.FUUID,tag:"component",attrs:{item:n}})})),1)],1)},o=[],a=(t("d3b7"),t("3ca3"),t("ddb0"),t("4de4"),t("1276"),t("ac1f"),t("5319"),t("b0c0"),{name:"Devices",data:function(){return{app:{session:{connect:!1},data:{deviceList:[]}}}},components:{templ_default:function(){return Promise.all([t.e("chunk-0458398b"),t.e("chunk-788ccab5")]).then(t.bind(null,"121f"))},templ_panel:function(){return t.e("chunk-58038582").then(t.bind(null,"5d11"))},templ_chart:function(){return Promise.all([t.e("chunk-0458398b"),t.e("chunk-f087d6f2"),t.e("chunk-d584b056")]).then(t.bind(null,"b009"))},templ_weather:function(){return t.e("chunk-03454508").then(t.bind(null,"1de8"))},templ_scenes:function(){return t.e("chunk-098d33d4").then(t.bind(null,"09fe"))},templ_sonos:function(){return Promise.all([t.e("chunk-0458398b"),t.e("chunk-5b592ef2")]).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"))}},watch:{$route:function(){this.subscribe()}},methods:{subscribe:function(){if(this.app.session.connect){var n="appOptions!=:FILTER=";if(this.$route.params.filter){var e=this.$route.params.filter.split("&");-1!=e.indexOf("options=true")?n="appOptions=.*"+e[0].replace("=",".:..")+".*":n+=e[0]}"Dashboard"==this.$route.name&&(n="appOptions=.*dashboard.:..true.*"),"System"==this.$route.name&&(n="appOptions=.*system.:..true.*"),"Home"==this.$route.name&&(n="appOptions=.*home.:..true.*"),this.$fhem.getDevices(n)}}},mounted:function(){var n=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 n.subscribe()})),this.subscribe()}}),i=a,p=t("2877"),c=t("6544"),u=t.n(c),r=t("0fd9"),m=Object(p["a"])(i,s,o,!1,null,null,null);e["default"]=m.exports;u()(m,{VRow:r["a"]})}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d212bf1"],{aa72:function(n,e,t){"use strict";t.r(e);var s=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",[t("v-row",n._l(n.app.data.deviceList,(function(n){return t(n.Options.component,{key:n.Internals.FUUID,tag:"component",attrs:{item:n}})})),1)],1)},o=[],a=(t("d3b7"),t("3ca3"),t("ddb0"),t("4de4"),t("1276"),t("ac1f"),t("5319"),t("b0c0"),{name:"Devices",data:function(){return{app:{session:{connect:!1},data:{deviceList:[]}}}},components:{templ_default:function(){return Promise.all([t.e("chunk-0458398b"),t.e("chunk-83618c9a")]).then(t.bind(null,"121f"))},templ_panel:function(){return t.e("chunk-58038582").then(t.bind(null,"5d11"))},templ_chart:function(){return Promise.all([t.e("chunk-0458398b"),t.e("chunk-62d9ca09"),t.e("chunk-d584b056")]).then(t.bind(null,"b009"))},templ_weather:function(){return t.e("chunk-03454508").then(t.bind(null,"1de8"))},templ_scenes:function(){return t.e("chunk-098d33d4").then(t.bind(null,"09fe"))},templ_sonos:function(){return Promise.all([t.e("chunk-0458398b"),t.e("chunk-57a6c555")]).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"))}},watch:{$route:function(){this.subscribe()}},methods:{subscribe:function(){if(this.app.session.connect){var n="appOptions!=:FILTER=";if(this.$route.params.filter){var e=this.$route.params.filter.split("&");-1!=e.indexOf("options=true")?n="appOptions=.*"+e[0].replace("=",".:..")+".*":n+=e[0]}"Dashboard"==this.$route.name&&(n="appOptions=.*dashboard.:..true.*"),"System"==this.$route.name&&(n="appOptions=.*system.:..true.*"),"Home"==this.$route.name&&(n="appOptions=.*home.:..true.*"),this.$fhem.getDevices(n)}}},mounted:function(){var n=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 n.subscribe()})),this.subscribe()}}),i=a,p=t("2877"),c=t("6544"),u=t.n(c),r=t("0fd9"),m=Object(p["a"])(i,s,o,!1,null,null,null);e["default"]=m.exports;u()(m,{VRow:r["a"]})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-5b592ef2.ded7dec1.js b/www/fhemapp/js/chunk-57a6c555.e1b99a29.js similarity index 99% rename from www/fhemapp/js/chunk-5b592ef2.ded7dec1.js rename to www/fhemapp/js/chunk-57a6c555.e1b99a29.js index ba264c98..f25affb7 100644 --- a/www/fhemapp/js/chunk-5b592ef2.ded7dec1.js +++ b/www/fhemapp/js/chunk-57a6c555.e1b99a29.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5b592ef2"],{8308:function(t,e,i){},"9e29":function(t,e,i){},afd9:function(t,e,i){"use strict";var s=i("5530"),a=(i("a9e3"),i("c7cd"),i("8308"),i("3a66")),n=i("a9ad"),l=i("7560"),r=i("58df"),o=i("80d2");e["a"]=Object(r["a"])(Object(a["a"])("bar",["height","window"]),n["a"],l["a"]).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes:function(){return Object(s["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(o["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(o["s"])(this))}})},ba0d:function(t,e,i){"use strict";var s=i("ade3"),a=i("5530"),n=(i("a9e3"),i("d81d"),i("99af"),i("caad"),i("2532"),i("498a"),i("d3b7"),i("25f0"),i("b680"),i("9e29"),i("c37a")),l=i("0789"),r=i("58df"),o=i("297c"),h=i("a293"),c=i("80d2"),u=i("d9bd");e["a"]=Object(r["a"])(n["a"],o["a"]).extend({name:"v-slider",directives:{ClickOutside:h["a"]},mixins:[o["a"]],props:{disabled:Boolean,inverseLabel:Boolean,max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:1},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:function(t){return"boolean"===typeof t||"always"===t}},thumbSize:{type:[Number,String],default:32},tickLabels:{type:Array,default:function(){return[]}},ticks:{type:[Boolean,String],default:!1,validator:function(t){return"boolean"===typeof t||"always"===t}},tickSize:{type:[Number,String],default:2},trackColor:String,trackFillColor:String,value:[Number,String],vertical:Boolean},data:function(){return{app:null,oldValue:null,thumbPressed:!1,mouseTimeout:-1,isFocused:!1,isActive:!1,noClick:!1}},computed:{classes:function(){return Object(a["a"])(Object(a["a"])({},n["a"].options.computed.classes.call(this)),{},{"v-input__slider":!0,"v-input__slider--vertical":this.vertical,"v-input__slider--inverse-label":this.inverseLabel})},internalValue:{get:function(){return this.lazyValue},set:function(t){t=isNaN(t)?this.minValue:t;var e=this.roundValue(Math.min(Math.max(t,this.minValue),this.maxValue));e!==this.lazyValue&&(this.lazyValue=e,this.$emit("input",e))}},trackTransition:function(){return this.thumbPressed?this.showTicks||this.stepNumeric?"0.1s cubic-bezier(0.25, 0.8, 0.5, 1)":"none":""},minValue:function(){return parseFloat(this.min)},maxValue:function(){return parseFloat(this.max)},stepNumeric:function(){return this.step>0?parseFloat(this.step):0},inputWidth:function(){return(this.roundValue(this.internalValue)-this.minValue)/(this.maxValue-this.minValue)*100},trackFillStyles:function(){var t,e=this.vertical?"bottom":"left",i=this.vertical?"top":"right",a=this.vertical?"height":"width",n=this.$vuetify.rtl?"auto":"0",l=this.$vuetify.rtl?"0":"auto",r=this.isDisabled?"calc(".concat(this.inputWidth,"% - 10px)"):"".concat(this.inputWidth,"%");return t={transition:this.trackTransition},Object(s["a"])(t,e,n),Object(s["a"])(t,i,l),Object(s["a"])(t,a,r),t},trackStyles:function(){var t,e=this.vertical?this.$vuetify.rtl?"bottom":"top":this.$vuetify.rtl?"left":"right",i=this.vertical?"height":"width",a="0px",n=this.isDisabled?"calc(".concat(100-this.inputWidth,"% - 10px)"):"calc(".concat(100-this.inputWidth,"%)");return t={transition:this.trackTransition},Object(s["a"])(t,e,a),Object(s["a"])(t,i,n),t},showTicks:function(){return this.tickLabels.length>0||!(this.isDisabled||!this.stepNumeric||!this.ticks)},numTicks:function(){return Math.ceil((this.maxValue-this.minValue)/this.stepNumeric)},showThumbLabel:function(){return!this.isDisabled&&!(!this.thumbLabel&&!this.$scopedSlots["thumb-label"])},computedTrackColor:function(){if(!this.isDisabled)return this.trackColor?this.trackColor:this.isDark?this.validationState:this.validationState||"primary lighten-3"},computedTrackFillColor:function(){if(!this.isDisabled)return this.trackFillColor?this.trackFillColor:this.validationState||this.computedColor},computedThumbColor:function(){return this.thumbColor?this.thumbColor:this.validationState||this.computedColor}},watch:{min:function(t){var e=parseFloat(t);e>this.internalValue&&this.$emit("input",e)},max:function(t){var e=parseFloat(t);e0}},l)},genThumbContainer:function(t,e,i,s,n,l){var r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"thumb",o=[this.genThumb()],h=this.genThumbLabelContent(t);return this.showThumbLabel&&o.push(this.genThumbLabel(h)),this.$createElement("div",this.setTextColor(this.computedThumbColor,{ref:r,key:r,staticClass:"v-slider__thumb-container",class:{"v-slider__thumb-container--active":i,"v-slider__thumb-container--focused":s,"v-slider__thumb-container--show-label":this.showThumbLabel},style:this.getThumbContainerStyles(e),attrs:Object(a["a"])({role:"slider",tabindex:this.isDisabled?-1:this.$attrs.tabindex?this.$attrs.tabindex:0,"aria-label":this.label,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this.internalValue,"aria-readonly":String(this.isReadonly),"aria-orientation":this.vertical?"vertical":"horizontal"},this.$attrs),on:{focus:n,blur:l,keydown:this.onKeyDown}}),o)},genThumbLabelContent:function(t){return this.$scopedSlots["thumb-label"]?this.$scopedSlots["thumb-label"]({value:t}):[this.$createElement("span",[String(t)])]},genThumbLabel:function(t){var e=Object(c["g"])(this.thumbSize),i=this.vertical?"translateY(20%) translateY(".concat(Number(this.thumbSize)/3-1,"px) translateX(55%) rotate(135deg)"):"translateY(-20%) translateY(-12px) translateX(-50%) rotate(45deg)";return this.$createElement(l["d"],{props:{origin:"bottom center"}},[this.$createElement("div",{staticClass:"v-slider__thumb-label-container",directives:[{name:"show",value:this.isFocused||this.isActive||"always"===this.thumbLabel}]},[this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb-label",style:{height:e,width:e,transform:i}}),[this.$createElement("div",t)])])])},genThumb:function(){return this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb"}))},getThumbContainerStyles:function(t){var e=this.vertical?"top":"left",i=this.$vuetify.rtl?100-t:t;return i=this.vertical?100-i:i,Object(s["a"])({transition:this.trackTransition},e,"".concat(i,"%"))},onSliderMouseDown:function(t){var e,i=this;t.preventDefault(),this.oldValue=this.internalValue,this.isActive=!0;var s=!c["B"]||{passive:!0,capture:!0},a=!!c["B"]&&{passive:!0};(null==(e=t.target)?void 0:e.matches(".v-slider__thumb-container, .v-slider__thumb-container *"))?this.thumbPressed=!0:(window.clearTimeout(this.mouseTimeout),this.mouseTimeout=window.setTimeout((function(){i.thumbPressed=!0}),300)),"touches"in t?(this.app.addEventListener("touchmove",this.onMouseMove,a),Object(c["a"])(this.app,"touchend",this.onSliderMouseUp,s)):(this.onMouseMove(t),this.app.addEventListener("mousemove",this.onMouseMove,a),Object(c["a"])(this.app,"mouseup",this.onSliderMouseUp,s)),this.$emit("start",this.internalValue)},onSliderMouseUp:function(t){t.stopPropagation(),window.clearTimeout(this.mouseTimeout),this.thumbPressed=!1;var e=!!c["B"]&&{passive:!0};this.app.removeEventListener("touchmove",this.onMouseMove,e),this.app.removeEventListener("mousemove",this.onMouseMove,e),this.$emit("mouseup",t),this.$emit("end",this.internalValue),Object(c["j"])(this.oldValue,this.internalValue)||(this.$emit("change",this.internalValue),this.noClick=!0),this.isActive=!1},onMouseMove:function(t){"mousemove"===t.type&&(this.thumbPressed=!0),this.internalValue=this.parseMouseMove(t)},onKeyDown:function(t){if(this.isInteractive){var e=this.parseKeyDown(t,this.internalValue);null==e||ethis.maxValue||(this.internalValue=e,this.$emit("change",e))}},onSliderClick:function(t){if(this.noClick)this.noClick=!1;else{var e=this.$refs.thumb;e.focus(),this.onMouseMove(t),this.$emit("change",this.internalValue)}},onBlur:function(t){this.isFocused=!1,this.$emit("blur",t)},onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},parseMouseMove:function(t){var e=this.vertical?"top":"left",i=this.vertical?"height":"width",s=this.vertical?"clientY":"clientX",a=this.$refs.track.getBoundingClientRect(),n=a[e],l=a[i],r="touches"in t?t.touches[0][s]:t[s],o=Math.min(Math.max((r-n)/l,0),1)||0;return this.vertical&&(o=1-o),this.$vuetify.rtl&&(o=1-o),parseFloat(this.min)+o*(this.maxValue-this.minValue)},parseKeyDown:function(t,e){if(this.isInteractive){var i=c["x"].pageup,s=c["x"].pagedown,a=c["x"].end,n=c["x"].home,l=c["x"].left,r=c["x"].right,o=c["x"].down,h=c["x"].up;if([i,s,a,n,l,r,o,h].includes(t.keyCode)){t.preventDefault();var u=this.stepNumeric||1,d=(this.maxValue-this.minValue)/u;if([l,r,o,h].includes(t.keyCode)){var m=this.$vuetify.rtl?[l,h]:[r,h],v=m.includes(t.keyCode)?1:-1,p=t.shiftKey?3:t.ctrlKey?2:1;e+=v*u*p}else if(t.keyCode===n)e=this.minValue;else if(t.keyCode===a)e=this.maxValue;else{var f=t.keyCode===s?1:-1;e-=f*u*(d>100?d/10:10)}return e}}},roundValue:function(t){if(!this.stepNumeric)return t;var e=this.step.toString().trim(),i=e.indexOf(".")>-1?e.length-e.indexOf(".")-1:0,s=this.minValue%this.stepNumeric,a=Math.round((t-s)/this.stepNumeric)*this.stepNumeric+s;return parseFloat(Math.min(a,this.maxValue).toFixed(i))}}})},dd08:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-col",{staticClass:"col-12 col-sm-6 col-md-4 col-lg-4"},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.vals.mainLevel,color:t.vals.mainColor,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" "),i("v-spacer"),i("v-btn",{attrs:{small:"",icon:""},on:{click:t.expand}},[i("v-icon",{attrs:{small:""}},[t._v(t._s(t.maxIcon))])],1)],1),i("v-divider"),i("v-card-text",[i("v-row",{attrs:{align:"center"}},[i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[t.expanded?t._e():i("v-btn",{attrs:{icon:""},on:{click:function(e){return t.setVolume("D")}}},[i("v-icon",{attrs:{large:""}},[t._v(t._s(t.leftIcon))])],1),t.expanded?i("v-btn",{attrs:{icon:"",disabled:t.prevDisabled},on:{click:function(e){return t.setPlayer("Previous")}}},[i("v-icon",{attrs:{large:""}},[t._v(t._s(t.prevIcon))])],1):t._e()],1),i("v-divider",{attrs:{vertical:""}}),i("v-col",{attrs:{align:"center"}},[i("v-btn",{attrs:{icon:""},on:{click:function(e){return t.setPlay()}}},[i("v-icon",{attrs:{large:""}},[t._v(t._s(t.playIcon))])],1)],1),i("v-divider",{attrs:{vertical:""}}),i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[t.expanded?t._e():i("v-btn",{attrs:{icon:""},on:{click:function(e){return t.setVolume("U")}}},[i("v-icon",{attrs:{large:""}},[t._v(t._s(t.rightIcon))])],1),t.expanded?i("v-btn",{attrs:{icon:"",disabled:t.nextDisabled},on:{click:function(e){return t.setPlayer("Next")}}},[i("v-icon",{attrs:{large:""}},[t._v(t._s(t.nextIcon))])],1):t._e()],1)],1)],1),t.expanded?i("v-divider"):t._e(),t.expanded?i("v-card-text",[i("v-row",{attrs:{align:"center"}},[i("v-col",[i("v-slider",{attrs:{"hide-details":"",color:"accent"},on:{change:t.setVolume},scopedSlots:t._u([{key:"prepend",fn:function(){return[i("v-icon",{on:{click:function(e){return t.setMute()}}},[t._v(t._s(t.volumeIcon)+" ")])]},proxy:!0}],null,!1,2343229129),model:{value:t.vals.volume,callback:function(e){t.$set(t.vals,"volume",e)},expression:"vals.volume"}})],1)],1),i("v-row",{attrs:{align:"center"}},[i("v-col",{staticClass:"col-4"}),i("v-col",{staticClass:"col-4 text-h6",attrs:{align:"center"}},[t._v(" "+t._s(t.vals.trackPosition)+" ")]),i("v-col",{staticClass:"col-4",attrs:{align:"center"}},[t._v(" "+t._s(t.vals.tracks)+" ")])],1)],1):t._e(),t.expanded&&t.vals.zones.length>0?i("v-divider"):t._e(),t.expanded&&t.vals.zones.length>0?i("v-card-text",[i("v-row",[i("v-col",t._l(t.vals.zones,(function(e){return i("span",{key:e},[i("v-chip",{staticClass:"mr-2",attrs:{small:""}},[t._v(t._s(e))])],1)})),0)],1)],1):t._e(),i("v-divider"),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",[t._v(t._s(t.vals.systemIcon))]),i("span",{staticClass:"text-truncate"},[t._v(t._s(t.vals.systemIconValue))])],1)],1)],1)},a=[],n=(i("4de4"),i("1276"),i("ac1f"),{data:function(){return{name:"sonos",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(t){var e=this.$fhem.getEl(t,"Readings","transportState","Value"),i=this.$fhem.getEl(t,"Readings","nextTrackHandle","Value")||"|",s=this.$fhem.getEl(t,"Readings","Volume","Value"),a=this.$fhem.getEl(t,"Readings","Mute","Value"),n=this.$fhem.getEl(t,"Readings","currentStreamAudio","Value"),l=this.$fhem.getEl(t,"Readings","currentSender","Value"),r=this.$fhem.getEl(t,"Readings","currentSenderInfo","Value"),o=this.$fhem.getEl(t,"Readings","currentAlbum","Value"),h=this.$fhem.getEl(t,"Readings","currentArtist","Value"),c=this.$fhem.getEl(t,"Readings","currentTitle","Value"),u=this.$fhem.getEl(t,"Readings","currentTrack","Value"),d=this.$fhem.getEl(t,"Readings","numberOfTracks","Value"),m=this.$fhem.getEl(t,"Readings","ZoneGroupNameDetails","Value"),v=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||v,this.vals=this.$fhem.handleStates(t,this.vals,this.defaultSet),m&&(this.vals.title+=" (gruppiert)"),this.vals.zones=m.split(" + ").filter(Boolean),this.prevDisabled=!(i.split("|")[0].length>0),this.nextDisabled=!(i.split("|")[1].length>0),this.vals.trackPosition=this.$fhem.getEl(t,"Readings","currentTrackPositionSimulated","Value"),this.vals.volumeChanged&&this.vals.volume===parseInt(s)&&(this.vals.volumeChanged=!1),this.vals.volumeChanged||(this.vals.volume=parseInt(s)),this.vals.mute="1"===a,this.volumeIcon=this.vals.mute?"mdi-volume-mute":"mdi-volume-high",o+=h?" ("+h+")":"",this.vals.playInfo1="1"===n?l:o,this.vals.playInfo2="1"===n?r:c,this.vals.systemIconValue||(this.vals.systemIconValue=this.vals.playInfo1),this.vals.tracks="0"===n?u+" von "+d:"",this.vals.play="PLAYING"===e,this.playIcon=this.vals.play?"mdi-pause":"mdi-play"}}},methods:{sendCmd:function(t,e){var i=this;e?(this.pendingClick&&(clearTimeout(this.pendingClick),this.pendingClick=0),this.pendingClick=setTimeout((function(){i.$fhem.request(t)}),1e3)):this.$fhem.request(t)},setVolume:function(t){this.vals.volumeChanged=!0;var e=this.vals.zones.length>0?" GroupVolume":" Volume";"D"!=t&&"U"!=t&&(t=" "+t);var i="set "+this.item.Name+e+t;this.sendCmd(i)},setPlayer:function(t){var e="set "+this.item.Name+" "+t;this.sendCmd(e)},setPlay:function(){var t="set "+this.item.Name+(this.vals.play?" Pause":" Play");this.sendCmd(t)},setMute:function(){var t="set "+this.item.Name+(this.vals.mute?" Mute 0":" Mute 1");this.sendCmd(t)},expand:function(){this.expanded?(this.expanded=!1,this.maxIcon="mdi-arrow-expand"):(this.expanded=!0,this.maxIcon="mdi-arrow-collapse")}},mounted:function(){var t=this;setInterval((function(){t.vals.systemIconValue=t.vals.systemIconValue===t.vals.playInfo1?t.vals.playInfo2:t.vals.playInfo1}),3e3)},props:{item:{}}}),l=n,r=i("2877"),o=i("6544"),h=i.n(o),c=i("8336"),u=i("b0af"),d=i("99d9"),m=i("cc20"),v=i("62ad"),p=i("ce7e"),f=i("132d"),b=i("8e36"),g=i("0fd9"),y=i("ba0d"),k=i("2fa4"),C=i("afd9"),V=Object(r["a"])(l,s,a,!1,null,null,null);e["default"]=V.exports;h()(V,{VBtn:c["a"],VCard:u["a"],VCardText:d["c"],VCardTitle:d["d"],VChip:m["a"],VCol:v["a"],VDivider:p["a"],VIcon:f["a"],VProgressLinear:b["a"],VRow:g["a"],VSlider:y["a"],VSpacer:k["a"],VSystemBar:C["a"]})}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-57a6c555"],{8308:function(t,e,i){},"9e29":function(t,e,i){},afd9:function(t,e,i){"use strict";var s=i("5530"),a=(i("a9e3"),i("c7cd"),i("8308"),i("3a66")),n=i("a9ad"),l=i("7560"),r=i("58df"),o=i("80d2");e["a"]=Object(r["a"])(Object(a["a"])("bar",["height","window"]),n["a"],l["a"]).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes:function(){return Object(s["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(o["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(o["s"])(this))}})},ba0d:function(t,e,i){"use strict";var s=i("ade3"),a=i("5530"),n=(i("a9e3"),i("d81d"),i("99af"),i("caad"),i("2532"),i("498a"),i("d3b7"),i("25f0"),i("b680"),i("9e29"),i("c37a")),l=i("0789"),r=i("58df"),o=i("297c"),h=i("a293"),c=i("80d2"),u=i("d9bd");e["a"]=Object(r["a"])(n["a"],o["a"]).extend({name:"v-slider",directives:{ClickOutside:h["a"]},mixins:[o["a"]],props:{disabled:Boolean,inverseLabel:Boolean,max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:1},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:function(t){return"boolean"===typeof t||"always"===t}},thumbSize:{type:[Number,String],default:32},tickLabels:{type:Array,default:function(){return[]}},ticks:{type:[Boolean,String],default:!1,validator:function(t){return"boolean"===typeof t||"always"===t}},tickSize:{type:[Number,String],default:2},trackColor:String,trackFillColor:String,value:[Number,String],vertical:Boolean},data:function(){return{app:null,oldValue:null,thumbPressed:!1,mouseTimeout:-1,isFocused:!1,isActive:!1,noClick:!1}},computed:{classes:function(){return Object(a["a"])(Object(a["a"])({},n["a"].options.computed.classes.call(this)),{},{"v-input__slider":!0,"v-input__slider--vertical":this.vertical,"v-input__slider--inverse-label":this.inverseLabel})},internalValue:{get:function(){return this.lazyValue},set:function(t){t=isNaN(t)?this.minValue:t;var e=this.roundValue(Math.min(Math.max(t,this.minValue),this.maxValue));e!==this.lazyValue&&(this.lazyValue=e,this.$emit("input",e))}},trackTransition:function(){return this.thumbPressed?this.showTicks||this.stepNumeric?"0.1s cubic-bezier(0.25, 0.8, 0.5, 1)":"none":""},minValue:function(){return parseFloat(this.min)},maxValue:function(){return parseFloat(this.max)},stepNumeric:function(){return this.step>0?parseFloat(this.step):0},inputWidth:function(){return(this.roundValue(this.internalValue)-this.minValue)/(this.maxValue-this.minValue)*100},trackFillStyles:function(){var t,e=this.vertical?"bottom":"left",i=this.vertical?"top":"right",a=this.vertical?"height":"width",n=this.$vuetify.rtl?"auto":"0",l=this.$vuetify.rtl?"0":"auto",r=this.isDisabled?"calc(".concat(this.inputWidth,"% - 10px)"):"".concat(this.inputWidth,"%");return t={transition:this.trackTransition},Object(s["a"])(t,e,n),Object(s["a"])(t,i,l),Object(s["a"])(t,a,r),t},trackStyles:function(){var t,e=this.vertical?this.$vuetify.rtl?"bottom":"top":this.$vuetify.rtl?"left":"right",i=this.vertical?"height":"width",a="0px",n=this.isDisabled?"calc(".concat(100-this.inputWidth,"% - 10px)"):"calc(".concat(100-this.inputWidth,"%)");return t={transition:this.trackTransition},Object(s["a"])(t,e,a),Object(s["a"])(t,i,n),t},showTicks:function(){return this.tickLabels.length>0||!(this.isDisabled||!this.stepNumeric||!this.ticks)},numTicks:function(){return Math.ceil((this.maxValue-this.minValue)/this.stepNumeric)},showThumbLabel:function(){return!this.isDisabled&&!(!this.thumbLabel&&!this.$scopedSlots["thumb-label"])},computedTrackColor:function(){if(!this.isDisabled)return this.trackColor?this.trackColor:this.isDark?this.validationState:this.validationState||"primary lighten-3"},computedTrackFillColor:function(){if(!this.isDisabled)return this.trackFillColor?this.trackFillColor:this.validationState||this.computedColor},computedThumbColor:function(){return this.thumbColor?this.thumbColor:this.validationState||this.computedColor}},watch:{min:function(t){var e=parseFloat(t);e>this.internalValue&&this.$emit("input",e)},max:function(t){var e=parseFloat(t);e0}},l)},genThumbContainer:function(t,e,i,s,n,l){var r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"thumb",o=[this.genThumb()],h=this.genThumbLabelContent(t);return this.showThumbLabel&&o.push(this.genThumbLabel(h)),this.$createElement("div",this.setTextColor(this.computedThumbColor,{ref:r,key:r,staticClass:"v-slider__thumb-container",class:{"v-slider__thumb-container--active":i,"v-slider__thumb-container--focused":s,"v-slider__thumb-container--show-label":this.showThumbLabel},style:this.getThumbContainerStyles(e),attrs:Object(a["a"])({role:"slider",tabindex:this.isDisabled?-1:this.$attrs.tabindex?this.$attrs.tabindex:0,"aria-label":this.label,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this.internalValue,"aria-readonly":String(this.isReadonly),"aria-orientation":this.vertical?"vertical":"horizontal"},this.$attrs),on:{focus:n,blur:l,keydown:this.onKeyDown}}),o)},genThumbLabelContent:function(t){return this.$scopedSlots["thumb-label"]?this.$scopedSlots["thumb-label"]({value:t}):[this.$createElement("span",[String(t)])]},genThumbLabel:function(t){var e=Object(c["g"])(this.thumbSize),i=this.vertical?"translateY(20%) translateY(".concat(Number(this.thumbSize)/3-1,"px) translateX(55%) rotate(135deg)"):"translateY(-20%) translateY(-12px) translateX(-50%) rotate(45deg)";return this.$createElement(l["d"],{props:{origin:"bottom center"}},[this.$createElement("div",{staticClass:"v-slider__thumb-label-container",directives:[{name:"show",value:this.isFocused||this.isActive||"always"===this.thumbLabel}]},[this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb-label",style:{height:e,width:e,transform:i}}),[this.$createElement("div",t)])])])},genThumb:function(){return this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb"}))},getThumbContainerStyles:function(t){var e=this.vertical?"top":"left",i=this.$vuetify.rtl?100-t:t;return i=this.vertical?100-i:i,Object(s["a"])({transition:this.trackTransition},e,"".concat(i,"%"))},onSliderMouseDown:function(t){var e,i=this;t.preventDefault(),this.oldValue=this.internalValue,this.isActive=!0;var s=!c["B"]||{passive:!0,capture:!0},a=!!c["B"]&&{passive:!0};(null==(e=t.target)?void 0:e.matches(".v-slider__thumb-container, .v-slider__thumb-container *"))?this.thumbPressed=!0:(window.clearTimeout(this.mouseTimeout),this.mouseTimeout=window.setTimeout((function(){i.thumbPressed=!0}),300)),"touches"in t?(this.app.addEventListener("touchmove",this.onMouseMove,a),Object(c["a"])(this.app,"touchend",this.onSliderMouseUp,s)):(this.onMouseMove(t),this.app.addEventListener("mousemove",this.onMouseMove,a),Object(c["a"])(this.app,"mouseup",this.onSliderMouseUp,s)),this.$emit("start",this.internalValue)},onSliderMouseUp:function(t){t.stopPropagation(),window.clearTimeout(this.mouseTimeout),this.thumbPressed=!1;var e=!!c["B"]&&{passive:!0};this.app.removeEventListener("touchmove",this.onMouseMove,e),this.app.removeEventListener("mousemove",this.onMouseMove,e),this.$emit("mouseup",t),this.$emit("end",this.internalValue),Object(c["j"])(this.oldValue,this.internalValue)||(this.$emit("change",this.internalValue),this.noClick=!0),this.isActive=!1},onMouseMove:function(t){"mousemove"===t.type&&(this.thumbPressed=!0),this.internalValue=this.parseMouseMove(t)},onKeyDown:function(t){if(this.isInteractive){var e=this.parseKeyDown(t,this.internalValue);null==e||ethis.maxValue||(this.internalValue=e,this.$emit("change",e))}},onSliderClick:function(t){if(this.noClick)this.noClick=!1;else{var e=this.$refs.thumb;e.focus(),this.onMouseMove(t),this.$emit("change",this.internalValue)}},onBlur:function(t){this.isFocused=!1,this.$emit("blur",t)},onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},parseMouseMove:function(t){var e=this.vertical?"top":"left",i=this.vertical?"height":"width",s=this.vertical?"clientY":"clientX",a=this.$refs.track.getBoundingClientRect(),n=a[e],l=a[i],r="touches"in t?t.touches[0][s]:t[s],o=Math.min(Math.max((r-n)/l,0),1)||0;return this.vertical&&(o=1-o),this.$vuetify.rtl&&(o=1-o),parseFloat(this.min)+o*(this.maxValue-this.minValue)},parseKeyDown:function(t,e){if(this.isInteractive){var i=c["x"].pageup,s=c["x"].pagedown,a=c["x"].end,n=c["x"].home,l=c["x"].left,r=c["x"].right,o=c["x"].down,h=c["x"].up;if([i,s,a,n,l,r,o,h].includes(t.keyCode)){t.preventDefault();var u=this.stepNumeric||1,d=(this.maxValue-this.minValue)/u;if([l,r,o,h].includes(t.keyCode)){var m=this.$vuetify.rtl?[l,h]:[r,h],v=m.includes(t.keyCode)?1:-1,p=t.shiftKey?3:t.ctrlKey?2:1;e+=v*u*p}else if(t.keyCode===n)e=this.minValue;else if(t.keyCode===a)e=this.maxValue;else{var f=t.keyCode===s?1:-1;e-=f*u*(d>100?d/10:10)}return e}}},roundValue:function(t){if(!this.stepNumeric)return t;var e=this.step.toString().trim(),i=e.indexOf(".")>-1?e.length-e.indexOf(".")-1:0,s=this.minValue%this.stepNumeric,a=Math.round((t-s)/this.stepNumeric)*this.stepNumeric+s;return parseFloat(Math.min(a,this.maxValue).toFixed(i))}}})},dd08:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-col",{staticClass:"col-12 col-sm-6 col-md-4 col-lg-4"},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.vals.mainLevel,color:t.vals.mainColor,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" "),i("v-spacer"),i("v-btn",{attrs:{small:"",icon:""},on:{click:t.expand}},[i("v-icon",{attrs:{small:""}},[t._v(t._s(t.maxIcon))])],1)],1),i("v-divider"),i("v-card-text",[i("v-row",{attrs:{align:"center"}},[i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[t.expanded?t._e():i("v-btn",{attrs:{icon:""},on:{click:function(e){return t.setVolume("D")}}},[i("v-icon",{attrs:{large:""}},[t._v(t._s(t.leftIcon))])],1),t.expanded?i("v-btn",{attrs:{icon:"",disabled:t.prevDisabled},on:{click:function(e){return t.setPlayer("Previous")}}},[i("v-icon",{attrs:{large:""}},[t._v(t._s(t.prevIcon))])],1):t._e()],1),i("v-divider",{attrs:{vertical:""}}),i("v-col",{attrs:{align:"center"}},[i("v-btn",{attrs:{icon:""},on:{click:function(e){return t.setPlay()}}},[i("v-icon",{attrs:{large:""}},[t._v(t._s(t.playIcon))])],1)],1),i("v-divider",{attrs:{vertical:""}}),i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[t.expanded?t._e():i("v-btn",{attrs:{icon:""},on:{click:function(e){return t.setVolume("U")}}},[i("v-icon",{attrs:{large:""}},[t._v(t._s(t.rightIcon))])],1),t.expanded?i("v-btn",{attrs:{icon:"",disabled:t.nextDisabled},on:{click:function(e){return t.setPlayer("Next")}}},[i("v-icon",{attrs:{large:""}},[t._v(t._s(t.nextIcon))])],1):t._e()],1)],1)],1),t.expanded?i("v-divider"):t._e(),t.expanded?i("v-card-text",[i("v-row",{attrs:{align:"center"}},[i("v-col",[i("v-slider",{attrs:{"hide-details":"",color:"accent"},on:{change:t.setVolume},scopedSlots:t._u([{key:"prepend",fn:function(){return[i("v-icon",{on:{click:function(e){return t.setMute()}}},[t._v(t._s(t.volumeIcon)+" ")])]},proxy:!0}],null,!1,2343229129),model:{value:t.vals.volume,callback:function(e){t.$set(t.vals,"volume",e)},expression:"vals.volume"}})],1)],1),i("v-row",{attrs:{align:"center"}},[i("v-col",{staticClass:"col-4"}),i("v-col",{staticClass:"col-4 text-h6",attrs:{align:"center"}},[t._v(" "+t._s(t.vals.trackPosition)+" ")]),i("v-col",{staticClass:"col-4",attrs:{align:"center"}},[t._v(" "+t._s(t.vals.tracks)+" ")])],1)],1):t._e(),t.expanded&&t.vals.zones.length>0?i("v-divider"):t._e(),t.expanded&&t.vals.zones.length>0?i("v-card-text",[i("v-row",[i("v-col",t._l(t.vals.zones,(function(e){return i("span",{key:e},[i("v-chip",{staticClass:"mr-2",attrs:{small:""}},[t._v(t._s(e))])],1)})),0)],1)],1):t._e(),i("v-divider"),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",[t._v(t._s(t.vals.systemIcon))]),i("span",{staticClass:"text-truncate"},[t._v(t._s(t.vals.systemIconValue))])],1)],1)],1)},a=[],n=(i("4de4"),i("1276"),i("ac1f"),{data:function(){return{name:"sonos",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(t){var e=this.$fhem.getEl(t,"Readings","transportState","Value"),i=this.$fhem.getEl(t,"Readings","nextTrackHandle","Value")||"|",s=this.$fhem.getEl(t,"Readings","Volume","Value"),a=this.$fhem.getEl(t,"Readings","Mute","Value"),n=this.$fhem.getEl(t,"Readings","currentStreamAudio","Value"),l=this.$fhem.getEl(t,"Readings","currentSender","Value"),r=this.$fhem.getEl(t,"Readings","currentSenderInfo","Value"),o=this.$fhem.getEl(t,"Readings","currentAlbum","Value"),h=this.$fhem.getEl(t,"Readings","currentArtist","Value"),c=this.$fhem.getEl(t,"Readings","currentTitle","Value"),u=this.$fhem.getEl(t,"Readings","currentTrack","Value"),d=this.$fhem.getEl(t,"Readings","numberOfTracks","Value"),m=this.$fhem.getEl(t,"Readings","ZoneGroupNameDetails","Value"),v=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||v,this.vals=this.$fhem.handleStates(t,this.vals,this.defaultSet),m&&(this.vals.title+=" (gruppiert)"),this.vals.zones=m.split(" + ").filter(Boolean),this.prevDisabled=!(i.split("|")[0].length>0),this.nextDisabled=!(i.split("|")[1].length>0),this.vals.trackPosition=this.$fhem.getEl(t,"Readings","currentTrackPositionSimulated","Value"),this.vals.volumeChanged&&this.vals.volume===parseInt(s)&&(this.vals.volumeChanged=!1),this.vals.volumeChanged||(this.vals.volume=parseInt(s)),this.vals.mute="1"===a,this.volumeIcon=this.vals.mute?"mdi-volume-mute":"mdi-volume-high",o+=h?" ("+h+")":"",this.vals.playInfo1="1"===n?l:o,this.vals.playInfo2="1"===n?r:c,this.vals.systemIconValue||(this.vals.systemIconValue=this.vals.playInfo1),this.vals.tracks="0"===n?u+" von "+d:"",this.vals.play="PLAYING"===e,this.playIcon=this.vals.play?"mdi-pause":"mdi-play"}}},methods:{sendCmd:function(t,e){var i=this;e?(this.pendingClick&&(clearTimeout(this.pendingClick),this.pendingClick=0),this.pendingClick=setTimeout((function(){i.$fhem.request(t)}),1e3)):this.$fhem.request(t)},setVolume:function(t){this.vals.volumeChanged=!0;var e=this.vals.zones.length>0?" GroupVolume":" Volume";"D"!=t&&"U"!=t&&(t=" "+t);var i="set "+this.item.Name+e+t;this.sendCmd(i)},setPlayer:function(t){var e="set "+this.item.Name+" "+t;this.sendCmd(e)},setPlay:function(){var t="set "+this.item.Name+(this.vals.play?" Pause":" Play");this.sendCmd(t)},setMute:function(){var t="set "+this.item.Name+(this.vals.mute?" Mute 0":" Mute 1");this.sendCmd(t)},expand:function(){this.expanded?(this.expanded=!1,this.maxIcon="mdi-arrow-expand"):(this.expanded=!0,this.maxIcon="mdi-arrow-collapse")}},mounted:function(){var t=this;setInterval((function(){t.vals.systemIconValue=t.vals.systemIconValue===t.vals.playInfo1?t.vals.playInfo2:t.vals.playInfo1}),3e3)},props:{item:{}}}),l=n,r=i("2877"),o=i("6544"),h=i.n(o),c=i("8336"),u=i("b0af"),d=i("99d9"),m=i("cc20"),v=i("62ad"),p=i("ce7e"),f=i("132d"),b=i("8e36"),g=i("0fd9"),y=i("ba0d"),k=i("2fa4"),C=i("afd9"),V=Object(r["a"])(l,s,a,!1,null,null,null);e["default"]=V.exports;h()(V,{VBtn:c["a"],VCard:u["a"],VCardText:d["c"],VCardTitle:d["d"],VChip:m["a"],VCol:v["a"],VDivider:p["a"],VIcon:f["a"],VProgressLinear:b["a"],VRow:g["a"],VSlider:y["a"],VSpacer:k["a"],VSystemBar:C["a"]})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-f087d6f2.1bc41a25.js b/www/fhemapp/js/chunk-62d9ca09.da27c615.js similarity index 99% rename from www/fhemapp/js/chunk-f087d6f2.1bc41a25.js rename to www/fhemapp/js/chunk-62d9ca09.da27c615.js index ee57a547..3ab49a2d 100644 --- a/www/fhemapp/js/chunk-f087d6f2.1bc41a25.js +++ b/www/fhemapp/js/chunk-62d9ca09.da27c615.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f087d6f2"],{"129f":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"2b19":function(t,e,i){var n=i("23e7"),s=i("129f");n({target:"Object",stat:!0},{is:s})},"480e":function(t,e,i){"use strict";i("7db0");var n=i("7560");e["a"]=n["a"].extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark:function(){return this.root?this.rootIsDark:n["a"].options.computed.isDark.call(this)}},render:function(){return this.$slots.default&&this.$slots.default.find((function(t){return!t.isComment&&" "!==t.text}))}})},"4ff9":function(t,e,i){},8654:function(t,e,i){"use strict";var n=i("2909"),s=i("5530"),o=(i("a9e3"),i("0481"),i("d3b7"),i("25f0"),i("caad"),i("2b19"),i("4ff9"),i("c37a")),a=(i("99af"),i("e9b1"),i("7560")),l=i("58df"),r=Object(l["a"])(a["a"]).extend({name:"v-counter",functional:!0,props:{value:{type:[Number,String],default:""},max:[Number,String]},render:function(t,e){var i=e.props,n=parseInt(i.max,10),o=parseInt(i.value,10),l=n?"".concat(o," / ").concat(n):String(i.value),r=n&&o>n;return t("div",{staticClass:"v-counter",class:Object(s["a"])({"error--text":r},Object(a["b"])(e))},l)}}),h=r,u=i("ba87"),c=i("90a2"),d=i("d9bd"),f=i("2b0e");function p(t){return"undefined"!==typeof window&&"IntersectionObserver"in window?f["a"].extend({name:"intersectable",mounted:function(){c["a"].inserted(this.$el,{name:"intersect",value:this.onObserve})},destroyed:function(){c["a"].unbind(this.$el)},methods:{onObserve:function(e,i,n){if(n)for(var s=0,o=t.onVisible.length;s0||this.badInput},isEnclosed:function(){return this.filled||this.isSolo||this.outlined},isLabelActive:function(){return this.isDirty||I.includes(this.type)},isSingle:function(){return this.isSolo||this.singleLine||this.fullWidth||this.filled&&!this.hasLabel},isSolo:function(){return this.solo||this.soloInverted},labelPosition:function(){var t=this.prefix&&!this.labelValue?this.prefixWidth:0;return this.labelValue&&this.prependWidth&&(t-=this.prependWidth),this.$vuetify.rtl===this.reverse?{left:t,right:"auto"}:{left:"auto",right:t}},showLabel:function(){return this.hasLabel&&!(this.isSingle&&this.labelValue)},labelValue:function(){return this.isFocused||this.isLabelActive}},watch:{outlined:"setLabelWidth",label:function(){this.$nextTick(this.setLabelWidth)},prefix:function(){this.$nextTick(this.setPrefixWidth)},isFocused:"updateValue",value:function(t){this.lazyValue=t}},created:function(){this.$attrs.hasOwnProperty("box")&&Object(d["a"])("box","filled",this),this.$attrs.hasOwnProperty("browser-autocomplete")&&Object(d["a"])("browser-autocomplete","autocomplete",this),this.shaped&&!(this.filled||this.outlined||this.isSolo)&&Object(d["c"])("shaped should be used with either filled or outlined",this)},mounted:function(){var t=this;this.$watch((function(){return t.labelValue}),this.setLabelWidth),this.autofocus&&this.tryAutofocus(),requestAnimationFrame((function(){return t.isBooted=!0}))},methods:{focus:function(){this.onFocus()},blur:function(t){var e=this;window.requestAnimationFrame((function(){e.$refs.input&&e.$refs.input.blur()}))},clearableCallback:function(){var t=this;this.$refs.input&&this.$refs.input.focus(),this.$nextTick((function(){return t.internalValue=null}))},genAppendSlot:function(){var t=[];return this.$slots["append-outer"]?t.push(this.$slots["append-outer"]):this.appendOuterIcon&&t.push(this.genIcon("appendOuter")),this.genSlot("append","outer",t)},genPrependInnerSlot:function(){var t=[];return this.$slots["prepend-inner"]?t.push(this.$slots["prepend-inner"]):this.prependInnerIcon&&t.push(this.genIcon("prependInner")),this.genSlot("prepend","inner",t)},genIconSlot:function(){var t=[];return this.$slots.append?t.push(this.$slots.append):this.appendIcon&&t.push(this.genIcon("append")),this.genSlot("append","inner",t)},genInputSlot:function(){var t=o["a"].options.methods.genInputSlot.call(this),e=this.genPrependInnerSlot();return e&&(t.children=t.children||[],t.children.unshift(e)),t},genClearIcon:function(){if(!this.clearable)return null;var t=this.isDirty?void 0:{attrs:{disabled:!0}};return this.genSlot("append","inner",[this.genIcon("clear",this.clearableCallback,t)])},genCounter:function(){var t;if(!this.hasCounter)return null;var e=!0===this.counter?this.attrs$.maxlength:this.counter,i={dark:this.dark,light:this.light,max:e,value:this.computedCounterValue};return null!=(t=null==this.$scopedSlots.counter?void 0:this.$scopedSlots.counter({props:i}))?t:this.$createElement(h,{props:i})},genControl:function(){return o["a"].options.methods.genControl.call(this)},genDefaultSlot:function(){return[this.genFieldset(),this.genTextFieldSlot(),this.genClearIcon(),this.genIconSlot(),this.genProgress()]},genFieldset:function(){return this.outlined?this.$createElement("fieldset",{attrs:{"aria-hidden":!0}},[this.genLegend()]):null},genLabel:function(){if(!this.showLabel)return null;var t={props:{absolute:!0,color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:!this.isSingle&&(this.isFocused||!!this.validationState),for:this.computedId,left:this.labelPosition.left,light:this.light,right:this.labelPosition.right,value:this.labelValue}};return this.$createElement(u["a"],t,this.$slots.label||this.label)},genLegend:function(){var t=this.singleLine||!this.labelValue&&!this.isDirty?0:this.labelWidth,e=this.$createElement("span",{domProps:{innerHTML:"​"}});return this.$createElement("legend",{style:{width:this.isSingle?void 0:Object($["g"])(t)}},[e])},genInput:function(){var t=Object.assign({},this.listeners$);return delete t.change,this.$createElement("input",{style:{},domProps:{value:"number"===this.type&&Object.is(this.lazyValue,-0)?"-0":this.lazyValue},attrs:Object(s["a"])(Object(s["a"])({},this.attrs$),{},{autofocus:this.autofocus,disabled:this.isDisabled,id:this.computedId,placeholder:this.isFocused||!this.hasLabel?this.placeholder:void 0,readonly:this.isReadonly,type:this.type}),on:Object.assign(t,{blur:this.onBlur,input:this.onInput,focus:this.onFocus,keydown:this.onKeyDown}),ref:"input",directives:[{name:"resize",modifiers:{quiet:!0},value:this.onResize}]})},genMessages:function(){if(!this.showDetails)return null;var t=o["a"].options.methods.genMessages.call(this),e=this.genCounter();return this.$createElement("div",{staticClass:"v-text-field__details"},[t,e])},genTextFieldSlot:function(){return this.$createElement("div",{staticClass:"v-text-field__slot"},[this.genLabel(),this.prefix?this.genAffix("prefix"):null,this.genInput(),this.suffix?this.genAffix("suffix"):null])},genAffix:function(t){return this.$createElement("div",{class:"v-text-field__".concat(t),ref:t},this[t])},onBlur:function(t){var e=this;this.isFocused=!1,t&&this.$nextTick((function(){return e.$emit("blur",t)}))},onClick:function(){this.isFocused||this.isDisabled||!this.$refs.input||this.$refs.input.focus()},onFocus:function(t){if(this.$refs.input){var e=x(this.$el);if(e)return e.activeElement!==this.$refs.input?this.$refs.input.focus():void(this.isFocused||(this.isFocused=!0,t&&this.$emit("focus",t)))}},onInput:function(t){var e=t.target;this.internalValue=e.value,this.badInput=e.validity&&e.validity.badInput},onKeyDown:function(t){t.keyCode===$["x"].enter&&this.$emit("change",this.internalValue),this.$emit("keydown",t)},onMouseDown:function(t){t.target!==this.$refs.input&&(t.preventDefault(),t.stopPropagation()),o["a"].options.methods.onMouseDown.call(this,t)},onMouseUp:function(t){this.hasMouseDown&&this.focus(),o["a"].options.methods.onMouseUp.call(this,t)},setLabelWidth:function(){this.outlined&&(this.labelWidth=this.$refs.label?Math.min(.75*this.$refs.label.scrollWidth+6,this.$el.offsetWidth-24):0)},setPrefixWidth:function(){this.$refs.prefix&&(this.prefixWidth=this.$refs.prefix.offsetWidth)},setPrependWidth:function(){this.outlined&&this.$refs["prepend-inner"]&&(this.prependWidth=this.$refs["prepend-inner"].offsetWidth)},tryAutofocus:function(){if(!this.autofocus||"undefined"===typeof document||!this.$refs.input)return!1;var t=x(this.$el);return!(!t||t.activeElement===this.$refs.input)&&(this.$refs.input.focus(),!0)},updateValue:function(t){this.hasColor=t,t?this.initialValue=this.lazyValue:this.initialValue!==this.lazyValue&&this.$emit("change",this.lazyValue)},onResize:function(){this.setLabelWidth(),this.setPrefixWidth(),this.setPrependWidth()}}})},e449:function(t,e,i){"use strict";var n=i("ade3"),s=i("2909"),o=i("5530"),a=(i("a9e3"),i("7db0"),i("a630"),i("3ca3"),i("99af"),i("498a"),i("caad"),i("2532"),i("ee6f"),i("480e")),l=i("4ad4"),r=i("16b7"),h=i("b848"),u=i("75eb"),c=i("f573"),d=i("e4d3"),f=i("a236"),p=i("f2e7"),v=i("7560"),m=i("a293"),g=i("dc22"),b=i("58df"),x=i("d9bd"),$=i("80d2"),y=Object(b["a"])(h["a"],r["a"],u["a"],c["a"],d["a"],f["a"],p["a"],v["a"]);e["a"]=y.extend({name:"v-menu",directives:{ClickOutside:m["a"],Resize:g["a"]},provide:function(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnClick:{type:Boolean,default:!0},openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data:function(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile:function(){return this.tiles[this.listIndex]},calculatedLeft:function(){var t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?Object($["g"])(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight:function(){var t=this.auto?"200px":Object($["g"])(this.maxHeight);return t||"0"},calculatedMaxWidth:function(){return Object($["g"])(this.maxWidth)||"0"},calculatedMinWidth:function(){if(this.minWidth)return Object($["g"])(this.minWidth)||"0";var t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return Object($["g"])(Math.min(e,t))||"0"},calculatedTop:function(){var t=this.auto?Object($["g"])(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles:function(){return Boolean(this.tiles.find((function(t){return t.tabIndex>-1})))},styles:function(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive:function(t){t||(this.listIndex=-1)},isContentActive:function(t){this.hasJustFocused=t},listIndex:function(t,e){if(t in this.tiles){var i=this.tiles[t];i.classList.add("v-list-item--highlighted"),this.$refs.content.scrollTop=i.offsetTop-i.clientHeight}e in this.tiles&&this.tiles[e].classList.remove("v-list-item--highlighted")}},created:function(){this.$attrs.hasOwnProperty("full-width")&&Object(x["e"])("full-width",this)},mounted:function(){this.isActive&&this.callActivate()},methods:{activate:function(){var t=this;this.updateDimensions(),requestAnimationFrame((function(){t.startTransition().then((function(){t.$refs.content&&(t.calculatedTopAuto=t.calcTopAuto(),t.auto&&(t.$refs.content.scrollTop=t.calcScrollPosition()))}))}))},calcScrollPosition:function(){var t=this.$refs.content,e=t.querySelector(".v-list-item--active"),i=t.scrollHeight-t.offsetHeight;return e?Math.min(i,Math.max(0,e.offsetTop-t.offsetHeight/2+e.offsetHeight/2)):t.scrollTop},calcLeftAuto:function(){return parseInt(this.dimensions.activator.left-2*this.defaultOffset)},calcTopAuto:function(){var t=this.$refs.content,e=t.querySelector(".v-list-item--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);var i=e.offsetTop-this.calcScrollPosition(),n=t.querySelector(".v-list-item").offsetTop;return this.computedTop-i-n-1},changeListIndex:function(t){if(this.getTiles(),this.isActive&&this.hasClickableTiles)if(t.keyCode!==$["x"].tab){if(t.keyCode===$["x"].down)this.nextTile();else if(t.keyCode===$["x"].up)this.prevTile();else if(t.keyCode===$["x"].end)this.lastTile();else if(t.keyCode===$["x"].home)this.firstTile();else{if(t.keyCode!==$["x"].enter||-1===this.listIndex)return;this.tiles[this.listIndex].click()}t.preventDefault()}else this.isActive=!1},closeConditional:function(t){var e=t.target;return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(e)},genActivatorAttributes:function(){var t=l["a"].options.methods.genActivatorAttributes.call(this);return this.activeTile&&this.activeTile.id?Object(o["a"])(Object(o["a"])({},t),{},{"aria-activedescendant":this.activeTile.id}):t},genActivatorListeners:function(){var t=c["a"].options.methods.genActivatorListeners.call(this);return this.disableKeys||(t.keydown=this.onKeyDown),t},genTransition:function(){var t=this.genContent();return this.transition?this.$createElement("transition",{props:{name:this.transition}},[t]):t},genDirectives:function(){var t=this,e=[{name:"show",value:this.isContentActive}];return!this.openOnHover&&this.closeOnClick&&e.push({name:"click-outside",value:{handler:function(){t.isActive=!1},closeConditional:this.closeConditional,include:function(){return[t.$el].concat(Object(s["a"])(t.getOpenDependentElements()))}}}),e},genContent:function(){var t=this,e={attrs:Object(o["a"])(Object(o["a"])({},this.getScopeIdAttrs()),{},{role:"role"in this.$attrs?this.$attrs.role:"menu"}),staticClass:"v-menu__content",class:Object(o["a"])(Object(o["a"])(Object(o["a"])({},this.rootThemeClasses),this.roundedClasses),{},Object(n["a"])({"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive},this.contentClass.trim(),!0)),style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:function(e){var i=e.target;i.getAttribute("disabled")||t.closeOnContentClick&&(t.isActive=!1)},keydown:this.onKeyDown}};return this.$listeners.scroll&&(e.on=e.on||{},e.on.scroll=this.$listeners.scroll),!this.disabled&&this.openOnHover&&(e.on=e.on||{},e.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(e.on=e.on||{},e.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",e,this.getContentSlot())},getTiles:function(){this.$refs.content&&(this.tiles=Array.from(this.$refs.content.querySelectorAll(".v-list-item")))},mouseEnterHandler:function(){var t=this;this.runDelay("open",(function(){t.hasJustFocused||(t.hasJustFocused=!0)}))},mouseLeaveHandler:function(t){var e=this;this.runDelay("close",(function(){e.$refs.content.contains(t.relatedTarget)||requestAnimationFrame((function(){e.isActive=!1,e.callDeactivate()}))}))},nextTile:function(){var t=this.tiles[this.listIndex+1];if(!t){if(!this.tiles.length)return;return this.listIndex=-1,void this.nextTile()}this.listIndex++,-1===t.tabIndex&&this.nextTile()},prevTile:function(){var t=this.tiles[this.listIndex-1];if(!t){if(!this.tiles.length)return;return this.listIndex=this.tiles.length,void this.prevTile()}this.listIndex--,-1===t.tabIndex&&this.prevTile()},lastTile:function(){var t=this.tiles[this.tiles.length-1];t&&(this.listIndex=this.tiles.length-1,-1===t.tabIndex&&this.prevTile())},firstTile:function(){var t=this.tiles[0];t&&(this.listIndex=0,-1===t.tabIndex&&this.nextTile())},onKeyDown:function(t){var e=this;if(t.keyCode===$["x"].esc){setTimeout((function(){e.isActive=!1}));var i=this.getActivator();this.$nextTick((function(){return i&&i.focus()}))}else!this.isActive&&[$["x"].up,$["x"].down].includes(t.keyCode)&&(this.isActive=!0);this.$nextTick((function(){return e.changeListIndex(t)}))},onResize:function(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.updateDimensions,100))}},render:function(t){var e=this,i={staticClass:"v-menu",class:{"v-menu--attached":""===this.attach||!0===this.attach||"attach"===this.attach},directives:[{arg:"500",name:"resize",value:this.onResize}]};return t("div",i,[!this.activator&&this.genActivator(),this.showLazyContent((function(){return[e.$createElement(a["a"],{props:{root:!0,light:e.light,dark:e.dark}},[e.genTransition()])]}))])}})},e4d3:function(t,e,i){"use strict";var n=i("2b0e");e["a"]=n["a"].extend({name:"returnable",props:{returnValue:null},data:function(){return{isActive:!1,originalValue:null}},watch:{isActive:function(t){t?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save:function(t){var e=this;this.originalValue=t,setTimeout((function(){e.isActive=!1}))}}})},e9b1:function(t,e,i){},ee6f:function(t,e,i){}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-62d9ca09"],{"129f":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"2b19":function(t,e,i){var n=i("23e7"),s=i("129f");n({target:"Object",stat:!0},{is:s})},"480e":function(t,e,i){"use strict";i("7db0");var n=i("7560");e["a"]=n["a"].extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark:function(){return this.root?this.rootIsDark:n["a"].options.computed.isDark.call(this)}},render:function(){return this.$slots.default&&this.$slots.default.find((function(t){return!t.isComment&&" "!==t.text}))}})},"4ff9":function(t,e,i){},8654:function(t,e,i){"use strict";var n=i("2909"),s=i("5530"),o=(i("a9e3"),i("0481"),i("d3b7"),i("25f0"),i("caad"),i("2b19"),i("4ff9"),i("c37a")),a=(i("99af"),i("e9b1"),i("7560")),l=i("58df"),r=Object(l["a"])(a["a"]).extend({name:"v-counter",functional:!0,props:{value:{type:[Number,String],default:""},max:[Number,String]},render:function(t,e){var i=e.props,n=parseInt(i.max,10),o=parseInt(i.value,10),l=n?"".concat(o," / ").concat(n):String(i.value),r=n&&o>n;return t("div",{staticClass:"v-counter",class:Object(s["a"])({"error--text":r},Object(a["b"])(e))},l)}}),h=r,u=i("ba87"),c=i("90a2"),d=i("d9bd"),f=i("2b0e");function p(t){return"undefined"!==typeof window&&"IntersectionObserver"in window?f["a"].extend({name:"intersectable",mounted:function(){c["a"].inserted(this.$el,{name:"intersect",value:this.onObserve})},destroyed:function(){c["a"].unbind(this.$el)},methods:{onObserve:function(e,i,n){if(n)for(var s=0,o=t.onVisible.length;s0||this.badInput},isEnclosed:function(){return this.filled||this.isSolo||this.outlined},isLabelActive:function(){return this.isDirty||I.includes(this.type)},isSingle:function(){return this.isSolo||this.singleLine||this.fullWidth||this.filled&&!this.hasLabel},isSolo:function(){return this.solo||this.soloInverted},labelPosition:function(){var t=this.prefix&&!this.labelValue?this.prefixWidth:0;return this.labelValue&&this.prependWidth&&(t-=this.prependWidth),this.$vuetify.rtl===this.reverse?{left:t,right:"auto"}:{left:"auto",right:t}},showLabel:function(){return this.hasLabel&&!(this.isSingle&&this.labelValue)},labelValue:function(){return this.isFocused||this.isLabelActive}},watch:{outlined:"setLabelWidth",label:function(){this.$nextTick(this.setLabelWidth)},prefix:function(){this.$nextTick(this.setPrefixWidth)},isFocused:"updateValue",value:function(t){this.lazyValue=t}},created:function(){this.$attrs.hasOwnProperty("box")&&Object(d["a"])("box","filled",this),this.$attrs.hasOwnProperty("browser-autocomplete")&&Object(d["a"])("browser-autocomplete","autocomplete",this),this.shaped&&!(this.filled||this.outlined||this.isSolo)&&Object(d["c"])("shaped should be used with either filled or outlined",this)},mounted:function(){var t=this;this.$watch((function(){return t.labelValue}),this.setLabelWidth),this.autofocus&&this.tryAutofocus(),requestAnimationFrame((function(){return t.isBooted=!0}))},methods:{focus:function(){this.onFocus()},blur:function(t){var e=this;window.requestAnimationFrame((function(){e.$refs.input&&e.$refs.input.blur()}))},clearableCallback:function(){var t=this;this.$refs.input&&this.$refs.input.focus(),this.$nextTick((function(){return t.internalValue=null}))},genAppendSlot:function(){var t=[];return this.$slots["append-outer"]?t.push(this.$slots["append-outer"]):this.appendOuterIcon&&t.push(this.genIcon("appendOuter")),this.genSlot("append","outer",t)},genPrependInnerSlot:function(){var t=[];return this.$slots["prepend-inner"]?t.push(this.$slots["prepend-inner"]):this.prependInnerIcon&&t.push(this.genIcon("prependInner")),this.genSlot("prepend","inner",t)},genIconSlot:function(){var t=[];return this.$slots.append?t.push(this.$slots.append):this.appendIcon&&t.push(this.genIcon("append")),this.genSlot("append","inner",t)},genInputSlot:function(){var t=o["a"].options.methods.genInputSlot.call(this),e=this.genPrependInnerSlot();return e&&(t.children=t.children||[],t.children.unshift(e)),t},genClearIcon:function(){if(!this.clearable)return null;var t=this.isDirty?void 0:{attrs:{disabled:!0}};return this.genSlot("append","inner",[this.genIcon("clear",this.clearableCallback,t)])},genCounter:function(){var t;if(!this.hasCounter)return null;var e=!0===this.counter?this.attrs$.maxlength:this.counter,i={dark:this.dark,light:this.light,max:e,value:this.computedCounterValue};return null!=(t=null==this.$scopedSlots.counter?void 0:this.$scopedSlots.counter({props:i}))?t:this.$createElement(h,{props:i})},genControl:function(){return o["a"].options.methods.genControl.call(this)},genDefaultSlot:function(){return[this.genFieldset(),this.genTextFieldSlot(),this.genClearIcon(),this.genIconSlot(),this.genProgress()]},genFieldset:function(){return this.outlined?this.$createElement("fieldset",{attrs:{"aria-hidden":!0}},[this.genLegend()]):null},genLabel:function(){if(!this.showLabel)return null;var t={props:{absolute:!0,color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:!this.isSingle&&(this.isFocused||!!this.validationState),for:this.computedId,left:this.labelPosition.left,light:this.light,right:this.labelPosition.right,value:this.labelValue}};return this.$createElement(u["a"],t,this.$slots.label||this.label)},genLegend:function(){var t=this.singleLine||!this.labelValue&&!this.isDirty?0:this.labelWidth,e=this.$createElement("span",{domProps:{innerHTML:"​"}});return this.$createElement("legend",{style:{width:this.isSingle?void 0:Object($["g"])(t)}},[e])},genInput:function(){var t=Object.assign({},this.listeners$);return delete t.change,this.$createElement("input",{style:{},domProps:{value:"number"===this.type&&Object.is(this.lazyValue,-0)?"-0":this.lazyValue},attrs:Object(s["a"])(Object(s["a"])({},this.attrs$),{},{autofocus:this.autofocus,disabled:this.isDisabled,id:this.computedId,placeholder:this.isFocused||!this.hasLabel?this.placeholder:void 0,readonly:this.isReadonly,type:this.type}),on:Object.assign(t,{blur:this.onBlur,input:this.onInput,focus:this.onFocus,keydown:this.onKeyDown}),ref:"input",directives:[{name:"resize",modifiers:{quiet:!0},value:this.onResize}]})},genMessages:function(){if(!this.showDetails)return null;var t=o["a"].options.methods.genMessages.call(this),e=this.genCounter();return this.$createElement("div",{staticClass:"v-text-field__details"},[t,e])},genTextFieldSlot:function(){return this.$createElement("div",{staticClass:"v-text-field__slot"},[this.genLabel(),this.prefix?this.genAffix("prefix"):null,this.genInput(),this.suffix?this.genAffix("suffix"):null])},genAffix:function(t){return this.$createElement("div",{class:"v-text-field__".concat(t),ref:t},this[t])},onBlur:function(t){var e=this;this.isFocused=!1,t&&this.$nextTick((function(){return e.$emit("blur",t)}))},onClick:function(){this.isFocused||this.isDisabled||!this.$refs.input||this.$refs.input.focus()},onFocus:function(t){if(this.$refs.input){var e=x(this.$el);if(e)return e.activeElement!==this.$refs.input?this.$refs.input.focus():void(this.isFocused||(this.isFocused=!0,t&&this.$emit("focus",t)))}},onInput:function(t){var e=t.target;this.internalValue=e.value,this.badInput=e.validity&&e.validity.badInput},onKeyDown:function(t){t.keyCode===$["x"].enter&&this.$emit("change",this.internalValue),this.$emit("keydown",t)},onMouseDown:function(t){t.target!==this.$refs.input&&(t.preventDefault(),t.stopPropagation()),o["a"].options.methods.onMouseDown.call(this,t)},onMouseUp:function(t){this.hasMouseDown&&this.focus(),o["a"].options.methods.onMouseUp.call(this,t)},setLabelWidth:function(){this.outlined&&(this.labelWidth=this.$refs.label?Math.min(.75*this.$refs.label.scrollWidth+6,this.$el.offsetWidth-24):0)},setPrefixWidth:function(){this.$refs.prefix&&(this.prefixWidth=this.$refs.prefix.offsetWidth)},setPrependWidth:function(){this.outlined&&this.$refs["prepend-inner"]&&(this.prependWidth=this.$refs["prepend-inner"].offsetWidth)},tryAutofocus:function(){if(!this.autofocus||"undefined"===typeof document||!this.$refs.input)return!1;var t=x(this.$el);return!(!t||t.activeElement===this.$refs.input)&&(this.$refs.input.focus(),!0)},updateValue:function(t){this.hasColor=t,t?this.initialValue=this.lazyValue:this.initialValue!==this.lazyValue&&this.$emit("change",this.lazyValue)},onResize:function(){this.setLabelWidth(),this.setPrefixWidth(),this.setPrependWidth()}}})},e449:function(t,e,i){"use strict";var n=i("ade3"),s=i("2909"),o=i("5530"),a=(i("a9e3"),i("7db0"),i("a630"),i("3ca3"),i("99af"),i("498a"),i("caad"),i("2532"),i("ee6f"),i("480e")),l=i("4ad4"),r=i("16b7"),h=i("b848"),u=i("75eb"),c=i("f573"),d=i("e4d3"),f=i("a236"),p=i("f2e7"),v=i("7560"),m=i("a293"),g=i("dc22"),b=i("58df"),x=i("d9bd"),$=i("80d2"),y=Object(b["a"])(h["a"],r["a"],u["a"],c["a"],d["a"],f["a"],p["a"],v["a"]);e["a"]=y.extend({name:"v-menu",directives:{ClickOutside:m["a"],Resize:g["a"]},provide:function(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnClick:{type:Boolean,default:!0},openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data:function(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile:function(){return this.tiles[this.listIndex]},calculatedLeft:function(){var t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?Object($["g"])(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight:function(){var t=this.auto?"200px":Object($["g"])(this.maxHeight);return t||"0"},calculatedMaxWidth:function(){return Object($["g"])(this.maxWidth)||"0"},calculatedMinWidth:function(){if(this.minWidth)return Object($["g"])(this.minWidth)||"0";var t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return Object($["g"])(Math.min(e,t))||"0"},calculatedTop:function(){var t=this.auto?Object($["g"])(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles:function(){return Boolean(this.tiles.find((function(t){return t.tabIndex>-1})))},styles:function(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive:function(t){t||(this.listIndex=-1)},isContentActive:function(t){this.hasJustFocused=t},listIndex:function(t,e){if(t in this.tiles){var i=this.tiles[t];i.classList.add("v-list-item--highlighted"),this.$refs.content.scrollTop=i.offsetTop-i.clientHeight}e in this.tiles&&this.tiles[e].classList.remove("v-list-item--highlighted")}},created:function(){this.$attrs.hasOwnProperty("full-width")&&Object(x["e"])("full-width",this)},mounted:function(){this.isActive&&this.callActivate()},methods:{activate:function(){var t=this;this.updateDimensions(),requestAnimationFrame((function(){t.startTransition().then((function(){t.$refs.content&&(t.calculatedTopAuto=t.calcTopAuto(),t.auto&&(t.$refs.content.scrollTop=t.calcScrollPosition()))}))}))},calcScrollPosition:function(){var t=this.$refs.content,e=t.querySelector(".v-list-item--active"),i=t.scrollHeight-t.offsetHeight;return e?Math.min(i,Math.max(0,e.offsetTop-t.offsetHeight/2+e.offsetHeight/2)):t.scrollTop},calcLeftAuto:function(){return parseInt(this.dimensions.activator.left-2*this.defaultOffset)},calcTopAuto:function(){var t=this.$refs.content,e=t.querySelector(".v-list-item--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);var i=e.offsetTop-this.calcScrollPosition(),n=t.querySelector(".v-list-item").offsetTop;return this.computedTop-i-n-1},changeListIndex:function(t){if(this.getTiles(),this.isActive&&this.hasClickableTiles)if(t.keyCode!==$["x"].tab){if(t.keyCode===$["x"].down)this.nextTile();else if(t.keyCode===$["x"].up)this.prevTile();else if(t.keyCode===$["x"].end)this.lastTile();else if(t.keyCode===$["x"].home)this.firstTile();else{if(t.keyCode!==$["x"].enter||-1===this.listIndex)return;this.tiles[this.listIndex].click()}t.preventDefault()}else this.isActive=!1},closeConditional:function(t){var e=t.target;return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(e)},genActivatorAttributes:function(){var t=l["a"].options.methods.genActivatorAttributes.call(this);return this.activeTile&&this.activeTile.id?Object(o["a"])(Object(o["a"])({},t),{},{"aria-activedescendant":this.activeTile.id}):t},genActivatorListeners:function(){var t=c["a"].options.methods.genActivatorListeners.call(this);return this.disableKeys||(t.keydown=this.onKeyDown),t},genTransition:function(){var t=this.genContent();return this.transition?this.$createElement("transition",{props:{name:this.transition}},[t]):t},genDirectives:function(){var t=this,e=[{name:"show",value:this.isContentActive}];return!this.openOnHover&&this.closeOnClick&&e.push({name:"click-outside",value:{handler:function(){t.isActive=!1},closeConditional:this.closeConditional,include:function(){return[t.$el].concat(Object(s["a"])(t.getOpenDependentElements()))}}}),e},genContent:function(){var t=this,e={attrs:Object(o["a"])(Object(o["a"])({},this.getScopeIdAttrs()),{},{role:"role"in this.$attrs?this.$attrs.role:"menu"}),staticClass:"v-menu__content",class:Object(o["a"])(Object(o["a"])(Object(o["a"])({},this.rootThemeClasses),this.roundedClasses),{},Object(n["a"])({"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive},this.contentClass.trim(),!0)),style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:function(e){var i=e.target;i.getAttribute("disabled")||t.closeOnContentClick&&(t.isActive=!1)},keydown:this.onKeyDown}};return this.$listeners.scroll&&(e.on=e.on||{},e.on.scroll=this.$listeners.scroll),!this.disabled&&this.openOnHover&&(e.on=e.on||{},e.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(e.on=e.on||{},e.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",e,this.getContentSlot())},getTiles:function(){this.$refs.content&&(this.tiles=Array.from(this.$refs.content.querySelectorAll(".v-list-item")))},mouseEnterHandler:function(){var t=this;this.runDelay("open",(function(){t.hasJustFocused||(t.hasJustFocused=!0)}))},mouseLeaveHandler:function(t){var e=this;this.runDelay("close",(function(){e.$refs.content.contains(t.relatedTarget)||requestAnimationFrame((function(){e.isActive=!1,e.callDeactivate()}))}))},nextTile:function(){var t=this.tiles[this.listIndex+1];if(!t){if(!this.tiles.length)return;return this.listIndex=-1,void this.nextTile()}this.listIndex++,-1===t.tabIndex&&this.nextTile()},prevTile:function(){var t=this.tiles[this.listIndex-1];if(!t){if(!this.tiles.length)return;return this.listIndex=this.tiles.length,void this.prevTile()}this.listIndex--,-1===t.tabIndex&&this.prevTile()},lastTile:function(){var t=this.tiles[this.tiles.length-1];t&&(this.listIndex=this.tiles.length-1,-1===t.tabIndex&&this.prevTile())},firstTile:function(){var t=this.tiles[0];t&&(this.listIndex=0,-1===t.tabIndex&&this.nextTile())},onKeyDown:function(t){var e=this;if(t.keyCode===$["x"].esc){setTimeout((function(){e.isActive=!1}));var i=this.getActivator();this.$nextTick((function(){return i&&i.focus()}))}else!this.isActive&&[$["x"].up,$["x"].down].includes(t.keyCode)&&(this.isActive=!0);this.$nextTick((function(){return e.changeListIndex(t)}))},onResize:function(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.updateDimensions,100))}},render:function(t){var e=this,i={staticClass:"v-menu",class:{"v-menu--attached":""===this.attach||!0===this.attach||"attach"===this.attach},directives:[{arg:"500",name:"resize",value:this.onResize}]};return t("div",i,[!this.activator&&this.genActivator(),this.showLazyContent((function(){return[e.$createElement(a["a"],{props:{root:!0,light:e.light,dark:e.dark}},[e.genTransition()])]}))])}})},e4d3:function(t,e,i){"use strict";var n=i("2b0e");e["a"]=n["a"].extend({name:"returnable",props:{returnValue:null},data:function(){return{isActive:!1,originalValue:null}},watch:{isActive:function(t){t?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save:function(t){var e=this;this.originalValue=t,setTimeout((function(){e.isActive=!1}))}}})},e9b1:function(t,e,i){},ee6f:function(t,e,i){}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-788ccab5.aadfad23.js b/www/fhemapp/js/chunk-788ccab5.aadfad23.js deleted file mode 100644 index e1c667cc..00000000 --- a/www/fhemapp/js/chunk-788ccab5.aadfad23.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-788ccab5"],{"121f":function(t,i,e){"use strict";e.r(i);var s=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-col",{staticClass:"col-12 col-sm-6 col-md-4 col-lg-4"},[e("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[e("v-progress-linear",{attrs:{height:"7",value:t.getLevel,color:t.vals.status.color,"background-color":"secondary darken-1"}}),e("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" "),e("v-spacer"),t.multiLevel&&t.isActive?e("v-btn",{attrs:{small:"",icon:""},on:{click:function(i){return t.setLevel()}}},[e("v-icon",{attrs:{small:""}},[t._v(t._s(t.multiLevelIcon))])],1):t._e()],1),e("v-divider"),t.vals.main.slider&&t.isActive?t._e():e("v-card-text",[e("v-row",{attrs:{align:"center"}},[t.vals.main.leftBtn&&t.isActive?e("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e("v-btn",{attrs:{small:"",icon:"",disabled:t.vals.main.leftBtnDisabled},on:{mousedown:function(i){return t.clickStart("left")},mouseup:function(i){return t.clickEnd("left")},touchstart:function(i){return t.clickStart("left")},touchend:function(i){return t.clickEnd("left")}}},[e("v-icon",{attrs:{large:""}},[t._v(t._s(t.vals.main.leftBtn))])],1)],1):t._e(),t.vals.main.leftBtn&&t.isActive?e("v-divider",{attrs:{vertical:""}}):t._e(),e("v-col",{attrs:{align:"center"}},[e("div",{staticClass:"headline font-weight-bold"},[t._v(t._s(t.vals.main.text))])]),t.vals.main.text2&&t.isActive?e("v-col",{attrs:{align:"center"}},[e("div",{staticClass:"headline font-weight-bold"},[t._v(t._s(t.vals.main.text2))])]):t._e(),t.vals.main.rightBtn&&t.isActive?e("v-divider",{attrs:{vertical:""}}):t._e(),t.vals.main.rightBtn&&t.isActive?e("v-col",{staticClass:"col-3",attrs:{align:"center"}},[e("v-btn",{attrs:{small:"",icon:"",disabled:t.vals.main.rightBtnDisabled},on:{mousedown:function(i){return t.clickStart("right")},mouseup:function(i){return t.clickEnd("right")},touchstart:function(i){return t.clickStart("right")},touchend:function(i){return t.clickEnd("right")}}},[e("v-icon",{attrs:{large:""}},[t._v(t._s(t.vals.main.rightBtn))])],1)],1):t._e()],1)],1),t.vals.main.slider&&t.isActive?e("v-card-text",[e("v-slider",{attrs:{min:t.vals.main.sliderMin,max:t.vals.main.sliderMax,"hide-details":"",color:"accent"},on:{change:t.setSlider},scopedSlots:t._u([t.vals.main.leftBtn?{key:"prepend",fn:function(){return[e("v-icon",{on:{click:function(i){return t.clickEnd("left")}}},[t._v(t._s(t.vals.main.leftBtn))])]},proxy:!0}:null,t.vals.main.rightBtn?{key:"append",fn:function(){return[e("v-icon",{on:{click:function(i){return t.clickEnd("right")}}},[t._v(t._s(t.vals.main.rightBtn))])]},proxy:!0}:null],null,!0),model:{value:t.vals.main.sliderCurrent,callback:function(i){t.$set(t.vals.main,"sliderCurrent",i)},expression:"vals.main.sliderCurrent"}})],1):t._e(),e("v-divider"),e("v-system-bar",{attrs:{color:"secondary darken-1"}},[e("v-icon",{staticClass:"ml-0"},[t._v(t._s(t.vals.info.left1Icon))]),t._v(t._s(t.vals.info.left1Text)+" "),e("v-icon",[t._v(t._s(t.vals.info.left2Icon))]),t._v(t._s(t.vals.info.left2Text)+" "),e("v-spacer"),e("v-icon",[t._v(t._s(t.vals.info.mid1Icon))]),t._v(t._s(t.vals.info.mid1Text)+" "),e("v-icon",{staticClass:"ml-2"},[t._v(t._s(t.vals.info.mid2Icon))]),t._v(t._s(t.vals.info.mid2Text)+" "),e("v-spacer"),e("v-icon",[t._v(t._s(t.vals.info.right1Icon))]),t._v(t._s(t.vals.info.right1Text)+" "),e("v-icon",{staticClass:"mr-0"},[t._v(t._s(t.vals.info.right2Icon))]),t._v(t._s(t.vals.info.right2Text)+" ")],1)],1)],1)},a=[],n=(e("1276"),e("ac1f"),e("466d"),e("c740"),e("5319"),{data:function(){return{name:"default",setup:{status:{bar:[],error:[]},main:[{btnLeft:"",text:"Template unbekannt",btnRight:""}],info:{left1:[],left2:[],mid1:[],mid2:[],right1:[],right2:[]}},vals:{title:"",status:{level:0,color:"",invert:!1},main:{leftBtn:"",leftBtnDisabled:!1,text:"",text2:"",slider:!1,sliderCurrent:0,sliderMin:0,sliderMax:100,rightBtn:"",rightBtnDisabled:!1},info:{left1Icon:"",left1Text:"",left2Icon:"",left2Text:"",mid1Icon:"",mid1Text:"",mid2Icon:"",mid2Text:"",right1Icon:"",right1Text:"",right2Icon:"",right2Text:""}},multiLevel:!1,multiLevelIcon:"mdi-swap-vertical",mainLevel:0,isActive:!0,timer:!1,long:!1,pendingClick:0}},watch:{item:{immediate:!0,deep:!0,handler:function(t){var i=this.$fhem.getEl(t,"Attributes","alias")||t.Name;this.vals.title=this.$fhem.getEl(t,"Options","name")||i,this.setValues()}},setup:{deep:!0,handler:function(){this.setValues()}}},computed:{getLevel:function(){return this.vals.status.invert?100-this.vals.status.level:this.vals.status.level}},methods:{sendCmd:function(t,i){var e=this;i?(this.pendingClick&&(clearTimeout(this.pendingClick),this.pendingClick=0),this.pendingClick=setTimeout((function(){e.$fhem.request(t)}),1e3)):this.$fhem.request(t)},updateReading:function(t){var i=t.split(" ");4===i.length&&this.$fhem.getEl(this.item,"Readings",i[2],"Value")&&(this.item.Readings[i[2]].Value=i[3])},clickStart:function(t){var i=this;this.long=!1,this.timer=setInterval((function(){i.long=!0;var e=i.setup.main[i.mainLevel][t+"Long"];if(e){var s=i.$fhem.handleVals(i.item,e);if(s[0]){var a=s[0].match("set")?s[0]:"set "+i.item.Name+" "+s[0];i.sendCmd(a),i.timer=clearInterval(i.timer)}}}),1e3)},clickEnd:function(t){this.timer=clearInterval(this.timer);var i=this.setup.main[this.mainLevel][t+(this.long?"LongRelease":"Click")];if(i){var e=this.$fhem.handleVals(this.item,i);if(e[0]){var s=e[0].match("set")?e[0]:"set "+this.item.Name+" "+e[0],a=-1!=i.findIndex((function(t){return t.match("%i")}));!this.long&&a&&this.updateReading(s),this.sendCmd(s,a)}}},setSlider:function(t){var i=this.setup.main[this.mainLevel].slider;if(i){var e=this.$fhem.handleVals(this.item,i);if(e[0]){var s=e[0].match("set")?e[0]:"set "+this.item.Name+" "+e[0];s=s.replace("%v",t),this.sendCmd(s)}}},setLevel:function(t){isNaN(t)?(this.mainLevel++,this.mainLevel>this.setup.main.length-1&&(this.mainLevel=0)):(this.multiLevel=this.setup.main.length>1,this.mainLevel=t),this.vals.main.leftBtn=this.setup.main[this.mainLevel].leftBtn,this.vals.main.rightBtn=this.setup.main[this.mainLevel].rightBtn;var i=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text),e=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text2),s=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].leftBtn),a=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].rightBtn),n=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].slider);this.vals.main.text=i[0]||"",this.vals.main.text2=e[0]||"",this.vals.main.leftBtn=s[0]||"",this.vals.main.rightBtn=a[0]||"",this.vals.main.leftBtnDisabled=!!s[1],this.vals.main.rightBtnDisabled=!!a[1],this.vals.main.slider=!!n[0],this.vals.main.sliderCurrent=n[1]||0,this.vals.main.sliderMin=n[2]||0,this.vals.main.sliderMax=n[3]||100},setValues:function(){if(this.setup.main.length>0){var t=this.$fhem.handleVals(this.item,this.setup.status.bar),i=this.$fhem.handleVals(this.item,this.setup.status.error),e=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text),s=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text2),a=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].slider),n=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].leftBtn),l=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].rightBtn),r=this.$fhem.handleVals(this.item,this.setup.info.left1),h=this.$fhem.handleVals(this.item,this.setup.info.left2),o=this.$fhem.handleVals(this.item,this.setup.info.mid1),c=this.$fhem.handleVals(this.item,this.setup.info.mid2),u=this.$fhem.handleVals(this.item,this.setup.info.right1),m=this.$fhem.handleVals(this.item,this.setup.info.right2);this.vals.status.level=t[0]||"0",this.vals.status.color=t[1]||"success",this.vals.status.invert=!!t[2],this.vals.info.left1Icon=r[1]||"",this.vals.info.left1Text=r[0]||"",this.vals.info.left2Icon=h[1]||"",this.vals.info.left2Text=h[0]||"",this.vals.info.mid1Icon=o[1]||"",this.vals.info.mid1Text=o[0]||"",this.vals.info.mid2Icon=c[1]||"",this.vals.info.mid2Text=c[0]||"",this.vals.info.right1Icon=u[1]||"",this.vals.info.right1Text=u[0]||"",this.vals.info.right2Icon=m[1]||"",this.vals.info.right2Text=m[0]||"",this.vals.main.text=e[0]||"",this.vals.main.text2=s[0]||"",this.vals.main.slider=!!a[0],this.vals.main.sliderCurrent=a[1]||0,this.vals.main.sliderMin=a[2]||0,this.vals.main.sliderMax=a[3]||100,this.vals.main.leftBtn=n[0]||"",this.vals.main.rightBtn=l[0]||"",this.vals.main.leftBtnDisabled=!!n[1],this.vals.main.rightBtnDisabled=!!l[1],i.length>0?(this.vals.status.level=i[0]||"100",this.vals.status.color=i[1]||"error",this.vals.main.text=i[2]||"Fehler",this.isActive=!1):this.isActive=!0}}},props:{item:{}},mounted:function(){var t=this.$fhem.getEl(this.item,"Options","setup","status"),i=this.$fhem.getEl(this.item,"Options","setup","main"),e=this.$fhem.getEl(this.item,"Options","setup","info");t&&Object.assign(this.setup.status,t),i&&Object.assign(this.setup.main,i),e&&Object.assign(this.setup.info,e),this.setLevel(0)}}),l=n,r=e("2877"),h=e("6544"),o=e.n(h),c=e("8336"),u=e("b0af"),m=e("99d9"),d=e("62ad"),v=e("ce7e"),f=e("132d"),p=e("8e36"),b=e("0fd9"),g=e("ba0d"),k=e("2fa4"),x=e("afd9"),C=Object(r["a"])(l,s,a,!1,null,null,null);i["default"]=C.exports;o()(C,{VBtn:c["a"],VCard:u["a"],VCardText:m["c"],VCardTitle:m["d"],VCol:d["a"],VDivider:v["a"],VIcon:f["a"],VProgressLinear:p["a"],VRow:b["a"],VSlider:g["a"],VSpacer:k["a"],VSystemBar:x["a"]})},8308:function(t,i,e){},"9e29":function(t,i,e){},afd9:function(t,i,e){"use strict";var s=e("5530"),a=(e("a9e3"),e("c7cd"),e("8308"),e("3a66")),n=e("a9ad"),l=e("7560"),r=e("58df"),h=e("80d2");i["a"]=Object(r["a"])(Object(a["a"])("bar",["height","window"]),n["a"],l["a"]).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes:function(){return Object(s["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(h["g"])(this.computedHeight)}}},methods:{updateApplication:function(){return this.$el?this.$el.clientHeight:this.computedHeight}},render:function(t){var i={staticClass:"v-system-bar",class:this.classes,style:this.styles,on:this.$listeners};return t("div",this.setBackgroundColor(this.color,i),Object(h["s"])(this))}})},ba0d:function(t,i,e){"use strict";var s=e("ade3"),a=e("5530"),n=(e("a9e3"),e("d81d"),e("99af"),e("caad"),e("2532"),e("498a"),e("d3b7"),e("25f0"),e("b680"),e("9e29"),e("c37a")),l=e("0789"),r=e("58df"),h=e("297c"),o=e("a293"),c=e("80d2"),u=e("d9bd");i["a"]=Object(r["a"])(n["a"],h["a"]).extend({name:"v-slider",directives:{ClickOutside:o["a"]},mixins:[h["a"]],props:{disabled:Boolean,inverseLabel:Boolean,max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:1},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:function(t){return"boolean"===typeof t||"always"===t}},thumbSize:{type:[Number,String],default:32},tickLabels:{type:Array,default:function(){return[]}},ticks:{type:[Boolean,String],default:!1,validator:function(t){return"boolean"===typeof t||"always"===t}},tickSize:{type:[Number,String],default:2},trackColor:String,trackFillColor:String,value:[Number,String],vertical:Boolean},data:function(){return{app:null,oldValue:null,thumbPressed:!1,mouseTimeout:-1,isFocused:!1,isActive:!1,noClick:!1}},computed:{classes:function(){return Object(a["a"])(Object(a["a"])({},n["a"].options.computed.classes.call(this)),{},{"v-input__slider":!0,"v-input__slider--vertical":this.vertical,"v-input__slider--inverse-label":this.inverseLabel})},internalValue:{get:function(){return this.lazyValue},set:function(t){t=isNaN(t)?this.minValue:t;var i=this.roundValue(Math.min(Math.max(t,this.minValue),this.maxValue));i!==this.lazyValue&&(this.lazyValue=i,this.$emit("input",i))}},trackTransition:function(){return this.thumbPressed?this.showTicks||this.stepNumeric?"0.1s cubic-bezier(0.25, 0.8, 0.5, 1)":"none":""},minValue:function(){return parseFloat(this.min)},maxValue:function(){return parseFloat(this.max)},stepNumeric:function(){return this.step>0?parseFloat(this.step):0},inputWidth:function(){return(this.roundValue(this.internalValue)-this.minValue)/(this.maxValue-this.minValue)*100},trackFillStyles:function(){var t,i=this.vertical?"bottom":"left",e=this.vertical?"top":"right",a=this.vertical?"height":"width",n=this.$vuetify.rtl?"auto":"0",l=this.$vuetify.rtl?"0":"auto",r=this.isDisabled?"calc(".concat(this.inputWidth,"% - 10px)"):"".concat(this.inputWidth,"%");return t={transition:this.trackTransition},Object(s["a"])(t,i,n),Object(s["a"])(t,e,l),Object(s["a"])(t,a,r),t},trackStyles:function(){var t,i=this.vertical?this.$vuetify.rtl?"bottom":"top":this.$vuetify.rtl?"left":"right",e=this.vertical?"height":"width",a="0px",n=this.isDisabled?"calc(".concat(100-this.inputWidth,"% - 10px)"):"calc(".concat(100-this.inputWidth,"%)");return t={transition:this.trackTransition},Object(s["a"])(t,i,a),Object(s["a"])(t,e,n),t},showTicks:function(){return this.tickLabels.length>0||!(this.isDisabled||!this.stepNumeric||!this.ticks)},numTicks:function(){return Math.ceil((this.maxValue-this.minValue)/this.stepNumeric)},showThumbLabel:function(){return!this.isDisabled&&!(!this.thumbLabel&&!this.$scopedSlots["thumb-label"])},computedTrackColor:function(){if(!this.isDisabled)return this.trackColor?this.trackColor:this.isDark?this.validationState:this.validationState||"primary lighten-3"},computedTrackFillColor:function(){if(!this.isDisabled)return this.trackFillColor?this.trackFillColor:this.validationState||this.computedColor},computedThumbColor:function(){return this.thumbColor?this.thumbColor:this.validationState||this.computedColor}},watch:{min:function(t){var i=parseFloat(t);i>this.internalValue&&this.$emit("input",i)},max:function(t){var i=parseFloat(t);i0}},l)},genThumbContainer:function(t,i,e,s,n,l){var r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"thumb",h=[this.genThumb()],o=this.genThumbLabelContent(t);return this.showThumbLabel&&h.push(this.genThumbLabel(o)),this.$createElement("div",this.setTextColor(this.computedThumbColor,{ref:r,key:r,staticClass:"v-slider__thumb-container",class:{"v-slider__thumb-container--active":e,"v-slider__thumb-container--focused":s,"v-slider__thumb-container--show-label":this.showThumbLabel},style:this.getThumbContainerStyles(i),attrs:Object(a["a"])({role:"slider",tabindex:this.isDisabled?-1:this.$attrs.tabindex?this.$attrs.tabindex:0,"aria-label":this.label,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this.internalValue,"aria-readonly":String(this.isReadonly),"aria-orientation":this.vertical?"vertical":"horizontal"},this.$attrs),on:{focus:n,blur:l,keydown:this.onKeyDown}}),h)},genThumbLabelContent:function(t){return this.$scopedSlots["thumb-label"]?this.$scopedSlots["thumb-label"]({value:t}):[this.$createElement("span",[String(t)])]},genThumbLabel:function(t){var i=Object(c["g"])(this.thumbSize),e=this.vertical?"translateY(20%) translateY(".concat(Number(this.thumbSize)/3-1,"px) translateX(55%) rotate(135deg)"):"translateY(-20%) translateY(-12px) translateX(-50%) rotate(45deg)";return this.$createElement(l["d"],{props:{origin:"bottom center"}},[this.$createElement("div",{staticClass:"v-slider__thumb-label-container",directives:[{name:"show",value:this.isFocused||this.isActive||"always"===this.thumbLabel}]},[this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb-label",style:{height:i,width:i,transform:e}}),[this.$createElement("div",t)])])])},genThumb:function(){return this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb"}))},getThumbContainerStyles:function(t){var i=this.vertical?"top":"left",e=this.$vuetify.rtl?100-t:t;return e=this.vertical?100-e:e,Object(s["a"])({transition:this.trackTransition},i,"".concat(e,"%"))},onSliderMouseDown:function(t){var i,e=this;t.preventDefault(),this.oldValue=this.internalValue,this.isActive=!0;var s=!c["B"]||{passive:!0,capture:!0},a=!!c["B"]&&{passive:!0};(null==(i=t.target)?void 0:i.matches(".v-slider__thumb-container, .v-slider__thumb-container *"))?this.thumbPressed=!0:(window.clearTimeout(this.mouseTimeout),this.mouseTimeout=window.setTimeout((function(){e.thumbPressed=!0}),300)),"touches"in t?(this.app.addEventListener("touchmove",this.onMouseMove,a),Object(c["a"])(this.app,"touchend",this.onSliderMouseUp,s)):(this.onMouseMove(t),this.app.addEventListener("mousemove",this.onMouseMove,a),Object(c["a"])(this.app,"mouseup",this.onSliderMouseUp,s)),this.$emit("start",this.internalValue)},onSliderMouseUp:function(t){t.stopPropagation(),window.clearTimeout(this.mouseTimeout),this.thumbPressed=!1;var i=!!c["B"]&&{passive:!0};this.app.removeEventListener("touchmove",this.onMouseMove,i),this.app.removeEventListener("mousemove",this.onMouseMove,i),this.$emit("mouseup",t),this.$emit("end",this.internalValue),Object(c["j"])(this.oldValue,this.internalValue)||(this.$emit("change",this.internalValue),this.noClick=!0),this.isActive=!1},onMouseMove:function(t){"mousemove"===t.type&&(this.thumbPressed=!0),this.internalValue=this.parseMouseMove(t)},onKeyDown:function(t){if(this.isInteractive){var i=this.parseKeyDown(t,this.internalValue);null==i||ithis.maxValue||(this.internalValue=i,this.$emit("change",i))}},onSliderClick:function(t){if(this.noClick)this.noClick=!1;else{var i=this.$refs.thumb;i.focus(),this.onMouseMove(t),this.$emit("change",this.internalValue)}},onBlur:function(t){this.isFocused=!1,this.$emit("blur",t)},onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},parseMouseMove:function(t){var i=this.vertical?"top":"left",e=this.vertical?"height":"width",s=this.vertical?"clientY":"clientX",a=this.$refs.track.getBoundingClientRect(),n=a[i],l=a[e],r="touches"in t?t.touches[0][s]:t[s],h=Math.min(Math.max((r-n)/l,0),1)||0;return this.vertical&&(h=1-h),this.$vuetify.rtl&&(h=1-h),parseFloat(this.min)+h*(this.maxValue-this.minValue)},parseKeyDown:function(t,i){if(this.isInteractive){var e=c["x"].pageup,s=c["x"].pagedown,a=c["x"].end,n=c["x"].home,l=c["x"].left,r=c["x"].right,h=c["x"].down,o=c["x"].up;if([e,s,a,n,l,r,h,o].includes(t.keyCode)){t.preventDefault();var u=this.stepNumeric||1,m=(this.maxValue-this.minValue)/u;if([l,r,h,o].includes(t.keyCode)){var d=this.$vuetify.rtl?[l,o]:[r,o],v=d.includes(t.keyCode)?1:-1,f=t.shiftKey?3:t.ctrlKey?2:1;i+=v*u*f}else if(t.keyCode===n)i=this.minValue;else if(t.keyCode===a)i=this.maxValue;else{var p=t.keyCode===s?1:-1;i-=p*u*(m>100?m/10:10)}return i}}},roundValue:function(t){if(!this.stepNumeric)return t;var i=this.step.toString().trim(),e=i.indexOf(".")>-1?i.length-i.indexOf(".")-1:0,s=this.minValue%this.stepNumeric,a=Math.round((t-s)/this.stepNumeric)*this.stepNumeric+s;return parseFloat(Math.min(a,this.maxValue).toFixed(e))}}})}}]); \ No newline at end of file diff --git a/www/fhemapp/js/chunk-83618c9a.48a1bddb.js b/www/fhemapp/js/chunk-83618c9a.48a1bddb.js new file mode 100644 index 00000000..c3004443 --- /dev/null +++ b/www/fhemapp/js/chunk-83618c9a.48a1bddb.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-83618c9a"],{"121f":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-col",{staticClass:"col-12 col-sm-6 col-md-4 col-lg-4"},[i("v-card",{attrs:{dark:this.$vuetify.theme.dark,color:"secondary"}},[i("v-progress-linear",{attrs:{height:"7",value:t.getLevel,color:t.vals.status.color,"background-color":"secondary darken-1"}}),i("v-card-title",{staticClass:"text-truncate"},[t._v(" "+t._s(t.vals.title)+" "),i("v-spacer"),t.multiLevel&&t.isActive?i("v-btn",{attrs:{small:"",icon:""},on:{click:function(e){return t.setLevel()}}},[i("v-icon",{attrs:{small:""}},[t._v(t._s(t.multiLevelIcon))])],1):t._e()],1),i("v-divider"),t.vals.main.slider&&t.isActive?t._e():i("v-card-text",[i("v-row",{attrs:{align:"center"}},[0==t.vals.main.leftMenu.length&&t.vals.main.leftBtn&&t.isActive?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-btn",{attrs:{small:"",icon:"",disabled:t.vals.main.leftBtnDisabled},on:{mousedown:function(e){return t.clickStart("left")},mouseup:function(e){return t.clickEnd("left")},touchstart:function(e){return t.clickStart("left")},touchend:function(e){return t.clickEnd("left")}}},[i("v-icon",{attrs:{large:""}},[t._v(t._s(t.vals.main.leftBtn))])],1)],1):t._e(),t.vals.main.leftMenu.length>0&&t.vals.main.leftBtn&&t.isActive?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,n=e.attrs;return[i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",n,!1),s),[i("v-icon",{attrs:{large:""}},[t._v(t._s(t.vals.main.leftBtn))])],1)]}}],null,!1,4171790653)},[i("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[i("v-list-item-group",t._l(t.vals.main.leftMenu,(function(e,s){return i("v-list-item",{key:s,on:{click:function(i){return t.sendCmd(e.cmd)}}},[i("v-list-item-content",[i("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(t._s(e.name))])],1)],1)})),1)],1)],1)],1):t._e(),t.vals.main.leftBtn&&t.isActive?i("v-divider",{attrs:{vertical:""}}):t._e(),i("v-col",{attrs:{align:"center"}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(t._s(t.vals.main.text))])]),t.vals.main.text2&&t.isActive?i("v-col",{attrs:{align:"center"}},[i("div",{staticClass:"headline font-weight-bold"},[t._v(t._s(t.vals.main.text2))])]):t._e(),t.vals.main.rightBtn&&t.isActive?i("v-divider",{attrs:{vertical:""}}):t._e(),0==t.vals.main.rightMenu.length&&t.vals.main.rightBtn&&t.isActive?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-btn",{attrs:{small:"",icon:"",disabled:t.vals.main.rightBtnDisabled},on:{mousedown:function(e){return t.clickStart("right")},mouseup:function(e){return t.clickEnd("right")},touchstart:function(e){return t.clickStart("right")},touchend:function(e){return t.clickEnd("right")}}},[i("v-icon",{attrs:{large:""}},[t._v(t._s(t.vals.main.rightBtn))])],1)],1):t._e(),t.vals.main.rightMenu.length>0&&t.vals.main.rightBtn&&t.isActive?i("v-col",{staticClass:"col-3",attrs:{align:"center"}},[i("v-menu",{attrs:{bottom:"",left:"",transition:"slide-y-transition"},scopedSlots:t._u([{key:"activator",fn:function(e){var s=e.on,n=e.attrs;return[i("v-btn",t._g(t._b({attrs:{small:"",icon:""}},"v-btn",n,!1),s),[i("v-icon",{attrs:{large:""}},[t._v(t._s(t.vals.main.rightBtn))])],1)]}}],null,!1,2610405542)},[i("v-list",{attrs:{dense:"",color:"secondary lighten-2"}},[i("v-list-item-group",t._l(t.vals.main.rightMenu,(function(e,s){return i("v-list-item",{key:s,on:{click:function(i){return t.sendCmd(e.cmd)}}},[i("v-list-item-content",[i("v-list-item-title",{staticClass:"text-subtitle-1"},[t._v(t._s(e.name))])],1)],1)})),1)],1)],1)],1):t._e()],1)],1),t.vals.main.slider&&t.isActive?i("v-card-text",[i("v-slider",{attrs:{min:t.vals.main.sliderMin,max:t.vals.main.sliderMax,"hide-details":"",color:"accent"},on:{change:t.setSlider},scopedSlots:t._u([t.vals.main.leftBtn?{key:"prepend",fn:function(){return[i("v-icon",{on:{click:function(e){return t.clickEnd("left")}}},[t._v(t._s(t.vals.main.leftBtn))])]},proxy:!0}:null,t.vals.main.rightBtn?{key:"append",fn:function(){return[i("v-icon",{on:{click:function(e){return t.clickEnd("right")}}},[t._v(t._s(t.vals.main.rightBtn))])]},proxy:!0}:null],null,!0),model:{value:t.vals.main.sliderCurrent,callback:function(e){t.$set(t.vals.main,"sliderCurrent",e)},expression:"vals.main.sliderCurrent"}})],1):t._e(),i("v-divider"),i("v-system-bar",{attrs:{color:"secondary darken-1"}},[i("v-icon",{staticClass:"ml-0"},[t._v(t._s(t.vals.info.left1Icon))]),t._v(t._s(t.vals.info.left1Text)+" "),i("v-icon",[t._v(t._s(t.vals.info.left2Icon))]),t._v(t._s(t.vals.info.left2Text)+" "),i("v-spacer"),i("v-icon",[t._v(t._s(t.vals.info.mid1Icon))]),t._v(t._s(t.vals.info.mid1Text)+" "),i("v-icon",{staticClass:"ml-2"},[t._v(t._s(t.vals.info.mid2Icon))]),t._v(t._s(t.vals.info.mid2Text)+" "),i("v-spacer"),i("v-icon",[t._v(t._s(t.vals.info.right1Icon))]),t._v(t._s(t.vals.info.right1Text)+" "),i("v-icon",{staticClass:"mr-0"},[t._v(t._s(t.vals.info.right2Icon))]),t._v(t._s(t.vals.info.right2Text)+" ")],1)],1)],1)},n=[],a=i("b85c"),l=(i("1276"),i("ac1f"),i("466d"),i("c740"),i("5319"),{data:function(){return{name:"default",setup:{status:{bar:[],error:[]},main:[{leftBtn:"",text:"Template unbekannt",rightBtn:""}],info:{left1:[],left2:[],mid1:[],mid2:[],right1:[],right2:[]}},vals:{title:"",status:{level:0,color:"",invert:!1},main:{leftBtn:"",leftBtnDisabled:!1,leftMenu:[],text:"",text2:"",slider:!1,sliderCurrent:0,sliderMin:0,sliderMax:100,rightBtn:"",rightBtnDisabled:!1,rightMenu:[]},info:{left1Icon:"",left1Text:"",left2Icon:"",left2Text:"",mid1Icon:"",mid1Text:"",mid2Icon:"",mid2Text:"",right1Icon:"",right1Text:"",right2Icon:"",right2Text:""}},multiLevel:!1,multiLevelIcon:"mdi-swap-vertical",mainLevel:0,isActive:!0,timer:!1,long:!1,pendingClick:0}},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()}},setup:{deep:!0,handler:function(){this.setValues()}}},computed:{getLevel:function(){return this.vals.status.invert?100-this.vals.status.level:this.vals.status.level}},methods:{sendCmd:function(t,e){var i=this;e?(this.pendingClick&&(clearTimeout(this.pendingClick),this.pendingClick=0),this.pendingClick=setTimeout((function(){i.$fhem.request(t)}),1e3)):this.$fhem.request(t)},updateReading:function(t){var e=t.split(" ");4===e.length&&this.$fhem.getEl(this.item,"Readings",e[2],"Value")&&(this.item.Readings[e[2]].Value=e[3])},clickStart:function(t){var e=this;this.long=!1,this.timer=setInterval((function(){e.long=!0;var i=e.setup.main[e.mainLevel][t+"Long"];if(i){var s=e.$fhem.handleVals(e.item,i);if(s[0]){var n=s[0].match("set")?s[0]:"set "+e.item.Name+" "+s[0];e.sendCmd(n),e.timer=clearInterval(e.timer)}}}),1e3)},clickEnd:function(t){this.timer=clearInterval(this.timer);var e=this.setup.main[this.mainLevel][t+(this.long?"LongRelease":"Click")];if(e){var i=this.$fhem.handleVals(this.item,e);if(i[0]){var s=i[0].match("set")?i[0]:"set "+this.item.Name+" "+i[0],n=-1!=e.findIndex((function(t){return t.match("%i")}));!this.long&&n&&this.updateReading(s),this.sendCmd(s,n)}}},setSlider:function(t){var e=this.setup.main[this.mainLevel].slider;if(e){var i=this.$fhem.handleVals(this.item,e);if(i[0]){var s=i[0].match("set")?i[0]:"set "+this.item.Name+" "+i[0];s=s.replace("%v",t),this.sendCmd(s)}}},createMenu:function(t){var e=[];if(t&&t.length>0){var i,s=Object(a["a"])(t);try{for(s.s();!(i=s.n()).done;){var n=i.value,l=n.split(":");if(l.length>1){var r=l[1].match("set")?l[1]:"set "+this.item.Name+" "+l[1];e.push({name:l[0],cmd:r})}}}catch(o){s.e(o)}finally{s.f()}}return e},setLevel:function(t){isNaN(t)?(this.mainLevel++,this.mainLevel>this.setup.main.length-1&&(this.mainLevel=0)):(this.multiLevel=this.setup.main.length>1,this.mainLevel=t),this.vals.main.leftBtn=this.setup.main[this.mainLevel].leftBtn,this.vals.main.rightBtn=this.setup.main[this.mainLevel].rightBtn;var e=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text),i=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text2),s=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].leftBtn),n=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].rightBtn),a=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].slider),l=this.createMenu(this.setup.main[this.mainLevel].leftMenu),r=this.createMenu(this.setup.main[this.mainLevel].rightMenu);this.vals.main.text=e[0]||"",this.vals.main.text2=i[0]||"",this.vals.main.leftBtn=s[0]||"",this.vals.main.rightBtn=n[0]||"",this.vals.main.leftBtnDisabled=!!s[1],this.vals.main.rightBtnDisabled=!!n[1],this.vals.main.leftMenu=l,this.vals.main.rightMenu=r,this.vals.main.slider=!!a[0],this.vals.main.sliderCurrent=a[1]||0,this.vals.main.sliderMin=a[2]||0,this.vals.main.sliderMax=a[3]||100},setValues:function(){if(this.setup.main.length>0){var t=this.$fhem.handleVals(this.item,this.setup.status.bar),e=this.$fhem.handleVals(this.item,this.setup.status.error),i=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text),s=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].text2),n=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].slider),a=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].leftBtn),l=this.$fhem.handleVals(this.item,this.setup.main[this.mainLevel].rightBtn),r=this.createMenu(this.setup.main[this.mainLevel].leftMenu),o=this.createMenu(this.setup.main[this.mainLevel].rightMenu),h=this.$fhem.handleVals(this.item,this.setup.info.left1),c=this.$fhem.handleVals(this.item,this.setup.info.left2),u=this.$fhem.handleVals(this.item,this.setup.info.mid1),d=this.$fhem.handleVals(this.item,this.setup.info.mid2),v=this.$fhem.handleVals(this.item,this.setup.info.right1),m=this.$fhem.handleVals(this.item,this.setup.info.right2);this.vals.status.level=t[0]||"0",this.vals.status.color=t[1]||"success",this.vals.status.invert=!!t[2],this.vals.info.left1Icon=h[1]||"",this.vals.info.left1Text=h[0]||"",this.vals.info.left2Icon=c[1]||"",this.vals.info.left2Text=c[0]||"",this.vals.info.mid1Icon=u[1]||"",this.vals.info.mid1Text=u[0]||"",this.vals.info.mid2Icon=d[1]||"",this.vals.info.mid2Text=d[0]||"",this.vals.info.right1Icon=v[1]||"",this.vals.info.right1Text=v[0]||"",this.vals.info.right2Icon=m[1]||"",this.vals.info.right2Text=m[0]||"",this.vals.main.text=i[0]||"",this.vals.main.text2=s[0]||"",this.vals.main.slider=!!n[0],this.vals.main.sliderCurrent=n[1]||0,this.vals.main.sliderMin=n[2]||0,this.vals.main.sliderMax=n[3]||100,this.vals.main.leftBtn=a[0]||"",this.vals.main.rightBtn=l[0]||"",this.vals.main.leftBtnDisabled=!!a[1],this.vals.main.rightBtnDisabled=!!l[1],this.vals.main.leftMenu=r,this.vals.main.rightMenu=o,e.length>0?(this.vals.status.level=e[0]||"100",this.vals.status.color=e[1]||"error",this.vals.main.text=e[2]||"Fehler",this.isActive=!1):this.isActive=!0}}},props:{item:{}},mounted:function(){var t=this.$fhem.getEl(this.item,"Options","setup","status"),e=this.$fhem.getEl(this.item,"Options","setup","main"),i=this.$fhem.getEl(this.item,"Options","setup","info");t&&Object.assign(this.setup.status,t),e&&Object.assign(this.setup.main,e),i&&Object.assign(this.setup.info,i),this.setLevel(0)}}),r=l,o=i("2877"),h=i("6544"),c=i.n(h),u=i("8336"),d=i("b0af"),v=i("99d9"),m=i("62ad"),f=i("ce7e"),p=i("132d"),g=i("8860"),b=i("da13"),x=i("5d23"),k=i("1baa"),C=i("e449"),y=i("8e36"),_=i("0fd9"),T=i("ba0d"),$=i("2fa4"),V=i("afd9"),w=Object(o["a"])(r,s,n,!1,null,null,null);e["default"]=w.exports;c()(w,{VBtn:u["a"],VCard:d["a"],VCardText:v["c"],VCardTitle:v["d"],VCol:m["a"],VDivider:f["a"],VIcon:p["a"],VList:g["a"],VListItem:b["a"],VListItemContent:x["a"],VListItemGroup:k["a"],VListItemTitle:x["c"],VMenu:C["a"],VProgressLinear:y["a"],VRow:_["a"],VSlider:T["a"],VSpacer:$["a"],VSystemBar:V["a"]})},"480e":function(t,e,i){"use strict";i("7db0");var s=i("7560");e["a"]=s["a"].extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark:function(){return this.root?this.rootIsDark:s["a"].options.computed.isDark.call(this)}},render:function(){return this.$slots.default&&this.$slots.default.find((function(t){return!t.isComment&&" "!==t.text}))}})},8308:function(t,e,i){},"9e29":function(t,e,i){},afd9:function(t,e,i){"use strict";var s=i("5530"),n=(i("a9e3"),i("c7cd"),i("8308"),i("3a66")),a=i("a9ad"),l=i("7560"),r=i("58df"),o=i("80d2");e["a"]=Object(r["a"])(Object(n["a"])("bar",["height","window"]),a["a"],l["a"]).extend({name:"v-system-bar",props:{height:[Number,String],lightsOut:Boolean,window:Boolean},computed:{classes:function(){return Object(s["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(o["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(o["s"])(this))}})},ba0d:function(t,e,i){"use strict";var s=i("ade3"),n=i("5530"),a=(i("a9e3"),i("d81d"),i("99af"),i("caad"),i("2532"),i("498a"),i("d3b7"),i("25f0"),i("b680"),i("9e29"),i("c37a")),l=i("0789"),r=i("58df"),o=i("297c"),h=i("a293"),c=i("80d2"),u=i("d9bd");e["a"]=Object(r["a"])(a["a"],o["a"]).extend({name:"v-slider",directives:{ClickOutside:h["a"]},mixins:[o["a"]],props:{disabled:Boolean,inverseLabel:Boolean,max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:1},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:function(t){return"boolean"===typeof t||"always"===t}},thumbSize:{type:[Number,String],default:32},tickLabels:{type:Array,default:function(){return[]}},ticks:{type:[Boolean,String],default:!1,validator:function(t){return"boolean"===typeof t||"always"===t}},tickSize:{type:[Number,String],default:2},trackColor:String,trackFillColor:String,value:[Number,String],vertical:Boolean},data:function(){return{app:null,oldValue:null,thumbPressed:!1,mouseTimeout:-1,isFocused:!1,isActive:!1,noClick:!1}},computed:{classes:function(){return Object(n["a"])(Object(n["a"])({},a["a"].options.computed.classes.call(this)),{},{"v-input__slider":!0,"v-input__slider--vertical":this.vertical,"v-input__slider--inverse-label":this.inverseLabel})},internalValue:{get:function(){return this.lazyValue},set:function(t){t=isNaN(t)?this.minValue:t;var e=this.roundValue(Math.min(Math.max(t,this.minValue),this.maxValue));e!==this.lazyValue&&(this.lazyValue=e,this.$emit("input",e))}},trackTransition:function(){return this.thumbPressed?this.showTicks||this.stepNumeric?"0.1s cubic-bezier(0.25, 0.8, 0.5, 1)":"none":""},minValue:function(){return parseFloat(this.min)},maxValue:function(){return parseFloat(this.max)},stepNumeric:function(){return this.step>0?parseFloat(this.step):0},inputWidth:function(){return(this.roundValue(this.internalValue)-this.minValue)/(this.maxValue-this.minValue)*100},trackFillStyles:function(){var t,e=this.vertical?"bottom":"left",i=this.vertical?"top":"right",n=this.vertical?"height":"width",a=this.$vuetify.rtl?"auto":"0",l=this.$vuetify.rtl?"0":"auto",r=this.isDisabled?"calc(".concat(this.inputWidth,"% - 10px)"):"".concat(this.inputWidth,"%");return t={transition:this.trackTransition},Object(s["a"])(t,e,a),Object(s["a"])(t,i,l),Object(s["a"])(t,n,r),t},trackStyles:function(){var t,e=this.vertical?this.$vuetify.rtl?"bottom":"top":this.$vuetify.rtl?"left":"right",i=this.vertical?"height":"width",n="0px",a=this.isDisabled?"calc(".concat(100-this.inputWidth,"% - 10px)"):"calc(".concat(100-this.inputWidth,"%)");return t={transition:this.trackTransition},Object(s["a"])(t,e,n),Object(s["a"])(t,i,a),t},showTicks:function(){return this.tickLabels.length>0||!(this.isDisabled||!this.stepNumeric||!this.ticks)},numTicks:function(){return Math.ceil((this.maxValue-this.minValue)/this.stepNumeric)},showThumbLabel:function(){return!this.isDisabled&&!(!this.thumbLabel&&!this.$scopedSlots["thumb-label"])},computedTrackColor:function(){if(!this.isDisabled)return this.trackColor?this.trackColor:this.isDark?this.validationState:this.validationState||"primary lighten-3"},computedTrackFillColor:function(){if(!this.isDisabled)return this.trackFillColor?this.trackFillColor:this.validationState||this.computedColor},computedThumbColor:function(){return this.thumbColor?this.thumbColor:this.validationState||this.computedColor}},watch:{min:function(t){var e=parseFloat(t);e>this.internalValue&&this.$emit("input",e)},max:function(t){var e=parseFloat(t);e0}},l)},genThumbContainer:function(t,e,i,s,a,l){var r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"thumb",o=[this.genThumb()],h=this.genThumbLabelContent(t);return this.showThumbLabel&&o.push(this.genThumbLabel(h)),this.$createElement("div",this.setTextColor(this.computedThumbColor,{ref:r,key:r,staticClass:"v-slider__thumb-container",class:{"v-slider__thumb-container--active":i,"v-slider__thumb-container--focused":s,"v-slider__thumb-container--show-label":this.showThumbLabel},style:this.getThumbContainerStyles(e),attrs:Object(n["a"])({role:"slider",tabindex:this.isDisabled?-1:this.$attrs.tabindex?this.$attrs.tabindex:0,"aria-label":this.label,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this.internalValue,"aria-readonly":String(this.isReadonly),"aria-orientation":this.vertical?"vertical":"horizontal"},this.$attrs),on:{focus:a,blur:l,keydown:this.onKeyDown}}),o)},genThumbLabelContent:function(t){return this.$scopedSlots["thumb-label"]?this.$scopedSlots["thumb-label"]({value:t}):[this.$createElement("span",[String(t)])]},genThumbLabel:function(t){var e=Object(c["g"])(this.thumbSize),i=this.vertical?"translateY(20%) translateY(".concat(Number(this.thumbSize)/3-1,"px) translateX(55%) rotate(135deg)"):"translateY(-20%) translateY(-12px) translateX(-50%) rotate(45deg)";return this.$createElement(l["d"],{props:{origin:"bottom center"}},[this.$createElement("div",{staticClass:"v-slider__thumb-label-container",directives:[{name:"show",value:this.isFocused||this.isActive||"always"===this.thumbLabel}]},[this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb-label",style:{height:e,width:e,transform:i}}),[this.$createElement("div",t)])])])},genThumb:function(){return this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb"}))},getThumbContainerStyles:function(t){var e=this.vertical?"top":"left",i=this.$vuetify.rtl?100-t:t;return i=this.vertical?100-i:i,Object(s["a"])({transition:this.trackTransition},e,"".concat(i,"%"))},onSliderMouseDown:function(t){var e,i=this;t.preventDefault(),this.oldValue=this.internalValue,this.isActive=!0;var s=!c["B"]||{passive:!0,capture:!0},n=!!c["B"]&&{passive:!0};(null==(e=t.target)?void 0:e.matches(".v-slider__thumb-container, .v-slider__thumb-container *"))?this.thumbPressed=!0:(window.clearTimeout(this.mouseTimeout),this.mouseTimeout=window.setTimeout((function(){i.thumbPressed=!0}),300)),"touches"in t?(this.app.addEventListener("touchmove",this.onMouseMove,n),Object(c["a"])(this.app,"touchend",this.onSliderMouseUp,s)):(this.onMouseMove(t),this.app.addEventListener("mousemove",this.onMouseMove,n),Object(c["a"])(this.app,"mouseup",this.onSliderMouseUp,s)),this.$emit("start",this.internalValue)},onSliderMouseUp:function(t){t.stopPropagation(),window.clearTimeout(this.mouseTimeout),this.thumbPressed=!1;var e=!!c["B"]&&{passive:!0};this.app.removeEventListener("touchmove",this.onMouseMove,e),this.app.removeEventListener("mousemove",this.onMouseMove,e),this.$emit("mouseup",t),this.$emit("end",this.internalValue),Object(c["j"])(this.oldValue,this.internalValue)||(this.$emit("change",this.internalValue),this.noClick=!0),this.isActive=!1},onMouseMove:function(t){"mousemove"===t.type&&(this.thumbPressed=!0),this.internalValue=this.parseMouseMove(t)},onKeyDown:function(t){if(this.isInteractive){var e=this.parseKeyDown(t,this.internalValue);null==e||ethis.maxValue||(this.internalValue=e,this.$emit("change",e))}},onSliderClick:function(t){if(this.noClick)this.noClick=!1;else{var e=this.$refs.thumb;e.focus(),this.onMouseMove(t),this.$emit("change",this.internalValue)}},onBlur:function(t){this.isFocused=!1,this.$emit("blur",t)},onFocus:function(t){this.isFocused=!0,this.$emit("focus",t)},parseMouseMove:function(t){var e=this.vertical?"top":"left",i=this.vertical?"height":"width",s=this.vertical?"clientY":"clientX",n=this.$refs.track.getBoundingClientRect(),a=n[e],l=n[i],r="touches"in t?t.touches[0][s]:t[s],o=Math.min(Math.max((r-a)/l,0),1)||0;return this.vertical&&(o=1-o),this.$vuetify.rtl&&(o=1-o),parseFloat(this.min)+o*(this.maxValue-this.minValue)},parseKeyDown:function(t,e){if(this.isInteractive){var i=c["x"].pageup,s=c["x"].pagedown,n=c["x"].end,a=c["x"].home,l=c["x"].left,r=c["x"].right,o=c["x"].down,h=c["x"].up;if([i,s,n,a,l,r,o,h].includes(t.keyCode)){t.preventDefault();var u=this.stepNumeric||1,d=(this.maxValue-this.minValue)/u;if([l,r,o,h].includes(t.keyCode)){var v=this.$vuetify.rtl?[l,h]:[r,h],m=v.includes(t.keyCode)?1:-1,f=t.shiftKey?3:t.ctrlKey?2:1;e+=m*u*f}else if(t.keyCode===a)e=this.minValue;else if(t.keyCode===n)e=this.maxValue;else{var p=t.keyCode===s?1:-1;e-=p*u*(d>100?d/10:10)}return e}}},roundValue:function(t){if(!this.stepNumeric)return t;var e=this.step.toString().trim(),i=e.indexOf(".")>-1?e.length-e.indexOf(".")-1:0,s=this.minValue%this.stepNumeric,n=Math.round((t-s)/this.stepNumeric)*this.stepNumeric+s;return parseFloat(Math.min(n,this.maxValue).toFixed(i))}}})},e449:function(t,e,i){"use strict";var s=i("ade3"),n=i("2909"),a=i("5530"),l=(i("a9e3"),i("7db0"),i("a630"),i("3ca3"),i("99af"),i("498a"),i("caad"),i("2532"),i("ee6f"),i("480e")),r=i("4ad4"),o=i("16b7"),h=i("b848"),c=i("75eb"),u=i("f573"),d=i("e4d3"),v=i("a236"),m=i("f2e7"),f=i("7560"),p=i("a293"),g=i("dc22"),b=i("58df"),x=i("d9bd"),k=i("80d2"),C=Object(b["a"])(h["a"],o["a"],c["a"],u["a"],d["a"],v["a"],m["a"],f["a"]);e["a"]=C.extend({name:"v-menu",directives:{ClickOutside:p["a"],Resize:g["a"]},provide:function(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnClick:{type:Boolean,default:!0},openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"}},data:function(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile:function(){return this.tiles[this.listIndex]},calculatedLeft:function(){var t=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?Object(k["g"])(this.calcXOverflow(this.calcLeftAuto(),t))||"0":this.calcLeft(t)||"0"},calculatedMaxHeight:function(){var t=this.auto?"200px":Object(k["g"])(this.maxHeight);return t||"0"},calculatedMaxWidth:function(){return Object(k["g"])(this.maxWidth)||"0"},calculatedMinWidth:function(){if(this.minWidth)return Object(k["g"])(this.minWidth)||"0";var t=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?t:parseInt(this.calculatedMaxWidth);return Object(k["g"])(Math.min(e,t))||"0"},calculatedTop:function(){var t=this.auto?Object(k["g"])(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop();return t||"0"},hasClickableTiles:function(){return Boolean(this.tiles.find((function(t){return t.tabIndex>-1})))},styles:function(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive:function(t){t||(this.listIndex=-1)},isContentActive:function(t){this.hasJustFocused=t},listIndex:function(t,e){if(t in this.tiles){var i=this.tiles[t];i.classList.add("v-list-item--highlighted"),this.$refs.content.scrollTop=i.offsetTop-i.clientHeight}e in this.tiles&&this.tiles[e].classList.remove("v-list-item--highlighted")}},created:function(){this.$attrs.hasOwnProperty("full-width")&&Object(x["e"])("full-width",this)},mounted:function(){this.isActive&&this.callActivate()},methods:{activate:function(){var t=this;this.updateDimensions(),requestAnimationFrame((function(){t.startTransition().then((function(){t.$refs.content&&(t.calculatedTopAuto=t.calcTopAuto(),t.auto&&(t.$refs.content.scrollTop=t.calcScrollPosition()))}))}))},calcScrollPosition:function(){var t=this.$refs.content,e=t.querySelector(".v-list-item--active"),i=t.scrollHeight-t.offsetHeight;return e?Math.min(i,Math.max(0,e.offsetTop-t.offsetHeight/2+e.offsetHeight/2)):t.scrollTop},calcLeftAuto:function(){return parseInt(this.dimensions.activator.left-2*this.defaultOffset)},calcTopAuto:function(){var t=this.$refs.content,e=t.querySelector(".v-list-item--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);var i=e.offsetTop-this.calcScrollPosition(),s=t.querySelector(".v-list-item").offsetTop;return this.computedTop-i-s-1},changeListIndex:function(t){if(this.getTiles(),this.isActive&&this.hasClickableTiles)if(t.keyCode!==k["x"].tab){if(t.keyCode===k["x"].down)this.nextTile();else if(t.keyCode===k["x"].up)this.prevTile();else if(t.keyCode===k["x"].end)this.lastTile();else if(t.keyCode===k["x"].home)this.firstTile();else{if(t.keyCode!==k["x"].enter||-1===this.listIndex)return;this.tiles[this.listIndex].click()}t.preventDefault()}else this.isActive=!1},closeConditional:function(t){var e=t.target;return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(e)},genActivatorAttributes:function(){var t=r["a"].options.methods.genActivatorAttributes.call(this);return this.activeTile&&this.activeTile.id?Object(a["a"])(Object(a["a"])({},t),{},{"aria-activedescendant":this.activeTile.id}):t},genActivatorListeners:function(){var t=u["a"].options.methods.genActivatorListeners.call(this);return this.disableKeys||(t.keydown=this.onKeyDown),t},genTransition:function(){var t=this.genContent();return this.transition?this.$createElement("transition",{props:{name:this.transition}},[t]):t},genDirectives:function(){var t=this,e=[{name:"show",value:this.isContentActive}];return!this.openOnHover&&this.closeOnClick&&e.push({name:"click-outside",value:{handler:function(){t.isActive=!1},closeConditional:this.closeConditional,include:function(){return[t.$el].concat(Object(n["a"])(t.getOpenDependentElements()))}}}),e},genContent:function(){var t=this,e={attrs:Object(a["a"])(Object(a["a"])({},this.getScopeIdAttrs()),{},{role:"role"in this.$attrs?this.$attrs.role:"menu"}),staticClass:"v-menu__content",class:Object(a["a"])(Object(a["a"])(Object(a["a"])({},this.rootThemeClasses),this.roundedClasses),{},Object(s["a"])({"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive},this.contentClass.trim(),!0)),style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:function(e){var i=e.target;i.getAttribute("disabled")||t.closeOnContentClick&&(t.isActive=!1)},keydown:this.onKeyDown}};return this.$listeners.scroll&&(e.on=e.on||{},e.on.scroll=this.$listeners.scroll),!this.disabled&&this.openOnHover&&(e.on=e.on||{},e.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(e.on=e.on||{},e.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",e,this.getContentSlot())},getTiles:function(){this.$refs.content&&(this.tiles=Array.from(this.$refs.content.querySelectorAll(".v-list-item")))},mouseEnterHandler:function(){var t=this;this.runDelay("open",(function(){t.hasJustFocused||(t.hasJustFocused=!0)}))},mouseLeaveHandler:function(t){var e=this;this.runDelay("close",(function(){e.$refs.content.contains(t.relatedTarget)||requestAnimationFrame((function(){e.isActive=!1,e.callDeactivate()}))}))},nextTile:function(){var t=this.tiles[this.listIndex+1];if(!t){if(!this.tiles.length)return;return this.listIndex=-1,void this.nextTile()}this.listIndex++,-1===t.tabIndex&&this.nextTile()},prevTile:function(){var t=this.tiles[this.listIndex-1];if(!t){if(!this.tiles.length)return;return this.listIndex=this.tiles.length,void this.prevTile()}this.listIndex--,-1===t.tabIndex&&this.prevTile()},lastTile:function(){var t=this.tiles[this.tiles.length-1];t&&(this.listIndex=this.tiles.length-1,-1===t.tabIndex&&this.prevTile())},firstTile:function(){var t=this.tiles[0];t&&(this.listIndex=0,-1===t.tabIndex&&this.nextTile())},onKeyDown:function(t){var e=this;if(t.keyCode===k["x"].esc){setTimeout((function(){e.isActive=!1}));var i=this.getActivator();this.$nextTick((function(){return i&&i.focus()}))}else!this.isActive&&[k["x"].up,k["x"].down].includes(t.keyCode)&&(this.isActive=!0);this.$nextTick((function(){return e.changeListIndex(t)}))},onResize:function(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.updateDimensions,100))}},render:function(t){var e=this,i={staticClass:"v-menu",class:{"v-menu--attached":""===this.attach||!0===this.attach||"attach"===this.attach},directives:[{arg:"500",name:"resize",value:this.onResize}]};return t("div",i,[!this.activator&&this.genActivator(),this.showLazyContent((function(){return[e.$createElement(l["a"],{props:{root:!0,light:e.light,dark:e.dark}},[e.genTransition()])]}))])}})},e4d3:function(t,e,i){"use strict";var s=i("2b0e");e["a"]=s["a"].extend({name:"returnable",props:{returnValue:null},data:function(){return{isActive:!1,originalValue:null}},watch:{isActive:function(t){t?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save:function(t){var e=this;this.originalValue=t,setTimeout((function(){e.isActive=!1}))}}})},ee6f:function(t,e,i){}}]); \ No newline at end of file