"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4617],{4617:(e,o,n)=>{n.r(o),n.d(o,{AddonModWorkshopAssessmentStrategyCommentsComponent:()=>u});var t=n(10332),s=n(86654),m=n(54438),r=n(60177),d=n(89417),i=n(2910),_=n(25880),a=n(17778),c=n(43952),p=n(58197),l=n(73955);const _c0=e=>({$a:e});function AddonModWorkshopAssessmentStrategyCommentsComponent_section_0_ion_card_1_ion_item_6_core_input_errors_5_Template(e,o){if(1&e&&m.nrm(0,"core-input-errors",8),2&e){const e=m.XpG(3).index,o=m.XpG();m.Y8G("errorText",o.fieldErrors["peercomment_"+e])}}function AddonModWorkshopAssessmentStrategyCommentsComponent_section_0_ion_card_1_ion_item_6_Template(e,o){if(1&e){const e=m.RV6();m.j41(0,"ion-item")(1,"ion-textarea",5),m.mxI("ngModelChange",(function AddonModWorkshopAssessmentStrategyCommentsComponent_section_0_ion_card_1_ion_item_6_Template_ion_textarea_ngModelChange_1_listener(o){m.eBV(e);const n=m.XpG(2).index,t=m.XpG();return m.DH7(t.selectedValues[n].peercomment,o)||(t.selectedValues[n].peercomment=o),m.Njj(o)})),m.j41(2,"div",6),m.EFF(3),m.nI1(4,"translate"),m.k0s()(),m.DNE(5,AddonModWorkshopAssessmentStrategyCommentsComponent_section_0_ion_card_1_ion_item_6_core_input_errors_5_Template,1,1,"core-input-errors",7),m.k0s()}if(2&e){const e=m.XpG(2),o=e.$implicit,n=e.index,t=m.XpG();m.R7$(),m.R50("ngModel",t.selectedValues[n].peercomment),m.Y8G("core-auto-rows",t.selectedValues[n].peercomment),m.R7$(),m.Y8G("core-mark-required",!0),m.R7$(),m.SpI(" ",m.i5U(4,5,"addon.mod_workshop_assessment_comments.dimensioncommentfor",m.eq3(8,_c0,o.dimtitle))," "),m.R7$(2),m.Y8G("ngIf",t.fieldErrors["peercomment_"+n])}}function AddonModWorkshopAssessmentStrategyCommentsComponent_section_0_ion_card_1_ion_item_7_Template(e,o){if(1&e&&(m.j41(0,"ion-item",2)(1,"ion-label")(2,"p",9),m.EFF(3),m.nI1(4,"translate"),m.k0s(),m.j41(5,"p"),m.nrm(6,"core-format-text",3),m.k0s()()()),2&e){const e=m.XpG(2),o=e.$implicit,n=e.index,t=m.XpG();m.R7$(3),m.JRh(m.i5U(4,4,"addon.mod_workshop_assessment_comments.dimensioncommentfor",m.eq3(7,_c0,o.dimtitle))),m.R7$(3),m.Y8G("text",t.selectedValues[n].peercomment)("contextInstanceId",t.moduleId)("courseId",t.courseId)}}function AddonModWorkshopAssessmentStrategyCommentsComponent_section_0_ion_card_1_Template(e,o){if(1&e&&(m.j41(0,"ion-card")(1,"ion-item",2)(2,"ion-label")(3,"h2"),m.EFF(4),m.k0s(),m.nrm(5,"core-format-text",3),m.k0s()(),m.DNE(6,AddonModWorkshopAssessmentStrategyCommentsComponent_section_0_ion_card_1_ion_item_6_Template,6,10,"ion-item",1)(7,AddonModWorkshopAssessmentStrategyCommentsComponent_section_0_ion_card_1_ion_item_7_Template,7,9,"ion-item",4),m.k0s()),2&e){const e=m.XpG().$implicit,o=m.XpG();m.R7$(4),m.JRh(e.dimtitle),m.R7$(),m.Y8G("text",e.description)("contextInstanceId",o.moduleId)("courseId",o.courseId),m.R7$(),m.Y8G("ngIf",o.edit),m.R7$(),m.Y8G("ngIf",!o.edit)}}function AddonModWorkshopAssessmentStrategyCommentsComponent_section_0_Template(e,o){if(1&e&&(m.j41(0,"section"),m.DNE(1,AddonModWorkshopAssessmentStrategyCommentsComponent_section_0_ion_card_1_Template,8,6,"ion-card",1),m.k0s()),2&e){const e=o.index,n=m.XpG();m.R7$(),m.Y8G("ngIf",e<(null==n.assessment.form?null:n.assessment.form.dimenssionscount))}}let u=(()=>{var e;class AddonModWorkshopAssessmentStrategyCommentsComponent extends t.p{}return(e=AddonModWorkshopAssessmentStrategyCommentsComponent).ɵfac=(()=>{let o;return function AddonModWorkshopAssessmentStrategyCommentsComponent_Factory(n){return(o||(o=m.xGo(e)))(n||e)}})(),e.ɵcmp=m.VBU({type:e,selectors:[["addon-mod-workshop-assessment-strategy-comments"]],standalone:!0,features:[m.Vt3,m.aNF],decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ion-text-wrap"],["contextLevel","module",3,"text","contextInstanceId","courseId"],["class","ion-text-wrap",4,"ngIf"],["labelPlacement","stacked",3,"ngModelChange","ngModel","core-auto-rows"],["slot","label",3,"core-mark-required"],[3,"errorText",4,"ngIf"],[3,"errorText"],[1,"item-heading"]],template:function AddonModWorkshopAssessmentStrategyCommentsComponent_Template(e,o){1&e&&m.DNE(0,AddonModWorkshopAssessmentStrategyCommentsComponent_section_0_Template,2,1,"section",0),2&e&&m.Y8G("ngForOf",null==o.assessment.form?null:o.assessment.form.fields)},dependencies:[s.n,r.Sq,r.bT,d.BC,d.vS,i.b_,i.uz,i.he,i.nc,i.Gw,_.q,a.j,c.T,p.B,l.D9],encapsulation:2}),AddonModWorkshopAssessmentStrategyCommentsComponent})()}}]);