platypush/platypush/backend/http/webapp/dist/static/js/2844-legacy.b3683bc2.js

2 lines
10 KiB
JavaScript
Raw Normal View History

2022-10-07 11:12:13 +02:00
"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[2844],{6:function(e,t,n){n.d(t,{Z:function(){return w}});var i=n(6252),s=n(3577),c=n(9963),l=function(e){return(0,i.dD)("data-v-a6396ae8"),e=e(),(0,i.Cn)(),e},a=["checked"],o=l((function(){return(0,i._)("div",{class:"switch"},[(0,i._)("div",{class:"dot"})],-1)})),u={class:"label"};function r(e,t,n,l,r,d){return(0,i.wg)(),(0,i.iD)("div",{class:(0,s.C_)(["power-switch",{disabled:n.disabled}]),onClick:t[0]||(t[0]=(0,c.iM)((function(){return d.onInput&&d.onInput.apply(d,arguments)}),["stop"]))},[(0,i._)("input",{type:"checkbox",checked:n.value},null,8,a),(0,i._)("label",null,[o,(0,i._)("span",u,[(0,i.WI)(e.$slots,"default",{},void 0,!0)])])],2)}var d={name:"ToggleSwitch",emits:["input"],props:{value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput:function(e){if(this.disabled)return!1;this.$emit("input",e)}}},v=n(3744);const f=(0,v.Z)(d,[["render",r],["__scopeId","data-v-a6396ae8"]]);var w=f},2844:function(e,t,n){n.r(t),n.d(t,{default:function(){return ve}});n(7941),n(8309),n(9600);var i=n(6252),s=n(3577),c=function(e){return(0,i.dD)("data-v-5d844500"),e=e(),(0,i.Cn)(),e},l={class:"switches switchbot-switches"},a={key:1,class:"no-content"},o={key:0,class:"switch-info"},u={class:"row"},r=c((function(){return(0,i._)("div",{class:"name"},"Name",-1)})),d=["textContent"],v={class:"row"},f=c((function(){return(0,i._)("div",{class:"name"},"On",-1)})),w=["textContent"],g={key:0,class:"row"},p=c((function(){return(0,i._)("div",{class:"name"},"Reachable",-1)})),h=["textContent"],m={key:1,class:"row"},D=c((function(){return(0,i._)("div",{class:"name"},"Brightness",-1)})),k=["textContent"],_={key:2,class:"row"},x=c((function(){return(0,i._)("div",{class:"name"},"Color Temperature",-1)})),C=["textContent"],y={key:3,class:"row"},q=c((function(){return(0,i._)("div",{class:"name"},"Hue",-1)})),b=["textContent"],I={key:4,class:"row"},z=c((function(){return(0,i._)("div",{class:"name"},"Saturation",-1)})),Z=["textContent"],S={key:5,class:"row"},T=c((function(){return(0,i._)("div",{class:"name"},"XY",-1)})),R=["textContent"],M={key:6,class:"row"},j=c((function(){return(0,i._)("div",{class:"name"},"Product",-1)})),B=["textContent"],N={key:7,class:"row"},L=c((function(){return(0,i._)("div",{class:"name"},"Manufacturer",-1)})),$=["textContent"],H={key:8,class:"row"},O=c((function(){return(0,i._)("div",{class:"name"},"Type",-1)})),E=["textContent"],P={key:9,class:"row"},W=c((function(){return(0,i._)("div",{class:"name"},"ID on network",-1)})),U=["textContent"],Y={key:10,class:"row"},K=c((function(){return(0,i._)("div",{class:"name"},"Unique ID",-1)})),X=["textContent"],A={key:11,class:"row"},F=c((function(){return(0,i._)("div",{class:"name"},"Software version",-1)})),G=["textContent"],J={key:12,class:"row"},Q=c((function(){return(0,i._)("div",{class:"name"},"Last software update",-1)})),V=["textContent"],ee={key:13,class:"row"},te=c((function(){return(0,i._)("div",{class:"name"},"Update state",-1)})),ne=["textContent"];function ie(e,t,n,c,ie,se){var ce=(0,i.up)("Loading"),le=(0,i.up)("Switch"),ae=(0,i.up)("Modal");return(0,i.wg)(),(0,i.iD)("div",l,[e.loading?((0,i.wg)(),(0,i.j4)(ce,{key:0})):Object.keys(e.devices).length?(0,i.kq)("",!0):((0,i.wg)(),(0,i.iD)("div",a,"No Hue lights found.")),((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(e.devices,(function(t,n){return(0,i.wg)(),(0,i.j4)(le,{loading:e.loading,name:n,state:t.on,onToggle:function(e){return se.toggle(n)},key:n,"has-info":!0,onInfo:function(t){e.selectedDevice=n,e.$refs.switchInfoModal.show()}},null,8,["loading","name","state","onToggle","onInfo"])})),128)),(0,i.Wm)(ae,{title:"Device Info",ref:"switchInfoModal"},{default:(0,i.w5)((function(){var t,n;return[e.selectedDevice?((0,i.wg)(),(0,i.iD)("div",o,[(0,i._)("div",u,[r,(0,i._)("div",{class:"value",textContent:(0,s.zw)(e.devices[e.selectedDevice].name)},null,8,d)]),(0,i._)("div",v,[f,(0,i._)("div",{class:"value",textContent:(0,s.zw)(e.devices[e.selectedDevice].on)},null,8,w)]),null!=e.devices[e.selectedDevice].reachable?((0,i.
//# sourceMappingURL=2844-legacy.b3683bc2.js.map