Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aastrika_npmjs/comptency

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aastrika_npmjs/comptency - npm Package Compare versions

Comparing version 0.0.23 to 0.0.24

2

aastrika_npmjs-comptency.metadata.json

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"EntryModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":12,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":13,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}],"providers":[]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["configContext"],"value":{"ngModule":{"__symbolic":"reference","name":"EntryModule"},"providers":[{"__symbolic":"reference","name":"ɵc"},{"provide":"config","useValue":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"configContext"},"member":"config"}}]}}}},"SelfAssessmentModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":13,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":14,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":15,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"CoreModule","line":16,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"}]}]}],"members":{}},"CompetencyModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":17,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵl"},{"__symbolic":"reference","name":"ɵm"},{"__symbolic":"reference","name":"ɵo"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":24,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatTabsModule","line":25,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":26,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatExpansionModule","line":27,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatProgressBarModule","line":28,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatProgressSpinnerModule","line":29,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":30,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"CoreModule","line":31,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/self-assessment","name":"SelfAssessmentModule","line":32,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵl"},{"__symbolic":"reference","name":"ɵm"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"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}"]}]}],"members":{"stateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":9,"character":28}]}],"ngOnInit":[{"__symbolic":"method"}],"navigateTo":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"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}"]}]}],"members":{"stateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"navigateTo":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":11,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":11,"character":27},"arguments":["config"]}]],"parameters":[{"__symbolic":"reference","name":"ɵd"}]}],"setConfig":[{"__symbolic":"method"}],"getConfig":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵd":{"__symbolic":"class","members":{}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"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 <!-- <ng-container *ngIf=\"cardData?.description\">\r\n <div class=\"description\">{{ cardData?.description }}</div>\r\n </ng-container> -->\r\n <div class=\"flex flex-row gap-3 mt-3\">\r\n <!-- <button class=\"assess-btn\">Assess</button> -->\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>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}"]}]}],"members":{"cardData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"btnType":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":14,"character":20}]}],"ngOnInit":[{"__symbolic":"method"}],"startSelfAssesment":[{"__symbolic":"method"}]}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"selector":"lib-self-assessment","template":"<lib-app-loader *ngIf=\"loading === true\"></lib-app-loader>\r\n<div class=\"content\" *ngIf=\"selfAssessmentData\">\r\n <!-- <mat-icon (click)=\"navigateBack()\" class=\"cursor-pointer\">chevron_left</mat-icon> -->\r\n <!-- <h1 class=\" mb-1 pl-2 \">Self Assessment</h1> -->\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":[""]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common","name":"Location","line":20,"character":22},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":22,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}],"getCompetencyCourse":[{"__symbolic":"method"}],"getProgress":[{"__symbolic":"method"}],"navigateBack":[{"__symbolic":"method"}]}},"ɵg":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":8,"character":43},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":9,"character":19}]}],"getCompetencyCourseIdentifier":[{"__symbolic":"method"}],"fetchHiearchyDetails":[{"__symbolic":"method"}],"fetchPrgressDetails":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵi"}]}],"ngOnInit":[{"__symbolic":"method"}],"getRequiredByPostion":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵi":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":12,"character":47},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":14,"character":19}]}],"getRequiredCompetencyById":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵj":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"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 <!-- <div class=\"date justify-end mr-2\">\r\n {{date}}\r\n </div> -->\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>\r\n Levels:\r\n </div>\r\n <mat-accordion>\r\n <mat-expansion-panel [expanded]=\"i === selectedProficiencyIndex\" class=\"w-full panel\" hideToggle >\r\n <mat-expansion-panel-header class=\"flex-between items-center panel-header w-full\">\r\n <mat-panel-description class=\"panel-header-description\">\r\n <ng-container *ngFor=\"let proficiencyLevel of proficency?.proficiencyLevels\">\r\n <ng-container *ngIf=\"proficiencyLevel.selected; else addLevel\">\r\n <div (click)=\"$event.stopPropagation(); selectLevel(i, proficiencyLevel.displayLevel)\" class=\"level mb-1\"\r\n [ngStyle]=\"{'background-color': proficiencyLevel.color}\"\r\n [ngClass]=\"{'individual-select': selectedProficiencyIndex === i && selectedDisplayLevel === proficiencyLevel?.displayLevel}\">\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 class=\"level mb-1\" (click)=\"$event.stopPropagation(); selectLevel(i, -1)\">\r\n <mat-icon [ngClass]=\"{'arrowReverse': selectedProficiencyIndex === i }\">keyboard_arrow_down</mat-icon>\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 *ngFor=\"let log of proficency?.logs; let logIndex = index\">\r\n <ng-container\r\n *ngIf=\"(selectedDisplayLevel === -1 || (selectedProficiencyIndex === i && selectedDisplayLevel === log.level))\">\r\n <div class=\"log\">\r\n <div class=\"flex\">\r\n <ng-container *ngIf=\"log.header\">\r\n <span class=\"flex-1\">Level {{log.level}}: {{log.header}}</span>\r\n <span class=\"log-date mr-2\">{{log?.date| date:'dd/MM/yyyy'}}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf=\"log.description\">\r\n <div class=\"mt-2\" [ngClass]=\"{'hide-content': !log.keyboardArrowUp}\">\r\n {{log.description}}\r\n </div>\r\n <div class=\"justify-end\">\r\n <mat-icon (click)=\"log.keyboardArrowUp = !log.keyboardArrowUp\"\r\n class=\"mr-3\"\r\n [ngClass]=\"{'arrowReverse': log.keyboardArrowUp }\">keyboard_arrow_down</mat-icon>\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 <!-- <hr> -->\r\n</ng-container>","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)}::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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵk"}]}],"ngOnInit":[{"__symbolic":"method"}],"getAllUserPassbook":[{"__symbolic":"method"}],"getAllEntity":[{"__symbolic":"method"}],"selectLevel":[{"__symbolic":"method"}]}},"ɵk":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":14,"character":35},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":20,"character":19}]}],"fetchUserPassbook":[{"__symbolic":"method"}],"fetchAllEntity":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵl":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"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 <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>\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 <!-- Active Summary as Job Description -->\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 <!-- gained as Passbook -->\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 <!-- required -->\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}"]}]}],"members":{"stateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":9,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":11,"character":31}]}],"ngOnInit":[{"__symbolic":"method"}],"navigateBack":[{"__symbolic":"method"}],"changeTab":[{"__symbolic":"method"}],"startSelfAssessment":[{"__symbolic":"method"}]}},"ɵm":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"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 <!-- 'warn-bar': role?.averagePercentage < 100 && role?.averagePercentage != 0, -->\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 <!-- list of activity -->\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\">\r\n {{ i + 1 }}.{{ activity.title }}\r\n </div>\r\n\r\n \r\n </ng-container>\r\n <ng-container *ngIf=\"role?.activities\" class=\"\">\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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵn"},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":30,"character":26},{"__symbolic":"reference","name":"ɵk"}]}],"ngOnInit":[{"__symbolic":"method"}],"getProgress":[{"__symbolic":"method"}],"getUserDetails":[{"__symbolic":"method"}],"getActivityByRole":[{"__symbolic":"method"}],"getActivityByRoleId":[{"__symbolic":"method"}],"getEntityById":[{"__symbolic":"method"}],"getAveragepercentage":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵn":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":13,"character":42},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":15,"character":19}]}],"getActivityById":[{"__symbolic":"method"}],"getUserdetailsFromRegistry":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵo":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"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 <!-- <lib-app-loader *ngIf=\"acordianLoading === true\"></lib-app-loader> -->\r\n <div class=\"expand-container\">\r\n <!-- list of levels -->\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=\"competency.lastLevel == i + 1\">\r\n <mat-icon class=\"circle-tick cursor-pointer\"\r\n >check_circle</mat-icon\r\n ></ng-container\r\n >\r\n <ng-container *ngIf=\"competency.lastLevel != i + 1\">\r\n <mat-icon class=\"non-progress cursor-pointer\"\r\n >check_circle</mat-icon\r\n ></ng-container\r\n >\r\n </div>\r\n <div class=\"Levels-title\">{{ i + 1 }} : {{ level }}</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}"]}]}],"members":{"competencyList":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}}},"origins":{"EntryModule":"./entry-module/entry-module","SelfAssessmentModule":"./self-assessment/self-assessment.module","CompetencyModule":"./competency/competency.module","ɵa":"./entry-module/components/slef-assessment-entry/slef-assessment-entry.component","ɵb":"./entry-module/components/competency-entry/competency-entry.component","ɵc":"./entry-module/services/config.service","ɵd":"./entry-module/services/configuration-context","ɵe":"./self-assessment/components/self-assessment-card/self-assessment-card.component","ɵf":"./self-assessment/components/self-assessment/self-assessment.component","ɵg":"./self-assessment/service/self-assessment.service","ɵh":"./competency/components/required-comptency-card/required-comptency-card.component","ɵi":"./competency/services/required-competency.service","ɵj":"./competency/components/gained-comptency-card/gained-comptency-card.component","ɵk":"./competency/services/gained.service","ɵl":"./competency/components/competency-dashboard/competency-dashboard.component","ɵm":"./competency/components/active-summary/active-summary.component","ɵn":"./competency/services/active-summary.service","ɵo":"./competency/components/competency-accordion/competency-accordion.component"},"importAs":"@aastrika_npmjs/comptency"}
{"__symbolic":"module","version":4,"metadata":{"EntryModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":11,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":12,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":13,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵb"}],"providers":[]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["configContext"],"value":{"ngModule":{"__symbolic":"reference","name":"EntryModule"},"providers":[{"__symbolic":"reference","name":"ɵc"},{"provide":"config","useValue":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"configContext"},"member":"config"}}]}}}},"SelfAssessmentModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":10,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":13,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":14,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":15,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"CoreModule","line":16,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"}]}]}],"members":{}},"CompetencyModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":17,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵl"},{"__symbolic":"reference","name":"ɵm"},{"__symbolic":"reference","name":"ɵo"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":24,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatTabsModule","line":25,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":26,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatExpansionModule","line":27,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatProgressBarModule","line":28,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatProgressSpinnerModule","line":29,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":30,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"CoreModule","line":31,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/self-assessment","name":"SelfAssessmentModule","line":32,"character":4}],"exports":[{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵl"},{"__symbolic":"reference","name":"ɵm"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"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}"]}]}],"members":{"stateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":9,"character":28}]}],"ngOnInit":[{"__symbolic":"method"}],"navigateTo":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"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}"]}]}],"members":{"stateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"navigateTo":[{"__symbolic":"method"}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":11,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":11,"character":27},"arguments":["config"]}]],"parameters":[{"__symbolic":"reference","name":"ɵd"}]}],"setConfig":[{"__symbolic":"method"}],"getConfig":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵd":{"__symbolic":"class","members":{}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"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 <!-- <ng-container *ngIf=\"cardData?.description\">\r\n <div class=\"description\">{{ cardData?.description }}</div>\r\n </ng-container> -->\r\n <div class=\"flex flex-row gap-3 mt-3\">\r\n <!-- <button class=\"assess-btn\">Assess</button> -->\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>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}"]}]}],"members":{"cardData":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"btnType":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":10,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":14,"character":20}]}],"ngOnInit":[{"__symbolic":"method"}],"startSelfAssesment":[{"__symbolic":"method"}]}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"selector":"lib-self-assessment","template":"<lib-app-loader *ngIf=\"loading === true\"></lib-app-loader>\r\n<div class=\"content\" *ngIf=\"selfAssessmentData\">\r\n <!-- <mat-icon (click)=\"navigateBack()\" class=\"cursor-pointer\">chevron_left</mat-icon> -->\r\n <!-- <h1 class=\" mb-1 pl-2 \">Self Assessment</h1> -->\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":[""]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common","name":"Location","line":20,"character":22},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":22,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}],"getCompetencyCourse":[{"__symbolic":"method"}],"getProgress":[{"__symbolic":"method"}],"navigateBack":[{"__symbolic":"method"}]}},"ɵg":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":8,"character":43},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":9,"character":19}]}],"getCompetencyCourseIdentifier":[{"__symbolic":"method"}],"fetchHiearchyDetails":[{"__symbolic":"method"}],"fetchPrgressDetails":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵi"}]}],"ngOnInit":[{"__symbolic":"method"}],"getRequiredByPostion":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵi":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":12,"character":47},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":14,"character":19}]}],"getRequiredCompetencyById":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵj":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"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 <!-- <div class=\"date justify-end mr-2\">\r\n {{date}}\r\n </div> -->\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>\r\n Levels:\r\n </div>\r\n <mat-accordion>\r\n <mat-expansion-panel [expanded]=\"i === selectedProficiencyIndex\" class=\"w-full panel\" hideToggle >\r\n <mat-expansion-panel-header class=\"flex-between items-center panel-header w-full\">\r\n <mat-panel-description class=\"panel-header-description\">\r\n <ng-container *ngFor=\"let proficiencyLevel of proficency?.proficiencyLevels\">\r\n <ng-container *ngIf=\"proficiencyLevel.selected; else addLevel\">\r\n <div (click)=\"$event.stopPropagation(); selectLevel(i, proficiencyLevel.displayLevel)\" class=\"level mb-1\"\r\n [ngStyle]=\"{'background-color': proficiencyLevel.color}\"\r\n [ngClass]=\"{'individual-select': selectedProficiencyIndex === i && selectedDisplayLevel === proficiencyLevel?.displayLevel}\">\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 class=\"level mb-1\" (click)=\"$event.stopPropagation(); selectLevel(i, -1)\">\r\n <mat-icon [ngClass]=\"{'arrowReverse': selectedProficiencyIndex === i }\">keyboard_arrow_down</mat-icon>\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 *ngFor=\"let log of proficency?.logs; let logIndex = index\">\r\n <ng-container\r\n *ngIf=\"(selectedDisplayLevel === -1 || (selectedProficiencyIndex === i && selectedDisplayLevel === log.level))\">\r\n <div class=\"log\">\r\n <div class=\"flex\">\r\n <ng-container *ngIf=\"log.header\">\r\n <span class=\"flex-1\">Level {{log.level}}: {{log.header}}</span>\r\n <span class=\"log-date mr-2\">{{log?.date| date:'dd/MM/yyyy'}}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf=\"log.description\">\r\n <div class=\"mt-2\" [ngClass]=\"{'hide-content': !log.keyboardArrowUp}\">\r\n {{log.description}}\r\n </div>\r\n <div class=\"justify-end\">\r\n <mat-icon (click)=\"log.keyboardArrowUp = !log.keyboardArrowUp\"\r\n class=\"mr-3\"\r\n [ngClass]=\"{'arrowReverse': log.keyboardArrowUp }\">keyboard_arrow_down</mat-icon>\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 <!-- <hr> -->\r\n</ng-container>","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)}::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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵk"}]}],"ngOnInit":[{"__symbolic":"method"}],"getAllUserPassbook":[{"__symbolic":"method"}],"getAllEntity":[{"__symbolic":"method"}],"selectLevel":[{"__symbolic":"method"}]}},"ɵk":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":14,"character":35},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":20,"character":19}]}],"fetchUserPassbook":[{"__symbolic":"method"}],"fetchAllEntity":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵl":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"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 <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>\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 <!-- Active Summary as Job Description -->\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 <!-- gained as Passbook -->\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 <!-- required -->\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}"]}]}],"members":{"stateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":9,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":11,"character":31}]}],"ngOnInit":[{"__symbolic":"method"}],"navigateBack":[{"__symbolic":"method"}],"changeTab":[{"__symbolic":"method"}],"startSelfAssessment":[{"__symbolic":"method"}]}},"ɵm":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"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 <!-- 'warn-bar': role?.averagePercentage < 100 && role?.averagePercentage != 0, -->\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 <!-- list of activity -->\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\">\r\n {{ i + 1 }}.{{ activity.title }}\r\n </div>\r\n\r\n \r\n </ng-container>\r\n <ng-container *ngIf=\"role?.activities\" class=\"\">\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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵn"},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":30,"character":26},{"__symbolic":"reference","name":"ɵk"}]}],"ngOnInit":[{"__symbolic":"method"}],"getProgress":[{"__symbolic":"method"}],"getUserDetails":[{"__symbolic":"method"}],"getActivityByRole":[{"__symbolic":"method"}],"designationMap":[{"__symbolic":"method"}],"getActivityByRoleId":[{"__symbolic":"method"}],"getEntityById":[{"__symbolic":"method"}],"getAveragepercentage":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵn":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":13,"character":42},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":15,"character":19}]}],"getActivityById":[{"__symbolic":"method"}],"getUserdetailsFromRegistry":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵo":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"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 <!-- <lib-app-loader *ngIf=\"acordianLoading === true\"></lib-app-loader> -->\r\n <div class=\"expand-container\">\r\n <!-- list of levels -->\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=\"competency.lastLevel == i + 1\">\r\n <mat-icon class=\"circle-tick cursor-pointer\"\r\n >check_circle</mat-icon\r\n ></ng-container\r\n >\r\n <ng-container *ngIf=\"competency.lastLevel != i + 1\">\r\n <mat-icon class=\"non-progress cursor-pointer\"\r\n >check_circle</mat-icon\r\n ></ng-container\r\n >\r\n </div>\r\n <div class=\"Levels-title\">{{ i + 1 }} : {{ level }}</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}"]}]}],"members":{"competencyList":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}}},"origins":{"EntryModule":"./entry-module/entry-module","SelfAssessmentModule":"./self-assessment/self-assessment.module","CompetencyModule":"./competency/competency.module","ɵa":"./entry-module/components/slef-assessment-entry/slef-assessment-entry.component","ɵb":"./entry-module/components/competency-entry/competency-entry.component","ɵc":"./entry-module/services/config.service","ɵd":"./entry-module/services/configuration-context","ɵe":"./self-assessment/components/self-assessment-card/self-assessment-card.component","ɵf":"./self-assessment/components/self-assessment/self-assessment.component","ɵg":"./self-assessment/service/self-assessment.service","ɵh":"./competency/components/required-comptency-card/required-comptency-card.component","ɵi":"./competency/services/required-competency.service","ɵj":"./competency/components/gained-comptency-card/gained-comptency-card.component","ɵk":"./competency/services/gained.service","ɵl":"./competency/components/competency-dashboard/competency-dashboard.component","ɵm":"./competency/components/active-summary/active-summary.component","ɵn":"./competency/services/active-summary.service","ɵo":"./competency/components/competency-accordion/competency-accordion.component"},"importAs":"@aastrika_npmjs/comptency"}

