iptdevs-design-system 3.1.932 → 3.1.934

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,6 +26,7 @@ import * as i2 from 'primeng/panel';
26
26
  import { PanelModule } from 'primeng/panel';
27
27
  import * as i4 from 'primeng/skeleton';
28
28
  import { SkeletonModule } from 'primeng/skeleton';
29
+ import * as i2$2 from 'design-system/src/public-api';
29
30
  import * as i6$1 from 'primeng/button';
30
31
  import { ButtonModule } from 'primeng/button';
31
32
  import { BehaviorSubject, finalize, map } from 'rxjs';
@@ -1603,6 +1604,10 @@ class ParameterService extends IPTGeneralService {
1603
1604
  let serviceUrl = this.SERVICE_URL + 'get/all/parameter/cod/form';
1604
1605
  return this.http.get(serviceUrl);
1605
1606
  }
1607
+ getAllCodStatus() {
1608
+ let serviceUrl = this.SERVICE_URL + 'get/all/codstatus';
1609
+ return this.http.get(serviceUrl, this.httpOptions);
1610
+ }
1606
1611
  }
1607
1612
  ParameterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: ParameterService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1608
1613
  ParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: ParameterService, providedIn: 'root' });
@@ -2614,6 +2619,618 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
2614
2619
  type: Input
2615
2620
  }] } });
2616
2621
 
