PageSourceSearch

https://ems.energyflux.rs/chunk-DSMT65QH.js

js energyflux.rs collected 2026-10-07 19:33:53 UTC 60,424 bytes, 1 lines download raw bytes

1import{a as Cn,b as un,c as gn,d as _n,e as bn}from"./chunk-55JJG2NE.js";import{b as fn}from"./chunk-4CV5R4V3.js";import{a as yn}from"./chunk-GYNXP526.js";import{a as Ne}from"./chunk-EHYDQBLZ.js";import{a as hn}from"./chunk-CN24OSRV.js";import{a as pe}from"./chunk-IM6ZL4UC.js";import{A as en,B as tn,C as nn,D as on,E as an,F as rn,G as ln,H as cn,I as pn,J as sn,K as mn,L as dn,a as Nt,b as Vt,e as Rt,f as Lt,g as Yt,h as Ht,i as $t,j as jt,l as Gt,m as Wt,n as Kt,o as Xe,p as qe,q as Je,r as Qt,s as K,t as zt,v as Ut,w as Xt,x as qt,y as Jt,z as Zt}from"./chunk-ZKFMPDOQ.js";import{a as Z,c as $,e as Q}from"./chunk-6HRQEANQ.js";import"./chunk-4DXVOIK3.js";import"./chunk-GFNO4A6C.js";import{a as Fe}from"./chunk-OF4KCM67.js";import{a as vt}from"./chunk-M4OHE2OP.js";import"./chunk-2SXDWWHV.js";import{a as Ft}from"./chunk-V6ZSQF2L.js";import{a as It,c as kt}from"./chunk-J24CX7CF.js";import"./chunk-IFES75AM.js";import{d as Et}from"./chunk-RWQQKWPV.js";import{a as Bt}from"./chunk-A4IJFMRW.js";import{b as xt}from"./chunk-5IZNP6RZ.js";import{a as St}from"./chunk-BTDF6QWU.js";import"./chunk-TR4NMQRW.js";import{a as ke}from"./chunk-S2HVI7WY.js";import"./chunk-VTS6UDNS.js";import{a as Pe,b as Ae,c as Ee}from"./chunk-544KYVTK.js";import{a as Be,b as Ie}from"./chunk-IJ4US7CE.js";import{a as H}from"./chunk-5KB6V3SH.js";import"./chunk-GZ6AGOJT.js";import"./chunk-W6UTIPOX.js";import{a as Ue}from"./chunk-LD5BCEMS.js";import{c as Pt}from"./chunk-OPJRSLW2.js";import"./chunk-GQG5BUKO.js";import"./chunk-2SPFR5PL.js";import"./chunk-QPY272IU.js";import"./chunk-WYLK3RKO.js";import"./chunk-ZCMGSAOF.js";import{o as Ot,p as wt,q as Tt,t as Dt}from"./chunk-5J3E6QFF.js";import"./chunk-6ZAAVXXX.js";import"./chunk-K36KUSCJ.js";import{j as Se}from"./chunk-UF3HR5R3.js";import{B as De,g as dt,h as yt,j as ht,ja as At,l as Ct,n as ut,r as gt,s as _t,y as ft}from"./chunk-VFJUK75Y.js";import{c as Y,d as I}from"./chunk-GVEDVGYP.js";import{p as le}from"./chunk-5BFOGE3O.js";import{b as ce}from"./chunk-TPNTKKTY.js";import{A as bt,B as Mt,C as ve}from"./chunk-2PFWSOZQ.js";import{e as we,f as Te}from"./chunk-SU6SLJ3Z.js";import"./chunk-FJEH356U.js";import"./chunk-5GRO6X4P.js";import"./chunk-A44IT3W5.js";import{a as re}from"./chunk-GK3KM6HO.js";import{f as pt,i as st,j as xe,k as mt,r as Oe}from"./chunk-IQIR4NTD.js";import"./chunk-X53JTFRS.js";import{$b as C,$c as J,Ad as Me,Ba as M,Ca as x,Cb as j,Da as F,Ea as at,I as de,Ib as _,Ic as ie,Ja as O,Lc as ae,Nc as u,Ob as A,Oc as S,Pc as G,Qa as ue,Qc as ze,Sa as ne,Yb as ye,Yc as rt,_b as h,_c as _e,ad as fe,bc as T,cc as D,cd as lt,dc as v,ec as c,ed as ct,fc as l,gc as r,gd as m,hc as y,hd as d,lc as X,ld as L,mc as q,nc as oe,oa as he,oc as B,qd as be,rb as ge,sa as Ce,ta as P,tb as a,wc as g,x as it,yc as s}from"./chunk-FGJPAVU3.js";import"./chunk-5JJ6SBZ6.js";var Mn=[{translationKey:"january",monthIndex:0},{translationKey:"february",monthIndex:1},{translationKey:"march",monthIndex:2},{translationKey:"april",monthIndex:3},{translationKey:"may",monthIndex:4},{translationKey:"june",monthIndex:5},{translationKey:"july",monthIndex:6},{translationKey:"august",monthIndex:7},{translationKey:"september",monthIndex:8},{translationKey:"october",monthIndex:9},{translationKey:"november",monthIndex:10},{translationKey:"december",monthIndex:11}];function In(n,t){if(n&1&&(l(0,"mat-option",6),u(1),r()),n&2){let e=t.$implicit;c("value",e),a(),G(" ",e," ")}}function kn(n,t){if(n&1&&(l(0,"mat-form-field",4)(1,"mat-select",5),D(2,In,2,2,"mat-option",6,T),r()()),n&2){let e=s();a(2),v(e.yearOptions)}}function Fn(n,t){if(n&1&&(l(0,"mat-option",6),u(1),m(2,"translate"),r()),n&2){let e=t.$implicit;c("value",e.monthIndex),a(),G(" ",d(2,2,"global.months."+e.translationKey)," ")}}function Nn(n,t){if(n&1&&(l(0,"mat-form-field",7)(1,"mat-select",8),D(2,Fn,3,4,"mat-option",6,T),r()()),n&2){let e=s();a(2),v(e.monthOptions)}}function Vn(n,t){if(n&1){let e=B();l(0,"button",9),g("click",function(){M(e);let i=s();return x(i.openYearSelector())}),u(1),l(2,"mat-icon"),u(3,"expand_more"),r()()}if(n&2){let e=s();a(),G(" ",e.selectedYear," ")}}function Rn(n,t){if(n&1){let e=B();l(0,"button",9),g("click",function(){M(e);let i=s();return x(i.openMonthSelector())}),u(1),l(2,"mat-icon"),u(3,"expand_more"),r()()}if(n&2){let e=s();a(),G(" ",e.monthShortLabel," ")}}var Ve=class n{constructor(){this._fb=P(ft);this.bottomSheet=P(Pt);this.translate=P(Y);this.selectedYear=null;this.selectedMonth=null;this.yearOptions=[];this.monthOptions=[];this.yearSelect=new O;this.monthSelect=new O;this.selectForm=this._fb.group({year:[this.selectedYear],month:[this.selectedMonth]});this.selectForm.controls.year.valueChanges.pipe(de(()=>this.selectForm.valid),de(t=>t!==null),re()).subscribe(t=>this.yearSelect.emit(t)),this.selectForm.controls.month.valueChanges.pipe(de(()=>this.selectForm.valid),de(t=>t!==null),re()).subscribe(t=>this.monthSelect.emit(t))}get monthShortLabel(){let t=this.monthOptions.find(e=>e.monthIndex===this.selectedMonth);return t?this.translate.instant("global.months."+t.translationKey).substring(0,3):""}ngOnChanges(t){(t.selectedYear||t.selectedMonth)&&this.updateSelectForm()}updateSelectForm(){this.selectForm?.setValue({year:this.selectedYear,month:this.selectedMonth},{emitEvent:!1})}openYearSelector(){this.bottomSheet.open(Ue,{data:{items:this.yearOptions,selectedItem:this.selectedYear,getLabel:t=>t.toString()}}).afterDismissed().subscribe(t=>{t&&this.yearSelect.emit(t)})}openMonthSelector(){this.bottomSheet.open(Ue,{data:{items:this.monthOptions,selectedItem:this.monthOptions.find(t=>t.monthIndex===this.selectedMonth)||null,getLabel:t=>this.translate.instant("global.months."+t.translationKey)}}).afterDismissed().subscribe(t=>{t&&this.monthSelect.emit(t.monthIndex)})}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=_({type:n,selectors:[["app-year-month-select"]],inputs:{selectedYear:"selectedYear",selectedMonth:"selectedMonth",yearOptions:"yearOptions",monthOptions:"monthOptions"},outputs:{yearSelect:"yearSelect",monthSelect:"monthSelect"},features:[ne],decls:5,vars:5,consts:[[3,"formGroup"],["class","years-select","floatLabel","never",4,"ngIfMediaQuery"],["class","month-select","floatLabel","never",4,"ngIfMediaQuery"],["mat-button","","class","mobile-selector",3,"click",4,"ngIfMediaQuery"],["floatLabel","never",1,"years-select"],["formControlName","year"],[3,"value"],["floatLabel","never",1,"month-select"],["formControlName","month"],["mat-button","",1,"mobile-selector",3,"click"]],template:function(e,o){e&1&&(l(0,"form",0),A(1,kn,4,0,"mat-form-field",1)(2,Nn,4,0,"mat-form-field",2)(3,Vn,4,1,"button",3)(4,Rn,4,1,"button",3),r()),e&2&&(c("formGroup",o.selectForm),a(),c("ngIfMediaQuery","gt-xs"),a(),c("ngIfMediaQuery","gt-xs"),a(),c("ngIfMediaQuery","lt-sm"),a(),c("ngIfMediaQuery","lt-sm"))},dependencies:[De,ut,dt,yt,_t,gt,ce,ve,Mt,Bt,At,Te,we,kt,It,Et,I],styles:["[_nghost-%COMP%]{display:flex;flex-direction:row}[_nghost-%COMP%]   form[_ngcontent-%COMP%]{display:flex;gap:8px}@media screen and (max-width:959px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]{gap:4px}}[_nghost-%COMP%]   .mobile-selector[_ngcontent-%COMP%]{padding:4px 8px;min-width:60px;border-radius:8px;background-color:#ffffff1a;color:#fff;display:flex;align-items:center;gap:4px;font-size:.875rem;line-height:1.2}[_nghost-%COMP%]   .mobile-selector[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}[_nghost-%COMP%]   .years-select[_ngcontent-%COMP%]{margin-right:8px}@media screen and (max-width:959px){[_nghost-%COMP%]   .years-select[_ngcontent-%COMP%]{margin-right:0}}[_nghost-%COMP%]   .years-select[_ngcontent-%COMP%], [_nghost-%COMP%]   .month-select[_ngcontent-%COMP%]{min-width:120px}@media screen and (max-width:599px){[_nghost-%COMP%]   .years-select[_ngcontent-%COMP%], [_nghost-%COMP%]   .month-select[_ngcontent-%COMP%]{width:70px}}[_nghost-%COMP%]     mat-form-field .mat-select-min-line{color:#fff}[_nghost-%COMP%]     mat-form-field .mat-select-arrow{color:#fff}[_nghost-%COMP%]     mat-form-field .mat-form-field-underline{background-color:#fff!important}[_nghost-%COMP%]     mat-form-field .mat-form-field-underline .mat-form-field-ripple{background-color:#fff!important}[_nghost-%COMP%]     mat-form-field .mat-form-field-wrapper{padding-bottom:.5em}[_nghost-%COMP%]     mat-form-field .mat-form-field-infix{padding:.5em 0!important;border-top:.5em solid transparent}@media screen and (max-width:959px){[_nghost-%COMP%]     mat-form-field .mat-form-field-wrapper{padding-bottom:.25em}[_nghost-%COMP%]     mat-form-field .mat-form-field-infix{padding:.25em 0!important;border-top:.25em solid transparent}[_nghost-%COMP%]     mat-form-field .mat-select-value, [_nghost-%COMP%]     mat-form-field .mat-select-value-text{font-size:.875rem!important}}@media screen and (max-width:599px){[_nghost-%COMP%]     mat-form-field .mat-form-field-wrapper{padding-bottom:.2em}[_nghost-%COMP%]     mat-form-field .mat-form-field-infix{padding:.2em 0!important;border-top:.2em solid transparent}[_nghost-%COMP%]     mat-form-field .mat-select-value, [_nghost-%COMP%]     mat-form-field .mat-select-value-text{font-size:.75rem!important}[_nghost-%COMP%]     mat-form-field .mat-select-arrow{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:4px solid}}"],changeDetection:0})}};function Ln(n,t){if(n&1&&(l(0,"span",2),u(1),m(2,"translate"),r(),l(3,"span",3),u(4),m(5,"translate"),r()),n&2){let e=s().$implicit,o=s();a(),S(d(2,2,o.capacityTypesMetadata[e].translationPath)),a(3),S(d(5,4,o.capacityTypesMetadata[e].translationPath+".short"))}}function Yn(n,t){if(n&1&&h(0,Ln,6,6),n&2){let e=t.$implicit;C(e?0:-1)}}var Re=class n{constructor(){this.selectedCapacityType="ESTIMATED_NET_TRANSFER_CAPACITY";this.capacityTypeSelected=new O;this.capacityTypesMetadata=K;this.capacityTypeOptions=["ESTIMATED_NET_TRANSFER_CAPACITY","ALLOCATED_CAPACITY","OF
1FERED_CAPACITY","REQUESTED_CAPACITY"]}onOptionSelect(t){this.capacityTypeSelected.emit(t)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=_({type:n,selectors:[["app-capacity-type-selector"]],inputs:{selectedCapacityType:"selectedCapacityType"},outputs:{capacityTypeSelected:"capacityTypeSelected"},decls:3,vars:2,consts:[["toggleOption",""],[3,"optionSelect","toggleOptions","selectedOption"],[1,"button-text"],[1,"button-text-short"]],template:function(e,o){e&1&&(l(0,"app-generic-button-toggle",1),g("optionSelect",function(p){return o.onOptionSelect(p)}),A(1,Yn,1,1,"ng-template",null,0,L),r()),e&2&&c("toggleOptions",o.capacityTypeOptions)("selectedOption",o.selectedCapacityType)},dependencies:[yn,I],styles:["[_nghost-%COMP%]{width:100%;display:flex;justify-content:center}[_nghost-%COMP%]   .button-text-short[_ngcontent-%COMP%]{display:none}@media screen and (max-width:400px){[_nghost-%COMP%]   .button-text[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .button-text-short[_ngcontent-%COMP%]{display:initial}}"]})}};var xn=["DAILY","WEEKLY","MONTHLY","YEARLY","INTRADAY"],On=["BORDER","AGREEMENT_TYPE"],wn=["TOTAL","IMPORT","EXPORT"],Tn=["BIH","BULGARIA","CROATIA","HUNGARY","MACEDONIA","MONTENEGRO","ROMANIA"];function jn(n,t){if(n&1&&(l(0,"span"),u(1),m(2,"translate"),r()),n&2){let e=t.$implicit,o=s();a(),S(d(2,1,o.agreementTypesMetadata[e].translationPath))}}var Le=class n{constructor(){this.selectedAuctionTypes=[];this.auctionTypeOptions=[];this.auctionTypesSelect=new O;this.form=null;this.agreementTypesMetadata=$}ngOnInit(){this.buildForm()}onSelectionChange(t){this.auctionTypesSelect.emit(t)}buildForm(){let t={};this.auctionTypeOptions.forEach(e=>{t[e]=new Ct(this.selectedAuctionTypes.includes(e),{nonNullable:!0})}),this.form=new ht(t)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=_({type:n,selectors:[["app-auction-type-selector"]],inputs:{selectedAuctionTypes:"selectedAuctionTypes",auctionTypeOptions:"auctionTypeOptions"},outputs:{auctionTypesSelect:"auctionTypesSelect"},decls:3,vars:1,consts:[["selectItem",""],["icon","gavel",3,"selectionChange","multiselectForm"]],template:function(e,o){e&1&&(l(0,"app-generic-multiselect",1),g("selectionChange",function(p){return o.onSelectionChange(p)}),A(1,jn,3,3,"ng-template",null,0,L),r()),e&2&&c("multiselectForm",o.form)},dependencies:[De,Cn,I],encapsulation:2,changeDetection:0})}};var Dn=()=>[];function Gn(n,t){if(n&1){let e=B();l(0,"app-display-type-select",5),g("displayTypeSelect",function(i){M(e);let p=s();return x(p.onDisplayTypeSelect(i))}),r()}if(n&2){let e=s();c("displayTypeOptions",e.displayTypeOptions)("selectedDisplayType",(e.filter==null?null:e.filter.displayType)??null)}}var Ye=class n{constructor(){this.filter=null;this.showDisplayType=!0;this.borderSelect=new O;this.agreementTypeSelect=new O;this.directionSelect=new O;this.displayTypeSelect=new O;this.borderOptions=Tn;this.contractMarketAgreementTypeOptions=xn;this.displayTypeOptions=On;this.directionOptions=wn}onBorderSelect(t){this.borderSelect.emit(t)}onAuctionsTypeSelect(t){this.agreementTypeSelect.emit(t)}onDirectionSelect(t){this.directionSelect.emit(t)}onDisplayTypeSelect(t){this.displayTypeSelect.emit(t)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=_({type:n,selectors:[["app-capacity-allocation-filter"]],inputs:{filter:"filter",showDisplayType:"showDisplayType"},outputs:{borderSelect:"borderSelect",agreementTypeSelect:"agreementTypeSelect",directionSelect:"directionSelect",displayTypeSelect:"displayTypeSelect"},decls:5,vars:9,consts:[[1,"filter-wrapper"],[1,"country-selector",3,"countrySelect","countryOptions","selectedCountries"],[3,"auctionTypesSelect","auctionTypeOptions","selectedAuctionTypes"],[1,"direction-selector",3,"directionSelect","directionOptions","selectedDirection"],[3,"displayTypeOptions","selectedDisplayType"],[3,"displayTypeSelect","displayTypeOptions","selectedDisplayType"]],template:function(e,o){e&1&&(l(0,"div",0)(1,"app-country-selector",1),g("countrySelect",function(p){return o.onBorderSelect(p)}),r(),l(2,"app-auction-type-selector",2),g("auctionTypesSelect",function(p){return o.onAuctionsTypeSelect(p)}),r(),l(3,"app-direction-selector",3),g("directionSelect",function(p){return o.onDirectionSelect(p)}),r(),h(4,Gn,1,2,"app-display-type-select",4),r()),e&2&&(a(),c("countryOptions",o.borderOptions)("selectedCountries",(o.filter==null?null:o.filter.borders)??J(7,Dn)),a(),c("auctionTypeOptions",o.contractMarketAgreementTypeOptions)("selectedAu
1ctionTypes",(o.filter==null?null:o.filter.contractMarketAgreementTypes)??J(8,Dn)),a(),c("directionOptions",o.directionOptions)("selectedDirection",(o.filter==null?null:o.filter.direction)??null),a(),C(o.showDisplayType?4:-1))},dependencies:[un,Le,gn,_n],styles:["[_nghost-%COMP%]{width:100%;display:flex;flex-direction:column;align-items:center}[_nghost-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]{display:flex;gap:8px}[_nghost-%COMP%]   .filter-wrapper[_ngcontent-%COMP%]   .country-selector[_ngcontent-%COMP%]{margin-right:8px}[_nghost-%COMP%]   app-country-selector[_ngcontent-%COMP%]     generic-multiselect button   .mat-icon, [_nghost-%COMP%]   app-auction-type-selector[_ngcontent-%COMP%]     generic-multiselect button   .mat-icon{margin:0}"],changeDetection:0})}};var se=class n{constructor(t){this.translateService=t;this.chartFormatter=P(Fe);this.isMobile=be(()=>window.innerWidth<960);this.yearChartColors=["#4f81bd","#c0504d","#ffc90e","#9bbb59","#8085e9","#f15c80","#f7a35c","#2b908f","#91e8e1"]}getOptions(t,e,o,i,p){let b=(i==="light"?Be:Ie).chartColors,V=window.innerWidth<=600,k=window.innerWidth<=960&&window.innerWidth>600;return{grid:{left:10,right:10,bottom:V?"14%":k?"10%":"12%",containLabel:!0},legend:{show:!0,bottom:10,itemGap:V?8:12,textStyle:{color:b.legendLabelText,fontSize:V?10:12}},tooltip:{show:!0,valueFormatter:R=>typeof R=="number"?new Intl.NumberFormat(p,{minimumFractionDigits:0,maximumFractionDigits:2}).format(R):String(R??"")},xAxis:{axisLabel:{color:b.axisLabelText,rotate:25,margin:V?14:8,hideOverlap:!0,fontSize:V?10:12},type:"category",data:this.generateXLabelsBorder(e)},yAxis:{axisLabel:{color:b.axisLabelText,formatter:R=>this.chartFormatter.formatYAxisValue(R,this.isMobile(),p)},type:"value",name:"MW",scale:!0},series:t?this.generateBorderSeries(t,e,o):[]}}generateBorderSeries(t,e,o){let i=[];return!t||!Object.keys(t)?.length||Object.keys(t).forEach(p=>{let w=p&&o!=null?new Date(Number(p),o,1):null;if(w===null)return;let b=Ot(w,"month"),V=Tt(b,1,"month"),k=Dt(V,b,"hour"),W=t[p],R=W.map(f=>({t:f.t,v:f.yearly,domain:f.domain,outDomain:null,contractMarketAgreementType:"YEARLY"})),z=this.mapBorderCapacityMeasures(e,R,k);if(z.length){let f=this.translateService.instant($.YEARLY.translationPath),U=this.generateAllocatedCapacitySerie(z,f,H.color1);i.push(U)}let ee=W.map(f=>({t:f.t,v:f.monthly,domain:f.domain,outDomain:null,contractMarketAgreementType:"MONTHLY"})),te=this.mapBorderCapacityMeasures(e,ee,k);if(te.length){let f=this.translateService.instant($.MONTHLY.translationPath),U=this.generateAllocatedCapacitySerie(te,f,H.color9);i.push(U)}let Pn=W.map(f=>({t:f.t,v:f.weekly,domain:f.domain,outDomain:null,contractMarketAgreementType:"WEEKLY"})),nt=this.mapBorderCapacityMeasures(e,Pn,k);if(nt){let f=this.translateService.instant($.WEEKLY.translationPath),U=this.generateAllocatedCapacitySerie(nt,f,H.color3);i.push(U)}let An=W.map(f=>({t:f.t,v:f.daily,domain:f.domain,outDomain:null,contractMarketAgreementType:"DAILY"})),ot=this.mapBorderCapacityMeasures(e,An,k);if(ot){let f=this.translateService.instant($.DAILY.translationPath),U=this.generateAllocatedCapacitySerie(ot,f,H.color20);i.push(U)}}),i}generateXLabelsBorder(t){return t?.map(e=>this.translateService.instant(Q[e].translationPath))}generateXlabelsAgreementTypeRadar(t){return Object.keys(t).sort().map(e=>this.translateService.instant($[e].translationPath))}generateAllocatedCapacitySerie(t,e,o){let i=t.map(([p,w])=>[this.translateService.instant(Q[p].translationPath),w]);return{name:e,type:"bar",data:i??[],itemStyle:{color:o,opacity:.8}}}mapBorderCapacityMeasures(t,e,o){return o===null?[]:t.map(i=>{let p=e.find(w=>w.domain===i);return[i,(p?.v??0)/o]})}static{this.\u0275fac=function(e){return new(e||n)(Ce(Y))}}static{this.\u0275prov=he({token:n,factory:n.\u0275fac,providedIn:"root"})}};function Kn(n,t){n&1&&(F(),y(0,"rect",22)(1,"rect",23)(2,"rect",24)(3,"rect",25)(4,"rect",26)(5,"rect",27)(6,"rect",28)(7,"rect",29)(8,"rect",30)(9,"rect",31)(10,"rect",32)(11,"rect",33)(12,"rect",34))}var He=class n{constructor(){this.animate=!0;this.preserveAspectRatio="none";this.backgroundColor="rgba(0,0,0,0.2)";this.foregroundColor="#1e88e5";this.speed=2;this.style={display:"block",height:"344px",width:"100%"};this.viewBox="0 0 584 172";this.showLables=!0;this.random=(t,e)=>Math.floor(Math.random()*(e-t))+t}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=_({type:n,selectors:[["app-bar-chart-skeleton"]],inputs:{animate:"animate",preserveAspectRatio:"preserveAspectRatio",backgroundColor:"backgroundColor",foregroundColor:"foregroundColor",speed:"speed",style:"style",viewBox:"viewBox",showLables:"showLables"},decls:24,vars:9,consts:[[3,"animate","viewBox","speed","backgroundColor","preserveAspectRatio","foregroundColor"],["x","36","y","21","rx","0","ry","0","width","55","height","120"],["x","114","y","58","rx","0","ry","0","width","55","height","82"],["x","192","y","58","rx","0","ry","0","width","55","height","82"],["x","270","y","25","rx","0","ry","0","width","55","height","116"],["x","348","y","66","rx","0","ry","0","width","55","height","75"],["x","426","y","105","rx","0","ry","0","width","55","height","35"],["x","504","y","87","rx","0","ry","0","width","55","height","54"],["x","25","y","10","rx","0","ry","0","width","2","height","130"],["x","25","y","140","rx","0","ry","0","width","550","height","2"],["x","25","y","10","rx","0","ry","0","width","550","height","0.4"],["x","25","y","36","rx","0","ry","0","width","550","height","0.4"],["x","25","y","62","rx","0","ry","0","width","550","height","0.4"],["x","25","y","88","rx","0","ry","0","width","550","height","0.4"],["x","25","y","114","rx","0","ry","0","width","550","height","0.4"],["x","574","y","10","rx","0","ry","0","width","0.4","height","130"],["x","102","y","10","rx","0","ry","0","width","0.4","height","130"],["x","180","y","10","rx","0","ry","0","width","0.4","height","130"],["x","258","y","10","rx","0","ry","0","width","0.4","height","130"],["x","336","y","10","rx","0","ry","0","width","0.4","height","130"],["x","414","y","10","rx","0","ry","0","width","0.4","height","130"],["x","492","y","10","rx","0","ry","0","width","0.4","height","130"],["x","48","y","148","rx","0","ry","0","width","24","height","2"],["x","126","y","148","rx","0","ry","0","width","24","height","2"],["x","210","y","148","rx","0","ry","0","width","24","height","2"],["x","286","y","149","rx","0","ry","0","width","24","height","2"],["x","362","y","146","rx","0","ry","0","width","24","height","2"],["x","440","y","147","rx","0","ry","0","width","24","height","2"],["x","518","y","149","rx","0","ry","0","width","24","height","2"],["x","10","y","35","rx","0","ry","0","width","12","height","4"],["x","10","y","60","rx","0","ry","0","width","12","height","4"],["x","10","y","87","rx","0","ry","0","width","12","height","4"],["x","10","y","112","rx","0","ry","0","width","12","height","4"],["x","10","y","138","rx","0","ry","0","width","12","height","4"],["x","10","y","10","rx","0","ry","0","width","12","height","4"]],template:function(e,o){e&1&&(l(0,"svg-skeleton",0),X(1),F(),y(2,"rect",1)(3,"rect",2)(4,"rect",3)(5,"rect",4)(6,"rect",5)(7,"rect",6)(8,"rect",7),q(),y(9,"rect",8)(10,"rect",9),h(11,Kn,13,0),y(12,"rect",10)(13,"rect",11)(14,"rect",12)(15,"rect",13)(16,"rect",14)(17,"rect",15)(18,"rect",16)(19,"rect",17)(20,"rect",18)(21,"rect",19)(22,"rect",20)(23,"rect",21),r()),e&2&&(ae(o.style),c("animate",o.animate)("viewBox",o.viewBox)("speed",o.speed)("backgroundColor",o.backgroundColor)("preserveAspectRatio",o.preserveAspectRatio)("foregroundColor",o.foregroundColor),a(11),C(o.showLables?11:-1))},dependencies:[pe],encapsulation:2,changeDetection:0})}};function zn(n,t){if(n&1&&(l(0,"h2",7),u(1),r()),n&2){let e=s();a(),S(e.title)}}function Un(n,t){if(n&1&&y(0,"div",3),n&2){let e=s();c("options",e.options)}}function Xn(n,t){n&1&&(y(0,"app-no-data-panel",4),m(1,"translate")),n&2&&c("message",rt(d(1,2,"capacityAllocation.noData")))}function qn(n,t){n&1&&y(0,"app-bar-chart-skeleton")}function Jn(n,t){if(n&1){let e=B();l(0,"app-auctions-table",8),g("cellSelect",function(i){M(e);let p=s();return x(p.onCellSelect(i))}),r()}if(n&2){let e=s();c("selectableCells",!0)("tableData",e.tableData)("locale",e.locale)("showSumByYear",!1)("showSumByAuctionType",!0)}}var $e=class n{constructor(t,e,o){this.capacityAllocationChartService=t;this.translate=e;this.cdr=o;this.locale=null;this.loading=null;this.allocatedCapacityChartData=null;this.tableData=null;this.selectedCapacityValueType=null;this.selectedBorders=[];this.selectedYear=null;this.selectedMonth=null;this.selectedAgreementTypes=[];this.selectedDirection=null;this.drillDownOpen=new O;this.options={};this._store=P(le);this.colorScheme=this._store.selectSignal(Se.selectColorScheme);this.themeChanged=ue(()=>{let t=this.colorScheme();this.options=this.capacityAllocationChartService.getOptions(this.allocatedCapacityChartData,this.selectedBorders,this.selectedMonth,t,this.locale||"sr-Latn"),setTimeout(()=>{this.cdr.detectChanges()},0)})}get isEmpty(){return Object.values(this.allocatedCapacityChartData??{}).flatMap(t=>t).length===0}get title(){return this.selectedCapacityValueType===null||this.selectedDirection===null||this.selectedMonth===null?"":this.translate.instant("capacityAllocation.average")+" "+this.translate.instant(K?.[this.selectedCapacityValueType].translationPath)+(this.selectedCapacityValueType==="ESTIMATED_NET_TRANSFER_CAPACITY"?"":" "+this.translate.instant("capacityAllocation.capacity"))+" - "+this.translate.instant(Z[this.selectedDirection].translationPath)+" "+this.translate.instant(fn[this.selectedMonth+1].translationPath)+", "+(this.selectedYear??" - ")}ngOnChanges(t){(t.locale||t.allocatedCapacityChartData||t.selectedBorders||t.selectedYear)&&(this.options=this.capacityAllocationChartService.getOptions(this.allocatedCapacityChartData,this.selectedBorders,this.selectedMonth,this.colorScheme(),this.locale||"sr-Latn"))}onCellSelect(t){this.drillDownOpen.emit(t)}onResize(){this.options=this.capacityAllocationChartService.getOptions(this.allocatedCapacityChartData,this.selectedBorders,this.selectedMonth,this.colorScheme(),this.locale||"sr-Latn"),this.cdr.detectChanges()}static{this.\u0275fac=function(e){return new(e||n)(j(se),j(Y),j(Me))}}static{this.\u0275cmp=_({type:n,selectors:[["app-capacity-allocation-data"]],hostBindings:function(e,o){e&1&&g("resize",function(){return o.onResize()},ge)}
1,inputs:{locale:"locale",loading:"loading",allocatedCapacityChartData:"allocatedCapacityChartData",tableData:"tableData",selectedCapacityValueType:"selectedCapacityValueType",selectedBorders:"selectedBorders",selectedYear:"selectedYear",selectedMonth:"selectedMonth",selectedAgreementTypes:"selectedAgreementTypes",selectedDirection:"selectedDirection"},outputs:{drillDownOpen:"drillDownOpen"},features:[_e([se,Ae({echarts:ke})]),ne],decls:8,vars:5,consts:[["class","selection-description",4,"ngIfMediaQuery"],[1,"content-wrapper"],[1,"chart-container"],["echarts","",1,"chart",3,"options"],[3,"message"],[1,"table-container"],[3,"selectableCells","tableData","locale","showSumByYear","showSumByAuctionType"],[1,"selection-description"],[3,"cellSelect","selectableCells","tableData","locale","showSumByYear","showSumByAuctionType"]],template:function(e,o){e&1&&(A(0,zn,2,1,"h2",0),l(1,"div",1)(2,"div",2),h(3,Un,1,1,"div",3),h(4,Xn,2,4,"app-no-data-panel",4),h(5,qn,1,0,"app-bar-chart-skeleton"),r(),l(6,"div",5),h(7,Jn,1,5,"app-auctions-table",6),r()()),e&2&&(c("ngIfMediaQuery","gt-sm"),a(3),C(!o.loading&&!o.isEmpty?3:-1),a(),C(!o.loading&&o.isEmpty?4:-1),a(),C(o.loading?5:-1),a(2),C(!(o.tableData==null||o.tableData.rowData==null)&&o.tableData.rowData.length?7:-1))},dependencies:[ce,Ee,Pe,Ne,He,bn,I],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}@media(min-width:961px){[_nghost-%COMP%]{height:100%}}[_nghost-%COMP%]   .content-wrapper[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;min-height:0;overflow:visible}@media(max-width:960px){[_nghost-%COMP%]   .content-wrapper[_ngcontent-%COMP%]{flex-direction:column}[_nghost-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .chart-container[_ngcontent-%COMP%]{min-height:300px;flex:0 0 auto;height:auto}[_nghost-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .table-container[_ngcontent-%COMP%]{flex:0 0 auto;height:auto;overflow:visible}}[_nghost-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .chart-container[_ngcontent-%COMP%], [_nghost-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .table-container[_ngcontent-%COMP%]{flex:1 1 50%;min-width:0}@media(min-width:961px){[_nghost-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .chart-container[_ngcontent-%COMP%], [_nghost-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .table-container[_ngcontent-%COMP%]{height:100%}}[_nghost-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .table-container[_ngcontent-%COMP%]{overflow-x:auto;overflow-y:visible}[_nghost-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .chart-container[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%]   .chart-container[_ngcontent-%COMP%]   .chart[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%]   .display-type-select[_ngcontent-%COMP%]{padding-bottom:16px}[_nghost-%COMP%]   .selection-description[_ngcontent-%COMP%]{font-size:20px;font-weight:400;margin:8px 0!important}[_nghost-%COMP%]   app-auctions-table[_ngcontent-%COMP%]     year-table-header   .header-cell{background-color:var(--mat-sys-surface)}[_nghost-%COMP%]   app-auctions-table[_ngcontent-%COMP%]     app-year-row-data{background:var(--mat-sys-surface)}"],changeDetection:0})}};function Zn(n,t){if(n&1&&(F(),y(0,"rect",1)),n&2){let e=t.$implicit;ye("x",e.x)("y",e.y)("height",e.height)}}function eo(n,t){if(n&1&&(F(),y(0,"rect",13)),n&2){let e=t.$implicit;ye("x",e)}}function to(n,t){if(n&1&&(D(0,eo,1,1,":svg:rect",13,T),F(),y(2,"rect",14)(3,"rect",15)(4,"rect",16)(5,"rect",17)(6,"rect",18)(7,"rect",19)(8,"rect",20)(9,"rect",21)(10,"rect",22)),n&2){let e=s();v(e.xLabels)}}var je=class n{constructor(){this.animate=!0;this.preserveAspectRatio="none";this.backgroundColor="rgba(0,0,0,0.2)";this.foregroundColor="#1e88e5";this.speed=2;this.style={height:"344px",width:"100%"};this.viewBox="0 0 584 172";this.showLables=!0;this.bars=[];this.xLabels=[]}ngOnInit(){this.bars.push({x:35,y:40,height:88});for(let t=1,e=this.bars[0].x;e<540;t++)this.bars[t-1].y===40?(e+=11,this.bars.push({x:e,y:25,height:103})):(e+=15,this.bars.push({x:e,y:40,height:88}));for(let t=0;t<this.bars.length;t++)t%2===0&&this.xLabels.push(this.bars[t].x)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=_({type:n,selectors:[["app-capacity-allocation-bar-chart-skeleton"]],inputs:{animate:"animate",preserveAspectRatio:"preserveAspectRatio",backgroundColor:"backgroundColor",foregroundColor:"foregroundColor",speed:"speed",style:"style",viewBox:"viewBox",showLables:"showLables"},decls:16,vars:9,consts:[[3,"animate","viewBox","speed","backgroundColor","preserveAspectRatio","foregroundColor"],["rx","0","ry","0","width","10"],["x","25","y","10","rx","0","ry","0","width","2","height","117"],["x","25","y","127","rx","0","ry","0","width","550","height","2"],["x","25","y","10","rx","0","ry","0","width","550","height","0.4"],["x","25","y","23","rx","0","ry","0","width","550","height","0.4"],["x","25","y","36","rx","0","ry","0","width","550","height","0.4"],["x","25","y","49","rx","0","ry","0","width","550","height","0.4"],["x","25","y","62","rx","0","ry","0","width","550","height","0.4"],["x","25","y","75","rx","0","ry","0","width","550","height","0.4"],["x","25","y","88","rx","0","ry","0","width","550","height","0.4"],["x","25","y","101","rx","0","ry","0","width","550","height","0.4"],["x","25","y","114","rx","0","ry","0","width","550","height","0.4"],["y","135","rx","0","ry","0","width","20","height","2"],["x","10","y","9","rx","0","ry","0","width","12","height","4"],["x","10","y","21","rx","0","ry","0","width","12","height","4"],["x","10","y","35","rx","0","ry","0","width","12","height","4"],["x","10","y","48","rx","0","ry","0","width","12","height","4"],["x","10","y","61","rx","0","ry","0","width","12","height","4"],["x","10","y","74","rx","0","ry","0","width","12","height","4"],["x","10","y","87","rx","0","ry","0","width","12","height","4"],["x","10","y","100","rx","0","ry","0","width","12","height","4"],["x","10","y","113","rx","0","ry","0","width","12","height","4"]],template:function(e,o){e&1&&(l(0,"svg-skeleton",0),X(1),D(2,Zn,1,3,":svg:rect",1,T),q(),F(),y(4,"re
1ct",2)(5,"rect",3),h(6,to,11,0),y(7,"rect",4)(8,"rect",5)(9,"rect",6)(10,"rect",7)(11,"rect",8)(12,"rect",9)(13,"rect",10)(14,"rect",11)(15,"rect",12),r()),e&2&&(ae(o.style),c("animate",o.animate)("viewBox",o.viewBox)("speed",o.speed)("backgroundColor",o.backgroundColor)("preserveAspectRatio",o.preserveAspectRatio)("foregroundColor",o.foregroundColor),a(2),v(o.bars),a(4),C(o.showLables?6:-1))},dependencies:[pe],encapsulation:2,changeDetection:0})}};var me=class n{constructor(t){this.translateService=t;this.chartFormatter=P(Fe);this.isMobile=be(()=>window.innerWidth<960);this._colorImportCapacity=H.color19;this._colorExportCapacity=H.color9;this._colorImportPrice=H.color9;this._colorExportPrice=H.color20}getOptions(t,e,o){let i=[];Object.entries(t??{}).map(b=>b).forEach(([b,V])=>{let k=this.translateService.instant(K[b].translationPath),W=this.translateService.instant(Z.IMPORT.translationPath),R=this.translateService.instant(Z.EXPORT.translationPath),z=V?.filter(te=>te.domain==="SERBIA"),ee=V?.filter(te=>te.domain!=="SERBIA");if(b==="ALLOCATED_CAPACITY_PRICE"){z?.length&&i.push(this.generatePriceDataset(z,W+" "+k,this._colorImportPrice)),ee?.length&&i.push(this.generatePriceDataset(ee,R+" "+k,this._colorExportPrice));return}z?.length&&i.push(this.generateCapacityDataset(z,W+" "+k,this._colorImportCapacity)),ee?.length&&i.push(this.generateCapacityDataset(ee,R+" "+k,this._colorExportCapacity))});let w=(e==="light"?Be:Ie).chartColors;return{legend:{textStyle:{color:w.legendLabelText}},tooltip:{show:!0,valueFormatter:b=>typeof b=="number"?new Intl.NumberFormat(o,{minimumFractionDigits:0,maximumFractionDigits:2}).format(b):String(b??"")},xAxis:{axisLabel:{color:w.axisLabelText},type:"time"},yAxis:{show:!0,axisLine:{show:!0},axisLabel:{color:w.axisLabelText,formatter:b=>this.chartFormatter.formatYAxisValue(b,this.isMobile(),o)},type:"value",name:"MW",min:0,scale:!1,boundaryGap:["0%","20%"]},series:i}}generateCapacityDataset(t,e,o){let i=t?.map(({t:p,v:w})=>[p,w])??[];return{type:"bar",name:e,data:i,itemStyle:{color:o}}}generatePriceDataset(t,e,o){let i=t?.map(({t:p,v:w})=>[p,w])??[];return{type:"line",name:e,data:i,lineStyle:{color:o}}}static{this.\u0275fac=function(e){return new(e||n)(Ce(Y))}}static{this.\u0275prov=he({token:n,factory:n.\u0275fac})}};var Ge=class n{constructor(t,e){this.chartService=t;this.cdr=e;this.capacities=null;this.selectedDate=null;this.locale=null;this.options={};this._store=P(le);this.colorScheme=this._store.selectSignal(Se.selectColorScheme);this.themeChanged=ue(()=>{let t=this.colorScheme();this.options=this.chartService.getOptions(this.capacities,t,this.locale||"sr-Latn"),setTimeout(()=>{this.cdr.detectChanges()},0)})}ngOnChanges(t){(t.capacities||t.locale)&&(this.options=this.chartService.getOptions(this.capacities,this.colorScheme(),this.locale||"sr-Latn"))}static{this.\u0275fac=function(e){return new(e||n)(j(me),j(Me))}}static{this.\u0275cmp=_({type:n,selectors:[["app-capacity-allocation-hourly-capacity-chart"]],inputs:{capacities:"capacities",selectedDate:"selectedDate",locale:"locale"},features:[_e([me,Ae({echarts:ke})]),ne],decls:1,vars:1,consts:[["echarts","",1,"chart",3,"options"]],template:function(e,o){e&1&&y(0,"div",0),e&2&&c("options",o.options)},dependencies:[Ee,Pe],styles:["[_nghost-%COMP%]   .chart[_ngcontent-%COMP%]{height:100%}"],changeDetection:0})}};function oo(n,t){if(n&1&&(F(),y(0,"rect",6)),n&2){let e=t.$implicit;ye("x",e.x)("y",e.y)("width",e.width)}}var We=class n{constructor(){this.animate=!0;this.preserveAspectRatio="none";this.backgroundColor="rgba(0,0,0,0.2)";this.foregroundColor="#1e88e5";this.speed=2;this.style={height:"344px",width:"100%"};this.viewBox="0 0 584 172";this.showLables=!0;this.cells=[];this.xValues=[10,61,319];this.widthValues=[50,257,257]}ngOnInit(){for(let t=30,e=0;t<=150;e++)this.cells.push({x:this.xValues[e%3],y:t,width:this.widthValues[e%3]}),(e+1)%3===0&&(t+=15)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=_({type:n,selectors:[["app-capacity-allocation-table-skeleton"]],inputs:{animate:"animate",preserveAspectRatio:"preserveAspectRatio",backgroundColor:"backgroundColor",foregroundColor:"foregroundColor",speed:"speed",style:"style",viewBox:"viewBox",showLables:"showLables"},decls:10,vars:8,consts:[[3,"animate","viewBox","speed","backgroundColor","preserveAspectRatio","foregroundColor"],["x","10","y","0","rx","0","ry","0","width","50","height","29"],["x","61","y","0","rx","0","ry","0","width","257","height","14"],["x","319","y","0","rx","0","ry","0","width","257","height","14"],["x","61","y","15","rx","0","ry","0","width","257","height","14"],["x","319","y","15","rx","0","ry","0","width","257","height","14"],["rx","0","ry","0","height","14"]],template:function(e,o){e&1&&(l(0,"svg-skeleton",0),X(1),F(),y(2,"rect",1)(3,"rect",2)(4,"rect",3)(5,"rect",4)(6,"rect",5),q(),at(),X(7),D(8,oo,1,3,":svg:rect",6,T),q(),r()),e&2&&(ae(o.style),c("animate",o.animate)("viewBox",o.viewBox)("speed",o.speed)("backgroundColor",o.backgroundColor)("preserveAspectRatio",o.preserveAspectRatio)("foregroundColor",o.foregroundColor),a(8),v(o.cells))},dependencies:[pe],encapsulation:2,changeDetection:0})}};var ao=(n,t,e)=>({rowLabel:n,columnData:t,isEmpty:e}),vn=n=>({columnData:n}),ro=n=>({"blue-600":n});function lo(n,t){if(n&1&&oe(0,5),n&2){let e=s(2),o=ie(7);c("ngTemplateOutlet",o)("ngTemplateOutletContext",fe(2,vn,e.firstRowWithData.columnData))}}function co(n,t){if(n&1&&oe(0,5),n&2){let e=s(2),o=ie(9);c("ngTemplateOutlet",o)("ngTemplateOutletContext",fe(2,vn,e.firstRowWithData.columnData))}}function po(n,t){if(n&1&&(h(0,lo,1,4,"ng-container",5),h(1,co,1,4,"ng-container",5),oe(2,5)),n&2){let e=t.$implicit,o=t.$index,i=s(),p=ie(5);C(o===0&&i.firstRowWithData?0:-1),a(),C(o===0&&i.firstRowWithData?1:-1),a(),c("ngTemplateOutlet",p)("ngTemplateOutletContext",lt(4,ao,e==null?null:e.label,e!=null&&e.columnData&&e.columnData.length>0?e.columnData:i.firstRowWithData==null?null:i.firstRowWithData.columnData,!(e!=null&&e.columnData)||e.columnData.length===0))}}function so(n,t){if(n&1&&(l(0,"div",9),u(1),r()),n&2){let e=t.$implicit,o=s(2).isEmpty;a(),G(" ",!o&&e.value!==null&&e.value!==void 0?e.value:"-"," ")}}function mo(n,t){if(n&1&&(l(0,"div",8),D(1,so,2,1,"div",9,T),r()),n&2){let e=t.$implicit;a(),v(e==null?null:e.values)}}function yo(n,t){if(n&1&&(l(0,"div",6)(1,"div",7),u(2),r(),D(3,mo,3,0,"div",8,T),r()),n&2){let e=t.rowLabel,o=t.isHeaderRow,i=t.columnData;c("ngClass",fe(2,ro,o)),a(2),S(e),a(),v(i)}}function ho(n,t){if(n&1&&(l(0,"div",8)(1,"div",9),u(2),m(3,"translate"),r()()),n&2){let e=t.$implicit,o=s(2);a(2),ze("",d(3,2,e.label),"",o.getCountryCodeSuffix(e.label))}}function Co(n,t){if(n&1&&(l(0,"div",10)(1,"div",7),u(2),r(),D(3,ho,4,4,"div",8,T),r()),n&2){let e=t.columnData;a(2),S(""),a(),v(e)}}function uo(n,t){if(n&1&&(l(0,"div",9),u(1),m(2,"translate"),m(3,"translate"),r()),n&2){let e=t.$implicit;a(),ze(" ",d(2,2,e.label)," ",e.secondaryLabel?"("+d(3,4,e.secondaryLabel)+")":""," ")}}function go(n,t){if(n&1&&(l(0,"div",8),D(1,uo,4,6,"div",9,T),r()),n&2){let e=t.$implicit;a(),v(e==null?null:e.values)}}function _o(n,t){if(n&1&&(l(0,"div",11)(1,"div",7),u(2),r(),D(3,go,3,0,"div",8,T),r()),n&2){let e=t.columnData;a(2),S("h"),a(),v(e)}}var Ke=class n{constructor(){this.tableData=null;this.drillDownBorder=null;this.mobileViewActive=!1}ngOnInit(){this.setMobileViewActive()}get firstRowWithData(){return this.tableData?.rowData.find(t=>t.columnData&&t.columnData.length>0)}getCountryCodeSuffix(t){if(!this.drillDownBorder)return"";let e=Q[this.drillDownBorder]?.icon?.toUpperCase()||"";return e?t.toLowerCase().includes("import")?` (${e}RS)`:` (RS${e})`:""}get tableWidth(){if(this.mobileViewActive)return{width:"100%"};let t=130,e=100,o=t,i=this.firstRowWithData;
1return i&&i.columnData.forEach(p=>o+=e*p.values.length),{"min-width":o+"px"}}setMobileViewActive(){window.innerWidth<=960&&!this.mobileViewActive&&(this.mobileViewActive=!0),window.innerWidth>960&&this.mobileViewActive&&(this.mobileViewActive=!1)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=_({type:n,selectors:[["app-capacity-allocation-hourly-capacity-table"]],hostBindings:function(e,o){e&1&&g("resize",function(){return o.setMobileViewActive()},ge)},inputs:{tableData:"tableData",drillDownBorder:"drillDownBorder"},decls:10,vars:1,consts:[["tableRow",""],["mainHeader",""],["subHeader",""],[1,"table"],[1,"inner-container",3,"ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"table-row",3,"ngClass"],[1,"row-cell","row-label"],[1,"table-column"],[1,"row-cell"],[1,"main-header","table-row"],[1,"table-row","sub-header"]],template:function(e,o){e&1&&(l(0,"div",3)(1,"div",4),D(2,po,3,8,null,null,T),r()(),A(4,yo,5,4,"ng-template",null,0,L)(6,Co,5,1,"ng-template",null,1,L)(8,_o,5,1,"ng-template",null,2,L)),e&2&&(a(),c("ngStyle",o.tableWidth),a(),v(o.tableData==null?null:o.tableData.rowData))},dependencies:[Oe,pt,xe,st,I],styles:["[_nghost-%COMP%]{overflow:auto}@media(max-width:960px){[_nghost-%COMP%]{overflow:visible}}[_nghost-%COMP%]   .table[_ngcontent-%COMP%]{background-color:var(--mat-sys-surface);color:var(--mat-sys-on-surface);border-radius:8px;border:2px solid var(--mat-sys-outline);overflow:auto}@media(max-width:960px){[_nghost-%COMP%]   .table[_ngcontent-%COMP%]{overflow:visible}}[_nghost-%COMP%]   .table[_ngcontent-%COMP%]   .inner-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   .table[_ngcontent-%COMP%]   .inner-container[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .table[_ngcontent-%COMP%]   .inner-container[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .row-cell[_ngcontent-%COMP%]{flex:1;padding:4px;text-align:center;border-style:solid;border-color:var(--mat-sys-outline);border-width:0 1px 1px 0}[_nghost-%COMP%]   .table[_ngcontent-%COMP%]   .inner-container[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .row-cell[_ngcontent-%COMP%]:last-child{border-right:initial}[_nghost-%COMP%]   .table[_ngcontent-%COMP%]   .inner-container[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .row-cell.row-label[_ngcontent-%COMP%]{position:sticky;left:0;width:130px;min-width:130px;max-width:130px;background-color:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container)}@media(max-width:960px){[_nghost-%COMP%]   .table[_ngcontent-%COMP%]   .inner-container[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .row-cell.row-label[_ngcontent-%COMP%]{width:80px;min-width:80px;max-width:80px;position:static}}[_nghost-%COMP%]   .table[_ngcontent-%COMP%]   .inner-container[_ngcontent-%COMP%]   .table-row.main-header[_ngcontent-%COMP%]   .row-label[_ngcontent-%COMP%]{border-bottom:initial}[_nghost-%COMP%]   .table[_ngcontent-%COMP%]   .inner-container[_ngcontent-%COMP%]   .table-row.main-header[_ngcontent-%COMP%]   .row-cell[_ngcontent-%COMP%]{background-color:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container)}[_nghost-%COMP%]   .table[_ngcontent-%COMP%]   .inner-container[_ngcontent-%COMP%]   .table-row.sub-header[_ngcontent-%COMP%]   .row-cell[_ngcontent-%COMP%]{background-color:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container)}[_nghost-%COMP%]   .table[_ngcontent-%COMP%]   .inner-container[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%]{display:flex;flex:1}[_nghost-%COMP%]   .table[_ngcontent-%COMP%]   .inner-container[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%]:not(:last-child){border-right:4px solid var(--mat-sys-outline)}[_nghost-%COMP%]   .table[_ngcontent-%COMP%]   .inner-container[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%]   .row-cell[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%]   .table[_ngcontent-%COMP%]   .inner-container[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]:last-child   .row-cell[_ngcontent-%COMP%]{border-bottom:initial}"],changeDetection:0})}};function fo(n,t){n&1&&y(0,"app-capacity-allocation-bar-chart-skeleton")}function bo(n,t){if(n&1&&y(0,"app-capacity-allocation-hourly-capacity-chart",9),n&2){let e=s();c("capacities",e.chartData)("locale",e.locale)("selectedDate",e.selectedDate)}}function Mo(n,t){n&1&&y(0,"app-capacity-allocation-table-skeleton")}function xo(n,t){if(n&1&&y(0,"app-capacity-allocation-hourly-capacity-table",11),n&2){let e=s();c("tableData",e.tableData)("drillDownBorder",e.drillDownBorder)}}function Oo(n,t){n&1&&(y(0,"app-no-data-panel",12),m(1,"translate")),n&2&&c("message",d(1,1,"capacityAllocation.noData.interval"))}var Qe=class n{constructor(t){this.translate=t;this.selectedMonth=null;this.drillDownBorder=null;this.drillDownAgreementType=null;this.selectedValueType=null;this.selectedDirection=null;this.locale=null;this.tableData=null;this.chartData=null;this.selectedDate=null;this.loading=!1;this.closeDrillDown=new O}get secondaryTitle(){return this.selectedValueType&&this.drillDownAgreementType&&this.selectedDirection?this.translate.instant("capacityAllocation.hourly")+" "+this.translate.instant(K[this.selectedValueType].translationPath)+(this.selectedValueType==="ESTIMATED_NET_TRANSFER_CAPACITY"?"":" "+this.translate.instant("capacityAllocation.capacity"))+" - "+this.translate.instant($[this.drillDownAgreementType].translationPath)+" "+this.translate.instant("capacityAllocation.auctions")+", "+this.translate.instant(Z[this.selectedDirection].translationPath):""}get borderTranslationPath(){return this.drillDownBorder?Q[this.drillDownBorder].translationPath:""}get borderIcon(){return this.drillDownBorder?Q[this.drillDownBorder].icon:""}onDrillDownClose(){this.closeDrillDown.emit()}dataExists(){if(this.chartData===null)return!1;for(let t in this.chartData)if(this.chartData?.[t]?.length)return!0;return!1}static{this.\u0275fac=function(e){return new(e||n)(j(Y))}}static{this.\u0275cmp=_({type:n,selectors:[["app-capacity-allocation-hourly-data"]],inputs:{selectedMonth:"selectedMonth",drillDownBorder:"drillDownBorder",drillDownAgreementType:"drillDownAgreementType",selectedValueType:"selectedValueType",selectedDirection:"selectedDirection",locale:"locale",tableData:"tableData",chartData:"chartData",selectedDate:"selectedDate",loading:"loading"},outputs:{closeDrillDown:"closeDrillDown"},decls:21,vars:10,consts:[[1,"drill-down-container"],[1,"capacity-drill-down-header"],[1,"top-area"],["mat-icon-button","",3,"click"],[1,"title","h2"],[1,"border-icon",3,"flag"],[1,"secondary-title","h2"],[1,"content"],[1,"left-side"],[3,"capacities","locale","selectedDate"],[1,"right-side"],[3,"tableData","drillDownBorder"],[1,"no-data-panel",3,"message"]],template:function(e,o){e&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3),g("click",function(){return o.onDrillDownClose()}),l(4,"mat-icon"),u(5,"arrow_back"),r()(),l(6,"div",4),y(7,"app-flag-icon",5),l(8,"div"),u(9),m(10,"translate"),r()()(),l(11,"div",6),u(12),r()(),l(13,"div",7)(14,"div",8),h(15,fo,1,0,"app-capacity-allocation-bar-chart-skeleton"),h(16,bo,1,3,"app-capacity-allocation-hourly-capacity-chart",9),r(),l(17,"div",10),h(18,Mo,1,0,"app-capacity-allocation-table-skeleton"),h(19,xo,1,2,"app-capacity-allocation-hourly-capacity-table",11),r()(),h(20,Oo,2,3,"app-no-data-panel",12),r()),e&2&&(a(7),c("flag",o.borderIcon),a(2),S(d(10,8,o.borderTranslationPath)),a(3),G(" ",o.secondaryTitle," "),a(3),C(o.loading?15:-1),a(),C(o.dataExists()&&!o.loading?16:-1),a(2),C(o.loading?18:-1),a(),C(o.dataExists()&&!o.loading?19:-1),a(),C(!o.dataExists()&&!o.loading?20:-1))},dependencies:[ve,bt,Te,we,hn,Ne,je,Ge,We,Ke,I],styles:["[_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:32px;flex:1 1 auto;min-height:0;overflow:visible}@media(max-width:960px){[_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]{flex:0 0 auto;min-height:auto}}[_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .no-data-panel[_ngcontent-%COMP%]{height:300px}[_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .capacity-drill-down-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}[_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .capacity-drill-down-header[_ngcontent-%COMP%]   .to
1p-area[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}[_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .capacity-drill-down-header[_ngcontent-%COMP%]   .top-area[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .capacity-drill-down-header[_ngcontent-%COMP%]   .top-area[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .border-icon[_ngcontent-%COMP%]{width:20px!important;height:20px!important;margin-right:8px}[_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;min-height:0;flex-direction:row;gap:16px;overflow:visible}@media(max-width:960px){[_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{flex-direction:column;flex:0 0 auto;min-height:auto}}[_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .left-side[_ngcontent-%COMP%], [_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .right-side[_ngcontent-%COMP%]{flex:1 1 0;min-height:0;display:flex;flex-direction:column;overflow:visible}@media(max-width:960px){[_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .left-side[_ngcontent-%COMP%], [_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .right-side[_ngcontent-%COMP%]{flex:0 0 auto;min-height:400px}}[_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .left-side[_ngcontent-%COMP%]   app-capacity-allocation-hourly-capacity-chart[_ngcontent-%COMP%], [_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .right-side[_ngcontent-%COMP%]   app-capacity-allocation-hourly-capacity-table[_ngcontent-%COMP%], [_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .left-side[_ngcontent-%COMP%]   app-capacity-allocation-bar-chart-skeleton[_ngcontent-%COMP%], [_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .right-side[_ngcontent-%COMP%]   app-capacity-allocation-table-skeleton[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow:visible}@media(max-width:960px){[_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .left-side[_ngcontent-%COMP%]   app-capacity-allocation-hourly-capacity-chart[_ngcontent-%COMP%], [_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .right-side[_ngcontent-%COMP%]   app-capacity-allocation-hourly-capacity-table[_ngcontent-%COMP%], [_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .left-side[_ngcontent-%COMP%]   app-capacity-allocation-bar-chart-skeleton[_ngcontent-%COMP%], [_nghost-%COMP%]   .drill-down-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]   .right-side[_ngcontent-%COMP%]   app-capacity-allocation-table-skeleton[_ngcontent-%COMP%]{flex:0 0 auto;min-height:400px}}"],changeDetection:0})}};var wo=(n,t,e,o,i)=>({granularity:n,selectedCapacityType:t,selectedMonth:e,selectedYear:o,selectedDirection:i}),tt=()=>[];function To(n,t){n&1&&(l(0,"div",10),u(1),m(2,"translate"),r()),n&2&&(a(),S(d(2,1,"capacityAllocation.title")))}function Do(n,t){if(n&1){let e=B();l(0,"app-generic-select",11),g("selectionChange",function(i){M(e);let p=s(2);return x(p.onDaySelect(i.value))}),r()}if(n&2){let e=s(2);c("options",e.dayOptions)}}function vo(n,t){if(n&1&&oe(0,7),n&2){s();let e=ie(12);c("ngTemplateOutlet",e)}}function So(n,t){if(n&1){let e=B();l(0,"app-capacity-allocation-hourly-data",12),m(1,"async"),m(2,"async"),m(3,"async"),m(4,"async"),m(5,"async"),m(6,"async"),g("closeDrillDown",function(){M(e);let i=s(2);return x(i.onDrillDownClose())}),r()}if(n&2){let e=s(),o=s();c("loading",d(1,10,o.loading$)??!1)("selectedMonth",e.selectedMonth)("drillDownBorder",d(2,12,o.drillDownBorder$))("drillDownAgreementType",d(3,14,o.drillDownAgreementType$))("locale",o.locale)("selectedDate",d(4,16,o.selectedDate$))("selectedValueType",e.selectedCapacityType)("selectedDirection",e.selectedDirection)("tableData",d(5,18,o.drillDownTableData$))("chartData",d(6,20,o.drillDownChartData$))}}function Po(n,t){n&1&&y(0,"app-navigation-footer")}function Ao(n,t){if(n&1){let e=B();l(0,"div",13)(1,"div",14)(2,"app-capacity-type-selector",15),g("capacityTypeSelected",function(i){M(e);let p=s(2);return x(p.onCapacityTypeSelected(i))}),r(),l(3,"app-capacity-allocation-filter",16),m(4,"async"),g("borderSelect",function(i){M(e);let p=s(2);return x(p.onBorderSelect(i))})("agreementTypeSelect",function(i){M(e);let p=s(2);return x(p.onAgreementTypeSelect(i))})("directionSelect",function(i){M(e);let p=s(2);return x(p.onDirectionSelect(i))}),r()(),l(5,"div",17)(6,"app-capacity-allocation-data",18),m(7,"async"),m(8,"async"),m(9,"async"),m(10,"async"),m(11,"async"),g("drillDownOpen",function(i){M(e);let p=s(2);return x(p.onDrillDownOpen(i))}),r()()()}if(n&2){let e=s(),o=s();a(2),c("selectedCapacityType",e.selectedCapacityType),a(),c("filter",d(4,13,o.filter$))("showDisplayType",!1),a(3),c("locale",o.locale)("loading",d(7,15,o.loading$))("allocatedCapacityChartData",d(8,17,o.allocatedCapacityChartData$))("selectedCapacityValueType",e.selectedCapacityType)("selectedAgreementTypes",d(9,19,o.selectedAgreementTypes$)??J(25,tt))("selectedBorders",d(10,21,o.selectedBorders$)??J(26,tt))("selectedYear",e.selectedYear)("selectedMonth",e.selectedMonth)("selectedDirection",e.selectedDirection)("tableData",d(11,23,o.allocatedCapacityTableData$))}}function Eo(n,t){if(n&1){let e=B();l(0,"div",1)(1,"div",2),A(2,To,3,3,"div",3),l(3,"app-year-month-select",4),m(4,"async"),g("monthSelect",function(i){M(e);let p=s();return x(p.onMonthSelect(i))})("yearSelect",function(i){M(e);let p=s();return x(p.onYearSelect(i))}),r(),h(5,Do,1,1,"app-generic-select",5),r()(),l(6,"div",6),h(7,vo,1,1,"ng-container",7),h(8,So,7,22,"app-capacity-allocation-hourly-data",8),y(9,"app-footer"),r(),A(10,Po,1,0,"app-navigation-footer",9)(11,Ao,12,27,"ng-template",null,0,L)}if(n&2){let e=t,o=s();a(2),c("ngIfMediaQuery","lt-md"),a(),c("yearOptions",d(4,9,o.availableYears$)??J(11,tt))("monthOptions",o.monthOptions)("selectedYear",e.selectedYear)("selectedMonth",e.selectedMonth),a(2),C(e.granularity===o.granularities.NONE?5:-1),a(2),C(e.granularity===o.granularities.MONTH?7:-1),a(),C(e.granularity===o.granularities.NONE?8:-1),a(2),c("ngIfMediaQuery","lt-md")}}var Sn=class n{constructor(){this._store=P(le);this.filter$=this._store.select(ln);this.selectedBorders$=this._store.select(qt);this.allocatedCapacityChartData$=this._store.select(cn);this.allocatedCapacityTableData$=this._store.select(pn);this.selectedAgreementTypes$=this._store.select(Xt);this.selectedYear$=this._store.select(en);this.selectedMonth$=this._store.select(tn);this.selectedCapacityType$=this._store.select(Zt);this.loading$=this._store.select(Ut);this.availableYears$=this._store.select(rn);this.selectedGranularity$=this._store.select(an);this.selectedDate$=this._store.select(sn);this.drillDownChartData$=this._store.select(mn);this.drillDownTableData$=this._store.select(dn);this.drillDownBorder$=this._store.select(nn);this.drillDownAgreementType$=this._store.select(on);this.selectedDirection$=this._store.select(Jt);this.locale$=this._store.select(xt);this.monthOptions=Mn;this.dayOptions=[];this.granularities=zt;this.locale=null;it([this.selectedYear$,this.selectedMonth$]).pipe(re()).subscribe(([t,e])=>this.initMonthOptions(t,e)),this.locale$.pipe(re()).subscribe(t=>this.locale=t)}ngOnInit(){this._store.dispatch(jt())}ngOnDestroy(){this._store.dispatch(Qt())}onBorderSelect(t){this._store.dispatch(Yt({borders:t}))}onAgreementTypeSelect(t){this._store.dispatch(Ht({agreementTypes:t}))}onDirectionSelect(t){this._store.dispatch($t({borderDirection:t}))}onYearSelect(t){this._store.dispatch(Rt({year:t}))}onMonthSelect(t){this._store.dispatch(Lt({month:t}))}onDaySelect(t){this._store.dispatch(qe({selectedDay:t}))}onCapacityTypeSelected(t){this._store.dispatch(Gt({selectedCapacityType:t}))}onDrillDownOpen(t){this._store.dispatch(Je({drillDown:!0})),this._store.dispatch(Wt({drillDownBorder:t.row})),this._store.dispatch(Kt({drillDownAgreementType:t.column})),this._store.dispatch(Xe({selectedGranularity:"NONE"})),this._store.dispatch(Vt()),this._store.dispatch(qe({selectedDay:1}))}onDrillDownClose(){this._store.dispatch(Je({drillDown:!1})),this._store.dispatch(Xe({selectedGranularity:"MONTH"})),this._store.dispatch(Nt())}initMonthOptions(t,e){if(t==null||e==null)return;let o=wt(new Date(t,e,1),"month").getDate();this.dayOptions=[];for(let i=1;i<=o;i++)this.dayOptions.push({day:i})}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=_({type:n,selectors:[["app-capacity-allocation"]],decls:6,vars:17,consts:[["monthAvg",""],[1,"public-page-header"],[1,"info"],["class","title",4,"ngIfMediaQuery"],[3,"monthSelect","yearSelect","yearOptions","monthOptions","selectedYear","selectedMonth"],["bindValue","day","bindLabel","day",1,"day-selector",3,"options"],[1,"page-content"],[3,"ngTemplateOutlet"],[1,"hourly-container",3,"loading","selectedMonth","drillDownBorder","drillDownAgreementType","locale","selectedDate","selectedValueType","selectedDirection","tableData","chartData"],[4,"ngIfMediaQuery"],[1,"title"],["bindValue","day","bindLabel","day",1,"day-selector",3,"selectionChange","options"],[1,"hourly-container",3,"closeDrillDown","loading","selectedMonth","drillDownBorder","drillDownAgreementType","locale","selectedDate","selectedValueType","selectedDirection","tableData","chartData"],[1,"capacity-container"],[1,"sub-header"],[3,"capacityTypeSelected","selectedCapacityType"],[3,"borderSelect","agreementTypeSelect","directionSelect","filter","showDisplayType"],[1,"content"],[3,"drillDownOpen","locale","loading","allocatedCapacityChartData","selectedCapacityValueType","selectedAgreementTypes","selectedBorders","selectedYear","selectedMonth","selectedDirection","tableData"]],template:function(e,o){if(e&1&&(h(0,Eo,13,12),m(1,"async"),m(2,"async"),m(3,"async"),m(4,"async"),m(5,"async")),e&2){let i;C((i=ct(11,wo,d(1,1,o.selectedGranularity$),d(2,3,o.selectedCapacityType$),d(3,5,o.selectedMonth$),d(4,7,o.selectedYear$),d(5,9,o.selectedDirection$)))?0:-1,i)}},dependencies:[Oe,xe,St,vt,ce,Ve,Ft,Re,Ye,$e,Qe,mt],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}[_nghost-%COMP%]   .page-layout[_ngcontent-%COMP%]{position:relative;overflow:hidden}[_nghost-%COMP%]   .page-layout.blank[_ngcontent-%COMP%]{width:100%;min-height:100%}[_nghost-%COMP%]   app-year-month-select[_ngcontent-%COMP%]{margin-left:auto}[_nghost-%COMP%]   app-header[_ngcontent-%COMP%]     .header{background-color:#1e88e5!important;color:#fff!important;padding:8px 32px 8px 8px!important;height:74px;min-height:74px;max-height:74px}[_nghost-%COMP%]   app-header[_ngcontent-%COMP%]   .date-selection[_ngcontent-%COMP%]{display:flex;flex-direction:row;grid-gap:8px;gap:8px}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   app-generic-select[_ngcontent-%COMP%]{margin-left:unset}[_nghost-%COMP%]   .page-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;padding:16px;overflow-y:auto}[_nghost-%COMP%]   .page-content[_ngcontent-%COMP%]   .capacity-container[_ngcontent-%COMP%], [_nghost-%COMP%]   .page-content[_ngcontent-%COMP%]   .hourly-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   .page-content[_ngcontent-%COMP%]   .capacity-container[_ngcontent-%COMP%]   .sub-header[_ngcontent-%COMP%], [_nghost-%COMP%]   .page-content[_ngcontent-%COMP%]   .hourly-container[_ngcontent-%COMP%]   .sub-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;gap:10px}[_nghost-%COMP%]   .page-content[_ngcontent-%COMP%]   .capacity-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%], [_nghost-%COMP%]   .page-content[_ngcontent-%COMP%]   .hourly-container[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%]   .page-content[_ngcontent-%COMP%]   .capacity-container[_ngcontent-%COMP%]   app-capacity-type-selector[_ngcontent-%COMP%], [_nghost-%COMP%]   .page-content[_ngcontent-%COMP%]   .hourly-container[_ngcontent-%COMP%]   app-capacity-type-selector[_ngcontent-%COMP%]{align-self:center}[_nghost-%COMP%]   .page-content[_ngcontent-%COMP%]   .hourly-container[_ngcontent-%COMP%]{margin-top:16px}[_nghost-%COMP%]   .page-content[_ngcontent-%COMP%]   app-footer[_ngcontent-%COMP%]{margin-top:auto;padding-top:1rem;flex:0 0 auto}[_nghost-%COMP%]   .date-selection[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:8px}@media screen and (max-width:959px){[_nghost-%COMP%]   .date-selection[_ngcontent-%COMP%]{gap:4px}}[_nghost-%COMP%]   .right-header-content[_ngcontent-%COMP%]{display:flex;gap:8px}@media screen and (max-width:959px){[_nghost-%COMP%]   .right-header-content[_ngcontent-%COMP%]{gap:4px;flex-wrap:wrap;justify-content:flex-end}}@media screen and (max-width:599px){[_nghost-%COMP%]   .right-header-content[_ngcontent-%COMP%]{gap:2px}}"]})}};export{Sn as CapacityAllocationComponent};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.