"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8315],{8315:(n,t,e)=>{e.r(t),e.d(t,{AddonQtypeShortAnswerComponent:()=>d});var o=e(1762),i=e(86654),r=e(54438),s=e(2910),a=e(86198),c=e(58197),p=e(73955);const _c0=n=>[n];function AddonQtypeShortAnswerComponent_Conditional_0_Conditional_4_Conditional_4_Template(n,t){if(1&n&&r.nrm(0,"ion-icon",4),2&n){const n=r.XpG(3);r.Y8G("name",n.question.input.correctIcon)("color",r.eq3(3,_c0,n.question.input.correctIconColor))("ariaLabel",n.question.input.correctIconLabel)}}function AddonQtypeShortAnswerComponent_Conditional_0_Conditional_4_Template(n,t){if(1&n&&(r.j41(0,"ion-item"),r.nrm(1,"ion-input",3),r.nI1(2,"translate"),r.nI1(3,"translate"),r.DNE(4,AddonQtypeShortAnswerComponent_Conditional_0_Conditional_4_Conditional_4_Template,1,5,"ion-icon",4),r.k0s()),2&n){const n=r.XpG(2);r.ZvI("ion-text-wrap addon-qtype-shortanswer-input core-",n.question.input.correctIconColor,"-item"),r.R7$(),r.Y8G("value",n.question.input.value)("disabled",n.question.input.readOnly)("label",r.bMT(2,9,"addon.mod_quiz.answercolon"))("placeholder",n.question.input.readOnly?"":r.bMT(3,11,"core.question.answer")),r.BMQ("name",n.question.input.name),r.R7$(3),r.vxM(4,n.question.input.correctIcon?4:-1)}}function AddonQtypeShortAnswerComponent_Conditional_0_Template(n,t){if(1&n&&(r.j41(0,"ion-list")(1,"ion-item",0)(2,"ion-label"),r.nrm(3,"core-format-text",1),r.k0s()(),r.DNE(4,AddonQtypeShortAnswerComponent_Conditional_0_Conditional_4_Template,5,13,"ion-item",2),r.k0s()),2&n){const n=r.XpG();r.R7$(3),r.Y8G("component",n.component)("componentId",n.componentId)("text",n.question.text)("contextLevel",n.contextLevel)("contextInstanceId",n.contextInstanceId)("courseId",n.courseId),r.R7$(),r.vxM(4,n.question.input&&!n.question.input.isInline?4:-1)}}let d=(()=>{var n;class AddonQtypeShortAnswerComponent extends o.g{constructor(n){super("AddonQtypeShortAnswerComponent",n)}init(){this.initInputTextComponent(),this.onReadyPromise.resolve()}}return(n=AddonQtypeShortAnswerComponent).ɵfac=function AddonQtypeShortAnswerComponent_Factory(t){return new(t||n)(r.rXU(r.aKT))},n.ɵcmp=r.VBU({type:n,selectors:[["addon-qtype-shortanswer"]],standalone:!0,features:[r.Vt3,r.aNF],decls:1,vars:1,consts:[[1,"ion-text-wrap","addon-qtype-shortanswer-text"],[3,"component","componentId","text","contextLevel","contextInstanceId","courseId"],[3,"class"],["labelPlacement","stacked","type","text","autocorrect","off",3,"value","disabled","label","placeholder"],["slot","end",1,"core-correct-icon",3,"name","color","ariaLabel"]],template:function AddonQtypeShortAnswerComponent_Template(n,t){1&n&&r.DNE(0,AddonQtypeShortAnswerComponent_Conditional_0_Template,5,7,"ion-list"),2&n&&r.vxM(0,t.question&&(t.question.text||""===t.question.text)?0:-1)},dependencies:[i.n,s.iq,s.$w,s.uz,s.he,s.nf,s.Gw,a.t,c.B,p.D9],styles:["[_nghost-%COMP%]   .core-correct-icon[_ngcontent-%COMP%]{margin-top:14px}"]}),AddonQtypeShortAnswerComponent})()}}]);