1"use strict";(self.webpackChunkdashboard=self.webpackChunkdashboard||[]).push([["default-projects_go-modules_src_components_activity-view_activity-view_component_ts"],{48771(Mt,at,i){i.d(at,{T:()=>ut});var n=i(14799),c=i(76567),t=i(7313),S=i(37571),b=i(84989),tt=i(32224),V=i(32439),F=i(13058),z=i(67839),O=i(49705),r=i(45871),$=i(24122),G=i(45919),Y=i(76483),q=i(51832),Z=i(79808),et=i(93627),ot=i(37629),R=i(9e3);function K(L,lt){if(1&L){const dt=c.RV6();c.j41(0,"button",5),c.bIt("click",function(){G.eBV(dt);const X=c.XpG();return G.Njj(X.onStartActivity.emit())}),c.EFF(1),c.nI1(2,"translate"),c.k0s()}2&L&&(c.R7$(),c.JRh(c.bMT(2,1,"session-zero-state_start-activity")))}function H(L,lt){if(1&L){const dt=c.RV6();c.j41(0,"button",6),c.bIt("click",function(){G.eBV(dt);const X=c.XpG();return G.Njj(X.editActivity())}),c.EFF(1),c.nI1(2,"translate"),c.k0s()}2&L&&(c.R7$(),c.JRh(c.bMT(2,1,"activity-list_activity-options-menu-edit-activity")))}function Q(L,lt){if(1&L){const dt=c.RV6();c.j41(0,"button",7),c.bIt("click",function(){G.eBV(dt);const X=c.XpG();return G.Njj(X.manageUsers())}),c.EFF(1),c.nI1(2,"translate"),c.k0s()}2&L&&(c.R7$(),c.JRh(c.bMT(2,1,"course-menu_manage-users")))}function ht(L,lt){if(1&L){const dt=c.RV6();c.j41(0,"button",8),c.bIt("click",function(){G.eBV(dt);const X=c.XpG();return G.Njj(X.openInviteModal())}),c.EFF(1),c.nI1(2,"translate"),c.k0s()}2&L&&(c.R7$(),c.JRh(c.bMT(2,1,"common_invite")))}function gt(L,lt){if(1&L){const dt=c.RV6();c.j41(0,"button",9),c.bIt("click",function(){G.eBV(dt);const X=c.XpG();return G.Njj(X.viewInstructions.emit())}),c.EFF(1),c.nI1(2,"translate"),c.k0s()}2&L&&(c.R7$(),c.JRh(c.bMT(2,1,"session-zero-state_view_instructions")))}let ut=(()=>{var L;class lt{constructor(W,X,D,nt,w,k,U,v,I,g){this.ngxGoToastService=W,this.folderListDataSource=X,this.ngxActivityService=D,this.activityListDataSource=nt,this.cd=w,this.dialog=k,this.translate=U,this.selectedService=v,this.userService=I,this.groupSettingsPanel=g,this.onStartActivity=new c.bkB,this.viewInstructions=new c.bkB}ngOnInit(){this.environmentVarsService=V.N.getInstance();const W=this.environmentVarsService.get(V.N.VAR.ENVIRONMENT)||{};this.limitActivityEditor=W.name===F.j.LTI&&W.mode===F.d.DEFAULT}openInviteModal(){r.N.open(this.dialog,{data:{group:this.selectedService.getGroup()}})}editActivity(){const W=this.selectedService.getActivity();if(this.ngxActivityService.canEditActivity(W)){const X=W.owner_name,D=!this.ngxActivityService.shouldUseActivityPreviewEditorDialog(W);this.ngxActivityService.openActivityEditor(W,this.limitActivityEditor).then(()=>{W.owner_name=X,D&&this.ngxGoToastService.createToast({type:z.A.SUCCESS,message:"folder-view_activity_updated"}),this.activityListDataSource.editActivity(n.copy(W)),this.cd.markForCheck()}).catch(n.noop)}else O.V.open(this.dialog,{data:{title:this.translate.instant("modal-modifying-assignment-disabled_title"),message:this.translate.instant("modal-modifying-assignment-disabled_message")}})}manageUsers(){const W=this.selectedService.getGroup();this.groupSettingsPanel.open(W,this.userService.currentUser,"users",{}).result.then(X=>{X&&this.folderListDataSource.editFolder(X)})}hasMenuAccess(){return this.selectedService.getGroup().hasInstructorRole(!0)||this.userService.currentUser.is_root_user}isLti(){return this.environmentVarsService.environmentIs(F.j.LTI)}canViewInstruction(){return this.selectedService.getActivity().hasRecordingInstructions()}static#t=L=()=>(this.\u0275fac=function(X){return new(X||lt)(c.rXU(Y.G),c.rXU(q.s3),c.rXU(Z.W),c.rXU(et.HN),c.rXU($.gRc),c.rXU(ot.bZ),c.rXU(t.c$),c.rXU(b.A),c.rXU(S.u),c.rXU(tt.T))},this.\u0275cmp=c.VBU({type:lt,selectors:[["activity-context-menu"]],inputs:{canStartActivity:"canStartActivity"},outputs:{onStartActivity:"onStartActivity",viewInstructions:"viewInstructions"},standalone:!1,features:[c.Jv_([t.D9])],decls:5,vars:5,consts:[["mat-menu-item","",1,"start-activity-btn"],["mat-menu-item","",1,"edit-activity-btn"],["mat-menu-item","",1,"manage-users-btn"],["mat-menu-item","",1,"invite-btn"],["mat-menu-item","",1,"view-instruction-btn"],["mat-menu-item","",1,"start-activity-btn",3,"click"],["mat-menu-item","",1,"edit-activity-btn",3,"click"],["mat-menu-item","",1,"manage-users-btn",3,"click"],["mat-menu-item","",1,"invite-btn",3,"click"],["mat-menu-item","",1,"view-instru
1ction-btn",3,"click"]],template:function(X,D){1&X&&(c.nVh(0,K,3,3,"button",0),c.nVh(1,H,3,3,"button",1),c.nVh(2,Q,3,3,"button",2),c.nVh(3,ht,3,3,"button",3),c.nVh(4,gt,3,3,"button",4)),2&X&&(c.vxM(D.canStartActivity?0:-1),c.R7$(),c.vxM(D.hasMenuAccess()?1:-1),c.R7$(),c.vxM(D.hasMenuAccess()&&!D.isLti()?2:-1),c.R7$(),c.vxM(D.hasMenuAccess()&&!D.isLti()?3:-1),c.R7$(),c.vxM(D.canViewInstruction()?4:-1))},dependencies:[R.fb,t.D9],encapsulation:2,changeDetection:0}))}return L(),lt})()},82759(Mt,at,i){i.d(at,{F:()=>Fe});var n=i(12299),e=i(14799),c=i(45919),t=i(76567),S=i(37571),b=i(84989),tt=i(70405),V=i(49138),F=i(52836),z=i(26236),O=i(8202),r=i(45607),$=i(84385),G=i(10275),Y=i(2734),q=i(36392),Z=i(32197),et=i(11917),ot=i(72037),R=i(35986),K=i(87341),H=i(42273),Q=i(40652),ht=i(18871),gt=i(33081),ut=i(23400),L=i(2302),lt=i(7918),dt=i(78862),W=i(42206),X=i(84943),D=i(22290),nt=i(64387),w=i(49705),k=i(4050),U=i(43965),v=i(90370),I=i(27695),g=i(15719),x=i(32439),y=i(13058),j=i(70995),st=i(55471),vt=i(45871),pt=i(61242),xt=i(3138),J=i(11733),mt=i(6619),Ot=i(67839),Rt=i(61453),Et=i(54546),At=i(24122),It=i(53081),Dt=i(59893),wt=i(57273),Vt=i(50521),$t=i(25507),kt=i(93627),Bt=i(51832),jt=i(42347),Gt=i(79808),Lt=i(76483),Ut=i(78791),Ft=i(37629),Xt=i(46202),yt=i(7313),Nt=i(87685),Kt=i(80093),Wt=i(6723),zt=i(70241);let Yt=(()=>{var h;class B{constructor(){this.nextRouteAnnouncementPoliteness=null,this.nextRouteFocusSelector=null}setNextRouteAnnouncementPoliteness(o){this.nextRouteAnnouncementPoliteness=o}consumeNextRouteAnnouncementPoliteness(){const o=this.nextRouteAnnouncementPoliteness;return this.nextRouteAnnouncementPoliteness=null,o}setNextRouteFocusSelector(o){this.nextRouteFocusSelector=o}peekNextRouteFocusSelector(){return this.nextRouteFocusSelector}consumeNextRouteFocusSelector(){const o=this.nextRouteFocusSelector;return this.nextRouteFocusSelector=null,o}static#t=h=()=>(this.\u0275fac=function(a){return new(a||B)},this.\u0275prov=c.jDH({token:B,factory:B.\u0275fac,providedIn:"root"}))}return h(),B})();var Ht=i(99002),Zt=i(81892),Pt=i(14557),Qt=i(70133),Jt=i(77451),d=i(36211),P=i(733),l=i(83894),C=i(7315),T=i(78646),A=i(84688),St=i(91708),ft=i(54185),qt=i(65195),te=i(30667),ee=i(79123),ne=i(75501),ae=i(28845),re=i(48771),ce=i(75553),s=i(44859),M=i(89842),m=i(50215),u=i(7370),E=i(33349),it=i(74669);const rt=["activityContainer"],ie=["activityTaskPane"],le=["leftPane"],de=["rightPane"],_e=h=>({date:h}),oe=h=>({"no-feedback-hold":h});function me(h,B){if(1&h){const _=t.RV6();t.j41(0,"ngx-banner",8),t.bIt("onBannerDismissed",function(){c.eBV(_);const a=t.XpG();return c.Njj(a.dismissBanner())}),t.j41(1,"span",9),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"span",10),t.EFF(5),t.nI1(6,"translate"),t.k0s()()}if(2&h){const _=t.XpG();t.Y8G("type",_.bannerType.Warning)("dismissable",!0),t.R7$(2),t.JRh(t.bMT(3,4,"activity-view_preview-banner_label")),t.R7$(3),t.JRh(t.bMT(6,6,"activity-view_preview-banner_message"))}}function ue(h,B){if(1&h&&(t.j41(0,"ngx-zero-state",5),t.nrm(1,"p",11)(2,"p",12),t.nI1(3,"date"),t.j41(4,"div",13),t.nrm(5,"img",14),t.k0s()()),2&h){const _=t.XpG();t.R7$(2),t.Y8G("translateParams",t.eq3(5,_e,t.i5U(3,2,_.getActivityAvailableAt(),"mediumDate"))),t.R7$(3),t.Y8G("src",_.activeBrandService.getImage("floating-astronaut.svg"),t.B4B)}}function se(h,B){if(1&h&&(t.j41(0,"ngx-zero-state",6)(1,"p",15),t.nrm(2,"span",16)(3,"span",17),t.k0s(),t.j41(4,"div",13),t.nrm(5,"img",14),t.k0s()()),2&h){const _=t.XpG();t.R7$(5),t.Y8G("src",_.activeBrandService.getImage("astronaut-astroid.svg"),t.B4B)}}function pe(h,B){if(1&h){const _=t.RV6();t.j41(0,"activity-navigation",23),t.bIt("navigationSelected",function(){c.eBV(_);const a=t.XpG(2);return c.Njj(a.onNavigationSelected())}),t.k0s()}}function ge(h,B){if(1&h){const _=t.RV6();t.nrm(0,"activity-task-overview"),t.j41(1,"activity-task-pane",24,2),t.bIt("taskSelected",function(){c.eBV(_);const a=t.XpG(2);return c.Njj(a.onTaskSelected())}),t.k0s()}if(2&h){const _=t.XpG(2);t.R7$(),t.Y8G("isEditMode",_.isEditMode)}}function ve(h,B){if(1&h){const _=t.RV6();t.j41(0,"pill-toggle",25),t.nI1(1,"async"),t.bIt("onOptionSelect",function(a){c.eBV(_);const p=t.XpG(2);return c.Njj(p.onOptionSelect(a))}),t.k0s()}if(2&h){const _=t.XpG(2);t.Y8G("options",_.pillToggleOptions)("selectedOption",t.bMT(1,2,_.selectedOption$))}}function Ce(h,B){if(1&h){const _=t.RV6();t.j41(0,"pill-toggle",25),t.nI1(1,"async"),t.bIt("onOptionSelect",function(a){c.eBV(_);const p=t.XpG(2);return c.Njj(p.onOptionSelect(a))}),t.k0s()}if(2&h){const _=t.XpG(2);t.Y8G("options",_.pillToggleOptions)("selectedOption",t.bMT(1,2,_.selectedOption$))}}function fe(h,B){if(1&h&&(t.j41(0,"div",26),t.nI1(1,"async"),t.nrm(2,"div",27),t.k0s()),2&h){const _=t.XpG(2);t.xc7("top",t.bMT(1,2,_.arrowPosition$),"px")}}function Se(h,B){if(1&h){const _=t.RV6();t.j41(0,"div",7)(1,"div",18,0),t.bIt("scroll",function(){c.eBV(_);const a=t.XpG();return c.Njj(a.onLeftPaneScroll())}),t.nVh(3,pe,1,0,"activity-navigation"),t.nI1(4,"async"),t.vZN(5,ge,3,1),t.nVh(6,ve,2,4,"pill-toggle",19),t.k0s(),t.j41(7,"div",20,1)(9,"router-outlet",21),t.bIt("activate",function(){c.eBV(_);const a=t.XpG();return c.Njj(a.onRouteActivate())}),t.k0s(),t.nVh(10,Ce,2,4,"pill-toggle",19),t.k0s(),t.nVh(11,fe,3,4,"div",22),t.nI1(12,"async"),t.k0s()}if(2&h){const _=t.XpG();t.R7$(3),t.vxM(t.bMT(4,4,_.selectedOption$)===_.TASK_VIEW_OPTIONS.OVERVIEW?3:5),t.R7$(3),t.vxM(_.hasReviewerRoleOrHigher()?6:-1),t.R7$(4),t.vxM(_.hasReviewerRoleOrHigher()?10:-1),t.R7$(),t.vxM(t.bMT(12,6,_.showArrow$)?11:-1)}}function Me(h,B){1&h&&t.nrm(0,"feedback-hold")}function xe(h,B){1&h&&(t.j41(0,"div",29),t.nrm(1,"loading",31),t.k0s()),2&h&&(t.R7$(),t.Y8G("width","70px")("height","70px"))}function be(h,B){if(1&h&&(t.j41(0,"mat-option",39),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&h){const _=B.$implicit,o=t.XpG(4);t.Y8G("value",_),t.R7$(),t.SpI(" ",t.bMT(2,2,o.scoreFilterTranslations[_])," ")}}function Te(h,B){if(1&h&&(t.j41(0,"div",34)(1,"mat-form-field",37)(2,"mat-label"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"mat-select",48),t.Z7z(6,be,3,4,"mat-option",39,t.fX1),t.k0s(),t.nrm(8,"mat-icon",40),t.k0s()()),2&h){const _=t.XpG(3);t.R7$(3),t.JRh(t.bMT(4,1,"common_filter-by")),t.R7$(3),t.Dyx(_.scoreOptions)}}function ye(h,B){if(1&h&&(t.j41(0,"mat-option",39),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&h){const _=B.$implicit,o=t.XpG(4);t.Y8G("value",_),t.R7$(),t.SpI(" ",t.bMT(2,2,o.minePeerTranslations[_])," ")}}function Pe(h,B){if(1&h&&(t.j41(0,"div",35)(1,"mat-form-field",37)(2,"mat-label"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"mat-select",49),t.Z7z(6,ye,3,4,"mat-option",39,t.fX1),t.k0s(),t.nrm(8,"mat-icon",40),t.k0s()()),2&h){const _=t.XpG(3);t.R7$(3),t.JRh(t.bMT(4,1,"common_filter-by")),t.R7$(3),t.Dyx(_.minePeerOptions)}}function Oe(h,B){if(1&h&&(t.j41(0,"mat-option",39),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&h){const _=B.$implicit,o=t.XpG(3);t.Y8G("value",_),t.R7$(),t.SpI(" ",t.bMT(2,2,o.sortOrderTranslations[_])," ")}}function Re(h,B){1&h&&t.nrm(0,"feedback-hold")}function Ee(h,B){if(1&h){const _=t.RV6();t.j41(0,"div",52)(1,"session-table",54),t.bIt("goToSession",function(a){c.eBV(_);const p=t.XpG(6);return c.Njj(p.openSession(a))}),t.k0s()()}}function Ae(h,B){if(1&h){const _=t.RV6();t.j41(0,"div",53)(1,"session-grid",55),t.bIt("openSession",function(a){c.eBV(_);const p=t.XpG(6);return c.Njj(p.openSession(a))}),t.k0s()()}}function Ie(h,B){if(1&h&&(t.nVh(0,Ee,2,0,"div",52),t.nVh(1,Ae,2,0,"div",53)),2&h){const _=t.XpG(3),o=t.XpG(2);t.vxM(_===o.views.LIST?0:-1),t.R7$(),t.vxM(_===o.views.GRID?1:-1)}}function De(h,B){1&h&&(t.j41(0,"ngx-zero-state",51),t.nrm(1,"p",56)(2,"p",57),t.k0s())}function we(h,B){if(1&h&&(t.nVh(0,Ie,2,2),t.nI1(1,"async"),t.vZN(2,De,3,0,"ngx-zero-state",51)),2&h){const _=t.XpG(4);t.vxM(!0!==t.bMT(1,1,_.shouldShowTestBailedView$)?0:2)}}function Ve(h,B){if(1&h){const _=t.RV6();t.j41(0,"session-zero-state",58),t.bIt("startActivity",function(){c.eBV(_);const a=t.XpG(4);return c.Njj(a.preStartActivity())})("viewInstructions",function(){c.eBV(_);const a=t.XpG(4);return c.Njj(a.viewInstructions())}),t.k0s()}}function $e(h,B){if(1&h){const _=t.RV6();t.j41(0,"menu")(1,"activity-context-menu",59),t.nI1(2,"async"),t.bIt("viewInstructions",function(){c.eBV(_);const a=t.XpG(4);return c.Njj(a.viewInstructions())})("onStartActivity",function(){c.eBV(_);const a=t.XpG(4);return c.Njj(a.preStartActivity())}),t.k0s()()}if(2&h){const _=t.XpG(4);t.R7$(),t.Y8G("canStartActivity",t.bMT(2,1,_.canStartActivity$$))}}function ke(h,B){if(1&h){const _=t.RV6();t.j41(0,"div",50),t.bIt("contextmenu",function(a){c.eBV(_);const p=t.XpG(3);return c.Njj(p.openMenu(a))}),t.nVh(1,we,3,3),t.nI1(2,"async"),t.vZN(3,Ve,1,0,"session-zero-state"),t.nVh(4,$e,3,3,"menu"),t.nI1(5,"async"),t.k0s()}if(2&h){let _;const o=t.XpG(3);t.R7$(),t.vxM((_=t.bMT(2,2,o.hasSessions$))?1:3,_),t.R7$(3),t.vxM(t.bMT(5,4,o.canStartActivity$$)&&!o.selectedService.getActivity().isConversationBoard()?4:-1)}}function Be(h,B){if(1&h){const _=t.RV6();t.j41(0,"button",65),t.bIt("click",function(){c.eBV(_);const a=t.XpG(4);return c.Njj(a.openInviteModal())}),t.EFF(1," common_invite "),t.k0s()}}function je(h,B){if(1&h){const _=t.RV6();t.j41(0,"span",64),t.nI1(1,"async"),t.nI1(2,"async"),t.nI1(3,"async"),t.nI1(4,"async"),t.j41(5,"button",66),t.nI1(6,"async"),t.nI1(7,"translate"),t.bIt("click",function(){c.eBV(_);const a=t.XpG(4);return c.Njj(a.preStartActivity())}),t.j41(8,"span",61),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.j41(11,"span",62),t.EFF(12),t.nI1(13,"translate"),t.k0s()()()}if(2&h){const _=t.XpG(4);t.Y8G("tabindex",t.bMT(1,8,_.canStartActivity$$)?-1:0)("matTooltip",t.bMT(2,10,_.getSessionCreationDisabledMessage$$))("matTooltipDisabled",t.bMT(3,12,_.canStartActivity$$)),t.BMQ("aria-disabled",!1===t.bMT(4,14,_.canStartActivity$$)),t.R7$(5),t.Y8G("disabled",!1===t.bMT(6,16,_.canStartActivity$$)),t.BMQ("aria-label",t.bMT(7,18,"session-zero-state_start-activity")),t.R7$(4),t.JRh(t.bMT(10,20,"session-zero-state_start-activity")),t.R7$(3),t.JRh(t.bMT(13,22,"session-zero-state_start-activity_shortened"))}}function Ge(h,B){if(1&h){const _=t.RV6();t.j41(0,"button",60),t.nI1(1,"translate"),t.bIt("click",function(){c.eBV(_);const a=t.XpG(3);return c.Njj(a.viewInstructions())}),t.j41(2,"span",61),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"span",62),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.nVh(8,Be,2,0,"button",63),t.nVh(9,je,14,24,"span",64)}if(2&h){const _=t.XpG(3);t.BMQ("aria-label",t.bMT(1,5,"session-zero-state_view_instructions")),t.R7$(3),t.JRh(t.bMT(4,7,"session-zero-state_view_instructions")),t.R7$(3),t.JRh(t.bMT(7,9,"session-zero-state_view_instructions_shortened")),t.R7$(2),t.vxM(_.canInvite()?8:-1),t.R7$(),t.vxM(_.selectedService.getActivity().isConversationBoard()?-1:9)}}function Le(h,B){if(1&h){const _=t.RV6();t.j41(0,"filter-view-layout",30,3)(2,"div",32)(3,"div",33),t.nVh(4,Te,9,3,"div",34),t.nVh(5,Pe,9,3,"div",35),t.j41(6,"div",36)(7,"mat-form-field",37)(8,"mat-label"),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.j41(11,"mat-select",38),t.Z7z(12,Oe,3,4,"mat-option",39,t.fX1),t.k0s(),t.nrm(14,"mat-icon",40),t.k0s()()(),t.j41(15,"div",41),t.nVh(16,Re,1,0,"feedback-hold"),t.nI1(17,"async"),t.j41(18,"div",42),t.nrm(19,"session-list-search-result-info")(20,"session-search"),t.k0s()()(),t.j41(21,"div",43)(22,"div",42),t.nrm(23,"session-list-search-result-info")(24,"session-search"),t.k0s(),t.nrm(25,"toggle-grid-list-view"),t.k0s(),t.nVh(26,ke,6,6,"div",44),t.j41(27,"div",45)(28,"data-source-zero-state",46),t.bIt("zeroStateChanged",function(a){c.eBV(_);const p=t.XpG(2);return c.Njj(p.zeroStateChanged(a))}),t.k0s()(),t.j41(29,"div",47),t.nVh(30,Ge,10,11),t.nI1(31,"async"),t.k0s()()}if(2&h){const _=t.XpG(2);t.R7$(2),t.Y8G("hidden",_.dataSourceZeroState.hasZeroState&&0!==_.dataSourceZeroState.errorCode),t.R7$(),t.Y8G("formGroup",_.form),t.R7$(),t.vxM(_.shouldShowScoreFilter()?4:-1),t.R7$(),t.vxM(_.shouldShowMinePeerFilter()?5:-1),t.R7$(4),t.JRh(t.bMT(10,14,"common_sort-by")),t.R7$(3),t.Dyx(_.sortByOptions),t.R7$(3),t.Y8G("ngClass",t.eq3(20,oe,!_.shouldShowFeedbackHold())),t.R7$(),t.vxM(t.bMT(17,16,_.activityLoaded$)&&_.shouldShowFeedbackHold()?16:-1),t.R7$(5),t.Y8G("ngClass",t.eq3(22,oe,_.selectedService.getGroup().hasPresenterRole()||!_.shouldShowFeedbackHold()))("hidden",_.dataSourceZeroState.hasZeroState),t.R7$(5),t.vxM(_.dataSourceZeroState.hasZeroState||_.dataSourceZeroState.isLoading?-1:26),t.R7$(),t.Y8G("hidden",!_.dataSourceZeroState.hasZeroState&&!_.dataSourceZeroState.isLoading),t.R7$(),t.Y8G("dataSource",_.sessionListDataSource),t.R7$(),t.Y8G("hidden",_.dataSourceZeroState.hasZeroState),t.R7$(),t.vxM(t.bMT(31,18,_.shouldShowFooterButtons$)?30:-1)}}function Ue(h,B){if(1&h&&(t.j41(0,"div",28),t.nVh(1,Me,1,0,"feedback-hold"),t.nI1(2,"async"),t.nrm(3,"session-list-search-result-info")(4,"session-search"),t.k0s(),t.nVh(5,xe,2,2,"div",29),t.nI1(6,"async"),t.nVh(7,Le,32,24,"filter-view-layout",30),t.nI1(8,"async")),2&h){let _;const o=t.XpG();t.R7$(),t.vxM(t.bMT(2,3,o.activityLoaded$)&&o.shouldShowFeedbackHold()?1:-1),t.R7$(4),t.vxM(!1===t.bMT(6,5,o.activityLoaded$)?5:-1),t.R7$(2),t.vxM((_=t.bMT(8,7,o.currentView$))?7:-1,_)}}var bt=function(h){return h.OVERVIEW="overview",h.PREVIEW="preview",h}(bt||{});let Fe=(()=>{var h;class B{get isEditMode(){return this.activityEditModeService.isEditMode()}constructor(o,a,p,f,N,_t,ct,Tt,Ct,he,Xe,Ne,Ke,We,ze,Ye,He,Ze,Qe,Je,qe,tn,en,nn,on,sn,an,rn,cn,ln,dn,_n,mn,un,hn,pn,gn,vn){this.sessionListDataSource=o,this.viewStateDataSource=a,this.ngxSe
1ssionService=p,this.ngxTaskService=f,this.routerService=N,this.injector=_t,this.activityEditModeService=ct,this.selectedService=Tt,this.$q=Ct,this.userService=he,this.Session=Xe,this.sessionCreationWizardService=Ne,this.activityModel=Ke,this.masquerade=We,this.activityListDataSource=ze,this.folderListDataSource=Ye,this.modal=He,this.ngxActivityService=Ze,this.ngxGoToastService=Qe,this.UADetect=Je,this.sessionStorage=qe,this.equipmentCheckModal=tn,this.MediaModel=en,this.activityInstructionsModal=nn,this.licenseExpirationHandler=on,this.dialog=sn,this.titleService=an,this.translate=rn,this.cdr=cn,this.promptsService=ln,this.featureFlag=dn,this.ngxLicenseUpgradeService=_n,this.route=mn,this.router=un,this.liveAnnouncer=hn,this.activityViewRouteA11yService=pn,this.activityPreviewEditorDialog=gn,this.activeBrandService=vn,this.responsiveLayout=(0,c.WQX)(Rt.cT),this.views=tt.V,this.sortByOptions=Object.values(V.Q).filter(Cn=>Cn!==V.Q.DEFAULT),this.sortOrderTranslations=V.x,this.scoreOptions=Object.values(F.l$),this.scoreFilterTranslations=F.XE,this.minePeerOptions=Object.values(z.E),this.minePeerTranslations=z.I,this.componentDestroyed$$=new O.B,this.dataSourceZeroState={isLoading:!0,hasZeroState:!1,errorCode:null},this.form=new L.gE({sortBy:new L.MJ(this.sessionListDataSource.getCurrentSort()),scoreFilter:new L.MJ(this.sessionListDataSource.getCurrentScoreFilter()),minePeerFilter:new L.MJ(this.sessionListDataSource.getCurrentMinePeerFilter())}),this.activityLoaded$=new r.t(!1),this.canStartActivity$$=new r.t(!1),this.get
1SessionCreationDisabledMessage$$=new r.t(""),this.showArrow$=new r.t(!1),this.arrowPosition$=new r.t(0),this.bannerType=xt.x,this.pillToggleOptions=[],this.selectedOption$=new r.t(""),this.TASK_VIEW_OPTIONS=bt,this.activityStarted$$=new r.t(!1),this.hasActivatedChildRoute=!1,this.lastRouteAnnouncement=null,this.environmentVarsService=x.N.getInstance()}isLti(){return this.environmentVarsService.environmentIs(y.j.LTI)}ngOnInit(){this.productTranslationParams=this.activeBrandService.getTranslationParams(),this.updatePageTitle(this.selectedService.getActivity()?.name),this.selectedService.selectedSubject.asObservable().pipe((0,$.T)(o=>o.activity?.name??null),(0,G.F)(),(0,Y.Q)(this.componentDestroyed$$)).subscribe(o=>this.updatePageTitle(o)),null===this.selectedService.getActivity()?this.activityListDataSource.connect().subscribe(o=>{const a=o.find(p=>Number(p.activity_id)===Number(this.routerService.getCurrentParams().activity_id));a?(this.selectedService.setActivity(a),this.setUp(),this.activityLoaded$.next(!0)):this.routerService.navigateTo(J.V2.DASHBOARD_FOLDER_VIEW,{folder_id:this.selectedService.getGroup().group_id})}):(this.activityLoaded$.next(!0),this.setUp()),this.pillToggleOptions=[{value:bt.OVERVIEW,label:this.translate.instant("activity-view_pill-overview"),class:"instructor-overview-pill"},{value:bt.PREVIEW,label:this.translate.instant("activity-view_pill-preview"),class:"activity-preview-pill"}],this.initRouteHandlers()}updatePageTitle(o){null!=o&&this.titleService.setTitle(this.translate.instant("document-title_dashboard",{name:o,product:this.productTranslationParams.product}))}initRouteHandlers(){const o=this.routerService.getCurrentRouteName(),a=this.routerService.getCurrentParams();this.route.queryParams.pipe((0,Y.Q)(this.componentDestroyed$$)).subscribe(f=>{const N="edit"===f.mode;if(this.isActivityPreviewEditorDialogEnabled())N&&(this.activityEditModeService.exitEditMode(),this.removeEditModeQueryParam());else if(N&&!this.activityEditModeService.isEditMode()){const _t=this.selectedService.getActivity();_t&&this.ngxTaskService.getTasks(_t.activity_id).pipe((0,q.s)(1)).subscribe(ct=>{const Tt=ct.map(Ct=>({...Ct,name:this.getTaskName(_t,Ct)}));this.activityEditModeService.enterEditMode(Tt)})}else!N&&this.activityEditModeService.isEditMode()&&this.activityEditModeService.exitEditMode()}),this.injector.get(mt.Ix).events.pipe((0,Z.p)(f=>f instanceof mt.wF),(0,Y.Q)(this.componentDestroyed$$)).subscribe(()=>{const f=this.routerService.getCurrentRouteName(),N=this.routerService.getCurrentParams();this.updatePillToggleForRoute(f,N),!this.shouldHandleRouteAnnouncementOnActivate(f)&&this.announceCurrentRoute(f,N)}),this.updatePillToggleForRoute(o,a)}updatePillToggleForRoute(o,a){(o===J.V2.DASHBOARD_ACTIVITY_TASK||o===J.V2.DASHBOARD_ACTIVITY_VIEW)&&sessionStorage.setItem("previousActivityRoute",JSON.stringify({routeName:o,params:a})),o===J.V2.DASHBOARD_ACTIVITY_TASK&&"evaluate"===a.type?this.selectedOption$.next(bt.OVERVIEW):o===J.V2.DASHBOARD_ACTIVITY_TASK&&a.type?this.selectedOption$.next(bt.PREVIEW):(o===J.V2.DASHBOARD_ACTIVITY_VIEW||o===J.V2.DASHBOARD_ACTIVITY_TASK_REPORT||o===J.V2.DASHBOARD_ACTIVITY_REPORT)&&this.selectedOption$.next(this.hasInstructorRole()?bt.OVERVIEW:bt.PREVIEW)}setUp(){this.currentView$=this.viewStateDataSource.viewState$,this.hasSessions$=this.sessionListDataSource.connect().pipe((0,$.T)(o=>o.length>0)),this.shouldShowTestBailedView$=(0,et.z)([this.sessionListDataSource.connect(),this.activityStarted$$]).pipe((0,$.T)(([o,a])=>this.selectedService.getActivity().has_single_recording_attempt&&this.selectedService.getGroup().hasPresenterRole()&&o.some(f=>!f.archived_at&&!f.started_at&&f.isOwner(this.userService.currentUser)&&f.hasViewedRecordingInstructions())&&!a)),this.shouldShowFooterButtons$=(0,et.z)({hasSessions:this.hasSessions$,isFiltered:this.sessionListDataSource.isFiltered$,shouldShowTestBailedView:this.shouldShowTestBailedView$}).pipe((0,$.T)(({hasSessions:o,isFiltered:a,shouldShowTestBailedView:p})=>(o||a)&&!p)),this.form.get("sortBy").valueChanges.pipe((0,Y.Q)(this.componentDestroyed$$)).subscribe(o=>this.sessionListDataSource.setSortBy(o)),this.form.get("scoreFilter").valueChanges.pipe((0,Y.Q)(this.componentDestroyed$$)).subscribe(o=>
1this.sessionListDataSource.setScoreFilter(o)),this.form.get("minePeerFilter").valueChanges.pipe((0,Y.Q)(this.componentDestroyed$$)).subscribe(o=>this.sessionListDataSource.setMinePeerFilter(o)),this.shouldShowMinePeerFilter()||this.form.get("minePeerFilter").setValue(z.E.ALL),!this.selectedService.getActivity().viewed_by_me&&!this.masquerade.isMasked()&&this.hasPresenterRole()&&this.activityModel.markAsViewed({activity_id:this.selectedService.getActivity().activity_id}).$promise.then(()=>{this.activityListDataSource.reloadStats(),this.folderListDataSource.reloadStats()}),this.getLicenseAndValidate(),this.promptsService.showTermsOrTourWhenRequired()}dismissBanner(){localStorage.setItem("activityTaskPreviewBanner","dismissed")}onOptionSelect(o){const a=this.selectedService.getActivity();if(!a)return;const p=this.selectedOption$.value;if(this.selectedOption$.next(o),o===bt.PREVIEW)this.ngxTaskService.getTasks(a.activity_id).pipe((0,q.s)(1)).subscribe(f=>{if(!f||0===f.length)return;const _t=this.ngxTaskService.getDefaultTasks(a).map(Ct=>Ct.type),ct=f.filter(Ct=>_t.includes(Ct.type)&&!Ct.deleted_at).sort((Ct,he)=>Ct.sort_order-he.sort_order),Tt=ct.find(Ct=>!Ct.completed)||ct[0]||f[0];if(Tt){const Ct=this.routerService.navigateTo(J.V2.DASHBOARD_ACTIVITY_TASK,{activity_id:a.activity_id,type:Tt.type});this.handleNavigationResult(Ct,p)}});else{const f=this.routerService.navigateTo(J.V2.DASHBOARD_ACTIVITY_TASK,{activity_id:a.activity_id,type:"evaluate",mode:null});this.handleNavigationResult(f,p)}}handleNavigationResult(o,a){o.then(p=>{!1===p&&this.selectedOption$.next(a)},()=>{this.selectedOption$.next(a)})}showPreviewBanner(){return this.ngxTaskService.shouldShowTasks()&&this.hasInstructorRole()&&this.selectedOption$.value===bt.PREVIEW&&null==localStorage.getItem("activityTaskPreviewBanner")}ngOnDestroy(){this.onBeforeHookDeregister&&this.onBeforeHookDeregister(),this.onSuccessHookDeregister&&this.onSuccessHookDeregister(),this.componentDestroyed$$.next(!0),this.componentDestroyed$$.complete(),this.canStartActivity$$.complete(),this.getSessionCreationDisabledMessage$$.complete()}hasReviewerRoleOrHigher(){return this.selectedService.getGroup().hasReviewerRole(!0)}hasPresenterRole(){return this.selectedService.getGroup().hasPresenterRole()}hasInstructorRole(){return this.selectedService.getGroup().hasInstructorRole(!0)}activityNotAvailable(){const o=st.utc(this.selectedService.getActivity().available_at),a=st.utc();return this.hasPresenterRole()&&o.isAfter(a)}getActivityAvailableAt(){return this.selectedService.getActivity().available_at}canInvite(){return!this.isLti()&&(this.hasInstructorRole()||this.userService.currentUser.is_root_user)}goToSession(o){this.selectedService.setSession(this.Session.model(o)),this.routerService.navigateTo(J.V2.DASHBOARD_SESSION_VIEW,{session_id:o.session_id})}openInviteModal(){vt.N.open(this.dialog,{data:{group:this.selectedService.getGroup()}})}preStartActivity(){const o=this.selectedService.getActivity();o.isCommentOnlySingleAttempt()?this.modal.open(j._,!1,{data:{currentActivity:o}}).afterClosed().subscribe(a=>{a&&this.startActivity()}):this.startActivity()}startActivity(){this.selectedService.setSession(null);const o=this.selectedService.getActivity(),a=this.selectedService.getGroup();return this.sessionCreationWizardService.start({activity:o,group:a,user:this.userService.currentUser,openRecordView:p=>(this.routerService.navigateTo(J.V2.DASHBOARD_SESSION_VIEW,{session_id:p.session_id},{queryParams:{feedbackMode:ut.FA.VIEW,viewMode:ut.k3.RECORD}}),this.$q.resolve())}).then(p=>{this.activityStarted$$.next(!0),p.viewed=!0;const f=this.Session.model(p);return this.selectedService.setSession(f),this.sessionListDataSource.addSession(f),this.hasPresenterRole()&&(this.activityListDataSource.reloadStats(),this.folderListDataSource.reloadStats(),this.selectedService.getActivity().has_single_recording_attempt&&this.getLicenseAndValidate()),(o.isCommentOnly()||o.isConversationBoard())&&this.goToSession(f),p}).catch(e.noop)}viewInstructions(){this.modal.open(gt.E)}shouldShowScoreFilter(){return this.hasReviewerRoleOrHigher()&&this.selectedService.getActivity().total_score>0}shouldShowMinePeerFilter(){const o=this.selectedService.getActivity();return this.hasPresenterRole()&&(o.peer_review||o.peer_rubric_critique_enabled)&&o.has_response_media}shouldShowFeedbackHold(){const o=this.selectedService.getActivity();return this.hasInstructorRole()&&o&&o.isViewable("is_feedback_published")}openSession(o){const a=this.selectedService.getActivity();
1return!o.isRecorded()&&a.isConversation()&&this.ngxSessionService.doesGroupSessionHaveMaxPresenterCount(o)?this.showSessionFullModal():!a.isSingleAttempt()||a.isCommentOnly()||o.media?void this.enterSession(o):this.showFailedSingleAttemptModal()}showFailedSingleAttemptModal(){w.V.open(this.dialog,{data:{title:this.translate.instant("single-attempt-activity_no-recording"),message:this.translate.instant("feedback-session-failed-single-attempt")}})}enterSession(o){const a=this.selectedService.getActivity();a.isMulticamLiveReview()&&!o.isPosted()?o.hasMaxPresenterCount(a)?this.goToSession(o):this.confirmParticipation(o):a.isLiveSessionEnabled()&&!a.isConversation()&&o.isAwaitingStart()&&this.mayStart(o)?this.confirmParticipation(o,!0):!a.isConversation()||this.ngxSessionService.doesGroupSessionHaveMaxPresenterCount(o)||o.isRecorded()?this.goToSession(o):this.checkEquipment(o)}zeroStateChanged(o){this.dataSourceZeroState=o,this.cdr.detectChanges()}openMenu(o){2===o.button&&o.shiftKey||this.canStartActivity$$&&!this.selectedService.getActivity().isConversationBoard()&&this.menuComponent.openMenu(o,this.activityContainer.nativeElement)}onTaskSelected(){this.showArrow$.next(!0),setTimeout(()=>{this.updateArrowPosition()},0)}onNavigationSelected(){this.showArrow$.next(!0),setTimeout(()=>{this.updateArrowPosition()},0)}onLeftPaneScroll(){this.showArrow$.value&&this.updateArrowPosition()}setNextRouteAnnouncementPoliteness(o){this.activityViewRouteA11yService.setNextRouteAnnouncementPoliteness(o)}setNextRouteFocusSelector(o){this.activityViewRouteA11yService.setNextRouteFocusSelector(o)}onRouteActivate(){const o=this.routerService.getCurrentRouteName(),a=this.shouldHandleRouteAnnouncementOnActivate(o);if(this.hasActivatedChildRoute=!0,!a)return;const p=this.routerService.getCurrentParams();this.restorePendingRouteFocus().then(()=>{setTimeout(()=>{this.announceCurrentRoute(o,p)},0)})}getTaskName(o,a){return this.ngxActivityService.getTaskTitleAndDescription(o,a).title}announceCurrentRoute(o,a){const p=this.activityViewRouteA11yService.consumeNextRouteAnnouncementPoliteness()??"polite",f=this.getRouteAnnouncement(o,a);null!=f?f!==this.lastRouteAnnouncement&&(this.lastRouteAnnouncement=f,this.liveAnnouncer.announce(f,p)):this.lastRouteAnnouncement=null}restorePendingRouteFocus(){const o=this.activityViewRouteA11yService.consumeNextRouteFocusSelector();return null==o?Promise.resolve():new Promise(a=>{let p=20;const f=()=>{const _t=this.rightPane?.nativeElement?.querySelector(o);if(!(_t instanceof HTMLElement))return p-=1,p<=0?void a():void setTimeout(()=>{f()},25);(0,Et.dl)(_t),setTimeout(()=>{const ct=this.rightPane?.nativeElement.querySelector(o);ct instanceof HTMLElement&&ct.ownerDocument?.activeElement===ct?a():(p-=1,p<=0?a():f())},25)};f()})}shouldHandleRouteAnnouncementOnActivate(o){return!this.hasActivatedChildRoute||null!=this.activityViewRouteA11yService.peekNextRouteFocusSelector()||o===J.V2.DASHBOARD_ACTIVITY_TASK_REPORT||o===J.V2.DASHBOARD_ACTIVITY_REPORT}getRouteAnnouncement(o,a){const p=this.getRouteAnnouncementTitle(o,a);return null==p?null:this.translate.instant("activity-view_route-announcement-page",{title:p})}getFallbackTaskTitle(o){switch(o){case pt.wP.Present:return this.translate.instant("task-title_present-standard");case pt.wP.Reflect:return this.translate.instant("task-title_reflect");case pt.wP.Submit:return this.translate.instant("task-title_submit");case pt.wP.Review:return this.translate.instant("task-title_review");case pt.wP.React:return this.translate.instant("task-title_react");default:return null}}getRouteAnnouncementTitle(o,a){if(o===J.V2.DASHBOARD_ACTIVITY_TASK_REPORT)return this.translate.instant("task-report_header-title");if(o===J.V2.DASHBOARD_ACTIVITY_REPORT)return this.translate.instant("activity-report_header-title");if(o!==J.V2.DASHBOARD_ACTIVITY_TASK)return null;if(a.type===pt.wP.Evaluate)return this.translate.instant("common_submissions");const p=this.selectedService.getActivity();if(null==p||null==a.type)return null;const f=this.activityEditModeService.currentTasks().find(N=>N.type===a.type)??{type:a.type,name:null};try{return this.ngxActivityService.getTaskTitleAndDescription(p,f).title}catch{return this.getFallbackTaskTitle(a.type)}}updateArrowPosition(){const o=document.querySelector(".task-item.active"),a=document.querySelector(".task-view-container");if(o&&a){const p=o.getBoundingClientRect(),f=a.getBoundingClientRect();
1this.arrowPosition$.next(p.top-f.top+p.height/2-15)}else this.arrowPosition$.next(0),this.showArrow$.next(!1)}confirmParticipation(o,a=!1){const p=this.userService.currentUser;X.w.open(this.dialog,{data:{title:this.translate.instant("confirm-join-title"),message:this.translate.instant("confirm-join-message"),confirmText:this.translate.instant("confirm-join-button-as-presenter"),cancelText:this.translate.instant("confirm-join-button-as-observer")}}).afterClosed().subscribe(N=>{N?a?this.startLiveReview(o):this.checkEquipment(o):!1===N&&(o.removePresenter(p),this.sessionListDataSource.editSession(o),this.goToSession(o))})}startLiveReview(o){var a=this;let p=Promise.resolve(null);o.media||(p=new Promise(function(){var f=(0,n.A)(function*(N,_t){const ct=yield a.MediaModel.createFor(U.g.OPENTOK,o.group_id);o.setMedia(ct),o.save(),N(null)});return function(N,_t){return f.apply(this,arguments)}}())),p.then(()=>{this.showInstructionsThenGoToSession(o)})}showInstructionsThenGoToSession(o){const a=this.selectedService.getActivity(),p=this.userService.currentUser;if(a.hasRecordingInstructions()||this.isHeadPhonesInstructionsRequired(o)){const f=this.selectedService.getGroup(),N=a.hasRecordingInstructions()&&!!a.recording_instructions.media&&!f.license_trial_exists,_t=this.activityInstructionsModal.open({focusReturnSelector:'[data-cy="comment-tab-button"]',modalData:{activity:a,mode:I.g.RECORDING,showHeadPhones:this.isHeadPhonesInstructionsRequired(o),embiggen:N}});_t.opened.then(()=>{o.hasViewedRecordingInstructions()||o.setViewedRecordingInstructions()}),_t.result.then(()=>{this.addPresenterThenGoToRecordSession(o,p)})}else this.addPresenterThenGoToRecordSession(o,p)}addPresenterThenGoToRecordSession(o,a){return Promise.resolve(o.addPresenter(a)).then(()=>{this.sessionListDataSource.editSession(o),this.selectedService.setSession(o),this.routerService.navigateTo(J.V2.DASHBOARD_SESSION_VIEW,{session_id:o.session_id},{queryParams:{feedbackMode:ut.FA.VIEW,viewMode:ut.k3.RECORD}})})}isHeadPhonesInstructionsRequired(o){const a=o.source_media||this.selectedService.getActivity().source_media?.media;return!!a&&a.hasAudio()}mayStart(o){const a=this.selectedService.getActivity(),p=this.selectedService.getGroup();let N=o.mayPublish(this.userService.currentUser,p,a);return o.source_media?.isPending()&&(N=!1),N}checkEquipment(o){const a=this.selectedService.getActivity();if(a.isEquipmentCheckRequired(this.sessionStorage))try{this.equipmentCheckModal.open({activity:a,session:o,focusReturnSelector:'[data-cy="add-video"]'}).result.then(()=>{this.showInstructionsThenGoToSession(o)})}catch{w.V.open(this.dialog,{data:{title:this.translate.instant("unknown-error-title"),message:this.translate.instant("group-view_zero-state-unexpected-error")}})}else this.showInstructionsThenGoToSession(o)}showSessionFullModal(){w.V.open(this.dialog,{data:{title:this.translate.instant("session-list-item_controller-max-presenter-title"),message:this.translate.instant("session-list-item_controller-max-presenter-message")}})}validateCanStartActivity(){this.canStartActivity$$.next(this.ngxActivityService.canStartActivity()),this.getSessionCreationDisabledMessage$$.next(this.ngxActivityService.getSessionCreationDisabledMessage());const o=this.selectedService.getLicense();o&&this.licenseExpirationHandler.displayLicenseExpirationWarningToastIfNeeded(o)}getLicenseAndValidate(){this.selectedService.selectedSubject.asObservable().pipe((0,Y.Q)(this.componentDestroyed$$),(0,Z.p)(o=>o.group)).subscribe(o=>{this.isLti()&&this.hasInstructorRole()&&this.featureFlag.isAvailable("AI_TRIAL")&&o.group.license_trial_exists&&o.license?.salesforce_license.is_free_trial&&(!o.license.is_active||st().isAfter(st.utc(o.license.ends_at)))&&this.handleExpiredLicenseTrial(o.license).subscribe(),this.validateCanStartActivity()})}handleExpiredLicenseTrial(o){return this.ngxLicenseUpgradeService.upgradeOrPurchase(o.trial.previous_license,!0,!0,!0).pipe((0,ot.n)(({requestUpgrade:a,shouldRestart:p})=>p?this.handleExpiredLicenseTrial(o):a?this.ngxLicenseUpgradeService.handleLicenseUpgradeRequest(o.trial.previous_license.id):R.w),(0,Y.Q)(this.componentDestroyed$$))}
1toggleEditMode(){const o=this.routerService.getCurrentParams(),a=this.routerService.getCurrentQueryParams(),p=this.routerService.getCurrentRouteName();if(this.isEditMode||!this.isActivityPreviewEditorDialogEnabled())if(this.isEditMode)if(this.activityEditModeService.hasUnsavedChanges()){const f=this.selectedService.getActivity();f.usage&&f.usage>0?X.w.open(this.dialog,{data:{title:this.translate.instant("modal-activity-edit-warning_edit-activity"),message:this.translate.instant("modal-activity-edit-warning_warning-text",{total:f.usage}),confirmText:this.translate.instant("common_continue")}}).afterClosed().subscribe(N=>{N&&this.performActualSave()}):this.performActualSave()}else{const f=this.getQueryParamsWithoutEditMode(a);this.routerService.navigateTo(p,o,{queryParams:f})}else this.routerService.navigateTo(p,o,{queryParams:{...a,mode:"edit"}});else this.openActivityPreviewEditorDialog()}performActualSave(){const o=this.routerService.getCurrentParams(),a=this.routerService.getCurrentQueryParams(),p=this.routerService.getCurrentRouteName();if(!this.activityEditModeService.validateAdditionalSettingsForm())return void(o.type!==pt.wP.Present&&(this.router.events.pipe((0,Z.p)(ct=>ct instanceof mt.wF),(0,q.s)(1),(0,Y.Q)(this.componentDestroyed$$)).subscribe(()=>{setTimeout(()=>{this.activityEditModeService.validateAdditionalSettingsForm()})}),this.navigateToPresentTaskRoute(o,a,p)));this.activityEditModeService.setIsSaving(!0);const f=this.activityEditModeService.currentActivity(),N=this.activityEditModeService.currentTasks();if(!f)return void this.activityEditModeService.setIsSaving(!1);const _t={...f,tasks:N.filter(ct=>!ct.deleted_at).map(ct=>this.removeModifier(f,ct))};this.ngxActivityService.update(_t).pipe((0,K.j)(()=>{this.activityEditModeService.setIsSaving(!1)})).subscribe({next:ct=>{this.ngxGoToastService.createToast({type:Ot.A.SUCCESS,message:"folder-view_activity_updated"}),this.activityEditModeService.commitChanges(ct),this.ngxTaskService.updateTasks(f.activity_id,N);const Tt=this.getQueryParamsWithoutEditMode(a);this.routerService.navigateTo(p,o,{queryParams:Tt})},error:()=>{this.ngxGoToastService.createToast({type:Ot.A.ERROR,message:"common_unknown-error_message"})}})}isActivityPreviewEditorDialogEnabled(){return this.featureFlag.isAvailable("ACTIVITY_PREVIEW_EDITOR_DIALOG")}openActivityPreviewEditorDialog(){const o=this.selectedService.getActivity();if(null==o)return;const a=this.routerService.getCurrentParams(),p=Number(a.activity_id);p&&p!==Number(o.activity_id)||this.activityPreviewEditorDialog.open({mode:"edit",activityId:o.activity_id,activityDraft:o,initialTaskType:a.type,group:this.selectedService.getGroup(),account:this.selectedService.getAccount(),org:this.selectedService.getOrg(),license:this.selectedService.getLicense(),environment:this.environmentVarsService.get(x.N.VAR.ENVIRONMENT),syncSelectedActivity:{activityId:o.activity_id,sync:f=>{this.selectedService.getActivity()?.activity_id===f.activity_id&&this.selectedService.setActivity(this.activityModel.model(f))}}}).then(f=>{f.afterClosed().pipe((0,q.s)(1)).subscribe(N=>{if(null==N||"dismissed"in N)return;const _t=this.activityModel.model(N.activity);this.activityListDataSource.editActivity({..._t}),this.cdr.markForCheck()})}).catch(e.noop)}removeEditModeQueryParam(){const o=this.routerService.getCurrentParams(),a=this.routerService.getCurrentQueryParams(),p=this.routerService.getCurrentRouteName(),f=this.getQueryParamsWithoutEditMode(a);this.routerService.navigateTo(p,o,{queryParams:f,replaceUrl:!0})}getQueryParamsWithoutEditMode(o){const a={...o};return delete a.mode,a}navigateToPresentTaskRoute(o,a,p){const f={...o,type:pt.wP.Present};this.routerService.navigateTo(p,f,{queryParams:a})}removeModifier(o,a){if(a.name){const p=this.ngxActivityService.getTaskTitleAndDescription(o,{...a,name:null});if(a.name===p.title)return{...a,name:null}}return a}static#t=h=()=>(this.\u0275fac=function(a){return new(a||B)(t.rXU(It.Yo),t.rXU(Dt.W),t.rXU(wt.z),t.rXU(Vt.O),t.rXU(J.HM),t.rXU(c.zZn),t.rXU($t.U),t.rXU(b.A),t.rXU(Q.t),t.rXU(S.u),t.rXU(ht.c),t.rXU(H.d),t.rXU(lt.N_),t.rXU(dt.c$),t.rXU(kt.HN),t.rXU(Bt.s3),t.rXU(jt.x),t.rXU(Gt.W),t.rXU(Lt.G),t.rXU(W.$),t.rXU(D.v),t.rXU(nt.Bd),t.rXU(k.K),t.rXU(v.N),t.rXU(Ut.n),t.rXU(Ft.bZ),t.rXU(Xt.hE),t.rXU(yt.c$),t.rXU(At.gRc),t.rXU(Nt.t),t.rXU(Kt.T),t.rXU(Wt.A),t.rXU(mt.nX),t.rXU(mt.Ix),t.rXU(zt.Ai),t.rXU(Yt),t.rXU(Ht.sF),t.rXU(Zt.p))},this.\u0275cmp=t.VBU({type:B,selectors:[["ngx-activity-view"]],viewQuery:function(a,p){if(1&a&&(t.GBs(g.Z,5),t.GBs(rt,5,t.aKT),t.GBs(ie,5),t.GBs(le,5,t.aKT),t.GBs(de,5,t.aKT)),2&a){let f;t.mGM(f=t.lsd())&&(p.menuComponent=f.first),t.mGM(f=t.lsd())&&(p.activityContainer=f.first),t.mGM(f=t.lsd())&&(p.activityTaskPane=f.first),t.mGM(f=t.lsd())&&(p.leftPane=f.first),t.mGM(f=t.lsd())&&(p.rightPane=f.first)}},hostVars:2,hostBindings:function(a,p){2&a&&t.HbH(p.responsiveLayout.cssClassString())},standalone:!1,decls:7,vars:6,consts:[["leftPane",""],["rightPane",""],["activityTaskPane",""],["activityContainer",""],[3,"type","dismissable"],[1,"zero-state-activity-not-available"],[1,"zero-state-building-activity-tasks"],[1,"task-view-container"],[3,"onBannerDismissed","type","dismissable"],[1,"ngx-banner-label"],[1,"ngx-banner-message"],["zero-state-title","","translate","activity-view_zero-state-activity-not-available-title"],["zero-state-subtext","","translate","activity-view_zero-state-activity-not-available-subtext",3,"translateParams"],["zero-state-gra
1phic-bottom",""],["alt","No Results",3,"src"],["zero-state-title",""],[1,"ficon-spinner","ficon-spin"],["translate","activity-task-view_conversion-title"],[1,"left-pane",3,"scroll"],[3,"options","selectedOption"],[1,"right-pane"],[3,"activate"],[1,"task-divider-arrow",3,"top"],[3,"navigationSelected"],[3,"taskSelected","isEditMode"],[3,"onOptionSelect","options","selectedOption"],[1,"task-divider-arrow"],[1,"arrow-pointer"],[1,"tools-mobile"],[1,"loading-thumbnail"],["id","activity-view-container",1,"layout"],[3,"width","height"],["filter-view-filter-bar","",1,"filter-bar",3,"hidden"],[1,"filter-view",3,"formGroup"],[1,"filter-container","score-filter"],[1,"filter-container","mine-peer-filter"],[1,"sort-container"],["goSelect",""],["formControlName","sortBy","disableOptionCentering","","panelClass","offsetPanel"],[3,"value"],["matIconSuffix","",1,"ficon-app-chevron-down"],[1,"tools-desktop-tablet",3,"ngClass"],[1,"search-container"],["filter-view-options-bar","",1,"filter-option",3,"ngClass","hidden"],["filter-view-content","",1,"filter-content"],["filter-view-content","",1,"filter-zero-state",3,"hidden"],[3,"zeroStateChanged","dataSource"],["filter-view-action-bar","",1,"filter-action",3,"hidden"],["formControlName","scoreFilter","disableOptionCentering","","panelClass","offsetPanel"],["formControlName","minePeerFilter","disableOptionCentering","","panelClass","offsetPanel"],["filter-view-content","",1,"filter-content",3,"contextmenu"],["data-cy","bailed-test",1,"zero-state-single-attempt-activity"],[1,"list-view"],[1,"grid-view"],[3,"goToSession"],[3,"openSession"],["zero-state-title","","translate","session-list_zero-state-bailed-test-title"],["zero-state-subtext","","translate","session-list_zero-state-bailed-test-subtext"],[3,"startActivity","viewInstructions"],[3,"viewInstructions","onStartActivity","canStartActivity"],[1,"link-btn","view-instructions-btn",3,"click"],[1,"regular"],[1,"shortened"],["translate","",1,"secondary-btn","invite-btn"],["matTooltipPosition","above",3,"tabindex","matTooltip","matTooltipDisabled"],["translate","",1,"secondary-btn","invite-btn",3,"click"],["type","button","data-cy","add-video","disabledInteractive","",1,"btn","primary-btn","start-activity-btn",3,"click","disabled"]],template:function(a,p){1&a&&(t.nVh(0,me,7,8,"ngx-banner",4),t.nVh(1,ue,6,7,"ngx-zero-state",5),t.nI1(2,"async"),t.nI1(3,"async"),t.vZN(4,se,6,1,"ngx-zero-state",6)(5,Se,13,8,"div",7)(6,Ue,9,9)),2&a&&(t.vxM(p.showPreviewBanner()?0:-1),t.R7$(),t.vxM(p.activityNotAvailable()?1:t.bMT(2,2,p.ngxActivityService.showBuildingActivityZeroState$)?4:t.bMT(3,4,p.ngxTaskService.shouldShowTasksObservable())?5:6))},dependencies:[Pt.YU,mt.n3,L.BC,L.cb,Qt.f,Jt.S,d.S,yt.Mm,P.s,l.rl,l.nJ,l.yw,C.An,T.VO,A.wT,St.oV,ft.c,qt.T,te.tK,L.j4,L.JD,ee.S,ne.o,ae.y,g.Z,re.T,ce.q,s.S,M.B,m.h,u.b,E.H,it.H,Pt.Jj,Pt.vh,yt.D9],styles:["[_ngcontent-%COMP%]:root{--table-border: #e0e0e0;--tree-base-spacing: 25px;--tree-icon-width: 20px;--tree-icon-text-gap: 10px;--tree-indent-per-level: calc(var(--tree-icon-width) + var(--tree-icon-text-gap));--color-off-white: #F7F7F7;--color-emperor: #545454}[_nghost-%COMP%]{width:100%;height:calc(100% - 76px);display:flex;flex-direction:column;--tools-mobile-margin: 25px}.height-compact[_nghost-%COMP%]{height:calc(100% - 48px);--tools-mobile-margin: 0px}.height-reflow[_nghost-%COMP%]{height:calc(100% - 36px);--tools-mobile-margin: 0px}[_nghost-%COMP%] .loading-thumbnail[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:#f7f7f7}[_nghost-%COMP%] .loading-thumbnail[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:70px;color:#e12a43}@media(max-width:480px){[_nghost-%COMP%] filter-view-layout[_ngcontent-%COMP%] .top-bar{margin-top:10px}}[_nghost-%COMP%] [filter-view-filter-bar][_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] [filter-view-filter-bar][_ngcontent-%COMP%] .tools-desktop-tablet[_ngcontent-%COMP%]{order:2;align-items:center;justify-content:space-between;gap:20px}[_nghost-%COMP%] [filter-view-filter-bar][_ngcontent-%COMP%] .tools-desktop-tablet.no-feedback-hold[_ngcontent-%COMP%]{display:none}@media(max-width:768px)and (min-width:480px){[_nghost-%COMP%] [filter-view-filter-bar][_ngcontent-%COMP%] .tools-desktop-tablet.no-feedback-hold[_ngcontent-%COMP%]{display:flex;font-size:14px}[_nghost-%COMP%] [filter-view-filter-bar][_ngcontent-%COMP%] .tools-desktop-tablet.no-feedback-hold[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%], [_nghost-%COMP%] [filter-view-filter-bar][_ngcontent-%COMP%] .tools-desktop-tablet.no-feedback-hold[_ngcontent-%COMP%] session-search[_ngcontent-%COMP%]{width:100%}}@media(max-width:480px){[_nghost-%COMP%] [filter-view-filter-bar][_ngcontent-%COMP%] .tools-desktop-tablet[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%] [filter-view-filter-bar][_ngcontent-%COMP%] .tools-desktop-tablet[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%]{display:none}@media(max-width:768px){[_nghost-%COMP%] [filter-view-filter-bar][_ngcontent-%COMP%] .tools-desktop-tablet[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%]{display:flex}}@media(max-width:1200px){[_nghost-%COMP%] [filter-view-filter-bar][_ngcontent-%COMP%]{display:grid;grid-gap:15px}[_nghost-%COMP%] [filter-view-filter-bar][_ngcontent-%COMP%] .feedback-hold[_ngcontent-%COMP%]{order:1}}[_nghost-%COMP%] [filter-view-options-bar][_ngcontent-%COMP%]{display:flex;align-items:center;gap:15px}[_nghost-%COMP%] [filter-view-options-bar][_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%]{display:flex;width:auto}@media(max-width:1200px)and (min-width:768px){[_nghost-%COMP%] [filter-view-options-bar].no-feedback-hold[_ngcontent-%COMP%]{display:flex;align-items:center}}@media(max-width:1200px){[_nghost-%COMP%] [filter-view-options-bar][_ngcontent-%COMP%]{display:unset}[_nghost-%COMP%] [filter-view-options-bar][_ngcontent-%COMP%] .view-switcher[_ngcontent-%COMP%]{margin-top:6px;float:right}}@media(max-width:768px){[_nghost-%COMP%] [filter-view-options-bar][_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%] [filter-view-action-bar][_ngcontent-%COMP%] .start-activity-btn[_ngcontent-%COMP%] .regular[_ng
1content-%COMP%], [_nghost-%COMP%] [filter-view-action-bar][_ngcontent-%COMP%] .view-instructions-btn[_ngcontent-%COMP%] .regular[_ngcontent-%COMP%]{display:block}@media(max-width:480px){[_nghost-%COMP%] [filter-view-action-bar][_ngcontent-%COMP%] .start-activity-btn[_ngcontent-%COMP%] .regular[_ngcontent-%COMP%], [_nghost-%COMP%] [filter-view-action-bar][_ngcontent-%COMP%] .view-instructions-btn[_ngcontent-%COMP%] .regular[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%] [filter-view-action-bar][_ngcontent-%COMP%] .start-activity-btn[_ngcontent-%COMP%] .shortened[_ngcontent-%COMP%], [_nghost-%COMP%] [filter-view-action-bar][_ngcontent-%COMP%] .view-instructions-btn[_ngcontent-%COMP%] .shortened[_ngcontent-%COMP%]{display:none}@media(max-width:480px){[_nghost-%COMP%] [filter-view-action-bar][_ngcontent-%COMP%] .start-activity-btn[_ngcontent-%COMP%] .shortened[_ngcontent-%COMP%], [_nghost-%COMP%] [filter-view-action-bar][_ngcontent-%COMP%] .view-instructions-btn[_ngcontent-%COMP%] .shortened[_ngcontent-%COMP%]{display:block}}[_nghost-%COMP%] .tools-mobile[_ngcontent-%COMP%]{display:none;padding-left:7px}@media(max-width:480px){[_nghost-%COMP%] .tools-mobile[_ngcontent-%COMP%]{display:flex;margin:var(--tools-mobile-margin);margin-bottom:0}[_nghost-%COMP%] .tools-mobile[_ngcontent-%COMP%] feedback-hold[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .tools-mobile[_ngcontent-%COMP%] session-search[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%] .grid-view[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .list-view[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .filter-view[_ngcontent-%COMP%]{column-gap:8px}[_nghost-%COMP%] .zero-state-single-attempt-activity[_ngcontent-%COMP%], [_nghost-%COMP%] .data-source-zero-state-container[_ngcontent-%COMP%]{height:100%;min-height:100%}[_nghost-%COMP%] .task-view-container[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;position:relative}[_nghost-%COMP%] .task-view-container[_ngcontent-%COMP%] .left-pane[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:350px;min-width:350px;padding:10px 15px;background-color:#f7f7f7;overflow-y:auto}[_nghost-%COMP%] .task-view-container[_ngcontent-%COMP%] .left-pane[_ngcontent-%COMP%] pill-toggle[_ngcontent-%COMP%]{margin-top:auto;align-self:center}[_nghost-%COMP%] .task-view-container[_ngcontent-%COMP%] .right-pane[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;height:100%;background-color:#fff;box-shadow:-2px 0 8px #00000013;overflow-y:auto}[_nghost-%COMP%] .task-view-container[_ngcontent-%COMP%] .right-pane[_ngcontent-%COMP%] .right-pane-header[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;padding:16px;background-color:#fff}[_nghost-%COMP%] .task-view-container[_ngcontent-%COMP%] .right-pane[_ngcontent-%COMP%] pill-toggle[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .task-view-container[_ngcontent-%COMP%] .task-divider-arrow[_ngcontent-%COMP%]{position:absolute;left:338px}[_nghost-%COMP%] .task-view-container[_ngcontent-%COMP%] .task-divider-arrow[_ngcontent-%COMP%] .arrow-pointer[_ngcontent-%COMP%]{background-color:#fff;width:30px;height:30px;transform:rotate(45deg);border-radius:6px;filter:drop-shadow(-10px 8px 6px rgba(0,0,0,.075))}[_nghost-%COMP%] ngx-banner[_ngcontent-%COMP%] ~ .task-view-container[_ngcontent-%COMP%]{height:calc(100% - 44px)}[_nghost-%COMP%] .zero-state-activity-not-available[_ngcontent-%COMP%] div[zero-state-graphic-bottom][_ngcontent-%COMP%]{width:300px}[_nghost-%COMP%] .zero-state-activity-not-available[_ngcontent-%COMP%] div[zero-state-graphic-bottom][_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:clamp(250px,40vw,100%);height:clamp(250px,40vh,100%);padding:3%;margin:13% 0%;rotate:180deg}[_nghost-%COMP%] .zero-state-building-activity-tasks[_ngcontent-%COMP%] .ficon-spinner[_ngcontent-%COMP%]{margin-right:10px}[_nghost-%COMP%] .zero-state-building-activity-tasks[_ngcontent-%COMP%] div[zero-state-graphic-bottom][_ngcontent-%COMP%]{width:300px}[_nghost-%COMP%] .zero-state-building-activity-tasks[_ngcontent-%COMP%] div[zero-state-gra
1phic-bottom][_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:clamp(250px,40vw,100%);height:clamp(250px,40vh,100%);padding:3%;margin:13% 0%}@media(max-width:640px){[_nghost-%COMP%] .task-view-container[_ngcontent-%COMP%] .left-pane[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .task-view-container[_ngcontent-%COMP%] .right-pane[_ngcontent-%COMP%]{box-shadow:none}[_nghost-%COMP%] .task-view-container[_ngcontent-%COMP%] .right-pane[_ngcontent-%COMP%] pill-toggle[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;margin-top:auto;margin-bottom:15px}[_nghost-%COMP%] .task-view-container[_ngcontent-%COMP%] .task-divider-arrow[_ngcontent-%COMP%]{display:none}}"],changeDetection:0}))}return h(),B})()},733(Mt,at,i){i.d(at,{s:()=>Jt});var n=i(44438),e=i(76567),c=i(24122),t=i(9335),S=i(28234),b=i(45919),tt=i(53081),V=i(14557),F=i(42206),z=i(37571),O=i(84989),r=i(15719),$=i(5314),G=i(40391),Y=i(80093),q=i(7313),Z=i(57273),et=i(81892),ot=i(39287),R=i(44937),K=i(50057),H=i(20006),Q=i(91708),ht=i(97325),gt=i(41337),ut=i(75553),L=i(72794),lt=i(41901);const dt=["cardContainer"],W=d=>({viewed:d}),X=d=>({red:d});function D(d,P){if(1&d){const l=e.RV6();e.j41(0,"mat-checkbox",15),e.nI1(1,"translate"),e.bIt("click",function(T){return b.eBV(l),b.Njj(T.stopPropagation())})("change",function(T){b.eBV(l);const A=e.XpG(2);return b.Njj(A.handleCheckboxChanges(T))}),e.k0s()}if(2&d){const l=e.XpG(2);e.Y8G("checked",l.isSelected)("disabled",l.isSubmittingSessions)("tabindex",!l.allowSelection||l.isSubmittingSessions?-1:0),e.jOp("aria-label",e.bMT(1,4,"activity-task-sessions_submit-checkbox-aria-label"))}}
1function nt(d,P){if(1&d){const l=e.RV6();e.j41(0,"div",16),e.bIt("click",function(T){b.eBV(l);const A=e.XpG(2);return b.Njj(A.onSelectionToggle(T))}),e.k0s()}}function w(d,P){if(1&d&&(e.nrm(0,"badge",6),e.nI1(1,"translate")),2&d){const l=e.XpG(2);e.Y8G("badgeColor",l.BadgeColors.SUCCESS)("badgeLabel",e.bMT(1,2,"common_submitted"))}}function k(d,P){if(1&d&&e.nrm(0,"dot-indicator",17),2&d){const l=e.XpG(3);e.Y8G("session",l.session)("size",12)("hasBorder",!0)}}function U(d,P){if(1&d&&(e.j41(0,"span"),e.nrm(1,"img",20),e.k0s()),2&d){const l=e.XpG(4);e.R7$(),e.Y8G("alt",l.spotLogo.alt)("src",l.spotLogo.src,e.B4B)}}function v(d,P){1&d&&e.nrm(0,"loading",19),2&d&&e.Y8G("width","70px")("height","70px")}function I(d,P){if(1&d&&(e.j41(0,"div",18),e.nVh(1,U,2,2,"span")(2,v,1,2,"loading",19),e.k0s()),2&d){const l=e.XpG(3);e.R7$(),e.vxM(l.selectedService.getActivity().isConversationBoard()?1:2)}}function g(d,P){if(1&d&&e.nrm(0,"thumbnail",21),2&d){const l=e.XpG(4);e.Y8G("src",l.ngxSessionService.getMedia(l.session).thumbnail_url)("duration",l.ngxSessionService.getMedia(l.session).duration)("fallbackIcon","ficon-app-camcorder")}}function x(d,P){1&d&&(e.j41(0,"div",18),e.nrm(1,"loading",19),e.k0s()),2&d&&(e.R7$(),e.Y8G("width","70px")("height","70px"))}function y(d,P){1&d&&(e.j41(0,"div",22),e.nrm(1,"i",23),e.k0s())}function j(d,P){if(1&d&&(e.nVh(0,g,1,3,"thumbnail",21),e.nVh(1,x,2,2,"div",18),e.nVh(2,y,2,0,"div",22)),2&d){const l=e.XpG(3);e.vxM(l.ngxSessionService.getMedia(l.session).isReady()?0:-1),e.R7$(),e.vxM(l.ngxSessionService.getMedia(l.session).isPending()?1:-1),e.R7$(),e.vxM(l.ngxSessionService.getMedia(l.session).isFailed()?2:-1)}}function st(d,P){if(1&d&&(e.nVh(0,k,1,3,"dot-indicator",17),e.nVh(1,I,3,1,"div",18)(2,j,3,3)),2&d){const l=e.XpG(2);e.vxM(l.submitMode?-1:0),e.R7$(),e.vxM(l.ngxSessionService.getMedia(l.session)?2:1)}}function vt(d,P){1&d&&(e.j41(0,"button",26),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&d&&(e.R7$(),e.JRh(e.bMT(2,1,"session-join")))}function pt(d,P){if(1&d&&(e.nrm(0,"dot-indicator",24),e.j41(1,"div",25),e.nVh(2,vt,3,3,"button",26),e.k0s()),2&d){const l=e.XpG(2);e.Y8G("session",l.session)("size",12)("color",l.session.isLive()&&l.selectedService.getActivity().isLiveSessionEnabled()?"red":"green")("hasBorder",!(l.session.isLive()&&l.selectedService.getActivity().isLiveSessionEnabled())),e.R7$(2),e.vxM(l.ngxSessionService.shouldDisplayJoinButton(l.session)?2:-1)}}function xt(d,P){1&d&&(e.j41(0,"span"),e.EFF(1,"\u2014"),e.k0s())}function J(d,P){1&d&&e.nrm(0,"span",27)}function mt(d,P){1&d&&(e.j41(0,"span"),e.EFF(1,"\u2014"),e.k0s())}function Ot(d,P){if(1&d&&e.nVh(0,J,1,0,"span",27)(1,mt,2,0,"span"),2&d){const l=e.XpG(2);e.vxM(l.selectedService.getActivity().isConversationBoard()?0:1)}}function Rt(d,P){1&d&&(e.j41(0,"span"),e.EFF(1,"\u2014"),e.k0s())}function Et(d,P){1&d&&e.nrm(0,"span",29)}function At(d,P){if(1&d&&(e.j41(0,"span",28),e.nVh(1,Rt,2,0,"span")(2,Et,1,0,"span",29),e.k0s()),2&d){const l=e.XpG(3);e.R7$(),e.vxM(l.selectedService.getActivity().isConversationBoard()?1:2)}}function It(d,P){1&d&&(e.nrm(0,"span",35),e.nI1(1,"translate")),2&d&&e.Y8G("matTooltip",e.bMT(1,1,"session-list_submission_late"))}function Dt(d,P){if(1&d&&(e.j41(0,"span",36),e.EFF(1),e.k0s()),2&d){const l=e.XpG(7);e.R7$(),e.Lme(" ",l.session.score,"/",l.selectedService.getActivity().getTotalPoints()," ")}}function wt(d,P){1&d&&e.nrm(0,"span",37)}function Vt(d,P){if(1&d&&e.nVh(0,Dt,2,2,"span",36)(1,wt,1,0,"span",37),2&d){const l=e.XpG(6);e.vxM(l.session.isScoreAssigned()?0:1)}}function $t(d,P){if(1&d&&(e.j41(0,"span",32)(1,"div")(2,"span",33),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"span",34),e.nVh(6,It,2,3,"span",35),e.EFF(7),e.nI1(8,"date"),e.k0s()(),e.nVh(9,Vt,2,1),e.k0s()),2&d){const l=e.XpG(5);e.R7$(3),e.SpI(" ",e.bMT(4,5,"session-card_date-submission-label")," "),e.R7$(2),e.Y8G("ngClass",e.eq3(10,X,l.isSubmittedLate(l.session))),e.R7$(),e.vxM(l.isSubmittedLate(l.session)?6:-1),e.R7$(),e.SpI(" ",e.i5U(8,7,l.session.posted_at,"MMM d, y")," "),e.R7$(2),e.vxM(l.ngxSessionService.shouldDisplayScore(l.session)?9:-1)}}function kt(d,P){if(1&d&&(e.nrm(0,"span",38),e.j41(1,"span",39),e.EFF(2),e.nI1(3,"date"),e.k0s()),2&d){const l=e.XpG(5);e.R7$(2),e.SpI(" ",e.i5U(3,1,l.session.created_at,"MMM d, y")," ")}}function Bt(d,P){if(1&d&&e.nVh(0,$t,10,12,"span",32)(1,kt,4,4),2&d){const l=e.XpG(4);e.vxM(l.session.isPosted()&&l.shouldDisplaySubmissionDate(l.session)?0:1)}}
1function jt(d,P){1&d&&e.nrm(0,"span",30)}function Gt(d,P){1&d&&e.nrm(0,"span",31)}function Lt(d,P){if(1&d&&(e.nVh(0,Bt,2,1),e.nVh(1,jt,1,0,"span",30),e.nVh(2,Gt,1,0,"span",31)),2&d){const l=e.XpG(3);e.vxM(l.ngxSessionService.getMedia(l.session).isReady()?0:-1),e.R7$(),e.vxM(l.ngxSessionService.getMedia(l.session).isPending()?1:-1),e.R7$(),e.vxM(l.ngxSessionService.getMedia(l.session).isFailed()?2:-1)}}function Ut(d,P){if(1&d&&(e.j41(0,"div"),e.nVh(1,At,3,1,"span",28)(2,Lt,3,3),e.k0s()),2&d){const l=e.XpG(2);e.R7$(),e.vxM(l.ngxSessionService.getMedia(l.session)?2:1)}}function Ft(d,P){1&d&&e.nrm(0,"span",40)}function Xt(d,P){1&d&&e.nrm(0,"span",41)}function yt(d,P){if(1&d&&(e.j41(0,"div"),e.nVh(1,Ft,1,0,"span",40),e.nVh(2,Xt,1,0,"span",41),e.k0s()),2&d){const l=e.XpG(2);e.R7$(),e.vxM(l.session.isAwaitingStart()?1:-1),e.R7$(),e.vxM(l.session.isLive()&&l.selectedService.getActivity().isLiveSessionEnabled()?2:-1)}}function Nt(d,P){if(1&d&&(e.j41(0,"span",12),e.nI1(1,"translate"),e.nI1(2,"translate"),e.nrm(3,"i",42),e.j41(4,"span",43),e.EFF(5),e.k0s()()),2&d){const l=e.XpG(2);e.BMQ("aria-label",l.session.num_comments+" "+(1===l.session.num_comments?e.bMT(1,2,"common_comment"):e.bMT(2,4,"common_comments"))),e.R7$(5),e.SpI(" ",l.session.num_comments," ")}}function Kt(d,P){if(1&d){const l=e.RV6();e.j41(0,"button",44),e.nI1(1,"translate"),e.bIt("click",function(T){b.eBV(l);const A=e.XpG(2);return b.Njj(A.openMenu(T))})("keyup.enter",function(T){return b.eBV(l),b.Njj(T.stopPropagation())}),e.nrm(2,"i",45),e.k0s()}if(2&d){const l=e.XpG(2);e.BMQ("aria-label",e.bMT(1,2,"session-list-item_view-options"))("aria-expanded",null!=l.menuComponent&&null!=l.menuComponent.contextMenu&&l.menuComponent.contextMenu.menuOpen?"true":"false")}}function Wt(d,P){if(1&d){const l=e.RV6();e.j41(0,"card-container",2,0),e.bIt("contextmenu",function(T){b.eBV(l);const A=e.XpG();return b.Njj(A.openMenu(T))})("click",function(T){b.eBV(l);const A=e.XpG();return b.Njj(A.onCardClick(T))})("keyup.enter",function(T){b.eBV(l);const A=e.XpG();return b.Njj(A.onCardKeyEnter(T))}),e.j41(2,"div",3),e.nVh(3,D,2,6,"mat-checkbox",4),e.nVh(4,nt,1,0,"div",5),e.nVh(5,w,2,4,"badge",6),e.nVh(6,st,3,2),e.nVh(7,pt,3,5),e.k0s(),e.j41(8,"div",7),e.bIt("truncatedChange",function(T){b.eBV(l);const A=e.XpG();return b.Njj(A.handleTruncatedChange(T))}),e.EFF(9),e.nVh(10,xt,2,0,"span"),e.k0s(),e.j41(11,"div",8),e.nrm(12,"ellipsis-with-count",9),e.nVh(13,Ot,2,1),e.k0s(),e.j41(14,"div",10),e.nVh(15,Ut,3,1,"div"),e.nVh(16,yt,3,2,"div"),e.k0s(),e.j41(17,"div",11),e.bIt("keyup.enter",function(T){return b.eBV(l),b.Njj(T.stopPropagation())}),e.nVh(18,Nt,6,6,"span",12),e.nVh(19,Kt,3,4,"button",13),e.j41(20,"menu"),e.nrm(21,"session-menu",14),e.k0s()()()}if(2&d){const l=e.XpG();e.HbH(e.VkB("card-container ",l.FirstCommentTourClasses.sessionCard)),e.Y8G("ngClass",e.eq3(21,W,!l.unviewedState(l.session)))("matTooltip",l.getTooltip(l.session))("matTooltipDisabled",!l.sessionDescriptionTruncated),e.BMQ("aria-label",l.cardAriaLabel()),e.R7$(3),e.vxM(l.isSubmitCheckboxActive()?3:-1),e.R7$(),e.vxM(l.isSubmitOverlayActive()?4:-1),e.R7$(),e.vxM(l.shouldShowSubmissionBadge()?5:-1),e.R7$(),e.vxM(l.session.isRecorded()?6:-1),e.R7$(),e.vxM(l.session.isRecorded()?-1:7),e.R7$(2),e.SpI(" ",l.session.description," "),e.R7$(),e.vxM(null!=l.session.description&&l.session.description.length?-1:10),e.R7$(2),e.Y8G("nameList",l.nameList),e.R7$(),e.vxM(l.nameList.length?-1:13),e.R7$(2),e.vxM(l.session.isRecorded()?15:-1),e.R7$(),e.vxM(l.session.isRecorded()?-1:16),e.R7$(2),e.vxM(l.session.num_comments>0?18:-1),e.R7$(),e.vxM(l.ngxSessionService.shouldDisplayOptionsMenu(l.session)?19:-1),e.R7$(2),e.Y8G("session",l.session)}}let zt=(()=>{var d;class P{constructor(C,T,A,St,ft,qt,te,ee,ne){this.selectedService=C,this.userService=T,this.UADetect=A,this.featureFlag=St,this.translateService=ft,this.datePipe=qt,this.ngxSessionService=te,this.cdr=ee,this.activeBrandService=ne,this.FirstCommentTourClasses=$.V,this.goToSession=new e.bkB,this.selectionToggled=new e.bkB,this.submitMode=!1,this.isSelected=!1,this.allowSelection=!0,this.isSubmittingSessions=!1,this.nameList=[],this.sessionDescriptionTruncated=null,this.BadgeColors=G.w}get spotLogo(){return this.activeBrandService.getSpotLogo()}ngOnChanges(C){C.session&&this.session&&(this.nameList=this.session.presenters.map(T=>T.fullname))}sessionCanBeSubmitted(){const C=this.selectedService.getActivity();if(!this.submitMode||!C?.show_tasks&&!this.featureFlag.isAvailable("ACTIVITY_PREVIEW_EDITOR_DIALOG")||!this.session?.isRecorded?.())return!1;
1const T=this.ngxSessionService.getMedia(this.session);return!!T&&!T.isPending?.()}isSubmitCheckboxActive(){return this.sessionCanBeSubmitted()&&(this.session?.isPosted?.()||this.allowSelection)}isSubmitOverlayActive(){return this.sessionCanBeSubmitted()&&this.allowSelection}shouldShowTask(){return this.selectedService.getActivity()?.show_tasks||this.featureFlag.isAvailable("ACTIVITY_PREVIEW_EDITOR_DIALOG")}shouldShowSubmissionBadge(){return this.submitMode&&this.shouldShowTask()&&this.session.isPosted()}handleSubmitSelection(C){if(this.submitMode&&this.shouldShowTask())return C.preventDefault(),C.stopPropagation(),void(this.allowSelection&&this.isSubmitCheckboxActive()&&this.selectionToggled.emit(this.session));this.goToSession.emit(this.session)}onCardClick(C){this.handleSubmitSelection(C)}onCardKeyEnter(C){this.handleSubmitSelection(C)}handleCheckboxChanges(C){if(C.checked!==this.isSelected){if(!this.allowSelection||this.isSubmittingSessions)return void(C.source.checked=this.isSelected);this.selectionToggled.emit(this.session)}}onSelectionToggle(C){if(this.submitMode&&this.shouldShowTask())return C.preventDefault(),C.stopPropagation(),void(this.isSubmitCheckboxActive()&&this.selectionToggled.emit(this.session))}openMenu(C){C.stopPropagation(),(2!==C.button||!C.shiftKey)&&this.ngxSessionService.shouldDisplayOptionsMenu(this.session)&&(C.preventDefault(),this.menuComponent.openMenu(C,this.cardContainer.nativeElement))}getTooltip(C){return C.isRecorded()&&C.media?.isPending()?this.translateService.instant("session-card_processing"):`${C.description}\n\n\t\t${C.getFormattedPresenters()}`}cardAriaLabel(){const C=this.selectedService.getActivity(),T=this.userService.currentUser;let A=this.ngxSessionService.shouldDisplayJoinButton(this.session)?this.translateService.instant("session-list-item_controller-join-live-session"):this.translateService.instant("session-list-item_controller-critique-video");return!this.session.isRecorded()&&C.is_conversation&&this.UADetect.browserDetector.isOldEdge()?A=this.translateService.instant("common_unsupported-feature-try-latest-browser-version"):this.session.isRecorded()||!this.session.hasMaxPresenterCount(C)||this.session.isPresenter(T)?this.session.source_media&&this.session.source_media.isPending()?A=this.translateService.instant("session-list-item_controller-source-media-not-finished-processing"):this.session.media&&this.session.media.isPending()&&this.session.isRecorded()?A=this.translateService.instant("session-list-item_controller-media-not-finished-processing"):this.session.media&&this.session.media.isFailed()&&(A=this.translateService.instant("session-list-item_controller-media-processing-failed")):A=this.translateService.instant("session-list-item_controller-max-presenter-count"),A+","+[this.getVideoThumbnailTitle(),this.getSessionViewedStateText(),this.getCommentAriaLabel()].join(",")}getVideoThumbnailTitle(){const C=this.session.presenters.map(A=>A.fullname).join(", ");let T=this.translateService.instant("session-list-item_controller-video-thumbnail-title",{presenters:C,videoDescription:this.session.description});return this.ngxSessionService.getMedia(this.session)?.isReady()&&this.session.isPosted()&&this.shouldDisplaySubmissionDate(this.session)&&(T+=`, ${this.translateService.instant("session-list-item_controller-video-thumbnail-title-submitted",{submitDate:this.datePipe.transform(this.session.posted_at,"fullDate")})}`),this.session.num_comments>0&&(T+=", "+this.session.num_comments+" "+this.translateService.instant(1===this.session.num_comments?"common_comment":"common_comments")),this.hasSlidesEnabled()&&this.session.source_media_id&&(T+=`, ${this.translateService.instant("session-list-item_aria-with-slides")}`),this.session.num_attachments>0&&(T+=`, ${this.translateService.instant("session-list-item_aria-with-attachments",{count:this.session.num_attachments})}`),T}getSessionViewedStateText(){return this.translateService.instant(this.session.viewed?"session-list-item_controller-viewed_state":"session-list-item_controller-unviewed_state")}getCommentAriaLabel(){return this.session.num_comments?this.session.num_unviewed_comments?this.session.num_direct_unviewed_comments?1===this.session.num_direct_unviewed_comments?this.translateService.instant("comment-notifications-unviewed-single"):this.translateService.instant("comment-notifications-unviewed-plural",{number:this.session.num_direct_unviewed_comments}):this.session.num_unviewed_comments?this.translateService.instant(1===this.session.num_unviewed_comments?"comment-notifications-unviewed-new-single":"comment-notifications-unviewed-new-plural"):void 0:this.translateService.instant("comment-notifications-viewed"):this.translateService.instant("comment-notifications-no-comments")}hasSlidesEnabled(){return this.selectedService.getActivity().isSlidesEnabled()}unviewedState(C){return!C.viewed}
1isSubmittedLate(C){return this.ngxSessionService.isSubmittedLate(C)}shouldDisplaySubmissionDate(C){return this.ngxSessionService.shouldDisplaySubmissionDate(C)}handleTruncatedChange(C){this.sessionDescriptionTruncated=C,this.cdr.detectChanges()}static#t=d=()=>(this.\u0275fac=function(T){return new(T||P)(e.rXU(O.A),e.rXU(z.u),e.rXU(F.$),e.rXU(Y.T),e.rXU(q.c$),e.rXU(V.vh),e.rXU(Z.z),e.rXU(c.gRc),e.rXU(et.p))},this.\u0275cmp=e.VBU({type:P,selectors:[["ngx-session-card"]],viewQuery:function(T,A){if(1&T&&(e.GBs(r.Z,5),e.GBs(dt,5,e.aKT)),2&T){let St;e.mGM(St=e.lsd())&&(A.menuComponent=St.first),e.mGM(St=e.lsd())&&(A.cardContainer=St.first)}},inputs:{session:"session",submitMode:"submitMode",isSelected:"isSelected",allowSelection:"allowSelection",isSubmittingSessions:"isSubmittingSessions"},outputs:{goToSession:"goToSession",selectionToggled:"selectionToggled"},standalone:!1,features:[e.Jv_([V.vh]),e.OA$],decls:1,vars:1,consts:[["cardContainer",""],["data-cy","session-row-or-card","matTooltipClass","formatTooltip","role","link","tabindex","0",3,"class","ngClass","matTooltip","matTooltipDisabled"],["data-cy","session-row-or-card","matTooltipClass","formatTooltip","role","link","tabindex","0",3,"contextmenu","click","keyup.enter","ngClass","matTooltip","matTooltipDisabled"],["main","",1,"main"],["data-tour","submit-selection-checkbox","color","primary","data-cy","submit-checkbox",1,"submit-selection-checkbox",3,"checked","disabled","tabindex","aria-label"],["aria-hidden","true",1,"submit-overlay"],[1,"submit-video-complete-badge",3,"badgeColor","badgeLabel"],["info-first-line","","data-cy","session-description","detectTextTruncation","",3,"truncatedChange"],["info-second-line",""],[3,"nameList"],["info-third-line",""],["info-third-line-action-btns","",3,"keyup.enter"],["role","button",1,"comment-btn"],["data-cy","session-dropdown-menu",1,"menu-btn","btn-none"],[3,"session"],["data-tour","submit-selection-checkbox","color","primary","data-cy","submit-checkbox",1,"submit-selection-checkbox",3,"click","change","checked","disabled","tabindex","aria-label"],["aria-hidden","true",1,"submit-overlay",3,"click"],[3,"session","size","hasBorder"],[1,"pending-thumbnail"],[3,"width","height"],[1,"logo","not-loading",3,"alt","src"],["data-cy","media-ready",1,"recorded-thumbnail",3,"src","duration","fallbackIcon"],[1,"failed-thumbnail"],[1,"ficon-app-warning-circle-outline"],[3,"session","size","color","hasBorder"],[1,"live-thumbnail"],[1,"join-btn","secondary-btn"],["translate","filter-presenter-names_group",1,"group-discussion"],[1,"pending-text"],["translate","single-attempt-activity_no-recording","data-cy","allow-retake-link"],["translate","common_processing_processing","data-cy","processing-text",1,"pending-text"],["translate","common_processing_failed",1,"failed-text","red-text"],[1,"date-posted-container"],[1,"date-posted-label"],[1,"date-posted",3,"ngClass"],["matTooltipPosition","above","tabindex","0",1,"ficon-app-warning-circle-outline","warning-icon","red",3,"matTooltip"],[1,"score"],["translate","common_unscored",1,"unscored"],["translate","session-date-created-label",1,"session-created-text"],[1,"session-created-date"],["translate","common_processing_awaiting-start",1,"awaiting-text"],["translate","common_processing_in-progress",1,"is-live-text","red-text"],[1,"ficon-app-comment-outline"],[1,"num-comments"],["data-cy","session-dropdown-menu",1,"menu-btn","btn-none",3,"click","keyup.enter"],[1,"ficon-app-dots-vertical"]],template:function(T,A){1&T&&e.nVh(0,Wt,22,23,"card-container",1),2&T&&e.vxM(A.session?0:-1)},dependencies:[V.YU,q.Mm,ot.N,R.E,K.Y,H.So,Q.oV,ht.W,gt.$,r.Z,ut.q,L.b,lt.n,V.vh,q.D9],styles:['@charset "UTF-8";[_ngcontent-%COMP%]:root{--table-border: #e0e0e0;--tree-base-spacing: 25px;--tree-icon-width: 20px;--tree-icon-text-gap: 10px;--tree-indent-per-level: calc(var(--tree-icon-width) + var(--tree-icon-text-gap));--color-off-white: #F7F7F7;--color-emperor: #545454}[_nghost-%COMP%] .formatTooltip{white-space:pre-line!important}[_nghost-%COMP%] .no-thumbnail{font-size:3.5rem}
1@media(max-width:480px){[_nghost-%COMP%] .no-thumbnail{font-size:2.5rem}}[_nghost-%COMP%] .date-posted[_ngcontent-%COMP%]{display:inline-block}@media(max-width:480px){[_nghost-%COMP%] .date-posted-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding-top:0}}[_nghost-%COMP%] card-container[_ngcontent-%COMP%]{position:relative;padding:0}[_nghost-%COMP%] .main[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .main[_ngcontent-%COMP%] .submit-video-complete-badge[_ngcontent-%COMP%]{position:absolute;top:8px;right:8px;z-index:10}[_nghost-%COMP%] .main[_ngcontent-%COMP%] .submit-selection-checkbox[_ngcontent-%COMP%]{position:absolute;left:8px;z-index:10;pointer-events:auto;cursor:pointer;padding:0;margin-left:-9px;width:22.5px}[_nghost-%COMP%] .main[_ngcontent-%COMP%] .submit-selection-checkbox[_ngcontent-%COMP%] .mdc-checkbox__native-control:not(:checked)+.mdc-checkbox__ripple+.mdc-checkbox__background{background-color:#fff;border-color:#fff}[_nghost-%COMP%] .main[_ngcontent-%COMP%] .submit-selection-checkbox[_ngcontent-%COMP%] .mdc-checkbox__native-control:disabled+.mdc-checkbox__ripple+.mdc-checkbox__background{background-color:#c4c4c4;border-color:#c4c4c4}[_nghost-%COMP%] .main[_ngcontent-%COMP%] .submit-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background:#00000080;z-index:2;pointer-events:auto;border-radius:10px;cursor:pointer}[_nghost-%COMP%] .main[_ngcontent-%COMP%] .pending-thumbnail[_ngcontent-%COMP%], [_nghost-%COMP%] .main[_ngcontent-%COMP%] .failed-thumbnail[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:#f7f7f7}[_nghost-%COMP%] .main[_ngcontent-%COMP%] .pending-thumbnail[_ngcontent-%COMP%] i[_ngcontent-%COMP%], [_nghost-%COMP%] .main[_ngcontent-%COMP%] .failed-thumbnail[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e12a43}[_nghost-%COMP%] .main[_ngcontent-%COMP%] .pending-thumbnail[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%], [_nghost-%COMP%] .main[_ngcontent-%COMP%] .failed-thumbnail[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{height:70px;width:70px}[_nghost-%COMP%] .main[_ngcontent-%COMP%] .live-thumbnail[_ngcontent-%COMP%]{position:relative;background-color:#2d3750;height:100%;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] .main[_ngcontent-%COMP%] .live-thumbnail[_ngcontent-%COMP%] .join-btn[_ngcontent-%COMP%]{background-color:#fff}[_nghost-%COMP%] .main[_ngcontent-%COMP%] .recorded-thumbnail[_ngcontent-%COMP%]{height:100%;width:100%}[_nghost-%COMP%] .main[_ngcontent-%COMP%] dot-indicator[_ngcontent-%COMP%]{position:absolute;margin:10px;z-index:1}[_nghost-%COMP%] .red-text[_ngcontent-%COMP%]{color:#e12a43}[_nghost-%COMP%] .comment-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:flex-start}[_nghost-%COMP%] .comment-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:4px}[_nghost-%COMP%] .comment-btn[_ngcontent-%COMP%], [_nghost-%COMP%] .menu-btn[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .num-comments[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%] .date-posted-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding-top:5px}[_nghost-%COMP%] .date-posted-container[_ngcontent-%COMP%] .warning-icon[_ngcontent-%COMP%]{float:left;padding-right:3px;padding-top:1px}[_nghost-%COMP%] .menu-btn[_ngcontent-%COMP%]{border-style:none;background-color:transparent}[_nghost-%COMP%] .middle-dot[_ngcontent-%COMP%]:after{vertical-align:inherit;content:"\\b7";margin:auto 3px;font-weight:700}']}))}return d(),P})();var Yt=i(71356),Ht=i(65935);const Zt=(d,P)=>P.session_id;function Pt(d,P){if(1&d){const l=e.RV6();e.j41(0,"li",2)(1,"ngx-session-card",3),e.bIt("goToSession",function(T){b.eBV(l);const A=e.XpG(2);return b.Njj(A.goToSession(T))})("selectionToggled",function(T){b.eBV(l);const A=e.XpG(2);return b.Njj(A.onSelectionToggle(T))}),e.k0s()()}if(2&d){const l=P.$implicit,C=P.$index,T=e.XpG(),A=T.index,St=T.columnCount,ft=e.XpG();e.BMQ("aria-posinset",ft.getAriaPosInSet(A,C,St))("aria-setsize",ft.getAr
1iaSetSize()),e.R7$(),e.Y8G("session",l)("submitMode",ft.submitMode)("allowSelection",ft.allowSelection)("isSelected",ft.isSessionSelected(l))("isSubmittingSessions",ft.isSubmittingSessions)}}function Qt(d,P){if(1&d&&(e.qex(0),e.Z7z(1,Pt,2,7,"li",2,Zt),e.bVm()),2&d){const l=P.$implicit;e.R7$(),e.Dyx(l)}}let Jt=(()=>{var d;class P{constructor(C){this.sessionListDataSource=C,this.submitMode=!1,this.allowSelection=!0,this.isSubmittingSessions=!1,this.selectedSessionIds=null,this.selectionToggled=new e.bkB,this.minWidth=S.p.minWidth,this.maxWidth=S.p.maxWidth,this.minGap=S.p.minGap,this.openSession=new e.bkB,this.filteredSessions=(0,c.hFB)(),this.dataSource=(0,t.EW)(()=>{const T=this.filteredSessions();return T?new n.hx(T):this.sessionListDataSource})}goToSession(C){this.openSession.emit(C)}isSessionSelected(C){return!!this.selectedSessionIds?.has(C.session_id)}onSelectionToggle(C){this.selectionToggled.emit(C)}getAriaSetSize(){return this.filteredSessions()?.length??this.sessionListDataSource.getCurrentTotalCount()}getAriaPosInSet(C,T,A){return C*A+T+1}static#t=d=()=>(this.\u0275fac=function(T){return new(T||P)(e.rXU(tt.Yo))},this.\u0275cmp=e.VBU({type:P,selectors:[["session-grid"]],inputs:{submitMode:"submitMode",allowSelection:"allowSelection",isSubmittingSessions:"isSubmittingSessions",selectedSessionIds:"selectedSessionIds",filteredSessions:[1,"filteredSessions"]},outputs:{selectionToggled:"selectionToggled",openSession:"openSession"},standalone:!1,decls:3,vars:7,consts:[[1,"main-grid",3,"onScroll"],[4,"gridVirtualFor","gridVirtualForOf","gridVirtualForItemMinWidth","gridVirtualForItemMaxWidth","gridVirtualForMinGap"],[1,"columns"],[3,"goToSession","selectionToggled","session","submitMode","allowSelection","isSelected","isSubmittingSessions"]],template:function(T,A){1&T&&(e.j41(0,"grid-virtual-scroll-viewport",0),e.nI1(1,"async"),e.bIt("onScroll",function(ft){return A.sessionListDataSource.onScroll(ft)}),e.DNE(2,Qt,3,0,"ng-container",1),e.k0s()),2&T&&(e.BMQ("aria-busy",e.bMT(1,5,A.sessionListDataSource.loading$)?"true":"false"),e.R7$(2),e.Y8G("gridVirtualForOf",A.dataSource())("gridVirtualForItemMinWidth",A.minWidth)("gridVirtualForItemMaxWidth",A.maxWidth)("gridVirtualForMinGap",A.minGap))},dependencies:[zt,Yt.g,Ht.r,V.Jj],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%;overflow:auto;padding:0 25px}[_nghost-%COMP%] .cdk-virtual-scroll-content-wrapper{padding:2px}"],changeDetection:0}))}return d(),P})()},65195(Mt,at,i){i.d(at,{T:()=>ot});var n=i(9335),e=i(47988),c=i(24122),t=i(76567),S=i(53081),b=i(14557),tt=i(7313);const V=R=>({"no-results":R}),F=(R,K)=>({searchedText:R,resultsCount:K}),z=R=>({searchedText:R}),O=R=>({resultsCount:R});function r(R,K){if(1&R&&(t.nrm(0,"span",2),t.nI1(1,"translate")),2&R){const H=t.XpG(3);t.Y8G("innerHTML",t.i5U(1,1,"session-list_search-result-found",t.l_i(4,F,H,K)),t.npT)}}function $(R,K){if(1&R&&t.nVh(0,r,2,7,"span",2),2&R){let H;const Q=t.XpG(3);t.vxM((H=Q.displayedSessions().length)?0:-1,H)}}function G(R,K){if(1&R&&(t.j41(0,"span",1),t.nrm(1,"span",3)(2,"span",4),t.k0s()),2&R){const H=t.XpG(2);t.R7$(2),t.Y8G("translateParams",t.eq3(1,z,H))}}function Y(R,K){if(1&R&&t.nVh(0,$,1,1)(1,G,3,3,"span",1),2&R){const H=t.XpG(2);t.vxM(!1===H.isLoading()?0:1)}}function q(R,K){1&R&&t.nVh(0,Y,2,1),2&R&&t.vxM(K.length>0?0:-1)}function Z(R,K){1&R&&t.nrm(0,"span",5),2&R&&t.Y8G("translateParams",t.eq3(1,O,K))}function et(R,K){if(1&R&&t.nVh(0,Z,1,3,"span",5),2&R){let H;const Q=t.XpG();t.vxM((H=Q.displayedSessions().length)?0:-1,H)}}let ot=(()=>{var R;class K{constructor(Q){this.sessionListDataSource=Q,this.filteredSessions=(0,c.hFB)(),this.searchTerm=(0,e.ot)(this.sessionListDataSource.textSearch$,{requireSync:!0}),this.dataSourceSessions=(0,e.ot)(this.sessionListDataSource.results$,{initialValue:[]}),this.isLoading=(0,e.ot)(this.sessionListDataSource.loading$,{initialValue:!1}),this.displayedSessions=(0,n.EW)(()=>this.filteredSessions()??this.dataSourceSessions())}static#t=R=()=>(this.\u0275fac=function(ht){return new(ht||K)(t.rXU(S.Yo))},this.\u0275cmp=t.VBU({type:K,selectors:[["session-list-search-result-info"]],inputs:{filteredSessions:[1,"filteredSessions"]},standalone:!1,decls:3,vars:4,consts:[["aria-live","polite",1,"search-result-info",3,"ngClass"],[1,"searching"],[1,"result-info-found",3,"innerHTML"],[1,"ficon-spinner","ficon-spin"],["translate","session-list_searching",3,"translateParams"],["translate","session-list_search-result-default",1,"result-info-default",3,"translateParams"]],template:function(ht,gt){if(1&ht&&(t.j41(0,"div",0),t.nVh(1,q,1,1)(2,et,1,1
1),t.k0s()),2&ht){let ut;t.Y8G("ngClass",t.eq3(2,V,0===gt.displayedSessions().length)),t.R7$(),t.vxM((ut=gt.searchTerm())?1:2,ut)}},dependencies:[b.YU,tt.Mm,tt.D9],styles:["[_ngcontent-%COMP%]:root{--table-border: #e0e0e0;--tree-base-spacing: 25px;--tree-icon-width: 20px;--tree-icon-text-gap: 10px;--tree-indent-per-level: calc(var(--tree-icon-width) + var(--tree-icon-text-gap));--color-off-white: #F7F7F7;--color-emperor: #545454}[_nghost-%COMP%]{display:flex;align-content:center;flex-wrap:wrap;justify-content:center}[_nghost-%COMP%] .search-result-info[_ngcontent-%COMP%]{color:#707070;width:max-content;padding-right:10px;padding-top:4px}[_nghost-%COMP%] .search-result-info.no-results[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .searching[_ngcontent-%COMP%]{display:flex;gap:5px;align-items:center}"]}))}return R(),K})()},41337(Mt,at,i){i.d(at,{$:()=>X});var n=i(14799),e=i.n(n),c=i(14557),t=i(37571),S=i(84989),b=i(74128),tt=i(18871),V=i(84943),F=i(67839),z=i(24122),O=i(45919),r=i(76567),$=i(57273),G=i(53081),Y=i(37629),q=i(70241),Z=i(7313),et=i(93627),ot=i(23139),R=i(76483),K=i(60657),H=i(9e3);function Q(D,nt){if(1&D){const w=r.RV6();r.j41(0,"button",7),r.bIt("click",function(){O.eBV(w);const U=r.XpG(2);return O.Njj(U.onEdit())}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}2&D&&(r.R7$(),r.JRh(r.bMT(2,1,"common_edit")))}function ht(D,nt){if(1&D){const w=r.RV6();r.j41(0,"button",8),r.bIt("click",function(){O.eBV(w);const U=r.XpG(2);return O.Njj(U.shareSession())}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}2&D&&(r.R7$(),r.JRh(r.bMT(2,1,"modal-video-share-dialog_title")))}function gt(D,nt){if(1&D){const w=r.RV6();r.j41(0,"button",9),r.bIt("click",function(){O.eBV(w);const U=r.XpG(2);return O.Njj(U.onEdit(1))}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}2&D&&(r.R7$(),r.JRh(r.bMT(2,1,"session-list-item_manage-reviewers")))}function ut(D,nt){if(1&D){const w=r.RV6();r.j41(0,"button",10),r.bIt("click",function(){O.eBV(w);const U=r.XpG(2);return O.Njj(U.confirmArchiveSession())}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}2&D&&(r.R7$(),r.JRh(r.bMT(2,1,"common_archive")))}function L(D,nt){if(1&D){const w=r.RV6();r.j41(0,"button",11),r.bIt("click",function(){O.eBV(w);const U=r.XpG(2);return O.Njj(U.markUnviewed())}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}2&D&&(r.R7$(),r.JRh(r.bMT(2,1,"session-list-item_mark-unviewed")))}function lt(D,nt){if(1&D){const w=r.RV6();r.j41(0,"button",12),r.bIt("click",function(){O.eBV(w);const U=r.XpG(2);return O.Njj(U.markViewed())}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}2&D&&(r.R7$(),r.JRh(r.bMT(2,1,"session-list-item_mark-viewed")))}function dt(D,nt){if(1&D){const w=r.RV6();r.j41(0,"button",13),r.bIt("click",function(){O.eBV(w);const U=r.XpG(2);return O.Njj(U.archiveSession())}),r.EFF(1),r.nI1(2,"translate"),r.k0s()}2&D&&(r.R7$(),r.JRh(r.bMT(2,1,"session-list-item_allow-retake")))}function W(D,nt){if(1&D&&(r.nVh(0,Q,3,3,"button",0),r.nVh(1,ht,3,3,"button",1),r.nVh(2,gt,3,3,"button",2),r.nVh(3,ut,3,3,"button",3),r.nVh(4,L,3,3,"button",4),r.nVh(5,lt,3,3,"button",5),r.nVh(6,dt,3,3,"button",6)),2&D){const w=r.XpG();r.vxM(w.ngxSessionService.mayEdit(w.session)?0:-1),r.R7$(),r.vxM(w.ngxSessionService.hasVideoSharePermission(w.session)&&w.isPosted()?1:-1),r.R7$(),r.vxM(w.ngxSessionService.hasVideoSharePermission(w.session)?2:-1),r.R7$(),r.vxM(w.ngxSessionService.mayDelete(w.session)?3:-1),r.R7$(),r.vxM(w.session.viewed?4:-1),r.R7$(),r.vxM(w.session.viewed?-1:5),r.R7$(),r.vxM(w.shouldShowRetakeLink()?6:-1)}}let X=(()=>{var D;class nt{constructor(k,U,v,I,g,x,y,j,st,vt,pt,xt,J,mt){this.ngxSessionService=k,this.sessionListDataSource=U,this.selectedService=v,this.userService=I,this.Session=g,this.sessionEditorPanel=x,this.cdr=y,this.dialog=j,this.liveAnnouncer=st,this.translate=vt,this.activityListDataSource=pt,this.archiveListDatasource=xt,this.ngxGoToastService=J,this.videoShareDialogService=mt}onEdit(k=0){const U=e().copy(this.session);this.sessionEditorPanel.open({session:U,user:this.userService.currentUser,group:this.selectedService.getGroup(),activity:this.selectedService.getActivity(),activeTab:k}).result.then(v=>{if(v){const I=this.Session.model(v);this.sessionListDataSource.editSession(I),this.cdr.markForCheck()}}).catch(n.noop)}shareSession(){this.videoShareDialogService.open({orgSettings:this.selectedService.getOrg().org_settings,sessionId:this.session.session_id}).subscribe(k=>
1{k&&(["invalidEmails","invalidUserNames","invalidEmailsAndUserNames"].includes(k.error)||k.openEditUserPanel)&&this.onEdit(1)})}markViewed(){this.liveAnnouncer.announce(this.translate.instant("session-list-item_marked-viewed"),"polite").then(()=>{this.ngxSessionService.markViewed(this.session)}).catch(k=>{console.error("Announcement failed",k),this.ngxSessionService.markViewed(this.session)})}markUnviewed(){this.liveAnnouncer.announce(this.translate.instant("session-list-item_marked-unviewed"),"polite").then(()=>{this.ngxSessionService.markUnviewed(this.session)}).catch(k=>{console.error("Announcement failed",k),this.ngxSessionService.markUnviewed(this.session)})}confirmArchiveSession(){V.w.open(this.dialog,{data:{title:this.translate.instant("common_archive"),message:this.translate.instant("session-archive_message"),confirmText:this.translate.instant("common_archive")}}).afterClosed().subscribe(U=>{U&&this.archiveSession()})}archiveSession(){this.ngxSessionService.archive(this.session).subscribe({next:()=>{this.sessionListDataSource.removeSession(this.session),this.archiveListDatasource.add(this.session);const k=this.selectedService.getActivity();!this.session.viewed&&null!==k.unviewed_sessions&&k.unviewed_sessions--,null!==k.usage&&k.usage--,this.activityListDataSource.editActivity(k),this.ngxGoToastService.createToast({type:F.A.SUCCESS,message:"session-archive_success"})},error:()=>{this.ngxGoToastService.createToast({type:F.A.ERROR,message:"modal-remove-session_cannot-delete-session"})}})}shouldShowRetakeLink(){return this.selectedService.getActivity().has_single_recording_attempt&&!this.session.started_at&&!this.session.archived_at&&this.ngxSessionService.mayDelete(this.session)}isPosted(){return null!=this.session.posted_at}static#t=D=()=>(this.\u0275fac=function(U){return new(U||nt)(r.rXU($.z),r.rXU(G.Yo),r.rXU(S.A),r.rXU(t.u),r.rXU(tt.c),r.rXU(b.S),r.rXU(z.gRc),r.rXU(Y.bZ),r.rXU(q.Ai),r.rXU(Z.c$),r.rXU(et.HN),r.rXU(ot.qZ),r.rXU(R.G),r.rXU(K.s))},this.\u0275cmp=r.VBU({type:nt,selectors:[["session-menu"]],inputs:{session:"session"},standalone:!1,features:[r.Jv_([c.vh])],decls:1,vars:1,consts:[["mat-menu-item","",1,"menu-edit"],["mat-menu-item","",1,"menu-share"],["mat-menu-item","",1,"menu-manage"],["mat-menu-item","","data-cy","delete-session",1,"menu-archive"],["mat-menu-item","",1,"menu-mark-unviewed"],["mat-menu-item","",1,"menu-mark-viewed"],["mat-menu-item","",1,"menu-allow-retake"],["mat-menu-item","",1,"menu-edit",3,"click"],["mat-menu-item","",1,"menu-share",3,"click"],["mat-menu-item","",1,"menu-manage",3,"click"],["mat-menu-item","","data-cy","delete-session",1,"menu-archive",3,"click"],["mat-menu-item","",1,"menu-mark-unviewed",3,"click"],["mat-menu-item","",1,"menu-mark-viewed",3,"click"],["mat-menu-item","",1,"menu-allow-retake",3,"click"]],template:function(U,v){1&U&&r.nVh(0,W,7,7),2&U&&r.vxM(v.session?0:-1)},dependencies:[H.fb,Z.D9],styles:[".menu-trigger[_ngcontent-%COMP%]{position:absolute;visibility:hidden;width:3px;height:3px;top:50px;left:50px}"]}))}return D(),nt})()},77451(Mt,at,i){i.d(at,{S:()=>$});var n=i(8202),e=i(56485),c=i(10275),t=i(45919),S=i(76567),b=i(53081),tt=i(7313),V=i(2302);const F=["textInput"];function z(G,Y){1&G&&(S.j41(0,"span",5),S.nrm(1,"i",7),S.k0s())}function O(G,Y){if(1&G){const q=S.RV6();S.j41(0,"button",8),S.bIt("click",function(){t.eBV(q);const et=S.XpG();return t.Njj(et.clearText())}),S.k0s()}}let $=(()=>{var G;class Y{constructor(Z){this.sessionListDataSource=Z,this.searchText="",this.searchTextUpdate$$=new n.B}ngOnInit(){this.searchTextUpdateSubscription=this.searchTextUpdate$$.pipe((0,e.B)(400),(0,c.F)()).subscribe(Z=>{this.searchText=Z,this.sessionListDataSource.setSearchTerm(this.searchText)})}ngOnDestroy(){this.sessionListDataSource.setSearchTerm(""),this.searchTextUpdateSubscription.unsubscribe()}onSearchQueryUpdate(Z){this.searchTextUpdate$$.next(Z)}clearText(){this.searchText="",this.searchTextUpdate$$.next(""),this.textInput.nativeElement.focus()}static#t=G=()=>(this.\u0275fac=function(et){return new(et||Y)(S.rXU(b.Yo))},this.\u0275cmp=S.VBU({type:Y,selectors:[["session-search"]],viewQuery:function(et,ot){if(1&et&&S.GBs(F,5),2&et){let R;S.mGM(R=S.lsd())&&(ot.textInput=R.first)}},standalone:!1,decls:8,vars:6,consts:[["textInput",""],["role","search",1,"search-bar"],["translate","common_search",1,"search-txt"],["type","text",1,"form-control","search-input",3,"ngModelChange","ngModel"],[1,"action-wrapper"],["mat-icon",""],["type","button",1,"ficon-app-x","clear-btn","icon-btn"],[1,"ficon-search"],["type","button",1,"ficon-app-x","clear-btn","icon-btn",3,"click"]],template:function(et,ot){if(1&et){const R=S.RV6();S.j41(0,"div",1),S.nrm(1,"div",2),S.j41(2,"input",3,0),S.nI1(4,"translate"),S.mxI("ngModelChange",function(H){return t.eBV(R),S.DH7(ot.searchText,H)||(ot.searchText=H),t.Njj(H)}),S.bIt("ngModelChange",function(H){return t.eBV(R),t.Njj(ot.onSearchQueryUpdate(H))}),S.k0s(),S.j41(5,"div",4),S.nVh(6,z,2,0,"span",5),S.nVh(7,O,1,0,"button",6),S.k0s()()}2&et&&(S.R7$(2),S.R50("ngModel",ot.searchText),S.BMQ("aria-label",S.bMT(4,4,"common_search")),S.R7$(4),S.vxM(ot.searchText?-1:6),S.R7$(),S.vxM(ot.searchText?7:-1))},dependencies:[tt.Mm,V.me,V.BC,V.vS,tt.D9],styles:["[_ngcontent-%COMP%]:root{--table-border: #e0e0e0;--tree-base-spacing: 25px;
1--tree-icon-width: 20px;--tree-icon-text-gap: 10px;--tree-indent-per-level: calc(var(--tree-icon-width) + var(--tree-icon-text-gap));--color-off-white: #F7F7F7;--color-emperor: #545454}[_nghost-%COMP%] .search-bar[_ngcontent-%COMP%]{display:flex;align-items:center;border-style:solid;border-width:1px;border-color:#e5e5e5;border-radius:38px;height:32px}[_nghost-%COMP%] .search-bar[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:none;background-color:transparent;box-shadow:none}[_nghost-%COMP%] .search-bar[_ngcontent-%COMP%] .search-txt[_ngcontent-%COMP%]{align-self:stretch;display:flex;align-items:center;padding:0 12px;border-width:1px;border-right-style:solid;border-color:#e5e5e5}[_nghost-%COMP%] .search-bar[_ngcontent-%COMP%] .action-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:70px}[_nghost-%COMP%] .search-bar[_ngcontent-%COMP%] .action-wrapper[_ngcontent-%COMP%] .clear-btn[_ngcontent-%COMP%]{font-size:1.5em;min-width:100%;padding:0}"]}))}return G(),Y})()},36211(Mt,at,i){i.d(at,{S:()=>ce});var n=i(14799),e=i.n(n),c=i(24122),t=i(76567),S=i(9335),b=i(44438),tt=i(84989),V=i(15719),F=i(74128),z=i(37571),O=i(18871),r=i(5314),$=i(45919),G=i(53081),Y=i(57273),q=i(59893),Z=i(60657),et=i(80093),ot=i(81892),R=i(14557),K=i(7313),H=i(20006),Q=i(26747),ht=i(91708),gt=i(44937),ut=i(97325),L=i(41337),lt=i(50057),dt=i(75553);const W=["sessionMenu"],X=["tableContainer"],D=(s,M)=>({isScoreEnabled:s,totalPoints:M}),nt=s=>({red:s}),w=(s,M)=>({date:s,time:M}),k=s=>({viewed:s});function U(s,M){1&s&&(t.j41(0,"th",17),t.nrm(1,"span",18),t.k0s())}function v(s,M){if(1&s){const m=t.RV6();t.j41(0,"mat-checkbox",22),t.nI1(1,"translate"),t.bIt("click",function(E){return $.eBV(m),$.Njj(E.stopPropagation())})("change",function(E){$.eBV(m);const it=t.XpG().$implicit,rt=t.XpG(2);return $.Njj(rt.onSubmitCheckboxChange(it,E))}),t.k0s()}if(2&s){const m=t.XpG().$implicit,u=t.XpG(2);t.Y8G("checked",u.isSessionSelected(m))("disabled",u.isSubmittingSessions)("tabindex",!u.allowSelection||u.isSubmittingSessions?-1:0),t.jOp("aria-label",t.bMT(1,4,"activity-task-sessions_submit-checkbox-aria-label"))}}function I(s,M){if(1&s&&t.nrm(0,"dot-indicator",21),2&s){const m=t.XpG().$implicit;t.Y8G("session",m)("color",m.isLive()?"red":"green")}}function g(s,M){if(1&s&&(t.j41(0,"td",19),t.nVh(1,v,2,6,"mat-checkbox",20)(2,I,1,2,"dot-indicator",21),t.k0s()),2&s){const m=M.$implicit,u=t.XpG(2);t.R7$(),t.vxM(u.shouldShowSelectionCheckbox(m)?1:2)}}function x(s,M){1&s&&(t.j41(0,"th",17),t.nrm(1,"span",23),t.k0s())}function y(s,M){if(1&s&&(t.j41(0,"span"),t.nrm(1,"img",29),t.k0s()),2&s){const m=t.XpG(5);t.R7$(),t.Y8G("alt",m.spotLogo.alt)("src",m.spotLogo.src,t.B4B)}}function j(s,M){1&s&&t.nrm(0,"loading",28),2&s&&t.Y8G("width","18px")("height","18px")}function st(s,M){if(1&s&&(t.j41(0,"div",27),t.nVh(1,y,2,2,"span")(2,j,1,2,"loading",28),t.k0s()),2&s){const m=t.XpG(4);t.R7$(),t.vxM(m.selectedService.getActivity().isConversationBoard()?1:2)}}function vt(s,M){if(1&s&&t.nrm(0,"thumbnail",33),2&s){const m=t.XpG(3).$implicit,u=t.XpG(2);t.HbH(t.VkB("media-thumbnail recorded-thumbnail ",u.FirstCommentTourClasses.sessionTablePulse)),t.Y8G("src",u.ngxSessionService.getMedia(m).thumbnail_url)("duration",u.ngxSessionService.getMedia(m).duration)("fallbackIcon","ficon-app-camcorder")}}function pt(s,M){1&s&&(t.j41(0,"div",31),t.nrm(1,"loading",28),t.k0s()),2&s&&(t.R7$(),t.Y8G("width","18px")("height","18px"))}function xt(s,M){1&s&&(t.j41(0,"div",32),t.nrm(1,"i",34),t.k0s())}function J(s,M){if(1&s&&(t.nVh(0,vt,1,6,"thumbnail",30),t.nVh(1,pt,2,2,"div",31),t.nVh(2,xt,2,0,"div",32)),2&s){const m=t.XpG(2).$implicit,u=t.XpG(2);t.vxM(u.ngxSessionService.getMedia(m).isReady()?0:-1),t.R7$(),t.vxM(u.ngxSessionService.getMedia(m).isPending()?1:-1),t.R7$(),t.vxM(u.ngxSessionService.getMedia(m).isFailed()?2:-1)}}function mt(s,M){if(1&s&&t.nVh(0,st,3,1,"div",27)(1,J,3,3),2&s){const m=t.XpG().$implicit,u=t.XpG(2);t.vxM(u.ngxSessionService.getMedia(m)?1:0)}}function Ot(s,M){1&s&&(t.j41(0,"div",35)(1,"span"),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&s&&(t.R7$(2),t.JRh(t.bMT(3,1,"session-join")))}function Rt(s,M){if(1&s&&t.nVh(0,Ot,4,3,"div",35),2&s){const m=t.XpG().$implicit,u=t.XpG(2);t.vxM(u.ngxSessionService.shouldDisplayJoinButton(m)?0:-1)}}function Et(s,M){1&s&&(t.j41(0,"span"),t.EFF(1,"\u2014"),t.k0s())}function At(s,M){if(1&s&&(t.j41(0,"td",24)(1,"span",25),t.nVh(2,mt,2,1),t.nVh(3,Rt,1,1),t.j41(4,"span",26),t.EFF(5),t.k0s(),t.nVh(6,Et,2,0,"span"),t.k0s()()),2&s){const m=M.$implicit;t.Y8G("matTooltip",m.description),t.R7$(2),t.vxM(m.isRecorded()?2:-1),t.R7$(),t.vxM(m.isRecorded()?-1:3),t.R7$(2),t.JRh(m.description),t.R7$(),t.vxM(null!=m.description&&m.description.length?-1:6)}}function It(s,M){1&s&&(t.j41(0,"th",17),t.nrm(1,"span",36),t.k0s())}function Dt(s,M){1&s&&t.nrm(0,"span",38)}function wt(s,M){1&s&&t.EFF(0," \u2014 ")}function Vt(s,M){if(1&s&&(t.j41(0,"span"),t.nVh(1,Dt,1,0,"span",38)(2,wt,1,0),t.k0s()),2&s){const m=t.XpG(3);t.R7$(),t.vxM(m.selectedService.getActivity().isConversationBoard()?1:2)}}function $t(s,M){if(1&s&&(t.j41(0,"td",24),t.nrm(1,"ellipsis-with-count",37),t.nVh(2,Vt,3,1,"span"),t.k0s()),2&s){const m=M.$implicit;t.Y8G("matTooltip",m.getFormattedPresenters()),t.R7$(),t.Y8G("nameList",m.getPresenterNames()),t.R7$(),t.vxM(m.getPresenterNames().length?-1:2)}}function kt(s,M){1&s&&(t.j41(0,"th",17),t.nrm(1,"span",39),t.k0s())}function Bt(s,M){if(1&s&&(t.j41(0,"span",40)(1,"span"),t.nrm(2,"i",41),t.k0s(),t.j41(3,"span"),t.EFF(4),t.k0s()()),2&s){const m=t.XpG().$implicit;t.R7$(4),t.JRh(m.num_comments)}}function jt(s,M){1&s&&(t.j41(0,"span",40),t.EFF(1,"\u2014"),t.k0s())}function Gt(s,M){if(1&s&&(t.j41(0,"td",19),t.nVh(1,Bt,5,1,"span",40),t.nVh(2,jt,2,0,"span",40),t.k0s()),2&s){const m=M.$implicit;t.R7$(),t.vxM(m.num_comments?1:-1),t.R7$(),t.vxM(m.num_comments?-1:2)}}function Lt(s,M){if(1&s&&(t.j41(0,"th",44),t.nrm(1,"span",45),t.k0s()),2&s){const m=t.XpG();t.Y8G("hidden",!m.isScoreEnabled)}}function Ut(s,M){if(1&s&&(t.j41(0,"span",47),t.EFF(1),t.k0s()),2&s){const m=t.XpG(2).$implicit,u=t.XpG();t.R7$(),t.Lme("",m.score," / ",u.totalPoints)}}function Ft(s,M){1&s&&t.nrm(0,"span",48)}function Xt(s,M){if(1&s&&(t.nVh(0,Ut,2,2,"span",47),t.nVh(1,Ft,1,0,"span",48)),2&s){const m=t.XpG().$implicit;t.vxM(m.isScoreAssigned()?0:-1),t.R7$(),t.vxM(m.isScoreAssigned()?-1:1)}}function yt(s,M){if(1&s&&(t.j41(0,"td",46),t.nVh(1,Xt,2,2),t.k0s()),2&s){const m=M.$implicit,u=t.XpG(),E=t.XpG(2);
1t.Y8G("hidden",!u.isScoreEnabled),t.R7$(),t.vxM(E.ngxSessionService.shouldDisplayScore(m)?1:-1)}}function Nt(s,M){1&s&&(t.qex(0,11),t.DNE(1,Lt,2,1,"th",42)(2,yt,2,2,"td",43),t.bVm())}function Kt(s,M){1&s&&(t.j41(0,"th",17),t.nrm(1,"span",49),t.k0s())}function Wt(s,M){1&s&&(t.j41(0,"span"),t.EFF(1,"\u2014"),t.k0s())}function zt(s,M){1&s&&t.nrm(0,"span",51)}function Yt(s,M){if(1&s&&(t.j41(0,"span",50),t.nVh(1,Wt,2,0,"span")(2,zt,1,0,"span",51),t.k0s()),2&s){const m=t.XpG(4);t.R7$(),t.vxM(m.selectedService.getActivity().isConversationBoard()?1:2)}}function Ht(s,M){1&s&&(t.nrm(0,"span",56),t.nI1(1,"translate")),2&s&&t.Y8G("matTooltip",t.bMT(1,1,"session-list_submission_late"))}function Zt(s,M){if(1&s&&(t.j41(0,"span",54),t.nVh(1,Ht,2,3,"span",56),t.EFF(2),t.nI1(3,"date"),t.nI1(4,"date"),t.nI1(5,"translate"),t.k0s()),2&s){const m=t.XpG(4).$implicit,u=t.XpG(2);t.Y8G("ngClass",t.eq3(11,nt,u.isSubmittedLate(m))),t.R7$(),t.vxM(u.isSubmittedLate(m)?1:-1),t.R7$(),t.SpI(" ",t.i5U(5,8,"session-date-posted",t.l_i(13,w,t.bMT(3,3,m.posted_at),t.i5U(4,5,m.posted_at,"
1shortTime")))," ")}}function Pt(s,M){if(1&s&&(t.j41(0,"span",55)(1,"span"),t.EFF(2),t.nI1(3,"date"),t.nI1(4,"date"),t.nI1(5,"translate"),t.k0s()()),2&s){const m=t.XpG(4).$implicit;t.R7$(2),t.SpI(" ",t.i5U(5,6,"session-date-created",t.l_i(9,w,t.bMT(3,1,m.created_at),t.i5U(4,3,m.created_at,"shortTime")))," ")}}function Qt(s,M){if(1&s&&(t.qex(0),t.nVh(1,Zt,6,16,"span",54)(2,Pt,6,12,"span",55),t.bVm()),2&s){const m=t.XpG(3).$implicit,u=t.XpG(2);t.R7$(),t.vxM(m.isPosted()&&u.shouldDisplaySubmissionDate(m)?1:2)}}function Jt(s,M){1&s&&(t.nrm(0,"span",52),t.nI1(1,"translate")),2&s&&t.Y8G("matTooltip",t.bMT(1,1,"session-card_processing"))}function d(s,M){1&s&&t.nrm(0,"span",53)}function P(s,M){if(1&s&&(t.nVh(0,Qt,3,1,"ng-container"),t.nVh(1,Jt,2,3,"span",52),t.nVh(2,d,1,0,"span",53)),2&s){const m=t.XpG(2).$implicit,u=t.XpG(2);t.vxM(u.ngxSessionService.getMedia(m).isReady()?0:-1),t.R7$(),t.vxM(u.ngxSessionService.getMedia(m).isPending()?1:-1),t.R7$(),t.vxM(u.ngxSessionService.getMedia(m).isFailed()?2:-1)}}function l(s,M){if(1&s&&(t.j41(0,"div"),t.nVh(1,Yt,3,1,"span",50)(2,P,3,3),t.k0s()),2&s){const m=t.XpG().$implicit,u=t.XpG(2);t.R7$(),t.vxM(u.ngxSessionService.getMedia(m)?2:1)}}function C(s,M){1&s&&t.nrm(0,"span",57)}function T(s,M){1&s&&t.nrm(0,"span",58)}function A(s,M){if(1&s&&(t.j41(0,"div"),t.nVh(1,C,1,0,"span",57),t.nVh(2,T,1,0,"span",58),t.k0s()),2&s){const m=t.XpG().$implicit;t.R7$(),t.vxM(m.isAwaitingStart()?1:-1),t.R7$(),t.vxM(m.isLive()?2:-1)}}function St(s,M){if(1&s&&(t.j41(0,"td",19),t.nVh(1,l,3,1,"div"),t.nVh(2,A,3,2,"div"),t.k0s()),2&s){const m=M.$implicit;t.R7$(),t.vxM(m.isRecorded()?1:-1),t.R7$(),t.vxM(m.isRecorded()?-1:2)}}function ft(s,M){1&s&&(t.j41(0,"th",17),t.nrm(1,"span",59),t.k0s())}function qt(s,M){if(1&s){const m=t.RV6();t.j41(0,"button",64),t.nI1(1,"translate"),t.bIt("click",function(){$.eBV(m);const E=t.XpG().$implicit,it=t.XpG(2);return $.Njj(it.shareSession(E))}),t.k0s()}2&s&&t.Y8G("matTooltip",t.bMT(1,1,"common_share"))}function te(s,M){if(1&s){const m=t.RV6();t.j41(0,"button",65),t.nI1(1,"translate"),t.bIt("click",function(E){$.eBV(m);const it=t.XpG().$implicit,rt=t.XpG(2);return $.Njj(rt.openMenu(E,it))}),t.k0s()}2&s&&t.BMQ("aria-label",t.bMT(1,1,"session-list-item_view-options"))}function ee(s,M){if(1&s){const m=t.RV6();t.j41(0,"td",60),t.bIt("click",function(E){return $.eBV(m),$.Njj(E.stopPropagation())})("keyup.enter",function(E){return $.eBV(m),$.Njj(E.stopPropagation())}),t.j41(1,"span",61),t.nVh(2,qt,2,3,"button",62),t.nVh(3,te,2,3,"button",63),t.k0s()()}if(2&s){const m=M.$implicit,u=t.XpG(2);t.R7$(2),t.vxM(u.ngxSessionService.hasVideoSharePermission(m)&&m.isPosted()?2:-1),t.R7$(),t.vxM(u.ngxSessionService.shouldDisplayOptionsMenu(m)?3:-1)}}function ne(s,M){1&s&&t.nrm(0,"tr",66)}function ae(s,M){if(1&s){const m=t.RV6();t.j41(0,"tr",67),t.bIt("contextmenu",function(E){const it=$.eBV(m).$implicit,rt=t.XpG(2);return $.Njj(rt.openMenu(E,it))})("keyup.enter",function(E){const it=$.eBV(m).$implicit,rt=t.XpG(2);return $.Njj(rt.handleRowInteraction(it,E))})("click",function(E){const it=$.eBV(m).$implicit,rt=t.XpG(2);return $.Njj(rt.handleRowInteraction(it,E))}),t.k0s()}if(2&s){const m=M.$implicit,u=t.XpG(2);t.HbH(u.FirstCommentTourClasses.sessionTableComplete),t.Y8G("ngClass",t.eq3(4,k,!u.unviewedState(m))),t.BMQ("aria-label",m.description)}}function re(s,M){if(1&s&&(t.j41(0,"table",2,0),t.qex(2,4),t.DNE(3,U,2,0,"th",5)(4,g,3,1,"td",6),t.bVm(),t.qex(5,7),t.DNE(6,x,2,0,"th",5)(7,At,7,5,"td",8),t.bVm(),t.qex(8,9),t.DNE(9,It,2,0,"th",5)(10,$t,3,3,"td",8),t.bVm(),t.qex(11,10),t.DNE(12,kt,2,0,"th",5)(13,Gt,3,2,"td",6),t.bVm(),t.nVh(14,Nt,3,0,"ng-container",11),t.qex(15,12),t.DNE(16,Kt,2,0,"th",5)(17,St,3,2,"td",6),t.bVm(),t.qex(18,13),t.DNE(19,ft,2,0,"th",5)(20,ee,4,2,"td",14),t.bVm(),t.DNE(21,ne,1,0,"tr",15)(22,ae,1,6,"tr",16),t.k0s()),2&s){let m;const u=t.XpG();t.Y8G("dataSource",u.dataSource()),t.R7$(14),t.vxM((m=u.shouldDisplayScoreColumn()&&t.l_i(4,D,u.selectedService.getActivity().isScoreEnabled(),u.selectedService.getActivity().getTotalPoints()))?14:-1,m),t.R7$(7),t.Y8G("matHeaderRowDef",u.displayColumns),t.R7$(),t.Y8G("matRowDefColumns",u.displayColumns)}}let ce=(()=>{var s;class M{constructor(u,E,it,rt,ie,le,de,_e,oe,me,ue){this.sessionListDataSource=u,this.ngxSe
1ssionService=E,this.viewStateDataSource=it,this.cdr=rt,this.videoShareDialogService=ie,this.selectedService=le,this.userService=de,this.sessionEditorPanel=_e,this.Session=oe,this.featureFlag=me,this.activeBrandService=ue,this.FirstCommentTourClasses=r.V,this.goToSession=new t.bkB,this.selectionToggled=new t.bkB,this.selectedSession=null,this.submitMode=!1,this.allowSelection=!0,this.selectedSessionIds=null,this.isSubmittingSessions=!1,this.sessions=(0,c.hFB)(),this.dataSource=(0,S.EW)(()=>{const se=this.sessions();return se?new b.hx(se):this.sessionListDataSource})}get spotLogo(){return this.activeBrandService.getSpotLogo()}ngOnInit(){if(this.displayColumns=["affordance","name","participants","comments","score","status","actions"],!this.shouldDisplayScoreColumn()){const u=this.displayColumns.indexOf("score");u>-1&&this.displayColumns.splice(u,1)}}shouldDisplayScoreColumn(){const u=this.selectedService.getGroup(),E=this.selectedService.getActivity();return u.hasReviewerRole(!0)||!E.shouldHoldFeedback(u.hasPresenterRole())}shouldDisplaySubmissionDate(u){return this.ngxSessionService.shouldDisplaySubmissionDate(u)}isSubmittedLate(u){return this.ngxSessionService.isSubmittedLate(u)}openMenu(u,E){u.stopPropagation(),(2!==u.button||!u.shiftKey)&&this.ngxSessionService.shouldDisplayOptionsMenu(E)&&(u.preventDefault(),this.selectedSession=E,this.menuComponent.openMenu(u,this.tableContainer.nativeElement))}unviewedState(u){return!u.viewed}shareSession(u){this.videoShareDialogService.open({orgSettings:this.selectedService.getOrg().org_settings,sessionId:u.session_id}).subscribe(E=>
1{E&&(["invalidEmails","invalidUserNames","invalidEmailsAndUserNames"].includes(E.error)||E.openEditUserPanel)&&this.onEdit(u)})}onEdit(u){const E=e().copy(u);this.sessionEditorPanel.open({session:E,user:this.userService.currentUser,group:this.selectedService.getGroup(),activity:this.selectedService.getActivity(),activeTab:1}).result.then(it=>{if(it){const rt=this.Session.model(it);this.sessionListDataSource.editSession(rt),this.cdr.markForCheck()}}).catch(n.noop)}isSessionSelected(u){return!!this.selectedSessionIds?.has(u.session_id)}shouldShowSelectionCheckbox(u){const E=this.ngxSessionService.getMedia(u);return!!(this.submitMode&&this.activityShouldShowTasks()&&u?.isRecorded?.()&&E&&!E.isPending?.()&&(u?.isPosted?.()||this.allowSelection)||!this.allowSelection&&this.isSubmittingSessions)}onSubmitCheckboxChange(u,E){if(E.checked!==this.isSessionSelected(u)){if(!this.allowSelection||this.isSubmittingSessions)return void(E.source.checked=this.isSessionSelected(u));this.selectionToggled.emit(u)}}handleRowInteraction(u,E){if(this.submitMode&&this.activityShouldShowTasks())return E.preventDefault(),E.stopPropagation(),void(this.allowSelection&&this.shouldShowSelectionCheckbox(u)&&this.selectionToggled.emit(u));this.goToSession.emit(u)}activityShouldShowTasks(){return!0===this.selectedService.getActivity()?.show_tasks||this.featureFlag.isAvailable("ACTIVITY_PREVIEW_EDITOR_DIALOG")}static#t=s=()=>(this.\u0275fac=function(E){return new(E||M)(t.rXU(G.Yo),t.rXU(Y.z),t.rXU(q.W),t.rXU(c.gRc),t.rXU(Z.s),t.rXU(tt.A),t.rXU(z.u),t.rXU(F.S),t.rXU(O.c),t.rXU(et.T),t.rXU(ot.p))},this.\u0275cmp=t.VBU({type:M,selectors:[["session-table"]],viewQuery:function(E,it){if(1&E&&(t.GBs(W,5),t.GBs(V.Z,5),t.GBs(X,5,t.aKT)),2&E){let rt;t.mGM(rt=t.lsd())&&(it.sessionMenu=rt.first),t.mGM(rt=t.lsd())&&(it.menuComponent=rt.first),t.mGM(rt=t.lsd())&&(it.tableContainer=rt.first)}},inputs:{submitMode:"submitMode",allowSelection:"allowSelection",selectedSessionIds:"selectedSessionIds",isSubmittingSessions:"isSubmittingSessions",sessions:[1,"sessions"]},outputs:{goToSession:"goToSession",selectionToggled:"selectionToggled"},standalone:!1,decls:4,vars:2,consts:[["tableContainer",""],[1,"table-wrapper",3,"scroll"],["mat-table","","fixedLayout","true",1,"main-table",3,"dataSource"],[3,"session"],["matColumnDef","affordance"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","",3,"matTooltip",4,"matCellDef"],["matColumnDef","participants"],["matColumnDef","comments"],["matColumnDef","score"],["matColumnDef","status"],["matColumnDef","actions"],["mat-cell","",3,"click","keyup.enter",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","tabindex","0","data-cy","session-row-or-card",3,"class","ngClass","contextmenu","keyup.enter","click",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["translate","common_unviewed-submissions",1,"accessibility-text"],["mat-cell",""],["color","primary",1,"submit-selection-checkbox",3,"checked","disabled","tabindex","aria-label"],[3,"session","color"],["color","primary",1,"submit-selection-checkbox",3,"click","change","checked","disabled","tabindex","aria-label"],["translate","common_name"],["mat-cell","",3,"matTooltip"],[1,"flex"],["data-cy","session-description",1,"description"],[1,"media-thumbnail","pending-thumbnail"],[3,"width","height"],[1,"logo","not-loading",3,"alt","src"],["data-cy","media-ready",3,"src","duration","fallbackIcon","class"],["data-cy","session-pending",1,"media-thumbnail","pending-thumbnail"],[1,"media-thumbnail","failed-thumbnail"],["data-cy","media-ready",3,"src","duration","fallbackIcon"],[1,"ficon-app-warning-circle-outline"],[1,"media-thumbnail","live-thumbnail"],["translate","participants"],[3,"nameList"],["translate","filter-presenter-names_group",1,"group-discussion"],["translate","comments"],[1,"comment"],[1,"ficon-app-comment-outline"],["mat-header-cell","",3,"hidden",4,"matHeaderCellDef"],["mat-cell","",3,"hidden",4,"matCellDef"],["mat-header-cell","",3,"hidden"],["translate","common_score"],["mat-cell","",3,"hidden"],[1,"score"],["translate","common_unscored",1,"unscored"],["translate","session-list_status"],[1,"pending-text","italic"],["translate","single-attempt-activity_no-recording","data-cy","allow-retake-link"],["tabindex","0","translate","common_processing_processing","data-cy","processing-text",1,"pending-text","italic",3,"matTooltip"],["translate","common_processing_failed",1,"failed-text","red-text"],[1,"date-posted",3,"ngClass"],["translate","session-date-created-label",1,"session-date-created"],["matTooltipPosition","above","tabindex","0",1,"ficon-app-warning-circle-outline","warning-icon","red",3,"matTooltip"],["translate","common_processing_awaiting-start",1,"awaiting-text","italic"],["translate","common_processing_in-progress",1,"is-live-text","red-text"],["translate","session-list_video-actions",1,"accessibility-text"],["mat-cell","",3,"click","keyup.enter"],[1,"actions"],["data-cy","share-button","type","button",1,"manage-video-share-btn","icon-btn","ficon-app-share",3,"matTooltip"],["data-cy","session-dropdown-menu","type","button",1,"dropdown-menu-btn","ficon-app-dots-vertical","icon-btn"],["data-cy","share-button","type","button",1,"manage-video-share-btn","icon-btn","ficon-app-share",3,"click","matTooltip"],["data-cy","session-dropdown-menu","type","button",1,"dropdown-menu-btn","ficon-app-dots-vertical","icon-btn",3,"click"],["mat-header-row",""],["mat-row","","tabindex","0","data-cy","session-row-or-card",3,"contextmenu","keyup.enter","click","ngClass"]],template:function(E,it){1&E&&(t.j41(0,"div",1),t.bIt("scroll",function(ie){return it.sessionListDataSource.onScroll(ie)}),t.nVh(1,re,23,7,"table",2),t.j41(2,"menu"),t.nrm(3,"session-menu",3),t.k0s()()),2&E&&(t.R7$(),t.vxM(it.sessionListDataSource?1:-1),t.R7$(2),t.Y8G("session",it.selectedSession))},dependencies:[R.YU,K.Mm,H.So,Q.Zl,Q.tL,Q.ji,Q.cC,Q.YV,Q.iL,Q.KS,Q.$R,Q.YZ,Q.NB,ht.oV,gt.E,ut.W,L.$,V.Z,lt.Y,dt.q,R.vh,K.D9],styles:["[_ngcontent-%COMP%]:root{--table-border: #e0e0e0;--tree-base-spacing: 25px;
1--tree-icon-width: 20px;--tree-icon-text-gap: 10px;--tree-indent-per-level: calc(var(--tree-icon-width) + var(--tree-icon-text-gap));--color-off-white: #F7F7F7;--color-emperor: #545454}[_nghost-%COMP%]{display:block;width:100%;height:100%;overflow:auto;position:relative}[_nghost-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%]:not(:first-child), [_nghost-%COMP%] .mat-mdc-header-cell[_ngcontent-%COMP%]:not(:first-child){padding-right:5px}[_nghost-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%]{height:30px}[_nghost-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%] .mat-mdc-header-cell[_ngcontent-%COMP%]{font-weight:700;font-size:14px;color:#000;padding-bottom:0}[_nghost-%COMP%] .mat-mdc-header-row[_ngcontent-%COMP%] .mat-mdc-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:0}[_nghost-%COMP%] .mat-mdc-row.viewed[_ngcontent-%COMP%] .mat-mdc-cell[_ngcontent-%COMP%]{background-color:#f7f7f7}[_nghost-%COMP%] .mat-mdc-row[_ngcontent-%COMP%]:hover .mat-mdc-cell[_ngcontent-%COMP%]{background-color:#e8e8e8;cursor:pointer}[_nghost-%COMP%] td.mat-column-name[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] td.mat-column-name[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .media-thumbnail[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:63px;min-width:63px;height:40px;border-radius:5px;margin-right:15px;cursor:default}[_nghost-%COMP%] td.mat-column-name[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .media-thumbnail[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:5px}[_nghost-%COMP%] td.mat-column-name[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .media-thumbnail[_ngcontent-%COMP%]:hover > .duration[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%] td.mat-column-name[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .media-thumbnail[_ngcontent-%COMP%] .duration[_ngcontent-%COMP%]{display:none;position:absolute;align-items:center;justify-content:center}[_nghost-%COMP%] td.mat-column-name[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .media-thumbnail[_ngcontent-%COMP%] .duration[_ngcontent-%COMP%] .cover[_ngcontent-%COMP%]{position:absolute;background-color:#000;width:63px;height:40px;border-radius:5px;opacity:.5}[_nghost-%COMP%] td.mat-column-name[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .media-thumbnail[_ngcontent-%COMP%] .duration[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{color:#fff;font-size:12px;font-weight:400;z-index:1}[_nghost-%COMP%] td.mat-column-name[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .media-thumbnail.pending-thumbnail[_ngcontent-%COMP%], [_nghost-%COMP%] td.mat-column-name[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .media-thumbnail.failed-thumbnail[_ngcontent-%COMP%]{background-color:#f7f7f7}[_nghost-%COMP%] td.mat-column-name[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .media-thumbnail.pending-thumbnail[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%], [_nghost-%COMP%] td.mat-column-name[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .media-thumbnail.failed-thumbnail[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{height:18px;width:18px}[_nghost-%COMP%] td.mat-column-name[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .media-thumbnail.pending-thumbnail[_ngcontent-%COMP%] i[_ngcontent-%COMP%], [_nghost-%COMP%] td.mat-column-name[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .media-thumbnail.failed-thumbnail[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.5em;color:#e12a43}[_nghost-%COMP%] td.mat-column-name[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .media-thumbnail.live-thumbnail[_ngcontent-%COMP%]{background-color:#2d3750}[_nghost-%COMP%] td.mat-column-name[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .media-thumbnail.live-thumbnail[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#fff;font-size:14px;font-weight:700}[_nghost-%COMP%] td.mat-column-name[_ngcontent-%COMP%] .flex[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{padding-right:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] td.mat-column-comments[_ngcontent-%COMP%] .comment[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%] td.mat-column-comments[_ngcontent-%COMP%] .comment[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:5px}[_nghost-%COMP%] td.mat-column-status[_ngcontent-%COMP%] .date-posted[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] td.mat-column-status[_ngcontent-%COMP%] .date-posted[_ngcontent-%COMP%] .warning-icon[_ngcontent-%COMP%]{padding:2px 5px 0 0}
1[_nghost-%COMP%] td.mat-column-participants[_ngcontent-%COMP%]{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}[_nghost-%COMP%] .mat-column-actions[_ngcontent-%COMP%]{width:10%}[_nghost-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;text-align:right;justify-content:flex-end}[_nghost-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:5px}[_nghost-%COMP%] .mat-column-actions[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .ficon-app-dots-vertical[_ngcontent-%COMP%]{font-size:1.5em}[_nghost-%COMP%] .red-text[_ngcontent-%COMP%]{color:#e12a43}[_nghost-%COMP%] .session-unviewed-indicator[_ngcontent-%COMP%]{position:absolute;padding:3px;margin-left:-15px;margin-top:-4px;border-radius:100%;background-color:#00a39a;height:5px;width:5px}[_nghost-%COMP%] .menu-trigger[_ngcontent-%COMP%]{position:fixed;visibility:hidden;width:3px;height:3px}[_nghost-%COMP%] .dot-indicator[_ngcontent-%COMP%]{right:12px}[_nghost-%COMP%] .thumbnail-wrapper{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;background-color:#516680;border-radius:5px}
1[_nghost-%COMP%] .thumbnail-wrapper .duration{display:none;align-items:center;justify-content:center;width:100%;height:100%!important;right:0!important;bottom:0!important;background-color:unset!important}[_nghost-%COMP%] .thumbnail-wrapper .duration .cover{position:absolute;background-color:#000;width:100%;height:100%;border-radius:5px;opacity:.5}[_nghost-%COMP%] .thumbnail-wrapper .duration .text{color:#fff;font-size:12px;font-weight:400;z-index:1}[_nghost-%COMP%] .thumbnail-wrapper:hover>.duration{display:flex}[_nghost-%COMP%] .thumbnail-wrapper .no-thumbnail{font-size:1.375rem}[_nghost-%COMP%] .submit-selection-checkbox[_ngcontent-%COMP%]{padding:0;margin-right:6.5px;width:22.5px;display:inline-flex;align-items:center;justify-content:center}"],changeDetection:0}))}return s(),M})()},30667(Mt,at,i){i.d(at,{$3:()=>k,tK:()=>U});var n=i(76567),e=i(84989),c=i(18871),t=i(8202),S=i(45607),b=i(32197),tt=i(2734),V=i(49705),F=i(61242),z=i(24122),O=i(45919),r=i(53081),$=i(80093),G=i(79808),Y=i(37629),q=i(7313),Z=i(91708),et=i(79123),ot=i(14557);const R=v=>({activityName:v});function K(v,I){1&v&&(n.nrm(0,"p",4),n.nI1(1,"translate")),2&v&&n.Y8G("innerHTML",n.bMT(1,1,"session-zero-state_no-submissions-peer-subtext"),n.npT)}function H(v,I){1&v&&n.nrm(0,"p",5)}function Q(v,I){if(1&v&&(n.j41(0,"ngx-zero-state",0)(1,"div",1),n.nrm(2,"img",2),n.k0s(),n.nrm(3,"p",3),n.nVh(4,K,2,3,"p",4)(5,H,1,0,"p",5),n.k0s()),2&v){const g=n.XpG();n.R7$(3),n.Y8G("translate",g.noVideosTitleKey),n.R7$(),n.vxM(g.taskType===g.TaskType.React?4:5)}}function ht(v,I){if(1&v&&(n.j41(0,"ngx-zero-state",6)(1,"div",1),n.nrm(2,"img",2),n.k0s(),n.nrm(3,"p",3)(4,"p",4),n.nI1(5,"translate"),n.k0s()),2&v){const g=n.XpG(2),x=g.learnFromFeedbackContent[g.learnFromFeedbackState];n.R7$(3),n.Y8G("translate",null==x?null:x.title),n.R7$(),n.Y8G("innerHTML",n.bMT(5,2,(null==x?null:x.subtext)??""),n.npT)}}function gt(v,I){if(1&v){const g=n.RV6();n.j41(0,"ngx-zero-state",7)(1,"div",1),n.nrm(2,"img",2),n.k0s(),n.nrm(3,"p",3)(4,"p",4),n.nI1(5,"translate"),n.j41(6,"div",9)(7,"span",10),n.nI1(8,"async"),n.nI1(9,"async"),n.nI1(10,"async"),n.nI1(11,"async"),n.j41(12,"button",11),n.nI1(13,"async"),n.nI1(14,"async"),n.bIt("click",function(){O.eBV(g);const y=n.XpG(3);return O.Njj(y.createBatchSessions())}),n.k0s()(),n.j41(15,"span",10),n.nI1(16,"async"),n.nI1(17,"async"),n.nI1(18,"async"),n.nI1(19,"async"),n.j41(20,"button",12),n.nI1(21,"async"),n.nI1(22,"async"),n.bIt("click",function(){O.eBV(g);const y=n.XpG(3);return O.Njj(y.startActivity.emit())}),n.k0s()()()()}if(2&v){const g=n.XpG(3);n.R7$(3),n.Y8G("translate",g.getLiveReviewTitleTranslationKey()),n.R7$(),n.Y8G("innerHTML",n.i5U(5,14,"session-zero-state_live-review-subtext",n.eq3(41,R,g.getActivityName())),n.npT),n.R7$(3),n.Y8G("tabindex",n.bMT(8,17,g.canStartActivity$$)?-1:0)("matTooltip",n.bMT(9,19,g.getSessionCreationDisabledMessage$$))("matTooltipDisabled",n.bMT(10,21,g.canStartActivity$$)),n.BMQ("aria-disabled",!1===n.bMT(11,23,g.canStartActivity$$)),n.R7$(5),n.Y8G("disabled",!1===n.bMT(13,25,g.canStartActivity$$)),n.BMQ("aria-hidden",!1===n.bMT(14,27,g.canStartActivity$$)),n.R7$(3),n.Y8G("tabindex",n.bMT(16,29,g.canStartActivity$$)?-1:0)("matTooltip",n.bMT(17,31,g.getSessionCreationDisabledMessage$$))("matTooltipDisabled",n.bMT(18,33,g.canStartActivity$$)),n.BMQ("aria-disabled",!1===n.bMT(19,35,g.canStartActivity$$)),n.R7$(5),n.Y8G("disabled",!1===n.bMT(21,37,g.canStartActivity$$)),n.BMQ("aria-hidden",!1===n.bMT(22,39,g.canStartActivity$$))}}function ut(v,I){if(1&v){const g=n.RV6();n.j41(0,"button",14),n.bIt("click",function(){O.eBV(g);const y=n.XpG(4);return O.Njj(y.inviteLearners.emit())}),n.k0s()}if(2&v){const g=n.XpG(4);n.AVh("primary-btn",!g.showCreateVideoButton)("secondary-btn",g.showCreateVideoButton)}}function L(v,I){if(1&v){const g=n.RV6();n.j41(0,"span",10),n.nI1(1,"async"),n.nI1(2,"async"),n.nI1(3,"async"),n.nI1(4,"async"),n.j41(5,"button",15),n.nI1(6,"async"),n.nI1(7,"translate"),n.nI1(8,"async"),n.bIt("click",function(){O.eBV(g);const y=n.XpG(4);return O.Njj(y.startActivity.emit())}),n.k0s()()}if(2&v){const g=n.XpG(4);n.Y8G("tabindex",n.bMT(1,7,g.canStartActivity$$)?-1:0)("matTooltip",n.bMT(2,9,g.getSessionCreationDisabledMessage$$))("matTooltipDisabled",n.bMT(3,11,g.canStartActivity$$)),n.BMQ("aria-disabled",!1===n.bMT(4,13,g.canStartActivity$$)),n.R7$(5),n.Y8G("disabled",!1===n.bMT(6,15,g.canStartActivity$$)),n.BMQ("aria-label",n.bMT(7,17,"activity-view_create-a-v
1ideo"))("aria-hidden",!1===n.bMT(8,19,g.canStartActivity$$))}}function lt(v,I){if(1&v){const g=n.RV6();n.j41(0,"button",16),n.bIt("click",function(){O.eBV(g);const y=n.XpG(4);return O.Njj(y.viewInstructions.emit())}),n.k0s(),n.j41(1,"span",10),n.nI1(2,"async"),n.nI1(3,"async"),n.nI1(4,"async"),n.nI1(5,"async"),n.j41(6,"button",12),n.nI1(7,"async"),n.nI1(8,"async"),n.bIt("click",function(){O.eBV(g);const y=n.XpG(4);return O.Njj(y.startActivity.emit())}),n.k0s()()}if(2&v){const g=n.XpG(4);n.R7$(),n.Y8G("tabindex",n.bMT(2,6,g.canStartActivity$$)?-1:0)("matTooltip",n.bMT(3,8,g.getSessionCreationDisabledMessage$$))("matTooltipDisabled",n.bMT(4,10,g.canStartActivity$$)),n.BMQ("aria-disabled",!1===n.bMT(5,12,g.canStartActivity$$)),n.R7$(5),n.Y8G("disabled",!1===n.bMT(7,14,g.canStartActivity$$)),n.BMQ("aria-hidden",!1===n.bMT(8,16,g.canStartActivity$$))}}function dt(v,I){if(1&v&&(n.j41(0,"ngx-zero-state",6)(1,"div",1),n.nrm(2,"img",2),n.k0s(),n.nrm(3,"p",3)(4,"p",4),n.nI1(5,"translate"),n.j41(6,"div",9),n.nVh(7,ut,1,4,"button",13),n.nVh(8,L,9,21,"span",10),n.nVh(9,lt,9,18),n.k0s()()),2&v){const g=n.XpG(3);n.R7$(3),n.Y8G("translate",g.noVideosTitleKey),n.R7$(),n.Y8G("innerHTML",n.i5U(5,5,g.noVideosSubtextKey,g.noVideosSubtextParams),n.npT),n.R7$(3),n.vxM(g.showInviteButton?7:-1),n.R7$(),n.vxM(g.showCreateVideoButton?8:-1),n.R7$(),n.vxM(g.showCreateVideoButton||g.showInviteButton?-1:9)}}function W(v,I){if(1&v){const g=n.RV6();n.j41(0,"button",16),n.bIt("click",function(){O.eBV(g);const y=n.XpG(4);return O.Njj(y.viewInstructions.emit())}),n.k0s()}}function X(v,I){if(1&v){const g=n.RV6();n.j41(0,"ngx-zero-state",8)(1,"div",1),n.nrm(2,"img",2),n.k0s(),n.nrm(3,"p",3)(4,"p",17),n.j41(5,"div",9),n.nVh(6,W,1,0,"button",18),n.j41(7,"span",10),n.nI1(8,"async"),n.nI1(9,"async"),n.nI1(10,"async"),n.nI1(11,"async"),n.j41(12,"button",19),n.nI1(13,"async"),n.nI1(14,"async"),n.bIt("click",function(){O.eBV(g);const y=n.XpG(3);return O.Njj(y.startActivity.emit())}),n.k0s()()()()}if(2&v){const g=n.XpG(3);n.R7$(3),n.Y8G("translate",g.getTitleTranslationKey()),n.R7$(),n.Y8G("translate",g.getSubtextTranslationKey()),n.R7$(2),n.vxM(g.isActivityTasksEnabled?-1:6),n.R7$(),n.Y8G("tabindex",n.bMT(8,10,g.canStartActivity$$)?-1:0)("matTooltip",n.bMT(9,12,g.getSessionCreationDisabledMessage$$))("matTooltipDisabled",n.bMT(10,14,g.canStartActivity$$)),n.BMQ("aria-disabled",!1===n.bMT(11,16,g.canStartActivity$$)),n.R7$(5),n.Y8G("translate",g.getButtonTranslationKey())("disabled",!1===n.bMT(13,18,g.canStartActivity$$)),n.BMQ("aria-hidden",!1===n.bMT(14,20,g.canStartActivity$$))}}function D(v,I){if(1&v&&n.nVh(0,gt,23,43,"ngx-zero-state",7)(1,dt,10,8,"ngx-zero-state",6)(2,X,15,22,"ngx-zero-state",8),2&v){let g;const x=n.XpG(2);n.vxM((g=x.getZeroStateStatus())===x.zeroStates.BATCH_CREATE_SESSION?0:g===x.zeroStates.NO_VIDEOS?1:g===x.zeroStates.START_ACTIVITY?2:-1)}}function nt(v,I){if(1&v&&n.nVh(0,ht,6,4,"ngx-zero-state",6)(1,D,3,1),2&v){const g=n.XpG();n.vxM(g.learnFromFeedbackState?0:1)}}var w=function(v){return v[v.BATCH_CREATE_SESSION=1]="BATCH_CREATE_SESSION",v[v.NO_VIDEOS=2]="NO_VIDEOS",v[v.START_ACTIVITY=3]="START_ACTIVITY",v}(w||{}),k=function(v){return v.NOT_SUBMITTED="NOT_SUBMITTED",v.NO_FEEDBACK_YET="NO_FEEDBACK_YET",v.FEEDBACK_HELD="FEEDBACK_HELD",v}(k||{});let U=(()=>{var v;class I{constructor(x,y,j,st,vt,pt,xt,J){this.sessionListDataSource=x,this.cdr=y,this.featureFlag=j,this.ngxActivityService=st,this.dialog=vt,this.translate=pt,this.selectedService=xt,this.Session=J,this.startActivity=new n.bkB,this.viewInstructions=new n.bkB,this.inviteLearners=new n.bkB,this.noVideosTitleKey="session-zero-state_no-videos",this.noVideosSubtextKey="session-zero-state_no-videos-instructor-subtext",this.noVideosSubtextParams={},this.showFilteredZeroState=!0,this.showInviteButton=!1,this.showCreateVideoButton=!1,this.showLearnerZeroState=!1,this.learnFromFeedbackState=null,this.zeroStates=w,this.learnFromFeedbackZeroStates=k,this.learnFromFeedbackContent={[k.NOT_SUBMITTED]:{title:"session-zero-state_no-submitted-videos-title",subtext:"session-zero-state_no-submitted-videos-subtext"},[k.NO_FEEDBACK_YET]:{title:"session-zero-state_no-feedback-title",subtext:"session-zero-state_no-feedback-subtext"},[k.FEEDBACK_HELD]:{title:"session-zero-state_feedback-hold-title",subtext:"session-zero-state_feedback-hold-subtext"}},this.componentDestroyed$$=new t.B,this.canStartActivity$$=new S.t(!1),this.get
1SessionCreationDisabledMessage$$=new S.t(""),this.TaskType=F.wP}ngOnInit(){this.getLicenseAndValidate()}ngOnDestroy(){this.componentDestroyed$$.next(!0),this.componentDestroyed$$.complete(),this.canStartActivity$$.complete(),this.getSessionCreationDisabledMessage$$.complete()}get isActivityTasksEnabled(){return this.selectedService.getActivity().show_tasks||this.featureFlag.isAvailable("ACTIVITY_PREVIEW_EDITOR_DIALOG")}getTitleTranslationKey(){const x=this.selectedService.getActivity();return this.isActivityTasksEnabled&&x.isConversationBoard()?"task-title_present-conversation-board":this.isActivityTasksEnabled&&x.isCommentOnly()?"task-title_present-comment-only":this.isActivityTasksEnabled?"activity-view_create-a-video":"session-zero-state_start-activity"}getSubtextTranslationKey(){const x=this.selectedService.getActivity();return this.isActivityTasksEnabled&&x.isConversationBoard()?"session-zero-state_no-videos-presenter-subtext-conversation-board":this.isActivityTasksEnabled&&x.isCommentOnly()?"session-zero-state_no-videos-presenter-subtext-comment-only":this.isActivityTasksEnabled?"session-zero-state_no-videos-presenter-subtext-activity-task":"session-zero-state_no-videos-presenter-subtext"}getButtonTranslationKey(){const x=this.selectedService.getActivity();return this.isActivityTasksEnabled&&x.isConversationBoard()?"activity-view_join-conversation":this.isActivityTasksEnabled&&x.isCommentOnly()?"activity-view_review-video":this.isActivityTasksEnabled?"activity-view_create-video":"session-zero-state_start-activity"}getZeroStateStatus(){return this.showLearnerZeroState?w.START_ACTIVITY:this.hasReviewerRoleOrHigher()?this.shouldDisplayCreateVideosForPresentersZeroState()?w.BATCH_CREATE_SESSION:w.NO_VIDEOS:w.START_ACTIVITY}shouldDisplayCreateVideosForPresentersZeroState(){const x=this.selectedService.getActivity();return this.hasInstructorRoleOrHigher()&&x&&x.live_session_enabled&&(!x.is_conversation||this.isGroupLiveReviewActivity(x))&&!x.has_single_recording_attempt}getLiveReviewTitleTranslationKey(){return this.isGroupLiveReviewActivity(this.selectedService.getActivity())?"session-zero-state_group-live-review-title":"session-zero-state_live-review-title"}getActivityName(){return this.selectedService.getActivity().name}createBatchSessions(){const x=this.selectedService.getActivity();this.Session.model({group_id:x.group_id,activity_id:x.activity_id,batch:!0}).save().then(()=>{this.sessionListDataSource.reload(),this.cdr.detectChanges()}).catch(j=>{422===j.status&&"NoPaidPresentersException"===j.data.error&&V.V.open(this.dialog,{data:{title:this.translate.instant("activity-view_no-paid-students-title"),message:this.translate.instant("activity-view_no-paid-students-message")}})})}hasInstructorRoleOrHigher(){return this.selectedService.getGroup().hasInstructorRole(!0)}hasReviewerRoleOrHigher(){return this.selectedService.getGroup().hasReviewerRole(!0)}isGroupLiveReviewActivity(x){return x.live_session_enabled&&x.is_conversation&&x.has_response_media}validateCanStartActivity(){this.canStartActivity$$.next(this.ngxActivityService.canStartActivity()),this.getSessionCreationDisabledMessage$$.next(this.ngxActivityService.getSessionCreationDisabledMessage())}getLicenseAndValidate(){this.selectedService.selectedSubject.asObservable().pipe((0,tt.Q)(this.componentDestroyed$$),(0,b.p)(x=>x.group)).subscribe(()=>{this.validateCanStartActivity()})}static#t=v=()=>(this.\u0275fac=function(y){return new(y||I)(n.rXU(r.Yo),n.rXU(z.gRc),n.rXU($.T),n.rXU(G.W),n.rXU(Y.bZ),n.rXU(q.c$),n.rXU(e.A),n.rXU(c.c))},this.\u0275cmp=n.VBU({type:I,selectors:[["session-zero-state"]],inputs:{taskType:"taskType",noVideosTitleKey:"noVideosTitleKey",noVideosSubtextKey:"noVideosSubtextKey",noVideosSubtextParams:"noVideosSubtextParams",showFilteredZeroState:"showFilteredZeroState",showInviteButton:"showInviteButton",showCreateVideoButton:"showCreateVideoButton",showLearnerZeroState:"showLearnerZeroState",learnFromFeedbackState:"learnFromFeedbackState"},outputs:{startActivity:"startActivity",viewInstructions:"viewInstructions",inviteLearners:"inviteLearners"},standalone:!1,decls:4,vars:3,consts:[[1,"zero-state-filtered"],["zero-state-gra
1phic",""],["src","https://staticassets.goreact.com/Sparkles.svg","alt","No Results"],["zero-state-title","",3,"translate"],["zero-state-subtext","",3,"innerHTML"],["zero-state-subtext","","translate","session-zero-state_no-videos-change-filters-subtext"],[1,"zero-state-no-video"],[1,"zero-state-live"],[1,"zero-state-start-activity"],["zero-state-body",""],["matTooltipPosition","above",3,"tabindex","matTooltip","matTooltipDisabled"],["translate","activity-view_create-videos",1,"btn","secondary-btn","create-videos-btn",3,"click","disabled"],["translate","session-zero-state_start-activity","data-cy","add-video",1,"btn","secondary-btn","start-activity-btn",3,"click","disabled"],["type","button","translate","activity-report_invite-learners","data-cy","invite-learners-primary",1,"btn","invite-learners-btn",3,"primary-btn","secondary-btn"],["type","button","translate","activity-report_invite-learners","data-cy","invite-learners-primary",1,"btn","invite-learners-btn",3,"click"],["type","button","translate","activity-view_create-video","data-cy","add-video",1,"btn","primary-btn","start-activity-btn","create-video-btn",3,"click","disabled"],["href","#","data-cy","view-instructions","translate","session-zero-state_view_instructions",1,"link-btn","view-instructions-btn",3,"click"],["zero-state-subtext","",3,"translate"],["href","#","data-cy","view-instructions","translate","session-zero-state_view_instructions",1,"link-btn","view-instructions-btn"],["data-cy","add-video",1,"btn","primary-btn","start-activity-btn",3,"click","translate","disabled"]],template:function(y,j){if(1&y&&(n.j41(0,"section"),n.nVh(1,Q,6,2,"ngx-zero-state",0),n.nI1(2,"async"),n.vZN(3,nt,2,1),n.k0s()),2&y){let st;n.R7$(),n.vxM((st=j.showFilteredZeroState&&n.bMT(2,1,j.sessionListDataSource.isFiltered$))?1:3,st)}},dependencies:[q.Mm,Z.oV,et.S,ot.Jj,q.D9],styles:["[_nghost-%COMP%]{min-height:fit-content;display:flex;flex-flow:column;justify-content:center;flex:1 0 auto}ngx-zero-state[_ngcontent-%COMP%] div[zero-state-graphic-bottom][_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:clamp(250px,40vw,100%);height:clamp(250px,40vh,100%);padding:3%;margin:13% 0%}ngx-zero-state[_ngcontent-%COMP%] div[zero-state-graphic][_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:clamp(70px,15vh,106px)}ngx-zero-state[_ngcontent-%COMP%] div[zero-state-body][_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px 1em;justify-content:center;margin-bottom:5px}"],changeDetection:0}))}return v(),I})()},44937(Mt,at,i){i.d(at,{E:()=>c});var n=i(76567);function e(t,S){if(1&t&&(n.j41(0,"span",2),n.EFF(1),n.k0s()),2&t){const b=S.$implicit;n.R7$(),n.JRh(b)}}let c=(()=>{var t;class S{constructor(tt){this.elementRef=tt}ngOnInit(){this.observeSize()}ngOnDestroy(){this.resizeObserver?.disconnect()}observeSize(){const V=this.elementRef.nativeElement.querySelector(".name-list");this.resizeObserver=new ResizeObserver(()=>{let F=!1,z=0;const O=this.elementRef.nativeElement.querySelector(".names-container");if(O){const{children:$}=O;let G;for(G=0;G<$.length;G++){const q=$[G].getBoundingClientRect(),Z=O.getBoundingClientRect();q.right>Z.right&&(F=!0,z++)}}const r=this.elementRef.nativeElement.querySelector(".overflow-count");if(r){r.style.display=F?"block":"none";const $=r.querySelector("span.overflow-counter");$&&($.textContent=`+ ${z}`)}}),this.resizeObserver.observe(V)}static#t=t=()=>(this.\u0275fac=function(V){return new(V||S)(n.rXU(n.aKT))},this.\u0275cmp=n.VBU({type:S,selectors:[["ellipsis-with-count"]],inputs:{nameList:"nameList"},standalone:!1,decls:6,vars:0,consts:[[1,"name-list"],[1,"names-container"],[1,"name"],[1,"overflow-count"],[1,"overflow-counter"]],template:function(V,F){1&V&&(n.j41(0,"div",0)(1,"div",1),n.Z7z(2,e,2,1,"span",2,n.fX1),n.k0s(),n.j41(4,"div",3),n.nrm(5,"span",4),n.k0s()()),2&V&&(n.R7$(2),n.Dyx(F.nameList))},styles:['@charset "UTF-8";[_nghost-%COMP%] .name-list[_ngcontent-%COMP%]{display:flex;white-space:nowrap}[_nghost-%COMP%] .name-list[_ngcontent-%COMP%] .names-container[_ngcontent-%COMP%]{display:inline;vertical-align:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] .name-list[_ngcontent-%COMP%] .names-container[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]:not(:last-child):after{vertical-align:inherit;content:"\\b7";margin:auto 5px;font-weight:700}[_nghost-%COMP%] .name-list[_ngcontent-%COMP%] .overflow-count[_ngcontent-%COMP%]{display:none}'],changeDetection:0}))}return t(),S})()},50057(Mt,at,i){i.d(at,{Y:()=>tt});var n=i(45919),e=i(76567),c=i(61865);
1function t(V,F){if(1&V){const z=e.RV6();e.j41(0,"img",4),e.bIt("load",function(){n.eBV(z);const r=e.XpG();return n.Njj(r.isLoaded=!0)}),e.k0s()}if(2&V){const z=e.XpG();e.Y8G("src",z.src,e.B4B),e.BMQ("crossorigin",z.determineCrossOriginValue())}}function S(V,F){if(1&V&&e.nrm(0,"i"),2&V){const z=e.XpG();e.HbH(e.VkB("",z.fallbackIcon," no-thumbnail"))}}function b(V,F){if(1&V&&(e.j41(0,"div",3),e.nrm(1,"span",5),e.j41(2,"span",6),e.EFF(3),e.nI1(4,"formatTime"),e.k0s()()),2&V){const z=e.XpG();e.R7$(3),e.JRh(e.bMT(4,1,z.duration))}}let tt=(()=>{var V;class F{constructor(){this.isLoaded=!1,this.crossorigin="anonymous"}shouldShowFallbackIcon(){return!this.src&&!!this.fallbackIcon}determineCrossOriginValue(){return this.src?.startsWith("https://img.youtube.com")?null:"anonymous"}static#t=V=()=>(this.\u0275fac=function(r){return new(r||F)},this.\u0275cmp=e.VBU({type:F,selectors:[["thumbnail"]],inputs:{src:"src",duration:"duration",fallbackIcon:"fallbackIcon"},standalone:!1,decls:4,vars:2,consts:[[1,"thumbnail-wrapper"],["alt","",1,"has-thumbnail",3,"src"],[3,"class"],[1,"duration"],["alt","",1,"has-thumbnail",3,"load","src"],[1,"cover"],[1,"text"]],template:function(r,$){1&r&&(e.j41(0,"div",0),e.nVh(1,t,1,2,"img",1)(2,S,1,3,"i",2),e.nVh(3,b,5,3,"div",3),e.k0s()),2&r&&(e.R7$(),e.vxM($.shouldShowFallbackIcon()?2:1),e.R7$(2),e.vxM($.duration>0?3:-1))},dependencies:[c.l],styles:["[_ngcontent-%COMP%]:root{--table-border: #e0e0e0;--tree-base-spacing: 25px;--tree-icon-width: 20px;--tree-icon-text-gap: 10px;--tree-indent-per-level: calc(var(--tree-icon-width) + var(--tree-icon-text-gap));--color-off-white: #F7F7F7;--color-emperor: #545454}[_nghost-%COMP%] .thumbnail-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;background-color:#516680;position:relative;overflow:hidden;width:inherit}[_nghost-%COMP%] .thumbnail-wrapper[_ngcontent-%COMP%] .duration[_ngcontent-%COMP%]{position:absolute;background-color:#333;color:#fff;right:8px;bottom:8px;padding-left:6px;padding-right:6px;height:20px;line-height:20px;font-size:.8em;border-radius:3px}[_nghost-%COMP%] .thumbnail-wrapper[_ngcontent-%COMP%] .has-thumbnail[_ngcontent-%COMP%]{object-fit:cover;width:inherit}[_nghost-%COMP%] .thumbnail-wrapper[_ngcontent-%COMP%] .no-thumbnail[_ngcontent-%COMP%]{color:#fff}"]}))}return V(),F})()},87685(Mt,at,i){i.d(at,{t:()=>U});var n=i(32439),e=i(13058),c=i(84989),t=i(63003),S=i(45919),b=i(76567),tt=i(4077),V=i(14799),F=i.n(V),z=i(82304),O=i(21512),r=i(37629),$=i(93087),G=i(72866),Y=i(81892),q=i(7313),Z=i(70241);let et=(()=>{var v;class I{static open(x,y){const j=y?.data?.dialogTitleId??I.getDialogTitleId();return(0,$.i)(x,I,{...y??{},data:{...y?.data??{},dialogTitleId:j},ariaLabelledBy:j})}static getDialogTitleId(){return`welcome-tour-dialog-title-${G.g.getId()}`}constructor(x,y,j){this.dialogRef=x,this.data=y,this.activeBrandService=j,this.data.dialogTitleId??=I.getDialogTitleId()}get translationParams(){return this.activeBrandService.getTranslationParams()}close(){this.dialogRef.close()}startTour(){this.dialogRef.close(!0)}static#t=v=()=>(this.\u0275fac=function(y){return new(y||I)(b.rXU(r.CP),b.rXU(r.Vh),b.rXU(Y.p))},this.\u0275cmp=b.VBU({type:I,selectors:[["app-welcome-tour-dialog"]],standalone:!1,decls:12,vars:5,consts:[["cdkTrapFocus","",1,"goreact-modal","welcome-tour-dialog"],[1,"goreact-modal-header"],["type","button",1,"close-btn",3,"click"],[1,"ficon-app-x"],[1,"goreact-modal-body"],["src","https://staticassets.goreact.com/sparkling-rocket.svg","alt","New Look graphic",1,"graphic"],["translate","lti-refresh-tour-modal-text",1,"text",3,"id"],["translate","lti-refresh-tour-modal-subtext",1,"sub-text",3,"translateParams"],[1,"goreact-modal-footer"],["translate","lti-refresh-tour-modal-get_started",1,"primary-btn","confirm-button",3,"click"],["translate","tour-skip",1,"tertiary-btn","cancel-button",3,"click"]],template:function(y,j){1&y&&(b.j41(0,"div",0)(1,"div",1)(2,"button",2),b.nI1(3,"translate"),b.bIt("click",function(){return j.close()}),b.nrm(4,"i",3),b.k0s()(),b.j41(5,"div",4),b.nrm(6,"img",5)(7,"p",6)(8,"p",7),b.k0s(),b.j41(9,"div",8)(10,"button",9),b.bIt("click",function(){return j.startTour()}),b.k0s(),b.j41(11,"button",10),b.bIt("click",function(){return j.close()}),b.k0s()()()),2&y&&(b.R7$(2),b.BMQ("aria-label",b.bMT(3,3,"common_close")),b.R7$(5),b.Y8G("id",j.data.dialogTitleId),b.R7$(),b.Y8G("translateParams",j.translationParams))},dependencies:[q.Mm,Z.kB,q.D9],styles:["[_ngcontent-%COMP%]:root{--table-border: #e0e0e0;--tree-base-spacing: 25px;
1--tree-icon-width: 20px;--tree-icon-text-gap: 10px;--tree-indent-per-level: calc(var(--tree-icon-width) + var(--tree-icon-text-gap));--color-off-white: #F7F7F7;--color-emperor: #545454}[_nghost-%COMP%] .welcome-tour-dialog[_ngcontent-%COMP%]{height:480px;max-width:450px}@media(max-width:768px){[_nghost-%COMP%] .welcome-tour-dialog[_ngcontent-%COMP%]{max-height:100vh;height:100vh;overflow:auto}}[_nghost-%COMP%] .goreact-modal-header[_ngcontent-%COMP%]{justify-content:flex-end}[_nghost-%COMP%] .goreact-modal-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:15px;padding:15px 30px}@media(max-width:992px){[_nghost-%COMP%] .goreact-modal-body[_ngcontent-%COMP%]{padding:0 30px}}[_nghost-%COMP%] .goreact-modal-body[_ngcontent-%COMP%] .graphic[_ngcontent-%COMP%]{height:150px;width:100%}@media(max-width:480px){[_nghost-%COMP%] .goreact-modal-body[_ngcontent-%COMP%] .graphic[_ngcontent-%COMP%]{height:100px}}[_nghost-%COMP%] .goreact-modal-body[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;font-size:24px;font-weight:700;text-align:center;justify-content:center}[_nghost-%COMP%] .goreact-modal-body[_ngcontent-%COMP%] .sub-text[_ngcontent-%COMP%]{display:flex;text-align:center;justify-content:center}[_nghost-%COMP%] .goreact-modal-footer[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}[_nghost-%COMP%] .goreact-modal-footer[_ngcontent-%COMP%] .primary-btn[_ngcontent-%COMP%]{order:0}@media(max-width:480px){[_nghost-%COMP%] .goreact-modal-body[_ngcontent-%COMP%]{padding:0 20px}}@media(max-width:768px){ .cdk-overlay-pane.mat-mdc-dialog-panel:has(.welcome-tour-dialog){max-width:unset}}"]}))}return v(),I})();var ot=i(55471);const nt="lti-refresh-tour",w={isOnboarding:!1,tourStartDate:i.n(ot)()("2024-03-25 00:00:00").toDate()};let k=(()=>{var v;class I{constructor(x,y,j,st,vt){this.translateFilter=x,this.dialog=y,this.ngZone=j,this.goTour=st,this.placementEngine=vt}startTour(x){this.goTour.canTourBeViewed(nt,w).then(()=>{this.ngZone.run(()=>{et.open(this.dialog,{disableClose:!0}).afterClosed().subscribe(j=>{j?this.getTour(x).start():this.goTour.markTourViewed(nt)})})}).catch(F().noop)}getTour(x){const y=this.translateFilter.instant("lti-refresh-tour-aria_label"),j={tourTitleAriaLabel:y,title:this.translateFilter.instant("lti-refresh-tour-breadcrumbs-title"),template:'<tour-step-body><span translate="lti-refresh-tour-breadcrumbs-message"></span></tour-step-body><tour-step-footer><button type="button" class="tertiary-btn" ng-click="$ctrl.tour.end()" translate="common_skip"></button> <button type="button" class="primary-btn" ng-click="$ctrl.tour.next()" translate="common_next"></button></tour-step-footer>',selector:"breadcrumbs",placement:this.placementEngine.POSITION.TOP},st={tourTitleAriaLabel:y,title:this.translateFilter.instant("lti-refresh-tour-filters-title"),template:'<tour-step-body><span translate="lti-refresh-tour-filters-message"></span></tour-step-body><tour-step-footer><button type="button" class="tertiary-btn" ng-click="$ctrl.tour.end()" translate="common_skip"></button> <button type="button" class="primary-btn" ng-click="$ctrl.tour.next()" translate="common_next"></button></tour-step-footer>',selector:".filter-bar > div",placement:this.placementEngine.POSITION.TOP},vt={tourTitleAriaLabel:y,title:this.translateFilter.instant("lti-refresh-tour-archive-title"),template:'<tour-step-body><span translate="lti-refresh-tour-archive-message"></span></tour-step-body><tour-step-footer><button type="button" class="tertiary-btn" ng-click="$ctrl.tour.end()" translate="common_skip"></button> <button type="button" class="primary-btn" ng-click="$ctrl.tour.next()" translate="common_next"></button></tour-step-footer>',selector:".nav-content",placement:this.placementEngine.POSITION.LEFT},pt={tourTitleAriaLabel:y,title:this.translateFilter.instant("lti-refresh-tour-tools-title"),template:'<tour-step-body><span translate="lti-refresh-tour-tools-message"></span></tour-step-body><tour-step-footer><button type="button" class="tertiary-btn" ng-click="$ctrl.tour.end()" translate="common_skip"></button> <button type="button" class="primary-btn" ng-click="$ctrl.tour.next()" translate="common_next"></button></tour-step-footer>',selector:".nav-bottom",placement:this.placementEngine.POSITION.BOTTOM},xt={tourTitleAriaLabel:y,title:this.translateFilter.instant("lti-refresh-tour-view_layout-title"),template:'<tour-step-body><span translate="lti-refresh-tour-view_layout-message"></span></tour-step-body><tour-step-footer><button type="button" class="tertiary-btn" ng-click="$ctrl.tour.end()" translate="common_skip"></button> <button type="button" class="primary-btn" ng-click="$ctrl.tour.next()" translate="common_next"></button></tour-step-footer>',selector:".filter-option .view-switcher",placement:this.placementEngine.POSITION.RIGHT},J={tourTitleAriaLabel:y,title:this.translateFilter.instant("lti-refresh-tour-account_settings-title"),template:'<tour-step-body><span translate="lti-refresh-tour-account_settings-message"></span></tour-step-body><tour-step-footer><button type="button" class="primary-btn" ng-click="$ctrl.tour.end()" translate="common_finish"></button></tour-step-footer>',selector:".header-menu",placement:this.placementEngine.POSITION.TOP},mt=[];return x&&mt.push(j),mt.push(st),mt.push(vt),mt.push(pt),mt.push(xt),mt.push(J),this.tour||(this.tour=this.goTour.defineTour({viewTrackKey:nt,constraints:w,steps:mt})),this.tour}static#t=v=()=>(this.\u0275fac=function(y){return new(y||I)(S.KVO(q.c$),S.KVO(r.bZ),S.KVO(b.SKi),S.KVO(z.Lp),S.KVO(O.BN))},this.\u0275prov=S.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}))}return v(),I})(),U=(()=>{var v;class I{constructor(x,y,j,st,vt){this.selectedService=x,this.termsService=y,this.tourService=j,this.dialog=st,this.ngZone=vt,this.isLTI=!1,this.environmentVarsService=n.N.getInstance(),this.isLTI=this.environmentVarsService.environmentIs(e.j.LTI)}showTermsOrTourWhenRequired(){this.isLTI&&new Promise(y=>{this.termsService.requiresUpdate().subscribe({next:()=>{this.ngZone.run(()=>{t.D.open(this.dialog).afterClosed().subscribe(()=>{y()})})},error:()=>{y()}})}).then(()=>
1{if(this.selectedService.getGroup().hasInstructorRole(!0)){const j=this.environmentVarsService.get(n.N.VAR.ENVIRONMENT).mode===e.d.COURSE_LEVEL;this.tourService.startTour(j)}})}static#t=v=()=>(this.\u0275fac=function(y){return new(y||I)(S.KVO(c.A),S.KVO(tt.b),S.KVO(k),S.KVO(r.bZ),S.KVO(b.SKi))},this.\u0275prov=S.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}))}return v(),I})()},40652(Mt,at,i){i.d(at,{t:()=>e});const e=(0,i(50482).t)("$q")}}]); 2//# sourceMappingURL=default-projects_go-modules_src_components_activity-view_activity-view_component_ts.c9f7bd4a4b50415f.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.