"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[74391],{74391:(e,o,n)=>{n.r(o),n.d(o,{AddonModDataFieldNumberComponent:()=>s});var r=n(10093),t=n(86654),d=n(54438),a=n(60177),p=n(89417),i=n(2910),m=n(25880),l=n(17778);function AddonModDataFieldNumberComponent_span_0_span_1_Template(e,o){if(1&e&&d.nrm(0,"span",6),2&e){const e=d.XpG(2);d.Y8G("core-mark-required",e.field.required)}}function AddonModDataFieldNumberComponent_span_0_core_input_errors_3_Template(e,o){if(1&e&&d.nrm(0,"core-input-errors",7),2&e){const e=d.XpG(2);d.Y8G("control",e.form.controls["f_"+e.field.id])("errorText",e.error)}}function AddonModDataFieldNumberComponent_span_0_Template(e,o){if(1&e&&(d.j41(0,"span",2),d.DNE(1,AddonModDataFieldNumberComponent_span_0_span_1_Template,1,1,"span",3),d.nrm(2,"ion-input",4),d.DNE(3,AddonModDataFieldNumberComponent_span_0_core_input_errors_3_Template,1,2,"core-input-errors",5),d.k0s()),2&e){const e=d.XpG();d.Y8G("formGroup",e.form),d.R7$(),d.Y8G("ngIf",e.editMode),d.R7$(),d.Y8G("formControlName","f_"+e.field.id)("placeholder",e.field.name),d.R7$(),d.Y8G("ngIf",e.error&&e.editMode)}}function AddonModDataFieldNumberComponent_span_1_Template(e,o){if(1&e&&(d.j41(0,"span"),d.EFF(1),d.k0s()),2&e){const e=d.XpG();d.R7$(),d.JRh(e.value.content)}}let s=(()=>{var e;class AddonModDataFieldNumberComponent extends r.u{init(){if(this.displayMode)return;let e;if(this.editMode&&this.value){const o=parseFloat(this.value.content||"");e=isNaN(o)?"":o}this.addControl(`f_${this.field.id}`,e)}}return(e=AddonModDataFieldNumberComponent).ɵfac=(()=>{let o;return function AddonModDataFieldNumberComponent_Factory(n){return(o||(o=d.xGo(e)))(n||e)}})(),e.ɵcmp=d.VBU({type:e,selectors:[["addon-mod-data-field-number"]],standalone:!0,features:[d.Vt3,d.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","number",3,"formControlName","placeholder"],[3,"control","errorText",4,"ngIf"],[1,"core-mark-required",3,"core-mark-required"],[3,"control","errorText"]],template:function AddonModDataFieldNumberComponent_Template(e,o){1&e&&d.DNE(0,AddonModDataFieldNumberComponent_span_0_Template,4,5,"span",0)(1,AddonModDataFieldNumberComponent_span_1_Template,2,1,"span",1),2&e&&(d.Y8G("ngIf",o.inputMode&&o.form),d.R7$(),d.Y8G("ngIf",o.displayMode&&o.value&&o.value.content))},dependencies:[t.n,a.bT,p.BC,p.cb,i.$w,i.su,p.j4,p.JD,m.q,l.j],encapsulation:2}),AddonModDataFieldNumberComponent})()}}]);