"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[89123],{89123:(e,n,t)=>{t.r(n),t.d(n,{AddonQtypeDescriptionComponent:()=>d});var o=t(1762),i=t(86654),p=t(54438),s=t(2910),c=t(58197);function AddonQtypeDescriptionComponent_Conditional_0_Conditional_1_Template(e,n){if(1&e&&p.nrm(0,"input",0),2&e){const e=p.XpG(2);p.Y8G("name",e.seenInput.name)("value",e.seenInput.value)}}function AddonQtypeDescriptionComponent_Conditional_0_Template(e,n){if(1&e&&(p.j41(0,"ion-list"),p.DNE(1,AddonQtypeDescriptionComponent_Conditional_0_Conditional_1_Template,1,2,"input",0),p.j41(2,"ion-item",1)(3,"ion-label"),p.nrm(4,"core-format-text",2),p.k0s()()()),2&e){const e=p.XpG();p.R7$(),p.vxM(1,e.seenInput?1:-1),p.R7$(3),p.Y8G("component",e.component)("componentId",e.componentId)("text",e.question.text)("contextLevel",e.contextLevel)("contextInstanceId",e.contextInstanceId)("courseId",e.courseId)}}let d=(()=>{var e;class AddonQtypeDescriptionComponent extends o.g{constructor(e){super("AddonQtypeDescriptionComponent",e)}init(){const e=this.initComponent();if(!e)return this.onReadyPromise.resolve(),void 0;const n=e.querySelector('input[type="hidden"][name*=seen]');if(!n)return this.onReadyPromise.resolve(),void 0;this.seenInput={name:n.name,value:n.value}}}return(e=AddonQtypeDescriptionComponent).ɵfac=function AddonQtypeDescriptionComponent_Factory(n){return new(n||e)(p.rXU(p.aKT))},e.ɵcmp=p.VBU({type:e,selectors:[["addon-qtype-description"]],standalone:!0,features:[p.Vt3,p.aNF],decls:1,vars:1,consts:[["type","hidden",3,"name","value"],[1,"ion-text-wrap"],[3,"component","componentId","text","contextLevel","contextInstanceId","courseId"]],template:function AddonQtypeDescriptionComponent_Template(e,n){1&e&&p.DNE(0,AddonQtypeDescriptionComponent_Conditional_0_Template,5,7,"ion-list"),2&e&&p.vxM(0,n.question&&(n.question.text||""===n.question.text)?0:-1)},dependencies:[i.n,s.uz,s.he,s.nf,c.B],encapsulation:2}),AddonQtypeDescriptionComponent})()}}]);