@@ -15,3 +15,3 @@ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("lodash-es"),require("@aastrika_npmjs/comptency/core"),require("@angular/common/http"),require("rxjs"),require("@angular/router"),require("@angular/common"),require("rxjs/operators"),require("@aastrika_npmjs/comptency/entry-module"),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","@angular/router","@angular/common","rxjs/operators","@aastrika_npmjs/comptency/entry-module","@angular/material","@aastrika_npmjs/comptency/self-assessment"],t):t(((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.ng.router,e.ng.common,e.rxjs.operators,e.aastrika_npmjs.comptency["entry-module"],e.ng.material,e.aastrika_npmjs.comptency["self-assessment"])}(this,(function(e,t,n,r,i,a,o,c,l,s,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 m(e,t){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function u(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}var y=function(){function e(){var e=this;this.formatedActivities=function(e){if(!n.isEmpty(e))return e},this.formatedActivitityByPostion=function(e){if(n.get(e,"result")){var t=n.get(e,"result.response").children;if(t.length>0)return n.reduce(t,(function(e,t){return e.push({roles:n.get(t,"name"),id:n.get(t,"id"),description:n.get(t,"description"),averagePercentage:0}),e}),[])}},this.formatedActivitityByRoleId=function(e){if(n.get(e,"result")){var t=n.get(e,"result.response").children;if(t.length>0)return n.reduce(t,(function(e,t){return e.push({title:n.get(t,"name"),cid:n.get(t,"id"),description:n.get(t,"description")}),e}),[])}},this.formatedCompetency=function(t,r){var i=[];return n.forEach(t,(function(t){if(n.get(t,"result")){var a=n.get(t,"result.response").children;a.length>0&&n.forEach(a,(function(a){i.push({competency:n.get(a,"name"),id:n.get(a,"id"),description:n.get(a,"description"),levels:["Level 1","Level 2","Level 3","Level 4","Level 5"],cid:n.get(t,"result.response").id,lastLevel:e.getheighestLevel(n.get(a,"id"),r),completionPercentage:e.getCompeletionPercentage(n.get(a,"id"),r)})}))}})),n.uniqBy(i,"id")}}return e.prototype.getheighestLevel=function(e,t){var r="";return n.forEach(t,(function(t){n.toNumber(t.competencyId)===e&&(r=t.levelId.competencyLevelId)})),r},e.prototype.getCompeletionPercentage=function(e,t){var r=0;return n.forEach(t,(function(t){n.toNumber(t.competencyId)===e&&(r=n.toNumber(t.levelId.competencyLevelId))})),r=100*r/5},e.prototype.formatedGainedCompetency=function(e,t){var r=this,i=[];return n.forEach(e,(function(e){var a=n.get(e,"id");n.forEach(t,(function(e){if(e.competencies.hasOwnProperty(a)){var t=e.competencies[a];i.push({title:n.get(t,"additionalParams.competencyName"),logs:r.acquiredPassbookLogs(n.get(t,"acquiredDetails")),proficiencyLevels:r.acauiredChannelColourCode(n.get(t,"acquiredDetails")),competencyStoreData:r.competencyStoreDataFomat(t)})}}))})),i},e.prototype.acquiredPassbookLogs=function(e){var t=[];return e.length>0&&n.forEach(e,(function(e){t.push({header:n.get(e,"courseName")?n.get(e,"courseName"):n.get(e,"acquiredChannel"),date:n.get(e,"createdDate"),description:n.get(e,"additionalParams.description"),keyboardArrowUp:!0,level:n.toNumber(n.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 n.forEach(e,(function(e){switch(n.get(e,"acquiredChannel")){case"course":case"Course":n.forEach(t,(function(t){t.displayLevel==n.get(e,"competencyLevelId")&&(t.color="#FFFBB0",t.selected=!0)}));break;case"selfAssessment":n.forEach(t,(function(t){t.displayLevel==n.get(e,"competencyLevelId")&&(t.color="#A4DFCA",t.selected=!0)}));break;case"admin":n.forEach(t,(function(t){t.displayLevel==n.get(e,"competencyLevelId")&&(t.color="#7cb5e6",t.selected=!0)}));break;default:n.forEach(t,(function(t){t.displayLevel==n.get(e,"competencyLevelId")&&(t.color="#FFFBB0",t.selected=!1)}))}})),t},e.prototype.competencyStoreDataFomat=function(e){return{competencyId:e.competencyId,competencyName:e.additionalParams.competencyName,levelId:n.maxBy(e.acquiredDetails,"competencyLevelId")}},e}(),v=function(e){function n(t){return e.call(this,t)||this}return m(n,e),n.prototype.getRequiredCompetencyById=function(e){var t={url:r.urlConfig.getEntityById(3),data:e};return console.log("reqBody",t),this.post(t)},n.ctorParameters=function(){return[{type:i.HttpClient}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(i.HttpClient))},token:n,providedIn:"root"}),n=u([t.Injectable({providedIn:"root"})],n)}(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([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)}(),b=function(e){function n(t){var n=e.call(this,t)||this;return n.competencyData=new a.BehaviorSubject(void 0),n.competencyData$=n.competencyData.asObservable(),n}return m(n,e),n.prototype.fetchUserPassbook=function(e){var t={url:r.urlConfig.getUserPassbook(),data:e};return this.post(t)},n.prototype.fetchAllEntity=function(e){var t={url:r.urlConfig.getAllEntity(),data:e};return this.post(t)},n.ctorParameters=function(){return[{type:i.HttpClient}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(i.HttpClient))},token:n,providedIn:"root"}),n=u([t.Injectable({providedIn:"root"})],n)}(r.DataService),x=function(){function e(e){this.gainedService=e,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.loading=!0;var t=this.getAllEntity(),r=this.getAllUserPassbook();a.forkJoin([t,r]).subscribe((function(t){var r=e.requestUtil.formatedGainedCompetency(t[0].result.response,t[1].result.content);if(e.gainedproficencyData=r,e.gainedproficencyData){var i=[];n.forEach(e.gainedproficencyData,(function(e){e.competencyStoreData&&i.push(e.competencyStoreData)})),e.gainedService.competencyData.next(i)}e.loading=!1}))},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:b}]},e=u([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 \x3c!-- <div class="date justify-end mr-2">\r\n {{date}}\r\n </div> --\x3e\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>\r\n Levels:\r\n </div>\r\n <mat-accordion>\r\n <mat-expansion-panel [expanded]="i === selectedProficiencyIndex" class="w-full panel" hideToggle >\r\n <mat-expansion-panel-header class="flex-between items-center panel-header w-full">\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngFor="let proficiencyLevel of proficency?.proficiencyLevels">\r\n <ng-container *ngIf="proficiencyLevel.selected; else addLevel">\r\n <div (click)="$event.stopPropagation(); selectLevel(i, proficiencyLevel.displayLevel)" class="level mb-1"\r\n [ngStyle]="{\'background-color\': proficiencyLevel.color}"\r\n [ngClass]="{\'individual-select\': selectedProficiencyIndex === i && selectedDisplayLevel === proficiencyLevel?.displayLevel}">\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 class="level mb-1" (click)="$event.stopPropagation(); selectLevel(i, -1)">\r\n <mat-icon [ngClass]="{\'arrowReverse\': selectedProficiencyIndex === i }">keyboard_arrow_down</mat-icon>\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 *ngFor="let log of proficency?.logs; let logIndex = index">\r\n <ng-container\r\n *ngIf="(selectedDisplayLevel === -1 || (selectedProficiencyIndex === i && selectedDisplayLevel === log.level))">\r\n <div class="log">\r\n <div class="flex">\r\n <ng-container *ngIf="log.header">\r\n <span class="flex-1">Level {{log.level}}: {{log.header}}</span>\r\n <span class="log-date mr-2">{{log?.date| date:\'dd/MM/yyyy\'}}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf="log.description">\r\n <div class="mt-2" [ngClass]="{\'hide-content\': !log.keyboardArrowUp}">\r\n {{log.description}}\r\n </div>\r\n <div class="justify-end">\r\n <mat-icon (click)="log.keyboardArrowUp = !log.keyboardArrowUp"\r\n class="mr-3"\r\n [ngClass]="{\'arrowReverse\': log.keyboardArrowUp }">keyboard_arrow_down</mat-icon>\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>',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)}::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 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:o.Router}]},u([t.Output()],e.prototype,"stateChange",void 0),e=u([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 <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>\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)}(),C=function(e){function n(t){return e.call(this,t)||this}return m(n,e),n.prototype.getActivityById=function(e){var t={url:r.urlConfig.getEntityById(e.id),data:e};return this.post(t)},n.prototype.getUserdetailsFromRegistry=function(e){var t={url:r.urlConfig.getUserdetailsFromRegistry(e.id)};return this.get(t).pipe(l.map((function(e){return e.result.response})))},n.ctorParameters=function(){return[{type:i.HttpClient}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(i.HttpClient))},token:n,providedIn:"root"}),n=u([t.Injectable({providedIn:"root"})],n)}(r.DataService),I=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 y}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.profileData)return e.getActivityByRole()}))).subscribe((function(t){var r=e.requestUtil.formatedActivitityByPostion(t);e.roleactivitySummaries=r,n.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:"AWW"===e?95:1};return this.activeSummaryService.getActivityById(t)},e.prototype.getActivityByRoleId=function(e){var t=this;this.acordianLoading=!0;var r=n.findIndex(this.roleactivitySummaries,{id:e});this.roleactivitySummaries[r].activities=[],this.getEntityById(e).pipe(l.mergeMap((function(e){var i=t.requestUtil.formatedActivitityByRoleId(e);t.roleactivitySummaries[r].activities=i;var o=n.map(t.roleactivitySummaries[r].activities,"cid"),c=[];return n.forEach(o,(function(e){c.push(t.getEntityById(e))})),t.acordianLoading=!1,a.forkJoin.apply(void 0,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}(c))}))).subscribe((function(e){var i=t.requestUtil.formatedCompetency(e,t.competencyProgress);t.roleactivitySummaries[r].activities=n.values(n.merge(n.keyBy(i,"cid"),n.keyBy(t.roleactivitySummaries[r].activities,"cid"))),t.roleactivitySummaries[r].averagePercentage=[];var a=t.getAveragepercentage(i);t.roleactivitySummaries[r].averagePercentage=a}))},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,r=[];return n.forEach(e,(function(e){r.push(e.completionPercentage)})),n.round(n.sum(r)/t)},e.prototype.ngOnDestroy=function(){this.unsubscribe&&this.unsubscribe.unsubscribe()},e.ctorParameters=function(){return[{type:C},{type:s.ConfigService},{type:b}]},e=u([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">\r\n {{ i + 1 }}.{{ activity.title }}\r\n </div>\r\n\r\n \r\n </ng-container>\r\n <ng-container *ngIf="role?.activities" class="">\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([t.Input()],e.prototype,"competencyList",void 0),e=u([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="competency.lastLevel == i + 1">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon\r\n ></ng-container\r\n >\r\n <ng-container *ngIf="competency.lastLevel != i + 1">\r\n <mat-icon class="non-progress cursor-pointer"\r\n >check_circle</mat-icon\r\n ></ng-container\r\n >\r\n </div>\r\n <div class="Levels-title">{{ i + 1 }} : {{ level }}</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)}(),F=function(){function e(){}return e=u([t.NgModule({declarations:[h,x,w,I,k],imports:[c.CommonModule,p.MatTabsModule,p.MatIconModule,p.MatExpansionModule,p.MatProgressBarModule,p.MatProgressSpinnerModule,i.HttpClientModule,r.CoreModule,d.SelfAssessmentModule],exports:[h,x,w,I]})],e)}();e.CompetencyDashboardComponent=w,e.CompetencyModule=F,e.GainedComptencyCardComponent=x,e.RequestUtil=y,e.RequiredComptencyCardComponent=h,e.ɵa=v,e.ɵb=b,e.ɵc=I,e.ɵd=C,e.ɵe=k,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 m(e,t){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function u(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}var y=function(){function e(){var e=this;this.formatedActivities=function(e){if(!n.isEmpty(e))return e},this.formatedActivitityByPostion=function(e){if(n.get(e,"result")){var t=n.get(e,"result.response").children;if(t.length>0)return n.reduce(t,(function(e,t){return e.push({roles:n.get(t,"name"),id:n.get(t,"id"),description:n.get(t,"description"),averagePercentage:0}),e}),[])}},this.formatedActivitityByRoleId=function(e){if(n.get(e,"result")){var t=n.get(e,"result.response").children;if(t.length>0)return n.reduce(t,(function(e,t){return e.push({title:n.get(t,"name"),cid:n.get(t,"id"),description:n.get(t,"description")}),e}),[])}},this.formatedCompetency=function(t,r){var i=[];return n.forEach(t,(function(t){if(n.get(t,"result")){var a=n.get(t,"result.response").children;a.length>0&&n.forEach(a,(function(a){i.push({competency:n.get(a,"name"),id:n.get(a,"id"),description:n.get(a,"description"),levels:["Level 1","Level 2","Level 3","Level 4","Level 5"],cid:n.get(t,"result.response").id,lastLevel:e.getheighestLevel(n.get(a,"id"),r),completionPercentage:e.getCompeletionPercentage(n.get(a,"id"),r)})}))}})),n.uniqBy(i,"id")}}return e.prototype.getheighestLevel=function(e,t){var r="";return n.forEach(t,(function(t){n.toNumber(t.competencyId)===e&&(r=t.levelId.competencyLevelId)})),r},e.prototype.getCompeletionPercentage=function(e,t){var r=0;return n.forEach(t,(function(t){n.toNumber(t.competencyId)===e&&(r=n.toNumber(t.levelId.competencyLevelId))})),r=100*r/5},e.prototype.formatedGainedCompetency=function(e,t){var r=this,i=[];return n.forEach(e,(function(e){var a=n.get(e,"id");n.forEach(t,(function(e){if(e.competencies.hasOwnProperty(a)){var t=e.competencies[a];i.push({title:n.get(t,"additionalParams.competencyName"),logs:r.acquiredPassbookLogs(n.get(t,"acquiredDetails")),proficiencyLevels:r.acauiredChannelColourCode(n.get(t,"acquiredDetails")),competencyStoreData:r.competencyStoreDataFomat(t)})}}))})),i},e.prototype.acquiredPassbookLogs=function(e){var t=[];return e.length>0&&n.forEach(e,(function(e){t.push({header:n.get(e,"courseName")?n.get(e,"courseName"):n.get(e,"acquiredChannel"),date:n.get(e,"createdDate"),description:n.get(e,"additionalParams.description"),keyboardArrowUp:!0,level:n.toNumber(n.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 n.forEach(e,(function(e){switch(n.get(e,"acquiredChannel")){case"course":case"Course":n.forEach(t,(function(t){t.displayLevel==n.get(e,"competencyLevelId")&&(t.color="#FFFBB0",t.selected=!0)}));break;case"selfAssessment":n.forEach(t,(function(t){t.displayLevel==n.get(e,"competencyLevelId")&&(t.color="#A4DFCA",t.selected=!0)}));break;case"admin":n.forEach(t,(function(t){t.displayLevel==n.get(e,"competencyLevelId")&&(t.color="#7cb5e6",t.selected=!0)}));break;default:n.forEach(t,(function(t){t.displayLevel==n.get(e,"competencyLevelId")&&(t.color="#FFFBB0",t.selected=!1)}))}})),t},e.prototype.competencyStoreDataFomat=function(e){return{competencyId:e.competencyId,competencyName:e.additionalParams.competencyName,levelId:n.maxBy(e.acquiredDetails,"competencyLevelId")}},e}(),v=function(e){function n(t){return e.call(this,t)||this}return m(n,e),n.prototype.getRequiredCompetencyById=function(e){var t={url:r.urlConfig.getEntityById(3),data:e};return console.log("reqBody",t),this.post(t)},n.ctorParameters=function(){return[{type:i.HttpClient}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(i.HttpClient))},token:n,providedIn:"root"}),n=u([t.Injectable({providedIn:"root"})],n)}(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([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)}(),b=function(e){function n(t){var n=e.call(this,t)||this;return n.competencyData=new a.BehaviorSubject(void 0),n.competencyData$=n.competencyData.asObservable(),n}return m(n,e),n.prototype.fetchUserPassbook=function(e){var t={url:r.urlConfig.getUserPassbook(),data:e};return this.post(t)},n.prototype.fetchAllEntity=function(e){var t={url:r.urlConfig.getAllEntity(),data:e};return this.post(t)},n.ctorParameters=function(){return[{type:i.HttpClient}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(i.HttpClient))},token:n,providedIn:"root"}),n=u([t.Injectable({providedIn:"root"})],n)}(r.DataService),x=function(){function e(e){this.gainedService=e,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.loading=!0;var t=this.getAllEntity(),r=this.getAllUserPassbook();a.forkJoin([t,r]).subscribe((function(t){var r=e.requestUtil.formatedGainedCompetency(t[0].result.response,t[1].result.content);if(e.gainedproficencyData=r,e.gainedproficencyData){var i=[];n.forEach(e.gainedproficencyData,(function(e){e.competencyStoreData&&i.push(e.competencyStoreData)})),e.gainedService.competencyData.next(i)}e.loading=!1}))},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:b}]},e=u([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 \x3c!-- <div class="date justify-end mr-2">\r\n {{date}}\r\n </div> --\x3e\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>\r\n Levels:\r\n </div>\r\n <mat-accordion>\r\n <mat-expansion-panel [expanded]="i === selectedProficiencyIndex" class="w-full panel" hideToggle >\r\n <mat-expansion-panel-header class="flex-between items-center panel-header w-full">\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngFor="let proficiencyLevel of proficency?.proficiencyLevels">\r\n <ng-container *ngIf="proficiencyLevel.selected; else addLevel">\r\n <div (click)="$event.stopPropagation(); selectLevel(i, proficiencyLevel.displayLevel)" class="level mb-1"\r\n [ngStyle]="{\'background-color\': proficiencyLevel.color}"\r\n [ngClass]="{\'individual-select\': selectedProficiencyIndex === i && selectedDisplayLevel === proficiencyLevel?.displayLevel}">\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 class="level mb-1" (click)="$event.stopPropagation(); selectLevel(i, -1)">\r\n <mat-icon [ngClass]="{\'arrowReverse\': selectedProficiencyIndex === i }">keyboard_arrow_down</mat-icon>\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 *ngFor="let log of proficency?.logs; let logIndex = index">\r\n <ng-container\r\n *ngIf="(selectedDisplayLevel === -1 || (selectedProficiencyIndex === i && selectedDisplayLevel === log.level))">\r\n <div class="log">\r\n <div class="flex">\r\n <ng-container *ngIf="log.header">\r\n <span class="flex-1">Level {{log.level}}: {{log.header}}</span>\r\n <span class="log-date mr-2">{{log?.date| date:\'dd/MM/yyyy\'}}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf="log.description">\r\n <div class="mt-2" [ngClass]="{\'hide-content\': !log.keyboardArrowUp}">\r\n {{log.description}}\r\n </div>\r\n <div class="justify-end">\r\n <mat-icon (click)="log.keyboardArrowUp = !log.keyboardArrowUp"\r\n class="mr-3"\r\n [ngClass]="{\'arrowReverse\': log.keyboardArrowUp }">keyboard_arrow_down</mat-icon>\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>',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)}::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 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:o.Router}]},u([t.Output()],e.prototype,"stateChange",void 0),e=u([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 <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>\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)}(),C=function(e){function n(t){return e.call(this,t)||this}return m(n,e),n.prototype.getActivityById=function(e){var t={url:r.urlConfig.getEntityById(e.id),data:e};return this.post(t)},n.prototype.getUserdetailsFromRegistry=function(e){var t={url:r.urlConfig.getUserdetailsFromRegistry(e.id)};return this.get(t).pipe(l.map((function(e){return e.result.response})))},n.ctorParameters=function(){return[{type:i.HttpClient}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(i.HttpClient))},token:n,providedIn:"root"}),n=u([t.Injectable({providedIn:"root"})],n)}(r.DataService),I=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 y}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.profileData)return e.getActivityByRole()}))).subscribe((function(t){var r=e.requestUtil.formatedActivitityByPostion(t);e.roleactivitySummaries=r,n.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 r=n.findIndex(this.roleactivitySummaries,{id:e});this.roleactivitySummaries[r].activities=[],this.getEntityById(e).pipe(l.mergeMap((function(e){var i=t.requestUtil.formatedActivitityByRoleId(e);t.roleactivitySummaries[r].activities=i;var o=n.map(t.roleactivitySummaries[r].activities,"cid"),c=[];return n.forEach(o,(function(e){c.push(t.getEntityById(e))})),t.acordianLoading=!1,a.forkJoin.apply(void 0,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}(c))}))).subscribe((function(e){var i=t.requestUtil.formatedCompetency(e,t.competencyProgress);t.roleactivitySummaries[r].activities=n.values(n.merge(n.keyBy(i,"cid"),n.keyBy(t.roleactivitySummaries[r].activities,"cid"))),t.roleactivitySummaries[r].averagePercentage=[];var a=t.getAveragepercentage(i);t.roleactivitySummaries[r].averagePercentage=a}))},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,r=[];return n.forEach(e,(function(e){r.push(e.completionPercentage)})),n.round(n.sum(r)/t)},e.prototype.ngOnDestroy=function(){this.unsubscribe&&this.unsubscribe.unsubscribe()},e.ctorParameters=function(){return[{type:C},{type:s.ConfigService},{type:b}]},e=u([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">\r\n {{ i + 1 }}.{{ activity.title }}\r\n </div>\r\n\r\n \r\n </ng-container>\r\n <ng-container *ngIf="role?.activities" class="">\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([t.Input()],e.prototype,"competencyList",void 0),e=u([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="competency.lastLevel == i + 1">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon\r\n ></ng-container\r\n >\r\n <ng-container *ngIf="competency.lastLevel != i + 1">\r\n <mat-icon class="non-progress cursor-pointer"\r\n >check_circle</mat-icon\r\n ></ng-container\r\n >\r\n </div>\r\n <div class="Levels-title">{{ i + 1 }} : {{ level }}</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)}(),F=function(){function e(){}return e=u([t.NgModule({declarations:[h,x,w,I,k],imports:[c.CommonModule,p.MatTabsModule,p.MatIconModule,p.MatExpansionModule,p.MatProgressBarModule,p.MatProgressSpinnerModule,i.HttpClientModule,r.CoreModule,d.SelfAssessmentModule],exports:[h,x,w,I]})],e)}();e.CompetencyDashboardComponent=w,e.CompetencyModule=F,e.GainedComptencyCardComponent=x,e.RequestUtil=y,e.RequiredComptencyCardComponent=h,e.ɵa=v,e.ɵb=b,e.ɵc=I,e.ɵd=C,e.ɵe=k,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=aastrika_npmjs-comptency-competency.umd.min.js.map

