text: <<<<<<< Updated upstream
  webpackJsonp([9],{2114:function(n,l,e){"use strict";function View_AddonModWorkshopAssessmentComponent_2(n){return o._57(0,[(n()(),o._31(0,0,null,null,1,"h2",[],null,null,null,null,null)),(n()(),o._55(1,null,["",""]))],null,function(n,l){n(l,1,0,l.component.profile.fullname)})}function View_AddonModWorkshopAssessmentComponent_3(n){return o._57(0,[(n()(),o._31(0,0,null,null,3,"p",[],null,null,null,null,null)),(n()(),o._55(1,null,["\n            ",": ","\n        "])),o._48(2,{$a:0}),o._47(131072,O.a,[F.a,o.j])],null,function(n,l){var e=l.component;n(l,1,0,o._56(l,1,0,o._44(l,3).transform("addon.mod_workshop.submissiongradeof",n(l,2,0,e.workshop.grade))),e.assessment.grade)})}function View_AddonModWorkshopAssessmentComponent_4(n){return o._57(0,[(n()(),o._31(0,0,null,null,3,"p",[],null,null,null,null,null)),(n()(),o._55(1,null,["\n            ",": ","\n        "])),o._48(2,{$a:0}),o._47(131072,O.a,[F.a,o.j])],null,function(n,l){var e=l.component;n(l,1,0,o._56(l,1,0,o._44(l,3).transform("addon.mod_workshop.gradinggradeof",n(l,2,0,e.workshop.gradinggrade))),e.assessment.gradinggrade)})}function View_AddonModWorkshopAssessmentComponent_5(n){return o._57(0,[(n()(),o._31(0,0,null,null,3,"p",[["class","core-overriden-grade"]],null,null,null,null,null)),(n()(),o._55(1,null,["\n            ",": ","\n        "])),o._48(2,{$a:0}),o._47(131072,O.a,[F.a,o.j])],null,function(n,l){var e=l.component;n(l,1,0,o._56(l,1,0,o._44(l,3).transform("addon.mod_workshop.gradinggradeof",n(l,2,0,e.workshop.gradinggrade))),e.assessment.gradinggradeover)})}function View_AddonModWorkshopAssessmentComponent_6(n){return o._57(0,[(n()(),o._31(0,0,null,null,3,"p",[],null,null,null,null,null)),(n()(),o._55(1,null,["\n            ","\n        "])),o._48(2,{$a:0}),o._47(131072,O.a,[F.a,o.j])],null,function(n,l){var e=l.component;n(l,1,0,o._56(l,1,0,o._44(l,3).transform("addon.mod_workshop.weightinfo",n(l,2,0,e.assessment.weight))))})}function View_AddonModWorkshopAssessmentComponent_7(n){return o._57(0,[(n()(),o._31(0,0,null,null,3,"ion-badge",[["color","danger"]],null,null,null,null,null)),o._30(1,16384,null,0,Vn.a,[D.a,o.t,o.V],{color:[0,"color"]},null),(n()(),o._55(2,null,["",""])),o._47(131072,O.a,[F.a,o.j])],function(n,l){n(l,1,0,"danger")},function(n,l){n(l,2,0,o._56(l,2,0,o._44(l,3).transform("addon.mod_workshop.notassessed")))})}function View_AddonModWorkshopAssessmentComponent_8(n){return o._57(0,[(n()(),o._31(0,0,null,null,3,"button",[["block",""],["ion-button",""]],null,[[null,"click"]],function(n,l,e){var o=!0;if("click"===l){o=!1!==n.component.gotoOwnAssessment()&&o}return o},L.b,L.a)),o._30(1,1097728,[[2,4]],0,j.a,[[8,""],D.a,o.t,o.V],{block:[0,"block"]},null),(n()(),o._55(2,0,["",""])),o._47(131072,O.a,[F.a,o.j])],function(n,l){n(l,1,0,"")},function(n,l){n(l,2,0,o._56(l,2,0,o._44(l,3).transform("addon.mod_workshop.assess")))})}function View_AddonModWorkshopAssessmentComponent_9(n){return o._57(0,[(n()(),o._31(0,0,null,null,3,"button",[["block",""],["ion-button",""]],null,[[null,"click"]],function(n,l,e){var o=!0;if("click"===l){o=!1!==n.component.gotoOwnAssessment()&&o}return o},L.b,L.a)),o._30(1,1097728,[[2,4]],0,j.a,[[8,""],D.a,o.t,o.V],{block:[0,"block"]},null),(n()(),o._55(2,0,["",""])),o._47(131072,O.a,[F.a,o.j])],function(n,l){n(l,1,0,"")},function(n,l){n(l,2,0,o._56(l,2,0,o._44(l,3).transform("addon.mod_workshop.reassess")))})}function View_AddonModWorkshopAssessmentComponent_10(n){return o._57(0,[(n()(),o._31(0,0,null,null,6,"ion-note",[["item-end",""]],null,null,null,null,null)),o._30(1,16384,null,0,Pn.a,[D.a,o.t,o.V],null,null),(n()(),o._55(-1,null,["\n            "])),(n()(),o._31(3,0,null,null,1,"ion-icon",[["name","time"],["role","img"]],[[2,"hide",null]],null,null,null,null)),o._30(4,147456,null,0,N.a,[D.a,o.t,o.V],{name:[0,"name"]},null),(n()(),o._55(5,null,["","\n        "])),o._47(131072,O.a,[F.a,o.j])],function(n,l){n(l,4,0,"time")},function(n,l){n(l,3,0,o._44(l,4)._hidden);n(l,5,0,o._56(l,5,0,o._44(l,6).transform("core.notsent")))})}function View_AddonModWorkshopAssessmentComponent_1(n){return o._57(0,[(n()(),o._31(0,0,null,null,37,"a",[["class","item item-block"],["ion-item",""],["text-wrap",""]],[[1,"detail-none",0]],[[null,"click"]],function(n,l,e){var o=!0;if("click"===l){o=!1!==n.component.gotoAssessment()&&o}return o},$.b,$.a)),o._30(1,1097728,null,3,q.a,[z.a,D.a,o.t,o.V,[2,J.a]],null,null),o._52(335544320,1,{contentLabel:0}),o._52(603979776,2,{_buttons:1}),o._52(603979776,3,{_icons:1}),o._30(5,16384,null,0,K.a,[],null,null),(n()(),o._55(-1,2,["\n        "])),(n()(),o._31(7,0,null,0,2,"ion-avatar",[["core-user-avatar",""],["item-start",""]],null,null,null,tn.b,tn.a)),o._30(8,16384,null,0,mn.a,[],null,null),o._30(9,770048,null,0,an.a,[on.a,un.a,rn.b,dn.b,_n.b,[2,cn.a]],{user:[0,"user"],userId:[1,"userId"],courseId:[2,"courseId"]},null),(n()(),o._55(-1,2,["\n\n        "])),(n()(),o._26(16777216,null,2,1,null,View_AddonModWorkshopAssessmentComponent_2)),o._30(12,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,2,["\n        "])),(n()(),o._26(16777216,null,2,1,null,View_AddonModWorkshopAssessmentComponent_3)),o._30(15,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,2,["\n        "])),(n()(),o._26(16777216,null,2,1,null,View_AddonModWorkshopAssessmentComponent_4)),o._30(18,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,2,["\n        "])),(n()(),o._26(16777216,null,2,1,null,View_AddonModWorkshopAssessmentComponent_5)),o._30(21,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,2,["\n        "])),(n()(),o._26(16777216,null,2,1,null,View_AddonModWorkshopAssessmentComponent_6)),o._30(24,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,2,["\n        "])),(n()(),o._26(16777216,null,2,1,null,View_AddonModWorkshopAssessmentComponent_7)),o._30(27,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,2,["\n        "])),(n()(),o._26(16777216,null,2,1,null,View_AddonModWorkshopAssessmentComponent_8)),o._30(30,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,2,["\n        "])),(n()(),o._26(16777216,null,2,1,null,View_AddonModWorkshopAssessmentComponent_9)),o._30(33,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,2,["\n        "])),(n()(),o._26(16777216,null,4,1,null,View_AddonModWorkshopAssessmentComponent_10)),o._30(36,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,2,["\n    "]))],function(n,l){var e=l.component;n(l,9,0,e.profile,e.profile&&e.profile.id,e.courseId);n(l,12,0,e.profile&&e.profile.fullname);n(l,15,0,e.showGrade(e.assessment.grade));n(l,18,0,e.access.canviewallsubmissions&&!e.showGrade(e.assessment.gradinggradeover)&&e.showGrade(e.assessment.gradinggrade));n(l,21,0,e.access.canviewallsubmissions&&e.showGrade(e.assessment.gradinggradeover));n(l,24,0,e.assessment.weight&&1!=e.assessment.weight);n(l,27,0,!e.assessment.grade);n(l,30,0,e.canSelfAssess&&!e.showGrade(e.assessment.grade));n(l,33,0,e.canSelfAssess&&e.showGrade(e.assessment.grade));n(l,36,0,e.offline)},function(n,l){var e=l.component;n(l,0,0,!(e.canViewAssessment&&!e.canSelfAssess)||null)})}function View_AddonModWorkshopAssessmentComponent_0(n){return o._57(0,[(n()(),o._31(0,0,null,null,5,"core-loading",[],null,null,null,Mn.b,Mn.a)),o._30(1,638976,null,0,Cn.a,[F.a,o.t,_n.b,rn.b],{hideUntil:[0,"hideUntil"]},null),(n()(),o._55(-1,0,["\n    "])),(n()(),o._26(16777216,null,0,1,null,View_AddonModWorkshopAssessmentComponent_1)),o._30(4,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,0,["\n"])),(n()(),o._55(-1,null,["\n"]))],function(n,l){var e=l.component;n(l,1,0,e.loaded);n(l,4,0,e.summary)},null)}function View_AddonModWorkshopSubmissionPage_1(n){return o._57(0,[(n()(),o._31(0,0,null,null,4,"button",[["clear",""],["ion-button",""]],[[1,"aria-label",0]],[[null,"click"]],function(n,l,e){var o=!0;if("click"===l){o=!1!==n.component.saveAssessment()&&o}return o},L.b,L.a)),o._30(1,1097728,[[3,4]],0,j.a,[[8,""],D.a,o.t,o.V],{clear:[0,"clear"]},null),o._47(131072,O.a,[F.a,o.j]),(n()(),o._55(3,0,["\n                ","\n            "])),o._47(131072,O.a,[F.a,o.j])],function(n,l){n(l,1,0,"")},function(n,l){n(l,0,0,o._56(l,0,0,o._44(l,2).transform("core.save")));n(l,3,0,o._56(l,3,0,o._44(l,4).transform("core.save")))})}function View_AddonModWorkshopSubmissionPage_2(n){return o._57(0,[(n()(),o._31(0,0,null,null,4,"button",[["clear",""],["ion-button",""]],[[1,"aria-label",0]],[[null,"click"]],function(n,l,e){var o=!0;if("click"===l){o=!1!==n.component.saveEvaluation()&&o}return o},L.b,L.a)),o._30(1,1097728,[[3,4]],0,j.a,[[8,""],D.a,o.t,o.V],{clear:[0,"clear"]},null),o._47(131072,O.a,[F.a,o.j]),(n()(),o._55(3,0,["\n                ","\n            "])),o._47(131072,O.a,[F.a,o.j])],function(n,l){n(l,1,0,"")},function(n,l){n(l,0,0,o._56(l,0,0,o._44(l,2).transform("core.save")));n(l,3,0,o._56(l,3,0,o._44(l,4).transform("core.save")))})}function View_AddonModWorkshopSubmissionPage_3(n){return o._57(0,[(n()(),o._31(0,0,null,null,6,"ion-refresher",[],[[2,"refresher-active",null],[4,"top",null]],[[null,"ionRefresh"]],function(n,l,e){var o=!0;if("ionRefresh"===l){o=!1!==n.component.refreshSubmission(e)&&o}return o},null,null)),o._30(1,212992,null,0,U.a,[R.a,G.a,o.M,H.l],{enabled:[0,"enabled"]},{ionRefresh:"ionRefresh"}),(n()(),o._55(-1,null,["\n        "])),(n()(),o._31(3,0,null,null,2,"ion-refresher-content",[],[[1,"state",0]],null,null,T.b,T.a)),o._30(4,114688,null,0,B.a,[U.a,D.a],{pullingText:[0,"pullingText"]},null),o._47(131072,O.a,[F.a,o.j]),(n()(),o._55(-1,null,["\n    "]))],function(n,l){n(l,1,0,l.component.loaded);n(l,4,0,o._34(1,"",o._56(l,4,0,o._44(l,5).transform("core.pulltorefresh")),""))},function(n,l){n(l,0,0,"inactive"!==o._44(l,1).state,o._44(l,1)._top);n(l,3,0,o._44(l,4).r.state)})}function View_AddonModWorkshopSubmissionPage_6(n){return o._57(0,[(n()(),o._31(0,0,null,null,6,"button",[["block",""],["icon-start",""],["ion-button",""]],null,[[null,"click"]],function(n,l,e){var o=!0;if("click"===l){o=!1!==n.component.editSubmission()&&o}return o},L.b,L.a)),o._30(1,1097728,[[5,4]],0,j.a,[[8,""],D.a,o.t,o.V],{block:[0,"block"]},null),(n()(),o._55(-1,0,["\n                    "])),(n()(),o._31(3,0,null,0,1,"ion-icon",[["name","create"],["role","img"]],[[2,"hide",null]],null,null,null,null)),o._30(4,147456,null,0,N.a,[D.a,o.t,o.V],{name:[0,"name"]},null),(n()(),o._55(5,0,["\n                    ","\n                "])),o._47(131072,O.a,[F.a,o.j])],function(n,l){n(l,1,0,"");n(l,4,0,"create")},function(n,l){n(l,3,0,o._44(l,4)._hidden);n(l,5,0,o._56(l,5,0,o._44(l,6).transform("addon.mod_workshop.editsubmission")))})}function View_AddonModWorkshopSubmissionPage_7(n){return o._57(0,[(n()(),o._31(0,0,null,null,6,"button",[["block",""],["color","danger"],["icon-start",""],["ion-button",""]],null,[[null,"click"]],function(n,l,e){var o=!0;if("click"===l){o=!1!==n.component.deleteSubmission()&&o}return o},L.b,L.a)),o._30(1,1097728,[[5,4]],0,j.a,[[8,""],D.a,o.t,o.V],{color:[0,"color"],block:[1,"block"]},null),(n()(),o._55(-1,0,["\n                    "])),(n()(),o._31(3,0,null,0,1,"ion-icon",[["name","trash"],["role","img"]],[[2,"hide",null]],null,null,null,null)),o._30(4,147456,null,0,N.a,[D.a,o.t,o.V],{name:[0,"name"]},null),(n()(),o._55(5,0,["\n                    ","\n                "])),o._47(131072,O.a,[F.a,o.j])],function(n,l){n(l,1,0,"danger","");n(l,4,0,"trash")},function(n,l){n(l,3,0,o._44(l,4)._hidden);n(l,5,0,o._56(l,5,0,o._44(l,6).transform("addon.mod_workshop.deletesubmission")))})}function View_AddonModWorkshopSubmissionPage_8(n){return o._57(0,[(n()(),o._31(0,0,null,null,6,"button",[["block",""],["color","danger"],["icon-start",""],["ion-button",""],["outline",""]],null,[[null,"click"]],function(n,l,e){var o=!0;if("click"===l){o=!1!==n.component.undoDeleteSubmission()&&o}return o},L.b,L.a)),o._30(1,1097728,[[5,4]],0,j.a,[[8,""],D.a,o.t,o.V],{color:[0,"color"],outline:[1,"outline"],block:[2,"block"]},null),(n()(),o._55(-1,0,["\n                    "])),(n()(),o._31(3,0,null,0,1,"ion-icon",[["name","undo"],["role","img"]],[[2,"hide",null]],null,null,null,null)),o._30(4,147456,null,0,N.a,[D.a,o.t,o.V],{name:[0,"name"]},null),(n()(),o._55(5,0,["\n                    ","\n                "])),o._47(131072,O.a,[F.a,o.j])],function(n,l){n(l,1,0,"danger","","");n(l,4,0,"undo")},function(n,l){n(l,3,0,o._44(l,4)._hidden);n(l,5,0,o._56(l,5,0,o._44(l,6).transform("core.restore")))})}function View_AddonModWorkshopSubmissionPage_5(n){return o._57(0,[(n()(),o._31(0,0,null,null,15,"ion-item",[["class","item item-block"],["text-wrap",""]],null,null,null,$.b,$.a)),o._30(1,1097728,null,3,q.a,[z.a,D.a,o.t,o.V,[2,J.a]],null,null),o._52(335544320,4,{contentLabel:0}),o._52(603979776,5,{_buttons:1}),o._52(603979776,6,{_icons:1}),o._30(5,16384,null,0,K.a,[],null,null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._26(16777216,null,2,1,null,View_AddonModWorkshopSubmissionPage_6)),o._30(8,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._26(16777216,null,2,1,null,View_AddonModWorkshopSubmissionPage_7)),o._30(11,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._26(16777216,null,2,1,null,View_AddonModWorkshopSubmissionPage_8)),o._30(14,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,2,["\n            "]))],function(n,l){var e=l.component;n(l,8,0,e.canEdit);n(l,11,0,!e.submission.deleted&&e.canDelete);n(l,14,0,e.submission.deleted&&e.canDelete)},null)}function View_AddonModWorkshopSubmissionPage_4(n){return o._57(0,[(n()(),o._31(0,0,null,null,8,"ion-list",[],null,null,null,null,null)),o._30(1,16384,null,0,Q.a,[D.a,o.t,o.V,R.a,H.l,X.a],null,null),(n()(),o._55(-1,null,["\n            "])),(n()(),o._31(3,0,null,null,1,"addon-mod-workshop-submission",[],null,null,null,Z.b,Z.a)),o._30(4,114688,null,0,nn.a,[ln.a,en.a,on.a,sn.a,un.a],{submission:[0,"submission"],module:[1,"module"],workshop:[2,"workshop"],access:[3,"access"],courseId:[4,"courseId"]},null),(n()(),o._55(-1,null,["\n            "])),(n()(),o._26(16777216,null,null,1,null,View_AddonModWorkshopSubmissionPage_5)),o._30(7,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,null,["\n        "]))],function(n,l){var e=l.component;n(l,4,0,e.submission,e.module,e.workshop,e.access,e.courseId);n(l,7,0,e.canEdit||e.canDelete)},null)}function View_AddonModWorkshopSubmissionPage_10(n){return o._57(0,[(n()(),o._31(0,0,null,null,2,"ion-avatar",[["core-user-avatar",""],["item-start",""]],null,null,null,tn.b,tn.a)),o._30(1,770048,null,0,an.a,[on.a,un.a,rn.b,dn.b,_n.b,[2,cn.a]],{user:[0,"user"],userId:[1,"userId"],courseId:[2,"courseId"]},null),o._30(2,16384,null,0,mn.a,[],null,null)],function(n,l){var e=l.component;n(l,1,0,e.evaluateByProfile,e.evaluateByProfile.id,e.courseId)},null)}function View_AddonModWorkshopSubmissionPage_11(n){return o._57(0,[(n()(),o._31(0,0,null,null,3,"h2",[],null,null,null,null,null)),(n()(),o._55(1,null,["",""])),o._48(2,{$a:0}),o._47(131072,O.a,[F.a,o.j])],null,function(n,l){var e=l.component;n(l,1,0,o._56(l,1,0,o._44(l,3).transform("addon.mod_workshop.feedbackby",n(l,2,0,e.evaluateByProfile.fullname))))})}function View_AddonModWorkshopSubmissionPage_9(n){return o._57(0,[(n()(),o._31(0,0,null,null,19,"ion-list",[],null,null,null,null,null)),o._30(1,16384,null,0,Q.a,[D.a,o.t,o.V,R.a,H.l,X.a],null,null),(n()(),o._55(-1,null,["\n            "])),(n()(),o._31(3,0,null,null,15,"ion-item",[["class","item item-block"],["text-wrap",""]],null,null,null,$.b,$.a)),o._30(4,1097728,null,3,q.a,[z.a,D.a,o.t,o.V,[2,J.a]],null,null),o._52(335544320,7,{contentLabel:0}),o._52(603979776,8,{_buttons:1}),o._52(603979776,9,{_icons:1}),o._30(8,16384,null,0,K.a,[],null,null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._26(16777216,null,0,1,null,View_AddonModWorkshopSubmissionPage_10)),o._30(11,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._26(16777216,null,2,1,null,View_AddonModWorkshopSubmissionPage_11)),o._30(14,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(16,16777216,null,2,1,"core-format-text",[["contextLevel","module"]],null,null,null,null,null)),o._30(17,540672,null,0,hn.a,[o.t,un.a,fn.a,pn.b,F.a,R.a,rn.b,bn.b,gn.b,kn.a,dn.b,wn.a,[2,on.a],[2,G.a],[2,cn.a],vn.a,_n.b,In.a,An.a,Sn.a,o._11,yn.a],{text:[0,"text"],contextLevel:[1,"contextLevel"],contextInstanceId:[2,"contextInstanceId"],courseId:[3,"courseId"]},null),(n()(),o._55(-1,2,["\n            "])),(n()(),o._55(-1,null,["\n        "]))],function(n,l){var e=l.component;n(l,11,0,e.evaluateByProfile);n(l,14,0,e.evaluateByProfile&&e.evaluateByProfile.fullname);n(l,17,0,e.evaluate.text,"module",e.module.id,e.courseId)},null)}function View_AddonModWorkshopSubmissionPage_12(n){return o._57(0,[(n()(),o._31(0,0,null,null,17,"ion-list",[],null,null,null,null,null)),o._30(1,16384,null,0,Q.a,[D.a,o.t,o.V,R.a,H.l,X.a],null,null),(n()(),o._55(-1,null,["\n            "])),(n()(),o._31(3,0,null,null,10,"ion-item",[["class","item item-block"],["text-wrap",""]],null,null,null,$.b,$.a)),o._30(4,1097728,null,3,q.a,[z.a,D.a,o.t,o.V,[2,J.a]],null,null),o._52(335544320,10,{contentLabel:0}),o._52(603979776,11,{_buttons:1}),o._52(603979776,12,{_icons:1}),o._30(8,16384,null,0,K.a,[],null,null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(10,0,null,2,2,"h2",[],null,null,null,null,null)),(n()(),o._55(11,null,["",""])),o._47(131072,O.a,[F.a,o.j]),(n()(),o._55(-1,2,["\n            "])),(n()(),o._55(-1,null,["\n            "])),(n()(),o._31(15,0,null,null,1,"addon-mod-workshop-assessment",[["summary","true"]],null,null,null,View_AddonModWorkshopAssessmentComponent_0,xn)),o._30(16,114688,null,0,Wn.a,[ln.a,en.a,on.a,sn.a,fn.a,un.a],{assessment:[0,"assessment"],summary:[1,"summary"],courseId:[2,"courseId"],submission:[3,"submission"],module:[4,"module"],workshop:[5,"workshop"],access:[6,"access"]},null),(n()(),o._55(-1,null,["\n        "]))],function(n,l){var e=l.component;n(l,16,0,e.ownAssessment,"true",e.courseId,e.submission,e.module,e.workshop,e.access)},function(n,l){n(l,11,0,o._56(l,11,0,o._44(l,12).transform("addon.mod_workshop.yourassessment")))})}function View_AddonModWorkshopSubmissionPage_15(n){return o._57(0,[(n()(),o._31(0,0,null,null,1,"addon-mod-workshop-assessment",[["summary","true"]],null,null,null,View_AddonModWorkshopAssessmentComponent_0,xn)),o._30(1,114688,null,0,Wn.a,[ln.a,en.a,on.a,sn.a,fn.a,un.a],{assessment:[0,"assessment"],summary:[1,"summary"],courseId:[2,"courseId"],submission:[3,"submission"],workshop:[4,"workshop"],access:[5,"access"]},null)],function(n,l){var e=l.component;n(l,1,0,l.parent.context.$implicit,"true",e.courseId,e.submission,e.workshop,e.access)},null)}function View_AddonModWorkshopSubmissionPage_14(n){return o._57(0,[(n()(),o._31(0,0,null,null,4,null,null,null,null,null,null,null)),(n()(),o._55(-1,null,["\n                "])),(n()(),o._26(16777216,null,null,1,null,View_AddonModWorkshopSubmissionPage_15)),o._30(3,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,null,["\n            "]))],function(n,l){n(l,3,0,!l.context.$implicit.ownAssessment)},null)}function View_AddonModWorkshopSubmissionPage_13(n){return o._57(0,[(n()(),o._31(0,0,null,null,17,"ion-list",[],null,null,null,null,null)),o._30(1,16384,null,0,Q.a,[D.a,o.t,o.V,R.a,H.l,X.a],null,null),(n()(),o._55(-1,null,["\n            "])),(n()(),o._31(3,0,null,null,10,"ion-item",[["class","item item-block"],["text-wrap",""]],null,null,null,$.b,$.a)),o._30(4,1097728,null,3,q.a,[z.a,D.a,o.t,o.V,[2,J.a]],null,null),o._52(335544320,13,{contentLabel:0}),o._52(603979776,14,{_buttons:1}),o._52(603979776,15,{_icons:1}),o._30(8,16384,null,0,K.a,[],null,null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(10,0,null,2,2,"h2",[],null,null,null,null,null)),(n()(),o._55(11,null,["",""])),o._47(131072,O.a,[F.a,o.j]),(n()(),o._55(-1,2,["\n            "])),(n()(),o._55(-1,null,["\n            "])),(n()(),o._26(16777216,null,null,1,null,View_AddonModWorkshopSubmissionPage_14)),o._30(16,802816,null,0,Y.j,[o._11,o._6,o.E],{ngForOf:[0,"ngForOf"]},null),(n()(),o._55(-1,null,["\n        "]))],function(n,l){n(l,16,0,l.component.submissionInfo.reviewedby)},function(n,l){n(l,11,0,o._56(l,11,0,o._44(l,12).transform("addon.mod_workshop.receivedgrades")))})}function View_AddonModWorkshopSubmissionPage_17(n){return o._57(0,[(n()(),o._31(0,0,null,null,1,"addon-mod-workshop-assessment",[["summary","true"]],null,null,null,View_AddonModWorkshopAssessmentComponent_0,xn)),o._30(1,114688,null,0,Wn.a,[ln.a,en.a,on.a,sn.a,fn.a,un.a],{assessment:[0,"assessment"],summary:[1,"summary"],courseId:[2,"courseId"],workshop:[3,"workshop"],access:[4,"access"]},null)],function(n,l){var e=l.component;n(l,1,0,l.context.$implicit,"true",e.courseId,e.workshop,e.access)},null)}function View_AddonModWorkshopSubmissionPage_16(n){return o._57(0,[(n()(),o._31(0,0,null,null,17,"ion-list",[],null,null,null,null,null)),o._30(1,16384,null,0,Q.a,[D.a,o.t,o.V,R.a,H.l,X.a],null,null),(n()(),o._55(-1,null,["\n            "])),(n()(),o._31(3,0,null,null,10,"ion-item",[["class","item item-block"],["text-wrap",""]],null,null,null,$.b,$.a)),o._30(4,1097728,null,3,q.a,[z.a,D.a,o.t,o.V,[2,J.a]],null,null),o._52(335544320,16,{contentLabel:0}),o._52(603979776,17,{_buttons:1}),o._52(603979776,18,{_icons:1}),o._30(8,16384,null,0,K.a,[],null,null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(10,0,null,2,2,"h2",[],null,null,null,null,null)),(n()(),o._55(11,null,["",""])),o._47(131072,O.a,[F.a,o.j]),(n()(),o._55(-1,2,["\n            "])),(n()(),o._55(-1,null,["\n            "])),(n()(),o._26(16777216,null,null,1,null,View_AddonModWorkshopSubmissionPage_17)),o._30(16,802816,null,0,Y.j,[o._11,o._6,o.E],{ngForOf:[0,"ngForOf"]},null),(n()(),o._55(-1,null,["\n        "]))],function(n,l){n(l,16,0,l.component.submissionInfo.reviewerof)},function(n,l){n(l,11,0,o._56(l,11,0,o._44(l,12).transform("addon.mod_workshop.givengrades")))})}function View_AddonModWorkshopSubmissionPage_19(n){return o._57(0,[(n()(),o._31(0,0,null,null,22,"ion-item",[["class","item item-block"],["text-wrap",""]],null,null,null,$.b,$.a)),o._30(1,1097728,null,3,q.a,[z.a,D.a,o.t,o.V,[2,J.a]],null,null),o._52(335544320,22,{contentLabel:0}),o._52(603979776,23,{_buttons:1}),o._52(603979776,24,{_icons:1}),o._30(5,16384,null,0,K.a,[],null,null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(7,0,null,1,3,"ion-label",[],null,null,null,null,null)),o._30(8,16384,[[22,4]],0,En.a,[D.a,o.t,o.V,[8,null],[8,null],[8,null],[8,null]],null,null),(n()(),o._55(9,null,["",""])),o._47(131072,O.a,[F.a,o.j]),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(12,0,null,4,5,"ion-toggle",[["formControlName","published"]],[[2,"toggle-disabled",null],[2,"toggle-checked",null],[2,"toggle-activated",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"keyup"]],function(n,l,e){var s=!0;if("keyup"===l){s=!1!==o._44(n,13)._keyup(e)&&s}return s},Ln.b,Ln.a)),o._30(13,1228800,null,0,jn.a,[z.a,D.a,R.a,o.t,o.V,Dn.a,[2,q.a],H.l,X.a,o.M],null,null),o._50(1024,null,On.l,function(n){return[n]},[jn.a]),o._30(15,671744,null,0,On.f,[[3,On.b],[8,null],[8,null],[2,On.l]],{name:[0,"name"]},null),o._50(2048,null,On.m,null,[On.f]),o._30(17,16384,null,0,On.n,[On.m],null,null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(19,0,null,2,2,"p",[["class","item-help"]],null,null,null,null,null)),(n()(),o._55(20,null,["",""])),o._47(131072,O.a,[F.a,o.j]),(n()(),o._55(-1,2,["\n            "]))],function(n,l){n(l,15,0,"published")},function(n,l){n(l,9,0,o._56(l,9,0,o._44(l,10).transform("addon.mod_workshop.publishsubmission")));n(l,12,0,o._44(l,13)._disabled,o._44(l,13)._value,o._44(l,13)._activated,o._44(l,17).ngClassUntouched,o._44(l,17).ngClassTouched,o._44(l,17).ngClassPristine,o._44(l,17).ngClassDirty,o._44(l,17).ngClassValid,o._44(l,17).ngClassInvalid,o._44(l,17).ngClassPending);n(l,20,0,o._56(l,20,0,o._44(l,21).transform("addon.mod_workshop.publishsubmission_help")))})}function View_AddonModWorkshopSubmissionPage_20(n){return o._57(0,[(n()(),o._31(0,0,null,null,2,"ion-option",[],null,null,null,null,null)),o._30(1,16384,[[31,4]],0,Fn.a,[o.t],{value:[0,"value"]},null),(n()(),o._55(2,null,["",""]))],function(n,l){n(l,1,0,l.context.$implicit.value)},function(n,l){n(l,2,0,l.context.$implicit.label)})}function View_AddonModWorkshopSubmissionPage_18(n){return o._57(0,[(n()(),o._31(0,0,[[2,0],["feedbackFormEl",1]],null,80,"form",[["ion-list",""],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(n,l,e){var s=!0;if("submit"===l){s=!1!==o._44(n,2).onSubmit(e)&&s}if("reset"===l){s=!1!==o._44(n,2).onReset()&&s}return s},null,null)),o._30(1,16384,null,0,On.w,[],null,null),o._30(2,540672,null,0,On.h,[[8,null],[8,null]],{form:[0,"form"]},null),o._50(2048,null,On.b,null,[On.h]),o._30(4,16384,null,0,On.o,[On.b],null,null),(n()(),o._55(-1,null,["\n            "])),(n()(),o._31(6,0,null,null,10,"ion-item",[["class","item item-block"],["text-wrap",""]],null,null,null,$.b,$.a)),o._30(7,1097728,null,3,q.a,[z.a,D.a,o.t,o.V,[2,J.a]],null,null),o._52(335544320,19,{contentLabel:0}),o._52(603979776,20,{_buttons:1}),o._52(603979776,21,{_icons:1}),o._30(11,16384,null,0,K.a,[],null,null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(13,0,null,2,2,"h2",[],null,null,null,null,null)),(n()(),o._55(14,null,["",""])),o._47(131072,O.a,[F.a,o.j]),(n()(),o._55(-1,2,["\n            "])),(n()(),o._55(-1,null,["\n            "])),(n()(),o._26(16777216,null,null,1,null,View_AddonModWorkshopSubmissionPage_19)),o._30(19,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,null,["\n\n            "])),(n()(),o._31(21,0,null,null,13,"ion-item",[["class","item item-block"],["text-wrap",""]],null,null,null,$.b,$.a)),o._30(22,1097728,null,3,q.a,[z.a,D.a,o.t,o.V,[2,J.a]],null,null),o._52(335544320,25,{contentLabel:0}),o._52(603979776,26,{_buttons:1}),o._52(603979776,27,{_icons:1}),o._30(26,16384,null,0,K.a,[],null,null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(28,0,null,2,2,"h2",[],null,null,null,null,null)),(n()(),o._55(29,null,["",""])),o._47(131072,O.a,[F.a,o.j]),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(32,0,null,2,1,"p",[],null,null,null,null,null)),(n()(),o._55(33,null,["",""])),(n()(),o._55(-1,2,["\n            "])),(n()(),o._55(-1,null,["\n            "])),(n()(),o._31(36,0,null,null,23,"ion-item",[["class","item item-block"],["text-wrap",""]],null,null,null,$.b,$.a)),o._30(37,1097728,null,3,q.a,[z.a,D.a,o.t,o.V,[2,J.a]],null,null),o._52(335544320,28,{contentLabel:0}),o._52(603979776,29,{_buttons:1}),o._52(603979776,30,{_icons:1}),o._30(41,16384,null,0,K.a,[],null,null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(43,0,null,1,3,"ion-label",[["stacked",""]],null,null,null,null,null)),o._30(44,16384,[[28,4]],0,En.a,[D.a,o.t,o.V,[8,null],[8,""],[8,null],[8,null]],null,null),(n()(),o._55(45,null,["",""])),o._47(131072,O.a,[F.a,o.j]),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(48,0,null,3,10,"ion-select",[["formControlName","grade"],["interface","action-sheet"]],[[2,"select-disabled",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"click"],[null,"keyup.space"]],function(n,l,e){var s=!0;if("click"===l){s=!1!==o._44(n,49)._click(e)&&s}if("keyup.space"===l){s=!1!==o._44(n,49)._keyup()&&s}return s},Un.b,Un.a)),o._30(49,1228800,null,1,Rn.a,[Gn.a,z.a,D.a,o.t,o.V,[2,q.a],Hn.a],{interface:[0,"interface"]},null),o._52(603979776,31,{options:1}),o._50(1024,null,On.l,function(n){return[n]},[Rn.a]),o._30(52,671744,null,0,On.f,[[3,On.b],[8,null],[8,null],[2,On.l]],{name:[0,"name"]},null),o._50(2048,null,On.m,null,[On.f]),o._30(54,16384,null,0,On.n,[On.m],null,null),(n()(),o._55(-1,null,["\n                    "])),(n()(),o._26(16777216,null,null,1,null,View_AddonModWorkshopSubmissionPage_20)),o._30(57,802816,null,0,Y.j,[o._11,o._6,o.E],{ngForOf:[0,"ngForOf"]},null),(n()(),o._55(-1,null,["\n                "])),(n()(),o._55(-1,2,["\n            "])),(n()(),o._55(-1,null,["\n            "])),(n()(),o._31(61,0,null,null,18,"ion-item",[["class","item item-block"]],null,null,null,$.b,$.a)),o._30(62,1097728,null,3,q.a,[z.a,D.a,o.t,o.V,[2,J.a]],null,null),o._52(335544320,32,{contentLabel:0}),o._52(603979776,33,{_buttons:1}),o._52(603979776,34,{_icons:1}),o._30(66,16384,null,0,K.a,[],null,null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(68,0,null,1,3,"ion-label",[["stacked",""]],null,null,null,null,null)),o._30(69,16384,[[32,4]],0,En.a,[D.a,o.t,o.V,[8,null],[8,""],[8,null],[8,null]],null,null),(n()(),o._55(70,null,["",""])),o._47(131072,O.a,[F.a,o.j]),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(73,0,null,3,5,"core-rich-text-editor",[["contextLevel","module"],["elementId","feedbackauthor_editor"],["formControlName","text"],["item-content",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],null,null,x.c,x.b)),o._30(74,1228800,null,0,Tn.a,[fn.a,bn.b,un.a,kn.a,[2,G.a],o.t,_n.b,rn.b,R.a,Bn.a],{control:[0,"control"],autoSave:[1,"autoSave"],contextLevel:[2,"contextLevel"],contextInstanceId:[3,"contextInstanceId"],elementId:[4,"elementId"],draftExtraParams:[5,"draftExtraParams"]},null),o._48(75,{id:0}),o._30(76,671744,null,0,On.f,[[3,On.b],[8,null],[8,null],[8,null]],{name:[0,"name"]},null),o._50(2048,null,On.m,null,[On.f]),o._30(78,16384,null,0,On.n,[On.m],null,null),(n()(),o._55(-1,2,["\n            "])),(n()(),o._55(-1,null,["\n        "]))],function(n,l){var e=l.component;n(l,2,0,e.feedbackForm);n(l,19,0,e.access.canpublishsubmissions);n(l,49,0,"action-sheet");n(l,52,0,"grade");n(l,57,0,e.evaluationGrades);n(l,74,0,e.feedbackForm.controls.text,!0,"module",e.module.id,"feedbackauthor_editor",n(l,75,0,e.submissionId));n(l,76,0,"text")},function(n,l){var e=l.component;n(l,0,0,o._44(l,4).ngClassUntouched,o._44(l,4).ngClassTouched,o._44(l,4).ngClassPristine,o._44(l,4).ngClassDirty,o._44(l,4).ngClassValid,o._44(l,4).ngClassInvalid,o._44(l,4).ngClassPending);n(l,14,0,o._56(l,14,0,o._44(l,15).transform("addon.mod_workshop.feedbackauthor")));n(l,29,0,o._56(l,29,0,o._44(l,30).transform("addon.mod_workshop.gradecalculated")));n(l,33,0,e.submission.submissiongrade);n(l,45,0,o._56(l,45,0,o._44(l,46).transform("addon.mod_workshop.gradeover")));n(l,48,0,o._44(l,49)._disabled,o._44(l,54).ngClassUntouched,o._44(l,54).ngClassTouched,o._44(l,54).ngClassPristine,o._44(l,54).ngClassDirty,o._44(l,54).ngClassValid,o._44(l,54).ngClassInvalid,o._44(l,54).ngClassPending);n(l,70,0,o._56(l,70,0,o._44(l,71).transform("addon.mod_workshop.feedbackauthor")));n(l,73,0,o._44(l,78).ngClassUntouched,o._44(l,78).ngClassTouched,o._44(l,78).ngClassPristine,o._44(l,78).ngClassDirty,o._44(l,78).ngClassValid,o._44(l,78).ngClassInvalid,o._44(l,78).ngClassPending)})}function View_AddonModWorkshopSubmissionPage_21(n){return o._57(0,[(n()(),o._31(0,0,null,null,1,"addon-mod-workshop-assessment-strategy",[],null,null,null,Nn.b,Nn.a)),o._30(1,245760,[[1,4]],0,$n.a,[F.a,o.C,_n.b,qn.a,zn.a,fn.a,pn.b,rn.b,un.a,Jn.a,Kn.a,en.a,ln.a,Yn.a],{workshop:[0,"workshop"],access:[1,"access"],assessmentId:[2,"assessmentId"],userId:[3,"userId"],strategy:[4,"strategy"],edit:[5,"edit"]},null)],function(n,l){var e=l.component;n(l,1,0,e.workshop,e.access,e.assessmentId,e.assessmentUserId,e.strategy,e.access.assessingallowed)},null)}function View_AddonModWorkshopSubmissionPage_23(n){return o._57(0,[(n()(),o._31(0,0,null,null,2,"ion-avatar",[["core-user-avatar",""],["item-start",""]],null,null,null,tn.b,tn.a)),o._30(1,770048,null,0,an.a,[on.a,un.a,rn.b,dn.b,_n.b,[2,cn.a]],{user:[0,"user"],userId:[1,"userId"],courseId:[2,"courseId"]},null),o._30(2,16384,null,0,mn.a,[],null,null)],function(n,l){var e=l.component;n(l,1,0,e.evaluateGradingByProfile,e.evaluateGradingByProfile.id,e.courseId)},null)}function View_AddonModWorkshopSubmissionPage_24(n){return o._57(0,[(n()(),o._31(0,0,null,null,3,"h2",[],null,null,null,null,null)),(n()(),o._55(1,null,["",""])),o._48(2,{$a:0}),o._47(131072,O.a,[F.a,o.j])],null,function(n,l){var e=l.component;n(l,1,0,o._56(l,1,0,o._44(l,3).transform("addon.mod_workshop.feedbackby",n(l,2,0,e.evaluateGradingByProfile.fullname))))})}function View_AddonModWorkshopSubmissionPage_22(n){return o._57(0,[(n()(),o._31(0,0,null,null,19,"ion-list",[],null,null,null,null,null)),o._30(1,16384,null,0,Q.a,[D.a,o.t,o.V,R.a,H.l,X.a],null,null),(n()(),o._55(-1,null,["\n            "])),(n()(),o._31(3,0,null,null,15,"ion-item",[["class","item item-block"],["text-wrap",""]],null,null,null,$.b,$.a)),o._30(4,1097728,null,3,q.a,[z.a,D.a,o.t,o.V,[2,J.a]],null,null),o._52(335544320,35,{contentLabel:0}),o._52(603979776,36,{_buttons:1}),o._52(603979776,37,{_icons:1}),o._30(8,16384,null,0,K.a,[],null,null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._26(16777216,null,0,1,null,View_AddonModWorkshopSubmissionPage_23)),o._30(11,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._26(16777216,null,2,1,null,View_AddonModWorkshopSubmissionPage_24)),o._30(14,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(16,16777216,null,2,1,"core-format-text",[["contextLevel","module"]],null,null,null,null,null)),o._30(17,540672,null,0,hn.a,[o.t,un.a,fn.a,pn.b,F.a,R.a,rn.b,bn.b,gn.b,kn.a,dn.b,wn.a,[2,on.a],[2,G.a],[2,cn.a],vn.a,_n.b,In.a,An.a,Sn.a,o._11,yn.a],{text:[0,"text"],contextLevel:[1,"contextLevel"],contextInstanceId:[2,"contextInstanceId"],courseId:[3,"courseId"]},null),(n()(),o._55(-1,2,["\n            "])),(n()(),o._55(-1,null,["\n        "]))],function(n,l){var e=l.component;n(l,11,0,e.evaluateGradingByProfile);n(l,14,0,e.evaluateGradingByProfile&&e.evaluateGradingByProfile.fullname);n(l,17,0,e.assessment.feedbackreviewer,"module",e.module.id,e.courseId)},null)}function View_AddonModWorkshopSubmissionPage_0(n){return o._57(0,[o._52(671088640,1,{assessmentStrategy:0}),o._52(671088640,2,{formElement:0}),(n()(),o._31(2,0,null,null,23,"ion-header",[],null,null,null,null,null)),o._30(3,16384,null,0,Qn.a,[D.a,o.t,o.V,[2,Xn.a]],null,null),(n()(),o._55(-1,null,["\n    "])),(n()(),o._31(5,0,null,null,19,"ion-navbar",[["class","toolbar"],["core-back-button",""]],[[8,"hidden",0],[2,"statusbar-padding",null]],null,null,Zn.b,Zn.a)),o._30(6,49152,null,0,nl.a,[Gn.a,[2,Xn.a],[2,on.a],D.a,o.t,o.V],null,null),o._30(7,212992,null,0,ll.a,[nl.a,R.a,F.a,_n.b],null,null),(n()(),o._55(-1,3,["\n        "])),(n()(),o._31(9,0,null,3,3,"ion-title",[],null,null,null,el.b,el.a)),o._30(10,49152,null,0,ol.a,[D.a,o.t,o.V,[2,sl.a],[2,nl.a]],null,null),(n()(),o._31(11,16777216,null,0,1,"core-format-text",[["contextLevel","module"]],null,null,null,null,null)),o._30(12,540672,null,0,hn.a,[o.t,un.a,fn.a,pn.b,F.a,R.a,rn.b,bn.b,gn.b,kn.a,dn.b,wn.a,[2,on.a],[2,G.a],[2,cn.a],vn.a,_n.b,In.a,An.a,Sn.a,o._11,yn.a],{text:[0,"text"],contextLevel:[1,"contextLevel"],contextInstanceId:[2,"contextInstanceId"],courseId:[3,"courseId"]},null),(n()(),o._55(-1,3,["\n        "])),(n()(),o._31(14,0,null,2,9,"ion-buttons",[["end",""]],[[8,"hidden",0]],null,null,null,null)),o._30(15,16384,null,1,ul.a,[D.a,o.t,o.V,[2,sl.a],[2,nl.a]],null,null),o._52(603979776,3,{_buttons:1}),(n()(),o._55(-1,null,["\n            "])),(n()(),o._26(16777216,null,null,1,null,View_AddonModWorkshopSubmissionPage_1)),o._30(19,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,null,["\n            "])),(n()(),o._26(16777216,null,null,1,null,View_AddonModWorkshopSubmissionPage_2)),o._30(22,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,null,["\n        "])),(n()(),o._55(-1,3,["\n    "])),(n()(),o._55(-1,null,["\n"])),(n()(),o._55(-1,null,["\n"])),(n()(),o._31(27,0,null,null,33,"ion-content",[],[[2,"statusbar-padding",null],[2,"has-refresher",null]],null,null,tl.b,tl.a)),o._30(28,4374528,null,0,G.a,[D.a,R.a,X.a,o.t,o.V,Gn.a,al.a,o.M,[2,Xn.a],[2,on.a]],null,null),(n()(),o._55(-1,1,["\n    "])),(n()(),o._26(16777216,null,2,1,null,View_AddonModWorkshopSubmissionPage_3)),o._30(31,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,1,["\n    "])),(n()(),o._31(33,0,null,1,26,"core-loading",[],null,null,null,Mn.b,Mn.a)),o._30(34,638976,null,0,Cn.a,[F.a,o.t,_n.b,rn.b],{hideUntil:[0,"hideUntil"]},null),(n()(),o._55(-1,0,["\n        "])),(n()(),o._26(16777216,null,0,1,null,View_AddonModWorkshopSubmissionPage_4)),o._30(37,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,0,["\n\n        "])),(n()(),o._26(16777216,null,0,1,null,View_AddonModWorkshopSubmissionPage_9)),o._30(40,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,0,["\n\n        "])),(n()(),o._26(16777216,null,0,1,null,View_AddonModWorkshopSubmissionPage_12)),o._30(43,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,0,["\n\n        "])),(n()(),o._26(16777216,null,0,1,null,View_AddonModWorkshopSubmissionPage_13)),o._30(46,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,0,["\n\n        "])),(n()(),o._26(16777216,null,0,1,null,View_AddonModWorkshopSubmissionPage_16)),o._30(49,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,0,["\n\n        "])),(n()(),o._26(16777216,null,0,1,null,View_AddonModWorkshopSubmissionPage_18)),o._30(52,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,0,["\n\n        "])),(n()(),o._26(16777216,null,0,1,null,View_AddonModWorkshopSubmissionPage_21)),o._30(55,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,0,["\n\n        "])),(n()(),o._26(16777216,null,0,1,null,View_AddonModWorkshopSubmissionPage_22)),o._30(58,16384,null,0,Y.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,0,["\n    "])),(n()(),o._55(-1,1,["\n"])),(n()(),o._55(-1,null,["\n"]))],function(n,l){var e=l.component;n(l,7,0);n(l,12,0,e.title,"module",e.module.id,e.courseId);n(l,19,0,e.assessmentId&&e.access.assessingallowed);n(l,22,0,e.canAddFeedback);n(l,31,0,!(e.assessmentId&&e.access.assessingallowed||e.canAddFeedback));n(l,34,0,e.loaded);n(l,37,0,e.submission);n(l,40,0,!e.canAddFeedback&&e.evaluate&&e.evaluate.text);n(l,43,0,e.ownAssessment&&!e.assessment);n(l,46,0,e.submissionInfo&&e.submissionInfo.reviewedby&&e.submissionInfo.reviewedby.length&&!e.assessment);n(l,49,0,e.submissionInfo&&e.submissionInfo.reviewerof&&e.submissionInfo.reviewerof.length&&!e.assessment);n(l,52,0,e.canAddFeedback);n(l,55,0,e.assessmentId);n(l,58,0,e.assessmentId&&!e.access.assessingallowed&&e.assessment.feedbackreviewer)},function(n,l){var e=l.component;n(l,5,0,o._44(l,6)._hidden,o._44(l,6)._sbPadding);n(l,14,0,!e.loaded);n(l,27,0,o._44(l,28).statusbarPadding,o._44(l,28)._hasRefresher)})}Object.defineProperty(l,"__esModule",{value:!0});var o=e(0),s=e(5),u=e(3),t=e(26),a=e(32),i=e(483),r=e(2146),d=e(200),_=this&&this.__decorate||function(n,l,e,o){var s,u=arguments.length,t=u<3?l:null===o?o=Object.getOwnPropertyDescriptor(l,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)t=Reflect.decorate(n,l,e,o);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(t=(u<3?s(t):u>3?s(l,e,t):s(l,e))||t);return u>3&&t&&Object.defineProperty(l,e,t),t},c=function(){function AddonModWorkshopSubmissionPageModule(){}return AddonModWorkshopSubmissionPageModule=_([Object(o.I)({declarations:[r.a],imports:[a.a,t.a,i.a,d.a,s.l.forChild(r.a),u.b.forChild()]})],AddonModWorkshopSubmissionPageModule)}(),m=e(1527),h=e(1528),f=e(1529),p=e(1530),b=e(1531),g=e(1532),k=e(1533),w=e(1534),v=e(1535),I=e(1536),A=e(1537),S=e(1538),y=e(1539),V=e(1542),P=e(1543),M=e(1540),C=e(1541),W=e(1544),x=e(274),E=e(1572),L=e(47),j=e(44),D=e(8),O=e(25),F=e(18),U=e(161),R=e(15),G=e(29),H=e(45),T=e(215),B=e(175),N=e(48),$=e(31),q=e(21),z=e(19),J=e(27),K=e(33),Y=e(7),Q=e(89),X=e(34),Z=e(1627),nn=e(528),ln=e(191),en=e(205),on=e(20),sn=e(46),un=e(1),tn=e(216),an=e(184),rn=e(2),dn=e(10),_n=e(9),cn=e(28),mn=e(162),hn=e(49),fn=e(4),pn=e(11),bn=e(22),gn=e(6),kn=e(17),wn=e(14),vn=e(43),In=e(41),An=e(30),Sn=e(36),yn=e(39),Vn=e(145),Pn=e(251),Mn=e(56),Cn=e(53),Wn=e(1596),xn=o._29({encapsulation:2,styles:[],data:{}}),En=(o._27("addon-mod-workshop-assessment",Wn.a,function View_AddonModWorkshopAssessmentComponent_Host_0(n){return o._57(0,[(n()(),o._31(0,0,null,null,1,"addon-mod-workshop-assessment",[],null,null,null,View_AddonModWorkshopAssessmentComponent_0,xn)),o._30(1,114688,null,0,Wn.a,[ln.a,en.a,on.a,sn.a,fn.a,un.a],null,null)],function(n,l){n(l,1,0)},null)},{assessment:"assessment",summary:"summary",courseId:"courseId",submission:"submission",module:"module",workshop:"workshop",access:"access"},{},[]),e(68)),Ln=e(725),jn=e(319),Dn=e(189),On=e(23),Fn=e(110),Un=e(126),Rn=e(111),Gn=e(35),Hn=e(61),Tn=e(253),Bn=e(218),Nn=e(2145),$n=e(1557),qn=e(179),zn=e(85),Jn=e(74),Kn=e(177),Yn=e(194),Qn=e(373),Xn=e(40),Zn=e(722),nl=e(214),ll=e(472),el=e(723),ol=e(317),sl=e(250),ul=e(374),tl=e(183),al=e(109),il=e(70),rl=e(16),dl=e(186),_l=o._29({encapsulation:2,styles:[],data:{}}),cl=o._27("page-addon-mod-workshop-submission-page",r.a,function View_AddonModWorkshopSubmissionPage_Host_0(n){return o._57(0,[(n()(),o._31(0,0,null,null,1,"page-addon-mod-workshop-submission-page",[],null,null,null,View_AddonModWorkshopSubmissionPage_0,_l)),o._30(1,245760,null,0,r.a,[il.a,un.a,Kn.a,ln.a,zn.a,en.a,on.a,pn.b,fn.a,On.d,F.a,_n.b,rl.a,[2,G.a],dl.a,sn.a],null,null)],function(n,l){n(l,1,0)},null)},{},{},[]),ml=e(369),hl=e(370),fl=e(372),pl=e(371),bl=e(471),gl=e(721),kl=e(108),wl=e(273),vl=e(76),Il=e(272);e.d(l,"AddonModWorkshopSubmissionPageModuleNgFactory",function(){return Al});var Al=o._28(c,[],function(n){return o._40([o._41(512,o.o,o._21,[[8,[m.a,h.a,f.a,p.a,b.a,g.a,k.a,w.a,v.a,I.a,A.a,S.a,y.a,V.a,P.a,M.a,C.a,W.a,x.a,E.a,cl]],[3,o.o],o.K]),o._41(4608,Y.m,Y.l,[o.G,[2,Y.w]]),o._41(4608,On.x,On.x,[]),o._41(4608,On.d,On.d,[]),o._41(4608,ml.b,ml.a,[]),o._41(4608,hl.a,hl.b,[]),o._41(4608,fl.b,fl.a,[]),o._41(4608,pl.b,pl.a,[]),o._41(4608,F.a,F.a,[bl.a,ml.b,hl.a,fl.b,pl.b,F.b,F.c]),o._41(512,a.a,a.a,[]),o._41(512,Y.b,Y.b,[]),o._41(512,On.v,On.v,[]),o._41(512,On.i,On.i,[]),o._41(512,On.s,On.s,[]),o._41(512,gl.a,gl.a,[]),o._41(512,u.b,u.b,[]),o._41(512,kl.a,kl.a,[]),o._41(512,t.a,t.a,[]),o._41(512,wl.a,wl.a,[]),o._41(512,vl.a,vl.a,[]),o._41(512,d.a,d.a,[]),o._41(512,i.a,i.a,[]),o._41(512,gl.b,gl.b,[]),o._41(512,c,c,[]),o._41(256,F.c,void 0,[]),o._41(256,F.b,void 0,[]),o._41(256,Il.a,r.a,[])])})},2145:function(n,l,e){"use strict";function View_AddonModWorkshopAssessmentStrategyComponent_1(n){return o._57(0,[(n()(),o._31(0,0,null,null,4,null,null,null,null,null,null,null)),(n()(),o._55(-1,null,["\n            "])),(n()(),o._31(2,0,null,null,1,"core-dynamic-component",[],null,null,null,s.b,s.a)),o._30(3,901120,null,0,u.a,[t.b,o.o,o.F,[2,a.a],o.j,o.t,i.a],{component:[0,"component"],data:[1,"data"]},null),(n()(),o._55(-1,null,["\n        "]))],function(n,l){var e=l.component;n(l,3,0,e.componentClass,e.data)},null)}function View_AddonModWorkshopAssessmentStrategyComponent_2(n){return o._57(0,[(n()(),o._31(0,0,null,null,3,"div",[["class","core-info-card"]],null,null,null,null,null)),(n()(),o._55(1,null,["\n            ","\n        "])),o._48(2,{$a:0}),o._47(131072,r.a,[d.a,o.j])],null,function(n,l){var e=l.component;n(l,1,0,o._56(l,1,0,o._44(l,3).transform("addon.mod_workshop.assessmentstrategynotsupported",n(l,2,0,e.strategy))))})}function View_AddonModWorkshopAssessmentStrategyComponent_5(n){return o._57(0,[(n()(),o._31(0,0,null,null,1,"core-input-errors",[["item-content",""]],null,null,null,_.b,_.a)),o._30(1,638976,null,0,c.a,[d.a],{errorText:[0,"errorText"]},null)],function(n,l){n(l,1,0,l.component.fieldErrors.feedbackauthor)},null)}function View_AddonModWorkshopAssessmentStrategyComponent_4(n){return o._57(0,[(n()(),o._31(0,0,null,null,19,"ion-item",[["class","item item-block"],["stacked",""]],null,null,null,m.b,m.a)),o._30(1,1097728,null,3,h.a,[f.a,p.a,o.t,o.V,[2,b.a]],null,null),o._52(335544320,5,{contentLabel:0}),o._52(603979776,6,{_buttons:1}),o._52(603979776,7,{_icons:1}),o._30(5,16384,null,0,g.a,[],null,null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(7,0,null,1,4,"ion-label",[["stacked",""]],null,null,null,k.b,k.a)),o._30(8,16384,[[5,4]],0,w.a,[p.a,o.t,o.V,[8,null],[8,""],[8,null],[8,null]],null,null),o._30(9,4308992,null,0,v.a,[o.t,d.a,I.b,A.b],{coreMarkRequired:[0,"coreMarkRequired"]},null),(n()(),o._55(10,0,["",""])),o._47(131072,r.a,[d.a,o.j]),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(13,0,null,3,2,"core-rich-text-editor",[["contextLevel","module"],["elementId","feedbackauthor_editor"],["item-content",""]],null,[[null,"contentChanged"]],function(n,l,e){var o=!0;if("contentChanged"===l){o=!1!==n.component.onFeedbackChange(e)&&o}return o},S.c,S.b)),o._30(14,1228800,null,0,y.a,[i.a,V.b,P.a,M.a,[2,C.a],o.t,W.b,A.b,x.a,E.a],{control:[0,"control"],component:[1,"component"],componentId:[2,"componentId"],autoSave:[3,"autoSave"],contextLevel:[4,"contextLevel"],contextInstanceId:[5,"contextInstanceId"],elementId:[6,"elementId"],draftExtraParams:[7,"draftExtraParams"]},{contentChanged:"contentChanged"}),o._48(15,{asid:0}),(n()(),o._55(-1,2,["\n                "])),(n()(),o._26(16777216,null,3,1,null,View_AddonModWorkshopAssessmentStrategyComponent_5)),o._30(18,16384,null,0,L.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,2,["\n            "]))],function(n,l){var e=l.component;n(l,9,0,e.overallFeedkbackRequired);n(l,14,0,e.feedbackControl,e.component,e.workshop.coursemodule,!0,"module",e.workshop.coursemodule,"feedbackauthor_editor",n(l,15,0,e.assessmentId));n(l,18,0,e.overallFeedkbackRequired&&e.fieldErrors&&e.fieldErrors.feedbackauthor)},function(n,l){n(l,10,0,o._56(l,10,0,o._44(l,11).transform("addon.mod_workshop.feedbackauthor")))})}function View_AddonModWorkshopAssessmentStrategyComponent_6(n){return o._57(0,[(n()(),o._31(0,0,null,null,1,"core-attachments",[],null,null,null,j.b,j.a)),o._30(1,114688,null,0,D.a,[O.b,i.a,I.b,F.a,d.a,U.a],{files:[0,"files"],maxSize:[1,"maxSize"],maxSubmissions:[2,"maxSubmissions"],component:[3,"component"],componentId:[4,"componentId"],allowOffline:[5,"allowOffline"]},null)],function(n,l){var e=l.component;n(l,1,0,e.data.assessment.feedbackattachmentfiles,e.workshop.overallfeedbackmaxbytes,e.workshop.overallfeedbackfiles,e.component,e.componentId,!0)},null)}function View_AddonModWorkshopAssessmentStrategyComponent_8(n){return o._57(0,[(n()(),o._31(0,0,null,null,2,"ion-option",[],null,null,null,null,null)),o._30(1,16384,[[11,4]],0,R.a,[o.t],{value:[0,"value"]},null),(n()(),o._55(2,null,["",""]))],function(n,l){n(l,1,0,l.context.$implicit)},function(n,l){n(l,2,0,l.context.$implicit)})}function View_AddonModWorkshopAssessmentStrategyComponent_7(n){return o._57(0,[(n()(),o._31(0,0,null,null,24,"ion-item",[["class","item item-block"]],null,null,null,m.b,m.a)),o._30(1,1097728,null,3,h.a,[f.a,p.a,o.t,o.V,[2,b.a]],null,null),o._52(335544320,8,{contentLabel:0}),o._52(603979776,9,{_buttons:1}),o._52(603979776,10,{_icons:1}),o._30(5,16384,null,0,g.a,[],null,null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(7,0,null,1,4,"ion-label",[["stacked",""]],null,null,null,k.b,k.a)),o._30(8,16384,[[8,4]],0,w.a,[p.a,o.t,o.V,[8,null],[8,""],[8,null],[8,null]],null,null),o._30(9,4308992,null,0,v.a,[o.t,d.a,I.b,A.b],{coreMarkRequired:[0,"coreMarkRequired"]},null),(n()(),o._55(10,0,["",""])),o._47(131072,r.a,[d.a,o.j]),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(13,0,null,3,10,"ion-select",[["interface","action-sheet"]],[[2,"select-disabled",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"click"],[null,"keyup.space"]],function(n,l,e){var s=!0,u=n.component;if("click"===l){s=!1!==o._44(n,14)._click(e)&&s}if("keyup.space"===l){s=!1!==o._44(n,14)._keyup()&&s}if("ngModelChange"===l){s=!1!==(u.weight=e)&&s}return s},G.b,G.a)),o._30(14,1228800,null,1,H.a,[T.a,f.a,p.a,o.t,o.V,[2,h.a],B.a],{interface:[0,"interface"]},null),o._52(603979776,11,{options:1}),o._50(1024,null,N.l,function(n){return[n]},[H.a]),o._30(17,671744,null,0,N.q,[[2,N.b],[8,null],[8,null],[2,N.l]],{model:[0,"model"]},{update:"ngModelChange"}),o._50(2048,null,N.m,null,[N.q]),o._30(19,16384,null,0,N.n,[N.m],null,null),(n()(),o._55(-1,null,["\n                    "])),(n()(),o._26(16777216,null,null,1,null,View_AddonModWorkshopAssessmentStrategyComponent_8)),o._30(22,802816,null,0,L.j,[o._11,o._6,o.E],{ngForOf:[0,"ngForOf"]},null),(n()(),o._55(-1,null,["\n                "])),(n()(),o._55(-1,2,["\n            "]))],function(n,l){var e=l.component;n(l,9,0,!0);n(l,14,0,"action-sheet");n(l,17,0,e.weight);n(l,22,0,e.weights)},function(n,l){n(l,10,0,o._56(l,10,0,o._44(l,11).transform("addon.mod_workshop.assessmentweight")));n(l,13,0,o._44(l,14)._disabled,o._44(l,19).ngClassUntouched,o._44(l,19).ngClassTouched,o._44(l,19).ngClassPristine,o._44(l,19).ngClassDirty,o._44(l,19).ngClassValid,o._44(l,19).ngClassInvalid,o._44(l,19).ngClassPending)})}function View_AddonModWorkshopAssessmentStrategyComponent_9(n){return o._57(0,[(n()(),o._31(0,0,null,null,9,"ion-item",[["class","item item-block"],["text-wrap",""]],null,null,null,m.b,m.a)),o._30(1,1097728,null,3,h.a,[f.a,p.a,o.t,o.V,[2,b.a]],null,null),o._52(335544320,12,{contentLabel:0}),o._52(603979776,13,{_buttons:1}),o._52(603979776,14,{_icons:1}),o._30(5,16384,null,0,g.a,[],null,null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(7,16777216,null,2,1,"core-format-text",[["contextLevel","module"]],null,null,null,null,null)),o._30(8,540672,null,0,$.a,[o.t,P.a,i.a,I.b,d.a,x.a,A.b,V.b,t.b,M.a,O.b,q.a,[2,a.a],[2,C.a],[2,z.a],J.a,W.b,K.a,Y.a,Q.a,o._11,X.a],{text:[0,"text"],component:[1,"component"],componentId:[2,"componentId"],contextLevel:[3,"contextLevel"],contextInstanceId:[4,"contextInstanceId"],courseId:[5,"courseId"]},null),(n()(),o._55(-1,2,["\n            "]))],function(n,l){var e=l.component;n(l,8,0,e.data.assessment.feedbackauthor,e.component,e.componentId,"module",e.workshop.coursemodule,e.workshop.course)},null)}function View_AddonModWorkshopAssessmentStrategyComponent_12(n){return o._57(0,[(n()(),o._31(0,0,null,null,1,"core-file",[],null,null,null,Z.b,Z.a)),o._30(1,245760,null,0,nn.a,[P.a,A.b,i.a,M.a,O.b,ln.a,en.a,W.b,I.b,on.a,V.b],{file:[0,"file"],component:[1,"component"],componentId:[2,"componentId"]},null)],function(n,l){var e=l.component;n(l,1,0,l.parent.context.$implicit,e.component,e.componentId)},null)}function View_AddonModWorkshopAssessmentStrategyComponent_13(n){return o._57(0,[(n()(),o._31(0,0,null,null,1,"core-local-file",[],null,null,null,sn.b,sn.a)),o._30(1,114688,null,0,un.a,[en.a,A.b,I.b,tn.b,i.a,an.a,P.a,W.b],{file:[0,"file"]},null)],function(n,l){n(l,1,0,l.parent.context.$implicit)},null)}function View_AddonModWorkshopAssessmentStrategyComponent_11(n){return o._57(0,[(n()(),o._31(0,0,null,null,9,null,null,null,null,null,null,null)),(n()(),o._55(-1,null,["\n                        "])),(n()(),o._55(-1,null,["\n                        "])),(n()(),o._26(16777216,null,null,1,null,View_AddonModWorkshopAssessmentStrategyComponent_12)),o._30(4,16384,null,0,L.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,null,["\n                        "])),(n()(),o._55(-1,null,["\n                        "])),(n()(),o._26(16777216,null,null,1,null,View_AddonModWorkshopAssessmentStrategyComponent_13)),o._30(8,16384,null,0,L.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,null,["\n                    "]))],function(n,l){n(l,4,0,!l.context.$implicit.name);n(l,8,0,l.context.$implicit.name)},null)}function View_AddonModWorkshopAssessmentStrategyComponent_10(n){return o._57(0,[(n()(),o._31(0,0,null,null,12,"ion-item",[["class","item item-block"]],null,null,null,m.b,m.a)),o._30(1,1097728,null,3,h.a,[f.a,p.a,o.t,o.V,[2,b.a]],null,null),o._52(335544320,15,{contentLabel:0}),o._52(603979776,16,{_buttons:1}),o._52(603979776,17,{_icons:1}),o._30(5,16384,null,0,g.a,[],null,null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(7,0,null,2,4,"div",[["no-lines",""]],null,null,null,null,null)),(n()(),o._55(-1,null,["\n                    "])),(n()(),o._26(16777216,null,null,1,null,View_AddonModWorkshopAssessmentStrategyComponent_11)),o._30(10,802816,null,0,L.j,[o._11,o._6,o.E],{ngForOf:[0,"ngForOf"]},null),(n()(),o._55(-1,null,["\n                "])),(n()(),o._55(-1,2,["\n            "]))],function(n,l){n(l,10,0,l.component.data.assessment.feedbackattachmentfiles)},null)}function View_AddonModWorkshopAssessmentStrategyComponent_3(n){return o._57(0,[(n()(),o._31(0,0,null,null,29,"ion-card",[],null,null,null,null,null)),o._30(1,16384,null,0,rn.a,[p.a,o.t,o.V],null,null),(n()(),o._55(-1,null,["\n            "])),(n()(),o._31(3,0,null,null,10,"ion-item",[["class","item item-block"],["text-wrap",""]],null,null,null,m.b,m.a)),o._30(4,1097728,null,3,h.a,[f.a,p.a,o.t,o.V,[2,b.a]],null,null),o._52(335544320,2,{contentLabel:0}),o._52(603979776,3,{_buttons:1}),o._52(603979776,4,{_icons:1}),o._30(8,16384,null,0,g.a,[],null,null),(n()(),o._55(-1,2,["\n                "])),(n()(),o._31(10,0,null,2,2,"h2",[],null,null,null,null,null)),(n()(),o._55(11,null,["",""])),o._47(131072,r.a,[d.a,o.j]),(n()(),o._55(-1,2,["\n            "])),(n()(),o._55(-1,null,["\n            "])),(n()(),o._26(16777216,null,null,1,null,View_AddonModWorkshopAssessmentStrategyComponent_4)),o._30(16,16384,null,0,L.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,null,["\n            "])),(n()(),o._26(16777216,null,null,1,null,View_AddonModWorkshopAssessmentStrategyComponent_6)),o._30(19,16384,null,0,L.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,null,["\n            "])),(n()(),o._26(16777216,null,null,1,null,View_AddonModWorkshopAssessmentStrategyComponent_7)),o._30(22,16384,null,0,L.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,null,["\n            "])),(n()(),o._26(16777216,null,null,1,null,View_AddonModWorkshopAssessmentStrategyComponent_9)),o._30(25,16384,null,0,L.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,null,["\n            "])),(n()(),o._26(16777216,null,null,1,null,View_AddonModWorkshopAssessmentStrategyComponent_10)),o._30(28,16384,null,0,L.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,null,["\n        "]))],function(n,l){var e=l.component;n(l,16,0,e.edit);n(l,19,0,e.edit&&e.workshop.overallfeedbackfiles);n(l,22,0,e.edit&&e.access&&e.access.canallocate);n(l,25,0,!e.edit&&e.data.assessment.feedbackauthor);n(l,28,0,!e.edit&&e.workshop.overallfeedbackfiles&&e.data.assessment.feedbackattachmentfiles&&e.data.assessment.feedbackattachmentfiles.length)},function(n,l){n(l,11,0,o._56(l,11,0,o._44(l,12).transform("addon.mod_workshop.overallfeedback")))})}function View_AddonModWorkshopAssessmentStrategyComponent_0(n){return o._57(0,[o._52(402653184,1,{formElement:0}),(n()(),o._31(1,0,null,null,2,"h3",[["padding",""]],null,null,null,null,null)),(n()(),o._55(2,null,["",""])),o._47(131072,r.a,[d.a,o.j]),(n()(),o._55(-1,null,["\n\n"])),(n()(),o._31(5,0,[[1,0],["assessmentForm",1]],null,18,"form",[["name","mma-mod_workshop-assessment-form"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(n,l,e){var s=!0;if("submit"===l){s=!1!==o._44(n,7).onSubmit(e)&&s}if("reset"===l){s=!1!==o._44(n,7).onReset()&&s}return s},null,null)),o._30(6,16384,null,0,N.w,[],null,null),o._30(7,4210688,null,0,N.p,[[8,null],[8,null]],null,null),o._50(2048,null,N.b,null,[N.p]),o._30(9,16384,null,0,N.o,[N.b],null,null),(n()(),o._55(-1,null,["\n    "])),(n()(),o._31(11,0,null,null,11,"core-loading",[],null,null,null,dn.b,dn.a)),o._30(12,638976,null,0,_n.a,[d.a,o.t,W.b,A.b],{hideUntil:[0,"hideUntil"]},null),(n()(),o._55(-1,0,["\n        "])),(n()(),o._26(16777216,null,0,1,null,View_AddonModWorkshopAssessmentStrategyComponent_1)),o._30(15,16384,null,0,L.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,0,["\n\n        "])),(n()(),o._26(16777216,null,0,1,null,View_AddonModWorkshopAssessmentStrategyComponent_2)),o._30(18,16384,null,0,L.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,0,["\n\n        "])),(n()(),o._26(16777216,null,0,1,null,View_AddonModWorkshopAssessmentStrategyComponent_3)),o._30(21,16384,null,0,L.k,[o._11,o._6],{ngIf:[0,"ngIf"]},null),(n()(),o._55(-1,0,["\n    "])),(n()(),o._55(-1,null,["\n"]))],function(n,l){var e=l.component;n(l,12,0,e.assessmentStrategyLoaded);n(l,15,0,e.componentClass&&e.assessmentStrategyLoaded);n(l,18,0,e.notSupported);n(l,21,0,e.assessmentStrategyLoaded&&e.overallFeedkback&&(e.edit||e.data.assessment.feedbackauthor||e.data.assessment.feedbackattachmentfiles&&e.data.assessment.feedbackattachmentfiles.length))},function(n,l){n(l,2,0,o._56(l,2,0,o._44(l,3).transform("addon.mod_workshop.assessmentform")));n(l,5,0,o._44(l,9).ngClassUntouched,o._44(l,9).ngClassTouched,o._44(l,9).ngClassPristine,o._44(l,9).ngClassDirty,o._44(l,9).ngClassValid,o._44(l,9).ngClassInvalid,o._44(l,9).ngClassPending)})}e.d(l,"a",function(){return kn}),l.b=View_AddonModWorkshopAssessmentStrategyComponent_0;var o=e(0),s=e(724),u=e(201),t=e(6),a=e(20),i=e(4),r=e(25),d=e(18),_=e(106),c=e(96),m=e(31),h=e(21),f=e(19),p=e(8),b=e(27),g=e(33),k=e(95),w=e(68),v=e(87),I=e(11),A=e(2),S=e(274),y=e(253),V=e(22),P=e(1),M=e(17),C=e(29),W=e(9),x=e(15),E=e(218),L=e(7),j=e(480),D=e(320),O=e(10),F=e(74),U=e(152),R=e(110),G=e(126),H=e(111),T=e(35),B=e(61),N=e(23),$=e(49),q=e(14),z=e(28),J=e(43),K=e(41),Y=e(30),Q=e(36),X=e(39),Z=e(252),nn=e(217),ln=e(113),en=e(67),on=e(58),sn=e(746),un=e(384),tn=e(54),an=e(24),rn=e(78),dn=e(56),_n=e(53),cn=e(1557),mn=e(179),hn=e(85),fn=e(177),pn=e(205),bn=e(191),gn=e(194),kn=o._29({encapsulation:2,styles:[],data:{}});o._27("addon-mod-workshop-assessment-strategy",cn.a,function View_AddonModWorkshopAssessmentStrategyComponent_Host_0(n){return o._57(0,[(n()(),o._31(0,0,null,null,1,"addon-mod-workshop-assessment-strategy",[],null,null,null,View_AddonModWorkshopAssessmentStrategyComponent_0,kn)),o._30(1,245760,null,0,cn.a,[d.a,o.C,W.b,mn.a,hn.a,i.a,I.b,A.b,P.a,F.a,fn.a,pn.a,bn.a,gn.a],null,null)],function(n,l){n(l,1,0)},null)},{workshop:"workshop",access:"access",assessmentId:"assessmentId",userId:"userId",strategy:"strategy",edit:"edit"},{},[])},2146:function(n,l,e){"use strict";(function(n){e.d(l,"a",function(){return y});var o=e(0),s=e(5),u=e(23),t=e(3),a=e(9),i=e(1),r=e(85),d=e(4),_=e(11),c=e(16),m=e(46),h=e(186),f=e(1557),p=e(177),b=e(205),g=e(191),k=e(293),w=this&&this.__decorate||function(n,l,e,o){var s,u=arguments.length,t=u<3?l:null===o?o=Object.getOwnPropertyDescriptor(l,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)t=Reflect.decorate(n,l,e,o);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(t=(u<3?s(t):u>3?s(l,e,t):s(l,e))||t);return u>3&&t&&Object.defineProperty(l,e,t),t},v=this&&this.__metadata||function(n,l){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,l)},I=this&&this.__param||function(n,l){return function(e,o){l(e,o,n)}},A=this&&this.__awaiter||function(n,l,e,o){return new(e||(e=Promise))(function(s,u){function fulfilled(n){try{step(o.next(n))}catch(n){u(n)}}function rejected(n){try{step(o.throw(n))}catch(n){u(n)}}function step(n){n.done?s(n.value):new e(function(l){l(n.value)}).then(fulfilled,rejected)}step((o=o.apply(n,l||[])).next())})},S=this&&this.__generator||function(n,l){function verb(u){return function(a){return function step(u){if(e)throw new TypeError("Generator is already executing.");for(;t;)try{if(e=1,o&&(s=o[2&u[0]?"return":u[0]?"throw":"next"])&&!(s=s.call(o,u[1])).done)return s;switch(o=0,s&&(u=[0,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,o=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(6===u[0]||2===u[0])){t=0;continue}if(3===u[0]&&(!s||u[1]>s[0]&&u[1]<s[3])){t.label=u[1];break}if(6===u[0]&&t.label<s[1]){t.label=s[1],s=u;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(u);break}s[2]&&t.ops.pop(),t.trys.pop();continue}u=l.call(n,t)}catch(n){u=[6,n],o=0}finally{e=s=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}var e,o,s,u,t={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u},y=function(){function AddonModWorkshopSubmissionPage(n,l,e,o,s,t,a,i,r,d,_,c,m,h,f,b){var g=this;this.workshopProvider=e,this.workshopOffline=o,this.syncProvider=s,this.workshopHelper=t,this.navCtrl=a,this.textUtils=i,this.domUtils=r,this.fb=d,this.translate=_,this.eventsProvider=c,this.courseProvider=m,this.content=h,this.gradesHelper=f,this.userProvider=b,this.loaded=!1,this.ownAssessment=!1,this.canAddFeedback=!1,this.canEdit=!1,this.canDelete=!1,this.originalEvaluation={published:"",text:"",grade:""},this.hasOffline=!1,this.component=p.a.COMPONENT,this.forceLeave=!1,this.isDestroyed=!1,this.module=n.get("module"),this.workshop=n.get("workshop"),this.access=n.get("access"),this.courseId=n.get("courseId"),this.profile=n.get("profile"),this.submissionInfo=n.get("submission")||{},this.assessment=n.get("assessment")||null,this.title=this.module.name,this.workshopId=this.module.instance,this.currentUserId=l.getCurrentSiteUserId(),this.siteId=l.getCurrentSiteId(),this.submissionId=this.submissionInfo.submissionid||this.submissionInfo.id,this.userId=this.submissionInfo.userid||null,this.strategy=this.assessment&&this.assessment.strategy||this.workshop&&this.workshop.strategy,this.assessmentId=this.assessment&&(this.assessment.assessmentid||this.assessment.id),this.assessmentUserId=this.assessment&&(this.assessment.reviewerid||this.assessment.userid),this.feedbackForm=new u.g({}),this.feedbackForm.addControl("published",this.fb.control("")),this.feedbackForm.addControl("grade",this.fb.control("")),this.feedbackForm.addControl("text",this.fb.control("")),this.obsAssessmentSaved=this.eventsProvider.on(p.a.ASSESSMENT_SAVED,function(n){g.eventReceived(n)},this.siteId),this.syncObserver=this.eventsProvider.on(k.a.AUTO_SYNCED,function(n){g.eventReceived(n)},this.siteId)}return AddonModWorkshopSubmissionPage.prototype.ngOnInit=function(){var n=this;this.fetchSubmissionData().then(function(){n.workshopProvider.logViewSubmission(n.submissionId,n.workshopId,n.workshop.name).then(function(){n.courseProvider.checkModuleCompletion(n.courseId,n.module.completiondata)}).catch(function(){})})},AddonModWorkshopSubmissionPage.prototype.ionViewCanLeave=function(){return A(this,void 0,void 0,function(){var n;return S(this,function(l){switch(l.label){case 0:return n=this.assessmentStrategy&&this.assessmentStrategy.hasDataChanged(),this.forceLeave||!this.hasEvaluationChanged()&&!n?[2]:[4,this.domUtils.showConfirm(this.translate.instant("core.confirmcanceledit"))];case 1:return l.sent(),this.domUtils.triggerFormCancelledEvent(this.formElement,this.siteId),[2]}})})},AddonModWorkshopSubmissionPage.prototype.editSubmission=function(){this.navCtrl.push("AddonModWorkshopEditSubmissionPage",{module:n,access:this.access,courseid:this.courseId,submissionId:this.submission.id})},AddonModWorkshopSubmissionPage.prototype.eventReceived=function(n){this.workshopId===n.workshopId&&(this.domUtils.scrollToTop(this.content),this.loaded=!1,this.refreshAllData())},AddonModWorkshopSubmissionPage.prototype.fetchSubmissionData=function(){var n=this;return this.workshopHelper.getSubmissionById(this.workshopId,this.submissionId).then(function(l){var e=[];if(n.submission=l,n.submission.attachmentfiles=l.attachmentfiles||[],n.submission.submissiongrade=n.submissionInfo&&n.submissionInfo.submissiongrade,n.submission.gradinggrade=n.submissionInfo&&n.submissionInfo.gradinggrade,n.submission.submissiongradeover=n.submissionInfo&&n.submissionInfo.submissiongradeover,n.userId=l.authorid||n.userId,n.canEdit=n.currentUserId==n.userId&&n.access.cansubmit&&n.access.modifyingsubmissionallowed,n.canDelete=n.access.candeletesubmissions,n.canAddFeedback=!n.assessmentId&&n.workshop.phase>p.a.PHASE_ASSESSMENT&&n.workshop.phase<p.a.PHASE_CLOSED&&n.access.canoverridegrades,n.ownAssessment=!1,n.access.canviewallassessments?e.push(n.workshopProvider.getSubmissionAssessments(n.workshopId,n.submissionId).then(function(l){n.canDelete&&(n.canDelete=!l.length),n.submissionInfo.reviewedby=l,n.submissionInfo.reviewedby.forEach(function(l){l.userid=l.reviewerid,l=n.workshopHelper.realGradeValue(n.workshop,l),n.currentUserId==l.userid&&(n.ownAssessment=l,l.ownAssessment=!0)})})):n.currentUserId==n.userId&&n.assessmentId?e.push(n.workshopProvider.getAssessment(n.workshopId,n.assessmentId).then(function(l){n.canDelete&&(n.canDelete=!l),l=n.parseAssessment(l),n.submissionInfo.reviewedby=[l]})):n.workshop.phase==p.a.PHASE_CLOSED&&n.userId==n.currentUserId&&n.workshopProvider.getSubmissionAssessments(n.workshopId,n.submissionId).then(function(l){n.submissionInfo.reviewedby=l.map(function(l){return n.parseAssessment(l)})}),(n.canAddFeedback||n.workshop.phase==p.a.PHASE_CLOSED)&&(n.evaluate={published:l.published,text:l.feedbackauthor||""}),n.canAddFeedback){n.isDestroyed||n.syncProvider.blockOperation(n.component,n.workshopId);var o=n.translate.instant("addon.mod_workshop.notoverridden");e.push(n.gradesHelper.makeGradesMenu(n.workshop.grade,void 0,o,-1).then(function(l){return n.evaluationGrades=l,n.evaluate.grade={label:n.gradesHelper.getGradeLabelFromValue(l,n.submissionInfo.submissiongradeover)||o,value:n.submissionInfo.submissiongradeover||-1},n.workshopOffline.getEvaluateSubmission(n.workshopId,n.submissionId).then(function(e){n.hasOffline=!0,n.evaluate.published=e.published,n.evaluate.text=e.feedbacktext,n.evaluate.grade={label:n.gradesHelper.getGradeLabelFromValue(l,e.gradeover)||o,value:e.gradeover||-1}}).catch(function(){n.hasOffline=!1}).finally(function(){n.originalEvaluation.published=n.evaluate.published,n.originalEvaluation.text=n.evaluate.text,n.originalEvaluation.grade=n.evaluate.grade.value,n.feedbackForm.controls.published.setValue(n.evaluate.published),n.feedbackForm.controls.grade.setValue(n.evaluate.grade.value),n.feedbackForm.controls.text.setValue(n.evaluate.text)})}))}else n.workshop.phase==p.a.PHASE_CLOSED&&l.gradeoverby&&n.evaluate&&n.evaluate.text&&e.push(n.userProvider.getProfile(l.gradeoverby,n.courseId,!0).then(function(l){n.evaluateByProfile=l}));return n.assessmentId&&!n.access.assessingallowed&&n.assessment.feedbackreviewer&&n.assessment.gradinggradeoverby&&e.push(n.userProvider.getProfile(n.assessment.gradinggradeoverby,n.courseId,!0).then(function(l){n.evaluateGradingByProfile=l})),Promise.all(e)}).then(function(){return n.workshopOffline.getSubmissions(n.workshopId).then(function(l){var e=n.workshopHelper.filterSubmissionActions(l,n.submissionId);return n.workshopHelper.applyOfflineData(n.submission,e).then(function(l){n.submission=l})})}).catch(function(l){n.domUtils.showErrorModalDefault(l,"core.course.errorgetmodule",!0)}).finally(function(){n.loaded=!0})},AddonModWorkshopSubmissionPage.prototype.parseAssessment=function(n){return n.userid=n.reviewerid,n=this.workshopHelper.realGradeValue(this.workshop,n),this.currentUserId==n.userid&&(this.ownAssessment=n,n.ownAssessment=!0),n},AddonModWorkshopSubmissionPage.prototype.forceLeavePage=function(){this.forceLeave=!0,this.navCtrl.pop()},AddonModWorkshopSubmissionPage.prototype.hasEvaluationChanged=function(){if(!this.loaded||!this.access.canoverridegrades)return!1;var n=this.feedbackForm.value;return this.originalEvaluation.published!=n.published||(this.originalEvaluation.text!=n.text||this.originalEvaluation.grade!=n.grade)},AddonModWorkshopSubmissionPage.prototype.refreshAllData=function(){var n=this,l=[];return l.push(this.workshopProvider.invalidateSubmissionData(this.workshopId,this.submissionId)),l.push(this.workshopProvider.invalidateSubmissionsData(this.workshopId)),l.push(this.workshopProvider.invalidateSubmissionAssesmentsData(this.workshopId,this.submissionId)),this.assessmentId&&(l.push(this.workshopProvider.invalidateAssessmentFormData(this.workshopId,this.assessmentId)),l.push(this.workshopProvider.invalidateAssessmentData(this.workshopId,this.assessmentId))),this.assessmentUserId&&l.push(this.workshopProvider.invalidateReviewerAssesmentsData(this.workshopId,this.assessmentId)),Promise.all(l).finally(function(){return n.eventsProvider.trigger(p.a.ASSESSMENT_INVALIDATED,n.siteId),n.fetchSubmissionData()})},AddonModWorkshopSubmissionPage.prototype.refreshSubmission=function(n){this.loaded&&this.refreshAllData().finally(function(){n.complete()})},AddonModWorkshopSubmissionPage.prototype.saveAssessment=function(){var n=this;this.assessmentStrategy&&this.assessmentStrategy.hasDataChanged()?this.assessmentStrategy.saveAssessment().then(function(){n.forceLeavePage()}).catch(function(){}):this.forceLeavePage()},AddonModWorkshopSubmissionPage.prototype.saveEvaluation=function(){var n=this;this.hasEvaluationChanged()?this.sendEvaluation().then(function(){n.forceLeavePage()}):this.forceLeavePage()},AddonModWorkshopSubmissionPage.prototype.sendEvaluation=function(){var n=this,l=this.domUtils.showModalLoading("core.sending",!0),e=this.feedbackForm.value;return e.grade=e.grade>=0?e.grade:"",e.text=this.textUtils.formatHtmlLines(e.text),this.workshopProvider.evaluateSubmission(this.workshopId,this.submissionId,this.courseId,e.text,e.published,e.grade).then(function(l){n.domUtils.triggerFormSubmittedEvent(n.formElement,!!l,n.siteId);var e={workshopId:n.workshopId,cmId:n.module.cmid,submissionId:n.submissionId};return n.workshopProvider.invalidateSubmissionData(n.workshopId,n.submissionId).finally(function(){n.eventsProvider.trigger(p.a.SUBMISSION_CHANGED,e,n.siteId)})}).catch(function(l){n.domUtils.showErrorModalDefault(l,"Cannot save submission evaluation")}).finally(function(){l.dismiss()})},AddonModWorkshopSubmissionPage.prototype.deleteSubmission=function(){var n=this;this.domUtils.showDeleteConfirm("addon.mod_workshop.submissiondeleteconfirm").then(function(){var l=n.domUtils.showModalLoading("core.deleting",!0),e=!1;n.workshopProvider.deleteSubmission(n.workshopId,n.submissionId,n.courseId).then(function(){return e=!0,n.workshopProvider.invalidateSubmissionData(n.workshopId,n.submissionId)}).catch(function(l){n.domUtils.showErrorModalDefault(l,"Cannot delete submission")}).finally(function(){if(l.dismiss(),e){n.eventsProvider.trigger(p.a.SUBMISSION_CHANGED,{workshopId:n.workshopId,cmId:n.module.cmid,submissionId:n.submissionId},n.siteId),n.forceLeavePage()}})})},AddonModWorkshopSubmissionPage.prototype.undoDeleteSubmission=function(){var n=this;return this.workshopOffline.deleteSubmissionAction(this.workshopId,this.submissionId,"delete").finally(function(){return n.eventsProvider.trigger(p.a.SUBMISSION_CHANGED,{workshopId:n.workshopId,cmId:n.module.cmid,submissionId:n.submissionId},n.siteId),n.refreshAllData()})},AddonModWorkshopSubmissionPage.prototype.ngOnDestroy=function(){this.isDestroyed=!0,this.syncObserver&&this.syncObserver.off(),this.obsAssessmentSaved&&this.obsAssessmentSaved.off(),this.syncProvider.unblockOperation(this.component,this.workshopId)},w([Object(o._9)(f.a),v("design:type",f.a)],AddonModWorkshopSubmissionPage.prototype,"assessmentStrategy",void 0),w([Object(o._9)("feedbackFormEl"),v("design:type",o.t)],AddonModWorkshopSubmissionPage.prototype,"formElement",void 0),AddonModWorkshopSubmissionPage=w([Object(o.m)({selector:"page-addon-mod-workshop-submission-page",templateUrl:"submission.html"}),I(13,Object(o.N)()),v("design:paramtypes",[s.t,i.a,p.a,g.a,r.a,b.a,s.s,_.b,d.a,u.d,t.c,a.b,c.a,s.f,h.a,m.a])],AddonModWorkshopSubmissionPage)}()}).call(l,e(2148)(n))},2148:function(n,l){n.exports=function(n){if(!n.webpackPolyfill){var l=Object.create(n);l.children||(l.children=[]),Object.defineProperty(l,"loaded",{enumerable:!0,get:function(){return l.l}}),Object.defineProperty(l,"id",{enumerable:!0,get:function(){return l.i}}),Object.defineProperty(l,"exports",{enumerable:!0}),l.webpackPolyfill=1}return l}}});
  =======
  webpackJsonp([9],{
  
  /***/ 2067:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CoreViewerTextPageModule", function() { return CoreViewerTextPageModule; });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(3);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ngx_translate_core__ = __webpack_require__(1);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__text__ = __webpack_require__(2219);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_components_module__ = __webpack_require__(13);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__directives_directives_module__ = __webpack_require__(14);
  // (C) Copyright 2015 Moodle Pty Ltd.
  //
  // Licensed under the Apache License, Version 2.0 (the "License");
  // you may not use this file except in compliance with the License.
  // You may obtain a copy of the License at
  //
  //     http://www.apache.org/licenses/LICENSE-2.0
  //
  // Unless required by applicable law or agreed to in writing, software
  // distributed under the License is distributed on an "AS IS" BASIS,
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  // See the License for the specific language governing permissions and
  // limitations under the License.
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
      var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
      if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
      else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
      return c > 3 && r && Object.defineProperty(target, key, r), r;
  };
  
  
  
  
  
  
  /**
   * Module to lazy load the page.
   */
  var CoreViewerTextPageModule = /** @class */ (function () {
      function CoreViewerTextPageModule() {
      }
      CoreViewerTextPageModule = __decorate([
          Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["I" /* NgModule */])({
              declarations: [
                  __WEBPACK_IMPORTED_MODULE_3__text__["a" /* CoreViewerTextPage */]
              ],
              imports: [
                  __WEBPACK_IMPORTED_MODULE_4__components_components_module__["a" /* CoreComponentsModule */],
                  __WEBPACK_IMPORTED_MODULE_5__directives_directives_module__["a" /* CoreDirectivesModule */],
                  __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["l" /* IonicPageModule */].forChild(__WEBPACK_IMPORTED_MODULE_3__text__["a" /* CoreViewerTextPage */]),
                  __WEBPACK_IMPORTED_MODULE_2__ngx_translate_core__["b" /* TranslateModule */].forChild()
              ]
          })
      ], CoreViewerTextPageModule);
      return CoreViewerTextPageModule;
  }());
  
  //# sourceMappingURL=text.module.js.map
  
  /***/ }),
  
  /***/ 2219:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CoreViewerTextPage; });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(3);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__providers_utils_text__ = __webpack_require__(10);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__providers_utils_utils__ = __webpack_require__(4);
  // (C) Copyright 2015 Moodle Pty Ltd.
  //
  // Licensed under the Apache License, Version 2.0 (the "License");
  // you may not use this file except in compliance with the License.
  // You may obtain a copy of the License at
  //
  //     http://www.apache.org/licenses/LICENSE-2.0
  //
  // Unless required by applicable law or agreed to in writing, software
  // distributed under the License is distributed on an "AS IS" BASIS,
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  // See the License for the specific language governing permissions and
  // limitations under the License.
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
      var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
      if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
      else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
      return c > 3 && r && Object.defineProperty(target, key, r), r;
  };
  var __metadata = (this && this.__metadata) || function (k, v) {
      if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  };
  
  
  
  
  /**
   * Page to render a certain text. If opened as a modal, it will have a button to close the modal.
   */
  var CoreViewerTextPage = /** @class */ (function () {
      function CoreViewerTextPage(viewCtrl, params, textUtils) {
          this.viewCtrl = viewCtrl;
          this.title = params.get('title');
          this.content = params.get('content');
          this.component = params.get('component');
          this.componentId = params.get('componentId');
          this.files = params.get('files');
          this.filter = params.get('filter');
          this.contextLevel = params.get('contextLevel');
          this.instanceId = params.get('instanceId');
          this.courseId = params.get('courseId');
          this.displayCopyButton = !!params.get('displayCopyButton');
      }
      /**
       * Close modal.
       */
      CoreViewerTextPage.prototype.closeModal = function () {
          this.viewCtrl.dismiss();
      };
      /**
       * Copy the text to clipboard.
       */
      CoreViewerTextPage.prototype.copyText = function () {
          __WEBPACK_IMPORTED_MODULE_3__providers_utils_utils__["a" /* CoreUtils */].instance.copyToClipboard(this.content);
      };
      CoreViewerTextPage = __decorate([
          Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
              selector: 'page-core-viewer-text',template:/*ion-inline-start:"/home/ravijain/Documents/GitHub/TriangleLearn-Ravi/src/core/viewer/pages/text/text.html"*/'<ion-header>\n    <ion-navbar core-back-button>\n        <ion-title>{{ title }}</ion-title>\n\n        <ion-buttons end>\n            <button ion-button icon-only (click)="closeModal()" [attr.aria-label]="\'core.close\' | translate">\n                <ion-icon name="close"></ion-icon>\n            </button>\n        </ion-buttons>\n    </ion-navbar>\n</ion-header>\n<ion-content padding>\n    <core-format-text [text]="content" [component]="component" [componentId]="componentId" [filter]="filter" [contextLevel]="contextLevel" [contextInstanceId]="instanceId" [courseId]="courseId"></core-format-text>\n\n    <ion-card *ngIf="files && files.length">\n        <core-file *ngFor="let file of files" [file]="file" [component]="component" [componentId]="componentId"></core-file>\n    </ion-card>\n</ion-content>\n<ion-footer color="light" *ngIf="displayCopyButton">\n    <button ion-button block color="light" icon-start (click)="copyText()">\n        <ion-icon name="copy" aria-hidden="true"></ion-icon>\n        {{ \'core.copytoclipboard\' | translate }}\n    </button>\n</ion-footer>\n'/*ion-inline-end:"/home/ravijain/Documents/GitHub/TriangleLearn-Ravi/src/core/viewer/pages/text/text.html"*/,
          }),
          __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["G" /* ViewController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["t" /* NavParams */], __WEBPACK_IMPORTED_MODULE_2__providers_utils_text__["b" /* CoreTextUtilsProvider */]])
      ], CoreViewerTextPage);
      return CoreViewerTextPage;
  }());
  
  //# sourceMappingURL=text.js.map
  
  /***/ })
  
  });
  //# sourceMappingURL=9.js.map
  >>>>>>> Stashed changes
  