-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path606.1610892640760b75.js
More file actions
2 lines (2 loc) · 106 KB
/
Copy path606.1610892640760b75.js
File metadata and controls
2 lines (2 loc) · 106 KB
1
2
"use strict";(self.webpackChunkdip=self.webpackChunkdip||[]).push([[606],{81606:(Zo,pn,g)=>{g.r(pn),g.d(pn,{OrderBacklogModule:()=>Lo});var p=g(36362),f=g(85861),Qn=g(30676),S=g(28299),Z=g(32714),O=g(24147),zn=g(43299),n=g(3184);const Rn=["o"];let Jn=(()=>{class t{constructor(e,r){this.data=e,this._store=r,e.lastTap=null,e.lastTap2=null}ngOnInit(){this._store.dispatch(new O.P.Get)}getLevel(){return this.data.currentLevel=+this.outlet.activatedRouteData.level,this.outlet.activatedRouteData.level}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(Z.D),n.Y36(S.yh))},t.\u0275cmp=n.Xpm({type:t,selectors:[["order-backlog-wrapper"]],viewQuery:function(e,r){if(1&e&&n.Gf(Rn,7),2&e){let i;n.iGM(i=n.CRH())&&(r.outlet=i.first)}},hostVars:1,hostBindings:function(e,r){2&e&&n.d8E("@routerTransition",r.getLevel())},decls:2,vars:0,consts:[["o","outlet"]],template:function(e,r){1&e&&n._UZ(0,"router-outlet",null,0)},directives:[f.lC],styles:["[_nghost-%COMP%]{position:relative;display:block}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{display:block} .plant-select-panel{min-width:calc(100% + 60px)!important} .plant-select-panel .zone{color:#ffffffb3} .plant-select-panel .zone .mat-option-text{text-transform:uppercase} .plant-select-panel .plant{padding-left:40px} .plant-select-panel .mat-optgroup-label{color:#f8b03be6}[_nghost-%COMP%] .header-row{position:relative}[_nghost-%COMP%] .header-row .title.with-selector{flex:initial;padding-left:20px!important}@media (min-width: 800px){[_nghost-%COMP%] .header-row .title.with-selector{padding-left:30px!important}}[_nghost-%COMP%] .header-row .title.with-selector .mat-form-field-infix{border-top:0}[_nghost-%COMP%] .header-row .title.with-selector .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%] .header-row .title.with-selector .mat-form-field .mat-select-value{padding-right:5px}[_nghost-%COMP%] .header-row .title.with-selector .mat-form-field{max-width:90px!important}[_nghost-%COMP%] .header-row i.arrow{position:absolute;height:100%;width:35px;top:0;bottom:0;left:0;z-index:99;transform:rotate(180deg);margin:auto;display:block;background-image:url(assets/arrow.svg);background-size:7px;background-repeat:no-repeat;background-position-y:center;background-position-x:15px;transition:background-position-x .2s ease-in-out}[_nghost-%COMP%] .header-row i.arrow:hover{background-position-x:25px}@media (min-width: 800px){[_nghost-%COMP%] .header-row i.arrow{width:60px}}[_nghost-%COMP%] dip-month-selector, [_nghost-%COMP%] dip-product-region-selector, [_nghost-%COMP%] dip-plant-selector{display:block} order-backlog-sub-lvl2, order-backlog-main, order-backlog-sub-lvl3{position:fixed;top:0;bottom:0;height:calc(100% - 32px);padding-top:70px;box-sizing:border-box;width:100%;left:0;overflow-y:auto;transform:translate(0);touch-action:pan-y!important} .mat-form-field-appearance-legacy .mat-form-field-infix{padding:0} .mat-form-field-appearance-legacy .mat-form-field-underline{display:none} .mat-select-value-text{color:#fff} .mat-select-arrow{color:#fff!important;opacity:.7} .mat-select-content{background-color:#29293199} .mat-option:not(.mat-selected){color:#fff} .mat-option.mat-selected{color:#f8b03b!important}"],data:{animation:[zn.j]}}),t})();var $=g(70946),u=g(31631),m=g(29590),V=g(50318),w=g(33935);let T=(()=>{class t{constructor(e){this._router=e,this.main_route="/sells",this.sub_level_a="month"}goToMainView(){this._router.navigate([this.main_route])}goToPlantZoneView(e,r,i){this._router.navigate([this.main_route,r=r||e.snapshot.params.plant,i=i||e.snapshot.params.id])}goToMonthView(e,r,i,c){this._router.navigate([this.main_route,r=r||e.snapshot.params.plant,i=i||e.snapshot.params.id,this.sub_level_a,c=c||e.snapshot.params.month])}goToProductRegionView(e,r,i,c,a,_){this._router.navigate([this.main_route,r=r||e.snapshot.params.plant,i=i||e.snapshot.params.id,this.sub_level_a,c=c||e.snapshot.params.month,a=a||e.snapshot.params.type,_=_||e.snapshot.params.value])}}return t.\u0275fac=function(e){return new(e||t)(n.LFG(f.F0))},t.\u0275prov=n.Yz7({token:t,factory:t.\u0275fac}),t})(),A=(()=>{class t{constructor(e,r){this.vcRef=e,this.templateRef=r,this.context={}}set ngLet(e){this._ref||this.createView(),this._ref.context.$implicit=this.context.ngLet=e}createView(){this.vcRef.clear(),this._ref=this.vcRef.createEmbeddedView(this.templateRef,this.context)}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(n.s_b),n.Y36(n.Rgc))},t.\u0275dir=n.lG2({type:t,selectors:[["","ngLet",""]],inputs:{ngLet:"ngLet"}}),t})();var d=g(93295),C=g(56908);let W=(()=>{class t{constructor(){this.transform=e=>sn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"distinctMonths",type:t,pure:!0}),t})();function sn(t){return t.reduce((o,e)=>{const r=C(e[d.C7.Date],"YYYY-MM-DD").format("YYYY-MM");return o[r]=o[r]||[],o[r].push(e),o},{})}class R{constructor(){this.transform=(o,e)=>dn(o,e,this.ranges)}}function dn(t,o,e){return t&&0!==t.length?t.filter("current"===o?r=>e.actual.includes(r[d.C7.Date].substring(0,7)):r=>e.previous.includes(r[d.C7.Date].substring(0,7))):[]}R.\u0275fac=function(o){return new(o||R)},R.\u0275pipe=n.Yjl({name:"filterYear",type:R,pure:!0}),function(t,o,e,r){var a,i=arguments.length,c=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,o,e,r);else for(var _=t.length-1;_>=0;_--)(a=t[_])&&(c=(i<3?a(c):i>3?a(o,e,c):a(o,e))||c);i>3&&c&&Object.defineProperty(o,e,c)}([(0,m.cB)(O.f.GetDateRanges),function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",Object)}()],R.prototype,"ranges",void 0);var b=g(46584),h=g(86942),y=g(59095);let Fn=(()=>{class t{transform(e){return C(e,"YYYY-MM-DD").format("DD/MM/YYYY")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"formatLatestDay",type:t,pure:!0}),t})();var un=function(t,o,e,r){var a,i=arguments.length,c=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,o,e,r);else for(var _=t.length-1;_>=0;_--)(a=t[_])&&(c=(i<3?a(c):i>3?a(o,e,c):a(o,e))||c);return i>3&&c&&Object.defineProperty(o,e,c),c},hn=function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};function Sn(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"div",9)(2,"div",10),n._uU(3),n.ALo(4,"formatLatestDay"),n.qZA(),n._UZ(5,"div",11),n.qZA(),n.TgZ(6,"div",9)(7,"div",10),n._uU(8,"Prev."),n.qZA(),n.TgZ(9,"div",11),n._uU(10,"Year"),n.qZA()(),n.BQk()),2&t){const e=n.oxw(2);n.xp6(3),n.Oqu(n.lcZ(4,1,e.days$.latestDay))}}function $n(t,o){if(1&t&&(n.TgZ(0,"div",9),n._uU(1),n.ALo(2,"formatLatestDay"),n.qZA(),n.TgZ(3,"div",9),n._uU(4),n.ALo(5,"translate"),n.qZA()),2&t){const e=n.oxw(2);n.xp6(1),n.Oqu(n.lcZ(2,2,e.days$.latestDay)),n.xp6(3),n.Oqu(n.lcZ(5,4,"prev_year"))}}function Un(t,o){if(1&t&&(n.ynx(0),n.YNc(1,Sn,11,3,"ng-container",7),n.ALo(2,"async"),n.YNc(3,$n,6,6,"ng-template",null,8,n.W1O),n.BQk()),2&t){const e=n.MAs(4),r=n.oxw();n.xp6(1),n.Q6J("ngIf",n.lcZ(2,2,r._data.mobile$))("ngIfElse",e)}}function Hn(t,o){1&t&&(n.ynx(0),n.TgZ(1,"div",9)(2,"div",10),n._uU(3,"Last"),n.qZA(),n.TgZ(4,"div",11),n._uU(5,"12 Month"),n.qZA()(),n.TgZ(6,"div",9)(7,"div",10),n._uU(8,"Prev."),n.qZA(),n.TgZ(9,"div",11),n._uU(10,"Year"),n.qZA()(),n.BQk())}function qn(t,o){1&t&&(n.TgZ(0,"div",9),n._uU(1),n.ALo(2,"translate"),n.qZA(),n.TgZ(3,"div",9),n._uU(4),n.ALo(5,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,2,"last_x_month")),n.xp6(3),n.Oqu(n.lcZ(5,4,"prev_year")))}function jn(t,o){if(1&t&&(n.ynx(0),n.YNc(1,Hn,11,0,"ng-container",7),n.ALo(2,"async"),n.YNc(3,qn,6,6,"ng-template",null,8,n.W1O),n.BQk()),2&t){const e=n.MAs(4),r=n.oxw();n.xp6(1),n.Q6J("ngIf",n.lcZ(2,2,r._data.mobile$))("ngIfElse",e)}}function In(t,o){1&t&&n.GkF(0)}function En(t,o){if(1&t&&(n.ynx(0),n.YNc(1,In,1,0,"ng-container",12),n.ALo(2,"async"),n.TgZ(3,"div",9)(4,"div",10),n._uU(5,"Prev."),n.qZA(),n.TgZ(6,"div",11),n._uU(7,"Year"),n.qZA()(),n.BQk()),2&t){const e=n.oxw(2),r=n.MAs(7),i=n.MAs(9);n.xp6(1),n.Q6J("ngIf",n.lcZ(2,3,e.currentMonthDate$).substring(0,7)===e.currentMonth)("ngIfThen",r)("ngIfElse",i)}}function Gn(t,o){1&t&&n.GkF(0)}function Vn(t,o){if(1&t&&(n.YNc(0,Gn,1,0,"ng-container",12),n.ALo(1,"async"),n.TgZ(2,"div",9),n._uU(3),n.ALo(4,"translate"),n.qZA()),2&t){const e=n.oxw(2),r=n.MAs(7),i=n.MAs(11);n.Q6J("ngIf",n.lcZ(1,4,e.currentMonthDate$).substring(0,7)===e.currentMonth)("ngIfThen",r)("ngIfElse",i),n.xp6(3),n.Oqu(n.lcZ(4,6,"prev_year"))}}function Wn(t,o){if(1&t&&(n.ynx(0),n.YNc(1,En,8,5,"ng-container",7),n.ALo(2,"async"),n.YNc(3,Vn,5,8,"ng-template",null,8,n.W1O),n.BQk()),2&t){const e=n.MAs(4),r=n.oxw();n.xp6(1),n.Q6J("ngIf",n.lcZ(2,2,r._data.mobile$))("ngIfElse",e)}}function Xn(t,o){1&t&&n.GkF(0)}function Kn(t,o){if(1&t&&(n.ynx(0),n.YNc(1,Xn,1,0,"ng-container",12),n.ALo(2,"async"),n.TgZ(3,"div",9)(4,"div",10),n._uU(5,"Prev."),n.qZA(),n.TgZ(6,"div",11),n._uU(7,"Year"),n.qZA()(),n.BQk()),2&t){const e=n.oxw(2),r=n.MAs(7),i=n.MAs(9);n.xp6(1),n.Q6J("ngIf",n.lcZ(2,3,e.currentMonthDate$).substring(0,7)===e.currentMonth)("ngIfThen",r)("ngIfElse",i)}}function nt(t,o){1&t&&n.GkF(0)}function tt(t,o){if(1&t&&(n.YNc(0,nt,1,0,"ng-container",12),n.ALo(1,"async"),n.TgZ(2,"div",9),n._uU(3),n.ALo(4,"translate"),n.qZA()),2&t){const e=n.oxw(2),r=n.MAs(7),i=n.MAs(11);n.Q6J("ngIf",n.lcZ(1,4,e.currentMonthDate$).substring(0,7)===e.currentMonth)("ngIfThen",r)("ngIfElse",i),n.xp6(3),n.Oqu(n.lcZ(4,6,"prev_year"))}}function et(t,o){if(1&t&&(n.ynx(0),n.YNc(1,Kn,8,5,"ng-container",7),n.ALo(2,"async"),n.YNc(3,tt,5,8,"ng-template",null,8,n.W1O),n.BQk()),2&t){const e=n.MAs(4),r=n.oxw();n.xp6(1),n.Q6J("ngIf",n.lcZ(2,2,r._data.mobile$))("ngIfElse",e)}}function ot(t,o){if(1&t&&(n.TgZ(0,"div",9)(1,"div",10),n._uU(2),n.ALo(3,"formatLatestDay"),n.ALo(4,"async"),n.qZA()()),2&t){const e=n.oxw();n.xp6(2),n.Oqu(n.lcZ(3,1,n.lcZ(4,3,e.currentMonthDate$)))}}function rt(t,o){1&t&&(n.TgZ(0,"div",9)(1,"div",10),n._uU(2,"Last"),n.qZA(),n.TgZ(3,"div",11),n._uU(4,"12 Month"),n.qZA()())}function it(t,o){1&t&&(n.TgZ(0,"div",9)(1,"div",10),n._uU(2),n.ALo(3,"translate"),n.qZA()()),2&t&&(n.xp6(2),n.Oqu(n.lcZ(3,1,"last_x_month")))}class M{constructor(o,e,r){this._data=o,this._ac=e,this._store=r,this.currentMonth=C().format("YYYY-MM"),this.level=this._ac.snapshot.data.level,this.params$=this._ac.paramMap.pipe((0,h.U)(i=>i.keys.reduce((c,a)=>(c[a]=i.get(a),c),{}))),this.currentMonthDate$=this.params$.pipe((0,y.w)(i=>this._store.select(b.i.GetZoneOrPlantRows(i.plant,i.id)).pipe((0,h.U)(c=>[i,c]))),(0,h.U)(([i,c])=>(c=(c=sn(c=dn(c,"current",this.ranges)))[i.month])[0][d.C7.Date]))}get themeClass(){return`level${this.level}`}}M.\u0275fac=function(o){return new(o||M)(n.Y36(Z.D),n.Y36(f.gz),n.Y36(S.yh))},M.\u0275cmp=n.Xpm({type:M,selectors:[["order-backlog-header"]],hostVars:2,hostBindings:function(o,e){2&o&&n.Tol(e.themeClass)},decls:14,vars:5,consts:[[1,"empty"],[3,"ngSwitch"],[4,"ngSwitchCase"],["today",""],["last12MonthMobile",""],["last12MonthDesktop",""],[1,"glyph"],[4,"ngIf","ngIfElse"],["desktopHeaders",""],[1,"report-date"],[1,"upper"],[1,"lower"],[4,"ngIf","ngIfThen","ngIfElse"]],template:function(o,e){1&o&&(n._UZ(0,"div",0),n.ynx(1,1),n.YNc(2,Un,5,4,"ng-container",2),n.YNc(3,jn,5,4,"ng-container",2),n.YNc(4,Wn,5,4,"ng-container",2),n.YNc(5,et,5,4,"ng-container",2),n.BQk(),n.YNc(6,ot,5,5,"ng-template",null,3,n.W1O),n.YNc(8,rt,5,0,"ng-template",null,4,n.W1O),n.YNc(10,it,4,3,"ng-template",null,5,n.W1O),n.TgZ(12,"div",6),n._uU(13,"\u0394"),n.qZA()),2&o&&(n.xp6(1),n.Q6J("ngSwitch",e.level),n.xp6(1),n.Q6J("ngSwitchCase",1),n.xp6(1),n.Q6J("ngSwitchCase",2),n.xp6(1),n.Q6J("ngSwitchCase",3),n.xp6(1),n.Q6J("ngSwitchCase",4))},directives:[p.RF,p.n9,p.O5],pipes:[p.Ov,Fn,w.X$],styles:["[_nghost-%COMP%]{display:flex;width:100%;flex:1 100%;height:40px;line-height:18px;position:relative;padding:0 20px 0 15px;box-sizing:border-box}@media (min-width: 800px){[_nghost-%COMP%]{margin-top:20px;height:30px;line-height:30px;padding-right:40px}.level1[_nghost-%COMP%]{margin-top:0!important}}[_nghost-%COMP%] .empty[_ngcontent-%COMP%]{flex:1 30%;padding-left:5px;position:relative}@media (min-width: 400px) and (max-width: 959.98px) and (orientation: landscape){[_nghost-%COMP%] .empty[_ngcontent-%COMP%]{flex:1 60%}}@media (min-width: 800px){[_nghost-%COMP%] .empty[_ngcontent-%COMP%]{flex:1 70%}}[_nghost-%COMP%] .report-date[_ngcontent-%COMP%]{flex:1 15%;text-align:right;font-size:12px;letter-spacing:1px;line-height:18px}@media (min-width: 800px){[_nghost-%COMP%] .report-date[_ngcontent-%COMP%]{flex:1 15%;font-size:15px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:30px}}[_nghost-%COMP%] .glyph[_ngcontent-%COMP%]{flex:1 15%;text-align:right;font-size:12px;letter-spacing:1px;line-height:40px}@media (min-width: 800px){[_nghost-%COMP%] .glyph[_ngcontent-%COMP%]{flex:1 15%;font-size:15px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:30px}}body[theme=light] [_nghost-%COMP%]{margin-top:10px}@media (min-width: 800px){body[theme=light] [_nghost-%COMP%]{margin-top:20px!important}}"],changeDetection:0}),un([(0,m.cB)(O.f.GetDateRanges),hn("design:type",Object)],M.prototype,"ranges",void 0),un([(0,m.Q8)(O.f.GetLatestAndPreviousDay),hn("design:type",Object)],M.prototype,"days$",void 0);class J{transform(o,e){return en(o,e,this.days$)}}function en(t,o,e){return t.filter("current"===o?r=>r[d.C7.Date].substring(0,7)===e.latestDay.substring(0,7):r=>r[d.C7.Date].substring(0,7)===e.previousDay.substring(0,7))}J.\u0275fac=function(o){return new(o||J)},J.\u0275pipe=n.Yjl({name:"filterDay",type:J,pure:!0}),function(t,o,e,r){var a,i=arguments.length,c=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,o,e,r);else for(var _=t.length-1;_>=0;_--)(a=t[_])&&(c=(i<3?a(c):i>3?a(o,e,c):a(o,e))||c);i>3&&c&&Object.defineProperty(o,e,c)}([(0,m.cB)(O.f.GetLatestAndPreviousDay),function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",Object)}()],J.prototype,"days$",void 0);var X=g(19180);let I=(()=>{class t{constructor(){this.transform=e=>N(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"sumQuantity",type:t,pure:!0}),t})();function N(t){return t&&0!==t.length?(0,X.Mf)(t,d.C7.Quantity):NaN}class U{transform(o){let e=0;return o.forEach(r=>{const i=N(en(r.value,"current",this.days$)),c=N(en(r.value,"previous",this.days$));i>e&&(e=i),c>e&&(e=c)}),e}}U.\u0275fac=function(o){return new(o||U)},U.\u0275pipe=n.Yjl({name:"highestZoneTotal",type:U,pure:!0}),function(t,o,e,r){var a,i=arguments.length,c=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,o,e,r);else for(var _=t.length-1;_>=0;_--)(a=t[_])&&(c=(i<3?a(c):i>3?a(o,e,c):a(o,e))||c);i>3&&c&&Object.defineProperty(o,e,c)}([(0,m.cB)(O.f.GetLatestAndPreviousDay),function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",Object)}()],U.prototype,"days$",void 0);var lt=g(64139),pt=g(83859),mn=g(25722);let on=(()=>{class t{transform(e,r){return(0,lt.of)(e).pipe((0,pt.g)(0),(0,mn.O)(r))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"startWith",type:t,pure:!0}),t})(),st=(()=>{class t{transform(e,r){return+(e/r*100).toFixed(0)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"percent",type:t,pure:!0}),t})();var D=g(64066),rn=g(44498);class B{transform(o,e){return function ht(t,o,e){return t[0][["group","zone"].includes(o)?d.C7[`PlantGroup${e}`]:d.C7[`Plant${e}`]]}(o,e,this.language)}}function mt(t,o){if(1&t&&(n.TgZ(0,"div",11),n._uU(1),n.ALo(2,"toNumber"),n.qZA()),2&t){const e=n.oxw().ngLet;n.xp6(1),n.Oqu(n.lcZ(2,1,e))}}function vt(t,o){if(1&t&&(n.TgZ(0,"div",9),n.ALo(1,"async"),n.ALo(2,"startWith"),n.ALo(3,"percent"),n.YNc(4,mt,3,3,"div",10),n.ALo(5,"async"),n.qZA()),2&t){const e=o.ngLet,r=n.oxw(3).ngLet,i=n.oxw();n.Udp("height",n.lcZ(1,3,n.xi3(2,5,n.xi3(3,8,e,r),0)),"%"),n.xp6(4),n.Q6J("ngIf",!n.lcZ(5,11,i._data.mobile$))}}function ft(t,o){if(1&t&&(n.TgZ(0,"div",11),n._uU(1),n.ALo(2,"toNumber"),n.qZA()),2&t){const e=n.oxw().ngLet;n.xp6(1),n.Oqu(n.lcZ(2,1,e))}}function Ot(t,o){if(1&t&&(n.TgZ(0,"div",12),n.ALo(1,"async"),n.ALo(2,"startWith"),n.ALo(3,"percent"),n.YNc(4,ft,3,3,"div",10),n.ALo(5,"async"),n.qZA()),2&t){const e=o.ngLet,r=n.oxw(3).ngLet,i=n.oxw();n.Udp("height",n.lcZ(1,3,n.xi3(2,5,n.xi3(3,8,e,r),0)),"%"),n.xp6(4),n.Q6J("ngIf",!n.lcZ(5,11,i._data.mobile$))}}function Ct(t,o){if(1&t&&(n.ynx(0),n.YNc(1,vt,6,13,"div",7),n.ALo(2,"sumQuantity"),n.ALo(3,"filterDay"),n.YNc(4,Ot,6,13,"div",8),n.ALo(5,"sumQuantity"),n.ALo(6,"filterDay"),n.BQk()),2&t){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngLet",n.lcZ(2,2,n.xi3(3,4,e.value,"current"))),n.xp6(3),n.Q6J("ngLet",n.lcZ(5,7,n.xi3(6,9,e.value,"previous")))}}function Mt(t,o){if(1&t){const e=n.EpF();n.TgZ(0,"div",3),n.NdJ("click",function(){const c=n.CHM(e).$implicit;return n.oxw(2).goZone(c.key)}),n.TgZ(1,"div",4)(2,"div",5),n.YNc(3,Ct,7,12,"ng-container",1),n.ALo(4,"sumQuantity"),n.qZA()(),n.TgZ(5,"div",6),n._uU(6),n.ALo(7,"groupOrPlantName"),n.qZA()()}if(2&t){const e=o.$implicit,r=n.oxw(2);n.Udp("width",100/r.zones.length,"%"),n.xp6(3),n.Q6J("ngLet",n.lcZ(4,4,e.value)),n.xp6(3),n.Oqu(n.xi3(7,6,e.value,"group"))}}function Pt(t,o){if(1&t&&(n.ynx(0),n.YNc(1,Mt,8,9,"div",2),n.BQk()),2&t){const e=n.oxw();n.xp6(1),n.Q6J("ngForOf",e.zones)}}B.\u0275fac=function(o){return new(o||B)},B.\u0275pipe=n.Yjl({name:"groupOrPlantName",type:B,pure:!0}),function(t,o,e,r){var a,i=arguments.length,c=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,o,e,r);else for(var _=t.length-1;_>=0;_--)(a=t[_])&&(c=(i<3?a(c):i>3?a(o,e,c):a(o,e))||c);i>3&&c&&Object.defineProperty(o,e,c)}([(0,m.cB)(rn.Z.GetLanguageHuman),function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",String)}()],B.prototype,"language",void 0);let xt=(()=>{class t{constructor(e,r,i){this.router=e,this.route=r,this._data=i}goZone(e){this.router.navigate(["zone",e],{relativeTo:this.route,replaceUrl:!0})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(f.F0),n.Y36(f.gz),n.Y36(Z.D))},t.\u0275cmp=n.Xpm({type:t,selectors:[["order-backlog-graphic"]],inputs:{zones:"zones"},decls:3,vars:4,consts:[[1,"wrapper"],[4,"ngLet"],["class","zone",3,"width","click",4,"ngFor","ngForOf"],[1,"zone",3,"click"],[1,"bars"],[2,"position","relative","height","100%"],[1,"title"],["class","actual",3,"height",4,"ngLet"],["class","previous",3,"height",4,"ngLet"],[1,"actual"],["class","value",4,"ngIf"],[1,"value"],[1,"previous"]],template:function(e,r){1&e&&(n.TgZ(0,"div",0),n.YNc(1,Pt,2,1,"ng-container",1),n.ALo(2,"highestZoneTotal"),n.qZA()),2&e&&(n.Q6J("@list",r.zones.length),n.xp6(1),n.Q6J("ngLet",n.lcZ(2,2,r.zones)))},directives:[A,p.sg,p.O5],pipes:[U,I,p.Ov,on,st,J,D.$,B],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;padding-top:5px}.zone[_ngcontent-%COMP%] .bars[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{position:absolute;top:-25px;text-align:center;width:100%;font-size:16px;font-weight:700;color:#00acc1e6}.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;right: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;padding-top:5px}.zone[_ngcontent-%COMP%] .bars[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{position:absolute;top:-25px;text-align:center;width:100%;font-size:16px;font-weight:700;color:#f8b03be6}.zone[_ngcontent-%COMP%] .bars[_ngcontent-%COMP%] .previous.zero[_ngcontent-%COMP%]{height:0%!important}[_nghost-%COMP%] .actual{border-color:#00acc1;position:relative}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;border-top-color:#17687f!important}body[theme=light] [_nghost-%COMP%] .zone .bars .actual .value{color:#17687f!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;border-top-color:#e59123!important}body[theme=light] [_nghost-%COMP%] .zone .bars .previous .value{color:#e59123!important}body[theme=light] [_nghost-%COMP%] .zone .title{color:#333;font-weight:700}[_nghost-%COMP%] .previous{border-color:#f8b03b;position:relative}"],data:{animation:[(0,u.X$)("list",[(0,u.eR)("* => *",[(0,u.IO)(":enter",(0,u.oB)({opacity:0}),{optional:!0}),(0,u.IO)(":enter",(0,u.EY)("200ms",(0,u.jt)("300ms ease-in",(0,u.oB)({opacity:1}))),{optional:!0})])])]},changeDetection:0}),t})();class L{transform(o,e){isNaN(o)&&(o=0),isNaN(e)&&(e=0);const r=e-o;return 0===r?"-":r>0?`+ ${(0,D.K)(Math.abs(r),!1,!0,this.language)}`:`- ${(0,D.K)(Math.abs(r),!1,!0,this.language)}`}}L.\u0275fac=function(o){return new(o||L)},L.\u0275pipe=n.Yjl({name:"difference",type:L,pure:!0}),function(t,o,e,r){var a,i=arguments.length,c=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,o,e,r);else for(var _=t.length-1;_>=0;_--)(a=t[_])&&(c=(i<3?a(c):i>3?a(o,e,c):a(o,e))||c);i>3&&c&&Object.defineProperty(o,e,c)}([(0,m.cB)(rn.Z.GetLanguage),function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",String)}()],L.prototype,"language",void 0);let vn=(()=>{class t{constructor(){this.transform=e=>(0,X.b8)(e,d.C7.SortKey_Plant)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"plantsByZone",type:t,pure:!0}),t})();var fn=function(t,o,e,r){var a,i=arguments.length,c=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,o,e,r);else for(var _=t.length-1;_>=0;_--)(a=t[_])&&(c=(i<3?a(c):i>3?a(o,e,c):a(o,e))||c);return i>3&&c&&Object.defineProperty(o,e,c),c},On=function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,o)};function yt(t,o){if(1&t&&(n.ynx(0),n._UZ(1,"div",12),n.ALo(2,"toNumber"),n._UZ(3,"div",13),n.ALo(4,"toNumber"),n._UZ(5,"div",14),n.ALo(6,"difference"),n.BQk()),2&t){const e=o.ngLet,r=n.oxw().ngLet;n.xp6(1),n.Q6J("innerHTML",n.lcZ(2,3,r),n.oJD),n.xp6(2),n.Q6J("innerHTML",n.lcZ(4,5,e),n.oJD),n.xp6(2),n.Q6J("innerHTML",n.xi3(6,7,e,r),n.oJD)}}function Lt(t,o){if(1&t&&(n.ynx(0),n.YNc(1,yt,7,10,"ng-container",0),n.ALo(2,"sumQuantity"),n.ALo(3,"filterDay"),n.BQk()),2&t){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,n.xi3(3,3,e.value,"previous")))}}function kt(t,o){if(1&t){const e=n.EpF();n.TgZ(0,"div",10),n.NdJ("click",function(){const c=n.CHM(e).$implicit,a=n.oxw(2);return a._obRouter.goToPlantZoneView(a._ac,"zone",c.key)}),n.TgZ(1,"div",11),n._uU(2),n.ALo(3,"groupOrPlantName"),n.qZA(),n.YNc(4,Lt,4,6,"ng-container",0),n.ALo(5,"sumQuantity"),n.ALo(6,"filterDay"),n.qZA()}if(2&t){const e=o.$implicit;n.xp6(2),n.Oqu(n.xi3(3,2,e.value,"group")),n.xp6(2),n.Q6J("ngLet",n.lcZ(5,5,n.xi3(6,7,e.value,"current")))}}function Zt(t,o){if(1&t&&(n.ynx(0),n._UZ(1,"div",12),n.ALo(2,"toNumber"),n._UZ(3,"div",13),n.ALo(4,"toNumber"),n._UZ(5,"div",14),n.ALo(6,"difference"),n.BQk()),2&t){const e=o.ngLet,r=n.oxw().ngLet;n.xp6(1),n.Q6J("innerHTML",n.lcZ(2,3,r),n.oJD),n.xp6(2),n.Q6J("innerHTML",n.lcZ(4,5,e),n.oJD),n.xp6(2),n.Q6J("innerHTML",n.xi3(6,7,e,r),n.oJD)}}function Tt(t,o){if(1&t&&(n.ynx(0),n.YNc(1,Zt,7,10,"ng-container",0),n.ALo(2,"sumQuantity"),n.ALo(3,"filterDay"),n.BQk()),2&t){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,n.xi3(3,3,e.value,"previous")))}}function At(t,o){if(1&t&&(n.ynx(0),n._UZ(1,"div",12),n.ALo(2,"toNumber"),n._UZ(3,"div",13),n.ALo(4,"toNumber"),n._UZ(5,"div",14),n.ALo(6,"difference"),n.BQk()),2&t){const e=o.ngLet,r=n.oxw().ngLet;n.xp6(1),n.Q6J("innerHTML",n.lcZ(2,3,r),n.oJD),n.xp6(2),n.Q6J("innerHTML",n.lcZ(4,5,e),n.oJD),n.xp6(2),n.Q6J("innerHTML",n.xi3(6,7,e,r),n.oJD)}}function Bt(t,o){if(1&t&&(n.ynx(0),n.YNc(1,At,7,10,"ng-container",0),n.ALo(2,"sumQuantity"),n.ALo(3,"filterDay"),n.BQk()),2&t){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,n.xi3(3,3,e.value,"previous")))}}function Yt(t,o){if(1&t){const e=n.EpF();n.TgZ(0,"div",19),n.NdJ("click",function(){const c=n.CHM(e).$implicit,a=n.oxw(3);return a._obRouter.goToPlantZoneView(a._ac,"region",c.key)}),n.TgZ(1,"div",17),n._uU(2),n.ALo(3,"groupOrPlantName"),n.qZA(),n.YNc(4,Bt,4,6,"ng-container",0),n.ALo(5,"sumQuantity"),n.ALo(6,"filterDay"),n.qZA()}if(2&t){const e=o.$implicit;n.xp6(2),n.Oqu(n.xi3(3,2,e.value,"region")),n.xp6(2),n.Q6J("ngLet",n.lcZ(5,5,n.xi3(6,7,e.value,"current")))}}function Qt(t,o){if(1&t){const e=n.EpF();n.TgZ(0,"div",15)(1,"div",16),n.NdJ("click",function(){const c=n.CHM(e).$implicit,a=n.oxw(2);return a._obRouter.goToPlantZoneView(a._ac,"zone",c.key)}),n.TgZ(2,"div",17),n._uU(3),n.ALo(4,"groupOrPlantName"),n.qZA(),n.YNc(5,Tt,4,6,"ng-container",0),n.ALo(6,"sumQuantity"),n.ALo(7,"filterDay"),n.qZA(),n.YNc(8,Yt,7,10,"div",18),n.ALo(9,"keyvalue"),n.ALo(10,"plantsByZone"),n.qZA()}if(2&t){const e=o.$implicit;n.xp6(3),n.Oqu(n.xi3(4,3,e.value,"group")),n.xp6(2),n.Q6J("ngLet",n.lcZ(6,6,n.xi3(7,8,e.value,"current"))),n.xp6(3),n.Q6J("ngForOf",n.lcZ(9,11,n.lcZ(10,13,e.value)))}}function zt(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"div",1),n._UZ(2,"order-backlog-header",2),n.TgZ(3,"div",3)(4,"div",4),n._UZ(5,"order-backlog-graphic",5),n.qZA(),n.TgZ(6,"div",6),n.YNc(7,kt,7,10,"div",7),n.qZA()()(),n.TgZ(8,"div",8),n.YNc(9,Qt,11,15,"div",9),n.qZA(),n.BQk()),2&t){const e=o.ngLet;n.xp6(5),n.Q6J("zones",e),n.xp6(2),n.Q6J("ngForOf",e),n.xp6(1),n.Q6J("@list",e.length),n.xp6(1),n.Q6J("ngForOf",e)}}const Rt=function(){return[]};class F{constructor(o,e,r,i,c,a){this._ac=o,this._data=e,this.config=r,this.title=i,this.translate=c,this._obRouter=a,this.title.setTitle(this.config.config.appTitle+" - "+this.translate.instant("menu.order_backlog"))}}F.\u0275fac=function(o){return new(o||F)(n.Y36(f.gz),n.Y36(Z.D),n.Y36($.E),n.Y36(V.Dx),n.Y36(w.sK),n.Y36(T))},F.\u0275cmp=n.Xpm({type:F,selectors:[["order-backlog-main"]],hostBindings:function(o,e){1&o&&n.NdJ("swiperight",function(i){return e._data.goFrom("order_backlog",i)})("swipeleft",function(i){return e._data.goFrom("order_backlog",i)})},decls:4,vars:9,consts:[[4,"ngLet"],[1,"report-header"],["type","day"],[1,"overview"],[1,"graphic"],[3,"zones"],[1,"simple"],["class","overview-group",3,"click",4,"ngFor","ngForOf"],[1,"wrapper"],["class","zone",4,"ngFor","ngForOf"],[1,"overview-group",3,"click"],[1,"empty"],[1,"actual",3,"innerHTML"],[1,"previous",3,"innerHTML"],[1,"delta",3,"innerHTML"],[1,"zone"],[1,"zone-header",3,"click"],[1,"title"],["class","plant",3,"click",4,"ngFor","ngForOf"],[1,"plant",3,"click"]],template:function(o,e){1&o&&(n.YNc(0,zt,10,4,"ng-container",0),n.ALo(1,"async"),n.ALo(2,"startWith"),n.ALo(3,"keyvalue")),2&o&&n.Q6J("ngLet",n.lcZ(1,1,n.xi3(2,3,n.lcZ(3,6,e.zones$),n.DdM(8,Rt))))},directives:[A,M,xt,p.sg],pipes:[p.Ov,on,p.Nd,B,I,J,D.$,L,vn],styles:['[_nghost-%COMP%]{display:block;left:0}@media (min-width: 800px){[_nghost-%COMP%] order-backlog-header[_ngcontent-%COMP%] {margin-bottom:-20px}[_nghost-%COMP%] order-backlog-header[_ngcontent-%COMP%] .report-date, [_nghost-%COMP%] order-backlog-header[_ngcontent-%COMP%] .glyph{flex:1 5%}}.overview[_ngcontent-%COMP%]{display:flex;width:100%;max-height:0;overflow:hidden;transition:all .6s ease-in-out;border-color:#0003;background:linear-gradient(to bottom,rgba(255,255,255,0),rgba(52,52,69,.5))}@media (min-width: 400px) and (max-width: 959.98px) and (orientation: landscape){.overview[_ngcontent-%COMP%]{flex-wrap:wrap}}@media screen and (min-width: 400px) and (orientation: landscape){.overview[_ngcontent-%COMP%]{max-height:1000px;min-height:243px;overflow:auto;border-bottom:3px solid rgba(0,0,0,.05)}}@media (min-width: 800px){.overview[_ngcontent-%COMP%]{max-height:1000px;min-height:243px;overflow:auto;border-bottom:3px solid rgba(0,0,0,.05)}}.overview[_ngcontent-%COMP%] .graphic[_ngcontent-%COMP%]{flex:1 60%;max-width:60%;padding:30px 30px 15px}@media (min-width: 400px) and (max-width: 959.98px) and (orientation: landscape){.overview[_ngcontent-%COMP%] .graphic[_ngcontent-%COMP%]{flex:1 40%;max-width:40%;height:260px;padding-right:10px;border-bottom:0;padding-bottom:50px;padding-top:10px}}.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%]{flex:1 40%;max-width:40%;border-left:3px solid rgba(0,0,0,.35);padding:30px 20px 30px 30px}@media (min-width: 400px) and (max-width: 959.98px) and (orientation: landscape){.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%]{flex:1 60%;max-width:60%;border-left-width:0;padding-left:10px}.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .headers[_ngcontent-%COMP%]{padding-right:0!important}.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%]{flex:0 0 95px!important}}.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%]{display:flex;width:100%;line-height:40px;padding:0 15px;box-sizing:border-box;transition:background .1s ease-in-out;border-radius:5px;cursor:pointer;white-space:nowrap}.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%] .empty[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{flex:1}.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%] .actual[_ngcontent-%COMP%]{color:#28e8ff;font-size:16px;font-weight:700;text-align:right}.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%]{color:#f8b03b;font-size:16px;font-weight:700;text-align:right}.overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .overview-group[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{color:#ffffffd9;font-size:16px;font-weight:700;text-align:right}body[theme=light] [_nghost-%COMP%] .overview .simple .overview-group .actual{color:#000!important}body[theme=light][_ngcontent-%COMP%] .zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%]{color:#000!important}body[theme=light] [_nghost-%COMP%]{background-color:#fff}body[theme=light] [_nghost-%COMP%] .zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%]{background-color:#e6e6e6}body[theme=light] [_nghost-%COMP%] .zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#666;font-weight:700}body[theme=light] [_nghost-%COMP%] .zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%]{color:#17687f!important}body[theme=light] [_nghost-%COMP%] .zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%]{color:#e59123!important}body[theme=light] [_nghost-%COMP%] .zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{color:#0d0d0dcc!important}body[theme=light] [_nghost-%COMP%] .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%]{background-color:#fff;border-bottom:1px solid #E6E6E6}body[theme=light] [_nghost-%COMP%] .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#333!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%]{color:#0d0d0d!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%]{color:#0d0d0d!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{color:#0d0d0d!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%]{background:linear-gradient(to bottom,white,#E6E6E6);border-bottom-color:#fff}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%]{border-left-color:transparent}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%]{color:#17687f!important}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%]{color:#e59123!important}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .simple[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{color:#0d0d0dcc!important}.zone[_ngcontent-%COMP%]{display:block;position:relative}.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%]{display:flex;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 20px 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%]{flex:1 30%;text-transform:uppercase}@media (min-width: 800px){.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:17px;line-height:25px;flex:1 70%;letter-spacing:1px}}.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{flex:1 15%;font-size:16px;font-weight:700;text-align:right}@media (min-width: 800px){.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{flex:0 0 150px}}.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%]{color:#28e8ff}.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%]{color:#f8b03b}.zone[_ngcontent-%COMP%] .zone-header[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{color:#ffffffd9}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%]{display:flex;padding:12px 40px;position:relative;cursor:pointer;border-bottom:1px solid transparent}@media (max-width: 800px){.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%]{padding:12px 20px 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%]: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%]:nth-child(even){background-color:#20202966}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%]:nth-child(odd){background-color:#18182099}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{transition:padding-left .15s ease-in-out;flex:1 30%;padding-left:20px;position:relative}@media (min-width: 800px){.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 70%}}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]:after{transition:left .15s ease-in-out;content:"";position:absolute;height:12px;width:12px;top:0;bottom:0;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%] .actual[_ngcontent-%COMP%]{color:#28e8ff}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%]{color:#f8b03b}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{color:#ffffffd9}.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{flex:1 15%;text-align:right;font-size:15px}@media (min-width: 800px){.zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%], .zone[_ngcontent-%COMP%] .plant[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{flex:0 0 150px}}'],data:{animation:[(0,u.X$)("list",[(0,u.eR)("0 => *",[(0,u.IO)(".zone:enter",(0,u.oB)({opacity:0}),{optional:!0}),(0,u.IO)(".zone:enter",(0,u.EY)("200ms",(0,u.jt)("300ms ease-in",(0,u.oB)({opacity:1}))),{optional:!0})])])]},changeDetection:0}),fn([(0,m.Q8)(O.f.GetUniqueZones),On("design:type",Object)],F.prototype,"zones$",void 0),fn([(0,m.Q8)(O.f.GetPlanDate),On("design:type",String)],F.prototype,"plandate$",void 0);var E=g(43717),K=g(84505),Cn=g(63564);let Jt=(()=>{class t{constructor(e,r,i,c){this._store=e,this._config=r,this._data=i,this.translate=c,this.chart$=new K.X([]),this.xAxisTickFormatting=a=>C(a).locale(this._config.config.language).format("MMM"),this.xAxisTickFormattingFn=this.xAxisTickFormatting.bind(this),this.colorScheme$=this._data.lightTheme.valueChanges.pipe((0,mn.O)(this._data.lightTheme.value),(0,h.U)(a=>({domain:a?["#17687F","#f2142c"]:["#28E8FF","#f2142c"]})))}ngOnChanges(e){const r=e.current.currentValue,i=e.previous.currentValue;if(r.length>0&&i.length>0){const c=this._store.selectSnapshot(O.f.GetDateRanges),a=[...c.actual].sort(),_=[...c.previous].sort(),s=r.reduce((v,z)=>{const x=z[d.C7.Date].substring(0,7);return v[x]=v[x]||[],v[x].push(z),v},{}),l=i.reduce((v,z)=>{const x=z[d.C7.Date].substring(0,7);return v[x]=v[x]||[],v[x].push(z),v},{}),P=this.translate.instant("prev_year"),ln=[{name:this.translate.instant("last_x_month"),series:[]},{name:P,series:[]}];let tn=0;const ko=a.length;for(;tn<ko;tn++){const v=a[tn];ln[0].series.push({name:C(s[v][0][d.C7.Date],"YYYY-MM").toDate(),value:N(s[v]),extra:{original:C(s[v][0][d.C7.Date],"YYYY-MM").toDate()}});const z=_[tn];let x=null;try{x=C(l[z][0][d.C7.Date],"YYYY-MM").toDate()}catch(To){}ln[1].series.push({name:C(s[v][0][d.C7.Date],"YYYY-MM").toDate(),value:N(l[z]),extra:{original:x}})}this.chart$.next(ln)}}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(S.yh),n.Y36($.E),n.Y36(Z.D),n.Y36(w.sK))},t.\u0275cmp=n.Xpm({type:t,selectors:[["order-backlog-graphic-comparison"]],inputs:{current:"current",previous:"previous"},features:[n.TTD],decls:3,vars:13,consts:[["legendPosition","below","legendTitle","",3,"scheme","legend","showXAxisLabel","showYAxisLabel","xAxis","yAxis","timeline","xAxisTickFormatting","results"]],template:function(e,r){1&e&&(n._UZ(0,"ngx-charts-line-chart",0),n.ALo(1,"async"),n.ALo(2,"async")),2&e&&n.Q6J("scheme",n.lcZ(1,9,r.colorScheme$))("legend",!0)("showXAxisLabel",!1)("showYAxisLabel",!1)("xAxis",!0)("yAxis",!0)("timeline",!1)("xAxisTickFormatting",r.xAxisTickFormattingFn)("results",n.lcZ(2,11,r.chart$))},directives:[Cn.Dw],pipes:[p.Ov],styles:["[_nghost-%COMP%]{display:block;width:calc(100% - 50px);margin:30px auto 45px;height:250px;box-sizing:border-box}[_nghost-%COMP%] .ngx-charts .line-highlight{display:block}[_nghost-%COMP%] ngx-charts-legend-entry>span{outline:0}[_nghost-%COMP%] .ngx-charts .gridline-path{stroke:#fff3}[_nghost-%COMP%] .ngx-charts .tick text{fill:#ffffffb3}[_nghost-%COMP%] .chart-legend .legend-labels{background:transparent;text-align:center;margin-top:15px}[_nghost-%COMP%] .chart-legend .legend-labels .legend-label-text{font-size:15px}body[theme=light] [_nghost-%COMP%] .ngx-charts .gridline-path{stroke:#0003}body[theme=light] [_nghost-%COMP%] .ngx-charts .tick text{fill:#000000b3}body[theme=light] [_nghost-%COMP%] .chart-legend .legend-label-text{color:#000000b3!important;font-weight:700}[_nghost-%COMP%] .chart-legend .legend-label-text{margin-left:5px;color:#afb7c8!important}.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-color:#00acc1}.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;right:0;border-radius:3px;width:calc(50% - 2px);transition:height .7s ease-in-out;background-color:#f8b03b}.zone[_ngcontent-%COMP%] .bars[_ngcontent-%COMP%] .previous.zero[_ngcontent-%COMP%]{height:0%!important}[_nghost-%COMP%] .actual{border-color:#00acc1;position:relative}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-color:#17687f!important}body[theme=light] [_nghost-%COMP%] .zone .bars .previous{background-color:#e59123!important}body[theme=light] [_nghost-%COMP%] .zone .title{color:#333;font-weight:700}[_nghost-%COMP%] .previous{border-color:#f8b03b;position:relative}"],changeDetection:0}),t})();var cn=g(6178),k=g(90587),an=g(53298),Mn=g(61745),_n=g(72288),nn=g(71412),G=g(38220);function Ft(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"mat-option",4),n._uU(2),n.qZA(),n.BQk()),2&t){const e=o.ngLet,r=n.oxw().$implicit;n.xp6(1),n.MGl("value","zone|",r.key,""),n.xp6(1),n.Oqu(e)}}function St(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"mat-option",6),n._uU(2),n.qZA(),n.BQk()),2&t){const e=o.ngLet,r=n.oxw().$implicit;n.xp6(1),n.MGl("value","region|",r.key,""),n.xp6(1),n.Oqu(e)}}function $t(t,o){if(1&t&&(n.ynx(0,5),n.YNc(1,St,3,2,"ng-container",2),n.ALo(2,"groupOrPlantName"),n.BQk()),2&t){const e=o.$implicit;n.xp6(1),n.Q6J("ngLet",n.xi3(2,1,e.value,"plant"))}}function Ut(t,o){if(1&t&&(n.ynx(0),n.YNc(1,Ft,3,2,"ng-container",2),n.ALo(2,"groupOrPlantName"),n.YNc(3,$t,3,4,"ng-container",3),n.ALo(4,"keyvalue"),n.ALo(5,"plantsByZone"),n.BQk()),2&t){const e=o.$implicit;n.xp6(1),n.Q6J("ngLet",n.xi3(2,2,e.value,"zone")),n.xp6(2),n.Q6J("ngForOf",n.lcZ(4,5,n.lcZ(5,7,e.value)))}}class Y{constructor(o,e){this._obRouter=o,this._ac=e,this.plantControl=new k.NI(""),this.params$=this._ac.paramMap.pipe((0,h.U)(r=>r.keys.reduce((i,c)=>(i[c]=r.get(c),i),{}))),this.params$.subscribe(r=>this.plantControl.setValue(`${r.plant}|${r.id}`)),this.plantControl.valueChanges.pipe((0,an.x)(),(0,h.U)(r=>({type:r.split("|")[0],value:r.split("|")[1]})),(0,Mn.M)(this.params$)).subscribe(([r,i])=>{i.hasOwnProperty("type")?this._obRouter.goToProductRegionView(this._ac,r.type,r.value,null,null,null):i.hasOwnProperty("month")?this._obRouter.goToMonthView(this._ac,r.type,r.value,null):this._obRouter.goToPlantZoneView(this._ac,r.type,r.value)})}}Y.\u0275fac=function(o){return new(o||Y)(n.Y36(T),n.Y36(f.gz))},Y.\u0275cmp=n.Xpm({type:Y,selectors:[["dip-plant-selector"]],decls:4,vars:4,consts:[["panelClass","plant-select-panel",3,"formControl"],[4,"ngFor","ngForOf"],[4,"ngLet"],["class","plant",4,"ngFor","ngForOf"],[1,"zone",3,"value"],[1,"plant"],[1,"plant",3,"value"]],template:function(o,e){1&o&&(n.TgZ(0,"mat-form-field")(1,"mat-select",0),n.YNc(2,Ut,6,9,"ng-container",1),n.ALo(3,"keyvalue"),n.qZA()()),2&o&&(n.xp6(1),n.Q6J("formControl",e.plantControl),n.xp6(1),n.Q6J("ngForOf",n.lcZ(3,2,e.zones$)))},directives:[_n.KE,nn.gD,k.JJ,k.oH,p.sg,A,G.ey],pipes:[p.Nd,B,vn],encapsulation:2,changeDetection:0}),function(t,o,e,r){var a,i=arguments.length,c=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,o,e,r);else for(var _=t.length-1;_>=0;_--)(a=t[_])&&(c=(i<3?a(c):i>3?a(o,e,c):a(o,e))||c);i>3&&c&&Object.defineProperty(o,e,c)}([(0,m.Q8)(O.f.GetUniqueZones),function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",Object)}()],Y.prototype,"zones$",void 0);let Pn=(()=>{class t{transform(e){return Object.entries(e.reduce((r,i)=>{const c=+C(i[d.C7.Date],"YYYY-MM-DD").year();return r[c]=r[c]||[],r[c].push(i),r},{})).map(r=>({key:r[0],value:r[1]})).reverse()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"distinctYears",type:t,pure:!0}),t})(),xn=(()=>{class t{transform(e){return[...e].reverse()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"reverse",type:t,pure:!0}),t})(),wn=(()=>{class t{constructor(e){this._config=e}transform(e){return C(e,["YYYY-MM-DD","YYYY-MM"]).locale(this._config.config.language).format("MMMM YYYY")}}return t.\u0275fac=function(e){return new(e||t)(n.Y36($.E,16))},t.\u0275pipe=n.Yjl({name:"monthFormat",type:t,pure:!0}),t})(),bn=(()=>{class t{transform(e,r){const i=C(e,"YYYY-MM-DD").subtract(1,"years").format("YYYY-MM");try{return r[0].hasOwnProperty("key")?r.find(c=>c.key.substring(0,7)===i).value:r.find(c=>c[d.C7.Date].substring(0,7)===i).value}catch(c){return console.log("Previous month not found for date "+e),[]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"previousMonth",type:t,pure:!0}),t})();function jt(t,o){if(1&t&&(n.ynx(0),n._UZ(1,"div",11),n.ALo(2,"toNumber"),n._UZ(3,"div",12),n.ALo(4,"toNumber"),n._UZ(5,"div",13),n.ALo(6,"difference"),n.BQk()),2&t){const e=o.ngLet,r=n.oxw().ngLet;n.xp6(1),n.Q6J("innerHTML",n.lcZ(2,3,r),n.oJD),n.xp6(2),n.Q6J("innerHTML",n.lcZ(4,5,e),n.oJD),n.xp6(2),n.Q6J("innerHTML",n.xi3(6,7,e,r),n.oJD)}}function It(t,o){if(1&t&&(n.ynx(0),n.YNc(1,jt,7,10,"ng-container",0),n.ALo(2,"sumQuantity"),n.ALo(3,"previousMonth"),n.BQk()),2&t){const e=n.oxw().$implicit,r=n.oxw(2).ngLet;n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,n.xi3(3,3,e.key,r)))}}function Et(t,o){if(1&t){const e=n.EpF();n.TgZ(0,"div",10),n.NdJ("click",function(){const c=n.CHM(e).$implicit,a=n.oxw(8);return a._obRouter.goToMonthView(a._ac,null,null,c.key)}),n.TgZ(1,"div",8),n._uU(2),n.ALo(3,"monthFormat"),n.qZA(),n.YNc(4,It,4,6,"ng-container",0),n.ALo(5,"sumQuantity"),n.qZA()}if(2&t){const e=o.$implicit;n.xp6(2),n.Oqu(n.lcZ(3,2,e.key)),n.xp6(2),n.Q6J("ngLet",n.lcZ(5,4,e.value))}}function Gt(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"div",7)(2,"div",8),n._uU(3),n.qZA()(),n.YNc(4,Et,6,6,"div",9),n.ALo(5,"reverse"),n.ALo(6,"keyvalue"),n.ALo(7,"distinctMonths"),n.BQk()),2&t){const e=o.$implicit;n.xp6(3),n.Oqu(e.key),n.xp6(1),n.Q6J("ngForOf",n.lcZ(5,2,n.lcZ(6,4,n.lcZ(7,6,e.value))))}}function Vt(t,o){if(1&t&&(n.ynx(0),n.YNc(1,Gt,8,8,"ng-container",6),n.ALo(2,"distinctYears"),n.BQk()),2&t){const e=n.oxw().ngLet;n.xp6(1),n.Q6J("ngForOf",n.lcZ(2,1,e))}}function Wt(t,o){if(1&t&&(n.ynx(0),n.YNc(1,Vt,3,3,"ng-container",0),n.ALo(2,"keyvalue"),n.ALo(3,"distinctMonths"),n.ALo(4,"filterYear"),n.BQk()),2&t){const e=n.oxw(3).ngLet;n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,n.lcZ(3,3,n.xi3(4,5,e,"previous"))))}}function Xt(t,o){if(1&t){const e=n.EpF();n.ynx(0),n._UZ(1,"order-backlog-graphic-comparison",1),n.TgZ(2,"div",2),n._UZ(3,"order-backlog-header"),n.TgZ(4,"div",3)(5,"i",4),n.NdJ("click",function(){return n.CHM(e),n.oxw(4)._obRouter.goToMainView()}),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"div",5),n._UZ(8,"dip-plant-selector"),n.qZA()(),n.YNc(9,Wt,5,8,"ng-container",0),n.ALo(10,"filterYear"),n.qZA(),n.BQk()}if(2&t){const e=o.ngLet,r=n.oxw().ngLet,i=n.oxw().ngLet;n.xp6(1),n.Q6J("current",r)("previous",e),n.xp6(4),n.s9C("matTooltip",n.lcZ(6,4,"return.main")),n.xp6(4),n.Q6J("ngLet",n.xi3(10,6,i,"current"))}}function Kt(t,o){if(1&t&&(n.ynx(0),n.YNc(1,Xt,11,9,"ng-container",0),n.ALo(2,"filterYear"),n.BQk()),2&t){const e=n.oxw().ngLet;n.xp6(1),n.Q6J("ngLet",n.xi3(2,1,e,"previous"))}}function ne(t,o){if(1&t&&(n.ynx(0),n.YNc(1,Kt,3,4,"ng-container",0),n.ALo(2,"filterYear"),n.BQk()),2&t){const e=o.ngLet;n.xp6(1),n.Q6J("ngLet",n.xi3(2,1,e,"current"))}}function te(t,o){if(1&t&&(n.ynx(0),n.YNc(1,ne,3,4,"ng-container",0),n.ALo(2,"async"),n.BQk()),2&t){const e=n.oxw();n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,e.rows$))}}class H{constructor(o,e,r,i,c,a,_){this._ac=o,this.config=e,this._title=r,this._store=i,this._breakpoints=c,this.translate=a,this._obRouter=_,this._title.setTitle(this.config.config.appTitle+" - "+this.translate.instant("menu.order_backlog")),this.mobile$=this._breakpoints.observe(E.u3.HandsetPortrait).pipe((0,h.U)(s=>s.matches)),this.params$=this._ac.paramMap.pipe((0,h.U)(s=>s.keys.reduce((l,P)=>(l[P]=s.get(P),l),{}))),this.rows$=this.params$.pipe((0,y.w)(s=>this._store.select(b.i.GetZoneOrPlantRows(s.plant,s.id))))}}function ee(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"mat-option",5),n._uU(2),n.ALo(3,"monthFormat"),n.qZA(),n.BQk()),2&t){const e=o.$implicit;n.xp6(1),n.Q6J("value",e.key),n.xp6(1),n.Oqu(n.lcZ(3,2,e.key))}}function oe(t,o){if(1&t&&(n.TgZ(0,"mat-optgroup",3),n.YNc(1,ee,4,4,"ng-container",4),n.ALo(2,"reverse"),n.ALo(3,"keyvalue"),n.ALo(4,"distinctMonths"),n.qZA()),2&t){const e=o.$implicit;n.Q6J("label",e.key),n.xp6(1),n.Q6J("ngForOf",n.lcZ(2,2,n.lcZ(3,4,n.lcZ(4,6,e.value))))}}function re(t,o){if(1&t&&(n.ynx(0),n.YNc(1,oe,5,8,"mat-optgroup",2),n.ALo(2,"distinctYears"),n.BQk()),2&t){const e=n.oxw().ngLet;n.xp6(1),n.Q6J("ngForOf",n.lcZ(2,1,e))}}function ie(t,o){if(1&t&&(n.ynx(0),n.YNc(1,re,3,3,"ng-container",1),n.ALo(2,"keyvalue"),n.ALo(3,"distinctMonths"),n.ALo(4,"filterYear"),n.BQk()),2&t){const e=n.oxw();n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,n.lcZ(3,3,n.xi3(4,5,e.rows,"previous"))))}}H.\u0275fac=function(o){return new(o||H)(n.Y36(f.gz),n.Y36($.E),n.Y36(V.Dx),n.Y36(S.yh),n.Y36(E.Yg),n.Y36(w.sK),n.Y36(T))},H.\u0275cmp=n.Xpm({type:H,selectors:[["order-backlog-sub-lvl2"]],hostBindings:function(o,e){1&o&&n.NdJ("swiperight",function(i){return e.data.goFrom("order_backlog",i)})("swipeleft",function(i){return e.data.goFrom("order_backlog",i)})},decls:2,vars:3,consts:[[4,"ngLet"],[3,"current","previous"],[1,"overview"],[1,"header-row","zone"],["matTooltipClass","after","matTooltipPosition","after",1,"arrow",3,"matTooltip","click"],[1,"title","with-selector"],[4,"ngFor","ngForOf"],[1,"title-header"],[1,"title"],["class","lvl2-row",3,"click",4,"ngFor","ngForOf"],[1,"lvl2-row",3,"click"],[1,"actual","cyan",3,"innerHTML"],[1,"previous","orange",3,"innerHTML"],[1,"delta","grey",3,"innerHTML"]],template:function(o,e){1&o&&(n.YNc(0,te,3,3,"ng-container",0),n.ALo(1,"async")),2&o&&n.Q6J("ngLet",n.lcZ(1,1,e.params$))},directives:[A,Jt,M,cn.gM,Y,p.sg],pipes:[p.Ov,R,w.X$,p.Nd,W,Pn,xn,wn,I,bn,D.$,L],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%] .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 20px 12px 15px}}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 30%;position:relative}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 70%}}.overview[_ngcontent-%COMP%] .header-row.total[_ngcontent-%COMP%]{background-color:#34344580}.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%] .actual[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{flex:1 15%;text-align:right;font-size:16px;font-weight:700}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%]{color:#28e8ff}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%]{color:#f8b03b}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{color:#ffffffd9}.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;text-transform:uppercase;display:flex;background-color:#34344580}@media (max-width: 800px){.overview[_ngcontent-%COMP%] .title-header[_ngcontent-%COMP%]{padding:12px 20px 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%]{font-size:17px;line-height:25px;letter-spacing:1px}}.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]{flex:1 100%;padding:12px 40px;display:flex;cursor:pointer;border-bottom:1px solid transparent}@media (max-width: 800px){.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]{padding:12px 20px 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 30%;padding-left:20px;position:relative;transition:padding-left .15s ease-in-out}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 70%}}.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:0;bottom:0;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%] .actual[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{flex:1 15%;text-align:right;font-size:15px}body[theme=light] [_nghost-%COMP%]{background-color:#fff}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.total[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%]{background-color:#e6e6e6;border-bottom:2px solid white}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.total[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#333;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.total[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%]{color:#17687f;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.total[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%]{color:#e59123;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.total[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{color:#0d0d0dcc;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .title-header[_ngcontent-%COMP%]{background-color:#e6e6e6}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .title-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#666;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%]{background-color:#fff;border-bottom:1px solid #E6E6E6}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#333!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%]{color:#0d0d0d!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%]{color:#0d0d0d!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl2-row[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{color:#0d0d0d!important;font-weight:700}'],changeDetection:0}),function(t,o,e,r){var a,i=arguments.length,c=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,o,e,r);else for(var _=t.length-1;_>=0;_--)(a=t[_])&&(c=(i<3?a(c):i>3?a(o,e,c):a(o,e))||c);i>3&&c&&Object.defineProperty(o,e,c)}([(0,m.Q8)(O.f.GetPlanDate),function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",String)}()],H.prototype,"plandate$",void 0);let yn=(()=>{class t{constructor(e,r){this._obRouter=e,this._ac=r,this.monthControl=new k.NI(""),this.params$=this._ac.paramMap.pipe((0,h.U)(i=>i.keys.reduce((c,a)=>(c[a]=i.get(a),c),{}))),this.params$.subscribe(i=>this.monthControl.setValue(i.month)),this.monthControl.valueChanges.pipe((0,an.x)(),(0,Mn.M)(this.params$)).subscribe(([i,c])=>{c.hasOwnProperty("type")?this._obRouter.goToProductRegionView(this._ac,null,null,i,null,null):this._obRouter.goToMonthView(this._ac,null,null,i)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(T),n.Y36(f.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["dip-month-selector"]],inputs:{rows:"rows"},decls:4,vars:5,consts:[["panelClass","plant-select-panel",3,"formControl"],[4,"ngLet"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],[4,"ngFor","ngForOf"],[3,"value"]],template:function(e,r){1&e&&(n.TgZ(0,"mat-form-field")(1,"mat-select",0),n.YNc(2,ie,5,8,"ng-container",1),n.ALo(3,"filterYear"),n.qZA()()),2&e&&(n.xp6(1),n.Q6J("formControl",r.monthControl),n.xp6(1),n.Q6J("ngLet",n.xi3(3,2,r.rows,"current")))},directives:[_n.KE,nn.gD,k.JJ,k.oH,A,p.sg,G.Nv,G.ey],pipes:[R,p.Nd,W,Pn,xn,wn],encapsulation:2,changeDetection:0}),t})(),Ln=(()=>{class t{constructor(){this.previous=null,this.maxWidth$=new K.X("100%"),this.actualPercent=new K.X(0),this.previousPercent=new K.X(0)}ngOnChanges(e){const r=e.current.currentValue||0,i=e.previous&&e.previous.currentValue||0,c=e.maximum.currentValue;let a=r;isNaN(i)||(a=Math.max(r,i)),this.maxWidth$.next(this.calculatePercent(c,a)+"%");const _=this.calculatePercent(a,r);this.actualPercent.next(_);const s=this.calculatePercent(a,i);this.previousPercent.next(s)}calculatePercent(e,r){return+(r/e*100).toFixed(0)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=n.Xpm({type:t,selectors:[["dip-product-region-chart"]],inputs:{current:"current",previous:"previous",maximum:"maximum"},features:[n.TTD],decls:12,vars:22,consts:[[1,"wrapper"],[1,"bar-wrapper"],[1,"bar","actual"],[1,"bar","previous"]],template:function(e,r){1&e&&(n.TgZ(0,"div",0),n.ALo(1,"async"),n.TgZ(2,"div",1),n.ALo(3,"async"),n.ALo(4,"startWith"),n.ALo(5,"async"),n._UZ(6,"div",2),n.qZA(),n.TgZ(7,"div",1),n.ALo(8,"async"),n.ALo(9,"startWith"),n.ALo(10,"async"),n._UZ(11,"div",3),n.qZA()()),2&e&&(n.Udp("width",n.lcZ(1,6,r.maxWidth$)),n.xp6(2),n.Udp("width",n.lcZ(3,8,n.xi3(4,10,n.lcZ(5,13,r.actualPercent),0)),"%"),n.xp6(5),n.Udp("width",n.lcZ(8,15,n.xi3(9,17,n.lcZ(10,20,r.previousPercent),0)),"%"))},pipes:[p.Ov,on],styles:["[_nghost-%COMP%]{display:block;flex:0 50%;height:100%}.desktop[_nghost-%COMP%]{padding-left:100px}.mobile[_nghost-%COMP%]{flex:1 100%;margin:20px 0 5px;height:35px}.wrapper[_ngcontent-%COMP%]{display:flex;height:100%;flex-direction:column}.wrapper[_ngcontent-%COMP%] .bar-wrapper[_ngcontent-%COMP%]{position:relative;flex:0 50%;max-height:50%;padding:2px 0;box-sizing:border-box;transition:all 1.2s ease-in-out;transition-delay:.3s}.wrapper[_ngcontent-%COMP%] .bar-wrapper[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{position:absolute;width:100%;height:calc(100% - 4px);border-radius:3px;font-size:12px}.wrapper[_ngcontent-%COMP%] .bar-wrapper[_ngcontent-%COMP%] .bar.actual[_ngcontent-%COMP%]{background:linear-gradient(to right,rgba(0,0,0,0),#00ACC1)}body[theme=light] [_nghost-%COMP%] .wrapper[_ngcontent-%COMP%] .bar-wrapper[_ngcontent-%COMP%] .bar.actual[_ngcontent-%COMP%]{background:linear-gradient(to right,rgba(0,0,0,0),#17687F)}.wrapper[_ngcontent-%COMP%] .bar-wrapper[_ngcontent-%COMP%] .bar.previous[_ngcontent-%COMP%]{background:linear-gradient(to right,rgba(0,0,0,0),#F8B03B)}body[theme=light] [_nghost-%COMP%] .wrapper[_ngcontent-%COMP%] .bar-wrapper[_ngcontent-%COMP%] .bar.previous[_ngcontent-%COMP%]{background:linear-gradient(to right,rgba(0,0,0,0),#E59123)}"],changeDetection:0}),t})();class Q{transform(o,e,r=null){if(!o||0===o.length)return{};const i="region"===e?d.C7[`Region${this.language}`]:d.C7[`Product${this.language}`],c=o.reduce((a,_)=>(a[_[i]]=a[_[i]]||[],a[_[i]].push(_),a),{});if(r)for(const a in r)r[a]&&(c[a]=c[a]||[]);return c}}Q.\u0275fac=function(o){return new(o||Q)},Q.\u0275pipe=n.Yjl({name:"distinctItems",type:Q,pure:!0}),function(t,o,e,r){var a,i=arguments.length,c=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,o,e,r);else for(var _=t.length-1;_>=0;_--)(a=t[_])&&(c=(i<3?a(c):i>3?a(o,e,c):a(o,e))||c);i>3&&c&&Object.defineProperty(o,e,c)}([(0,m.cB)(rn.Z.GetLanguageHuman),function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",String)}()],Q.prototype,"language",void 0);let kn=(()=>{class t{transform(e,r){let i=0,c=0;if(e&&e.length>0){const a=e.map(_=>N(_.value)).filter(_=>!isNaN(_));i=Math.max(...a)}if(r&&r.length>0){const a=r.map(_=>N(_.value)).filter(_=>!isNaN(_));c=Math.max(...a)}return Math.max(i,c)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"max",type:t,pure:!0}),t})(),Zn=(()=>{class t{transform(e,r){return e||r}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"default",type:t,pure:!0}),t})();function le(t,o){if(1&t&&(n.ynx(0),n._UZ(1,"div",12),n.ALo(2,"toNumber"),n._UZ(3,"div",13),n.ALo(4,"toNumber"),n._UZ(5,"div",14),n.ALo(6,"difference"),n.BQk()),2&t){const e=o.ngLet,r=n.oxw().ngLet;n.xp6(1),n.Q6J("innerHTML",n.lcZ(2,3,r),n.oJD),n.xp6(2),n.Q6J("innerHTML",n.lcZ(4,5,e),n.oJD),n.xp6(2),n.Q6J("innerHTML",n.xi3(6,7,e,r),n.oJD)}}function pe(t,o){if(1&t&&(n.ynx(0),n.YNc(1,le,7,10,"ng-container",0),n.ALo(2,"sumQuantity"),n.BQk()),2&t){const e=n.oxw().ngLet;n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,e))}}function se(t,o){1&t&&n.GkF(0)}const Tn=function(t,o,e){return{current:t,previous:o,maximum:e}};function de(t,o){if(1&t&&(n.ynx(0),n.YNc(1,se,1,0,"ng-container",19),n.BQk()),2&t){const e=o.ngLet,r=n.oxw(2).ngLet,i=n.oxw(2).ngLet;n.oxw(7);const c=n.MAs(3);n.xp6(1),n.Q6J("ngTemplateOutlet",c)("ngTemplateOutletContext",n.kEZ(2,Tn,r,e,i))}}function ue(t,o){if(1&t&&(n.ynx(0),n.YNc(1,de,2,6,"ng-container",0),n.ALo(2,"sumQuantity"),n.BQk()),2&t){const e=o.ngIf;n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,e))}}const An=function(){return[]};function he(t,o){if(1&t&&(n.ynx(0),n.YNc(1,ue,3,3,"ng-container",18),n.ALo(2,"default"),n.BQk()),2&t){const e=n.oxw().$implicit,r=n.MAs(6),i=n.oxw(3).ngLet;n.xp6(1),n.Q6J("ngIf",n.xi3(2,2,i[e.key],n.DdM(5,An)))("ngIfElse",r)}}function me(t,o){1&t&&(n.TgZ(0,"div",20),n._uU(1,"-"),n.qZA(),n.TgZ(2,"div",21),n._uU(3,"-"),n.qZA())}function ve(t,o){if(1&t){const e=n.EpF();n.TgZ(0,"div",16),n.NdJ("click",function(){const c=n.CHM(e).$implicit,a=n.oxw(8);return a._obRouter.goToProductRegionView(a._ac,null,null,null,"region",c.key)}),n.TgZ(1,"div",11),n._uU(2),n.qZA(),n.YNc(3,he,3,6,"ng-container",0),n.ALo(4,"sumQuantity"),n.YNc(5,me,4,0,"ng-template",null,17,n.W1O),n.qZA()}if(2&t){const e=o.$implicit;n.xp6(2),n.Oqu(e.key),n.xp6(1),n.Q6J("ngLet",n.lcZ(4,2,e.value))}}function fe(t,o){if(1&t&&(n.ynx(0),n.YNc(1,ve,7,4,"div",15),n.BQk()),2&t){const e=n.oxw().ngLet;n.xp6(1),n.Q6J("ngForOf",e)}}function Oe(t,o){if(1&t&&(n.ynx(0),n.YNc(1,fe,2,1,"ng-container",0),n.ALo(2,"max"),n.ALo(3,"keyvalue"),n.BQk()),2&t){const e=o.ngLet,r=n.oxw().ngLet;n.xp6(1),n.Q6J("ngLet",n.xi3(2,1,e,n.lcZ(3,4,r)))}}function Ce(t,o){if(1&t&&(n.ynx(0),n.YNc(1,Oe,4,6,"ng-container",0),n.ALo(2,"keyvalue"),n.ALo(3,"distinctItems"),n.BQk()),2&t){const e=o.ngLet,r=n.oxw(3).ngLet;n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,n.Dn7(3,3,r,"region",e)))}}function Me(t,o){1&t&&n.GkF(0)}function Pe(t,o){if(1&t&&(n.ynx(0),n.YNc(1,Me,1,0,"ng-container",19),n.BQk()),2&t){const e=o.ngLet,r=n.oxw(2).ngLet,i=n.oxw(2).ngLet;n.oxw(7);const c=n.MAs(3);n.xp6(1),n.Q6J("ngTemplateOutlet",c)("ngTemplateOutletContext",n.kEZ(2,Tn,r,e,i))}}function xe(t,o){if(1&t&&(n.ynx(0),n.YNc(1,Pe,2,6,"ng-container",0),n.ALo(2,"sumQuantity"),n.BQk()),2&t){const e=o.ngLet;n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,e))}}function we(t,o){if(1&t&&(n.ynx(0),n.YNc(1,xe,3,3,"ng-container",0),n.ALo(2,"default"),n.BQk()),2&t){const e=n.oxw().$implicit,r=n.oxw(3).ngLet;n.xp6(1),n.Q6J("ngLet",n.xi3(2,1,r[e.key],n.DdM(4,An)))}}function be(t,o){if(1&t){const e=n.EpF();n.TgZ(0,"div",16),n.NdJ("click",function(){const c=n.CHM(e).$implicit,a=n.oxw(8);return a._obRouter.goToProductRegionView(a._ac,null,null,null,"product",c.key)}),n.TgZ(1,"div",11),n._uU(2),n.qZA(),n.YNc(3,we,3,5,"ng-container",0),n.ALo(4,"sumQuantity"),n.qZA()}if(2&t){const e=o.$implicit;n.xp6(2),n.Oqu(e.key),n.xp6(1),n.Q6J("ngLet",n.lcZ(4,2,e.value))}}function ye(t,o){if(1&t&&(n.ynx(0),n.YNc(1,be,5,4,"div",15),n.BQk()),2&t){const e=n.oxw().ngLet;n.xp6(1),n.Q6J("ngForOf",e)}}function Le(t,o){if(1&t&&(n.ynx(0),n.YNc(1,ye,2,1,"ng-container",0),n.ALo(2,"max"),n.ALo(3,"keyvalue"),n.BQk()),2&t){const e=o.ngLet,r=n.oxw().ngLet;n.xp6(1),n.Q6J("ngLet",n.xi3(2,1,e,n.lcZ(3,4,r)))}}function ke(t,o){if(1&t&&(n.ynx(0),n.YNc(1,Le,4,6,"ng-container",0),n.ALo(2,"keyvalue"),n.ALo(3,"distinctItems"),n.BQk()),2&t){const e=o.ngLet,r=n.oxw(3).ngLet;n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,n.Dn7(3,3,r,"product",e)))}}function Ze(t,o){if(1&t){const e=n.EpF();n.ynx(0),n.TgZ(1,"div",5)(2,"div",6)(3,"i",7),n.NdJ("click",function(){return n.CHM(e),n.oxw(4)._obRouter.goToMainView()}),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"div",8),n._UZ(6,"dip-plant-selector"),n.qZA()(),n.TgZ(7,"div",6)(8,"i",7),n.NdJ("click",function(){n.CHM(e);const i=n.oxw(4);return i._obRouter.goToPlantZoneView(i._ac)}),n.ALo(9,"translate"),n.qZA(),n.TgZ(10,"div",8),n._UZ(11,"dip-month-selector",9),n.qZA(),n.YNc(12,pe,3,3,"ng-container",0),n.ALo(13,"sumQuantity"),n.qZA()(),n.TgZ(14,"div",10)(15,"div",11),n._uU(16),n.ALo(17,"translate"),n.qZA()(),n.YNc(18,Ce,4,7,"ng-container",0),n.ALo(19,"distinctItems"),n.TgZ(20,"div",10)(21,"div",11),n._uU(22),n.ALo(23,"translate"),n.qZA()(),n.YNc(24,ke,4,7,"ng-container",0),n.ALo(25,"distinctItems"),n.BQk()}if(2&t){const e=o.ngLet,r=n.oxw().ngLet,i=n.oxw().ngLet;n.xp6(3),n.s9C("matTooltip",n.lcZ(4,8,"return.main")),n.xp6(5),n.s9C("matTooltip",n.lcZ(9,10,"return.month")),n.xp6(3),n.Q6J("rows",r),n.xp6(1),n.Q6J("ngLet",n.lcZ(13,12,i)),n.xp6(4),n.Oqu(n.lcZ(17,14,"cities")),n.xp6(2),n.Q6J("ngLet",n.xi3(19,16,e,"region")),n.xp6(4),n.Oqu(n.lcZ(23,19,"companies")),n.xp6(2),n.Q6J("ngLet",n.xi3(25,21,e,"product"))}}function Te(t,o){if(1&t&&(n.TgZ(0,"div",4),n._UZ(1,"order-backlog-header"),n.YNc(2,Ze,26,24,"ng-container",0),n.ALo(3,"previousMonth"),n.ALo(4,"keyvalue"),n.ALo(5,"distinctMonths"),n.qZA()),2&t){const e=o.ngLet,r=n.oxw(2).ngLet;n.xp6(2),n.Q6J("ngLet",n.xi3(3,1,r.month,n.lcZ(4,4,n.lcZ(5,6,e))))}}function Ae(t,o){if(1&t&&(n.ynx(0),n.YNc(1,Te,6,8,"div",3),n.ALo(2,"async"),n.BQk()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,e.plantOrZoneRows$))}}function Be(t,o){if(1&t&&(n.ynx(0),n.YNc(1,Ae,3,3,"ng-container",0),n.ALo(2,"async"),n.BQk()),2&t){const e=n.oxw();n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,e.rows$))}}function Ye(t,o){1&t&&n.GkF(0)}function Qe(t,o){1&t&&n.GkF(0)}const Bn=function(t,o){return{current:t,previous:o}};function ze(t,o){if(1&t&&(n.YNc(0,Qe,1,0,"ng-container",19),n._UZ(1,"dip-product-region-chart",25)),2&t){const e=n.oxw(),r=e.current,i=e.previous,c=e.maximum;n.oxw();const a=n.MAs(5);n.Q6J("ngTemplateOutlet",a)("ngTemplateOutletContext",n.WLB(5,Bn,r,i)),n.xp6(1),n.Q6J("current",r)("previous",i)("maximum",c)}}function Re(t,o){1&t&&n.GkF(0)}function Je(t,o){if(1&t&&(n._UZ(0,"dip-product-region-chart",26),n.YNc(1,Re,1,0,"ng-container",19)),2&t){const e=n.oxw(),r=e.current,i=e.previous,c=e.maximum;n.oxw();const a=n.MAs(5);n.Q6J("current",r)("previous",i)("maximum",c),n.xp6(1),n.Q6J("ngTemplateOutlet",a)("ngTemplateOutletContext",n.WLB(5,Bn,r,i))}}function Ne(t,o){if(1&t&&(n.YNc(0,Ye,1,0,"ng-container",22),n.ALo(1,"async"),n.YNc(2,ze,2,8,"ng-template",null,23,n.W1O),n.YNc(4,Je,2,8,"ng-template",null,24,n.W1O)),2&t){const e=n.MAs(3),r=n.MAs(5),i=n.oxw();n.Q6J("ngIf",n.lcZ(1,3,i._data.mobile$))("ngIfThen",e)("ngIfElse",r)}}function De(t,o){if(1&t&&(n._UZ(0,"div",27),n.ALo(1,"toNumber"),n._UZ(2,"div",28),n.ALo(3,"toNumber"),n._UZ(4,"div",14),n.ALo(5,"difference")),2&t){const e=o.current,r=o.previous;n.Q6J("innerHTML",n.lcZ(1,3,e),n.oJD),n.xp6(2),n.Q6J("innerHTML",n.lcZ(3,5,r),n.oJD),n.xp6(2),n.Q6J("innerHTML",n.xi3(5,7,r,e),n.oJD)}}class q{constructor(o,e,r,i,c,a,_){this._ac=o,this._data=e,this.config=r,this._title=i,this._store=c,this.translate=a,this._obRouter=_,this._title.setTitle(this.config.config.appTitle+" - "+this.translate.instant("menu.order_backlog")),this.params$=this._ac.paramMap.pipe((0,h.U)(s=>s.keys.reduce((l,P)=>(l[P]=s.get(P),l),{}))),this.plantOrZoneRows$=this.params$.pipe((0,y.w)(s=>this._store.select(b.i.GetZoneOrPlantRows(s.plant,s.id)))),this.rows$=this.params$.pipe((0,y.w)(s=>this._store.select(b.i.GetMonthRows(s.plant,s.id,s.month))))}}q.\u0275fac=function(o){return new(o||q)(n.Y36(f.gz),n.Y36(Z.D),n.Y36($.E),n.Y36(V.Dx),n.Y36(S.yh),n.Y36(w.sK),n.Y36(T))},q.\u0275cmp=n.Xpm({type:q,selectors:[["order-backlog-sub-lvl3"]],hostBindings:function(o,e){1&o&&n.NdJ("swiperight",function(i){return e.data.goFrom("order_backlog",i)})("swipeleft",function(i){return e.data.goFrom("order_backlog",i)})},decls:6,vars:3,consts:[[4,"ngLet"],["responsiveRow",""],["lvl3Row",""],["class","overview",4,"ngLet"],[1,"overview"],[1,"header-rows"],[1,"header-row","zone"],["matTooltipClass","after","matTooltipPosition","after",1,"arrow",3,"matTooltip","click"],[1,"title","with-selector"],[3,"rows"],[1,"title-header"],[1,"title"],[1,"actual",3,"innerHTML"],[1,"previous",3,"innerHTML"],[1,"delta","grey",3,"innerHTML"],["class","lvl3-row",3,"click",4,"ngFor","ngForOf"],[1,"lvl3-row",3,"click"],["dummyPrevious",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"previous","orange"],[1,"delta","grey"],[4,"ngIf","ngIfThen","ngIfElse"],["mobileRow",""],["desktopRow",""],[1,"mobile",3,"current","previous","maximum"],[1,"desktop",3,"current","previous","maximum"],[1,"actual","cyan",3,"innerHTML"],[1,"previous","orange",3,"innerHTML"]],template:function(o,e){1&o&&(n.YNc(0,Be,3,3,"ng-container",0),n.ALo(1,"async"),n.YNc(2,Ne,6,5,"ng-template",null,1,n.W1O),n.YNc(4,De,6,10,"ng-template",null,2,n.W1O)),2&o&&n.Q6J("ngLet",n.lcZ(1,1,e.params$))},directives:[A,M,cn.gM,Y,yn,p.sg,p.O5,p.tP,Ln],pipes:[p.Ov,bn,p.Nd,W,w.X$,I,D.$,L,Q,kn,Zn],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%] .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 20px 12px 15px}}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 30%;position:relative}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 70%}}.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:0;bottom:0;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%] .actual[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{flex:1 15%;text-align:right;font-size:16px;font-weight:700}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%]{color:#28e8ff}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .previous[_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;text-transform:uppercase;display:flex;background-color:#34344580}@media (max-width: 800px){.overview[_ngcontent-%COMP%] .title-header[_ngcontent-%COMP%]{padding:12px 20px 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%]{font-size:17px;line-height:25px;letter-spacing:1px}}.overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%]{flex:1 100%;padding:20px 40px;flex-wrap:wrap;display:flex;cursor:pointer;align-items:center;border-bottom:1px solid transparent}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%]{flex-wrap:nowrap;height:70px}}@media (max-width: 800px){.overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%]{padding:12px 20px 12px 15px}}.overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%]:hover{background-color:#ffffff05}body[theme=new-dark] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%]:hover{background-color:#121212!important}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%]:hover{background-color:#0000000d!important}.overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%]:nth-child(even){background-color:#20202966}.overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%]:nth-child(odd){background-color:#18182099}.overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%]:hover .title[_ngcontent-%COMP%]{padding-left:30px}.overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%]:hover .title[_ngcontent-%COMP%]:after{left:15px}.overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 30%;padding-left:20px;position:relative;transition:padding-left .15s ease-in-out}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 20%}}.overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]:after{transition:left .15s ease-in-out;content:"";position:absolute;height:12px;width:12px;top:0;bottom:0;left:0;margin:auto;display:block;background-image:url(assets/arrow.svg);background-size:contain;background-repeat:no-repeat}.overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{flex:1 15%;text-align:right;font-size:15px}body[theme=light] [_nghost-%COMP%]{background-color:#fff}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.total[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%]{background-color:#e6e6e6;border-bottom:2px solid white}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.total[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#333;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.total[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%]{color:#17687f;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.total[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%]{color:#e59123;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.total[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{color:#0d0d0dcc;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .title-header[_ngcontent-%COMP%]{background-color:#e6e6e6}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .title-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#666;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%]{background-color:#fff;border-bottom:1px solid #E6E6E6}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#333!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%]{color:#0d0d0d!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%]{color:#0d0d0d!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl3-row[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{color:#0d0d0d!important;font-weight:700}'],changeDetection:0}),function(t,o,e,r){var a,i=arguments.length,c=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,o,e,r);else for(var _=t.length-1;_>=0;_--)(a=t[_])&&(c=(i<3?a(c):i>3?a(o,e,c):a(o,e))||c);i>3&&c&&Object.defineProperty(o,e,c)}([(0,m.Q8)(O.f.GetPlanDate),function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",String)}()],q.prototype,"plandate$",void 0);let Fe=(()=>{class t{constructor(e){this._data=e}transform(e){return e=e.split("|")[1],this._data.mobile$.pipe((0,h.U)(r=>r&&e.length>10?e.substring(0,14)+"...":e))}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(Z.D,16))},t.\u0275pipe=n.Yjl({name:"productRegionLabelFormat",type:t,pure:!0}),t})(),Se=(()=>{class t{transform(){const e=[];for(let r=0;r<arguments.length;r++)e.push(arguments[r]||[]);return e.flat()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"joinArrays",type:t,pure:!0}),t})();function $e(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"mat-option",6),n._uU(2),n.qZA(),n.BQk()),2&t){const e=o.$implicit;n.xp6(1),n.MGl("value","region|",e.key,""),n.xp6(1),n.Oqu(e.key)}}function Ue(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"mat-option",6),n._uU(2),n.qZA(),n.BQk()),2&t){const e=o.$implicit;n.xp6(1),n.MGl("value","product|",e.key,""),n.xp6(1),n.Oqu(e.key)}}function He(t,o){if(1&t&&(n.ynx(0),n.TgZ(1,"mat-optgroup",3),n.YNc(2,$e,3,2,"ng-container",4),n.ALo(3,"keyvalue"),n.ALo(4,"distinctItems"),n.qZA(),n.TgZ(5,"mat-optgroup",5),n.YNc(6,Ue,3,2,"ng-container",4),n.ALo(7,"keyvalue"),n.ALo(8,"distinctItems"),n.qZA(),n.BQk()),2&t){const e=o.ngLet;n.xp6(2),n.Q6J("ngForOf",n.lcZ(3,2,n.xi3(4,4,e,"region"))),n.xp6(4),n.Q6J("ngForOf",n.lcZ(7,7,n.xi3(8,9,e,"product")))}}let qe=(()=>{class t{constructor(e,r){this._obRouter=e,this._ac=r,this.regionProductControl=new k.NI(""),this.params$=this._ac.paramMap.pipe((0,h.U)(i=>i.keys.reduce((c,a)=>(c[a]=i.get(a),c),{}))),this.params$.subscribe(i=>this.regionProductControl.setValue(`${i.type}|${i.value}`)),this.regionProductControl.valueChanges.pipe((0,an.x)(),(0,h.U)(i=>({type:i.split("|")[0],value:i.split("|")[1]}))).subscribe(i=>{this._obRouter.goToProductRegionView(this._ac,null,null,null,i.type,i.value)})}}return t.\u0275fac=function(e){return new(e||t)(n.Y36(T),n.Y36(f.gz))},t.\u0275cmp=n.Xpm({type:t,selectors:[["dip-product-region-selector"]],inputs:{rows:"rows",previousRows:"previousRows"},decls:9,vars:10,consts:[["panelClass","plant-select-panel",3,"formControl"],[1,"mat-select-value-custom"],[4,"ngLet"],["label","REGIONS"],[4,"ngFor","ngForOf"],["label","PRODUCTS"],[3,"value"]],template:function(e,r){1&e&&(n.TgZ(0,"mat-form-field")(1,"mat-select",0)(2,"mat-select-trigger")(3,"span",1),n._uU(4),n.ALo(5,"async"),n.ALo(6,"productRegionLabelFormat"),n.qZA()(),n.YNc(7,He,9,12,"ng-container",2),n.ALo(8,"joinArrays"),n.qZA()()),2&e&&(n.xp6(1),n.Q6J("formControl",r.regionProductControl),n.xp6(3),n.Oqu(n.lcZ(5,3,n.lcZ(6,5,r.regionProductControl.value))),n.xp6(3),n.Q6J("ngLet",n.xi3(8,7,r.rows,r.previousRows)))},directives:[_n.KE,nn.gD,k.JJ,k.oH,nn.$L,A,G.Nv,p.sg,G.ey],pipes:[p.Ov,Fe,Se,p.Nd,Q],encapsulation:2,changeDetection:0}),t})(),je=(()=>{class t{transform(e,r){for(const i in r)r[i]&&!e.hasOwnProperty(i)&&(e[i]=r[i].map(c=>Object.assign(Object.assign({},c),{[d.C7.Quantity]:""})));return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Yjl({name:"mockMissingPreviousRows",type:t,pure:!0}),t})();function Ge(t,o){if(1&t&&(n.ynx(0),n._UZ(1,"div",16),n.ALo(2,"toNumber"),n._UZ(3,"div",17),n.ALo(4,"difference"),n.BQk()),2&t){const e=o.ngLet,r=n.oxw().ngLet;n.xp6(1),n.Q6J("innerHTML",n.lcZ(2,2,e),n.oJD),n.xp6(2),n.Q6J("innerHTML",n.xi3(4,4,e,r),n.oJD)}}function Ve(t,o){if(1&t&&(n.ynx(0),n._UZ(1,"div",15),n.ALo(2,"toNumber"),n.YNc(3,Ge,5,7,"ng-container",0),n.ALo(4,"sumQuantity"),n.BQk()),2&t){const e=o.ngLet,r=n.oxw().ngLet;n.xp6(1),n.Q6J("innerHTML",n.lcZ(2,2,e),n.oJD),n.xp6(2),n.Q6J("ngLet",n.lcZ(4,4,r))}}function We(t,o){if(1&t){const e=n.EpF();n.ynx(0),n.TgZ(1,"div",7)(2,"i",8),n.NdJ("click",function(){n.CHM(e);const i=n.oxw(5);return i._obRouter.goToPlantZoneView(i._ac)}),n.ALo(3,"translate"),n.qZA(),n.TgZ(4,"div",9),n._UZ(5,"dip-month-selector",14),n.qZA(),n.YNc(6,Ve,5,6,"ng-container",0),n.ALo(7,"sumQuantity"),n.qZA(),n.BQk()}if(2&t){const e=n.oxw().ngLet,r=n.oxw().ngLet,i=n.oxw(2).ngLet;n.xp6(2),n.s9C("matTooltip",n.lcZ(3,3,"return.month")),n.xp6(3),n.Q6J("rows",r),n.xp6(1),n.Q6J("ngLet",n.lcZ(7,5,e[i.month]))}}function Xe(t,o){if(1&t&&(n.ynx(0),n.YNc(1,We,8,7,"ng-container",0),n.ALo(2,"async"),n.BQk()),2&t){const e=n.oxw(4);n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,e.previousMonthRows$))}}function Ke(t,o){if(1&t&&(n.ynx(0),n._UZ(1,"div",16),n.ALo(2,"toNumber"),n._UZ(3,"div",17),n.ALo(4,"difference"),n.BQk()),2&t){const e=o.ngIf,r=n.oxw().ngLet;n.xp6(1),n.Q6J("innerHTML",n.lcZ(2,2,e),n.oJD),n.xp6(2),n.Q6J("innerHTML",n.xi3(4,4,e,r),n.oJD)}}function no(t,o){1&t&&(n.TgZ(0,"div",19),n._uU(1,"-"),n.qZA(),n.TgZ(2,"div",20),n._uU(3,"-"),n.qZA())}function to(t,o){if(1&t&&(n.ynx(0),n._UZ(1,"div",15),n.ALo(2,"toNumber"),n.YNc(3,Ke,5,7,"ng-container",12),n.ALo(4,"sumQuantity"),n.ALo(5,"async"),n.YNc(6,no,4,0,"ng-template",null,18,n.W1O),n.BQk()),2&t){const e=o.ngLet,r=n.MAs(7),i=n.oxw(4);n.xp6(1),n.Q6J("innerHTML",n.lcZ(2,3,e),n.oJD),n.xp6(2),n.Q6J("ngIf",n.lcZ(4,5,n.lcZ(5,7,i.previousRows$)))("ngIfElse",r)}}function eo(t,o){1&t&&(n.ynx(0),n.TgZ(1,"div",21),n._uU(2),n.ALo(3,"translate"),n.qZA(),n.BQk()),2&t&&(n.xp6(2),n.Oqu(n.lcZ(3,1,"companies")))}function oo(t,o){1&t&&(n.TgZ(0,"div",21),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&t&&(n.xp6(1),n.Oqu(n.lcZ(2,1,"cities")))}function ro(t,o){1&t&&n.GkF(0)}const io=function(t,o,e){return{current:t,previous:o,maximum:e}};function co(t,o){if(1&t&&(n.ynx(0),n.YNc(1,ro,1,0,"ng-container",24),n.BQk()),2&t){const e=o.ngLet,r=n.oxw(2).ngLet,i=n.oxw(2).ngLet;n.oxw(7);const c=n.MAs(3);n.xp6(1),n.Q6J("ngTemplateOutlet",c)("ngTemplateOutletContext",n.kEZ(2,io,r,e,i))}}function ao(t,o){if(1&t&&(n.ynx(0),n.YNc(1,co,2,6,"ng-container",0),n.ALo(2,"sumQuantity"),n.BQk()),2&t){const e=o.ngLet;n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,e))}}const _o=function(){return[]};function go(t,o){if(1&t&&(n.ynx(0),n.YNc(1,ao,3,3,"ng-container",0),n.ALo(2,"default"),n.BQk()),2&t){const e=n.oxw().$implicit,r=n.oxw(3).ngLet;n.xp6(1),n.Q6J("ngLet",n.xi3(2,1,r[e.key],n.DdM(4,_o)))}}function lo(t,o){if(1&t){const e=n.EpF();n.TgZ(0,"div",23),n.NdJ("click",function(){const c=n.CHM(e).$implicit,a=n.oxw(4).ngLet;return n.oxw(4).goItem(a,c.key)}),n.TgZ(1,"div",21),n._uU(2),n.qZA(),n.YNc(3,go,3,5,"ng-container",0),n.ALo(4,"sumQuantity"),n.qZA()}if(2&t){const e=o.$implicit;n.xp6(2),n.Oqu(e.key),n.xp6(1),n.Q6J("ngLet",n.lcZ(4,2,e.value))}}function po(t,o){if(1&t&&(n.ynx(0),n.YNc(1,lo,5,4,"div",22),n.BQk()),2&t){const e=n.oxw().ngLet;n.xp6(1),n.Q6J("ngForOf",e)}}function so(t,o){if(1&t&&(n.ynx(0),n.YNc(1,po,2,1,"ng-container",0),n.ALo(2,"max"),n.ALo(3,"keyvalue"),n.BQk()),2&t){const e=o.ngLet,r=n.oxw().ngLet;n.xp6(1),n.Q6J("ngLet",n.xi3(2,1,e,n.lcZ(3,4,r)))}}function uo(t,o){if(1&t&&(n.ynx(0),n.YNc(1,so,4,6,"ng-container",0),n.ALo(2,"keyvalue"),n.ALo(3,"mockMissingPreviousRows"),n.ALo(4,"distinctItems"),n.BQk()),2&t){const e=o.ngLet,r=n.oxw().ngLet,i=n.oxw(2).ngLet;n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,n.xi3(3,3,n.Dn7(4,6,i,r,e),e)))}}function ho(t,o){if(1&t&&(n.ynx(0),n.YNc(1,uo,5,10,"ng-container",0),n.ALo(2,"distinctItems"),n.ALo(3,"async"),n.BQk()),2&t){const e=o.ngLet,r=n.oxw(4);n.xp6(1),n.Q6J("ngLet",n.xi3(2,1,n.lcZ(3,4,r.previousRows$),e))}}function mo(t,o){if(1&t){const e=n.EpF();n.TgZ(0,"div",4),n._UZ(1,"order-backlog-header",5),n.TgZ(2,"div",6)(3,"div",7)(4,"i",8),n.NdJ("click",function(){return n.CHM(e),n.oxw(3)._obRouter.goToMainView()}),n.ALo(5,"translate"),n.qZA(),n.TgZ(6,"div",9),n._UZ(7,"dip-plant-selector"),n.qZA()(),n.YNc(8,Xe,3,3,"ng-container",0),n.ALo(9,"distinctMonths"),n.TgZ(10,"div",7)(11,"i",8),n.NdJ("click",function(){n.CHM(e);const i=n.oxw(3);return i._obRouter.goToMonthView(i._ac)}),n.ALo(12,"translate"),n.qZA(),n.TgZ(13,"div",9),n._UZ(14,"dip-product-region-selector",10),n.ALo(15,"async"),n.ALo(16,"async"),n.qZA(),n.YNc(17,to,8,9,"ng-container",0),n.ALo(18,"sumQuantity"),n.qZA()(),n.TgZ(19,"div",11),n.YNc(20,eo,4,3,"ng-container",12),n.YNc(21,oo,3,3,"ng-template",null,13,n.W1O),n.qZA(),n.YNc(23,ho,4,6,"ng-container",0),n.qZA()}if(2&t){const e=o.ngLet,r=n.MAs(22),i=n.oxw().ngLet,c=n.oxw().ngLet,a=n.oxw();n.xp6(4),n.s9C("matTooltip",n.lcZ(5,9,"return.main")),n.xp6(4),n.Q6J("ngLet",n.lcZ(9,11,e)),n.xp6(3),n.s9C("matTooltip",n.lcZ(12,13,"return.cities")),n.xp6(3),n.Q6J("rows",n.lcZ(15,15,a.monthRows$))("previousRows",n.lcZ(16,17,a.previousRows$)),n.xp6(3),n.Q6J("ngLet",n.lcZ(18,19,i)),n.xp6(3),n.Q6J("ngIf","region"===c.type)("ngIfElse",r),n.xp6(3),n.Q6J("ngLet","region"===c.type?"product":"region")}}function vo(t,o){if(1&t&&(n.ynx(0),n.YNc(1,mo,24,21,"div",3),n.ALo(2,"async"),n.BQk()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,e.plantOrZoneRows$))}}function fo(t,o){if(1&t&&(n.ynx(0),n.YNc(1,vo,3,3,"ng-container",0),n.ALo(2,"async"),n.BQk()),2&t){const e=n.oxw();n.xp6(1),n.Q6J("ngLet",n.lcZ(2,1,e.rows$))}}function Oo(t,o){1&t&&n.GkF(0)}function Co(t,o){1&t&&n.GkF(0)}const Yn=function(t,o){return{current:t,previous:o}};function Mo(t,o){if(1&t&&(n.YNc(0,Co,1,0,"ng-container",24),n._UZ(1,"dip-product-region-chart",28)),2&t){const e=n.oxw(),r=e.current,i=e.previous,c=e.maximum;n.oxw();const a=n.MAs(5);n.Q6J("ngTemplateOutlet",a)("ngTemplateOutletContext",n.WLB(5,Yn,r,i)),n.xp6(1),n.Q6J("current",r)("previous",i)("maximum",c)}}function Po(t,o){1&t&&n.GkF(0)}function xo(t,o){if(1&t&&(n._UZ(0,"dip-product-region-chart",29),n.YNc(1,Po,1,0,"ng-container",24)),2&t){const e=n.oxw(),r=e.current,i=e.previous,c=e.maximum;n.oxw();const a=n.MAs(5);n.Q6J("current",r)("previous",i)("maximum",c),n.xp6(1),n.Q6J("ngTemplateOutlet",a)("ngTemplateOutletContext",n.WLB(5,Yn,r,i))}}function wo(t,o){if(1&t&&(n.YNc(0,Oo,1,0,"ng-container",25),n.ALo(1,"async"),n.YNc(2,Mo,2,8,"ng-template",null,26,n.W1O),n.YNc(4,xo,2,8,"ng-template",null,27,n.W1O)),2&t){const e=n.MAs(3),r=n.MAs(5),i=n.oxw();n.Q6J("ngIf",n.lcZ(1,3,i._data.mobile$))("ngIfThen",e)("ngIfElse",r)}}function bo(t,o){if(1&t&&(n._UZ(0,"div",30),n.ALo(1,"toNumber"),n._UZ(2,"div",31),n.ALo(3,"toNumber"),n._UZ(4,"div",17),n.ALo(5,"difference")),2&t){const e=o.current,r=o.previous;n.Q6J("innerHTML",n.lcZ(1,3,e),n.oJD),n.xp6(2),n.Q6J("innerHTML",n.lcZ(3,5,r),n.oJD),n.xp6(2),n.Q6J("innerHTML",n.xi3(5,7,r,e),n.oJD)}}class j{constructor(o,e,r,i,c,a,_,s){this._ac=o,this.config=e,this._title=r,this._store=i,this._breakpoints=c,this._obRouter=a,this.translate=_,this._data=s,this._title.setTitle(this.config.config.appTitle+" - "+this.translate.instant("menu.order_backlog")),this.mobile$=this._breakpoints.observe(E.u3.HandsetPortrait).pipe((0,h.U)(l=>l.matches)),this.params$=this._ac.paramMap.pipe((0,h.U)(l=>l.keys.reduce((P,gn)=>(P[gn]=l.get(gn),P),{}))),this.plantOrZoneRows$=this.params$.pipe((0,y.w)(l=>this._store.select(b.i.GetZoneOrPlantRows(l.plant,l.id)))),this.monthRows$=this.params$.pipe((0,y.w)(l=>this._store.select(b.i.GetMonthRows(l.plant,l.id,l.month)))),this.previousMonthRows$=this.params$.pipe((0,y.w)(l=>this._store.select(b.i.GetMonthRows(l.plant,l.id,(0,X.D9)(l.month))))),this.rows$=this.params$.pipe((0,y.w)(l=>this._store.select(b.i.GetRegionOrProductRows(l.plant,l.id,l.month,l.type,l.value)))),this.previousRows$=this.params$.pipe((0,y.w)(l=>this._store.select(b.i.GetRegionOrProductRows(l.plant,l.id,(0,X.D9)(l.month),l.type,l.value))))}goItem(o,e){this._obRouter.goToProductRegionView(this._ac,null,null,null,o,e)}}j.\u0275fac=function(o){return new(o||j)(n.Y36(f.gz),n.Y36($.E),n.Y36(V.Dx),n.Y36(S.yh),n.Y36(E.Yg),n.Y36(T),n.Y36(w.sK),n.Y36(Z.D))},j.\u0275cmp=n.Xpm({type:j,selectors:[["order-backlog-sub-lvl4"]],hostBindings:function(o,e){1&o&&n.NdJ("swiperight",function(i){return e.data.goFrom("order_backlog",i)})("swipeleft",function(i){return e.data.goFrom("order_backlog",i)})},decls:6,vars:3,consts:[[4,"ngLet"],["responsiveRow",""],["lvl4Row",""],["class","overview",4,"ngLet"],[1,"overview"],["type","day"],[1,"header-rows"],[1,"header-row","zone"],["matTooltipClass","after","matTooltipPosition","after",1,"arrow",3,"matTooltip","click"],[1,"title","with-selector"],[3,"rows","previousRows"],[1,"title-header"],[4,"ngIf","ngIfElse"],["regionsTitle",""],[3,"rows"],[1,"actual",3,"innerHTML"],[1,"previous",3,"innerHTML"],[1,"delta","grey",3,"innerHTML"],["dummyPrevious",""],[1,"previous","orange"],[1,"delta","grey"],[1,"title"],["class","lvl4-row",3,"click",4,"ngFor","ngForOf"],[1,"lvl4-row",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngIf","ngIfThen","ngIfElse"],["mobileRow",""],["desktopRow",""],[1,"mobile",3,"current","previous","maximum"],[1,"desktop",3,"current","previous","maximum"],[1,"actual","cyan",3,"innerHTML"],[1,"previous","orange",3,"innerHTML"]],template:function(o,e){1&o&&(n.YNc(0,fo,3,3,"ng-container",0),n.ALo(1,"async"),n.YNc(2,wo,6,5,"ng-template",null,1,n.W1O),n.YNc(4,bo,6,10,"ng-template",null,2,n.W1O)),2&o&&n.Q6J("ngLet",n.lcZ(1,1,e.params$))},directives:[A,M,cn.gM,Y,yn,qe,p.O5,p.sg,p.tP,Ln],pipes:[p.Ov,w.X$,W,I,D.$,L,Q,p.Nd,je,kn,Zn],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%] .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 20px 12px 15px}}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 30%;position:relative}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 70%}}.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:0;bottom:0;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%] .actual[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{flex:1 15%;text-align:right;font-size:16px;font-weight:700}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%]{color:#28e8ff}.overview[_ngcontent-%COMP%] .header-row[_ngcontent-%COMP%] .previous[_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;text-transform:uppercase;display:flex;background-color:#34344580}@media (max-width: 800px){.overview[_ngcontent-%COMP%] .title-header[_ngcontent-%COMP%]{padding:12px 20px 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%]{font-size:17px;line-height:25px;letter-spacing:1px}}.overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%]{flex:1 100%;padding:20px 40px;flex-wrap:wrap;align-items:center;display:flex;cursor:pointer;border-bottom:1px solid transparent}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%]{flex-wrap:nowrap;height:70px}}@media (max-width: 800px){.overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%]{padding:12px 20px 12px 15px}}.overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%]:hover{background-color:#ffffff05}body[theme=new-dark] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%]:hover{background-color:#121212!important}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%]:hover{background-color:#0000000d!important}.overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%]:nth-child(even){background-color:#20202966}.overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%]:nth-child(odd){background-color:#18182099}.overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%]:hover .title[_ngcontent-%COMP%]{padding-left:30px}.overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%]:hover .title[_ngcontent-%COMP%]:after{left:15px}.overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 30%;padding-left:20px;position:relative;transition:padding-left .15s ease-in-out}@media (min-width: 800px){.overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:1 20%}}.overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]:after{transition:left .15s ease-in-out;content:"";position:absolute;height:12px;width:12px;top:0;bottom:0;left:0;margin:auto;display:block;background-image:url(assets/arrow.svg);background-size:contain;background-repeat:no-repeat}.overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%], .overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{flex:1 15%;text-align:right;font-size:15px}body[theme=light] [_nghost-%COMP%]{background-color:#fff}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.total[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%]{background-color:#e6e6e6;border-bottom:2px solid white}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.total[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#333;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.total[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%]{color:#17687f;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.total[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%]{color:#e59123;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.total[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.plant[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%], body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .header-row.zone[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{color:#0d0d0dcc;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .title-header[_ngcontent-%COMP%]{background-color:#e6e6e6}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .title-header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#666;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%]{background-color:#fff;border-bottom:1px solid #E6E6E6}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#333!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%] .actual[_ngcontent-%COMP%]{color:#0d0d0d!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%] .previous[_ngcontent-%COMP%]{color:#0d0d0d!important;font-weight:700}body[theme=light] [_nghost-%COMP%] .overview[_ngcontent-%COMP%] .lvl4-row[_ngcontent-%COMP%] .delta[_ngcontent-%COMP%]{color:#0d0d0d!important;font-weight:700}'],changeDetection:0}),function(t,o,e,r){var a,i=arguments.length,c=i<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,o,e,r);else for(var _=t.length-1;_>=0;_--)(a=t[_])&&(c=(i<3?a(c):i>3?a(o,e,c):a(o,e))||c);i>3&&c&&Object.defineProperty(o,e,c)}([(0,m.Q8)(O.f.GetPlanDate),function(t,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:type",String)}()],j.prototype,"plandate$",void 0);const yo=[{path:"",component:Jn,children:[{path:"",component:F,data:{level:1}},{path:":plant/:id",component:H,data:{level:2}},{path:":plant/:id/month/:month",component:q,data:{level:3}},{path:":plant/:id/month/:month/:type/:value",component:j,data:{level:4}}]}];let Lo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({providers:[T],imports:[[p.ez,f.Bz.forChild(yo),E.xu,Cn.a4,Qn.m]]}),t})()}}]);
//# sourceMappingURL=606.1610892640760b75.js.map