platypush/platypush/backend/http/webapp/dist/static/js/2844.e8c1790f.js

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