"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[34246],{86002:function(t,n,i){i.a(t,async function(t,e){try{i.r(n);var o,a,c,s,r,h,u,l,d=i(36854),f=i(98117),g=i(28430),p=i(57567),y=i(25979),v=i(12463),_=i(16472),m=(i(62062),i(18111),i(61701),i(26099),i(3362),i(15697)),A=i(57527),b=i(51209),x=i(48612),k=i(6947),C=i(77811),w=i(51731),q=(i(75041),i(98747)),z=(i(34159),i(42239)),E=t([q]);q=(E.then?(await E)():E)[0];var H=function(t){function n(){return(0,p.A)(this,n),(0,_.A)(this,n,arguments)}return(0,v.A)(n,t),(0,y.A)(n,[{key:"getCardSize",value:function(){return 2}},{key:"setConfig",value:function(t){this._config=t}},{key:"render",value:function(){var t,n,i=this;return this.hass&&this._config?(0,A.qy)(o||(o=(0,g.A)([" <ha-card class=",'> <div class="container"> '," "," "," "," </div> </ha-card> "])),(0,x.H)({"content-only":null!==(t=this._config.content_only)&&void 0!==t&&t}),this._config.icon?(0,A.qy)(a||(a=(0,g.A)([' <ha-icon class="card-icon" .icon='," style=",";></ha-icon> "])),this._config.icon,(0,k.W)({color:this._config.icon_color?(0,w.MP)(this._config.icon_color):void 0})):A.s6,this._config.title?(0,A.qy)(c||(c=(0,g.A)(["<h1>","</h1>"])),this._config.title):A.s6,this._config.content?(0,A.qy)(s||(s=(0,g.A)(["<p>","</p>"])),this._config.content):A.s6,null!==(n=this._config.buttons)&&void 0!==n&&n.length?(0,A.qy)(r||(r=(0,g.A)([' <div class="buttons"> '," </div> "])),this._config.buttons.map(function(t,n){return(0,A.qy)(h||(h=(0,g.A)([" <ha-button .index="," @click="," appearance="," variant=","> "," "," </ha-button> "])),n,i._handleButtonAction,(0,C.J)(t.appearance),(0,C.J)(t.variant),t.icon?(0,A.qy)(u||(u=(0,g.A)(['<ha-icon slot="start" .icon=',"></ha-icon>"])),t.icon):A.s6,t.text)})):A.s6):A.s6}},{key:"_handleButtonAction",value:function(t){var n,i=t.currentTarget.index,e=null===(n=this._config)||void 0===n||null===(n=n.buttons)||void 0===n?void 0:n[i];this.hass&&e&&(0,z.$)(this,this.hass,{tap_action:e.tap_action},"tap")}}],[{key:"getConfigElement",value:(e=(0,f.A)((0,d.A)().m(function t(){return(0,d.A)().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,i.e(81761).then(i.bind(i,42520));case 1:return t.a(2,document.createElement("hui-empty-state-card-editor"))}},t)})),function(){return e.apply(this,arguments)})},{key:"getStubConfig",value:function(){return{type:"empty-state",title:"Welcome Home",content:"This is an empty state card."}}}]);var e}(A.WF);H.styles=(0,A.AH)(l||(l=(0,g.A)([":host{height:100%;display:block}ha-card{height:100%}.container{text-align:center;height:100%;padding:var(--ha-space-8) var(--ha-space-4);box-sizing:border-box;justify-content:center;align-items:center;gap:var(--ha-space-4);flex-direction:column;max-width:640px;margin:0 auto;display:flex}.card-icon{--mdc-icon-size:var(--ha-space-16);color:var(--secondary-text-color)}h1{font-size:var(--ha-font-size-xl);margin:0;font-weight:500}p{color:var(--secondary-text-color);margin:0}.buttons{justify-content:center;gap:var(--ha-space-2);flex-wrap:wrap;display:flex}.content-only{box-shadow:none;background:0 0;border:none}"]))),(0,m.Cg)([(0,b.MZ)({attribute:!1})],H.prototype,"hass",void 0),(0,m.Cg)([(0,b.wk)()],H.prototype,"_config",void 0),H=(0,m.Cg)([(0,b.EM)("hui-empty-state-card")],H),i.d(n,{HuiEmptyStateCard:function(){return H}}),e()}catch(M){e(M)}})}}]);
//# sourceMappingURL=34246.1cd0683fcdf5b7bc.js.map