diff --git a/platypush/backend/http/webapp/dist/index.html b/platypush/backend/http/webapp/dist/index.html index 47f25853b..dcd5058a1 100644 --- a/platypush/backend/http/webapp/dist/index.html +++ b/platypush/backend/http/webapp/dist/index.html @@ -1 +1 @@ -platypush
\ No newline at end of file +platypush
\ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/3053-legacy.74849fdd.js b/platypush/backend/http/webapp/dist/static/js/3053-legacy.1f30ce63.js similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/3053-legacy.74849fdd.js rename to platypush/backend/http/webapp/dist/static/js/3053-legacy.1f30ce63.js index 261453edd..5384635dc 100644 --- a/platypush/backend/http/webapp/dist/static/js/3053-legacy.74849fdd.js +++ b/platypush/backend/http/webapp/dist/static/js/3053-legacy.1f30ce63.js @@ -1,2 +1,2 @@ -(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[3053],{4964:function(e,t,n){var i=n(5112),r=i("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(i){}}return!1}},3929:function(e,t,n){var i=n(7850),r=TypeError;e.exports=function(e){if(i(e))throw r("The method doesn't accept regular expressions");return e}},7852:function(e,t,n){"use strict";var i=n(2109),r=n(1702),o=n(1236).f,s=n(7466),l=n(1340),a=n(3929),u=n(4488),c=n(4964),d=n(1913),f=r("".endsWith),p=r("".slice),v=Math.min,m=c("endsWith"),h=!d&&!m&&!!function(){var e=o(String.prototype,"endsWith");return e&&!e.writable}();i({target:"String",proto:!0,forced:!h&&!m},{endsWith:function(e){var t=l(u(this));a(e);var n=arguments.length>1?arguments[1]:void 0,i=t.length,r=void 0===n?i:v(s(n),i),o=l(e);return f?f(t,o,r):p(t,r-o.length,r)===o}})},6755:function(e,t,n){"use strict";var i=n(2109),r=n(1702),o=n(1236).f,s=n(7466),l=n(1340),a=n(3929),u=n(4488),c=n(4964),d=n(1913),f=r("".startsWith),p=r("".slice),v=Math.min,m=c("startsWith"),h=!d&&!m&&!!function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}();i({target:"String",proto:!0,forced:!h&&!m},{startsWith:function(e){var t=l(u(this));a(e);var n=s(v(arguments.length>1?arguments[1]:void 0,t.length)),i=l(e);return f?f(t,i,n):p(t,n,n+i.length)===i}})},3053:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});n(8309);var i=n(6252),r=n(3577),o=n(9963),s={key:0,class:"children fade-in"};function l(e,t,n,l,a,u){var c,d,f,p=(0,i.up)("Entity",!0);return(0,i.wg)(),(0,i.iD)("div",{class:(0,r.C_)(["entity-container-wrapper",{"with-children":u.hasChildren,collapsed:u.isCollapsed,hidden:!(null!==(c=e.value)&&void 0!==c&&null!==(d=c.name)&&void 0!==d&&d.length)}])},[(0,i._)("div",{class:(0,r.C_)(["row item entity-container",{"with-children":u.hasChildren,collapsed:u.isCollapsed,blink:a.justUpdated}])},[(0,i._)("div",{class:(0,r.C_)(["adjuster",{"col-12":!u.hasChildren,"col-11":u.hasChildren}])},[((0,i.wg)(),(0,i.j4)((0,i.LL)(a.component),{value:e.value,loading:e.loading,ref:"instance",error:e.error||0==(null===(f=e.value)||void 0===f?void 0:f.reachable),onClick:u.onClick,onInput:t[0]||(t[0]=function(t){return e.$emit("input",t)}),onLoading:t[1]||(t[1]=function(t){return e.$emit("loading",t)})},null,8,["value","loading","error","onClick"]))],2),u.hasChildren?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"col-1 collapse-toggler",onClick:t[2]||(t[2]=(0,o.iM)((function(){return u.toggleCollapsed&&u.toggleCollapsed.apply(u,arguments)}),["stop"]))},[(0,i._)("i",{class:(0,r.C_)(["fas",{"fa-chevron-down":u.isCollapsed,"fa-chevron-up":!u.isCollapsed}])},null,2)])):(0,i.kq)("",!0)],2),u.isCollapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("div",s,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(u.computedChildren,(function(t){return(0,i.wg)(),(0,i.iD)("div",{class:"child",key:t.id},[(0,i.Wm)(p,{value:t,loading:e.loading,level:e.level+1,onInput:function(n){return e.$emit("input",t)}},null,8,["value","loading","level","onInput"])])})),128))]))],2)}var a=n(4648),u=(n(7327),n(1539),n(2479),n(9600),n(1249),n(4916),n(3123),n(7042),n(8783),n(3948),n(2262)),c=n(7909),d=n(5250),f={name:"Entity",mixins:[c["default"]],emits:["input","loading","update"],data:function(){return{component:null,justUpdated:!1}},computed:{computedChildren:function(){return Object.values(this.children||{}).filter((function(e){return e}))},hasChildren:function(){return!!this.computedChildren.length},isCollapsed:function(){return!this.hasChildren||this.collapsed},instance:function(){return this.$refs.instance}},methods:{valuesEqual:function(e,t){e=(0,a.Z)({},e),t=(0,a.Z)({},t);for(var n=0,i=["updated_at","data"];n0})).map((function(t){var n=(0,D.Z)(t,2),i=n[0],r=n[1];return{name:i,entities:r.filter((function(t){return t.id in e.selector.selectedEntities}))}})).sort((function(e,t){return e.name.localeCompare(t.name)}))}},methods:{groupEntities:function(e){return Object.values(this.entities).filter((function(e){return null==e.parent_id})).reduce((function(t,n){var i=t[n[e]]||{};return i[n.id]=n,t[n[e]]=Object.values(i).sort((function(e,t){return e.name.localeCompare(t.name)})),t}),{})},_shouldSkipLoading:function(e){var t=Object.values(this.childrenByParentId(e.id)),n=t.filter((function(e){return!e.is_configuration&&!e.is_write_only&&!e.is_query_disabled})).length>0;return e.is_query_disabled||e.is_write_only||t.length&&!n},refresh:function(e){var t=this;return(0,I.Z)(regeneratorRuntime.mark((function n(){var i,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=(e?e.entities:t.entities)||{},r={},e&&(r.plugins=Object.keys(i.reduce((function(e,t){return e[t.plugin]=!0,e}),{}))),t.loadingEntities=Object.values(i).reduce((function(e,n){if(t._shouldSkipLoading(n))return e;var i=t,r=n.id;return t.entityTimeouts[r]&&clearTimeout(t.entityTimeouts[r]),t.entityTimeouts[r]=setTimeout((function(){i.loadingEntities[r]&&delete i.loadingEntities[r],i.entityTimeouts[r]&&delete i.entityTimeouts[r],i.errorEntities[r]=n,console.warn("Scan timeout for ".concat(n.name))}),1e3*t.entityScanTimeout),e[r]=!0,e}),{}),n.next=6,t.request("entities.scan",r);case 6:case"end":return n.stop()}}),n)})))()},sync:function(){var e=this;return(0,I.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("entities.get");case 4:e.entities=t.sent.reduce((function(e,t){var n;return t.name=(null===t||void 0===t||null===(n=t.meta)||void 0===n?void 0:n.name_override)||t.name,t.category=z[t.type].name_plural,t.meta=(0,x.Z)((0,x.Z)({},z[t.type]||{}),t.meta||{}),e[t.id]=t,e}),{}),e.selector.selectedEntities=e.entityGroups.id;case 6:return t.prev=6,e.loading=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[1,,6,9]])})))()},childrenByParentId:function(e){return Object.values(this.entities).filter((function(t){return t&&t.parent_id===e&&!t.is_configuration})).reduce((function(e,t){return e[t.id]=t,e}),{})},configValuesByParentId:function(e){return Object.values(this.entities).filter((function(t){return t&&t.parent_id===e&&t.is_configuration})).reduce((function(e,t){return e[t.id]=t,e}),{})},clearEntityTimeouts:function(e){this.errorEntities[e]&&delete this.errorEntities[e],this.loadingEntities[e]&&delete this.loadingEntities[e],this.entityTimeouts[e]&&(clearTimeout(this.entityTimeouts[e]),delete this.entityTimeouts[e])},onEntityInput:function(e){e.category=z[e.type].name_plural,this.entities[e.id]=e,this.clearEntityTimeouts(e.id),this.loadingEntities[e.id]&&delete this.loadingEntities[e.id]},onEntityUpdate:function(e){var t,n,i,r,o,s,l,a,u,c,d,f=e.entity.id;if(null!=f){this.clearEntityTimeouts(f);var p=(0,x.Z)({},e.entity);null==(null===(t=e.entity)||void 0===t?void 0:t.state)&&(p.state=null===(n=this.entities[f])||void 0===n?void 0:n.state),null!==(i=p.meta)&&void 0!==i&&null!==(r=i.name_override)&&void 0!==r&&r.length?p.name=p.meta.name_override:null!==(o=this.entities[f])&&void 0!==o&&null!==(s=o.meta)&&void 0!==s&&null!==(l=s.name_override)&&void 0!==l&&l.length?p.name=this.entities[f].meta.name_override:p.name=(null===(a=e.entity)||void 0===a?void 0:a.name)||(null===(u=this.entities[f])||void 0===u?void 0:u.name),p.category=z[p.type].name_plural,p.meta=(0,x.Z)((0,x.Z)((0,x.Z)({},z[e.entity.type]||{}),(null===(c=this.entities[f])||void 0===c?void 0:c.meta)||{}),(null===(d=e.entity)||void 0===d?void 0:d.meta)||{}),this.entities[f]=p,W.$.publishEntity(p)}},onEntityDelete:function(e){var t,n=null===(t=e.entity)||void 0===t?void 0:t.id;null!=n&&(n===this.modalEntityId&&(this.modalEntityId=null),this.entities[n]&&delete this.entities[n])},onEntityModal:function(e){e?(this.modalEntityId=e,this.modalVisible=!0):(this.modalEntityId=null,this.modalVisible=!1)}},mounted:function(){var e=this;return(0,I.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.subscribe(e.onEntityUpdate,"on-entity-update","platypush.message.event.entities.EntityUpdateEvent"),e.subscribe(e.onEntityDelete,"on-entity-delete","platypush.message.event.entities.EntityDeleteEvent"),t.next=4,e.sync();case 4:return t.next=6,e.refresh();case 6:case"end":return t.stop()}}),t)})))()},unmounted:function(){this.unsubscribe("on-entity-update")}};const P=(0,M.Z)(F,[["render",S],["__scopeId","data-v-51aa9db3"]]);var H=P},8472:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Xe}});n(8309),n(2526),n(1817);var i=n(6252),r=n(3577),o=function(e){return(0,i.dD)("data-v-48d9692c"),e=e(),(0,i.Cn)(),e},s=(0,i.Uk)(" Are you "),l=o((function(){return(0,i._)("b",null,"sure",-1)})),a=(0,i.Uk)(" that you want to delete this entity? "),u=o((function(){return(0,i._)("br",null,null,-1)})),c=o((function(){return(0,i._)("br",null,null,-1)})),d=(0,i.Uk)(" Note: you should only delete an entity if its plugin has been disabled or the entity is no longer reachable."),f=o((function(){return(0,i._)("br",null,null,-1)})),p=o((function(){return(0,i._)("br",null,null,-1)})),v=(0,i.Uk)(" Otherwise, the entity will simply be created again upon the next scan. "),m={class:"table-row"},h={class:"title"},g=(0,i.Uk)(" Name "),y={class:"value"},_=["textContent"],w={class:"table-row"},b={class:"title"},k=(0,i.Uk)(" Icon "),C={class:"value icon-canvas"},E={key:0,class:"icon-editor"},S=o((function(){return(0,i._)("i",{class:"fas fa-rotate-left"},null,-1)})),x=[S],I=o((function(){return(0,i._)("span",{class:"help"},[(0,i.Uk)(" Supported: image URLs or "),(0,i._)("a",{href:"https://fontawesome.com/icons",target:"_blank"},"FontAwesome icon classes"),(0,i.Uk)(". ")],-1)})),D={class:"table-row"},j=o((function(){return(0,i._)("div",{class:"title"}," Icon color ",-1)})),G={class:"value icon-color-picker"},T=["value"],Z=o((function(){return(0,i._)("i",{class:"fas fa-rotate-left"},null,-1)})),q=[Z],O={class:"table-row"},U=o((function(){return(0,i._)("div",{class:"title"},"Plugin",-1)})),M=["textContent"],$={class:"table-row"},B=o((function(){return(0,i._)("div",{class:"title"},"Internal ID",-1)})),L=["textContent"],R={key:0,class:"table-row"},N=o((function(){return(0,i._)("div",{class:"title"},"External ID",-1)})),W=["textContent"],V={key:1,class:"table-row"},z=o((function(){return(0,i._)("div",{class:"title"},"Description",-1)})),F=["textContent"],P={key:2,class:"table-row"},H=o((function(){return(0,i._)("div",{class:"title"},"External URL",-1)})),K={class:"value url"},Y=["href","text"],A={key:3,class:"table-row"},J=o((function(){return(0,i._)("div",{class:"title"},"Image",-1)})),Q={class:"value"},X=["src"],ee={key:0,class:"table-row"},te=["textContent"],ne=["textContent"],ie={key:4,class:"table-row"},re=o((function(){return(0,i._)("div",{class:"title"},"Created at",-1)})),oe=["textContent"],se={key:5,class:"table-row"},le=o((function(){return(0,i._)("div",{class:"title"},"Updated at",-1)})),ae=["textContent"],ue={class:"table-row delete-entity-container"},ce=o((function(){return(0,i._)("div",{class:"title"},"Delete Entity",-1)})),de={class:"value"},fe=o((function(){return(0,i._)("i",{class:"fas fa-trash"},null,-1)})),pe=[fe],ve={key:6,class:"config-container"},me=o((function(){return(0,i._)("div",{class:"col-11"},[(0,i._)("i",{class:"fas fa-screwdriver-wrench"}),(0,i.Uk)("   Configuration ")],-1)})),he={class:"col-1 pull-right"},ge={key:0,class:"entities"};function ye(e,t,n,o,S,Z){var fe=(0,i.up)("ConfirmDialog"),ye=(0,i.up)("EditButton"),_e=(0,i.up)("NameEditor"),we=(0,i.up)("Icon"),be=(0,i.up)("Entity"),ke=(0,i.up)("Modal",!0);return n.entity?((0,i.wg)(),(0,i.j4)(ke,{key:0,visible:n.visible,class:"entity-modal",title:n.entity.name||n.entity.external_id},{default:(0,i.w5)((function(){var o,ke,Ce,Ee,Se,xe,Ie,De;return[(0,i.Wm)(fe,{ref:"deleteConfirmDiag",title:"Confirm entity deletion",onInput:Z.onDelete},{default:(0,i.w5)((function(){return[s,l,a,u,c,d,f,p,v]})),_:1},8,["onInput"]),(0,i._)("div",m,[(0,i._)("div",h,[g,S.editName?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(ye,{key:0,onClick:t[0]||(t[0]=function(e){return S.editName=!0})}))]),(0,i._)("div",y,[S.editName?((0,i.wg)(),(0,i.j4)(_e,{key:0,value:n.entity.name,onInput:Z.onRename,onCancel:t[1]||(t[1]=function(e){return S.editName=!1}),disabled:S.loading},null,8,["value","onInput","disabled"])):((0,i.wg)(),(0,i.iD)("span",{key:1,textContent:(0,r.zw)(n.entity.name)},null,8,_))])]),(0,i._)("div",w,[(0,i._)("div",b,[k,S.editIcon?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(ye,{key:0,onClick:t[2]||(t[2]=function(e){return S.editIcon=!0})}))]),(0,i._)("div",C,[S.editIcon?((0,i.wg)(),(0,i.iD)("span",E,[(0,i.Wm)(_e,{value:(null===(o=n.entity.meta)||void 0===o||null===(ke=o.icon)||void 0===ke?void 0:ke.class)||(null===(Ce=n.entity.meta)||void 0===Ce||null===(Ee=Ce.icon)||void 0===Ee?void 0:Ee.url),onInput:Z.onIconEdit,onCancel:t[5]||(t[5]=function(e){return S.editIcon=!1}),disabled:S.loading},{default:(0,i.w5)((function(){return[(0,i._)("button",{type:"button",title:"Reset",onClick:t[3]||(t[3]=function(e){return Z.onIconEdit(null)}),onTouch:t[4]||(t[4]=function(e){return Z.onIconEdit(null)})},x,32)]})),_:1},8,["value","onInput","disabled"]),I])):((0,i.wg)(),(0,i.j4)(we,(0,r.vs)((0,i.dG)({key:1},(null===(Se=n.entity)||void 0===Se||null===(xe=Se.meta)||void 0===xe?void 0:xe.icon)||{})),null,16))])]),(0,i._)("div",D,[j,(0,i._)("div",G,[(0,i._)("input",{type:"color",value:null===(Ie=n.entity.meta)||void 0===Ie||null===(De=Ie.icon)||void 0===De?void 0:De.color,onChange:t[6]||(t[6]=function(){return Z.onIconColorEdit&&Z.onIconColorEdit.apply(Z,arguments)})},null,40,T),(0,i._)("button",{type:"button",title:"Reset",onClick:t[7]||(t[7]=function(e){return Z.onIconColorEdit(null)}),onTouch:t[8]||(t[8]=function(e){return Z.onIconColorEdit(null)})},q,32)])]),(0,i._)("div",O,[U,(0,i._)("div",{class:"value",textContent:(0,r.zw)(n.entity.plugin)},null,8,M)]),(0,i._)("div",$,[B,(0,i._)("div",{class:"value",textContent:(0,r.zw)(n.entity.id)},null,8,L)]),n.entity.external_id?((0,i.wg)(),(0,i.iD)("div",R,[N,(0,i._)("div",{class:"value",textContent:(0,r.zw)(n.entity.external_id)},null,8,W)])):(0,i.kq)("",!0),n.entity.description?((0,i.wg)(),(0,i.iD)("div",V,[z,(0,i._)("div",{class:"value",textContent:(0,r.zw)(n.entity.description)},null,8,F)])):(0,i.kq)("",!0),n.entity.external_url?((0,i.wg)(),(0,i.iD)("div",P,[H,(0,i._)("div",K,[(0,i._)("a",{href:n.entity.external_url,target:"_blank",text:n.entity.external_url},null,8,Y)])])):(0,i.kq)("",!0),n.entity.image_url?((0,i.wg)(),(0,i.iD)("div",A,[J,(0,i._)("div",Q,[(0,i._)("img",{class:"entity-image",src:n.entity.image_url},null,8,X)])])):(0,i.kq)("",!0),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(n.entity.data||{},(function(t,n){return(0,i.wg)(),(0,i.iD)("div",{key:n},[null!=t?((0,i.wg)(),(0,i.iD)("div",ee,[(0,i._)("div",{class:"title",textContent:(0,r.zw)(e.prettify(n))},null,8,te),(0,i._)("div",{class:"value",textContent:(0,r.zw)(""+t)},null,8,ne)])):(0,i.kq)("",!0)])})),128)),n.entity.created_at?((0,i.wg)(),(0,i.iD)("div",ie,[re,(0,i._)("div",{class:"value",textContent:(0,r.zw)(e.formatDateTime(n.entity.created_at))},null,8,oe)])):(0,i.kq)("",!0),n.entity.updated_at?((0,i.wg)(),(0,i.iD)("div",se,[le,(0,i._)("div",{class:"value",textContent:(0,r.zw)(e.formatDateTime(n.entity.updated_at))},null,8,ae)])):(0,i.kq)("",!0),(0,i._)("div",ue,[ce,(0,i._)("div",de,[(0,i._)("button",{onClick:t[9]||(t[9]=function(t){return e.$refs.deleteConfirmDiag.show()})},pe)])]),Z.computedConfig.length?((0,i.wg)(),(0,i.iD)("div",ve,[(0,i._)("div",{class:"title",onClick:t[10]||(t[10]=function(e){return S.configCollapsed=!S.configCollapsed})},[me,(0,i._)("div",he,[(0,i._)("i",{class:(0,r.C_)(["fas",{"fa-chevron-down":S.configCollapsed,"fa-chevron-up":!S.configCollapsed}])},null,2)])]),S.configCollapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("div",ge,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(Z.computedConfig,(function(t){return(0,i.wg)(),(0,i.j4)(be,{key:t.id,value:t,onInput:function(n){return e.$emit("input",t)}},null,8,["value","onInput"])})),128))]))])):(0,i.kq)("",!0)]})),_:1},8,["visible","title"])):(0,i.kq)("",!0)}var _e=n(8534),we=(n(5666),n(2707),n(2479),n(6755),n(8453)),be=n(1478),ke=n(9963),Ce=function(e){return(0,i.dD)("data-v-d543b3e4"),e=e(),(0,i.Cn)(),e},Ee={class:"dialog-content"},Se=Ce((function(){return(0,i._)("i",{class:"fas fa-check"},null,-1)})),xe=Ce((function(){return(0,i._)("i",{class:"fas fa-xmark"},null,-1)}));function Ie(e,t,n,o,s,l){var a=(0,i.up)("Modal");return(0,i.wg)(),(0,i.j4)(a,{ref:"modal",title:n.title},{default:(0,i.w5)((function(){return[(0,i._)("div",Ee,[(0,i.WI)(e.$slots,"default",{},void 0,!0)]),(0,i._)("form",{class:"buttons",onSubmit:t[4]||(t[4]=(0,ke.iM)((function(){return l.onConfirm&&l.onConfirm.apply(l,arguments)}),["prevent"]))},[(0,i._)("button",{type:"submit",class:"ok-btn",onClick:t[0]||(t[0]=function(){return l.onConfirm&&l.onConfirm.apply(l,arguments)}),onTouch:t[1]||(t[1]=function(){return l.onConfirm&&l.onConfirm.apply(l,arguments)})},[Se,(0,i.Uk)("   "+(0,r.zw)(n.confirmText),1)],32),(0,i._)("button",{type:"button",class:"cancel-btn",onClick:t[2]||(t[2]=function(){return l.close&&l.close.apply(l,arguments)}),onTouch:t[3]||(t[3]=function(){return l.close&&l.close.apply(l,arguments)})},[xe,(0,i.Uk)("   "+(0,r.zw)(n.cancelText),1)],32)],32)]})),_:3},8,["title"])}var De={emits:["input","click","touch"],components:{Modal:we.Z},props:{title:{type:String},confirmText:{type:String,default:"OK"},cancelText:{type:String,default:"Cancel"}},methods:{onConfirm:function(){this.$emit("input"),this.close()},show:function(){this.$refs.modal.show()},close:function(){this.$refs.modal.hide()}}},je=n(3744);const Ge=(0,je.Z)(De,[["render",Ie],["__scopeId","data-v-d543b3e4"]]);var Te=Ge,Ze=function(e){return(0,i.dD)("data-v-3344f2bf"),e=e(),(0,i.Cn)(),e},qe=Ze((function(){return(0,i._)("i",{class:"fas fa-pen-to-square"},null,-1)})),Oe=[qe];function Ue(e,t,n,r,o,s){return(0,i.wg)(),(0,i.iD)("button",{class:"edit-btn",onClick:t[0]||(t[0]=function(e){return s.proxy(e)}),onTouch:t[1]||(t[1]=function(e){return s.proxy(e)}),onInput:t[2]||(t[2]=function(e){return s.proxy(e)})},Oe,32)}var Me={emits:["input","click","touch"],methods:{proxy:function(e){this.$emit(e.type,e)}}};const $e=(0,je.Z)(Me,[["render",Ue],["__scopeId","data-v-3344f2bf"]]);var Be=$e,Le=function(e){return(0,i.dD)("data-v-1405d90f"),e=e(),(0,i.Cn)(),e},Re=["disabled"],Ne=Le((function(){return(0,i._)("button",{type:"submit"},[(0,i._)("i",{class:"fas fa-circle-check"})],-1)})),We=Le((function(){return(0,i._)("i",{class:"fas fa-ban"},null,-1)})),Ve=[We];function ze(e,t,n,r,o,s){return(0,i.wg)(),(0,i.iD)("form",{onSubmit:t[3]||(t[3]=(0,ke.iM)((function(){return s.submit&&s.submit.apply(s,arguments)}),["prevent"])),class:"name-editor"},[(0,i.wy)((0,i._)("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=function(e){return o.text=e}),disabled:n.disabled},null,8,Re),[[ke.nr,o.text]]),Ne,(0,i._)("button",{class:"cancel",onClick:t[1]||(t[1]=function(t){return e.$emit("cancel")}),onTouch:t[2]||(t[2]=function(t){return e.$emit("cancel")})},Ve,32),(0,i.WI)(e.$slots,"default",{},void 0,!0)],32)}var Fe={emits:["input","cancel"],props:{value:{type:String},disabled:{type:Boolean,deafult:!1}},data:function(){return{text:null}},methods:{proxy:function(e){this.$emit(e.type,e)},submit:function(){return this.$emit("input",this.text),!1}},mounted:function(){this.text=this.value}};const Pe=(0,je.Z)(Fe,[["render",ze],["__scopeId","data-v-1405d90f"]]);var He=Pe,Ke=n(6813),Ye=n(3053),Ae=n(7369),Je={name:"EntityModal",components:{Entity:Ye["default"],Modal:we.Z,EditButton:Be,NameEditor:He,Icon:be.Z,ConfirmDialog:Te},mixins:[Ke.Z],emits:["input","loading"],props:{entity:{type:Object,required:!0},visible:{type:Boolean,default:!1},configValues:{type:Object,default:function(){}}},computed:{computedConfig:function(){return Object.values(this.configValues).sort((function(e,t){return(e.name||"").localeCompare(t.name||"")}))}},data:function(){return{loading:!1,editName:!1,editIcon:!1,configCollapsed:!0}},methods:{onRename:function(e){var t=this;return(0,_e.Z)(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.loading=!0,n.prev=1,i={},i[t.entity.id]=e,n.next=6,t.request("entities.rename",i);case 6:return n.prev=6,t.loading=!1,t.editName=!1,n.finish(6);case 10:case"end":return n.stop()}}),n,null,[[1,,6,10]])})))()},onDelete:function(){var e=this;return(0,_e.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("entities.delete",[e.entity.id]);case 4:return t.prev=4,e.loading=!1,t.finish(4);case 7:case"end":return t.stop()}}),t,null,[[1,,4,7]])})))()},onIconEdit:function(e){var t=this;return(0,_e.Z)(regeneratorRuntime.mark((function n(){var i,r,o,s,l,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.loading=!0,n.prev=1,i={url:null,class:null},null!==e&&void 0!==e&&e.length?e.startsWith("http")?i.url=e:i.class=e:(i.url=null===(r=Ae[t.entity.type]||{})||void 0===r||null===(o=r.icon)||void 0===o?void 0:o.url,i.class=null===(s=Ae[t.entity.type]||{})||void 0===s||null===(l=s.icon)||void 0===l?void 0:l["class"]),a={},a[t.entity.id]={icon:i},n.next=8,t.request("entities.set_meta",a);case 8:return n.prev=8,t.loading=!1,t.editIcon=!1,n.finish(8);case 12:case"end":return n.stop()}}),n,null,[[1,,8,12]])})))()},onIconColorEdit:function(e){var t=this;return(0,_e.Z)(regeneratorRuntime.mark((function n(){var i,r,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.loading=!0,n.prev=1,r=(null===(i=t.entity.meta)||void 0===i?void 0:i.icon)||{},r.color=e?e.target.value:null,o={},o[t.entity.id]={icon:r},n.next=8,t.request("entities.set_meta",o);case 8:return n.prev=8,t.loading=!1,t.editIcon=!1,n.finish(8);case 12:case"end":return n.stop()}}),n,null,[[1,,8,12]])})))()}}};const Qe=(0,je.Z)(Je,[["render",ye],["__scopeId","data-v-48d9692c"]]);var Xe=Qe},6518:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _}});n(7941);var i=n(6252),r=n(3577),o=n(9963),s={class:"entities-selectors-container"},l={class:"selector"},a={key:1,class:"selector"};function u(e,t,n,u,c,d){var f,p=(0,i.up)("DropdownItem"),v=(0,i.up)("Dropdown");return(0,i.wg)(),(0,i.iD)("div",s,[(0,i._)("div",l,[(0,i.Wm)(v,{title:"Group by","icon-class":"fas fa-object-ungroup",ref:"groupingSelector"},{default:(0,i.w5)((function(){return[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(d.visibleGroupings,(function(e){var t;return(0,i.wg)(),(0,i.j4)(p,{key:e,text:d.prettifyGroupingName(e),"item-class":{selected:(null===(t=n.value)||void 0===t?void 0:t.grouping)===e},onClick:function(t){return d.onGroupingChanged(e)}},null,8,["text","item-class","onClick"])})),128))]})),_:1},512)]),null!==(f=n.value)&&void 0!==f&&f.grouping?((0,i.wg)(),(0,i.iD)("div",{key:0,class:(0,r.C_)(["selector",{active:d.isGroupFilterActive}])},[(0,i.Wm)(v,{title:"Filter by","icon-class":"fas fa-filter",ref:"groupSelector","keep-open-on-item-click":""},{default:(0,i.w5)((function(){return[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(d.sortedGroups,(function(e){return(0,i.wg)(),(0,i.j4)(p,(0,i.dG)({key:e,text:e},d.iconForGroup(e),{"item-class":{selected:!!c.selectedGroups[e]},onClick:(0,o.iM)((function(t){return d.toggleGroup(e)}),["stop"])}),null,16,["text","item-class","onClick"])})),128))]})),_:1},512)],2)):(0,i.kq)("",!0),Object.keys(n.entityGroups.id||{}).length?((0,i.wg)(),(0,i.iD)("div",a,[(0,i.wy)((0,i._)("input",{ref:"search",type:"text",class:"search-bar",placeholder:"🔎","onUpdate:modelValue":t[0]||(t[0]=function(e){return c.searchTerm=e})},null,512),[[o.nr,c.searchTerm]])])):(0,i.kq)("",!0)])}var c=n(4648),d=(n(7327),n(1539),n(2707),n(2479),n(8309),n(9714),n(7852),n(7042),n(6813)),f=n(5771),p=n(2684),v=n(7369),m=n(1359),h={name:"Selector",emits:["input"],mixins:[d.Z],components:{Dropdown:f.Z,DropdownItem:p.Z},props:{entityGroups:{type:Object,required:!0},value:{type:Object,required:!0}},data:function(){return{selectedGroups:{},searchTerm:""}},computed:{visibleGroupings:function(){return Object.keys(this.entityGroups).filter((function(e){return"id"!==e}))},sortedGroups:function(){var e;return Object.keys(this.entityGroups[null===(e=this.value)||void 0===e?void 0:e.grouping]||{}).sort()},typesMeta:function(){return v},isGroupFilterActive:function(){return Object.keys(this.selectedGroups).length!==this.sortedGroups.length},selectedEntities:function(){var e=this;return Object.values(this.entityGroups.id).filter((function(t){var n,i;if(!e.selectedGroups[t[null===(n=e.value)||void 0===n?void 0:n.grouping]])return!1;if(null!==(i=e.searchTerm)&&void 0!==i&&i.length){var r=e.searchTerm.toLowerCase();return(t.name||"").toLowerCase().indexOf(r)>=0||(t.plugin||"").toLowerCase().indexOf(r)>=0||(t.external_id||"").toLowerCase().indexOf(r)>=0||(t.id||0).toString()==r}return!0})).reduce((function(e,t){return e[t.id]=t,e}),{})}},methods:{prettifyGroupingName:function(e){return e?(e=this.prettify(e),e.endsWith("y")&&(e=e.slice(0,e.length-1)+"ie"),e+="s",e):""},iconForGroup:function(e){if("plugin"===this.value.grouping&&m[e]){var t,n,i=m[e];return{"icon-class":null!==(t=i["class"])&&void 0!==t&&t.length||null===(n=i.imgUrl)||void 0===n||!n.length?i["class"]:"fas fa-gears","icon-url":i.imgUrl}}return{}},synchronizeSelectedEntities:function(){var e=(0,c.Z)({},this.value);e.selectedEntities=this.selectedEntities,this.$emit("input",e)},updateSearchTerm:function(){var e=(0,c.Z)({},this.value);e.searchTerm=this.searchTerm,e.selectedEntities=this.selectedEntities,this.$emit("input",e)},refreshGroupFilter:function(e){var t;if(e)this.selectedGroups=Object.keys(this.entityGroups[null===(t=this.value)||void 0===t?void 0:t.grouping]||{}).reduce((function(e,t){return e[t]=!0,e}),{});else for(var n=0,i=Object.keys(this.entityGroups[null===(r=this.value)||void 0===r?void 0:r.grouping]);n1?arguments[1]:void 0,i=t.length,r=void 0===n?i:v(s(n),i),o=l(e);return f?f(t,o,r):p(t,r-o.length,r)===o}})},6755:function(e,t,n){"use strict";var i=n(2109),r=n(1702),o=n(1236).f,s=n(7466),l=n(1340),a=n(3929),u=n(4488),c=n(4964),d=n(1913),f=r("".startsWith),p=r("".slice),v=Math.min,m=c("startsWith"),h=!d&&!m&&!!function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}();i({target:"String",proto:!0,forced:!h&&!m},{startsWith:function(e){var t=l(u(this));a(e);var n=s(v(arguments.length>1?arguments[1]:void 0,t.length)),i=l(e);return f?f(t,i,n):p(t,n,n+i.length)===i}})},3053:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});n(8309);var i=n(6252),r=n(3577),o=n(9963),s={key:0,class:"children fade-in"};function l(e,t,n,l,a,u){var c,d,f,p=(0,i.up)("Entity",!0);return(0,i.wg)(),(0,i.iD)("div",{class:(0,r.C_)(["entity-container-wrapper",{"with-children":u.hasChildren,collapsed:u.isCollapsed,hidden:!(null!==(c=e.value)&&void 0!==c&&null!==(d=c.name)&&void 0!==d&&d.length)}])},[(0,i._)("div",{class:(0,r.C_)(["row item entity-container",{"with-children":u.hasChildren,collapsed:u.isCollapsed,blink:a.justUpdated}])},[(0,i._)("div",{class:(0,r.C_)(["adjuster",{"col-12":!u.hasChildren,"col-11":u.hasChildren}])},[((0,i.wg)(),(0,i.j4)((0,i.LL)(a.component),{value:e.value,loading:e.loading,ref:"instance",error:e.error||0==(null===(f=e.value)||void 0===f?void 0:f.reachable),onClick:u.onClick,onInput:t[0]||(t[0]=function(t){return e.$emit("input",t)}),onLoading:t[1]||(t[1]=function(t){return e.$emit("loading",t)})},null,8,["value","loading","error","onClick"]))],2),u.hasChildren?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"col-1 collapse-toggler",onClick:t[2]||(t[2]=(0,o.iM)((function(){return u.toggleCollapsed&&u.toggleCollapsed.apply(u,arguments)}),["stop"]))},[(0,i._)("i",{class:(0,r.C_)(["fas",{"fa-chevron-down":u.isCollapsed,"fa-chevron-up":!u.isCollapsed}])},null,2)])):(0,i.kq)("",!0)],2),u.isCollapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("div",s,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(u.computedChildren,(function(t){return(0,i.wg)(),(0,i.iD)("div",{class:"child",key:t.id},[(0,i.Wm)(p,{value:t,loading:e.loading,level:e.level+1,onInput:function(n){return e.$emit("input",t)}},null,8,["value","loading","level","onInput"])])})),128))]))],2)}var a=n(4648),u=(n(7327),n(1539),n(2479),n(9600),n(1249),n(4916),n(3123),n(7042),n(8783),n(3948),n(2262)),c=n(7909),d=n(5250),f={name:"Entity",mixins:[c["default"]],emits:["input","loading","update"],data:function(){return{component:null,justUpdated:!1}},computed:{computedChildren:function(){return Object.values(this.children||{}).filter((function(e){return e}))},hasChildren:function(){return!!this.computedChildren.length},isCollapsed:function(){return!this.hasChildren||this.collapsed},instance:function(){return this.$refs.instance}},methods:{valuesEqual:function(e,t){e=(0,a.Z)({},e),t=(0,a.Z)({},t);for(var n=0,i=["updated_at","data"];n0})).map((function(t){var n=(0,D.Z)(t,2),i=n[0],r=n[1];return{name:i,entities:r.filter((function(t){return t.id in e.selector.selectedEntities}))}})).sort((function(e,t){return e.name.localeCompare(t.name)}))}},methods:{groupEntities:function(e){return Object.values(this.entities).filter((function(e){return null==e.parent_id})).reduce((function(t,n){var i=t[n[e]]||{};return i[n.id]=n,t[n[e]]=Object.values(i).sort((function(e,t){return e.name.localeCompare(t.name)})),t}),{})},_shouldSkipLoading:function(e){var t=Object.values(this.childrenByParentId(e.id)),n=t.filter((function(e){return!e.is_configuration&&!e.is_write_only&&!e.is_query_disabled})).length>0;return e.is_query_disabled||e.is_write_only||t.length&&!n},refresh:function(e){var t=this;return(0,I.Z)(regeneratorRuntime.mark((function n(){var i,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=(e?e.entities:t.entities)||{},r={},e&&(r.plugins=Object.keys(i.reduce((function(e,t){return e[t.plugin]=!0,e}),{}))),t.loadingEntities=Object.values(i).reduce((function(e,n){if(t._shouldSkipLoading(n))return e;var i=t,r=n.id;return t.entityTimeouts[r]&&clearTimeout(t.entityTimeouts[r]),t.entityTimeouts[r]=setTimeout((function(){i.loadingEntities[r]&&delete i.loadingEntities[r],i.entityTimeouts[r]&&delete i.entityTimeouts[r],i.errorEntities[r]=n,console.warn("Scan timeout for ".concat(n.name))}),1e3*t.entityScanTimeout),e[r]=!0,e}),{}),n.next=6,t.request("entities.scan",r);case 6:case"end":return n.stop()}}),n)})))()},sync:function(){var e=this;return(0,I.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("entities.get");case 4:e.entities=t.sent.reduce((function(e,t){var n;return t.name=(null===t||void 0===t||null===(n=t.meta)||void 0===n?void 0:n.name_override)||t.name,t.category=z[t.type].name_plural,t.meta=(0,x.Z)((0,x.Z)({},z[t.type]||{}),t.meta||{}),e[t.id]=t,e}),{}),e.selector.selectedEntities=e.entityGroups.id;case 6:return t.prev=6,e.loading=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[1,,6,9]])})))()},childrenByParentId:function(e){return Object.values(this.entities).filter((function(t){return t&&t.parent_id===e&&!t.is_configuration})).reduce((function(e,t){return e[t.id]=t,e}),{})},configValuesByParentId:function(e){return Object.values(this.entities).filter((function(t){return t&&t.parent_id===e&&t.is_configuration})).reduce((function(e,t){return e[t.id]=t,e}),{})},clearEntityTimeouts:function(e){this.errorEntities[e]&&delete this.errorEntities[e],this.loadingEntities[e]&&delete this.loadingEntities[e],this.entityTimeouts[e]&&(clearTimeout(this.entityTimeouts[e]),delete this.entityTimeouts[e])},onEntityInput:function(e){e.category=z[e.type].name_plural,this.entities[e.id]=e,this.clearEntityTimeouts(e.id),this.loadingEntities[e.id]&&delete this.loadingEntities[e.id]},onEntityUpdate:function(e){var t,n,i,r,o,s,l,a,u,c,d,f=e.entity.id;if(null!=f){this.clearEntityTimeouts(f);var p=(0,x.Z)({},e.entity);null==(null===(t=e.entity)||void 0===t?void 0:t.state)&&(p.state=null===(n=this.entities[f])||void 0===n?void 0:n.state),null!==(i=p.meta)&&void 0!==i&&null!==(r=i.name_override)&&void 0!==r&&r.length?p.name=p.meta.name_override:null!==(o=this.entities[f])&&void 0!==o&&null!==(s=o.meta)&&void 0!==s&&null!==(l=s.name_override)&&void 0!==l&&l.length?p.name=this.entities[f].meta.name_override:p.name=(null===(a=e.entity)||void 0===a?void 0:a.name)||(null===(u=this.entities[f])||void 0===u?void 0:u.name),p.category=z[p.type].name_plural,p.meta=(0,x.Z)((0,x.Z)((0,x.Z)({},z[e.entity.type]||{}),(null===(c=this.entities[f])||void 0===c?void 0:c.meta)||{}),(null===(d=e.entity)||void 0===d?void 0:d.meta)||{}),this.entities[f]=p,W.$.publishEntity(p)}},onEntityDelete:function(e){var t,n=null===(t=e.entity)||void 0===t?void 0:t.id;null!=n&&(n===this.modalEntityId&&(this.modalEntityId=null),this.entities[n]&&delete this.entities[n])},onEntityModal:function(e){e?(this.modalEntityId=e,this.modalVisible=!0):(this.modalEntityId=null,this.modalVisible=!1)}},mounted:function(){var e=this;return(0,I.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.subscribe(e.onEntityUpdate,"on-entity-update","platypush.message.event.entities.EntityUpdateEvent"),e.subscribe(e.onEntityDelete,"on-entity-delete","platypush.message.event.entities.EntityDeleteEvent"),t.next=4,e.sync();case 4:return t.next=6,e.refresh();case 6:case"end":return t.stop()}}),t)})))()},unmounted:function(){this.unsubscribe("on-entity-update")}};const P=(0,M.Z)(F,[["render",S],["__scopeId","data-v-51aa9db3"]]);var H=P},8472:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Xe}});n(8309),n(2526),n(1817);var i=n(6252),r=n(3577),o=function(e){return(0,i.dD)("data-v-48d9692c"),e=e(),(0,i.Cn)(),e},s=(0,i.Uk)(" Are you "),l=o((function(){return(0,i._)("b",null,"sure",-1)})),a=(0,i.Uk)(" that you want to delete this entity? "),u=o((function(){return(0,i._)("br",null,null,-1)})),c=o((function(){return(0,i._)("br",null,null,-1)})),d=(0,i.Uk)(" Note: you should only delete an entity if its plugin has been disabled or the entity is no longer reachable."),f=o((function(){return(0,i._)("br",null,null,-1)})),p=o((function(){return(0,i._)("br",null,null,-1)})),v=(0,i.Uk)(" Otherwise, the entity will simply be created again upon the next scan. "),m={class:"table-row"},h={class:"title"},g=(0,i.Uk)(" Name "),y={class:"value"},_=["textContent"],w={class:"table-row"},b={class:"title"},k=(0,i.Uk)(" Icon "),C={class:"value icon-canvas"},E={key:0,class:"icon-editor"},S=o((function(){return(0,i._)("i",{class:"fas fa-rotate-left"},null,-1)})),x=[S],I=o((function(){return(0,i._)("span",{class:"help"},[(0,i.Uk)(" Supported: image URLs or "),(0,i._)("a",{href:"https://fontawesome.com/icons",target:"_blank"},"FontAwesome icon classes"),(0,i.Uk)(". ")],-1)})),D={class:"table-row"},j=o((function(){return(0,i._)("div",{class:"title"}," Icon color ",-1)})),G={class:"value icon-color-picker"},T=["value"],Z=o((function(){return(0,i._)("i",{class:"fas fa-rotate-left"},null,-1)})),q=[Z],O={class:"table-row"},U=o((function(){return(0,i._)("div",{class:"title"},"Plugin",-1)})),M=["textContent"],$={class:"table-row"},B=o((function(){return(0,i._)("div",{class:"title"},"Internal ID",-1)})),L=["textContent"],R={key:0,class:"table-row"},N=o((function(){return(0,i._)("div",{class:"title"},"External ID",-1)})),W=["textContent"],V={key:1,class:"table-row"},z=o((function(){return(0,i._)("div",{class:"title"},"Description",-1)})),F=["textContent"],P={key:2,class:"table-row"},H=o((function(){return(0,i._)("div",{class:"title"},"External URL",-1)})),K={class:"value url"},Y=["href","text"],A={key:3,class:"table-row"},J=o((function(){return(0,i._)("div",{class:"title"},"Image",-1)})),Q={class:"value"},X=["src"],ee={key:0,class:"table-row"},te=["textContent"],ne=["textContent"],ie={key:4,class:"table-row"},re=o((function(){return(0,i._)("div",{class:"title"},"Created at",-1)})),oe=["textContent"],se={key:5,class:"table-row"},le=o((function(){return(0,i._)("div",{class:"title"},"Updated at",-1)})),ae=["textContent"],ue={class:"table-row delete-entity-container"},ce=o((function(){return(0,i._)("div",{class:"title"},"Delete Entity",-1)})),de={class:"value"},fe=o((function(){return(0,i._)("i",{class:"fas fa-trash"},null,-1)})),pe=[fe],ve={key:6,class:"config-container"},me=o((function(){return(0,i._)("div",{class:"col-11"},[(0,i._)("i",{class:"fas fa-screwdriver-wrench"}),(0,i.Uk)("   Configuration ")],-1)})),he={class:"col-1 pull-right"},ge={key:0,class:"entities"};function ye(e,t,n,o,S,Z){var fe=(0,i.up)("ConfirmDialog"),ye=(0,i.up)("EditButton"),_e=(0,i.up)("NameEditor"),we=(0,i.up)("Icon"),be=(0,i.up)("Entity"),ke=(0,i.up)("Modal",!0);return n.entity?((0,i.wg)(),(0,i.j4)(ke,{key:0,visible:n.visible,class:"entity-modal",title:n.entity.name||n.entity.external_id},{default:(0,i.w5)((function(){var o,ke,Ce,Ee,Se,xe,Ie,De;return[(0,i.Wm)(fe,{ref:"deleteConfirmDiag",title:"Confirm entity deletion",onInput:Z.onDelete},{default:(0,i.w5)((function(){return[s,l,a,u,c,d,f,p,v]})),_:1},8,["onInput"]),(0,i._)("div",m,[(0,i._)("div",h,[g,S.editName?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(ye,{key:0,onClick:t[0]||(t[0]=function(e){return S.editName=!0})}))]),(0,i._)("div",y,[S.editName?((0,i.wg)(),(0,i.j4)(_e,{key:0,value:n.entity.name,onInput:Z.onRename,onCancel:t[1]||(t[1]=function(e){return S.editName=!1}),disabled:S.loading},null,8,["value","onInput","disabled"])):((0,i.wg)(),(0,i.iD)("span",{key:1,textContent:(0,r.zw)(n.entity.name)},null,8,_))])]),(0,i._)("div",w,[(0,i._)("div",b,[k,S.editIcon?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(ye,{key:0,onClick:t[2]||(t[2]=function(e){return S.editIcon=!0})}))]),(0,i._)("div",C,[S.editIcon?((0,i.wg)(),(0,i.iD)("span",E,[(0,i.Wm)(_e,{value:(null===(o=n.entity.meta)||void 0===o||null===(ke=o.icon)||void 0===ke?void 0:ke.class)||(null===(Ce=n.entity.meta)||void 0===Ce||null===(Ee=Ce.icon)||void 0===Ee?void 0:Ee.url),onInput:Z.onIconEdit,onCancel:t[5]||(t[5]=function(e){return S.editIcon=!1}),disabled:S.loading},{default:(0,i.w5)((function(){return[(0,i._)("button",{type:"button",title:"Reset",onClick:t[3]||(t[3]=function(e){return Z.onIconEdit(null)}),onTouch:t[4]||(t[4]=function(e){return Z.onIconEdit(null)})},x,32)]})),_:1},8,["value","onInput","disabled"]),I])):((0,i.wg)(),(0,i.j4)(we,(0,r.vs)((0,i.dG)({key:1},(null===(Se=n.entity)||void 0===Se||null===(xe=Se.meta)||void 0===xe?void 0:xe.icon)||{})),null,16))])]),(0,i._)("div",D,[j,(0,i._)("div",G,[(0,i._)("input",{type:"color",value:null===(Ie=n.entity.meta)||void 0===Ie||null===(De=Ie.icon)||void 0===De?void 0:De.color,onChange:t[6]||(t[6]=function(){return Z.onIconColorEdit&&Z.onIconColorEdit.apply(Z,arguments)})},null,40,T),(0,i._)("button",{type:"button",title:"Reset",onClick:t[7]||(t[7]=function(e){return Z.onIconColorEdit(null)}),onTouch:t[8]||(t[8]=function(e){return Z.onIconColorEdit(null)})},q,32)])]),(0,i._)("div",O,[U,(0,i._)("div",{class:"value",textContent:(0,r.zw)(n.entity.plugin)},null,8,M)]),(0,i._)("div",$,[B,(0,i._)("div",{class:"value",textContent:(0,r.zw)(n.entity.id)},null,8,L)]),n.entity.external_id?((0,i.wg)(),(0,i.iD)("div",R,[N,(0,i._)("div",{class:"value",textContent:(0,r.zw)(n.entity.external_id)},null,8,W)])):(0,i.kq)("",!0),n.entity.description?((0,i.wg)(),(0,i.iD)("div",V,[z,(0,i._)("div",{class:"value",textContent:(0,r.zw)(n.entity.description)},null,8,F)])):(0,i.kq)("",!0),n.entity.external_url?((0,i.wg)(),(0,i.iD)("div",P,[H,(0,i._)("div",K,[(0,i._)("a",{href:n.entity.external_url,target:"_blank",text:n.entity.external_url},null,8,Y)])])):(0,i.kq)("",!0),n.entity.image_url?((0,i.wg)(),(0,i.iD)("div",A,[J,(0,i._)("div",Q,[(0,i._)("img",{class:"entity-image",src:n.entity.image_url},null,8,X)])])):(0,i.kq)("",!0),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(n.entity.data||{},(function(t,n){return(0,i.wg)(),(0,i.iD)("div",{key:n},[null!=t?((0,i.wg)(),(0,i.iD)("div",ee,[(0,i._)("div",{class:"title",textContent:(0,r.zw)(e.prettify(n))},null,8,te),(0,i._)("div",{class:"value",textContent:(0,r.zw)(""+t)},null,8,ne)])):(0,i.kq)("",!0)])})),128)),n.entity.created_at?((0,i.wg)(),(0,i.iD)("div",ie,[re,(0,i._)("div",{class:"value",textContent:(0,r.zw)(e.formatDateTime(n.entity.created_at))},null,8,oe)])):(0,i.kq)("",!0),n.entity.updated_at?((0,i.wg)(),(0,i.iD)("div",se,[le,(0,i._)("div",{class:"value",textContent:(0,r.zw)(e.formatDateTime(n.entity.updated_at))},null,8,ae)])):(0,i.kq)("",!0),(0,i._)("div",ue,[ce,(0,i._)("div",de,[(0,i._)("button",{onClick:t[9]||(t[9]=function(t){return e.$refs.deleteConfirmDiag.show()})},pe)])]),Z.computedConfig.length?((0,i.wg)(),(0,i.iD)("div",ve,[(0,i._)("div",{class:"title",onClick:t[10]||(t[10]=function(e){return S.configCollapsed=!S.configCollapsed})},[me,(0,i._)("div",he,[(0,i._)("i",{class:(0,r.C_)(["fas",{"fa-chevron-down":S.configCollapsed,"fa-chevron-up":!S.configCollapsed}])},null,2)])]),S.configCollapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("div",ge,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(Z.computedConfig,(function(t){return(0,i.wg)(),(0,i.j4)(be,{key:t.id,value:t,onInput:function(n){return e.$emit("input",t)}},null,8,["value","onInput"])})),128))]))])):(0,i.kq)("",!0)]})),_:1},8,["visible","title"])):(0,i.kq)("",!0)}var _e=n(8534),we=(n(5666),n(2707),n(2479),n(6755),n(8453)),be=n(1478),ke=n(9963),Ce=function(e){return(0,i.dD)("data-v-d543b3e4"),e=e(),(0,i.Cn)(),e},Ee={class:"dialog-content"},Se=Ce((function(){return(0,i._)("i",{class:"fas fa-check"},null,-1)})),xe=Ce((function(){return(0,i._)("i",{class:"fas fa-xmark"},null,-1)}));function Ie(e,t,n,o,s,l){var a=(0,i.up)("Modal");return(0,i.wg)(),(0,i.j4)(a,{ref:"modal",title:n.title},{default:(0,i.w5)((function(){return[(0,i._)("div",Ee,[(0,i.WI)(e.$slots,"default",{},void 0,!0)]),(0,i._)("form",{class:"buttons",onSubmit:t[4]||(t[4]=(0,ke.iM)((function(){return l.onConfirm&&l.onConfirm.apply(l,arguments)}),["prevent"]))},[(0,i._)("button",{type:"submit",class:"ok-btn",onClick:t[0]||(t[0]=function(){return l.onConfirm&&l.onConfirm.apply(l,arguments)}),onTouch:t[1]||(t[1]=function(){return l.onConfirm&&l.onConfirm.apply(l,arguments)})},[Se,(0,i.Uk)("   "+(0,r.zw)(n.confirmText),1)],32),(0,i._)("button",{type:"button",class:"cancel-btn",onClick:t[2]||(t[2]=function(){return l.close&&l.close.apply(l,arguments)}),onTouch:t[3]||(t[3]=function(){return l.close&&l.close.apply(l,arguments)})},[xe,(0,i.Uk)("   "+(0,r.zw)(n.cancelText),1)],32)],32)]})),_:3},8,["title"])}var De={emits:["input","click","touch"],components:{Modal:we.Z},props:{title:{type:String},confirmText:{type:String,default:"OK"},cancelText:{type:String,default:"Cancel"}},methods:{onConfirm:function(){this.$emit("input"),this.close()},show:function(){this.$refs.modal.show()},close:function(){this.$refs.modal.hide()}}},je=n(3744);const Ge=(0,je.Z)(De,[["render",Ie],["__scopeId","data-v-d543b3e4"]]);var Te=Ge,Ze=function(e){return(0,i.dD)("data-v-3344f2bf"),e=e(),(0,i.Cn)(),e},qe=Ze((function(){return(0,i._)("i",{class:"fas fa-pen-to-square"},null,-1)})),Oe=[qe];function Ue(e,t,n,r,o,s){return(0,i.wg)(),(0,i.iD)("button",{class:"edit-btn",onClick:t[0]||(t[0]=function(e){return s.proxy(e)}),onTouch:t[1]||(t[1]=function(e){return s.proxy(e)}),onInput:t[2]||(t[2]=function(e){return s.proxy(e)})},Oe,32)}var Me={emits:["input","click","touch"],methods:{proxy:function(e){this.$emit(e.type,e)}}};const $e=(0,je.Z)(Me,[["render",Ue],["__scopeId","data-v-3344f2bf"]]);var Be=$e,Le=function(e){return(0,i.dD)("data-v-1405d90f"),e=e(),(0,i.Cn)(),e},Re=["disabled"],Ne=Le((function(){return(0,i._)("button",{type:"submit"},[(0,i._)("i",{class:"fas fa-circle-check"})],-1)})),We=Le((function(){return(0,i._)("i",{class:"fas fa-ban"},null,-1)})),Ve=[We];function ze(e,t,n,r,o,s){return(0,i.wg)(),(0,i.iD)("form",{onSubmit:t[3]||(t[3]=(0,ke.iM)((function(){return s.submit&&s.submit.apply(s,arguments)}),["prevent"])),class:"name-editor"},[(0,i.wy)((0,i._)("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=function(e){return o.text=e}),disabled:n.disabled},null,8,Re),[[ke.nr,o.text]]),Ne,(0,i._)("button",{class:"cancel",onClick:t[1]||(t[1]=function(t){return e.$emit("cancel")}),onTouch:t[2]||(t[2]=function(t){return e.$emit("cancel")})},Ve,32),(0,i.WI)(e.$slots,"default",{},void 0,!0)],32)}var Fe={emits:["input","cancel"],props:{value:{type:String},disabled:{type:Boolean,deafult:!1}},data:function(){return{text:null}},methods:{proxy:function(e){this.$emit(e.type,e)},submit:function(){return this.$emit("input",this.text),!1}},mounted:function(){this.text=this.value}};const Pe=(0,je.Z)(Fe,[["render",ze],["__scopeId","data-v-1405d90f"]]);var He=Pe,Ke=n(6813),Ye=n(3053),Ae=n(7369),Je={name:"EntityModal",components:{Entity:Ye["default"],Modal:we.Z,EditButton:Be,NameEditor:He,Icon:be.Z,ConfirmDialog:Te},mixins:[Ke.Z],emits:["input","loading"],props:{entity:{type:Object,required:!0},visible:{type:Boolean,default:!1},configValues:{type:Object,default:function(){}}},computed:{computedConfig:function(){return Object.values(this.configValues).sort((function(e,t){return(e.name||"").localeCompare(t.name||"")}))}},data:function(){return{loading:!1,editName:!1,editIcon:!1,configCollapsed:!0}},methods:{onRename:function(e){var t=this;return(0,_e.Z)(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.loading=!0,n.prev=1,i={},i[t.entity.id]=e,n.next=6,t.request("entities.rename",i);case 6:return n.prev=6,t.loading=!1,t.editName=!1,n.finish(6);case 10:case"end":return n.stop()}}),n,null,[[1,,6,10]])})))()},onDelete:function(){var e=this;return(0,_e.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("entities.delete",[e.entity.id]);case 4:return t.prev=4,e.loading=!1,t.finish(4);case 7:case"end":return t.stop()}}),t,null,[[1,,4,7]])})))()},onIconEdit:function(e){var t=this;return(0,_e.Z)(regeneratorRuntime.mark((function n(){var i,r,o,s,l,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.loading=!0,n.prev=1,i={url:null,class:null},null!==e&&void 0!==e&&e.length?e.startsWith("http")?i.url=e:i.class=e:(i.url=null===(r=Ae[t.entity.type]||{})||void 0===r||null===(o=r.icon)||void 0===o?void 0:o.url,i.class=null===(s=Ae[t.entity.type]||{})||void 0===s||null===(l=s.icon)||void 0===l?void 0:l["class"]),a={},a[t.entity.id]={icon:i},n.next=8,t.request("entities.set_meta",a);case 8:return n.prev=8,t.loading=!1,t.editIcon=!1,n.finish(8);case 12:case"end":return n.stop()}}),n,null,[[1,,8,12]])})))()},onIconColorEdit:function(e){var t=this;return(0,_e.Z)(regeneratorRuntime.mark((function n(){var i,r,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return t.loading=!0,n.prev=1,r=(null===(i=t.entity.meta)||void 0===i?void 0:i.icon)||{},r.color=e?e.target.value:null,o={},o[t.entity.id]={icon:r},n.next=8,t.request("entities.set_meta",o);case 8:return n.prev=8,t.loading=!1,t.editIcon=!1,n.finish(8);case 12:case"end":return n.stop()}}),n,null,[[1,,8,12]])})))()}}};const Qe=(0,je.Z)(Je,[["render",ye],["__scopeId","data-v-48d9692c"]]);var Xe=Qe},6518:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _}});n(7941);var i=n(6252),r=n(3577),o=n(9963),s={class:"entities-selectors-container"},l={class:"selector"},a={key:1,class:"selector"};function u(e,t,n,u,c,d){var f,p=(0,i.up)("DropdownItem"),v=(0,i.up)("Dropdown");return(0,i.wg)(),(0,i.iD)("div",s,[(0,i._)("div",l,[(0,i.Wm)(v,{title:"Group by","icon-class":"fas fa-object-ungroup",ref:"groupingSelector"},{default:(0,i.w5)((function(){return[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(d.visibleGroupings,(function(e){var t;return(0,i.wg)(),(0,i.j4)(p,{key:e,text:d.prettifyGroupingName(e),"item-class":{selected:(null===(t=n.value)||void 0===t?void 0:t.grouping)===e},onClick:function(t){return d.onGroupingChanged(e)}},null,8,["text","item-class","onClick"])})),128))]})),_:1},512)]),null!==(f=n.value)&&void 0!==f&&f.grouping?((0,i.wg)(),(0,i.iD)("div",{key:0,class:(0,r.C_)(["selector",{active:d.isGroupFilterActive}])},[(0,i.Wm)(v,{title:"Filter by","icon-class":"fas fa-filter",ref:"groupSelector","keep-open-on-item-click":""},{default:(0,i.w5)((function(){return[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(d.sortedGroups,(function(e){return(0,i.wg)(),(0,i.j4)(p,(0,i.dG)({key:e,text:e},d.iconForGroup(e),{"item-class":{selected:!!c.selectedGroups[e]},onClick:(0,o.iM)((function(t){return d.toggleGroup(e)}),["stop"])}),null,16,["text","item-class","onClick"])})),128))]})),_:1},512)],2)):(0,i.kq)("",!0),Object.keys(n.entityGroups.id||{}).length?((0,i.wg)(),(0,i.iD)("div",a,[(0,i.wy)((0,i._)("input",{ref:"search",type:"text",class:"search-bar",placeholder:"🔎","onUpdate:modelValue":t[0]||(t[0]=function(e){return c.searchTerm=e})},null,512),[[o.nr,c.searchTerm]])])):(0,i.kq)("",!0)])}var c=n(4648),d=(n(7327),n(1539),n(2707),n(2479),n(8309),n(9714),n(7852),n(7042),n(6813)),f=n(5771),p=n(2684),v=n(7369),m=n(1359),h={name:"Selector",emits:["input"],mixins:[d.Z],components:{Dropdown:f.Z,DropdownItem:p.Z},props:{entityGroups:{type:Object,required:!0},value:{type:Object,required:!0}},data:function(){return{selectedGroups:{},searchTerm:""}},computed:{visibleGroupings:function(){return Object.keys(this.entityGroups).filter((function(e){return"id"!==e}))},sortedGroups:function(){var e;return Object.keys(this.entityGroups[null===(e=this.value)||void 0===e?void 0:e.grouping]||{}).sort()},typesMeta:function(){return v},isGroupFilterActive:function(){return Object.keys(this.selectedGroups).length!==this.sortedGroups.length},selectedEntities:function(){var e=this;return Object.values(this.entityGroups.id).filter((function(t){var n,i;if(!e.selectedGroups[t[null===(n=e.value)||void 0===n?void 0:n.grouping]])return!1;if(null!==(i=e.searchTerm)&&void 0!==i&&i.length){var r=e.searchTerm.toLowerCase();return(t.name||"").toLowerCase().indexOf(r)>=0||(t.plugin||"").toLowerCase().indexOf(r)>=0||(t.external_id||"").toLowerCase().indexOf(r)>=0||(t.id||0).toString()==r}return!0})).reduce((function(e,t){return e[t.id]=t,e}),{})}},methods:{prettifyGroupingName:function(e){return e?(e=this.prettify(e),e.endsWith("y")&&(e=e.slice(0,e.length-1)+"ie"),e+="s",e):""},iconForGroup:function(e){if("plugin"===this.value.grouping&&m[e]){var t,n,i=m[e];return{"icon-class":null!==(t=i["class"])&&void 0!==t&&t.length||null===(n=i.imgUrl)||void 0===n||!n.length?i["class"]:"fas fa-gears","icon-url":i.imgUrl}}return{}},synchronizeSelectedEntities:function(){var e=(0,c.Z)({},this.value);e.selectedEntities=this.selectedEntities,this.$emit("input",e)},updateSearchTerm:function(){var e=(0,c.Z)({},this.value);e.searchTerm=this.searchTerm,e.selectedEntities=this.selectedEntities,this.$emit("input",e)},refreshGroupFilter:function(e){var t;if(e)this.selectedGroups=Object.keys(this.entityGroups[null===(t=this.value)||void 0===t?void 0:t.grouping]||{}).reduce((function(e,t){return e[t]=!0,e}),{});else for(var n=0,i=Object.keys(this.entityGroups[null===(r=this.value)||void 0===r?void 0:r.grouping]);n 1 ? arguments[1] : undefined;\n var len = that.length;\n var end = endPosition === undefined ? len : min(toLength(endPosition), len);\n var search = toString(searchString);\n return un$EndsWith\n ? un$EndsWith(that, search, end)\n : slice(that, end - search.length, end) === search;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\nvar IS_PURE = require('../internals/is-pure');\n\n// eslint-disable-next-line es-x/no-string-prototype-startswith -- safe\nvar un$StartsWith = uncurryThis(''.startsWith);\nvar stringSlice = uncurryThis(''.slice);\nvar min = Math.min;\n\nvar CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');\n// https://github.com/zloirock/core-js/pull/702\nvar MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {\n var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');\n return descriptor && !descriptor.writable;\n}();\n\n// `String.prototype.startsWith` method\n// https://tc39.es/ecma262/#sec-string.prototype.startswith\n$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {\n startsWith: function startsWith(searchString /* , position = 0 */) {\n var that = toString(requireObjectCoercible(this));\n notARegExp(searchString);\n var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));\n var search = toString(searchString);\n return un$StartsWith\n ? un$StartsWith(that, search, index)\n : stringSlice(that, index, index + search.length) === search;\n }\n});\n","\n\n\n\n\n","import { render } from \"./Entity.vue?vue&type=template&id=70080e98&scoped=true\"\nimport script from \"./Entity.vue?vue&type=script&lang=js\"\nexport * from \"./Entity.vue?vue&type=script&lang=js\"\n\nimport \"./Entity.vue?vue&type=style&index=0&id=70080e98&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-70080e98\"]])\n\nexport default __exports__","\n","import script from \"./EntityMixin.vue?vue&type=script&lang=js\"\nexport * from \"./EntityMixin.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./NoItems.vue?vue&type=template&id=6fec32b5&scoped=true\"\nimport script from \"./NoItems.vue?vue&type=script&lang=js\"\nexport * from \"./NoItems.vue?vue&type=script&lang=js\"\n\nimport \"./NoItems.vue?vue&type=style&index=0&id=6fec32b5&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6fec32b5\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=51aa9db3&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=51aa9db3&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-51aa9db3\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./ConfirmDialog.vue?vue&type=template&id=d543b3e4&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=d543b3e4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d543b3e4\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditButton.vue?vue&type=template&id=3344f2bf&scoped=true\"\nimport script from \"./EditButton.vue?vue&type=script&lang=js\"\nexport * from \"./EditButton.vue?vue&type=script&lang=js\"\n\nimport \"./EditButton.vue?vue&type=style&index=0&id=3344f2bf&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3344f2bf\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./NameEditor.vue?vue&type=template&id=1405d90f&scoped=true\"\nimport script from \"./NameEditor.vue?vue&type=script&lang=js\"\nexport * from \"./NameEditor.vue?vue&type=script&lang=js\"\n\nimport \"./NameEditor.vue?vue&type=style&index=0&id=1405d90f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1405d90f\"]])\n\nexport default __exports__","import { render } from \"./Modal.vue?vue&type=template&id=48d9692c&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=48d9692c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-48d9692c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Selector.vue?vue&type=template&id=7babaacc&scoped=true\"\nimport script from \"./Selector.vue?vue&type=script&lang=js\"\nexport * from \"./Selector.vue?vue&type=script&lang=js\"\n\nimport \"./Selector.vue?vue&type=style&index=0&id=7babaacc&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7babaacc\"]])\n\nexport default __exports__","var map = {\n\t\"./Battery\": [\n\t\t9651,\n\t\t9,\n\t\t218,\n\t\t9651\n\t],\n\t\"./Battery.vue\": [\n\t\t9651,\n\t\t9,\n\t\t218,\n\t\t9651\n\t],\n\t\"./BinarySensor\": [\n\t\t7549,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t7549\n\t],\n\t\"./BinarySensor.vue\": [\n\t\t7549,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t7549\n\t],\n\t\"./BluetoothDevice\": [\n\t\t4435,\n\t\t9,\n\t\t218,\n\t\t4435\n\t],\n\t\"./BluetoothDevice.vue\": [\n\t\t4435,\n\t\t9,\n\t\t218,\n\t\t4435\n\t],\n\t\"./Button\": [\n\t\t8625,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t8625\n\t],\n\t\"./Button.vue\": [\n\t\t8625,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t8625\n\t],\n\t\"./CurrentSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./CurrentSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Device\": [\n\t\t4435,\n\t\t9,\n\t\t218,\n\t\t4435\n\t],\n\t\"./Device.vue\": [\n\t\t4435,\n\t\t9,\n\t\t218,\n\t\t4435\n\t],\n\t\"./Dimmer\": [\n\t\t3593,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3593\n\t],\n\t\"./Dimmer.vue\": [\n\t\t3593,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3593\n\t],\n\t\"./EnergySensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./EnergySensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Entity\": [\n\t\t3053,\n\t\t9\n\t],\n\t\"./Entity.vue\": [\n\t\t3053,\n\t\t9\n\t],\n\t\"./EntityIcon\": [\n\t\t3459,\n\t\t9,\n\t\t218,\n\t\t3459\n\t],\n\t\"./EntityIcon.vue\": [\n\t\t3459,\n\t\t9,\n\t\t218,\n\t\t3459\n\t],\n\t\"./EntityMixin\": [\n\t\t7909,\n\t\t9\n\t],\n\t\"./EntityMixin.vue\": [\n\t\t7909,\n\t\t9\n\t],\n\t\"./EnumSensor\": [\n\t\t8625,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t8625\n\t],\n\t\"./EnumSensor.vue\": [\n\t\t8625,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t8625\n\t],\n\t\"./EnumSwitch\": [\n\t\t3398,\n\t\t9,\n\t\t218,\n\t\t3398\n\t],\n\t\"./EnumSwitch.vue\": [\n\t\t3398,\n\t\t9,\n\t\t218,\n\t\t3398\n\t],\n\t\"./HumiditySensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./HumiditySensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./IlluminanceSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./IlluminanceSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Index\": [\n\t\t9688,\n\t\t9\n\t],\n\t\"./Index.vue\": [\n\t\t9688,\n\t\t9\n\t],\n\t\"./Light\": [\n\t\t2315,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3490,\n\t\t2315\n\t],\n\t\"./Light.vue\": [\n\t\t2315,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3490,\n\t\t2315\n\t],\n\t\"./LinkQuality\": [\n\t\t8126,\n\t\t9,\n\t\t218,\n\t\t8126\n\t],\n\t\"./LinkQuality.vue\": [\n\t\t8126,\n\t\t9,\n\t\t218,\n\t\t8126\n\t],\n\t\"./Modal\": [\n\t\t8472,\n\t\t9\n\t],\n\t\"./Modal.vue\": [\n\t\t8472,\n\t\t9\n\t],\n\t\"./MotionSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./MotionSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./MultiValueSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./MultiValueSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Muted\": [\n\t\t3303,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t3303\n\t],\n\t\"./Muted.vue\": [\n\t\t3303,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t3303\n\t],\n\t\"./NumericSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./NumericSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./PowerSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./PowerSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./RawSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./RawSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Selector\": [\n\t\t6518,\n\t\t9\n\t],\n\t\"./Selector.vue\": [\n\t\t6518,\n\t\t9\n\t],\n\t\"./Sensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Sensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Switch\": [\n\t\t3303,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t3303\n\t],\n\t\"./Switch.vue\": [\n\t\t3303,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t3303\n\t],\n\t\"./TemperatureSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./TemperatureSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./VoltageSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./VoltageSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Volume\": [\n\t\t3593,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3593\n\t],\n\t\"./Volume.vue\": [\n\t\t3593,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3593\n\t],\n\t\"./common.scss\": [\n\t\t65,\n\t\t9,\n\t\t4981,\n\t\t65\n\t],\n\t\"./meta\": [\n\t\t7369,\n\t\t3\n\t],\n\t\"./meta.json\": [\n\t\t7369,\n\t\t3\n\t],\n\t\"./vars.scss\": [\n\t\t5207,\n\t\t9,\n\t\t4981,\n\t\t5207\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(2).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__.t(id, ids[1] | 16)\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 7243;\nmodule.exports = webpackAsyncContext;"],"names":["wellKnownSymbol","MATCH","module","exports","METHOD_NAME","regexp","error1","error2","isRegExp","$TypeError","TypeError","it","$","uncurryThis","getOwnPropertyDescriptor","toLength","toString","notARegExp","requireObjectCoercible","correctIsRegExpLogic","IS_PURE","un$EndsWith","endsWith","slice","min","Math","CORRECT_IS_REGEXP_LOGIC","MDN_POLYFILL_BUG","descriptor","String","prototype","writable","target","proto","forced","searchString","that","this","endPosition","arguments","length","undefined","len","end","search","un$StartsWith","startsWith","stringSlice","index","class","hasChildren","isCollapsed","value","name","justUpdated","component","loading","ref","error","reachable","onClick","$emit","$event","toggleCollapsed","computedChildren","entity","key","id","level","mixins","EntityMixin","emits","data","computed","Object","values","children","filter","child","collapsed","instance","$refs","methods","valuesEqual","a","b","objectsEqual","event","classList","contains","stopPropagation","onEntityUpdate","entityId","isChildUpdate","setJustUpdated","self","setTimeout","mounted","type","split","map","t","toUpperCase","join","$watch","newValue","oldValue","bus","__exports__","render","Utils","props","Boolean","default","required","Number","modalVisible","entityType","s","charAt","entityGroups","selector","title","refresh","modalEntityId","entities","visible","configValuesByParentId","onEntityModal","keys","displayGroups","group","grouping","entitiesMeta","typesByCategory","icon","pluginIcons","url","imgUrl","parent_id","childrenByParentId","onEntityInput","errorEntities","loadingEntities","components","Loading","Icon","Entity","Selector","NoItems","EntityModal","entityScanTimeout","entityTimeouts","selectedEntities","meta","icons","entityTypes","groupEntities","entries","reduce","obj","name_plural","entry","e","sort","localeCompare","attr","_shouldSkipLoading","hasReadableChildren","is_configuration","is_write_only","is_query_disabled","args","plugins","plugin","clearTimeout","console","warn","request","sync","name_override","category","parentId","clearEntityTimeouts","state","onEntityDelete","subscribe","unmounted","unsubscribe","href","external_id","onDelete","editName","onRename","disabled","editIcon","onIconEdit","color","onIconColorEdit","description","external_url","text","image_url","src","created_at","updated_at","deleteConfirmDiag","show","computedConfig","configCollapsed","onConfirm","confirmText","close","cancelText","Modal","modal","hide","proxy","submit","deafult","EditButton","NameEditor","ConfirmDialog","configValues","newName","req","newIcon","visibleGroupings","g","prettifyGroupingName","onGroupingChanged","isGroupFilterActive","sortedGroups","iconForGroup","selectedGroups","toggleGroup","placeholder","searchTerm","Dropdown","DropdownItem","typesMeta","toLowerCase","indexOf","prettify","synchronizeSelectedEntities","updateSearchTerm","refreshGroupFilter","reset","webpackAsyncContext","__webpack_require__","o","Promise","resolve","then","Error","code","ids","all"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/3053-legacy.1f30ce63.js","mappings":"qGAAA,IAAIA,EAAkB,EAAQ,MAE1BC,EAAQD,EAAgB,SAE5BE,EAAOC,QAAU,SAAUC,GACzB,IAAIC,EAAS,IACb,IACE,MAAMD,GAAaC,EAMrB,CALE,MAAOC,GACP,IAEE,OADAD,EAAOJ,IAAS,EACT,MAAMG,GAAaC,EACG,CAA7B,MAAOE,GAAsB,CACjC,CAAE,OAAO,CACX,C,uBCdA,IAAIC,EAAW,EAAQ,MAEnBC,EAAaC,UAEjBR,EAAOC,QAAU,SAAUQ,GACzB,GAAIH,EAASG,GACX,MAAMF,EAAW,iDACjB,OAAOE,CACX,C,oCCPA,IAAIC,EAAI,EAAQ,MACZC,EAAc,EAAQ,MACtBC,EAA2B,UAC3BC,EAAW,EAAQ,MACnBC,EAAW,EAAQ,MACnBC,EAAa,EAAQ,MACrBC,EAAyB,EAAQ,MACjCC,EAAuB,EAAQ,MAC/BC,EAAU,EAAQ,MAGlBC,EAAcR,EAAY,GAAGS,UAC7BC,EAAQV,EAAY,GAAGU,OACvBC,EAAMC,KAAKD,IAEXE,EAA0BP,EAAqB,YAE/CQ,GAAoBP,IAAYM,KAA6B,WAC/D,IAAIE,EAAad,EAAyBe,OAAOC,UAAW,YAC5D,OAAOF,IAAeA,EAAWG,QACnC,CAHiE,GAOjEnB,EAAE,CAAEoB,OAAQ,SAAUC,OAAO,EAAMC,QAASP,IAAqBD,GAA2B,CAC1FJ,SAAU,SAAkBa,GAC1B,IAAIC,EAAOpB,EAASE,EAAuBmB,OAC3CpB,EAAWkB,GACX,IA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ACA,KACA,MAED,sBAAuB,CACtB,KACA,EACA,IACA,KACA,MAED,WAAY,CACX,KACA,EACA,IACA,MAED,eAAgB,CACf,KACA,EACA,IACA,MAED,WAAY,CACX,KACA,EACA,KACA,IACA,MAED,eAAgB,CACf,KACA,EACA,KACA,IACA,MAED,iBAAkB,CACjB,KACA,EACA,IACA,KACA,MAED,qBAAsB,CACrB,KACA,EACA,IACA,KACA,MAED,WAAY,CACX,KACA,GAED,eAAgB,CACf,KACA,GAED,eAAgB,CACf,KACA,EACA,IACA,MAED,mBAAoB,CACnB,KACA,EACA,IACA,MAED,gBAAiB,CAChB,KACA,GAED,oBAAqB,CACpB,KACA,GAED,eAAgB,CACf,KACA,EACA,IACA,KACA,MAED,mBAAoB,CACnB,KACA,EACA,IACA,KACA,MAED,eAAgB,CACf,KACA,EACA,IACA,MAED,mBAAoB,CACnB,KACA,EACA,IACA,MAED,mBAAoB,CACnB,KACA,EACA,IACA,KACA,MAED,uBAAwB,CACvB,KACA,EACA,IACA,KACA,MAED,sBAAuB,CACtB,KACA,EACA,IACA,KACA,MAED,0BAA2B,CAC1B,KACA,EACA,IACA,KACA,MAED,UAAW,CACV,KACA,GAED,cAAe,CACd,KACA,GAED,UAAW,CACV,KACA,EACA,KACA,IACA,KACA,MAED,cAAe,CACd,KACA,EACA,KACA,IACA,KACA,MAED,gBAAiB,CAChB,KACA,EACA,IACA,MAED,oBAAqB,CACpB,KACA,EACA,IACA,MAED,UAAW,CACV,KACA,GAED,cAAe,CACd,KACA,GAED,iBAAkB,CACjB,KACA,EACA,IACA,KACA,MAED,qBAAsB,CACrB,KACA,EACA,IACA,KACA,MAED,qBAAsB,CACrB,KACA,EACA,IACA,KACA,MAED,yBAA0B,CACzB,KACA,EACA,IACA,KACA,MAED,UAAW,CACV,KACA,EACA,IACA,KACA,MAED,cAAe,CACd,KACA,EACA,IACA,KACA,MAED,kBAAmB,CAClB,KACA,EACA,IACA,KACA,MAED,sBAAuB,CACtB,KACA,EACA,IACA,KACA,MAED,gBAAiB,CAChB,KACA,EACA,IACA,KACA,MAED,oBAAqB,CACpB,KACA,EACA,IACA,KACA,MAED,cAAe,CACd,KACA,EACA,IACA,KACA,MAED,kBAAmB,CAClB,KACA,EACA,IACA,KACA,MAED,aAAc,CACb,KACA,GAED,iBAAkB,CACjB,KACA,GAED,WAAY,CACX,KACA,EACA,IACA,KACA,MAED,eAAgB,CACf,KACA,EACA,IACA,KACA,MAED,WAAY,CACX,KACA,EACA,IACA,KACA,MAED,eAAgB,CACf,KACA,EACA,IACA,KACA,MAED,sBAAuB,CACtB,KACA,EACA,IACA,KACA,MAED,0BAA2B,CAC1B,KACA,EACA,IACA,KACA,MAED,kBAAmB,CAClB,KACA,EACA,IACA,KACA,MAED,sBAAuB,CACtB,KACA,EACA,IACA,KACA,MAED,WAAY,CACX,KACA,EACA,KACA,IACA,MAED,eAAgB,CACf,KACA,EACA,KACA,IACA,MAED,gBAAiB,CAChB,GACA,EACA,KACA,IAED,SAAU,CACT,KACA,GAED,cAAe,CACd,KACA,GAED,cAAe,CACd,KACA,EACA,KACA,OAGF,SAASoJ,EAAoBvB,GAC5B,IAAIwB,EAAoBC,EAAEtJ,EAAK6H,GAC9B,OAAO0B,QAAQC,UAAUC,MAAK,WAC7B,IAAI1F,EAAI,IAAI2F,MAAM,uBAAyB7B,EAAM,KAEjD,MADA9D,EAAE4F,KAAO,mBACH5F,CACP,IAGD,IAAI6F,EAAM5J,EAAI6H,GAAM9J,EAAK6L,EAAI,GAC7B,OAAOL,QAAQM,IAAID,EAAIzO,MAAM,GAAG6E,IAAIqJ,EAAoBtF,IAAI0F,MAAK,WAChE,OAAOJ,EAAoBpJ,EAAElC,EAAa,GAAT6L,EAAI,GACtC,GACD,CACAR,EAAoBvH,KAAO,WAAa,OAAOvD,OAAOuD,KAAK7B,EAAM,EACjEoJ,EAAoBrL,GAAK,KACzBjE,EAAOC,QAAUqP,C","sources":["webpack://platypush/./node_modules/core-js/internals/correct-is-regexp-logic.js","webpack://platypush/./node_modules/core-js/internals/not-a-regexp.js","webpack://platypush/./node_modules/core-js/modules/es.string.ends-with.js","webpack://platypush/./node_modules/core-js/modules/es.string.starts-with.js","webpack://platypush/./src/components/panels/Entities/Entity.vue","webpack://platypush/./src/components/panels/Entities/Entity.vue?6f8a","webpack://platypush/./src/components/panels/Entities/EntityMixin.vue","webpack://platypush/./src/components/panels/Entities/EntityMixin.vue?a9b3","webpack://platypush/./src/components/panels/Entities/Index.vue","webpack://platypush/./src/components/elements/NoItems.vue","webpack://platypush/./src/components/elements/NoItems.vue?70de","webpack://platypush/./src/components/panels/Entities/Index.vue?4523","webpack://platypush/./src/components/panels/Entities/Modal.vue","webpack://platypush/./src/components/elements/ConfirmDialog.vue","webpack://platypush/./src/components/elements/ConfirmDialog.vue?f384","webpack://platypush/./src/components/elements/EditButton.vue","webpack://platypush/./src/components/elements/EditButton.vue?fb20","webpack://platypush/./src/components/elements/NameEditor.vue","webpack://platypush/./src/components/elements/NameEditor.vue?34cf","webpack://platypush/./src/components/panels/Entities/Modal.vue?d45a","webpack://platypush/./src/components/panels/Entities/Selector.vue","webpack://platypush/./src/components/panels/Entities/Selector.vue?bf8b","webpack://platypush/./src/components/panels/Entities|lazy|/^\\.\\/.*$/|groupOptions: {}|namespace object"],"sourcesContent":["var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (error1) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (error2) { /* empty */ }\n } return false;\n};\n","var isRegExp = require('../internals/is-regexp');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw $TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\nvar IS_PURE = require('../internals/is-pure');\n\n// eslint-disable-next-line es-x/no-string-prototype-endswith -- safe\nvar un$EndsWith = uncurryThis(''.endsWith);\nvar slice = uncurryThis(''.slice);\nvar min = Math.min;\n\nvar CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith');\n// https://github.com/zloirock/core-js/pull/702\nvar MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {\n var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith');\n return descriptor && !descriptor.writable;\n}();\n\n// `String.prototype.endsWith` method\n// https://tc39.es/ecma262/#sec-string.prototype.endswith\n$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {\n endsWith: function endsWith(searchString /* , endPosition = @length */) {\n var that = toString(requireObjectCoercible(this));\n notARegExp(searchString);\n var endPosition = arguments.length > 1 ? arguments[1] : undefined;\n var len = that.length;\n var end = endPosition === undefined ? len : min(toLength(endPosition), len);\n var search = toString(searchString);\n return un$EndsWith\n ? un$EndsWith(that, search, end)\n : slice(that, end - search.length, end) === search;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\nvar IS_PURE = require('../internals/is-pure');\n\n// eslint-disable-next-line es-x/no-string-prototype-startswith -- safe\nvar un$StartsWith = uncurryThis(''.startsWith);\nvar stringSlice = uncurryThis(''.slice);\nvar min = Math.min;\n\nvar CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');\n// https://github.com/zloirock/core-js/pull/702\nvar MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {\n var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');\n return descriptor && !descriptor.writable;\n}();\n\n// `String.prototype.startsWith` method\n// https://tc39.es/ecma262/#sec-string.prototype.startswith\n$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {\n startsWith: function startsWith(searchString /* , position = 0 */) {\n var that = toString(requireObjectCoercible(this));\n notARegExp(searchString);\n var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));\n var search = toString(searchString);\n return un$StartsWith\n ? un$StartsWith(that, search, index)\n : stringSlice(that, index, index + search.length) === search;\n }\n});\n","\n\n\n\n\n","import { render } from \"./Entity.vue?vue&type=template&id=70080e98&scoped=true\"\nimport script from \"./Entity.vue?vue&type=script&lang=js\"\nexport * from \"./Entity.vue?vue&type=script&lang=js\"\n\nimport \"./Entity.vue?vue&type=style&index=0&id=70080e98&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-70080e98\"]])\n\nexport default __exports__","\n","import script from \"./EntityMixin.vue?vue&type=script&lang=js\"\nexport * from \"./EntityMixin.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./NoItems.vue?vue&type=template&id=6fec32b5&scoped=true\"\nimport script from \"./NoItems.vue?vue&type=script&lang=js\"\nexport * from \"./NoItems.vue?vue&type=script&lang=js\"\n\nimport \"./NoItems.vue?vue&type=style&index=0&id=6fec32b5&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6fec32b5\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=51aa9db3&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=51aa9db3&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-51aa9db3\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./ConfirmDialog.vue?vue&type=template&id=d543b3e4&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=d543b3e4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d543b3e4\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditButton.vue?vue&type=template&id=3344f2bf&scoped=true\"\nimport script from \"./EditButton.vue?vue&type=script&lang=js\"\nexport * from \"./EditButton.vue?vue&type=script&lang=js\"\n\nimport \"./EditButton.vue?vue&type=style&index=0&id=3344f2bf&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3344f2bf\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./NameEditor.vue?vue&type=template&id=1405d90f&scoped=true\"\nimport script from \"./NameEditor.vue?vue&type=script&lang=js\"\nexport * from \"./NameEditor.vue?vue&type=script&lang=js\"\n\nimport \"./NameEditor.vue?vue&type=style&index=0&id=1405d90f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1405d90f\"]])\n\nexport default __exports__","import { render } from \"./Modal.vue?vue&type=template&id=48d9692c&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=48d9692c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-48d9692c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Selector.vue?vue&type=template&id=7babaacc&scoped=true\"\nimport script from \"./Selector.vue?vue&type=script&lang=js\"\nexport * from \"./Selector.vue?vue&type=script&lang=js\"\n\nimport \"./Selector.vue?vue&type=style&index=0&id=7babaacc&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7babaacc\"]])\n\nexport default __exports__","var map = {\n\t\"./Battery\": [\n\t\t9651,\n\t\t9,\n\t\t218,\n\t\t9651\n\t],\n\t\"./Battery.vue\": [\n\t\t9651,\n\t\t9,\n\t\t218,\n\t\t9651\n\t],\n\t\"./BinarySensor\": [\n\t\t7549,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t7549\n\t],\n\t\"./BinarySensor.vue\": [\n\t\t7549,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t7549\n\t],\n\t\"./BluetoothDevice\": [\n\t\t4435,\n\t\t9,\n\t\t218,\n\t\t4435\n\t],\n\t\"./BluetoothDevice.vue\": [\n\t\t4435,\n\t\t9,\n\t\t218,\n\t\t4435\n\t],\n\t\"./Button\": [\n\t\t8625,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t8625\n\t],\n\t\"./Button.vue\": [\n\t\t8625,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t8625\n\t],\n\t\"./CurrentSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./CurrentSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Device\": [\n\t\t4435,\n\t\t9,\n\t\t218,\n\t\t4435\n\t],\n\t\"./Device.vue\": [\n\t\t4435,\n\t\t9,\n\t\t218,\n\t\t4435\n\t],\n\t\"./Dimmer\": [\n\t\t3593,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3593\n\t],\n\t\"./Dimmer.vue\": [\n\t\t3593,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3593\n\t],\n\t\"./EnergySensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./EnergySensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Entity\": [\n\t\t3053,\n\t\t9\n\t],\n\t\"./Entity.vue\": [\n\t\t3053,\n\t\t9\n\t],\n\t\"./EntityIcon\": [\n\t\t3459,\n\t\t9,\n\t\t218,\n\t\t3459\n\t],\n\t\"./EntityIcon.vue\": [\n\t\t3459,\n\t\t9,\n\t\t218,\n\t\t3459\n\t],\n\t\"./EntityMixin\": [\n\t\t7909,\n\t\t9\n\t],\n\t\"./EntityMixin.vue\": [\n\t\t7909,\n\t\t9\n\t],\n\t\"./EnumSensor\": [\n\t\t8625,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t8625\n\t],\n\t\"./EnumSensor.vue\": [\n\t\t8625,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t8625\n\t],\n\t\"./EnumSwitch\": [\n\t\t3398,\n\t\t9,\n\t\t218,\n\t\t3398\n\t],\n\t\"./EnumSwitch.vue\": [\n\t\t3398,\n\t\t9,\n\t\t218,\n\t\t3398\n\t],\n\t\"./HumiditySensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./HumiditySensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./IlluminanceSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./IlluminanceSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Index\": [\n\t\t9688,\n\t\t9\n\t],\n\t\"./Index.vue\": [\n\t\t9688,\n\t\t9\n\t],\n\t\"./Light\": [\n\t\t2315,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3490,\n\t\t2315\n\t],\n\t\"./Light.vue\": [\n\t\t2315,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3490,\n\t\t2315\n\t],\n\t\"./LinkQuality\": [\n\t\t8126,\n\t\t9,\n\t\t218,\n\t\t8126\n\t],\n\t\"./LinkQuality.vue\": [\n\t\t8126,\n\t\t9,\n\t\t218,\n\t\t8126\n\t],\n\t\"./Modal\": [\n\t\t8472,\n\t\t9\n\t],\n\t\"./Modal.vue\": [\n\t\t8472,\n\t\t9\n\t],\n\t\"./MotionSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./MotionSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./MultiValueSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./MultiValueSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Muted\": [\n\t\t3303,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t3303\n\t],\n\t\"./Muted.vue\": [\n\t\t3303,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t3303\n\t],\n\t\"./NumericSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./NumericSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./PowerSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./PowerSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./RawSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./RawSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Selector\": [\n\t\t6518,\n\t\t9\n\t],\n\t\"./Selector.vue\": [\n\t\t6518,\n\t\t9\n\t],\n\t\"./Sensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Sensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Switch\": [\n\t\t3303,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t3303\n\t],\n\t\"./Switch.vue\": [\n\t\t3303,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t3303\n\t],\n\t\"./TemperatureSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./TemperatureSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./VoltageSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./VoltageSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Volume\": [\n\t\t3593,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3593\n\t],\n\t\"./Volume.vue\": [\n\t\t3593,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3593\n\t],\n\t\"./common.scss\": [\n\t\t65,\n\t\t9,\n\t\t4981,\n\t\t65\n\t],\n\t\"./meta\": [\n\t\t7369,\n\t\t3\n\t],\n\t\"./meta.json\": [\n\t\t7369,\n\t\t3\n\t],\n\t\"./vars.scss\": [\n\t\t5207,\n\t\t9,\n\t\t4981,\n\t\t5207\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(2).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__.t(id, ids[1] | 16)\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 7243;\nmodule.exports = webpackAsyncContext;"],"names":["wellKnownSymbol","MATCH","module","exports","METHOD_NAME","regexp","error1","error2","isRegExp","$TypeError","TypeError","it","$","uncurryThis","getOwnPropertyDescriptor","toLength","toString","notARegExp","requireObjectCoercible","correctIsRegExpLogic","IS_PURE","un$EndsWith","endsWith","slice","min","Math","CORRECT_IS_REGEXP_LOGIC","MDN_POLYFILL_BUG","descriptor","String","prototype","writable","target","proto","forced","searchString","that","this","endPosition","arguments","length","undefined","len","end","search","un$StartsWith","startsWith","stringSlice","index","class","hasChildren","isCollapsed","value","name","justUpdated","component","loading","ref","error","reachable","onClick","$emit","$event","toggleCollapsed","computedChildren","entity","key","id","level","mixins","EntityMixin","emits","data","computed","Object","values","children","filter","child","collapsed","instance","$refs","methods","valuesEqual","a","b","objectsEqual","event","classList","contains","stopPropagation","onEntityUpdate","entityId","isChildUpdate","setJustUpdated","self","setTimeout","mounted","type","split","map","t","toUpperCase","join","$watch","newValue","oldValue","bus","__exports__","render","Utils","props","Boolean","default","required","Number","modalVisible","entityType","s","charAt","entityGroups","selector","title","refresh","modalEntityId","entities","visible","configValuesByParentId","onEntityModal","keys","displayGroups","group","grouping","entitiesMeta","typesByCategory","icon","pluginIcons","url","imgUrl","parent_id","childrenByParentId","onEntityInput","errorEntities","loadingEntities","components","Loading","Icon","Entity","Selector","NoItems","EntityModal","entityScanTimeout","entityTimeouts","selectedEntities","meta","icons","entityTypes","groupEntities","entries","reduce","obj","name_plural","entry","e","sort","localeCompare","attr","_shouldSkipLoading","hasReadableChildren","is_configuration","is_write_only","is_query_disabled","args","plugins","plugin","clearTimeout","console","warn","request","sync","name_override","category","parentId","clearEntityTimeouts","state","onEntityDelete","subscribe","unmounted","unsubscribe","href","external_id","onDelete","editName","onRename","disabled","editIcon","onIconEdit","color","onIconColorEdit","description","external_url","text","image_url","src","created_at","updated_at","deleteConfirmDiag","show","computedConfig","configCollapsed","onConfirm","confirmText","close","cancelText","Modal","modal","hide","proxy","submit","deafult","EditButton","NameEditor","ConfirmDialog","configValues","newName","req","newIcon","visibleGroupings","g","prettifyGroupingName","onGroupingChanged","isGroupFilterActive","sortedGroups","iconForGroup","selectedGroups","toggleGroup","placeholder","searchTerm","Dropdown","DropdownItem","typesMeta","toLowerCase","indexOf","prettify","synchronizeSelectedEntities","updateSearchTerm","refreshGroupFilter","reset","webpackAsyncContext","__webpack_require__","o","Promise","resolve","then","Error","code","ids","all"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/3053.a4a1ec4a.js b/platypush/backend/http/webapp/dist/static/js/3053.c3f120c4.js similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/3053.a4a1ec4a.js rename to platypush/backend/http/webapp/dist/static/js/3053.c3f120c4.js index 96a10d580..cb6bbb26a 100644 --- a/platypush/backend/http/webapp/dist/static/js/3053.a4a1ec4a.js +++ b/platypush/backend/http/webapp/dist/static/js/3053.c3f120c4.js @@ -1,2 +1,2 @@ -(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[3053],{3053:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=n(6252),s=n(3577),l=n(9963);const a={key:0,class:"children fade-in"};function o(e,t,n,o,r,u){const c=(0,i.up)("Entity",!0);return(0,i.wg)(),(0,i.iD)("div",{class:(0,s.C_)(["entity-container-wrapper",{"with-children":u.hasChildren,collapsed:u.isCollapsed,hidden:!e.value?.name?.length}])},[(0,i._)("div",{class:(0,s.C_)(["row item entity-container",{"with-children":u.hasChildren,collapsed:u.isCollapsed,blink:r.justUpdated}])},[(0,i._)("div",{class:(0,s.C_)(["adjuster",{"col-12":!u.hasChildren,"col-11":u.hasChildren}])},[((0,i.wg)(),(0,i.j4)((0,i.LL)(r.component),{value:e.value,loading:e.loading,ref:"instance",error:e.error||0==e.value?.reachable,onClick:u.onClick,onInput:t[0]||(t[0]=t=>e.$emit("input",t)),onLoading:t[1]||(t[1]=t=>e.$emit("loading",t))},null,8,["value","loading","error","onClick"]))],2),u.hasChildren?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"col-1 collapse-toggler",onClick:t[2]||(t[2]=(0,l.iM)(((...e)=>u.toggleCollapsed&&u.toggleCollapsed(...e)),["stop"]))},[(0,i._)("i",{class:(0,s.C_)(["fas",{"fa-chevron-down":u.isCollapsed,"fa-chevron-up":!u.isCollapsed}])},null,2)])):(0,i.kq)("",!0)],2),u.isCollapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("div",a,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(u.computedChildren,(t=>((0,i.wg)(),(0,i.iD)("div",{class:"child",key:t.id},[(0,i.Wm)(c,{value:t,loading:e.loading,level:e.level+1,onInput:n=>e.$emit("input",t)},null,8,["value","loading","level","onInput"])])))),128))]))],2)}var r=n(2262),u=n(7909),c=n(5250),d={name:"Entity",mixins:[u["default"]],emits:["input","loading","update"],data(){return{component:null,justUpdated:!1}},computed:{computedChildren(){return Object.values(this.children||{}).filter((e=>e))},hasChildren(){return!!this.computedChildren.length},isCollapsed(){return!this.hasChildren||this.collapsed},instance(){return this.$refs.instance}},methods:{valuesEqual(e,t){e={...e},t={...t};for(const n of["updated_at","data"])delete e[n],delete t[n];return this.objectsEqual(e,t)},onClick(e){(e.target.classList.contains("label")||e.target.classList.contains("head"))&&(e.stopPropagation(),this.toggleCollapsed())},onEntityUpdate(e){const t=e?.id,n=null!=t&&this.children&&t in this.children;n&&this.setJustUpdated()},toggleCollapsed(){this.collapsed=!this.collapsed,this.instance&&(this.instance.collapsed=!this.instance.collapsed)},setJustUpdated(){this.justUpdated=!0;const e=this;setTimeout((()=>e.justUpdated=!1),1e3)}},mounted(){if("Entity"!==this.type){const e=this.type.split("_").map((e=>e[0].toUpperCase()+e.slice(1))).join("");this.$watch((()=>this.value),((e,t)=>{if(this.valuesEqual(t,e))return!1;this.setJustUpdated(),this.$emit("update",{value:e})})),this.component=(0,r.XI)((0,i.RC)((()=>n(7243)(`./${e}`))))}c.$.onEntity(this.onEntityUpdate)}},p=n(3744);const m=(0,p.Z)(d,[["render",o],["__scopeId","data-v-70080e98"]]);var h=m},7909:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var i=n(6813),s={name:"EntityMixin",mixins:[i.Z],emits:["input"],props:{loading:{type:Boolean,default:!1},error:{type:Boolean,default:!1},value:{type:Object,required:!0},children:{type:Object,default:()=>{}},level:{type:Number,default:0}},data(){return{modalVisible:!1,collapsed:!0}},computed:{type(){let e=this.value.type||"";return e.split("_").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("")}}};const l=s;var a=l},9688:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return P}});var i=n(6252),s=n(3577);const l=e=>((0,i.dD)("data-v-51aa9db3"),e=e(),(0,i.Cn)(),e),a={class:"row plugin entities-container"},o={class:"col-11 left"},r={class:"col-1 right"},u=l((()=>(0,i._)("i",{class:"fa fa-sync-alt"},null,-1))),c=[u],d={class:"groups-canvas"},p=(0,i.Uk)("No entities found"),m={key:2,class:"groups-container"},h={class:"frame"},y={class:"header"},g={class:"section left"},f={class:"section center"},v=["textContent"],_={class:"section right"},w=["onClick"],b=l((()=>(0,i._)("i",{class:"fa fa-sync-alt"},null,-1))),C=[b],k={class:"body"},E=["onClick"];function S(e,t,n,l,u,b){const S=(0,i.up)("Loading"),I=(0,i.up)("Selector"),D=(0,i.up)("EntityModal"),x=(0,i.up)("NoItems"),j=(0,i.up)("Icon"),G=(0,i.up)("Entity");return(0,i.wg)(),(0,i.iD)("div",a,[u.loading?((0,i.wg)(),(0,i.j4)(S,{key:0})):(0,i.kq)("",!0),(0,i._)("header",null,[(0,i._)("div",o,[(0,i.Wm)(I,{"entity-groups":b.entityGroups,value:u.selector,onInput:t[0]||(t[0]=e=>u.selector=e)},null,8,["entity-groups","value"])]),(0,i._)("div",r,[(0,i._)("button",{title:"Refresh",onClick:t[1]||(t[1]=(...e)=>b.refresh&&b.refresh(...e))},c)])]),(0,i._)("div",d,[u.modalEntityId&&u.entities[u.modalEntityId]?((0,i.wg)(),(0,i.j4)(D,{key:0,entity:u.entities[u.modalEntityId],visible:u.modalVisible,"config-values":b.configValuesByParentId(u.modalEntityId),onClose:b.onEntityModal},null,8,["entity","visible","config-values","onClose"])):(0,i.kq)("",!0),Object.keys(b.displayGroups||{})?.length?((0,i.wg)(),(0,i.iD)("div",m,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(b.displayGroups,(e=>((0,i.wg)(),(0,i.iD)("div",{class:"group fade-in",key:e.name},[(0,i._)("div",h,[(0,i._)("div",y,[(0,i._)("span",g,["category"===u.selector.grouping&&b.entitiesMeta[b.typesByCategory[e.name]]?((0,i.wg)(),(0,i.j4)(j,(0,s.vs)((0,i.dG)({key:0},b.entitiesMeta[b.typesByCategory[e.name]].icon||{})),null,16)):"plugin"===u.selector.grouping&&b.pluginIcons[e.name]?((0,i.wg)(),(0,i.j4)(j,{key:1,class:(0,s.C_)(b.pluginIcons[e.name]?.class),url:b.pluginIcons[e.name]?.imgUrl},null,8,["class","url"])):(0,i.kq)("",!0)]),(0,i._)("span",f,[(0,i._)("div",{class:"title",textContent:(0,s.zw)(e.name)},null,8,v)]),(0,i._)("span",_,[(0,i._)("button",{title:"Refresh",onClick:t=>b.refresh(e)},C,8,w)])]),(0,i._)("div",k,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.entities,(e=>((0,i.wg)(),(0,i.iD)("div",{class:"entity-frame",onClick:t=>b.onEntityModal(e.id),key:e.id},[e.parent_id?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(G,{key:0,value:e,children:b.childrenByParentId(e.id),onInput:t=>b.onEntityInput(e),error:!!u.errorEntities[e.id],loading:!!u.loadingEntities[e.id],onLoading:t=>u.loadingEntities[e.id]=t},null,8,["value","children","onInput","error","loading","onLoading"]))],8,E)))),128))])])])))),128))])):((0,i.wg)(),(0,i.j4)(x,{key:1},{default:(0,i.w5)((()=>[p])),_:1}))])])}var I=n(6813),D=n(1232),x=n(1478);const j={class:"no-items-container"},G={class:"no-items fade-in"};function T(e,t,n,s,l,a){return(0,i.wg)(),(0,i.iD)("div",j,[(0,i._)("div",G,[(0,i.WI)(e.$slots,"default",{},void 0,!0)])])}var q={name:"NoItems"},O=n(3744);const U=(0,O.Z)(q,[["render",T],["__scopeId","data-v-6fec32b5"]]);var M=U,$=n(3053),B=n(6518),L=n(8472),N=n(5250),Z=n(1359),V=n(7369),z={name:"Entities",components:{Loading:D.Z,Icon:x.Z,Entity:$["default"],Selector:B["default"],NoItems:M,EntityModal:L["default"]},mixins:[I.Z],props:{entityScanTimeout:{type:Number,default:30}},data(){return{loading:!1,loadingEntities:{},errorEntities:{},entityTimeouts:{},entities:{},modalEntityId:null,modalVisible:!1,selector:{grouping:"category",selectedEntities:{}}}},computed:{entitiesMeta(){return V},pluginIcons(){return Z},entityTypes(){return this.groupEntities("type")},typesByCategory(){return Object.entries(V).reduce(((e,[t,n])=>(e[n.name_plural]=t,e)),{})},entityGroups(){return{id:Object.entries(this.groupEntities("id")).reduce(((e,[t,n])=>(e[t]=n[0],e)),{}),category:this.groupEntities("category"),plugin:this.groupEntities("plugin")}},displayGroups(){return Object.entries(this.entityGroups[this.selector.grouping]).filter((e=>e[1].filter((e=>!!this.selector.selectedEntities[e.id]&&null==e.parent_id)).length>0)).map((([e,t])=>({name:e,entities:t.filter((e=>e.id in this.selector.selectedEntities))}))).sort(((e,t)=>e.name.localeCompare(t.name)))}},methods:{groupEntities(e){return Object.values(this.entities).filter((e=>null==e.parent_id)).reduce(((t,n)=>{const i=t[n[e]]||{};return i[n.id]=n,t[n[e]]=Object.values(i).sort(((e,t)=>e.name.localeCompare(t.name))),t}),{})},_shouldSkipLoading(e){const t=Object.values(this.childrenByParentId(e.id)),n=t.filter((e=>!e.is_configuration&&!e.is_write_only&&!e.is_query_disabled)).length>0;return e.is_query_disabled||e.is_write_only||t.length&&!n},async refresh(e){const t=(e?e.entities:this.entities)||{},n={};e&&(n.plugins=Object.keys(t.reduce(((e,t)=>(e[t.plugin]=!0,e)),{}))),this.loadingEntities=Object.values(t).reduce(((e,t)=>{if(this._shouldSkipLoading(t))return e;const n=this,i=t.id;return this.entityTimeouts[i]&&clearTimeout(this.entityTimeouts[i]),this.entityTimeouts[i]=setTimeout((()=>{n.loadingEntities[i]&&delete n.loadingEntities[i],n.entityTimeouts[i]&&delete n.entityTimeouts[i],n.errorEntities[i]=t,console.warn(`Scan timeout for ${t.name}`)}),1e3*this.entityScanTimeout),e[i]=!0,e}),{}),await this.request("entities.scan",n)},async sync(){this.loading=!0;try{this.entities=(await this.request("entities.get")).reduce(((e,t)=>(t.name=t?.meta?.name_override||t.name,t.category=V[t.type].name_plural,t.meta={...V[t.type]||{},...t.meta||{}},e[t.id]=t,e)),{}),this.selector.selectedEntities=this.entityGroups.id}finally{this.loading=!1}},childrenByParentId(e){return Object.values(this.entities).filter((t=>t&&t.parent_id===e&&!t.is_configuration)).reduce(((e,t)=>(e[t.id]=t,e)),{})},configValuesByParentId(e){return Object.values(this.entities).filter((t=>t&&t.parent_id===e&&t.is_configuration)).reduce(((e,t)=>(e[t.id]=t,e)),{})},clearEntityTimeouts(e){this.errorEntities[e]&&delete this.errorEntities[e],this.loadingEntities[e]&&delete this.loadingEntities[e],this.entityTimeouts[e]&&(clearTimeout(this.entityTimeouts[e]),delete this.entityTimeouts[e])},onEntityInput(e){e.category=V[e.type].name_plural,this.entities[e.id]=e,this.clearEntityTimeouts(e.id),this.loadingEntities[e.id]&&delete this.loadingEntities[e.id]},onEntityUpdate(e){const t=e.entity.id;if(null==t)return;this.clearEntityTimeouts(t);const n={...e.entity};null==e.entity?.state&&(n.state=this.entities[t]?.state),n.meta?.name_override?.length?n.name=n.meta.name_override:this.entities[t]?.meta?.name_override?.length?n.name=this.entities[t].meta.name_override:n.name=e.entity?.name||this.entities[t]?.name,n.category=V[n.type].name_plural,n.meta={...V[e.entity.type]||{},...this.entities[t]?.meta||{},...e.entity?.meta||{}},this.entities[t]=n,N.$.publishEntity(n)},onEntityDelete(e){const t=e.entity?.id;null!=t&&(t===this.modalEntityId&&(this.modalEntityId=null),this.entities[t]&&delete this.entities[t])},onEntityModal(e){e?(this.modalEntityId=e,this.modalVisible=!0):(this.modalEntityId=null,this.modalVisible=!1)}},async mounted(){this.subscribe(this.onEntityUpdate,"on-entity-update","platypush.message.event.entities.EntityUpdateEvent"),this.subscribe(this.onEntityDelete,"on-entity-delete","platypush.message.event.entities.EntityDeleteEvent"),await this.sync(),await this.refresh()},unmounted(){this.unsubscribe("on-entity-update")}};const F=(0,O.Z)(z,[["render",S],["__scopeId","data-v-51aa9db3"]]);var P=F},8472:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Qe}});var i=n(6252),s=n(3577);const l=e=>((0,i.dD)("data-v-48d9692c"),e=e(),(0,i.Cn)(),e),a=(0,i.Uk)(" Are you "),o=l((()=>(0,i._)("b",null,"sure",-1))),r=(0,i.Uk)(" that you want to delete this entity? "),u=l((()=>(0,i._)("br",null,null,-1))),c=l((()=>(0,i._)("br",null,null,-1))),d=(0,i.Uk)(" Note: you should only delete an entity if its plugin has been disabled or the entity is no longer reachable."),p=l((()=>(0,i._)("br",null,null,-1))),m=l((()=>(0,i._)("br",null,null,-1))),h=(0,i.Uk)(" Otherwise, the entity will simply be created again upon the next scan. "),y={class:"table-row"},g={class:"title"},f=(0,i.Uk)(" Name "),v={class:"value"},_=["textContent"],w={class:"table-row"},b={class:"title"},C=(0,i.Uk)(" Icon "),k={class:"value icon-canvas"},E={key:0,class:"icon-editor"},S=l((()=>(0,i._)("i",{class:"fas fa-rotate-left"},null,-1))),I=[S],D=l((()=>(0,i._)("span",{class:"help"},[(0,i.Uk)(" Supported: image URLs or "),(0,i._)("a",{href:"https://fontawesome.com/icons",target:"_blank"},"FontAwesome icon classes"),(0,i.Uk)(". ")],-1))),x={class:"table-row"},j=l((()=>(0,i._)("div",{class:"title"}," Icon color ",-1))),G={class:"value icon-color-picker"},T=["value"],q=l((()=>(0,i._)("i",{class:"fas fa-rotate-left"},null,-1))),O=[q],U={class:"table-row"},M=l((()=>(0,i._)("div",{class:"title"},"Plugin",-1))),$=["textContent"],B={class:"table-row"},L=l((()=>(0,i._)("div",{class:"title"},"Internal ID",-1))),N=["textContent"],Z={key:0,class:"table-row"},V=l((()=>(0,i._)("div",{class:"title"},"External ID",-1))),z=["textContent"],F={key:1,class:"table-row"},P=l((()=>(0,i._)("div",{class:"title"},"Description",-1))),R=["textContent"],W={key:2,class:"table-row"},H=l((()=>(0,i._)("div",{class:"title"},"External URL",-1))),K={class:"value url"},Y=["href","text"],A={key:3,class:"table-row"},J=l((()=>(0,i._)("div",{class:"title"},"Image",-1))),Q={class:"value"},X=["src"],ee={key:0,class:"table-row"},te=["textContent"],ne=["textContent"],ie={key:4,class:"table-row"},se=l((()=>(0,i._)("div",{class:"title"},"Created at",-1))),le=["textContent"],ae={key:5,class:"table-row"},oe=l((()=>(0,i._)("div",{class:"title"},"Updated at",-1))),re=["textContent"],ue={class:"table-row delete-entity-container"},ce=l((()=>(0,i._)("div",{class:"title"},"Delete Entity",-1))),de={class:"value"},pe=l((()=>(0,i._)("i",{class:"fas fa-trash"},null,-1))),me=[pe],he={key:6,class:"config-container"},ye=l((()=>(0,i._)("div",{class:"col-11"},[(0,i._)("i",{class:"fas fa-screwdriver-wrench"}),(0,i.Uk)("   Configuration ")],-1))),ge={class:"col-1 pull-right"},fe={key:0,class:"entities"};function ve(e,t,n,l,S,q){const pe=(0,i.up)("ConfirmDialog"),ve=(0,i.up)("EditButton"),_e=(0,i.up)("NameEditor"),we=(0,i.up)("Icon"),be=(0,i.up)("Entity"),Ce=(0,i.up)("Modal",!0);return n.entity?((0,i.wg)(),(0,i.j4)(Ce,{key:0,visible:n.visible,class:"entity-modal",title:n.entity.name||n.entity.external_id},{default:(0,i.w5)((()=>[(0,i.Wm)(pe,{ref:"deleteConfirmDiag",title:"Confirm entity deletion",onInput:q.onDelete},{default:(0,i.w5)((()=>[a,o,r,u,c,d,p,m,h])),_:1},8,["onInput"]),(0,i._)("div",y,[(0,i._)("div",g,[f,S.editName?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(ve,{key:0,onClick:t[0]||(t[0]=e=>S.editName=!0)}))]),(0,i._)("div",v,[S.editName?((0,i.wg)(),(0,i.j4)(_e,{key:0,value:n.entity.name,onInput:q.onRename,onCancel:t[1]||(t[1]=e=>S.editName=!1),disabled:S.loading},null,8,["value","onInput","disabled"])):((0,i.wg)(),(0,i.iD)("span",{key:1,textContent:(0,s.zw)(n.entity.name)},null,8,_))])]),(0,i._)("div",w,[(0,i._)("div",b,[C,S.editIcon?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(ve,{key:0,onClick:t[2]||(t[2]=e=>S.editIcon=!0)}))]),(0,i._)("div",k,[S.editIcon?((0,i.wg)(),(0,i.iD)("span",E,[(0,i.Wm)(_e,{value:n.entity.meta?.icon?.class||n.entity.meta?.icon?.url,onInput:q.onIconEdit,onCancel:t[5]||(t[5]=e=>S.editIcon=!1),disabled:S.loading},{default:(0,i.w5)((()=>[(0,i._)("button",{type:"button",title:"Reset",onClick:t[3]||(t[3]=e=>q.onIconEdit(null)),onTouch:t[4]||(t[4]=e=>q.onIconEdit(null))},I,32)])),_:1},8,["value","onInput","disabled"]),D])):((0,i.wg)(),(0,i.j4)(we,(0,s.vs)((0,i.dG)({key:1},n.entity?.meta?.icon||{})),null,16))])]),(0,i._)("div",x,[j,(0,i._)("div",G,[(0,i._)("input",{type:"color",value:n.entity.meta?.icon?.color,onChange:t[6]||(t[6]=(...e)=>q.onIconColorEdit&&q.onIconColorEdit(...e))},null,40,T),(0,i._)("button",{type:"button",title:"Reset",onClick:t[7]||(t[7]=e=>q.onIconColorEdit(null)),onTouch:t[8]||(t[8]=e=>q.onIconColorEdit(null))},O,32)])]),(0,i._)("div",U,[M,(0,i._)("div",{class:"value",textContent:(0,s.zw)(n.entity.plugin)},null,8,$)]),(0,i._)("div",B,[L,(0,i._)("div",{class:"value",textContent:(0,s.zw)(n.entity.id)},null,8,N)]),n.entity.external_id?((0,i.wg)(),(0,i.iD)("div",Z,[V,(0,i._)("div",{class:"value",textContent:(0,s.zw)(n.entity.external_id)},null,8,z)])):(0,i.kq)("",!0),n.entity.description?((0,i.wg)(),(0,i.iD)("div",F,[P,(0,i._)("div",{class:"value",textContent:(0,s.zw)(n.entity.description)},null,8,R)])):(0,i.kq)("",!0),n.entity.external_url?((0,i.wg)(),(0,i.iD)("div",W,[H,(0,i._)("div",K,[(0,i._)("a",{href:n.entity.external_url,target:"_blank",text:n.entity.external_url},null,8,Y)])])):(0,i.kq)("",!0),n.entity.image_url?((0,i.wg)(),(0,i.iD)("div",A,[J,(0,i._)("div",Q,[(0,i._)("img",{class:"entity-image",src:n.entity.image_url},null,8,X)])])):(0,i.kq)("",!0),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(n.entity.data||{},((t,n)=>((0,i.wg)(),(0,i.iD)("div",{key:n},[null!=t?((0,i.wg)(),(0,i.iD)("div",ee,[(0,i._)("div",{class:"title",textContent:(0,s.zw)(e.prettify(n))},null,8,te),(0,i._)("div",{class:"value",textContent:(0,s.zw)(""+t)},null,8,ne)])):(0,i.kq)("",!0)])))),128)),n.entity.created_at?((0,i.wg)(),(0,i.iD)("div",ie,[se,(0,i._)("div",{class:"value",textContent:(0,s.zw)(e.formatDateTime(n.entity.created_at))},null,8,le)])):(0,i.kq)("",!0),n.entity.updated_at?((0,i.wg)(),(0,i.iD)("div",ae,[oe,(0,i._)("div",{class:"value",textContent:(0,s.zw)(e.formatDateTime(n.entity.updated_at))},null,8,re)])):(0,i.kq)("",!0),(0,i._)("div",ue,[ce,(0,i._)("div",de,[(0,i._)("button",{onClick:t[9]||(t[9]=t=>e.$refs.deleteConfirmDiag.show())},me)])]),q.computedConfig.length?((0,i.wg)(),(0,i.iD)("div",he,[(0,i._)("div",{class:"title",onClick:t[10]||(t[10]=e=>S.configCollapsed=!S.configCollapsed)},[ye,(0,i._)("div",ge,[(0,i._)("i",{class:(0,s.C_)(["fas",{"fa-chevron-down":S.configCollapsed,"fa-chevron-up":!S.configCollapsed}])},null,2)])]),S.configCollapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("div",fe,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(q.computedConfig,(t=>((0,i.wg)(),(0,i.j4)(be,{key:t.id,value:t,onInput:n=>e.$emit("input",t)},null,8,["value","onInput"])))),128))]))])):(0,i.kq)("",!0)])),_:1},8,["visible","title"])):(0,i.kq)("",!0)}var _e=n(8453),we=n(1478),be=n(9963);const Ce=e=>((0,i.dD)("data-v-d543b3e4"),e=e(),(0,i.Cn)(),e),ke={class:"dialog-content"},Ee=Ce((()=>(0,i._)("i",{class:"fas fa-check"},null,-1))),Se=Ce((()=>(0,i._)("i",{class:"fas fa-xmark"},null,-1)));function Ie(e,t,n,l,a,o){const r=(0,i.up)("Modal");return(0,i.wg)(),(0,i.j4)(r,{ref:"modal",title:n.title},{default:(0,i.w5)((()=>[(0,i._)("div",ke,[(0,i.WI)(e.$slots,"default",{},void 0,!0)]),(0,i._)("form",{class:"buttons",onSubmit:t[4]||(t[4]=(0,be.iM)(((...e)=>o.onConfirm&&o.onConfirm(...e)),["prevent"]))},[(0,i._)("button",{type:"submit",class:"ok-btn",onClick:t[0]||(t[0]=(...e)=>o.onConfirm&&o.onConfirm(...e)),onTouch:t[1]||(t[1]=(...e)=>o.onConfirm&&o.onConfirm(...e))},[Ee,(0,i.Uk)("   "+(0,s.zw)(n.confirmText),1)],32),(0,i._)("button",{type:"button",class:"cancel-btn",onClick:t[2]||(t[2]=(...e)=>o.close&&o.close(...e)),onTouch:t[3]||(t[3]=(...e)=>o.close&&o.close(...e))},[Se,(0,i.Uk)("   "+(0,s.zw)(n.cancelText),1)],32)],32)])),_:3},8,["title"])}var De={emits:["input","click","touch"],components:{Modal:_e.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()}}},xe=n(3744);const je=(0,xe.Z)(De,[["render",Ie],["__scopeId","data-v-d543b3e4"]]);var Ge=je;const Te=e=>((0,i.dD)("data-v-3344f2bf"),e=e(),(0,i.Cn)(),e),qe=Te((()=>(0,i._)("i",{class:"fas fa-pen-to-square"},null,-1))),Oe=[qe];function Ue(e,t,n,s,l,a){return(0,i.wg)(),(0,i.iD)("button",{class:"edit-btn",onClick:t[0]||(t[0]=e=>a.proxy(e)),onTouch:t[1]||(t[1]=e=>a.proxy(e)),onInput:t[2]||(t[2]=e=>a.proxy(e))},Oe,32)}var Me={emits:["input","click","touch"],methods:{proxy(e){this.$emit(e.type,e)}}};const $e=(0,xe.Z)(Me,[["render",Ue],["__scopeId","data-v-3344f2bf"]]);var Be=$e;const Le=e=>((0,i.dD)("data-v-1405d90f"),e=e(),(0,i.Cn)(),e),Ne=["disabled"],Ze=Le((()=>(0,i._)("button",{type:"submit"},[(0,i._)("i",{class:"fas fa-circle-check"})],-1))),Ve=Le((()=>(0,i._)("i",{class:"fas fa-ban"},null,-1))),ze=[Ve];function Fe(e,t,n,s,l,a){return(0,i.wg)(),(0,i.iD)("form",{onSubmit:t[3]||(t[3]=(0,be.iM)(((...e)=>a.submit&&a.submit(...e)),["prevent"])),class:"name-editor"},[(0,i.wy)((0,i._)("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=e=>l.text=e),disabled:n.disabled},null,8,Ne),[[be.nr,l.text]]),Ze,(0,i._)("button",{class:"cancel",onClick:t[1]||(t[1]=t=>e.$emit("cancel")),onTouch:t[2]||(t[2]=t=>e.$emit("cancel"))},ze,32),(0,i.WI)(e.$slots,"default",{},void 0,!0)],32)}var Pe={emits:["input","cancel"],props:{value:{type:String},disabled:{type:Boolean,deafult:!1}},data(){return{text:null}},methods:{proxy(e){this.$emit(e.type,e)},submit(){return this.$emit("input",this.text),!1}},mounted(){this.text=this.value}};const Re=(0,xe.Z)(Pe,[["render",Fe],["__scopeId","data-v-1405d90f"]]);var We=Re,He=n(6813),Ke=n(3053),Ye=n(7369),Ae={name:"EntityModal",components:{Entity:Ke["default"],Modal:_e.Z,EditButton:Be,NameEditor:We,Icon:we.Z,ConfirmDialog:Ge},mixins:[He.Z],emits:["input","loading"],props:{entity:{type:Object,required:!0},visible:{type:Boolean,default:!1},configValues:{type:Object,default:()=>{}}},computed:{computedConfig(){return Object.values(this.configValues).sort(((e,t)=>(e.name||"").localeCompare(t.name||"")))}},data(){return{loading:!1,editName:!1,editIcon:!1,configCollapsed:!0}},methods:{async onRename(e){this.loading=!0;try{const t={};t[this.entity.id]=e,await this.request("entities.rename",t)}finally{this.loading=!1,this.editName=!1}},async onDelete(){this.loading=!0;try{await this.request("entities.delete",[this.entity.id])}finally{this.loading=!1}},async onIconEdit(e){this.loading=!0;try{const t={url:null,class:null};e?.length?e.startsWith("http")?t.url=e:t.class=e:(t.url=(Ye[this.entity.type]||{})?.icon?.url,t.class=(Ye[this.entity.type]||{})?.icon?.["class"]);const n={};n[this.entity.id]={icon:t},await this.request("entities.set_meta",n)}finally{this.loading=!1,this.editIcon=!1}},async onIconColorEdit(e){this.loading=!0;try{const t=this.entity.meta?.icon||{};t.color=e?e.target.value:null;const n={};n[this.entity.id]={icon:t},await this.request("entities.set_meta",n)}finally{this.loading=!1,this.editIcon=!1}}}};const Je=(0,xe.Z)(Ae,[["render",ve],["__scopeId","data-v-48d9692c"]]);var Qe=Je},6518:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var i=n(6252),s=n(3577),l=n(9963);const a={class:"entities-selectors-container"},o={class:"selector"},r={key:1,class:"selector"};function u(e,t,n,u,c,d){const p=(0,i.up)("DropdownItem"),m=(0,i.up)("Dropdown");return(0,i.wg)(),(0,i.iD)("div",a,[(0,i._)("div",o,[(0,i.Wm)(m,{title:"Group by","icon-class":"fas fa-object-ungroup",ref:"groupingSelector"},{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(d.visibleGroupings,(e=>((0,i.wg)(),(0,i.j4)(p,{key:e,text:d.prettifyGroupingName(e),"item-class":{selected:n.value?.grouping===e},onClick:t=>d.onGroupingChanged(e)},null,8,["text","item-class","onClick"])))),128))])),_:1},512)]),n.value?.grouping?((0,i.wg)(),(0,i.iD)("div",{key:0,class:(0,s.C_)(["selector",{active:d.isGroupFilterActive}])},[(0,i.Wm)(m,{title:"Filter by","icon-class":"fas fa-filter",ref:"groupSelector","keep-open-on-item-click":""},{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(d.sortedGroups,(e=>((0,i.wg)(),(0,i.j4)(p,(0,i.dG)({key:e,text:e},d.iconForGroup(e),{"item-class":{selected:!!c.selectedGroups[e]},onClick:(0,l.iM)((t=>d.toggleGroup(e)),["stop"])}),null,16,["text","item-class","onClick"])))),128))])),_:1},512)],2)):(0,i.kq)("",!0),Object.keys(n.entityGroups.id||{}).length?((0,i.wg)(),(0,i.iD)("div",r,[(0,i.wy)((0,i._)("input",{ref:"search",type:"text",class:"search-bar",placeholder:"🔎","onUpdate:modelValue":t[0]||(t[0]=e=>c.searchTerm=e)},null,512),[[l.nr,c.searchTerm]])])):(0,i.kq)("",!0)])}var c=n(6813),d=n(5771),p=n(2684),m=n(7369),h=n(1359),y={name:"Selector",emits:["input"],mixins:[c.Z],components:{Dropdown:d.Z,DropdownItem:p.Z},props:{entityGroups:{type:Object,required:!0},value:{type:Object,required:!0}},data(){return{selectedGroups:{},searchTerm:""}},computed:{visibleGroupings(){return Object.keys(this.entityGroups).filter((e=>"id"!==e))},sortedGroups(){return Object.keys(this.entityGroups[this.value?.grouping]||{}).sort()},typesMeta(){return m},isGroupFilterActive(){return Object.keys(this.selectedGroups).length!==this.sortedGroups.length},selectedEntities(){return Object.values(this.entityGroups.id).filter((e=>{if(!this.selectedGroups[e[this.value?.grouping]])return!1;if(this.searchTerm?.length){const t=this.searchTerm.toLowerCase();return(e.name||"").toLowerCase().indexOf(t)>=0||(e.plugin||"").toLowerCase().indexOf(t)>=0||(e.external_id||"").toLowerCase().indexOf(t)>=0||(e.id||0).toString()==t}return!0})).reduce(((e,t)=>(e[t.id]=t,e)),{})}},methods:{prettifyGroupingName(e){return e?(e=this.prettify(e),e.endsWith("y")&&(e=e.slice(0,e.length-1)+"ie"),e+="s",e):""},iconForGroup(e){if("plugin"===this.value.grouping&&h[e]){const t=h[e];return{"icon-class":t["class"]?.length||!t.imgUrl?.length?t["class"]:"fas fa-gears","icon-url":t.imgUrl}}return{}},synchronizeSelectedEntities(){const e={...this.value};e.selectedEntities=this.selectedEntities,this.$emit("input",e)},updateSearchTerm(){const e={...this.value};e.searchTerm=this.searchTerm,e.selectedEntities=this.selectedEntities,this.$emit("input",e)},refreshGroupFilter(e){if(e)this.selectedGroups=Object.keys(this.entityGroups[this.value?.grouping]||{}).reduce(((e,t)=>(e[t]=!0,e)),{});else for(const t of Object.keys(this.entityGroups[this.value?.grouping]))null==this.selectedGroups[t]&&(this.selectedGroups[t]=!0);this.synchronizeSelectedEntities()},toggleGroup(e){this.selectedGroups[e]=!this.selectedGroups[e],this.synchronizeSelectedEntities()},onGroupingChanged(e){if(!this.entityGroups[e]||e===this.value?.grouping)return!1;const t={...this.value};t.grouping=e,this.$emit("input",t)}},mounted(){this.refreshGroupFilter(!0),this.$watch((()=>this.value?.grouping),(()=>{this.refreshGroupFilter(!0)})),this.$watch((()=>this.searchTerm),this.updateSearchTerm),this.$watch((()=>this.entityGroups),(()=>{this.refreshGroupFilter(!1)}))}},g=n(3744);const f=(0,g.Z)(y,[["render",u],["__scopeId","data-v-7babaacc"]]);var v=f},7243:function(e,t,n){var i={"./Battery":[9651,9,218,9651],"./Battery.vue":[9651,9,218,9651],"./BinarySensor":[7549,9,218,3490,7549],"./BinarySensor.vue":[7549,9,218,3490,7549],"./BluetoothDevice":[4435,9,218,4435],"./BluetoothDevice.vue":[4435,9,218,4435],"./Button":[8625,9,218,5006,8625],"./Button.vue":[8625,9,218,5006,8625],"./CurrentSensor":[1399,9,218,5006,1399],"./CurrentSensor.vue":[1399,9,218,5006,1399],"./Device":[4435,9,218,4435],"./Device.vue":[4435,9,218,4435],"./Dimmer":[3593,9,7246,218,3593],"./Dimmer.vue":[3593,9,7246,218,3593],"./EnergySensor":[1399,9,218,5006,1399],"./EnergySensor.vue":[1399,9,218,5006,1399],"./Entity":[3053,9],"./Entity.vue":[3053,9],"./EntityIcon":[3459,9,218,3459],"./EntityIcon.vue":[3459,9,218,3459],"./EntityMixin":[7909,9],"./EntityMixin.vue":[7909,9],"./EnumSensor":[8625,9,218,5006,8625],"./EnumSensor.vue":[8625,9,218,5006,8625],"./EnumSwitch":[3398,9,218,3398],"./EnumSwitch.vue":[3398,9,218,3398],"./HumiditySensor":[1399,9,218,5006,1399],"./HumiditySensor.vue":[1399,9,218,5006,1399],"./IlluminanceSensor":[1399,9,218,5006,1399],"./IlluminanceSensor.vue":[1399,9,218,5006,1399],"./Index":[9688,9],"./Index.vue":[9688,9],"./Light":[2315,9,7246,218,3490,2315],"./Light.vue":[2315,9,7246,218,3490,2315],"./LinkQuality":[8126,9,218,8126],"./LinkQuality.vue":[8126,9,218,8126],"./Modal":[8472,9],"./Modal.vue":[8472,9],"./MotionSensor":[1399,9,218,5006,1399],"./MotionSensor.vue":[1399,9,218,5006,1399],"./MultiValueSensor":[1399,9,218,5006,1399],"./MultiValueSensor.vue":[1399,9,218,5006,1399],"./Muted":[3303,9,218,3490,3303],"./Muted.vue":[3303,9,218,3490,3303],"./NumericSensor":[1399,9,218,5006,1399],"./NumericSensor.vue":[1399,9,218,5006,1399],"./PowerSensor":[1399,9,218,5006,1399],"./PowerSensor.vue":[1399,9,218,5006,1399],"./RawSensor":[1399,9,218,5006,1399],"./RawSensor.vue":[1399,9,218,5006,1399],"./Selector":[6518,9],"./Selector.vue":[6518,9],"./Sensor":[1399,9,218,5006,1399],"./Sensor.vue":[1399,9,218,5006,1399],"./Switch":[3303,9,218,3490,3303],"./Switch.vue":[3303,9,218,3490,3303],"./TemperatureSensor":[1399,9,218,5006,1399],"./TemperatureSensor.vue":[1399,9,218,5006,1399],"./VoltageSensor":[1399,9,218,5006,1399],"./VoltageSensor.vue":[1399,9,218,5006,1399],"./Volume":[3593,9,7246,218,3593],"./Volume.vue":[3593,9,7246,218,3593],"./common.scss":[65,9,4981,65],"./meta":[7369,3],"./meta.json":[7369,3],"./vars.scss":[5207,9,4981,5207]};function s(e){if(!n.o(i,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],s=t[0];return Promise.all(t.slice(2).map(n.e)).then((function(){return n.t(s,16|t[1])}))}s.keys=function(){return Object.keys(i)},s.id=7243,e.exports=s},7369:function(e){"use strict";e.exports=JSON.parse('{"battery":{"name":"Battery","name_plural":"Batteries","icon":{"class":"fas fa-battery-full"}},"button":{"name":"Button","name_plural":"Buttons","icon":{"class":"fas fa-circle-dot"}},"current_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-bolt"}},"motion_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-person-running"}},"bluetooth_device":{"name":"Device","name_plural":"Devices","icon":{"class":"fab fa-bluetooth-b"}},"device":{"name":"Device","name_plural":"Devices","icon":{"class":"fas fa-gear"}},"volume":{"name":"Dimmer","name_plural":"Dimmers","icon":{"class":"fas fa-volume-high"}},"dimmer":{"name":"Dimmer","name_plural":"Dimmers","icon":{"class":"fas fa-gauge"}},"energy_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-plug"}},"entity":{"name":"Entity","name_plural":"Entities","icon":{"class":"fas fa-circle-question"}},"humidity_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-droplet"}},"illuminance_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-sun"}},"light":{"name":"Light","name_plural":"Lights","icon":{"class":"fas fa-lightbulb"}},"link_quality":{"name":"Link Quality","name_plural":"Link Qualities","icon":{"class":"fas fa-tower-broadcast"}},"power_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-plug"}},"temperature_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-temperature-half"}},"muted":{"name":"Switch","name_plural":"Switches","icon":{"class":"fas fa-volume-xmark"}},"enum_switch":{"name":"Switch","name_plural":"Switches","icon":{"class":"fas fa-gauge"}},"switch":{"name":"Switch","name_plural":"Switches","icon":{"class":"fas fa-toggle-on"}},"voltage_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-car-battery"}},"multi_value_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-thermometer"}},"binary_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-thermometer"}},"numeric_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-thermometer"}},"enum_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-thermometer"}},"sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-thermometer"}}}')}}]); -//# sourceMappingURL=3053.a4a1ec4a.js.map \ No newline at end of file +(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[3053],{3053:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var i=n(6252),s=n(3577),l=n(9963);const a={key:0,class:"children fade-in"};function o(e,t,n,o,r,u){const c=(0,i.up)("Entity",!0);return(0,i.wg)(),(0,i.iD)("div",{class:(0,s.C_)(["entity-container-wrapper",{"with-children":u.hasChildren,collapsed:u.isCollapsed,hidden:!e.value?.name?.length}])},[(0,i._)("div",{class:(0,s.C_)(["row item entity-container",{"with-children":u.hasChildren,collapsed:u.isCollapsed,blink:r.justUpdated}])},[(0,i._)("div",{class:(0,s.C_)(["adjuster",{"col-12":!u.hasChildren,"col-11":u.hasChildren}])},[((0,i.wg)(),(0,i.j4)((0,i.LL)(r.component),{value:e.value,loading:e.loading,ref:"instance",error:e.error||0==e.value?.reachable,onClick:u.onClick,onInput:t[0]||(t[0]=t=>e.$emit("input",t)),onLoading:t[1]||(t[1]=t=>e.$emit("loading",t))},null,8,["value","loading","error","onClick"]))],2),u.hasChildren?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"col-1 collapse-toggler",onClick:t[2]||(t[2]=(0,l.iM)(((...e)=>u.toggleCollapsed&&u.toggleCollapsed(...e)),["stop"]))},[(0,i._)("i",{class:(0,s.C_)(["fas",{"fa-chevron-down":u.isCollapsed,"fa-chevron-up":!u.isCollapsed}])},null,2)])):(0,i.kq)("",!0)],2),u.isCollapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("div",a,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(u.computedChildren,(t=>((0,i.wg)(),(0,i.iD)("div",{class:"child",key:t.id},[(0,i.Wm)(c,{value:t,loading:e.loading,level:e.level+1,onInput:n=>e.$emit("input",t)},null,8,["value","loading","level","onInput"])])))),128))]))],2)}var r=n(2262),u=n(7909),c=n(5250),d={name:"Entity",mixins:[u["default"]],emits:["input","loading","update"],data(){return{component:null,justUpdated:!1}},computed:{computedChildren(){return Object.values(this.children||{}).filter((e=>e))},hasChildren(){return!!this.computedChildren.length},isCollapsed(){return!this.hasChildren||this.collapsed},instance(){return this.$refs.instance}},methods:{valuesEqual(e,t){e={...e},t={...t};for(const n of["updated_at","data"])delete e[n],delete t[n];return this.objectsEqual(e,t)},onClick(e){(e.target.classList.contains("label")||e.target.classList.contains("head"))&&(e.stopPropagation(),this.toggleCollapsed())},onEntityUpdate(e){const t=e?.id,n=null!=t&&this.children&&t in this.children;n&&this.setJustUpdated()},toggleCollapsed(){this.collapsed=!this.collapsed,this.instance&&(this.instance.collapsed=!this.instance.collapsed)},setJustUpdated(){this.justUpdated=!0;const e=this;setTimeout((()=>e.justUpdated=!1),1e3)}},mounted(){if("Entity"!==this.type){const e=this.type.split("_").map((e=>e[0].toUpperCase()+e.slice(1))).join("");this.$watch((()=>this.value),((e,t)=>{if(this.valuesEqual(t,e))return!1;this.setJustUpdated(),this.$emit("update",{value:e})})),this.component=(0,r.XI)((0,i.RC)((()=>n(7243)(`./${e}`))))}c.$.onEntity(this.onEntityUpdate)}},p=n(3744);const m=(0,p.Z)(d,[["render",o],["__scopeId","data-v-70080e98"]]);var h=m},7909:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var i=n(6813),s={name:"EntityMixin",mixins:[i.Z],emits:["input"],props:{loading:{type:Boolean,default:!1},error:{type:Boolean,default:!1},value:{type:Object,required:!0},children:{type:Object,default:()=>{}},level:{type:Number,default:0}},data(){return{modalVisible:!1,collapsed:!0}},computed:{type(){let e=this.value.type||"";return e.split("_").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join("")}}};const l=s;var a=l},9688:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return P}});var i=n(6252),s=n(3577);const l=e=>((0,i.dD)("data-v-51aa9db3"),e=e(),(0,i.Cn)(),e),a={class:"row plugin entities-container"},o={class:"col-11 left"},r={class:"col-1 right"},u=l((()=>(0,i._)("i",{class:"fa fa-sync-alt"},null,-1))),c=[u],d={class:"groups-canvas"},p=(0,i.Uk)("No entities found"),m={key:2,class:"groups-container"},h={class:"frame"},y={class:"header"},g={class:"section left"},f={class:"section center"},v=["textContent"],_={class:"section right"},w=["onClick"],b=l((()=>(0,i._)("i",{class:"fa fa-sync-alt"},null,-1))),C=[b],k={class:"body"},E=["onClick"];function S(e,t,n,l,u,b){const S=(0,i.up)("Loading"),I=(0,i.up)("Selector"),D=(0,i.up)("EntityModal"),x=(0,i.up)("NoItems"),j=(0,i.up)("Icon"),G=(0,i.up)("Entity");return(0,i.wg)(),(0,i.iD)("div",a,[u.loading?((0,i.wg)(),(0,i.j4)(S,{key:0})):(0,i.kq)("",!0),(0,i._)("header",null,[(0,i._)("div",o,[(0,i.Wm)(I,{"entity-groups":b.entityGroups,value:u.selector,onInput:t[0]||(t[0]=e=>u.selector=e)},null,8,["entity-groups","value"])]),(0,i._)("div",r,[(0,i._)("button",{title:"Refresh",onClick:t[1]||(t[1]=(...e)=>b.refresh&&b.refresh(...e))},c)])]),(0,i._)("div",d,[u.modalEntityId&&u.entities[u.modalEntityId]?((0,i.wg)(),(0,i.j4)(D,{key:0,entity:u.entities[u.modalEntityId],visible:u.modalVisible,"config-values":b.configValuesByParentId(u.modalEntityId),onClose:b.onEntityModal},null,8,["entity","visible","config-values","onClose"])):(0,i.kq)("",!0),Object.keys(b.displayGroups||{})?.length?((0,i.wg)(),(0,i.iD)("div",m,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(b.displayGroups,(e=>((0,i.wg)(),(0,i.iD)("div",{class:"group fade-in",key:e.name},[(0,i._)("div",h,[(0,i._)("div",y,[(0,i._)("span",g,["category"===u.selector.grouping&&b.entitiesMeta[b.typesByCategory[e.name]]?((0,i.wg)(),(0,i.j4)(j,(0,s.vs)((0,i.dG)({key:0},b.entitiesMeta[b.typesByCategory[e.name]].icon||{})),null,16)):"plugin"===u.selector.grouping&&b.pluginIcons[e.name]?((0,i.wg)(),(0,i.j4)(j,{key:1,class:(0,s.C_)(b.pluginIcons[e.name]?.class),url:b.pluginIcons[e.name]?.imgUrl},null,8,["class","url"])):(0,i.kq)("",!0)]),(0,i._)("span",f,[(0,i._)("div",{class:"title",textContent:(0,s.zw)(e.name)},null,8,v)]),(0,i._)("span",_,[(0,i._)("button",{title:"Refresh",onClick:t=>b.refresh(e)},C,8,w)])]),(0,i._)("div",k,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.entities,(e=>((0,i.wg)(),(0,i.iD)("div",{class:"entity-frame",onClick:t=>b.onEntityModal(e.id),key:e.id},[e.parent_id?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(G,{key:0,value:e,children:b.childrenByParentId(e.id),onInput:t=>b.onEntityInput(e),error:!!u.errorEntities[e.id],loading:!!u.loadingEntities[e.id],onLoading:t=>u.loadingEntities[e.id]=t},null,8,["value","children","onInput","error","loading","onLoading"]))],8,E)))),128))])])])))),128))])):((0,i.wg)(),(0,i.j4)(x,{key:1},{default:(0,i.w5)((()=>[p])),_:1}))])])}var I=n(6813),D=n(1232),x=n(1478);const j={class:"no-items-container"},G={class:"no-items fade-in"};function T(e,t,n,s,l,a){return(0,i.wg)(),(0,i.iD)("div",j,[(0,i._)("div",G,[(0,i.WI)(e.$slots,"default",{},void 0,!0)])])}var q={name:"NoItems"},O=n(3744);const U=(0,O.Z)(q,[["render",T],["__scopeId","data-v-6fec32b5"]]);var M=U,$=n(3053),B=n(6518),L=n(8472),N=n(5250),Z=n(1359),V=n(7369),z={name:"Entities",components:{Loading:D.Z,Icon:x.Z,Entity:$["default"],Selector:B["default"],NoItems:M,EntityModal:L["default"]},mixins:[I.Z],props:{entityScanTimeout:{type:Number,default:30}},data(){return{loading:!1,loadingEntities:{},errorEntities:{},entityTimeouts:{},entities:{},modalEntityId:null,modalVisible:!1,selector:{grouping:"category",selectedEntities:{}}}},computed:{entitiesMeta(){return V},pluginIcons(){return Z},entityTypes(){return this.groupEntities("type")},typesByCategory(){return Object.entries(V).reduce(((e,[t,n])=>(e[n.name_plural]=t,e)),{})},entityGroups(){return{id:Object.entries(this.groupEntities("id")).reduce(((e,[t,n])=>(e[t]=n[0],e)),{}),category:this.groupEntities("category"),plugin:this.groupEntities("plugin")}},displayGroups(){return Object.entries(this.entityGroups[this.selector.grouping]).filter((e=>e[1].filter((e=>!!this.selector.selectedEntities[e.id]&&null==e.parent_id)).length>0)).map((([e,t])=>({name:e,entities:t.filter((e=>e.id in this.selector.selectedEntities))}))).sort(((e,t)=>e.name.localeCompare(t.name)))}},methods:{groupEntities(e){return Object.values(this.entities).filter((e=>null==e.parent_id)).reduce(((t,n)=>{const i=t[n[e]]||{};return i[n.id]=n,t[n[e]]=Object.values(i).sort(((e,t)=>e.name.localeCompare(t.name))),t}),{})},_shouldSkipLoading(e){const t=Object.values(this.childrenByParentId(e.id)),n=t.filter((e=>!e.is_configuration&&!e.is_write_only&&!e.is_query_disabled)).length>0;return e.is_query_disabled||e.is_write_only||t.length&&!n},async refresh(e){const t=(e?e.entities:this.entities)||{},n={};e&&(n.plugins=Object.keys(t.reduce(((e,t)=>(e[t.plugin]=!0,e)),{}))),this.loadingEntities=Object.values(t).reduce(((e,t)=>{if(this._shouldSkipLoading(t))return e;const n=this,i=t.id;return this.entityTimeouts[i]&&clearTimeout(this.entityTimeouts[i]),this.entityTimeouts[i]=setTimeout((()=>{n.loadingEntities[i]&&delete n.loadingEntities[i],n.entityTimeouts[i]&&delete n.entityTimeouts[i],n.errorEntities[i]=t,console.warn(`Scan timeout for ${t.name}`)}),1e3*this.entityScanTimeout),e[i]=!0,e}),{}),await this.request("entities.scan",n)},async sync(){this.loading=!0;try{this.entities=(await this.request("entities.get")).reduce(((e,t)=>(t.name=t?.meta?.name_override||t.name,t.category=V[t.type].name_plural,t.meta={...V[t.type]||{},...t.meta||{}},e[t.id]=t,e)),{}),this.selector.selectedEntities=this.entityGroups.id}finally{this.loading=!1}},childrenByParentId(e){return Object.values(this.entities).filter((t=>t&&t.parent_id===e&&!t.is_configuration)).reduce(((e,t)=>(e[t.id]=t,e)),{})},configValuesByParentId(e){return Object.values(this.entities).filter((t=>t&&t.parent_id===e&&t.is_configuration)).reduce(((e,t)=>(e[t.id]=t,e)),{})},clearEntityTimeouts(e){this.errorEntities[e]&&delete this.errorEntities[e],this.loadingEntities[e]&&delete this.loadingEntities[e],this.entityTimeouts[e]&&(clearTimeout(this.entityTimeouts[e]),delete this.entityTimeouts[e])},onEntityInput(e){e.category=V[e.type].name_plural,this.entities[e.id]=e,this.clearEntityTimeouts(e.id),this.loadingEntities[e.id]&&delete this.loadingEntities[e.id]},onEntityUpdate(e){const t=e.entity.id;if(null==t)return;this.clearEntityTimeouts(t);const n={...e.entity};null==e.entity?.state&&(n.state=this.entities[t]?.state),n.meta?.name_override?.length?n.name=n.meta.name_override:this.entities[t]?.meta?.name_override?.length?n.name=this.entities[t].meta.name_override:n.name=e.entity?.name||this.entities[t]?.name,n.category=V[n.type].name_plural,n.meta={...V[e.entity.type]||{},...this.entities[t]?.meta||{},...e.entity?.meta||{}},this.entities[t]=n,N.$.publishEntity(n)},onEntityDelete(e){const t=e.entity?.id;null!=t&&(t===this.modalEntityId&&(this.modalEntityId=null),this.entities[t]&&delete this.entities[t])},onEntityModal(e){e?(this.modalEntityId=e,this.modalVisible=!0):(this.modalEntityId=null,this.modalVisible=!1)}},async mounted(){this.subscribe(this.onEntityUpdate,"on-entity-update","platypush.message.event.entities.EntityUpdateEvent"),this.subscribe(this.onEntityDelete,"on-entity-delete","platypush.message.event.entities.EntityDeleteEvent"),await this.sync(),await this.refresh()},unmounted(){this.unsubscribe("on-entity-update")}};const F=(0,O.Z)(z,[["render",S],["__scopeId","data-v-51aa9db3"]]);var P=F},8472:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Qe}});var i=n(6252),s=n(3577);const l=e=>((0,i.dD)("data-v-48d9692c"),e=e(),(0,i.Cn)(),e),a=(0,i.Uk)(" Are you "),o=l((()=>(0,i._)("b",null,"sure",-1))),r=(0,i.Uk)(" that you want to delete this entity? "),u=l((()=>(0,i._)("br",null,null,-1))),c=l((()=>(0,i._)("br",null,null,-1))),d=(0,i.Uk)(" Note: you should only delete an entity if its plugin has been disabled or the entity is no longer reachable."),p=l((()=>(0,i._)("br",null,null,-1))),m=l((()=>(0,i._)("br",null,null,-1))),h=(0,i.Uk)(" Otherwise, the entity will simply be created again upon the next scan. "),y={class:"table-row"},g={class:"title"},f=(0,i.Uk)(" Name "),v={class:"value"},_=["textContent"],w={class:"table-row"},b={class:"title"},C=(0,i.Uk)(" Icon "),k={class:"value icon-canvas"},E={key:0,class:"icon-editor"},S=l((()=>(0,i._)("i",{class:"fas fa-rotate-left"},null,-1))),I=[S],D=l((()=>(0,i._)("span",{class:"help"},[(0,i.Uk)(" Supported: image URLs or "),(0,i._)("a",{href:"https://fontawesome.com/icons",target:"_blank"},"FontAwesome icon classes"),(0,i.Uk)(". ")],-1))),x={class:"table-row"},j=l((()=>(0,i._)("div",{class:"title"}," Icon color ",-1))),G={class:"value icon-color-picker"},T=["value"],q=l((()=>(0,i._)("i",{class:"fas fa-rotate-left"},null,-1))),O=[q],U={class:"table-row"},M=l((()=>(0,i._)("div",{class:"title"},"Plugin",-1))),$=["textContent"],B={class:"table-row"},L=l((()=>(0,i._)("div",{class:"title"},"Internal ID",-1))),N=["textContent"],Z={key:0,class:"table-row"},V=l((()=>(0,i._)("div",{class:"title"},"External ID",-1))),z=["textContent"],F={key:1,class:"table-row"},P=l((()=>(0,i._)("div",{class:"title"},"Description",-1))),R=["textContent"],W={key:2,class:"table-row"},H=l((()=>(0,i._)("div",{class:"title"},"External URL",-1))),K={class:"value url"},Y=["href","text"],A={key:3,class:"table-row"},J=l((()=>(0,i._)("div",{class:"title"},"Image",-1))),Q={class:"value"},X=["src"],ee={key:0,class:"table-row"},te=["textContent"],ne=["textContent"],ie={key:4,class:"table-row"},se=l((()=>(0,i._)("div",{class:"title"},"Created at",-1))),le=["textContent"],ae={key:5,class:"table-row"},oe=l((()=>(0,i._)("div",{class:"title"},"Updated at",-1))),re=["textContent"],ue={class:"table-row delete-entity-container"},ce=l((()=>(0,i._)("div",{class:"title"},"Delete Entity",-1))),de={class:"value"},pe=l((()=>(0,i._)("i",{class:"fas fa-trash"},null,-1))),me=[pe],he={key:6,class:"config-container"},ye=l((()=>(0,i._)("div",{class:"col-11"},[(0,i._)("i",{class:"fas fa-screwdriver-wrench"}),(0,i.Uk)("   Configuration ")],-1))),ge={class:"col-1 pull-right"},fe={key:0,class:"entities"};function ve(e,t,n,l,S,q){const pe=(0,i.up)("ConfirmDialog"),ve=(0,i.up)("EditButton"),_e=(0,i.up)("NameEditor"),we=(0,i.up)("Icon"),be=(0,i.up)("Entity"),Ce=(0,i.up)("Modal",!0);return n.entity?((0,i.wg)(),(0,i.j4)(Ce,{key:0,visible:n.visible,class:"entity-modal",title:n.entity.name||n.entity.external_id},{default:(0,i.w5)((()=>[(0,i.Wm)(pe,{ref:"deleteConfirmDiag",title:"Confirm entity deletion",onInput:q.onDelete},{default:(0,i.w5)((()=>[a,o,r,u,c,d,p,m,h])),_:1},8,["onInput"]),(0,i._)("div",y,[(0,i._)("div",g,[f,S.editName?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(ve,{key:0,onClick:t[0]||(t[0]=e=>S.editName=!0)}))]),(0,i._)("div",v,[S.editName?((0,i.wg)(),(0,i.j4)(_e,{key:0,value:n.entity.name,onInput:q.onRename,onCancel:t[1]||(t[1]=e=>S.editName=!1),disabled:S.loading},null,8,["value","onInput","disabled"])):((0,i.wg)(),(0,i.iD)("span",{key:1,textContent:(0,s.zw)(n.entity.name)},null,8,_))])]),(0,i._)("div",w,[(0,i._)("div",b,[C,S.editIcon?(0,i.kq)("",!0):((0,i.wg)(),(0,i.j4)(ve,{key:0,onClick:t[2]||(t[2]=e=>S.editIcon=!0)}))]),(0,i._)("div",k,[S.editIcon?((0,i.wg)(),(0,i.iD)("span",E,[(0,i.Wm)(_e,{value:n.entity.meta?.icon?.class||n.entity.meta?.icon?.url,onInput:q.onIconEdit,onCancel:t[5]||(t[5]=e=>S.editIcon=!1),disabled:S.loading},{default:(0,i.w5)((()=>[(0,i._)("button",{type:"button",title:"Reset",onClick:t[3]||(t[3]=e=>q.onIconEdit(null)),onTouch:t[4]||(t[4]=e=>q.onIconEdit(null))},I,32)])),_:1},8,["value","onInput","disabled"]),D])):((0,i.wg)(),(0,i.j4)(we,(0,s.vs)((0,i.dG)({key:1},n.entity?.meta?.icon||{})),null,16))])]),(0,i._)("div",x,[j,(0,i._)("div",G,[(0,i._)("input",{type:"color",value:n.entity.meta?.icon?.color,onChange:t[6]||(t[6]=(...e)=>q.onIconColorEdit&&q.onIconColorEdit(...e))},null,40,T),(0,i._)("button",{type:"button",title:"Reset",onClick:t[7]||(t[7]=e=>q.onIconColorEdit(null)),onTouch:t[8]||(t[8]=e=>q.onIconColorEdit(null))},O,32)])]),(0,i._)("div",U,[M,(0,i._)("div",{class:"value",textContent:(0,s.zw)(n.entity.plugin)},null,8,$)]),(0,i._)("div",B,[L,(0,i._)("div",{class:"value",textContent:(0,s.zw)(n.entity.id)},null,8,N)]),n.entity.external_id?((0,i.wg)(),(0,i.iD)("div",Z,[V,(0,i._)("div",{class:"value",textContent:(0,s.zw)(n.entity.external_id)},null,8,z)])):(0,i.kq)("",!0),n.entity.description?((0,i.wg)(),(0,i.iD)("div",F,[P,(0,i._)("div",{class:"value",textContent:(0,s.zw)(n.entity.description)},null,8,R)])):(0,i.kq)("",!0),n.entity.external_url?((0,i.wg)(),(0,i.iD)("div",W,[H,(0,i._)("div",K,[(0,i._)("a",{href:n.entity.external_url,target:"_blank",text:n.entity.external_url},null,8,Y)])])):(0,i.kq)("",!0),n.entity.image_url?((0,i.wg)(),(0,i.iD)("div",A,[J,(0,i._)("div",Q,[(0,i._)("img",{class:"entity-image",src:n.entity.image_url},null,8,X)])])):(0,i.kq)("",!0),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(n.entity.data||{},((t,n)=>((0,i.wg)(),(0,i.iD)("div",{key:n},[null!=t?((0,i.wg)(),(0,i.iD)("div",ee,[(0,i._)("div",{class:"title",textContent:(0,s.zw)(e.prettify(n))},null,8,te),(0,i._)("div",{class:"value",textContent:(0,s.zw)(""+t)},null,8,ne)])):(0,i.kq)("",!0)])))),128)),n.entity.created_at?((0,i.wg)(),(0,i.iD)("div",ie,[se,(0,i._)("div",{class:"value",textContent:(0,s.zw)(e.formatDateTime(n.entity.created_at))},null,8,le)])):(0,i.kq)("",!0),n.entity.updated_at?((0,i.wg)(),(0,i.iD)("div",ae,[oe,(0,i._)("div",{class:"value",textContent:(0,s.zw)(e.formatDateTime(n.entity.updated_at))},null,8,re)])):(0,i.kq)("",!0),(0,i._)("div",ue,[ce,(0,i._)("div",de,[(0,i._)("button",{onClick:t[9]||(t[9]=t=>e.$refs.deleteConfirmDiag.show())},me)])]),q.computedConfig.length?((0,i.wg)(),(0,i.iD)("div",he,[(0,i._)("div",{class:"title",onClick:t[10]||(t[10]=e=>S.configCollapsed=!S.configCollapsed)},[ye,(0,i._)("div",ge,[(0,i._)("i",{class:(0,s.C_)(["fas",{"fa-chevron-down":S.configCollapsed,"fa-chevron-up":!S.configCollapsed}])},null,2)])]),S.configCollapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("div",fe,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(q.computedConfig,(t=>((0,i.wg)(),(0,i.j4)(be,{key:t.id,value:t,onInput:n=>e.$emit("input",t)},null,8,["value","onInput"])))),128))]))])):(0,i.kq)("",!0)])),_:1},8,["visible","title"])):(0,i.kq)("",!0)}var _e=n(8453),we=n(1478),be=n(9963);const Ce=e=>((0,i.dD)("data-v-d543b3e4"),e=e(),(0,i.Cn)(),e),ke={class:"dialog-content"},Ee=Ce((()=>(0,i._)("i",{class:"fas fa-check"},null,-1))),Se=Ce((()=>(0,i._)("i",{class:"fas fa-xmark"},null,-1)));function Ie(e,t,n,l,a,o){const r=(0,i.up)("Modal");return(0,i.wg)(),(0,i.j4)(r,{ref:"modal",title:n.title},{default:(0,i.w5)((()=>[(0,i._)("div",ke,[(0,i.WI)(e.$slots,"default",{},void 0,!0)]),(0,i._)("form",{class:"buttons",onSubmit:t[4]||(t[4]=(0,be.iM)(((...e)=>o.onConfirm&&o.onConfirm(...e)),["prevent"]))},[(0,i._)("button",{type:"submit",class:"ok-btn",onClick:t[0]||(t[0]=(...e)=>o.onConfirm&&o.onConfirm(...e)),onTouch:t[1]||(t[1]=(...e)=>o.onConfirm&&o.onConfirm(...e))},[Ee,(0,i.Uk)("   "+(0,s.zw)(n.confirmText),1)],32),(0,i._)("button",{type:"button",class:"cancel-btn",onClick:t[2]||(t[2]=(...e)=>o.close&&o.close(...e)),onTouch:t[3]||(t[3]=(...e)=>o.close&&o.close(...e))},[Se,(0,i.Uk)("   "+(0,s.zw)(n.cancelText),1)],32)],32)])),_:3},8,["title"])}var De={emits:["input","click","touch"],components:{Modal:_e.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()}}},xe=n(3744);const je=(0,xe.Z)(De,[["render",Ie],["__scopeId","data-v-d543b3e4"]]);var Ge=je;const Te=e=>((0,i.dD)("data-v-3344f2bf"),e=e(),(0,i.Cn)(),e),qe=Te((()=>(0,i._)("i",{class:"fas fa-pen-to-square"},null,-1))),Oe=[qe];function Ue(e,t,n,s,l,a){return(0,i.wg)(),(0,i.iD)("button",{class:"edit-btn",onClick:t[0]||(t[0]=e=>a.proxy(e)),onTouch:t[1]||(t[1]=e=>a.proxy(e)),onInput:t[2]||(t[2]=e=>a.proxy(e))},Oe,32)}var Me={emits:["input","click","touch"],methods:{proxy(e){this.$emit(e.type,e)}}};const $e=(0,xe.Z)(Me,[["render",Ue],["__scopeId","data-v-3344f2bf"]]);var Be=$e;const Le=e=>((0,i.dD)("data-v-1405d90f"),e=e(),(0,i.Cn)(),e),Ne=["disabled"],Ze=Le((()=>(0,i._)("button",{type:"submit"},[(0,i._)("i",{class:"fas fa-circle-check"})],-1))),Ve=Le((()=>(0,i._)("i",{class:"fas fa-ban"},null,-1))),ze=[Ve];function Fe(e,t,n,s,l,a){return(0,i.wg)(),(0,i.iD)("form",{onSubmit:t[3]||(t[3]=(0,be.iM)(((...e)=>a.submit&&a.submit(...e)),["prevent"])),class:"name-editor"},[(0,i.wy)((0,i._)("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=e=>l.text=e),disabled:n.disabled},null,8,Ne),[[be.nr,l.text]]),Ze,(0,i._)("button",{class:"cancel",onClick:t[1]||(t[1]=t=>e.$emit("cancel")),onTouch:t[2]||(t[2]=t=>e.$emit("cancel"))},ze,32),(0,i.WI)(e.$slots,"default",{},void 0,!0)],32)}var Pe={emits:["input","cancel"],props:{value:{type:String},disabled:{type:Boolean,deafult:!1}},data(){return{text:null}},methods:{proxy(e){this.$emit(e.type,e)},submit(){return this.$emit("input",this.text),!1}},mounted(){this.text=this.value}};const Re=(0,xe.Z)(Pe,[["render",Fe],["__scopeId","data-v-1405d90f"]]);var We=Re,He=n(6813),Ke=n(3053),Ye=n(7369),Ae={name:"EntityModal",components:{Entity:Ke["default"],Modal:_e.Z,EditButton:Be,NameEditor:We,Icon:we.Z,ConfirmDialog:Ge},mixins:[He.Z],emits:["input","loading"],props:{entity:{type:Object,required:!0},visible:{type:Boolean,default:!1},configValues:{type:Object,default:()=>{}}},computed:{computedConfig(){return Object.values(this.configValues).sort(((e,t)=>(e.name||"").localeCompare(t.name||"")))}},data(){return{loading:!1,editName:!1,editIcon:!1,configCollapsed:!0}},methods:{async onRename(e){this.loading=!0;try{const t={};t[this.entity.id]=e,await this.request("entities.rename",t)}finally{this.loading=!1,this.editName=!1}},async onDelete(){this.loading=!0;try{await this.request("entities.delete",[this.entity.id])}finally{this.loading=!1}},async onIconEdit(e){this.loading=!0;try{const t={url:null,class:null};e?.length?e.startsWith("http")?t.url=e:t.class=e:(t.url=(Ye[this.entity.type]||{})?.icon?.url,t.class=(Ye[this.entity.type]||{})?.icon?.["class"]);const n={};n[this.entity.id]={icon:t},await this.request("entities.set_meta",n)}finally{this.loading=!1,this.editIcon=!1}},async onIconColorEdit(e){this.loading=!0;try{const t=this.entity.meta?.icon||{};t.color=e?e.target.value:null;const n={};n[this.entity.id]={icon:t},await this.request("entities.set_meta",n)}finally{this.loading=!1,this.editIcon=!1}}}};const Je=(0,xe.Z)(Ae,[["render",ve],["__scopeId","data-v-48d9692c"]]);var Qe=Je},6518:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var i=n(6252),s=n(3577),l=n(9963);const a={class:"entities-selectors-container"},o={class:"selector"},r={key:1,class:"selector"};function u(e,t,n,u,c,d){const p=(0,i.up)("DropdownItem"),m=(0,i.up)("Dropdown");return(0,i.wg)(),(0,i.iD)("div",a,[(0,i._)("div",o,[(0,i.Wm)(m,{title:"Group by","icon-class":"fas fa-object-ungroup",ref:"groupingSelector"},{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(d.visibleGroupings,(e=>((0,i.wg)(),(0,i.j4)(p,{key:e,text:d.prettifyGroupingName(e),"item-class":{selected:n.value?.grouping===e},onClick:t=>d.onGroupingChanged(e)},null,8,["text","item-class","onClick"])))),128))])),_:1},512)]),n.value?.grouping?((0,i.wg)(),(0,i.iD)("div",{key:0,class:(0,s.C_)(["selector",{active:d.isGroupFilterActive}])},[(0,i.Wm)(m,{title:"Filter by","icon-class":"fas fa-filter",ref:"groupSelector","keep-open-on-item-click":""},{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(d.sortedGroups,(e=>((0,i.wg)(),(0,i.j4)(p,(0,i.dG)({key:e,text:e},d.iconForGroup(e),{"item-class":{selected:!!c.selectedGroups[e]},onClick:(0,l.iM)((t=>d.toggleGroup(e)),["stop"])}),null,16,["text","item-class","onClick"])))),128))])),_:1},512)],2)):(0,i.kq)("",!0),Object.keys(n.entityGroups.id||{}).length?((0,i.wg)(),(0,i.iD)("div",r,[(0,i.wy)((0,i._)("input",{ref:"search",type:"text",class:"search-bar",placeholder:"🔎","onUpdate:modelValue":t[0]||(t[0]=e=>c.searchTerm=e)},null,512),[[l.nr,c.searchTerm]])])):(0,i.kq)("",!0)])}var c=n(6813),d=n(5771),p=n(2684),m=n(7369),h=n(1359),y={name:"Selector",emits:["input"],mixins:[c.Z],components:{Dropdown:d.Z,DropdownItem:p.Z},props:{entityGroups:{type:Object,required:!0},value:{type:Object,required:!0}},data(){return{selectedGroups:{},searchTerm:""}},computed:{visibleGroupings(){return Object.keys(this.entityGroups).filter((e=>"id"!==e))},sortedGroups(){return Object.keys(this.entityGroups[this.value?.grouping]||{}).sort()},typesMeta(){return m},isGroupFilterActive(){return Object.keys(this.selectedGroups).length!==this.sortedGroups.length},selectedEntities(){return Object.values(this.entityGroups.id).filter((e=>{if(!this.selectedGroups[e[this.value?.grouping]])return!1;if(this.searchTerm?.length){const t=this.searchTerm.toLowerCase();return(e.name||"").toLowerCase().indexOf(t)>=0||(e.plugin||"").toLowerCase().indexOf(t)>=0||(e.external_id||"").toLowerCase().indexOf(t)>=0||(e.id||0).toString()==t}return!0})).reduce(((e,t)=>(e[t.id]=t,e)),{})}},methods:{prettifyGroupingName(e){return e?(e=this.prettify(e),e.endsWith("y")&&(e=e.slice(0,e.length-1)+"ie"),e+="s",e):""},iconForGroup(e){if("plugin"===this.value.grouping&&h[e]){const t=h[e];return{"icon-class":t["class"]?.length||!t.imgUrl?.length?t["class"]:"fas fa-gears","icon-url":t.imgUrl}}return{}},synchronizeSelectedEntities(){const e={...this.value};e.selectedEntities=this.selectedEntities,this.$emit("input",e)},updateSearchTerm(){const e={...this.value};e.searchTerm=this.searchTerm,e.selectedEntities=this.selectedEntities,this.$emit("input",e)},refreshGroupFilter(e){if(e)this.selectedGroups=Object.keys(this.entityGroups[this.value?.grouping]||{}).reduce(((e,t)=>(e[t]=!0,e)),{});else for(const t of Object.keys(this.entityGroups[this.value?.grouping]))null==this.selectedGroups[t]&&(this.selectedGroups[t]=!0);this.synchronizeSelectedEntities()},toggleGroup(e){this.selectedGroups[e]=!this.selectedGroups[e],this.synchronizeSelectedEntities()},onGroupingChanged(e){if(!this.entityGroups[e]||e===this.value?.grouping)return!1;const t={...this.value};t.grouping=e,this.$emit("input",t)}},mounted(){this.refreshGroupFilter(!0),this.$watch((()=>this.value?.grouping),(()=>{this.refreshGroupFilter(!0)})),this.$watch((()=>this.searchTerm),this.updateSearchTerm),this.$watch((()=>this.entityGroups),(()=>{this.refreshGroupFilter(!1)}))}},g=n(3744);const f=(0,g.Z)(y,[["render",u],["__scopeId","data-v-7babaacc"]]);var v=f},7243:function(e,t,n){var i={"./Battery":[9651,9,218,9651],"./Battery.vue":[9651,9,218,9651],"./BinarySensor":[7549,9,218,3490,7549],"./BinarySensor.vue":[7549,9,218,3490,7549],"./BluetoothDevice":[4435,9,218,4435],"./BluetoothDevice.vue":[4435,9,218,4435],"./Button":[8625,9,218,5006,8625],"./Button.vue":[8625,9,218,5006,8625],"./CurrentSensor":[1399,9,218,5006,1399],"./CurrentSensor.vue":[1399,9,218,5006,1399],"./Device":[4435,9,218,4435],"./Device.vue":[4435,9,218,4435],"./Dimmer":[3593,9,7246,218,3593],"./Dimmer.vue":[3593,9,7246,218,3593],"./EnergySensor":[1399,9,218,5006,1399],"./EnergySensor.vue":[1399,9,218,5006,1399],"./Entity":[3053,9],"./Entity.vue":[3053,9],"./EntityIcon":[3459,9,218,3459],"./EntityIcon.vue":[3459,9,218,3459],"./EntityMixin":[7909,9],"./EntityMixin.vue":[7909,9],"./EnumSensor":[8625,9,218,5006,8625],"./EnumSensor.vue":[8625,9,218,5006,8625],"./EnumSwitch":[3398,9,218,3398],"./EnumSwitch.vue":[3398,9,218,3398],"./HumiditySensor":[1399,9,218,5006,1399],"./HumiditySensor.vue":[1399,9,218,5006,1399],"./IlluminanceSensor":[1399,9,218,5006,1399],"./IlluminanceSensor.vue":[1399,9,218,5006,1399],"./Index":[9688,9],"./Index.vue":[9688,9],"./Light":[2315,9,7246,218,3490,2315],"./Light.vue":[2315,9,7246,218,3490,2315],"./LinkQuality":[8126,9,218,8126],"./LinkQuality.vue":[8126,9,218,8126],"./Modal":[8472,9],"./Modal.vue":[8472,9],"./MotionSensor":[1399,9,218,5006,1399],"./MotionSensor.vue":[1399,9,218,5006,1399],"./MultiValueSensor":[1399,9,218,5006,1399],"./MultiValueSensor.vue":[1399,9,218,5006,1399],"./Muted":[3303,9,218,3490,3303],"./Muted.vue":[3303,9,218,3490,3303],"./NumericSensor":[1399,9,218,5006,1399],"./NumericSensor.vue":[1399,9,218,5006,1399],"./PowerSensor":[1399,9,218,5006,1399],"./PowerSensor.vue":[1399,9,218,5006,1399],"./RawSensor":[1399,9,218,5006,1399],"./RawSensor.vue":[1399,9,218,5006,1399],"./Selector":[6518,9],"./Selector.vue":[6518,9],"./Sensor":[1399,9,218,5006,1399],"./Sensor.vue":[1399,9,218,5006,1399],"./Switch":[3303,9,218,3490,3303],"./Switch.vue":[3303,9,218,3490,3303],"./TemperatureSensor":[1399,9,218,5006,1399],"./TemperatureSensor.vue":[1399,9,218,5006,1399],"./VoltageSensor":[1399,9,218,5006,1399],"./VoltageSensor.vue":[1399,9,218,5006,1399],"./Volume":[3593,9,7246,218,3593],"./Volume.vue":[3593,9,7246,218,3593],"./common.scss":[65,9,4981,65],"./meta":[7369,3],"./meta.json":[7369,3],"./vars.scss":[5207,9,4981,5207]};function s(e){if(!n.o(i,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],s=t[0];return Promise.all(t.slice(2).map(n.e)).then((function(){return n.t(s,16|t[1])}))}s.keys=function(){return Object.keys(i)},s.id=7243,e.exports=s},7369:function(e){"use strict";e.exports=JSON.parse('{"battery":{"name":"Battery","name_plural":"Batteries","icon":{"class":"fas fa-battery-full"}},"button":{"name":"Button","name_plural":"Buttons","icon":{"class":"fas fa-circle-dot"}},"current_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-bolt"}},"motion_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-person-running"}},"bluetooth_device":{"name":"Device","name_plural":"Devices","icon":{"class":"fab fa-bluetooth-b"}},"device":{"name":"Device","name_plural":"Devices","icon":{"class":"fas fa-gear"}},"volume":{"name":"Dimmer","name_plural":"Dimmers","icon":{"class":"fas fa-volume-high"}},"dimmer":{"name":"Dimmer","name_plural":"Dimmers","icon":{"class":"fas fa-gauge"}},"energy_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-plug"}},"entity":{"name":"Entity","name_plural":"Entities","icon":{"class":"fas fa-circle-question"}},"humidity_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-droplet"}},"illuminance_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-sun"}},"light":{"name":"Light","name_plural":"Lights","icon":{"class":"fas fa-lightbulb"}},"link_quality":{"name":"Link Quality","name_plural":"Link Qualities","icon":{"class":"fas fa-tower-broadcast"}},"power_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-plug"}},"temperature_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-temperature-half"}},"muted":{"name":"Switch","name_plural":"Switches","icon":{"class":"fas fa-volume-xmark"}},"enum_switch":{"name":"Switch","name_plural":"Switches","icon":{"class":"fas fa-gauge"}},"switch":{"name":"Switch","name_plural":"Switches","icon":{"class":"fas fa-toggle-on"}},"voltage_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-car-battery"}},"multi_value_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-thermometer"}},"binary_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-thermometer"}},"numeric_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-thermometer"}},"enum_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-thermometer"}},"raw_sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-thermometer"}},"sensor":{"name":"Sensor","name_plural":"Sensors","icon":{"class":"fas fa-thermometer"}}}')}}]); +//# sourceMappingURL=3053.c3f120c4.js.map \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/3053.a4a1ec4a.js.map b/platypush/backend/http/webapp/dist/static/js/3053.c3f120c4.js.map similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/3053.a4a1ec4a.js.map rename to platypush/backend/http/webapp/dist/static/js/3053.c3f120c4.js.map index 75ef0ddb5..195414d46 100644 --- a/platypush/backend/http/webapp/dist/static/js/3053.a4a1ec4a.js.map +++ b/platypush/backend/http/webapp/dist/static/js/3053.c3f120c4.js.map @@ -1 +1 @@ -{"version":3,"file":"static/js/3053.a4a1ec4a.js","mappings":"gNAwBSA,MAAM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TA,IAAIV,EAAM,CACT,YAAa,CACZ,KACA,EACA,IACA,MAED,gBAAiB,CAChB,KACA,EACA,IACA,MAED,iBAAkB,CACjB,KACA,EACA,IACA,KACA,MAED,qBAAsB,CACrB,KACA,EACA,IACA,KACA,MAED,oBAAqB,CACpB,KACA,EACA,IACA,MAED,wBAAyB,CACxB,KACA,EACA,IACA,MAED,WAAY,CACX,KACA,EACA,IACA,KACA,MAED,eAAgB,CACf,KACA,EACA,IACA,KACA,MAED,kBAAmB,CAClB,KACA,EACA,IACA,KACA,MAED,sBAAuB,CACtB,KACA,EACA,IACA,KACA,MAED,WAAY,CACX,KACA,EACA,IACA,MAED,eAAgB,CACf,KACA,EACA,IACA,MAED,WAAY,CACX,KACA,EACA,KACA,IACA,MAED,eAAgB,CACf,KACA,EACA,KACA,IACA,MAED,iBAAkB,CACjB,KACA,EACA,IACA,KACA,MAED,qBAAsB,CACrB,KACA,EACA,IACA,KACA,MAED,WAAY,CACX,KACA,GAED,eAAgB,CACf,KACA,GAED,eAAgB,CACf,KACA,EACA,IACA,MAED,mBAAoB,CACnB,KACA,EACA,IACA,MAED,gBAAiB,CAChB,KACA,GAED,oBAAqB,CACpB,KACA,GAED,eAAgB,CACf,KACA,EACA,IACA,KACA,MAED,mBAAoB,CACnB,KACA,EACA,IACA,KACA,MAED,eAAgB,CACf,KACA,EACA,IACA,MAED,mBAAoB,CACnB,KACA,EACA,IACA,MAED,mBAAoB,CACnB,KACA,EACA,IACA,KACA,MAED,uBAAwB,CACvB,KACA,EACA,IACA,KACA,MAED,sBAAuB,CACtB,KACA,EACA,IACA,KACA,MAED,0BAA2B,CAC1B,KACA,EACA,IACA,KACA,MAED,UAAW,CACV,KACA,GAED,cAAe,CACd,KACA,GAED,UAAW,CACV,KACA,EACA,KACA,IACA,KACA,MAED,cAAe,CACd,KACA,EACA,KACA,IACA,KACA,MAED,gBAAiB,CAChB,KACA,EACA,IACA,MAED,oBAAqB,CACpB,KACA,EACA,IACA,MAED,UAAW,CACV,KACA,GAED,cAAe,CACd,KACA,GAED,iBAAkB,CACjB,KACA,EACA,IACA,KACA,MAED,qBAAsB,CACrB,KACA,EACA,IACA,KACA,MAED,qBAAsB,CACrB,KACA,EACA,IACA,KACA,MAED,yBAA0B,CACzB,KACA,EACA,IACA,KACA,MAED,UAAW,CACV,KACA,EACA,IACA,KACA,MAED,cAAe,CACd,KACA,EACA,IACA,KACA,MAED,kBAAmB,CAClB,KACA,EACA,IACA,KACA,MAED,sBAAuB,CACtB,KACA,EACA,IACA,KACA,MAED,gBAAiB,CAChB,KACA,EACA,IACA,KACA,MAED,oBAAqB,CACpB,KACA,EACA,IACA,KACA,MAED,cAAe,CACd,KACA,EACA,IACA,KACA,MAED,kBAAmB,CAClB,KACA,EACA,IACA,KACA,MAED,aAAc,CACb,KACA,GAED,iBAAkB,CACjB,KACA,GAED,WAAY,CACX,KACA,EACA,IACA,KACA,MAED,eAAgB,CACf,KACA,EACA,IACA,KACA,MAED,WAAY,CACX,KACA,EACA,IACA,KACA,MAED,eAAgB,CACf,KACA,EACA,IACA,KACA,MAED,sBAAuB,CACtB,KACA,EACA,IACA,KACA,MAED,0BAA2B,CAC1B,KACA,EACA,IACA,KACA,MAED,kBAAmB,CAClB,KACA,EACA,IACA,KACA,MAED,sBAAuB,CACtB,KACA,EACA,IACA,KACA,MAED,WAAY,CACX,KACA,EACA,KACA,IACA,MAED,eAAgB,CACf,KACA,EACA,KACA,IACA,MAED,gBAAiB,CAChB,GACA,EACA,KACA,IAED,SAAU,CACT,KACA,GAED,cAAe,CACd,KACA,GAED,cAAe,CACd,KACA,EACA,KACA,OAGF,SAAS0J,EAAoB1B,GAC5B,IAAI2B,EAAoBC,EAAE5J,EAAKgI,GAC9B,OAAO6B,QAAQC,UAAUC,MAAK,WAC7B,IAAI/F,EAAI,IAAIgG,MAAM,uBAAyBhC,EAAM,KAEjD,MADAhE,EAAEiG,KAAO,mBACHjG,CACP,IAGD,IAAIkG,EAAMlK,EAAIgI,GAAMnK,EAAKqM,EAAI,GAC7B,OAAOL,QAAQM,IAAID,EAAI/J,MAAM,GAAGH,IAAI2J,EAAoB3F,IAAI+F,MAAK,WAChE,OAAOJ,EAAoB1J,EAAEpC,EAAa,GAATqM,EAAI,GACtC,GACD,CACAR,EAAoB5H,KAAO,WAAa,OAAO1D,OAAO0D,KAAK9B,EAAM,EACjE0J,EAAoB7L,GAAK,KACzBuM,EAAOC,QAAUX,C","sources":["webpack://platypush/./src/components/panels/Entities/Entity.vue","webpack://platypush/./src/components/panels/Entities/Entity.vue?6f8a","webpack://platypush/./src/components/panels/Entities/EntityMixin.vue","webpack://platypush/./src/components/panels/Entities/EntityMixin.vue?a9b3","webpack://platypush/./src/components/panels/Entities/Index.vue","webpack://platypush/./src/components/elements/NoItems.vue","webpack://platypush/./src/components/elements/NoItems.vue?70de","webpack://platypush/./src/components/panels/Entities/Index.vue?4523","webpack://platypush/./src/components/panels/Entities/Modal.vue","webpack://platypush/./src/components/elements/ConfirmDialog.vue","webpack://platypush/./src/components/elements/ConfirmDialog.vue?f384","webpack://platypush/./src/components/elements/EditButton.vue","webpack://platypush/./src/components/elements/EditButton.vue?fb20","webpack://platypush/./src/components/elements/NameEditor.vue","webpack://platypush/./src/components/elements/NameEditor.vue?34cf","webpack://platypush/./src/components/panels/Entities/Modal.vue?d45a","webpack://platypush/./src/components/panels/Entities/Selector.vue","webpack://platypush/./src/components/panels/Entities/Selector.vue?bf8b","webpack://platypush/./src/components/panels/Entities|lazy|/^\\.\\/.*$/|groupOptions: {}|namespace object"],"sourcesContent":["\n\n\n\n\n","import { render } from \"./Entity.vue?vue&type=template&id=70080e98&scoped=true\"\nimport script from \"./Entity.vue?vue&type=script&lang=js\"\nexport * from \"./Entity.vue?vue&type=script&lang=js\"\n\nimport \"./Entity.vue?vue&type=style&index=0&id=70080e98&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-70080e98\"]])\n\nexport default __exports__","\n","import script from \"./EntityMixin.vue?vue&type=script&lang=js\"\nexport * from \"./EntityMixin.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./NoItems.vue?vue&type=template&id=6fec32b5&scoped=true\"\nimport script from \"./NoItems.vue?vue&type=script&lang=js\"\nexport * from \"./NoItems.vue?vue&type=script&lang=js\"\n\nimport \"./NoItems.vue?vue&type=style&index=0&id=6fec32b5&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6fec32b5\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=51aa9db3&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=51aa9db3&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-51aa9db3\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./ConfirmDialog.vue?vue&type=template&id=d543b3e4&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=d543b3e4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d543b3e4\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditButton.vue?vue&type=template&id=3344f2bf&scoped=true\"\nimport script from \"./EditButton.vue?vue&type=script&lang=js\"\nexport * from \"./EditButton.vue?vue&type=script&lang=js\"\n\nimport \"./EditButton.vue?vue&type=style&index=0&id=3344f2bf&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3344f2bf\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./NameEditor.vue?vue&type=template&id=1405d90f&scoped=true\"\nimport script from \"./NameEditor.vue?vue&type=script&lang=js\"\nexport * from \"./NameEditor.vue?vue&type=script&lang=js\"\n\nimport \"./NameEditor.vue?vue&type=style&index=0&id=1405d90f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1405d90f\"]])\n\nexport default __exports__","import { render } from \"./Modal.vue?vue&type=template&id=48d9692c&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=48d9692c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-48d9692c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Selector.vue?vue&type=template&id=7babaacc&scoped=true\"\nimport script from \"./Selector.vue?vue&type=script&lang=js\"\nexport * from \"./Selector.vue?vue&type=script&lang=js\"\n\nimport \"./Selector.vue?vue&type=style&index=0&id=7babaacc&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7babaacc\"]])\n\nexport default __exports__","var map = {\n\t\"./Battery\": [\n\t\t9651,\n\t\t9,\n\t\t218,\n\t\t9651\n\t],\n\t\"./Battery.vue\": [\n\t\t9651,\n\t\t9,\n\t\t218,\n\t\t9651\n\t],\n\t\"./BinarySensor\": [\n\t\t7549,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t7549\n\t],\n\t\"./BinarySensor.vue\": [\n\t\t7549,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t7549\n\t],\n\t\"./BluetoothDevice\": [\n\t\t4435,\n\t\t9,\n\t\t218,\n\t\t4435\n\t],\n\t\"./BluetoothDevice.vue\": [\n\t\t4435,\n\t\t9,\n\t\t218,\n\t\t4435\n\t],\n\t\"./Button\": [\n\t\t8625,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t8625\n\t],\n\t\"./Button.vue\": [\n\t\t8625,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t8625\n\t],\n\t\"./CurrentSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./CurrentSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Device\": [\n\t\t4435,\n\t\t9,\n\t\t218,\n\t\t4435\n\t],\n\t\"./Device.vue\": [\n\t\t4435,\n\t\t9,\n\t\t218,\n\t\t4435\n\t],\n\t\"./Dimmer\": [\n\t\t3593,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3593\n\t],\n\t\"./Dimmer.vue\": [\n\t\t3593,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3593\n\t],\n\t\"./EnergySensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./EnergySensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Entity\": [\n\t\t3053,\n\t\t9\n\t],\n\t\"./Entity.vue\": [\n\t\t3053,\n\t\t9\n\t],\n\t\"./EntityIcon\": [\n\t\t3459,\n\t\t9,\n\t\t218,\n\t\t3459\n\t],\n\t\"./EntityIcon.vue\": [\n\t\t3459,\n\t\t9,\n\t\t218,\n\t\t3459\n\t],\n\t\"./EntityMixin\": [\n\t\t7909,\n\t\t9\n\t],\n\t\"./EntityMixin.vue\": [\n\t\t7909,\n\t\t9\n\t],\n\t\"./EnumSensor\": [\n\t\t8625,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t8625\n\t],\n\t\"./EnumSensor.vue\": [\n\t\t8625,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t8625\n\t],\n\t\"./EnumSwitch\": [\n\t\t3398,\n\t\t9,\n\t\t218,\n\t\t3398\n\t],\n\t\"./EnumSwitch.vue\": [\n\t\t3398,\n\t\t9,\n\t\t218,\n\t\t3398\n\t],\n\t\"./HumiditySensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./HumiditySensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./IlluminanceSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./IlluminanceSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Index\": [\n\t\t9688,\n\t\t9\n\t],\n\t\"./Index.vue\": [\n\t\t9688,\n\t\t9\n\t],\n\t\"./Light\": [\n\t\t2315,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3490,\n\t\t2315\n\t],\n\t\"./Light.vue\": [\n\t\t2315,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3490,\n\t\t2315\n\t],\n\t\"./LinkQuality\": [\n\t\t8126,\n\t\t9,\n\t\t218,\n\t\t8126\n\t],\n\t\"./LinkQuality.vue\": [\n\t\t8126,\n\t\t9,\n\t\t218,\n\t\t8126\n\t],\n\t\"./Modal\": [\n\t\t8472,\n\t\t9\n\t],\n\t\"./Modal.vue\": [\n\t\t8472,\n\t\t9\n\t],\n\t\"./MotionSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./MotionSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./MultiValueSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./MultiValueSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Muted\": [\n\t\t3303,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t3303\n\t],\n\t\"./Muted.vue\": [\n\t\t3303,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t3303\n\t],\n\t\"./NumericSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./NumericSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./PowerSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./PowerSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./RawSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./RawSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Selector\": [\n\t\t6518,\n\t\t9\n\t],\n\t\"./Selector.vue\": [\n\t\t6518,\n\t\t9\n\t],\n\t\"./Sensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Sensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Switch\": [\n\t\t3303,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t3303\n\t],\n\t\"./Switch.vue\": [\n\t\t3303,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t3303\n\t],\n\t\"./TemperatureSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./TemperatureSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./VoltageSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./VoltageSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Volume\": [\n\t\t3593,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3593\n\t],\n\t\"./Volume.vue\": [\n\t\t3593,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3593\n\t],\n\t\"./common.scss\": [\n\t\t65,\n\t\t9,\n\t\t4981,\n\t\t65\n\t],\n\t\"./meta\": [\n\t\t7369,\n\t\t3\n\t],\n\t\"./meta.json\": [\n\t\t7369,\n\t\t3\n\t],\n\t\"./vars.scss\": [\n\t\t5207,\n\t\t9,\n\t\t4981,\n\t\t5207\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(2).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__.t(id, ids[1] | 16)\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 7243;\nmodule.exports = webpackAsyncContext;"],"names":["class","hasChildren","isCollapsed","value","name","length","justUpdated","component","loading","ref","error","reachable","onClick","$emit","$event","toggleCollapsed","computedChildren","entity","key","id","level","mixins","EntityMixin","emits","data","computed","Object","values","this","children","filter","child","collapsed","instance","$refs","methods","valuesEqual","a","b","objectsEqual","event","target","classList","contains","stopPropagation","onEntityUpdate","entityId","isChildUpdate","setJustUpdated","self","setTimeout","mounted","type","split","map","t","toUpperCase","slice","join","$watch","newValue","oldValue","bus","__exports__","render","Utils","props","Boolean","default","required","Number","modalVisible","entityType","s","charAt","entityGroups","selector","title","refresh","modalEntityId","entities","visible","configValuesByParentId","onEntityModal","keys","displayGroups","group","grouping","entitiesMeta","typesByCategory","icon","pluginIcons","url","imgUrl","parent_id","childrenByParentId","onEntityInput","errorEntities","loadingEntities","components","Loading","Icon","Entity","Selector","NoItems","EntityModal","entityScanTimeout","entityTimeouts","selectedEntities","meta","icons","entityTypes","groupEntities","entries","reduce","obj","name_plural","entry","e","sort","localeCompare","attr","_shouldSkipLoading","hasReadableChildren","is_configuration","is_write_only","is_query_disabled","async","args","plugins","plugin","clearTimeout","console","warn","request","name_override","category","parentId","clearEntityTimeouts","state","onEntityDelete","subscribe","sync","unmounted","unsubscribe","href","external_id","onDelete","editName","onRename","disabled","editIcon","onIconEdit","color","onIconColorEdit","description","external_url","text","image_url","src","created_at","updated_at","deleteConfirmDiag","show","computedConfig","configCollapsed","onConfirm","confirmText","close","cancelText","Modal","String","modal","hide","proxy","submit","deafult","EditButton","NameEditor","ConfirmDialog","configValues","newName","req","newIcon","startsWith","visibleGroupings","g","prettifyGroupingName","onGroupingChanged","isGroupFilterActive","sortedGroups","iconForGroup","selectedGroups","toggleGroup","placeholder","searchTerm","Dropdown","DropdownItem","typesMeta","toLowerCase","indexOf","toString","prettify","endsWith","synchronizeSelectedEntities","updateSearchTerm","refreshGroupFilter","reset","webpackAsyncContext","__webpack_require__","o","Promise","resolve","then","Error","code","ids","all","module","exports"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"static/js/3053.c3f120c4.js","mappings":"gNAwBSA,MAAM,oB,wEAvBb,QAgCM,OAhCDA,OAAK,SAAC,2BAA0B,iBACP,EAAAC,YAAW,UAAa,EAAAC,YAAW,QAAW,EAAAC,OAAOC,MAAMC,WADzF,EAEE,OAmBM,OAnBDL,OAAK,SAAC,4BAA2B,iBACP,EAAAC,YAAW,UAAa,EAAAC,YAAW,MAAS,EAAAI,gBAD3E,EAEE,OAWM,OAXDN,OAAK,SAAC,WAAU,WAAqB,EAAAC,YAAW,SAAY,EAAAA,gBAAjE,cACE,SASE,QARK,EAAAM,WAAS,CACbJ,MAAO,EAAAA,MACPK,QAAS,EAAAA,QACVC,IAAI,WACHC,MAAO,EAAAA,OAAyB,GAAhB,EAAAP,OAAOQ,UACvB,QAAO,EAAAC,QACP,QAAK,eAAE,EAAAC,MAAK,QAAUC,IACtB,UAAO,eAAE,EAAAD,MAAK,UAAYC,KAR7B,gDADF,GAawE,EAAAb,cAAA,WAAxE,QAGM,O,MAHDD,MAAM,yBAA0B,QAAK,8BAAO,EAAAe,iBAAA,EAAAA,mBAAA,IAAe,YAAhE,EACE,OAC6E,KAD1Ef,OAAK,SAAC,MAAK,mBACgB,EAAAE,YAAW,iBAAoB,EAAAA,gBAD7D,YADF,gBAfF,GAqBqC,EAAAA,aAArC,iBAAqC,WAArC,QAQM,MARN,EAQM,gBAPJ,QAMM,mBAN8B,EAAAc,kBAAVC,K,WAA1B,QAMM,OANDjB,MAAM,QAA4CkB,IAAKD,EAAOE,IAAnE,EACE,QAImC,GAHjChB,MAAOc,EACPT,QAAS,EAAAA,QACTY,MAAO,EAAAA,MAAK,EACZ,QAAK,GA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mB,EAAxB,IAChDlL,KAAK+B,QAAO,IAAM/B,KAAKuK,YAAYvK,KAAKiL,kBACxCjL,KAAK+B,QAAO,IAAM/B,KAAK+C,eAAc,KAAQ/C,KAAKkL,oBAAmB,EAAxB,GAC9C,G,UCzKH,MAAM/I,GAA2B,OAAgB,EAAQ,CAAC,CAAC,SAASC,GAAQ,CAAC,YAAY,qBAEzF,O,uBCTA,IAAIV,EAAM,CACT,YAAa,CACZ,KACA,EACA,IACA,MAED,gBAAiB,CAChB,KACA,EACA,IACA,MAED,iBAAkB,CACjB,KACA,EACA,IACA,KACA,MAED,qBAAsB,CACrB,KACA,EACA,IACA,KACA,MAED,oBAAqB,CACpB,KACA,EACA,IACA,MAED,wBAAyB,CACxB,KACA,EACA,IACA,MAED,WAAY,CACX,KACA,EACA,IACA,KACA,MAED,eAAgB,CACf,KACA,EACA,IACA,KACA,MAED,kBAAmB,CAClB,KACA,EACA,IACA,KACA,MAED,sBAAuB,CACtB,KACA,EACA,IACA,KACA,MAED,WAAY,CACX,KACA,EACA,IACA,MAED,eAAgB,CACf,KACA,EACA,IACA,MAED,WAAY,CACX,KACA,EACA,KACA,IACA,MAED,eAAgB,CACf,KACA,EACA,KACA,IACA,MAED,iBAAkB,CACjB,KACA,EACA,IACA,KACA,MAED,qBAAsB,CACrB,KACA,EACA,IACA,KACA,MAED,WAAY,CACX,KACA,GAED,eAAgB,CACf,KACA,GAED,eAAgB,CACf,KACA,EACA,IACA,MAED,mBAAoB,CACnB,KACA,EACA,IACA,MAED,gBAAiB,CAChB,KACA,GAED,oBAAqB,CACpB,KACA,GAED,eAAgB,CACf,KACA,EACA,IACA,KACA,MAED,mBAAoB,CACnB,KACA,EACA,IACA,KACA,MAED,eAAgB,CACf,KACA,EACA,IACA,MAED,mBAAoB,CACnB,KACA,EACA,IACA,MAED,mBAAoB,CACnB,KACA,EACA,IACA,KACA,MAED,uBAAwB,CACvB,KACA,EACA,IACA,KACA,MAED,sBAAuB,CACtB,KACA,EACA,IACA,KACA,MAED,0BAA2B,CAC1B,KACA,EACA,IACA,KACA,MAED,UAAW,CACV,KACA,GAED,cAAe,CACd,KACA,GAED,UAAW,CACV,KACA,EACA,KACA,IACA,KACA,MAED,cAAe,CACd,KACA,EACA,KACA,IACA,KACA,MAED,gBAAiB,CAChB,KACA,EACA,IACA,MAED,oBAAqB,CACpB,KACA,EACA,IACA,MAED,UAAW,CACV,KACA,GAED,cAAe,CACd,KACA,GAED,iBAAkB,CACjB,KACA,EACA,IACA,KACA,MAED,qBAAsB,CACrB,KACA,EACA,IACA,KACA,MAED,qBAAsB,CACrB,KACA,EACA,IACA,KACA,MAED,yBAA0B,CACzB,KACA,EACA,IACA,KACA,MAED,UAAW,CACV,KACA,EACA,IACA,KACA,MAED,cAAe,CACd,KACA,EACA,IACA,KACA,MAED,kBAAmB,CAClB,KACA,EACA,IACA,KACA,MAED,sBAAuB,CACtB,KACA,EACA,IACA,KACA,MAED,gBAAiB,CAChB,KACA,EACA,IACA,KACA,MAED,oBAAqB,CACpB,KACA,EACA,IACA,KACA,MAED,cAAe,CACd,KACA,EACA,IACA,KACA,MAED,kBAAmB,CAClB,KACA,EACA,IACA,KACA,MAED,aAAc,CACb,KACA,GAED,iBAAkB,CACjB,KACA,GAED,WAAY,CACX,KACA,EACA,IACA,KACA,MAED,eAAgB,CACf,KACA,EACA,IACA,KACA,MAED,WAAY,CACX,KACA,EACA,IACA,KACA,MAED,eAAgB,CACf,KACA,EACA,IACA,KACA,MAED,sBAAuB,CACtB,KACA,EACA,IACA,KACA,MAED,0BAA2B,CAC1B,KACA,EACA,IACA,KACA,MAED,kBAAmB,CAClB,KACA,EACA,IACA,KACA,MAED,sBAAuB,CACtB,KACA,EACA,IACA,KACA,MAED,WAAY,CACX,KACA,EACA,KACA,IACA,MAED,eAAgB,CACf,KACA,EACA,KACA,IACA,MAED,gBAAiB,CAChB,GACA,EACA,KACA,IAED,SAAU,CACT,KACA,GAED,cAAe,CACd,KACA,GAED,cAAe,CACd,KACA,EACA,KACA,OAGF,SAAS0J,EAAoB1B,GAC5B,IAAI2B,EAAoBC,EAAE5J,EAAKgI,GAC9B,OAAO6B,QAAQC,UAAUC,MAAK,WAC7B,IAAI/F,EAAI,IAAIgG,MAAM,uBAAyBhC,EAAM,KAEjD,MADAhE,EAAEiG,KAAO,mBACHjG,CACP,IAGD,IAAIkG,EAAMlK,EAAIgI,GAAMnK,EAAKqM,EAAI,GAC7B,OAAOL,QAAQM,IAAID,EAAI/J,MAAM,GAAGH,IAAI2J,EAAoB3F,IAAI+F,MAAK,WAChE,OAAOJ,EAAoB1J,EAAEpC,EAAa,GAATqM,EAAI,GACtC,GACD,CACAR,EAAoB5H,KAAO,WAAa,OAAO1D,OAAO0D,KAAK9B,EAAM,EACjE0J,EAAoB7L,GAAK,KACzBuM,EAAOC,QAAUX,C","sources":["webpack://platypush/./src/components/panels/Entities/Entity.vue","webpack://platypush/./src/components/panels/Entities/Entity.vue?6f8a","webpack://platypush/./src/components/panels/Entities/EntityMixin.vue","webpack://platypush/./src/components/panels/Entities/EntityMixin.vue?a9b3","webpack://platypush/./src/components/panels/Entities/Index.vue","webpack://platypush/./src/components/elements/NoItems.vue","webpack://platypush/./src/components/elements/NoItems.vue?70de","webpack://platypush/./src/components/panels/Entities/Index.vue?4523","webpack://platypush/./src/components/panels/Entities/Modal.vue","webpack://platypush/./src/components/elements/ConfirmDialog.vue","webpack://platypush/./src/components/elements/ConfirmDialog.vue?f384","webpack://platypush/./src/components/elements/EditButton.vue","webpack://platypush/./src/components/elements/EditButton.vue?fb20","webpack://platypush/./src/components/elements/NameEditor.vue","webpack://platypush/./src/components/elements/NameEditor.vue?34cf","webpack://platypush/./src/components/panels/Entities/Modal.vue?d45a","webpack://platypush/./src/components/panels/Entities/Selector.vue","webpack://platypush/./src/components/panels/Entities/Selector.vue?bf8b","webpack://platypush/./src/components/panels/Entities|lazy|/^\\.\\/.*$/|groupOptions: {}|namespace object"],"sourcesContent":["\n\n\n\n\n","import { render } from \"./Entity.vue?vue&type=template&id=70080e98&scoped=true\"\nimport script from \"./Entity.vue?vue&type=script&lang=js\"\nexport * from \"./Entity.vue?vue&type=script&lang=js\"\n\nimport \"./Entity.vue?vue&type=style&index=0&id=70080e98&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-70080e98\"]])\n\nexport default __exports__","\n","import script from \"./EntityMixin.vue?vue&type=script&lang=js\"\nexport * from \"./EntityMixin.vue?vue&type=script&lang=js\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./NoItems.vue?vue&type=template&id=6fec32b5&scoped=true\"\nimport script from \"./NoItems.vue?vue&type=script&lang=js\"\nexport * from \"./NoItems.vue?vue&type=script&lang=js\"\n\nimport \"./NoItems.vue?vue&type=style&index=0&id=6fec32b5&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6fec32b5\"]])\n\nexport default __exports__","import { render } from \"./Index.vue?vue&type=template&id=51aa9db3&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=51aa9db3&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-51aa9db3\"]])\n\nexport default __exports__","\n\n\n\n\n","\n\n\n\n\n","import { render } from \"./ConfirmDialog.vue?vue&type=template&id=d543b3e4&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=d543b3e4&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d543b3e4\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./EditButton.vue?vue&type=template&id=3344f2bf&scoped=true\"\nimport script from \"./EditButton.vue?vue&type=script&lang=js\"\nexport * from \"./EditButton.vue?vue&type=script&lang=js\"\n\nimport \"./EditButton.vue?vue&type=style&index=0&id=3344f2bf&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3344f2bf\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./NameEditor.vue?vue&type=template&id=1405d90f&scoped=true\"\nimport script from \"./NameEditor.vue?vue&type=script&lang=js\"\nexport * from \"./NameEditor.vue?vue&type=script&lang=js\"\n\nimport \"./NameEditor.vue?vue&type=style&index=0&id=1405d90f&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1405d90f\"]])\n\nexport default __exports__","import { render } from \"./Modal.vue?vue&type=template&id=48d9692c&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=48d9692c&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-48d9692c\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Selector.vue?vue&type=template&id=7babaacc&scoped=true\"\nimport script from \"./Selector.vue?vue&type=script&lang=js\"\nexport * from \"./Selector.vue?vue&type=script&lang=js\"\n\nimport \"./Selector.vue?vue&type=style&index=0&id=7babaacc&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7babaacc\"]])\n\nexport default __exports__","var map = {\n\t\"./Battery\": [\n\t\t9651,\n\t\t9,\n\t\t218,\n\t\t9651\n\t],\n\t\"./Battery.vue\": [\n\t\t9651,\n\t\t9,\n\t\t218,\n\t\t9651\n\t],\n\t\"./BinarySensor\": [\n\t\t7549,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t7549\n\t],\n\t\"./BinarySensor.vue\": [\n\t\t7549,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t7549\n\t],\n\t\"./BluetoothDevice\": [\n\t\t4435,\n\t\t9,\n\t\t218,\n\t\t4435\n\t],\n\t\"./BluetoothDevice.vue\": [\n\t\t4435,\n\t\t9,\n\t\t218,\n\t\t4435\n\t],\n\t\"./Button\": [\n\t\t8625,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t8625\n\t],\n\t\"./Button.vue\": [\n\t\t8625,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t8625\n\t],\n\t\"./CurrentSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./CurrentSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Device\": [\n\t\t4435,\n\t\t9,\n\t\t218,\n\t\t4435\n\t],\n\t\"./Device.vue\": [\n\t\t4435,\n\t\t9,\n\t\t218,\n\t\t4435\n\t],\n\t\"./Dimmer\": [\n\t\t3593,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3593\n\t],\n\t\"./Dimmer.vue\": [\n\t\t3593,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3593\n\t],\n\t\"./EnergySensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./EnergySensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Entity\": [\n\t\t3053,\n\t\t9\n\t],\n\t\"./Entity.vue\": [\n\t\t3053,\n\t\t9\n\t],\n\t\"./EntityIcon\": [\n\t\t3459,\n\t\t9,\n\t\t218,\n\t\t3459\n\t],\n\t\"./EntityIcon.vue\": [\n\t\t3459,\n\t\t9,\n\t\t218,\n\t\t3459\n\t],\n\t\"./EntityMixin\": [\n\t\t7909,\n\t\t9\n\t],\n\t\"./EntityMixin.vue\": [\n\t\t7909,\n\t\t9\n\t],\n\t\"./EnumSensor\": [\n\t\t8625,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t8625\n\t],\n\t\"./EnumSensor.vue\": [\n\t\t8625,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t8625\n\t],\n\t\"./EnumSwitch\": [\n\t\t3398,\n\t\t9,\n\t\t218,\n\t\t3398\n\t],\n\t\"./EnumSwitch.vue\": [\n\t\t3398,\n\t\t9,\n\t\t218,\n\t\t3398\n\t],\n\t\"./HumiditySensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./HumiditySensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./IlluminanceSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./IlluminanceSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Index\": [\n\t\t9688,\n\t\t9\n\t],\n\t\"./Index.vue\": [\n\t\t9688,\n\t\t9\n\t],\n\t\"./Light\": [\n\t\t2315,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3490,\n\t\t2315\n\t],\n\t\"./Light.vue\": [\n\t\t2315,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3490,\n\t\t2315\n\t],\n\t\"./LinkQuality\": [\n\t\t8126,\n\t\t9,\n\t\t218,\n\t\t8126\n\t],\n\t\"./LinkQuality.vue\": [\n\t\t8126,\n\t\t9,\n\t\t218,\n\t\t8126\n\t],\n\t\"./Modal\": [\n\t\t8472,\n\t\t9\n\t],\n\t\"./Modal.vue\": [\n\t\t8472,\n\t\t9\n\t],\n\t\"./MotionSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./MotionSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./MultiValueSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./MultiValueSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Muted\": [\n\t\t3303,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t3303\n\t],\n\t\"./Muted.vue\": [\n\t\t3303,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t3303\n\t],\n\t\"./NumericSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./NumericSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./PowerSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./PowerSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./RawSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./RawSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Selector\": [\n\t\t6518,\n\t\t9\n\t],\n\t\"./Selector.vue\": [\n\t\t6518,\n\t\t9\n\t],\n\t\"./Sensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Sensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Switch\": [\n\t\t3303,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t3303\n\t],\n\t\"./Switch.vue\": [\n\t\t3303,\n\t\t9,\n\t\t218,\n\t\t3490,\n\t\t3303\n\t],\n\t\"./TemperatureSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./TemperatureSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./VoltageSensor\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./VoltageSensor.vue\": [\n\t\t1399,\n\t\t9,\n\t\t218,\n\t\t5006,\n\t\t1399\n\t],\n\t\"./Volume\": [\n\t\t3593,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3593\n\t],\n\t\"./Volume.vue\": [\n\t\t3593,\n\t\t9,\n\t\t7246,\n\t\t218,\n\t\t3593\n\t],\n\t\"./common.scss\": [\n\t\t65,\n\t\t9,\n\t\t4981,\n\t\t65\n\t],\n\t\"./meta\": [\n\t\t7369,\n\t\t3\n\t],\n\t\"./meta.json\": [\n\t\t7369,\n\t\t3\n\t],\n\t\"./vars.scss\": [\n\t\t5207,\n\t\t9,\n\t\t4981,\n\t\t5207\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(2).map(__webpack_require__.e)).then(function() {\n\t\treturn __webpack_require__.t(id, ids[1] | 16)\n\t});\n}\nwebpackAsyncContext.keys = function() { return Object.keys(map); };\nwebpackAsyncContext.id = 7243;\nmodule.exports = webpackAsyncContext;"],"names":["class","hasChildren","isCollapsed","value","name","length","justUpdated","component","loading","ref","error","reachable","onClick","$emit","$event","toggleCollapsed","computedChildren","entity","key","id","level","mixins","EntityMixin","emits","data","computed","Object","values","this","children","filter","child","collapsed","instance","$refs","methods","valuesEqual","a","b","objectsEqual","event","target","classList","contains","stopPropagation","onEntityUpdate","entityId","isChildUpdate","setJustUpdated","self","setTimeout","mounted","type","split","map","t","toUpperCase","slice","join","$watch","newValue","oldValue","bus","__exports__","render","Utils","props","Boolean","default","required","Number","modalVisible","entityType","s","charAt","entityGroups","selector","title","refresh","modalEntityId","entities","visible","configValuesByParentId","onEntityModal","keys","displayGroups","group","grouping","entitiesMeta","typesByCategory","icon","pluginIcons","url","imgUrl","parent_id","childrenByParentId","onEntityInput","errorEntities","loadingEntities","components","Loading","Icon","Entity","Selector","NoItems","EntityModal","entityScanTimeout","entityTimeouts","selectedEntities","meta","icons","entityTypes","groupEntities","entries","reduce","obj","name_plural","entry","e","sort","localeCompare","attr","_shouldSkipLoading","hasReadableChildren","is_configuration","is_write_only","is_query_disabled","async","args","plugins","plugin","clearTimeout","console","warn","request","name_override","category","parentId","clearEntityTimeouts","state","onEntityDelete","subscribe","sync","unmounted","unsubscribe","href","external_id","onDelete","editName","onRename","disabled","editIcon","onIconEdit","color","onIconColorEdit","description","external_url","text","image_url","src","created_at","updated_at","deleteConfirmDiag","show","computedConfig","configCollapsed","onConfirm","confirmText","close","cancelText","Modal","String","modal","hide","proxy","submit","deafult","EditButton","NameEditor","ConfirmDialog","configValues","newName","req","newIcon","startsWith","visibleGroupings","g","prettifyGroupingName","onGroupingChanged","isGroupFilterActive","sortedGroups","iconForGroup","selectedGroups","toggleGroup","placeholder","searchTerm","Dropdown","DropdownItem","typesMeta","toLowerCase","indexOf","toString","prettify","endsWith","synchronizeSelectedEntities","updateSearchTerm","refreshGroupFilter","reset","webpackAsyncContext","__webpack_require__","o","Promise","resolve","then","Error","code","ids","all","module","exports"],"sourceRoot":""} \ No newline at end of file diff --git a/platypush/backend/http/webapp/dist/static/js/app-legacy.6a27238d.js b/platypush/backend/http/webapp/dist/static/js/app-legacy.36cc00f9.js similarity index 99% rename from platypush/backend/http/webapp/dist/static/js/app-legacy.6a27238d.js rename to platypush/backend/http/webapp/dist/static/js/app-legacy.36cc00f9.js index f02bb2636..13c5a5699 100644 --- a/platypush/backend/http/webapp/dist/static/js/app-legacy.6a27238d.js +++ b/platypush/backend/http/webapp/dist/static/js/app-legacy.36cc00f9.js @@ -1,2 +1,2 @@ -(function(){var e={5250:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var s=n(9652),i=(0,s.Z)();i.publishEntity=function(e){i.emit("entity-update",e)},i.onEntity=function(e){i.on("entity-update",e)},i.publishNotification=function(e){i.emit("notification-create",e)},i.onNotification=function(e){i.on("notification-create",e)}},7348:function(e,t,n){"use strict";n(6992),n(8674),n(9601),n(7727);var s=n(9963),i=n(6252);function r(e,t,n,s,r,a){var o=(0,i.up)("Events"),l=(0,i.up)("Notifications"),c=(0,i.up)("VoiceAssistant"),u=(0,i.up)("Pushbullet"),d=(0,i.up)("Ntfy"),f=(0,i.up)("router-view");return(0,i.wg)(),(0,i.iD)(i.HY,null,[a.hasWebsocket?((0,i.wg)(),(0,i.j4)(o,{key:0,ref:"events","ws-port":r.config["backend.http"].websocket_port},null,8,["ws-port"])):(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)(u,{key:2,ref:"pushbullet"},null,512)):(0,i.kq)("",!0),a.hasNtfy?((0,i.wg)(),(0,i.j4)(d,{key:3,ref:"ntfy"},null,512)):(0,i.kq)("",!0),(0,i.Wm)(f)],64)}var a=n(8534),o=(n(5666),n(9254),{class:"notifications"});function l(e,t,n,s,r,a){var l=(0,i.up)("Notification");return(0,i.wg)(),(0,i.iD)("div",o,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.notifications,(function(e,t,n){return(0,i.wg)(),(0,i.j4)(l,{key:n,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))])}n(9653);var c=n(3577),u=["textContent"],d={class:"body"},f={key:0,class:"image col-3"},p={class:"row"},m=["src"],h={key:3,class:"fa fa-exclamation"},g={key:4,class:"fa fa-times"},v=["textContent"],w=["innerHTML"],b=["textContent"],y=["innerHTML"];function k(e,t,n,s,r,a){return(0,i.wg)(),(0,i.iD)("div",{class:(0,c.C_)(["notification fade-in",{warning:n.warning,error:n.error}]),onClick:t[0]||(t[0]=function(){return a.clicked&&a.clicked.apply(a,arguments)})},[n.title?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"title",textContent:(0,c.zw)(n.title)},null,8,u)):(0,i.kq)("",!0),(0,i._)("div",d,[n.image||n.warning||n.error?((0,i.wg)(),(0,i.iD)("div",f,[(0,i._)("div",p,[n.image&&n.image.src?((0,i.wg)(),(0,i.iD)("img",{key:0,src:n.image.src,alt:""},null,8,m)):n.image&&n.image.icon?((0,i.wg)(),(0,i.iD)("i",{key:1,class:(0,c.C_)(["fa","fa-"+n.image.icon]),style:(0,c.j5)(n.image.color?"--color: "+n.image.color:"")},null,6)):n.image&&n.image.iconClass?((0,i.wg)(),(0,i.iD)("i",{key:2,class:(0,c.C_)(n.image.iconClass),style:(0,c.j5)(n.image.color?"--color: "+n.image.color:"")},null,6)):n.warning?((0,i.wg)(),(0,i.iD)("i",h)):n.error?((0,i.wg)(),(0,i.iD)("i",g)):(0,i.kq)("",!0)])])):(0,i.kq)("",!0),n.text&&n.image?((0,i.wg)(),(0,i.iD)("div",{key:1,class:"text col-9",textContent:(0,c.zw)(n.text)},null,8,v)):(0,i.kq)("",!0),n.html&&n.image?((0,i.wg)(),(0,i.iD)("div",{key:2,class:"text col-9",innerHTML:n.html},null,8,w)):(0,i.kq)("",!0),n.text&&!n.image?((0,i.wg)(),(0,i.iD)("div",{key:3,class:"text row horizontal-center",textContent:(0,c.zw)(n.text)},null,8,b)):(0,i.kq)("",!0),n.html&&!n.image?((0,i.wg)(),(0,i.iD)("div",{key:4,class:"text row horizontal-center",innerHTML:n.html},null,8,y)):(0,i.kq)("",!0)])],2)}var x={name:"Notification",props:["id","text","html","title","image","link","error","warning"],methods:{clicked:function(){this.link&&window.open(this.link,"_blank"),this.$emit("clicked",this.id)}}},_=n(3744);const C=(0,_.Z)(x,[["render",k],["__scopeId","data-v-7646705e"]]);var D=C,I={name:"Notifications",components:{Notification:D},props:{duration:{type:Number,default:1e4}},data:function(){return{index:0,notifications:{},timeouts:{}}},methods:{create:function(e){var t=this.index++;this.notifications[t]=e,null==e.duration&&(e.duration=this.duration);var n=e.duration?parseInt(e.duration):0;n&&(this.timeouts[t]=setTimeout(this.destroy.bind(null,t),n))},destroy:function(e){delete this.notifications[e],delete this.timeouts[e]}}};const T=(0,_.Z)(I,[["render",l],["__scopeId","data-v-6dc8bebc"]]);var Z=T,S=n(6813);function U(e,t,n,s,r,a){return(0,i.wg)(),(0,i.iD)("div")}var R=n(6347),N=n(9584),P=(n(2479),n(2222),n(7941),n(5250)),j={name:"Events",props:{wsPort:{type:Number,default:8009}},data:function(){return{ws:null,initialized:!1,pending:!1,opened:!1,timeout:null,reconnectMsecs:3e4,handlers:{},handlerNameToEventTypes:{}}},methods:{onWebsocketTimeout:function(){console.log("Websocket reconnection timed out, retrying"),this.pending=!1,this.ws&&this.ws.close(),this.onClose()},onMessage:function(e){var t=[];if(e=e.data,"string"===typeof e)try{e=JSON.parse(e)}catch(r){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.apply(t,(0,N.Z)(Object.values(this.handlers[e.args.type])));for(var n=0,s=t;nPlatypush
',3),Oe={key:0,class:"row"},$e=Pe((function(){return(0,i._)("label",null,[(0,i._)("input",{type:"password",name:"confirm_password",placeholder:"Confirm password"})],-1)})),Ee=[$e],We={class:"row buttons"},ze=["value"],Le=Pe((function(){return(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 Ae(e,t,n,s,r,a){return(0,i.wg)(),(0,i.iD)("div",je,[(0,i._)("form",Me,[qe,a._register?((0,i.wg)(),(0,i.iD)("div",Oe,Ee)):(0,i.kq)("",!0),(0,i._)("div",We,[(0,i._)("input",{type:"submit",class:"btn btn-primary",value:a._register?"Register":"Login"},null,8,ze)]),Le])])}var Ve={name:"Login",mixins:[S.Z],props:{register:{type:Boolean,required:!1,default:!1}},computed:{_register:function(){return this.parseBoolean(this.register)}}};const He=(0,_.Z)(Ve,[["render",Ae],["__scopeId","data-v-16cef6aa"]]);var Fe=He;function Be(e,t,n,s,r,a){var o=(0,i.up)("Login");return(0,i.wg)(),(0,i.j4)(o,{register:!0})}var Ye={name:"Register",mixins:[Fe],components:{Login:Fe},props:{register:{type:Boolean,required:!1,default:!0}}};const Ke=(0,_.Z)(Ye,[["render",Be]]);var Ge=Ke,Je={key:2,class:"canvas"},Xe={class:"panel"},Qe={key:3,class:"canvas"};function et(e,t,n,s,r,a){var o=(0,i.up)("Loading"),l=(0,i.up)("Nav"),u=(0,i.up)("Settings");return(0,i.wg)(),(0,i.iD)("main",null,[r.loading?((0,i.wg)(),(0,i.j4)(o,{key:0})):((0,i.wg)(),(0,i.j4)(l,{key:1,panels:r.components,"selected-panel":r.selectedPanel,hostname:r.hostname,onSelect:t[0]||(t[0]=function(e){return r.selectedPanel=e})},null,8,["panels","selected-panel","hostname"])),"settings"===r.selectedPanel?((0,i.wg)(),(0,i.iD)("div",Je,[(0,i._)("div",Xe,[(0,i.Wm)(u)])])):((0,i.wg)(),(0,i.iD)("div",Qe,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(r.components,(function(e,t){return(0,i.wg)(),(0,i.iD)("div",{class:(0,c.C_)(["panel",{hidden:t!==r.selectedPanel}]),key:t},[t===r.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))]))])}var tt=n(6084),nt=(n(4723),n(4747),n(9720),n(9600),n(7042),function(e){return(0,i.dD)("data-v-6395b430"),e=e(),(0,i.Cn)(),e}),st=nt((function(){return(0,i._)("i",{class:"fas fa-bars"},null,-1)})),it=["textContent"],rt={class:"plugins"},at=["title","onClick"],ot=["href"],lt={class:"icon"},ct=["src"],ut={key:2,class:"fas fa-puzzle-piece"},dt=["textContent"],ft={class:"footer"},pt={href:"/#settings"},mt=nt((function(){return(0,i._)("span",{class:"icon"},[(0,i._)("i",{class:"fa fa-cog"})],-1)})),ht={key:0,class:"name"},gt={href:"/logout"},vt=nt((function(){return(0,i._)("span",{class:"icon"},[(0,i._)("i",{class:"fas fa-sign-out-alt"})],-1)})),wt={key:0,class:"name"};function bt(e,t,n,s,r,a){return(0,i.wg)(),(0,i.iD)("nav",{class:(0,c.C_)({collapsed:r.collapsed})},[(0,i._)("div",{class:"toggler",onClick:t[0]||(t[0]=function(e){return r.collapsed=!r.collapsed})},[st,n.hostname?((0,i.wg)(),(0,i.iD)("span",{key:0,class:"hostname",textContent:(0,c.zw)(n.hostname)},null,8,it)):(0,i.kq)("",!0)]),(0,i._)("ul",rt,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(a.panelNames,(function(e){var t,s;return(0,i.wg)(),(0,i.iD)("li",{key:e,class:(0,c.C_)(["entry",{selected:e===n.selectedPanel}]),title:e,onClick:function(t){return a.onItemClick(e)}},[(0,i._)("a",{href:"/#".concat(e)},[(0,i._)("span",lt,[null!==(t=r.icons[e])&&void 0!==t&&t.class?((0,i.wg)(),(0,i.iD)("i",{key:0,class:(0,c.C_)(r.icons[e].class)},null,2)):null!==(s=r.icons[e])&&void 0!==s&&s.imgUrl?((0,i.wg)(),(0,i.iD)("img",{key:1,src:r.icons[e].imgUrl,alt:"name"},null,8,ct)):((0,i.wg)(),(0,i.iD)("i",ut))]),r.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,dt))],8,ot)],10,at)})),128))]),(0,i._)("ul",ft,[(0,i._)("li",{class:(0,c.C_)({selected:"settings"===n.selectedPanel}),title:"Settings",onClick:t[1]||(t[1]=function(e){return a.onItemClick("settings")})},[(0,i._)("a",pt,[mt,r.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",ht,"Settings"))])],2),(0,i._)("li",{title:"Logout",onClick:t[2]||(t[2]=function(e){return a.onItemClick("logout")})},[(0,i._)("a",gt,[vt,r.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",wt,"Logout"))])])])],2)}n(2707);var yt=n(1359),kt={name:"Nav",emits:["select"],mixins:[S.Z],props:{panels:{type:Object,required:!0},selectedPanel:{type:String},hostname:{type:String}},computed:{panelNames:function(){var e=Object.keys(this.panels),t=e.indexOf("entities");return t>=0?["entities"].concat(e.slice(0,t).concat(e.slice(t+1)).sort()):e.sort()},collapsedDefault:function(){return!(!this.isMobile()&&!this.isTablet())}},methods:{onItemClick:function(e){this.$emit("select",e),this.collapsed=!!this.isMobile()||this.collapsedDefault}},data:function(){return{collapsed:!0,icons:yt,host:null}},mounted:function(){this.collapsed=this.collapsedDefault}};const xt=(0,_.Z)(kt,[["render",bt],["__scopeId","data-v-6395b430"]]);var _t=xt,Ct=n(2715),Dt={name:"Panel",mixins:[S.Z],components:{Settings:Ct["default"],Nav:_t,Loading:ve.Z},data:function(){return{loading:!1,plugins:{},backends:{},procedures:{},components:{},hostname:void 0,selectedPanel:void 0}},methods:{initSelectedPanel:function(){var e=this.$route.hash.match("#?([a-zA-Z0-9.]+)[?]?(.*)"),t=e?e[1]:"entities";null!==t&&void 0!==t&&t.length&&(this.selectedPanel=t)},initPanels:function(){var e=this;this.components={},Object.entries(this.plugins).forEach(function(){var t=(0,a.Z)(regeneratorRuntime.mark((function t(s){var r,o,l,c,u,d;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=(0,tt.Z)(s,2),o=r[0],l=r[1],c=o.split(".").map((function(e){return e[0].toUpperCase()+e.slice(1)})).join(""),u=null,t.prev=3,t.next=6,n(3379)("./".concat(c,"/Index"));case 6:u=t.sent,t.next=12;break;case 9:return t.prev=9,t.t0=t["catch"](3),t.abrupt("return");case 12:d=(0,ge.XI)((0,i.RC)((0,a.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",u);case 1:case"end":return e.stop()}}),e)}))))),e.$options.components[o]=d,e.components[o]={component:d,pluginName:o,config:l};case 15:case"end":return t.stop()}}),t,null,[[3,9]])})));return function(e){return t.apply(this,arguments)}}())},parseConfig:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){var n,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([e.request("config.get_plugins"),e.request("config.get_backends"),e.request("config.get_procedures"),e.request("config.get_device_id")]);case 2:n=t.sent,s=(0,tt.Z)(n,4),e.plugins=s[0],e.backends=s[1],e.procedures=s[2],e.hostname=s[3],e.initializeDefaultViews();case 9:case"end":return t.stop()}}),t)})))()},initializeDefaultViews:function(){this.plugins.execute={},this.plugins.entities={}}},mounted:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.parseConfig();case 4:e.initPanels(),e.initSelectedPanel();case 6:return t.prev=6,e.loading=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[1,,6,9]])})))()}};const It=(0,_.Z)(Dt,[["render",et],["__scopeId","data-v-fbc09254"]]);var Tt=It,Zt={key:1,class:"canvas"};function St(e,t,n,s,r,a){var o=(0,i.up)("Loading");return(0,i.wg)(),(0,i.iD)("main",null,[r.loading?((0,i.wg)(),(0,i.j4)(o,{key:0})):((0,i.wg)(),(0,i.iD)("div",Zt,[((0,i.wg)(),(0,i.j4)((0,i.LL)(r.component),{config:r.config,"plugin-name":a.pluginName},null,8,["config","plugin-name"]))]))])}n(9714);var Ut={name:"Panel",mixins:[S.Z],components:{Settings:Ct["default"],Nav:_t,Loading:ve.Z},data:function(){return{loading:!1,config:{},plugins:{},backends:{},procedures:{},component:void 0,hostname:void 0,selectedPanel:void 0}},computed:{pluginName:function(){return this.$route.params.plugin}},methods:{initPanel:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){var s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s=e.pluginName.split(".").map((function(e){return e[0].toUpperCase()+e.slice(1)})).join(""),r=null,t.prev=2,t.next=5,n(3379)("./".concat(s,"/Index"));case 5:r=t.sent,t.next=13;break;case 8:return t.prev=8,t.t0=t["catch"](2),console.error(t.t0),e.notify({error:!0,title:"Cannot load plugin ".concat(e.pluginName),text:t.t0.toString()}),t.abrupt("return");case 13:e.component=(0,ge.XI)((0,i.RC)((0,a.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",r);case 1:case"end":return e.stop()}}),e)}))))),e.$options.components[s]=e.component;case 15:case"end":return t.stop()}}),t,null,[[2,8]])})))()},initConfig:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.request("config.get");case 2:return n=t.sent,e.config=n[e.pluginName]||{},t.next=6,e.request("config.get_device_id");case 6:e.hostname=t.sent;case 7:case"end":return t.stop()}}),t)})))()}},mounted:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.initConfig();case 4:return t.next=6,e.initPanel();case 6:return t.prev=6,e.loading=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[1,,6,9]])})))()}};const Rt=(0,_.Z)(Ut,[["render",St],["__scopeId","data-v-e339182c"]]);var Nt=Rt,Pt=[{path:"/",name:"Panel",component:Tt},{path:"/dashboard/:name",name:"Dashboard",component:Ze},{path:"/plugin/:plugin",name:"Plugin",component:Nt},{path:"/login",name:"Login",component:Fe},{path:"/register",name:"Register",component:Ge},{path:"/:catchAll(.*)",component:Ne}],jt=(0,pe.p7)({history:(0,pe.PO)(),routes:Pt}),Mt=jt,qt=(0,s.ri)(fe);qt.config.globalProperties._config=window.config,qt.use(Mt).mount("#app")},6813:function(e,t,n){"use strict";n.d(t,{Z:function(){return M}});n(1539);var s=n(9669),i=n.n(s),r={name:"Api",methods:{execute:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6e4,s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r={};return"target"in e&&e["target"]||(e["target"]="localhost"),"type"in e&&e["type"]||(e["type"]="request"),n&&(r.timeout=n),new Promise((function(n,a){i().post("/execute",e,r).then((function(e){var s;if(e=e.data.response,null!==(s=e.errors)&&void 0!==s&&s.length){var i,r=(null===(i=e.errors)||void 0===i?void 0:i[0])||e;t.notify({text:r,error:!0}),a(r)}else n(e.output)})).catch((function(e){s&&t.notify({text:e,error:!0}),a(e)}))}))},request:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.execute({type:"request",action:e,args:t},n,s)}}};const a=r;var o=a,l=n(6084),c=(n(4916),n(3123),{name:"Cookies",methods:{getCookies:function(){return document.cookie.split(/;\s*/).reduce((function(e,t){var n=t.split("="),s=(0,l.Z)(n,2),i=s[0],r=s[1];return e[i]=r,e}),{})}}});const u=c;var d=u,f=(n(2222),{name:"DateTime",methods:{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"string"===typeof e&&(e=new Date(Date.parse(e))),e.toDateString().substring(0,t?15:10)},formatTime:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return"string"===typeof e&&(e=new Date(Date.parse(e))),e.toTimeString().substring(0,t?8:5)},formatDateTime:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return"string"===typeof e&&(e=new Date(Date.parse(e))),"".concat(this.formatDate(e,t),", ").concat(this.formatTime(e,n))}}});const p=f;var m=p,h=n(9584),g=(n(7714),n(2801),n(1174),n(1249),n(3948),n(5250)),v={name:"Events",computed:{_eventsReady:function(){var e;return null===(e=this.$root.$refs.events)||void 0===e?void 0:e.initialized}},methods:{subscribe:function(e,t){for(var n=this,s=arguments.length,i=new Array(s>2?s-2:0),r=2;r1024&&(i===n.length-1?t=s:e/=1024)})),"".concat(e.toFixed(2)," ").concat(t)},objectsEqual:function(e,t){var n;if("object"!==(0,S.Z)(e)||"object"!==(0,S.Z)(t))return!1;for(var s=0,i=Object.keys(e||{});st?(t=r,n=[i]):r===t&&n.push(i)}}catch(o){s.e(o)}finally{s.f()}(n.indexOf(this.$el)<0||n.length>1)&&(this.$el.style.zIndex=t+1)}if(this.isVisible&&this.timeout&&!this.timeoutId){var a=function(e){return function(){e.close(),e.timeoutId=void 0}};this.timeoutId=setTimeout(a(this),0+this.timeout)}}}),d=n(3744);const f=(0,d.Z)(u,[["render",l],["__scopeId","data-v-7d1f6e8b"]]);var p=f},5771:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var s=n(6252),i=n(9963),r=n(3577),a={class:"dropdown-container",ref:"container"},o=["title"],l=["textContent"],c=["id"];function u(e,t,n,u,d,f){return(0,s.wg)(),(0,s.iD)("div",a,[(0,s._)("button",{title:n.title,ref:"button",onClick:t[0]||(t[0]=(0,i.iM)((function(e){return f.toggle(e)}),["stop"]))},[n.iconClass?((0,s.wg)(),(0,s.iD)("i",{key:0,class:(0,r.C_)(["icon",n.iconClass])},null,2)):(0,s.kq)("",!0),n.text?((0,s.wg)(),(0,s.iD)("span",{key:1,class:"text",textContent:(0,r.zw)(n.text)},null,8,l)):(0,s.kq)("",!0)],8,o),(0,s._)("div",{class:(0,r.C_)(["dropdown fade-in",{hidden:!d.visible}]),id:n.id,ref:"dropdown"},[(0,s.WI)(e.$slots,"default",{},void 0,!0)],10,c)],512)}var d={name:"Dropdown",emits:["click"],props:{id:{type:String},items:{type:Array,default:function(){return[]}},iconClass:{type:String,default:"fa fa-ellipsis-h"},text:{type:String},title:{type:String},keepOpenOnItemClick:{type:Boolean,default:!1}},data:function(){return{visible:!1}},methods:{documentClickHndl:function(e){if(this.visible){var t=e.target;while(t){if(!this.$refs.dropdown)break;if(t===this.$refs.dropdown.element)return;t=t.parentElement}this.close()}},close:function(){this.visible=!1,document.removeEventListener("click",this.documentClickHndl)},open:function(){var e=this;document.addEventListener("click",this.documentClickHndl),this.visible=!0,setTimeout((function(){var t=e.$refs.dropdown;t.style.left=0,t.style.top=parseFloat(getComputedStyle(e.$refs.button).height)+"px",t.getBoundingClientRect().left>window.innerWidth/2&&(t.style.left=-t.clientWidth+parseFloat(getComputedStyle(e.$refs.button).width)+"px"),t.getBoundingClientRect().top>window.innerHeight/2&&(t.style.top=-t.clientHeight+parseFloat(getComputedStyle(e.$refs.button).height)+"px")}),10)},toggle:function(e){e.stopPropagation(),this.$emit("click"),this.visible?this.close():this.open()}}},f=n(3744);const p=(0,f.Z)(d,[["render",u],["__scopeId","data-v-21bf0316"]]);var m=p},2684:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var s=n(6252),i=n(3577),r={key:0,class:"col-2 icon"},a=["textContent"];function o(e,t,n,o,l,c){var u,d,f=(0,s.up)("Icon");return(0,s.wg)(),(0,s.iD)("div",{class:(0,i.C_)(["row item",n.itemClass]),onClick:t[0]||(t[0]=function(){return c.clicked&&c.clicked.apply(c,arguments)})},[null!==(u=n.iconClass)&&void 0!==u&&u.length||null!==(d=n.iconUrl)&&void 0!==d&&d.length?((0,s.wg)(),(0,s.iD)("div",r,[(0,s.Wm)(f,{class:(0,i.C_)(n.iconClass),url:n.iconUrl},null,8,["class","url"])])):(0,s.kq)("",!0),(0,s._)("div",{class:(0,i.C_)(["text",{"col-10":null!=n.iconClass}]),textContent:(0,i.zw)(n.text)},null,10,a)],2)}var l=n(1478),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:function(e){if(this.disabled)return!1;this.$parent.$emit("click",e),this.$parent.keepOpenOnItemClick||(this.$parent.visible=!1)}}},u=n(3744);const d=(0,u.Z)(c,[["render",o],["__scopeId","data-v-2cfe8014"]]);var f=d},1478:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var s=n(6252),i=n(3577),r={class:"icon-container"},a=["src","alt"];function o(e,t,n,o,l,c){var u,d;return(0,s.wg)(),(0,s.iD)("div",r,[null!==(u=n.url)&&void 0!==u&&u.length?((0,s.wg)(),(0,s.iD)("img",{key:0,class:"icon",src:n.url,alt:n.alt},null,8,a)):null!==(d=c.className)&&void 0!==d&&d.length?((0,s.wg)(),(0,s.iD)("i",{key:1,class:(0,i.C_)(["icon",c.className]),style:(0,i.j5)({color:n.color})},null,6)):(0,s.kq)("",!0)])}var l={props:{class:{type:String},url:{type:String},color:{type:String,default:""},alt:{type:String,default:""}},computed:{className:function(){return this.class}}},c=n(3744);const u=(0,c.Z)(l,[["render",o],["__scopeId","data-v-706a3bd1"]]);var d=u},2715:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Ce}});var s=n(6252),i={class:"settings-container"},r={class:"col-8"},a={class:"col-4 pull-right"},o=(0,s._)("i",{class:"fa fa-plus"},null,-1),l=[o];function c(e,t,n,o,c,u){var d=(0,s.up)("DropdownItem"),f=(0,s.up)("Dropdown"),p=(0,s.up)("Users"),m=(0,s.up)("Token");return(0,s.wg)(),(0,s.iD)("div",i,[(0,s._)("header",null,[(0,s._)("div",r,[(0,s.Wm)(f,{title:"Select a category","icon-class":"fa fa-ellipsis-h"},{default:(0,s.w5)((function(){return[(0,s.Wm)(d,{text:"Users","icon-class":"fa fa-user","item-class":{selected:"users"===c.selectedView},onClick:t[0]||(t[0]=function(e){return c.selectedView="users"})},null,8,["item-class"]),(0,s.Wm)(d,{text:"Generate a token","icon-class":"fa fa-key","item-class":{selected:"token"===c.selectedView},onClick:t[1]||(t[1]=function(e){return c.selectedView="token"})},null,8,["item-class"])]})),_:1})]),(0,s._)("div",a,["users"===c.selectedView?((0,s.wg)(),(0,s.iD)("button",{key:0,title:"Add User",onClick:t[2]||(t[2]=function(t){return e.$refs.usersView.$refs.addUserModal.show()})},l)):(0,s.kq)("",!0)])]),(0,s._)("main",null,["users"===c.selectedView?((0,s.wg)(),(0,s.j4)(p,{key:0,"session-token":c.sessionToken,"current-user":c.currentUser,ref:"usersView"},null,8,["session-token","current-user"])):"token"===c.selectedView?((0,s.wg)(),(0,s.j4)(m,{key:1,"session-token":c.sessionToken,"current-user":c.currentUser,ref:"tokenView"},null,8,["session-token","current-user"])):(0,s.kq)("",!0)])])}var u=n(8534),d=(n(5666),n(5771)),f=n(2684),p=n(3577),m=n(9963),h={class:"token-container"},g={class:"token-container"},v=(0,s.Uk)(" This is your generated token. Treat it carefully and do not share it with untrusted parties."),w=(0,s._)("br",null,null,-1),b=(0,s.Uk)(" Also, make sure to save it - it WILL NOT be displayed again. "),y=["textContent"],k={class:"body"},x={class:"description"},_=(0,s.Uk)("Generate a JWT authentication token that can be used for API calls to the "),C=(0,s.Uk)("/execute"),D=(0,s.Uk)(" endpoint."),I=(0,s._)("br",null,null,-1),T=(0,s._)("p",null,"You can include the token in your requests in any of the following ways:",-1),Z=(0,s.Uk)("Specify it on the "),S=(0,s.Uk)("Authorization: Bearer"),U=(0,s.Uk)(" header;"),R=(0,s.Uk)("Specify it on the "),N=(0,s.Uk)("X-Token"),P=(0,s.Uk)(" header;"),j=(0,s.Uk)("Specify it as a URL parameter: "),M=(0,s.Uk)("http://site:8008/execute?token=..."),q=(0,s.Uk)(";"),O=(0,s.Uk)("Specify it on the body of your JSON request: "),$=(0,s.Uk)('{"type":"request", "action", "...", "token":"..."}'),E=(0,s.Uk)("."),W=(0,s.Uk)(" Confirm your credentials in order to generate a new token. "),z={class:"form-container"},L=(0,s._)("span",null,"Username",-1),A=["value"],V=(0,s._)("label",null,[(0,s._)("span",null,"Confirm password"),(0,s._)("span",null,[(0,s._)("input",{type:"password",name:"password"})])],-1),H=(0,s._)("label",null,[(0,s._)("span",null,"Token validity in days"),(0,s._)("span",null,[(0,s._)("input",{type:"text",name:"validityDays"})]),(0,s._)("span",{class:"note"},[(0,s.Uk)(" Decimal values are also supported (e.g. "),(0,s._)("i",null,"0.5"),(0,s.Uk)(" to identify 6 hours). An empty or zero value means that the token has no expiry date. ")])],-1),F=(0,s._)("label",null,[(0,s._)("input",{type:"submit",class:"btn btn-primary",value:"Generate token"})],-1);function B(e,t,n,i,r,a){var o=(0,s.up)("Loading"),l=(0,s.up)("Modal"),c=(0,s.up)("tt");return(0,s.wg)(),(0,s.iD)("div",h,[r.loading?((0,s.wg)(),(0,s.j4)(o,{key:0})):(0,s.kq)("",!0),(0,s.Wm)(l,{ref:"tokenModal"},{default:(0,s.w5)((function(){return[(0,s._)("div",g,[(0,s._)("label",null,[v,w,b,(0,s._)("textarea",{class:"token",textContent:(0,p.zw)(r.token),onFocus:t[0]||(t[0]=function(){return a.onTokenSelect&&a.onTokenSelect.apply(a,arguments)})},null,40,y)])])]})),_:1},512),(0,s._)("div",k,[(0,s._)("div",x,[(0,s._)("p",null,[_,(0,s.Wm)(c,null,{default:(0,s.w5)((function(){return[C]})),_:1}),D]),I,T,(0,s._)("ul",null,[(0,s._)("li",null,[Z,(0,s.Wm)(c,null,{default:(0,s.w5)((function(){return[S]})),_:1}),U]),(0,s._)("li",null,[R,(0,s.Wm)(c,null,{default:(0,s.w5)((function(){return[N]})),_:1}),P]),(0,s._)("li",null,[j,(0,s.Wm)(c,null,{default:(0,s.w5)((function(){return[M]})),_:1}),q]),(0,s._)("li",null,[O,(0,s.Wm)(c,null,{default:(0,s.w5)((function(){return[$]})),_:1}),E])]),W]),(0,s._)("div",z,[(0,s._)("form",{onSubmit:t[1]||(t[1]=(0,m.iM)((function(){return a.generateToken&&a.generateToken.apply(a,arguments)}),["prevent"])),ref:"generateTokenForm"},[(0,s._)("label",null,[L,(0,s._)("span",null,[(0,s._)("input",{type:"text",name:"username",value:n.currentUser.username,disabled:""},null,8,A)])]),V,H,F],544)])])])}n(1539),n(9714);var Y=n(9669),K=n.n(Y),G=n(1232),J=n(6813),X=n(8453),Q={name:"Token",components:{Modal:X.Z,Loading:G.Z},mixins:[J.Z],props:{currentUser:{type:Object,required:!0}},data:function(){return{loading:!1,token:null}},methods:{generateToken:function(e){var t=this;return(0,u.Z)(regeneratorRuntime.mark((function n(){var s,i,r,a,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=t.currentUser.username,r=e.target.password.value,a=null!==(s=e.target.validityDays)&&void 0!==s&&s.length?parseInt(e.target.validityDays.value):0,a||(a=null),t.loading=!0,n.prev=5,n.next=8,K().post("/auth",{username:i,password:r,expiry_days:a});case 8:t.token=n.sent.data.token,null!==(o=t.token)&&void 0!==o&&o.length&&t.$refs.tokenModal.show(),n.next=16;break;case 12:n.prev=12,n.t0=n["catch"](5),console.error(n.t0.toString()),t.notify({text:n.t0.toString(),error:!0});case 16:return n.prev=16,t.loading=!1,n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[5,12,16,19]])})))()},onTokenSelect:function(e){e.target.select(),document.execCommand("copy"),this.notify({text:"Token copied to clipboard",image:{iconClass:"fa fa-check"}})}}},ee=n(3744);const te=(0,ee.Z)(Q,[["render",B]]);var ne=te,se=["disabled"],ie=["disabled"],re=["disabled"],ae=["disabled"],oe=["value"],le=["disabled"],ce=["disabled"],ue=["disabled"],de=["disabled"],fe={class:"body"},pe={class:"users-list"},me=["onClick"],he=["textContent"],ge={class:"actions pull-right col-4"};function ve(e,t,n,i,r,a){var o=(0,s.up)("Loading"),l=(0,s.up)("Modal"),c=(0,s.up)("DropdownItem"),u=(0,s.up)("Dropdown");return(0,s.wg)(),(0,s.iD)(s.HY,null,[r.loading?((0,s.wg)(),(0,s.j4)(o,{key:0})):(0,s.kq)("",!0),(0,s.Wm)(l,{ref:"addUserModal",title:"Add User"},{default:(0,s.w5)((function(){return[(0,s._)("form",{action:"#",method:"POST",ref:"addUserForm",onSubmit:t[0]||(t[0]=function(){return a.createUser&&a.createUser.apply(a,arguments)})},[(0,s._)("label",null,[(0,s._)("input",{type:"text",name:"username",placeholder:"Username",disabled:r.commandRunning},null,8,se)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"password",placeholder:"Password",disabled:r.commandRunning},null,8,ie)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"confirm_password",placeholder:"Confirm password",disabled:r.commandRunning},null,8,re)]),(0,s._)("label",null,[(0,s._)("input",{type:"submit",class:"btn btn-primary",value:"Create User",disabled:r.commandRunning},null,8,ae)])],544)]})),_:1},512),(0,s.Wm)(l,{ref:"changePasswordModal",title:"Change Password"},{default:(0,s.w5)((function(){return[(0,s._)("form",{action:"#",method:"POST",ref:"changePasswordForm",onSubmit:t[1]||(t[1]=function(){return a.changePassword&&a.changePassword.apply(a,arguments)})},[(0,s._)("label",null,[(0,s._)("input",{type:"text",name:"username",placeholder:"Username",value:r.selectedUser,disabled:"disabled"},null,8,oe)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"password",placeholder:"Current password",disabled:r.commandRunning},null,8,le)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"new_password",placeholder:"New password",disabled:r.commandRunning},null,8,ce)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"confirm_new_password",placeholder:"Confirm new password",disabled:r.commandRunning},null,8,ue)]),(0,s._)("label",null,[(0,s._)("input",{type:"submit",class:"btn btn-primary",value:"Change Password",disabled:r.commandRunning},null,8,de)])],544)]})),_:1},512),(0,s._)("div",fe,[(0,s._)("ul",pe,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(r.users,(function(t){return(0,s.wg)(),(0,s.iD)("li",{key:t.user_id,class:"item user",onClick:function(e){return r.selectedUser=t.username}},[(0,s._)("div",{class:"name col-8",textContent:(0,p.zw)(t.username)},null,8,he),(0,s._)("div",ge,[(0,s.Wm)(u,{title:"User Actions","icon-class":"fa fa-cog"},{default:(0,s.w5)((function(){return[(0,s.Wm)(c,{text:"Change Password",disabled:r.commandRunning,"icon-class":"fa fa-key",onClick:function(n){r.selectedUser=t.username,e.$refs.changePasswordModal.show()}},null,8,["disabled","onClick"]),(0,s.Wm)(c,{text:"Delete User",disabled:r.commandRunning,"icon-class":"fa fa-trash",onClick:function(e){return a.deleteUser(t)}},null,8,["disabled","onClick"])]})),_:2},1024)])],8,me)})),128))])])],64)}var we=n(9584),be=(n(8309),{name:"Users",components:{DropdownItem:f.Z,Loading:G.Z,Modal:X.Z,Dropdown:d.Z},mixins:[J.Z],props:{sessionToken:{type:String,required:!0},currentUser:{type:Object,required:!0}},data:function(){return{users:[],commandRunning:!1,loading:!1,selectedUser:null}},methods:{refresh:function(){var e=this;return(0,u.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("user.get_users");case 4:e.users=t.sent;case 5:return t.prev=5,e.loading=!1,t.finish(5);case 8:case"end":return t.stop()}}),t,null,[[1,,5,8]])})))()},createUser:function(e){var t=this;return(0,u.Z)(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.preventDefault(),s=(0,we.Z)(t.$refs.addUserForm.querySelectorAll("input[name]")).reduce((function(e,t){return e[t.name]=t.value,e}),{}),s.password===s.confirm_password){n.next=5;break}return t.notify({title:"Unable to create user",text:"Please check that the passwords match",error:!0,image:{iconClass:"fas fa-times"}}),n.abrupt("return");case 5:return t.commandRunning=!0,n.prev=6,n.next=9,t.request("user.create_user",{username:s.username,password:s.password,session_token:t.sessionToken});case 9:return n.prev=9,t.commandRunning=!1,n.finish(9);case 12:return t.notify({text:"User "+s.username+" created",image:{iconClass:"fas fa-check"}}),t.$refs.addUserModal.close(),n.next=16,t.refresh();case 16:case"end":return n.stop()}}),n,null,[[6,,9,12]])})))()},changePassword:function(e){var t=this;return(0,u.Z)(regeneratorRuntime.mark((function n(){var s,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.preventDefault(),s=(0,we.Z)(t.$refs.changePasswordForm.querySelectorAll("input[name]")).reduce((function(e,t){return e[t.name]=t.value,e}),{}),s.new_password===s.confirm_new_password){n.next=5;break}return t.notify({title:"Unable to update password",text:"Please check that the passwords match",error:!0,image:{iconClass:"fas fa-times"}}),n.abrupt("return");case 5:return t.commandRunning=!0,i=!1,n.prev=7,n.next=10,t.request("user.update_password",{username:s.username,old_password:s.password,new_password:s.new_password});case 10:i=n.sent;case 11:return n.prev=11,t.commandRunning=!1,n.finish(11);case 14:i?(t.$refs.changePasswordModal.close(),t.notify({text:"Password successfully updated",image:{iconClass:"fas fa-check"}})):t.notify({title:"Unable to update password",text:"The current password is incorrect",error:!0,image:{iconClass:"fas fa-times"}});case 15:case"end":return n.stop()}}),n,null,[[7,,11,14]])})))()},deleteUser:function(e){var t=this;return(0,u.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(confirm("Are you sure that you want to remove the user "+e.username+"?")){n.next=2;break}return n.abrupt("return");case 2:return t.commandRunning=!0,n.prev=3,n.next=6,t.request("user.delete_user",{username:e.username,session_token:t.sessionToken});case 6:return n.prev=6,t.commandRunning=!1,n.finish(6);case 9:return t.notify({text:"User "+e.username+" removed",image:{iconClass:"fas fa-check"}}),n.next=12,t.refresh();case 12:case"end":return n.stop()}}),n,null,[[3,,6,9]])})))()}},mounted:function(){this.refresh()}});const ye=(0,ee.Z)(be,[["render",ve]]);var ke=ye,xe={name:"Settings",components:{Dropdown:d.Z,DropdownItem:f.Z,Users:ke,Token:ne},mixins:[J.Z],data:function(){return{selectedView:"users",currentUser:null,sessionToken:null}},methods:{refresh:function(){var e=this;return(0,u.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.sessionToken=e.getCookies()["session_token"],t.next=3,e.request("user.get_user_by_session",{session_token:e.sessionToken});case 3:e.currentUser=t.sent;case 4:case"end":return t.stop()}}),t)})))()}},mounted:function(){this.refresh()}};const _e=(0,ee.Z)(xe,[["render",c]]);var Ce=_e},3379:function(e,t,n){var s={"./Camera/Index":[5528,5528],"./CameraAndroidIpcam/Index":[6739,6739],"./CameraCv/Index":[8184,5528,8184],"./CameraFfmpeg/Index":[5111,5528,5111],"./CameraGstreamer/Index":[699,5528,699],"./CameraIrMlx90640/Index":[9895,5528,9895],"./CameraPi/Index":[4548,5528,4548],"./Entities/Index":[9688,3053],"./Execute/Index":[7643,7643],"./Light/Index":[8448,7246,3490,8448],"./LightHue/Index":[3724,7246,3490,8448,3724],"./Media/Index":[4196,7246,8337,7029,779,4196],"./MediaMplayer/Index":[6509,7246,8337,7029,779,4196,6509],"./MediaMpv/Index":[5895,7246,8337,7029,779,4196,5895],"./MediaOmxplayer/Index":[9633,7246,8337,7029,779,4196,9633],"./MediaVlc/Index":[767,7246,8337,7029,779,4196,767],"./Music/Index":[5781,7246,8337,7029,6833],"./MusicMpd/Index":[2957,7246,8337,7029,6833,2957],"./MusicSnapcast/Index":[2790,7246,3490,2790],"./MusicSpotify/Index":[7196,7246,8337,7029,6833,7196],"./Rtorrent/Index":[2820,8337,779,6162,2820],"./Settings/Index":[2715],"./Sound/Index":[5193,5193],"./Torrent/Index":[9299,8337,779,6162,9299],"./Tts/Index":[2466,4021,2466],"./TtsGoogle/Index":[1938,4021,1938],"./TvSamsungWs/Index":[615,615],"./ZigbeeMqtt/Index":[4848,7246,3490,4848],"./Zwave/Index":[8586,7246,3490,906,6027],"./ZwaveMqtt/Index":[2362,7246,3490,906,2362]};function i(e){if(!n.o(s,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=s[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(i)}))}i.keys=function(){return Object.keys(s)},i.id=3379,e.exports=i},6725:function(e,t,n){var s={"./Calendar/Index":[345,345],"./Camera/Index":[2346,2346],"./Component/Index":[5824,7246,3490,5824],"./DateTime/Index":[1595,9575,1595],"./DateTimeWeather/Index":[3138,1798,9575,3138],"./ImageCarousel/Index":[6003,1798,9575,6003],"./Music/Index":[6013,6013],"./Plugin/Index":[1818,1818],"./RssNews/Index":[7420,7420],"./Weather/Index":[1798,1798]};function i(e){if(!n.o(s,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=s[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(i)}))}i.keys=function(){return Object.keys(s)},i.id=6725,e.exports=i},1359:function(e){"use strict";e.exports=JSON.parse('{"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"},"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"},"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"},"tts":{"class":"far fa-comment"},"tts.google":{"class":"fas fa-comment"},"tv.samsung.ws":{"class":"fas fa-tv"},"zigbee.mqtt":{"imgUrl":"/icons/zigbee.svg"},"zwave":{"imgUrl":"/icons/z-wave.png"},"zwave.mqtt":{"imgUrl":"/icons/z-wave.png"}}')}},t={};function n(s){var i=t[s];if(void 0!==i)return i.exports;var r=t[s]={exports:{}};return e[s](r,r.exports,n),r.exports}n.m=e,function(){var e=[];n.O=function(t,s,i,r){if(!s){var a=1/0;for(u=0;u=r)&&Object.keys(n.O).every((function(e){return n.O[e](s[l])}))?s.splice(l--,1):(o=!1,r0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[s,i,r]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(s,i){if(1&i&&(s=this(s)),8&i)return s;if("object"===typeof s&&s){if(4&i&&s.__esModule)return s;if(16&i&&"function"===typeof s.then)return s}var r=Object.create(null);n.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var o=2&i&&s;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((function(e){a[e]=function(){return s[e]}}));return a["default"]=function(){return s},n.d(r,a),r}}(),function(){n.d=function(e,t){for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,s){return n.f[s](e,t),t}),[]))}}(),function(){n.u=function(e){return"static/js/"+e+"-legacy."+{65:"a4e6662a",218:"8529d512",345:"dcb6e74e",615:"fba0e1b5",699:"cb1ccfbb",767:"f33d812b",779:"b6f54fbb",906:"411b215f",1399:"7e768542",1595:"69aea4ae",1798:"b42f39d9",1818:"03a52113",1938:"e350f72d",2315:"36b42ec4",2346:"4845c2ae",2362:"034c153c",2466:"b6981a49",2790:"3fcc38e0",2820:"869be689",2957:"a0d5f651",3053:"74849fdd",3138:"fb8e3a20",3303:"25b20d44",3398:"f60988fb",3459:"78c2ebcb",3490:"d482e29b",3593:"0d1a3580",3724:"b00820ce",4021:"a3380d38",4196:"52467354",4435:"8334de27",4548:"e2883bdd",4848:"dbe8981f",4981:"c4835180",5006:"08d1bd17",5111:"262ea3c5",5193:"d8c2e027",5207:"b6625280",5528:"5b7db199",5824:"7b386549",5895:"e1ce8e90",6003:"f3446996",6013:"b02eb716",6027:"15704eec",6162:"bf13f6e2",6509:"ab6d64c3",6739:"c665b953",6833:"45b75b6d",7029:"23944402",7196:"a47a2493",7246:"22fd9eab",7420:"a57de4be",7549:"a351a798",7643:"5b846090",8126:"ec568576",8184:"702db0b7",8337:"fcf13df8",8448:"8c32a9ad",8625:"30fef632",9299:"adb4a75b",9575:"fb8eab70",9633:"8a00fadb",9651:"fc7ada5d",9895:"acee9428"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"static/css/"+e+"."+{65:"b366d0d2",218:"8bc17e62",345:"27e4fda5",615:"1ac471d9",779:"055e0a78",906:"74183bf9",1798:"d01ab9e8",1818:"13a8969a",2315:"5933bd03",2346:"652ce8d2",2790:"0b991c47",3053:"ec4e5d47",3138:"6592932c",3303:"8374ad40",3398:"b6f8640f",3490:"ec1f2ba4",3593:"1362004f",3724:"67859fcb",4021:"af03a7d5",4196:"06732143",4435:"4025d016",4848:"7a0e1cc6",4981:"59b7c5bd",5006:"272cf823",5193:"728e9591",5207:"d020a412",5528:"073578fc",5824:"e84debea",6003:"33443d49",6013:"0f7c5d21",6162:"3c801dd2",6739:"89ef2cab",6833:"7067545d",7029:"bb7f4511",7246:"87555644",7420:"6d705296",7549:"81589a64",7643:"d6678a46",8126:"4a7e8b22",8448:"5ce15271",8625:"bd1a98bc",9575:"aef25003",9651:"f33536b2"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="platypush:";n.l=function(s,i,r,a){if(e[s])e[s].push(i);else{var o,l;if(void 0!==r)for(var c=document.getElementsByTagName("script"),u=0;uPlatypush
',3),Oe={key:0,class:"row"},$e=Pe((function(){return(0,i._)("label",null,[(0,i._)("input",{type:"password",name:"confirm_password",placeholder:"Confirm password"})],-1)})),Ee=[$e],We={class:"row buttons"},ze=["value"],Le=Pe((function(){return(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 Ae(e,t,n,s,r,a){return(0,i.wg)(),(0,i.iD)("div",je,[(0,i._)("form",Me,[qe,a._register?((0,i.wg)(),(0,i.iD)("div",Oe,Ee)):(0,i.kq)("",!0),(0,i._)("div",We,[(0,i._)("input",{type:"submit",class:"btn btn-primary",value:a._register?"Register":"Login"},null,8,ze)]),Le])])}var Ve={name:"Login",mixins:[S.Z],props:{register:{type:Boolean,required:!1,default:!1}},computed:{_register:function(){return this.parseBoolean(this.register)}}};const He=(0,_.Z)(Ve,[["render",Ae],["__scopeId","data-v-16cef6aa"]]);var Fe=He;function Be(e,t,n,s,r,a){var o=(0,i.up)("Login");return(0,i.wg)(),(0,i.j4)(o,{register:!0})}var Ye={name:"Register",mixins:[Fe],components:{Login:Fe},props:{register:{type:Boolean,required:!1,default:!0}}};const Ke=(0,_.Z)(Ye,[["render",Be]]);var Ge=Ke,Je={key:2,class:"canvas"},Xe={class:"panel"},Qe={key:3,class:"canvas"};function et(e,t,n,s,r,a){var o=(0,i.up)("Loading"),l=(0,i.up)("Nav"),u=(0,i.up)("Settings");return(0,i.wg)(),(0,i.iD)("main",null,[r.loading?((0,i.wg)(),(0,i.j4)(o,{key:0})):((0,i.wg)(),(0,i.j4)(l,{key:1,panels:r.components,"selected-panel":r.selectedPanel,hostname:r.hostname,onSelect:t[0]||(t[0]=function(e){return r.selectedPanel=e})},null,8,["panels","selected-panel","hostname"])),"settings"===r.selectedPanel?((0,i.wg)(),(0,i.iD)("div",Je,[(0,i._)("div",Xe,[(0,i.Wm)(u)])])):((0,i.wg)(),(0,i.iD)("div",Qe,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(r.components,(function(e,t){return(0,i.wg)(),(0,i.iD)("div",{class:(0,c.C_)(["panel",{hidden:t!==r.selectedPanel}]),key:t},[t===r.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))]))])}var tt=n(6084),nt=(n(4723),n(4747),n(9720),n(9600),n(7042),function(e){return(0,i.dD)("data-v-6395b430"),e=e(),(0,i.Cn)(),e}),st=nt((function(){return(0,i._)("i",{class:"fas fa-bars"},null,-1)})),it=["textContent"],rt={class:"plugins"},at=["title","onClick"],ot=["href"],lt={class:"icon"},ct=["src"],ut={key:2,class:"fas fa-puzzle-piece"},dt=["textContent"],ft={class:"footer"},pt={href:"/#settings"},mt=nt((function(){return(0,i._)("span",{class:"icon"},[(0,i._)("i",{class:"fa fa-cog"})],-1)})),ht={key:0,class:"name"},gt={href:"/logout"},vt=nt((function(){return(0,i._)("span",{class:"icon"},[(0,i._)("i",{class:"fas fa-sign-out-alt"})],-1)})),wt={key:0,class:"name"};function bt(e,t,n,s,r,a){return(0,i.wg)(),(0,i.iD)("nav",{class:(0,c.C_)({collapsed:r.collapsed})},[(0,i._)("div",{class:"toggler",onClick:t[0]||(t[0]=function(e){return r.collapsed=!r.collapsed})},[st,n.hostname?((0,i.wg)(),(0,i.iD)("span",{key:0,class:"hostname",textContent:(0,c.zw)(n.hostname)},null,8,it)):(0,i.kq)("",!0)]),(0,i._)("ul",rt,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(a.panelNames,(function(e){var t,s;return(0,i.wg)(),(0,i.iD)("li",{key:e,class:(0,c.C_)(["entry",{selected:e===n.selectedPanel}]),title:e,onClick:function(t){return a.onItemClick(e)}},[(0,i._)("a",{href:"/#".concat(e)},[(0,i._)("span",lt,[null!==(t=r.icons[e])&&void 0!==t&&t.class?((0,i.wg)(),(0,i.iD)("i",{key:0,class:(0,c.C_)(r.icons[e].class)},null,2)):null!==(s=r.icons[e])&&void 0!==s&&s.imgUrl?((0,i.wg)(),(0,i.iD)("img",{key:1,src:r.icons[e].imgUrl,alt:"name"},null,8,ct)):((0,i.wg)(),(0,i.iD)("i",ut))]),r.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,dt))],8,ot)],10,at)})),128))]),(0,i._)("ul",ft,[(0,i._)("li",{class:(0,c.C_)({selected:"settings"===n.selectedPanel}),title:"Settings",onClick:t[1]||(t[1]=function(e){return a.onItemClick("settings")})},[(0,i._)("a",pt,[mt,r.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",ht,"Settings"))])],2),(0,i._)("li",{title:"Logout",onClick:t[2]||(t[2]=function(e){return a.onItemClick("logout")})},[(0,i._)("a",gt,[vt,r.collapsed?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("span",wt,"Logout"))])])])],2)}n(2707);var yt=n(1359),kt={name:"Nav",emits:["select"],mixins:[S.Z],props:{panels:{type:Object,required:!0},selectedPanel:{type:String},hostname:{type:String}},computed:{panelNames:function(){var e=Object.keys(this.panels),t=e.indexOf("entities");return t>=0?["entities"].concat(e.slice(0,t).concat(e.slice(t+1)).sort()):e.sort()},collapsedDefault:function(){return!(!this.isMobile()&&!this.isTablet())}},methods:{onItemClick:function(e){this.$emit("select",e),this.collapsed=!!this.isMobile()||this.collapsedDefault}},data:function(){return{collapsed:!0,icons:yt,host:null}},mounted:function(){this.collapsed=this.collapsedDefault}};const xt=(0,_.Z)(kt,[["render",bt],["__scopeId","data-v-6395b430"]]);var _t=xt,Ct=n(2715),Dt={name:"Panel",mixins:[S.Z],components:{Settings:Ct["default"],Nav:_t,Loading:ve.Z},data:function(){return{loading:!1,plugins:{},backends:{},procedures:{},components:{},hostname:void 0,selectedPanel:void 0}},methods:{initSelectedPanel:function(){var e=this.$route.hash.match("#?([a-zA-Z0-9.]+)[?]?(.*)"),t=e?e[1]:"entities";null!==t&&void 0!==t&&t.length&&(this.selectedPanel=t)},initPanels:function(){var e=this;this.components={},Object.entries(this.plugins).forEach(function(){var t=(0,a.Z)(regeneratorRuntime.mark((function t(s){var r,o,l,c,u,d;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=(0,tt.Z)(s,2),o=r[0],l=r[1],c=o.split(".").map((function(e){return e[0].toUpperCase()+e.slice(1)})).join(""),u=null,t.prev=3,t.next=6,n(3379)("./".concat(c,"/Index"));case 6:u=t.sent,t.next=12;break;case 9:return t.prev=9,t.t0=t["catch"](3),t.abrupt("return");case 12:d=(0,ge.XI)((0,i.RC)((0,a.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",u);case 1:case"end":return e.stop()}}),e)}))))),e.$options.components[o]=d,e.components[o]={component:d,pluginName:o,config:l};case 15:case"end":return t.stop()}}),t,null,[[3,9]])})));return function(e){return t.apply(this,arguments)}}())},parseConfig:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){var n,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([e.request("config.get_plugins"),e.request("config.get_backends"),e.request("config.get_procedures"),e.request("config.get_device_id")]);case 2:n=t.sent,s=(0,tt.Z)(n,4),e.plugins=s[0],e.backends=s[1],e.procedures=s[2],e.hostname=s[3],e.initializeDefaultViews();case 9:case"end":return t.stop()}}),t)})))()},initializeDefaultViews:function(){this.plugins.execute={},this.plugins.entities={}}},mounted:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.parseConfig();case 4:e.initPanels(),e.initSelectedPanel();case 6:return t.prev=6,e.loading=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[1,,6,9]])})))()}};const It=(0,_.Z)(Dt,[["render",et],["__scopeId","data-v-fbc09254"]]);var Tt=It,Zt={key:1,class:"canvas"};function St(e,t,n,s,r,a){var o=(0,i.up)("Loading");return(0,i.wg)(),(0,i.iD)("main",null,[r.loading?((0,i.wg)(),(0,i.j4)(o,{key:0})):((0,i.wg)(),(0,i.iD)("div",Zt,[((0,i.wg)(),(0,i.j4)((0,i.LL)(r.component),{config:r.config,"plugin-name":a.pluginName},null,8,["config","plugin-name"]))]))])}n(9714);var Ut={name:"Panel",mixins:[S.Z],components:{Settings:Ct["default"],Nav:_t,Loading:ve.Z},data:function(){return{loading:!1,config:{},plugins:{},backends:{},procedures:{},component:void 0,hostname:void 0,selectedPanel:void 0}},computed:{pluginName:function(){return this.$route.params.plugin}},methods:{initPanel:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){var s,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s=e.pluginName.split(".").map((function(e){return e[0].toUpperCase()+e.slice(1)})).join(""),r=null,t.prev=2,t.next=5,n(3379)("./".concat(s,"/Index"));case 5:r=t.sent,t.next=13;break;case 8:return t.prev=8,t.t0=t["catch"](2),console.error(t.t0),e.notify({error:!0,title:"Cannot load plugin ".concat(e.pluginName),text:t.t0.toString()}),t.abrupt("return");case 13:e.component=(0,ge.XI)((0,i.RC)((0,a.Z)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",r);case 1:case"end":return e.stop()}}),e)}))))),e.$options.components[s]=e.component;case 15:case"end":return t.stop()}}),t,null,[[2,8]])})))()},initConfig:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.request("config.get");case 2:return n=t.sent,e.config=n[e.pluginName]||{},t.next=6,e.request("config.get_device_id");case 6:e.hostname=t.sent;case 7:case"end":return t.stop()}}),t)})))()}},mounted:function(){var e=this;return(0,a.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.initConfig();case 4:return t.next=6,e.initPanel();case 6:return t.prev=6,e.loading=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[1,,6,9]])})))()}};const Rt=(0,_.Z)(Ut,[["render",St],["__scopeId","data-v-e339182c"]]);var Nt=Rt,Pt=[{path:"/",name:"Panel",component:Tt},{path:"/dashboard/:name",name:"Dashboard",component:Ze},{path:"/plugin/:plugin",name:"Plugin",component:Nt},{path:"/login",name:"Login",component:Fe},{path:"/register",name:"Register",component:Ge},{path:"/:catchAll(.*)",component:Ne}],jt=(0,pe.p7)({history:(0,pe.PO)(),routes:Pt}),Mt=jt,qt=(0,s.ri)(fe);qt.config.globalProperties._config=window.config,qt.use(Mt).mount("#app")},6813:function(e,t,n){"use strict";n.d(t,{Z:function(){return M}});n(1539);var s=n(9669),i=n.n(s),r={name:"Api",methods:{execute:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6e4,s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r={};return"target"in e&&e["target"]||(e["target"]="localhost"),"type"in e&&e["type"]||(e["type"]="request"),n&&(r.timeout=n),new Promise((function(n,a){i().post("/execute",e,r).then((function(e){var s;if(e=e.data.response,null!==(s=e.errors)&&void 0!==s&&s.length){var i,r=(null===(i=e.errors)||void 0===i?void 0:i[0])||e;t.notify({text:r,error:!0}),a(r)}else n(e.output)})).catch((function(e){s&&t.notify({text:e,error:!0}),a(e)}))}))},request:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4,s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return this.execute({type:"request",action:e,args:t},n,s)}}};const a=r;var o=a,l=n(6084),c=(n(4916),n(3123),{name:"Cookies",methods:{getCookies:function(){return document.cookie.split(/;\s*/).reduce((function(e,t){var n=t.split("="),s=(0,l.Z)(n,2),i=s[0],r=s[1];return e[i]=r,e}),{})}}});const u=c;var d=u,f=(n(2222),{name:"DateTime",methods:{formatDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"string"===typeof e&&(e=new Date(Date.parse(e))),e.toDateString().substring(0,t?15:10)},formatTime:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return"string"===typeof e&&(e=new Date(Date.parse(e))),e.toTimeString().substring(0,t?8:5)},formatDateTime:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return"string"===typeof e&&(e=new Date(Date.parse(e))),"".concat(this.formatDate(e,t),", ").concat(this.formatTime(e,n))}}});const p=f;var m=p,h=n(9584),g=(n(7714),n(2801),n(1174),n(1249),n(3948),n(5250)),v={name:"Events",computed:{_eventsReady:function(){var e;return null===(e=this.$root.$refs.events)||void 0===e?void 0:e.initialized}},methods:{subscribe:function(e,t){for(var n=this,s=arguments.length,i=new Array(s>2?s-2:0),r=2;r1024&&(i===n.length-1?t=s:e/=1024)})),"".concat(e.toFixed(2)," ").concat(t)},objectsEqual:function(e,t){var n;if("object"!==(0,S.Z)(e)||"object"!==(0,S.Z)(t))return!1;for(var s=0,i=Object.keys(e||{});st?(t=r,n=[i]):r===t&&n.push(i)}}catch(o){s.e(o)}finally{s.f()}(n.indexOf(this.$el)<0||n.length>1)&&(this.$el.style.zIndex=t+1)}if(this.isVisible&&this.timeout&&!this.timeoutId){var a=function(e){return function(){e.close(),e.timeoutId=void 0}};this.timeoutId=setTimeout(a(this),0+this.timeout)}}}),d=n(3744);const f=(0,d.Z)(u,[["render",l],["__scopeId","data-v-7d1f6e8b"]]);var p=f},5771:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var s=n(6252),i=n(9963),r=n(3577),a={class:"dropdown-container",ref:"container"},o=["title"],l=["textContent"],c=["id"];function u(e,t,n,u,d,f){return(0,s.wg)(),(0,s.iD)("div",a,[(0,s._)("button",{title:n.title,ref:"button",onClick:t[0]||(t[0]=(0,i.iM)((function(e){return f.toggle(e)}),["stop"]))},[n.iconClass?((0,s.wg)(),(0,s.iD)("i",{key:0,class:(0,r.C_)(["icon",n.iconClass])},null,2)):(0,s.kq)("",!0),n.text?((0,s.wg)(),(0,s.iD)("span",{key:1,class:"text",textContent:(0,r.zw)(n.text)},null,8,l)):(0,s.kq)("",!0)],8,o),(0,s._)("div",{class:(0,r.C_)(["dropdown fade-in",{hidden:!d.visible}]),id:n.id,ref:"dropdown"},[(0,s.WI)(e.$slots,"default",{},void 0,!0)],10,c)],512)}var d={name:"Dropdown",emits:["click"],props:{id:{type:String},items:{type:Array,default:function(){return[]}},iconClass:{type:String,default:"fa fa-ellipsis-h"},text:{type:String},title:{type:String},keepOpenOnItemClick:{type:Boolean,default:!1}},data:function(){return{visible:!1}},methods:{documentClickHndl:function(e){if(this.visible){var t=e.target;while(t){if(!this.$refs.dropdown)break;if(t===this.$refs.dropdown.element)return;t=t.parentElement}this.close()}},close:function(){this.visible=!1,document.removeEventListener("click",this.documentClickHndl)},open:function(){var e=this;document.addEventListener("click",this.documentClickHndl),this.visible=!0,setTimeout((function(){var t=e.$refs.dropdown;t.style.left=0,t.style.top=parseFloat(getComputedStyle(e.$refs.button).height)+"px",t.getBoundingClientRect().left>window.innerWidth/2&&(t.style.left=-t.clientWidth+parseFloat(getComputedStyle(e.$refs.button).width)+"px"),t.getBoundingClientRect().top>window.innerHeight/2&&(t.style.top=-t.clientHeight+parseFloat(getComputedStyle(e.$refs.button).height)+"px")}),10)},toggle:function(e){e.stopPropagation(),this.$emit("click"),this.visible?this.close():this.open()}}},f=n(3744);const p=(0,f.Z)(d,[["render",u],["__scopeId","data-v-21bf0316"]]);var m=p},2684:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var s=n(6252),i=n(3577),r={key:0,class:"col-2 icon"},a=["textContent"];function o(e,t,n,o,l,c){var u,d,f=(0,s.up)("Icon");return(0,s.wg)(),(0,s.iD)("div",{class:(0,i.C_)(["row item",n.itemClass]),onClick:t[0]||(t[0]=function(){return c.clicked&&c.clicked.apply(c,arguments)})},[null!==(u=n.iconClass)&&void 0!==u&&u.length||null!==(d=n.iconUrl)&&void 0!==d&&d.length?((0,s.wg)(),(0,s.iD)("div",r,[(0,s.Wm)(f,{class:(0,i.C_)(n.iconClass),url:n.iconUrl},null,8,["class","url"])])):(0,s.kq)("",!0),(0,s._)("div",{class:(0,i.C_)(["text",{"col-10":null!=n.iconClass}]),textContent:(0,i.zw)(n.text)},null,10,a)],2)}var l=n(1478),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:function(e){if(this.disabled)return!1;this.$parent.$emit("click",e),this.$parent.keepOpenOnItemClick||(this.$parent.visible=!1)}}},u=n(3744);const d=(0,u.Z)(c,[["render",o],["__scopeId","data-v-2cfe8014"]]);var f=d},1478:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var s=n(6252),i=n(3577),r={class:"icon-container"},a=["src","alt"];function o(e,t,n,o,l,c){var u,d;return(0,s.wg)(),(0,s.iD)("div",r,[null!==(u=n.url)&&void 0!==u&&u.length?((0,s.wg)(),(0,s.iD)("img",{key:0,class:"icon",src:n.url,alt:n.alt},null,8,a)):null!==(d=c.className)&&void 0!==d&&d.length?((0,s.wg)(),(0,s.iD)("i",{key:1,class:(0,i.C_)(["icon",c.className]),style:(0,i.j5)({color:n.color})},null,6)):(0,s.kq)("",!0)])}var l={props:{class:{type:String},url:{type:String},color:{type:String,default:""},alt:{type:String,default:""}},computed:{className:function(){return this.class}}},c=n(3744);const u=(0,c.Z)(l,[["render",o],["__scopeId","data-v-706a3bd1"]]);var d=u},2715:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Ce}});var s=n(6252),i={class:"settings-container"},r={class:"col-8"},a={class:"col-4 pull-right"},o=(0,s._)("i",{class:"fa fa-plus"},null,-1),l=[o];function c(e,t,n,o,c,u){var d=(0,s.up)("DropdownItem"),f=(0,s.up)("Dropdown"),p=(0,s.up)("Users"),m=(0,s.up)("Token");return(0,s.wg)(),(0,s.iD)("div",i,[(0,s._)("header",null,[(0,s._)("div",r,[(0,s.Wm)(f,{title:"Select a category","icon-class":"fa fa-ellipsis-h"},{default:(0,s.w5)((function(){return[(0,s.Wm)(d,{text:"Users","icon-class":"fa fa-user","item-class":{selected:"users"===c.selectedView},onClick:t[0]||(t[0]=function(e){return c.selectedView="users"})},null,8,["item-class"]),(0,s.Wm)(d,{text:"Generate a token","icon-class":"fa fa-key","item-class":{selected:"token"===c.selectedView},onClick:t[1]||(t[1]=function(e){return c.selectedView="token"})},null,8,["item-class"])]})),_:1})]),(0,s._)("div",a,["users"===c.selectedView?((0,s.wg)(),(0,s.iD)("button",{key:0,title:"Add User",onClick:t[2]||(t[2]=function(t){return e.$refs.usersView.$refs.addUserModal.show()})},l)):(0,s.kq)("",!0)])]),(0,s._)("main",null,["users"===c.selectedView?((0,s.wg)(),(0,s.j4)(p,{key:0,"session-token":c.sessionToken,"current-user":c.currentUser,ref:"usersView"},null,8,["session-token","current-user"])):"token"===c.selectedView?((0,s.wg)(),(0,s.j4)(m,{key:1,"session-token":c.sessionToken,"current-user":c.currentUser,ref:"tokenView"},null,8,["session-token","current-user"])):(0,s.kq)("",!0)])])}var u=n(8534),d=(n(5666),n(5771)),f=n(2684),p=n(3577),m=n(9963),h={class:"token-container"},g={class:"token-container"},v=(0,s.Uk)(" This is your generated token. Treat it carefully and do not share it with untrusted parties."),w=(0,s._)("br",null,null,-1),b=(0,s.Uk)(" Also, make sure to save it - it WILL NOT be displayed again. "),y=["textContent"],k={class:"body"},x={class:"description"},_=(0,s.Uk)("Generate a JWT authentication token that can be used for API calls to the "),C=(0,s.Uk)("/execute"),D=(0,s.Uk)(" endpoint."),I=(0,s._)("br",null,null,-1),T=(0,s._)("p",null,"You can include the token in your requests in any of the following ways:",-1),Z=(0,s.Uk)("Specify it on the "),S=(0,s.Uk)("Authorization: Bearer"),U=(0,s.Uk)(" header;"),R=(0,s.Uk)("Specify it on the "),N=(0,s.Uk)("X-Token"),P=(0,s.Uk)(" header;"),j=(0,s.Uk)("Specify it as a URL parameter: "),M=(0,s.Uk)("http://site:8008/execute?token=..."),q=(0,s.Uk)(";"),O=(0,s.Uk)("Specify it on the body of your JSON request: "),$=(0,s.Uk)('{"type":"request", "action", "...", "token":"..."}'),E=(0,s.Uk)("."),W=(0,s.Uk)(" Confirm your credentials in order to generate a new token. "),z={class:"form-container"},L=(0,s._)("span",null,"Username",-1),A=["value"],V=(0,s._)("label",null,[(0,s._)("span",null,"Confirm password"),(0,s._)("span",null,[(0,s._)("input",{type:"password",name:"password"})])],-1),H=(0,s._)("label",null,[(0,s._)("span",null,"Token validity in days"),(0,s._)("span",null,[(0,s._)("input",{type:"text",name:"validityDays"})]),(0,s._)("span",{class:"note"},[(0,s.Uk)(" Decimal values are also supported (e.g. "),(0,s._)("i",null,"0.5"),(0,s.Uk)(" to identify 6 hours). An empty or zero value means that the token has no expiry date. ")])],-1),F=(0,s._)("label",null,[(0,s._)("input",{type:"submit",class:"btn btn-primary",value:"Generate token"})],-1);function B(e,t,n,i,r,a){var o=(0,s.up)("Loading"),l=(0,s.up)("Modal"),c=(0,s.up)("tt");return(0,s.wg)(),(0,s.iD)("div",h,[r.loading?((0,s.wg)(),(0,s.j4)(o,{key:0})):(0,s.kq)("",!0),(0,s.Wm)(l,{ref:"tokenModal"},{default:(0,s.w5)((function(){return[(0,s._)("div",g,[(0,s._)("label",null,[v,w,b,(0,s._)("textarea",{class:"token",textContent:(0,p.zw)(r.token),onFocus:t[0]||(t[0]=function(){return a.onTokenSelect&&a.onTokenSelect.apply(a,arguments)})},null,40,y)])])]})),_:1},512),(0,s._)("div",k,[(0,s._)("div",x,[(0,s._)("p",null,[_,(0,s.Wm)(c,null,{default:(0,s.w5)((function(){return[C]})),_:1}),D]),I,T,(0,s._)("ul",null,[(0,s._)("li",null,[Z,(0,s.Wm)(c,null,{default:(0,s.w5)((function(){return[S]})),_:1}),U]),(0,s._)("li",null,[R,(0,s.Wm)(c,null,{default:(0,s.w5)((function(){return[N]})),_:1}),P]),(0,s._)("li",null,[j,(0,s.Wm)(c,null,{default:(0,s.w5)((function(){return[M]})),_:1}),q]),(0,s._)("li",null,[O,(0,s.Wm)(c,null,{default:(0,s.w5)((function(){return[$]})),_:1}),E])]),W]),(0,s._)("div",z,[(0,s._)("form",{onSubmit:t[1]||(t[1]=(0,m.iM)((function(){return a.generateToken&&a.generateToken.apply(a,arguments)}),["prevent"])),ref:"generateTokenForm"},[(0,s._)("label",null,[L,(0,s._)("span",null,[(0,s._)("input",{type:"text",name:"username",value:n.currentUser.username,disabled:""},null,8,A)])]),V,H,F],544)])])])}n(1539),n(9714);var Y=n(9669),K=n.n(Y),G=n(1232),J=n(6813),X=n(8453),Q={name:"Token",components:{Modal:X.Z,Loading:G.Z},mixins:[J.Z],props:{currentUser:{type:Object,required:!0}},data:function(){return{loading:!1,token:null}},methods:{generateToken:function(e){var t=this;return(0,u.Z)(regeneratorRuntime.mark((function n(){var s,i,r,a,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=t.currentUser.username,r=e.target.password.value,a=null!==(s=e.target.validityDays)&&void 0!==s&&s.length?parseInt(e.target.validityDays.value):0,a||(a=null),t.loading=!0,n.prev=5,n.next=8,K().post("/auth",{username:i,password:r,expiry_days:a});case 8:t.token=n.sent.data.token,null!==(o=t.token)&&void 0!==o&&o.length&&t.$refs.tokenModal.show(),n.next=16;break;case 12:n.prev=12,n.t0=n["catch"](5),console.error(n.t0.toString()),t.notify({text:n.t0.toString(),error:!0});case 16:return n.prev=16,t.loading=!1,n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[5,12,16,19]])})))()},onTokenSelect:function(e){e.target.select(),document.execCommand("copy"),this.notify({text:"Token copied to clipboard",image:{iconClass:"fa fa-check"}})}}},ee=n(3744);const te=(0,ee.Z)(Q,[["render",B]]);var ne=te,se=["disabled"],ie=["disabled"],re=["disabled"],ae=["disabled"],oe=["value"],le=["disabled"],ce=["disabled"],ue=["disabled"],de=["disabled"],fe={class:"body"},pe={class:"users-list"},me=["onClick"],he=["textContent"],ge={class:"actions pull-right col-4"};function ve(e,t,n,i,r,a){var o=(0,s.up)("Loading"),l=(0,s.up)("Modal"),c=(0,s.up)("DropdownItem"),u=(0,s.up)("Dropdown");return(0,s.wg)(),(0,s.iD)(s.HY,null,[r.loading?((0,s.wg)(),(0,s.j4)(o,{key:0})):(0,s.kq)("",!0),(0,s.Wm)(l,{ref:"addUserModal",title:"Add User"},{default:(0,s.w5)((function(){return[(0,s._)("form",{action:"#",method:"POST",ref:"addUserForm",onSubmit:t[0]||(t[0]=function(){return a.createUser&&a.createUser.apply(a,arguments)})},[(0,s._)("label",null,[(0,s._)("input",{type:"text",name:"username",placeholder:"Username",disabled:r.commandRunning},null,8,se)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"password",placeholder:"Password",disabled:r.commandRunning},null,8,ie)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"confirm_password",placeholder:"Confirm password",disabled:r.commandRunning},null,8,re)]),(0,s._)("label",null,[(0,s._)("input",{type:"submit",class:"btn btn-primary",value:"Create User",disabled:r.commandRunning},null,8,ae)])],544)]})),_:1},512),(0,s.Wm)(l,{ref:"changePasswordModal",title:"Change Password"},{default:(0,s.w5)((function(){return[(0,s._)("form",{action:"#",method:"POST",ref:"changePasswordForm",onSubmit:t[1]||(t[1]=function(){return a.changePassword&&a.changePassword.apply(a,arguments)})},[(0,s._)("label",null,[(0,s._)("input",{type:"text",name:"username",placeholder:"Username",value:r.selectedUser,disabled:"disabled"},null,8,oe)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"password",placeholder:"Current password",disabled:r.commandRunning},null,8,le)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"new_password",placeholder:"New password",disabled:r.commandRunning},null,8,ce)]),(0,s._)("label",null,[(0,s._)("input",{type:"password",name:"confirm_new_password",placeholder:"Confirm new password",disabled:r.commandRunning},null,8,ue)]),(0,s._)("label",null,[(0,s._)("input",{type:"submit",class:"btn btn-primary",value:"Change Password",disabled:r.commandRunning},null,8,de)])],544)]})),_:1},512),(0,s._)("div",fe,[(0,s._)("ul",pe,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(r.users,(function(t){return(0,s.wg)(),(0,s.iD)("li",{key:t.user_id,class:"item user",onClick:function(e){return r.selectedUser=t.username}},[(0,s._)("div",{class:"name col-8",textContent:(0,p.zw)(t.username)},null,8,he),(0,s._)("div",ge,[(0,s.Wm)(u,{title:"User Actions","icon-class":"fa fa-cog"},{default:(0,s.w5)((function(){return[(0,s.Wm)(c,{text:"Change Password",disabled:r.commandRunning,"icon-class":"fa fa-key",onClick:function(n){r.selectedUser=t.username,e.$refs.changePasswordModal.show()}},null,8,["disabled","onClick"]),(0,s.Wm)(c,{text:"Delete User",disabled:r.commandRunning,"icon-class":"fa fa-trash",onClick:function(e){return a.deleteUser(t)}},null,8,["disabled","onClick"])]})),_:2},1024)])],8,me)})),128))])])],64)}var we=n(9584),be=(n(8309),{name:"Users",components:{DropdownItem:f.Z,Loading:G.Z,Modal:X.Z,Dropdown:d.Z},mixins:[J.Z],props:{sessionToken:{type:String,required:!0},currentUser:{type:Object,required:!0}},data:function(){return{users:[],commandRunning:!1,loading:!1,selectedUser:null}},methods:{refresh:function(){var e=this;return(0,u.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.prev=1,t.next=4,e.request("user.get_users");case 4:e.users=t.sent;case 5:return t.prev=5,e.loading=!1,t.finish(5);case 8:case"end":return t.stop()}}),t,null,[[1,,5,8]])})))()},createUser:function(e){var t=this;return(0,u.Z)(regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.preventDefault(),s=(0,we.Z)(t.$refs.addUserForm.querySelectorAll("input[name]")).reduce((function(e,t){return e[t.name]=t.value,e}),{}),s.password===s.confirm_password){n.next=5;break}return t.notify({title:"Unable to create user",text:"Please check that the passwords match",error:!0,image:{iconClass:"fas fa-times"}}),n.abrupt("return");case 5:return t.commandRunning=!0,n.prev=6,n.next=9,t.request("user.create_user",{username:s.username,password:s.password,session_token:t.sessionToken});case 9:return n.prev=9,t.commandRunning=!1,n.finish(9);case 12:return t.notify({text:"User "+s.username+" created",image:{iconClass:"fas fa-check"}}),t.$refs.addUserModal.close(),n.next=16,t.refresh();case 16:case"end":return n.stop()}}),n,null,[[6,,9,12]])})))()},changePassword:function(e){var t=this;return(0,u.Z)(regeneratorRuntime.mark((function n(){var s,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.preventDefault(),s=(0,we.Z)(t.$refs.changePasswordForm.querySelectorAll("input[name]")).reduce((function(e,t){return e[t.name]=t.value,e}),{}),s.new_password===s.confirm_new_password){n.next=5;break}return t.notify({title:"Unable to update password",text:"Please check that the passwords match",error:!0,image:{iconClass:"fas fa-times"}}),n.abrupt("return");case 5:return t.commandRunning=!0,i=!1,n.prev=7,n.next=10,t.request("user.update_password",{username:s.username,old_password:s.password,new_password:s.new_password});case 10:i=n.sent;case 11:return n.prev=11,t.commandRunning=!1,n.finish(11);case 14:i?(t.$refs.changePasswordModal.close(),t.notify({text:"Password successfully updated",image:{iconClass:"fas fa-check"}})):t.notify({title:"Unable to update password",text:"The current password is incorrect",error:!0,image:{iconClass:"fas fa-times"}});case 15:case"end":return n.stop()}}),n,null,[[7,,11,14]])})))()},deleteUser:function(e){var t=this;return(0,u.Z)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(confirm("Are you sure that you want to remove the user "+e.username+"?")){n.next=2;break}return n.abrupt("return");case 2:return t.commandRunning=!0,n.prev=3,n.next=6,t.request("user.delete_user",{username:e.username,session_token:t.sessionToken});case 6:return n.prev=6,t.commandRunning=!1,n.finish(6);case 9:return t.notify({text:"User "+e.username+" removed",image:{iconClass:"fas fa-check"}}),n.next=12,t.refresh();case 12:case"end":return n.stop()}}),n,null,[[3,,6,9]])})))()}},mounted:function(){this.refresh()}});const ye=(0,ee.Z)(be,[["render",ve]]);var ke=ye,xe={name:"Settings",components:{Dropdown:d.Z,DropdownItem:f.Z,Users:ke,Token:ne},mixins:[J.Z],data:function(){return{selectedView:"users",currentUser:null,sessionToken:null}},methods:{refresh:function(){var e=this;return(0,u.Z)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.sessionToken=e.getCookies()["session_token"],t.next=3,e.request("user.get_user_by_session",{session_token:e.sessionToken});case 3:e.currentUser=t.sent;case 4:case"end":return t.stop()}}),t)})))()}},mounted:function(){this.refresh()}};const _e=(0,ee.Z)(xe,[["render",c]]);var Ce=_e},3379:function(e,t,n){var s={"./Camera/Index":[5528,5528],"./CameraAndroidIpcam/Index":[6739,6739],"./CameraCv/Index":[8184,5528,8184],"./CameraFfmpeg/Index":[5111,5528,5111],"./CameraGstreamer/Index":[699,5528,699],"./CameraIrMlx90640/Index":[9895,5528,9895],"./CameraPi/Index":[4548,5528,4548],"./Entities/Index":[9688,3053],"./Execute/Index":[7643,7643],"./Light/Index":[8448,7246,3490,8448],"./LightHue/Index":[3724,7246,3490,8448,3724],"./Media/Index":[4196,7246,8337,7029,779,4196],"./MediaMplayer/Index":[6509,7246,8337,7029,779,4196,6509],"./MediaMpv/Index":[5895,7246,8337,7029,779,4196,5895],"./MediaOmxplayer/Index":[9633,7246,8337,7029,779,4196,9633],"./MediaVlc/Index":[767,7246,8337,7029,779,4196,767],"./Music/Index":[5781,7246,8337,7029,6833],"./MusicMpd/Index":[2957,7246,8337,7029,6833,2957],"./MusicSnapcast/Index":[2790,7246,3490,2790],"./MusicSpotify/Index":[7196,7246,8337,7029,6833,7196],"./Rtorrent/Index":[2820,8337,779,6162,2820],"./Settings/Index":[2715],"./Sound/Index":[5193,5193],"./Torrent/Index":[9299,8337,779,6162,9299],"./Tts/Index":[2466,4021,2466],"./TtsGoogle/Index":[1938,4021,1938],"./TvSamsungWs/Index":[615,615],"./ZigbeeMqtt/Index":[4848,7246,3490,4848],"./Zwave/Index":[8586,7246,3490,906,6027],"./ZwaveMqtt/Index":[2362,7246,3490,906,2362]};function i(e){if(!n.o(s,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=s[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(i)}))}i.keys=function(){return Object.keys(s)},i.id=3379,e.exports=i},6725:function(e,t,n){var s={"./Calendar/Index":[345,345],"./Camera/Index":[2346,2346],"./Component/Index":[5824,7246,3490,5824],"./DateTime/Index":[1595,9575,1595],"./DateTimeWeather/Index":[3138,1798,9575,3138],"./ImageCarousel/Index":[6003,1798,9575,6003],"./Music/Index":[6013,6013],"./Plugin/Index":[1818,1818],"./RssNews/Index":[7420,7420],"./Weather/Index":[1798,1798]};function i(e){if(!n.o(s,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=s[e],i=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(i)}))}i.keys=function(){return Object.keys(s)},i.id=6725,e.exports=i},1359:function(e){"use strict";e.exports=JSON.parse('{"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"},"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"},"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"},"tts":{"class":"far fa-comment"},"tts.google":{"class":"fas fa-comment"},"tv.samsung.ws":{"class":"fas fa-tv"},"zigbee.mqtt":{"imgUrl":"/icons/zigbee.svg"},"zwave":{"imgUrl":"/icons/z-wave.png"},"zwave.mqtt":{"imgUrl":"/icons/z-wave.png"}}')}},t={};function n(s){var i=t[s];if(void 0!==i)return i.exports;var r=t[s]={exports:{}};return e[s](r,r.exports,n),r.exports}n.m=e,function(){var e=[];n.O=function(t,s,i,r){if(!s){var a=1/0;for(u=0;u=r)&&Object.keys(n.O).every((function(e){return n.O[e](s[l])}))?s.splice(l--,1):(o=!1,r0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[s,i,r]}}(),function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(s,i){if(1&i&&(s=this(s)),8&i)return s;if("object"===typeof s&&s){if(4&i&&s.__esModule)return s;if(16&i&&"function"===typeof s.then)return s}var r=Object.create(null);n.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var o=2&i&&s;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((function(e){a[e]=function(){return s[e]}}));return a["default"]=function(){return s},n.d(r,a),r}}(),function(){n.d=function(e,t){for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}}(),function(){n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,s){return n.f[s](e,t),t}),[]))}}(),function(){n.u=function(e){return"static/js/"+e+"-legacy."+{65:"a4e6662a",218:"8529d512",345:"dcb6e74e",615:"fba0e1b5",699:"cb1ccfbb",767:"f33d812b",779:"b6f54fbb",906:"411b215f",1399:"7e768542",1595:"69aea4ae",1798:"b42f39d9",1818:"03a52113",1938:"e350f72d",2315:"36b42ec4",2346:"4845c2ae",2362:"034c153c",2466:"b6981a49",2790:"3fcc38e0",2820:"869be689",2957:"a0d5f651",3053:"1f30ce63",3138:"fb8e3a20",3303:"25b20d44",3398:"f60988fb",3459:"78c2ebcb",3490:"d482e29b",3593:"0d1a3580",3724:"b00820ce",4021:"a3380d38",4196:"52467354",4435:"8334de27",4548:"e2883bdd",4848:"dbe8981f",4981:"c4835180",5006:"08d1bd17",5111:"262ea3c5",5193:"d8c2e027",5207:"b6625280",5528:"5b7db199",5824:"7b386549",5895:"e1ce8e90",6003:"f3446996",6013:"b02eb716",6027:"15704eec",6162:"bf13f6e2",6509:"ab6d64c3",6739:"c665b953",6833:"45b75b6d",7029:"23944402",7196:"a47a2493",7246:"22fd9eab",7420:"a57de4be",7549:"a351a798",7643:"5b846090",8126:"ec568576",8184:"702db0b7",8337:"fcf13df8",8448:"8c32a9ad",8625:"30fef632",9299:"adb4a75b",9575:"fb8eab70",9633:"8a00fadb",9651:"fc7ada5d",9895:"acee9428"}[e]+".js"}}(),function(){n.miniCssF=function(e){return"static/css/"+e+"."+{65:"b366d0d2",218:"8bc17e62",345:"27e4fda5",615:"1ac471d9",779:"055e0a78",906:"74183bf9",1798:"d01ab9e8",1818:"13a8969a",2315:"5933bd03",2346:"652ce8d2",2790:"0b991c47",3053:"ec4e5d47",3138:"6592932c",3303:"8374ad40",3398:"b6f8640f",3490:"ec1f2ba4",3593:"1362004f",3724:"67859fcb",4021:"af03a7d5",4196:"06732143",4435:"4025d016",4848:"7a0e1cc6",4981:"59b7c5bd",5006:"272cf823",5193:"728e9591",5207:"d020a412",5528:"073578fc",5824:"e84debea",6003:"33443d49",6013:"0f7c5d21",6162:"3c801dd2",6739:"89ef2cab",6833:"7067545d",7029:"bb7f4511",7246:"87555644",7420:"6d705296",7549:"81589a64",7643:"d6678a46",8126:"4a7e8b22",8448:"5ce15271",8625:"bd1a98bc",9575:"aef25003",9651:"f33536b2"}[e]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="platypush:";n.l=function(s,i,r,a){if(e[s])e[s].push(i);else{var o,l;if(void 0!==r)for(var c=document.getElementsByTagName("script"),u=0;u {\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\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 \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/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 \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/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","import { render } from \"./Events.vue?vue&type=template&id=26b9b70f\"\nimport script from \"./Events.vue?vue&type=script&lang=js\"\nexport * from \"./Events.vue?vue&type=script&lang=js\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/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 \"./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 \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\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 \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\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 \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/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=445fdc6f\"\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=445fdc6f&lang=scss\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/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","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 \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/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","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 \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/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 \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-54e0248a\"]])\n\nexport default __exports__","\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 \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/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 \"./Login.vue?vue&type=template&id=16cef6aa&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=16cef6aa&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-16cef6aa\"]])\n\nexport default __exports__","\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 \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/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","import { render } from \"./Nav.vue?vue&type=template&id=6395b430&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=6395b430&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-6395b430\"]])\n\nexport default __exports__","import { render } from \"./Panel.vue?vue&type=template&id=fbc09254&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=fbc09254&lang=scss&scoped=true\"\nimport \"./Panel.vue?vue&type=style&index=1&id=fbc09254&lang=css\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-fbc09254\"]])\n\nexport default __exports__","\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 \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/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","import { createApp } from 'vue'\nimport App from '@/App.vue'\nimport router from '@/router'\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","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 \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/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","import { render } from \"./Modal.vue?vue&type=template&id=7d1f6e8b&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=7d1f6e8b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-7d1f6e8b\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./Dropdown.vue?vue&type=template&id=21bf0316&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=21bf0316&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-21bf0316\"]])\n\nexport default __exports__","\n\n\n\n\n","import { render } from \"./DropdownItem.vue?vue&type=template&id=2cfe8014&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=2cfe8014&lang=scss&scoped=true\"\n\nimport exportComponent from \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-2cfe8014\"]])\n\nexport default __exports__","\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 \"/home/blacklight/git_tree/platypush/platypush/backend/http/webapp/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","