iptdevs-design-system 3.1.952 → 3.1.953

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.
@@ -4864,7 +4864,6 @@ class CodFormStepTwoComponent extends CodFormSteps {
4864
4864
  this.resetLocalStorage(this.controls);
4865
4865
  this.codFormStepTwo.reset();
4866
4866
  this.idTypes = [...(this.parametersAll?.TypeIdCardByCountryCol || [])];
4867
- console.log('idTypes after clean:', this.idTypes);
4868
4867
  }
4869
4868
  validateErrors() {
4870
4869
  this.codFormStepTwo.valueChanges.subscribe(changes => {
@@ -4946,11 +4945,9 @@ class CodFormStepTwoComponent extends CodFormSteps {
4946
4945
  getParameters() {
4947
4946
  if (this.parametersAll?.TypeIdCardByCountryCol) {
4948
4947
  this.idTypes = [...this.parametersAll.TypeIdCardByCountryCol];
4949
- console.log('Initial idTypes:', this.idTypes);
4950
4948
  }
4951
4949
  else {
4952
4950
  this.idTypes = [];
4953
- console.log('TypeIdCardByCountryCol is undefined');
4954
4951
  }
4955
4952
  this.indicatives = this.parametersAll?.indicatives;
4956
4953
  this.countries = this.parametersAll?.country;
@@ -5074,29 +5071,19 @@ class CodFormStepTwoComponent extends CodFormSteps {
5074
5071
  }
5075
5072
  }
5076
5073
  trackStudentIdCardChanges() {
5077
- console.log('trackStudentIdCardChanges called');
5078
5074
  const controlOne = this.codFormStepTwo.get('student_id_card');
5079
- console.log('control 1', controlOne);
5080
5075
  this.updateIdTypes(controlOne?.value || '');
5081
- const controlTwo = localStorage.getItem('COD FORM - step2(student_id_card)');
5082
- console.log('control 2', controlTwo);
5083
- this.updateIdTypes(controlTwo || '');
5084
5076
  }
5085
5077
  updateIdTypes(value) {
5086
- console.log('updateIdTypes called with value:', value);
5087
5078
  if (this.parametersAll?.TypeIdCardByCountryCol) {
5088
5079
  if (value && /[a-zA-Z]/.test(value)) {
5089
- console.log('Contains letters, filtering idTypes');
5090
- this.idTypes = this.parametersAll.TypeIdCardByCountryCol.filter((_, index) => ![0, 1, 2, 7].includes(index));
5080
+ this.idTypes = this.parametersAll.TypeIdCardByCountryCol.filter((_, index) => ![0, 1, 2, 3, 5, 7, 8].includes(index));
5091
5081
  }
5092
5082
  else {
5093
- console.log('No letters, restoring idTypes');
5094
5083
  this.idTypes = [...this.parametersAll.TypeIdCardByCountryCol];
5095
5084
  }
5096
- console.log('Current idTypes:', this.idTypes);
5097
5085
  }
5098
5086
  else {
5099
- console.log('TypeIdCardByCountryCol is undefined');
5100
5087
  this.idTypes = [];
5101
5088
  }
5102
5089
  }