2622
+ class updateUserFormComponent {
2623
+ constructor(fb, cdr, parameterService, baseService, userService) {
2624
+ this.fb = fb;
2625
+ this.cdr = cdr;
2626
+ this.parameterService = parameterService;
2627
+ this.baseService = baseService;
2628
+ this.userService = userService;
2629
+ this.visibleModal = false;
2630
+ this.closeModalIS = new EventEmitter();
2631
+ this.userUpdatedEvent = new EventEmitter();
2632
+ this.photo = '';
2633
+ this.phoneNumberIndicatives = [];
2634
+ this.idTypes = [];
2635
+ this.loader = false;
2636
+ this.states = [];
2637
+ this.cities = [];
2638
+ this.countries = [];
2639
+ this.showParentSection = false;
2640
+ this.showEmailIpt = false;
2641
+ this.indicatives = [];
2642
+ this.civilStatus = [];
2643
+ this.genders = [];
2644
+ this.stratums = [];
2645
+ this.parametersLoaded = false;
2646
+ // userUpdated = false;
2647
+ this.initialFormValue = [];
2648
+ this.justifyOptions = [
2649
+ // { name: 'Inactivos', code: 1 },
2650
+ { name: 'Activo', code: 1 },
2651
+ { name: 'Removido', code: 4 }
2652
+ ];
2653
+ this.initForm();
2654
+ }
2655
+ ngOnInit() {
2656
+ console.log("entro a getParameters por ngoninit");
2657
+ this.getParameters();
2658
+ }
2659
+ ngOnChanges(changes) {
2660
+ if (changes['visibleModal'] && changes['visibleModal'].currentValue) {
2661
+ console.log("entro a getParameters por visible modal, donde el change es:", changes['visibleModal']);
2662
+ this.initializeForm();
2663
+ this.cdr.detectChanges();
2664
+ }
2665
+ }
2666
+ getParameters() {
2667
+ if (this.parametersLoaded) {
2668
+ this.setParameters();
2669
+ this.initializeForm();
2670
+ return;
2671
+ }
2672
+ this.parameterService.getAllParametersCodForm().subscribe({
2673
+ next: (response) => {
2674
+ this.parametersAll = response.data;
2675
+ this.parametersLoaded = true;
2676
+ this.setParameters();
2677
+ this.initializeForm();
2678
+ this.cdr.detectChanges();
2679
+ },
2680
+ error: (err) => {
2681
+ console.error('Error fetching parameters:', err);
2682
+ this.parametersLoaded = false;
2683
+ }
2684
+ });
2685
+ }
2686
+ setParameters() {
2687
+ var _a, _b, _c, _d, _e, _f;
2688
+ this.idTypes = (_a = this.parametersAll) === null || _a === void 0 ? void 0 : _a.TypeIdCardByCountryCol;
2689
+ this.indicatives = (_b = this.parametersAll) === null || _b === void 0 ? void 0 : _b.indicatives;
2690
+ this.countries = (_c = this.parametersAll) === null || _c === void 0 ? void 0 : _c.country;
2691
+ this.civilStatus = (_d = this.parametersAll) === null || _d === void 0 ? void 0 : _d.civilStatus;
2692
+ this.states = (_e = this.parametersAll) === null || _e === void 0 ? void 0 : _e.State;
2693
+ this.cities = (_f = this.parametersAll) === null || _f === void 0 ? void 0 : _f.city;
2694
+ // this.genders = [
2695
+ // { code: 1, name: 'Masculino' },
2696
+ // { code: 2, name: 'Femenino' }
2697
+ // ];
2698
+ if (this.parametersAll && this.parametersAll.gender) {
2699
+ // Transformar gender en un arreglo de { code, name }
2700
+ this.genders = this.parametersAll.gender.map((gender) => ({
2701
+ code: gender.code,
2702
+ name: gender.name_spanish
2703
+ }));
2704
+ }
2705
+ else {
2706
+ this.genders = [];
2707
+ }
2708
+ }
2709
+ initializeForm() {
2710
+ var _a, _b, _c, _d;
2711
+ this.showParentSection = !!((_c = (_b = (_a = this.DataStudent) === null || _a === void 0 ? void 0 : _a.cods) === null || _b === void 0 ? void 0 : _b.parent) === null || _c === void 0 ? void 0 : _c.code);
2712
+ this.showEmailIpt = !!((_d = this.DataStudent) === null || _d === void 0 ? void 0 : _d.email_ipt) && this.DataStudent.email_ipt !== false;
2713
+ this.initForm();
2714
+ this.populateForm();
2715
+ }
2716
+ initForm() {
2717
+ var _a, _b, _c;
2718
+ const baseForm = {
2719
+ name: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(32)]],
2720
+ last_name: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(32)]],
2721
+ email: ['', [Validators.required, Validators.email, Validators.maxLength(300)]],
2722
+ gender: ['', [Validators.required]],
2723
+ id_card_type: ['', [Validators.required]],
2724
+ id_card: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(20)]],
2725
+ phone_indicative: ['', [Validators.required]],
2726
+ phone_number: ['', [Validators.required, Validators.minLength(10), Validators.maxLength(15)]],
2727
+ country: ['', [Validators.required]],
2728
+ state: ['', [Validators.required]],
2729
+ city: ['', [Validators.required]],
2730
+ role: [{ value: '', disabled: true }],
2731
+ service_hour: ['', Validators.required],
2732
+ password: ['', []],
2733
+ re_password: ['', []],
2734
+ changePassword: [false],
2735
+ status: ['', Validators.required]
2736
+ };
2737
+ if (this.showEmailIpt) {
2738
+ Object.assign(baseForm, {
2739
+ email_ipt: ['', [Validators.required, Validators.email, Validators.maxLength(255)]]
2740
+ });
2741
+ }
2742
+ if (this.showParentSection) {
2743
+ Object.assign(baseForm, {
2744
+ parent_name: ['', [Validators.required, Validators.minLength(3), Validators.maxLength(150)]],
2745
+ parent_last_name: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(150)]],
2746
+ parent_id_card_type: ['', [Validators.required]],
2747
+ parent_id_card: ['', [Validators.required, Validators.minLength(5), Validators.maxLength(30)]],
2748
+ parent_phone_indicative: ['', [Validators.required]],
2749
+ parent_phone_number: ['', [Validators.required, Validators.minLength(10), Validators.maxLength(20)]],
2750
+ parent_occupation: ['', [Validators.required, Validators.maxLength(50)]],
2751
+ parent_office_adrress: ['', [Validators.required, Validators.maxLength(150)]],
2752
+ parent_email: ['', [Validators.email, Validators.maxLength(255)]]
2753
+ });
2754
+ }
2755
+ this.updateUserForm = this.fb.group(baseForm, { validators: this.passwordMatchValidator });
2756
+ (_a = this.updateUserForm.get('changePassword')) === null || _a === void 0 ? void 0 : _a.valueChanges.subscribe((checked) => {
2757
+ const passwordControl = this.updateUserForm.get('password');
2758
+ const rePasswordControl = this.updateUserForm.get('re_password');
2759
+ if (checked) {
2760
+ passwordControl === null || passwordControl === void 0 ? void 0 : passwordControl.setValidators([Validators.required, Validators.minLength(5), Validators.maxLength(32)]);
2761
+ rePasswordControl === null || rePasswordControl === void 0 ? void 0 : rePasswordControl.setValidators([Validators.required, Validators.minLength(5), Validators.maxLength(32)]);
2762
+ }
2763
+ else {
2764
+ passwordControl === null || passwordControl === void 0 ? void 0 : passwordControl.clearValidators();
2765
+ rePasswordControl === null || rePasswordControl === void 0 ? void 0 : rePasswordControl.clearValidators();
2766
+ passwordControl === null || passwordControl === void 0 ? void 0 : passwordControl.setValue('');
2767
+ rePasswordControl === null || rePasswordControl === void 0 ? void 0 : rePasswordControl.setValue('');
2768
+ }
2769
+ passwordControl === null || passwordControl === void 0 ? void 0 : passwordControl.updateValueAndValidity();
2770
+ rePasswordControl === null || rePasswordControl === void 0 ? void 0 : rePasswordControl.updateValueAndValidity();
2771
+ });
2772
+ (_b = this.updateUserForm.get('password')) === null || _b === void 0 ? void 0 : _b.valueChanges.subscribe(() => {
2773
+ this.updateUserForm.updateValueAndValidity();
2774
+ });
2775
+ (_c = this.updateUserForm.get('re_password')) === null || _c === void 0 ? void 0 : _c.valueChanges.subscribe(() => {
2776
+ this.updateUserForm.updateValueAndValidity();
2777
+ });
2778
+ }
2779
+ passwordMatchValidator(form) {
2780
+ var _a, _b, _c;
2781
+ const changePassword = (_a = form.get('changePassword')) === null || _a === void 0 ? void 0 : _a.value;
2782
+ const password = (_b = form.get('password')) === null || _b === void 0 ? void 0 : _b.value;
2783
+ const rePassword = (_c = form.get('re_password')) === null || _c === void 0 ? void 0 : _c.value;
2784
+ if (!changePassword) {
2785
+ return null;
2786
+ }
2787
+ const mismatch = password && rePassword && password !== rePassword;
2788
+ return mismatch ? { mismatch: true } : null;
2789
+ }
2790
+ noWhitespaceValidator(control) {
2791
+ if (control.value && typeof control.value === 'string') {
2792
+ const trimmedValue = control.value.trim();
2793
+ if (trimmedValue.length === 0) {
2794
+ return { onlyWhitespace: true };
2795
+ }
2796
+ if (control.value !== trimmedValue) {
2797
+ return { hasWhitespace: true };
2798
+ }
2799
+ }
2800
+ return null;
2801
+ }
2802
+ transformRole(role) {
2803
+ const roleMap = {
2804
+ 1: 'Super Admin',
2805
+ 10: 'Jefe Academico',
2806
+ 11: 'Coordinador Academico',
2807
+ 12: 'Teacher Academico',
2808
+ 13: 'Estudiante',
2809
+ 15: 'Posible Estudiante',
2810
+ 20: 'Jefe Marketing',
2811
+ 21: 'Coordinador Marketing',
2812
+ 22: 'Auxiliar Marketing',
2813
+ 30: 'Jefe Administrativo',
2814
+ 31: 'Coordinador Administrativo',
2815
+ 32: 'Cajero Administrativo',
2816
+ 40: 'Jefe Comercial',
2817
+ 41: 'Coordinador Comercial',
2818
+ 42: 'Asesor Comercial',
2819
+ 50: 'Jefe Cartera',
2820
+ 51: 'Coordinador Cartera',
2821
+ 52: 'Asesor Cartera',
2822
+ 60: 'Proveedor'
2823
+ };
2824
+ return roleMap[Number(role)] || '';
2825
+ }
2826
+ populateForm() {
2827
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5;
2828
+ if (this.DataStudent) {
2829
+ const formValue = {
2830
+ name: this.DataStudent.name || '',
2831
+ last_name: this.DataStudent.last_name || '',
2832
+ email: this.DataStudent.email || '',
2833
+ gender: this.DataStudent.gender || null,
2834
+ id_card_type: this.DataStudent.id_card_type || '',
2835
+ id_card: this.DataStudent.id_card || '',
2836
+ phone_indicative: this.DataStudent.phone_indicative || '',
2837
+ phone_number: this.DataStudent.phone_number || '',
2838
+ country: (_a = this.DataStudent.city) === null || _a === void 0 ? void 0 : _a.country,
2839
+ state: (_b = this.DataStudent.city) === null || _b === void 0 ? void 0 : _b.state,
2840
+ city: (_c = this.DataStudent.city) === null || _c === void 0 ? void 0 : _c.code,
2841
+ role: this.transformRole(this.DataStudent.role) || '',
2842
+ service_hour: this.DataStudent.service_hour || 0,
2843
+ changePassword: false,
2844
+ password: '',
2845
+ re_password: '',
2846
+ status: this.DataStudent.user_status || ''
2847
+ };
2848
+ if (this.showEmailIpt) {
2849
+ formValue.email_ipt = this.DataStudent.email_ipt || '';
2850
+ }
2851
+ if (this.showParentSection) {
2852
+ Object.assign(formValue, {
2853
+ parent_name: ((_e = (_d = this.DataStudent.cods) === null || _d === void 0 ? void 0 : _d.parent) === null || _e === void 0 ? void 0 : _e.name) || '',
2854
+ parent_last_name: ((_g = (_f = this.DataStudent.cods) === null || _f === void 0 ? void 0 : _f.parent) === null || _g === void 0 ? void 0 : _g.last_name) || '',
2855
+ parent_id_card_type: ((_j = (_h = this.DataStudent.cods) === null || _h === void 0 ? void 0 : _h.parent) === null || _j === void 0 ? void 0 : _j.id_card_type) || '',
2856
+ parent_id_card: ((_l = (_k = this.DataStudent.cods) === null || _k === void 0 ? void 0 : _k.parent) === null || _l === void 0 ? void 0 : _l.id_card) || '',
2857
+ parent_phone_indicative: ((_o = (_m = this.DataStudent.cods) === null || _m === void 0 ? void 0 : _m.parent) === null || _o === void 0 ? void 0 : _o.phone_indicative) || '',
2858
+ parent_phone_number: ((_q = (_p = this.DataStudent.cods) === null || _p === void 0 ? void 0 : _p.parent) === null || _q === void 0 ? void 0 : _q.phone_number) || '',
2859
+ parent_occupation: ((_s = (_r = this.DataStudent.cods) === null || _r === void 0 ? void 0 : _r.parent) === null || _s === void 0 ? void 0 : _s.occupation) || '',
2860
+ parent_office_adrress: ((_u = (_t = this.DataStudent.cods) === null || _t === void 0 ? void 0 : _t.parent) === null || _u === void 0 ? void 0 : _u.office_adrress) || '',
2861
+ parent_email: ((_w = (_v = this.DataStudent.cods) === null || _v === void 0 ? void 0 : _v.parent) === null || _w === void 0 ? void 0 : _w.email) || ''
2862
+ });
2863
+ }
2864
+ this.updateUserForm.reset();
2865
+ this.updateUserForm.patchValue(formValue);
2866
+ this.initialFormValue = Object.assign({}, this.updateUserForm.value);
2867
+ if (formValue.country) {
2868
+ console.log("en populateForm se envio dato para setearse country");
2869
+ this.countries = (_x = this.parametersAll) === null || _x === void 0 ? void 0 : _x.country;
2870
+ this.selectCountry((_y = this.DataStudent.city) === null || _y === void 0 ? void 0 : _y.country);
2871
+ }
2872
+ if (formValue.state) {
2873
+ this.selectState((_z = this.DataStudent.city) === null || _z === void 0 ? void 0 : _z.state);
2874
+ }
2875
+ if (formValue.city) {
2876
+ this.selectCity((_0 = this.DataStudent.city) === null || _0 === void 0 ? void 0 : _0.code);
2877
+ }
2878
+ if (formValue.id_card_type) {
2879
+ this.idTypes = (_1 = this.parametersAll) === null || _1 === void 0 ? void 0 : _1.TypeIdCardByCountryCol;
2880
+ this.selectGender(this.DataStudent.id_card_type);
2881
+ }
2882
+ if (formValue.phone_indicative) {
2883
+ this.indicatives = (_2 = this.parametersAll) === null || _2 === void 0 ? void 0 : _2.indicatives;
2884
+ this.selectIndicative('phone_indicative', this.DataStudent.phone_indicative);
2885
+ }
2886
+ if (formValue.parent_phone_indicative) {
2887
+ this.indicatives = (_3 = this.parametersAll) === null || _3 === void 0 ? void 0 : _3.indicatives;
2888
+ this.selectIndicative('parent_phone_indicative', (_5 = (_4 = this.DataStudent.cods) === null || _4 === void 0 ? void 0 : _4.parent) === null || _5 === void 0 ? void 0 : _5.phone_indicative);
2889
+ }
2890
+ if (formValue.gender) {
2891
+ if (this.parametersAll && this.parametersAll.gender) {
2892
+ // Transformar gender en un arreglo de { code, name }
2893
+ this.genders = this.parametersAll.gender.map((gender) => ({
2894
+ code: gender.code,
2895
+ name: gender.name_spanish
2896
+ }));
2897
+ }
2898
+ else {
2899
+ this.genders = [];
2900
+ }
2901
+ this.selectGender(this.DataStudent.gender);
2902
+ }
2903
+ }
2904
+ }
2905
+ closeTable() {
2906
+ this.visibleModal = false;
2907
+ this.updateUserForm.reset();
2908
+ this.idTypes = [];
2909
+ this.countries = [];
2910
+ this.genders = [];
2911
+ this.closeModalIS.emit(false);
2912
+ }
2913
+ selectRol(role) {
2914
+ var _a, _b;
2915
+ if (role !== null) {
2916
+ (_a = this.updateUserForm.get('role')) === null || _a === void 0 ? void 0 : _a.setValue(this.transformRole(role));
2917
+ }
2918
+ else {
2919
+ (_b = this.updateUserForm.get('role')) === null || _b === void 0 ? void 0 : _b.setValue('');
2920
+ }
2921
+ }
2922
+ selectIndicative(field, indicative) {
2923
+ var _a, _b;
2924
+ if (indicative !== null) {
2925
+ (_a = this.updateUserForm.get(field)) === null || _a === void 0 ? void 0 : _a.setValue(indicative);
2926
+ }
2927
+ else {
2928
+ (_b = this.updateUserForm.get(field)) === null || _b === void 0 ? void 0 : _b.setValue(null);
2929
+ }
2930
+ }
2931
+ selectIdType(field, idType) {
2932
+ var _a, _b;
2933
+ if (idType !== null) {
2934
+ (_a = this.updateUserForm.get(field)) === null || _a === void 0 ? void 0 : _a.setValue(idType);
2935
+ }
2936
+ else {
2937
+ (_b = this.updateUserForm.get(field)) === null || _b === void 0 ? void 0 : _b.setValue(null);
2938
+ }
2939
+ }
2940
+ selectGender(gender) {
2941
+ var _a, _b;
2942
+ if (gender !== null) {
2943
+ (_a = this.updateUserForm.get('gender')) === null || _a === void 0 ? void 0 : _a.setValue(gender);
2944
+ }
2945
+ else {
2946
+ (_b = this.updateUserForm.get('gender')) === null || _b === void 0 ? void 0 : _b.setValue(null);
2947
+ }
2948
+ }
2949
+ selectCountry(country) {
2950
+ var _a;
2951
+ const countryNumber = typeof country === 'string' ? parseInt(country, 10) : country;
2952
+ if (country != null) {
2953
+ this.updateUserForm.controls['country'].setValue(countryNumber);
2954
+ console.log("se seteo country con el valor que entro en selectCountry");
2955
+ if (this.parametersAll && ((_a = this.parametersAll) === null || _a === void 0 ? void 0 : _a.State)) {
2956
+ this.states = this.parametersAll.State.filter((course) => {
2957
+ const state = typeof course.country === 'string'
2958
+ ? parseInt(course.country, 10)
2959
+ : course.country;
2960
+ return state === countryNumber;
2961
+ });
2962
+ }
2963
+ else {
2964
+ this.states = [];
2965
+ }
2966
+ this.updateUserForm.controls['state'].setValue(null);
2967
+ this.updateUserForm.controls['city'].setValue(null);
2968
+ this.cities = [];
2969
+ }
2970
+ else {
2971
+ this.updateUserForm.controls['country'].setValue(null);
2972
+ this.states = [];
2973
+ this.cities = [];
2974
+ this.cdr.detectChanges();
2975
+ }
2976
+ }
2977
+ selectState(state) {
2978
+ const stateNumber = typeof state === 'string' ? parseInt(state, 10) : state;
2979
+ if (state !== null) {
2980
+ this.updateUserForm.controls['state'].setValue(stateNumber);
2981
+ this.updateUserForm.controls['city'].setValue(null);
2982
+ this.cities = [];
2983
+ this.getState(stateNumber);
2984
+ }
2985
+ else {
2986
+ this.updateUserForm.controls['state'].setValue(null);
2987
+ this.updateUserForm.controls['city'].setValue(null);
2988
+ this.cities = [];
2989
+ }
2990
+ }
2991
+ getState(state) {
2992
+ this.getCity(state);
2993
+ }
2994
+ getCity(state) {
2995
+ var _a;
2996
+ const stateNumber = typeof state === 'string' ? parseInt(state, 10) : state;
2997
+ if ((_a = this.parametersAll) === null || _a === void 0 ? void 0 : _a.city) {
2998
+ this.cities = this.parametersAll.city.filter((course) => {
2999
+ const cityState = typeof course.state === 'string' ? parseInt(course.state, 10) : course.state;
3000
+ return cityState === stateNumber;
3001
+ });
3002
+ }
3003
+ else {
3004
+ this.cities = [];
3005
+ }
3006
+ }
3007
+ selectCity(city) {
3008
+ const cityNumber = typeof city === 'string' ? parseInt(city, 10) : city;
3009
+ if (city !== null) {
3010
+ this.updateUserForm.controls['city'].setValue(cityNumber);
3011
+ }
3012
+ else {
3013
+ this.updateUserForm.controls['city'].setValue(null);
3014
+ }
3015
+ }
3016
+ setPhoto(type) {
3017
+ if (type === 'student')
3018
+ this.photo = '/platform/academic/assets/student.jpg';
3019
+ if (type === 'academic')
3020
+ this.photo = '/platform/academic/assets/academico.png';
3021
+ if (type === 'administrative')
3022
+ this.photo = '/platform/administrative/assets/administrativo.jpg';
3023
+ if (type === 'marketing')
3024
+ this.photo = '/platform/marketing/assets/marketing.jpg';
3025
+ if (type === 'commercial')
3026
+ this.photo = '/platform/commercial/assets/user-form-assets/comercial.jpg';
3027
+ if (type === 'treasure')
3028
+ this.photo = '/platform/treasure/assets/administrativo.jpg';
3029
+ }
3030
+ updateUser() {
3031
+ var _a, _b;
3032
+ if (this.updateUserForm.invalid ||
3033
+ this.updateUserForm.hasError('mismatch') ||
3034
+ !this.hasFormChanged()) {
3035
+ this.updateUserForm.markAllAsTouched();
3036
+ console.log('createUser - Validation failed:', {
3037
+ invalid: this.updateUserForm.invalid,
3038
+ mismatch: this.updateUserForm.hasError('mismatch'),
3039
+ hasChanges: this.hasFormChanged()
3040
+ });
3041
+ return;
3042
+ }
3043
+ this.loader = true;
3044
+ const formValue = this.updateUserForm.getRawValue();
3045
+ const request = {
3046
+ token: this.baseService.getUserToken(),
3047
+ user: Object.assign(Object.assign({ code: this.DataStudent.code, name: formValue.name, last_name: formValue.last_name, id_card_type: formValue.id_card_type, id_card: formValue.id_card, phone_indicative: formValue.phone_indicative, phone_number: formValue.phone_number, email: formValue.email, gender: formValue.gender, city: formValue.city, service_hour: formValue.service_hour, role: this.DataStudent.role, status: formValue.status }, (this.showEmailIpt ? { email_ipt: formValue.email_ipt } : {})), (formValue.changePassword && formValue.password ? { password: formValue.password } : {})),
3048
+ parent: this.showParentSection
3049
+ ? {
3050
+ code: ((_b = (_a = this.DataStudent.cods) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.code) || null,
3051
+ name: formValue.parent_name || null,
3052
+ last_name: formValue.parent_last_name || null,
3053
+ id_card_type: formValue.parent_id_card_type || null,
3054
+ id_card: formValue.parent_id_card || null,
3055
+ phone_indicative: formValue.parent_phone_indicative || null,
3056
+ phone_number: formValue.parent_phone_number || null,
3057
+ occupation: formValue.parent_occupation || null,
3058
+ office_adrress: formValue.parent_office_adrress || null,
3059
+ email: formValue.parent_email || null
3060
+ }
3061
+ : null
3062
+ };
3063
+ console.log(request);
3064
+ this.userService.updateUserAndParentByCode(request).subscribe((response) => {
3065
+ // this.courseType = response.data;
3066
+ if (response.message.code === 1) {
3067
+ Swal.fire({
3068
+ position: 'center',
3069
+ icon: 'success',
3070
+ title: 'usuario actualizado satisfactoriamente',
3071
+ showConfirmButton: false,
3072
+ timer: 2500,
3073
+ });
3074
+ // this.userUpdated = true
3075
+ this.userUpdatedEvent.emit();
3076
+ this.closeTable();
3077
+ }
3078
+ else {
3079
+ Swal.fire({
3080
+ position: 'center',
3081
+ icon: 'error',
3082
+ title: 'Ha ocurrido un error inesperado',
3083
+ showConfirmButton: false,
3084
+ timer: 2500,
3085
+ });
3086
+ // this.userUpdated = false
3087
+ }
3088
+ });
3089
+ this.loader = false;
3090
+ }
3091
+ hasFormChanged() {
3092
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
3093
+ if (!this.initialFormValue || !this.DataStudent) {
3094
+ return false;
3095
+ }
3096
+ const currentValue = this.updateUserForm.getRawValue();
3097
+ if (currentValue.changePassword) {
3098
+ const password = currentValue.password;
3099
+ const rePassword = currentValue.re_password;
3100
+ const passwordControl = this.updateUserForm.get('password');
3101
+ const rePasswordControl = this.updateUserForm.get('re_password');
3102
+ if ((passwordControl === null || passwordControl === void 0 ? void 0 : passwordControl.valid) &&
3103
+ (rePasswordControl === null || rePasswordControl === void 0 ? void 0 : rePasswordControl.valid) &&
3104
+ password === rePassword &&
3105
+ (password === null || password === void 0 ? void 0 : password.trim()) !== '') {
3106
+ return true;
3107
+ }
3108
+ }
3109
+ const fieldsToCompare = [
3110
+ 'name',
3111
+ 'last_name',
3112
+ 'email',
3113
+ 'gender',
3114
+ 'id_card_type',
3115
+ 'id_card',
3116
+ 'phone_indicative',
3117
+ 'phone_number',
3118
+ 'country',
3119
+ 'state',
3120
+ 'city',
3121
+ 'role',
3122
+ 'service_hour',
3123
+ 'status'
3124
+ ];
3125
+ if (this.showEmailIpt) {
3126
+ fieldsToCompare.push('email_ipt');
3127
+ }
3128
+ if (this.showParentSection) {
3129
+ fieldsToCompare.push('parent_name', 'parent_last_name', 'parent_id_card_type', 'parent_id_card', 'parent_phone_indicative', 'parent_phone_number', 'parent_occupation', 'parent_office_adrress', 'parent_email');
3130
+ }
3131
+ for (const field of fieldsToCompare) {
3132
+ let originalValue;
3133
+ let currentFieldValue = currentValue[field];
3134
+ switch (field) {
3135
+ case 'name':
3136
+ originalValue = this.DataStudent.name || '';
3137
+ break;
3138
+ case 'last_name':
3139
+ originalValue = this.DataStudent.last_name || '';
3140
+ break;
3141
+ case 'email':
3142
+ originalValue = this.DataStudent.email || '';
3143
+ break;
3144
+ case 'email_ipt':
3145
+ originalValue = this.DataStudent.email_ipt || '';
3146
+ break;
3147
+ case 'gender':
3148
+ originalValue = this.DataStudent.gender || null;
3149
+ break;
3150
+ case 'id_card_type':
3151
+ originalValue = this.DataStudent.id_card_type || '';
3152
+ break;
3153
+ case 'id_card':
3154
+ originalValue = this.DataStudent.id_card || '';
3155
+ break;
3156
+ case 'phone_indicative':
3157
+ originalValue = this.DataStudent.phone_indicative || '';
3158
+ break;
3159
+ case 'phone_number':
3160
+ originalValue = this.DataStudent.phone_number || '';
3161
+ break;
3162
+ case 'country':
3163
+ originalValue = ((_a = this.DataStudent.city) === null || _a === void 0 ? void 0 : _a.country) || '';
3164
+ break;
3165
+ case 'state':
3166
+ originalValue = ((_b = this.DataStudent.city) === null || _b === void 0 ? void 0 : _b.state) || '';
3167
+ break;
3168
+ case 'city':
3169
+ originalValue = ((_c = this.DataStudent.city) === null || _c === void 0 ? void 0 : _c.code) || '';
3170
+ break;
3171
+ case 'role':
3172
+ originalValue = this.transformRole(this.DataStudent.role) || '';
3173
+ break;
3174
+ case 'service_hour':
3175
+ originalValue = this.DataStudent.service_hour;
3176
+ break;
3177
+ case 'status':
3178
+ originalValue = this.DataStudent.user_status || '';
3179
+ break;
3180
+ case 'parent_name':
3181
+ originalValue = ((_e = (_d = this.DataStudent.cods) === null || _d === void 0 ? void 0 : _d.parent) === null || _e === void 0 ? void 0 : _e.name) || '';
3182
+ break;
3183
+ case 'parent_last_name':
3184
+ originalValue = ((_g = (_f = this.DataStudent.cods) === null || _f === void 0 ? void 0 : _f.parent) === null || _g === void 0 ? void 0 : _g.last_name) || '';
3185
+ break;
3186
+ case 'parent_id_card_type':
3187
+ originalValue = (_j = (_h = this.DataStudent.cods) === null || _h === void 0 ? void 0 : _h.parent) === null || _j === void 0 ? void 0 : _j.id_card_type;
3188
+ break;
3189
+ case 'parent_id_card':
3190
+ originalValue = ((_l = (_k = this.DataStudent.cods) === null || _k === void 0 ? void 0 : _k.parent) === null || _l === void 0 ? void 0 : _l.id_card) || '';
3191
+ break;
3192
+ case 'parent_phone_indicative':
3193
+ originalValue = ((_o = (_m = this.DataStudent.cods) === null || _m === void 0 ? void 0 : _m.parent) === null || _o === void 0 ? void 0 : _o.phone_indicative) || '';
3194
+ break;
3195
+ case 'parent_phone_number':
3196
+ originalValue = ((_q = (_p = this.DataStudent.cods) === null || _p === void 0 ? void 0 : _p.parent) === null || _q === void 0 ? void 0 : _q.phone_number) || '';
3197
+ break;
3198
+ case 'parent_occupation':
3199
+ originalValue = ((_s = (_r = this.DataStudent.cods) === null || _r === void 0 ? void 0 : _r.parent) === null || _s === void 0 ? void 0 : _s.occupation) || '';
3200
+ break;
3201
+ case 'parent_office_adrress':
3202
+ originalValue = ((_u = (_t = this.DataStudent.cods) === null || _t === void 0 ? void 0 : _t.parent) === null || _u === void 0 ? void 0 : _u.office_adrress) || '';
3203
+ break;
3204
+ case 'parent_email':
3205
+ originalValue = ((_w = (_v = this.DataStudent.cods) === null || _v === void 0 ? void 0 : _v.parent) === null || _w === void 0 ? void 0 : _w.email) || '';
3206
+ break;
3207
+ default:
3208
+ originalValue = '';
3209
+ }
3210
+ const normalizedCurrent = currentFieldValue != null ? String(currentFieldValue).trim() : '';
3211
+ const normalizedOriginal = originalValue != null ? String(originalValue).trim() : '';
3212
+ if (normalizedCurrent !== normalizedOriginal) {
3213
+ return true;
3214
+ }
3215
+ }
3216
+ return false;
3217
+ }
3218
+ }
3219
+ updateUserFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: updateUserFormComponent, deps: [{ token: i1$1.FormBuilder }, { token: i0.ChangeDetectorRef }, { token: i2$2.ParameterService }, { token: i2$2.BaseService }, { token: i2$2.UserService }], target: i0.ɵɵFactoryTarget.Component });
3220
+ updateUserFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: updateUserFormComponent, selector: "ipt-update-user-form", inputs: { DataStudent: "DataStudent", visibleModal: "visibleModal" }, outputs: { closeModalIS: "closeModalIS", userUpdatedEvent: "userUpdatedEvent" }, usesOnChanges: true, ngImport: i0, template: "<!-- <p-dialog\n [(visible)]=\"visibleModal\"\n [style]=\"{width: '80%'}\"\n header=\"Actualizar usuario\"\n [modal]=\"true\"\n styleClass=\"p-fluid\"\n (onHide)=\"closeTable()\"\n [dismissableMask]=\"true\"\n [breakpoints]=\"{'1920px': '75vw', '1440px': '75vw', '1024px': '75vw', '576px': '100vw'}\"\n> -->\n<!-- <div>\n <pre>{{ updateUserForm.value | json }}</pre>\n <div>\n <pre>{{ updateUserForm.valid | json }}</pre>\n </div>\n</div> -->\n <div class=\"grid_container\">\n <div>\n <form *ngIf=\"updateUserForm\" autocomplete=\"off\" [formGroup]=\"updateUserForm\">\n <!-- User Information Section -->\n <div class=\"section-header\">\n <h2>Informaci\u00F3n del usuario</h2>\n </div>\n <div class=\"form-grid\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nombres'\"\n [control]=\"updateUserForm.controls['name']\"\n [validateText]=\"updateUserForm.controls['name'].hasError('required') ? 'Debe ingresar el nombre' :\n updateUserForm.controls['name'].hasError('minlength') ? 'M\u00EDnimo 3 caracteres' :\n updateUserForm.controls['name'].hasError('maxlength') ? 'M\u00E1ximo 32 caracteres' :\n updateUserForm.controls['name'].hasError('pattern') ? 'Solo letras, espacios y guiones' :\n updateUserForm.controls['name'].hasError('hasWhitespace') ? 'No se permiten espacios al inicio o final' :\n updateUserForm.controls['name'].hasError('onlyWhitespace') ? 'No se permiten solo espacios' :\n 'Debe ingresar el nombre'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Apellidos'\"\n [control]=\"updateUserForm.controls['last_name']\"\n [validateText]=\"updateUserForm.controls['last_name'].hasError('required') ? 'Debe ingresar los apellidos' :\n updateUserForm.controls['last_name'].hasError('minlength') ? 'M\u00EDnimo 3 caracteres' :\n updateUserForm.controls['last_name'].hasError('maxlength') ? 'M\u00E1ximo 32 caracteres' :\n updateUserForm.controls['last_name'].hasError('pattern') ? 'Solo letras, espacios y guiones' :\n updateUserForm.controls['last_name'].hasError('hasWhitespace') ? 'No se permiten espacios al inicio o final' :\n updateUserForm.controls['last_name'].hasError('onlyWhitespace') ? 'No se permiten solo espacios' :\n 'Debe ingresar los apellidos'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'email'\"\n [placeHolder]=\"'Email'\"\n [control]=\"updateUserForm.controls['email']\"\n [validateText]=\"updateUserForm.controls['email'].hasError('required') ? 'Debe ingresar un correo v\u00E1lido' :\n updateUserForm.controls['email'].hasError('maxlength') ? 'M\u00E1ximo 300 caracteres' :\n updateUserForm.controls['email'].hasError('pattern') ? 'Tiene que ser un email correcto' :\n updateUserForm.controls['email'].hasError('hasWhitespace') ? 'No se permiten espacios al inicio o final' :\n updateUserForm.controls['email'].hasError('onlyWhitespace') ? 'No se permiten solo espacios' :\n 'Debe ingresar un correo v\u00E1lido'\"\n ></ipt-input>\n <ipt-input\n *ngIf=\"showEmailIpt\"\n [inputType]=\"'text'\"\n [placeHolder]=\"'Email IPT'\"\n [control]=\"updateUserForm.controls['email_ipt']\"\n [validateText]=\"updateUserForm.controls['email_ipt'].hasError('required') ? 'Debe ingresar un correo IPT v\u00E1lido' :\n updateUserForm.controls['email_ipt'].hasError('maxlength') ? 'M\u00E1ximo 255 caracteres' :\n updateUserForm.controls['email_ipt'].hasError('pattern') ? 'Tiene que ser un email correcto' :\n updateUserForm.controls['email_ipt'].hasError('hasWhitespace') ? 'No se permiten espacios al inicio o final' :\n updateUserForm.controls['email_ipt'].hasError('onlyWhitespace') ? 'No se permiten solo espacios' :\n 'Debe ingresar un correo IPT v\u00E1lido'\"\n ></ipt-input>\n <ipt-input\n *ngIf=\"showEmailIpt\"\n [inputType]=\"'number'\"\n [placeHolder]=\"'Horas de servicio'\"\n [control]=\"updateUserForm.controls['service_hour']\"\n [validateText]=\"'Debe ingresar las horas de servicio'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Rol'\"\n [control]=\"updateUserForm.controls['role']\"\n [validateText]=\"'Rol requerido'\"\n ></ipt-input>\n <!-- <ipt-select\n [initialValue]=\"updateUserForm.controls['gender'].value\"\n [control]=\"updateUserForm.controls['gender']\"\n [selectCode]=\"updateUserForm.controls['gender'].value === null ? 'Seleccione g\u00E9nero' : (updateUserForm.controls['gender'].value | genderDisplay)\"\n [data]=\"genders\"\n (eventSelect)=\"selectGender($event)\"\n [defaultText]=\"'Seleccione g\u00E9nero'\"\n ></ipt-select> -->\n <ipt-select\n [initialValue]=\"updateUserForm.controls['phone_indicative'].value\"\n [control]=\"updateUserForm.controls['phone_indicative']\"\n [data]=\"indicatives\"\n (eventSelect)=\"selectIndicative('phone_indicative', $event)\"\n [defaultText]=\"'Indicativo'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'Tel\u00E9fono'\"\n [control]=\"updateUserForm.controls['phone_number']\"\n [validateText]=\"'Debe ingresar un n\u00FAmero de tel\u00E9fono v\u00E1lido'\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"updateUserForm.controls['id_card_type'].value\"\n [control]=\"updateUserForm.controls['id_card_type']\"\n [selectCode]=\"updateUserForm.controls['id_card_type'].value === null ? 'Tipo de documento' : updateUserForm.controls['id_card_type'].value\"\n [isRequired]=\"true\"\n [data]=\"idTypes\"\n (eventSelect)=\"selectIdType('id_card_type', $event)\"\n [defaultText]=\"'Tipo de documento'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'Documento'\"\n [control]=\"updateUserForm.controls['id_card']\"\n [validateText]=\"'Debe ingresar el n\u00FAmero de documento'\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"updateUserForm.controls['country'].value\"\n [control]=\"updateUserForm.controls['country']\"\n [selectCode]=\"updateUserForm.controls['country'].value === null ? 'Pa\u00EDs de residencia' : updateUserForm.controls['country'].value\"\n (eventSelect)=\"selectCountry($event)\"\n [data]=\"countries\"\n [defaultText]=\"'Pa\u00EDs de residencia'\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"updateUserForm.controls['state'].value\"\n [control]=\"updateUserForm.controls['state']\"\n [selectCode]=\"updateUserForm.controls['state'].value === null ? 'Departamento o estado' : updateUserForm.controls['state'].value\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectState($event)\"\n [data]=\"states\"\n [defaultText]=\"'Departamento o estado'\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"updateUserForm.controls['city'].value\"\n [control]=\"updateUserForm.controls['city']\"\n [selectCode]=\"updateUserForm.controls['city'].value === null ? 'Ciudad de residencia' : updateUserForm.controls['city'].value\"\n (eventSelect)=\"selectCity($event)\"\n [data]=\"cities\"\n [defaultText]=\"'Ciudad de residencia'\"\n ></ipt-select>\n <!-- <div *ngIf=\"this.DataStudent.role !== 13\" class=\"card flex justify-content-center align-content-center align-items-end text-cen ter \">\n <p-selectButton [options]=\"justifyOptions\" formControlName=\"status\" optionLabel=\"name\" optionValue=\"code\"></p-selectButton>\n </div>\n <div class=\"field\">\n <p-checkbox\n formControlName=\"changePassword\"\n label=\"Cambio de contrase\u00F1a\"\n [binary]=\"true\"\n ></p-checkbox>\n </div> -->\n </div>\n <div class=\"form-grid\" *ngIf=\"updateUserForm.controls['changePassword'].value\">\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Contrase\u00F1a'\"\n [control]=\"updateUserForm.controls['password']\"\n [validateText]=\"updateUserForm.controls['password'].hasError('required') ? 'La contrase\u00F1a es requerida' :\n updateUserForm.controls['password'].hasError('minlength') ? 'M\u00EDnimo 5 caracteres' :\n updateUserForm.controls['password'].hasError('maxlength') ? 'M\u00E1ximo 32 caracteres' :\n 'Ingrese una contrase\u00F1a v\u00E1lida'\"\n ></ipt-input>\n\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Repetir contrase\u00F1a'\"\n [control]=\"updateUserForm.controls['re_password']\"\n [validateText]=\"updateUserForm.controls['re_password'].hasError('required') ? 'Debe repetir la contrase\u00F1a' :\n updateUserForm.controls['re_password'].hasError('minlength') ? 'M\u00EDnimo 5 caracteres' :\n updateUserForm.controls['re_password'].hasError('maxlength') ? 'M\u00E1ximo 32 caracteres' :\n updateUserForm.hasError('mismatch') ? 'Las contrase\u00F1as no coinciden' :\n 'Repita la contrase\u00F1a'\"\n ></ipt-input>\n </div>\n\n <!-- Mensaje adicional para el error de mismatch (opcional, si quieres mostrarlo por separado) -->\n\n <div *ngIf=\"updateUserForm.hasError('mismatch') && updateUserForm.controls['changePassword'].value\" class=\"error-message\">\n <small >Las contrase\u00F1as no coinciden</small>\n </div>\n <!-- Parent Information Section -->\n <div class=\"section-header\" *ngIf=\"DataStudent?.cods\">\n <h2>Informaci\u00F3n del acudiente</h2>\n </div>\n <div *ngIf=\"DataStudent?.cods\">\n <div *ngIf=\"showParentSection; else noParentMessage\">\n <div class=\"form-grid\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nombres'\"\n [control]=\"updateUserForm.controls['parent_name']\"\n [validateText]=\"'Debe ingresar el nombre'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Apellidos'\"\n [control]=\"updateUserForm.controls['parent_last_name']\"\n [validateText]=\"'Debe ingresar los apellidos'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Ocupaci\u00F3n'\"\n [control]=\"updateUserForm.controls['parent_occupation']\"\n [validateText]=\"'Debe ingresar la ocupaci\u00F3n'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'email'\"\n [placeHolder]=\"'Email'\"\n [control]=\"updateUserForm.controls['parent_email']\"\n [validateText]=\"'Debe ingresar un correo v\u00E1lido'\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"updateUserForm.controls['parent_id_card_type'].value\"\n [control]=\"updateUserForm.controls['parent_id_card_type']\"\n [selectCode]=\"updateUserForm.controls['parent_id_card_type'].value === null ? 'Tipo de documento' : updateUserForm.controls['parent_id_card_type'].value\"\n [isRequired]=\"true\"\n [data]=\"idTypes\"\n (eventSelect)=\"selectIdType('parent_id_card_type', $event)\"\n [defaultText]=\"'Tipo de documento'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'Documento'\"\n [control]=\"updateUserForm.controls['parent_id_card']\"\n [validateText]=\"'Debe ingresar el n\u00FAmero de documento'\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"updateUserForm.controls['parent_phone_indicative'].value\"\n [control]=\"updateUserForm.controls['parent_phone_indicative']\"\n [data]=\"indicatives\"\n (eventSelect)=\"selectIndicative('parent_phone_indicative', $event)\"\n [defaultText]=\"'Indicativo'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'Tel\u00E9fono'\"\n [control]=\"updateUserForm.controls['parent_phone_number']\"\n [validateText]=\"'Debe ingresar un n\u00FAmero de tel\u00E9fono v\u00E1lido'\"\n ></ipt-input>\n\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Direcci\u00F3n de oficina'\"\n [control]=\"updateUserForm.controls['parent_office_adrress']\"\n [validateText]=\"'Debe ingresar la direcci\u00F3n'\"\n ></ipt-input>\n </div>\n </div>\n <ng-template #noParentMessage>\n <div class=\"no-parent-message\">\n <p>Sin acudiente</p>\n </div>\n </ng-template>\n </div>\n\n <div class=\"buttons-container\">\n <ipt-button\n [label]=\"'Actualizar'\"\n [isEnabled]=\"!loader && updateUserForm.valid && !updateUserForm.hasError('mismatch') && hasFormChanged()\"\n (onClick)=\"updateUser()\"\n [primary]=\"true\"\n ></ipt-button>\n </div>\n </form>\n </div>\n </div>\n<!-- </p-dialog> -->", styles: ["@media screen and (min-width: 320px){main{background:rgba(0,0,0,.472);color:#fff;position:fixed;top:0;left:0;height:100vh;width:100vw;transition:all .5s}main .modal_container{width:60%;height:-moz-fit-content;height:fit-content;position:absolute;inset:0;margin:auto;background-color:#fff;border-radius:3px}.header_modal{display:flex;padding:15px 15px 0;gap:1rem;align-items:center}.header_modal h1{padding:.5rem;background-color:#1c77f7;color:#fff;width:100%;border-radius:10px;font-size:1.25rem;font-weight:700}.header_modal button{margin-left:auto;font-size:26px;padding:1.2rem;font-weight:200;color:#6c7f7d;display:flex;width:25px;height:25px;align-items:center;justify-content:center;transition:50ms;background-color:transparent;border:none}.header_modal button:hover{cursor:pointer;border-radius:50%;background-color:#d4d4d4}.grid_container{display:grid;grid-template-columns:1fr;padding:0 15px}form{display:grid;grid-template-columns:1fr;gap:.25rem;justify-content:center;padding:0 1rem}.section-header{margin:1.5rem 0 .5rem;border-bottom:2px solid #1c77f7}.section-header h2{font-size:1.2rem;color:#1c77f7;font-weight:600;margin-bottom:.5rem}.form-grid{display:grid;grid-template-columns:1fr;gap:.25rem}.buttons-container{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center;align-items:center}.user-type-image{display:none}.no-parent-message{padding:1rem;text-align:center;color:#666;font-size:1rem;font-weight:500;background-color:#f8f9fa;border-radius:.5rem;margin-top:.5rem}}@media screen and (min-width: 768px){.form-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem}}@media screen and (min-width: 1366px){form{padding:0}}.field{height:1px;max-width:67%}.error-message{color:red;font-size:12px;margin-top:5px}.p-selectbutton{display:flex;flex-wrap:wrap;justify-content:center;width:100%;min-width:10rem}:host ::ng-deep .p-selectbutton .p-button{padding:.5rem;font-size:.875rem;height:30px}:host ::ng-deep .p-buttonset .p-button:first-of-type{height:30px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: ButtonComponent, selector: "ipt-button", inputs: ["primary", "size", "label", "buttonType", "isEnabled"], outputs: ["onClick"] }, { kind: "component", type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control", "prefix", "thousands", "decimal", "disabledSel"], outputs: ["dateSelected"] }, { kind: "component", type: SelectComponent, selector: "ipt-select", inputs: ["isRequired", "data", "defaultText", "selectCode", "disabledSel", "initialValue", "label", "control"], outputs: ["eventSelect"] }] });
3221
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: updateUserFormComponent, decorators: [{
3222
+ type: Component,
3223
+ args: [{ selector: 'ipt-update-user-form', template: "<!-- <p-dialog\n [(visible)]=\"visibleModal\"\n [style]=\"{width: '80%'}\"\n header=\"Actualizar usuario\"\n [modal]=\"true\"\n styleClass=\"p-fluid\"\n (onHide)=\"closeTable()\"\n [dismissableMask]=\"true\"\n [breakpoints]=\"{'1920px': '75vw', '1440px': '75vw', '1024px': '75vw', '576px': '100vw'}\"\n> -->\n<!-- <div>\n <pre>{{ updateUserForm.value | json }}</pre>\n <div>\n <pre>{{ updateUserForm.valid | json }}</pre>\n </div>\n</div> -->\n <div class=\"grid_container\">\n <div>\n <form *ngIf=\"updateUserForm\" autocomplete=\"off\" [formGroup]=\"updateUserForm\">\n <!-- User Information Section -->\n <div class=\"section-header\">\n <h2>Informaci\u00F3n del usuario</h2>\n </div>\n <div class=\"form-grid\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nombres'\"\n [control]=\"updateUserForm.controls['name']\"\n [validateText]=\"updateUserForm.controls['name'].hasError('required') ? 'Debe ingresar el nombre' :\n updateUserForm.controls['name'].hasError('minlength') ? 'M\u00EDnimo 3 caracteres' :\n updateUserForm.controls['name'].hasError('maxlength') ? 'M\u00E1ximo 32 caracteres' :\n updateUserForm.controls['name'].hasError('pattern') ? 'Solo letras, espacios y guiones' :\n updateUserForm.controls['name'].hasError('hasWhitespace') ? 'No se permiten espacios al inicio o final' :\n updateUserForm.controls['name'].hasError('onlyWhitespace') ? 'No se permiten solo espacios' :\n 'Debe ingresar el nombre'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Apellidos'\"\n [control]=\"updateUserForm.controls['last_name']\"\n [validateText]=\"updateUserForm.controls['last_name'].hasError('required') ? 'Debe ingresar los apellidos' :\n updateUserForm.controls['last_name'].hasError('minlength') ? 'M\u00EDnimo 3 caracteres' :\n updateUserForm.controls['last_name'].hasError('maxlength') ? 'M\u00E1ximo 32 caracteres' :\n updateUserForm.controls['last_name'].hasError('pattern') ? 'Solo letras, espacios y guiones' :\n updateUserForm.controls['last_name'].hasError('hasWhitespace') ? 'No se permiten espacios al inicio o final' :\n updateUserForm.controls['last_name'].hasError('onlyWhitespace') ? 'No se permiten solo espacios' :\n 'Debe ingresar los apellidos'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'email'\"\n [placeHolder]=\"'Email'\"\n [control]=\"updateUserForm.controls['email']\"\n [validateText]=\"updateUserForm.controls['email'].hasError('required') ? 'Debe ingresar un correo v\u00E1lido' :\n updateUserForm.controls['email'].hasError('maxlength') ? 'M\u00E1ximo 300 caracteres' :\n updateUserForm.controls['email'].hasError('pattern') ? 'Tiene que ser un email correcto' :\n updateUserForm.controls['email'].hasError('hasWhitespace') ? 'No se permiten espacios al inicio o final' :\n updateUserForm.controls['email'].hasError('onlyWhitespace') ? 'No se permiten solo espacios' :\n 'Debe ingresar un correo v\u00E1lido'\"\n ></ipt-input>\n <ipt-input\n *ngIf=\"showEmailIpt\"\n [inputType]=\"'text'\"\n [placeHolder]=\"'Email IPT'\"\n [control]=\"updateUserForm.controls['email_ipt']\"\n [validateText]=\"updateUserForm.controls['email_ipt'].hasError('required') ? 'Debe ingresar un correo IPT v\u00E1lido' :\n updateUserForm.controls['email_ipt'].hasError('maxlength') ? 'M\u00E1ximo 255 caracteres' :\n updateUserForm.controls['email_ipt'].hasError('pattern') ? 'Tiene que ser un email correcto' :\n updateUserForm.controls['email_ipt'].hasError('hasWhitespace') ? 'No se permiten espacios al inicio o final' :\n updateUserForm.controls['email_ipt'].hasError('onlyWhitespace') ? 'No se permiten solo espacios' :\n 'Debe ingresar un correo IPT v\u00E1lido'\"\n ></ipt-input>\n <ipt-input\n *ngIf=\"showEmailIpt\"\n [inputType]=\"'number'\"\n [placeHolder]=\"'Horas de servicio'\"\n [control]=\"updateUserForm.controls['service_hour']\"\n [validateText]=\"'Debe ingresar las horas de servicio'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Rol'\"\n [control]=\"updateUserForm.controls['role']\"\n [validateText]=\"'Rol requerido'\"\n ></ipt-input>\n <!-- <ipt-select\n [initialValue]=\"updateUserForm.controls['gender'].value\"\n [control]=\"updateUserForm.controls['gender']\"\n [selectCode]=\"updateUserForm.controls['gender'].value === null ? 'Seleccione g\u00E9nero' : (updateUserForm.controls['gender'].value | genderDisplay)\"\n [data]=\"genders\"\n (eventSelect)=\"selectGender($event)\"\n [defaultText]=\"'Seleccione g\u00E9nero'\"\n ></ipt-select> -->\n <ipt-select\n [initialValue]=\"updateUserForm.controls['phone_indicative'].value\"\n [control]=\"updateUserForm.controls['phone_indicative']\"\n [data]=\"indicatives\"\n (eventSelect)=\"selectIndicative('phone_indicative', $event)\"\n [defaultText]=\"'Indicativo'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'Tel\u00E9fono'\"\n [control]=\"updateUserForm.controls['phone_number']\"\n [validateText]=\"'Debe ingresar un n\u00FAmero de tel\u00E9fono v\u00E1lido'\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"updateUserForm.controls['id_card_type'].value\"\n [control]=\"updateUserForm.controls['id_card_type']\"\n [selectCode]=\"updateUserForm.controls['id_card_type'].value === null ? 'Tipo de documento' : updateUserForm.controls['id_card_type'].value\"\n [isRequired]=\"true\"\n [data]=\"idTypes\"\n (eventSelect)=\"selectIdType('id_card_type', $event)\"\n [defaultText]=\"'Tipo de documento'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'Documento'\"\n [control]=\"updateUserForm.controls['id_card']\"\n [validateText]=\"'Debe ingresar el n\u00FAmero de documento'\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"updateUserForm.controls['country'].value\"\n [control]=\"updateUserForm.controls['country']\"\n [selectCode]=\"updateUserForm.controls['country'].value === null ? 'Pa\u00EDs de residencia' : updateUserForm.controls['country'].value\"\n (eventSelect)=\"selectCountry($event)\"\n [data]=\"countries\"\n [defaultText]=\"'Pa\u00EDs de residencia'\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"updateUserForm.controls['state'].value\"\n [control]=\"updateUserForm.controls['state']\"\n [selectCode]=\"updateUserForm.controls['state'].value === null ? 'Departamento o estado' : updateUserForm.controls['state'].value\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectState($event)\"\n [data]=\"states\"\n [defaultText]=\"'Departamento o estado'\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"updateUserForm.controls['city'].value\"\n [control]=\"updateUserForm.controls['city']\"\n [selectCode]=\"updateUserForm.controls['city'].value === null ? 'Ciudad de residencia' : updateUserForm.controls['city'].value\"\n (eventSelect)=\"selectCity($event)\"\n [data]=\"cities\"\n [defaultText]=\"'Ciudad de residencia'\"\n ></ipt-select>\n <!-- <div *ngIf=\"this.DataStudent.role !== 13\" class=\"card flex justify-content-center align-content-center align-items-end text-cen ter \">\n <p-selectButton [options]=\"justifyOptions\" formControlName=\"status\" optionLabel=\"name\" optionValue=\"code\"></p-selectButton>\n </div>\n <div class=\"field\">\n <p-checkbox\n formControlName=\"changePassword\"\n label=\"Cambio de contrase\u00F1a\"\n [binary]=\"true\"\n ></p-checkbox>\n </div> -->\n </div>\n <div class=\"form-grid\" *ngIf=\"updateUserForm.controls['changePassword'].value\">\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Contrase\u00F1a'\"\n [control]=\"updateUserForm.controls['password']\"\n [validateText]=\"updateUserForm.controls['password'].hasError('required') ? 'La contrase\u00F1a es requerida' :\n updateUserForm.controls['password'].hasError('minlength') ? 'M\u00EDnimo 5 caracteres' :\n updateUserForm.controls['password'].hasError('maxlength') ? 'M\u00E1ximo 32 caracteres' :\n 'Ingrese una contrase\u00F1a v\u00E1lida'\"\n ></ipt-input>\n\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Repetir contrase\u00F1a'\"\n [control]=\"updateUserForm.controls['re_password']\"\n [validateText]=\"updateUserForm.controls['re_password'].hasError('required') ? 'Debe repetir la contrase\u00F1a' :\n updateUserForm.controls['re_password'].hasError('minlength') ? 'M\u00EDnimo 5 caracteres' :\n updateUserForm.controls['re_password'].hasError('maxlength') ? 'M\u00E1ximo 32 caracteres' :\n updateUserForm.hasError('mismatch') ? 'Las contrase\u00F1as no coinciden' :\n 'Repita la contrase\u00F1a'\"\n ></ipt-input>\n </div>\n\n <!-- Mensaje adicional para el error de mismatch (opcional, si quieres mostrarlo por separado) -->\n\n <div *ngIf=\"updateUserForm.hasError('mismatch') && updateUserForm.controls['changePassword'].value\" class=\"error-message\">\n <small >Las contrase\u00F1as no coinciden</small>\n </div>\n <!-- Parent Information Section -->\n <div class=\"section-header\" *ngIf=\"DataStudent?.cods\">\n <h2>Informaci\u00F3n del acudiente</h2>\n </div>\n <div *ngIf=\"DataStudent?.cods\">\n <div *ngIf=\"showParentSection; else noParentMessage\">\n <div class=\"form-grid\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nombres'\"\n [control]=\"updateUserForm.controls['parent_name']\"\n [validateText]=\"'Debe ingresar el nombre'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Apellidos'\"\n [control]=\"updateUserForm.controls['parent_last_name']\"\n [validateText]=\"'Debe ingresar los apellidos'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Ocupaci\u00F3n'\"\n [control]=\"updateUserForm.controls['parent_occupation']\"\n [validateText]=\"'Debe ingresar la ocupaci\u00F3n'\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'email'\"\n [placeHolder]=\"'Email'\"\n [control]=\"updateUserForm.controls['parent_email']\"\n [validateText]=\"'Debe ingresar un correo v\u00E1lido'\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"updateUserForm.controls['parent_id_card_type'].value\"\n [control]=\"updateUserForm.controls['parent_id_card_type']\"\n [selectCode]=\"updateUserForm.controls['parent_id_card_type'].value === null ? 'Tipo de documento' : updateUserForm.controls['parent_id_card_type'].value\"\n [isRequired]=\"true\"\n [data]=\"idTypes\"\n (eventSelect)=\"selectIdType('parent_id_card_type', $event)\"\n [defaultText]=\"'Tipo de documento'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'Documento'\"\n [control]=\"updateUserForm.controls['parent_id_card']\"\n [validateText]=\"'Debe ingresar el n\u00FAmero de documento'\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"updateUserForm.controls['parent_phone_indicative'].value\"\n [control]=\"updateUserForm.controls['parent_phone_indicative']\"\n [data]=\"indicatives\"\n (eventSelect)=\"selectIndicative('parent_phone_indicative', $event)\"\n [defaultText]=\"'Indicativo'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'Tel\u00E9fono'\"\n [control]=\"updateUserForm.controls['parent_phone_number']\"\n [validateText]=\"'Debe ingresar un n\u00FAmero de tel\u00E9fono v\u00E1lido'\"\n ></ipt-input>\n\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Direcci\u00F3n de oficina'\"\n [control]=\"updateUserForm.controls['parent_office_adrress']\"\n [validateText]=\"'Debe ingresar la direcci\u00F3n'\"\n ></ipt-input>\n </div>\n </div>\n <ng-template #noParentMessage>\n <div class=\"no-parent-message\">\n <p>Sin acudiente</p>\n </div>\n </ng-template>\n </div>\n\n <div class=\"buttons-container\">\n <ipt-button\n [label]=\"'Actualizar'\"\n [isEnabled]=\"!loader && updateUserForm.valid && !updateUserForm.hasError('mismatch') && hasFormChanged()\"\n (onClick)=\"updateUser()\"\n [primary]=\"true\"\n ></ipt-button>\n </div>\n </form>\n </div>\n </div>\n<!-- </p-dialog> -->", styles: ["@media screen and (min-width: 320px){main{background:rgba(0,0,0,.472);color:#fff;position:fixed;top:0;left:0;height:100vh;width:100vw;transition:all .5s}main .modal_container{width:60%;height:-moz-fit-content;height:fit-content;position:absolute;inset:0;margin:auto;background-color:#fff;border-radius:3px}.header_modal{display:flex;padding:15px 15px 0;gap:1rem;align-items:center}.header_modal h1{padding:.5rem;background-color:#1c77f7;color:#fff;width:100%;border-radius:10px;font-size:1.25rem;font-weight:700}.header_modal button{margin-left:auto;font-size:26px;padding:1.2rem;font-weight:200;color:#6c7f7d;display:flex;width:25px;height:25px;align-items:center;justify-content:center;transition:50ms;background-color:transparent;border:none}.header_modal button:hover{cursor:pointer;border-radius:50%;background-color:#d4d4d4}.grid_container{display:grid;grid-template-columns:1fr;padding:0 15px}form{display:grid;grid-template-columns:1fr;gap:.25rem;justify-content:center;padding:0 1rem}.section-header{margin:1.5rem 0 .5rem;border-bottom:2px solid #1c77f7}.section-header h2{font-size:1.2rem;color:#1c77f7;font-weight:600;margin-bottom:.5rem}.form-grid{display:grid;grid-template-columns:1fr;gap:.25rem}.buttons-container{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center;align-items:center}.user-type-image{display:none}.no-parent-message{padding:1rem;text-align:center;color:#666;font-size:1rem;font-weight:500;background-color:#f8f9fa;border-radius:.5rem;margin-top:.5rem}}@media screen and (min-width: 768px){.form-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem}}@media screen and (min-width: 1366px){form{padding:0}}.field{height:1px;max-width:67%}.error-message{color:red;font-size:12px;margin-top:5px}.p-selectbutton{display:flex;flex-wrap:wrap;justify-content:center;width:100%;min-width:10rem}:host ::ng-deep .p-selectbutton .p-button{padding:.5rem;font-size:.875rem;height:30px}:host ::ng-deep .p-buttonset .p-button:first-of-type{height:30px}\n"] }]
3224
+ }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }, { type: i0.ChangeDetectorRef }, { type: i2$2.ParameterService }, { type: i2$2.BaseService }, { type: i2$2.UserService }]; }, propDecorators: { DataStudent: [{
3225
+ type: Input
3226
+ }], visibleModal: [{
3227
+ type: Input
3228
+ }], closeModalIS: [{
3229
+ type: Output
3230
+ }], userUpdatedEvent: [{
3231
+ type: Output
3232
+ }] } });
3233
+
2617
3234
  class ComponentsModule {
2618
3235
  }
