-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path611.eacdac62c3c2ee62.js
More file actions
2 lines (2 loc) · 15.2 KB
/
611.eacdac62c3c2ee62.js
File metadata and controls
2 lines (2 loc) · 15.2 KB
1
2
"use strict";(self.webpackChunkdip=self.webpackChunkdip||[]).push([[611],{58611:(F,d,a)=>{a.r(d),a.d(d,{AboutModule:()=>E});var r=a(36362),f=a(70946),Z=a(32714),C=a(13814),g=a(84505),O=a(28299),A=a(44498),t=a(3184),b=a(33935),M=a(8369),u=a(47460),v=a(72288),P=a(71412),h=a(90587),y=a(38220),T=a(76246),k=a(47353),L=a(5830),_=a(56908),c=a(93295);let U=(()=>{class o{constructor(n,e){this.config=n,this.api=e,this.date=new g.X(""),this.id=new g.X(""),this.name=new g.X("x"),this.hour=new g.X(""),this.type="",this.title=""}ngOnChanges(n){const e=n.type.currentValue;if(this.id.next(this.config.config.reports[this.config.config.target][this.config.config.scenario][e].id),0===this.api.reportDates[e].length)switch(e){case"orderBacklog":this.api.getSavedReportData(c.z3.OrderBacklog).subscribe(i=>this.rollup(e));break;case"orderIntake":this.api.getSavedReportData(c.z3.OrderIntake).subscribe(i=>this.rollup(e));break;case"productionProgram":this.api.getSavedReportData(c.z3.ProductionProgram).subscribe(i=>this.rollup(e));break;case"allocation":this.api.getSavedReportData(c.z3.Allocation).subscribe(i=>this.rollup(e));break;case"plantStock":this.api.getSavedReportData(c.z3.PlantStock).subscribe(i=>this.rollup(e));break;case"orderIntakeHistory":this.api.getSavedReportData(c.z3.OrderIntakeHistory).subscribe(i=>this.rollup(e))}else this.rollup(e)}rollup(n){this.date.next(_(this.api.reportDates[n],"YYYY-MM-DDTHH:mm:ss.SSS[Z]").format("DD/MM/YYYY")),this.hour.next(_(this.api.reportDates[n],"YYYY-MM-DDTHH:mm:ss.SSS[Z]").format("HH:mm"));const e=["int","prod"],i=["trucks","vans"],s={orderBacklog:[],orderIntake:[],allocation:[],plantStock:[],productionProgram:[],orderIntakeHistory:[]};for(const p of Object.keys(s))for(const m of i)for(const x of e)this.config.config.reports[m][x][p].id&&s[p].push(this.config.config.reports[m][x][p].id);s.orderIntake.includes(this.id.getValue())&&this.name.next("MobileCockpit_V2_14.3_dev"),s.productionProgram.includes(this.id.getValue())&&this.name.next("Planning_Truck"),s.allocation.includes(this.id.getValue())&&this.name.next("Allocation_Truck"),s.plantStock.includes(this.id.getValue())&&this.name.next("Plant_Stock_Truck"),s.orderBacklog.includes(this.id.getValue())&&this.name.next("Order_Backlog_Truck"),s.orderIntakeHistory.includes(this.id.getValue())&&this.name.next("Order_Intake_History")}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(f.E),t.Y36(L.s))},o.\u0275cmp=t.Xpm({type:o,selectors:[["report-info"]],inputs:{type:"type",title:"title"},features:[t.TTD],decls:23,vars:15,consts:[[1,"title"],[1,"container"],[1,"name"],[1,"prop"],[1,"val"],[1,"id"],[1,"date"]],template:function(n,e){1&n&&(t.TgZ(0,"div",0),t._uU(1),t.ALo(2,"uppercase"),t.qZA(),t.TgZ(3,"div",1)(4,"div",2)(5,"span",3),t._uU(6,"ReportName:"),t.qZA(),t.TgZ(7,"span",4),t._uU(8),t.ALo(9,"async"),t.qZA()(),t.TgZ(10,"div",5)(11,"span",3),t._uU(12,"ID:"),t.qZA(),t.TgZ(13,"span",4),t._uU(14),t.ALo(15,"async"),t.qZA()(),t.TgZ(16,"div",6)(17,"span",3),t._uU(18,"Date:"),t.qZA(),t.TgZ(19,"span",4),t._uU(20),t.ALo(21,"async"),t.ALo(22,"async"),t.qZA()()()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,5,e.title)),t.xp6(7),t.Oqu(t.lcZ(9,7,e.name)),t.xp6(6),t.Oqu(t.lcZ(15,9,e.id)),t.xp6(6),t.AsE("",t.lcZ(21,11,e.date)," ",t.lcZ(22,13,e.hour),""))},pipes:[r.gd,r.Ov],styles:["[_nghost-%COMP%]{display:block;margin:25px 0 15px}.container[_ngcontent-%COMP%]{display:flex}@media (max-width: 800px){.container[_ngcontent-%COMP%]{flex-wrap:wrap}}.title[_ngcontent-%COMP%]{color:#f8b03b;font-size:1.1rem;margin-bottom:10px}.prop[_ngcontent-%COMP%]{flex:initial;color:#fff6}@media (max-width: 800px){.prop[_ngcontent-%COMP%]{flex:0 0 120px}}.val[_ngcontent-%COMP%]{margin-left:30px}@media (max-width: 800px){.val[_ngcontent-%COMP%]{margin-left:0}}.date[_ngcontent-%COMP%]{justify-content:flex-end}@media (max-width: 800px){.date[_ngcontent-%COMP%]{justify-content:flex-start}}.id[_ngcontent-%COMP%], .date[_ngcontent-%COMP%]{padding-left:20px}@media (max-width: 800px){.id[_ngcontent-%COMP%], .date[_ngcontent-%COMP%]{padding-left:0}}.name[_ngcontent-%COMP%], .id[_ngcontent-%COMP%], .date[_ngcontent-%COMP%]{display:flex;flex:1 100%}"],changeDetection:0}),o})();function w(o,l){if(1&o&&(t.TgZ(0,"mat-option",20),t._uU(1),t.qZA()),2&o){const n=l.$implicit;t.Q6J("value",n.key),t.xp6(1),t.Oqu(n.value)}}function I(o,l){if(1&o&&t._UZ(0,"report-info",21),2&o){const n=l.$implicit;t.Q6J("shownTitle",n.shownTitle)("title",n.title)("type",n.type)}}function S(o,l){1&o&&(t.TgZ(0,"div")(1,"b"),t._uU(2,"Hint:"),t.qZA(),t._uU(3," Press Alt + F11 to show current config in the Browser Console. "),t.qZA())}function q(o,l){if(1&o&&(t.TgZ(0,"li"),t._uU(1),t.qZA()),2&o){const n=l.$implicit;t.xp6(1),t.Oqu(n)}}function Y(o,l){if(1&o&&(t.TgZ(0,"ul"),t.YNc(1,q,2,1,"li",18),t.qZA()),2&o){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",n.text)}}function D(o,l){if(1&o&&(t.TgZ(0,"li")(1,"div",22),t._uU(2),t.qZA(),t.YNc(3,Y,2,1,"ul",16),t.qZA()),2&o){const n=l.$implicit;t.xp6(2),t.Oqu(n.version),t.xp6(1),t.Q6J("ngIf",n.text.length>0)}}let J=(()=>{class o{constructor(n,e,i,s,p,m){this.config=n,this.translate=e,this.snack=i,this.data=s,this._cognos=p,this._store=m,this.reportInfos=new g.X([]),this.data.currentLevel=1}ngOnInit(){let n=[{shownTitle:this.translate.instant("menu.order_intake"),title:"Order Intake",type:"orderIntake"},{shownTitle:this.translate.instant("menu.order_backlog"),title:"Order Backlog",type:"orderBacklog"},{shownTitle:this.translate.instant("menu.production_program"),title:"Production program",type:"productionProgram"},{shownTitle:this.translate.instant("menu.allocation"),title:"Allocation",type:"allocation"},{shownTitle:this.translate.instant("menu.plant_stock"),title:"Plant stock",type:"plantStock"}];const e=this._cognos.getLinksWithAccess().map(i=>i.text);this.config.config.debug&&console.log("Available links:",e),n=n.filter(i=>e.indexOf(i.title.toLowerCase().replace(/\ /g,"_"))>-1),this.reportInfos.next(n),this.config.config.debug&&console.log("Available reports:",n)}delay(n){return new Promise(e=>setTimeout(e,n))}setLang(n){localStorage.setItem("lang",n),this.translate.use(n),this._store.dispatch(new A.o.SetParameter("language",n)),this.delay(300).then(e=>{this.snack.open(this.translate.instant("help.language_change"),"OK",{duration:3e3})})}reloadLang(){this.translate.reloadLang(this.config.config.language),this.delay(300).then(n=>{this.snack.open(this.translate.instant("help.language_reload"),"OK",{duration:3e3})})}}return o.\u0275fac=function(n){return new(n||o)(t.Y36(f.E),t.Y36(b.sK),t.Y36(M.ux),t.Y36(Z.D),t.Y36(C.e),t.Y36(O.yh))},o.\u0275cmp=t.Xpm({type:o,selectors:[["about"]],hostBindings:function(n,e){1&n&&t.NdJ("swiperight",function(s){return e.data.goFrom("about",s)})("swipeleft",function(s){return e.data.goFrom("about",s)})},decls:100,vars:76,consts:[[3,"multi"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","",1,"reload-translations",3,"click"],[3,"innerHTML"],[1,"software"],["href","#","target","_blank"],["href","https://github.com/angular/angular/blob/master/LICENSE","target","_blank"],["href","https://github.com/hammerjs/hammer.js/blob/master/LICENSE.md","target","_blank"],["href","https://github.com/moment/moment/blob/develop/LICENSE","target","_blank"],["href","https://github.com/ngx-translate/core/blob/master/LICENSE","target","_blank"],["href","https://github.com/crisbeto/angular-svg-round-progressbar/blob/master/LICENSE","target","_blank"],["href","https://github.com/ultrasonicsoft/ng-connection-service/blob/master/LICENSE","target","_blank"],[1,"sw_status","enabled"],[1,"sw_status","disabled",2,"display","none"],[3,"shownTitle","title","type",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"changelog"],[4,"ngFor","ngForOf"],[1,"version"],[3,"value"],[3,"shownTitle","title","type"],[1,"change-title"]],template:function(n,e){if(1&n&&(t.TgZ(0,"mat-accordion",0)(1,"mat-expansion-panel")(2,"mat-expansion-panel-header")(3,"mat-panel-title"),t._uU(4),t.ALo(5,"translate"),t.qZA()(),t.TgZ(6,"p"),t._uU(7),t.ALo(8,"translate"),t.TgZ(9,"mat-form-field")(10,"mat-select",1),t.NdJ("ngModelChange",function(s){return e.setLang(s)})("ngModelChange",function(s){return e.config.config.language=s}),t.YNc(11,w,2,2,"mat-option",2),t.ALo(12,"keyvalue"),t.qZA()()(),t.TgZ(13,"button",3),t.NdJ("click",function(){return e.reloadLang()}),t._uU(14),t.ALo(15,"translate"),t.qZA(),t._UZ(16,"br")(17,"app-theme-switcher"),t.qZA(),t.TgZ(18,"mat-expansion-panel")(19,"mat-expansion-panel-header")(20,"mat-panel-title"),t._uU(21),t.ALo(22,"translate"),t.qZA()(),t._UZ(23,"p",4),t.ALo(24,"translate"),t.qZA(),t.TgZ(25,"mat-expansion-panel")(26,"mat-expansion-panel-header")(27,"mat-panel-title"),t._uU(28),t.ALo(29,"translate"),t.qZA()(),t._UZ(30,"p",4),t.ALo(31,"translate"),t.qZA(),t.TgZ(32,"mat-expansion-panel")(33,"mat-expansion-panel-header")(34,"mat-panel-title"),t._uU(35),t.ALo(36,"translate"),t.qZA()(),t.TgZ(37,"div",5)(38,"ul")(39,"li"),t._uU(40,"IBM Cognos Analytics 11: "),t.TgZ(41,"a",6),t._uU(42),t.ALo(43,"translate"),t.qZA()(),t.TgZ(44,"li"),t._uU(45),t.TgZ(46,"a",7),t._uU(47),t.ALo(48,"translate"),t.qZA()(),t.TgZ(49,"li"),t._uU(50),t.TgZ(51,"a",8),t._uU(52),t.ALo(53,"translate"),t.qZA()(),t.TgZ(54,"li"),t._uU(55),t.TgZ(56,"a",9),t._uU(57),t.ALo(58,"translate"),t.qZA()(),t.TgZ(59,"li"),t._uU(60),t.TgZ(61,"a",10),t._uU(62),t.ALo(63,"translate"),t.qZA()(),t.TgZ(64,"li"),t._uU(65),t.TgZ(66,"a",11),t._uU(67),t.ALo(68,"translate"),t.qZA()(),t.TgZ(69,"li"),t._uU(70),t.TgZ(71,"a",12),t._uU(72),t.ALo(73,"translate"),t.qZA()()()()(),t.TgZ(74,"mat-expansion-panel")(75,"mat-expansion-panel-header")(76,"mat-panel-title"),t._uU(77),t.ALo(78,"translate"),t.qZA()(),t._uU(79),t.ALo(80,"translate"),t.TgZ(81,"span",13),t._uU(82,"OK"),t.qZA(),t.TgZ(83,"span",14),t._uU(84,"Not running"),t.qZA(),t.YNc(85,I,1,3,"report-info",15),t.ALo(86,"async"),t.YNc(87,S,4,0,"div",16),t.ALo(88,"async"),t.qZA(),t.TgZ(89,"mat-expansion-panel")(90,"mat-expansion-panel-header")(91,"mat-panel-title"),t._uU(92),t.ALo(93,"translate"),t.qZA()(),t.TgZ(94,"div",17)(95,"ul"),t.YNc(96,D,4,2,"li",18),t.qZA()()()(),t.TgZ(97,"div",19),t._uU(98),t.ALo(99,"translate"),t.qZA()),2&n){let i;t.Q6J("multi",!0),t.xp6(4),t.hij(" ",t.lcZ(5,32,"about.config")," "),t.xp6(3),t.hij(" ",t.lcZ(8,34,"about.lang"),": "),t.xp6(3),t.Q6J("ngModel",e.config.config.language),t.xp6(1),t.Q6J("ngForOf",t.lcZ(12,36,e.config.config.languageCodes)),t.xp6(3),t.Oqu(t.lcZ(15,38,"about.reload_lang")),t.xp6(7),t.hij(" ",t.lcZ(22,40,"about.thanks")," "),t.xp6(2),t.Q6J("innerHTML",t.lcZ(24,42,"about.thanks_message"),t.oJD),t.xp6(5),t.hij(" ",t.lcZ(29,44,"about.software")," "),t.xp6(2),t.Q6J("innerHTML",t.lcZ(31,46,"about.software_message"),t.oJD),t.xp6(5),t.hij(" ",t.lcZ(36,48,"about.licenses")," "),t.xp6(7),t.Oqu(t.lcZ(43,50,"about.license_type.consumer")),t.xp6(3),t.hij("Angular ",e.angularVersion,": "),t.xp6(2),t.Oqu(t.lcZ(48,52,"about.license_type.mit")),t.xp6(3),t.hij("HammerJS ",e.hammerVersion,": "),t.xp6(2),t.Oqu(t.lcZ(53,54,"about.license_type.mit")),t.xp6(3),t.hij("MomentJS ",e.momentVersion,": "),t.xp6(2),t.Oqu(t.lcZ(58,56,"about.license_type.mit")),t.xp6(3),t.hij("@ngx-translate ",e.ngx_translateVersion,": "),t.xp6(2),t.Oqu(t.lcZ(63,58,"about.license_type.mit")),t.xp6(3),t.hij("angular-svg-round-progressbar ",e.progressVersion,": "),t.xp6(2),t.Oqu(t.lcZ(68,60,"about.license_type.mit")),t.xp6(3),t.hij("ng-connection-service ",e.connectionVersion,": "),t.xp6(2),t.Oqu(t.lcZ(73,62,"about.license_type.mit")),t.xp6(5),t.hij(" ",t.lcZ(78,64,"about.technical_information")," "),t.xp6(2),t.hij(" ",t.lcZ(80,66,"about.connection"),": "),t.xp6(6),t.Q6J("ngForOf",t.lcZ(86,68,e.reportInfos)),t.xp6(2),t.Q6J("ngIf",null==(i=t.lcZ(88,70,e._cognos.userCapabilities))?null:i.admin),t.xp6(5),t.hij(" ",t.lcZ(93,72,"about.changelog")," "),t.xp6(4),t.Q6J("ngForOf",e.config.config.changelog),t.xp6(2),t.AsE("",t.lcZ(99,74,"about.version"),": ",e.config.config.version,"")}},directives:[u.pp,u.ib,u.yz,u.yK,v.KE,P.gD,h.JJ,h.On,r.sg,y.ey,T.lW,k.p,U,r.O5],pipes:[b.X$,r.Nd,r.Ov],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block;padding:30px 20px;box-sizing:border-box;touch-action:pan-y!important;margin:0 auto;max-width:1000px} .mat-expansion-panel, .mat-expansion-panel-header{background-color:transparent!important;box-shadow:none!important} .mat-expansion-panel-header-title, .mat-expansion-indicator:after{color:#f8b03b} .mat-expansion-panel-content{color:#fff}body[theme=light] [_nghost-%COMP%] a{color:#17687f!important;font-weight:700}.software[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:none;line-height:25px}.software[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#28e8ff;position:relative}.software[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover:after{width:100%}.software[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{content:"";position:absolute;bottom:-2px;left:0;right:0;margin:auto;height:2px;transition:width .2s ease-in-out;width:0;background-color:#28e8ff}[_nghost-%COMP%] p a, [_nghost-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#28e8ff;text-decoration:none}body[theme=light] [_nghost-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#17687f!important;font-weight:700}p[_ngcontent-%COMP%]{line-height:25px} .segment-key{color:#f8b03b!important} .segment-value{color:#28e8ff!important;margin-left:10px!important}body[theme=light] [_nghost-%COMP%] .segment-value{color:#17687f!important}.changelog[_ngcontent-%COMP%]{line-height:25px;padding-left:15px}.changelog[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{color:#f8b03b;list-style-type:none}.changelog[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]{padding-left:20px}.changelog[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{color:#fff;line-height:30px;list-style-type:none}.changelog[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:before{content:"\\2022";margin-right:10px;color:#fff} .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} .mat-form-field{margin-left:20px} .reload-translations{background-color:#f8b03b;color:#000000f2;padding:0 10px!important;line-height:27px!important;margin:10px 0 15px!important}.sw_status[_ngcontent-%COMP%]{margin-left:10px;position:relative}.sw_status[_ngcontent-%COMP%]:before{content:"";display:inline-block;height:9px;width:9px;background-color:#d63232;border-radius:50%;margin-right:10px;position:relative;top:0}.sw_status.enabled[_ngcontent-%COMP%]:before{background-color:#43a047}.version[_ngcontent-%COMP%]{text-align:right;margin:40px 20px 20px 0;font-size:1.1rem;color:#fff6}'],changeDetection:0}),o})();var j=a(85861),H=a(30676);const N=[{path:"",component:J,data:{level:1}}];let E=(()=>{class o{}return o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=t.oAB({type:o}),o.\u0275inj=t.cJS({imports:[[r.ez,h.u5,H.m,j.Bz.forChild(N)]]}),o})()}}]);
//# sourceMappingURL=611.eacdac62c3c2ee62.js.map