"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6871],{6871:(e,o,n)=>{n.r(o),n.d(o,{AddonModWorkshopAssessmentStrategyRubricComponent:()=>_});var s=n(10332),t=n(86654),r=n(54438),d=n(60177),i=n(89417),c=n(2910),a=n(25880),l=n(17778),m=n(58197);function AddonModWorkshopAssessmentStrategyRubricComponent_section_0_ion_card_1_core_input_errors_6_Template(e,o){if(1&e&&r.nrm(0,"core-input-errors",7),2&e){const e=r.XpG(2).index,o=r.XpG();r.Y8G("errorText",o.fieldErrors["chosenlevelid_"+e])}}function AddonModWorkshopAssessmentStrategyRubricComponent_section_0_ion_card_1_ion_item_9_Template(e,o){if(1&e&&(r.j41(0,"ion-item")(1,"ion-radio",8)(2,"p"),r.nrm(3,"core-format-text",4),r.k0s()()()),2&e){const e=o.$implicit,n=r.XpG(3);r.R7$(),r.Y8G("value",e.levelid)("disabled",!n.edit),r.R7$(2),r.Y8G("text",e.definition)("contextInstanceId",n.moduleId)("courseId",n.courseId)}}function AddonModWorkshopAssessmentStrategyRubricComponent_section_0_ion_card_1_Template(e,o){if(1&e){const e=r.RV6();r.j41(0,"ion-card")(1,"ion-item",2)(2,"ion-label")(3,"h2",3),r.EFF(4),r.k0s(),r.nrm(5,"core-format-text",4),r.k0s(),r.DNE(6,AddonModWorkshopAssessmentStrategyRubricComponent_section_0_ion_card_1_core_input_errors_6_Template,1,1,"core-input-errors",5),r.k0s(),r.j41(7,"ion-list")(8,"ion-radio-group",6),r.mxI("ngModelChange",(function AddonModWorkshopAssessmentStrategyRubricComponent_section_0_ion_card_1_Template_ion_radio_group_ngModelChange_8_listener(o){r.eBV(e);const n=r.XpG().index,s=r.XpG();return r.DH7(s.selectedValues[n].chosenlevelid,o)||(s.selectedValues[n].chosenlevelid=o),r.Njj(o)})),r.DNE(9,AddonModWorkshopAssessmentStrategyRubricComponent_section_0_ion_card_1_ion_item_9_Template,4,5,"ion-item",0),r.k0s()()()}if(2&e){const e=r.XpG(),o=e.$implicit,n=e.index,s=r.XpG();r.R7$(3),r.Y8G("core-mark-required",s.edit),r.R7$(),r.JRh(o.dimtitle),r.R7$(),r.Y8G("text",o.description)("contextInstanceId",s.moduleId)("courseId",s.courseId),r.R7$(),r.Y8G("ngIf",s.edit&&s.fieldErrors["chosenlevelid_"+n]),r.R7$(2),r.R50("ngModel",s.selectedValues[n].chosenlevelid),r.Y8G("name","chosenlevelid_"+n),r.R7$(),r.Y8G("ngForOf",o.fields)}}function AddonModWorkshopAssessmentStrategyRubricComponent_section_0_Template(e,o){if(1&e&&(r.j41(0,"section"),r.DNE(1,AddonModWorkshopAssessmentStrategyRubricComponent_section_0_ion_card_1_Template,10,9,"ion-card",1),r.k0s()),2&e){const e=o.index,n=r.XpG();r.R7$(),r.Y8G("ngIf",e<(null==n.assessment.form?null:n.assessment.form.dimenssionscount))}}let _=(()=>{var e;class AddonModWorkshopAssessmentStrategyRubricComponent extends s.p{}return(e=AddonModWorkshopAssessmentStrategyRubricComponent).ɵfac=(()=>{let o;return function AddonModWorkshopAssessmentStrategyRubricComponent_Factory(n){return(o||(o=r.xGo(e)))(n||e)}})(),e.ɵcmp=r.VBU({type:e,selectors:[["addon-mod-workshop-assessment-strategy-rubric"]],standalone:!0,features:[r.Vt3,r.aNF],decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"ion-text-wrap"],[3,"core-mark-required"],["contextLevel","module",3,"text","contextInstanceId","courseId"],[3,"errorText",4,"ngIf"],[3,"ngModelChange","ngModel","name"],[3,"errorText"],["labelPlacement","end","justify","start",3,"value","disabled"]],template:function AddonModWorkshopAssessmentStrategyRubricComponent_Template(e,o){1&e&&r.DNE(0,AddonModWorkshopAssessmentStrategyRubricComponent_section_0_Template,2,1,"section",0),2&e&&r.Y8G("ngForOf",null==o.assessment.form?null:o.assessment.form.fields)},dependencies:[t.n,d.Sq,d.bT,i.BC,i.vS,c.b_,c.uz,c.he,c.nf,c.KO,c.f0,c.Je,a.q,l.j,m.B],encapsulation:2}),AddonModWorkshopAssessmentStrategyRubricComponent})()}}]);