2619
3236
  ComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: ComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -2633,7 +3250,8 @@ ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versio
2633
3250
  TextLinkComponent,
2634
3251
  QuestionTypeComponent,
2635
3252
  CardCourseComponent,
2636
- CardSelectCourseComponent], imports: [CommonModule,
3253
+ CardSelectCourseComponent,
3254
+ updateUserFormComponent], imports: [CommonModule,
2637
3255
  // BrowserModule, // Para evitar doble carga de BrowserModule
2638
3256
  FormsModule,
2639
3257
  ReactiveFormsModule,
@@ -2658,7 +3276,8 @@ ComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versio
2658
3276
  CurrencyMaskModule,
2659
3277
  QuestionTypeComponent,
2660
3278
  CardCourseComponent,
2661
- CardSelectCourseComponent] });
3279
+ CardSelectCourseComponent,
3280
+ updateUserFormComponent] });
2662
3281
  ComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: ComponentsModule, providers: [
2663
3282
  CurrencyPipe,
2664
3283
  TitleCasePipe
@@ -2691,7 +3310,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
2691
3310
  TextLinkComponent,
2692
3311
  QuestionTypeComponent,
2693
3312
  CardCourseComponent,
2694
- CardSelectCourseComponent
3313
+ CardSelectCourseComponent,
3314
+ updateUserFormComponent
2695
3315
  ],
