"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["60069"],{40932:function(t,a,e){e.a(t,async function(t,i){try{e.r(a);var s,n,c=e(72153),r=e(44734),o=e(43080),h=e(69683),l=e(6454),u=(e(2892),e(40445)),b=e(96196),d=e(77845),p=e(18350),m=e(22675),f=t([p]);p=(f.then?(await f)():f)[0];var k=function(t){function a(){return(0,r.A)(this,a),(0,h.A)(this,a,arguments)}return(0,l.A)(a,t),(0,o.A)(a,[{key:"render",value:function(){if(!this.hass||!this.stateObj)return b.s6;var t=(0,m.g0)(this.stateObj.state);return(0,b.qy)(s||(s=(0,c.A)([' <div class="actions"> <ha-button appearance="plain" size="small" .action="','" @click="','" .disabled="','"> ',' </ha-button> <ha-button appearance="plain" size="small" .action="','" @click="','" .disabled="','"> ',' </ha-button> <ha-button appearance="plain" size="small" .action="','" @click="','" .disabled="','"> '," </ha-button> </div> "])),"increment",this._handleActionClick,t||Number(this.stateObj.state)===this.stateObj.attributes.maximum,this.hass.localize("ui.card.counter.actions.increment"),"decrement",this._handleActionClick,t||Number(this.stateObj.state)===this.stateObj.attributes.minimum,this.hass.localize("ui.card.counter.actions.decrement"),"reset",this._handleActionClick,t,this.hass.localize("ui.card.counter.actions.reset"))}},{key:"_handleActionClick",value:function(t){var a=t.currentTarget.action;this.hass.callService("counter",a,{entity_id:this.stateObj.entity_id})}}])}(b.WF);k.styles=(0,b.AH)(n||(n=(0,c.A)([".actions{margin:var(--ha-space-2) 0;display:flex;flex-wrap:wrap;justify-content:center}"]))),(0,u.Cg)([(0,d.MZ)({attribute:!1})],k.prototype,"hass",void 0),(0,u.Cg)([(0,d.MZ)({attribute:!1})],k.prototype,"stateObj",void 0),k=(0,u.Cg)([(0,d.EM)("more-info-counter")],k),i()}catch(v){i(v)}})}}]);
//# sourceMappingURL=60069.2bc9298fa2a20fcc.js.map