1"use strict";(self.webpackChunkangular_io_example=self.webpackChunkangular_io_example||[]).push([[5622],{66797:(T,M,o)=>{o.d(M,{C:()=>f});var e=o(68559),u=o(10682);let f=(()=>{var a;class g{constructor(p){this.authService=p}ngOnInit(){this.authService.logout()}}return(a=g).\u0275fac=function(p){return new(p||a)(e.rXU(u.k))},a.\u0275cmp=e.VBU({type:a,selectors:[["app-logout"]],decls:0,vars:0,template:function(p,P){}}),g})()},31181:(T,M,o)=>{o.d(M,{S:()=>i});var e=o(68559),u=o(50565),f=o(98764),a=o(45312),g=o(23203),C=o(60316),p=o(11624),P=o(16256),d=o(84175),I=o(48503),E=o(86060),h=o(64615);const x=t=>({tablet:t}),m=(t,v,s)=>[t,v,s],n=t=>[t];function c(t,v){if(1&t){const s=e.RV6();e.j41(0,"p",7)(1,"a",11),e.nI1(2,"routeT"),e.nI1(3,"seoFriendlyFormat"),e.nI1(4,"seoFriendlyFormat"),e.nrm(5,"i",12),e.EFF(6),e.k0s(),e.j41(7,"span",13),e.bIt("click",function(){const _=e.eBV(s).$implicit,L=e.XpG(4);return e.Njj(L.remove(_.courseName,_.courseCode))}),e.nrm(8,"i",14),e.k0s()()}if(2&t){const s=v.$implicit;e.R7$(),e.Y8G("routerLink",e.sMw(8,m,e.bMT(2,2,"/course"),e.bMT(3,4,null==s?null:s.courseName),e.bMT(4,6,s.courseCode))),e.R7$(5),e.SpI(" ",s.courseName," ")}}function r(t,v){1&t&&(e.j41(0,"a",8),e.nI1(1,"routeT"),e.EFF(2),e.nI1(3,"translate"),e.k0s()),2&t&&(e.Y8G("routerLink",e.eq3(6,n,e.bMT(1,2,"/compare-courses"))),e.R7$(2),e.SpI(" ",e.bMT(3,4,"compareLabel")," "))}function O(t,v){if(1&t){const s=e.RV6();e.j41(0,"div",4),e.bIt("mouseleave",function(){e.eBV(s);const _=e.XpG(3);return e.Njj(_.togglePopup(!1,!0))}),e.j41(1,"p",5),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"p",6),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.Z7z(7,c,9,12,"p",7,e.Vm6),e.DNE(9,r,4,8,"a",8),e.j41(10,"span",9),e.bIt("click",function(){e.eBV(s);const _=e.XpG(3);return e.Njj(_.togglePopup(!1,!1))}),e.nrm(11,"i",10),e.k0s()()}if(2&t){const s=e.XpG(2);e.R7$(2),e.JRh(e.bMT(3,3,"fCompareCourses")),e.R7$(3),e.JRh(e.bMT(6,5,"fCompareMax3Courses")),e.R7$(2),e.Dyx(s),e.R7$(2),e.vxM(s.length>1?9:-1)}}function D(t,v){if(1&t){const s=e.RV6();e.j41(0,"div",0)(1,"button",1),e.bIt("click",function(){e.eBV(s);const _=e.XpG(2);return e.Njj(_.togglePopup(!0,!1))})("mouseenter",function(){e.eBV(s);const _=e.XpG(2);return e.Njj(_.togglePopup(!0,!0))}),e.nrm(2,"i",2),e.k0s(),e.DNE(3,O,12,7,"div",3),e.nI1(4,"async"),e.k0s()}if(2&t){let s;const l=e.XpG(),_=e.XpG();e.Y8G("ngClass",e.eq3(5,x,_.isTablet)),e.R7$(),e.Y8G("matBadge",l.length),e.R7$(2),e.vxM((s=e.bMT(4,3,_.showPopup$))?3:-1,s)}}function b(t,v){if(1&t&&e.DNE(0,D,5,7,"div",0),2&t){const s=e.XpG();e.vxM(!s.isInformativeWebsite&&v.length?0:-1)}}let i=(()=>{var t;class v{constructor(){this.comparisonService=(0,e.WQX)(g.P),this.deviceDetectorService=(0,e.WQX)(u.Kg),this.isInformativeWebsite=!1,this.isTablet=!1}ngOnInit(){this.isInformativeWebsite="informative"===a.M.mode,this.isTablet=this.deviceDetectorService.isTablet(),this.comparableCourses$=this.comparisonService.getComparableCourses(),this.showPopup$=this.comparisonService.getShowComparePopup().pipe((0,f.M)(l=>this.isShown=l))}togglePopup(l,_){this.comparisonService.setShowComparePopup(_?l:!this.isShown)}remove(l,_){this.comparisonService.updateComparableCourses([{courseName:l,courseCode:_}])}}return(t=v).\u0275fac=function(l){return new(l||t)},t.\u0275cmp=e.VBU({type:t,selectors:[["app-course-comparison"]],decls:2,vars:3,consts:[["id","compB",3,"ngClass"],["mat-fab","","color","main","type","button","id","fabMenuComp",1,"mat-badge-bubble",3,"click","mouseenter","matBadge"],[1,"fa-solid","fa-right-left","fa-lg"],["id","popupDiv",1,"popupdiv","text-white","p-3","position-absolute","main-color"],["id","popupDiv",1,"popupdiv","text-white","p-3","position-absolute","main-color",3,"mouseleave"],[1,"fs-16","text-white"],[1,"fs-12","mb-2","text-white"],[1,"footer-compare-courselinks","mb-0","text-white"],["mat-raised-button","","color","primary-inverted","id","fabMenuComp2","type","button",1,"mt-4","w-100",3,"routerLink"],["id","closePopupBTN",3,"click"],[1,"fa","fa-minus","text-white"],[3,"routerLink"],[1,"fa-solid","fa-book","text-white","mr-1"],[1,"text-white",3,"click"],[1,"fa-regular","fa-circle-xmark","text-danger"]],template:function(l,_){if(1&l&&(e.DNE(0,b,1,1),e.nI1(1,"async")),2&l){let L;e.vxM((L=e.bMT(1,1,_.comparableCourses$))?0:-1,L)}},dependencies:[C.YU,p.Wk,P.k,d.It,d.Sr,C.Jj,I.D9,E.s,h.w],styles:["#compB[_ngcontent-%COMP%]{z-index:var(--z-index-layer-10);position:fixed;right:var(--space-15px);bottom:var(--space-105px);padding-left:var(--space-15px)}.popupdiv[_ngcontent-%COMP%]{border-radius:var(--border-radius-xs);right:var(--space-140px);bottom:var(--space-20px);min-width:var(--size-300px);display:block}#fabMenuComp[_ngcontent-%COMP%]{width:var(--size-64px);height:var(--size-64px);line-height:var(--font-size-400);padding:var(--space-0);right:var(--space-75px)}#closePopupBTN[_ngcontent-%COMP%]{font-size:var(--font-size-100);top:var(--space-20px);position:absolute;right:var(--space-20px);cursor:pointer}@media only screen and (max-width: 600px){#fabMenuComp[_ngcontent-%COMP%]{margin-bottom:var(--space-8px)}.popupdiv[_ngcontent-%COMP%]{width:var(--size-250px)!important;min-width:var(--size-250px)!important}}.footer-compare-courselinks[_ngcontent-%COMP%], .footer-compare-courselinks[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.footer-compare-courselinks[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--color-tint-1)}.footer-compare-courselinks[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:var(--space-5px)}.footer-compare-courselinks[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer}\n\n/*# sourceMappingURL=course-comparison.component.css.map*/"]}),v})()},23203:(T,M,o)=>{o.d(M,{P:()=>I});var e=o(60316),u=o(68559),f=o(75797),a=o(84205),g=o(18537),C=o(51567),p=o(33900),P=o(68066),d=o(27717);let I=(()=>{var E;class h{constructor(){if(this.platformId=(0,u.WQX)(u.Agw),this.localStorageService=(0,u.WQX)(P.s),this.MAX_COMPARABLE_COURSES=3,this.showComparePopup$=new f.t(!1),this.comparableCourses$=new f.t([]),this.destroy$=new a.B,(0,e.UE)(this.platformId)){const m=this.localStorageService.get(d.c.comparisonSent);m&&(this.comparableCourses$.next(m),this.counter=this.comparableCourses$.getValue().length),(0,g.R)(window,"storage").pipe((0,C.p)(n=>n.key===d.c.comparisonSent),(0,p.Q)(this.destroy$)).subscribe(n=>{if(null!=n&&n.newValue){const c=JSON.parse(n.newValue);this.comparableCourses$.next(c),this.safeToLs(c)}})}}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}getComparableCourses(){return this.comparableCourses$}updateComparableCourses(m,n){const c=n?[]:this.comparableCourses$.getValue();let r=c;m.forEach(({courseName:O,courseCode:D})=>{if(c.find(i=>i.courseCode===D))r=r.filter(i=>i.courseCode!==D);
1else{const i={courseCode:D,courseName:O};r=[...r,i]}}),this.comparableCourses$.next(r.slice(-3)),this.safeToLs(r),this.counter=r.length,this.counter===this.MAX_COMPARABLE_COURSES&&this.setShowComparePopup(!0)}getShowComparePopup(){return this.showComparePopup$.asObservable()}setShowComparePopup(m){this.showComparePopup$.next(m)}safeToLs(m){this.localStorageService.set(d.c.comparisonSent,m)}}return(E=h).\u0275fac=function(m){return new(m||E)},E.\u0275prov=u.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),h})()},27950:(T,M,o)=>{o.d(M,{l:()=>E});var e=o(89204),u=o(60316),f=o(46443),a=o(68559),g=o(48503),C=o(54285),p=o(5342),P=o(28404),d=o(40982),I=o(23657);let E=(()=>{var h;class x{constructor(){this.http=(0,a.WQX)(f.Qq),this.configService=(0,a.WQX)(P.w),this.loaderService=(0,a.WQX)(I.Z),this.toastrService=(0,a.WQX)(C.tw),this.translateService=(0,a.WQX)(g.c$),this.helperService=(0,a.WQX)(d.w),this.platformId=(0,a.WQX)(a.Agw),this.CDO_URL=this.configService.getCdoUrl(),this.DIPLOMA_URL="".concat(this.CDO_URL,"api/diploma")}getDiplomasForStudent(n){const c="".concat(this.DIPLOMA_URL,"/diploma_data_by_student/").concat(this.formatString(n.lastname),"/").concat(this.formatString(n.firstname),"/").concat(n.birthday);return this.http.get(c)}getDiplomaForReferencenbr(n){const c="".concat(this.DIPLOMA_URL,"/diploma_data_by_reference/").concat(n);return this.http.get(c)}getPdfFile(n,c){const r="".concat(this.DIPLOMA_URL,"/diploma_file_by_course_customer/").concat(n,"/").concat(c);return this.http.get(r,{responseType:"blob"})}setVisibleOnDiplomachecker(n,c){const r="".concat(this.DIPLOMA_URL,"/change_diploma_visibility");return this.http.patch(r,{courseId:n,visible:c?1:0})}getDiplomaHeader(){return this.http.get("assets/pdf/diploma_header.pdf",{responseType:"blob"})}downloadDiploma(n,c){var r=this;return(0,e.A)(function*(){if(!(0,u.UE)(r.platformId))return;r.loaderService.setIsLoading(!0);const[O,D]=yield Promise.all([(0,p.s)(r.getPdfFile(n,c)).then(i=>i.arrayBuffer()),(0,p.s)(r.getDiplomaHeader()).then(i=>i.arrayBuffer())]).catch(({status:i})=>(r.toastrService.error(r.translateService.instant(404===i?"fileNotFound":"errorLabel")),r.loaderService.setIsLoading(!1),[]));if(!O||!D)return;const b=yield r.helperService.getPdfWithSpecimen(O,D).catch(i=>(r.toastrService.error(r.translateService.instant("errorLabel")),""));if(b){const i=document.createElement("a");i.setAttribute("target","_blank"),i.setAttribute("href",b),document.body.appendChild(i),i.click(),document.body.removeChild(i)}r.loaderService.setIsLoading(!1)})()}formatString(n){return n.replace(/'/,"%27")}}return(h=x).\u0275fac=function(n){return new(n||h)},h.\u0275prov=a.jDH({token:h,factory:h.\u0275fac,providedIn:"root"}),x})()},5342:(T,M,o)=>{o.d(M,{s:()=>u});var e=o(93335);function u(f,a){const g="object"==typeof a;return new Promise((C,p)=>{let d,P=!1;f.subscribe({next:I=>{d=I,P=!0},error:p,complete:()=>{P?C(d):g?C(a.defaultValue):p(new e.G)}})})}}}]); 2//# sourceMappingURL=5622.fc7998640cb189a5.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.