diff --git a/platypush/backend/http/webapp/dist/index.html b/platypush/backend/http/webapp/dist/index.html index 1dd27f289..57ef713d0 100644 --- a/platypush/backend/http/webapp/dist/index.html +++ b/platypush/backend/http/webapp/dist/index.html @@ -1 +1 @@ -
"+JSON.stringify(e,null,2)+"",this.error=void 0},onError(e){this.response=void 0,this.error=e},onDone(){this.running=!1},async copyToClipboard(){const e=(null!=this.error?this.error:this.response).replace(/^\s*
/g,"").replace(/<\/pre>\s*/g,"");await navigator.clipboard.writeText(e)},executeAction(){if((this.action.name||this.rawRequest)&&!this.running)if(this.running=!0,this.structuredInput){const e={...Object.entries(this.action.args).reduce(((e,t)=>{if(null!=t[1].value){let s=t[1].value;try{s=JSON.parse(s)}catch(n){console.debug("Not a valid JSON value"),console.debug(s)}e[t[0]]=s}return e}),{}),...this.action.extraArgs.reduce(((e,t)=>{let n=e[t.value];try{n=JSON.parse(n)}catch(s){console.debug("Not a valid JSON value"),console.debug(n)}return e[t.name]=n,e}),{})};this.request(this.action.name,e).then(this.onResponse).catch(this.onError).finally(this.onDone)}else try{const e=JSON.parse(this.rawRequest);this.execute(e).then(this.onResponse).catch(this.onError).finally(this.onDone)}catch(e){this.notify({error:!0,title:"Invalid JSON request",text:e.toString()})}},executeProcedure(e){if(!this.selectedProcedure.name||this.running)return;e.stopPropagation(),this.running=!0;const t={...Object.entries(this.selectedProcedure.args).reduce(((e,t)=>{if(null!=t[1]){let s=t[1];try{s=JSON.parse(s)}catch(n){console.debug("Not a valid JSON value"),console.debug(s)}e[t[0]]=s}return e}),{})};this.request("procedure."+this.selectedProcedure.name,t).then(this.onResponse).catch(this.onError).finally(this.onDone)},onClick(e){"a"===e.target.tagName.toLowerCase()&&(e.stopPropagation(),e.preventDefault(),window.open(e.target.getAttribute("href","_blank")))}},mounted(){this.$nextTick((()=>{this.$refs.actionName.focus()})),this.refresh()}},He=n(3744);const Me=(0,He.Z)(Ne,[["render",Le]]);var je=Me}}]); -//# sourceMappingURL=7510.51d54bc4.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/7510.51d54bc4.js.map b/platypush/backend/http/webapp/dist/static/js/7510.51d54bc4.js.map deleted file mode 100644 index d9b9b5d9b..000000000 --- a/platypush/backend/http/webapp/dist/static/js/7510.51d54bc4.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/7510.51d54bc4.js","mappings":"2MAGSA,MAAM,6B,GACTC,EAAAA,EAAAA,GAA+C,OAA1CD,MAAM,iBAAgB,kBAAc,G,GAElCA,MAAM,0B,iBAGTC,EAAAA,EAAAA,GAA+D,SAAxDC,IAAI,2BAA0B,sBAAkB,G,iBAGvDD,EAAAA,EAAAA,GAAiD,SAA1CC,IAAI,oBAAmB,eAAW,G,GAIpCF,MAAM,kB,GACJA,MAAM,gB,kBAONA,MAAM,W,kBAGPC,EAAAA,EAAAA,GAAyB,KAAtBD,MAAM,eAAa,S,GAAtBG,G,SAKDH,MAAM,iB,GACJA,MAAM,S,cAINA,MAAM,Y,yBAMRA,MAAM,W,SAEJA,MAAM,SAASI,IAAI,U,sEAUfJ,MAAM,6B,GACJA,MAAM,S,qBAINA,MAAM,Y,yBAOVA,MAAM,eAAeI,IAAI,e,GAEnBJ,MAAM,S,wCAINA,MAAM,S,wCAINA,MAAM,iB,iBAGTC,EAAAA,EAAAA,GAA0B,KAAvBD,MAAM,gBAAc,S,GAAvBK,G,SAMHL,MAAM,a,GAEPC,EAAAA,EAAAA,GAAyB,KAAtBD,MAAM,eAAa,S,GAAtBM,G,SAKDN,MAAM,iC,GACJA,MAAM,S,qBAINA,MAAM,Y,mBAOVA,MAAM,oB,SACJA,MAAM,U,qBAEJA,MAAM,W,IAEPC,EAAAA,EAAAA,GAA8B,KAA3BD,MAAM,oBAAkB,S,IAA3BO,I,sCAUHP,MAAM,a,uCAKPC,EAAAA,EAAAA,GAAyB,KAAtBD,MAAM,eAAa,S,IAAtBQ,I,UAICR,MAAM,oB,UACJA,MAAM,U,uBAEJA,MAAM,W,IA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AMzI,CACnB,CACA,OAAOtD,CAAG,GACT,CAAC,IAGN0H,KAAKmC,QAAQ,aAAenC,KAAK9B,kBAAkB9D,KAAM9B,GACpDkM,KAAKxE,KAAK2D,YAAYc,MAAMzE,KAAK8D,SAASY,QAAQ1E,KAAK+D,OAC9D,EAEA3L,OAAAA,CAAQ8K,GAEqC,MAAvCA,EAAMnC,OAAO+D,QAAQC,gBACvB7B,EAAMvE,kBACNuE,EAAMtC,iBACNoE,OAAOC,KAAK/B,EAAMnC,OAAOoC,aAAa,OAAQ,WAElD,GAGF+B,OAAAA,GACElF,KAAKyD,WAAU,KACbzD,KAAKuC,MAAMV,WAAWf,OAAO,IAG/Bd,KAAKkC,SACP,G,WEveF,MAAMiD,IAA2B,QAAgB,GAAQ,CAAC,CAAC,SAASC,MAEpE,S","sources":["webpack://platypush/./src/components/panels/Execute/Index.vue","webpack://platypush/./src/components/elements/Autocomplete.js","webpack://platypush/./src/components/panels/Execute/Index.vue?99e5"],"sourcesContent":["\n\n\n\n\n\n\n\n","function autocomplete(inp, arr, listener) {\n /*the autocomplete function takes two arguments,\n the text field element and an array of possible autocompleted values:*/\n let currentFocus;\n\n /*execute a function when someone writes in the text field:*/\n inp.addEventListener(\"input\", function() {\n let a, b, i, val = this.value;\n /*close any already open lists of autocompleted values*/\n closeAllLists();\n if (!val) {\n return false;\n }\n\n currentFocus = -1;\n\n /*create a DIV element that will contain the items (values):*/\n a = document.createElement(\"DIV\");\n a.setAttribute(\"id\", this.id + \"autocomplete-list\");\n a.setAttribute(\"class\", \"autocomplete-items\");\n\n /*append the DIV element as a child of the autocomplete container:*/\n this.parentNode.appendChild(a);\n\n /*for each item in the array...*/\n for (i = 0; i < arr.length; i++) {\n /*check if the item starts with the same letters as the text field value:*/\n if (arr[i].substr(0, val.length).toUpperCase() === val.toUpperCase()) {\n /*create a DIV element for each matching element:*/\n b = document.createElement(\"DIV\");\n /*make the matching letters bold:*/\n b.innerHTML = \"\" + arr[i].substr(0, val.length) + \"\";\n b.innerHTML += arr[i].substr(val.length);\n /*insert a input field that will hold the current array item's value:*/\n b.innerHTML += \"\";\n /*execute a function when someone clicks on the item value (DIV element):*/\n b.addEventListener(\"click\", function(e) {\n /*insert the value for the autocomplete text field:*/\n inp.value = this.getElementsByTagName(\"input\")[0].value;\n /*trigger event listener if any:*/\n if (listener) {\n listener(e, inp.value);\n }\n /*close the list of autocompleted values,\n (or any other open lists of autocompleted values:*/\n closeAllLists();\n });\n a.appendChild(b);\n }\n }\n });\n\n inp.addEventListener(\"keyup\", function(e) {\n if ([\"ArrowUp\", \"ArrowDown\", \"Tab\", \"Enter\"].indexOf(e.key) >= 0) {\n e.stopPropagation();\n }\n\n if (e.key === \"Enter\") {\n this.blur();\n }\n });\n\n /*execute a function presses a key on the keyboard:*/\n inp.addEventListener(\"keydown\", function(e) {\n let x = document.getElementById(this.id + \"autocomplete-list\");\n if (x) x = x.getElementsByTagName(\"div\");\n if (e.key === 'ArrowDown' || (e.key === 'Tab' && !e.shiftKey)) {\n /*If the arrow DOWN key is pressed,\n increase the currentFocus variable:*/\n currentFocus++;\n /*and and make the current item more visible:*/\n addActive(x);\n e.preventDefault();\n } else if (e.key === 'ArrowUp' || (e.key === 'Tab' && e.shiftKey)) { //up\n /*If the arrow UP key is pressed,\n decrease the currentFocus variable:*/\n currentFocus--;\n /*and and make the current item more visible:*/\n addActive(x);\n e.preventDefault();\n } else if (e.key === 'Enter') {\n /*If the ENTER key is pressed, prevent the form from being submitted,*/\n if (currentFocus > -1 && x && x.length) {\n e.preventDefault();\n /*and simulate a click on the \"active\" item:*/\n x[currentFocus].click();\n /*and restore the focus on the input element:*/\n this.focus();\n }\n }\n });\n\n function addActive(x) {\n /*a function to classify an item as \"active\":*/\n if (!x) return false;\n /*start by removing the \"active\" class on all items:*/\n removeActive(x);\n if (currentFocus >= x.length) currentFocus = 0;\n if (currentFocus < 0) currentFocus = (x.length - 1);\n /*add class \"autocomplete-active\":*/\n x[currentFocus].classList.add(\"autocomplete-active\");\n }\n\n function removeActive(x) {\n /*a function to remove the \"active\" class from all autocomplete items:*/\n for (let i = 0; i < x.length; i++) {\n x[i].classList.remove(\"autocomplete-active\");\n }\n }\n\n function closeAllLists(elmnt) {\n /*close all autocomplete lists in the document,\n except the one passed as an argument:*/\n const x = document.getElementsByClassName(\"autocomplete-items\");\n for (let i = 0; i < x.length; i++) {\n if (elmnt !== x[i] && elmnt !== inp) {\n x[i].parentNode.removeChild(x[i]);\n }\n }\n }\n\n /*execute a function when someone clicks in the document:*/\n document.addEventListener(\"click\", function (e) {\n closeAllLists(e.target);\n });\n}\n\nexport default autocomplete;\n","import { render } from \"./Index.vue?vue&type=template&id=6b8bef9c\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=6b8bef9c&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","_createElementVNode","for","_hoisted_13","ref","_hoisted_35","_hoisted_38","_hoisted_49","_hoisted_56","_hoisted_62","_hoisted_73","_createElementBlock","onClick","_cache","args","$options","$data","loading","_createBlock","_component_Loading","key","_hoisted_1","_hoisted_2","autocomplete","onSubmit","_withModifiers","executeAction","_hoisted_3","type","id","checked","structuredInput","onChange","$event","onInputTypeChange","_hoisted_5","_hoisted_7","_normalizeClass","_hoisted_8","_hoisted_9","placeholder","disabled","running","action","name","actionChanged","onBlur","updateAction","_hoisted_11","length","title","selectedDoc","_hoisted_15","_hoisted_16","href","currentActionDocURL","_hoisted_17","_hoisted_18","docLoading","innerHTML","actions","Object","keys","supportsExtraArgs","_hoisted_20","_hoisted_21","_Fragment","_renderList","value","onFocus","selectAttrDoc","resetAttrDoc","selectedAttrDoc","selectedAttr","_hoisted_23","_hoisted_24","_toDisplayString","_hoisted_26","extraArgs","_hoisted_28","i","_hoisted_29","_hoisted_31","_hoisted_33","removeParameter","_hoisted_37","addParameter","_hoisted_40","_hoisted_41","_hoisted_43","_hoisted_45","error","response","_hoisted_46","_hoisted_48","copyToClipboard","_hoisted_53","rawRequest","rawRequestPlaceholder","_hoisted_58","_hoisted_59","_hoisted_61","_hoisted_66","_hoisted_67","procedures","sort","selectedProcedure","updateProcedure","executeProcedure","_hoisted_69","_hoisted_71","_ctx","$emit","_hoisted_75","argname","stopPropagation","inp","arr","listener","currentFocus","addActive","x","removeActive","classList","add","remove","closeAllLists","elmnt","document","getElementsByClassName","parentNode","removeChild","addEventListener","a","b","val","this","createElement","setAttribute","appendChild","substr","toUpperCase","e","getElementsByTagName","indexOf","blur","getElementById","shiftKey","preventDefault","click","focus","target","components","Loading","mixins","Utils","data","undefined","plugins","actionDocsCache","computed","plugin","split","slice","join","actionName","actionClass","map","token","methods","refresh","request","values","has_kwargs","self","$refs","_","entries","reduce","entry","default","html","parseDoc","doc","docString","text","event","getAttribute","arg","console","warn","push","pop","$nextTick","rawAction","onResponse","JSON","stringify","onError","onDone","output","replace","navigator","clipboard","writeText","param","parse","debug","then","catch","finally","execute","notify","toString","tagName","toLowerCase","window","open","mounted","__exports__","render"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/7523.5fed230e.js b/platypush/backend/http/webapp/dist/static/js/7523.367c2045.js similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/7523.5fed230e.js rename to platypush/backend/http/webapp/dist/static/js/7523.367c2045.js index 1422c43e2..2c4221a22 100644 --- a/platypush/backend/http/webapp/dist/static/js/7523.5fed230e.js +++ b/platypush/backend/http/webapp/dist/static/js/7523.367c2045.js @@ -1,2 +1,2 @@ "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[7523],{4358:function(e,t,a){a.d(t,{Z:function(){return w}});var l=a(6252),n=a(3577),s=a(9963);const i={class:"slider-wrapper"},u=["textContent"],r=["textContent"],o={class:"slider-container"},d=["min","max","step","disabled","value"],p={class:"track-inner",ref:"track"},c={class:"thumb",ref:"thumb"},v=["textContent"];function h(e,t,a,h,g,f){return(0,l.wg)(),(0,l.iD)("label",i,[a.withRange?((0,l.wg)(),(0,l.iD)("span",{key:0,class:(0,n.C_)(["range-labels",{"with-label":a.withLabel}])},[a.withRange?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"label left",textContent:(0,n.zw)(a.range[0])},null,8,u)):(0,l.kq)("",!0),a.withRange?((0,l.wg)(),(0,l.iD)("span",{key:1,class:"label right",textContent:(0,n.zw)(a.range[1])},null,8,r)):(0,l.kq)("",!0)],2)):(0,l.kq)("",!0),(0,l._)("span",o,[(0,l._)("input",{class:(0,n.C_)(["slider",{"with-label":a.withLabel}]),type:"range",min:a.range[0],max:a.range[1],step:a.step,disabled:a.disabled,value:a.value,ref:"range",onInput:t[0]||(t[0]=(0,s.iM)(((...e)=>f.onUpdate&&f.onUpdate(...e)),["stop"])),onChange:t[1]||(t[1]=(0,s.iM)(((...e)=>f.onUpdate&&f.onUpdate(...e)),["stop"]))},null,42,d),(0,l._)("div",{class:(0,n.C_)(["track",{"with-label":a.withLabel}])},[(0,l._)("div",p,null,512)],2),(0,l._)("div",c,null,512),a.withLabel?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"label",textContent:(0,n.zw)(a.value),ref:"label"},null,8,v)):(0,l.kq)("",!0)])])}var g={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1},withRange:{type:Boolean,default:!1}},methods:{onUpdate(e){this.update(e.target.value),this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.range.value}})},update(e){const t=this.$refs.range.clientWidth,a=(e-this.range[0])/(this.range[1]-this.range[0]),l=a*t,n=this.$refs.thumb;n.style.left=l-n.clientWidth/2+"px",this.$refs.thumb.style.transform=`translate(-${a}%, -50%)`,this.$refs.track.style.width=`${l}px`}},mounted(){null!=this.value&&this.update(this.value),this.$watch((()=>this.value),(e=>this.update(e)))}},f=a(3744);const m=(0,f.Z)(g,[["render",h],["__scopeId","data-v-4b38623f"]]);var w=m},7523:function(e,t,a){a.r(t),a.d(t,{default:function(){return V}});var l=a(6252),n=a(3577),s=a(9963);const i={class:"entity dimmer-container"},u={class:"icon"},r={class:"label"},o=["textContent"],d={class:"value-container pull-right"},p=["textContent"],c={class:"row"},v={key:0,class:"input"},h={class:"col-10"},g={class:"col-2 value"},f=["value"],m={key:1,class:"input"},w={class:"col-12 value"},y=["value"];function b(e,t,a,b,_,k){const C=(0,l.up)("EntityIcon"),x=(0,l.up)("Slider");return(0,l.wg)(),(0,l.iD)("div",i,[(0,l._)("div",{class:(0,n.C_)(["head",{collapsed:e.collapsed}])},[(0,l._)("div",u,[(0,l.Wm)(C,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,l._)("div",r,[(0,l._)("div",{class:"name",textContent:(0,n.zw)(e.value.name)},null,8,o)]),(0,l._)("div",d,[null!=k.parsedValue?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"value",textContent:(0,n.zw)(k.parsedValue)},null,8,p)):(0,l.kq)("",!0),(0,l._)("button",{onClick:t[0]||(t[0]=(0,s.iM)((t=>e.collapsed=!e.collapsed),["stop"]))},[(0,l._)("i",{class:(0,n.C_)(["fas",{"fa-angle-up":!e.collapsed,"fa-angle-down":e.collapsed}])},null,2)])])],2),e.collapsed?(0,l.kq)("",!0):((0,l.wg)(),(0,l.iD)("div",{key:0,class:"body",onClick:t[3]||(t[3]=(0,s.iM)(((...e)=>k.prevent&&k.prevent(...e)),["stop"]))},[(0,l._)("div",c,[null!=e.value?.min&&null!=e.value?.max?((0,l.wg)(),(0,l.iD)("div",v,[(0,l._)("div",h,[(0,l.Wm)(x,{range:[e.value.min,e.value.max],"with-range":"",value:e.value.value,onInput:k.setValue},null,8,["range","value","onInput"])]),(0,l._)("div",g,[(0,l._)("input",{type:"number",value:e.value.value,onChange:t[1]||(t[1]=(...e)=>k.setValue&&k.setValue(...e))},null,40,f)])])):((0,l.wg)(),(0,l.iD)("div",m,[(0,l._)("div",w,[(0,l._)("input",{type:"number",value:e.value.value,onChange:t[2]||(t[2]=(...e)=>k.setValue&&k.setValue(...e))},null,40,y)])]))])]))])}var _=a(4358),k=a(847),C=a(4967),x={name:"Dimmer",components:{Slider:_.Z,EntityIcon:C["default"]},mixins:[k["default"]],computed:{parsedValue(){if(this.value?.is_write_only||null==this.value?.value)return null;let e=this.value.value;return this.value.unit&&(e=`${e} ${this.value.unit}`),e}},methods:{prevent(e){return e.stopPropagation(),!1},async setValue(e){if(e.target.value?.length){this.$emit("loading",!0);try{await this.request("entities.execute",{id:this.value.id,action:"set",value:+e.target.value})}finally{this.$emit("loading",!1)}}}}},$=a(3744);const D=(0,$.Z)(x,[["render",b],["__scopeId","data-v-3affff53"]]);var V=D}}]); -//# sourceMappingURL=7523.5fed230e.js.map \ No newline at end of file +//# sourceMappingURL=7523.367c2045.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/7523.5fed230e.js.map b/platypush/backend/http/webapp/dist/static/js/7523.367c2045.js.map similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/7523.5fed230e.js.map rename to platypush/backend/http/webapp/dist/static/js/7523.367c2045.js.map index e03d10545..192550d08 100644 --- a/platypush/backend/http/webapp/dist/static/js/7523.5fed230e.js.map +++ b/platypush/backend/http/webapp/dist/static/js/7523.367c2045.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/7523.5fed230e.js","mappings":"6LACSA,MAAM,kB,uCAMLA,MAAM,oB,6CAcHA,MAAM,cAAcC,IAAI,S,GAE1BD,MAAM,QAAQC,IAAI,S,4DAtB3BC,EAAAA,EAAAA,IAyBQ,QAzBRC,EAyBQ,CAxB8DC,EAAAC,YAAS,WAA7EH,EAAAA,EAAAA,IAGO,Q,MAHDF,OAAKM,EAAAA,EA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MAAMe,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/panels/Entities/Dimmer.vue","webpack://platypush/./src/components/panels/Entities/Dimmer.vue?5b8c"],"sourcesContent":["\n \n\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=4b38623f&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=4b38623f&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4b38623f\"]])\n\nexport default __exports__","\n\n \n\n\nExecute Action\n \n\n\nExecute Procedure\n\n \n\n\n\n\n\n\n\n\n","import { render } from \"./Dimmer.vue?vue&type=template&id=3affff53&scoped=true\"\nimport script from \"./Dimmer.vue?vue&type=script&lang=js\"\nexport * from \"./Dimmer.vue?vue&type=script&lang=js\"\n\nimport \"./Dimmer.vue?vue&type=style&index=0&id=3affff53&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3affff53\"]])\n\nexport default __exports__"],"names":["class","ref","_createElementBlock","_hoisted_1","$props","withRange","_normalizeClass","withLabel","_toDisplayString","range","_createElementVNode","_hoisted_4","type","min","max","step","disabled","value","onInput","_cache","_withModifiers","args","$options","onUpdate","onChange","_hoisted_6","_hoisted_7","name","emits","props","Number","Boolean","default","Array","methods","event","this","update","target","$emit","$refs","sliderWidth","clientWidth","percent","innerWidth","thumb","style","left","transform","track","width","mounted","$watch","newValue","__exports__","render","collapsed","_ctx","_hoisted_2","_createVNode","_component_EntityIcon","entity","loading","error","_hoisted_3","_hoisted_5","parsedValue","onClick","$event","prevent","_hoisted_8","_hoisted_9","_component_Slider","setValue","_hoisted_10","_hoisted_12","_hoisted_13","components","Slider","EntityIcon","mixins","EntityMixin","computed","is_write_only","unit","stopPropagation","length","request","id","action"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/7523.367c2045.js","mappings":"6LACSA,MAAM,kB,uCAMLA,MAAM,oB,6CAcHA,MAAM,cAAcC,IAAI,S,GAE1BD,MAAM,QAAQC,IAAI,S,4DAtB3BC,EAAAA,EAAAA,IAyBQ,QAzBRC,EAyBQ,CAxB8DC,EAAAC,YAAS,WAA7EH,EAAAA,EAAAA,IAGO,Q,MAHDF,OAAKM,EAAAA,EAAAA,IAAA,CAAC,eAAc,cAAwBF,EAAAG,c,CACjBH,EAAAC,YAAS,WAAxCH,EAAAA,EAAAA,IAA8D,Q,MAAxDF,MAAM,a,aAA8BQ,EAAAA,EAAAA,IAAQJ,EAASK,MAAH,K,2BACxBL,EAAAC,YAAS,WAAzCH,EAAAA,EAAAA,IAA+D,Q,MAAzDF,MAAM,c,aAA+BQ,EAAAA,EAAAA,IAAQJ,EAASK,MAAH,K,iDAG3DC,EAAAA,EAAAA,GAkBO,OAlBPC,EAkBO,EAjBLD,EAAAA,EAAAA,GAU+B,SAVxBV,OAAKM,EAAAA,EAAAA,IAAA,CAAC,SAAQ,cAESF,EAAAG,aADvBK,KAAK,QAEJC,IAAKT,EAAAK,MAAM,GACXK,IAAKV,EAAAK,MAAM,GACXM,KAAMX,EAAAW,KACNC,SAAUZ,EAAAY,SACVC,MAAOb,EAAAa,MACRhB,IAAI,QACHiB,QAAKC,EAAA,KAAAA,EAAA,IAAAC,EAAAA,EAAAA,KAAA,IAAAC,IAAOC,EAAAC,UAAAD,EAAAC,YAAAF,IAAQ,WACpBG,SAAML,EAAA,KAAAA,EAAA,IAAAC,EAAAA,EAAAA,KAAA,IAAAC,IAAOC,EAAAC,UAAAD,EAAAC,YA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A,EAAQmB,KAAKnB,MAAMA,MAGvB,OAFImB,KAAKnB,MAAMmE,OACbnE,EAAS,GAAEA,KAASmB,KAAKnB,MAAMmE,QAC1BnE,CACT,GAGFiB,QAAS,CACPmC,OAAAA,CAAQlC,GAEN,OADAA,EAAMkD,mBACC,CACT,EAEA,cAAMZ,CAAStC,GACb,GAAKA,EAAMG,OAAOrB,OAAOqE,OAAzB,CAGAlD,KAAKG,MAAM,WAAW,GACtB,UACQH,KAAKmD,QAAQ,mBAAoB,CACrCC,GAAIpD,KAAKnB,MAAMuE,GACfC,OAAQ,MACRxE,OAAQkB,EAAMG,OAAOrB,OAEzB,CAAE,QACAmB,KAAKG,MAAM,WAAW,EACxB,CAXQ,CAYV,I,UC9EJ,MAAMe,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/panels/Entities/Dimmer.vue","webpack://platypush/./src/components/panels/Entities/Dimmer.vue?5b8c"],"sourcesContent":["\n \n\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=4b38623f&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=4b38623f&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4b38623f\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n\n \n \n\n\n\n \n \n\n\n\n\n\n\n\n\n\n\n \n \n\n\n\n\n \n\n\n\n\n\n\n\n\n","import { render } from \"./Dimmer.vue?vue&type=template&id=3affff53&scoped=true\"\nimport script from \"./Dimmer.vue?vue&type=script&lang=js\"\nexport * from \"./Dimmer.vue?vue&type=script&lang=js\"\n\nimport \"./Dimmer.vue?vue&type=style&index=0&id=3affff53&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3affff53\"]])\n\nexport default __exports__"],"names":["class","ref","_createElementBlock","_hoisted_1","$props","withRange","_normalizeClass","withLabel","_toDisplayString","range","_createElementVNode","_hoisted_4","type","min","max","step","disabled","value","onInput","_cache","_withModifiers","args","$options","onUpdate","onChange","_hoisted_6","_hoisted_7","name","emits","props","Number","Boolean","default","Array","methods","event","this","update","target","$emit","$refs","sliderWidth","clientWidth","percent","innerWidth","thumb","style","left","transform","track","width","mounted","$watch","newValue","__exports__","render","collapsed","_ctx","_hoisted_2","_createVNode","_component_EntityIcon","entity","loading","error","_hoisted_3","_hoisted_5","parsedValue","onClick","$event","prevent","_hoisted_8","_hoisted_9","_component_Slider","setValue","_hoisted_10","_hoisted_12","_hoisted_13","components","Slider","EntityIcon","mixins","EntityMixin","computed","is_write_only","unit","stopPropagation","length","request","id","action"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/7590.ebe62444.js b/platypush/backend/http/webapp/dist/static/js/7590.6cda174b.js similarity index 97% rename from platypush/backend/http/webapp/dist/static/js/7590.ebe62444.js rename to platypush/backend/http/webapp/dist/static/js/7590.6cda174b.js index 8b999ffa2..5d60d4d39 100644 --- a/platypush/backend/http/webapp/dist/static/js/7590.ebe62444.js +++ b/platypush/backend/http/webapp/dist/static/js/7590.6cda174b.js @@ -1,2 +1,2 @@ "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[7590],{7590:function(e,t,n){n.r(t),n.d(t,{default:function(){return b}});var l=n(6252),a=n(3577);const o={class:"entity battery-container"},s={class:"head"},r={class:"icon"},c={class:"label"},u=["textContent"],i={class:"value-container"},v=["textContent"];function d(e,t,n,d,f,p){const C=(0,l.up)("EntityIcon");return(0,l.wg)(),(0,l.iD)("div",o,[(0,l._)("div",s,[(0,l._)("div",r,[(0,l.Wm)(C,{entity:e.value,icon:p.icon,loading:e.loading,error:e.error},null,8,["entity","icon","loading","error"])]),(0,l._)("div",c,[(0,l._)("div",{class:"name",textContent:(0,a.zw)(e.value.name)},null,8,u)]),(0,l._)("div",i,[null!=p.valuePercent?((0,l.wg)(),(0,l.iD)("span",{key:0,class:"value",textContent:(0,a.zw)(p.valuePercent+"%")},null,8,v)):(0,l.kq)("",!0)])])])}var f=n(847),p=n(4967);const C=[{iconClass:"full",color:"#157145",value:.9},{iconClass:"three-quarters",color:"#94C595",value:.825},{iconClass:"half",color:"#F0B67F",value:.625},{iconClass:"quarter",color:"#FE5F55",value:.375},{iconClass:"low",color:"#CC444B",value:.15},{iconClass:"empty",color:"#EC0B43",value:.05}];var h={name:"Battery",components:{EntityIcon:p["default"]},mixins:[f["default"]],computed:{valuePercent(){if(null==this.value?.value)return null;const e=this.value.min||0,t=this.value.max||100;return(100*this.value.value/(t-e)).toFixed(0)},icon(){const e={...this.value.meta?.icon||{}};let t=this.valuePercent,n=C[0];if(null!=t){t=parseFloat(t)/100;for(const e of C){if(t>e.value)break;n=e}}return e["class"]=`fas fa-battery-${n.iconClass}`,e["color"]=n.color,e}},methods:{prevent(e){return e.stopPropagation(),!1}}},m=n(3744);const y=(0,m.Z)(h,[["render",d],["__scopeId","data-v-4b2ced66"]]);var b=y}}]); -//# sourceMappingURL=7590.ebe62444.js.map \ No newline at end of file +//# sourceMappingURL=7590.6cda174b.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/7590.ebe62444.js.map b/platypush/backend/http/webapp/dist/static/js/7590.6cda174b.js.map similarity index 98% rename from platypush/backend/http/webapp/dist/static/js/7590.ebe62444.js.map rename to platypush/backend/http/webapp/dist/static/js/7590.6cda174b.js.map index 0df6c1a37..8caa1532e 100644 --- a/platypush/backend/http/webapp/dist/static/js/7590.ebe62444.js.map +++ b/platypush/backend/http/webapp/dist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KAAKlB,MAAMA,OAAUoB,EAAMD,IAAME,QAAQ,EAC1D,EAEApB,IAAAA,GACE,MAAMA,EAAO,IAAKiB,KAAKlB,MAAMsB,MAAMrB,MAAQ,CAAC,GAC5C,IAAID,EAAQkB,KAAKT,aACbc,EAAYb,EAAW,GAE3B,GAAa,MAATV,EAAe,CACjBA,EAAQwB,WAAWxB,GAAS,IAC5B,IAAK,MAAMyB,KAAKf,EAAY,CAC1B,GAAIV,EAAQyB,EAAEzB,MACZ,MACFuB,EAAYE,CACd,CACF,CAIA,OAFAxB,EAAK,SAAY,kBAAiBsB,EAAUZ,YAC5CV,EAAK,SAAWsB,EAAUX,MACnBX,CACT,GAGFyB,QAAS,CACPC,OAAAA,CAAQC,GAEN,OADAA,EAAMC,mBACC,CACT,I,UCvFJ,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Battery.vue","webpack://platypush/./src/components/panels/Entities/Battery.vue?1b53"],"sourcesContent":["\n\n\n\n\n\n\n\n \n \n\n\n\n \n \n\n\n\n\n\n\n\n\n\n\n \n \n\n\n\n\n \n\n\n\n\n\n\n\n\n","import { render } from \"./Battery.vue?vue&type=template&id=4b2ced66&scoped=true\"\nimport script from \"./Battery.vue?vue&type=script&lang=js\"\nexport * from \"./Battery.vue?vue&type=script&lang=js\"\n\nimport \"./Battery.vue?vue&type=style&index=0&id=4b2ced66&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4b2ced66\"]])\n\nexport default __exports__"],"names":["class","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","_createVNode","_component_EntityIcon","entity","_ctx","value","icon","$options","loading","error","_hoisted_4","_toDisplayString","name","_hoisted_6","valuePercent","thresholds","iconClass","color","components","EntityIcon","mixins","EntityMixin","computed","this","min","max","toFixed","meta","threshold","parseFloat","t","methods","prevent","event","stopPropagation","__exports__","render"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/7590.6cda174b.js","mappings":"gMACOA,MAAM,4B,GACJA,MAAM,Q,GACJA,MAAM,Q,GAINA,MAAM,S,qBAINA,MAAM,mB,2FAVfC,EAAAA,EAAAA,IAcM,MAdNC,EAcM,EAbJC,EAAAA,EAAAA,GAYM,MAZNC,EAYM,EAXJD,EAAAA,EAAAA,GAEM,MAFNE,EAEM,EADJC,EAAAA,EAAAA,IAA6EC,EAAA,CAAhEC,OAAQC,EAAAC,MAAQC,KAAMC,EAAAD,KAAOE,QAASJ,EAAAI,QAAUC,MAAOL,EAAAK,O,+CAGtEX,EAAAA,EAAAA,GAEM,MAFNY,EAEM,EADJZ,EAAAA,EAAAA,GAAwC,OAAnCH,MAAM,O,aAAOgB,EAAAA,EAAAA,IAAQP,EAAWC,MAALO,O,aAGlCd,EAAAA,EAAAA,GAEM,MAFNe,EAEM,CADkE,MAAhBN,EAAAO,eAAY,WAAlElB,EAAAA,EAAAA,IAA8E,Q,MAAxED,MAAM,Q,aAAQgB,EAAAA,EAAAA,IAAQJ,EAAmBO,aAAJ,M,wDAUnD,MAAMC,EAAa,CACjB,CACEC,UAAW,OACXC,MAAO,UACPZ,MAAO,IAET,CACEW,UAAW,iBACXC,MAAO,UACPZ,MAAO,MAET,CACEW,UAAW,OACXC,MAAO,UACPZ,MAAO,MAET,CACEW,UAAW,UACXC,MAAO,UACPZ,MAAO,MAET,CACEW,UAAW,MACXC,MAAO,UACPZ,MAAO,KAET,CACEW,UAAW,QACXC,MAAO,UACPZ,MAAO,MAIX,OACEO,KAAM,UACNM,WAAY,CAACC,WAAUA,EAAAA,YACvBC,OAAQ,CAACC,EAAAA,YAETC,SAAU,CACRR,YAAAA,GACE,GAAyB,MAArBS,KAAKlB,OAAOA,MACd,OAAO,KAET,MAAMmB,EAAMD,KAAKlB,MAAMmB,KAAO,EACxBC,EAAMF,KAAKlB,MAAMoB,KAAO,IAC9B,OAAS,IAAMF,KAAKlB,MAAMA,OAAUoB,EAAMD,IAAME,QAAQ,EAC1D,EAEApB,IAAAA,GACE,MAAMA,EAAO,IAAKiB,KAAKlB,MAAMsB,MAAMrB,MAAQ,CAAC,GAC5C,IAAID,EAAQkB,KAAKT,aACbc,EAAYb,EAAW,GAE3B,GAAa,MAATV,EAAe,CACjBA,EAAQwB,WAAWxB,GAAS,IAC5B,IAAK,MAAMyB,KAAKf,EAAY,CAC1B,GAAIV,EAAQyB,EAAEzB,MACZ,MACFuB,EAAYE,CACd,CACF,CAIA,OAFAxB,EAAK,SAAY,kBAAiBsB,EAAUZ,YAC5CV,EAAK,SAAWsB,EAAUX,MACnBX,CACT,GAGFyB,QAAS,CACPC,OAAAA,CAAQC,GAEN,OADAA,EAAMC,mBACC,CACT,I,UCvFJ,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Battery.vue","webpack://platypush/./src/components/panels/Entities/Battery.vue?1b53"],"sourcesContent":["\n\n\n\n\n\n\n \n \n\n\n\n \n\n\n\n\n\n\n\n\n","import { render } from \"./Battery.vue?vue&type=template&id=4b2ced66&scoped=true\"\nimport script from \"./Battery.vue?vue&type=script&lang=js\"\nexport * from \"./Battery.vue?vue&type=script&lang=js\"\n\nimport \"./Battery.vue?vue&type=style&index=0&id=4b2ced66&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4b2ced66\"]])\n\nexport default __exports__"],"names":["class","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","_createVNode","_component_EntityIcon","entity","_ctx","value","icon","$options","loading","error","_hoisted_4","_toDisplayString","name","_hoisted_6","valuePercent","thresholds","iconClass","color","components","EntityIcon","mixins","EntityMixin","computed","this","min","max","toFixed","meta","threshold","parseFloat","t","methods","prevent","event","stopPropagation","__exports__","render"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/7880.ceb6e400.js b/platypush/backend/http/webapp/dist/static/js/7880.6583990d.js similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/7880.ceb6e400.js rename to platypush/backend/http/webapp/dist/static/js/7880.6583990d.js index 7797335fe..e3226ebec 100644 --- a/platypush/backend/http/webapp/dist/static/js/7880.ceb6e400.js +++ b/platypush/backend/http/webapp/dist/static/js/7880.6583990d.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[7880],{4358:function(e,t,n){n.d(t,{Z:function(){return g}});var a=n(6252),s=n(3577),l=n(9963);const i={class:"slider-wrapper"},o=["textContent"],d=["textContent"],c={class:"slider-container"},r=["min","max","step","disabled","value"],u={class:"track-inner",ref:"track"},m={class:"thumb",ref:"thumb"},v=["textContent"];function h(e,t,n,h,_,p){return(0,a.wg)(),(0,a.iD)("label",i,[n.withRange?((0,a.wg)(),(0,a.iD)("span",{key:0,class:(0,s.C_)(["range-labels",{"with-label":n.withLabel}])},[n.withRange?((0,a.wg)(),(0,a.iD)("span",{key:0,class:"label left",textContent:(0,s.zw)(n.range[0])},null,8,o)):(0,a.kq)("",!0),n.withRange?((0,a.wg)(),(0,a.iD)("span",{key:1,class:"label right",textContent:(0,s.zw)(n.range[1])},null,8,d)):(0,a.kq)("",!0)],2)):(0,a.kq)("",!0),(0,a._)("span",c,[(0,a._)("input",{class:(0,s.C_)(["slider",{"with-label":n.withLabel}]),type:"range",min:n.range[0],max:n.range[1],step:n.step,disabled:n.disabled,value:n.value,ref:"range",onInput:t[0]||(t[0]=(0,l.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onChange:t[1]||(t[1]=(0,l.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"]))},null,42,r),(0,a._)("div",{class:(0,s.C_)(["track",{"with-label":n.withLabel}])},[(0,a._)("div",u,null,512)],2),(0,a._)("div",m,null,512),n.withLabel?((0,a.wg)(),(0,a.iD)("span",{key:0,class:"label",textContent:(0,s.zw)(n.value),ref:"label"},null,8,v)):(0,a.kq)("",!0)])])}var _={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1},withRange:{type:Boolean,default:!1}},methods:{onUpdate(e){this.update(e.target.value),this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.range.value}})},update(e){const t=this.$refs.range.clientWidth,n=(e-this.range[0])/(this.range[1]-this.range[0]),a=n*t,s=this.$refs.thumb;s.style.left=a-s.clientWidth/2+"px",this.$refs.thumb.style.transform=`translate(-${n}%, -50%)`,this.$refs.track.style.width=`${a}px`}},mounted(){null!=this.value&&this.update(this.value),this.$watch((()=>this.value),(e=>this.update(e)))}},p=n(3744);const w=(0,p.Z)(_,[["render",h],["__scopeId","data-v-4b38623f"]]);var g=w},3405:function(e,t,n){n.d(t,{Z:function(){return h}});var a=n(6252),s=n(3577),l=n(9963);const i=e=>((0,a.dD)("data-v-a6396ae8"),e=e(),(0,a.Cn)(),e),o=["checked"],d=i((()=>(0,a._)("div",{class:"switch"},[(0,a._)("div",{class:"dot"})],-1))),c={class:"label"};function r(e,t,n,i,r,u){return(0,a.wg)(),(0,a.iD)("div",{class:(0,s.C_)(["power-switch",{disabled:n.disabled}]),onClick:t[0]||(t[0]=(0,l.iM)(((...e)=>u.onInput&&u.onInput(...e)),["stop"]))},[(0,a._)("input",{type:"checkbox",checked:n.value},null,8,o),(0,a._)("label",null,[d,(0,a._)("span",c,[(0,a.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var u={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},m=n(3744);const v=(0,m.Z)(u,[["render",r],["__scopeId","data-v-a6396ae8"]]);var h=v},7880:function(e,t,n){n.d(t,{Z:function(){return Hs}});var a=n(6252),s=n(3577),l=n(9963);const i={class:"zwave-container"},o={class:"network-info"},d={key:1,class:"params"},c={class:"row"},r=(0,a._)("div",{class:"param-name"},"State",-1),u=["textContent"],m={class:"row"},v=(0,a._)("div",{class:"param-name"},"Device",-1),h=["textContent"],_={class:"section"},p=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Statistics")],-1),w={class:"body"},g=["textContent"],y=["textContent"],f={class:"group-add"},k={class:"params"},b={class:"section"},C=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Select nodes to add")],-1),x={key:0,class:"body"},R=["onClick"],z=["textContent"],N={class:"node-add"},D={class:"body"},q=(0,a._)("div",{class:"fields"},[(0,a._)("input",{type:"text",name:"name",placeholder:"Node name"}),(0,a._)("input",{type:"text",name:"location",placeholder:"Node location (optional)"}),(0,a._)("input",{type:"number",name:"timeout",value:"30",placeholder:"Timeout (in seconds)"})],-1),S={class:"buttons"},I=["disabled"],M={class:"view-options"},j={class:"view-selector col-s-6 col-m-8 col-l-9"},A=["textContent","selected","value"],V={class:"buttons col-s-6 col-m-4 col-l-3"},O=(0,a._)("i",{class:"fa fa-plus"},null,-1),Z=[O],$=(0,a._)("i",{class:"fa fa-sync-alt"},null,-1),T=[$],W={class:"view-container"},E={key:0,class:"view nodes"},F={key:1,class:"no-items"},L=(0,a._)("div",{class:"empty"},"No nodes available on the network",-1),U=[L],H={key:1,class:"view groups"},G={key:1,class:"no-items"},K=(0,a._)("div",{class:"empty"},"No groups available on the network",-1),B=[K],Y={key:2,class:"view scenes"},P={key:1,class:"no-items"},J=(0,a._)("div",{class:"empty"},"No scenes configured on the network",-1),Q=[J],X=["textContent","onClick"],ee={key:0,class:"params"},te={class:"row"},ne=(0,a._)("div",{class:"param-name"},"Scene ID",-1),ae=["textContent"],se={class:"row"},le=(0,a._)("div",{class:"param-name"},"Activate",-1),ie={class:"param-value"},oe={key:0,class:"section values"},de=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Values")],-1),ce={class:"body"},re={class:"param-name"},ue={class:"param-value"},me=["textContent"],ve={class:"buttons"},he=["onClick"],_e=(0,a._)("i",{class:"fa fa-trash"},null,-1),pe=[_e],we={class:"section actions"},ge=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Actions")],-1),ye={class:"body"},fe=["onClick"],ke=(0,a._)("div",{class:"param-name"},"Remove Scene",-1),be=(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1),Ce=[ke,be],xe=["onClick"],Re=(0,a._)("div",{class:"param-name"},"Rename Scene",-1),ze=(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-edit"})],-1),Ne=[Re,ze],De={key:3,class:"view values"},qe={key:1,class:"no-items"},Se=(0,a._)("div",{class:"empty"},"No nodes found on the network",-1),Ie=[Se],Me=["textContent","onClick"],je={key:0,class:"params"},Ae={key:0,class:"value-display"};function Ve(e,t,n,O,$,L){const K=(0,a.up)("Loading"),J=(0,a.up)("Modal"),_e=(0,a.up)("Alert"),ke=(0,a.up)("DropdownItem"),be=(0,a.up)("Dropdown"),Re=(0,a.up)("Node"),ze=(0,a.up)("Group"),Se=(0,a.up)("ToggleSwitch"),Ve=(0,a.up)("Value");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a.Wm)(J,{title:"Network info",ref:"networkInfoModal"},{default:(0,a.w5)((()=>[(0,a._)("div",o,[$.loading.status?((0,a.wg)(),(0,a.j4)(K,{key:0})):((0,a.wg)(),(0,a.iD)("div",d,[(0,a._)("div",c,[r,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)($.status.state)},null,8,u)]),(0,a._)("div",m,[v,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)($.status.device)},null,8,h)]),(0,a._)("div",_,[p,(0,a._)("div",w,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)($.status.stats,((e,t)=>((0,a.wg)(),(0,a.iD)("div",{class:"row",key:t},[(0,a._)("div",{class:"param-name",textContent:(0,s.zw)(t)},null,8,g),(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(e)},null,8,y)])))),128))])])]))])])),_:1},512),(0,a.Wm)(J,{title:"Add nodes to group",ref:"addNodesToGroupModal"},{default:(0,a.w5)((()=>[(0,a._)("div",f,[(0,a._)("div",k,[(0,a._)("div",b,[C,null!=$.selected.groupId?((0,a.wg)(),(0,a.iD)("div",x,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Object.values($.nodes||{}).filter((e=>$.groups[$.selected.groupId].associations.indexOf(e.node_id)<0)),(e=>((0,a.wg)(),(0,a.iD)("div",{class:"row clickable",onClick:t=>L.addToGroup(e.node_id,$.selected.groupId),key:e.node_id},[(0,a._)("div",{class:"param-name",textContent:(0,s.zw)(e.name)},null,8,z)],8,R)))),128))])):(0,a.kq)("",!0)])])])])),_:1},512),(0,a.Wm)(_e,{title:"",ref:"noNodeNameModal"},{default:(0,a.w5)((()=>[(0,a.Uk)(" No node name specified ")])),_:1},512),(0,a.Wm)(J,{title:"Add new node",ref:"addNodeModal"},{default:(0,a.w5)((()=>[(0,a._)("div",N,[(0,a._)("div",D,[(0,a._)("form",{class:"add-node-form",ref:"addNodeForm",onSubmit:t[1]||(t[1]=(0,l.iM)((e=>L.addNode()),["prevent"]))},[q,(0,a._)("div",S,[(0,a._)("input",{type:"submit",class:"btn btn-primary",value:"OK",disabled:$.commandRunning},null,8,I),(0,a._)("button",{class:"btn btn-default",onClick:t[0]||(t[0]=(0,l.iM)((e=>L.closeAddNodeModal()),["prevent"]))}," Cancel ")])],544)])])])),_:1},512),(0,a._)("div",M,[(0,a._)("div",j,[(0,a._)("label",null,[(0,a._)("select",{onChange:t[2]||(t[2]=e=>$.selected.view=e.target.value)},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)($.views,((e,t)=>((0,a.wg)(),(0,a.iD)("option",{key:e,textContent:(0,s.zw)((t[0].toUpperCase()+t.slice(1)).replace("_"," ")),selected:t===$.selected.view,value:t},null,8,A)))),128))],32)])]),(0,a._)("div",V,["scenes"===$.selected.view?((0,a.wg)(),(0,a.iD)("button",{key:0,class:"btn btn-default",title:"Create Scene",onClick:t[3]||(t[3]=(...e)=>L.addScene&&L.addScene(...e))},Z)):(0,a.kq)("",!0),(0,a.Wm)(be,{title:"Network commands","icon-class":"fa fa-cog"},{default:(0,a.w5)((()=>[(0,a.Wm)(ke,{text:"Network Info",disabled:$.commandRunning,onClick:L.networkInfoModalOpen},null,8,["disabled","onClick"]),(0,a.Wm)(ke,{text:"Start Network",disabled:$.commandRunning,onClick:L.startNetwork},null,8,["disabled","onClick"]),(0,a.Wm)(ke,{text:"Stop Network",disabled:$.commandRunning,onClick:L.stopNetwork},null,8,["disabled","onClick"]),"nodes"===$.selected.view?((0,a.wg)(),(0,a.j4)(ke,{key:0,text:"Add Node",disabled:$.commandRunning,onClick:t[4]||(t[4]=e=>L.openAddNodeModal())},null,8,["disabled"])):(0,a.kq)("",!0),"nodes"===$.selected.view?((0,a.wg)(),(0,a.j4)(ke,{key:1,text:"Remove Node",disabled:$.commandRunning,onClick:L.removeNode},null,8,["disabled","onClick"])):(0,a.kq)("",!0),(0,a.Wm)(ke,{text:"Switch All On",disabled:$.commandRunning,onClick:t[5]||(t[5]=e=>L.switchAll(!0))},null,8,["disabled"]),(0,a.Wm)(ke,{text:"Switch All Off",disabled:$.commandRunning,onClick:t[6]||(t[6]=e=>L.switchAll(!1))},null,8,["disabled"]),(0,a.Wm)(ke,{text:"Cancel Command",disabled:$.commandRunning,onClick:L.cancelCommand},null,8,["disabled","onClick"]),(0,a.Wm)(ke,{text:"Kill Command",disabled:$.commandRunning,onClick:L.killCommand},null,8,["disabled","onClick"]),(0,a.Wm)(ke,{text:"Receive Configuration",disabled:$.commandRunning,onClick:L.receiveConfiguration},null,8,["disabled","onClick"]),(0,a.Wm)(ke,{text:"Create New Primary",disabled:$.commandRunning,onClick:L.createNewPrimary},null,8,["disabled","onClick"]),(0,a.Wm)(ke,{text:"Transfer Primary Role",disabled:$.commandRunning,onClick:L.transferPrimaryRole},null,8,["disabled","onClick"]),(0,a.Wm)(ke,{text:"Heal Network",disabled:$.commandRunning,onClick:L.healNetwork},null,8,["disabled","onClick"]),(0,a.Wm)(ke,{text:"Soft Reset",disabled:$.commandRunning,onClick:L.softReset},null,8,["disabled","onClick"]),(0,a.Wm)(ke,{text:"Hard Reset",disabled:$.commandRunning,onClick:L.hardReset},null,8,["disabled","onClick"])])),_:1}),(0,a._)("button",{class:"btn btn-default",title:"Refresh Network",onClick:t[7]||(t[7]=(...e)=>L.refresh&&L.refresh(...e))},T)])]),(0,a._)("div",W,["nodes"===$.selected.view?((0,a.wg)(),(0,a.iD)("div",E,[$.loading.nodes?((0,a.wg)(),(0,a.j4)(K,{key:0})):Object.keys($.nodes||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",F,U)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)($.nodes,((t,n)=>((0,a.wg)(),(0,a.j4)(Re,{key:n,node:t,selected:$.selected.nodeId===n,"plugin-name":e.pluginName,onSelect:e=>L.onNodeClick(n)},null,8,["node","selected","plugin-name","onSelect"])))),128))])):"groups"===$.selected.view?((0,a.wg)(),(0,a.iD)("div",H,[$.loading.groups?((0,a.wg)(),(0,a.j4)(K,{key:0})):Object.keys($.groups||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",G,B)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)($.groups,((n,s)=>((0,a.wg)(),(0,a.j4)(ze,{key:s,group:n,selected:$.selected.groupId===s,nodes:s in $.groups?$.groups[s].associations.map((e=>$.nodes[e])).reduce(((e,t)=>(e[t.node_id]=t,e)),{}):{},owner:null!=n.node_id?$.nodes[n.node_id]:null,"plugin-name":e.pluginName,onSelect:e=>$.selected.groupId=s===$.selected.groupId?void 0:s,onOpenAddNodesToGroup:t[8]||(t[8]=t=>e.$refs.addNodesToGroupModal.show())},null,8,["group","selected","nodes","owner","plugin-name","onSelect"])))),128))])):"scenes"===$.selected.view?((0,a.wg)(),(0,a.iD)("div",Y,[$.loading.scenes?((0,a.wg)(),(0,a.j4)(K,{key:0})):Object.keys($.scenes||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",P,Q)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)($.scenes,((e,t)=>((0,a.wg)(),(0,a.iD)("div",{class:(0,s.C_)(["item scene",{selected:$.selected.sceneId===t}]),key:t},[(0,a._)("div",{class:(0,s.C_)(["row name header vertical-center",{selected:$.selected.sceneId===t}]),textContent:(0,s.zw)(e.label),onClick:e=>$.selected.sceneId=t===$.selected.sceneId?void 0:t},null,10,X),$.selected.sceneId===t?((0,a.wg)(),(0,a.iD)("div",ee,[(0,a._)("div",te,[ne,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t)},null,8,ae)]),(0,a._)("div",se,[le,(0,a._)("div",ie,[(0,a.Wm)(Se,{value:!1,onInput:e=>L.activateScene(t)},null,8,["onInput"])])]),Object.values(e?.values)?.length?((0,a.wg)(),(0,a.iD)("div",oe,[de,(0,a._)("div",ce,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Object.values(e.values),(e=>((0,a.wg)(),(0,a.iD)("div",{class:"row",key:e.id_on_network},[(0,a._)("div",re,(0,s.zw)($.nodes[e.node_id].name)+" ⇨ "+(0,s.zw)(L.valuesMap[e.id_on_network].label),1),(0,a._)("div",ue,[(0,a._)("span",{textContent:(0,s.zw)(e.data)},null,8,me),(0,a._)("span",ve,[(0,a._)("button",{class:"btn btn-default",title:"Remove value",onClick:n=>L.removeValueFromScene({sceneId:t,valueId:e.id_on_network})},pe,8,he)])])])))),128))])])):(0,a.kq)("",!0),(0,a._)("div",we,[ge,(0,a._)("div",ye,[(0,a._)("div",{class:"row",onClick:e=>L.removeScene(t)},Ce,8,fe),(0,a._)("div",{class:"row",onClick:e=>L.renameScene(t)},Ne,8,xe)])])])):(0,a.kq)("",!0)],2)))),128))])):((0,a.wg)(),(0,a.iD)("div",De,[$.loading.nodes?((0,a.wg)(),(0,a.j4)(K,{key:0})):Object.keys($.nodes||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",qe,Ie)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)($.nodes,((t,n)=>((0,a.wg)(),(0,a.iD)("div",{class:"node-container",key:n},["values"===$.selected.view||Object.values(t.values).filter((e=>e.id_on_network in $.values[$.selected.view])).length>0?((0,a.wg)(),(0,a.iD)("div",{key:0,class:(0,s.C_)(["item node",{selected:$.selected.nodeId===n}])},[(0,a._)("div",{class:(0,s.C_)(["row name header vertical-center",{selected:$.selected.nodeId===n}]),textContent:(0,s.zw)(t.name),onClick:e=>L.onNodeClick(n)},null,10,Me),$.selected.nodeId===n?((0,a.wg)(),(0,a.iD)("div",je,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(t.values,((n,s)=>((0,a.wg)(),(0,a.iD)("div",{class:"value-container",key:s},[n.id_on_network&&("values"===$.selected.view||n.id_on_network in $.values[$.selected.view])?((0,a.wg)(),(0,a.iD)("div",Ae,[(0,a.Wm)(Ve,{value:n,node:t,scenes:$.scenes,onAddToScene:L.addValueToScene,onRemoveFromScene:L.removeValueFromScene,onRefresh:L.refreshNodes,"plugin-name":e.pluginName},null,8,["value","node","scenes","onAddToScene","onRemoveFromScene","onRefresh","plugin-name"])])):(0,a.kq)("",!0)])))),128))])):(0,a.kq)("",!0)],2)):(0,a.kq)("",!0)])))),128))]))])])}const Oe=e=>((0,a.dD)("data-v-56458f8e"),e=e(),(0,a.Cn)(),e),Ze=["textContent"],$e={key:0,class:"params"},Te={key:0,class:"section owner"},We=Oe((()=>(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Owner")],-1))),Ee={class:"body"},Fe=["textContent"],Le={class:"section nodes"},Ue={class:"header"},He=Oe((()=>(0,a._)("div",{class:"title col-10"},"Nodes",-1))),Ge={class:"buttons col-2"},Ke=Oe((()=>(0,a._)("i",{class:"fa fa-plus"},null,-1))),Be=[Ke],Ye={class:"body"},Pe=["textContent"],Je={class:"buttons col-2"},Qe=["disabled","onClick"],Xe=Oe((()=>(0,a._)("i",{class:"fa fa-trash"},null,-1))),et=[Xe],tt={class:"section config"},nt=Oe((()=>(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Parameters")],-1))),at={class:"body"},st={class:"row"},lt=Oe((()=>(0,a._)("div",{class:"param-name"},"Index",-1))),it=["textContent"],ot={class:"row"},dt=Oe((()=>(0,a._)("div",{class:"param-name"},"Max associations",-1))),ct=["textContent"];function rt(e,t,n,l,i,o){return(0,a.wg)(),(0,a.iD)("div",{class:(0,s.C_)(["item group",{selected:n.selected}])},[(0,a._)("div",{class:(0,s.C_)(["row name header vertical-center",{selected:n.selected}]),textContent:(0,s.zw)(n.group.label),onClick:t[0]||(t[0]=t=>e.$emit("select",n.group.index))},null,10,Ze),n.selected?((0,a.wg)(),(0,a.iD)("div",$e,[n.owner&&Object.keys(n.owner).length?((0,a.wg)(),(0,a.iD)("div",Te,[We,(0,a._)("div",Ee,[(0,a._)("div",{class:"row",textContent:(0,s.zw)(n.owner.name)},null,8,Fe)])])):(0,a.kq)("",!0),(0,a._)("div",Le,[(0,a._)("div",Ue,[He,(0,a._)("div",Ge,[!n.group.max_associations||Object.keys(n.nodes||{}).length\n\n\n\n\n\n \n \n\n\n\n \n\ne.$emit("open-add-nodes-to-group",n.group.index))},Be)):(0,a.kq)("",!0)])]),(0,a._)("div",Ye,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.nodes,((e,t)=>((0,a.wg)(),(0,a.iD)("div",{class:"row",key:t},[(0,a._)("div",{class:"col-10",textContent:(0,s.zw)(e.name?.length?e.name:` `)},null,8,Pe),(0,a._)("div",Je,[(0,a._)("button",{class:"btn btn-default",title:"Remove from group",disabled:i.commandRunning,onClick:t=>o.removeFromGroup(e.node_id)},et,8,Qe)])])))),128))])]),(0,a._)("div",tt,[nt,(0,a._)("div",at,[(0,a._)("div",st,[lt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.group.index)},null,8,it)]),(0,a._)("div",ot,[dt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.group.max_associations)},null,8,ct)])])])])):(0,a.kq)("",!0)],2)}var ut=n(5576),mt={mixins:[ut.Z],props:{pluginName:{type:String,required:!0}},methods:{async zrequest(e,t){return await this.request(`${this.pluginName}.${e}`,t)}}},vt={name:"Group",emits:["select","open-add-nodes-to-group"],mixins:[mt],props:{group:{type:Object,required:!0},owner:{type:Object},nodes:{type:Object,default:()=>({})},selected:{type:Boolean,default:!1}},data(){return{commandRunning:!1}},methods:{async removeFromGroup(e){if(!confirm("Are you sure that you want to remove this node from "+this.group.label+"?"))return;this.commandRunning=!0;const t={node_id:e};null!=this.group.group_id?t.group_id=this.group.group_id:t.group_index=this.group.index;try{await this.zrequest("remove_node_from_group",t)}finally{this.commandRunning=!1}}}},ht=n(3744);const _t=(0,ht.Z)(vt,[["render",rt],["__scopeId","data-v-56458f8e"]]);var pt=_t;const wt=e=>((0,a.dD)("data-v-3da196a6"),e=e(),(0,a.Cn)(),e),gt=["textContent"],yt={key:0,class:"params"},ft={class:"row"},kt=wt((()=>(0,a._)("div",{class:"param-name"},"Name",-1))),bt={class:"param-value"},Ct=["value","disabled"],xt={class:"buttons"},Rt=wt((()=>(0,a._)("i",{class:"fas fa-times"},null,-1))),zt=[Rt],Nt=["disabled"],Dt=wt((()=>(0,a._)("i",{class:"fa fa-check"},null,-1))),qt=[Dt],St=["textContent"],It={class:"buttons"},Mt=["disabled"],jt=wt((()=>(0,a._)("i",{class:"fa fa-edit"},null,-1))),At=[jt],Vt={class:"row"},Ot=wt((()=>(0,a._)("div",{class:"param-name"},"Location",-1))),Zt={class:"param-value"},$t=["value","disabled"],Tt={class:"buttons"},Wt=wt((()=>(0,a._)("i",{class:"fas fa-times"},null,-1))),Et=[Wt],Ft=["disabled"],Lt=wt((()=>(0,a._)("i",{class:"fa fa-check"},null,-1))),Ut=[Lt],Ht=["textContent"],Gt={class:"buttons"},Kt=["disabled"],Bt=wt((()=>(0,a._)("i",{class:"fa fa-edit"},null,-1))),Yt=[Bt],Pt={class:"row"},Jt=wt((()=>(0,a._)("div",{class:"param-name"},"Type",-1))),Qt=["textContent"],Xt={class:"row"},en=wt((()=>(0,a._)("div",{class:"param-name"},"Role",-1))),tn=["textContent"],nn={class:"row"},an=wt((()=>(0,a._)("div",{class:"param-name"},"Node ID",-1))),sn=["textContent"],ln={key:0,class:"row"},on=wt((()=>(0,a._)("div",{class:"param-name"},"Neighbours",-1))),dn={class:"param-value"},cn=["textContent"],rn={class:"row"},un=wt((()=>(0,a._)("div",{class:"param-name"},"Is Ready",-1))),mn=["textContent"],vn={class:"row"},hn=wt((()=>(0,a._)("div",{class:"param-name"},"Is Failed",-1))),_n=["textContent"],pn={class:"row"},wn=wt((()=>(0,a._)("div",{class:"param-name"},"Product ID",-1))),gn=["textContent"],yn={class:"row"},fn=wt((()=>(0,a._)("div",{class:"param-name"},"Product Type",-1))),kn=["textContent"],bn={key:1,class:"row"},Cn=wt((()=>(0,a._)("div",{class:"param-name"},"Product Name",-1))),xn=["textContent"],Rn={class:"row"},zn=wt((()=>(0,a._)("div",{class:"param-name"},"Manufacturer ID",-1))),Nn=["textContent"],Dn={key:2,class:"row"},qn=wt((()=>(0,a._)("div",{class:"param-name"},"Manufacturer Name",-1))),Sn=["textContent"],In={class:"row"},Mn=wt((()=>(0,a._)("div",{class:"param-name"},"Capabilities",-1))),jn=["textContent"],An={class:"row"},Vn=wt((()=>(0,a._)("div",{class:"param-name"},"Command Classes",-1))),On=["textContent"],Zn={class:"row"},$n=wt((()=>(0,a._)("div",{class:"param-name"},"Groups",-1))),Tn=["textContent"],Wn={key:3,class:"row"},En=wt((()=>(0,a._)("div",{class:"param-name"},"Home ID",-1))),Fn=["textContent"],Ln={class:"row"},Un=wt((()=>(0,a._)("div",{class:"param-name"},"Is Awake",-1))),Hn=["textContent"],Gn={key:4,class:"row"},Kn=wt((()=>(0,a._)("div",{class:"param-name"},"Is Locked",-1))),Bn=["textContent"],Yn={key:5,class:"row"},Pn=wt((()=>(0,a._)("div",{class:"param-name"},"Last Update",-1))),Jn=["textContent"],Qn={key:6,class:"row"},Xn=wt((()=>(0,a._)("div",{class:"param-name"},"Baud Rate",-1))),ea=["textContent"],ta={key:7,class:"row"},na=wt((()=>(0,a._)("div",{class:"param-name"},"Max Baud Rate",-1))),aa=["textContent"],sa={class:"section actions"},la=wt((()=>(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Actions")],-1))),ia={class:"body"},oa=wt((()=>(0,a._)("div",{class:"param-name"},"Remove Failed Node",-1))),da=wt((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1))),ca=[oa,da],ra=wt((()=>(0,a._)("div",{class:"param-name"},"Replace Failed Node",-1))),ua=wt((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-sync-alt"})],-1))),ma=[ra,ua],va=wt((()=>(0,a._)("div",{class:"param-name"},"Heal Node",-1))),ha=wt((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fas fa-wrench"})],-1))),_a=[va,ha],pa=wt((()=>(0,a._)("div",{class:"param-name"},"Replicate info to secondary controller",-1))),wa=wt((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-clone"})],-1))),ga=[pa,wa],ya=wt((()=>(0,a._)("div",{class:"param-name"},"Request network update",-1))),fa=wt((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fas fa-wifi"})],-1))),ka=[ya,fa],ba=wt((()=>(0,a._)("div",{class:"param-name"},"Request neighbours update",-1))),Ca=wt((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fas fa-network-wired"})],-1))),xa=[ba,Ca];function Ra(e,t,n,i,o,d){return(0,a.wg)(),(0,a.iD)("div",{class:(0,s.C_)(["item node",{selected:n.selected}])},[(0,a._)("div",{class:(0,s.C_)(["row name header vertical-center",{selected:n.selected}]),textContent:(0,s.zw)(n.node.name&&n.node.name.length?n.node.name:` `),onClick:t[0]||(t[0]=t=>e.$emit("select"))},null,10,gt),n.selected?((0,a.wg)(),(0,a.iD)("div",yt,[(0,a._)("div",ft,[kt,(0,a._)("div",bt,[(0,a._)("div",{class:(0,s.C_)(["edit-cell",{hidden:!o.editMode.name}])},[(0,a._)("form",{ref:"nameForm",onSubmit:t[2]||(t[2]=(0,l.iM)(((...e)=>d.editName&&d.editName(...e)),["prevent"]))},[(0,a._)("label",null,[(0,a._)("input",{type:"text",name:"name",value:n.node.name,disabled:o.commandRunning},null,8,Ct)]),(0,a._)("span",xt,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:t[1]||(t[1]=e=>o.editMode.name=!1)},zt),(0,a._)("button",{type:"submit",class:"btn btn-default",disabled:o.commandRunning},qt,8,Nt)])],544)],2),(0,a._)("div",{class:(0,s.C_)({hidden:o.editMode.name})},[(0,a._)("span",{textContent:(0,s.zw)(n.node.name?.length?n.node.name:` `)},null,8,St),(0,a._)("span",It,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:t[3]||(t[3]=e=>d.onEditMode("name")),disabled:o.commandRunning},At,8,Mt)])],2)])]),(0,a._)("div",Vt,[Ot,(0,a._)("div",Zt,[(0,a._)("div",{class:(0,s.C_)(["edit-cell",{hidden:!o.editMode.location}])},[(0,a._)("form",{ref:"locationForm",onSubmit:t[5]||(t[5]=(0,l.iM)(((...e)=>d.editLocation&&d.editLocation(...e)),["prevent"]))},[(0,a._)("label",null,[(0,a._)("input",{type:"text",name:"location",value:n.node.location,disabled:o.commandRunning},null,8,$t)]),(0,a._)("span",Tt,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:t[4]||(t[4]=e=>o.editMode.location=!1)},Et),(0,a._)("button",{type:"submit",class:"btn btn-default",disabled:o.commandRunning},Ut,8,Ft)])],544)],2),(0,a._)("div",{class:(0,s.C_)({hidden:o.editMode.location})},[(0,a._)("span",{textContent:(0,s.zw)(n.node.location?.length?n.node.location:"")},null,8,Ht),(0,a._)("span",Gt,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:t[6]||(t[6]=e=>d.onEditMode("location")),disabled:o.commandRunning},Yt,8,Kt)])],2)])]),(0,a._)("div",Pt,[Jt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.type)},null,8,Qt)]),(0,a._)("div",Xt,[en,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.role)},null,8,tn)]),(0,a._)("div",nn,[an,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.node_id)},null,8,sn)]),n.node.neighbours.length?((0,a.wg)(),(0,a.iD)("div",ln,[on,(0,a._)("div",dn,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.node.neighbours,((e,t)=>((0,a.wg)(),(0,a.iD)("div",{class:"row pull-right",key:t,textContent:(0,s.zw)(e)},null,8,cn)))),128))])])):(0,a.kq)("",!0),(0,a._)("div",rn,[un,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.is_ready)},null,8,mn)]),(0,a._)("div",vn,[hn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.is_failed)},null,8,_n)]),(0,a._)("div",pn,[wn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.manufacturer_id)},null,8,gn)]),(0,a._)("div",yn,[fn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.product_type)},null,8,kn)]),n.node.product_name?.length?((0,a.wg)(),(0,a.iD)("div",bn,[Cn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.product_name)},null,8,xn)])):(0,a.kq)("",!0),(0,a._)("div",Rn,[zn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.manufacturer_id)},null,8,Nn)]),n.node.manufacturer_name?.length?((0,a.wg)(),(0,a.iD)("div",Dn,[qn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.manufacturer_name)},null,8,Sn)])):(0,a.kq)("",!0),(0,a._)("div",In,[Mn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.capabilities.join(", "))},null,8,jn)]),(0,a._)("div",An,[Vn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.command_classes.join(", "))},null,8,On)]),(0,a._)("div",Zn,[$n,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(Object.values(n.node.groups).map((e=>e.label||"")).join(", "))},null,8,Tn)]),n.node.home_id?((0,a.wg)(),(0,a.iD)("div",Wn,[En,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.home_id.toString(16))},null,8,Fn)])):(0,a.kq)("",!0),(0,a._)("div",Ln,[Un,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.is_awake)},null,8,Hn)]),null!=n.node.is_locked?((0,a.wg)(),(0,a.iD)("div",Gn,[Kn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.is_locked)},null,8,Bn)])):(0,a.kq)("",!0),n.node.last_update?((0,a.wg)(),(0,a.iD)("div",Yn,[Pn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(e.formatDateTime(n.node.last_update))},null,8,Jn)])):(0,a.kq)("",!0),n.node.baud_rate?((0,a.wg)(),(0,a.iD)("div",Qn,[Xn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.baud_rate)},null,8,ea)])):(0,a.kq)("",!0),n.node.max_baud_rate?((0,a.wg)(),(0,a.iD)("div",ta,[na,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.max_baud_rate)},null,8,aa)])):(0,a.kq)("",!0),(0,a._)("div",sa,[la,(0,a._)("div",ia,[n.node.is_failed?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"row error",onClick:t[7]||(t[7]=(...e)=>d.removeFailedNode&&d.removeFailedNode(...e))},ca)):(0,a.kq)("",!0),n.node.is_failed?((0,a.wg)(),(0,a.iD)("div",{key:1,class:"row error",onClick:t[8]||(t[8]=(...e)=>d.replaceFailedNode&&d.replaceFailedNode(...e))},ma)):(0,a.kq)("",!0),(0,a._)("div",{class:"row",onClick:t[9]||(t[9]=(...e)=>d.heal&&d.heal(...e))},_a),(0,a._)("div",{class:"row",onClick:t[10]||(t[10]=(...e)=>d.replicationSend&&d.replicationSend(...e))},ga),(0,a._)("div",{class:"row",onClick:t[11]||(t[11]=(...e)=>d.requestNetworkUpdate&&d.requestNetworkUpdate(...e))},ka),(0,a._)("div",{class:"row",onClick:t[12]||(t[12]=(...e)=>d.requestNeighbourUpdate&&d.requestNeighbourUpdate(...e))},xa)])])])):(0,a.kq)("",!0)],2)}var za={name:"Node",emits:["select"],mixins:[mt],props:{node:{type:Object,required:!0},selected:{type:Boolean,default:!1}},data(){return{commandRunning:!1,editMode:{name:!1,location:!1}}},methods:{async removeFailedNode(){if(this.commandRunning)this.notify({text:"A command is already running"});else if(confirm("Are you sure that you want to remove this node?")){this.commandRunning=!0;try{await this.zrequest("remove_node",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},async replaceFailedNode(){if(this.commandRunning)this.notify({text:"A command is already running"});else if(confirm("Are you sure that you want to replace this node?")){this.commandRunning=!0;try{await this.zrequest("replace_node",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},async replicationSend(){if(this.commandRunning)this.notify({text:"A command is already running"});else{this.commandRunning=!0;try{await this.zrequest("replication_send",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},async requestNetworkUpdate(){if(this.commandRunning)this.notify({text:"A command is already running"});else{this.commandRunning=!0;try{await this.zrequest("request_network_update",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},async requestNeighbourUpdate(){if(this.commandRunning)this.notify({text:"A command is already running"});else{this.commandRunning=!0;try{await this.zrequest("request_node_neighbour_update",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},onEditMode(e){this.editMode[e]=!0;const t=this.$refs[e+"Form"],n=t.querySelector("input[type=text]");setTimeout((()=>{n.focus(),n.select()}),10)},async editName(e){const t=e.target.querySelector("input[name=name]").value;this.commandRunning=!0;try{await this.zrequest("set_node_name",{node_id:this.node.node_id,new_name:t})}finally{this.commandRunning=!1}this.editMode.name=!1},async editLocation(e){const t=e.target.querySelector("input[name=location]").value;this.commandRunning=!0;try{await this.zrequest("set_node_location",{node_id:this.node.node_id,location:t})}finally{this.commandRunning=!1}this.editMode.location=!1},async heal(){if(this.commandRunning)console.log("A command is already running");else{this.commandRunning=!0;try{await this.zrequest("node_heal",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}}}};const Na=(0,ht.Z)(za,[["render",Ra],["__scopeId","data-v-3da196a6"]]);var Da=Na,qa=n(9417);const Sa=e=>((0,a.dD)("data-v-c1863a74"),e=e(),(0,a.Cn)(),e),Ia={class:"dialog-content"},Ma={class:"buttons"},ja=Sa((()=>(0,a._)("i",{class:"fas fa-xmark"},null,-1)));function Aa(e,t,n,s,l,i){const o=(0,a.up)("Modal");return(0,a.wg)(),(0,a.j4)(o,{ref:"modal",title:n.title},{default:(0,a.w5)((()=>[(0,a._)("div",Ia,[(0,a.WI)(e.$slots,"default",{},void 0,!0)]),(0,a._)("div",Ma,[(0,a._)("button",{type:"button",class:"cancel-btn",onClick:t[0]||(t[0]=(...e)=>i.close&&i.close(...e)),onTouch:t[1]||(t[1]=(...e)=>i.close&&i.close(...e))},[ja,(0,a.Uk)(" Close ")],32)])])),_:3},8,["title"])}var Va={emits:["input","click","touch"],components:{Modal:qa.Z},props:{title:{type:String}},methods:{show(){this.$refs.modal.show()},close(){this.$refs.modal.hide()}}};const Oa=(0,ht.Z)(Va,[["render",Aa],["__scopeId","data-v-c1863a74"]]);var Za=Oa,$a=n(7261),Ta=n(3213),Wa=n(6791),Ea=n(3405);const Fa=e=>((0,a.dD)("data-v-0021cd76"),e=e(),(0,a.Cn)(),e),La={class:"section value"},Ua={class:"header"},Ha={class:"title"},Ga=["disabled","data-id-on-network"],Ka=Fa((()=>(0,a._)("i",{class:"fa fa-edit"},null,-1))),Ba=[Ka],Ya={class:"body"},Pa={class:"row"},Ja=Fa((()=>(0,a._)("div",{class:"param-name"},"Value",-1))),Qa={class:"param-value"},Xa={key:0,class:"value-view"},es=["textContent"],ts=["textContent"],ns={key:1,class:"value-edit"},as={key:0,class:"list"},ss=["textContent","selected","value"],ls={key:1,class:"numeric slider-container"},is={class:"col-10"},os={class:"row"},ds=["textContent"],cs=["textContent"],rs={class:"row"},us={class:"col-2"},ms=["value"],vs={key:2,class:"boolean"},hs={key:3,class:"value-data"},_s=["value"],ps=["textContent"],ws=Fa((()=>(0,a._)("div",{class:"param-name"},"Remove From Scene",-1))),gs=Fa((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1))),ys=[ws,gs],fs={key:1,class:"row",style:{cursor:"pointer"}},ks=Fa((()=>(0,a._)("div",{class:"param-name"},"Add To Scene",-1))),bs={class:"param-value"},Cs={key:2,class:"row"},xs=Fa((()=>(0,a._)("div",{class:"param-name"},"Help",-1))),Rs=["textContent"],zs={class:"row"},Ns=Fa((()=>(0,a._)("div",{class:"param-name"},"Value ID",-1))),Ds=["textContent"],qs={key:3,class:"row"},Ss=Fa((()=>(0,a._)("div",{class:"param-name"},"ID on Network",-1))),Is=["textContent"],Ms={class:"row"},js=Fa((()=>(0,a._)("div",{class:"param-name"},"Command Class",-1))),As=["textContent"],Vs={key:4,class:"row"},Os=Fa((()=>(0,a._)("div",{class:"param-name"},"Last Update",-1))),Zs=["textContent"];function $s(e,t,n,l,i,o){const d=(0,a.up)("Slider"),c=(0,a.up)("ToggleSwitch"),r=(0,a.up)("DropdownItem"),u=(0,a.up)("Dropdown");return(0,a.wg)(),(0,a.iD)("div",La,[(0,a._)("div",Ua,[(0,a._)("div",Ha,[(0,a._)("button",{class:"btn btn-default btn-value-name-edit",title:"Edit value name",disabled:i.commandRunning,"data-id-on-network":n.value.id_on_network,onClick:t[0]||(t[0]=(...e)=>o.editName&&o.editName(...e))},Ba,8,Ga),(0,a.Uk)(" "+(0,s.zw)(n.value.label),1)])]),(0,a._)("div",Ya,[(0,a._)("div",Pa,[Ja,(0,a._)("div",Qa,[n.value.is_read_only?((0,a.wg)(),(0,a.iD)("div",Xa,[(0,a._)("div",{class:"value-data",textContent:(0,s.zw)(n.value.data)},null,8,es),n.value.units?.length?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"unit",textContent:(0,s.zw)(n.value.units)},null,8,ts)):(0,a.kq)("",!0)])):((0,a.wg)(),(0,a.iD)("div",ns,[(0,a._)("div",{class:(0,s.C_)(["col-"+(n.value.units?.length?"11":"12")])},["List"===n.value.type?((0,a.wg)(),(0,a.iD)("div",as,[(0,a._)("label",null,[(0,a._)("select",{onChange:t[1]||(t[1]=(...e)=>o.onValueChange&&o.onValueChange(...e))},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.value.data_items,((e,t)=>((0,a.wg)(),(0,a.iD)("option",{textContent:(0,s.zw)("object"===typeof e?e.text:e),key:t,selected:"object"===typeof e?n.value.data===e.value:n.value.data===e,value:"object"===typeof e?e.value:t},null,8,ss)))),128))],32)])])):["Int","Long","Byte","Decimal","Short"].indexOf(n.value.type)>=0?((0,a.wg)(),(0,a.iD)("div",ls,[(0,a._)("div",is,[(0,a._)("div",os,[(0,a._)("span",{class:"value-min",textContent:(0,s.zw)(n.value.min)},null,8,ds),(0,a._)("span",{class:"value-max",textContent:(0,s.zw)(n.value.max)},null,8,cs)]),(0,a._)("div",rs,[(0,a._)("label",null,[(0,a.Wm)(d,{range:[n.value.min,n.value.max],value:n.value.data,onChange:o.onValueChange},null,8,["range","value","onChange"])])])]),(0,a._)("div",us,[(0,a._)("label",null,[(0,a._)("input",{type:"text",value:n.value.data,onChange:t[2]||(t[2]=(...e)=>o.onValueChange&&o.onValueChange(...e))},null,40,ms)])])])):["Bool","Button"].indexOf(n.value.type)>=0?((0,a.wg)(),(0,a.iD)("div",vs,[(0,a.Wm)(c,{value:n.value.data,onInput:t[3]||(t[3]=e=>o.onValueChange(e,!n.value.data))},null,8,["value"])])):((0,a.wg)(),(0,a.iD)("div",hs,[(0,a._)("label",null,[(0,a._)("input",{type:"text",value:n.value.data,onChange:t[4]||(t[4]=(...e)=>o.onValueChange&&o.onValueChange(...e))},null,40,_s)])]))],2),n.value.units?.length?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"col-1 unit",textContent:(0,s.zw)(n.value.units)},null,8,ps)):(0,a.kq)("",!0)]))])]),null!=n.sceneId?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"row",style:{cursor:"pointer"},onClick:t[5]||(t[5]=t=>e.$emit("remove-from-scene",{valueId:n.value.id_on_network,sceneId:n.sceneId}))},ys)):(0,a.kq)("",!0),o.addValueToSceneItems?.length?((0,a.wg)(),(0,a.iD)("div",fs,[ks,(0,a._)("div",bs,[(0,a.Wm)(u,{title:"Add to scene","icon-class":"fa fa-plus"},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(o.addValueToSceneItems,((t,s)=>((0,a.wg)(),(0,a.j4)(r,{key:s,text:t.label,disabled:i.commandRunning,onClick:a=>e.$emit("add-to-scene",{sceneId:t.scene_id,valueId:n.value.id_on_network})},null,8,["text","disabled","onClick"])))),128))])),_:1})])])):(0,a.kq)("",!0),n.value.help?.length?((0,a.wg)(),(0,a.iD)("div",Cs,[xs,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.value.help)},null,8,Rs)])):(0,a.kq)("",!0),(0,a._)("div",zs,[Ns,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.value.value_id)},null,8,Ds)]),n.value.value_id!==n.value.id_on_network?((0,a.wg)(),(0,a.iD)("div",qs,[Ss,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.value.id_on_network)},null,8,Is)])):(0,a.kq)("",!0),(0,a._)("div",Ms,[js,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.value.command_class_name||n.value.command_class)},null,8,As)]),n.value.last_update?((0,a.wg)(),(0,a.iD)("div",Vs,[Os,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(e.formatDateTime(n.value.last_update))},null,8,Zs)])):(0,a.kq)("",!0)])])}var Ts=n(4358),Ws={name:"Value",components:{Slider:Ts.Z,Dropdown:$a.Z,DropdownItem:Ta.Z,ToggleSwitch:Ea.Z},mixins:[mt],emits:["remove-from-scene","add-to-scene","refresh"],props:{value:{type:Object,required:!0},node:{type:Object,required:!0},selected:{type:Boolean,default:!1},sceneId:{type:Number},scenes:{type:Object,default:()=>({})}},data(){return{commandRunning:!1}},computed:{addValueToSceneItems(){return Object.values(this.scenes||{}).filter((e=>!(this.value.id_on_network in e.values)))}},methods:{async editName(){const e=this.node.values[this.value.id_on_network];let t=prompt("New name",e.label);if(t?.length&&(t=t.trim()),t?.length&&t!==e.label){this.commandRunning=!0;try{await this.zrequest("set_value_label",{id_on_network:e.id_on_network,new_label:t})}finally{this.commandRunning=!1}this.$emit("refresh"),this.notify({text:"Value successfully renamed",image:{iconClass:"fa fa-check"}})}},async onValueChange(e,t){const n=e.target?e.target:e.event.target.parentElement,a=this.node.values[this.value.id_on_network];switch(void 0===t&&(t=null!=n.value?n.value:e.value),a.type){case"List":t=a.data_items[e.target.value];break;case"Int":case"Short":case"Long":case"Byte":t=parseInt(t);break;case"Decimal":t=parseFloat(t);break}"object"===typeof t&&(t=t.value),this.commandRunning=!0;try{await this.zrequest("set_value",{id_on_network:a.id_on_network,data:t})}finally{this.commandRunning=!1}this.$emit("refresh"),this.notify({text:"Value successfully modified",image:{iconClass:"fa fa-check"}})}}};const Es=(0,ht.Z)(Ws,[["render",$s],["__scopeId","data-v-0021cd76"]]);var Fs=Es,Ls={name:"Zwave",mixins:[mt],components:{Alert:Za,Dropdown:$a.Z,DropdownItem:Ta.Z,Group:pt,Loading:Wa.Z,Modal:qa.Z,Node:Da,ToggleSwitch:Ea.Z,Value:Fs},data(){return{status:{},views:{},nodes:{},groups:{},scenes:{},commandRunning:!1,values:{switches:{},dimmers:{},sensors:{},battery_levels:{},power_levels:{},bulbs:{},doorlocks:{},usercodes:{},thermostats:{},protections:{}},selected:{view:"nodes",nodeId:void 0,groupId:void 0,sceneId:void 0,valueId:void 0},loading:{status:!1,nodes:!1,groups:!1,scenes:!1}}},computed:{valuesMap(){const e={};for(const t of Object.values(this.nodes))for(const n of Object.values(t.values))e[n.id_on_network]=n;return e}},methods:{async refreshNodes(){this.loading.nodes=!0;try{this.nodes=await this.zrequest("get_nodes")}finally{this.loading.nodes=!1}Object.keys(this.nodes||{}).length&&(this.views.values=!0)},async refreshGroups(){this.loading.groups=!0;try{this.groups=Object.values(await this.zrequest("get_groups")).filter((e=>e.index)).reduce(((e,t)=>{const n=t.group_id||t.index;return e[n]=t,e}),{})}finally{this.loading.groups=!1}Object.keys(this.groups||{}).length&&(this.views.groups=!0)},async refreshScenes(){this.loading.scenes=!0;try{this.scenes=Object.values(await this.zrequest("get_scenes")).filter((e=>e.scene_id)).reduce(((e,t)=>(e[t.scene_id]=t,e)),{})}finally{this.loading.scenes=!1}Object.keys(this.scenes||{}).length&&(this.views.values=!0)},async refreshValues(e){this.loading.values=!0;try{this.values[e]=Object.values(await this.zrequest("get_"+e)).filter((e=>e.id_on_network)).reduce(((e,t)=>(e[t.id_on_network]=!0,e)),{})}finally{this.loading.values=!1}Object.keys(this.values[e]).length&&(this.views[e]=!0)},async refreshStatus(){this.loading.status=!0;try{this.status=await this.zrequest("controller_status")}finally{this.loading.status=!1}},refresh(){this.views={nodes:!0,scenes:!0},this.refreshNodes(),this.refreshGroups(),this.refreshScenes(),this.refreshValues("switches"),this.refreshValues("dimmers"),this.refreshValues("sensors"),this.refreshValues("bulbs"),this.refreshValues("doorlocks"),this.refreshValues("usercodes"),this.refreshValues("thermostats"),this.refreshValues("protections"),this.refreshValues("battery_levels"),this.refreshValues("power_levels"),this.refreshValues("node_config"),this.refreshStatus()},async addScene(){let e=prompt("Scene name");if(e?.length&&(e=e.trim()),e?.length){this.commandRunning=!0;try{await this.zrequest("create_scene",{label:e}),await this.refreshScenes()}finally{this.commandRunning=!1}}},async removeScene(e){if(confirm("Are you sure that you want to delete this scene?")){this.commandRunning=!0;try{await this.zrequest("remove_scene",{scene_id:e}),await this.refreshScenes()}finally{this.commandRunning=!1}}},onNodeUpdate(e){this.nodes[e.node.node_id]=e.node,e.value&&(this.nodes[e.node.node_id].values[e.value.id_on_network]=e.value)},onNodeClick(e){this.selected.nodeId=e===this.selected.nodeId?void 0:e},networkInfoModalOpen(){this.refreshStatus(),this.$refs.networkInfoModal.show()},onCommandEvent(e){e.error&&e.error.length&&this.notify({text:e.state_description+": "+e.error_description,error:!0})},resetAddNodeModal(){[...this.$refs.addNodeModal.$el.querySelectorAll(".fields input")].forEach((e=>{e.value="timeout"===e.attributes.name.value?30:""}))},openAddNodeModal(){this.resetAddNodeModal(),this.$refs.addNodeModal.show()},closeAddNodeModal(){this.resetAddNodeModal(),this.$refs.addNodeModal.close()},async addNode(){const e=this.$refs.addNodeForm,t=e.querySelector("input[name=name]").value?.trim(),n=e.querySelector("input[name=location]").value?.trim(),a=parseInt(e.querySelector("input[name=location]").value?.trim()||30);if(t?.length){this.commandRunning=!0;try{await this.zrequest("add_node",{name:t,location:n,timeout:a}),this.closeAddNodeModal()}finally{this.commandRunning=!1}await this.refreshNodes()}else this.$refs.noNodeNameModal.show()},async addToGroup(e,t){this.commandRunning=!0;try{await this.zrequest("add_node_to_group",{node_id:e,group_index:t})}finally{this.commandRunning=!1}await this.refreshGroups()},async removeNode(){this.commandRunning=!0;try{await this.zrequest("remove_node")}finally{this.commandRunning=!1}await this.refreshNodes()},async removeValueFromScene(e){if(confirm("Are you sure that you want to remove this value from the scene?")){this.commandRunning=!0;try{await this.zrequest("scene_remove_value",{id_on_network:e.valueId,scene_id:e.sceneId})}finally{this.commandRunning=!1}await this.refreshScenes()}},async renameScene(e){const t=this.scenes[e];let n=prompt("New name",t.label);if(n&&(n=n.trim()),n?.length&&n!==t.label){this.commandRunning=!0;try{await this.zrequest("set_scene_label",{new_label:n,scene_id:e})}finally{this.commandRunning=!1}await this.refreshScenes()}},async startNetwork(){this.commandRunning=!0;try{await this.zrequest("start_network")}finally{this.commandRunning=!1}},async stopNetwork(){this.commandRunning=!0;try{await this.zrequest("stop_network")}finally{this.commandRunning=!1}},async switchAll(e){this.commandRunning=!0;try{await this.zrequest("switch_all",{state:e}),this.refresh()}finally{this.commandRunning=!1}},async cancelCommand(){this.commandRunning=!0;try{await this.zrequest("cancel_command")}finally{this.commandRunning=!1}},async killCommand(){this.commandRunning=!0;try{await this.zrequest("kill_command")}finally{this.commandRunning=!1}},async receiveConfiguration(){this.commandRunning=!0;try{await this.zrequest("receive_configuration")}finally{this.commandRunning=!1}this.refresh()},async createNewPrimary(){this.commandRunning=!0;try{await this.zrequest("create_new_primary")}finally{this.commandRunning=!1}this.refresh()},async transferPrimaryRole(){this.commandRunning=!0;try{await this.zrequest("transfer_primary_role")}finally{this.commandRunning=!1}this.refresh()},async healNetwork(){this.commandRunning=!0;try{await this.zrequest("heal")}finally{this.commandRunning=!1}this.refresh()},async softReset(){confirm("Are you sure that you want to do a device soft reset? This won't lose network information")&&await this.zrequest("soft_reset")},async hardReset(){confirm("Are you sure that you want to do a device soft reset? All network information will be LOST!")&&await this.zrequest("hard_reset")},async activateScene(e){this.commandRunning=!0;try{await this.zrequest("activate_scene",{scene_id:e})}finally{this.commandRunning=!1}},async addValueToScene(e){this.commandRunning=!0;try{await this.zrequest("scene_add_value",{id_on_network:e.valueId,scene_id:e.sceneId,data:this.valuesMap[e.valueId].data})}finally{this.commandRunning=!1}this.refresh()}},mounted(){this.refresh(),this.subscribe(this.refreshGroups,"on-zwave-node-group-event","platypush.message.event.zwave.ZwaveNodeGroupEvent"),this.subscribe(this.refreshScenes,"on-zwave-node-scene-event","platypush.message.event.zwave.ZwaveNodeSceneEvent"),this.subscribe(this.refreshNodes,"on-zwave-node-removed-event","platypush.message.event.zwave.ZwaveNodeRemovedEvent"),this.subscribe(this.onCommandEvent,"on-zwave-command-event","platypush.message.event.zwave.ZwaveCommandEvent"),this.subscribe(this.refreshStatus,"on-zwave-network-event","platypush.message.event.zwave.ZwaveNetworkReadyEvent","platypush.message.event.zwave.ZwaveNetworkStoppedEvent","platypush.message.event.zwave.ZwaveNetworkErrorEvent","platypush.message.event.zwave.ZwaveNetworkResetEvent"),this.subscribe(this.onNodeUpdate,"on-zwave-node-update-event","platypush.message.event.zwave.ZwaveNodeEvent","platypush.message.event.zwave.ZwaveNodeAddedEvent","platypush.message.event.zwave.ZwaveNodeRenamedEvent","platypush.message.event.zwave.ZwaveNodeReadyEvent","platypush.message.event.zwave.ZwaveValueAddedEvent","platypush.message.event.zwave.ZwaveValueChangedEvent","platypush.message.event.zwave.ZwaveValueRemovedEvent","platypush.message.event.zwave.ZwaveValueRefreshedEvent")},unmounted(){["on-zwave-node-group-event","on-zwave-node-scene-event","on-zwave-node-removed-event","on-zwave-command-event","on-zwave-network-event","on-zwave-node-update-event"].forEach((e=>this.unsubscribe(e)))}};const Us=(0,ht.Z)(Ls,[["render",Ve]]);var Hs=Us}}]); -//# sourceMappingURL=7880.ceb6e400.js.map \ No newline at end of file +"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[7880],{4358:function(e,t,n){n.d(t,{Z:function(){return g}});var a=n(6252),s=n(3577),l=n(9963);const i={class:"slider-wrapper"},o=["textContent"],d=["textContent"],c={class:"slider-container"},r=["min","max","step","disabled","value"],u={class:"track-inner",ref:"track"},m={class:"thumb",ref:"thumb"},v=["textContent"];function h(e,t,n,h,_,p){return(0,a.wg)(),(0,a.iD)("label",i,[n.withRange?((0,a.wg)(),(0,a.iD)("span",{key:0,class:(0,s.C_)(["range-labels",{"with-label":n.withLabel}])},[n.withRange?((0,a.wg)(),(0,a.iD)("span",{key:0,class:"label left",textContent:(0,s.zw)(n.range[0])},null,8,o)):(0,a.kq)("",!0),n.withRange?((0,a.wg)(),(0,a.iD)("span",{key:1,class:"label right",textContent:(0,s.zw)(n.range[1])},null,8,d)):(0,a.kq)("",!0)],2)):(0,a.kq)("",!0),(0,a._)("span",c,[(0,a._)("input",{class:(0,s.C_)(["slider",{"with-label":n.withLabel}]),type:"range",min:n.range[0],max:n.range[1],step:n.step,disabled:n.disabled,value:n.value,ref:"range",onInput:t[0]||(t[0]=(0,l.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"])),onChange:t[1]||(t[1]=(0,l.iM)(((...e)=>p.onUpdate&&p.onUpdate(...e)),["stop"]))},null,42,r),(0,a._)("div",{class:(0,s.C_)(["track",{"with-label":n.withLabel}])},[(0,a._)("div",u,null,512)],2),(0,a._)("div",m,null,512),n.withLabel?((0,a.wg)(),(0,a.iD)("span",{key:0,class:"label",textContent:(0,s.zw)(n.value),ref:"label"},null,8,v)):(0,a.kq)("",!0)])])}var _={name:"Slider",emits:["input","change","mouseup","mousedown","touchstart","touchend","keyup","keydown"],props:{value:{type:Number},disabled:{type:Boolean,default:!1},range:{type:Array,default:()=>[0,100]},step:{type:Number,default:1},withLabel:{type:Boolean,default:!1},withRange:{type:Boolean,default:!1}},methods:{onUpdate(e){this.update(e.target.value),this.$emit(e.type,{...e,target:{...e.target,value:this.$refs.range.value}})},update(e){const t=this.$refs.range.clientWidth,n=(e-this.range[0])/(this.range[1]-this.range[0]),a=n*t,s=this.$refs.thumb;s.style.left=a-s.clientWidth/2+"px",this.$refs.thumb.style.transform=`translate(-${n}%, -50%)`,this.$refs.track.style.width=`${a}px`}},mounted(){null!=this.value&&this.update(this.value),this.$watch((()=>this.value),(e=>this.update(e)))}},p=n(3744);const w=(0,p.Z)(_,[["render",h],["__scopeId","data-v-4b38623f"]]);var g=w},3405:function(e,t,n){n.d(t,{Z:function(){return h}});var a=n(6252),s=n(3577),l=n(9963);const i=e=>((0,a.dD)("data-v-a6396ae8"),e=e(),(0,a.Cn)(),e),o=["checked"],d=i((()=>(0,a._)("div",{class:"switch"},[(0,a._)("div",{class:"dot"})],-1))),c={class:"label"};function r(e,t,n,i,r,u){return(0,a.wg)(),(0,a.iD)("div",{class:(0,s.C_)(["power-switch",{disabled:n.disabled}]),onClick:t[0]||(t[0]=(0,l.iM)(((...e)=>u.onInput&&u.onInput(...e)),["stop"]))},[(0,a._)("input",{type:"checkbox",checked:n.value},null,8,o),(0,a._)("label",null,[d,(0,a._)("span",c,[(0,a.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var u={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},m=n(3744);const v=(0,m.Z)(u,[["render",r],["__scopeId","data-v-a6396ae8"]]);var h=v},7880:function(e,t,n){n.d(t,{Z:function(){return Hs}});var a=n(6252),s=n(3577),l=n(9963);const i={class:"zwave-container"},o={class:"network-info"},d={key:1,class:"params"},c={class:"row"},r=(0,a._)("div",{class:"param-name"},"State",-1),u=["textContent"],m={class:"row"},v=(0,a._)("div",{class:"param-name"},"Device",-1),h=["textContent"],_={class:"section"},p=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Statistics")],-1),w={class:"body"},g=["textContent"],y=["textContent"],f={class:"group-add"},k={class:"params"},b={class:"section"},C=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Select nodes to add")],-1),x={key:0,class:"body"},R=["onClick"],z=["textContent"],N={class:"node-add"},D={class:"body"},q=(0,a._)("div",{class:"fields"},[(0,a._)("input",{type:"text",name:"name",placeholder:"Node name"}),(0,a._)("input",{type:"text",name:"location",placeholder:"Node location (optional)"}),(0,a._)("input",{type:"number",name:"timeout",value:"30",placeholder:"Timeout (in seconds)"})],-1),S={class:"buttons"},I=["disabled"],M={class:"view-options"},j={class:"view-selector col-s-6 col-m-8 col-l-9"},A=["textContent","selected","value"],V={class:"buttons col-s-6 col-m-4 col-l-3"},O=(0,a._)("i",{class:"fa fa-plus"},null,-1),Z=[O],$=(0,a._)("i",{class:"fa fa-sync-alt"},null,-1),T=[$],W={class:"view-container"},E={key:0,class:"view nodes"},F={key:1,class:"no-items"},L=(0,a._)("div",{class:"empty"},"No nodes available on the network",-1),U=[L],H={key:1,class:"view groups"},G={key:1,class:"no-items"},K=(0,a._)("div",{class:"empty"},"No groups available on the network",-1),B=[K],Y={key:2,class:"view scenes"},P={key:1,class:"no-items"},J=(0,a._)("div",{class:"empty"},"No scenes configured on the network",-1),Q=[J],X=["textContent","onClick"],ee={key:0,class:"params"},te={class:"row"},ne=(0,a._)("div",{class:"param-name"},"Scene ID",-1),ae=["textContent"],se={class:"row"},le=(0,a._)("div",{class:"param-name"},"Activate",-1),ie={class:"param-value"},oe={key:0,class:"section values"},de=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Values")],-1),ce={class:"body"},re={class:"param-name"},ue={class:"param-value"},me=["textContent"],ve={class:"buttons"},he=["onClick"],_e=(0,a._)("i",{class:"fa fa-trash"},null,-1),pe=[_e],we={class:"section actions"},ge=(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Actions")],-1),ye={class:"body"},fe=["onClick"],ke=(0,a._)("div",{class:"param-name"},"Remove Scene",-1),be=(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1),Ce=[ke,be],xe=["onClick"],Re=(0,a._)("div",{class:"param-name"},"Rename Scene",-1),ze=(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-edit"})],-1),Ne=[Re,ze],De={key:3,class:"view values"},qe={key:1,class:"no-items"},Se=(0,a._)("div",{class:"empty"},"No nodes found on the network",-1),Ie=[Se],Me=["textContent","onClick"],je={key:0,class:"params"},Ae={key:0,class:"value-display"};function Ve(e,t,n,O,$,L){const K=(0,a.up)("Loading"),J=(0,a.up)("Modal"),_e=(0,a.up)("Alert"),ke=(0,a.up)("DropdownItem"),be=(0,a.up)("Dropdown"),Re=(0,a.up)("Node"),ze=(0,a.up)("Group"),Se=(0,a.up)("ToggleSwitch"),Ve=(0,a.up)("Value");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a.Wm)(J,{title:"Network info",ref:"networkInfoModal"},{default:(0,a.w5)((()=>[(0,a._)("div",o,[$.loading.status?((0,a.wg)(),(0,a.j4)(K,{key:0})):((0,a.wg)(),(0,a.iD)("div",d,[(0,a._)("div",c,[r,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)($.status.state)},null,8,u)]),(0,a._)("div",m,[v,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)($.status.device)},null,8,h)]),(0,a._)("div",_,[p,(0,a._)("div",w,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)($.status.stats,((e,t)=>((0,a.wg)(),(0,a.iD)("div",{class:"row",key:t},[(0,a._)("div",{class:"param-name",textContent:(0,s.zw)(t)},null,8,g),(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(e)},null,8,y)])))),128))])])]))])])),_:1},512),(0,a.Wm)(J,{title:"Add nodes to group",ref:"addNodesToGroupModal"},{default:(0,a.w5)((()=>[(0,a._)("div",f,[(0,a._)("div",k,[(0,a._)("div",b,[C,null!=$.selected.groupId?((0,a.wg)(),(0,a.iD)("div",x,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Object.values($.nodes||{}).filter((e=>$.groups[$.selected.groupId].associations.indexOf(e.node_id)<0)),(e=>((0,a.wg)(),(0,a.iD)("div",{class:"row clickable",onClick:t=>L.addToGroup(e.node_id,$.selected.groupId),key:e.node_id},[(0,a._)("div",{class:"param-name",textContent:(0,s.zw)(e.name)},null,8,z)],8,R)))),128))])):(0,a.kq)("",!0)])])])])),_:1},512),(0,a.Wm)(_e,{title:"",ref:"noNodeNameModal"},{default:(0,a.w5)((()=>[(0,a.Uk)(" No node name specified ")])),_:1},512),(0,a.Wm)(J,{title:"Add new node",ref:"addNodeModal"},{default:(0,a.w5)((()=>[(0,a._)("div",N,[(0,a._)("div",D,[(0,a._)("form",{class:"add-node-form",ref:"addNodeForm",onSubmit:t[1]||(t[1]=(0,l.iM)((e=>L.addNode()),["prevent"]))},[q,(0,a._)("div",S,[(0,a._)("input",{type:"submit",class:"btn btn-primary",value:"OK",disabled:$.commandRunning},null,8,I),(0,a._)("button",{class:"btn btn-default",onClick:t[0]||(t[0]=(0,l.iM)((e=>L.closeAddNodeModal()),["prevent"]))}," Cancel ")])],544)])])])),_:1},512),(0,a._)("div",M,[(0,a._)("div",j,[(0,a._)("label",null,[(0,a._)("select",{onChange:t[2]||(t[2]=e=>$.selected.view=e.target.value)},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)($.views,((e,t)=>((0,a.wg)(),(0,a.iD)("option",{key:e,textContent:(0,s.zw)((t[0].toUpperCase()+t.slice(1)).replace("_"," ")),selected:t===$.selected.view,value:t},null,8,A)))),128))],32)])]),(0,a._)("div",V,["scenes"===$.selected.view?((0,a.wg)(),(0,a.iD)("button",{key:0,class:"btn btn-default",title:"Create Scene",onClick:t[3]||(t[3]=(...e)=>L.addScene&&L.addScene(...e))},Z)):(0,a.kq)("",!0),(0,a.Wm)(be,{title:"Network commands","icon-class":"fa fa-cog"},{default:(0,a.w5)((()=>[(0,a.Wm)(ke,{text:"Network Info",disabled:$.commandRunning,onClick:L.networkInfoModalOpen},null,8,["disabled","onClick"]),(0,a.Wm)(ke,{text:"Start Network",disabled:$.commandRunning,onClick:L.startNetwork},null,8,["disabled","onClick"]),(0,a.Wm)(ke,{text:"Stop Network",disabled:$.commandRunning,onClick:L.stopNetwork},null,8,["disabled","onClick"]),"nodes"===$.selected.view?((0,a.wg)(),(0,a.j4)(ke,{key:0,text:"Add Node",disabled:$.commandRunning,onClick:t[4]||(t[4]=e=>L.openAddNodeModal())},null,8,["disabled"])):(0,a.kq)("",!0),"nodes"===$.selected.view?((0,a.wg)(),(0,a.j4)(ke,{key:1,text:"Remove Node",disabled:$.commandRunning,onClick:L.removeNode},null,8,["disabled","onClick"])):(0,a.kq)("",!0),(0,a.Wm)(ke,{text:"Switch All On",disabled:$.commandRunning,onClick:t[5]||(t[5]=e=>L.switchAll(!0))},null,8,["disabled"]),(0,a.Wm)(ke,{text:"Switch All Off",disabled:$.commandRunning,onClick:t[6]||(t[6]=e=>L.switchAll(!1))},null,8,["disabled"]),(0,a.Wm)(ke,{text:"Cancel Command",disabled:$.commandRunning,onClick:L.cancelCommand},null,8,["disabled","onClick"]),(0,a.Wm)(ke,{text:"Kill Command",disabled:$.commandRunning,onClick:L.killCommand},null,8,["disabled","onClick"]),(0,a.Wm)(ke,{text:"Receive Configuration",disabled:$.commandRunning,onClick:L.receiveConfiguration},null,8,["disabled","onClick"]),(0,a.Wm)(ke,{text:"Create New Primary",disabled:$.commandRunning,onClick:L.createNewPrimary},null,8,["disabled","onClick"]),(0,a.Wm)(ke,{text:"Transfer Primary Role",disabled:$.commandRunning,onClick:L.transferPrimaryRole},null,8,["disabled","onClick"]),(0,a.Wm)(ke,{text:"Heal Network",disabled:$.commandRunning,onClick:L.healNetwork},null,8,["disabled","onClick"]),(0,a.Wm)(ke,{text:"Soft Reset",disabled:$.commandRunning,onClick:L.softReset},null,8,["disabled","onClick"]),(0,a.Wm)(ke,{text:"Hard Reset",disabled:$.commandRunning,onClick:L.hardReset},null,8,["disabled","onClick"])])),_:1}),(0,a._)("button",{class:"btn btn-default",title:"Refresh Network",onClick:t[7]||(t[7]=(...e)=>L.refresh&&L.refresh(...e))},T)])]),(0,a._)("div",W,["nodes"===$.selected.view?((0,a.wg)(),(0,a.iD)("div",E,[$.loading.nodes?((0,a.wg)(),(0,a.j4)(K,{key:0})):Object.keys($.nodes||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",F,U)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)($.nodes,((t,n)=>((0,a.wg)(),(0,a.j4)(Re,{key:n,node:t,selected:$.selected.nodeId===n,"plugin-name":e.pluginName,onSelect:e=>L.onNodeClick(n)},null,8,["node","selected","plugin-name","onSelect"])))),128))])):"groups"===$.selected.view?((0,a.wg)(),(0,a.iD)("div",H,[$.loading.groups?((0,a.wg)(),(0,a.j4)(K,{key:0})):Object.keys($.groups||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",G,B)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)($.groups,((n,s)=>((0,a.wg)(),(0,a.j4)(ze,{key:s,group:n,selected:$.selected.groupId===s,nodes:s in $.groups?$.groups[s].associations.map((e=>$.nodes[e])).reduce(((e,t)=>(e[t.node_id]=t,e)),{}):{},owner:null!=n.node_id?$.nodes[n.node_id]:null,"plugin-name":e.pluginName,onSelect:e=>$.selected.groupId=s===$.selected.groupId?void 0:s,onOpenAddNodesToGroup:t[8]||(t[8]=t=>e.$refs.addNodesToGroupModal.show())},null,8,["group","selected","nodes","owner","plugin-name","onSelect"])))),128))])):"scenes"===$.selected.view?((0,a.wg)(),(0,a.iD)("div",Y,[$.loading.scenes?((0,a.wg)(),(0,a.j4)(K,{key:0})):Object.keys($.scenes||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",P,Q)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)($.scenes,((e,t)=>((0,a.wg)(),(0,a.iD)("div",{class:(0,s.C_)(["item scene",{selected:$.selected.sceneId===t}]),key:t},[(0,a._)("div",{class:(0,s.C_)(["row name header vertical-center",{selected:$.selected.sceneId===t}]),textContent:(0,s.zw)(e.label),onClick:e=>$.selected.sceneId=t===$.selected.sceneId?void 0:t},null,10,X),$.selected.sceneId===t?((0,a.wg)(),(0,a.iD)("div",ee,[(0,a._)("div",te,[ne,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(t)},null,8,ae)]),(0,a._)("div",se,[le,(0,a._)("div",ie,[(0,a.Wm)(Se,{value:!1,onInput:e=>L.activateScene(t)},null,8,["onInput"])])]),Object.values(e?.values)?.length?((0,a.wg)(),(0,a.iD)("div",oe,[de,(0,a._)("div",ce,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(Object.values(e.values),(e=>((0,a.wg)(),(0,a.iD)("div",{class:"row",key:e.id_on_network},[(0,a._)("div",re,(0,s.zw)($.nodes[e.node_id].name)+" ⇨ "+(0,s.zw)(L.valuesMap[e.id_on_network].label),1),(0,a._)("div",ue,[(0,a._)("span",{textContent:(0,s.zw)(e.data)},null,8,me),(0,a._)("span",ve,[(0,a._)("button",{class:"btn btn-default",title:"Remove value",onClick:n=>L.removeValueFromScene({sceneId:t,valueId:e.id_on_network})},pe,8,he)])])])))),128))])])):(0,a.kq)("",!0),(0,a._)("div",we,[ge,(0,a._)("div",ye,[(0,a._)("div",{class:"row",onClick:e=>L.removeScene(t)},Ce,8,fe),(0,a._)("div",{class:"row",onClick:e=>L.renameScene(t)},Ne,8,xe)])])])):(0,a.kq)("",!0)],2)))),128))])):((0,a.wg)(),(0,a.iD)("div",De,[$.loading.nodes?((0,a.wg)(),(0,a.j4)(K,{key:0})):Object.keys($.nodes||{}).length?(0,a.kq)("",!0):((0,a.wg)(),(0,a.iD)("div",qe,Ie)),((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)($.nodes,((t,n)=>((0,a.wg)(),(0,a.iD)("div",{class:"node-container",key:n},["values"===$.selected.view||Object.values(t.values).filter((e=>e.id_on_network in $.values[$.selected.view])).length>0?((0,a.wg)(),(0,a.iD)("div",{key:0,class:(0,s.C_)(["item node",{selected:$.selected.nodeId===n}])},[(0,a._)("div",{class:(0,s.C_)(["row name header vertical-center",{selected:$.selected.nodeId===n}]),textContent:(0,s.zw)(t.name),onClick:e=>L.onNodeClick(n)},null,10,Me),$.selected.nodeId===n?((0,a.wg)(),(0,a.iD)("div",je,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(t.values,((n,s)=>((0,a.wg)(),(0,a.iD)("div",{class:"value-container",key:s},[n.id_on_network&&("values"===$.selected.view||n.id_on_network in $.values[$.selected.view])?((0,a.wg)(),(0,a.iD)("div",Ae,[(0,a.Wm)(Ve,{value:n,node:t,scenes:$.scenes,onAddToScene:L.addValueToScene,onRemoveFromScene:L.removeValueFromScene,onRefresh:L.refreshNodes,"plugin-name":e.pluginName},null,8,["value","node","scenes","onAddToScene","onRemoveFromScene","onRefresh","plugin-name"])])):(0,a.kq)("",!0)])))),128))])):(0,a.kq)("",!0)],2)):(0,a.kq)("",!0)])))),128))]))])])}const Oe=e=>((0,a.dD)("data-v-56458f8e"),e=e(),(0,a.Cn)(),e),Ze=["textContent"],$e={key:0,class:"params"},Te={key:0,class:"section owner"},We=Oe((()=>(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Owner")],-1))),Ee={class:"body"},Fe=["textContent"],Le={class:"section nodes"},Ue={class:"header"},He=Oe((()=>(0,a._)("div",{class:"title col-10"},"Nodes",-1))),Ge={class:"buttons col-2"},Ke=Oe((()=>(0,a._)("i",{class:"fa fa-plus"},null,-1))),Be=[Ke],Ye={class:"body"},Pe=["textContent"],Je={class:"buttons col-2"},Qe=["disabled","onClick"],Xe=Oe((()=>(0,a._)("i",{class:"fa fa-trash"},null,-1))),et=[Xe],tt={class:"section config"},nt=Oe((()=>(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Parameters")],-1))),at={class:"body"},st={class:"row"},lt=Oe((()=>(0,a._)("div",{class:"param-name"},"Index",-1))),it=["textContent"],ot={class:"row"},dt=Oe((()=>(0,a._)("div",{class:"param-name"},"Max associations",-1))),ct=["textContent"];function rt(e,t,n,l,i,o){return(0,a.wg)(),(0,a.iD)("div",{class:(0,s.C_)(["item group",{selected:n.selected}])},[(0,a._)("div",{class:(0,s.C_)(["row name header vertical-center",{selected:n.selected}]),textContent:(0,s.zw)(n.group.label),onClick:t[0]||(t[0]=t=>e.$emit("select",n.group.index))},null,10,Ze),n.selected?((0,a.wg)(),(0,a.iD)("div",$e,[n.owner&&Object.keys(n.owner).length?((0,a.wg)(),(0,a.iD)("div",Te,[We,(0,a._)("div",Ee,[(0,a._)("div",{class:"row",textContent:(0,s.zw)(n.owner.name)},null,8,Fe)])])):(0,a.kq)("",!0),(0,a._)("div",Le,[(0,a._)("div",Ue,[He,(0,a._)("div",Ge,[!n.group.max_associations||Object.keys(n.nodes||{}).length e.$emit("open-add-nodes-to-group",n.group.index))},Be)):(0,a.kq)("",!0)])]),(0,a._)("div",Ye,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.nodes,((e,t)=>((0,a.wg)(),(0,a.iD)("div",{class:"row",key:t},[(0,a._)("div",{class:"col-10",textContent:(0,s.zw)(e.name?.length?e.name:` `)},null,8,Pe),(0,a._)("div",Je,[(0,a._)("button",{class:"btn btn-default",title:"Remove from group",disabled:i.commandRunning,onClick:t=>o.removeFromGroup(e.node_id)},et,8,Qe)])])))),128))])]),(0,a._)("div",tt,[nt,(0,a._)("div",at,[(0,a._)("div",st,[lt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.group.index)},null,8,it)]),(0,a._)("div",ot,[dt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.group.max_associations)},null,8,ct)])])])])):(0,a.kq)("",!0)],2)}var ut=n(3956),mt={mixins:[ut.Z],props:{pluginName:{type:String,required:!0}},methods:{async zrequest(e,t){return await this.request(`${this.pluginName}.${e}`,t)}}},vt={name:"Group",emits:["select","open-add-nodes-to-group"],mixins:[mt],props:{group:{type:Object,required:!0},owner:{type:Object},nodes:{type:Object,default:()=>({})},selected:{type:Boolean,default:!1}},data(){return{commandRunning:!1}},methods:{async removeFromGroup(e){if(!confirm("Are you sure that you want to remove this node from "+this.group.label+"?"))return;this.commandRunning=!0;const t={node_id:e};null!=this.group.group_id?t.group_id=this.group.group_id:t.group_index=this.group.index;try{await this.zrequest("remove_node_from_group",t)}finally{this.commandRunning=!1}}}},ht=n(3744);const _t=(0,ht.Z)(vt,[["render",rt],["__scopeId","data-v-56458f8e"]]);var pt=_t;const wt=e=>((0,a.dD)("data-v-3da196a6"),e=e(),(0,a.Cn)(),e),gt=["textContent"],yt={key:0,class:"params"},ft={class:"row"},kt=wt((()=>(0,a._)("div",{class:"param-name"},"Name",-1))),bt={class:"param-value"},Ct=["value","disabled"],xt={class:"buttons"},Rt=wt((()=>(0,a._)("i",{class:"fas fa-times"},null,-1))),zt=[Rt],Nt=["disabled"],Dt=wt((()=>(0,a._)("i",{class:"fa fa-check"},null,-1))),qt=[Dt],St=["textContent"],It={class:"buttons"},Mt=["disabled"],jt=wt((()=>(0,a._)("i",{class:"fa fa-edit"},null,-1))),At=[jt],Vt={class:"row"},Ot=wt((()=>(0,a._)("div",{class:"param-name"},"Location",-1))),Zt={class:"param-value"},$t=["value","disabled"],Tt={class:"buttons"},Wt=wt((()=>(0,a._)("i",{class:"fas fa-times"},null,-1))),Et=[Wt],Ft=["disabled"],Lt=wt((()=>(0,a._)("i",{class:"fa fa-check"},null,-1))),Ut=[Lt],Ht=["textContent"],Gt={class:"buttons"},Kt=["disabled"],Bt=wt((()=>(0,a._)("i",{class:"fa fa-edit"},null,-1))),Yt=[Bt],Pt={class:"row"},Jt=wt((()=>(0,a._)("div",{class:"param-name"},"Type",-1))),Qt=["textContent"],Xt={class:"row"},en=wt((()=>(0,a._)("div",{class:"param-name"},"Role",-1))),tn=["textContent"],nn={class:"row"},an=wt((()=>(0,a._)("div",{class:"param-name"},"Node ID",-1))),sn=["textContent"],ln={key:0,class:"row"},on=wt((()=>(0,a._)("div",{class:"param-name"},"Neighbours",-1))),dn={class:"param-value"},cn=["textContent"],rn={class:"row"},un=wt((()=>(0,a._)("div",{class:"param-name"},"Is Ready",-1))),mn=["textContent"],vn={class:"row"},hn=wt((()=>(0,a._)("div",{class:"param-name"},"Is Failed",-1))),_n=["textContent"],pn={class:"row"},wn=wt((()=>(0,a._)("div",{class:"param-name"},"Product ID",-1))),gn=["textContent"],yn={class:"row"},fn=wt((()=>(0,a._)("div",{class:"param-name"},"Product Type",-1))),kn=["textContent"],bn={key:1,class:"row"},Cn=wt((()=>(0,a._)("div",{class:"param-name"},"Product Name",-1))),xn=["textContent"],Rn={class:"row"},zn=wt((()=>(0,a._)("div",{class:"param-name"},"Manufacturer ID",-1))),Nn=["textContent"],Dn={key:2,class:"row"},qn=wt((()=>(0,a._)("div",{class:"param-name"},"Manufacturer Name",-1))),Sn=["textContent"],In={class:"row"},Mn=wt((()=>(0,a._)("div",{class:"param-name"},"Capabilities",-1))),jn=["textContent"],An={class:"row"},Vn=wt((()=>(0,a._)("div",{class:"param-name"},"Command Classes",-1))),On=["textContent"],Zn={class:"row"},$n=wt((()=>(0,a._)("div",{class:"param-name"},"Groups",-1))),Tn=["textContent"],Wn={key:3,class:"row"},En=wt((()=>(0,a._)("div",{class:"param-name"},"Home ID",-1))),Fn=["textContent"],Ln={class:"row"},Un=wt((()=>(0,a._)("div",{class:"param-name"},"Is Awake",-1))),Hn=["textContent"],Gn={key:4,class:"row"},Kn=wt((()=>(0,a._)("div",{class:"param-name"},"Is Locked",-1))),Bn=["textContent"],Yn={key:5,class:"row"},Pn=wt((()=>(0,a._)("div",{class:"param-name"},"Last Update",-1))),Jn=["textContent"],Qn={key:6,class:"row"},Xn=wt((()=>(0,a._)("div",{class:"param-name"},"Baud Rate",-1))),ea=["textContent"],ta={key:7,class:"row"},na=wt((()=>(0,a._)("div",{class:"param-name"},"Max Baud Rate",-1))),aa=["textContent"],sa={class:"section actions"},la=wt((()=>(0,a._)("div",{class:"header"},[(0,a._)("div",{class:"title"},"Actions")],-1))),ia={class:"body"},oa=wt((()=>(0,a._)("div",{class:"param-name"},"Remove Failed Node",-1))),da=wt((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1))),ca=[oa,da],ra=wt((()=>(0,a._)("div",{class:"param-name"},"Replace Failed Node",-1))),ua=wt((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-sync-alt"})],-1))),ma=[ra,ua],va=wt((()=>(0,a._)("div",{class:"param-name"},"Heal Node",-1))),ha=wt((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fas fa-wrench"})],-1))),_a=[va,ha],pa=wt((()=>(0,a._)("div",{class:"param-name"},"Replicate info to secondary controller",-1))),wa=wt((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-clone"})],-1))),ga=[pa,wa],ya=wt((()=>(0,a._)("div",{class:"param-name"},"Request network update",-1))),fa=wt((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fas fa-wifi"})],-1))),ka=[ya,fa],ba=wt((()=>(0,a._)("div",{class:"param-name"},"Request neighbours update",-1))),Ca=wt((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fas fa-network-wired"})],-1))),xa=[ba,Ca];function Ra(e,t,n,i,o,d){return(0,a.wg)(),(0,a.iD)("div",{class:(0,s.C_)(["item node",{selected:n.selected}])},[(0,a._)("div",{class:(0,s.C_)(["row name header vertical-center",{selected:n.selected}]),textContent:(0,s.zw)(n.node.name&&n.node.name.length?n.node.name:` `),onClick:t[0]||(t[0]=t=>e.$emit("select"))},null,10,gt),n.selected?((0,a.wg)(),(0,a.iD)("div",yt,[(0,a._)("div",ft,[kt,(0,a._)("div",bt,[(0,a._)("div",{class:(0,s.C_)(["edit-cell",{hidden:!o.editMode.name}])},[(0,a._)("form",{ref:"nameForm",onSubmit:t[2]||(t[2]=(0,l.iM)(((...e)=>d.editName&&d.editName(...e)),["prevent"]))},[(0,a._)("label",null,[(0,a._)("input",{type:"text",name:"name",value:n.node.name,disabled:o.commandRunning},null,8,Ct)]),(0,a._)("span",xt,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:t[1]||(t[1]=e=>o.editMode.name=!1)},zt),(0,a._)("button",{type:"submit",class:"btn btn-default",disabled:o.commandRunning},qt,8,Nt)])],544)],2),(0,a._)("div",{class:(0,s.C_)({hidden:o.editMode.name})},[(0,a._)("span",{textContent:(0,s.zw)(n.node.name?.length?n.node.name:` `)},null,8,St),(0,a._)("span",It,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:t[3]||(t[3]=e=>d.onEditMode("name")),disabled:o.commandRunning},At,8,Mt)])],2)])]),(0,a._)("div",Vt,[Ot,(0,a._)("div",Zt,[(0,a._)("div",{class:(0,s.C_)(["edit-cell",{hidden:!o.editMode.location}])},[(0,a._)("form",{ref:"locationForm",onSubmit:t[5]||(t[5]=(0,l.iM)(((...e)=>d.editLocation&&d.editLocation(...e)),["prevent"]))},[(0,a._)("label",null,[(0,a._)("input",{type:"text",name:"location",value:n.node.location,disabled:o.commandRunning},null,8,$t)]),(0,a._)("span",Tt,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:t[4]||(t[4]=e=>o.editMode.location=!1)},Et),(0,a._)("button",{type:"submit",class:"btn btn-default",disabled:o.commandRunning},Ut,8,Ft)])],544)],2),(0,a._)("div",{class:(0,s.C_)({hidden:o.editMode.location})},[(0,a._)("span",{textContent:(0,s.zw)(n.node.location?.length?n.node.location:"")},null,8,Ht),(0,a._)("span",Gt,[(0,a._)("button",{type:"button",class:"btn btn-default",onClick:t[6]||(t[6]=e=>d.onEditMode("location")),disabled:o.commandRunning},Yt,8,Kt)])],2)])]),(0,a._)("div",Pt,[Jt,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.type)},null,8,Qt)]),(0,a._)("div",Xt,[en,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.role)},null,8,tn)]),(0,a._)("div",nn,[an,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.node_id)},null,8,sn)]),n.node.neighbours.length?((0,a.wg)(),(0,a.iD)("div",ln,[on,(0,a._)("div",dn,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.node.neighbours,((e,t)=>((0,a.wg)(),(0,a.iD)("div",{class:"row pull-right",key:t,textContent:(0,s.zw)(e)},null,8,cn)))),128))])])):(0,a.kq)("",!0),(0,a._)("div",rn,[un,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.is_ready)},null,8,mn)]),(0,a._)("div",vn,[hn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.is_failed)},null,8,_n)]),(0,a._)("div",pn,[wn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.manufacturer_id)},null,8,gn)]),(0,a._)("div",yn,[fn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.product_type)},null,8,kn)]),n.node.product_name?.length?((0,a.wg)(),(0,a.iD)("div",bn,[Cn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.product_name)},null,8,xn)])):(0,a.kq)("",!0),(0,a._)("div",Rn,[zn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.manufacturer_id)},null,8,Nn)]),n.node.manufacturer_name?.length?((0,a.wg)(),(0,a.iD)("div",Dn,[qn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.manufacturer_name)},null,8,Sn)])):(0,a.kq)("",!0),(0,a._)("div",In,[Mn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.capabilities.join(", "))},null,8,jn)]),(0,a._)("div",An,[Vn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.command_classes.join(", "))},null,8,On)]),(0,a._)("div",Zn,[$n,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(Object.values(n.node.groups).map((e=>e.label||"")).join(", "))},null,8,Tn)]),n.node.home_id?((0,a.wg)(),(0,a.iD)("div",Wn,[En,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.home_id.toString(16))},null,8,Fn)])):(0,a.kq)("",!0),(0,a._)("div",Ln,[Un,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.is_awake)},null,8,Hn)]),null!=n.node.is_locked?((0,a.wg)(),(0,a.iD)("div",Gn,[Kn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.is_locked)},null,8,Bn)])):(0,a.kq)("",!0),n.node.last_update?((0,a.wg)(),(0,a.iD)("div",Yn,[Pn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(e.formatDateTime(n.node.last_update))},null,8,Jn)])):(0,a.kq)("",!0),n.node.baud_rate?((0,a.wg)(),(0,a.iD)("div",Qn,[Xn,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.baud_rate)},null,8,ea)])):(0,a.kq)("",!0),n.node.max_baud_rate?((0,a.wg)(),(0,a.iD)("div",ta,[na,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.node.max_baud_rate)},null,8,aa)])):(0,a.kq)("",!0),(0,a._)("div",sa,[la,(0,a._)("div",ia,[n.node.is_failed?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"row error",onClick:t[7]||(t[7]=(...e)=>d.removeFailedNode&&d.removeFailedNode(...e))},ca)):(0,a.kq)("",!0),n.node.is_failed?((0,a.wg)(),(0,a.iD)("div",{key:1,class:"row error",onClick:t[8]||(t[8]=(...e)=>d.replaceFailedNode&&d.replaceFailedNode(...e))},ma)):(0,a.kq)("",!0),(0,a._)("div",{class:"row",onClick:t[9]||(t[9]=(...e)=>d.heal&&d.heal(...e))},_a),(0,a._)("div",{class:"row",onClick:t[10]||(t[10]=(...e)=>d.replicationSend&&d.replicationSend(...e))},ga),(0,a._)("div",{class:"row",onClick:t[11]||(t[11]=(...e)=>d.requestNetworkUpdate&&d.requestNetworkUpdate(...e))},ka),(0,a._)("div",{class:"row",onClick:t[12]||(t[12]=(...e)=>d.requestNeighbourUpdate&&d.requestNeighbourUpdate(...e))},xa)])])])):(0,a.kq)("",!0)],2)}var za={name:"Node",emits:["select"],mixins:[mt],props:{node:{type:Object,required:!0},selected:{type:Boolean,default:!1}},data(){return{commandRunning:!1,editMode:{name:!1,location:!1}}},methods:{async removeFailedNode(){if(this.commandRunning)this.notify({text:"A command is already running"});else if(confirm("Are you sure that you want to remove this node?")){this.commandRunning=!0;try{await this.zrequest("remove_node",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},async replaceFailedNode(){if(this.commandRunning)this.notify({text:"A command is already running"});else if(confirm("Are you sure that you want to replace this node?")){this.commandRunning=!0;try{await this.zrequest("replace_node",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},async replicationSend(){if(this.commandRunning)this.notify({text:"A command is already running"});else{this.commandRunning=!0;try{await this.zrequest("replication_send",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},async requestNetworkUpdate(){if(this.commandRunning)this.notify({text:"A command is already running"});else{this.commandRunning=!0;try{await this.zrequest("request_network_update",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},async requestNeighbourUpdate(){if(this.commandRunning)this.notify({text:"A command is already running"});else{this.commandRunning=!0;try{await this.zrequest("request_node_neighbour_update",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}},onEditMode(e){this.editMode[e]=!0;const t=this.$refs[e+"Form"],n=t.querySelector("input[type=text]");setTimeout((()=>{n.focus(),n.select()}),10)},async editName(e){const t=e.target.querySelector("input[name=name]").value;this.commandRunning=!0;try{await this.zrequest("set_node_name",{node_id:this.node.node_id,new_name:t})}finally{this.commandRunning=!1}this.editMode.name=!1},async editLocation(e){const t=e.target.querySelector("input[name=location]").value;this.commandRunning=!0;try{await this.zrequest("set_node_location",{node_id:this.node.node_id,location:t})}finally{this.commandRunning=!1}this.editMode.location=!1},async heal(){if(this.commandRunning)console.log("A command is already running");else{this.commandRunning=!0;try{await this.zrequest("node_heal",{node_id:this.node.node_id})}finally{this.commandRunning=!1}}}}};const Na=(0,ht.Z)(za,[["render",Ra],["__scopeId","data-v-3da196a6"]]);var Da=Na,qa=n(9417);const Sa=e=>((0,a.dD)("data-v-c1863a74"),e=e(),(0,a.Cn)(),e),Ia={class:"dialog-content"},Ma={class:"buttons"},ja=Sa((()=>(0,a._)("i",{class:"fas fa-xmark"},null,-1)));function Aa(e,t,n,s,l,i){const o=(0,a.up)("Modal");return(0,a.wg)(),(0,a.j4)(o,{ref:"modal",title:n.title},{default:(0,a.w5)((()=>[(0,a._)("div",Ia,[(0,a.WI)(e.$slots,"default",{},void 0,!0)]),(0,a._)("div",Ma,[(0,a._)("button",{type:"button",class:"cancel-btn",onClick:t[0]||(t[0]=(...e)=>i.close&&i.close(...e)),onTouch:t[1]||(t[1]=(...e)=>i.close&&i.close(...e))},[ja,(0,a.Uk)(" Close ")],32)])])),_:3},8,["title"])}var Va={emits:["input","click","touch"],components:{Modal:qa.Z},props:{title:{type:String}},methods:{show(){this.$refs.modal.show()},close(){this.$refs.modal.hide()}}};const Oa=(0,ht.Z)(Va,[["render",Aa],["__scopeId","data-v-c1863a74"]]);var Za=Oa,$a=n(7261),Ta=n(3213),Wa=n(6791),Ea=n(3405);const Fa=e=>((0,a.dD)("data-v-0021cd76"),e=e(),(0,a.Cn)(),e),La={class:"section value"},Ua={class:"header"},Ha={class:"title"},Ga=["disabled","data-id-on-network"],Ka=Fa((()=>(0,a._)("i",{class:"fa fa-edit"},null,-1))),Ba=[Ka],Ya={class:"body"},Pa={class:"row"},Ja=Fa((()=>(0,a._)("div",{class:"param-name"},"Value",-1))),Qa={class:"param-value"},Xa={key:0,class:"value-view"},es=["textContent"],ts=["textContent"],ns={key:1,class:"value-edit"},as={key:0,class:"list"},ss=["textContent","selected","value"],ls={key:1,class:"numeric slider-container"},is={class:"col-10"},os={class:"row"},ds=["textContent"],cs=["textContent"],rs={class:"row"},us={class:"col-2"},ms=["value"],vs={key:2,class:"boolean"},hs={key:3,class:"value-data"},_s=["value"],ps=["textContent"],ws=Fa((()=>(0,a._)("div",{class:"param-name"},"Remove From Scene",-1))),gs=Fa((()=>(0,a._)("div",{class:"param-value"},[(0,a._)("i",{class:"fa fa-trash"})],-1))),ys=[ws,gs],fs={key:1,class:"row",style:{cursor:"pointer"}},ks=Fa((()=>(0,a._)("div",{class:"param-name"},"Add To Scene",-1))),bs={class:"param-value"},Cs={key:2,class:"row"},xs=Fa((()=>(0,a._)("div",{class:"param-name"},"Help",-1))),Rs=["textContent"],zs={class:"row"},Ns=Fa((()=>(0,a._)("div",{class:"param-name"},"Value ID",-1))),Ds=["textContent"],qs={key:3,class:"row"},Ss=Fa((()=>(0,a._)("div",{class:"param-name"},"ID on Network",-1))),Is=["textContent"],Ms={class:"row"},js=Fa((()=>(0,a._)("div",{class:"param-name"},"Command Class",-1))),As=["textContent"],Vs={key:4,class:"row"},Os=Fa((()=>(0,a._)("div",{class:"param-name"},"Last Update",-1))),Zs=["textContent"];function $s(e,t,n,l,i,o){const d=(0,a.up)("Slider"),c=(0,a.up)("ToggleSwitch"),r=(0,a.up)("DropdownItem"),u=(0,a.up)("Dropdown");return(0,a.wg)(),(0,a.iD)("div",La,[(0,a._)("div",Ua,[(0,a._)("div",Ha,[(0,a._)("button",{class:"btn btn-default btn-value-name-edit",title:"Edit value name",disabled:i.commandRunning,"data-id-on-network":n.value.id_on_network,onClick:t[0]||(t[0]=(...e)=>o.editName&&o.editName(...e))},Ba,8,Ga),(0,a.Uk)(" "+(0,s.zw)(n.value.label),1)])]),(0,a._)("div",Ya,[(0,a._)("div",Pa,[Ja,(0,a._)("div",Qa,[n.value.is_read_only?((0,a.wg)(),(0,a.iD)("div",Xa,[(0,a._)("div",{class:"value-data",textContent:(0,s.zw)(n.value.data)},null,8,es),n.value.units?.length?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"unit",textContent:(0,s.zw)(n.value.units)},null,8,ts)):(0,a.kq)("",!0)])):((0,a.wg)(),(0,a.iD)("div",ns,[(0,a._)("div",{class:(0,s.C_)(["col-"+(n.value.units?.length?"11":"12")])},["List"===n.value.type?((0,a.wg)(),(0,a.iD)("div",as,[(0,a._)("label",null,[(0,a._)("select",{onChange:t[1]||(t[1]=(...e)=>o.onValueChange&&o.onValueChange(...e))},[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(n.value.data_items,((e,t)=>((0,a.wg)(),(0,a.iD)("option",{textContent:(0,s.zw)("object"===typeof e?e.text:e),key:t,selected:"object"===typeof e?n.value.data===e.value:n.value.data===e,value:"object"===typeof e?e.value:t},null,8,ss)))),128))],32)])])):["Int","Long","Byte","Decimal","Short"].indexOf(n.value.type)>=0?((0,a.wg)(),(0,a.iD)("div",ls,[(0,a._)("div",is,[(0,a._)("div",os,[(0,a._)("span",{class:"value-min",textContent:(0,s.zw)(n.value.min)},null,8,ds),(0,a._)("span",{class:"value-max",textContent:(0,s.zw)(n.value.max)},null,8,cs)]),(0,a._)("div",rs,[(0,a._)("label",null,[(0,a.Wm)(d,{range:[n.value.min,n.value.max],value:n.value.data,onChange:o.onValueChange},null,8,["range","value","onChange"])])])]),(0,a._)("div",us,[(0,a._)("label",null,[(0,a._)("input",{type:"text",value:n.value.data,onChange:t[2]||(t[2]=(...e)=>o.onValueChange&&o.onValueChange(...e))},null,40,ms)])])])):["Bool","Button"].indexOf(n.value.type)>=0?((0,a.wg)(),(0,a.iD)("div",vs,[(0,a.Wm)(c,{value:n.value.data,onInput:t[3]||(t[3]=e=>o.onValueChange(e,!n.value.data))},null,8,["value"])])):((0,a.wg)(),(0,a.iD)("div",hs,[(0,a._)("label",null,[(0,a._)("input",{type:"text",value:n.value.data,onChange:t[4]||(t[4]=(...e)=>o.onValueChange&&o.onValueChange(...e))},null,40,_s)])]))],2),n.value.units?.length?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"col-1 unit",textContent:(0,s.zw)(n.value.units)},null,8,ps)):(0,a.kq)("",!0)]))])]),null!=n.sceneId?((0,a.wg)(),(0,a.iD)("div",{key:0,class:"row",style:{cursor:"pointer"},onClick:t[5]||(t[5]=t=>e.$emit("remove-from-scene",{valueId:n.value.id_on_network,sceneId:n.sceneId}))},ys)):(0,a.kq)("",!0),o.addValueToSceneItems?.length?((0,a.wg)(),(0,a.iD)("div",fs,[ks,(0,a._)("div",bs,[(0,a.Wm)(u,{title:"Add to scene","icon-class":"fa fa-plus"},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(o.addValueToSceneItems,((t,s)=>((0,a.wg)(),(0,a.j4)(r,{key:s,text:t.label,disabled:i.commandRunning,onClick:a=>e.$emit("add-to-scene",{sceneId:t.scene_id,valueId:n.value.id_on_network})},null,8,["text","disabled","onClick"])))),128))])),_:1})])])):(0,a.kq)("",!0),n.value.help?.length?((0,a.wg)(),(0,a.iD)("div",Cs,[xs,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.value.help)},null,8,Rs)])):(0,a.kq)("",!0),(0,a._)("div",zs,[Ns,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.value.value_id)},null,8,Ds)]),n.value.value_id!==n.value.id_on_network?((0,a.wg)(),(0,a.iD)("div",qs,[Ss,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.value.id_on_network)},null,8,Is)])):(0,a.kq)("",!0),(0,a._)("div",Ms,[js,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(n.value.command_class_name||n.value.command_class)},null,8,As)]),n.value.last_update?((0,a.wg)(),(0,a.iD)("div",Vs,[Os,(0,a._)("div",{class:"param-value",textContent:(0,s.zw)(e.formatDateTime(n.value.last_update))},null,8,Zs)])):(0,a.kq)("",!0)])])}var Ts=n(4358),Ws={name:"Value",components:{Slider:Ts.Z,Dropdown:$a.Z,DropdownItem:Ta.Z,ToggleSwitch:Ea.Z},mixins:[mt],emits:["remove-from-scene","add-to-scene","refresh"],props:{value:{type:Object,required:!0},node:{type:Object,required:!0},selected:{type:Boolean,default:!1},sceneId:{type:Number},scenes:{type:Object,default:()=>({})}},data(){return{commandRunning:!1}},computed:{addValueToSceneItems(){return Object.values(this.scenes||{}).filter((e=>!(this.value.id_on_network in e.values)))}},methods:{async editName(){const e=this.node.values[this.value.id_on_network];let t=prompt("New name",e.label);if(t?.length&&(t=t.trim()),t?.length&&t!==e.label){this.commandRunning=!0;try{await this.zrequest("set_value_label",{id_on_network:e.id_on_network,new_label:t})}finally{this.commandRunning=!1}this.$emit("refresh"),this.notify({text:"Value successfully renamed",image:{iconClass:"fa fa-check"}})}},async onValueChange(e,t){const n=e.target?e.target:e.event.target.parentElement,a=this.node.values[this.value.id_on_network];switch(void 0===t&&(t=null!=n.value?n.value:e.value),a.type){case"List":t=a.data_items[e.target.value];break;case"Int":case"Short":case"Long":case"Byte":t=parseInt(t);break;case"Decimal":t=parseFloat(t);break}"object"===typeof t&&(t=t.value),this.commandRunning=!0;try{await this.zrequest("set_value",{id_on_network:a.id_on_network,data:t})}finally{this.commandRunning=!1}this.$emit("refresh"),this.notify({text:"Value successfully modified",image:{iconClass:"fa fa-check"}})}}};const Es=(0,ht.Z)(Ws,[["render",$s],["__scopeId","data-v-0021cd76"]]);var Fs=Es,Ls={name:"Zwave",mixins:[mt],components:{Alert:Za,Dropdown:$a.Z,DropdownItem:Ta.Z,Group:pt,Loading:Wa.Z,Modal:qa.Z,Node:Da,ToggleSwitch:Ea.Z,Value:Fs},data(){return{status:{},views:{},nodes:{},groups:{},scenes:{},commandRunning:!1,values:{switches:{},dimmers:{},sensors:{},battery_levels:{},power_levels:{},bulbs:{},doorlocks:{},usercodes:{},thermostats:{},protections:{}},selected:{view:"nodes",nodeId:void 0,groupId:void 0,sceneId:void 0,valueId:void 0},loading:{status:!1,nodes:!1,groups:!1,scenes:!1}}},computed:{valuesMap(){const e={};for(const t of Object.values(this.nodes))for(const n of Object.values(t.values))e[n.id_on_network]=n;return e}},methods:{async refreshNodes(){this.loading.nodes=!0;try{this.nodes=await this.zrequest("get_nodes")}finally{this.loading.nodes=!1}Object.keys(this.nodes||{}).length&&(this.views.values=!0)},async refreshGroups(){this.loading.groups=!0;try{this.groups=Object.values(await this.zrequest("get_groups")).filter((e=>e.index)).reduce(((e,t)=>{const n=t.group_id||t.index;return e[n]=t,e}),{})}finally{this.loading.groups=!1}Object.keys(this.groups||{}).length&&(this.views.groups=!0)},async refreshScenes(){this.loading.scenes=!0;try{this.scenes=Object.values(await this.zrequest("get_scenes")).filter((e=>e.scene_id)).reduce(((e,t)=>(e[t.scene_id]=t,e)),{})}finally{this.loading.scenes=!1}Object.keys(this.scenes||{}).length&&(this.views.values=!0)},async refreshValues(e){this.loading.values=!0;try{this.values[e]=Object.values(await this.zrequest("get_"+e)).filter((e=>e.id_on_network)).reduce(((e,t)=>(e[t.id_on_network]=!0,e)),{})}finally{this.loading.values=!1}Object.keys(this.values[e]).length&&(this.views[e]=!0)},async refreshStatus(){this.loading.status=!0;try{this.status=await this.zrequest("controller_status")}finally{this.loading.status=!1}},refresh(){this.views={nodes:!0,scenes:!0},this.refreshNodes(),this.refreshGroups(),this.refreshScenes(),this.refreshValues("switches"),this.refreshValues("dimmers"),this.refreshValues("sensors"),this.refreshValues("bulbs"),this.refreshValues("doorlocks"),this.refreshValues("usercodes"),this.refreshValues("thermostats"),this.refreshValues("protections"),this.refreshValues("battery_levels"),this.refreshValues("power_levels"),this.refreshValues("node_config"),this.refreshStatus()},async addScene(){let e=prompt("Scene name");if(e?.length&&(e=e.trim()),e?.length){this.commandRunning=!0;try{await this.zrequest("create_scene",{label:e}),await this.refreshScenes()}finally{this.commandRunning=!1}}},async removeScene(e){if(confirm("Are you sure that you want to delete this scene?")){this.commandRunning=!0;try{await this.zrequest("remove_scene",{scene_id:e}),await this.refreshScenes()}finally{this.commandRunning=!1}}},onNodeUpdate(e){this.nodes[e.node.node_id]=e.node,e.value&&(this.nodes[e.node.node_id].values[e.value.id_on_network]=e.value)},onNodeClick(e){this.selected.nodeId=e===this.selected.nodeId?void 0:e},networkInfoModalOpen(){this.refreshStatus(),this.$refs.networkInfoModal.show()},onCommandEvent(e){e.error&&e.error.length&&this.notify({text:e.state_description+": "+e.error_description,error:!0})},resetAddNodeModal(){[...this.$refs.addNodeModal.$el.querySelectorAll(".fields input")].forEach((e=>{e.value="timeout"===e.attributes.name.value?30:""}))},openAddNodeModal(){this.resetAddNodeModal(),this.$refs.addNodeModal.show()},closeAddNodeModal(){this.resetAddNodeModal(),this.$refs.addNodeModal.close()},async addNode(){const e=this.$refs.addNodeForm,t=e.querySelector("input[name=name]").value?.trim(),n=e.querySelector("input[name=location]").value?.trim(),a=parseInt(e.querySelector("input[name=location]").value?.trim()||30);if(t?.length){this.commandRunning=!0;try{await this.zrequest("add_node",{name:t,location:n,timeout:a}),this.closeAddNodeModal()}finally{this.commandRunning=!1}await this.refreshNodes()}else this.$refs.noNodeNameModal.show()},async addToGroup(e,t){this.commandRunning=!0;try{await this.zrequest("add_node_to_group",{node_id:e,group_index:t})}finally{this.commandRunning=!1}await this.refreshGroups()},async removeNode(){this.commandRunning=!0;try{await this.zrequest("remove_node")}finally{this.commandRunning=!1}await this.refreshNodes()},async removeValueFromScene(e){if(confirm("Are you sure that you want to remove this value from the scene?")){this.commandRunning=!0;try{await this.zrequest("scene_remove_value",{id_on_network:e.valueId,scene_id:e.sceneId})}finally{this.commandRunning=!1}await this.refreshScenes()}},async renameScene(e){const t=this.scenes[e];let n=prompt("New name",t.label);if(n&&(n=n.trim()),n?.length&&n!==t.label){this.commandRunning=!0;try{await this.zrequest("set_scene_label",{new_label:n,scene_id:e})}finally{this.commandRunning=!1}await this.refreshScenes()}},async startNetwork(){this.commandRunning=!0;try{await this.zrequest("start_network")}finally{this.commandRunning=!1}},async stopNetwork(){this.commandRunning=!0;try{await this.zrequest("stop_network")}finally{this.commandRunning=!1}},async switchAll(e){this.commandRunning=!0;try{await this.zrequest("switch_all",{state:e}),this.refresh()}finally{this.commandRunning=!1}},async cancelCommand(){this.commandRunning=!0;try{await this.zrequest("cancel_command")}finally{this.commandRunning=!1}},async killCommand(){this.commandRunning=!0;try{await this.zrequest("kill_command")}finally{this.commandRunning=!1}},async receiveConfiguration(){this.commandRunning=!0;try{await this.zrequest("receive_configuration")}finally{this.commandRunning=!1}this.refresh()},async createNewPrimary(){this.commandRunning=!0;try{await this.zrequest("create_new_primary")}finally{this.commandRunning=!1}this.refresh()},async transferPrimaryRole(){this.commandRunning=!0;try{await this.zrequest("transfer_primary_role")}finally{this.commandRunning=!1}this.refresh()},async healNetwork(){this.commandRunning=!0;try{await this.zrequest("heal")}finally{this.commandRunning=!1}this.refresh()},async softReset(){confirm("Are you sure that you want to do a device soft reset? This won't lose network information")&&await this.zrequest("soft_reset")},async hardReset(){confirm("Are you sure that you want to do a device soft reset? All network information will be LOST!")&&await this.zrequest("hard_reset")},async activateScene(e){this.commandRunning=!0;try{await this.zrequest("activate_scene",{scene_id:e})}finally{this.commandRunning=!1}},async addValueToScene(e){this.commandRunning=!0;try{await this.zrequest("scene_add_value",{id_on_network:e.valueId,scene_id:e.sceneId,data:this.valuesMap[e.valueId].data})}finally{this.commandRunning=!1}this.refresh()}},mounted(){this.refresh(),this.subscribe(this.refreshGroups,"on-zwave-node-group-event","platypush.message.event.zwave.ZwaveNodeGroupEvent"),this.subscribe(this.refreshScenes,"on-zwave-node-scene-event","platypush.message.event.zwave.ZwaveNodeSceneEvent"),this.subscribe(this.refreshNodes,"on-zwave-node-removed-event","platypush.message.event.zwave.ZwaveNodeRemovedEvent"),this.subscribe(this.onCommandEvent,"on-zwave-command-event","platypush.message.event.zwave.ZwaveCommandEvent"),this.subscribe(this.refreshStatus,"on-zwave-network-event","platypush.message.event.zwave.ZwaveNetworkReadyEvent","platypush.message.event.zwave.ZwaveNetworkStoppedEvent","platypush.message.event.zwave.ZwaveNetworkErrorEvent","platypush.message.event.zwave.ZwaveNetworkResetEvent"),this.subscribe(this.onNodeUpdate,"on-zwave-node-update-event","platypush.message.event.zwave.ZwaveNodeEvent","platypush.message.event.zwave.ZwaveNodeAddedEvent","platypush.message.event.zwave.ZwaveNodeRenamedEvent","platypush.message.event.zwave.ZwaveNodeReadyEvent","platypush.message.event.zwave.ZwaveValueAddedEvent","platypush.message.event.zwave.ZwaveValueChangedEvent","platypush.message.event.zwave.ZwaveValueRemovedEvent","platypush.message.event.zwave.ZwaveValueRefreshedEvent")},unmounted(){["on-zwave-node-group-event","on-zwave-node-scene-event","on-zwave-node-removed-event","on-zwave-command-event","on-zwave-network-event","on-zwave-node-update-event"].forEach((e=>this.unsubscribe(e)))}};const Us=(0,ht.Z)(Ls,[["render",Ve]]);var Hs=Us}}]); +//# sourceMappingURL=7880.6583990d.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/7880.ceb6e400.js.map b/platypush/backend/http/webapp/dist/static/js/7880.6583990d.js.map similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/7880.ceb6e400.js.map rename to platypush/backend/http/webapp/dist/static/js/7880.6583990d.js.map index a1a445a48..3685dec9c 100644 --- a/platypush/backend/http/webapp/dist/static/js/7880.ceb6e400.js.map +++ b/platypush/backend/http/webapp/dist/static/js/7880.6583990d.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/7880.ceb6e400.js","mappings":"6LACSA,MAAM,kB,uCAMLA,MAAM,oB,6CAcHA,MAAM,cAAcC,IAAI,S,GAE1BD,MAAM,QAAQC,IAAI,S,4DAtB3BC,EAAAA,EAAAA,IAyBQ,QAzBRC,EAyBQ,CAxB8DC,EAAAC,YAAS,WAA7EH,EAAAA,EAAAA,IAGO,Q,MAHDF,OAAKM,EAAAA,EAAAA,IAAA,CAAC,eAAc,cAAwBF,EAAAG,c,CACjBH,EAAAC,YAAS,WAAxCH,EAAAA,EAAAA,IAA8D,Q,MAAxDF,MAAM,a,aAA8BQ,EAAAA,EAAAA,IAAQJ,EAASK,MAAH,K,2BACxBL,EAAAC,YAAS,WAAzCH,EAAAA,EAAAA,IAA+D,Q,MAAzDF,MAAM,c,aAA+BQ,EAAAA,EAAAA,IAAQJ,EAASK,MAAH,K,iDAG3DC,EAAAA,EAAAA,GAkBO,OAlBPC,EAkBO,EAjBLD,EAAAA,EAAAA,GAU+B,SAVxBV,OAAKM,EAAAA,EAAAA,IA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QAAgB,GAAQ,CAAC,CAAC,SAASnU,MAEpE,S","sources":["webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/Zwave/Zwave.vue","webpack://platypush/./src/components/panels/Zwave/Group.vue","webpack://platypush/./src/components/panels/Zwave/mixin.js","webpack://platypush/./src/components/panels/Zwave/Group.vue?d37f","webpack://platypush/./src/components/panels/Zwave/Node.vue","webpack://platypush/./src/components/panels/Zwave/Node.vue?4a32","webpack://platypush/./src/components/elements/Alert.vue","webpack://platypush/./src/components/elements/Alert.vue?2ca5","webpack://platypush/./src/components/panels/Zwave/Value.vue","webpack://platypush/./src/components/panels/Zwave/Value.vue?c87f","webpack://platypush/./src/components/panels/Zwave/Zwave.vue?dac2"],"sourcesContent":["\n \n\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=4b38623f&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=4b38623f&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4b38623f\"]])\n\nexport default __exports__","\n \n \n \n \n\n\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n\n","\n\n \n\n\n\n\n\n \n\n\n\n\nState\n \n\n\n\nDevice\n \n\n\n\n\n\nStatistics\n\n\n\n \n \n\n\n \n\n\n\n\n\n\n\n\n\n\nSelect nodes to add\n\n\ngroups[selected.groupId].associations.indexOf(n.node_id) < 0)\">\n \n\n\n No node name specified\n \n\n\n \n\n \n\n\n\n\n \n\n\n\n\n\n\n\n \n\n\nNo nodes available on the network\n\n \n\n\n\n \n\n\nNo groups available on the network\nnodes[node]).\n reduce((nodes, node) => {nodes[node.node_id] = node; return nodes}, {}) : {}\"\n :owner=\"group.node_id != null ? nodes[group.node_id] : null\" :plugin-name=\"pluginName\"\n @select=\"selected.groupId = groupId === selected.groupId ? undefined : groupId\"\n @open-add-nodes-to-group=\"$refs.addNodesToGroupModal.show()\" />\n \n\n\n\n \n\n\nNo scenes configured on the network\n\n \n\n\n\n\n\n\n\nScene ID\n \n\n\n\nActivate\n\n\n\n \n\n\n\n\n\nValues\n\n\n\n\n\n {{ nodes[value.node_id].name }} ⇨ {{ valuesMap[value.id_on_network].label }}\n\n\n \n\n \n\n\n\n\n\nActions\n\n\n\n\n\nRemove Scene\n\n \n\n\n\nRename Scene\n\n \n\n\n\n\n \n\n\nNo nodes found on the network\n\n\nvalue.id_on_network in values[selected.view]).length > 0\">\n \n\n\n\n\n\n\n\n\n\n \n \n\n\n\n\n\n\n\n\n","import Utils from \"@/Utils\";\n\nexport default {\n mixins: [Utils],\n props: {\n pluginName: {\n type: String,\n required: true,\n },\n },\n\n methods: {\n async zrequest(method, args) {\n return await this.request(`${this.pluginName}.${method}`, args)\n },\n }\n}\n","import { render } from \"./Group.vue?vue&type=template&id=56458f8e&scoped=true\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=56458f8e&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-56458f8e\"]])\n\nexport default __exports__","\n\n\n\n\n\n\nOwner\n\n \n\n\n\n\n\n\nNodes\n \n\n\n\n\n\n`\" />\n\n \n\n\n\n\n\nParameters\n\n\n\n\n\nIndex\n \n\n\nMax associations\n \n\n`\" @click=\"$emit('select')\" />\n\n\n\n\n\n\n\n\n","import { render } from \"./Node.vue?vue&type=template&id=3da196a6&scoped=true\"\nimport script from \"./Node.vue?vue&type=script&lang=js\"\nexport * from \"./Node.vue?vue&type=script&lang=js\"\n\nimport \"./Node.vue?vue&type=style&index=0&id=3da196a6&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3da196a6\"]])\n\nexport default __exports__","\n\n\n\nName\n\n\n\n \n\n\n\n `\" />\n \n\n\n\n\nLocation\n\n\n\n \n\n\n\n \n\n \n\n\n\nType\n \n\n\n\nRole\n \n\n\n\nNode ID\n \n\n\n\nNeighbours\n\n \n\n\n\n\nIs Ready\n \n\n\n\nIs Failed\n \n\n\n\nProduct ID\n \n\n\n\nProduct Type\n \n\n\n\nProduct Name\n \n\n\n\nManufacturer ID\n \n\n\n\nManufacturer Name\n \n\n\n\nCapabilities\n \n\n\n\nCommand Classes\n \n\n\nGroups\ng.label || '').join(', ')\" />\n\n\n\n\n\nHome ID\n \n\n\n\nIs Awake\n \n\n\n\nIs Locked\n \n\n\n\nLast Update\n \n\n\n\nBaud Rate\n \n\n\n\nMax Baud Rate\n \n\n\n\n\n\nActions\n\n\n\n\n\nRemove Failed Node\n\n \n\n\n\n\nReplace Failed Node\n\n \n\n\n\n\nHeal Node\n\n \n\n\n\n\nReplicate info to secondary controller\n\n \n\n\n\n\nRequest network update\n\n \n\n\n\nRequest neighbours update\n\n \n\n\n \n\n\n\n\n\n","import { render } from \"./Alert.vue?vue&type=template&id=c1863a74&scoped=true\"\nimport script from \"./Alert.vue?vue&type=script&lang=js\"\nexport * from \"./Alert.vue?vue&type=script&lang=js\"\n\nimport \"./Alert.vue?vue&type=style&index=0&id=c1863a74&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-c1863a74\"]])\n\nexport default __exports__","\n\n\n\n \n\n \n\n\n\n\n\n\n","import { render } from \"./Value.vue?vue&type=template&id=0021cd76&scoped=true\"\nimport script from \"./Value.vue?vue&type=script&lang=js\"\nexport * from \"./Value.vue?vue&type=script&lang=js\"\n\nimport \"./Value.vue?vue&type=style&index=0&id=0021cd76&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0021cd76\"]])\n\nexport default __exports__","import { render } from \"./Zwave.vue?vue&type=template&id=2a026312\"\nimport script from \"./Zwave.vue?vue&type=script&lang=js\"\nexport * from \"./Zwave.vue?vue&type=script&lang=js\"\n\nimport \"./Zwave.vue?vue&type=style&index=0&id=2a026312&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","ref","_createElementBlock","_hoisted_1","$props","withRange","_normalizeClass","withLabel","_toDisplayString","range","_createElementVNode","_hoisted_4","type","min","max","step","disabled","value","onInput","_cache","_withModifiers","args","$options","onUpdate","onChange","_hoisted_6","_hoisted_7","name","emits","props","Number","Boolean","default","Array","methods","event","this","update","target","$emit","$refs","sliderWidth","clientWidth","percent","innerWidth","thumb","style","left","transform","track","width","mounted","$watch","newValue","__exports__","render","onClick","checked","_hoisted_2","_hoisted_3","_renderSlot","_ctx","$slots","undefined","placeholder","_hoisted_31","_hoisted_33","_hoisted_38","_hoisted_42","_hoisted_46","_hoisted_64","_hoisted_70","_hoisted_71","_hoisted_74","_hoisted_75","_hoisted_79","_createVNode","_component_Modal","title","$data","loading","status","_createBlock","_component_Loading","key","_hoisted_5","state","_hoisted_8","device","_hoisted_10","_hoisted_11","_hoisted_12","_Fragment","_renderList","stats","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","selected","groupId","_hoisted_19","Object","values","nodes","filter","n","groups","associations","indexOf","node_id","node","$event","addToGroup","_component_Alert","_hoisted_22","_hoisted_23","onSubmit","addNode","_hoisted_24","_hoisted_25","commandRunning","closeAddNodeModal","_hoisted_27","_hoisted_28","view","views","id","toUpperCase","slice","replace","_hoisted_30","addScene","_component_Dropdown","_component_DropdownItem","text","networkInfoModalOpen","startNetwork","stopNetwork","openAddNodeModal","removeNode","switchAll","cancelCommand","killCommand","receiveConfiguration","createNewPrimary","transferPrimaryRole","healNetwork","softReset","hardReset","refresh","_hoisted_35","_hoisted_36","keys","length","_hoisted_37","_hoisted_39","nodeId","_component_Node","pluginName","onSelect","onNodeClick","_hoisted_40","_hoisted_41","_hoisted_43","group","_component_Group","map","reduce","owner","onOpenAddNodesToGroup","addNodesToGroupModal","show","_hoisted_44","scenes","_hoisted_45","_hoisted_47","scene","sceneId","label","_hoisted_49","_hoisted_50","_hoisted_51","_hoisted_53","_hoisted_54","_hoisted_55","_component_ToggleSwitch","activateScene","_hoisted_56","_hoisted_57","_hoisted_58","id_on_network","_hoisted_59","valuesMap","_hoisted_60","data","_hoisted_62","removeValueFromScene","valueId","_hoisted_66","_hoisted_67","_hoisted_68","removeScene","renameScene","_hoisted_77","_hoisted_78","_hoisted_80","_hoisted_82","_hoisted_83","_component_Value","onAddToScene","addValueToScene","onRemoveFromScene","onRefresh","refreshNodes","index","_hoisted_9","max_associations","_hoisted_13","i","removeFromGroup","_hoisted_20","_hoisted_21","_hoisted_26","mixins","Utils","String","required","zrequest","method","request","mixin","confirm","group_id","group_index","_hoisted_97","_hoisted_98","_hoisted_100","_hoisted_101","_hoisted_103","_hoisted_104","_hoisted_106","_hoisted_107","_hoisted_109","_hoisted_110","_hoisted_112","_hoisted_113","hidden","editMode","editName","_hoisted_14","onEditMode","location","editLocation","_hoisted_29","_hoisted_34","role","neighbours","neighbour","is_ready","is_failed","_hoisted_52","manufacturer_id","product_type","product_name","_hoisted_61","manufacturer_name","_hoisted_65","capabilities","join","command_classes","_hoisted_73","g","home_id","_hoisted_76","toString","is_awake","is_locked","last_update","_hoisted_85","_hoisted_86","formatDateTime","baud_rate","_hoisted_88","_hoisted_89","max_baud_rate","_hoisted_91","_hoisted_92","_hoisted_94","_hoisted_95","_hoisted_96","removeFailedNode","replaceFailedNode","heal","replicationSend","requestNetworkUpdate","requestNeighbourUpdate","notify","mode","form","input","querySelector","setTimeout","focus","select","new_name","console","log","close","onTouch","components","Modal","modal","hide","is_read_only","units","onValueChange","data_items","_component_Slider","addValueToSceneItems","_hoisted_32","scene_id","help","value_id","command_class_name","command_class","_hoisted_48","Slider","Dropdown","DropdownItem","ToggleSwitch","computed","prompt","trim","new_label","image","iconClass","parentElement","parseInt","parseFloat","Alert","Group","Loading","Node","Value","switches","dimmers","sensors","battery_levels","power_levels","bulbs","doorlocks","usercodes","thermostats","protections","refreshGroups","refreshScenes","refreshValues","item","refreshStatus","onNodeUpdate","networkInfoModal","onCommandEvent","error","state_description","error_description","resetAddNodeModal","addNodeModal","$el","querySelectorAll","forEach","el","attributes","addNodeForm","timeout","noNodeNameModal","subscribe","unmounted","eventType","unsubscribe"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/7880.6583990d.js","mappings":"6LACSA,MAAM,kB,uCAMLA,MAAM,oB,6CAcHA,MAAM,cAAcC,IAAI,S,GAE1BD,MAAM,QAAQC,IAAI,S,4DAtB3BC,EAAAA,EAAAA,IAyBQ,QAzBRC,EAyBQ,CAxB8DC,EAAAC,YAAS,WAA7EH,EAAAA,EAAAA,IAGO,Q,MAHDF,OAAKM,EAAAA,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U,KAAKoV,UAAUpV,KAAKkL,aAAc,8BAC9B,uDAEJlL,KAAKoV,UAAUpV,KAAKsU,eAAgB,yBAChC,mDAEJtU,KAAKoV,UAAUpV,KAAKmU,cAAe,yBAC/B,uDACA,yDACA,uDACA,wDAEJnU,KAAKoV,UAAUpV,KAAKoU,aAAc,6BAC9B,+CACA,oDACA,sDACA,oDACA,qDACA,uDACA,uDACA,yDACN,EAEAiB,SAAAA,GACE,CACE,4BAA6B,4BAA6B,8BAA+B,yBACzF,yBAA0B,8BAC1BP,SAASQ,GAActV,KAAKuV,YAAYD,IAC5C,GUxuBF,MAAM,IAA2B,QAAgB,GAAQ,CAAC,CAAC,SAASnU,MAEpE,S","sources":["webpack://platypush/./src/components/elements/Slider.vue","webpack://platypush/./src/components/elements/Slider.vue?787f","webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/Zwave/Zwave.vue","webpack://platypush/./src/components/panels/Zwave/Group.vue","webpack://platypush/./src/components/panels/Zwave/mixin.js","webpack://platypush/./src/components/panels/Zwave/Group.vue?d37f","webpack://platypush/./src/components/panels/Zwave/Node.vue","webpack://platypush/./src/components/panels/Zwave/Node.vue?4a32","webpack://platypush/./src/components/elements/Alert.vue","webpack://platypush/./src/components/elements/Alert.vue?2ca5","webpack://platypush/./src/components/panels/Zwave/Value.vue","webpack://platypush/./src/components/panels/Zwave/Value.vue?c87f","webpack://platypush/./src/components/panels/Zwave/Zwave.vue?dac2"],"sourcesContent":["\n \n\n\n\n\n\n","import { render } from \"./Slider.vue?vue&type=template&id=4b38623f&scoped=true\"\nimport script from \"./Slider.vue?vue&type=script&lang=js\"\nexport * from \"./Slider.vue?vue&type=script&lang=js\"\n\nimport \"./Slider.vue?vue&type=style&index=0&id=4b38623f&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4b38623f\"]])\n\nexport default __exports__","\n\n\n\n\n \n {{ value.label }}\n\n\n\n\n\n\nValue\n\n\n\n \n \n\n\n\n\n\n\n\n \n\n \n\n\n= 0\">\n\n\n\n\n\n \n \n\n\n \n\n\n \n\n= 0\">\n\n\n\n \n \n\n\n\n\nRemove From Scene\n\n \n\n\n\n\nAdd To Scene\n\n\n\n \n\n \n\n\nHelp\n \n\n\n\nValue ID\n \n\n\n\nID on Network\n \n\n\n\nCommand Class\n \n\n\nLast Update\n \n\n \n \n \n\n\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n\n","\n\n \n\n\n\n\n\n \n\n\n\n\nState\n \n\n\n\nDevice\n \n\n\n\n\n\nStatistics\n\n\n\n \n \n\n\n \n\n\n\n\n\n\n\n\n\n\nSelect nodes to add\n\n\ngroups[selected.groupId].associations.indexOf(n.node_id) < 0)\">\n \n\n\n No node name specified\n \n\n\n \n\n \n\n\n\n\n \n\n\n\n\n\n\n\n \n\n\nNo nodes available on the network\n\n \n\n\n\n \n\n\nNo groups available on the network\nnodes[node]).\n reduce((nodes, node) => {nodes[node.node_id] = node; return nodes}, {}) : {}\"\n :owner=\"group.node_id != null ? nodes[group.node_id] : null\" :plugin-name=\"pluginName\"\n @select=\"selected.groupId = groupId === selected.groupId ? undefined : groupId\"\n @open-add-nodes-to-group=\"$refs.addNodesToGroupModal.show()\" />\n \n\n\n\n \n\n\nNo scenes configured on the network\n\n \n\n\n\n\n\n\n\nScene ID\n \n\n\n\nActivate\n\n\n\n \n\n\n\n\n\nValues\n\n\n\n\n\n {{ nodes[value.node_id].name }} ⇨ {{ valuesMap[value.id_on_network].label }}\n\n\n \n\n \n\n\n\n\n\nActions\n\n\n\n\n\nRemove Scene\n\n \n\n\n\nRename Scene\n\n \n\n\n\n\n \n\n\nNo nodes found on the network\n\n\nvalue.id_on_network in values[selected.view]).length > 0\">\n \n\n\n\n\n\n\n\n\n\n \n \n\n\n\n\n\n\n\n\n","import Utils from \"@/Utils\";\n\nexport default {\n mixins: [Utils],\n props: {\n pluginName: {\n type: String,\n required: true,\n },\n },\n\n methods: {\n async zrequest(method, args) {\n return await this.request(`${this.pluginName}.${method}`, args)\n },\n }\n}\n","import { render } from \"./Group.vue?vue&type=template&id=56458f8e&scoped=true\"\nimport script from \"./Group.vue?vue&type=script&lang=js\"\nexport * from \"./Group.vue?vue&type=script&lang=js\"\n\nimport \"./Group.vue?vue&type=style&index=0&id=56458f8e&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-56458f8e\"]])\n\nexport default __exports__","\n\n\n\n\n\n\nOwner\n\n \n\n\n\n\n\n\nNodes\n \n\n\n\n\n\n`\" />\n\n \n\n\n\n\n\nParameters\n\n\n\n\n\nIndex\n \n\n\nMax associations\n \n\n`\" @click=\"$emit('select')\" />\n\n\n\n\n\n\n\n\n","import { render } from \"./Node.vue?vue&type=template&id=3da196a6&scoped=true\"\nimport script from \"./Node.vue?vue&type=script&lang=js\"\nexport * from \"./Node.vue?vue&type=script&lang=js\"\n\nimport \"./Node.vue?vue&type=style&index=0&id=3da196a6&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3da196a6\"]])\n\nexport default __exports__","\n\n\n\nName\n\n\n\n \n\n\n\n `\" />\n \n\n\n\n\nLocation\n\n\n\n \n\n\n\n \n\n \n\n\n\nType\n \n\n\n\nRole\n \n\n\n\nNode ID\n \n\n\n\nNeighbours\n\n \n\n\n\n\nIs Ready\n \n\n\n\nIs Failed\n \n\n\n\nProduct ID\n \n\n\n\nProduct Type\n \n\n\n\nProduct Name\n \n\n\n\nManufacturer ID\n \n\n\n\nManufacturer Name\n \n\n\n\nCapabilities\n \n\n\n\nCommand Classes\n \n\n\nGroups\ng.label || '').join(', ')\" />\n\n\n\n\n\nHome ID\n \n\n\n\nIs Awake\n \n\n\n\nIs Locked\n \n\n\n\nLast Update\n \n\n\n\nBaud Rate\n \n\n\n\nMax Baud Rate\n \n\n\n\n\n\nActions\n\n\n\n\n\nRemove Failed Node\n\n \n\n\n\n\nReplace Failed Node\n\n \n\n\n\n\nHeal Node\n\n \n\n\n\n\nReplicate info to secondary controller\n\n \n\n\n\n\nRequest network update\n\n \n\n\n\nRequest neighbours update\n\n \n\n\n \n\n\n\n\n\n","import { render } from \"./Alert.vue?vue&type=template&id=c1863a74&scoped=true\"\nimport script from \"./Alert.vue?vue&type=script&lang=js\"\nexport * from \"./Alert.vue?vue&type=script&lang=js\"\n\nimport \"./Alert.vue?vue&type=style&index=0&id=c1863a74&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-c1863a74\"]])\n\nexport default __exports__","\n\n\n\n \n\n \n\n\n\n\n\n\n","import { render } from \"./Value.vue?vue&type=template&id=0021cd76&scoped=true\"\nimport script from \"./Value.vue?vue&type=script&lang=js\"\nexport * from \"./Value.vue?vue&type=script&lang=js\"\n\nimport \"./Value.vue?vue&type=style&index=0&id=0021cd76&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0021cd76\"]])\n\nexport default __exports__","import { render } from \"./Zwave.vue?vue&type=template&id=2a026312\"\nimport script from \"./Zwave.vue?vue&type=script&lang=js\"\nexport * from \"./Zwave.vue?vue&type=script&lang=js\"\n\nimport \"./Zwave.vue?vue&type=style&index=0&id=2a026312&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","ref","_createElementBlock","_hoisted_1","$props","withRange","_normalizeClass","withLabel","_toDisplayString","range","_createElementVNode","_hoisted_4","type","min","max","step","disabled","value","onInput","_cache","_withModifiers","args","$options","onUpdate","onChange","_hoisted_6","_hoisted_7","name","emits","props","Number","Boolean","default","Array","methods","event","this","update","target","$emit","$refs","sliderWidth","clientWidth","percent","innerWidth","thumb","style","left","transform","track","width","mounted","$watch","newValue","__exports__","render","onClick","checked","_hoisted_2","_hoisted_3","_renderSlot","_ctx","$slots","undefined","placeholder","_hoisted_31","_hoisted_33","_hoisted_38","_hoisted_42","_hoisted_46","_hoisted_64","_hoisted_70","_hoisted_71","_hoisted_74","_hoisted_75","_hoisted_79","_createVNode","_component_Modal","title","$data","loading","status","_createBlock","_component_Loading","key","_hoisted_5","state","_hoisted_8","device","_hoisted_10","_hoisted_11","_hoisted_12","_Fragment","_renderList","stats","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","selected","groupId","_hoisted_19","Object","values","nodes","filter","n","groups","associations","indexOf","node_id","node","$event","addToGroup","_component_Alert","_hoisted_22","_hoisted_23","onSubmit","addNode","_hoisted_24","_hoisted_25","commandRunning","closeAddNodeModal","_hoisted_27","_hoisted_28","view","views","id","toUpperCase","slice","replace","_hoisted_30","addScene","_component_Dropdown","_component_DropdownItem","text","networkInfoModalOpen","startNetwork","stopNetwork","openAddNodeModal","removeNode","switchAll","cancelCommand","killCommand","receiveConfiguration","createNewPrimary","transferPrimaryRole","healNetwork","softReset","hardReset","refresh","_hoisted_35","_hoisted_36","keys","length","_hoisted_37","_hoisted_39","nodeId","_component_Node","pluginName","onSelect","onNodeClick","_hoisted_40","_hoisted_41","_hoisted_43","group","_component_Group","map","reduce","owner","onOpenAddNodesToGroup","addNodesToGroupModal","show","_hoisted_44","scenes","_hoisted_45","_hoisted_47","scene","sceneId","label","_hoisted_49","_hoisted_50","_hoisted_51","_hoisted_53","_hoisted_54","_hoisted_55","_component_ToggleSwitch","activateScene","_hoisted_56","_hoisted_57","_hoisted_58","id_on_network","_hoisted_59","valuesMap","_hoisted_60","data","_hoisted_62","removeValueFromScene","valueId","_hoisted_66","_hoisted_67","_hoisted_68","removeScene","renameScene","_hoisted_77","_hoisted_78","_hoisted_80","_hoisted_82","_hoisted_83","_component_Value","onAddToScene","addValueToScene","onRemoveFromScene","onRefresh","refreshNodes","index","_hoisted_9","max_associations","_hoisted_13","i","removeFromGroup","_hoisted_20","_hoisted_21","_hoisted_26","mixins","Utils","String","required","zrequest","method","request","mixin","confirm","group_id","group_index","_hoisted_97","_hoisted_98","_hoisted_100","_hoisted_101","_hoisted_103","_hoisted_104","_hoisted_106","_hoisted_107","_hoisted_109","_hoisted_110","_hoisted_112","_hoisted_113","hidden","editMode","editName","_hoisted_14","onEditMode","location","editLocation","_hoisted_29","_hoisted_34","role","neighbours","neighbour","is_ready","is_failed","_hoisted_52","manufacturer_id","product_type","product_name","_hoisted_61","manufacturer_name","_hoisted_65","capabilities","join","command_classes","_hoisted_73","g","home_id","_hoisted_76","toString","is_awake","is_locked","last_update","_hoisted_85","_hoisted_86","formatDateTime","baud_rate","_hoisted_88","_hoisted_89","max_baud_rate","_hoisted_91","_hoisted_92","_hoisted_94","_hoisted_95","_hoisted_96","removeFailedNode","replaceFailedNode","heal","replicationSend","requestNetworkUpdate","requestNeighbourUpdate","notify","mode","form","input","querySelector","setTimeout","focus","select","new_name","console","log","close","onTouch","components","Modal","modal","hide","is_read_only","units","onValueChange","data_items","_component_Slider","addValueToSceneItems","_hoisted_32","scene_id","help","value_id","command_class_name","command_class","_hoisted_48","Slider","Dropdown","DropdownItem","ToggleSwitch","computed","prompt","trim","new_label","image","iconClass","parentElement","parseInt","parseFloat","Alert","Group","Loading","Node","Value","switches","dimmers","sensors","battery_levels","power_levels","bulbs","doorlocks","usercodes","thermostats","protections","refreshGroups","refreshScenes","refreshValues","item","refreshStatus","onNodeUpdate","networkInfoModal","onCommandEvent","error","state_description","error_description","resetAddNodeModal","addNodeModal","$el","querySelectorAll","forEach","el","attributes","addNodeForm","timeout","noNodeNameModal","subscribe","unmounted","eventType","unsubscribe"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/813.52ce2ced.js b/platypush/backend/http/webapp/dist/static/js/813.54039bae.js similarity index 98% rename from platypush/backend/http/webapp/dist/static/js/813.52ce2ced.js rename to platypush/backend/http/webapp/dist/static/js/813.54039bae.js index 2773a1824..2dff63cea 100644 --- a/platypush/backend/http/webapp/dist/static/js/813.52ce2ced.js +++ b/platypush/backend/http/webapp/dist/static/js/813.54039bae.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[813,5324],{5324:function(a,t,e){e.r(t),e.d(t,{default:function(){return ha}});var s=e(6252),n=e(9963);const i={class:"camera"},r={class:"camera-container"},l={class:"frame-container",ref:"frameContainer"},o={key:0,class:"no-frame"},c=["src"],u={class:"controls"},h={class:"left"},p=["disabled"],d=(0,s._)("i",{class:"fa fa-play"},null,-1),m=[d],g=["disabled"],_=(0,s._)("i",{class:"fa fa-stop"},null,-1),f=[_],y=["disabled"],w=(0,s._)("i",{class:"fas fa-camera"},null,-1),C=[w],v={class:"right"},b=(0,s._)("i",{class:"fas fa-volume-mute"},null,-1),S=[b],k=(0,s._)("i",{class:"fas fa-volume-up"},null,-1),z=[k],x=(0,s._)("i",{class:"fas fa-cog"},null,-1),$=[x],F={class:"audio-container"},U={key:0,autoplay:"",preload:"none",ref:"player"},M=["src"],D={key:0,class:"url"},V={class:"row"},q=(0,s._)("span",{class:"name"},"Stream URL",-1),P=["value"],A={class:"params"},L={class:"row"},O=(0,s._)("span",{class:"name"},"Device",-1),W={class:"row"},j=(0,s._)("span",{class:"name"},"Width",-1),G={class:"row"},H=(0,s._)("span",{class:"name"},"Height",-1),I={class:"row"},R=(0,s._)("span",{class:"name"},"Horizontal Flip",-1),T={class:"row"},Z=(0,s._)("span",{class:"name"},"Vertical Flip",-1),Y={class:"row"},E=(0,s._)("span",{class:"name"},"Rotate",-1),X={class:"row"},B=(0,s._)("span",{class:"name"},"Scale-X",-1),J={class:"row"},K=(0,s._)("span",{class:"name"},"Scale-Y",-1),N={class:"row"},Q=(0,s._)("span",{class:"name"},"Frames per second",-1),aa={class:"row"},ta=(0,s._)("span",{class:"name"},"Grayscale",-1);function ea(a,t,e,d,_,w){const b=(0,s.up)("Slot"),k=(0,s.up)("Modal");return(0,s.wg)(),(0,s.iD)("div",i,[(0,s._)("div",r,[(0,s._)("div",l,[a.streaming||a.capturing||a.captured?(0,s.kq)("",!0):((0,s.wg)(),(0,s.iD)("div",o,"The camera is not active")),(0,s._)("img",{class:"frame",src:a.url,ref:"frame",alt:""},null,8,c)],512),(0,s._)("div",u,[(0,s._)("div",h,[a.streaming?((0,s.wg)(),(0,s.iD)("button",{key:1,type:"button",onClick:t[1]||(t[1]=(...t)=>a.stopStreaming&&a.stopStreaming(...t)),disabled:a.capturing,title:"Stop video"},f,8,g)):((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",onClick:t[0]||(t[0]=(...a)=>w.startStreaming&&w.startStreaming(...a)),disabled:a.capturing,title:"Start video"},m,8,p)),a.streaming?(0,s.kq)("",!0):((0,s.wg)(),(0,s.iD)("button",{key:2,type:"button",onClick:t[2]||(t[2]=(...a)=>w.capture&&w.capture(...a)),disabled:a.streaming||a.capturing,title:"Take a picture"},C,8,y))]),(0,s._)("div",v,[a.audioOn?((0,s.wg)(),(0,s.iD)("button",{key:1,type:"button",onClick:t[4]||(t[4]=(...t)=>a.stopAudio&&a.stopAudio(...t)),title:"Stop audio"},z)):((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",onClick:t[3]||(t[3]=(...t)=>a.startAudio&&a.startAudio(...t)),title:"Start audio"},S)),(0,s._)("button",{type:"button",onClick:t[5]||(t[5]=t=>a.$refs.paramsModal.show()),title:"Settings"},$)])])]),(0,s._)("div",F,[a.audioOn?((0,s.wg)(),(0,s.iD)("audio",U,[(0,s._)("source",{src:`/sound/stream.aac?t=${(new Date).getTime()}`},null,8,M),(0,s.Uk)(" Your browser does not support audio elements ")],512)):(0,s.kq)("",!0)]),a.url?.length?((0,s.wg)(),(0,s.iD)("div",D,[(0,s._)("label",V,[q,(0,s._)("input",{name:"url",type:"text",value:w.fullURL,disabled:"disabled"},null,8,P)])])):(0,s.kq)("",!0),(0,s.Wm)(k,{ref:"paramsModal",title:"Camera Parameters"},{default:(0,s.w5)((()=>[(0,s._)("div",A,[(0,s._)("label",L,[O,(0,s.wy)((0,s._)("input",{name:"device",type:"text","onUpdate:modelValue":t[6]||(t[6]=t=>a.attrs.device=t),onChange:t[7]||(t[7]=(...t)=>a.onDeviceChanged&&a.onDeviceChanged(...t))},null,544),[[n.nr,a.attrs.device]])]),(0,s._)("label",W,[j,(0,s.wy)((0,s._)("input",{name:"width",type:"text","onUpdate:modelValue":t[8]||(t[8]=t=>a.attrs.resolution[0]=t),onChange:t[9]||(t[9]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.resolution[0]]])]),(0,s._)("label",G,[H,(0,s.wy)((0,s._)("input",{name:"height",type:"text","onUpdate:modelValue":t[10]||(t[10]=t=>a.attrs.resolution[1]=t),onChange:t[11]||(t[11]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.resolution[1]]])]),(0,s._)("label",I,[R,(0,s.wy)((0,s._)("input",{name:"horizontal_flip",type:"checkbox","onUpdate:modelValue":t[12]||(t[12]=t=>a.attrs.horizontal_flip=t),onChange:t[13]||(t[13]=(...t)=>a.onFlipChanged&&a.onFlipChanged(...t))},null,544),[[n.e8,a.attrs.horizontal_flip]])]),(0,s._)("label",T,[Z,(0,s.wy)((0,s._)("input",{name:"vertical_flip",type:"checkbox","onUpdate:modelValue":t[14]||(t[14]=t=>a.attrs.vertical_flip=t),onChange:t[15]||(t[15]=(...t)=>a.onFlipChanged&&a.onFlipChanged(...t))},null,544),[[n.e8,a.attrs.vertical_flip]])]),(0,s._)("label",Y,[E,(0,s.wy)((0,s._)("input",{name:"rotate",type:"text","onUpdate:modelValue":t[16]||(t[16]=t=>a.attrs.rotate=t),onChange:t[17]||(t[17]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.rotate]])]),(0,s._)("label",X,[B,(0,s.wy)((0,s._)("input",{name:"scale_x",type:"text","onUpdate:modelValue":t[18]||(t[18]=t=>a.attrs.scale_x=t),onChange:t[19]||(t[19]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.scale_x]])]),(0,s._)("label",J,[K,(0,s.wy)((0,s._)("input",{name:"scale_y",type:"text","onUpdate:modelValue":t[20]||(t[20]=t=>a.attrs.scale_y=t),onChange:t[21]||(t[21]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.scale_y]])]),(0,s._)("label",N,[Q,(0,s.wy)((0,s._)("input",{name:"fps",type:"text","onUpdate:modelValue":t[22]||(t[22]=t=>a.attrs.fps=t),onChange:t[23]||(t[23]=(...t)=>a.onFpsChanged&&a.onFpsChanged(...t))},null,544),[[n.nr,a.attrs.fps]])]),(0,s._)("label",aa,[ta,(0,s.wy)((0,s._)("input",{name:"grayscale",type:"checkbox","onUpdate:modelValue":t[24]||(t[24]=t=>a.attrs.grayscale=t),onChange:t[25]||(t[25]=(...t)=>a.onGrayscaleChanged&&a.onGrayscaleChanged(...t))},null,544),[[n.e8,a.attrs.grayscale]])]),(0,s.Wm)(b)])])),_:1},512)])}var sa=e(5576),na={name:"CameraMixin",mixins:[sa.Z],props:{cameraPlugin:{type:String,required:!0}},data(){return{streaming:!1,capturing:!1,captured:!1,audioOn:!1,url:null,attrs:{}}},computed:{params(){return{resolution:this.attrs.resolution,device:this.attrs.device?.length?this.attrs.device:null,horizontal_flip:parseInt(0+this.attrs.horizontal_flip),vertical_flip:parseInt(0+this.attrs.vertical_flip),rotate:parseFloat(this.attrs.rotate),scale_x:parseFloat(this.attrs.scale_x),scale_y:parseFloat(this.attrs.scale_y),fps:parseFloat(this.attrs.fps),grayscale:parseInt(0+this.attrs.grayscale)}}},methods:{getUrl(a,t){return"/camera/"+a+"/"+t+"?"+Object.entries(this.params).filter((a=>null!=a[1]&&(""+a[1]).length>0)).map((([a,t])=>a+"="+t)).join("&")},_startStreaming(a){this.streaming||(this.streaming=!0,this.capturing=!1,this.captured=!1,this.url=this.getUrl(a,"video."+this.attrs.stream_format))},stopStreaming(){this.streaming&&(this.streaming=!1,this.capturing=!1,this.url=null)},_capture(a){this.capturing||(this.streaming=!1,this.capturing=!0,this.captured=!0,this.url=this.getUrl(a,"photo.jpg")+"&t="+(new Date).getTime())},onFrameLoaded(){this.capturing&&(this.capturing=!1)},onDeviceChanged(){},onFlipChanged(){},onSizeChanged(){const a=a=>a*Math.PI/180,t=a(this.params.rotate);let e=Math.round(this.params.scale_x*Math.abs(this.params.resolution[0]*Math.cos(t)+this.params.resolution[1]*Math.sin(t))),s=Math.round(this.params.scale_y*Math.abs(this.params.resolution[0]*Math.sin(t)+this.params.resolution[1]*Math.cos(t)));e>window.innerWidth&&(s=Math.round(s*(window.innerWidth/e)),e=window.innerWidth),s>window.innerHeight&&(e=Math.round(e*(window.innerHeight/s)),s=window.innerHeight),this.$refs.frameContainer.style.width=`${e}px`,this.$refs.frameContainer.style.height=`${s}px`},onFpsChanged(){},onGrayscaleChanged(){},startAudio(){this.audioOn=!0},async stopAudio(){this.audioOn=!1,await this.request("sound.stop_recording")}},created(){const a=this.$root.config[`camera.${this.cameraPlugin}`]||{};this.attrs={resolution:a.resolution||[640,480],device:a.device,horizontal_flip:a.horizontal_flip||0,vertical_flip:a.vertical_flip||0,rotate:a.rotate||0,scale_x:a.scale_x||1,scale_y:a.scale_y||1,fps:a.fps||16,grayscale:a.grayscale||0,stream_format:a.stream_format||"mjpeg"}},mounted(){this.$refs.frame.addEventListener("load",this.onFrameLoaded),this.onSizeChanged(),this.$watch((()=>this.attrs.resolution),this.onSizeChanged),this.$watch((()=>this.attrs.horizontal_flip),this.onSizeChanged),this.$watch((()=>this.attrs.vertical_flip),this.onSizeChanged),this.$watch((()=>this.attrs.rotate),this.onSizeChanged),this.$watch((()=>this.attrs.scale_x),this.onSizeChanged),this.$watch((()=>this.attrs.scale_y),this.onSizeChanged)}};const ia=na;var ra=ia,la=e(9417),oa={name:"Camera",components:{Modal:la.Z},mixins:[ra],props:{cameraPlugin:{type:String,required:!0}},computed:{fullURL(){return`${window.location.protocol}//${window.location.host}${this.url}`}},methods:{startStreaming(){this._startStreaming(this.cameraPlugin)},capture(){this._capture(this.cameraPlugin)}}},ca=e(3744);const ua=(0,ca.Z)(oa,[["render",ea]]);var ha=ua},813:function(a,t,e){e.r(t),e.d(t,{default:function(){return c}});var s=e(6252);function n(a,t,e,n,i,r){const l=(0,s.up)("Camera");return(0,s.wg)(),(0,s.j4)(l,{"camera-plugin":"gstreamer"})}var i=e(5324),r={name:"CameraGstreamer",components:{Camera:i["default"]}},l=e(3744);const o=(0,l.Z)(r,[["render",n]]);var c=o}}]); -//# sourceMappingURL=813.52ce2ced.js.map \ No newline at end of file +"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[813,5324],{5324:function(a,t,e){e.r(t),e.d(t,{default:function(){return ha}});var s=e(6252),n=e(9963);const i={class:"camera"},r={class:"camera-container"},l={class:"frame-container",ref:"frameContainer"},o={key:0,class:"no-frame"},c=["src"],u={class:"controls"},h={class:"left"},p=["disabled"],d=(0,s._)("i",{class:"fa fa-play"},null,-1),m=[d],g=["disabled"],_=(0,s._)("i",{class:"fa fa-stop"},null,-1),f=[_],y=["disabled"],w=(0,s._)("i",{class:"fas fa-camera"},null,-1),C=[w],v={class:"right"},b=(0,s._)("i",{class:"fas fa-volume-mute"},null,-1),S=[b],k=(0,s._)("i",{class:"fas fa-volume-up"},null,-1),z=[k],x=(0,s._)("i",{class:"fas fa-cog"},null,-1),$=[x],F={class:"audio-container"},U={key:0,autoplay:"",preload:"none",ref:"player"},M=["src"],D={key:0,class:"url"},V={class:"row"},q=(0,s._)("span",{class:"name"},"Stream URL",-1),P=["value"],A={class:"params"},L={class:"row"},O=(0,s._)("span",{class:"name"},"Device",-1),W={class:"row"},j=(0,s._)("span",{class:"name"},"Width",-1),G={class:"row"},H=(0,s._)("span",{class:"name"},"Height",-1),I={class:"row"},R=(0,s._)("span",{class:"name"},"Horizontal Flip",-1),T={class:"row"},Z=(0,s._)("span",{class:"name"},"Vertical Flip",-1),Y={class:"row"},E=(0,s._)("span",{class:"name"},"Rotate",-1),X={class:"row"},B=(0,s._)("span",{class:"name"},"Scale-X",-1),J={class:"row"},K=(0,s._)("span",{class:"name"},"Scale-Y",-1),N={class:"row"},Q=(0,s._)("span",{class:"name"},"Frames per second",-1),aa={class:"row"},ta=(0,s._)("span",{class:"name"},"Grayscale",-1);function ea(a,t,e,d,_,w){const b=(0,s.up)("Slot"),k=(0,s.up)("Modal");return(0,s.wg)(),(0,s.iD)("div",i,[(0,s._)("div",r,[(0,s._)("div",l,[a.streaming||a.capturing||a.captured?(0,s.kq)("",!0):((0,s.wg)(),(0,s.iD)("div",o,"The camera is not active")),(0,s._)("img",{class:"frame",src:a.url,ref:"frame",alt:""},null,8,c)],512),(0,s._)("div",u,[(0,s._)("div",h,[a.streaming?((0,s.wg)(),(0,s.iD)("button",{key:1,type:"button",onClick:t[1]||(t[1]=(...t)=>a.stopStreaming&&a.stopStreaming(...t)),disabled:a.capturing,title:"Stop video"},f,8,g)):((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",onClick:t[0]||(t[0]=(...a)=>w.startStreaming&&w.startStreaming(...a)),disabled:a.capturing,title:"Start video"},m,8,p)),a.streaming?(0,s.kq)("",!0):((0,s.wg)(),(0,s.iD)("button",{key:2,type:"button",onClick:t[2]||(t[2]=(...a)=>w.capture&&w.capture(...a)),disabled:a.streaming||a.capturing,title:"Take a picture"},C,8,y))]),(0,s._)("div",v,[a.audioOn?((0,s.wg)(),(0,s.iD)("button",{key:1,type:"button",onClick:t[4]||(t[4]=(...t)=>a.stopAudio&&a.stopAudio(...t)),title:"Stop audio"},z)):((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",onClick:t[3]||(t[3]=(...t)=>a.startAudio&&a.startAudio(...t)),title:"Start audio"},S)),(0,s._)("button",{type:"button",onClick:t[5]||(t[5]=t=>a.$refs.paramsModal.show()),title:"Settings"},$)])])]),(0,s._)("div",F,[a.audioOn?((0,s.wg)(),(0,s.iD)("audio",U,[(0,s._)("source",{src:`/sound/stream.aac?t=${(new Date).getTime()}`},null,8,M),(0,s.Uk)(" Your browser does not support audio elements ")],512)):(0,s.kq)("",!0)]),a.url?.length?((0,s.wg)(),(0,s.iD)("div",D,[(0,s._)("label",V,[q,(0,s._)("input",{name:"url",type:"text",value:w.fullURL,disabled:"disabled"},null,8,P)])])):(0,s.kq)("",!0),(0,s.Wm)(k,{ref:"paramsModal",title:"Camera Parameters"},{default:(0,s.w5)((()=>[(0,s._)("div",A,[(0,s._)("label",L,[O,(0,s.wy)((0,s._)("input",{name:"device",type:"text","onUpdate:modelValue":t[6]||(t[6]=t=>a.attrs.device=t),onChange:t[7]||(t[7]=(...t)=>a.onDeviceChanged&&a.onDeviceChanged(...t))},null,544),[[n.nr,a.attrs.device]])]),(0,s._)("label",W,[j,(0,s.wy)((0,s._)("input",{name:"width",type:"text","onUpdate:modelValue":t[8]||(t[8]=t=>a.attrs.resolution[0]=t),onChange:t[9]||(t[9]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.resolution[0]]])]),(0,s._)("label",G,[H,(0,s.wy)((0,s._)("input",{name:"height",type:"text","onUpdate:modelValue":t[10]||(t[10]=t=>a.attrs.resolution[1]=t),onChange:t[11]||(t[11]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.resolution[1]]])]),(0,s._)("label",I,[R,(0,s.wy)((0,s._)("input",{name:"horizontal_flip",type:"checkbox","onUpdate:modelValue":t[12]||(t[12]=t=>a.attrs.horizontal_flip=t),onChange:t[13]||(t[13]=(...t)=>a.onFlipChanged&&a.onFlipChanged(...t))},null,544),[[n.e8,a.attrs.horizontal_flip]])]),(0,s._)("label",T,[Z,(0,s.wy)((0,s._)("input",{name:"vertical_flip",type:"checkbox","onUpdate:modelValue":t[14]||(t[14]=t=>a.attrs.vertical_flip=t),onChange:t[15]||(t[15]=(...t)=>a.onFlipChanged&&a.onFlipChanged(...t))},null,544),[[n.e8,a.attrs.vertical_flip]])]),(0,s._)("label",Y,[E,(0,s.wy)((0,s._)("input",{name:"rotate",type:"text","onUpdate:modelValue":t[16]||(t[16]=t=>a.attrs.rotate=t),onChange:t[17]||(t[17]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.rotate]])]),(0,s._)("label",X,[B,(0,s.wy)((0,s._)("input",{name:"scale_x",type:"text","onUpdate:modelValue":t[18]||(t[18]=t=>a.attrs.scale_x=t),onChange:t[19]||(t[19]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.scale_x]])]),(0,s._)("label",J,[K,(0,s.wy)((0,s._)("input",{name:"scale_y",type:"text","onUpdate:modelValue":t[20]||(t[20]=t=>a.attrs.scale_y=t),onChange:t[21]||(t[21]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.scale_y]])]),(0,s._)("label",N,[Q,(0,s.wy)((0,s._)("input",{name:"fps",type:"text","onUpdate:modelValue":t[22]||(t[22]=t=>a.attrs.fps=t),onChange:t[23]||(t[23]=(...t)=>a.onFpsChanged&&a.onFpsChanged(...t))},null,544),[[n.nr,a.attrs.fps]])]),(0,s._)("label",aa,[ta,(0,s.wy)((0,s._)("input",{name:"grayscale",type:"checkbox","onUpdate:modelValue":t[24]||(t[24]=t=>a.attrs.grayscale=t),onChange:t[25]||(t[25]=(...t)=>a.onGrayscaleChanged&&a.onGrayscaleChanged(...t))},null,544),[[n.e8,a.attrs.grayscale]])]),(0,s.Wm)(b)])])),_:1},512)])}var sa=e(3956),na={name:"CameraMixin",mixins:[sa.Z],props:{cameraPlugin:{type:String,required:!0}},data(){return{streaming:!1,capturing:!1,captured:!1,audioOn:!1,url:null,attrs:{}}},computed:{params(){return{resolution:this.attrs.resolution,device:this.attrs.device?.length?this.attrs.device:null,horizontal_flip:parseInt(0+this.attrs.horizontal_flip),vertical_flip:parseInt(0+this.attrs.vertical_flip),rotate:parseFloat(this.attrs.rotate),scale_x:parseFloat(this.attrs.scale_x),scale_y:parseFloat(this.attrs.scale_y),fps:parseFloat(this.attrs.fps),grayscale:parseInt(0+this.attrs.grayscale)}}},methods:{getUrl(a,t){return"/camera/"+a+"/"+t+"?"+Object.entries(this.params).filter((a=>null!=a[1]&&(""+a[1]).length>0)).map((([a,t])=>a+"="+t)).join("&")},_startStreaming(a){this.streaming||(this.streaming=!0,this.capturing=!1,this.captured=!1,this.url=this.getUrl(a,"video."+this.attrs.stream_format))},stopStreaming(){this.streaming&&(this.streaming=!1,this.capturing=!1,this.url=null)},_capture(a){this.capturing||(this.streaming=!1,this.capturing=!0,this.captured=!0,this.url=this.getUrl(a,"photo.jpg")+"&t="+(new Date).getTime())},onFrameLoaded(){this.capturing&&(this.capturing=!1)},onDeviceChanged(){},onFlipChanged(){},onSizeChanged(){const a=a=>a*Math.PI/180,t=a(this.params.rotate);let e=Math.round(this.params.scale_x*Math.abs(this.params.resolution[0]*Math.cos(t)+this.params.resolution[1]*Math.sin(t))),s=Math.round(this.params.scale_y*Math.abs(this.params.resolution[0]*Math.sin(t)+this.params.resolution[1]*Math.cos(t)));e>window.innerWidth&&(s=Math.round(s*(window.innerWidth/e)),e=window.innerWidth),s>window.innerHeight&&(e=Math.round(e*(window.innerHeight/s)),s=window.innerHeight),this.$refs.frameContainer.style.width=`${e}px`,this.$refs.frameContainer.style.height=`${s}px`},onFpsChanged(){},onGrayscaleChanged(){},startAudio(){this.audioOn=!0},async stopAudio(){this.audioOn=!1,await this.request("sound.stop_recording")}},created(){const a=this.$root.config[`camera.${this.cameraPlugin}`]||{};this.attrs={resolution:a.resolution||[640,480],device:a.device,horizontal_flip:a.horizontal_flip||0,vertical_flip:a.vertical_flip||0,rotate:a.rotate||0,scale_x:a.scale_x||1,scale_y:a.scale_y||1,fps:a.fps||16,grayscale:a.grayscale||0,stream_format:a.stream_format||"mjpeg"}},mounted(){this.$refs.frame.addEventListener("load",this.onFrameLoaded),this.onSizeChanged(),this.$watch((()=>this.attrs.resolution),this.onSizeChanged),this.$watch((()=>this.attrs.horizontal_flip),this.onSizeChanged),this.$watch((()=>this.attrs.vertical_flip),this.onSizeChanged),this.$watch((()=>this.attrs.rotate),this.onSizeChanged),this.$watch((()=>this.attrs.scale_x),this.onSizeChanged),this.$watch((()=>this.attrs.scale_y),this.onSizeChanged)}};const ia=na;var ra=ia,la=e(9417),oa={name:"Camera",components:{Modal:la.Z},mixins:[ra],props:{cameraPlugin:{type:String,required:!0}},computed:{fullURL(){return`${window.location.protocol}//${window.location.host}${this.url}`}},methods:{startStreaming(){this._startStreaming(this.cameraPlugin)},capture(){this._capture(this.cameraPlugin)}}},ca=e(3744);const ua=(0,ca.Z)(oa,[["render",ea]]);var ha=ua},813:function(a,t,e){e.r(t),e.d(t,{default:function(){return c}});var s=e(6252);function n(a,t,e,n,i,r){const l=(0,s.up)("Camera");return(0,s.wg)(),(0,s.j4)(l,{"camera-plugin":"gstreamer"})}var i=e(5324),r={name:"CameraGstreamer",components:{Camera:i["default"]}},l=e(3744);const o=(0,l.Z)(r,[["render",n]]);var c=o}}]); +//# sourceMappingURL=813.54039bae.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/813.52ce2ced.js.map b/platypush/backend/http/webapp/dist/static/js/813.54039bae.js.map similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/813.52ce2ced.js.map rename to platypush/backend/http/webapp/dist/static/js/813.54039bae.js.map index edf1dcc41..28aff50cd 100644 --- a/platypush/backend/http/webapp/dist/static/js/813.52ce2ced.js.map +++ b/platypush/backend/http/webapp/dist/static/js/813.54039bae.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/813.52ce2ced.js","mappings":"qMACOA,MAAM,U,GACJA,MAAM,oB,GACJA,MAAM,kBAAkBC,IAAI,kB,SAC1BD,MAAM,Y,aAIRA,MAAM,Y,GACJA,MAAM,Q,kBAEPE,EAAAA,EAAAA,GAAwB,KAArBF,MAAM,cAAY,S,GAArBG,G,kBAIAD,EAAAA,EAAAA,GAAwB,KAArBF,MAAM,cAAY,S,GAArBI,G,kBAKAF,EAAAA,EAAAA,GAA2B,KAAxBF,MAAM,iBAAe,S,GAAxBK,G,GAICL,MAAM,S,GAEPE,EAAAA,EAAAA,GAAgC,KAA7BF,MAAM,sBAAoB,S,GAA7BM,G,GAIAJ,EAAAA,EAAAA,GAA8B,KAA3BF,MAAM,oBAAkB,S,GAA3BO,G,GAIAL,EAAAA,EAAAA,GAAwB,KAArBF,MAAM,cAAY,S,GAArBQ,G,GAMHR,MAAM,mB,SACFS,SAAA,GAASC,QAAQ,OAAOT,IAAI,U,mBAMhCD,MAAM,O,GACFA,MAAM,O,GACXE,EAAAA,EAAAA,GAAoC,QAA9BF,MAAM,QAAO,cAAU,G,eAM1BA,MAAM,U,GACFA,MAAM,O,GACXE,EAAAA,EAAAA,GAAgC,QAA1BF,MAAM,QAAO,UAAM,G,GAIp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C,MAAMmB,QAAQyB,KAAKrC,eAC1CqC,KAAK0C,QAAO,IAAM1C,KAAK5C,MAAMsB,SAASsB,KAAKrC,eAC3CqC,KAAK0C,QAAO,IAAM1C,KAAK5C,MAAMyB,SAASmB,KAAKrC,cAC7C,GC5IF,MAAMgF,GAAc,GAEpB,U,WF+GA,IACE/F,KAAM,SACNgG,WAAY,CAACC,MAAKA,GAAAA,GAClBtD,OAAQ,CAACuD,IACTrD,MAAO,CACLC,aAAc,CACZxE,KAAMyE,OACNC,UAAU,IAIdE,SAAU,CACRhD,OAAAA,GACE,MAAQ,GAAEgF,OAAOiB,SAASC,aAAalB,OAAOiB,SAASE,OAAOjD,KAAKlF,KACrE,GAGFqF,QAAS,CACPzE,cAAAA,GACEsE,KAAKe,gBAAgBf,KAAKN,aAC5B,EAEA/D,OAAAA,GACEqE,KAAKiB,SAASjB,KAAKN,aACrB,I,WGrIJ,MAAM,IAA2B,QAAgB,GAAQ,CAAC,CAAC,SAASwD,MAEpE,S,sJCREC,EAAAA,EAAAA,IAAoCC,EAAA,CAA5B,gBAAc,a,eAMxB,GACExG,KAAM,kBACNgG,WAAY,CAACS,OAAMA,EAAAA,a,UCJrB,MAAMV,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASO,KAEpE,O","sources":["webpack://platypush/./src/components/panels/Camera/Index.vue","webpack://platypush/./src/components/panels/Camera/Mixin.vue","webpack://platypush/./src/components/panels/Camera/Mixin.vue?be5e","webpack://platypush/./src/components/panels/Camera/Index.vue?8810","webpack://platypush/./src/components/panels/CameraGstreamer/Index.vue","webpack://platypush/./src/components/panels/CameraGstreamer/Index.vue?5a11"],"sourcesContent":["\n\n\n\n\n \n {{ value.label }}\n\n\n\n\n\n\nValue\n\n\n\n \n \n\n\n\n\n\n\n\n \n\n \n\n\n= 0\">\n\n\n\n\n\n \n \n\n\n \n\n\n \n\n= 0\">\n\n\n\n \n \n\n\n\n\nRemove From Scene\n\n \n\n\n\n\nAdd To Scene\n\n\n\n \n\n \n\n\nHelp\n \n\n\n\nValue ID\n \n\n\n\nID on Network\n \n\n\n\nCommand Class\n \n\n\nLast Update\n \n\n\n\n\n\n\n\n","\n","import script from \"./Mixin.vue?vue&type=script&lang=js\"\nexport * from \"./Mixin.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=a4970096\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=a4970096&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\nThe camera is not active\n \n\n\n\n \n\n \n\n \n\n\n\n \n\n \n\n \n\n\n \n\n\n\n \n\n\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n\n\n \n\n\n\n","import { render } from \"./Index.vue?vue&type=template&id=6c669f2b\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","ref","_createElementVNode","_hoisted_9","_hoisted_12","_hoisted_15","_hoisted_18","_hoisted_20","_hoisted_22","autoplay","preload","_createElementBlock","_hoisted_1","_hoisted_2","_hoisted_3","_ctx","streaming","capturing","captured","_hoisted_4","src","url","alt","_hoisted_6","_hoisted_7","type","onClick","_cache","args","stopStreaming","disabled","title","$options","startStreaming","capture","_hoisted_17","audioOn","stopAudio","startAudio","$event","$refs","paramsModal","show","_hoisted_24","_hoisted_25","Date","getTime","length","_hoisted_27","_hoisted_28","_hoisted_29","name","value","fullURL","_createVNode","_component_Modal","_hoisted_31","_hoisted_32","_hoisted_33","attrs","device","onChange","onDeviceChanged","_hoisted_34","_hoisted_35","resolution","onSizeChanged","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","horizontal_flip","onFlipChanged","_hoisted_40","_hoisted_41","vertical_flip","_hoisted_42","_hoisted_43","rotate","_hoisted_44","_hoisted_45","scale_x","_hoisted_46","_hoisted_47","scale_y","_hoisted_48","_hoisted_49","fps","onFpsChanged","_hoisted_50","_hoisted_51","grayscale","onGrayscaleChanged","_component_Slot","mixins","Utils","props","cameraPlugin","String","required","data","computed","params","this","parseInt","parseFloat","methods","getUrl","plugin","action","Object","entries","filter","entry","map","k","v","join","_startStreaming","stream_format","_capture","onFrameLoaded","degToRad","deg","Math","PI","rot","width","round","abs","cos","sin","height","window","innerWidth","innerHeight","frameContainer","style","request","created","config","$root","mounted","frame","addEventListener","$watch","__exports__","components","Modal","CameraMixin","location","protocol","host","render","_createBlock","_component_Camera","Camera"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/813.54039bae.js","mappings":"qMACOA,MAAM,U,GACJA,MAAM,oB,GACJA,MAAM,kBAAkBC,IAAI,kB,SAC1BD,MAAM,Y,aAIRA,MAAM,Y,GACJA,MAAM,Q,kBAEPE,EAAAA,EAAAA,GAAwB,KAArBF,MAAM,cAAY,S,GAArBG,G,kBAIAD,EAAAA,EAAAA,GAAwB,KAArBF,MAAM,cAAY,S,GAArBI,G,kBAKAF,EAAAA,EAAAA,GAA2B,KAAxBF,MAAM,iBAAe,S,GAAxBK,G,GAICL,MAAM,S,GAEPE,EAAAA,EAAAA,GAAgC,KAA7BF,MAAM,sBAAoB,S,GAA7BM,G,GAIAJ,EAAAA,EAAAA,GAA8B,KAA3BF,MAAM,oBAAkB,S,GAA3BO,G,GAIAL,EAAAA,EAAAA,GAAwB,KAArBF,MAAM,cAAY,S,GAArBQ,G,GAMHR,MAAM,mB,SACFS,SAAA,GAASC,QAAQ,OAAOT,IAAI,U,mBAMhCD,MAAM,O,GACFA,MAAM,O,GACXE,EAAAA,EA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K5C,MAAMY,iBAAiBgC,KAAKrC,eACnDqC,KAAK0C,QAAO,IAAM1C,KAAK5C,MAAMgB,eAAe4B,KAAKrC,eACjDqC,KAAK0C,QAAO,IAAM1C,KAAK5C,MAAMmB,QAAQyB,KAAKrC,eAC1CqC,KAAK0C,QAAO,IAAM1C,KAAK5C,MAAMsB,SAASsB,KAAKrC,eAC3CqC,KAAK0C,QAAO,IAAM1C,KAAK5C,MAAMyB,SAASmB,KAAKrC,cAC7C,GC5IF,MAAMgF,GAAc,GAEpB,U,WF+GA,IACE/F,KAAM,SACNgG,WAAY,CAACC,MAAKA,GAAAA,GAClBtD,OAAQ,CAACuD,IACTrD,MAAO,CACLC,aAAc,CACZxE,KAAMyE,OACNC,UAAU,IAIdE,SAAU,CACRhD,OAAAA,GACE,MAAQ,GAAEgF,OAAOiB,SAASC,aAAalB,OAAOiB,SAASE,OAAOjD,KAAKlF,KACrE,GAGFqF,QAAS,CACPzE,cAAAA,GACEsE,KAAKe,gBAAgBf,KAAKN,aAC5B,EAEA/D,OAAAA,GACEqE,KAAKiB,SAASjB,KAAKN,aACrB,I,WGrIJ,MAAM,IAA2B,QAAgB,GAAQ,CAAC,CAAC,SAASwD,MAEpE,S,sJCREC,EAAAA,EAAAA,IAAoCC,EAAA,CAA5B,gBAAc,a,eAMxB,GACExG,KAAM,kBACNgG,WAAY,CAACS,OAAMA,EAAAA,a,UCJrB,MAAMV,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASO,KAEpE,O","sources":["webpack://platypush/./src/components/panels/Camera/Index.vue","webpack://platypush/./src/components/panels/Camera/Mixin.vue","webpack://platypush/./src/components/panels/Camera/Mixin.vue?be5e","webpack://platypush/./src/components/panels/Camera/Index.vue?8810","webpack://platypush/./src/components/panels/CameraGstreamer/Index.vue","webpack://platypush/./src/components/panels/CameraGstreamer/Index.vue?5a11"],"sourcesContent":["\n \n\n\n\n\n\n\n","\n","import script from \"./Mixin.vue?vue&type=script&lang=js\"\nexport * from \"./Mixin.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=a4970096\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=a4970096&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\nThe camera is not active\n \n\n\n\n \n\n \n\n \n\n\n\n \n\n \n\n \n\n\n \n\n\n\n \n\n\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n\n\n \n\n\n\n","import { render } from \"./Index.vue?vue&type=template&id=6c669f2b\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","ref","_createElementVNode","_hoisted_9","_hoisted_12","_hoisted_15","_hoisted_18","_hoisted_20","_hoisted_22","autoplay","preload","_createElementBlock","_hoisted_1","_hoisted_2","_hoisted_3","_ctx","streaming","capturing","captured","_hoisted_4","src","url","alt","_hoisted_6","_hoisted_7","type","onClick","_cache","args","stopStreaming","disabled","title","$options","startStreaming","capture","_hoisted_17","audioOn","stopAudio","startAudio","$event","$refs","paramsModal","show","_hoisted_24","_hoisted_25","Date","getTime","length","_hoisted_27","_hoisted_28","_hoisted_29","name","value","fullURL","_createVNode","_component_Modal","_hoisted_31","_hoisted_32","_hoisted_33","attrs","device","onChange","onDeviceChanged","_hoisted_34","_hoisted_35","resolution","onSizeChanged","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","horizontal_flip","onFlipChanged","_hoisted_40","_hoisted_41","vertical_flip","_hoisted_42","_hoisted_43","rotate","_hoisted_44","_hoisted_45","scale_x","_hoisted_46","_hoisted_47","scale_y","_hoisted_48","_hoisted_49","fps","onFpsChanged","_hoisted_50","_hoisted_51","grayscale","onGrayscaleChanged","_component_Slot","mixins","Utils","props","cameraPlugin","String","required","data","computed","params","this","parseInt","parseFloat","methods","getUrl","plugin","action","Object","entries","filter","entry","map","k","v","join","_startStreaming","stream_format","_capture","onFrameLoaded","degToRad","deg","Math","PI","rot","width","round","abs","cos","sin","height","window","innerWidth","innerHeight","frameContainer","style","request","created","config","$root","mounted","frame","addEventListener","$watch","__exports__","components","Modal","CameraMixin","location","protocol","host","render","_createBlock","_component_Camera","Camera"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/8179.00e2fca6.js b/platypush/backend/http/webapp/dist/static/js/8179.31718565.js similarity index 91% rename from platypush/backend/http/webapp/dist/static/js/8179.00e2fca6.js rename to platypush/backend/http/webapp/dist/static/js/8179.31718565.js index 67e63c845..3d00b19d3 100644 --- a/platypush/backend/http/webapp/dist/static/js/8179.00e2fca6.js +++ b/platypush/backend/http/webapp/dist/static/js/8179.31718565.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8179],{8179:function(n,t,e){e.r(t),e.d(t,{default:function(){return g}});var o=e(6252);const i={class:"plugin"};function s(n,t,e,s,a,p){const c=(0,o.up)("Loading");return(0,o.wg)(),(0,o.iD)("div",i,[a.loading?((0,o.wg)(),(0,o.j4)(c,{key:0})):a.component?((0,o.wg)(),(0,o.j4)((0,o.LL)(a.component),{key:1,config:a.config},null,8,["config"])):(0,o.kq)("",!0)])}var a=e(5576),p=e(6791),c=e(2262),u={name:"Plugin",components:{Loading:p.Z},mixins:[a.Z],props:{pluginName:{type:String,required:!0}},data(){return{loading:!1,component:null,config:{}}},computed:{componentName(){return this.pluginName.split(".").map((n=>n[0].toUpperCase()+n.slice(1))).join("")}},methods:{refresh:async function(){this.loading=!0;try{this.component=(0,c.XI)((0,o.RC)((()=>e(3379)(`./${this.componentName}/Index`)))),this.$options.components[this.componentName]=this.component,this.config=(await this.request("config.get_plugins"))?.[this.pluginName]||{}}finally{this.loading=!1}}},mounted:function(){this.refresh()}},r=e(3744);const l=(0,r.Z)(u,[["render",s],["__scopeId","data-v-69b17daa"]]);var g=l}}]); -//# sourceMappingURL=8179.00e2fca6.js.map \ No newline at end of file +"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8179],{8179:function(n,t,e){e.r(t),e.d(t,{default:function(){return g}});var o=e(6252);const i={class:"plugin"};function s(n,t,e,s,a,p){const c=(0,o.up)("Loading");return(0,o.wg)(),(0,o.iD)("div",i,[a.loading?((0,o.wg)(),(0,o.j4)(c,{key:0})):a.component?((0,o.wg)(),(0,o.j4)((0,o.LL)(a.component),{key:1,config:a.config},null,8,["config"])):(0,o.kq)("",!0)])}var a=e(3956),p=e(6791),c=e(2262),u={name:"Plugin",components:{Loading:p.Z},mixins:[a.Z],props:{pluginName:{type:String,required:!0}},data(){return{loading:!1,component:null,config:{}}},computed:{componentName(){return this.pluginName.split(".").map((n=>n[0].toUpperCase()+n.slice(1))).join("")}},methods:{refresh:async function(){this.loading=!0;try{this.component=(0,c.XI)((0,o.RC)((()=>e(3379)(`./${this.componentName}/Index`)))),this.$options.components[this.componentName]=this.component,this.config=(await this.request("config.get_plugins"))?.[this.pluginName]||{}}finally{this.loading=!1}}},mounted:function(){this.refresh()}},r=e(3744);const l=(0,r.Z)(u,[["render",s],["__scopeId","data-v-69b17daa"]]);var g=l}}]); +//# sourceMappingURL=8179.31718565.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/8179.00e2fca6.js.map b/platypush/backend/http/webapp/dist/static/js/8179.31718565.js.map similarity index 98% rename from platypush/backend/http/webapp/dist/static/js/8179.00e2fca6.js.map rename to platypush/backend/http/webapp/dist/static/js/8179.31718565.js.map index 1fa6a9a63..b1f6c9e67 100644 --- a/platypush/backend/http/webapp/dist/static/js/8179.00e2fca6.js.map +++ b/platypush/backend/http/webapp/dist/static/js/8179.31718565.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/8179.00e2fca6.js","mappings":"sLACOA,MAAM,U,sEAAXC,EAAAA,EAAAA,IAGM,MAHNC,EAGM,CAFWC,EAAAC,UAAO,WAAtBC,EAAAA,EAAAA,IAA0BC,EAAA,CAAAC,IAAA,KAC6BJ,EAAAK,YAAS,WAAhEH,EAAAA,EAAAA,KAAoEI,EAAAA,EAAAA,IAApDN,EAAAK,WAAS,C,MAAGE,OAAQP,EAAAO,Q,wEASxC,GACEC,KAAM,SACNC,WAAY,CAACC,QAAOA,EAAAA,GACpBC,OAAQ,CAACC,EAAAA,GACTC,MAAO,CAELC,WAAY,CACVC,KAAMC,OACNC,UAAU,IAIdC,IAAAA,GACE,MAAO,CACLjB,SAAS,EACTI,UAAW,KACXE,OAAQ,CAAC,EAEb,EAEAY,SAAU,CACRC,aAAAA,GACE,OAAOC,KAAKP,WAAWQ,MAAM,KAAKC,KAAKC,GAAMA,EAAE,GAAGC,cAAgBD,EAAEE,MAAM,KAAIC,KAAK,GACrF,GAGFC,QAAS,CACPC,QAASC,iBACPT,KAAKpB,SAAU,EAEf,IACEoB,KAAKhB,WAAY0B,EAAAA,EAAAA,KAAWC,EAAAA,EAAAA,KAAqB,IAAM,QAAQ,KAAsBX,KAAKD,0BAC1FC,KAAKY,SAASxB,WAAWY,KAAKD,eAAiBC,KAAKhB,UACpDgB,KAAKd,cAAgBc,KAAKa,QAAQ,yBAAyBb,KAAKP,aAAe,CAAC,CAClF,CAAE,QACAO,KAAKpB,SAAU,CACjB,CACF,GAGFkC,QAAS,WACPd,KAAKQ,SACP,G,UC/CF,MAAMO,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/widgets/Plugin/Index.vue","webpack://platypush/./src/components/widgets/Plugin/Index.vue?cc4c"],"sourcesContent":["\n \n\n\n\n\n\n\n","import { render } from \"./Index.vue?vue&type=template&id=69b17daa&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=69b17daa&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-69b17daa\"]])\n\nexport default __exports__"],"names":["class","_createElementBlock","_hoisted_1","$data","loading","_createBlock","_component_Loading","key","component","_resolveDynamicComponent","config","name","components","Loading","mixins","Utils","props","pluginName","type","String","required","data","computed","componentName","this","split","map","t","toUpperCase","slice","join","methods","refresh","async","shallowRef","defineAsyncComponent","$options","request","mounted","__exports__","render"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/8179.31718565.js","mappings":"sLACOA,MAAM,U,sEAAXC,EAAAA,EAAAA,IAGM,MAHNC,EAGM,CAFWC,EAAAC,UAAO,WAAtBC,EAAAA,EAAAA,IAA0BC,EAAA,CAAAC,IAAA,KAC6BJ,EAAAK,YAAS,WAAhEH,EAAAA,EAAAA,KAAoEI,EAAAA,EAAAA,IAApDN,EAAAK,WAAS,C,MAAGE,OAAQP,EAAAO,Q,wEASxC,GACEC,KAAM,SACNC,WAAY,CAACC,QAAOA,EAAAA,GACpBC,OAAQ,CAACC,EAAAA,GACTC,MAAO,CAELC,WAAY,CACVC,KAAMC,OACNC,UAAU,IAIdC,IAAAA,GACE,MAAO,CACLjB,SAAS,EACTI,UAAW,KACXE,OAAQ,CAAC,EAEb,EAEAY,SAAU,CACRC,aAAAA,GACE,OAAOC,KAAKP,WAAWQ,MAAM,KAAKC,KAAKC,GAAMA,EAAE,GAAGC,cAAgBD,EAAEE,MAAM,KAAIC,KAAK,GACrF,GAGFC,QAAS,CACPC,QAASC,iBACPT,KAAKpB,SAAU,EAEf,IACEoB,KAAKhB,WAAY0B,EAAAA,EAAAA,KAAWC,EAAAA,EAAAA,KAAqB,IAAM,QAAQ,KAAsBX,KAAKD,0BAC1FC,KAAKY,SAASxB,WAAWY,KAAKD,eAAiBC,KAAKhB,UACpDgB,KAAKd,cAAgBc,KAAKa,QAAQ,yBAAyBb,KAAKP,aAAe,CAAC,CAClF,CAAE,QACAO,KAAKpB,SAAU,CACjB,CACF,GAGFkC,QAAS,WACPd,KAAKQ,SACP,G,UC/CF,MAAMO,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/widgets/Plugin/Index.vue","webpack://platypush/./src/components/widgets/Plugin/Index.vue?cc4c"],"sourcesContent":["\n\n \n \n\n\n\n\n\n\n","import { render } from \"./Index.vue?vue&type=template&id=69b17daa&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=69b17daa&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-69b17daa\"]])\n\nexport default __exports__"],"names":["class","_createElementBlock","_hoisted_1","$data","loading","_createBlock","_component_Loading","key","component","_resolveDynamicComponent","config","name","components","Loading","mixins","Utils","props","pluginName","type","String","required","data","computed","componentName","this","split","map","t","toUpperCase","slice","join","methods","refresh","async","shallowRef","defineAsyncComponent","$options","request","mounted","__exports__","render"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/8391.16e30eb1.js b/platypush/backend/http/webapp/dist/static/js/8391.119357c7.js similarity index 98% rename from platypush/backend/http/webapp/dist/static/js/8391.16e30eb1.js rename to platypush/backend/http/webapp/dist/static/js/8391.119357c7.js index 4e715fdea..017a6dfad 100644 --- a/platypush/backend/http/webapp/dist/static/js/8391.16e30eb1.js +++ b/platypush/backend/http/webapp/dist/static/js/8391.119357c7.js @@ -1,2 +1,2 @@ "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8391],{3405:function(t,e,a){a.d(e,{Z:function(){return h}});var n=a(6252),i=a(3577),l=a(9963);const s=t=>((0,n.dD)("data-v-a6396ae8"),t=t(),(0,n.Cn)(),t),o=["checked"],u=s((()=>(0,n._)("div",{class:"switch"},[(0,n._)("div",{class:"dot"})],-1))),c={class:"label"};function d(t,e,a,s,d,r){return(0,n.wg)(),(0,n.iD)("div",{class:(0,i.C_)(["power-switch",{disabled:a.disabled}]),onClick:e[0]||(e[0]=(0,l.iM)(((...t)=>r.onInput&&r.onInput(...t)),["stop"]))},[(0,n._)("input",{type:"checkbox",checked:a.value},null,8,o),(0,n._)("label",null,[u,(0,n._)("span",c,[(0,n.WI)(t.$slots,"default",{},void 0,!0)])])],2)}var r={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(t){if(this.disabled)return!1;this.$emit("input",t)}}},p=a(3744);const v=(0,p.Z)(r,[["render",d],["__scopeId","data-v-a6396ae8"]]);var h=v},8391:function(t,e,a){a.r(e),a.d(e,{default:function(){return y}});var n=a(6252),i=a(3577),l=a(9963);const s={class:"entity switch-container"},o={class:"head"},u={class:"col-1 icon"},c={class:"col-9 label"},d=["textContent"],r={class:"col-2 switch pull-right"};function p(t,e,a,p,v,h){const g=(0,n.up)("EntityIcon"),_=(0,n.up)("ToggleSwitch");return(0,n.wg)(),(0,n.iD)("div",s,[(0,n._)("div",o,[(0,n._)("div",u,[(0,n.Wm)(g,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,n._)("div",c,[(0,n._)("div",{class:"name",textContent:(0,i.zw)(t.value.name)},null,8,d)]),(0,n._)("div",r,[(0,n.Wm)(_,{value:!t.value.is_write_only&&t.value.state,disabled:t.loading||t.value.is_read_only,onInput:h.toggle,onClick:e[0]||(e[0]=(0,l.iM)((()=>{}),["stop"]))},null,8,["value","disabled","onInput"])])])])}var v=a(3405),h=a(4967),g=a(847),_={name:"Switch",components:{ToggleSwitch:v.Z,EntityIcon:h["default"]},mixins:[g["default"]],methods:{async toggle(t){t.stopPropagation(),this.$emit("loading",!0);try{if(await this.request("entities.execute",{id:this.value.id,action:"toggle"}),this.value.is_write_only){const t=this;t.value.state=!0,setTimeout((()=>t.value.state=!1),250)}}finally{this.$emit("loading",!1)}}}},f=a(3744);const w=(0,f.Z)(_,[["render",p],["__scopeId","data-v-2aaabd26"]]);var y=w}}]); -//# sourceMappingURL=8391.16e30eb1.js.map \ No newline at end of file +//# sourceMappingURL=8391.119357c7.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/8391.16e30eb1.js.map b/platypush/backend/http/webapp/dist/static/js/8391.119357c7.js.map similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/8391.16e30eb1.js.map rename to platypush/backend/http/webapp/dist/static/js/8391.119357c7.js.map index 39c39d030..dec4cafb7 100644 --- a/platypush/backend/http/webapp/dist/static/js/8391.16e30eb1.js.map +++ b/platypush/backend/http/webapp/dist/static/js/8391.119357c7.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/8391.16e30eb1.js","mappings":"wQAMMA,EAAAA,EAAAA,GAEM,OAFDC,MAAM,UAAQ,EACjBD,EAAAA,EAAAA,GAAmB,OAAdC,MAAM,UAAK,K,GAEZA,MAAM,S,0CARhBC,EAAAA,EAAAA,IAYM,OAZDD,OAAKE,EAAAA,EAAAA,IAAA,CAAC,eAAc,CAAAC,SAAoBC,EAAAD,YAAYE,QAAKC,EAAA,KAAAA,EAAA,IAAAC,EAAAA,EAAAA,KAAA,IAAAC,IAAOC,EAAAC,SAAAD,EAAAC,WAAAF,IAAO,Y,EAE1ET,EAAAA,EAAAA,GAAwC,SAAjCY,KAAK,WAAYC,QAASR,EAAAS,O,WACjCd,EAAAA,EAAAA,GAQQ,cANNe,GAG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,OAAQ,CAACC,EAAAA,YAETxB,QAAS,CACP,YAAMmB,CAAOlB,GACXA,EAAMwB,kBACNvB,KAAKC,MAAM,WAAW,GAEtB,IAME,SALMD,KAAKwB,QAAQ,mBAAoB,CACrCC,GAAIzB,KAAKd,MAAMuC,GACfC,OAAQ,WAGN1B,KAAKd,MAAM4B,cAAe,CAE5B,MAAMa,EAAO3B,KACb2B,EAAKzC,MAAM6B,OAAQ,EACnBa,YAAW,IAAMD,EAAKzC,MAAM6B,OAAQ,GAAO,IAC7C,CACF,CAAE,QACAf,KAAKC,MAAM,WAAW,EACxB,CACF,I,UChDJ,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/Entities/Switch.vue","webpack://platypush/./src/components/panels/Entities/Switch.vue?b726"],"sourcesContent":["\n\n \n \n \n \n \n\n\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n\n","import { render } from \"./Switch.vue?vue&type=template&id=2aaabd26&scoped=true\"\nimport script from \"./Switch.vue?vue&type=script&lang=js\"\nexport * from \"./Switch.vue?vue&type=script&lang=js\"\n\nimport \"./Switch.vue?vue&type=style&index=0&id=2aaabd26&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2aaabd26\"]])\n\nexport default __exports__"],"names":["_createElementVNode","class","_createElementBlock","_normalizeClass","disabled","$props","onClick","_cache","_withModifiers","args","$options","onInput","type","checked","value","_hoisted_2","_hoisted_3","_renderSlot","_ctx","$slots","undefined","name","emits","props","Boolean","default","methods","event","this","$emit","__exports__","render","_hoisted_1","_createVNode","_component_EntityIcon","entity","loading","error","_hoisted_4","_toDisplayString","_hoisted_6","_component_ToggleSwitch","is_write_only","state","is_read_only","toggle","components","ToggleSwitch","EntityIcon","mixins","EntityMixin","stopPropagation","request","id","action","self","setTimeout"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/8391.119357c7.js","mappings":"wQAMMA,EAAAA,EAAAA,GAEM,OAFDC,MAAM,UAAQ,EACjBD,EAAAA,EAAAA,GAAmB,OAAdC,MAAM,UAAK,K,GAEZA,MAAM,S,0CARhBC,EAAAA,EAAAA,IAYM,OAZDD,OAAKE,EAAAA,EAAAA,IAAA,CAAC,eAAc,CAAAC,SAAoBC,EAAAD,YAAYE,QAAKC,EAAA,KAAAA,EAAA,IAAAC,EAAAA,EAAAA,KAAA,IAAAC,IAAOC,EAAAC,SAAAD,EAAAC,WAAAF,IAAO,Y,EAE1ET,EAAAA,EAAAA,GAAwC,SAAjCY,KAAK,WAAYC,QAASR,EAAAS,O,WACjCd,EAAAA,EAAAA,GAQQ,cANNe,GAGAf,EAAAA,EAAAA,GAEO,OAFPgB,EAEO,EADLC,EAAAA,EAAAA,IAAQC,EAAAC,OAAA,kBAAAC,GAAA,U,CAOhB,OACEC,KAAM,eACNC,MAAO,CAAC,SACRC,MAAO,CACLT,MAAO,CACLF,KAAMY,QACNC,SAAS,GAGXrB,SAAU,CACRQ,KAAMY,QACNC,SAAS,IAIbC,QAAS,CACPf,OAAAA,CAAQgB,GACN,GAAIC,KAAKxB,SACP,OAAO,EAETwB,KAAKC,MAAM,QAASF,EACtB,I,UC/BJ,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AAE,QACAf,KAAKC,MAAM,WAAW,EACxB,CACF,I,UChDJ,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/Entities/Switch.vue","webpack://platypush/./src/components/panels/Entities/Switch.vue?b726"],"sourcesContent":["\n\n\n\n\n\n\n \n \n\n\n\n\n\n \n \n \n \n\n\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n\n","import { render } from \"./Switch.vue?vue&type=template&id=2aaabd26&scoped=true\"\nimport script from \"./Switch.vue?vue&type=script&lang=js\"\nexport * from \"./Switch.vue?vue&type=script&lang=js\"\n\nimport \"./Switch.vue?vue&type=style&index=0&id=2aaabd26&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2aaabd26\"]])\n\nexport default __exports__"],"names":["_createElementVNode","class","_createElementBlock","_normalizeClass","disabled","$props","onClick","_cache","_withModifiers","args","$options","onInput","type","checked","value","_hoisted_2","_hoisted_3","_renderSlot","_ctx","$slots","undefined","name","emits","props","Boolean","default","methods","event","this","$emit","__exports__","render","_hoisted_1","_createVNode","_component_EntityIcon","entity","loading","error","_hoisted_4","_toDisplayString","_hoisted_6","_component_ToggleSwitch","is_write_only","state","is_read_only","toggle","components","ToggleSwitch","EntityIcon","mixins","EntityMixin","stopPropagation","request","id","action","self","setTimeout"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/8621.33df9b41.js b/platypush/backend/http/webapp/dist/static/js/8621.0aa03df1.js similarity index 97% rename from platypush/backend/http/webapp/dist/static/js/8621.33df9b41.js rename to platypush/backend/http/webapp/dist/static/js/8621.0aa03df1.js index 2c97b46a3..5e751c1d8 100644 --- a/platypush/backend/http/webapp/dist/static/js/8621.33df9b41.js +++ b/platypush/backend/http/webapp/dist/static/js/8621.0aa03df1.js @@ -1,2 +1,2 @@ "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8621],{3405:function(e,n,t){t.d(n,{Z:function(){return h}});var a=t(6252),l=t(3577),s=t(9963);const i=e=>((0,a.dD)("data-v-a6396ae8"),e=e(),(0,a.Cn)(),e),o=["checked"],u=i((()=>(0,a._)("div",{class:"switch"},[(0,a._)("div",{class:"dot"})],-1))),c={class:"label"};function d(e,n,t,i,d,r){return(0,a.wg)(),(0,a.iD)("div",{class:(0,l.C_)(["power-switch",{disabled:t.disabled}]),onClick:n[0]||(n[0]=(0,s.iM)(((...e)=>r.onInput&&r.onInput(...e)),["stop"]))},[(0,a._)("input",{type:"checkbox",checked:t.value},null,8,o),(0,a._)("label",null,[u,(0,a._)("span",c,[(0,a.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var r={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},v=t(3744);const p=(0,v.Z)(r,[["render",d],["__scopeId","data-v-a6396ae8"]]);var h=p},8621:function(e,n,t){t.r(n),t.d(n,{default:function(){return g}});var a=t(6252),l=t(3577);const s={class:"entity sensor-container"},i={class:"head"},o={class:"icon"},u={class:"label"},c=["textContent"],d={key:0,class:"value-container"};function r(e,n,t,r,v,p){const h=(0,a.up)("EntityIcon"),f=(0,a.up)("ToggleSwitch");return(0,a.wg)(),(0,a.iD)("div",s,[(0,a._)("div",i,[(0,a._)("div",o,[(0,a.Wm)(h,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,a._)("div",u,[(0,a._)("div",{class:"name",textContent:(0,l.zw)(e.value.name)},null,8,c)]),null!=e.value.value?((0,a.wg)(),(0,a.iD)("div",d,[(0,a.Wm)(f,{value:e.value.value,disabled:!0},null,8,["value"])])):(0,a.kq)("",!0)])])}var v=t(847),p=t(4967),h=t(3405),f={name:"BinarySensor",components:{EntityIcon:p["default"],ToggleSwitch:h.Z},mixins:[v["default"]]},b=t(3744);const _=(0,b.Z)(f,[["render",r],["__scopeId","data-v-8baaebb4"]]);var g=_}}]); -//# sourceMappingURL=8621.33df9b41.js.map \ No newline at end of file +//# sourceMappingURL=8621.0aa03df1.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/8621.33df9b41.js.map b/platypush/backend/http/webapp/dist/static/js/8621.0aa03df1.js.map similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/8621.33df9b41.js.map rename to platypush/backend/http/webapp/dist/static/js/8621.0aa03df1.js.map index 86e5f7d3c..f599b8483 100644 --- a/platypush/backend/http/webapp/dist/static/js/8621.33df9b41.js.map +++ b/platypush/backend/http/webapp/dist/static/js/8621.0aa03df1.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/8621.33df9b41.js","mappings":"wQAMMA,EAAAA,EAAAA,GAEM,OAFDC,MAAM,UAAQ,EACjBD,EAAAA,EAAAA,GAAmB,OAAdC,MAAM,UAAK,K,GAEZA,MAAM,S,0CARhBC,EAAAA,EAAAA,IAYM,OAZDD,OAAKE,EAAAA,EAAAA,IAAA,CAAC,eAAc,CAAAC,SAAoBC,EAAAD,YAAYE,QAAKC,EAAA,KAAAA,EAAA,IAAAC,EAAAA,EAAAA,KAAA,IAAAC,IAAOC,EAAAC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YA,EAAAA,GACrCC,OAAQ,CAACC,EAAAA,a,UCnBX,MAAMhB,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/Entities/BinarySensor.vue","webpack://platypush/./src/components/panels/Entities/BinarySensor.vue?7e06"],"sourcesContent":["\n\n\n\n\n\n\n \n \n\n\n\n\n\n \n \n \n \n\n\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n\n","import { render } from \"./BinarySensor.vue?vue&type=template&id=8baaebb4&scoped=true\"\nimport script from \"./BinarySensor.vue?vue&type=script&lang=js\"\nexport * from \"./BinarySensor.vue?vue&type=script&lang=js\"\n\nimport \"./BinarySensor.vue?vue&type=style&index=0&id=8baaebb4&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-8baaebb4\"]])\n\nexport default __exports__"],"names":["_createElementVNode","class","_createElementBlock","_normalizeClass","disabled","$props","onClick","_cache","_withModifiers","args","$options","onInput","type","checked","value","_hoisted_2","_hoisted_3","_renderSlot","_ctx","$slots","undefined","name","emits","props","Boolean","default","methods","event","this","$emit","__exports__","render","_hoisted_1","_createVNode","_component_EntityIcon","entity","loading","error","_hoisted_4","_toDisplayString","_hoisted_6","_component_ToggleSwitch","components","EntityIcon","ToggleSwitch","mixins","EntityMixin"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/8621.0aa03df1.js","mappings":"wQAMMA,EAAAA,EAAAA,GAEM,OAFDC,MAAM,UAAQ,EACjBD,EAAAA,EAAAA,GAAmB,OAAdC,MAAM,UAAK,K,GAEZA,MAAM,S,0CARhBC,EAAAA,EAAAA,IAYM,OAZDD,OAAKE,EAAAA,EAAAA,IAAA,CAAC,eAAc,CAAAC,SAAoBC,EAAAD,YAAYE,QAAKC,EAAA,KAAAA,EAAA,IAAAC,EAAAA,EAAAA,KAAA,IAAAC,IAAOC,EAAAC,SAAAD,EAAAC,WAAAF,IAAO,Y,EAE1ET,EAAAA,EAAAA,GAAwC,SAAjCY,KAAK,WAAYC,QAASR,EAAAS,O,WACjCd,EAAAA,EAAAA,GAQQ,cANNe,GAGAf,EAAAA,EAAAA,GAEO,OAFPgB,EAEO,EADLC,EAAAA,EAAAA,IAAQC,EAAAC,OAAA,kBAAAC,GAAA,U,CAOhB,OACEC,KAAM,eACNC,MAAO,CAAC,SACRC,MAAO,CACLT,MAAO,CACLF,KAAMY,QACNC,SAAS,GAGXrB,SAAU,CACRQ,KAAMY,QACNC,SAAS,IAIbC,QAAS,CACPf,OAAAA,CAAQgB,GACN,GAAIC,KAAKxB,SACP,OAAO,EAETwB,KAAKC,MAAM,QAASF,EACtB,I,UC/BJ,MAAMG,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O,qGCRO9B,MAAM,2B,GACJA,MAAM,Q,GACJA,MAAM,Q,GAINA,MAAM,S,2BAINA,MAAM,mB,oGAVfC,EAAAA,EAAAA,IAcM,MAdN8B,EAcM,EAbJhC,EAAAA,EAAAA,GAYM,MAZNe,EAYM,EAXJf,EAAAA,EAAAA,GAEM,MAFNgB,EAEM,EADJiB,EAAAA,EAAAA,IAAgEC,EAAA,CAAnDC,OAAQjB,EAAAJ,MAAQsB,QAASlB,EAAAkB,QAAUC,MAAOnB,EAAAmB,O,wCAGzDrC,EAAAA,EAAAA,GAEM,MAFNsC,EAEM,EADJtC,EAAAA,EAAAA,GAAwC,OAAnCC,MAAM,O,aAAOsC,EAAAA,EAAAA,IAAQrB,EAAWJ,MAALO,O,YAGgB,MAAfH,EAAAJ,MAAMA,QAAK,WAA9CZ,EAAAA,EAAAA,IAEM,MAFNsC,EAEM,EADJP,EAAAA,EAAAA,IAAsDQ,EAAA,CAAvC3B,MAAOI,EAAAJ,MAAMA,MAAQV,UAAU,G,0EAWtD,GACEiB,KAAM,eACNqB,WAAY,CAACC,WAAU,aAAEC,aAAYA,EAAAA,GACrCC,OAAQ,CAACC,EAAAA,a,UCnBX,MAAMhB,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/Entities/BinarySensor.vue","webpack://platypush/./src/components/panels/Entities/BinarySensor.vue?7e06"],"sourcesContent":["\n\n\n\n\n\n\n \n \n\n\n\n\n\n \n \n \n \n\n\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n\n","import { render } from \"./BinarySensor.vue?vue&type=template&id=8baaebb4&scoped=true\"\nimport script from \"./BinarySensor.vue?vue&type=script&lang=js\"\nexport * from \"./BinarySensor.vue?vue&type=script&lang=js\"\n\nimport \"./BinarySensor.vue?vue&type=style&index=0&id=8baaebb4&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-8baaebb4\"]])\n\nexport default __exports__"],"names":["_createElementVNode","class","_createElementBlock","_normalizeClass","disabled","$props","onClick","_cache","_withModifiers","args","$options","onInput","type","checked","value","_hoisted_2","_hoisted_3","_renderSlot","_ctx","$slots","undefined","name","emits","props","Boolean","default","methods","event","this","$emit","__exports__","render","_hoisted_1","_createVNode","_component_EntityIcon","entity","loading","error","_hoisted_4","_toDisplayString","_hoisted_6","_component_ToggleSwitch","components","EntityIcon","ToggleSwitch","mixins","EntityMixin"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/8769.02eed3a9.js b/platypush/backend/http/webapp/dist/static/js/8769.5ea5c0cb.js similarity index 95% rename from platypush/backend/http/webapp/dist/static/js/8769.02eed3a9.js rename to platypush/backend/http/webapp/dist/static/js/8769.5ea5c0cb.js index ed138835b..d2b4907cb 100644 --- a/platypush/backend/http/webapp/dist/static/js/8769.02eed3a9.js +++ b/platypush/backend/http/webapp/dist/static/js/8769.5ea5c0cb.js @@ -1,2 +1,2 @@ "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8769],{8769:function(n,e,t){t.r(e),t.d(e,{default:function(){return h}});var a=t(6252),i=t(3577);const c={class:"entity device-container"},l={class:"head"},s={class:"icon"},o={class:"label"},r=["textContent"];function u(n,e,t,u,d,v){const p=(0,a.up)("EntityIcon");return(0,a.wg)(),(0,a.iD)("div",c,[(0,a._)("div",l,[(0,a._)("div",s,[(0,a.Wm)(p,{entity:n.value,loading:n.loading,error:n.error},null,8,["entity","loading","error"])]),(0,a._)("div",o,[(0,a._)("div",{class:"name",textContent:(0,i.zw)(n.value.name)},null,8,r)])])])}var d=t(847),v=t(4967),p={name:"Device",components:{EntityIcon:v["default"]},mixins:[d["default"]]},f=t(3744);const y=(0,f.Z)(p,[["render",u],["__scopeId","data-v-07323f6c"]]);var h=y}}]); -//# sourceMappingURL=8769.02eed3a9.js.map \ No newline at end of file +//# sourceMappingURL=8769.5ea5c0cb.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/8769.02eed3a9.js.map b/platypush/backend/http/webapp/dist/static/js/8769.5ea5c0cb.js.map similarity index 97% rename from platypush/backend/http/webapp/dist/static/js/8769.02eed3a9.js.map rename to platypush/backend/http/webapp/dist/static/js/8769.5ea5c0cb.js.map index b2e5b015b..2662be2fb 100644 --- a/platypush/backend/http/webapp/dist/static/js/8769.02eed3a9.js.map +++ b/platypush/backend/http/webapp/dist/static/js/8769.5ea5c0cb.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/8769.02eed3a9.js","mappings":"gMACOA,MAAM,2B,GACJA,MAAM,Q,GACJA,MAAM,Q,GAONA,MAAM,S,2FATfC,EAAAA,EAAAA,IAaM,MAbNC,EAaM,EAZJC,EAAAA,EAAAA,GAWM,MAXNC,EAWM,EAVJD,EAAAA,EAAAA,GAKM,MALNE,EAKM,EAJJC,EAAAA,EAAAA,IAGmBC,EAAA,CAFhBC,OAAQC,EAAAC,MACRC,QAASF,EAAAE,QACTC,MAAOH,EAAAG,O,wCAGZT,EAAAA,EAAAA,GAEM,MAFNU,EAEM,EADJV,EAAAA,EAAAA,GAAwC,OAAnCH,MAAM,O,aAAOc,EAAAA,EAAAA,IAAQL,EAAWC,MAALK,O,uCAUxC,GACEA,KAAM,SACNC,WAAY,CAACC,WAAUA,EAAAA,YACvBC,OAAQ,CAACC,EAAAA,a,UCjBX,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Device.vue","webpack://platypush/./src/components/panels/Entities/Device.vue?1785"],"sourcesContent":["\n\n\n\n\n\n\n \n \n\n\n\n\n\n \n\n\n\n\n\n\n","import { render } from \"./Device.vue?vue&type=template&id=07323f6c&scoped=true\"\nimport script from \"./Device.vue?vue&type=script&lang=js\"\nexport * from \"./Device.vue?vue&type=script&lang=js\"\n\nimport \"./Device.vue?vue&type=style&index=0&id=07323f6c&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-07323f6c\"]])\n\nexport default __exports__"],"names":["class","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","_createVNode","_component_EntityIcon","entity","_ctx","value","loading","error","_hoisted_4","_toDisplayString","name","components","EntityIcon","mixins","EntityMixin","__exports__","render"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/8769.5ea5c0cb.js","mappings":"gMACOA,MAAM,2B,GACJA,MAAM,Q,GACJA,MAAM,Q,GAONA,MAAM,S,2FATfC,EAAAA,EAAAA,IAaM,MAbNC,EAaM,EAZJC,EAAAA,EAAAA,GAWM,MAXNC,EAWM,EAVJD,EAAAA,EAAAA,GAKM,MALNE,EAKM,EAJJC,EAAAA,EAAAA,IAGmBC,EAAA,CAFhBC,OAAQC,EAAAC,MACRC,QAASF,EAAAE,QACTC,MAAOH,EAAAG,O,wCAGZT,EAAAA,EAAAA,GAEM,MAFNU,EAEM,EADJV,EAAAA,EAAAA,GAAwC,OAAnCH,MAAM,O,aAAOc,EAAAA,EAAAA,IAAQL,EAAWC,MAALK,O,uCAUxC,GACEA,KAAM,SACNC,WAAY,CAACC,WAAUA,EAAAA,YACvBC,OAAQ,CAACC,EAAAA,a,UCjBX,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Device.vue","webpack://platypush/./src/components/panels/Entities/Device.vue?1785"],"sourcesContent":["\n\n\n\n\n\n\n \n \n\n\n\n\n\n\n\n\n","import { render } from \"./Device.vue?vue&type=template&id=07323f6c&scoped=true\"\nimport script from \"./Device.vue?vue&type=script&lang=js\"\nexport * from \"./Device.vue?vue&type=script&lang=js\"\n\nimport \"./Device.vue?vue&type=style&index=0&id=07323f6c&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-07323f6c\"]])\n\nexport default __exports__"],"names":["class","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_3","_createVNode","_component_EntityIcon","entity","_ctx","value","loading","error","_hoisted_4","_toDisplayString","name","components","EntityIcon","mixins","EntityMixin","__exports__","render"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/8825.18ef8a1e.js b/platypush/backend/http/webapp/dist/static/js/8825.b660e217.js similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/8825.18ef8a1e.js rename to platypush/backend/http/webapp/dist/static/js/8825.b660e217.js index 33abb9e3a..d13225643 100644 --- a/platypush/backend/http/webapp/dist/static/js/8825.18ef8a1e.js +++ b/platypush/backend/http/webapp/dist/static/js/8825.b660e217.js @@ -1,2 +1,2 @@ "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8825],{8825:function(e,l,a){a.r(l),a.d(l,{default:function(){return ke}});var t=a(6252),s=a(3577),n=a(9963);const i=e=>((0,t.dD)("data-v-fb021b6a"),e=e(),(0,t.Cn)(),e),v={class:"icon"},d={class:"label"},c=["textContent"],u={class:"value-and-toggler"},o=["textContent"],_={key:0,class:"body children attributes fade-in"},r={key:0,class:"child"},m=i((()=>(0,t._)("div",{class:"label"},[(0,t._)("div",{class:"name"},"Mountpoint")],-1))),C={class:"value"},w=["textContent"],k={key:1,class:"child"},p=i((()=>(0,t._)("div",{class:"label"},[(0,t._)("div",{class:"name"},"Filesystem")],-1))),y={class:"value"},x=["textContent"],b={key:2,class:"child"},h=i((()=>(0,t._)("div",{class:"label"},[(0,t._)("div",{class:"name"},"Mount options")],-1))),g={class:"value"},f=["textContent"],z={key:3,class:"child"},D=i((()=>(0,t._)("div",{class:"label"},[(0,t._)("div",{class:"name"},"Total space")],-1))),q={class:"value"},M=["textContent"],S={key:4,class:"child"},T=i((()=>(0,t._)("div",{class:"label"},[(0,t._)("div",{class:"name"},"Used space")],-1))),B={class:"value"},I=["textContent"],E={key:5,class:"child"},N=i((()=>(0,t._)("div",{class:"label"},[(0,t._)("div",{class:"name"},"Available space")],-1))),W={class:"value"},A=["textContent"],F={key:6,class:"child"},R=i((()=>(0,t._)("div",{class:"label"},[(0,t._)("div",{class:"name"},"Number of reads")],-1))),U={class:"value"},Z=["textContent"],j={key:7,class:"child"},G=i((()=>(0,t._)("div",{class:"label"},[(0,t._)("div",{class:"name"},"Number of writes")],-1))),H={class:"value"},J=["textContent"],K={key:8,class:"child"},L=i((()=>(0,t._)("div",{class:"label"},[(0,t._)("div",{class:"name"},"Bytes read")],-1))),O={class:"value"},P=["textContent"],Q={key:9,class:"child"},V=i((()=>(0,t._)("div",{class:"label"},[(0,t._)("div",{class:"name"},"Bytes written")],-1))),X={class:"value"},Y=["textContent"],$={key:10,class:"child"},ee=i((()=>(0,t._)("div",{class:"label"},[(0,t._)("div",{class:"name"},"Read time")],-1))),le={class:"value"},ae=["textContent"],te={key:11,class:"child"},se=i((()=>(0,t._)("div",{class:"label"},[(0,t._)("div",{class:"name"},"Write time")],-1))),ne={class:"value"},ie=["textContent"],ve={key:12,class:"child"},de=i((()=>(0,t._)("div",{class:"label"},[(0,t._)("div",{class:"name"},"Busy time")],-1))),ce={class:"value"},ue=["textContent"];function oe(e,l,a,i,oe,_e){const re=(0,t.up)("EntityIcon");return(0,t.wg)(),(0,t.iD)("div",{class:(0,s.C_)(["entity disk-container",{expanded:!oe.isCollapsed}])},[(0,t._)("div",{class:"head",onClick:l[1]||(l[1]=(0,n.iM)((e=>oe.isCollapsed=!oe.isCollapsed),["stop"]))},[(0,t._)("div",v,[(0,t.Wm)(re,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,t._)("div",d,[(0,t._)("div",{class:"name",textContent:(0,s.zw)(e.value.name)},null,8,c)]),(0,t._)("div",u,[(0,t._)("div",{class:"value",textContent:(0,s.zw)(Math.round(100*e.value.percent,1)+"%")},null,8,o),(0,t._)("div",{class:"collapse-toggler",onClick:l[0]||(l[0]=(0,n.iM)((e=>oe.isCollapsed=!oe.isCollapsed),["stop"]))},[(0,t._)("i",{class:(0,s.C_)(["fas",{"fa-chevron-down":oe.isCollapsed,"fa-chevron-up":!oe.isCollapsed}])},null,2)])])]),oe.isCollapsed?(0,t.kq)("",!0):((0,t.wg)(),(0,t.iD)("div",_,[e.value.mountpoint?.length?((0,t.wg)(),(0,t.iD)("div",r,[m,(0,t._)("div",C,[(0,t._)("div",{class:"name",textContent:(0,s.zw)(e.value.mountpoint)},null,8,w)])])):(0,t.kq)("",!0),e.value.fstype?.length?((0,t.wg)(),(0,t.iD)("div",k,[p,(0,t._)("div",y,[(0,t._)("div",{class:"name",textContent:(0,s.zw)(e.value.fstype)},null,8,x)])])):(0,t.kq)("",!0),e.value.opts?.length?((0,t.wg)(),(0,t.iD)("div",b,[h,(0,t._)("div",g,[(0,t._)("div",{class:"name",textContent:(0,s.zw)(e.value.opts)},null,8,f)])])):(0,t.kq)("",!0),null!=e.value.total?((0,t.wg)(),(0,t.iD)("div",z,[D,(0,t._)("div",q,[(0,t._)("div",{class:"name",textContent:(0,s.zw)(e.convertSize(e.value.total))},null,8,M)])])):(0,t.kq)("",!0),null!=e.value.used?((0,t.wg)(),(0,t.iD)("div",S,[T,(0,t._)("div",B,[(0,t._)("div",{class:"name",textContent:(0,s.zw)(e.convertSize(e.value.used))},null,8,I)])])):(0,t.kq)("",!0),null!=e.value.free?((0,t.wg)(),(0,t.iD)("div",E,[N,(0,t._)("div",W,[(0,t._)("div",{class:"name",textContent:(0,s.zw)(e.convertSize(e.value.free))},null,8,A)])])):(0,t.kq)("",!0),null!=e.value.read_count?((0,t.wg)(),(0,t.iD)("div",F,[R,(0,t._)("div",U,[(0,t._)("div",{class:"name",textContent:(0,s.zw)(e.value.read_count)},null,8,Z)])])):(0,t.kq)("",!0),null!=e.value.write_count?((0,t.wg)(),(0,t.iD)("div",j,[G,(0,t._)("div",H,[(0,t._)("div",{class:"name",textContent:(0,s.zw)(e.value.write_count)},null,8,J)])])):(0,t.kq)("",!0),null!=e.value.read_bytes?((0,t.wg)(),(0,t.iD)("div",K,[L,(0,t._)("div",O,[(0,t._)("div",{class:"name",textContent:(0,s.zw)(e.convertSize(e.value.read_bytes))},null,8,P)])])):(0,t.kq)("",!0),null!=e.value.write_bytes?((0,t.wg)(),(0,t.iD)("div",Q,[V,(0,t._)("div",X,[(0,t._)("div",{class:"name",textContent:(0,s.zw)(e.convertSize(e.value.write_bytes))},null,8,Y)])])):(0,t.kq)("",!0),null!=e.value.read_time?((0,t.wg)(),(0,t.iD)("div",$,[ee,(0,t._)("div",le,[(0,t._)("div",{class:"name",textContent:(0,s.zw)(e.convertTime(e.value.read_time))},null,8,ae)])])):(0,t.kq)("",!0),null!=e.value.write_time?((0,t.wg)(),(0,t.iD)("div",te,[se,(0,t._)("div",ne,[(0,t._)("div",{class:"name",textContent:(0,s.zw)(e.convertTime(e.value.write_time))},null,8,ie)])])):(0,t.kq)("",!0),null!=e.value.busy_time?((0,t.wg)(),(0,t.iD)("div",ve,[de,(0,t._)("div",ce,[(0,t._)("div",{class:"name",textContent:(0,s.zw)(e.convertTime(e.value.busy_time))},null,8,ue)])])):(0,t.kq)("",!0)]))],2)}var _e=a(847),re=a(4967),me={name:"Disk",components:{EntityIcon:re["default"]},mixins:[_e["default"]],data(){return{isCollapsed:!0}}},Ce=a(3744);const we=(0,Ce.Z)(me,[["render",oe],["__scopeId","data-v-fb021b6a"]]);var ke=we}}]); -//# sourceMappingURL=8825.18ef8a1e.js.map \ No newline at end of file +//# sourceMappingURL=8825.b660e217.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/8825.18ef8a1e.js.map b/platypush/backend/http/webapp/dist/static/js/8825.b660e217.js.map similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/8825.18ef8a1e.js.map rename to platypush/backend/http/webapp/dist/static/js/8825.b660e217.js.map index a8e1ccaf3..0fbdd408e 100644 --- a/platypush/backend/http/webapp/dist/static/js/8825.18ef8a1e.js.map +++ b/platypush/backend/http/webapp/dist/static/js/8825.b660e217.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/8825.18ef8a1e.js","mappings":"iQAGWA,MAAM,Q,GAINA,MAAM,S,qBAINA,MAAM,qB,2BASRA,MAAM,oC,SACJA,MAAM,S,UACTC,EAAAA,EAAAA,GAEM,OAFDD,MAAM,SAAO,EAChBC,EAAAA,EAAAA,GAAkC,OAA7BD,MAAM,QAAO,gBAAU,K,GAEzBA,MAAM,S,2BAKRA,MAAM,S,UACTC,EAAAA,EAAAA,GAEM,OAFDD,MAAM,SAAO,EAChBC,EAAAA,EAAAA,GAAkC,OAA7BD,MAAM,QAAO,gBAAU,K,GAEzBA,MAAM,S,2BAKRA,MAAM,S,UACTC,EAAAA,EAAAA,GAEM,OAFDD,MAAM,SAAO,EAChBC,EAAAA,EAAAA,GAAqC,OAAhCD,MAAM,QAAO,mBAAa,K,GAE5BA,MAAM,S,2BAKRA,MAAM,S,UACTC,EAAAA,EAAAA,GAEM,OAFDD,MAAM,SAAO,EAChBC,EAAAA,EAAAA,GAAmC,OAA9BD,MAAM,QAAO,iBAAW,K,GAE1BA,MAAM,S,2BAKRA,MAAM,S,UACTC,EAAAA,EAAAA,GAEM,OAFDD,MAAM,SAAO,EAChBC,EAAAA,EAAAA,GAAkC,OAA7BD,MAAM,QAAO,gBAAU,K,GAEzBA,MAAM,S,2BAKRA,MAAM,S,UACTC,EAAAA,EAAAA,GAEM,OAFDD,MAAM,S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CAIJ,MAAnB3D,EAAAC,MAAM8D,YAAS,WAAxC5E,EAAAA,EAAAA,IAOM,MAPN6E,GAOM,CANJC,IAGA/E,EAAAA,EAAAA,GAEM,MAFNgF,GAEM,EADJhF,EAAAA,EAAAA,GAA0D,OAArDD,MAAM,O,aAAOoB,EAAAA,EAAAA,IAAQL,EAA6B0D,YAAjB1D,EAAAC,MAAM8D,a,gEAWtD,IACEzD,KAAM,OACN6D,WAAY,CAACC,WAAUA,GAAAA,YACvBC,OAAQ,CAACC,GAAAA,YAETC,IAAAA,GACE,MAAO,CACLhF,aAAa,EAEjB,G,WCnJF,MAAMiF,IAA2B,QAAgB,GAAQ,CAAC,CAAC,SAASC,IAAQ,CAAC,YAAY,qBAEzF,S","sources":["webpack://platypush/./src/components/panels/Entities/Disk.vue","webpack://platypush/./src/components/panels/Entities/Disk.vue?11fe"],"sourcesContent":["\n\n\n\n\n\n\n \n \n\n\n\n\n\n\n\n\n","import { render } from \"./Disk.vue?vue&type=template&id=fb021b6a&scoped=true\"\nimport script from \"./Disk.vue?vue&type=script&lang=js\"\nexport * from \"./Disk.vue?vue&type=script&lang=js\"\n\nimport \"./Disk.vue?vue&type=style&index=0&id=fb021b6a&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-fb021b6a\"]])\n\nexport default __exports__"],"names":["class","_createElementVNode","_createElementBlock","_normalizeClass","expanded","$data","isCollapsed","onClick","_cache","_withModifiers","$event","_hoisted_1","_createVNode","_component_EntityIcon","entity","_ctx","value","loading","error","_hoisted_2","_toDisplayString","name","_hoisted_4","Math","round","percent","_hoisted_6","mountpoint","length","_hoisted_7","_hoisted_8","_hoisted_9","fstype","_hoisted_11","_hoisted_12","_hoisted_13","opts","_hoisted_15","_hoisted_16","_hoisted_17","total","_hoisted_19","_hoisted_20","_hoisted_21","convertSize","used","_hoisted_23","_hoisted_24","_hoisted_25","free","_hoisted_27","_hoisted_28","_hoisted_29","read_count","_hoisted_31","_hoisted_32","_hoisted_33","write_count","_hoisted_35","_hoisted_36","_hoisted_37","read_bytes","_hoisted_39","_hoisted_40","_hoisted_41","write_bytes","_hoisted_43","_hoisted_44","_hoisted_45","read_time","_hoisted_47","_hoisted_48","_hoisted_49","convertTime","write_time","_hoisted_51","_hoisted_52","_hoisted_53","busy_time","_hoisted_55","_hoisted_56","_hoisted_57","components","EntityIcon","mixins","EntityMixin","data","__exports__","render"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/8825.b660e217.js","mappings":"iQAGWA,MAAM,Q,GAINA,MAAM,S,qBAINA,MAAM,qB,2BASRA,MAAM,oC,SACJA,MAAM,S,UACTC,EAAAA,EAAAA,GAEM,OAFDD,MAAM,SAAO,EAChBC,EAAAA,EAAAA,GAAkC,OAA7BD,MAAM,QAAO,gBAAU,K,GAEzBA,MAAM,S,2BAKRA,MAAM,S,UACTC,EAAAA,EAAAA,GAEM,OAFDD,MAAM,SAAO,EAChBC,EAAAA,EAAAA,GAAkC,OAA7BD,MAAM,QAAO,gBAAU,K,GAEzBA,MAAM,S,2BAKRA,MAAM,S,UACTC,EAAAA,EAAAA,GAEM,OAFDD,MAAM,SAAO,EAChBC,EAAAA,EAAAA,GAAqC,OAAhCD,MAAM,QAAO,mBAAa,K,GAE5BA,MAAM,S,2BAKRA,MAAM,S,UACTC,EAAAA,EAAAA,GAEM,OAFDD,MAAM,SAAO,EAChBC,EAAAA,EAAAA,GAAmC,OAA9BD,MAAM,QAAO,iBAAW,K,GAE1BA,MAAM,S,2BAKRA,MAAM,S,UACTC,EAAAA,EAAAA,GAEM,OAFDD,MAAM,SAAO,EAChBC,EAAAA,EAAAA,GAAkC,OAA7BD,MAAM,QAAO,gBAAU,K,GAEzBA,MAAM,S,2BAKRA,MAAM,S,UACTC,EAAAA,EAAAA,GAEM,OAFDD,MAAM,SAAO,EAChBC,EAAAA,EAAAA,GAAuC,O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AS,WAAxC5E,EAAAA,EAAAA,IAOM,MAPN6E,GAOM,CANJC,IAGA/E,EAAAA,EAAAA,GAEM,MAFNgF,GAEM,EADJhF,EAAAA,EAAAA,GAA0D,OAArDD,MAAM,O,aAAOoB,EAAAA,EAAAA,IAAQL,EAA6B0D,YAAjB1D,EAAAC,MAAM8D,a,gEAWtD,IACEzD,KAAM,OACN6D,WAAY,CAACC,WAAUA,GAAAA,YACvBC,OAAQ,CAACC,GAAAA,YAETC,IAAAA,GACE,MAAO,CACLhF,aAAa,EAEjB,G,WCnJF,MAAMiF,IAA2B,QAAgB,GAAQ,CAAC,CAAC,SAASC,IAAQ,CAAC,YAAY,qBAEzF,S","sources":["webpack://platypush/./src/components/panels/Entities/Disk.vue","webpack://platypush/./src/components/panels/Entities/Disk.vue?11fe"],"sourcesContent":["\n\n\n\n\n\n\n\n \n \n\n\n\n \n\n\n \n\n\n\n\n\n\n\n\nMountpoint\n\n \n\n\n\n\n\n\nFilesystem\n\n \n\n\n\n\n\n\nMount options\n\n \n\n\n\n\n\n\nTotal space\n\n \n\n\n\n\n\n\nUsed space\n\n \n\n\n\n\n\n\nAvailable space\n\n \n\n\n\n\n\n\nNumber of reads\n\n \n\n\n\n\n\n\nNumber of writes\n\n \n\n\n\n\n\n\nBytes read\n\n \n\n\n\n\n\n\nBytes written\n\n \n\n\n\n\n\n\nRead time\n\n \n\n\n\n\n\n\nWrite time\n\n \n\n\n\n\n\nBusy time\n\n \n\n\n\n\n\n\n\n\n","import { render } from \"./Disk.vue?vue&type=template&id=fb021b6a&scoped=true\"\nimport script from \"./Disk.vue?vue&type=script&lang=js\"\nexport * from \"./Disk.vue?vue&type=script&lang=js\"\n\nimport \"./Disk.vue?vue&type=style&index=0&id=fb021b6a&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-fb021b6a\"]])\n\nexport default __exports__"],"names":["class","_createElementVNode","_createElementBlock","_normalizeClass","expanded","$data","isCollapsed","onClick","_cache","_withModifiers","$event","_hoisted_1","_createVNode","_component_EntityIcon","entity","_ctx","value","loading","error","_hoisted_2","_toDisplayString","name","_hoisted_4","Math","round","percent","_hoisted_6","mountpoint","length","_hoisted_7","_hoisted_8","_hoisted_9","fstype","_hoisted_11","_hoisted_12","_hoisted_13","opts","_hoisted_15","_hoisted_16","_hoisted_17","total","_hoisted_19","_hoisted_20","_hoisted_21","convertSize","used","_hoisted_23","_hoisted_24","_hoisted_25","free","_hoisted_27","_hoisted_28","_hoisted_29","read_count","_hoisted_31","_hoisted_32","_hoisted_33","write_count","_hoisted_35","_hoisted_36","_hoisted_37","read_bytes","_hoisted_39","_hoisted_40","_hoisted_41","write_bytes","_hoisted_43","_hoisted_44","_hoisted_45","read_time","_hoisted_47","_hoisted_48","_hoisted_49","convertTime","write_time","_hoisted_51","_hoisted_52","_hoisted_53","busy_time","_hoisted_55","_hoisted_56","_hoisted_57","components","EntityIcon","mixins","EntityMixin","data","__exports__","render"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/8895.a6247bc4.js b/platypush/backend/http/webapp/dist/static/js/8895.29a5da0d.js similarity index 98% rename from platypush/backend/http/webapp/dist/static/js/8895.a6247bc4.js rename to platypush/backend/http/webapp/dist/static/js/8895.29a5da0d.js index c968f81ab..e11c5480d 100644 --- a/platypush/backend/http/webapp/dist/static/js/8895.a6247bc4.js +++ b/platypush/backend/http/webapp/dist/static/js/8895.29a5da0d.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8895,5324],{5324:function(a,t,e){e.r(t),e.d(t,{default:function(){return ha}});var s=e(6252),n=e(9963);const i={class:"camera"},r={class:"camera-container"},l={class:"frame-container",ref:"frameContainer"},o={key:0,class:"no-frame"},c=["src"],u={class:"controls"},h={class:"left"},p=["disabled"],d=(0,s._)("i",{class:"fa fa-play"},null,-1),m=[d],g=["disabled"],_=(0,s._)("i",{class:"fa fa-stop"},null,-1),f=[_],y=["disabled"],w=(0,s._)("i",{class:"fas fa-camera"},null,-1),C=[w],v={class:"right"},b=(0,s._)("i",{class:"fas fa-volume-mute"},null,-1),S=[b],k=(0,s._)("i",{class:"fas fa-volume-up"},null,-1),z=[k],x=(0,s._)("i",{class:"fas fa-cog"},null,-1),$=[x],F={class:"audio-container"},U={key:0,autoplay:"",preload:"none",ref:"player"},M=["src"],D={key:0,class:"url"},V={class:"row"},P=(0,s._)("span",{class:"name"},"Stream URL",-1),q=["value"],A={class:"params"},L={class:"row"},O=(0,s._)("span",{class:"name"},"Device",-1),W={class:"row"},j=(0,s._)("span",{class:"name"},"Width",-1),H={class:"row"},G=(0,s._)("span",{class:"name"},"Height",-1),I={class:"row"},R=(0,s._)("span",{class:"name"},"Horizontal Flip",-1),T={class:"row"},Z=(0,s._)("span",{class:"name"},"Vertical Flip",-1),Y={class:"row"},E=(0,s._)("span",{class:"name"},"Rotate",-1),X={class:"row"},B=(0,s._)("span",{class:"name"},"Scale-X",-1),J={class:"row"},K=(0,s._)("span",{class:"name"},"Scale-Y",-1),N={class:"row"},Q=(0,s._)("span",{class:"name"},"Frames per second",-1),aa={class:"row"},ta=(0,s._)("span",{class:"name"},"Grayscale",-1);function ea(a,t,e,d,_,w){const b=(0,s.up)("Slot"),k=(0,s.up)("Modal");return(0,s.wg)(),(0,s.iD)("div",i,[(0,s._)("div",r,[(0,s._)("div",l,[a.streaming||a.capturing||a.captured?(0,s.kq)("",!0):((0,s.wg)(),(0,s.iD)("div",o,"The camera is not active")),(0,s._)("img",{class:"frame",src:a.url,ref:"frame",alt:""},null,8,c)],512),(0,s._)("div",u,[(0,s._)("div",h,[a.streaming?((0,s.wg)(),(0,s.iD)("button",{key:1,type:"button",onClick:t[1]||(t[1]=(...t)=>a.stopStreaming&&a.stopStreaming(...t)),disabled:a.capturing,title:"Stop video"},f,8,g)):((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",onClick:t[0]||(t[0]=(...a)=>w.startStreaming&&w.startStreaming(...a)),disabled:a.capturing,title:"Start video"},m,8,p)),a.streaming?(0,s.kq)("",!0):((0,s.wg)(),(0,s.iD)("button",{key:2,type:"button",onClick:t[2]||(t[2]=(...a)=>w.capture&&w.capture(...a)),disabled:a.streaming||a.capturing,title:"Take a picture"},C,8,y))]),(0,s._)("div",v,[a.audioOn?((0,s.wg)(),(0,s.iD)("button",{key:1,type:"button",onClick:t[4]||(t[4]=(...t)=>a.stopAudio&&a.stopAudio(...t)),title:"Stop audio"},z)):((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",onClick:t[3]||(t[3]=(...t)=>a.startAudio&&a.startAudio(...t)),title:"Start audio"},S)),(0,s._)("button",{type:"button",onClick:t[5]||(t[5]=t=>a.$refs.paramsModal.show()),title:"Settings"},$)])])]),(0,s._)("div",F,[a.audioOn?((0,s.wg)(),(0,s.iD)("audio",U,[(0,s._)("source",{src:`/sound/stream.aac?t=${(new Date).getTime()}`},null,8,M),(0,s.Uk)(" Your browser does not support audio elements ")],512)):(0,s.kq)("",!0)]),a.url?.length?((0,s.wg)(),(0,s.iD)("div",D,[(0,s._)("label",V,[P,(0,s._)("input",{name:"url",type:"text",value:w.fullURL,disabled:"disabled"},null,8,q)])])):(0,s.kq)("",!0),(0,s.Wm)(k,{ref:"paramsModal",title:"Camera Parameters"},{default:(0,s.w5)((()=>[(0,s._)("div",A,[(0,s._)("label",L,[O,(0,s.wy)((0,s._)("input",{name:"device",type:"text","onUpdate:modelValue":t[6]||(t[6]=t=>a.attrs.device=t),onChange:t[7]||(t[7]=(...t)=>a.onDeviceChanged&&a.onDeviceChanged(...t))},null,544),[[n.nr,a.attrs.device]])]),(0,s._)("label",W,[j,(0,s.wy)((0,s._)("input",{name:"width",type:"text","onUpdate:modelValue":t[8]||(t[8]=t=>a.attrs.resolution[0]=t),onChange:t[9]||(t[9]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.resolution[0]]])]),(0,s._)("label",H,[G,(0,s.wy)((0,s._)("input",{name:"height",type:"text","onUpdate:modelValue":t[10]||(t[10]=t=>a.attrs.resolution[1]=t),onChange:t[11]||(t[11]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.resolution[1]]])]),(0,s._)("label",I,[R,(0,s.wy)((0,s._)("input",{name:"horizontal_flip",type:"checkbox","onUpdate:modelValue":t[12]||(t[12]=t=>a.attrs.horizontal_flip=t),onChange:t[13]||(t[13]=(...t)=>a.onFlipChanged&&a.onFlipChanged(...t))},null,544),[[n.e8,a.attrs.horizontal_flip]])]),(0,s._)("label",T,[Z,(0,s.wy)((0,s._)("input",{name:"vertical_flip",type:"checkbox","onUpdate:modelValue":t[14]||(t[14]=t=>a.attrs.vertical_flip=t),onChange:t[15]||(t[15]=(...t)=>a.onFlipChanged&&a.onFlipChanged(...t))},null,544),[[n.e8,a.attrs.vertical_flip]])]),(0,s._)("label",Y,[E,(0,s.wy)((0,s._)("input",{name:"rotate",type:"text","onUpdate:modelValue":t[16]||(t[16]=t=>a.attrs.rotate=t),onChange:t[17]||(t[17]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.rotate]])]),(0,s._)("label",X,[B,(0,s.wy)((0,s._)("input",{name:"scale_x",type:"text","onUpdate:modelValue":t[18]||(t[18]=t=>a.attrs.scale_x=t),onChange:t[19]||(t[19]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.scale_x]])]),(0,s._)("label",J,[K,(0,s.wy)((0,s._)("input",{name:"scale_y",type:"text","onUpdate:modelValue":t[20]||(t[20]=t=>a.attrs.scale_y=t),onChange:t[21]||(t[21]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.scale_y]])]),(0,s._)("label",N,[Q,(0,s.wy)((0,s._)("input",{name:"fps",type:"text","onUpdate:modelValue":t[22]||(t[22]=t=>a.attrs.fps=t),onChange:t[23]||(t[23]=(...t)=>a.onFpsChanged&&a.onFpsChanged(...t))},null,544),[[n.nr,a.attrs.fps]])]),(0,s._)("label",aa,[ta,(0,s.wy)((0,s._)("input",{name:"grayscale",type:"checkbox","onUpdate:modelValue":t[24]||(t[24]=t=>a.attrs.grayscale=t),onChange:t[25]||(t[25]=(...t)=>a.onGrayscaleChanged&&a.onGrayscaleChanged(...t))},null,544),[[n.e8,a.attrs.grayscale]])]),(0,s.Wm)(b)])])),_:1},512)])}var sa=e(5576),na={name:"CameraMixin",mixins:[sa.Z],props:{cameraPlugin:{type:String,required:!0}},data(){return{streaming:!1,capturing:!1,captured:!1,audioOn:!1,url:null,attrs:{}}},computed:{params(){return{resolution:this.attrs.resolution,device:this.attrs.device?.length?this.attrs.device:null,horizontal_flip:parseInt(0+this.attrs.horizontal_flip),vertical_flip:parseInt(0+this.attrs.vertical_flip),rotate:parseFloat(this.attrs.rotate),scale_x:parseFloat(this.attrs.scale_x),scale_y:parseFloat(this.attrs.scale_y),fps:parseFloat(this.attrs.fps),grayscale:parseInt(0+this.attrs.grayscale)}}},methods:{getUrl(a,t){return"/camera/"+a+"/"+t+"?"+Object.entries(this.params).filter((a=>null!=a[1]&&(""+a[1]).length>0)).map((([a,t])=>a+"="+t)).join("&")},_startStreaming(a){this.streaming||(this.streaming=!0,this.capturing=!1,this.captured=!1,this.url=this.getUrl(a,"video."+this.attrs.stream_format))},stopStreaming(){this.streaming&&(this.streaming=!1,this.capturing=!1,this.url=null)},_capture(a){this.capturing||(this.streaming=!1,this.capturing=!0,this.captured=!0,this.url=this.getUrl(a,"photo.jpg")+"&t="+(new Date).getTime())},onFrameLoaded(){this.capturing&&(this.capturing=!1)},onDeviceChanged(){},onFlipChanged(){},onSizeChanged(){const a=a=>a*Math.PI/180,t=a(this.params.rotate);let e=Math.round(this.params.scale_x*Math.abs(this.params.resolution[0]*Math.cos(t)+this.params.resolution[1]*Math.sin(t))),s=Math.round(this.params.scale_y*Math.abs(this.params.resolution[0]*Math.sin(t)+this.params.resolution[1]*Math.cos(t)));e>window.innerWidth&&(s=Math.round(s*(window.innerWidth/e)),e=window.innerWidth),s>window.innerHeight&&(e=Math.round(e*(window.innerHeight/s)),s=window.innerHeight),this.$refs.frameContainer.style.width=`${e}px`,this.$refs.frameContainer.style.height=`${s}px`},onFpsChanged(){},onGrayscaleChanged(){},startAudio(){this.audioOn=!0},async stopAudio(){this.audioOn=!1,await this.request("sound.stop_recording")}},created(){const a=this.$root.config[`camera.${this.cameraPlugin}`]||{};this.attrs={resolution:a.resolution||[640,480],device:a.device,horizontal_flip:a.horizontal_flip||0,vertical_flip:a.vertical_flip||0,rotate:a.rotate||0,scale_x:a.scale_x||1,scale_y:a.scale_y||1,fps:a.fps||16,grayscale:a.grayscale||0,stream_format:a.stream_format||"mjpeg"}},mounted(){this.$refs.frame.addEventListener("load",this.onFrameLoaded),this.onSizeChanged(),this.$watch((()=>this.attrs.resolution),this.onSizeChanged),this.$watch((()=>this.attrs.horizontal_flip),this.onSizeChanged),this.$watch((()=>this.attrs.vertical_flip),this.onSizeChanged),this.$watch((()=>this.attrs.rotate),this.onSizeChanged),this.$watch((()=>this.attrs.scale_x),this.onSizeChanged),this.$watch((()=>this.attrs.scale_y),this.onSizeChanged)}};const ia=na;var ra=ia,la=e(9417),oa={name:"Camera",components:{Modal:la.Z},mixins:[ra],props:{cameraPlugin:{type:String,required:!0}},computed:{fullURL(){return`${window.location.protocol}//${window.location.host}${this.url}`}},methods:{startStreaming(){this._startStreaming(this.cameraPlugin)},capture(){this._capture(this.cameraPlugin)}}},ca=e(3744);const ua=(0,ca.Z)(oa,[["render",ea]]);var ha=ua},8895:function(a,t,e){e.r(t),e.d(t,{default:function(){return c}});var s=e(6252);function n(a,t,e,n,i,r){const l=(0,s.up)("Camera");return(0,s.wg)(),(0,s.j4)(l,{"camera-plugin":"pi"})}var i=e(5324),r={name:"CameraPi",components:{Camera:i["default"]}},l=e(3744);const o=(0,l.Z)(r,[["render",n]]);var c=o}}]); -//# sourceMappingURL=8895.a6247bc4.js.map \ No newline at end of file +"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8895,5324],{5324:function(a,t,e){e.r(t),e.d(t,{default:function(){return ha}});var s=e(6252),n=e(9963);const i={class:"camera"},r={class:"camera-container"},l={class:"frame-container",ref:"frameContainer"},o={key:0,class:"no-frame"},c=["src"],u={class:"controls"},h={class:"left"},p=["disabled"],d=(0,s._)("i",{class:"fa fa-play"},null,-1),m=[d],g=["disabled"],_=(0,s._)("i",{class:"fa fa-stop"},null,-1),f=[_],y=["disabled"],w=(0,s._)("i",{class:"fas fa-camera"},null,-1),C=[w],v={class:"right"},b=(0,s._)("i",{class:"fas fa-volume-mute"},null,-1),S=[b],k=(0,s._)("i",{class:"fas fa-volume-up"},null,-1),z=[k],x=(0,s._)("i",{class:"fas fa-cog"},null,-1),$=[x],F={class:"audio-container"},U={key:0,autoplay:"",preload:"none",ref:"player"},M=["src"],D={key:0,class:"url"},V={class:"row"},P=(0,s._)("span",{class:"name"},"Stream URL",-1),q=["value"],A={class:"params"},L={class:"row"},O=(0,s._)("span",{class:"name"},"Device",-1),W={class:"row"},j=(0,s._)("span",{class:"name"},"Width",-1),H={class:"row"},G=(0,s._)("span",{class:"name"},"Height",-1),I={class:"row"},R=(0,s._)("span",{class:"name"},"Horizontal Flip",-1),T={class:"row"},Z=(0,s._)("span",{class:"name"},"Vertical Flip",-1),Y={class:"row"},E=(0,s._)("span",{class:"name"},"Rotate",-1),X={class:"row"},B=(0,s._)("span",{class:"name"},"Scale-X",-1),J={class:"row"},K=(0,s._)("span",{class:"name"},"Scale-Y",-1),N={class:"row"},Q=(0,s._)("span",{class:"name"},"Frames per second",-1),aa={class:"row"},ta=(0,s._)("span",{class:"name"},"Grayscale",-1);function ea(a,t,e,d,_,w){const b=(0,s.up)("Slot"),k=(0,s.up)("Modal");return(0,s.wg)(),(0,s.iD)("div",i,[(0,s._)("div",r,[(0,s._)("div",l,[a.streaming||a.capturing||a.captured?(0,s.kq)("",!0):((0,s.wg)(),(0,s.iD)("div",o,"The camera is not active")),(0,s._)("img",{class:"frame",src:a.url,ref:"frame",alt:""},null,8,c)],512),(0,s._)("div",u,[(0,s._)("div",h,[a.streaming?((0,s.wg)(),(0,s.iD)("button",{key:1,type:"button",onClick:t[1]||(t[1]=(...t)=>a.stopStreaming&&a.stopStreaming(...t)),disabled:a.capturing,title:"Stop video"},f,8,g)):((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",onClick:t[0]||(t[0]=(...a)=>w.startStreaming&&w.startStreaming(...a)),disabled:a.capturing,title:"Start video"},m,8,p)),a.streaming?(0,s.kq)("",!0):((0,s.wg)(),(0,s.iD)("button",{key:2,type:"button",onClick:t[2]||(t[2]=(...a)=>w.capture&&w.capture(...a)),disabled:a.streaming||a.capturing,title:"Take a picture"},C,8,y))]),(0,s._)("div",v,[a.audioOn?((0,s.wg)(),(0,s.iD)("button",{key:1,type:"button",onClick:t[4]||(t[4]=(...t)=>a.stopAudio&&a.stopAudio(...t)),title:"Stop audio"},z)):((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",onClick:t[3]||(t[3]=(...t)=>a.startAudio&&a.startAudio(...t)),title:"Start audio"},S)),(0,s._)("button",{type:"button",onClick:t[5]||(t[5]=t=>a.$refs.paramsModal.show()),title:"Settings"},$)])])]),(0,s._)("div",F,[a.audioOn?((0,s.wg)(),(0,s.iD)("audio",U,[(0,s._)("source",{src:`/sound/stream.aac?t=${(new Date).getTime()}`},null,8,M),(0,s.Uk)(" Your browser does not support audio elements ")],512)):(0,s.kq)("",!0)]),a.url?.length?((0,s.wg)(),(0,s.iD)("div",D,[(0,s._)("label",V,[P,(0,s._)("input",{name:"url",type:"text",value:w.fullURL,disabled:"disabled"},null,8,q)])])):(0,s.kq)("",!0),(0,s.Wm)(k,{ref:"paramsModal",title:"Camera Parameters"},{default:(0,s.w5)((()=>[(0,s._)("div",A,[(0,s._)("label",L,[O,(0,s.wy)((0,s._)("input",{name:"device",type:"text","onUpdate:modelValue":t[6]||(t[6]=t=>a.attrs.device=t),onChange:t[7]||(t[7]=(...t)=>a.onDeviceChanged&&a.onDeviceChanged(...t))},null,544),[[n.nr,a.attrs.device]])]),(0,s._)("label",W,[j,(0,s.wy)((0,s._)("input",{name:"width",type:"text","onUpdate:modelValue":t[8]||(t[8]=t=>a.attrs.resolution[0]=t),onChange:t[9]||(t[9]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.resolution[0]]])]),(0,s._)("label",H,[G,(0,s.wy)((0,s._)("input",{name:"height",type:"text","onUpdate:modelValue":t[10]||(t[10]=t=>a.attrs.resolution[1]=t),onChange:t[11]||(t[11]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.resolution[1]]])]),(0,s._)("label",I,[R,(0,s.wy)((0,s._)("input",{name:"horizontal_flip",type:"checkbox","onUpdate:modelValue":t[12]||(t[12]=t=>a.attrs.horizontal_flip=t),onChange:t[13]||(t[13]=(...t)=>a.onFlipChanged&&a.onFlipChanged(...t))},null,544),[[n.e8,a.attrs.horizontal_flip]])]),(0,s._)("label",T,[Z,(0,s.wy)((0,s._)("input",{name:"vertical_flip",type:"checkbox","onUpdate:modelValue":t[14]||(t[14]=t=>a.attrs.vertical_flip=t),onChange:t[15]||(t[15]=(...t)=>a.onFlipChanged&&a.onFlipChanged(...t))},null,544),[[n.e8,a.attrs.vertical_flip]])]),(0,s._)("label",Y,[E,(0,s.wy)((0,s._)("input",{name:"rotate",type:"text","onUpdate:modelValue":t[16]||(t[16]=t=>a.attrs.rotate=t),onChange:t[17]||(t[17]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.rotate]])]),(0,s._)("label",X,[B,(0,s.wy)((0,s._)("input",{name:"scale_x",type:"text","onUpdate:modelValue":t[18]||(t[18]=t=>a.attrs.scale_x=t),onChange:t[19]||(t[19]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.scale_x]])]),(0,s._)("label",J,[K,(0,s.wy)((0,s._)("input",{name:"scale_y",type:"text","onUpdate:modelValue":t[20]||(t[20]=t=>a.attrs.scale_y=t),onChange:t[21]||(t[21]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.scale_y]])]),(0,s._)("label",N,[Q,(0,s.wy)((0,s._)("input",{name:"fps",type:"text","onUpdate:modelValue":t[22]||(t[22]=t=>a.attrs.fps=t),onChange:t[23]||(t[23]=(...t)=>a.onFpsChanged&&a.onFpsChanged(...t))},null,544),[[n.nr,a.attrs.fps]])]),(0,s._)("label",aa,[ta,(0,s.wy)((0,s._)("input",{name:"grayscale",type:"checkbox","onUpdate:modelValue":t[24]||(t[24]=t=>a.attrs.grayscale=t),onChange:t[25]||(t[25]=(...t)=>a.onGrayscaleChanged&&a.onGrayscaleChanged(...t))},null,544),[[n.e8,a.attrs.grayscale]])]),(0,s.Wm)(b)])])),_:1},512)])}var sa=e(3956),na={name:"CameraMixin",mixins:[sa.Z],props:{cameraPlugin:{type:String,required:!0}},data(){return{streaming:!1,capturing:!1,captured:!1,audioOn:!1,url:null,attrs:{}}},computed:{params(){return{resolution:this.attrs.resolution,device:this.attrs.device?.length?this.attrs.device:null,horizontal_flip:parseInt(0+this.attrs.horizontal_flip),vertical_flip:parseInt(0+this.attrs.vertical_flip),rotate:parseFloat(this.attrs.rotate),scale_x:parseFloat(this.attrs.scale_x),scale_y:parseFloat(this.attrs.scale_y),fps:parseFloat(this.attrs.fps),grayscale:parseInt(0+this.attrs.grayscale)}}},methods:{getUrl(a,t){return"/camera/"+a+"/"+t+"?"+Object.entries(this.params).filter((a=>null!=a[1]&&(""+a[1]).length>0)).map((([a,t])=>a+"="+t)).join("&")},_startStreaming(a){this.streaming||(this.streaming=!0,this.capturing=!1,this.captured=!1,this.url=this.getUrl(a,"video."+this.attrs.stream_format))},stopStreaming(){this.streaming&&(this.streaming=!1,this.capturing=!1,this.url=null)},_capture(a){this.capturing||(this.streaming=!1,this.capturing=!0,this.captured=!0,this.url=this.getUrl(a,"photo.jpg")+"&t="+(new Date).getTime())},onFrameLoaded(){this.capturing&&(this.capturing=!1)},onDeviceChanged(){},onFlipChanged(){},onSizeChanged(){const a=a=>a*Math.PI/180,t=a(this.params.rotate);let e=Math.round(this.params.scale_x*Math.abs(this.params.resolution[0]*Math.cos(t)+this.params.resolution[1]*Math.sin(t))),s=Math.round(this.params.scale_y*Math.abs(this.params.resolution[0]*Math.sin(t)+this.params.resolution[1]*Math.cos(t)));e>window.innerWidth&&(s=Math.round(s*(window.innerWidth/e)),e=window.innerWidth),s>window.innerHeight&&(e=Math.round(e*(window.innerHeight/s)),s=window.innerHeight),this.$refs.frameContainer.style.width=`${e}px`,this.$refs.frameContainer.style.height=`${s}px`},onFpsChanged(){},onGrayscaleChanged(){},startAudio(){this.audioOn=!0},async stopAudio(){this.audioOn=!1,await this.request("sound.stop_recording")}},created(){const a=this.$root.config[`camera.${this.cameraPlugin}`]||{};this.attrs={resolution:a.resolution||[640,480],device:a.device,horizontal_flip:a.horizontal_flip||0,vertical_flip:a.vertical_flip||0,rotate:a.rotate||0,scale_x:a.scale_x||1,scale_y:a.scale_y||1,fps:a.fps||16,grayscale:a.grayscale||0,stream_format:a.stream_format||"mjpeg"}},mounted(){this.$refs.frame.addEventListener("load",this.onFrameLoaded),this.onSizeChanged(),this.$watch((()=>this.attrs.resolution),this.onSizeChanged),this.$watch((()=>this.attrs.horizontal_flip),this.onSizeChanged),this.$watch((()=>this.attrs.vertical_flip),this.onSizeChanged),this.$watch((()=>this.attrs.rotate),this.onSizeChanged),this.$watch((()=>this.attrs.scale_x),this.onSizeChanged),this.$watch((()=>this.attrs.scale_y),this.onSizeChanged)}};const ia=na;var ra=ia,la=e(9417),oa={name:"Camera",components:{Modal:la.Z},mixins:[ra],props:{cameraPlugin:{type:String,required:!0}},computed:{fullURL(){return`${window.location.protocol}//${window.location.host}${this.url}`}},methods:{startStreaming(){this._startStreaming(this.cameraPlugin)},capture(){this._capture(this.cameraPlugin)}}},ca=e(3744);const ua=(0,ca.Z)(oa,[["render",ea]]);var ha=ua},8895:function(a,t,e){e.r(t),e.d(t,{default:function(){return c}});var s=e(6252);function n(a,t,e,n,i,r){const l=(0,s.up)("Camera");return(0,s.wg)(),(0,s.j4)(l,{"camera-plugin":"pi"})}var i=e(5324),r={name:"CameraPi",components:{Camera:i["default"]}},l=e(3744);const o=(0,l.Z)(r,[["render",n]]);var c=o}}]); +//# sourceMappingURL=8895.29a5da0d.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/8895.a6247bc4.js.map b/platypush/backend/http/webapp/dist/static/js/8895.29a5da0d.js.map similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/8895.a6247bc4.js.map rename to platypush/backend/http/webapp/dist/static/js/8895.29a5da0d.js.map index eca6af928..5a08b4a00 100644 --- a/platypush/backend/http/webapp/dist/static/js/8895.a6247bc4.js.map +++ b/platypush/backend/http/webapp/dist/static/js/8895.29a5da0d.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/8895.a6247bc4.js","mappings":"sMACOA,MAAM,U,GACJA,MAAM,oB,GACJA,MAAM,kBAAkBC,IAAI,kB,SAC1BD,MAAM,Y,aAIRA,MAAM,Y,GACJA,MAAM,Q,kBAEPE,EAAAA,EAAAA,GAAwB,KAArBF,MAAM,cAAY,S,GAArBG,G,kBAIAD,EAAAA,EAAAA,GAAwB,KAArBF,MAAM,cAAY,S,GAArBI,G,kBAKAF,EAAAA,EAAAA,GAA2B,KAAxBF,MAAM,iBAAe,S,GAAxBK,G,GAICL,MAAM,S,GAEPE,EAAAA,EAAAA,GAAgC,KAA7BF,MAAM,sBAAoB,S,GAA7BM,G,GAIAJ,EAAAA,EAAAA,GAA8B,KAA3BF,MAAM,oBAAkB,S,GAA3BO,G,GAIAL,EA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AAMuG,MAAMC,iBAAiB,OAAQzC,KAAKkB,eAC/ClB,KAAKrC,gBACLqC,KAAK0C,QAAO,IAAM1C,KAAK5C,MAAMM,YAAYsC,KAAKrC,eAC9CqC,KAAK0C,QAAO,IAAM1C,KAAK5C,MAAMY,iBAAiBgC,KAAKrC,eACnDqC,KAAK0C,QAAO,IAAM1C,KAAK5C,MAAMgB,eAAe4B,KAAKrC,eACjDqC,KAAK0C,QAAO,IAAM1C,KAAK5C,MAAMmB,QAAQyB,KAAKrC,eAC1CqC,KAAK0C,QAAO,IAAM1C,KAAK5C,MAAMsB,SAASsB,KAAKrC,eAC3CqC,KAAK0C,QAAO,IAAM1C,KAAK5C,MAAMyB,SAASmB,KAAKrC,cAC7C,GC5IF,MAAMgF,GAAc,GAEpB,U,WF+GA,IACE/F,KAAM,SACNgG,WAAY,CAACC,MAAKA,GAAAA,GAClBtD,OAAQ,CAACuD,IACTrD,MAAO,CACLC,aAAc,CACZxE,KAAMyE,OACNC,UAAU,IAIdE,SAAU,CACRhD,OAAAA,GACE,MAAQ,GAAEgF,OAAOiB,SAASC,aAAalB,OAAOiB,SAASE,OAAOjD,KAAKlF,KACrE,GAGFqF,QAAS,CACPzE,cAAAA,GACEsE,KAAKe,gBAAgBf,KAAKN,aAC5B,EAEA/D,OAAAA,GACEqE,KAAKiB,SAASjB,KAAKN,aACrB,I,WGrIJ,MAAM,IAA2B,QAAgB,GAAQ,CAAC,CAAC,SAASwD,MAEpE,S,uJCREC,EAAAA,EAAAA,IAA6BC,EAAA,CAArB,gBAAc,M,eAMxB,GACExG,KAAM,WACNgG,WAAY,CAACS,OAAMA,EAAAA,a,UCJrB,MAAMV,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASO,KAEpE,O","sources":["webpack://platypush/./src/components/panels/Camera/Index.vue","webpack://platypush/./src/components/panels/Camera/Mixin.vue","webpack://platypush/./src/components/panels/Camera/Mixin.vue?be5e","webpack://platypush/./src/components/panels/Camera/Index.vue?8810","webpack://platypush/./src/components/panels/CameraPi/Index.vue","webpack://platypush/./src/components/panels/CameraPi/Index.vue?7074"],"sourcesContent":["\n\n\n\n\n\n\n\n \n \n\n\n\n \n\n\n \n\n\n\n\n\n\n\n\nMountpoint\n\n \n\n\n\n\n\n\nFilesystem\n\n \n\n\n\n\n\n\nMount options\n\n \n\n\n\n\n\n\nTotal space\n\n \n\n\n\n\n\n\nUsed space\n\n \n\n\n\n\n\n\nAvailable space\n\n \n\n\n\n\n\n\nNumber of reads\n\n \n\n\n\n\n\n\nNumber of writes\n\n \n\n\n\n\n\n\nBytes read\n\n \n\n\n\n\n\n\nBytes written\n\n \n\n\n\n\n\n\nRead time\n\n \n\n\n\n\n\n\nWrite time\n\n \n\n\n\n\n\nBusy time\n\n \n\n\n\n\n\n\n\n\n","\n","import script from \"./Mixin.vue?vue&type=script&lang=js\"\nexport * from \"./Mixin.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=a4970096\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=a4970096&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\nThe camera is not active\n \n\n\n\n \n\n \n\n \n\n\n\n \n\n \n\n \n\n\n \n\n\n\n \n\n\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n\n\n \n\n\n\n","import { render } from \"./Index.vue?vue&type=template&id=6f4a0590\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","ref","_createElementVNode","_hoisted_9","_hoisted_12","_hoisted_15","_hoisted_18","_hoisted_20","_hoisted_22","autoplay","preload","_createElementBlock","_hoisted_1","_hoisted_2","_hoisted_3","_ctx","streaming","capturing","captured","_hoisted_4","src","url","alt","_hoisted_6","_hoisted_7","type","onClick","_cache","args","stopStreaming","disabled","title","$options","startStreaming","capture","_hoisted_17","audioOn","stopAudio","startAudio","$event","$refs","paramsModal","show","_hoisted_24","_hoisted_25","Date","getTime","length","_hoisted_27","_hoisted_28","_hoisted_29","name","value","fullURL","_createVNode","_component_Modal","_hoisted_31","_hoisted_32","_hoisted_33","attrs","device","onChange","onDeviceChanged","_hoisted_34","_hoisted_35","resolution","onSizeChanged","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","horizontal_flip","onFlipChanged","_hoisted_40","_hoisted_41","vertical_flip","_hoisted_42","_hoisted_43","rotate","_hoisted_44","_hoisted_45","scale_x","_hoisted_46","_hoisted_47","scale_y","_hoisted_48","_hoisted_49","fps","onFpsChanged","_hoisted_50","_hoisted_51","grayscale","onGrayscaleChanged","_component_Slot","mixins","Utils","props","cameraPlugin","String","required","data","computed","params","this","parseInt","parseFloat","methods","getUrl","plugin","action","Object","entries","filter","entry","map","k","v","join","_startStreaming","stream_format","_capture","onFrameLoaded","degToRad","deg","Math","PI","rot","width","round","abs","cos","sin","height","window","innerWidth","innerHeight","frameContainer","style","request","created","config","$root","mounted","frame","addEventListener","$watch","__exports__","components","Modal","CameraMixin","location","protocol","host","render","_createBlock","_component_Camera","Camera"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/8895.29a5da0d.js","mappings":"sMACOA,MAAM,U,GACJA,MAAM,oB,GACJA,MAAM,kBAAkBC,IAAI,kB,SAC1BD,MAAM,Y,aAIRA,MAAM,Y,GACJA,MAAM,Q,kBAEPE,EAAAA,EAAAA,GAAwB,KAArBF,MAAM,cAAY,S,GAArBG,G,kBAIAD,EAAAA,EAAAA,GAAwB,KAArBF,MAAM,cAAY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S,OAAMA,EAAAA,a,UCJrB,MAAMV,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASO,KAEpE,O","sources":["webpack://platypush/./src/components/panels/Camera/Index.vue","webpack://platypush/./src/components/panels/Camera/Mixin.vue","webpack://platypush/./src/components/panels/Camera/Mixin.vue?be5e","webpack://platypush/./src/components/panels/Camera/Index.vue?8810","webpack://platypush/./src/components/panels/CameraPi/Index.vue","webpack://platypush/./src/components/panels/CameraPi/Index.vue?7074"],"sourcesContent":["\n \n\n\n\n\n\n\n","\n","import script from \"./Mixin.vue?vue&type=script&lang=js\"\nexport * from \"./Mixin.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=a4970096\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=a4970096&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\nThe camera is not active\n \n\n\n\n \n\n \n\n \n\n\n\n \n\n \n\n \n\n\n \n\n\n\n \n\n\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n\n\n \n\n\n\n","import { render } from \"./Index.vue?vue&type=template&id=6f4a0590\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","ref","_createElementVNode","_hoisted_9","_hoisted_12","_hoisted_15","_hoisted_18","_hoisted_20","_hoisted_22","autoplay","preload","_createElementBlock","_hoisted_1","_hoisted_2","_hoisted_3","_ctx","streaming","capturing","captured","_hoisted_4","src","url","alt","_hoisted_6","_hoisted_7","type","onClick","_cache","args","stopStreaming","disabled","title","$options","startStreaming","capture","_hoisted_17","audioOn","stopAudio","startAudio","$event","$refs","paramsModal","show","_hoisted_24","_hoisted_25","Date","getTime","length","_hoisted_27","_hoisted_28","_hoisted_29","name","value","fullURL","_createVNode","_component_Modal","_hoisted_31","_hoisted_32","_hoisted_33","attrs","device","onChange","onDeviceChanged","_hoisted_34","_hoisted_35","resolution","onSizeChanged","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","horizontal_flip","onFlipChanged","_hoisted_40","_hoisted_41","vertical_flip","_hoisted_42","_hoisted_43","rotate","_hoisted_44","_hoisted_45","scale_x","_hoisted_46","_hoisted_47","scale_y","_hoisted_48","_hoisted_49","fps","onFpsChanged","_hoisted_50","_hoisted_51","grayscale","onGrayscaleChanged","_component_Slot","mixins","Utils","props","cameraPlugin","String","required","data","computed","params","this","parseInt","parseFloat","methods","getUrl","plugin","action","Object","entries","filter","entry","map","k","v","join","_startStreaming","stream_format","_capture","onFrameLoaded","degToRad","deg","Math","PI","rot","width","round","abs","cos","sin","height","window","innerWidth","innerHeight","frameContainer","style","request","created","config","$root","mounted","frame","addEventListener","$watch","__exports__","components","Modal","CameraMixin","location","protocol","host","render","_createBlock","_component_Camera","Camera"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/9334.fb17318e.js b/platypush/backend/http/webapp/dist/static/js/9334.0a11d59e.js similarity index 98% rename from platypush/backend/http/webapp/dist/static/js/9334.fb17318e.js rename to platypush/backend/http/webapp/dist/static/js/9334.0a11d59e.js index e399342a3..c998c3b7a 100644 --- a/platypush/backend/http/webapp/dist/static/js/9334.fb17318e.js +++ b/platypush/backend/http/webapp/dist/static/js/9334.0a11d59e.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9334,5324],{5324:function(a,t,e){e.r(t),e.d(t,{default:function(){return ha}});var s=e(6252),n=e(9963);const i={class:"camera"},r={class:"camera-container"},l={class:"frame-container",ref:"frameContainer"},o={key:0,class:"no-frame"},c=["src"],u={class:"controls"},h={class:"left"},p=["disabled"],d=(0,s._)("i",{class:"fa fa-play"},null,-1),m=[d],g=["disabled"],_=(0,s._)("i",{class:"fa fa-stop"},null,-1),f=[_],y=["disabled"],w=(0,s._)("i",{class:"fas fa-camera"},null,-1),C=[w],v={class:"right"},b=(0,s._)("i",{class:"fas fa-volume-mute"},null,-1),S=[b],k=(0,s._)("i",{class:"fas fa-volume-up"},null,-1),z=[k],x=(0,s._)("i",{class:"fas fa-cog"},null,-1),F=[x],$={class:"audio-container"},U={key:0,autoplay:"",preload:"none",ref:"player"},M=["src"],D={key:0,class:"url"},V={class:"row"},q=(0,s._)("span",{class:"name"},"Stream URL",-1),P=["value"],A={class:"params"},L={class:"row"},O=(0,s._)("span",{class:"name"},"Device",-1),W={class:"row"},j=(0,s._)("span",{class:"name"},"Width",-1),H={class:"row"},G=(0,s._)("span",{class:"name"},"Height",-1),I={class:"row"},R=(0,s._)("span",{class:"name"},"Horizontal Flip",-1),T={class:"row"},Z=(0,s._)("span",{class:"name"},"Vertical Flip",-1),Y={class:"row"},E=(0,s._)("span",{class:"name"},"Rotate",-1),X={class:"row"},B=(0,s._)("span",{class:"name"},"Scale-X",-1),J={class:"row"},K=(0,s._)("span",{class:"name"},"Scale-Y",-1),N={class:"row"},Q=(0,s._)("span",{class:"name"},"Frames per second",-1),aa={class:"row"},ta=(0,s._)("span",{class:"name"},"Grayscale",-1);function ea(a,t,e,d,_,w){const b=(0,s.up)("Slot"),k=(0,s.up)("Modal");return(0,s.wg)(),(0,s.iD)("div",i,[(0,s._)("div",r,[(0,s._)("div",l,[a.streaming||a.capturing||a.captured?(0,s.kq)("",!0):((0,s.wg)(),(0,s.iD)("div",o,"The camera is not active")),(0,s._)("img",{class:"frame",src:a.url,ref:"frame",alt:""},null,8,c)],512),(0,s._)("div",u,[(0,s._)("div",h,[a.streaming?((0,s.wg)(),(0,s.iD)("button",{key:1,type:"button",onClick:t[1]||(t[1]=(...t)=>a.stopStreaming&&a.stopStreaming(...t)),disabled:a.capturing,title:"Stop video"},f,8,g)):((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",onClick:t[0]||(t[0]=(...a)=>w.startStreaming&&w.startStreaming(...a)),disabled:a.capturing,title:"Start video"},m,8,p)),a.streaming?(0,s.kq)("",!0):((0,s.wg)(),(0,s.iD)("button",{key:2,type:"button",onClick:t[2]||(t[2]=(...a)=>w.capture&&w.capture(...a)),disabled:a.streaming||a.capturing,title:"Take a picture"},C,8,y))]),(0,s._)("div",v,[a.audioOn?((0,s.wg)(),(0,s.iD)("button",{key:1,type:"button",onClick:t[4]||(t[4]=(...t)=>a.stopAudio&&a.stopAudio(...t)),title:"Stop audio"},z)):((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",onClick:t[3]||(t[3]=(...t)=>a.startAudio&&a.startAudio(...t)),title:"Start audio"},S)),(0,s._)("button",{type:"button",onClick:t[5]||(t[5]=t=>a.$refs.paramsModal.show()),title:"Settings"},F)])])]),(0,s._)("div",$,[a.audioOn?((0,s.wg)(),(0,s.iD)("audio",U,[(0,s._)("source",{src:`/sound/stream.aac?t=${(new Date).getTime()}`},null,8,M),(0,s.Uk)(" Your browser does not support audio elements ")],512)):(0,s.kq)("",!0)]),a.url?.length?((0,s.wg)(),(0,s.iD)("div",D,[(0,s._)("label",V,[q,(0,s._)("input",{name:"url",type:"text",value:w.fullURL,disabled:"disabled"},null,8,P)])])):(0,s.kq)("",!0),(0,s.Wm)(k,{ref:"paramsModal",title:"Camera Parameters"},{default:(0,s.w5)((()=>[(0,s._)("div",A,[(0,s._)("label",L,[O,(0,s.wy)((0,s._)("input",{name:"device",type:"text","onUpdate:modelValue":t[6]||(t[6]=t=>a.attrs.device=t),onChange:t[7]||(t[7]=(...t)=>a.onDeviceChanged&&a.onDeviceChanged(...t))},null,544),[[n.nr,a.attrs.device]])]),(0,s._)("label",W,[j,(0,s.wy)((0,s._)("input",{name:"width",type:"text","onUpdate:modelValue":t[8]||(t[8]=t=>a.attrs.resolution[0]=t),onChange:t[9]||(t[9]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.resolution[0]]])]),(0,s._)("label",H,[G,(0,s.wy)((0,s._)("input",{name:"height",type:"text","onUpdate:modelValue":t[10]||(t[10]=t=>a.attrs.resolution[1]=t),onChange:t[11]||(t[11]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.resolution[1]]])]),(0,s._)("label",I,[R,(0,s.wy)((0,s._)("input",{name:"horizontal_flip",type:"checkbox","onUpdate:modelValue":t[12]||(t[12]=t=>a.attrs.horizontal_flip=t),onChange:t[13]||(t[13]=(...t)=>a.onFlipChanged&&a.onFlipChanged(...t))},null,544),[[n.e8,a.attrs.horizontal_flip]])]),(0,s._)("label",T,[Z,(0,s.wy)((0,s._)("input",{name:"vertical_flip",type:"checkbox","onUpdate:modelValue":t[14]||(t[14]=t=>a.attrs.vertical_flip=t),onChange:t[15]||(t[15]=(...t)=>a.onFlipChanged&&a.onFlipChanged(...t))},null,544),[[n.e8,a.attrs.vertical_flip]])]),(0,s._)("label",Y,[E,(0,s.wy)((0,s._)("input",{name:"rotate",type:"text","onUpdate:modelValue":t[16]||(t[16]=t=>a.attrs.rotate=t),onChange:t[17]||(t[17]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.rotate]])]),(0,s._)("label",X,[B,(0,s.wy)((0,s._)("input",{name:"scale_x",type:"text","onUpdate:modelValue":t[18]||(t[18]=t=>a.attrs.scale_x=t),onChange:t[19]||(t[19]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.scale_x]])]),(0,s._)("label",J,[K,(0,s.wy)((0,s._)("input",{name:"scale_y",type:"text","onUpdate:modelValue":t[20]||(t[20]=t=>a.attrs.scale_y=t),onChange:t[21]||(t[21]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.scale_y]])]),(0,s._)("label",N,[Q,(0,s.wy)((0,s._)("input",{name:"fps",type:"text","onUpdate:modelValue":t[22]||(t[22]=t=>a.attrs.fps=t),onChange:t[23]||(t[23]=(...t)=>a.onFpsChanged&&a.onFpsChanged(...t))},null,544),[[n.nr,a.attrs.fps]])]),(0,s._)("label",aa,[ta,(0,s.wy)((0,s._)("input",{name:"grayscale",type:"checkbox","onUpdate:modelValue":t[24]||(t[24]=t=>a.attrs.grayscale=t),onChange:t[25]||(t[25]=(...t)=>a.onGrayscaleChanged&&a.onGrayscaleChanged(...t))},null,544),[[n.e8,a.attrs.grayscale]])]),(0,s.Wm)(b)])])),_:1},512)])}var sa=e(5576),na={name:"CameraMixin",mixins:[sa.Z],props:{cameraPlugin:{type:String,required:!0}},data(){return{streaming:!1,capturing:!1,captured:!1,audioOn:!1,url:null,attrs:{}}},computed:{params(){return{resolution:this.attrs.resolution,device:this.attrs.device?.length?this.attrs.device:null,horizontal_flip:parseInt(0+this.attrs.horizontal_flip),vertical_flip:parseInt(0+this.attrs.vertical_flip),rotate:parseFloat(this.attrs.rotate),scale_x:parseFloat(this.attrs.scale_x),scale_y:parseFloat(this.attrs.scale_y),fps:parseFloat(this.attrs.fps),grayscale:parseInt(0+this.attrs.grayscale)}}},methods:{getUrl(a,t){return"/camera/"+a+"/"+t+"?"+Object.entries(this.params).filter((a=>null!=a[1]&&(""+a[1]).length>0)).map((([a,t])=>a+"="+t)).join("&")},_startStreaming(a){this.streaming||(this.streaming=!0,this.capturing=!1,this.captured=!1,this.url=this.getUrl(a,"video."+this.attrs.stream_format))},stopStreaming(){this.streaming&&(this.streaming=!1,this.capturing=!1,this.url=null)},_capture(a){this.capturing||(this.streaming=!1,this.capturing=!0,this.captured=!0,this.url=this.getUrl(a,"photo.jpg")+"&t="+(new Date).getTime())},onFrameLoaded(){this.capturing&&(this.capturing=!1)},onDeviceChanged(){},onFlipChanged(){},onSizeChanged(){const a=a=>a*Math.PI/180,t=a(this.params.rotate);let e=Math.round(this.params.scale_x*Math.abs(this.params.resolution[0]*Math.cos(t)+this.params.resolution[1]*Math.sin(t))),s=Math.round(this.params.scale_y*Math.abs(this.params.resolution[0]*Math.sin(t)+this.params.resolution[1]*Math.cos(t)));e>window.innerWidth&&(s=Math.round(s*(window.innerWidth/e)),e=window.innerWidth),s>window.innerHeight&&(e=Math.round(e*(window.innerHeight/s)),s=window.innerHeight),this.$refs.frameContainer.style.width=`${e}px`,this.$refs.frameContainer.style.height=`${s}px`},onFpsChanged(){},onGrayscaleChanged(){},startAudio(){this.audioOn=!0},async stopAudio(){this.audioOn=!1,await this.request("sound.stop_recording")}},created(){const a=this.$root.config[`camera.${this.cameraPlugin}`]||{};this.attrs={resolution:a.resolution||[640,480],device:a.device,horizontal_flip:a.horizontal_flip||0,vertical_flip:a.vertical_flip||0,rotate:a.rotate||0,scale_x:a.scale_x||1,scale_y:a.scale_y||1,fps:a.fps||16,grayscale:a.grayscale||0,stream_format:a.stream_format||"mjpeg"}},mounted(){this.$refs.frame.addEventListener("load",this.onFrameLoaded),this.onSizeChanged(),this.$watch((()=>this.attrs.resolution),this.onSizeChanged),this.$watch((()=>this.attrs.horizontal_flip),this.onSizeChanged),this.$watch((()=>this.attrs.vertical_flip),this.onSizeChanged),this.$watch((()=>this.attrs.rotate),this.onSizeChanged),this.$watch((()=>this.attrs.scale_x),this.onSizeChanged),this.$watch((()=>this.attrs.scale_y),this.onSizeChanged)}};const ia=na;var ra=ia,la=e(9417),oa={name:"Camera",components:{Modal:la.Z},mixins:[ra],props:{cameraPlugin:{type:String,required:!0}},computed:{fullURL(){return`${window.location.protocol}//${window.location.host}${this.url}`}},methods:{startStreaming(){this._startStreaming(this.cameraPlugin)},capture(){this._capture(this.cameraPlugin)}}},ca=e(3744);const ua=(0,ca.Z)(oa,[["render",ea]]);var ha=ua},9334:function(a,t,e){e.r(t),e.d(t,{default:function(){return c}});var s=e(6252);function n(a,t,e,n,i,r){const l=(0,s.up)("Camera");return(0,s.wg)(),(0,s.j4)(l,{"camera-plugin":"ffmpeg"})}var i=e(5324),r={name:"CameraFfmpeg",components:{Camera:i["default"]}},l=e(3744);const o=(0,l.Z)(r,[["render",n]]);var c=o}}]); -//# sourceMappingURL=9334.fb17318e.js.map \ No newline at end of file +"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9334,5324],{5324:function(a,t,e){e.r(t),e.d(t,{default:function(){return ha}});var s=e(6252),n=e(9963);const i={class:"camera"},r={class:"camera-container"},l={class:"frame-container",ref:"frameContainer"},o={key:0,class:"no-frame"},c=["src"],u={class:"controls"},h={class:"left"},p=["disabled"],d=(0,s._)("i",{class:"fa fa-play"},null,-1),m=[d],g=["disabled"],_=(0,s._)("i",{class:"fa fa-stop"},null,-1),f=[_],y=["disabled"],w=(0,s._)("i",{class:"fas fa-camera"},null,-1),C=[w],v={class:"right"},b=(0,s._)("i",{class:"fas fa-volume-mute"},null,-1),S=[b],k=(0,s._)("i",{class:"fas fa-volume-up"},null,-1),z=[k],x=(0,s._)("i",{class:"fas fa-cog"},null,-1),F=[x],$={class:"audio-container"},U={key:0,autoplay:"",preload:"none",ref:"player"},M=["src"],D={key:0,class:"url"},V={class:"row"},q=(0,s._)("span",{class:"name"},"Stream URL",-1),P=["value"],A={class:"params"},L={class:"row"},O=(0,s._)("span",{class:"name"},"Device",-1),W={class:"row"},j=(0,s._)("span",{class:"name"},"Width",-1),H={class:"row"},G=(0,s._)("span",{class:"name"},"Height",-1),I={class:"row"},R=(0,s._)("span",{class:"name"},"Horizontal Flip",-1),T={class:"row"},Z=(0,s._)("span",{class:"name"},"Vertical Flip",-1),Y={class:"row"},E=(0,s._)("span",{class:"name"},"Rotate",-1),X={class:"row"},B=(0,s._)("span",{class:"name"},"Scale-X",-1),J={class:"row"},K=(0,s._)("span",{class:"name"},"Scale-Y",-1),N={class:"row"},Q=(0,s._)("span",{class:"name"},"Frames per second",-1),aa={class:"row"},ta=(0,s._)("span",{class:"name"},"Grayscale",-1);function ea(a,t,e,d,_,w){const b=(0,s.up)("Slot"),k=(0,s.up)("Modal");return(0,s.wg)(),(0,s.iD)("div",i,[(0,s._)("div",r,[(0,s._)("div",l,[a.streaming||a.capturing||a.captured?(0,s.kq)("",!0):((0,s.wg)(),(0,s.iD)("div",o,"The camera is not active")),(0,s._)("img",{class:"frame",src:a.url,ref:"frame",alt:""},null,8,c)],512),(0,s._)("div",u,[(0,s._)("div",h,[a.streaming?((0,s.wg)(),(0,s.iD)("button",{key:1,type:"button",onClick:t[1]||(t[1]=(...t)=>a.stopStreaming&&a.stopStreaming(...t)),disabled:a.capturing,title:"Stop video"},f,8,g)):((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",onClick:t[0]||(t[0]=(...a)=>w.startStreaming&&w.startStreaming(...a)),disabled:a.capturing,title:"Start video"},m,8,p)),a.streaming?(0,s.kq)("",!0):((0,s.wg)(),(0,s.iD)("button",{key:2,type:"button",onClick:t[2]||(t[2]=(...a)=>w.capture&&w.capture(...a)),disabled:a.streaming||a.capturing,title:"Take a picture"},C,8,y))]),(0,s._)("div",v,[a.audioOn?((0,s.wg)(),(0,s.iD)("button",{key:1,type:"button",onClick:t[4]||(t[4]=(...t)=>a.stopAudio&&a.stopAudio(...t)),title:"Stop audio"},z)):((0,s.wg)(),(0,s.iD)("button",{key:0,type:"button",onClick:t[3]||(t[3]=(...t)=>a.startAudio&&a.startAudio(...t)),title:"Start audio"},S)),(0,s._)("button",{type:"button",onClick:t[5]||(t[5]=t=>a.$refs.paramsModal.show()),title:"Settings"},F)])])]),(0,s._)("div",$,[a.audioOn?((0,s.wg)(),(0,s.iD)("audio",U,[(0,s._)("source",{src:`/sound/stream.aac?t=${(new Date).getTime()}`},null,8,M),(0,s.Uk)(" Your browser does not support audio elements ")],512)):(0,s.kq)("",!0)]),a.url?.length?((0,s.wg)(),(0,s.iD)("div",D,[(0,s._)("label",V,[q,(0,s._)("input",{name:"url",type:"text",value:w.fullURL,disabled:"disabled"},null,8,P)])])):(0,s.kq)("",!0),(0,s.Wm)(k,{ref:"paramsModal",title:"Camera Parameters"},{default:(0,s.w5)((()=>[(0,s._)("div",A,[(0,s._)("label",L,[O,(0,s.wy)((0,s._)("input",{name:"device",type:"text","onUpdate:modelValue":t[6]||(t[6]=t=>a.attrs.device=t),onChange:t[7]||(t[7]=(...t)=>a.onDeviceChanged&&a.onDeviceChanged(...t))},null,544),[[n.nr,a.attrs.device]])]),(0,s._)("label",W,[j,(0,s.wy)((0,s._)("input",{name:"width",type:"text","onUpdate:modelValue":t[8]||(t[8]=t=>a.attrs.resolution[0]=t),onChange:t[9]||(t[9]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.resolution[0]]])]),(0,s._)("label",H,[G,(0,s.wy)((0,s._)("input",{name:"height",type:"text","onUpdate:modelValue":t[10]||(t[10]=t=>a.attrs.resolution[1]=t),onChange:t[11]||(t[11]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.resolution[1]]])]),(0,s._)("label",I,[R,(0,s.wy)((0,s._)("input",{name:"horizontal_flip",type:"checkbox","onUpdate:modelValue":t[12]||(t[12]=t=>a.attrs.horizontal_flip=t),onChange:t[13]||(t[13]=(...t)=>a.onFlipChanged&&a.onFlipChanged(...t))},null,544),[[n.e8,a.attrs.horizontal_flip]])]),(0,s._)("label",T,[Z,(0,s.wy)((0,s._)("input",{name:"vertical_flip",type:"checkbox","onUpdate:modelValue":t[14]||(t[14]=t=>a.attrs.vertical_flip=t),onChange:t[15]||(t[15]=(...t)=>a.onFlipChanged&&a.onFlipChanged(...t))},null,544),[[n.e8,a.attrs.vertical_flip]])]),(0,s._)("label",Y,[E,(0,s.wy)((0,s._)("input",{name:"rotate",type:"text","onUpdate:modelValue":t[16]||(t[16]=t=>a.attrs.rotate=t),onChange:t[17]||(t[17]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.rotate]])]),(0,s._)("label",X,[B,(0,s.wy)((0,s._)("input",{name:"scale_x",type:"text","onUpdate:modelValue":t[18]||(t[18]=t=>a.attrs.scale_x=t),onChange:t[19]||(t[19]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.scale_x]])]),(0,s._)("label",J,[K,(0,s.wy)((0,s._)("input",{name:"scale_y",type:"text","onUpdate:modelValue":t[20]||(t[20]=t=>a.attrs.scale_y=t),onChange:t[21]||(t[21]=(...t)=>a.onSizeChanged&&a.onSizeChanged(...t))},null,544),[[n.nr,a.attrs.scale_y]])]),(0,s._)("label",N,[Q,(0,s.wy)((0,s._)("input",{name:"fps",type:"text","onUpdate:modelValue":t[22]||(t[22]=t=>a.attrs.fps=t),onChange:t[23]||(t[23]=(...t)=>a.onFpsChanged&&a.onFpsChanged(...t))},null,544),[[n.nr,a.attrs.fps]])]),(0,s._)("label",aa,[ta,(0,s.wy)((0,s._)("input",{name:"grayscale",type:"checkbox","onUpdate:modelValue":t[24]||(t[24]=t=>a.attrs.grayscale=t),onChange:t[25]||(t[25]=(...t)=>a.onGrayscaleChanged&&a.onGrayscaleChanged(...t))},null,544),[[n.e8,a.attrs.grayscale]])]),(0,s.Wm)(b)])])),_:1},512)])}var sa=e(3956),na={name:"CameraMixin",mixins:[sa.Z],props:{cameraPlugin:{type:String,required:!0}},data(){return{streaming:!1,capturing:!1,captured:!1,audioOn:!1,url:null,attrs:{}}},computed:{params(){return{resolution:this.attrs.resolution,device:this.attrs.device?.length?this.attrs.device:null,horizontal_flip:parseInt(0+this.attrs.horizontal_flip),vertical_flip:parseInt(0+this.attrs.vertical_flip),rotate:parseFloat(this.attrs.rotate),scale_x:parseFloat(this.attrs.scale_x),scale_y:parseFloat(this.attrs.scale_y),fps:parseFloat(this.attrs.fps),grayscale:parseInt(0+this.attrs.grayscale)}}},methods:{getUrl(a,t){return"/camera/"+a+"/"+t+"?"+Object.entries(this.params).filter((a=>null!=a[1]&&(""+a[1]).length>0)).map((([a,t])=>a+"="+t)).join("&")},_startStreaming(a){this.streaming||(this.streaming=!0,this.capturing=!1,this.captured=!1,this.url=this.getUrl(a,"video."+this.attrs.stream_format))},stopStreaming(){this.streaming&&(this.streaming=!1,this.capturing=!1,this.url=null)},_capture(a){this.capturing||(this.streaming=!1,this.capturing=!0,this.captured=!0,this.url=this.getUrl(a,"photo.jpg")+"&t="+(new Date).getTime())},onFrameLoaded(){this.capturing&&(this.capturing=!1)},onDeviceChanged(){},onFlipChanged(){},onSizeChanged(){const a=a=>a*Math.PI/180,t=a(this.params.rotate);let e=Math.round(this.params.scale_x*Math.abs(this.params.resolution[0]*Math.cos(t)+this.params.resolution[1]*Math.sin(t))),s=Math.round(this.params.scale_y*Math.abs(this.params.resolution[0]*Math.sin(t)+this.params.resolution[1]*Math.cos(t)));e>window.innerWidth&&(s=Math.round(s*(window.innerWidth/e)),e=window.innerWidth),s>window.innerHeight&&(e=Math.round(e*(window.innerHeight/s)),s=window.innerHeight),this.$refs.frameContainer.style.width=`${e}px`,this.$refs.frameContainer.style.height=`${s}px`},onFpsChanged(){},onGrayscaleChanged(){},startAudio(){this.audioOn=!0},async stopAudio(){this.audioOn=!1,await this.request("sound.stop_recording")}},created(){const a=this.$root.config[`camera.${this.cameraPlugin}`]||{};this.attrs={resolution:a.resolution||[640,480],device:a.device,horizontal_flip:a.horizontal_flip||0,vertical_flip:a.vertical_flip||0,rotate:a.rotate||0,scale_x:a.scale_x||1,scale_y:a.scale_y||1,fps:a.fps||16,grayscale:a.grayscale||0,stream_format:a.stream_format||"mjpeg"}},mounted(){this.$refs.frame.addEventListener("load",this.onFrameLoaded),this.onSizeChanged(),this.$watch((()=>this.attrs.resolution),this.onSizeChanged),this.$watch((()=>this.attrs.horizontal_flip),this.onSizeChanged),this.$watch((()=>this.attrs.vertical_flip),this.onSizeChanged),this.$watch((()=>this.attrs.rotate),this.onSizeChanged),this.$watch((()=>this.attrs.scale_x),this.onSizeChanged),this.$watch((()=>this.attrs.scale_y),this.onSizeChanged)}};const ia=na;var ra=ia,la=e(9417),oa={name:"Camera",components:{Modal:la.Z},mixins:[ra],props:{cameraPlugin:{type:String,required:!0}},computed:{fullURL(){return`${window.location.protocol}//${window.location.host}${this.url}`}},methods:{startStreaming(){this._startStreaming(this.cameraPlugin)},capture(){this._capture(this.cameraPlugin)}}},ca=e(3744);const ua=(0,ca.Z)(oa,[["render",ea]]);var ha=ua},9334:function(a,t,e){e.r(t),e.d(t,{default:function(){return c}});var s=e(6252);function n(a,t,e,n,i,r){const l=(0,s.up)("Camera");return(0,s.wg)(),(0,s.j4)(l,{"camera-plugin":"ffmpeg"})}var i=e(5324),r={name:"CameraFfmpeg",components:{Camera:i["default"]}},l=e(3744);const o=(0,l.Z)(r,[["render",n]]);var c=o}}]); +//# sourceMappingURL=9334.0a11d59e.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/9334.fb17318e.js.map b/platypush/backend/http/webapp/dist/static/js/9334.0a11d59e.js.map similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/9334.fb17318e.js.map rename to platypush/backend/http/webapp/dist/static/js/9334.0a11d59e.js.map index 5d69001e0..a5a205d30 100644 --- a/platypush/backend/http/webapp/dist/static/js/9334.fb17318e.js.map +++ b/platypush/backend/http/webapp/dist/static/js/9334.0a11d59e.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/9334.fb17318e.js","mappings":"sMACOA,MAAM,U,GACJA,MAAM,oB,GACJA,MAAM,kBAAkBC,IAAI,kB,SAC1BD,MAAM,Y,aAIRA,MAAM,Y,GACJA,MAAM,Q,kBAEPE,EAAAA,EAAAA,GAAwB,KAArBF,MAAM,cAAY,S,GAArBG,G,kBAIAD,EAAAA,EAAAA,GAAwB,KAArBF,MAAM,cAAY,S,GAArBI,G,kBAKAF,EAAAA,EAAAA,GAA2B,KAAxBF,MAAM,iBAAe,S,GAAxBK,G,GAICL,MAAM,S,GAE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ush/./src/components/panels/Camera/Index.vue","webpack://platypush/./src/components/panels/Camera/Mixin.vue","webpack://platypush/./src/components/panels/Camera/Mixin.vue?be5e","webpack://platypush/./src/components/panels/Camera/Index.vue?8810","webpack://platypush/./src/components/panels/CameraFfmpeg/Index.vue","webpack://platypush/./src/components/panels/CameraFfmpeg/Index.vue?3548"],"sourcesContent":["\n \n\n\n\n\n\n\n","\n","import script from \"./Mixin.vue?vue&type=script&lang=js\"\nexport * from \"./Mixin.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=a4970096\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=a4970096&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\nThe camera is not active\n \n\n\n\n \n\n \n\n \n\n\n\n \n\n \n\n \n\n\n \n\n\n\n \n\n\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n\n\n \n\n\n\n","import { render } from \"./Index.vue?vue&type=template&id=dd632828\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","ref","_createElementVNode","_hoisted_9","_hoisted_12","_hoisted_15","_hoisted_18","_hoisted_20","_hoisted_22","autoplay","preload","_createElementBlock","_hoisted_1","_hoisted_2","_hoisted_3","_ctx","streaming","capturing","captured","_hoisted_4","src","url","alt","_hoisted_6","_hoisted_7","type","onClick","_cache","args","stopStreaming","disabled","title","$options","startStreaming","capture","_hoisted_17","audioOn","stopAudio","startAudio","$event","$refs","paramsModal","show","_hoisted_24","_hoisted_25","Date","getTime","length","_hoisted_27","_hoisted_28","_hoisted_29","name","value","fullURL","_createVNode","_component_Modal","_hoisted_31","_hoisted_32","_hoisted_33","attrs","device","onChange","onDeviceChanged","_hoisted_34","_hoisted_35","resolution","onSizeChanged","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","horizontal_flip","onFlipChanged","_hoisted_40","_hoisted_41","vertical_flip","_hoisted_42","_hoisted_43","rotate","_hoisted_44","_hoisted_45","scale_x","_hoisted_46","_hoisted_47","scale_y","_hoisted_48","_hoisted_49","fps","onFpsChanged","_hoisted_50","_hoisted_51","grayscale","onGrayscaleChanged","_component_Slot","mixins","Utils","props","cameraPlugin","String","required","data","computed","params","this","parseInt","parseFloat","methods","getUrl","plugin","action","Object","entries","filter","entry","map","k","v","join","_startStreaming","stream_format","_capture","onFrameLoaded","degToRad","deg","Math","PI","rot","width","round","abs","cos","sin","height","window","innerWidth","innerHeight","frameContainer","style","request","created","config","$root","mounted","frame","addEventListener","$watch","__exports__","components","Modal","CameraMixin","location","protocol","host","render","_createBlock","_component_Camera","Camera"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/9334.0a11d59e.js","mappings":"sMACOA,MAAM,U,GACJA,MAAM,oB,GACJA,MAAM,kBAAkBC,IAAI,kB,SAC1BD,MAAM,Y,aAIRA,MAAM,Y,GACJA,MAAM,Q,kBAEPE,EAAAA,EAAAA,GAAwB,KAArBF,MAAM,cAAY,S,GAArBG,G,kBAIAD,EAAAA,EAAAA,GAAwB,KAArBF,MAAM,cAAY,S,GAArBI,G,kBAKAF,EAAAA,EAAAA,GAA2B,KAAxBF,MAAM,iBAAe,S,GAAxBK,G,GAICL,MAAM,S,GAEPE,EAAAA,EAAAA,GAAgC,KAA7BF,MAAM,sBAAoB,S,GAA7BM,G,GAIAJ,EAAAA,EAAAA,GAA8B,KAA3BF,MAAM,oBAAkB,S,GAA3BO,G,GAIAL,EAAAA,EAAAA,GA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iBAAiB,OAAQzC,KAAKkB,eAC/ClB,KAAKrC,gBACLqC,KAAK0C,QAAO,IAAM1C,KAAK5C,MAAMM,YAAYsC,KAAKrC,eAC9CqC,KAAK0C,QAAO,IAAM1C,KAAK5C,MAAMY,iBAAiBgC,KAAKrC,eACnDqC,KAAK0C,QAAO,IAAM1C,KAAK5C,MAAMgB,eAAe4B,KAAKrC,eACjDqC,KAAK0C,QAAO,IAAM1C,KAAK5C,MAAMmB,QAAQyB,KAAKrC,eAC1CqC,KAAK0C,QAAO,IAAM1C,KAAK5C,MAAMsB,SAASsB,KAAKrC,eAC3CqC,KAAK0C,QAAO,IAAM1C,KAAK5C,MAAMyB,SAASmB,KAAKrC,cAC7C,GC5IF,MAAMgF,GAAc,GAEpB,U,WF+GA,IACE/F,KAAM,SACNgG,WAAY,CAACC,MAAKA,GAAAA,GAClBtD,OAAQ,CAACuD,IACTrD,MAAO,CACLC,aAAc,CACZxE,KAAMyE,OACNC,UAAU,IAIdE,SAAU,CACRhD,OAAAA,GACE,MAAQ,GAAEgF,OAAOiB,SAASC,aAAalB,OAAOiB,SAASE,OAAOjD,KAAKlF,KACrE,GAGFqF,QAAS,CACPzE,cAAAA,GACEsE,KAAKe,gBAAgBf,KAAKN,aAC5B,EAEA/D,OAAAA,GACEqE,KAAKiB,SAASjB,KAAKN,aACrB,I,WGrIJ,MAAM,IAA2B,QAAgB,GAAQ,CAAC,CAAC,SAASwD,MAEpE,S,uJCREC,EAAAA,EAAAA,IAAiCC,EAAA,CAAzB,gBAAc,U,eAMxB,GACExG,KAAM,eACNgG,WAAY,CAACS,OAAMA,EAAAA,a,UCJrB,MAAMV,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASO,KAEpE,O","sources":["webpack://platypush/./src/components/panels/Camera/Index.vue","webpack://platypush/./src/components/panels/Camera/Mixin.vue","webpack://platypush/./src/components/panels/Camera/Mixin.vue?be5e","webpack://platypush/./src/components/panels/Camera/Index.vue?8810","webpack://platypush/./src/components/panels/CameraFfmpeg/Index.vue","webpack://platypush/./src/components/panels/CameraFfmpeg/Index.vue?3548"],"sourcesContent":["\n \n\n\n\n\n\n\n","\n","import script from \"./Mixin.vue?vue&type=script&lang=js\"\nexport * from \"./Mixin.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=a4970096\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=a4970096&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n\n\nThe camera is not active\n \n\n\n\n \n\n \n\n \n\n\n\n \n\n \n\n \n\n\n \n\n\n\n \n\n\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n\n\n \n\n\n\n","import { render } from \"./Index.vue?vue&type=template&id=dd632828\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"names":["class","ref","_createElementVNode","_hoisted_9","_hoisted_12","_hoisted_15","_hoisted_18","_hoisted_20","_hoisted_22","autoplay","preload","_createElementBlock","_hoisted_1","_hoisted_2","_hoisted_3","_ctx","streaming","capturing","captured","_hoisted_4","src","url","alt","_hoisted_6","_hoisted_7","type","onClick","_cache","args","stopStreaming","disabled","title","$options","startStreaming","capture","_hoisted_17","audioOn","stopAudio","startAudio","$event","$refs","paramsModal","show","_hoisted_24","_hoisted_25","Date","getTime","length","_hoisted_27","_hoisted_28","_hoisted_29","name","value","fullURL","_createVNode","_component_Modal","_hoisted_31","_hoisted_32","_hoisted_33","attrs","device","onChange","onDeviceChanged","_hoisted_34","_hoisted_35","resolution","onSizeChanged","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","horizontal_flip","onFlipChanged","_hoisted_40","_hoisted_41","vertical_flip","_hoisted_42","_hoisted_43","rotate","_hoisted_44","_hoisted_45","scale_x","_hoisted_46","_hoisted_47","scale_y","_hoisted_48","_hoisted_49","fps","onFpsChanged","_hoisted_50","_hoisted_51","grayscale","onGrayscaleChanged","_component_Slot","mixins","Utils","props","cameraPlugin","String","required","data","computed","params","this","parseInt","parseFloat","methods","getUrl","plugin","action","Object","entries","filter","entry","map","k","v","join","_startStreaming","stream_format","_capture","onFrameLoaded","degToRad","deg","Math","PI","rot","width","round","abs","cos","sin","height","window","innerWidth","innerHeight","frameContainer","style","request","created","config","$root","mounted","frame","addEventListener","$watch","__exports__","components","Modal","CameraMixin","location","protocol","host","render","_createBlock","_component_Camera","Camera"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/9624.e590eb03.js b/platypush/backend/http/webapp/dist/static/js/9624.5124c411.js similarity index 98% rename from platypush/backend/http/webapp/dist/static/js/9624.e590eb03.js rename to platypush/backend/http/webapp/dist/static/js/9624.5124c411.js index 0ad306e31..ab8a5f161 100644 --- a/platypush/backend/http/webapp/dist/static/js/9624.e590eb03.js +++ b/platypush/backend/http/webapp/dist/static/js/9624.5124c411.js @@ -1,2 +1,2 @@ "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9624],{9624:function(l,e,a){a.r(e),a.d(e,{default:function(){return D}});var t=a(6252),s=a(3577),i=a(9963);const n=l=>((0,t.dD)("data-v-c4b6a144"),l=l(),(0,t.Cn)(),l),o={key:0,class:"entity variable-container"},u={class:"icon"},d={class:"label"},c=["textContent"],r=["textContent"],v={class:"row"},p={class:"row"},h={class:"col-9"},_=["disabled"],b={class:"col-3 pull-right"},f=["disabled"],m=n((()=>(0,t._)("i",{class:"fas fa-trash"},null,-1))),y=[m],g=["disabled"],k=n((()=>(0,t._)("i",{class:"fas fa-check"},null,-1))),w=[k];function C(l,e,a,n,m,k){const C=(0,t.up)("EntityIcon");return null!=l.value.value?((0,t.wg)(),(0,t.iD)("div",o,[(0,t._)("div",{class:(0,s.C_)(["head",{collapsed:l.collapsed}])},[(0,t._)("div",u,[(0,t.Wm)(C,{entity:l.value,loading:l.loading,error:l.error},null,8,["entity","loading","error"])]),(0,t._)("div",d,[(0,t._)("div",{class:"name",textContent:(0,s.zw)(l.value.name)},null,8,c)]),(0,t._)("div",{class:"value-and-toggler",onClick:e[1]||(e[1]=(0,i.iM)((e=>l.collapsed=!l.collapsed),["stop"]))},[null!=l.value?.value?((0,t.wg)(),(0,t.iD)("div",{key:0,class:"value",textContent:(0,s.zw)(l.value.value)},null,8,r)):(0,t.kq)("",!0),(0,t._)("div",{class:"collapse-toggler",onClick:e[0]||(e[0]=(0,i.iM)((e=>l.collapsed=!l.collapsed),["stop"]))},[(0,t._)("i",{class:(0,s.C_)(["fas",{"fa-chevron-down":l.collapsed,"fa-chevron-up":!l.collapsed}])},null,2)])])],2),l.collapsed?(0,t.kq)("",!0):((0,t.wg)(),(0,t.iD)("div",{key:0,class:"body",onClick:e[5]||(e[5]=(0,i.iM)(((...e)=>l.prevent&&l.prevent(...e)),["stop"]))},[(0,t._)("div",v,[(0,t._)("form",{onSubmit:e[4]||(e[4]=(0,i.iM)(((...l)=>k.setValue&&k.setValue(...l)),["prevent"]))},[(0,t._)("div",p,[(0,t._)("div",h,[(0,t.wy)((0,t._)("input",{type:"text","onUpdate:modelValue":e[2]||(e[2]=e=>l.value_=e),placeholder:"Variable value",disabled:l.loading,ref:"text"},null,8,_),[[i.nr,l.value_]])]),(0,t._)("div",b,[(0,t._)("button",{type:"button",title:"Clear",onClick:e[3]||(e[3]=(0,i.iM)(((...l)=>k.clearValue&&k.clearValue(...l)),["stop"])),disabled:l.loading},y,8,f),(0,t._)("button",{type:"submit",title:"Edit",disabled:l.loading},w,8,g)])])],32)])]))])):(0,t.kq)("",!0)}var V=a(847),x=a(4967),q={name:"Variable",components:{EntityIcon:x["default"]},mixins:[V["default"]],emits:["loading"],data:function(){return{collapsed:!0,value_:null}},computed:{isCollapsed(){return this.collapsed}},methods:{async clearValue(){this.$emit("loading",!0);try{await this.request("variable.unset",{name:this.value.name})}finally{this.$emit("loading",!1)}},async setValue(){const l=this.value_;if(!l?.length)return await this.clearValue();this.$emit("loading",!0);try{const e={};e[this.value.name]=l,await this.request("variable.set",e)}finally{this.$emit("loading",!1)}}},mounted(){this.value_=this.value.value,this.$watch((()=>this.value.value),(l=>{this.value_=l}))}},M=a(3744);const $=(0,M.Z)(q,[["render",C],["__scopeId","data-v-c4b6a144"]]);var D=$}}]); -//# sourceMappingURL=9624.e590eb03.js.map \ No newline at end of file +//# sourceMappingURL=9624.5124c411.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/9624.e590eb03.js.map b/platypush/backend/http/webapp/dist/static/js/9624.5124c411.js.map similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/9624.e590eb03.js.map rename to platypush/backend/http/webapp/dist/static/js/9624.5124c411.js.map index 1c6e6396f..9f0eee89e 100644 --- a/platypush/backend/http/webapp/dist/static/js/9624.e590eb03.js.map +++ b/platypush/backend/http/webapp/dist/static/js/9624.5124c411.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/9624.e590eb03.js","mappings":"sQACOA,MAAM,6B,GAEFA,MAAM,Q,GAINA,MAAM,S,uCAaNA,MAAM,O,GAEFA,MAAM,O,GACJA,MAAM,S,kBAGNA,MAAM,oB,yBAEPC,EAAAA,EAAAA,GAA0B,KAAvBD,MAAM,gBAAc,W,GAAvBE,G,yBAGAD,EAAAA,EAAAA,GAA0B,KAAvBD,MAAM,gBAAc,W,GAAvBG,G,8DA9B8C,MAAfC,EAAAC,MAAMA,QAAK,WAAxDC,EAAAA,EAAAA,IAqCM,MArCNC,EAqCM,EApCJN,EAAAA,EAAAA,GAeM,OAfDD,OAAKQ,EAAAA,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FG,OAAAA,GACEL,KAAKf,OAASe,KAAK1C,MAAMA,MACzB0C,KAAKM,QAAO,IAAMN,KAAK1C,MAAMA,QAAQiD,IACnCP,KAAKf,OAASsB,CAAO,GAEzB,G,UCvFF,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Variable.vue","webpack://platypush/./src/components/panels/Entities/Variable.vue?62e2"],"sourcesContent":["\n \n\n\n\n\n\n\n","import { render } from \"./Variable.vue?vue&type=template&id=c4b6a144&scoped=true\"\nimport script from \"./Variable.vue?vue&type=script&lang=js\"\nexport * from \"./Variable.vue?vue&type=script&lang=js\"\n\nimport \"./Variable.vue?vue&type=style&index=0&id=c4b6a144&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-c4b6a144\"]])\n\nexport default __exports__"],"names":["class","_createElementVNode","_hoisted_12","_hoisted_15","_ctx","value","_createElementBlock","_hoisted_1","_normalizeClass","collapsed","_hoisted_2","_createVNode","_component_EntityIcon","entity","loading","error","_hoisted_3","_toDisplayString","name","onClick","_cache","_withModifiers","$event","args","prevent","_hoisted_6","onSubmit","$options","setValue","_hoisted_7","_hoisted_8","type","value_","placeholder","disabled","ref","_hoisted_10","title","clearValue","components","EntityIcon","mixins","EntityMixin","emits","data","computed","isCollapsed","this","methods","$emit","request","length","mounted","$watch","newValue","__exports__","render"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/9624.5124c411.js","mappings":"sQACOA,MAAM,6B,GAEFA,MAAM,Q,GAINA,MAAM,S,uCAaNA,MAAM,O,GAEFA,MAAM,O,GACJA,MAAM,S,kBAGNA,MAAM,oB,yBAEPC,EAAAA,EAAAA,GAA0B,KAAvBD,MAAM,gBAAc,W,GAAvBE,G,yBAGAD,EAAAA,EAAAA,GAA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AKE,MAAM,WAAW,GACtB,IACE,MAAM1B,EAAO,CAAC,EACdA,EAAKwB,KAAK1C,MAAMa,MAAQb,QAClB0C,KAAKG,QAAQ,eAAgB3B,EACrC,CAAE,QACAwB,KAAKE,MAAM,WAAW,EACxB,CACF,GAGFG,OAAAA,GACEL,KAAKf,OAASe,KAAK1C,MAAMA,MACzB0C,KAAKM,QAAO,IAAMN,KAAK1C,MAAMA,QAAQiD,IACnCP,KAAKf,OAASsB,CAAO,GAEzB,G,UCvFF,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/panels/Entities/Variable.vue","webpack://platypush/./src/components/panels/Entities/Variable.vue?62e2"],"sourcesContent":["\n\n\n\n\n\n\n\n \n \n\n\n\n \n\n\n \n\n\n\n\n \n\n\n\n\n\n\n\n\n","import { render } from \"./Variable.vue?vue&type=template&id=c4b6a144&scoped=true\"\nimport script from \"./Variable.vue?vue&type=script&lang=js\"\nexport * from \"./Variable.vue?vue&type=script&lang=js\"\n\nimport \"./Variable.vue?vue&type=style&index=0&id=c4b6a144&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-c4b6a144\"]])\n\nexport default __exports__"],"names":["class","_createElementVNode","_hoisted_12","_hoisted_15","_ctx","value","_createElementBlock","_hoisted_1","_normalizeClass","collapsed","_hoisted_2","_createVNode","_component_EntityIcon","entity","loading","error","_hoisted_3","_toDisplayString","name","onClick","_cache","_withModifiers","$event","args","prevent","_hoisted_6","onSubmit","$options","setValue","_hoisted_7","_hoisted_8","type","value_","placeholder","disabled","ref","_hoisted_10","title","clearValue","components","EntityIcon","mixins","EntityMixin","emits","data","computed","isCollapsed","this","methods","$emit","request","length","mounted","$watch","newValue","__exports__","render"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/984.b15beee9.js b/platypush/backend/http/webapp/dist/static/js/984.ae424e7e.js similarity index 98% rename from platypush/backend/http/webapp/dist/static/js/984.b15beee9.js rename to platypush/backend/http/webapp/dist/static/js/984.ae424e7e.js index bc7ab62fe..2567bd4a7 100644 --- a/platypush/backend/http/webapp/dist/static/js/984.b15beee9.js +++ b/platypush/backend/http/webapp/dist/static/js/984.ae424e7e.js @@ -1,2 +1,2 @@ "use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[984],{3405:function(t,e,n){n.d(e,{Z:function(){return v}});var i=n(6252),a=n(3577),o=n(9963);const s=t=>((0,i.dD)("data-v-a6396ae8"),t=t(),(0,i.Cn)(),t),l=["checked"],c=s((()=>(0,i._)("div",{class:"switch"},[(0,i._)("div",{class:"dot"})],-1))),d={class:"label"};function u(t,e,n,s,u,r){return(0,i.wg)(),(0,i.iD)("div",{class:(0,a.C_)(["power-switch",{disabled:n.disabled}]),onClick:e[0]||(e[0]=(0,o.iM)(((...t)=>r.onInput&&r.onInput(...t)),["stop"]))},[(0,i._)("input",{type:"checkbox",checked:n.value},null,8,l),(0,i._)("label",null,[c,(0,i._)("span",d,[(0,i.WI)(t.$slots,"default",{},void 0,!0)])])],2)}var r={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(t){if(this.disabled)return!1;this.$emit("input",t)}}},p=n(3744);const h=(0,p.Z)(r,[["render",u],["__scopeId","data-v-a6396ae8"]]);var v=h},984:function(t,e,n){n.r(e),n.d(e,{default:function(){return _}});var i=n(6252),a=n(3577),o=n(9963);const s={class:"entity bluetooth-service-container"},l={class:"head"},c={class:"col-1 icon"},d={class:"col-9 label"},u=["textContent"],r={class:"col-2 connector pull-right"};function p(t,e,n,p,h,v){const g=(0,i.up)("EntityIcon"),f=(0,i.up)("ToggleSwitch");return(0,i.wg)(),(0,i.iD)("div",s,[(0,i._)("div",l,[(0,i._)("div",c,[(0,i.Wm)(g,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,i._)("div",d,[(0,i._)("div",{class:"name",textContent:(0,a.zw)(t.value.name)},null,8,u)]),(0,i._)("div",r,[(0,i.Wm)(f,{value:t.value.connected,disabled:t.loading,onInput:v.connect,onClick:e[0]||(e[0]=(0,o.iM)((()=>{}),["stop"]))},null,8,["value","disabled","onInput"])])])])}var h=n(3405),v=n(4967),g=n(847),f={name:"BluetoothService",components:{ToggleSwitch:h.Z,EntityIcon:v["default"]},mixins:[g["default"]],methods:{async connect(t){t.stopPropagation(),this.$emit("loading",!0);const e="bluetooth."+(this.value.connected?"disconnect":"connect");try{await this.request(e,{device:this.parent.address,service_uuid:this.uuid})}finally{this.$emit("loading",!1)}},async disconnect(t){t.stopPropagation(),this.$emit("loading",!0);try{await this.request("bluetooth.disconnect",{device:this.parent.address})}finally{this.$emit("loading",!1)}}}},m=n(3744);const y=(0,m.Z)(f,[["render",p],["__scopeId","data-v-5c801a06"]]);var _=y}}]); -//# sourceMappingURL=984.b15beee9.js.map \ No newline at end of file +//# sourceMappingURL=984.ae424e7e.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/984.b15beee9.js.map b/platypush/backend/http/webapp/dist/static/js/984.ae424e7e.js.map similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/984.b15beee9.js.map rename to platypush/backend/http/webapp/dist/static/js/984.ae424e7e.js.map index 0bd154e85..88a5cd97b 100644 --- a/platypush/backend/http/webapp/dist/static/js/984.b15beee9.js.map +++ b/platypush/backend/http/webapp/dist/static/js/984.ae424e7e.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/984.b15beee9.js","mappings":"uQAMMA,EAAAA,EAAAA,GAEM,OAFDC,MAAM,UAAQ,EACjBD,EAAAA,EAAAA,GAAmB,OAAdC,MAAM,UAAK,K,GAEZA,MAAM,S,0CARhBC,EAAAA,EAAAA,IAYM,OAZDD,OAAKE,EAAAA,EAAAA,IAAA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,MAAM4B,UACbtC,SAAUc,EAAAkB,QACVzB,QAAOD,EAAAiC,QACPrC,QAAKC,EAAA,KAAAA,EAAA,IAAAC,EAAAA,EAAAA,KAAN,QAAW,Y,8EAWrB,GACEa,KAAM,mBACNuB,WAAY,CAACC,aAAY,IAAEC,WAAUA,EAAAA,YACrCC,OAAQ,CAACC,EAAAA,YAETtB,QAAS,CACP,aAAMiB,CAAQhB,GACZA,EAAMsB,kBACNrB,KAAKC,MAAM,WAAW,GACtB,MAAMqB,EACJ,cACCtB,KAAKd,MAAM4B,UAAY,aAAe,WAGzC,UACQd,KAAKuB,QAAQD,EAAQ,CACzBE,OAAQxB,KAAKyB,OAAOC,QACpBC,aAAc3B,KAAK4B,MAEvB,CAAE,QACA5B,KAAKC,MAAM,WAAW,EACxB,CACF,EAEA,gBAAM4B,CAAW9B,GACfA,EAAMsB,kBACNrB,KAAKC,MAAM,WAAW,GAEtB,UACQD,KAAKuB,QAAQ,uBAAwB,CACzCC,OAAQxB,KAAKyB,OAAOC,SAExB,CAAE,QACA1B,KAAKC,MAAM,WAAW,EACxB,CACF,I,UC1DJ,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/Entities/BluetoothService.vue","webpack://platypush/./src/components/panels/Entities/BluetoothService.vue?3095"],"sourcesContent":["\n\n\n\n\n\n\n\n \n \n\n\n\n \n\n\n \n\n\n\n\n \n\n\n \n \n \n\n\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n\n","import { render } from \"./BluetoothService.vue?vue&type=template&id=5c801a06&scoped=true\"\nimport script from \"./BluetoothService.vue?vue&type=script&lang=js\"\nexport * from \"./BluetoothService.vue?vue&type=script&lang=js\"\n\nimport \"./BluetoothService.vue?vue&type=style&index=0&id=5c801a06&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5c801a06\"]])\n\nexport default __exports__"],"names":["_createElementVNode","class","_createElementBlock","_normalizeClass","disabled","$props","onClick","_cache","_withModifiers","args","$options","onInput","type","checked","value","_hoisted_2","_hoisted_3","_renderSlot","_ctx","$slots","undefined","name","emits","props","Boolean","default","methods","event","this","$emit","__exports__","render","_hoisted_1","_createVNode","_component_EntityIcon","entity","loading","error","_hoisted_4","_toDisplayString","_hoisted_6","_component_ToggleSwitch","connected","connect","components","ToggleSwitch","EntityIcon","mixins","EntityMixin","stopPropagation","method","request","device","parent","address","service_uuid","uuid","disconnect"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/984.ae424e7e.js","mappings":"uQAMMA,EAAAA,EAAAA,GAEM,OAFDC,MAAM,UAAQ,EACjBD,EAAAA,EAAAA,GAAmB,OAAdC,MAAM,UAAK,K,GAEZA,MAAM,S,0CARhBC,EAAAA,EAAAA,IAYM,OAZDD,OAAKE,EAAAA,EAAAA,IAAA,CAAC,eAAc,CAAAC,SAAoBC,EAAAD,YAAYE,QAAKC,EAAA,KAAAA,EAAA,IAAAC,EAAAA,EAAAA,KAAA,IAAAC,IAAOC,EAAAC,SAAAD,EAAAC,WAAAF,IAAO,Y,EAE1ET,EAAAA,EAAAA,GAAwC,SAAjCY,KAAK,WAAYC,QAASR,EAAAS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,EAAAA,YAETtB,QAAS,CACP,aAAMiB,CAAQhB,GACZA,EAAMsB,kBACNrB,KAAKC,MAAM,WAAW,GACtB,MAAMqB,EACJ,cACCtB,KAAKd,MAAM4B,UAAY,aAAe,WAGzC,UACQd,KAAKuB,QAAQD,EAAQ,CACzBE,OAAQxB,KAAKyB,OAAOC,QACpBC,aAAc3B,KAAK4B,MAEvB,CAAE,QACA5B,KAAKC,MAAM,WAAW,EACxB,CACF,EAEA,gBAAM4B,CAAW9B,GACfA,EAAMsB,kBACNrB,KAAKC,MAAM,WAAW,GAEtB,UACQD,KAAKuB,QAAQ,uBAAwB,CACzCC,OAAQxB,KAAKyB,OAAOC,SAExB,CAAE,QACA1B,KAAKC,MAAM,WAAW,EACxB,CACF,I,UC1DJ,MAAMC,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/elements/ToggleSwitch.vue","webpack://platypush/./src/components/elements/ToggleSwitch.vue?94aa","webpack://platypush/./src/components/panels/Entities/BluetoothService.vue","webpack://platypush/./src/components/panels/Entities/BluetoothService.vue?3095"],"sourcesContent":["\n\n\n\n\n\n\n \n \n\n\n\n\n\n \n \n \n \n\n\n\n\n\n\n","import { render } from \"./ToggleSwitch.vue?vue&type=template&id=a6396ae8&scoped=true\"\nimport script from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\nexport * from \"./ToggleSwitch.vue?vue&type=script&lang=js\"\n\nimport \"./ToggleSwitch.vue?vue&type=style&index=0&id=a6396ae8&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-a6396ae8\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n\n","import { render } from \"./BluetoothService.vue?vue&type=template&id=5c801a06&scoped=true\"\nimport script from \"./BluetoothService.vue?vue&type=script&lang=js\"\nexport * from \"./BluetoothService.vue?vue&type=script&lang=js\"\n\nimport \"./BluetoothService.vue?vue&type=style&index=0&id=5c801a06&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5c801a06\"]])\n\nexport default __exports__"],"names":["_createElementVNode","class","_createElementBlock","_normalizeClass","disabled","$props","onClick","_cache","_withModifiers","args","$options","onInput","type","checked","value","_hoisted_2","_hoisted_3","_renderSlot","_ctx","$slots","undefined","name","emits","props","Boolean","default","methods","event","this","$emit","__exports__","render","_hoisted_1","_createVNode","_component_EntityIcon","entity","loading","error","_hoisted_4","_toDisplayString","_hoisted_6","_component_ToggleSwitch","connected","connect","components","ToggleSwitch","EntityIcon","mixins","EntityMixin","stopPropagation","method","request","device","parent","address","service_uuid","uuid","disconnect"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/9962.80cb7a7b.js b/platypush/backend/http/webapp/dist/static/js/9962.35d9420e.js similarity index 96% rename from platypush/backend/http/webapp/dist/static/js/9962.80cb7a7b.js rename to platypush/backend/http/webapp/dist/static/js/9962.35d9420e.js index e417889d3..1aa1e1c29 100644 --- a/platypush/backend/http/webapp/dist/static/js/9962.80cb7a7b.js +++ b/platypush/backend/http/webapp/dist/static/js/9962.35d9420e.js @@ -1,2 +1,2 @@ -"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9962,4619],{4619:function(e,t,s){s.r(t),s.d(t,{default:function(){return c}});var r=s(6252),a=s(3577);const n={class:"date-time"},o=["textContent"],i=["textContent"];function u(e,t,s,u,h,l){return(0,r.wg)(),(0,r.iD)("div",n,[l._showDate?((0,r.wg)(),(0,r.iD)("div",{key:0,class:"date",textContent:(0,a.zw)(e.formatDate(e.now))},null,8,o)):(0,r.kq)("",!0),l._showTime?((0,r.wg)(),(0,r.iD)("div",{key:1,class:"time",textContent:(0,a.zw)(e.formatTime(e.now,l._showSeconds))},null,8,i)):(0,r.kq)("",!0)])}var h=s(5576),l={name:"DateTime",mixins:[h.Z],props:{showDate:{required:!1,default:!0},showTime:{required:!1,default:!0},showSeconds:{required:!1,default:!0}},computed:{_showTime(){return this.parseBoolean(this.showTime)},_showDate(){return this.parseBoolean(this.showDate)},_showSeconds(){return this.parseBoolean(this.showSeconds)}},data:function(){return{now:new Date}},methods:{refreshTime(){this.now=new Date}},mounted:function(){this.refreshTime(),setInterval(this.refreshTime,1e3)}},d=s(3744);const m=(0,d.Z)(l,[["render",u],["__scopeId","data-v-ca42eb9c"]]);var c=m},9962:function(e,t,s){s.r(t),s.d(t,{default:function(){return x}});var r=s(6252);const a=e=>((0,r.dD)("data-v-69d38a93"),e=e(),(0,r.Cn)(),e),n={class:"date-time-weather"},o={class:"row date-time-container"},i={class:"row weather-container"},u={class:"row sensors-container"},h={key:0,class:"row"},l={class:"col-3"},d=a((()=>(0,r._)("div",{class:"col-6"}," ",-1))),m={class:"col-3"};function c(e,t,s,a,c,w){const p=(0,r.up)("DateTime"),f=(0,r.up)("Weather"),v=(0,r.up)("Sensor");return(0,r.wg)(),(0,r.iD)("div",n,[(0,r._)("div",o,[w._showDate||w._showTime?((0,r.wg)(),(0,r.j4)(p,{key:0,"show-date":w._showDate,"show-time":w._showTime,"show-seconds":w._showSeconds,animate:s.animate},null,8,["show-date","show-time","show-seconds","animate"])):(0,r.kq)("",!0)]),(0,r._)("div",i,[s.showWeather?((0,r.wg)(),(0,r.j4)(f,{key:0,"show-summary":w._showSummary,animate:w._animate,"icon-size":s.iconSize,"refresh-seconds":s.weatherRefreshSeconds},null,8,["show-summary","animate","icon-size","refresh-seconds"])):(0,r.kq)("",!0)]),(0,r._)("div",u,[w._showSensors&&Object.keys(e.sensors).length?((0,r.wg)(),(0,r.iD)("div",h,[(0,r._)("div",l,[null!=e.sensors[s.sensorTemperatureAttr]?((0,r.wg)(),(0,r.j4)(v,{key:0,"icon-class":"fas fa-thermometer-half",value:e.sensors[s.sensorTemperatureAttr],unit:"°"},null,8,["value"])):(0,r.kq)("",!0)]),d,(0,r._)("div",m,[null!=e.sensors[s.sensorHumidityAttr]?((0,r.wg)(),(0,r.j4)(v,{key:0,"icon-class":"fas fa-tint",value:e.sensors[s.sensorHumidityAttr],unit:"%"},null,8,["value"])):(0,r.kq)("",!0)])])):(0,r.kq)("",!0)])])}var w=s(5576),p=s(4619),f=s(3594),v=s(3577);const y={class:"sensor"},_={key:0,class:"label-container col-4"},S=["textContent"],q={class:"value-container col-8"},D=["textContent"];function k(e,t,s,a,n,o){return(0,r.wg)(),(0,r.iD)("div",y,[s.iconClass||s.name?((0,r.wg)(),(0,r.iD)("div",_,[s.iconClass?((0,r.wg)(),(0,r.iD)("i",{key:0,class:(0,v.C_)(s.iconClass)},null,2)):s.name?((0,r.wg)(),(0,r.iD)("span",{key:1,textContent:(0,v.zw)(s.name)},null,8,S)):(0,r.kq)("",!0)])):(0,r.kq)("",!0),(0,r._)("div",q,[(0,r._)("span",{class:"value",textContent:(0,v.zw)(o._value)},null,8,D)])])}var T={name:"Sensor",props:{iconClass:{type:String,required:!1},name:{type:String,required:!1},value:{required:!1},unit:{type:String,required:!1},decimals:{type:Number,required:!1,default:1},isBoolean:{type:Boolean,required:!1,default:!1}},computed:{_value(){if(null==this.value)return"N/A";if(this.isBoolean)return this.parseBoolean(this.value);if(Array.isArray(this.value)||"object"===typeof this.value)return JSON.stringify(this.value);let e=parseFloat(this.value);return null!=this.decimals&&(e=e.toFixed(this.decimals)),this.unit&&(e=`${e}${this.unit}`),e}}},g=s(3744);const C=(0,g.Z)(T,[["render",k],["__scopeId","data-v-5031881e"]]);var A=C,B={name:"DateTimeWeather",mixins:[w.Z],components:{Sensor:A,DateTime:p["default"],Weather:f["default"]},props:{animate:{required:!1,default:!0},iconSize:{type:Number,required:!1,default:50},showDate:{required:!1,default:!0},showTime:{required:!1,default:!0},showWeather:{required:!1,default:!0},showSummary:{required:!1,default:!0},showSensors:{required:!1,default:!0},showSeconds:{required:!1,default:!0},sensorTemperatureAttr:{type:String,required:!1,default:"temperature"},sensorHumidityAttr:{type:String,required:!1,default:"humidity"},weatherRefreshSeconds:{type:Number,required:!1,default:900}},computed:{_showDate(){return this.parseBoolean(this.showDate)},_showTime(){return this.parseBoolean(this.showTime)},_showSeconds(){return this.parseBoolean(this.showSeconds)},_showWeather(){return this.parseBoolean(this.showWeather)},_showSummary(){return this.parseBoolean(this.showSummary)},_showSensors(){return this.parseBoolean(this.showSensors)},_animate(){return this.parseBoolean(this.animate)}},data:function(){return{sensors:{}}},methods:{onSensorData(e){this.sensorTemperatureAttr in e.data&&"number"===typeof e.data[this.sensorTemperatureAttr]&&(this.sensors.temperature=e.data[this.sensorTemperatureAttr]),this.sensorHumidityAttr in e.data&&"number"===typeof e.data[this.sensorHumidityAttr]&&(this.sensors.humidity=e.data[this.sensorHumidityAttr])}},mounted(){this.subscribe(this.onSensorData,null,"platypush.message.event.sensor.SensorDataChangeEvent")}};const b=(0,g.Z)(B,[["render",c],["__scopeId","data-v-69d38a93"]]);var x=b}}]); -//# sourceMappingURL=9962.80cb7a7b.js.map \ No newline at end of file +"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9962,4619],{4619:function(e,t,s){s.r(t),s.d(t,{default:function(){return c}});var r=s(6252),a=s(3577);const n={class:"date-time"},o=["textContent"],i=["textContent"];function u(e,t,s,u,h,l){return(0,r.wg)(),(0,r.iD)("div",n,[l._showDate?((0,r.wg)(),(0,r.iD)("div",{key:0,class:"date",textContent:(0,a.zw)(e.formatDate(e.now))},null,8,o)):(0,r.kq)("",!0),l._showTime?((0,r.wg)(),(0,r.iD)("div",{key:1,class:"time",textContent:(0,a.zw)(e.formatTime(e.now,l._showSeconds))},null,8,i)):(0,r.kq)("",!0)])}var h=s(3956),l={name:"DateTime",mixins:[h.Z],props:{showDate:{required:!1,default:!0},showTime:{required:!1,default:!0},showSeconds:{required:!1,default:!0}},computed:{_showTime(){return this.parseBoolean(this.showTime)},_showDate(){return this.parseBoolean(this.showDate)},_showSeconds(){return this.parseBoolean(this.showSeconds)}},data:function(){return{now:new Date}},methods:{refreshTime(){this.now=new Date}},mounted:function(){this.refreshTime(),setInterval(this.refreshTime,1e3)}},d=s(3744);const m=(0,d.Z)(l,[["render",u],["__scopeId","data-v-ca42eb9c"]]);var c=m},9962:function(e,t,s){s.r(t),s.d(t,{default:function(){return x}});var r=s(6252);const a=e=>((0,r.dD)("data-v-69d38a93"),e=e(),(0,r.Cn)(),e),n={class:"date-time-weather"},o={class:"row date-time-container"},i={class:"row weather-container"},u={class:"row sensors-container"},h={key:0,class:"row"},l={class:"col-3"},d=a((()=>(0,r._)("div",{class:"col-6"}," ",-1))),m={class:"col-3"};function c(e,t,s,a,c,w){const p=(0,r.up)("DateTime"),f=(0,r.up)("Weather"),v=(0,r.up)("Sensor");return(0,r.wg)(),(0,r.iD)("div",n,[(0,r._)("div",o,[w._showDate||w._showTime?((0,r.wg)(),(0,r.j4)(p,{key:0,"show-date":w._showDate,"show-time":w._showTime,"show-seconds":w._showSeconds,animate:s.animate},null,8,["show-date","show-time","show-seconds","animate"])):(0,r.kq)("",!0)]),(0,r._)("div",i,[s.showWeather?((0,r.wg)(),(0,r.j4)(f,{key:0,"show-summary":w._showSummary,animate:w._animate,"icon-size":s.iconSize,"refresh-seconds":s.weatherRefreshSeconds},null,8,["show-summary","animate","icon-size","refresh-seconds"])):(0,r.kq)("",!0)]),(0,r._)("div",u,[w._showSensors&&Object.keys(e.sensors).length?((0,r.wg)(),(0,r.iD)("div",h,[(0,r._)("div",l,[null!=e.sensors[s.sensorTemperatureAttr]?((0,r.wg)(),(0,r.j4)(v,{key:0,"icon-class":"fas fa-thermometer-half",value:e.sensors[s.sensorTemperatureAttr],unit:"°"},null,8,["value"])):(0,r.kq)("",!0)]),d,(0,r._)("div",m,[null!=e.sensors[s.sensorHumidityAttr]?((0,r.wg)(),(0,r.j4)(v,{key:0,"icon-class":"fas fa-tint",value:e.sensors[s.sensorHumidityAttr],unit:"%"},null,8,["value"])):(0,r.kq)("",!0)])])):(0,r.kq)("",!0)])])}var w=s(3956),p=s(4619),f=s(3594),v=s(3577);const y={class:"sensor"},_={key:0,class:"label-container col-4"},S=["textContent"],q={class:"value-container col-8"},D=["textContent"];function k(e,t,s,a,n,o){return(0,r.wg)(),(0,r.iD)("div",y,[s.iconClass||s.name?((0,r.wg)(),(0,r.iD)("div",_,[s.iconClass?((0,r.wg)(),(0,r.iD)("i",{key:0,class:(0,v.C_)(s.iconClass)},null,2)):s.name?((0,r.wg)(),(0,r.iD)("span",{key:1,textContent:(0,v.zw)(s.name)},null,8,S)):(0,r.kq)("",!0)])):(0,r.kq)("",!0),(0,r._)("div",q,[(0,r._)("span",{class:"value",textContent:(0,v.zw)(o._value)},null,8,D)])])}var T={name:"Sensor",props:{iconClass:{type:String,required:!1},name:{type:String,required:!1},value:{required:!1},unit:{type:String,required:!1},decimals:{type:Number,required:!1,default:1},isBoolean:{type:Boolean,required:!1,default:!1}},computed:{_value(){if(null==this.value)return"N/A";if(this.isBoolean)return this.parseBoolean(this.value);if(Array.isArray(this.value)||"object"===typeof this.value)return JSON.stringify(this.value);let e=parseFloat(this.value);return null!=this.decimals&&(e=e.toFixed(this.decimals)),this.unit&&(e=`${e}${this.unit}`),e}}},g=s(3744);const C=(0,g.Z)(T,[["render",k],["__scopeId","data-v-5031881e"]]);var A=C,B={name:"DateTimeWeather",mixins:[w.Z],components:{Sensor:A,DateTime:p["default"],Weather:f["default"]},props:{animate:{required:!1,default:!0},iconSize:{type:Number,required:!1,default:50},showDate:{required:!1,default:!0},showTime:{required:!1,default:!0},showWeather:{required:!1,default:!0},showSummary:{required:!1,default:!0},showSensors:{required:!1,default:!0},showSeconds:{required:!1,default:!0},sensorTemperatureAttr:{type:String,required:!1,default:"temperature"},sensorHumidityAttr:{type:String,required:!1,default:"humidity"},weatherRefreshSeconds:{type:Number,required:!1,default:900}},computed:{_showDate(){return this.parseBoolean(this.showDate)},_showTime(){return this.parseBoolean(this.showTime)},_showSeconds(){return this.parseBoolean(this.showSeconds)},_showWeather(){return this.parseBoolean(this.showWeather)},_showSummary(){return this.parseBoolean(this.showSummary)},_showSensors(){return this.parseBoolean(this.showSensors)},_animate(){return this.parseBoolean(this.animate)}},data:function(){return{sensors:{}}},methods:{onSensorData(e){this.sensorTemperatureAttr in e.data&&"number"===typeof e.data[this.sensorTemperatureAttr]&&(this.sensors.temperature=e.data[this.sensorTemperatureAttr]),this.sensorHumidityAttr in e.data&&"number"===typeof e.data[this.sensorHumidityAttr]&&(this.sensors.humidity=e.data[this.sensorHumidityAttr])}},mounted(){this.subscribe(this.onSensorData,null,"platypush.message.event.sensor.SensorDataChangeEvent")}};const b=(0,g.Z)(B,[["render",c],["__scopeId","data-v-69d38a93"]]);var x=b}}]); +//# sourceMappingURL=9962.35d9420e.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/9962.80cb7a7b.js.map b/platypush/backend/http/webapp/dist/static/js/9962.35d9420e.js.map similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/9962.80cb7a7b.js.map rename to platypush/backend/http/webapp/dist/static/js/9962.35d9420e.js.map index 796b9417a..4c4130c9f 100644 --- a/platypush/backend/http/webapp/dist/static/js/9962.80cb7a7b.js.map +++ b/platypush/backend/http/webapp/dist/static/js/9962.35d9420e.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/9962.80cb7a7b.js","mappings":"qMACOA,MAAM,a,8EAAXC,EAAAA,EAAAA,IAGM,MAHNC,EAGM,CAF6CC,EAAAC,YAAS,WAA1DH,EAAAA,EAAAA,IAA8D,O,MAAzDD,MAAM,O,aAAOK,EAAAA,EAAAA,IAAQC,EAAgBC,WAALD,EAAAE,O,2BAC0BL,EAAAM,YAAS,WAAxER,EAAAA,EAAAA,IAA4E,O,MAAvED,MAAM,O,aAAOK,EAAAA,EAAAA,IAAQC,EAA8BI,WAAnBJ,EAAAE,IAAKL,EAAAQ,gB,2C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AU,EACVC,QAAS,MAIbG,SAAU,CACRjB,SAAAA,GACE,OAAOkB,KAAKC,aAAaD,KAAKN,SAChC,EAEAP,SAAAA,GACE,OAAOa,KAAKC,aAAaD,KAAKH,SAChC,EAEAR,YAAAA,GACE,OAAOW,KAAKC,aAAaD,KAAKF,YAChC,EAEA6D,YAAAA,GACE,OAAO3D,KAAKC,aAAaD,KAAKiB,YAChC,EAEAE,YAAAA,GACE,OAAOnB,KAAKC,aAAaD,KAAKyD,YAChC,EAEAjC,YAAAA,GACE,OAAOxB,KAAKC,aAAaD,KAAK0D,YAChC,EAEAtC,QAAAA,GACE,OAAOpB,KAAKC,aAAaD,KAAKc,QAChC,GAGFZ,KAAM,WACJ,MAAO,CACLyB,QAAS,CAAC,EAEd,EAEAvB,QAAS,CACPwD,YAAAA,CAAaC,GAET7D,KAAK+B,yBAAyB8B,EAAM3D,MACc,kBAA3C2D,EAAM3D,KAAKF,KAAK+B,yBAEvB/B,KAAK2B,QAAQmC,YAAcD,EAAM3D,KAAKF,KAAK+B,wBAG3C/B,KAAKqC,sBAAsBwB,EAAM3D,MACc,kBAAxC2D,EAAM3D,KAAKF,KAAKqC,sBAEvBrC,KAAK2B,QAAQoC,SAAWF,EAAM3D,KAAKF,KAAKqC,oBAC5C,GAGF/B,OAAAA,GACEN,KAAKgE,UAAUhE,KAAK4D,aAAc,KAAM,uDAC1C,GGnKF,MAAM,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASnD,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/widgets/DateTime/Index.vue","webpack://platypush/./src/components/widgets/DateTime/Index.vue?dfd6","webpack://platypush/./src/components/widgets/DateTimeWeather/Index.vue","webpack://platypush/./src/components/Sensor.vue","webpack://platypush/./src/components/Sensor.vue?9950","webpack://platypush/./src/components/widgets/DateTimeWeather/Index.vue?aa2d"],"sourcesContent":["\n\n\n\n\n\n\n \n \n\n\n\n\n\n \n \n \n\n\n\n\n\n\n","import { render } from \"./Index.vue?vue&type=template&id=ca42eb9c&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=ca42eb9c&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-ca42eb9c\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n\n","\n\n\n\n\n \n\n\n\n \n\n\n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n","import { render } from \"./Sensor.vue?vue&type=template&id=5031881e&scoped=true\"\nimport script from \"./Sensor.vue?vue&type=script&lang=js\"\nexport * from \"./Sensor.vue?vue&type=script&lang=js\"\n\nimport \"./Sensor.vue?vue&type=style&index=0&id=5031881e&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5031881e\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=69d38a93&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=69d38a93&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-69d38a93\"]])\n\nexport default __exports__"],"names":["class","_createElementBlock","_hoisted_1","$options","_showDate","_toDisplayString","_ctx","formatDate","now","_showTime","formatTime","_showSeconds","name","mixins","Utils","props","showDate","required","default","showTime","showSeconds","computed","this","parseBoolean","data","Date","methods","refreshTime","mounted","setInterval","__exports__","render","_createElementVNode","_hoisted_2","_createBlock","_component_DateTime","animate","$props","_hoisted_3","showWeather","_component_Weather","_showSummary","_animate","iconSize","weatherRefreshSeconds","_hoisted_4","_showSensors","Object","keys","sensors","length","_hoisted_5","_hoisted_6","sensorTemperatureAttr","_component_Sensor","value","unit","_hoisted_7","_hoisted_8","sensorHumidityAttr","iconClass","_normalizeClass","_value","type","String","decimals","Number","isBoolean","Boolean","Array","isArray","JSON","stringify","parseFloat","toFixed","components","Sensor","DateTime","Weather","showSummary","showSensors","_showWeather","onSensorData","event","temperature","humidity","subscribe"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/9962.35d9420e.js","mappings":"qMACOA,MAAM,a,8EAAXC,EAAAA,EAAAA,IAGM,MAHNC,EAGM,CAF6CC,EAAAC,YAAS,WAA1DH,EAAAA,EAAAA,IAA8D,O,MAAzDD,MAAM,O,aAAOK,EAAAA,EAAAA,IAAQC,EAAgBC,WAALD,EAAAE,O,2BAC0BL,EAAAM,YAAS,WAAxER,EAAAA,EAAAA,IAA4E,O,MAAvED,MAAM,O,aAAOK,EAAAA,EAAAA,IAAQC,EAA8BI,WAAnBJ,EAAAE,IAAKL,EAAAQ,gB,2CAQ9C,GACEC,KAAM,WACNC,OAAQ,CAACC,EAAAA,GACTC,MAAO,CAELC,SAAU,CACRC,UAAU,EACVC,SAAS,GAIXC,SAAU,CACRF,UAAU,EACVC,SAAS,GAIXE,YAAa,CACXH,UAAU,EACVC,SAAS,IAIbG,SAAU,CACRZ,SAAAA,GACE,OAAOa,KAAKC,aAAaD,KAAKH,SAChC,EAEAf,SAAAA,GACE,OAAOkB,KAAKC,aAAaD,KAAKN,SAChC,EAEAL,YAAAA,GACE,OAAOW,KAAKC,aAAaD,KAAKF,YAChC,GAGFI,KAAM,WACJ,MAAO,CACLhB,IAAK,IAAIiB,KAEb,EAEAC,QAAS,CACPC,WAAAA,GACEL,KAAKd,IAAM,IAAIiB,IACjB,GAGFG,QAAS,WACPN,KAAKK,cACLE,YAAYP,KAAKK,YAAa,IAChC,G,UCxDF,MAAMG,GAA2B,OAAgB,EAAQ,CAAC,CA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3D,KAAKF,KAAK+B,yBAEvB/B,KAAK2B,QAAQmC,YAAcD,EAAM3D,KAAKF,KAAK+B,wBAG3C/B,KAAKqC,sBAAsBwB,EAAM3D,MACc,kBAAxC2D,EAAM3D,KAAKF,KAAKqC,sBAEvBrC,KAAK2B,QAAQoC,SAAWF,EAAM3D,KAAKF,KAAKqC,oBAC5C,GAGF/B,OAAAA,GACEN,KAAKgE,UAAUhE,KAAK4D,aAAc,KAAM,uDAC1C,GGnKF,MAAM,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASnD,GAAQ,CAAC,YAAY,qBAEzF,O","sources":["webpack://platypush/./src/components/widgets/DateTime/Index.vue","webpack://platypush/./src/components/widgets/DateTime/Index.vue?dfd6","webpack://platypush/./src/components/widgets/DateTimeWeather/Index.vue","webpack://platypush/./src/components/Sensor.vue","webpack://platypush/./src/components/Sensor.vue?9950","webpack://platypush/./src/components/widgets/DateTimeWeather/Index.vue?aa2d"],"sourcesContent":["\n\n \n \n\n\n\n \n\n\n \n \n\n\n\n\n\n\n","import { render } from \"./Index.vue?vue&type=template&id=ca42eb9c&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=ca42eb9c&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-ca42eb9c\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n\n","\n\n\n\n\n \n\n\n\n \n\n\n\n\n\n\n\n \n\n\n\n\n \n\n\n\n\n\n\n","import { render } from \"./Sensor.vue?vue&type=template&id=5031881e&scoped=true\"\nimport script from \"./Sensor.vue?vue&type=script&lang=js\"\nexport * from \"./Sensor.vue?vue&type=script&lang=js\"\n\nimport \"./Sensor.vue?vue&type=style&index=0&id=5031881e&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5031881e\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=69d38a93&scoped=true\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=69d38a93&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-69d38a93\"]])\n\nexport default __exports__"],"names":["class","_createElementBlock","_hoisted_1","$options","_showDate","_toDisplayString","_ctx","formatDate","now","_showTime","formatTime","_showSeconds","name","mixins","Utils","props","showDate","required","default","showTime","showSeconds","computed","this","parseBoolean","data","Date","methods","refreshTime","mounted","setInterval","__exports__","render","_createElementVNode","_hoisted_2","_createBlock","_component_DateTime","animate","$props","_hoisted_3","showWeather","_component_Weather","_showSummary","_animate","iconSize","weatherRefreshSeconds","_hoisted_4","_showSensors","Object","keys","sensors","length","_hoisted_5","_hoisted_6","sensorTemperatureAttr","_component_Sensor","value","unit","_hoisted_7","_hoisted_8","sensorHumidityAttr","iconClass","_normalizeClass","_value","type","String","decimals","Number","isBoolean","Boolean","Array","isArray","JSON","stringify","parseFloat","toFixed","components","Sensor","DateTime","Weather","showSummary","showSensors","_showWeather","onSensorData","event","temperature","humidity","subscribe"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/app.3c7ccc2c.js b/platypush/backend/http/webapp/dist/static/js/app.3c7ccc2c.js deleted file mode 100644 index ce711bff4..000000000 --- a/platypush/backend/http/webapp/dist/static/js/app.3c7ccc2c.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){var e={5250:function(e,t,s){"use strict";s.d(t,{$:function(){return i}});var n=s(9652);const i=(0,n.Z)();i.publishEntity=e=>{i.emit("entity-update",e)},i.onEntity=e=>{i.on("entity-update",e)},i.publishNotification=e=>{i.emit("notification-create",e)},i.onNotification=e=>{i.on("notification-create",e)}},1789:function(e,t,s){"use strict";var n=s(9963),i=s(6252);function o(e,t,s,n,o,a){const r=(0,i.up)("Events"),l=(0,i.up)("Notifications"),c=(0,i.up)("VoiceAssistant"),d=(0,i.up)("Pushbullet"),u=(0,i.up)("Ntfy"),h=(0,i.up)("ConfirmDialog"),p=(0,i.up)("router-view");return(0,i.wg)(),(0,i.iD)(i.HY,null,[a.hasWebsocket?((0,i.wg)(),(0,i.j4)(r,{key:0,ref:"events"},null,512)):(0,i.kq)("",!0),(0,i.Wm)(l,{ref:"notifications"},null,512),a.hasAssistant?((0,i.wg)(),(0,i.j4)(c,{key:1,ref:"voice-assistant"},null,512)):(0,i.kq)("",!0),a.hasPushbullet?((0,i.wg)(),(0,i.j4)(d,{key:2,ref:"pushbullet"},null,512)):(0,i.kq)("",!0),a.hasNtfy?((0,i.wg)(),(0,i.j4)(u,{key:3,ref:"ntfy"},null,512)):(0,i.kq)("",!0),(0,i.Wm)(h,{ref:"pwaDialog",onInput:a.installPWA},{default:(0,i.w5)((()=>[(0,i.Uk)(" Would you like to install this application locally? ")])),_:1},8,["onInput"]),(0,i.Wm)(p)],64)}var a=s(6936);const r={class:"notifications"};function l(e,t,s,n,o,a){const l=(0,i.up)("Notification");return(0,i.wg)(),(0,i.iD)("div",r,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.notifications,((e,t,s)=>((0,i.wg)(),(0,i.j4)(l,{key:s,id:t,text:e.text,html:e.html,title:e.title,link:e.link,image:e.image,warning:e.warning,error:e.error,onClicked:a.destroy},null,8,["id","text","html","title","link","image","warning","error","onClicked"])))),128))])}var c=s(3577);const d=["textContent"],u={class:"body"},h={key:0,class:"image col-3"},p={class:"row"},f=["src"],m={key:3,class:"fa fa-exclamation"},g={key:4,class:"fa fa-times"},b=["textContent"],y=["innerHTML"],v=["textContent"],w=["innerHTML"];function k(e,t,s,n,o,a){return(0,i.wg)(),(0,i.iD)("div",{class:(0,c.C_)(["notification fade-in",{warning:s.warning,error:s.error}]),onClick:t[0]||(t[0]=(...e)=>a.clicked&&a.clicked(...e))},[s.title?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"title",textContent:(0,c.zw)(s.title)},null,8,d)):(0,i.kq)("",!0),(0,i._)("div",u,[s.image||s.warning||s.error?((0,i.wg)(),(0,i.iD)("div",h,[(0,i._)("div",p,[s.image&&s.image.src?((0,i.wg)(),(0,i.iD)("img",{key:0,src:s.image.src,alt:""},null,8,f)):s.image&&s.image.icon?((0,i.wg)(),(0,i.iD)("i",{key:1,class:(0,c.C_)(["fa","fa-"+s.image.icon]),style:(0,c.j5)(s.image.color?"--color: "+s.image.color:"")},null,6)):s.image&&s.image.iconClass?((0,i.wg)(),(0,i.iD)("i",{key:2,class:(0,c.C_)(s.image.iconClass),style:(0,c.j5)(s.image.color?"--color: "+s.image.color:"")},null,6)):s.warning?((0,i.wg)(),(0,i.iD)("i",m)):s.error?((0,i.wg)(),(0,i.iD)("i",g)):(0,i.kq)("",!0)])])):(0,i.kq)("",!0),s.text&&s.image?((0,i.wg)(),(0,i.iD)("div",{key:1,class:"text col-9",textContent:(0,c.zw)(s.text)},null,8,b)):(0,i.kq)("",!0),s.html&&s.image?((0,i.wg)(),(0,i.iD)("div",{key:2,class:"text col-9",innerHTML:s.html},null,8,y)):(0,i.kq)("",!0),s.text&&!s.image?((0,i.wg)(),(0,i.iD)("div",{key:3,class:"text row horizontal-center",textContent:(0,c.zw)(s.text)},null,8,v)):(0,i.kq)("",!0),s.html&&!s.image?((0,i.wg)(),(0,i.iD)("div",{key:4,class:"text row horizontal-center",innerHTML:s.html},null,8,w)):(0,i.kq)("",!0)])],2)}var _={name:"Notification",props:["id","text","html","title","image","link","error","warning"],methods:{clicked(){this.link&&window.open(this.link,"_blank"),this.$emit("clicked",this.id)}}},C=s(3744);const x=(0,C.Z)(_,[["render",k],["__scopeId","data-v-7646705e"]]);var D=x,I={name:"Notifications",components:{Notification:D},props:{duration:{type:Number,default:1e4}},data:function(){return{index:0,notifications:{},timeouts:{}}},methods:{create:function(e){const t=this.index++;this.notifications[t]=e,null==e.duration&&(e.duration=this.duration);const s=e.duration?parseInt(e.duration):0;s&&(this.timeouts[t]=setTimeout(this.destroy.bind(null,t),s))},destroy:function(e){delete this.notifications[e],delete this.timeouts[e]}}};const T=(0,C.Z)(I,[["render",l],["__scopeId","data-v-6dc8bebc"]]);var S=T,M=s(5576);function P(e,t,s,n,o,a){return(0,i.wg)(),(0,i.iD)("div")}s(7658);var U=s(5250),$={name:"Events",data(){return{ws:null,initialized:!1,pending:!1,opened:!1,timeout:null,reconnectMsecs:1e3,minReconnectMsecs:1e3,maxReconnectMsecs:3e4,handlers:{},handlerNameToEventTypes:{}}},methods:{onWebsocketTimeout(){console.log("Websocket reconnection timed out, retrying"),this.reconnectMsecs=Math.min(2*this.reconnectMsecs,this.maxReconnectMsecs),this.pending=!1,this.ws&&this.ws.close(),this.onClose()},onMessage(e){const t=[];if(e=e.data,"string"===typeof e)try{e=JSON.parse(e)}catch(s){console.warn("Received invalid non-JSON event"),console.warn(e)}if(console.debug(e),"event"===e.type){null in this.handlers&&t.push(this.handlers[null]),e.args.type in this.handlers&&t.push(...Object.values(this.handlers[e.args.type]));for(let s of t)s&&(s instanceof Array?s=s[0]:s instanceof Object&&!(s instanceof Function)&&(s=Object.values(s)[0]),s(e.args))}},onOpen(){this.opened&&(console.log("There's already an opened websocket connection, closing the newly opened one"),this.ws&&(this.ws.onclose=()=>{},this.ws.close())),console.log("Websocket connection successful"),this.opened=!0,this.reconnectMsecs=this.minReconnectMsecs,this.pending&&(this.pending=!1),this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)},onError(e){console.error("Websocket error"),console.error(e)},onClose(e){e&&console.log(`Websocket closed - code: ${e.code} - reason: ${e.reason}. Retrying in ${this.reconnectMsecs/1e3}s`),this.opened=!1,this.pending||(this.pending=!0,this.init())},init(){try{const e="https:"===location.protocol?"wss":"ws",t=`${e}://${location.host}/ws/events`;this.ws=new WebSocket(t)}catch(e){return console.error("Websocket initialization error"),void console.error(e)}this.pending=!0,this.timeout=setTimeout(this.onWebsocketTimeout,this.reconnectMsecs),this.ws.onmessage=this.onMessage,this.ws.onopen=this.onOpen,this.ws.onerror=this.onError,this.ws.onclose=this.onClose,this.initialized=!0},subscribe(e){const t=e.handler,s=e.events.length?e.events:[null],n=e.handlerName;for(const i of s)i in this.handlers||(this.handlers[i]={}),n in this.handlerNameToEventTypes||(this.handlerNameToEventTypes[n]=s),this.handlers[i][n]=t;return()=>{this.unsubscribe(n)}},unsubscribe(e){const t=this.handlerNameToEventTypes[e];if(t){for(const s of t)this.handlers[s]?.[e]&&(delete this.handlers[s][e],Object.keys(this.handlers[s]).length||delete this.handlers[s]);delete this.handlerNameToEventTypes[e]}}},created(){U.$.on("subscribe",this.subscribe),U.$.on("unsubscribe",this.unsubscribe),this.init()}};const q=(0,C.Z)($,[["render",P]]);var N=q;const j={class:"assistant-modal"},O={class:"icon"},E={key:0,class:"fa fa-bell"},Z={key:1,class:"fa fa-volume-up"},z={key:2,class:"fa fa-comment-dots"},W={key:3,class:"fa fa-microphone"},R={class:"text"},A={key:0,class:"listening"},L=(0,i._)("span",null,"Assistant listening",-1),F=[L],V={key:1,class:"speech-recognized"},H=["textContent"],B={key:2,class:"responding"},K=["textContent"];function Y(e,t,s,n,o,a){const r=(0,i.up)("Modal");return(0,i.wg)(),(0,i.iD)("div",j,[(0,i.Wm)(r,{ref:"assistantModal"},{default:(0,i.w5)((()=>[(0,i._)("div",O,[o.state.alerting?((0,i.wg)(),(0,i.iD)("i",E)):o.state.responding?((0,i.wg)(),(0,i.iD)("i",Z)):o.state.speechRecognized?((0,i.wg)(),(0,i.iD)("i",z)):((0,i.wg)(),(0,i.iD)("i",W))]),(0,i._)("div",R,[o.state.listening?((0,i.wg)(),(0,i.iD)("div",A,F)):o.state.speechRecognized?((0,i.wg)(),(0,i.iD)("div",V,[(0,i._)("span",{textContent:(0,c.zw)(o.phrase)},null,8,H)])):o.state.responding?((0,i.wg)(),(0,i.iD)("div",B,[(0,i._)("span",{textContent:(0,c.zw)(o.responseText)},null,8,K)])):(0,i.kq)("",!0)])])),_:1},512)])}var J=s(9417),G={name:"VoiceAssistant",components:{Modal:J.Z},mixins:[M.Z],data(){return{responseText:"",phrase:"",hideTimeout:void 0,state:{listening:!1,speechRecognized:!1,responding:!1,alerting:!1}}},methods:{reset(){this.state.listening=!1,this.state.speechRecognized=!1,this.state.responding=!1,this.state.alerting=!1,this.phrase="",this.responseText=""},conversationStart(){this.reset(),this.state.listening=!0,this.$refs.assistantModal.show(),this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=void 0)},conversationEnd(){const e=this;this.hideTimeout=setTimeout((()=>{this.reset(),e.$refs.assistantModal.close(),e.hideTimeout=void 0}),4e3)},speechRecognized(e){this.reset(),this.state.speechRecognized=!0,this.phrase=e.phrase,this.$refs.assistantModal.show()},response(e){this.reset(),this.state.responding=!0,this.responseText=e.response_text,this.$refs.assistantModal.show()},alertOn(){this.reset(),this.state.alerting=!0,this.$refs.assistantModal.show()},alertOff(){this.reset(),this.state.alerting=!1,this.$refs.assistantModal.close()},registerHandlers(){this.subscribe(this.conversationStart,null,"platypush.message.event.assistant.ConversationStartEvent"),this.subscribe(this.alertOn,null,"platypush.message.event.assistant.AlertStartedEvent"),this.subscribe(this.alertOff,null,"platypush.message.event.assistant.AlertEndEvent"),this.subscribe(this.speechRecognized,null,"platypush.message.event.assistant.SpeechRecognizedEvent"),this.subscribe(this.response,null,"platypush.message.event.assistant.ResponseEvent"),this.subscribe(this.conversationEnd,null,"platypush.message.event.assistant.ConversationEndEvent","platypush.message.event.assistant.NoResponseEvent","platypush.message.event.assistant.ConversationTimeoutEvent")}},mounted(){this.registerHandlers()}};const X=(0,C.Z)(G,[["render",Y]]);var Q=X;function ee(e,t,s,n,o,a){return(0,i.wg)(),(0,i.iD)("div")}var te={name:"Ntfy",mixins:[M.Z],methods:{onMessage(e){this.notify({title:e.title,text:e.message,image:{icon:"bell"}})}},mounted(){this.subscribe(this.onMessage,null,"platypush.message.event.ntfy.NotificationEvent")}};const se=(0,C.Z)(te,[["render",ee]]);var ne=se;function ie(e,t,s,n,o,a){return(0,i.wg)(),(0,i.iD)("div")}var oe={name:"Pushbullet",mixins:[M.Z],methods:{onMessage(e){"mirror"===e.push_type&&this.notify({title:e.title,text:e.body,image:{src:e.icon?"data:image/png;base64, "+e.icon:void 0,icon:e.icon?void 0:"bell"}})}},mounted(){this.subscribe(this.onMessage,null,"platypush.message.event.pushbullet.PushbulletEvent")}};const ae=(0,C.Z)(oe,[["render",ie]]);var re=ae,le={name:"App",mixins:[M.Z],components:{ConfirmDialog:a.Z,Pushbullet:re,Ntfy:ne,Notifications:S,Events:N,VoiceAssistant:Q},data(){return{config:{},userAuthenticated:!1,pwaInstallEvent:null}},computed:{hasWebsocket(){return this.userAuthenticated&&"backend.http"in this.config},hasAssistant(){return this.hasWebsocket},hasPushbullet(){return this.hasWebsocket&&("pushbullet"in this.config||"backend.pushbullet"in this.config)},hasNtfy(){return this.hasWebsocket&&"ntfy"in this.config}},methods:{onNotification(e){this.$refs.notifications.create(e)},async initConfig(){this.config=await this.request("config.get",{},6e4,!1),this.userAuthenticated=!0},installPWA(){this.pwaInstallEvent&&this.pwaInstallEvent.prompt(),this.$refs.pwaDialog.close()}},created(){this.initConfig()},beforeMount(){this.getCookie("pwa-dialog-shown")?.length||window.addEventListener("beforeinstallprompt",(e=>{e.preventDefault(),this.pwaInstallEvent=e,this.$refs.pwaDialog.show(),this.setCookie("pwa-dialog-shown","1",{expires:new Date((new Date).getTime()+31536e6)})}))},mounted(){U.$.onNotification(this.onNotification)}};const ce=(0,C.Z)(le,[["render",o]]);var de=ce,ue=s(2201);function he(e,t,s,n,o,a){const r=(0,i.up)("Loading"),l=(0,i.up)("Widget"),d=(0,i.up)("Row");return(0,i.wg)(),(0,i.iD)(i.HY,null,[o.loading?((0,i.wg)(),(0,i.j4)(r,{key:0})):(0,i.kq)("",!0),(0,i._)("div",{id:"dashboard",class:(0,c.C_)(["col-12",a.classes]),style:(0,c.j5)(o.style)},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(o.rows,((e,t)=>((0,i.wg)(),(0,i.j4)(d,{key:t,class:(0,c.C_)(e.class),style:(0,c.j5)(e.style)},{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.widgets,((e,t)=>((0,i.wg)(),(0,i.j4)(i.Ob,{key:t},[(0,i.Wm)(l,{style:(0,c.j5)(e.style),class:(0,c.C_)(e.class)},{default:(0,i.w5)((()=>[((0,i.wg)(),(0,i.j4)((0,i.LL)(e.component),(0,c.vs)((0,i.F4)(a.getWidgetProps(e))),null,16))])),_:2},1032,["style","class"])],1024)))),128))])),_:2},1032,["class","style"])))),128))],6)],64)}var pe=s(2262),fe=s(6791);function me(e,t,s,n,o,a){return(0,i.wg)(),(0,i.iD)("div",{class:(0,c.C_)(["row",a.classes]),style:(0,c.j5)(s.style)},[(0,i.WI)(e.$slots,"default",{},void 0,!0)],6)}var ge={name:"Row",props:{class:{type:String,required:!1,default:""},style:{type:String,required:!1,default:""}},computed:{classes(){return this.class}}};const be=(0,C.Z)(ge,[["render",me],["__scopeId","data-v-1b4663f2"]]);var ye=be;function ve(e,t,s,n,o,a){return(0,i.wg)(),(0,i.iD)("div",{style:(0,c.j5)(s.style),class:(0,c.C_)(a.classes)},[(0,i.WI)(e.$slots,"default",{},void 0,!0)],6)}var we={name:"Widget",props:{style:{type:String,required:!1,default:""},class:{type:String,required:!1,default:""}},computed:{classes(){return(this.class?.length?this.class.split(" "):["col-3"]).concat(["widget","column"])}}};const ke=(0,C.Z)(we,[["render",ve],["__scopeId","data-v-5df52982"]]);var _e=ke,Ce={name:"Dashboard",mixins:[M.Z],components:{Widget:_e,Loading:fe.Z,Row:ye},props:{refreshSeconds:{type:Number,required:!1,default:0}},data(){return{rows:[],loading:!1,style:void 0,class:void 0}},computed:{classes(){return this.class}},methods:{getWidgetProps(e){const t={...e.props};return t.class&&delete t.class,t},parseTemplate(e,t){const n=(new DOMParser).parseFromString(t,"text/xml").childNodes[0],o=this;this.style=n.attributes.style?.nodeValue,this.class=n.attributes.class?.nodeValue,this.rows=[...n.getElementsByTagName("Row")].map((e=>({style:e.attributes.style?.nodeValue,class:e.attributes.class?.nodeValue,widgets:[...e.children].map((e=>{const t=(0,pe.XI)((0,i.RC)((()=>s(6725)(`./${e.nodeName}/Index`)))),n=e.attributes.style?.nodeValue,a=e.attributes.class?.nodeValue,r=[...e.attributes].reduce(((e,t)=>("style"!==t.nodeName&&(e[t.nodeName]=t.nodeValue),e)),{content:e.innerHTML}),l={component:t,style:n,class:a,props:r||{}};return o.$options.components[e.nodeName]=t,l}))}))),this.loading=!1},async refreshDashboard(){this.loading=!0,this.widgets=[];const e=this.$route.params.name,t=await this.request("config.get_dashboard",{name:e});t||this.notifyError(`Dashboard ${e} not found`),this.parseTemplate(e,t)}},mounted(){if(this.refreshDashboard(),this.refreshSeconds){const e=this;setInterval((()=>{e.refreshDashboard()}),parseInt((1e3*this.refreshSeconds).toFixed(0)))}}};const xe=(0,C.Z)(Ce,[["render",he],["__scopeId","data-v-54e0248a"]]);var De=xe;function Ie(e,t,s,n,o,a){return(0,i.wg)(),(0,i.iD)("h1",null,"Object not found")}var Te={name:"NotFound"};const Se=(0,C.Z)(Te,[["render",Ie]]);var Me=Se;const Pe=e=>((0,i.dD)("data-v-af0b14d0"),e=e(),(0,i.Cn)(),e),Ue={class:"login-container"},$e={class:"login",method:"POST"},qe=(0,i.uE)('\n \n \n\n\n\n \n\nPlatypush',3),Ne={key:0,class:"row"},je=Pe((()=>(0,i._)("label",null,[(0,i._)("input",{type:"password",name:"confirm_password",placeholder:"Confirm password"})],-1))),Oe=[je],Ee={class:"row buttons"},Ze=["value"],ze=Pe((()=>(0,i._)("div",{class:"row pull-right"},[(0,i._)("label",{class:"checkbox"},[(0,i._)("input",{type:"checkbox",name:"remember"}),(0,i.Uk)(" Keep me logged in on this device ")])],-1)));function We(e,t,s,n,o,a){return(0,i.wg)(),(0,i.iD)("div",Ue,[(0,i._)("form",$e,[qe,a._register?((0,i.wg)(),(0,i.iD)("div",Ne,Oe)):(0,i.kq)("",!0),(0,i._)("div",Ee,[(0,i._)("input",{type:"submit",class:"btn btn-primary",value:a._register?"Register":"Login"},null,8,Ze)]),ze])])}var Re={name:"Login",mixins:[M.Z],props:{register:{type:Boolean,required:!1,default:!1}},computed:{_register(){return this.parseBoolean(this.register)}}};const Ae=(0,C.Z)(Re,[["render",We],["__scopeId","data-v-af0b14d0"]]);var Le=Ae;function Fe(e,t,s,n,o,a){const r=(0,i.up)("Login");return(0,i.wg)(),(0,i.j4)(r,{register:!0})}var Ve={name:"Register",mixins:[Le],components:{Login:Le},props:{register:{type:Boolean,required:!1,default:!0}}};const He=(0,C.Z)(Ve,[["render",Fe]]);var Be=He;const Ke={key:2,class:"canvas"},Ye={class:"panel"},Je={key:3,class:"canvas"};function Ge(e,t,s,n,o,a){const r=(0,i.up)("Loading"),l=(0,i.up)("Nav"),d=(0,i.up)("Settings");return(0,i.wg)(),(0,i.iD)("main",null,[o.loading?((0,i.wg)(),(0,i.j4)(r,{key:0})):((0,i.wg)(),(0,i.j4)(l,{key:1,panels:o.components,"selected-panel":o.selectedPanel,"selected-config-panel":o.selectedConfigPanel,hostname:o.hostname,onSelect:t[0]||(t[0]=e=>o.selectedPanel=e),onSelectConfig:t[1]||(t[1]=e=>o.selectedConfigPanel=e)},null,8,["panels","selected-panel","selected-config-panel","hostname"])),"settings"===o.selectedPanel?((0,i.wg)(),(0,i.iD)("div",Ke,[(0,i._)("div",Ye,[(0,i.Wm)(d,{"selected-panel":o.selectedConfigPanel},null,8,["selected-panel"])])])):((0,i.wg)(),(0,i.iD)("div",Je,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(o.components,((e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,c.C_)(["panel",{hidden:t!==o.selectedPanel}]),key:t},[t===o.selectedPanel?((0,i.wg)(),(0,i.j4)((0,i.LL)(e.component),{key:0,config:e.config,"plugin-name":t},null,8,["config","plugin-name"])):(0,i.kq)("",!0)],2)))),128))]))])}const Xe=e=>((0,i.dD)("data-v-831e98ec"),e=e(),(0,i.Cn)(),e),Qe=Xe((()=>(0,i._)("i",{class:"fas fa-bars"},null,-1))),et=["textContent"],tt={key:0,class:"plugins"},st={href:"/#"},nt=Xe((()=>(0,i._)("i",{class:"fas fa-home"},null,-1))),it={key:0,class:"name"},ot=["title","onClick"],at={href:"/#settings"},rt={class:"icon"},lt=["src"],ct={key:2,class:"fas fa-puzzle-piece"},dt=["textContent"],ut={key:1,class:"plugins"},ht=["title","onClick"],pt=["href"],ft={class:"icon"},mt=["src"],gt={key:2,class:"fas fa-puzzle-piece"},bt=["textContent"],yt={class:"footer"},vt={href:"/#settings"},wt=Xe((()=>(0,i._)("span",{class:"icon"},[(0,i._)("i",{class:"fa fa-cog"})],-1))),kt={key:0,class:"name"},_t={href:"/logout"},Ct=Xe((()=>(0,i._)("span",{class:"icon"},[(0,i._)("i",{class:"fas fa-sign-out-alt"})],-1))),xt={key:0,class:"name"};function Dt(e,t,s,n,o,a){return(0,i.wg)(),(0,i.iD)("nav",{class:(0,c.C_)({collapsed:o.collapsed})},[(0,i._)("div",{class:"toggler",onClick:t[0]||(t[0]=e=>o.collapsed=!o.collapsed)},[Qe,s.hostname?((0,i.wg)(),(0,i.iD)("span",{key:0,class:"hostname",textContent:(0,c.zw)(s.hostname)},null,8,et)):(0,i.kq)("",!0)]),"settings"===s.selectedPanel?((0,i.wg)(),(0,i.iD)("ul",tt,[(0,i._)("li",{class:"entry",title:"Home",onClick:t[1]||(t[1]=e=>a.onItemClick("entities"))},[(0,i._)("a",st,[nt,o.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",it,"Home"))])]),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(o.configSections,((t,n)=>((0,i.wg)(),(0,i.iD)("li",{key:n,class:(0,c.C_)(["entry",{selected:n===s.selectedConfigPanel}]),title:t.name,onClick:t=>e.$emit("select-config",n)},[(0,i._)("a",at,[(0,i._)("span",rt,[t.icon?.["class"]?((0,i.wg)(),(0,i.iD)("i",{key:0,class:(0,c.C_)(t.icon["class"])},null,2)):t.icon?.imgUrl?((0,i.wg)(),(0,i.iD)("img",{key:1,src:t.icon?.imgUrl,alt:"name"},null,8,lt)):((0,i.wg)(),(0,i.iD)("i",ct))]),o.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",{key:0,class:"name",textContent:(0,c.zw)(t.name)},null,8,dt))])],10,ot)))),128))])):((0,i.wg)(),(0,i.iD)("ul",ut,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(a.panelNames,(e=>((0,i.wg)(),(0,i.iD)("li",{key:e,class:(0,c.C_)(["entry",{selected:e===s.selectedPanel}]),title:e,onClick:t=>a.onItemClick(e)},[(0,i._)("a",{href:`/#${e}`},[(0,i._)("span",ft,[o.icons[e]?.class?((0,i.wg)(),(0,i.iD)("i",{key:0,class:(0,c.C_)(o.icons[e].class)},null,2)):o.icons[e]?.imgUrl?((0,i.wg)(),(0,i.iD)("img",{key:1,src:o.icons[e].imgUrl,alt:"name"},null,8,mt)):((0,i.wg)(),(0,i.iD)("i",gt))]),o.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",{key:0,class:"name",textContent:(0,c.zw)("entities"==e?"Home":e)},null,8,bt))],8,pt)],10,ht)))),128))])),(0,i._)("ul",yt,[(0,i._)("li",{class:(0,c.C_)({selected:"settings"===s.selectedPanel}),title:"Settings",onClick:t[2]||(t[2]=e=>a.onItemClick("settings"))},[(0,i._)("a",vt,[wt,o.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",kt,"Settings"))])],2),(0,i._)("li",{title:"Logout",onClick:t[3]||(t[3]=e=>a.onItemClick("logout"))},[(0,i._)("a",_t,[Ct,o.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",xt,"Logout"))])])])],2)}var It=s(1359),Tt=JSON.parse('{"users":{"name":"Users","icon":{"class":"fas fa-user"}},"tokens":{"name":"Tokens","icon":{"class":"fas fa-key"}}}'),St={name:"Nav",emits:["select","select-config"],mixins:[M.Z],props:{panels:{type:Object,required:!0},selectedPanel:{type:String},selectedConfigPanel:{type:String},hostname:{type:String}},computed:{panelNames(){let e=Object.keys(this.panels);const t=e.indexOf("entities");return t>=0?["entities"].concat(e.slice(0,t).concat(e.slice(t+1)).sort()):e.sort()},collapsedDefault(){return!(!this.isMobile()&&!this.isTablet())}},methods:{onItemClick(e){this.$emit("select",e),this.collapsed=!!this.isMobile()||this.collapsedDefault}},data(){return{collapsed:!0,icons:It,host:null,configSections:Tt}},mounted(){this.collapsed=this.collapsedDefault}};const Mt=(0,C.Z)(St,[["render",Dt],["__scopeId","data-v-831e98ec"]]);var Pt=Mt,Ut=s(2431),$t={name:"Panel",mixins:[M.Z],components:{Settings:Ut["default"],Nav:Pt,Loading:fe.Z},data(){return{loading:!1,plugins:{},backends:{},procedures:{},components:{},hostname:void 0,selectedPanel:void 0,selectedConfigPanel:"users"}},methods:{initSelectedPanel(){const e=this.$route.hash.match("#?([a-zA-Z0-9.]+)[?]?(.*)"),t=e?e[1]:"entities";t?.length&&(this.selectedPanel=t)},initPanels(){const e=this;this.components={},Object.entries(this.plugins).forEach((async([t,n])=>{const o=t.split(".").map((e=>e[0].toUpperCase()+e.slice(1))).join("");let a=null;try{a=await s(3379)(`./${o}/Index`)}catch(l){return}const r=(0,pe.XI)((0,i.RC)((async()=>a)));e.$options.components[t]=r,e.components[t]={component:r,pluginName:t,config:n}}))},async parseConfig(){[this.plugins,this.backends,this.procedures,this.hostname]=await Promise.all([this.request("config.get_plugins"),this.request("config.get_backends"),this.request("config.get_procedures"),this.request("config.get_device_id")]),this.initializeDefaultViews()},initializeDefaultViews(){this.plugins.execute={},this.plugins.entities={}}},async mounted(){this.loading=!0;try{await this.parseConfig(),this.initPanels(),this.initSelectedPanel()}finally{this.loading=!1}}};const qt=(0,C.Z)($t,[["render",Ge],["__scopeId","data-v-2e3e2cc6"]]);var Nt=qt;const jt={key:1,class:"canvas"};function Ot(e,t,s,n,o,a){const r=(0,i.up)("Loading");return(0,i.wg)(),(0,i.iD)("main",null,[o.loading?((0,i.wg)(),(0,i.j4)(r,{key:0})):((0,i.wg)(),(0,i.iD)("div",jt,[((0,i.wg)(),(0,i.j4)((0,i.LL)(o.component),{config:o.config,"plugin-name":a.pluginName},null,8,["config","plugin-name"]))]))])}var Et={name:"Panel",mixins:[M.Z],components:{Settings:Ut["default"],Nav:Pt,Loading:fe.Z},data(){return{loading:!1,config:{},plugins:{},backends:{},procedures:{},component:void 0,hostname:void 0,selectedPanel:void 0}},computed:{pluginName(){return this.$route.params.plugin}},methods:{async initPanel(){const e=this.pluginName.split(".").map((e=>e[0].toUpperCase()+e.slice(1))).join("");let t=null;try{t=await s(3379)(`./${e}/Index`)}catch(n){return console.error(n),void this.notify({error:!0,title:`Cannot load plugin ${this.pluginName}`,text:n.toString()})}this.component=(0,pe.XI)((0,i.RC)((async()=>t))),this.$options.components[e]=this.component},async initConfig(){const e=await this.request("config.get");this.config=e[this.pluginName]||{},this.hostname=await this.request("config.get_device_id")}},async mounted(){this.loading=!0;try{await this.initConfig(),await this.initPanel()}finally{this.loading=!1}}};const Zt=(0,C.Z)(Et,[["render",Ot],["__scopeId","data-v-e339182c"]]);var zt=Zt;const Wt=[{path:"/",name:"Panel",component:Nt},{path:"/dashboard/:name",name:"Dashboard",component:De},{path:"/plugin/:plugin",name:"Plugin",component:zt},{path:"/login",name:"Login",component:Le},{path:"/register",name:"Register",component:Be},{path:"/:catchAll(.*)",component:Me}],Rt=(0,ue.p7)({history:(0,ue.PO)(),routes:Wt});var At=Rt,Lt=s(5205);(0,Lt.z)("/service-worker.js",{ready(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},registered(){console.log("Service worker has been registered.")},cached(){console.log("Content has been cached for offline use.")},updatefound(){console.log("New content is downloading.")},updated(){console.log("New content is available; please refresh.")},offline(){console.log("No internet connection found. App is running in offline mode.")},error(e){console.error("Error during service worker registration:",e)}});const Ft=(0,n.ri)(de);Ft.config.globalProperties._config=window.config,Ft.use(At).mount("#app")},5576:function(e,t,s){"use strict";s.d(t,{Z:function(){return $}});var n=s(9669),i=s.n(n),o={name:"Api",methods:{execute(e,t=6e4,s=!0){const n={};return"target"in e&&e["target"]||(e["target"]="localhost"),"type"in e&&e["type"]||(e["type"]="request"),t&&(n.timeout=t),new Promise(((t,o)=>{i().post("/execute",e,n).then((e=>{if(e=e.data.response,e.errors?.length){const t=e.errors?.[0]||e;this.notify({text:t,error:!0}),o(t)}else t(e.output)})).catch((e=>{412===e?.response?.data?.code&&window.location.href.indexOf("/register")<0?window.location.href="/register?redirect="+window.location.href:401===e?.response?.data?.code&&window.location.href.indexOf("/login")<0?window.location.href="/login?redirect="+window.location.href:(console.log(e),s&&this.notify({text:e,error:!0}),o(e))}))}))},request(e,t={},s=6e4,n=!0){return this.execute({type:"request",action:e,args:t},s,n)}}};const a=o;var r=a,l={name:"Cookies",methods:{getCookies(){return document.cookie.split(/;\s*/).reduce(((e,t)=>{const[s,n]=t.split("=");return e[s]=n,e}),{})},getCookie(e){return this.getCookies()[e]},setCookie(e,t,s){document.cookie=`${e}=${t}; path=${s?.path||"/"}`+(s?.expires?`; expires=${s?.expires.toISOString()}`:"")},deleteCookie(e){document.cookie=`${e}=; expires=1970-01-01T00:00:00Z`}}};const c=l;var d=c,u={name:"DateTime",methods:{formatDate(e,t=!1){return"string"===typeof e&&(e=new Date(Date.parse(e))),e.toDateString().substring(0,t?15:10)},formatTime(e,t=!0){return"string"===typeof e&&(e=new Date(Date.parse(e))),e.toTimeString().substring(0,t?8:5)},formatDateTime(e,t=!1,s=!0){return"string"===typeof e&&(e=new Date(Date.parse(e))),`${this.formatDate(e,t)}, ${this.formatTime(e,s)}`}}};const h=u;var p=h,f=(s(2801),s(5250)),m={name:"Events",computed:{_eventsReady(){return this.$root.$refs.events?.initialized}},methods:{subscribe(e,t,...s){const n=()=>{f.$.emit("subscribe",{events:s,handler:e,handlerName:t||this.generateId()})};if(this._eventsReady)return void n();const i=this,o=this.$watch((()=>i._eventsReady),(e=>{e&&(n(),o())}));return o},unsubscribe(e){f.$.emit("unsubscribe",e)},generateId(){return btoa([...Array(11).keys()].map((()=>String.fromCharCode(Math.round(255*Math.random())))))}}};const g=m;var b=g,y={name:"Notification",methods:{notify(e){f.$.publishNotification(e)},notifyWarning(e){this.notify({text:e,warning:!0})},notifyError(e){throw this.notify({text:e,error:!0}),e}}};const v=y;var w=v,k={name:"Screen",methods:{isMobile(){return window.matchMedia("only screen and (max-width: 768px)").matches},isTablet(){return!this.isMobile()&&window.matchMedia("only screen and (max-width: 1023px)").matches},isDesktop(){return window.matchMedia("only screen and (min-width: 1024px)").matches}}};const _=k;var C=_,x={name:"Text",methods:{capitalize(e){return e?.length?e.charAt(0).toUpperCase()+e.slice(1):e},prettify(e){return e.split("_").map((e=>this.capitalize(e))).join(" ")}}};const D=x;var I=D,T=(s(7658),{name:"Types",methods:{parseBoolean(e){return"string"===typeof e?(e=e.toLowerCase(),"true"===e||"false"!==e&&!!parseInt(e)):!!e},convertSize(e){"string"===typeof e&&(e=parseInt(e));let t=null;const s=["B","KB","MB","GB","TB"];return s.forEach(((n,i)=>{e<=1024&&null==t?t=n:e>1024&&(i===s.length-1?t=n:e/=1024)})),`${e.toFixed(2)} ${t}`},convertTime(e){const t={},s=[];if(e=parseFloat(e),t.d=Math.round(e/86400),t.h=Math.round(e/3600-24*t.d),t.m=Math.round(e/60-(24*t.d+60*t.h)),t.s=Math.round(e-(24*t.d+3600*t.h+60*t.m),1),parseInt(t.d)){let e=t.d+" day";t.d>1&&(e+="s"),s.push(e)}if(parseInt(t.h)){let e=t.h+" hour";t.h>1&&(e+="s"),s.push(e)}if(parseInt(t.m)){let e=t.m+" minute";t.m>1&&(e+="s"),s.push(e)}let n=t.s+" second";return t.s>1&&(n+="s"),s.push(n),s.join(" ")},objectsEqual(e,t){if("object"!==typeof e||"object"!==typeof t)return!1;if(null==e||null==t)return null==e&&null==t;for(const s of Object.keys(e||{}))switch(typeof e[s]){case"object":if(!this.objectsEqual(e[s],t[s]))return!1;break;case"function":if(e[s].toString()!=t[s]?.toString())return!1;break;default:if(e[s]!=t[s])return!1;break}for(const s of Object.keys(t||{}))if(null==e[s]&&null!=t[s])return!1;return!0}}});const S=T;var M=S,P={name:"Utils",mixins:[r,d,w,b,p,C,I,M]};const U=P;var $=U},6791:function(e,t,s){"use strict";s.d(t,{Z:function(){return d}});var n=s(6252);const i={class:"loading"},o={class:"icon"};function a(e,t){return(0,n.wg)(),(0,n.iD)("div",i,[(0,n._)("div",o,[((0,n.wg)(),(0,n.iD)(n.HY,null,(0,n.Ko)(4,(e=>(0,n._)("div",{key:e}))),64))])])}var r=s(3744);const l={},c=(0,r.Z)(l,[["render",a],["__scopeId","data-v-4d9c871b"]]);var d=c},9417:function(e,t,s){"use strict";s.d(t,{Z:function(){return g}});var n=s(6252),i=s(3577);const o=e=>((0,n.dD)("data-v-18f9fdba"),e=e(),(0,n.Cn)(),e),a=["id"],r={key:0,class:"header"},l=["textContent"],c=o((()=>(0,n._)("i",{class:"fas fa-xmark"},null,-1))),d=[c],u={class:"body"};function h(e,t,s,o,c,h){return(0,n.wg)(),(0,n.iD)("div",{class:(0,i.C_)(["modal-container fade-in",{hidden:!c.isVisible}]),id:s.id,style:(0,i.j5)({"--z-index":h.zIndex}),onClick:t[3]||(t[3]=(...e)=>h.close&&h.close(...e))},[(0,n._)("div",{class:(0,i.C_)(["modal",e.$attrs.class])},[(0,n._)("div",{class:"content",style:(0,i.j5)({"--width":s.width,"--height":s.height}),onClick:t[2]||(t[2]=e=>e.stopPropagation())},[s.title?((0,n.wg)(),(0,n.iD)("div",r,[s.title?((0,n.wg)(),(0,n.iD)("div",{key:0,class:"title",textContent:(0,i.zw)(s.title)},null,8,l)):(0,n.kq)("",!0),(0,n._)("button",{title:"Close",alt:"Close",onClick:t[0]||(t[0]=(...e)=>h.close&&h.close(...e))},d)])):(0,n.kq)("",!0),(0,n._)("div",u,[(0,n.WI)(e.$slots,"default",{onModalClose:t[1]||(t[1]=(...e)=>h.close&&h.close(...e))},void 0,!0)])],4)],2)],14,a)}s(7658);var p={name:"Modal",emits:["close","open"],props:{id:{type:String},title:{type:String},width:{type:[Number,String]},height:{type:[Number,String]},visible:{type:Boolean,default:!1},timeout:{type:[Number,String]},level:{type:Number,default:1}},data(){return{timeoutId:void 0,prevVisible:this.visible,isVisible:this.visible}},computed:{zIndex(){return 500+this.level}},methods:{close(){this.prevVisible=this.isVisible,this.isVisible=!1},hide(){this.close()},show(){this.prevVisible=this.isVisible,this.isVisible=!0},toggle(){this.isVisible?this.close():this.show()},onKeyUp(e){e.stopPropagation(),"Escape"===e.key&&this.close()}},mounted(){const e=this,t=t=>{t?e.$emit("open"):e.$emit("close"),e.isVisible=t};document.body.addEventListener("keyup",this.onKeyUp),this.$watch((()=>this.visible),t),this.$watch((()=>this.isVisible),t)},unmounted(){document.body.removeEventListener("keyup",this.onKeyUp)},updated(){if(this.prevVisible=this.isVisible,this.isVisible){let e=parseInt(getComputedStyle(this.$el).zIndex),t=[];for(const s of document.querySelectorAll(".modal-container:not(.hidden)")){const n=parseInt(getComputedStyle(s).zIndex);n>e?(e=n,t=[s]):n===e&&t.push(s)}(t.indexOf(this.$el)<0||t.length>1)&&(this.$el.style.zIndex=e+1)}if(this.isVisible&&this.timeout&&!this.timeoutId){const e=e=>()=>{e.close(),e.timeoutId=void 0};this.timeoutId=setTimeout(e(this),0+this.timeout)}}},f=s(3744);const m=(0,f.Z)(p,[["render",h],["__scopeId","data-v-18f9fdba"]]);var g=m},6936:function(e,t,s){"use strict";s.d(t,{Z:function(){return m}});var n=s(6252),i=s(9963),o=s(3577);const a=e=>((0,n.dD)("data-v-db648f4c"),e=e(),(0,n.Cn)(),e),r={class:"dialog-content"},l=a((()=>(0,n._)("i",{class:"fas fa-check"},null,-1))),c=a((()=>(0,n._)("i",{class:"fas fa-xmark"},null,-1)));function d(e,t,s,a,d,u){const h=(0,n.up)("Modal");return(0,n.wg)(),(0,n.j4)(h,{ref:"modal",title:s.title},{default:(0,n.w5)((()=>[(0,n._)("div",r,[(0,n.WI)(e.$slots,"default",{},void 0,!0)]),(0,n._)("form",{class:"buttons",onSubmit:t[4]||(t[4]=(0,i.iM)(((...e)=>u.onConfirm&&u.onConfirm(...e)),["prevent"]))},[(0,n._)("button",{type:"submit",class:"ok-btn",onClick:t[0]||(t[0]=(...e)=>u.onConfirm&&u.onConfirm(...e)),onTouch:t[1]||(t[1]=(...e)=>u.onConfirm&&u.onConfirm(...e))},[l,(0,n.Uk)(" "+(0,o.zw)(s.confirmText),1)],32),(0,n._)("button",{type:"button",class:"cancel-btn",onClick:t[2]||(t[2]=(...e)=>u.close&&u.close(...e)),onTouch:t[3]||(t[3]=(...e)=>u.close&&u.close(...e))},[c,(0,n.Uk)(" "+(0,o.zw)(s.cancelText),1)],32)],32)])),_:3},8,["title"])}var u=s(9417),h={emits:["input","click","touch"],components:{Modal:u.Z},props:{title:{type:String},confirmText:{type:String,default:"OK"},cancelText:{type:String,default:"Cancel"}},methods:{onConfirm(){this.$emit("input"),this.close()},show(){this.$refs.modal.show()},close(){this.$refs.modal.hide()}}},p=s(3744);const f=(0,p.Z)(h,[["render",d],["__scopeId","data-v-db648f4c"]]);var m=f},7261:function(e,t,s){"use strict";s.d(t,{Z:function(){return f}});var n=s(6252),i=s(9963),o=s(3577);const a={class:"dropdown-container",ref:"container"},r=["title"],l=["textContent"],c=["id"];function d(e,t,s,d,u,h){return(0,n.wg)(),(0,n.iD)("div",a,[(0,n._)("button",{title:s.title,ref:"button",onClick:t[0]||(t[0]=(0,i.iM)((e=>h.toggle(e)),["stop"]))},[s.iconClass?((0,n.wg)(),(0,n.iD)("i",{key:0,class:(0,o.C_)(["icon",s.iconClass])},null,2)):(0,n.kq)("",!0),s.text?((0,n.wg)(),(0,n.iD)("span",{key:1,class:"text",textContent:(0,o.zw)(s.text)},null,8,l)):(0,n.kq)("",!0)],8,r),(0,n._)("div",{class:(0,o.C_)(["dropdown fade-in",{hidden:!u.visible}]),id:s.id,ref:"dropdown"},[(0,n.WI)(e.$slots,"default",{},void 0,!0)],10,c)],512)}var u={name:"Dropdown",emits:["click"],props:{id:{type:String},items:{type:Array,default:()=>[]},iconClass:{default:"fa fa-ellipsis-h"},text:{type:String},title:{type:String},keepOpenOnItemClick:{type:Boolean,default:!1}},data(){return{visible:!1}},methods:{documentClickHndl(e){if(!this.visible)return;let t=e.target;while(t){if(!this.$refs.dropdown)break;if(t===this.$refs.dropdown.element)return;t=t.parentElement}this.close()},close(){this.visible=!1,document.removeEventListener("click",this.documentClickHndl)},open(){document.addEventListener("click",this.documentClickHndl),this.visible=!0,setTimeout((()=>{const e=this.$refs.dropdown;e.style.left=0,e.style.top=parseFloat(getComputedStyle(this.$refs.button).height)+"px",e.getBoundingClientRect().left>window.innerWidth/2&&(e.style.left=-e.clientWidth+parseFloat(getComputedStyle(this.$refs.button).width)+"px"),e.getBoundingClientRect().top>window.innerHeight/2&&(e.style.top=-e.clientHeight+parseFloat(getComputedStyle(this.$refs.button).height)+"px")}),10)},toggle(e){e.stopPropagation(),this.$emit("click"),this.visible?this.close():this.open()},onKeyUp(e){e.stopPropagation(),"Escape"===e.key&&this.close()}},mounted(){document.body.addEventListener("keyup",this.onKeyUp)},unmounted(){document.body.removeEventListener("keyup",this.onKeyUp)}},h=s(3744);const p=(0,h.Z)(u,[["render",d],["__scopeId","data-v-5b964c03"]]);var f=p},3213:function(e,t,s){"use strict";s.d(t,{Z:function(){return h}});var n=s(6252),i=s(3577);const o={key:0,class:"col-2 icon"},a=["textContent"];function r(e,t,s,r,l,c){const d=(0,n.up)("Icon");return(0,n.wg)(),(0,n.iD)("div",{class:(0,i.C_)(["row item",s.itemClass]),onClick:t[0]||(t[0]=(...e)=>c.clicked&&c.clicked(...e))},[s.iconClass?.length||s.iconUrl?.length?((0,n.wg)(),(0,n.iD)("div",o,[(0,n.Wm)(d,{class:(0,i.C_)(s.iconClass),url:s.iconUrl},null,8,["class","url"])])):(0,n.kq)("",!0),(0,n._)("div",{class:(0,i.C_)(["text",{"col-10":null!=s.iconClass}]),textContent:(0,i.zw)(s.text)},null,10,a)],2)}var l=s(657),c={name:"DropdownItem",components:{Icon:l.Z},props:{iconClass:{type:String},iconUrl:{type:String},text:{type:String},disabled:{type:Boolean,default:!1},itemClass:{}},methods:{clicked(e){if(this.disabled)return!1;this.$parent.$emit("click",e),this.$parent.keepOpenOnItemClick||(this.$parent.visible=!1)}}},d=s(3744);const u=(0,d.Z)(c,[["render",r],["__scopeId","data-v-282d16b4"]]);var h=u},657:function(e,t,s){"use strict";s.d(t,{Z:function(){return u}});var n=s(6252),i=s(3577);const o={class:"icon-container"},a=["src","alt"];function r(e,t,s,r,l,c){return(0,n.wg)(),(0,n.iD)("div",o,[s.url?.length?((0,n.wg)(),(0,n.iD)("img",{key:0,class:"icon",src:s.url,alt:s.alt},null,8,a)):c.className?.length?((0,n.wg)(),(0,n.iD)("i",{key:1,class:(0,i.C_)(["icon",c.className]),style:(0,i.j5)({color:s.color})},null,6)):(0,n.kq)("",!0)])}var l={props:{class:{type:String},url:{type:String},color:{type:String,default:""},alt:{type:String,default:""}},computed:{className(){return this.class}}},c=s(3744);const d=(0,c.Z)(l,[["render",r],["__scopeId","data-v-706a3bd1"]]);var u=d},2431:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return le}});var n=s(6252);const i={class:"settings-container"};function o(e,t,s,o,a,r){const l=(0,n.up)("Users"),c=(0,n.up)("Token");return(0,n.wg)(),(0,n.iD)("div",i,[(0,n._)("main",null,["users"===s.selectedPanel&&a.currentUser?((0,n.wg)(),(0,n.j4)(l,{key:0,"session-token":a.sessionToken,"current-user":a.currentUser},null,8,["session-token","current-user"])):"tokens"===s.selectedPanel&&a.currentUser?((0,n.wg)(),(0,n.j4)(c,{key:1,"session-token":a.sessionToken,"current-user":a.currentUser},null,8,["session-token","current-user"])):(0,n.kq)("",!0)])])}var a=s(3577),r=s(9963);const l={class:"token-container"},c={class:"token-container"},d=(0,n._)("label",null,[(0,n.Uk)(" This is your generated token. Treat it carefully and do not share it with untrusted parties."),(0,n._)("br"),(0,n.Uk)(" Also, make sure to save it - it WILL NOT be displayed again. ")],-1),u=["textContent"],h={class:"token-container"},p=(0,n._)("label",null," This is your current session token. It will be invalidated once you log out of the current session. ",-1),f=["textContent"],m={class:"body"},g=(0,n.uE)('',1),b={class:"form-container"},y=(0,n._)("span",null,"Username",-1),v=["value"],w=(0,n._)("label",null,[(0,n._)("span",null,"Confirm password"),(0,n._)("span",null,[(0,n._)("input",{type:"password",name:"password"})])],-1),k=(0,n._)("label",null,[(0,n._)("span",null,"Token validity in days"),(0,n._)("span",null,[(0,n._)("input",{type:"text",name:"validityDays"})]),(0,n._)("span",{class:"note"},[(0,n.Uk)(" Decimal values are also supported - e.g. "),(0,n._)("i",null,"0.5"),(0,n.Uk)(" means half a day (12 hours). An empty or zero value means that the token has no expiry date. ")])],-1),_=(0,n._)("label",null,[(0,n._)("input",{type:"submit",class:"btn btn-primary",value:"Generate JWT token"})],-1);function C(e,t,s,i,o,C){const x=(0,n.up)("Loading"),D=(0,n.up)("Modal");return(0,n.wg)(),(0,n.iD)("div",l,[o.loading?((0,n.wg)(),(0,n.j4)(x,{key:0})):(0,n.kq)("",!0),(0,n.Wm)(D,{ref:"tokenModal"},{default:(0,n.w5)((()=>[(0,n._)("div",c,[d,(0,n._)("textarea",{class:"token",textContent:(0,a.zw)(o.token),onFocus:t[0]||(t[0]=(...e)=>C.onTokenSelect&&C.onTokenSelect(...e))},null,40,u)])])),_:1},512),(0,n.Wm)(D,{ref:"sessionTokenModal"},{default:(0,n.w5)((()=>[(0,n._)("div",h,[p,(0,n._)("textarea",{class:"token",textContent:(0,a.zw)(s.sessionToken),onFocus:t[1]||(t[1]=(...e)=>C.onTokenSelect&&C.onTokenSelect(...e))},null,40,f)])])),_:1},512),(0,n._)("div",m,[g,(0,n._)("div",b,[(0,n._)("form",{onSubmit:t[3]||(t[3]=(0,r.iM)(((...e)=>C.generateToken&&C.generateToken(...e)),["prevent"])),ref:"generateTokenForm"},[(0,n._)("label",null,[y,(0,n._)("span",null,[(0,n._)("input",{type:"text",name:"username",value:s.currentUser.username,disabled:""},null,8,v)])]),w,k,_,(0,n._)("label",null,[(0,n._)("input",{type:"button",class:"btn btn-default",value:"Show session token",onClick:t[2]||(t[2]=(0,r.iM)((t=>e.$refs.sessionTokenModal.show()),["stop"]))})])],544)])])])}var x=s(9669),D=s.n(x),I=s(6791),T=s(5576),S=s(9417),M={name:"Token",components:{Modal:S.Z,Loading:I.Z},mixins:[T.Z],props:{currentUser:{type:Object,required:!0},sessionToken:{type:String,required:!0}},data(){return{loading:!1,token:null}},methods:{async generateToken(e){const t=this.currentUser.username,s=e.target.password.value;let n=e.target.validityDays?.length?parseInt(e.target.validityDays.value):0;n||(n=null),this.loading=!0;try{this.token=(await D().post("/auth",{username:t,password:s,expiry_days:n})).data.token,this.token?.length&&this.$refs.tokenModal.show()}catch(i){console.error(i.toString()),this.notify({text:i.toString(),error:!0})}finally{this.loading=!1}},onTokenSelect(e){e.target.select(),document.execCommand("copy"),this.notify({text:"Token copied to clipboard",image:{iconClass:"fa fa-check"}})}}},P=s(3744);const U=(0,P.Z)(M,[["render",C]]);var $=U;const q=["disabled"],N=["disabled"],j=["disabled"],O=["disabled"],E=["value"],Z=["disabled"],z=["disabled"],W=["disabled"],R=["disabled"],A={class:"body"},L={class:"users-list"},F=["onClick"],V=["textContent"],H={class:"actions pull-right col-4"};function B(e,t,s,i,o,r){const l=(0,n.up)("Loading"),c=(0,n.up)("Modal"),d=(0,n.up)("DropdownItem"),u=(0,n.up)("Dropdown"),h=(0,n.up)("FloatingButton"),p=(0,n.up)("ConfirmDialog");return(0,n.wg)(),(0,n.iD)(n.HY,null,[o.loading?((0,n.wg)(),(0,n.j4)(l,{key:0})):(0,n.kq)("",!0),(0,n.Wm)(c,{ref:"addUserModal",title:"Add User"},{default:(0,n.w5)((()=>[(0,n._)("form",{action:"#",method:"POST",ref:"addUserForm",onSubmit:t[0]||(t[0]=(...e)=>r.createUser&&r.createUser(...e))},[(0,n._)("label",null,[(0,n._)("input",{type:"text",name:"username",placeholder:"Username",disabled:o.commandRunning},null,8,q)]),(0,n._)("label",null,[(0,n._)("input",{type:"password",name:"password",placeholder:"Password",disabled:o.commandRunning},null,8,N)]),(0,n._)("label",null,[(0,n._)("input",{type:"password",name:"confirm_password",placeholder:"Confirm password",disabled:o.commandRunning},null,8,j)]),(0,n._)("label",null,[(0,n._)("input",{type:"submit",class:"btn btn-primary",value:"Create User",disabled:o.commandRunning},null,8,O)])],544)])),_:1},512),(0,n.Wm)(c,{ref:"changePasswordModal",title:"Change Password"},{default:(0,n.w5)((()=>[(0,n._)("form",{action:"#",method:"POST",ref:"changePasswordForm",onSubmit:t[1]||(t[1]=(...e)=>r.changePassword&&r.changePassword(...e))},[(0,n._)("label",null,[(0,n._)("input",{type:"text",name:"username",placeholder:"Username",value:o.selectedUser,disabled:"disabled"},null,8,E)]),(0,n._)("label",null,[(0,n._)("input",{type:"password",name:"password",placeholder:"Current password",disabled:o.commandRunning},null,8,Z)]),(0,n._)("label",null,[(0,n._)("input",{type:"password",name:"new_password",placeholder:"New password",disabled:o.commandRunning},null,8,z)]),(0,n._)("label",null,[(0,n._)("input",{type:"password",name:"confirm_new_password",placeholder:"Confirm new password",disabled:o.commandRunning},null,8,W)]),(0,n._)("label",null,[(0,n._)("input",{type:"submit",class:"btn btn-primary",value:"Change Password",disabled:o.commandRunning},null,8,R)])],544)])),_:1},512),(0,n._)("div",A,[(0,n._)("ul",L,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(o.users,(s=>((0,n.wg)(),(0,n.iD)("li",{key:s.user_id,class:"item user",onClick:e=>o.selectedUser=s.username},[(0,n._)("div",{class:"name col-8",textContent:(0,a.zw)(s.username)},null,8,V),(0,n._)("div",H,[(0,n.Wm)(u,{title:"User Actions","icon-class":"fa fa-ellipsis"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{text:"Change Password",disabled:o.commandRunning,"icon-class":"fa fa-key",onClick:e=>r.showChangePasswordModal(s)},null,8,["disabled","onClick"]),(0,n.Wm)(d,{text:"Delete User",disabled:o.commandRunning,"icon-class":"fa fa-trash",onClick:t[2]||(t[2]=t=>e.$refs.deleteUserDialog.show())},null,8,["disabled"])])),_:2},1024)])],8,F)))),128))]),(0,n.Wm)(h,{"icon-class":"fa fa-plus",text:"Add User",onClick:r.showAddUserModal},null,8,["onClick"]),(0,n.Wm)(p,{ref:"deleteUserDialog",onInput:t[3]||(t[3]=e=>r.deleteUser(o.selectedUser))},{default:(0,n.w5)((()=>[(0,n.Uk)(" Are you sure that you want to remove the user "+(0,a.zw)(o.selectedUser)+"? ",1)])),_:1},512)])],64)}var K=s(6936),Y=s(7261),J=s(3213);const G=["title"];function X(e,t,s,i,o,r){const l=(0,n.up)("Icon");return(0,n.wg)(),(0,n.iD)("div",{class:(0,a.C_)(["floating-btn",r.className])},[(0,n._)("button",{type:"button",class:"btn btn-primary",title:s.title,onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[(0,n.Wm)(l,{class:(0,a.C_)(s.iconClass),url:s.iconUrl},null,8,["class","url"])],8,G)],2)}var Q=s(657),ee={name:"FloatingButton",components:{Icon:Q.Z},emits:["click"],props:{iconClass:{type:String},iconUrl:{type:String},class:{type:String},title:{type:String}},computed:{className(){return this.class}}};const te=(0,P.Z)(ee,[["render",X],["__scopeId","data-v-133e57f8"]]);var se=te,ne={name:"Users",components:{ConfirmDialog:K.Z,Dropdown:Y.Z,DropdownItem:J.Z,FloatingButton:se,Loading:I.Z,Modal:S.Z},mixins:[T.Z],props:{sessionToken:{type:String,required:!0},currentUser:{type:Object,required:!0}},data(){return{users:[],commandRunning:!1,loading:!1,selectedUser:null}},methods:{async refresh(){this.loading=!0;try{this.users=await this.request("user.get_users")}finally{this.loading=!1}},async createUser(e){e.preventDefault();const t=[...this.$refs.addUserForm.querySelectorAll("input[name]")].reduce(((e,t)=>(e[t.name]=t.value,e)),{});if(t.password===t.confirm_password){this.commandRunning=!0;try{await this.request("user.create_user",{username:t.username,password:t.password,session_token:this.sessionToken})}finally{this.commandRunning=!1}this.notify({text:"User "+t.username+" created",image:{iconClass:"fas fa-check"}}),this.$refs.addUserModal.close(),await this.refresh()}else this.notify({title:"Unable to create user",text:"Please check that the passwords match",error:!0,image:{iconClass:"fas fa-times"}})},async changePassword(e){e.preventDefault();const t=[...this.$refs.changePasswordForm.querySelectorAll("input[name]")].reduce(((e,t)=>(e[t.name]=t.value,e)),{});if(t.new_password!==t.confirm_new_password)return void this.notify({title:"Unable to update password",text:"Please check that the passwords match",error:!0,image:{iconClass:"fas fa-times"}});this.commandRunning=!0;let s=!1;try{s=await this.request("user.update_password",{username:t.username,old_password:t.password,new_password:t.new_password})}finally{this.commandRunning=!1}s?(this.$refs.changePasswordModal.close(),this.notify({text:"Password successfully updated",image:{iconClass:"fas fa-check"}})):this.notify({title:"Unable to update password",text:"The current password is incorrect",error:!0,image:{iconClass:"fas fa-times"}})},async deleteUser(e){this.commandRunning=!0;try{await this.request("user.delete_user",{username:e,session_token:this.sessionToken})}finally{this.commandRunning=!1}this.notify({text:`User ${e} removed`,image:{iconClass:"fas fa-check"}}),this.selectedUser=null,await this.refresh()},showAddUserModal(){this.$refs.addUserModal.show(),this.$nextTick((()=>{this.$refs.addUserForm.reset(),this.$refs.addUserForm.username.focus()}))},showChangePasswordModal(e){this.$refs.changePasswordModal.show(),this.$nextTick((()=>{this.$refs.changePasswordForm.password.focus(),this.selectedUser=e.username}))}},mounted(){this.refresh()}};const ie=(0,P.Z)(ne,[["render",B],["__scopeId","data-v-510035f2"]]);var oe=ie,ae={name:"Settings",components:{Users:oe,Token:$},mixins:[T.Z],props:{selectedPanel:{type:String}},data(){return{currentUser:null,sessionToken:null}},methods:{async refresh(){this.sessionToken=this.getCookies()["session_token"],this.currentUser=await this.request("user.get_user_by_session",{session_token:this.sessionToken})}},mounted(){this.refresh()}};const re=(0,P.Z)(ae,[["render",o]]);var le=re},3379:function(e,t,s){var n={"./Camera/Index":[5324,8039,5324],"./CameraAndroidIpcam/Index":[5794,5794],"./CameraCv/Index":[6148,8039,6148],"./CameraFfmpeg/Index":[9334,8039,9334],"./CameraGstreamer/Index":[813,8039,813],"./CameraIrMlx90640/Index":[7381,8039,7381],"./CameraPi/Index":[8895,8039,8895],"./Entities/Index":[6217,4558],"./Execute/Index":[7510,7510],"./Light/Index":[7184,2471,5040,7184],"./LightHue/Index":[2976,2471,5040,7184,2976],"./Media/Index":[7143,2471,4186,8053,7143],"./MediaMplayer/Index":[3518,2471,4186,8053,7143,3518],"./MediaMpv/Index":[4765,2471,4186,8053,7143,4765],"./MediaOmxplayer/Index":[7819,2471,4186,8053,7143,7819],"./MediaVlc/Index":[2614,2471,4186,8053,7143,2614],"./Music/Index":[7473,2471,4186,7473],"./MusicMpd/Index":[1309,2471,4186,7473,1309],"./MusicSnapcast/Index":[7126,2471,5040,7126],"./MusicSpotify/Index":[2068,2471,4186,7473,2068],"./Rtorrent/Index":[2183,8053,3664,2183],"./Settings/Index":[2431],"./Sound/Index":[746,746],"./Torrent/Index":[8784,8053,3664,8784],"./Tts/Index":[3732,8069,3732],"./TtsGoogle/Index":[2853,8069,2853],"./TvSamsungWs/Index":[4589,4589],"./ZigbeeMqtt/Index":[1259,2471,5040,1259],"./Zwave/Index":[2732,2471,5040,7880,2732],"./ZwaveMqtt/Index":[1088,2471,5040,7880,1088]};function i(e){if(!s.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],i=t[0];return Promise.all(t.slice(1).map(s.e)).then((function(){return s(i)}))}i.keys=function(){return Object.keys(n)},i.id=3379,e.exports=i},6725:function(e,t,s){var n={"./Calendar/Index":[5638,5638],"./Camera/Index":[446,446],"./Component/Index":[1449,2471,5040,1449],"./DateTime/Index":[4619,1391,4619],"./DateTimeWeather/Index":[9962,3594,1391,9962],"./ImageCarousel/Index":[306,3594,1391,306],"./Music/Index":[311,311],"./Plugin/Index":[8179,8179],"./RssNews/Index":[6523,6523],"./Weather/Index":[3594,3594]};function i(e){if(!s.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],i=t[0];return Promise.all(t.slice(1).map(s.e)).then((function(){return s(i)}))}i.keys=function(){return Object.keys(n)},i.id=6725,e.exports=i},1359:function(e){"use strict";e.exports=JSON.parse('{"arduino":{"class":"fas fa-microchip"},"bluetooth":{"class":"fab fa-bluetooth"},"camera.android.ipcam":{"class":"fab fa-android"},"camera.cv":{"class":"fas fa-camera"},"camera.ffmpeg":{"class":"fas fa-camera"},"camera.gstreamer":{"class":"fas fa-camera"},"camera.ir.mlx90640":{"class":"fas fa-sun"},"camera.pi":{"class":"fas fa-camera"},"entities":{"class":"fa fa-home"},"execute":{"class":"fa fa-play"},"light.hue":{"class":"fas fa-lightbulb"},"linode":{"class":"fas fa-cloud"},"media.jellyfin":{"imgUrl":"/icons/jellyfin.svg"},"media.kodi":{"imgUrl":"/icons/kodi.svg"},"media.omxplayer":{"class":"fa fa-film"},"media.mplayer":{"class":"fa fa-film"},"media.mpv":{"class":"fa fa-film"},"media.plex":{"imgUrl":"/icons/plex.svg"},"media.vlc":{"class":"fa fa-film"},"music.mpd":{"class":"fas fa-music"},"music.snapcast":{"class":"fa fa-volume-up"},"music.spotify":{"class":"fab fa-spotify"},"torrent":{"class":"fa fa-magnet"},"rtorrent":{"class":"fa fa-magnet"},"sensor.bme280":{"class":"fas fa-microchip"},"sensor.dht":{"class":"fas fa-microchip"},"sensor.envirophat":{"class":"fas fa-microchip"},"sensor.ltr559":{"class":"fas fa-microchip"},"sensor.mcp3008":{"class":"fas fa-microchip"},"sensor.pmw3901":{"class":"fas fa-microchip"},"sensor.vl53l1x":{"class":"fas fa-microchip"},"serial":{"class":"fab fa-usb"},"smartthings":{"imgUrl":"/icons/smartthings.png"},"switches":{"class":"fas fa-toggle-on"},"switch.switchbot":{"class":"fas fa-toggle-on"},"switch.tplink":{"class":"fas fa-toggle-on"},"switchbot":{"class":"fas fa-toggle-on"},"sound":{"class":"fa fa-microphone"},"system":{"class":"fas fa-microchip"},"tts":{"class":"far fa-comment"},"tts.google":{"class":"fas fa-comment"},"tv.samsung.ws":{"class":"fas fa-tv"},"variable":{"class":"fas fa-square-root-variable"},"zigbee.mqtt":{"imgUrl":"/icons/zigbee.svg"},"zwave":{"imgUrl":"/icons/z-wave.png"},"zwave.mqtt":{"imgUrl":"/icons/z-wave.png"}}')}},t={};function s(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,s),o.exports}s.m=e,function(){var e=[];s.O=function(t,n,i,o){if(!n){var a=1/0;for(d=0;dPlatypush provides two types of tokens:
- JWT tokens are bearer-only, and they contain encrypted authentication information.
They can be used as permanent or time-based tokens to authenticate with the Platypush API.- Session tokens are randomly generated tokens stored on the application database. A session token generated in this session will expire when you log out of it.
Generate a JWT authentication token that can be used for API calls to the
/execute
endpoint.You can include the token in your requests in any of the following ways:
- Specify it on the
Authorization: Bearer
header;- Specify it on the
X-Token
header;- Specify it as a URL parameter:
http://site:8008/execute?token=...
for a JWT token and...?session_token=...
for a session token;- Specify it on the body of your JSON request:
{"type":"request", "action", "...", "token":"..."}
for a JWT token, or"session_token"
for a session token.Confirm your credentials in order to generate a new JWT token.
Show session token will instead show the token cookie associated to the current session.
=o)&&Object.keys(s.O).every((function(e){return s.O[e](n[l])}))?n.splice(l--,1):(r=!1,o0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[n,i,o]}}(),function(){s.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return s.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};s.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"===typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"===typeof n.then)return n}var o=Object.create(null);s.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var r=2&i&&n;"object"==typeof r&&!~e.indexOf(r);r=t(r))Object.getOwnPropertyNames(r).forEach((function(e){a[e]=function(){return n[e]}}));return a["default"]=function(){return n},s.d(o,a),o}}(),function(){s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce((function(t,n){return s.f[n](e,t),t}),[]))}}(),function(){s.u=function(e){return"static/js/"+e+"."+{65:"ae7df477",169:"02caaaba",306:"e00c1cf9",311:"d1d1d9f4",446:"edd4ad9d",729:"0745f633",746:"f937ce7f",813:"52ce2ced",984:"b15beee9",1088:"22c3f8aa",1259:"c8eb36de",1309:"1669a718",1391:"a76844c2",1449:"a26dafc3",2068:"084d3505",2183:"8cf7b0b0",2217:"9116c837",2460:"6a8718df",2471:"da49c64a",2614:"b9ec352d",2732:"34e0816d",2853:"9bbaddde",2893:"55e3bcf7",2976:"839efca8",3368:"eda50aa5",3369:"f62097be",3518:"8990808d",3559:"c2592048",3594:"4984f1e9",3664:"a734c169",3732:"9e00a586",3798:"aa58fe43",3826:"cc264dd1",3835:"667ba911",4186:"15faf5c9",4558:"a23333b6",4589:"c27e4a5c",4619:"3ed6c4ba",4765:"87ca22d5",5040:"f02b705d",5207:"7f241e21",5324:"cc121a10",5329:"114966f2",5638:"2cef8bcb",5794:"65cb5433",6148:"ec977afe",6362:"c4de72d9",6523:"2bc2fbed",6561:"fc5ef77b",7126:"7b1232fe",7143:"43e8ea32",7184:"a30de42e",7381:"73678984",7473:"7a6bfe71",7510:"51d54bc4",7523:"5fed230e",7590:"ebe62444",7819:"0006d776",7880:"ceb6e400",8039:"951792f1",8053:"22e4ed09",8069:"51c1e8b1",8179:"00e2fca6",8391:"16e30eb1",8621:"33df9b41",8769:"02eed3a9",8784:"fce7d104",8825:"18ef8a1e",8895:"a6247bc4",9334:"fb17318e",9624:"e590eb03",9962:"80cb7a7b"}[e]+".js"}}(),function(){s.miniCssF=function(e){return"static/css/"+e+"."+{65:"ae3723d7",169:"10cdb721",306:"fbbaf2b7",311:"504d6c0b",446:"ed463bd2",729:"ea3fa7cb",746:"25e7d5ff",984:"ef565a73",1259:"72a7d113",1391:"1b22f65c",1449:"8f1b2b15",2217:"95911650",2460:"fd9ed6f2",2471:"a6a32303",2893:"518b169b",2976:"234438b4",3368:"1f06089f",3369:"9c9d5a57",3559:"f1dc7909",3594:"3a165bb4",3664:"c92d9d38",3798:"78925ff5",3826:"180d2070",3835:"a07dd4e2",4186:"b6585c35",4558:"db219e15",4589:"6d3a8446",5040:"fcf11255",5207:"950597e1",5329:"74d3b3a3",5638:"25d1c562",5794:"49b1f262",6523:"4bf56b11",6561:"208265a1",7126:"a0725ecc",7143:"539db457",7184:"6ad0f775",7473:"16d1dc39",7510:"1112d8b7",7523:"f0111959",7590:"34698020",7880:"a114eea0",8039:"22b025de",8053:"2e68c420",8069:"58663e3e",8179:"8db287b9",8391:"bfeafcb0",8621:"1460504e",8769:"f9545a14",8825:"4b3e6b00",9624:"9f2b9c3a",9962:"bec1b050"}[e]+".css"}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="platypush:";s.l=function(n,i,o,a){if(e[n])e[n].push(i);else{var r,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),d=0;d {\n bus.emit('entity-update', entity)\n}\n\nbus.onEntity = (callback) => {\n bus.on('entity-update', callback)\n}\n\nbus.publishNotification = (notification) => {\n bus.emit('notification-create', notification)\n}\n\nbus.onNotification = (callback) => {\n bus.on('notification-create', callback)\n}\n\nexport { bus }\n","\n \n \n \n \n \n \n Would you like to install this application locally?\n \n\n\n\n\n\n\n\n\n","\n \n\n\n\n\n\n","\n\n \n\n \n\n\n\n\n\n","import { render } from \"./Notification.vue?vue&type=template&id=7646705e&scoped=true\"\nimport script from \"./Notification.vue?vue&type=script&lang=js\"\nexport * from \"./Notification.vue?vue&type=script&lang=js\"\n\nimport \"./Notification.vue?vue&type=style&index=0&id=7646705e&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7646705e\"]])\n\nexport default __exports__","import { render } from \"./Notifications.vue?vue&type=template&id=6dc8bebc&scoped=true\"\nimport script from \"./Notifications.vue?vue&type=script&lang=js\"\nexport * from \"./Notifications.vue?vue&type=script&lang=js\"\n\nimport \"./Notifications.vue?vue&type=style&index=0&id=6dc8bebc&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6dc8bebc\"]])\n\nexport default __exports__","\n \n\n\n\n","import { render } from \"./Events.vue?vue&type=template&id=6a0e6afd\"\nimport script from \"./Events.vue?vue&type=script&lang=js\"\nexport * from \"./Events.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n \n \n \n \n\n \n \n \n \n \n\n\n\n\n\n\n\n\n","import { render } from \"./VoiceAssistant.vue?vue&type=template&id=3f009270\"\nimport script from \"./VoiceAssistant.vue?vue&type=script&lang=js\"\nexport * from \"./VoiceAssistant.vue?vue&type=script&lang=js\"\n\nimport \"./VoiceAssistant.vue?vue&type=style&index=0&id=3f009270&lang=scss\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n \n\n\n\n","import { render } from \"./Ntfy.vue?vue&type=template&id=1c4a4708\"\nimport script from \"./Ntfy.vue?vue&type=script&lang=js\"\nexport * from \"./Ntfy.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n \n\n\n\n","import { render } from \"./Pushbullet.vue?vue&type=template&id=bf9869d4\"\nimport script from \"./Pushbullet.vue?vue&type=script&lang=js\"\nexport * from \"./Pushbullet.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./App.vue?vue&type=template&id=56afd0b4\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\n\nimport \"./App.vue?vue&type=style&index=0&id=56afd0b4&lang=scss\"\n\nimport exportComponent from \"../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n \n\n \n \n \n \n\n\n\n\n\n Assistant listening\n\n\n \n\n\n \n\n\n\n \n\n\n\n\n\n\n\n\n","\n\n
\n\n \n\n \n\n \n\n\n\n\n\n\n","import { render } from \"./Row.vue?vue&type=template&id=1b4663f2&scoped=true\"\nimport script from \"./Row.vue?vue&type=script&lang=js\"\nexport * from \"./Row.vue?vue&type=script&lang=js\"\n\nimport \"./Row.vue?vue&type=style&index=0&id=1b4663f2&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1b4663f2\"]])\n\nexport default __exports__","\n\n \n\n\n\n\n\n\n","import { render } from \"./Widget.vue?vue&type=template&id=5df52982&scoped=true\"\nimport script from \"./Widget.vue?vue&type=script&lang=js\"\nexport * from \"./Widget.vue?vue&type=script&lang=js\"\n\nimport \"./Widget.vue?vue&type=style&index=0&id=5df52982&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5df52982\"]])\n\nexport default __exports__","import { render } from \"./Dashboard.vue?vue&type=template&id=54e0248a&scoped=true\"\nimport script from \"./Dashboard.vue?vue&type=script&lang=js\"\nexport * from \"./Dashboard.vue?vue&type=script&lang=js\"\n\nimport \"./Dashboard.vue?vue&type=style&index=0&id=54e0248a&lang=scss&scoped=true\"\nimport \"./Dashboard.vue?vue&type=style&index=1&id=54e0248a&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-54e0248a\"]])\n\nexport default __exports__","\n\n Object not found
\n\n\n\n\n","import { render } from \"./NotFound.vue?vue&type=template&id=49501f4d\"\nimport script from \"./NotFound.vue?vue&type=script&lang=js\"\nexport * from \"./NotFound.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n \n\n\n\n\n\n\n","import { render } from \"./Login.vue?vue&type=template&id=af0b14d0&scoped=true\"\nimport script from \"./Login.vue?vue&type=script&lang=js\"\nexport * from \"./Login.vue?vue&type=script&lang=js\"\n\nimport \"./Login.vue?vue&type=style&index=0&id=af0b14d0&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-af0b14d0\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Register.vue?vue&type=template&id=1244b238\"\nimport script from \"./Register.vue?vue&type=script&lang=js\"\nexport * from \"./Register.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n \n \n\n\n\n\n\n\n\n","\n \n\n\n\n\n\n\n","import { render } from \"./Nav.vue?vue&type=template&id=831e98ec&scoped=true\"\nimport script from \"./Nav.vue?vue&type=script&lang=js\"\nexport * from \"./Nav.vue?vue&type=script&lang=js\"\n\nimport \"./Nav.vue?vue&type=style&index=0&id=831e98ec&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-831e98ec\"]])\n\nexport default __exports__","import { render } from \"./Panel.vue?vue&type=template&id=2e3e2cc6&scoped=true\"\nimport script from \"./Panel.vue?vue&type=script&lang=js\"\nexport * from \"./Panel.vue?vue&type=script&lang=js\"\n\nimport \"./Panel.vue?vue&type=style&index=0&id=2e3e2cc6&lang=scss&scoped=true\"\nimport \"./Panel.vue?vue&type=style&index=1&id=2e3e2cc6&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2e3e2cc6\"]])\n\nexport default __exports__","\n\n \n\n \n\n\n\n\n\n \n\n\n\n\n \n \n\n\n\n\n\n\n\n","import { render } from \"./Plugin.vue?vue&type=template&id=e339182c&scoped=true\"\nimport script from \"./Plugin.vue?vue&type=script&lang=js\"\nexport * from \"./Plugin.vue?vue&type=script&lang=js\"\n\nimport \"./Plugin.vue?vue&type=style&index=0&id=e339182c&lang=scss&scoped=true\"\nimport \"./Plugin.vue?vue&type=style&index=1&id=e339182c&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e339182c\"]])\n\nexport default __exports__","import { createWebHistory, createRouter } from \"vue-router\";\nimport Dashboard from \"@/views/Dashboard.vue\";\nimport NotFound from \"@/views/NotFound\";\nimport Login from \"@/views/Login\";\nimport Register from \"@/views/Register\";\nimport Panel from \"@/views/Panel\";\nimport Plugin from \"@/views/Plugin\";\n\nconst routes = [\n {\n path: \"/\",\n name: \"Panel\",\n component: Panel,\n },\n\n {\n path: \"/dashboard/:name\",\n name: \"Dashboard\",\n component: Dashboard,\n },\n\n {\n path: \"/plugin/:plugin\",\n name: \"Plugin\",\n component: Plugin,\n },\n\n {\n path: \"/login\",\n name: \"Login\",\n component: Login,\n },\n\n {\n path: \"/register\",\n name: \"Register\",\n component: Register,\n },\n\n {\n path: \"/:catchAll(.*)\",\n component: NotFound,\n },\n];\n\nconst router = createRouter({\n history: createWebHistory(),\n routes,\n});\n\nexport default router;\n","/* eslint-disable no-console */\n\nimport { register } from 'register-service-worker'\n\nif (process.env.NODE_ENV === 'production') {\n register(`${process.env.BASE_URL}service-worker.js`, {\n ready () {\n console.log(\n 'App is being served from cache by a service worker.\\n' +\n 'For more details, visit https://goo.gl/AFskqB'\n )\n },\n registered () {\n console.log('Service worker has been registered.')\n },\n cached () {\n console.log('Content has been cached for offline use.')\n },\n updatefound () {\n console.log('New content is downloading.')\n },\n updated () {\n console.log('New content is available; please refresh.')\n },\n offline () {\n console.log('No internet connection found. App is running in offline mode.')\n },\n error (error) {\n console.error('Error during service worker registration:', error)\n }\n })\n}\n","import { createApp } from 'vue'\nimport App from '@/App.vue'\nimport router from '@/router'\nimport './registerServiceWorker'\n\nconst app = createApp(App)\napp.config.globalProperties._config = window.config\napp.use(router).mount('#app')\n","\n\n","import script from \"./Api.vue?vue&type=script&lang=js\"\nexport * from \"./Api.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Cookies.vue?vue&type=script&lang=js\"\nexport * from \"./Cookies.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./DateTime.vue?vue&type=script&lang=js\"\nexport * from \"./DateTime.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Events.vue?vue&type=script&lang=js\"\nexport * from \"./Events.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Notification.vue?vue&type=script&lang=js\"\nexport * from \"./Notification.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Screen.vue?vue&type=script&lang=js\"\nexport * from \"./Screen.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Text.vue?vue&type=script&lang=js\"\nexport * from \"./Text.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Types.vue?vue&type=script&lang=js\"\nexport * from \"./Types.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Utils.vue?vue&type=script&lang=js\"\nexport * from \"./Utils.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n \n\n\n \n\n\n\n","import { render } from \"./Loading.vue?vue&type=template&id=4d9c871b&scoped=true\"\nconst script = {}\n\nimport \"./Loading.vue?vue&type=style&index=0&id=4d9c871b&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4d9c871b\"]])\n\nexport default __exports__","\n\n \n\n\n\n\n\n\n\n\n","import { render } from \"./Modal.vue?vue&type=template&id=18f9fdba&scoped=true\"\nimport script from \"./Modal.vue?vue&type=script&lang=js\"\nexport * from \"./Modal.vue?vue&type=script&lang=js\"\n\nimport \"./Modal.vue?vue&type=style&index=0&id=18f9fdba&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-18f9fdba\"]])\n\nexport default __exports__","\n\n\n\n\n\n \n \n\n\n\n\n \n \n\n\n\n\n\n","import { render } from \"./ConfirmDialog.vue?vue&type=template&id=db648f4c&scoped=true\"\nimport script from \"./ConfirmDialog.vue?vue&type=script&lang=js\"\nexport * from \"./ConfirmDialog.vue?vue&type=script&lang=js\"\n\nimport \"./ConfirmDialog.vue?vue&type=style&index=0&id=db648f4c&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-db648f4c\"]])\n\nexport default __exports__","\n\n\n\n \n\n \n \n\n\n\n\n\n\n\n","import { render } from \"./Dropdown.vue?vue&type=template&id=5b964c03&scoped=true\"\nimport script from \"./Dropdown.vue?vue&type=script&lang=js\"\nexport * from \"./Dropdown.vue?vue&type=script&lang=js\"\n\nimport \"./Dropdown.vue?vue&type=style&index=0&id=5b964c03&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5b964c03\"]])\n\nexport default __exports__","\n\n\n\n \n\n\n\n\n\n\n","import { render } from \"./DropdownItem.vue?vue&type=template&id=282d16b4&scoped=true\"\nimport script from \"./DropdownItem.vue?vue&type=script&lang=js\"\nexport * from \"./DropdownItem.vue?vue&type=script&lang=js\"\n\nimport \"./DropdownItem.vue?vue&type=style&index=0&id=282d16b4&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-282d16b4\"]])\n\nexport default __exports__","\n\n\n \n\n \n \n \n\n\n\n\n\n\n","import { render } from \"./Icon.vue?vue&type=template&id=706a3bd1&scoped=true\"\nimport script from \"./Icon.vue?vue&type=script&lang=js\"\nexport * from \"./Icon.vue?vue&type=script&lang=js\"\n\nimport \"./Icon.vue?vue&type=style&index=0&id=706a3bd1&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-706a3bd1\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n\n","\n\n \n\n \n \n\n\n\n\n\n\n","import { render } from \"./Token.vue?vue&type=template&id=2d3c7d78\"\nimport script from \"./Token.vue?vue&type=script&lang=js\"\nexport * from \"./Token.vue?vue&type=script&lang=js\"\n\nimport \"./Token.vue?vue&type=style&index=0&id=2d3c7d78&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n \n \n\n\n \n\n \n\n\n \n\n\n \n\n \n\n\n\n\n\n\n\n Platypush provides two types of tokens:\n\n
\n
\n \n\n- \n JWT tokens are bearer-only, and they contain encrypted\n authentication information.
\n\n
\n They can be used as permanent or time-based tokens to\n authenticate with the Platypush API.\n- \n Session tokens are randomly generated tokens stored on the\n application database. A session token generated in this session\n will expire when you log out of it.\n
\nGenerate a JWT authentication token that can be used for API calls to the
/execute
endpoint.
\nYou can include the token in your requests in any of the following ways:
\n\n\n
\n\n- Specify it on the
\nAuthorization: Bearer
header;- Specify it on the
\nX-Token
header;- \n Specify it as a URL parameter:
\nhttp://site:8008/execute?token=...
\n for a JWT token and...?session_token=...
for a\n session token;\n- Specify it on the body of your JSON request:\n
\n{\"type\":\"request\", \"action\", \"...\", \"token\":\"...\"}
for\n a JWT token, or\"session_token\"
for a session token.\nConfirm your credentials in order to generate a new JWT token.
\n\n Show session token will instead show the token cookie associated\n to the current session.\n
\n\n \n\n\n\n \n \n \n\n\n \n \n\n\n\n\n\n\n\n\n","\n\n
\n\n- \n \n
\n\n\n\n \n\n \n \n\n \n Are you sure that you want to remove the user {{ selectedUser }}?\n \n\n \n\n\n\n\n\n\n","import { render } from \"./FloatingButton.vue?vue&type=template&id=133e57f8&scoped=true\"\nimport script from \"./FloatingButton.vue?vue&type=script&lang=js\"\nexport * from \"./FloatingButton.vue?vue&type=script&lang=js\"\n\nimport \"./FloatingButton.vue?vue&type=style&index=0&id=133e57f8&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-133e57f8\"]])\n\nexport default __exports__","import { render } from \"./Users.vue?vue&type=template&id=510035f2&scoped=true\"\nimport script from \"./Users.vue?vue&type=script&lang=js\"\nexport * from \"./Users.vue?vue&type=script&lang=js\"\n\nimport \"./Users.vue?vue&type=style&index=0&id=510035f2&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-510035f2\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=abaea204\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=abaea204&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","var map = {\n\t\"./Camera/Index\": [\n\t\t5324,\n\t\t8039,\n\t\t5324\n\t],\n\t\"./CameraAndroidIpcam/Index\": [\n\t\t5794,\n\t\t5794\n\t],\n\t\"./CameraCv/Index\": [\n\t\t6148,\n\t\t8039,\n\t\t6148\n\t],\n\t\"./CameraFfmpeg/Index\": [\n\t\t9334,\n\t\t8039,\n\t\t9334\n\t],\n\t\"./CameraGstreamer/Index\": [\n\t\t813,\n\t\t8039,\n\t\t813\n\t],\n\t\"./CameraIrMlx90640/Index\": [\n\t\t7381,\n\t\t8039,\n\t\t7381\n\t],\n\t\"./CameraPi/Index\": [\n\t\t8895,\n\t\t8039,\n\t\t8895\n\t],\n\t\"./Entities/Index\": [\n\t\t6217,\n\t\t4558\n\t],\n\t\"./Execute/Index\": [\n\t\t7510,\n\t\t7510\n\t],\n\t\"./Light/Index\": [\n\t\t7184,\n\t\t2471,\n\t\t5040,\n\t\t7184\n\t],\n\t\"./LightHue/Index\": [\n\t\t2976,\n\t\t2471,\n\t\t5040,\n\t\t7184,\n\t\t2976\n\t],\n\t\"./Media/Index\": [\n\t\t7143,\n\t\t2471,\n\t\t4186,\n\t\t8053,\n\t\t7143\n\t],\n\t\"./MediaMplayer/Index\": [\n\t\t3518,\n\t\t2471,\n\t\t4186,\n\t\t8053,\n\t\t7143,\n\t\t3518\n\t],\n\t\"./MediaMpv/Index\": [\n\t\t4765,\n\t\t2471,\n\t\t4186,\n\t\t8053,\n\t\t7143,\n\t\t4765\n\t],\n\t\"./MediaOmxplayer/Index\": [\n\t\t7819,\n\t\t2471,\n\t\t4186,\n\t\t8053,\n\t\t7143,\n\t\t7819\n\t],\n\t\"./MediaVlc/Index\": [\n\t\t2614,\n\t\t2471,\n\t\t4186,\n\t\t8053,\n\t\t7143,\n\t\t2614\n\t],\n\t\"./Music/Index\": [\n\t\t7473,\n\t\t2471,\n\t\t4186,\n\t\t7473\n\t],\n\t\"./MusicMpd/Index\": [\n\t\t1309,\n\t\t2471,\n\t\t4186,\n\t\t7473,\n\t\t1309\n\t],\n\t\"./MusicSnapcast/Index\": [\n\t\t7126,\n\t\t2471,\n\t\t5040,\n\t\t7126\n\t],\n\t\"./MusicSpotify/Index\": [\n\t\t2068,\n\t\t2471,\n\t\t4186,\n\t\t7473,\n\t\t2068\n\t],\n\t\"./Rtorrent/Index\": [\n\t\t2183,\n\t\t8053,\n\t\t3664,\n\t\t2183\n\t],\n\t\"./Settings/Index\": [\n\t\t2431\n\t],\n\t\"./Sound/Index\": [\n\t\t746,\n\t\t746\n\t],\n\t\"./Torrent/Index\": [\n\t\t8784,\n\t\t8053,\n\t\t3664,\n\t\t8784\n\t],\n\t\"./Tts/Index\": [\n\t\t3732,\n\t\t8069,\n\t\t3732\n\t],\n\t\"./TtsGoogle/Index\": [\n\t\t2853,\n\t\t8069,\n\t\t2853\n\t],\n\t\"./TvSamsungWs/Index\": [\n\t\t4589,\n\t\t4589\n\t],\n\t\"./ZigbeeMqtt/Index\": [\n\t\t1259,\n\t\t2471,\n\t\t5040,\n\t\t1259\n\t],\n\t\"./Zwave/Index\": [\n\t\t2732,\n\t\t2471,\n\t\t5040,\n\t\t7880,\n\t\t2732\n\t],\n\t\"./ZwaveMqtt/Index\": [\n\t\t1088,\n\t\t2471,\n\t\t5040,\n\t\t7880,\n\t\t1088\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 3379;\nmodule.exports = webpackAsyncContext;","var map = {\n\t\"./Calendar/Index\": [\n\t\t5638,\n\t\t5638\n\t],\n\t\"./Camera/Index\": [\n\t\t446,\n\t\t446\n\t],\n\t\"./Component/Index\": [\n\t\t1449,\n\t\t2471,\n\t\t5040,\n\t\t1449\n\t],\n\t\"./DateTime/Index\": [\n\t\t4619,\n\t\t1391,\n\t\t4619\n\t],\n\t\"./DateTimeWeather/Index\": [\n\t\t9962,\n\t\t3594,\n\t\t1391,\n\t\t9962\n\t],\n\t\"./ImageCarousel/Index\": [\n\t\t306,\n\t\t3594,\n\t\t1391,\n\t\t306\n\t],\n\t\"./Music/Index\": [\n\t\t311,\n\t\t311\n\t],\n\t\"./Plugin/Index\": [\n\t\t8179,\n\t\t8179\n\t],\n\t\"./RssNews/Index\": [\n\t\t6523,\n\t\t6523\n\t],\n\t\"./Weather/Index\": [\n\t\t3594,\n\t\t3594\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 6725;\nmodule.exports = webpackAsyncContext;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","var getProto = Object.getPrototypeOf ? function(obj) { return Object.getPrototypeOf(obj); } : function(obj) { return obj.__proto__; };\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });\n\t}\n\tdef['default'] = function() { return value; };\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"static/js/\" + chunkId + \".\" + {\"65\":\"ae7df477\",\"169\":\"02caaaba\",\"306\":\"e00c1cf9\",\"311\":\"d1d1d9f4\",\"446\":\"edd4ad9d\",\"729\":\"0745f633\",\"746\":\"f937ce7f\",\"813\":\"52ce2ced\",\"984\":\"b15beee9\",\"1088\":\"22c3f8aa\",\"1259\":\"c8eb36de\",\"1309\":\"1669a718\",\"1391\":\"a76844c2\",\"1449\":\"a26dafc3\",\"2068\":\"084d3505\",\"2183\":\"8cf7b0b0\",\"2217\":\"9116c837\",\"2460\":\"6a8718df\",\"2471\":\"da49c64a\",\"2614\":\"b9ec352d\",\"2732\":\"34e0816d\",\"2853\":\"9bbaddde\",\"2893\":\"55e3bcf7\",\"2976\":\"839efca8\",\"3368\":\"eda50aa5\",\"3369\":\"f62097be\",\"3518\":\"8990808d\",\"3559\":\"c2592048\",\"3594\":\"4984f1e9\",\"3664\":\"a734c169\",\"3732\":\"9e00a586\",\"3798\":\"aa58fe43\",\"3826\":\"cc264dd1\",\"3835\":\"667ba911\",\"4186\":\"15faf5c9\",\"4558\":\"a23333b6\",\"4589\":\"c27e4a5c\",\"4619\":\"3ed6c4ba\",\"4765\":\"87ca22d5\",\"5040\":\"f02b705d\",\"5207\":\"7f241e21\",\"5324\":\"cc121a10\",\"5329\":\"114966f2\",\"5638\":\"2cef8bcb\",\"5794\":\"65cb5433\",\"6148\":\"ec977afe\",\"6362\":\"c4de72d9\",\"6523\":\"2bc2fbed\",\"6561\":\"fc5ef77b\",\"7126\":\"7b1232fe\",\"7143\":\"43e8ea32\",\"7184\":\"a30de42e\",\"7381\":\"73678984\",\"7473\":\"7a6bfe71\",\"7510\":\"51d54bc4\",\"7523\":\"5fed230e\",\"7590\":\"ebe62444\",\"7819\":\"0006d776\",\"7880\":\"ceb6e400\",\"8039\":\"951792f1\",\"8053\":\"22e4ed09\",\"8069\":\"51c1e8b1\",\"8179\":\"00e2fca6\",\"8391\":\"16e30eb1\",\"8621\":\"33df9b41\",\"8769\":\"02eed3a9\",\"8784\":\"fce7d104\",\"8825\":\"18ef8a1e\",\"8895\":\"a6247bc4\",\"9334\":\"fb17318e\",\"9624\":\"e590eb03\",\"9962\":\"80cb7a7b\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"static/css/\" + chunkId + \".\" + {\"65\":\"ae3723d7\",\"169\":\"10cdb721\",\"306\":\"fbbaf2b7\",\"311\":\"504d6c0b\",\"446\":\"ed463bd2\",\"729\":\"ea3fa7cb\",\"746\":\"25e7d5ff\",\"984\":\"ef565a73\",\"1259\":\"72a7d113\",\"1391\":\"1b22f65c\",\"1449\":\"8f1b2b15\",\"2217\":\"95911650\",\"2460\":\"fd9ed6f2\",\"2471\":\"a6a32303\",\"2893\":\"518b169b\",\"2976\":\"234438b4\",\"3368\":\"1f06089f\",\"3369\":\"9c9d5a57\",\"3559\":\"f1dc7909\",\"3594\":\"3a165bb4\",\"3664\":\"c92d9d38\",\"3798\":\"78925ff5\",\"3826\":\"180d2070\",\"3835\":\"a07dd4e2\",\"4186\":\"b6585c35\",\"4558\":\"db219e15\",\"4589\":\"6d3a8446\",\"5040\":\"fcf11255\",\"5207\":\"950597e1\",\"5329\":\"74d3b3a3\",\"5638\":\"25d1c562\",\"5794\":\"49b1f262\",\"6523\":\"4bf56b11\",\"6561\":\"208265a1\",\"7126\":\"a0725ecc\",\"7143\":\"539db457\",\"7184\":\"6ad0f775\",\"7473\":\"16d1dc39\",\"7510\":\"1112d8b7\",\"7523\":\"f0111959\",\"7590\":\"34698020\",\"7880\":\"a114eea0\",\"8039\":\"22b025de\",\"8053\":\"2e68c420\",\"8069\":\"58663e3e\",\"8179\":\"8db287b9\",\"8391\":\"bfeafcb0\",\"8621\":\"1460504e\",\"8769\":\"f9545a14\",\"8825\":\"4b3e6b00\",\"9624\":\"9f2b9c3a\",\"9962\":\"bec1b050\"}[chunkId] + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"platypush:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"/\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + realHref + \")\");\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t2143: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"65\":1,\"169\":1,\"306\":1,\"311\":1,\"446\":1,\"729\":1,\"746\":1,\"984\":1,\"1259\":1,\"1391\":1,\"1449\":1,\"2217\":1,\"2460\":1,\"2471\":1,\"2893\":1,\"2976\":1,\"3368\":1,\"3369\":1,\"3559\":1,\"3594\":1,\"3664\":1,\"3798\":1,\"3826\":1,\"3835\":1,\"4186\":1,\"4558\":1,\"4589\":1,\"5040\":1,\"5207\":1,\"5329\":1,\"5638\":1,\"5794\":1,\"6523\":1,\"6561\":1,\"7126\":1,\"7143\":1,\"7184\":1,\"7473\":1,\"7510\":1,\"7523\":1,\"7590\":1,\"7880\":1,\"8039\":1,\"8053\":1,\"8069\":1,\"8179\":1,\"8391\":1,\"8621\":1,\"8769\":1,\"8825\":1,\"9624\":1,\"9962\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t2143: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(!/^(80(39|53|69)|(139|247|656)1|3826|5040)$/.test(chunkId)) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkplatypush\"] = self[\"webpackChunkplatypush\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [4998], function() { return __webpack_require__(1789); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["bus","mitt","publishEntity","entity","emit","onEntity","callback","on","publishNotification","notification","onNotification","$options","hasWebsocket","_createBlock","_component_Events","ref","_createVNode","_component_Notifications","hasAssistant","_component_VoiceAssistant","hasPushbullet","_component_Pushbullet","hasNtfy","_component_Ntfy","_component_ConfirmDialog","onInput","installPWA","_component_router_view","class","_createElementBlock","_hoisted_1","_Fragment","_renderList","_ctx","notifications","id","index","_component_Notification","key","text","html","title","link","image","warning","error","onClicked","destroy","_normalizeClass","$props","onClick","_cache","args","clicked","_toDisplayString","_createElementVNode","_hoisted_2","_hoisted_3","_hoisted_4","src","alt","icon","style","_normalizeStyle","color","iconClass","_hoisted_6","_hoisted_7","innerHTML","name","props","methods","this","window","open","$emit","__exports__","components","Notification","duration","type","Number","default","data","timeouts","create","parseInt","setTimeout","bind","ws","initialized","pending","opened","timeout","reconnectMsecs","minReconnectMsecs","maxReconnectMsecs","handlers","handlerNameToEventTypes","onWebsocketTimeout","console","log","Math","min","close","onClose","onMessage","event","JSON","parse","e","warn","debug","push","Object","values","handler","Array","Function","onOpen","onclose","clearTimeout","undefined","onError","code","reason","init","protocol","location","url","host","WebSocket","err","onmessage","onopen","onerror","subscribe","msg","events","length","handlerName","unsubscribe","keys","created","_hoisted_9","_component_Modal","$data","state","alerting","responding","speechRecognized","_hoisted_5","listening","_hoisted_8","_hoisted_10","_hoisted_11","phrase","_hoisted_13","responseText","Modal","mixins","Utils","hideTimeout","reset","conversationStart","$refs","assistantModal","show","conversationEnd","self","response","response_text","alertOn","alertOff","registerHandlers","mounted","notify","message","push_type","body","ConfirmDialog","Pushbullet","Ntfy","Notifications","Events","VoiceAssistant","config","userAuthenticated","pwaInstallEvent","computed","initConfig","request","prompt","pwaDialog","beforeMount","getCookie","addEventListener","preventDefault","setCookie","expires","Date","getTime","render","loading","_component_Loading","classes","rows","row","i","_component_Row","widgets","widget","j","_KeepAlive","_component_Widget","_resolveDynamicComponent","component","_normalizeProps","_guardReactiveProps","getWidgetProps","_renderSlot","$slots","String","required","split","concat","Widget","Loading","Row","refreshSeconds","parseTemplate","tmpl","node","DOMParser","parseFromString","childNodes","attributes","nodeValue","getElementsByTagName","map","children","el","shallowRef","defineAsyncComponent","nodeName","attrs","reduce","obj","content","refreshDashboard","$route","params","template","notifyError","setInterval","toFixed","method","placeholder","_register","value","register","Boolean","parseBoolean","_component_Login","Login","_component_Nav","panels","selectedPanel","selectedConfigPanel","hostname","onSelect","$event","onSelectConfig","_component_Settings","panel","hidden","href","collapsed","onItemClick","configSections","selected","imgUrl","panelNames","_hoisted_16","icons","_hoisted_18","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","emits","homeIdx","indexOf","slice","sort","collapsedDefault","isMobile","isTablet","Settings","Nav","plugins","backends","procedures","initSelectedPanel","match","hash","plugin","initPanels","entries","forEach","async","componentName","token","toUpperCase","join","comp","pluginName","parseConfig","Promise","all","initializeDefaultViews","execute","entities","initPanel","toString","routes","path","Panel","Dashboard","Plugin","Register","NotFound","router","createRouter","history","createWebHistory","ready","registered","cached","updatefound","updated","offline","app","createApp","App","globalProperties","_config","use","mount","showError","opts","resolve","reject","axios","then","errors","output","catch","action","getCookies","document","cookie","item","k","v","toISOString","deleteCookie","formatDate","date","year","toDateString","substring","formatTime","seconds","toTimeString","formatDateTime","_eventsReady","$root","subFunc","generateId","unwatch","$watch","newVal","btoa","fromCharCode","round","random","notifyWarning","matchMedia","matches","isDesktop","capitalize","charAt","prettify","t","toLowerCase","convertSize","unit","units","u","convertTime","time","ret","parseFloat","d","h","m","s","objectsEqual","a","b","p","Api","Cookies","DateTime","Screen","Text","Types","n","script","isVisible","zIndex","$attrs","width","height","stopPropagation","onModalClose","visible","level","timeoutId","prevVisible","hide","toggle","onKeyUp","visibleHndl","unmounted","removeEventListener","maxZIndex","getComputedStyle","$el","outermostModals","modal","querySelectorAll","onSubmit","_withModifiers","onConfirm","onTouch","confirmText","cancelText","items","keepOpenOnItemClick","documentClickHndl","element","target","dropdown","parentElement","left","top","button","getBoundingClientRect","innerWidth","clientWidth","innerHeight","clientHeight","itemClass","iconUrl","_component_Icon","Icon","disabled","$parent","className","currentUser","_component_Users","sessionToken","_component_Token","onFocus","onTokenSelect","generateToken","username","_hoisted_14","_hoisted_15","sessionTokenModal","password","validityDays","expiry_days","tokenModal","select","execCommand","createUser","commandRunning","changePassword","selectedUser","users","user","user_id","_component_Dropdown","_component_DropdownItem","showChangePasswordModal","deleteUserDialog","_component_FloatingButton","showAddUserModal","deleteUser","Dropdown","DropdownItem","FloatingButton","refresh","form","addUserForm","input","confirm_password","session_token","addUserModal","changePasswordForm","new_password","confirm_new_password","success","old_password","changePasswordModal","$nextTick","focus","Users","Token","webpackAsyncContext","req","__webpack_require__","o","Error","ids","module","exports","__webpack_module_cache__","moduleId","cachedModule","__webpack_modules__","call","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","every","splice","r","getter","__esModule","leafPrototypes","getProto","getPrototypeOf","__proto__","mode","ns","def","current","getOwnPropertyNames","definition","defineProperty","enumerable","get","f","chunkId","promises","miniCssF","g","globalThis","prop","prototype","hasOwnProperty","inProgress","dataWebpackPrefix","l","done","needAttach","scripts","getAttribute","createElement","charset","nc","setAttribute","onScriptComplete","prev","onload","doneFns","parentNode","removeChild","head","appendChild","Symbol","toStringTag","createStylesheet","fullhref","oldTag","linkTag","rel","onLinkComplete","errorType","realHref","insertBefore","nextSibling","findStylesheet","existingLinkTags","tag","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","installedChunks","installedChunkData","test","promise","loadingEnded","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/app.78bd900d.js b/platypush/backend/http/webapp/dist/static/js/app.78bd900d.js new file mode 100644 index 000000000..d7bfbf33b --- /dev/null +++ b/platypush/backend/http/webapp/dist/static/js/app.78bd900d.js @@ -0,0 +1,2 @@ +(function(){var e={5250:function(e,t,s){"use strict";s.d(t,{$:function(){return i}});var n=s(9652);const i=(0,n.Z)();i.publishEntity=e=>{i.emit("entity-update",e)},i.onEntity=e=>{i.on("entity-update",e)},i.publishNotification=e=>{i.emit("notification-create",e)},i.onNotification=e=>{i.on("notification-create",e)}},1789:function(e,t,s){"use strict";var n=s(9963),i=s(6252);function o(e,t,s,n,o,a){const r=(0,i.up)("Events"),l=(0,i.up)("Notifications"),c=(0,i.up)("VoiceAssistant"),d=(0,i.up)("Pushbullet"),u=(0,i.up)("Ntfy"),p=(0,i.up)("ConfirmDialog"),h=(0,i.up)("router-view");return(0,i.wg)(),(0,i.iD)(i.HY,null,[a.hasWebsocket?((0,i.wg)(),(0,i.j4)(r,{key:0,ref:"events"},null,512)):(0,i.kq)("",!0),(0,i.Wm)(l,{ref:"notifications"},null,512),a.hasAssistant?((0,i.wg)(),(0,i.j4)(c,{key:1,ref:"voice-assistant"},null,512)):(0,i.kq)("",!0),a.hasPushbullet?((0,i.wg)(),(0,i.j4)(d,{key:2,ref:"pushbullet"},null,512)):(0,i.kq)("",!0),a.hasNtfy?((0,i.wg)(),(0,i.j4)(u,{key:3,ref:"ntfy"},null,512)):(0,i.kq)("",!0),(0,i.Wm)(p,{ref:"pwaDialog",onInput:a.installPWA},{default:(0,i.w5)((()=>[(0,i.Uk)(" Would you like to install this application locally? ")])),_:1},8,["onInput"]),(0,i.Wm)(h)],64)}var a=s(6936);const r={class:"notifications"};function l(e,t,s,n,o,a){const l=(0,i.up)("Notification");return(0,i.wg)(),(0,i.iD)("div",r,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.notifications,((e,t,s)=>((0,i.wg)(),(0,i.j4)(l,{key:s,id:t,text:e.text,html:e.html,title:e.title,link:e.link,image:e.image,warning:e.warning,error:e.error,onClicked:a.destroy},null,8,["id","text","html","title","link","image","warning","error","onClicked"])))),128))])}var c=s(3577);const d=["textContent"],u={class:"body"},p={key:0,class:"image col-3"},h={class:"row"},f=["src"],m={key:3,class:"fa fa-exclamation"},g={key:4,class:"fa fa-times"},b=["textContent"],y=["innerHTML"],v=["textContent"],w=["innerHTML"];function k(e,t,s,n,o,a){return(0,i.wg)(),(0,i.iD)("div",{class:(0,c.C_)(["notification fade-in",{warning:s.warning,error:s.error}]),onClick:t[0]||(t[0]=(...e)=>a.clicked&&a.clicked(...e))},[s.title?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"title",textContent:(0,c.zw)(s.title)},null,8,d)):(0,i.kq)("",!0),(0,i._)("div",u,[s.image||s.warning||s.error?((0,i.wg)(),(0,i.iD)("div",p,[(0,i._)("div",h,[s.image&&s.image.src?((0,i.wg)(),(0,i.iD)("img",{key:0,src:s.image.src,alt:""},null,8,f)):s.image&&s.image.icon?((0,i.wg)(),(0,i.iD)("i",{key:1,class:(0,c.C_)(["fa","fa-"+s.image.icon]),style:(0,c.j5)(s.image.color?"--color: "+s.image.color:"")},null,6)):s.image&&s.image.iconClass?((0,i.wg)(),(0,i.iD)("i",{key:2,class:(0,c.C_)(s.image.iconClass),style:(0,c.j5)(s.image.color?"--color: "+s.image.color:"")},null,6)):s.warning?((0,i.wg)(),(0,i.iD)("i",m)):s.error?((0,i.wg)(),(0,i.iD)("i",g)):(0,i.kq)("",!0)])])):(0,i.kq)("",!0),s.text&&s.image?((0,i.wg)(),(0,i.iD)("div",{key:1,class:"text col-9",textContent:(0,c.zw)(s.text)},null,8,b)):(0,i.kq)("",!0),s.html&&s.image?((0,i.wg)(),(0,i.iD)("div",{key:2,class:"text col-9",innerHTML:s.html},null,8,y)):(0,i.kq)("",!0),s.text&&!s.image?((0,i.wg)(),(0,i.iD)("div",{key:3,class:"text row horizontal-center",textContent:(0,c.zw)(s.text)},null,8,v)):(0,i.kq)("",!0),s.html&&!s.image?((0,i.wg)(),(0,i.iD)("div",{key:4,class:"text row horizontal-center",innerHTML:s.html},null,8,w)):(0,i.kq)("",!0)])],2)}var _={name:"Notification",props:["id","text","html","title","image","link","error","warning"],methods:{clicked(){this.link&&window.open(this.link,"_blank"),this.$emit("clicked",this.id)}}},C=s(3744);const x=(0,C.Z)(_,[["render",k],["__scopeId","data-v-7646705e"]]);var D=x,I={name:"Notifications",components:{Notification:D},props:{duration:{type:Number,default:1e4}},data:function(){return{index:0,notifications:{},timeouts:{}}},methods:{create:function(e){const t=this.index++;this.notifications[t]=e,null==e.duration&&(e.duration=this.duration);const s=e.duration?parseInt(e.duration):0;s&&(this.timeouts[t]=setTimeout(this.destroy.bind(null,t),s))},destroy:function(e){delete this.notifications[e],delete this.timeouts[e]}}};const T=(0,C.Z)(I,[["render",l],["__scopeId","data-v-6dc8bebc"]]);var S=T,M=s(3956);function P(e,t,s,n,o,a){return(0,i.wg)(),(0,i.iD)("div")}s(7658);var $=s(5250),U={name:"Events",data(){return{ws:null,initialized:!1,pending:!1,opened:!1,timeout:null,reconnectMsecs:1e3,minReconnectMsecs:1e3,maxReconnectMsecs:3e4,handlers:{},handlerNameToEventTypes:{}}},methods:{onWebsocketTimeout(){console.log("Websocket reconnection timed out, retrying"),this.reconnectMsecs=Math.min(2*this.reconnectMsecs,this.maxReconnectMsecs),this.pending=!1,this.ws&&this.ws.close(),this.onClose()},onMessage(e){const t=[];if(e=e.data,"string"===typeof e)try{e=JSON.parse(e)}catch(s){console.warn("Received invalid non-JSON event"),console.warn(e)}if(console.debug(e),"event"===e.type){null in this.handlers&&t.push(this.handlers[null]),e.args.type in this.handlers&&t.push(...Object.values(this.handlers[e.args.type]));for(let s of t)s&&(s instanceof Array?s=s[0]:s instanceof Object&&!(s instanceof Function)&&(s=Object.values(s)[0]),s(e.args))}},onOpen(){this.opened&&(console.log("There's already an opened websocket connection, closing the newly opened one"),this.ws&&(this.ws.onclose=()=>{},this.ws.close())),console.log("Websocket connection successful"),this.opened=!0,this.reconnectMsecs=this.minReconnectMsecs,this.pending&&(this.pending=!1),this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)},onError(e){console.error("Websocket error"),console.error(e)},onClose(e){e&&console.log(`Websocket closed - code: ${e.code} - reason: ${e.reason}. Retrying in ${this.reconnectMsecs/1e3}s`),this.opened=!1,this.pending||(this.pending=!0,this.init())},init(){try{const e="https:"===location.protocol?"wss":"ws",t=`${e}://${location.host}/ws/events`;this.ws=new WebSocket(t)}catch(e){return console.error("Websocket initialization error"),void console.error(e)}this.pending=!0,this.timeout=setTimeout(this.onWebsocketTimeout,this.reconnectMsecs),this.ws.onmessage=this.onMessage,this.ws.onopen=this.onOpen,this.ws.onerror=this.onError,this.ws.onclose=this.onClose,this.initialized=!0},subscribe(e){const t=e.handler,s=e.events.length?e.events:[null],n=e.handlerName;for(const i of s)i in this.handlers||(this.handlers[i]={}),n in this.handlerNameToEventTypes||(this.handlerNameToEventTypes[n]=s),this.handlers[i][n]=t;return()=>{this.unsubscribe(n)}},unsubscribe(e){const t=this.handlerNameToEventTypes[e];if(t){for(const s of t)this.handlers[s]?.[e]&&(delete this.handlers[s][e],Object.keys(this.handlers[s]).length||delete this.handlers[s]);delete this.handlerNameToEventTypes[e]}}},created(){$.$.on("subscribe",this.subscribe),$.$.on("unsubscribe",this.unsubscribe),this.init()}};const q=(0,C.Z)(U,[["render",P]]);var N=q;const j={class:"assistant-modal"},O={class:"icon"},E={key:0,class:"fa fa-bell"},Z={key:1,class:"fa fa-volume-up"},z={key:2,class:"fa fa-comment-dots"},W={key:3,class:"fa fa-microphone"},R={class:"text"},L={key:0,class:"listening"},A=(0,i._)("span",null,"Assistant listening",-1),F=[A],V={key:1,class:"speech-recognized"},H=["textContent"],B={key:2,class:"responding"},K=["textContent"];function Y(e,t,s,n,o,a){const r=(0,i.up)("Modal");return(0,i.wg)(),(0,i.iD)("div",j,[(0,i.Wm)(r,{ref:"assistantModal"},{default:(0,i.w5)((()=>[(0,i._)("div",O,[o.state.alerting?((0,i.wg)(),(0,i.iD)("i",E)):o.state.responding?((0,i.wg)(),(0,i.iD)("i",Z)):o.state.speechRecognized?((0,i.wg)(),(0,i.iD)("i",z)):((0,i.wg)(),(0,i.iD)("i",W))]),(0,i._)("div",R,[o.state.listening?((0,i.wg)(),(0,i.iD)("div",L,F)):o.state.speechRecognized?((0,i.wg)(),(0,i.iD)("div",V,[(0,i._)("span",{textContent:(0,c.zw)(o.phrase)},null,8,H)])):o.state.responding?((0,i.wg)(),(0,i.iD)("div",B,[(0,i._)("span",{textContent:(0,c.zw)(o.responseText)},null,8,K)])):(0,i.kq)("",!0)])])),_:1},512)])}var J=s(9417),G={name:"VoiceAssistant",components:{Modal:J.Z},mixins:[M.Z],data(){return{responseText:"",phrase:"",hideTimeout:void 0,state:{listening:!1,speechRecognized:!1,responding:!1,alerting:!1}}},methods:{reset(){this.state.listening=!1,this.state.speechRecognized=!1,this.state.responding=!1,this.state.alerting=!1,this.phrase="",this.responseText=""},conversationStart(){this.reset(),this.state.listening=!0,this.$refs.assistantModal.show(),this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=void 0)},conversationEnd(){const e=this;this.hideTimeout=setTimeout((()=>{this.reset(),e.$refs.assistantModal.close(),e.hideTimeout=void 0}),4e3)},speechRecognized(e){this.reset(),this.state.speechRecognized=!0,this.phrase=e.phrase,this.$refs.assistantModal.show()},response(e){this.reset(),this.state.responding=!0,this.responseText=e.response_text,this.$refs.assistantModal.show()},alertOn(){this.reset(),this.state.alerting=!0,this.$refs.assistantModal.show()},alertOff(){this.reset(),this.state.alerting=!1,this.$refs.assistantModal.close()},registerHandlers(){this.subscribe(this.conversationStart,null,"platypush.message.event.assistant.ConversationStartEvent"),this.subscribe(this.alertOn,null,"platypush.message.event.assistant.AlertStartedEvent"),this.subscribe(this.alertOff,null,"platypush.message.event.assistant.AlertEndEvent"),this.subscribe(this.speechRecognized,null,"platypush.message.event.assistant.SpeechRecognizedEvent"),this.subscribe(this.response,null,"platypush.message.event.assistant.ResponseEvent"),this.subscribe(this.conversationEnd,null,"platypush.message.event.assistant.ConversationEndEvent","platypush.message.event.assistant.NoResponseEvent","platypush.message.event.assistant.ConversationTimeoutEvent")}},mounted(){this.registerHandlers()}};const X=(0,C.Z)(G,[["render",Y]]);var Q=X;function ee(e,t,s,n,o,a){return(0,i.wg)(),(0,i.iD)("div")}var te={name:"Ntfy",mixins:[M.Z],methods:{onMessage(e){this.notify({title:e.title,text:e.message,image:{icon:"bell"}})}},mounted(){this.subscribe(this.onMessage,null,"platypush.message.event.ntfy.NotificationEvent")}};const se=(0,C.Z)(te,[["render",ee]]);var ne=se;function ie(e,t,s,n,o,a){return(0,i.wg)(),(0,i.iD)("div")}var oe={name:"Pushbullet",mixins:[M.Z],methods:{onMessage(e){"mirror"===e.push_type&&this.notify({title:e.title,text:e.body,image:{src:e.icon?"data:image/png;base64, "+e.icon:void 0,icon:e.icon?void 0:"bell"}})}},mounted(){this.subscribe(this.onMessage,null,"platypush.message.event.pushbullet.PushbulletEvent")}};const ae=(0,C.Z)(oe,[["render",ie]]);var re=ae,le={name:"App",mixins:[M.Z],components:{ConfirmDialog:a.Z,Pushbullet:re,Ntfy:ne,Notifications:S,Events:N,VoiceAssistant:Q},data(){return{config:{},userAuthenticated:!1,pwaInstallEvent:null}},computed:{hasWebsocket(){return this.userAuthenticated&&"backend.http"in this.config},hasAssistant(){return this.hasWebsocket},hasPushbullet(){return this.hasWebsocket&&("pushbullet"in this.config||"backend.pushbullet"in this.config)},hasNtfy(){return this.hasWebsocket&&"ntfy"in this.config}},methods:{onNotification(e){this.$refs.notifications.create(e)},async initConfig(){this.config=await this.request("config.get",{},6e4,!1),this.userAuthenticated=!0},installPWA(){this.pwaInstallEvent&&this.pwaInstallEvent.prompt(),this.$refs.pwaDialog.close()}},created(){this.initConfig()},beforeMount(){this.getCookie("pwa-dialog-shown")?.length||window.addEventListener("beforeinstallprompt",(e=>{e.preventDefault(),this.pwaInstallEvent=e,this.$refs.pwaDialog.show(),this.setCookie("pwa-dialog-shown","1",{expires:new Date((new Date).getTime()+31536e6)})}))},mounted(){$.$.onNotification(this.onNotification)}};const ce=(0,C.Z)(le,[["render",o]]);var de=ce,ue=s(2201);function pe(e,t,s,n,o,a){const r=(0,i.up)("Loading"),l=(0,i.up)("Widget"),d=(0,i.up)("Row");return(0,i.wg)(),(0,i.iD)(i.HY,null,[o.loading?((0,i.wg)(),(0,i.j4)(r,{key:0})):(0,i.kq)("",!0),(0,i._)("div",{id:"dashboard",class:(0,c.C_)(["col-12",a.classes]),style:(0,c.j5)(o.style)},[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(o.rows,((e,t)=>((0,i.wg)(),(0,i.j4)(d,{key:t,class:(0,c.C_)(e.class),style:(0,c.j5)(e.style)},{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.widgets,((e,t)=>((0,i.wg)(),(0,i.j4)(i.Ob,{key:t},[(0,i.Wm)(l,{style:(0,c.j5)(e.style),class:(0,c.C_)(e.class)},{default:(0,i.w5)((()=>[((0,i.wg)(),(0,i.j4)((0,i.LL)(e.component),(0,c.vs)((0,i.F4)(a.getWidgetProps(e))),null,16))])),_:2},1032,["style","class"])],1024)))),128))])),_:2},1032,["class","style"])))),128))],6)],64)}var he=s(2262),fe=s(6791);function me(e,t,s,n,o,a){return(0,i.wg)(),(0,i.iD)("div",{class:(0,c.C_)(["row",a.classes]),style:(0,c.j5)(s.style)},[(0,i.WI)(e.$slots,"default",{},void 0,!0)],6)}var ge={name:"Row",props:{class:{type:String,required:!1,default:""},style:{type:String,required:!1,default:""}},computed:{classes(){return this.class}}};const be=(0,C.Z)(ge,[["render",me],["__scopeId","data-v-1b4663f2"]]);var ye=be;function ve(e,t,s,n,o,a){return(0,i.wg)(),(0,i.iD)("div",{style:(0,c.j5)(s.style),class:(0,c.C_)(a.classes)},[(0,i.WI)(e.$slots,"default",{},void 0,!0)],6)}var we={name:"Widget",props:{style:{type:String,required:!1,default:""},class:{type:String,required:!1,default:""}},computed:{classes(){return(this.class?.length?this.class.split(" "):["col-3"]).concat(["widget","column"])}}};const ke=(0,C.Z)(we,[["render",ve],["__scopeId","data-v-5df52982"]]);var _e=ke,Ce={name:"Dashboard",mixins:[M.Z],components:{Widget:_e,Loading:fe.Z,Row:ye},props:{refreshSeconds:{type:Number,required:!1,default:0}},data(){return{rows:[],loading:!1,style:void 0,class:void 0}},computed:{classes(){return this.class}},methods:{getWidgetProps(e){const t={...e.props};return t.class&&delete t.class,t},parseTemplate(e,t){const n=(new DOMParser).parseFromString(t,"text/xml").childNodes[0],o=this;this.style=n.attributes.style?.nodeValue,this.class=n.attributes.class?.nodeValue,this.rows=[...n.getElementsByTagName("Row")].map((e=>({style:e.attributes.style?.nodeValue,class:e.attributes.class?.nodeValue,widgets:[...e.children].map((e=>{const t=(0,he.XI)((0,i.RC)((()=>s(6725)(`./${e.nodeName}/Index`)))),n=e.attributes.style?.nodeValue,a=e.attributes.class?.nodeValue,r=[...e.attributes].reduce(((e,t)=>("style"!==t.nodeName&&(e[t.nodeName]=t.nodeValue),e)),{content:e.innerHTML}),l={component:t,style:n,class:a,props:r||{}};return o.$options.components[e.nodeName]=t,l}))}))),this.loading=!1},async refreshDashboard(){this.loading=!0,this.widgets=[];const e=this.$route.params.name,t=await this.request("config.get_dashboard",{name:e});t||this.notifyError(`Dashboard ${e} not found`),this.parseTemplate(e,t)}},mounted(){if(this.refreshDashboard(),this.refreshSeconds){const e=this;setInterval((()=>{e.refreshDashboard()}),parseInt((1e3*this.refreshSeconds).toFixed(0)))}}};const xe=(0,C.Z)(Ce,[["render",pe],["__scopeId","data-v-54e0248a"]]);var De=xe;function Ie(e,t,s,n,o,a){return(0,i.wg)(),(0,i.iD)("h1",null,"Object not found")}var Te={name:"NotFound"};const Se=(0,C.Z)(Te,[["render",Ie]]);var Me=Se;const Pe=e=>((0,i.dD)("data-v-af0b14d0"),e=e(),(0,i.Cn)(),e),$e={class:"login-container"},Ue={class:"login",method:"POST"},qe=(0,i.uE)('Platypush',3),Ne={key:0,class:"row"},je=Pe((()=>(0,i._)("label",null,[(0,i._)("input",{type:"password",name:"confirm_password",placeholder:"Confirm password"})],-1))),Oe=[je],Ee={class:"row buttons"},Ze=["value"],ze=Pe((()=>(0,i._)("div",{class:"row pull-right"},[(0,i._)("label",{class:"checkbox"},[(0,i._)("input",{type:"checkbox",name:"remember"}),(0,i.Uk)(" Keep me logged in on this device ")])],-1)));function We(e,t,s,n,o,a){return(0,i.wg)(),(0,i.iD)("div",$e,[(0,i._)("form",Ue,[qe,a._register?((0,i.wg)(),(0,i.iD)("div",Ne,Oe)):(0,i.kq)("",!0),(0,i._)("div",Ee,[(0,i._)("input",{type:"submit",class:"btn btn-primary",value:a._register?"Register":"Login"},null,8,Ze)]),ze])])}var Re={name:"Login",mixins:[M.Z],props:{register:{type:Boolean,required:!1,default:!1}},computed:{_register(){return this.parseBoolean(this.register)}}};const Le=(0,C.Z)(Re,[["render",We],["__scopeId","data-v-af0b14d0"]]);var Ae=Le;function Fe(e,t,s,n,o,a){const r=(0,i.up)("Login");return(0,i.wg)(),(0,i.j4)(r,{register:!0})}var Ve={name:"Register",mixins:[Ae],components:{Login:Ae},props:{register:{type:Boolean,required:!1,default:!0}}};const He=(0,C.Z)(Ve,[["render",Fe]]);var Be=He;const Ke={key:2,class:"canvas"},Ye={class:"panel"},Je={key:3,class:"canvas"};function Ge(e,t,s,n,o,a){const r=(0,i.up)("Loading"),l=(0,i.up)("Nav"),d=(0,i.up)("Settings");return(0,i.wg)(),(0,i.iD)("main",null,[o.loading?((0,i.wg)(),(0,i.j4)(r,{key:0})):((0,i.wg)(),(0,i.j4)(l,{key:1,panels:o.components,"selected-panel":o.selectedPanel,"selected-config-panel":o.selectedConfigPanel,hostname:o.hostname,onSelect:t[0]||(t[0]=e=>o.selectedPanel=e),onSelectConfig:t[1]||(t[1]=e=>o.selectedConfigPanel=e)},null,8,["panels","selected-panel","selected-config-panel","hostname"])),"settings"===o.selectedPanel?((0,i.wg)(),(0,i.iD)("div",Ke,[(0,i._)("div",Ye,[(0,i.Wm)(d,{"selected-panel":o.selectedConfigPanel},null,8,["selected-panel"])])])):((0,i.wg)(),(0,i.iD)("div",Je,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(o.components,((e,t)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,c.C_)(["panel",{hidden:t!==o.selectedPanel}]),key:t},[t===o.selectedPanel?((0,i.wg)(),(0,i.j4)((0,i.LL)(e.component),{key:0,config:e.config,"plugin-name":t},null,8,["config","plugin-name"])):(0,i.kq)("",!0)],2)))),128))]))])}const Xe=e=>((0,i.dD)("data-v-831e98ec"),e=e(),(0,i.Cn)(),e),Qe=Xe((()=>(0,i._)("i",{class:"fas fa-bars"},null,-1))),et=["textContent"],tt={key:0,class:"plugins"},st={href:"/#"},nt=Xe((()=>(0,i._)("i",{class:"fas fa-home"},null,-1))),it={key:0,class:"name"},ot=["title","onClick"],at={href:"/#settings"},rt={class:"icon"},lt=["src"],ct={key:2,class:"fas fa-puzzle-piece"},dt=["textContent"],ut={key:1,class:"plugins"},pt=["title","onClick"],ht=["href"],ft={class:"icon"},mt=["src"],gt={key:2,class:"fas fa-puzzle-piece"},bt=["textContent"],yt={class:"footer"},vt={href:"/#settings"},wt=Xe((()=>(0,i._)("span",{class:"icon"},[(0,i._)("i",{class:"fa fa-cog"})],-1))),kt={key:0,class:"name"},_t={href:"/logout"},Ct=Xe((()=>(0,i._)("span",{class:"icon"},[(0,i._)("i",{class:"fas fa-sign-out-alt"})],-1))),xt={key:0,class:"name"};function Dt(e,t,s,n,o,a){return(0,i.wg)(),(0,i.iD)("nav",{class:(0,c.C_)({collapsed:o.collapsed})},[(0,i._)("div",{class:"toggler",onClick:t[0]||(t[0]=e=>o.collapsed=!o.collapsed)},[Qe,s.hostname?((0,i.wg)(),(0,i.iD)("span",{key:0,class:"hostname",textContent:(0,c.zw)(s.hostname)},null,8,et)):(0,i.kq)("",!0)]),"settings"===s.selectedPanel?((0,i.wg)(),(0,i.iD)("ul",tt,[(0,i._)("li",{class:"entry",title:"Home",onClick:t[1]||(t[1]=e=>a.onItemClick("entities"))},[(0,i._)("a",st,[nt,o.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",it,"Home"))])]),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(o.configSections,((t,n)=>((0,i.wg)(),(0,i.iD)("li",{key:n,class:(0,c.C_)(["entry",{selected:n===s.selectedConfigPanel}]),title:t.name,onClick:t=>e.$emit("select-config",n)},[(0,i._)("a",at,[(0,i._)("span",rt,[t.icon?.["class"]?((0,i.wg)(),(0,i.iD)("i",{key:0,class:(0,c.C_)(t.icon["class"])},null,2)):t.icon?.imgUrl?((0,i.wg)(),(0,i.iD)("img",{key:1,src:t.icon?.imgUrl,alt:"name"},null,8,lt)):((0,i.wg)(),(0,i.iD)("i",ct))]),o.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",{key:0,class:"name",textContent:(0,c.zw)(t.name)},null,8,dt))])],10,ot)))),128))])):((0,i.wg)(),(0,i.iD)("ul",ut,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(a.panelNames,(e=>((0,i.wg)(),(0,i.iD)("li",{key:e,class:(0,c.C_)(["entry",{selected:e===s.selectedPanel}]),title:e,onClick:t=>a.onItemClick(e)},[(0,i._)("a",{href:`/#${e}`},[(0,i._)("span",ft,[o.icons[e]?.class?((0,i.wg)(),(0,i.iD)("i",{key:0,class:(0,c.C_)(o.icons[e].class)},null,2)):o.icons[e]?.imgUrl?((0,i.wg)(),(0,i.iD)("img",{key:1,src:o.icons[e].imgUrl,alt:"name"},null,8,mt)):((0,i.wg)(),(0,i.iD)("i",gt))]),o.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",{key:0,class:"name",textContent:(0,c.zw)("entities"==e?"Home":e)},null,8,bt))],8,ht)],10,pt)))),128))])),(0,i._)("ul",yt,[(0,i._)("li",{class:(0,c.C_)({selected:"settings"===s.selectedPanel}),title:"Settings",onClick:t[2]||(t[2]=e=>a.onItemClick("settings"))},[(0,i._)("a",vt,[wt,o.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",kt,"Settings"))])],2),(0,i._)("li",{title:"Logout",onClick:t[3]||(t[3]=e=>a.onItemClick("logout"))},[(0,i._)("a",_t,[Ct,o.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",xt,"Logout"))])])])],2)}var It=s(1359),Tt=JSON.parse('{"users":{"name":"Users","icon":{"class":"fas fa-user"}},"tokens":{"name":"Tokens","icon":{"class":"fas fa-key"}},"integrations":{"name":"Integrations","icon":{"class":"fas fa-puzzle-piece"}}}'),St={name:"Nav",emits:["select","select-config"],mixins:[M.Z],props:{panels:{type:Object,required:!0},selectedPanel:{type:String},selectedConfigPanel:{type:String},hostname:{type:String}},computed:{panelNames(){let e=Object.keys(this.panels);const t=e.indexOf("entities");return t>=0?["entities"].concat(e.slice(0,t).concat(e.slice(t+1)).sort()):e.sort()},collapsedDefault(){return!(!this.isMobile()&&!this.isTablet())}},methods:{onItemClick(e){this.$emit("select",e),this.collapsed=!!this.isMobile()||this.collapsedDefault}},data(){return{collapsed:!0,icons:It,host:null,configSections:Tt}},mounted(){this.collapsed=this.collapsedDefault}};const Mt=(0,C.Z)(St,[["render",Dt],["__scopeId","data-v-831e98ec"]]);var Pt=Mt,$t=s(7950),Ut={name:"Panel",mixins:[M.Z],components:{Settings:$t["default"],Nav:Pt,Loading:fe.Z},data(){return{loading:!1,plugins:{},backends:{},procedures:{},components:{},hostname:void 0,selectedPanel:void 0,selectedConfigPanel:"users"}},methods:{initSelectedPanel(){const e=this.$route.hash.match("#?([a-zA-Z0-9.]+)[?]?(.*)"),t=e?e[1]:"entities";t?.length&&(this.selectedPanel=t)},initPanels(){const e=this;this.components={},Object.entries(this.plugins).forEach((async([t,n])=>{const o=t.split(".").map((e=>e[0].toUpperCase()+e.slice(1))).join("");let a=null;try{a=await s(3379)(`./${o}/Index`)}catch(l){return}const r=(0,he.XI)((0,i.RC)((async()=>a)));e.$options.components[t]=r,e.components[t]={component:r,pluginName:t,config:n}}))},async parseConfig(){[this.plugins,this.backends,this.procedures,this.hostname]=await Promise.all([this.request("config.get_plugins"),this.request("config.get_backends"),this.request("config.get_procedures"),this.request("config.get_device_id")]),this.initializeDefaultViews()},initializeDefaultViews(){this.plugins.execute={},this.plugins.entities={}}},async mounted(){this.loading=!0;try{await this.parseConfig(),this.initPanels(),this.initSelectedPanel()}finally{this.loading=!1}}};const qt=(0,C.Z)(Ut,[["render",Ge],["__scopeId","data-v-2e3e2cc6"]]);var Nt=qt;const jt={key:1,class:"canvas"};function Ot(e,t,s,n,o,a){const r=(0,i.up)("Loading");return(0,i.wg)(),(0,i.iD)("main",null,[o.loading?((0,i.wg)(),(0,i.j4)(r,{key:0})):((0,i.wg)(),(0,i.iD)("div",jt,[((0,i.wg)(),(0,i.j4)((0,i.LL)(o.component),{config:o.config,"plugin-name":a.pluginName},null,8,["config","plugin-name"]))]))])}var Et={name:"Panel",mixins:[M.Z],components:{Settings:$t["default"],Nav:Pt,Loading:fe.Z},data(){return{loading:!1,config:{},plugins:{},backends:{},procedures:{},component:void 0,hostname:void 0,selectedPanel:void 0}},computed:{pluginName(){return this.$route.params.plugin}},methods:{async initPanel(){const e=this.pluginName.split(".").map((e=>e[0].toUpperCase()+e.slice(1))).join("");let t=null;try{t=await s(3379)(`./${e}/Index`)}catch(n){return console.error(n),void this.notify({error:!0,title:`Cannot load plugin ${this.pluginName}`,text:n.toString()})}this.component=(0,he.XI)((0,i.RC)((async()=>t))),this.$options.components[e]=this.component},async initConfig(){const e=await this.request("config.get");this.config=e[this.pluginName]||{},this.hostname=await this.request("config.get_device_id")}},async mounted(){this.loading=!0;try{await this.initConfig(),await this.initPanel()}finally{this.loading=!1}}};const Zt=(0,C.Z)(Et,[["render",Ot],["__scopeId","data-v-e339182c"]]);var zt=Zt;const Wt=[{path:"/",name:"Panel",component:Nt},{path:"/dashboard/:name",name:"Dashboard",component:De},{path:"/plugin/:plugin",name:"Plugin",component:zt},{path:"/login",name:"Login",component:Ae},{path:"/register",name:"Register",component:Be},{path:"/:catchAll(.*)",component:Me}],Rt=(0,ue.p7)({history:(0,ue.PO)(),routes:Wt});var Lt=Rt,At=s(5205);(0,At.z)("/service-worker.js",{ready(){console.log("App is being served from cache by a service worker.\nFor more details, visit https://goo.gl/AFskqB")},registered(){console.log("Service worker has been registered.")},cached(){console.log("Content has been cached for offline use.")},updatefound(){console.log("New content is downloading.")},updated(){console.log("New content is available; please refresh.")},offline(){console.log("No internet connection found. App is running in offline mode.")},error(e){console.error("Error during service worker registration:",e)}});const Ft=(0,n.ri)(de);Ft.config.globalProperties._config=window.config,Ft.use(Lt).mount("#app")},3956:function(e,t,s){"use strict";s.d(t,{Z:function(){return j}});var n=s(9669),i=s.n(n),o={name:"Api",methods:{execute(e,t=6e4,s=!0){const n={};return"target"in e&&e["target"]||(e["target"]="localhost"),"type"in e&&e["type"]||(e["type"]="request"),t&&(n.timeout=t),new Promise(((t,o)=>{i().post("/execute",e,n).then((e=>{if(e=e.data.response,e.errors?.length){const t=e.errors?.[0]||e;this.notify({text:t,error:!0}),o(t)}else t(e.output)})).catch((e=>{412===e?.response?.data?.code&&window.location.href.indexOf("/register")<0?window.location.href="/register?redirect="+window.location.href:401===e?.response?.data?.code&&window.location.href.indexOf("/login")<0?window.location.href="/login?redirect="+window.location.href:(console.log(e),s&&this.notify({text:e,error:!0}),o(e))}))}))},request(e,t={},s=6e4,n=!0){return this.execute({type:"request",action:e,args:t},s,n)}}};const a=o;var r=a,l={name:"Clipboard",methods:{async copyToClipboard(e){await navigator.clipboard.writeText(e),this.notify({text:"Copied to the clipboard",image:{icon:"clipboard"}})}}};const c=l;var d=c,u={name:"Cookies",methods:{getCookies(){return document.cookie.split(/;\s*/).reduce(((e,t)=>{const[s,n]=t.split("=");return e[s]=n,e}),{})},getCookie(e){return this.getCookies()[e]},setCookie(e,t,s){document.cookie=`${e}=${t}; path=${s?.path||"/"}`+(s?.expires?`; expires=${s?.expires.toISOString()}`:"")},deleteCookie(e){document.cookie=`${e}=; expires=1970-01-01T00:00:00Z`}}};const p=u;var h=p,f={name:"DateTime",methods:{formatDate(e,t=!1){return"string"===typeof e&&(e=new Date(Date.parse(e))),e.toDateString().substring(0,t?15:10)},formatTime(e,t=!0){return"string"===typeof e&&(e=new Date(Date.parse(e))),e.toTimeString().substring(0,t?8:5)},formatDateTime(e,t=!1,s=!0){return"string"===typeof e&&(e=new Date(Date.parse(e))),`${this.formatDate(e,t)}, ${this.formatTime(e,s)}`}}};const m=f;var g=m,b=(s(2801),s(5250)),y={name:"Events",computed:{_eventsReady(){return this.$root.$refs.events?.initialized}},methods:{subscribe(e,t,...s){const n=()=>{b.$.emit("subscribe",{events:s,handler:e,handlerName:t||this.generateId()})};if(this._eventsReady)return void n();const i=this,o=this.$watch((()=>i._eventsReady),(e=>{e&&(n(),o())}));return o},unsubscribe(e){b.$.emit("unsubscribe",e)},generateId(){return btoa([...Array(11).keys()].map((()=>String.fromCharCode(Math.round(255*Math.random())))))}}};const v=y;var w=v,k={name:"Notification",methods:{notify(e){b.$.publishNotification(e)},notifyWarning(e){this.notify({text:e,warning:!0})},notifyError(e){throw this.notify({text:e,error:!0}),e}}};const _=k;var C=_,x={name:"Screen",methods:{isMobile(){return window.matchMedia("only screen and (max-width: 768px)").matches},isTablet(){return!this.isMobile()&&window.matchMedia("only screen and (max-width: 1023px)").matches},isDesktop(){return window.matchMedia("only screen and (min-width: 1024px)").matches}}};const D=x;var I=D,T={name:"Text",methods:{capitalize(e){return e?.length?e.charAt(0).toUpperCase()+e.slice(1):e},prettify(e){return e.split("_").map((e=>this.capitalize(e))).join(" ")},indent(e,t=2){return e.split("\n").map((e=>`${" ".repeat(t)}${e}`)).join("\n")}}};const S=T;var M=S,P=(s(7658),{name:"Types",methods:{parseBoolean(e){return"string"===typeof e?(e=e.toLowerCase(),"true"===e||"false"!==e&&!!parseInt(e)):!!e},convertSize(e){"string"===typeof e&&(e=parseInt(e));let t=null;const s=["B","KB","MB","GB","TB"];return s.forEach(((n,i)=>{e<=1024&&null==t?t=n:e>1024&&(i===s.length-1?t=n:e/=1024)})),`${e.toFixed(2)} ${t}`},convertTime(e){const t={},s=[];if(e=parseFloat(e),t.d=Math.round(e/86400),t.h=Math.round(e/3600-24*t.d),t.m=Math.round(e/60-(24*t.d+60*t.h)),t.s=Math.round(e-(24*t.d+3600*t.h+60*t.m),1),parseInt(t.d)){let e=t.d+" day";t.d>1&&(e+="s"),s.push(e)}if(parseInt(t.h)){let e=t.h+" hour";t.h>1&&(e+="s"),s.push(e)}if(parseInt(t.m)){let e=t.m+" minute";t.m>1&&(e+="s"),s.push(e)}let n=t.s+" second";return t.s>1&&(n+="s"),s.push(n),s.join(" ")},objectsEqual(e,t){if("object"!==typeof e||"object"!==typeof t)return!1;if(null==e||null==t)return null==e&&null==t;for(const s of Object.keys(e||{}))switch(typeof e[s]){case"object":if(!this.objectsEqual(e[s],t[s]))return!1;break;case"function":if(e[s].toString()!=t[s]?.toString())return!1;break;default:if(e[s]!=t[s])return!1;break}for(const s of Object.keys(t||{}))if(null==e[s]&&null!=t[s])return!1;return!0}}});const $=P;var U=$,q={name:"Utils",mixins:[r,d,h,g,w,C,I,M,U]};const N=q;var j=N},6791:function(e,t,s){"use strict";s.d(t,{Z:function(){return d}});var n=s(6252);const i={class:"loading"},o={class:"icon"};function a(e,t){return(0,n.wg)(),(0,n.iD)("div",i,[(0,n._)("div",o,[((0,n.wg)(),(0,n.iD)(n.HY,null,(0,n.Ko)(4,(e=>(0,n._)("div",{key:e}))),64))])])}var r=s(3744);const l={},c=(0,r.Z)(l,[["render",a],["__scopeId","data-v-4d9c871b"]]);var d=c},9417:function(e,t,s){"use strict";s.d(t,{Z:function(){return g}});var n=s(6252),i=s(3577);const o=e=>((0,n.dD)("data-v-18f9fdba"),e=e(),(0,n.Cn)(),e),a=["id"],r={key:0,class:"header"},l=["textContent"],c=o((()=>(0,n._)("i",{class:"fas fa-xmark"},null,-1))),d=[c],u={class:"body"};function p(e,t,s,o,c,p){return(0,n.wg)(),(0,n.iD)("div",{class:(0,i.C_)(["modal-container fade-in",{hidden:!c.isVisible}]),id:s.id,style:(0,i.j5)({"--z-index":p.zIndex}),onClick:t[3]||(t[3]=(...e)=>p.close&&p.close(...e))},[(0,n._)("div",{class:(0,i.C_)(["modal",e.$attrs.class])},[(0,n._)("div",{class:"content",style:(0,i.j5)({"--width":s.width,"--height":s.height}),onClick:t[2]||(t[2]=e=>e.stopPropagation())},[s.title?((0,n.wg)(),(0,n.iD)("div",r,[s.title?((0,n.wg)(),(0,n.iD)("div",{key:0,class:"title",textContent:(0,i.zw)(s.title)},null,8,l)):(0,n.kq)("",!0),(0,n._)("button",{title:"Close",alt:"Close",onClick:t[0]||(t[0]=(...e)=>p.close&&p.close(...e))},d)])):(0,n.kq)("",!0),(0,n._)("div",u,[(0,n.WI)(e.$slots,"default",{onModalClose:t[1]||(t[1]=(...e)=>p.close&&p.close(...e))},void 0,!0)])],4)],2)],14,a)}s(7658);var h={name:"Modal",emits:["close","open"],props:{id:{type:String},title:{type:String},width:{type:[Number,String]},height:{type:[Number,String]},visible:{type:Boolean,default:!1},timeout:{type:[Number,String]},level:{type:Number,default:1}},data(){return{timeoutId:void 0,prevVisible:this.visible,isVisible:this.visible}},computed:{zIndex(){return 500+this.level}},methods:{close(){this.prevVisible=this.isVisible,this.isVisible=!1},hide(){this.close()},show(){this.prevVisible=this.isVisible,this.isVisible=!0},toggle(){this.isVisible?this.close():this.show()},onKeyUp(e){e.stopPropagation(),"Escape"===e.key&&this.close()}},mounted(){const e=this,t=t=>{t?e.$emit("open"):e.$emit("close"),e.isVisible=t};document.body.addEventListener("keyup",this.onKeyUp),this.$watch((()=>this.visible),t),this.$watch((()=>this.isVisible),t)},unmounted(){document.body.removeEventListener("keyup",this.onKeyUp)},updated(){if(this.prevVisible=this.isVisible,this.isVisible){let e=parseInt(getComputedStyle(this.$el).zIndex),t=[];for(const s of document.querySelectorAll(".modal-container:not(.hidden)")){const n=parseInt(getComputedStyle(s).zIndex);n>e?(e=n,t=[s]):n===e&&t.push(s)}(t.indexOf(this.$el)<0||t.length>1)&&(this.$el.style.zIndex=e+1)}if(this.isVisible&&this.timeout&&!this.timeoutId){const e=e=>()=>{e.close(),e.timeoutId=void 0};this.timeoutId=setTimeout(e(this),0+this.timeout)}}},f=s(3744);const m=(0,f.Z)(h,[["render",p],["__scopeId","data-v-18f9fdba"]]);var g=m},6936:function(e,t,s){"use strict";s.d(t,{Z:function(){return m}});var n=s(6252),i=s(9963),o=s(3577);const a=e=>((0,n.dD)("data-v-db648f4c"),e=e(),(0,n.Cn)(),e),r={class:"dialog-content"},l=a((()=>(0,n._)("i",{class:"fas fa-check"},null,-1))),c=a((()=>(0,n._)("i",{class:"fas fa-xmark"},null,-1)));function d(e,t,s,a,d,u){const p=(0,n.up)("Modal");return(0,n.wg)(),(0,n.j4)(p,{ref:"modal",title:s.title},{default:(0,n.w5)((()=>[(0,n._)("div",r,[(0,n.WI)(e.$slots,"default",{},void 0,!0)]),(0,n._)("form",{class:"buttons",onSubmit:t[4]||(t[4]=(0,i.iM)(((...e)=>u.onConfirm&&u.onConfirm(...e)),["prevent"]))},[(0,n._)("button",{type:"submit",class:"ok-btn",onClick:t[0]||(t[0]=(...e)=>u.onConfirm&&u.onConfirm(...e)),onTouch:t[1]||(t[1]=(...e)=>u.onConfirm&&u.onConfirm(...e))},[l,(0,n.Uk)(" "+(0,o.zw)(s.confirmText),1)],32),(0,n._)("button",{type:"button",class:"cancel-btn",onClick:t[2]||(t[2]=(...e)=>u.close&&u.close(...e)),onTouch:t[3]||(t[3]=(...e)=>u.close&&u.close(...e))},[c,(0,n.Uk)(" "+(0,o.zw)(s.cancelText),1)],32)],32)])),_:3},8,["title"])}var u=s(9417),p={emits:["input","click","touch"],components:{Modal:u.Z},props:{title:{type:String},confirmText:{type:String,default:"OK"},cancelText:{type:String,default:"Cancel"}},methods:{onConfirm(){this.$emit("input"),this.close()},show(){this.$refs.modal.show()},close(){this.$refs.modal.hide()}}},h=s(3744);const f=(0,h.Z)(p,[["render",d],["__scopeId","data-v-db648f4c"]]);var m=f},7261:function(e,t,s){"use strict";s.d(t,{Z:function(){return f}});var n=s(6252),i=s(9963),o=s(3577);const a={class:"dropdown-container",ref:"container"},r=["title"],l=["textContent"],c=["id"];function d(e,t,s,d,u,p){return(0,n.wg)(),(0,n.iD)("div",a,[(0,n._)("button",{title:s.title,ref:"button",onClick:t[0]||(t[0]=(0,i.iM)((e=>p.toggle(e)),["stop"]))},[s.iconClass?((0,n.wg)(),(0,n.iD)("i",{key:0,class:(0,o.C_)(["icon",s.iconClass])},null,2)):(0,n.kq)("",!0),s.text?((0,n.wg)(),(0,n.iD)("span",{key:1,class:"text",textContent:(0,o.zw)(s.text)},null,8,l)):(0,n.kq)("",!0)],8,r),(0,n._)("div",{class:(0,o.C_)(["dropdown fade-in",{hidden:!u.visible}]),id:s.id,ref:"dropdown"},[(0,n.WI)(e.$slots,"default",{},void 0,!0)],10,c)],512)}var u={name:"Dropdown",emits:["click"],props:{id:{type:String},items:{type:Array,default:()=>[]},iconClass:{default:"fa fa-ellipsis-h"},text:{type:String},title:{type:String},keepOpenOnItemClick:{type:Boolean,default:!1}},data(){return{visible:!1}},methods:{documentClickHndl(e){if(!this.visible)return;let t=e.target;while(t){if(!this.$refs.dropdown)break;if(t===this.$refs.dropdown.element)return;t=t.parentElement}this.close()},close(){this.visible=!1,document.removeEventListener("click",this.documentClickHndl)},open(){document.addEventListener("click",this.documentClickHndl),this.visible=!0,setTimeout((()=>{const e=this.$refs.dropdown;e.style.left=0,e.style.top=parseFloat(getComputedStyle(this.$refs.button).height)+"px",e.getBoundingClientRect().left>window.innerWidth/2&&(e.style.left=-e.clientWidth+parseFloat(getComputedStyle(this.$refs.button).width)+"px"),e.getBoundingClientRect().top>window.innerHeight/2&&(e.style.top=-e.clientHeight+parseFloat(getComputedStyle(this.$refs.button).height)+"px")}),10)},toggle(e){e.stopPropagation(),this.$emit("click"),this.visible?this.close():this.open()},onKeyUp(e){e.stopPropagation(),"Escape"===e.key&&this.close()}},mounted(){document.body.addEventListener("keyup",this.onKeyUp)},unmounted(){document.body.removeEventListener("keyup",this.onKeyUp)}},p=s(3744);const h=(0,p.Z)(u,[["render",d],["__scopeId","data-v-5b964c03"]]);var f=h},3213:function(e,t,s){"use strict";s.d(t,{Z:function(){return p}});var n=s(6252),i=s(3577);const o={key:0,class:"col-2 icon"},a=["textContent"];function r(e,t,s,r,l,c){const d=(0,n.up)("Icon");return(0,n.wg)(),(0,n.iD)("div",{class:(0,i.C_)(["row item",s.itemClass]),onClick:t[0]||(t[0]=(...e)=>c.clicked&&c.clicked(...e))},[s.iconClass?.length||s.iconUrl?.length?((0,n.wg)(),(0,n.iD)("div",o,[(0,n.Wm)(d,{class:(0,i.C_)(s.iconClass),url:s.iconUrl},null,8,["class","url"])])):(0,n.kq)("",!0),(0,n._)("div",{class:(0,i.C_)(["text",{"col-10":null!=s.iconClass}]),textContent:(0,i.zw)(s.text)},null,10,a)],2)}var l=s(657),c={name:"DropdownItem",components:{Icon:l.Z},props:{iconClass:{type:String},iconUrl:{type:String},text:{type:String},disabled:{type:Boolean,default:!1},itemClass:{}},methods:{clicked(e){if(this.disabled)return!1;this.$parent.$emit("click",e),this.$parent.keepOpenOnItemClick||(this.$parent.visible=!1)}}},d=s(3744);const u=(0,d.Z)(c,[["render",r],["__scopeId","data-v-282d16b4"]]);var p=u},657:function(e,t,s){"use strict";s.d(t,{Z:function(){return u}});var n=s(6252),i=s(3577);const o={class:"icon-container"},a=["src","alt"];function r(e,t,s,r,l,c){return(0,n.wg)(),(0,n.iD)("div",o,[s.url?.length?((0,n.wg)(),(0,n.iD)("img",{key:0,class:"icon",src:s.url,alt:s.alt},null,8,a)):c.className?.length?((0,n.wg)(),(0,n.iD)("i",{key:1,class:(0,i.C_)(["icon",c.className]),style:(0,i.j5)({color:s.color})},null,6)):(0,n.kq)("",!0)])}var l={props:{class:{type:String},url:{type:String},color:{type:String,default:""},alt:{type:String,default:""}},computed:{className(){return this.class}}},c=s(3744);const d=(0,c.Z)(l,[["render",r],["__scopeId","data-v-706a3bd1"]]);var u=d},7950:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return fe}});var n=s(6252);const i={class:"settings-container"};function o(e,t,s,o,a,r){const l=(0,n.up)("Users"),c=(0,n.up)("Token"),d=(0,n.up)("Integrations");return(0,n.wg)(),(0,n.iD)("div",i,[(0,n._)("main",null,["users"===s.selectedPanel&&a.currentUser?((0,n.wg)(),(0,n.j4)(l,{key:0,"session-token":a.sessionToken,"current-user":a.currentUser},null,8,["session-token","current-user"])):"tokens"===s.selectedPanel&&a.currentUser?((0,n.wg)(),(0,n.j4)(c,{key:1,"session-token":a.sessionToken,"current-user":a.currentUser},null,8,["session-token","current-user"])):"integrations"===s.selectedPanel?((0,n.wg)(),(0,n.j4)(d,{key:2})):(0,n.kq)("",!0)])])}var a=s(3577),r=s(9963);const l={class:"token-container"},c={class:"token-container"},d=(0,n._)("label",null,[(0,n.Uk)(" This is your generated token. Treat it carefully and do not share it with untrusted parties."),(0,n._)("br"),(0,n.Uk)(" Also, make sure to save it - it WILL NOT be displayed again. ")],-1),u=["textContent"],p={class:"token-container"},h=(0,n._)("label",null," This is your current session token. It will be invalidated once you log out of the current session. ",-1),f=["textContent"],m={class:"body"},g=(0,n.uE)('',1),b={class:"form-container"},y=(0,n._)("span",null,"Username",-1),v=["value"],w=(0,n._)("label",null,[(0,n._)("span",null,"Confirm password"),(0,n._)("span",null,[(0,n._)("input",{type:"password",name:"password"})])],-1),k=(0,n._)("label",null,[(0,n._)("span",null,"Token validity in days"),(0,n._)("span",null,[(0,n._)("input",{type:"text",name:"validityDays"})]),(0,n._)("span",{class:"note"},[(0,n.Uk)(" Decimal values are also supported - e.g. "),(0,n._)("i",null,"0.5"),(0,n.Uk)(" means half a day (12 hours). An empty or zero value means that the token has no expiry date. ")])],-1),_=(0,n._)("label",null,[(0,n._)("input",{type:"submit",class:"btn btn-primary",value:"Generate JWT token"})],-1);function C(e,t,s,i,o,C){const x=(0,n.up)("Loading"),D=(0,n.up)("Modal");return(0,n.wg)(),(0,n.iD)("div",l,[o.loading?((0,n.wg)(),(0,n.j4)(x,{key:0})):(0,n.kq)("",!0),(0,n.Wm)(D,{ref:"tokenModal"},{default:(0,n.w5)((()=>[(0,n._)("div",c,[d,(0,n._)("textarea",{class:"token",textContent:(0,a.zw)(o.token),onFocus:t[0]||(t[0]=(...e)=>C.onTokenSelect&&C.onTokenSelect(...e))},null,40,u)])])),_:1},512),(0,n.Wm)(D,{ref:"sessionTokenModal"},{default:(0,n.w5)((()=>[(0,n._)("div",p,[h,(0,n._)("textarea",{class:"token",textContent:(0,a.zw)(s.sessionToken),onFocus:t[1]||(t[1]=(...e)=>C.onTokenSelect&&C.onTokenSelect(...e))},null,40,f)])])),_:1},512),(0,n._)("div",m,[g,(0,n._)("div",b,[(0,n._)("form",{onSubmit:t[3]||(t[3]=(0,r.iM)(((...e)=>C.generateToken&&C.generateToken(...e)),["prevent"])),ref:"generateTokenForm"},[(0,n._)("label",null,[y,(0,n._)("span",null,[(0,n._)("input",{type:"text",name:"username",value:s.currentUser.username,disabled:""},null,8,v)])]),w,k,_,(0,n._)("label",null,[(0,n._)("input",{type:"button",class:"btn btn-default",value:"Show session token",onClick:t[2]||(t[2]=(0,r.iM)((t=>e.$refs.sessionTokenModal.show()),["stop"]))})])],544)])])])}var x=s(9669),D=s.n(x),I=s(6791),T=s(3956),S=s(9417),M={name:"Token",components:{Modal:S.Z,Loading:I.Z},mixins:[T.Z],props:{currentUser:{type:Object,required:!0},sessionToken:{type:String,required:!0}},data(){return{loading:!1,token:null}},methods:{async generateToken(e){const t=this.currentUser.username,s=e.target.password.value;let n=e.target.validityDays?.length?parseInt(e.target.validityDays.value):0;n||(n=null),this.loading=!0;try{this.token=(await D().post("/auth",{username:t,password:s,expiry_days:n})).data.token,this.token?.length&&this.$refs.tokenModal.show()}catch(i){console.error(i.toString()),this.notify({text:i.toString(),error:!0})}finally{this.loading=!1}},onTokenSelect(e){e.target.select(),document.execCommand("copy"),this.notify({text:"Token copied to clipboard",image:{iconClass:"fa fa-check"}})}}},P=s(3744);const $=(0,P.Z)(M,[["render",C]]);var U=$;const q=["disabled"],N=["disabled"],j=["disabled"],O=["disabled"],E=["value"],Z=["disabled"],z=["disabled"],W=["disabled"],R=["disabled"],L={class:"body"},A={class:"users-list"},F=["onClick"],V=["textContent"],H={class:"actions pull-right col-4"};function B(e,t,s,i,o,r){const l=(0,n.up)("Loading"),c=(0,n.up)("Modal"),d=(0,n.up)("DropdownItem"),u=(0,n.up)("Dropdown"),p=(0,n.up)("FloatingButton"),h=(0,n.up)("ConfirmDialog");return(0,n.wg)(),(0,n.iD)(n.HY,null,[o.loading?((0,n.wg)(),(0,n.j4)(l,{key:0})):(0,n.kq)("",!0),(0,n.Wm)(c,{ref:"addUserModal",title:"Add User"},{default:(0,n.w5)((()=>[(0,n._)("form",{action:"#",method:"POST",ref:"addUserForm",onSubmit:t[0]||(t[0]=(...e)=>r.createUser&&r.createUser(...e))},[(0,n._)("label",null,[(0,n._)("input",{type:"text",name:"username",placeholder:"Username",disabled:o.commandRunning},null,8,q)]),(0,n._)("label",null,[(0,n._)("input",{type:"password",name:"password",placeholder:"Password",disabled:o.commandRunning},null,8,N)]),(0,n._)("label",null,[(0,n._)("input",{type:"password",name:"confirm_password",placeholder:"Confirm password",disabled:o.commandRunning},null,8,j)]),(0,n._)("label",null,[(0,n._)("input",{type:"submit",class:"btn btn-primary",value:"Create User",disabled:o.commandRunning},null,8,O)])],544)])),_:1},512),(0,n.Wm)(c,{ref:"changePasswordModal",title:"Change Password"},{default:(0,n.w5)((()=>[(0,n._)("form",{action:"#",method:"POST",ref:"changePasswordForm",onSubmit:t[1]||(t[1]=(...e)=>r.changePassword&&r.changePassword(...e))},[(0,n._)("label",null,[(0,n._)("input",{type:"text",name:"username",placeholder:"Username",value:o.selectedUser,disabled:"disabled"},null,8,E)]),(0,n._)("label",null,[(0,n._)("input",{type:"password",name:"password",placeholder:"Current password",disabled:o.commandRunning},null,8,Z)]),(0,n._)("label",null,[(0,n._)("input",{type:"password",name:"new_password",placeholder:"New password",disabled:o.commandRunning},null,8,z)]),(0,n._)("label",null,[(0,n._)("input",{type:"password",name:"confirm_new_password",placeholder:"Confirm new password",disabled:o.commandRunning},null,8,W)]),(0,n._)("label",null,[(0,n._)("input",{type:"submit",class:"btn btn-primary",value:"Change Password",disabled:o.commandRunning},null,8,R)])],544)])),_:1},512),(0,n._)("div",L,[(0,n._)("ul",A,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(o.users,(s=>((0,n.wg)(),(0,n.iD)("li",{key:s.user_id,class:"item user",onClick:e=>o.selectedUser=s.username},[(0,n._)("div",{class:"name col-8",textContent:(0,a.zw)(s.username)},null,8,V),(0,n._)("div",H,[(0,n.Wm)(u,{title:"User Actions","icon-class":"fa fa-ellipsis"},{default:(0,n.w5)((()=>[(0,n.Wm)(d,{text:"Change Password",disabled:o.commandRunning,"icon-class":"fa fa-key",onClick:e=>r.showChangePasswordModal(s)},null,8,["disabled","onClick"]),(0,n.Wm)(d,{text:"Delete User",disabled:o.commandRunning,"icon-class":"fa fa-trash",onClick:t[2]||(t[2]=t=>e.$refs.deleteUserDialog.show())},null,8,["disabled"])])),_:2},1024)])],8,F)))),128))]),(0,n.Wm)(p,{"icon-class":"fa fa-plus",text:"Add User",onClick:r.showAddUserModal},null,8,["onClick"]),(0,n.Wm)(h,{ref:"deleteUserDialog",onInput:t[3]||(t[3]=e=>r.deleteUser(o.selectedUser))},{default:(0,n.w5)((()=>[(0,n.Uk)(" Are you sure that you want to remove the user "+(0,a.zw)(o.selectedUser)+"? ",1)])),_:1},512)])],64)}var K=s(6936),Y=s(7261),J=s(3213);const G=["title"];function X(e,t,s,i,o,r){const l=(0,n.up)("Icon");return(0,n.wg)(),(0,n.iD)("div",{class:(0,a.C_)(["floating-btn",r.className])},[(0,n._)("button",{type:"button",class:"btn btn-primary",title:s.title,onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[(0,n.Wm)(l,{class:(0,a.C_)(s.iconClass),url:s.iconUrl},null,8,["class","url"])],8,G)],2)}var Q=s(657),ee={name:"FloatingButton",components:{Icon:Q.Z},emits:["click"],props:{iconClass:{type:String},iconUrl:{type:String},class:{type:String},title:{type:String}},computed:{className(){return this.class}}};const te=(0,P.Z)(ee,[["render",X],["__scopeId","data-v-133e57f8"]]);var se=te,ne={name:"Users",components:{ConfirmDialog:K.Z,Dropdown:Y.Z,DropdownItem:J.Z,FloatingButton:se,Loading:I.Z,Modal:S.Z},mixins:[T.Z],props:{sessionToken:{type:String,required:!0},currentUser:{type:Object,required:!0}},data(){return{users:[],commandRunning:!1,loading:!1,selectedUser:null}},methods:{async refresh(){this.loading=!0;try{this.users=await this.request("user.get_users")}finally{this.loading=!1}},async createUser(e){e.preventDefault();const t=[...this.$refs.addUserForm.querySelectorAll("input[name]")].reduce(((e,t)=>(e[t.name]=t.value,e)),{});if(t.password===t.confirm_password){this.commandRunning=!0;try{await this.request("user.create_user",{username:t.username,password:t.password,session_token:this.sessionToken})}finally{this.commandRunning=!1}this.notify({text:"User "+t.username+" created",image:{iconClass:"fas fa-check"}}),this.$refs.addUserModal.close(),await this.refresh()}else this.notify({title:"Unable to create user",text:"Please check that the passwords match",error:!0,image:{iconClass:"fas fa-times"}})},async changePassword(e){e.preventDefault();const t=[...this.$refs.changePasswordForm.querySelectorAll("input[name]")].reduce(((e,t)=>(e[t.name]=t.value,e)),{});if(t.new_password!==t.confirm_new_password)return void this.notify({title:"Unable to update password",text:"Please check that the passwords match",error:!0,image:{iconClass:"fas fa-times"}});this.commandRunning=!0;let s=!1;try{s=await this.request("user.update_password",{username:t.username,old_password:t.password,new_password:t.new_password})}finally{this.commandRunning=!1}s?(this.$refs.changePasswordModal.close(),this.notify({text:"Password successfully updated",image:{iconClass:"fas fa-check"}})):this.notify({title:"Unable to update password",text:"The current password is incorrect",error:!0,image:{iconClass:"fas fa-times"}})},async deleteUser(e){this.commandRunning=!0;try{await this.request("user.delete_user",{username:e,session_token:this.sessionToken})}finally{this.commandRunning=!1}this.notify({text:`User ${e} removed`,image:{iconClass:"fas fa-check"}}),this.selectedUser=null,await this.refresh()},showAddUserModal(){this.$refs.addUserModal.show(),this.$nextTick((()=>{this.$refs.addUserForm.reset(),this.$refs.addUserForm.username.focus()}))},showChangePasswordModal(e){this.$refs.changePasswordModal.show(),this.$nextTick((()=>{this.$refs.changePasswordForm.password.focus(),this.selectedUser=e.username}))}},mounted(){this.refresh()}};const ie=(0,P.Z)(ne,[["render",B],["__scopeId","data-v-510035f2"]]);var oe=ie;const ae={class:"integrations-container"},re=(0,n._)("div",{class:"body"},null,-1);function le(e,t,s,i,o,a){const r=(0,n.up)("Loading");return(0,n.wg)(),(0,n.iD)("div",ae,[o.loading?((0,n.wg)(),(0,n.j4)(r,{key:0})):(0,n.kq)("",!0),re])}var ce={name:"Integrations",components:{Loading:I.Z},mixins:[T.Z],data(){return{loading:!1,plugins:{},backends:{}}},methods:{async loadIntegrations(){this.loading=!0;try{[this.plugins,this.backends]=await Promise.all([this.request("inspect.get_all_plugins"),this.request("inspect.get_all_backends")])}finally{this.loading=!1}}},mounted(){this.loadIntegrations()}};const de=(0,P.Z)(ce,[["render",le]]);var ue=de,pe={name:"Settings",components:{Users:oe,Token:U,Integrations:ue},mixins:[T.Z],props:{selectedPanel:{type:String}},data(){return{currentUser:null,sessionToken:null}},methods:{async refresh(){this.sessionToken=this.getCookies()["session_token"],this.currentUser=await this.request("user.get_user_by_session",{session_token:this.sessionToken})}},mounted(){this.refresh()}};const he=(0,P.Z)(pe,[["render",o]]);var fe=he},3379:function(e,t,s){var n={"./Camera/Index":[5324,8039,5324],"./CameraAndroidIpcam/Index":[5794,5794],"./CameraCv/Index":[6148,8039,6148],"./CameraFfmpeg/Index":[9334,8039,9334],"./CameraGstreamer/Index":[813,8039,813],"./CameraIrMlx90640/Index":[7381,8039,7381],"./CameraPi/Index":[8895,8039,8895],"./Entities/Index":[6217,4558],"./Execute/Index":[7108,7108],"./Light/Index":[7184,2471,5040,7184],"./LightHue/Index":[2976,2471,5040,7184,2976],"./Media/Index":[7143,2471,4186,8053,7143],"./MediaMplayer/Index":[3518,2471,4186,8053,7143,3518],"./MediaMpv/Index":[4765,2471,4186,8053,7143,4765],"./MediaOmxplayer/Index":[7819,2471,4186,8053,7143,7819],"./MediaVlc/Index":[2614,2471,4186,8053,7143,2614],"./Music/Index":[7473,2471,4186,7473],"./MusicMpd/Index":[1309,2471,4186,7473,1309],"./MusicSnapcast/Index":[7126,2471,5040,7126],"./MusicSpotify/Index":[2068,2471,4186,7473,2068],"./Rtorrent/Index":[2183,8053,3664,2183],"./Settings/Index":[7950],"./Sound/Index":[746,746],"./Torrent/Index":[8784,8053,3664,8784],"./Tts/Index":[3732,8069,3732],"./TtsGoogle/Index":[2853,8069,2853],"./TvSamsungWs/Index":[4589,4589],"./ZigbeeMqtt/Index":[1259,2471,5040,1259],"./Zwave/Index":[2732,2471,5040,7880,2732],"./ZwaveMqtt/Index":[1088,2471,5040,7880,1088]};function i(e){if(!s.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],i=t[0];return Promise.all(t.slice(1).map(s.e)).then((function(){return s(i)}))}i.keys=function(){return Object.keys(n)},i.id=3379,e.exports=i},6725:function(e,t,s){var n={"./Calendar/Index":[5638,5638],"./Camera/Index":[446,446],"./Component/Index":[1449,2471,5040,1449],"./DateTime/Index":[4619,1391,4619],"./DateTimeWeather/Index":[9962,3594,1391,9962],"./ImageCarousel/Index":[306,3594,1391,306],"./Music/Index":[311,311],"./Plugin/Index":[8179,8179],"./RssNews/Index":[6523,6523],"./Weather/Index":[3594,3594]};function i(e){if(!s.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],i=t[0];return Promise.all(t.slice(1).map(s.e)).then((function(){return s(i)}))}i.keys=function(){return Object.keys(n)},i.id=6725,e.exports=i},1359:function(e){"use strict";e.exports=JSON.parse('{"arduino":{"class":"fas fa-microchip"},"bluetooth":{"class":"fab fa-bluetooth"},"camera.android.ipcam":{"class":"fab fa-android"},"camera.cv":{"class":"fas fa-camera"},"camera.ffmpeg":{"class":"fas fa-camera"},"camera.gstreamer":{"class":"fas fa-camera"},"camera.ir.mlx90640":{"class":"fas fa-sun"},"camera.pi":{"class":"fas fa-camera"},"entities":{"class":"fa fa-home"},"execute":{"class":"fa fa-play"},"light.hue":{"class":"fas fa-lightbulb"},"linode":{"class":"fas fa-cloud"},"media.jellyfin":{"imgUrl":"/icons/jellyfin.svg"},"media.kodi":{"imgUrl":"/icons/kodi.svg"},"media.omxplayer":{"class":"fa fa-film"},"media.mplayer":{"class":"fa fa-film"},"media.mpv":{"class":"fa fa-film"},"media.plex":{"imgUrl":"/icons/plex.svg"},"media.vlc":{"class":"fa fa-film"},"music.mpd":{"class":"fas fa-music"},"music.snapcast":{"class":"fa fa-volume-up"},"music.spotify":{"class":"fab fa-spotify"},"torrent":{"class":"fa fa-magnet"},"rtorrent":{"class":"fa fa-magnet"},"sensor.bme280":{"class":"fas fa-microchip"},"sensor.dht":{"class":"fas fa-microchip"},"sensor.envirophat":{"class":"fas fa-microchip"},"sensor.ltr559":{"class":"fas fa-microchip"},"sensor.mcp3008":{"class":"fas fa-microchip"},"sensor.pmw3901":{"class":"fas fa-microchip"},"sensor.vl53l1x":{"class":"fas fa-microchip"},"serial":{"class":"fab fa-usb"},"smartthings":{"imgUrl":"/icons/smartthings.png"},"switches":{"class":"fas fa-toggle-on"},"switch.switchbot":{"class":"fas fa-toggle-on"},"switch.tplink":{"class":"fas fa-toggle-on"},"switchbot":{"class":"fas fa-toggle-on"},"sound":{"class":"fa fa-microphone"},"system":{"class":"fas fa-microchip"},"tts":{"class":"far fa-comment"},"tts.google":{"class":"fas fa-comment"},"tv.samsung.ws":{"class":"fas fa-tv"},"variable":{"class":"fas fa-square-root-variable"},"zigbee.mqtt":{"imgUrl":"/icons/zigbee.svg"},"zwave":{"imgUrl":"/icons/z-wave.png"},"zwave.mqtt":{"imgUrl":"/icons/z-wave.png"}}')}},t={};function s(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,s),o.exports}s.m=e,function(){var e=[];s.O=function(t,n,i,o){if(!n){var a=1/0;for(d=0;dPlatypush provides two types of tokens:
- JWT tokens are bearer-only, and they contain encrypted authentication information.
They can be used as permanent or time-based tokens to authenticate with the Platypush API.- Session tokens are randomly generated tokens stored on the application database. A session token generated in this session will expire when you log out of it.
Generate a JWT authentication token that can be used for API calls to the
/execute
endpoint.You can include the token in your requests in any of the following ways:
- Specify it on the
Authorization: Bearer
header;- Specify it on the
X-Token
header;- Specify it as a URL parameter:
http://site:8008/execute?token=...
for a JWT token and...?session_token=...
for a session token;- Specify it on the body of your JSON request:
{"type":"request", "action", "...", "token":"..."}
for a JWT token, or"session_token"
for a session token.Confirm your credentials in order to generate a new JWT token.
Show session token will instead show the token cookie associated to the current session.
=o)&&Object.keys(s.O).every((function(e){return s.O[e](n[l])}))?n.splice(l--,1):(r=!1,o0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[n,i,o]}}(),function(){s.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return s.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};s.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"===typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"===typeof n.then)return n}var o=Object.create(null);s.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var r=2&i&&n;"object"==typeof r&&!~e.indexOf(r);r=t(r))Object.getOwnPropertyNames(r).forEach((function(e){a[e]=function(){return n[e]}}));return a["default"]=function(){return n},s.d(o,a),o}}(),function(){s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce((function(t,n){return s.f[n](e,t),t}),[]))}}(),function(){s.u=function(e){return"static/js/"+e+"."+{65:"ae7df477",169:"ebdd7044",306:"2d168c66",311:"f31f8a7f",446:"29d06622",729:"e4c8c0bf",746:"8cff4bdb",813:"54039bae",984:"ae424e7e",1088:"22c3f8aa",1259:"20c2a640",1309:"49bc258a",1391:"a76844c2",1449:"a7f93282",2068:"e1cfe490",2183:"8cf7b0b0",2217:"6b927594",2460:"567e73f6",2471:"da49c64a",2614:"b9ec352d",2732:"34e0816d",2853:"81f7fb07",2893:"519a1554",2976:"6696a98f",3368:"cb04738a",3369:"c099f8d0",3518:"8990808d",3559:"df95d103",3594:"c4f7c0e4",3664:"a4d43ff7",3732:"9d17b023",3798:"1f9f57bb",3826:"cc264dd1",3835:"11129165",4186:"79b29eca",4558:"46b49f82",4589:"10f6f836",4619:"435262dc",4765:"87ca22d5",5040:"f02b705d",5207:"7f241e21",5324:"0b417d07",5329:"444a9cf1",5638:"58e3f91e",5794:"2d7b6154",6148:"d5fc2e04",6362:"95da0eb4",6523:"ba4f6991",6561:"fc5ef77b",7108:"9da656fb",7126:"7f847c50",7143:"d983a342",7184:"f4e292e6",7381:"94417af6",7473:"56a0925a",7523:"367c2045",7590:"6cda174b",7819:"0006d776",7880:"6583990d",8039:"951792f1",8053:"22e4ed09",8069:"51c1e8b1",8179:"31718565",8391:"119357c7",8621:"0aa03df1",8769:"5ea5c0cb",8784:"fce7d104",8825:"b660e217",8895:"29a5da0d",9334:"0a11d59e",9624:"5124c411",9962:"35d9420e"}[e]+".js"}}(),function(){s.miniCssF=function(e){return"static/css/"+e+"."+{65:"cf69abd6",169:"939fa55e",306:"fbbaf2b7",311:"504d6c0b",446:"ed463bd2",729:"9ff67cd4",746:"25e7d5ff",984:"e32851e8",1259:"72a7d113",1391:"1b22f65c",1449:"8f1b2b15",2217:"2d57b466",2460:"26f651a5",2471:"a6a32303",2893:"f9230237",2976:"234438b4",3368:"428fba28",3369:"6039e606",3559:"dbf9c689",3594:"3a165bb4",3664:"c92d9d38",3798:"75e0f6b2",3826:"0de7c131",3835:"e07b6aab",4186:"b6585c35",4558:"ebdecea6",4589:"6d3a8446",5040:"fcf11255",5207:"950597e1",5329:"6e70371b",5638:"25d1c562",5794:"49b1f262",6523:"4bf56b11",6561:"208265a1",7108:"b4d51481",7126:"a0725ecc",7143:"539db457",7184:"6ad0f775",7473:"16d1dc39",7523:"22ccd2ae",7590:"079e3fe8",7880:"a114eea0",8039:"22b025de",8053:"2e68c420",8069:"58663e3e",8179:"8db287b9",8391:"8217f6c4",8621:"cb98ee18",8769:"41af0eac",8825:"05c5466d",9624:"fe6b5dbe",9962:"bec1b050"}[e]+".css"}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="platypush:";s.l=function(n,i,o,a){if(e[n])e[n].push(i);else{var r,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),d=0;d {\n bus.emit('entity-update', entity)\n}\n\nbus.onEntity = (callback) => {\n bus.on('entity-update', callback)\n}\n\nbus.publishNotification = (notification) => {\n bus.emit('notification-create', notification)\n}\n\nbus.onNotification = (callback) => {\n bus.on('notification-create', callback)\n}\n\nexport { bus }\n","\n \n \n \n \n \n \n Would you like to install this application locally?\n \n\n\n\n\n\n\n\n\n","\n \n\n\n\n\n\n","\n\n \n\n \n\n\n\n\n\n","import { render } from \"./Notification.vue?vue&type=template&id=7646705e&scoped=true\"\nimport script from \"./Notification.vue?vue&type=script&lang=js\"\nexport * from \"./Notification.vue?vue&type=script&lang=js\"\n\nimport \"./Notification.vue?vue&type=style&index=0&id=7646705e&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7646705e\"]])\n\nexport default __exports__","import { render } from \"./Notifications.vue?vue&type=template&id=6dc8bebc&scoped=true\"\nimport script from \"./Notifications.vue?vue&type=script&lang=js\"\nexport * from \"./Notifications.vue?vue&type=script&lang=js\"\n\nimport \"./Notifications.vue?vue&type=style&index=0&id=6dc8bebc&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6dc8bebc\"]])\n\nexport default __exports__","\n \n\n\n\n","import { render } from \"./Events.vue?vue&type=template&id=6a0e6afd\"\nimport script from \"./Events.vue?vue&type=script&lang=js\"\nexport * from \"./Events.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n\n\n \n \n \n \n\n \n \n \n \n \n\n\n\n\n\n\n\n\n","import { render } from \"./VoiceAssistant.vue?vue&type=template&id=3f009270\"\nimport script from \"./VoiceAssistant.vue?vue&type=script&lang=js\"\nexport * from \"./VoiceAssistant.vue?vue&type=script&lang=js\"\n\nimport \"./VoiceAssistant.vue?vue&type=style&index=0&id=3f009270&lang=scss\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n \n\n\n\n","import { render } from \"./Ntfy.vue?vue&type=template&id=1c4a4708\"\nimport script from \"./Ntfy.vue?vue&type=script&lang=js\"\nexport * from \"./Ntfy.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n \n\n\n\n","import { render } from \"./Pushbullet.vue?vue&type=template&id=bf9869d4\"\nimport script from \"./Pushbullet.vue?vue&type=script&lang=js\"\nexport * from \"./Pushbullet.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./App.vue?vue&type=template&id=56afd0b4\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\n\nimport \"./App.vue?vue&type=style&index=0&id=56afd0b4&lang=scss\"\n\nimport exportComponent from \"../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n \n\n \n \n \n \n\n\n\n\n\n Assistant listening\n\n\n \n\n\n \n\n\n\n \n\n\n\n\n\n\n\n\n","\n\n
\n\n \n\n \n\n \n\n\n\n\n\n\n","import { render } from \"./Row.vue?vue&type=template&id=1b4663f2&scoped=true\"\nimport script from \"./Row.vue?vue&type=script&lang=js\"\nexport * from \"./Row.vue?vue&type=script&lang=js\"\n\nimport \"./Row.vue?vue&type=style&index=0&id=1b4663f2&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1b4663f2\"]])\n\nexport default __exports__","\n\n \n\n\n\n\n\n\n","import { render } from \"./Widget.vue?vue&type=template&id=5df52982&scoped=true\"\nimport script from \"./Widget.vue?vue&type=script&lang=js\"\nexport * from \"./Widget.vue?vue&type=script&lang=js\"\n\nimport \"./Widget.vue?vue&type=style&index=0&id=5df52982&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5df52982\"]])\n\nexport default __exports__","import { render } from \"./Dashboard.vue?vue&type=template&id=54e0248a&scoped=true\"\nimport script from \"./Dashboard.vue?vue&type=script&lang=js\"\nexport * from \"./Dashboard.vue?vue&type=script&lang=js\"\n\nimport \"./Dashboard.vue?vue&type=style&index=0&id=54e0248a&lang=scss&scoped=true\"\nimport \"./Dashboard.vue?vue&type=style&index=1&id=54e0248a&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-54e0248a\"]])\n\nexport default __exports__","\n\n Object not found
\n\n\n\n\n","import { render } from \"./NotFound.vue?vue&type=template&id=49501f4d\"\nimport script from \"./NotFound.vue?vue&type=script&lang=js\"\nexport * from \"./NotFound.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n \n\n\n\n\n\n\n","import { render } from \"./Login.vue?vue&type=template&id=af0b14d0&scoped=true\"\nimport script from \"./Login.vue?vue&type=script&lang=js\"\nexport * from \"./Login.vue?vue&type=script&lang=js\"\n\nimport \"./Login.vue?vue&type=style&index=0&id=af0b14d0&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-af0b14d0\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Register.vue?vue&type=template&id=1244b238\"\nimport script from \"./Register.vue?vue&type=script&lang=js\"\nexport * from \"./Register.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n \n \n\n\n\n\n\n\n\n","\n \n\n\n\n\n\n\n","import { render } from \"./Nav.vue?vue&type=template&id=831e98ec&scoped=true\"\nimport script from \"./Nav.vue?vue&type=script&lang=js\"\nexport * from \"./Nav.vue?vue&type=script&lang=js\"\n\nimport \"./Nav.vue?vue&type=style&index=0&id=831e98ec&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-831e98ec\"]])\n\nexport default __exports__","import { render } from \"./Panel.vue?vue&type=template&id=2e3e2cc6&scoped=true\"\nimport script from \"./Panel.vue?vue&type=script&lang=js\"\nexport * from \"./Panel.vue?vue&type=script&lang=js\"\n\nimport \"./Panel.vue?vue&type=style&index=0&id=2e3e2cc6&lang=scss&scoped=true\"\nimport \"./Panel.vue?vue&type=style&index=1&id=2e3e2cc6&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2e3e2cc6\"]])\n\nexport default __exports__","\n\n \n\n \n\n\n\n\n\n \n\n\n\n\n \n \n\n\n\n\n\n\n\n","import { render } from \"./Plugin.vue?vue&type=template&id=e339182c&scoped=true\"\nimport script from \"./Plugin.vue?vue&type=script&lang=js\"\nexport * from \"./Plugin.vue?vue&type=script&lang=js\"\n\nimport \"./Plugin.vue?vue&type=style&index=0&id=e339182c&lang=scss&scoped=true\"\nimport \"./Plugin.vue?vue&type=style&index=1&id=e339182c&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-e339182c\"]])\n\nexport default __exports__","import { createWebHistory, createRouter } from \"vue-router\";\nimport Dashboard from \"@/views/Dashboard.vue\";\nimport NotFound from \"@/views/NotFound\";\nimport Login from \"@/views/Login\";\nimport Register from \"@/views/Register\";\nimport Panel from \"@/views/Panel\";\nimport Plugin from \"@/views/Plugin\";\n\nconst routes = [\n {\n path: \"/\",\n name: \"Panel\",\n component: Panel,\n },\n\n {\n path: \"/dashboard/:name\",\n name: \"Dashboard\",\n component: Dashboard,\n },\n\n {\n path: \"/plugin/:plugin\",\n name: \"Plugin\",\n component: Plugin,\n },\n\n {\n path: \"/login\",\n name: \"Login\",\n component: Login,\n },\n\n {\n path: \"/register\",\n name: \"Register\",\n component: Register,\n },\n\n {\n path: \"/:catchAll(.*)\",\n component: NotFound,\n },\n];\n\nconst router = createRouter({\n history: createWebHistory(),\n routes,\n});\n\nexport default router;\n","/* eslint-disable no-console */\n\nimport { register } from 'register-service-worker'\n\nif (process.env.NODE_ENV === 'production') {\n register(`${process.env.BASE_URL}service-worker.js`, {\n ready () {\n console.log(\n 'App is being served from cache by a service worker.\\n' +\n 'For more details, visit https://goo.gl/AFskqB'\n )\n },\n registered () {\n console.log('Service worker has been registered.')\n },\n cached () {\n console.log('Content has been cached for offline use.')\n },\n updatefound () {\n console.log('New content is downloading.')\n },\n updated () {\n console.log('New content is available; please refresh.')\n },\n offline () {\n console.log('No internet connection found. App is running in offline mode.')\n },\n error (error) {\n console.error('Error during service worker registration:', error)\n }\n })\n}\n","import { createApp } from 'vue'\nimport App from '@/App.vue'\nimport router from '@/router'\nimport './registerServiceWorker'\n\nconst app = createApp(App)\napp.config.globalProperties._config = window.config\napp.use(router).mount('#app')\n","\n\n","import script from \"./Api.vue?vue&type=script&lang=js\"\nexport * from \"./Api.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n","import script from \"./Clipboard.vue?vue&type=script&lang=js\"\nexport * from \"./Clipboard.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Cookies.vue?vue&type=script&lang=js\"\nexport * from \"./Cookies.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./DateTime.vue?vue&type=script&lang=js\"\nexport * from \"./DateTime.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Events.vue?vue&type=script&lang=js\"\nexport * from \"./Events.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Notification.vue?vue&type=script&lang=js\"\nexport * from \"./Notification.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Screen.vue?vue&type=script&lang=js\"\nexport * from \"./Screen.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Text.vue?vue&type=script&lang=js\"\nexport * from \"./Text.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Types.vue?vue&type=script&lang=js\"\nexport * from \"./Types.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import script from \"./Utils.vue?vue&type=script&lang=js\"\nexport * from \"./Utils.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n \n\n\n \n\n\n\n","import { render } from \"./Loading.vue?vue&type=template&id=4d9c871b&scoped=true\"\nconst script = {}\n\nimport \"./Loading.vue?vue&type=style&index=0&id=4d9c871b&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-4d9c871b\"]])\n\nexport default __exports__","\n\n \n\n\n\n\n\n\n\n\n","import { render } from \"./Modal.vue?vue&type=template&id=18f9fdba&scoped=true\"\nimport script from \"./Modal.vue?vue&type=script&lang=js\"\nexport * from \"./Modal.vue?vue&type=script&lang=js\"\n\nimport \"./Modal.vue?vue&type=style&index=0&id=18f9fdba&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-18f9fdba\"]])\n\nexport default __exports__","\n\n\n\n\n\n \n \n\n\n\n\n \n \n\n\n\n\n\n","import { render } from \"./ConfirmDialog.vue?vue&type=template&id=db648f4c&scoped=true\"\nimport script from \"./ConfirmDialog.vue?vue&type=script&lang=js\"\nexport * from \"./ConfirmDialog.vue?vue&type=script&lang=js\"\n\nimport \"./ConfirmDialog.vue?vue&type=style&index=0&id=db648f4c&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-db648f4c\"]])\n\nexport default __exports__","\n\n\n\n \n\n \n \n\n\n\n\n\n\n\n","import { render } from \"./Dropdown.vue?vue&type=template&id=5b964c03&scoped=true\"\nimport script from \"./Dropdown.vue?vue&type=script&lang=js\"\nexport * from \"./Dropdown.vue?vue&type=script&lang=js\"\n\nimport \"./Dropdown.vue?vue&type=style&index=0&id=5b964c03&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5b964c03\"]])\n\nexport default __exports__","\n\n\n\n \n\n\n\n\n\n\n","import { render } from \"./DropdownItem.vue?vue&type=template&id=282d16b4&scoped=true\"\nimport script from \"./DropdownItem.vue?vue&type=script&lang=js\"\nexport * from \"./DropdownItem.vue?vue&type=script&lang=js\"\n\nimport \"./DropdownItem.vue?vue&type=style&index=0&id=282d16b4&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-282d16b4\"]])\n\nexport default __exports__","\n\n\n \n\n \n \n \n\n\n\n\n\n\n","import { render } from \"./Icon.vue?vue&type=template&id=706a3bd1&scoped=true\"\nimport script from \"./Icon.vue?vue&type=script&lang=js\"\nexport * from \"./Icon.vue?vue&type=script&lang=js\"\n\nimport \"./Icon.vue?vue&type=style&index=0&id=706a3bd1&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-706a3bd1\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n\n","\n\n \n\n \n \n \n\n\n\n\n\n\n","import { render } from \"./Token.vue?vue&type=template&id=2d3c7d78\"\nimport script from \"./Token.vue?vue&type=script&lang=js\"\nexport * from \"./Token.vue?vue&type=script&lang=js\"\n\nimport \"./Token.vue?vue&type=style&index=0&id=2d3c7d78&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\n\n\n \n \n\n\n \n\n \n\n\n \n\n\n \n\n \n\n\n\n\n\n\n\n Platypush provides two types of tokens:\n\n
\n
\n \n\n- \n JWT tokens are bearer-only, and they contain encrypted\n authentication information.
\n\n
\n They can be used as permanent or time-based tokens to\n authenticate with the Platypush API.\n- \n Session tokens are randomly generated tokens stored on the\n application database. A session token generated in this session\n will expire when you log out of it.\n
\nGenerate a JWT authentication token that can be used for API calls to the
/execute
endpoint.
\nYou can include the token in your requests in any of the following ways:
\n\n\n
\n\n- Specify it on the
\nAuthorization: Bearer
header;- Specify it on the
\nX-Token
header;- \n Specify it as a URL parameter:
\nhttp://site:8008/execute?token=...
\n for a JWT token and...?session_token=...
for a\n session token;\n- Specify it on the body of your JSON request:\n
\n{\"type\":\"request\", \"action\", \"...\", \"token\":\"...\"}
for\n a JWT token, or\"session_token\"
for a session token.\nConfirm your credentials in order to generate a new JWT token.
\n\n Show session token will instead show the token cookie associated\n to the current session.\n
\n\n \n\n\n\n \n \n \n\n\n \n \n\n\n\n\n\n\n\n\n","\n\n
\n\n- \n \n
\n\n\n\n \n\n \n \n\n \n Are you sure that you want to remove the user {{ selectedUser }}?\n \n\n \n\n\n\n\n\n\n","import { render } from \"./FloatingButton.vue?vue&type=template&id=133e57f8&scoped=true\"\nimport script from \"./FloatingButton.vue?vue&type=script&lang=js\"\nexport * from \"./FloatingButton.vue?vue&type=script&lang=js\"\n\nimport \"./FloatingButton.vue?vue&type=style&index=0&id=133e57f8&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-133e57f8\"]])\n\nexport default __exports__","import { render } from \"./Users.vue?vue&type=template&id=510035f2&scoped=true\"\nimport script from \"./Users.vue?vue&type=script&lang=js\"\nexport * from \"./Users.vue?vue&type=script&lang=js\"\n\nimport \"./Users.vue?vue&type=style&index=0&id=510035f2&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-510035f2\"]])\n\nexport default __exports__","\n\n\n\n\n\n\n\n","import { render } from \"./Integrations.vue?vue&type=template&id=13775dc2\"\nimport script from \"./Integrations.vue?vue&type=script&lang=js\"\nexport * from \"./Integrations.vue?vue&type=script&lang=js\"\n\nimport \"./Integrations.vue?vue&type=style&index=0&id=13775dc2&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=45d2ac97\"\nimport script from \"./Index.vue?vue&type=script&lang=js\"\nexport * from \"./Index.vue?vue&type=script&lang=js\"\n\nimport \"./Index.vue?vue&type=style&index=0&id=45d2ac97&lang=scss\"\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","var map = {\n\t\"./Camera/Index\": [\n\t\t5324,\n\t\t8039,\n\t\t5324\n\t],\n\t\"./CameraAndroidIpcam/Index\": [\n\t\t5794,\n\t\t5794\n\t],\n\t\"./CameraCv/Index\": [\n\t\t6148,\n\t\t8039,\n\t\t6148\n\t],\n\t\"./CameraFfmpeg/Index\": [\n\t\t9334,\n\t\t8039,\n\t\t9334\n\t],\n\t\"./CameraGstreamer/Index\": [\n\t\t813,\n\t\t8039,\n\t\t813\n\t],\n\t\"./CameraIrMlx90640/Index\": [\n\t\t7381,\n\t\t8039,\n\t\t7381\n\t],\n\t\"./CameraPi/Index\": [\n\t\t8895,\n\t\t8039,\n\t\t8895\n\t],\n\t\"./Entities/Index\": [\n\t\t6217,\n\t\t4558\n\t],\n\t\"./Execute/Index\": [\n\t\t7108,\n\t\t7108\n\t],\n\t\"./Light/Index\": [\n\t\t7184,\n\t\t2471,\n\t\t5040,\n\t\t7184\n\t],\n\t\"./LightHue/Index\": [\n\t\t2976,\n\t\t2471,\n\t\t5040,\n\t\t7184,\n\t\t2976\n\t],\n\t\"./Media/Index\": [\n\t\t7143,\n\t\t2471,\n\t\t4186,\n\t\t8053,\n\t\t7143\n\t],\n\t\"./MediaMplayer/Index\": [\n\t\t3518,\n\t\t2471,\n\t\t4186,\n\t\t8053,\n\t\t7143,\n\t\t3518\n\t],\n\t\"./MediaMpv/Index\": [\n\t\t4765,\n\t\t2471,\n\t\t4186,\n\t\t8053,\n\t\t7143,\n\t\t4765\n\t],\n\t\"./MediaOmxplayer/Index\": [\n\t\t7819,\n\t\t2471,\n\t\t4186,\n\t\t8053,\n\t\t7143,\n\t\t7819\n\t],\n\t\"./MediaVlc/Index\": [\n\t\t2614,\n\t\t2471,\n\t\t4186,\n\t\t8053,\n\t\t7143,\n\t\t2614\n\t],\n\t\"./Music/Index\": [\n\t\t7473,\n\t\t2471,\n\t\t4186,\n\t\t7473\n\t],\n\t\"./MusicMpd/Index\": [\n\t\t1309,\n\t\t2471,\n\t\t4186,\n\t\t7473,\n\t\t1309\n\t],\n\t\"./MusicSnapcast/Index\": [\n\t\t7126,\n\t\t2471,\n\t\t5040,\n\t\t7126\n\t],\n\t\"./MusicSpotify/Index\": [\n\t\t2068,\n\t\t2471,\n\t\t4186,\n\t\t7473,\n\t\t2068\n\t],\n\t\"./Rtorrent/Index\": [\n\t\t2183,\n\t\t8053,\n\t\t3664,\n\t\t2183\n\t],\n\t\"./Settings/Index\": [\n\t\t7950\n\t],\n\t\"./Sound/Index\": [\n\t\t746,\n\t\t746\n\t],\n\t\"./Torrent/Index\": [\n\t\t8784,\n\t\t8053,\n\t\t3664,\n\t\t8784\n\t],\n\t\"./Tts/Index\": [\n\t\t3732,\n\t\t8069,\n\t\t3732\n\t],\n\t\"./TtsGoogle/Index\": [\n\t\t2853,\n\t\t8069,\n\t\t2853\n\t],\n\t\"./TvSamsungWs/Index\": [\n\t\t4589,\n\t\t4589\n\t],\n\t\"./ZigbeeMqtt/Index\": [\n\t\t1259,\n\t\t2471,\n\t\t5040,\n\t\t1259\n\t],\n\t\"./Zwave/Index\": [\n\t\t2732,\n\t\t2471,\n\t\t5040,\n\t\t7880,\n\t\t2732\n\t],\n\t\"./ZwaveMqtt/Index\": [\n\t\t1088,\n\t\t2471,\n\t\t5040,\n\t\t7880,\n\t\t1088\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 3379;\nmodule.exports = webpackAsyncContext;","var map = {\n\t\"./Calendar/Index\": [\n\t\t5638,\n\t\t5638\n\t],\n\t\"./Camera/Index\": [\n\t\t446,\n\t\t446\n\t],\n\t\"./Component/Index\": [\n\t\t1449,\n\t\t2471,\n\t\t5040,\n\t\t1449\n\t],\n\t\"./DateTime/Index\": [\n\t\t4619,\n\t\t1391,\n\t\t4619\n\t],\n\t\"./DateTimeWeather/Index\": [\n\t\t9962,\n\t\t3594,\n\t\t1391,\n\t\t9962\n\t],\n\t\"./ImageCarousel/Index\": [\n\t\t306,\n\t\t3594,\n\t\t1391,\n\t\t306\n\t],\n\t\"./Music/Index\": [\n\t\t311,\n\t\t311\n\t],\n\t\"./Plugin/Index\": [\n\t\t8179,\n\t\t8179\n\t],\n\t\"./RssNews/Index\": [\n\t\t6523,\n\t\t6523\n\t],\n\t\"./Weather/Index\": [\n\t\t3594,\n\t\t3594\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 6725;\nmodule.exports = webpackAsyncContext;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","var getProto = Object.getPrototypeOf ? function(obj) { return Object.getPrototypeOf(obj); } : function(obj) { return obj.__proto__; };\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });\n\t}\n\tdef['default'] = function() { return value; };\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"static/js/\" + chunkId + \".\" + {\"65\":\"ae7df477\",\"169\":\"ebdd7044\",\"306\":\"2d168c66\",\"311\":\"f31f8a7f\",\"446\":\"29d06622\",\"729\":\"e4c8c0bf\",\"746\":\"8cff4bdb\",\"813\":\"54039bae\",\"984\":\"ae424e7e\",\"1088\":\"22c3f8aa\",\"1259\":\"20c2a640\",\"1309\":\"49bc258a\",\"1391\":\"a76844c2\",\"1449\":\"a7f93282\",\"2068\":\"e1cfe490\",\"2183\":\"8cf7b0b0\",\"2217\":\"6b927594\",\"2460\":\"567e73f6\",\"2471\":\"da49c64a\",\"2614\":\"b9ec352d\",\"2732\":\"34e0816d\",\"2853\":\"81f7fb07\",\"2893\":\"519a1554\",\"2976\":\"6696a98f\",\"3368\":\"cb04738a\",\"3369\":\"c099f8d0\",\"3518\":\"8990808d\",\"3559\":\"df95d103\",\"3594\":\"c4f7c0e4\",\"3664\":\"a4d43ff7\",\"3732\":\"9d17b023\",\"3798\":\"1f9f57bb\",\"3826\":\"cc264dd1\",\"3835\":\"11129165\",\"4186\":\"79b29eca\",\"4558\":\"46b49f82\",\"4589\":\"10f6f836\",\"4619\":\"435262dc\",\"4765\":\"87ca22d5\",\"5040\":\"f02b705d\",\"5207\":\"7f241e21\",\"5324\":\"0b417d07\",\"5329\":\"444a9cf1\",\"5638\":\"58e3f91e\",\"5794\":\"2d7b6154\",\"6148\":\"d5fc2e04\",\"6362\":\"95da0eb4\",\"6523\":\"ba4f6991\",\"6561\":\"fc5ef77b\",\"7108\":\"9da656fb\",\"7126\":\"7f847c50\",\"7143\":\"d983a342\",\"7184\":\"f4e292e6\",\"7381\":\"94417af6\",\"7473\":\"56a0925a\",\"7523\":\"367c2045\",\"7590\":\"6cda174b\",\"7819\":\"0006d776\",\"7880\":\"6583990d\",\"8039\":\"951792f1\",\"8053\":\"22e4ed09\",\"8069\":\"51c1e8b1\",\"8179\":\"31718565\",\"8391\":\"119357c7\",\"8621\":\"0aa03df1\",\"8769\":\"5ea5c0cb\",\"8784\":\"fce7d104\",\"8825\":\"b660e217\",\"8895\":\"29a5da0d\",\"9334\":\"0a11d59e\",\"9624\":\"5124c411\",\"9962\":\"35d9420e\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"static/css/\" + chunkId + \".\" + {\"65\":\"cf69abd6\",\"169\":\"939fa55e\",\"306\":\"fbbaf2b7\",\"311\":\"504d6c0b\",\"446\":\"ed463bd2\",\"729\":\"9ff67cd4\",\"746\":\"25e7d5ff\",\"984\":\"e32851e8\",\"1259\":\"72a7d113\",\"1391\":\"1b22f65c\",\"1449\":\"8f1b2b15\",\"2217\":\"2d57b466\",\"2460\":\"26f651a5\",\"2471\":\"a6a32303\",\"2893\":\"f9230237\",\"2976\":\"234438b4\",\"3368\":\"428fba28\",\"3369\":\"6039e606\",\"3559\":\"dbf9c689\",\"3594\":\"3a165bb4\",\"3664\":\"c92d9d38\",\"3798\":\"75e0f6b2\",\"3826\":\"0de7c131\",\"3835\":\"e07b6aab\",\"4186\":\"b6585c35\",\"4558\":\"ebdecea6\",\"4589\":\"6d3a8446\",\"5040\":\"fcf11255\",\"5207\":\"950597e1\",\"5329\":\"6e70371b\",\"5638\":\"25d1c562\",\"5794\":\"49b1f262\",\"6523\":\"4bf56b11\",\"6561\":\"208265a1\",\"7108\":\"b4d51481\",\"7126\":\"a0725ecc\",\"7143\":\"539db457\",\"7184\":\"6ad0f775\",\"7473\":\"16d1dc39\",\"7523\":\"22ccd2ae\",\"7590\":\"079e3fe8\",\"7880\":\"a114eea0\",\"8039\":\"22b025de\",\"8053\":\"2e68c420\",\"8069\":\"58663e3e\",\"8179\":\"8db287b9\",\"8391\":\"8217f6c4\",\"8621\":\"cb98ee18\",\"8769\":\"41af0eac\",\"8825\":\"05c5466d\",\"9624\":\"fe6b5dbe\",\"9962\":\"bec1b050\"}[chunkId] + \".css\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"platypush:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"/\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + realHref + \")\");\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t2143: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"65\":1,\"169\":1,\"306\":1,\"311\":1,\"446\":1,\"729\":1,\"746\":1,\"984\":1,\"1259\":1,\"1391\":1,\"1449\":1,\"2217\":1,\"2460\":1,\"2471\":1,\"2893\":1,\"2976\":1,\"3368\":1,\"3369\":1,\"3559\":1,\"3594\":1,\"3664\":1,\"3798\":1,\"3826\":1,\"3835\":1,\"4186\":1,\"4558\":1,\"4589\":1,\"5040\":1,\"5207\":1,\"5329\":1,\"5638\":1,\"5794\":1,\"6523\":1,\"6561\":1,\"7108\":1,\"7126\":1,\"7143\":1,\"7184\":1,\"7473\":1,\"7523\":1,\"7590\":1,\"7880\":1,\"8039\":1,\"8053\":1,\"8069\":1,\"8179\":1,\"8391\":1,\"8621\":1,\"8769\":1,\"8825\":1,\"9624\":1,\"9962\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t2143: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(!/^(80(39|53|69)|(139|247|656)1|3826|5040)$/.test(chunkId)) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkplatypush\"] = self[\"webpackChunkplatypush\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [4998], function() { return __webpack_require__(1789); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["bus","mitt","publishEntity","entity","emit","onEntity","callback","on","publishNotification","notification","onNotification","$options","hasWebsocket","_createBlock","_component_Events","ref","_createVNode","_component_Notifications","hasAssistant","_component_VoiceAssistant","hasPushbullet","_component_Pushbullet","hasNtfy","_component_Ntfy","_component_ConfirmDialog","onInput","installPWA","_component_router_view","class","_createElementBlock","_hoisted_1","_Fragment","_renderList","_ctx","notifications","id","index","_component_Notification","key","text","html","title","link","image","warning","error","onClicked","destroy","_normalizeClass","$props","onClick","_cache","args","clicked","_toDisplayString","_createElementVNode","_hoisted_2","_hoisted_3","_hoisted_4","src","alt","icon","style","_normalizeStyle","color","iconClass","_hoisted_6","_hoisted_7","innerHTML","name","props","methods","this","window","open","$emit","__exports__","components","Notification","duration","type","Number","default","data","timeouts","create","parseInt","setTimeout","bind","ws","initialized","pending","opened","timeout","reconnectMsecs","minReconnectMsecs","maxReconnectMsecs","handlers","handlerNameToEventTypes","onWebsocketTimeout","console","log","Math","min","close","onClose","onMessage","event","JSON","parse","e","warn","debug","push","Object","values","handler","Array","Function","onOpen","onclose","clearTimeout","undefined","onError","code","reason","init","protocol","location","url","host","WebSocket","err","onmessage","onopen","onerror","subscribe","msg","events","length","handlerName","unsubscribe","keys","created","_hoisted_9","_component_Modal","$data","state","alerting","responding","speechRecognized","_hoisted_5","listening","_hoisted_8","_hoisted_10","_hoisted_11","phrase","_hoisted_13","responseText","Modal","mixins","Utils","hideTimeout","reset","conversationStart","$refs","assistantModal","show","conversationEnd","self","response","response_text","alertOn","alertOff","registerHandlers","mounted","notify","message","push_type","body","ConfirmDialog","Pushbullet","Ntfy","Notifications","Events","VoiceAssistant","config","userAuthenticated","pwaInstallEvent","computed","initConfig","request","prompt","pwaDialog","beforeMount","getCookie","addEventListener","preventDefault","setCookie","expires","Date","getTime","render","loading","_component_Loading","classes","rows","row","i","_component_Row","widgets","widget","j","_KeepAlive","_component_Widget","_resolveDynamicComponent","component","_normalizeProps","_guardReactiveProps","getWidgetProps","_renderSlot","$slots","String","required","split","concat","Widget","Loading","Row","refreshSeconds","parseTemplate","tmpl","node","DOMParser","parseFromString","childNodes","attributes","nodeValue","getElementsByTagName","map","children","el","shallowRef","defineAsyncComponent","nodeName","attrs","reduce","obj","content","refreshDashboard","$route","params","template","notifyError","setInterval","toFixed","method","placeholder","_register","value","register","Boolean","parseBoolean","_component_Login","Login","_component_Nav","panels","selectedPanel","selectedConfigPanel","hostname","onSelect","$event","onSelectConfig","_component_Settings","panel","hidden","href","collapsed","onItemClick","configSections","selected","imgUrl","panelNames","_hoisted_16","icons","_hoisted_18","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","emits","homeIdx","indexOf","slice","sort","collapsedDefault","isMobile","isTablet","Settings","Nav","plugins","backends","procedures","initSelectedPanel","match","hash","plugin","initPanels","entries","forEach","async","componentName","token","toUpperCase","join","comp","pluginName","parseConfig","Promise","all","initializeDefaultViews","execute","entities","initPanel","toString","routes","path","Panel","Dashboard","Plugin","Register","NotFound","router","createRouter","history","createWebHistory","ready","registered","cached","updatefound","updated","offline","app","createApp","App","globalProperties","_config","use","mount","showError","opts","resolve","reject","axios","then","errors","output","catch","action","copyToClipboard","navigator","clipboard","writeText","getCookies","document","cookie","item","k","v","toISOString","deleteCookie","formatDate","date","year","toDateString","substring","formatTime","seconds","toTimeString","formatDateTime","_eventsReady","$root","subFunc","generateId","unwatch","$watch","newVal","btoa","fromCharCode","round","random","notifyWarning","matchMedia","matches","isDesktop","capitalize","charAt","prettify","t","indent","spaces","repeat","toLowerCase","convertSize","unit","units","u","convertTime","time","ret","parseFloat","d","h","m","s","objectsEqual","a","b","p","Api","Clipboard","Cookies","DateTime","Screen","Text","Types","n","script","isVisible","zIndex","$attrs","width","height","stopPropagation","onModalClose","visible","level","timeoutId","prevVisible","hide","toggle","onKeyUp","visibleHndl","unmounted","removeEventListener","maxZIndex","getComputedStyle","$el","outermostModals","modal","querySelectorAll","onSubmit","_withModifiers","onConfirm","onTouch","confirmText","cancelText","items","keepOpenOnItemClick","documentClickHndl","element","target","dropdown","parentElement","left","top","button","getBoundingClientRect","innerWidth","clientWidth","innerHeight","clientHeight","itemClass","iconUrl","_component_Icon","Icon","disabled","$parent","className","currentUser","_component_Users","sessionToken","_component_Token","_component_Integrations","onFocus","onTokenSelect","generateToken","username","_hoisted_14","_hoisted_15","sessionTokenModal","password","validityDays","expiry_days","tokenModal","select","execCommand","createUser","commandRunning","changePassword","selectedUser","users","user","user_id","_component_Dropdown","_component_DropdownItem","showChangePasswordModal","deleteUserDialog","_component_FloatingButton","showAddUserModal","deleteUser","Dropdown","DropdownItem","FloatingButton","refresh","form","addUserForm","input","confirm_password","session_token","addUserModal","changePasswordForm","new_password","confirm_new_password","success","old_password","changePasswordModal","$nextTick","focus","loadIntegrations","Users","Token","Integrations","webpackAsyncContext","req","__webpack_require__","o","Error","ids","module","exports","__webpack_module_cache__","moduleId","cachedModule","__webpack_modules__","call","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","every","splice","r","getter","__esModule","leafPrototypes","getProto","getPrototypeOf","__proto__","mode","ns","def","current","getOwnPropertyNames","definition","defineProperty","enumerable","get","f","chunkId","promises","miniCssF","g","globalThis","prop","prototype","hasOwnProperty","inProgress","dataWebpackPrefix","l","done","needAttach","scripts","getAttribute","createElement","charset","nc","setAttribute","onScriptComplete","prev","onload","doneFns","parentNode","removeChild","head","appendChild","Symbol","toStringTag","createStylesheet","fullhref","oldTag","linkTag","rel","onLinkComplete","errorType","realHref","insertBefore","nextSibling","findStylesheet","existingLinkTags","tag","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","installedChunks","installedChunkData","test","promise","loadingEnded","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file\n\n \n \n\n