@@ -395,5 +395,14 @@ (function (global, factory) {

if (res.result.contentList.length > 0 && value.childContent === res.result.contentList.length) {
var type_1 = '';
lodashEs.forEach(res.result.contentList, function (item) {
if (item.completionPercentage === 100 && item.completionPercentage !== 0) {
type_1 = 'DONE';
}
else {
type_1 = 'RESUME';
}
});
_this.btnType.push({
courseId: value.contentId,
type: 'DONE'
type: type_1
});

@@ -400,0 +409,0 @@ }

@@ -15,3 +15,3 @@ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/router"),require("@angular/common"),require("@aastrika_npmjs/comptency/core"),require("@angular/common/http"),require("lodash-es"),require("rxjs/operators"),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","@angular/common","@aastrika_npmjs/comptency/core","@angular/common/http","lodash-es","rxjs/operators","@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.ng.common,t.aastrika_npmjs.comptency.core,t.ng.common.http,t.lodashEs,t.rxjs.operators,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 d=function(){function t(t){this.router=t}return t.prototype.ngOnInit=function(){console.log(this.cardData)},t.prototype.startSelfAssesment=function(t){this.router.navigate(["app/user/self-assessment"],{queryParams:t})},t.ctorParameters=function(){return[{type:n.Router}]},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>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)}(),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={url:o.urlConfig.getSearch(),data:t};return this.post(e)},n.prototype.fetchHiearchyDetails=function(t,e){var n={url:o.urlConfig.getHierachyDetails(t,e)};return this.get(n)},n.prototype.fetchPrgressDetails=function(t){var e={url:o.urlConfig.getContentProgress(t.request.courseId),data:t};return this.post(e)},n.ctorParameters=function(){return[{type:s.HttpClient}]},n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n(e.ɵɵinject(s.HttpClient))},token:n,providedIn:"root"}),n=u([e.Injectable({providedIn:"root"})],n)}(o.DataService),g=function(){function t(){}return t.prototype.formatedcompetencyData=function(t){var e=[];if(a.get(t,"result")&&!0===a.get(t,"result.content").competency){var n=a.get(t,"result.content").children;if(n.length>0)return a.forEach(n,(function(t){e.push({title:a.get(t,"name"),courseId:a.get(t,"parent"),contentId:a.get(t,"identifier"),contentType:a.get(t,"contentType"),artifactUrl:a.get(t,"artifactUrl")})})),e}},t.prototype.formatedCompetencyCourseData=function(t){var e=this,n=[];if(a.get(t,"result")){var r=a.get(t,"result.content");if(r)return a.forEach(r,(function(t){n.push({title:a.get(t,"name"),contentId:a.get(t,"identifier"),contentType:a.get(t,"contentType"),subTitle:a.get(t,"subTitle"),description:a.get(t,"description"),creator:a.get(t,"creator"),duration:a.get(t,"duration"),batchId:e.getBatchData(t),childContent:a.get(t,"childNodes").length})})),n}},t.prototype.getBatchData=function(t){var e="";return t.batches&&a.forEach(t.batches,(function(t){e=a.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.getCompetencyCourse().pipe(i.map((function(e){return t.requestUtil.formatedCompetencyCourseData(e)}))).subscribe((function(e){t.selfAssessmentData=e,a.forEach(e,(function(e){t.getProgress(e).subscribe((function(n){n.result&&n.result.contentList.length>0&&(n.result.contentList.length>0&&e.childContent===n.result.contentList.length?t.btnType.push({courseId:e.contentId,type:"DONE"}):(console.log("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.getCompetencyCourse=function(){return this.selfAssessmentService.getCompetencyCourseIdentifier({request:{filters:{primaryCategory:["Course"],contentType:["Course"],status:["Live"],competency:!0}},sort:[{lastUpdatedOn:"desc"}]})},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:r.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)}(),b=function(){function t(){}return t=u([e.NgModule({declarations:[d,m],imports:[r.CommonModule,p.MatIconModule,s.HttpClientModule,o.CoreModule],exports:[d,m]})],t)}();t.SelfAssessmentCardComponent=d,t.SelfAssessmentComponent=m,t.SelfAssessmentModule=b,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(){function t(t){this.router=t}return t.prototype.ngOnInit=function(){console.log(this.cardData)},t.prototype.startSelfAssesment=function(t){this.router.navigate(["app/user/self-assessment"],{queryParams:t})},t.ctorParameters=function(){return[{type:n.Router}]},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>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)}(),d=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={url:o.urlConfig.getSearch(),data:t};return this.post(e)},n.prototype.fetchHiearchyDetails=function(t,e){var n={url:o.urlConfig.getHierachyDetails(t,e)};return this.get(n)},n.prototype.fetchPrgressDetails=function(t){var e={url:o.urlConfig.getContentProgress(t.request.courseId),data:t};return this.post(e)},n.ctorParameters=function(){return[{type:s.HttpClient}]},n.ngInjectableDef=e.ɵɵdefineInjectable({factory:function(){return new n(e.ɵɵinject(s.HttpClient))},token:n,providedIn:"root"}),n=u([e.Injectable({providedIn:"root"})],n)}(o.DataService),g=function(){function t(){}return t.prototype.formatedcompetencyData=function(t){var e=[];if(a.get(t,"result")&&!0===a.get(t,"result.content").competency){var n=a.get(t,"result.content").children;if(n.length>0)return a.forEach(n,(function(t){e.push({title:a.get(t,"name"),courseId:a.get(t,"parent"),contentId:a.get(t,"identifier"),contentType:a.get(t,"contentType"),artifactUrl:a.get(t,"artifactUrl")})})),e}},t.prototype.formatedCompetencyCourseData=function(t){var e=this,n=[];if(a.get(t,"result")){var r=a.get(t,"result.content");if(r)return a.forEach(r,(function(t){n.push({title:a.get(t,"name"),contentId:a.get(t,"identifier"),contentType:a.get(t,"contentType"),subTitle:a.get(t,"subTitle"),description:a.get(t,"description"),creator:a.get(t,"creator"),duration:a.get(t,"duration"),batchId:e.getBatchData(t),childContent:a.get(t,"childNodes").length})})),n}},t.prototype.getBatchData=function(t){var e="";return t.batches&&a.forEach(t.batches,(function(t){e=a.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.getCompetencyCourse().pipe(i.map((function(e){return t.requestUtil.formatedCompetencyCourseData(e)}))).subscribe((function(e){t.selfAssessmentData=e,a.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="";a.forEach(n.result.contentList,(function(t){r=100===t.completionPercentage&&0!==t.completionPercentage?"DONE":"RESUME"})),t.btnType.push({courseId:e.contentId,type:r})}else console.log("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.getCompetencyCourse=function(){return this.selfAssessmentService.getCompetencyCourseIdentifier({request:{filters:{primaryCategory:["Course"],contentType:["Course"],status:["Live"],competency:!0}},sort:[{lastUpdatedOn:"desc"}]})},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:r.Location},{type:d},{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)}(),b=function(){function t(){}return t=u([e.NgModule({declarations:[f,m],imports:[r.CommonModule,p.MatIconModule,s.HttpClientModule,o.CoreModule],exports:[f,m]})],t)}();t.SelfAssessmentCardComponent=f,t.SelfAssessmentComponent=m,t.SelfAssessmentModule=b,t.SelfAssessmentService=d,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)}(),b=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)}(),v=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:v,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,b],imports:[n.CommonModule,r.RouterModule,o.MatIconModule],exports:[h,b],providers:[]})],e)}(),C=function(){function e(e){this.router=e}return e.prototype.ngOnInit=function(){console.log(this.cardData)},e.prototype.startSelfAssesment=function(e){this.router.navigate(["app/user/self-assessment"],{queryParams:e})},e.ctorParameters=function(){return[{type:r.Router}]},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>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(e){function n(t){return e.call(this,t)||this}return u(n,e),n.prototype.getCompetencyCourseIdentifier=function(e){var t={url:c.urlConfig.getSearch(),data:e};return this.post(t)},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.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(){}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})})),n}},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 D}return e.prototype.ngOnInit=function(){var e=this;this.loading=!0,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){n.result&&n.result.contentList.length>0&&(n.result.contentList.length>0&&t.childContent===n.result.contentList.length?e.btnType.push({courseId:t.contentId,type:"DONE"}):(console.log("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.getCompetencyCourse=function(){return this.selfAssessmentService.getCompetencyCourseIdentifier({request:{filters:{primaryCategory:["Course"],contentType:["Course"],status:["Live"],competency:!0}},sort:[{lastUpdatedOn:"desc"}]})},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:w},{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)}(),F=function(){function e(){}return e=f([t.NgModule({declarations:[C,k],imports:[n.CommonModule,o.MatIconModule,s.HttpClientModule,c.CoreModule],exports:[C,k]})],e)}(),E=function(){function e(){var e=this;this.formatedActivities=function(e){if(!a.isEmpty(e))return e},this.formatedActivitityByPostion=function(e){if(a.get(e,"result")){var t=a.get(e,"result.response").children;if(t.length>0)return a.reduce(t,(function(e,t){return e.push({roles:a.get(t,"name"),id:a.get(t,"id"),description:a.get(t,"description"),averagePercentage:0}),e}),[])}},this.formatedActivitityByRoleId=function(e){if(a.get(e,"result")){var t=a.get(e,"result.response").children;if(t.length>0)return a.reduce(t,(function(e,t){return e.push({title:a.get(t,"name"),cid:a.get(t,"id"),description:a.get(t,"description")}),e}),[])}},this.formatedCompetency=function(t,n){var r=[];return a.forEach(t,(function(t){if(a.get(t,"result")){var o=a.get(t,"result.response").children;o.length>0&&a.forEach(o,(function(o){r.push({competency:a.get(o,"name"),id:a.get(o,"id"),description:a.get(o,"description"),levels:["Level 1","Level 2","Level 3","Level 4","Level 5"],cid:a.get(t,"result.response").id,lastLevel:e.getheighestLevel(a.get(o,"id"),n),completionPercentage:e.getCompeletionPercentage(a.get(o,"id"),n)})}))}})),a.uniqBy(r,"id")}}return 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){var n=this,r=[];return a.forEach(e,(function(e){var o=a.get(e,"id");a.forEach(t,(function(e){if(e.competencies.hasOwnProperty(o)){var t=e.competencies[o];r.push({title:a.get(t,"additionalParams.competencyName"),logs:n.acquiredPassbookLogs(a.get(t,"acquiredDetails")),proficiencyLevels:n.acauiredChannelColourCode(a.get(t,"acquiredDetails")),competencyStoreData:n.competencyStoreDataFomat(t)})}}))})),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){return{competencyId:e.competencyId,competencyName:e.additionalParams.competencyName,levelId:a.maxBy(e.acquiredDetails,"competencyLevelId")}},e}(),L=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),P=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 E}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:L}]},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)}(),S=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(){function e(e){this.gainedService=e,this.loading=!1,this.panelOpenState=!1,this.selectedProficiencyIndex=-1,this.selectedDisplayLevel=-1,this.requestUtil=new E}return e.prototype.ngOnInit=function(){var e=this;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);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.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:S}]},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 \x3c!-- <div class="date justify-end mr-2">\r\n {{date}}\r\n </div> --\x3e\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>\r\n Levels:\r\n </div>\r\n <mat-accordion>\r\n <mat-expansion-panel [expanded]="i === selectedProficiencyIndex" class="w-full panel" hideToggle >\r\n <mat-expansion-panel-header class="flex-between items-center panel-header w-full">\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngFor="let proficiencyLevel of proficency?.proficiencyLevels">\r\n <ng-container *ngIf="proficiencyLevel.selected; else addLevel">\r\n <div (click)="$event.stopPropagation(); selectLevel(i, proficiencyLevel.displayLevel)" class="level mb-1"\r\n [ngStyle]="{\'background-color\': proficiencyLevel.color}"\r\n [ngClass]="{\'individual-select\': selectedProficiencyIndex === i && selectedDisplayLevel === proficiencyLevel?.displayLevel}">\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 class="level mb-1" (click)="$event.stopPropagation(); selectLevel(i, -1)">\r\n <mat-icon [ngClass]="{\'arrowReverse\': selectedProficiencyIndex === i }">keyboard_arrow_down</mat-icon>\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 *ngFor="let log of proficency?.logs; let logIndex = index">\r\n <ng-container\r\n *ngIf="(selectedDisplayLevel === -1 || (selectedProficiencyIndex === i && selectedDisplayLevel === log.level))">\r\n <div class="log">\r\n <div class="flex">\r\n <ng-container *ngIf="log.header">\r\n <span class="flex-1">Level {{log.level}}: {{log.header}}</span>\r\n <span class="log-date mr-2">{{log?.date| date:\'dd/MM/yyyy\'}}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf="log.description">\r\n <div class="mt-2" [ngClass]="{\'hide-content\': !log.keyboardArrowUp}">\r\n {{log.description}}\r\n </div>\r\n <div class="justify-end">\r\n <mat-icon (click)="log.keyboardArrowUp = !log.keyboardArrowUp"\r\n class="mr-3"\r\n [ngClass]="{\'arrowReverse\': log.keyboardArrowUp }">keyboard_arrow_down</mat-icon>\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>',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)}::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)}(),B=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 <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>\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)}(),j=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),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 E}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.profileData)return e.getActivityByRole()}))).subscribe((function(t){var n=e.requestUtil.formatedActivitityByPostion(t);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:"AWW"===e?95:1};return this.activeSummaryService.getActivityById(t)},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.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.roleactivitySummaries[n].activities=a.values(a.merge(a.keyBy(r,"cid"),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:j},{type:p.ConfigService},{type:S}]},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">\r\n {{ i + 1 }}.{{ activity.title }}\r\n </div>\r\n\r\n \r\n </ng-container>\r\n <ng-container *ngIf="role?.activities" class="">\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="competency.lastLevel == i + 1">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon\r\n ></ng-container\r\n >\r\n <ng-container *ngIf="competency.lastLevel != i + 1">\r\n <mat-icon class="non-progress cursor-pointer"\r\n >check_circle</mat-icon\r\n ></ng-container\r\n >\r\n </div>\r\n <div class="Levels-title">{{ i + 1 }} : {{ level }}</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)}(),z=function(){function e(){}return e=f([t.NgModule({declarations:[P,A,B,M,q],imports:[n.CommonModule,o.MatTabsModule,o.MatIconModule,o.MatExpansionModule,o.MatProgressBarModule,o.MatProgressSpinnerModule,s.HttpClientModule,c.CoreModule,d.SelfAssessmentModule],exports:[P,A,B,M]})],e)}();e.CompetencyModule=z,e.EntryModule=I,e.SelfAssessmentModule=F,e.ɵa=h,e.ɵb=b,e.ɵc=x,e.ɵd=v,e.ɵe=C,e.ɵf=k,e.ɵg=w,e.ɵh=P,e.ɵi=L,e.ɵj=A,e.ɵk=S,e.ɵl=B,e.ɵm=M,e.ɵn=j,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)}(),b=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)}(),v=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:v,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,b],imports:[n.CommonModule,r.RouterModule,o.MatIconModule],exports:[h,b],providers:[]})],e)}(),C=function(){function e(e){this.router=e}return e.prototype.ngOnInit=function(){console.log(this.cardData)},e.prototype.startSelfAssesment=function(e){this.router.navigate(["app/user/self-assessment"],{queryParams:e})},e.ctorParameters=function(){return[{type:r.Router}]},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>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(e){function n(t){return e.call(this,t)||this}return u(n,e),n.prototype.getCompetencyCourseIdentifier=function(e){var t={url:c.urlConfig.getSearch(),data:e};return this.post(t)},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.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(){}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})})),n}},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 D}return e.prototype.ngOnInit=function(){var e=this;this.loading=!0,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 console.log("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.getCompetencyCourse=function(){return this.selfAssessmentService.getCompetencyCourseIdentifier({request:{filters:{primaryCategory:["Course"],contentType:["Course"],status:["Live"],competency:!0}},sort:[{lastUpdatedOn:"desc"}]})},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:w},{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)}(),F=function(){function e(){}return e=f([t.NgModule({declarations:[C,k],imports:[n.CommonModule,o.MatIconModule,s.HttpClientModule,c.CoreModule],exports:[C,k]})],e)}(),E=function(){function e(){var e=this;this.formatedActivities=function(e){if(!a.isEmpty(e))return e},this.formatedActivitityByPostion=function(e){if(a.get(e,"result")){var t=a.get(e,"result.response").children;if(t.length>0)return a.reduce(t,(function(e,t){return e.push({roles:a.get(t,"name"),id:a.get(t,"id"),description:a.get(t,"description"),averagePercentage:0}),e}),[])}},this.formatedActivitityByRoleId=function(e){if(a.get(e,"result")){var t=a.get(e,"result.response").children;if(t.length>0)return a.reduce(t,(function(e,t){return e.push({title:a.get(t,"name"),cid:a.get(t,"id"),description:a.get(t,"description")}),e}),[])}},this.formatedCompetency=function(t,n){var r=[];return a.forEach(t,(function(t){if(a.get(t,"result")){var o=a.get(t,"result.response").children;o.length>0&&a.forEach(o,(function(o){r.push({competency:a.get(o,"name"),id:a.get(o,"id"),description:a.get(o,"description"),levels:["Level 1","Level 2","Level 3","Level 4","Level 5"],cid:a.get(t,"result.response").id,lastLevel:e.getheighestLevel(a.get(o,"id"),n),completionPercentage:e.getCompeletionPercentage(a.get(o,"id"),n)})}))}})),a.uniqBy(r,"id")}}return 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){var n=this,r=[];return a.forEach(e,(function(e){var o=a.get(e,"id");a.forEach(t,(function(e){if(e.competencies.hasOwnProperty(o)){var t=e.competencies[o];r.push({title:a.get(t,"additionalParams.competencyName"),logs:n.acquiredPassbookLogs(a.get(t,"acquiredDetails")),proficiencyLevels:n.acauiredChannelColourCode(a.get(t,"acquiredDetails")),competencyStoreData:n.competencyStoreDataFomat(t)})}}))})),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){return{competencyId:e.competencyId,competencyName:e.additionalParams.competencyName,levelId:a.maxBy(e.acquiredDetails,"competencyLevelId")}},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),L=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 E}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)}(),S=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(){function e(e){this.gainedService=e,this.loading=!1,this.panelOpenState=!1,this.selectedProficiencyIndex=-1,this.selectedDisplayLevel=-1,this.requestUtil=new E}return e.prototype.ngOnInit=function(){var e=this;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);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.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:S}]},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 \x3c!-- <div class="date justify-end mr-2">\r\n {{date}}\r\n </div> --\x3e\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>\r\n Levels:\r\n </div>\r\n <mat-accordion>\r\n <mat-expansion-panel [expanded]="i === selectedProficiencyIndex" class="w-full panel" hideToggle >\r\n <mat-expansion-panel-header class="flex-between items-center panel-header w-full">\r\n <mat-panel-description class="panel-header-description">\r\n <ng-container *ngFor="let proficiencyLevel of proficency?.proficiencyLevels">\r\n <ng-container *ngIf="proficiencyLevel.selected; else addLevel">\r\n <div (click)="$event.stopPropagation(); selectLevel(i, proficiencyLevel.displayLevel)" class="level mb-1"\r\n [ngStyle]="{\'background-color\': proficiencyLevel.color}"\r\n [ngClass]="{\'individual-select\': selectedProficiencyIndex === i && selectedDisplayLevel === proficiencyLevel?.displayLevel}">\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 class="level mb-1" (click)="$event.stopPropagation(); selectLevel(i, -1)">\r\n <mat-icon [ngClass]="{\'arrowReverse\': selectedProficiencyIndex === i }">keyboard_arrow_down</mat-icon>\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 *ngFor="let log of proficency?.logs; let logIndex = index">\r\n <ng-container\r\n *ngIf="(selectedDisplayLevel === -1 || (selectedProficiencyIndex === i && selectedDisplayLevel === log.level))">\r\n <div class="log">\r\n <div class="flex">\r\n <ng-container *ngIf="log.header">\r\n <span class="flex-1">Level {{log.level}}: {{log.header}}</span>\r\n <span class="log-date mr-2">{{log?.date| date:\'dd/MM/yyyy\'}}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf="log.description">\r\n <div class="mt-2" [ngClass]="{\'hide-content\': !log.keyboardArrowUp}">\r\n {{log.description}}\r\n </div>\r\n <div class="justify-end">\r\n <mat-icon (click)="log.keyboardArrowUp = !log.keyboardArrowUp"\r\n class="mr-3"\r\n [ngClass]="{\'arrowReverse\': log.keyboardArrowUp }">keyboard_arrow_down</mat-icon>\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>',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)}::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)}(),B=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 <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>\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)}(),j=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),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 E}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.profileData)return e.getActivityByRole()}))).subscribe((function(t){var n=e.requestUtil.formatedActivitityByPostion(t);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.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.roleactivitySummaries[n].activities=a.values(a.merge(a.keyBy(r,"cid"),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:j},{type:p.ConfigService},{type:S}]},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">\r\n {{ i + 1 }}.{{ activity.title }}\r\n </div>\r\n\r\n \r\n </ng-container>\r\n <ng-container *ngIf="role?.activities" class="">\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="competency.lastLevel == i + 1">\r\n <mat-icon class="circle-tick cursor-pointer"\r\n >check_circle</mat-icon\r\n ></ng-container\r\n >\r\n <ng-container *ngIf="competency.lastLevel != i + 1">\r\n <mat-icon class="non-progress cursor-pointer"\r\n >check_circle</mat-icon\r\n ></ng-container\r\n >\r\n </div>\r\n <div class="Levels-title">{{ i + 1 }} : {{ level }}</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)}(),z=function(){function e(){}return e=f([t.NgModule({declarations:[L,A,B,M,q],imports:[n.CommonModule,o.MatTabsModule,o.MatIconModule,o.MatExpansionModule,o.MatProgressBarModule,o.MatProgressSpinnerModule,s.HttpClientModule,c.CoreModule,d.SelfAssessmentModule],exports:[L,A,B,M]})],e)}();e.CompetencyModule=z,e.EntryModule=I,e.SelfAssessmentModule=F,e.ɵa=h,e.ɵb=b,e.ɵc=x,e.ɵd=v,e.ɵe=C,e.ɵf=k,e.ɵg=w,e.ɵh=L,e.ɵi=P,e.ɵj=A,e.ɵk=S,e.ɵl=B,e.ɵm=M,e.ɵn=j,e.ɵo=q,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=aastrika_npmjs-comptency.umd.min.js.map

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"RequiredComptencyCardComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnInit":[{"__symbolic":"method"}],"getRequiredByPostion":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"GainedComptencyCardComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"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 <!-- <div class=\"date justify-end mr-2\">\r\n {{date}}\r\n </div> -->\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>\r\n Levels:\r\n </div>\r\n <mat-accordion>\r\n <mat-expansion-panel [expanded]=\"i === selectedProficiencyIndex\" class=\"w-full panel\" hideToggle >\r\n <mat-expansion-panel-header class=\"flex-between items-center panel-header w-full\">\r\n <mat-panel-description class=\"panel-header-description\">\r\n <ng-container *ngFor=\"let proficiencyLevel of proficency?.proficiencyLevels\">\r\n <ng-container *ngIf=\"proficiencyLevel.selected; else addLevel\">\r\n <div (click)=\"$event.stopPropagation(); selectLevel(i, proficiencyLevel.displayLevel)\" class=\"level mb-1\"\r\n [ngStyle]=\"{'background-color': proficiencyLevel.color}\"\r\n [ngClass]=\"{'individual-select': selectedProficiencyIndex === i && selectedDisplayLevel === proficiencyLevel?.displayLevel}\">\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 class=\"level mb-1\" (click)=\"$event.stopPropagation(); selectLevel(i, -1)\">\r\n <mat-icon [ngClass]=\"{'arrowReverse': selectedProficiencyIndex === i }\">keyboard_arrow_down</mat-icon>\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 *ngFor=\"let log of proficency?.logs; let logIndex = index\">\r\n <ng-container\r\n *ngIf=\"(selectedDisplayLevel === -1 || (selectedProficiencyIndex === i && selectedDisplayLevel === log.level))\">\r\n <div class=\"log\">\r\n <div class=\"flex\">\r\n <ng-container *ngIf=\"log.header\">\r\n <span class=\"flex-1\">Level {{log.level}}: {{log.header}}</span>\r\n <span class=\"log-date mr-2\">{{log?.date| date:'dd/MM/yyyy'}}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf=\"log.description\">\r\n <div class=\"mt-2\" [ngClass]=\"{'hide-content': !log.keyboardArrowUp}\">\r\n {{log.description}}\r\n </div>\r\n <div class=\"justify-end\">\r\n <mat-icon (click)=\"log.keyboardArrowUp = !log.keyboardArrowUp\"\r\n class=\"mr-3\"\r\n [ngClass]=\"{'arrowReverse': log.keyboardArrowUp }\">keyboard_arrow_down</mat-icon>\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 <!-- <hr> -->\r\n</ng-container>","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)}::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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"}]}],"ngOnInit":[{"__symbolic":"method"}],"getAllUserPassbook":[{"__symbolic":"method"}],"getAllEntity":[{"__symbolic":"method"}],"selectLevel":[{"__symbolic":"method"}]}},"CompetencyDashboardComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"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 <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>\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 <!-- Active Summary as Job Description -->\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 <!-- gained as Passbook -->\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 <!-- required -->\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}"]}]}],"members":{"stateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":9,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":11,"character":31}]}],"ngOnInit":[{"__symbolic":"method"}],"navigateBack":[{"__symbolic":"method"}],"changeTab":[{"__symbolic":"method"}],"startSelfAssessment":[{"__symbolic":"method"}]}},"CompetencyModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":17,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"RequiredComptencyCardComponent"},{"__symbolic":"reference","name":"GainedComptencyCardComponent"},{"__symbolic":"reference","name":"CompetencyDashboardComponent"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵe"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":24,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatTabsModule","line":25,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":26,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatExpansionModule","line":27,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatProgressBarModule","line":28,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatProgressSpinnerModule","line":29,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":30,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"CoreModule","line":31,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/self-assessment","name":"SelfAssessmentModule","line":32,"character":4}],"exports":[{"__symbolic":"reference","name":"RequiredComptencyCardComponent"},{"__symbolic":"reference","name":"GainedComptencyCardComponent"},{"__symbolic":"reference","name":"CompetencyDashboardComponent"},{"__symbolic":"reference","name":"ɵc"}]}]}],"members":{}},"RequestUtil":{"__symbolic":"class","members":{"getheighestLevel":[{"__symbolic":"method"}],"getCompeletionPercentage":[{"__symbolic":"method"}],"formatedGainedCompetency":[{"__symbolic":"method"}],"acquiredPassbookLogs":[{"__symbolic":"method"}],"acauiredChannelColourCode":[{"__symbolic":"method"}],"competencyStoreDataFomat":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":12,"character":47},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":14,"character":19}]}],"getRequiredCompetencyById":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵb":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":14,"character":35},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":20,"character":19}]}],"fetchUserPassbook":[{"__symbolic":"method"}],"fetchAllEntity":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"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 <!-- 'warn-bar': role?.averagePercentage < 100 && role?.averagePercentage != 0, -->\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 <!-- list of activity -->\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\">\r\n {{ i + 1 }}.{{ activity.title }}\r\n </div>\r\n\r\n \r\n </ng-container>\r\n <ng-container *ngIf=\"role?.activities\" class=\"\">\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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":30,"character":26},{"__symbolic":"reference","name":"ɵb"}]}],"ngOnInit":[{"__symbolic":"method"}],"getProgress":[{"__symbolic":"method"}],"getUserDetails":[{"__symbolic":"method"}],"getActivityByRole":[{"__symbolic":"method"}],"getActivityByRoleId":[{"__symbolic":"method"}],"getEntityById":[{"__symbolic":"method"}],"getAveragepercentage":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵd":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":13,"character":42},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":15,"character":19}]}],"getActivityById":[{"__symbolic":"method"}],"getUserdetailsFromRegistry":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"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 <!-- <lib-app-loader *ngIf=\"acordianLoading === true\"></lib-app-loader> -->\r\n <div class=\"expand-container\">\r\n <!-- list of levels -->\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=\"competency.lastLevel == i + 1\">\r\n <mat-icon class=\"circle-tick cursor-pointer\"\r\n >check_circle</mat-icon\r\n ></ng-container\r\n >\r\n <ng-container *ngIf=\"competency.lastLevel != i + 1\">\r\n <mat-icon class=\"non-progress cursor-pointer\"\r\n >check_circle</mat-icon\r\n ></ng-container\r\n >\r\n </div>\r\n <div class=\"Levels-title\">{{ i + 1 }} : {{ level }}</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}"]}]}],"members":{"competencyList":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}}},"origins":{"RequiredComptencyCardComponent":"./components/required-comptency-card/required-comptency-card.component","GainedComptencyCardComponent":"./components/gained-comptency-card/gained-comptency-card.component","CompetencyDashboardComponent":"./components/competency-dashboard/competency-dashboard.component","CompetencyModule":"./competency.module","RequestUtil":"./services/request-util","ɵa":"./services/required-competency.service","ɵb":"./services/gained.service","ɵc":"./components/active-summary/active-summary.component","ɵd":"./services/active-summary.service","ɵe":"./components/competency-accordion/competency-accordion.component"},"importAs":"@aastrika_npmjs/comptency/competency"}
{"__symbolic":"module","version":4,"metadata":{"RequiredComptencyCardComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"}]}],"ngOnInit":[{"__symbolic":"method"}],"getRequiredByPostion":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"GainedComptencyCardComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"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 <!-- <div class=\"date justify-end mr-2\">\r\n {{date}}\r\n </div> -->\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>\r\n Levels:\r\n </div>\r\n <mat-accordion>\r\n <mat-expansion-panel [expanded]=\"i === selectedProficiencyIndex\" class=\"w-full panel\" hideToggle >\r\n <mat-expansion-panel-header class=\"flex-between items-center panel-header w-full\">\r\n <mat-panel-description class=\"panel-header-description\">\r\n <ng-container *ngFor=\"let proficiencyLevel of proficency?.proficiencyLevels\">\r\n <ng-container *ngIf=\"proficiencyLevel.selected; else addLevel\">\r\n <div (click)=\"$event.stopPropagation(); selectLevel(i, proficiencyLevel.displayLevel)\" class=\"level mb-1\"\r\n [ngStyle]=\"{'background-color': proficiencyLevel.color}\"\r\n [ngClass]=\"{'individual-select': selectedProficiencyIndex === i && selectedDisplayLevel === proficiencyLevel?.displayLevel}\">\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 class=\"level mb-1\" (click)=\"$event.stopPropagation(); selectLevel(i, -1)\">\r\n <mat-icon [ngClass]=\"{'arrowReverse': selectedProficiencyIndex === i }\">keyboard_arrow_down</mat-icon>\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 *ngFor=\"let log of proficency?.logs; let logIndex = index\">\r\n <ng-container\r\n *ngIf=\"(selectedDisplayLevel === -1 || (selectedProficiencyIndex === i && selectedDisplayLevel === log.level))\">\r\n <div class=\"log\">\r\n <div class=\"flex\">\r\n <ng-container *ngIf=\"log.header\">\r\n <span class=\"flex-1\">Level {{log.level}}: {{log.header}}</span>\r\n <span class=\"log-date mr-2\">{{log?.date| date:'dd/MM/yyyy'}}</span>\r\n </ng-container>\r\n </div>\r\n <ng-container *ngIf=\"log.description\">\r\n <div class=\"mt-2\" [ngClass]=\"{'hide-content': !log.keyboardArrowUp}\">\r\n {{log.description}}\r\n </div>\r\n <div class=\"justify-end\">\r\n <mat-icon (click)=\"log.keyboardArrowUp = !log.keyboardArrowUp\"\r\n class=\"mr-3\"\r\n [ngClass]=\"{'arrowReverse': log.keyboardArrowUp }\">keyboard_arrow_down</mat-icon>\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 <!-- <hr> -->\r\n</ng-container>","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)}::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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"}]}],"ngOnInit":[{"__symbolic":"method"}],"getAllUserPassbook":[{"__symbolic":"method"}],"getAllEntity":[{"__symbolic":"method"}],"selectLevel":[{"__symbolic":"method"}]}},"CompetencyDashboardComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":3,"character":1},"arguments":[{"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 <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>\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 <!-- Active Summary as Job Description -->\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 <!-- gained as Passbook -->\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 <!-- required -->\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}"]}]}],"members":{"stateChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":9,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":11,"character":31}]}],"ngOnInit":[{"__symbolic":"method"}],"navigateBack":[{"__symbolic":"method"}],"changeTab":[{"__symbolic":"method"}],"startSelfAssessment":[{"__symbolic":"method"}]}},"CompetencyModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":17,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"RequiredComptencyCardComponent"},{"__symbolic":"reference","name":"GainedComptencyCardComponent"},{"__symbolic":"reference","name":"CompetencyDashboardComponent"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵe"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":24,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatTabsModule","line":25,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":26,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatExpansionModule","line":27,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatProgressBarModule","line":28,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatProgressSpinnerModule","line":29,"character":4},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClientModule","line":30,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"CoreModule","line":31,"character":4},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/self-assessment","name":"SelfAssessmentModule","line":32,"character":4}],"exports":[{"__symbolic":"reference","name":"RequiredComptencyCardComponent"},{"__symbolic":"reference","name":"GainedComptencyCardComponent"},{"__symbolic":"reference","name":"CompetencyDashboardComponent"},{"__symbolic":"reference","name":"ɵc"}]}]}],"members":{}},"RequestUtil":{"__symbolic":"class","members":{"getheighestLevel":[{"__symbolic":"method"}],"getCompeletionPercentage":[{"__symbolic":"method"}],"formatedGainedCompetency":[{"__symbolic":"method"}],"acquiredPassbookLogs":[{"__symbolic":"method"}],"acauiredChannelColourCode":[{"__symbolic":"method"}],"competencyStoreDataFomat":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":12,"character":47},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":14,"character":19}]}],"getRequiredCompetencyById":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵb":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":14,"character":35},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":20,"character":19}]}],"fetchUserPassbook":[{"__symbolic":"method"}],"fetchAllEntity":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"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 <!-- 'warn-bar': role?.averagePercentage < 100 && role?.averagePercentage != 0, -->\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 <!-- list of activity -->\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\">\r\n {{ i + 1 }}.{{ activity.title }}\r\n </div>\r\n\r\n \r\n </ng-container>\r\n <ng-container *ngIf=\"role?.activities\" class=\"\">\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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/entry-module","name":"ConfigService","line":30,"character":26},{"__symbolic":"reference","name":"ɵb"}]}],"ngOnInit":[{"__symbolic":"method"}],"getProgress":[{"__symbolic":"method"}],"getUserDetails":[{"__symbolic":"method"}],"getActivityByRole":[{"__symbolic":"method"}],"designationMap":[{"__symbolic":"method"}],"getActivityByRoleId":[{"__symbolic":"method"}],"getEntityById":[{"__symbolic":"method"}],"getAveragepercentage":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"ɵd":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@aastrika_npmjs/comptency/core","name":"DataService","line":13,"character":42},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":10,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":15,"character":19}]}],"getActivityById":[{"__symbolic":"method"}],"getUserdetailsFromRegistry":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"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 <!-- <lib-app-loader *ngIf=\"acordianLoading === true\"></lib-app-loader> -->\r\n <div class=\"expand-container\">\r\n <!-- list of levels -->\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=\"competency.lastLevel == i + 1\">\r\n <mat-icon class=\"circle-tick cursor-pointer\"\r\n >check_circle</mat-icon\r\n ></ng-container\r\n >\r\n <ng-container *ngIf=\"competency.lastLevel != i + 1\">\r\n <mat-icon class=\"non-progress cursor-pointer\"\r\n >check_circle</mat-icon\r\n ></ng-container\r\n >\r\n </div>\r\n <div class=\"Levels-title\">{{ i + 1 }} : {{ level }}</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}"]}]}],"members":{"competencyList":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}}},"origins":{"RequiredComptencyCardComponent":"./components/required-comptency-card/required-comptency-card.component","GainedComptencyCardComponent":"./components/gained-comptency-card/gained-comptency-card.component","CompetencyDashboardComponent":"./components/competency-dashboard/competency-dashboard.component","CompetencyModule":"./competency.module","RequestUtil":"./services/request-util","ɵa":"./services/required-competency.service","ɵb":"./services/gained.service","ɵc":"./components/active-summary/active-summary.component","ɵd":"./services/active-summary.service","ɵe":"./components/competency-accordion/competency-accordion.component"},"importAs":"@aastrika_npmjs/comptency/competency"}

