"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[9702],{11:function(e,n,t){t.d(n,{A:function(){return v}});var a=t(641),l=t(33),i=t(3751);const s=["checked","id"],o={class:"label"};function u(e,n,t,u,d,c){return(0,a.uX)(),(0,a.CE)("div",{class:(0,l.C4)(["power-switch",{disabled:t.disabled}]),onClick:n[0]||(n[0]=(0,i.D$)(((...e)=>c.onInput&&c.onInput(...e)),["stop"]))},[(0,a.Lk)("input",{type:"checkbox",checked:t.value,id:t.id},null,8,s),(0,a.Lk)("label",null,[n[1]||(n[1]=(0,a.Lk)("div",{class:"switch"},[(0,a.Lk)("div",{class:"dot"})],-1)),(0,a.Lk)("span",o,[(0,a.RG)(e.$slots,"default",{},void 0,!0)])])],2)}var d={name:"ToggleSwitch",emits:["input"],props:{id:{type:String},value:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},methods:{onInput(e){if(this.disabled)return!1;this.$emit("input",e)}}},c=t(6262);const r=(0,c.A)(d,[["render",u],["__scopeId","data-v-eff375b6"]]);var v=r},9702:function(e,n,t){t.r(n),t.d(n,{default:function(){return y}});var a=t(641),l=t(33);const i={class:"entity sensor-container"},s={class:"head"},o={class:"icon"},u={class:"label"},d=["textContent"],c={key:0,class:"value-container"};function r(e,n,t,r,v,p){const k=(0,a.g2)("EntityIcon"),b=(0,a.g2)("ToggleSwitch");return(0,a.uX)(),(0,a.CE)("div",i,[(0,a.Lk)("div",s,[(0,a.Lk)("div",o,[(0,a.bF)(k,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,a.Lk)("div",u,[(0,a.Lk)("div",{class:"name",textContent:(0,l.v_)(e.value.name)},null,8,d)]),null!=e.value.value?((0,a.uX)(),(0,a.CE)("div",c,[(0,a.bF)(b,{value:e.value.value,disabled:!0},null,8,["value"])])):(0,a.Q3)("",!0)])])}var v=t(4897),p=t(1029),k=t(11),b={name:"BinarySensor",components:{EntityIcon:p["default"],ToggleSwitch:k.A},mixins:[v["default"]]},f=t(6262);const h=(0,f.A)(b,[["render",r],["__scopeId","data-v-8baaebb4"]]);var y=h}}]);
//# sourceMappingURL=9702.bc986def.js.map