@aastrika_npmjs/comptency
Advanced tools
Comparing version 0.0.33 to 0.0.34
@@ -15,3 +15,3 @@ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("lodash-es"),require("@aastrika_npmjs/comptency/core"),require("@angular/common/http"),require("rxjs"),require("rxjs/operators"),require("@aastrika_npmjs/comptency/entry-module"),require("@angular/router"),require("@angular/common"),require("@angular/material"),require("@aastrika_npmjs/comptency/self-assessment")):"function"==typeof define&&define.amd?define("@aastrika_npmjs/comptency/competency",["exports","@angular/core","lodash-es","@aastrika_npmjs/comptency/core","@angular/common/http","rxjs","rxjs/operators","@aastrika_npmjs/comptency/entry-module","@angular/router","@angular/common","@angular/material","@aastrika_npmjs/comptency/self-assessment"],n):n(((e=e||self).aastrika_npmjs=e.aastrika_npmjs||{},e.aastrika_npmjs.comptency=e.aastrika_npmjs.comptency||{},e.aastrika_npmjs.comptency.competency={}),e.ng.core,e.lodashEs,e.aastrika_npmjs.comptency.core,e.ng.common.http,e.rxjs,e.rxjs.operators,e.aastrika_npmjs.comptency["entry-module"],e.ng.router,e.ng.common,e.ng.material,e.aastrika_npmjs.comptency["self-assessment"])}(this,(function(e,n,t,r,i,a,o,c,l,s,p,d){"use strict"; | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var g=function(e,n){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)};function m(e,n){function t(){this.constructor=e}g(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}function u(e,n,t,r){var i,a=arguments.length,o=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,t,r);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(o=(a<3?i(o):a>3?i(n,t,o):i(n,t))||o);return a>3&&o&&Object.defineProperty(n,t,o),o}function f(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,i,a=t.call(e),o=[];try{for(;(void 0===n||n-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(t=a.return)&&t.call(a)}finally{if(i)throw i.error}}return o}var y=function(){function e(){var e=this;this.formatedActivities=function(e){if(!t.isEmpty(e))return e},this.formatedActivitityByPostion=function(n,r){if(t.get(n,"result")){var i=t.get(n,"result.response").children;if(i.length>0){var a=t.reduce(i,(function(n,i){return n.push({roles:"hi"==r?e.getHiName(i):t.get(i,"name"),id:t.get(i,"id"),description:t.get(i,"description"),averagePercentage:0,code:t.get(i.additionalProperties,"Code")}),n}),[]);return a=t.sortBy(a,[function(e){return e.code}])}}},this.formatedActivitityByRoleId=function(n,r){if(t.get(n,"result")){var i=t.get(n,"result.response").children;if(i.length>0){var a=t.reduce(i,(function(n,i){return n.push({title:"hi"==r?e.getHiName(i):t.get(i,"name"),cid:t.get(i,"id"),description:t.get(i,"description"),code:t.get(i.additionalProperties,"Code")}),n}),[]);return t.sortBy(a,[function(e){return e.code}])}}},this.formatedCompetency=function(n,r,i){var a=[];return t.forEach(n,(function(n){if(t.get(n,"result")){var o=t.get(n,"result.response").children;o.length>0&&t.forEach(o,(function(o){a.push({levels:e.getLevels(t.get(o,"id"),r,i),competency:"hi"==i?e.getHiName(o):t.get(o,"name"),id:t.get(o,"id"),description:t.get(o,"description"),cid:t.get(n,"result.response").id,lastLevel:e.getheighestLevel(t.get(o,"id"),r),completionPercentage:e.getCompeletionPercentage(t.get(o,"id"),r),code:t.get(o.additionalProperties,"Code")})}))}})),a=t.sortBy(a,[function(e){return e.code}]),t.uniqBy(a,"id")}}return e.prototype.getHiName=function(e){return t.get(e.additionalProperties,"lang-hi-name")?t.get(e.additionalProperties,"lang-hi-name"):t.get(e,"name")},e.prototype.getLevels=function(e,n,r){var i=[{name:"hi"==r?"स्तर 1":"Level 1",achived:!1,level:"1"},{name:"hi"==r?"स्तर 2":"Level 2",achived:!1,level:"2"},{name:"hi"==r?"स्तर 3":"Level 3",achived:!1,level:"3"},{name:"hi"==r?"स्तर 4":"Level 4",achived:!1,level:"4"},{name:"hi"==r?"स्तर 5":"Level 5",achived:!1,level:"5"}],a=null;return t.forEach(n,(function(n){t.toNumber(n.competencyId)===e&&(a=t.uniq(n.levelsAchieve))})),t.forEach(i,(function(e){t.forEach(a,(function(n){n==e.level&&(e.achived=!0)}))})),i},e.prototype.getheighestLevel=function(e,n){var r="";return t.forEach(n,(function(n){t.toNumber(n.competencyId)===e&&(r=n.levelId.competencyLevelId)})),r},e.prototype.getCompeletionPercentage=function(e,n){var r=0;return t.forEach(n,(function(n){t.toNumber(n.competencyId)===e&&(r=t.toNumber(n.levelId.competencyLevelId))})),r=100*r/5},e.prototype.formatedGainedCompetency=function(e,n,r){var i=this,a=[];return t.forEach(e,(function(o){var c=t.get(o,"id");t.forEach(n,(function(n){if(n.competencies.hasOwnProperty(c)){var o=n.competencies[c];a.push({title:"hi"==r?i.getHiTitle(c,e,o):t.get(o,"additionalParams.competencyName"),logs:i.acquiredPassbookLogs(t.get(o,"acquiredDetails")),proficiencyLevels:i.acauiredChannelColourCode(t.get(o,"acquiredDetails")),competencyStoreData:i.competencyStoreDataFomat(o),titleHi:i.getHiTitle(c,e,o)})}}))})),a},e.prototype.getHiTitle=function(e,n,r){var i;return t.forEach(n,(function(n){n.id==e&&(i=t.get(n.additionalProperties,"lang-hi-name")?t.get(n.additionalProperties,"lang-hi-name"):t.get(r,"additionalParams.competencyName"))})),i},e.prototype.acquiredPassbookLogs=function(e){var n=[];return e.length>0&&t.forEach(e,(function(e){n.push({header:t.get(e,"courseName")?t.get(e,"courseName"):t.get(e,"acquiredChannel"),date:t.get(e,"createdDate"),description:t.get(e,"additionalParams.description"),keyboardArrowUp:!0,level:t.toNumber(t.get(e,"competencyLevelId"))})})),n},e.prototype.acauiredChannelColourCode=function(e){var n=[{color:"#FFFBB0",displayLevel:1,selected:!1},{color:"#FFFBB0",displayLevel:2,selected:!1},{color:"#FFFBB0",displayLevel:3,selected:!1},{color:"#FFFBB0",displayLevel:4,selected:!1},{color:"#FFFBB0",displayLevel:5,selected:!1}];return t.forEach(e,(function(e){switch(t.get(e,"acquiredChannel")){case"course":case"Course":t.forEach(n,(function(n){n.displayLevel==t.get(e,"competencyLevelId")&&(n.color="#FFFBB0",n.selected=!0)}));break;case"selfAssessment":t.forEach(n,(function(n){n.displayLevel==t.get(e,"competencyLevelId")&&(n.color="#A4DFCA",n.selected=!0)}));break;case"admin":t.forEach(n,(function(n){n.displayLevel==t.get(e,"competencyLevelId")&&(n.color="#7cb5e6",n.selected=!0)}));break;default:t.forEach(n,(function(n){n.displayLevel==t.get(e,"competencyLevelId")&&(n.color="#FFFBB0",n.selected=!1)}))}})),n},e.prototype.competencyStoreDataFomat=function(e){var n=[];return e.acquiredDetails&&t.forEach(e.acquiredDetails,(function(e){e.competencyLevelId&&n.push(e.competencyLevelId)})),{competencyId:e.competencyId,competencyName:e.additionalParams.competencyName,levelId:t.maxBy(e.acquiredDetails,"competencyLevelId"),levelsAchieve:n}},e}(),v=function(e){function t(n){return e.call(this,n)||this}return m(t,e),t.prototype.getRequiredCompetencyById=function(e){var n={url:r.urlConfig.getEntityById(3),data:e};return console.log("reqBody",n),this.post(n)},t.ctorParameters=function(){return[{type:i.HttpClient}]},t.ngInjectableDef=n.ɵɵdefineInjectable({factory:function(){return new t(n.ɵɵinject(i.HttpClient))},token:t,providedIn:"root"}),t=u([n.Injectable({providedIn:"root"})],t)}(r.DataService),h=function(){function e(e){this.requiredCompetencyService=e,this.competencyData=[{title:"Procurement and Distribution of HCM",description:"Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)",requiredLevel:"level 4"},{title:"Store management and planning and coordination of THR and Dry ration",description:"Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ",requiredLevel:"level 4"},{title:"Procurement and Distribution of HCM",description:"Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)",requiredLevel:"level 4"},{title:"Early Childhood Care Education",description:"Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ",requiredLevel:"level 4"},{title:"Procurement and Distribution of HCM",description:"Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)",requiredLevel:"level 4"},{title:"Early Childhood Care Education",description:"Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ",requiredLevel:"level 4"}],this.panelOpenState=!0,this.customCollapsedHeight="100px",this.customExpandedHeight="100px",this.loading=!1,this.logs=[{index:1,header:"Understands HCM guidelines"},{index:2,header:"Lists raw material required"},{index:3,header:"Plans for storage"},{index:4,header:"Motivates the AWH and children on optimal hygiene and handwashing practices"},{index:5,header:"Course-Name Completion"}],this.requestUtil=new y}return e.prototype.ngOnInit=function(){},e.prototype.getRequiredByPostion=function(){return this.requiredCompetencyService.getRequiredCompetencyById({filter:{isDetail:!0}})},e.prototype.ngOnDestroy=function(){},e.ctorParameters=function(){return[{type:v}]},e=u([n.Component({selector:"lib-required-comptency-card",template:"<lib-self-assessment></lib-self-assessment>",styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.start-btn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-size:20px;cursor:pointer;margin-top:15px}.log-title{font-size:14px;line-height:24px;letter-spacing:-.02em;color:#1c5d95}.log{border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.logs{padding:5px}.log-items{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}:host ::ng-deep .mat-expansion-panel-header:hover{background:rgba(255,255,255,.98)!important}:host ::ng-deep .mat-content{display:flex!important}.level{place-self:flex-end}"]})],e)}(),b=function(e){function t(n){var t=e.call(this,n)||this;return t.competencyData=new a.BehaviorSubject(void 0),t.competencyData$=t.competencyData.asObservable(),t}return m(t,e),t.prototype.fetchUserPassbook=function(e){var n={url:r.urlConfig.getUserPassbook(),data:e};return this.post(n)},t.prototype.fetchAllEntity=function(e){var n={url:r.urlConfig.getAllEntity(),data:e};return this.post(n)},t.ctorParameters=function(){return[{type:i.HttpClient}]},t.ngInjectableDef=n.ɵɵdefineInjectable({factory:function(){return new t(n.ɵɵinject(i.HttpClient))},token:t,providedIn:"root"}),t=u([n.Injectable({providedIn:"root"})],t)}(r.DataService),x=function(e){function t(n){return e.call(this,n)||this}return m(t,e),t.prototype.getActivityById=function(e){var n={url:r.urlConfig.getEntityById(e.id),data:e};return this.post(n)},t.prototype.getUserdetailsFromRegistry=function(e){var n={url:r.urlConfig.getUserdetailsFromRegistry(e.id)};return this.get(n).pipe(o.map((function(e){return e.result.response})))},t.ctorParameters=function(){return[{type:i.HttpClient}]},t.ngInjectableDef=n.ɵɵdefineInjectable({factory:function(){return new t(n.ɵɵinject(i.HttpClient))},token:t,providedIn:"root"}),t=u([n.Injectable({providedIn:"root"})],t)}(r.DataService),C=function(){function e(e,n,t){this.gainedService=e,this.configService=n,this.activeSummaryService=t,this.loading=!1,this.panelOpenState=!1,this.selectedProficiencyIndex=-1,this.selectedDisplayLevel=-1,this.requestUtil=new y}return e.prototype.ngOnInit=function(){var e=this;this.getUserDetails().subscribe((function(n){e.profileData=n.profileDetails.preferences.language})),this.loading=!0;var n=this.getAllEntity(),r=this.getAllUserPassbook();a.forkJoin([n,r]).subscribe((function(n){var r=e.requestUtil.formatedGainedCompetency(n[0].result.response,n[1].result.content,e.profileData);if(e.gainedproficencyData=r,e.gainedproficencyData){var i=[];t.forEach(e.gainedproficencyData,(function(e){e.competencyStoreData&&i.push(e.competencyStoreData)})),e.gainedService.competencyData.next(i)}e.loading=!1}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.activeSummaryService.getUserdetailsFromRegistry(e)},e.prototype.getAllUserPassbook=function(){return this.gainedService.fetchUserPassbook({request:{typeName:"competency"}})},e.prototype.getAllEntity=function(){return this.gainedService.fetchAllEntity({search:{type:"Competency"}})},e.prototype.selectLevel=function(e,n){e!==this.selectedProficiencyIndex||-1!==n&&n!==this.selectedDisplayLevel?this.selectedProficiencyIndex=e:this.selectedProficiencyIndex=-1,this.selectedDisplayLevel=n},e.ctorParameters=function(){return[{type:b},{type:c.ConfigService},{type:x}]},e=u([n.Component({selector:"lib-gained-comptency-card",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<ng-container *ngFor="let proficency of gainedproficencyData; let i = index">\r\n <div class="card-container example-container container-balanced">\r\n <ng-container *ngIf="proficency?.title">\r\n <div class="title">{{ proficency?.title }}</div>\r\n </ng-container>\r\n\r\n <div class="levelsTitle" i18n>Levels:</div>\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n [expanded]="i === selectedProficiencyIndex"\r\n class="w-full panel"\r\n hideToggle\r\n >\r\n <mat-expansion-panel-header\r\n class="flex-between items-center panel-header w-full"\r\n >\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container\r\n *ngFor="let proficiencyLevel of proficency?.proficiencyLevels"\r\n >\r\n <ng-container *ngIf="proficiencyLevel.selected; else addLevel">\r\n <div\r\n (click)="\r\n $event.stopPropagation();\r\n selectLevel(i, proficiencyLevel.displayLevel)\r\n "\r\n class="level mb-1"\r\n [ngStyle]="{ \'background-color\': proficiencyLevel.color }"\r\n [ngClass]="{\r\n \'individual-select\':\r\n selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === proficiencyLevel?.displayLevel\r\n }"\r\n >\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-container>\r\n <ng-template #addLevel>\r\n <div (click)="$event.stopPropagation()" class="level mb-1">\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <div\r\n class="level mb-1"\r\n (click)="$event.stopPropagation(); selectLevel(i, -1)"\r\n >\r\n <mat-icon\r\n [ngClass]="{ arrowReverse: selectedProficiencyIndex === i }"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <div>\r\n <span class="log-header" i18n>Log:</span>\r\n <ng-container\r\n *ngFor="let log of proficency?.logs; let logIndex = index; let last = last; "\r\n >\r\n <ng-container\r\n *ngIf="\r\n selectedDisplayLevel === -1 ||\r\n (selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === log.level)\r\n "\r\n >\r\n <div class="log" [ngClass]="{\'border-bottom-0\': last}">\r\n <div class="flex">\r\n <ng-container *ngIf="log.header">\r\n <span class=""\r\n i18n>Level </span> <span>{{ log.level }}: {{ log.header }}</span\r\n >\r\n <span class="log-date mr-2">{{\r\n log?.date | date : "dd/MM/yyyy"\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf="log.description">\r\n <div\r\n class="mt-2"\r\n [ngClass]="{ \'hide-content\': !log.keyboardArrowUp }"\r\n >\r\n {{ log.description }}\r\n </div>\r\n <div class="justify-end">\r\n <mat-icon\r\n (click)="log.keyboardArrowUp = !log.keyboardArrowUp"\r\n class="mr-3"\r\n [ngClass]="{ arrowReverse: log.keyboardArrowUp }"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n </div>\r\n \x3c!-- <hr> --\x3e\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.date{font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-300)}.justify-end{display:flex;justify-content:flex-end}.card-container{background:var(--white);border-bottom:1px solid #ddd;padding:5px 4px}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:18px}.levelsTitle{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.panel{box-shadow:0 0!important;padding:1px 3px 1px 0}.panel-header{padding:0!important;background:0 0!important}.panel-header-description{margin:0!important;padding:1px}.arrowReverse{transform:rotateX(180deg)}.level{width:47px;max-width:16.6%;height:36px;display:flex;justify-content:center;align-items:center;box-shadow:0 0 2.17333px rgba(0,0,0,.2509803922)}.log-header{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.log{font-style:italic;font-size:14px;line-height:16px;letter-spacing:-.02em;color:var(--gray-400);border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.log-date{font-style:normal;font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-400);margin:0 auto}::ng-deep .mat-expansion-panel-body{padding:0!important}:host ::ng-deep .mat-content{display:unset!important}.hide-content{display:none}.individual-select{border:2px solid #1c5d95}"]})],e)}(),w=function(){function e(e){this.router=e,this.stateChange=new n.EventEmitter,this.tabIndex=1}return e.prototype.ngOnInit=function(){this.tabIndex=1},e.prototype.navigateBack=function(){this.router.navigate(["/app/profile-view"])},e.prototype.changeTab=function(e){this.tabIndex=e.index},e.prototype.startSelfAssessment=function(){this.stateChange.emit({navigation:!0})},e.ctorParameters=function(){return[{type:l.Router}]},u([n.Output()],e.prototype,"stateChange",void 0),e=u([n.Component({selector:"lib-competency-dashboard",template:'<div class="content">\r\n <mat-icon (click)="navigateBack()" class="cursor-pointer mb-3"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class="pl-2 mb-0" i18n>Competency Dashboard</h1>\r\n\r\n <div class="pl-2 tab-container">\r\n \x3c!-- <ng-container *ngIf="tabIndex === 1">\r\n <div class="sortIcon">\r\n <img src="./assets/comptency/images/filter.png" />\r\n </div>\r\n </ng-container> --\x3e\r\n <mat-tab-group\r\n [ngClass]="{ \'header-width-icon\': tabIndex === 1 }"\r\n class="remove-border-bottom"\r\n animationDuration="0ms"\r\n [selectedIndex]="tabIndex"\r\n (selectedTabChange)="changeTab($event)"\r\n >\r\n \x3c!-- Active Summary as Job Description --\x3e\r\n <mat-tab i18n-label label="Job Description">\r\n <h4 class="mt-4 mb-1" i18n>Roles</h4>\r\n <lib-active-summary *ngIf="tabIndex === 0"></lib-active-summary>\r\n </mat-tab>\r\n\r\n \x3c!-- gained as Passbook --\x3e\r\n <mat-tab i18n-label label="Passbook">\r\n <div class="legend-container">\r\n <div class="legend legend-blue"></div>\r\n <h5 i18n>External</h5>\r\n <div class="legend legend-green"></div>\r\n <h5 i18n>Self</h5>\r\n <div class="legend legend-yellow"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf="tabIndex === 1"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n \x3c!-- required --\x3e\r\n <mat-tab i18n-label label="Required">\r\n <div class="required-comperencies">\r\n <div class="mt-2 tab-badge" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf="tabIndex === 2"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.content{max-width:90%}.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"]})],e)}(),I=function(){function e(e,n,t){this.activeSummaryService=e,this.configService=n,this.gainedService=t,this.panelOpenState=!0,this.loading=!1,this.acordianLoading=!1,this.requestUtil=new y}return e.prototype.ngOnInit=function(){var e=this;this.getProgress(),this.loading=!0,this.getUserDetails().pipe(o.mergeMap((function(n){if(e.profileData=n.profileDetails.profileReq,e.language=n.profileDetails.preferences.language,e.language||(e.language="en"),e.profileData)return e.getActivityByRole()}))).subscribe((function(n){var r=e.requestUtil.formatedActivitityByPostion(n,e.language);e.roleactivitySummaries=r,t.forEach(e.roleactivitySummaries,(function(n){n.id&&e.getActivityByRoleId(n.id)})),console.log(e.roleactivitySummaries),e.loading=!1}))},e.prototype.getProgress=function(){var e=this;this.gainedService.competencyData$.subscribe((function(n){e.competencyProgress=n}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.activeSummaryService.getUserdetailsFromRegistry(e)},e.prototype.getActivityByRole=function(){var e;this.profileData.professionalDetails&&(e=this.profileData.professionalDetails[0].designation);var n={filter:{isDetail:!0},id:this.designationMap(e)};return this.activeSummaryService.getActivityById(n)},e.prototype.designationMap=function(e){var n={AWW:95,ANM:210};return n.hasOwnProperty(e)?n[e]:1},e.prototype.getActivityByRoleId=function(e){var n=this;this.acordianLoading=!0;var r=t.findIndex(this.roleactivitySummaries,{id:e});this.roleactivitySummaries[r].activities=[],this.getEntityById(e).pipe(o.mergeMap((function(e){var i=n.requestUtil.formatedActivitityByRoleId(e,n.language);n.roleactivitySummaries[r].activities=i;var o=t.map(n.roleactivitySummaries[r].activities,"cid"),c=[];return t.forEach(o,(function(e){c.push(n.getEntityById(e))})),n.acordianLoading=!1,a.forkJoin.apply(void 0,function(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(f(arguments[n]));return e}(c))}))).subscribe((function(e){var i=n.requestUtil.formatedCompetency(e,n.competencyProgress,n.language);n.roleactivitySummaries[r].activities=t.values(t.merge(t.keyBy(i,"id"),t.keyBy(n.roleactivitySummaries[r].activities,"cid"))),n.roleactivitySummaries[r].averagePercentage=[];var a=n.getAveragepercentage(i);n.roleactivitySummaries[r].averagePercentage=a}))},e.prototype.getEntityById=function(e){var n={filter:{isDetail:!0},id:e};return this.activeSummaryService.getActivityById(n)},e.prototype.getAveragepercentage=function(e){var n=e.length,r=[];return t.forEach(e,(function(e){r.push(e.completionPercentage)})),t.round(t.sum(r)/n)},e.prototype.ngOnDestroy=function(){this.unsubscribe&&this.unsubscribe.unsubscribe()},e.ctorParameters=function(){return[{type:x},{type:c.ConfigService},{type:b}]},e=u([n.Component({selector:"lib-active-summary",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<ng-container *ngFor="let role of roleactivitySummaries">\r\n <div class="card-container">\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n class=""\r\n (opened)="panelOpenState = true"\r\n (closed)="panelOpenState = false"\r\n >\r\n <mat-expansion-panel-header\r\n class="flex-between items-center w-full"\r\n collapsedHeight="auto"\r\n expandedHeight="auto"\r\n >\r\n\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngIf="role?.roles">\r\n <div class="flex flex-column w-full">\r\n <div class="title">{{ role?.roles }}</div>\r\n <div class="progress-status-none" *ngIf="role?.averagePercentage == 0"></div>\r\n <div class="progress-status" *ngIf="role?.averagePercentage < 100 && role?.averagePercentage != 0" i18n>In Progress</div>\r\n <div class="progress-status" *ngIf="role?.averagePercentage == 100" i18n>Completed</div>\r\n <ng-container >\r\n \x3c!-- \'warn-bar\': role?.averagePercentage < 100 && role?.averagePercentage != 0, --\x3e\r\n <div [ngClass]="{\'green-bar\': role?.averagePercentage == 100 , \'warn-bar\': role?.averagePercentage < 100 && role?.averagePercentage != 0 }">\r\n <mat-progress-bar class="bar-progress-colour" mode="determinate" value={{role?.averagePercentage}} class="mt-1"></mat-progress-bar>\r\n </div>\r\n </ng-container>\r\n\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <lib-app-loader *ngIf="acordianLoading === true"></lib-app-loader>\r\n <div class="expand-container" *ngIf="roleactivitySummaries.length>0">\r\n \x3c!-- list of activity --\x3e\r\n <div class="activity-badge" i18n>Activities</div>\r\n <ng-container\r\n *ngFor="let activity of role?.activities; let i = index"\r\n >\r\n <div class="activity-title" *ngIf="activity.title">\r\n - {{ activity.title }}\r\n </div>\r\n\r\n\r\n </ng-container>\r\n <ng-container *ngIf="role?.activities">\r\n <lib-competency-accordion [competencyList]="role?.activities"></lib-competency-accordion>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n\r\n </div>\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px}.spinner-loading{display:flex;justify-content:center}.title{font-size:20px;line-height:19px;letter-spacing:-.02em;color:var(--blue)}.icon-down{place-self:flex-end;color:var(--black)!important}:host ::ng-deep .mat-expansion-panel{height:auto}:host ::ng-deep .mat-expansion-panel-header:hover{background:inherit!important}:host ::ng-deep .mat-expansion-panel-body{padding:0 0 16px!important}:host ::ng-deep .mat-expansion-panel-header{border-radius:10px!important;padding:10px 10px 0}:host ::ng-deep .mat-expansion-indicator:after{color:var(--black)!important}:host ::ng-deep .mat-expansion-panel-header-description{margin-right:0!important}.activity-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black);margin-bottom:10px;padding:0 10px}.competency-container{background:var(--white);box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;padding:10px;margin:18px 0 15px}.competency-container .competency-title{font-size:20px;line-height:25px;letter-spacing:-.02em;color:var(--black);margin-bottom:20px}.competency-container .level{font-size:24px;line-height:24px;letter-spacing:-.02em;color:var(--blue)}.expand-container{padding:15px 0 0}.activity-badge{font-weight:400;font-size:14px;color:#1c5d95;background:#ebf4fb;border-radius:50px;width:-moz-fit-content;width:fit-content;padding:5px 20px;margin:0 10px 15px}.mat-progress-bar{border-radius:40px;height:4px}.value{position:relative;bottom:19px;color:#1c5d95;width:275px;display:flex;justify-content:center}::ng-deep.green-bar .theme-igot.day-mode .mat-progress-bar-fill::after{background:no-repeat padding-box #34d6a4!important;border-radius:40px}::ng-deep.warn-bar .mat-progress-bar-fill::after{background:no-repeat padding-box #f1cf8a!important;border-radius:40px}::ng-deep.theme-igot.day-mode .mat-progress-bar-buffer{background-color:#f5f5f5}.progress-status{font-style:italic;font-weight:400;font-size:12px;color:#000;place-self:end}.progress-status-none{visibility:hidden}"]})],e)}(),k=function(){function e(){}return e.prototype.ngOnInit=function(){console.log("list",this.competencyList)},u([n.Input()],e.prototype,"competencyList",void 0),e=u([n.Component({selector:"lib-competency-accordion",template:'<div class="competency-badge" i18n>Competencies :</div>\r\n<ng-container *ngFor="let competency of competencyList; let i = index">\r\n <ng-container *ngIf="competency.competency">\r\n <mat-accordion>\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header\r\n class="flex-between items-center w-full"\r\n collapsedHeight="auto"\r\n expandedHeight="auto"\r\n >\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngIf="competency.competency">\r\n <div class="flex flex-row align-items-center gap-2">\r\n <div>\r\n <ng-container *ngIf="competency.completionPercentage == 100">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon\r\n >\r\n </ng-container>\r\n <ng-container *ngIf="competency.completionPercentage < 100">\r\n <mat-progress-spinner\r\n diameter="20"\r\n strokeWidth="2"\r\n mode="determinate"\r\n [value]="competency.completionPercentage"\r\n ></mat-progress-spinner>\r\n </ng-container>\r\n </div>\r\n <div class="competency-title">{{ competency.competency }}</div>\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n \x3c!-- <lib-app-loader *ngIf="acordianLoading === true"></lib-app-loader> --\x3e\r\n <div class="expand-container">\r\n \x3c!-- list of levels --\x3e\r\n <div class="Levels-badge" i18n>Levels :</div>\r\n <ng-container *ngFor="let level of competency.levels; let i = index">\r\n <div class="flex flex-row align-items-center gap-2">\r\n <div>\r\n <ng-container *ngIf="level.achived">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n <ng-container *ngIf="!level.achived" >\r\n <mat-icon class="non-progress cursor-pointer"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n </div>\r\n <div class="Levels-title">{{ i + 1 }} : {{ level.name }}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n <hr />\r\n </ng-container>\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.competency-badge{font-weight:400;font-size:14px;color:#1c5d95;padding:0 10px;margin-top:20px}.competency-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black)}.expand-container{padding:0 10px}.Levels-badge{font-size:14px;color:#1c5d95;margin-bottom:5px}.circle-tick{display:flex;justify-content:center;align-items:center;color:#27ae60;font-size:18px!important}.non-progress{visibility:hidden}"]})],e)}(),D=function(){function e(){}return e=u([n.NgModule({declarations:[h,C,w,I,k],imports:[s.CommonModule,p.MatTabsModule,p.MatIconModule,p.MatExpansionModule,p.MatProgressBarModule,p.MatProgressSpinnerModule,i.HttpClientModule,r.CoreModule,d.SelfAssessmentModule],exports:[h,C,w,I]})],e)}();e.CompetencyDashboardComponent=w,e.CompetencyModule=D,e.GainedComptencyCardComponent=C,e.RequestUtil=y,e.RequiredComptencyCardComponent=h,e.ɵa=v,e.ɵb=b,e.ɵc=x,e.ɵd=I,e.ɵe=k,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
***************************************************************************** */var g=function(e,n){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])})(e,n)};function m(e,n){function t(){this.constructor=e}g(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}function u(e,n,t,r){var i,a=arguments.length,o=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,n,t,r);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(o=(a<3?i(o):a>3?i(n,t,o):i(n,t))||o);return a>3&&o&&Object.defineProperty(n,t,o),o}function f(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,i,a=t.call(e),o=[];try{for(;(void 0===n||n-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(t=a.return)&&t.call(a)}finally{if(i)throw i.error}}return o}var y=function(){function e(){var e=this;this.formatedActivities=function(e){if(!t.isEmpty(e))return e},this.formatedActivitityByPostion=function(n,r){if(t.get(n,"result")){var i=t.get(n,"result.response").children;if(i.length>0){var a=t.reduce(i,(function(n,i){return n.push({roles:"hi"==r?e.getHiName(i):t.get(i,"name"),id:t.get(i,"id"),description:t.get(i,"description"),averagePercentage:0,code:t.get(i.additionalProperties,"Code")}),n}),[]);return a=t.sortBy(a,[function(e){return e.code}])}}},this.formatedActivitityByRoleId=function(n,r){if(t.get(n,"result")){var i=t.get(n,"result.response").children;if(i.length>0){var a=t.reduce(i,(function(n,i){return n.push({title:"hi"==r?e.getHiName(i):t.get(i,"name"),cid:t.get(i,"id"),description:t.get(i,"description"),code:t.get(i.additionalProperties,"Code")}),n}),[]);return t.sortBy(a,[function(e){return e.code}])}}},this.formatedCompetency=function(n,r,i){var a=[];return t.forEach(n,(function(n){if(t.get(n,"result")){var o=t.get(n,"result.response").children;o.length>0&&t.forEach(o,(function(o){a.push({levels:e.getLevels(t.get(o,"id"),r,i),competency:"hi"==i?e.getHiName(o):t.get(o,"name"),id:t.get(o,"id"),description:t.get(o,"description"),cid:t.get(n,"result.response").id,lastLevel:e.getheighestLevel(t.get(o,"id"),r),completionPercentage:e.getCompeletionPercentage(t.get(o,"id"),r),code:t.get(o.additionalProperties,"Code")})}))}})),a=t.sortBy(a,[function(e){return e.code}]),t.uniqBy(a,"id")}}return e.prototype.getHiName=function(e){return t.get(e.additionalProperties,"lang-hi-name")?t.get(e.additionalProperties,"lang-hi-name"):t.get(e,"name")},e.prototype.getLevels=function(e,n,r){var i=[{name:"hi"==r?"स्तर 1":"Level 1",achived:!1,level:"1"},{name:"hi"==r?"स्तर 2":"Level 2",achived:!1,level:"2"},{name:"hi"==r?"स्तर 3":"Level 3",achived:!1,level:"3"},{name:"hi"==r?"स्तर 4":"Level 4",achived:!1,level:"4"},{name:"hi"==r?"स्तर 5":"Level 5",achived:!1,level:"5"}],a=null;return t.forEach(n,(function(n){t.toNumber(n.competencyId)===e&&(a=t.uniq(n.levelsAchieve))})),t.forEach(i,(function(e){t.forEach(a,(function(n){n==e.level&&(e.achived=!0)}))})),i},e.prototype.getheighestLevel=function(e,n){var r="";return t.forEach(n,(function(n){t.toNumber(n.competencyId)===e&&(r=n.levelId.competencyLevelId)})),r},e.prototype.getCompeletionPercentage=function(e,n){var r=0;return t.forEach(n,(function(n){t.toNumber(n.competencyId)===e&&(r=t.toNumber(n.levelId.competencyLevelId))})),r=100*r/5},e.prototype.formatedGainedCompetency=function(e,n,r){var i=this,a=[];return t.forEach(e,(function(o){var c=t.get(o,"id");t.forEach(n,(function(n){if(n.competencies.hasOwnProperty(c)){var o=n.competencies[c];a.push({title:"hi"==r?i.getHiTitle(c,e,o):t.get(o,"additionalParams.competencyName"),logs:i.acquiredPassbookLogs(t.get(o,"acquiredDetails")),proficiencyLevels:i.acauiredChannelColourCode(t.get(o,"acquiredDetails")),competencyStoreData:i.competencyStoreDataFomat(o),titleHi:i.getHiTitle(c,e,o)})}}))})),a},e.prototype.getHiTitle=function(e,n,r){var i;return t.forEach(n,(function(n){n.id==e&&(i=t.get(n.additionalProperties,"lang-hi-name")?t.get(n.additionalProperties,"lang-hi-name"):t.get(r,"additionalParams.competencyName"))})),i},e.prototype.acquiredPassbookLogs=function(e){var n=[];return e.length>0&&t.forEach(e,(function(e){n.push({header:t.get(e,"courseName")?t.get(e,"courseName"):t.get(e,"acquiredChannel"),date:t.get(e,"createdDate"),description:t.get(e,"additionalParams.description"),keyboardArrowUp:!0,level:t.toNumber(t.get(e,"competencyLevelId"))})})),n},e.prototype.acauiredChannelColourCode=function(e){var n=[{color:"#FFFBB0",displayLevel:1,selected:!1},{color:"#FFFBB0",displayLevel:2,selected:!1},{color:"#FFFBB0",displayLevel:3,selected:!1},{color:"#FFFBB0",displayLevel:4,selected:!1},{color:"#FFFBB0",displayLevel:5,selected:!1}];return t.forEach(e,(function(e){switch(t.get(e,"acquiredChannel")){case"course":case"Course":t.forEach(n,(function(n){n.displayLevel==t.get(e,"competencyLevelId")&&(n.color="#FFFBB0",n.selected=!0)}));break;case"selfAssessment":t.forEach(n,(function(n){n.displayLevel==t.get(e,"competencyLevelId")&&(n.color="#A4DFCA",n.selected=!0)}));break;case"admin":t.forEach(n,(function(n){n.displayLevel==t.get(e,"competencyLevelId")&&(n.color="#7cb5e6",n.selected=!0)}));break;default:t.forEach(n,(function(n){n.displayLevel==t.get(e,"competencyLevelId")&&(n.color="#FFFBB0",n.selected=!1)}))}})),n},e.prototype.competencyStoreDataFomat=function(e){var n=[];return e.acquiredDetails&&t.forEach(e.acquiredDetails,(function(e){e.competencyLevelId&&n.push(e.competencyLevelId)})),{competencyId:e.competencyId,competencyName:e.additionalParams.competencyName,levelId:t.maxBy(e.acquiredDetails,"competencyLevelId"),levelsAchieve:n}},e}(),v=function(e){function t(n){return e.call(this,n)||this}return m(t,e),t.prototype.getRequiredCompetencyById=function(e){var n={url:r.urlConfig.getEntityById(3),data:e};return console.log("reqBody",n),this.post(n)},t.ctorParameters=function(){return[{type:i.HttpClient}]},t.ngInjectableDef=n.ɵɵdefineInjectable({factory:function(){return new t(n.ɵɵinject(i.HttpClient))},token:t,providedIn:"root"}),t=u([n.Injectable({providedIn:"root"})],t)}(r.DataService),h=function(){function e(e){this.requiredCompetencyService=e,this.competencyData=[{title:"Procurement and Distribution of HCM",description:"Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)",requiredLevel:"level 4"},{title:"Store management and planning and coordination of THR and Dry ration",description:"Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ",requiredLevel:"level 4"},{title:"Procurement and Distribution of HCM",description:"Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)",requiredLevel:"level 4"},{title:"Early Childhood Care Education",description:"Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ",requiredLevel:"level 4"},{title:"Procurement and Distribution of HCM",description:"Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)",requiredLevel:"level 4"},{title:"Early Childhood Care Education",description:"Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ",requiredLevel:"level 4"}],this.panelOpenState=!0,this.customCollapsedHeight="100px",this.customExpandedHeight="100px",this.loading=!1,this.logs=[{index:1,header:"Understands HCM guidelines"},{index:2,header:"Lists raw material required"},{index:3,header:"Plans for storage"},{index:4,header:"Motivates the AWH and children on optimal hygiene and handwashing practices"},{index:5,header:"Course-Name Completion"}],this.requestUtil=new y}return e.prototype.ngOnInit=function(){},e.prototype.getRequiredByPostion=function(){return this.requiredCompetencyService.getRequiredCompetencyById({filter:{isDetail:!0}})},e.prototype.ngOnDestroy=function(){},e.ctorParameters=function(){return[{type:v}]},e=u([n.Component({selector:"lib-required-comptency-card",template:"<lib-self-assessment></lib-self-assessment>",styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.start-btn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-size:20px;cursor:pointer;margin-top:15px}.log-title{font-size:14px;line-height:24px;letter-spacing:-.02em;color:#1c5d95}.log{border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.logs{padding:5px}.log-items{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}:host ::ng-deep .mat-expansion-panel-header:hover{background:rgba(255,255,255,.98)!important}:host ::ng-deep .mat-content{display:flex!important}.level{place-self:flex-end}"]})],e)}(),b=function(e){function t(n){var t=e.call(this,n)||this;return t.competencyData=new a.BehaviorSubject(void 0),t.competencyData$=t.competencyData.asObservable(),t}return m(t,e),t.prototype.fetchUserPassbook=function(e){var n={url:r.urlConfig.getUserPassbook(),data:e};return this.post(n)},t.prototype.fetchAllEntity=function(e){var n={url:r.urlConfig.getAllEntity(),data:e};return this.post(n)},t.ctorParameters=function(){return[{type:i.HttpClient}]},t.ngInjectableDef=n.ɵɵdefineInjectable({factory:function(){return new t(n.ɵɵinject(i.HttpClient))},token:t,providedIn:"root"}),t=u([n.Injectable({providedIn:"root"})],t)}(r.DataService),x=function(e){function t(n){return e.call(this,n)||this}return m(t,e),t.prototype.getActivityById=function(e){var n={url:r.urlConfig.getEntityById(e.id),data:e};return this.post(n)},t.prototype.getUserdetailsFromRegistry=function(e){var n={url:r.urlConfig.getUserdetailsFromRegistry(e.id)};return this.get(n).pipe(o.map((function(e){return e.result.response})))},t.ctorParameters=function(){return[{type:i.HttpClient}]},t.ngInjectableDef=n.ɵɵdefineInjectable({factory:function(){return new t(n.ɵɵinject(i.HttpClient))},token:t,providedIn:"root"}),t=u([n.Injectable({providedIn:"root"})],t)}(r.DataService),C=function(){function e(e,n,t){this.gainedService=e,this.configService=n,this.activeSummaryService=t,this.loading=!1,this.panelOpenState=!1,this.selectedProficiencyIndex=-1,this.selectedDisplayLevel=-1,this.requestUtil=new y}return e.prototype.ngOnInit=function(){var e=this;this.getUserDetails().subscribe((function(n){e.profileData=n.profileDetails.preferences?n.profileDetails.preferences.language:"en"})),this.loading=!0;var n=this.getAllEntity(),r=this.getAllUserPassbook();a.forkJoin([n,r]).subscribe((function(n){var r=e.requestUtil.formatedGainedCompetency(n[0].result.response,n[1].result.content,e.profileData);if(e.gainedproficencyData=r,e.gainedproficencyData){var i=[];t.forEach(e.gainedproficencyData,(function(e){e.competencyStoreData&&i.push(e.competencyStoreData)})),e.gainedService.competencyData.next(i)}e.loading=!1}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.activeSummaryService.getUserdetailsFromRegistry(e)},e.prototype.getAllUserPassbook=function(){return this.gainedService.fetchUserPassbook({request:{typeName:"competency"}})},e.prototype.getAllEntity=function(){return this.gainedService.fetchAllEntity({search:{type:"Competency"}})},e.prototype.selectLevel=function(e,n){e!==this.selectedProficiencyIndex||-1!==n&&n!==this.selectedDisplayLevel?this.selectedProficiencyIndex=e:this.selectedProficiencyIndex=-1,this.selectedDisplayLevel=n},e.ctorParameters=function(){return[{type:b},{type:c.ConfigService},{type:x}]},e=u([n.Component({selector:"lib-gained-comptency-card",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<ng-container *ngFor="let proficency of gainedproficencyData; let i = index">\r\n <div class="card-container example-container container-balanced">\r\n <ng-container *ngIf="proficency?.title">\r\n <div class="title">{{ proficency?.title }}</div>\r\n </ng-container>\r\n\r\n <div class="levelsTitle" i18n>Levels:</div>\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n [expanded]="i === selectedProficiencyIndex"\r\n class="w-full panel"\r\n hideToggle\r\n >\r\n <mat-expansion-panel-header\r\n class="flex-between items-center panel-header w-full"\r\n >\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container\r\n *ngFor="let proficiencyLevel of proficency?.proficiencyLevels"\r\n >\r\n <ng-container *ngIf="proficiencyLevel.selected; else addLevel">\r\n <div\r\n (click)="\r\n $event.stopPropagation();\r\n selectLevel(i, proficiencyLevel.displayLevel)\r\n "\r\n class="level mb-1"\r\n [ngStyle]="{ \'background-color\': proficiencyLevel.color }"\r\n [ngClass]="{\r\n \'individual-select\':\r\n selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === proficiencyLevel?.displayLevel\r\n }"\r\n >\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-container>\r\n <ng-template #addLevel>\r\n <div (click)="$event.stopPropagation()" class="level mb-1">\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <div\r\n class="level mb-1"\r\n (click)="$event.stopPropagation(); selectLevel(i, -1)"\r\n >\r\n <mat-icon\r\n [ngClass]="{ arrowReverse: selectedProficiencyIndex === i }"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <div>\r\n <span class="log-header" i18n>Log:</span>\r\n <ng-container\r\n *ngFor="let log of proficency?.logs; let logIndex = index; let last = last; "\r\n >\r\n <ng-container\r\n *ngIf="\r\n selectedDisplayLevel === -1 ||\r\n (selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === log.level)\r\n "\r\n >\r\n <div class="log" [ngClass]="{\'border-bottom-0\': last}">\r\n <div class="flex">\r\n <ng-container *ngIf="log.header">\r\n <span class=""\r\n i18n>Level </span> <span>{{ log.level }}: {{ log.header }}</span\r\n >\r\n <span class="log-date mr-2">{{\r\n log?.date | date : "dd/MM/yyyy"\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf="log.description">\r\n <div\r\n class="mt-2"\r\n [ngClass]="{ \'hide-content\': !log.keyboardArrowUp }"\r\n >\r\n {{ log.description }}\r\n </div>\r\n <div class="justify-end">\r\n <mat-icon\r\n (click)="log.keyboardArrowUp = !log.keyboardArrowUp"\r\n class="mr-3"\r\n [ngClass]="{ arrowReverse: log.keyboardArrowUp }"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n </div>\r\n \x3c!-- <hr> --\x3e\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.date{font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-300)}.justify-end{display:flex;justify-content:flex-end}.card-container{background:var(--white);border-bottom:1px solid #ddd;padding:5px 4px}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:18px}.levelsTitle{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.panel{box-shadow:0 0!important;padding:1px 3px 1px 0}.panel-header{padding:0!important;background:0 0!important}.panel-header-description{margin:0!important;padding:1px}.arrowReverse{transform:rotateX(180deg)}.level{width:47px;max-width:16.6%;height:36px;display:flex;justify-content:center;align-items:center;box-shadow:0 0 2.17333px rgba(0,0,0,.2509803922)}.log-header{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.log{font-style:italic;font-size:14px;line-height:16px;letter-spacing:-.02em;color:var(--gray-400);border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.log-date{font-style:normal;font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-400);margin:0 auto}::ng-deep .mat-expansion-panel-body{padding:0!important}:host ::ng-deep .mat-content{display:unset!important}.hide-content{display:none}.individual-select{border:2px solid #1c5d95}"]})],e)}(),w=function(){function e(e){this.router=e,this.stateChange=new n.EventEmitter,this.tabIndex=1}return e.prototype.ngOnInit=function(){this.tabIndex=1},e.prototype.navigateBack=function(){this.router.navigate(["/app/profile-view"])},e.prototype.changeTab=function(e){this.tabIndex=e.index},e.prototype.startSelfAssessment=function(){this.stateChange.emit({navigation:!0})},e.ctorParameters=function(){return[{type:l.Router}]},u([n.Output()],e.prototype,"stateChange",void 0),e=u([n.Component({selector:"lib-competency-dashboard",template:'<div class="content">\r\n <mat-icon (click)="navigateBack()" class="cursor-pointer mb-3"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class="pl-2 mb-0" i18n>Competency Dashboard</h1>\r\n\r\n <div class="pl-2 tab-container">\r\n \x3c!-- <ng-container *ngIf="tabIndex === 1">\r\n <div class="sortIcon">\r\n <img src="./assets/comptency/images/filter.png" />\r\n </div>\r\n </ng-container> --\x3e\r\n <mat-tab-group\r\n [ngClass]="{ \'header-width-icon\': tabIndex === 1 }"\r\n class="remove-border-bottom"\r\n animationDuration="0ms"\r\n [selectedIndex]="tabIndex"\r\n (selectedTabChange)="changeTab($event)"\r\n >\r\n \x3c!-- Active Summary as Job Description --\x3e\r\n <mat-tab i18n-label label="Job Description">\r\n <h4 class="mt-4 mb-1" i18n>Roles</h4>\r\n <lib-active-summary *ngIf="tabIndex === 0"></lib-active-summary>\r\n </mat-tab>\r\n\r\n \x3c!-- gained as Passbook --\x3e\r\n <mat-tab i18n-label label="Passbook">\r\n <div class="legend-container">\r\n <div class="legend legend-blue"></div>\r\n <h5 i18n>External</h5>\r\n <div class="legend legend-green"></div>\r\n <h5 i18n>Self</h5>\r\n <div class="legend legend-yellow"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf="tabIndex === 1"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n \x3c!-- required --\x3e\r\n <mat-tab i18n-label label="Required">\r\n <div class="required-comperencies">\r\n <div class="mt-2 tab-badge" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf="tabIndex === 2"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.content{max-width:90%}.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"]})],e)}(),I=function(){function e(e,n,t){this.activeSummaryService=e,this.configService=n,this.gainedService=t,this.panelOpenState=!0,this.loading=!1,this.acordianLoading=!1,this.requestUtil=new y}return e.prototype.ngOnInit=function(){var e=this;this.getProgress(),this.loading=!0,this.getUserDetails().pipe(o.mergeMap((function(n){if(e.profileData=n.profileDetails.profileReq,e.language=n.profileDetails.preferences?n.profileDetails.preferences.language:"en",e.language||(e.language="en"),e.profileData)return e.getActivityByRole()}))).subscribe((function(n){var r=e.requestUtil.formatedActivitityByPostion(n,e.language);e.roleactivitySummaries=r,t.forEach(e.roleactivitySummaries,(function(n){n.id&&e.getActivityByRoleId(n.id)})),console.log(e.roleactivitySummaries),e.loading=!1}))},e.prototype.getProgress=function(){var e=this;this.gainedService.competencyData$.subscribe((function(n){e.competencyProgress=n}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.activeSummaryService.getUserdetailsFromRegistry(e)},e.prototype.getActivityByRole=function(){var e;this.profileData.professionalDetails&&(e=this.profileData.professionalDetails[0].designation);var n={filter:{isDetail:!0},id:this.designationMap(e)};return this.activeSummaryService.getActivityById(n)},e.prototype.designationMap=function(e){var n={AWW:95,ANM:210};return n.hasOwnProperty(e)?n[e]:1},e.prototype.getActivityByRoleId=function(e){var n=this;this.acordianLoading=!0;var r=t.findIndex(this.roleactivitySummaries,{id:e});this.roleactivitySummaries[r].activities=[],this.getEntityById(e).pipe(o.mergeMap((function(e){var i=n.requestUtil.formatedActivitityByRoleId(e,n.language);n.roleactivitySummaries[r].activities=i;var o=t.map(n.roleactivitySummaries[r].activities,"cid"),c=[];return t.forEach(o,(function(e){c.push(n.getEntityById(e))})),n.acordianLoading=!1,a.forkJoin.apply(void 0,function(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(f(arguments[n]));return e}(c))}))).subscribe((function(e){var i=n.requestUtil.formatedCompetency(e,n.competencyProgress,n.language);n.roleactivitySummaries[r].activities=t.values(t.merge(t.keyBy(i,"id"),t.keyBy(n.roleactivitySummaries[r].activities,"cid"))),n.roleactivitySummaries[r].averagePercentage=[];var a=n.getAveragepercentage(i);n.roleactivitySummaries[r].averagePercentage=a}))},e.prototype.getEntityById=function(e){var n={filter:{isDetail:!0},id:e};return this.activeSummaryService.getActivityById(n)},e.prototype.getAveragepercentage=function(e){var n=e.length,r=[];return t.forEach(e,(function(e){r.push(e.completionPercentage)})),t.round(t.sum(r)/n)},e.prototype.ngOnDestroy=function(){this.unsubscribe&&this.unsubscribe.unsubscribe()},e.ctorParameters=function(){return[{type:x},{type:c.ConfigService},{type:b}]},e=u([n.Component({selector:"lib-active-summary",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<ng-container *ngFor="let role of roleactivitySummaries">\r\n <div class="card-container">\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n class=""\r\n (opened)="panelOpenState = true"\r\n (closed)="panelOpenState = false"\r\n >\r\n <mat-expansion-panel-header\r\n class="flex-between items-center w-full"\r\n collapsedHeight="auto"\r\n expandedHeight="auto"\r\n >\r\n\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngIf="role?.roles">\r\n <div class="flex flex-column w-full">\r\n <div class="title">{{ role?.roles }}</div>\r\n <div class="progress-status-none" *ngIf="role?.averagePercentage == 0"></div>\r\n <div class="progress-status" *ngIf="role?.averagePercentage < 100 && role?.averagePercentage != 0" i18n>In Progress</div>\r\n <div class="progress-status" *ngIf="role?.averagePercentage == 100" i18n>Completed</div>\r\n <ng-container >\r\n \x3c!-- \'warn-bar\': role?.averagePercentage < 100 && role?.averagePercentage != 0, --\x3e\r\n <div [ngClass]="{\'green-bar\': role?.averagePercentage == 100 , \'warn-bar\': role?.averagePercentage < 100 && role?.averagePercentage != 0 }">\r\n <mat-progress-bar class="bar-progress-colour" mode="determinate" value={{role?.averagePercentage}} class="mt-1"></mat-progress-bar>\r\n </div>\r\n </ng-container>\r\n\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <lib-app-loader *ngIf="acordianLoading === true"></lib-app-loader>\r\n <div class="expand-container" *ngIf="roleactivitySummaries.length>0">\r\n \x3c!-- list of activity --\x3e\r\n <div class="activity-badge" i18n>Activities</div>\r\n <ng-container\r\n *ngFor="let activity of role?.activities; let i = index"\r\n >\r\n <div class="activity-title" *ngIf="activity.title">\r\n - {{ activity.title }}\r\n </div>\r\n\r\n\r\n </ng-container>\r\n <ng-container *ngIf="role?.activities">\r\n <lib-competency-accordion [competencyList]="role?.activities"></lib-competency-accordion>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n\r\n </div>\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px}.spinner-loading{display:flex;justify-content:center}.title{font-size:20px;line-height:19px;letter-spacing:-.02em;color:var(--blue)}.icon-down{place-self:flex-end;color:var(--black)!important}:host ::ng-deep .mat-expansion-panel{height:auto}:host ::ng-deep .mat-expansion-panel-header:hover{background:inherit!important}:host ::ng-deep .mat-expansion-panel-body{padding:0 0 16px!important}:host ::ng-deep .mat-expansion-panel-header{border-radius:10px!important;padding:10px 10px 0}:host ::ng-deep .mat-expansion-indicator:after{color:var(--black)!important}:host ::ng-deep .mat-expansion-panel-header-description{margin-right:0!important}.activity-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black);margin-bottom:10px;padding:0 10px}.competency-container{background:var(--white);box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;padding:10px;margin:18px 0 15px}.competency-container .competency-title{font-size:20px;line-height:25px;letter-spacing:-.02em;color:var(--black);margin-bottom:20px}.competency-container .level{font-size:24px;line-height:24px;letter-spacing:-.02em;color:var(--blue)}.expand-container{padding:15px 0 0}.activity-badge{font-weight:400;font-size:14px;color:#1c5d95;background:#ebf4fb;border-radius:50px;width:-moz-fit-content;width:fit-content;padding:5px 20px;margin:0 10px 15px}.mat-progress-bar{border-radius:40px;height:4px}.value{position:relative;bottom:19px;color:#1c5d95;width:275px;display:flex;justify-content:center}::ng-deep.green-bar .theme-igot.day-mode .mat-progress-bar-fill::after{background:no-repeat padding-box #34d6a4!important;border-radius:40px}::ng-deep.warn-bar .mat-progress-bar-fill::after{background:no-repeat padding-box #f1cf8a!important;border-radius:40px}::ng-deep.theme-igot.day-mode .mat-progress-bar-buffer{background-color:#f5f5f5}.progress-status{font-style:italic;font-weight:400;font-size:12px;color:#000;place-self:end}.progress-status-none{visibility:hidden}"]})],e)}(),k=function(){function e(){}return e.prototype.ngOnInit=function(){console.log("list",this.competencyList)},u([n.Input()],e.prototype,"competencyList",void 0),e=u([n.Component({selector:"lib-competency-accordion",template:'<div class="competency-badge" i18n>Competencies :</div>\r\n<ng-container *ngFor="let competency of competencyList; let i = index">\r\n <ng-container *ngIf="competency.competency">\r\n <mat-accordion>\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header\r\n class="flex-between items-center w-full"\r\n collapsedHeight="auto"\r\n expandedHeight="auto"\r\n >\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngIf="competency.competency">\r\n <div class="flex flex-row align-items-center gap-2">\r\n <div>\r\n <ng-container *ngIf="competency.completionPercentage == 100">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon\r\n >\r\n </ng-container>\r\n <ng-container *ngIf="competency.completionPercentage < 100">\r\n <mat-progress-spinner\r\n diameter="20"\r\n strokeWidth="2"\r\n mode="determinate"\r\n [value]="competency.completionPercentage"\r\n ></mat-progress-spinner>\r\n </ng-container>\r\n </div>\r\n <div class="competency-title">{{ competency.competency }}</div>\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n \x3c!-- <lib-app-loader *ngIf="acordianLoading === true"></lib-app-loader> --\x3e\r\n <div class="expand-container">\r\n \x3c!-- list of levels --\x3e\r\n <div class="Levels-badge" i18n>Levels :</div>\r\n <ng-container *ngFor="let level of competency.levels; let i = index">\r\n <div class="flex flex-row align-items-center gap-2">\r\n <div>\r\n <ng-container *ngIf="level.achived">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n <ng-container *ngIf="!level.achived" >\r\n <mat-icon class="non-progress cursor-pointer"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n </div>\r\n <div class="Levels-title">{{ i + 1 }} : {{ level.name }}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n <hr />\r\n </ng-container>\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.competency-badge{font-weight:400;font-size:14px;color:#1c5d95;padding:0 10px;margin-top:20px}.competency-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black)}.expand-container{padding:0 10px}.Levels-badge{font-size:14px;color:#1c5d95;margin-bottom:5px}.circle-tick{display:flex;justify-content:center;align-items:center;color:#27ae60;font-size:18px!important}.non-progress{visibility:hidden}"]})],e)}(),D=function(){function e(){}return e=u([n.NgModule({declarations:[h,C,w,I,k],imports:[s.CommonModule,p.MatTabsModule,p.MatIconModule,p.MatExpansionModule,p.MatProgressBarModule,p.MatProgressSpinnerModule,i.HttpClientModule,r.CoreModule,d.SelfAssessmentModule],exports:[h,C,w,I]})],e)}();e.CompetencyDashboardComponent=w,e.CompetencyModule=D,e.GainedComptencyCardComponent=C,e.RequestUtil=y,e.RequiredComptencyCardComponent=h,e.ɵa=v,e.ɵb=b,e.ɵc=x,e.ɵd=I,e.ɵe=k,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=aastrika_npmjs-comptency-competency.umd.min.js.map |
@@ -471,3 +471,3 @@ (function (global, factory) { | ||
this.getUserDetails().pipe(operators.mergeMap(function (res) { | ||
_this.profileData = res.profileDetails.preferences.language; | ||
_this.profileData = res.profileDetails.preferences ? res.profileDetails.preferences.language : 'en'; | ||
if (!_this.profileData) { | ||
@@ -474,0 +474,0 @@ _this.profileData = 'en'; |
@@ -15,3 +15,3 @@ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/router"),require("@aastrika_npmjs/comptency/core"),require("@angular/common/http"),require("rxjs/operators"),require("@angular/common"),require("lodash-es"),require("@aastrika_npmjs/comptency/entry-module"),require("@angular/material")):"function"==typeof define&&define.amd?define("@aastrika_npmjs/comptency/self-assessment",["exports","@angular/core","@angular/router","@aastrika_npmjs/comptency/core","@angular/common/http","rxjs/operators","@angular/common","lodash-es","@aastrika_npmjs/comptency/entry-module","@angular/material"],e):e(((t=t||self).aastrika_npmjs=t.aastrika_npmjs||{},t.aastrika_npmjs.comptency=t.aastrika_npmjs.comptency||{},t.aastrika_npmjs.comptency["self-assessment"]={}),t.ng.core,t.ng.router,t.aastrika_npmjs.comptency.core,t.ng.common.http,t.rxjs.operators,t.ng.common,t.lodashEs,t.aastrika_npmjs.comptency["entry-module"],t.ng.material)}(this,(function(t,e,n,r,o,s,a,i,c,p){"use strict"; | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var l=function(t,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function u(t,e,n,r){var o,s=arguments.length,a=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}var f=function(t){function n(e){return t.call(this,e)||this}return function(t,e){function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(n,t),n.prototype.getCompetencyCourseIdentifier=function(t){var e={request:{filters:{primaryCategory:["Course"],contentType:["Course"],status:["Live"],competency:[!0],lang:"hi"==t?"hi":"en"}},sort:[{lastUpdatedOn:"desc"}]},n={url:r.urlConfig.getSearch(),data:e};return this.post(n)},n.prototype.fetchHiearchyDetails=function(t,e){var n={url:r.urlConfig.getHierachyDetails(t,e)};return this.get(n)},n.prototype.fetchPrgressDetails=function(t){var e={url:r.urlConfig.getContentProgress(t.request.courseId),data:t};return this.post(e)},n.prototype.getUserdetailsFromRegistry=function(t){var e={url:r.urlConfig.getUserdetailsFromRegistry(t.id)};return this.get(e).pipe(s.map((function(t){return t.result.response})))},n.ctorParameters=function(){return[{type:o.HttpClient}]},n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n(e.ɵɵinject(o.HttpClient))},token:n,providedIn:"root"}),n=u([e.Injectable({providedIn:"root"})],n)}(r.DataService),d=function(){function t(t,e){this.router=t,this.selfAssessmentService=e}return t.prototype.ngOnInit=function(){console.log(this.cardData)},t.prototype.startSelfAssesment=function(t){this.router.navigate(["app/user/self-assessment"],{queryParams:t})},t.prototype.viewCourses=function(t){t.competencyID&&this.router.navigate(["/app/search"],{queryParams:{q:[t.competencyID+"-1",t.competencyID+"-2",t.competencyID+"-3",t.competencyID+"-4",t.competencyID+"-5"],competency:!0},queryParamsHandling:"merge"})},t.ctorParameters=function(){return[{type:n.Router},{type:f}]},u([e.Input()],t.prototype,"cardData",void 0),u([e.Input()],t.prototype,"btnType",void 0),t=u([e.Component({selector:"lib-self-assessment-card",template:'<div class="card_box">\r\n <ng-container *ngIf="cardData?.title">\r\n <div class="title">{{ cardData?.title }}</div>\r\n </ng-container>\r\n \x3c!-- <ng-container *ngIf="cardData?.description">\r\n <div class="description">{{ cardData?.description }}</div>\r\n </ng-container> --\x3e\r\n <div class="flex flex-row gap-3 mt-3">\r\n \x3c!-- <button class="assess-btn">Assess</button> --\x3e\r\n <ng-container *ngFor="let btn of btnType">\r\n <ng-container *ngIf="btn.courseId == cardData.contentId">\r\n <button\r\n *ngIf="btn.type === \'START\'"\r\n mat-button\r\n class="assess-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Assess\r\n </button>\r\n <button\r\n *ngIf="btn.type === \'RESUME\'"\r\n mat-button\r\n class="reassess-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Re-Assess\r\n </button>\r\n <button\r\n *ngIf="btn.type === \'DONE\'"\r\n mat-button\r\n disabled\r\n class="done-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Done\r\n </button>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <button class="btn-long" i18n (click)="viewCourses(cardData)">View Courses</button>\r\n </div>\r\n</div>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card_box{margin:7px 2px 15px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:7px}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.startBtn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-style:italic;font-size:14px;line-height:17px;cursor:pointer;margin-top:4px}.assess-btn{background:#1c5d95;color:#fff}.reassess-btn{background:#52ad9d;color:#fff}.done-btn{background-color:#bfbfbf;color:grey}.btn-small{border-radius:50px;width:-moz-fit-content;width:fit-content;padding:3px 20px;border:none;cursor:pointer}.btn-long{border:1px solid #1c5d95;border-radius:50px;color:#1c5d95;background-color:inherit;width:-moz-fit-content;width:fit-content;padding:3px 30px;cursor:pointer}"]})],t)}(),g=function(){function t(){}return t.prototype.formatedcompetencyData=function(t){var e=[];if(i.get(t,"result")&&!0===i.get(t,"result.content").competency){var n=i.get(t,"result.content").children;if(n.length>0)return i.forEach(n,(function(t){e.push({title:i.get(t,"name"),courseId:i.get(t,"parent"),contentId:i.get(t,"identifier"),contentType:i.get(t,"contentType"),artifactUrl:i.get(t,"artifactUrl")})})),e}},t.prototype.formatedCompetencyCourseData=function(t){var e=this,n=[];if(i.get(t,"result")){var r=i.get(t,"result.content");if(r)return i.forEach(r,(function(t){n.push({title:i.get(t,"name"),contentId:i.get(t,"identifier"),contentType:i.get(t,"contentType"),subTitle:i.get(t,"subTitle"),description:i.get(t,"description"),creator:i.get(t,"creator"),duration:i.get(t,"duration"),batchId:e.getBatchData(t),childContent:i.get(t,"childNodes").length,competencyID:e.getCompetencyData(t.competencies_v1)})})),n}},t.prototype.getCompetencyData=function(t){if(t)return JSON.parse(t)[0].competencyId},t.prototype.getBatchData=function(t){var e="";return t.batches&&i.forEach(t.batches,(function(t){e=i.get(t,"batchId")})),e},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t=u([e.Injectable({providedIn:"root"})],t)}(),m=function(){function t(t,e,n){this.location=t,this.selfAssessmentService=e,this.configService=n,this.selfAssessmentData=[],this.loading=!1,this.btnType=[],this.requestUtil=new g}return t.prototype.ngOnInit=function(){var t=this;this.loading=!0,this.getUserDetails().pipe(s.mergeMap((function(e){if(t.profileData=e.profileDetails.preferences.language,t.profileData||(t.profileData="en"),t.profileData)return t.getCompetencyCourse()}))).subscribe((function(e){t.selfAssessmentData=t.requestUtil.formatedCompetencyCourseData(e),i.forEach(t.selfAssessmentData,(function(e){t.getProgress(e).subscribe((function(n){if(n.result&&n.result.contentList.length>0)if(n.result.contentList.length>0&&e.childContent===n.result.contentList.length){var r="";i.forEach(n.result.contentList,(function(t){r=100===t.completionPercentage&&0!==t.completionPercentage?"DONE":"RESUME"})),t.btnType.push({courseId:e.contentId,type:r})}else t.btnType.push({courseId:e.contentId,type:"RESUME"});0==n.result.contentList.length&&t.btnType.push({courseId:e.contentId,type:"START"})}))})),t.loading=!1}))},t.prototype.getCompetencyData=function(){var t=this;this.getCompetencyCourse().pipe(s.map((function(e){return t.requestUtil.formatedCompetencyCourseData(e)}))).subscribe((function(e){t.selfAssessmentData=e,i.forEach(e,(function(e){t.getProgress(e).subscribe((function(n){if(n.result&&n.result.contentList.length>0)if(n.result.contentList.length>0&&e.childContent===n.result.contentList.length){var r="";i.forEach(n.result.contentList,(function(t){r=100===t.completionPercentage&&0!==t.completionPercentage?"DONE":"RESUME"})),t.btnType.push({courseId:e.contentId,type:r})}else t.btnType.push({courseId:e.contentId,type:"RESUME"});0==n.result.contentList.length&&t.btnType.push({courseId:e.contentId,type:"START"})}))})),t.loading=!1}))},t.prototype.getUserDetails=function(){var t={id:this.configService.getConfig().id};return this.selfAssessmentService.getUserdetailsFromRegistry(t)},t.prototype.getCompetencyCourse=function(){return this.selfAssessmentService.getCompetencyCourseIdentifier(this.profileData)},t.prototype.getProgress=function(t){var e={request:{userId:this.configService.getConfig().id,batchId:t.batchId,courseId:t.contentId,contentIds:[],fields:["progressdetails"]}};return this.selfAssessmentService.fetchPrgressDetails(e)},t.prototype.navigateBack=function(){this.location.back()},t.ctorParameters=function(){return[{type:a.Location},{type:f},{type:c.ConfigService}]},t=u([e.Component({selector:"lib-self-assessment",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<div class="content" *ngIf="selfAssessmentData">\r\n \x3c!-- <mat-icon (click)="navigateBack()" class="cursor-pointer">chevron_left</mat-icon> --\x3e\r\n \x3c!-- <h1 class=" mb-1 pl-2 ">Self Assessment</h1> --\x3e\r\n <ng-container *ngFor="let cardData of selfAssessmentData">\r\n <ng-container *ngIf="cardData">\r\n <lib-self-assessment-card [cardData]="cardData" [btnType]="btnType"></lib-self-assessment-card>\r\n </ng-container>\r\n </ng-container>\r\n</div>',styles:[""]})],t)}(),y=function(){function t(){}return t=u([e.NgModule({declarations:[d,m],imports:[a.CommonModule,p.MatIconModule,o.HttpClientModule,r.CoreModule],exports:[d,m]})],t)}();t.SelfAssessmentCardComponent=d,t.SelfAssessmentComponent=m,t.SelfAssessmentModule=y,t.SelfAssessmentService=f,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
***************************************************************************** */var l=function(t,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function u(t,e,n,r){var o,s=arguments.length,a=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(a=(s<3?o(a):s>3?o(e,n,a):o(e,n))||a);return s>3&&a&&Object.defineProperty(e,n,a),a}var f=function(t){function n(e){return t.call(this,e)||this}return function(t,e){function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(n,t),n.prototype.getCompetencyCourseIdentifier=function(t){var e={request:{filters:{primaryCategory:["Course"],contentType:["Course"],status:["Live"],competency:[!0],lang:"hi"==t?"hi":"en"}},sort:[{lastUpdatedOn:"desc"}]},n={url:r.urlConfig.getSearch(),data:e};return this.post(n)},n.prototype.fetchHiearchyDetails=function(t,e){var n={url:r.urlConfig.getHierachyDetails(t,e)};return this.get(n)},n.prototype.fetchPrgressDetails=function(t){var e={url:r.urlConfig.getContentProgress(t.request.courseId),data:t};return this.post(e)},n.prototype.getUserdetailsFromRegistry=function(t){var e={url:r.urlConfig.getUserdetailsFromRegistry(t.id)};return this.get(e).pipe(s.map((function(t){return t.result.response})))},n.ctorParameters=function(){return[{type:o.HttpClient}]},n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n(e.ɵɵinject(o.HttpClient))},token:n,providedIn:"root"}),n=u([e.Injectable({providedIn:"root"})],n)}(r.DataService),d=function(){function t(t,e){this.router=t,this.selfAssessmentService=e}return t.prototype.ngOnInit=function(){console.log(this.cardData)},t.prototype.startSelfAssesment=function(t){this.router.navigate(["app/user/self-assessment"],{queryParams:t})},t.prototype.viewCourses=function(t){t.competencyID&&this.router.navigate(["/app/search"],{queryParams:{q:[t.competencyID+"-1",t.competencyID+"-2",t.competencyID+"-3",t.competencyID+"-4",t.competencyID+"-5"],competency:!0},queryParamsHandling:"merge"})},t.ctorParameters=function(){return[{type:n.Router},{type:f}]},u([e.Input()],t.prototype,"cardData",void 0),u([e.Input()],t.prototype,"btnType",void 0),t=u([e.Component({selector:"lib-self-assessment-card",template:'<div class="card_box">\r\n <ng-container *ngIf="cardData?.title">\r\n <div class="title">{{ cardData?.title }}</div>\r\n </ng-container>\r\n \x3c!-- <ng-container *ngIf="cardData?.description">\r\n <div class="description">{{ cardData?.description }}</div>\r\n </ng-container> --\x3e\r\n <div class="flex flex-row gap-3 mt-3">\r\n \x3c!-- <button class="assess-btn">Assess</button> --\x3e\r\n <ng-container *ngFor="let btn of btnType">\r\n <ng-container *ngIf="btn.courseId == cardData.contentId">\r\n <button\r\n *ngIf="btn.type === \'START\'"\r\n mat-button\r\n class="assess-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Assess\r\n </button>\r\n <button\r\n *ngIf="btn.type === \'RESUME\'"\r\n mat-button\r\n class="reassess-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Re-Assess\r\n </button>\r\n <button\r\n *ngIf="btn.type === \'DONE\'"\r\n mat-button\r\n disabled\r\n class="done-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Done\r\n </button>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <button class="btn-long" i18n (click)="viewCourses(cardData)">View Courses</button>\r\n </div>\r\n</div>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card_box{margin:7px 2px 15px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:7px}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.startBtn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-style:italic;font-size:14px;line-height:17px;cursor:pointer;margin-top:4px}.assess-btn{background:#1c5d95;color:#fff}.reassess-btn{background:#52ad9d;color:#fff}.done-btn{background-color:#bfbfbf;color:grey}.btn-small{border-radius:50px;width:-moz-fit-content;width:fit-content;padding:3px 20px;border:none;cursor:pointer}.btn-long{border:1px solid #1c5d95;border-radius:50px;color:#1c5d95;background-color:inherit;width:-moz-fit-content;width:fit-content;padding:3px 30px;cursor:pointer}"]})],t)}(),g=function(){function t(){}return t.prototype.formatedcompetencyData=function(t){var e=[];if(i.get(t,"result")&&!0===i.get(t,"result.content").competency){var n=i.get(t,"result.content").children;if(n.length>0)return i.forEach(n,(function(t){e.push({title:i.get(t,"name"),courseId:i.get(t,"parent"),contentId:i.get(t,"identifier"),contentType:i.get(t,"contentType"),artifactUrl:i.get(t,"artifactUrl")})})),e}},t.prototype.formatedCompetencyCourseData=function(t){var e=this,n=[];if(i.get(t,"result")){var r=i.get(t,"result.content");if(r)return i.forEach(r,(function(t){n.push({title:i.get(t,"name"),contentId:i.get(t,"identifier"),contentType:i.get(t,"contentType"),subTitle:i.get(t,"subTitle"),description:i.get(t,"description"),creator:i.get(t,"creator"),duration:i.get(t,"duration"),batchId:e.getBatchData(t),childContent:i.get(t,"childNodes").length,competencyID:e.getCompetencyData(t.competencies_v1)})})),n}},t.prototype.getCompetencyData=function(t){if(t)return JSON.parse(t)[0].competencyId},t.prototype.getBatchData=function(t){var e="";return t.batches&&i.forEach(t.batches,(function(t){e=i.get(t,"batchId")})),e},t.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new t},token:t,providedIn:"root"}),t=u([e.Injectable({providedIn:"root"})],t)}(),m=function(){function t(t,e,n){this.location=t,this.selfAssessmentService=e,this.configService=n,this.selfAssessmentData=[],this.loading=!1,this.btnType=[],this.requestUtil=new g}return t.prototype.ngOnInit=function(){var t=this;this.loading=!0,this.getUserDetails().pipe(s.mergeMap((function(e){if(t.profileData=e.profileDetails.preferences?e.profileDetails.preferences.language:"en",t.profileData||(t.profileData="en"),t.profileData)return t.getCompetencyCourse()}))).subscribe((function(e){t.selfAssessmentData=t.requestUtil.formatedCompetencyCourseData(e),i.forEach(t.selfAssessmentData,(function(e){t.getProgress(e).subscribe((function(n){if(n.result&&n.result.contentList.length>0)if(n.result.contentList.length>0&&e.childContent===n.result.contentList.length){var r="";i.forEach(n.result.contentList,(function(t){r=100===t.completionPercentage&&0!==t.completionPercentage?"DONE":"RESUME"})),t.btnType.push({courseId:e.contentId,type:r})}else t.btnType.push({courseId:e.contentId,type:"RESUME"});0==n.result.contentList.length&&t.btnType.push({courseId:e.contentId,type:"START"})}))})),t.loading=!1}))},t.prototype.getCompetencyData=function(){var t=this;this.getCompetencyCourse().pipe(s.map((function(e){return t.requestUtil.formatedCompetencyCourseData(e)}))).subscribe((function(e){t.selfAssessmentData=e,i.forEach(e,(function(e){t.getProgress(e).subscribe((function(n){if(n.result&&n.result.contentList.length>0)if(n.result.contentList.length>0&&e.childContent===n.result.contentList.length){var r="";i.forEach(n.result.contentList,(function(t){r=100===t.completionPercentage&&0!==t.completionPercentage?"DONE":"RESUME"})),t.btnType.push({courseId:e.contentId,type:r})}else t.btnType.push({courseId:e.contentId,type:"RESUME"});0==n.result.contentList.length&&t.btnType.push({courseId:e.contentId,type:"START"})}))})),t.loading=!1}))},t.prototype.getUserDetails=function(){var t={id:this.configService.getConfig().id};return this.selfAssessmentService.getUserdetailsFromRegistry(t)},t.prototype.getCompetencyCourse=function(){return this.selfAssessmentService.getCompetencyCourseIdentifier(this.profileData)},t.prototype.getProgress=function(t){var e={request:{userId:this.configService.getConfig().id,batchId:t.batchId,courseId:t.contentId,contentIds:[],fields:["progressdetails"]}};return this.selfAssessmentService.fetchPrgressDetails(e)},t.prototype.navigateBack=function(){this.location.back()},t.ctorParameters=function(){return[{type:a.Location},{type:f},{type:c.ConfigService}]},t=u([e.Component({selector:"lib-self-assessment",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<div class="content" *ngIf="selfAssessmentData">\r\n \x3c!-- <mat-icon (click)="navigateBack()" class="cursor-pointer">chevron_left</mat-icon> --\x3e\r\n \x3c!-- <h1 class=" mb-1 pl-2 ">Self Assessment</h1> --\x3e\r\n <ng-container *ngFor="let cardData of selfAssessmentData">\r\n <ng-container *ngIf="cardData">\r\n <lib-self-assessment-card [cardData]="cardData" [btnType]="btnType"></lib-self-assessment-card>\r\n </ng-container>\r\n </ng-container>\r\n</div>',styles:[""]})],t)}(),y=function(){function t(){}return t=u([e.NgModule({declarations:[d,m],imports:[a.CommonModule,p.MatIconModule,o.HttpClientModule,r.CoreModule],exports:[d,m]})],t)}();t.SelfAssessmentCardComponent=d,t.SelfAssessmentComponent=m,t.SelfAssessmentModule=y,t.SelfAssessmentService=f,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=aastrika_npmjs-comptency-self-assessment.umd.min.js.map |
@@ -15,3 +15,3 @@ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("@angular/router"),require("@angular/material"),require("rxjs"),require("lodash-es"),require("@aastrika_npmjs/comptency/core"),require("@angular/common/http"),require("rxjs/operators"),require("@aastrika_npmjs/comptency/entry-module"),require("@aastrika_npmjs/comptency/self-assessment")):"function"==typeof define&&define.amd?define("@aastrika_npmjs/comptency",["exports","@angular/core","@angular/common","@angular/router","@angular/material","rxjs","lodash-es","@aastrika_npmjs/comptency/core","@angular/common/http","rxjs/operators","@aastrika_npmjs/comptency/entry-module","@aastrika_npmjs/comptency/self-assessment"],t):t(((e=e||self).aastrika_npmjs=e.aastrika_npmjs||{},e.aastrika_npmjs.comptency={}),e.ng.core,e.ng.common,e.ng.router,e.ng.material,e.rxjs,e.lodashEs,e.aastrika_npmjs.comptency.core,e.ng.common.http,e.rxjs.operators,e.aastrika_npmjs.comptency["entry-module"],e.aastrika_npmjs.comptency["self-assessment"])}(this,(function(e,t,n,r,o,i,a,c,s,l,p,d){"use strict"; | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var g=function(e,t){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function u(e,t){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function f(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function m(e,t){return function(n,r){t(n,r,e)}}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var h=function(){function e(e){this.router=e,this.stateChange=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.navigateTo=function(){this.stateChange.emit({navigation:!0})},e.ctorParameters=function(){return[{type:r.Router}]},f([t.Output()],e.prototype,"stateChange",void 0),e=f([t.Component({selector:"lib-slef-assessment-entry",template:'<button class="mat-primary-background "\r\n (click)="navigateTo()" i18n> Self Assessment\r\n</button>',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;background:#1c5d95!important;border-radius:50px;color:#fff;border:none;gap:8px;width:310px;cursor:pointer}"]})],e)}(),v=function(){function e(){this.stateChange=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.navigateTo=function(){this.stateChange.emit({navigation:!0})},f([t.Output()],e.prototype,"stateChange",void 0),e=f([t.Component({selector:"lib-competency-entry",template:'<button class="mat-primary-background "\r\n (click)="navigateTo()" i18n> Competency Dashboard\r\n</button>',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;background:#1c5d95!important;border-radius:50px;color:#fff;border:none;gap:8px;width:310px;cursor:pointer}"]})],e)}(),b=function(){},x=function(){function e(e){this.config=e,this.config$=new i.BehaviorSubject({}),this._config=this.config$.asObservable(),console.log("log in config service ",e),a.isEmpty(e)||(console.log("context log in config service ------ ",e),this.setConfig(e))}return e.prototype.setConfig=function(e){this.config$.next(e)},e.prototype.getConfig=function(){var e;return this._config.subscribe((function(t){if(a.isEmpty(t)){var n=JSON.parse(localStorage.getItem("competency"));e=n}else e=t})),e},e.ctorParameters=function(){return[{type:b,decorators:[{type:t.Optional},{type:t.Inject,args:["config"]}]}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject("config",8))},token:e,providedIn:"root"}),e=f([t.Injectable({providedIn:"root"}),m(0,t.Optional()),m(0,t.Inject("config"))],e)}(),I=function(){function e(){}var i;return i=e,e.forRoot=function(e){return{ngModule:i,providers:[x,{provide:"config",useValue:e.config}]}},e=i=f([t.NgModule({declarations:[h,v],imports:[n.CommonModule,r.RouterModule,o.MatIconModule],exports:[h,v],providers:[]})],e)}(),C=function(e){function n(t){return e.call(this,t)||this}return u(n,e),n.prototype.getCompetencyCourseIdentifier=function(e){var t={request:{filters:{primaryCategory:["Course"],contentType:["Course"],status:["Live"],competency:[!0],lang:"hi"==e?"hi":"en"}},sort:[{lastUpdatedOn:"desc"}]},n={url:c.urlConfig.getSearch(),data:t};return this.post(n)},n.prototype.fetchHiearchyDetails=function(e,t){var n={url:c.urlConfig.getHierachyDetails(e,t)};return this.get(n)},n.prototype.fetchPrgressDetails=function(e){var t={url:c.urlConfig.getContentProgress(e.request.courseId),data:e};return this.post(t)},n.prototype.getUserdetailsFromRegistry=function(e){var t={url:c.urlConfig.getUserdetailsFromRegistry(e.id)};return this.get(t).pipe(l.map((function(e){return e.result.response})))},n.ctorParameters=function(){return[{type:s.HttpClient}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.HttpClient))},token:n,providedIn:"root"}),n=f([t.Injectable({providedIn:"root"})],n)}(c.DataService),D=function(){function e(e,t){this.router=e,this.selfAssessmentService=t}return e.prototype.ngOnInit=function(){console.log(this.cardData)},e.prototype.startSelfAssesment=function(e){this.router.navigate(["app/user/self-assessment"],{queryParams:e})},e.prototype.viewCourses=function(e){e.competencyID&&this.router.navigate(["/app/search"],{queryParams:{q:[e.competencyID+"-1",e.competencyID+"-2",e.competencyID+"-3",e.competencyID+"-4",e.competencyID+"-5"],competency:!0},queryParamsHandling:"merge"})},e.ctorParameters=function(){return[{type:r.Router},{type:C}]},f([t.Input()],e.prototype,"cardData",void 0),f([t.Input()],e.prototype,"btnType",void 0),e=f([t.Component({selector:"lib-self-assessment-card",template:'<div class="card_box">\r\n <ng-container *ngIf="cardData?.title">\r\n <div class="title">{{ cardData?.title }}</div>\r\n </ng-container>\r\n \x3c!-- <ng-container *ngIf="cardData?.description">\r\n <div class="description">{{ cardData?.description }}</div>\r\n </ng-container> --\x3e\r\n <div class="flex flex-row gap-3 mt-3">\r\n \x3c!-- <button class="assess-btn">Assess</button> --\x3e\r\n <ng-container *ngFor="let btn of btnType">\r\n <ng-container *ngIf="btn.courseId == cardData.contentId">\r\n <button\r\n *ngIf="btn.type === \'START\'"\r\n mat-button\r\n class="assess-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Assess\r\n </button>\r\n <button\r\n *ngIf="btn.type === \'RESUME\'"\r\n mat-button\r\n class="reassess-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Re-Assess\r\n </button>\r\n <button\r\n *ngIf="btn.type === \'DONE\'"\r\n mat-button\r\n disabled\r\n class="done-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Done\r\n </button>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <button class="btn-long" i18n (click)="viewCourses(cardData)">View Courses</button>\r\n </div>\r\n</div>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card_box{margin:7px 2px 15px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:7px}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.startBtn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-style:italic;font-size:14px;line-height:17px;cursor:pointer;margin-top:4px}.assess-btn{background:#1c5d95;color:#fff}.reassess-btn{background:#52ad9d;color:#fff}.done-btn{background-color:#bfbfbf;color:grey}.btn-small{border-radius:50px;width:-moz-fit-content;width:fit-content;padding:3px 20px;border:none;cursor:pointer}.btn-long{border:1px solid #1c5d95;border-radius:50px;color:#1c5d95;background-color:inherit;width:-moz-fit-content;width:fit-content;padding:3px 30px;cursor:pointer}"]})],e)}(),w=function(){function e(){}return e.prototype.formatedcompetencyData=function(e){var t=[];if(a.get(e,"result")&&!0===a.get(e,"result.content").competency){var n=a.get(e,"result.content").children;if(n.length>0)return a.forEach(n,(function(e){t.push({title:a.get(e,"name"),courseId:a.get(e,"parent"),contentId:a.get(e,"identifier"),contentType:a.get(e,"contentType"),artifactUrl:a.get(e,"artifactUrl")})})),t}},e.prototype.formatedCompetencyCourseData=function(e){var t=this,n=[];if(a.get(e,"result")){var r=a.get(e,"result.content");if(r)return a.forEach(r,(function(e){n.push({title:a.get(e,"name"),contentId:a.get(e,"identifier"),contentType:a.get(e,"contentType"),subTitle:a.get(e,"subTitle"),description:a.get(e,"description"),creator:a.get(e,"creator"),duration:a.get(e,"duration"),batchId:t.getBatchData(e),childContent:a.get(e,"childNodes").length,competencyID:t.getCompetencyData(e.competencies_v1)})})),n}},e.prototype.getCompetencyData=function(e){if(e)return JSON.parse(e)[0].competencyId},e.prototype.getBatchData=function(e){var t="";return e.batches&&a.forEach(e.batches,(function(e){t=a.get(e,"batchId")})),t},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e=f([t.Injectable({providedIn:"root"})],e)}(),k=function(){function e(e,t,n){this.location=e,this.selfAssessmentService=t,this.configService=n,this.selfAssessmentData=[],this.loading=!1,this.btnType=[],this.requestUtil=new w}return e.prototype.ngOnInit=function(){var e=this;this.loading=!0,this.getUserDetails().pipe(l.mergeMap((function(t){if(e.profileData=t.profileDetails.preferences.language,e.profileData||(e.profileData="en"),e.profileData)return e.getCompetencyCourse()}))).subscribe((function(t){e.selfAssessmentData=e.requestUtil.formatedCompetencyCourseData(t),a.forEach(e.selfAssessmentData,(function(t){e.getProgress(t).subscribe((function(n){if(n.result&&n.result.contentList.length>0)if(n.result.contentList.length>0&&t.childContent===n.result.contentList.length){var r="";a.forEach(n.result.contentList,(function(e){r=100===e.completionPercentage&&0!==e.completionPercentage?"DONE":"RESUME"})),e.btnType.push({courseId:t.contentId,type:r})}else e.btnType.push({courseId:t.contentId,type:"RESUME"});0==n.result.contentList.length&&e.btnType.push({courseId:t.contentId,type:"START"})}))})),e.loading=!1}))},e.prototype.getCompetencyData=function(){var e=this;this.getCompetencyCourse().pipe(l.map((function(t){return e.requestUtil.formatedCompetencyCourseData(t)}))).subscribe((function(t){e.selfAssessmentData=t,a.forEach(t,(function(t){e.getProgress(t).subscribe((function(n){if(n.result&&n.result.contentList.length>0)if(n.result.contentList.length>0&&t.childContent===n.result.contentList.length){var r="";a.forEach(n.result.contentList,(function(e){r=100===e.completionPercentage&&0!==e.completionPercentage?"DONE":"RESUME"})),e.btnType.push({courseId:t.contentId,type:r})}else e.btnType.push({courseId:t.contentId,type:"RESUME"});0==n.result.contentList.length&&e.btnType.push({courseId:t.contentId,type:"START"})}))})),e.loading=!1}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.selfAssessmentService.getUserdetailsFromRegistry(e)},e.prototype.getCompetencyCourse=function(){return this.selfAssessmentService.getCompetencyCourseIdentifier(this.profileData)},e.prototype.getProgress=function(e){var t={request:{userId:this.configService.getConfig().id,batchId:e.batchId,courseId:e.contentId,contentIds:[],fields:["progressdetails"]}};return this.selfAssessmentService.fetchPrgressDetails(t)},e.prototype.navigateBack=function(){this.location.back()},e.ctorParameters=function(){return[{type:n.Location},{type:C},{type:p.ConfigService}]},e=f([t.Component({selector:"lib-self-assessment",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<div class="content" *ngIf="selfAssessmentData">\r\n \x3c!-- <mat-icon (click)="navigateBack()" class="cursor-pointer">chevron_left</mat-icon> --\x3e\r\n \x3c!-- <h1 class=" mb-1 pl-2 ">Self Assessment</h1> --\x3e\r\n <ng-container *ngFor="let cardData of selfAssessmentData">\r\n <ng-container *ngIf="cardData">\r\n <lib-self-assessment-card [cardData]="cardData" [btnType]="btnType"></lib-self-assessment-card>\r\n </ng-container>\r\n </ng-container>\r\n</div>',styles:[""]})],e)}(),E=function(){function e(){}return e=f([t.NgModule({declarations:[D,k],imports:[n.CommonModule,o.MatIconModule,s.HttpClientModule,c.CoreModule],exports:[D,k]})],e)}(),F=function(){function e(){var e=this;this.formatedActivities=function(e){if(!a.isEmpty(e))return e},this.formatedActivitityByPostion=function(t,n){if(a.get(t,"result")){var r=a.get(t,"result.response").children;if(r.length>0){var o=a.reduce(r,(function(t,r){return t.push({roles:"hi"==n?e.getHiName(r):a.get(r,"name"),id:a.get(r,"id"),description:a.get(r,"description"),averagePercentage:0,code:a.get(r.additionalProperties,"Code")}),t}),[]);return o=a.sortBy(o,[function(e){return e.code}])}}},this.formatedActivitityByRoleId=function(t,n){if(a.get(t,"result")){var r=a.get(t,"result.response").children;if(r.length>0){var o=a.reduce(r,(function(t,r){return t.push({title:"hi"==n?e.getHiName(r):a.get(r,"name"),cid:a.get(r,"id"),description:a.get(r,"description"),code:a.get(r.additionalProperties,"Code")}),t}),[]);return a.sortBy(o,[function(e){return e.code}])}}},this.formatedCompetency=function(t,n,r){var o=[];return a.forEach(t,(function(t){if(a.get(t,"result")){var i=a.get(t,"result.response").children;i.length>0&&a.forEach(i,(function(i){o.push({levels:e.getLevels(a.get(i,"id"),n,r),competency:"hi"==r?e.getHiName(i):a.get(i,"name"),id:a.get(i,"id"),description:a.get(i,"description"),cid:a.get(t,"result.response").id,lastLevel:e.getheighestLevel(a.get(i,"id"),n),completionPercentage:e.getCompeletionPercentage(a.get(i,"id"),n),code:a.get(i.additionalProperties,"Code")})}))}})),o=a.sortBy(o,[function(e){return e.code}]),a.uniqBy(o,"id")}}return e.prototype.getHiName=function(e){return a.get(e.additionalProperties,"lang-hi-name")?a.get(e.additionalProperties,"lang-hi-name"):a.get(e,"name")},e.prototype.getLevels=function(e,t,n){var r=[{name:"hi"==n?"स्तर 1":"Level 1",achived:!1,level:"1"},{name:"hi"==n?"स्तर 2":"Level 2",achived:!1,level:"2"},{name:"hi"==n?"स्तर 3":"Level 3",achived:!1,level:"3"},{name:"hi"==n?"स्तर 4":"Level 4",achived:!1,level:"4"},{name:"hi"==n?"स्तर 5":"Level 5",achived:!1,level:"5"}],o=null;return a.forEach(t,(function(t){a.toNumber(t.competencyId)===e&&(o=a.uniq(t.levelsAchieve))})),a.forEach(r,(function(e){a.forEach(o,(function(t){t==e.level&&(e.achived=!0)}))})),r},e.prototype.getheighestLevel=function(e,t){var n="";return a.forEach(t,(function(t){a.toNumber(t.competencyId)===e&&(n=t.levelId.competencyLevelId)})),n},e.prototype.getCompeletionPercentage=function(e,t){var n=0;return a.forEach(t,(function(t){a.toNumber(t.competencyId)===e&&(n=a.toNumber(t.levelId.competencyLevelId))})),n=100*n/5},e.prototype.formatedGainedCompetency=function(e,t,n){var r=this,o=[];return a.forEach(e,(function(i){var c=a.get(i,"id");a.forEach(t,(function(t){if(t.competencies.hasOwnProperty(c)){var i=t.competencies[c];o.push({title:"hi"==n?r.getHiTitle(c,e,i):a.get(i,"additionalParams.competencyName"),logs:r.acquiredPassbookLogs(a.get(i,"acquiredDetails")),proficiencyLevels:r.acauiredChannelColourCode(a.get(i,"acquiredDetails")),competencyStoreData:r.competencyStoreDataFomat(i),titleHi:r.getHiTitle(c,e,i)})}}))})),o},e.prototype.getHiTitle=function(e,t,n){var r;return a.forEach(t,(function(t){t.id==e&&(r=a.get(t.additionalProperties,"lang-hi-name")?a.get(t.additionalProperties,"lang-hi-name"):a.get(n,"additionalParams.competencyName"))})),r},e.prototype.acquiredPassbookLogs=function(e){var t=[];return e.length>0&&a.forEach(e,(function(e){t.push({header:a.get(e,"courseName")?a.get(e,"courseName"):a.get(e,"acquiredChannel"),date:a.get(e,"createdDate"),description:a.get(e,"additionalParams.description"),keyboardArrowUp:!0,level:a.toNumber(a.get(e,"competencyLevelId"))})})),t},e.prototype.acauiredChannelColourCode=function(e){var t=[{color:"#FFFBB0",displayLevel:1,selected:!1},{color:"#FFFBB0",displayLevel:2,selected:!1},{color:"#FFFBB0",displayLevel:3,selected:!1},{color:"#FFFBB0",displayLevel:4,selected:!1},{color:"#FFFBB0",displayLevel:5,selected:!1}];return a.forEach(e,(function(e){switch(a.get(e,"acquiredChannel")){case"course":case"Course":a.forEach(t,(function(t){t.displayLevel==a.get(e,"competencyLevelId")&&(t.color="#FFFBB0",t.selected=!0)}));break;case"selfAssessment":a.forEach(t,(function(t){t.displayLevel==a.get(e,"competencyLevelId")&&(t.color="#A4DFCA",t.selected=!0)}));break;case"admin":a.forEach(t,(function(t){t.displayLevel==a.get(e,"competencyLevelId")&&(t.color="#7cb5e6",t.selected=!0)}));break;default:a.forEach(t,(function(t){t.displayLevel==a.get(e,"competencyLevelId")&&(t.color="#FFFBB0",t.selected=!1)}))}})),t},e.prototype.competencyStoreDataFomat=function(e){var t=[];return e.acquiredDetails&&a.forEach(e.acquiredDetails,(function(e){e.competencyLevelId&&t.push(e.competencyLevelId)})),{competencyId:e.competencyId,competencyName:e.additionalParams.competencyName,levelId:a.maxBy(e.acquiredDetails,"competencyLevelId"),levelsAchieve:t}},e}(),P=function(e){function n(t){return e.call(this,t)||this}return u(n,e),n.prototype.getRequiredCompetencyById=function(e){var t={url:c.urlConfig.getEntityById(3),data:e};return console.log("reqBody",t),this.post(t)},n.ctorParameters=function(){return[{type:s.HttpClient}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.HttpClient))},token:n,providedIn:"root"}),n=f([t.Injectable({providedIn:"root"})],n)}(c.DataService),S=function(){function e(e){this.requiredCompetencyService=e,this.competencyData=[{title:"Procurement and Distribution of HCM",description:"Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)",requiredLevel:"level 4"},{title:"Store management and planning and coordination of THR and Dry ration",description:"Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ",requiredLevel:"level 4"},{title:"Procurement and Distribution of HCM",description:"Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)",requiredLevel:"level 4"},{title:"Early Childhood Care Education",description:"Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ",requiredLevel:"level 4"},{title:"Procurement and Distribution of HCM",description:"Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)",requiredLevel:"level 4"},{title:"Early Childhood Care Education",description:"Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ",requiredLevel:"level 4"}],this.panelOpenState=!0,this.customCollapsedHeight="100px",this.customExpandedHeight="100px",this.loading=!1,this.logs=[{index:1,header:"Understands HCM guidelines"},{index:2,header:"Lists raw material required"},{index:3,header:"Plans for storage"},{index:4,header:"Motivates the AWH and children on optimal hygiene and handwashing practices"},{index:5,header:"Course-Name Completion"}],this.requestUtil=new F}return e.prototype.ngOnInit=function(){},e.prototype.getRequiredByPostion=function(){return this.requiredCompetencyService.getRequiredCompetencyById({filter:{isDetail:!0}})},e.prototype.ngOnDestroy=function(){},e.ctorParameters=function(){return[{type:P}]},e=f([t.Component({selector:"lib-required-comptency-card",template:"<lib-self-assessment></lib-self-assessment>",styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.start-btn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-size:20px;cursor:pointer;margin-top:15px}.log-title{font-size:14px;line-height:24px;letter-spacing:-.02em;color:#1c5d95}.log{border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.logs{padding:5px}.log-items{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}:host ::ng-deep .mat-expansion-panel-header:hover{background:rgba(255,255,255,.98)!important}:host ::ng-deep .mat-content{display:flex!important}.level{place-self:flex-end}"]})],e)}(),L=function(e){function n(t){var n=e.call(this,t)||this;return n.competencyData=new i.BehaviorSubject(void 0),n.competencyData$=n.competencyData.asObservable(),n}return u(n,e),n.prototype.fetchUserPassbook=function(e){var t={url:c.urlConfig.getUserPassbook(),data:e};return this.post(t)},n.prototype.fetchAllEntity=function(e){var t={url:c.urlConfig.getAllEntity(),data:e};return this.post(t)},n.ctorParameters=function(){return[{type:s.HttpClient}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.HttpClient))},token:n,providedIn:"root"}),n=f([t.Injectable({providedIn:"root"})],n)}(c.DataService),A=function(e){function n(t){return e.call(this,t)||this}return u(n,e),n.prototype.getActivityById=function(e){var t={url:c.urlConfig.getEntityById(e.id),data:e};return this.post(t)},n.prototype.getUserdetailsFromRegistry=function(e){var t={url:c.urlConfig.getUserdetailsFromRegistry(e.id)};return this.get(t).pipe(l.map((function(e){return e.result.response})))},n.ctorParameters=function(){return[{type:s.HttpClient}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.HttpClient))},token:n,providedIn:"root"}),n=f([t.Injectable({providedIn:"root"})],n)}(c.DataService),B=function(){function e(e,t,n){this.gainedService=e,this.configService=t,this.activeSummaryService=n,this.loading=!1,this.panelOpenState=!1,this.selectedProficiencyIndex=-1,this.selectedDisplayLevel=-1,this.requestUtil=new F}return e.prototype.ngOnInit=function(){var e=this;this.getUserDetails().subscribe((function(t){e.profileData=t.profileDetails.preferences.language})),this.loading=!0;var t=this.getAllEntity(),n=this.getAllUserPassbook();i.forkJoin([t,n]).subscribe((function(t){var n=e.requestUtil.formatedGainedCompetency(t[0].result.response,t[1].result.content,e.profileData);if(e.gainedproficencyData=n,e.gainedproficencyData){var r=[];a.forEach(e.gainedproficencyData,(function(e){e.competencyStoreData&&r.push(e.competencyStoreData)})),e.gainedService.competencyData.next(r)}e.loading=!1}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.activeSummaryService.getUserdetailsFromRegistry(e)},e.prototype.getAllUserPassbook=function(){return this.gainedService.fetchUserPassbook({request:{typeName:"competency"}})},e.prototype.getAllEntity=function(){return this.gainedService.fetchAllEntity({search:{type:"Competency"}})},e.prototype.selectLevel=function(e,t){e!==this.selectedProficiencyIndex||-1!==t&&t!==this.selectedDisplayLevel?this.selectedProficiencyIndex=e:this.selectedProficiencyIndex=-1,this.selectedDisplayLevel=t},e.ctorParameters=function(){return[{type:L},{type:p.ConfigService},{type:A}]},e=f([t.Component({selector:"lib-gained-comptency-card",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<ng-container *ngFor="let proficency of gainedproficencyData; let i = index">\r\n <div class="card-container example-container container-balanced">\r\n <ng-container *ngIf="proficency?.title">\r\n <div class="title">{{ proficency?.title }}</div>\r\n </ng-container>\r\n\r\n <div class="levelsTitle" i18n>Levels:</div>\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n [expanded]="i === selectedProficiencyIndex"\r\n class="w-full panel"\r\n hideToggle\r\n >\r\n <mat-expansion-panel-header\r\n class="flex-between items-center panel-header w-full"\r\n >\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container\r\n *ngFor="let proficiencyLevel of proficency?.proficiencyLevels"\r\n >\r\n <ng-container *ngIf="proficiencyLevel.selected; else addLevel">\r\n <div\r\n (click)="\r\n $event.stopPropagation();\r\n selectLevel(i, proficiencyLevel.displayLevel)\r\n "\r\n class="level mb-1"\r\n [ngStyle]="{ \'background-color\': proficiencyLevel.color }"\r\n [ngClass]="{\r\n \'individual-select\':\r\n selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === proficiencyLevel?.displayLevel\r\n }"\r\n >\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-container>\r\n <ng-template #addLevel>\r\n <div (click)="$event.stopPropagation()" class="level mb-1">\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <div\r\n class="level mb-1"\r\n (click)="$event.stopPropagation(); selectLevel(i, -1)"\r\n >\r\n <mat-icon\r\n [ngClass]="{ arrowReverse: selectedProficiencyIndex === i }"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <div>\r\n <span class="log-header" i18n>Log:</span>\r\n <ng-container\r\n *ngFor="let log of proficency?.logs; let logIndex = index; let last = last; "\r\n >\r\n <ng-container\r\n *ngIf="\r\n selectedDisplayLevel === -1 ||\r\n (selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === log.level)\r\n "\r\n >\r\n <div class="log" [ngClass]="{\'border-bottom-0\': last}">\r\n <div class="flex">\r\n <ng-container *ngIf="log.header">\r\n <span class=""\r\n i18n>Level </span> <span>{{ log.level }}: {{ log.header }}</span\r\n >\r\n <span class="log-date mr-2">{{\r\n log?.date | date : "dd/MM/yyyy"\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf="log.description">\r\n <div\r\n class="mt-2"\r\n [ngClass]="{ \'hide-content\': !log.keyboardArrowUp }"\r\n >\r\n {{ log.description }}\r\n </div>\r\n <div class="justify-end">\r\n <mat-icon\r\n (click)="log.keyboardArrowUp = !log.keyboardArrowUp"\r\n class="mr-3"\r\n [ngClass]="{ arrowReverse: log.keyboardArrowUp }"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n </div>\r\n \x3c!-- <hr> --\x3e\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.date{font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-300)}.justify-end{display:flex;justify-content:flex-end}.card-container{background:var(--white);border-bottom:1px solid #ddd;padding:5px 4px}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:18px}.levelsTitle{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.panel{box-shadow:0 0!important;padding:1px 3px 1px 0}.panel-header{padding:0!important;background:0 0!important}.panel-header-description{margin:0!important;padding:1px}.arrowReverse{transform:rotateX(180deg)}.level{width:47px;max-width:16.6%;height:36px;display:flex;justify-content:center;align-items:center;box-shadow:0 0 2.17333px rgba(0,0,0,.2509803922)}.log-header{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.log{font-style:italic;font-size:14px;line-height:16px;letter-spacing:-.02em;color:var(--gray-400);border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.log-date{font-style:normal;font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-400);margin:0 auto}::ng-deep .mat-expansion-panel-body{padding:0!important}:host ::ng-deep .mat-content{display:unset!important}.hide-content{display:none}.individual-select{border:2px solid #1c5d95}"]})],e)}(),j=function(){function e(e){this.router=e,this.stateChange=new t.EventEmitter,this.tabIndex=1}return e.prototype.ngOnInit=function(){this.tabIndex=1},e.prototype.navigateBack=function(){this.router.navigate(["/app/profile-view"])},e.prototype.changeTab=function(e){this.tabIndex=e.index},e.prototype.startSelfAssessment=function(){this.stateChange.emit({navigation:!0})},e.ctorParameters=function(){return[{type:r.Router}]},f([t.Output()],e.prototype,"stateChange",void 0),e=f([t.Component({selector:"lib-competency-dashboard",template:'<div class="content">\r\n <mat-icon (click)="navigateBack()" class="cursor-pointer mb-3"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class="pl-2 mb-0" i18n>Competency Dashboard</h1>\r\n\r\n <div class="pl-2 tab-container">\r\n \x3c!-- <ng-container *ngIf="tabIndex === 1">\r\n <div class="sortIcon">\r\n <img src="./assets/comptency/images/filter.png" />\r\n </div>\r\n </ng-container> --\x3e\r\n <mat-tab-group\r\n [ngClass]="{ \'header-width-icon\': tabIndex === 1 }"\r\n class="remove-border-bottom"\r\n animationDuration="0ms"\r\n [selectedIndex]="tabIndex"\r\n (selectedTabChange)="changeTab($event)"\r\n >\r\n \x3c!-- Active Summary as Job Description --\x3e\r\n <mat-tab i18n-label label="Job Description">\r\n <h4 class="mt-4 mb-1" i18n>Roles</h4>\r\n <lib-active-summary *ngIf="tabIndex === 0"></lib-active-summary>\r\n </mat-tab>\r\n\r\n \x3c!-- gained as Passbook --\x3e\r\n <mat-tab i18n-label label="Passbook">\r\n <div class="legend-container">\r\n <div class="legend legend-blue"></div>\r\n <h5 i18n>External</h5>\r\n <div class="legend legend-green"></div>\r\n <h5 i18n>Self</h5>\r\n <div class="legend legend-yellow"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf="tabIndex === 1"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n \x3c!-- required --\x3e\r\n <mat-tab i18n-label label="Required">\r\n <div class="required-comperencies">\r\n <div class="mt-2 tab-badge" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf="tabIndex === 2"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.content{max-width:90%}.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"]})],e)}(),M=function(){function e(e,t,n){this.activeSummaryService=e,this.configService=t,this.gainedService=n,this.panelOpenState=!0,this.loading=!1,this.acordianLoading=!1,this.requestUtil=new F}return e.prototype.ngOnInit=function(){var e=this;this.getProgress(),this.loading=!0,this.getUserDetails().pipe(l.mergeMap((function(t){if(e.profileData=t.profileDetails.profileReq,e.language=t.profileDetails.preferences.language,e.language||(e.language="en"),e.profileData)return e.getActivityByRole()}))).subscribe((function(t){var n=e.requestUtil.formatedActivitityByPostion(t,e.language);e.roleactivitySummaries=n,a.forEach(e.roleactivitySummaries,(function(t){t.id&&e.getActivityByRoleId(t.id)})),console.log(e.roleactivitySummaries),e.loading=!1}))},e.prototype.getProgress=function(){var e=this;this.gainedService.competencyData$.subscribe((function(t){e.competencyProgress=t}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.activeSummaryService.getUserdetailsFromRegistry(e)},e.prototype.getActivityByRole=function(){var e;this.profileData.professionalDetails&&(e=this.profileData.professionalDetails[0].designation);var t={filter:{isDetail:!0},id:this.designationMap(e)};return this.activeSummaryService.getActivityById(t)},e.prototype.designationMap=function(e){var t={AWW:95,ANM:210};return t.hasOwnProperty(e)?t[e]:1},e.prototype.getActivityByRoleId=function(e){var t=this;this.acordianLoading=!0;var n=a.findIndex(this.roleactivitySummaries,{id:e});this.roleactivitySummaries[n].activities=[],this.getEntityById(e).pipe(l.mergeMap((function(e){var r=t.requestUtil.formatedActivitityByRoleId(e,t.language);t.roleactivitySummaries[n].activities=r;var o=a.map(t.roleactivitySummaries[n].activities,"cid"),c=[];return a.forEach(o,(function(e){c.push(t.getEntityById(e))})),t.acordianLoading=!1,i.forkJoin.apply(void 0,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}(c))}))).subscribe((function(e){var r=t.requestUtil.formatedCompetency(e,t.competencyProgress,t.language);t.roleactivitySummaries[n].activities=a.values(a.merge(a.keyBy(r,"id"),a.keyBy(t.roleactivitySummaries[n].activities,"cid"))),t.roleactivitySummaries[n].averagePercentage=[];var o=t.getAveragepercentage(r);t.roleactivitySummaries[n].averagePercentage=o}))},e.prototype.getEntityById=function(e){var t={filter:{isDetail:!0},id:e};return this.activeSummaryService.getActivityById(t)},e.prototype.getAveragepercentage=function(e){var t=e.length,n=[];return a.forEach(e,(function(e){n.push(e.completionPercentage)})),a.round(a.sum(n)/t)},e.prototype.ngOnDestroy=function(){this.unsubscribe&&this.unsubscribe.unsubscribe()},e.ctorParameters=function(){return[{type:A},{type:p.ConfigService},{type:L}]},e=f([t.Component({selector:"lib-active-summary",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<ng-container *ngFor="let role of roleactivitySummaries">\r\n <div class="card-container">\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n class=""\r\n (opened)="panelOpenState = true"\r\n (closed)="panelOpenState = false"\r\n >\r\n <mat-expansion-panel-header\r\n class="flex-between items-center w-full"\r\n collapsedHeight="auto"\r\n expandedHeight="auto"\r\n >\r\n\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngIf="role?.roles">\r\n <div class="flex flex-column w-full">\r\n <div class="title">{{ role?.roles }}</div>\r\n <div class="progress-status-none" *ngIf="role?.averagePercentage == 0"></div>\r\n <div class="progress-status" *ngIf="role?.averagePercentage < 100 && role?.averagePercentage != 0" i18n>In Progress</div>\r\n <div class="progress-status" *ngIf="role?.averagePercentage == 100" i18n>Completed</div>\r\n <ng-container >\r\n \x3c!-- \'warn-bar\': role?.averagePercentage < 100 && role?.averagePercentage != 0, --\x3e\r\n <div [ngClass]="{\'green-bar\': role?.averagePercentage == 100 , \'warn-bar\': role?.averagePercentage < 100 && role?.averagePercentage != 0 }">\r\n <mat-progress-bar class="bar-progress-colour" mode="determinate" value={{role?.averagePercentage}} class="mt-1"></mat-progress-bar>\r\n </div>\r\n </ng-container>\r\n\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <lib-app-loader *ngIf="acordianLoading === true"></lib-app-loader>\r\n <div class="expand-container" *ngIf="roleactivitySummaries.length>0">\r\n \x3c!-- list of activity --\x3e\r\n <div class="activity-badge" i18n>Activities</div>\r\n <ng-container\r\n *ngFor="let activity of role?.activities; let i = index"\r\n >\r\n <div class="activity-title" *ngIf="activity.title">\r\n - {{ activity.title }}\r\n </div>\r\n\r\n\r\n </ng-container>\r\n <ng-container *ngIf="role?.activities">\r\n <lib-competency-accordion [competencyList]="role?.activities"></lib-competency-accordion>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n\r\n </div>\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px}.spinner-loading{display:flex;justify-content:center}.title{font-size:20px;line-height:19px;letter-spacing:-.02em;color:var(--blue)}.icon-down{place-self:flex-end;color:var(--black)!important}:host ::ng-deep .mat-expansion-panel{height:auto}:host ::ng-deep .mat-expansion-panel-header:hover{background:inherit!important}:host ::ng-deep .mat-expansion-panel-body{padding:0 0 16px!important}:host ::ng-deep .mat-expansion-panel-header{border-radius:10px!important;padding:10px 10px 0}:host ::ng-deep .mat-expansion-indicator:after{color:var(--black)!important}:host ::ng-deep .mat-expansion-panel-header-description{margin-right:0!important}.activity-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black);margin-bottom:10px;padding:0 10px}.competency-container{background:var(--white);box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;padding:10px;margin:18px 0 15px}.competency-container .competency-title{font-size:20px;line-height:25px;letter-spacing:-.02em;color:var(--black);margin-bottom:20px}.competency-container .level{font-size:24px;line-height:24px;letter-spacing:-.02em;color:var(--blue)}.expand-container{padding:15px 0 0}.activity-badge{font-weight:400;font-size:14px;color:#1c5d95;background:#ebf4fb;border-radius:50px;width:-moz-fit-content;width:fit-content;padding:5px 20px;margin:0 10px 15px}.mat-progress-bar{border-radius:40px;height:4px}.value{position:relative;bottom:19px;color:#1c5d95;width:275px;display:flex;justify-content:center}::ng-deep.green-bar .theme-igot.day-mode .mat-progress-bar-fill::after{background:no-repeat padding-box #34d6a4!important;border-radius:40px}::ng-deep.warn-bar .mat-progress-bar-fill::after{background:no-repeat padding-box #f1cf8a!important;border-radius:40px}::ng-deep.theme-igot.day-mode .mat-progress-bar-buffer{background-color:#f5f5f5}.progress-status{font-style:italic;font-weight:400;font-size:12px;color:#000;place-self:end}.progress-status-none{visibility:hidden}"]})],e)}(),q=function(){function e(){}return e.prototype.ngOnInit=function(){console.log("list",this.competencyList)},f([t.Input()],e.prototype,"competencyList",void 0),e=f([t.Component({selector:"lib-competency-accordion",template:'<div class="competency-badge" i18n>Competencies :</div>\r\n<ng-container *ngFor="let competency of competencyList; let i = index">\r\n <ng-container *ngIf="competency.competency">\r\n <mat-accordion>\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header\r\n class="flex-between items-center w-full"\r\n collapsedHeight="auto"\r\n expandedHeight="auto"\r\n >\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngIf="competency.competency">\r\n <div class="flex flex-row align-items-center gap-2">\r\n <div>\r\n <ng-container *ngIf="competency.completionPercentage == 100">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon\r\n >\r\n </ng-container>\r\n <ng-container *ngIf="competency.completionPercentage < 100">\r\n <mat-progress-spinner\r\n diameter="20"\r\n strokeWidth="2"\r\n mode="determinate"\r\n [value]="competency.completionPercentage"\r\n ></mat-progress-spinner>\r\n </ng-container>\r\n </div>\r\n <div class="competency-title">{{ competency.competency }}</div>\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n \x3c!-- <lib-app-loader *ngIf="acordianLoading === true"></lib-app-loader> --\x3e\r\n <div class="expand-container">\r\n \x3c!-- list of levels --\x3e\r\n <div class="Levels-badge" i18n>Levels :</div>\r\n <ng-container *ngFor="let level of competency.levels; let i = index">\r\n <div class="flex flex-row align-items-center gap-2">\r\n <div>\r\n <ng-container *ngIf="level.achived">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n <ng-container *ngIf="!level.achived" >\r\n <mat-icon class="non-progress cursor-pointer"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n </div>\r\n <div class="Levels-title">{{ i + 1 }} : {{ level.name }}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n <hr />\r\n </ng-container>\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.competency-badge{font-weight:400;font-size:14px;color:#1c5d95;padding:0 10px;margin-top:20px}.competency-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black)}.expand-container{padding:0 10px}.Levels-badge{font-size:14px;color:#1c5d95;margin-bottom:5px}.circle-tick{display:flex;justify-content:center;align-items:center;color:#27ae60;font-size:18px!important}.non-progress{visibility:hidden}"]})],e)}(),H=function(){function e(){}return e=f([t.NgModule({declarations:[S,B,j,M,q],imports:[n.CommonModule,o.MatTabsModule,o.MatIconModule,o.MatExpansionModule,o.MatProgressBarModule,o.MatProgressSpinnerModule,s.HttpClientModule,c.CoreModule,d.SelfAssessmentModule],exports:[S,B,j,M]})],e)}();e.CompetencyModule=H,e.EntryModule=I,e.SelfAssessmentModule=E,e.ɵa=h,e.ɵb=v,e.ɵc=x,e.ɵd=b,e.ɵe=D,e.ɵf=C,e.ɵg=k,e.ɵh=S,e.ɵi=P,e.ɵj=B,e.ɵk=L,e.ɵl=A,e.ɵm=j,e.ɵn=M,e.ɵo=q,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
***************************************************************************** */var g=function(e,t){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function u(e,t){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function f(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function m(e,t){return function(n,r){t(n,r,e)}}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var h=function(){function e(e){this.router=e,this.stateChange=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.navigateTo=function(){this.stateChange.emit({navigation:!0})},e.ctorParameters=function(){return[{type:r.Router}]},f([t.Output()],e.prototype,"stateChange",void 0),e=f([t.Component({selector:"lib-slef-assessment-entry",template:'<button class="mat-primary-background "\r\n (click)="navigateTo()" i18n> Self Assessment\r\n</button>',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;background:#1c5d95!important;border-radius:50px;color:#fff;border:none;gap:8px;width:310px;cursor:pointer}"]})],e)}(),v=function(){function e(){this.stateChange=new t.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.navigateTo=function(){this.stateChange.emit({navigation:!0})},f([t.Output()],e.prototype,"stateChange",void 0),e=f([t.Component({selector:"lib-competency-entry",template:'<button class="mat-primary-background "\r\n (click)="navigateTo()" i18n> Competency Dashboard\r\n</button>',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;background:#1c5d95!important;border-radius:50px;color:#fff;border:none;gap:8px;width:310px;cursor:pointer}"]})],e)}(),b=function(){},x=function(){function e(e){this.config=e,this.config$=new i.BehaviorSubject({}),this._config=this.config$.asObservable(),console.log("log in config service ",e),a.isEmpty(e)||(console.log("context log in config service ------ ",e),this.setConfig(e))}return e.prototype.setConfig=function(e){this.config$.next(e)},e.prototype.getConfig=function(){var e;return this._config.subscribe((function(t){if(a.isEmpty(t)){var n=JSON.parse(localStorage.getItem("competency"));e=n}else e=t})),e},e.ctorParameters=function(){return[{type:b,decorators:[{type:t.Optional},{type:t.Inject,args:["config"]}]}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject("config",8))},token:e,providedIn:"root"}),e=f([t.Injectable({providedIn:"root"}),m(0,t.Optional()),m(0,t.Inject("config"))],e)}(),I=function(){function e(){}var i;return i=e,e.forRoot=function(e){return{ngModule:i,providers:[x,{provide:"config",useValue:e.config}]}},e=i=f([t.NgModule({declarations:[h,v],imports:[n.CommonModule,r.RouterModule,o.MatIconModule],exports:[h,v],providers:[]})],e)}(),C=function(e){function n(t){return e.call(this,t)||this}return u(n,e),n.prototype.getCompetencyCourseIdentifier=function(e){var t={request:{filters:{primaryCategory:["Course"],contentType:["Course"],status:["Live"],competency:[!0],lang:"hi"==e?"hi":"en"}},sort:[{lastUpdatedOn:"desc"}]},n={url:c.urlConfig.getSearch(),data:t};return this.post(n)},n.prototype.fetchHiearchyDetails=function(e,t){var n={url:c.urlConfig.getHierachyDetails(e,t)};return this.get(n)},n.prototype.fetchPrgressDetails=function(e){var t={url:c.urlConfig.getContentProgress(e.request.courseId),data:e};return this.post(t)},n.prototype.getUserdetailsFromRegistry=function(e){var t={url:c.urlConfig.getUserdetailsFromRegistry(e.id)};return this.get(t).pipe(l.map((function(e){return e.result.response})))},n.ctorParameters=function(){return[{type:s.HttpClient}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.HttpClient))},token:n,providedIn:"root"}),n=f([t.Injectable({providedIn:"root"})],n)}(c.DataService),D=function(){function e(e,t){this.router=e,this.selfAssessmentService=t}return e.prototype.ngOnInit=function(){console.log(this.cardData)},e.prototype.startSelfAssesment=function(e){this.router.navigate(["app/user/self-assessment"],{queryParams:e})},e.prototype.viewCourses=function(e){e.competencyID&&this.router.navigate(["/app/search"],{queryParams:{q:[e.competencyID+"-1",e.competencyID+"-2",e.competencyID+"-3",e.competencyID+"-4",e.competencyID+"-5"],competency:!0},queryParamsHandling:"merge"})},e.ctorParameters=function(){return[{type:r.Router},{type:C}]},f([t.Input()],e.prototype,"cardData",void 0),f([t.Input()],e.prototype,"btnType",void 0),e=f([t.Component({selector:"lib-self-assessment-card",template:'<div class="card_box">\r\n <ng-container *ngIf="cardData?.title">\r\n <div class="title">{{ cardData?.title }}</div>\r\n </ng-container>\r\n \x3c!-- <ng-container *ngIf="cardData?.description">\r\n <div class="description">{{ cardData?.description }}</div>\r\n </ng-container> --\x3e\r\n <div class="flex flex-row gap-3 mt-3">\r\n \x3c!-- <button class="assess-btn">Assess</button> --\x3e\r\n <ng-container *ngFor="let btn of btnType">\r\n <ng-container *ngIf="btn.courseId == cardData.contentId">\r\n <button\r\n *ngIf="btn.type === \'START\'"\r\n mat-button\r\n class="assess-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Assess\r\n </button>\r\n <button\r\n *ngIf="btn.type === \'RESUME\'"\r\n mat-button\r\n class="reassess-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Re-Assess\r\n </button>\r\n <button\r\n *ngIf="btn.type === \'DONE\'"\r\n mat-button\r\n disabled\r\n class="done-btn btn-small"\r\n (click)="startSelfAssesment(cardData)"\r\n i18n\r\n >\r\n Done\r\n </button>\r\n </ng-container>\r\n </ng-container>\r\n\r\n <button class="btn-long" i18n (click)="viewCourses(cardData)">View Courses</button>\r\n </div>\r\n</div>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card_box{margin:7px 2px 15px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:7px}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.startBtn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-style:italic;font-size:14px;line-height:17px;cursor:pointer;margin-top:4px}.assess-btn{background:#1c5d95;color:#fff}.reassess-btn{background:#52ad9d;color:#fff}.done-btn{background-color:#bfbfbf;color:grey}.btn-small{border-radius:50px;width:-moz-fit-content;width:fit-content;padding:3px 20px;border:none;cursor:pointer}.btn-long{border:1px solid #1c5d95;border-radius:50px;color:#1c5d95;background-color:inherit;width:-moz-fit-content;width:fit-content;padding:3px 30px;cursor:pointer}"]})],e)}(),w=function(){function e(){}return e.prototype.formatedcompetencyData=function(e){var t=[];if(a.get(e,"result")&&!0===a.get(e,"result.content").competency){var n=a.get(e,"result.content").children;if(n.length>0)return a.forEach(n,(function(e){t.push({title:a.get(e,"name"),courseId:a.get(e,"parent"),contentId:a.get(e,"identifier"),contentType:a.get(e,"contentType"),artifactUrl:a.get(e,"artifactUrl")})})),t}},e.prototype.formatedCompetencyCourseData=function(e){var t=this,n=[];if(a.get(e,"result")){var r=a.get(e,"result.content");if(r)return a.forEach(r,(function(e){n.push({title:a.get(e,"name"),contentId:a.get(e,"identifier"),contentType:a.get(e,"contentType"),subTitle:a.get(e,"subTitle"),description:a.get(e,"description"),creator:a.get(e,"creator"),duration:a.get(e,"duration"),batchId:t.getBatchData(e),childContent:a.get(e,"childNodes").length,competencyID:t.getCompetencyData(e.competencies_v1)})})),n}},e.prototype.getCompetencyData=function(e){if(e)return JSON.parse(e)[0].competencyId},e.prototype.getBatchData=function(e){var t="";return e.batches&&a.forEach(e.batches,(function(e){t=a.get(e,"batchId")})),t},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e=f([t.Injectable({providedIn:"root"})],e)}(),k=function(){function e(e,t,n){this.location=e,this.selfAssessmentService=t,this.configService=n,this.selfAssessmentData=[],this.loading=!1,this.btnType=[],this.requestUtil=new w}return e.prototype.ngOnInit=function(){var e=this;this.loading=!0,this.getUserDetails().pipe(l.mergeMap((function(t){if(e.profileData=t.profileDetails.preferences?t.profileDetails.preferences.language:"en",e.profileData||(e.profileData="en"),e.profileData)return e.getCompetencyCourse()}))).subscribe((function(t){e.selfAssessmentData=e.requestUtil.formatedCompetencyCourseData(t),a.forEach(e.selfAssessmentData,(function(t){e.getProgress(t).subscribe((function(n){if(n.result&&n.result.contentList.length>0)if(n.result.contentList.length>0&&t.childContent===n.result.contentList.length){var r="";a.forEach(n.result.contentList,(function(e){r=100===e.completionPercentage&&0!==e.completionPercentage?"DONE":"RESUME"})),e.btnType.push({courseId:t.contentId,type:r})}else e.btnType.push({courseId:t.contentId,type:"RESUME"});0==n.result.contentList.length&&e.btnType.push({courseId:t.contentId,type:"START"})}))})),e.loading=!1}))},e.prototype.getCompetencyData=function(){var e=this;this.getCompetencyCourse().pipe(l.map((function(t){return e.requestUtil.formatedCompetencyCourseData(t)}))).subscribe((function(t){e.selfAssessmentData=t,a.forEach(t,(function(t){e.getProgress(t).subscribe((function(n){if(n.result&&n.result.contentList.length>0)if(n.result.contentList.length>0&&t.childContent===n.result.contentList.length){var r="";a.forEach(n.result.contentList,(function(e){r=100===e.completionPercentage&&0!==e.completionPercentage?"DONE":"RESUME"})),e.btnType.push({courseId:t.contentId,type:r})}else e.btnType.push({courseId:t.contentId,type:"RESUME"});0==n.result.contentList.length&&e.btnType.push({courseId:t.contentId,type:"START"})}))})),e.loading=!1}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.selfAssessmentService.getUserdetailsFromRegistry(e)},e.prototype.getCompetencyCourse=function(){return this.selfAssessmentService.getCompetencyCourseIdentifier(this.profileData)},e.prototype.getProgress=function(e){var t={request:{userId:this.configService.getConfig().id,batchId:e.batchId,courseId:e.contentId,contentIds:[],fields:["progressdetails"]}};return this.selfAssessmentService.fetchPrgressDetails(t)},e.prototype.navigateBack=function(){this.location.back()},e.ctorParameters=function(){return[{type:n.Location},{type:C},{type:p.ConfigService}]},e=f([t.Component({selector:"lib-self-assessment",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<div class="content" *ngIf="selfAssessmentData">\r\n \x3c!-- <mat-icon (click)="navigateBack()" class="cursor-pointer">chevron_left</mat-icon> --\x3e\r\n \x3c!-- <h1 class=" mb-1 pl-2 ">Self Assessment</h1> --\x3e\r\n <ng-container *ngFor="let cardData of selfAssessmentData">\r\n <ng-container *ngIf="cardData">\r\n <lib-self-assessment-card [cardData]="cardData" [btnType]="btnType"></lib-self-assessment-card>\r\n </ng-container>\r\n </ng-container>\r\n</div>',styles:[""]})],e)}(),E=function(){function e(){}return e=f([t.NgModule({declarations:[D,k],imports:[n.CommonModule,o.MatIconModule,s.HttpClientModule,c.CoreModule],exports:[D,k]})],e)}(),F=function(){function e(){var e=this;this.formatedActivities=function(e){if(!a.isEmpty(e))return e},this.formatedActivitityByPostion=function(t,n){if(a.get(t,"result")){var r=a.get(t,"result.response").children;if(r.length>0){var o=a.reduce(r,(function(t,r){return t.push({roles:"hi"==n?e.getHiName(r):a.get(r,"name"),id:a.get(r,"id"),description:a.get(r,"description"),averagePercentage:0,code:a.get(r.additionalProperties,"Code")}),t}),[]);return o=a.sortBy(o,[function(e){return e.code}])}}},this.formatedActivitityByRoleId=function(t,n){if(a.get(t,"result")){var r=a.get(t,"result.response").children;if(r.length>0){var o=a.reduce(r,(function(t,r){return t.push({title:"hi"==n?e.getHiName(r):a.get(r,"name"),cid:a.get(r,"id"),description:a.get(r,"description"),code:a.get(r.additionalProperties,"Code")}),t}),[]);return a.sortBy(o,[function(e){return e.code}])}}},this.formatedCompetency=function(t,n,r){var o=[];return a.forEach(t,(function(t){if(a.get(t,"result")){var i=a.get(t,"result.response").children;i.length>0&&a.forEach(i,(function(i){o.push({levels:e.getLevels(a.get(i,"id"),n,r),competency:"hi"==r?e.getHiName(i):a.get(i,"name"),id:a.get(i,"id"),description:a.get(i,"description"),cid:a.get(t,"result.response").id,lastLevel:e.getheighestLevel(a.get(i,"id"),n),completionPercentage:e.getCompeletionPercentage(a.get(i,"id"),n),code:a.get(i.additionalProperties,"Code")})}))}})),o=a.sortBy(o,[function(e){return e.code}]),a.uniqBy(o,"id")}}return e.prototype.getHiName=function(e){return a.get(e.additionalProperties,"lang-hi-name")?a.get(e.additionalProperties,"lang-hi-name"):a.get(e,"name")},e.prototype.getLevels=function(e,t,n){var r=[{name:"hi"==n?"स्तर 1":"Level 1",achived:!1,level:"1"},{name:"hi"==n?"स्तर 2":"Level 2",achived:!1,level:"2"},{name:"hi"==n?"स्तर 3":"Level 3",achived:!1,level:"3"},{name:"hi"==n?"स्तर 4":"Level 4",achived:!1,level:"4"},{name:"hi"==n?"स्तर 5":"Level 5",achived:!1,level:"5"}],o=null;return a.forEach(t,(function(t){a.toNumber(t.competencyId)===e&&(o=a.uniq(t.levelsAchieve))})),a.forEach(r,(function(e){a.forEach(o,(function(t){t==e.level&&(e.achived=!0)}))})),r},e.prototype.getheighestLevel=function(e,t){var n="";return a.forEach(t,(function(t){a.toNumber(t.competencyId)===e&&(n=t.levelId.competencyLevelId)})),n},e.prototype.getCompeletionPercentage=function(e,t){var n=0;return a.forEach(t,(function(t){a.toNumber(t.competencyId)===e&&(n=a.toNumber(t.levelId.competencyLevelId))})),n=100*n/5},e.prototype.formatedGainedCompetency=function(e,t,n){var r=this,o=[];return a.forEach(e,(function(i){var c=a.get(i,"id");a.forEach(t,(function(t){if(t.competencies.hasOwnProperty(c)){var i=t.competencies[c];o.push({title:"hi"==n?r.getHiTitle(c,e,i):a.get(i,"additionalParams.competencyName"),logs:r.acquiredPassbookLogs(a.get(i,"acquiredDetails")),proficiencyLevels:r.acauiredChannelColourCode(a.get(i,"acquiredDetails")),competencyStoreData:r.competencyStoreDataFomat(i),titleHi:r.getHiTitle(c,e,i)})}}))})),o},e.prototype.getHiTitle=function(e,t,n){var r;return a.forEach(t,(function(t){t.id==e&&(r=a.get(t.additionalProperties,"lang-hi-name")?a.get(t.additionalProperties,"lang-hi-name"):a.get(n,"additionalParams.competencyName"))})),r},e.prototype.acquiredPassbookLogs=function(e){var t=[];return e.length>0&&a.forEach(e,(function(e){t.push({header:a.get(e,"courseName")?a.get(e,"courseName"):a.get(e,"acquiredChannel"),date:a.get(e,"createdDate"),description:a.get(e,"additionalParams.description"),keyboardArrowUp:!0,level:a.toNumber(a.get(e,"competencyLevelId"))})})),t},e.prototype.acauiredChannelColourCode=function(e){var t=[{color:"#FFFBB0",displayLevel:1,selected:!1},{color:"#FFFBB0",displayLevel:2,selected:!1},{color:"#FFFBB0",displayLevel:3,selected:!1},{color:"#FFFBB0",displayLevel:4,selected:!1},{color:"#FFFBB0",displayLevel:5,selected:!1}];return a.forEach(e,(function(e){switch(a.get(e,"acquiredChannel")){case"course":case"Course":a.forEach(t,(function(t){t.displayLevel==a.get(e,"competencyLevelId")&&(t.color="#FFFBB0",t.selected=!0)}));break;case"selfAssessment":a.forEach(t,(function(t){t.displayLevel==a.get(e,"competencyLevelId")&&(t.color="#A4DFCA",t.selected=!0)}));break;case"admin":a.forEach(t,(function(t){t.displayLevel==a.get(e,"competencyLevelId")&&(t.color="#7cb5e6",t.selected=!0)}));break;default:a.forEach(t,(function(t){t.displayLevel==a.get(e,"competencyLevelId")&&(t.color="#FFFBB0",t.selected=!1)}))}})),t},e.prototype.competencyStoreDataFomat=function(e){var t=[];return e.acquiredDetails&&a.forEach(e.acquiredDetails,(function(e){e.competencyLevelId&&t.push(e.competencyLevelId)})),{competencyId:e.competencyId,competencyName:e.additionalParams.competencyName,levelId:a.maxBy(e.acquiredDetails,"competencyLevelId"),levelsAchieve:t}},e}(),P=function(e){function n(t){return e.call(this,t)||this}return u(n,e),n.prototype.getRequiredCompetencyById=function(e){var t={url:c.urlConfig.getEntityById(3),data:e};return console.log("reqBody",t),this.post(t)},n.ctorParameters=function(){return[{type:s.HttpClient}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.HttpClient))},token:n,providedIn:"root"}),n=f([t.Injectable({providedIn:"root"})],n)}(c.DataService),S=function(){function e(e){this.requiredCompetencyService=e,this.competencyData=[{title:"Procurement and Distribution of HCM",description:"Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)",requiredLevel:"level 4"},{title:"Store management and planning and coordination of THR and Dry ration",description:"Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ",requiredLevel:"level 4"},{title:"Procurement and Distribution of HCM",description:"Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)",requiredLevel:"level 4"},{title:"Early Childhood Care Education",description:"Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ",requiredLevel:"level 4"},{title:"Procurement and Distribution of HCM",description:"Manages procurement and store raw materials for HCMs as per the pre-decided menu Supervises the preparation and distribution of HCM by Anganwadi Helper (AWH)",requiredLevel:"level 4"},{title:"Early Childhood Care Education",description:"Mobilizes children and conducts ECCE activities as per the yearly activity calendar and the ECCE manual ",requiredLevel:"level 4"}],this.panelOpenState=!0,this.customCollapsedHeight="100px",this.customExpandedHeight="100px",this.loading=!1,this.logs=[{index:1,header:"Understands HCM guidelines"},{index:2,header:"Lists raw material required"},{index:3,header:"Plans for storage"},{index:4,header:"Motivates the AWH and children on optimal hygiene and handwashing practices"},{index:5,header:"Course-Name Completion"}],this.requestUtil=new F}return e.prototype.ngOnInit=function(){},e.prototype.getRequiredByPostion=function(){return this.requiredCompetencyService.getRequiredCompetencyById({filter:{isDetail:!0}})},e.prototype.ngOnDestroy=function(){},e.ctorParameters=function(){return[{type:P}]},e=f([t.Component({selector:"lib-required-comptency-card",template:"<lib-self-assessment></lib-self-assessment>",styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;padding:16px 10px 20px 14px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;background:#fff}.title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}.description{font-size:14px;line-height:17px;letter-spacing:-.02em}.start-btn{background-color:#1c5d95!important;border-radius:50px;padding:8px 32px;gap:8px;font-size:16px;line-height:19px;color:#fff!important;margin-top:10px;border:none}.proficiency{color:#1c5d96;font-size:20px;cursor:pointer;margin-top:15px}.log-title{font-size:14px;line-height:24px;letter-spacing:-.02em;color:#1c5d95}.log{border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.logs{padding:5px}.log-items{font-size:16px;line-height:19px;letter-spacing:-.02em;color:#000}:host ::ng-deep .mat-expansion-panel-header:hover{background:rgba(255,255,255,.98)!important}:host ::ng-deep .mat-content{display:flex!important}.level{place-self:flex-end}"]})],e)}(),L=function(e){function n(t){var n=e.call(this,t)||this;return n.competencyData=new i.BehaviorSubject(void 0),n.competencyData$=n.competencyData.asObservable(),n}return u(n,e),n.prototype.fetchUserPassbook=function(e){var t={url:c.urlConfig.getUserPassbook(),data:e};return this.post(t)},n.prototype.fetchAllEntity=function(e){var t={url:c.urlConfig.getAllEntity(),data:e};return this.post(t)},n.ctorParameters=function(){return[{type:s.HttpClient}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.HttpClient))},token:n,providedIn:"root"}),n=f([t.Injectable({providedIn:"root"})],n)}(c.DataService),A=function(e){function n(t){return e.call(this,t)||this}return u(n,e),n.prototype.getActivityById=function(e){var t={url:c.urlConfig.getEntityById(e.id),data:e};return this.post(t)},n.prototype.getUserdetailsFromRegistry=function(e){var t={url:c.urlConfig.getUserdetailsFromRegistry(e.id)};return this.get(t).pipe(l.map((function(e){return e.result.response})))},n.ctorParameters=function(){return[{type:s.HttpClient}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.HttpClient))},token:n,providedIn:"root"}),n=f([t.Injectable({providedIn:"root"})],n)}(c.DataService),B=function(){function e(e,t,n){this.gainedService=e,this.configService=t,this.activeSummaryService=n,this.loading=!1,this.panelOpenState=!1,this.selectedProficiencyIndex=-1,this.selectedDisplayLevel=-1,this.requestUtil=new F}return e.prototype.ngOnInit=function(){var e=this;this.getUserDetails().subscribe((function(t){e.profileData=t.profileDetails.preferences?t.profileDetails.preferences.language:"en"})),this.loading=!0;var t=this.getAllEntity(),n=this.getAllUserPassbook();i.forkJoin([t,n]).subscribe((function(t){var n=e.requestUtil.formatedGainedCompetency(t[0].result.response,t[1].result.content,e.profileData);if(e.gainedproficencyData=n,e.gainedproficencyData){var r=[];a.forEach(e.gainedproficencyData,(function(e){e.competencyStoreData&&r.push(e.competencyStoreData)})),e.gainedService.competencyData.next(r)}e.loading=!1}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.activeSummaryService.getUserdetailsFromRegistry(e)},e.prototype.getAllUserPassbook=function(){return this.gainedService.fetchUserPassbook({request:{typeName:"competency"}})},e.prototype.getAllEntity=function(){return this.gainedService.fetchAllEntity({search:{type:"Competency"}})},e.prototype.selectLevel=function(e,t){e!==this.selectedProficiencyIndex||-1!==t&&t!==this.selectedDisplayLevel?this.selectedProficiencyIndex=e:this.selectedProficiencyIndex=-1,this.selectedDisplayLevel=t},e.ctorParameters=function(){return[{type:L},{type:p.ConfigService},{type:A}]},e=f([t.Component({selector:"lib-gained-comptency-card",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<ng-container *ngFor="let proficency of gainedproficencyData; let i = index">\r\n <div class="card-container example-container container-balanced">\r\n <ng-container *ngIf="proficency?.title">\r\n <div class="title">{{ proficency?.title }}</div>\r\n </ng-container>\r\n\r\n <div class="levelsTitle" i18n>Levels:</div>\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n [expanded]="i === selectedProficiencyIndex"\r\n class="w-full panel"\r\n hideToggle\r\n >\r\n <mat-expansion-panel-header\r\n class="flex-between items-center panel-header w-full"\r\n >\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container\r\n *ngFor="let proficiencyLevel of proficency?.proficiencyLevels"\r\n >\r\n <ng-container *ngIf="proficiencyLevel.selected; else addLevel">\r\n <div\r\n (click)="\r\n $event.stopPropagation();\r\n selectLevel(i, proficiencyLevel.displayLevel)\r\n "\r\n class="level mb-1"\r\n [ngStyle]="{ \'background-color\': proficiencyLevel.color }"\r\n [ngClass]="{\r\n \'individual-select\':\r\n selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === proficiencyLevel?.displayLevel\r\n }"\r\n >\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-container>\r\n <ng-template #addLevel>\r\n <div (click)="$event.stopPropagation()" class="level mb-1">\r\n {{ proficiencyLevel?.displayLevel }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <div\r\n class="level mb-1"\r\n (click)="$event.stopPropagation(); selectLevel(i, -1)"\r\n >\r\n <mat-icon\r\n [ngClass]="{ arrowReverse: selectedProficiencyIndex === i }"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <div>\r\n <span class="log-header" i18n>Log:</span>\r\n <ng-container\r\n *ngFor="let log of proficency?.logs; let logIndex = index; let last = last; "\r\n >\r\n <ng-container\r\n *ngIf="\r\n selectedDisplayLevel === -1 ||\r\n (selectedProficiencyIndex === i &&\r\n selectedDisplayLevel === log.level)\r\n "\r\n >\r\n <div class="log" [ngClass]="{\'border-bottom-0\': last}">\r\n <div class="flex">\r\n <ng-container *ngIf="log.header">\r\n <span class=""\r\n i18n>Level </span> <span>{{ log.level }}: {{ log.header }}</span\r\n >\r\n <span class="log-date mr-2">{{\r\n log?.date | date : "dd/MM/yyyy"\r\n }}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf="log.description">\r\n <div\r\n class="mt-2"\r\n [ngClass]="{ \'hide-content\': !log.keyboardArrowUp }"\r\n >\r\n {{ log.description }}\r\n </div>\r\n <div class="justify-end">\r\n <mat-icon\r\n (click)="log.keyboardArrowUp = !log.keyboardArrowUp"\r\n class="mr-3"\r\n [ngClass]="{ arrowReverse: log.keyboardArrowUp }"\r\n >keyboard_arrow_down</mat-icon\r\n >\r\n </div>\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n </div>\r\n \x3c!-- <hr> --\x3e\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.date{font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-300)}.justify-end{display:flex;justify-content:flex-end}.card-container{background:var(--white);border-bottom:1px solid #ddd;padding:5px 4px}.title{font-size:24px;line-height:29px;letter-spacing:-.02em;margin-bottom:18px}.levelsTitle{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.panel{box-shadow:0 0!important;padding:1px 3px 1px 0}.panel-header{padding:0!important;background:0 0!important}.panel-header-description{margin:0!important;padding:1px}.arrowReverse{transform:rotateX(180deg)}.level{width:47px;max-width:16.6%;height:36px;display:flex;justify-content:center;align-items:center;box-shadow:0 0 2.17333px rgba(0,0,0,.2509803922)}.log-header{font-size:14px;line-height:24px;letter-spacing:-.02em;color:var(--black)}.log{font-style:italic;font-size:14px;line-height:16px;letter-spacing:-.02em;color:var(--gray-400);border-bottom:1px solid #ddd;padding-bottom:9px;margin-top:10px}.log-date{font-style:normal;font-size:12px;line-height:14px;letter-spacing:-.02em;color:var(--gray-400);margin:0 auto}::ng-deep .mat-expansion-panel-body{padding:0!important}:host ::ng-deep .mat-content{display:unset!important}.hide-content{display:none}.individual-select{border:2px solid #1c5d95}"]})],e)}(),j=function(){function e(e){this.router=e,this.stateChange=new t.EventEmitter,this.tabIndex=1}return e.prototype.ngOnInit=function(){this.tabIndex=1},e.prototype.navigateBack=function(){this.router.navigate(["/app/profile-view"])},e.prototype.changeTab=function(e){this.tabIndex=e.index},e.prototype.startSelfAssessment=function(){this.stateChange.emit({navigation:!0})},e.ctorParameters=function(){return[{type:r.Router}]},f([t.Output()],e.prototype,"stateChange",void 0),e=f([t.Component({selector:"lib-competency-dashboard",template:'<div class="content">\r\n <mat-icon (click)="navigateBack()" class="cursor-pointer mb-3"\r\n >chevron_left</mat-icon\r\n >\r\n\r\n <h1 class="pl-2 mb-0" i18n>Competency Dashboard</h1>\r\n\r\n <div class="pl-2 tab-container">\r\n \x3c!-- <ng-container *ngIf="tabIndex === 1">\r\n <div class="sortIcon">\r\n <img src="./assets/comptency/images/filter.png" />\r\n </div>\r\n </ng-container> --\x3e\r\n <mat-tab-group\r\n [ngClass]="{ \'header-width-icon\': tabIndex === 1 }"\r\n class="remove-border-bottom"\r\n animationDuration="0ms"\r\n [selectedIndex]="tabIndex"\r\n (selectedTabChange)="changeTab($event)"\r\n >\r\n \x3c!-- Active Summary as Job Description --\x3e\r\n <mat-tab i18n-label label="Job Description">\r\n <h4 class="mt-4 mb-1" i18n>Roles</h4>\r\n <lib-active-summary *ngIf="tabIndex === 0"></lib-active-summary>\r\n </mat-tab>\r\n\r\n \x3c!-- gained as Passbook --\x3e\r\n <mat-tab i18n-label label="Passbook">\r\n <div class="legend-container">\r\n <div class="legend legend-blue"></div>\r\n <h5 i18n>External</h5>\r\n <div class="legend legend-green"></div>\r\n <h5 i18n>Self</h5>\r\n <div class="legend legend-yellow"></div>\r\n <h5 i18n>Course</h5>\r\n </div>\r\n <lib-gained-comptency-card\r\n *ngIf="tabIndex === 1"\r\n ></lib-gained-comptency-card>\r\n </mat-tab>\r\n\r\n \x3c!-- required --\x3e\r\n <mat-tab i18n-label label="Required">\r\n <div class="required-comperencies">\r\n <div class="mt-2 tab-badge" i18n>Self Assessments</div>\r\n <lib-required-comptency-card\r\n *ngIf="tabIndex === 2"\r\n ></lib-required-comptency-card>\r\n </div>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </div>\r\n</div>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.content{padding:60px 0 50px;margin:auto}@media only screen and (min-width:960px){.content{max-width:30%;padding:20px 20px 0}}@media only screen and (min-width:1280px){.content{max-width:35%}}@media only screen and (min-width:1920px){.content{max-width:30%}}@media only screen and (min-width:600px) and (max-width:959px){.content{max-width:50%}}.remove-border-bottom .mat-tab-header{border-bottom:none}:host ::ng-deep .remove-border-bottom .mat-tab-header{border-bottom:none!important}::ng-deep .mat-tab-label{padding:0!important;min-width:65px!important;color:var(--gray-200)!important;opacity:1.6!important;font-size:16px!important;margin-right:10px}::ng-deep .mat-tab-label-active{color:var(--blue)!important}:host ::ng-deep .mat-ink-bar{height:3px!important;background:var(--blue)!important;border-radius:5px!important}::ng-deep .theme-igot.day-mode .mat-ink-bar{background-color:var(--blue)!important}.legend-container{display:flex;gap:10px;margin-top:20px;align-items:center;margin-bottom:20px}.legend-container h5{margin:0;font-weight:400;font-size:16px}@media only screen and (max-width:599px){.content{max-width:90%}.legend-container{gap:5px}.legend-container h5{font-size:12px}}.legend-container .legend{min-width:15px;height:15px;background:#dfedf9;border-radius:50%;border:.5px solid #959595}.legend-container .legend-green{background:var(--teal);margin-left:18px}.legend-container .legend-blue{background:#7cb5e6}.legend-container .legend-yellow{background:#fffbb0;margin-left:18px}.btn-start{width:311px;height:35px;background:var(--blue);border-radius:50px;border:none;color:var(--white)}.tab-container{display:flex;flex-direction:column;gap:10px;position:relative}.tab-container .btn-container{display:flex;justify-content:center}.tab-container .sortIcon{position:absolute;right:0;top:13px;width:20px}.header-width-icon ::ng-deep .mat-tab-header{width:calc(100% - 25px)}.tab-badge{font-weight:400;font-size:16px;color:#000}"]})],e)}(),M=function(){function e(e,t,n){this.activeSummaryService=e,this.configService=t,this.gainedService=n,this.panelOpenState=!0,this.loading=!1,this.acordianLoading=!1,this.requestUtil=new F}return e.prototype.ngOnInit=function(){var e=this;this.getProgress(),this.loading=!0,this.getUserDetails().pipe(l.mergeMap((function(t){if(e.profileData=t.profileDetails.profileReq,e.language=t.profileDetails.preferences?t.profileDetails.preferences.language:"en",e.language||(e.language="en"),e.profileData)return e.getActivityByRole()}))).subscribe((function(t){var n=e.requestUtil.formatedActivitityByPostion(t,e.language);e.roleactivitySummaries=n,a.forEach(e.roleactivitySummaries,(function(t){t.id&&e.getActivityByRoleId(t.id)})),console.log(e.roleactivitySummaries),e.loading=!1}))},e.prototype.getProgress=function(){var e=this;this.gainedService.competencyData$.subscribe((function(t){e.competencyProgress=t}))},e.prototype.getUserDetails=function(){var e={id:this.configService.getConfig().id};return this.activeSummaryService.getUserdetailsFromRegistry(e)},e.prototype.getActivityByRole=function(){var e;this.profileData.professionalDetails&&(e=this.profileData.professionalDetails[0].designation);var t={filter:{isDetail:!0},id:this.designationMap(e)};return this.activeSummaryService.getActivityById(t)},e.prototype.designationMap=function(e){var t={AWW:95,ANM:210};return t.hasOwnProperty(e)?t[e]:1},e.prototype.getActivityByRoleId=function(e){var t=this;this.acordianLoading=!0;var n=a.findIndex(this.roleactivitySummaries,{id:e});this.roleactivitySummaries[n].activities=[],this.getEntityById(e).pipe(l.mergeMap((function(e){var r=t.requestUtil.formatedActivitityByRoleId(e,t.language);t.roleactivitySummaries[n].activities=r;var o=a.map(t.roleactivitySummaries[n].activities,"cid"),c=[];return a.forEach(o,(function(e){c.push(t.getEntityById(e))})),t.acordianLoading=!1,i.forkJoin.apply(void 0,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}(c))}))).subscribe((function(e){var r=t.requestUtil.formatedCompetency(e,t.competencyProgress,t.language);t.roleactivitySummaries[n].activities=a.values(a.merge(a.keyBy(r,"id"),a.keyBy(t.roleactivitySummaries[n].activities,"cid"))),t.roleactivitySummaries[n].averagePercentage=[];var o=t.getAveragepercentage(r);t.roleactivitySummaries[n].averagePercentage=o}))},e.prototype.getEntityById=function(e){var t={filter:{isDetail:!0},id:e};return this.activeSummaryService.getActivityById(t)},e.prototype.getAveragepercentage=function(e){var t=e.length,n=[];return a.forEach(e,(function(e){n.push(e.completionPercentage)})),a.round(a.sum(n)/t)},e.prototype.ngOnDestroy=function(){this.unsubscribe&&this.unsubscribe.unsubscribe()},e.ctorParameters=function(){return[{type:A},{type:p.ConfigService},{type:L}]},e=f([t.Component({selector:"lib-active-summary",template:'<lib-app-loader *ngIf="loading === true"></lib-app-loader>\r\n<ng-container *ngFor="let role of roleactivitySummaries">\r\n <div class="card-container">\r\n <mat-accordion>\r\n <mat-expansion-panel\r\n class=""\r\n (opened)="panelOpenState = true"\r\n (closed)="panelOpenState = false"\r\n >\r\n <mat-expansion-panel-header\r\n class="flex-between items-center w-full"\r\n collapsedHeight="auto"\r\n expandedHeight="auto"\r\n >\r\n\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngIf="role?.roles">\r\n <div class="flex flex-column w-full">\r\n <div class="title">{{ role?.roles }}</div>\r\n <div class="progress-status-none" *ngIf="role?.averagePercentage == 0"></div>\r\n <div class="progress-status" *ngIf="role?.averagePercentage < 100 && role?.averagePercentage != 0" i18n>In Progress</div>\r\n <div class="progress-status" *ngIf="role?.averagePercentage == 100" i18n>Completed</div>\r\n <ng-container >\r\n \x3c!-- \'warn-bar\': role?.averagePercentage < 100 && role?.averagePercentage != 0, --\x3e\r\n <div [ngClass]="{\'green-bar\': role?.averagePercentage == 100 , \'warn-bar\': role?.averagePercentage < 100 && role?.averagePercentage != 0 }">\r\n <mat-progress-bar class="bar-progress-colour" mode="determinate" value={{role?.averagePercentage}} class="mt-1"></mat-progress-bar>\r\n </div>\r\n </ng-container>\r\n\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <lib-app-loader *ngIf="acordianLoading === true"></lib-app-loader>\r\n <div class="expand-container" *ngIf="roleactivitySummaries.length>0">\r\n \x3c!-- list of activity --\x3e\r\n <div class="activity-badge" i18n>Activities</div>\r\n <ng-container\r\n *ngFor="let activity of role?.activities; let i = index"\r\n >\r\n <div class="activity-title" *ngIf="activity.title">\r\n - {{ activity.title }}\r\n </div>\r\n\r\n\r\n </ng-container>\r\n <ng-container *ngIf="role?.activities">\r\n <lib-competency-accordion [competencyList]="role?.activities"></lib-competency-accordion>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n\r\n </div>\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.card-container{margin:15px 2px;box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px}.spinner-loading{display:flex;justify-content:center}.title{font-size:20px;line-height:19px;letter-spacing:-.02em;color:var(--blue)}.icon-down{place-self:flex-end;color:var(--black)!important}:host ::ng-deep .mat-expansion-panel{height:auto}:host ::ng-deep .mat-expansion-panel-header:hover{background:inherit!important}:host ::ng-deep .mat-expansion-panel-body{padding:0 0 16px!important}:host ::ng-deep .mat-expansion-panel-header{border-radius:10px!important;padding:10px 10px 0}:host ::ng-deep .mat-expansion-indicator:after{color:var(--black)!important}:host ::ng-deep .mat-expansion-panel-header-description{margin-right:0!important}.activity-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black);margin-bottom:10px;padding:0 10px}.competency-container{background:var(--white);box-shadow:0 0 4px rgba(0,0,0,.15);border-radius:10px;padding:10px;margin:18px 0 15px}.competency-container .competency-title{font-size:20px;line-height:25px;letter-spacing:-.02em;color:var(--black);margin-bottom:20px}.competency-container .level{font-size:24px;line-height:24px;letter-spacing:-.02em;color:var(--blue)}.expand-container{padding:15px 0 0}.activity-badge{font-weight:400;font-size:14px;color:#1c5d95;background:#ebf4fb;border-radius:50px;width:-moz-fit-content;width:fit-content;padding:5px 20px;margin:0 10px 15px}.mat-progress-bar{border-radius:40px;height:4px}.value{position:relative;bottom:19px;color:#1c5d95;width:275px;display:flex;justify-content:center}::ng-deep.green-bar .theme-igot.day-mode .mat-progress-bar-fill::after{background:no-repeat padding-box #34d6a4!important;border-radius:40px}::ng-deep.warn-bar .mat-progress-bar-fill::after{background:no-repeat padding-box #f1cf8a!important;border-radius:40px}::ng-deep.theme-igot.day-mode .mat-progress-bar-buffer{background-color:#f5f5f5}.progress-status{font-style:italic;font-weight:400;font-size:12px;color:#000;place-self:end}.progress-status-none{visibility:hidden}"]})],e)}(),q=function(){function e(){}return e.prototype.ngOnInit=function(){console.log("list",this.competencyList)},f([t.Input()],e.prototype,"competencyList",void 0),e=f([t.Component({selector:"lib-competency-accordion",template:'<div class="competency-badge" i18n>Competencies :</div>\r\n<ng-container *ngFor="let competency of competencyList; let i = index">\r\n <ng-container *ngIf="competency.competency">\r\n <mat-accordion>\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header\r\n class="flex-between items-center w-full"\r\n collapsedHeight="auto"\r\n expandedHeight="auto"\r\n >\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngIf="competency.competency">\r\n <div class="flex flex-row align-items-center gap-2">\r\n <div>\r\n <ng-container *ngIf="competency.completionPercentage == 100">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon\r\n >\r\n </ng-container>\r\n <ng-container *ngIf="competency.completionPercentage < 100">\r\n <mat-progress-spinner\r\n diameter="20"\r\n strokeWidth="2"\r\n mode="determinate"\r\n [value]="competency.completionPercentage"\r\n ></mat-progress-spinner>\r\n </ng-container>\r\n </div>\r\n <div class="competency-title">{{ competency.competency }}</div>\r\n </div>\r\n </ng-container>\r\n </mat-panel-description>\r\n </mat-expansion-panel-header>\r\n \x3c!-- <lib-app-loader *ngIf="acordianLoading === true"></lib-app-loader> --\x3e\r\n <div class="expand-container">\r\n \x3c!-- list of levels --\x3e\r\n <div class="Levels-badge" i18n>Levels :</div>\r\n <ng-container *ngFor="let level of competency.levels; let i = index">\r\n <div class="flex flex-row align-items-center gap-2">\r\n <div>\r\n <ng-container *ngIf="level.achived">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n <ng-container *ngIf="!level.achived" >\r\n <mat-icon class="non-progress cursor-pointer"\r\n >check_circle</mat-icon>\r\n </ng-container>\r\n </div>\r\n <div class="Levels-title">{{ i + 1 }} : {{ level.name }}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </mat-expansion-panel>\r\n </mat-accordion>\r\n <hr />\r\n </ng-container>\r\n</ng-container>\r\n',styles:[":root{font-size:16px;--blue:#1C5D95;--yellow:#FFF4DF;--teal:#A4DFCA;--black:#000000;--white:#ffffff;--light-gray:#eff6fc;--grey-100:#DFEDF9;--gray-200:#8E8E8E;--gray-300:#989898;--gray-400:#808080;--grey-500:#919191;--yellow-500:#FFFBB0;--blue-500:#7CB5E6}.button-primary{background-color:var(--blue)!important;border-radius:50px;gap:8px;color:var(--white)!important;border:none}.mat-primary-background{padding:9px 40px;width:310px;cursor:pointer}.competency-badge{font-weight:400;font-size:14px;color:#1c5d95;padding:0 10px;margin-top:20px}.competency-title{font-size:16px;line-height:19px;letter-spacing:-.02em;color:var(--black)}.expand-container{padding:0 10px}.Levels-badge{font-size:14px;color:#1c5d95;margin-bottom:5px}.circle-tick{display:flex;justify-content:center;align-items:center;color:#27ae60;font-size:18px!important}.non-progress{visibility:hidden}"]})],e)}(),H=function(){function e(){}return e=f([t.NgModule({declarations:[S,B,j,M,q],imports:[n.CommonModule,o.MatTabsModule,o.MatIconModule,o.MatExpansionModule,o.MatProgressBarModule,o.MatProgressSpinnerModule,s.HttpClientModule,c.CoreModule,d.SelfAssessmentModule],exports:[S,B,j,M]})],e)}();e.CompetencyModule=H,e.EntryModule=I,e.SelfAssessmentModule=E,e.ɵa=h,e.ɵb=v,e.ɵc=x,e.ɵd=b,e.ɵe=D,e.ɵf=C,e.ɵg=k,e.ɵh=S,e.ɵi=P,e.ɵj=B,e.ɵk=L,e.ɵl=A,e.ɵm=j,e.ɵn=M,e.ɵo=q,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=aastrika_npmjs-comptency.umd.min.js.map |
@@ -30,3 +30,4 @@ import * as tslib_1 from "tslib"; | ||
this.profileData = res.profileDetails.profileReq; | ||
this.language = res.profileDetails.preferences.language; | ||
// this.language = res.profileDetails.preferences.language | ||
this.language = res.profileDetails.preferences ? res.profileDetails.preferences.language : 'en'; | ||
if (!this.language) | ||
@@ -145,2 +146,2 @@ this.language = 'en'; | ||
export { ActiveSummaryComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZlLXN1bW1hcnkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFhc3RyaWthX25wbWpzL2NvbXB0ZW5jeS9jb21wZXRlbmN5LyIsInNvdXJjZXMiOlsiY29tcG9uZW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GV0IHRvdGFsUGVyY2VudCA9IDBcclxuICAgIF8uZm9yRWFjaChkYXRhLCAodmFsdWU6IGFueSkgPT4ge1xyXG4gICAgICBwZXJjZW50YWdlLnB1c2godmFsdWUuY29tcGxldGlvblBlcmNlbnRhZ2UpXHJcbiAgICB9KVxyXG4gICAgdG90YWxQZXJjZW50ID0gXy5yb3VuZChfLnN1bShwZXJjZW50YWdlKSAvIHRvdGFsTGVuZ3RoKVxyXG4gICAgcmV0dXJuIHRvdGFsUGVyY2VudFxyXG4gIH1cclxuICBuZ09uRGVzdHJveSgpIHtcclxuICAgIGlmICh0aGlzLnVuc3Vic2NyaWJlKSB7XHJcbiAgICAgIHRoaXMudW5zdWJzY3JpYmUudW5zdWJzY3JpYmUoKVxyXG4gICAgfVxyXG5cclxuICB9XHJcbn1cclxuIl19 |
@@ -22,3 +22,3 @@ import * as tslib_1 from "tslib"; | ||
this.getUserDetails().subscribe((res) => { | ||
this.profileData = res.profileDetails.preferences.language; | ||
this.profileData = res.profileDetails.preferences ? res.profileDetails.preferences.language : 'en'; | ||
}); | ||
@@ -92,2 +92,2 @@ this.loading = true; | ||
export { GainedComptencyCardComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2FpbmVkLWNvbXB0ZW5jeS1jYXJkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYXN0cmlrYV9ucG1qcy9jb21wdGVuY3kvY29tcGV0ZW5jeS8iLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvZ2FpbmVkLWNvbXB0ZW5jeS1jYXJkL2dhaW5lZC1jb21wdGVuY3ktY2FyZC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDbEQsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUNo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kpXHJcbiAgfVxyXG5cclxuICBwcml2YXRlIGdldEFsbEVudGl0eSgpIHtcclxuICAgIGNvbnN0IHJlcUJvZHkgPSB7XHJcbiAgICAgIFwic2VhcmNoXCI6IHtcclxuICAgICAgICBcInR5cGVcIjogXCJDb21wZXRlbmN5XCJcclxuICAgICAgfVxyXG4gICAgfTtcclxuICAgIHJldHVybiB0aGlzLmdhaW5lZFNlcnZpY2UuZmV0Y2hBbGxFbnRpdHkocmVxQm9keSlcclxuICB9XHJcblxyXG4gIHNlbGVjdExldmVsKHNlbGVjdGVkUHJvZmljaWVuY3lJbmRleCwgc2VsZWN0ZWREaXNwbGF5TGV2ZWwpIHtcclxuICAgIGlmICgoc2VsZWN0ZWRQcm9maWNpZW5jeUluZGV4ID09PSB0aGlzLnNlbGVjdGVkUHJvZmljaWVuY3lJbmRleCkgJiYgKHNlbGVjdGVkRGlzcGxheUxldmVsID09PSAtMSB8fFxyXG4gICAgICBzZWxlY3RlZERpc3BsYXlMZXZlbCA9PT0gdGhpcy5zZWxlY3RlZERpc3BsYXlMZXZlbCkpIHtcclxuICAgICAgdGhpcy5zZWxlY3RlZFByb2ZpY2llbmN5SW5kZXggPSAtMVxyXG4gICAgfSBlbHNlIHtcclxuICAgICAgdGhpcy5zZWxlY3RlZFByb2ZpY2llbmN5SW5kZXggPSBzZWxlY3RlZFByb2ZpY2llbmN5SW5kZXhcclxuICAgIH1cclxuICAgIHRoaXMuc2VsZWN0ZWREaXNwbGF5TGV2ZWwgPSBzZWxlY3RlZERpc3BsYXlMZXZlbFxyXG4gIH1cclxufVxyXG4iXX0= |
@@ -26,3 +26,3 @@ import * as tslib_1 from "tslib"; | ||
this.getUserDetails().pipe(mergeMap((res) => { | ||
this.profileData = res.profileDetails.preferences.language; | ||
this.profileData = res.profileDetails.preferences ? res.profileDetails.preferences.language : 'en'; | ||
if (!this.profileData) { | ||
@@ -159,2 +159,2 @@ this.profileData = 'en'; | ||
export { SelfAssessmentComponent }; | ||
//# sourceMapp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bnkpID0+IHtcclxuICAgICAgICAgIHRoaXMuZ2V0UHJvZ3Jlc3ModmFsdWUpLnN1YnNjcmliZSgocmVzKSA9PiB7XHJcbiAgICAgICAgICAgIGlmIChyZXMucmVzdWx0KSB7XHJcbiAgICAgICAgICAgICAgaWYgKHJlcy5yZXN1bHQuY29udGVudExpc3QubGVuZ3RoID4gMCkge1xyXG4gICAgICAgICAgICAgICAgaWYgKHJlcy5yZXN1bHQuY29udGVudExpc3QubGVuZ3RoID4gMCAmJiB2YWx1ZS5jaGlsZENvbnRlbnQgPT09IHJlcy5yZXN1bHQuY29udGVudExpc3QubGVuZ3RoKSB7XHJcbiAgICAgICAgICAgICAgICAgIGxldCB0eXBlID0gJydcclxuICAgICAgICAgICAgICAgICAgXy5mb3JFYWNoKHJlcy5yZXN1bHQuY29udGVudExpc3QsIChpdGVtOmFueSk9PntcclxuICAgICAgICAgICAgICAgICAgICBpZihpdGVtLmNvbXBsZXRpb25QZXJjZW50YWdlID09PSAxMDAgJiYgaXRlbS5jb21wbGV0aW9uUGVyY2VudGFnZSAhPT0gMCApe1xyXG4gICAgICAgICAgICAgICAgICAgICAgdHlwZSA9ICdET05FJ1xyXG4gICAgICAgICAgICAgICAgICAgIH1lbHNle1xyXG4gICAgICAgICAgICAgICAgICAgICAgdHlwZSA9ICdSRVNVTUUnXHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICB9KVxyXG4gICAgICAgICAgICAgICAgICB0aGlzLmJ0blR5cGUucHVzaCh7XHJcbiAgICAgICAgICAgICAgICAgICAgY291cnNlSWQ6IHZhbHVlLmNvbnRlbnRJZCxcclxuICAgICAgICAgICAgICAgICAgICB0eXBlXHJcbiAgICAgICAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgICB0aGlzLmJ0blR5cGUucHVzaCh7XHJcbiAgICAgICAgICAgICAgICAgICAgY291cnNlSWQ6IHZhbHVlLmNvbnRlbnRJZCxcclxuICAgICAgICAgICAgICAgICAgICB0eXBlOiAnUkVTVU1FJ1xyXG4gICAgICAgICAgICAgICAgICB9KVxyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgaWYocmVzLnJlc3VsdC5jb250ZW50TGlzdC5sZW5ndGggPT0gMCApIHtcclxuICAgICAgICAgICAgICB0aGlzLmJ0blR5cGUucHVzaCh7XHJcbiAgICAgICAgICAgICAgICBjb3Vyc2VJZDogdmFsdWUuY29udGVudElkLFxyXG4gICAgICAgICAgICAgICAgdHlwZTogJ1NUQVJUJ1xyXG4gICAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgIH0pXHJcbiAgICAgICAgfSlcclxuICAgICAgICB0aGlzLmxvYWRpbmcgPSBmYWxzZVxyXG4gICAgICB9KVxyXG5cclxuXHJcbiAgICAvLyBpZih0aGlzLnByb2ZpbGVEYXRhICE9PSB1bmRlZmluZWQgKXtcclxuXHJcbiAgICAvLyAgIHRoaXMuZ2V0Q29tcGV0ZW5jeURhdGEoKVxyXG4gICAgLy8gfVxyXG5cclxuXHJcblxyXG5cclxuICB9XHJcblxyXG4gIGdldENvbXBldGVuY3lEYXRhKCl7XHJcbiAgICB0aGlzLmdldENvbXBldGVuY3lDb3Vyc2UoKS5waXBlKG1hcCgocmVzOiBhbnkpID0+IHtcclxuICAgICAgY29uc3QgZm9ybWF0ZWRSZXNwb25zZSA9IHRoaXMucmVxdWVzdFV0aWwuZm9ybWF0ZWRDb21wZXRlbmN5Q291cnNlRGF0YShyZXMpXHJcbiAgICAgIHJldHVybiBmb3JtYXRlZFJlc3BvbnNlXHJcbiAgICB9KSkuc3Vic2NyaWJlKChyZXMpID0+IHtcclxuICAgICAgdGhpcy5zZWxmQXNzZXNzbWVudERhdGEgPSByZXNcclxuICAgICAgXy5mb3JFYWNoKHJlcywgKHZhbHVlOiBhbnkpID0+IHtcclxuICAgICAgICB0aGlzLmdldFByb2dyZXNzKHZhbHVlKS5zdWJzY3JpYmUoKHJlcykgPT4ge1xyXG4gICAgICAgICAgaWYgKHJlcy5yZXN1bHQpIHtcclxuICAgICAgICAgICAgaWYgKHJlcy5yZXN1bHQuY29udGVudExpc3QubGVuZ3RoID4gMCkge1xyXG4gICAgICAgICAgICAgIGlmIChyZXMucmVzdWx0LmNvbnRlbnRMaXN0Lmxlbmd0aCA+IDAgJiYgdmFsdWUuY2hpbGRDb250ZW50ID09PSByZXMucmVzdWx0LmNvbnRlbnRMaXN0Lmxlbmd0aCkge1xyXG4gICAgICAgICAgICAgICAgbGV0IHR5cGUgPSAnJ1xyXG4gICAgICAgICAgICAgICAgXy5mb3JFYWNoKHJlcy5yZXN1bHQuY29udGVudExpc3QsIChpdGVtOmFueSk9PntcclxuICAgICAgICAgICAgICAgICAgaWYoaXRlbS5jb21wbGV0aW9uUGVyY2VudGFnZSA9PT0gMTAwICYmIGl0ZW0uY29tcGxldGlvblBlcmNlbnRhZ2UgIT09IDAgKXtcclxuICAgICAgICAgICAgICAgICAgICB0eXBlID0gJ0RPTkUnXHJcbiAgICAgICAgICAgICAgICAgIH1lbHNle1xyXG4gICAgICAgICAgICAgICAgICAgIHR5cGUgPSAnUkVTVU1FJ1xyXG4gICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICB9KVxyXG4gICAgICAgICAgICAgICAgdGhpcy5idG5UeXBlLnB1c2goe1xyXG4gICAgICAgICAgICAgICAgICBjb3Vyc2VJZDogdmFsdWUuY29udGVudElkLFxyXG4gICAgICAgICAgICAgICAgICB0eXBlXHJcbiAgICAgICAgICAgICAgICB9KVxyXG4gICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICB0aGlzLmJ0blR5cGUucHVzaCh7XHJcbiAgICAgICAgICAgICAgICAgIGNvdXJzZUlkOiB2YWx1ZS5jb250ZW50SWQsXHJcbiAgICAgICAgICAgICAgICAgIHR5cGU6ICdSRVNVTUUnXHJcbiAgICAgICAgICAgICAgICB9KVxyXG4gICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgfVxyXG5cclxuICAgICAgICAgIGlmKHJlcy5yZXN1bHQuY29udGVudExpc3QubGVuZ3RoID09IDAgKSB7XHJcbiAgICAgICAgICAgIHRoaXMuYnRuVHlwZS5wdXNoKHtcclxuICAgICAgICAgICAgICBjb3Vyc2VJZDogdmFsdWUuY29udGVudElkLFxyXG4gICAgICAgICAgICAgIHR5cGU6ICdTVEFSVCdcclxuICAgICAgICAgICAgfSlcclxuICAgICAgICAgIH1cclxuICAgICAgICB9KVxyXG4gICAgICB9KVxyXG5cclxuICAgICAgdGhpcy5sb2FkaW5nID0gZmFsc2VcclxuICAgIH0pXHJcbiAgfVxyXG5cclxuICBnZXRVc2VyRGV0YWlscygpIHtcclxuICAgIGNvbnN0IHJlcUJvZHkgPSB7XHJcbiAgICAgIGlkOiB0aGlzLmNvbmZpZ1NlcnZpY2UuZ2V0Q29uZmlnKCkuaWRcclxuICAgIH1cclxuICAgIHJldHVybiB0aGlzLnNlbGZBc3Nlc3NtZW50U2VydmljZS5nZXRVc2VyZGV0YWlsc0Zyb21SZWdpc3RyeShyZXFCb2R5KVxyXG4gIH1cclxuXHJcbiAgZ2V0Q29tcGV0ZW5jeUNvdXJzZSgpIHtcclxuICAgIHJldHVybiB0aGlzLnNlbGZBc3Nlc3NtZW50U2VydmljZS5nZXRDb21wZXRlbmN5Q291cnNlSWRlbnRpZmllcih0aGlzLnByb2ZpbGVEYXRhKVxyXG4gIH1cclxuXHJcbiAgZ2V0UHJvZ3Jlc3MoZGF0YSkge1xyXG4gICAgY29uc3QgcmVxYm9keSA9IHtcclxuICAgICAgcmVxdWVzdDoge1xyXG4gICAgICAgIHVzZXJJZDogdGhpcy5jb25maWdTZXJ2aWNlLmdldENvbmZpZygpLmlkLFxyXG4gICAgICAgIGJhdGN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jb21wbGV0aW9uUGVyY2VudGFnZSA9PT0gMTAwICYmIGl0ZW0uY29tcGxldGlvblBlcmNlbnRhZ2UgIT09IDAgKXtcclxuICAgICAgICAgICAgICAgICAgICAgIHR5cGUgPSAnRE9ORSdcclxuICAgICAgICAgICAgICAgICAgICB9ZWxzZXtcclxuICAgICAgICAgICAgICAgICAgICAgIHR5cGUgPSAnUkVTVU1FJ1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICAgICAgdGhpcy5idG5UeXBlLnB1c2goe1xyXG4gICAgICAgICAgICAgICAgICAgIGNvdXJzZUlkOiB2YWx1ZS5jb250ZW50SWQsXHJcbiAgICAgICAgICAgICAgICAgICAgdHlwZVxyXG4gICAgICAgICAgICAgICAgICB9KVxyXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgdGhpcy5idG5UeXBlLnB1c2goe1xyXG4gICAgICAgICAgICAgICAgICAgIGNvdXJzZUlkOiB2YWx1ZS5jb250ZW50SWQsXHJcbiAgICAgICAgICAgICAgICAgICAgdHlwZTogJ1JFU1VNRSdcclxuICAgICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgIGlmKHJlcy5yZXN1bHQuY29udGVudExpc3QubGVuZ3RoID09IDAgKSB7XHJcbiAgICAgICAgICAgICAgdGhpcy5idG5UeXBlLnB1c2goe1xyXG4gICAgICAgICAgICAgICAgY291cnNlSWQ6IHZhbHVlLmNvbnRlbnRJZCxcclxuICAgICAgICAgICAgICAgIHR5cGU6ICdTVEFSVCdcclxuICAgICAgICAgICAgICB9KVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICB9KVxyXG4gICAgICAgIH0pXHJcbiAgICAgICAgdGhpcy5sb2FkaW5nID0gZmFsc2VcclxuICAgICAgf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29tcGxldGlvblBlcmNlbnRhZ2UgPT09IDEwMCAmJiBpdGVtLmNvbXBsZXRpb25QZXJjZW50YWdlICE9PSAwICl7XHJcbiAgICAgICAgICAgICAgICAgICAgdHlwZSA9ICdET05FJ1xyXG4gICAgICAgICAgICAgICAgICB9ZWxzZXtcclxuICAgICAgICAgICAgICAgICAgICB0eXBlID0gJ1JFU1VNRSdcclxuICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICAgIHRoaXMuYnRuVHlwZS5wdXNoKHtcclxuICAgICAgICAgICAgICAgICAgY291cnNlSWQ6IHZhbHVlLmNvbnRlbnRJZCxcclxuICAgICAgICAgICAgICAgICAgdHlwZVxyXG4gICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgdGhpcy5idG5UeXBlLnB1c2goe1xyXG4gICAgICAgICAgICAgICAgICBjb3Vyc2VJZDogdmFsdWUuY29udGVudElkLFxyXG4gICAgICAgICAgICAgICAgICB0eXBlOiAnUkVTVU1FJ1xyXG4gICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICBpZihyZXMucmVzdWx0LmNvbnRlbnRMaXN0Lmxlbmd0aCA9PSAwICkge1xyXG4gICAgICAgICAgICB0aGlzLmJ0blR5cGUucHVzaCh7XHJcbiAgICAgICAgICAgICAgY291cnNlSWQ6IHZhbHVlLmNvbnRlbnRJZCxcclxuICAgICAgICAgICAgICB0eXBlOiAnU1RBUlQnXHJcbiAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgfSlcclxuICAgICAgfSlcclxuXHJcbiAgICAgIHRoaXMubG9hZGluZyA9IGZhbHNlXHJcbiAgICB9KVxyXG4gIH1cclxuXHJcbiAgZ2V0VXNlckRldGFpbHMoKSB7XHJcbiAgICBjb25zdCByZXFCb2R5ID0ge1xyXG4gICAgICBpZDogdGhpcy5jb25maWdTZXJ2aWNlLmdldENvbmZpZygpLmlkXHJcbiAgICB9XHJcbiAgICByZXR1cm4gdGhpcy5zZWxmQXNzZXNzbWVudFNlcnZpY2UuZ2V0VXNlcmRldGFpbHNGcm9tUmVnaXN0cnkocmVxQm9keSlcclxuICB9XHJcblxyXG4gIGdldENvbXBldGVuY3lDb3Vyc2UoKSB7XHJcbiAgICByZXR1cm4gdGhpcy5zZWxmQXNzZXNzbWVudFNlcnZpY2UuZ2V0Q29tcGV0ZW5jeUNvdXJzZUlkZW50aWZpZXIodGhpcy5wcm9maWxlRGF0YSlcclxuICB9XHJcblxyXG4gIGdldFByb2dyZXNzKGRhdGEpIHtcclxuICAgIGNvbnN0IHJlcWJvZHkgPSB7XHJcbiAgICAgIHJlcXVlc3Q6IHtcclxuICAgICAgICB1c2VySWQ6IHRoaXMuY29uZmlnU2VydmljZS5nZXRDb25maWcoKS5pZCxcclxuICAgICAgICBiYXRjaElkOiBkYXRhLmJhdGNoSWQsXHJcbiAgICAgICAgY291cnNlSWQ6IGRhdGEuY29udGVudElkLFxyXG4gICAgICAgIGNvbnRlbnRJZHM6IFtdLFxyXG4gICAgICAgIGZpZWxkczogWydwcm9ncmVzc2RldGFpbHMnXSxcclxuICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIHJldHVybiB0aGlzLnNlbGZBc3Nlc3NtZW50U2VydmljZS5mZXRjaFByZ3Jlc3NEZXRhaWxzKHJlcWJvZHkpXHJcbiAgfVxyXG5cclxuXHJcbiAgbmF2aWdhdGVCYWNrKCkge1xyXG4gICAgdGhpcy5sb2NhdGlvbi5iYWNrKClcclxuICB9XHJcblxyXG59XHJcbiJdfQ== |
@@ -31,3 +31,4 @@ import * as tslib_1 from "tslib"; | ||
_this.profileData = res.profileDetails.profileReq; | ||
_this.language = res.profileDetails.preferences.language; | ||
// this.language = res.profileDetails.preferences.language | ||
_this.language = res.profileDetails.preferences ? res.profileDetails.preferences.language : 'en'; | ||
if (!_this.language) | ||
@@ -149,2 +150,2 @@ _this.language = 'en'; | ||
export { ActiveSummaryComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZlLXN1bW1hcnkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFhc3RyaWthX25wbWpzL2NvbXB0ZW5jeS9jb21wZXRlbmN5LyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy9hY3RpdmUtc3VtbWFyeS9hY3RpdmUtc3VtbWFyeS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQXFCLE1BQU0sZUFBZSxDQUFDO0FBQzdELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUMxRCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSx1Q0FBdUMsQ0FBQztBQUM3RSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDMUMsT0FBTyxFQUFFLFFBQVEsRUFBb0IsTUFBTSxNQUFNLENBQUM7QUFDbEQsT0FBTyxLQUFLLENBQUMsTUFBTSxXQUFXLENBQUM7QUFDL0IsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQ3ZFLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQU05RDtJQWdCRSxnQ0FDUyxvQkFBMEMsRUFDMUMsYUFBNEIsRUFDNUIsYUFBNEI7UUFGNUIseUJBQW9CLEdBQXBCLG9CQUFvQixDQUFzQjtRQUMxQyxrQkFBYSxHQUFiLGFBQWEsQ0FBZTtRQUM1QixrQkFBYSxHQUFiLGFBQWEsQ0FBZTtRQWxCckM7Ozs7U0FJQztRQUNELG1CQUFj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pbHRlcjoge1xyXG4gICAgICAgIFwiaXNEZXRhaWxcIjogdHJ1ZVxyXG4gICAgICB9LFxyXG4gICAgICBpZDogaWRcclxuICAgIH07XHJcbiAgICByZXR1cm4gdGhpcy5hY3RpdmVTdW1tYXJ5U2VydmljZS5nZXRBY3Rpdml0eUJ5SWQocmVxQm9keSlcclxuICB9XHJcbiAgZ2V0QXZlcmFnZXBlcmNlbnRhZ2UoZGF0YSkge1xyXG4gICAgbGV0IHRvdGFsTGVuZ3RoID0gZGF0YS5sZW5ndGhcclxuICAgIGxldCBwZXJjZW50YWdlID0gW11cclxuICAgIGxldCB0b3RhbFBlcmNlbnQgPSAwXHJcbiAgICBfLmZvckVhY2goZGF0YSwgKHZhbHVlOiBhbnkpID0+IHtcclxuICAgICAgcGVyY2VudGFnZS5wdXNoKHZhbHVlLmNvbXBsZXRpb25QZXJjZW50YWdlKVxyXG4gICAgfSlcclxuICAgIHRvdGFsUGVyY2VudCA9IF8ucm91bmQoXy5zdW0ocGVyY2VudGFnZSkgLyB0b3RhbExlbmd0aClcclxuICAgIHJldHVybiB0b3RhbFBlcmNlbnRcclxuICB9XHJcbiAgbmdPbkRlc3Ryb3koKSB7XHJcbiAgICBpZiAodGhpcy51bnN1YnNjcmliZSkge1xyXG4gICAgICB0aGlzLnVuc3Vic2NyaWJlLnVuc3Vic2NyaWJlKClcclxuICAgIH1cclxuXHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -23,3 +23,3 @@ import * as tslib_1 from "tslib"; | ||
this.getUserDetails().subscribe(function (res) { | ||
_this.profileData = res.profileDetails.preferences.language; | ||
_this.profileData = res.profileDetails.preferences ? res.profileDetails.preferences.language : 'en'; | ||
}); | ||
@@ -94,2 +94,2 @@ this.loading = true; | ||
export { GainedComptencyCardComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2FpbmVkLWNvbXB0ZW5jeS1jYXJkLmNvbXBvbmVudC5qcyIsInNvd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lZFByb2ZpY2llbmN5SW5kZXhcclxuICAgIH1cclxuICAgIHRoaXMuc2VsZWN0ZWREaXNwbGF5TGV2ZWwgPSBzZWxlY3RlZERpc3BsYXlMZXZlbFxyXG4gIH1cclxufVxyXG4iXX0= |
@@ -27,3 +27,3 @@ import * as tslib_1 from "tslib"; | ||
this.getUserDetails().pipe(mergeMap(function (res) { | ||
_this.profileData = res.profileDetails.preferences.language; | ||
_this.profileData = res.profileDetails.preferences ? res.profileDetails.preferences.language : 'en'; | ||
if (!_this.profileData) { | ||
@@ -162,2 +162,2 @@ _this.profileData = 'en'; | ||
export { SelfAssessmentComponent }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZi1hc3Nlc3NtZW50LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYXN0cmlrYV9ucG1qcy9jb21wdGVuY3kvIiwic291cmNlcyI6WyJzZWxmLWFzc2Vzc21lbnQvY29tcG9uZW50cy9zZWxmLWFzc2Vzc21lbnQvc2VsZi1hc3Nlc3NtZW50LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0saUJBQWlCLENBQUE7QUFDMUMsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sdUNBQXVDLENBQUM7QUFDOUUsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLG9DQUFvQyxDQUFDO0FBQ2pFLE9BQU8sRUFBRSxHQUFHLEVBQUUsUUFBUSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDL0MsT0FBTyxLQUFLLENBQUMsTUFBTSxXQUFXLENBQUM7QUFDL0IsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBUXZFO0l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yXG4gICAgICAgICAgcmV0dXJuIHRoaXMuZ2V0Q29tcGV0ZW5jeUNvdXJzZSgpXHJcbiAgICAgICAgfVxyXG4gICAgICB9KSkuc3Vic2NyaWJlKChyZXM6IGFueSkgPT57XHJcbiAgICAgICAgdGhpcy5zZWxmQXNzZXNzbWVudERhdGEgPSB0aGlzLnJlcXVlc3RVdGlsLmZvcm1hdGVkQ29tcGV0ZW5jeUNvdXJzZURhdGEocmVzKVxyXG4gICAgICAgIF8uZm9yRWFjaCggdGhpcy5zZWxmQXNzZXNzbWVudERhdGEsICh2YWx1ZTogYW55KSA9PiB7XHJcbiAgICAgICAgICB0aGlzLmdldFByb2dyZXNzKHZhbHVlKS5zdWJzY3JpYmUoKHJlcykgPT4ge1xyXG4gICAgICAgICAgICBpZiAocmVzLnJlc3VsdCkge1xyXG4gICAgICAgICAgICAgIGlmIChyZXMucmVzdWx0LmNvbnRlbnRMaXN0Lmxlbmd0aCA+IDApIHtcclxuICAgICAgICAgICAgICAgIGlmIChyZXMucmVzdWx0LmNvbnRlbnRMaXN0Lmxlbmd0aCA+IDAgJiYgdmFsdWUuY2hpbGRDb250ZW50ID09PSByZXMucmVzdWx0LmNvbnRlbnRMaXN0Lmxlbmd0aCkge1xyXG4gICAgICAgICAgICAgICAgICBsZXQgdHlwZSA9ICcnXHJcbiAgICAgICAgICAgICAgICAgIF8uZm9yRWFjaChyZXMucmVzdWx0LmNvbnRlbnRMaXN0LCAoaXRlbTphbnkpPT57XHJcbiAgICAgICAgICAgICAgICAgICAgaWYoaXRlbS5jb21wbGV0aW9uUGVyY2VudGFnZSA9PT0gMTAwICYmIGl0ZW0uY29tcGxldGlvblBlcmNlbnRhZ2UgIT09IDAgKXtcclxuICAgICAgICAgICAgICAgICAgICAgIHR5cGUgPSAnRE9ORSdcclxuICAgICAgICAgICAgICAgICAgICB9ZWxzZXtcclxuICAgICAgICAgICAgICAgICAgICAgIHR5cGUgPSAnUkVTVU1FJ1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICAgICAgdGhpcy5idG5UeXBlLnB1c2goe1xyXG4gICAgICAgICAgICAgICAgICAgIGNvdXJzZUlkOiB2YWx1ZS5jb250ZW50SWQsXHJcbiAgICAgICAgICAgICAgICAgICAgdHlwZVxyXG4gICAgICAgICAgICAgICAgICB9KVxyXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgdGhpcy5idG5UeXBlLnB1c2goe1xyXG4gICAgICAgICAgICAgICAgICAgIGNvdXJzZUlkOiB2YWx1ZS5jb250ZW50SWQsXHJcbiAgICAgICAgICAgICAgICAgICAgdHlwZTogJ1JFU1VNRSdcclxuICAgICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgIGlmKHJlcy5yZXN1bHQuY29udGVudExpc3QubGVuZ3RoID09IDAgKSB7XHJcbiAgICAgICAgICAgICAgdGhpcy5idG5UeXBlLnB1c2goe1xyXG4gICAgICAgICAgICAgICAgY291cnNlSWQ6IHZhbHVlLmNvbnRlbnRJZCxcclxuICAgICAgICAgICAgICAgIHR5cGU6ICdTVEFSVCdcclxuICAgICAgICAgICAgICB9KVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICB9KVxyXG4gICAgICAgIH0pXHJcbiAgICAgICAgdGhpcy5sb2FkaW5nID0gZmFsc2VcclxuICAgICAgfSlcclxuXHJcblxyXG4gICAgLy8gaWYodGhpcy5wcm9maWxlRGF0YSAhPT0gdW5kZWZpbmVkICl7XHJcblxyXG4gICAgLy8gICB0aGlzLmdldENvbXBldGVuY3lEYXRhKClcclxuICAgIC8vIH1cclxuXHJcblxyXG5cclxuXHJcbiAgfVxyXG5cclxuICBnZXRDb21wZXRlbmN5RGF0YSgpe1xyXG4gICAgdGhpcy5nZXRDb21wZXRlbmN5Q291cnNlKCkucGlwZShtYXAoKHJlczogYW55KSA9PiB7XHJcbiAgICAgIGNvbnN0IGZvcm1hdGVkUmVzcG9uc2UgPSB0aGlzLnJlcXVlc3RVdGlsLmZvcm1hdGVkQ29tcGV0ZW5jeUNvdXJzZURhdGEocmVzKVxyXG4gICAgICByZXR1cm4gZm9ybWF0ZWRSZXNwb25zZVxyXG4gICAgfSkpLnN1YnNjcmliZSgocmVzKSA9PiB7XHJcbiAgICAgIHRoaXMuc2VsZkFzc2Vzc21lbnREYXRhID0gcmVzXHJcbiAgICAgIF8uZm9yRWFjaChyZXMsICh2YWx1ZTogYW55KSA9PiB7XHJcbiAgICAgICAgdGhpcy5nZXRQcm9ncmVzcyh2YWx1ZSkuc3Vic2NyaWJlKChyZXMpID0+IHtcclxuICAgICAgICAgIGlmIChyZXMucmVzdWx0KSB7XHJcbiAgICAgICAgICAgIGlmIChyZXMucmVzdWx0LmNvbnRlbnRMaXN0Lmxlbmd0aCA+IDApIHtcclxuICAgICAgICAgICAgICBpZiAocmVzLnJlc3VsdC5jb250ZW50TGlzdC5sZW5ndGggPiAwICYmIHZhbHVlLmNoaWxkQ29udGVudCA9PT0gcmVzLnJlc3VsdC5jb250ZW50TGlzdC5sZW5ndGgpIHtcclxuICAgICAgICAgICAgICAgIGxldCB0eXBlID0gJydcclxuICAgICAgICAgICAgICAgIF8uZm9yRWFjaChyZXMucmVzdWx0LmNvbnRlbnRMaXN0LCAoaXRlbTphbnkpPT57XHJcbiAgICAgICAgICAgICAgICAgIGlmKGl0ZW0uY29tcGxldGlvblBlcmNlbnRhZ2UgPT09IDEwMCAmJiBpdGVtLmNvbXBsZXRpb25QZXJjZW50YWdlICE9PSAwICl7XHJcbiAgICAgICAgICAgICAgICAgICAgdHlwZSA9ICdET05FJ1xyXG4gICAgICAgICAgICAgICAgICB9ZWxzZXtcclxuICAgICAgICAgICAgICAgICAgICB0eXBlID0gJ1JFU1VNRSdcclxuICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICAgIHRoaXMuYnRuVHlwZS5wdXNoKHtcclxuICAgICAgICAgICAgICAgICAgY291cnNlSWQ6IHZhbHVlLmNvbnRlbnRJZCxcclxuICAgICAgICAgICAgICAgICAgdHlwZVxyXG4gICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgdGhpcy5idG5UeXBlLnB1c2goe1xyXG4gICAgICAgICAgICAgICAgICBjb3Vyc2VJZDogdmFsdWUuY29udGVudElkLFxyXG4gICAgICAgICAgICAgICAgICB0eXBlOiAnUkVTVU1FJ1xyXG4gICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICBpZihyZXMucmVzdWx0LmNvbnRlbnRMaXN0Lmxlbmd0aCA9PSAwICkge1xyXG4gICAgICAgICAgICB0aGlzLmJ0blR5cGUucHVzaCh7XHJcbiAgICAgICAgICAgICAgY291cnNlSWQ6IHZhbHVlLmNvbnRlbnRJZCxcclxuICAgICAgICAgICAgICB0eXBlOiAnU1RBUlQnXHJcbiAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgfSlcclxuICAgICAgfSlcclxuXHJcbiAgICAgIHRoaXMubG9hZGluZyA9IGZhbHNlXHJcbiAgICB9KVxyXG4gIH1cclxuXHJcbiAgZ2V0VXNlckRldGFpbHMoKSB7XHJcbiAgICBjb25zdCByZXFCb2R5ID0ge1xyXG4gICAgICBpZDogdGhpcy5jb25maWdTZXJ2aWNlLmdldENvbmZpZygpLmlkXHJcbiAgICB9XHJcbiAgICByZXR1cm4gdGhpcy5zZWxmQXNzZXNzbWVudFNlcnZpY2UuZ2V0VXNlcmRldGFpbHNGcm9tUmVnaXN0cnkocmVxQm9keSlcclxuICB9XHJcblxyXG4gIGdldENvbXBldGVuY3lDb3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lzdC5sZW5ndGggPiAwICYmIHZhbHVlLmNoaWxkQ29udGVudCA9PT0gcmVzLnJlc3VsdC5jb250ZW50TGlzdC5sZW5ndGgpIHtcclxuICAgICAgICAgICAgICAgICAgbGV0IHR5cGUgPSAnJ1xyXG4gICAgICAgICAgICAgICAgICBfLmZvckVhY2gocmVzLnJlc3VsdC5jb250ZW50TGlzdCwgKGl0ZW06YW55KT0+e1xyXG4gICAgICAgICAgICAgICAgICAgIGlmKGl0ZW0uY29tcGxldGlvblBlcmNlbnRhZ2UgPT09IDEwMCAmJiBpdGVtLmNvbXBsZXRpb25QZXJjZW50YWdlICE9PSAwICl7XHJcbiAgICAgICAgICAgICAgICAgICAgICB0eXBlID0gJ0RPTkUnXHJcbiAgICAgICAgICAgICAgICAgICAgfWVsc2V7XHJcbiAgICAgICAgICAgICAgICAgICAgICB0eXBlID0gJ1JFU1VNRSdcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICAgICAgICAgIHRoaXMuYnRuVHlwZS5wdXNoKHtcclxuICAgICAgICAgICAgICAgICAgICBjb3Vyc2VJZDogdmFsdWUuY29udGVudElkLFxyXG4gICAgICAgICAgICAgICAgICAgIHR5cGVcclxuICAgICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgIHRoaXMuYnRuVHlwZS5wdXNoKHtcclxuICAgICAgICAgICAgICAgICAgICBjb3Vyc2VJZDogdmFsdWUuY29udGVudElkLFxyXG4gICAgICAgICAgICAgICAgICAgIHR5cGU6ICdSRVNVTUUnXHJcbiAgICAgICAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICBpZihyZXMucmVzdWx0LmNvbnRlbnRMaXN0Lmxlbmd0aCA9PSAwICkge1xyXG4gICAg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cy5yZXN1bHQuY29udGVudExpc3QubGVuZ3RoID4gMCAmJiB2YWx1ZS5jaGlsZENvbnRlbnQgPT09IHJlcy5yZXN1bHQuY29udGVudExpc3QubGVuZ3RoKSB7XHJcbiAgICAgICAgICAgICAgICBsZXQgdHlwZSA9ICcnXHJcbiAgICAgICAgICAgICAgICBfLmZvckVhY2gocmVzLnJlc3VsdC5jb250ZW50TGlzdCwgKGl0ZW06YW55KT0+e1xyXG4gICAgICAgICAgICAgICAgICBpZihpdGVtLmNvbXBsZXRpb25QZXJjZW50YWdlID09PSAxMDAgJiYgaXRlbS5jb21wbGV0aW9uUGVyY2VudGFnZSAhPT0gMCApe1xyXG4gICAgICAgICAgICAgICAgICAgIHR5cGUgPSAnRE9ORSdcclxuICAgICAgICAgICAgICAgICAgfWVsc2V7XHJcbiAgICAgICAgICAgICAgICAgICAgdHlwZSA9ICdSRVNVTUUnXHJcbiAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICAgICAgICB0aGlzLmJ0blR5cGUucHVzaCh7XHJcbiAgICAgICAgICAgICAgICAgIGNvdXJzZUlkOiB2YWx1ZS5jb250ZW50SWQsXHJcbiAgICAgICAgICAgICAgICAgIHR5cGVcclxuICAgICAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgICAgIHRoaXMuYnRuVHlwZS5wdXNoKHtcclxuICAgICAgICAgICAgICAgICAgY291cnNlSWQ6IHZhbHVlLmNvbnRlbnRJZCxcclxuICAgICAgICAgICAgICAgICAgdHlwZTogJ1JFU1VNRSdcclxuICAgICAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgaWYocmVzLnJlc3VsdC5jb250ZW50TGlzdC5sZW5ndGggPT0gMCApIHtcclxuICAgICAgICAgICAgdGhpcy5idG5UeXBlL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xmQXNzZXNzbWVudFNlcnZpY2UuZmV0Y2hQcmdyZXNzRGV0YWlscyhyZXFib2R5KVxyXG4gIH1cclxuXHJcblxyXG4gIG5hdmlnYXRlQmFjaygpIHtcclxuICAgIHRoaXMubG9jYXRpb24uYmFjaygpXHJcbiAgfVxyXG5cclxufVxyXG4iXX0= |
@@ -513,3 +513,3 @@ import { __decorate } from 'tslib'; | ||
this.getUserDetails().subscribe((res) => { | ||
this.profileData = res.profileDetails.preferences.language; | ||
this.profileData = res.profileDetails.preferences ? res.profileDetails.preferences.language : 'en'; | ||
}); | ||
@@ -636,3 +636,4 @@ this.loading = true; | ||
this.profileData = res.profileDetails.profileReq; | ||
this.language = res.profileDetails.preferences.language; | ||
// this.language = res.profileDetails.preferences.language | ||
this.language = res.profileDetails.preferences ? res.profileDetails.preferences.language : 'en'; | ||
if (!this.language) | ||
@@ -639,0 +640,0 @@ this.language = 'en'; |
@@ -250,3 +250,3 @@ import { __decorate } from 'tslib'; | ||
this.getUserDetails().pipe(mergeMap((res) => { | ||
this.profileData = res.profileDetails.preferences.language; | ||
this.profileData = res.profileDetails.preferences ? res.profileDetails.preferences.language : 'en'; | ||
if (!this.profileData) { | ||
@@ -253,0 +253,0 @@ this.profileData = 'en'; |
@@ -525,3 +525,3 @@ import { __extends, __decorate, __spread } from 'tslib'; | ||
this.getUserDetails().subscribe(function (res) { | ||
_this.profileData = res.profileDetails.preferences.language; | ||
_this.profileData = res.profileDetails.preferences ? res.profileDetails.preferences.language : 'en'; | ||
}); | ||
@@ -651,3 +651,4 @@ this.loading = true; | ||
_this.profileData = res.profileDetails.profileReq; | ||
_this.language = res.profileDetails.preferences.language; | ||
// this.language = res.profileDetails.preferences.language | ||
_this.language = res.profileDetails.preferences ? res.profileDetails.preferences.language : 'en'; | ||
if (!_this.language) | ||
@@ -654,0 +655,0 @@ _this.language = 'en'; |
@@ -257,3 +257,3 @@ import { __extends, __decorate } from 'tslib'; | ||
this.getUserDetails().pipe(mergeMap(function (res) { | ||
_this.profileData = res.profileDetails.preferences.language; | ||
_this.profileData = res.profileDetails.preferences ? res.profileDetails.preferences.language : 'en'; | ||
if (!_this.profileData) { | ||
@@ -260,0 +260,0 @@ _this.profileData = 'en'; |
{ | ||
"name": "@aastrika_npmjs/comptency", | ||
"version": "0.0.33", | ||
"version": "0.0.34", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/common": "^8.2.14", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2079189
14200