"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["39791"],{4178:function(t,s,i){i.a(t,async function(t,e){try{i.r(s);var a,r,n,o=i(72153),l=i(44734),h=i(43080),c=i(69683),u=i(6454),v=(i(62062),i(18111),i(61701),i(26099),i(40445)),d=i(96196),f=i(77845),b=i(30162),m=i(36158),p=t([m,b]);[m,b]=p.then?(await p)():p;var y=function(t){function s(){return(0,l.A)(this,s),(0,c.A)(this,s,arguments)}return(0,u.A)(s,t),(0,h.A)(s,[{key:"render",value:function(){var t=this;if(!this.hass||!this.stateObj)return d.s6;var s=new Date(this.stateObj.attributes.next_rising),i=new Date(this.stateObj.attributes.next_setting),e=s>i?["set","ris"]:["ris","set"];return(0,d.qy)(a||(a=(0,o.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> "])),e.map(function(e){return(0,d.qy)(r||(r=(0,o.A)([' <div class="row"> <div class="key"> <span>','</span> <ha-relative-time .hass="','" .datetime="','"></ha-relative-time> </div> <div class="value"> '," </div> </div> "])),"ris"===e?t.hass.localize("ui.dialogs.more_info_control.sun.rising"):t.hass.localize("ui.dialogs.more_info_control.sun.setting"),t.hass,"ris"===e?s:i,(0,b.fU)("ris"===e?s:i,t.hass.locale,t.hass.config))}),this.hass.localize("ui.dialogs.more_info_control.sun.elevation"),this.hass.formatEntityAttributeValue(this.stateObj,"elevation"),this.hass.localize("ui.dialogs.more_info_control.sun.azimuth"),this.hass.formatEntityAttributeValue(this.stateObj,"azimuth"))}}])}(d.WF);y.styles=(0,d.AH)(n||(n=(0,o.A)([".row{margin:0;display:flex;flex-direction:row;justify-content:space-between}ha-relative-time{display:inline-block;white-space:nowrap}hr{border-color:var(--divider-color);border-bottom:none;margin:var(--ha-space-4) 0}"]))),(0,v.Cg)([(0,f.MZ)({attribute:!1})],y.prototype,"hass",void 0),(0,v.Cg)([(0,f.MZ)({attribute:!1})],y.prototype,"stateObj",void 0),y=(0,v.Cg)([(0,f.EM)("more-info-sun")],y),e()}catch(g){e(g)}})}}]);
//# sourceMappingURL=39791.47bdb3313ccfd0c8.js.map