"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[61899],{61899:(e,o,n)=>{n.r(o),n.d(o,{AddonModDataFieldTextComponent:()=>m});var t=n(10093),d=n(86654),a=n(54438),r=n(60177),p=n(89417),i=n(2910),l=n(25880),s=n(17778);function AddonModDataFieldTextComponent_span_0_span_1_Template(e,o){if(1&e&&a.nrm(0,"span",6),2&e){const e=a.XpG(2);a.Y8G("core-mark-required",e.field.required)}}function AddonModDataFieldTextComponent_span_0_core_input_errors_3_Template(e,o){if(1&e&&a.nrm(0,"core-input-errors",7),2&e){const e=a.XpG(2);a.Y8G("control",e.form.controls["f_"+e.field.id])("errorText",e.error)}}function AddonModDataFieldTextComponent_span_0_Template(e,o){if(1&e&&(a.j41(0,"span",2),a.DNE(1,AddonModDataFieldTextComponent_span_0_span_1_Template,1,1,"span",3),a.nrm(2,"ion-input",4),a.DNE(3,AddonModDataFieldTextComponent_span_0_core_input_errors_3_Template,1,2,"core-input-errors",5),a.k0s()),2&e){const e=a.XpG();a.Y8G("formGroup",e.form),a.R7$(),a.Y8G("ngIf",e.editMode),a.R7$(),a.Y8G("formControlName","f_"+e.field.id)("placeholder",e.field.name),a.R7$(),a.Y8G("ngIf",e.error&&e.editMode)}}function AddonModDataFieldTextComponent_span_1_Template(e,o){if(1&e&&(a.j41(0,"span"),a.EFF(1),a.k0s()),2&e){const e=a.XpG();a.R7$(),a.JRh(e.value.content)}}let m=(()=>{var e;class AddonModDataFieldTextComponent extends t.u{init(){if(this.displayMode)return;let e;this.editMode&&this.value&&(e=this.value.content),this.addControl(`f_${this.field.id}`,e)}}return(e=AddonModDataFieldTextComponent).ɵfac=(()=>{let o;return function AddonModDataFieldTextComponent_Factory(n){return(o||(o=a.xGo(e)))(n||e)}})(),e.ɵcmp=a.VBU({type:e,selectors:[["addon-mod-data-field-text"]],standalone:!0,features:[a.Vt3,a.aNF],decls:2,vars:2,consts:[[3,"formGroup",4,"ngIf"],[4,"ngIf"],[3,"formGroup"],["class","core-mark-required",3,"core-mark-required",4,"ngIf"],["type","text",3,"formControlName","placeholder"],[3,"control","errorText",4,"ngIf"],[1,"core-mark-required",3,"core-mark-required"],[3,"control","errorText"]],template:function AddonModDataFieldTextComponent_Template(e,o){1&e&&a.DNE(0,AddonModDataFieldTextComponent_span_0_Template,4,5,"span",0)(1,AddonModDataFieldTextComponent_span_1_Template,2,1,"span",1),2&e&&(a.Y8G("ngIf",o.inputMode&&o.form),a.R7$(),a.Y8G("ngIf",o.displayMode&&o.value&&o.value.content))},dependencies:[d.n,r.bT,p.BC,p.cb,i.$w,i.Gw,p.j4,p.JD,l.q,s.j],encapsulation:2}),AddonModDataFieldTextComponent})()}}]);