"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8135],{6:function(e,n,t){t.d(n,{Z:function(){return f}});var a=t(6252),l=t(3577),i=t(9963),u=function(e){return(0,a.dD)("data-v-a6396ae8"),e=e(),(0,a.Cn)(),e},s=["checked"],o=u((function(){return(0,a._)("div",{class:"switch"},[(0,a._)("div",{class:"dot"})],-1)})),c={class:"label"};function r(e,n,t,u,r,d){return(0,a.wg)(),(0,a.iD)("div",{class:(0,l.C_)(["power-switch",{disabled:t.disabled}]),onClick:n[0]||(n[0]=(0,i.iM)((function(){return d.onInput&&d.onInput.apply(d,arguments)}),["stop"]))},[(0,a._)("input",{type:"checkbox",checked:t.value},null,8,s),(0,a._)("label",null,[o,(0,a._)("span",c,[(0,a.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=t(3744);const p=(0,v.Z)(d,[["render",r],["__scopeId","data-v-a6396ae8"]]);var f=p},8135:function(e,n,t){t.r(n),t.d(n,{default:function(){return y}});t(8309);var a=t(6252),l=t(3577),i={class:"entity sensor-container"},u={class:"head"},s={class:"icon"},o={class:"label"},c=["textContent"],r={key:0,class:"value-container"};function d(e,n,t,d,v,p){var f=(0,a.up)("EntityIcon"),h=(0,a.up)("ToggleSwitch");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a._)("div",u,[(0,a._)("div",s,[(0,a.Wm)(f,{entity:e.value,loading:e.loading,error:e.error},null,8,["entity","loading","error"])]),(0,a._)("div",o,[(0,a._)("div",{class:"name",textContent:(0,l.zw)(e.value.name)},null,8,c)]),null!=e.value.value?((0,a.wg)(),(0,a.iD)("div",r,[(0,a.Wm)(h,{value:e.value.value,disabled:!0},null,8,["value"])])):(0,a.kq)("",!0)])])}var v=t(7909),p=t(1706),f=t(6),h={name:"BinarySensor",components:{EntityIcon:p["default"],ToggleSwitch:f.Z},mixins:[v["default"]]},b=t(3744);const _=(0,b.Z)(h,[["render",d],["__scopeId","data-v-8baaebb4"]]);var y=_}}]);
//# sourceMappingURL=8135-legacy.e2055fdf.js.map