export const __rspack_esm_id=46483;export const __rspack_esm_ids=[46483];export const __webpack_modules__={45534(e,t,r){r.a(e,async function(e,s){try{r.r(t);r(44114);var n=r(15697),a=r(57527),c=r(79224),o=r(94465),i=r(39715),_=r(83989),l=e([o]);o=(l.then?(await l)():l)[0];class p extends a.mN{static async generate(e,t){const r=e.collection_key||o.e6,s=e.hidden_cards,n={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"}}},a=(0,o.tb)(t,{key:r});a.prefs||await a.refresh();const c=a.prefs;if(!c||!(0,i.F)(c)&&!(0,i.$S)(c))return n;const l=n.sections[0];if(l.cards.push({type:"energy-compare",collection_key:r,grid_options:{columns:36}}),(0,i.BL)("water","energy-water-graph",c,s)&&l.cards.push({title:t.localize("ui.panel.energy.cards.energy_water_graph_title"),type:"energy-water-graph",collection_key:r,grid_options:{columns:24}}),(0,i.BL)("water","energy-sources-table",c,s)&&l.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}}),(0,i.BL)("water","water-sankey",c,s)){const e=(0,_.V)(c.device_consumption_water,t,e=>e.stat_consumption);l.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 n}}p.registryDependencies=[],p=(0,n.Cg)([(0,c.EM)("water-view-strategy")],p),r.d(t,{WaterViewStrategy:()=>p}),s()}catch(e){s(e)}})}};
//# sourceMappingURL=46483.a9aa85849092eab4.js.map