export const __rspack_esm_id=19718;export const __rspack_esm_ids=[19718];export const __webpack_modules__={91717(t,e,i){i.a(t,async function(t,a){try{i.r(e);var s=i(15697),c=i(358),n=i(57527),o=i(79224),r=i(49938),l=i(98747),h=i(80189),d=i(96682),u=t([l]);l=(u.then?(await u)():u)[0];class p extends n.WF{render(){if(!this._localize||!this.stateObj)return n.s6;const t=this.stateObj.state===d.Hh;return n.qy` <div class="actions"> <ha-button appearance="plain" size="s" .action=${"increment"} @click=${this._handleActionClick} .disabled=${t||Number(this.stateObj.state)===this.stateObj.attributes.maximum}> ${this._localize("ui.card.counter.actions.increment")} </ha-button> <ha-button appearance="plain" size="s" .action=${"decrement"} @click=${this._handleActionClick} .disabled=${t||Number(this.stateObj.state)===this.stateObj.attributes.minimum}> ${this._localize("ui.card.counter.actions.decrement")} </ha-button> <ha-button appearance="plain" size="s" .action=${"reset"} @click=${this._handleActionClick} .disabled=${t}> ${this._localize("ui.card.counter.actions.reset")} </ha-button> </div> `}_handleActionClick(t){const e=t.currentTarget.action;this._api.callService("counter",e,{entity_id:this.stateObj.entity_id})}}p.styles=n.AH`.actions{margin:var(--ha-space-2) 0;flex-wrap:wrap;justify-content:center;display:flex}`,(0,s.Cg)([(0,o.MZ)({attribute:!1})],p.prototype,"stateObj",void 0),(0,s.Cg)([(0,o.wk)(),(0,r.IW)()],p.prototype,"_localize",void 0),(0,s.Cg)([(0,o.wk)(),(0,c.Fg)({context:h.Ie,subscribe:!0})],p.prototype,"_api",void 0),p=(0,s.Cg)([(0,o.EM)("more-info-counter")],p),a()}catch(t){a(t)}})}};
//# sourceMappingURL=19718.899b7c40554601e8.js.map