"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[290],{43483:function(e,n,t){t.d(n,{A:function(){return v}});var a=t(20641),l=t(90033),i=t(53751);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(66262);const r=(0,c.A)(d,[["render",u],["__scopeId","data-v-eff375b6"]]);var v=r},40290:function(e,n,t){t.r(n),t.d(n,{default:function(){return y}});var a=t(20641),l=t(90033);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(14897),p=t(73818),k=t(43483),b={name:"BinarySensor",components:{EntityIcon:p["default"],ToggleSwitch:k.A},mixins:[v["default"]]},f=t(66262);const h=(0,f.A)(b,[["render",r],["__scopeId","data-v-8baaebb4"]]);var y=h}}]);
//# sourceMappingURL=290.b0550724.js.map