1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5a017142-d21f-58a0-bb92-e2d7ab9ff0c3")}catch(e){}}(); 3import{a as ut}from"./chunk-VIMLVWWS.js";import{a as N}from"./chunk-ASK7B7CJ.js";import{a as mt}from"./chunk-RIXWBYDQ.js";import"./chunk-ZSFXLLKG.js";import{a as ve}from"./chunk-KM7D4QU6.js";import"./chunk-OYY43EBR.js";import{a as pt}from"./chunk-3Q4ENG64.js";import"./chunk-I5TYGA5O.js";import"./chunk-6EK472QO.js";import"./chunk-74XSALDF.js";import{$d as Dt,C as k,F as Je,Od as st,Pd as rt,Qd as at,_d as ct,ee as V,fe as Ce,gb as M,ge as lt,hb as ae,hd as ot,he as Rt,id as At,l as F,m as fe,o as G,oc as Tt,p as K,q as X,ue as dt,ve as jt,x as It}from"./chunk-3DSPHW6V.js";import{$ as it,O as _e,P as Ze,aa as Nt}from"./chunk-63QE6F3C.js";import{c as H,d as Se,n as Xe,r as yt}from"./chunk-J3ZCYF7X.js";import"./chunk-N6HKC5YM.js";import{c as tt,i as Mt,j as nt,k as kt}from"./chunk-EHPICUXU.js";import{C as qe,O as Lt,c as Qe,d as Ie,g as Ee,h as Me,j as ke,q as Ot}from"./chunk-NZAURXIC.js";import{D as U,g as $e,i as R,k as j,l as $,s as Ge,t as Ke,y as ge}from"./chunk-PDBQSBW2.js";import{$c as A,Bb as O,Ib as a,Ja as I,Jb as f,La as je,Lc as _,Nc as d,P as De,Pb as Fe,Tc as ye,Ua as Ue,Uc as Oe,Va as h,Vc as Le,Wa as g,Yc as ie,Zb as Y,Zc as C,Zd as D,_c as oe,ad as me,ec as v,fb as ne,fd as We,gd as E,hc as c,ia as Re,ic as ue,id as L,kc as Ve,kd as He,od as se,pd as Ye,qd as he,sa as St,tc as s,uc as r,ud as re,vc as p,wc as Be,xc as ze,zc as P}from"./chunk-RX45F3VG.js";import{a as et,b as Et}from"./chunk-XTLLHG7S.js";import"./chunk-3YV6UUBL.js";import"./chunk-JLENAXOB.js";import"./chunk-2QIXGXOC.js";import"./chunk-SNF2N7IK.js";import"./chunk-NM7LVQTP.js";import"./chunk-IK6B3JC3.js";import{a as be,m as w}from"./chunk-C6VPWJCA.js";Lt();St();Se();It();at();var Ne="id",ht="lessonId",Q=function(t){return t.MISSING_COURSE_ID="Course ID not found or is missing",t.COURSE_LOAD_FAILED="Failed to load the course. Try to refresh the page",t.COURSE_UNAVAILABLE="Course is currently unavailable or was deleted",t.PLAYER_LOAD_FAILED="Player currently unavailable",t.PROGRESS_UPDATE_FAILED="Failed to update course progress",t.CERTIFICATE_MARK_FAILED="Failed to mark certificate as shown",t}(Q||{}),gt=t=>`<!DOCTYPE html><html lang="en"><head> <style></style></head><body> <img src="${t}" alt="Certificate Image" style="width:auto; height:207px;" /></body></html>`,z=function(t){return t.image="image",t.facebook="facebook",t.linkedin="linkedin",t.whatsapp="whatsapp",t.twitter="twitter",t}(z||{}),y=function(t){return t.copyImage="copyImage",t.facebook="facebook",t.linkedin="linkedin",t.whatsapp="whatsapp",t.twitter="twitter",t}(y||{});Et();var xe=class extends et{};Mt();kt();Je();Se();fe();X();U();D();ae();Ze();X();function Ft(t,m){if(t&1){let e=P();s(0,"div",13),_("click",function(){let i=h(e).$implicit,l=d();return g(l.socialItemClick(i))}),p(1,"img",14),s(2,"div",15),C(3),r()()}if(t&2){let e=m.$implicit;a(),c("src",e.value.icon,O),a(2),oe(e.name)}
3}var _t=(()=>{class t extends nt{constructor(e,n,i){super(n),this.spinnerService=e,this.data=n,this.notifier=i,this.certificateSpinner="certSpinner",this.stopSpinner=()=>w(this,null,function*(){setTimeout(()=>{this.spinnerService.stop(this.certificateSpinner)},100)}),this.socialItemClick=l=>{switch(l.value.id){case y.copyImage:try{let B,Z,W=document.getElementById("image-to-copy");W.innerHTML=gt(this.imageUrl),document.body.createTextRange?((B=document.body.createTextRange()).moveToElementText(W),B.select()):window.getSelection&&(Z=window.getSelection(),(B=document.createRange()).selectNodeContents(W),Z.removeAllRanges(),Z.addRange(B)),document.execCommand("copy"),window.getSelection().removeAllRanges(),W.innerHTML="",this.notifier.info("Image has been copied, paste it in your email client")}catch{this.notifier.error("Cant copy to clipboard! Please try again")}break;case y.twitter:let b=`https://x.com/intent/tweet?url=${this.imageUrl}`;window.open(b,"_blank");break;case y.facebook:let de=`https://www.facebook.com/dialog/share?app_id=${H.facebookApi.appId}&href=${this.imageUrl}&display=popup`;window.open(de,"_blank");break;case y.linkedin:let q=`https://www.linkedin.com/sharing/share-offsite/?url=${this.imageUrl}`;window.open(q,"_blank");break;case y.whatsapp:let J=`https://api.whatsapp.com/send/?text=${this.imageUrl}&app_absent=0`;window.open(J,"_blank");break}},this.spinnerService.spin(this.certificateSpinner,!1),this.imageUrl=`${H.globals.cloudfrontAddress}/courses/certificate/${n.courseId}/${n.userId}/image_1080.jpg`,this.socialLinks=[new k({id:y.copyImage,icon:"img/certificate/copy.svg",eventName:z.image},"Copy Image"),new k({id:y.twitter,icon:"/img/icon-library/misc/x.svg",eventName:z.twitter},"Share"),new k({id:y.whatsapp,icon:"img/certificate/whatsapp.svg",eventName:z.whatsapp},"Share"),new k({id:y.facebook,icon:"img/certificate/facebook.svg",eventName:z.facebook},"Share"),new k({id:y.linkedin,icon:"img/certificate/linkedin.svg",eventName:z.linkedin},"Share")]}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)(f(M),f(tt),f(_e))}}static{this.\u0275cmp=I({type:t,selectors:[["course-certificate-dialog"]],standalone:!0,features:[Y,E],decls:16,vars:3,consts:[[1,"dialog-close-button-container"],[1,"dialog-close-button",3,"click"],[1,"certificate-content"],[1,"image-section"],["alt","image",3,"load","src"],[1,"content-section"],[1,"text-section"],[1,"header"],[1,"main-text"],[1,"share-section"],["class","social-panel-item",3,"click",4,"ngFor","ngForOf"],[3,"name"],["id","image-to-copy"],[1,"social-panel-item",3,"click"],["alt","image",1,"image-parent",3,"src"],[1,"name"]],template:function(n,i){n&1&&(s(0,"div",0)(1,"div",1),_("click",function(){return i.close()}),r()(),s(2,"div",2)(3,"div",3)(4,"img",4),_("load",function(){return i.stopSpinner()}),r()(),s(5,"div",5)(6,"div",6)(7,"div",7),C(8," Congratulations! "),r(),s(9,"div",8),C(10," I just got my certificate in video making! I'm so excited to start creating more videos and share them with you all. I hope this inspires you to learn more about video making and create some great content yourselves. Stay tuned for more videos from me! "),r()(),s(11,"div",9),v(12,Ft,4,2,"div",10),r()()(),s(13,"ngx-spinner",11),p(14,"lottie-loader"),r(),p(15,"div",12)),n&2&&(a(4),c("src",i.imageUrl,O),a(8),c("ngForOf",i.socialLinks),a(),c("name",i.certificateSpinner))},dependencies:[j,K,G,F],styles:[".dialog-close-button-container[_ngcontent-%COMP%] .dialog-close-button[_ngcontent-%COMP%]{width:30px;height:30px;z-index:1}.certificate-content[_ngcontent-%COMP%]{width:100%;height:90%;display:flex;flex-direction:row;justify-content:center;align-items:center;gap:24px}.image-section[_ngcontent-%COMP%]{flex:1;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.image-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;border-radius:40px;max-height:100%;object-fit:contain}.content-section[_ngcontent-%COMP%]{flex:1;width:100%;height:50%;display:flex;justify-content:center;align-items:flex-start;flex-direction:column;gap:24px}.text-section[_ngcontent-%COMP%]{width:80%;display:flex;justify-content:flex-start;align-items:flex-start;flex-direction:column;gap:12px}.header[_ngcontent-%COMP%]{font-weight:700;font-size:46px;line-height:56px;color:#253658}.main-text[_ngcontent-%COMP%]{font-weight:400;font-size:16px;line-height:140%;color:#253658}.share-section[_ngcontent-%COMP%]{width:80%;display:flex;justify-content:flex-start;align-items:center;flex-direction:row;flex-wrap:wrap;gap:24px 40px}.share-section[_ngcontent-%COMP%] .social-panel-item[_ngcontent-%COMP%]{width:fit-content;height:fit-content;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:8px;
3cursor:pointer}.share-section[_ngcontent-%COMP%] .social-panel-item[_ngcontent-%COMP%] .image-parent[_ngcontent-%COMP%]{padding:8px 12px;border-radius:8px;border:1px solid #DFE2E5;transition:all .3s ease}.share-section[_ngcontent-%COMP%] .social-panel-item[_ngcontent-%COMP%] .image-parent[_ngcontent-%COMP%]:hover{box-shadow:0 0 7px #0000001c}.share-section[_ngcontent-%COMP%] .social-panel-item[_ngcontent-%COMP%] .image-parent[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:24px;height:24px}.share-section[_ngcontent-%COMP%] .social-panel-item[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-style:normal;font-weight:500;font-size:14px;line-height:20px;color:#000}@media only screen and (max-width: 768px){.certificate-content[_ngcontent-%COMP%]{flex-direction:column;justify-content:flex-start;align-items:center}.content-section[_ngcontent-%COMP%]{width:80%}.text-section[_ngcontent-%COMP%], .share-section[_ngcontent-%COMP%]{width:100%}.image-section[_ngcontent-%COMP%]{flex:1.4}.image-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:680px}.header[_ngcontent-%COMP%]{font-weight:700;font-size:40px;line-height:48px}.main-text[_ngcontent-%COMP%]{font-weight:400;font-size:14px;line-height:140%}}@media only screen and (max-width: 549px){.certificate-content[_ngcontent-%COMP%]{flex-direction:column;justify-content:flex-start;align-items:center}.image-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:510px}.content-section[_ngcontent-%COMP%], .text-section[_ngcontent-%COMP%], .share-section[_ngcontent-%COMP%]{width:100%}.image-section[_ngcontent-%COMP%]{flex:1.4}.header[_ngcontent-%COMP%]{font-weight:700;font-size:36px;line-height:44px}.main-text[_ngcontent-%COMP%]{font-weight:400;font-size:14px;line-height:140%}}@media only screen and (max-width: 439px){.certificate-content[_ngcontent-%COMP%]{flex-direction:column;justify-content:flex-start;align-items:center}.content-section[_ngcontent-%COMP%], .text-section[_ngcontent-%COMP%], .share-section[_ngcontent-%COMP%]{width:100%}.image-section[_ngcontent-%COMP%]{flex:1}.image-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%}.header[_ngcontent-%COMP%]{font-weight:700;font-size:32px;line-height:39px}.main-text[_ngcontent-%COMP%]{font-weight:400;font-size:13px;line-height:140%}}"]})}}return t})();Ot();fe();X();At();U();Se();Tt();U();D();U();fe();D();var Vt=t=>({active:t});function Bt(t,m){if(t&1&&(s(0,"div",10),p(1,"lottie-loader",11),r()),t&2){let e=d();a(),c("path",e.lottie)}}function zt(t,m){if(t&1&&p(0,"img",12),t&2){let e=d();c("src",e.thumbnail,O)}}var Ct=(()=>{class t{constructor(){this.select=()=>{this.onSelection.emit(this.index)},this.onSelection=new ne}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["course-card"]],inputs:{index:"index",title:"title",watched:"watched",selected:"selected",thumbnail:"thumbnail",lottie:"lottie",showWatched:"showWatched"},outputs:{onSelection:"onSelection"},standalone:!0,features:[E],decls:15,vars:8,consts:[["thumb",""],[1,"course-card-component"],[1,"course-details-container",3,"click","ngClass"],["class","lottie-container-card",4,"ngIf","ngIfElse"],[1,"watched","mobile",3,"hidden"],[1,"watched-img"],["src","/img/watched.webp","alt","watched"],[1,"course-title"],[1,"watched","not-mobile",3,"hidden"],[1,"watched-txt"],[1,"lottie-container-card"],[3,"path"],["alt","course icon",3,"src"]],template:function(n,i){if(n&1){let l=P();s(0,"div",1)(1,"div",2),_("click",function(){return h(l),g(i.select())}),v(2,Bt,2,1,"div",3)(3,zt,1,1,"ng-template",null,0,re),s(5,"div",4)(6,"div",5),p(7,"img",6),r()()(),s(8,"div",7),C(9),r(),s(10,"div",8)(11,"div",5),p(12,"img",6),r(),s(13,"div",9),C(14," Watched "),r()()()}if(n&2){let l=ie(4);a(),c("ngClass",L(6,Vt,i.selected)),a(),c("ngIf",i.lottie)("ngIfElse",l),a(3),c("hidden",!i.watched||!i.showWatched),a(4),A(" ",i.title," "),a(),c("hidden",!i.watched||!i.showWatched)}},dependencies:[R,F,$],styles:[".course-card-component[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;padding:0 8px;white-space:nowrap;scroll-snap-align:start;scroll-snap-stop:always;text-align:center}.course-title[_ngcontent-%COMP%]{font-size:14px;font-weight:500;max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:normal;line-height:1.2em;max-height:2.4em}.course-details-container[_ngcontent-%COMP%]{border:1px solid rgba(123,141,177,.3);background-color:#fff;border-radius:50%;width:112px;height:112px;cursor:pointer;position:relative;display:flex;align-items:center;justify-content:center}.active[_ngcontent-%COMP%]{border:1px solid #4481FD}.lottie-container-card[_ngcontent-%COMP%]{width:70%;height:70%} .lottie-container-card lottie-loader ng-lottie div{width:100%!important;height:100%!important}.course-details-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain;object-position:center}.watched[_ngcontent-%COMP%]{border-radius:4px;padding:2px 6px;align-items:center;background:#00d096;display:flex;justify-content:center;gap:4px}.watched-img[_ngcontent-%COMP%]{width:16px;height:16px;margin-bottom:4px}.watched-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-position:center;object-fit:cover}.watched-txt[_ngcontent-%COMP%]{font-size:11px;font-weight:600;color:#fff;line-height:16px}.mobile[_ngcontent-%COMP%]{display:none}.not-mobile[_ngcontent-%COMP%]{display:inherit}@media only screen and (max-width: 1440px){.watched-txt[_ngcontent-%COMP%]{display:none}.watched[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px;border-radius:50%;padding:2px 4px}.mobile[_ngcontent-%COMP%]{display:inherit}.not-mobile[_ngcontent-%COMP%]{display:none}}@media only screen and (max-width: 767px){.course-card-component[_ng
3content-%COMP%]{scroll-snap-align:center}.course-title[_ngcontent-%COMP%]{width:100px}.course-details-container[_ngcontent-%COMP%]{width:100px;height:100px}}"]})}}return t})();X();fe();D();D();ae();Ce();var Wt=["listElement"],Ht=["navigationButtons"],Pe=(()=>{class t{get noMoreSpaceToScroll(){let e=this.listElement.nativeElement;return e.scrollLeft>=e.scrollWidth-e.clientWidth-this.getNavigationButtonsWidth()}getNavigationButtonsWidth(){return this.navigationButtons?.nativeElement?.offsetWidth||144}constructor(e,n){this.spinnerService=e,this.eventsService=n,this.onCourseSelect=new ne,this.onLoadMore=new ne,this.selectCourse=i=>{let{courseId:l,id:b,title:de}=this.courseList[i],q=l||b,J=l?b:void 0;this.sendEvent(i),this.onCourseSelect.emit({courseId:q,lessonId:J})}}ngOnChanges(e){}scrollBackward(){this.listElement&&(this.scrollStep=this.listElement.nativeElement.clientWidth,this.listElement.nativeElement.scrollTo({left:this.listElement.nativeElement.scrollLeft-this.scrollStep,behavior:"smooth"}))}scrollForward(){this.listElement&&(this.scrollStep=this.listElement.nativeElement.clientWidth-144,this.listElement.nativeElement.scrollLeft<this.listElement.nativeElement.scrollWidth-this.listElement.nativeElement.clientWidth&&(this.onLoadMore.emit(),this.listElement.nativeElement.scrollTo({left:this.listElement.nativeElement.scrollLeft+this.scrollStep,behavior:"smooth"})))}static{this.\u0275fac=function(n){return new(n||t)(f(M),f(V))}}static{this.\u0275dir=je({type:t,selectors:[["","appBaseCourseList",""]],viewQuery:function(n,i){if(n&1&&(ye(Wt,7),ye(Ht,5)),n&2){let l;Oe(l=Le())&&(i.listElement=l.first),Oe(l=Le())&&(i.navigationButtons=l.first)}},inputs:{hasNext:"hasNext",courseList:"courseList"},outputs:{onCourseSelect:"onCourseSelect",onLoadMore:"onLoadMore"},standalone:!0,features:[Ue]})}}return t})();D();ae();Ce();U();X();var Yt=t=>({"course-with-scroll":t}),$t=t=>({disabled:t});function Gt(t,m){if(t&1){let e=P();s(0,"div",9)(1,"course-card",10),_("onSelection",function(i){h(e);let l=d();return g(l.selectCourse(i))}),r()()}if(t&2){let e=m.$implicit,n=m.index,i=d();a(),c("index",n)("title",e==null?null:e.title)("watched",e==null?null:e.done)("thumbnail",e==null?null:e.thumbnail)("lottie",e==null?null:e.lottie)("selected",(e==null?null:e.id)===i.currentCourseId)("showWatched",i.showWatched)}}function Kt(t,m){t&1&&p(0,"div",11,1)}function Xt(t,m){if(t&1){let e=P();s(0,"div",12,2)(2,"button",13),_("click",function(){h(e);let i=d();return g(i.scrollBackward())}),p(3,"img",14),r(),s(4,"button",15),_("click",function(){h(e);let i=d();return g(i.scrollForward())}),p(5,"img",16),r()()}if(t&2){let e=d();a(4),c("ngClass",L(1,$t,!e.hasNext&&e.noMoreSpaceToScroll))}}var xt=(()=>{class t extends Pe{constructor(e,n){super(e,n),this.spinnerService=e,this.eventsService=n,this.currentCourseId=null,this.useWrap=!1,this.insideCourse=!1,this.SPINNER_ID="course-list-spinner"}sendEvent(e){let{courseId:n,id:i,title:l}=this.courseList[e],b=n||i;this.eventsService.log(this.eventsService.events.courses.courseClick,{courseId:b,headline:l,source:this.insideCourse?"course":"icon"})}static{this.\u0275fac=function(n){return new(n||t)(f(M),f(V))}}static{this.\u0275cmp=I({type:t,selectors:[["app-course-card-list"]],inputs:{currentCourseId:"currentCourseId",showWatched:"showWatched",useWrap:"useWrap",insideCourse:"insideCourse"},standalone:!0,features:[Y,E],decls:8,vars:7,consts:[["listElement",""],["scrollSpacer",""],["navigationButtons",""],[1,"course-list-wrapper"],[1,"course-list-container",3,"ngClass"],["class","course-card-container",4,"ngFor","ngForOf"],["class","scroll-spacer",4,"ngIf"],[3,"name"],["class","navigation-buttons",4,"ngIf"],[1,"course-card-container"],[3,"onSelection","index","title","watched","thumbnail","lottie","selected","showWatched"],[1,"scroll-spacer"],[1,"navigation-buttons"],[3,"click"],["src","/img/desk-features/course-left-nav.webp","alt","back"],[3,"click","ngClass"],["src","/img/desk-features/course-right-nav.webp","alt","forward"]],template:function(n,i){n&1&&(s(0,"div",3)(1,"div",4,0),v(3,Gt,2,7,"div",5)(4,Kt,2,0,"div",6),r(),s(5,"ngx-spinner",7),p(6,"lottie-loader"),r(),v(7,Xt,6,3,"div",8),r()),n&2&&(a(),c("ngClass",L(5,Yt,i.useWrap)),a(2),c("ngForOf",i.courseList),a(),c("ngIf",i.useWrap),a(),c("name",i.SPINNER_ID),a(2),c("ngIf",i.useWrap))},dependencies:[ge,R,j,$,Ct,K,G,F],styles:['.course-list-wrapper[_ngcontent-%COMP%]{position:relative;width:100%;display:flex;align-items:center;justify-content:flex-start}.course-list-container[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-start;flex-wrap:wrap;position:relative;gap:20px}.course-with-scroll[_ngcontent-%COMP%]{flex-wrap:nowrap!important;overflow-x:scroll;scroll-snap-type:x mandatory}.course-with-scroll[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.scroll-spacer[_ngcontent-%COMP%]{flex-shrink:0;width:140px}.navigation-buttons[_ngcontent-%COMP%]{position:absolute;bottom:0;right:0;z-index:1000;display:flex;gap:24px;height:100%;align-items:center;background:transparent}.navigation-buttons[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to right,#f4fbfe,#f6f8ff 65%);mask-image:linear-gradient(to right,transparent 0%,black 35%);-webkit-mask-image:linear-gradient(to right,transparent 0%,black 35%)}.navigation-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:48px;height:48px;padding:12px;border-radius:40px;background:#4481fd14}.navigation-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-position:center;object-fit:contain}']})}}return t})();U();D();Ce();ae();U();var Qt=t=>({disabled:t});function qt(t,m){if(t&1){let e=P();s(0,"div",9),_("click",function(){let i=h(e).index,l=d();return g(l.selectCourse(i))}),s(1,"div",10),p(2,"img",11),r(),s(3,"div",12),C(4),r()()}if(t&2){let e=m.$implicit;a(2),c("src",e.thumbnail,O),a(2),A(" ",e.title," ")}}var wt=(()=>{class t extends Pe{constructor(e,n){super(n,e),this.eventsService=e,this.spinnerService=n}
3sendEvent(e){let{courseId:n,id:i,title:l}=this.courseList[e],b=n||i;this.eventsService.log(this.eventsService.events.courses.courseClick,{courseId:b,headline:l,source:"thumbnail",chapterId:i})}static{this.\u0275fac=function(n){return new(n||t)(f(V),f(M))}}static{this.\u0275cmp=I({type:t,selectors:[["app-course-new-video-list"]],standalone:!0,features:[Y,E],decls:12,vars:4,consts:[["listElement",""],[1,"video-list-wrapper"],[1,"main-title"],[1,"navigation-buttons"],[3,"click"],["src","/img/desk-features/course-left-nav.webp","alt","back"],[3,"click","ngClass"],["src","/img/desk-features/course-right-nav.webp","alt","forward"],["class","video-wrapper",3,"click",4,"ngFor","ngForOf"],[1,"video-wrapper",3,"click"],[1,"img-wrapper"],["alt","video thumbnail",3,"src"],[1,"video-title"]],template:function(n,i){if(n&1){let l=P();s(0,"div",1)(1,"header")(2,"div",2),C(3," What\u2019s New "),r(),s(4,"div",3)(5,"button",4),_("click",function(){return h(l),g(i.scrollBackward())}),p(6,"img",5),r(),s(7,"button",6),_("click",function(){return h(l),g(i.scrollForward())}),p(8,"img",7),r()()(),s(9,"main",null,0),v(11,qt,5,2,"div",8),r()()}n&2&&(a(7),c("ngClass",L(2,Qt,!i.hasNext&&i.noMoreSpaceToScroll)),a(4),c("ngForOf",i.courseList))},dependencies:[ge,R,j],styles:[".video-list-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;justify-content:flex-start;flex-direction:column;align-items:flex-start;gap:20px}header[_ngcontent-%COMP%]{width:98%;display:flex;justify-content:space-between;align-items:center}main[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:flex-start;align-items:center;gap:16px;overflow-x:scroll;scroll-snap-type:x mandatory}.video-list-wrapper[_ngcontent-%COMP%] main[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.main-title[_ngcontent-%COMP%]{color:#253658;font-size:24px;font-weight:600}.navigation-buttons[_ngcontent-%COMP%]{display:flex;gap:24px}.navigation-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:48px;height:48px;padding:12px;border-radius:40px;background:#4481fd14}.navigation-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-position:center;object-fit:contain}.video-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:8px;cursor:pointer;scroll-snap-align:start;scroll-snap-stop:always}.img-wrapper[_ngcontent-%COMP%]{width:300px;aspect-ratio:16/9;border-radius:10px;overflow:hidden;border:1px solid rgba(123,141,177,.3)}.img-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:fill;object-position:center}.video-title[_ngcontent-%COMP%]{color:#253658;text-align:left;font-size:16px;font-weight:500;line-height:19px}@media only screen and (max-width: 767px){.video-wrapper[_ngcontent-%COMP%]{scroll-snap-align:center}.img-wrapper[_ngcontent-%COMP%]{width:256px;height:148px}}@media only screen and (max-width: 550px){.img-wrapper[_ngcontent-%COMP%]{width:232px;height:136px}}"]})}}return t})();Je();jt();D();yt();ae();at();Dt();Ce();Ze();U();Nt();X();Rt();var Zt=t=>({hidden:t}),en=t=>({"platfrom-section-active":t}),tn=t=>({highlighted:t}),nn=(t,m,e)=>({done:t,play:m,pause:e});function on(t,m){if(t&1){let e=P();s(0,"div",13)(1,"div")(2,"app-course-new-video-list",14),_("onLoadMore",function(){h(e);let i=d();return g(i.onLoadMoreCourses(!0))})("onCourseSelect",function(i){h(e);let l=d();return g(l.selectCourse(i))}),r()(),s(3,"div",15)(4,"app-course-card-list",16),_("onLoadMore",function(){h(e);let i=d();return g(i.onLoadMoreCourses(!1))})("onCourseSelect",function(i){h(e);let l=d();return g(l.selectCourse(i))}),r()()()}if(t&2){let e=d();a(),ue("max-width",100,"%"),a(),c("hasNext",e.hasNextVideoCourse)("courseList",e.courseVideoList),a(2),c("courseList",e.filteredCourseList)("hasNext",e.hasNextCourse)("currentCourseId",e.course==null?null:e.course.id)("showWatched",!e.allCoursesScreen)}}function sn(t,m){if(t&1){let e=P();s(0,"div",52)(1,"button",6),_("click",function(){let i=h(e).index,l=d(2);return g(l.onPlayerAction(i))}),p(2,"img",45),r()()}if(t&2){let e=m.$implicit;a(2),c("src",e==null?null:e.sideIconUrl,O)}}function rn(t,m){if(t&1&&(s(0,"div",53)(1,"div",54),C(2),se(3,"date"),se(4,"date"),r()()),t&2){let e=d(2);a(2),me(" ",he(3,2,e.currentPlayingTime*1e3,"mm:ss")," / ",he(4,5,(e.currentLesson==null?null:e.currentLesson.duration)*1e3,"mm:ss")," ")}}function an(t,m){if(t&1){let e=P();s(0,"div",58)(1,"action-button",59),_("onClick",function(){let i=h(e).$implicit,l=d(3);return g(l.onLessonEndAction(i==null?null:i.id))}),r()()}if(t&2){let e=m.$implicit;a(),Ve(e==null?null:e.style),c("text",e==null?null:e.text)("disabled",e==null?null:e.disabled)("sideIconUrl",e==null?null:e.sideIconUrl)}}function cn(t,m){if(t&1&&(s(0,"div",55)(1,"div",56),v(2,an,2,5,"div",57),r()()),t&2){let e=d(2);a(2),c("ngForOf",e.lessonEndActionButtons)}}function ln(t,m){if(t&1){let e=P();s(0,"div",60),_("click",function(){let i=h(e).$implicit,l=d(2);return g(l.changePlatformFiler(i))}),p(1,"img",61),C(2),r()}if(t&2){let e=m.$implicit,n=d(2);c("ngClass",L(3,en,n.selectedPlatformFilter.value===e.value)),a(),c("src",n.selectedPlatformFilter.value!=e.value?e.style:e.sideIconClass,O),a(),A(" ",e.name," ")}}function dn(t,m){if(t&1&&(s(0,"div",62)(1,"div",63),p(2,"img",64),r(),s(3,"div",65),C(4),r()()),t&2){let e=d(2);a(4),me("",e.platformLessonsDoneCount,"/",e.lessonAssets==null?null:e.lessonAssets.length," ")}}function pn(t,m){if(t&1){let e=P();s(0,"div",67),_("click",function(){let i=h(e).index,l=d(3);return g(l.selectLesson(i))}),s(1,"div",68)(2,"div",69),p(3,"i",70),r(),s(4,"div",71),C(5),r()(),s(6,"div",72),C(7),se(8,"date"),r()()}if(t&2){let e=m.$implicit,n=m.index,i=d(3);c("ngClass",L(9,tn,e==null?null:e.done))("@currentVideoAnimation",e.animationState),a(3),c("ngClass",He(11,nn,e==null?null:e.done,!(e!=null&&e.done),!(e!=null&&e.done)&&(e==null?null:e.id)===(i.currentLesson==null?null:i.currentLesson.id)&&i.isPlaying)),a(2),me(" ",n+1,". ",e.title," "),a(2),A(" ",he(8,6,e.duration*1e3,"mm:ss")," ")}}function un(t,m){if(t&1&&(Be(0),v(1,pn,9,15,"div",66),ze()),t&2){let e=d(2);a(),c("ngForOf",e.filteredLessons)}}
3function mn(t,m){t&1&&(s(0,"div",73),C(1," No lessons found "),r())}function hn(t,m){if(t&1){let e=P();s(0,"div",17)(1,"div",18)(2,"div",19)(3,"div",20),_("click",function(){h(e);let i=d();return g(i.onPlayerClicked())}),s(4,"div",21),p(5,"button",22),r()(),s(6,"div",23)(7,"div",24),v(8,sn,3,1,"div",25),r(),v(9,rn,5,8,"div",26),r(),v(10,cn,3,1,"div",27),s(11,"div",28),p(12,"video",29),r(),s(13,"div",30),C(14),r(),s(15,"ngx-spinner",31),p(16,"lottie-loader"),r()(),s(17,"div",32)(18,"div",33),v(19,ln,3,5,"div",34),r(),s(20,"div",35)(21,"div",36),C(22),se(23,"titlecase"),r(),v(24,dn,5,2,"div",37),r(),s(25,"div",38),v(26,un,2,1,"ng-container",39)(27,mn,2,0,"ng-template",null,1,re),r(),s(29,"div",40)(30,"div",41),C(31,"Need help? Get a One-on-One free coaching session"),r(),s(32,"div",42)(33,"div",43)(34,"div",44),p(35,"img",45),r(),s(36,"div",46)(37,"div",47),C(38),r(),s(39,"div",48),C(40,"BIGVU Customer Success"),r()()(),s(41,"div",49)(42,"button",6),_("click",function(){h(e);let i=d();return g(i.getSupport())}),C(43,"Schedule a call"),r()()()(),s(44,"ngx-spinner",31),p(45,"lottie-loader"),r()()(),s(46,"div",50)(47,"app-course-card-list",51),_("onLoadMore",function(){h(e);let i=d();return g(i.onLoadMoreCourses(!1))})("onCourseSelect",function(i){h(e);let l=d();return g(l.selectCourse(i))}),r()()()}if(t&2){let e=ie(28),n=d();a(2),c("id",n.VIDEO_ELEMENT_ID),a(2),c("ngClass",L(28,Zt,n.isPlaying||n.showLessonEndOverlay)),a(4),c("ngForOf",n.playerControlButtons),a(),c("ngIf",(n.filteredLessons==null?null:n.filteredLessons.length)>0),a(),c("ngIf",n.showLessonEndOverlay),a(2),c("id",n.PLAYER_ID),a(2),A(" ",n.courseUnavailableMessage," "),a(),c("name",n.PLAYER_SPINNER_ID),a(4),c("ngForOf",n.platformOptions),a(3),oe(Ye(23,26,n.course==null?null:n.course.title)),a(2),c("ngIf",(n.lessonAssets==null?null:n.lessonAssets.length)>0),a(),ue("padding",n.LESSON_LIST_CONTAINER_PADDING_PX,"px"),a(),c("ngIf",(n.filteredLessons==null?null:n.filteredLessons.length)>0)("ngIfElse",e),a(9),c("src",n.supportMemberImageUrl,O),a(3),oe(n.courseSupportMember==null?null:n.courseSupportMember.fullName),a(6),c("name",n.CONTENT_SPINNER_ID),a(2),ue("max-width",100,"%"),a(),c("useWrap",!0)("insideCourse",!0)("hasNext",n.hasNextCourse)("courseList",n.courseList)("currentCourseId",n.course==null?null:n.course.id)("showWatched",!n.allCoursesScreen)}}var le=function(t){return t[t.PLAY_NEXT=0]="PLAY_NEXT",t[t.WATCH_AGAIN=1]="WATCH_AGAIN",t}(le||{}),S=function(t){return t[t.PLAY=0]="PLAY",t[t.SKIP_BACK=1]="SKIP_BACK",t[t.SKIP_FORWARD=2]="SKIP_FORWARD",t[t.MUTE=3]="MUTE",t[t.SHOW_FULLSCREEN=4]="SHOW_FULLSCREEN",t}(S||{}),Pt=(()=>{class t{get supportMemberImageUrl(){let{emptyProfileImgUrl:e}=H.globals;return this.courseSupportMember&&this.courseSupportMember.profileImgAsset.url||e}get lessonAssets(){return this.course&&this.course.lessonAssets.filter(e=>e.platforms.includes(this.selectedPlatformFilter?.value))}get currentLesson(){return this.lessonAssets&&this.lessonAssets[this.currentLessonIndex]}get currentPlayingTime(){return this.videoPlayerService.getCurrentTime(this.PLAYER_ID)}get hasNextVideoCourse(){return!!this.dataService.nextVideoCourseUrl}get hasNextCourse(){return!!this.dataService.nextCourseUrl}constructor(e,n,i,l,b,de,q,J,B,Z,W,bt){this.router=e,this.dataService=n,this.spinnerService=i,this.videoPlayerService=l,this.renderer=b,this.dialogHelperService=de,this.userHelperService=q,this.eventsService=J,this.mediaUtilityService=B,this.notifier=Z,this.location=W,this.loginHelperService=bt,this._EVENTS_PATH=this.eventsService.events.courses,this._SKIP_SEC=5,this._PLAY_CONTROL_ICON_URLS=["/img/play-control-icon.svg","/img/pause-control-icon.svg"],this._FULLSCREEN_CONTROL_ICON_URLS=["/img/fullscreen-control-icon.svg","/img/minimize-control-icon.svg"],this._MUTE_STATE_CONTROL_ICON_URLS=["/img/volume-on-control-icon.svg","/img/volume-off-control-icon.svg"],this._SUPPORT_LINK="https://calendly.com/bigvu-success-team/one-on-one-coaching-call",this.LESSON_LIST_CONTAINER_PADDING_PX=14,this.LESSON_CONTAINER_HEIGHT_PX=33,this.LESSON_CONTAINER_BOTTOM_MARGIN_PX=14,this.LESSON_CONTAINER_STYLE=` 4 height: ${this.LESSON_CONTAINER_HEIGHT_PX}px; 5 margin-bottom: ${this.LESSON_CONTAINER_BOTTOM_MARGIN_PX}px 6 `,this.CONTENT_SPINNER_ID="course-content-spinner",this.PLAYER_SPINNER_ID="player-spinner",this.PLAYER_ID="course-player",this.VIDEO_ELEMENT_ID="course-video-element",this.COURSE_CARD_COUNT=20,this.mainInit=()=>w(this,null,function*(){this.allCoursesScreen=yield this.setCourse(),this.allCoursesScreen?this.filterText="Search Course":this.filterText="Search Lesson",this.setSearchInputValueChangeListener(),this.setCourseList(),this.course&&(this.initializeCurrentLesson(),this.setLessonsDoneCount(),this.setCourseSupportMember(),this.allCoursesScreen||setTimeout(()=>w(this,null,function*(){yield this.initializePlayer(),this.isPlaying=!1})))}),this.setWindowEventListeners=()=>{this.beforeUnloadListener=this.renderer.listen("window","beforeunload",this.onWindowBeforeUnload),this.mediaUtilityService.fullscreenState$.subscribe(this.setFullscreenState)},this.onWindowBeforeUnload=o=>{this.isPlaying&&this.updateCourseProgress()},this.setCourseList=()=>w(this,null,function*(){try{this.loadingCourseList=!0,this.courseVideoList=yield this.dataService.getCourseVideoList(this.COURSE_CARD_COUNT,!0),this.courseList=yield this.dataService.getCourseList(this.COURSE_CARD_COUNT,!0),this.filteredCourseList=this.courseList}catch(o){this.notifier.error("Failed to load course list"),console.error(o)}finally{this.loadingCourseList=!1}}),this.onLoadMoreCourses=(o=!1)=>w(this,null,function*(){if(!this.loadingCourseList)try{this.loadingCourseList=!0,o?this.courseVideoList=yield this.dataService.loadMoreVideoCourses(this.COURSE_CARD_COUNT):(this.courseList=yield this.dataService.loadMoreCourses(this.COURSE_CARD_COUNT),this.filteredCourseList=this.courseList)}catch(u){this.notifier.error("Failed to load course list"),console.error(u)}finally{this.loadingCourseList=!1}}),this.setPlayerControlButtons=()=>{this.playerControlButtons=[{id:S.PLAY,sideIconUrl:this._PLAY_CONTROL_ICON_URLS[0]},{id:S.SKIP_BACK,sideIconUrl:"/img/skip-back-control-icon.svg"},{id:S.SKIP_FORWARD,sideIconUrl:"/img/skip-forward-control-icon.svg"},{id:S.MUTE,sideIconUrl:this._MUTE_STATE_CONTROL_ICON_URLS[0]},{id:S.SHOW_FULLSCREEN,sideIconUrl:this._FULLSCREEN_CONTROL_ICON_URLS[0]}]},this.onPlayerAction=o=>w(this,null,function*(){switch(this.playerControlButtons[o].id){case S.PLAY:this.onPlayerClicked();break;case S.SKIP_BACK:this.videoPlayerService.skip(this.PLAYER_ID,-1*this._SKIP_SEC);break;case S.SKIP_FORWARD:this.videoPlayerService.skip(this.PLAYER_ID,this._SKIP_SEC);break;case S.MUTE:this.setMuteState();break;case S.SHOW_FULLSCREEN:let x=document.getElementById(this.VIDEO_ELEMENT_ID);this.mediaUtilityService.showFullscreen(x);break}}),this.setMuteState=()=>{try{let o=this.videoPlayerService.toggleMuteState(this.PLAYER_ID);this.setPlayerControlIcon(S.MUTE,o,this._MUTE_STATE_CONTROL_ICON_URLS)}catch(o){console.error(o)}},this.setFullscreenState=o=>{this.setPlayerControlIcon(S.SHOW_FULLSCREEN,o,this._FULLSCREEN_CONTROL_ICON_URLS)},this.setLessonEndActionButtons=()=>{this.lessonEndActionButtons=[{id:le.PLAY_NEXT,text:"Next Lesson",style:"next-lesson-button"},{id:le.WATCH_AGAIN,text:"Watch Again",style:"watch-again-button",sideIconUrl:"/img/repeat-icon.svg"}]},this.onLessonEndAction=o=>{switch(o){case le.PLAY_NEXT:this.playNextLesson();break;case le.WATCH_AGAIN:this.repeatLesson();break;default:break}this.showLessonEndOverlay=!1},this.playNextLesson=()=>w(this,null,function*(){this.videoPlayerService.setCurrentTime(this.PLAYER_ID,0),this.updateCourseProgress();let o=this.currentLessonIndex;this.currentLessonIndex=(this.currentLessonIndex+1)%this.lessonAssets.length,this.setCurrentLessonVideo(),this.sendEvent(this._EVENTS_PATH.videoNext,{mediaId:this.currentLesson?.mediaId,videoName:this.currentLesson?.mediaTitle,currentVideoIndex:o,targetVideoIndex:this.currentLessonIndex}),this.onPlayerClicked(),this.animateLesson()}),this.animateLesson=()=>{this.filteredLessons.forEach((o,u)=>{this.currentLessonIndex===u?o.animationState=N.PLAYING:o.animationState=N.PAUSING})},this.repeatLesson=()=>{this.videoPlayerService.setCurrentTime(this.PLAYER_ID,0),this.sendEvent(this._EVENTS_PATH.videoRepeat,{mediaId:this.currentLesson?.mediaId,videoName:this.currentLesson?.mediaTitle,currentVideoIndex:this.currentLessonIndex,targetVideoIndex:this.currentLessonIndex}),this.onPlayerClicked(!1)},this.initializeSearchFormControl=()=>{this.searchFormControl=new qe("")},this.setSearchInputValueChangeListener=()=>{this.searchFormControl.valueChanges.pipe(Re(""),De(500)).subscribe(this.onLessonSearch)},this.onLessonSearch=o=>{let u=o.toLowerCase();this.allCoursesScreen?this.filteredCourseList=this.courseList.filter(x=>x.title.toLowerCase().includes(u)):this.filteredLessons=this.lessonAssets.filter(x=>x.title.toLowerCase().includes(u))},this.setCourse=()=>w(this,null,function*(){let o=this.getPath(),u=o.length>=3?o[2]:"";if(u)try{return this.spinnerService.spin(this.CONTENT_SPINNER_ID,!1),this.course=yield this.dataService.getCourseById(u),!1}catch{return this.setCourseUnavailableMessage(),!0}finally{this.spinnerService.stop(this.CONTENT_SPINNER_ID),this.loadingCourse=!1}else return!0}),this.initializeCurrentLesson=()=>{this.currentLessonIndex=this.getInitialLessonIndex(),this.animateLesson()},this.getInitialLessonIndex=()=>{let o=0,{lessonAssets:u,lastWatchedLessonId:x}=this.course,T=this.getPath(),ee=T.length===4?T[3]:x;if(ee){let pe=u.find(te=>te.id===ee);pe&&(pe.platforms.includes(this.selectedPlatformFilter.value)||(this.selectedPlatformFilter=this.platformOptions[1]),o=this.lessonAssets.findIndex(te=>te.id===ee))}else this.lessonAssets.length===0&&(this.selectedPlatformFilter=this.platformOptions[1]);return this.filteredLessons=this.lessonAssets,o},this.setLessonsDoneCount=()=>{this.platformLessonsDoneCount=0,this.courseLessonsDoneCount=0,this.course&&(this.lessonAssets.forEac
6h(o=>{o.done&&this.platformLessonsDoneCount++}),this.course.lessonAssets.forEach(o=>{o.done&&this.courseLessonsDoneCount++}))},this.setCourseSupportMember=()=>{this.courseSupportMember=this.dataService.getCourseSupportMember()},this.initializePlayer=()=>w(this,null,function*(){try{this.spinnerService.spin(this.PLAYER_SPINNER_ID,!0),yield this.videoPlayerService.init(this.PLAYER_ID,!1,!0),this.setPlayerEventListeners(),this.setCurrentLessonVideo(!0)}catch(o){this.courseUnavailableMessage=Q.PLAYER_LOAD_FAILED,console.error(o)}finally{this.spinnerService.stop(this.PLAYER_SPINNER_ID)}}),this.setPlayerEventListeners=()=>{this.videoPlayerService.setEventListener(this.PLAYER_ID,"ended",this.onLessonEnd)},this.onLessonEnd=()=>w(this,null,function*(){yield this.updateCourseProgress(),this.currentLesson?.markedAsDone||this.sendEvent(this._EVENTS_PATH.videoAchieve,{mediaId:this.currentLesson?.mediaId,videoName:this.currentLesson?.mediaTitle}),this.markCurrentLessonAsDone(),this.setLessonsDoneCount(),this.showLessonEndOverlay=!0,this.setPlayState(!1),this.shouldShowCertificate()&&!this.certificateDialogOpened&&(this.certificateDialogOpened=!0,this.sendEvent(this._EVENTS_PATH.finish),this.openCertificateDialog(),this.courseList.find(o=>o.id===this.course.id).done=!0)}),this.markCurrentLessonAsDone=()=>{this.isLoggedIn&&(this.currentLesson.progress=1,this.currentLesson.done=!0,this.currentLesson.markedAsDone=!0)},this.shouldShowCertificate=()=>this.isLoggedIn&&this.courseLessonsDoneCount===this.course.lessonCount&&!this.course.certificateShown,this.openCertificateDialog=()=>w(this,null,function*(){let o=new xe;o.courseId=this.course.id;let u=yield this.userHelperService.getUserDetails();o.userId=u.id,o.onClose=this.onCertificateDialogClose;let x=new st;x.disableClose=!0,x.panelClass="course-certificate-content",this.dialogHelperService.open(o,_t,x),this.sendEvent(this._EVENTS_PATH.certificateShown)}),this.onCertificateDialogButtonClick=o=>{this.sendEvent(this._EVENTS_PATH.certificateClick,{button:o.id})},this.onCertificateDialogClose=()=>w(this,null,function*(){try{yield this.dataService.markCertificate(this.course)}catch(o){console.error(Q.CERTIFICATE_MARK_FAILED,o)}finally{this.certificateDialogOpened=!1,this.dialogHelperService.close(),this.sendEvent(this._EVENTS_PATH.certificateExit)}}),this.setCurrentLessonVideo=(o=!1)=>{if(this.currentLesson){let{progress:u,duration:x,hlsUrl:T,url:ee,thumbnailUrl:pe}=this.currentLesson;this.videoPlayerService.setSource(this.PLAYER_ID,T||ee),o&&this.videoPlayerService.setPoster(this.PLAYER_ID,pe);let te=u>0?x*u:0;this.videoPlayerService.setCurrentTime(this.PLAYER_ID,te)}},this.setCourseUnavailableMessage=()=>{this.courseUnavailableMessage=Q.COURSE_UNAVAILABLE},this.onPlayerClicked=(o=!0)=>w(this,null,function*(){this.videoPlayerService.pause(this.PLAYER_ID),this.isPlaying?yield this.updateCourseProgress():(this.videoPlayerService.play(this.PLAYER_ID).catch(u=>console.error(u)),o&&this.sendEvent(this._EVENTS_PATH.videoPlay,{mediaId:this.currentLesson?.mediaId,videoName:this.currentLesson?.mediaTitle,achieved:this.currentLesson?.done})),this.setPlayState(!this.isPlaying)}),this.setPlayState=o=>{this.isPlaying=o,this.setPlayerControlIcon(S.PLAY,o,this._PLAY_CONTROL_ICON_URLS)},this.setPlayerControlIcon=(o,u,x)=>{this.playerControlButtons.find(T=>T.id===o).sideIconUrl=x[+u]},this.updateCourseProgress=()=>w(this,null,function*(){if(this.isLoggedIn)try{let o=this.videoPlayerService.getCurrentTime(this.PLAYER_ID),u=Math.min(o/this.currentLesson.duration,1);this.currentLesson.progress=u,yield this.dataService.updateProgress(this.course.id,this.currentLesson.id,u)}catch(o){console.error(Q.PROGRESS_UPDATE_FAILED,o)}}),this.selectLesson=o=>w(this,null,function*(){this.isPlaying&&(this.updateCourseProgress(),this.setPlayState(!1)),setTimeout(()=>{let u=this.currentLessonIndex;this.sendExitEvent(u),this.currentLessonIndex=o,this.animateLesson(),this.setCurrentLessonVideo(),this.onPlayerClicked(),this.showLessonEndOverlay=!1,this.sendEvent(this._EVENTS_PATH.listClick,{currentVideoIndex:u+1,targetVideoIndex:this.currentLessonIndex+1,videoName:this.currentLesson?.mediaTitle})},500)}
6),this.getSupport=()=>{window.open(this._SUPPORT_LINK,"_blank"),this.sendEvent(this._EVENTS_PATH.expertClick)},this.sendEvent=(o,u)=>{if(!this.isLoggedIn)return;let x={courseId:this.course.id,headline:this.course.title,coursePlatform:this.selectedPlatformFilter?.value};this.eventsService.log(o,be(be({},x),u))},this.sendExitEvent=o=>{this.isLoggedIn&&this.sendEvent(this._EVENTS_PATH.courseVideoExit,{mediaId:this.currentLesson?.mediaId,videoName:this.currentLesson?.mediaTitle,videoIndex:o,achieved:this.currentLesson?.done})},this.selectCourse=o=>{o.lessonId?this.location.replaceState("/course/"+o.courseId+"/"+o.lessonId):this.location.replaceState("/course/"+o.courseId),this.loadingCourse=!0,this.showLessonEndOverlay=!1,this.initializeSearchFormControl(),this.mainInit()},this.getPath=()=>window.location.pathname.split("/"),this.changePlatformFiler=o=>{this.selectedPlatformFilter=o,this.filteredLessons=this.lessonAssets},this.goBack=()=>{this.allCoursesScreen?this.router.navigate(["boards"]):(this.exitLogic(),this.location.replaceState("/course"),this.initializeSearchFormControl(),this.mainInit())},this.exitLogic=()=>{this.allCoursesScreen||(this.updateCourseProgress(),this.videoPlayerService.dispose(this.PLAYER_ID),this.sendExitEvent(this.currentLessonIndex),this.sendEvent(this._EVENTS_PATH.exit,{medals:this.courseLessonsDoneCount})),this.beforeUnloadListener&&(this.beforeUnloadListener(),this.beforeUnloadListener=null)},this.loadingCourse=!0,this.setWindowEventListeners(),this.setPlayerControlButtons(),this.setLessonEndActionButtons(),this.courseList=[],this.filteredCourseList=[],this.courseVideoList=[],this.certificateDialogOpened=!1,this.isLoggedIn=this.loginHelperService.isUserLoggedIn(),this.platformOptions=[new k("web","Web App","/img/courses/web-blue.svg","/img/courses/web-white.svg"),new k("mobile","Mobile","/img/courses/mobile-blue.svg","/img/courses/mobile-white.svg")],this.selectedPlatformFilter=this.platformOptions[0]}ngOnInit(){return w(this,null,function*(){this.initializeSearchFormControl(),yield this.mainInit()})}ngOnDestroy(){this.exitLogic()}static{this.\u0275fac=function(n){return new(n||t)(f(Xe),f(ut),f(M),f(pt),f(Fe),f(rt),f(ct),f(V),f(ve),f(_e),f($e),f(it))}}static{this.\u0275cmp=I({type:t,selectors:[["course-screen"]],standalone:!0,features:[We([ve]),E],decls:14,vars:8,consts:[["showCourseContent",""],["showEmptyListMessage",""],[1,"course-player-component"],[1,"navigation-bar-container"],[1,"back-logo-section"],[1,"back-button-container",3,"hidden"],[3,"click"],["src","/img/blue-left-arrow.svg","alt","Go Back"],[1,"search-input-section"],[1,"search-input-container"],["inputIcon","search-input-search-icon",3,"customInputClass","inputFormControl","placeholder","highlightOnFocus","showSearchButton"],[1,"main-content"],["class","all-courses-wrapper",4,"ngIf","ngIfElse"],[1,"all-courses-wrapper"],[3,"onLoadMore","onCourseSelect","hasNext","courseList"],[1,"more-courses"],[3,"onLoadMore","onCourseSelect","courseList","hasNext","currentCourseId","showWatched"],[1,"single-courses-wrapper"],[1,"course-content-container"],[1,"player-container",3,"id"],[1,"player-clickable-area",3,"click"],[1,"play-button-container",3,"ngClass"],["aria-label","play"],[1,"player-controls-container"],[1,"control-buttons-container"],["class","control-container",4,"ngFor","ngForOf"],["class","video-time-container",4,"ngIf"],["class","lesson-end-overlay",4,"ngIf"],[1,"video-container"],[1,"video-js","vjs-default-skin",3,"id"],[1,"player-error-msg"],[3,"name"],[1,"course-details-container"],[1,"platform-toogle-wrapper"],["class","platfrom-section",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"course-title-container"],[1,"title"],["class","progress-badge-container",4,"ngIf"],[1,"lesson-list-container"],[4,"ngIf","ngIfElse"],[1,"support-section"],[1,"support-title"],[1,"support-member-card"],[1,"support-member-details-container"],[1,"member-image-container"],["alt","image",3,"src"],[1,"member-name-container"],[1,"member-name"],[1,"member-label"],[1,"schedule-button-container"],[1,"more-courses-single"],[1,"make-column",3,"onLoadMore","onCourseSelect","useWrap","insideCourse","hasNext","courseList","currentCourseId","showWatched"],[1,"control-container"],[1,"video-time-container"],[1,"video-time"],[1,"lesson-e
6nd-overlay"],[1,"action-buttons-list-container"],["class","action-button-container",4,"ngFor","ngForOf"],[1,"action-button-container"],[3,"onClick","text","disabled","sideIconUrl"],[1,"platfrom-section",3,"click","ngClass"],["alt","Platform icon",3,"src"],[1,"progress-badge-container"],[1,"badge-icon-container"],["src","/img/course-badge-icon.svg","alt","image"],[1,"course-progress"],["class","lesson-container",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"lesson-container",3,"click","ngClass"],[1,"lesson-title-container"],[1,"side-icon-container"],[3,"ngClass"],[1,"lesson-title"],[1,"lesson-duration"],[1,"no-lessons-found-msg"]],template:function(n,i){if(n&1){let l=P();s(0,"div",2)(1,"div",3)(2,"section",4)(3,"div",5)(4,"button",6),_("click",function(){return h(l),g(i.goBack())}),p(5,"img",7),r()(),p(6,"brand-logo"),r(),s(7,"section",8)(8,"div",9),p(9,"ui-search-input",10),r()()(),s(10,"div",11),v(11,on,5,8,"div",12)(12,hn,48,30,"ng-template",null,0,re),r()()}if(n&2){let l=ie(13);a(3),c("hidden",!i.isLoggedIn),a(6),c("customInputClass","search-input-course")("inputFormControl",i.searchFormControl)("placeholder",i.filterText)("highlightOnFocus",!1)("showSearchButton",!1),a(2),c("ngIf",i.allCoursesScreen)("ngIfElse",l)}},dependencies:[mt,$,R,j,ot,K,G,F,Ge,Ke,xt,wt,dt,lt],styles:[".course-player-component[_ngcontent-%COMP%]{overflow:scroll;background:linear-gradient(270deg,#f4fbfe,#f6f8ff)}.navigation-bar-container[_ngcontent-%COMP%]{height:72px;padding:10px 20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(123,141,177,.08)}.back-logo-section[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.search-input-section[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:center}.more-courses-single[_ngcontent-%COMP%]{margin:0 auto;width:80%;overflow:scroll;padding-left:20px}.more-courses[_ngcontent-%COMP%]{overflow:scroll;padding-left:20px}.all-courses-wrapper[_ngcontent-%COMP%]{gap:24px;height:90%;width:90%;margin:0 auto;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding-top:40px}.single-courses-wrapper[_ngcontent-%COMP%]{width:100%}.back-button-container[_ngcontent-%COMP%]{background-color:#25365814;border-radius:10px;width:32px;height:32px;display:flex;justify-content:center;align-items:center;margin-right:10px}.back-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.back-button-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:50%;height:50%;object-fit:contain;object-position:center}.search-input-container[_ngcontent-%COMP%]{position:relative;width:300px}.search-icon-container[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:10px;margin:auto;width:20px;height:20px}.search-icon-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%} .search-input-container text-input .text-input-component, .search-input-container text-input .text-input-component.focus{padding:3px 30px}.main-content[_ngcontent-%COMP%]{height:calc(100vh - 20px)}.error-message[_ngcontent-%COMP%]{font-size:18px;display:flex;justify-content:center;align-items:center;height:80%}.course-content-container[_ngcontent-%COMP%]{display:flex;width:80%;margin:0 auto;padding:20px}.player-container[_ngcontent-%COMP%]{width:63%;border:1px solid rgba(123,141,177,.6);border-radius:10px;margin-right:24px;max-height:510px;overflow:hidden;position:relative;margin-bottom:10px;background:#000}.player-container[_ngcontent-%COMP%]:hover .player-controls-container[_ngcontent-%COMP%]{opacity:1;z-index:1}.player-clickable-area[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer;z-index:1}.play-button-container[_ngcontent-%COMP%]{position:absolute;width:80px;height:80px;inset:0;margin:auto;background-color:#0000004d;border-radius:50%;z-index:1}.play-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-image:url(/img/dark-play-button.svg);background-repeat:no-repeat;background-position:center;background-size:contain;width:100%;height:100%;padding:0}
6.player-controls-container[_ngcontent-%COMP%]{height:52px;width:100%;opacity:0;transition:all .5s ease;position:absolute;bottom:0}.control-buttons-container[_ngcontent-%COMP%]{height:100%;display:flex;align-items:center;padding:14px;background-color:#0009}.player-container[_ngcontent-%COMP%] video[_ngcontent-%COMP%]{width:100%;height:100%}.video-container[_ngcontent-%COMP%]{height:100%} course-screen .video-container .video-js .vjs-big-play-button{display:none!important} .video-container .course-player-dimensions.vjs-fluid{height:100%!important;padding-top:0!important}.course-details-container[_ngcontent-%COMP%]{width:35%;min-width:400px;position:relative;color:#253658;display:flex;flex-direction:column;gap:16px;height:526px}.course-title-container[_ngcontent-%COMP%]{display:flex;align-items:center}.course-title-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:24px;font-family:Inter-Bold;margin-right:16px}.progress-badge-container[_ngcontent-%COMP%]{display:flex;align-items:center;background:#00abfe14;border-radius:40px;padding:6px 13px}.badge-icon-container[_ngcontent-%COMP%]{width:14px;height:20px;margin-right:8px}.badge-icon-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain;object-position:center}.course-progress[_ngcontent-%COMP%]{font-size:14px;font-family:Inter-SemiBold}.lesson-list-container[_ngcontent-%COMP%]{border:1px solid rgba(123,141,177,.6);border-radius:10px;position:relative;max-height:239px;height:100%;overflow-y:scroll;background:#fff}.lesson-list-container[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.lesson-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;padding:6px;font-size:14px;opacity:.7;cursor:pointer;font-family:Inter-SemiBold;border-radius:4px}.lesson-title-container[_ngcontent-%COMP%]{display:flex;align-items:flex-start;width:80%}.side-icon-container[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:8px;padding-top:2px}.side-icon-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{width:100%;height:100%;background-repeat:no-repeat;background-position:center;background-size:contain;display:block}.side-icon-container[_ngcontent-%COMP%] i.play[_ngcontent-%COMP%]{background-image:url(/img/play-side-icon.svg)}.side-icon-container[_ngcontent-%COMP%] i.pause[_ngcontent-%COMP%]{background-image:url(/img/lesson-pause-icon.svg)}.side-icon-container[_ngcontent-%COMP%] i.done[_ngcontent-%COMP%]{background-image:url(/img/thin-green-checkmark.svg)}.lesson-container.highlighted[_ngcontent-%COMP%]{opacity:1}.lesson-title[_ngcontent-%COMP%]{width:100%;font-family:Inter-SemiBold}.lesson-duration[_ngcontent-%COMP%]{font-family:Inter-SemiBold}.lesson-marker[_ngcontent-%COMP%]{position:absolute;width:100%;height:33px;background-color:#00abfe14;left:0;transition:top .5s ease}.support-title[_ngcontent-%COMP%]{font-size:16px}.support-member-card[_ngcontent-%COMP%]{margin-top:12px;border:1px solid rgba(123,141,177,.6);border-radius:10px;padding:12px;display:flex;justify-content:space-between;align-items:center;background:#fff}.support-member-details-container[_ngcontent-%COMP%]{display:flex;align-items:center;width:70%}.member-image-container[_ngcontent-%COMP%]{width:80px;height:80px;border-radius:50%;background:linear-gradient(270deg,#28b3f7 .65%,#506aff 99.35%);display:flex;justify-content:center;align-items:center}.member-image-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:80px;height:80px;border-radius:50%;aspect-ratio:1 / 1;padding:3px}.member-name[_ngcontent-%COMP%]{font-size:16px;font-family:Inter-SemiBold;width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.member-label[_ngcontent-%COMP%]{font-size:14px}.member-name-container[_ngcontent-%COMP%]{max-width:70%;padding-left:16px}.schedule-button-container[_ngcontent-%COMP%]{background:#00abfe;width:160px;height:44px;border-radius:10px;display:flex;justify-content:center;align-items:center}.schedule-button-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%;height:100%;color:#fff;font-size:16px;font-family:Inter-Bold}
6.lesson-end-overlay[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;z-index:2;background-color:#0000004d;display:flex;justify-content:center;align-items:center}.action-buttons-list-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.action-button-container[_ngcontent-%COMP%]{width:160px;height:44px;margin-bottom:4px;display:flex;justify-content:center;align-items:center} .action-button-container .next-lesson-button{background:#fff;border-radius:10px;font-size:14px;font-family:Inter-Bold;width:160px!important;height:44px!important} .action-button-container .next-lesson-button button{display:block!important;height:100%;padding:0;color:#253658!important} .action-button-container .watch-again-button{color:#fff;font-family:Inter-Bold;font-size:14px} .action-button-container action-button .watch-again-button .side-icon-container{margin-right:4px} course-screen .video-container .video-js .vjs-control-bar{background-color:transparent} course-screen .video-container .video-js .vjs-progress-control.vjs-control{position:absolute;width:100%;height:8px;bottom:52px;left:0;transition:all .2s ease;z-index:1} course-screen .video-container .video-js .vjs-control-bar{opacity:0} course-screen .player-container:hover .video-container .video-js .vjs-control-bar{opacity:1} course-screen .video-container .video-js .vjs-progress-holder.vjs-slider.vjs-slider-horizontal{position:absolute;width:100%;height:100%;top:0;border-radius:0 10px 10px 0;margin:0!important} course-screen .video-container .video-js .vjs-play-progress:before{display:none} course-screen .video-container .video-js .vjs-selectionbar-RS{background:transparent!important} course-screen .video-container .video-js .vjs-play-progress.vjs-slider-bar{background-color:#00abfe!important;z-index:1;border-radius:0 10px 10px 0} course-screen .video-container .video-js .vjs-control-bar .vjs-play-control, course-screen .video-container .video-js .vjs-volume-panel, course-screen .video-container .video-js .vjs-control-bar .vjs-remaining-time, course-screen .video-container .video-js .vjs-control-bar .vjs-fullscreen-control{display:none}.control-container[_ngcontent-%COMP%]{width:24px;height:24px;margin-right:25px;z-index:1}.control-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%;height:100%;padding:0}.control-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain;object-position:center}.control-container[_ngcontent-%COMP%]:last-child{position:absolute;right:0;margin-right:20px}.video-time-container[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;top:0;left:0;display:flex;justify-content:center;align-items:center}.video-time[_ngcontent-%COMP%]{color:#fff;font-size:14px;font-family:Inter-SemiBold}.platform-toogle-wrapper[_ngcontent-%COMP%]{width:277px;height:48px;border-radius:40px;border:1px solid rgba(123,141,177,.08);background:#fff;display:flex;padding:4px;justify-content:center;align-items:center}.platform-toogle-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:24px;height:24px}.platfrom-section[_ngcontent-%COMP%], .platfrom-section-active[_ngcontent-%COMP%]{border-radius:40px;display:flex;padding:8px 12px;justify-content:center;align-items:center;gap:6px;font-size:16px;font-weight:700;cursor:pointer;width:100%}.platfrom-section[_ngcontent-%COMP%]{color:#253658;background:#fff}.platfrom-section-active[_ngcontent-%COMP%]{background:#00abfe;color:#fff}[_nghost-%COMP%] .search-input-course{background-color:#7b8db114!important;opacity:1!important;border:unset!important}[_nghost-%COMP%] .search-input-course input{background-color:transparent!important;border:unset!important}@media only screen and (max-width: 1440px){.course-content-container[_ngcontent-%COMP%]{margin-top:40px}.all-courses-wrapper[_ngcontent-%COMP%]{width:100%;padding:20px 0 20px 20px}}@media only screen and (max-width: 1024px){.course-content-container[_ngcontent-%COMP%]{flex-direction:column;margin-top:12px}.all-courses-wrapper[_ngcontent-%COMP%]{padding:20px 0 20px 12px}.single-courses-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch} .single-courses-wrapper .more-courses .course-list-wrapper .navigation-buttons{display:none} .single-courses-wrapper .more-courses-single .course-list-wrapper .navigation-buttons{display:none} .all-courses-wrapper .video-list-wrapper .navigation-buttons{display:none}.player-container[_ngcontent-%COMP%]{width:100%;height:400px;margin:0}.course-details-container[_ngcontent-%COMP%]{width:100%;min-width:unset}.more-courses-single[_ngcontent-%COMP%]{margin-bottom:24px} .make-column .course-list-wrapper{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:20px;padding:20px}}@media only screen and (max-width: 549px){.course-title-container[_ngcontent-%COMP%]{justify-content:center}.course-title-container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:20px}.support-title[_ngcontent-%COMP%]{text-align:center}.control-container[_ngcontent-%COMP%]{width:18px;height:18px;margin-right:20px}
6.video-time[_ngcontent-%COMP%]{font-size:12px}}@media only screen and (max-width: 440px){.lesson-title[_ngcontent-%COMP%], .lesson-duration[_ngcontent-%COMP%]{font-size:12px}.support-title[_ngcontent-%COMP%]{font-size:14px}.support-member-card[_ngcontent-%COMP%]{flex-direction:column;justify-content:center}.support-member-details-container[_ngcontent-%COMP%]{flex-direction:column;width:100%}.member-image-container[_ngcontent-%COMP%]{margin:0 0 8px}.member-name-container[_ngcontent-%COMP%]{width:100%;text-align:center}.schedule-button-container[_ngcontent-%COMP%]{width:100%;margin:16px 4px 0}.control-container[_ngcontent-%COMP%]:last-child{position:unset;margin:0}.control-buttons-container[_ngcontent-%COMP%]{justify-content:flex-end}.video-time-container[_ngcontent-%COMP%]{justify-content:flex-start;margin-left:15px}} courses-dashboard .course-list-container{width:1024px;max-width:100%;margin:0 auto;padding-bottom:48px}@media only screen and (max-width: 768px){ courses-dashboard .course-card-container{margin-right:0!important}}"],data:{animation:[Qe("currentVideoAnimation",[Me(N.PLAYING,Ee({"background-color":"rgba(0, 171, 254, 0.12)",transform:"translateX(0)"})),Me(N.PAUSING,Ee({"background-color":"transparent",transform:"translateX(0)"})),ke(`${N.PLAYING} => ${N.PAUSING}`,Ie("500ms ease")),ke(`${N.PAUSING} => ${N.PLAYING}`,Ie("500ms ease"))])]}})}}return t})();function Ae(t){return{path:t,component:Pt,data:{title:"BIGVU Course"}}}var Fi=[Ae(""),Ae(`:${Ne}`),Ae(`:${Ne}/:${ht}`)];export{Ae as getRouteConfig,Fi as routes}; 7/**i18n:e059b5419240afef74436eb5a1887102ff8937e043a8d48b1423a03649476971*/ 8 9//# debugId=5a017142-d21f-58a0-bb92-e2d7ab9ff0c3
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.