"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["39791"],{4178:function(s,t,i){i.a(s,async function(s,e){try{i.r(t);i(18111),i(61701);var a=i(40445),o=i(96196),r=i(77845),n=i(30162),l=i(36158),h=s([l,n]);[l,n]=h.then?(await h)():h;let c,d,v,u=s=>s;class b extends o.WF{render(){if(!this.hass||!this.stateObj)return o.s6;const s=new Date(this.stateObj.attributes.next_rising),t=new Date(this.stateObj.attributes.next_setting),i=s>t?["set","ris"]:["ris","set"];return(0,o.qy)(c||(c=u` <hr> ${0} <div class="row"> <div class="key"> ${0} </div> <div class="value"> ${0} </div> </div> <div class="row"> <div class="key"> ${0} </div> <div class="value"> ${0} </div> </div> `),i.map(i=>(0,o.qy)(d||(d=u` <div class="row"> <div class="key"> <span>${0}</span> <ha-relative-time .hass="${0}" .datetime="${0}"></ha-relative-time> </div> <div class="value"> ${0} </div> </div> `),"ris"===i?this.hass.localize("ui.dialogs.more_info_control.sun.rising"):this.hass.localize("ui.dialogs.more_info_control.sun.setting"),this.hass,"ris"===i?s:t,(0,n.fU)("ris"===i?s:t,this.hass.locale,this.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"))}}b.styles=(0,o.AH)(v||(v=u`.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,a.Cg)([(0,r.MZ)({attribute:!1})],b.prototype,"hass",void 0),(0,a.Cg)([(0,r.MZ)({attribute:!1})],b.prototype,"stateObj",void 0),b=(0,a.Cg)([(0,r.EM)("more-info-sun")],b),e()}catch(c){e(c)}})}}]);
//# sourceMappingURL=39791.8917e095323b0791.js.map