webpackJsonp([0,5],{"+AjF":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"+Wpt":function(e,t,r){"use strict";var n=r("3j3K"),o=r("MCzZ"),i=r("NVOs"),a=r("EYWE");r.d(t,"a",function(){return l});var s=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.alertService=e,this.dashBoardService=t,this.formBuilder=r,this.myControl=new i.d,this.cancelAddNewModule=new n.j,this.onAddNewModuleSuccess=new n.j}return e.prototype.ngOnInit=function(){this.createAddModuleForm(),console.log(this.programs)},e.prototype.createAddModuleForm=function(){this.addModuleForm=this.formBuilder.group({name:["",i.b.required],description:["",i.b.required],sortOrder:["",i.b.compose([i.b.required,i.b.min(0),i.b.pattern("[0-9]*")])],programId:["",i.b.required],extModuleId:["",i.b.required]})},e.prototype.addModule=function(){var e=this;this.addModuleForm.valid&&(this.model=Object.assign({},this.addModuleForm.value),this.dashBoardService.addModule(this.companyGuid,this.model).subscribe(function(t){e.onAddNewModuleSuccess.emit(),e.addModuleForm.reset(),e.alertService.success("Added module successfully")},function(t){e.alertService.error(t._body)}))},e.prototype.cancel=function(){this.cancelAddNewModule.emit(!1)},e.prototype.hasErrorAndTouched=function(e){return!(!this.addModuleForm.get(e).hasError("required")||!this.addModuleForm.get(e).touched)},e.prototype.wrongPatternAndTouched=function(e){return!(!this.addModuleForm.get(e).hasError("pattern")||!this.addModuleForm.get(e).touched)},e}();s([r.i(n.f)(),c("design:type",Array)],l.prototype,"programs",void 0),s([r.i(n.f)(),c("design:type",String)],l.prototype,"companyGuid",void 0),s([r.i(n._7)(),c("design:type",Object)],l.prototype,"cancelAddNewModule",void 0),s([r.i(n._7)(),c("design:type",Object)],l.prototype,"onAddNewModuleSuccess",void 0),l=s([r.i(n._1)({selector:"add-module",template:r("BsUz"),styles:[r("5/YF")]}),c("design:paramtypes",["function"==typeof(d=void 0!==a.a&&a.a)&&d||Object,"function"==typeof(p=void 0!==o.a&&o.a)&&p||Object,"function"==typeof(u=void 0!==i.c&&i.c)&&u||Object])],l);var d,p,u},"+oAh":function(e,t,r){"use strict";var n=r("3j3K"),o=r("2Je8"),i=r("sUfH"),a=r("VM1H");r.d(t,"a",function(){return f});var s=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=[o.c],l=[],d=[],p=[i.a,a.a],u=[],f=function(){function e(){}return e}();f=s([r.i(n.b)({imports:c.slice(),declarations:p.concat(l,d),providers:u.slice(),exports:p.concat(l,d)})],f)},"+pAb":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var o=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){}return e.prototype.ngOnInit=function(){},e}();a=o([r.i(n._1)({selector:"main-layout",template:r("eSGF"),styles:[r("sqTi")],changeDetection:n._2.OnPush}),i("design:paramtypes",[])],a)},"/+1p":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"/2ZF":function(e,t){},"/AJC":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"/FFr":function(e,t,r){"use strict";var n=r("3j3K"),o=r("2Je8"),i=r("M4fF"),a=(r.n(i),r("OjAQ")),s=r("XfTH"),c=r("H9mM"),l=r("YVC+"),d=r("BrtQ"),p=r("RXAk");r.d(t,"a",function(){return h});var u=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},m=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},h=function(){function e(e,t,r,n,o,i,a){this.filterService=e,this.dashboardService=t,this.appState=r,this.cd=n,this.loadingService=o,this.numberPipe=i,this.appConfig=a,this.overviewItems={installation:{data:{value:0,bgColor:"#56a3fe",color:"#56a3fe",unit:"%"},type:"donut",title:"Installation",container:"installationChart",description:"",tooltip:"Number of users who installed the app out of all users invited to install."},adoption:{data:{value:0,bgColor:"#f2695a",color:"#f2695a",unit:"%"},type:"donut",title:"Adoption",container:"adoptionChart",description:"",tooltip:"Number of users who played at least one role play out of all users who installed the app."},monthlyActiveUser:{data:{value:0,bgColor:"#b76cab"},title:"Monthly
Active Users"},minutesPlayed:{data:{value:0},title:"Total
Minutes Played"}}}return e.prototype.ngOnInit=function(){var e=this;this.company$=this.appState.company$.subscribe(function(t){t&&!r.i(i.isEqual)(t,e.company)&&(e.company=t,e.initFilter())})},e.prototype.initFilter=function(){var e=this;this.filter$&&this.filter$.unsubscribe(),this.filter$=this.filterService.filter$.subscribe(function(t){e.company&&e.company.id&&t&&e.getDashboardOverall(t||[])})},e.prototype.getDashboardOverall=function(e){var t=this;this.loadingService.request$.next(!0),this.dashboardService.getDashboardOverall(this.company.id,e).subscribe(function(e){var r=t.appConfig.FORMAT.DECIMAL_NUMBER,n=t.numberPipe.transform(e.installed,r),o=t.numberPipe.transform(e.invited,r),i=t.numberPipe.transform(e.played,r);t.overviewItems.installation.data.value=Math.round(e.installed/e.invited*100),t.overviewItems.installation.description=n+" Installed / "+o+" Invited",t.overviewItems.adoption.data.value=Math.round(e.played/e.installed*100),t.overviewItems.adoption.description=i+" Played / "+n+" Installed",t.overviewItems.monthlyActiveUser.data.value=e.monthlyActiveUsers,t.overviewItems.minutesPlayed.data.value=e.totalMinutesPlayed,t.overviewItems=u({},t.overviewItems),t.loadingService.response$.next(!0),t.cd.markForCheck()},function(){t.loadingService.response$.next(!0)})},e}();h=f([r.i(a.a)(),r.i(n._1)({selector:"dashboard-overview",template:r("U5An"),styles:[r("QDO/")],changeDetection:n._2.OnPush}),m("design:paramtypes",["function"==typeof(g=void 0!==p.a&&p.a)&&g||Object,"function"==typeof(v=void 0!==s.a&&s.a)&&v||Object,"function"==typeof(b=void 0!==c.a&&c.a)&&b||Object,"function"==typeof(y=void 0!==n.e&&n.e)&&y||Object,"function"==typeof(_=void 0!==l.a&&l.a)&&_||Object,"function"==typeof(x=void 0!==o.k&&o.k)&&x||Object,"function"==typeof(O=void 0!==d.a&&d.a)&&O||Object])],h);var g,v,b,y,_,x,O},"/GDL":function(e,t){e.exports='
\r\n

Episode Completion (Role Plays)

\r\n\r\n
\r\n
\r\n
\r\n

Users

\r\n
\r\n\r\n \x3c!-- Chart legend --\x3e\r\n
    \r\n \x3c!-- Completed item --\x3e\r\n
  • \r\n

    \r\n \r\n {{ \'DASHBOARD.STATUS_COMPLETED\' | translate }}\r\n

    \r\n
  • \r\n\r\n \x3c!-- Incompleted item --\x3e\r\n
  • \r\n

    \r\n \r\n {{ \'DASHBOARD.STATUS_INCOMPLETED\' | translate }}\r\n

    \r\n
  • \r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n\r\n'},"/Vfe":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"/syW":function(e,t,r){"use strict";var n=r("3j3K"),o=r("5oXY"),i=r("2Je8"),a=r("AAMm"),s=r("OjAQ"),c=r("fIYp"),l=r("Jfzo"),d=r("1leo"),p=r("BrtQ"),u=r("qGs6"),f=r("ib0R");r.d(t,"a",function(){return v});var m=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},g=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},v=function(){function e(e,t,r,n,o,i,a,s,c,l){this.appConfig=e,this.router=t,this.userService=r,this.cd=n,this.loadingService=o,this.chartService=i,this.pluralPipe=a,this.numberPipe=s,this.authService=c,this.filterCacheService=l,this.rankOverall={value:0,title:"Rank",tooltip:"Rank among all active users in the same company.",isPlural:!1},this.minutesPlayed={value:0,title:"Minutes Played",bgColor:"#79c144",isPlural:!1},this.overallCompletion={data:{value:0,bgColor:"#56a3fe",color:"#56a3fe",unit:"%"},type:"donut",title:"Overall Completion",container:"overallCompletionChart"},this.overallPerformance={value:[0],maxValue:0,title:"Overall Performance",bgColor:["#f6bf32","#fedd89"],unit:"pts"},this.isAdminInternal=!1}return e.prototype.ngOnInit=function(){var e=this;this.userId$=this.userService.userId$.subscribe(function(t){t&&(e.userId=t,e.getUserOverview())}),this.checkAdminInternal()},e.prototype.redirectToUserList=function(){this.filterCacheService.isCached$.next(!0),this.router.navigate(["admin/user-management"])},e.prototype.getUserOverview=function(){var e=this;this.loadingService.request$.next(!0),this.userService.getUserOverview(this.userId).subscribe(function(t){e.user=t;var r=e.numberPipe.transform(t.activeUser,e.appConfig.FORMAT.DECIMAL_NUMBER);e.rankOverall=m({},e.rankOverall,{value:t.rank<0?0:t.rank,subTitle:r+" "+e.pluralPipe.transform("Active User",t.activeUser)}),e.minutesPlayed=m({},e.minutesPlayed,{value:t.minutesPlayed,title:e.pluralPipe.transform("Minute",t.minutesPlayed)+" Played"}),e.overallCompletion.data.value=Math.round(t.overallCompletion),e.overallCompletion=m({},e.overallCompletion);var n=Math.round(100*t.overallScore/t.maxPossibleAttemptedScore);e.overallPerformance=m({},e.overallPerformance,{value:[t.overallScore,t.maxPossibleAttemptedScore],maxValue:t.maxPossibleScore,label:t.overallScore,color:e.chartService.getRankColor(n),bgColor:[e.chartService.getRankColor(n),e.chartService.getRankLightColor(n)]}),e.loadingService.response$.next(!0),e.cd.detectChanges()},function(){e.loadingService.response$.next(!0)})},e.prototype.redirectToEditUser=function(e){this.router.navigate(["admin/user-management/edit",e])},e.prototype.checkAdminInternal=function(){this.authService.isAdminInternal()?this.isAdminInternal=!0:this.isAdminInternal=!1,this.cd.detectChanges()},e}();v=h([r.i(s.a)(),r.i(n._1)({selector:"user-overview",template:r("BaW1"),styles:[r("aAxi")],changeDetection:n._2.OnPush}),g("design:paramtypes",["function"==typeof(b=void 0!==p.a&&p.a)&&b||Object,"function"==typeof(y=void 0!==o.c&&o.c)&&y||Object,"function"==typeof(_=void 0!==a.a&&a.a)&&_||Object,"function"==typeof(x=void 0!==n.e&&n.e)&&x||Object,"function"==typeof(O=void 0!==c.a&&c.a)&&O||Object,"function"==typeof(S=void 0!==l.a&&l.a)&&S||Object,"function"==typeof(C=void 0!==d.a&&d.a)&&C||Object,"function"==typeof(R=void 0!==i.k&&i.k)&&R||Object,"function"==typeof(A=void 0!==u.a&&u.a)&&A||Object,"function"==typeof(j=void 0!==f.a&&f.a)&&j||Object])],v);var b,y,_,x,O,S,C,R,A,j},"/uvf":function(e,t,r){"use strict";var n=r("3j3K"),o=r("3ftr");r.n(o);r.d(t,"a",function(){return s});var i=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function e(){this.confirm=new n.j}return e.prototype.ngOnInit=function(){},e.prototype.confirmBox=function(){this.confirm.emit(this.setting.data||!0)},e.prototype.close=function(){$("#"+this.container).modal("hide")},e.prototype.show=function(){$("#"+this.container).modal("show")},e}();i([r.i(n.f)(),a("design:type",String)],s.prototype,"container",void 0),i([r.i(n.f)(),a("design:type","function"==typeof(c=void 0!==o.ConfirmationSetting&&o.ConfirmationSetting)&&c||Object)],s.prototype,"setting",void 0),i([r.i(n._7)(),a("design:type","function"==typeof(l=void 0!==n.j&&n.j)&&l||Object)],s.prototype,"confirm",void 0),s=i([r.i(n._1)({selector:"site-confirmation-modal",template:r("1ilR"),styles:[r("D9gp")],changeDetection:n._2.OnPush}),a("design:paramtypes",[])],s);var c,l},"05jR":function(e,t){e.exports='
\r\n

Udpate Program

\r\n\r\n
\r\n\r\n
\r\n \r\n \r\n Program name is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n External Id is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n Sort order is required\r\n \r\n \r\n Please insert number for sort order\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n
'},"0LGh":function(e,t,r){"use strict";var n=r("3j3K"),o=r("M4fF"),i=(r.n(o),r("OjAQ")),a=r("H9mM"),s=r("1NAf"),c=r("qGs6"),l=r("MCzZ"),d=r("JlUQ"),p=r("5oXY"),u=r("BrtQ"),f=r("QzLw");r.d(t,"a",function(){return g});var m=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},h=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},g=function(){function e(e,t,r,n,o,i,a,s,c){this.appState=e,this.logger=t,this.authService=r,this.dashboardService=n,this.cd=o,this.localStorageService=i,this.router=a,this.appConfig=s,this.breadcrumbService=c,this.urls=this.appConfig.URLS,this.showSubmenuDashboard=!1,this.isAdminInternal=!1,this.isAccessibleTab=!0}return e.prototype.ngOnInit=function(){var e=this;this.logger.info("Profile user: ",this.authService.userProfile),this.userProfile=this.authService.userProfile,this.modules=this.appState.modules,this.breadcrumb$=this.breadcrumbService.setting$.subscribe(function(t){t&&t.title===e.appConfig.DASHBOARD_TITLE.MODULE_DETAILS&&(e.showSubmenuDashboard=!0,e.cd.detectChanges())}),this.company$=this.appState.company$.subscribe(function(t){t?(e.isAccessibleTab=!0,r.i(o.isEqual)(e.company,t)||(e.company=t,e.getModules(t))):e.isAccessibleTab=!1,e.cd.detectChanges()}),this.updateModules$=this.appState.updateModules$.subscribe(function(t){t&&e.company&&e.getModules(e.company)}),this.userProfile||this.getProfile(),this.checkAdminInternal()},e.prototype.toggleSubmenuDashboard=function(){this.showSubmenuDashboard=!this.showSubmenuDashboard},e.prototype.onLogout=function(){this.authService.logout()},e.prototype.getModules=function(e){var t=this;this.dashboardService.getModules(e.id).subscribe(function(e){t.modules=e,t.appState.modules$.next(e),t.cd.markForCheck()},function(e){t.modules=[],t.appState.modules$.next([]),t.cd.markForCheck()})},e.prototype.getProfile=function(){var e=this;this.authService.getProfile().subscribe(function(t){e.userProfile=t,e.appState.userProfile$.next(t),e.cd.markForCheck()})},e.prototype.checkAdminInternal=function(){this.authService.isAdminInternal()?this.isAdminInternal=!0:this.isAdminInternal=!1,this.cd.detectChanges()},e.prototype.isModuleLink=function(e){return window.location.pathname===e},e.prototype.isModuleListActive=function(){return!this.showSubmenuDashboard&&this.breadcrumbService.breadcrumb&&this.breadcrumbService.breadcrumb.title===this.appConfig.DASHBOARD_TITLE.MODULE_DETAILS},e}();g=m([r.i(i.a)(),r.i(n._1)({selector:"site-sidebar",template:r("dxwf"),styles:[r("X7wX")],changeDetection:n._2.OnPush}),h("design:paramtypes",["function"==typeof(v=void 0!==a.a&&a.a)&&v||Object,"function"==typeof(b=void 0!==s.a&&s.a)&&b||Object,"function"==typeof(y=void 0!==c.a&&c.a)&&y||Object,"function"==typeof(_=void 0!==l.a&&l.a)&&_||Object,"function"==typeof(x=void 0!==n.e&&n.e)&&x||Object,"function"==typeof(O=void 0!==d.a&&d.a)&&O||Object,"function"==typeof(S=void 0!==p.c&&p.c)&&S||Object,"function"==typeof(C=void 0!==u.a&&u.a)&&C||Object,"function"==typeof(R=void 0!==f.a&&f.a)&&R||Object])],g);var v,b,y,_,x,O,S,C,R},"0Mno":function(e,t){e.exports='
\r\n
\r\n

{{ title | translate }}

\r\n
\r\n\r\n
\r\n \x3c!-- Legend list--\x3e\r\n
\r\n
\r\n
\r\n
\r\n {{ group?.totalUsers }}\r\n {{ group?.title }}\r\n
\r\n
\r\n
\r\n
\r\n\r\n \x3c!-- User proficiency chart --\x3e\r\n
\r\n \x3c!-- Name of chart --\x3e\r\n

{{ \'DASHBOARD.PROFICIENCY_SCORE\' | translate }}

\r\n
\r\n\r\n
\r\n {{ \'DASHBOARD.NO_DATA_AVAILABLE\' | translate }}\r\n
\r\n
\r\n
\r\n'},"0Old":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var o=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){}return e.hasValidProgram=function(e){var t=e.controls.programs,r=t.controls,n=!1;if(r.length>0&&r.forEach(function(e){e.controls.modules.controls.length>0&&(n=!0)}),n)return null;t.setErrors({invalidProgram:!0})},e.minLengthWithoutSpace=function(e){return function(t){return t.value.trim().length=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},g=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},v=function(){function e(e,t,r,n,o,i,a,s,c){var l=this;this.appConfig=e,this.cd=t,this.filterService=r,this.appState=n,this.dashboardService=o,this.chartService=i,this.loadingService=a,this.pluralPipe=s,this.numberPipe=c,this.activeUser={value:0,bgColor:"#79c144",unit:"%"},this.chartOption={container:"#averageOverallCompletionChart",colorFn:function(e){return l.chartService.getRankColorByIndex(e.index)},width:5,padding:{top:0,bottom:0,left:0,right:0}},this.chartRangeSetting=[],this.isFailedLoading=!1,this.isNoData=!1}return e.prototype.ngOnInit=function(){var e=this;this.company$=this.appState.company$.subscribe(function(t){t&&!r.i(i.isEqual)(t,e.company)&&(e.company=t,e.initFilter())})},e.prototype.initFilter=function(){var e=this;this.filter$&&this.filter$.unsubscribe(),this.filter$=this.filterService.filter$.subscribe(function(t){e.company&&e.company.id&&t&&e.getAverageOverallCompletion(t||[])})},e.prototype.getAverageOverallCompletion=function(e){var t=this;this.isFailedLoading=!1,this.isNoData=!1,this.loadingService.request$.next(!0),this.dashboardService.getAverageOverallCompletion(this.company.id,e).subscribe(function(e){r.i(i.isEmpty)(e)&&(t.isNoData=!0);var n=t.numberPipe.transform(e.activeUser,t.appConfig.FORMAT.DECIMAL_NUMBER);t.activeUser=m({},t.activeUser,{value:Math.round(e.averageOverallPercent),bgColor:t.chartService.getRankColor(Math.round(e.averageOverallPercent)),subTitle:n+" "+t.pluralPipe.transform("Active User",e.activeUser||0)}),t.chartData=t.getChartData(e.userAverageCompletions),t.loadingService.response$.next(!0),t.cd.detectChanges()},function(){t.isFailedLoading=!0,t.isNoData=!1,t.loadingService.response$.next(!0),t.cd.detectChanges()})},e.prototype.getChartData=function(e){return this.chartRangeSetting=this.getRankSetting(),this.countUsersByCompletions(e),this.chartRangeSetting.map(function(e){return{value:e.value||0,label:e.start+"-"+e.end+"%"}})},e.prototype.countUsersByCompletions=function(e){e&&this.chartRangeSetting.forEach(function(t){var r=0;e.forEach(function(e){Math.round(e.averageCompletion)>=t.start&&Math.round(e.averageCompletion)<=t.end&&(r+=1)}),t.value=r})},e.prototype.getRankSetting=function(){for(var e=10,t=0,r=100,n=[],o=0;o=e-1){n[o]={start:n[o-1].end+1,end:r};break}n[o]={start:n[o-1].end+1,end:n[o-1].end+i}}}return n},e.prototype.isNoDataAvailable=function(){return this.isFailedLoading||this.isNoData},e}();v=h([r.i(a.a)(),r.i(n._1)({selector:"average-overall-completion",template:r("uss6"),styles:[r("phSJ")],changeDetection:n._2.OnPush}),g("design:paramtypes",["function"==typeof(b=void 0!==f.a&&f.a)&&b||Object,"function"==typeof(y=void 0!==n.e&&n.e)&&y||Object,"function"==typeof(_=void 0!==s.a&&s.a)&&_||Object,"function"==typeof(x=void 0!==c.a&&c.a)&&x||Object,"function"==typeof(O=void 0!==l.a&&l.a)&&O||Object,"function"==typeof(S=void 0!==d.a&&d.a)&&S||Object,"function"==typeof(C=void 0!==p.a&&p.a)&&C||Object,"function"==typeof(R=void 0!==u.a&&u.a)&&R||Object,"function"==typeof(A=void 0!==o.k&&o.k)&&A||Object])],v);var b,y,_,x,O,S,C,R,A},"0V5L":function(e,t,r){"use strict";var n=r("3j3K"),o=r("A6nZ");r.n(o);r.d(t,"a",function(){return s});var i=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function e(){}return e.prototype.ngOnInit=function(){},e.prototype.isPlural=function(){return void 0===this.item.isPlural||this.item.isPlural},e.prototype.getBoxStyle=function(){return{"background-color":this.item.bgColor||"#56a3fe"}},e}();i([r.i(n.f)(),a("design:type","function"==typeof(c=void 0!==o.CompletionItem&&o.CompletionItem)&&c||Object)],s.prototype,"item",void 0),s=i([r.i(n._1)({selector:"completion-item",template:r("Srpi"),styles:[r("uEIN")],changeDetection:n._2.OnPush}),a("design:paramtypes",[])],s);var c},"0bBG":function(e,t){e.exports='
\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n

{{ overviewItem?.value | positiveNumber }}%

\r\n

{{ overviewItem?.title | translate }}

\r\n
\r\n
\r\n
\r\n'},"0e89":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"0pym":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".active-user{margin-left:30px}.active-user__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.active-user__chart{height:260px}",""]),e.exports=e.exports.toString()},1:function(e,t,r){e.exports=r("x35b")},"1/8r":function(e,t,r){"use strict";var n=r("3j3K"),o=r("Vmfx"),i=(r.n(o),r("Jfzo"));r.d(t,"a",function(){return l});var a=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e){this.chartService=e,this.data=[]}return e.prototype.ngOnInit=function(){this.drawChart()},e.prototype.ngDoCheck=function(){this.drawChart()},e.prototype.drawChart=function(){var e=this;if(this.option.container&&this.data){for(var t=this.getChartData("value"),r=this.getChartData("label"),n={labels:r,series:[t]},o=Math.max.apply(Math,t)||0,i=4,s=Math.ceil(o/(i-1)),c=[],l=0;l=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},d=[i.c,o.a,c.a,a.a],p=[],u=[],f=[s.a],m=[],h=function(){function e(){}return e}();h=l([r.i(n.b)({imports:d.slice(),declarations:f.concat(p,u),providers:m.slice(),exports:f.concat(p,u)})],h)},"1NAf":function(e,t,r){"use strict";var n=r("3j3K"),o=r("kZql");r.d(t,"a",function(){return c});var i,a=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};!function(e){e[e.FATAL=1]="FATAL",e[e.ERROR=2]="ERROR",e[e.WARN=3]="WARN",e[e.INFO=4]="INFO",e[e.DEBUG=5]="DEBUG"}(i||(i={}));var c=function(){function e(){this.logLevel=o.a.LOG_LEVEL}return e.prototype.fatal=function(e){for(var t=[],r=1;r=i.FATAL&&console.log.apply(console,[e].concat(t))},e.prototype.error=function(e){for(var t=[],r=1;r=i.ERROR&&console.log.apply(console,[e].concat(t))},e.prototype.warn=function(e){for(var t=[],r=1;r=i.WARN&&console.log.apply(console,[e].concat(t))},e.prototype.info=function(e){for(var t=[],r=1;r=i.INFO&&console.log.apply(console,[e].concat(t))},e.prototype.debug=function(e){for(var t=[],r=1;r=i.DEBUG&&console.log.apply(console,[e].concat(t))},e}();c=a([r.i(n.g)(),s("design:paramtypes",[])],c)},"1QXr":function(e,t,r){"use strict";var n=r("3j3K"),o=r("M4fF"),i=(r.n(o),r("PrNj"));r.n(i);r.d(t,"a",function(){return l});var a=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e){this.cd=e}return e.prototype.ngOnInit=function(){this.originalData=a({},this.data)},e.prototype.ngDoCheck=function(){r.i(o.isEqual)(this.originalData,this.data)||(this.originalData=a({},this.data),this.cd.detectChanges())},e.prototype.getChartStyle=function(){var e=150,t=Math.ceil(e/Math.ceil(this.data.value).toString().length)+10,r=t>50?50:t;return{background:this.originalData&&this.originalData.bgColor||"#79c144",color:this.originalData&&this.originalData.color||"#fff","font-size":r+"px"}},e}();s([r.i(n.f)(),c("design:type","function"==typeof(d=void 0!==i.ChartData&&i.ChartData)&&d||Object)],l.prototype,"data",void 0),l=s([r.i(n._1)({selector:"full-circle-chart",template:r("jveS"),styles:[r("ac+Y")],changeDetection:n._2.OnPush}),c("design:paramtypes",["function"==typeof(p=void 0!==n.e&&n.e)&&p||Object])],l);var d,p},"1S17":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".import-user{padding:25px 30px}.import-user__header{margin-bottom:25px}.import-user__title{font-size:25px;color:#303030}.import-user__file-control-label{font-size:13px;font-style:italic}.import-user__result{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:20px 0}.import-user__result-item{width:45%;height:100%}.import-user__result-label{font-weight:700;padding:0 20px;margin:0;width:auto}.import-user__result-item-area{padding:20px;border:1px solid #d4d4d4;border-radius:5px}.import-user__user-item{word-break:break-all}",""]),e.exports=e.exports.toString()},"1cQ1":function(e,t){e.exports='
\r\n

Module Performance

\r\n
\r\n
\r\n \x3c!-- Overview --\x3e\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n
\r\n\r\n \x3c!-- Chart --\x3e\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n'},"1ilR":function(e,t){e.exports='\r\n'},"1leo":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return i});var o=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},i=function(){function e(){}return e.prototype.transform=function(e,t,r){return e?1===t?e:r||e+"s":""},e}();i=o([r.i(n.h)({name:"pluralWord"})],i)},"1pJq":function(e,t){e.exports='
\r\n
\r\n

{{ formTitle | translate }}

\r\n
\r\n\r\n
\r\n \x3c!-- Company form --\x3e\r\n
\r\n \x3c!-- Name of company --\x3e\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n\r\n \x3c!-- Master contentful space --\x3e\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n\r\n \x3c!-- Language --\x3e\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n \x3c!-- Program board --\x3e\r\n \r\n \r\n\r\n \r\n
\r\n
\r\n
\r\n\r\n\r\n'},"1vF9":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return i});var o=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},i=function(){function e(){}return e.prototype.transform=function(e,t){var r=t||0;return isNaN(e)?+r:Math.round(e)},e}();i=o([r.i(n.h)({name:"roundNumber"})],i)},"2+ly":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".overall-completion__box{padding:25px}.overall-completion__item{margin-bottom:20px}.overall-completion__item:last-child{margin-bottom:0}",""]),e.exports=e.exports.toString()},"26y0":function(e,t,r){"use strict";var n=r("3j3K"),o=r("1NAf"),i=r("MCzZ"),a=r("H9mM"),s=r("qGs6"),c=r("JlUQ");r.d(t,"a",function(){return p});var l=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},d=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=function(){function e(e,t,r,n,o,i){this.logger=e,this.dashboardService=t,this.cd=r,this.appState=n,this.authService=o,this.localStorageService=i}return e.prototype.ngOnInit=function(){var e=this;this.appState.userProfile$.subscribe(function(t){t&&e.getCompanies()}),this.appState.updateCompanies$.subscribe(function(t){t&&e.getCompanies()})},e.prototype.getCompanies=function(){var e=this;this.dashboardService.getCompanies().subscribe(function(t){if(null!=t&&0!==t.length){e.logger.info("Company: ",t),e.companies=t,e.appState.companies$.next(t);var r=e.companies&&e.companies[0];if(null===e.localStorageService.getCurrentActiveCompany())e.selectCompany(r);else{var n=e.companies.find(function(t){return t.id===e.localStorageService.getCurrentActiveCompany()});null===n||void 0===n?e.selectCompany(r):e.appState.company$.next(n)}e.cd.detectChanges()}},function(e){})},e.prototype.selectCompany=function(e){this.localStorageService.setCurrentActiveCompany(e.id),this.appState.company$.next(e)},e}();p=l([r.i(n._1)({selector:"navigation",template:r("TCIf"),styles:[r("+AjF")],changeDetection:n._2.OnPush}),d("design:paramtypes",["function"==typeof(u=void 0!==o.a&&o.a)&&u||Object,"function"==typeof(f=void 0!==i.a&&i.a)&&f||Object,"function"==typeof(m=void 0!==n.e&&n.e)&&m||Object,"function"==typeof(h=void 0!==a.a&&a.a)&&h||Object,"function"==typeof(g=void 0!==s.a&&s.a)&&g||Object,"function"==typeof(v=void 0!==c.a&&c.a)&&v||Object])],p);var u,f,m,h,g,v},"27qv":function(e,t,r){"use strict";var n=r("3j3K"),o=r("2Je8"),i=r("NVOs"),a=r("8A5H"),s=r("36Qr"),c=r("7HOM"),l=r("DuqJ"),d=r("nvRx"),p=r("fAE3");r.d(t,"a",function(){return g});var u=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},f=[o.c,a.a,i.f,c.a,d.a,p.a],m=[s.a],h=[l.a],g=function(){function e(){}return e}();g=u([r.i(n.b)({imports:f.slice(),declarations:m.slice(),providers:h.slice()})],g)},"2PsC":function(e,t){e.exports='
\r\n

Add New Company

\r\n\r\n
\r\n \r\n
\r\n \r\n \r\n Company Guid is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n Company name is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n Access token is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n Data version is required\r\n \r\n \r\n Please insert number for Data version\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n
'},"2hZY":function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n={SORT:"sort",FILTER:"filter",PAGINATION:"pagination",SEARCH:"search"}},"2oQX":function(e,t,r){"use strict";var n=r("3j3K"),o=r("NVOs"),i=r("A0AL"),a=r("EYWE"),s=r("LF3a");r.d(t,"a",function(){return d});var c=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(){function e(e,t,r,o){this.gameContentService=e,this.alertService=t,this.gameService=r,this.formBuilder=o,this.cancelUpdateGame=new n.j,this.onUpdateGameSuccess=new n.j}return e.prototype.ngOnInit=function(){this.createAddGameForm()},e.prototype.createAddGameForm=function(){this.updateGameForm=this.formBuilder.group({name:["",o.b.required],externalGameId:["",o.b.required],rolePlayContentfulId:[""],trainingSessionId:["",o.b.required],scoreMultiplier:["",o.b.required],shouldScore:[!1],chatmapperLocation:["",o.b.required],sortOrder:["",o.b.compose([o.b.required,o.b.min(0)])],gameTemplateType:["",o.b.required]})},e.prototype.updateGameContent=function(e,t){var r=this;this.gameContentService.updateGameContent(e.gameContentId,e.gameTemplateType).subscribe(function(e){r.alertService.success("Updated game content successfully"),t()},function(e){r.alertService.error(e._body)})},e.prototype.updateGame=function(){var e=this;this.updateGameForm.valid&&(this.model=Object.assign({},this.updateGameForm.value),this.gameService.updateGame(this.gameId,this.companyGuid,this.model).subscribe(function(t){e.alertService.success("Updated game successfully"),e.updateGameContent({gameContentId:e.gameContentId,gameTemplateType:e.model.gameTemplateType},function(){e.updateGameForm.reset(),e.onUpdateGameSuccess.emit()})},function(t){e.alertService.error(t._body)}))},e.prototype.cancel=function(){this.cancelUpdateGame.emit(!1)},e.prototype.hasErrorAndTouched=function(e){return!(!this.updateGameForm.get(e).hasError("required")||!this.updateGameForm.get(e).touched)},e.prototype.wrongPatternAndTouched=function(e){return!(!this.updateGameForm.get(e).hasError("pattern")||!this.updateGameForm.get(e).touched)},e}();c([r.i(n.f)(),l("design:type",Array)],d.prototype,"gameTemplateTypes",void 0),c([r.i(n.f)(),l("design:type",Array)],d.prototype,"trainingSessions",void 0),c([r.i(n.f)(),l("design:type",String)],d.prototype,"companyGuid",void 0),c([r.i(n.f)(),l("design:type",Number)],d.prototype,"moduleId",void 0),c([r.i(n.f)(),l("design:type",Number)],d.prototype,"gameId",void 0),c([r.i(n.f)(),l("design:type",Number)],d.prototype,"gameContentId",void 0),c([r.i(n._7)(),l("design:type",Object)],d.prototype,"cancelUpdateGame",void 0),c([r.i(n._7)(),l("design:type",Object)],d.prototype,"onUpdateGameSuccess",void 0),d=c([r.i(n._1)({selector:"update-game",template:r("ct9x"),styles:[r("OAq7")]}),l("design:paramtypes",["function"==typeof(p=void 0!==s.a&&s.a)&&p||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(f=void 0!==i.a&&i.a)&&f||Object,"function"==typeof(m=void 0!==o.c&&o.c)&&m||Object])],d);var p,u,f,m},"2p4D":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"2w1b":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".average-performance{padding-top:30px;border-top:1px solid #ddd}.average-performance /deep/ .completion-item{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.average-performance /deep/ .completion-item__value-box{margin-bottom:10px;margin-right:0}.average-performance /deep/ .completion-item__description{font-size:18px;text-align:center}.average-performance /deep/ .ct-chart-bar .ct-label{color:#303030;font-size:10px}.average-performance__box{padding:25px}.average-performance__box-content{display:-webkit-box;display:-ms-flexbox;display:flex}.average-performance__overall{width:15%;min-width:160px;margin-right:25px}.average-performance__chart{width:85%}.average-performance bar-chart{-webkit-box-flex:1;-ms-flex:1;flex:1}.average-performance #averageModulePerformanceChart{height:200px;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex}.average-performance__chart-score-title,.average-performance__chart-user-title{font-size:10px;color:#303030;margin:3px}.average-performance__chart-score-title{position:absolute;bottom:10px;left:30px}",""]),e.exports=e.exports.toString()},"2xnj":function(e,t,r){"use strict";var n=r("3j3K"),o=r("2Je8"),i=r("Qdh+"),a=(r.n(i),r("BrtQ"));r.d(t,"a",function(){return d});var s=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(){function e(e,t,r){this.cd=e,this.appConfig=t,this.numberPipe=r,this.roleplayOverall={value:0,title:"Role play"},this.gameOverall={value:0,title:"Game"}}return e.prototype.ngOnInit=function(){this.initData()},e.prototype.ngOnChanges=function(){this.initData()},e.prototype.initData=function(){if(this.data){var e=isNaN(this.data.averageRoleplay)?this.appConfig.DEFAULT_VALUE.ZERO:this.data.averageRoleplay,t=isNaN(this.data.averageMiniGame)?this.appConfig.DEFAULT_VALUE.ZERO:this.data.averageMiniGame,r=this.numberPipe.transform(e,this.appConfig.FORMAT.DECIMAL_NUMBER),n=this.numberPipe.transform(t,this.appConfig.FORMAT.DECIMAL_NUMBER);this.roleplayOverall=s({},this.roleplayOverall,{value:this.data.averageRoleplayCompletion,subTitle:"Out of "+r}),this.gameOverall=s({},this.gameOverall,{value:this.data.averageMiniGameCompletion,subTitle:"Out of "+n}),this.cd.detectChanges()}},e}();c([r.i(n.f)(),l("design:type","function"==typeof(p=void 0!==i.AverageModuleCompletion&&i.AverageModuleCompletion)&&p||Object)],d.prototype,"data",void 0),d=c([r.i(n._1)({selector:"average-module-completion",template:r("sq7P"),styles:[r("eSJG")],changeDetection:n._2.OnPush}),l("design:paramtypes",["function"==typeof(u=void 0!==n.e&&n.e)&&u||Object,"function"==typeof(f=void 0!==a.a&&a.a)&&f||Object,"function"==typeof(m=void 0!==o.k&&o.k)&&m||Object])],d);var p,u,f,m},"36Qr":function(e,t,r){"use strict";var n=r("3j3K"),o=r("NVOs"),i=r("M4fF"),a=(r.n(i),r("DuqJ")),s=r("EYWE"),c=r("H9mM"),l=r("BrtQ"),d=r("QzLw");r.d(t,"a",function(){return h});var p=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},f=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},m=r("afOB"),h=function(){function e(e,t,r,n,o,i,a){this.fb=e,this.cd=t,this.userService=r,this.alert=n,this.appState=o,this.appConfig=i,this.breakcrumbService=a,this.users=[],this.isCSVFile=!0,this.bulkUsers={unregistered:[],regitered:[]},this.isLoading=!1,this.breadcrumb={title:"Import Bulk Accounts",urls:[{title:"Import Bulk Accounts"}]}}return e.prototype.ngOnInit=function(){var e=this;this.appState.company$.subscribe(function(t){t&&(e.company=t,e.buildForm())}),this.breakcrumbService.setting$.next(this.breadcrumb)},e.prototype.buildForm=function(){this.importUserForm=this.fb.group({userFile:["",o.b.compose([o.b.required])]}),this.cd.detectChanges()},e.prototype.isValidForm=function(){return this.importUserForm&&this.importUserForm.valid},e.prototype.onFileChange=function(e){var t=this;if(this.isCSVFile=!0,e&&e.length>0){var r=e.item(0),n=new FileReader;if("csv"!==r.name.split(".").pop())return this.isCSVFile=!1,this.importUserForm.patchValue({userFile:""}),void this.cd.markForCheck();n.readAsText(r),n.onload=function(e){var r=n.result;t.importUserForm.patchValue({userFile:m.parse(r).data}),t.cd.markForCheck()}}},e.prototype.dropFile=function(e){e.preventDefault()},e.prototype.save=function(){var e=this;this.isLoading=!0,this.generateDataByCSV(),this.userService.registerBulkUser(this.users).subscribe(function(t){e.importUserForm.reset(),e.bulkUsers=t,e.isLoading=!1,e.accountFileInput.nativeElement.value="",e.cd.detectChanges(),e.alert.success("Imported user successfully!")},function(){e.importUserForm.reset(),e.isLoading=!1,e.accountFileInput.nativeElement.value="",e.cd.detectChanges(),e.alert.error("Imported user failed! Please try again!")})},e.prototype.generateDataByCSV=function(){var e=this;if(this.importUserForm.controls.userFile){this.users=[];var t=this.importUserForm.controls.userFile.value,n=t[0].map(function(e){return r.i(i.camelCase)(e)});t.shift(),t.forEach(function(t){var r=t;if(!(t.length<=1)){var o={isChanged:!0,expiredDate:0,programs:[],companyId:e.company.id,region:e.appConfig.API.LOCALE};n.forEach(function(t,n){var i=r[n];o=e.mergeUser(o,t,i)}),o.name&&o.email&&o.companyId&&e.users.push(o)}})}},e.prototype.mergeUser=function(e,t,r){return p((n={},n[t]=r,n),e);var n},e.prototype.isImportingUserResult=function(){return this.bulkUsers.regitered.length>0||this.bulkUsers.unregistered.length>0},e}();u([r.i(n._13)("accountFileInput"),f("design:type",Object)],h.prototype,"accountFileInput",void 0),h=u([r.i(n._1)({selector:"import-bulk-users",template:r("kI8c"),styles:[r("1S17")],changeDetection:n._2.OnPush}),f("design:paramtypes",["function"==typeof(g=void 0!==o.c&&o.c)&&g||Object,"function"==typeof(v=void 0!==n.e&&n.e)&&v||Object,"function"==typeof(b=void 0!==a.a&&a.a)&&b||Object,"function"==typeof(y=void 0!==s.a&&s.a)&&y||Object,"function"==typeof(_=void 0!==c.a&&c.a)&&_||Object,"function"==typeof(x=void 0!==l.a&&l.a)&&x||Object,"function"==typeof(O=void 0!==d.a&&d.a)&&O||Object])],h);var g,v,b,y,_,x,O},"3ftr":function(e,t){},"3jSN":function(e,t){e.exports='\x3c!-- User modification body --\x3e\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n

{{ \'USER_MODIFICATION.SEARCH_RESULT\' | translate }}

\r\n\r\n \x3c!-- Merge connections --\x3e\r\n
\r\n
\r\n
\r\n

{{ \'USER_MODIFICATION.MERGE_CONNECTIONS\' | translate }}

\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n \x3c!-- Dashboard access --\x3e\r\n
\r\n
\r\n

{{ \'USER_MODIFICATION.DASHBOARD_ACCESS\' | translate }}:

\r\n\r\n
    \r\n \x3c!-- Select All options --\x3e\r\n
  • \r\n \r\n
  • \r\n\r\n
  • \r\n \x3c!-- Company list --\x3e\r\n \r\n
  • \r\n
\r\n\r\n \r\n
\r\n
\r\n
\r\n'},"415h":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"41BI":function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n={GROUP:"group",PERFORMANCE:"performance",SCORE:"score",COMPLETION:"completion",GROUP_ALL:"group all"}},"43c3":function(e,t){},"4ARa":function(e,t,r){"use strict";var n=r("3j3K"),o=r("NVOs"),i=r("i76y"),a=r("EYWE");r.d(t,"a",function(){return l});var s=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.alertService=e,this.badgeService=t,this.formBuilder=r,this.cancelUpdateBadge=new n.j,this.onUpdateBadgeSuccess=new n.j}return e.prototype.ngOnInit=function(){this.createAddBadgeForm()},e.prototype.createAddBadgeForm=function(){this.updateBadgeForm=this.formBuilder.group({badgeContentfulId:["",o.b.required],moduleId:["",o.b.compose([o.b.required,o.b.min(1),o.b.pattern("[0-9]*")])]})},e.prototype.updateBadge=function(){var e=this;this.updateBadgeForm.valid&&(this.model=Object.assign({},this.updateBadgeForm.value),this.badgeService.updateBadge(this.companyGuid,this.badgeId,this.model).subscribe(function(t){e.onUpdateBadgeSuccess.emit(),e.updateBadgeForm.reset(),e.alertService.success("Updated badge successfully")},function(t){e.alertService.error(t._body)}))},e.prototype.cancel=function(){this.cancelUpdateBadge.emit(!1)},e.prototype.hasErrorAndTouched=function(e){return!(!this.updateBadgeForm.get(e).hasError("required")||!this.updateBadgeForm.get(e).touched)},e.prototype.wrongPatternAndTouched=function(e){return!(!this.updateBadgeForm.get(e).hasError("pattern")||!this.updateBadgeForm.get(e).touched)},e}();s([r.i(n.f)(),c("design:type",String)],l.prototype,"companyGuid",void 0),s([r.i(n.f)(),c("design:type",Number)],l.prototype,"badgeId",void 0),s([r.i(n._7)(),c("design:type",Object)],l.prototype,"cancelUpdateBadge",void 0),s([r.i(n._7)(),c("design:type",Object)],l.prototype,"onUpdateBadgeSuccess",void 0),l=s([r.i(n._1)({selector:"update-badge",template:r("spyc"),styles:[r("Vj+F")]}),c("design:paramtypes",["function"==typeof(d=void 0!==a.a&&a.a)&&d||Object,"function"==typeof(p=void 0!==i.a&&i.a)&&p||Object,"function"==typeof(u=void 0!==o.c&&o.c)&&u||Object])],l);var d,p,u},"4Aga":function(e,t){e.exports='
\r\n \r\n
\r\n

{{ text }}

\r\n
\r\n
\r\n'},"4CKD":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"4EMz":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"4LAy":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return i});var o=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},i=function(){function e(){}return e.prototype.transform=function(e){return isNaN(e)?0:e},e}();i=o([r.i(n.h)({name:"beNumber"})],i)},"4Lv9":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".module-detail.is-hidden{visibility:hidden}.module-detail__overview-detail{margin:50px}",""]),e.exports=e.exports.toString()},"4V2B":function(e,t){e.exports='
\r\n
\r\n

\r\n {{ overviewItem?.value | number : \'1.0-2\' }}%\r\n

\r\n
{{ overviewItem?.title | translate }}
\r\n
\r\n
\r\n'},"4isg":function(e,t){e.exports='\r\n\r\n\r\n'},"4m7v":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"4oLx":function(e,t,r){"use strict";var n=r("3j3K"),o=r("5oXY"),i=r("NVOs"),a=r("2Je8"),s=r("M4fF"),c=(r.n(s),r("qGs6")),l=r("OjAQ"),d=r("H9mM"),p=r("AAMm"),u=r("BrtQ"),f=r("41BI"),m=r("q/r0"),h=r("QzLw"),g=r("ib0R");r.d(t,"a",function(){return _});var v=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},b=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},y=r("afOB"),_=function(){function e(e,t,r,n,o,a,s,c,l,d){this.appState=e,this.userService=t,this.cd=r,this.appConfig=n,this.router=o,this.loadingService=a,this.breakcrumbService=s,this.authService=c,this.datePipe=l,this.filterCacheService=d,this.tableTitles=[{title:"Rank",class:["rank"],isSort:!0,column:"rank"},{title:"Email",class:["email"],isSort:!0,column:"email"},{title:"BU",class:["business-unit"],isSort:!0,column:"bussinessUnit"},{title:"Score.",class:["score"],isSort:!0,column:"scorePts"},{title:"Imprv.",class:["improved"],tooltip:"Difference between current score and score from 1 week ago.",isSort:!0,column:"improved"},{title:"Perf.",class:["performance"],isSort:!0,column:"performance"},{title:"Overall comp.",class:["completion"],isSort:!0,column:"overallCompletion"},{title:"Date Installed",class:["installed-date"],isSort:!0,column:"dateInstalled",isDatetime:!0},{title:"Date Last Used",class:["date-last-used"],isSort:!0,column:"dateLastUsed",isDatetime:!0}],this.users=[],this.usersResult=[],this.sortSetting={type:this.appConfig.SORT.TYPE.DESC,field:"dateInvited"},this.paging={total:0,limit:10,page:1},this.searchControl=new i.d,this.groups=[],this.isLoading=!1,this.breadcrumb={title:this.appConfig.DASHBOARD_TITLE.USER_MANAGEMENT,urls:[{title:"User Management"}]},this.isAdminInternal=!1,this.exportedTitles=[{title:"Name",column:"name"},{title:"Email",column:"email"},{title:"Group",column:"bussinessUnit"},{title:"Rank",column:"rank"},{title:"Score",column:"scorePts"},{title:"Improved",column:"improved"},{title:"Performance",column:"performance"},{title:"Overall Completion",column:"overallCompletion"},{title:"Date Installed",column:"dateInstalled"},{title:"# RPs completed (unique)",column:"rpGamesCompleted"},{title:"# mini-games completed (unique)",column:"minigamesCompleted"},{title:"# of user badges",column:"unlockedBadges"},{title:"# minutes played",column:"minutesPlayed"}],this.currentPage=1,this.isFirstLoad=!0}return e.prototype.ngOnInit=function(){var e=this;this.initCache(),this.company$=this.appState.company$.subscribe(function(t){t&&!r.i(s.isEqual)(t,e.company)&&(e.company=t,e.isFirstLoad?e.isFirstLoad=!1:e.filterCacheService.isCached$.next(!1),e.getUser())}),this.search$=this.searchControl.valueChanges.subscribe(function(t){e.searchText=t,e.currentPage=1,e.dataHandler()}),this.loading$=this.loadingService.done$.subscribe(function(t){e.isLoading=!t,e.cd.detectChanges()}),this.checkAdminInternal(),this.breakcrumbService.setting$.next(this.breadcrumb)},e.prototype.ngOnDestroy=function(){this.saveFilterCache(),this.filterCacheService.isCached$.next(!1)},e.prototype.initCache=function(){var e=this;this.cache$=this.filterCacheService.isCached$.subscribe(function(t){e.filterCache=t?e.filterCacheService.getCache():null,e.cacheHandler()})},Object.defineProperty(e.prototype,"totalResult",{get:function(){return this.usersResult&&this.usersResult.length||0},enumerable:!0,configurable:!0}),e.prototype.getUser=function(){var e=this;this.loadingService.request$.next(!0),this.user$=this.userService.getUsers(this.company.id).subscribe(function(t){e.users=t.users.slice(),e.paging=Object.assign(e.paging,{total:e.users.length}),e.dataHandler(),e.users.length>0&&(e.maxScore=r.i(s.maxBy)(e.users,"scorePts").scorePts||0),e.groups=e.getUserGroups(e.users),e.loadingService.response$.next(!0),e.cd.detectChanges()},function(){e.loadingService.response$.next(!0)})},e.prototype.getShowUpUsers=function(){var e=(this.paging.page-1)*this.paging.limit,t=(this.paging.page-1)*this.paging.limit+this.paging.limit;return this.usersResult.slice(e,t)},e.prototype.sortByField=function(e){var t=e.title,r=e.column;if(this.currentPage=1,t){if(this.sortSetting.fieldName===t){var n=this.sortSetting.type===this.appConfig.SORT.TYPE.ASC?this.appConfig.SORT.TYPE.DESC:this.appConfig.SORT.TYPE.ASC;this.sortSetting={type:n,field:r,fieldName:t}}else this.sortSetting={type:this.appConfig.SORT.TYPE.ASC,field:r,fieldName:t};this.sortSetting.isDatetime=!!e.isDatetime,this.dataHandler()}},e.prototype.onPageChange=function(e){this.paging=Object.assign(this.paging,{page:e+1}),this.currentPage=e+1,this.cd.detectChanges()},e.prototype.resetPagination=function(){this.paging=Object.assign(this.paging,{total:this.usersResult.length,page:this.currentPage||1}),this.cd.detectChanges()},e.prototype.dataHandler=function(){var e=this.users.slice();this.searchText&&(e=this.searchHandler(e,this.searchText)),this.filterSetting&&(e=this.filterHandler(e,this.filterSetting)),this.sortSetting.field&&(e=this.sortHandler(e,this.sortSetting)),this.usersResult=e.slice(),this.resetPagination(),this.cd.detectChanges()},e.prototype.sortHandler=function(e,t){if(t.field){var n=e.filter(function(e){return-1!==e[t.field]&&""!==e[t.field]}),o=r.i(s.differenceWith)(e,n,s.isEqual);return t.isDatetime?r.i(s.orderBy)(n,function(e){return new Date(e[t.field]).getTime()},[t.type]).concat(r.i(s.orderBy)(o,function(e){return new Date(e[t.field]).getTime()},[t.type])):r.i(s.orderBy)(n,[t.field],[t.type]).concat(r.i(s.orderBy)(o,[t.field],[t.type]))}},e.prototype.searchHandler=function(e,t){if(t)return r.i(s.filter)(e,function(e){return e.email.toLowerCase().includes(t.toLowerCase())||e.bussinessUnit.toLowerCase().includes(t.toLowerCase())})},e.prototype.cacheHandler=function(){this.sortSetting=this.filterCache&&this.filterCache.sort||{type:this.appConfig.SORT.TYPE.DESC,field:"dateInvited"},this.filterSetting=this.filterCache&&this.filterCache.filter,this.currentPage=this.filterCache&&this.filterCache.pagination||1,this.searchControl.setValue(this.searchText),this.cd.detectChanges()},e.prototype.saveFilterCache=function(){this.filterCacheService.cache$.next({sort:this.sortSetting,filter:this.filterSetting,pagination:this.currentPage})},e.prototype.getUserGroups=function(e){var t;return t=r.i(s.reduce)(e,function(e,t){return void 0===e&&(e=[]),t.bussinessUnit&&t.bussinessUnit.length>0&&e.push(t.bussinessUnit),e},[]),t=r.i(s.uniq)(t)},e.prototype.filterUser=function(e){this.filterSetting=e,this.currentPage=1,this.dataHandler()},e.prototype.filterHandler=function(e,t){var r=[];switch(t.type){case f.a.GROUP:r=this.filterByField(e,"bussinessUnit",t.content);break;case f.a.SCORE:r=this.filterByRange(e,"scorePts",t.content);break;case f.a.PERFORMANCE:r=this.filterByRange(e,"performance",t.content);break;case f.a.COMPLETION:r=this.filterByRange(e,"overallCompletion",t.content);break;default:r=e}return r},e.prototype.filterByField=function(e,t,n){return r.i(s.filter)(e,function(e){return n?e[t]===n:!e[t]})},e.prototype.filterByRange=function(e,t,n){return r.i(s.filter)(e,function(e){var r=0===n.start?-1:n.start;return Math.round(e[t])<=n.end&&Math.round(e[t])>=r})},e.prototype.redirectCreateUser=function(){this.router.navigate(["admin/user-management/new"])},e.prototype.redirectEditUser=function(e){this.router.navigate(["admin/user-management/edit",e])},e.prototype.redirectUserDetails=function(e){this.router.navigate(["admin/user-management",e])},e.prototype.getSortStyle=function(e){return{"fa-sort-asc":this.sortSetting.fieldName===e&&this.sortSetting.type===this.appConfig.SORT.TYPE.ASC,"fa-sort-desc":this.sortSetting.fieldName===e&&this.sortSetting.type===this.appConfig.SORT.TYPE.DESC}},e.prototype.isNoData=function(){return this.getShowUpUsers().length<=0},e.prototype.isPositiveNumber=function(e){return e>=0},e.prototype.checkAdminInternal=function(){this.authService.isAdminInternal()?this.isAdminInternal=!0:this.isAdminInternal=!1,this.cd.detectChanges()},e.prototype.exportCSV=function(){var e=this,t=this.exportedTitles.map(function(e){return e.title}),r=this.exportedTitles.map(function(e){return e.column}),n=[];this.users.forEach(function(t){n.push(e.getExportedUserData(t,r))});var o=y.unparse({fields:t,data:n}),i=document.createElement("a");i.href="data:text/csv;charset=utf-8,%EF%BB%BF"+encodeURIComponent(o),i.target="_blank",i.download="users.csv",i.click()},e.prototype.getExportedUserData=function(e,t){var r=this;return t.map(function(t){if("dateInstalled"===t)return r.datePipe.transform(e[t],r.appConfig.FORMAT.FULL_DATE_FORMAT);if(""===e[t])return e[t].toString();if(isNaN(e[t]))return e[t]||"";var n="";return"overallCompletion"===t&&(n="%"),e[t]>=0?""+Math.round(e[t])+n:""})},e}();_=v([r.i(l.a)(),r.i(n._1)({selector:"user-management",template:r("a6Vj"),styles:[r("6wr9")],changeDetection:n._2.OnPush}),b("design:paramtypes",["function"==typeof(x=void 0!==d.a&&d.a)&&x||Object,"function"==typeof(O=void 0!==p.a&&p.a)&&O||Object,"function"==typeof(S=void 0!==n.e&&n.e)&&S||Object,"function"==typeof(C=void 0!==u.a&&u.a)&&C||Object,"function"==typeof(R=void 0!==o.c&&o.c)&&R||Object,"function"==typeof(A=void 0!==m.a&&m.a)&&A||Object,"function"==typeof(j=void 0!==h.a&&h.a)&&j||Object,"function"==typeof(w=void 0!==c.a&&c.a)&&w||Object,"function"==typeof(I=void 0!==a.j&&a.j)&&I||Object,"function"==typeof(P=void 0!==g.a&&g.a)&&P||Object])],_);var x,O,S,C,R,A,j,w,I,P},"4qEp":function(e,t,r){"use strict";var n=r("3j3K"),o=r("NVOs"),i=r("LF3a"),a=r("EYWE");r.d(t,"a",function(){return l});var s=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.alertService=e,this.GameContentService=t,this.formBuilder=r,this.success=!1,this.cancelUpdateGameContent=new n.j,this.onUpdateGameContentSuccess=new n.j}return e.prototype.ngOnInit=function(){this.createAddGameContentForm()},e.prototype.createAddGameContentForm=function(){this.updateGameContentForm=this.formBuilder.group({gameTemplateType:["",o.b.required]})},e.prototype.updateGameContent=function(){var e=this;this.updateGameContentForm.valid&&(this.model=Object.assign({},this.updateGameContentForm.value),this.GameContentService.updateGameContent(this.gameContentId,this.model.gameTemplateType).subscribe(function(t){e.onUpdateGameContentSuccess.emit(),e.updateGameContentForm.reset(),e.alertService.success("Updated game content successfully")},function(t){e.alertService.error(t._body)}))},e.prototype.cancel=function(){this.cancelUpdateGameContent.emit(!1)},e.prototype.hasErrorAndTouched=function(e){return!(!this.updateGameContentForm.get(e).hasError("required")||!this.updateGameContentForm.get(e).touched)},e}();s([r.i(n.f)(),c("design:type",Array)],l.prototype,"gameTemplateTypes",void 0),s([r.i(n.f)(),c("design:type",String)],l.prototype,"companyGuid",void 0),s([r.i(n.f)(),c("design:type",Number)],l.prototype,"gameContentId",void 0),s([r.i(n._7)(),c("design:type",Object)],l.prototype,"cancelUpdateGameContent",void 0),s([r.i(n._7)(),c("design:type",Object)],l.prototype,"onUpdateGameContentSuccess",void 0),l=s([r.i(n._1)({selector:"update-game-content",template:r("IFnC"),styles:[r("2p4D")]}),c("design:paramtypes",["function"==typeof(d=void 0!==a.a&&a.a)&&d||Object,"function"==typeof(p=void 0!==i.a&&i.a)&&p||Object,"function"==typeof(u=void 0!==o.c&&o.c)&&u||Object])],l);var d,p,u},"5/YF":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"57LS":function(e,t){e.exports='
\r\n
\r\n
\r\n

{{ \'DASHBOARD.ACTIVE_USER\' | translate }}

\r\n\r\n \x3c!-- Date picker --\x3e\r\n \r\n
\r\n
\r\n\r\n \x3c!-- Loading icon --\x3e\r\n
\r\n \r\n
\r\n\r\n \x3c!-- Active user chart --\x3e\r\n
\r\n\r\n
\r\n {{ \'DASHBOARD.NO_DATA_AVAILABLE\' | translate }}\r\n
\r\n
\r\n
\r\n'},"5tmV":function(e,t){e.exports='
\r\n \r\n
\r\n'},"5vc+":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"5xMp":function(e,t){e.exports=""},"6DAr":function(e,t,r){"use strict";var n=r("3j3K"),o=r("PJh5"),i=(r.n(o),r("M4fF")),a=(r.n(i),r("OjAQ")),s=r("H9mM"),c=r("RXAk"),l=r("XfTH"),d=r("BrtQ"),p=r("YVC+");r.d(t,"a",function(){return m});var u=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},f=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},m=function(){function e(e,t,r,n,i,a,s){this.appConfig=e,this.filterService=t,this.appState=r,this.dashboardService=n,this.el=i,this.cd=a,this.loadingService=s,this.dateRangeSetting=this.appConfig.DATE_PICKER_SETTING,this.selectedDate={startDate:o.utc().subtract(this.dateRangeSetting.RANGE_1,this.dateRangeSetting.RANGE_BY_MONTH).startOf(this.dateRangeSetting.DAY),endDate:o.utc().endOf(this.dateRangeSetting.DAY)},this.groups=[]}return e.prototype.ngOnInit=function(){var e=this;this.company$=this.appState.company$.subscribe(function(t){t&&!r.i(i.isEqual)(t,e.company)&&(e.company=t,e.groups=[],e.initFilter())})},e.prototype.initFilter=function(){var e=this;this.filter$&&this.filter$.unsubscribe(),this.filter$=this.filterService.filter$.subscribe(function(t){e.company&&e.company.id&&t&&(e.groups=t||[],e.getActiveUser())})},e.prototype.getActiveUser=function(){var e=this;if(this.company){var t=this.selectedDate.startDate.valueOf(),r=this.selectedDate.endDate.valueOf(),n=this.getTimezoneOffset();t&&r&&(this.loadingService.request$.next(!0),this.dashboardService.getActiveUser(this.company.id,t,r,n,this.groups).subscribe(function(t){e.activeUsers=e.generateActiveUser(t),e.drawChart(),e.loadingService.response$.next(!0),e.cd.detectChanges()},function(){e.activeUsers=[],e.loadingService.response$.next(!0),e.cd.detectChanges()}))}},e.prototype.generateActiveUser=function(e){for(var t=this.selectedDate.startDate,r=this.selectedDate.endDate,n=[],o=t.clone();o.diff(r,"days")<=0;o.add(1,"days")){var i=o.diff(r,"days"),a="MM-DD-YYYY";i<0?n.push(this.getActiveUserData(e,o)):0===i&&o.format(a)===r.format(a)&&n.push(this.getActiveUserData(e,o))}return n},e.prototype.getActiveUserData=function(e,t){for(var r="MM-DD-YYYY",n={dateTime:t.format(r),userActive:0},i=0,a=e.length;i=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function e(e){this.authService=e}return e.prototype.ngOnInit=function(){this.authService.login()},e}();s=i([r.i(n._1)({selector:"login",template:r("D3CN"),styles:[r("UwIz")],changeDetection:n._2.OnPush}),a("design:paramtypes",["function"==typeof(c=void 0!==o.a&&o.a)&&c||Object])],s);var c},"6wr9":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"p{margin:0}.user-management{background-color:transparent}.user-management /deep/ .no-data{margin-bottom:5px;margin-top:20px}.user-management.hidden{visibility:hidden}.user-management__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:25px 30px 15px}.user-management__title{font-size:25px;margin:0}.user-management__content,.user-management__footer{padding:15px 30px;margin-bottom:0}.user-management__content-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.user-management__filter-box{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.user-management__search{width:auto;position:relative;margin-left:20px}.user-management__search-control{width:350px;border-radius:unset;padding-right:30px}.user-management__search-control::-webkit-input-placeholder{font-size:15px;color:#ccc}.user-management__search-control:-ms-input-placeholder{font-size:15px;color:#ccc}.user-management__search-control::placeholder{font-size:15px;color:#ccc}.user-management__search-icon{background:transparent;border:none;position:absolute;padding:0;top:45%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:10px;font-size:20px;z-index:10}.user-management__user-table{margin-top:20px}.user-management__total-user{font-size:20px;padding-right:20px;border-right:1px solid #a59e9e}.user-management__export-btn{color:#fff;background-color:#6c757d;border-color:#6c757d}.user-management__export-btn:hover{background-color:#5a6268;border-color:#545b62}.user-management__user-interaction{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:20px}.user-management .table__cell.email,.user-management .table__header-item.email{-webkit-box-flex:1;-ms-flex:1;flex:1}.user-management .table__cell.rank,.user-management .table__header-item.rank{width:7%}.user-management .table__cell.business-unit,.user-management .table__cell.score,.user-management .table__header-item.business-unit,.user-management .table__header-item.score{width:8%}.user-management .table__cell.improved,.user-management .table__header-item.improved{width:10%}.user-management .table__cell.performance,.user-management .table__header-item.performance{width:8%}.user-management .table__cell.completion,.user-management .table__cell.date-last-used,.user-management .table__cell.installed-date,.user-management .table__header-item.completion,.user-management .table__header-item.date-last-used,.user-management .table__header-item.installed-date{width:10%}.user-management .table__cell.edit-btn,.user-management .table__header-item.edit-btn{width:8%}.table__header{border-bottom:1px solid #dadada}.table__header-title{word-break:break-all;word-break:break-word}.table__cell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table__header,.table__row{display:-webkit-box;display:-ms-flexbox;display:flex}.table__cell,.table__header-item{padding:10px 5px;width:10%}.table__header-item{font-weight:700;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#303030}.table__header-item:hover{cursor:pointer}.table__header-title{margin-right:2px}.table__header-hint{color:#d0d0d0}.table__header-sort{margin-left:5px}.table__row{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.table__row:nth-child(2n){background:#f1f1f1}.table__row:nth-child(odd){background:transparent}.table__row:hover{cursor:pointer;background:#e9f1ff}.table__row:last-child{border-bottom:1px solid #dadada}",""]),e.exports=e.exports.toString()},"6zEJ":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"77of":function(e,t,r){"use strict";var n=r("3j3K"),o=r("NVOs"),i=r("i76y"),a=r("EYWE");r.d(t,"a",function(){return l});var s=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.alertService=e,this.badgeService=t,this.formBuilder=r,this.cancelAddNewBadge=new n.j,this.onAddNewBadgeSuccess=new n.j}return e.prototype.ngOnInit=function(){this.createAddBadgeForm()},e.prototype.createAddBadgeForm=function(){this.addBadgeForm=this.formBuilder.group({badgeContentfulId:["",o.b.required],moduleId:["",o.b.compose([o.b.required,o.b.min(1),o.b.pattern("[0-9]*")])]})},e.prototype.addBadge=function(){var e=this;this.addBadgeForm.valid&&(this.model=Object.assign({},this.addBadgeForm.value),this.badgeService.addBadge(this.companyGuid,this.model).subscribe(function(t){e.onAddNewBadgeSuccess.emit(),e.addBadgeForm.reset(),e.alertService.success("Added badge successfully")},function(t){e.alertService.error(t._body)}))},e.prototype.cancel=function(){this.cancelAddNewBadge.emit(!1)},e.prototype.hasErrorAndTouched=function(e){return!(!this.addBadgeForm.get(e).hasError("required")||!this.addBadgeForm.get(e).touched)},e.prototype.wrongPatternAndTouched=function(e){return!(!this.addBadgeForm.get(e).hasError("pattern")||!this.addBadgeForm.get(e).touched)},e}();s([r.i(n.f)(),c("design:type",String)],l.prototype,"companyGuid",void 0),s([r.i(n._7)(),c("design:type",Object)],l.prototype,"cancelAddNewBadge",void 0),s([r.i(n._7)(),c("design:type",Object)],l.prototype,"onAddNewBadgeSuccess",void 0),l=s([r.i(n._1)({selector:"add-badge",template:r("8C28"),styles:[r("Ka0C")]}),c("design:paramtypes",["function"==typeof(d=void 0!==a.a&&a.a)&&d||Object,"function"==typeof(p=void 0!==i.a&&i.a)&&p||Object,"function"==typeof(u=void 0!==o.c&&o.c)&&u||Object])],l);var d,p,u},"7F+y":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"7HOM":function(e,t,r){"use strict";var n=r("3j3K"),o=r("2Je8"),i=r("NVOs"),a=r("DUFE"),s=r("kjv0"),c=r("r9NG"),l=r("oP4h"),d=r("BARm"),p=r("ykxA"),u=r("Mlcj"),f=r("jYhn"),m=r("ea0H"),h=r("cHj/"),g=r("Mx/I"),v=r("phDS");r.d(t,"a",function(){return S});var b=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},y=[s.a,c.a,d.a,p.a,f.a,g.a,v.a],_=[o.c,i.a,i.f,i.f,a.a,a.b,a.c],x=[l.a],O=[u.a,m.a,h.a],S=function(){function e(){}return e}();S=b([r.i(n.b)({imports:_.slice(),declarations:y.concat(x),providers:O.slice(),exports:y.concat(x,[i.a,i.f])})],S)},"7O4y":function(e,t){e.exports='
\r\n
\r\n {{ \'COMPANY_MANAGEMENT.PROGRAM_TITLE\' | translate }}\r\n\r\n
\r\n \x3c!-- Program form --\x3e\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n\r\n\x3c!-- Modal for adding program --\x3e\r\n\r\n \x3c!-- Show list of program --\x3e\r\n \r\n\r\n \x3c!-- Modal footer --\x3e\r\n \r\n\r\n\r\n'},"7akE":function(e,t){},"7ctx":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},"7k6p":function(e,t,r){"use strict";var n=r("3j3K"),o=r("PJh5"),i=(r.n(o),r("ruBG")),a=(r.n(i),r("BrtQ")),s=r("Kckg");r.d(t,"a",function(){return d});var c=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(){function e(e){this.appConfig=e,this.maxDate=new Date,this.dateRangeSetting=this.appConfig.DATE_PICKER_SETTING,this.selectedDate={startDate:o.utc().subtract(this.dateRangeSetting.RANGE_1,this.dateRangeSetting.RANGE_BY_DAY),endDate:o.utc()},this.selectDate=new n.j,this.dateRangeConfig={showWeekNumbers:!1}}return e.prototype.ngOnInit=function(){this.bsRangeValue=[new Date(s.a.convertUTCToLocal(this.selectedDate.startDate,"YYYY-MM-DD HH:mm:ss")),new Date(s.a.convertUTCToLocal(this.selectedDate.endDate,"YYYY-MM-DD HH:mm:ss"))]},e.prototype.selectedDatePicker=function(e){!e||isNaN(e[0].getTime())||isNaN(e[1].getTime())||(this.selectedDate.startDate=o.utc(o(e[0]).format(this.appConfig.DATE_FORMAT)).startOf("day"),this.selectedDate.endDate=o.utc(o(e[1]).format(this.appConfig.DATE_FORMAT)).endOf("day")),this.selectDate.emit(this.selectedDate)},e.prototype.getFormatDate=function(e){return e.format("MMMM Do, YYYY")},e}();c([r.i(n.f)(),l("design:type","function"==typeof(p=void 0!==i.DateRange&&i.DateRange)&&p||Object)],d.prototype,"selectedDate",void 0),c([r.i(n._7)(),l("design:type","function"==typeof(u=void 0!==n.j&&n.j)&&u||Object)],d.prototype,"selectDate",void 0),d=c([r.i(n._1)({selector:"site-daterangepicker",template:r("cjao"),styles:[r("cQ0/")],changeDetection:n._2.OnPush}),l("design:paramtypes",["function"==typeof(f=void 0!==a.a&&a.a)&&f||Object])],d);var p,u,f},"7uXn":function(e,t){e.exports='
\r\n

Add New Game

\r\n\r\n
\r\n\r\n
\r\n \r\n \r\n Game Name is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n External Game Id is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n RolePlay Contentful Id is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n \r\n TrainingSession Id is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n Score Multiplier is required\r\n \r\n \r\n Please insert number for Score Multiplier\r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n Chat Mapper Location is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n Sort Order is required\r\n \r\n \r\n Please insert number for Sort Order\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n \r\n \r\n {{gameTemplateType}}\r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n
'},"8C28":function(e,t){e.exports='
\r\n

Add New Badge

\r\n\r\n
\r\n \r\n
\r\n \r\n \r\n Badge contentful Id is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n Module Id is required\r\n \r\n \r\n Please insert number for Module Id\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n
'},"8V66":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".user-average-completion__item{margin-bottom:20px}.user-average-completion__item:last-child{margin-bottom:0}",""]),e.exports=e.exports.toString()},"8Vj6":function(e,t){e.exports='\x3c!-- Topbar header - style you can find in pages.scss --\x3e\r\n
\r\n \r\n
\r\n\x3c!-- End Topbar header --\x3e\r\n'},"8ZMI":function(e,t){e.exports='
\r\n
\r\n
Average BPQ
\r\n

Skill Proficiency

\r\n
\r\n
\r\n
'},"8aMI":function(e,t,r){"use strict";var n=r("3j3K"),o=r("5oXY"),i=r("H9mM"),a=r("UNfy"),s=r("EYWE"),c=r("OjAQ"),l=r("QzLw"),d=r("ib0R");r.d(t,"a",function(){return f});var p=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(){function e(e,t,r,n,o,i,a,s){this.router=e,this.accountService=t,this.alertService=r,this.route=n,this.cd=o,this.appState=i,this.breakcrumbService=a,this.filterCacheService=s,this.isLoading=!1,this.isUserLoading=!1}return e.prototype.ngOnInit=function(){var e=this;this.route$=this.route.params.subscribe(function(t){t.id?e.initEditMode(t.id):e.initCreateMode()})},e.prototype.initCreateMode=function(){this.formTitle="USER_MANAGEMENT.CREATE_TITLE",this.formBtnText="USER_MANAGEMENT.ADD_USER_BTN",this.initPageInfor(),this.cd.detectChanges()},e.prototype.initEditMode=function(e){this.userExternalId=e,this.getUser(),this.formTitle="USER_MANAGEMENT.EDIT_TITLE",this.formBtnText="USER_MANAGEMENT.EDIT_USER_BTN",this.initPageInfor("USER_MANAGEMENT.EDIT_TITLE"),this.cd.detectChanges()},e.prototype.initPageInfor=function(e){var t=e||"USER_MANAGEMENT.CREATE_TITLE",r={title:"USER_MANAGEMENT.TITLE",urls:[{title:"USER_MANAGEMENT.TITLE"},{title:t}]};this.breakcrumbService.setting$.next(r)},e.prototype.save=function(e){this.userExternalId?this.updateUser(e):this.createUser(e)},e.prototype.getUser=function(){var e=this;this.userExternalId&&(this.isUserLoading=!0,this.accountService.getRegisterUserWithPrograms(this.userExternalId).subscribe(function(t){e.user=t,e.isUserLoading=!1,e.cd.detectChanges()},function(){e.isUserLoading=!1,e.cd.detectChanges()}))},e.prototype.createUser=function(e){var t=this;this.isLoading=!0,this.accountService.registerUserWithProgram(e).subscribe(function(){t.router.navigate(["admin/user-management"]),t.alertService.success("Create user successfully!"),t.isLoading=!1,t.cd.detectChanges()},function(e){t.alertService.error(e._body||"Failed to create user!"),t.isLoading=!1,t.cd.detectChanges()})},e.prototype.updateUser=function(e){var t=this;this.isLoading=!0,this.accountService.updateUser(this.userExternalId,e).subscribe(function(){t.alertService.success("Updated user successfully!"),t.getUser(),t.isLoading=!1,t.cd.detectChanges()},function(){t.alertService.error("Failed to update user!"),t.isLoading=!1,t.cd.detectChanges()})},e.prototype.onPopState=function(){this.userExternalId&&this.filterCacheService.isCached$.next(!0)},e}();p([r.i(n._4)("window:popstate",["$event"]),u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],f.prototype,"onPopState",null),f=p([r.i(c.a)(),r.i(n._1)({selector:"account-registration",template:r("k5YK"),styles:[r("EQlm")],changeDetection:n._2.OnPush}),u("design:paramtypes",["function"==typeof(m=void 0!==o.c&&o.c)&&m||Object,"function"==typeof(h=void 0!==a.a&&a.a)&&h||Object,"function"==typeof(g=void 0!==s.a&&s.a)&&g||Object,"function"==typeof(v=void 0!==o.b&&o.b)&&v||Object,"function"==typeof(b=void 0!==n.e&&n.e)&&b||Object,"function"==typeof(y=void 0!==i.a&&i.a)&&y||Object,"function"==typeof(_=void 0!==l.a&&l.a)&&_||Object,"function"==typeof(x=void 0!==d.a&&d.a)&&x||Object])],f);var m,h,g,v,b,y,_,x},"8hLQ":function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n;!function(e){e[e.GROUP_ALL=0]="GROUP_ALL",e[e.GROUP_TOP=1]="GROUP_TOP",e[e.GROUP_AWESOME=2]="GROUP_AWESOME",e[e.GROUP_GREATE=3]="GROUP_GREATE",e[e.GROUP_GOOD=4]="GROUP_GOOD",e[e.GROUP_FAIL=5]="GROUP_FAIL"}(n||(n={}))},"9FVW":function(e,t){e.exports='
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
'},"9uEn":function(e,t){e.exports='
\r\n

Update Module

\r\n\r\n
\r\n\r\n
\r\n \r\n \r\n Module Name is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n Module Description is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n Sort order is required\r\n \r\n \r\n Please insert number for sort order\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n \r\n Program Id is required\r\n \r\n
\r\n \r\n
\r\n \r\n \r\n External Module Id is required\r\n \r\n
\r\n\r\n \r\n\r\n
\r\n \r\n \r\n
\r\n
'},A0AL:function(e,t,r){"use strict";var n=r("3j3K"),o=r("vQr0"),i=r("BrtQ"),a=r("H9mM");r.d(t,"a",function(){return l});var s=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.httpWrapperService=e,this.appConfig=t,this.appState=r}return e.prototype.getGames=function(){var e={companyGuid:this.appState.company.companyGuid};return this.httpWrapperService.get(this.appConfig.API.getGamesByCompany,e)},e.prototype.addGame=function(e,t){var r={name:t.name,sortOrder:t.sortOrder,companyGuid:e,externalGameId:t.externalGameId,rolePlayContentfulId:t.rolePlayContentfulId,trainingSessionId:t.trainingSessionId,scoreMultiplier:t.scoreMultiplier,shouldScore:t.shouldScore,chatmapperLocation:t.chatmapperLocation};return this.httpWrapperService.post(this.appConfig.API.postGame,r)},e.prototype.updateGame=function(e,t,r){var n={id:e,name:r.name,sortOrder:r.sortOrder,companyGuid:t,externalGameId:r.externalGameId,rolePlayContentfulId:r.rolePlayContentfulId,scoreMultiplier:r.scoreMultiplier,shouldScore:r.shouldScore,chatmapperLocation:r.chatmapperLocation};return this.httpWrapperService.put(this.appConfig.API.putGame,n,{id:e})},e}();l=s([r.i(n.g)(),c("design:paramtypes",["function"==typeof(d=void 0!==o.a&&o.a)&&d||Object,"function"==typeof(p=void 0!==i.a&&i.a)&&p||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object])],l);var d,p,u},A4Jv:function(e,t){e.exports='
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!-- User groups --\x3e\r\n \r\n \r\n \r\n \r\n\r\n \x3c!-- Average score for all groups --\x3e\r\n \r\n \r\n \r\n \r\n \r\n
{{ titleSetting?.ALL_USER | translate }}\r\n
\r\n \r\n
\r\n
\r\n {{ userGroupStatistic?.totalUsers }}\r\n
{{ groupUserSetting?.fieldSpecs[groupField][\'title\'] }}{{ groupUserSetting?.fieldSpecs[groupField][\'value\'] }}
\r\n {{ titleSetting?.AVERAGE_SCORE | translate }}\r\n {{ userGroupStatistic?.averageScore }}
\r\n
\r\n
\r\n
\r\n'},A6nZ:function(e,t){},AAMm:function(e,t,r){"use strict";var n=r("3j3K"),o=r("TfWX"),i=(r.n(o),r("vQr0")),a=r("BrtQ"),s=r("qGs6");r.d(t,"a",function(){return d});var c=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(){function e(e,t,r){this.authService=e,this.appConfig=t,this.httpService=r,this.userId$=new o.BehaviorSubject(null)}return e.prototype.getUsers=function(e){var t=this.authService&&this.authService.userProfile&&this.authService.userProfile.isDemo;return this.httpService.get(this.appConfig.API.getAllUser,{companyId:e,isDemo:t})},e.prototype.getUserOverview=function(e){var t=this.authService&&this.authService.userProfile&&this.authService.userProfile.isDemo;return this.httpService.get(this.appConfig.API.getUserOverview,{userGuid:e,isDemo:t})},e.prototype.getUserModuleCompletion=function(e){return this.httpService.get(this.appConfig.API.getUserModuleCompletion,{userGuid:e})},e.prototype.getUserModulePerformance=function(e){return this.httpService.get(this.appConfig.API.getUserModulePerformance,{userGuid:e})},e.prototype.getUserSkillsBreakdown=function(e){return this.httpService.get(this.appConfig.API.getUserSkillsBreakdown,{userGuid:e})},e}();d=c([r.i(n.g)(),l("design:paramtypes",["function"==typeof(p=void 0!==s.a&&s.a)&&p||Object,"function"==typeof(u=void 0!==a.a&&a.a)&&u||Object,"function"==typeof(f=void 0!==i.a&&i.a)&&f||Object])],d);var p,u,f},Ag5U:function(e,t,r){"use strict";var n=r("3j3K"),o=r("M4fF"),i=(r.n(o),r("rCTf")),a=(r.n(i),r("PJh5")),s=(r.n(a),r("8A5H")),c=r("H9mM"),l=r("BrtQ"),d=r("MCzZ"),p=r("Kckg"),u=r("EYWE");r.d(t,"a",function(){return h});var f=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},m=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},h=function(){function e(e,t,r,o,i,s,c){this.appConfig=e,this.el=t,this.cd=r,this.appState=o,this.dashboardService=i,this.alertService=s,this.translateService=c,this.isLoaded=!1,this.isLoadedChange=new n.j,this.activeUsers=[],this.dateRangeSetting=this.appConfig.DATE_PICKER_SETTING,this.selectedDate={startDate:a.utc().subtract(this.dateRangeSetting.RANGE_1,this.dateRangeSetting.RANGE_BY_MONTH).startOf(this.dateRangeSetting.DAY),endDate:a.utc().endOf(this.dateRangeSetting.DAY)},this.isReload=!1}return e.prototype.ngOnInit=function(){var e=this;this.getActiveUsersData(),this.translateService.onLangChange.subscribe(function(){e.drawChart()})},e.prototype.getActiveUsersData=function(){var e=this;this.isReload||(this.isLoaded=!1,this.isLoadedChange.emit(this.isLoaded)),this.activeUsers=[],setTimeout(function(){e.chart&&e.chart.clear()},100),i.Observable.combineLatest(this.appState.company$).filter(function(e){return r.i(o.every)(e,function(e){return!!e})}).switchMap(function(t){var r=t[0],n=e.selectedDate.startDate.valueOf(),o=e.selectedDate.endDate.valueOf();return e.dashboardService.getActiveUsers(r.id,n,o)}).subscribe(function(t){r.i(o.isEmpty)(t)||(e.activeUsers=t),setTimeout(function(){e.drawChart()},100),e.isReload?e.isReload=!1:(e.isLoaded=!0,e.isLoadedChange.emit(e.isLoaded)),e.cd.detectChanges()},function(t){e.isReload?(e.isReload=!1,e.alertService.error(e.appConfig.MESSAGES.FAILED_LOADING)):(e.isLoaded=!0,e.isLoadedChange.emit(e.isLoaded)),e.cd.detectChanges()})},e.prototype.drawChart=function(){var e=this,t=this.getValuesByField(this.activeUsers,"date"),r=this.getValuesByField(this.activeUsers,"value"),n=this.getChartOptions(t,r);this.chart=echarts.init(this.el.nativeElement.querySelector("#active-user-chart")),this.chart.setOption(n,!0,function(){e.resizeChart()})},e.prototype.getValuesByField=function(e,t){var n=this;return r.i(o.map)(e,function(e){return"date"===t?p.a.convertUTCToLocal(e[t],n.appConfig.DATE_FORMAT):e[t]})},e.prototype.getChartOptions=function(e,t){var r=this.appConfig.CHART_SETTING;return{dataZoom:{show:!0},tooltip:{trigger:r.OTHERS.TRIGGER},color:[this.appConfig.COLOR.MEDIUM_SEA_GREEN],xAxis:[{type:r.TYPES.CATEGORY,data:e}],yAxis:[{type:r.TYPES.VALUE,name:this.translateService.instant(r.TITLES.NUMBER_USERS)}],grid:{backgroundColor:"#fff"},series:[{name:this.translateService.instant(r.TITLES.ACTIVE_USERS),type:r.TYPES.BAR,data:t}]}},e.prototype.resizeChart=function(){var e=this;setTimeout(function(){e.chart.resize()},100)},e.prototype.onResize=function(){this.resizeChart()},e.prototype.selectDate=function(e){this.selectedDate.startDate=e.startDate,this.selectedDate.endDate=e.endDate,this.isReload=!0,this.getActiveUsersData()},e}();f([r.i(n.f)(),m("design:type",Boolean)],h.prototype,"isLoaded",void 0),f([r.i(n._7)(),m("design:type","function"==typeof(g=void 0!==n.j&&n.j)&&g||Object)],h.prototype,"isLoadedChange",void 0),h=f([r.i(n._1)({selector:"active-user",template:r("57LS"),styles:[r("xen3")],changeDetection:n._2.OnPush}),m("design:paramtypes",["function"==typeof(v=void 0!==l.a&&l.a)&&v||Object,"function"==typeof(b=void 0!==n.d&&n.d)&&b||Object,"function"==typeof(y=void 0!==n.e&&n.e)&&y||Object,"function"==typeof(_=void 0!==c.a&&c.a)&&_||Object,"function"==typeof(x=void 0!==d.a&&d.a)&&x||Object,"function"==typeof(O=void 0!==u.a&&u.a)&&O||Object,"function"==typeof(S=void 0!==s.c&&s.c)&&S||Object])],h);var g,v,b,y,_,x,O,S},"B7v+":function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},BARm:function(e,t,r){"use strict";var n=r("3j3K"),o=r("NVOs");r.d(t,"a",function(){return s});var i=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function e(){}return e.prototype.ngOnInit=function(){},e}();i([r.i(n.f)(),a("design:type",String)],s.prototype,"label",void 0),i([r.i(n.f)(),a("design:type","function"==typeof(c=void 0!==o.d&&o.d)&&c||Object)],s.prototype,"control",void 0),i([r.i(n.f)(),a("design:type",String)],s.prototype,"nameControl",void 0),s=i([r.i(n._1)({selector:"input-wrapper",template:r("RK/u"),styles:[r("RsT8")]}),a("design:paramtypes",[])],s);var c},BBgL:function(e,t,r){"use strict";var n=r("3j3K"),o=r("2Je8"),i=r("NVOs"),a=r("b8Rh"),s=r("hC9I"),c=r("PhSV");r.d(t,"a",function(){return u});var l=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},d=[o.c,a.a.forRoot(),i.a,i.f],p=[s.a,c.a],u=function(){function e(){}return e}();u=l([r.i(n.b)({imports:d.slice(),declarations:p.slice(),exports:p.slice()})],u)},BaW1:function(e,t){e.exports='
\r\n \x3c!-- Header --\x3e\r\n
\r\n

\r\n \r\n \x3c!-- --\x3e\r\n {{ user?.fullName }}\r\n

\r\n\r\n \r\n
\r\n\r\n \x3c!-- Body --\x3e\r\n
\r\n
\r\n \x3c!-- Rank and played minutes --\x3e\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n \x3c!-- Overall completion --\x3e\r\n
\r\n \r\n
\r\n\r\n \x3c!-- Overall performance --\x3e\r\n
\r\n \r\n
\r\n
\r\n\r\n \x3c!-- Profile overview --\x3e\r\n
\r\n
\r\n

User ID:

\r\n

{{ user?.userId }}

\r\n
\r\n
\r\n

Email:

\r\n

{{ user?.email }}

\r\n
\r\n
\r\n

Date Installed:

\r\n

{{ user?.dateInstalled | date:\'dd/MM/yy\' }}

\r\n
\r\n
\r\n

Username:

\r\n

{{ user?.userName }}

\r\n
\r\n
\r\n

Business Unit:

\r\n

{{ user?.bussinessUnit }}

\r\n
\r\n
\r\n

Expiration Date:

\r\n

{{ user?.expirationDate | date:\'dd/MM/yy\' }}

\r\n
\r\n
\r\n
\r\n
\r\n'},BjuZ:function(e,t){e.exports='

All Training Sessions

\r\n\r\n
\r\n

{{errorMessage}}

\r\n
\r\n\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \x3c!-- Table body here --\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
{{ data }}\r\n \r\n
{{ session.id }}{{ session.boostModuleId }}{{ session.sortOrder }}\r\n \r\n \r\n \r\n
\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n'},Bpp9:function(e,t){e.exports='
\r\n
\r\n
\r\n
\r\n'},BrtQ:function(e,t,r){"use strict";var n=r("3j3K"),o=r("kZql");r.d(t,"a",function(){return a});var i=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=function(){function e(){this.APP_ROOT=o.a.APP_ROOT,this.API={ROOT_URL:o.a.API_ROOT,LOCALE:o.a.API_LOCALE,clientSecret:"/api/"+o.a.API_V1+"/internal/Auth0/ClientSecrets",getAccount:"/api/"+o.a.API_V2+"/internal/Accounts/{:user_id}",getAccounts:"/api/"+o.a.API_V1+"/internal/Accounts",postAccounts:"/api/"+o.a.API_V1+"/internal/Accounts",postRegistryUsers:"/api/"+o.a.API_V2+"/internal/Accounts/registry_users",postAccountRegistration:"/api/"+o.a.API_V2+"/internal/Accounts/Registration",putAccounts:"/api/"+o.a.API_V2+"/internal/Accounts",getAccountRegistration:"/api/"+o.a.API_V2+"/internal/Accounts",postBulkRegister:"/api/"+o.a.API_V2+"/internal/Accounts/BulkRegister",getBadges:"/api/"+o.a.API_V1+"/internal/Badges",postBadge:"/api/"+o.a.API_V1+"/internal/Badges/AddNewBadge",putBadge:"/api/"+o.a.API_V1+"/internal/Badges/UpdateBadge",getCompanies:"/api/"+o.a.API_V1+"/internal/Companies",postCompany:"/api/"+o.a.API_V1+"/internal/Companies/AddNewCompany",putCompany:"/api/"+o.a.API_V1+"/internal/Companies/UpdateCompany",getModulesOfCompany:"/api/"+o.a.API_V2+"/internal/Companies/{:companyId}/Modules",getNonCustomModules:"/api/"+o.a.API_V2+"/internal/Companies/{:companyId}/NonCustomModules",getCompanyTrainingContents:"/api/"+o.a.API_V2+"/internal/Companies/{:companyId}/TrainingContents",putCompanyTraining:"/api/"+o.a.API_V2+"/internal/Companies/{:companyId}",updateCompanyMaxPossibleScore:"/api/"+o.a.API_V2+"/internal/Companies/{:companyId}",postCompanyWithData:"/api/"+o.a.API_V2+"/internal/Companies",deleteCompany:"/api/"+o.a.API_V2+"/internal/Companies",getContentfulSpaces:"/api/"+o.a.API_V2+"/internal/ContentfulSpaces",getContentfulLanguage:"/api/"+o.a.API_V2+"/internal/ContentfulSpaces/AvailableLocales",getProgramAndSeason:"/api/"+o.a.API_V2+"/internal/ContentfulSpaces/ProgramsAndSeasons",getProgramAndSeasonByCompany:"/api/"+o.a.API_V2+"/internal/ContentfulSpaces/Company",postContentfulSpace:"/api/"+o.a.API_V2+"/internal/ContentfulSpaces/New",getPrograms:"/api/"+o.a.API_V1+"/internal/Programs",postProgram:"/api/"+o.a.API_V1+"/internal/Programs/AddNewProgram",putProgram:"/api/"+o.a.API_V1+"/internal/Programs/UpdateProgram",getModules:"/api/"+o.a.API_V1+"/internal/Modules",getModuleById:"/api/"+o.a.API_V1+"/internal/Modules/GetById",postModule:"/api/"+o.a.API_V1+"/internal/Modules/AddNewModule",putModule:"/api/"+o.a.API_V1+"/internal/Modules/UpdateModule",getSkills:"/api/"+o.a.API_V1+"/internal/Skills",getSkillsByCompany:"/api/"+o.a.API_V1+"/internal/Skills/GetSkillsByCompanyGuid",postSkill:"/api/"+o.a.API_V1+"/internal/Skills/AddNewSkill",putSkill:"/api/"+o.a.API_V1+"/internal/Skills/UpdateSkill",getGames:"/api/"+o.a.API_V1+"/internal/Games",postGame:"/api/"+o.a.API_V1+"/internal/Games/AddNewGame",putGame:"/api/"+o.a.API_V1+"/internal/Games/UpdateGame",getGamesByCompany:"/api/"+o.a.API_V1+"/internal/Games/GetGameByCompanyId",getGameContents:"/api/"+o.a.API_V1+"/internal/GameContents",getGameContentsByCompany:"/api/"+o.a.API_V1+"/internal/GameContents/GetContentsByCompany",getGameContentsById:"/api/"+o.a.API_V1+"/internal/GameContents/GetContentsByGameId",postGameContent:"/api/"+o.a.API_V1+"/internal/GameContents/AddNewGameContent",putGameContent:"/api/"+o.a.API_V1+"/internal/GameContents/UpdateGameContent",getTrainingSessions:"/api/"+o.a.API_V1+"/internal/TrainingSessions",postTrainingSession:"/api/"+o.a.API_V1+"/internal/TrainingSessions/AddNewTrainingSession",putTrainingSession:"/api/"+o.a.API_V1+"/internal/TrainingSessions/UpdateTrainingSession",getTotalUserStat:"/api/"+o.a.API_V1+"/internal/Stats/TotalUser",getCompletedSessionStat:"/api/"+o.a.API_V1+"/internal/Stats/CompletedSession",getCompletedModuleStat:"/api/"+o.a.API_V1+"/internal/Stats/CompletedModule",getBoostUsefulStat:"/api/"+o.a.API_V1+"/internal/Stats/BoostUseful",getTrainingSessionStat:"/api/"+o.a.API_V1+"/internal/Stats/TrainingSession",getSkillProficiencyStat:"/api/"+o.a.API_V1+"/internal/Stats/SkillProficiency",getUserProficiencyStat:"/api/"+o.a.API_V1+"/internal/Stats/UserProficiency",deleteUserActivities:"/api/"+o.a.API_V1+"/internal/UserActivity",getUsers:"/api/"+o.a.API_V1+"/internal/Users",getUserModuleCompletion:"/api/"+o.a.API_V3+"/internal/UserDashboard/GetModuleCompletion",getUserOverview:"/api/"+o.a.API_V3+"/internal/UserDashboard/GetOverall",getUserModulePerformance:"/api/"+o.a.API_V3+"/internal/UserDashboard/GetModulePerformance",getUserSkillsBreakdown:"/api/"+o.a.API_V3+"/internal/UserDashboard/GetSkillsBreakdown",getDashboardOverview:"/api/"+o.a.API_V2+"/internal/OverallDashboard/GetOverall",getActiveUser:"/api/"+o.a.API_V2+"/internal/OverallDashboard/GetActiveUsersMetric",getDashboardModulesOverview:"/api/"+o.a.API_V2+"/internal/OverallDashboard/GetModulesOverall",getUserProficiency:"/api/"+o.a.API_V2+"/internal/OverallDashboard/GetUserScoreDistribution",getDashboardOverall:"/api/"+o.a.API_V3+"/internal/OverallDashboard/GetOverall",getUserCompletion:"/api/"+o.a.API_V3+"/internal/OverallDashboard/GetUserCompletion",getAverageOverallPeformance:"/api/"+o.a.API_V3+"/internal/OverallDashboard/GetAverageOverallPerformance",getScoreLeaderboard:"/api/"+o.a.API_V3+"/internal/OverallDashboard/GetOverallScoreLeaderBoard",getModuleAverageCompletion:"/api/"+o.a.API_V3+"/internal/OverallDashboard/GetAverageCompletionPerModule",getDashboardActiveUser:"/api/"+o.a.API_V3+"/internal/OverallDashboard/GetActiveUsers",getAverageOverallCompletion:"/api/"+o.a.API_V3+"/internal/OverallDashboard/GetAverageOverallCompletion",getModuleOverview:"/api/"+o.a.API_V2+"/internal/ModuleDashboard/GetOverall",getModuleUserProficiency:"/api/"+o.a.API_V2+"/internal/ModuleDashboard/GetUserScoreDistribution",getModuleCompletion:"/api/"+o.a.API_V2+"/internal/ModuleDashboard/GetCompletionMetric",getModuleOverall:"/api/"+o.a.API_V3+"/internal/ModuleDashboard/GetOverall",getModuleCompletionOverview:"/api/"+o.a.API_V3+"/internal/ModuleDashboard/GetCompletion",getModuleAverageScore:"/api/"+o.a.API_V3+"/internal/ModuleDashboard/GetAverageScore",getModuleAveragePerformance:"/api/"+o.a.API_V3+"/internal/ModuleDashboard/GetAveragePerformance",getModuleEpisodeCompletion:"/api/"+o.a.API_V3+"/internal/ModuleDashboard/GetEpisodeCompletion",getAverageOverallModuleCompletion:"/api/"+o.a.API_V3+"/internal/ModuleDashboard/GetAverageOverallCompletion",getUserOverall:"/api/"+o.a.API_V2+"/internal/UserDashboard/GetOverall",getUserInfo:"/api/"+o.a.API_V2+"/internal/UserDashboard/GetUserInfo",getModuleScores:"/api/"+o.a.API_V2+"/internal/UserDashboard/GetModuleScore",getUserSkills:"/api/"+o.a.API_V2+"/internal/UserDashboard/GetSkillBreakdown",getUserGroupInfo:"/api/"+o.a.API_V2+"/internal/UserDashboard/GetUserGroupInfo",getUserGroups:"/api/"+o.a.API_V2+"/internal/UserDashboard/GetUserGroups",searchUser:"/api/"+o.a.API_V2+"/internal/UserDashboard/SearchBy",getAllUser:"/api/"+o.a.API_V3+"/internal/UserDashboard/GetUsers",allowedCompanies:"/api/"+o.a.API_V2+"/internal/UserPermissions/{:user_id}/Companies",companiesGratedAccess:"/api/"+o.a.API_V2+"/internal/UserPermissions/Companies/GrantedAccess/{:user_id}",companiesRevokeAccess:"/api/"+o.a.API_V2+"/internal/UserPermissions/Companies/RevokeAccessBy/{:user_id}",getUserBusninessGroup:"/api/"+o.a.API_V2+"/internal/UserGroups/{:company_id}"},this.AUTH0={domain:o.a.domain,clientIdManagement:o.a.clientIdManagement,clientIdAuthentication:o.a.clientIdAuthentication,grantType:o.a.grantType,audienceManagement:o.a.audienceManagement,audienceAuthentication:o.a.audienceAuthentication,database:o.a.database,connection:o.a.connection,callbaclURL:o.a.callbackURL,roles:"https://boost/app-metadata/roles",userMetadata:"https://boost/user-metadata",API:{rootUrl:o.a.apiRootAuth0,tokenManageApi:"/oauth/token",listUsers:"/api/v2/users",usersByEmail:"/api/v2/users-by-email",user:"/api/v2/users/",linkUser:"/api/v2/users/{:user_uid}/identities"},TYPE:{US:"Auth0US",EU:"Auth0EU"}},this.VALIDATION_MESSAGES={invalidConfirmPassword:"The confirm password does't match",required:"<%= name %> is required.",invalidEmail:"Please enter a valid email address",minlength:"<%= name %> must be at least <%= errors.minlength.requiredLength %> characters long.",maxlength:"<%= name %> can not be more than <%= errors.maxlength.requiredLength %> characters long.",percentage:"The total must 100%",invalidNewPassword:"The new password should't same the old password"},this.VALIDATIONS={EMAIL_PATTERN:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/},this.ROLES={ADMIN_INTERNAL:"admin_internal",ADMIN:"admin",USER:"user"},this.PAGINATION={perPage:10},this.USER_MANAGEMENT={DEFAULT_SORT_FIELD:"RANK"},this.SORT={ASC:1,DESC:-1,NO_SORT:0,TYPE:{ASC:"asc",DESC:"desc"}},this.URLS={dashboard:"/admin/dashboard",userManagement:"/admin/user-management",companyManagement:"/admin/company-management",programManagement:"/admin/program-management",badgeManagement:"/admin/badge-management",moduleManagement:"/admin/module-management",gameManagement:"/admin/game-management"},this.DATE_FORMAT="MM/DD/YYYY",this.DASHBOARD_TITLE={INVITED_USERS:"DASHBOARD.INVITED_USERS",INSTALLED_USERS:"DASHBOARD.INSTALLED_USERS",INSTALLATION_PERCENTAGE:"DASHBOARD.INSTALLATION_PERCENTAGE",AVERAGE_SCORE:"DASHBOARD.AVERAGE_SCORE",PLAYING_USERS:"DASHBOARD.PLAYING_USERS",PLAYING_USERS_PERCENTAGE:"DASHBOARD.PLAYING_USERS_PERCENTAGE",OVERALL_SCORE:"USER_DETAIL.OVERALL_SCORE",OVERALL_RANKING:"USER_DETAIL.OVERALL_RANKING",MINUTES_PLAYED:"USER_DETAIL.MINUTES_PLAYED",COMPLETED_MODULE:"USER_DETAIL.COMPLETED_MODULE",USER_ID:"USER_DETAIL.USER_ID",USERNAME:"USER_DETAIL.USERNAME",BUSINESS_UNIT:"USER_DETAIL.BUSINESS_UNIT",INSTALLED_DAY:"USER_DETAIL.INSTALLED_DAY",EXPIRED_DATE:"USER_DETAIL.EXPIRED_DATE",MODULES_COMPLETE:"USER_DETAIL.MODULES_COMPLETE",GAME_PLAYED:"USER_DETAIL.GAME_PLAYED",BADGES_RECEIVED:"USER_DETAIL.BADGES_RECEIVED",USER_PROFICIENCY:"DASHBOARD.USER_PROFICIENCY",USER_SCORE_DISTRIBUTION:"DASHBOARD.USER_SCORE_DISTRIBUTION",DASHBOARD:"Dashboard",MODULES:"Modules",MODULE_DETAILS:"Module Details",USER_MANAGEMENT:"User Management",USER_DETAILS:"User Details",COMPANY_MANAGEMENT:"Company Management",USER_SEARCH:"User Search"},this.COLOR={btnLoginAuth0:"#8EBD3E",MEDIUM_SEA_GREEN:"#47ce69",TOMATO_RED:"#ff675b",LIGHT_SEA_GREEN:"#42b4b3",DIMGRAY:"#8a4b6c",MAROON_RED:"#7d1a19",YELLOW:"#ffc94c",ORANGE:"#ff962d",FAILED:"#f2695a",PASS:"#faaf43",GREAT:"#79c144",LIGHT_FAILED:"#ff9d9d",LIGHT_PASS:"#fedd89",LIGHT_GREAT:"#abde85"},this.GROUP_USER_TITLE={allUsers:"All Users",top:"Top 1% Users",pass3Star:"3 Star Pass Users",pass2Star:"2 Star Pass Users",pass1Star:"1 Star Pass Users",fail:"Fail Users"},this.RANK_SETTING={TITLE:{UNDER_20:"<20",FROM_20_TO_40:"20-40",FROM_40_TO_60:"40-60",FROM_60_TO_80:"60-80",FROM_80_TO_100:"80-100",ALL_USER:"USER_MANAGEMENT.ALL_USERS",AVERAGE_SCORE:"USER_MANAGEMENT.AVERAGE_SCORE"},RANK:{PERCENT_0:0,PERCENT_10:10,PERCENT_20:20,PERCENT_30:30,PERCENT_40:40,PERCENT_50:50,PERCENT_60:60,PERCENT_70:70,PERCENT_80:80,PERCENT_90:90,PERCENT_100:100}},this.CHART_SETTING={DEFAULT_VALUE:0,TITLES:{NUMBER_USERS:"DASHBOARD.NUMBER_USERS",ACTIVE_USERS:"DASHBOARD.ACTIVE_USER"},TYPES:{BAR:"bar",VALUE:"value",CATEGORY:"category"},OTHERS:{TRIGGER:"axis",MAX_HIGH_POINT:2}},this.IMAGES={ICON_TROPHY:"assets/images/icons/trophy-icon.png",ICON_BADGE:"assets/images/icons/badge-icon.png",ICON_TIMER:"assets/images/icons/timer-icon.png",ICON_PLAY:"assets/images/icons/play-icon.png"},this.DATE_PICKER_SETTING={RANGE_1:"1",RANGE_30:"30",RANGE_BY_DAY:"days",RANGE_BY_MONTH:"months",DATE_FORMAT:"MM/dd/yyyy",SHORT_DATE_FORMAT:"MM/dd/yy",DAY:"Day"},this.MESSAGES={FAILED_LOADING:"Something wrong. Failed loading."},this.DEBOUNCE_TIME_DEFAULT=200,this.REGEXP={EMAIL:/[^@]+@[^\.]+\..+/,LOCALE:/en|cn/},this.LOCALE={STORAGE_NAME:"locale",EN:"en",CN:"cn"},this.DEFAULT_VALUE={ZERO:0,WEEKEND_IDX:{SUNDAY:0,SATURDAY:6}},this.FORMAT={DECIMAL_NUMBER:"1.0-2",FULL_DATE_FORMAT:"dd/MM/yyyy"}}return e}();a=i([r.i(n.g)()],a)},BsUz:function(e,t){e.exports='
\r\n

Add New Module

\r\n\r\n
\r\n\r\n
\r\n \r\n \r\n Module Name is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n Module Description is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n Sort order is required\r\n \r\n \r\n Please insert number for sort order\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n \r\n Program Id is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n External Module Id is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n\r\n
\r\n'},Bvup:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},C0RT:function(e,t,r){"use strict";var n=r("3j3K"),o=r("Vmfx");r.n(o);r.d(t,"a",function(){return c});var i=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(){}return e.prototype.ngOnInit=function(){this.drawChart()},e.prototype.ngDoCheck=function(){this.drawChart()},e.prototype.drawChart=function(){var e=this;if(this.option.container){var t=this.getChartData("value"),r=this.getChartData("label"),n={labels:r,series:[t]},o=this.getChartOption(),i=this.option.width||30;new Chartist.Bar(this.option.container+" .horizontal-bar-chart",n,o).on("draw",function(t){"bar"===t.type&&t.element.attr({style:"stroke: "+(e.option.color||e.option.colorFn&&e.option.colorFn(t))+"; stroke-width: "+i+"px;"})})}},e.prototype.getChartData=function(e){return this.data&&this.data.map(function(t){return t[e]})},e.prototype.getChartOption=function(){var e=this.option.width||30,t=this.option.unit;return Chartist.plugins=Chartist.plugins||{},Chartist.plugins.ctBarLabels=function(r){return r=Chartist.extend({},r),function(r){r instanceof Chartist.Bar&&r.on("draw",function(r){if("bar"===r.type){var n=r.x2-50,o=r.y2,i=r.element.attr("ct:value");if("0"!==i&&e>10&&r.x2-r.x1>50){var a=new Chartist.Svg("text");return a.text(i+t),a.addClass("ct-barlabel"),a.attr({x:n,y:o,"text-anchor":"middle",dy:".35em",fill:"#fff"}),r.group.append(a)}}})}},{height:this.data.length*(1.5*e)+80,low:0,fullWidth:!0,horizontalBars:!0,plugins:[Chartist.plugins.tooltip(),Chartist.plugins.ctBarLabels()],axisX:{type:Chartist.FixedScaleAxis,showGrid:!0,high:100,low:0,onlyInteger:!0,ticks:[0,10,20,30,40,50,60,70,80,90,100]},axisY:{offset:30},chartPadding:i({top:0,bottom:0,right:0,left:50},this.option.padding)}},e}();a([r.i(n.f)(),s("design:type",Array)],c.prototype,"data",void 0),a([r.i(n.f)(),s("design:type","function"==typeof(l=void 0!==o.ChartOption&&o.ChartOption)&&l||Object)],c.prototype,"option",void 0),c=a([r.i(n._1)({selector:"horizontal-bar-chart",template:r("cs5t"),styles:[r("nYKd")],changeDetection:n._2.OnPush}),s("design:paramtypes",[])],c);var l},CBmz:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".user-module-completion #userModuleCompletionChart{padding-right:30px}.user-module-completion /deep/ .completion-item,.user-module-completion /deep/ .completion-item__header{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.user-module-completion /deep/ .completion-item__value-box{width:68%;margin:0}.user-module-completion /deep/ .completion-item__box{text-align:center}.user-module-completion /deep/ .completion-item__title{color:#303030}.user-module-completion /deep/ .ct-labels .ct-label.ct-vertical.ct-start{font-size:20px;color:#323232}.user-module-completion /deep/ .ct-labels .ct-label.ct-horizontal.ct-end{font-size:10px;color:#303030;position:relative;left:-7px;bottom:-3px}.user-module-completion__overview{border-right:1px solid #d8d8d8}.user-module-completion__box{padding-top:40px;padding-bottom:40px}.user-module-completion__item{margin-bottom:25px}.user-module-completion__item:last-child{margin-bottom:0}",""]),e.exports=e.exports.toString()},CCcG:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},CH1D:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},CLIu:function(e,t){e.exports='\r\n
\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n \x3c!-- Date picker --\x3e\r\n \r\n
\r\n
\r\n\r\n
\r\n \x3c!-- Module completion --\x3e\r\n
\r\n \r\n
\r\n\r\n \x3c!-- User proficiency by rank --\x3e\r\n
\r\n \r\n
\r\n
\r\n
\r\n\r\n\x3c!-- Loading icon --\x3e\r\n
\r\n \r\n
\r\n'},CM3j:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".module-completion p{margin:0}.module-completion__modules{margin-bottom:0}.module-completion__item{line-height:1em;margin-bottom:25px}.module-completion__item:last-child{margin-bottom:0}.module-completion__infor{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:15px;font-size:20px}.module-completion__box{padding:30px 40px}.module-completion .module-item__name{margin-right:10px}.module-completion .module-item__name:hover{cursor:pointer;color:#52a6ff}.module-completion .module-item__average-number{color:#52a6ff;font-weight:700}.module-completion /deep/ horizontal-progress-bar .progress{border-radius:unset}.module-completion /deep/ horizontal-progress-bar .progress-bar{height:10px}.module-completion /deep/ .no-data{margin:0}",""]),e.exports=e.exports.toString()},CPnF:function(e,t,r){"use strict";var n=r("3j3K"),o=r("2Je8"),i=r("26y0"),a=r("kzcK");r.d(t,"a",function(){return f});var s=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=[o.c,a.b],l=[],d=[],p=[i.a],u=[],f=function(){function e(){}return e}();f=s([r.i(n.b)({imports:c.slice(),declarations:p.concat(l,d),providers:u.slice(),exports:p.concat(l,d)})],f)},CQWn:function(e,t){},CVBV:function(e,t){e.exports='
\r\n

Module Completion

\r\n
\r\n
\r\n \x3c!-- Overview --\x3e\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n \r\n
\r\n
\r\n\r\n \x3c!-- Chart --\x3e\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n'},Cu2x:function(e,t){e.exports='
\r\n \r\n X\r\n
\r\n'},Cuiv:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".overall-completion__item{margin-bottom:20px}.overall-completion__item:last-child{margin-bottom:0}",""]),e.exports=e.exports.toString()},CyeF:function(e,t,r){"use strict";var n=r("6Sp0"),o=r("v7TT");r.d(t,"a",function(){return i});var i=[{path:"login",component:n.a},{path:"auth/callback",component:o.a}]},"D/+A":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var o=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){}return e.prototype.ngOnInit=function(){},e}();a=o([r.i(n._1)({selector:"health-check",template:r("vkou"),styles:[r("6zEJ")],changeDetection:n._2.OnPush}),i("design:paramtypes",[])],a)},D3CN:function(e,t){e.exports=""},D5gV:function(e,t){e.exports='
\r\n

Average Module Score

\r\n\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Users

\r\n

Points

\r\n \r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n'},D9gp:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,".modal-body p{margin:0}.modal-footer{padding-right:20px;padding-left:20px}",""]),e.exports=e.exports.toString()},DCfR:function(e,t,r){"use strict";var n=r("3j3K"),o=r("NVOs"),i=r("xzHH"),a=r("EYWE");r.d(t,"a",function(){return l});var s=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t,r){this.alertService=e,this.trainingSessionService=t,this.formBuilder=r,this.cancelUpdateTrainingSession=new n.j,this.onUpdateTrainingSessionSuccess=new n.j}return e.prototype.ngOnInit=function(){this.createAddTrainingSessionForm()},e.prototype.createAddTrainingSessionForm=function(){this.updateTrainingSessionForm=this.formBuilder.group({games:["",o.b.required],sortOrder:["",o.b.compose([o.b.required,o.b.min(0),o.b.pattern("[0-9]*")])]})},e.prototype.updateTrainingSession=function(){var e=this;this.updateTrainingSessionForm.valid&&(this.model=Object.assign({},this.updateTrainingSessionForm.value),this.trainingSessionService.updateTrainingSession(this.trainingSessionId,this.moduleId,this.model).subscribe(function(t){e.onUpdateTrainingSessionSuccess.emit(),e.updateTrainingSessionForm.reset(),e.alertService.success("Updated training session successfully")},function(t){e.alertService.error(t._body)}))},e.prototype.cancel=function(){this.cancelUpdateTrainingSession.emit(!1)},e.prototype.hasErrorAndTouched=function(e){return!(!this.updateTrainingSessionForm.get(e).hasError("required")||!this.updateTrainingSessionForm.get(e).touched)},e}();s([r.i(n.f)(),c("design:type",Array)],l.prototype,"games",void 0),s([r.i(n.f)(),c("design:type",Number)],l.prototype,"moduleId",void 0),s([r.i(n.f)(),c("design:type",Number)],l.prototype,"trainingSessionId",void 0),s([r.i(n._7)(),c("design:type",Object)],l.prototype,"cancelUpdateTrainingSession",void 0),s([r.i(n._7)(),c("design:type",Object)],l.prototype,"onUpdateTrainingSessionSuccess",void 0),l=s([r.i(n._1)({selector:"update-trainingSession",template:r("UuRd"),styles:[r("415h")]}),c("design:paramtypes",["function"==typeof(d=void 0!==a.a&&a.a)&&d||Object,"function"==typeof(p=void 0!==i.a&&i.a)&&p||Object,"function"==typeof(u=void 0!==o.c&&o.c)&&u||Object])],l);var d,p,u},DECp:function(e,t){e.exports='
\r\n

Average Overall Performance

\r\n\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Users

\r\n

Scores

\r\n \r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n'},DXsY:function(e,t){e.exports='
\r\n
\r\n \x3c!-- Overview --\x3e\r\n \r\n
\r\n\r\n
\r\n
\r\n \x3c!-- Module completion --\x3e\r\n \r\n
\r\n\r\n
\r\n \x3c!-- Module performance --\x3e\r\n \r\n
\r\n
\r\n\r\n
\r\n \x3c!-- Skills breakdown --\x3e\r\n \r\n
\r\n
\r\n\r\n'},Ddc2:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},DkjN:function(e,t){e.exports='
\r\n

Average Module Completion

\r\n\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n

Users

\r\n

Completion

\r\n \r\n
\r\n
\r\n
\r\n\r\n \r\n
\r\n
\r\n'},DuqJ:function(e,t,r){"use strict";var n=r("3j3K"),o=r("BrtQ"),i=r("vQr0");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e,t){this.appConfig=e,this.httpWrapperService=t}return e.prototype.registerBulkUser=function(e){return this.httpWrapperService.post(this.appConfig.API.postBulkRegister,e)},e}();c=a([r.i(n.g)(),s("design:paramtypes",["function"==typeof(l=void 0!==o.a&&o.a)&&l||Object,"function"==typeof(d=void 0!==i.a&&i.a)&&d||Object])],c);var l,d},Dze9:function(e,t,r){"use strict";var n=r("3j3K"),o=r("NVOs");r.d(t,"a",function(){return s});var i=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function e(){this.removeModule=new n.j}return e.prototype.ngOnInit=function(){},e.prototype.remove=function(){this.removeModule.emit(this.moduleForm.controls.contentfulId.value)},e.prototype.canRemoved=function(){return this.moduleForm.controls.canChange.value},e}();i([r.i(n.f)(),a("design:type","function"==typeof(c=void 0!==o.m&&o.m)&&c||Object)],s.prototype,"moduleForm",void 0),i([r.i(n._7)(),a("design:type","function"==typeof(l=void 0!==n.j&&n.j)&&l||Object)],s.prototype,"removeModule",void 0),s=i([r.i(n._1)({selector:"module-item",template:r("fdcj"),styles:[r("EXAz")],changeDetection:n._2.OnPush}),a("design:paramtypes",[])],s);var c,l},EClt:function(e,t){e.exports='
{{ message?.message }}
\r\n'},EDgX:function(e,t,r){"use strict";var n=r("3j3K"),o=r("NVOs"),i=r("5oXY"),a=r("M4fF"),s=(r.n(a),r("OjAQ")),c=r("LulV"),l=r("ea0H"),d=r("1NAf"),p=r("BrtQ"),u=r("kh0b"),f=r("MCzZ"),m=r("H9mM"),h=r("8hLQ"),g=r("EYWE"),v=r("kZql");r.d(t,"a",function(){return x});var b=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},_=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},x=function(){function e(e,t,r,n,i,a,s,c,l,d){this.alertService=e,this.cd=t,this.appConfig=r,this.logger=n,this.customValidator=i,this.fb=a,this.userManagementService=s,this.dashboardService=c,this.appState=l,this.router=d,this.sort={fieldName:this.appConfig.USER_MANAGEMENT.DEFAULT_SORT_FIELD,type:this.appConfig.SORT.ASC},this.groupUserCurrentTitle=this.appConfig.GROUP_USER_TITLE.allUsers,this.showAddNewUser=!0,this.pageInfo={},this.dataTableHeader=["RANK","NAME","EMAIL","BUSINESS_UNIT","DATE","SCORE","MODULES"],this.page=0,this.currentGroupUsers=[],this.showUpUsers=[],this.isLoading=!1,this.isSearched=!1,this.groupAllUser=h.a.GROUP_ALL,this.searchControl=new o.d}return e.prototype.ngOnInit=function(){var e=this;this.initPageInfor(),this.buildForm(),this.getUsers(),this.company$=this.appState.company$.subscribe(function(t){e.getUsers()})},e.prototype.initPageInfor=function(){var e={title:"USER_MANAGEMENT.TITLE",urls:[{title:"HOME"},{title:"USER_MANAGEMENT.TITLE"}]};this.pageInfo=b({},e)},e.prototype.buildForm=function(){switch(this.form=this.fb.group({email:["",[o.b.required,this.customValidator.validateEmail()]]}),v.a.AUTH0_SERVER){case this.appConfig.AUTH0.TYPE.US:this.form.addControl("name",new o.d("",o.b.required));break;case this.appConfig.AUTH0.TYPE.EU:this.form.addControl("password",new o.d("",o.b.required))}},e.prototype.isUSServer=function(){return v.a.AUTH0_SERVER===this.appConfig.AUTH0.TYPE.US},e.prototype.isEUServer=function(){return v.a.AUTH0_SERVER===this.appConfig.AUTH0.TYPE.EU},e.prototype.saveUser=function(){var e=this;if(this.logger.info("Submit save user",this.form.value),this.form.valid){var t={name:this.form.value.name,email:this.form.value.email,password:this.form.value.password};this.userManagementService.addUser(t).subscribe(function(t){e.form.reset(),e.modal.showModal(!1),e.getUsers(),e.logger.info("Save user: ",t),e.alertService.success("Add user successfully!")},function(t){e.cd.detectChanges(),e.logger.info("Error save user: ",t),e.alertService.error(t._body)})}},e.prototype.onSelectUserGroup=function(e){var t=this.appConfig.RANK_SETTING.TITLE;switch(this.currentGroupUsers.length=0,e){case h.a.GROUP_TOP:if(this.currentGroupType===h.a.GROUP_TOP)return;this.showAddNewUser=!1,this.groupUserCurrentTitle=t.FROM_80_TO_100,this.currentGroupType=h.a.GROUP_TOP;break;case h.a.GROUP_AWESOME:if(this.currentGroupType===h.a.GROUP_AWESOME)return;this.showAddNewUser=!1,this.groupUserCurrentTitle=t.FROM_60_TO_80,this.currentGroupType=h.a.GROUP_AWESOME;break;case h.a.GROUP_GREATE:if(this.currentGroupType===h.a.GROUP_GREATE)return;this.showAddNewUser=!1,this.groupUserCurrentTitle=t.FROM_40_TO_60,this.currentGroupType=h.a.GROUP_GREATE;break;case h.a.GROUP_GOOD:if(this.currentGroupType===h.a.GROUP_GOOD)return;this.showAddNewUser=!1,this.groupUserCurrentTitle=t.FROM_20_TO_40,this.currentGroupType=h.a.GROUP_GOOD;break;case h.a.GROUP_FAIL:if(this.currentGroupType===h.a.GROUP_FAIL)return;this.showAddNewUser=!1,this.groupUserCurrentTitle=t.UNDER_20,this.currentGroupType=h.a.GROUP_FAIL;break;default:this.showAddNewUser=!0,this.groupUserCurrentTitle=t.ALL_USER,this.currentGroupType=h.a.GROUP_ALL}this.getGroupUsers()},e.prototype.getUsers=function(e){this.appState.company&&this.onSelectUserGroup(h.a.GROUP_ALL)},e.prototype.getGroupUsers=function(e){var t=this;void 0===e&&(e=0),this.appState.company&&(this.isLoading=!0,this.isSearched=!1,this.cd.detectChanges(),this.userSubscription$&&this.userSubscription$.unsubscribe(),this.userSubscription$=this.userManagementService.getUsersFromBackend(this.appState.company.id,this.appState.company.companyGuid,this.currentGroupType,e,this.sort).subscribe(function(r){var n={start:e*r.userPerPage,limit:r.userPerPage,length:r.userPerPage,total:r.totalUser,page:e+1,totalPage:r.totalPage,data:r.users};t.userPaging=n,t.showUpUsers=n.data,t.isLoading=!1,t.cd.markForCheck()},function(e){t.currentGroupUsers=[],t.showUpUsers=[],t.logger.info("Error get users from backend: ",e),t.alertService.error(e._body),t.isLoading=!1,t.cd.markForCheck()}))},e.prototype.onSearchUser=function(e){var t=this;if(!e)return void this.getUsers();this.isLoading=!0,this.isSearched=!0,this.cd.detectChanges(),this.userManagementService.searchUser(this.appState.company.id,this.appState.company.companyGuid,e).subscribe(function(e){t.showUpUsers=e,t.isLoading=!1,t.userPaging=null,t.cd.detectChanges()},function(e){t.showUpUsers=[],t.userPaging=null,t.isLoading=!1,t.cd.detectChanges()})},e.prototype.onPageChange=function(e){this.isSearched||(this.page=e,this.getGroupUsers(e))},e.prototype.onSortTable=function(e){this.sort.type=this.sort.fieldName===e?-this.sort.type:this.appConfig.SORT.ASC,this.sort.fieldName=e,this.sort.field=r.i(a.toUpper)(e),this.getGroupUsers()},e.prototype.getSortStyle=function(e){return{"footable-sorted-desc":this.sort.fieldName===e&&this.sort.type===this.appConfig.SORT.ASC,"footable-sorted":this.sort.fieldName===e&&this.sort.type===this.appConfig.SORT.DESC}},e.prototype.getSearchTerm=function(e){var t,r=this.appConfig.REGEXP.EMAIL;switch(!0){case r.test(e):t='email:"'+e+'"';break;default:t='nickname:"'+e+'"'}return t},e.prototype.redirectCreateUser=function(){this.router.navigate(["admin/user-management/new"])},e.prototype.redirectEditUser=function(e){this.router.navigate(["admin/user-management/edit",e])},e}();y([r.i(n._13)(c.a),_("design:type","function"==typeof(O=void 0!==c.a&&c.a)&&O||Object)],x.prototype,"modal",void 0),x=y([r.i(s.a)(),r.i(n._1)({selector:"user-management",template:r("d4bT"),styles:[r("FOcf")],changeDetection:n._2.OnPush}),_("design:paramtypes",["function"==typeof(S=void 0!==g.a&&g.a)&&S||Object,"function"==typeof(C=void 0!==n.e&&n.e)&&C||Object,"function"==typeof(R=void 0!==p.a&&p.a)&&R||Object,"function"==typeof(A=void 0!==d.a&&d.a)&&A||Object,"function"==typeof(j=void 0!==l.a&&l.a)&&j||Object,"function"==typeof(w=void 0!==o.c&&o.c)&&w||Object,"function"==typeof(I=void 0!==u.a&&u.a)&&I||Object,"function"==typeof(P=void 0!==f.a&&f.a)&&P||Object,"function"==typeof(T=void 0!==m.a&&m.a)&&T||Object,"function"==typeof(E=void 0!==i.c&&i.c)&&E||Object])],x);var O,S,C,R,A,j,w,I,P,T,E},EEWD:function(e,t,r){"use strict";var n=r("3j3K"),o=r("2Je8"),i=r("kzcK"),a=r("LulV");r.d(t,"a",function(){return f});var s=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=[o.c,i.c],l=[],d=[],p=[a.a],u=[i.d],f=function(){function e(){}return e}();f=s([r.i(n.b)({imports:c.slice(),declarations:p.concat(l,d),providers:u.slice(),exports:p.concat(l,d)})],f)},EQjJ:function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var o=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){}return e.prototype.ngOnInit=function(){},e.prototype.getStyles=function(){return{width:this.percentage+"%","background-color":this.bgColor}},e}();o([r.i(n.f)(),i("design:type",Number)],a.prototype,"percentage",void 0),o([r.i(n.f)(),i("design:type",String)],a.prototype,"bgColor",void 0),a=o([r.i(n._1)({selector:"horizontal-progress-bar",template:r("cwSB"),styles:[r("wAOs")],changeDetection:n._2.OnPush}),i("design:paramtypes",[])],a)},EQlm:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},EXAz:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},EYWE:function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var o=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){}return e.prototype.confirm=function(e,t){alertify.confirm(e,function(){t()})},e.prototype.success=function(e){alertify.success(e)},e.prototype.error=function(e){alertify.error(e)},e.prototype.warning=function(e){alertify.warning(e)},e.prototype.message=function(e){alertify.message(e)},e}();a=o([r.i(n.g)(),i("design:paramtypes",[])],a)},EZof:function(e,t){e.exports='
\r\n
\r\n

{{ \'COMPANY_MANAGEMENT.ALL_COMPANIES\' | translate }}

\r\n\r\n \x3c!-- Add company --\x3e\r\n \r\n
\r\n\r\n \x3c!-- Company list --\x3e\r\n
\r\n
\r\n\r\n \x3c!-- Company table --\x3e\r\n
\r\n \r\n\r\n \x3c!-- Table headers --\x3e\r\n \r\n \r\n \r\n \r\n \r\n\r\n \x3c!-- Table content --\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n {{ header | translate }}\r\n \r\n
{{ company?.name }}\r\n \r\n Edit\r\n \r\n \r\n Delete\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n\r\n\x3c!-- Confirm delete company box --\x3e\r\n\r\n\r\n\r\n\x3c!-- Loading indicator --\x3e\r\n\r\n'},ErV2:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},EvSf:function(e,t,r){"use strict";var n=r("3j3K"),o=r("5oXY"),i=r("BrtQ"),a=r("1NAf"),s=r("MCzZ"),c=r("H9mM"),l=r("JlUQ"),d=r("OjAQ"),p=r("QzLw"),u=r("RXAk"),f=r("qGs6");r.d(t,"a",function(){return g});var m=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},h=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},g=function(){function e(e,t,r,n,o,i,a,s,c,l){this.logger=e,this.dashboardService=t,this.cd=r,this.appState=n,this.localStorageService=o,this.router=i,this.appConfig=a,this.breadcrumbService=s,this.filterService=c,this.authService=l,this.companies=[],this.isAdminInternal=!1}return e.prototype.ngOnInit=function(){var e=this;this.userProfile$=this.appState.userProfile$.subscribe(function(t){t&&e.getCompanies()}),this.updateCompanies$=this.appState.updateCompanies$.subscribe(function(t){t&&e.getCompanies()})},e.prototype.getCompanies=function(){var e=this;this.dashboardService.getCompanies().subscribe(function(t){if(!t||t&&0===t.length)return e.companies=[],e.appState.companies$.next([]),e.appState.company$.next(null),e.checkAdminInternal()?e.router.navigate(["admin/user-modification"]):setInterval(function(){e.authService.logout()},1e3),void e.cd.detectChanges();e.companies=t,e.appState.companies$.next(t),e.selectActiveCompany(),e.cd.detectChanges()},function(e){})},e.prototype.selectActiveCompany=function(){var e=this,t=this.companies&&this.companies[0];if(this.company=t,this.localStorageService.getCurrentActiveCompany()){var r=this.companies.find(function(t){return t.id===e.localStorageService.getCurrentActiveCompany()});r?(this.company=r,this.appState.company$.next(r)):this.selectCompany(t)}else this.selectCompany(t)},e.prototype.selectCompany=function(e){switch(this.company=e,this.localStorageService.setCurrentActiveCompany(e.id),this.filterService.groupFilter$.next(null),this.appState.company$.next(e),this.filterService.groupFilter$.next([]),this.breadcrumbService.breadcrumb.title){case this.appConfig.DASHBOARD_TITLE.MODULE_DETAILS:this.router.navigate([this.appConfig.URLS.dashboard]);break;case this.appConfig.DASHBOARD_TITLE.USER_DETAILS:this.router.navigate([this.appConfig.URLS.userManagement]);break;case this.appConfig.DASHBOARD_TITLE.COMPANY_MANAGEMENT:case this.appConfig.DASHBOARD_TITLE.USER_SEARCH:this.router.navigate([this.appConfig.URLS.dashboard])}},e.prototype.isActiveCompany=function(e){return this.company.id===e.id},e.prototype.checkAdminInternal=function(){return this.authService.isAdminInternal()},e.prototype.isShowCompanyList=function(){return this.companies&&this.companies.length>0||!1},e}();g=m([r.i(d.a)(),r.i(n._1)({selector:"site-header",template:r("8Vj6"),styles:[r("Pnbe")],changeDetection:n._2.OnPush}),h("design:paramtypes",["function"==typeof(v=void 0!==a.a&&a.a)&&v||Object,"function"==typeof(b=void 0!==s.a&&s.a)&&b||Object,"function"==typeof(y=void 0!==n.e&&n.e)&&y||Object,"function"==typeof(_=void 0!==c.a&&c.a)&&_||Object,"function"==typeof(x=void 0!==l.a&&l.a)&&x||Object,"function"==typeof(O=void 0!==o.c&&o.c)&&O||Object,"function"==typeof(S=void 0!==i.a&&i.a)&&S||Object,"function"==typeof(C=void 0!==p.a&&p.a)&&C||Object,"function"==typeof(R=void 0!==u.a&&u.a)&&R||Object,"function"==typeof(A=void 0!==f.a&&f.a)&&A||Object])],g);var v,b,y,_,x,O,S,C,R,A},F1dL:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},FOcf:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},FQYD:function(e,t,r){"use strict";var n=r("3j3K"),o=r("5oXY"),i=r("8A5H"),a=r("qGs6"),s=r("Ijbi"),c=r("VNaA"),l=r("nvRx"),d=r("UWjP"),p=r("6Sp0"),u=r("v7TT"),f=r("CyeF");r.d(t,"a",function(){return b});var m=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},h=[c.a,o.a,l.a,i.a,o.a.forChild(f.a)],g=[d.a,p.a,u.a],v=[a.a,s.a],b=function(){function e(){}return e}();b=m([r.i(n.b)({imports:h.slice(),declarations:g.slice(),providers:v.slice(),exports:g.slice()})],b)},FnkZ:function(e,t){e.exports='
\r\n \r\n \r\n \r\n
\r\n'},FumT:function(e,t,r){"use strict";var n=r("3j3K"),o=r("M4fF"),i=(r.n(o),r("OjAQ")),a=r("RXAk"),s=r("XfTH"),c=r("H9mM"),l=r("YVC+");r.d(t,"a",function(){return f});var d=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(){function e(e,t,r,n,o){this.cd=e,this.filterService=t,this.appState=r,this.dashboardService=n,this.loadingService=o}return e.prototype.ngOnInit=function(){var e=this;this.company$=this.appState.company$.subscribe(function(t){t&&!r.i(o.isEqual)(t,e.company)&&(e.company=t,e.initFilter())})},e.prototype.initFilter=function(){var e=this;this.filter$&&this.filter$.unsubscribe(),this.filter$=this.filterService.filter$.subscribe(function(t){e.company&&e.company.id&&t&&e.getUserCompletion(t||[])})},e.prototype.getUserCompletion=function(e){var t=this;this.loadingService.request$.next(!0),this.dashboardService.getUserCompletion(this.company.id,e).subscribe(function(e){t.overallCompletion=d({},e.overallCompletion),t.userAverageCompletion=d({},e.averageCompletionPerUser),t.loadingService.response$.next(!0),t.cd.markForCheck()},function(){t.loadingService.response$.next(!0)})},e}();f=p([r.i(i.a)(),r.i(n._1)({selector:"user-completion",template:r("fCzj"),styles:[r("CH1D")],changeDetection:n._2.OnPush}),u("design:paramtypes",["function"==typeof(m=void 0!==n.e&&n.e)&&m||Object,"function"==typeof(h=void 0!==a.a&&a.a)&&h||Object,"function"==typeof(g=void 0!==c.a&&c.a)&&g||Object,"function"==typeof(v=void 0!==s.a&&s.a)&&v||Object,"function"==typeof(b=void 0!==l.a&&l.a)&&b||Object])],f);var m,h,g,v,b},"G/1z":function(e,t){e.exports='
\r\n

Skills Breakdown

\r\n\r\n \x3c!-- Module list --\x3e\r\n
\r\n
\r\n\r\n \x3c!-- Header --\x3e\r\n
\r\n

{{ module?.name }}

\r\n

\r\n {{ module?.score | number:\'1.0-2\' }}\r\n /\r\n {{ module?.maxPossibleScore | number:\'1.0-2\' }} PTS\r\n

\r\n
\r\n\r\n \x3c!-- Body --\x3e\r\n
\r\n
\r\n

{{ skill?.name }}

\r\n

{{ skill?.score | number:\'1.0-2\' }}

\r\n
\r\n
\r\n
\r\n
\r\n
\r\n'},G5va:function(e,t,r){"use strict";var n=r("3j3K"),o=r("vQr0"),i=r("BrtQ");r.d(t,"a",function(){return c});var a=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e,t){this.httpWrapperService=e,this.appConfig=t}return e.prototype.getContentfulSpaces=function(){return this.httpWrapperService.get(this.appConfig.API.getContentfulSpaces)},e.prototype.getContentfulLanguages=function(e){var t={contentfulId:e};return this.httpWrapperService.get(this.appConfig.API.getContentfulLanguage,t)},e.prototype.getProgramsAndSeasons=function(e,t){var r={contentfulId:e,locale:t};return this.httpWrapperService.get(this.appConfig.API.getProgramAndSeason,r)},e.prototype.getProgramsAndSeasonsForCompany=function(e,t,r){var n={companyId:e,companyGuid:t,locale:r};return this.httpWrapperService.get(this.appConfig.API.getProgramAndSeasonByCompany,n)},e}();c=a([r.i(n.g)(),s("design:paramtypes",["function"==typeof(l=void 0!==o.a&&o.a)&&l||Object,"function"==typeof(d=void 0!==i.a&&i.a)&&d||Object])],c);var l,d},GAM5:function(e,t,r){"use strict";var n=r("3j3K"),o=r("Jfzo");r.d(t,"a",function(){return s});var i=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function e(e){this.chartService=e}return e.prototype.ngOnInit=function(){},e.prototype.getRankColor=function(e){return this.chartService.getRankColor(e)},e}();i([r.i(n.f)(),a("design:type",Array)],s.prototype,"modules",void 0),s=i([r.i(n._1)({selector:"dashboard-module-overview",template:r("Zu3q"),styles:[r("ErV2")],changeDetection:n._2.OnPush}),a("design:paramtypes",["function"==typeof(c=void 0!==o.a&&o.a)&&c||Object])],s);var c},GEUI:function(e,t){e.exports='
\r\n
\r\n \x3c!-- DONUT CHART--\x3e\r\n \r\n \r\n\r\n \x3c!-- CIRCLE CHART --\x3e\r\n \r\n \r\n
\r\n\r\n
\r\n
\r\n

{{ originalItem?.title }}

\r\n \r\n
\r\n

{{ originalItem?.description }}

\r\n
\r\n
\r\n'},GUWP:function(e,t,r){"use strict";function n(e){return new o.a(e)}var o=r("obU/");t.a=n},GYx7:function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return i});var o=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},i=function(){function e(){}return e.prototype.transform=function(e,t){var r=t||0;return isNaN(e)?+r:Math.floor(e)},e}();i=o([r.i(n.h)({name:"floorNumber"})],i)},"Ge/m":function(e,t,r){"use strict";var n=r("3j3K");r.d(t,"a",function(){return a});var o=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function e(){this.text="",this.position=""}return e.prototype.ngOnInit=function(){},e}();o([r.i(n.f)(),i("design:type",String)],a.prototype,"text",void 0),o([r.i(n.f)(),i("design:type",String)],a.prototype,"position",void 0),a=o([r.i(n._1)({selector:"site-tooltip",template:r("4Aga"),styles:[r("Oquf")],changeDetection:n._2.OnPush}),i("design:paramtypes",[])],a)},GnCq:function(e,t,r){t=e.exports=r("FZ+f")(!1),t.push([e.i,"",""]),e.exports=e.exports.toString()},H0Ah:function(e,t,r){"use strict";var n=r("3j3K"),o=r("M4fF"),i=(r.n(o),r("Jfzo")),a=r("BrtQ");r.d(t,"a",function(){return l});var s=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e,t){this.appConfig=e,this.chartService=t,this.title=this.appConfig.DASHBOARD_TITLE.USER_PROFICIENCY,this.titleSetting=this.appConfig.RANK_SETTING.TITLE,this.rankSetting=this.appConfig.RANK_SETTING.RANK,this.groupUserConfig=[{title:this.titleSetting.UNDER_20,maxPercentage:this.rankSetting.PERCENT_20,minPercentage:this.rankSetting.PERCENT_0},{title:this.titleSetting.FROM_20_TO_40,maxPercentage:this.rankSetting.PERCENT_40,minPercentage:this.rankSetting.PERCENT_20+1},{title:this.titleSetting.FROM_40_TO_60,maxPercentage:this.rankSetting.PERCENT_60,minPercentage:this.rankSetting.PERCENT_40+1},{title:this.titleSetting.FROM_60_TO_80,maxPercentage:this.rankSetting.PERCENT_80,minPercentage:this.rankSetting.PERCENT_60+1},{title:this.titleSetting.FROM_80_TO_100,maxPercentage:this.rankSetting.PERCENT_100,minPercentage:this.rankSetting.PERCENT_80+1}],this.xAxisTitles=r.i(o.values)(this.appConfig.RANK_SETTING.RANK),this.xAxisTitles.shift()}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(){this.getTotalUsersInRank(),this.drawChart()},e.prototype.drawChart=function(){var e=this,t=this.getChartValues(),r=this.xAxisTitles,n={labels:r,series:[t]},o={low:0,fullWidth:!0,plugins:[Chartist.plugins.tooltip()],axisX:{showGrid:!1},axisY:{showGrid:!1,showLabel:!1,offset:0}};new Chartist.Bar("#user-proficiency-chart",n,o).on("draw",function(t){t.type===e.appConfig.CHART_SETTING.TYPES.BAR&&t.element.attr({style:"stroke: "+e.chartService.getRankColor(r[t.index])+"; stroke-width: 8%;"})})},e.prototype.getTotalUsersInRank=function(){var e=this;r.i(o.forEach)(this.groupUserConfig,function(t){t.totalUsers=0,r.i(o.forEach)(e.dataUserProficiency,function(e){e.percentage>=t.minPercentage&&e.percentage<=t.maxPercentage&&(t.totalUsers+=e.totalUsers)})})},e.prototype.getChartValues=function(){var e=this,t=Array(this.xAxisTitles.length).fill(this.appConfig.CHART_SETTING.DEFAULT_VALUE);return r.i(o.forEach)(this.dataUserProficiency,function(n){var i=r.i(o.indexOf)(e.xAxisTitles,n.percentage);i>-1&&(t[i]=n.totalUsers)}),t},e.prototype.getChartLegendStyles=function(e){return{"background-color":this.chartService.getRankColor(e)}},e}();s([r.i(n.f)(),c("design:type",String)],l.prototype,"title",void 0),s([r.i(n.f)(),c("design:type",Array)],l.prototype,"dataUserProficiency",void 0),l=s([r.i(n._1)({selector:"user-proficiency",template:r("0Mno"),styles:[r("i7Et")],changeDetection:n._2.OnPush}),c("design:paramtypes",["function"==typeof(d=void 0!==a.a&&a.a)&&d||Object,"function"==typeof(p=void 0!==i.a&&i.a)&&p||Object])],l);var d,p},H7dz:function(e,t,r){"use strict";var n=r("3j3K"),o=r("2Je8"),i=r("/2ZF"),a=(r.n(i),r("BrtQ"));r.d(t,"a",function(){return d});var s=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(){function e(e,t,r){this.cd=e,this.appConfig=t,this.numberPipe=r,this.roleplayOverall={value:0,title:"Role play"},this.gameOverall={value:0,title:"Game"}}return e.prototype.ngOnInit=function(){this.initData()},e.prototype.ngOnChanges=function(){this.initData()},e.prototype.initData=function(){if(this.data){var e=this.appConfig.FORMAT.DECIMAL_NUMBER,t=this.numberPipe.transform(this.data.totalRoleplay||this.appConfig.DEFAULT_VALUE.ZERO,e),r=this.numberPipe.transform(this.data.totalMiniGame||this.appConfig.DEFAULT_VALUE.ZERO,e);this.roleplayOverall=s({},this.roleplayOverall,{value:this.data.completionRoleplay,subTitle:"Out of "+t}),this.gameOverall=s({},this.gameOverall,{value:this.data.completionMiniGame,subTitle:"Out of "+r}),this.cd.detectChanges()}},e}();c([r.i(n.f)(),l("design:type","function"==typeof(p=void 0!==i.OverallCompletion&&i.OverallCompletion)&&p||Object)],d.prototype,"data",void 0),d=c([r.i(n._1)({selector:"overall-completion",template:r("zmmN"),styles:[r("Cuiv")],changeDetection:n._2.OnPush}),l("design:paramtypes",["function"==typeof(u=void 0!==n.e&&n.e)&&u||Object,"function"==typeof(f=void 0!==a.a&&a.a)&&f||Object,"function"==typeof(m=void 0!==o.k&&o.k)&&m||Object])],d);var p,u,f,m},H9mM:function(e,t,r){"use strict";var n=r("3j3K"),o=r("TfWX");r.n(o);r.d(t,"a",function(){return s});var i=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=function(){function e(){var e=this;this.company$=new o.BehaviorSubject(null),this.updateCompanies$=new o.BehaviorSubject(!1),this.updateModules$=new o.BehaviorSubject(!1),this.modules$=new o.BehaviorSubject(null),this.tokenManageApi$=new o.BehaviorSubject(null),this.tokenUser$=new o.BehaviorSubject(null),this.companies$=new o.BehaviorSubject(null),this.userProfile$=new o.BehaviorSubject(null),this.company$.subscribe(function(t){e.company=t}),this.modules$.subscribe(function(t){e.modules=t}),this.tokenManageApi$.subscribe(function(t){e.tokenManageApi=t}),this.companies$.subscribe(function(t){e.companies=t})}return e}();s=i([r.i(n.g)(),a("design:paramtypes",[])],s)},HDC5:function(e,t){e.exports='\r\n \r\n \r\n \r\n {{ item }}\r\n \r\n \r\n\r\n'},HLOK:function(e,t){e.exports='
\r\n
\r\n

{{ \'COMPANY_MANAGEMENT.ALL_COMPANIES\' | translate }}

\r\n\r\n \x3c!-- Add company --\x3e\r\n \r\n
\r\n\r\n \x3c!-- Company list --\x3e\r\n
\r\n
\r\n\r\n \x3c!-- Company table --\x3e\r\n
\r\n \r\n\r\n \x3c!-- Table headers --\x3e\r\n \r\n \r\n \r\n \r\n \r\n\r\n \x3c!-- Table content --\x3e\r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n {{ header | translate }}\r\n \r\n
{{ company?.name }}\r\n \r\n Edit\r\n \r\n \r\n Delete\r\n \r\n
\r\n
\r\n
\r\n
\r\n\r\n
\r\n\r\n\x3c!-- Confirm delete company box --\x3e\r\n\r\n\r\n\r\n\x3c!-- Loading indicator --\x3e\r\n\r\n'},Hkdk:function(e,t,r){"use strict";var n=r("3j3K"),o=r("M4fF"),i=(r.n(o),r("YNkg"));r.n(i);r.d(t,"a",function(){return l});var a=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function e(e){this.cd=e}return e.prototype.ngOnInit=function(){this.originalOverviewItem=a({},this.overviewItem)},e.prototype.ngDoCheck=function(){r.i(o.isEqual)(this.originalOverviewItem,this.overviewItem)||(this.originalOverviewItem=a({},this.overviewItem),this.cd.detectChanges())},e.prototype.getStyles=function(){return{"background-color":this.overviewItem.bgColor}},e}();s([r.i(n.f)(),c("design:type","function"==typeof(d=void 0!==i.OverviewDashboardItem&&i.OverviewDashboardItem)&&d||Object)],l.prototype,"overviewItem",void 0),l=s([r.i(n._1)({selector:"dashboard-overview",template:r("4V2B"),styles:[r("18Zg")],changeDetection:n._2.OnPush}),c("design:paramtypes",["function"==typeof(p=void 0!==n.e&&n.e)&&p||Object])],l);var d,p},"I+ue":function(e,t){e.exports='
\r\n

Update Company

\r\n\r\n
\r\n \r\n
\r\n \r\n \r\n Company name is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n Access token is required\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n Data version is required\r\n \r\n \r\n Please insert number for Data version\r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n
'},IFnC:function(e,t){e.exports='
\r\n

Update GameContent

\r\n\r\n
\r\n\r\n
\r\n \r\n \r\n \r\n \r\n {{gameTemplateType}}\r\n \r\n \r\n \r\n
\r\n\r\n
\r\n \r\n \r\n
\r\n
'},IIyf:function(e,t){e.exports='