-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path157.d110afeeeeb55726.js
More file actions
2 lines (2 loc) · 101 KB
/
Copy path157.d110afeeeeb55726.js
File metadata and controls
2 lines (2 loc) · 101 KB
1
2
"use strict";(self.webpackChunkdip=self.webpackChunkdip||[]).push([[157],{43299:(B,y,c)=>{c.d(y,{j:()=>O});var s=c(31631);const O=(0,s.X$)("routerTransition",[(0,s.eR)(":increment",[(0,s.IO)(":enter, :leave",(0,s.oB)({overflow:"hidden"}),{optional:!0}),(0,s.ru)([(0,s.IO)(":enter",[(0,s.oB)({transform:"translateX(100%)"}),(0,s.jt)("0.5s ease-in-out",(0,s.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,s.IO)(":leave",[(0,s.oB)({transform:"translateX(0%)"}),(0,s.jt)("0.5s ease-in-out",(0,s.oB)({transform:"translateX(-100%)"}))],{optional:!0})])]),(0,s.eR)(":decrement",[(0,s.IO)(":enter, :leave",(0,s.oB)({overflow:"hidden"}),{optional:!0}),(0,s.ru)([(0,s.IO)(":enter",[(0,s.oB)({transform:"translateX(-100%)"}),(0,s.jt)("0.5s ease-in-out",(0,s.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,s.IO)(":leave",[(0,s.oB)({transform:"translateX(0%)"}),(0,s.jt)("0.5s ease-in-out",(0,s.oB)({left:0,transform:"translateX(100%)"}))],{optional:!0})])])])},46157:(B,y,c)=>{c.r(y),c.d(y,{ProductionProgramModule:()=>Ut});var s=c(36362),O=c(85861),b=c(32714),T=c(5830),Z=c(70946),p=c(31631),M=c(56908),h=c(93295),m=c(19180),t=c(3184),v=c(33935),f=c(50318),x=c(64066);function I(n,r){if(1&n&&(t.TgZ(0,"div",10),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw().$implicit,o=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,1,o._data.sumByIndex(o.rows[e],17)))}}function A(n,r){if(1&n&&(t.TgZ(0,"div",10),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw().$implicit,o=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,1,o._data.sumByIndex(o.rows[e],15)))}}function F(n,r){if(1&n&&(t.TgZ(0,"div",10),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw().$implicit,o=t.oxw();t.xp6(1),t.Oqu(t.lcZ(2,1,o._data.sumByIndex(o.rows[e],22)))}}const k=function(n){return{zero:n}};function Q(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",2),t.NdJ("click",function(){const a=t.CHM(e).$implicit;return t.oxw().goZone(a)}),t.TgZ(1,"div",3)(2,"div",4)(3,"div",5),t.YNc(4,I,3,3,"div",6),t.ALo(5,"async"),t.qZA(),t.TgZ(6,"div",7),t.YNc(7,A,3,3,"div",6),t.ALo(8,"async"),t.qZA(),t.TgZ(9,"div",8),t.YNc(10,F,3,3,"div",6),t.ALo(11,"async"),t.qZA()()(),t.TgZ(12,"div",9),t._uU(13),t.qZA()()}if(2&n){const e=r.$implicit,o=t.oxw();t.Udp("width",o.barsWidth,"%"),t.xp6(3),t.Udp("height",o.zones[e].percentPrevious,"%"),t.Q6J("ngClass",t.VKq(21,k,!o.ready)),t.xp6(1),t.Q6J("ngIf",!t.lcZ(5,15,o._data.mobile$)),t.xp6(2),t.Udp("height",o.zones[e].percentActual,"%"),t.Q6J("ngClass",t.VKq(23,k,!o.ready)),t.xp6(1),t.Q6J("ngIf",!t.lcZ(8,17,o._data.mobile$)),t.xp6(2),t.Udp("height",o.zones[e].percentReserve,"%"),t.Q6J("ngClass",t.VKq(25,k,!o.ready)),t.xp6(1),t.Q6J("ngIf",!t.lcZ(11,19,o._data.mobile$)),t.xp6(3),t.Oqu(o.zones[e].title.trim())}}let V=(()=>{class n{constructor(e,o,i,a){this._data=e,this.config=o,this.router=i,this.route=a,this.ready=!1,this.rows=[],this.zones={},this.zoneKeys=[],this.maxTotal=0,this.maxReserve=0,this.barsWidth=0,window.pp_graphic=this}ngOnChanges(e){this.zoneKeys=[];const i=e.year?e.year.currentValue:this.year;let a=(e.data?e.data.currentValue:this.data).filter(u=>u[13]==i).reduce((u,P)=>(u[P[0]]=u[P[0]]||[],u[P[0]].push(P),u),{});for(var l in this.zones=[],this.maxReserve=0,a)this.zones[l]={title:a[l][0]["en"==this.config.config.language?1:2],actual:parseInt(this._data.sumByIndex(a[l],15)),previous:parseInt(this._data.sumByIndex(a[l],17)),reserve:parseInt(this._data.sumByIndex(a[l],22))},this.zones[l].reserve>this.maxReserve&&(this.maxReserve=this.zones[l].reserve);this.rows=this._data.classifyByIndex(this._data.productionProgramData.filter(u=>u[13]==i),0);let d=0;for(var l in this.zones)this.zones[l].actual>d&&(d=this.zones[l].actual),this.zones[l].previous>d&&(d=this.zones[l].previous),this.zones[l].reserve>d&&(d=this.zones[l].reserve);for(var l in this.maxTotal=d,this.zones){let P=100*this.zones[l].actual/d,_=100*this.zones[l].previous/d,g=100*this.zones[l].reserve/this.maxTotal;this.zones[l].percentActual=(0==parseInt(P.toString())?1:P).toFixed(0),this.zones[l].percentPrevious=(0==parseInt(_.toString())?1:_).toFixed(0),this.zones[l].percentReserve=(0==parseInt(g.toString())?1:g).toFixed(0)}this.zoneKeys=Object.keys(this.zones),this.barsWidth=100/Object.keys(this.zones).length,setTimeout(()=>this.ready=!0,300)}goZone(e){this.router.navigate(["zone",e],{relativeTo:this.route,replaceUrl:!0})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(b.D),t.Y36(Z.E),t.Y36(O.F0),t.Y36(O.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["production-program-graphic"]],inputs:{data:"data",year:"year"},features:[t.TTD],decls:2,vars:2,consts:[[1,"wrapper"],["class","zone",3,"width","click",4,"ngFor","ngForOf"],[1,"zone",3,"click"],[1,"bars"],[2,"position","relative","height","100%"],[1,"previous",3,"ngClass"],["class","value",4,"ngIf"],[1,"actual",3,"ngClass"],[1,"reserve",3,"ngClass"],[1,"title"],[1,"value"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Q,14,27,"div",1),t.qZA()),2&e&&(t.Q6J("@list",o.zoneKeys.length),t.xp6(1),t.Q6J("ngForOf",o.zoneKeys))},directives:[s.sg,s.mk,s.O5],pipes:[s.Ov,x.$],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}.wrapper[_ngcontent-%COMP%]{height:100%}.zone[_ngcontent-%COMP%]{display:inline-block;height:100%;position:relative;cursor:pointer;transition:top .15s ease-in-out;top:0}.zone[_ngcontent-%COMP%]:hover{top:-10px}.zone[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{position:absolute;height:30px;bottom:0;left:0;width:100%;line-height:30px;text-align:center}.zone[_ngcontent-%COMP%] .bars[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;margin:auto;height:calc(100% - 40px);width:calc(100% - 20px)}.zone[_ngcontent-%COMP%] .bars[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;border-radius:3px;width:calc(50% - 2px);transition:height .7s ease-in-out;background:linear-gradient(to top,rgba(0,0,0,0),rgba(0,172,193,.5));border-top:3px solid #00ACC1;text-align:center;color:#ffffffb3;text-shadow:0 0 3px black;padding-top:5px;font-size:15px}.zone[_ngcontent-%COMP%] .bars[_ngcontent-%COMP%] .actual.zero[_ngcontent-%COMP%]{height:0%!important}.zone[_ngcontent-%COMP%] .bars[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;border-radius:3px;width:calc(50% - 2px);transition:height .7s ease-in-out;background:linear-gradient(to top,rgba(0,0,0,0),rgba(248,176,59,.5));border-top:3px solid #F8B03B}.zone[_ngcontent-%COMP%] .bars[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{position:absolute;top:-25px;text-align:center;width:100%;font-size:15px;color:#f8b03be6;text-shadow:0 0 3px black}.zone[_ngcontent-%COMP%] .bars[_ngcontent-%COMP%] .previous.zero[_ngcontent-%COMP%]{height:0%!important}.zone[_ngcontent-%COMP%] .bars[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0;border-radius:3px;width:calc(50% - 5px);transition:height .7s ease-in-out;background:linear-gradient(to top,rgba(0,0,0,0),rgba(255,255,255,.5));border-top:3px solid white;padding-top:5px}.zone[_ngcontent-%COMP%] .bars[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{position:absolute;top:-25px;text-align:center;width:100%;font-size:15px;color:#ffffffb3}.zone[_ngcontent-%COMP%] .bars[_ngcontent-%COMP%] .reserve.zero[_ngcontent-%COMP%]{height:0%!important} .actual{border-color:#00acc1} .previous{border-color:#f8b03b}body[theme=light] [_nghost-%COMP%] .actual{border-color:#17687f}body[theme=light] [_nghost-%COMP%] .previous{border-color:#e59123}body[theme=light] [_nghost-%COMP%] .zone .bars .actual{background:linear-gradient(to top,rgba(0,0,0,0),rgba(23,104,127,.6))!important;font-weight:700;border-top-color:#17687f!important}body[theme=light] [_nghost-%COMP%] .zone .bars .actual .value{color:#0009!important;text-shadow:0 0 3px white!important}body[theme=light] [_nghost-%COMP%] .zone .bars .previous{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%] .zone .bars .previous .value{color:#0009!important;text-shadow:0 0 3px white!important}body[theme=light] [_nghost-%COMP%] .zone .bars .reserve{background:linear-gradient(to top,rgba(0,0,0,0),rgba(128,128,128,.6))!important;text-shadow:0 0 3px white!important;font-weight:700;border-top-color:gray!important}body[theme=light] [_nghost-%COMP%] .zone .bars .reserve .value{color:#0009!important}body[theme=light] [_nghost-%COMP%] .zone .title{color:#333;font-weight:700}"],data:{animation:[(0,p.X$)("list",[(0,p.eR)("* => *",[(0,p.IO)(":enter",(0,p.oB)({opacity:0}),{optional:!0}),(0,p.IO)(":enter",(0,p.EY)("200ms",(0,p.jt)("300ms ease-in",(0,p.oB)({opacity:1}))),{optional:!0})])])]}}),n})();var D=c(72288),q=c(6178),L=c(71412),w=c(90587),U=c(38220);function G(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",23),t.NdJ("click",function(){const a=t.CHM(e).$implicit,l=t.oxw();return l.goZone(l.rowsGroupsGlobal[a.key][0][0])}),t.TgZ(1,"div",2),t._uU(2),t.qZA(),t.TgZ(3,"div",9),t._uU(4),t.ALo(5,"toNumber"),t.qZA(),t.TgZ(6,"div",10),t._uU(7),t.ALo(8,"toNumber"),t.qZA(),t.TgZ(9,"div",11),t._uU(10),t.ALo(11,"toNumber"),t.qZA()()}if(2&n){const e=r.$implicit,o=t.oxw();t.xp6(2),t.Oqu(o.rowsGroupsGlobal[e.key][0]["en"==o.config.config.language?1:2].trim()),t.xp6(2),t.Oqu(t.lcZ(5,4,o.data.sumByIndex(o.rowsGroupsGlobal[e.key],15))),t.xp6(3),t.Oqu(t.lcZ(8,6,o.data.sumByIndex(o.rowsGroupsGlobal[e.key],16))),t.xp6(3),t.Oqu(t.lcZ(11,8,o.data.sumByIndex(o.rowsGroupsGlobal[e.key],22)))}}function E(n,r){if(1&n&&(t.TgZ(0,"mat-option",24),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function K(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw().$implicit,o=t.oxw();t.xp6(1),t.Oqu(t.xi3(2,1,o.data.sumByIndex(o.rowsGroupsGlobal[e.key],21),!0))}}function $(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw().$implicit,o=t.oxw();t.xp6(1),t.Oqu(t.xi3(2,1,o.data.sumByIndex(o.rowsGroupsGlobal[e.key],24),!0))}}function j(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw().$implicit,o=t.oxw().$implicit,i=t.oxw();t.xp6(1),t.Oqu(t.xi3(2,1,i.data.sumByIndex(i.rowsGroupsDetail[o.key][e.key],21),!0))}}function H(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw().$implicit,o=t.oxw().$implicit,i=t.oxw();t.xp6(1),t.Oqu(t.xi3(2,1,i.data.sumByIndex(i.rowsGroupsDetail[o.key][e.key],24),!0))}}function S(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",29),t.NdJ("click",function(){const a=t.CHM(e).$implicit;return t.oxw(2).goPlant(a.key)}),t.TgZ(1,"div",14),t._uU(2),t.qZA(),t.TgZ(3,"div",9),t._uU(4),t.ALo(5,"toNumber"),t.qZA(),t.TgZ(6,"div",10),t._uU(7),t.ALo(8,"toNumber"),t.qZA(),t.TgZ(9,"div",19),t._uU(10),t.ALo(11,"toNumber"),t.YNc(12,j,3,4,"div",27),t.qZA(),t.TgZ(13,"div",11),t._uU(14),t.ALo(15,"toNumber"),t.YNc(16,H,3,4,"div",27),t.qZA()()}if(2&n){const e=r.$implicit,o=t.oxw().$implicit,i=t.oxw();t.xp6(2),t.Oqu(i.rowsGroupsDetail[o.key][e.key][0]["en"==i.config.config.language?7:6].trim()),t.xp6(2),t.Oqu(t.lcZ(5,7,i.data.sumByIndex(i.rowsGroupsDetail[o.key][e.key],15))),t.xp6(3),t.Oqu(t.lcZ(8,9,i.data.sumByIndex(i.rowsGroupsDetail[o.key][e.key],16))),t.xp6(3),t.Oqu(t.lcZ(11,11,i.data.sumByIndex(i.rowsGroupsDetail[o.key][e.key],17))),t.xp6(2),t.Q6J("ngIf",0!=i.data.sumByIndex(i.rowsGroupsDetail[o.key][e.key],21)),t.xp6(2),t.Oqu(t.lcZ(15,13,i.data.sumByIndex(i.rowsGroupsDetail[o.key][e.key],22))),t.xp6(2),t.Q6J("ngIf",0!=i.data.sumByIndex(i.rowsGroupsDetail[o.key][e.key],24))}}function X(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",25)(1,"div",26),t.NdJ("click",function(){const a=t.CHM(e).$implicit;return t.oxw().goZone(a.key)}),t.TgZ(2,"div",14),t._uU(3),t.qZA(),t.TgZ(4,"div",9),t._uU(5),t.ALo(6,"toNumber"),t.qZA(),t.TgZ(7,"div",10),t._uU(8),t.ALo(9,"toNumber"),t.qZA(),t.TgZ(10,"div",19),t._uU(11),t.ALo(12,"toNumber"),t.YNc(13,K,3,4,"div",27),t.qZA(),t.TgZ(14,"div",11),t._uU(15),t.ALo(16,"toNumber"),t.YNc(17,$,3,4,"div",27),t.qZA()(),t.YNc(18,S,17,15,"div",28),t.ALo(19,"keyvalue"),t.qZA()}if(2&n){const e=r.$implicit,o=t.oxw();t.xp6(3),t.Oqu(o.rowsGroupsGlobal[e.key][0]["en"==o.config.config.language?1:2].trim()),t.xp6(2),t.Oqu(t.lcZ(6,8,o.data.sumByIndex(o.rowsGroupsGlobal[e.key],15))),t.xp6(3),t.Oqu(t.lcZ(9,10,o.data.sumByIndex(o.rowsGroupsGlobal[e.key],16))),t.xp6(3),t.Oqu(t.lcZ(12,12,o.data.sumByIndex(o.rowsGroupsGlobal[e.key],17))),t.xp6(2),t.Q6J("ngIf",0!=o.data.sumByIndex(o.rowsGroupsGlobal[e.key],21)),t.xp6(2),t.Oqu(t.lcZ(16,14,o.data.sumByIndex(o.rowsGroupsGlobal[e.key],22))),t.xp6(2),t.Q6J("ngIf",0!=o.data.sumByIndex(o.rowsGroupsGlobal[e.key],24)),t.xp6(1),t.Q6J("ngForOf",t.lcZ(19,16,o.rowsGroupsDetail[e.key]))}}let N=(()=>{class n{constructor(e,o,i,a,l,d,u){this.data=e,this.api=o,this.route=i,this.config=a,this.router=l,this.translate=d,this.title=u,this.year="",this.plandate="",this.main_route="employees",this.main_route_slash="/employees",this.general_route="zone",this.second_level_route="region",this.resultsCount=0,this.years=[],this.rowsGroupsDetail={},this.ready=!1,this.title.setTitle(this.config.config.appTitle+" - "+this.translate.instant("menu.production_program"))}ngOnInit(){this.route.paramMap.subscribe(e=>{this.year=e.get("year"),0===this.data.productionProgramData.length?this.api.getSavedReportData(h.z3.ProductionProgram).subscribe(o=>{this.plandate=(0,m.hZ)(o[0][14],M),this.data.productionProgramData=o,this.rollupData()}):(this.plandate=(0,m.hZ)(this.data.productionProgramData[0][14],M),this.rollupData())})}getKeysCount(){return Object.keys(this.rowsGroupsGlobal).length||0}changeYear(e,o){localStorage.setItem("production-year",e),this.router.navigate([this.main_route,e],{replaceUrl:!0})}rollupData(){this.byYear=this.data.classifyByIndex(this.data.productionProgramData,13),this.years=Object.keys(this.byYear);const e=localStorage.getItem("production-year");if(e&&this.year!=e&&this.router.navigate([this.main_route_slash,e],{replaceUrl:!0}),this.year=e,-1==this.years.indexOf(this.year))localStorage.setItem("production-year",this.years[0]),this.router.navigate([this.main_route_slash,this.years[0]],{replaceUrl:!0});else{for(var o in this.rowsGroupsGlobal=this.data.classifyByIndex(this.data.productionProgramData.filter(i=>i[13]==this.year),0),this.rowsGroupsGlobal)this.rowsGroupsDetail[o]=this.data.classifyByIndex(this.rowsGroupsGlobal[o],3);this.resultsCount=Object.keys(this.rowsGroupsGlobal).length,setTimeout(()=>this.ready=!0)}}goZone(e){this.router.navigate([this.general_route,e],{relativeTo:this.route,replaceUrl:!0})}goPlant(e){this.router.navigate([this.second_level_route,e],{relativeTo:this.route,replaceUrl:!0})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(b.D),t.Y36(T.s),t.Y36(O.gz),t.Y36(Z.E),t.Y36(O.F0),t.Y36(v.sK),t.Y36(f.Dx))},n.\u0275cmp=t.Xpm({type:n,selectors:[["production-program-main"]],hostBindings:function(e,o){1&e&&t.NdJ("swiperight",function(a){return o.data.goFrom("production_program",a)})("swipeleft",function(a){return o.data.goFrom("production_program",a)})},decls:52,vars:43,consts:[[1,"report-header"],[1,"data-header"],[1,"empty"],[1,"report-date"],[1,"overview"],[1,"graphic"],[3,"year","data"],[1,"simple"],[1,"headers"],[1,"customer"],[1,"plan"],[1,"reserve"],["class","overview-group",3,"click",4,"ngFor","ngForOf"],[1,"wrapper"],[1,"title"],["matTooltipClass","after","matTooltipPosition","after",2,"width","70px","margin-left","10px",3,"matTooltip"],["ngDefaultControl","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["matTooltipClass","above","matTooltipPosition","above",2,"display","inline-block",3,"matTooltip"],[1,"total"],[1,"desktop"],[1,"mobile"],["class","zone",4,"ngFor","ngForOf"],[1,"overview-group",3,"click"],[3,"value"],[1,"zone"],[1,"zone-header",3,"click"],[4,"ngIf"],["class","plant",3,"click",4,"ngFor","ngForOf"],[1,"plant",3,"click"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"div",3),t._uU(4),t.ALo(5,"translate"),t.qZA()(),t.TgZ(6,"div",4)(7,"div",5),t._UZ(8,"production-program-graphic",6),t.qZA(),t.TgZ(9,"div",7)(10,"div",8),t._UZ(11,"div",2),t.TgZ(12,"div",9),t._uU(13,"KU"),t.qZA(),t.TgZ(14,"div",10),t._uU(15,"PL"),t.qZA(),t.TgZ(16,"div",11),t._uU(17,"SR"),t.qZA()(),t.YNc(18,G,12,10,"div",12),t.ALo(19,"keyvalue"),t.qZA()()(),t.TgZ(20,"div",13)(21,"header")(22,"div",14)(23,"mat-form-field",15),t.ALo(24,"translate"),t.TgZ(25,"mat-select",16),t.NdJ("ngModelChange",function(a){return o.year=a})("ngModelChange",function(a){return o.changeYear(a)}),t.YNc(26,E,2,2,"mat-option",17),t.qZA()()(),t.TgZ(27,"div",9)(28,"div",18),t.ALo(29,"translate"),t._uU(30),t.ALo(31,"translate"),t.qZA()(),t.TgZ(32,"div",10)(33,"div",18),t.ALo(34,"translate"),t._uU(35),t.ALo(36,"translate"),t.qZA()(),t.TgZ(37,"div",19)(38,"div",18),t.ALo(39,"translate"),t._uU(40),t.ALo(41,"translate"),t.qZA()(),t.TgZ(42,"div",11)(43,"div",18),t.ALo(44,"translate"),t.TgZ(45,"span",20),t._uU(46),t.ALo(47,"translate"),t.qZA(),t.TgZ(48,"span",21),t._uU(49,"SR"),t.qZA()()()(),t.YNc(50,X,20,18,"div",22),t.ALo(51,"keyvalue"),t.qZA()),2&e&&(t.xp6(4),t.AsE("",t.lcZ(5,19,"plandate"),": ",o.plandate,""),t.xp6(2),t.Q6J("@overview",o.ready),t.xp6(2),t.Q6J("year",o.year)("data",o.data.productionProgramData),t.xp6(10),t.Q6J("ngForOf",t.lcZ(19,21,o.rowsGroupsGlobal)),t.xp6(2),t.Q6J("@list",o.resultsCount),t.xp6(3),t.s9C("matTooltip",t.lcZ(24,23,"change.year")),t.xp6(2),t.Q6J("ngModel",o.year),t.xp6(1),t.Q6J("ngForOf",o.years),t.xp6(2),t.s9C("matTooltip",t.lcZ(29,25,"belong_to.customers")),t.xp6(2),t.Oqu(t.lcZ(31,27,"production_program.customer")),t.xp6(3),t.s9C("matTooltip",t.lcZ(34,29,"belong_to.plan")),t.xp6(2),t.Oqu(t.lcZ(36,31,"production_program.plan")),t.xp6(3),t.s9C("matTooltip",t.lcZ(39,33,"belong_to.plan_unit")),t.xp6(2),t.Oqu(t.lcZ(41,35,"production_program.total")),t.xp6(3),t.s9C("matTooltip",t.lcZ(44,37,"belong_to.reserved")),t.xp6(3),t.Oqu(t.lcZ(47,39,"production_program.reserve")),t.xp6(4),t.Q6J("ngForOf",t.lcZ(51,41,o.rowsGroupsGlobal)))},directives:[V,s.sg,D.KE,q.gM,L.gD,w.Fj,w.JJ,w.On,U.ey,s.O5],pipes:[v.X$,s.Nd,x.$],styles:['[_nghost-%COMP%]{display:block;left:0}.data-header[_ngcontent-%COMP%]{display:flex;width:100%;height:30px;line-height:30px;position:relative;padding:0 20px 0 15px;box-sizing:border-box}@media (min-width: 800px){.data-header[_ngcontent-%COMP%]{padding-right:40px;margin-bottom:-20px}}body[theme=light] [_nghost-%COMP%] .data-header[_ngcontent-%COMP%]{margin-top:20px}.data-header[_ngcontent-%COMP%] .empty[_ngcontent-%COMP%]{padding-left:5px;flex:1 100%}.data-header[_ngcontent-%COMP%] .report-date[_ngcontent-%COMP%]{flex:100%;text-align:right;letter-spacing:1px}.overview[_ngcontent-%COMP%]{display:flex;width:100%;max-height:0;overflow:hidden;transition:all .6s ease-in-out;border-color:#000}body[theme=new-dark] [_nghost-%COMP%] .overview[_ngcontent-%COMP%]{background-color:#151515}@media screen and (min-width: 600px) and (orientation: landscape){.overview[_ngcontent-%COMP%]{max-height:1000px;min-height:240px;overflow:auto}}@media (min-width: 800px){.overview[_ngcontent-%COMP%]{max-height:1000px;min-height:240px;overflow:auto}}.overview[_ngcontent-%COMP%] .graphic[_ngcontent-%COMP%]{flex:1 60%;padding:30px 30px 15px;max-width:60%}@media (min-width: 400px) and (max-width: 959.98px) and (orientation: landscape){.overview[_ngcontent-%COMP%] .graphic[_ngcontent-%COMP%]{flex:1 45%;max-width:45%;padding-bottom:30px}}.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%]{flex:1 40%;border-left:3px solid rgba(0,0,0,.35);padding:30px 20px 30px 30px;max-width:40%}@media (min-width: 400px) and (max-width: 959.98px) and (orientation: landscape){.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%]{flex:1 55%;max-width:55%;border-left:0}}.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .headers[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%]{display:flex;width:100%;line-height:40px;padding:0 15px;box-sizing:border-box}.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .headers[_ngcontent-%COMP%] .empty[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .headers[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .headers[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .headers[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%] .empty[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:1}.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .headers[_ngcontent-%COMP%] .empty[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%] .empty[_ngcontent-%COMP%]{flex:1 10%}.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .headers[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .headers[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .headers[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{text-align:right}.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%]{transition:background .1s ease-in-out;border-radius:5px;cursor:pointer}.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%]:hover{background-color:#ffffff0d}.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%] .empty[_ngcontent-%COMP%]{cursor:pointer}.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%]{color:#28e8ff;font-size:16px;font-weight:700}.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{font-size:16px;font-weight:700}.zone[_ngcontent-%COMP%]{display:block;position:relative}.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%]{display:flex;height:65px;padding:12px 40px;position:relative;border-bottom:1px solid transparent;background-color:#34344580;cursor:pointer}@media (max-width: 800px){.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%]{padding:12px 15px}}.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%]:hover{border-bottom-color:#f8b03b!important}.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{text-transform:uppercase;flex:1 35%}@media (min-width: 800px){.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{letter-spacing:1px}}.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{padding-right:10px;box-sizing:border-box}.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{flex:1 20%;text-align:right;font-size:16px;font-weight:700}@media (min-width: 800px){.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{flex:0 0 150px}}.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .total[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin-top:10px;opacity:.8}.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:1 10%;text-align:right}@media (min-width: 800px){.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:0 0 150px}}.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin-top:10px}.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%]{color:#28e8ff}.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{color:#f8b03b}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%]{display:flex;height:65px;padding:12px 40px;position:relative;cursor:pointer;border-bottom:1px solid transparent}@media (max-width: 800px){.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%]{padding:12px 15px}}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%]:hover{background-color:#ffffff05}body[theme=new-dark] [_nghost-%COMP%] .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%]:hover{background-color:#121212!important}body[theme=light] [_nghost-%COMP%] .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%]:hover{background-color:#0000000d!important}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%]:nth-child(even){background-color:#20202966}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%]:nth-child(odd){background-color:#18182099}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%]:hover .title[_ngcontent-%COMP%]{padding-left:30px;box-sizing:border-box}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%]:hover .title[_ngcontent-%COMP%]:after{left:10px}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 35%;padding-left:20px;position:relative;transition:padding-left .15s ease-in-out}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .title[_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}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{padding-right:10px;box-sizing:border-box}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{flex:1 20%;text-align:right;font-size:15px}@media (min-width: 800px){.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{flex:0 0 150px}}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .total[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin-top:10px;opacity:.8}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:1 10%;text-align:right}@media (min-width: 800px){.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:0 0 150px}}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin-top:10px}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%]{color:#28e8ff}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{color:#f8b03b}.wrapper[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;width:100%;height:40px;background-color:#20202966;padding:0 20px 0 15px;line-height:41px}@media (min-width: 800px){.wrapper[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{padding:0 40px}}.wrapper[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 35%;position:relative}.wrapper[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .mat-icon{margin-right:10px;font-size:22px}.wrapper[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:1 10%}@media (min-width: 800px){.wrapper[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:0 0 150px}}.wrapper[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .wrapper[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .wrapper[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .total[_ngcontent-%COMP%], .wrapper[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{text-align:right;text-transform:uppercase;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wrapper[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .wrapper[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .wrapper[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{flex:1 20%;padding-right:10px;box-sizing:border-box}@media (min-width: 800px){.wrapper[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .wrapper[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .wrapper[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{flex:0 0 150px}} .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)} .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}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 .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%] .header-row.plant{background-color:#e6e6e6}body[theme=light] [_nghost-%COMP%] .header-row.plant .title{color:#333;font-weight:700}body[theme=light] [_nghost-%COMP%] .header-row.plant .actual{color:#17687f}body[theme=light] [_nghost-%COMP%] .header-row.plant .previous{color:#e59123}body[theme=light] [_nghost-%COMP%] .zone-header{background-color:#e6e6e6!important}body[theme=light] [_nghost-%COMP%] .zone-header .title{color:#666;font-weight:700}body[theme=light] [_nghost-%COMP%] .zone-header .customer, body[theme=light] [_nghost-%COMP%] .zone-header .plan, body[theme=light] [_nghost-%COMP%] .zone-header .total, body[theme=light] [_nghost-%COMP%] .zone-header .reserve{font-weight:700}body[theme=light] [_nghost-%COMP%] .zone-header .customer{color:#17687f!important}body[theme=light] [_nghost-%COMP%] .zone-header .total{color:#e59123!important}body[theme=light] [_nghost-%COMP%] .zone-header .plan, body[theme=light] [_nghost-%COMP%] .zone-header .reserve{color:#666!important}body[theme=light] [_nghost-%COMP%] .plant{background-color:#fff!important;border-bottom:1px solid #E6E6E6!important}body[theme=light] [_nghost-%COMP%] .plant .title{color:#333!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .plant .plan, body[theme=light] [_nghost-%COMP%] .plant .reserve{color:#666!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .plant .customer{color:#17687f!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .plant .total{color:#e59123!important;font-weight:700}'],data:{animation:[(0,p.X$)("overview",[(0,p.SB)("false",(0,p.oB)({opacity:0})),(0,p.SB)("true",(0,p.oB)({opacity:1})),(0,p.eR)("* <=> *",(0,p.jt)("1000ms ease-in-out",(0,p.oB)({opacity:1})))]),(0,p.X$)("list",[(0,p.eR)("* => *",[(0,p.IO)(".zone:enter",(0,p.oB)({opacity:0}),{optional:!0}),(0,p.IO)(".zone:enter",(0,p.EY)("200ms",(0,p.jt)("300ms ease-in",(0,p.oB)({opacity:1}))),{optional:!0})])])]}}),n})();var W=c(43299);const tt=["o"];let et=(()=>{class n{constructor(e){this.data=e}getLevel(){return this.data.currentLevel=+this.outlet.activatedRouteData.level,this.outlet.activatedRouteData.level}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(b.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["production-program-wrapper"]],viewQuery:function(e,o){if(1&e&&t.Gf(tt,7),2&e){let i;t.iGM(i=t.CRH())&&(o.outlet=i.first)}},hostVars:1,hostBindings:function(e,o){2&e&&t.d8E("@routerTransition",o.getLevel())},decls:2,vars:0,consts:[["o","outlet"]],template:function(e,o){1&e&&t._UZ(0,"router-outlet",null,0)},directives:[O.lC],styles:["[_nghost-%COMP%]{position:relative}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{display:block} production-program-main, production-program-lvl2, production-program-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}@media (max-width: 600px){ .mobile{display:inline!important} .desktop{display:none}} .mobile{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:[W.j]}}),n})();var ot=c(30676),nt=c(32698);const z=function(n){return{negative:n}};let R=(()=>{class n{constructor(e){this.data=e,this.customerValue=0,this.planValue=0,this.totalValue=0,this.reserveValue=0,this.clockwise_customer=!1,this.clockwise_plan=!1,this.clockwise_total=!1,this.clockwise_reserve=!1,this.customer=0,this.plan=0,this.total=0,this.reserve=0}set setCustomer(e){this.customer=isNaN(e)?0:Math.abs(e),this.clockwise_customer=e>=0}set setPlan(e){this.plan=isNaN(e)?0:Math.abs(e),this.clockwise_plan=e>=0}set setTotal(e){this.total=isNaN(e)?0:Math.abs(e),this.clockwise_total=e>=0}set setReserve(e){this.reserve=isNaN(e)?0:Math.abs(e),this.clockwise_reserve=e>=0}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(b.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["dip-quadro-circular-meters"]],inputs:{setCustomer:["customer","setCustomer"],setPlan:["plan","setPlan"],setTotal:["total","setTotal"],setReserve:["reserve","setReserve"],customerValue:"customerValue",planValue:"planValue",totalValue:"totalValue",reserveValue:"reserveValue"},decls:24,vars:60,consts:[[1,"meter"],["matTooltipPosition","above","matTooltipClass","customer",1,"container",3,"matTooltip"],[1,"percent","cyan",3,"ngClass"],["background","rgba(0, 172, 193, .2)",3,"duration","animation","animationDelay","max","radius","stroke","current","color"],["matTooltipPosition","above","matTooltipClass","plan",1,"container",3,"matTooltip"],[1,"percent",3,"ngClass"],["background","rgba(255, 255, 255, .2)",3,"duration","animation","animationDelay","max","radius","stroke","current","color"],["matTooltipPosition","above","matTooltipClass","total",1,"container",3,"matTooltip"],[1,"percent","orange",3,"ngClass"],["background","rgba(243, 18, 40, .2)",3,"duration","animation","animationDelay","max","radius","stroke","current","color"],["matTooltipPosition","above","matTooltipClass","reserve",1,"container",3,"matTooltip"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t.ALo(2,"toNumber"),t.TgZ(3,"div",2),t._uU(4),t.qZA(),t._UZ(5,"round-progress",3),t.qZA()(),t.TgZ(6,"div",0)(7,"div",4),t.ALo(8,"toNumber"),t.TgZ(9,"div",5),t._uU(10),t.qZA(),t._UZ(11,"round-progress",6),t.qZA()(),t.TgZ(12,"div",0)(13,"div",7),t.ALo(14,"toNumber"),t.TgZ(15,"div",8),t._uU(16),t.qZA(),t._UZ(17,"round-progress",9),t.qZA()(),t.TgZ(18,"div",0)(19,"div",10),t.ALo(20,"toNumber"),t.TgZ(21,"div",5),t._uU(22),t.qZA(),t._UZ(23,"round-progress",6),t.qZA()()),2&e&&(t.xp6(1),t.Q6J("matTooltip",t.lcZ(2,44,o.customerValue)),t.xp6(2),t.Q6J("ngClass",t.VKq(52,z,!o.clockwise_customer)),t.xp6(1),t.hij("",o.customer,"%"),t.xp6(1),t.Q6J("duration",1e3)("animation","easeInOutCubic")("animationDelay",200)("max",100)("radius",30)("stroke",5)("current",o.customer)("color",o.data.lightTheme?"#17687F":"#00acc1"),t.xp6(2),t.Q6J("matTooltip",t.lcZ(8,46,o.planValue)),t.xp6(2),t.Q6J("ngClass",t.VKq(54,z,!o.clockwise_plan)),t.xp6(1),t.hij("",o.plan,"%"),t.xp6(1),t.Q6J("duration",1e3)("animation","easeInOutCubic")("animationDelay",200)("max",100)("radius",30)("stroke",5)("current",o.plan)("color",o.data.lightTheme?"grey":"#fff"),t.xp6(2),t.Q6J("matTooltip",t.lcZ(14,48,o.totalValue)),t.xp6(2),t.Q6J("ngClass",t.VKq(56,z,!o.clockwise_total)),t.xp6(1),t.hij("",o.total,"%"),t.xp6(1),t.Q6J("duration",1e3)("animation","easeInOutCubic")("animationDelay",200)("max",100)("radius",30)("stroke",5)("current",o.total)("color","#f2142c"),t.xp6(2),t.Q6J("matTooltip",t.lcZ(20,50,o.reserveValue)),t.xp6(2),t.Q6J("ngClass",t.VKq(58,z,!o.clockwise_reserve)),t.xp6(1),t.hij("",o.reserve,"%"),t.xp6(1),t.Q6J("duration",1e3)("animation","easeInOutCubic")("animationDelay",200)("max",100)("radius",30)("stroke",5)("current",o.reserve)("color",o.data.lightTheme?"grey":"#fff"))},directives:[q.gM,s.mk,nt.Z$],pipes:[x.$],styles:["[_nghost-%COMP%]{display:flex;flex:1 100%;height:128px;position:relative;background:linear-gradient(to bottom,rgba(255,255,255,0),rgba(52,52,69,.5));border-bottom:2px solid rgba(0,0,0,.05)}[_nghost-%COMP%] .meter[_ngcontent-%COMP%]{flex:1 25%;height:100%}[_nghost-%COMP%] .meter[_ngcontent-%COMP%]:not(:first-child){border-left:2px solid rgba(0,0,0,.35)}[_nghost-%COMP%] .meter[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{width:60px;height:60px;margin:35px auto 0;position:relative}[_nghost-%COMP%] .meter[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{position:absolute;height:17px;width:100%;margin:auto;text-align:center;top:0;bottom:0;font-size:15px} .mat-tooltip.customer{border-color:#00acc1!important}body[theme=light][_ngcontent-%COMP%] .mat-tooltip.customer{border-color:#000!important} .mat-tooltip.total{border-color:#f8b03b!important}body[theme=light] [_nghost-%COMP%]{border-bottom-color:#fff;background:linear-gradient(to bottom,white,#E6E6E6)}body[theme=light] [_nghost-%COMP%] .cyan[_ngcontent-%COMP%]{color:#17687f}body[theme=light] [_nghost-%COMP%] .orange[_ngcontent-%COMP%]{color:#e59123}body[theme=light] [_nghost-%COMP%] .meter[_ngcontent-%COMP%]{border-left-color:transparent}body[theme=light][_ngcontent-%COMP%] .mat-tooltip.actual{border-color:#17687f}body[theme=light][_ngcontent-%COMP%] .mat-tooltip.previous{border-color:#e59123}"],changeDetection:0}),n})();function rt(n,r){if(1&n&&(t.TgZ(0,"mat-option",20),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function it(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(t.lcZ(2,1,e.groupInfo.totalTotalDiff))}}function at(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(t.xi3(2,1,e.groupInfo.zoneTotalDiff,!0))}}function lt(n,r){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",21)(2,"div",4),t._uU(3,"TOTAL"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"toNumber"),t.qZA(),t.TgZ(7,"div",10),t._uU(8),t.ALo(9,"toNumber"),t.qZA(),t.TgZ(10,"div",11)(11,"div"),t._uU(12),t.ALo(13,"toNumber"),t.qZA(),t.YNc(14,it,3,3,"div",16),t.qZA(),t.TgZ(15,"div",12),t._uU(16),t.ALo(17,"toNumber"),t.qZA()(),t.TgZ(18,"div",22),t.NdJ("click",function(){return t.CHM(e),t.oxw().return()}),t.TgZ(19,"div",4)(20,"span",23),t.ALo(21,"translate"),t._uU(22),t.qZA()(),t.TgZ(23,"div",8),t._uU(24),t.ALo(25,"toNumber"),t.qZA(),t.TgZ(26,"div",10),t._uU(27),t.ALo(28,"toNumber"),t.qZA(),t.TgZ(29,"div",11)(30,"div"),t._uU(31),t.ALo(32,"toNumber"),t.qZA(),t.YNc(33,at,3,4,"div",16),t.qZA(),t.TgZ(34,"div",12),t._uU(35),t.ALo(36,"toNumber"),t.qZA()(),t.BQk()}if(2&n){const e=t.oxw();t.xp6(5),t.Oqu(t.lcZ(6,12,e.groupInfo.totalCustomer)),t.xp6(3),t.Oqu(t.lcZ(9,14,e.groupInfo.totalPlan)),t.xp6(4),t.Oqu(t.lcZ(13,16,e.groupInfo.totalTotal)),t.xp6(2),t.Q6J("ngIf",0!=e.groupInfo.totalTotalDiff),t.xp6(2),t.Oqu(t.lcZ(17,18,e.groupInfo.totalReserve)),t.xp6(4),t.s9C("matTooltip",t.lcZ(21,20,"return.main")),t.xp6(2),t.Oqu(e.groupInfo.zoneRows[0]["en"==e.config.config.language?2:1]),t.xp6(2),t.Oqu(t.lcZ(25,22,e.groupInfo.zoneCustomer)),t.xp6(3),t.Oqu(t.lcZ(28,24,e.groupInfo.zonePlan)),t.xp6(4),t.Oqu(t.lcZ(32,26,e.groupInfo.zoneTotal)),t.xp6(2),t.Q6J("ngIf",0!=e.groupInfo.zoneTotalDiff),t.xp6(2),t.Oqu(t.lcZ(36,28,e.groupInfo.zoneReserve))}}function st(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(t.xi3(2,1,e.groupInfo.zoneTotalDiff,!0))}}function gt(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(t.xi3(2,1,e.groupInfo.plantTotalDiff,!0))}}function ct(n,r){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",21)(2,"div",4),t._uU(3),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"toNumber"),t.qZA(),t.TgZ(7,"div",10),t._uU(8),t.ALo(9,"toNumber"),t.qZA(),t.TgZ(10,"div",11)(11,"div"),t._uU(12),t.ALo(13,"toNumber"),t.qZA(),t.YNc(14,st,3,4,"div",16),t.qZA(),t.TgZ(15,"div",12),t._uU(16),t.ALo(17,"toNumber"),t.qZA()(),t.TgZ(18,"div",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().return()}),t.TgZ(19,"div",4)(20,"span",23),t.ALo(21,"translate"),t._uU(22),t.qZA()(),t.TgZ(23,"div",8),t._uU(24),t.ALo(25,"toNumber"),t.qZA(),t.TgZ(26,"div",10),t._uU(27),t.ALo(28,"toNumber"),t.qZA(),t.TgZ(29,"div",11)(30,"div"),t._uU(31),t.ALo(32,"toNumber"),t.qZA(),t.YNc(33,gt,3,4,"div",16),t.qZA(),t.TgZ(34,"div",12),t._uU(35),t.ALo(36,"toNumber"),t.qZA()(),t.BQk()}if(2&n){const e=t.oxw();t.xp6(3),t.Oqu(e.groupInfo.zoneRows[0]["en"==e.config.config.language?2:1]),t.xp6(2),t.Oqu(t.lcZ(6,13,e.groupInfo.zoneCustomer)),t.xp6(3),t.Oqu(t.lcZ(9,15,e.groupInfo.zonePlan)),t.xp6(4),t.Oqu(t.lcZ(13,17,e.groupInfo.zoneTotal)),t.xp6(2),t.Q6J("ngIf",0!=e.groupInfo.zoneTotalDiff),t.xp6(2),t.Oqu(t.lcZ(17,19,e.groupInfo.zoneReserve)),t.xp6(4),t.s9C("matTooltip",t.lcZ(21,21,"return.main")),t.xp6(2),t.Oqu(e.groupInfo.plantRows[0]["en"==e.config.config.language?7:6]),t.xp6(2),t.Oqu(t.lcZ(25,23,e.groupInfo.plantCustomer)),t.xp6(3),t.Oqu(t.lcZ(28,25,e.groupInfo.plantPlan)),t.xp6(4),t.Oqu(t.lcZ(32,27,e.groupInfo.plantTotal)),t.xp6(2),t.Q6J("ngIf",0!=e.groupInfo.plantTotalDiff),t.xp6(2),t.Oqu(t.lcZ(36,29,e.groupInfo.plantReserve))}}function pt(n,r){if(1&n&&t._UZ(0,"dip-quadro-circular-meters",25),2&n){const e=t.oxw();t.Q6J("customer",e.groupInfo.progress1||0)("plan",e.groupInfo.progress2||0)("total",e.groupInfo.progress3||0)("reserve",e.groupInfo.progress4||0)("customerValue",e.groupInfo.progress1Value||0)("planValue",e.groupInfo.progress2Value||0)("totalValue",e.groupInfo.progress3Value||0)("reserveValue",e.groupInfo.progress4Value||0)}}function dt(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw().$implicit,o=t.oxw();t.xp6(1),t.Oqu(t.xi3(2,1,o.data.sumByIndex(o.groupInfo.regions[e],21),!0))}}const J=function(n){return[n]};function ut(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",26),t.NdJ("click",function(){const a=t.CHM(e).$implicit;return t.oxw().goProduct(a)}),t.TgZ(1,"div",4),t._uU(2),t.qZA(),t.TgZ(3,"div",27),t._uU(4),t.ALo(5,"toNumber"),t.qZA(),t.TgZ(6,"div",10),t._uU(7),t.ALo(8,"toNumber"),t.qZA(),t.TgZ(9,"div",28)(10,"div"),t._uU(11),t.ALo(12,"toNumber"),t.qZA(),t.YNc(13,dt,3,4,"div",16),t.qZA(),t.TgZ(14,"div",12),t._uU(15),t.ALo(16,"toNumber"),t.qZA()()}if(2&n){const e=r.$implicit,o=t.oxw();t.xp6(2),t.Oqu(o.groupInfo.regions[e][0][t.VKq(14,J,"en"==o.config.config.language?10:9)]),t.xp6(2),t.Oqu(t.lcZ(5,6,o.data.sumByIndex(o.groupInfo.regions[e],15))),t.xp6(3),t.Oqu(t.lcZ(8,8,o.data.sumByIndex(o.groupInfo.regions[e],16))),t.xp6(4),t.Oqu(t.lcZ(12,10,o.data.sumByIndex(o.groupInfo.regions[e],17))),t.xp6(2),t.Q6J("ngIf",0!=o.data.sumByIndex(o.groupInfo.regions[e],21)),t.xp6(2),t.Oqu(t.lcZ(16,12,o.data.sumByIndex(o.groupInfo.regions[e],22)))}}function ht(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw().$implicit,o=t.oxw();t.xp6(1),t.Oqu(t.xi3(2,1,o.data.sumByIndex(o.groupInfo.products[e],21),!0))}}function _t(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",26),t.NdJ("click",function(){const a=t.CHM(e).$implicit;return t.oxw().goRegion(a)}),t.TgZ(1,"div",4),t._uU(2),t.qZA(),t.TgZ(3,"div",27),t._uU(4),t.ALo(5,"toNumber"),t.qZA(),t.TgZ(6,"div",10),t._uU(7),t.ALo(8,"toNumber"),t.qZA(),t.TgZ(9,"div",28)(10,"div"),t._uU(11),t.ALo(12,"toNumber"),t.qZA(),t.YNc(13,ht,3,4,"div",16),t.qZA(),t.TgZ(14,"div",12),t._uU(15),t.ALo(16,"toNumber"),t.qZA()()}if(2&n){const e=r.$implicit,o=t.oxw();t.xp6(2),t.Oqu(o.groupInfo.products[e][0][t.VKq(14,J,"en"==o.config.config.language?12:11)]),t.xp6(2),t.Oqu(t.lcZ(5,6,o.data.sumByIndex(o.groupInfo.products[e],15))),t.xp6(3),t.Oqu(t.lcZ(8,8,o.data.sumByIndex(o.groupInfo.products[e],16))),t.xp6(4),t.Oqu(t.lcZ(12,10,o.data.sumByIndex(o.groupInfo.products[e],17))),t.xp6(2),t.Q6J("ngIf",0!=o.data.sumByIndex(o.groupInfo.products[e],21)),t.xp6(2),t.Oqu(t.lcZ(16,12,o.data.sumByIndex(o.groupInfo.products[e],22)))}}function vt(n,r){if(1&n&&(t.TgZ(0,"mat-option",19),t._uU(1),t.qZA()),2&n){const e=r.$implicit;t.Q6J("value",e),t.xp6(1),t.hij(" ",e," ")}}function Pt(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(t.lcZ(2,1,e.groupInfo.totalTotalDiff))}}function ft(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(t.xi3(2,1,e.groupInfo.zoneTotalDiff,!0))}}function Ct(n,r){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",20)(2,"div",4),t._uU(3,"TOTAL"),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"toNumber"),t.qZA(),t.TgZ(7,"div",10),t._uU(8),t.ALo(9,"toNumber"),t.qZA(),t.TgZ(10,"div",11)(11,"div"),t._uU(12),t.ALo(13,"toNumber"),t.qZA(),t.YNc(14,Pt,3,3,"div",16),t.qZA(),t.TgZ(15,"div",12),t._uU(16),t.ALo(17,"toNumber"),t.qZA()(),t.TgZ(18,"div",21),t.NdJ("click",function(){return t.CHM(e),t.oxw().return()}),t.TgZ(19,"div",4)(20,"span",22),t.ALo(21,"translate"),t._uU(22),t.qZA()(),t.TgZ(23,"div",8),t._uU(24),t.ALo(25,"toNumber"),t.qZA(),t.TgZ(26,"div",10),t._uU(27),t.ALo(28,"toNumber"),t.qZA(),t.TgZ(29,"div",11)(30,"div"),t._uU(31),t.ALo(32,"toNumber"),t.qZA(),t.YNc(33,ft,3,4,"div",16),t.qZA(),t.TgZ(34,"div",12),t._uU(35),t.ALo(36,"toNumber"),t.qZA()(),t.BQk()}if(2&n){const e=t.oxw();t.xp6(5),t.Oqu(t.lcZ(6,12,e.groupInfo.totalCustomer)),t.xp6(3),t.Oqu(t.lcZ(9,14,e.groupInfo.totalPlan)),t.xp6(4),t.Oqu(t.lcZ(13,16,e.groupInfo.totalTotal)),t.xp6(2),t.Q6J("ngIf",0!=e.groupInfo.totalTotalDiff),t.xp6(2),t.Oqu(t.lcZ(17,18,e.groupInfo.totalReserve)),t.xp6(4),t.s9C("matTooltip",t.lcZ(21,20,"return.main")),t.xp6(2),t.Oqu(e.groupInfo.zoneRows[0]["en"==e.config.config.language?1:2].trim()),t.xp6(2),t.Oqu(t.lcZ(25,22,e.groupInfo.zoneCustomer)),t.xp6(3),t.Oqu(t.lcZ(28,24,e.groupInfo.zonePlan)),t.xp6(4),t.Oqu(t.lcZ(32,26,e.groupInfo.zoneTotal)),t.xp6(2),t.Q6J("ngIf",0!=e.groupInfo.zoneTotalDiff),t.xp6(2),t.Oqu(t.lcZ(36,28,e.groupInfo.zoneReserve))}}function Ot(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(t.xi3(2,1,e.groupInfo.zoneTotalDiff,!0))}}function xt(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(t.xi3(2,1,e.groupInfo.plantTotalDiff,!0))}}function Mt(n,r){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",20)(2,"div",4),t._uU(3),t.qZA(),t.TgZ(4,"div",8),t._uU(5),t.ALo(6,"toNumber"),t.qZA(),t.TgZ(7,"div",10),t._uU(8),t.ALo(9,"toNumber"),t.qZA(),t.TgZ(10,"div",11)(11,"div"),t._uU(12),t.ALo(13,"toNumber"),t.qZA(),t.YNc(14,Ot,3,4,"div",16),t.qZA(),t.TgZ(15,"div",12),t._uU(16),t.ALo(17,"toNumber"),t.qZA()(),t.TgZ(18,"div",23),t.NdJ("click",function(){return t.CHM(e),t.oxw().returnToMain()}),t.TgZ(19,"div",4),t._uU(20),t.qZA(),t.TgZ(21,"div",8),t._uU(22),t.ALo(23,"toNumber"),t.qZA(),t.TgZ(24,"div",10),t._uU(25),t.ALo(26,"toNumber"),t.qZA(),t.TgZ(27,"div",11)(28,"div"),t._uU(29),t.ALo(30,"toNumber"),t.qZA(),t.YNc(31,xt,3,4,"div",16),t.qZA(),t.TgZ(32,"div",12),t._uU(33),t.ALo(34,"toNumber"),t.qZA()(),t.BQk()}if(2&n){const e=t.oxw();t.xp6(3),t.Oqu(e.groupInfo.zoneRows[0]["en"==e.config.config.language?1:2].trim()),t.xp6(2),t.Oqu(t.lcZ(6,12,e.groupInfo.zoneCustomer)),t.xp6(3),t.Oqu(t.lcZ(9,14,e.groupInfo.zonePlan)),t.xp6(4),t.Oqu(t.lcZ(13,16,e.groupInfo.zoneTotal)),t.xp6(2),t.Q6J("ngIf",0!=e.groupInfo.zoneTotalDiff),t.xp6(2),t.Oqu(t.lcZ(17,18,e.groupInfo.zoneReserve)),t.xp6(4),t.Oqu(e.groupInfo.plantRows[0]["en"==e.config.config.language?7:6].trim()),t.xp6(2),t.Oqu(t.lcZ(23,20,e.groupInfo.plantCustomer)),t.xp6(3),t.Oqu(t.lcZ(26,22,e.groupInfo.plantPlan)),t.xp6(4),t.Oqu(t.lcZ(30,24,e.groupInfo.plantTotal)),t.xp6(2),t.Q6J("ngIf",0!=e.groupInfo.plantTotalDiff),t.xp6(2),t.Oqu(t.lcZ(34,26,e.groupInfo.plantReserve))}}function wt(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(t.xi3(2,1,e.data.sumByIndex(e.groupInfo.productsPlain,21),!0))}}function bt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().return()}),t.TgZ(1,"div",4)(2,"span",22),t.ALo(3,"translate"),t._uU(4),t.qZA()(),t.TgZ(5,"div",8),t._uU(6),t.ALo(7,"toNumber"),t.qZA(),t.TgZ(8,"div",10),t._uU(9),t.ALo(10,"toNumber"),t.qZA(),t.TgZ(11,"div",11)(12,"div"),t._uU(13),t.ALo(14,"toNumber"),t.qZA(),t.YNc(15,wt,3,4,"div",16),t.qZA(),t.TgZ(16,"div",12),t._uU(17),t.ALo(18,"toNumber"),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.s9C("matTooltip",t.lcZ(3,7,"return.cities")),t.xp6(2),t.Oqu(e.groupInfo.productsPlain[0]["en"==e.config.config.language?10:9].trim()),t.xp6(2),t.Oqu(t.lcZ(7,9,e.data.sumByIndex(e.groupInfo.productsPlain,15))),t.xp6(3),t.Oqu(t.lcZ(10,11,e.data.sumByIndex(e.groupInfo.productsPlain,16))),t.xp6(4),t.Oqu(t.lcZ(14,13,e.data.sumByIndex(e.groupInfo.productsPlain,17))),t.xp6(2),t.Q6J("ngIf",0!=e.data.sumByIndex(e.groupInfo.productsPlain,21)),t.xp6(2),t.Oqu(t.lcZ(18,15,e.data.sumByIndex(e.groupInfo.productsPlain,22)))}}function yt(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(t.xi3(2,1,e.data.sumByIndex(e.groupInfo.regionsPlain,21),!0))}}function Zt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",24),t.NdJ("click",function(){return t.CHM(e),t.oxw().return()}),t.TgZ(1,"div",4),t._uU(2),t.qZA(),t.TgZ(3,"div",8),t._uU(4),t.ALo(5,"toNumber"),t.qZA(),t.TgZ(6,"div",10),t._uU(7),t.ALo(8,"toNumber"),t.qZA(),t.TgZ(9,"div",11)(10,"div"),t._uU(11),t.ALo(12,"toNumber"),t.qZA(),t.YNc(13,yt,3,4,"div",16),t.qZA(),t.TgZ(14,"div",12),t._uU(15),t.ALo(16,"toNumber"),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.groupInfo.regionsPlain[0]["en"==e.config.config.language?12:11].trim()),t.xp6(2),t.Oqu(t.lcZ(5,6,e.data.sumByIndex(e.groupInfo.regionsPlain,15))),t.xp6(3),t.Oqu(t.lcZ(8,8,e.data.sumByIndex(e.groupInfo.regionsPlain,16))),t.xp6(4),t.Oqu(t.lcZ(12,10,e.data.sumByIndex(e.groupInfo.regionsPlain,17))),t.xp6(2),t.Q6J("ngIf",0!=e.data.sumByIndex(e.groupInfo.regionsPlain,21)),t.xp6(2),t.Oqu(t.lcZ(16,12,e.data.sumByIndex(e.groupInfo.regionsPlain,22)))}}function It(n,r){if(1&n&&t._UZ(0,"dip-quadro-circular-meters",25),2&n){const e=t.oxw();t.Q6J("customer",e.groupInfo.progress1||0)("plan",e.groupInfo.progress2||0)("total",e.groupInfo.progress3||0)("reserve",e.groupInfo.progress4||0)("customerValue",e.groupInfo.progress1Value||0)("planValue",e.groupInfo.progress2Value||0)("totalValue",e.groupInfo.progress3Value||0)("reserveValue",e.groupInfo.progress4Value||0)}}function Tt(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw().$implicit,o=t.oxw(2);t.xp6(1),t.Oqu(t.xi3(2,1,o.data.sumByIndex(o.groupInfo.regions[e],21),!0))}}const Y=function(n){return[n]};function At(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",28),t.NdJ("click",function(){const a=t.CHM(e).$implicit;return t.oxw(2).goForRegion(a)}),t.TgZ(1,"div",4),t._uU(2),t.qZA(),t.TgZ(3,"div",29),t._uU(4),t.ALo(5,"toNumber"),t.qZA(),t.TgZ(6,"div",10),t._uU(7),t.ALo(8,"toNumber"),t.qZA(),t.TgZ(9,"div",30)(10,"div"),t._uU(11),t.ALo(12,"toNumber"),t.qZA(),t.YNc(13,Tt,3,4,"div",16),t.qZA(),t.TgZ(14,"div",12),t._uU(15),t.ALo(16,"toNumber"),t.qZA()()}if(2&n){const e=r.$implicit,o=t.oxw(2);t.xp6(2),t.Oqu(o.groupInfo.regions[e][0][t.VKq(14,Y,"en"==o.config.config.language?10:9)].trim()),t.xp6(2),t.Oqu(t.lcZ(5,6,o.data.sumByIndex(o.groupInfo.regions[e],15))),t.xp6(3),t.Oqu(t.lcZ(8,8,o.data.sumByIndex(o.groupInfo.regions[e],16))),t.xp6(4),t.Oqu(t.lcZ(12,10,o.data.sumByIndex(o.groupInfo.regions[e],17))),t.xp6(2),t.Q6J("ngIf",0!=o.data.sumByIndex(o.groupInfo.regions[e],21)),t.xp6(2),t.Oqu(t.lcZ(16,12,o.data.sumByIndex(o.groupInfo.regions[e],22)))}}function qt(n,r){if(1&n&&(t.ynx(0),t.TgZ(1,"div",26)(2,"div",4),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.YNc(5,At,17,16,"div",27),t.BQk()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"cities")),t.xp6(2),t.Q6J("ngForOf",null==e.groupInfo?null:e.groupInfo.regionKeys)}}function zt(n,r){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.ALo(2,"toNumber"),t.qZA()),2&n){const e=t.oxw().$implicit,o=t.oxw(2);t.xp6(1),t.Oqu(t.xi3(2,1,o.data.sumByIndex(o.groupInfo.products[e],21),!0))}}function kt(n,r){if(1&n){const e=t.EpF();t.TgZ(0,"div",28),t.NdJ("click",function(){const a=t.CHM(e).$implicit;return t.oxw(2).goForProduct(a)}),t.TgZ(1,"div",4),t._uU(2),t.qZA(),t.TgZ(3,"div",29),t._uU(4),t.ALo(5,"toNumber"),t.qZA(),t.TgZ(6,"div",10),t._uU(7),t.ALo(8,"toNumber"),t.qZA(),t.TgZ(9,"div",30)(10,"div"),t._uU(11),t.ALo(12,"toNumber"),t.qZA(),t.YNc(13,zt,3,4,"div",16),t.qZA(),t.TgZ(14,"div",12),t._uU(15),t.ALo(16,"toNumber"),t.qZA()()}if(2&n){const e=r.$implicit,o=t.oxw(2);t.xp6(2),t.Oqu(o.groupInfo.products[e][0][t.VKq(14,Y,"en"==o.config.config.language?12:11)].trim()),t.xp6(2),t.Oqu(t.lcZ(5,6,o.data.sumByIndex(o.groupInfo.products[e],15))),t.xp6(3),t.Oqu(t.lcZ(8,8,o.data.sumByIndex(o.groupInfo.products[e],16))),t.xp6(4),t.Oqu(t.lcZ(12,10,o.data.sumByIndex(o.groupInfo.products[e],17))),t.xp6(2),t.Q6J("ngIf",0!=o.data.sumByIndex(o.groupInfo.products[e],21)),t.xp6(2),t.Oqu(t.lcZ(16,12,o.data.sumByIndex(o.groupInfo.products[e],22)))}}function Dt(n,r){if(1&n&&(t.ynx(0),t.TgZ(1,"div",26)(2,"div",4),t._uU(3),t.ALo(4,"translate"),t.qZA()(),t.YNc(5,kt,17,16,"div",27),t.BQk()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,2,"companies")),t.xp6(2),t.Q6J("ngForOf",null==e.groupInfo?null:e.groupInfo.productKeys)}}const Lt=[{path:"",component:et,children:[{path:"",component:N,data:{level:1}},{path:":year",component:N,data:{level:1}},{path:":year/:type/:id",component:(()=>{class n{constructor(e,o,i,a,l,d,u){this.activatedRoute=e,this.data=o,this.api=i,this.config=a,this.router=l,this.translate=d,this.title=u,this.ZoneID=null,this.PlantID=null,this.plandate="",this.ready=!1,this.main_route="employees",this.general_route="zone",this.sub_level_a="city",this.sub_level_b="company",this.productionProgramData=[],this.year="",this.type="",this.id="",this.years=[],u.setTitle(this.config.config.appTitle+" - "+this.translate.instant("menu.production_program")),this.activatedRoute.paramMap.subscribe(P=>{if(this.year=P.get("year"),this.type=P.get("type"),this.id=P.get("id"),P.get("type")==this.general_route?this.ZoneID=P.get("id"):this.PlantID=P.get("id"),0==this.data.productionProgramData.length)this.api.getSavedReportData(h.z3.ProductionProgram).subscribe(_=>{if(this.plandate=(0,m.hZ)(_[0][14],M),this.data.productionProgramData=_,this.productionProgramData=_.filter(g=>g[13]==this.year),null!=this.ZoneID){const g=this.data.productionProgramData.filter(C=>C[0]==this.ZoneID);this.years=Object.keys(this.data.classifyByIndex(g,13))}else{const g=this.data.productionProgramData.filter(C=>C[3]==this.PlantID);this.years=Object.keys(this.data.classifyByIndex(g,13))}try{this.rollupData()}catch(g){this.router.navigate([this.main_route],{replaceUrl:!0})}});else{this.plandate=(0,m.hZ)(this.data.productionProgramData[0][14],M),this.productionProgramData=this.data.productionProgramData.filter(_=>_[13]==this.year),this.years=Object.keys(this.data.classifyByIndex(this.data.productionProgramData,13));try{this.rollupData()}catch(_){this.router.navigate([this.main_route],{replaceUrl:!0})}}})}changeYear(e,o){localStorage.setItem("production-year",e),this.router.navigate([this.main_route,e,this.type,this.id],{replaceUrl:!0})}rollupData(){let e;e=null!=this.ZoneID?this.data.classifyByIndex(this.productionProgramData,0)[this.ZoneID]:this.data.classifyByIndex(this.productionProgramData,3)[this.PlantID];let o=this.productionProgramData.reduce((a,l)=>(a[l[0]]=a[l[0]]||[],a[l[0]].push(l),a),{})[e[0][0]],i=this.productionProgramData.reduce((a,l)=>(a[l[3]]=a[l[3]]||[],a[l[3]].push(l),a),{})[e[0][3]];this.groupInfo={zone:null!=this.ZoneID,zoneRows:o,plantRows:i,rowsPlain:e,zoneID:e[0][0],plantID:e[0][3],totalCustomer:this.data.sumByIndex(this.productionProgramData,15),totalPlan:this.data.sumByIndex(this.productionProgramData,16),totalTotal:this.data.sumByIndex(this.productionProgramData,17),totalTotalDiff:this.data.sumByIndex(this.productionProgramData,21),totalReserve:this.data.sumByIndex(this.productionProgramData,22),zoneTitle:e[0]["en"==this.config.config.language?1:2],plantTitle:e[0]["en"==this.config.config.language?7:6],zoneCustomer:this.data.sumByIndex(o,15),zonePlan:this.data.sumByIndex(o,16),zoneTotal:this.data.sumByIndex(o,17),zoneTotalDiff:this.data.sumByIndex(o,21),zoneReserve:this.data.sumByIndex(o,22),plantCustomer:this.data.sumByIndex(i,15),plantPlan:this.data.sumByIndex(i,16),plantTotal:this.data.sumByIndex(i,17),plantTotalDiff:this.data.sumByIndex(i,21),plantReserve:this.data.sumByIndex(i,22),regions:this.data.classifyByIndex(e,"en"==this.config.config.language?10:9),products:this.data.classifyByIndex(e,"en"==this.config.config.language?12:11)},this.title.setTitle(this.config.config.appTitle+" - "+this.translate.instant("menu.production_program")+" - "+(null!=this.ZoneID?this.groupInfo.zoneTitle:this.groupInfo.plantTitle)),this.groupInfo.regionKeys=Object.keys(this.groupInfo.regions).sort(),this.groupInfo.productKeys=Object.keys(this.groupInfo.products).sort(),this.groupInfo.progress1Value=null!=this.ZoneID?this.groupInfo.zoneCustomer:this.groupInfo.plantCustomer,this.groupInfo.progress2Value=null!=this.ZoneID?this.groupInfo.zonePlan:this.groupInfo.plantPlan,this.groupInfo.progress3Value=null!=this.ZoneID?this.groupInfo.zoneTotal:this.groupInfo.plantTotal,this.groupInfo.progress4Value=null!=this.ZoneID?this.groupInfo.zoneReserve:this.groupInfo.plantReserve,this.groupInfo.progress1=null!=this.ZoneID?this.percent(this.groupInfo.zoneCustomer,this.groupInfo.totalCustomer):this.percent(this.groupInfo.plantCustomer,this.groupInfo.zoneCustomer),this.groupInfo.progress2=null!=this.ZoneID?this.percent(this.groupInfo.zonePlan,this.groupInfo.totalPlan):this.percent(this.groupInfo.plantPlan,this.groupInfo.zonePlan),this.groupInfo.progress3=null!=this.ZoneID?this.percent(this.groupInfo.zoneTotal,this.groupInfo.totalTotal):this.percent(this.groupInfo.plantTotal,this.groupInfo.zoneTotal),this.groupInfo.progress4=null!=this.ZoneID?this.percent(this.groupInfo.zoneReserve,this.groupInfo.totalReserve):this.percent(this.groupInfo.plantReserve,this.groupInfo.zoneReserve),this.groupInfo=Object.assign({},this.groupInfo),setTimeout(()=>this.ready=!0)}percent(e,o){return parseInt((100*e/o).toFixed(0))}return(){this.router.navigate(["../../"],{relativeTo:this.activatedRoute,replaceUrl:!0})}forward(){this.data.lastTap2&&this.router.navigate(this.data.lastTap2.type==this.sub_level_a?[this.sub_level_a,this.data.lastTap2.key]:[this.sub_level_b,this.data.lastTap2.key],{relativeTo:this.activatedRoute,replaceUrl:!0})}goProduct(e){this.data.lastTap={type:this.sub_level_a,key:encodeURI(e)},this.router.navigate([this.sub_level_a,e],{relativeTo:this.activatedRoute,replaceUrl:!0})}goRegion(e){this.data.lastTap={type:this.sub_level_b,key:encodeURI(e)},this.router.navigate([this.sub_level_b,e],{relativeTo:this.activatedRoute,replaceUrl:!0})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.gz),t.Y36(b.D),t.Y36(T.s),t.Y36(Z.E),t.Y36(O.F0),t.Y36(v.sK),t.Y36(f.Dx))},n.\u0275cmp=t.Xpm({type:n,selectors:[["production-program-lvl2"]],hostBindings:function(e,o){1&e&&t.NdJ("swiperight",function(a){return o.data.goFrom("production_program",a)})("swipeleft",function(a){return o.data.goFrom("production_program",a)})},decls:49,vars:44,consts:[[1,"overview"],[1,"data-header"],[1,"empty"],[1,"report-date"],[1,"title"],["matTooltipClass","after","matTooltipPosition","after",2,"width","70px","margin-left","10px",3,"matTooltip"],["ngDefaultControl","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"customer"],["matTooltipClass","above","matTooltipPosition","above",2,"display","inline-block",3,"matTooltip"],[1,"plan"],[1,"total"],[1,"reserve"],[1,"desktop"],[1,"mobile"],[1,"header-rows"],[4,"ngIf"],[3,"customer","plan","total","reserve","customerValue","planValue","totalValue","reserveValue",4,"ngIf"],[1,"title-header"],["class","lvl2-row",3,"click",4,"ngFor","ngForOf"],[3,"value"],[1,"header-row","total"],[1,"header-row","arrow","zone",3,"click"],["matTooltipClass","after","matTooltipPosition","after",3,"matTooltip"],[1,"header-row","arrow","plant",3,"click"],[3,"customer","plan","total","reserve","customerValue","planValue","totalValue","reserveValue"],[1,"lvl2-row",3,"click"],["matTooltipPosition","after",1,"customer","cyan"],[1,"total","orange"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"div",3),t._uU(4),t.ALo(5,"translate"),t.qZA()(),t.TgZ(6,"header")(7,"div",4)(8,"mat-form-field",5),t.ALo(9,"translate"),t.TgZ(10,"mat-select",6),t.NdJ("ngModelChange",function(a){return o.year=a})("ngModelChange",function(a){return o.changeYear(a)}),t.YNc(11,rt,2,2,"mat-option",7),t.qZA()()(),t.TgZ(12,"div",8)(13,"div",9),t.ALo(14,"translate"),t._uU(15),t.ALo(16,"translate"),t.qZA()(),t.TgZ(17,"div",10)(18,"div",9),t.ALo(19,"translate"),t._uU(20),t.ALo(21,"translate"),t.qZA()(),t.TgZ(22,"div",11)(23,"div",9),t.ALo(24,"translate"),t._uU(25),t.ALo(26,"translate"),t.qZA()(),t.TgZ(27,"div",12)(28,"div",9),t.ALo(29,"translate"),t.TgZ(30,"span",13),t._uU(31),t.ALo(32,"translate"),t.qZA(),t.TgZ(33,"span",14),t._uU(34,"SR"),t.qZA()()()(),t.TgZ(35,"div",15),t.YNc(36,lt,37,30,"ng-container",16),t.YNc(37,ct,37,31,"ng-container",16),t.qZA(),t.YNc(38,pt,1,8,"dip-quadro-circular-meters",17),t.TgZ(39,"div",18)(40,"div",4),t._uU(41),t.ALo(42,"translate"),t.qZA()(),t.YNc(43,ut,17,16,"div",19),t.TgZ(44,"div",18)(45,"div",4),t._uU(46),t.ALo(47,"translate"),t.qZA()(),t.YNc(48,_t,17,16,"div",19),t.qZA()),2&e&&(t.xp6(4),t.AsE("",t.lcZ(5,20,"plandate"),": ",o.plandate,""),t.xp6(4),t.s9C("matTooltip",t.lcZ(9,22,"change.year")),t.xp6(2),t.Q6J("ngModel",o.year),t.xp6(1),t.Q6J("ngForOf",o.years),t.xp6(2),t.s9C("matTooltip",t.lcZ(14,24,"belong_to.customers")),t.xp6(2),t.Oqu(t.lcZ(16,26,"production_program.customer")),t.xp6(3),t.s9C("matTooltip",t.lcZ(19,28,"belong_to.plan")),t.xp6(2),t.Oqu(t.lcZ(21,30,"production_program.plan")),t.xp6(3),t.s9C("matTooltip",t.lcZ(24,32,"belong_to.plan_unit")),t.xp6(2),t.Oqu(t.lcZ(26,34,"production_program.total")),t.xp6(3),t.s9C("matTooltip",t.lcZ(29,36,"belong_to.reserved")),t.xp6(3),t.Oqu(t.lcZ(32,38,"production_program.reserve")),t.xp6(5),t.Q6J("ngIf",null!=o.ZoneID&&o.groupInfo),t.xp6(1),t.Q6J("ngIf",null!=o.PlantID&&o.groupInfo),t.xp6(1),t.Q6J("ngIf",o.ready&&o.groupInfo),t.xp6(3),t.Oqu(t.lcZ(42,40,"cities")),t.xp6(2),t.Q6J("ngForOf",null==o.groupInfo?null:o.groupInfo.regionKeys),t.xp6(3),t.Oqu(t.lcZ(47,42,"companies")),t.xp6(2),t.Q6J("ngForOf",null==o.groupInfo?null:o.groupInfo.productKeys))},directives:[D.KE,q.gM,L.gD,w.Fj,w.JJ,w.On,s.sg,U.ey,s.O5,R],pipes:[v.X$,x.$],styles:['[_nghost-%COMP%]{display:block;width:100%;left:0;touch-action:pan-y!important}.overview[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;width:100%}.overview[_ngcontent-%COMP%] .data-header[_ngcontent-%COMP%]{display:flex;flex:1 100%;height:30px;line-height:30px;position:relative;padding:0 20px 0 15px;box-sizing:border-box}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .data-header[_ngcontent-%COMP%]{padding-right:40px;margin-top:20px}}.overview[_ngcontent-%COMP%] .data-header[_ngcontent-%COMP%] .empty[_ngcontent-%COMP%]{flex:1 70%;padding-left:5px;position:relative}.overview[_ngcontent-%COMP%] .data-header[_ngcontent-%COMP%] .report-date[_ngcontent-%COMP%]{flex:1 100%;text-align:right;letter-spacing:1px}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%]{display:flex;flex:1 100%;padding:12px 40px}@media (max-width: 800px){.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%]{padding:12px 15px 12px 20px}}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 35%;position:relative}.overview[_ngcontent-%COMP%] .header-row.total[_ngcontent-%COMP%]{background-color:#34344580}.overview[_ngcontent-%COMP%] .header-row.arrow[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]:after{transition:left .2s ease-in-out;content:"";position:absolute;height:12px;width:12px;top:2px;left:-2px;transform:rotate(180deg);margin:auto;display:block;background-image:url(assets/arrow.svg);background-size:contain;background-repeat:no-repeat}.overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%]{cursor:pointer}.overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%]{background-color:#20202966;cursor:pointer}.overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{padding-left:25px}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{flex:1 20%;text-align:right;font-size:16px;font-weight:700;padding-right:10px}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{flex:0 0 150px}}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .total[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){margin-top:10px;opacity:.8}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:1 10%;text-align:right}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:0 0 150px}}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%]{color:#28e8ff}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{color:#f8b03b}.overview[_ngcontent-%COMP%] .meters[_ngcontent-%COMP%]{display:flex;flex:1 100%;height:160px;position:relative;background:linear-gradient(to bottom,#000,#303030);border-bottom:3px solid black}.overview[_ngcontent-%COMP%] .meters[_ngcontent-%COMP%] .meter[_ngcontent-%COMP%]{flex:1 50%;height:100%}.overview[_ngcontent-%COMP%] .meters[_ngcontent-%COMP%] .meter[_ngcontent-%COMP%]:nth-child(2){border-left:3px solid black}.overview[_ngcontent-%COMP%] .meters[_ngcontent-%COMP%] .meter[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{width:120px;height:120px;margin:20px auto 0;position:relative}.overview[_ngcontent-%COMP%] .meters[_ngcontent-%COMP%] .meter[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{position:absolute;height:30px;width:100%;margin:auto;text-align:center;top:0;bottom:0;font-size:27px}.overview[_ngcontent-%COMP%] .title-header[_ngcontent-%COMP%]{flex:1 100%;padding:12px 40px;display:flex;text-transform:uppercase;background-color:#34344580}@media (max-width: 800px){.overview[_ngcontent-%COMP%] .title-header[_ngcontent-%COMP%]{padding:12px 15px}}.overview[_ngcontent-%COMP%] .title-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 100%}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .title-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{letter-spacing:1px}}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]{flex:1 100%;padding:12px 40px;height:65px;display:flex;cursor:pointer;border-bottom:1px solid transparent}@media (max-width: 800px){.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]{padding:12px 15px}}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]:hover{background-color:#ffffff05}body[theme=new-dark] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]:hover{background-color:#121212!important}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]:hover{background-color:#0000000d!important}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]:nth-child(even){background-color:#20202966}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]:nth-child(odd){background-color:#18182099}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]:hover .title[_ngcontent-%COMP%]{padding-left:30px}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]:hover .title[_ngcontent-%COMP%]:after{left:15px}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 35%;padding-left:20px;position:relative;transition:padding-left .15s ease-in-out}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .title[_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}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{flex:1 20%;text-align:right;padding-right:10px;font-size:15px}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{flex:0 0 150px}}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .total[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){margin-top:10px;opacity:.8}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:10%;text-align:right}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:0 0 150px}}.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;width:100%;height:35px;padding:0 20px 0 15px;line-height:35px}@media (min-width: 800px){.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{padding:0 40px}}.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 35%;position:relative}.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .mat-icon{margin-right:10px;font-size:22px}.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:1 10%}@media (min-width: 800px){.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:0 0 150px}}.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .total[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{text-align:right;text-transform:uppercase;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{flex:1 20%;padding-right:10px;box-sizing:border-box}@media (min-width: 800px){.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{flex:0 0 150px}} .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)}body[theme=light] [_nghost-%COMP%] {background-color:#fff}body[theme=light] [_nghost-%COMP%] .header-row.plant, body[theme=light] [_nghost-%COMP%] .header-row.total, body[theme=light] [_nghost-%COMP%] .header-row.zone{background-color:#e6e6e6!important;border-bottom:2px solid white}body[theme=light] [_nghost-%COMP%] .header-row.plant .title, body[theme=light] [_nghost-%COMP%] .header-row.total .title, body[theme=light] [_nghost-%COMP%] .header-row.zone .title{color:#333}body[theme=light] [_nghost-%COMP%] .header-row.plant>div, body[theme=light] [_nghost-%COMP%] .header-row.total>div, body[theme=light] [_nghost-%COMP%] .header-row.zone>div{font-weight:700}body[theme=light] [_nghost-%COMP%] .header-row.plant .customer, body[theme=light] [_nghost-%COMP%] .header-row.total .customer, body[theme=light] [_nghost-%COMP%] .header-row.zone .customer{color:#17687f!important}body[theme=light] [_nghost-%COMP%] .header-row.plant .total, body[theme=light] [_nghost-%COMP%] .header-row.total .total, body[theme=light] [_nghost-%COMP%] .header-row.zone .total{color:#e59123!important}body[theme=light] [_nghost-%COMP%] .header-row.plant .plan, body[theme=light] [_nghost-%COMP%] .header-row.plant .reserve, body[theme=light] [_nghost-%COMP%] .header-row.total .plan, body[theme=light] [_nghost-%COMP%] .header-row.total .reserve, body[theme=light] [_nghost-%COMP%] .header-row.zone .plan, body[theme=light] [_nghost-%COMP%] .header-row.zone .reserve{color:#666!important}body[theme=light] [_nghost-%COMP%] .title-header{background-color:#e6e6e6!important}body[theme=light] [_nghost-%COMP%] .title-header .title{color:#666;font-weight:700}body[theme=light] [_nghost-%COMP%] .title-header .customer, body[theme=light] [_nghost-%COMP%] .title-header .plan, body[theme=light] [_nghost-%COMP%] .title-header .total, body[theme=light] [_nghost-%COMP%] .title-header .reserve{font-weight:700}body[theme=light] [_nghost-%COMP%] .title-header .customer{color:#17687f!important}body[theme=light] [_nghost-%COMP%] .title-header .total{color:#e59123!important}body[theme=light] [_nghost-%COMP%] .title-header .plan, body[theme=light] [_nghost-%COMP%] .title-header .reserve{color:#666!important}body[theme=light] [_nghost-%COMP%] .lvl2-row{background-color:#fff!important;border-bottom:1px solid #E6E6E6!important}body[theme=light] [_nghost-%COMP%] .lvl2-row .title{color:#333!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .lvl2-row .plan, body[theme=light] [_nghost-%COMP%] .lvl2-row .reserve{color:#666!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .lvl2-row .customer{color:#17687f!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .lvl2-row .total{color:#e59123!important;font-weight:700}']}),n})(),data:{level:2}},{path:":year/:type/:id/:type2/:region_id",component:(()=>{class n{constructor(e,o,i,a,l,d,u){this.activatedRoute=e,this.data=o,this.api=i,this.config=a,this.router=l,this.translate=d,this.title=u,this.ZoneID=null,this.PlantID=null,this.RegionID=null,this.ProductID=null,this.plandate="",this.ready=!1,this.main_route="employees",this.second_level_route="region",this.general_route="zone",this.sub_level_a="city",this.sub_level_b="company",this.productionProgramData=[],this.year="",this.type="",this.id="",this.type2="",this.region_id="",this.years=[],window.pp3=this,u.setTitle(this.config.config.appTitle+" - "+this.translate.instant("menu.production_program")),this.activatedRoute.paramMap.subscribe(P=>{if(this.year=P.get("year"),this.type=P.get("type"),this.type2=P.get("type2"),this.region_id=decodeURI(P.get("region_id")),this.id=P.get("id"),this.type==this.general_route?this.ZoneID=this.id:this.PlantID=this.id,this.type2==this.sub_level_a?(this.RegionID=decodeURI(this.region_id),this.ProductID=null):(this.ProductID=decodeURI(this.region_id),this.RegionID=null),0==this.data.productionProgramData.length)this.api.getSavedReportData(h.z3.ProductionProgram).subscribe(_=>{if(this.plandate=(0,m.hZ)(_[0][14],M),this.data.productionProgramData=_,this.productionProgramData=_.filter(g=>g[13]==this.year),null!=this.ZoneID)if(null!=this.RegionID){const g=this.data.productionProgramData.filter(C=>C[0]==this.ZoneID&&C["en"==this.config.config.language?10:9]==this.RegionID);this.years=Object.keys(this.data.classifyByIndex(g,13))}else{const g=this.data.productionProgramData.filter(C=>C[0]==this.ZoneID&&C["en"==this.config.config.language?12:11]==this.ProductID);this.years=Object.keys(this.data.classifyByIndex(g,13))}else if(null!=this.RegionID){const g=this.data.productionProgramData.filter(C=>C[3]==this.PlantID&&C["en"==this.config.config.language?10:9]==this.RegionID);this.years=Object.keys(this.data.classifyByIndex(g,13))}else{const g=this.data.productionProgramData.filter(C=>C[3]==this.PlantID&&C["en"==this.config.config.language?12:11]==this.ProductID);this.years=Object.keys(this.data.classifyByIndex(g,13))}try{this.rollupData()}catch(g){this.router.navigate([this.main_route],{replaceUrl:!0})}});else{if(this.plandate=(0,m.hZ)(this.data.productionProgramData[0][14],M),this.productionProgramData=this.data.productionProgramData.filter(_=>_[13]==this.year),null!=this.ZoneID)if(null!=this.RegionID){const _=this.data.productionProgramData.filter(g=>g[0]==this.ZoneID&&g["en"==this.config.config.language?10:9]==this.RegionID);this.years=Object.keys(this.data.classifyByIndex(_,13))}else{const _=this.data.productionProgramData.filter(g=>g[0]==this.ZoneID&&g["en"==this.config.config.language?12:11]==this.ProductID);this.years=Object.keys(this.data.classifyByIndex(_,13))}else if(null!=this.RegionID){const _=this.data.productionProgramData.filter(g=>g[3]==this.PlantID&&g["en"==this.config.config.language?10:9]==this.RegionID);this.years=Object.keys(this.data.classifyByIndex(_,13))}else{const _=this.data.productionProgramData.filter(g=>g[3]==this.PlantID&&g["en"==this.config.config.language?12:11]==this.ProductID);this.years=Object.keys(this.data.classifyByIndex(_,13))}try{this.rollupData()}catch(_){this.router.navigate([this.main_route],{replaceUrl:!0})}}})}goForProduct(e){this.router.navigate(["../../",this.sub_level_b,e],{relativeTo:this.activatedRoute,replaceUrl:!0})}goForRegion(e){this.router.navigate(["../../",this.sub_level_a,e],{relativeTo:this.activatedRoute,replaceUrl:!0})}changeYear(e,o){localStorage.setItem("production-year",e),this.router.navigate([this.main_route,e,this.type,this.id,this.type2,this.region_id],{replaceUrl:!0})}rollupData(){let e;e=null!=this.ZoneID?this.data.classifyByIndex(this.productionProgramData,0)[this.ZoneID]:this.data.classifyByIndex(this.productionProgramData,3)[this.PlantID];let o=this.productionProgramData.reduce((d,u)=>(d[u[0]]=d[u[0]]||[],d[u[0]].push(u),d),{})[e[0][0]],i=3,a=e[0][3];this.type===this.general_route&&(i=null!=this.ProductID?"en"===this.config.config.language?12:11:"en"===this.config.config.language?10:9,a=this.region_id);let l=e.reduce((d,u)=>(d[u[i]]=d[u[i]]||[],d[u[i]].push(u),d),{})[a];this.groupInfo={zone:null!=this.ZoneID,zoneRows:o,plantRows:l,rowsPlain:e,zoneID:e[0][0],plantID:e[0][3],totalCustomer:this.data.sumByIndex(this.productionProgramData,15),totalPlan:this.data.sumByIndex(this.productionProgramData,16),totalTotal:this.data.sumByIndex(this.productionProgramData,17),totalTotalDiff:this.data.sumByIndex(this.productionProgramData,21),totalReserve:this.data.sumByIndex(this.productionProgramData,22),zoneTitle:e[0]["en"==this.config.config.language?1:2],plantTitle:e[0]["en"==this.config.config.language?7:6],zoneCustomer:this.data.sumByIndex(o,15),zonePlan:this.data.sumByIndex(o,16),zoneTotal:this.data.sumByIndex(o,17),zoneTotalDiff:this.data.sumByIndex(o,21),zoneReserve:this.data.sumByIndex(o,22),plantCustomer:this.data.sumByIndex(l,15),plantPlan:this.data.sumByIndex(l,16),plantTotal:this.data.sumByIndex(l,17),plantTotalDiff:this.data.sumByIndex(l,21),plantReserve:this.data.sumByIndex(l,22),productsPlain:l.filter(d=>d["en"==this.config.config.language?10:9]==this.region_id),regionsPlain:l.filter(d=>d["en"==this.config.config.language?12:11]==this.region_id)},null!=this.RegionID&&0==this.groupInfo.productsPlain.length&&this.router.navigate(["../../"],{relativeTo:this.activatedRoute,replaceUrl:!0}),null!=this.ProductID&&0==this.groupInfo.regionsPlain.length&&this.router.navigate(["../../"],{relativeTo:this.activatedRoute,replaceUrl:!0}),null!=this.RegionID?(this.groupInfo.products=this.data.classifyByIndex(this.groupInfo.productsPlain,"en"==this.config.config.language?12:11),this.groupInfo.productKeys=Object.keys(this.groupInfo.products).sort()):(this.groupInfo.regions=this.data.classifyByIndex(this.groupInfo.regionsPlain,"en"==this.config.config.language?10:9),this.groupInfo.regionKeys=Object.keys(this.groupInfo.regions).sort()),this.title.setTitle(this.config.config.appTitle+" - "+this.translate.instant("menu.production_program")+" - "+(null!=this.ZoneID?this.groupInfo.zoneTitle:this.groupInfo.plantTitle)+" - "+(null!=this.RegionID?this.RegionID:this.ProductID)),this.groupInfo.progress1Value=this.data.sumByIndex(null!=this.RegionID?this.groupInfo.productsPlain:this.groupInfo.regionsPlain,15),this.groupInfo.progress2Value=this.data.sumByIndex(null!=this.RegionID?this.groupInfo.productsPlain:this.groupInfo.regionsPlain,16),this.groupInfo.progress3Value=this.data.sumByIndex(null!=this.RegionID?this.groupInfo.productsPlain:this.groupInfo.regionsPlain,17),this.groupInfo.progress4Value=this.data.sumByIndex(null!=this.RegionID?this.groupInfo.productsPlain:this.groupInfo.regionsPlain,22),this.groupInfo.progress1=this.percent(this.data.sumByIndex(null!=this.RegionID?this.groupInfo.productsPlain:this.groupInfo.regionsPlain,15),this.type==this.second_level_route?this.data.sumByIndex(l,15):this.groupInfo.zoneCustomer),this.groupInfo.progress2=this.percent(this.data.sumByIndex(null!=this.RegionID?this.groupInfo.productsPlain:this.groupInfo.regionsPlain,16),this.type==this.second_level_route?this.data.sumByIndex(l,16):this.groupInfo.zonePlan),this.groupInfo.progress3=this.percent(this.data.sumByIndex(null!=this.RegionID?this.groupInfo.productsPlain:this.groupInfo.regionsPlain,17),this.type==this.second_level_route?this.data.sumByIndex(l,17):this.groupInfo.zoneTotal),this.groupInfo.progress4=this.percent(this.data.sumByIndex(null!=this.RegionID?this.groupInfo.productsPlain:this.groupInfo.regionsPlain,22),this.type==this.second_level_route?this.data.sumByIndex(l,22):this.groupInfo.zoneReserve),this.groupInfo=Object.assign({},this.groupInfo),setTimeout(()=>this.ready=!0)}percent(e,o){return parseInt((100*e/o).toFixed(0))}return(){this.router.navigate(["../../"],{relativeTo:this.activatedRoute,replaceUrl:!0})}returnToMain(){this.router.navigate(["../../../../"],{relativeTo:this.activatedRoute,replaceUrl:!0})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.gz),t.Y36(b.D),t.Y36(T.s),t.Y36(Z.E),t.Y36(O.F0),t.Y36(v.sK),t.Y36(f.Dx))},n.\u0275cmp=t.Xpm({type:n,selectors:[["production-program-lvl3"]],hostBindings:function(e,o){1&e&&t.NdJ("swiperight",function(a){return o.data.goFrom("production_program",a)})("swipeleft",function(a){return o.data.goFrom("production_program",a)})},decls:43,vars:40,consts:[[1,"overview"],[1,"data-header"],[1,"empty"],[1,"report-date"],[1,"title"],["matTooltipClass","after","matTooltipPosition","after",2,"width","70px","margin-left","10px",3,"matTooltip"],["ngDefaultControl","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"customer"],["matTooltipClass","above","matTooltipPosition","above",2,"display","inline-block",3,"matTooltip"],[1,"plan"],[1,"total"],[1,"reserve"],[1,"desktop"],[1,"mobile"],[1,"header-rows"],[4,"ngIf"],["class","header-row arrow plant",3,"click",4,"ngIf"],[3,"customer","plan","total","reserve","customerValue","planValue","totalValue","reserveValue",4,"ngIf"],[3,"value"],[1,"header-row","total"],[1,"header-row","arrow","zone",3,"click"],["matTooltipClass","after","matTooltipPosition","after",3,"matTooltip"],[1,"header-row","arrow","plant","lvl2",3,"click"],[1,"header-row","arrow","plant",3,"click"],[3,"customer","plan","total","reserve","customerValue","planValue","totalValue","reserveValue"],[1,"title-header"],["class","lvl2-row",3,"click",4,"ngFor","ngForOf"],[1,"lvl2-row",3,"click"],["matTooltipPosition","after",1,"customer","cyan"],[1,"total","orange"]],template:function(e,o){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"div",3),t._uU(4),t.ALo(5,"translate"),t.qZA()(),t.TgZ(6,"header")(7,"div",4)(8,"mat-form-field",5),t.ALo(9,"translate"),t.TgZ(10,"mat-select",6),t.NdJ("ngModelChange",function(a){return o.year=a})("ngModelChange",function(a){return o.changeYear(a)}),t.YNc(11,vt,2,2,"mat-option",7),t.qZA()()(),t.TgZ(12,"div",8)(13,"div",9),t.ALo(14,"translate"),t._uU(15),t.ALo(16,"translate"),t.qZA()(),t.TgZ(17,"div",10)(18,"div",9),t.ALo(19,"translate"),t._uU(20),t.ALo(21,"translate"),t.qZA()(),t.TgZ(22,"div",11)(23,"div",9),t.ALo(24,"translate"),t._uU(25),t.ALo(26,"translate"),t.qZA()(),t.TgZ(27,"div",12)(28,"div",9),t.ALo(29,"translate"),t.TgZ(30,"span",13),t._uU(31),t.ALo(32,"translate"),t.qZA(),t.TgZ(33,"span",14),t._uU(34,"SR"),t.qZA()()()(),t.TgZ(35,"div",15),t.YNc(36,Ct,37,30,"ng-container",16),t.YNc(37,Mt,35,28,"ng-container",16),t.YNc(38,bt,19,17,"div",17),t.YNc(39,Zt,17,14,"div",17),t.qZA(),t.YNc(40,It,1,8,"dip-quadro-circular-meters",18),t.YNc(41,qt,6,4,"ng-container",16),t.YNc(42,Dt,6,4,"ng-container",16),t.qZA()),2&e&&(t.xp6(4),t.AsE("",t.lcZ(5,20,"plandate"),": ",o.plandate,""),t.xp6(4),t.s9C("matTooltip",t.lcZ(9,22,"change.year")),t.xp6(2),t.Q6J("ngModel",o.year),t.xp6(1),t.Q6J("ngForOf",o.years),t.xp6(2),t.s9C("matTooltip",t.lcZ(14,24,"belong_to.customers")),t.xp6(2),t.Oqu(t.lcZ(16,26,"production_program.customer")),t.xp6(3),t.s9C("matTooltip",t.lcZ(19,28,"belong_to.plan")),t.xp6(2),t.Oqu(t.lcZ(21,30,"production_program.plan")),t.xp6(3),t.s9C("matTooltip",t.lcZ(24,32,"belong_to.plan_unit")),t.xp6(2),t.Oqu(t.lcZ(26,34,"production_program.total")),t.xp6(3),t.s9C("matTooltip",t.lcZ(29,36,"belong_to.reserved")),t.xp6(3),t.Oqu(t.lcZ(32,38,"production_program.reserve")),t.xp6(5),t.Q6J("ngIf",null!=o.ZoneID&&o.groupInfo),t.xp6(1),t.Q6J("ngIf",null!=o.PlantID&&o.groupInfo),t.xp6(1),t.Q6J("ngIf",null!=o.RegionID&&o.groupInfo),t.xp6(1),t.Q6J("ngIf",null!=o.ProductID&&o.groupInfo),t.xp6(1),t.Q6J("ngIf",o.ready&&o.groupInfo),t.xp6(1),t.Q6J("ngIf",null!=o.ProductID),t.xp6(1),t.Q6J("ngIf",null!=o.RegionID))},directives:[D.KE,q.gM,L.gD,w.Fj,w.JJ,w.On,s.sg,U.ey,s.O5,R],pipes:[v.X$,x.$],styles:['[_nghost-%COMP%]{display:block;width:100%;left:0;touch-action:pan-y!important}.overview[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;width:100%}.overview[_ngcontent-%COMP%] .data-header[_ngcontent-%COMP%]{display:flex;flex:1 100%;height:30px;line-height:30px;position:relative;padding:0 20px 0 15px;box-sizing:border-box;background-color:#20202966}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .data-header[_ngcontent-%COMP%]{padding-right:40px;margin-top:20px}}@media (max-width: 800px){.overview[_ngcontent-%COMP%] .data-header[_ngcontent-%COMP%]{padding:0 15px}}.overview[_ngcontent-%COMP%] .data-header[_ngcontent-%COMP%] .empty[_ngcontent-%COMP%]{flex:1 70%;padding-left:5px;position:relative}.overview[_ngcontent-%COMP%] .data-header[_ngcontent-%COMP%] .report-date[_ngcontent-%COMP%]{flex:1 100%;text-align:right;letter-spacing:1px}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%]{display:flex;flex:1 100%;padding:12px 40px}@media (max-width: 800px){.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%]{padding:12px 15px}}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 35%;position:relative}.overview[_ngcontent-%COMP%] .header-row.total[_ngcontent-%COMP%]{background-color:#34344580}.overview[_ngcontent-%COMP%] .header-row.lvl2[_ngcontent-%COMP%]{background-color:#20202966}.overview[_ngcontent-%COMP%] .header-row.arrow[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]:after{transition:left .2s ease-in-out;content:"";position:absolute;height:12px;width:12px;top:2px;left:-2px;transform:rotate(180deg);margin:auto;display:block;background-image:url(assets/arrow.svg);background-size:contain;background-repeat:no-repeat}.overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%]{cursor:pointer}.overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%]{background-color:#20202966;cursor:pointer}.overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{padding-left:25px}.overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%]{background-color:#18182099}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{flex:1 20%;text-align:right;font-size:16px;font-weight:700;padding-right:10px}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{flex:0 0 150px}}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .total[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){margin-top:10px;opacity:.8}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:1 10%;text-align:right}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:0 0 150px}}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%]{color:#28e8ff}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{color:#f8b03b}.overview[_ngcontent-%COMP%] .meters[_ngcontent-%COMP%]{display:flex;flex:1 100%;height:160px;position:relative;background:linear-gradient(to bottom,#000,#303030);border-bottom:3px solid rgba(0,0,0,.4)}.overview[_ngcontent-%COMP%] .meters[_ngcontent-%COMP%] .meter[_ngcontent-%COMP%]{flex:1 50%;height:100%}.overview[_ngcontent-%COMP%] .meters[_ngcontent-%COMP%] .meter[_ngcontent-%COMP%]:nth-child(2){border-left:3px solid black}.overview[_ngcontent-%COMP%] .meters[_ngcontent-%COMP%] .meter[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{width:120px;height:120px;margin:20px auto 0;position:relative}.overview[_ngcontent-%COMP%] .meters[_ngcontent-%COMP%] .meter[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .percent[_ngcontent-%COMP%]{position:absolute;height:30px;width:100%;margin:auto;text-align:center;top:0;bottom:0;font-size:27px}.overview[_ngcontent-%COMP%] .title-header[_ngcontent-%COMP%]{flex:1 100%;padding:12px 40px;display:flex;text-transform:uppercase;background-color:#34344580}@media (max-width: 800px){.overview[_ngcontent-%COMP%] .title-header[_ngcontent-%COMP%]{padding:12px 15px}}.overview[_ngcontent-%COMP%] .title-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 100%}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .title-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{letter-spacing:1px}}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]{flex:1 100%;padding:12px 40px;height:65px;display:flex;cursor:pointer;border-bottom:1px solid transparent}@media (max-width: 800px){.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]{padding:12px 15px}}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]:hover{background-color:#ffffff05}body[theme=new-dark] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]:hover{background-color:#121212!important}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]:hover{background-color:#0000000d!important}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]:nth-child(even){background-color:#20202966}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]:nth-child(odd){background-color:#18182099}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 35%;position:relative;transition:padding-left .15s ease-in-out}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{flex:1 20%;text-align:right;padding-right:10px;font-size:15px}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{flex:0 0 150px}}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .total[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){margin-top:10px;opacity:.8}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:10%;text-align:right}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:0 0 150px}} .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}.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;width:100%;height:35px;background-color:#20202966;padding:0 20px 0 15px;line-height:35px}@media (min-width: 800px){.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{padding:0 40px}}@media (max-width: 800px){.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{padding:0 15px}}.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 35%;position:relative}.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] .mat-icon{margin-right:10px;font-size:22px}.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:1 10%}@media (min-width: 800px){.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{flex:0 0 150px}}.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .total[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .reserve[_ngcontent-%COMP%]{text-align:right;text-transform:uppercase;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{flex:1 20%;padding-right:10px;box-sizing:border-box}@media (min-width: 800px){.overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .customer[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .plan[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] header[_ngcontent-%COMP%] .total[_ngcontent-%COMP%]{flex:0 0 150px}} .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)}body[theme=light] [_nghost-%COMP%] {background-color:#fff}body[theme=light] [_nghost-%COMP%] .data-header, body[theme=light] [_nghost-%COMP%] header{background-color:#fff!important}body[theme=light] [_nghost-%COMP%] .header-row, body[theme=light] [_nghost-%COMP%] .overview .header-row.lvl2{background-color:#e6e6e6!important;border-bottom:2px solid white}body[theme=light] [_nghost-%COMP%] .header-row .title, body[theme=light] [_nghost-%COMP%] .overview .header-row.lvl2 .title{color:#333}body[theme=light] [_nghost-%COMP%] .header-row>div, body[theme=light] [_nghost-%COMP%] .overview .header-row.lvl2>div{font-weight:700}body[theme=light] [_nghost-%COMP%] .header-row .customer, body[theme=light] [_nghost-%COMP%] .overview .header-row.lvl2 .customer{color:#17687f!important}body[theme=light] [_nghost-%COMP%] .header-row .total, body[theme=light] [_nghost-%COMP%] .overview .header-row.lvl2 .total{color:#e59123!important}body[theme=light] [_nghost-%COMP%] .header-row .plan, body[theme=light] [_nghost-%COMP%] .header-row .reserve, body[theme=light] [_nghost-%COMP%] .overview .header-row.lvl2 .plan, body[theme=light] [_nghost-%COMP%] .overview .header-row.lvl2 .reserve{color:#666!important}body[theme=light] [_nghost-%COMP%] .title-header{background-color:#e6e6e6!important}body[theme=light] [_nghost-%COMP%] .title-header .title{color:#666;font-weight:700}body[theme=light] [_nghost-%COMP%] .title-header .customer, body[theme=light] [_nghost-%COMP%] .title-header .plan, body[theme=light] [_nghost-%COMP%] .title-header .total, body[theme=light] [_nghost-%COMP%] .title-header .reserve{font-weight:700}body[theme=light] [_nghost-%COMP%] .title-header .customer{color:#17687f!important}body[theme=light] [_nghost-%COMP%] .title-header .total{color:#e59123!important}body[theme=light] [_nghost-%COMP%] .title-header .plan, body[theme=light] [_nghost-%COMP%] .title-header .reserve{color:#666!important}body[theme=light] [_nghost-%COMP%] .lvl2-row{background-color:#fff!important;border-bottom:1px solid #E6E6E6!important}body[theme=light] [_nghost-%COMP%] .lvl2-row .title{color:#333!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .lvl2-row .plan, body[theme=light] [_nghost-%COMP%] .lvl2-row .reserve{color:#666!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .lvl2-row .customer{color:#17687f!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .lvl2-row .total{color:#e59123!important;font-weight:700}']}),n})(),data:{level:3}}]}];let Ut=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[[s.ez,ot.m,O.Bz.forChild(Lt)]]}),n})()},64066:(B,y,c)=>{c.d(y,{$:()=>p,K:()=>M});var s=c(29590),O=c(44498),b=c(3184);class p{transform(m,t=!1,v=!0){return M(m,t,v,this.language)}}function M(h,m=!1,t=!0,v="en"){if(isNaN(h))return"-";let f;return 0==(h=Math.round(h))?"0":(f=h>0?m?"+ "+parseInt(Math.abs(h).toFixed(0),10).toLocaleString(v):h<0?"- "+parseInt(Math.abs(h).toFixed(0),10).toLocaleString(v):parseInt(Math.abs(h).toFixed(0),10).toLocaleString(v):m||h<0?"- "+parseInt(Math.abs(h).toFixed(0),10).toLocaleString(v):parseInt(Math.abs(h).toFixed(0),10).toLocaleString(v),t?f:f.replace(/[,.]/g,""))}p.\u0275fac=function(m){return new(m||p)},p.\u0275pipe=b.Yjl({name:"toNumber",type:p,pure:!0}),function(h,m,t,v){var I,f=arguments.length,x=f<3?m:null===v?v=Object.getOwnPropertyDescriptor(m,t):v;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)x=Reflect.decorate(h,m,t,v);else for(var A=h.length-1;A>=0;A--)(I=h[A])&&(x=(f<3?I(x):f>3?I(m,t,x):I(m,t))||x);f>3&&x&&Object.defineProperty(m,t,x)}([(0,s.cB)(O.Z.GetLanguage),function(h,m){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",String)}()],p.prototype,"language",void 0)}}]);
//# sourceMappingURL=157.d110afeeeeb55726.js.map