"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[54181],{54181:(e,n,t)=>{t.r(n),t.d(n,{default:()=>f});var o=t(10467),i=t(2138),d=t(78497),s=t(15324),a=t(53794),r=t(86654),l=t(54438),u=t(2910),c=t(58197),m=t(68273),p=t(88246),g=t(73955);let f=(()=>{var e;class AddonModAssignIndexPage extends i._{constructor(){super(),this.action=s.CoreNavigator.getRouteParam("action")}ngAfterViewInit(){var e=this;return(0,o.A)((function*(){var n;if("editsubmission"===e.action)yield a.H.waitFor((()=>{var n;return!(null===(n=e.activityComponent)||void 0===n||!n.submissionComponent)}),{timeout:5e3}),yield null===(n=e.activityComponent)||void 0===n||null===(n=n.submissionComponent)||void 0===n?void 0:n.goToEdit()}))()}}return(e=AddonModAssignIndexPage).ɵfac=function AddonModAssignIndexPage_Factory(n){return new(n||e)},e.ɵcmp=l.VBU({type:e,selectors:[["page-addon-mod-assign-index"]],viewQuery:function AddonModAssignIndexPage_Query(e,n){if(1&e&&l.GBs(d.AddonModAssignIndexComponent,5),2&e){let e;l.mGM(e=l.lsd())&&(n.activityComponent=e.first)}},standalone:!0,features:[l.Vt3,l.aNF],decls:14,vars:12,consts:[["collapsible",""],["slot","start"],[3,"text"],["contextLevel","module",3,"text","contextInstanceId","courseId"],["slot","end"],[1,"limited-width"],["slot","fixed",3,"ionRefresh","disabled"],[3,"pullingText"],[3,"dataRetrieved","module","courseId"]],template:function AddonModAssignIndexPage_Template(e,n){1&e&&(l.j41(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-buttons",1),l.nrm(3,"ion-back-button",2),l.nI1(4,"translate"),l.k0s(),l.j41(5,"ion-title")(6,"h1"),l.nrm(7,"core-format-text",3),l.k0s()(),l.nrm(8,"ion-buttons",4),l.k0s()(),l.j41(9,"ion-content",5)(10,"ion-refresher",6),l.bIt("ionRefresh",(function AddonModAssignIndexPage_Template_ion_refresher_ionRefresh_10_listener(e){return null==n.activityComponent?null:n.activityComponent.doRefresh(e.target)})),l.nrm(11,"ion-refresher-content",7),l.nI1(12,"translate"),l.k0s(),l.j41(13,"addon-mod-assign-index",8),l.bIt("dataRetrieved",(function AddonModAssignIndexPage_Template_addon_mod_assign_index_dataRetrieved_13_listener(e){return n.updateData(e)})),l.k0s()()),2&e&&(l.R7$(3),l.Y8G("text",l.bMT(4,8,"core.back")),l.R7$(4),l.Y8G("text",n.title)("contextInstanceId",n.module.id)("courseId",n.courseId),l.R7$(3),l.Y8G("disabled",null==n.activityComponent?null:n.activityComponent.showLoading),l.R7$(),l.FS9("pullingText",l.bMT(12,10,"core.pulltorefresh")),l.R7$(2),l.Y8G("module",n.module)("courseId",n.courseId))},dependencies:[r.n,u.QW,u.W9,u.eU,u.To,u.Ki,u.BC,u.ai,u.el,c.B,m.M,p.i,g.D9,d.AddonModAssignIndexComponent],encapsulation:2}),AddonModAssignIndexPage})()}}]);