"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[44158],{44158:(e,t,o)=>{o.r(t),o.d(t,{AddonUserProfileFieldTextComponent:()=>f});var n=o(25266),r=o(81690),i=o(86654),d=o(54438),l=o(60177),a=o(89417),s=o(2910),m=o(25880),c=o(17778),p=o(58197);function AddonUserProfileFieldTextComponent_ion_item_0_Template(e,t){if(1&e&&(d.j41(0,"ion-item")(1,"ion-label")(2,"p",2),d.nrm(3,"core-format-text",3),d.k0s(),d.j41(4,"p"),d.nrm(5,"core-format-text",3),d.k0s()()()),2&e){const e=d.XpG();d.R7$(3),d.Y8G("text",e.field.name)("contextLevel",e.contextLevel)("contextInstanceId",e.contextInstanceId)("courseId",e.courseId)("wsNotFiltered",!0),d.R7$(2),d.Y8G("text",e.value)("contextLevel",e.contextLevel)("contextInstanceId",e.contextInstanceId)("courseId",e.courseId)("wsNotFiltered",e.valueNotFiltered)}}function AddonUserProfileFieldTextComponent_ion_item_1_Template(e,t){if(1&e&&(d.j41(0,"ion-item",4)(1,"ion-input",5)(2,"div",6),d.nrm(3,"core-format-text",3),d.k0s()(),d.nrm(4,"core-input-errors",7),d.k0s()),2&e){const e=d.XpG();d.Y8G("formGroup",e.form),d.R7$(),d.FS9("maxlength",e.maxLength),d.Y8G("type",e.inputType)("formControlName",e.modelName)("placeholder",e.field.name),d.R7$(),d.Y8G("core-mark-required",e.required),d.R7$(),d.Y8G("text",e.field.name)("contextLevel",e.contextLevel)("contextInstanceId",e.contextInstanceId)("courseId",e.courseId)("wsNotFiltered",!0),d.R7$(),d.Y8G("control",e.form.controls[e.modelName])}}let f=(()=>{var e;class AddonUserProfileFieldTextComponent extends n.k{initForEdit(e){super.initForEdit(e),e.param2&&(this.maxLength=parseInt(e.param2,10)||Number.MAX_VALUE),this.inputType=r.j.isTrueOrOne(e.param3)?"password":"text"}}return(e=AddonUserProfileFieldTextComponent).ɵfac=(()=>{let t;return function AddonUserProfileFieldTextComponent_Factory(o){return(t||(t=d.xGo(e)))(o||e)}})(),e.ɵcmp=d.VBU({type:e,selectors:[["addon-user-profile-field-text"]],standalone:!0,features:[d.Vt3,d.aNF],decls:2,vars:2,consts:[[4,"ngIf"],["class","ion-text-wrap",3,"formGroup",4,"ngIf"],[1,"item-heading"],[3,"text","contextLevel","contextInstanceId","courseId","wsNotFiltered"],[1,"ion-text-wrap",3,"formGroup"],["labelPlacement","stacked",3,"type","formControlName","placeholder","maxlength"],["slot","label",3,"core-mark-required"],[3,"control"]],template:function AddonUserProfileFieldTextComponent_Template(e,t){1&e&&d.DNE(0,AddonUserProfileFieldTextComponent_ion_item_0_Template,6,10,"ion-item",0)(1,AddonUserProfileFieldTextComponent_ion_item_1_Template,5,12,"ion-item",1),2&e&&(d.Y8G("ngIf",!t.edit&&t.field&&t.field.name),d.R7$(),d.Y8G("ngIf",t.edit&&t.field&&t.field.shortname&&t.form))},dependencies:[i.n,l.bT,a.BC,a.cb,a.tU,s.$w,s.uz,s.he,s.Gw,a.j4,a.JD,m.q,c.j,p.B],encapsulation:2}),AddonUserProfileFieldTextComponent})()}}]);