-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path93.289aac6708a09374.js
More file actions
2 lines (2 loc) · 59 KB
/
93.289aac6708a09374.js
File metadata and controls
2 lines (2 loc) · 59 KB
1
2
"use strict";(self.webpackChunkdip=self.webpackChunkdip||[]).push([[93],{43299:(q,w,h)=>{h.d(w,{j:()=>O});var p=h(31631);const O=(0,p.X$)("routerTransition",[(0,p.eR)(":increment",[(0,p.IO)(":enter, :leave",(0,p.oB)({overflow:"hidden"}),{optional:!0}),(0,p.ru)([(0,p.IO)(":enter",[(0,p.oB)({transform:"translateX(100%)"}),(0,p.jt)("0.5s ease-in-out",(0,p.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,p.IO)(":leave",[(0,p.oB)({transform:"translateX(0%)"}),(0,p.jt)("0.5s ease-in-out",(0,p.oB)({transform:"translateX(-100%)"}))],{optional:!0})])]),(0,p.eR)(":decrement",[(0,p.IO)(":enter, :leave",(0,p.oB)({overflow:"hidden"}),{optional:!0}),(0,p.ru)([(0,p.IO)(":enter",[(0,p.oB)({transform:"translateX(-100%)"}),(0,p.jt)("0.5s ease-in-out",(0,p.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,p.IO)(":leave",[(0,p.oB)({transform:"translateX(0%)"}),(0,p.jt)("0.5s ease-in-out",(0,p.oB)({left:0,transform:"translateX(100%)"}))],{optional:!0})])])])},70093:(q,w,h)=>{h.r(w),h.d(w,{AllocationModule:()=>_t});var p=h(36362),O=h(32714),k=h(5830),d=h(56908),Z=h(70946),i=h(31631),y=h(93295),g=h(19180),t=h(3184),M=h(50318),m=h(85861),f=h(6178),x=h(64066);function A(e,r){if(1&e&&(t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&e){const o=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,o.program))}}const T=function(e){return{zero:e}},F=function(e){return{rotate:e}};function z(e,r){if(1&e){const o=t.EpF();t.TgZ(0,"div",1),t.NdJ("click",function(){const a=t.CHM(o).$implicit;return t.oxw().goMonth(a.month)}),t.TgZ(1,"div",2)(2,"div",3),t.YNc(3,A,3,3,"div",4),t.ALo(4,"async"),t._UZ(5,"div",5),t.ALo(6,"toNumber"),t.qZA()(),t._UZ(7,"div",6),t.qZA()}if(2&e){const o=r.$implicit,n=t.oxw();t.Udp("width",n.width,"%"),t.xp6(1),t.Udp("height",100*o.program/n.maxNumber||1,"%"),t.Q6J("ngClass",t.VKq(16,T,!n.ready)),t.xp6(2),t.Q6J("ngIf",!t.lcZ(4,12,n._data.mobile$)),t.xp6(2),t.Udp("height",100*o.allocation/o.program,"%"),t.Q6J("matTooltip",t.lcZ(6,14,o.allocation))("ngClass",t.VKq(18,T,!n.ready)),t.xp6(2),t.Q6J("ngClass",t.VKq(20,F,n.shouldRotate))("innerText",o.month)}}let Y=(()=>{class e{constructor(o,n,s){this._data=o,this.router=n,this.activatedRoute=s,this.width=0,this.ready=!1,this.maxNumber=0,this.months=[],this.shouldRotate=!1,this.activatedRoute.paramMap.subscribe(a=>this.plantID=a.get("plant"))}getIndex(o){return o}goMonth(o){const s=d(o,"MM / YYYY").format("YYYYMM");this.router.navigate(["covid",this.plantID,"date",s])}set monthsSetter(o){const n=o.map(a=>a.program);this.maxNumber=Math.max(...n),this.months=o,this.width=100/o.length,this.shouldRotate=this.width<20,setTimeout(()=>this.ready=!0,300)}}return e.\u0275fac=function(o){return new(o||e)(t.Y36(O.D),t.Y36(m.F0),t.Y36(m.gz))},e.\u0275cmp=t.Xpm({type:e,selectors:[["allocation-graphic"]],hostVars:1,hostBindings:function(o,n){2&o&&t.d8E("@list",n.months.length)},inputs:{monthsSetter:["months","monthsSetter"]},decls:1,vars:2,consts:[["class","month",3,"width","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"month",3,"click"],[1,"program",3,"ngClass"],[2,"position","relative","width","100%","height","100%"],["class","value",4,"ngIf"],["matTooltipPosition","above","matTooltipClass","allocation",1,"allocation",3,"matTooltip","ngClass"],[1,"date",3,"ngClass","innerText"],[1,"value"]],template:function(o,n){1&o&&t.YNc(0,z,8,22,"div",0),2&o&&t.Q6J("ngForOf",n.months)("ngForTrackBy",n.getIndex)},directives:[p.sg,p.mk,p.O5,f.gM],pipes:[p.Ov,x.$],styles:["[_nghost-%COMP%]{display:block;height:0;padding:0;box-sizing:border-box;overflow:hidden;transition:all .3s ease-in-out}body[theme=new-dark] [_nghost-%COMP%]{background:transparent}@media (min-width: 800px),(min-width: 400px) and (orientation: landscape){[_nghost-%COMP%]{height:220px;border-width:3px;padding:30px 30px 50px;overflow:initial}}.month[_ngcontent-%COMP%]{display:block;float:left;height:100%;padding:0 10px;box-sizing:border-box;position:relative;cursor:pointer;top:0;transition:top .15s ease-in-out}.month[_ngcontent-%COMP%]:hover{top:-10px}.month[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{position:absolute;margin:auto;left:0;right:0;width:100%;font-size:10px;bottom:-30px;text-align:center}@media (max-width: 900px) and (min-width: 400px) and (orientation: landscape){.month[_ngcontent-%COMP%] .date.rotate[_ngcontent-%COMP%]{transform:rotate(-40deg)}}@media (min-width: 800px){.month[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{transform:rotate(0);font-size:12px;bottom:-25px}}.month[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%]{display:block;max-height:100%;border-radius:3px;transition:all .3s ease-in-out;width:100%;background:linear-gradient(to top,rgba(0,0,0,0),rgba(0,172,193,.5));border-top:3px solid #00ACC1;position:absolute;bottom:0;left:0;right:0;margin:auto}.month[_ngcontent-%COMP%] .allocation.zero[_ngcontent-%COMP%]{height:0%!important}.month[_ngcontent-%COMP%] .program[_ngcontent-%COMP%]{display:block;border-radius:3px;transition:all .3s ease-in-out;width:calc(100% - 20px);background:linear-gradient(to top,rgba(0,0,0,0),rgba(248,176,59,.5));border-top:3px solid #F8B03B;position:absolute;bottom:0;left:0;right:0;margin:auto;text-align:center}.month[_ngcontent-%COMP%] .program.zero[_ngcontent-%COMP%]{height:0%!important}.month[_ngcontent-%COMP%] .program[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{position:absolute;width:100%;text-align:center;top:-25px;color:#f8b03be6;text-shadow:0 0 3px black;font-size:15px;font-weight:700} .mat-tooltip.program{border-color:#f8b03b} .mat-tooltip.allocation{border-color:#00acc1}body[theme=light] [_nghost-%COMP%] {background:none}body[theme=light] [_nghost-%COMP%] .program{border-color:#e59123}body[theme=light] [_nghost-%COMP%] .allocation{border-color:#17687f}body[theme=light] [_nghost-%COMP%] .month .allocation{background:linear-gradient(to top,rgba(0,0,0,0),rgba(23,104,127,.6))!important;border-top-color:#17687f!important}body[theme=light] [_nghost-%COMP%] .month .program{background:linear-gradient(to top,rgba(0,0,0,0),rgba(229,145,35,.6))!important;font-weight:700;border-top-color:#e59123!important}body[theme=light] [_nghost-%COMP%] .month .program .value{color:#0009!important;text-shadow:0 0 3px white!important}body[theme=light] [_nghost-%COMP%] .month .date{color:#333;font-weight:700}"],data:{animation:[(0,i.X$)("list",[(0,i.eR)("* => *",[(0,i.IO)(":enter",(0,i.oB)({opacity:0}),{optional:!0}),(0,i.IO)(":enter",(0,i.EY)("100ms",(0,i.jt)("400ms ease-in-out",(0,i.oB)({opacity:1}))),{optional:!0})])])]}}),e})();var B=h(72288),N=h(71412),v=h(90587),I=h(38220),L=h(33935);function J(e,r){if(1&e&&(t.TgZ(0,"mat-option",15),t._uU(1),t.qZA()),2&e){const o=r.$implicit;t.Q6J("value",o.key),t.xp6(1),t.hij(" ",o.value," ")}}function R(e,r){if(1&e){const o=t.EpF();t.TgZ(0,"div",20),t.NdJ("click",function(){t.CHM(o);const s=t.oxw().$implicit;return t.oxw(2).goMonth(s.month)}),t.TgZ(1,"div",6),t._uU(2),t.qZA(),t.TgZ(3,"div",10),t._uU(4),t.ALo(5,"toNumber"),t.qZA(),t.TgZ(6,"div",11),t._uU(7),t.ALo(8,"toNumber"),t.qZA(),t.TgZ(9,"div",12),t._uU(10),t.qZA()()}if(2&e){const o=t.oxw().$implicit,n=t.oxw(2);t.xp6(2),t.Oqu(n.getDate(o.month)),t.xp6(2),t.Oqu(t.lcZ(5,4,o.allocation)),t.xp6(3),t.Oqu(t.lcZ(8,6,o.program)),t.xp6(3),t.Oqu(o.percent)}}function Q(e,r){if(1&e&&(t.ynx(0),t.YNc(1,R,11,8,"div",19),t.BQk()),2&e){const o=r.$implicit,n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",o.year==n)}}function S(e,r){if(1&e&&(t.TgZ(0,"div",16)(1,"div",17),t._uU(2),t.qZA(),t.YNc(3,Q,2,1,"ng-container",18),t.qZA()),2&e){const o=r.$implicit,n=t.oxw();t.xp6(2),t.Oqu(o),t.xp6(1),t.Q6J("ngForOf",n.months)}}let D=(()=>{class e{constructor(o,n,s,a,u,C){this.data=o,this.title=n,this.api=s,this.config=a,this.activatedRoute=u,this.router=C,this.ready=!1,this.plandate="",this.years=[],this.months=[],window.a1=this,d.locale(this.config.config.language),this.title.setTitle(this.config.config.appTitle+" - Covid 19"),this.activatedRoute.paramMap.subscribe(c=>{this.plant=c.get("plant"),0==this.data.allocationData.length?this.api.getSavedReportData(y.z3.Allocation).subscribe(l=>{this.plandate=(0,g.hZ)(l[0][18],d),this.data.allocationData=l,this.rollupData()}):(this.plandate=(0,g.hZ)(this.data.allocationData[0][18],d),this.rollupData())})}changePlant(o){localStorage.setItem("allocation-plant",o),this.router.navigate(["covid",o],{replaceUrl:!0})}goMonth(o){const s=d(o,"MM / YYYY").format("YYYYMM");this.router.navigate(["date",s],{relativeTo:this.activatedRoute,replaceUrl:!0})}getDate(o){return d(o,"MM / YYYY").format("MMMM YYYY")}rollupData(){if(this.plants=this.data.allocationData.reduce((c,l)=>(c[l[0]]=c[l[0]]||"",c[l[0]]=l["en"==this.config.config.language?4:3],c),{}),null==this.plant||!this.plants[this.plant])return void this.router.navigate(["covid",Object.keys(this.plants)[0]],{replaceUrl:!0});const o=localStorage.getItem("allocation-plant");o&&this.plant!=o&&this.router.navigate(["/covid",o],{replaceUrl:!0}),this.title.setTitle(this.config.config.appTitle+" - Covid 19 - "+this.data.allocationData.filter(c=>c[0]==this.plant)[0][this.config.config.reports.trucks.columns.allocation.plantName[this.config.config.language]]);const n=d().startOf("month"),s=d().add(12,"months").endOf("month");let a={};const u=this.data.allocationData.filter(c=>c[0]==this.plant);this.years=Object.keys(u.reduce((c,l)=>(c[l[17].toString().substring(0,4)]=c[l[17].toString().substring(0,4)]||[],c),{})),u.forEach(c=>{d(c[17],"YYYYMM").isBetween(n,s,null,"[]")&&(a[c[17]]=[])});let C=[];Object.keys(a).forEach(c=>{const l=d(c,"YYYYMM").format("MM / YYYY"),_=this.data.sumByIndex(u.filter(b=>b[17]==c),this.config.config.reports.trucks.columns.allocation.program),P=this.data.sumByIndex(u.filter(b=>b[17]==c),this.config.config.reports.trucks.columns.allocation.allocation);C.push({year:d(l,"MM / YYYY").format("YYYY"),month:l,program:_,allocation:P,percent:(0,g.aQ)(P,_,!0,!0,!0)})}),this.months=C,setTimeout(()=>{this.ready=!0})}}return e.\u0275fac=function(o){return new(o||e)(t.Y36(O.D),t.Y36(M.Dx),t.Y36(k.s),t.Y36(Z.E),t.Y36(m.gz),t.Y36(m.F0))},e.\u0275cmp=t.Xpm({type:e,selectors:[["allocation-main"]],hostBindings:function(o,n){1&o&&t.NdJ("swiperight",function(a){return n.data.goFrom("allocation",a)})("swipeleft",function(a){return n.data.goFrom("allocation",a)})},decls:24,vars:17,consts:[[1,"report-header"],[1,"plandate"],[1,"empty"],[1,"overview"],[1,"graphic"],[3,"months"],[1,"month"],["matTooltipClass","after","matTooltipPosition","after","matTooltip","Change selected plant",1,"allocation-selector",2,"margin-left","10px"],["ngDefaultControl","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"allocation"],[1,"program"],[1,"percent"],[1,"content-wrapper"],["class","row-group",4,"ngFor","ngForOf"],[3,"value"],[1,"row-group"],[1,"group-header"],[4,"ngFor","ngForOf"],["class","row",3,"click",4,"ngIf"],[1,"row",3,"click"]],template:function(o,n){1&o&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",3)(6,"div",4),t._UZ(7,"allocation-graphic",5),t.qZA()()(),t.TgZ(8,"header")(9,"div",6)(10,"mat-form-field",7)(11,"mat-select",8),t.NdJ("ngModelChange",function(a){return n.plant=a})("ngModelChange",function(a){return n.changePlant(a)}),t.YNc(12,J,2,2,"mat-option",9),t.ALo(13,"keyvalue"),t.qZA()()(),t.TgZ(14,"div",10),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"div",11),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"div",12),t._uU(21,"\u0394"),t.qZA()(),t.TgZ(22,"div",13),t.YNc(23,S,4,2,"div",14),t.qZA()),2&o&&(t.xp6(3),t.AsE(" ",t.lcZ(4,9,"plandate"),": ",n.plandate," "),t.xp6(4),t.Q6J("months",n.months),t.xp6(4),t.Q6J("ngModel",n.plant),t.xp6(1),t.Q6J("ngForOf",t.lcZ(13,11,n.plants)),t.xp6(3),t.Oqu(t.lcZ(16,13,"allocation.allocation")),t.xp6(3),t.Oqu(t.lcZ(19,15,"allocation.program")),t.xp6(4),t.Q6J("@list",n.months.length),t.xp6(1),t.Q6J("ngForOf",n.years))},directives:[Y,B.KE,f.gM,N.gD,v.Fj,v.JJ,v.On,p.sg,I.ey,p.O5],pipes:[L.X$,p.Nd,x.$],styles:['[_nghost-%COMP%]{display:block;left:0}[_nghost-%COMP%] .mat-form-field .mat-form-field-infix{border-top:10px solid transparent!important}.empty[_ngcontent-%COMP%]{float:left;padding-left:5px}@media (min-width: 800px){.report-header[_ngcontent-%COMP%]{height:286px;margin-bottom:2px;overflow-y:hidden}}.plandate[_ngcontent-%COMP%]{display:block;padding:0 40px;font-size:15px;height:30px;line-height:30px;width:100%;text-align:right;box-sizing:border-box}@media (max-width: 800px){.plandate[_ngcontent-%COMP%]{padding:0 15px}}@media (min-width: 800px){.plandate[_ngcontent-%COMP%]{margin-bottom:16px}}header[_ngcontent-%COMP%]{display:flex;background-color:#20202966;padding:0 15px;box-sizing:border-box;height:40px}body[theme=new-dark] [_nghost-%COMP%] header[_ngcontent-%COMP%]{background-color:#34344580!important;border-bottom:2px solid #0d0d0d}@media (min-width: 800px){header[_ngcontent-%COMP%]{padding:0 40px}}header[_ngcontent-%COMP%] .month[_ngcontent-%COMP%]{flex:1 40%}header[_ngcontent-%COMP%] .program[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{padding:12px 10px 12px 0;box-sizing:border-box}header[_ngcontent-%COMP%] .program[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{flex:1 20%;text-align:right;text-transform:uppercase;font-size:12px}@media (min-width: 800px){header[_ngcontent-%COMP%] .program[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{flex:0 0 150px;font-size:1rem}}.content-wrapper[_ngcontent-%COMP%] .group-header[_ngcontent-%COMP%]{display:flex;width:100%;padding:12px 40px;box-sizing:border-box;background-color:#34344580}@media (max-width: 800px){.content-wrapper[_ngcontent-%COMP%] .group-header[_ngcontent-%COMP%]{padding:12px 15px}}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;cursor:pointer;border-bottom:1px solid transparent;display:flex;width:100%;padding:12px 40px;box-sizing:border-box}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(odd){background-color:#18182099}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(even){background-color:#20202966}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover{background-color:#ffffff05}body[theme=new-dark] [_nghost-%COMP%] .content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover{background-color:#121212!important}body[theme=light] [_nghost-%COMP%] .content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover{background-color:#0000000d!important}@media (max-width: 800px){.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{padding:12px 15px}}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .month[_ngcontent-%COMP%]{padding-left:30px;box-sizing:border-box}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .month[_ngcontent-%COMP%]:after{left:10px}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .month[_ngcontent-%COMP%]{flex:1 40%;padding-left:20px;position:relative;transition:padding-left .15s ease-in-out}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .month[_ngcontent-%COMP%]:after{transition:left .15s ease-in-out;content:"";position:absolute;height:12px;width:12px;top:2px;left:0;margin:auto;display:block;background-image:url(assets/arrow.svg);background-size:contain;background-repeat:no-repeat}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .program[_ngcontent-%COMP%], .content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%]{flex:1 20%;text-align:right;padding-right:10px;box-sizing:border-box;font-size:15px}@media (min-width: 800px){.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .program[_ngcontent-%COMP%], .content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%]{flex:0 0 150px}}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .program[_ngcontent-%COMP%]{color:#f8b03b}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%]{color:#28e8ff}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{flex:1 20%;font-size:15px;text-align:right}@media (min-width: 800px){.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{flex:0 0 150px}} .mat-form-field{max-width:140px} .mat-tooltip.after{border:0;background-color:#0006;position:relative;overflow:initial!important} .mat-tooltip.after:after{position:absolute;margin:auto;top:0;bottom:0;left:-8px;height:0;content:"";display:block;border-top:6px solid transparent;border-bottom:7px solid transparent;border-right:8px solid rgba(0,0,0,.4)} .mat-tooltip.above{border:0;background-color:#0006;position:relative;overflow:initial!important} .mat-tooltip.above:after{position:absolute;margin:auto;left:0;right:0;bottom:-10px;width:0;content:"";display:block;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid rgba(0,0,0,.4)}body[theme=light] [_nghost-%COMP%] {background-color:#fff}body[theme=light] [_nghost-%COMP%] .overview{background:linear-gradient(to bottom,white,#E6E6E6)}body[theme=light] [_nghost-%COMP%] .overview .simple{border-left-color:transparent}body[theme=light] [_nghost-%COMP%] .overview .simple .customer{color:#17687f!important}body[theme=light] [_nghost-%COMP%] .overview .simple .plan, body[theme=light] [_nghost-%COMP%] .overview .simple .reserve{color:#666!important}body[theme=light] [_nghost-%COMP%] .overview .data-header{background-color:#fff}body[theme=light] [_nghost-%COMP%] header{background-color:#8a999770!important;border-bottom:2px solid white}body[theme=light] [_nghost-%COMP%] header .title{color:#333;font-weight:700}body[theme=light] [_nghost-%COMP%] header .actual{color:#17687f}body[theme=light] [_nghost-%COMP%] header .previous{color:#e59123}body[theme=light] [_nghost-%COMP%] .group-header{background-color:#e6e6e6!important;color:#666;font-weight:700}body[theme=light] [_nghost-%COMP%] .row{background-color:#fff!important;border-bottom:1px solid #E6E6E6!important}body[theme=light] [_nghost-%COMP%] .row .month{color:#333!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .row .percent{color:#0d0d0d!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .row .allocation{color:#17687f!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .row .program{color:#e59123!important;font-weight:700}'],data:{animation:[(0,i.X$)("list",[(0,i.eR)("* => *",[(0,i.IO)(":enter",(0,i.oB)({opacity:0}),{optional:!0}),(0,i.IO)(":enter",(0,i.EY)("100ms",(0,i.jt)("300ms ease-in",(0,i.oB)({opacity:1}))),{optional:!0})])]),(0,i.X$)("fade",[(0,i.SB)("false",(0,i.oB)({opacity:0,height:0,overflow:"hidden"})),(0,i.SB)("true",(0,i.oB)({opacity:1,height:"35px",overflow:"initial"})),(0,i.eR)("false => true",(0,i.jt)("250ms",(0,i.oB)({opacity:1,height:"35px",overflow:"initial"})))])]}}),e})();var $=h(30676),j=h(43299);const H=["o"];let X=(()=>{class e{constructor(o){this.data=o,o.lastTap2=null}getLevel(){return this.data.currentLevel=+this.outlet.activatedRouteData.level,this.outlet.activatedRouteData.level}}return e.\u0275fac=function(o){return new(o||e)(t.Y36(O.D))},e.\u0275cmp=t.Xpm({type:e,selectors:[["allocation-wrapper"]],viewQuery:function(o,n){if(1&o&&t.Gf(H,7),2&o){let s;t.iGM(s=t.CRH())&&(n.outlet=s.first)}},hostVars:1,hostBindings:function(o,n){2&o&&t.d8E("@routerTransition",n.getLevel())},decls:2,vars:0,consts:[["o","outlet"]],template:function(o,n){1&o&&t._UZ(0,"router-outlet",null,0)},directives:[m.lC],styles:["[_nghost-%COMP%]{position:relative}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{display:block} allocation-main, allocation-lvl2, allocation-lvl3{position:fixed;top:70px;bottom:0;height:calc(100% - 102px);width:100%;left:0;overflow-y:auto;touch-action:pan-y!important} .mat-form-field-appearance-legacy .mat-form-field-infix{padding:0} .mat-form-field-appearance-legacy .mat-form-field-underline{display:none} .mat-select-value-text{color:#fff} .mat-select-arrow{color:#fff!important;opacity:.7} .mat-select-content{background-color:#29293199} .mat-option:not(.mat-selected){color:#fff} .mat-option.mat-selected{color:#f8b03b!important}"],data:{animation:[j.j]}}),e})();const G=function(e){return{grey:e}};let E=(()=>{class e{constructor(){this.allocation=0,this.program=0,this.zero=!1}set allocationSetter(o){this.allocation=o,this.zero=(isNaN(this.allocation)||0===this.allocation)&&0===this.program}set programSetter(o){this.program=o,this.zero=(isNaN(this.allocation)||0===this.allocation)&&0===this.program}}return e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=t.Xpm({type:e,selectors:[["allocation-bar"]],inputs:{partNumber:"partNumber",programNumber:"programNumber",ready:"ready",allocationSetter:["allocation","allocationSetter"],programSetter:["program","programSetter"]},decls:9,vars:16,consts:[[2,"position","relative","width","100%","height","100%"],[1,"blackout"],["matTooltipClass","above","matTooltipPosition","above",1,"bar",3,"ngClass","matTooltip"],["matTooltipClass","above","matTooltipPosition","above",1,"allocation",3,"matTooltip"],[1,"percent2"]],template:function(o,n){1&o&&(t.TgZ(0,"div",0),t._UZ(1,"div",1),t.TgZ(2,"div",2),t.ALo(3,"toNumber"),t.TgZ(4,"div",0)(5,"div",3),t.ALo(6,"toNumber"),t.TgZ(7,"span",4),t._uU(8),t.qZA()()()()()),2&o&&(t.xp6(2),t.Q6J("ngClass",t.VKq(14,G,n.zero))("matTooltip",t.Dn7(3,6,n.programNumber,!1,!1)),t.xp6(3),t.Udp("width",n.ready?n.allocation>=100?100:n.allocation:0,"%"),t.Q6J("matTooltip",t.Dn7(6,10,n.partNumber,!1,!1)),t.xp6(3),t.Oqu(n.allocation+" %"))},directives:[p.mk,f.gM],pipes:[x.$],styles:['[_nghost-%COMP%]{display:block;width:100%;padding:30px;box-sizing:border-box;position:relative}.blackout[_ngcontent-%COMP%]{display:block;height:20px;width:100%;background-color:#29293199;border-radius:10px;overflow:hidden;position:absolute;top:0}.bar[_ngcontent-%COMP%]{display:block;height:20px;transition:width 1s ease-in-out .5s;background-color:#f8b03b;border-radius:10px;overflow:hidden;position:relative;z-index:99;width:100%}.bar[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%]{display:block;height:20px;border-radius:10px;transition:width 1s ease-in-out .5s;background-color:#00acc1}body[theme=light] [_nghost-%COMP%] .bar[_ngcontent-%COMP%]{background-color:#e59123!important}body[theme=light] [_nghost-%COMP%] .bar[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%]{background-color:#17687f!important}.percent[_ngcontent-%COMP%]{position:absolute;margin:auto;height:20px;top:0;bottom:0;right:25px;text-align:right;width:50px;line-height:20px;font-size:20px;color:#28e8ff}.percent2[_ngcontent-%COMP%]{color:#fff;text-align:right;float:right;line-height:20px;padding-right:10px}.percentProgram[_ngcontent-%COMP%]{position:absolute;margin:auto;height:20px;top:0;bottom:0;right:30px;text-align:right;width:50px;line-height:20px;font-size:20px;color:#f8b03b} .mat-tooltip.above{border:0;background-color:#0006;position:relative;overflow:initial!important} .mat-tooltip.above:after{position:absolute;margin:auto;left:0;right:0;bottom:-10px;width:0;content:"";display:block;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid rgba(0,0,0,.4)}.grey[_ngcontent-%COMP%]{background-color:#737373}'],changeDetection:0}),e})();function K(e,r){if(1&e&&(t.TgZ(0,"div",8)(1,"div",9),t._UZ(2,"allocation-graphic",10),t.qZA()()),2&e){const o=t.oxw();t.xp6(2),t.Q6J("months",o.months)}}function W(e,r){if(1&e&&(t.TgZ(0,"mat-option",18),t._uU(1),t.qZA()),2&e){const o=r.$implicit;t.Q6J("value",o.key),t.xp6(1),t.hij(" ",o.value," ")}}function V(e,r){if(1&e){const o=t.EpF();t.TgZ(0,"header")(1,"div",11)(2,"mat-form-field",12)(3,"mat-select",13),t.NdJ("ngModelChange",function(s){return t.CHM(o),t.oxw().plant=s})("ngModelChange",function(s){return t.CHM(o),t.oxw().changePlant(s)}),t.YNc(4,W,2,2,"mat-option",14),t.ALo(5,"keyvalue"),t.qZA()()(),t.TgZ(6,"div",15),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"div",16),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"div",17),t._uU(13,"\u0394"),t.qZA()()}if(2&e){const o=t.oxw();t.xp6(3),t.Q6J("ngModel",o.plant),t.xp6(1),t.Q6J("ngForOf",t.lcZ(5,4,o.plants)),t.xp6(3),t.Oqu(t.lcZ(8,6,"allocation.allocation")),t.xp6(3),t.Oqu(t.lcZ(11,8,"allocation.program"))}}function tt(e,r){if(1&e){const o=t.EpF();t.TgZ(0,"header",19)(1,"div",20),t.NdJ("click",function(){return t.CHM(o),t.oxw().returnToMain()}),t.TgZ(2,"div",21),t._uU(3),t.qZA()(),t.TgZ(4,"div",22),t._uU(5),t.ALo(6,"toNumber"),t.qZA(),t.TgZ(7,"div",23),t._uU(8),t.ALo(9,"toNumber"),t.qZA(),t._UZ(10,"div",24),t.qZA()}if(2&e){const o=t.oxw();t.xp6(3),t.Oqu(o.monthMomentum),t.xp6(2),t.Oqu(t.lcZ(6,3,o.totalAllocation)),t.xp6(3),t.Oqu(t.lcZ(9,5,o.totalProgram))}}function ot(e,r){if(1&e){const o=t.EpF();t.TgZ(0,"div",28),t.NdJ("click",function(){const a=t.CHM(o).$implicit;return t.oxw(2).goRegion(a.key)}),t.TgZ(1,"div",11),t._uU(2),t.qZA(),t.TgZ(3,"div",15),t._uU(4),t.ALo(5,"toNumber"),t.qZA(),t.TgZ(6,"div",16),t._uU(7),t.ALo(8,"toNumber"),t.qZA(),t.TgZ(9,"div",17),t._uU(10),t.qZA()()}if(2&e){const o=r.$implicit,n=t.oxw(2);t.xp6(2),t.Oqu(o.key),t.xp6(2),t.Oqu(t.lcZ(5,4,n.data.sumByIndex(o.value,n.config.config.reports.trucks.columns.allocation.allocation))),t.xp6(3),t.Oqu(t.lcZ(8,6,n.data.sumByIndex(o.value,n.config.config.reports.trucks.columns.allocation.program))),t.xp6(3),t.Oqu(n.percent(n.data.sumByIndex(o.value,n.config.config.reports.trucks.columns.allocation.allocation),n.data.sumByIndex(o.value,n.config.config.reports.trucks.columns.allocation.program),!0,!0,!0))}}function nt(e,r){if(1&e&&(t.TgZ(0,"div",25)(1,"div",26),t._uU(2,"REGIONS"),t.qZA(),t.YNc(3,ot,11,8,"div",27),t.ALo(4,"keyvalue"),t.qZA()),2&e){const o=t.oxw();t.xp6(3),t.Q6J("ngForOf",t.lcZ(4,1,o.regions))}}function et(e,r){if(1&e){const o=t.EpF();t.TgZ(0,"div",28),t.NdJ("click",function(){const a=t.CHM(o).$implicit;return t.oxw(2).goProduct(a.key)}),t.TgZ(1,"div",11),t._uU(2),t.qZA(),t.TgZ(3,"div",15),t._uU(4),t.ALo(5,"toNumber"),t.qZA(),t.TgZ(6,"div",16),t._uU(7),t.ALo(8,"toNumber"),t.qZA(),t.TgZ(9,"div",17),t._uU(10),t.qZA()()}if(2&e){const o=r.$implicit,n=t.oxw(2);t.xp6(2),t.Oqu(o.key),t.xp6(2),t.Oqu(t.lcZ(5,4,n.data.sumByIndex(o.value,n.config.config.reports.trucks.columns.allocation.allocation))),t.xp6(3),t.Oqu(t.lcZ(8,6,n.data.sumByIndex(o.value,n.config.config.reports.trucks.columns.allocation.program))),t.xp6(3),t.Oqu(n.percent(n.data.sumByIndex(o.value,n.config.config.reports.trucks.columns.allocation.allocation),n.data.sumByIndex(o.value,n.config.config.reports.trucks.columns.allocation.program),!0,!0,!0))}}function at(e,r){if(1&e&&(t.TgZ(0,"div",25)(1,"div",26),t._uU(2,"ESTABLISHMENT"),t.qZA(),t.YNc(3,et,11,8,"div",27),t.ALo(4,"keyvalue"),t.qZA()),2&e){const o=t.oxw();t.xp6(3),t.Q6J("ngForOf",t.lcZ(4,1,o.products))}}function rt(e,r){if(1&e&&(t.TgZ(0,"div",11)(1,"div",12),t._UZ(2,"allocation-graphic",13),t.qZA()()),2&e){const o=t.oxw();t.xp6(2),t.Q6J("months",o.months)}}function lt(e,r){if(1&e&&(t.TgZ(0,"mat-option",21),t._uU(1),t.qZA()),2&e){const o=r.$implicit;t.Q6J("value",o.key),t.xp6(1),t.hij(" ",o.value," ")}}function ct(e,r){if(1&e){const o=t.EpF();t.TgZ(0,"header")(1,"div",14)(2,"mat-form-field",15)(3,"mat-select",16),t.NdJ("ngModelChange",function(s){return t.CHM(o),t.oxw().plant=s})("ngModelChange",function(s){return t.CHM(o),t.oxw().changePlant(s)}),t.YNc(4,lt,2,2,"mat-option",17),t.ALo(5,"keyvalue"),t.qZA()()(),t.TgZ(6,"div",18),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"div",19),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"div",20),t._uU(13,"\u0394"),t.qZA()()}if(2&e){const o=t.oxw();t.xp6(3),t.Q6J("ngModel",o.plant),t.xp6(1),t.Q6J("ngForOf",t.lcZ(5,4,o.plants)),t.xp6(3),t.Oqu(t.lcZ(8,6,"allocation.allocation")),t.xp6(3),t.Oqu(t.lcZ(11,8,"allocation.program"))}}function st(e,r){if(1&e){const o=t.EpF();t.TgZ(0,"header",22)(1,"div",23),t.NdJ("click",function(){return t.CHM(o),t.oxw().returnToMain()}),t.TgZ(2,"div",24),t._uU(3),t.qZA()(),t.TgZ(4,"div",25),t._uU(5),t.ALo(6,"toNumber"),t.qZA(),t.TgZ(7,"div",26),t._uU(8),t.ALo(9,"toNumber"),t.qZA(),t._UZ(10,"div",27),t.qZA()}if(2&e){const o=t.oxw();t.xp6(3),t.Oqu(o.monthMomentum),t.xp6(2),t.Oqu(t.lcZ(6,3,o.totalAllocation)),t.xp6(3),t.Oqu(t.lcZ(9,5,o.totalProgram))}}function pt(e,r){if(1&e&&(t.TgZ(0,"div",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e){const o=t.oxw(2);t.xp6(1),t.AsE("",t.lcZ(2,2,"region")," - ",o.region_id,"")}}function gt(e,r){if(1&e&&(t.TgZ(0,"div",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e){const o=t.oxw(2);t.xp6(1),t.AsE("",t.lcZ(2,2,"product")," - ",o.region_id,"")}}function dt(e,r){if(1&e){const o=t.EpF();t.TgZ(0,"header",28)(1,"div",23),t.NdJ("click",function(){return t.CHM(o),t.oxw().returnToParent()}),t.YNc(2,pt,3,4,"div",29),t.YNc(3,gt,3,4,"div",29),t.qZA(),t.TgZ(4,"div",25),t._uU(5),t.ALo(6,"toNumber"),t.qZA(),t.TgZ(7,"div",26),t._uU(8),t.ALo(9,"toNumber"),t.qZA(),t._UZ(10,"div",27),t.qZA()}if(2&e){const o=t.oxw();t.xp6(2),t.Q6J("ngIf","region"==o.type),t.xp6(1),t.Q6J("ngIf","product"==o.type),t.xp6(2),t.Oqu(t.lcZ(6,4,o.subtotalAllocation)),t.xp6(3),t.Oqu(t.lcZ(9,6,o.subtotalProgram))}}function ht(e,r){1&e&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"products")))}function mt(e,r){1&e&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"regions")))}function ut(e,r){if(1&e){const o=t.EpF();t.TgZ(0,"div",32),t.NdJ("click",function(){const a=t.CHM(o).$implicit;return t.oxw().exchangeType(a.key)}),t.TgZ(1,"div",14),t._uU(2),t.qZA(),t.TgZ(3,"div",18),t._uU(4),t.ALo(5,"toNumber"),t.qZA(),t.TgZ(6,"div",19),t._uU(7),t.ALo(8,"toNumber"),t.qZA(),t.TgZ(9,"div",20),t._uU(10),t.qZA()()}if(2&e){const o=r.$implicit,n=t.oxw();t.xp6(2),t.Oqu(o.key),t.xp6(2),t.Oqu(t.lcZ(5,4,n.data.sumByIndex(o.value,n.config.config.reports.trucks.columns.allocation.allocation))),t.xp6(3),t.Oqu(t.lcZ(8,6,n.data.sumByIndex(o.value,n.config.config.reports.trucks.columns.allocation.program))),t.xp6(3),t.Oqu(n.percent(n.data.sumByIndex(o.value,n.config.config.reports.trucks.columns.allocation.allocation),n.data.sumByIndex(o.value,n.config.config.reports.trucks.columns.allocation.program),!0,!0,!0))}}const ft=[{path:"",component:X,children:[{path:"",component:D,data:{level:1}},{path:":plant",component:D,data:{level:1}},{path:":plant/date/:date",component:(()=>{class e{constructor(o,n,s,a,u,C){this.data=o,this.title=n,this.api=s,this.config=a,this.activatedRoute=u,this.router=C,this.percent=g.aQ,this.ready=!1,this.plandate="",this.years=[],this.months=[],this.monthMomentum="",this.percentAllocation=0,this.percentProgram=0,this.partNumber=0,this.programNumber=0,this.totalProgram=0,this.totalAllocation=0,window.moment=d,d.locale(this.config.config.language),this.title.setTitle(a.config.appTitle+" - Covid 19"),this.activatedRoute.paramMap.subscribe(c=>{this.plant=c.get("plant"),this.date=c.get("date"),0==this.data.allocationData.length?this.api.getSavedReportData(y.z3.Allocation).subscribe(l=>{this.plandate=(0,g.hZ)(l[0][18],d),this.data.allocationData=l,this.rollupData()}):(this.plandate=(0,g.hZ)(this.data.allocationData[0][18],d),this.rollupData())})}changePlant(o){this.router.navigate(["covid",o,"date",this.date],{replaceUrl:!0})}goRegion(o){this.router.navigate(["region",o],{relativeTo:this.activatedRoute,replaceUrl:!0})}goProduct(o){this.router.navigate(["product",o],{relativeTo:this.activatedRoute,replaceUrl:!0})}goMonth(o){const s=d(o,"MM / YYYY").format("DDYYYY");this.router.navigate(["date",s],{relativeTo:this.activatedRoute,replaceUrl:!0})}getDate(o){return d(o,"MM / YYYY").format("MMMM YYYY")}rollupData(){if(this.plants=this.data.allocationData.reduce((c,l)=>(c[l[0]]=c[l[0]]||"",c[l[0]]=l["en"==this.config.config.language?4:3],c),{}),null==this.plant||!this.plants[this.plant])return void this.router.navigate(["covid",Object.keys(this.plants)[0]],{replaceUrl:!0});this.title.setTitle(this.config.config.appTitle+" - Covid 19 - "+this.data.allocationData.filter(c=>c[0]==this.plant)[0][this.config.config.reports.trucks.columns.allocation.plantName[this.config.config.language]]);const o=d(),n=d().add(12,"months");let s={},a=this.data.allocationData.filter(c=>c[0]==this.plant);this.years=Object.keys(a.reduce((c,l)=>(c[l[17].toString().substring(0,4)]=c[l[17].toString().substring(0,4)]||[],c),{})),a.forEach(c=>{d(c[17],"YYYYMM").isBetween(o,n,null,"[]")&&(s[c[17]]=[])});let u=[];Object.keys(s).forEach(c=>{const l=d(c,"YYYYMM").format("MM / YYYY"),_=this.data.sumByIndex(a.filter(b=>b[17]==c),this.config.config.reports.trucks.columns.allocation.program),P=this.data.sumByIndex(a.filter(b=>b[17]==c),this.config.config.reports.trucks.columns.allocation.allocation);u.push({year:d(l,"MM / YYYY").format("YYYY"),month:l,program:_,allocation:P,percent:(0,g.aQ)(P,_,!0,!0,!0)})});const C=Math.max(...u.map(c=>c.program));a=a.filter(c=>c[this.config.config.reports.trucks.columns.allocation.yearMonth].replace(/\-/,"")==this.date),this.totalProgram=this.data.sumByIndex(a,this.config.config.reports.trucks.columns.allocation.program),this.totalAllocation=this.data.sumByIndex(a,this.config.config.reports.trucks.columns.allocation.allocation),this.partNumber=this.data.sumByIndex(a,this.config.config.reports.trucks.columns.allocation.allocation),this.percentAllocation=+(0,g.aQ)(this.data.sumByIndex(a,this.config.config.reports.trucks.columns.allocation.allocation),this.data.sumByIndex(a,this.config.config.reports.trucks.columns.allocation.program),!1,!1,!1),this.percentProgram=+(0,g.aQ)(this.data.sumByIndex(a,this.config.config.reports.trucks.columns.allocation.program),C,!1,!1,!1),this.programNumber=this.data.sumByIndex(a,this.config.config.reports.trucks.columns.allocation.program),this.regions=this.data.classifyByIndex(a,this.config.config.reports.trucks.columns.allocation.regionName[this.config.config.language]),this.monthMomentum=d(this.date,"YYYYMM").format("MMMM YYYY"),this.products=this.data.classifyByIndex(a,this.config.config.reports.trucks.columns.allocation.productName[this.config.config.language]),this.months=u,setTimeout(()=>{this.ready=!0})}returnToMain(){this.router.navigate(["../../"],{relativeTo:this.activatedRoute,replaceUrl:!0})}}return e.\u0275fac=function(o){return new(o||e)(t.Y36(O.D),t.Y36(M.Dx),t.Y36(k.s),t.Y36(Z.E),t.Y36(m.gz),t.Y36(m.F0))},e.\u0275cmp=t.Xpm({type:e,selectors:[["allocation-lvl2"]],hostBindings:function(o,n){1&o&&t.NdJ("swiperight",function(a){return n.data.goFrom("allocation",a)})("swipeleft",function(a){return n.data.goFrom("allocation",a)})},decls:11,vars:15,consts:[[1,"plandate"],[1,"empty"],["class","overview",4,"ngIf"],[4,"ngIf"],["class","return",4,"ngIf"],[3,"programNumber","allocation","program","ready","partNumber"],[1,"content-wrapper"],["class","row-group",4,"ngIf"],[1,"overview"],[1,"graphic"],[3,"months"],[1,"month"],["matTooltipClass","after","matTooltipPosition","after","matTooltip","Change selected plant",1,"allocation-selector",2,"margin-left","10px"],["ngDefaultControl","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"allocation"],[1,"program"],[1,"percent"],[3,"value"],[1,"return"],[1,"month",3,"click"],["matTooltipClass","after","matTooltip","Return to main view","matTooltipPosition","after",1,"first-row",2,"display","inline-block"],[1,"total-allocation"],[1,"total-program"],[1,"total-empty"],[1,"row-group"],[1,"group-header"],["class","row",3,"click",4,"ngFor","ngForOf"],[1,"row",3,"click"]],template:function(o,n){1&o&&(t.TgZ(0,"div",0),t._UZ(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,K,3,1,"div",2),t.YNc(5,V,14,10,"header",3),t.YNc(6,tt,11,7,"header",4),t._UZ(7,"allocation-bar",5),t.TgZ(8,"div",6),t.YNc(9,nt,5,3,"div",7),t.YNc(10,at,5,3,"div",7),t.qZA()),2&o&&(t.xp6(2),t.AsE("",t.lcZ(3,13,"plandate"),": ",n.plandate,"\n"),t.xp6(2),t.Q6J("ngIf",n.ready),t.xp6(1),t.Q6J("ngIf",n.ready),t.xp6(1),t.Q6J("ngIf",n.ready),t.xp6(1),t.Q6J("programNumber",n.programNumber)("allocation",n.percentAllocation)("program",n.percentProgram)("ready",n.ready)("partNumber",n.partNumber||0),t.xp6(1),t.Q6J("@list",n.months.length),t.xp6(1),t.Q6J("ngIf",n.regions),t.xp6(1),t.Q6J("ngIf",n.products))},directives:[p.O5,Y,B.KE,f.gM,N.gD,v.Fj,v.JJ,v.On,p.sg,I.ey,E],pipes:[L.X$,p.Nd,x.$],styles:['[_nghost-%COMP%]{display:block;left:0}.empty[_ngcontent-%COMP%]{float:left;padding-left:5px}.plandate[_ngcontent-%COMP%]{display:block;padding:0 40px;height:30px;line-height:30px;width:100%;text-align:right;box-sizing:border-box}@media (max-width: 800px){.plandate[_ngcontent-%COMP%]{padding:0 15px}}.total-allocation[_ngcontent-%COMP%], .total-program[_ngcontent-%COMP%]{flex:1 20%;text-align:right;padding:12px 10px 12px 0;box-sizing:border-box;font-size:16px;font-weight:700}@media (min-width: 800px){.total-allocation[_ngcontent-%COMP%], .total-program[_ngcontent-%COMP%]{flex:0 0 150px}}.total-allocation[_ngcontent-%COMP%]{color:#28e8ff}.total-program[_ngcontent-%COMP%]{color:#f8b03b}.total-empty[_ngcontent-%COMP%]{flex:1 20%;text-align:right}@media (min-width: 800px){.total-empty[_ngcontent-%COMP%]{flex:0 0 150px}}header[_ngcontent-%COMP%]{display:flex;background-color:#20202966;padding:0 40px;box-sizing:border-box;height:40px}@media (max-width: 800px){header[_ngcontent-%COMP%]{padding:0 15px}}header.return[_ngcontent-%COMP%]{background-color:#34344580}header[_ngcontent-%COMP%] .month[_ngcontent-%COMP%]{flex:1 40%;cursor:pointer}header[_ngcontent-%COMP%] .month[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{padding:12px 20px;position:relative;box-sizing:border-box}header[_ngcontent-%COMP%] .month[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:after{transition:left .15s ease-in-out;content:"";position:absolute;height:12px;width:12px;top:0;bottom:0;left:-6px;margin:auto;display:block;transform:rotate(180deg);background-image:url(assets/arrow.svg);background-size:contain;background-repeat:no-repeat}header[_ngcontent-%COMP%] .program[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{padding:12px 10px 12px 0;box-sizing:border-box}header[_ngcontent-%COMP%] .program[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{flex:1 20%;text-align:right}@media (min-width: 800px){header[_ngcontent-%COMP%] .program[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{flex:0 0 150px}}.content-wrapper[_ngcontent-%COMP%] .group-header[_ngcontent-%COMP%]{display:flex;width:100%;padding:12px 40px;box-sizing:border-box;background-color:#34344580}@media (max-width: 800px){.content-wrapper[_ngcontent-%COMP%] .group-header[_ngcontent-%COMP%]{padding:12px 15px}}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;cursor:pointer;border-bottom:1px solid transparent;display:flex;width:100%;padding:12px 40px;box-sizing:border-box}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(odd){background-color:#18182099}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(even){background-color:#20202966}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover{background-color:#ffffff05}body[theme=new-dark] [_nghost-%COMP%] .content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover{background-color:#121212!important}body[theme=light] [_nghost-%COMP%] .content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover{background-color:#0000000d!important}@media (max-width: 800px){.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{padding:12px 15px}}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .month[_ngcontent-%COMP%]{padding-left:30px;box-sizing:border-box}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .month[_ngcontent-%COMP%]:after{left:10px}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .month[_ngcontent-%COMP%]{flex:1 40%;padding-left:20px;position:relative;transition:padding-left .15s ease-in-out}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .month[_ngcontent-%COMP%]:after{transition:left .15s ease-in-out;content:"";position:absolute;height:12px;width:12px;top:2px;left:0;margin:auto;display:block;background-image:url(assets/arrow.svg);background-size:contain;background-repeat:no-repeat}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .program[_ngcontent-%COMP%], .content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%]{flex:1 20%;text-align:right;padding-right:10px;font-size:15px;box-sizing:border-box}@media (min-width: 800px){.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .program[_ngcontent-%COMP%], .content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%]{flex:0 0 150px}}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .program[_ngcontent-%COMP%]{color:#f8b03b}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%]{color:#28e8ff}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{flex:1 20%;text-align:right;font-size:15px}@media (min-width: 800px){.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{flex:0 0 150px}} .mat-form-field{max-width:140px} .mat-tooltip.after{border:0;background-color:#0006;position:relative;overflow:initial!important} .mat-tooltip.after:after{position:absolute;margin:auto;top:0;bottom:0;left:-8px;height:0;content:"";display:block;border-top:6px solid transparent;border-bottom:7px solid transparent;border-right:8px solid rgba(0,0,0,.4)} .mat-tooltip.above{border:0;background-color:#0006;position:relative;overflow:initial!important} .mat-tooltip.above:after{position:absolute;margin:auto;left:0;right:0;bottom:-10px;width:0;content:"";display:block;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid rgba(0,0,0,.4)}body[theme=light] [_nghost-%COMP%] {background-color:#fff}body[theme=light] [_nghost-%COMP%] .overview{background:linear-gradient(to bottom,white,#E6E6E6)}body[theme=light] [_nghost-%COMP%] .overview .simple{border-left-color:transparent}body[theme=light] [_nghost-%COMP%] .overview .simple .customer{color:#17687f!important}body[theme=light] [_nghost-%COMP%] .overview .simple .plan, body[theme=light] [_nghost-%COMP%] .overview .simple .reserve{color:#666!important}body[theme=light] [_nghost-%COMP%] .overview .data-header{background-color:#fff}body[theme=light] [_nghost-%COMP%] header{background-color:#e6e6e6!important;border-bottom:2px solid white}body[theme=light] [_nghost-%COMP%] header .month{color:#333;font-weight:700}body[theme=light] [_nghost-%COMP%] header .total-allocation{color:#17687f;font-weight:700}body[theme=light] [_nghost-%COMP%] header .total-program{color:#e59123;font-weight:700}body[theme=light] [_nghost-%COMP%] .group-header{background-color:#e6e6e6!important;color:#666;font-weight:700}body[theme=light] [_nghost-%COMP%] .row{background-color:#fff!important;border-bottom:1px solid #E6E6E6!important}body[theme=light] [_nghost-%COMP%] .row .month{color:#333!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .row .percent{color:#0d0d0d!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .row .allocation{color:#17687f!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .row .program{color:#e59123!important;font-weight:700}'],data:{animation:[(0,i.X$)("list",[(0,i.eR)("* => *",[(0,i.IO)(":enter",(0,i.oB)({opacity:0}),{optional:!0}),(0,i.IO)(":enter",(0,i.EY)("100ms",(0,i.jt)("300ms ease-in",(0,i.oB)({opacity:1}))),{optional:!0})])]),(0,i.X$)("fade",[(0,i.SB)("false",(0,i.oB)({opacity:0,height:0,overflow:"hidden"})),(0,i.SB)("true",(0,i.oB)({opacity:1,height:"35px",overflow:"initial"})),(0,i.eR)("false => true",(0,i.jt)("250ms",(0,i.oB)({opacity:1,height:"35px",overflow:"initial"})))])]}}),e})(),data:{level:2}},{path:":plant/date/:date/:type/:region_id",component:(()=>{class e{constructor(o,n,s,a,u,C){this.data=o,this.title=n,this.api=s,this.config=a,this.activatedRoute=u,this.router=C,this.percent=g.aQ,this.ready=!1,this.plandate="",this.years=[],this.months=[],this.monthMomentum="",this.percentAllocation=0,this.percentProgram=0,this.partNumber=0,this.programNumber=0,this.rows=[],this.totalProgram=0,this.totalAllocation=0,this.subtotalProgram=0,this.subtotalAllocation=0,window.moment=d,d.locale(this.config.config.language),this.title.setTitle(this.config.config.appTitle+" - Covid 19"),this.activatedRoute.paramMap.subscribe(c=>{this.plant=c.get("plant"),this.date=c.get("date"),this.type=c.get("type"),this.region_id=decodeURI(c.get("region_id")),0==this.data.allocationData.length?this.api.getSavedReportData(y.z3.Allocation).subscribe(l=>{this.plandate=(0,g.hZ)(l[0][18],d),this.data.allocationData=l,this.rollupData()}):(this.plandate=(0,g.hZ)(this.data.allocationData[0][18],d),this.rollupData())})}changePlant(o){this.router.navigate(["covid",o,"date",this.date,this.type,this.region_id],{replaceUrl:!0})}getDate(o){return d(o,"MM / YYYY").format("MMMM YYYY")}rollupData(){if(this.plants=this.data.allocationData.reduce((l,_)=>(l[_[0]]=l[_[0]]||"",l[_[0]]=_["en"==this.config.config.language?4:3],l),{}),null==this.plant||!this.plants[this.plant])return void this.router.navigate(["covid",Object.keys(this.plants)[0]],{replaceUrl:!0});this.title.setTitle(this.config.config.appTitle+" - Covid 19- "+this.data.allocationData.filter(l=>l[0]==this.plant)[0][this.config.config.reports.trucks.columns.allocation.plantName[this.config.config.language]]);const o=d(),n=d().add(12,"months");let s={},a=this.data.allocationData.filter(l=>l[0]==this.plant);this.years=Object.keys(a.reduce((l,_)=>(l[_[17].toString().substring(0,4)]=l[_[17].toString().substring(0,4)]||[],l),{})),a.forEach(l=>{d(l[17],"YYYYMM").isBetween(o,n,null,"[]")&&(s[l[17]]=[])});let u=[];Object.keys(s).forEach(l=>{const _=d(l,"YYYYMM").format("MM / YYYY"),P=this.data.sumByIndex(a.filter(U=>U[17]==l),this.config.config.reports.trucks.columns.allocation.program),b=this.data.sumByIndex(a.filter(U=>U[17]==l),this.config.config.reports.trucks.columns.allocation.allocation);u.push({year:d(_,"MM / YYYY").format("YYYY"),month:_,program:P,allocation:b,percent:(0,g.aQ)(b,P,!0,!0,!0)})}),a.concat(),a=a.filter(l=>l[this.config.config.reports.trucks.columns.allocation.yearMonth].replace(/\-/,"")==this.date),this.totalProgram=this.data.sumByIndex(a,this.config.config.reports.trucks.columns.allocation.program),this.totalAllocation=this.data.sumByIndex(a,this.config.config.reports.trucks.columns.allocation.allocation);const c=a.concat();a=a.filter("region"==this.type?l=>l[this.config.config.reports.trucks.columns.allocation.regionName[this.config.config.language]]==this.region_id:l=>l[this.config.config.reports.trucks.columns.allocation.productName[this.config.config.language]]==this.region_id),this.subtotalProgram=this.data.sumByIndex(a,this.config.config.reports.trucks.columns.allocation.program),this.subtotalAllocation=this.data.sumByIndex(a,this.config.config.reports.trucks.columns.allocation.allocation),this.partNumber=this.data.sumByIndex(c,this.config.config.reports.trucks.columns.allocation.allocation),this.percentAllocation=+(0,g.aQ)(this.data.sumByIndex(a,this.config.config.reports.trucks.columns.allocation.allocation),this.data.sumByIndex(a,this.config.config.reports.trucks.columns.allocation.program),!1,!1,!1),this.percentProgram=+(0,g.aQ)(this.data.sumByIndex(a,this.config.config.reports.trucks.columns.allocation.program),this.data.sumByIndex(c,this.config.config.reports.trucks.columns.allocation.program),!1,!1,!1),this.programNumber=this.data.sumByIndex(c,this.config.config.reports.trucks.columns.allocation.program),this.monthMomentum=d(this.date,"YYYYMM").format("MMMM YYYY"),this.rows=this.data.classifyByIndex(a,"region"==this.type?this.config.config.reports.trucks.columns.allocation.productName[this.config.config.language]:this.config.config.reports.trucks.columns.allocation.regionName[this.config.config.language]),this.months=u,setTimeout(()=>{this.ready=!0})}exchangeType(o){this.router.navigate("region"==this.type?["../../","product",o]:["../../","region",o],{relativeTo:this.activatedRoute,replaceUrl:!0})}returnToMain(){this.router.navigate(["../../../../"],{relativeTo:this.activatedRoute,replaceUrl:!0})}returnToParent(){this.router.navigate(["../../"],{relativeTo:this.activatedRoute,replaceUrl:!0})}}return e.\u0275fac=function(o){return new(o||e)(t.Y36(O.D),t.Y36(M.Dx),t.Y36(k.s),t.Y36(Z.E),t.Y36(m.gz),t.Y36(m.F0))},e.\u0275cmp=t.Xpm({type:e,selectors:[["allocation-lvl3"]],hostBindings:function(o,n){1&o&&t.NdJ("swiperight",function(a){return n.data.goFrom("allocation",a)})("swipeleft",function(a){return n.data.goFrom("allocation",a)})},decls:15,vars:19,consts:[[1,"plandate"],[1,"empty"],["class","overview",4,"ngIf"],[4,"ngIf"],["class","return",4,"ngIf"],["class","return2",4,"ngIf"],[3,"programNumber","allocation","program","ready","partNumber"],[1,"content-wrapper"],[1,"row-group"],["class","group-header",4,"ngIf"],["class","row",3,"click",4,"ngFor","ngForOf"],[1,"overview"],[1,"graphic"],[3,"months"],[1,"month"],["matTooltipClass","after","matTooltipPosition","after","matTooltip","Change selected plant",1,"allocation-selector",2,"margin-left","10px"],["ngDefaultControl","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"allocation"],[1,"program"],[1,"percent"],[3,"value"],[1,"return"],[1,"month",3,"click"],["matTooltipClass","after","matTooltip","Return to main view","matTooltipPosition","after",2,"display","inline-block"],[1,"total-allocation"],[1,"total-program"],[1,"total-empty"],[1,"return2"],["matTooltipClass","after","matTooltip","Return to month view","matTooltipPosition","after","style","display: inline-block",4,"ngIf"],["matTooltipClass","after","matTooltip","Return to month view","matTooltipPosition","after",2,"display","inline-block"],[1,"group-header"],[1,"row",3,"click"]],template:function(o,n){1&o&&(t.TgZ(0,"div",0),t._UZ(1,"div",1),t._uU(2),t.ALo(3,"translate"),t.qZA(),t.YNc(4,rt,3,1,"div",2),t.YNc(5,ct,14,10,"header",3),t.YNc(6,st,11,7,"header",4),t.YNc(7,dt,11,8,"header",5),t._UZ(8,"allocation-bar",6),t.TgZ(9,"div",7)(10,"div",8),t.YNc(11,ht,3,3,"div",9),t.YNc(12,mt,3,3,"div",9),t.YNc(13,ut,11,8,"div",10),t.ALo(14,"keyvalue"),t.qZA()()),2&o&&(t.xp6(2),t.AsE("",t.lcZ(3,15,"plandate"),": ",n.plandate,"\n"),t.xp6(2),t.Q6J("ngIf",n.ready),t.xp6(1),t.Q6J("ngIf",n.ready),t.xp6(1),t.Q6J("ngIf",n.ready),t.xp6(1),t.Q6J("ngIf",n.ready),t.xp6(1),t.Q6J("programNumber",n.subtotalProgram)("allocation",n.percentAllocation)("program",n.subtotalProgram)("ready",n.ready)("partNumber",n.subtotalAllocation||0),t.xp6(1),t.Q6J("@list",n.months.length),t.xp6(2),t.Q6J("ngIf","region"==n.type),t.xp6(1),t.Q6J("ngIf","product"==n.type),t.xp6(1),t.Q6J("ngForOf",t.lcZ(14,17,n.rows)))},directives:[p.O5,Y,B.KE,f.gM,N.gD,v.Fj,v.JJ,v.On,p.sg,I.ey,E],pipes:[L.X$,p.Nd,x.$],styles:['[_nghost-%COMP%]{display:block;left:0}.empty[_ngcontent-%COMP%]{float:left;padding-left:5px}.total-allocation[_ngcontent-%COMP%], .total-program[_ngcontent-%COMP%]{flex:1 20%;text-align:right;padding:12px 10px 12px 0;box-sizing:border-box;font-size:16px;font-weight:700}@media (min-width: 800px){.total-allocation[_ngcontent-%COMP%], .total-program[_ngcontent-%COMP%]{flex:0 0 150px}}.total-allocation[_ngcontent-%COMP%]{color:#28e8ff}.total-program[_ngcontent-%COMP%]{color:#f8b03b}.total-empty[_ngcontent-%COMP%]{flex:1 20%;text-align:right}@media (min-width: 800px){.total-empty[_ngcontent-%COMP%]{flex:0 0 150px}}.plandate[_ngcontent-%COMP%]{display:block;padding:0 40px;height:30px;line-height:30px;width:100%;text-align:right;box-sizing:border-box}@media (max-width: 800px){.plandate[_ngcontent-%COMP%]{padding:0 15px}}header[_ngcontent-%COMP%]{display:flex;background-color:#18182099;padding:0 40px;box-sizing:border-box;height:40px}@media (max-width: 800px){header[_ngcontent-%COMP%]{padding:0 15px}}header.return[_ngcontent-%COMP%]{background-color:#34344580}header.return2[_ngcontent-%COMP%]{background-color:#20202966}header[_ngcontent-%COMP%] .month[_ngcontent-%COMP%]{flex:1 40%;cursor:pointer}header[_ngcontent-%COMP%] .month[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{padding:12px 20px;position:relative;box-sizing:border-box}header[_ngcontent-%COMP%] .month[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:after{transition:left .15s ease-in-out;content:"";position:absolute;height:12px;width:12px;top:0;bottom:0;left:-6px;margin:auto;display:block;transform:rotate(180deg);background-image:url(assets/arrow.svg);background-size:contain;background-repeat:no-repeat}header[_ngcontent-%COMP%] .program[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{padding:12px 10px 12px 0;box-sizing:border-box}header[_ngcontent-%COMP%] .program[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{flex:1 20%;text-align:right}@media (min-width: 800px){header[_ngcontent-%COMP%] .program[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%], header[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{flex:0 0 150px}}.content-wrapper[_ngcontent-%COMP%] .group-header[_ngcontent-%COMP%]{display:flex;width:100%;padding:12px 40px;box-sizing:border-box;background-color:#34344580}@media (max-width: 800px){.content-wrapper[_ngcontent-%COMP%] .group-header[_ngcontent-%COMP%]{padding:12px 15px}}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;cursor:pointer;border-bottom:1px solid transparent;display:flex;width:100%;padding:12px 40px;box-sizing:border-box}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(odd){background-color:#18182099}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(even){background-color:#20202966}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover{background-color:#ffffff05}body[theme=new-dark] [_nghost-%COMP%] .content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover{background-color:#121212!important}body[theme=light] [_nghost-%COMP%] .content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover{background-color:#0000000d!important}@media (max-width: 800px){.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{padding:12px 15px}}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .month[_ngcontent-%COMP%]{padding-left:10px;box-sizing:border-box}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .month[_ngcontent-%COMP%]{flex:1 40%;padding-left:0;position:relative;transition:padding-left .15s ease-in-out}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .program[_ngcontent-%COMP%], .content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%]{flex:1 20%;text-align:right;padding-right:10px;font-size:15px;box-sizing:border-box}@media (min-width: 800px){.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .program[_ngcontent-%COMP%], .content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%]{flex:0 0 150px}}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .program[_ngcontent-%COMP%]{color:#f8b03b}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .allocation[_ngcontent-%COMP%]{color:#28e8ff}.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{flex:1 20%;text-align:right;font-size:15px}@media (min-width: 800px){.content-wrapper[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{flex:0 0 150px}} .mat-form-field{max-width:140px} .mat-tooltip.after{border:0;background-color:#0006;position:relative;overflow:initial!important} .mat-tooltip.after:after{position:absolute;margin:auto;top:0;bottom:0;left:-8px;height:0;content:"";display:block;border-top:6px solid transparent;border-bottom:7px solid transparent;border-right:8px solid rgba(0,0,0,.4)} .mat-tooltip.above{border:0;background-color:#0006;position:relative;overflow:initial!important} .mat-tooltip.above:after{position:absolute;margin:auto;left:0;right:0;bottom:-10px;width:0;content:"";display:block;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid rgba(0,0,0,.4)}body[theme=light] [_nghost-%COMP%] {background-color:#fff}body[theme=light] [_nghost-%COMP%] .overview{background:linear-gradient(to bottom,white,#E6E6E6)}body[theme=light] [_nghost-%COMP%] .overview .simple{border-left-color:transparent}body[theme=light] [_nghost-%COMP%] .overview .simple .customer{color:#17687f!important}body[theme=light] [_nghost-%COMP%] .overview .simple .plan, body[theme=light] [_nghost-%COMP%] .overview .simple .reserve{color:#666!important}body[theme=light] [_nghost-%COMP%] .overview .data-header{background-color:#fff}body[theme=light] [_nghost-%COMP%] header{background-color:#e6e6e6!important;border-bottom:2px solid white}body[theme=light] [_nghost-%COMP%] header .month{color:#333;font-weight:700}body[theme=light] [_nghost-%COMP%] header .total-allocation{color:#17687f;font-weight:700}body[theme=light] [_nghost-%COMP%] header .total-program{color:#e59123;font-weight:700}body[theme=light] [_nghost-%COMP%] .group-header{background-color:#e6e6e6!important;color:#666;font-weight:700}body[theme=light] [_nghost-%COMP%] .row{background-color:#fff!important;border-bottom:1px solid #E6E6E6!important}body[theme=light] [_nghost-%COMP%] .row .month{color:#333!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .row .percent{color:#0d0d0d!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .row .allocation{color:#17687f!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .row .program{color:#e59123!important;font-weight:700}'],data:{animation:[(0,i.X$)("list",[(0,i.eR)("* => *",[(0,i.IO)(":enter",(0,i.oB)({opacity:0}),{optional:!0}),(0,i.IO)(":enter",(0,i.EY)("100ms",(0,i.jt)("300ms ease-in",(0,i.oB)({opacity:1}))),{optional:!0})])]),(0,i.X$)("fade",[(0,i.SB)("false",(0,i.oB)({opacity:0,height:0,overflow:"hidden"})),(0,i.SB)("true",(0,i.oB)({opacity:1,height:"35px",overflow:"initial"})),(0,i.eR)("false => true",(0,i.jt)("250ms",(0,i.oB)({opacity:1,height:"35px",overflow:"initial"})))])]}}),e})(),data:{level:3}}]}];let _t=(()=>{class e{}return e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[p.ez,m.Bz.forChild(ft),$.m]]}),e})()},64066:(q,w,h)=>{h.d(w,{$:()=>i,K:()=>y});var p=h(29590),O=h(44498),k=h(3184);class i{transform(t,M=!1,m=!0){return y(t,M,m,this.language)}}function y(g,t=!1,M=!0,m="en"){if(isNaN(g))return"-";let f;return 0==(g=Math.round(g))?"0":(f=g>0?t?"+ "+parseInt(Math.abs(g).toFixed(0),10).toLocaleString(m):g<0?"- "+parseInt(Math.abs(g).toFixed(0),10).toLocaleString(m):parseInt(Math.abs(g).toFixed(0),10).toLocaleString(m):t||g<0?"- "+parseInt(Math.abs(g).toFixed(0),10).toLocaleString(m):parseInt(Math.abs(g).toFixed(0),10).toLocaleString(m),M?f:f.replace(/[,.]/g,""))}i.\u0275fac=function(t){return new(t||i)},i.\u0275pipe=k.Yjl({name:"toNumber",type:i,pure:!0}),function(g,t,M,m){var A,f=arguments.length,x=f<3?t:null===m?m=Object.getOwnPropertyDescriptor(t,M):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)x=Reflect.decorate(g,t,M,m);else for(var T=g.length-1;T>=0;T--)(A=g[T])&&(x=(f<3?A(x):f>3?A(t,M,x):A(t,M))||x);f>3&&x&&Object.defineProperty(t,M,x)}([(0,p.cB)(O.Z.GetLanguage),function(g,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",String)}()],i.prototype,"language",void 0)}}]);
//# sourceMappingURL=93.289aac6708a09374.js.map