@@ -28,2 +28,3 @@ import { OnInit } from '@angular/core';

private getActivityByRole;
private designationMap;
getActivityByRoleId(id: any): void;

@@ -30,0 +31,0 @@ getEntityById(id: any): import("rxjs").Observable<any>;

@@ -65,6 +65,17 @@ import * as tslib_1 from "tslib";

},
id: designation === 'AWW' ? 95 : 1
id: this.designationMap(designation)
};
return this.activeSummaryService.getActivityById(reqBody);
}
designationMap(designation) {
const positionMap = {
"AWW": 95,
"ANM": 210
};
if (positionMap.hasOwnProperty(designation)) {
return positionMap[designation];
}
else
return 1;
}
getActivityByRoleId(id) {

@@ -131,2 +142,2 @@ // this.panelOpenState = true

export { ActiveSummaryComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZlLXN1bW1hcnkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFhc3RyaWthX25wbWpzL2NvbXB0ZW5jeS9jb21wZXRlbmN5LyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy9hY3RpdmUtc3VtbWFyeS9hY3RpdmUtc3VtbWFyeS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQXFCLE1BQU0sZUFBZSxDQUFDO0FBQzdELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUMxRCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBT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dWU6IGFueSkgPT4ge1xyXG4gICAgICBwZXJjZW50YWdlLnB1c2godmFsdWUuY29tcGxldGlvblBlcmNlbnRhZ2UpXHJcbiAgICB9KVxyXG4gICAgdG90YWxQZXJjZW50ID0gXy5yb3VuZChfLnN1bShwZXJjZW50YWdlKSAvIHRvdGFsTGVuZ3RoKVxyXG4gICAgcmV0dXJuIHRvdGFsUGVyY2VudFxyXG4gIH1cclxuICBuZ09uRGVzdHJveSgpIHtcclxuICAgIGlmICh0aGlzLnVuc3Vic2NyaWJlKSB7XHJcbiAgICAgIHRoaXMudW5zdWJzY3JpYmUudW5zdWJzY3JpYmUoKVxyXG4gICAgfVxyXG5cclxuICB9XHJcbn1cclxuIl19

@@ -35,5 +35,14 @@ import * as tslib_1 from "tslib";

if (res.result.contentList.length > 0 && value.childContent === res.result.contentList.length) {
let type = '';
_.forEach(res.result.contentList, (item) => {
if (item.completionPercentage === 100 && item.completionPercentage !== 0) {
type = 'DONE';
}
else {
type = 'RESUME';
}
});
this.btnType.push({
courseId: value.contentId,
type: 'DONE'
type
});

@@ -114,2 +123,2 @@ }

export { SelfAssessmentComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZi1hc3Nlc3NtZW50LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYXN0cmlrYV9ucG1qcy9jb21wdGVuY3kvIiwic291cmNlcyI6WyJzZWxmLWFzc2Vzc21lbnQvY29tcG9uZW50cy9zZWxmLWFzc2Vzc21lbnQvc2VsZi1hc3Nlc3NtZW50LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0saUJBQWlCLENBQUE7QUFDMUMsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sdUNB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WFjaChyZXMsICh2YWx1ZTogYW55KSA9PiB7XHJcbiAgICAgICAgdGhpcy5nZXRQcm9ncmVzcyh2YWx1ZSkuc3Vic2NyaWJlKChyZXMpID0+IHtcclxuXHJcbiAgICAgICAgICBpZiAocmVzLnJlc3VsdCkge1xyXG4gICAgICAgICAgICBpZiAocmVzLnJlc3VsdC5jb250ZW50TGlzdC5sZW5ndGggPiAwKSB7XHJcbiAgICAgICAgICAgICAgaWYgKHJlcy5yZXN1bHQuY29udGVudExpc3QubGVuZ3RoID4gMCAmJiB2YWx1ZS5jaGlsZENvbnRlbnQgPT09IHJlcy5yZXN1bHQuY29udGVudExpc3QubGVuZ3RoKSB7XHJcbiAgICAgICAgICAgICAgICB0aGlzLmJ0blR5cGUucHVzaCh7XHJcbiAgICAgICAgICAgICAgICAgIGNvdXJzZUlkOiB2YWx1ZS5jb250ZW50SWQsXHJcbiAgICAgICAgICAgICAgICAgIHR5cGU6ICdET05FJ1xyXG4gICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2coJ2Vsc2UnKTtcclxuICAgICAgICAgICAgICAgIHRoaXMuYnRuVHlwZS5wdXNoKHtcclxuICAgICAgICAgICAgICAgICAgY291cnNlSWQ6IHZhbHVlLmNvbnRlbnRJZCxcclxuICAgICAgICAgICAgICAgICAgdHlwZTogJ1JFU1VNRSdcclxuICAgICAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICB9IFxyXG4gICAgICAgICAgXHJcbiAgICAgICAgICBpZihyZXMucmVzdWx0LmNvbnRlbnRMaXN0Lmxlbmd0aCA9PSAwICkge1xyXG4gICAgICAgICAgICB0aGlzLmJ0blR5cGUucHVzaCh7XHJcbiAgICAgICAgICAgICAgY291cnNlSWQ6IHZhbHVlLmNvbnRlbnRJZCxcclxuICAgICAgICAgICAgICB0eXBlOiAnU1RBUlQnXHJcbiAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgfSlcclxuICAgICAgfSlcclxuXHJcbiAgICAgIHRoaXMubG9hZGluZyA9IGZhbHNlXHJcbiAgICB9KVxyXG5cclxuXHJcbiAgfVxyXG5cclxuICBnZXRDb21wZXRlbmN5Q291cnNlKCkge1xyXG4gICAgY29uc3QgcmVxQm9keSA9IHtcclxuICAgICAgXCJyZXF1ZXN0XCI6IHtcclxuICAgICAgICBcImZpbHRlcnNcIjoge1xyXG4gICAgICAgICAgXCJwcmltYXJ5Q2F0ZWdvcnlcIjogW1xyXG4gICAgICAgICAgICBcIkNvdXJzZVwiXHJcbiAgICAgICAgICBdLFxyXG4gICAgICAgICAgXCJjb250ZW50VHlwZVwiOiBbXHJcbiAgICAgICAgICAgIFwiQ291cnNlXCJcclxuICAgICAgICAgIF0sXHJcbiAgICAgICAgICBcInN0YXR1c1wiOiBbXHJcbiAgICAgICAgICAgIFwiTGl2ZVwiXHJcbiAgICAgICAgICBdLFxyXG4gICAgICAgICAgXCJjb21wZXRlbmN5XCI6IHRydWVcclxuICAgICAgICB9XHJcbiAgICAgIH0sXHJcbiAgICAgIFwic29ydFwiOiBbXHJcbiAgICAgICAge1xyXG4gICAgICAgICAgXCJsYXN0VXBkYXRlZE9uXCI6IFwiZGVzY1wiXHJcbiAgICAgICAgfVxyXG4gICAgICBdXHJcbiAgICB9XHJcbiAgICByZXR1cm4gdGhpcy5zZWxmQXNzZXNzbWVudFNlcnZpY2UuZ2V0Q29tcGV0ZW5jeUNvdXJzZUlkZW50aWZpZXIocmVxQm9keSlcclxuICB9XHJcblxyXG4gIGdldFByb2dyZXNzKGRhdGEpIHtcclxuICAgIGNvbnN0IHJlcWJvZHkgPSB7XHJcbiAgICAgIHJlcXVlc3Q6IHtcclxuICAgICAgICB1c2VySWQ6IHRoaXMuY29uZmlnU2VydmljZS5nZXRDb25maWcoKS5pZCxcclxuICAgICAgICBiYXRjaElkOi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lbmN5Q291cnNlRGF0YShyZXMpXHJcbiAgICAgIHJldHVybiBmb3JtYXRlZFJlc3BvbnNlXHJcbiAgICB9KSkuc3Vic2NyaWJlKChyZXMpID0+IHtcclxuICAgICAgdGhpcy5zZWxmQXNzZXNzbWVudERhdGEgPSByZXNcclxuICAgICAgXy5mb3JFYWNoKHJlcywgKHZhbHVlOiBhbnkpID0+IHtcclxuICAgICAgICB0aGlzLmdldFByb2dyZXNzKHZhbHVlKS5zdWJzY3JpYmUoKHJlcykgPT4ge1xyXG5cclxuICAgICAgICAgIGlmIChyZXMucmVzdWx0KSB7XHJcbiAgICAgICAgICAgIGlmIChyZXMucmVzdWx0LmNvbnRlbnRMaXN0Lmxlbmd0aCA+IDApIHtcclxuICAgICAgICAgICAgICBpZiAocmVzLnJlc3VsdC5jb250ZW50TGlzdC5sZW5ndGggPiAwICYmIHZhbHVlLmNoaWxkQ29udGVudCA9PT0gcmVzLnJlc3VsdC5jb250ZW50TGlzdC5sZW5ndGgpIHtcclxuICAgICAgICAgICAgICAgIGxldCB0eXBlID0gJydcclxuICAgICAgICAgICAgICAgIF8uZm9yRWFjaChyZXMucmVzdWx0LmNvbnRlbnRMaXN0LCAoaXRlbTphbnkpPT57XHJcbiAgICAgICAgICAgICAgICAgIGlmKGl0ZW0uY29tcGxldGlvblBlcmNlbnRhZ2UgPT09IDEwMCAmJiBpdGVtLmNvbXBsZXRpb25QZXJjZW50YWdlICE9PSAwICl7XHJcbiAgICAgICAgICAgICAgICAgICAgdHlwZSA9ICdET05FJ1xyXG4gICAgICAgICAgICAgICAgICB9ZWxzZXtcclxuICAgICAgICAgICAgICAgICAgICB0eXBlID0gJ1JFU1VNRSdcclxuICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICAgIHRoaXMuYnRuVHlwZS5wdXNoKHtcclxuICAgICAgICAgICAgICAgICAgY291cnNlSWQ6IHZhbHVlLmNvbnRlbnRJZCxcclxuICAgICAgICAgICAgICAgICAgdHlwZVxyXG4gICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2coJ2Vsc2UnKTtcclxuICAgICAgICAgICAgICAgIHRoaXMuYnRuVHlwZS5wdXNoKHtcclxuICAgICAgICAgICAgICAgICAgY291cnNlSWQ6IHZhbHVlLmNvbnRlbnRJZCxcclxuICAgICAgICAgICAgICAgICAgdHlwZTogJ1JFU1VNRSdcclxuICAgICAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICB9IFxyXG4gICAgICAgICAgXHJcbiAgICAgICAgICBpZihyZXMucmVzdWx0LmNvbnRlbnRMaXN0Lmxlbmd0aCA9PSAwICkge1xyXG4gICAgICAgICAgICB0aGlzLmJ0blR5cGUucHVzaCh7XHJcbiAgICAgICAgICAgICAgY291cnNlSWQ6IHZhbHVlLmNvbnRlbnRJZCxcclxuICAgICAgICAgICAgICB0eXBlOiAnU1RBUlQnXHJcbiAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgfSlcclxuICAgICAgfSlcclxuXHJcbiAgICAgIHRoaXMubG9hZGluZyA9IGZhbHNlXHJcbiAgICB9KVxyXG5cclxuXHJcbiAgfVxyXG5cclxuICBnZXRDb21wZXRlbmN5Q291cnNlKCkge1xyXG4gICAgY29uc3QgcmVxQm9keSA9IHtcclxuICAgICAgXCJyZXF1ZXN0XCI6IHtcclxuICAgICAgICBcImZpbHRlcnNcIjoge1xyXG4gICAgICAgICAgXCJwcmltYXJ5Q2F0ZWdvcnlcIjogW1xyXG4gICAgICAgICAgICBcIkNvdXJzZVwiXHJcbiAgICAgICAgICBdLFxyXG4gICAgICAgICAgXCJjb250ZW50VHlwZVwiOiBbXHJcbiAgICAgICAgICAgIFwiQ291cnNlXCJcclxuICAgICAgICAgIF0sXHJcbiAgICAgICAgICBcInN0YXR1c1wiOiBbXHJcbiAgICAgICAgICAgIFwiTGl2ZVwiXHJcbiAgICAgICAgICBdLFxyXG4gICAgICAgICAgXCJjb21wZXRlbmN5XCI6IHRydWVcclxuICAgICAgICB9XHJcbiAgICAgIH0sXHJcbiAgICAgIFwic29ydFwiOiBbXHJcbiAgICAgICAge1xyXG4gICAgICAgICAgXCJsYXN0VXBkYXRlZE9uXCI6IFwiZGVzY1wiXHJcbiAgICAgICAgfVxyXG4gICAgICBdXHJcbiAgICB9XHJcbiAgICByZXR1cm4gdGhpcy5zZWxmQXNzZXNzbWVudFNlcnZpY2UuZ2V0Q29tcGV0ZW5jeUNvdXJzZUlkZW50aWZpZXIocmVxQm9keSlcclxuICB9XHJcblxyXG4gIGdldFByb2dyZXNzKGRhdGEpIHtcclxuICAgIGNvbnN0IHJlcWJvZHkgPSB7XHJcbiAgICAgIHJlcXVlc3Q6IHtcclxuICAgICAgICB1c2VySWQ6IHRoaXMuY29uZmlnU2VydmljZS5nZXRDb25maWcoKS5pZCxcclxuICAgICAgICBiYXRjaElkOiBkYXRhLmJhdGNoSWQsXHJcbiAgICAgICAgY291cnNlSWQ6IGRhdGEuY29udGVudElkLFxyXG4gICAgICAgIGNvbnRlbnRJZHM6IFtdLFxyXG4gICAgICAgIGZpZWxkczogWydwcm9ncmVzc2RldGFpbHMnXSxcclxuICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIHJldHVybiB0aGlzLnNlbGZBc3Nlc3NtZW50U2VydmljZS5mZXRjaFByZ3Jlc3NEZXRhaWxzKHJlcWJvZHkpXHJcbiAgfVxyXG5cclxuXHJcbiAgbmF2aWdhdGVCYWNrKCkge1xyXG4gICAgdGhpcy5sb2NhdGlvbi5iYWNrKClcclxuICB9XHJcblxyXG59XHJcbiJdfQ==

@@ -67,6 +67,17 @@ import * as tslib_1 from "tslib";

},
id: designation === 'AWW' ? 95 : 1
id: this.designationMap(designation)
};
return this.activeSummaryService.getActivityById(reqBody);
};
ActiveSummaryComponent.prototype.designationMap = function (designation) {
var positionMap = {
"AWW": 95,
"ANM": 210
};
if (positionMap.hasOwnProperty(designation)) {
return positionMap[designation];
}
else
return 1;
};
ActiveSummaryComponent.prototype.getActivityByRoleId = function (id) {

@@ -135,2 +146,2 @@ var _this = this;

export { ActiveSummaryComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZlLXN1bW1hcnkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFhc3RyaWthX25wbWpzL2NvbXB0ZW5jeS9jb21wZXRlbmN5LyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy9hY3RpdmUtc3VtbWFyeS9hY3RpdmUtc3VtbWFyeS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQXFCLE1BQU0sZUFBZSxDQUFDO0FBQzdELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUMxRCxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSx1Q0FBdUMsQ0FBQztBQUM3RSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDMUMsT0FBTyxFQUFFLFFBQVEsRUFBb0IsTUFBTSxNQUFNLENBQUM7QUFDbEQsT0FBTyxLQUFLLENBQUMsTUFBTSxXQUFXLENBQUM7QUFDL0IsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQ3ZFLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQU05RDtJQWVFLGdDQUNTLG9CQUEwQyxFQUMxQyxhQUE0QixFQUM1QixhQUE0QjtRQUY1Qix5QkFBb0IsR0FBcEIsb0JBQW9CLENBQXNCO1FBQzFDLGtCQUFhLEdBQWIsYUFBYSxDQUFlO1FBQzV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BnZXRFbnRpdHlCeUlkKGlkOiBhbnkpIHtcclxuICAgIGNvbnN0IHJlcUJvZHkgPSB7XHJcbiAgICAgIGZpbHRlcjoge1xyXG4gICAgICAgIFwiaXNEZXRhaWxcIjogdHJ1ZVxyXG4gICAgICB9LFxyXG4gICAgICBpZDogaWRcclxuICAgIH07XHJcbiAgICByZXR1cm4gdGhpcy5hY3RpdmVTdW1tYXJ5U2VydmljZS5nZXRBY3Rpdml0eUJ5SWQocmVxQm9keSlcclxuICB9XHJcbiAgZ2V0QXZlcmFnZXBlcmNlbnRhZ2UoZGF0YSkge1xyXG4gICAgbGV0IHRvdGFsTGVuZ3RoID0gZGF0YS5sZW5ndGhcclxuICAgIGxldCBwZXJjZW50YWdlID0gW11cclxuICAgIGxldCB0b3RhbFBlcmNlbnQgPSAwXHJcbiAgICBfLmZvckVhY2goZGF0YSwgKHZhbHVlOiBhbnkpID0+IHtcclxuICAgICAgcGVyY2VudGFnZS5wdXNoKHZhbHVlLmNvbXBsZXRpb25QZXJjZW50YWdlKVxyXG4gICAgfSlcclxuICAgIHRvdGFsUGVyY2VudCA9IF8ucm91bmQoXy5zdW0ocGVyY2VudGFnZSkgLyB0b3RhbExlbmd0aClcclxuICAgIHJldHVybiB0b3RhbFBlcmNlbnRcclxuICB9XHJcbiAgbmdPbkRlc3Ryb3koKSB7XHJcbiAgICBpZiAodGhpcy51bnN1YnNjcmliZSkge1xyXG4gICAgICB0aGlzLnVuc3Vic2NyaWJlLnVuc3Vic2NyaWJlKClcclxuICAgIH1cclxuXHJcbiAgfVxyXG59XHJcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZlLXN1bW1hcnkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFhc3RyaWthX25wbWpzL2NvbXB0ZW5jeS9jb21wZXRlbmN5LyIsInNvdXJjZXMiOlsiY29tcG9uZW50cy9hY3RpdmUtc3VtbWFyeS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XHJcbiJdfQ==

@@ -36,5 +36,14 @@ import * as tslib_1 from "tslib";

if (res.result.contentList.length > 0 && value.childContent === res.result.contentList.length) {
var type_1 = '';
_.forEach(res.result.contentList, function (item) {
if (item.completionPercentage === 100 && item.completionPercentage !== 0) {
type_1 = 'DONE';
}
else {
type_1 = 'RESUME';
}
});
_this.btnType.push({
courseId: value.contentId,
type: 'DONE'
type: type_1
});

@@ -116,2 +125,2 @@ }

export { SelfAssessmentComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZi1hc3Nlc3NtZW50LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhYXN0cmlrYV9ucG1qcy9jb21wdGVuY3kvIiwic291cmNlcyI6WyJzZWxmLWFzc2Vzc21lbnQvY29tcG9uZW50cy9zZWxmLWFzc2Vzc21lbnQvc2VsZi1hc3Nlc3NtZW50LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUNsRCxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0saUJBQWlCLENBQUE7QUFDMUMsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sdUNBQXVDLENBQUM7QUFDOUUsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLG9DQUFvQyxDQUFDO0FBQ2pFLE9BQU8sRUFBRSxHQUFHLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNyQyxPQUFPLEtBQUssQ0FBQyxNQUFNLFdBQVcsQ0FBQztBQUMvQixPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sd0NBQXdDLENBQUM7QUFPdkU7SUFNRSxpQ0FDVSxRQUFrQixFQUNsQixxQkFBNEMsRUFDN0MsYUFBNEI7UUFGM0IsYUFBUSxHQUFSLFFBQVEsQ0FBVTtRQUNsQiwwQ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tcclxuICAgICAgICAgICAgICAgIHRoaXMuYnRuVHlwZS5wdXNoKHtcclxuICAgICAgICAgICAgICAgICAgY291cnNlSWQ6IHZhbHVlLmNvbnRlbnRJZCxcclxuICAgICAgICAgICAgICAgICAgdHlwZTogJ0RPTkUnXHJcbiAgICAgICAgICAgICAgICB9KVxyXG4gICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICBjb25zb2xlLmxvZygnZWxzZScpO1xyXG4gICAgICAgICAgICAgICAgdGhpcy5idG5UeXBlLnB1c2goe1xyXG4gICAgICAgICAgICAgICAgICBjb3Vyc2VJZDogdmFsdWUuY29udGVudElkLFxyXG4gICAgICAgICAgICAgICAgICB0eXBlOiAnUkVTVU1FJ1xyXG4gICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgIH0gXHJcbiAgICAgICAgICBcclxuICAgICAgICAgIGlmKHJlcy5yZXN1bHQuY29udGVudExpc3QubGVuZ3RoID09IDAgKSB7XHJcbiAgICAgICAgICAgIHRoaXMuYnRuVHlwZS5wdXNoKHtcclxuICAgICAgICAgICAgICBjb3Vyc2VJZDogdmFsdWUuY29udGVudElkLFxyXG4gICAgICAgICAgICAgIHR5cGU6ICdTVEFSVCdcclxuICAgICAgICAgICAgfSlcclxuICAgICAgICAgIH1cclxuICAgICAgICB9KVxyXG4gICAgICB9KVxyXG5cclxuICAgICAgdGhpcy5sb2FkaW5nID0gZmFsc2VcclxuICAgIH0pXHJcblxyXG5cclxuICB9XHJcblxyXG4gIGdldENvbXBldGVuY3lDb3Vyc2UoKSB7XHJcbiAgICBjb25zdCByZXFCb2R5ID0ge1xyXG4gICAgICBcInJlcXVlc3RcIjoge1xyXG4gICAgICAgIFwiZmlsdGVyc1wiOiB7XHJcbiAgICAgICAgICBcInByaW1hcnlDYXRlZ29yeVwiOiBbXHJcbiAgICAgICAgICAgIFwiQ291cnNlXCJcclxuICAgICAgICAgIF0sXHJcbiAgICAgICAgICBcImNvbnRlbnRUeXBlXCI6IFtcclxuICAgICAgICAgICAgXCJDb3Vyc2VcIlxyXG4gICAgICAgICAgXSxcclxuICAgICAgICAgIFwic3RhdHVzXCI6IFtcclxuICAgICAgICAgICAgXCJMaXZlXCJcclxuICAgICAgICAgIF0sXHJcbiAgICAgICAgICBcImNvbXBldGVuY3lcIjogdHJ1ZVxyXG4gICAgICAgIH1cclxuICAgICAgfSxcclxuICAgICAgXCJzb3J0XCI6IFtcclxuICAgICAgICB7XHJcbiAgICAgICAgICBcImxhc3RVcGRhdGVkT25cIjogXCJkZXNjXCJcclxuICAgICAgICB9XHJcbiAgICAgIF1cclxuICAgIH1cclxuICAgIHJldHVybiB0aGlzLnNlbGZBc3Nlc3NtZW50U2VydmljZS5nZXRDb21wZXRlbmN5Q291cnNlSWRlbnRpZmllcihyZXFCb2R5KVxyXG4gIH1cclxuXHJcbiAgZ2V0UHJvZ3Jlc3MoZGF0YSkge1xyXG4gICAgY29uc3QgcmVxYm9keSA9IHtcclxuICAgICAgcmVxdWVzdDoge1xyXG4gICAgICAgIHVzZXJJZDogdGhpcy5jb25maWdTZXJ2aWNlLmdldENvbmZpZygpLmlkLFxyXG4gICAgICAgIGJhdGNoSWQ6IGRhdGEuYmF0Y2hJZCxcclxuICAgICAgICBjb3Vyc2VJZDogZGF0YS5jb250ZW50SWQsXHJcbiAgICAgICAgY29udGVudElkczogW10sXHJcbiAgICAgICAgZmllbGRzOiBbJ3Byb2dyZXNzZGV0YWlscyddLFxyXG4gICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgcmV0dXJuIHRoaXMuc2VsZkFzc2Vzc21lbnRTZXJ2aWNlLmZldGNoUHJncmVzc0RldGFpbHMocmVxYm9keSlcclxuICB9XHJcblxyXG5cclxuICBuYXZpZ2F0ZUJhY2soKSB7XHJcbiAgICB0aGlzLmxvY2F0aW9uLmJhY2soKVxyXG4gIH1cclxuXHJcbn1cclxuIl19
//# sourceMapping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TGlzdC5sZW5ndGggPiAwICYmIHZhbHVlLmNoaWxkQ29udGVudCA9PT0gcmVzLnJlc3VsdC5jb250ZW50TGlzdC5sZW5ndGgpIHtcclxuICAgICAgICAgICAgICAgIGxldCB0eXBlID0gJydcclxuICAgICAgICAgICAgICAgIF8uZm9yRWFjaChyZXMucmVzdWx0LmNvbnRlbnRMaXN0LCAoaXRlbTphbnkpPT57XHJcbiAgICAgICAgICAgICAgICAgIGlmKGl0ZW0uY29tcGxldGlvblBlcmNlbnRhZ2UgPT09IDEwMCAmJiBpdGVtLmNvbXBsZXRpb25QZXJjZW50YWdlICE9PSAwICl7XHJcbiAgICAgICAgICAgICAgICAgICAgdHlwZSA9ICdET05FJ1xyXG4gICAgICAgICAgICAgICAgICB9ZWxzZXtcclxuICAgICAgICAgICAgICAgICAgICB0eXBlID0gJ1JFU1VNRSdcclxuICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICAgIHRoaXMuYnRuVHlwZS5wdXNoKHtcclxuICAgICAgICAgICAgICAgICAgY291cnNlSWQ6IHZhbHVlLmNvbnRlbnRJZCxcclxuICAgICAgICAgICAgICAgICAgdHlwZVxyXG4gICAgICAgICAgICAgICAgfSlcclxuICAgICAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgY29uc29sZS5sb2coJ2Vsc2UnKTtcclxuICAgICAgICAgICAgICAgIHRoaXMuYnRuVHlwZS5wdXNoKHtcclxuICAgICAgICAgICAgICAgICAgY291cnNlSWQ6IHZhbHVlLmNvbnRlbnRJZCxcclxuICAgICAgICAgICAgICAgICAgdHlwZTogJ1JFU1VNRSdcclxuICAgICAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICB9IFxyXG4gICAgICAgICAgXHJcbiAgICAgICAgICBpZihyZXMucmVzdWx0LmNvbnRlbnRMaXN0Lmxlbmd0aCA9PSAwICkge1xyXG4gICAgICAgICAgICB0aGlzLmJ0blR5cGUucHVzaCh7XHJcbiAgICAgICAgICAgICAgY291cnNlSWQ6IHZhbHVlLmNvbnRlbnRJZCxcclxuICAgICAgICAgICAgICB0eXBlOiAnU1RBUlQnXHJcbiAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgfSlcclxuICAgICAgfSlcclxuXHJcbiAgICAgIHRoaXMubG9hZGluZyA9IGZhbHNlXHJcbiAgICB9KVxyXG5cclxuXHJcbiAgfVxyXG5cclxuICBnZXRDb21wZXRlbmN5Q291cnNlKCkge1xyXG4gICAgY29uc3QgcmVxQm9keSA9IHtcclxuICAgICAgXCJyZXF1ZXN0XCI6IHtcclxuICAgICAgICBcImZpbHRlcnNcIjoge1xyXG4gICAgICAgICAgXCJwcmltYXJ5Q2F0ZWdvcnlcIjogW1xyXG4gICAgICAgICAgICBcIkNvdXJzZVwiXHJcbiAgICAgICAgICBdLFxyXG4gICAgICAgICAgXCJjb250ZW50VHlwZVwiOiBbXHJcbiAgICAgICAgICAgIFwiQ291cnNlXCJcclxuICAgICAgICAgIF0sXHJcbiAgICAgICAgICBcInN0YXR1c1wiOiBbXHJcbiAgICAgICAgICAgIFwiTGl2ZVwiXHJcbiAgICAgICAgICBdLFxyXG4gICAgICAgICAgXCJjb21wZXRlbmN5XCI6IHRydWVcclxuICAgICAgICB9XHJcbiAgICAgIH0sXHJcbiAgICAgIFwic29ydFwiOiBbXHJcbiAgICAgICAge1xyXG4gICAgICAgICAgXCJsYXN0VXBkYXRlZE9uXCI6IFwiZGVzY1wiXHJcbiAgICAgICAgfVxyXG4gICAgICBdXHJcbiAgICB9XHJcbiAgICByZXR1cm4gdGhpcy5zZWxmQXNzZXNzbWVudFNlcnZpY2UuZ2V0Q29tcGV0ZW5jeUNvdXJzZUlkZW50aWZpZXIocmVxQm9keSlcclxuICB9XHJcblxyXG4gIGdldFByb2dyZXNzKGRhdGEpIHtcclxuICAgIGNvbnN0IHJlcWJvZHkgPSB7XHJcbiAgICAgIHJlcXVlc3Q6IHtcclxuICAgICAgICB1c2VySWQ6IHRoaXMuY29uZmlnU2VydmljZS5nZXRDb25maWcoKS5pZCxcclxuICAgICAgICBiYXRjaElkOiBkYXRhLmJhdGNoSWQsXHJcbiAgICAgICAgY291cnNlSWQ6IGRhdGEuY29udGVudElkLFxyXG4gICAgICAgIGNvbnRlbnRJZHM6IFtdLFxyXG4gICAgICAgIGZpZWxkczogWydwcm9ncmVzc2RldGFpbHMnXSxcclxuICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIHJldHVybiB0aGlzLnNlbGZBc3Nlc3NtZW50U2VydmljZS5mZXRjaFByZ3Jlc3NEZXRhaWxzKHJlcWJvZHkpXHJcbiAgfVxyXG5cclxuXHJcbiAgbmF2aWdhdGVCYWNrKCkge1xyXG4gICAgdGhpcy5sb2NhdGlvbi5iYWNrKClcclxuICB9XHJcblxyXG59XHJcbiJdfQ==

@@ -584,6 +584,17 @@ import { __decorate } from 'tslib';

},
id: designation === 'AWW' ? 95 : 1
id: this.designationMap(designation)
};
return this.activeSummaryService.getActivityById(reqBody);
}
designationMap(designation) {
const positionMap = {
"AWW": 95,
"ANM": 210
};
if (positionMap.hasOwnProperty(designation)) {
return positionMap[designation];
}
else
return 1;
}
getActivityByRoleId(id) {

@@ -590,0 +601,0 @@ // this.panelOpenState = true

@@ -174,5 +174,14 @@ import { __decorate } from 'tslib';

if (res.result.contentList.length > 0 && value.childContent === res.result.contentList.length) {
let type = '';
forEach(res.result.contentList, (item) => {
if (item.completionPercentage === 100 && item.completionPercentage !== 0) {
type = 'DONE';
}
else {
type = 'RESUME';
}
});
this.btnType.push({
courseId: value.contentId,
type: 'DONE'
type
});

@@ -179,0 +188,0 @@ }

@@ -600,6 +600,17 @@ import { __extends, __decorate, __spread } from 'tslib';

},
id: designation === 'AWW' ? 95 : 1
id: this.designationMap(designation)
};
return this.activeSummaryService.getActivityById(reqBody);
};
ActiveSummaryComponent.prototype.designationMap = function (designation) {
var positionMap = {
"AWW": 95,
"ANM": 210
};
if (positionMap.hasOwnProperty(designation)) {
return positionMap[designation];
}
else
return 1;
};
ActiveSummaryComponent.prototype.getActivityByRoleId = function (id) {

@@ -606,0 +617,0 @@ var _this = this;

@@ -181,5 +181,14 @@ import { __decorate, __extends } from 'tslib';

if (res.result.contentList.length > 0 && value.childContent === res.result.contentList.length) {
var type_1 = '';
forEach(res.result.contentList, function (item) {
if (item.completionPercentage === 100 && item.completionPercentage !== 0) {
type_1 = 'DONE';
}
else {
type_1 = 'RESUME';
}
});
_this.btnType.push({
courseId: value.contentId,
type: 'DONE'
type: type_1
});

@@ -186,0 +195,0 @@ }

{
"name": "@aastrika_npmjs/comptency",
"version": "0.0.23",
"version": "0.0.24",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc