export const __rspack_esm_id="81228";export const __rspack_esm_ids=["81228"];export const __webpack_modules__={88615(e,t,r){r.a(e,async function(e,s){try{r.r(t),r.d(t,{WaterViewStrategy:()=>p});r(44114),r(18111),r(13579);var n=r(62826),o=r(96196),c=r(97735),a=r(38114),i=r(4203),_=r(7936),l=e([i,a]);[i,a]=l.then?(await l)():l;class p extends o.mN{static async generate(e,t){const r=e.collection_key||i.DEFAULT_ENERGY_COLLECTION_KEY,s={type:"sections",max_columns:3,sections:[{type:"grid",cards:[],column_span:3}],footer:{card:{type:"energy-date-selection",collection_key:r,opening_direction:"right",vertical_opening_direction:"up"}}},n=(0,a.tb)(t,{key:r});n.prefs||await n.refresh();const o=n.prefs,c=o?.energy_sources.some(e=>"water"===e.type),l=o?.device_consumption_water?.length;if(!o||!l&&!c)return s;const p=s.sections[0];if(p.cards.push({type:"energy-compare",collection_key:r}),c&&(p.cards.push({title:t.localize("ui.panel.energy.cards.energy_water_graph_title"),type:"energy-water-graph",collection_key:r,grid_options:{columns:24}}),p.cards.push({title:t.localize("ui.panel.energy.cards.energy_sources_table_title"),type:"energy-sources-table",collection_key:r,types:["water"],grid_options:{columns:12}})),l){const e=(0,_.V)(o.device_consumption_water,t,e=>e.stat_consumption);p.cards.push({title:t.localize("ui.panel.energy.cards.water_sankey_title"),type:"water-sankey",collection_key:r,group_by_floor:e,group_by_area:e,grid_options:{columns:24}})}return s}}p=(0,n.Cg)([(0,c.EM)("water-view-strategy")],p),s()}catch(e){s(e)}})}};
//# sourceMappingURL=81228.722db842dcb6e23b.js.map