PageSourceSearch

https://my.inlingua.com/chunk-H4W7UF32.js

js inlingua.com collected 2026-09-25 19:45:43 UTC 25,018 bytes, 1 lines download raw bytes

1import{a as k}from"./chunk-LVEAVSXH.js";import{a as Z}from"./chunk-KQX4QDJU.js";import{a as H,c as K}from"./chunk-OC6DZ67Y.js";import{a as L}from"./chunk-WKB2BRZX.js";import{a as T}from"./chunk-KFXBF62R.js";import"./chunk-M2OVI3RF.js";import{a as J}from"./chunk-P23FEAIQ.js";import{a as W}from"./chunk-2JOM76ZX.js";import{a as jt}from"./chunk-Q7TVCE7K.js";import"./chunk-YLZDFVMH.js";import"./chunk-YXLOBOYR.js";import{b as x}from"./chunk-OJQLWFJ6.js";import"./chunk-GAPB5K3S.js";import{b as z}from"./chunk-BETAK4EW.js";import{c as V}from"./chunk-JATT3JB4.js";import"./chunk-VBJ2ZKW5.js";import{a as $}from"./chunk-JUGVT4YZ.js";import{e as w,f as St,g as P}from"./chunk-I5UH42CE.js";import"./chunk-2PHWE3UM.js";import{a as q}from"./chunk-SS4X2GCB.js";import"./chunk-GX6JV27M.js";import"./chunk-UGN5MN7I.js";import"./chunk-EDB5E4ZO.js";import{g as bt,k as It,q as yt,r as wt,s as Pt,w as kt}from"./chunk-F6IMPORB.js";import{J as lt}from"./chunk-WD724WEO.js";import{Aa as pt,Ba as dt,Bb as U,Bd as R,Dc as F,I as A,Ic as g,Jc as h,Lc as b,Nb as l,Ob as r,Pb as j,Rb as D,Sb as E,Tb as v,Ub as p,Vb as d,Vc as B,Wb as f,Xb as O,Yb as G,_b as ht,bc as vt,cc as _,g as ot,ga as M,ha as N,ia as gt,kb as o,md as y,n as at,oc as s,pc as ct,qb as m,qc as c,rc as S,uc as xt,vc as Lt,wb as I,wc as Tt}from"./chunk-S4ULIUOP.js";var Dt=(()=>{class t{constructor(e,n,a){if(this.vlApi=e,this._router=n,this.route=a,this.destroy$=new at,window.location.href.indexOf("course-group")>0)throw new Error("unaccesible from course group")}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngOnInit(){this.route.parent.parent.params.pipe(gt(this.destroy$)).subscribe(e=>{let n;if(window.location.href.indexOf("my-courses")!==-1){let a=window.location.href.indexOf("my-courses/t/all")!==-1;n="/my-courses/t/"+(e.courseGroupId?"/"+e.courseGroupId:a?"all":"individual")}else n="/t";this.menuLinks=[{title:"detail.menu.upcoming",routerLink:n+"/lessons/upcoming"},{title:"detail.menu.not scheduled",routerLink:n+"/lessons/not-scheduled"},{title:"detail.menu.passed",routerLink:n+"/lessons/passed"},{title:"detail.menu.cancelled",routerLink:n+"/lessons/cancelled"}]})}static{this.\u0275fac=function(n){return new(n||t)(m(k),m(P),m(w))}}static{this.\u0275cmp=I({type:t,selectors:[["ng-component"]],decls:6,vars:2,consts:[[1,"bg-white"],[1,"container-xxl","pt-3","pb-1"],[1,"d-flex","align-items-end","justify-content-between"],[3,"isSecondary","menuLinks"],[1,"container-xxl","mt-4","mt-md-8"]],template:function(n,a){n&1&&(p(0,"div",0)(1,"div",1)(2,"div",2),f(3,"app-ui-detail-menu",3),d()()(),p(4,"div",4),f(5,"router-outlet"),d()),n&2&&(o(3),v("isSecondary",!0)("menuLinks",a.menuLinks))},dependencies:[y,St,jt],encapsulation:2})}}return t})();var tt=ot(lt());function Ut(t,i){t&1&&f(0,"app-list-empty")}function Ot(t,i){t&1&&(p(0,"div",0),f(1,"app-paginator-size",11)(2,"app-paginator",12),d())}function Gt(t,i){t&1&&(p(0,"div",1)(1,"div",13),f(2,"app-paginator-size"),d(),f(3,"app-paginator"),d())}function Ft(t,i){if(t&1&&(p(0,"div",14),f(1,"app-mediafile-image",15),d()),t&2){let e=i.item;o(),v("instance",e.image)}}function Bt(t,i){t&1&&(s(0),g(1,"translate")),t&2&&c(" ",h(1,1,"virtual-lesson.player.one to one title")," ")}function Rt(t,i){if(t&1&&(s(0),g(1,"translatable")),t&2){let e=_().item;c(" ",b(1,1,e.title,null,e.mainLanguage)," ")}}function $t(t,i){if(t&1&&(p(0,"div",16),s(1),g(2,"translatable"),d()),t&2){let e=_().item;o(),c(" ",b(2,1,e.courseGroup.title,null,e.courseGroup.mainLanguage)," ")}}function Vt(t,i){if(t&1&&(l(0,Bt,2,3),l(1,Rt,2,5),l(2,$t,3,5,"div",16)),t&2){let e=i.item;r(e.isIndividual?0:-1),o(),r(e.isIndividual?-1:1),o(),r(e.courseGroup?2:-1)}}function zt(t,i){t&1&&(p(0,"span"),s(1,", "),d())}function Wt(t,i){if(t&1&&(s(0),l(1,zt,2,0,"span")),t&2){let e=i.$implicit,n=i.$index,a=i.$count;S(" ",e.firstName," ",e.lastName," "),o(),r(n!==a-1?1:-1)}}function Ht(t,i){if(t&1&&D(0,Wt,2,3,null,null,j),t&2){let e=_().item;E(e.presenters)}}function Kt(t,i){if(t&1&&s(0),t&2){let e=_().item;c(" ",e.presenters.length," ")}}function qt(t,i){if(t&1&&(l(0,Ht,2,0),l(1,Kt,1,1)),t&2){let e=i.item;r(e.presenters&&e.presenters.length&&e.presenters.length<=3?0:-1),o(),r(e.presenters&&e.presenters.length&&e.presenters.length>3?1:-1)}}function Jt(t,i){if(t&1&&s(0),t&2){let e=_().item;S(" ",e.attendees[0].firstName," ",e.attendees[0].lastName," ")}}function Qt(t,i){if(t&1&&(O(0),s(1),G()),t&2){let e=_().item;o(),c(" ",e.numAttendees," ")}}function Xt(t,i){if(t&1&&(l(0,Jt,1,2),l(1,Qt,2,1,"ng-container")),t&2){let e=i.item;r(e.numAttendees===1?0:-1),o(),r(e.numAttendees!==1?1:-1)}}function Yt(t,i){if(t&1&&(s(0),g(1,"mdatetime")),t&2){let e=i.item;c(" ",h(1,1,e.startDate)," ")}}function Zt(t,i){if(t&1&&(s(0),g(1,"mdatetime")),t&2){let e=i.item;c(" ",h(1,1,e.endDate)," ")}}function te(t,i){if(t&1&&s(0),t&2){let e=i.item;c(" ",e.duration," ")}}function ee(t,i){t&1&&(p(0,"div",10),f(1,"app-paginator"),d())}function ie(t,i){if(t&1&&(l(0,Ot,3,0,"div",0),l(1,Gt,4,0,"div",1),p(2,"app-list-table",2),U(3,Ft,2,1,"ng-template",3)(4,Vt,3,3,"ng-template",4)(5,qt,2,2,"ng-template",5)(6,Xt,2,2,"ng-template",6)(7,Yt,2,3,"ng-template",7)(8,Zt,2,3,"ng-template",8)(9,te,1,1,"ng-template",9),d(),l(10,ee,2,0,"div",10)),t&2){let e=_();r(e.virtualLessons.length?0:-1),o(),r(e.virtualLessons.length?1:-1),o(),v("stickyHead",!0)("items",e.virtualLessons),o(8),r(e.virtualLessons.length?10:-1)}}var Et=(()=>{class t{constructor(e,n,a,u,C,Q,X,Y){this.cdr=e,this.paginator=n,this.sort=a,this.tableSrv=u,this.router=C,this.route=Q,this.vlApi=X,this.loggedUserSrv=Y,this.virtualLessons=[],this.total=0}ngOnInit(){this.sort.setDefault("updatedAt"),this.sort.onChange.subscribe(()=>{this.paginator.setPage(1,!0)}),this.tableSrv.setId("virtual-lesson-presenter-cancelled").onRowClick(e=>this.onRowClick(e)).addColumn({id:"image"}).addColumn({id:"title",title:"list.label.title",sortingKey:"title",breakLines:!0}).addColumn({id:"startDate",title:"list.label.start date",sortingKey:"startDate"}).addColumn({id:"endDate",title:"list.label.end date"}).addColumn({id:"duration",title:"list.label.duration"}).addColumn({id:"presenters",title:"list.label.presenters"}).addColumn({id:"numAttendees",title:"list.label.attendees"}).init()}onRowClick(e){let n=(0,tt.map)(e.presenters,C=>C._id||C),a=(0,tt.map)(e.guests,C=>C._id||C);(0,tt.includes)(n,this.loggedUserSrv._id)||(0,tt.includes)(a,this.loggedUserSrv._id)?this.router.navigate([e._id],{relativeTo:this.route}):this.router.navigate(["att",e._id],{relativeTo:this.route})}
1ngAfterViewInit(){let e=this.route.snapshot.parent.parent.parent.params.courseGroupId,n=window.location.href.indexOf("individual")!==-1,a=window.location.href.indexOf("my-courses/t/all")!==-1;A(this.paginator.onChange,this.sort.onChange).pipe(M({}),N(()=>this.vlApi.presenterSearch({limit:this.paginator.pageSize,skip:this.paginator.skip,sort:this.sort.currentSort,extra:{courseGroupId:e,individual:n,all:a},filters:[{name:"inStatus",value:["cancelled"]}]}))).subscribe(u=>{this.paginator.total=u.count,this.total=u.count,this.virtualLessons=u.items,this.showEmpty=this.total===0,this.cdr.detectChanges()})}static{this.\u0275fac=function(n){return new(n||t)(m(B),m(x),m(T),m(L),m(P),m(w),m(k),m($))}}static{this.\u0275cmp=I({type:t,selectors:[["list-cancelled"]],features:[F([x,T,L])],decls:2,vars:1,consts:[[1,"d-flex","flex-column","flex-md-row","justify-content-between","align-items-md-center","mb-6"],[1,"d-flex","d-md-none","flex-column","flex-sm-row","align-items-center","justify-content-between","my-6","px-md-0"],[3,"stickyHead","items"],["appTableColumn","image"],["appTableColumn","title"],["appTableColumn","presenters"],["appTableColumn","numAttendees"],["appTableColumn","startDate"],["appTableColumn","endDate"],["appTableColumn","duration"],[1,"d-flex","justify-content-center","mt-2"],[1,"d-none","d-md-block","order-md-0"],[1,"d-none","d-md-block","order-md-4"],[1,"d-flex","gap-3"],[1,"image"],[3,"instance"],[1,"text-xs"]],template:function(n,a){n&1&&l(0,Ut,1,0,"app-list-empty")(1,ie,11,5),n&2&&r(a.showEmpty?0:1)},dependencies:[y,R,V,K,H,W,J,q,Z,z],styles:[".image[_ngcontent-%COMP%]{width:60px}"]})}}return t})();var et=ot(lt());function ne(t,i){t&1&&f(0,"app-list-empty")}function oe(t,i){t&1&&f(0,"app-paginator-size",15)(1,"app-paginator",16)}function ae(t,i){if(t&1&&(p(0,"option",4),s(1),g(2,"translate"),d()),t&2){let e=i.$implicit;v("ngValue",e),o(),ct(h(2,2,"virtual lesson.status."+e))}}function le(t,i){if(t&1&&(p(0,"div",17),f(1,"app-mediafile-image",18),d()),t&2){let e=i.item;o(),v("instance",e.image)}}function re(t,i){t&1&&(s(0),g(1,"translate")),t&2&&c(" ",h(1,1,"virtual-lesson.player.one to one title")," ")}function se(t,i){if(t&1&&(s(0),g(1,"translatable")),t&2){let e=_().item;c(" ",b(1,1,e.title,null,e.mainLanguage)," ")}}function me(t,i){if(t&1&&(p(0,"div",19),s(1),g(2,"translatable"),d()),t&2){let e=_().item;o(),c(" ",b(2,1,e.courseGroup.title,null,e.courseGroup.mainLanguage)," ")}}function pe(t,i){if(t&1&&(l(0,re,2,3),l(1,se,2,5),l(2,me,3,5,"div",19)),t&2){let e=i.item;r(e.isIndividual?0:-1),o(),r(e.isIndividual?-1:1),o(),r(e.courseGroup?2:-1)}}function de(t,i){if(t&1&&(s(0),g(1,"translate")),t&2){let e=i.item;c(" ",h(1,1,"virtual lesson.status."+e.status)," ")}}function ce(t,i){t&1&&(p(0,"span"),s(1,", "),d())}function _e(t,i){if(t&1&&(s(0),l(1,ce,2,0,"span")),t&2){let e=i.$implicit,n=i.$index,a=i.$count;S(" ",e.firstName," ",e.lastName," "),o(),r(n!==a-1?1:-1)}}function ue(t,i){if(t&1&&D(0,_e,2,3,null,null,j),t&2){let e=_().item;E(e.presenters)}}function Ce(t,i){if(t&1&&s(0),t&2){let e=_().item;c(" ",e.presenters.length," ")}}function fe(t,i){if(t&1&&(l(0,ue,2,0),l(1,Ce,1,1)),t&2){let e=i.item;r(e.presenters&&e.presenters.length&&e.presenters.length<=3?0:-1),o(),r(e.presenters&&e.presenters.length&&e.presenters.length>3?1:-1)}}function ge(t,i){if(t&1&&s(0),t&2){let e=_().item;S(" ",e.attendees[0].firstName," ",e.attendees[0].lastName," ")}}function he(t,i){if(t&1&&(O(0),s(1),G()),t&2){let e=_().item;o(),c(" ",e.numAttendees," ")}}function ve(t,i){if(t&1&&(l(0,ge,1,2),l(1,he,2,1,"ng-container")),t&2){let e=i.item;r(e.numAttendees===1?0:-1),o(),r(e.numAttendees!==1?1:-1)}}function xe(t,i){if(t&1&&(s(0),g(1,"mdatetime")),t&2){let e=i.item;c(" ",h(1,1,e.startDate)," ")}}function Le(t,i){if(t&1&&(s(0),g(1,"mdatetime")),t&2){let e=i.item;c(" ",h(1,1,e.endDate)," ")}}function Te(t,i){if(t&1&&s(0),t&2){let e=i.item;c(" ",e.duration," ")}}function Se(t,i){t&1&&(p(0,"div",14),f(1,"app-paginator"),d())}function be(t,i){if(t&1){let e=ht();p(0,"div",0),l(1,oe,2,0),p(2,"div",1)(3,"span",2),s(4),g(5,"translate"),d(),p(6,"select",3),Tt("ngModelChange",function(a){pt(e);let u=_();return Lt(u.statusFilterValue,a)||(u.statusFilterValue=a),dt(a)}),vt("ngModelChange",function(){pt(e);let a=_();return dt(a.statusFilter$.next())}),f(7,"option",4),D(8,ae,3,4,"option",4,j),d()()(),p(10,"app-list-table",5),U(11,le,2,1,"ng-template",6)(12,pe,3,3,"ng-template",7)(13,de,2,3,"ng-template",8)(14,fe,2,2,"ng-template",9)(15,ve,2,2,"ng-template",10)(16,xe,2,3,"ng-template",11)(17,Le,2,3,"ng-template",12)(18,Te,1,1,"ng-template",13),d(),l(19,Se,2,0,"div",14)}if(t&2){let e=_();o(),r(e.virtualLessons.length?1:-1),o(3),ct(h(5,7,"label.status")),o(2),xt("ngModel",e.statusFilterValue),o(),v("ngValue",null),o(),E(e.statusOptions),o(2),v("stickyHead",!0)("items",e.virtualLessons),o(9),r(e.virtualLessons.length?19:-1)}}var At=(()=>{class t{constructor(e,n,a,u,C,Q,X,Y){this.cdr=e,this.paginator=n,this.sort=a,this.tableSrv=u,this.router=C,this.route=Q,this.vlApi=X,this.loggedUserSrv=Y,this.virtualLessons=[],this.total=0,this.statusFilter$=new at,this.statusOptions=["concluded","not_opened","closed"]}ngOnInit(){this.sort.setDefault("updatedAt"),this.sort.onChange.subscribe(()=>{this.paginator.setPage(1,!0)}),this.tableSrv.setId("virtual-lesson-presenter-passed").onRowClick(e=>this.onRowClick(e)).addColumn({id:"image"}).addColumn({id:"title",title:"list.label.title",sortingKey:"title",breakLines:!0}).addColumn({id:"startDate",title:"list.label.start date",sortingKey:"startDate"}).addColumn({id:"endDate",title:"list.label.end date"}).addColumn({id:"duration",title:"list.label.duration"}).addColumn({id:"presenters",title:"list.label.presenters"}).addColumn({id:"status",title:"list.label.status"}).addColumn({id:"numAttendees",title:"list.label.attendees"}).init()}onRowClick(e){let n=(0,et.map)(e.presenters,C=>C._id||C),a=(0,et.map)(e.guests,C=>C._id||C);(0,et.includes)(n,this.loggedUserSrv._id)||(0,et.includes)(a,this.loggedUserSrv._id)?this.router.navigate([e._id],{relativeTo:this.route}):this.router.navigate(["att",e._id],{relativeTo:this.route})}
1ngAfterViewInit(){let e=this.route.snapshot.parent.parent.parent.params.courseGroupId,n=window.location.href.indexOf("individual")!==-1,a=window.location.href.indexOf("my-courses/t/all")!==-1;A(this.paginator.onChange,this.sort.onChange,this.statusFilter$).pipe(M({}),N(()=>{let u=this.statusFilterValue?[this.statusFilterValue]:this.statusOptions;return this.vlApi.presenterSearch({limit:this.paginator.pageSize,skip:this.paginator.skip,sort:this.sort.currentSort,filters:[{name:"inStatus",value:u}],extra:{courseGroupId:e,individual:n,all:a}})})).subscribe(u=>{this.paginator.total=u.count,this.total=u.count,this.virtualLessons=u.items,this.showEmpty=this.total===0&&!this.statusFilterValue,this.cdr.detectChanges()})}static{this.\u0275fac=function(n){return new(n||t)(m(B),m(x),m(T),m(L),m(P),m(w),m(k),m($))}}static{this.\u0275cmp=I({type:t,selectors:[["list-passed"]],features:[F([x,T,L])],decls:2,vars:1,consts:[[1,"d-flex","flex-column","flex-sm-row","justify-content-between","align-items-center","flex-wrap","mb-6","gap-3"],[1,"d-flex","gap-2","align-items-center","order-1"],[1,"text-md"],[1,"form-select","w-100","w-sm-auto","rounded-0",3,"ngModelChange","ngModel"],[3,"ngValue"],[3,"stickyHead","items"],["appTableColumn","image"],["appTableColumn","title"],["appTableColumn","status"],["appTableColumn","presenters"],["appTableColumn","numAttendees"],["appTableColumn","startDate"],["appTableColumn","endDate"],["appTableColumn","duration"],[1,"d-flex","justify-content-center","mt-2"],[1,"order-0"],[1,"order-2"],[1,"image"],[3,"instance"],[1,"text-xs"]],template:function(n,a){n&1&&l(0,ne,1,0,"app-list-empty")(1,be,20,9),n&2&&r(a.showEmpty?0:1)},dependencies:[y,kt,wt,Pt,yt,bt,It,R,V,K,H,W,J,q,Z,z],styles:[".image[_ngcontent-%COMP%]{width:60px}"]})}}return t})();var it=ot(lt());function Ie(t,i){t&1&&f(0,"app-list-empty")}function ye(t,i){t&1&&(p(0,"div",0),f(1,"app-paginator-size",11)(2,"app-paginator",12),d())}function we(t,i){t&1&&(p(0,"div",1),f(1,"app-paginator-size")(2,"app-paginator"),d())}function Pe(t,i){if(t&1&&(p(0,"div",13),f(1,"app-mediafile-image",14),d()),t&2){let e=i.item;o(),v("instance",e.image)}}function ke(t,i){t&1&&(s(0),g(1,"translate")),t&2&&c(" ",h(1,1,"virtual-lesson.player.one to one title")," ")}function je(t,i){if(t&1&&(s(0),g(1,"translatable")),t&2){let e=_().item;c(" ",b(1,1,e.title,null,e.mainLanguage)," ")}}function De(t,i){if(t&1&&(p(0,"div",15),s(1),g(2,"translatable"),d()),t&2){let e=_().item;o(),c(" ",b(2,1,e.courseGroup.title,null,e.courseGroup.mainLanguage)," ")}}function Ee(t,i){if(t&1&&(l(0,ke,2,3),l(1,je,2,5),l(2,De,3,5,"div",15)),t&2){let e=i.item;r(e.isIndividual?0:-1),o(),r(e.isIndividual?-1:1),o(),r(e.courseGroup?2:-1)}}function Ae(t,i){t&1&&(p(0,"span"),s(1,", "),d())}function Me(t,i){if(t&1&&(s(0),l(1,Ae,2,0,"span")),t&2){let e=i.$implicit,n=i.$index,a=i.$count;S(" ",e.firstName," ",e.lastName," "),o(),r(n!==a-1?1:-1)}}function Ne(t,i){if(t&1&&D(0,Me,2,3,null,null,j),t&2){let e=_().item;E(e.presenters)}}function Ue(t,i){if(t&1&&s(0),t&2){let e=_().item;c(" ",e.presenters.length," ")}}function Oe(t,i){if(t&1&&(l(0,Ne,2,0),l(1,Ue,1,1)),t&2){let e=i.item;r(e.presenters&&e.presenters.length&&e.presenters.length<=3?0:-1),o(),r(e.presenters&&e.presenters.length&&e.presenters.length>3?1:-1)}}function Ge(t,i){if(t&1&&s(0),t&2){let e=_().item;S(" ",e.attendees[0].firstName," ",e.attendees[0].lastName," ")}}function Fe(t,i){if(t&1&&(O(0),s(1),G()),t&2){let e=_().item;o(),c(" ",e.numAttendees," ")}}function Be(t,i){if(t&1&&(l(0,Ge,1,2),l(1,Fe,2,1,"ng-container")),t&2){let e=i.item;r(e.numAttendees===1?0:-1),o(),r(e.numAttendees!==1?1:-1)}}function Re(t,i){if(t&1&&(s(0),g(1,"mdatetime")),t&2){let e=i.item;c(" ",h(1,1,e.startDate)," ")}}function $e(t,i){if(t&1&&(s(0),g(1,"mdatetime")),t&2){let e=i.item;c(" ",h(1,1,e.endDate)," ")}}function Ve(t,i){if(t&1&&s(0),t&2){let e=i.item;c(" ",e.duration," ")}}function ze(t,i){t&1&&(p(0,"div",10),f(1,"app-paginator"),d())}function We(t,i){if(t&1&&(l(0,ye,3,0,"div",0),l(1,we,3,0,"div",1),p(2,"app-list-table",2),U(3,Pe,2,1,"ng-template",3)(4,Ee,3,3,"ng-template",4)(5,Oe,2,2,"ng-template",5)(6,Be,2,2,"ng-template",6)(7,Re,2,3,"ng-template",7)(8,$e,2,3,"ng-template",8)(9,Ve,1,1,"ng-template",9),d(),l(10,ze,2,0,"div",10)),t&2){let e=_();r(e.virtualLessons.length?0:-1),o(),r(e.virtualLessons.length?1:-1),o(),v("stickyHead",!0)("items",e.virtualLessons),o(8),r(e.virtualLessons.length?10:-1)}}var Mt=(()=>{class t{constructor(e,n,a,u,C,Q,X,Y){this.cdr=e,this.paginator=n,this.sort=a,this.tableSrv=u,this.router=C,this.route=Q,this.vlApi=X,this.loggedUserSrv=Y,this.virtualLessons=[],this.total=0}ngOnInit(){this.sort.setDefault("startDate",1),this.sort.onChange.subscribe(()=>{this.paginator.setPage(1,!0)}),this.tableSrv.setId("virtual-lesson-presenter-upcoming").onRowClick(e=>this.onRowClick(e)).addColumn({id:"image",minWidth:!0}).addColumn({id:"title",title:"list.label.title",sortingKey:"title",breakLines:!0}).addColumn({id:"startDate",title:"list.label.start date",sortingKey:"startDate"}).addColumn({id:"endDate",title:"list.label.end date"}).addColumn({id:"duration",title:"list.label.duration"}).addColumn({id:"presenters",title:"list.label.presenters"}).addColumn({id:"numAttendees",title:"list.label.attendees"}).init()}onRowClick(e){let n=(0,it.map)(e.presenters,C=>C._id||C),a=(0,it.map)(e.guests,C=>C._id||C);(0,it.includes)(n,this.loggedUserSrv._id)||(0,it.includes)(a,this.loggedUserSrv._id)?this.router.navigate([e._id],{relativeTo:this.route}):this.router.navigate(["att",e._id],{relativeTo:this.route})}
1ngAfterViewInit(){let e=this.route.snapshot.parent.parent.parent.params.courseGroupId,n=window.location.href.indexOf("individual")!==-1,a=window.location.href.indexOf("my-courses/t/all")!==-1;A(this.paginator.onChange,this.sort.onChange).pipe(M({}),N(()=>this.vlApi.presenterSearch({limit:this.paginator.pageSize,skip:this.paginator.skip,sort:this.sort.currentSort,extra:{courseGroupId:e,individual:n,all:a},filters:[{name:"inStatus",value:["pending","in_progress"]},{name:"noStartDate",value:!1}]}))).subscribe(u=>{this.paginator.total=u.count,this.total=u.count,this.virtualLessons=u.items,this.showEmpty=this.total===0,this.cdr.detectChanges()})}static{this.\u0275fac=function(n){return new(n||t)(m(B),m(x),m(T),m(L),m(P),m(w),m(k),m($))}}static{this.\u0275cmp=I({type:t,selectors:[["list-upcoming"]],features:[F([x,T,L])],decls:2,vars:1,consts:[[1,"d-none","d-md-flex","flex-column","flex-md-row","justify-content-between","align-items-md-center","mb-6"],[1,"d-flex","d-md-none","flex-column","flex-sm-row","align-items-center","justify-content-between","mb-6"],[3,"stickyHead","items"],["appTableColumn","image"],["appTableColumn","title"],["appTableColumn","presenters"],["appTableColumn","numAttendees"],["appTableColumn","startDate"],["appTableColumn","endDate"],["appTableColumn","duration"],[1,"d-flex","justify-content-center","mt-2"],[1,"order-md-0"],[1,"order-md-4"],[1,"image"],[3,"instance"],[1,"text-xs"]],template:function(n,a){n&1&&l(0,Ie,1,0,"app-list-empty")(1,We,11,5),n&2&&r(a.showEmpty?0:1)},dependencies:[y,R,V,K,H,W,J,q,Z,z],styles:[".image[_ngcontent-%COMP%]{width:60px}"]})}}return t})();var nt=ot(lt());
1function He(t,i){t&1&&f(0,"app-list-empty")}function Ke(t,i){t&1&&(p(0,"div",0),f(1,"app-paginator-size",9)(2,"app-paginator",10),d())}function qe(t,i){t&1&&(p(0,"div",1),f(1,"app-paginator-size")(2,"app-paginator"),d())}function Je(t,i){if(t&1&&(p(0,"div",11),f(1,"app-mediafile-image",12),d()),t&2){let e=i.item;o(),v("instance",e.image)}}function Qe(t,i){t&1&&(s(0),g(1,"translate")),t&2&&c(" ",h(1,1,"virtual-lesson.player.one to one title")," ")}function Xe(t,i){if(t&1&&(s(0),g(1,"translatable")),t&2){let e=_().item;c(" ",b(1,1,e.title,null,e.mainLanguage)," ")}}function Ye(t,i){if(t&1&&(p(0,"div",13),s(1),g(2,"translatable"),d()),t&2){let e=_().item;o(),c(" ",b(2,1,e.courseGroup.title,null,e.courseGroup.mainLanguage)," ")}}function Ze(t,i){if(t&1&&(l(0,Qe,2,3),l(1,Xe,2,5),l(2,Ye,3,5,"div",13)),t&2){let e=i.item;r(e.isIndividual?0:-1),o(),r(e.isIndividual?-1:1),o(),r(e.courseGroup?2:-1)}}function ti(t,i){t&1&&(p(0,"span"),s(1,", "),d())}function ei(t,i){if(t&1&&(s(0),l(1,ti,2,0,"span")),t&2){let e=i.$implicit,n=i.$index,a=i.$count;S(" ",e.firstName," ",e.lastName," "),o(),r(n!==a-1?1:-1)}}function ii(t,i){if(t&1&&D(0,ei,2,3,null,null,j),t&2){let e=_().item;E(e.presenters)}}function ni(t,i){if(t&1&&s(0),t&2){let e=_().item;c(" ",e.presenters.length," ")}}function oi(t,i){if(t&1&&(l(0,ii,2,0),l(1,ni,1,1)),t&2){let e=i.item;r(e.presenters&&e.presenters.length&&e.presenters.length<=3?0:-1),o(),r(e.presenters&&e.presenters.length&&e.presenters.length>3?1:-1)}}function ai(t,i){if(t&1&&s(0),t&2){let e=_().item;S(" ",e.attendees[0].firstName," ",e.attendees[0].lastName," ")}}function li(t,i){if(t&1&&(O(0),s(1),G()),t&2){let e=_().item;o(),c(" ",e.numAttendees," ")}}function ri(t,i){if(t&1&&(l(0,ai,1,2),l(1,li,2,1,"ng-container")),t&2){let e=i.item;r(e.numAttendees===1?0:-1),o(),r(e.numAttendees!==1?1:-1)}}function si(t,i){if(t&1&&s(0),t&2){let e=i.item;c(" ",e.duration," ")}}function mi(t,i){t&1&&(p(0,"div",8),f(1,"app-paginator"),d())}function pi(t,i){if(t&1&&(l(0,Ke,3,0,"div",0),l(1,qe,3,0,"div",1),p(2,"app-list-table",2),U(3,Je,2,1,"ng-template",3)(4,Ze,3,3,"ng-template",4)(5,oi,2,2,"ng-template",5)(6,ri,2,2,"ng-template",6)(7,si,1,1,"ng-template",7),d(),l(8,mi,2,0,"div",8)),t&2){let e=_();r(e.virtualLessons.length?0:-1),o(),r(e.virtualLessons.length?1:-1),o(),v("stickyHead",!0)("items",e.virtualLessons),o(6),r(e.virtualLessons.length?8:-1)}}var Nt=(()=>{class t{constructor(e,n,a,u,C,Q,X,Y){this.cdr=e,this.paginator=n,this.sort=a,this.tableSrv=u,this.router=C,this.route=Q,this.vlApi=X,this.loggedUserSrv=Y,this.virtualLessons=[],this.total=0}ngOnInit(){this.sort.setDefault("startDate",1),this.sort.onChange.subscribe(()=>{this.paginator.setPage(1,!0)}),this.tableSrv.setId("virtual-lesson-presenter-not-scheduled").onRowClick(e=>this.onRowClick(e)).addColumn({id:"image",minWidth:!0}).addColumn({id:"title",title:"list.label.title",sortingKey:"title",breakLines:!0}).addColumn({id:"duration",title:"list.label.duration"}).addColumn({id:"presenters",title:"list.label.presenters"}).addColumn({id:"numAttendees",title:"list.label.attendees"}).init()}onRowClick(e){let n=(0,nt.map)(e.presenters,C=>C._id||C),a=(0,nt.map)(e.guests,C=>C._id||C);(0,nt.includes)(n,this.loggedUserSrv._id)||(0,nt.includes)(a,this.loggedUserSrv._id)?this.router.navigate([e._id],{relativeTo:this.route}):this.router.navigate(["att",e._id],{relativeTo:this.route})}ngAfterViewInit(){let e=this.route.snapshot.parent.parent.parent.params.courseGroupId,n=window.location.href.indexOf("individual")!==-1,a=window.location.href.indexOf("my-courses/t/all")!==-1;A(this.paginator.onChange,this.sort.onChange).pipe(M({}),N(()=>this.vlApi.presenterSearch({limit:this.paginator.pageSize,skip:this.paginator.skip,sort:this.sort.currentSort,extra:{courseGroupId:e,individual:n,all:a},filters:[{name:"inStatus",value:["pending","in_progress"]},{name:"noStartDate",value:!0}]}))).subscribe(u=>{this.paginator.total=u.count,this.total=u.count,this.virtualLessons=u.items,this.showEmpty=this.total===0,this.cdr.detectChanges()})}static{this.\u0275fac=function(n){return new(n||t)(m(B),m(x),m(T),m(L),m(P),m(w),m(k),m($))}}static{this.\u0275cmp=I({type:t,selectors:[["list-not-scheduled"]],features:[F([x,T,L])],decls:2,vars:1,consts:[[1,"d-none","d-md-flex","flex-column","flex-md-row","justify-content-between","align-items-md-center","mb-6"],[1,"d-flex","d-md-none","flex-column","flex-sm-row","align-items-center","justify-content-between","mb-6"],[3,"stickyHead","items"],["appTableColumn","image"],["appTableColumn","title"],["appTableColumn","presenters"],["appTableColumn","numAttendees"],["appTableColumn","duration"],[1,"d-flex","justify-content-center","mt-2"],[1,"order-md-0"],[1,"order-md-4"],[1,"image"],[3,"instance"],[1,"text-xs"]],template:function(n,a){n&1&&l(0,He,1,0,"app-list-empty")(1,pi,9,5),n&2&&r(a.showEmpty?0:1)},dependencies:[y,R,V,K,H,W,J,q,z],styles:[".image[_ngcontent-%COMP%]{width:60px}"]})}}return t})();var di=[{path:"",component:Dt,children:[{path:"upcoming",component:Mt},{path:"not-scheduled",component:Nt},{path:"passed",component:At},{path:"cancelled",component:Et},{path:"",redirectTo:"upcoming",pathMatch:"full"}]}],jn=di;export{jn as default};

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.