2696
3316
  imports: [
2697
3317
  CommonModule,
@@ -2722,7 +3342,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
2722
3342
  CurrencyMaskModule,
2723
3343
  QuestionTypeComponent,
2724
3344
  CardCourseComponent,
2725
- CardSelectCourseComponent
3345
+ CardSelectCourseComponent,
3346
+ updateUserFormComponent
2726
3347
  ],
2727
3348
  providers: [
2728
3349
  CurrencyPipe,
@@ -3266,10 +3887,6 @@ class CommercialService extends IPTGeneralService {
3266
3887
  this.generateRequestParams(params);
3267
3888
  return this.http.post(serviceUrl, this.httpOptions);
3268
3889
  }
3269
- getAllCodStatus() {
3270
- let serviceUrl = this.SERVICE_URL + 'get/all/codstatus';
3271
- return this.http.get(serviceUrl, this.httpOptions);
3272
- }
3273
3890
  }
3274
3891
  CommercialService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CommercialService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
3275
3892
  CommercialService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CommercialService, providedIn: 'root' });
@@ -4448,10 +5065,10 @@ class CodFormStepTwoComponent extends CodFormSteps {
4448
5065
  }
4449
5066
  }
4450
5067
  CodFormStepTwoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodFormStepTwoComponent, deps: [{ token: i1$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
4451
- CodFormStepTwoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodFormStepTwoComponent, selector: "app-cod-form-step-two", inputs: { initialData: "initialData", isEditCod: "isEditCod", parametersAll: "parametersAll" }, outputs: { changeStepEvent: "changeStepEvent" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<form autocomplete=\"off\" [formGroup]=\"codFormStepTwo\" class=\"grid\">\n\n <div class=\"col\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nombres'\"\n [control]=\"codFormStepTwo.controls['student_name']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['student_id_card_type'].value\"\n [control]=\"codFormStepTwo.controls['student_id_card_type']\"\n [selectCode]=\"codFormStepTwo.controls['student_id_card_type'].value === null ? 'Tipo de documento' : codFormStepTwo.controls['student_id_card_type'].value\"\n [isRequired]=\"true\"\n [data]=\"idTypes\"\n (eventSelect)=\"selectIdType($event)\"\n [defaultText]=\"'Tipo de documento'\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['country'].value\"\n [control]=\"codFormStepTwo.controls['country']\"\n [selectCode]=\"codFormStepTwo.controls['country'].value === null ? 'Pa\u00EDs de residencia' : codFormStepTwo.controls['country'].value\"\n (eventSelect)=\"selectCountry($event)\"\n [data]=\"countries\"\n [defaultText]=\"'Pa\u00EDs de residencia'\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['city'].value\"\n [control]=\"codFormStepTwo.controls['city']\"\n [selectCode]=\"codFormStepTwo.controls['city'].value === null ? 'Ciudad de residencia' : codFormStepTwo.controls['city'].value\"\n (eventSelect)=\"selectCity($event)\"\n [data]=\"cities\"\n [defaultText]=\"'Ciudad de residencia'\"\n ></ipt-select>\n <ipt-input\n onfocus=\"(this.type='date')\"\n [inputType]=\"'date'\"\n [control]=\"codFormStepTwo.controls['birthdate']\"\n [placeHolder]=\"'Fecha de nacimiento'\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['gender'].value\"\n [control]=\"codFormStepTwo.controls['gender']\"\n [data]=\"genders\"\n (eventSelect)=\"selectGender($event)\"\n [defaultText]=\"'G\u00E9nero'\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['stratum'].value\"\n [control]=\"codFormStepTwo.controls['stratum']\"\n [data]=\"stratums\"\n (eventSelect)=\"selectStratum($event)\"\n [defaultText]=\"'Estrato'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Grado'\"\n [control]=\"codFormStepTwo.controls['grade']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['student_phone_indicative'].value\"\n [control]=\"codFormStepTwo.controls['student_phone_indicative']\"\n [data]=\"indicatives\"\n (eventSelect)=\"selectIndicatives($event)\"\n [defaultText]=\"'Indicativo'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'email'\"\n [placeHolder]=\"'Correo electr\u00F3nico'\"\n [control]=\"codFormStepTwo.controls['student_email']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Repetir contrase\u00F1a'\"\n [control]=\"codFormStepTwo.controls['re_password']\"\n ></ipt-input>\n </div>\n\n <div class=\"col\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Apellidos'\"\n [control]=\"codFormStepTwo.controls['student_last_name']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'N\u00FAmero de documento'\"\n [control]=\"codFormStepTwo.controls['student_id_card']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['state'].value\"\n [control]=\"codFormStepTwo.controls['state']\"\n [selectCode]=\"codFormStepTwo.controls['state'].value === null ? 'Departamento o estado' : codFormStepTwo.controls['state'].value\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectState($event)\"\n [data]=\"states\"\n [defaultText]=\"'Departamento o estado'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Direcci\u00F3n'\"\n [control]=\"codFormStepTwo.controls['student_address']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'Edad'\"\n [control]=\"codFormStepTwo.controls['age']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nickname'\"\n [control]=\"codFormStepTwo.controls['nickname']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Ocupaci\u00F3n'\"\n [control]=\"codFormStepTwo.controls['student_occupation']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['civil_status'].value\"\n [control]=\"codFormStepTwo.controls['civil_status']\"\n [data]=\"civilStatus\"\n (eventSelect)=\"selectCivilStatus($event)\"\n [defaultText]=\"'Estado civil'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'N\u00FAmero de tel\u00E9fono'\"\n [control]=\"codFormStepTwo.controls['student_phone_number']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Contrase\u00F1a'\"\n [control]=\"codFormStepTwo.controls['password']\"\n ></ipt-input>\n </div>\n\n <div class=\"col-12\"></div>\n\n</form>\n\n<div class=\"flex mt-3 align-items-center gap-3\">\n <span *ngIf=\"codFormStepTwo.invalid && codFormStepTwo.touched\" class=\"text-red-500 font-bold text-center mt-1 py-2 bg-red-100 w-full border-round-xl\">{{ errorMessage }}</span>\n <button type=\"submit\" [class]=\"isEditCod ? 'ml-auto yellow-300 p-button-sm' : 'ml-auto p-button-sm'\" (click)=\"sendForm()\" pButton label=\"Siguiente\" icon=\"pi pi-arrow-right\"></button>\n</div>\n", styles: [".yellow-300{background-color:var(--yellow-500)!important;color:#fff}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control", "prefix", "thousands", "decimal", "disabledSel"], outputs: ["dateSelected"] }, { kind: "component", type: SelectComponent, selector: "ipt-select", inputs: ["isRequired", "data", "defaultText", "selectCode", "disabledSel", "initialValue", "label", "control"], outputs: ["eventSelect"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i6$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] });
5068
+ CodFormStepTwoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: CodFormStepTwoComponent, selector: "app-cod-form-step-two", inputs: { initialData: "initialData", isEditCod: "isEditCod", parametersAll: "parametersAll" }, outputs: { changeStepEvent: "changeStepEvent" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<form autocomplete=\"off\" [formGroup]=\"codFormStepTwo\" class=\"grid\">\n\n <div class=\"col\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nombres'\"\n [control]=\"codFormStepTwo.controls['student_name']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['student_id_card_type'].value\"\n [control]=\"codFormStepTwo.controls['student_id_card_type']\"\n [selectCode]=\"codFormStepTwo.controls['student_id_card_type'].value === null ? 'Tipo de documento' : codFormStepTwo.controls['student_id_card_type'].value\"\n [isRequired]=\"true\"\n [data]=\"idTypes\"\n (eventSelect)=\"selectIdType($event)\"\n [defaultText]=\"'Tipo de documento'\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['country'].value\"\n [control]=\"codFormStepTwo.controls['country']\"\n [selectCode]=\"codFormStepTwo.controls['country'].value === null ? 'Pa\u00EDs de residencia' : codFormStepTwo.controls['country'].value\"\n (eventSelect)=\"selectCountry($event)\"\n [data]=\"countries\"\n [defaultText]=\"'Pa\u00EDs de residencia'\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['city'].value\"\n [control]=\"codFormStepTwo.controls['city']\"\n [selectCode]=\"codFormStepTwo.controls['city'].value === null ? 'Ciudad de residencia' : codFormStepTwo.controls['city'].value\"\n (eventSelect)=\"selectCity($event)\"\n [data]=\"cities\"\n [defaultText]=\"'Ciudad de residencia'\"\n ></ipt-select>\n <ipt-input\n onfocus=\"(this.type='date')\"\n [inputType]=\"'date'\"\n [control]=\"codFormStepTwo.controls['birthdate']\"\n [placeHolder]=\"'Fecha de nacimiento'\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['gender'].value\"\n [control]=\"codFormStepTwo.controls['gender']\"\n [data]=\"genders\"\n (eventSelect)=\"selectGender($event)\"\n [defaultText]=\"'G\u00E9nero'\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['stratum'].value\"\n [control]=\"codFormStepTwo.controls['stratum']\"\n [data]=\"stratums\"\n (eventSelect)=\"selectStratum($event)\"\n [defaultText]=\"'Estrato'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Grado'\"\n [control]=\"codFormStepTwo.controls['grade']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['student_phone_indicative'].value\"\n [control]=\"codFormStepTwo.controls['student_phone_indicative']\"\n [data]=\"indicatives\"\n (eventSelect)=\"selectIndicatives($event)\"\n [defaultText]=\"'Indicativo'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'email'\"\n [placeHolder]=\"'Correo electr\u00F3nico'\"\n [control]=\"codFormStepTwo.controls['student_email']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Repetir contrase\u00F1a'\"\n [control]=\"codFormStepTwo.controls['re_password']\"\n ></ipt-input>\n </div>\n\n <div class=\"col\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Apellidos'\"\n [control]=\"codFormStepTwo.controls['student_last_name']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'N\u00FAmero de documento'\"\n [control]=\"codFormStepTwo.controls['student_id_card']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['state'].value\"\n [control]=\"codFormStepTwo.controls['state']\"\n [selectCode]=\"codFormStepTwo.controls['state'].value === null ? 'Departamento o estado' : codFormStepTwo.controls['state'].value\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectState($event)\"\n [data]=\"states\"\n [defaultText]=\"'Departamento o estado'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Direcci\u00F3n'\"\n [control]=\"codFormStepTwo.controls['student_address']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'Edad'\"\n [control]=\"codFormStepTwo.controls['age']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nickname'\"\n [control]=\"codFormStepTwo.controls['nickname']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Ocupaci\u00F3n'\"\n [control]=\"codFormStepTwo.controls['student_occupation']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['civil_status'].value\"\n [control]=\"codFormStepTwo.controls['civil_status']\"\n [data]=\"civilStatus\"\n (eventSelect)=\"selectCivilStatus($event)\"\n [defaultText]=\"'Estado civil'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'N\u00FAmero de tel\u00E9fono'\"\n [control]=\"codFormStepTwo.controls['student_phone_number']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Contrase\u00F1a'\"\n [control]=\"codFormStepTwo.controls['password']\"\n ></ipt-input>\n </div>\n\n <div class=\"col-12\"></div>\n\n</form>\n\n<div class=\"flex mt-3 align-items-center gap-3\">\n <span *ngIf=\"codFormStepTwo.invalid && codFormStepTwo.touched\" class=\"text-red-500 font-bold text-center mt-1 py-2 bg-red-100 w-full border-round-xl\">{{ errorMessage }}</span>\n <button type=\"submit\" [class]=\"isEditCod ? 'ml-auto yellow-300 p-button-sm' : 'ml-auto p-button-sm'\" (click)=\"sendForm()\" pButton label=\"Siguiente\" icon=\"pi pi-arrow-right\"></button>\n</div>\n", styles: [".yellow-300{background-color:var(--yellow-500)!important;color:#fff}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: InputComponent, selector: "ipt-input", inputs: ["inputType", "placeHolder", "validateText", "withPipe", "list", "iconUrl", "control", "prefix", "thousands", "decimal", "disabledSel"], outputs: ["dateSelected"] }, { kind: "component", type: SelectComponent, selector: "ipt-select", inputs: ["isRequired", "data", "defaultText", "selectCode", "disabledSel", "initialValue", "label", "control"], outputs: ["eventSelect"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i6$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] });
4452
5069
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CodFormStepTwoComponent, decorators: [{
4453
5070
  type: Component,
4454
- args: [{ selector: 'app-cod-form-step-two', template: "<form autocomplete=\"off\" [formGroup]=\"codFormStepTwo\" class=\"grid\">\n\n <div class=\"col\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nombres'\"\n [control]=\"codFormStepTwo.controls['student_name']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['student_id_card_type'].value\"\n [control]=\"codFormStepTwo.controls['student_id_card_type']\"\n [selectCode]=\"codFormStepTwo.controls['student_id_card_type'].value === null ? 'Tipo de documento' : codFormStepTwo.controls['student_id_card_type'].value\"\n [isRequired]=\"true\"\n [data]=\"idTypes\"\n (eventSelect)=\"selectIdType($event)\"\n [defaultText]=\"'Tipo de documento'\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['country'].value\"\n [control]=\"codFormStepTwo.controls['country']\"\n [selectCode]=\"codFormStepTwo.controls['country'].value === null ? 'Pa\u00EDs de residencia' : codFormStepTwo.controls['country'].value\"\n (eventSelect)=\"selectCountry($event)\"\n [data]=\"countries\"\n [defaultText]=\"'Pa\u00EDs de residencia'\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['city'].value\"\n [control]=\"codFormStepTwo.controls['city']\"\n [selectCode]=\"codFormStepTwo.controls['city'].value === null ? 'Ciudad de residencia' : codFormStepTwo.controls['city'].value\"\n (eventSelect)=\"selectCity($event)\"\n [data]=\"cities\"\n [defaultText]=\"'Ciudad de residencia'\"\n ></ipt-select>\n <ipt-input\n onfocus=\"(this.type='date')\"\n [inputType]=\"'date'\"\n [control]=\"codFormStepTwo.controls['birthdate']\"\n [placeHolder]=\"'Fecha de nacimiento'\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['gender'].value\"\n [control]=\"codFormStepTwo.controls['gender']\"\n [data]=\"genders\"\n (eventSelect)=\"selectGender($event)\"\n [defaultText]=\"'G\u00E9nero'\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['stratum'].value\"\n [control]=\"codFormStepTwo.controls['stratum']\"\n [data]=\"stratums\"\n (eventSelect)=\"selectStratum($event)\"\n [defaultText]=\"'Estrato'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Grado'\"\n [control]=\"codFormStepTwo.controls['grade']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['student_phone_indicative'].value\"\n [control]=\"codFormStepTwo.controls['student_phone_indicative']\"\n [data]=\"indicatives\"\n (eventSelect)=\"selectIndicatives($event)\"\n [defaultText]=\"'Indicativo'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'email'\"\n [placeHolder]=\"'Correo electr\u00F3nico'\"\n [control]=\"codFormStepTwo.controls['student_email']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Repetir contrase\u00F1a'\"\n [control]=\"codFormStepTwo.controls['re_password']\"\n ></ipt-input>\n </div>\n\n <div class=\"col\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Apellidos'\"\n [control]=\"codFormStepTwo.controls['student_last_name']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'N\u00FAmero de documento'\"\n [control]=\"codFormStepTwo.controls['student_id_card']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['state'].value\"\n [control]=\"codFormStepTwo.controls['state']\"\n [selectCode]=\"codFormStepTwo.controls['state'].value === null ? 'Departamento o estado' : codFormStepTwo.controls['state'].value\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectState($event)\"\n [data]=\"states\"\n [defaultText]=\"'Departamento o estado'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Direcci\u00F3n'\"\n [control]=\"codFormStepTwo.controls['student_address']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'Edad'\"\n [control]=\"codFormStepTwo.controls['age']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nickname'\"\n [control]=\"codFormStepTwo.controls['nickname']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Ocupaci\u00F3n'\"\n [control]=\"codFormStepTwo.controls['student_occupation']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['civil_status'].value\"\n [control]=\"codFormStepTwo.controls['civil_status']\"\n [data]=\"civilStatus\"\n (eventSelect)=\"selectCivilStatus($event)\"\n [defaultText]=\"'Estado civil'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'N\u00FAmero de tel\u00E9fono'\"\n [control]=\"codFormStepTwo.controls['student_phone_number']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Contrase\u00F1a'\"\n [control]=\"codFormStepTwo.controls['password']\"\n ></ipt-input>\n </div>\n\n <div class=\"col-12\"></div>\n\n</form>\n\n<div class=\"flex mt-3 align-items-center gap-3\">\n <span *ngIf=\"codFormStepTwo.invalid && codFormStepTwo.touched\" class=\"text-red-500 font-bold text-center mt-1 py-2 bg-red-100 w-full border-round-xl\">{{ errorMessage }}</span>\n <button type=\"submit\" [class]=\"isEditCod ? 'ml-auto yellow-300 p-button-sm' : 'ml-auto p-button-sm'\" (click)=\"sendForm()\" pButton label=\"Siguiente\" icon=\"pi pi-arrow-right\"></button>\n</div>\n", styles: [".yellow-300{background-color:var(--yellow-500)!important;color:#fff}\n"] }]
5071
+ args: [{ selector: 'app-cod-form-step-two', template: "<form autocomplete=\"off\" [formGroup]=\"codFormStepTwo\" class=\"grid\">\n\n <div class=\"col\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nombres'\"\n [control]=\"codFormStepTwo.controls['student_name']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['student_id_card_type'].value\"\n [control]=\"codFormStepTwo.controls['student_id_card_type']\"\n [selectCode]=\"codFormStepTwo.controls['student_id_card_type'].value === null ? 'Tipo de documento' : codFormStepTwo.controls['student_id_card_type'].value\"\n [isRequired]=\"true\"\n [data]=\"idTypes\"\n (eventSelect)=\"selectIdType($event)\"\n [defaultText]=\"'Tipo de documento'\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['country'].value\"\n [control]=\"codFormStepTwo.controls['country']\"\n [selectCode]=\"codFormStepTwo.controls['country'].value === null ? 'Pa\u00EDs de residencia' : codFormStepTwo.controls['country'].value\"\n (eventSelect)=\"selectCountry($event)\"\n [data]=\"countries\"\n [defaultText]=\"'Pa\u00EDs de residencia'\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['city'].value\"\n [control]=\"codFormStepTwo.controls['city']\"\n [selectCode]=\"codFormStepTwo.controls['city'].value === null ? 'Ciudad de residencia' : codFormStepTwo.controls['city'].value\"\n (eventSelect)=\"selectCity($event)\"\n [data]=\"cities\"\n [defaultText]=\"'Ciudad de residencia'\"\n ></ipt-select>\n <ipt-input\n onfocus=\"(this.type='date')\"\n [inputType]=\"'date'\"\n [control]=\"codFormStepTwo.controls['birthdate']\"\n [placeHolder]=\"'Fecha de nacimiento'\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['gender'].value\"\n [control]=\"codFormStepTwo.controls['gender']\"\n [data]=\"genders\"\n (eventSelect)=\"selectGender($event)\"\n [defaultText]=\"'G\u00E9nero'\"\n ></ipt-select>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['stratum'].value\"\n [control]=\"codFormStepTwo.controls['stratum']\"\n [data]=\"stratums\"\n (eventSelect)=\"selectStratum($event)\"\n [defaultText]=\"'Estrato'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Grado'\"\n [control]=\"codFormStepTwo.controls['grade']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['student_phone_indicative'].value\"\n [control]=\"codFormStepTwo.controls['student_phone_indicative']\"\n [data]=\"indicatives\"\n (eventSelect)=\"selectIndicatives($event)\"\n [defaultText]=\"'Indicativo'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'email'\"\n [placeHolder]=\"'Correo electr\u00F3nico'\"\n [control]=\"codFormStepTwo.controls['student_email']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Repetir contrase\u00F1a'\"\n [control]=\"codFormStepTwo.controls['re_password']\"\n ></ipt-input>\n </div>\n\n <div class=\"col\">\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Apellidos'\"\n [control]=\"codFormStepTwo.controls['student_last_name']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'N\u00FAmero de documento'\"\n [control]=\"codFormStepTwo.controls['student_id_card']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['state'].value\"\n [control]=\"codFormStepTwo.controls['state']\"\n [selectCode]=\"codFormStepTwo.controls['state'].value === null ? 'Departamento o estado' : codFormStepTwo.controls['state'].value\"\n [isRequired]=\"true\"\n (eventSelect)=\"selectState($event)\"\n [data]=\"states\"\n [defaultText]=\"'Departamento o estado'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Direcci\u00F3n'\"\n [control]=\"codFormStepTwo.controls['student_address']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'Edad'\"\n [control]=\"codFormStepTwo.controls['age']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Nickname'\"\n [control]=\"codFormStepTwo.controls['nickname']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'text'\"\n [placeHolder]=\"'Ocupaci\u00F3n'\"\n [control]=\"codFormStepTwo.controls['student_occupation']\"\n ></ipt-input>\n <ipt-select\n [initialValue]=\"codFormStepTwo.controls['civil_status'].value\"\n [control]=\"codFormStepTwo.controls['civil_status']\"\n [data]=\"civilStatus\"\n (eventSelect)=\"selectCivilStatus($event)\"\n [defaultText]=\"'Estado civil'\"\n ></ipt-select>\n <ipt-input\n [inputType]=\"'number'\"\n [placeHolder]=\"'N\u00FAmero de tel\u00E9fono'\"\n [control]=\"codFormStepTwo.controls['student_phone_number']\"\n ></ipt-input>\n <ipt-input\n [inputType]=\"'password'\"\n [placeHolder]=\"'Contrase\u00F1a'\"\n [control]=\"codFormStepTwo.controls['password']\"\n ></ipt-input>\n </div>\n\n <div class=\"col-12\"></div>\n\n</form>\n\n<div class=\"flex mt-3 align-items-center gap-3\">\n <span *ngIf=\"codFormStepTwo.invalid && codFormStepTwo.touched\" class=\"text-red-500 font-bold text-center mt-1 py-2 bg-red-100 w-full border-round-xl\">{{ errorMessage }}</span>\n <button type=\"submit\" [class]=\"isEditCod ? 'ml-auto yellow-300 p-button-sm' : 'ml-auto p-button-sm'\" (click)=\"sendForm()\" pButton label=\"Siguiente\" icon=\"pi pi-arrow-right\"></button>\n</div>\n", styles: [".yellow-300{background-color:var(--yellow-500)!important;color:#fff}\n"] }]
4455
5072
  }], ctorParameters: function () { return [{ type: i1$1.FormBuilder }]; }, propDecorators: { initialData: [{
4456
5073
  type: Input
4457
5074
  }], isEditCod: [{
@@ -9008,5 +9625,5 @@ class AnnouncementUserRs {
9008
9625
  * Generated bundle index. Do not edit.
9009
9626
  */
9010
9627
 
9011
- export { AcademicService, ActivityService, AnnouncementService, AnnouncementUserRs, AsideButtonComponent, AttendanceService, BaseService, BudgetService, ButtonComponent, CalculateQuotesService$1 as CalculateQuotesService, CalendarService, CardCourseComponent, CardSelectCourseComponent, CertificateService, CheckboxComponent, ClassroomService, CodDocumentsSectionComponent, CodFormComponent, CodFormControls, CodFormStepFiveComponent, CodFormStepFourComponent, CodFormStepOneComponent, CodFormStepThreeComponent, CodFormStepTwoComponent, CodFormSteps, CodModule, CodSelfFormStepFourComponent, CodSelfFormStepOneComponent, CodSelfFormStepThreeComponent, CodSelfFormStepTwoComponent, CodSelfManagedComponent, CodSelfManagedControls, CodSelfManagedSteps, CommercialService, CommunicatorService, ComponentsModule, CopiesService, CoreModule, CourseService, CreateUserFormComponent, DatalistComponent, DesignSystemModule, EpaycoService, IUnitNameClubRs, IUserEktRs, IUserFullDataRs, InputComponent, LevelButtonComponent, LevelTextComponent, LoaderComponent, LocalStorageCODService, LocalStorageCodSelfMaganedService, LoginFormComponent, MarketingService, NotesService, ParameterService, PlacementService, QuestionTypeComponent, RadioComponent, RedirectGuard, ScheduleFormatPipe, ScheduleTimeFormatPipe, SelectComponent, Session, SidenavComponent, StorageService, StudentService, SwitchService, TestService, TextLinkComponent, TypeLevelPipe, UserEktService, UserLoginRs, UserRs, UserService, codSelfManagedModule, validateCoupunts };
9628
+ export { AcademicService, ActivityService, AnnouncementService, AnnouncementUserRs, AsideButtonComponent, AttendanceService, BaseService, BudgetService, ButtonComponent, CalculateQuotesService$1 as CalculateQuotesService, CalendarService, CardCourseComponent, CardSelectCourseComponent, CertificateService, CheckboxComponent, ClassroomService, CodDocumentsSectionComponent, CodFormComponent, CodFormControls, CodFormStepFiveComponent, CodFormStepFourComponent, CodFormStepOneComponent, CodFormStepThreeComponent, CodFormStepTwoComponent, CodFormSteps, CodModule, CodSelfFormStepFourComponent, CodSelfFormStepOneComponent, CodSelfFormStepThreeComponent, CodSelfFormStepTwoComponent, CodSelfManagedComponent, CodSelfManagedControls, CodSelfManagedSteps, CommercialService, CommunicatorService, ComponentsModule, CopiesService, CoreModule, CourseService, CreateUserFormComponent, DatalistComponent, DesignSystemModule, EpaycoService, IUnitNameClubRs, IUserEktRs, IUserFullDataRs, InputComponent, LevelButtonComponent, LevelTextComponent, LoaderComponent, LocalStorageCODService, LocalStorageCodSelfMaganedService, LoginFormComponent, MarketingService, NotesService, ParameterService, PlacementService, QuestionTypeComponent, RadioComponent, RedirectGuard, ScheduleFormatPipe, ScheduleTimeFormatPipe, SelectComponent, Session, SidenavComponent, StorageService, StudentService, SwitchService, TestService, TextLinkComponent, TypeLevelPipe, UserEktService, UserLoginRs, UserRs, UserService, codSelfManagedModule, updateUserFormComponent, validateCoupunts };
9012
9629
  //# sourceMappingURL=iptdevs-design-system.mjs.map