1"use strict";(self.webpackChunkangular_io_example=self.webpackChunkangular_io_example||[]).push([[9473],{89473:(Tm,Tt,l)=>{l.r(Tt),l.d(Tt,{StudentModule:()=>Em});var Zt=l(86571),It=l(13863),Kt=l(62593),te=l(3703),ee=l(81221),St=l(48836),E=l(11624),ne=l(306),oe=l(66797),_t=l(56547),kt=l(27243),ae=l(80792),k=l(51360),se=l(26611),rt=l(95062),Rt=l(39593),t=l(68559),f=l(34456),h=l(48503),tt=l(54285),y=l(84205),v=l(33900),w=l(61318),F=l(59452),W=l(1365),N=l(36647),x=l(70271),ie=l(92248),Y=l(23657),re=l(61620),j=l(75433),X=l(44231),b=l(84175),ct=l(95541),V=l(24950),ce=l(69940),le=l(89323),Ft=l(4419),d=l(60316);const me=e=>({courseName:e}),pe=e=>({left:e}),de=e=>({min:e}),ue=e=>({max:e});function _e(e,s){if(1&e&&t.nrm(0,"app-student-ai-teacher-openwebui",5),2&e){const n=t.XpG();t.Y8G("courseCode",n.courseCode())}}function ge(e,s){1&e&&(t.j41(0,"div",6)(1,"div",7),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&e&&(t.R7$(2),t.JRh(t.bMT(3,1,"ai.guidanceEnded")))}function fe(e,s){if(1&e&&(t.j41(0,"div",11)(1,"span"),t.EFF(2),t.nI1(3,"async"),t.nI1(4,"translate"),t.k0s()()),2&e){const n=t.XpG(3);t.R7$(2),t.SpI(" ",t.i5U(4,3,"ai.amountOfQuestionsLeft",t.eq3(6,pe,t.bMT(3,1,n.questionsLeft)))," ")}}function he(e,s){1&e&&(t.j41(0,"mat-error"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"formValidation.required")))}function ve(e,s){if(1&e&&(t.j41(0,"mat-error"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e){const n=t.XpG(4);t.R7$(),t.SpI(" ",t.i5U(2,1,"formValidation.tooShort",t.eq3(4,de,n.minlength))," ")}}function xe(e,s){if(1&e&&(t.j41(0,"mat-error"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e){const n=t.XpG(4);t.R7$(),t.SpI(" ",t.i5U(2,1,"formValidation.tooLong",t.eq3(4,ue,n.maxlength))," ")}}function Ce(e,s){if(1&e&&t.DNE(0,he,3,3,"mat-error")(1,ve,3,6,"mat-error")(2,xe,3,6,"mat-error"),2&e){const n=t.XpG(3);t.vxM(null!=n.question.errors&&n.question.errors.required?0:null!=n.question.errors&&n.question.errors.minlength?1:null!=n.question.errors&&n.question.errors.maxlength?2:-1)}}function be(e,s){1&e&&t.nrm(0,"app-inner-loader",16),2&e&&t.Y8G("inline",!0)}function Ee(e,s){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"send")))}function Te(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",8)(1,"h4",9),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",10)(5,"span"),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.DNE(8,fe,5,8,"div",11),t.k0s()(),t.j41(9,"div",6)(10,"form",12,0),t.bIt("submit",function(){t.eBV(n);const o=t.sdS(11),i=t.XpG(2);return t.Njj(i.handleSubmit(o))}),t.j41(12,"mat-form-field",13)(13,"mat-label"),t.EFF(14),t.nI1(15,"translate"),t.k0s(),t.nrm(16,"textarea",14),t.DNE(17,Ce,3,1),t.k0s(),t.j41(18,"button",15),t.DNE(19,be,1,1,"app-inner-loader",16)(20,Ee,3,3,"span"),t.k0s()()(),t.j41(21,"div",17)(22,"h4",9),t.EFF(23),t.nI1(24,"translate"),t.k0s(),t.j41(25,"app-assignment-check-answer",2)(26,"div")(27,"mat-form-field",18),t.nrm(28,"textarea",19),t.k0s()()()()}if(2&e){const n=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,12,"ai.yourQuestion")),t.R7$(4),t.JRh(t.i5U(7,14,"ai.askAboutCourse",t.eq3(21,me,(null==n.courseData?null:n.courseData.courseName)||""))),t.R7$(2),t.vxM(n.isLoading?-1:8),t.R7$(2),t.Y8G("formGroup",n.aiForm),t.R7$(4),t.JRh(t.bMT(15,17,"ai.askYourQuestion")),t.R7$(2),t.Y8G("maxlength",n.maxlength)("minlength",n.minlength),t.R7$(),t.vxM(n.question.invalid&&(n.question.dirty||n.question.touched)?17:-1),t.R7$(),t.Y8G("disabled",n.isSubmitting||n.aiForm.invalid||n.question.disabled),t.R7$(),t.vxM(n.isSubmitting?19:20),t.R7$(4),t.JRh(t.bMT(24,19,"teacherExamAnswer")),t.R7$(5),t.Y8G("value",n.aiAnswer)}}function Ie(e,s){if(1&e&&t.DNE(0,ge,4,3,"div",6)(1,Te,29,23),2&e){const n=t.XpG();t.vxM(n.canUseAI?1:0)}}let Se=(()=>{var e;class s{constructor(){this.ecampusService=(0,t.WQX)(j.u),this.formBuilder=(0,t.WQX)(f.ok),this.aiService=(0,t.WQX)(ie.U),this.loaderService=(0,t.WQX)(Y.Z),this.toastrService=(0,t.WQX)(tt.tw),this.translateService=(0,t.WQX)(h.c$),this.messageService=(0,t.WQX)(re.b),this.route=(0,t.WQX)(E.nX),this.aiAnswer="",this.isSubmitting=!1,this.isLoading=!0,this.canUseAI=!0,this.questionsLeft=this.aiService.getQuestionsLeft(),this.aiForm=this.formBuilder.group({question:["",f.k0.required]}),this.useOpenWebUI=(0,t.vPA)(!1),this.courseCode=(0,t.vPA)(""),this.destroy$=new y.B}ngOnInit(){this.route.params.pipe((0,v.Q)(this.destroy$)).subscribe(a=>{this.initialiseComponent()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}get question(){return this.aiForm.controls.question}
1handleSubmit(a){if(this.isSubmitting=!0,this.aiForm.invalid||!this.hasRemainingQuestions||!this.canUseAI)return void(this.isSubmitting=!1);const{value:o}=this.question;this.aiService.askQuestion(this.courseData.courseCode,o.trim()).pipe((0,w.W)(i=>(0,F.of)(null)),(0,v.Q)(this.destroy$)).subscribe(i=>{var r;if(null==i||null===(r=i.data)||void 0===r||!r.answer)return this.handleResponseError();const{answer:c}=i.data;this.aiAnswer=c||this.translateService.instant("ai.noAnswer"),this.aiForm.reset(),a.resetForm(),this.aiService.incrementQuestions(),this.isSubmitting=!1})}handleResponseError(){const a=this.translateService.instant("somethingWentWrongTryAgain");this.toastrService.error(a),this.isSubmitting=!1}initialiseComponent(){this.loaderService.setIsLoading(!0);const{minlength:a,maxlength:o}=this.aiService.getFormConfig();this.minlength=a,this.maxlength=o,this.aiService.hasSavedState()&&this.aiService.getStateFromLs(),this.ecampusService.getCurrentCourse().pipe((0,W.Z)(i=>(this.loaderService.setIsLoading(!0),this.hasRemainingQuestions=!1,this.isLoading=!0,this.useOpenWebUI.set(!1),this.courseCode.set(""),this.aiService.isAiTeacherEnabled(i.courseCode).pipe((0,N.n)(r=>r?(this.useOpenWebUI.set(!0),this.courseCode.set(i.courseCode),(0,F.of)({course:i,hasRemainingQuestions:null,canContactTeacher:null})):this.messageService.getPossibleRecipients().pipe((0,x.T)(c=>{var m;return null==c||null===(m=c.body)||void 0===m?void 0:m.data}),(0,N.n)((c=[])=>{const m=c.some(u=>+u.courseId==+i.id&&+u.recipientId==+i.teacher.id);return this.aiService.canAskQuestions().pipe((0,x.T)(u=>({course:i,canContactTeacher:m,hasRemainingQuestions:u})))})))))),(0,v.Q)(this.destroy$)).subscribe(({course:i,hasRemainingQuestions:r,canContactTeacher:c})=>{this.courseData=i,this.loaderService.setIsLoading(!1),this.isLoading=!1,this.hasRemainingQuestions=r,this.canUseAI=c,r&&c?this.question.enable():this.question.disable()})}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-ai-teacher"]],decls:8,vars:6,consts:[["aiFormDirective","ngForm"],["appBgColor","",1,"row","py-3","mb-3","mt-2"],[1,"col-12","col-md-6"],[1,"mb-0","text-white"],[1,"row","mb-5"],["id","openwebui-container",3,"courseCode"],[1,"col-12"],["role","alert",1,"alert","alert-primary"],[1,"col-12","mb-2"],[1,"ecampus-title","mb-3"],[1,"info-container"],[1,"badge","badge-pill","custom-pill"],[3,"submit","formGroup"],["appearance","outline",1,"mb-2"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","formControlName","question",3,"maxlength","minlength"],["type","submit","color","accent","mat-raised-button","",3,"disabled"],[3,"inline"],[1,"col-12","mb-5","mt-5"],["appearance","outline","id","student-ai-teacher-answer"],["matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","1","disabled","true",3,"value"]],template:function(a,o){1&a&&(t.j41(0,"div",1)(1,"div",2)(2,"h5",3),t.EFF(3),t.nI1(4,"translate"),t.k0s()()(),t.j41(5,"div",4),t.DNE(6,_e,1,1,"app-student-ai-teacher-openwebui",5)(7,Ie,2,1),t.k0s()),2&a&&(t.R7$(3),t.SpI(" ",t.bMT(4,4,"ai.askYourAiTeacher")," "),t.R7$(2),t.AVh("openwebui-minheight",o.useOpenWebUI()),t.R7$(),t.vxM(o.useOpenWebUI()?6:7))},dependencies:[f.qT,f.me,f.BC,f.cb,f.xh,f.tU,f.j4,f.JD,X.k,b.$z,ct.fg,V.rl,V.nJ,V.TL,ce.xb,le.z,Ft.H,It.P,d.Jj,h.D9],styles:["#student-ai-teacher-answer .mdc-text-field--disabled .mdc-notched-outline__leading, #student-ai-teacher-answer .mdc-text-field--disabled .mdc-notched-outline__notch, #student-ai-teacher-answer .mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--color-black-transparency-6)} #student-ai-teacher-answer .mdc-text-field--disabled .mdc-text-field__input{color:var(--color-text)} #student-ai-teacher-answer textarea{pointer-events:all!important}.info-container[_ngcontent-%COMP%]{width:var(--size-100-percent);display:flex;flex-direction:column;justify-content:flex-start}.info-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-bottom:var(--space-5px)}.badge-pill[_ngcontent-%COMP%]{background-color:var(--color-main)}.custom-pill[_ngcontent-%COMP%]{line-height:var(--font-size-200);color:var(--color-tint-1);align-self:flex-start;margin-bottom:var(--space-5px)}#openwebui-container[_ngcontent-%COMP%]{width:100%;height:100%}.openwebui-minheight[_ngcontent-%COMP%]{min-height:650px}@media (min-width: 992px){.info-container[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between}.info-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-bottom:var(--space-0)}.custom-pill[_ngcontent-%COMP%]{align-self:flex-end;margin-bottom:var(--space-0)}}\n\n/*# sourceMappingURL=student-ai-teacher.component.css.map*/"]}),s})();
1var C=l(90954),Mt=l(51903),ke=l(77919),Re=l(98764),et=l(40982),Fe=l(78603),Me=l(10401),D=l(53777),lt=l(18250);const $e=e=>[e],$t=e=>({value:e}),ye=(e,s)=>({left:e,right:s}),De=e=>({amount:e});function je(e,s){if(1&e&&(t.j41(0,"span",3)(1,"strong"),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"translate"),t.k0s(),t.EFF(5),t.nI1(6,"translate"),t.k0s()),2&e){const n=t.XpG();t.R7$(2),t.Lme("",t.bMT(3,3,"score"),"",t.bMT(4,5,"typography.colon"),""),t.R7$(3),t.SpI(" ",t.i5U(6,7,"typography.percent",t.eq3(10,$t,null==n.solving?null:n.solving.evaluation))," ")}}function we(e,s){if(1&e&&(t.j41(0,"div",4),t.nrm(1,"app-assignment-evaluation",7),t.k0s()),2&e){const n=s.$implicit,a=s.$index,o=t.XpG(2);t.R7$(),t.Y8G("type",o.assignmentType)("question",n)("questionIndex",a+1)("showResult",!0)}}function Oe(e,s){if(1&e&&(t.j41(0,"p")(1,"strong"),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"translate"),t.k0s(),t.EFF(5),t.k0s()),2&e){const n=t.XpG(2);t.R7$(2),t.Lme("",t.bMT(3,3,"feedback"),"",t.bMT(4,5,"typography.colon"),""),t.R7$(3),t.SpI(" ",null==n.solving?null:n.solving.comment," ")}}function Pe(e,s){if(1&e&&(t.j41(0,"a",14),t.EFF(1),t.k0s()),2&e){const n=s.$implicit;t.FS9("href",n.path,t.B4B),t.R7$(),t.JRh(n.name)}}function Ge(e,s){if(1&e&&(t.j41(0,"div",12)(1,"p")(2,"strong"),t.EFF(3),t.nI1(4,"translate"),t.nI1(5,"i18nSelector"),t.nI1(6,"translate"),t.nI1(7,"lowercase"),t.nI1(8,"translate"),t.k0s()(),t.j41(9,"div",13),t.Z7z(10,Pe,2,2,"a",14,t.Vm6),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(3),t.E5c("",t.bMT(4,3,"feedback")," ",t.bMT(7,10,t.bMT(6,8,t.i5U(5,5,"file",t.eq3(14,De,null==n.solving?null:n.solving.attachments)))),"",t.bMT(8,12,"typography.colon"),""),t.R7$(7),t.Dyx(null==n.solving?null:n.solving.attachments)}}function Ne(e,s){1&e&&(t.j41(0,"div",2)(1,"div",15),t.nrm(2,"i",16),t.EFF(3),t.nI1(4,"translate"),t.k0s()()),2&e&&(t.R7$(3),t.SpI(" ",t.bMT(4,1,"cantMakeAgain")," "))}function Ye(e,s){if(1&e&&(t.j41(0,"div",2)(1,"mat-card",8)(2,"mat-card-header",9),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"hr",10),t.j41(6,"mat-card-content",11)(7,"p")(8,"strong"),t.EFF(9),t.nI1(10,"translate"),t.nI1(11,"translate"),t.k0s(),t.EFF(12),t.nI1(13,"translate"),t.k0s(),t.j41(14,"p")(15,"strong"),t.EFF(16),t.nI1(17,"translate"),t.nI1(18,"translate"),t.k0s(),t.EFF(19),t.nI1(20,"translate"),t.k0s(),t.DNE(21,Oe,6,7,"p")(22,Ge,12,16,"div",12),t.k0s()()(),t.DNE(23,Ne,5,3,"div",2)),2&e){const n=t.XpG(),a=t.r8f(2);t.R7$(3),t.JRh(t.bMT(4,10,"evaluation.evaluation")),t.R7$(6),t.Lme("",t.bMT(10,12,"studentPoints"),"",t.bMT(11,14,"typography.colon"),""),t.R7$(3),t.SpI(" ",t.i5U(13,16,"typography.slash",t.l_i(26,ye,null==n.solving?null:n.solving.allPoints,null==n.solving?null:n.solving.totalPoints))," "),t.R7$(4),t.Lme("",t.bMT(17,19,"percentage"),"",t.bMT(18,21,"typography.colon"),""),t.R7$(3),t.SpI(" ",t.i5U(20,23,"typography.percent",t.eq3(29,$t,null==n.solving?null:n.solving.evaluation))," "),t.R7$(2),t.vxM(null!=n.solving&&n.solving.comment?21:-1),t.R7$(),t.vxM(null!=n.solving&&null!=n.solving.attachments&&n.solving.attachments.length?22:-1),t.R7$(),t.vxM(a&&!+(null==n.solving?null:n.solving.again)?23:-1)}}function Xe(e,s){if(1&e&&(t.j41(0,"div",0)(1,"div",1),t.SS7(2),t.j41(3,"div",2)(4,"h3"),t.EFF(5),t.nI1(6,"translate"),t.DNE(7,je,7,12,"span",3),t.k0s()(),t.j41(8,"div",2),t.Z7z(9,we,2,4,"div",4,t.Vm6),t.k0s(),t.DNE(11,Ye,24,31),t.j41(12,"div",2)(13,"a",5),t.nrm(14,"i",6),t.EFF(15),t.nI1(16,"translate"),t.k0s()()()()),2&e){let n;const a=s,o=t.XpG();t.R7$(2);const i=t.bH3("task"===o.assignmentType);t.R7$(3),t.SpI(" ",t.bMT(6,6,i?"taskScore":"exercisesScore")," "),t.R7$(2),t.vxM((n=!i&&a.solving)?7:-1,n),t.R7$(2),t.Dyx(a.questions),t.R7$(2),t.vxM(a.solving?11:-1),t.R7$(2),t.Y8G("routerLink",t.eq3(10,$e,o.overviewRedirect)),t.R7$(2),t.SpI(" ",t.bMT(16,8,"backToOverview")," ")}}let yt=(()=>{var e;class s{constructor(){this.router=(0,t.WQX)(E.Ix),this.route=(0,t.WQX)(E.nX),this.toastrService=(0,t.WQX)(tt.tw),this.helperService=(0,t.WQX)(et.w),this.loaderService=(0,t.WQX)(Y.Z),this.eCampusService=(0,t.WQX)(j.u),this.translateService=(0,t.WQX)(h.c$)}ngOnInit(){this.loaderService.setIsLoading(!0),this.data$=this.route.params.pipe((0,Mt.H)(a=>this.route.data.pipe((0,x.T)(({assignmentType:o})=>(0,C.A)((0,C.A)({},a),{},{assignmentType:o})))),(0,N.n)(({cid:a,eid:o,sid:i,assignmentType:r})=>a&&r?(this.overviewRedirect="/student/ecampus/course/".concat(a,"/").concat(r,"s"),this.assignmentType=r,this.eCampusService.getAssignmentEvaluation(r,o,i).pipe((0,x.T)(c=>{var m;return(null==c||null===(m=c.body)||void 0===m?void 0:m.data)||{questions:[],solving:null}}),(0,x.T)(({questions:c,solving:m})=>(!(null!=c&&c.length)&&(!m||this.helperService.isEmptyObj(m))&&this.handleError(),{questions:c,solving:m})),(0,Re.M)(()=>this.loaderService.setIsLoading(!1)),(0,w.W)(()=>this.handleError()))):(this.overviewRedirect="student/cursussen",(0,ke.$)(()=>new Error("No course or assignment type was provided")))),(0,w.W)(a=>((0,Fe.L)().handleError(a),this.handleError())))}handleError(){this.loaderService.setIsLoading(!1),this.router.navigate([this.overviewRedirect]);const a=this.translateService.instant("evaluation.notFound");return this.toastrService.error(a),(0,F.of)(null)}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-assignment-evaluation"]],decls:2,vars:3,consts:[["id","evaluation",1,"container","mat-elevation-z3","sm-no-shadow","mb-0","mb-sm-5"],[1,"row","py-4"],[1,"col-12"],[1,"float-right","fs-16"],[1,"my-3"],["mat-button","","color","primary","type","button",3,"routerLink"],[1,"fas","fa-angle-left","mr-2"],[3,"type","question","questionIndex","showResult"],[1,"my-3","evaluation-box"],[1,"title-color","font-weight-bold","p-3"],[1,"m-0"],[1,"p-3"],[1,"d-flex"],[1,"d-flex","flex-column"],["target","_blank",3,"href"],["role","alert",1,"alert","alert-primary"],[1,"fas","fa-exclamation-triangle","mr-1"]],template:function(a,o){if(1&a&&(t.DNE(0,Xe,17,12,"div",0),t.nI1(1,"async")),2&a){let i;t.vxM((i=t.bMT(1,1,o.data$))?0:-1,i)}},dependencies:[Me.T,b.It,D.RN,D.m2,D.MM,E.Wk,d.Jj,d.GH,h.D9,lt.C],styles:[".evaluation-box[_ngcontent-%COMP%]{background:var(--color-tint-4)}\n\n/*# sourceMappingURL=student-assignment-evaluation.component.css.map*/"]}),s})();var O=l(50565),Ve=l(14600),Le=l(43143),I=l(32496),ze=l(12006),mt=l(48384),T=l(62849),z=l(55327),gt
1=l(7713),J=l(46325),nt=l(79462),Be=l(82869),Qe=l(53360),U=l(86060);const Ae=e=>({"mb-0 mb-sm-5":e}),Je=e=>[e];function qe(e,s){1&e&&(t.j41(0,"div",4)(1,"div",8),t.nrm(2,"app-course-overview-status-toggle"),t.k0s()())}function We(e,s){if(1&e&&t.nrm(0,"app-courses-overview",5),2&e){const n=t.XpG();t.Y8G("courses",n.shownCourses)("entity","student")("trackBy","planningId")}}function Ue(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",6)(1,"div",9)(2,"h5"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"br"),t.j41(6,"div",10)(7,"a",11),t.nI1(8,"routeT"),t.j41(9,"span"),t.EFF(10),t.nI1(11,"translate"),t.k0s()(),t.j41(12,"a",12),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.generateOSPayRedirect())}),t.j41(13,"span"),t.EFF(14),t.nI1(15,"translate"),t.k0s()()()(),t.nrm(16,"hr"),t.j41(17,"div",13),t.nrm(18,"app-course-card-carousel",14),t.k0s()()}if(2&e){const n=t.XpG();t.R7$(3),t.JRh(t.bMT(4,4,"onGoing"===n.activeFilter?"notRegisteredForACourse":"noPassedCourses")),t.R7$(4),t.Y8G("routerLink",t.eq3(12,Je,t.bMT(8,6,"/course-overview"))),t.R7$(3),t.JRh(t.bMT(11,8,"discoverCourseOffer")),t.R7$(4),t.JRh(t.bMT(15,10,"register"))}}function He(e,s){1&e&&t.nrm(0,"app-ecampus-navigation",7),2&e&&t.Y8G("isFooter",!0)}let Ze=(()=>{var e;class s{constructor(){this.userService=(0,t.WQX)(J.D),this.websiteService=(0,t.WQX)(z.j),this.deviceService=(0,t.WQX)(O.Kg),this.eCampusService=(0,t.WQX)(j.u),this.coursesService=(0,t.WQX)(mt._),this.studentExamService=(0,t.WQX)(gt.o),this.courseOverviewFilterService=(0,t.WQX)(ze.A),this.loaderService=(0,t.WQX)(Y.Z),this.shownCourses=[],this.isDesktop=this.deviceService.isDesktop(),this.courseNotFinished=[],this.courseFinished=[],this.destroy$=new y.B}ngOnInit(){this.loaderService.setIsLoading(!0),this.courseFinished=[],this.courseNotFinished=[],this.shownCourses=[],this.courseOverviewFilterService.setFilters(k.Ed.student),this.userService.getUserCourses().pipe((0,x.T)(a=>{var o;return(null==a||null===(o=a.body)||void 0===o?void 0:o.data)||[]}),(0,N.n)(a=>(0,Ve.H)(a)),(0,Mt.H)(a=>{var o;if(null!=a&&null!==(o=a.nextClass)&&void 0!==o&&o.id&&a.subtype===k.q1.virtual&&!a.allround){const{date:i,startTime:r}=a.nextClass,c=(0,T.I1)("".concat(i," ").concat(r),I.x.iso.dateTimeShortNoSeconds),m=T.I1.duration(c.diff((0,T.I1)())).asMinutes();a.nextClass.isWithinFifteenMinutes=m<=15}if(a.allround){const{childrenList:i}=a;i.forEach(c=>{c.examData=this.getExamData(c)});const r=i.reduce((c,m)=>{var u,_,g;return null!=m&&null!==(u=m.examData)&&void 0!==u&&u.examStartsIn?c.examStartsIn&&null!==(_=c)&&void 0!==_&&null!==(_=_.examStartsIn)&&void 0!==_&&_.isBefore(null==m||null===(g=m.examData)||void 0===g?void 0:g.examStartsIn)?c:c=m.examData:c},{enabled:!1,onlineExam:null,examStartsIn:null});r&&(a.examData=r)}return a.allround||(a.examData=this.getExamData(a)),(0,F.of)(a)}),(0,W.Z)(a=>{var o;return null!=a&&null!==(o=a.examData)&&void 0!==o&&o.enabled?this.eCampusService.getExamList(a.planningId).pipe((0,x.T)(i=>{var r;return(null==i||null===(r=i.body)||void 0===r?void 0:r.data)||[]}),(0,x.T)(i=>{if(i&&i.length){const[{exams:r}]=i,[c]=r;return(0,C.A)((0,C.A)({},a),{},{examData:(0,C.A)((0,C.A)({},a.examData),{},{exam:c}),enableExam:!0})}return a})):(0,F.of)(a)}),(0,v.Q)(this.destroy$),(0,Le.$)()).subscribe({next:a=>{a=a.map(r=>{if("virtual"===(null==r?void 0:r.subtype)&&r.lessons){const c=[...r.lessons].pop();r.isLastVirtualLesson=this.coursesService.isDateTodayOrAfter(c)}return r});const{courseFinished:o,courseNotFinished:i}=this.categorizeCourses(a);this.courseFinished=o,this.courseNotFinished=i,this.shownCourses=i,this.hasCourses=!!o.length||!!i.length,this.filterShownCourses(),this.loaderService.setIsLoading(!1)},error:a=>{this.loaderService.setIsLoading(!1)}})}filterShownCourses(){this.shownCourses=[],this.courseOverviewFilterService.getActiveFilter().pipe((0,v.Q)(this.destroy$)).subscribe(a=>{this.activeFilter=a,this.shownCourses="onGoing"===a?[...this.courseNotFinished]:[...this.courseFinished]})}generateOSPayRedirect(){this.websiteService.generateOSPayRedirect(k.SJ.subscription)}categorizeCourses(a){const o=[],i=[];return a.forEach(r=>{if(r.allround){let c=!0;for(const m of r.childrenList)if(!this.checkIfCoursePassed(m)){c=!1;break}c?o.push(r):i.push(r)}else this.checkIfCoursePassed(r)?o.push(r):i.push(r)}),{courseFinished:o,courseNotFinished:i}}checkIfCoursePassed(a){const{courseEnded:o,examInfo:i}=a;return i.length?i.every(r=>r.examPassed):o}getExamData(a){var o;const{examInfo:i}=a,r=i.find(m=>3===m.examTypeId);let c=null;return r&&null!=r&&null!==(o=r.events)&&void 0!==o&&o.length&&(c=this.studentExamService.examLogic(r)),c}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-courses-overview"]],decls:10,vars:9,consts:[[1,"container","courses-page",3,"ngClass"],[1,"row","d-block","d-sm-none"],[1,"col-12","pt-2"],[1,"mb-0","fs-22","font-weight-bold"],[1,"row"],[3,"courses","entity","trackBy"],[1,"col-12"],[3,"isFooter"],[1,"col-12","mb-3","text-right","px-2","d-flex","justify-content-end"],[1,"text-center","my-5"],[1,"button-container","justify-content-center"],["mat-raised-button","","color","accent-inverted",1,"text-uppercase",3,"routerLink"],["type","button","mat-raised-button","","color","primary",1,"text-uppercase",3,"click"],[1,"pb-3"],["title","interestsCarouselHeader"]],template:function(a,o){1&a&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),t.EFF(4),t.nI1(5,"translate"),t.k0s()()(),t.DNE(6,qe,3,0,"div",4)(7,We,1,3,"app-courses-overview",5)(8,Ue,19,14,"div",6),t.k0s(),t.DNE(9,He,1,1,"app-ecampus-navigation",7)),2&a&&(t.Y8G("ngClass",t.eq3(7,Ae,o.isDesktop)),t.R7$(4),t.JRh(t.bMT(5,5,"myCourses")),t.R7$(2),t.vxM(o.hasCourses?6:-1),t.R7$(),t.vxM(o.shownCourses.length?7:8),t.R7$(2),t.vxM(o.isDesktop?-1:9))},dependencies:[d.YU,nt.O,b.It,Be.t,E.Wk,Qe.P,St.C,h.D9,U.s],styles:["hr[_ng
1content-%COMP%]{margin:var(--space-100px) var(--space-0)}\n\n/*# sourceMappingURL=student-courses-overview.component.css.map*/"]}),s})();var M=l(87941),B=l(71920),q=l(21675),Ke=l(89204),pt=l(61873),tn=l(27950),P=l(91033),ft=l(93631),Q=l(8432),ht=l(55731),dt=l(51731);const en=e=>({value:e});function nn(e,s){1&e&&(t.j41(0,"div",5),t.nrm(1,"app-inner-loader",6),t.k0s())}function on(e,s){if(1&e&&(t.qex(0),t.nrm(1,"app-read-more-less",20),t.bVm()),2&e){const n=t.XpG().$implicit;t.R7$(),t.Y8G("text",null==n?null:n.feedback)}}function an(e,s){1&e&&(t.qex(0),t.EFF(1),t.nI1(2,"translate"),t.bVm()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"noFeedback")))}function sn(e,s){1&e&&(t.j41(0,"span",25),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"examPassed")," "))}function rn(e,s){1&e&&(t.j41(0,"span",26),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"translate"),t.k0s()),2&e&&(t.R7$(),t.Lme("",t.bMT(2,2,"examNotPassed1")," ",t.bMT(3,4,"examNotPassed2"),""))}function cn(e,s){if(1&e&&(t.j41(0,"div",21),t.nrm(1,"i",22),t.j41(2,"strong")(3,"p",23),t.DNE(4,sn,3,3,"span",24)(5,rn,4,6,"ng-template",null,0,t.C5r),t.k0s()()()),2&e){const n=t.sdS(6),a=t.XpG().$implicit;t.R7$(),t.Y8G("ngClass",a.hasPassed?"fa-check-circle text-success":"fa-times-circle text-danger"),t.R7$(3),t.Y8G("ngIf",a.hasPassed)("ngIfElse",n)}}function ln(e,s){if(1&e&&(t.qex(0),t.j41(1,"p")(2,"strong",18),t.EFF(3),t.nI1(4,"translate"),t.nI1(5,"translate"),t.nI1(6,"titleCaseFirstWord"),t.k0s()(),t.j41(7,"ul")(8,"li")(9,"strong"),t.EFF(10),t.nI1(11,"translate"),t.nI1(12,"translate"),t.nI1(13,"number"),t.nI1(14,"translate"),t.k0s()(),t.j41(15,"li")(16,"strong"),t.EFF(17),t.nI1(18,"translate"),t.nI1(19,"translate"),t.k0s(),t.nrm(20,"br"),t.DNE(21,on,2,1,"ng-container",3)(22,an,3,3,"ng-container",3),t.k0s()(),t.DNE(23,cn,7,3,"div",19),t.bVm()),2&e){const n=s.$implicit,a=s.index,o=t.XpG(2);t.R7$(3),t.E5c("",a+1,"",t.bMT(4,13,"typography.period"),"",t.bMT(6,17,t.bMT(5,15,n.type)),""),t.R7$(7),t.E5c(" ",t.bMT(11,19,"cmpExamResult"),"",t.bMT(12,21,"typography.colon"),"",t.i5U(14,26,"typography.percent",t.eq3(33,en,t.i5U(13,23,null!=n&&n.resultEvaluation?null==n?null:n.resultEvaluation:0,"1.0-2")))," "),t.R7$(7),t.LHq("",t.bMT(18,29,"feedbackFromTeacher")," ",null==o.courseData||null==o.courseData.teacher?null:o.courseData.teacher.firstName," ",null==o.courseData||null==o.courseData.teacher?null:o.courseData.teacher.lastName,"",t.bMT(19,31,"typography.colon"),""),t.R7$(4),t.Y8G("ngIf",""!==(null==n?null:n.feedback)),t.R7$(),t.Y8G("ngIf",""===(null==n?null:n.feedback)),t.R7$(),t.Y8G("ngIf","no exam"!==n.type)}}function mn(e,s){if(1&e){const n=t.RV6();t.qex(0),t.j41(1,"div",7)(2,"div",8),t.nrm(3,"img",9),t.nI1(4,"generateImage"),t.j41(5,"button",10),t.nrm(6,"i",11),t.k0s()()(),t.j41(7,"div",12)(8,"div",13)(9,"h5")(10,"strong"),t.EFF(11),t.nI1(12,"titleCaseFirstWord"),t.k0s()()()(),t.DNE(13,ln,24,35,"ng-container",14),t.j41(14,"div",15)(15,"p",16),t.EFF(16),t.nI1(17,"translate"),t.j41(18,"strong"),t.EFF(19),t.nI1(20,"translate"),t.j41(21,"a",17),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.dialogData.dialogRef.close())}),t.EFF(22),t.nI1(23,"translate"),t.nI1(24,"titleCaseFirstWord"),t.k0s()()()(),t.bVm()}if(2&e){const n=t.XpG();t.R7$(3),t.Y8G("src",t.bMT(4,11,n.courseData),t.B4B)("alt",n.courseData.courseName),t.R7$(8),t.JRh(t.bMT(12,13,n.courseData.courseName)),t.R7$(2),t.Y8G("ngForOf",n.examData),t.R7$(3),t.SpI(" ",t.bMT(17,15,"diplomaWillBeSentTo")," "),t.R7$(3),t.SjE(" ",null==n.user?null:n.user.street," ",null==n.user?null:n.user.number,"",t.bMT(20,17,"typography.comma"),"",null==n.user?null:n.user.zip," ",null==n.user?null:n.user.cityName," - "),t.R7$(3),t.SpI(" ",t.bMT(24,21,t.bMT(23,19,"changeAddress"))," ")}}function pn(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",27)(1,"button",28),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.downloadDiploma())}),t.nrm(2,"i",29),t.EFF(3),t.nI1(4,"translate"),t.k0s()()}2&e&&(t.R7$(3),t.SpI(" ",t.bMT(4,1,"diplomaDownload")," "))}let dn=(()=>{var e;class s{constructor(){this.ecampusService=(0,t.WQX)(j.u),this.userService=(0,t.WQX)(J.D),this.diplomaService=(0,t.WQX)(tn.l),this.router=(0,t.WQX)(E.Ix),this.toastrService=(0,t.WQX)(tt.tw),this.translateService=(0,t.WQX)(h.c$),this.dialogData=(0,t.WQX)(q.y2),this.isLoading=!0,this.destroy$=new y.B}
1ngOnInit(){const a=this.userService.getUserInfo("student").pipe((0,x.T)(i=>null==i?void 0:i.data)),o=this.ecampusService.getEloCourseDetails(this.dialogData.course.planningId).pipe((0,x.T)(i=>{var r;return(null==i||null===(r=i.body)||void 0===r?void 0:r.data)||null}));(0,pt.p)([o,a]).pipe((0,v.Q)(this.destroy$)).subscribe(([i,r])=>{if(!i)return this.toastrService.error(this.translateService.instant("noResultsFound")),void this.router.navigate(["student/diploma"]);this.courseData=i,this.user=r;const c=i.examInfo.filter(m=>m.events);this.examData=c.map(m=>{const u=m.events.reduceRight((st,S)=>{const{statusId:$}=S,{passed:L,pointsReceived:it}=P.mV;return null!==st||$!==L&&$!==it?st:S},null);if(!(null!=u&&u.points||null!=u&&u.solving))return null;const{points:_,solving:g}=u,{points:R}=_,{maxPoints:G}=m,K=g?g.evaluation:+R/+G*100;return(0,C.A)((0,C.A)({},m),{},{feedback:null==_?void 0:_.feedback,hasPassed:null==_?void 0:_.examPassed,resultEvaluation:K})}).filter(Boolean),this.isLoading=!1})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}downloadDiploma(){var a=this;return(0,Ke.A)(function*(){a.diplomaService.downloadDiploma(a.courseData.id,+a.user.id)})()}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-diploma-results-dialog"]],decls:4,vars:3,consts:[["examFailed",""],["mat-dialog-content",""],["class","loading-container",4,"ngIf"],[4,"ngIf"],["mat-dialog-actions","","align","end",4,"ngIf"],[1,"loading-container"],["spinnerWidth","40"],[1,"row","mb-4"],[1,"col-12","col-sm-6"],["appOnErrorImage","",1,"img-fluid",3,"src","alt"],["type","button","mat-fab","",1,"btn-action","d-flex","flex-column","justify-content-center","align-items-center"],[1,"fa-solid","fa-trophy"],[1,"row"],[1,"col-12","mb-2"],[4,"ngFor","ngForOf"],["role","alert",1,"alert","alert-primary"],[1,"m-0"],["routerLink","student/info",1,"underline",3,"click"],[1,"underline"],["class","d-flex justify-content-start align-items-center mb-4",4,"ngIf"],[3,"text"],[1,"d-flex","justify-content-start","align-items-center","mb-4"],[1,"fs-25","fas",3,"ngClass"],[1,"mb-0","ml-2"],["class","text-success",4,"ngIf","ngIfElse"],[1,"text-success"],[1,"text-danger"],["mat-dialog-actions","","align","end"],["type","button","mat-button","","color","primary","aria-label","Download",3,"click"],[1,"fa-solid","fa-download","mr-2","text-white"]],template:function(a,o){1&a&&(t.j41(0,"div",1),t.DNE(1,nn,2,0,"div",2)(2,mn,25,23,"ng-container",3),t.k0s(),t.DNE(3,pn,5,3,"div",4)),2&a&&(t.R7$(),t.Y8G("ngIf",o.isLoading),t.R7$(),t.Y8G("ngIf",!o.isLoading),t.R7$(),t.Y8G("ngIf",o.courseData&&(null==o.dialogData||null==o.dialogData.course?null:o.dialogData.course.diplomaRef)))},dependencies:[d.YU,d.Sq,d.bT,b.$z,b.Sr,M.E7,M.Yi,ft.K,Ft.H,Q.e,E.Wk,d.QX,h.D9,ht.z,dt.p],styles:[".loading-container[_ngcontent-%COMP%]{min-height:var(--size-100px);display:flex;align-items:center;justify-content:center}img[_ngcontent-%COMP%]{border:var(--border-md-solid-gold)}.mat-mdc-fab[_ngcontent-%COMP%]{position:absolute;bottom:var(--space-negative-21px);right:var(--space-32px);margin:var(--space-0);cursor:auto;background-color:var(--color-tint-1)!important;pointer-events:none}.mat-mdc-fab[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:var(--color-gold)}ul[_ngcontent-%COMP%]{padding-left:var(--space-18px)}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:var(--color-tint-11)}.btn-action[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:var(--color-gold)!important;font-size:var(--font-size-125);line-height:var(--font-size-293)}\n\n/*# sourceMappingURL=student-diploma-results-dialog.component.css.map*/"]}),s})();var Dt=l(28404),jt=l(64615);const un=(e,s)=>({"success-border":e,otherCourse:s}),_n=(e,s,n)=>[e,s,n],gn=e=>[e];function fn(e,s){1&e&&(t.j41(0,"button",5),t.nrm(1,"i",9),t.k0s())}function hn(e,s){1&e&&t.eu8(0)}function vn(e,s){if(1&e&&t.DNE(0,hn,1,0,"ng-container",10),2&e){t.XpG();const n=t.sdS(19);t.Y8G("ngTemplateOutlet",n)}}function xn(e,s){1&e&&t.eu8(0)}function Cn(e,s){if(1&e&&t.DNE(0,xn,1,0,"ng-container",10),2&e){t.XpG();const n=t.sdS(13);t.Y8G("ngTemplateOutlet",n)}}function bn(e,s){1&e&&t.eu8(0)}function En(e,s){if(1&e&&t.DNE(0,bn,1,0,"ng-container",10),2&e){t.XpG();const n=t.sdS(15);t.Y8G("ngTemplateOutlet",n)}}function Tn(e,s){1&e&&t.eu8(0)}function In(e,s){if(1&e&&t.DNE(0,Tn,1,0,"ng-container",10),2&e){t.XpG();const n=t.sdS(17);t.Y8G("ngTemplateOutlet",n)}}function Sn(e,s){if(1&e){const n=t.RV6();t.j41(0,"button",11),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.showResults())}),t.nrm(1,"i",12),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"uppercase"),t.k0s()}2&e&&(t.R7$(2),t.SpI(" ",t.bMT(4,3,t.bMT(3,1,"succeeded"))," "))}function kn(e,s){if(1&e&&(t.j41(0,"a",13),t.nI1(1,"routeT"),t.nI1(2,"seoFriendlyFormat"),t.nI1(3,"seoFriendlyFormat"),t.nrm(4,"i",14),t.EFF(5),t.nI1(6,"translate"),t.nI1(7,"uppercase"),t.k0s()),2&e){const n=t.XpG();t.Y8G("routerLink",t.sMw(12,_n,t.bMT(1,2,"/course"),t.bMT(2,4,n.course.urlParam),t.bMT(3,6,n.course.courseCode))),t.R7$(5),t.SpI(" ",t.bMT(7,10,t.bMT(6,8,"cpMoreInfoButton"))," ")}}function Rn(e,s){1&e&&(t.j41(0,"h6",15)(1,"strong"),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"titleCaseFirstWord"),t.k0s()()),2&e&&(t.R7$(2),t.SpI(" ",t.bMT(4,3,t.bMT(3,1,"subscribed"))," "))}function Fn(e,s){if(1&e&&(t.j41(0,"a",16),t.nrm(1,"i",14),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"uppercase"),t.k0s()),2&e){const n=t.XpG();t.Y8G("routerLink",t.eq3(6,gn,"/student/ecampus/course/"+n.course.planningId+"/details")),t.R7$(2),t.SpI(" ",t.bMT(4,4,t.bMT(3,2,"courseInfo"))," ")}}let Mn=(()=>{var e;class s{constructor(){this.configService=(0,t.WQX)(Dt.w),this.dialogService=(0,t.WQX)(M.bZ)}ngOnInit(){this.course=(0,C.A)((0,C.A)({},this.course),{},{photo:this.course.photo?"".concat(this.configService.getFastcrmUrl()).concat(this.course.photo):null})}showResults(){this.dialogService.open(B.m,{data:{header:"examResultT",headerClasses:"main-color",titleClasses:"text-white",component:dn,componentData:{course:this.course}},panelClass:["col-12","col-lg-6"],disableClose:!0})}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-diploma-card"]],inputs:{course:"course"},decls:20,vars:14,consts:[["success",""],["info",""],["subscribed",""],["tostudentecampus",""],[3,"ngClass"],["type","button","mat-mini-fab","","disabled","","color","gold-inverted",1,"diploma-logo"],["mat-card-image","",3,"src","alt"],[1,"text-center"],[1,"course-name"],[1,"fa-solid","fa-trophy","trophy-diploma"],[4,"ngTemplateOutlet"],["type","button","mat-raised-button","","color","gold",3,"click"],[1,"fa-solid","fa-medal"],["mat-raised-button","","color","accent","target","_blank",3,"routerLink"],[1,"fa-solid","fa-circle-info","mr-2"],[1,"text-center","subscribed","d-flex","align-items-center","justify-content-center"],["mat-raised-button","","color","accent",3,"routerLink"]],template:function(a,o){1&a&&(t.j41(0,"mat-card",4),t.DNE(1,fn,2,0,"button",5),t.nrm(2,"img",6),t.nI1(3,"generateImage"),t.j41(4,"mat-card-content",7)(5,"h5",8)(6,"strong"),t.EFF(7),t.k0s()(),t.DNE(8,vn,1,1,"ng-container")(9,Cn,1,1,"ng-container")(10,En,1,1,"ng-container")(11,In,1,1,"ng-container"),t.k0s()(),t.DNE(12,Sn,5,5,"ng-template",null,0,t.C5r)(14,kn,8,16,"ng-template",null,1,t.C5r)(16,Rn,5,5,"ng-template",null,2,t.C5r)(18,Fn,5,8,"ng-template",null,3,t.C5r)),2&a&&(t.Y8G("ngClass",t.l_i(11,un,o.course.passed,!o.course.status&&!o.course.passed)),t.R7$(),t.vxM(o.course.passed?1:-1),t.R7$(),t.FS9("alt",o.course.courseName),t.Y8G("src",t.bMT(3,9,o.course),t.B4B),t.R7$(5),t.JRh(o.course.courseName),t.R7$(),t.vxM("subscribed"===o.course.status&&!1===o.course.passed?8:-1),t.R7$(),t.vxM(o.course.status&&o.course.passed?9:-1),t.R7$(),t.vxM(o.course.status||o.course.passed?-1:10),t.R7$(),t.vxM("subscribed"===o.course.status&&null===o.course.passed?11:-1))},dependencies:[d.YU,d.T3,b.It,b.$z,b.$0,D.RN,D.m2,D.kF,E.Wk,d.Pc,h.D9,U.s,jt.w,ht.z,dt.p],styles:["[_nghost-%COMP%]{box-sizing:border-box}.success-border[_ngcontent-%COMP%]{border:var(--border-sm-solid-gold);box-shadow:var(--shadow-none)}
1.course-name[_ngcontent-%COMP%]{word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.otherCourse[_ngcontent-%COMP%]{background-color:var(--color-tint-4);box-shadow:var(--shadow-none)!important}.otherCourse[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{opacity:var(--opacity-65)} .mat-mdc-card{box-shadow:var(--shadow-mat-mdc-card)} .mat-mdc-mini-fab.mat-gold-inverted{box-shadow:var(--shadow-mat-mdc-mini-fab)!important}.btn-action[_ngcontent-%COMP%]{cursor:auto}.btn-action[_ngcontent-%COMP%]:hover{box-shadow:var(--shadow-btn)}h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{color:var(--color-text)}button[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{font-weight:var(--font-weight-extrabold);font-size:var(--font-size-68)!important}.course-name[_ngcontent-%COMP%]{min-height:var(--size-5em);padding-top:var(--size-16px)}.diploma-logo[_ngcontent-%COMP%]{position:absolute;top:var(--space-35-percent);left:var(--space-75-percent);z-index:var(--z-index-layer-1);opacity:var(--opacity-100);width:var(--size-42px);height:var(--size-42px)}.trophy-diploma[_ngcontent-%COMP%]{color:var(--color-gold)!important;font-size:var(--font-size-125);line-height:var(--font-size-262)}h6.subscribed[_ngcontent-%COMP%]{height:var(--size-icon-md)}
1@media (max-width: 576px){.diploma-logo[_ngcontent-%COMP%]{top:var(--space-40-percent)}}@media (min-width: 575px){ .mat-mdc-card-image{height:var(--size-118px)!important}}\n\n/*# sourceMappingURL=student-diploma-card.component.css.map*/"]}),s})();const $n=e=>({"mb-3":e}),yn=(e,s)=>({left:e,right:s}),Dn=e=>[e];function jn(e,s){if(1&e&&(t.j41(0,"div",8),t.nrm(1,"app-student-diploma-card",9),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Y8G("course",n)}}function wn(e,s){if(1&e&&(t.j41(0,"div",4)(1,"div",2)(2,"h6",5)(3,"strong"),t.EFF(4),t.nI1(5,"translate"),t.nI1(6,"uppercase"),t.k0s()()(),t.j41(7,"div",6)(8,"div",7),t.Z7z(9,jn,2,1,"div",8,t.fX1),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(4),t.SpI(" ",t.bMT(6,3,t.bMT(5,1,"singleCourses"))," "),t.R7$(5),t.Dyx(n.singleCourses)}}function On(e,s){if(1&e&&(t.j41(0,"div",8),t.nrm(1,"app-student-diploma-card",9),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Y8G("course",n)}}function Pn(e,s){1&e&&t.nrm(0,"hr",17)}function Gn(e,s){if(1&e&&(t.j41(0,"div",14)(1,"div",2)(2,"p",15)(3,"strong"),t.EFF(4),t.k0s(),t.EFF(5," \xa0 "),t.j41(6,"span",16),t.EFF(7),t.nI1(8,"translate"),t.k0s()()(),t.j41(9,"div",6)(10,"div",7),t.Z7z(11,On,2,1,"div",8,t.fX1),t.k0s()()(),t.DNE(13,Pn,1,0,"hr",17)),2&e){const n=s.$implicit,a=s.$index,o=t.XpG(3);t.Y8G("ngClass",t.eq3(7,$n,a===o.allRounds.length-1)),t.R7$(4),t.JRh(n.courseName),t.R7$(3),t.SpI("(",t.i5U(8,4,"typography.slash",t.l_i(9,yn,n.subscribedChildren,n.children.length)),")"),t.R7$(4),t.Dyx(n.children),t.R7$(2),t.vxM(a!==o.allRounds.length-1?13:-1)}}function Nn(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",4),t.nrm(1,"hr",10),t.k0s(),t.j41(2,"div",4)(3,"div",11)(4,"h6",12)(5,"strong"),t.EFF(6),t.nI1(7,"translate"),t.nI1(8,"uppercase"),t.k0s(),t.j41(9,"i",13),t.bIt("click",function(){t.eBV(n);const o=t.XpG(2);return t.Njj(o.showInfo())}),t.k0s()()(),t.j41(10,"div",2),t.Z7z(11,Gn,14,12,null,null,t.fX1),t.k0s()()}if(2&e){const n=t.XpG(2);t.R7$(6),t.JRh(t.bMT(8,3,t.bMT(7,1,"allrounds"))),t.R7$(5),t.Dyx(n.allRounds)}}function Yn(e,s){if(1&e&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5",3),t.EFF(4),t.nI1(5,"translate"),t.k0s()()(),t.DNE(6,wn,11,5,"div",4)(7,Nn,13,5),t.k0s()),2&e){const n=t.XpG();t.R7$(4),t.SpI(" ",t.bMT(5,3,"diploma")," "),t.R7$(2),t.vxM(n.singleCourses.length?6:-1),t.R7$(),t.vxM(n.allRounds.length?7:-1)}}function Xn(e,s){if(1&e){const n=t.RV6();t.j41(0,"div")(1,"div",18)(2,"div",19)(3,"div",2)(4,"div",20)(5,"h5",21),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"p")(9,"a",22),t.nI1(10,"routeT"),t.j41(11,"span"),t.EFF(12),t.nI1(13,"translate"),t.k0s()(),t.j41(14,"button",23),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.generateOSPayRedirect())}),t.j41(15,"span"),t.EFF(16),t.nI1(17,"translate"),t.k0s()()()()()()()()}2&e&&(t.R7$(6),t.SpI(" ",t.bMT(7,4,"notRegisteredForACourse")," "),t.R7$(3),t.Y8G("routerLink",t.eq3(12,Dn,t.bMT(10,6,"/course-overview"))),t.R7$(3),t.JRh(t.bMT(13,8,"discoverCourseOffer")),t.R7$(4),t.JRh(t.bMT(17,10,"register")))}let Vn=(()=>{var e;class s{constructor(){this.userService=(0,t.WQX)(J.D),this.deviceService=(0,t.WQX)(O.Kg),this.translateService=(0,t.WQX)(h.c$),this.websiteService=(0,t.WQX)(z.j),this.dialogService=(0,t.WQX)(M.bZ),this.loaderService=(0,t.WQX)(Y.Z),this.isDesktop=this.deviceService.isDesktop(),this.isLoaded=!1,this.allRounds=[],this.singleCourses=[],this.destroy$=new y.B}ngOnInit(){this.loaderService.setIsLoading(!0),this.userService.getUserDiplomas().pipe((0,x.T)(a=>{var o;return(null==a||null===(o=a.body)||void 0===o?void 0:o.data)||[]}),(0,v.Q)(this.destroy$)).subscribe(a=>{if(a.length){const o=a.filter(i=>!i.isAllround);this.singleCourses=this.sortCourses(o),this.allRounds=a.filter(i=>i.isAllround).map(i=>(i.children=this.sortCourses(i.children),i))}this.isLoaded=!0,this.loaderService.setIsLoading(!1)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}sortCourses(a){return a.map(o=>(o.point=o.status&&o.passed?1:o.status&&!o.passed&&null!==o.passed?2:o.status&&null===o.passed?3:4,o)).sort((o,i)=>o.point-i.point)}showInfo(){const a={data:{type:q.m6.warning,header:this.translateService.instant("allroundInfo"),
1content:this.translateService.instant("allroundInfoText"),buttonText:this.translateService.instant("iUnderstood")},panelClass:["col-12","col-md-4","material-modal"]};this.dialogService.open(B.m,a)}generateOSPayRedirect(){this.websiteService.generateOSPayRedirect(k.SJ.subscription)}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-diploma"]],decls:2,vars:1,consts:[[1,"container","mat-elevation-z3","mb-0","mb-sm-5","sm-no-shadow"],["appBgColor","",1,"row","pt-2","mb-4","py-3","mb-3"],[1,"col-12"],[1,"mb-0","text-white"],[1,"row"],[1,"text-center","text-sm-left"],[1,"col-8","offset-2","col-sm-12","offset-sm-0"],[1,"row","row-cols-1","row-cols-sm-2","row-cols-md-3","row-cols-lg-4","row-cols-xl-5"],[1,"col","my-2"],[3,"course"],[1,"w-100"],[1,"col-12","mb-2"],[1,"pt-3","text-center","text-sm-left"],[1,"fa-solid","fa-circle-info","ml-2","c-p","text-dark",3,"click"],[1,"row",3,"ngClass"],[1,"mb-2","d-flex","justify-content-center","justify-content-sm-start","align-items-center"],[1,"fs-12"],[1,"my-5","mx-sm-0","mb-sm-4"],[1,"container"],[1,"row","align-items-center","noDiplomas"],[1,"text-center","mb-5"],[1,"mb-3"],["mat-raised-button","","color","accent-inverted",1,"mr-3",3,"routerLink"],["type","button","mat-raised-button","","color","primary",3,"click"]],template:function(a,o){1&a&&t.DNE(0,Yn,8,5,"div",0)(1,Xn,18,14,"div"),2&a&&t.vxM(o.isLoaded&&(o.singleCourses.length||o.allRounds.length)?0:o.isLoaded?1:-1)},dependencies:[d.YU,X.k,b.It,b.$z,E.Wk,Mn,d.Pc,h.D9,U.s],styles:[".fixed-sn main{padding-top:var(--space-0)}@media (min-width: 576px){h6[_ngcontent-%COMP%], p[_ngcontent-%COMP%], h5.text-white[_ngcontent-%COMP%]{margin-left:var(--space-4px)}}.noDiplomas[_ngcontent-%COMP%]{min-height:var(--size-80vh)}\n\n/*# sourceMappingURL=student-diploma.component.css.map*/"]}),s})();var wt=l(71517);const Ln=()=>["/student/cursussen"],zn=e=>({"pt-2 mb-4":e}),Bn=e=>({"p-0":e});function Qn(e,s){1&e&&t.nrm(0,"app-spinner")}function An(e,s){if(1&e&&(t.j41(0,"div",5)(1,"div",6)(2,"div",7),t.nrm(3,"app-ecampus-navigation",8),t.j41(4,"div",9),t.nrm(5,"router-outlet"),t.k0s()()()()),2&e){const n=t.XpG();t.R7$(2),t.Y8G("ngClass",t.eq3(3,zn,!n.isolation)),t.R7$(),t.Y8G("hidden",n.isolation),t.R7$(),t.Y8G("ngClass",t.eq3(5,Bn,n.isolation))}}let Jn=(()=>{var e;class s{constructor(){this.deviceService=(0,t.WQX)(O.Kg),this.route=(0,t.WQX)(E.nX),this.router=(0,t.WQX)(E.Ix),this.websiteService=(0,t.WQX)(z.j),this.eCampusService=(0,t.WQX)(j.u),this.cdRef=(0,t.WQX)(t.gRc),this.destroy$=new y.B,this.isVisible=!1,this.isDesktop=this.deviceService.isDesktop(),this.isolation=!1}ngOnInit(){this.websiteService.getPartialIsolation().pipe((0,v.Q)(this.destroy$)).subscribe(a=>{this.isolation=a}),this.route.params.pipe((0,N.n)(({id:a})=>this.eCampusService.getEloCourseDetails(+a).pipe((0,x.T)(o=>{var i;return(null==o||null===(i=o.body)||void 0===i?void 0:i.data)||null}))),(0,w.W)(a=>(0,F.of)(null)),(0,v.Q)(this.destroy$)).subscribe(a=>{a||this.router.navigate(["student/cursussen"]),this.course=a,this.eCampusService.setCurrentCourse(a),this.isVisible=!0})}ngAfterContentChecked(){this.cdRef.detectChanges()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-ecampus"]],decls:10,vars:8,consts:[[1,"container","mb-0","mb-sm-5"],[1,"row",3,"hidden"],[1,"col-12","p-0"],["mat-flat-button","","color","primary-inverted","id","backToCourseBtn","type","button",1,"mb-2",3,"routerLink"],[1,"fa-solid","fa-angle-left","mr-1"],[1,"row"],[1,"container","mat-elevation-z3","sm-no-shadow"],[1,"row",3,"ngClass"],[3,"hidden"],[1,"col-12",3,"ngClass"]],template:function(a,o){1&a&&(t.DNE(0,Qn,1,0,"app-spinner"),t.j41(1,"div",0)(2,"div",1)(3,"div",2)(4,"a",3),t.nrm(5,"i",4),t.j41(6,"strong"),t.EFF(7),t.nI1(8,"translate"),t.k0s()()()(),t.DNE(9,An,6,7,"div",5),t.k0s()),2&a&&(t.vxM(o.isVisible?-1:0),t.R7$(2),t.Y8G("hidden",o.isolation),t.R7$(2),t.Y8G("routerLink",t.lJ4(7,Ln)),t.R7$(3),t.JRh(t.bMT(8,5,"myCourses")),t.R7$(2),t.vxM(o.isVisible?9:-1))},dependencies:[d.YU,nt.O,b.It,wt.t,E.n3,E.Wk,h.D9],styles:["#backToCourseBtn[_ngcontent-%COMP%]{text-transform:var(--text-transform-none)}\n\n/*# sourceMappingURL=student-ecampus.component.css.map*/"]}),s})();var qn=l(56711);function Wn(e,s){if(1&e&&t.nrm(0,"img",10),2&e){const n=t.XpG();t.Y8G("src",null==n.dialogData?null:n.dialogData.course.ghostEmployeeImg,t.B4B)}}function Un(e,s){if(1&e&&(t.j41(0,"strong"),t.EFF(1),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.JRh(null==n.dialogData?null:n.dialogData.course.ghostEmployeeName)}}function Hn(e,s){if(1&e&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.JRh(null==n.dialogData?null:n.dialogData.course.ghostEmployeeJob)}}let Zn=(()=>{var e;class s{constructor(){this.dialogData=(0,t.WQX)(q.y2)}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-notice-dialog"]],decls:15,vars:8,consts:[["mat-dialog-content","",1,"container-fluid"],[1,"row"],[1,"col-4"],[1,"text-center"],["alt","","class","rounded-circle img-fluid","appOnErrorImage","","imgType","teacher","objectFit","cover",3,"src",4,"ngIf"],[4,"ngIf"],[1,"col-8"],[3,"innerHTML"],["mat-dialog-actions","","align","end"],["type","button","mat-button","","matDialogClose","",3,"color"],["alt","","appOnErrorImage","","imgType","teacher","objectFit","cover",1,"rounded-circle","img-fluid",3,"src"]],template:function(a,o){1&a&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),t.DNE(4,Wn,1,1,"img",4),t.nrm(5,"br"),t.DNE(6,Un,2,1,"strong",5),t.nrm(7,"br"),t.DNE(8,Hn,2,1,"span",5),t.k0s()(),t.j41(9,"div",6),t.nrm(10,"p",7),t.k0s()()(),t.j41(11,"div",8)(12,"button",9),t.EFF(13),t.nI1(14,"translate"),t.k0s()()),2&a&&(t.R
17$(4),t.Y8G("ngIf",null==o.dialogData?null:o.dialogData.course.ghostEmployeeImg),t.R7$(2),t.Y8G("ngIf",null==o.dialogData?null:o.dialogData.course.ghostEmployeeName),t.R7$(2),t.Y8G("ngIf",null==o.dialogData?null:o.dialogData.course.ghostEmployeeJob),t.R7$(2),t.Y8G("innerHTML",null==o.dialogData?null:o.dialogData.course.publishNotice,t.npT),t.R7$(2),t.Y8G("color",1==+(null==o.dialogData?null:o.dialogData.course.publishNoticeStatus)?"danger":0==+(null==o.dialogData?null:o.dialogData.course.publishNoticeStatus)?"success":"primary"),t.R7$(),t.SpI(" ",t.bMT(14,6,"popupBtn1")," "))},dependencies:[d.bT,b.$z,M.tx,M.E7,M.Yi,Q.e,h.D9],encapsulation:2}),s})();var Kn=l(33285),to=l(86241),p=l(77697),eo=l(22151),no=l(50461),Ot=l(97705),oo=l(39917),ot=l(19603);const vt=e=>({result:e}),Pt=e=>[e],Gt=e=>({formats:e}),ao=e=>({value:e});function so(e,s){if(1&e&&t.nrm(0,"app-exam-table",6),2&e){const n=t.XpG();t.Y8G("examInfo",n.examInfo)("course",n.course)}}function io(e,s){if(1&e&&(t.j41(0,"li")(1,"strong"),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"translate"),t.k0s(),t.eu8(5,11),t.k0s()),2&e){const n=t.XpG(3).$implicit;t.XpG(2);const a=t.sdS(4);t.R7$(2),t.Lme("",t.bMT(3,4,"result"),"",t.bMT(4,6,"typography.colon"),""),t.R7$(3),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.eq3(8,vt,null!=n&&null!=n.takenExam&&n.takenExam.solving?n.takenExam.solving.evaluation:n.takenExam.points.points/n.maxPoints*100))}}function ro(e,s){1&e&&t.nrm(0,"br")}function co(e,s){if(1&e&&t.nrm(0,"app-read-more-less",13),2&e){const n=t.XpG(4).$implicit;t.Y8G("text",null==n.takenExam||null==n.takenExam.points?null:n.takenExam.points.feedback)}}function lo(e,s){1&e&&(t.EFF(0),t.nI1(1,"translate")),2&e&&t.SpI("\xa0",t.bMT(1,1,"noFeedback"),"")}function mo(e,s){if(1&e&&(t.j41(0,"li")(1,"strong"),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"translate"),t.k0s(),t.DNE(5,ro,1,0,"br",5)(6,co,1,1,"app-read-more-less",12)(7,lo,2,3,"ng-template",null,1,t.C5r),t.k0s()),2&e){const n=t.sdS(8),a=t.XpG(3).$implicit,o=t.XpG(2);t.R7$(2),t.E5c("",t.bMT(3,6,"feedbackFromTeacher")," ",o.teacher,"",t.bMT(4,8,"typography.colon"),""),t.R7$(3),t.Y8G("ngIf",!(null==a.takenExam||null==a.takenExam.points||!a.takenExam.points.feedback)),t.R7$(),t.Y8G("ngIf",a.takenExam.points.feedback)("ngIfElse",n)}}function po(e,s){if(1&e&&(t.j41(0,"ul"),t.DNE(1,io,6,10,"li",5)(2,mo,9,10,"li",5),t.k0s()),2&e){const n=t.XpG(2).$implicit;t.R7$(),t.Y8G("ngIf",n.takenExam.points||n.takenExam.solving),t.R7$(),t.Y8G("ngIf",n.takenExam.points)}}function uo(e,s){1&e&&(t.j41(0,"span",18),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"examPassed")," "))}function _o(e,s){1&e&&(t.j41(0,"span",19),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"translate"),t.k0s()),2&e&&(t.R7$(),t.Lme("",t.bMT(2,2,"examNotPassed1")," ",t.bMT(3,4,"examNotPassed2"),""))}function go(e,s){if(1&e&&(t.j41(0,"div",14),t.nrm(1,"i",15),t.j41(2,"strong")(3,"p",16),t.DNE(4,uo,3,3,"span",17)(5,_o,4,6,"ng-template",null,2,t.C5r),t.k0s()()()),2&e){const n=t.sdS(6),a=t.XpG(2).$implicit;t.R7$(),t.Y8G("ngClass",a.takenExam.points.examPassed?"fa-check-circle text-success":"fa-times-circle text-danger"),t.R7$(3),t.Y8G("ngIf",a.takenExam.points.examPassed)("ngIfElse",n)}}function fo(e,s){if(1&e&&(t.qex(0),t.j41(1,"p")(2,"strong",9),t.EFF(3),t.nI1(4,"translate"),t.nI1(5,"translate"),t.nI1(6,"titleCaseFirstWord"),t.k0s()(),t.j41(7,"p"),t.EFF(8),t.k0s(),t.DNE(9,po,3,2,"ul",5)(10,go,7,3,"div",10),t.bVm()),2&e){const n=t.XpG(),a=n.$implicit,o=n.index,i=t.XpG(2);t.R7$(3),t.E5c("",o+1,"",t.bMT(4,6,"typography.period"),"",t.bMT(6,10,t.bMT(5,8,a.type)),""),t.R7$(5),t.JRh(a.description),t.R7$(),t.Y8G("ngIf",a.takenExam.examType!==i.examTypes.noExam),t.R7$(),t.Y8G("ngIf",a.takenExam.examType!==i.examTypes.noExam)}}function ho(e,s){if(1&e&&(t.j41(0,"div",8),t.DNE(1,fo,11,12,"ng-container",5),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Y8G("ngIf",n.takenExam||n.isBeingCorrected)}}function vo(e,s){if(1&e&&(t.qex(0),t.nrm(1,"app-exam-table",20),t.bVm()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("examInfo",n.examsToDo)("courseType",n.courseType)("lastLesson",n.lastLesson)("course",n.course)}}function xo(e,s){if(1&e&&(t.qex(0),t.DNE(1,ho,2,1,"div",7)(2,vo,2,4,"ng-container",5),t.bVm()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngForOf",n.hasExamPoints),t.R7$(),t.Y8G("ngIf",n.examsToDo.length)}}function Co(e,s){if(1&e&&(t.qex(0),t.j41(1,"tr")(2,"td",31),t.EFF(3),t.nI1(4,"translate"),t.nI1(5,"titleCaseFirstWord"),t.k0s(),t.j41(6,"td",31),t.EFF(7),t.nI1(8,"dateformat"),t.k0s(),t.j41(9,"td",31),t.eu8(10,11),t.k0s(),t.j41(11,"td",32),t.nrm(12,"app-read-more-less",33),t.k0s()(),t.bVm()),2&e){const n=t.XpG().$implicit,a=t.XpG(4),o=t.sdS(4);t.R7$(3),t.SpI(" ",t.bMT(5,8,t.bMT(4,6,n.type))," "),t.R7$(4),t.SpI(" ",t.i5U(8,10,null!=n&&null!=n.failedExam&&null!=n.failedExam.points&&n.failedExam.points.date?n.failedExam.points.date:n.failedExam.startDate,t.eq3(15,Gt,t.eq3(13,Pt,a.DATEFORMATS.iso.date)))," "),t.R7$(3),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(17,vt,null!=n.failedExam&&n.failedExam.solving?n.failedExam.solving.evaluation:n.failedExam.points.points/n.maxPoints*100)),t.R7$(2),t.Y8G("text",n.failedExam.points.feedback?n.failedExam.points.feedback:"")("characters",300)}}function bo(e,s){if(1&e&&(t.qex(0),t.DNE(1,Co,13,19,"ng-container",5),t.bVm()),2&e){const n=s.$implicit;t.R7$(),t.Y8G("ngIf",n.failedExam)}}
1function Eo(e,s){if(1&e&&(t.qex(0),t.j41(1,"div",26)(2,"div",27)(3,"table",28)(4,"thead")(5,"tr")(6,"th",29),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"th",29),t.EFF(10),t.nI1(11,"translate"),t.nI1(12,"translate"),t.nI1(13,"lowercase"),t.k0s(),t.j41(14,"th",29),t.EFF(15),t.nI1(16,"translate"),t.k0s(),t.j41(17,"th",29),t.EFF(18),t.nI1(19,"translate"),t.k0s()()(),t.j41(20,"tbody"),t.DNE(21,bo,2,1,"ng-container",30),t.k0s()()()(),t.bVm()),2&e){const n=t.XpG(3);t.R7$(7),t.SpI(" ",t.bMT(8,6,"type")," "),t.R7$(3),t.Lme("",t.bMT(11,8,"exam")," ",t.bMT(13,12,t.bMT(12,10,"date")),""),t.R7$(5),t.SpI(" ",t.bMT(16,14,"yourResult")," "),t.R7$(3),t.SpI(" ",t.bMT(19,16,"feedbackFromTeacher")," "),t.R7$(3),t.Y8G("ngForOf",n.examInfo)}}function To(e,s){if(1&e&&(t.j41(0,"div")(1,"h6",35),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"titleCaseFirstWord"),t.k0s(),t.j41(5,"p"),t.EFF(6),t.nI1(7,"translate"),t.nI1(8,"translate"),t.nI1(9,"dateformat"),t.k0s(),t.j41(10,"p"),t.EFF(11),t.nI1(12,"translate"),t.nI1(13,"translate"),t.eu8(14,11),t.k0s(),t.j41(15,"p"),t.EFF(16),t.nI1(17,"translate"),t.nI1(18,"translate"),t.k0s()()),2&e){const n=t.XpG().$implicit,a=t.XpG(4),o=t.sdS(4);t.R7$(2),t.JRh(t.bMT(4,13,t.bMT(3,11,n.type))),t.R7$(4),t.E5c("",t.bMT(7,15,"date"),"",t.bMT(8,17,"typography.colon"),"",t.i5U(9,19,n.failedExam.startDate,t.eq3(32,Gt,t.eq3(30,Pt,a.DATEFORMATS.iso.date))),""),t.R7$(5),t.Lme(" ",t.bMT(12,22,"points"),"",t.bMT(13,24,"typography.colon")," "),t.R7$(3),t.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",t.eq3(34,vt,null!=n.failedExam&&n.failedExam.solving?n.failedExam.solving.evaluation:n.failedExam.points.points/n.maxPoints*100)),t.R7$(2),t.E5c("",t.bMT(17,26,"feedback"),"",t.bMT(18,28,"typography.colon"),"",null==n.failedExam||null==n.failedExam.points?null:n.failedExam.points.feedback,"")}}function Io(e,s){if(1&e&&(t.qex(0),t.DNE(1,To,19,36,"div",5),t.bVm()),2&e){const n=s.$implicit;t.R7$(),t.Y8G("ngIf",n.failedExam)}}function So(e,s){if(1&e&&(t.j41(0,"div",34)(1,"div",22),t.DNE(2,Io,2,1,"ng-container",30),t.k0s()()),2&e){const n=t.XpG(3);t.R7$(2),t.Y8G("ngForOf",n.examInfo)}}function ko(e,s){if(1&e&&(t.qex(0),t.DNE(1,Eo,22,18,"ng-container",25)(2,So,3,1,"ng-template",null,3,t.C5r),t.bVm()),2&e){const n=t.sdS(3),a=t.XpG(2);t.R7$(),t.Y8G("ngIf",a.isDesktop)("ngIfElse",n)}}function Ro(e,s){if(1&e){const n=t.RV6();t.qex(0),t.j41(1,"div",21)(2,"div",22)(3,"button",23),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.togglePreviousResults())}),t.EFF(4),t.nI1(5,"translate"),t.nI1(6,"translate"),t.nrm(7,"i",24),t.k0s(),t.DNE(8,ko,4,2,"ng-container",5),t.k0s()(),t.bVm()}if(2&e){const n=t.XpG();t.R7$(4),t.Lme(" ",t.bMT(5,4,"previousLabel")," ",t.bMT(6,6,"examResultT")," "),t.R7$(3),t.Y8G("ngClass",n.showPreviousResults?"fa-caret-up":"fa-caret-down"),t.R7$(),t.Y8G("ngIf",n.showPreviousResults)}}function Fo(e,s){if(1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"number"),t.nI1(3,"translate"),t.k0s()),2&e){const n=s.result;t.R7$(),t.SpI(" ",t.i5U(3,4,"typography.percent",t.eq3(7,ao,t.i5U(2,1,n||0,"1.0-2")))," ")}}let Mo=(()=>{var e;class s{constructor(a,o){this.deviceService=a,this.studentExamService=o,this.bookExam=new t.bkB,this.DATEFORMATS=I.x,this.showPreviousResults=!1,this.isDesktop=this.deviceService.isDesktop(),this.examTypes=P.Y3,this.eventStatus=P.mV,this.examPassed=P.cG,this.destroy$=new y.B}ngOnInit(){var a,o;const{teacher:i,type:r,lessons:c}=this.course,m=null!==(a=null==i?void 0:i.firstName)&&void 0!==a?a:"",u=null!==(o=null==i?void 0:i.lastName)&&void 0!==o?o:"";this.teacher="".concat(m," ").concat(u),this.courseType=r,this.lastLesson=[...c].pop(),this.studentExamService.getScheduledExamInfo().pipe((0,v.Q)(this.destroy$)).subscribe(_=>{this.hasExamPoints=[],this.examsToDo=[],this.hasFailedExams=!1,this.examInfo=_.map(g=>{if(null!=g&&g.events&&null!=g&&g.events.length){const{events:R}=g,G=[...R].pop();if(G.points&&G.statusId!==this.eventStatus.passed||G.statusId!==this.eventStatus.failed){const S=R.filter($=>{var L;return!(null==$||!$.points)&&(null==$||null===(L=$.points)||void 0===L?void 0:L.examPassed)});if(S.length){const $=[...S].pop();g.takenExam=$,this.hasExamPoints=[...this.hasExamPoints,g]}else this.examsToDo=[...this.examsToDo,g]}else this.examsToDo=[...this.examsToDo,g];const st=R.filter(S=>{var $,L,it;return(null==S?void 0:S.points)&&!(null!=S&&null!==($=S.points)&&void 0!==$&&$.examPassed)&&(null==S||null===(L=S.points)||void 0===L?void 0:L.passed)!==this.examPassed.yes&&(null==S||null===(it=S.points)||void 0===it?void 0:it.passed)!==this.examPassed.present});st.length&&(g.failedExam=[...st].pop(),this.hasFailedExams=!0)}else this.examsToDo=[...this.examsToDo,g];return g})})}togglePreviousResults(){this.showPreviousResults=!this.showPreviousResults}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(e=s).\u0275fac=function(a){return new(a||e)(t.rXU(O.Kg),t.rXU(gt.o))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-exam-info"]],inputs:{course:"course"},outputs:{bookExam:"bookExam"},decls:5,vars:3,consts:[["resultPercentage",""],["noFeedback",""],["examFailed",""],["mobileFailedExam",""],[3,"examInfo","course",4,"ngIf"],[4,"ngIf"],[3,"examInfo","course"],["class","px-2",4,"ngFor","ngForOf"],[1,"px-2"],[1,"underline"],["class","d-flex justify-content-start align-items-center mb-4",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"text",4,"ngIf","ngIfElse"],[3,"text"],[1,"d-flex","justify-content-start","align-items-center","mb-4"],[1,"fs-25","fas",3,"ngClass"],[1,"mb-0","ml-2"],["class","text-success",4,"ngIf","ngIfElse"],[1,"text-success"],[1,"text-danger"],[3,"examInfo","courseType","lastLesson","course"],[1,"row"],[1,"col-12"],["mat-raised-button","","color","accent","type","button",1,"px-3","py-2","fs-13","text-uppercase",3,"click"],[1,"pl-1","fas",3,"ngClass"],[4,"ngIf","ngIfElse"],[1,"py-2","px-2"],[1,"table","table-striped","table-responsive"],[1,"table"],["scope","col"],[4,"ngFor","ngForOf"],[1,"col-2"],[1,"col"],[3,"text","characters"],[1,"row","py-2"],[1,"font-weight-bold"]],template:function(a,o){1&a&&t.DNE(0,so,1,2,"app-exam-table",4)(1,xo,3,2,"ng-container",5)(2,Ro,9,8,"ng-container",5)(3,Fo,4,9,"ng-template",null,0,t.C5r),2&a&&(t.Y8G("ngIf",o.examInfo.length&&!o.hasExamPoints.length),t.R7$(),t.Y8G("ngIf",o.hasExamPoints.length),t.R7$(),t.Y8G("ngIf",o.hasFailedExams))},dependencies:[d.YU,d.Sq,d.bT,d.T3,oo.P,b.$z,ft.K,d.GH,d.QX,h.D9,ot.O,dt.p]}),s})();var xt=l(33753);const $o=(e,s)=>({event:e,isBookingPossibleCurrentCase:s}),yo=(e,s)=>({date:e,time:s});function Do(e,s){1&e&&(t.j41(0,"em"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"noExam")))}
1function jo(e,s){1&e&&(t.j41(0,"span")(1,"em"),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&e&&(t.R7$(2),t.SpI(" ",t.bMT(3,1,"planYourExam2")," "))}function wo(e,s){if(1&e&&(t.qex(0),t.j41(1,"span"),t.EFF(2),t.nI1(3,"translate"),t.DNE(4,jo,4,3,"span",7),t.k0s(),t.bVm()),2&e){const n=t.XpG(2);t.R7$(2),t.SpI(" ",t.bMT(3,2,"planYourExam1")," "),t.R7$(2),t.Y8G("ngIf",null==n.exam?null:n.exam.isBookingPossibleCurrentCase)}}function Oo(e,s){if(1&e&&t.DNE(0,wo,5,4,"ng-container",6),2&e){const n=t.XpG(),a=t.sdS(11);t.Y8G("ngIf",!(null!=n.exam&&n.exam.events||null!=n.exam&&n.exam.currentEvent))("ngIfElse",a)}}function Po(e,s){1&e&&(t.qex(0),t.j41(1,"em"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.bVm()),2&e&&(t.R7$(2),t.SpI(" ",t.bMT(3,1,"examInReview")," "))}function Go(e,s){if(1&e&&t.eu8(0,9),2&e){const n=t.XpG(3),a=t.sdS(13);t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.l_i(2,$o,null==n.exam?null:n.exam.currentEvent,null==n.exam?null:n.exam.isBookingPossibleCurrentCase))}}function No(e,s){if(1&e&&t.DNE(0,Go,1,5,"ng-container",8),2&e){const n=t.XpG(2);t.Y8G("ngIf",(null==n.exam||null==n.exam.events?null:n.exam.events.length)&&(null==n.exam?null:n.exam.currentEvent))}}function Yo(e,s){if(1&e&&t.DNE(0,Po,4,3,"ng-container",6)(1,No,1,1,"ng-template",null,3,t.C5r),2&e){const n=t.sdS(2),a=t.XpG();t.Y8G("ngIf",a.isDateAfterExam&&!a.hasPoints&&a.isPositiveEvent)("ngIfElse",n)}}function Xo(e,s){if(1&e){const n=t.RV6();t.qex(0),t.j41(1,"span",10),t.EFF(2),t.nI1(3,"localeDateString"),t.nI1(4,"translate"),t.j41(5,"span",11),t.bIt("click",function(){t.eBV(n);const o=t.XpG(2).event,i=t.XpG();return t.Njj(i.cancelExam(o.eventId,o.examType))}),t.j41(6,"em",12),t.EFF(7),t.nI1(8,"translate"),t.k0s()()(),t.bVm()}if(2&e){const n=t.XpG(2).event;t.R7$(2),t.SpI(" ",t.i5U(4,4,"planExamRequested",t.l_i(9,yo,t.bMT(3,2,n.startDate),n.startTime.length>5?n.startTime.slice(0,-3):n.startTime))," "),t.R7$(5),t.JRh(t.bMT(8,7,"cancelExamReq"))}}function Vo(e,s){if(1&e&&(t.qex(0),t.EFF(1),t.nI1(2,"translate"),t.bVm()),2&e){const n=t.XpG(3).event;t.R7$(),t.Lme("",t.bMT(2,2,"typography.comma"),"",n.startTime.slice(0,-3),"")}}function Lo(e,s){if(1&e&&(t.qex(0),t.j41(1,"span"),t.EFF(2),t.nI1(3,"translate"),t.j41(4,"em")(5,"span"),t.EFF(6),t.nI1(7,"localeDateString"),t.k0s(),t.DNE(8,Vo,3,4,"ng-container",7),t.k0s()(),t.bVm()),2&e){const n=t.XpG(2).event,a=t.XpG();t.R7$(2),t.SpI(" ",t.bMT(3,3,"planExamApproved")," "),t.R7$(4),t.JRh(t.bMT(7,5,n.startDate)),t.R7$(2),t.Y8G("ngIf",n.examType===a.examTypes.internOnline)}}function zo(e,s){1&e&&(t.j41(0,"em")(1,"span"),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&e&&(t.R7$(2),t.JRh(t.bMT(3,1,"chooseDifferentDate")))}function Bo(e,s){if(1&e&&(t.qex(0),t.j41(1,"span",10),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"localeDateString"),t.nI1(5,"translate"),t.DNE(6,zo,4,3,"em",7),t.k0s(),t.bVm()),2&e){const n=t.XpG(2),a=n.event,o=n.isBookingPossibleCurrentCase;t.R7$(2),t.E5c(" ",t.bMT(3,4,"planExamDenied1")," ",t.bMT(4,6,a.startDate)," ",t.bMT(5,8,"planExamCancelled")," "),t.R7$(4),t.Y8G("ngIf",o)}}function Qo(e,s){1&e&&(t.qex(0),t.j41(1,"span",10),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.bVm()),2&e&&(t.R7$(2),t.SpI(" ",t.bMT(3,1,"examInReview")," "))}function Ao(e,s){1&e&&(t.qex(0),t.j41(1,"strong",13)(2,"em"),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.bVm()),2&e&&(t.R7$(3),t.SpI(" ",t.bMT(4,1,"examPassed")," "))}function Jo(e,s){if(1&e&&(t.qex(0),t.DNE(1,Xo,9,12,"ng-container",7)(2,Lo,9,7,"ng-container",7)(3,Bo,7,10,"ng-container",7)(4,Qo,4,3,"ng-container",7)(5,Ao,5,3,"ng-container",7),t.bVm()),2&e){const n=t.XpG().event,a=t.XpG();t.R7$(),t.Y8G("ngIf",n.statusId===a.eventStatus.untreated),t.R7$(),t.Y8G("ngIf",n.statusId===a.eventStatus.approved),t.R7$(),t.Y8G("ngIf",n.statusId===a.eventStatus.refused||n.statusId===a.eventStatus.deleted),t.R7$(),t.Y8G("ngIf",n.statusId===a.eventStatus.sendToTeacher||n.statusId===a.eventStatus.teacherReminder||n.statusId===a.eventStatus.teacherReminderPhone),t.R7$(),t.Y8G("ngIf",n.statusId===a.eventStatus.passed)}}function qo(e,s){1&e&&(t.qex(0),t.j41(1,"strong",13)(2,"em"),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.bVm()),2&e&&(t.R7$(3),t.SpI(" ",t.bMT(4,1,"examPassed")," "))}function Wo(e,s){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"examNotPassed2")," "))}function Uo(e,s){if(1&e&&(t.j41(0,"strong",15)(1,"em"),t.EFF(2),t.nI1(3,"translate"),t.DNE(4,Wo,3,3,"span",7),t.k0s()()),2&e){const n=t.XpG(3).isBookingPossibleCurrentCase;t.R7$(2),t.SpI(" ",t.bMT(3,2,"examNotPassed1")," "),t.R7$(2),t.Y8G("ngIf",n)}}function Ho(e,s){1&e&&(t.j41(0,"strong",15)(1,"em"),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&e&&(t.R7$(2),t.SpI(" ",t.bMT(3,1,"examNotPassedPractical")," "))}function Zo(e,s){if(1&e&&(t.qex(0),t.DNE(1,Uo,5,4,"strong",14)(2,Ho,4,3,"strong",14),t.bVm()),2&e){const n=t.XpG(2).event,a=t.XpG();t.R7$(),t.Y8G("ngIf",+n.examType===a.examTypes.internOnline||+n.examType===a.examTypes.internTheory||+n.examType===a.examTypes.internEssay),t.R7$(),t.Y8G("ngIf",+n.examType===a.examTypes.internPractice)}}function Ko(e,s){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"examNotPassed2")," "))}function ta(e,s){if(1&e&&(t.j41(0,"strong",15)(1,"em"),t.EFF(2),t.nI1(3,"translate"),t.DNE(4,Ko,3,3,"span",7),t.k0s()()),2&e){const n=t.XpG(3).isBookingPossibleCurrentCase;t.R7$(2),t.SpI(" ",t.bMT(3,2,"examNotParticipated")," "),t.R7$(2),t.Y8G("ngIf",n)}}function ea(e,s){1&e&&(t.j41(0,"strong",15)(1,"em"),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"translate"),t.k0s()()),2&e&&(t.R7$(2),t.Lme("",t.bMT(3,2,"examNotParticipated")," ",t.bMT(4,4,"contactSecretariatReExam"),""))}
1function na(e,s){if(1&e&&(t.qex(0),t.DNE(1,ta,5,4,"strong",14)(2,ea,5,6,"strong",14),t.bVm()),2&e){const n=t.XpG(2).event,a=t.XpG();t.R7$(),t.Y8G("ngIf",n.examType===a.examTypes.internTheory||n.examType===a.examTypes.internOnline),t.R7$(),t.Y8G("ngIf",n.examType===a.examTypes.internPractice)}}function oa(e,s){1&e&&(t.qex(0),t.j41(1,"strong",13)(2,"em"),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.bVm()),2&e&&(t.R7$(3),t.SpI(" ",t.bMT(4,1,"examPresent")," "))}function aa(e,s){1&e&&(t.qex(0),t.j41(1,"strong",15)(2,"em"),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.bVm()),2&e&&(t.R7$(3),t.SpI(" ",t.bMT(4,1,"examNotPresent")," "))}function sa(e,s){if(1&e&&t.DNE(0,qo,5,3,"ng-container",7)(1,Zo,3,2,"ng-container",7)(2,na,3,2,"ng-container",7)(3,oa,5,3,"ng-container",7)(4,aa,5,3,"ng-container",7),2&e){const n=t.XpG().event,a=t.XpG();t.Y8G("ngIf",n.points.passed===a.examPassed.yes),t.R7$(),t.Y8G("ngIf",n.points.passed===a.examPassed.no),t.R7$(),t.Y8G("ngIf",n.points.passed===a.examPassed.notParticipated),t.R7$(),t.Y8G("ngIf",n.points.passed===a.examPassed.present),t.R7$(),t.Y8G("ngIf",n.points.passed===a.examPassed.notPresent)}}function ia(e,s){if(1&e&&t.DNE(0,Jo,6,5,"ng-container",6)(1,sa,5,5,"ng-template",null,4,t.C5r),2&e){const n=s.event,a=t.sdS(2);t.Y8G("ngIf",!(null!=n&&n.points))("ngIfElse",a)}}let ra=(()=>{var e;class s{constructor(){this.cancelEvent=new t.bkB,this.isNoExam=!1,this.hasPoints=!1,this.isDateAfterExam=!1,this.isPositiveEvent=!1,this.examTypes=P.Y3,this.eventStatus=P.mV,this.examPassed=P.cG}ngOnInit(){var a;if(this.isNoExam=this.exam.examTypeId===this.examTypes.noExam,null!==(a=this.exam)&&void 0!==a&&a.currentEvent){this.isPositiveEvent=this.exam.currentEvent.isPositiveEvent,this.hasPoints=!!this.exam.currentEvent.points;const o=(0,T.I1)(),i=(0,T.I1)(this.exam.currentEvent.startDate),r=I.$.day;this.isDateAfterExam=o.isSameOrAfter(i.add(1,r),r)}}cancelExam(a,o){this.cancelEvent.emit({eventId:a,examTypeId:o})}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-exam-notifications"]],inputs:{exam:"exam",courseType:"courseType"},outputs:{cancelEvent:"cancelEvent"},decls:14,vars:10,consts:[["withExam",""],["withEvent",""],["hasEvent",""],["chain",""],["examPoints",""],[1,"fa-regular","fa-calendar-days"],[4,"ngIf","ngIfElse"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"text-warning"],[3,"click"],[1,"text-danger","underline","c-p"],[1,"text-success"],["class","text-danger",4,"ngIf"],[1,"text-danger"]],template:function(a,o){if(1&a&&(t.j41(0,"p"),t.nrm(1,"i",5),t.j41(2,"strong"),t.EFF(3),t.nI1(4,"translate"),t.nI1(5,"titleCaseFirstWord"),t.nI1(6,"translate"),t.k0s(),t.DNE(7,Do,3,3,"em",6)(8,Oo,1,2,"ng-template",null,0,t.C5r)(10,Yo,3,2,"ng-template",null,1,t.C5r),t.k0s(),t.DNE(12,ia,3,2,"ng-template",null,2,t.C5r)),2&a){const i=t.sdS(9);t.R7$(3),t.Lme("",t.bMT(5,6,t.bMT(4,4,o.isNoExam?"exam":o.exam.type)),"",t.bMT(6,8,"typography.colon"),""),t.R7$(4),t.Y8G("ngIf",o.isNoExam&&!(null!=o.exam&&null!=o.exam.events&&o.exam.events.length))("ngIfElse",i)}},dependencies:[d.bT,d.T3,h.D9,dt.p,xt.E],styles:["p[_ngcontent-%COMP%]{font-size:var(--font-size-93);margin-bottom:var(--space-0_5rem)}@media (max-width: 768px){.card-content[_ngcontent-%COMP%]{padding:var(--space-1rem);min-height:var(--size-140px)}}i[_ngcontent-%COMP%]{padding-right:var(--space-0_3rem);font-style:var(--font-style-normal)}\n\n/*# sourceMappingURL=exam-notifications.component.css.map*/"]}),s})();var Nt=l(82465),Yt=l(97230),Ct=l(19168),Xt=l(92656);const ca=["shopDialog"],H=e=>[e],la=(e,s)=>[e,s],ma=e=>({amount:e}),pa=e=>({formats:e}),da=(e,s)=>({startDate:e,endDate:s}),Vt=()=>["startDate","endDate"],Lt=()=>["courseName","StartDate","EndDate"],ua=()=>({symbol:!1,code:!0});function _a(e,s){1&e&&t.nrm(0,"app-spinner")}function ga(e,s){if(1&e&&t.nrm(0,"app-exam-start-warning",23),2&e){const n=t.XpG(2);t.Y8G("examStartsIn",null==n.course||null==n.course.examData?null:n.course.examData.examStartsIn)("details",!0)}}function fa(e,s){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"typography.comma")))}function ha(e,s){if(1&e&&(t.j41(0,"a",26)(1,"span"),t.EFF(2),t.k0s(),t.DNE(3,fa,3,3,"span",3),t.k0s()),2&e){const n=s.$implicit,a=s.last;t.Y8G("routerLink",t.eq3(3,H,"/student/ecampus/course/"+n.CourseId+"/details")),t.R7$(2),t.JRh(n.courseName),t.R7$(),t.Y8G("ngIf",!a)}}function va(e,s){if(1&e&&(t.qex(0),t.nrm(1,"i",24),t.j41(2,"strong"),t.EFF(3),t.nI1(4,"translate"),t.nI1(5,"translate"),t.k0s(),t.DNE(6,ha,4,5,"a",25),t.bVm()),2&e){const n=t.XpG(2);t.R7$(3),t.Lme("",t.bMT(4,3,"allroundCourse"),"",t.bMT(5,5,"typography.colon"),""),t.R7$(3),t.Y8G("ngForOf",n.course.childrenList)}}function xa(e,s){if(1&e&&(t.j41(0,"p"),t.nrm(1,"i",29),t.j41(2,"strong"),t.EFF(3),t.nI1(4,"translate"),t.nI1(5,"translate"),t.k0s(),t.j41(6,"span"),t.EFF(7),t.k0s()()),2&e){const n=t.XpG(3);t.R7$(3),t.Lme("",t.bMT(4,4,"teacher"),"",t.bMT(5,6,"typography.colon"),""),t.R7$(4),t.Lme("",n.course.teacher.firstName," ",n.course.teacher.lastName,"")}}function Ca(e,s){if(1&e&&t.EFF(0),2&e){const n=t.XpG(5);t.Lme(" ",n.course.campus.address," ",n.course.campus.addressNumber,",\xa0 ")}}function ba(e,s){if(1&e&&(t.qex(0),t.j41(1,"a",26),t.nI1(2,"routeT"),t.DNE(3,Ca,1,2),t.EFF(4),t.k0s(),t.bVm()),2&e){const n=t.XpG(4);t.R7$(),t.Y8G("routerLink",t.l_i(5,la,t.bMT(2,3,"/campus"),null==n.course.campus?null:n.course.campus.id)),t.R7$(2),t.vxM(n.course.campus.address&&n.course.campus.addressNumber?3:-1),t.R7$(),t.SpI(" ",n.course.campus.city," ")}}
1function Ea(e,s){if(1&e&&(t.j41(0,"a",26),t.EFF(1),t.k0s()),2&e){const n=t.XpG(4);t.Y8G("routerLink",t.eq3(2,H,"/student/ecampus/course/"+n.course.id+"/virtual-room")),t.R7$(),t.SpI(" ",n.course.campus.city," ")}}function Ta(e,s){if(1&e&&(t.j41(0,"p"),t.nrm(1,"i",30),t.j41(2,"strong"),t.EFF(3),t.nI1(4,"translate"),t.nI1(5,"translate"),t.k0s(),t.DNE(6,ba,5,8,"ng-container",31)(7,Ea,2,4,"ng-template",null,1,t.C5r),t.k0s()),2&e){const n=t.sdS(8),a=t.XpG(3);t.R7$(3),t.Lme("",t.bMT(4,4,"address"),"",t.bMT(5,6,"typography.colon"),""),t.R7$(3),t.Y8G("ngIf","virtual"!==a.course.subtype)("ngIfElse",n)}}function Ia(e,s){if(1&e&&(t.j41(0,"p"),t.nrm(1,"i",32),t.j41(2,"strong"),t.EFF(3),t.nI1(4,"translate"),t.nI1(5,"translate"),t.k0s(),t.j41(6,"span",33),t.EFF(7),t.nI1(8,"localeDateString"),t.nI1(9,"titlecase"),t.k0s()()),2&e){const n=t.XpG(3);t.R7$(3),t.Lme("",t.bMT(4,3,"nextLesson"),"",t.bMT(5,5,"typography.colon"),""),t.R7$(4),t.SpI(" ",t.bMT(9,9,t.bMT(8,7,n.course.nextClass.date))," ")}}function Sa(e,s){if(1&e&&(t.j41(0,"p"),t.nrm(1,"i",34),t.j41(2,"strong"),t.EFF(3),t.nI1(4,"translate"),t.nI1(5,"translate"),t.k0s(),t.j41(6,"span"),t.EFF(7),t.k0s()()),2&e){const n=t.XpG(3);t.R7$(3),t.Lme("",t.bMT(4,3,"local"),"",t.bMT(5,5,"typography.colon"),""),t.R7$(4),t.SpI(" ",null==n.course||null==n.course.nextClass?null:n.course.nextClass.classRoomName," ")}}function ka(e,s){1&e&&(t.j41(0,"p"),t.nrm(1,"i",35),t.j41(2,"strong"),t.EFF(3),t.nI1(4,"translate"),t.nI1(5,"translate"),t.k0s(),t.j41(6,"span",36),t.EFF(7),t.nI1(8,"translate"),t.k0s()()),2&e&&(t.R7$(3),t.Lme("",t.bMT(4,3,"nextLesson"),"",t.bMT(5,5,"typography.colon"),""),t.R7$(4),t.SpI(" ",t.bMT(8,7,"lessonsHasEnded")," "))}function Ra(e,s){if(1&e&&(t.j41(0,"p"),t.nrm(1,"i",35),t.j41(2,"strong"),t.EFF(3),t.nI1(4,"translate"),t.nI1(5,"translate"),t.k0s(),t.SS7(6),t.j41(7,"span"),t.EFF(8),t.nI1(9,"i18nSelector"),t.nI1(10,"translate"),t.k0s()()),2&e){const n=t.XpG(3);t.R7$(3),t.Lme("",t.bMT(4,4,"examGuidance"),"",t.bMT(5,6,"typography.colon"),"");const a=+n.course.examGuidance>1?+n.course.examGuidance:1;t.R7$(5),t.Lme("",a," ",t.bMT(10,11,t.i5U(9,8,"day",t.eq3(13,ma,a))),"")}}function Fa(e,s){1&e&&(t.j41(0,"p"),t.nrm(1,"i",35),t.j41(2,"strong"),t.EFF(3),t.nI1(4,"translate"),t.nI1(5,"translate"),t.k0s(),t.j41(6,"span",36),t.EFF(7),t.nI1(8,"translate"),t.k0s()()),2&e&&(t.R7$(3),t.Lme("",t.bMT(4,3,"nextLesson"),"",t.bMT(5,5,"typography.colon"),""),t.R7$(4),t.SpI(" ",t.bMT(8,7,"lessonsHasEnded")," "))}function Ma(e,s){if(1&e){const n=t.RV6();t.j41(0,"app-exam-notifications",39),t.bIt("cancelEvent",function(o){t.eBV(n);const i=t.XpG(5);return t.Njj(i.cancelExam(o))}),t.k0s()}if(2&e){const n=t.XpG().$implicit,a=t.XpG(4);t.Y8G("exam",n)("courseType",a.courseType)}}function $a(e,s){if(1&e&&(t.qex(0),t.DNE(1,Ma,1,2,"app-exam-notifications",38),t.bVm()),2&e){const n=s.$implicit,a=t.XpG(4);t.R7$(),t.Y8G("ngIf",a.examDefaultTexts.includes(n.examTypeId)||!a.examDefaultTexts.includes(n.examTypeId)&&(null==n?null:n.events)&&(null==n||null==n.events?null:n.events.length))}}function ya(e,s){if(1&e&&(t.qex(0),t.DNE(1,$a,2,1,"ng-container",37),t.bVm()),2&e){const n=t.XpG(3);t.R7$(),t.Y8G("ngForOf",n.course.examInfo)}}function Da(e,s){if(1&e){const n=t.RV6();t.j41(0,"button",40),t.bIt("click",function(){t.eBV(n);const o=t.XpG(3);return t.Njj(o.goToExam())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"examStartexam")," "))}function ja(e,s){1&e&&(t.qex(0),t.j41(1,"div",41)(2,"p"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"app-app-download",42),t.k0s(),t.bVm()),2&e&&(t.R7$(3),t.JRh(t.bMT(4,4,"examMobileToAppPrompt")),t.R7$(2),t.Y8G("classes","justify-content-center justify-content-md-start justify-content-lg-start justify-content-xl-start")("iOS",!0)("android",!0))}function wa(e,s){if(1&e&&(t.qex(0),t.j41(1,"h4",27),t.EFF(2),t.nI1(3,"generateCourseTitle"),t.nI1(4,"translate"),t.k0s(),t.DNE(5,xa,8,8,"p",3)(6,Ta,9,8,"p",3)(7,Ia,10,11,"p",3)(8,Sa,8,7,"p",3)(9,ka,9,9,"p",3)(10,Ra,11,15,"p",3)(11,Fa,9,9,"p",3)(12,ya,2,1,"ng-container",3),t.qex(13),t.DNE(14,Da,3,3,"button",28)(15,ja,6,6,"ng-container",3),t.bVm()()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(t.bMT(4,13,t.bMT(3,11,n.course))),t.R7$(3),t.Y8G("ngIf",n.courseType.home&&(null==n.course?null:n.course.teacher)),t.R7$(),t.Y8G("ngIf",n.courseType.group&&n.c
1ourse.campus),t.R7$(),t.Y8G("ngIf",!n.course.courseEnded&&n.courseType.group&&(null==n.course.nextClass?null:n.course.nextClass.date)),t.R7$(),t.Y8G("ngIf",!n.course.courseEnded&&n.courseType.group&&(null==n.course||null==n.course.nextClass?null:n.course.nextClass.classRoomName)),t.R7$(),t.Y8G("ngIf",n.course.courseEnded&&n.courseType.group),t.R7$(),t.Y8G("ngIf",n.courseType.home&&!!n.course.examGuidance),t.R7$(),t.Y8G("ngIf",n.courseType.home&&0==+n.course.examGuidance),t.R7$(),t.Y8G("ngIf",null==n.course||null==n.course.examInfo?null:n.course.examInfo.length),t.R7$(2),t.Y8G("ngIf",(null==n.course?null:n.course.enableExam)&&!!n.isDesktop),t.R7$(),t.Y8G("ngIf",(null==n.course?null:n.course.enableExam)&&!n.isDesktop)}}function Oa(e,s){if(1&e){const n=t.RV6();t.j41(0,"button",46),t.bIt("click",function(){t.eBV(n);const o=t.XpG(3);return t.Njj(o.bookExam(o.course))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"examPlaning")," "))}function Pa(e,s){if(1&e&&t.nrm(0,"app-start-zoom-class",47),2&e){const n=t.XpG(3);t.Y8G("lesson",n.course.nextClass)("btnClasses","btn-sm ml-0 mat-accent")("pageId",n.course.id)}}function Ga(e,s){if(1&e&&(t.qex(0),t.j41(1,"div",43),t.DNE(2,Oa,3,3,"button",44)(3,Pa,1,3,"app-start-zoom-class",45),t.k0s(),t.bVm()),2&e){const n=t.XpG(2);t.R7$(2),t.Y8G("ngIf",n.canBookAnExam),t.R7$(),t.Y8G("ngIf",!n.course.courseEnded&&n.courseType.vr&&!n.isLastVirtualLesson)}}function Na(e,s){if(1&e&&(t.EFF(0),t.nI1(1,"dateformat")),2&e){const n=t.XpG(3);t.SpI(" ",t.i5U(1,1,n.course.importantMessage.dateCreated,t.eq3(6,pa,t.eq3(4,H,n.DATEFORMATS.iso.dateTimeShort)))," ")}}function Ya(e,s){if(1&e&&(t.j41(0,"div",48)(1,"div",8)(2,"div",49)(3,"h5")(4,"strong"),t.EFF(5),t.nI1(6,"translate"),t.k0s()()(),t.j41(7,"div",50)(8,"p",51),t.DNE(9,Na,2,8),t.k0s()(),t.j41(10,"div",10),t.nrm(11,"app-read-more-less",52),t.k0s()()()),2&e){const n=t.XpG(2);t.R7$(5),t.SpI(" ",t.bMT(6,4,"importantMessage.message")," "),t.R7$(4),t.vxM(n.course.importantMessage.dateCreated?9:-1),t.R7$(2),t.Y8G("text",n.course.importantMessage.message)("characters",250)}}function Xa(e,s){1&e&&(t.j41(0,"h4",27),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"lessonDays")))}function Va(e,s){1&e&&(t.j41(0,"h4",27),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"studyGuidance")))}function La(e,s){if(1&e&&(t.qex(0),t.j41(1,"div",59),t.nrm(2,"app-lesson-table",60),t.k0s(),t.bVm()),2&e){const n=t.XpG(3);t.R7$(2),t.Y8G("courseDatesOfClasses",n.course.lessons)("nextClass",n.course.nextClass)("activeOnline",1==+n.course.activeOnline||n.courseType.vr)}}function za(e,s){1&e&&(t.j41(0,"th",68),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"startingDateLabel")))}function Ba(e,s){if(1&e&&(t.j41(0,"td",69),t.EFF(1),t.nI1(2,"localeDateString"),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.JRh(t.bMT(2,1,n.startDate))}}function Qa(e,s){1&e&&(t.j41(0,"th",68),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"endingDateLabel")))}function Aa(e,s){if(1&e&&(t.j41(0,"td",69),t.EFF(1),t.nI1(2,"localeDateString"),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.JRh(t.bMT(2,1,n.endDate))}}function Ja(e,s){1&e&&t.nrm(0,"tr",70)}function qa(e,s){1&e&&t.nrm(0,"tr",71)}function Wa(e,s){if(1&e&&(t.qex(0),t.j41(1,"table",61),t.qex(2,62),t.DNE(3,za,3,3,"th",63)(4,Ba,3,3,"td",64),t.bVm(),t.qex(5,65),t.DNE(6,Qa,3,3,"th",63)(7,Aa,3,3,"td",64),t.bVm(),t.DNE(8,Ja,1,0,"tr",66)(9,qa,1,0,"tr",67),t.k0s(),t.bVm()),2&e){const n=t.XpG(3);t.R7$(),t.Y8G("dataSource",t.eq3(6,H,t.l_i(3,da,n.startDate,n.endDate))),t.R7$(7),t.Y8G("matHeaderRowDef",t.lJ4(8,Vt)),t.R7$(),t.Y8G("matRowDefColumns",t.lJ4(9,Vt))}}function Ua(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",74)(1,"app-student-exam-info",75),t.bIt("bookExam",function(o){t.eBV(n);const i=t.XpG(4);return t.Njj(i.bookExam(o))}),t.k0s()()}if(2&e){const n=t.XpG(4);t.R7$(),t.Y8G("course",n.course)}}function Ha(e,s){if(1&e&&(t.j41(0,"div",72)(1,"h4",27,2),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.DNE(5,Ua,2,1,"div",73),t.k0s()),2&e){const n=t.XpG(3);t.R7$(3),t.JRh(t.bMT(4,2,"exam")),t.R7$(2),t.Y8G("ngIf",!n.isAllRound)}}function Za(e,s){if(1&e){const n=t.RV6();t.j41(0,"p")(1,"button",76),t.bIt("click",function(){t.eBV(n);const o=t.XpG(3);return t.Njj(o.openShopModal())}),t.EFF(2),t.nI1(3,"translate"),t.k0s()()}2&e&&(t.R7$(2),t.JRh(t.bMT(3,1,"goToShop")))}function Ka(e,s){if(1&e&&(t.qex(0),t.j41(1,"div",53),t.DNE(2,Xa,3,3,"h4",54)(3,Va,3,3,"h4",54)(4,La,3,3,"ng-container",3)(5,Wa,10,10,"ng-container",3),t.k0s(),t.DNE(6,Ha,6,4,"div",55),t.j41(7,"div",56)(8,"h4",27),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.j41(11,"div",57)(12,"strong"),t.EFF(13),t.nI1(14,"translate"),t.nI1(15,"translate"),t.k0s(),t.nrm(16,"p",58),t.DNE(17,Za,4,3,"p",3),t.k0s()(),t.bVm()),2&e){const n=t.XpG(2);t.R7$(2),t.Y8G("ngIf",n.courseType.group),t.R7$(),t.Y8G("ngIf",n.courseType.home),t.R7$(),t.Y8G("ngIf",n.courseType.group),t.R7$(),t.Y8G("ngIf",n.courseType.home),t.R7$(),t.Y8G("ngIf",null==n.course||null==n.course.examInfo?null:n.course.examInfo.length),t.R7$(3),t.JRh(t.bMT(10,10,"accessories")),t.R7$(4),t.Lme("",t.bMT(14,12,"followingThingInClass"),"",t.bMT(15,14,"typography.colon"),""),t.R7$(3),t.Y8G("innerHTML",n.course.courseMaterialWebsite,t.npT),t.R7$(),t.Y8G("ngIf",n.course.materials&&n.course.materials[0])}}
1function ts(e,s){if(1&e&&t.nrm(0,"app-exam-start-warning",23),2&e){const n=t.XpG().$implicit;t.Y8G("examStartsIn",null==n||null==n.examData?null:n.examData.examStartsIn)("details",!0)}}function es(e,s){if(1&e&&(t.j41(0,"div",78)(1,"mat-card",79)(2,"mat-card-header",80)(3,"a",81),t.DNE(4,ts,1,2,"app-exam-start-warning",15),t.nrm(5,"img",82),t.nI1(6,"generateImage"),t.j41(7,"span",83)(8,"b"),t.EFF(9),t.k0s()()()(),t.j41(10,"mat-card-footer",84)(11,"a",85),t.EFF(12),t.nI1(13,"translate"),t.k0s()()()()),2&e){const n=s.$implicit;t.R7$(3),t.Y8G("routerLink",t.eq3(10,H,"/student/ecampus/course/"+n.CourseId+"/details")),t.R7$(),t.Y8G("ngIf",null==n||null==n.examData?null:n.examData.examStartsIn),t.R7$(),t.Y8G("src",t.bMT(6,6,n),t.B4B),t.R7$(4),t.JRh(n.courseName),t.R7$(2),t.Y8G("routerLink",t.eq3(12,H,"/student/ecampus/course/"+n.CourseId+"/details")),t.R7$(),t.SpI(" ",t.bMT(13,8,"expStartLearning")," ")}}function ns(e,s){if(1&e&&(t.qex(0),t.j41(1,"div",8)(2,"div",10)(3,"h4",27),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"div",8),t.DNE(7,es,14,14,"div",77),t.k0s()()(),t.bVm()),2&e){const n=t.XpG(2);t.R7$(4),t.JRh(t.bMT(5,2,"cpModulesPartOfAllround")),t.R7$(3),t.Y8G("ngForOf",n.course.childrenList)}}function os(e,s){1&e&&(t.j41(0,"th",93),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"studentLabel")))}function as(e,s){if(1&e&&(t.j41(0,"td",94),t.EFF(1),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.JRh(n.courseName)}}function ss(e,s){1&e&&(t.j41(0,"th",93),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"startingDateLabel")))}function is(e,s){if(1&e&&(t.j41(0,"td",94),t.EFF(1),t.nI1(2,"localeDateString"),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.JRh(t.bMT(2,1,n.StartDate))}}function rs(e,s){1&e&&(t.j41(0,"th",93),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"endingDateLabel")))}function cs(e,s){if(1&e&&(t.j41(0,"td",94),t.EFF(1),t.nI1(2,"localeDateString"),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.JRh(t.bMT(2,1,n.EndDate))}}function ls(e,s){1&e&&t.nrm(0,"tr",70)}function ms(e,s){1&e&&t.nrm(0,"tr",71)}function ps(e,s){if(1&e&&(t.j41(0,"div",86)(1,"h4",27),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"table",87),t.qex(5,88),t.DNE(6,os,3,3,"th",89)(7,as,2,1,"td",90),t.bVm(),t.qex(8,91),t.DNE(9,ss,3,3,"th",89)(10,is,3,3,"td",90),t.bVm(),t.qex(11,92),t.DNE(12,rs,3,3,"th",89)(13,cs,3,3,"td",90),t.bVm(),t.DNE(14,ls,1,0,"tr",66)(15,ms,1,0,"tr",67),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,4,"cmpCoursePlanning")),t.R7$(2),t.Y8G("dataSource",n.course.childrenList),t.R7$(10),t.Y8G("matHeaderRowDef",t.lJ4(6,Lt)),t.R7$(),t.Y8G("matRowDefColumns",t.lJ4(7,Lt))}}function ds(e,s){if(1&e&&(t.j41(0,"div",10)(1,"h4",27),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"p",95),t.nI1(5,"sanitize"),t.k0s()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"courseContent")),t.R7$(2),t.Y8G("innerHTML",t.bMT(5,4,n.course.courseContent),t.npT)}}function us(e,s){if(1&e&&(t.j41(0,"div",10)(1,"h4",27),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"p",96),t.nI1(5,"sanitize"),t.k0s()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"courseMaterials")),t.R7$(2),t.Y8G("innerHTML",t.bMT(5,4,n.course.material),t.npT)}}function _s(e,s){if(1&e&&(t.j41(0,"div",97)(1,"h4",27),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"app-course-materials-list",98),t.j41(5,"a",99),t.EFF(6),t.nI1(7,"translate"),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,4,"courseMaterial")),t.R7$(2),t.Y8G("materials",n.course.materials),t.R7$(),t.FS9("href",n.shopLink,t.B4B),t.R7$(),t.SpI(" ",t.bMT(7,6,"goToShop")," ")}}function gs(e,s){if(1&e&&(t.j41(0,"div",10)(1,"h4",27),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"p",96),t.nI1(5,"sanitize"),t.k0s()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"internship")),t.R7$(2),t.Y8G("innerHTML",t.bMT(5,4,n.course.internshipText),t.npT)}}function fs(e,s){if(1&e&&(t.j41(0,"div",10)(1,"h4",27),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"p",95),t.nI1(5,"sanitize"),t.k0s()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"careerOpportunities")),t.R7$(2),t.Y8G("innerHTML",t.bMT(5,4,n.course.carreerOportunties),t.npT)}}function hs(e,s){if(1&e&&(t.j41(0,"div",8)(1,"div",9)(2,"div",8)(3,"div",10)(4,"div",11)(5,"div",12)(6,"div",13)(7,"div",14),t.DNE(8,ga,1,2,"app-exam-start-warning",15),t.nrm(9,"img",16),t.nI1(10,"generateImage"),t.k0s(),t.j41(11,"div",17),t.DNE(12,va,7,7,"ng-container",3)(13,wa,16,15,"ng-container",3)(14,Ga,4,2,"ng-container",3),t.k0s()()(),t.j41(15,"div",18),t.DNE(16,Ya,12,6,"div",19)(17,Ka,18,16,"ng-container",3)(18,ns,8,4,"ng-container",3),t.k0s(),t.DNE(19,ps,16,8,"div",20)(20,ds,6,6,"div",21)(21,us,6,6,"div",21)(22,_s,8,8,"div",22)(23,gs,6,6,"div",21)(24,fs,6,6,"div",21),t.k0s()()()()()),2&e){const n=t.XpG();t.R7$(8),t.Y8G("ngIf",null==n.course||null==n.course.examData?null:n.course.examData.examStartsIn),t.R7$(),t.Y8G("src",t.bMT(10,15,n.course),t.B4B)("alt",null==n.course||null==n.course.photo?null:n.course.photo.description),t.R7$(3),t.Y8G("ngIf",n.isAllRound),t.R7$(),t.Y8G("ngIf",!n.isAllRound),t.R7$(),t.Y8G("ngIf",!n.isAllRound),t.R7$(2),t.Y8G("ngIf",null==n.course?null:n.course.importantMessage),t.R7$(),t.Y8G("ngIf",!n.isAllRound),t.R7$(),t.Y8G("ngIf",n.isAllRound),t.R7$(),t.Y8G("ngIf",n.isAllRound),t.R7$(),t.Y8G("ngIf",null==n.course?null:n.course.courseContent),t.R7$(),t.Y8G("ngIf",null==n.course?null:n.course.material),t.R7$(),t.Y8G("ngIf",(null==n.course||null==n.course.materials?null:n.course.materials.length)>0),t.R7$(),t.Y8G("ngIf",null==n.course?null:n.course.internshipText),t.R7$(),t.Y8G("ngIf",null==n.course?null:n.course.carreerOportunties)}}function vs(e,s){if(1&e&&(t.j41(0,"span",113),t.EFF(1),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.JRh(n.originalPrice)}}function xs(e,s){if(1&e&&(t.j41(0,"div",103)(1,"mat-card",104)(2,"a",105),t.nrm(3,"img",106),t.nI1(4,"generateFastImage"),t.k0s(),t.j41(5,"mat-card-content")(6,"h5",107),t.EFF(7),t.k0s(),t.j41(8,"p"),t.DNE(9,vs,2,1,"span",108),t.j41(10,"b",109),t.EFF(11),t.nI1(12,"localeCurrency"),t.k0s()()(),t.j41(13,"mat-card-footer",110)(14,"a",111),t.nrm(15,"i",112),t.j41(16,"b"),t.EFF(17),t.nI1(18,"translate"),t.k0s()()()()()),2&e){const n=s.$implicit;t.R7$(2),t.FS9("href",n.shopLink,t.B4B),t.R7$(),t.Y8G("src",t.bMT(4,7,n.picture),t.B4B),t.R7$(4),t.JRh(n.name),t.R7$(2),t.Y8G("ngIf",""!==n.originalPrice),t.R7$(2),t.JRh(t.i5U(12,9,n.price,t.lJ4(14,ua))),t.R7$(3),t.FS9("href",n.shopLink,t.B4B),t.R7$(3),t.JRh(t.bMT(18,12,"orderNow"))}}function Cs(e,s){if(1&e&&(t.j41(0,"div",100)(1,"div",101)(2,"div",8),t.DNE(3,xs,19,15,"div",102),t.k0s()()()),2&e){const n=t.XpG();t.R7$(3),t.Y8G("ngForOf",n.course.materials)}}let bs=(()=>{var e;class s{constructor(){this.eCampusService=(0,t.WQX)(j.u),this.coursesService=(0,t.WQX)(mt._),this.router=(0,t.WQX)(E.Ix),this.deviceService=(0,t.WQX)(O.Kg),this.configService=(0,t.WQX)(Dt.w),this.studentExamService=(0,t.WQX)(gt.o),this.dialogService=(0,t.WQX)(M.bZ),this.DATEFORMATS=I.x,this.isDesktop=!1,this.shopLink="",this.examTypes=P.Y3,this.eventStatus=P.mV,this.examPassed=P.cG,this.examDefaultTexts=P.vm,this.destroy$=new y.B}ngOnInit(){this.isDesktop=this.deviceService.isDesktop(),this.shopLink=this.configService.getBeautyblueUrl(),this.eCampusService.getCurrentCourse().pipe((0,W.Z)(a=>{if(this.resetComponent(),a.allround){const{childrenList:i}=a;
1i&&i.length&&i.forEach(r=>{var c;const{examInfo:m}=r,u=m.find(g=>g.examTypeId===this.examTypes.internOnline);let _=null;if(u&&null!=u&&null!==(c=u.events)&&void 0!==c&&c.length&&(_=this.studentExamService.examLogic(u)),r.image){const g=this.configService.getFastcrmUrl();r.image="".concat(g).concat(r.image)}r.examData=_})}else{var o;const{examInfo:i}=a,r=i.find(m=>m.examTypeId===this.examTypes.internOnline);let c=null;r&&null!=r&&null!==(o=r.events)&&void 0!==o&&o.length&&(c=this.studentExamService.examLogic(r)),a.examData=c}return(0,F.of)(a)}),(0,W.Z)(a=>{var o;return null!=a&&null!==(o=a.examData)&&void 0!==o&&o.enabled?this.eCampusService.getExamList(a.id).pipe((0,x.T)(i=>{var r;return(null==i||null===(r=i.body)||void 0===r?void 0:r.data)||[]}),(0,x.T)(i=>{if(i&&i.length){const[{exams:r}]=i,[c]=r;return(0,C.A)((0,C.A)({},a),{},{examData:(0,C.A)((0,C.A)({},a.examData),{},{exam:c}),enableExam:!0})}return a})):(0,F.of)(a)}),(0,v.Q)(this.destroy$)).subscribe({next:a=>{var o,i;if(this.course=a,this.isAllRound=this.course.allround,this.onlineExam=null!=a&&a.examData?a.examData.exam:null,this.checkCourseType(),this.course.teacherVacations&&this.course.teacherVacations.length>0&&this.checkTeacherVacation(this.course.teacherVacations),this.course.publishNotice&&this.dialogService.open(B.m,{data:{type:q.m6.info,header:"notificationTitle",headerClasses:1==+this.course.publishNoticeStatus?"bg-danger":"bg-success",titleClasses:"text-white",component:Zn,componentData:{course:this.course}},maxWidth:500,disableClose:!0,panelClass:"material-modal"}),this.course.importantMessages.length){const[r]=this.course.importantMessages;this.course.importantMessage=r}if(this.isAllRound||(this.lastLesson=[...this.course.lessons].pop()),this.course.type===k.q1.group&&this.course.subtype===k.q1.virtual&&!this.isAllRound&&(this.isLastVirtualLesson=this.coursesService.isDateTodayOrAfter(this.lastLesson)),this.courseType.home){const{customerCourseStartDate:r,customerCourseEndDate:c,startDate:m,subscriptionDate:u}=this.course;if(r&&c)this.startDate=r,this.endDate=c;else{const _=m||r||u,g=(0,T.I1)(_,I.x.iso.date);if(g.isValid())this.startDate=(0,T.I1)(_,I.x.iso.date).toDate(),this.endDate=g.add(1,I.$.year).add(10,I.$.day).toDate();else{const{customerCourseStartDateString:R,customerCourseEndDateString:G}=this.course;this.startDate=R,this.endDate=G}}}if(this.studentExamService.setScheduledExamInfo(this.course.examInfo),this.studentExamService.getScheduledExamInfo().pipe((0,v.Q)(this.destroy$)).subscribe(r=>{this.course=(0,C.A)((0,C.A)({},this.course),{},{examInfo:r}),this.canBookAnExam=!!this.course.examInfo.filter(c=>null==c?void 0:c.isBookingPossibleCurrentCase).length}),this.isAllRound&&null!==(o=this.course)&&void 0!==o&&o.childrenList&&null!==(i=this.course)&&void 0!==i&&i.childrenList.length){const r=[...this.course.childrenList].sort((c,m)=>(0,T.I1)(c.StartDate).diff((0,T.I1)(m.StartDate)));this.course.childrenList=r}this.isLoading=!1},error:a=>{this.isLoading=!1}})}checkTeacherVacation(a){for(const o of a)if(new Date(o.from)<new Date&&new Date<new Date(o.to)){const{from:i,to:r,text:c}=o;this.dialogService.open(B.m,{data:{type:q.m6.warning,header:"vacTeacherModalTitle",component:qn.j,buttonText:"popupBtn1",componentData:{from:i,to:r,message:c}},panelClass:["material-modal","col-12","col-md-4"]})}}goToExam(){const a=this.course.id,o=this.onlineExam.id;this.isLoading=!0,new Promise((i,r)=>{setTimeout(()=>{this.eCampusService.updateExam({courseId:a,examId:o}),i()},1e3)}).then(()=>{this.router.navigate(["/student/exam"])})}cancelExam({eventId:a,examTypeId:o}){this.studentExamService.openExamCancelModal(this.course.id,a,o)}openShopModal(){this.dialogService.open(B.m,{data:{type:q.m6.info,template:this.shopDialog},minWidth:"60vw",panelClass:"material-modal"})}bookExam(a,o){this.studentExamService.scheduleExam(a,o||null)}checkCourseType(){const{type:a,subtype:o}=this.course;a===k.q1.home&&(this.courseType.home=!0),a===k.q1.group&&(this.courseType.group=!0),a===k.q1.group&&o===k.q1.virtual&&(this.courseType.vr=!0)}resetComponent(){this.courseType={home:!1,group:!1,vr:!1},this.isLoading=!0,this.lastLesson=null,this.isLastVirtualLesson=!1,this.canBookAnExam=!1,this.startDate=null,this.endDate=null}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-elo-course"]],viewQuery:function(a,o){if(1&a&&t.GBs(ca,7),2&a){let i;t.mGM(i=t.lsd())&&(o.shopDialog=i.first)}},decls:9,vars:5,consts:[["shopDialog",""],["virtualcampus",""],["exam",""],[4,"ngIf"],["appBgColor","",1,"row","row","py-3","mb-3","mt-2"],[1,"col-12","col-md-6"],[1,"mb-0","text-white"],["class","row",4,"ngIf"],[1,"row"],[1,"col-12","mb-4"],[1,"col-12"],[1,"row","course-card"],[1,"col-12","pb-3"],[1,"row","mb-3"],[1,"card-image","col-12","col-md-4"],[3,"examStartsIn","details",4,"ngIf"],["id","course-thumbnail",1,"d-none","d-md-block","img-fluid",3,"src","alt"],[1,"card-content","col-12","col-md-8","py-0"],[1,"col-12","course-info-body","mt-4"],["class","importantMessages p-4",4,"ngIf"],["class","col-12 py-3",4,"ngIf"],["class","col-12",4,"ngIf"],["class","col-12 py-3 mb-3",4,"ngIf"],[3,"examStartsIn","details"],[1,"fas","fa-th"],[3,"routerLink",4,"ngFor","ngForOf"],[3,"routerLink"],[1,"ecampus-title"],["mat-raised-button","","type","button","color","success","class","mt-2",3,"click",4,"ngIf"],[1,"fas","fa-graduation-cap"],[1,"fas","fa-map-marker-alt"],[4,"ngIf","ngIfElse"],[1,"far","fa-calendar-alt"],[1,"text-info"],[1,"far","fa-building"],[1,"far","fa-calendar-check"],[1,"text-success"],[4,"ngFor","ngForOf"],[3,"exam","courseType","cancelEvent",4,"ngIf"],[3,"cancelEvent","exam","courseType"],["mat-raised-button","","type","button","color","success",1,"mt-2",3,"click"],[1,"importantMessages","my-3","p-3"],[3,"classes","iOS","android"],[1,"button-container","mt-3"],["type","button","class","text-uppercase","data-cy","initBookExam","mat-raised-button","","color","accent",3,"click",4,"ngIf"],["class","d-inline-block",3,"lesson","btnClasses","pageId",4,"ngIf"],["type","button","data-cy","initBookExam","mat-raised-button","","color","accent",1,"text-uppercase",3,"click"],[1,"d-inline-block",3,"lesson","btnClasses","pageId"],[1,"importantMessages","p-4"],[1,"col-8","text-left"],[1,"col-4","text-right"],[1,"title-color"],[3,"text","characters"],[1,"course-info-days","mt-2"],["class","ecampus-title",4,"ngIf"],["class","course-info-exam mt-3",4,"ngIf"],[1,"course-info-equip","mt-3"],[1,"course-info-equip-content","px-3","py-3"],[3,"innerHTML"],[1,"py-3"],[3,"courseDatesOfClasses","nextClass","activeOnline"],["mat-table","",1,"py-2",3,"dataSource"],["matColumnDef","startDate"],["mat-header-cell","","class","text-center",4,"matHeaderCellDef"],["mat-cell","","class","text-center uppercase-first-letter",4,"matCellDef"],["matColumnDef","endDate"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"text-center"],["mat-cell","",1,"text-center","uppercase-first-letter"],["mat-header-row",""],["mat-row",""],[1,"course-info-exam","mt-3"],["class","course-info-exam-content pt-3",4,"ngIf"],[1,"course-info-exam-content","pt-3"],["data-cy","initBookExam",3,"bookExam","course"],["type","button","mat-raised-button","","color","primary",1,"text-uppercase",3,"click"],["class","col-12 col-sm-6 col-md-4 col-lg-3",4,"ngFor","ngForOf"],[1,"col-12","col-sm-6","col-md-4","col-lg-3"],[1,"my-2"],[1,"p-0"],[1,"position-relative","overflow-hidden",3,"routerLink"],["alt","","appOnErrorImage","",1,"img-fluid",3,"src"],[1,"card-title"],[1,"p-3","text-center"],["mat-raised-button","","color","accent",1,"text-uppercase",3,"routerLink"],[1,"col-12","py-3"],["mat-table","",1,"py-3",3,"dataSource"],["matColumnDef","courseName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","align-top","mat-cell","",4,"matCellDef"],["matColumnDef","StartDate"],["matColumnDef","EndDate"],["mat-header-cell",""],["mat-cell","","mat-cell","",1,"align-top"],[1,"px-3","py-3","course-content",3,"innerHTML"],[1,"px-3","py-3",3,"innerHTML"],[1,"col-12","py-3","mb-3"],[3,"materials"],["target","_blank","mat-raised-button","","color","primary",1,"text-uppercase",3,"href"],["mat-dialog-content",""],[1,"container-fluid"],["class","col-12 col-md-6 col-lg-4",4,"ngFor","ngForOf"],[1,"col-12","col-md-6","col-lg-4"],[1,"m-2"],[3,"href"],["alt","","appOnErrorImage","",1,"shop-dialog-image",3,"src"],[1,"mt-2"],["class","price-org red-text",4,"ngIf"],[1,"green-text"],[1,"d-flex","flex-column","justify-content-center","align-items-center"],["mat-button","","color","primary","target","_blank",1,"my-2",3,"href"],[1,"fa-solid","fa-cart-shopping","mr-1","text-white"],[1,"price-org","red-text"]],template:function(a,o){1&a&&(t.DNE(0,_a,1,0,"app-spinner",3),t.j41(1,"div",4)(2,"div",5)(3,"h5",6),t.EFF(4),t.nI1(5,"translate"),t.k0s()()(),t.DNE(6,hs,25,17,"div",7)(7,Cs,4,1,"ng-template",null,0,t.C5r)),2&a&&(t.Y8G("ngIf",o.isLoading),t.R7$(4),t.JRh(t.bMT(5,3,o.course&&!o.isAllRound?"courseInfo":"allroundInfo")),t.R7$(2),t.Y8G("ngIf",!o.isLoading))},dependencies:[d.Sq,d.bT,X.k,Kn.g,to.V,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.KS,p.$R,p.YZ,p.NB,b.It,b.$z,D.RN,D.m2,D.WQ,D.MM,M.Yi,ft.K,wt.t,eo.V,no.x,Ot.h,Q.e,E.Wk,Mo,ra,d.PV,h.D9,ot.O,lt.C,Nt.v,Yt.u,U.s,ht.z,Ct.l,xt.E,Xt.h],styles:[".btn[_ngcontent-%COMP%], .btn[_ngcontent-%COMP%]:hover{box-shadow:var(--shadow-none)}.btn[_ngcontent-%COMP%]:hover{opacity:var(--opacity-70)}.hide[_ngcontent-%COMP%]{display:none}.importantMessages[_ngcontent-%COMP%]{background-color:var(--color-info-2)} .course-content ul{padding-left:var(--space-16px)}h4[_ngcontent-%COMP%]{font-size:var(--font-size-125);text-transform:var(--text-transform-uppercase)}.course-info-days[_ngcontent-%COMP%], .course-info-equip[_ngcontent-%COMP%], .course-info-exam[_ngcontent-%COMP%]{padding:var(--space-1rem) var(--space-0)}strong[_ngcontent-%COMP%]{font-weight:var(--font-weight-bold)}.card-content[_ngcontent-%COMP%]{min-height:var(--size-200px);position:relative;padding:var(--space-1rem) var(--space-2rem)}
1.card-content[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{margin-top:var(--space-0)}.card-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:var(--font-size-93);margin-bottom:var(--space-0_5rem)}i[class*=fa-][_ngcontent-%COMP%]{padding-right:var(--space-0_3rem)}h5[_ngcontent-%COMP%]{font-size:var(--font-size-100);font-weight:var(--font-weight-bold)}table[_ngcontent-%COMP%]{overflow-y:scroll}table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{width:var(--size-100-percent);border-bottom:var(--border-xxs-solid-tint-4)}th[_ngcontent-%COMP%]{font-weight:var(--font-weight-bold)}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{text-align:left;font-size:var(--font-size-81)}i[_ngcontent-%COMP%]{font-style:var(--font-style-normal)} .fixed-sn main{padding-top:var(--space-0)} .exam-modal .modal-header{border-bottom:var(--border-style-none)!important}.card-title[_ngcontent-%COMP%]{position:absolute;bottom:var(--space-negative-1px);left:var(--space-0);width:var(--size-100-percent);background:var(--color-darkgrey-transparency-1);margin-bottom:var(--space-0);font-size:var(--font-size-100);color:var(--color-tint-1);font-weight:var(--font-weight-normal);padding-left:var(--space-1rem);padding-top:var(--space-0_5rem);padding-bottom:var(--space-0_5rem)}@media (min-width: 768px){.card-title[_ngcontent-%COMP%]{font-size:var(--font-size-131)}}@media (max-width: 768px){ .fixed-sn main{padding-top:var(--space-0)}.card-content[_ngcontent-%COMP%]{padding:var(--space-1rem);min-height:var(--size-140px)}} #important-message_content img{max-width:var(--size-100-percent);margin-bottom:var(--space-15px)} p#important-message_content{margin-bottom:var(--space-0)}.shop-dialog-image[_ngcontent-%COMP%]{width:var(--size-100-percent)}.price-org[_ngcontent-%COMP%]{-webkit-text-decoration:var(--text-decoration-strikethrough);text-decoration:var(--text-decoration-strikethrough);font-size:var(--font-size-81);margin:var(--space-0) var(--space-5px)}\n\n/*# sourceMappingURL=student-elo-course.component.css.map*/"]}),s})();var at=l(24624),A=l(22047);const Es=["documentsTablePaginator"],Ts=["documentsTableSort"],Is=e=>({hide:e}),Ss=()=>["second-header-type","second-header-name"],ks=e=>({display:e});function Rs(e,s){1&e&&(t.j41(0,"th",22),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"type")," "))}function Fs(e,s){1&e&&t.nrm(0,"i",26)}function Ms(e,s){1&e&&t.nrm(0,"i",27)}function $s(e,s){if(1&e&&(t.j41(0,"td",23),t.DNE(1,Fs,1,0,"i",24)(2,Ms,1,0,"i",25),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Y8G("ngIf","folder"===n.type),t.R7$(),t.Y8G("ngIf","file"===n.type)}}function ys(e,s){1&e&&(t.j41(0,"th",22),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"title")," "))}function Ds(e,s){if(1&e&&(t.j41(0,"td",28),t.EFF(1),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.JRh(n.name)}}function js(e,s){1&e&&(t.j41(0,"th",22),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"date")," "))}function ws(e,s){if(1&e&&(t.j41(0,"td",28),t.EFF(1),t.nI1(2,"dateformat"),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.JRh(t.bMT(2,1,n.created))}}function Os(e,s){1&e&&(t.j41(0,"th",23),t.nrm(1,"i",29),t.k0s()),2&e&&t.BMQ("colspan",1)}function Ps(e,s){1&e&&(t.j41(0,"th",30),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.BMQ("colspan",2),t.R7$(),t.JRh(t.bMT(2,2,"mainFolder")))}function Gs(e,s){1&e&&t.nrm(0,"tr",31)}function Ns(e,s){if(1&e){const n=t.RV6();t.j41(0,"tr",32),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.showAllDocuments())}),t.k0s()}if(2&e){const n=t.XpG();t.Y8G("ngStyle",t.eq3(1,ks,n.inFolder?"table-row":"none"))}}function Ys(e,s){if(1&e){const n=t.RV6();t.j41(0,"tr",33),t.bIt("click",function(){const o=t.eBV(n).$implicit,i=t.XpG();return t.Njj(i.showDoc(o))}),t.k0s()}}function Xs(e,s){1&e&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"br"),t.EFF(4),t.nI1(5,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,2,"dearStudent")," "),t.R7$(3),t.SpI(" ",t.bMT(5,4,"eloDocumentText")," "))}let Vs=(()=>{var e;class s{constructor(){this.route=(0,t.WQX)(E.nX),this.loaderService=(0,t.WQX)(Y.Z),this.eCampusService=(0,t.WQX)(j.u),this.helperService=(0,t.WQX)(et.w),this.documentsTable=new p.I6([]),this.documentsTableColumns=["type","name","created"],this.documents=[],this.allDocuments=[],this.maxVisibleItems=8,this.inFolder=!1,this.destroy$=new y.B}ngOnInit(){this.route.parent.params.pipe((0,N.n)(({id:a})=>(this.loaderService.setIsLoading(!0),this.id=a,this.eCampusService.getFolderContents(a,"file").pi
1pe((0,x.T)(o=>{var i;return(null==o||null===(i=o.body)||void 0===i?void 0:i.data)||[]}),(0,w.W)(()=>(0,F.of)([]))))),(0,v.Q)(this.destroy$)).subscribe(a=>{this.inFolder=!1,this.allDocuments=a,this.loadData(a),this.loaderService.setIsLoading(!1)})}loadData(a){const i=a.files?a.files:[],r=[...(a.folders?a.folders:[]).map(c=>({type:"folder",name:c.name,folderId:c.id,created:c.dateCreated?c.dateCreated:""})),...i.map(c=>({type:"file",name:c.name,path:c.path.path,created:c.dateCreated?c.dateCreated:""}))];this.documents=this.helperService.sortDataWithIndex(r,"name").sort((c,m)=>c.type>m.type?-1:0),this.documentsTable.paginator=this.paginator,this.documentsTable.sort=this.documentsTableSort,this.documentsTable.data=this.documents}showDoc(a){"file"===a.type?window.open(a.path,"_blank"):this.eCampusService.getFolderContents(this.id,"file",a.folderId).pipe((0,x.T)(o=>{var i;return(null==o||null===(i=o.body)||void 0===i?void 0:i.data)||[]}),(0,v.Q)(this.destroy$)).subscribe(o=>{const i=o;this.inFolder=!0,this.loadData(i)})}showAllDocuments(){this.loadData(this.allDocuments),this.inFolder=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-elo-document"]],viewQuery:function(a,o){if(1&a&&(t.GBs(Es,5),t.GBs(Ts,5)),2&a){let i;t.mGM(i=t.lsd())&&(o.paginator=i.first),t.mGM(i=t.lsd())&&(o.documentsTableSort=i.first)}},decls:27,vars:16,consts:[["documentsTableSort","matSort"],["documentsTablePaginator",""],["appBgColor","",1,"row","row","py-3","mb-3","mt-2"],[1,"col-12","col-md-6"],[1,"mb-0","text-white"],[1,"mat-elevation-z8",3,"ngClass"],["mat-table","","matSort","","matSortActive","created","matSortDisableClear","","matSortDirection","desc",1,"documents-table","mat-table-hover",3,"dataSource"],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","","class","col",4,"matHeaderCellDef"],["mat-cell","","style","text-align: center",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",4,"matCellDef"],["matColumnDef","created"],["matColumnDef","second-header-type"],["mat-cell","","style","text-align: center",4,"matHeaderCellDef"],["matColumnDef","second-header-name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["class","secondary-table-head","mat-header-row","",3,"ngStyle","click",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize","hidePageSize","showFirstLastButtons"],[3,"ngIf"],["mat-header-cell","","mat-sort-header","",1,"col"],["mat-cell","",2,"text-align","center"],["class","fa-folder-open fa-2x far",4,"ngIf"],["class","fa-file-alt fa-2x far",4,"ngIf"],[1,"fa-folder-open","fa-2x","far"],[1,"fa-file-alt","fa-2x","far"],["mat-cell",""],[1,"fa-folder-open","fa-2x","far",2,"align-self","center"],["mat-header-cell",""],["mat-header-row",""],["mat-header-row","",1,"secondary-table-head",3,"click","ngStyle"],["mat-row","",3,"click"]],template:function(a,o){1&a&&(t.j41(0,"div",2)(1,"div",3)(2,"h5",4),t.EFF(3),t.nI1(4,"translate"),t.k0s()()(),t.j41(5,"div",5)(6,"table",6,0),t.qex(8,7),t.DNE(9,Rs,3,3,"th",8)(10,$s,3,2,"td",9),t.bVm(),t.qex(11,10),t.DNE(12,ys,3,3,"th",8)(13,Ds,2,1,"td",11),t.bVm(),t.qex(14,12),t.DNE(15,js,3,3,"th",8)(16,ws,3,3,"td",11),t.bVm(),t.qex(17,13),t.DNE(18,Os,2,1,"th",14),t.bVm(),t.qex(19,15),t.DNE(20,Ps,3,4,"th",16),t.bVm(),t.DNE(21,Gs,1,0,"tr",17)(22,Ns,1,3,"tr",18)(23,Ys,1,0,"tr",19),t.k0s(),t.nrm(24,"mat-paginator",20,1),t.k0s(),t.DNE(26,Xs,6,6,"ng-template",21)),2&a&&(t.R7$(3),t.JRh(t.bMT(4,11,"documents")),t.R7$(2),t.Y8G("ngClass",t.eq3(13,Is,!(o.documents&&(!o.documents||o.documents.length)||o.inFolder))),t.R7$(),t.Y8G("dataSource",o.documentsTable),t.R7$(15),t.Y8G("matHeaderRowDef",o.documentsTableColumns),t.R7$(),t.Y8G("matHeaderRowDef",t.lJ4(15,Ss)),t.R7$(),t.Y8G("matRowDefColumns",o.documentsTableColumns),t.R7$(),t.Y8G("length",o.documents.length)("pageSize",o.maxVisibleItems)("hidePageSize",!0)("showFirstLastButtons",!0),t.R7$(2),t.Y8G("ngIf",!(o.documents&&(!o.documents||o.documents.length)||o.inFolder)))},dependencies:[d.YU,d.bT,d.B3,X.k,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.KS,p.$R,p.YZ,p.NB,at.iy,A.B4,A.aE,h.D9,ot.O],styles:[".documents-table[_ngcontent-%COMP%]{table-layout:fixed;width:var(--size-min-content)}tr.mat-mdc-header-row[_ngcontent-%COMP%]:nth-child(2) > .mat-mdc-header-cell[_ngcontent-%COMP%]:nth-child(1) > div[_ngcontent-%COMP%]{flex-direction:column}th.mat-header-cell[_ngcontent-%COMP%]{text-align:center!important}.mdc-data-table__header-row[_ngcontent-%COMP%]{background-color:var(--color-black-transparency-5)}.mdc-data-table__header-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-left:var(--space-3px)}.secondary-table-head.mdc-data-table__header-row[_ngcontent-%COMP%]{background-color:var(--color-tint-2)}tr.mat-mdc-row.mdc-data-table__row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{word-break:break-all;word-wrap:break-word}tr.mat-mdc-row.mdc-data-table__row[_ngcontent-%COMP%]:nth-child(odd){background-color:var(--color-black-transparency-2)}.btn[_ngcontent-%COMP%], .btn[_ngcontent-%COMP%]:hover{box-shadow:var(--shadow-none)}.btn[_ngcontent-%COMP%]:hover{opacity:var(--opacity-70)}.hide[_ngcontent-%COMP%]{display:none}.documents-table[_ngcontent-%COMP%] .mat-column-type[_ngcontent-%COMP%]{width:var(--size-10-percent)}
1.documents-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%]{width:var(--size-50-percent)}.documents-table[_ngcontent-%COMP%] .mat-column-created[_ngcontent-%COMP%]{width:var(--size-40-percent)}@media (max-width: 768px){.documents-table[_ngcontent-%COMP%] .mat-column-type[_ngcontent-%COMP%]{width:var(--size-20-percent)}.documents-table[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%], .documents-table[_ngcontent-%COMP%] .mat-column-created[_ngcontent-%COMP%]{width:var(--size-40-percent)}.nav-elo[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:var(--space-0_8rem) var(--space-1_1rem)}}@media (max-width: 360px){table.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:var(--font-size-62);padding-left:var(--space-5px);padding-right:var(--space-0)}.nav-elo[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:var(--space-0_4rem) var(--space-1_1rem);font-size:var(--font-size-68)}}\n\n/*# sourceMappingURL=student-elo-document.component.css.map*/"]}),s})();var ut=l(97978),zt=l(24248);const Ls=["evaluationPaginator"],zs=(e,s)=>({left:e,right:s}),Bs=e=>({value:e});function Qs(e,s){1&e&&(t.j41(0,"h5",24),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"openExercise")))}function As(e,s){1&e&&(t.j41(0,"h5",24),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"tasks")))}function Js(e,s){1&e&&(t.j41(0,"th",25),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"score")))}function qs(e,s){if(1&e&&(t.qex(0),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"translate"),t.bVm()),2&e){const n=t.XpG(2).$implicit;t.R7$(),t.Lme(" ",t.i5U(2,2,"typography.slash",t.l_i(8,zs,n.point,n.maxPoints))," (",t.i5U(3,5,"typography.percent",t.eq3(11,Bs,n.evaluation)),") ")}}function Ws(e,s){if(1&e&&(t.qex(0),t.DNE(1,qs,4,13,"ng-container",28),t.bVm()),2&e){const n=t.XpG().$implicit;t.R7$(),t.Y8G("ngIf",+n.evaluation>=0&&+n.point>=0&&+n.maxPoints>=0)}}function Us(e,s){1&e&&(t.j41(0,"i"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"pending")))}function Hs(e,s){if(1&e&&(t.j41(0,"td",26),t.DNE(1,Ws,2,1,"ng-container",27)(2,Us,3,3,"ng-template",null,1,t.C5r),t.k0s()),2&e){const n=s.$implicit,a=t.sdS(3);t.R7$(),t.Y8G("ngIf",n.evaluatedByTeacher)("ngIfElse",a)}}function Zs(e,s){1&e&&(t.qex(0),t.EFF(1),t.nI1(2,"translate"),t.bVm()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"succeeded")," "))}function Ks(e,s){1&e&&(t.qex(0),t.EFF(1),t.nI1(2,"translate"),t.bVm()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"makeAgain.student")," "))}function ti(e,s){if(1&e&&(t.j41(0,"th",29),t.DNE(1,Zs,3,3,"ng-container",28)(2,Ks,3,3,"ng-container",28),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngIf","exercise"===n.type),t.R7$(),t.Y8G("ngIf","task"===n.type)}}function ei(e,s){1&e&&t.nrm(0,"i",33)}function ni(e,s){1&e&&t.nrm(0,"i",34)}function oi(e,s){if(1&e&&(t.qex(0),t.DNE(1,ei,1,0,"i",31)(2,ni,1,0,"i",32),t.bVm()),2&e){const n=t.XpG(2).$implicit;t.R7$(),t.Y8G("ngIf",+n.evaluation>=0&&+n.evaluation>=60),t.R7$(),t.Y8G("ngIf",+n.evaluation>=0&&+n.evaluation<60)}}function ai(e,s){1&e&&(t.EFF(0),t.nI1(1,"translate")),2&e&&t.SpI(" ",t.bMT(1,1,"yes")," ")}function si(e,s){1&e&&t.DNE(0,ai,2,3,"ng-template")}function ii(e,s){1&e&&(t.EFF(0),t.nI1(1,"translate")),2&e&&t.SpI(" ",t.bMT(1,1,"no")," ")}function ri(e,s){1&e&&t.DNE(0,ii,2,3,"ng-template")}function ci(e,s){if(1&e&&t.DNE(0,si,1,0,null,28)(1,ri,1,0,null,28),2&e){const n=t.XpG(3).$implicit;t.Y8G("ngIf",n.makeAgain),t.R7$(),t.Y8G("ngIf",!n.makeAgain)}}function li(e,s){1&e&&t.DNE(0,ci,2,2,"ng-template")}function mi(e,s){if(1&e&&(t.qex(0),t.DNE(1,oi,3,2,"ng-container",28)(2,li,1,0,null,28),t.bVm()),2&e){const n=t.XpG(2);t.R7$(),t.Y8G("ngIf","exercise"===n.type),t.R7$(),t.Y8G("ngIf","task"===n.type)}}function pi(e,s){if(1&e&&(t.j41(0,"td",30),t.DNE(1,mi,3,2,"ng-container",28),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Y8G("ngIf",n.evaluatedByTeacher)}}function di(e,s){1&e&&(t.j41(0,"th",29),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"submittedTask")))}function ui(e,s){if(1&e){const n=t.RV6();t.j41(0,"i",36),t.bIt("click",function(){t.eBV(n);const o=t.XpG().$implicit,i=t.XpG();return t.Njj(i.showResult(o))}),t.k0s()}}function _i(e,s){if(1&e&&(t.j41(0,"td",30),t.DNE(1,ui,1,0,"i",35),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Y8G("ngIf",n.evaluatedByTeacher)}}
1function gi(e,s){1&e&&t.nrm(0,"tr",37)}function fi(e,s){1&e&&t.nrm(0,"tr",38)}let Bt=(()=>{var e;class s{constructor(){this.eCampusService=(0,t.WQX)(j.u),this.router=(0,t.WQX)(E.Ix),this.toastrService=(0,t.WQX)(tt.tw),this.translateService=(0,t.WQX)(h.c$),this.deviceDetectorService=(0,t.WQX)(O.Kg),this.goToAllEx=new t.bkB,this.maxVisibleItems=4,this.isTask=!1,this.shownColumns=["time","score","succeededMakeAgain","comment","submittedTask"],this.destroy$=new y.B}ngOnInit(){const{id:a}=this.ex;this.isTask="task"===this.type,this.deviceDetectorService.isMobile()&&(this.shownColumns=["score","succeededMakeAgain","submittedTask"]),this.eCampusService.getAssignmentEvaluations(this.type,a).pipe((0,x.T)(o=>{var i;return(null==o||null===(i=o.body)||void 0===i?void 0:i.data)||null}),(0,w.W)(o=>(0,F.of)(null)),(0,v.Q)(this.destroy$)).subscribe(o=>{if(!o)return this.toastrService.error(this.translateService.instant(this.isTask?"teacherTaskNotFound":"teacherExerciseNotFound")),void this.showAllEx();this.evaluationsDataSource=new p.I6(o.map(i=>{const r=null==i?void 0:i.time;if(!r)return i;const c=(0,T.I1)(r,I.x.iso.dateTimeShortNoSeconds);return i.time=c.format(I.x.display.dateTime),i})),this.evaluationsDataSource.paginator=this.evaluationPaginator})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}showResult(a){this.router.navigate("exercise"===this.type?["/student/ecampus/evaluation/".concat(this.courseId,"/").concat(this.ex.id,"/").concat(a.id)]:["/student/ecampus/task/evaluation/".concat(this.courseId,"/").concat(this.ex.id,"/").concat(a.id)])}showAllEx(){this.goToAllEx.emit()}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-elo-ex-evaluation"]],viewQuery:function(a,o){if(1&a&&t.GBs(Ls,5),2&a){let i;t.mGM(i=t.lsd())&&(o.evaluationPaginator=i.first)}},inputs:{courseId:"courseId",ex:"ex",type:"type"},outputs:{goToAllEx:"goToAllEx"},decls:32,vars:16,consts:[["evaluationPaginator",""],["noChecked",""],["id","ev",1,"pb-3"],["appBgColor","",1,"row","py-3","mb-3"],[1,"col-12","col-md-6"],[3,"ngIf"],[1,"row"],[1,"col-12"],[1,"mat-elevation-z4"],["mat-table","",3,"dataSource"],["name","time",3,"headerText"],["matColumnDef","score"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","succeededMakeAgain"],["mat-header-cell","","class","text-center",4,"matHeaderCellDef"],["mat-cell","","class","text-center",4,"matCellDef"],["name","comment",3,"headerText"],["matColumnDef","submittedTask"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSize","hidePageSize"],["type","button","mat-button","","color","primary",1,"ml-0",3,"click"],[1,"fas","fa-angle-left","mr-2"],[1,"mb-0","text-white"],["mat-header-cell",""],["mat-cell",""],[4,"ngIf","ngIfElse"],[4,"ngIf"],["mat-header-cell","",1,"text-center"],["mat-cell","",1,"text-center"],["class","fas fa-check fa-2x text-success",4,"ngIf"],["class","fas fa-times fa-2x text-danger",4,"ngIf"],[1,"fas","fa-check","fa-2x","text-success"],[1,"fas","fa-times","fa-2x","text-danger"],["class","far fa-play-circle fa-2x pointer",3,"click",4,"ngIf"],[1,"far","fa-play-circle","fa-2x","pointer",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(a,o){if(1&a){const i=t.RV6();t.j41(0,"div",2)(1,"div",3)(2,"div",4),t.DNE(3,Qs,3,3,"ng-template",5)(4,As,3,3,"ng-template",5),t.k0s()(),t.j41(5,"div",6)(6,"div",7)(7,"div",8)(8,"table",9),t.nrm(9,"mat-text-column",10),t.nI1(10,"translate"),t.qex(11,11),t.DNE(12,Js,3,3,"th",12)(13,Hs,4,2,"td",13),t.bVm(),t.qex(14,14),t.DNE(15,ti,3,2,"th",15)(16,pi,2,1,"td",16),t.bVm(),t.nrm(17,"mat-text-column",17),t.nI1(18,"translate"),t.qex(19,18),t.DNE(20,di,3,3,"th",15)(21,_i,2,1,"td",16),t.bVm(),t.DNE(22,gi,1,0,"tr",19)(23,fi,1,0,"tr",20),t.k0s(),t.nrm(24,"mat-paginator",21,0),t.k0s()()()(),t.j41(26,"div",6)(27,"div",7)(28,"button",22),t.bIt("click",function(){return t.eBV(i),t.Njj(o.showAllEx())}),t.nrm(29,"i",23),t.EFF(30),t.nI1(31,"translate"),t.k0s()()()}2&a&&(t.R7$(3),t.Y8G("ngIf","exercise"===o.type),t.R7$(),t.Y8G("ngIf","task"===o.type),t.R7$(4),t.Y8G("dataSource",o.evaluationsDataSource),t.R7$(),t.Y8G("headerText",t.bMT(10,10,"submittedOn")),t.R7$(8),t.Y8G("headerText",t.bMT(18,12,"feedback")),t.R7$(5),t.Y8G("matHeaderRowDef",o.shownColumns),t.R7$(),t.Y8G("matRowDefColumns",o.shownColumns),t.R7$(),t.Y8G("pageSize",o.maxVisibleItems)("hidePageSize",!0),t.R7$(6),t.SpI(" ",t.bMT(31,14,"backToOverview")," "))},dependencies:[d.bT,X.k,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.KS,p.$R,p.YZ,p.NB,p.Ez,at.iy,b.$z,h.D9],styles:[".pointer[_ngcontent-%COMP%]{cursor:pointer}th[_ngcontent-%COMP%]{font-weight:var(--font-weight-bold)}\n\n/*# sourceMappingURL=elo-ex-evaluation.component.css.map*/"]}),s})();const hi=["autoExercisesSort"],vi=["autoExercisesPaginator"],xi=["openExercisesPaginator"],Ci=["openExercisesSort"],bi=["randomExercisesPaginator"],Ei=["completedExerciseDialog"],Z=e=>({hide:e}),Qt=e=>({value:e}),Ti=(e,s)=>({left:e,right:s});function Ii(e,s){1&e&&(t.j41(0,"th",42),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"start")))}function Si(e,s){if(1&e){const n=t.RV6();t.j41(0,"td",43)(1,"a",44),t.bIt("click",function(){const o=t.eBV(n).$implicit,i=t.XpG();return t.Njj(i.exerciseSolving(o,"autoEx"))}),t.nrm(2,"i",45),t.k0s()()}}function ki(e,s){1&e&&(t.j41(0,"th",46),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"title")))}function Ri(e,s){if(1&e&&(t.j41(0,"td",47),t.EFF(1),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.JRh(n.name)}}function Fi(e,s){1&e&&(t.j41(0,"th",46),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"chapter")))}function Mi(e,s){if(1&e&&(t.j41(0,"td",47),t.EFF(1),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Lme("",n.chapter," ",n.chapterTitle,"")}}function $i(e,s){1&e&&(t.j41(0,"th",48),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"score")))}function yi(e,s){if(1&e&&(t.EFF(0),t.nI1(1,"translate")),2&e){const n=t.XpG().$implicit;t.SpI(" ",t.i5U(1,1,"typography.percent",t.eq3(4,Qt,null==n.lastResult?null:n.lastResult.evaluation))," ")}}function Di(e,s){if(1&e&&(t.j41(0,"td",47),t.DNE(1,yi,2,6),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.vxM(null!=n.lastResult&&n.lastResult.evaluation?1:-1)}}function ji(e,s){1&e&&t.nrm(0,"tr",49)}function wi(e,s){1&e&&t.nrm(0,"tr",50)}function Oi(e,s){1&e&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"br"),t.EFF(4),t.nI1(5,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,2,"dearStudent")," "),t.R7$(3),t.SpI(" ",t.bMT(5,4,"eloAutocorrectExText")," "))}function Pi(e,s){1&e&&(t.j41(0,"th",48),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"score")))}function Gi(e,s){if(1&e&&(t.j41(0,"td",47),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"translate"),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Lme(" ",t.i5U(2,2,"typography.slash",t.l_i(8,Ti,n.allPoints,n.allMaxPoints))," (",t.i5U(3,5,"typography.percent",t.eq3(11,Qt,n.evaluation)),") ")}}function Ni(e,s){1&e&&t.nrm(0,"tr",49)}function Yi(e,s){1&e&&t.nrm(0,"tr",50)}function Xi(e,s){1&e&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"br"),t.EFF(4),t.nI1(5,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,2,"dearStudent")," "),t.R7$(3),t.SpI(" ",t.bMT(5,4,"openExerciseText4")," "))}function Vi(e,s){1&e&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"i",51),t.EFF(4),t.nI1(5,"translate"),t.nrm(6,"i",52),t.EFF(7),t.nI1(8,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,3,"openExerciseText1")," "),t.R7$(3),t.SpI(" . ",t.bMT(5,5,"openExerciseText2")," "),t.R7$(3),t.SpI(" ",t.bMT(8,7,"openExerciseText3")," "))}function Li(e,s){1&e&&(t.j41(0,"th",42),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"start")))}
1function zi(e,s){if(1&e){const n=t.RV6();t.j41(0,"a",44),t.bIt("click",function(){t.eBV(n);const o=t.XpG().$implicit,i=t.XpG();return t.Njj(i.exerciseSolving(o,"autoEx"))}),t.nrm(1,"i",45),t.k0s()}}function Bi(e,s){if(1&e&&(t.j41(0,"td",43),t.DNE(1,zi,2,0,"a",53),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Y8G("ngIf",n.allowed)}}function Qi(e,s){1&e&&(t.j41(0,"th",46),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"title")))}function Ai(e,s){if(1&e&&(t.j41(0,"td",47),t.EFF(1),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.JRh(n.name)}}function Ji(e,s){1&e&&(t.j41(0,"th",46),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"chapter")))}function qi(e,s){if(1&e&&(t.j41(0,"td",47),t.EFF(1),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Lme("",n.chapter," ",n.chapterTitle,"")}}function Wi(e,s){1&e&&(t.j41(0,"th",42),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"succeeded")))}function Ui(e,s){1&e&&t.nrm(0,"i",56)}function Hi(e,s){1&e&&t.nrm(0,"i",57)}function Zi(e,s){if(1&e&&(t.qex(0),t.DNE(1,Ui,1,0,"i",54)(2,Hi,1,0,"i",55),t.bVm()),2&e){const n=t.XpG().$implicit;t.R7$(),t.Y8G("ngIf",n.lastResult&&n.lastResult.evaluation>=60),t.R7$(),t.Y8G("ngIf",n.lastResult&&n.lastResult.evaluation<60)}}function Ki(e,s){if(1&e&&(t.j41(0,"td",43),t.DNE(1,Zi,3,2,"ng-container",37),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Y8G("ngIf",n.evaluatedByTeacher)}}function tr(e,s){1&e&&(t.j41(0,"th",42),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"evaluation.evaluation")))}function er(e,s){if(1&e){const n=t.RV6();t.j41(0,"i",59),t.bIt("click",function(){t.eBV(n);const o=t.XpG(2).$implicit,i=t.XpG();return t.Njj(i.exerciseEvaluation(o,"exercise"))}),t.k0s()}}function nr(e,s){if(1&e&&(t.qex(0),t.DNE(1,er,1,0,"i",58),t.bVm()),2&e){const n=t.XpG().$implicit;t.R7$(),t.Y8G("ngIf",n.lastResult)}}function or(e,s){if(1&e&&(t.j41(0,"td",43),t.DNE(1,nr,2,1,"ng-container",37),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Y8G("ngIf",n.lastResult)}}function ar(e,s){1&e&&t.nrm(0,"tr",49)}function sr(e,s){1&e&&t.nrm(0,"tr",50)}function ir(e,s){1&e&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"br"),t.EFF(4),t.nI1(5,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,2,"dearStudent")," "),t.R7$(3),t.SpI(" ",t.bMT(5,4,"openExerciseText4")," "))}function rr(e,s){if(1&e){const n=t.RV6();t.j41(0,"app-ecampus-assignment",60),t.bIt("goToAllEx",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.goToAllEx())}),t.k0s()}if(2&e){const n=t.XpG();t.Y8G("ex",n.ex)("type",n.exType)("courseId",n.id)("questionType",n.questionType)}}function cr(e,s){if(1&e){const n=t.RV6();t.j41(0,"app-elo-ex-evaluation",61),t.bIt("goToAllEx",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.goToAllEx())}),t.k0s()}if(2&e){const n=t.XpG();t.Y8G("type",n.typeEvaluation)("ex",n.ex)("courseId",n.id)}}function lr(e,s){1&e&&(t.j41(0,"div",62),t.nrm(1,"i",63),t.j41(2,"p"),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"div",64)(6,"button",65),t.EFF(7),t.nI1(8,"translate"),t.nI1(9,"uppercase"),t.k0s()()),2&e&&(t.R7$(3),t.JRh(t.bMT(4,2,"textOpenExModal")),t.R7$(4),t.SpI(" ",t.bMT(9,6,t.bMT(8,4,"ok"))," "))}let mr=(()=>{var e;class s{constructor(){this.route=(0,t.WQX)(E.nX),this.websiteService=(0,t.WQX)(z.j),this.eCampusService=(0,t.WQX)(j.u),this.dialogService=(0,t.WQX)(M.bZ),this.deviceDetectorService=(0,t.WQX)(O.Kg),this.loaderService=(0,t.WQX)(Y.Z),this.maxVisibleItems=4,this.hasEx=!1,this.showEvaluations=!1,this.randomQuestionsNum=20,this.autoExercisesColumns=["startbutton","name","chapter","score"],this.openExercisesColumns=["startbutton","name","chapter","succeeded","submitDate","evaluation"],this.randomExercisesColumns=["date","numberQuestions","score"],this.destroy$=new y.B,this.exerciseFallback={autoExercises:[],openExercises:[]}}ngOnInit(){this.route.parent.params.pipe((0,x.T)(({id:a})=>{this.hasEx=!1,this.showEvaluations=!1,this.id=a}),(0,N.n)(()=>{this.loaderService.setIsLoading(!0);const a=this.eCampusService.getExercise(this.id).pipe((0,x.T)(i=>{var r;return(null==i||null===(r=i.body)||void 0===r?void 0:r.data)||this.exerciseFallback}),(0,x.T)(i=>({autoExercises:i.autoExercises.map(m=>(0,C.A)((0,C.A)({},m),{},{chapter:+m.chapter})),openExercises:i.openExercises.map(m=>{const u=this.setSubmitDate(m);return(0,C.A)((0,C.A)({},m),{},{chapter:+m.chapter,submitDate:u})})})),(0,w.W)(()=>(0,F.of)(this.exerciseFallback))),o=this.eCampusService.getExerciseRandomSolving(this.id
1).pipe((0,x.T)(i=>{var r;return(null==i||null===(r=i.body)||void 0===r?void 0:r.data)||[]}),(0,w.W)(()=>(0,F.of)([])));return(0,pt.p)([a,o])}),(0,v.Q)(this.destroy$)).subscribe(([a,o])=>{this.autoExercisesDataSource=new ut.p(a.autoExercises),this.autoExercisesDataSource.sort=this.autoExercisesSort,this.autoExercisesDataSource.paginator=this.autoExercisesPaginator,this.openExercisesDataSource=new ut.p(a.openExercises),this.openExercisesDataSource.sort=this.openExercisesSort,this.openExercisesDataSource.paginator=this.openExercisesPaginator,this.randomExercisesDataSource=new ut.p(o),this.randomExercisesDataSource.paginator=this.randomExercisesPaginator,this.loaderService.setIsLoading(!1)}),this.deviceDetectorService.isMobile()&&(this.openExercisesColumns=["startbutton","name","succeeded","evaluation"])}exerciseEvaluation(a,o){this.ex=a,this.typeEvaluation=o,this.showEvaluations=!0}goToAllEx(){this.ngOnInit(),this.showEvaluations=!1,this.hasEx=!1}exerciseSolving(a,o){"openEx"!==o||a.lastResult&&!a.evaluatedByTeacher?"openEx"!==o?(this.questionType="exercise",this.hasEx=!0,this.ex=a,this.exType=o,this.websiteService.setPartialIsolation(!0)):this.dialogService.open(B.m,{data:{header:"openExercise",headerClasses:"main-color",titleClasses:"text-white",template:this.completedExerciseDialog},maxWidth:360,panelClass:"material-modal"}):(this.questionType="exercise",this.hasEx=!0,this.ex=a,this.exType=o,this.websiteService.setPartialIsolation(!0))}getRandomQuestions(){this.randomQuestionsNum>100&&(this.randomQuestionsNum=100),this.eCampusService.getExerciseRandom(this.id,this.randomQuestionsNum).pipe((0,v.Q)(this.destroy$)).subscribe(a=>{if(200===a.status){const{exerciseId:o}=a.body.data;this.ex={courseId:this.id,id:o},this.questionType="exercise",this.hasEx=!0,this.exType="random"}})}numberOnly(a){const o=a.which?a.which:a.keyCode;return!(o>31&&(o<48||o>57))}setSubmitDate(a){const{lastResult:o}=a||{};return o?(0,T.I1)(o.time,I.x.iso.dateTimeShort).format(I.x.display.date):""}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-elo-exercise"]],viewQuery:function(a,o){if(1&a&&(t.GBs(hi,5),t.GBs(vi,5),t.GBs(xi,5),t.GBs(Ci,5),t.GBs(bi,5),t.GBs(Ei,7)),2&a){let i;t.mGM(i=t.lsd())&&(o.autoExercisesSort=i.first),t.mGM(i=t.lsd())&&(o.autoExercisesPaginator=i.first),t.mGM(i=t.lsd())&&(o.openExercisesPaginator=i.first),t.mGM(i=t.lsd())&&(o.openExercisesSort=i.first),t.mGM(i=t.lsd())&&(o.randomExercisesPaginator=i.first),t.mGM(i=t.lsd())&&(o.completedExerciseDialog=i.first)}},decls:100,vars:67,consts:[["autoExercisesSort","matSort"],["autoExercisesPaginator",""],["randomExercisesPaginator",""],["openExercisesSort","matSort"],["openExercisesPaginator",""],["completedExerciseDialog",""],[3,"ngClass"],["id","autoEX"],["appBgColor","",1,"row","row","py-3","mb-3","mt-2"],[1,"col-12","col-md-6"],[1,"mb-0","text-white"],[1,"mat-elevation-z4","mb-3",3,"ngClass"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","startbutton"],["mat-header-cell","","class","text-center",4,"matHeaderCellDef"],["mat-cell","","class","text-center",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chapter"],["matColumnDef","score"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSize","hidePageSize"],[3,"ngIf"],["id","randomEx"],[1,"mat-elevation-z4","mb-2",3,"ngClass"],["mat-table","",3,"dataSource"],["name","date",3,"headerText"],["name","numberQuestions",3,"headerText"],[1,"pb-3",3,"ngClass"],[1,"randomq-form-field","mr-3"],["matInput","","type","number","id","randomQuestionsNum","required","","min","1","max","100","name","randomQuestionsNum",1,"randomQinput",3,"keypress","ngModelChange","ngModel"],["type","button","mat-button","","color","primary",1,"py-4",3,"click"],[1,"far","fa-play-circle","fa-2x","mr-2","align-middle"],["id","openEx"],[4,"ngIf"],[1,"mat-elevation-z4",3,"ngClass"],["matColumnDef","succeeded"],["name","submitDate",3,"headerText"],["matColumnDef","evaluation"],["mat-header-cell","",1,"text-center"],["mat-cell","",1,"text-center"],[3,"click"],[1,"far","fa-play-circle","fa-2x"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["mat-header-row",""],["mat-row",""],[1,"fas","fa-check","text-success"],[1,"fas","fa-times","text-danger"],[3,"click",4,"ngIf"],["class","fas fa-check fa-2x text-success",4,"ngIf"],["class","fas fa-times fa-2x text-danger",4,"ngIf"],[1,"fas","fa-check","fa-2x","text-success"],[1,"fas","fa-times","fa-2x","text-danger"],["class","fas fa-tasks pointer",3,"click",4,"ngIf"],[1,"fas","fa-tasks","pointer",3,"click"],[3,"goToAllEx","ex","type","courseId","questionType"],[3,"goToAllEx","type","ex","courseId"],["mat-dialog-content","",1,"text-center"],[1,"fa-solid","fa-check","mb-4","icon-4x","text-main-color"],["mat-dialog-actions","","align","center"],["type","button","matDialogClose","","mat-button","","color","primary"]],template:function(a,o){if(1&a){const i=t.RV6();t.j41(0,"div",6)(1,"div",7)(2,"div",8)(3,"div",9)(4,"h5",10),t.EFF(5),t.nI1(6,"translate"),t.k0s()()(),t.j41(7,"div")(8,"p"),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.j41(11,"div",11)(12,"table",12,0),t.qex(14,13),t.DNE(15,Ii,3,3,"th",14)(16,Si,3,0,"td",15),t.bVm(),t.qex(17,16),t.DNE(18,ki,3,3,"th",17)(19,Ri,2,1,"td",18),t.bVm(),t.qex(20,19),t.DNE(21,Fi,3,3,"th",17)(22,Mi,2,2,"td",18),t.bVm(),t.qex(23,20),t.DNE(24,$i,3,3,"th",21)(25,Di,2,1,"td",18),t.bVm(),t.DNE(26,ji,1,0,"tr",22)(27,wi,1,0,"tr",23),t.k0s(),t.nrm(28,"mat-paginator",24,1),t.k0s(),t.DNE(30,Oi,6,6,"ng-template",25),t.k0s()(),t.j41(31,"div",26)(32,"div",8)(33,"div",9)(34,"h5",10),t.EFF(35),t.nI1(36,"translate"),t.k0s()()(),t.j41(37,"div")(38,"p",6),t.EFF(39),t.nI1(40,"translate"),t.k0s(),t.j41(41,"div",27)(42,"table",28),t.nrm(43,"mat-text-column",29),t.nI1(44,"translate"),t.nrm(45,"mat-text-column",30),t.nI1(46,"translate"),t.qex(47,20),t.DNE(48,Pi,3,3,"th",21)(49,Gi,4,13,"td",18),t.bVm(),t.DNE(50,Ni,1,0,"tr",22)(51,Yi,1,0,"tr",23),t.k0s(),t.nrm(52,"mat-paginator",24,2),t.k0s(),t.j41(54,"div",31)(55,"form")(56,"mat-form-field",32)(57,"input",33),t.bIt("keypress",function(c){return t.eBV(i),t.Njj(o.numberOnly(c))}),t.mxI("ngModelChange",function(c){return t.eBV(i),t.DH7(o.randomQuestionsNum,c)||(o.randomQuestionsNum=c),t.Njj(c)}),t.k0s()(),t.j41(58,"button",34),t.bIt("click",function(){return t.eBV(i),t.Njj(o.getRandomQuestions())}),t.nrm(59,"i",35),t.EFF(60),t.nI1(61,"translate"),t.k0s()()(),t.DNE(62,Xi,6,6,"ng-template",25),t.k0s()(),t.j41(63,"div",36)(64,"div",8)(65,"div",9)(66,"h5",10),t.EFF(67),t.nI1(68,"translate"),t.k0s()()(),t.j41(69,"div"),t.DNE(70,Vi,9,9,"p",37),t.j41(71,"div",38)(72,"table",12,3),t.qex(74,13),t.DNE(75,Li,3,3,"th",14)(76,Bi,2,1,"td",15),t.bVm(),t.qex(77,16),t.DNE(78,Qi,3,3,"th",17)(79,Ai,2,1,"td",18),t.bVm(),t.qex(80,19),t.DNE(81,Ji,3,3,"th",17)(82,qi,2,2,"td",18),t.bVm(),t.qex(83,39),t.DNE(84,W
1i,3,3,"th",14)(85,Ki,2,1,"td",15),t.bVm(),t.nrm(86,"mat-text-column",40),t.nI1(87,"translate"),t.qex(88,41),t.DNE(89,tr,3,3,"th",14)(90,or,2,1,"td",15),t.bVm(),t.DNE(91,ar,1,0,"tr",22)(92,sr,1,0,"tr",23),t.k0s(),t.nrm(93,"mat-paginator",24,4),t.k0s(),t.DNE(95,ir,6,6,"ng-template",25),t.k0s()()(),t.DNE(96,rr,1,4,"ng-template",25)(97,cr,1,3,"ng-template",25)(98,lr,10,8,"ng-template",null,5,t.C5r)}2&a&&(t.Y8G("ngClass",t.eq3(55,Z,o.hasEx||o.showEvaluations)),t.R7$(5),t.SpI(" ",t.bMT(6,37,"autoCorrectExercise")," "),t.R7$(4),t.JRh(t.bMT(10,39,"autoCorrectExerciseText")),t.R7$(2),t.Y8G("ngClass",t.eq3(57,Z,!(null!=o.autoExercisesDataSource&&o.autoExercisesDataSource.data.length))),t.R7$(),t.Y8G("dataSource",o.autoExercisesDataSource),t.R7$(14),t.Y8G("matHeaderRowDef",o.autoExercisesColumns),t.R7$(),t.Y8G("matRowDefColumns",o.autoExercisesColumns),t.R7$(),t.Y8G("pageSize",4)("hidePageSize",!0),t.R7$(2),t.Y8G("ngIf",!(null!=o.autoExercisesDataSource&&o.autoExercisesDataSource.data.length)),t.R7$(5),t.SpI(" ",t.bMT(36,41,"autoRandomEx")," "),t.R7$(3),t.Y8G("ngClass",t.eq3(59,Z,!(null!=o.randomExercisesDataSource&&o.randomExercisesDataSource.data.length))),t.R7$(),t.SpI(" ",t.bMT(40,43,"autoCorrectExerciseText")," "),t.R7$(2),t.Y8G("ngClass",t.eq3(61,Z,!(null!=o.randomExercisesDataSource&&o.randomExercisesDataSource.data.length))),t.R7$(),t.Y8G("dataSource",o.randomExercisesDataSource),t.R7$(),t.Y8G("headerText",t.bMT(44,45,"date")),t.R7$(2),t.Y8G("headerText",t.bMT(46,47,"questions")),t.R7$(5),t.Y8G("matHeaderRowDef",o.randomExercisesColumns),t.R7$(),t.Y8G("matRowDefColumns",o.randomExercisesColumns),t.R7$(),t.Y8G("pageSize",4)("hidePageSize",!0),t.R7$(2),t.Y8G("ngClass",t.eq3(63,Z,!(null!=o.autoExercisesDataSource&&o.autoExercisesDataSource.data.length))),t.R7$(3),t.R50("ngModel",o.randomQuestionsNum),t.R7$(3),t.SpI(" ",t.bMT(61,49,"startExercise")," "),t.R7$(2),t.Y8G("ngIf",!(null!=o.autoExercisesDataSource&&o.autoExercisesDataSource.data.length)),t.R7$(5),t.JRh(t.bMT(68,51,"openExercise")),t.R7$(3),t.Y8G("ngIf",null==o.openExercisesDataSource?null:o.openExercisesDataSource.data.length),t.R7$(),t.Y8G("ngClass",t.eq3(65,Z,!(null!=o.openExercisesDataSource&&o.openExercisesDataSource.data.length))),t.R7$(),t.Y8G("dataSource",o.openExercisesDataSource),t.R7$(14),t.Y8G("headerText",t.bMT(87,53,"submittedOn")),t.R7$(5),t.Y8G("matHeaderRowDef",o.openExercisesColumns),t.R7$(),t.Y8G("matRowDefColumns",o.openExercisesColumns),t.R7$(),t.Y8G("pageSize",4)("hidePageSize",!0),t.R7$(2),t.Y8G("ngIf",!(null!=o.openExercisesDataSource&&o.openExercisesDataSource.data.length)),t.R7$(),t.Y8G("ngIf",o.hasEx),t.R7$(),t.Y8G("ngIf",o.showEvaluations))},dependencies:[d.YU,d.bT,f.qT,f.me,f.Q0,f.BC,f.cb,f.YS,f.VZ,f.zX,f.vS,f.cV,X.k,zt.B,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.KS,p.$R,p.YZ,p.NB,p.Ez,at.iy,b.$z,ct.fg,V.rl,A.B4,A.aE,M.tx,M.E7,M.Yi,Bt,d.Pc,h.D9],styles:[".hide[_ngcontent-%COMP%]{display:none!important}.but-open-random[_ngcontent-%COMP%]{padding:var(--space-0_5rem) var(--space-1_5rem);margin-left:var(--space-0)}.but-open-random[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{vertical-align:super;margin-left:var(--space-10px)}.pointer[_ngcontent-%COMP%]{cursor:pointer}.randomQinput[_ngcontent-%COMP%]{text-align:center;border:var(--border-style-none);display:inline-block;margin:var(--space-0) var(--space-10px)}.randomq-form-field[_ngcontent-%COMP%]{width:var(--size-10-percent)}@media (max-width: 768px){.nav-elo[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:var(--space-0_8rem) var(--space-1_1rem)}#autoEX[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-of-type, #openEx[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-of-type{width:var(--size-55px)}.th-submitted[_ngcontent-%COMP%], .th-chapter[_ngcontent-%COMP%]{display:none}.task-h-150[_ngcontent-%COMP%]{width:var(--size-90px)!important}.randomq-form-field[_ngcontent-%COMP%]{width:var(--size-40-percent)}}@media (max-width: 360px){thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-of-type{width:var(--size-40px)}table.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:var(--font-size-62);padding-left:var(--space-5px);padding-right:var(--space-0)}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:var(--font-size-75)}.nav-elo[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:var(--space-0_4rem) var(--space-1_1rem);font-size:var(--font-size-68)}}\n\n/*# sourceMappingURL=student-elo-exercise.component.css.map*/"]}),s})();var At=l(80640);const pr=["tasksSort"],dr=["tasksPaginator"],ur=e=>({hide:e});function _r(e,s){1&e&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"i",9),t.EFF(4),t.nI1(5,"translate"),t.nrm(6,"i",10),t.EFF(7),t.nI1(8,"translate"),t.nI1(9,"translate"),t.nrm(10,"i",11),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,4,"openExerciseText1")," "),t.R7$(3),t.SpI(" . ",t.bMT(5,6,"openExerciseText2")," "),t.R7$(3),t.Lme(" ",t.bMT(8,8,"openExerciseText3")," ",t.bMT(9,10,"taskTextObligedForExam")," "))}function gr(e,s){1&e&&(t.j41(0,"th",27),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"start")))}function fr(e,s){if(1&e){const n=t.RV6();t.j41(0,"i",30),t.bIt("click",function(){t.eBV(n);const o=t.XpG().$implicit,i=t.XpG(2);return t.Njj(i.taskSolving(o))}),t.k0s()}}function hr(e,s){if(1&e&&(t.j41(0,"td",28),t.DNE(1,fr,1,0,"i",29),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Y8G("ngIf",n.allowed&&(n.makeAgain||void 0===n.makeAgain))}}function vr(e,s){1&e&&(t.j41(0,"th",31),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"title")))}function xr(e,s){1&e&&(t.nrm(0,"i",34),t.nI1(1,"translate")),2&e&&t.FS9("matTooltip",t.bMT(1,1,"youMustCompleteTask"))}function Cr(e,s){if(1&e&&(t.j41(0,"td",32),t.EFF(1),t.DNE(2,xr,2,3,"i",33),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.SpI(" ",n.name," "),t.R7$(),t.Y8G("ngIf",n.obligedForExam)}}function br(e,s){1&e&&(t.j41(0,"th",27),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"succeeded")))}function Er(e,s){1&e&&t.nrm(0,"i",35)}function Tr(e,s){1&e&&t.nrm(0,"i",36)}function Ir(e,s){if(1&e&&(t.qex(0),t.DNE(1,Er,1,0,"ng-template",8)(2,Tr,1,0,"ng-template",8),t.bVm()),2&e){const n=t.XpG().$implicit;t.R7$(),t.Y8G("ngIf",n.lastResult&&n.lastResult.evaluation>=60),t.R7$(),t.Y8G("ngIf",n.lastResult&&n.lastResult.evaluation<60)}}function Sr(e,s){if(1&e&&(t.j41(0,"td",28),t.DNE(1,Ir,3,2,"ng-container",6),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Y8G("ngIf",n.evaluatedByTeacher)}}function kr(e,s){1&e&&(t.j41(0,"th",27),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"makeAgain.student")))}function Rr(e,s){1&e&&(t.EFF(0),t.nI1(1,"translate")),2&e&&t.SpI(" ",t.bMT(1,1,"yes")," ")}function Fr(e,s){1&e&&(t.EFF(0),t.nI1(1,"translate")),2&e&&t.SpI(" ",t.bMT(1,1,"no")," ")}function Mr(e,s){if(1&e&&(t.qex(0),t.DNE(1,Rr,2,3,"ng-template",8)(2,Fr,2,3,"ng-template",8),t.bVm()),2&e){const n=t.XpG().$implicit;t.R7$(),t.Y8G("ngIf",n.makeAgain),t.R7$(),t.Y8G("ngIf",!n.makeAgain)}}function $r(e,s){if(1&e&&(t.j41(0,"td",28),t.DNE(1,Mr,3,2,"ng-container",6),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Y8G("ngIf",n.evaluatedByTeacher)}}function yr(e,s){1&e&&(t.j41(0,"th",27),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"evaluation.evaluation")))}function Dr(e,s){if(1&e){const n=t.RV6();t.qex(0),t.j41(1,"i",37),t.bIt("click",function(){t.eBV(n);const o=t.XpG().$implicit,i=t.XpG(2);return t.Njj(i.exerciseEvaluation(o,"task"))}),t.k0s(),t.bVm()}}function jr(e,s){if(1&e&&(t.j41(0,"td",28),t.DNE(1,Dr,2,0,"ng-container",6),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Y8G("ngIf",n.lastResult)}}function wr(e,s){1&e&&t.nrm(0,"tr",38)}function Or(e,s){1&e&&t.nrm(0,"tr",39)}function Pr(e,s){if(1&e&&(t.j41(0,"div",12)(1,"table",13,0),t.qex(3,14),t.DNE(4,gr,3,3,"th",15)(5,hr,2,1,"td",16),t.bVm(),t.qex(6,17),t.DNE(7,vr,3,3,"th",18)(8,Cr,3,2,"td",19),t.bVm(),t.qex(9,20),t.DNE(10,br,3,3,"th",15)(11,Sr,2,1,"td",16),t.bVm(),t.qex(12,21),t.DNE(13,kr,3,3,"th",15)(14,$r,2,1,"td",16),t.bVm(),t.nrm(15,"mat-text-column",22),t.nI1(16,"translate"),t.qex(17,23),t.DNE(18,yr,3,3,"th",15)(19,jr,2,1,"td",16),t.bVm(),t.DNE(20,wr,1,0,"tr",24)(21,Or,1,0,"tr",25),t.k0s(),t.nrm(22,"mat-paginator",26,1),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("dataSource",n.tasksDataSource),t.R7$(14),t.Y8G("headerText",t.bMT(16,6,"submittedOn")),t.R7$(5),t.Y8G("matHeaderRowDef",n.tasksTableShownColumns),t.R7$(),t.Y8G("matRowDefColumns",n.tasksTableShownColumns),t.R7$(),t.Y8G("pageSize",4)("hidePageSize",!0)}}function Gr(e,s){1&e&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"br"),t.EFF(4),t.nI1(5,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,2,"dearStudent")," "),t.R7$(3),t.SpI(" ",t.bMT(5,4,"eloTasksText")," "))}function Nr(e,s){if(1&e){const n=t.RV6();t.j41(0,"app-ecampus-assignment",40),t.bIt("goToAllEx",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.goToAllEx())}),t.k0s()}if(2&e){const n=t.XpG();t.Y8G("ex",n.ex)("type",n.exType)("courseId",n.id)("questionType",n.questionType)}}function Yr(e,s){if(1&e){const n=t.RV6();t.j41(0,"app-elo-ex-evaluation",41),t.bIt("goToAllEx",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.goToAllEx())}),t.k0s()}if(2&e){const n=t.XpG();t.Y8G("type",n.typeEvaluation)("ex",n.ex)("courseId",n.id)}}let Xr=(()=>{var e;class s{constructor(){this.websiteService=(0,t.WQX)(z.j),this.eCampusService=(0,t.WQX)(j.u),this.route=(0,t.WQX)(E.nX),this.deviceDetectorService=(0,t.WQX)(O.Kg),this.loaderService=(0,t.WQX)(Y.Z),this.maxVisibleItems=8,this.hasEx=!1,this.showEvaluations=!1,this.tasksTableShownColumns=["start","name","succeeded","makeAgain","submitDate","evaluation"],this.destroy$=new y.B}set tasksSort(a){this.tasksDataSource&&(this.tasksDataSource.sort=a)}set tasksPaginator(a){this.tasksDataSource&&(this.tasksDataSource.paginator=a)}ngOnInit(){this.load(),this.deviceDetectorService.isMobile()&&(this.tasksTableShownColumns=["start","name","succeeded","evaluation"])}load(){this.hasEx=!1,this.showEvaluations=!1,this.route.parent.params.pipe((0,N.n)(({id:a})=>(this.id=a,this.loaderService.setIsLoading(!0),this.eCampusService.getTask(a))),(0,x.T)(a=>{var o;return(null==a||null===(o=a.body)||void 0===o?void 0:o.data)||[]}),(0,w.W)(()=>(0,F.of)([])),(0,v.Q)(this.destroy$)).subscribe(a=>{const o=a.map(i=>{const{lastResult:r}=i||{},{time:c}=r||{},u=I.x.display.date,_=r?(0,T.I1)(c,I.x.iso.dateTimeShort).format(u):"";return(0,C.A)((0,C.A)({},i),{},{submitDate:_})});this.tasksDataSource=new ut.p(o),this.loaderService.setIsLoading(!1)})}exerciseEvaluation(a,o){this.ex=a,this.typeEvaluation=o,this.showEvaluations=!0}goToAllEx(){this.load()}
1taskSolving(a){this.questionType="task",this.hasEx=!0,this.ex=a,this.websiteService.setPartialIsolation(!0)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-elo-task"]],viewQuery:function(a,o){if(1&a&&(t.GBs(pr,5),t.GBs(dr,5)),2&a){let i;t.mGM(i=t.lsd())&&(o.tasksSort=i.first),t.mGM(i=t.lsd())&&(o.tasksPaginator=i.first)}},decls:12,vars:11,consts:[["tasksSort","matSort"],["tasksPaginator",""],["id","task",3,"ngClass"],["appBgColor","",1,"row","py-3","mb-3"],[1,"col-12","col-md-6"],[1,"mb-0","text-white"],[4,"ngIf"],["class","mat-elevation-z4 mb-3",4,"ngIf"],[3,"ngIf"],[1,"fa-check","fas","text-success"],[1,"fa-times","fas","text-danger"],[1,"fa-star","fas","amber-text"],[1,"mat-elevation-z4","mb-3"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","start"],["mat-header-cell","","class","text-center",4,"matHeaderCellDef"],["mat-cell","","class","text-center",4,"matCellDef"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","succeeded"],["matColumnDef","makeAgain"],["name","submitDate",3,"headerText"],["matColumnDef","evaluation"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSize","hidePageSize"],["mat-header-cell","",1,"text-center"],["mat-cell","",1,"text-center"],["class","fa-play-circle far fa-2x cursor-pointer",3,"click",4,"ngIf"],[1,"fa-play-circle","far","fa-2x","cursor-pointer",3,"click"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","fa-star fas amber-text","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],["matTooltipPosition","right",1,"fa-star","fas","amber-text",3,"matTooltip"],[1,"fa-check","fas","fa-2x","text-success"],[1,"fa-times","fas","fa-2x","text-danger"],[1,"fa-tasks","fas","pointer",3,"click"],["mat-header-row",""],["mat-row",""],[3,"goToAllEx","ex","type","courseId","questionType"],[3,"goToAllEx","type","ex","courseId"]],template:function(a,o){1&a&&(t.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"h5",5),t.EFF(4),t.nI1(5,"translate"),t.k0s()()(),t.j41(6,"div"),t.DNE(7,_r,11,12,"p",6)(8,Pr,24,8,"div",7)(9,Gr,6,6,"ng-template",8),t.k0s()(),t.DNE(10,Nr,1,4,"ng-template",8)(11,Yr,1,3,"ng-template",8)),2&a&&(t.Y8G("ngClass",t.eq3(9,ur,o.hasEx||o.showEvaluations)),t.R7$(4),t.JRh(t.bMT(5,7,"tasks")),t.R7$(3),t.Y8G("ngIf",(null==o.tasksDataSource?null:o.tasksDataSource.data.length)>0),t.R7$(),t.Y8G("ngIf",(null==o.tasksDataSource?null:o.tasksDataSource.data.length)>0),t.R7$(),t.Y8G("ngIf",(null==o.tasksDataSource?null:o.tasksDataSource.data.length)<1),t.R7$(),t.Y8G("ngIf",o.hasEx),t.R7$(),t.Y8G("ngIf",o.showEvaluations))},dependencies:[d.YU,d.bT,X.k,zt.B,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.KS,p.$R,p.YZ,p.NB,p.Ez,at.iy,A.B4,A.aE,At.oV,Bt,h.D9],styles:[".fixed-sn main{padding-top:var(--space-0)} #task .sticky-top{z-index:var(--z-index-layer-1)}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-of-type(5), thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:nth-of-type(6){width:var(--size-120px);text-align:center}tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-of-type(5), tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-of-type(6){text-align:center}th[_ngcontent-%COMP%]{font-weight:var(--font-weight-bold)}.task-h-100[_ngcontent-%COMP%]{width:var(--size-100px)}.task-h-150[_ngcontent-%COMP%]{width:var(--size-150px)}.cursor-pointer[_ngcontent-%COMP%]{cursor:pointer}.btn[_ngcontent-%COMP%], .btn[_ngcontent-%COMP%]:hover{box-shadow:var(--shadow-none)}.btn[_ngcontent-%COMP%]:hover{opacity:var(--opacity-70)}.hide[_ngcontent-%COMP%]{display:none!important}.but-open-random[_ngcontent-%COMP%]{padding:var(--space-0_5rem) var(--space-1_5rem);margin-left:var(--space-0)}.but-open-random[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{vertical-align:super;margin-left:var(--space-10px)}.pointer[_ngcontent-%COMP%]{cursor:pointer}@media (max-width: 768px){.nav-elo[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:var(--space-0_8rem) var(--space-1_1rem)}.task-h-100[_ngcontent-%COMP%]{width:var(--size-55px)}.th-makeAgain[_ngcontent-%COMP%], .th-submitted[_ngcontent-%COMP%]{display:none}.task-h-150[_ngcontent-%COMP%]{width:var(--size-85px)!important}}@media (max-width: 360px){thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-of-type{width:var(--size-40px)}table.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:var(--font-size-62);padding-left:var(--space-5px);padding-right:var(--space-0)}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:var(--font-size-75)}.nav-elo[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:var(--space-0_4rem) var(--space-1_1rem);font-size:var(--font-size-68)}}\n\n/*# sourceMappingURL=student-elo-task.component.css.map*/"]}),s})();const Vr=["tutorialsTableSort"],Lr=["tutorialsTablePaginator"],zr=["linksTableSort"],Br=["linksTablePaginator"],Jt=e=>({hide:e}),Qr=()=>["second-header-type","second-header-name"],Ar=e=>({display:e});function Jr(e,s){1&e&&t.nrm(0,"th",27)}function qr(e,s){1&e&&(t.j41(0,"td",28),t.nrm(1,"i",29),t.k0s())}function Wr(e,s){1&e&&(t.j41(0,"th",30),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"title")," "))}function Ur(e,s){if(1&e&&(t.j41(0,"td",28),t.EFF(1),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.SpI(" ",n.title," ")}}function Hr(e,s){1&e&&(t.j41(0,"th",30),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"description")," "))}function Zr(e,s){if(1&e&&(t.j41(0,"td",28),t.EFF(1),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.JRh(n.description)}}function Kr(e,s){1&e&&(t.j41(0,"th",30),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"date")," "))}function tc(e,s){if(1&e&&(t.j41(0,"td",28),t.EFF(1),t.nI1(2,"dateformat"),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.JRh(t.bMT(2,1,n.created))}}
1function ec(e,s){1&e&&t.nrm(0,"tr",31)}function nc(e,s){if(1&e){const n=t.RV6();t.j41(0,"tr",32),t.bIt("click",function(){const o=t.eBV(n).$implicit,i=t.XpG();return t.Njj(i.openVideoModal(o))}),t.k0s()}}function oc(e,s){1&e&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"br"),t.EFF(4),t.nI1(5,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,2,"dearStudent")," "),t.R7$(3),t.SpI(" ",t.bMT(5,4,"tutorialText")," "))}function ac(e,s){1&e&&(t.j41(0,"th",30),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"type")," "))}function sc(e,s){1&e&&t.nrm(0,"i",35)}function ic(e,s){1&e&&t.nrm(0,"i",36)}function rc(e,s){if(1&e&&(t.j41(0,"td",28),t.DNE(1,sc,1,0,"i",33)(2,ic,1,0,"i",34),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.Y8G("ngIf","file"===n.type),t.R7$(),t.Y8G("ngIf","folder"===n.type)}}function cc(e,s){1&e&&(t.j41(0,"th",30),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"title")," "))}function lc(e,s){if(1&e&&(t.j41(0,"td",28),t.EFF(1),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.SpI(" ",n.name," ")}}function mc(e,s){1&e&&(t.j41(0,"th",30),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"description")," "))}function pc(e,s){if(1&e&&(t.j41(0,"td",28),t.EFF(1),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.SpI(" ",n.description," ")}}function dc(e,s){1&e&&(t.j41(0,"th",30),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"date")," "))}function uc(e,s){if(1&e&&(t.j41(0,"td",28),t.EFF(1),t.nI1(2,"dateformat"),t.k0s()),2&e){const n=s.$implicit;t.R7$(),t.SpI(" ",t.bMT(2,1,n.created)," ")}}function _c(e,s){1&e&&(t.j41(0,"th",37),t.nrm(1,"i",36),t.k0s())}function gc(e,s){1&e&&(t.j41(0,"th",27),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.BMQ("colspan",3),t.R7$(),t.JRh(t.bMT(2,2,"mainFolder")))}function fc(e,s){1&e&&t.nrm(0,"tr",31)}function hc(e,s){if(1&e){const n=t.RV6();t.j41(0,"tr",38),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.showAllLinks())}),t.k0s()}if(2&e){const n=t.XpG();t.Y8G("ngStyle",t.eq3(1,Ar,n.inFolder?"table-row":"none"))}}function vc(e,s){if(1&e){const n=t.RV6();t.j41(0,"tr",32),t.bIt("click",function(){const o=t.eBV(n).$implicit,i=t.XpG();return t.Njj(i.showLink(o))}),t.k0s()}}function xc(e,s){1&e&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"br"),t.EFF(4),t.nI1(5,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,2,"dearStudent")," "),t.R7$(3),t.SpI(" ",t.bMT(5,4,"linksText")," "))}let Cc=(()=>{var e;class s{constructor(){this.route=(0,t.WQX)(E.nX),this.eCampusService=(0,t.WQX)(j.u),this.loaderService=(0,t.WQX)(Y.Z),this.helperService=(0,t.WQX)(et.w),this.dialogService=(0,t.WQX)(M.bZ),this.tutorialsTable=new p.I6([]),this.tutorialsTableColumns=["type","title","description","created"],this.linksTable=new p.I6([]),this.linksTableColumns=["type","name","description","created"],this.links=[],this.allLinks=[],this.maxVisibleItems=4,this.inFolder=!1,this.tutorials=[],this.tutorialVideo="",this.destroy$=new y.B}ngOnInit(){this.route.parent.params.pipe((0,N.n)(({id:a})=>{this.loaderService.setIsLoading(!0),this.id=a;const o=this.eCampusService.getFolderContents(this.id,"link").pipe((0,x.T)(r=>{var c;return(null==r||null===(c=r.body)||void 0===c?void 0:c.data)||null}),(0,w.W)(()=>(0,F.of)(null)),(0,v.Q)(this.destroy$)),i=this.eCampusService.getMedia(this.id).pipe((0,x.T)(r=>{var c;return(null==r||null===(c=r.body)||void 0===c?void 0:c.data)||[]}),(0,w.W)(()=>(0,F.of)([])),(0,v.Q)(this.destroy$));return(0,pt.p)([o,i])}),(0,v.Q)(this.destroy$)).subscribe(([a,o])=>{a?(this.allLinks=a,this.loadData(this.allLinks)):this.links=[];const r=o.map(({title:c,url:m,description:u,embedUrl:_,date:g})=>{let R="";return _&&_.match.length>0&&(R=_.match(/<.*?src='(.*?)'/g)[0].replace(/.*src='([^"]*)'.*/,"$1")),{title:c,url:m,description:u,embedUrl:_,absoluteEmbedUrl:R,created:g}});this.tutorials=this.helperService.sortDataWithIndex(r,"title"),this.tutorialsTable.sort=this.tutorialsTableSort,this.tutorialsTable.paginator=this.tutorialsTablePaginator,this.tutorialsTable.data=this.tutorials,this.loaderService.setIsLoading(!1)})}loadData(a){const i=a.links?a.links:[],r=[...(a.folders?a.folders:[]).map(m=>({type:"folder",name:m.name,folderId:m.id,created:m.dateCreated?m.dateCreated:"",description:""})),...i.map(m=>({type:"file",name:m.name,url:m.url,created:m.dateCreated?m.dateCreated:"",description:m.description}))],c=r&&r.length?this.helperService.sortDataWithIndex(r,"name"):[];this.links=c.sort((m,u)=>m.type>u.type?-1:0),this.linksTable.sort=this.linksTableSort,this.linksTable.paginator=this.linksTablePaginator,this.linksTable.data=this.links}showLink(a){"file"===a.type?window.open(a.url,"_blank"):this.eCampusService.getFolderContents(this.id,"link",a.folderId).pipe((0,v.Q)(this.destroy$)).subscribe(o=>
1{if(200===o.status){const{data:i}=o.body;this.inFolder=!0,this.loadData(i)}})}openVideoModal(a){const{absoluteEmbedUrl:o,title:i}=a||{};this.dialogService.open(B.m,{data:{type:q.m6.video,header:i,content:o},panelClass:["col-12","col-lg-6"],disableClose:!0})}showAllLinks(){this.loadData(this.allLinks),this.inFolder=!1}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-elo-tutorial"]],viewQuery:function(a,o){if(1&a&&(t.GBs(Vr,5),t.GBs(Lr,5),t.GBs(zr,5),t.GBs(Br,5)),2&a){let i;t.mGM(i=t.lsd())&&(o.tutorialsTableSort=i.first),t.mGM(i=t.lsd())&&(o.tutorialsTablePaginator=i.first),t.mGM(i=t.lsd())&&(o.linksTableSort=i.first),t.mGM(i=t.lsd())&&(o.linksTablePaginator=i.first)}},decls:55,vars:28,consts:[["tutorialsTableSort","matSort"],["tutorialsTablePaginator",""],["linksTableSort","matSort"],["linksTablePaginator",""],["appBgColor","",1,"row","row","py-3","mb-3","mt-2"],[1,"col-12","col-md-6"],[1,"mb-0","text-white"],[1,"mat-elevation-z8","mb-3",3,"ngClass"],["mat-table","","matSort","",1,"mat-table-hover","table-fixed","table-tutorials",3,"dataSource"],["matColumnDef","type"],["mat-header-cell","","class","col",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["mat-header-cell","","mat-sort-header","","class","col",4,"matHeaderCellDef"],["matColumnDef","description"],["matColumnDef","created"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],[1,"bg-light-grey",3,"hidePageSize","pageSize","showFirstLastButtons"],[3,"ngIf"],[1,"mat-elevation-z8",3,"ngClass"],["mat-table","","matSort","",1,"mat-table-hover","table-fixed","table-links",3,"dataSource"],["matColumnDef","name"],["matColumnDef","second-header-type"],["mat-cell","","class","col",4,"matHeaderCellDef"],["matColumnDef","second-header-name"],["class","secondary-table-head","mat-header-row","",3,"ngStyle","click",4,"matHeaderRowDef"],["mat-header-cell","",1,"col"],["mat-cell",""],[1,"fa-youtube","fa-2x","fab"],["mat-header-cell","","mat-sort-header","",1,"col"],["mat-header-row",""],["mat-row","",3,"click"],["class","fa-link fa-2x fas",4,"ngIf"],["class","fa-folder-open fa-2x far",4,"ngIf"],[1,"fa-link","fa-2x","fas"],[1,"fa-folder-open","fa-2x","far"],["mat-cell","",1,"col"],["mat-header-row","",1,"secondary-table-head",3,"click","ngStyle"]],template:function(a,o){1&a&&(t.j41(0,"div",4)(1,"div",5)(2,"h5",6),t.EFF(3),t.nI1(4,"translate"),t.k0s()()(),t.j41(5,"div",7)(6,"table",8,0),t.qex(8,9),t.DNE(9,Jr,1,0,"th",10)(10,qr,2,0,"td",11),t.bVm(),t.qex(11,12),t.DNE(12,Wr,3,3,"th",13)(13,Ur,2,1,"td",11),t.bVm(),t.qex(14,14),t.DNE(15,Hr,3,3,"th",13)(16,Zr,2,1,"td",11),t.bVm(),t.qex(17,15),t.DNE(18,Kr,3,3,"th",13)(19,tc,3,3,"td",11),t.bVm(),t.DNE(20,ec,1,0,"tr",16)(21,nc,1,0,"tr",17),t.k0s(),t.nrm(22,"mat-paginator",18,1),t.k0s(),t.DNE(24,oc,6,6,"ng-template",19),t.j41(25,"div",4)(26,"div",5)(27,"h5",6),t.EFF(28),t.nI1(29,"translate"),t.k0s()()(),t.j41(30,"div",20)(31,"table",21,2),t.qex(33,9),t.DNE(34,ac,3,3,"th",13)(35,rc,3,2,"td",11),t.bVm(),t.qex(36,22),t.DNE(37,cc,3,3,"th",13)(38,lc,2,1,"td",11),t.bVm(),t.qex(39,14),t.DNE(40,mc,3,3,"th",13)(41,pc,2,1,"td",11),t.bVm(),t.qex(42,15),t.DNE(43,dc,3,3,"th",13)(44,uc,3,3,"td",11),t.bVm(),t.qex(45,23),t.DNE(46,_c,2,0,"th",24),t.bVm(),t.qex(47,25),t.DNE(48,gc,3,4,"th",10),t.bVm(),t.DNE(49,fc,1,0,"tr",16)(50,hc,1,3,"tr",26)(51,vc,1,0,"tr",17),t.k0s(),t.nrm(52,"mat-paginator",18,3),t.k0s(),t.DNE(54,xc,6,6,"ng-template",19)),2&a&&(t.R7$(3),t.JRh(t.bMT(4,19,"tutorials")),t.R7$(2),t.Y8G("ngClass",t.eq3(23,Jt,o.tutorials.length<1)),t.R7$(),t.Y8G("dataSource",o.tutorialsTable),t.R7$(14),t.Y8G("matHeaderRowDef",o.tutorialsTableColumns),t.R7$(),t.Y8G("matRowDefColumns",o.tutorialsTableColumns),t.R7$(),t.Y8G("hidePageSize",!0)("pageSize",o.maxVisibleItems)("showFirstLastButtons",!0),t.R7$(2),t.Y8G("ngIf",o.tutorials.length<1),t.R7$(4),t.JRh(t.bMT(29,21,"links")),t.R7$(2),t.Y8G("ngClass",t.eq3(25,Jt,!(o.links&&(!o.links||o.links.length)||o.inFolder))),t.R7$(),t.Y8G("dataSource",o.linksTable),t.R7$(18),t.Y8G("matHeaderRowDef",o.linksTableColumns),t.R7$(),t.Y8G("matHeaderRowDef",t.lJ4(27,Qr)),t.R7$(),t.Y8G("matRowDefColumns",o.linksTableColumns),t.R7$(),t.Y8G("hidePageSize",!0)("pageSize",o.maxVisibleItems)("showFirstLastButtons",!0),t.R7$(2),t.Y8G("ngIf",!(o.links&&(!o.links||o.links.length)||o.inFolder)))},dependencies:[d.YU,d.bT,d.B3,X.k,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.KS,p.$R,p.YZ,p.NB,at.iy,A.B4,A.aE,h.D9,ot.O],styles:[".btn[_ngcontent-%COMP%], .btn[_ngcontent-%COMP%]:hover{box-shadow:var(--shadow-none)}.btn[_ngcontent-%COMP%]:hover{opacity:var(--opacity-70)}.hide[_ngcontent-%COMP%]{display:none}.mdc-data-table__header-row[_ngcontent-%COMP%]{background-color:var(--color-black-transparency-5)}.secondary-table-head.mdc-data-table__header-row[_ngcontent-%COMP%]{background-color:var(--color-tint-2)}.table-tutorials[_ngcontent-%COMP%] .mat-column-type[_ngcontent-%COMP%], .table-links[_ngcontent-%COMP%] .mat-column-type[_ngcontent-%COMP%]{width:var(--size-10-percent)}.table-tutorials[_ngcontent-%COMP%] .mat-column-title[_ngcontent-%COMP%], .table-links[_ngcontent-%COMP%] .mat-column-name[_ng
1content-%COMP%]{width:var(--size-30-percent)}.table-tutorials[_ngcontent-%COMP%] .mat-column-description[_ngcontent-%COMP%], .table-links[_ngcontent-%COMP%] .mat-column-description[_ngcontent-%COMP%]{width:var(--size-40-percent)}.table-tutorials[_ngcontent-%COMP%] .mat-column-created[_ngcontent-%COMP%], .table-links[_ngcontent-%COMP%] .mat-column-created[_ngcontent-%COMP%]{width:var(--size-20-percent)}.table-tutorials[_ngcontent-%COMP%], .table-links[_ngcontent-%COMP%]{table-layout:fixed;width:var(--size-min-content)}tr.mat-mdc-row.mdc-data-table__row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{word-break:break-all;word-wrap:break-word}.table-tutorials[_ngcontent-%COMP%] tr.mat-mdc-row.mdc-data-table__row[_ngcontent-%COMP%]:nth-child(odd), .table-links[_ngcontent-%COMP%] tr.mat-mdc-row.mdc-data-table__row[_ngcontent-%COMP%]:nth-child(odd){background-color:var(--color-black-transparency-2)}@media (max-width: 768px){.table-tutorials[_ngcontent-%COMP%] .mat-column-type[_ngcontent-%COMP%], .table-links[_ngcontent-%COMP%] .mat-column-type[_ngcontent-%COMP%]{width:var(--size-20-percent)}.table-tutorials[_ngcontent-%COMP%] .mat-column-title[_ngcontent-%COMP%], .table-links[_ngcontent-%COMP%] .mat-column-name[_ngcontent-%COMP%], .table-tutorials[_ngcontent-%COMP%] .mat-column-description[_ngcontent-%COMP%], .table-links[_ngcontent-%COMP%] .mat-column-description[_ngcontent-%COMP%]{width:var(--size-30-percent)}.table-tutorials[_ngcontent-%COMP%] .mat-column-created[_ngcontent-%COMP%], .table-links[_ngcontent-%COMP%] .mat-column-created[_ngcontent-%COMP%]{width:var(--size-20-percent)}.nav-elo[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:var(--space-0_8rem) var(--space-1_1rem)}.table-tutorials[_ngcontent-%COMP%] .mat-mdc-header-cell[_ngcontent-%COMP%], .table-links[_ngcontent-%COMP%] .mat-mdc-header-cell[_ngcontent-%COMP%]{font-size:var(--font-size-62);word-wrap:break-word}tr.mat-mdc-row.mdc-data-table__row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:var(--font-size-62)}}@media (max-width: 360px){.nav-elo[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:var(--space-0_4rem) var(--space-1_1rem);font-size:var(--font-size-68)}}\n\n/*# sourceMappingURL=student-elo-tutorial.component.css.map*/"]}),s})();var bc=l(68752),Ec=l(9736);let Tc=(()=>{var e;class s{constructor(){this.mainNavigationService=(0,t.WQX)(bc.Z)}ngOnInit(){this.mainNavigationService.setMobileSearchBarVisibility(!1)}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-exam"]],decls:1,vars:0,template:function(a,o){1&a&&t.nrm(0,"app-exam")},dependencies:[Ec.H],encapsulation:2}),s})();const qt=()=>[];function Ic(e,s){if(1&e&&(t.j41(0,"p",6),t.EFF(1),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.JRh(n.object.course)}}function Sc(e,s){1&e&&(t.j41(0,"span"),t.nrm(1,"i",9),t.k0s())}function kc(e,s){1&e&&(t.j41(0,"span"),t.nrm(1,"i",10),t.k0s())}function Rc(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",7),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.evaluate())}),t.DNE(1,Sc,2,0,"span",8)(2,kc,2,0,"span",8),t.k0s()}if(2&e){const n=t.XpG();t.R7$(),t.Y8G("ngForOf",t.lJ4(2,qt).constructor(n.object.stars)),t.R7$(),t.Y8G("ngForOf",t.lJ4(3,qt).constructor(5-n.object.stars))}}function Fc(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",6)(1,"button",11),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.evaluate())}),t.EFF(2),t.nI1(3,"translate"),t.k0s()()}2&e&&(t.R7$(2),t.SpI(" ",t.bMT(3,1,"evaluate")," "))}let Mc=(()=>{var e;class s{constructor(){this.showQuestions=new t.bkB}ngOnInit(){}evaluate(){this.showQuestions.emit()}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-feedback-card"]],inputs:{object:"object"},outputs:{showQuestions:"showQuestions"},decls:8,vars:5,consts:[["noEvaluate",""],[1,"p-3"],["alt","object","appOnErrorImage","",1,"d-block",3,"src"],[1,"text-center","title-color"],["class","text-center",4,"ngIf"],["class","text-center starts",3,"click",4,"ngIf","ngIfElse"],[1,"text-center"],[1,"text-center","starts",3,"click"],[4,"ngFor","ngForOf"],[1,"amber-text","fas","fa-star"],[1,"amber-text","far","fa-star"],["mat-raised-button","","color","primary","type","button",1,"mt-2","text-uppercase",3,"click"]],template:function(a,o){if(1&a&&(t.j41(0,"div",1),t.nrm(1,"img",2),t.j41(2,"h4",3),t.EFF(3),t.k0s(),t.DNE(4,Ic,2,1,"p",4)(5,Rc,3,4,"div",5)(6,Fc,4,3,"ng-template",null,0,t.C5r),t.k0s()),2&a){const i=t.sdS(7);t.R7$(),t.Y8G("src",o.object.img,t.B4B),t.R7$(2),t.JRh(o.object.name),t.R7$(),t.Y8G("ngIf",o.object.course),t.R7$(),t.Y8G("ngIf",o.object.evaluate)("ngIfElse",i)}},dependencies:[d.Sq,d.bT,b.$z,Q.e,h.D9],styles:["img[_ngcontent-%COMP%]{width:var(--size-120px);height:var(--size-120px);margin:var(--space-0) var(--space-auto);object-fit:cover}h4[_ngcontent-%COMP%]{font-size:var(--font-size-100);padding-top:var(--space-0_5rem)}p[_ngcontent-%COMP%]{font-size:var(--font-size-81);margin-bottom:var(--space-3px)}.starts[_ngcontent-%COMP%]{cursor:pointer}\n\n/*# sourceMappingURL=feedback-card.component.css.map*/"]}),s})();var $c=l(10682);const yc=["feedbackPostedDialog"],Dc=e=>({active:e}),jc=(e,s)=>({left:e,right:s});function wc(e,s){1&e&&t.nrm(0,"span",9)}function Oc(e,s){1&e&&t.nrm(0,"i",10)}function Pc(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",5),t.bIt("click",function(){const o=t.eBV(n).index,i=t.XpG();return t.Njj(i.loadQuestions(o))}),t.DNE(1,wc,1,0,"span",6),t.j41(2,"div")(3,"span",7),t.DNE(4,Oc,1,0,"i",8),t.k0s(),t.j41(5,"p"),t.EFF(6),t.nI1(7,"translate"),t.k0s()()()}if(2&e){const n=s.$implicit,a=s.index,o=s.first,i=t.XpG();t.Y8G("ngClass",t.eq3(6,Dc,+i.page>=a)),t.R7$(),t.Y8G("ngIf",!o),t.R7$(3),t.Y8G("ngIf",i.checkAnswersObj[a]),t.R7$(2),t.JRh("feedback"===n?t.bMT(7,4,"extraFeedback"):n)}}function Gc(e,s){if(1&e&&(t.j41(0,"div",36),t.nrm(1,"input",37),t.j41(2,"label",38),t.EFF(3),t.k0s()()),2&e){const n=s.$implicit,a=s.index,o=t.XpG().$implicit;t.R7$(),t.FCK("id","",o.questionId,"-",a+1,""),t.FS9("name",o.questionId),t.Y8G("value",a+1)("checked",o.answer==a+1),t.R7$(),t.FCK("for","",o.questionId,"-",a+1,""),t.R7$(),t.JRh(n.value)}}function Nc(e,s){if(1&e&&(t.j41(0,"div",30)(1,"div",31)(2,"span",32),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"div",33),t.EFF(6),t.k0s(),t.j41(7,"div",34),t.DNE(8,Gc,4,10,"div",35),t.nI1(9,"keyvalue"),t.k0s()()),2&e){const n=s.$implicit,a=s.index,o=t.XpG(3);t.R7$(3),t.SpI(" ",t.i5U(4,3,"typography.slash",t.l_i(8,jc,a+1,o.questionsCat.length))," "),t.R7$(3),t.SpI(" ",n.question," "),t.R7$(2),t.Y8G("ngForOf",t.bMT(9,6,o.answers))}}function Yc(e,s){if(1&e){const n=t.RV6();t.j41(0,"button",39),t.bIt("click",function(){t.eBV(n);const o=t.XpG(3);return t.Njj(o.backToLastPage())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"previous")," "))}function Xc(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",16)(1,"div",17),t.nrm(2,"img",18),t.k0s(),t.j41(3,"div",19)(4,"h4",20),t.EFF(5),t.k0s(),t.j41(6,"h4",21),t.EFF(7),t.k0s()()(),t.j41(8,"div",22)(9,"form",23),t.bIt("ngSubmit",function(o){t.eBV(n);const i=t.XpG(2);return t.Njj(i.onSubmit(o,i.questionsCat))}),t.DNE(10,Nc,10,11,"div",24),t.j41(11,"div",25)(12,"div",26),t.DNE(13,Yc,3,3,"button",27),t.k0s(),t.j41(14,"div",28)(15,"button",29),t.EFF(16),t.nI1(17,"translate"),t.k0s()()()()()}if(2&e){const n=t.XpG(2);t.R7$(2),t.Y8G("src",n.obj.img,t.B4B),t.R7$(3),t.JRh(n.obj.name),t.R7$(2),t.JRh(n.obj.course),t.R7$(3),t.Y8G("ngForOf",n.questionsCat),t.R7$(3),t.Y8G("ngIf",n.page),t.R7$(3),t.SpI(" ",t.bMT(17,6,"next")," ")}}function Vc(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",22)(1,"form",23),t.bIt("ngSubmit",function(){t.eBV(n);const o=t.XpG(2);return t.Njj(o.onSubmitExtraFeedback(o.questionsCat))}),t.j41(2,"mat-form-field",40)(3,"mat-label"),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"textarea",41),t.EFF(7," "),t.k0s()(),t.j41(8,"div",25)(9,"div",26)(10,"button",39),t.bIt("click",function(){t.eBV(n);const o=t.XpG(2);return t.Njj(o.backToLastPage())}),t.EFF(11),t.nI1(12,"translate"),t.k0s()(),t.j41(13,"div",28)(14,"button",29),t.EFF(15),t.nI1(16,"translate"),t.k0s()()()()()}if(2&e){const n=t.XpG(2);t.R7$(4),t.JRh(t.bMT(5,4,"extraFeedback")),t.R7$(2),t.Y8G("formControl",n.extraFeedbackText),t.R7$(5),t.SpI(" ",t.bMT(12,6,"previous")," "),t.R7$(4),t.SpI(" ",t.bMT(16,8,"next")," ")}}function Lc(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",11)(1,"div",12)(2,"button",13),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.goToCat())}),t.nrm(3,"i",14),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.DNE(6,Xc,18,8,"ng-template",15)(7,Vc,17,10,"ng-template",15),t.k0s()}if(2&e){const n=t.XpG();t.R7$(4),t.SpI(" ",t.bMT(5,3,"backToOverview")," "),t.R7$(2),t.Y8G("ngIf",!n.extraFeedback),t.R7$(),t.Y8G("ngIf",n.extraFeedback)}}function zc(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",42)(1,"p"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"img",43),t.j41(5,"p"),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"button",44),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.generateOSPayRedirect())}),t.EFF(9),t.nI1(10,"translate"),t.k0s()()}if(2&e){const n=t.XpG();t.R7$(2),t.JRh(t.bMT(3,4,"feedbackText1")),t.R7$(2),t.Y8G("src",n.object.organisation.img,t.B4B),t.R7$(2),t.JRh(t.bMT(7,6,"feedbackText2")),t.R7$(3),t.SpI(" ",t.bMT(10,8,"feedbackBtn")," ")}}let Bc=(()=>{var e;class s{constructor(){this.websiteService=(0,t.WQX)(z.j),this.userService=(0,t.WQX)(J.D),this.dialogService=(0,t.WQX)(M.bZ),this.authService=(0,t.WQX)($c.k),this.object={},this.goToCategory=new t.bkB,this.questionsCat=[],this.catList=[],this.obj={},this.extraFeedback=!1,this.extraFeedbackText=new f.MJ(""),this.page=0,this.answersList={},this.checkAnswersObj={}}ngOnInit(){var a;
1this.loadQuestions(),Object.entries(this.questions).forEach(([o,i],r)=>{this.catList.push(o),this.checkAnswersObj[r]=this.checkAnswers(i)}),this.catList.push("feedback"),this.userId=null===(a=this.authService.getCurrentUser())||void 0===a?void 0:a.id}checkAnswers(a){for(const o of a)if(null==o||!o.answer)return!1;return!0}loadQuestions(a){this.questionsCat=[],this.extraFeedback=!1;const o="number"==typeof a?this.catList[a]:this.categoryIso;if(this.page=null!=a?a:Object.keys(this.questions).findIndex(i=>i===o),"feedback"!==o){for(const[i,r]of Object.entries(this.questions))if(i===o){this.addQuestion(r,i);break}this.loadAnswers()}else this.goToExtraFeedback()}loadAnswers(){this.answersList={};for(const[a,o]of Object.entries(this.questions)){const r=o.filter(c=>c.answer).map(c=>({cat_id:c.categoryId,q_id:c.questionId,q_opt:c.answer}));this.answersList[a]=r}}addQuestion(a,o){for(const i of a)this.questionsCat.push({surveyId:i.surveyId,questionId:i.questionId,companyId:i.companyId,coursePlanId:this.course.planingId,courseCode:this.course.courseCode,question:i.questionText,catName:o,answer:i.answer,catOrder:i.catOrder,categoryId:i.categoryId}),i.freeText&&i.freeText!==this.extraFeedbackText.value&&this.extraFeedbackText.patchValue(i.freeText);Object.values(this.object).forEach(i=>{(null==i?void 0:i.catName)===o&&(this.obj=i)}),this.questionsCat.length>0&&(this.categoryId=this.questionsCat[0].categoryId)}onSubmit(a,o){const i=[];for(const c of a.target)c.checked&&(i.push({cat_id:this.categoryId,q_id:c.name,q_opt:+c.value}),this.saveAnswers(o,c.name,+c.value));const r=i;delete this.answersList[o[0].catName];for(const c in this.answersList)this.answersList.hasOwnProperty(c)&&i.push(...this.answersList[c]);this.answersList[o[0].catName]=r,this.saveFeedback(o,i),this.loadQuestions(this.page+1)}onSubmitExtraFeedback(a){const o=[];for(const r in this.answersList)this.answersList.hasOwnProperty(r)&&o.push(...this.answersList[r]);this.saveFeedback(a,o),this.dialogService.open(B.m,{data:{header:"feedbackTitle",template:this.feedbackPostedDialog},panelClass:["material-modal","col-12","col-lg-3"]})}saveAnswers(a,o,i){Object.values(this.questions).forEach((r,c)=>{const m=r;m[0].questionId===a[0].questionId&&(null==m||m.forEach(u=>{u.questionId===o&&(u.answer=i.toString())})),this.checkAnswersObj[c]=this.checkAnswers(m)})}saveFeedback(a,o){var i,r;if(!a.length)return;const{surveyId:c,companyId:m,coursePlanId:u,courseCode:_}=a[0];this.userService.postFeedbackQuestion(c,m,this.userId,u,_,o,null!==(i=null===(r=this.extraFeedbackText)||void 0===r?void 0:r.value)&&void 0!==i?i:"").subscribe()}backToLastPage(){this.loadQuestions(this.page-1)}goToExtraFeedback(){this.extraFeedback=!0,this.loadAnswers()}goToCat(){this.goToCategory.emit()}generateOSPayRedirect(){this.websiteService.generateOSPayRedirect("contact")}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-feedback-questions"]],viewQuery:function(a,o){if(1&a&&t.GBs(yc,7),2&a){let i;t.mGM(i=t.lsd())&&(o.feedbackPostedDialog=i.first)}},inputs:{object:"object",questions:"questions",answers:"answers",course:"course",categoryIso:"categoryIso"},outputs:{goToCategory:"goToCategory"},decls:6,vars:2,consts:[["feedbackPostedDialog",""],[1,"container","pt-2"],[1,"category-btn"],["class","button-box title-color",3,"ngClass","click",4,"ngFor","ngForOf"],["class","row",4,"ngIf"],[1,"button-box","title-color",3,"click","ngClass"],["class","divider d-none d-lg-inline-block",4,"ngIf"],[1,"button-primary-color"],["class","fas fa-check",4,"ngIf"],[1,"divider","d-none","d-lg-inline-block"],[1,"fas","fa-check"],[1,"row"],[1,"col-12","my-3"],["type","button","mat-raised-button","","color","primary-inverted",1,"text-uppercase",3,"click"],[1,"fas","fa-angle-left"],[3,"ngIf"],[1,"col-12","row","title-box","m-0"],[1,"col-12","col-md-6","text-right"],["alt","","appOnErrorImage","",3,"src"],[1,"col-12","col-md-6","text-left"],[1,"title"],[1,"subtitle"],[1,"col-12"],[3,"ngSubmit"],["class","row question-row",4,"ngFor","ngForOf"],[1,"row","mb-3"],[1,"col-6","text-left"],["type","button","mat-raised-button","","color","primary","class","text-uppercase",3,"click",4,"ngIf"],[1,"col-6","text-right"],["type","submit","mat-raised-button","","color","primary",1,"text-uppercase"],[1,"row","question-row"],[1,"col-12","text-right"],[1,"pr-3","questions-num"],[1,"col-12","col-md-6","pre-wrap"],[1,"col-12","col-md-6","row","m-0"],["class"," col-6 col-md-3 q-answer",4,"ngFor","ngForOf"],[1,"col-6","col-md-3","q-answer"],["type","radio",1,"form-check-input",3,"id","value","name","checked"],[1,"form-check-label",3,"for"],["type","button","mat-raised-button","","color","primary",1,"text-uppercase",3,"click"],["appearance","fill"],["matInput","","cdkFocusInitial","",1,"mdc-text-field--focused",3,"formControl"],["mat-dialog-content","",1,"text-center"],["alt","img","appOnErrorImage","",3,"src"],["type","button","mat-button","","color","primary",3,"click"]],template:function(a,o){1&a&&(t.j41(0,"div",1)(1,"div",2),t.DNE(2,Pc,8,8,"div",3),t.k0s(),t.DNE(3,Lc,8,5,"div",4),t.k0s(),t.DNE(4,zc,11,10,"ng-template",null,0,t.C5r)),2&a&&(t.R
17$(2),t.Y8G("ngForOf",o.catList),t.R7$(),t.Y8G("ngIf",o.obj))},dependencies:[d.YU,d.Sq,d.bT,f.qT,f.me,f.BC,f.cb,f.cV,f.l_,b.$z,ct.fg,V.rl,V.nJ,M.Yi,Q.e,d.lG,h.D9],styles:['.category-btn[_ngcontent-%COMP%]{text-align:center}.category-btn[_ngcontent-%COMP%] .button-box[_ngcontent-%COMP%]{text-transform:var(--text-transform-capitalize);background:none;border:var(--border-style-none);padding:var(--space-0);margin:var(--space-0) var(--space-5px);opacity:var(--opacity-50);vertical-align:top}.button-box[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:inline-block;width:var(--size-70px);cursor:pointer}.button-box[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:var(--font-size-62)}.category-btn[_ngcontent-%COMP%] .button-box[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{width:var(--size-100px);height:var(--size-2px);display:inline-block;vertical-align:top;top:var(--space-11px);position:relative;background:var(--color-accent);border-radius:var(--border-radius-none);padding:var(--space-0)}.category-btn[_ngcontent-%COMP%] .button-box.active[_ngcontent-%COMP%]{opacity:var(--opacity-100)}.category-btn[_ngcontent-%COMP%] .button-box[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--color-tint-1);border-radius:var(--border-radius-full);padding:var(--space-2px);width:var(--size-25px);height:var(--size-25px);display:inline-block}img[_ngcontent-%COMP%]{width:var(--size-120px);height:var(--size-120px);margin:var(--space-0) var(--space-auto);object-fit:cover}.go-to-category[_ngcontent-%COMP%]{padding:var(--space-5px) var(--space-13px);margin-left:var(--space-negative-10px);background:var(--color-tint-3)}.question-row[_ngcontent-%COMP%]:before{content:"";width:var(--size-50px);border-bottom:var(--border-xs-solid-tint-6);margin:var(--space-20px) var(--space-auto) var(--space-5px);display:none;margin-bottom:var(--space-1_5rem)}.question-row[_ngcontent-%COMP%]:first-of-type:before{display:block}.question-row[_ngcontent-%COMP%]{font-weight:var(--font-weight-bold);margin:var(--space-3rem) var(--space-0)}.question-row[_ngcontent-%COMP%]:first-of-type{margin-top:var(--space-1_5rem)}.form-check-input[_ngcontent-%COMP%]{opacity:var(--opacity-0)!important}.form-check-label[_ngcontent-%COMP%]{box-shadow:var(--shadow-none);border-radius:var(--border-radius-lg)!important;padding:var(--space-6px);font-size:var(--font-size-56);display:inline-block;width:var(--size-94-percent);text-transform:var(--text-transform-uppercase);margin:var(--space-0) var(--space-auto);border:var(--border-xxs-solid-tint-4)!important}.form-check-input[type=radio][_ngcontent-%COMP%] + label[_ngcontent-%COMP%]{background:var(--color-tint-5);padding:var(--space-0);text-align:center}.form-check-input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:var(--color-tint-8);color:var(--color-tint-1)}.form-check-label[_ngcontent-%COMP%]:before, .form-check-label[_ngcontent-%COMP%]:after{display:none}.title[_ngcontent-%COMP%]{font-size:var(--font-size-150)}.subtitle[_ngcontent-%COMP%]{font-size:var(--font-size-100)}.button-box[_ngcontent-%COMP%]{display:inline-block}.questions-num[_ngcontent-%COMP%]{display:none}@media (max-width: 1024px) and (min-width: 768px){.category-btn[_ngcontent-%COMP%] .button-box[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:var(--size-75px)}.q-answer[_ngcontent-%COMP%]{padding:var(--space-0)}}@media (max-width: 768px){.container[_ngcontent-%COMP%]{margin:var(--space-0);padding:var(--space-0)}.row[_ngcontent-%COMP%]{text-align:center}img[_ngcontent-%COMP%]{margin-bottom:var(--space-0_5rem)}.title-box[_ngcontent-%COMP%], .title-box[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{text-align:center!important}.category-btn[_ngcontent-%COMP%] .button-box[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:none}.q-answer[_ngcontent-%COMP%]{margin:var(--space-4px) var(--space-0)}.category-btn[_ngcontent-%COMP%] .button-box[_ngcontent-%COMP%]{width:var(--size-62px);font-size:var(--font-size-56);margin:var(--space-0)}.category-btn[_ngcontent-%COMP%] .button-box[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;margin:var(--space-0) var(--space-auto);font-size:var(--font-size-87)}.question-row[_ngcontent-%COMP%]:before{display:block;margin:var(--space-10px) var(--space-auto) var(--space-15px)}.question-row[_ngcontent-%COMP%]{margin:var(--space-1_5rem) var(--space-0)}.go-to-category[_ngcontent-%COMP%]{margin-left:var(--space-0)}
1.questions-num[_ngcontent-%COMP%]{display:block}.btn[_ngcontent-%COMP%]{padding:var(--space-0_44rem) var(--space-1_14rem)}}@media (max-width: 360px){.button-box[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:var(--font-size-50)}.category-btn[_ngcontent-%COMP%] .button-box[_ngcontent-%COMP%]{width:var(--size-50px);font-size:var(--font-size-50);margin:var(--space-0)}}\n\n/*# sourceMappingURL=feedback-questions.component.css.map*/']}),s})();function Qc(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",11)(1,"app-feedback-card",12),t.bIt("showQuestions",function(){const o=t.eBV(n).$implicit,i=t.XpG(3);return t.Njj(i.showQuestions(i.feedbackQ[o],"teacher"))}),t.k0s()()}if(2&e){const n=s.$implicit,a=t.XpG(3);t.R7$(),t.Y8G("object",a.feedbackQ[n].teacher)}}function Ac(e,s){if(1&e&&(t.j41(0,"div",8)(1,"h3"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",9),t.DNE(5,Qc,2,1,"div",10),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"evaluateTeacher")),t.R7$(3),t.Y8G("ngForOf",n.teachers)}}function Jc(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",11)(1,"app-feedback-card",12),t.bIt("showQuestions",function(){const o=t.eBV(n).$implicit,i=t.XpG(3);return t.Njj(i.showQuestions(i.feedbackQ[o],"product"))}),t.k0s()()}if(2&e){const n=s.$implicit,a=t.XpG(3);t.R7$(),t.Y8G("object",a.feedbackQ[n].product)}}function qc(e,s){if(1&e&&(t.j41(0,"div",8)(1,"h3"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",9),t.DNE(5,Jc,2,1,"div",10),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"evaluateCourse")),t.R7$(3),t.Y8G("ngForOf",n.courses)}}function Wc(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",11)(1,"app-feedback-card",12),t.bIt("showQuestions",function(){const o=t.eBV(n).$implicit,i=t.XpG(3);return t.Njj(i.showQuestions(i.feedbackQ[o],"ecampus"))}),t.k0s()()}if(2&e){const n=s.$implicit,a=t.XpG(3);t.R7$(),t.Y8G("object",a.feedbackQ[n].ecampus)}}function Uc(e,s){if(1&e&&(t.j41(0,"div",8)(1,"h3"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",9),t.DNE(5,Wc,2,1,"div",10),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"evaluateECampus")),t.R7$(3),t.Y8G("ngForOf",n.ecampus)}}function Hc(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",11)(1,"app-feedback-card",12),t.bIt("showQuestions",function(){const o=t.eBV(n).$implicit,i=t.XpG(3);return t.Njj(i.showQuestions(i.feedbackQ[o],"location"))}),t.k0s()()}if(2&e){const n=s.$implicit,a=t.XpG(3);t.R7$(),t.Y8G("object",a.feedbackQ[n].location)}}function Zc(e,s){if(1&e&&(t.j41(0,"div",8)(1,"h3"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",9),t.DNE(5,Hc,2,1,"div",10),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"evaluateLocation")),t.R7$(3),t.Y8G("ngForOf",n.locations)}}function Kc(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",11)(1,"app-feedback-card",12),t.bIt("showQuestions",function(){const o=t.eBV(n).$implicit,i=t.XpG(3);return t.Njj(i.showQuestions(i.feedbackQ[o],"organisation"))}),t.k0s()()}if(2&e){const n=s.$implicit,a=t.XpG(3);t.R7$(),t.Y8G("object",a.feedbackQ[n].organisation)}}function tl(e,s){if(1&e&&(t.j41(0,"div",8)(1,"h3"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",9),t.DNE(5,Kc,2,1,"div",10),t.k0s()()),2&e){const n=t.XpG(2);t.R7$(2),t.JRh(t.bMT(3,2,"evaluateOrganisation")),t.R7$(3),t.Y8G("ngForOf",n.organisations)}}function el(e,s){if(1&e&&(t.j41(0,"div",4)(1,"div",5)(2,"h2"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"p"),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"div",6),t.DNE(9,Ac,6,4,"div",7)(10,qc,6,4,"div",7)(11,Uc,6,4,"div",7)(12,Zc,6,4,"div",7)(13,tl,6,4,"div",7),t.k0s()()),2&e){const n=t.XpG();t.R7$(3),t.JRh(t.bMT(4,7,"giveFeedback")),t.R7$(3),t.SpI("",t.bMT(7,9,"feedbackText")," "),t.R7$(3),t.Y8G("ngIf",n.teachers.length>0),t.R7$(),t.Y8G("ngIf",n.courses.length>0),t.R7$(),t.Y8G("ngIf",n.ecampus.length>0),t.R7$(),t.Y8G("ngIf",n.locations.length>0),t.R7$(),t.Y8G("ngIf",n.organisations.length>0)}}function nl(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",13)(1,"app-feedback-questions",14),t.bIt("goToCategory",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.goToCategory())}),t.k0s()()}if(2&e){const n=t.XpG();t.R7$(),t.Y8G("object",n.courseObj)("course",n.course)("categoryIso",n.categoryIso)("questions",n.questions)("answers",n.answers)}}let ol=(()=>{var e;class s{constructor(a){this.userService=a,this.teachers=[],this.courses=[],this.locations=[],this.ecampus=[],this.organisations=[],this.packages=[],this.categoryView=!0,this.questions=[],this.answers=[],this.feedbackQ={},this.course={},this.categoryIso={}}ngOnInit(){this.loadQuestions()}loadQuestions(){this.userService.getUserCoursesForReview().subscribe(a=>
1{if(200===a.status){this.feedback=a.body.data;for(const o of this.feedback){let i;this.userService.getRatingStars(o.courseCode,o.planingId).subscribe(r=>{i=200===r.status?r.body.data:{},this.feedbackQ[o.courseCode]={};for(const c in o.categories)o.categories.hasOwnProperty(c)&&("teacher"===c&&(this.teachers.push(o.courseCode),this.feedbackQ[o.courseCode][c]={name:o.info.teacherNames,course:o.courseName,img:o.info.teacherPhoto,courseCode:o.courseCode,planingId:o.planingId,evaluate:!!i.Teacher,stars:i.Teacher,catName:o.categories[c]}),"product"===c&&(this.courses.push(o.courseCode),this.feedbackQ[o.courseCode][c]={name:o.courseName,img:o.image,courseCode:o.courseCode,planingId:o.planingId,evaluate:!!i.Product,stars:i.Product,catName:o.categories[c]}),"organisation"===c&&(this.organisations.push(o.courseCode),this.feedbackQ[o.courseCode][c]={name:o.info.companyName,course:o.courseName,img:o.info.ghostPhoto,courseCode:o.courseCode,planingId:o.planingId,evaluate:!!i.Organisation,stars:i.Organisation,catName:o.categories[c]}),"ecampus"===c&&(this.ecampus.push(o.courseCode),this.feedbackQ[o.courseCode][c]={name:"ECAMPUS",course:o.courseName,img:o.info.ecampusPhoto,courseCode:o.courseCode,planingId:o.planingId,evaluate:!!i.ECAMPUS,stars:i.ECAMPUS,catName:o.categories[c]}),"location"===c&&(this.locations.push(o.courseCode),this.feedbackQ[o.courseCode][c]={name:o.info.campName,course:o.courseName,img:o.info.campusPhoto,courseCode:o.courseCode,planingId:o.planingId,evaluate:!!i.Location,stars:i.Location,catName:o.categories[c]}),"package"===c&&o.materials[0]&&(this.packages.push(o.courseCode),this.feedbackQ[o.courseCode][c]={name:o.materials.teacherNames,course:o.courseName,img:o.materials.teacherPhoto,courseCode:o.courseCode,planingId:o.planingId,evaluate:!!i.package,stars:i.package,catName:o.categories[c]}))})}}})}showQuestions(a,o){this.userService.getFeedbackQuestion(a[o].planingId,a[o].courseCode).subscribe(i=>{this.courseObj=a,this.categoryView=!1,this.categoryIso=a[o].catName,this.questions=i.data.questions,this.answers=i.data.options,this.course={planingId:a[o].planingId,courseCode:a[o].courseCode}})}goToCategory(){this.teachers=[],this.courses=[],this.packages=[],this.organisations=[],this.ecampus=[],this.locations=[],this.loadQuestions(),this.categoryView=!0}}return(e=s).\u0275fac=function(a){return new(a||e)(t.rXU(J.D))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-feedback"]],decls:5,vars:2,consts:[["questionsList",""],[1,"container","mat-elevation-z3","feedback-wrap","mb-0","mb-sm-5","sm-no-shadow"],[1,"row","m-0","px-5","pt-5"],["class","col-12 p-0 m-0 row",4,"ngIf","ngIfElse"],[1,"col-12","p-0","m-0","row"],[1,"col-12","px-0"],[1,"col-12","row","px-0","m-0"],["class","col-12 my-4 px-0 cat-name",4,"ngIf"],[1,"col-12","my-4","px-0","cat-name"],[1,"row"],["class","col-md-3 col-sx-12",4,"ngFor","ngForOf"],[1,"col-md-3","col-sx-12"],[3,"showQuestions","object"],[1,"col-12","p-0"],[3,"goToCategory","object","course","categoryIso","questions","answers"]],template:function(a,o){if(1&a&&(t.j41(0,"div",1)(1,"div",2),t.DNE(2,el,14,11,"div",3)(3,nl,2,5,"ng-template",null,0,t.C5r),t.k0s()()),2&a){const i=t.sdS(4);t.R7$(2),t.Y8G("ngIf",o.categoryView)("ngIfElse",i)}},dependencies:[d.Sq,d.bT,Mc,Bc,h.D9]}),s})();const al=e=>({"mb-0 mb-sm-5":e});function sl(e,s){if(1&e&&(t.j41(0,"p",18)(1,"strong"),t.EFF(2),t.k0s(),t.EFF(3),t.nI1(4,"translate"),t.k0s()),2&e){const n=t.XpG(2);t.R7$(2),t.Lme("",n.hasNext.courseName," ",n.hasNext.startDateDayMonth,""),t.R7$(),t.SpI(" ",t.bMT(4,3,"infoSessionActive")," ")}}function il(e,s){if(1&e&&(t.j41(0,"a",19),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"i",20),t.k0s()),2&e){const n=t.XpG(2);t.FS9("href",n.hasNext.zoomUrl,t.B4B),t.R7$(),t.SpI(" ",t.bMT(2,2,"infoSessionBtnAct")," ")}}function rl(e,s){if(1&e&&(t.j41(0,"p",18)(1,"strong"),t.EFF(2),t.k0s(),t.EFF(3),t.nI1(4,"translate"),t.k0s()),2&e){const n=t.XpG(2);t.R7$(2),t.Lme("",n.hasNext.courseName," ",n.hasNext.startDateDayMonth,""),t.R7$(),t.Lme(" ",t.bMT(4,4,"infoSessionStart")," ",n.hasNext.timeLeft," ")}}function cl(e,s){1&e&&(t.j41(0,"button",21),t.EFF(1),t.nI1(2,"translate"),t.nrm(3,"i",20),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"infoSessionBtn")," "))}function ll(e,s){if(1&e&&(t.j41(0,"div",14),t.DNE(1,sl,5,5,"p",15)(2,il,4,4,"a",16)(3,rl,5,6,"p",15)(4,cl,4,3,"button",17),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Y8G("ngIf",n.hasNext.started),t.R7$(),t.Y8G("ngIf",n.hasNext.started),t.R7$(),t.Y8G("ngIf",!n.hasNext.started),t.R7$(),t.Y8G("ngIf",!n.hasNext.started)}}function ml(e,s){if(1&e){const n=t.RV6();t.j41(0,"p",22),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"button",23),t.bIt("click",function(){t.eBV(n);const o=t.XpG(),i=t.sdS(18);return t.Njj(o.scroll(i))}),t.EFF(4),t.nI1(5,"translate"),t.k0s()}
12&e&&(t.R7$(),t.JRh(t.bMT(2,2,"infoSessionTextPlaning")),t.R7$(3),t.SpI(" ",t.bMT(5,4,"infoSessionBtnPlanning")," "))}function pl(e,s){1&e&&(t.j41(0,"a",36),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"signedUp")))}function dl(e,s){if(1&e){const n=t.RV6();t.j41(0,"a",37),t.bIt("click",function(){t.eBV(n);const o=t.XpG().$implicit,i=t.XpG(2);return t.Njj(i.generateOSPayRedirect(o.courseCode,o.courseId))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&e){const n=t.XpG().$implicit;t.Y8G("disabled",n.ended),t.R7$(),t.SpI(" ",t.bMT(2,2,"register")," ")}}function ul(e,s){1&e&&(t.j41(0,"a",38),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"full")))}function _l(e,s){if(1&e&&(t.j41(0,"div",27)(1,"div",28),t.nrm(2,"img",29),t.k0s(),t.j41(3,"div",28)(4,"p")(5,"strong"),t.EFF(6),t.k0s()()(),t.j41(7,"div",30)(8,"p"),t.EFF(9),t.nI1(10,"localeDateString"),t.k0s(),t.j41(11,"p"),t.EFF(12),t.nI1(13,"translate"),t.nI1(14,"translate"),t.k0s(),t.j41(15,"p"),t.EFF(16),t.nI1(17,"translate"),t.nI1(18,"translate"),t.k0s(),t.j41(19,"p"),t.EFF(20),t.nI1(21,"translate"),t.nI1(22,"translate"),t.k0s()(),t.j41(23,"div",28)(24,"p",31),t.EFF(25),t.nI1(26,"translate"),t.k0s(),t.j41(27,"p",31),t.EFF(28),t.nI1(29,"translate"),t.k0s(),t.j41(30,"p",31),t.EFF(31),t.nI1(32,"translate"),t.k0s()(),t.j41(33,"div",32),t.DNE(34,pl,3,3,"a",33)(35,dl,3,4,"a",34)(36,ul,3,3,"a",35),t.k0s()()),2&e){const n=s.$implicit;t.R7$(2),t.Y8G("src",n.picture,t.B4B),t.R7$(4),t.Lme("",n.courseName," ",n.startDateDayMonth,""),t.R7$(3),t.JRh(t.bMT(10,19,n.startDate)),t.R7$(3),t.E5c("",t.bMT(13,21,"language"),"",t.bMT(14,23,"typography.colon"),"",n.language,""),t.R7$(4),t.E5c("",t.bMT(17,25,"startTime"),"",t.bMT(18,27,"typography.colon"),"",n.startTime,""),t.R7$(4),t.E5c("",t.bMT(21,29,"endTime"),"",t.bMT(22,31,"typography.colon"),"",n.endTime,""),t.R7$(5),t.JRh(t.bMT(26,33,"studyAdvice")),t.R7$(3),t.JRh(t.bMT(29,35,"introductionToTheSchool")),t.R7$(3),t.JRh(t.bMT(32,37,"register")),t.R7$(3),t.Y8G("ngIf",n.subscribed),t.R7$(),t.Y8G("ngIf",!n.full&&!n.subscribed),t.R7$(),t.Y8G("ngIf",n.full)}}function gl(e,s){if(1&e&&(t.j41(0,"div",24)(1,"h3",25),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,_l,37,39,"div",26),t.k0s()),2&e){const n=t.XpG();t.R7$(2),t.JRh(t.bMT(3,2,"infoSessionTitle2")),t.R7$(2),t.Y8G("ngForOf",n.infoSessions)}}function fl(e,s){1&e&&t.nrm(0,"app-ecampus-navigation",39),2&e&&t.Y8G("isFooter",!0)}let hl=(()=>{var e;class s{constructor(a,o,i){this.userService=a,this.deviceService=o,this.websiteService=i,this.isDesktop=this.deviceService.isDesktop()}ngOnInit(){this.userService.getUserInfoSessions().pipe((0,x.T)(a=>{var o;return(null==a||null===(o=a.body)||void 0===o?void 0:o.data)||[]})).subscribe(a=>{a.length&&(this.infoSessions=a.map(o=>(o.nextInfoSession&&o.subscribed&&(this.hasNext=o),this.userService.isInfoSessionStarted(o))))})}scroll(a){a.scrollIntoView()}generateOSPayRedirect(a,o){return this.websiteService.generateOSPayRedirect(k.SJ.subscription,{courseCode:a,planningId:o})}}return(e=s).\u0275fac=function(a){return new(a||e)(t.rXU(J.D),t.rXU(O.Kg),t.rXU(z.j))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-info-session"]],decls:21,vars:13,consts:[["noNext",""],["lesplanning",""],[1,"container","info-page","mat-elevation-z3",3,"ngClass"],[1,"row","background-color"],[1,"col-12"],[1,"text-white","py-3"],[1,"row"],[1,"col-12","mb-3","p-0","info-session"],[1,"px-3"],[1,"text-center","py-3"],["alt","","src","../../../../assets/img/infosession.png",1,"img-banner"],["class","pt-3",4,"ngIf","ngIfElse"],["class","mx-0 px-3 infoSession-container",4,"ngIf"],[3,"isFooter",4,"ngIf"],[1,"pt-3"],["class","text-center",4,"ngIf"],["target","_blank","mat-raised-button","","color","primary",3,"href",4,"ngIf"],["disabled","","mat-raised-button","","color","primary",4,"ngIf"],[1,"text-center"],["target","_blank","mat-raised-button","","color","primary",3,"href"],[1,"fas","fa-video"],["disabled","","mat-raised-button","","color","primary"],[1,"info-text","mt-2"],["type","button","mat-raised-button","","color","primary",1,"mt-2",3,"click"],[1,"mx-0","px-3","infoSe
1ssion-container"],[1,"text-center","my-5"],["class","row m-0 interests py-3",4,"ngFor","ngForOf"],[1,"row","m-0","interests","py-3"],[1,"col-12","col-lg-2","infoSession"],["alt","","appOnErrorImage","",3,"src"],[1,"col-12","col-lg-3","infoSession"],[1,"m-0"],[1,"col-12","col-lg-3","box-active","infoSession"],["mat-raised-button","","color","success","class","no-pointer",4,"ngIf"],["mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],["mat-raised-button","","disabled","","class","no-pointer",4,"ngIf"],["mat-raised-button","","color","success",1,"no-pointer"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-raised-button","","disabled","",1,"no-pointer"],[3,"isFooter"]],template:function(a,o){if(1&a&&(t.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"h2",5),t.EFF(4),t.nI1(5,"translate"),t.k0s()()(),t.j41(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9)(10,"h3"),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.nrm(13,"img",10),t.DNE(14,ll,5,4,"div",11)(15,ml,6,6,"ng-template",null,0,t.C5r),t.k0s(),t.nrm(17,"hr",null,1),t.DNE(19,gl,5,4,"div",12),t.k0s()()()(),t.DNE(20,fl,1,1,"app-ecampus-navigation",13)),2&a){const i=t.sdS(16);t.Y8G("ngClass",t.eq3(11,al,o.isDesktop)),t.R7$(4),t.JRh(t.bMT(5,7,"myInfoSessions")),t.R7$(7),t.JRh(t.bMT(12,9,"infoSessionTitle")),t.R7$(3),t.Y8G("ngIf",o.hasNext)("ngIfElse",i),t.R7$(5),t.Y8G("ngIf",o.infoSessions&&o.infoSessions.length>0),t.R7$(),t.Y8G("ngIf",!o.isDesktop)}},dependencies:[d.YU,d.Sq,d.bT,nt.O,b.It,b.$z,Q.e,h.D9,xt.E],styles:[".fixed-sn main{padding-top:var(--space-0)}h2[_ngcontent-%COMP%]{font-size:var(--font-size-125)}h3[_ngcontent-%COMP%]{font-weight:var(--font-weight-bold)}.infoSession-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-of-type{padding-top:var(--space-0)!important}.interests[_ngcontent-%COMP%]{text-align:center}.interests[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:var(--space-0)}.interests[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:var(--size-100-percent);height:var(--size-auto);margin-bottom:var(--space-5px)}.img-banner[_ngcontent-%COMP%]{max-width:var(--size-100-percent)}.infoSession[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-top:var(--space-5px);padding-bottom:var(--space-5px)}.interests[_ngcontent-%COMP%]:not(.interests:last-child){border-bottom:var(--border-xxs-solid-tint-4)}.interests[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{min-width:var(--size-110px);width:var(--size-100-percent);margin:var(--space-0)}.no-pointer[_ngcontent-%COMP%]{cursor:default;pointer-events:none}.info-text[_ngcontent-%COMP%]{max-width:var(--size-info-session-max-width);margin:var(--space-0) var(--space-auto)}@media screen and (min-width: 992px){.interests[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:var(--size-100px)}.infoSession[_ngcontent-%COMP%]{padding-top:var(--space-0);padding-bottom:var(--space-0)}p[_ngcontent-%COMP%]{text-align:left}.infoSession[_ngcontent-%COMP%]{align-items:flex-start}.infoSession-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:last-of-type{align-items:center!important}}\n\n/*# sourceMappingURL=student-info-session.component.css.map*/"]}),s})();var vl=l(20892);let xl=(()=>{var e;class s{}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-info"]],decls:1,vars:0,template:function(a,o){1&a&&t.nrm(0,"app-user-profile")},dependencies:[vl.W],encapsulation:2}),s})();var Cl=l(52575),bl=l(63037),El=l(17077),Tl=l(29357),Il=l(45312),Sl=l(23203),Wt=l(85060),Ut=l(79771),kl=l(97024),bt=l(79975),Rl=l(31181),Fl=l(27583);const Ml=(e,s)=>s.prospectId,$l=e=>({height:e}),Et=(e,s,n)=>[e,s,n],yl=()=>({text:"trialChapter",title:"chapter",params:"chapter"}),Dl=()=>({text:"infoBrochure",title:"brochure",params:"brochure"}),jl=()=>({text:"register",title:"subscribe"});function wl(e,s){if(1&e){const n=t.RV6();t.j41(0,"button",24),t.bIt("click",function(){t.eBV(n);const o=t.XpG();return t.Njj(o.onClear())}),t.nrm(1,"i",25),t.k0s()}}function Ol(e,s){if(1&e&&(t.j41(0,"mat-option",28)(1,"span"),t.EFF(2),t.k0s()()),2&e){const n=s.$implicit;t.Y8G("value",n),t.R7$(2),t.JRh(n)}}function Pl(e,s){1&e&&(t.j41(0,"mat-option",27),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"noResultsFound")," "))}function Gl(e,s){if(1&e&&(t.DNE(0,Ol,3,2,"mat-option",26),t.nI1(1,"trackBy"),t.DNE(2,Pl,3,3,"mat-option",27)),2&e){const n=s;t.Y8G("cdkVirtualForOf",n)("cdkVirtualForTrackBy",t.bMT(1,3,null)),t.R7$(2),t.vxM(null!=n&&n.length?-1:2)}}function Nl(e,s){1&e&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"formValidation.noStartingSpaces")," "))}function Yl(e,s){if(1&e&&(t.j41(0,"mat-error"),t.DNE(1,Nl,3,3,"span"),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.vxM(n.interest.errors.noStartingSpaces?1:-1)}}function Xl(e,s){if(1&e){const n=t.RV6();t.j41(0,"button",29),t.bIt("click",function(){const o=t.eBV(n).$index,i=t.XpG();return t.Njj(i.filterInterests(o))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&e){const n=s.$implicit,a=s.$index,o=t.XpG();t.Y8G("color","primary"+(o.selectedTab!==a?"-inverted":""))("disabled",!o.interests.length),t.R7$(),t.SpI(" ",t.bMT(2,3,n)," ")}}function Vl(e,s){if(1&e&&(t.j41(0,"p",37),t.EFF(1),t.nrm(2,"br"),t.EFF(3),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.SpI(" ",n.description1," "),t.R7$(2),t.SpI(" ",n.description2," ")}}function Ll(e,s){if(1&e){const n=t.RV6();t.j41(0,"a",45),t.bIt("click",function(){const o=t.eBV(n).params,i=t.XpG().$implicit,r=t.XpG
1(2);return t.Njj(r.ctaAction(i.courseCode,o))}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&e){const n=s.text;t.Y8G("title",s.title),t.R7$(),t.SpI(" ",t.bMT(2,2,n)," ")}}function zl(e,s){if(1&e){const n=t.RV6();t.j41(0,"div",30)(1,"mat-card",31)(2,"a",32),t.bIt("click",function(){const o=t.eBV(n).$implicit,i=t.XpG(2);return t.Njj(i.deleteInterest(o.courseCode))}),t.nrm(3,"i",33),t.k0s(),t.nrm(4,"img",34),t.nI1(5,"routeT"),t.nI1(6,"seoFriendlyFormat"),t.nI1(7,"seoFriendlyFormat"),t.j41(8,"mat-card-content")(9,"mat-card-title")(10,"h4",35),t.nI1(11,"routeT"),t.nI1(12,"seoFriendlyFormat"),t.nI1(13,"seoFriendlyFormat"),t.EFF(14),t.k0s()(),t.j41(15,"h5",36),t.EFF(16),t.nI1(17,"generateCourseTitle"),t.nI1(18,"translate"),t.k0s(),t.DNE(19,Vl,4,2,"p",37),t.j41(20,"div",38),t.eu8(21,39)(22,39)(23,39),t.DNE(24,Ll,3,4,"ng-template",null,1,t.C5r),t.k0s(),t.j41(26,"div",40)(27,"mat-checkbox",41),t.bIt("change",function(){const o=t.eBV(n).$implicit,i=t.XpG(2);return t.Njj(i.onCheck(o.courseName,o.courseCode))}),t.j41(28,"span",42),t.EFF(29),t.nI1(30,"translate"),t.k0s()()(),t.j41(31,"a",43),t.nI1(32,"routeT"),t.nI1(33,"seoFriendlyFormat"),t.nI1(34,"seoFriendlyFormat"),t.nrm(35,"i",44),t.k0s()()()()}if(2&e){const n=s.$implicit,a=t.sdS(25),o=t.XpG(2);t.R7$(4),t.FS9("src",n.picture,t.B4B),t.Y8G("routerLink",t.sMw(45,Et,t.bMT(5,21,"/course"),t.bMT(6,23,n.urlParam),t.bMT(7,25,n.courseCode))),t.R7$(6),t.Y8G("routerLink",t.sMw(49,Et,t.bMT(11,27,"/course"),t.bMT(12,29,n.urlParam),t.bMT(13,31,n.courseCode))),t.R7$(4),t.JRh(n.courseName),t.R7$(2),t.JRh(t.bMT(18,35,t.bMT(17,33,n))),t.R7$(3),t.vxM(n.description1?19:-1),t.R7$(2),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.lJ4(53,yl)),t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.lJ4(54,Dl)),t.R7$(),t.Y8G("ngTemplateOutlet",a)("ngTemplateOutletContext",t.lJ4(55,jl)),t.R7$(4),t.Mz_("id","check",n.courseCode,""),t.Y8G("disabled",!o.comparableCourseCodes.includes(n.courseCode)&&3===o.comparableCourses.length)("checked",o.comparableCourseCodes.includes(n.courseCode)),t.BMQ("data-name",n.courseName),t.R7$(),t.Mz_("for","check",n.courseCode,""),t.R7$(),t.JRh(t.bMT(30,37,"compareLabel")),t.R7$(2),t.Y8G("routerLink",t.sMw(56,Et,t.bMT(32,39,"/course"),t.bMT(33,41,n.urlParam),t.bMT(34,43,n.courseCode)))}}function Bl(e,s){if(1&e&&(t.j41(0,"div",21),t.Z7z(1,zl,36,60,"div",30,Ml),t.k0s()),2&e){const n=t.XpG();t.R7$(),t.Dyx(n.showInterests)}}function Ql(e,s){1&e&&(t.j41(0,"div",22)(1,"div",46)(2,"h5"),t.EFF(3),t.nI1(4,"translate"),t.k0s()()()),2&e&&(t.R7$(3),t.JRh(t.bMT(4,1,"interestText2")))}function Al(e,s){1&e&&t.nrm(0,"app-ecampus-navigation",23),2&e&&t.Y8G("isFooter",!0)}let Ht=(()=>{var e;class s{constructor(){this.route=(0,t.WQX)(E.nX),this.formBuilder=(0,t.WQX)(f.Qk),this.deviceService=(0,t.WQX)(O.Kg),this.toastrService=(0,t.WQX)(tt.tw),this.helperService=(0,t.WQX)(et.w),this.websiteService=(0,t.WQX)(z.j),this.coursesService=(0,t.WQX)(mt._),this.interestsService=(0,t.WQX)(Tl.p),this.translateService=(0,t.WQX)(h.c$),this.comparisonService=(0,t.WQX)(Sl.P),this.generateFastImagePipe=(0,t.WQX)(Ct.l),this.loaderService=(0,t.WQX)(Y.Z),this.interests=[],this.showInterests=[],this.potentialInterestList=[],this.potentialInterest=[],this.isDesktop=this.deviceService.isDesktop(),this.selectedTab=0,this.isButtonDisabled=!0,this.filterButtons=["allThematical","homeStudies","groupCourses","virtualCourse"],this.interestForm=this.formBuilder.group({interest:["",[(0,El.rK)()]]}),this.destroy$=new y.B,this.defaultCourseImages={thuis:"/assets/img/default_image_home_course.png",groep:"/assets/img/default_image_group_course.png",virtual:"/assets/img/default_image_virtual_course.png"}}get interest(){return this.interestForm.controls.interest}ngOnInit(){this.loaderService.setIsLoading(!0),this.interestsService.getInterests().pipe((0,W.Z)(a=>{const o=a.map(r=>r.courseCode),i=a;return this.coursesService.getAdwordText(o).pipe((0,x.T)(r=>(Object.entries(r).forEach(([c,m])=>{if(m&&m.length&&m[0].Description1){const u=i.findIndex(_=>_.courseCode===c);if(-1!==u){const[{Description1:_,Description2:g}]=m;i[u]=(0,C.A)((0,C.A)({},i[u]),{},{description1:_,description2:g})}}}),i)),(0,v.Q)(this.destroy$))}),(0,x.T)(a=>a.map(o=>{if(o.picture&&""!==o.picture)return(0,C.A)((0,C.A)({},o),{},{picture:this.generateFastImagePipe.transform(o.picture)});const{type:i,subtype:r}=o,c=this.helperService.getDefinitiveCourseType(i,r);return(0,C.A)((0,C.A)({},o),{},{picture:this.defaultCourseImages[c]})})),(0,W.Z)(a=>{const o=this.interestsService.getPotentialUserInterests().pipe((0,x.T)(i=>(null==i?void 0:i.data)||null));return(0,pt.p)([(0,F.of)(a),o])}),(0,v.Q)(this.destroy$)).subscribe(([a,o])=>{a.length&&(this.interests=a,this.filterInterests(0)),o&&(this.potentialInterestList=Object.entries(o).reduce((i,[r,c])=>[...i,...c.map(({courseName:u,courseCode:_})=>({courseName:u,courseCode:_,type:this.translateService.instant("typography.dash",{left:u,right:this.translateService.instant("thuis"===r?"courseTypeHome":"groep"===r?"courseTypeGroup":"courseTypeVirtual")})}))],[]),this.potentialInterest=this.potentialInterestList.map(({type:i})=>i),this.results$=this.interest.valueChanges.pipe((0,Cl.B)(250),(0,bl.Z)(""),(0,x.T)(i=>{const r=i.toLowerCase(),c=this.potentialInterest.filter(u=>u.toLowerCase().includes(r)).sort((u,_)=>u.localeCompare(_)),[m]=c;return this.isButtonDisabled=1!==c.length||m.toLowerCase()!==r,this.height=this.helperService.calculateOptionListHeight(c.length),c}))),this.loaderService.setIsLoading(!1)}),this.comparisonService.getComparableCourses().pipe((0,v.Q)(this.destroy$)).subscribe(a=>{this.comparableCourses=a,this.comparableCourseCodes=a.map(({courseCode:o})=>o)})}onClear(){this.interestForm.patchValue({interest:""})}onSubmit(){this.loaderService.setIsLoading(!0);const{value:a}=this.interest,o=this.potentialInterestList.find(({type:r})=>r.toLowerCase()===a.toLowerCase());o||(this.loaderService.setIsLoading(!1),this.toastrService.error(this.translateService.instant("somethingWentWrongTryAgain")));const{courseCode:i}=o;this.interestsService.insertUserInterest([i]).pipe((0,v.Q)(this.destroy$)).subscribe(r=>{r&&(this.loaderService.setIsLoading(!1),this.interestForm.patchValue({interest:""}))})}ngAfterViewInit(){this.route.params&&this.route.params.pipe((0,v.Q)(this.destroy$)).subscribe(({type:a,code:o})=>{a&&o&&this.openPublication(o,a)})}ctaAction(a,o=null){if(!o)return this.websiteService.generateOSPayRedirect(k.SJ.subscription,{courseCode:a});this.openPublication(a,o)}openPublication(a,o){const{flowpaperUrl:i}=Il.M,r="".concat(o,"s"),c="".concat(i,"/php/simple_document.php?subfolder=").concat(r,"/&doc=").concat(a,"-").concat(o,".pdf");window.open(c,"_blank")}filterInterests(a){if(!this.interests.length)return this.selectedTab=0,void(this.showInterests=this.interests);switch(this.selectedTab=a,a){case 1:this.filterShownCourses(k.q1.home);break;case 2:this.filterShownCourses(k.q1.group);break;case 3:this.filterShownCourses(k.q1.virtual);break;default:this.showInterests=this.interests}}deleteInterest(a){const o=this.interests.find(g=>g.courseCode===a),{type:i,subtype:r,courseCode:c,courseName:m}=o,u=this.helperService.getDefinitiveCourseType(i,r),_={type:this.translateService.instant("typography.dash",{left:m,right:u}),courseCode:c,courseName:m};this.loaderService.setIsLoading(!0),this.interestsService.deleteUserInterest(c).pipe((0,v.Q)(this.destroy$)).subscribe(({success:g,key:R})=>{if(this.loaderService.setIsLoading(!1),!g){const K=this.translateService.instant(R);return this.toastrService.error(K)}const G=this.translateService.instant(R);this.toastrService.info(G),this.interest.patchValue(""),this.potentialInterestList=[...this.potentialInterestList,_],this.potentialInterest=[...this.potentialInterest,_.type],this.potentialInterest.sort(),this.interests=this.interests.filter(K=>K.courseCode!==c),this.interestsService.setInterests(this.interests),this.filterInterests(this.selectedTab)})}onCheck(a,o){this.comparisonService.updateComparableCourses([{courseName:a,courseCode:o}])}filterShownCourses(a){this.showInterests=this.interests.filter(({type:o,subtype:i})=>{const r=this.helperService.getDefinitiveCourseType(o,i);return a===r})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-interest"]],decls:44,vars:36,consts:[["auto","matAutocomplete"],["cardAction",""],[1,"container"],[1,"row","interest-nav"],[1,"col-12","text-left"],[1,"mt-3"],[1,"col-12","text-left","p-3"],[1,"mat-elevation-z3","p-3"],[3,"ngSubmit","formGroup"],[1,"row"],[1,"col-12","col-md-9"],["matInput","","type","text","matNativeControl","",3,"formControl","value","placeholder","matAutocomplete"],["type","button","input-action","","matSuffix","","mat-icon-button","","aria-label","Clear"],["hideSingleSelectionIndicator","true"],["itemSize","48","minBufferPx","240","maxBufferPx","480",3,"ngStyle"],[1,"col-12","col-md-3"],["mat-raised-button","","color","primary","type","submit","id","int-add","matTooltipPosition","right","matRipple","",1,"text-uppercase",3,"disabled","matTooltip"],[1,"col-12","text-right","pb-3"],["type","button","mat-raised-button","",1,"text-uppercase",3,"color","disabled"],[1,"row","pb-4"],[1,"col-12"],[1,"row","card-deck"],[1,"row","py-5"],[3,"isFooter"],["type","button","input-action","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[1,"fas","fa-xmark","text-color"],[3,"value",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],["disabled","",1,"autocomplete-option","no-results"],[3,"value"],["type","button","mat-raised-button","",1,"text-uppercase",3,"click","color","disabled"],[1,"col-md-4","mb-3","interest-card"],[1,"mx-0"],[1,"interest-delete",3,"click"],[1,"fa","fa-times-circle","text-dark","c-p"],["mat-card-image","","alt","Card image cap",1,"interest-image",3,"src","routerLink"],[3,"routerLink"],[1,"ecampus-title"],[1,"interest-text"],[1,"interest-btn","button-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"col","pl-0","mt-3"],[3,"change","disabled","checked","id"],[3,"for"],[1,"interest-course","float-right",3,"routerLink"],[1,"fa-info-circle","text-dark","fa-lg","fas"],["mat-raised-button","","color","primary",1,"mobile-button-block",3,"click","title"],[1,"col-12","text-center"]],template:function(a,o){if(1&a){const i=t.RV6();t.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"h3",5),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"p"),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"p"),t.EFF(10),t.nI1(11,"translate"),t.k0s()(),t.j41(12,"div",6)(13,"div",7)(14,"h3"),t.EFF(15),t.nI1(16,"translate"),t.k0s(),t.j41(17,"form",8),t.bIt("ngSubmit",function(){return t.eBV(i),t.Njj(o.onSubmit())}),t.j41(18,"div",9)(19,"div",10)(20,"mat-form-field"),t.nrm(21,"input",11),t.nI1(22,"translate"),t.DNE(23,wl,2,0,"button",12),t.j41(24,"mat-autocomplete",13,0)(26,"cdk-virtual-scroll-viewport",14),t.DNE(27,Gl,3,5),t.nI1(28,"async"),t.k0s()(),t.DNE(29,Yl,2,1,"mat-error"),t.k0s()(),t.j41(30,"div",15)(31,"button",16),t.nI1(32,"translate"),t.EFF(33),t.nI1(34,"translate"),t.k0s()()()()()(),t.j41(35,"div",17),t.Z7z(36,Xl,3,5,"button",18,t.fX1),t.k0s()(),t.j41(38,"div",19)(39,"div",20),t.DNE(40,Bl,3,0,"div",21)(41,Ql,5,3,"div",22),t.k0s()()(),t.DNE(42,Al,1,1,"app-ecampus-navigation",23),t.nrm(43,"app-course-comparison")}if(2&a){let i;const r=t.sdS(25);t.R7$(4),t.JRh(t.bMT(5,18,"myInterests")),t.R7$(3),t.JRh(t.bMT(8,20,"myIntText")),t.R7$(3),t.JRh(t.bMT(11,22,"interestText")),t.R7$(5),t.JRh(t.bMT(16,24,"myIntTitle")),t.R7$(2),t.Y8G("formGroup",o.interestForm),t.R7$(4),t.FS9("placeholder",t.bMT(22,26,"searchLabel")),t.Y8G("formControl",o.interest)("value",o.interestForm.value.interest)("matAutocomplete",r),t.R7$(2),t.vxM(o.interestForm.value.interest?23:-1),t.R7$(3),t.Y8G("ngStyle",t.eq3(34,$l,o.height)),t.R7$(),t.vxM((i=t.bMT(28,28,o.results$))?27:-1,i),t.R7$(2),t.vxM(o.interest.errors?29:-1),t.R7$(2),t.FS9("matTooltip",t.bMT(32,30,"addInterest")),t.Y8G("disabled",o.interest.invali
1d||""===o.interest.value||o.isButtonDisabled),t.R7$(2),t.SpI(" ",t.bMT(34,32,"addInterests")," "),t.R7$(3),t.Dyx(o.filterButtons),t.R7$(4),t.vxM(+(null==o.showInterests?null:o.showInterests.length)?40:41),t.R7$(2),t.vxM(o.isDesktop?-1:42)}},dependencies:[d.T3,d.B3,f.qT,f.me,f.BC,f.cb,f.l_,f.j4,nt.O,b.It,b.$z,b.iY,ct.fg,V.rl,V.TL,V.yw,Wt.wT,At.oV,Ut.$3,Ut.pN,D.RN,D.m2,D.kF,D.dh,kl.So,Wt.r6,bt.yg,bt.E$,bt.d6,Rl.S,E.Wk,d.Jj,h.D9,Fl.t,U.s,jt.w,Xt.h],styles:[".interest-nav[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{margin:var(--space-0)}.interest-nav[_ngcontent-%COMP%] .no-results[_ngcontent-%COMP%]{position:absolute;top:var(--space-interest-no-result);left:var(--space-15px);width:var(--size-autocomplete-no-result-width)}.interest-nav[_ngcontent-%COMP%] form[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:var(--space-8px)}.interest-nav[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3) button[_ngcontent-%COMP%]{margin:var(--space-8px)}.interest-btn[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:var(--font-size-56);padding:var(--space-0_3rem);text-transform:var(--text-transform-uppercase);font-weight:var(--font-weight-normal)}@media (max-width: 767px){.interest-btn.button-container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:var(--size-100-percent)}}#int-add[_ngcontent-%COMP%]{border:var(--border-style-none);margin:var(--space-10px) var(--space-0);padding:var(--space-10px) var(--space-26px);height:var(--size-fit-content)}.interest-card[_ngcontent-%COMP%] .interest-image[_ngcontent-%COMP%]{max-height:var(--size-210px);overflow:hidden;cursor:pointer;object-fit:cover}h3[_ngcontent-%COMP%]{font-size:var(--font-size-137);font-weight:var(--font-weight-bold)}.interest-card[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:var(--font-size-125);font-weight:var(--font-weight-medium);cursor:pointer;word-break:break-all}.interest-card[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-size:var(--font-size-100)}.interest-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:var(--space-16px)}.interest-text[_ngcontent-%COMP%]{height:var(--size-100px);font-size:var(--font-size-81);font-weight:var(--font-weight-normal)}.interest-delete[_ngcontent-%COMP%]{position:absolute;margin:var(--space-0);padding:var(--space-0);top:var(--space-negative-9px);right:var(--space-negative-7px);box-shadow:var(--shadow-none);border-radius:var(--border-radius-full);background:var(--color-tint-1);z-index:var(--z-index-layer-1);width:var(--size-17px);height:var(--size-icon-sm);border:var(--border-xxs-solid-tint-1)}.interest-delete[_ngcontent-%COMP%]:hover{box-shadow:var(--shadow-none)}.interest-course[_ngcontent-%COMP%]{margin:var(--space-0);padding:var(--space-0);top:var(--space-negative-9px);right:var(--space-negative-7px);box-shadow:var(--shadow-none)}.interest-course[_ngcontent-%COMP%]:hover{box-shadow:var(--shadow-none)}.card-title[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:var(--font-size-125)}#fabMenuComp[_ngcontent-%COMP%]{width:var(--size-61_1px);height:var(--size-61_1px);border-radius:var(--border-radius-full);padding:var(--space-0);margin-right:var(--space-10px)} #fabMenuComp .fas .fas{font-size:var(--font-size-162)!important;color:var(--color-tint-1);line-height:var(--font-size-381)}#compB[_ngcontent-%COMP%]{position:fixed;right:var(--space-5px);bottom:var(--space-100px);padding-left:var(--space-15px)}#compC[_ngcontent-%COMP%]{width:var(--size-30px);height:var(--size-30px);text-align:center;right:var(--space-5px);z-index:var(--z-index-layer-2);border-radius:var(--border-radius-full);background:var(--color-tint-12)}.popupdiv[_ngcontent-%COMP%]{border-radius:var(--border-radius-xs);right:var(--space-85px);bottom:var(--space-20px);min-width:var(--size-300px);display:none}.activ[_ngcontent-%COMP%]{opacity:var(--opacity-70)}#compB[_ngcontent-%COMP%]:hover .popupdiv[_ngcontent-%COMP%]{display:block}.courselinks[_ngcontent-%COMP%], .courselinks[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.courselinks[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:var(--space-5px)}.courselinks[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer} .fixed-sn main{padding-top:var(--space-0)}@media (max-width: 1024px) and (min-width: 670px){.interest-text[_ngcontent-%COMP%]{font-size:var(--font-size-75);line-height:var(--font-size-112)}}@media (max-width: 768px) and (min-width: 670px){.interest-text[_ngcontent-%COMP%]{line-height:var(--font-size-93)}}@media (max-width: 768px){ .fixed-sn main{padding-top:var(--space-0)}.interest-nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:var(--size-100-percent);margin:var(--space-5px) var(--space-0) var(--space-0)}.interest-nav[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding-top:var(--space-1rem);margin-bottom:var(--space-0)}.interest-btn[_ngcontent-%COMP%]{display:flex;flex-direction:column}.interest-btn[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:var(--size-fit-content);padding:var(--space-0_2rem);margin:var(--space-0_15rem)}}\n\n/*# sourceMappingURL=student-interest.component.css.map*/"]}),s})();const Jl=e=>({"mb-0 mb-sm-5":e}),ql=()=>
1({symbol:!1,code:!0});function Wl(e,s){if(1&e&&(t.j41(0,"span",19),t.EFF(1),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.JRh(n.originalPrice)}}function Ul(e,s){if(1&e&&(t.j41(0,"div",9)(1,"div",10)(2,"figure",11)(3,"a",12),t.nrm(4,"img",13),t.k0s(),t.j41(5,"figcaption")(6,"h5"),t.EFF(7),t.k0s(),t.j41(8,"p",14),t.DNE(9,Wl,2,1,"span",15),t.j41(10,"b",16),t.EFF(11),t.nI1(12,"localeCurrency"),t.k0s()()(),t.j41(13,"div")(14,"a",17),t.nrm(15,"i",18),t.j41(16,"b"),t.EFF(17),t.nI1(18,"translate"),t.k0s()()()()()()),2&e){const n=s.$implicit;t.R7$(3),t.FS9("href",n.shopLink,t.B4B),t.R7$(),t.Y8G("src",n.picture,t.B4B),t.R7$(3),t.JRh(n.name),t.R7$(2),t.Y8G("ngIf",!!n.originalPrice&&+n.originalPrice>0),t.R7$(2),t.JRh(t.i5U(12,7,n.price,t.lJ4(12,ql))),t.R7$(3),t.FS9("href",n.shopLink,t.B4B),t.R7$(3),t.JRh(t.bMT(18,10,"orderNow"))}}function Hl(e,s){if(1&e&&(t.j41(0,"div",5)(1,"h3",6),t.EFF(2),t.k0s(),t.j41(3,"div",7),t.DNE(4,Ul,19,13,"div",8),t.k0s()()),2&e){const n=s.$implicit;t.R7$(2),t.JRh(n.courseName),t.R7$(2),t.Y8G("ngForOf",n.materials)}}function Zl(e,s){1&e&&t.nrm(0,"app-ecampus-navigation",20),2&e&&t.Y8G("isFooter",!0)}let Kl=(()=>{var e;class s{constructor(a,o){this.userService=a,this.deviceService=o,this.courses=[],this.isDesktop=this.deviceService.isDesktop()}ngOnInit(){this.userService.getUserMaterials().subscribe(a=>{200===a.status&&(this.courses=a.body.data)})}}return(e=s).\u0275fac=function(a){return new(a||e)(t.rXU(J.D),t.rXU(O.Kg))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-material"]],decls:18,vars:17,consts:[[1,"container","mat-elevation-z3","sm-no-shadow","py-2","material-wrap",3,"ngClass"],[1,"row","m-0","px-3","pt-3"],[1,"col-12","p-0"],["class","col-12 px-3 py-2 my-3 mx-0 box-courses",4,"ngFor","ngForOf"],[3,"isFooter",4,"ngIf"],[1,"col-12","px-3","py-2","my-3","mx-0","box-courses"],[1,"mb-3"],[1,"row","box-materials"],["class","col-12 col-md-4 box-material",4,"ngFor","ngForOf"],[1,"col-12","col-md-4","box-material"],[1,"product-content","mat-elevation-z3","pb-1","mb-2","text-center"],[1,"figaro","mb-0"],[3,"href"],["alt","","appOnErrorImage","",1,"",3,"src"],[1,"mb-0"],["class","price-org text-danger",4,"ngIf"],[1,"text-success"],["mat-button","","color","primary","target","_blank",1,"btn-shop","my-3",3,"href"],[1,"fas","fa-shopping-cart","mr-2"],[1,"price-org","text-danger"],[3,"isFooter"]],template:function(a,o){1&a&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),t.EFF(4),t.nI1(5,"translate"),t.k0s()(),t.j41(6,"div",2)(7,"p"),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"p"),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.j41(13,"p"),t.EFF(14),t.nI1(15,"translate"),t.k0s()(),t.DNE(16,Hl,5,2,"div",3),t.k0s()(),t.DNE(17,Zl,1,1,"app-ecampus-navigation",4)),2&a&&(t.Y8G("ngClass",t.eq3(15,Jl,o.isDesktop)),t.R7$(4),t.JRh(t.bMT(5,7,"courseMaterial")),t.R7$(4),t.JRh(t.bMT(9,9,"materialText1")),t.R7$(3),t.JRh(t.bMT(12,11,"materialText2")),t.R7$(3),t.JRh(t.bMT(15,13,"materialText3")),t.R7$(2),t.Y8G("ngForOf",o.courses),t.R7$(),t.Y8G("ngIf",!o.isDesktop))},dependencies:[d.YU,d.Sq,d.bT,nt.O,b.It,Q.e,h.D9,Yt.u],styles:[".box-courses[_ngcontent-%COMP%]{border:var(--border-xxs-solid-border-top)}.product-content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:var(--size-100-percent)}img[_ngcontent-%COMP%]{width:var(--size-100-percent);height:var(--size-245px)!important;object-fit:scale-down;vertical-align:top}h5[_ngcontent-%COMP%]{min-height:var(--size-57px);font-size:var(--font-size-87);padding:var(--space-0) var(--space-5px);margin-top:var(--space-10px);margin-bottom:var(--space-0)}.price-org[_ngcontent-%COMP%]{-webkit-text-decoration:var(--text-decoration-strikethrough);text-decoration:var(--text-decoration-strikethrough);font-size:var(--font-size-81);margin:var(--space-0) var(--space-5px)}.product-content[_ngcontent-%COMP%]{text-align:center}.btn-shop[_ngcontent-%COMP%]{padding:var(--space-10px) var(--space-20px);font-weight:var(--font-weight-normal)}\n\n/*# sourceMappingURL=student-material.component.css.map*/"]}),s})();var tm=l(74581),em=l(11249),nm=l(975);const om=e=>[e],am=e=>({amount:e,type:"tense"}),sm=(e,s,n,a,o,i)=>({lessonNumber:e,takesPlace:s,lessonDate:n,lessonStartTime:a,lessonEndTime:o,teacherName:i});function im(e,s){1&e&&(t.j41(0,"h3",13),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"vcTitle")," "))}function rm(e,s){1&e&&(t.j41(0,"p",2),t.EFF(1),t.nI1(2,"translate"),t.j41(3,"a",14),t.nI1(4,"routeT"),t.EFF(5),t.nI1(6,"translate"),t.k0s()()),2&e&&(t.xc7("align-self","flex-start"),t.R7$(),t.SpI(" ",t.bMT(2,5,"vcText1")," "),t.R7$(2),t.Y8G("routerLink",t.eq3(11,om,t.bMT(4,7,"/virtual"))),t.R7$(2),t.SpI(" ",t.bMT(6,9,"vcLink1")," "))}function cm(e,s){1&e&&(t.j41(0,"h3",15),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"vcTitle2")," "))}function lm(e,s){if(1&e&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"translate"),t.nI1(3,"translate"),t.j41(4,"span"),t.EFF(5),t.nI1(6,"async"),t.nI1(7,"lowercase"),t.k0s(),t.nrm(8,"br"),t.EFF(9),t.nI1(10,"translate"),t.nI1(11,"translate"),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.E5c(" ",t.bMT(2,7,"vcLes")," ",n.nextLesson," ",t.bMT(3,9,"vcText3")," "),t.R7$(4),t.JRh(t.bMT(7,13,t.bMT(6,11,n.countdown$))),t.R7$(4),t.E5c(" (",t.bMT(10,15,"teacherLabel"),"",t.bMT(11,17,"typography.colon"),"",n.course.nextClass.teacherNames,") ")}}function mm(e,s){if(1&e&&(t.j41(0,"strong"),t.EFF(1),t.k0s(),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"translate")),2&e){const n=t.XpG(3);t.R7$(),t.JRh(n.course.nextClass.teacherNames),t.R7$(),t.E5c(" ",t.bMT(3,4,"vcText4")," ",n.nextLessonNumber,"",t.bMT(4,6,"typography.period")," ")}}function pm(e,s){if(1&e&&(t.j41(0,"p"),t.DNE(1,mm,5,8),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"translate"),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.vxM(n.course.nextClass.teacherNames?1:-1),t.R7$(),t.E5c(" ",t.bMT(3,4,"vcText5")," ",n.course.nextClass.endTime,"",t.bMT(4,6,"typography.period")," ")}}function dm(e,s){if(1&e){const n=t.RV6();t.qex(0),t.j41(1,"a",20),t.bIt("click",function(){t.eBV(n);const o=t.XpG(2);return t.Njj(o.openCourseBook())}),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.bVm()}2&e&&(t.R7$(2),t.JRh(t.bMT(3,1,"courseBook")))}function um(e,s){if(1&e&&(t.j41(0,"div",16),t.nrm(1,"img",17),t.nI1(2,"generateFastImage"),t.k0s(),t.j41(3,"h3",15),t.EFF(4),t.k0s(),t.DNE(5,lm,12,19,"p",18)(6,pm,5,8,"p"),t.nrm(7,"app-start-zoom-class",19),t.nI1(8,"translate"),t.DNE(9,dm,4,3,"ng-container",18)),2&e){const n=t.XpG();t.R7$(),t.Y8G("src",t.bMT(2,8,n.course.nextClass.teacherPhoto),t.B4B),t.R7$(3),t.SpI(" ",n.course.courseName," "),t.R7$(),t.Y8G("ngIf",!n.course.nextClass.started),t.R7$(),t.vxM(n.course.nextClass.started?6:-1),t.R7$(),t.Y8G("forceLabel",t.bMT(8,10,"followLesson"))("lesson",n.course.nextClass)("btnClasses","m-0 mr-1"),t.R7$(2),t.Y8G("ngIf",n.course.courseBook&&n.course.courseCode)}}function _m(e,s){1&e&&(t.nrm(0,"app-embedded-video",21),t.j41(1,"p",22),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&e&&(t.Y8G("vr",!0),t.R7$(2),t.SpI(" ",t.bMT(3,2,"vcText6")," "))}function gm(e,s){if(1&e&&(t.j41(0,"div",28),t.nrm(1,"img",17),t.nI1(2,"generateFastImage"),t.k0s(),t.j41(3,"div",29)(4,"p"),t.EFF(5),t.k0s(),t.nrm(6,"p",30),t.nI1(7,"i18nSelector"),t.nI1(8,"translate"),t.nI1(9,"dateformat"),t.nI1(10,"translate"),t.nI1(11,"sanitize"),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.Y8G("src",t.bMT(2,3,n.teacherPhoto),t.B4B),t.R7$(4),t.SpI(" ",n.courseName," "),t.R7$(),t.Y8G("innerHTML",t.bMT(11,15,t.i5U(10,12,"virtualLessonInfo",t.l4e
1(19,sm,n.lessonNumber,t.bMT(8,8,t.i5U(7,5,"takesPlace",t.eq3(17,am,+n.ended))),t.bMT(9,10,n.date),n.startTime,n.endTime,n.teacherNames&&" "!==n.teacherNames?n.teacherNames:"/"))),t.npT)}}function fm(e,s){if(1&e&&(t.j41(0,"li",26),t.DNE(1,gm,12,26,"ng-template",27),t.k0s()),2&e){const n=s.$implicit,a=t.XpG(2);t.R7$(),t.Y8G("ngIf",n.id!==a.course.nextClass.is)}}function hm(e,s){if(1&e&&(t.j41(0,"div",23)(1,"ul",24),t.DNE(2,fm,2,1,"li",25),t.k0s()()),2&e){const n=t.XpG();t.R7$(2),t.Y8G("ngForOf",n.courseLessons)}}const xm=[{path:"",component:se.w,children:[{path:"",redirectTo:"/student/info",pathMatch:"full"},{path:"ecampus/course/:id",component:Jn,children:[{path:"",redirectTo:"details",pathMatch:"full"},{path:"details",component:bs},{path:"tasks",component:Xr},{path:"exercises",component:mr},{path:"documents",component:Vs},{path:"tutorials",component:Cc},{path:"virtual-room",component:(()=>{var e;class s{constructor(){this.eCampusService=(0,t.WQX)(j.u),this.helperService=(0,t.WQX)(et.w),this.translateService=(0,t.WQX)(h.c$),this.i18nSelectorPipe=(0,t.WQX)(lt.C),this.coursesService=(0,t.WQX)(mt._),this.destroy$=new y.B}ngOnInit(){this.eCampusService.getCurrentCourse().pipe((0,v.Q)(this.destroy$)).subscribe(a=>{var o,i;if(a.subtype===k.q1.virtual&&!this.helperService.isEmptyObj(a.nextClass))if(this.course=a,this.nextClass=a.nextClass,this.helperService.isEmptyObj(this.nextClass))this.nextClass=null===(o=this.course)||void 0===o?void 0:o.lessons[this.course.lessons.length-1],this.nextLessonNumber=null===(i=this.course)||void 0===i?void 0:i.lessons.length,this.loadLessons();else if(this.nextLessonNumber=this.checkLessonsNumber(),this.loadLessons(),this.nextClass.date&&this.nextClass.startTime){var r;const c=[...null===(r=this.course)||void 0===r?void 0:r.lessons].pop();this.coursesService.isDateTodayOrAfter(c)&&(this.courseLessons=null),this.nextClassDate=(0,T.I1)("".concat(this.nextClass.date," ").concat(this.nextClass.startTime)),this.countdown$=(0,tm.O)(0,1e3).pipe((0,x.T)(()=>this.calculateCountdown()),(0,em.v)(u=>!!u),(0,v.Q)(this.destroy$))}})}calculateCountdown(){const a=(0,T.I1)(),o=T.I1.duration(this.nextClassDate.diff(a));if(o.asMilliseconds()<=0){var i;if(this.nextClass.started=1,null===(i=this.course)||void 0===i||!i.lessons.length||!this.nextClass.hasOwnProperty("id"))return null;{const{lessons:r,nextClass:c}=this.course,m=(0,T.I1)().format(I.x.misc.time);if((0,T.I1)(m,I.x.misc.time).isAfter((0,T.I1)(c.endTime,I.x.misc.time).subtract(1,I.$.minute))){const u=r.findIndex(G=>G.id===c.id);let _=r[u+1],g=!1;if(_||(_=r[r.length-1],_.ended=!0,g=!0),this.nextClassDate=(0,T.I1)("".concat(_.date," ").concat(_.startTime)),this.nextClass=_,this.nextLessonNumber=this.checkLessonsNumber(),this.loadLessons(),g)return null;const R=T.I1.duration(this.nextClassDate.diff(a));return this.createNextLessonString(R)}}}return this.createNextLessonString(o)}createNextLessonString(a){const o=Math.floor(a.asDays()),i=Math.floor(a.hours()),r=Math.floor(a.minutes());let c="";const m=this.translateService.instant("and");return o&&(c="".concat(o," ").concat(this.getI18nKey("day",o))),o&&i&&(c=r?"".concat(c,", "):"".concat(c," ").concat(m," ")),i&&(c="".concat(c).concat(i," ").concat(this.getI18nKey("hour",i))),r&&((o||i)&&(c="".concat(c," ").concat(m," ")),c="".concat(c).concat(r," ").concat(this.getI18nKey("minute",r))),c}getI18nKey(a,o=0){const i=this.i18nSelectorPipe.transform(a,{amount:o});return this.translateService.instant(i)}checkLessonsNumber(){return this.course.lessons.findIndex(o=>{var i;return(null===(i=this.nextClass)||void 0===i?void 0:i.id)===o.id})+1||null}loadLessons(){const{lessons:a}=this.course;a&&(this.courseLessons=a.map((o,i)=>(0,C.A)((0,C.A)({},o),{},{lessonNumber:i+1})).filter(({id:o})=>o!==this.nextClass.id))}startMeeting(){window.open("".concat(this.course.nextClass.zoomUrl),"_blank")}openCourseBook(){this.coursesService.openCourseBookOrChapter(this.course.courseCode)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275cmp=t.VBU({type:e,selectors:[["app-student-virtual-room"]],decls:19,vars:13,consts:[["noLessons",""],[1,"row"],[1,"col-12"],["appBgColor","",1,"row","row","py-3","mb-3","mt-2"],[1,"col-12","col-md-6"],[1,"mb-0","text-white"],["class","col-12 title",4,"ngIf"],[1,"col-12","m-0","row","content"],["class","col-12",3,"align-self",4,"ngIf"],[1,"col-12","row"],["class","title",4,"ngIf"],[3,"ngIf","ngIfElse"],["class","course_scroll col-12 col-md-6",4,"ngIf"],[1,"col-12","title"],[3,"routerLink"],[1,"title"],[1,"box","col-12"],["alt","","appOnErrorImage","","imgType","user",3,"src"],[4,"ngIf"],[1,"d-inline-block",3,"forceLabel","lesson","btnClasses"],["mat-button","","color","primary",3,"click"],[3,"vr"],[1,"col-12",2,"margin","21px 0"],[1,"course_scroll","col-12","col-md-6"],[1,"lessons","pl-3","mt-2"],["class","lesson",4,"ngFor","ngForOf"],[1,"lesson"],[3,"ngIf"],[1,"img_holder"],[1,"list_content"],[3,"innerHTML"]],template:function(a,o){if(1&a&&(t.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5",5),t.EFF(5),t.nI1(6,"translate"),t.k0s()()()(),t.j41(7,"div",2),t.DNE(8,im,3,3,"h3",6),t.k0s(),t.j41(9,"div",2)(10,"div",7),t.DNE(11,rm,7,13,"p",8),t.j41(12,"div",9)(13,"div"),t.DNE(14,cm,3,3,"h3",10)(15,um,10,12,"ng-template",11)(16,_m,4,4,"ng-template",null,0,t.C5r),t.k0s(),t.DNE(18,hm,3,1,"div",12),t.k0s()()()()),2&a){const i=t.sdS(17);t.R7$(5),t.JRh(t.bMT(6,11,"virtualRoom")),t.R7$(3),t.Y8G("ngIf",o.courseLessons),t.R7$(3),t.Y8G("ngIf",!o.courseLessons),t.R7$(),t.xc7("justify-content",o.courseLessons?"flex-start":"center"),t.R7$(),t.HbH("lesson_current col-12 col-md-6"),t.R7$(),t.Y8G("ngIf",!o.courseLessons),t.R7$(),t.Y8G("ngIf",o.courseLessons)("ngIfElse",i),t.R7$(3),t.Y8G("ngIf",o.courseLessons)}},dependencies:[d.Sq,d.bT,X.k,b.It,nm.j,Ot.h,Q.e,E.Wk,d.Jj,d.GH,h.D9,ot.O,lt.C,Nt.v,U.s,Ct.l],styles:[".content[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:var(--space-26px) var(--space-0)}.box[_ngcontent-%COMP%]{background-color:var(--color-background);height:var(--size-236px);width:var(--size-50-percent);display:flex;flex-direction:column;justify-content:center;align-items:center;box-shadow:var(--shadow-md)}.box[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{object-fit:cover;background-color:var(--color-tint-9);height:var(--size-174px);width:var(--size-174px);border-radius:var(--border-radius-full);display:block}.box.col-6[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;align-self:center}.lesson_current[_ngcontent-%COMP%]{flex:1}.lesson_current.col-6[_ngcontent-%COMP%]{text-align:center}.lesson_current.col-6[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{text-align:inherit}.lesson_current[_ngcontent-%COMP%] > .box[_ngcontent-%COMP%]{width:var(--size-100-percent)}.lesson_current[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{text-align:left;padding:var(--space-15px) var(--space-0) var(--space-10px) var(--space-0)}.lesson_current[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-align:left}.lesson_current[_ngcontent-%COMP%] p[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{-webkit-text-decoration:var(--text-transform-none);text-decoration:var(--text-transform-none);font-weight:var(--font-weight-bold);color:var(--color-tint-12);text-transform:var(--text-transform-capitalize)}.lesson_current[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:var(--font-weight-bold)}.upper[_ngcontent-%COMP%]{display:flex;flex-direction:row}.lessons[_ngcontent-%COMP%]{list-style:none}.lesson[_ngcontent-%COMP%]{display:flex;flex-direction:row;box-shadow:var(--shadow-virtualroom);padding:var(--space-15px) var(--space-0)}.lesson[_ngcontent-%COMP%]:first-child{padding-top:var(--space-0)}.lesson[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){display:flex;flex:2;background-color:var(--color-background);align-items:center;justify-content:center;flex-direction:column}.lesson[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){flex:5;padding-left:var(--space-15px)}.lesson[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{object-fit:cover;display:block;width:var(--size-60px);height:var(--size-60px);border-radius:var(--border-radius-full);background-color:var(--color-tint-9)}.title[_ngcontent-%COMP%]{font-size:var(--font-size-150);color:var(--color-tint-15);text-align:center;font-weight:var(--font-weight-bold)}.list_content[_ngcontent-%COMP%]{text-align:left}.list_content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:nth-child(1){font-weight:var(--font-weight-bold);font-size:var(--font-size-100)}.list_content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:nth-child(2){font-size:var(--font-size-100);color:var(--color-tint-9);font-weight:var(--font-weight-normal)}.zoomOn[_ngcontent-%COMP%]{position:absolute;top:var(--space-0);left:var(--space-0);width:var(--size-100vw);height:var(--size-100vh)}.not-active[_ngcontent-%COMP%]{opacity:var(--opacity-70);
1cursor:wait}@media (max-width: 768px){.lesson_current[_ngcontent-%COMP%], .lesson_current[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{text-align:center}}\n\n/*# sourceMappingURL=student-virtual-room.component.css.map*/"]}),s})()},{path:"ai-teacher",component:Se}]},{path:"agenda",component:ne.S,data:{type:k.Ed.student}},{path:"cursussen",component:Ze},{path:"communication",component:ae.y,children:[{path:"",component:kt.p,pathMatch:"full"},{path:rt.G.sent,component:kt.p,data:{activeTab:rt.G.sent}},{path:"message/:messageId",component:_t.w},{path:"message/sent/:messageId",component:_t.w,data:{messageType:rt.G.sent}},{path:"companymessage/:messageId",component:_t.w,data:{messageType:rt.G.newsletter}}]},{path:"infosession",component:hl},{path:"interesses",component:Ht},{path:"materials",component:Kl},{path:"info",component:xl},{path:"diploma",component:Vn},{path:"interesses/:type/:code",component:Ht},{path:"feedback",component:ol},{path:"ecampus/evaluation/:cid/:eid/:sid",component:yt,data:{assignmentType:Rt.Eq.exercise}},{path:"ecampus/task/evaluation/:cid/:eid/:sid",component:yt,data:{assignmentType:Rt.Eq.task}},{path:"logout",component:oe.C},{path:"ecampus/course/:id",redirectTo:"ecampus/course/:id/details"},{path:"ecampus/task/:id",redirectTo:"ecampus/course/:id/tasks"},{path:"ecampus/exercise/:id",redirectTo:"ecampus/course/:id/exercises"},{path:"ecampus/document/:id",redirectTo:"ecampus/course/:id/documents"},{path:"ecampus/tutorial/:id",redirectTo:"ecampus/course/:id/tutorials"},{path:"ecampus/virtual-room/:id",redirectTo:"ecampus/course/:id/virtual-room"},{path:"communicatie",redirectTo:"communication"}]},{path:"exam",component:Tc},{path:"**",redirectTo:"cursussen"}];let Cm=(()=>{var e;class s{}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.$C({type:e}),e.\u0275inj=t.G2t({imports:[E.iI.forChild(xm),E.iI]}),s})();const bm=[St.C];let Em=(()=>{var e;class s{}return(e=s).\u0275fac=function(a){return new(a||e)},e.\u0275mod=t.$C({type:e}),e.\u0275inj=t.G2t({imports:[ee.G,Cm,Zt.ad,Kt.r,te.n,bm,It.P]}),s})()}}]); 2//# sourceMappingURL=9473.163bd82b04ab1deb.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.