1"use strict";(self.webpackChunkiko=self.webpackChunkiko||[]).push([[3536],{45956:(E,u,i)=>{i.d(u,{U:()=>k});var c=i(54844),h=i(61616),g=i(34896),f=i(93072),v=i(16556),t=i(47392);let k=(()=>{class o{constructor(l,r,m){this.navDataService=l,this.skillsService=r,this.localStorageService=m,this.currentSkill$=new c.g(null),this.startLoading$=new h.E,this.hasError$=new c.g(!1),this.currentSkillPage={},this.keyStorage="skillCurrentPage",this.currentSkillPage=JSON.parse(this.localStorageService.getItem(this.keyStorage))??{}}resolve(l){return this.currentRoute=l,this.getSkill(),!0}getSkill(){if(this.hasError$.next(!1),this.startLoading$.next(),this.currentSkill$.next(null),!this.currentRoute?.params.skillId)return this.navDataService.storage?(this.currentSkill$.next(this.navDataService.storage),void delete this.navDataService.storage):void this.hasError$.next(!0);this.getSkillFromService(this.currentRoute?.params.skillId)}setCurrentPage(l,r){this.currentSkillPage[l]=r,this.localStorageService.setItem(this.keyStorage,JSON.stringify(this.currentSkillPage))}getCurrentPage(l){return this.currentSkillPage[l]??0}getSkillFromService(l){this.skillsService.getSkill(l).subscribe({next:r=>this.currentSkill$.next(r),error:()=>this.hasError$.next(!0)})}static{this.\u0275fac=function(r){return new(r||o)(g.CoB(f.G0),g.CoB(v.g),g.CoB(t.s))}}static{this.\u0275prov=g.wxM({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})()},73536:(E,u,i)=>{i.r(u),i.d(u,{SkillsModule:()=>K});var c=i(65056),h=i(24424),g=i(42108),f=i(33464),v=i(45956),t=i(34896),k=i(36248),o=i(93072),y=i(16556),l=i(13492),r=i(72584),m=i(80592),S=i(10148),I=i(14260),O=i(70284);function x(e,d){if(1&e&&(t.I0R(0,"span"),t.OEk(1),t.C$Y()),2&e){const n=t.GaO();t.yG2(),t.cNF(n.selectedQualification)}}function D(e,d){1&e&&(t.I0R(0,"span",15),t.OEk(1,"Choose Level"),t.C$Y())}function M(e,d){if(1&e){const n=t.KQA();t.I0R(0,"a",16),t.qCj("click",function(){const p=t.usT(n).$implicit,C=t.GaO();return t.CGJ(C.filterChanged(p))}),t.I0R(1,"span"),t.OEk(2),t.C$Y()()}if(2&e){const n=d.$implicit;t.yG2(2),t.cNF(n)}}function P(e,d){1&e&&(t.I0R(0,"div",20),t.wR5(1,"div",21),t.C$Y())}const R=()=>[1,2,3,4,5,6];function G(e,d){1&e&&(t.I0R(0,"div",17)(1,"div",18),t.yuY(2,P,2,0,"div",19),t.C$Y()()),2&e&&(t.yG2(2),t.E7m("ngForOf",t.q4q(1,R)))}function T(e,d){if(1&e){const n=t.KQA();t.I0R(0,"error-content",22),t.qCj("reloadClick",function(){t.usT(n);const a=t.GaO();return t.CGJ(a.getSkills())}),t.C$Y()}}const $=e=>["/elearning","gallery","skills",e];function L(e,d){if(1&e&&(t.I0R(0,"div",27),t.wVc(1,"localize"),t.I0R(2,"div",28),t.wR5(3,"image-srcset",29),t.I0R(4,"div",30)(5,"div",31)(6,"div",32),t.wR5(7,"i",33),t.C$Y()()(),t.I0R(8,"div",34)(9,"div",35)(10,"div",36)(11,"h3"),t.OEk(12),t.wVc(13,"uppercase"),t.C$Y()()()()()()),2&e){const n=d.$implicit,s=t.GaO(2);t.E7m("routerLink",t.kDX(1,6,t.S45(10,$,n.nid))),t.yG2(3),t.E7m("width",525)("height",295)("item",n.field_skill_cover),t.yG2(2),t.E7m("ngClass",s.customService.getQualificationsCardColor(n.field_skill_qualification)),t.yG2(7),t.cNF(t.kDX(13,8,n.title))}}function F(e,d){if(1&e&&(t.I0R(0,"div",23)(1,"div",24)(2,"label",25),t.OEk(3),t.C$Y(),t.I0R(4,"div"),t.yuY(5,L,14,12,"div",26),t.C$Y()()()),2&e){const n=d.$implicit;t.yG2(2),t.e48("id","level_"+(null==n.value?null:n.value[0].field_skill_qualification.id)),t.yG2(),t.cNF(n.key),t.yG2(2),t.E7m("ngForOf",n.value)}}const _=()=>["field_skill_qualification","title"],Y=[{path:"",component:(()=>{class e{constructor(n,s,a,p,C){this.customService=n,this.skillServices=s,this.i18nService=a,this.navDataService=p,this.route=C,this.qualifications=[],this.inLoading=!0,this.hasError=!1,this.trackingService=(0,t.uUt)(k.y)}ngOnInit(){this.trackingService.trackEvent({event:"skills",dl_name:"skills_title",dl_value:"Skills"}),this.navDataService.setPageTitle({title:"Skills"}),this.language=this.i18nService.language,this.getSkills()}ngAfterContentChecked(){this.groupedCollection=this.navDataService.storage}getSkills(){this.skills||(this.inLoading=!0,this.hasError=!1,this.skillServices.getSkills().subscribe({next:n=>{n.length>
10&&(this.skills=n,this.skills.forEach(s=>{-1===this.qualifications.indexOf(s.field_skill_qualification.title)&&this.qualifications.push(s.field_skill_qualification.title)}),this.inLoading=!1),setTimeout(()=>this.scrollToAnchor(),600)},error:()=>{this.inLoading=!1,this.hasError=!0}}))}filterChanged(n){this.selectedQualification=n,this.skills=this.groupedCollection?.filter(s=>s.key===n)}openSkill(n){this.navDataService.storage=n,this.navDataService.navigate("/elearning/gallery/skills/skill")}scrollToAnchor(){this.route.snapshot.fragment&&document.getElementById(this.route.snapshot.fragment)?.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}static{this.\u0275fac=function(s){return new(s||e)(t.GI1(o.kP),t.GI1(y.g),t.GI1(o.WY),t.GI1(o.G0),t.GI1(h.gV))}}static{this.\u0275cmp=t.In1({type:e,selectors:[["app-skills"]],decls:16,vars:10,consts:[[1,"container-fluid","overflow-scroll","d-flex","flex-column","p-0"],[1,"bg-primary","p-3"],["ngbDropdown","",1,"dropdown","dropdown-icon-right"],["ngbDropdownToggle","",1,"btn","btn-simple","d-flex","align-items-center","btn-block","btn-round","dropdown-toggle","m-0","text-start","border-light-gray","bg-white"],[1,"flex-fill"],[1,"me-2"],[1,"text-info","icon","icon-16","icon-medal","align-self-center"],[4,"ngIf"],["translate","",4,"ngIf"],["ngbDropdownMenu",""],["class","dropdown-item",3,"click",4,"ngFor","ngForOf"],[1,"py-3","overflow-scroll","flex-grow-1"],["class","row justify-content-center my-2",4,"ngIf"],[3,"reloadClick",4,"ngIf"],["class","row justify-content-center",4,"ngFor","ngForOf"],["translate",""],[1,"dropdown-item",3,"click"],[1,"row","justify-content-center","my-2"],[1,"col-md-6"],["class","col-12",4,"ngFor","ngForOf"],[1,"col-12"],[1,"card","p-1","rounded-1","h-card","loading","shadow-none"],[3,"reloadClick"],[1,"row","justify-content-center"],[1,"col-md-6","big"],[1,"ps-3"],["class","mb-4 px-3 text-white col-12 card-skill",3,"routerLink",4,"ngFor","ngForOf"],[1,"mb-4","px-3","text-white","col-12","card-skill",3,"routerLink"],[1,"position-relative"],["imgClass","rounded-1",3,"width","height","item"],[1,"lr-0","position-absolute","bottom-0","top-0","d-flex"],[1,"card","m-0","w-100","card-skill","card-transparent","rounded-1",3,"ngClass"],[1,"position-absolute","opacity-7","d-table","h-100","col-12","d-flex","justify-content-end","align-items-center"],[1,"icon","d-table-cell","align-middle","icon-angle-right","icon-100"],[1,"position-absolute","bottom-0"],[1,"justify-content-center","mt-auto"],[1,"col-12","ps-4"]],template:function(s,a){1&s&&(t.I0R(0,"div",0)(1,"div",1)(2,"div",2)(3,"button",3)(4,"div",4)(5,"span",5),t.wR5(6,"i",6),t.C$Y(),t.yuY(7,x,2,1,"span",7)(8,D,2,0,"span",8),t.C$Y()(),t.I0R(9,"div",9),t.yuY(10,M,3,1,"a",10),t.C$Y()()(),t.I0R(11,"div",11),t.yuY(12,G,3,2,"div",12)(13,T,1,0,"error-content",13)(14,F,6,3,"div",14),t.wVc(15,"groupBy"),t.C$Y()()),2&s&&(t.yG2(7),t.E7m("ngIf",a.selectedQualification),t.yG2(),t.E7m("ngIf",!a.selectedQualification),t.yG2(2),t.E7m("ngForOf",a.qualifications),t.yG2(2),t.E7m("ngIf",a.inLoading),t.yG2(),t.E7m("ngIf",!a.inLoading&&a.hasError),t.yG2(),t.E7m("ngForOf",a.selectedQualification?a.skills:t.g7$(15,6,a.skills,t.q4q(9,_))))},dependencies:[c.QF,c.ay,c.u_,h.ER,l.S8,l.qs,l.KA,r.eM,m.J,S.s,I.A,c.yG,f.Mr,O.a],styles:[".card-skill[_ngcontent-%COMP%]{min-height:180px}h3[_ngcontent-%COMP%]{font-size:1.5em}"]})}}return e})(),data:{title:(0,g.A)("Skills"),contentComponent:"skills",discriminantPathKey:"SKILLS"}},{path:"skill",loadChildren:()=>i.e(5372).then(i.bind(i,15372)).then(e=>e.SkillModule),resolve:{data:v.U}},{path:":skillId",loadChildren:()=>i.e(5372).then(i.bind(i,15372)).then(e=>e.SkillModule),resolve:{data:v.U}}];let A=(()=>{class e{static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275mod=t.a4G({type:e})}static{this.\u0275inj=t.s3X({imports:[h.qQ.forChild(Y),h.qQ,f.Yv]})}}return e})();var B=i(10716),j=i(37960);let K=(()=>{class e{static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275mod=t.a4G({type:e})}static{this.\u0275inj=t.s3X({imports:[c.MD,A,B.kT,l.c7,j.y]})}}return e})()},16556:(E,u,i)=>{i.d(u,{g:()=>k});var c=i(1296),h=i(78600),g=i(40604),f=i(39732),v=i(34896),t=i(5892);let k=(()=>{class o{constructor(l){this.viewService=l}getSkills(){return this.skills?(0,c.of)(this.skills):this.viewService.get("/api/v1/skills.json").pipe((0,h.y)(l=>this.skills=l))}
1getSkill(l){return this.getSkills().pipe((0,g.k)(r=>{const m=r.findIndex(S=>S.nid===l);return-1===m&&(0,f.c)(()=>new Error("Skill not found")),r[m]}))}static{this.\u0275fac=function(r){return new(r||o)(v.CoB(t._M))}}static{this.\u0275prov=v.wxM({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})()}}]); 2//# sourceMappingURL=3536.a1436c9a2b2b6890.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.