PageSourceSearch

https://staticassets.goreact.com/prod-client/app/projects_go-modul…task-sessions_module_ts.4461d1596b9a989b.js

js goreact.com collected 2026-09-24 21:45:55 UTC 53,137 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkdashboard=self.webpackChunkdashboard||[]).push([["projects_go-modules_src_components_activity-task-sessions_activity-task-sessions_module_ts"],{37672(Pe,H,n){n.d(H,{ActivityTaskSessionsModule:()=>ie});var R=n(14557),v=n(2302),K=n(14802),Q=n(83632),W=n(79664),J=n(1256),q=n(38318),tt=n(82681),it=n(31106),et=n(867),st=n(43018),nt=n(82986),ot=n(2082),at=n(36938),rt=n(43938),ct=n(76284),E=n(96169),lt=n(3391),dt=n(43855),w=n(62089),ut=n(12299),N=n(9335),t=n(76567),ht=n(47988),vt=n(41945),_t=n(84989),C=n(45607),O=n(35986),Ct=n(8202),f=n(11917),T=n(62338),b=n(32197),mt=n(72037),pt=n(32996),_=n(2734),p=n(84385),F=n(10275),gt=n(87341),St=n(60748);const g="activity-task-learner-tour";var d=n(61242),S=n(52836),k=n(49138),x=n(26236),G=n(70405),Tt=n(18871),xt=n(37571),j=n(55471),L=n(15719),bt=n(13058),X=n(32439),A=n(49705),kt=n(84943),Mt=n(43965),Pt=n(4050),Ot=n(27695),M=n(23400),At=n(22290),It=n(64387),$t=n(90370),Rt=n(70995),Et=n(14799),wt=n(42273),Nt=n(40652),Ft=n(33081),Vt=n(45871),y=n(11733),P=n(30667),Gt=n(28983),c=n(45919),jt=n(24122),Lt=n(53081),Xt=n(59893),Bt=n(57273),Dt=n(50521),zt=n(79808),Ut=n(78791),B=n(80093),Zt=n(6723),Yt=n(37629),I=n(7313),Ht=n(42347),Kt=n(93627),Qt=n(51832),D=n(25507),Wt=n(6619),Jt=n(38313),qt=n(76483),ti=n(82759),ii=n(48771),ei=n(28845),si=n(75501),ni=n(70133),oi=n(54185),$=n(83894),ai=n(7315),ri=n(78646),ci=n(84688),li=n(91708),di=n(79123),ui=n(733),hi=n(65195),vi=n(77451),_i=n(36211),Ci=n(18597),z=n(47227),U=n(49467),Z=n(82737),Y=n(74669);n(80799);const mi=["activityContainer"];function pi(o,r){if(1&o&&(t.j41(0,"div",2)(1,"h1",5),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"ngx-overview-navigation",6),t.k0s()),2&o){t.XpG(2);const s=t.r8f(2),i=t.r8f(6),e=t.XpG();t.R7$(2),t.JRh(t.bMT(3,2,"common_submissions")),t.R7$(2),t.Y8G("showInviteButton",s&&i&&!e.isGroupActivity())}}function gi(o,r){if(1&o){const s=t.RV6();t.j41(0,"button",8),t.nI1(1,"async"),t.bIt("click",function(){c.eBV(s);const e=t.XpG(5);return c.Njj(e.setScoredFilter(e.ScoreFilter.NO_SCORE))}),t.j41(2,"span"),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"button",9),t.nI1(6,"async"),t.bIt("click",function(){c.eBV(s);const e=t.XpG(5);return c.Njj(e.setScoredFilter(e.ScoreFilter.SCORED))}),t.j41(7,"span"),t.EFF(8),t.nI1(9,"translate"),t.k0s()()}if(2&o){const s=t.XpG(5);t.AVh("active",t.bMT(1,6,s.scoredFilter$)===s.ScoreFilter.NO_SCORE),t.R7$(3),t.JRh(t.bMT(4,8,"common_unscored")),t.R7$(2),t.AVh("active",t.bMT(6,10,s.scoredFilter$)===s.ScoreFilter.SCORED),t.R7$(3),t.JRh(t.bMT(9,12,"common_scored"))}}function Si(o,r){if(1&o&&t.nVh(0,gi,10,14),2&o){const s=t.XpG(4);t.vxM(s.scoredActivity()?0:-1)}}function yi(o,r){if(1&o){const s=t.RV6();
1t.j41(0,"task-details",10),t.bIt("navigateBack",function(){c.eBV(s);const e=t.XpG(4);return c.Njj(e.onNavigateBack())})("navigateForward",function(){c.eBV(s);const e=t.XpG(4);return c.Njj(e.onNavigateForward())})("openNavigator",function(){c.eBV(s);const e=t.XpG(4);return c.Njj(e.onOpenNavigator())}),t.k0s()}if(2&o){const s=t.XpG(4);t.Y8G("task",s.task)("totalTasks",s.totalTaskCount)("currentTaskIndex",s.currentTaskPosition)("previousButtonLabelKey",s.getTaskNavigatorBackLabelKey())}}function fi(o,r){if(1&o&&(t.j41(0,"div",3),t.nVh(1,Si,1,1)(2,yi,1,4,"task-details",7),t.k0s()),2&o){t.XpG(2);const s=t.r8f(0),i=t.XpG();t.R7$(),t.vxM(s===i.TaskType.Evaluate?1:2)}}function Ti(o,r){if(1&o&&(t.j41(0,"h2",4),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&o){const s=t.XpG(3);t.R7$(),t.JRh(t.bMT(2,1,s.taskDetailsSubtitle()))}}function xi(o,r){if(1&o&&(t.nVh(0,pi,5,4,"div",2),t.nVh(1,fi,3,1,"div",3),t.nVh(2,Ti,3,3,"h2",4)),2&o){t.XpG();const s=t.r8f(0),i=t.XpG();t.vxM(s===i.TaskType.Evaluate?0:-1),t.R7$(),t.vxM(i.shouldShowTaskTopSection(s)?1:-1),t.R7$(),t.vxM(i.shouldShowTaskDetail
1sSubtitle()?2:-1)}}function bi(o,r){if(1&o){const s=t.RV6();t.j41(0,"present-task-additional-settings",11),t.bIt("tasksUpdated",function(e){c.eBV(s);const a=t.XpG(2);return c.Njj(a.onTasksUpdated(e))}),t.k0s()}}function ki(o,r){1&o&&t.nrm(0,"react-task-additional-settings")}function Mi(o,r){if(1&o&&(t.j41(0,"mat-option",20),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&o){const s=r.$implicit,i=t.XpG(3);t.Y8G("value",s),t.R7$(),t.SpI(" ",t.bMT(2,2,i.sortOrderTranslations[s])," ")}}function Pi(o,r){1&o&&t.nrm(0,"feedback-hold",22)}function Oi(o,r){1&o&&t.nrm(0,"feedback-hold")}function Ai(o,r){if(1&o){const s=t.RV6();t.j41(0,"div",33)(1,"session-table",35),t.nI1(2,"async"),t.nI1(3,"async"),t.bIt("selectionToggled",function(e){c.eBV(s);const a=t.XpG(6);return c.Njj(a.onSessionSelectionToggled(e))})("goToSession",function(e){c.eBV(s);const a=t.XpG(6);return c.Njj(a.openSession(e))}),t.k0s()()}if(2&o){t.XpG();const s=t.r8f(0);t.XpG(4);const i=t.r8f(0),e=t.XpG();t.R7$(),t.Y8G("submitMode",i===e.TaskType.Submit)("allowSelection",e.shouldAllowSessionSelection(t.bMT(2,5,e.hasSubmittedSessions$)??!1))("selectedSessionIds",t.bMT(3,7,e.selectedSessionIds$))("isSubmittingSessions",e.isSubmittingSessions)("sessions",s)}}function Ii(o,r){if(1&o){const s=t.RV6();t.j41(0,"div",34)(1,"session-grid",36),t.nI1(2,"async"),t.nI1(3,"async"),t.bIt("selectionToggled",function(e){c.eBV(s);const a=t.XpG(6);return c.Njj(a.onSessionSelectionToggled(e))})("openSession",function(e){c.eBV(s);const a=t.XpG(6);return c.Njj(a.openSession(e))}),t.k0s()()}if(2&o){t.XpG();const s=t.r8f(0);t.XpG(4);const i=t.r8f(0),e=t.XpG();t.R7$(),t.Y8G("submitMode",i===e.TaskType.Submit)("allowSelection",e.shouldAllowSessionSelection(t.bMT(2,5,e.hasSubmittedSessions$)??!1))("selectedSessionIds",t.bMT(3,7,e.selectedSessionIds$))("isSubmittingSessions",e.isSubmittingSessions)("filteredSessions",s)}}function $i(o,r){if(1&o&&(t.SS7(0),t.nI1(1,"async"),t.nVh(2,Ai,4,9,"div",33),t.nVh(3,Ii,4,9,"div",34)),2&o){const s=t.XpG(4),i=t.XpG();t.bH3(t.bMT(1,2,i.filteredSessions$)),t.R7$(2),t.vxM(s===i.views.LIST?2:-1),t.R7$(),t.vxM(s===i.views.GRID?3:-1)}}function Ri(o,r){1&o&&(t.j41(0,"ngx-zero-state",32),t.nrm(1,"p",37)(2,"p",38),t.k0s())}function Ei(o,r){if(1&o&&(t.nVh(0,$i,4,5),t.nI1(1,"async"),t.vZN(2,Ri,3,0,"ngx-zero-state",32)),2&o){const s=t.XpG(4);t.vxM(!0!==t.bMT(1,1,s.shouldShowTestBailedView$)?0:2)}}function wi(o,r){if(1&o){const s=t.RV6();t.j41(0,"session-zero-state",39),t.nI1(1,"async"),t.bIt("startActivity",function(){c.eBV(s);const e=t.XpG(4);return c.Njj(e.preStartActivity())})("viewInstructions",function(){c.eBV(s);const e=t.XpG(4);return c.Njj(e.viewInstructions())})("inviteLearners",function(){c.eBV(s);const e=t.XpG(4);return c.Njj(e.openInviteModal())}),t.k0s()}if(2&o){t.XpG(3);const s=t.r8f(0),i=t.r8f(6),e=t.XpG();t.Y8G("noVideosTitleKey",e.getNoVideosTitleKey())("noVideosSubtextKey",e.getNoVideosSubtextKey())("noVideosSubtextParams",e.getNoVideosSubtextParams())("showFilteredZeroState",s!==e.TaskType.Evaluate)("showInviteButton",s===e.TaskType.Evaluate&&i)("showCreateVideoButton",s===e.TaskType.Evaluate&&e.isGroupActivity())("showLearnerZeroState",s===e.TaskType.Present&&e.isGroupActivity())("learnFromFeedbackState",t.bMT(1,9,e.learnFromFeedbackZeroState$))("taskType",s)}}function Ni(o,r){if(1&o){const s=t.RV6();t.j41(0,"menu")(1,"activity-context-menu",40),t.nI1(2,"async"),t.bIt("viewInstructions",function(){c.eBV(s);const e=t.XpG(4);return c.Njj(e.viewInstructions())})("onStartActivity",function(){c.eBV(s);const e=t.XpG(4);return c.Njj(e.preStartActivity())}),t.k0s()()}if(2&o){const s=t.XpG(4);t.R7$(),t.Y8G("canStartActivity",t.bMT(2,1,s.canStartActivity$$))}}function Fi(o,r){if(1&o){const s=t.RV6();t.j41(0,"div",30),t.bIt("contextmenu",function(e){c.eBV(s);const a=t.XpG(3);return c.Njj(a.openMenu(e))}),t.nVh(1,Ei,3,3)(2,wi,2,11,"session-zero-state",31),t.nVh(3,Ni,3,3,"menu"),t.nI1(4,"async"),t.k0s()}if(2&o){t.XpG(2);const s=t.r8f(2),i=t.XpG();t.R7$(),t.vxM(s?1:2),t.R7$(2),t.vxM(t.bMT(4,2,i.canStartActivity$$)&&!i.isConversationBoard()?3:-1)}}function Vi(o,r){if(1&o){const s=t.RV6();t.j41(0,"button",44),t.nI1(1,"translate"),t.bIt("click",function(){c.eBV(s);const e=t.XpG(4);return c.Njj(e.viewInstructions())}),t.j41(2,"span",45),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"span",46),t.EFF(6),t.nI1(7,"translate"),t.k0s()()}2&o&&(t.BMQ("aria-label",t.bMT(1,3,"session-zero-state_view_instructions")),t.R7$(3),t.JRh(t.bMT(4,5,"session-zero-state_view_instructions")),t.R7$(3),t.JRh(t.bMT(7,7,"session-zero-state_view_instructions_shortened")))}function Gi(o,r){if(1&o){const s=t.RV6();t.j41(0,"button",47),t.nI1(1,"translate"),t.bIt("click",function(){c.eBV(s);const e=t.XpG(4);return c.Njj(e.openInviteModal())}),t.k0s()}if(2&o){const s=t.XpG(4);
1t.Y8G("translate",s.isGroupActivity()?"activity-report_invite-learners":"common_invite"),t.BMQ("aria-label",t.bMT(1,2,s.isGroupActivity()?"activity-report_invite-learners-aria":"common_invite"))}}function ji(o,r){1&o&&(t.j41(0,"span",45),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"span",46),t.EFF(4),t.nI1(5,"translate"),t.k0s()),2&o&&(t.R7$(),t.JRh(t.bMT(2,2,"activity-view_create-video")),t.R7$(3),t.JRh(t.bMT(5,4,"activity-view_create-video-shortened")))}function Li(o,r){1&o&&(t.j41(0,"span",45),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"span",46),t.EFF(4),t.nI1(5,"translate"),t.k0s()),2&o&&(t.R7$(),t.JRh(t.bMT(2,2,"session-zero-state_start-activity")),t.R7$(3),t.JRh(t.bMT(5,4,"session-zero-state_start-activity_shortened")))}function Xi(o,r){if(1&o){const s=t.RV6();t.j41(0,"span",43),t.nI1(1,"async"),t.nI1(2,"async"),t.nI1(3,"async"),t.j41(4,"button",48),t.nI1(5,"async"),t.nI1(6,"translate"),t.bIt("click",function(){c.eBV(s);const e=t.XpG(4);return c.Njj(e.preStartActivity())}),t.nVh(7,ji,6,6)(8,Li,6,6),t.k0s()()}if(2&o){const s=t.XpG(4);t.Y8G("matTooltip",t.bMT(1,10,s.getSessionCreationDisabledMessage$$))("matTooltipDisabled",t.bMT(2,12,s.canStartActivity$$)),t.BMQ("aria-disabled",!1===t.bMT(3,14,s.canStartActivity$$)),t.R7$(4),t.AVh("secondary-btn",s.isActivityTasksEnabled&&!s.isGroupActivity())("primary-btn",!s.isActivityTasksEnabled||s.isGroupActivity()),t.Y8G("disabled",!1===t.bMT(5,16,s.canStartActivity$$)),t.BMQ("aria-label",t.bMT(6,18,s.isActivityTasksEnabled?"activity-view_create-a-video":"session-zero-state_start-activity")),t.R7$(3),t.vxM(s.isActivityTasksEnabled?7:8)}}function Bi(o,r){1&o&&t.nrm(0,"i",53)}function Di(o,r){if(1&o){const s=t.RV6();t.j41(0,"button",51),t.bIt("click",function(){c.eBV(s);const e=t.XpG(6);return c.Njj(e.cancelEditSubmissionMode())}),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"button",52),t.bIt("click",function(){c.eBV(s);const e=t.XpG(6);return c.Njj(e.submitSelectedSessions())}),t.nVh(4,Bi,1,0,"i",53),t.EFF(5),t.nI1(6,"translate"),t.k0s()}if(2&o){const s=t.XpG(6);t.Y8G("disabled",s.isSubmittingSessions),t.R7$(),t.SpI(" ",t.bMT(2,5,"common_cancel")," "),t.R7$(2),t.Y8G("disabled",s.isSubmittingSessions),t.R7$(),t.vxM(s.isSubmittingSessions?4:-1),t.R7$(),t.SpI(" ",t.bMT(6,7,"common_save")," ")}}function zi(o,r){if(1&o){const s=t.RV6();t.j41(0,"button",54),t.bIt("click",function(){c.eBV(s);const e=t.XpG(6);return c.Njj(e.enterEditSubmissionMode())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&o){const s=t.XpG(6);t.Y8G("disabled",s.isReadOnly()),t.R7$(),t.SpI(" ",t.bMT(2,2,"session-editor-panel_edit-submission")," ")}}function Ui(o,r){if(1&o&&t.nVh(0,Di,7,9)(1,zi,3,4,"button",50),2&o){const s=t.XpG(5);t.vxM(s.isEditingSubmission?0:1)}}function Zi(o,r){1&o&&t.nrm(0,"i",53)}function Yi(o,r){if(1&o){const s=t.RV6();t.j41(0,"button",55),t.nI1(1,"translate"),t.bIt("click",function(){c.eBV(s);const e=t.XpG(5);return c.Njj(e.submitSelectedSessions())}),t.nVh(2,Zi,1,0,"i",53),t.EFF(3),t.nI1(4,"translate"),t.k0s()}if(2&o){const s=t.XpG(5);t.Y8G("matTooltip",t.bMT(1,5,"session-editor-panel_disabled-submit-btn-tooltip"))("matTooltipDisabled",s.hasSelectedSessions)("disabled",s.isSubmittingSessions),t.R7$(2),t.vxM(s.isSubmittingSessions?2:-1),t.R7$(),t.SpI(" ",t.bMT(4,7,"common_submit")," ")}}function Hi(o,r){if(1&o&&(t.nVh(0,Ui,2,1),t.nI1(1,"async"),t.vZN(2,Yi,5,9,"button",49)),2&o){const s=t.XpG(4);t.vxM(!0===(t.bMT(1,1,s.hasSubmittedSessions$)??!1)?0:2)}}function Ki(o,r){if(1&o&&(t.nVh(0,Vi,8,9,"button",41),t.nVh(1,Gi,2,4,"button",42),t.nVh(2,Xi,9,20,"span",43),t.nVh(3,Hi,3,3)),2&o){t.XpG(2);const s=t.r8f(0),i=t.XpG();t.vxM(s===i.TaskType.Submit||i.isActivityTasksEnabled?-1:0),t.R7$(),t.vxM(i.canInvite()?1:-1),t.R7$(),t.vxM(i.isConversationBoard()||s===i.TaskType.Submit||s===i.TaskType.React?-1:2),t.R7$(),t.vxM(s===i.TaskType.Submit?3:-1)}}function Qi(o,r){if(1&o){const s=t.RV6();t.j41(0,"div",12),t.nrm(1,"session-list-search-result-info",13)(2,"session-search"),t.k0s(),t.j41(3,"filter-view-layout",14,0)(5,"div",15)(6,"div",16)(7,"div",17)(8,"mat-form-field",18)(9,"mat-label"),t.EFF(10),t.nI1(11,"translate"),t.k0s(),t.j41(12,"mat-select",19),t.Z7z(13,Mi,3,4,"mat-option",20,t.fX1),t.k0s(),t.nrm(15,"mat-icon",21),t.k0s()(),t.nVh(16,Pi,1,0,"feedback-hold",22),t.k0s(),t.j41(17,"div",23),t.nVh(18,Oi,1,0,"feedback-hold"),t.j41(19,"div",24),t.nrm(20,"session-list-search-result-info",13)(21,"session-search"),t.k0s()()(),t.j41(22,"div",25)(23,"div",24),t.nrm(24,"session-list-search-result-info",13)(25,"session-search"),t.k0s(),t.nrm(26,"toggle-grid-list-view"),t.k0s(),t.nVh(27,Fi,5,4,"div",26),t.j41(28,"div",27)(29,"data-source-zero-state",28),t.bIt("zeroStateChanged",function(e){c.eBV(s);const a=t.XpG(2);return c.Njj(a.zeroStateChanged(e))}),t.k0s()(),t.j41(30,"div",29),t.nVh(31,Ki,4,4),t.nI1(32,"async"),t.k0s()()}if(2&o){t.XpG();const s=t.r8f(0),i=t.r8f(4),e=t.XpG();t.R7$(),t.Y8G("filteredSessions",i),t.R7$(4),t.Y8G("hidden",e.dataSourceZeroState.hasZeroState&&0!==e.dataSourceZeroState.errorCode),t.R7$(),t.Y8G("formGroup",e.form),t.R7$(4),t.JRh(t.bMT(11,18,"common_sort-by")),t.R7$(3),t.Dyx(e.sortByOptions),t.R7$(3),t.vxM(e.shouldShowFeedbackHold()?16:-1),t.R7$(),t.AVh("no-feedback-hold",!e.shouldShowFeedbackHold()),t.R7$(),t.vxM(e.shouldShowFeedbackHold()?18:-1),t.R7$(2),t.Y8G("filteredSessions",i),t.R7$(2),t.AVh("no-feedback-hold",e.hasPresenterRole()||!e.shouldShowFeedbackHold()),t.Y8G("hidden",e.dataSourceZeroState.hasZeroState),t.R7$(2),t.Y8G("filteredSessions",i),t.R7$(3),t.vxM(e.dataSourceZeroState.hasZeroState||e.dataSourceZeroState.isLoading?-1:27),t.R7$(),t.Y8G("hidden",!e.dataSourceZeroState.hasZeroState&&!e.dataSourceZeroState.isLoading),t.R7$(),t.Y8G("dataSource",e.sessionListDataSource),t.R7$(),t.Y8G("hidden",e.dataSourceZeroState.hasZeroState||s===e.TaskType.Evaluate&&!e.isGroupActivity()),t.R7$(),t.vxM(t.bMT(32,20,e.shouldShowFooterButtons$)?31:-1)}}function Wi(o,r){if(1&o&&(t.SS7(0),t.nI1(1,"async"),t.SS7(2),t.nI1(3,"async"),t.SS7(4),t.nI1(5,"async"),t.SS7(6),t.nVh(7,xi,3,3),t.nVh(8,bi,1,0,"present-task-additional-settings")(9,ki,1,0,"react-task-additional-settings")(10,Qi,33,22)),2&o){const s=t.XpG(),i=t.bH3(t.bMT(1,2,s.taskType$));t.R7$(2),t.bH3(t.bMT(3,5,s.hasFilteredSessions$)),t.R7$(2),t.bH3(t.bMT(5,8,s.filteredSessions$)),t.R7$(2),t.bH3(!s.isEditorContextMode&&s.canInvite()),t.R7$(),t.vxM(i?7:-1),t.R7$(),t.vxM(s.shouldShowPresentTaskAdditionalSettings()?8:s.shouldShowReactAdditionalSettings()?9:s.isEditorContextMode?-1:10)}}const Ji=[{path:"",component:(()=>{var o;
1class r{constructor(i,e,a,l,u,h,m,ee,se,ne,oe,ae,re,ce,le,de,ue,he,ve,_e,Ce,me,pe,ge,Se,ye,fe,Te,xe,be,ke){this.sessionListDataSource=i,this.viewStateDataSource=e,this.ngxSessionService=a,this.taskService=l,this.cdr=u,this.ngxActivityService=h,this.licenseExpirationHandler=m,this.featureFlag=ee,this.ngxLicenseUpgradeService=se,this.dialog=ne,this.translate=oe,this.modal=ae,this.activityListDataSource=re,this.folderListDataSource=ce,this.routerService=le,this.activityEditModeService=de,this.route=ue,this.pulseTourService=he,this.selectedService=ve,this.userService=_e,this.MediaModel=Ce,this.Session=me,this.sessionStorage=pe,this.equipmentCheckModal=ge,this.activityInstructionsModal=Se,this.sessionCreationWizardService=ye,this.$q=fe,this.ngxGoToastService=Te,this.injector=xe,this.editorContext=be,this.activityViewComponent=ke,this.task=null,this.totalTaskCount=0,this.currentTaskPosition=0,this.dataSourceZeroState={isLoading:!0,hasZeroState:!1,errorCode:null},this.canStartActivity$$=new C.t(!1),this.getSessionCreationDisabledMessage$$=new C.t(""),this.learnFromFeedbackZeroState$=O.w,this.sortByOptions=Object.values(k.Q).filter(Me=>Me!==k.Q.DEFAULT),this.sortOrderTranslations=k.x,this.ScoreFilter=S.l$,this.views=G.V,this.TaskType=d.wP,this.destroy$=new Ct.B,this.tasks=[],this.activityStarted$$=new C.t(!1),this.selectedSessionIds$=new C.t(new Set),this.hasSubmittedSessions$=new C.t(!1),this.submitSelectionInitialized=!1,this.submitSelectionDirty=!1,this.latestSessions=[],this.isSubmittingSessions=!1,this.hasSelectedSessions=!1,this.isEditingSubmission=!1,this.taskType$=new C.t(null),this.currentTaskType=(0,ht.ot)(this.taskType$,{initialValue:null}),this.taskDetailsSubtitle=(0,N.EW)(()=>this.currentTaskType()===d.wP.React?"common_peer-videos":"common_my-videos"),this.isEditorContextMode=!1,this.environmentVarsService=X.N.getInstance(),this.form=new v.gE({sortBy:new v.MJ(k.Q.NEWEST)}),this.scoredFilter$=new C.t(S.l$.ALL)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.canStartActivity$$.complete(),this.taskType$.complete(),this.pulseTourService.cleanupTour(g)}ngOnInit(){this.isEditorContextMode=null!=this.editorContext,this.initializeTaskStreams(),null==this.editorContext?(this.initializeSessionListControls(),this.activityId=parseInt(this.routerService.getCurrentParams().activity_id,10),this.taskType$.next(this.routerService.getCurrentParams().type),this.route.params.pipe((0,pt.i)(1),(0,_.Q)(this.destroy$)).subscribe(i=>{const e=i.type;e&&e!==this.taskType$.value&&(this.taskType$.next(e),this.applyTaskSelection(e,!0))}),this.setMinePeerFilter(),this.setExcludeUnsubmittedFilter(),this.keepScoreFilterInSync(),this.taskService.getTasks(this.activityId).pipe((0,_.Q)(this.destroy$)).subscribe(i=>{this.updateTasks(i),this.applyTaskSelection(this.taskType$.value,!1)}),this.sessionListDataSource.connect().pipe((0,_.Q)(this.destroy$)).subscribe(i=>{this.latestSessions=[...i],this.updateHasSubmittedSessions(),this.syncSubmitSelectionState()}),this.shouldShowTestBailedView$=(0,f.z)([this.sessionListDataSource.connect(),this.activityStarted$$]).pipe((0,p.T)(([i,e])=>this.getCurrentActivity().has_single_recording_attempt&&this.selectedService.getGroup().hasPresenterRole()&&i.some(l=>!l.archived_at&&!l.started_at&&l.isOwner(this.userService.currentUser)&&l.hasViewedRecordingInstructions())&&!e)),this.shouldShowFooterButtons$=(0,f.z)({hasFilteredSessions:this.hasFilteredSessions$,isFiltered:this.sessionListDataSource.isFiltered$,shouldShowTestBailedView:this.shouldShowTestBailedView$}).pipe((0,p.T)(({hasFilteredSessions:i,isFiltered:e,shouldShowTestBailedView:a})=>(i||e)&&!a)),this.form.get("sortBy").valueChanges.pipe((0,_.Q)(this.destroy$)).subscribe(i=>this.sessionListDataSource.setSortBy(i)),this.getLicenseAndValidate(),this.initializeLearnerTour()):this.initializeEditorContextMode()}get isActivityTasksEnabled(){return this.getCurrentActivity().show_tasks||this.featureFlag.isAvailable("ACTIVITY_PREVIEW_EDITOR_DIALOG")}onNavigateBack(){const i=this.getAdjacentTask(-1);if(i)return this.isEditorContextMode||this.activityViewComponent?.setNextRouteAnnouncementPoliteness("assertive"),this.applyTaskSelection(i.type),void this.navigateToTask(i.type);this.isEditorContextMode&&2===this.currentTaskPosition&&this.editorContext?.openTaskList?.()}onNavigateForward(){const i=this.getAdjacentTask(1);i&&(this.isEditorContextMode||this.activityViewComponent?.setNextRouteAnnouncementPoliteness("assertive"),this.applyTaskSelection(i.type),this.navigateToTask(i.type))}onOpenNavigator(){this.isEditorContextMode?this.editorContext.openTaskList?.():this.ngxActivityService.openActivityInfoPanel().subscribe(i=>{i&&(this.applyTaskSelection(i.type),this.navigateToTask(i.type))})}getTaskNavigatorBackLabelKey(){return this.isEditorContextMode&&2===this.currentTaskPosition?"task-detail
1s_nav-back-to-list":"task-details_nav-back"}setScoredFilter(i){this.scoredFilter$.next(i),this.sessionListDataSource.setScoreFilter(i)}zeroStateChanged(i){this.dataSourceZeroState=i,this.cdr.detectChanges()}shouldShowFeedbackHold(){const i=this.getCurrentActivity();return this.hasInstructorRole()&&i&&i.isViewable("is_feedback_published")}hasInstructorRole(){const i=this.getEditorContextGroup();return null!=this.editorContext?i?.hasInstructorRole?.(!0)??!1:this.selectedService.getGroup().hasInstructorRole(!0)}hasPresenterRole(){const i=this.getEditorContextGroup();return null!=this.editorContext?i?.hasPresenterRole?.()??!1:this.selectedService.getGroup().hasPresenterRole()}scoredActivity(){return this.getCurrentActivity().total_score>0}isConversationBoard(){return this.getCurrentActivity().isConversationBoard()}openMenu(i){null==this.editorContext&&(2===i.button&&i.shiftKey||this.canStartActivity$$&&!this.getCurrentActivity().isConversationBoard()&&this.menuComponent.openMenu(i,this.activityContainer.nativeElement))}isLti(){return this.environmentVarsService.environmentIs(bt.j.LTI)}isReadOnly(){return this.environmentVarsService.get(X.N.VAR.READONLY)}openSession(i){if(null!=this.editorContext)return;const e=this.getCurrentActivity();return!i.isRecorded()&&e.isConversation()&&this.ngxSessionService.doesGroupSessionHaveMaxPresenterCount(i)?this.showSessionFullModal():!e.isSingleAttempt()||e.isCommentOnly()||i.media?void this.enterSession(i):this.showFailedSingleAttemptModal()}enterSession(i){if(null!=this.editorContext)return;const e=this.getCurrentActivity();e.isMulticamLiveReview()&&!i.isPosted()?i.hasMaxPresenterCount(e)?this.goToSession(i):this.confirmParticipation(i):e.isLiveSessionEnabled()&&!e.isConversation()&&i.isAwaitingStart()&&this.mayStart(i)?this.confirmParticipation(i,!0):!e.isConversation()||this.ngxSessionService.doesGroupSessionHaveMaxPresenterCount(i)||i.isRecorded()?this.goToSession(i):this.checkEquipment(i)}goToSession(i){null==this.editorContext&&(this.selectedService.setSession(this.Session.model(i)),this.routerService.navigateTo(y.V2.DASHBOARD_SESSION_VIEW,{session_id:i.session_id}))}preStartActivity(){if(null!=this.editorContext||!1===this.canStartActivity$$.value)return;const i=this.getCurrentActivity();i.isCommentOnlySingleAttempt()?this.modal.open(Rt._,!1,{data:{currentActivity:i}}).afterClosed().subscribe(e=>{e&&this.startActivity()}):this.startActivity()}startActivity(){if(null!=this.editorContext)return;this.selectedService.setSession(null);const i=this.getCurrentActivity(),e=this.selectedService.getGroup();return this.sessionCreationWizardService.start({activity:i,group:e,user:this.userService.currentUser,openRecordView:a=>(this.routerService.navigateTo(y.V2.DASHBOARD_SESSION_VIEW,{session_id:a.session_id},{queryParams:{feedbackMode:M.FA.VIEW,viewMode:M.k3.RECORD}}),this.$q.resolve())}).then(a=>{this.activityStarted$$.next(!0),a.viewed=!0;const l=this.Session.model(a);return this.selectedService.setSession(l),this.sessionListDataSource.addSession(l),this.hasPresenterRole()&&(this.activityListDataSource.reloadStats(),this.folderListDataSource.reloadStats(),i.has_single_recording_attempt&&this.getLicenseAndValidate()),(i.isCommentOnly()||i.isConversationBoard())&&this.goToSession(l),a}).catch(Et.noop)}viewInstructions(){null==this.editorContext&&this.modal.open(Ft.E)}canInvite(){return null==this.editorContext&&!this.isLti()&&(this.hasInstructorRole()||this.userService.currentUser.is_root_user)}openInviteModal(){null==this.editorContext&&Vt.N.open(this.dialog,{data:{group:this.selectedService.getGroup()}})}shouldShowPresentTaskAdditionalSettings(){return this.taskType$.value===d.wP.Present&&this.isEditingActivity()}shouldShowReactAdditionalSettings(){return this.taskType$.value===d.wP.React&&this.isEditingActivity()}onTasksUpdated(i){this.editorContext?.updateTasks(i),this.updateTasks(i),this.applyTaskSelection(this.taskType$.value,!1)}
1shouldShowTaskDetailsSubtitle(){if(this.isEditorContextMode)return!1;const i=this.routerService.getCurrentRouteName(),e=this.routerService.getCurrentParams();return i===y.V2.DASHBOARD_ACTIVITY_TASK&&e.type&&"evaluate"!==e.type}shouldShowTaskTopSection(i){return(!this.isEditorContextMode||i!==d.wP.Evaluate)&&(i!==d.wP.Evaluate||this.scoredActivity())}initializeTaskStreams(){if(this.isEditorContextMode)return this.filteredSessions$=(0,T.of)([]),this.learnFromFeedbackZeroState$=(0,T.of)(null),this.currentView$=(0,T.of)(G.V.LIST),this.hasFilteredSessions$=(0,T.of)(!1),void(this.shouldShowFooterButtons$=(0,T.of)(!1));this.filteredSessions$=(0,f.z)({sessions:this.sessionListDataSource.connect(),taskType:this.taskType$.pipe((0,b.p)(i=>null!=i))}).pipe((0,p.T)(({sessions:i,taskType:e})=>this.filterSessionsByTaskType(i,e))),this.learnFromFeedbackZeroState$=(0,f.z)({sessions:this.sessionListDataSource.connect(),taskType:this.taskType$.pipe((0,b.p)(i=>null!=i))}).pipe((0,p.T)(({sessions:i,taskType:e})=>this.getLearnFromFeedbackZeroState(i,e)),(0,F.F)()),this.currentView$=this.viewStateDataSource.viewState$,this.hasFilteredSessions$=this.filteredSessions$.pipe((0,p.T)(i=>i.length>0))}initializeEditorContextMode(){(0,N.QZ)(()=>{const i=this.editorContext.activity(),e=this.editorContext.selectedTaskType(),a=this.editorContext.tasks();if(null!=i){if(this.activityId=i.activity_id,this.updateTasks(a),null==e)return void this.clearTaskSelection();this.applyTaskSelection(e,!1)}},{injector:this.injector})}updateTasks(i){const e=this.isEditorContextMode?i.filter(a=>a.type!==d.wP.Evaluate&&null==a.deleted_at):i;this.tasks=[...e].sort((a,l)=>(a.sort_order??0)-(l.sort_order??0)),this.totalTaskCount=this.isEditorContextMode&&this.tasks.length>0?this.tasks.length+1:this.tasks.length,this.isEditorContextMode||this.activityEditModeService.setOriginalTasks(this.tasks)}clearTaskSelection(){this.taskType$.next(null),this.task=null,this.currentTaskPosition=0}applyTaskSelection(i,e=!0){if(null==i||this.isEditorContextMode&&i===d.wP.Evaluate)return;this.taskType$.next(i);const a=this.getCurrentTasks(),l=a.findIndex(u=>u.type===i);this.task=l>=0?a[l]:null,this.currentTaskPosition=l>=0?l+(this.isEditorContextMode?2:1):0,i!==d.wP.Submit?this.resetSubmitSelectionState():this.syncSubmitSelectionState(),e&&!this.isEditorContextMode&&(this.setMinePeerFilter(),this.setExcludeUnsubmittedFilter(),this.keepScoreFilterInSync())}getAdjacentTask(i){if(!this.task)return null;const e=this.tasks.findIndex(l=>l.type===this.taskType$.value);if(-1===e)return null;const a=e+i;return a<0||a>=this.tasks.length?null:this.tasks[a]}navigateToTask(i){if(null!=this.editorContext)return void this.editorContext.selectTask(i);const e=this.routerService.getCurrentQueryParams();this.routerService.navigateTo(y.V2.DASHBOARD_ACTIVITY_TASK,{activity_id:this.activityId,type:i},{queryParams:e})}getCurrentActivity(){return null!=this.editorContext?this.editorContext.activity():this.selectedService.getActivity()}getEditorContextGroup(){const i=this.editorContext?.group?.();return i??null}getCurrentTasks(){return this.editorContext?.tasks()??this.activityEditModeService.currentTasks()}initializeSessionListControls(){this.form.get("sortBy").setValue(this.sessionListDataSource.getCurrentSort(),{emitEvent:!1}),this.scoredFilter$.next(this.sessionListDataSource.getCurrentScoreFilter())}isEditingActivity(){return this.editorContext?.isEditMode()??this.activityEditModeService.isEditMode()}validateCanStartActivity(){this.canStartActivity$$.next(this.ngxActivityService.canStartActivity()),this.getSessionCreationDisabledMessage$$.next(this.ngxActivityService.getSessionCreationDisabledMessage());const i=this.selectedService.getLicense();i&&this.licenseExpirationHandler.displayLicenseExpirationWarningToastIfNeeded(i)}getLicenseAndValidate(){this.selectedService.selectedSubject.asObservable().pipe((0,_.Q)(this.destroy$),(0,b.p)(i=>i.group)).subscribe(i=>{this.isLti()&&this.hasInstructorRole()&&this.featureFlag.isAvailable("AI_TRIAL")&&i.group.license_trial_exists&&i.license?.salesforce_license.is_free_trial&&(!i.license.is_active||j().isAfter(j.utc(i.license.ends_at)))&&this.handleExpiredLicenseTrial(i.license).subscribe(),this.validateCanStartActivity()})}handleExpiredLicenseTrial(i){return this.ngxLicenseUpgradeService.upgradeOrPurchase(i.trial.previous_license,!0,!0,!0).pipe((0,mt.n)(({requestUpgrade:e,shouldRestart:a})=>a?this.handleExpiredLicenseTrial(i):e?this.ngxLicenseUpgradeService.handleLicenseUpgradeRequest
1(i.trial.previous_license.id):O.w),(0,_.Q)(this.destroy$))}showSessionFullModal(){A.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")}})}showFailedSingleAttemptModal(){A.V.open(this.dialog,{data:{title:this.translate.instant("single-attempt-activity_no-recording"),message:this.translate.instant("feedback-session-failed-single-attempt")}})}confirmParticipation(i,e=!1){const a=this.userService.currentUser;kt.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(u=>{u?e?this.startLiveReview(i):this.checkEquipment(i):!1===u&&(i.removePresenter(a),this.sessionListDataSource.editSession(i),this.goToSession(i))})}startLiveReview(i){var e=this;let a=Promise.resolve(null);i.media||(a=new Promise(function(){var l=(0,ut.A)(function*(u,h){const m=yield e.MediaModel.createFor(Mt.g.OPENTOK,i.group_id);i.setMedia(m),i.save(),u(null)});return function(u,h){return l.apply(this,arguments)}}())),a.then(()=>{this.showInstructionsThenGoToSession(i)})}mayStart(i){const e=this.getCurrentActivity(),a=this.selectedService.getGroup();let u=i.mayPublish(this.userService.currentUser,a,e);return i.source_media?.isPending()&&(u=!1),u}showInstructionsThenGoToSession(i){const e=this.getCurrentActivity(),a=this.userService.currentUser;if(e.hasRecordingInstructions()||this.isHeadPhonesInstructionsRequired(i)){const l=this.selectedService.getGroup(),u=e.hasRecordingInstructions()&&!!e.recording_instructions.media&&!l.license_trial_exists,h=this.activityInstructionsModal.open({focusReturnSelector:'[data-cy="comment-tab-button"]',modalData:{activity:e,mode:Ot.g.RECORDING,showHeadPhones:this.isHeadPhonesInstructionsRequired(i),embiggen:u}});h.opened.then(()=>{i.hasViewedRecordingInstructions()||i.setViewedRecordingInstructions()}),h.result.then(()=>{this.addPresenterThenGoToRecordSession(i,a)})}else this.addPresenterThenGoToRecordSession(i,a)}addPresenterThenGoToRecordSession(i,e){return Promise.resolve(i.addPresenter(e)).then(()=>{this.sessionListDataSource.editSession(i),this.selectedService.setSession(i),this.routerService.navigateTo(y.V2.DASHBOARD_SESSION_VIEW,{session_id:i.session_id},{queryParams:{feedbackMode:M.FA.VIEW,viewMode:M.k3.RECORD}})})}checkEquipment(i){const e=this.getCurrentActivity();if(e.isEquipmentCheckRequired(this.sessionStorage))try{this.equipmentCheckModal.open({activity:e,session:i,focusReturnSelector:'[data-cy="add-video"]'}).result.then(()=>{this.showInstructionsThenGoToSession(i)})}catch{A.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(i)}isHeadPhonesInstructionsRequired(i){const e=i.source_media||this.getCurrentActivity().source_media?.media;return!!e&&e.hasAudio()}onSessionSelectionToggled(i){if(null!=this.editorContext||!i||!i.session_id||this.taskType$.value!==d.wP.Submit)return;this.submitSelectionDirty=!0;const e=new Set(this.selectedSessionIds$.value);e.has(i.session_id)?e.delete(i.session_id):e.add(i.session_id),this.selectedSessionIds$.next(e),this.hasSelectedSessions=e.size>0}submitSelectedSessions(){if(null!=this.editorContext||this.taskType$.value!==d.wP.Submit||this.isSubmittingSessions)return;const i=Array.from(this.selectedSessionIds$.value);!this.hasSubmittedSessions$.value&&0===i.length||(this.isSubmittingSessions=!0,this.ngxSessionService.syncSubmitSessions(this.activityId,i).pipe((0,gt.j)(()=>{this.isSubmittingSessions=!1,this.cdr.markForCheck()})).subscribe({next:()=>{this.submitSelectionDirty=!1,this.submitSelectionInitialized=!1,this.isEditingSubmission=!1,this.ngxGoToastService.createToast({type:"success",message:this.translate.instant("activity-task-sessions_submit-success")}),this.sessionListDataSource.reload()},error:e=>{const a=e?.status===vt.kG.Forbidden?this.translate.instant("activity-task-se
1ssions_unsubmit-forbidden"):e?.error?.message??this.translate.instant("activity-task-sessions_submit-error");this.ngxGoToastService.createToast({type:"error",message:a})}}))}syncSubmitSelectionState(i=!1){if(this.taskType$.value!==d.wP.Submit)return void this.resetSubmitSelectionState();if(!i&&(this.submitSelectionDirty||this.submitSelectionInitialized)||!this.latestSessions?.length)return;const e=this.latestSessions.filter(a=>a.isPosted()).map(a=>a.session_id);this.selectedSessionIds$.next(new Set(e)),this.submitSelectionInitialized=!0}resetSubmitSelectionState(){this.submitSelectionInitialized=!1,this.submitSelectionDirty=!1,this.selectedSessionIds$.value.size>0&&this.selectedSessionIds$.next(new Set)}updateHasSubmittedSessions(){const i=this.latestSessions.some(e=>e.isPosted());this.hasSubmittedSessions$.next(i),i||(this.isEditingSubmission=!1)}enterEditSubmissionMode(){null!=this.editorContext||this.isReadOnly()||(this.isEditingSubmission=!0)}cancelEditSubmissionMode(){null==this.editorContext&&(this.submitSelectionDirty=!1,this.submitSelectionInitialized=!1,this.syncSubmitSelectionState(!0),this.isEditingSubmission=!1)}shouldAllowSessionSelection(i){return this.isEditingSubmission||!i}getNoVideosTitleKey(){const i=this.taskType$.value;return i===d.wP.Evaluate?this.isGroupActivity()?"activity-view_create-a-video":"session-zero-state_no-submissions":i===d.wP.React?"session-zero-state_no-submissions-peer":"session-zero-state_no-videos"}getNoVideosSubtextKey(){return this.taskType$.value===d.wP.Evaluate?this.isGroupActivity()&&this.canInvite()?"session-zero-state_group-no-submissions-subtext":this.canInvite()?"session-zero-state_no-submissions-subtext":"session-zero-state_no-submissions-subtext-lti":"session-zero-state_no-videos-instructor-subtext"}getNoVideosSubtextParams(){return this.isGroupActivity()&&this.canInvite()?{groupName:this.selectedService.getGroup().name}:{}}setMinePeerFilter(){if(this.isEditorContextMode)return;const i=this.getCurrentActivity(),e=this.taskType$.value;null==i||null==e||(e===d.wP.Present?i.peer_review&&this.isLiveSessionEnabled(i)||this.isConversationBoardActivity(i)?this.sessionListDataSource.setMinePeerFilter(x.E.ALL):this.sessionListDataSource.setMinePeerFilter(x.E.MINE):[d.wP.Reflect,d.wP.Submit,d.wP.Review].includes(e)?this.sessionListDataSource.setMinePeerFilter(x.E.MINE):e===d.wP.React?this.sessionListDataSource.setMinePeerFilter(x.E.PEER):e===d.wP.Evaluate&&this.sessionListDataSource.setMinePeerFilter(x.E.ALL))}setExcludeUnsubmittedFilter(){const i=this.getCurrentActivity();this.sessionListDataSource.setExcludeUnsubmitted(this.taskType$.value===d.wP.Evaluate&&!this.isLiveSessionEnabled(i))}keepScoreFilterInSync(){if(this.isEditorContextMode)return;if(this.taskType$.value!==d.wP.Evaluate)return void this.sessionListDataSource.setScoreFilter(S.l$.ALL);const i=this.getCurrentActivity();if(null!=i)if(i.total_score>0){const e=this.scoredFilter$.value;e===S.l$.ALL?this.setScoredFilter(S.l$.NO_SCORE):this.sessionListDataSource.setScoreFilter(e)}else this.sessionListDataSource.setScoreFilter(S.l$.ALL)}isLiveSessionEnabled(i){return"function"==typeof i.isLiveSessionEnabled?i.isLiveSessionEnabled():!0===i.live_session_enabled}isGroupActivity(){const i=this.getCurrentActivity();return null!=i&&("function"==typeof i.isConversation?i.isConversation():i.is_conversation)&&i.has_response_media&&!this.isLiveSessionEnabled(i)}isConversationBoardActivity(i){return"function"==typeof i.isConversationBoard&&i.isConversationBoard()}filterSessionsByTaskType(i,e){return e===d.wP.Review?!1===this.getCurrentActivity().is_feedback_published?[]:i.filter(l=>null!=l.posted_at&&this.hasOtherFeedback(l)):i}getLearnFromFeedbackZeroState(i,e){if(e!==d.wP.Review||!i.length)return null;const a=i.filter(h=>null!=h.posted_at);return a.length?!1===this.getCurrentActivity().is_feedback_published?P.$3.FEEDBACK_HELD:a.filter(h=>this.hasOtherFeedback(h)).length?null:P.$3.NO_FEEDBACK_YET:P.$3.NOT_SUBMITTED}hasOtherFeedback(i){return this.getNumOtherComments(i)>0||this.getNumOtherRubrics(i)>0}getNumOtherComments(i){const e=Number(i.num_comments)||0,a=Number(i.num_my_comments)||0,l=Number(i.num_ai_comments)||0,u=Math.max(e-l,0);return Math.max(u-a,0)}getNumOtherRubrics(i){const e=Number(i.num_rubrics)||0,a=Number(i.num_my_rubrics)||0;return Math.max(e-a,0)}initializeLearnerTour(){this.selectedService.getGroup().hasPresenterRole()&&(0,f.z)({tasks:this.taskService.getTasks(this.activityId),taskType:this.taskType$.pipe((0,b.p)(i=>null!=i))}).pipe((0,p.T)(({tasks:i,taskType:e})=>{const l=[...i].sort((h,m)=>
1(h.sort_order??0)-(m.sort_order??0)).filter(h=>!h.completed),u=l[0]??null;return{currentTaskType:e,firstIncompleteTaskType:u?.type??null,incompleteTaskCount:l.length}}),(0,F.F)((i,e)=>i.currentTaskType===e.currentTaskType&&i.firstIncompleteTaskType===e.firstIncompleteTaskType&&i.incompleteTaskCount===e.incompleteTaskCount),(0,_.Q)(this.destroy$)).subscribe(({currentTaskType:i,firstIncompleteTaskType:e,incompleteTaskCount:a})=>{if(null!=e)return i===e?(1===a&&this.pulseTourService.completeTour(g),void this.pulseTourService.cleanupTour(g)):(this.pulseTourService.cleanupTour(g),void this.startLearnerTour());this.pulseTourService.cleanupTour(g)})}startLearnerTour(){const e=function ft(o){return{viewTrackKey:g,steps:o,constraints:{tourStartDate:new Date("2026-03-01"),isOnboarding:!1},isDynamic:!0}}([{completeSelectors:['[data-tour="task-item-incomplete"]'],pulse:{selectors:['[data-tour="task-item-incomplete"]']}}]);this.pulseTourService.startTour(e).pipe((0,_.Q)(this.destroy$),(0,St.W)(()=>O.w)).subscribe()}static#t=o=()=>(this.\u0275fac=function(e){return new(e||r)(t.rXU(Lt.Yo),t.rXU(Xt.W),t.rXU(Bt.z),t.rXU(Dt.O),t.rXU(jt.gRc),t.rXU(zt.W),t.rXU(Ut.n),t.rXU(B.T),t.rXU(Zt.A),t.rXU(Yt.bZ),t.rXU(I.c$),t.rXU(Ht.x),t.rXU(Kt.HN),t.rXU(Qt.s3),t.rXU(y.HM),t.rXU(D.U),t.rXU(Wt.nX),t.rXU(Jt.N),t.rXU(_t.A),t.rXU(xt.u),t.rXU(Pt.K),t.rXU(Tt.c),t.rXU(At.v),t.rXU(It.Bd),t.rXU($t.N),t.rXU(wt.d),t.rXU(Nt.t),t.rXU(qt.G),t.rXU(c.zZn),t.rXU(Gt.m,8),t.rXU(ti.F,8))},this.\u0275cmp=t.VBU({type:r,selectors:[["ngx-activity-task-sessions"]],viewQuery:function(e,a){if(1&e&&(t.GBs(L.Z,5),t.GBs(mi,5,t.aKT)),2&e){let l;t.mGM(l=t.lsd())&&(a.menuComponent=l.first),t.mGM(l=t.lsd())&&(a.activityContainer=l.first)}},standalone:!1,decls:3,vars:5,consts:[["activityContainer",""],[1,"activity-task-sessions"],[1,"submissions-header"],["id","task-top-section"],[1,"task-detail
1s-subtitle"],["id","unscored-title"],[3,"showInviteButton"],[3,"task","totalTasks","currentTaskIndex","previousButtonLabelKey"],["id","unscored-filter",1,"score-tab",3,"click"],["id","scored-filter",1,"score-tab",3,"click"],[3,"navigateBack","navigateForward","openNavigator","task","totalTasks","currentTaskIndex","previousButtonLabelKey"],[3,"tasksUpdated"],[1,"tools-mobile"],[3,"filteredSessions"],["id","activity-view-container",1,"layout"],["filter-view-filter-bar","",1,"filter-bar",3,"hidden"],[1,"filter-view",3,"formGroup"],[1,"sort-container"],["goSelect",""],["formControlName","sortBy","disableOptionCentering","","panelClass","offsetPanel"],[3,"value"],["matIconSuffix","",1,"ficon-app-chevron-down"],[1,"mobile-only"],[1,"tools-desktop-tablet"],[1,"search-container"],["filter-view-options-bar","",1,"filter-option",3,"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"],["filter-view-content","",1,"filter-content",3,"contextmenu"],[3,"noVideosTitleKey","noVideosSubtextKey","noVideosSubtextParams","showFilteredZeroState","showInviteButton","showCreateVideoButton","showLearnerZeroState","learnFromFeedbackState","taskType"],["data-cy","bailed-test",1,"zero-state-single-attempt-activity"],[1,"list-view"],[1,"grid-view"],[3,"selectionToggled","goToSession","submitMode","allowSelection","selectedSessionIds","isSubmittingSessions","sessions"],[3,"selectionToggled","openSession","submitMode","allowSelection","selectedSessionIds","isSubmittingSessions","filteredSessions"],["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","inviteLearners","noVideosTitleKey","noVideosSubtextKey","noVideosSubtextParams","showFilteredZeroState","showInviteButton","showCreateVideoButton","showLearnerZeroState","learnFromFeedbackState","taskType"],[3,"viewInstructions","onStartActivity","canStartActivity"],[1,"link-btn","view-instructions-btn"],[1,"secondary-btn","invite-btn",3,"translate"],["matTooltipPosition","above",3,"matTooltip","matTooltipDisabled"],[1,"link-btn","view-instructions-btn",3,"click"],[1,"regular"],[1,"shortened"],[1,"secondary-btn","invite-btn",3,"click","translate"],["data-cy","add-video","disabledInteractive","",1,"btn","start-activity-btn",3,"click","disabled"],["type","button","data-cy","submit-task-btn","disabledInteractive","",1,"btn","primary-btn","submit-task-btn",3,"matTooltip","matTooltipDisabled","disabled"],["disabledInteractive","","type","button",1,"btn","secondary-btn","edit-submission-btn",3,"disabled"],["type","button",1,"btn","tertiary-btn","cancel-edit-submission-btn",3,"click","disabled"],["type","button",1,"btn","primary-btn","submit-task-btn",3,"click","disabled"],["aria-hidden","true",1,"ficon-spinner","ficon-spin"],["disabledInteractive","","type","button",1,"btn","secondary-btn","edit-submission-btn",3,"click","disabled"],["type","button","data-cy","submit-task-btn","disabledInteractive","",1,"btn","primary-btn","submit-task-btn",3,"click","matTooltip","matTooltipDisabled","disabled"]],template:function(e,a){if(1&e&&(t.j41(0,"div",1),t.nVh(1,Wi,11,12),t.nI1(2,"async"),t.k0s()),2&e){let l;t.AVh("activity-task-sessions--editor-context",a.isEditorContextMode),t.R7$(),t.vxM((l=t.bMT(2,3,a.currentView$))?1:-1,l)}},dependencies:[ii.T,ei.y,si.o,ni.f,v.BC,v.cb,oi.c,$.rl,$.nJ,$.yw,ai.An,ri.VO,ci.wT,li.oV,L.Z,di.S,v.j4,v.JD,ui.s,hi.T,vi.S,_i.S,P.tK,I.Mm,Ci.m,z.i,E.Z,U.I,Z.l,Y.H,R.Jj,I.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%]{flex:1}[_nghost-%COMP%]   .submissions-header[_ngcontent-%COMP%]{margin:20px 20px 0;display:flex;align-items:center}
1[_nghost-%COMP%]   .task-details-subtitle[_ngcontent-%COMP%]{margin:0 0 0 27px;font-size:14px;font-weight:700}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}[_nghost-%COMP%]   .activity-task-sessions.activity-task-sessions--editor-context[_ngcontent-%COMP%]{max-width:800px}[_nghost-%COMP%]   .activity-task-sessions.activity-task-sessions--editor-context[_ngcontent-%COMP%]   #task-top-section[_ngcontent-%COMP%]{margin:0 0 15px;padding-bottom:20px}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   .loading-thumbnail[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:#f7f7f7}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   .loading-thumbnail[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:70px;color:#e12a43}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   filter-view-layout[_ngcontent-%COMP%]     .filter-content{min-height:150px}@media(max-width:480px){[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   filter-view-layout[_ngcontent-%COMP%]     .top-bar{margin-top:10px}}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-filter-bar][_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-filter-bar][_ngcontent-%COMP%]   .tools-desktop-tablet[_ngcontent-%COMP%]{align-items:center;justify-content:space-between;gap:20px}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%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%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-filter-bar][_ngcontent-%COMP%]   .tools-desktop-tablet.no-feedback-hold[_ngcontent-%COMP%]{display:flex;font-size:14px}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-filter-bar][_ngcontent-%COMP%]   .tools-desktop-tablet.no-feedback-hold[_ngcontent-%COMP%]   .search-container[_ngcontent-%COMP%], [_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%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%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-filter-bar][_ngcontent-%COMP%]   .tools-desktop-tablet[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-filter-bar][_ngcontent-%COMP%]   .tools-desktop-tablet[_ngcontent-%COMP%]   .search-container[_ngcontent-%COMP%]{display:none}@media(max-width:768px){[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-filter-bar][_ngcontent-%COMP%]   .tools-desktop-tablet[_ngcontent-%COMP%]   .search-container[_ngcontent-%COMP%]{display:flex}}@media(max-width:1200px){[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-filter-bar][_ngcontent-%COMP%]{display:grid;grid-gap:15px}}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-options-bar][_ngcontent-%COMP%]{display:flex;align-items:center;gap:15px}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%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%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-options-bar].no-feedback-hold[_ngcontent-%COMP%]{display:flex;align-items:center}}@media(max-width:1200px){[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-options-bar][_ngcontent-%COMP%]{display:unset}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-options-bar][_ngcontent-%COMP%]   .view-switcher[_ngcontent-%COMP%]{margin-top:6px;float:right}}@media(max-width:768px){[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-options-bar][_ngcontent-%COMP%]{display:none}}
1[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-action-bar][_ngcontent-%COMP%]   .start-activity-btn[_ngcontent-%COMP%]   .regular[_ngcontent-%COMP%], [_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-action-bar][_ngcontent-%COMP%]   .view-instructions-btn[_ngcontent-%COMP%]   .regular[_ngcontent-%COMP%]{display:block}@media(max-width:480px){[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-action-bar][_ngcontent-%COMP%]   .start-activity-btn[_ngcontent-%COMP%]   .regular[_ngcontent-%COMP%], [_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-action-bar][_ngcontent-%COMP%]   .view-instructions-btn[_ngcontent-%COMP%]   .regular[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-action-bar][_ngcontent-%COMP%]   .start-activity-btn[_ngcontent-%COMP%]   .shortened[_ngcontent-%COMP%], [_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-action-bar][_ngcontent-%COMP%]   .view-instructions-btn[_ngcontent-%COMP%]   .shortened[_ngcontent-%COMP%]{display:none}@media(max-width:480px){[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-action-bar][_ngcontent-%COMP%]   .start-activity-btn[_ngcontent-%COMP%]   .shortened[_ngcontent-%COMP%], [_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   [filter-view-action-bar][_ngcontent-%COMP%]   .view-instructions-btn[_ngcontent-%COMP%]   .shortened[_ngcontent-%COMP%]{display:block}}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   .tools-mobile[_ngcontent-%COMP%]{display:none}@media(max-width:480px){[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   .tools-mobile[_ngcontent-%COMP%]{display:flex;margin:20px 25px 10px}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   .tools-mobile[_ngcontent-%COMP%]   session-search[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   .grid-view[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   .list-view[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   .filter-view[_ngcontent-%COMP%]{column-gap:8px}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   .filter-view[_ngcontent-%COMP%]   .mobile-only[_ngcontent-%COMP%]{display:none}@media(max-width:480px){[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   .filter-view[_ngcontent-%COMP%]   .mobile-only[_ngcontent-%COMP%]{display:block}}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   .zero-state-single-attempt-activity[_ngcontent-%COMP%], [_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   .data-source-zero-state-container[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   .zero-state-activity-not-available[_ngcontent-%COMP%]   div[zero-state-graphic-bottom][_ngcontent-%COMP%]{width:300px}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%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%]   .activity-task-sessions[_ngcontent-%COMP%]   #task-top-section[_ngcontent-%COMP%]{border-bottom:1px solid #e8e8e8;margin:20px;display:flex;padding-bottom:25px}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   #task-top-section[_ngcontent-%COMP%]   .score-tab[_ngcontent-%COMP%]{margin-right:20px;font-size:18px;color:#333;border:0;background-color:transparent;border-bottom:5px solid transparent}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   #task-top-section[_ngcontent-%COMP%]   .score-tab[_ngcontent-%COMP%]:hover{border-bottom:5px solid #e8e8e8;cursor:pointer;text-decoration:none}[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   #task-top-section[_ngcontent-%COMP%]   .score-tab.active[_ngcontent-%COMP%]{border-bottom:5px solid #EDCB50;font-weight:700}
1[_nghost-%COMP%]   .activity-task-sessions[_ngcontent-%COMP%]   #unscored-title[_ngcontent-%COMP%]{font-size:18px;font-weight:700;color:#333;margin:0}"]}))}return o(),r})(),canDeactivate:[(()=>{var o;class r{constructor(){this.activityEditModeService=(0,c.WQX)(D.U),this.featureFlag=(0,c.WQX)(B.T)}canDeactivate(i,e,a,l){return!!(this.featureFlag.isAvailable("ACTIVITY_PREVIEW_EDITOR_DIALOG")||!this.activityEditModeService.isEditMode()||!this.activityEditModeService.hasUnsavedChanges()||l&&this.isNavigatingBetweenTaskRoutes(a,l))||this.activityEditModeService.confirmDiscardChanges()}isNavigatingBetweenTaskRoutes(i,e){const a=this.extractRouteParams(i.root),l=this.extractRouteParams(e.root);return a.activity_id&&a.type&&"evaluate"!==a.type&&l.activity_id&&l.type&&"evaluate"!==l.type&&a.activity_id===l.activity_id}extractRouteParams(i){let e={},a=i;for(;a&&(e={...e,...a.params},a.firstChild);)a=a.firstChild;return e}static#t=o=()=>(this.\u0275fac=function(e){return new(e||r)},this.\u0275prov=c.jDH({token:r,factory:r.\u0275fac,providedIn:"root"}))}return o(),r})()]}];let qi=(()=>{var o;class r{static#t=o=()=>(this.\u0275fac=function(e){return new(e||r)},this.\u0275mod=t.$C({type:r}),this.\u0275inj=c.G2t({imports:[w.iI.forChild(Ji),w.iI]}))}return o(),r})();var te=n(35318);let ie=(()=>{var o;class r{static#t=o=()=>(this.\u0275fac=function(e){return new(e||r)},this.\u0275mod=t.$C({type:r}),this.\u0275inj=c.G2t({imports:[R.MD,K.Q,Q.f,W.d,J.y,v.YN,q.N,rt.c,tt.M,ct.x,it.H,dt.W,v.X1,et.$,st.G,nt.h,ot.L,at.g,qi,z.i,E.Z,te.T,U.I,lt.Y,Z.l,Y.H]}))}return o(),r})()}}]);
2//# sourceMappingURL=projects_go-modules_src_components_activity-task-sessions_activity-task-sessions_module_ts.4461d1596b9a989b.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.