export const __rspack_esm_id=76837;export const __rspack_esm_ids=[76837];export const __webpack_modules__={78468(e,t,o){o.a(e,async function(e,s){try{o.r(t);o(44114),o(18111),o(7588);var r=o(15697),a=o(57527),c=o(79224),n=o(94465),i=o(39715),p=o(83989),_=e([n]);n=(_.then?(await _)():_)[0];class l extends a.mN{static async generate(e,t){const o=e.collection_key||n.e6,s=e.hidden_cards,r=(0,n.tb)(t,{key:o,midnightRollover:!0});r.prefs||await r.refresh();const a=r.prefs,c={type:"grid",cards:[]},_=[],l={type:"sections",sections:[c]},y=!!a&&(0,i.K9)(a),u=!!a&&(0,i.rU)(a),w=!!a&&(0,i.$s)(a),d=!!a&&(0,i.tc)(a),g=!!a&&(0,i.NR)(a);if(!(a&&(y||u||w||d||g)))return l;if(y&&_.push({type:"power-total",collection_key:o}),(0,i.BL)("now","power-sources-graph",a,s)&&c.cards.push({title:t.localize("ui.panel.energy.cards.power_sources_graph_title"),type:"power-sources-graph",collection_key:o,grid_options:{columns:36}}),g&&_.push({type:"gas-total",collection_key:o}),d&&_.push({type:"water-total",collection_key:o}),a.energy_sources.forEach(e=>{"battery"===e.type&&e.stat_soc&&_.push({type:"entity",entity:e.stat_soc})}),(0,i.BL)("now","power-sankey",a,s)){const e=(0,p.V)(a.device_consumption,t,e=>e.stat_rate);c.cards.push({title:t.localize("ui.panel.energy.cards.power_sankey_title"),type:"power-sankey",collection_key:o,group_by_floor:e,group_by_area:e,grid_options:{columns:36}})}if((0,i.BL)("now","water-flow-sankey",a,s)){const e=(0,p.V)(a.device_consumption_water,t,e=>e.stat_rate);c.cards.push({title:t.localize("ui.panel.energy.cards.water_flow_sankey_title"),type:"water-flow-sankey",collection_key:o,group_by_floor:e,group_by_area:e,grid_options:{columns:36}})}return _.length&&(l.badges=_),l}}l.registryDependencies=[],l=(0,r.Cg)([(0,c.EM)("power-view-strategy")],l),o.d(t,{PowerViewStrategy:()=>l}),s()}catch(e){s(e)}})}};
//# sourceMappingURL=76837.ac246de897254276.js.map