"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[16443],{24438:function(t,e,i){i.a(t,async function(t,a){try{i.r(e);var s,r,n=i(28430),o=i(57567),c=i(25979),l=i(12463),u=i(16472),h=i(15697),d=i(358),p=i(57527),v=i(51209),f=i(49938),b=i(98747),_=i(1461),y=i(80189),g=i(46602),m=i(96682),k=t([b,_]);[b,_]=k.then?(await k)():k;var A=function(t){function e(){return(0,o.A)(this,e),(0,u.A)(this,e,arguments)}return(0,l.A)(e,t),(0,c.A)(e,[{key:"render",value:function(){return this._localize&&this.stateObj?(0,p.qy)(s||(s=(0,n.A)([' <hr/> <div class="flex"> <div>',":</div> <ha-relative-time .datetime=",' capitalize></ha-relative-time> </div> <div class="actions"> <ha-button appearance="plain" size="s" @click='," .disabled=","> "," </ha-button> </div> "])),this._localize("ui.card.automation.last_triggered"),this.stateObj.attributes.last_triggered,this._runActions,this.stateObj.state===m.Hh,this._localize("ui.card.automation.trigger")):p.s6}},{key:"_runActions",value:function(){(0,g.lB)(this._api,this.stateObj.entity_id)}}])}(p.WF);A.styles=(0,p.AH)(r||(r=(0,n.A)([".flex{justify-content:space-between;display:flex}.actions{margin:var(--ha-space-2) 0;flex-wrap:wrap;justify-content:center;display:flex}hr{border-color:var(--divider-color);margin:var(--ha-space-4) 0;border-bottom:none}"]))),(0,h.Cg)([(0,v.MZ)({attribute:!1})],A.prototype,"stateObj",void 0),(0,h.Cg)([(0,v.wk)(),(0,f.IW)()],A.prototype,"_localize",void 0),(0,h.Cg)([(0,v.wk)(),(0,d.Fg)({context:y.Ie,subscribe:!0})],A.prototype,"_api",void 0),A=(0,h.Cg)([(0,v.EM)("more-info-automation")],A),a()}catch(j){a(j)}})}}]);
//# sourceMappingURL=16443.0e508b714020a69a.js.map