"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[15375],{74583:function(t,i,e){e.a(t,async function(t,s){try{e.r(i);var r,n,o,a=e(28430),l=e(57567),c=e(25979),u=e(12463),v=e(16472),d=(e(62062),e(26099),e(15697)),f=e(358),h=e(57527),_=e(51209),m=e(10277),b=e(67259),p=e(1461),g=e(80189),y=t([p,m]);[p,m]=y.then?(await y)():y;var w=function(t){function i(){return(0,l.A)(this,i),(0,v.A)(this,i,arguments)}return(0,u.A)(i,t),(0,c.A)(i,[{key:"render",value:function(){var t=this;if(!this._i18n||!this.stateObj)return h.s6;var i=new Date(this.stateObj.attributes.next_rising),e=new Date(this.stateObj.attributes.next_setting),s=i>e?["set","ris"]:["ris","set"];return(0,h.qy)(r||(r=(0,a.A)([" <hr/> ",' <div class="row"> <div class="key"> ',' </div> <div class="value"> ',' </div> </div> <div class="row"> <div class="key"> ',' </div> <div class="value"> '," </div> </div> "])),s.map(function(s){return(0,h.qy)(n||(n=(0,a.A)([' <div class="row"> <div class="key"> <span>',"</span> <ha-relative-time .datetime=",'></ha-relative-time> </div> <div class="value"> '," </div> </div> "])),"ris"===s?t._i18n.localize("ui.dialogs.more_info_control.sun.rising"):t._i18n.localize("ui.dialogs.more_info_control.sun.setting"),"ris"===s?i:e,(0,m.fU)("ris"===s?i:e,t._i18n.locale,t._config))}),this._i18n.localize("ui.dialogs.more_info_control.sun.elevation"),this._formatters.formatEntityAttributeValue(this.stateObj,"elevation"),this._i18n.localize("ui.dialogs.more_info_control.sun.azimuth"),this._formatters.formatEntityAttributeValue(this.stateObj,"azimuth"))}}])}(h.WF);w.styles=(0,h.AH)(o||(o=(0,a.A)([".row{flex-direction:row;justify-content:space-between;margin:0;display:flex}ha-relative-time{white-space:nowrap;display:inline-block}hr{border-color:var(--divider-color);margin:var(--ha-space-4) 0;border-bottom:none}"]))),(0,d.Cg)([(0,_.MZ)({attribute:!1})],w.prototype,"stateObj",void 0),(0,d.Cg)([(0,_.wk)(),(0,f.Fg)({context:g.D5,subscribe:!0})],w.prototype,"_i18n",void 0),(0,d.Cg)([(0,_.wk)(),(0,f.Fg)({context:g.p0,subscribe:!0})],w.prototype,"_formatters",void 0),(0,d.Cg)([(0,_.wk)(),(0,f.Fg)({context:g.WF,subscribe:!0}),(0,b.p)({transformer:function(t){return t.config}})],w.prototype,"_config",void 0),w=(0,d.Cg)([(0,_.EM)("more-info-sun")],w),s()}catch(k){s(k)}})}}]);
//# sourceMappingURL=15375.9484033ff189f0fc.js.map