gbc-kyc-kit 3.2.0 → 3.3.1

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.
@@ -11745,13 +11745,13 @@ var descriptors = {};
11745
11745
  });
11746
11746
  Object.defineProperties(AxiosError$5, descriptors);
11747
11747
  Object.defineProperty(prototype, "isAxiosError", { value: true });
11748
- AxiosError$5.from = function(error, code, config2, request3, response, customProps) {
11748
+ AxiosError$5.from = function(error2, code, config2, request3, response, customProps) {
11749
11749
  var axiosError = Object.create(prototype);
11750
- utils$d.toFlatObject(error, axiosError, function filter2(obj) {
11750
+ utils$d.toFlatObject(error2, axiosError, function filter2(obj) {
11751
11751
  return obj !== Error.prototype;
11752
11752
  });
11753
- AxiosError$5.call(axiosError, error.message, code, config2, request3, response);
11754
- axiosError.name = error.name;
11753
+ AxiosError$5.call(axiosError, error2.message, code, config2, request3, response);
11754
+ axiosError.name = error2.name;
11755
11755
  customProps && Object.assign(axiosError, customProps);
11756
11756
  return axiosError;
11757
11757
  };
@@ -12500,15 +12500,15 @@ Axios$1.prototype.request = function request(configOrUrl, config2) {
12500
12500
  var onRejected = requestInterceptorChain.shift();
12501
12501
  try {
12502
12502
  newConfig = onFulfilled(newConfig);
12503
- } catch (error) {
12504
- onRejected(error);
12503
+ } catch (error2) {
12504
+ onRejected(error2);
12505
12505
  break;
12506
12506
  }
12507
12507
  }
12508
12508
  try {
12509
12509
  promise = dispatchRequest2(newConfig);
12510
- } catch (error) {
12511
- return Promise.reject(error);
12510
+ } catch (error2) {
12511
+ return Promise.reject(error2);
12512
12512
  }
12513
12513
  while (responseInterceptorChain.length) {
12514
12514
  promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
@@ -13260,10 +13260,10 @@ const iterateFieldsByAction = (fields, action, fieldsNames, abortEarly) => {
13260
13260
  return;
13261
13261
  };
13262
13262
  function schemaErrorLookup(errors, _fields, name) {
13263
- const error = get$2(errors, name);
13264
- if (error || isKey$4(name)) {
13263
+ const error2 = get$2(errors, name);
13264
+ if (error2 || isKey$4(name)) {
13265
13265
  return {
13266
- error,
13266
+ error: error2,
13267
13267
  name
13268
13268
  };
13269
13269
  }
@@ -13312,9 +13312,9 @@ var skipValidation = (isBlurEvent, isTouched, isSubmitted, reValidateMode, mode)
13312
13312
  return true;
13313
13313
  };
13314
13314
  var unsetEmptyArray = (ref, name) => !compact(get$2(ref, name)).length && unset(ref, name);
13315
- var updateFieldArrayRootError = (errors, error, name) => {
13315
+ var updateFieldArrayRootError = (errors, error2, name) => {
13316
13316
  const fieldArrayErrors = convertToArrayPayload(get$2(errors, name));
13317
- set$1(fieldArrayErrors, "root", error[name]);
13317
+ set$1(fieldArrayErrors, "root", error2[name]);
13318
13318
  set$1(errors, name, fieldArrayErrors);
13319
13319
  return errors;
13320
13320
  };
@@ -13345,15 +13345,15 @@ var validateField = async (field, disabledFieldNames, formValues, validateAllFie
13345
13345
  inputRef.reportValidity();
13346
13346
  }
13347
13347
  };
13348
- const error = {};
13348
+ const error2 = {};
13349
13349
  const isRadio = isRadioInput(ref);
13350
13350
  const isCheckBox = isCheckBoxInput(ref);
13351
13351
  const isRadioOrCheckbox2 = isRadio || isCheckBox;
13352
13352
  const isEmpty2 = (valueAsNumber || isFileInput(ref)) && isUndefined(ref.value) && isUndefined(inputValue) || isHTMLElement$2(ref) && ref.value === "" || inputValue === "" || Array.isArray(inputValue) && !inputValue.length;
13353
- const appendErrorsCurry = appendErrors.bind(null, name, validateAllFieldCriteria, error);
13353
+ const appendErrorsCurry = appendErrors.bind(null, name, validateAllFieldCriteria, error2);
13354
13354
  const getMinMaxMessage = (exceedMax, maxLengthMessage, minLengthMessage, maxType = INPUT_VALIDATION_RULES.maxLength, minType = INPUT_VALIDATION_RULES.minLength) => {
13355
13355
  const message = exceedMax ? maxLengthMessage : minLengthMessage;
13356
- error[name] = {
13356
+ error2[name] = {
13357
13357
  type: exceedMax ? maxType : minType,
13358
13358
  message,
13359
13359
  ref,
@@ -13363,7 +13363,7 @@ var validateField = async (field, disabledFieldNames, formValues, validateAllFie
13363
13363
  if (isFieldArray ? !Array.isArray(inputValue) || !inputValue.length : required && (!isRadioOrCheckbox2 && (isEmpty2 || isNullOrUndefined(inputValue)) || isBoolean(inputValue) && !inputValue || isCheckBox && !getCheckboxValue(refs).isValid || isRadio && !getRadioValue(refs).isValid)) {
13364
13364
  const { value, message } = isMessage(required) ? { value: !!required, message: required } : getValueAndMessage(required);
13365
13365
  if (value) {
13366
- error[name] = {
13366
+ error2[name] = {
13367
13367
  type: INPUT_VALIDATION_RULES.required,
13368
13368
  message,
13369
13369
  ref: inputRef,
@@ -13371,7 +13371,7 @@ var validateField = async (field, disabledFieldNames, formValues, validateAllFie
13371
13371
  };
13372
13372
  if (!validateAllFieldCriteria) {
13373
13373
  setCustomValidity(message);
13374
- return error;
13374
+ return error2;
13375
13375
  }
13376
13376
  }
13377
13377
  }
@@ -13403,8 +13403,8 @@ var validateField = async (field, disabledFieldNames, formValues, validateAllFie
13403
13403
  if (exceedMax || exceedMin) {
13404
13404
  getMinMaxMessage(!!exceedMax, maxOutput.message, minOutput.message, INPUT_VALIDATION_RULES.max, INPUT_VALIDATION_RULES.min);
13405
13405
  if (!validateAllFieldCriteria) {
13406
- setCustomValidity(error[name].message);
13407
- return error;
13406
+ setCustomValidity(error2[name].message);
13407
+ return error2;
13408
13408
  }
13409
13409
  }
13410
13410
  }
@@ -13416,15 +13416,15 @@ var validateField = async (field, disabledFieldNames, formValues, validateAllFie
13416
13416
  if (exceedMax || exceedMin) {
13417
13417
  getMinMaxMessage(exceedMax, maxLengthOutput.message, minLengthOutput.message);
13418
13418
  if (!validateAllFieldCriteria) {
13419
- setCustomValidity(error[name].message);
13420
- return error;
13419
+ setCustomValidity(error2[name].message);
13420
+ return error2;
13421
13421
  }
13422
13422
  }
13423
13423
  }
13424
13424
  if (pattern && !isEmpty2 && isString(inputValue)) {
13425
13425
  const { value: patternValue, message } = getValueAndMessage(pattern);
13426
13426
  if (isRegex(patternValue) && !inputValue.match(patternValue)) {
13427
- error[name] = {
13427
+ error2[name] = {
13428
13428
  type: INPUT_VALIDATION_RULES.pattern,
13429
13429
  message,
13430
13430
  ref,
@@ -13432,7 +13432,7 @@ var validateField = async (field, disabledFieldNames, formValues, validateAllFie
13432
13432
  };
13433
13433
  if (!validateAllFieldCriteria) {
13434
13434
  setCustomValidity(message);
13435
- return error;
13435
+ return error2;
13436
13436
  }
13437
13437
  }
13438
13438
  }
@@ -13441,13 +13441,13 @@ var validateField = async (field, disabledFieldNames, formValues, validateAllFie
13441
13441
  const result = await validate(inputValue, formValues);
13442
13442
  const validateError = getValidateError(result, inputRef);
13443
13443
  if (validateError) {
13444
- error[name] = {
13444
+ error2[name] = {
13445
13445
  ...validateError,
13446
13446
  ...appendErrorsCurry(INPUT_VALIDATION_RULES.validate, validateError.message)
13447
13447
  };
13448
13448
  if (!validateAllFieldCriteria) {
13449
13449
  setCustomValidity(validateError.message);
13450
- return error;
13450
+ return error2;
13451
13451
  }
13452
13452
  }
13453
13453
  } else if (isObject$6(validate)) {
@@ -13464,23 +13464,23 @@ var validateField = async (field, disabledFieldNames, formValues, validateAllFie
13464
13464
  };
13465
13465
  setCustomValidity(validateError.message);
13466
13466
  if (validateAllFieldCriteria) {
13467
- error[name] = validationResult;
13467
+ error2[name] = validationResult;
13468
13468
  }
13469
13469
  }
13470
13470
  }
13471
13471
  if (!isEmptyObject(validationResult)) {
13472
- error[name] = {
13472
+ error2[name] = {
13473
13473
  ref: inputRef,
13474
13474
  ...validationResult
13475
13475
  };
13476
13476
  if (!validateAllFieldCriteria) {
13477
- return error;
13477
+ return error2;
13478
13478
  }
13479
13479
  }
13480
13480
  }
13481
13481
  }
13482
13482
  setCustomValidity(true);
13483
- return error;
13483
+ return error2;
13484
13484
  };
13485
13485
  const defaultOptions = {
13486
13486
  mode: VALIDATION_MODE.onSubmit,
@@ -13599,8 +13599,8 @@ function createFormControl(props = {}) {
13599
13599
  set$1(_formValues, name, values2);
13600
13600
  }
13601
13601
  };
13602
- const updateErrors = (name, error) => {
13603
- set$1(_formState.errors, name, error);
13602
+ const updateErrors = (name, error2) => {
13603
+ set$1(_formState.errors, name, error2);
13604
13604
  _subjects.state.next({
13605
13605
  errors: _formState.errors
13606
13606
  });
@@ -13651,18 +13651,18 @@ function createFormControl(props = {}) {
13651
13651
  }
13652
13652
  return shouldUpdateField ? output : {};
13653
13653
  };
13654
- const shouldRenderByError = (name, isValid, error, fieldState) => {
13654
+ const shouldRenderByError = (name, isValid, error2, fieldState) => {
13655
13655
  const previousFieldError = get$2(_formState.errors, name);
13656
13656
  const shouldUpdateValid = (_proxyFormState.isValid || _proxySubscribeFormState.isValid) && isBoolean(isValid) && _formState.isValid !== isValid;
13657
- if (_options.delayError && error) {
13658
- delayErrorCallback = debounce2(() => updateErrors(name, error));
13657
+ if (_options.delayError && error2) {
13658
+ delayErrorCallback = debounce2(() => updateErrors(name, error2));
13659
13659
  delayErrorCallback(_options.delayError);
13660
13660
  } else {
13661
13661
  clearTimeout(timer);
13662
13662
  delayErrorCallback = null;
13663
- error ? set$1(_formState.errors, name, error) : unset(_formState.errors, name);
13663
+ error2 ? set$1(_formState.errors, name, error2) : unset(_formState.errors, name);
13664
13664
  }
13665
- if ((error ? !deepEqual(previousFieldError, error) : previousFieldError) || !isEmptyObject(fieldState) || shouldUpdateValid) {
13665
+ if ((error2 ? !deepEqual(previousFieldError, error2) : previousFieldError) || !isEmptyObject(fieldState) || shouldUpdateValid) {
13666
13666
  const updatedFormState = {
13667
13667
  ...fieldState,
13668
13668
  ...shouldUpdateValid && isBoolean(isValid) ? { isValid } : {},
@@ -13686,8 +13686,8 @@ function createFormControl(props = {}) {
13686
13686
  const { errors } = await _runSchema(names);
13687
13687
  if (names) {
13688
13688
  for (const name of names) {
13689
- const error = get$2(errors, name);
13690
- error ? set$1(_formState.errors, name, error) : unset(_formState.errors, name);
13689
+ const error2 = get$2(errors, name);
13690
+ error2 ? set$1(_formState.errors, name, error2) : unset(_formState.errors, name);
13691
13691
  }
13692
13692
  } else {
13693
13693
  _formState.errors = errors;
@@ -13825,7 +13825,7 @@ function createFormControl(props = {}) {
13825
13825
  const validationModeBeforeSubmit = getValidationModes(_options.mode);
13826
13826
  const validationModeAfterSubmit = getValidationModes(_options.reValidateMode);
13827
13827
  if (field) {
13828
- let error;
13828
+ let error2;
13829
13829
  let isValid;
13830
13830
  const fieldValue = target.type ? getFieldValue(field._f) : getEventValue(event);
13831
13831
  const isBlurEvent = event.type === EVENTS.BLUR || event.type === EVENTS.FOCUS_OUT;
@@ -13864,17 +13864,17 @@ function createFormControl(props = {}) {
13864
13864
  if (isFieldValueUpdated) {
13865
13865
  const previousErrorLookupResult = schemaErrorLookup(_formState.errors, _fields, name);
13866
13866
  const errorLookupResult = schemaErrorLookup(errors, _fields, previousErrorLookupResult.name || name);
13867
- error = errorLookupResult.error;
13867
+ error2 = errorLookupResult.error;
13868
13868
  name = errorLookupResult.name;
13869
13869
  isValid = isEmptyObject(errors);
13870
13870
  }
13871
13871
  } else {
13872
13872
  _updateIsValidating([name], true);
13873
- error = (await validateField(field, _names.disabled, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation))[name];
13873
+ error2 = (await validateField(field, _names.disabled, _formValues, shouldDisplayAllAssociatedErrors, _options.shouldUseNativeValidation))[name];
13874
13874
  _updateIsValidating([name]);
13875
13875
  _updateIsFieldValueUpdated(fieldValue);
13876
13876
  if (isFieldValueUpdated) {
13877
- if (error) {
13877
+ if (error2) {
13878
13878
  isValid = false;
13879
13879
  } else if (_proxyFormState.isValid || _proxySubscribeFormState.isValid) {
13880
13880
  isValid = await executeBuiltInValidation(_fields, true);
@@ -13883,7 +13883,7 @@ function createFormControl(props = {}) {
13883
13883
  }
13884
13884
  if (isFieldValueUpdated) {
13885
13885
  field._f.deps && trigger(field._f.deps);
13886
- shouldRenderByError(name, isValid, error, fieldState);
13886
+ shouldRenderByError(name, isValid, error2, fieldState);
13887
13887
  }
13888
13888
  }
13889
13889
  };
@@ -13938,13 +13938,13 @@ function createFormControl(props = {}) {
13938
13938
  errors: name ? _formState.errors : {}
13939
13939
  });
13940
13940
  };
13941
- const setError = (name, error, options) => {
13941
+ const setError = (name, error2, options) => {
13942
13942
  const ref = (get$2(_fields, name, { _f: {} })._f || {}).ref;
13943
13943
  const currentError = get$2(_formState.errors, name) || {};
13944
13944
  const { ref: currentRef, message, type, ...restOfErrorTree } = currentError;
13945
13945
  set$1(_formState.errors, name, {
13946
13946
  ...restOfErrorTree,
13947
- ...error,
13947
+ ...error2,
13948
13948
  ref
13949
13949
  });
13950
13950
  _subjects.state.next({
@@ -14122,8 +14122,8 @@ function createFormControl(props = {}) {
14122
14122
  });
14123
14123
  try {
14124
14124
  await onValid(fieldValues, e2);
14125
- } catch (error) {
14126
- onValidError = error;
14125
+ } catch (error2) {
14126
+ onValidError = error2;
14127
14127
  }
14128
14128
  } else {
14129
14129
  if (onInvalid) {
@@ -16161,9 +16161,9 @@ function createValidation(config2) {
16161
16161
  label,
16162
16162
  path: overrides.path || path
16163
16163
  }, params, overrides.params), resolve);
16164
- const error = new ValidationError(ValidationError.formatError(overrides.message || message, nextParams), value, nextParams.path, overrides.type || name);
16165
- error.params = nextParams;
16166
- return error;
16164
+ const error2 = new ValidationError(ValidationError.formatError(overrides.message || message, nextParams), value, nextParams.path, overrides.type || name);
16165
+ error2.params = nextParams;
16166
+ return error2;
16167
16167
  }
16168
16168
  let ctx = _extends$5({
16169
16169
  path,
@@ -18127,33 +18127,33 @@ Q.loading = (t2, e2) => H(t2, S("default", { isLoading: true, autoClose: false,
18127
18127
  }).on(3, (t2) => {
18128
18128
  B.delete(t2.containerId || t2), 0 === B.size && v$1.off(0).off(1).off(5);
18129
18129
  });
18130
- function ErrorHandler(error) {
18130
+ function ErrorHandler(error2) {
18131
18131
  var _a, _b, _c, _d;
18132
18132
  let message = "Error interno de la App, consultar con soporte.";
18133
18133
  const {
18134
18134
  code
18135
- } = (_b = (_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data) != null ? _b : {
18135
+ } = (_b = (_a = error2 == null ? void 0 : error2.response) == null ? void 0 : _a.data) != null ? _b : {
18136
18136
  code: "400"
18137
18137
  };
18138
18138
  const {
18139
18139
  status
18140
- } = (_d = (_c = error == null ? void 0 : error.response) == null ? void 0 : _c.status) != null ? _d : {
18140
+ } = (_d = (_c = error2 == null ? void 0 : error2.response) == null ? void 0 : _c.status) != null ? _d : {
18141
18141
  status: "Error desconocido"
18142
18142
  };
18143
18143
  if (code === "A1050") {
18144
- console.log(error == null ? void 0 : error.response.data.message);
18144
+ console.log(error2 == null ? void 0 : error2.response.data.message);
18145
18145
  message = "No se pudo procesar la consulta, por favor contacte con soporte.";
18146
18146
  } else if (code === 22007) {
18147
- console.log(error == null ? void 0 : error.response.data.message);
18147
+ console.log(error2 == null ? void 0 : error2.response.data.message);
18148
18148
  message = "Documento no reconocido";
18149
18149
  } else if (code === 504) {
18150
- console.log(error == null ? void 0 : error.response.data.message);
18150
+ console.log(error2 == null ? void 0 : error2.response.data.message);
18151
18151
  message = "M\xE1ximo de consultas, por favor contacte con soporte.";
18152
18152
  } else if (code === "020") {
18153
- console.log(error == null ? void 0 : error.response.data.message);
18154
- message = error == null ? void 0 : error.response.data.message;
18153
+ console.log(error2 == null ? void 0 : error2.response.data.message);
18154
+ message = error2 == null ? void 0 : error2.response.data.message;
18155
18155
  } else if (status === "429") {
18156
- console.log(error == null ? void 0 : error.response.data);
18156
+ console.log(error2 == null ? void 0 : error2.response.data);
18157
18157
  }
18158
18158
  console.log(code, "code", message, "message");
18159
18159
  Q.error(message, {
@@ -18211,15 +18211,15 @@ const fetchCheckIp = async (inProduction) => {
18211
18211
  try {
18212
18212
  const res = await request2(parseReq);
18213
18213
  return res.data;
18214
- } catch (error) {
18215
- console.log(error);
18216
- return error;
18214
+ } catch (error2) {
18215
+ console.log(error2);
18216
+ return error2;
18217
18217
  }
18218
18218
  };
18219
18219
  function useGeolocation(inProduction) {
18220
18220
  const [geolocation, setGeolocation] = useState(null);
18221
18221
  useEffect(() => {
18222
- fetchCheckIp(inProduction).then((res) => setGeolocation(res)).catch((error) => console.log(error));
18222
+ fetchCheckIp(inProduction).then((res) => setGeolocation(res)).catch((error2) => console.log(error2));
18223
18223
  }, []);
18224
18224
  return geolocation;
18225
18225
  }
@@ -18238,8 +18238,8 @@ const saveDataToDB = async ({ data: data2, component, eventId, inProduction, sou
18238
18238
  try {
18239
18239
  const res = await request2(parseReq);
18240
18240
  return res.data;
18241
- } catch (error) {
18242
- return error;
18241
+ } catch (error2) {
18242
+ return error2;
18243
18243
  }
18244
18244
  };
18245
18245
  const status_country_not_allowed = "COUNTRY_NOT_ALLOWED";
@@ -18385,10 +18385,10 @@ const BlackListController = (clientId, authorize, inProduction, source2, eventId
18385
18385
  setMessage(successMessage ? successMessage : message2);
18386
18386
  }
18387
18387
  setStatus(status2);
18388
- } catch (error) {
18388
+ } catch (error2) {
18389
18389
  let message2 = "";
18390
- console.log(error);
18391
- const status2 = (_b = (_a = error == null ? void 0 : error.response) == null ? void 0 : _a.status) != null ? _b : "";
18390
+ console.log(error2);
18391
+ const status2 = (_b = (_a = error2 == null ? void 0 : error2.response) == null ? void 0 : _a.status) != null ? _b : "";
18392
18392
  await saveDataToDB({
18393
18393
  data: {
18394
18394
  dataReq,
@@ -18401,15 +18401,15 @@ const BlackListController = (clientId, authorize, inProduction, source2, eventId
18401
18401
  clientId,
18402
18402
  geolocation
18403
18403
  });
18404
- if ((_d = (_c = error == null ? void 0 : error.response) == null ? void 0 : _c.data) == null ? void 0 : _d.message) {
18405
- message2 = error.response.data;
18404
+ if ((_d = (_c = error2 == null ? void 0 : error2.response) == null ? void 0 : _c.data) == null ? void 0 : _d.message) {
18405
+ message2 = error2.response.data;
18406
18406
  } else if (status2 === 500) {
18407
18407
  message2 = "Error de consulta - Verificar con el proveedor";
18408
18408
  }
18409
18409
  setIsLoading(null);
18410
18410
  setMessage(message2);
18411
18411
  setStatus(status2);
18412
- ErrorHandler(error);
18412
+ ErrorHandler(error2);
18413
18413
  } finally {
18414
18414
  if (dataToRegisterBlackList && dataBlackList) {
18415
18415
  await dataBlackList(dataToRegisterBlackList.match);
@@ -18472,13 +18472,13 @@ const BlackListController = (clientId, authorize, inProduction, source2, eventId
18472
18472
  setMessage(alertMessage ? alertMessage : "La verificai\xF3n est\xE1 en proceso. Por favor copie y guarde este ID para su control!");
18473
18473
  setStatus(resOfBlacklistBatch.data.message);
18474
18474
  setBatchData(resOfBlacklistBatch.data.data);
18475
- } catch (error) {
18475
+ } catch (error2) {
18476
18476
  let message2 = "Error interno de la aplicai\xF3n";
18477
- console.log(error);
18477
+ console.log(error2);
18478
18478
  const {
18479
18479
  status: status2,
18480
18480
  data: data2
18481
- } = (_a = error == null ? void 0 : error.response) != null ? _a : {
18481
+ } = (_a = error2 == null ? void 0 : error2.response) != null ? _a : {
18482
18482
  status: "Error desconocido",
18483
18483
  data: {}
18484
18484
  };
@@ -18502,7 +18502,7 @@ const BlackListController = (clientId, authorize, inProduction, source2, eventId
18502
18502
  setIsLoading(null);
18503
18503
  setMessage(message2);
18504
18504
  setStatus(status2);
18505
- ErrorHandler(error);
18505
+ ErrorHandler(error2);
18506
18506
  } finally {
18507
18507
  if (dataToRegisterBlackListBatch && dataBulkVerification) {
18508
18508
  await dataBulkVerification(dataToRegisterBlackListBatch);
@@ -18538,71 +18538,71 @@ const BlackListController = (clientId, authorize, inProduction, source2, eventId
18538
18538
  copyFunction
18539
18539
  };
18540
18540
  };
18541
- const ocr = "_ocr_bsp6c_54";
18542
- const tabpanel = "_tabpanel_bsp6c_57";
18543
- const button = "_button_bsp6c_118";
18544
- const outlined = "_outlined_bsp6c_150";
18545
- const contained = "_contained_bsp6c_159";
18546
- const small = "_small_bsp6c_166";
18547
- const large = "_large_bsp6c_175";
18548
- const sub = "_sub_bsp6c_181";
18549
- const ready = "_ready_bsp6c_203";
18550
- const front = "_front_bsp6c_203";
18551
- const back = "_back_bsp6c_97";
18552
- const icon = "_icon_bsp6c_332";
18553
- const accordion = "_accordion_bsp6c_399";
18554
- const description = "_description_bsp6c_403";
18555
- const birth_place_section = "_birth_place_section_bsp6c_417";
18556
- const authority = "_authority_bsp6c_418";
18557
- const others = "_others_bsp6c_419";
18558
- const dark$1 = "_dark_bsp6c_432";
18559
- var styles$a = {
18560
- "kit-gbc": "_kit-gbc_bsp6c_2",
18561
- "px-2": "_px-2_bsp6c_31",
18562
- "m-0": "_m-0_bsp6c_35",
18563
- "my-1": "_my-1_bsp6c_38",
18564
- "col-12": "_col-12_bsp6c_42",
18565
- "col-6": "_col-6_bsp6c_45",
18566
- "without-shadow": "_without-shadow_bsp6c_48",
18541
+ const ocr = "_ocr_hz5b4_55";
18542
+ const tabpanel = "_tabpanel_hz5b4_58";
18543
+ const button = "_button_hz5b4_119";
18544
+ const outlined = "_outlined_hz5b4_151";
18545
+ const contained = "_contained_hz5b4_160";
18546
+ const small = "_small_hz5b4_167";
18547
+ const large = "_large_hz5b4_176";
18548
+ const sub = "_sub_hz5b4_182";
18549
+ const ready = "_ready_hz5b4_204";
18550
+ const front = "_front_hz5b4_204";
18551
+ const back = "_back_hz5b4_98";
18552
+ const icon$1 = "_icon_hz5b4_333";
18553
+ const accordion = "_accordion_hz5b4_400";
18554
+ const description = "_description_hz5b4_404";
18555
+ const birth_place_section = "_birth_place_section_hz5b4_418";
18556
+ const authority = "_authority_hz5b4_419";
18557
+ const others = "_others_hz5b4_420";
18558
+ const dark$1 = "_dark_hz5b4_433";
18559
+ var styles$b = {
18560
+ "kit-gbc": "_kit-gbc_hz5b4_2",
18561
+ "px-2": "_px-2_hz5b4_32",
18562
+ "m-0": "_m-0_hz5b4_36",
18563
+ "my-1": "_my-1_hz5b4_39",
18564
+ "col-12": "_col-12_hz5b4_43",
18565
+ "col-6": "_col-6_hz5b4_46",
18566
+ "without-shadow": "_without-shadow_hz5b4_49",
18567
18567
  ocr,
18568
18568
  tabpanel,
18569
- "first-animation": "_first-animation_bsp6c_93",
18570
- "back-button-container": "_back-button-container_bsp6c_97",
18571
- "back-button": "_back-button_bsp6c_97",
18572
- "button-container": "_button-container_bsp6c_118",
18569
+ "first-animation": "_first-animation_hz5b4_94",
18570
+ "back-button-container": "_back-button-container_hz5b4_98",
18571
+ "back-button": "_back-button_hz5b4_98",
18572
+ "button-container": "_button-container_hz5b4_119",
18573
18573
  button,
18574
18574
  outlined,
18575
18575
  contained,
18576
18576
  small,
18577
18577
  large,
18578
18578
  sub,
18579
- "header-component": "_header-component_bsp6c_190",
18580
- "body-id-doc": "_body-id-doc_bsp6c_197",
18579
+ "header-component": "_header-component_hz5b4_191",
18580
+ "body-id-doc": "_body-id-doc_hz5b4_198",
18581
18581
  ready,
18582
18582
  front,
18583
18583
  back,
18584
- "upload-document": "_upload-document_bsp6c_211",
18585
- "pics-container": "_pics-container_bsp6c_251",
18586
- "box-image": "_box-image_bsp6c_257",
18587
- "without-image": "_without-image_bsp6c_317",
18588
- "bg-img-container": "_bg-img-container_bsp6c_317",
18589
- icon,
18590
- "detail-component": "_detail-component_bsp6c_337",
18591
- "country-select": "_country-select_bsp6c_360",
18584
+ "upload-document": "_upload-document_hz5b4_212",
18585
+ "pics-container": "_pics-container_hz5b4_252",
18586
+ "box-image": "_box-image_hz5b4_258",
18587
+ "without-image": "_without-image_hz5b4_318",
18588
+ "bg-img-container": "_bg-img-container_hz5b4_318",
18589
+ icon: icon$1,
18590
+ "detail-component": "_detail-component_hz5b4_338",
18591
+ "country-select": "_country-select_hz5b4_361",
18592
18592
  accordion,
18593
18593
  description,
18594
- "accordion-body": "_accordion-body_bsp6c_411",
18595
- "name-section": "_name-section_bsp6c_416",
18594
+ "accordion-body": "_accordion-body_hz5b4_412",
18595
+ "name-section": "_name-section_hz5b4_417",
18596
18596
  birth_place_section,
18597
18597
  authority,
18598
18598
  others,
18599
18599
  dark: dark$1,
18600
- "input-container": "_input-container_bsp6c_442",
18601
- "custom-input-container": "_custom-input-container_bsp6c_454",
18602
- "liveness-container": "_liveness-container_bsp6c_457",
18603
- "MuiTab-root": "_MuiTab-root_bsp6c_460",
18604
- "Mui-selected": "_Mui-selected_bsp6c_464",
18605
- "MuiTabs-indicator": "_MuiTabs-indicator_bsp6c_472"
18600
+ "input-container": "_input-container_hz5b4_443",
18601
+ "custom-input-container": "_custom-input-container_hz5b4_455",
18602
+ "liveness-container": "_liveness-container_hz5b4_458",
18603
+ "MuiTab-root": "_MuiTab-root_hz5b4_461",
18604
+ "Mui-selected": "_Mui-selected_hz5b4_465",
18605
+ "MuiTabs-indicator": "_MuiTabs-indicator_hz5b4_473"
18606
18606
  };
18607
18607
  var jsxRuntime = { exports: {} };
18608
18608
  var reactJsxRuntime_production_min = {};
@@ -18650,13 +18650,13 @@ function CustomButton({
18650
18650
  variant
18651
18651
  }) {
18652
18652
  return /* @__PURE__ */ jsx$1("div", {
18653
- className: `${styles$a["button-container"]} ${styles$a["m-0"]} ${className}`,
18653
+ className: `${styles$b["button-container"]} ${styles$b["m-0"]} ${className}`,
18654
18654
  children: /* @__PURE__ */ jsxs("button", {
18655
18655
  type,
18656
18656
  name,
18657
18657
  id,
18658
18658
  onClick,
18659
- className: `${styles$a[variant]} ${styles$a[size]}`,
18659
+ className: `${styles$b[variant]} ${styles$b[size]}`,
18660
18660
  style: {
18661
18661
  gap: "8px",
18662
18662
  display: "flex",
@@ -18664,7 +18664,7 @@ function CustomButton({
18664
18664
  justifyContent: "center"
18665
18665
  },
18666
18666
  children: [startIcon && /* @__PURE__ */ jsx$1("div", {
18667
- className: styles$a["start-icon"],
18667
+ className: styles$b["start-icon"],
18668
18668
  style: {
18669
18669
  display: "flex",
18670
18670
  alignItems: "center"
@@ -18714,8 +18714,8 @@ function __read(o2, n2) {
18714
18714
  try {
18715
18715
  while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
18716
18716
  ar.push(r2.value);
18717
- } catch (error) {
18718
- e2 = { error };
18717
+ } catch (error2) {
18718
+ e2 = { error: error2 };
18719
18719
  } finally {
18720
18720
  try {
18721
18721
  if (r2 && !r2.done && (m2 = i2["return"]))
@@ -18738,9 +18738,9 @@ function __spreadArray(to, from2, pack) {
18738
18738
  }
18739
18739
  return to.concat(ar || Array.prototype.slice.call(from2));
18740
18740
  }
18741
- typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
18741
+ typeof SuppressedError === "function" ? SuppressedError : function(error2, suppressed, message) {
18742
18742
  var e2 = new Error(message);
18743
- return e2.name = "SuppressedError", e2.error = error, e2.suppressed = suppressed, e2;
18743
+ return e2.name = "SuppressedError", e2.error = error2, e2.suppressed = suppressed, e2;
18744
18744
  };
18745
18745
  function createCommonjsModule(fn2) {
18746
18746
  var module = { exports: {} };
@@ -19512,7 +19512,7 @@ function styleInject(css2, ref) {
19512
19512
  }
19513
19513
  }
19514
19514
  var css_248z = '.ReactFlagsSelect-module_flagsSelect__2pfa2 {\n position: relative;\n vertical-align: inherit;\n padding-bottom: 5px;\n text-align: left;\n}\n\n.ReactFlagsSelect-module_flagsSelectInline__cUnnz {\n display: inline-block;\n}\n\n.ReactFlagsSelect-module_selectBtn__19wW7 {\n cursor: pointer;\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 5px 10px;\n font-family: inherit;\n color: #4d4d4d;\n border: thin solid rgba(77, 77, 77, 0.3);\n border-radius: 4px;\n background: transparent;\n}\n.ReactFlagsSelect-module_selectBtn__19wW7:after, .ReactFlagsSelect-module_selectBtn__19wW7[aria-expanded=true]:after {\n content: " ";\n width: 0;\n height: 0;\n display: inline-block;\n margin-left: 5px;\n}\n.ReactFlagsSelect-module_selectBtn__19wW7:after {\n border-top: 5px solid #4d4d4d;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-bottom: 0;\n}\n.ReactFlagsSelect-module_selectBtn__19wW7[aria-expanded=true]:after {\n border-top: 0;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-bottom: 5px solid #4d4d4d;\n}\n\n.ReactFlagsSelect-module_disabledBtn__3A4GF {\n background: #eaeaea;\n cursor: default;\n}\n\n.ReactFlagsSelect-module_label__27pw9, .ReactFlagsSelect-module_secondaryLabel__37t1D {\n font-size: 1em;\n padding-left: 10px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.ReactFlagsSelect-module_secondaryLabel__37t1D {\n color: #707070;\n padding-left: 5px;\n}\n\n.ReactFlagsSelect-module_selectValue__152eS,\n.ReactFlagsSelect-module_selectOption__3pcgW {\n cursor: pointer;\n padding: 0 8px;\n margin: 4px 0;\n white-space: nowrap;\n}\n\n.ReactFlagsSelect-module_selectValue__152eS {\n pointer-events: none;\n display: flex;\n align-items: center;\n}\n\n.ReactFlagsSelect-module_selectOption__3pcgW {\n padding: 2px 18px;\n}\n.ReactFlagsSelect-module_selectOption__3pcgW:hover, .ReactFlagsSelect-module_selectOption__3pcgW:focus {\n outline: none;\n background: #eaeaea;\n}\n\n.ReactFlagsSelect-module_selectFlag__2q5gC {\n display: inline-flex;\n font-size: 1.2em;\n}\n\n.ReactFlagsSelect-module_selectOptionValue__vS99- {\n display: flex;\n align-items: center;\n}\n\n.ReactFlagsSelect-module_selectOptionWithlabel__2GpmM {\n padding: 4px 10px;\n}\n\n.ReactFlagsSelect-module_selectOptions__3LNBJ {\n position: absolute;\n z-index: 999999;\n border: 1px solid #bdbbbb;\n border-radius: 3px;\n background: #ffffff;\n margin-top: 8px;\n padding: 8px 0;\n max-height: 180px;\n overflow: auto;\n}\n\n.ReactFlagsSelect-module_selectOptionsWithSearch__1W03w {\n padding: 0 0 8px 0;\n}\n\n.ReactFlagsSelect-module_fullWidthOptions__1XeR6 {\n right: 0;\n left: 0;\n}\n\n.ReactFlagsSelect-module_alignOptionsToRight__3Qvq2 {\n right: 0;\n}\n\n.ReactFlagsSelect-module_filterBox__3m8EU {\n position: sticky;\n top: 0;\n width: 100%;\n padding-top: 8px;\n background: #ffffff;\n}\n.ReactFlagsSelect-module_filterBox__3m8EU input {\n width: calc(100% - 20px);\n margin: 0 10px;\n padding: 8px;\n box-sizing: border-box;\n}\n.ReactFlagsSelect-module_filterBox__3m8EU input:focus {\n outline: none;\n}';
19515
- var styles$9 = { "flagsSelect": "ReactFlagsSelect-module_flagsSelect__2pfa2", "flagsSelectInline": "ReactFlagsSelect-module_flagsSelectInline__cUnnz", "selectBtn": "ReactFlagsSelect-module_selectBtn__19wW7", "disabledBtn": "ReactFlagsSelect-module_disabledBtn__3A4GF", "label": "ReactFlagsSelect-module_label__27pw9", "secondaryLabel": "ReactFlagsSelect-module_secondaryLabel__37t1D", "selectValue": "ReactFlagsSelect-module_selectValue__152eS", "selectOption": "ReactFlagsSelect-module_selectOption__3pcgW", "selectFlag": "ReactFlagsSelect-module_selectFlag__2q5gC", "selectOptionValue": "ReactFlagsSelect-module_selectOptionValue__vS99-", "selectOptionWithlabel": "ReactFlagsSelect-module_selectOptionWithlabel__2GpmM", "selectOptions": "ReactFlagsSelect-module_selectOptions__3LNBJ", "selectOptionsWithSearch": "ReactFlagsSelect-module_selectOptionsWithSearch__1W03w", "fullWidthOptions": "ReactFlagsSelect-module_fullWidthOptions__1XeR6", "alignOptionsToRight": "ReactFlagsSelect-module_alignOptionsToRight__3Qvq2", "filterBox": "ReactFlagsSelect-module_filterBox__3m8EU" };
19515
+ var styles$a = { "flagsSelect": "ReactFlagsSelect-module_flagsSelect__2pfa2", "flagsSelectInline": "ReactFlagsSelect-module_flagsSelectInline__cUnnz", "selectBtn": "ReactFlagsSelect-module_selectBtn__19wW7", "disabledBtn": "ReactFlagsSelect-module_disabledBtn__3A4GF", "label": "ReactFlagsSelect-module_label__27pw9", "secondaryLabel": "ReactFlagsSelect-module_secondaryLabel__37t1D", "selectValue": "ReactFlagsSelect-module_selectValue__152eS", "selectOption": "ReactFlagsSelect-module_selectOption__3pcgW", "selectFlag": "ReactFlagsSelect-module_selectFlag__2q5gC", "selectOptionValue": "ReactFlagsSelect-module_selectOptionValue__vS99-", "selectOptionWithlabel": "ReactFlagsSelect-module_selectOptionWithlabel__2GpmM", "selectOptions": "ReactFlagsSelect-module_selectOptions__3LNBJ", "selectOptionsWithSearch": "ReactFlagsSelect-module_selectOptionsWithSearch__1W03w", "fullWidthOptions": "ReactFlagsSelect-module_fullWidthOptions__1XeR6", "alignOptionsToRight": "ReactFlagsSelect-module_alignOptionsToRight__3Qvq2", "filterBox": "ReactFlagsSelect-module_filterBox__3m8EU" };
19516
19516
  styleInject(css_248z);
19517
19517
  var defaultPlaceholder = "Select a country";
19518
19518
  var defaultSearchPlaceholder = "Search";
@@ -19593,26 +19593,37 @@ var ReactFlagsSelect = function(_a) {
19593
19593
  }, []);
19594
19594
  var displayLabel = getLabel(validSelectedValue);
19595
19595
  var btnId = "".concat(rfsKey, "-btn");
19596
- return /* @__PURE__ */ jsxs("div", { className: classnames(styles$9.flagsSelect, className, (_b = {}, _b[styles$9.flagsSelectInline] = !fullWidth, _b)), id, "data-testid": rfsKey, children: [/* @__PURE__ */ jsx$1("button", { ref: selectedFlagRef, id: btnId, type: "button", className: classnames(styles$9.selectBtn, selectButtonClassName, (_c = {}, _c[styles$9.disabledBtn] = disabled, _c)), style: { fontSize: selectedSize }, onClick: toggleDropdown, onKeyUp: function(e2) {
19596
+ return /* @__PURE__ */ jsxs("div", { className: classnames(styles$a.flagsSelect, className, (_b = {}, _b[styles$a.flagsSelectInline] = !fullWidth, _b)), id, "data-testid": rfsKey, children: [/* @__PURE__ */ jsx$1("button", { ref: selectedFlagRef, id: btnId, type: "button", className: classnames(styles$a.selectBtn, selectButtonClassName, (_c = {}, _c[styles$a.disabledBtn] = disabled, _c)), style: { fontSize: selectedSize }, onClick: toggleDropdown, onKeyUp: function(e2) {
19597
19597
  return closeDropdwownWithKeyboard(e2);
19598
- }, disabled, "aria-labelledby": btnId, "aria-haspopup": "listbox", "aria-expanded": isDropdownOpen, "data-testid": btnId, children: /* @__PURE__ */ jsx$1("span", { className: styles$9.selectValue, children: validSelectedValue ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx$1("span", { className: styles$9.selectFlag, "data-testid": "".concat(rfsKey, "-selected-flag"), children: getSelectedFlag() }), showSelectedLabel && /* @__PURE__ */ jsx$1("span", { className: styles$9.label, children: isCustomLabelObject(displayLabel) ? displayLabel.primary : displayLabel }), showSecondarySelectedLabel && isCustomLabelObject(displayLabel) && /* @__PURE__ */ jsx$1("span", { className: styles$9.secondaryLabel, children: displayLabel.secondary })] }) : /* @__PURE__ */ jsx$1(Fragment, { children: placeholder || defaultPlaceholder }) }) }), !disabled && isDropdownOpen && /* @__PURE__ */ jsxs("ul", { tabIndex: -1, role: "listbox", ref: optionsRef, style: { fontSize: optionsSize }, className: classnames(styles$9.selectOptions, (_d = {}, _d[styles$9.selectOptionsWithSearch] = searchable, _d[styles$9.alignOptionsToRight] = alignOptionsToRight, _d[styles$9.fullWidthOptions] = fullWidth, _d)), children: [searchable && /* @__PURE__ */ jsx$1("div", { className: styles$9.filterBox, children: /* @__PURE__ */ jsx$1("input", { type: "text", name: "".concat(rfsKey, "-q"), autoComplete: "off", value: filterValue, placeholder: searchPlaceholder || defaultSearchPlaceholder, ref: filterTextRef, onChange: filterSearch, autoFocus: true }) }), options.map(function(countryCode) {
19598
+ }, disabled, "aria-labelledby": btnId, "aria-haspopup": "listbox", "aria-expanded": isDropdownOpen, "data-testid": btnId, children: /* @__PURE__ */ jsx$1("span", { className: styles$a.selectValue, children: validSelectedValue ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx$1("span", { className: styles$a.selectFlag, "data-testid": "".concat(rfsKey, "-selected-flag"), children: getSelectedFlag() }), showSelectedLabel && /* @__PURE__ */ jsx$1("span", { className: styles$a.label, children: isCustomLabelObject(displayLabel) ? displayLabel.primary : displayLabel }), showSecondarySelectedLabel && isCustomLabelObject(displayLabel) && /* @__PURE__ */ jsx$1("span", { className: styles$a.secondaryLabel, children: displayLabel.secondary })] }) : /* @__PURE__ */ jsx$1(Fragment, { children: placeholder || defaultPlaceholder }) }) }), !disabled && isDropdownOpen && /* @__PURE__ */ jsxs("ul", { tabIndex: -1, role: "listbox", ref: optionsRef, style: { fontSize: optionsSize }, className: classnames(styles$a.selectOptions, (_d = {}, _d[styles$a.selectOptionsWithSearch] = searchable, _d[styles$a.alignOptionsToRight] = alignOptionsToRight, _d[styles$a.fullWidthOptions] = fullWidth, _d)), children: [searchable && /* @__PURE__ */ jsx$1("div", { className: styles$a.filterBox, children: /* @__PURE__ */ jsx$1("input", { type: "text", name: "".concat(rfsKey, "-q"), autoComplete: "off", value: filterValue, placeholder: searchPlaceholder || defaultSearchPlaceholder, ref: filterTextRef, onChange: filterSearch, autoFocus: true }) }), options.map(function(countryCode) {
19599
19599
  var _a2;
19600
19600
  var countryFlagName = countryCodeToPascalCase(countryCode);
19601
19601
  var CountryFlag = getFlag(countryFlagName);
19602
19602
  var countryLabel = getLabel(countryCode);
19603
- return /* @__PURE__ */ jsx$1("li", { id: "".concat(rfsKey, "-").concat(countryCode), role: "option", tabIndex: 0, className: classnames(styles$9.selectOption, (_a2 = {}, _a2[styles$9.selectOptionWithlabel] = showOptionLabel, _a2)), onClick: function() {
19603
+ return /* @__PURE__ */ jsx$1("li", { id: "".concat(rfsKey, "-").concat(countryCode), role: "option", tabIndex: 0, className: classnames(styles$a.selectOption, (_a2 = {}, _a2[styles$a.selectOptionWithlabel] = showOptionLabel, _a2)), onClick: function() {
19604
19604
  return onOptionSelect(countryCode);
19605
19605
  }, onKeyUp: function(e2) {
19606
19606
  return onSelectWithKeyboard(e2, countryCode);
19607
- }, children: /* @__PURE__ */ jsxs("span", { className: styles$9.selectOptionValue, children: [/* @__PURE__ */ jsx$1("span", { className: styles$9.selectFlag, children: /* @__PURE__ */ jsx$1(CountryFlag, {}) }), showOptionLabel && /* @__PURE__ */ jsx$1("span", { className: styles$9.label, children: isCustomLabelObject(countryLabel) ? countryLabel.primary : countryLabel }), showSecondaryOptionLabel && isCustomLabelObject(countryLabel) && /* @__PURE__ */ jsx$1("span", { className: styles$9.secondaryLabel, children: countryLabel.secondary })] }) }, countryCode);
19607
+ }, children: /* @__PURE__ */ jsxs("span", { className: styles$a.selectOptionValue, children: [/* @__PURE__ */ jsx$1("span", { className: styles$a.selectFlag, children: /* @__PURE__ */ jsx$1(CountryFlag, {}) }), showOptionLabel && /* @__PURE__ */ jsx$1("span", { className: styles$a.label, children: isCustomLabelObject(countryLabel) ? countryLabel.primary : countryLabel }), showSecondaryOptionLabel && isCustomLabelObject(countryLabel) && /* @__PURE__ */ jsx$1("span", { className: styles$a.secondaryLabel, children: countryLabel.secondary })] }) }, countryCode);
19608
19608
  })] })] });
19609
19609
  };
19610
+ const active = "_active_rmppf_34";
19611
+ const icon = "_icon_rmppf_61";
19612
+ const error = "_error_rmppf_70";
19613
+ var styles$9 = {
19614
+ "custom-input-container": "_custom-input-container_rmppf_1",
19615
+ "input-container": "_input-container_rmppf_5",
19616
+ "filled-input": "_filled-input_rmppf_29",
19617
+ active,
19618
+ icon,
19619
+ error
19620
+ };
19610
19621
  function CustomInput({
19611
19622
  type,
19612
19623
  name,
19613
19624
  id,
19614
19625
  icon: icon2,
19615
- error,
19626
+ error: error2,
19616
19627
  label,
19617
19628
  ...rest
19618
19629
  }) {
@@ -19625,14 +19636,14 @@ function CustomInput({
19625
19636
  } = rest;
19626
19637
  {
19627
19638
  type === "select" ? component = /* @__PURE__ */ jsxs("div", {
19628
- className: `custom-input-container ${error ? "error" : ""}`,
19639
+ className: `${styles$9["custom-input-container"]} ${error2 ? styles$9["error"] : ""}`,
19629
19640
  children: [/* @__PURE__ */ jsxs("label", {
19630
- className: `input-container ${icon2 ? "icon" : ""}`,
19641
+ className: `${styles$9["input-container"]} ${icon2 ? styles$9["icon"] : ""}`,
19631
19642
  children: [icon2 && icon2, /* @__PURE__ */ jsxs("select", {
19632
19643
  name,
19633
19644
  id,
19634
19645
  ...rest,
19635
- className: "custom-input",
19646
+ className: styles$9["custom-input"],
19636
19647
  children: [/* @__PURE__ */ jsx$1("option", {
19637
19648
  hidden: true,
19638
19649
  children: "Pa\xEDs"
@@ -19643,15 +19654,15 @@ function CustomInput({
19643
19654
  }, i2);
19644
19655
  })]
19645
19656
  })]
19646
- }), error && /* @__PURE__ */ jsx$1("p", {
19647
- className: "error",
19648
- children: error.message
19657
+ }), error2 && /* @__PURE__ */ jsx$1("p", {
19658
+ className: styles$9["error"],
19659
+ children: error2.message
19649
19660
  })]
19650
19661
  }) : type === "country" ? component = /* @__PURE__ */ jsx$1("div", {
19651
- className: `custom-input-container ${error ? "error" : ""}`,
19662
+ className: `${styles$9["custom-input-container"]} ${error2 ? styles$9["error"] : ""}`,
19652
19663
  children: /* @__PURE__ */ jsx$1(ReactFlagsSelect, {
19653
19664
  showOptionLabel: true,
19654
- className: "country-select",
19665
+ className: styles$9["country-select"],
19655
19666
  name,
19656
19667
  id,
19657
19668
  ...rest,
@@ -19659,9 +19670,9 @@ function CustomInput({
19659
19670
  placeholder: "Pa\xEDs de nacimiento"
19660
19671
  })
19661
19672
  }) : component = /* @__PURE__ */ jsxs("div", {
19662
- className: `custom-input-container ${error ? "error" : ""}`,
19673
+ className: `${styles$9["custom-input-container"]} ${error2 ? styles$9["error"] : ""}`,
19663
19674
  children: [/* @__PURE__ */ jsxs("label", {
19664
- className: `input-container ${icon2 ? "icon" : ""}`,
19675
+ className: `${styles$9["input-container"]} ${icon2 ? styles$9["icon"] : ""}`,
19665
19676
  children: [icon2 && icon2, /* @__PURE__ */ jsx$1("input", {
19666
19677
  type,
19667
19678
  name,
@@ -19669,12 +19680,12 @@ function CustomInput({
19669
19680
  value,
19670
19681
  onChange
19671
19682
  }), /* @__PURE__ */ jsx$1("div", {
19672
- className: `filled-input active`,
19683
+ className: `${styles$9["filled-input"]} ${styles$9["active"]}`,
19673
19684
  children: placeholder && placeholder
19674
19685
  })]
19675
- }), error && /* @__PURE__ */ jsx$1("p", {
19676
- className: "error",
19677
- children: error.message
19686
+ }), error2 && /* @__PURE__ */ jsx$1("p", {
19687
+ className: styles$9["error"],
19688
+ children: error2.message
19678
19689
  })]
19679
19690
  });
19680
19691
  }
@@ -19711,12 +19722,12 @@ function CustomInputForm({
19711
19722
  })
19712
19723
  });
19713
19724
  }
19714
- const cover_spin = "_cover_spin_1k1r6_1";
19715
- const spin = "_spin_1k1r6_58";
19716
- const custom_spinner_container = "_custom_spinner_container_1k1r6_47";
19717
- const box_spinner = "_box_spinner_1k1r6_54";
19718
- const spinner = "_spinner_1k1r6_58";
19719
- const border_animation = "_border_animation_1k1r6_1";
19725
+ const cover_spin = "_cover_spin_1c1aj_1";
19726
+ const spin = "_spin_1c1aj_58";
19727
+ const custom_spinner_container = "_custom_spinner_container_1c1aj_47";
19728
+ const box_spinner = "_box_spinner_1c1aj_54";
19729
+ const spinner = "_spinner_1c1aj_58";
19730
+ const border_animation = "_border_animation_1c1aj_1";
19720
19731
  var styles$8 = {
19721
19732
  cover_spin,
19722
19733
  spin,
@@ -19731,14 +19742,14 @@ function BackDropLoader() {
19731
19742
  });
19732
19743
  }
19733
19744
  var styles$7 = {
19734
- "success-container": "_success-container_1f9ek_1",
19735
- "success-checkmark": "_success-checkmark_1f9ek_8",
19736
- "check-icon": "_check-icon_1f9ek_13",
19737
- "icon-line": "_icon-line_1f9ek_21",
19738
- "line-tip": "_line-tip_1f9ek_29",
19739
- "icon-line-tip": "_icon-line-tip_1f9ek_1",
19740
- "line-long": "_line-long_1f9ek_36",
19741
- "icon-line-long": "_icon-line-long_1f9ek_1"
19745
+ "success-container": "_success-container_2rzqb_1",
19746
+ "success-checkmark": "_success-checkmark_2rzqb_8",
19747
+ "check-icon": "_check-icon_2rzqb_13",
19748
+ "icon-line": "_icon-line_2rzqb_21",
19749
+ "line-tip": "_line-tip_2rzqb_29",
19750
+ "icon-line-tip": "_icon-line-tip_2rzqb_1",
19751
+ "line-long": "_line-long_2rzqb_36",
19752
+ "icon-line-long": "_icon-line-long_2rzqb_1"
19742
19753
  };
19743
19754
  function SuccessAnimation({
19744
19755
  message
@@ -19765,19 +19776,19 @@ function SuccessAnimation({
19765
19776
  })]
19766
19777
  });
19767
19778
  }
19768
- const sa = "_sa_zmfjo_10";
19769
- const scaleWarning = "_scaleWarning_zmfjo_1";
19770
- const pulseWarning = "_pulseWarning_zmfjo_1";
19771
- const pulseWarningIns = "_pulseWarningIns_zmfjo_1";
19779
+ const sa = "_sa_1fxlm_10";
19780
+ const scaleWarning = "_scaleWarning_1fxlm_1";
19781
+ const pulseWarning = "_pulseWarning_1fxlm_1";
19782
+ const pulseWarningIns = "_pulseWarningIns_1fxlm_1";
19772
19783
  var styles$6 = {
19773
- "warning-container": "_warning-container_zmfjo_1",
19784
+ "warning-container": "_warning-container_1fxlm_1",
19774
19785
  sa,
19775
- "sa-warning": "_sa-warning_zmfjo_18",
19786
+ "sa-warning": "_sa-warning_1fxlm_18",
19776
19787
  scaleWarning,
19777
19788
  pulseWarning,
19778
- "sa-warning-body": "_sa-warning-body_zmfjo_42",
19789
+ "sa-warning-body": "_sa-warning-body_1fxlm_42",
19779
19790
  pulseWarningIns,
19780
- "sa-warning-dot": "_sa-warning-dot_zmfjo_54"
19791
+ "sa-warning-dot": "_sa-warning-dot_1fxlm_54"
19781
19792
  };
19782
19793
  function ErrorAnimation({
19783
19794
  message,
@@ -23659,7 +23670,7 @@ function isFocusVisible(event) {
23659
23670
  } = event;
23660
23671
  try {
23661
23672
  return target.matches(":focus-visible");
23662
- } catch (error) {
23673
+ } catch (error2) {
23663
23674
  }
23664
23675
  return hadKeyboardEvent || focusTriggersKeyboardModality(target);
23665
23676
  }
@@ -24188,7 +24199,7 @@ colorManipulator.colorChannel = colorChannel;
24188
24199
  const private_safeColorChannel = (color2, warning) => {
24189
24200
  try {
24190
24201
  return colorChannel(color2);
24191
- } catch (error) {
24202
+ } catch (error2) {
24192
24203
  if (warning && false) {
24193
24204
  console.warn(warning);
24194
24205
  }
@@ -24279,7 +24290,7 @@ function alpha(color2, value) {
24279
24290
  function private_safeAlpha(color2, value, warning) {
24280
24291
  try {
24281
24292
  return alpha(color2, value);
24282
- } catch (error) {
24293
+ } catch (error2) {
24283
24294
  if (warning && false) {
24284
24295
  console.warn(warning);
24285
24296
  }
@@ -24301,7 +24312,7 @@ function darken(color2, coefficient) {
24301
24312
  function private_safeDarken(color2, coefficient, warning) {
24302
24313
  try {
24303
24314
  return darken(color2, coefficient);
24304
- } catch (error) {
24315
+ } catch (error2) {
24305
24316
  if (warning && false) {
24306
24317
  console.warn(warning);
24307
24318
  }
@@ -24327,7 +24338,7 @@ function lighten(color2, coefficient) {
24327
24338
  function private_safeLighten(color2, coefficient, warning) {
24328
24339
  try {
24329
24340
  return lighten(color2, coefficient);
24330
- } catch (error) {
24341
+ } catch (error2) {
24331
24342
  if (warning && false) {
24332
24343
  console.warn(warning);
24333
24344
  }
@@ -24340,7 +24351,7 @@ function emphasize(color2, coefficient = 0.15) {
24340
24351
  function private_safeEmphasize(color2, coefficient, warning) {
24341
24352
  try {
24342
24353
  return emphasize(color2, coefficient);
24343
- } catch (error) {
24354
+ } catch (error2) {
24344
24355
  if (warning && false) {
24345
24356
  console.warn(warning);
24346
24357
  }
@@ -24514,7 +24525,7 @@ function createPalette(palette) {
24514
24525
  } = palette, other = _objectWithoutPropertiesLoose$1(palette, _excluded$1T);
24515
24526
  const primary = palette.primary || getDefaultPrimary(mode);
24516
24527
  const secondary = palette.secondary || getDefaultSecondary(mode);
24517
- const error = palette.error || getDefaultError(mode);
24528
+ const error2 = palette.error || getDefaultError(mode);
24518
24529
  const info = palette.info || getDefaultInfo(mode);
24519
24530
  const success = palette.success || getDefaultSuccess(mode);
24520
24531
  const warning = palette.warning || getDefaultWarning(mode);
@@ -24565,7 +24576,7 @@ function createPalette(palette) {
24565
24576
  darkShade: "A700"
24566
24577
  }),
24567
24578
  error: augmentColor({
24568
- color: error,
24579
+ color: error2,
24569
24580
  name: "error"
24570
24581
  }),
24571
24582
  warning: augmentColor({
@@ -24598,8 +24609,8 @@ const caseAllCaps = {
24598
24609
  const defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif';
24599
24610
  function createTypography(palette, typography) {
24600
24611
  const _ref = typeof typography === "function" ? typography(palette) : typography, {
24601
- fontFamily: fontFamily2 = defaultFontFamily,
24602
- fontSize: fontSize2 = 14,
24612
+ fontFamily = defaultFontFamily,
24613
+ fontSize = 14,
24603
24614
  fontWeightLight = 300,
24604
24615
  fontWeightRegular = 400,
24605
24616
  fontWeightMedium = 500,
@@ -24608,14 +24619,14 @@ function createTypography(palette, typography) {
24608
24619
  allVariants,
24609
24620
  pxToRem: pxToRem2
24610
24621
  } = _ref, other = _objectWithoutPropertiesLoose$1(_ref, _excluded$1S);
24611
- const coef = fontSize2 / 14;
24622
+ const coef = fontSize / 14;
24612
24623
  const pxToRem = pxToRem2 || ((size) => `${size / htmlFontSize * coef}rem`);
24613
24624
  const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends$2({
24614
- fontFamily: fontFamily2,
24625
+ fontFamily,
24615
24626
  fontWeight,
24616
24627
  fontSize: pxToRem(size),
24617
24628
  lineHeight
24618
- }, fontFamily2 === defaultFontFamily ? {
24629
+ }, fontFamily === defaultFontFamily ? {
24619
24630
  letterSpacing: `${round$2(letterSpacing / size)}em`
24620
24631
  } : {}, casing, allVariants);
24621
24632
  const variants = {
@@ -24643,8 +24654,8 @@ function createTypography(palette, typography) {
24643
24654
  return deepmerge$1(_extends$2({
24644
24655
  htmlFontSize,
24645
24656
  pxToRem,
24646
- fontFamily: fontFamily2,
24647
- fontSize: fontSize2,
24657
+ fontFamily,
24658
+ fontSize,
24648
24659
  fontWeightLight,
24649
24660
  fontWeightRegular,
24650
24661
  fontWeightMedium,
@@ -25061,11 +25072,11 @@ const _excluded$1O = ["children", "className", "color", "component", "fontSize",
25061
25072
  const useUtilityClasses$1q = (ownerState) => {
25062
25073
  const {
25063
25074
  color: color2,
25064
- fontSize: fontSize2,
25075
+ fontSize,
25065
25076
  classes
25066
25077
  } = ownerState;
25067
25078
  const slots = {
25068
- root: ["root", color2 !== "inherit" && `color${capitalize$1(color2)}`, `fontSize${capitalize$1(fontSize2)}`]
25079
+ root: ["root", color2 !== "inherit" && `color${capitalize$1(color2)}`, `fontSize${capitalize$1(fontSize)}`]
25069
25080
  };
25070
25081
  return composeClasses(slots, getSvgIconUtilityClass, classes);
25071
25082
  };
@@ -25116,7 +25127,7 @@ const SvgIcon = /* @__PURE__ */ React$2.forwardRef(function SvgIcon2(inProps, re
25116
25127
  className,
25117
25128
  color: color2 = "inherit",
25118
25129
  component = "svg",
25119
- fontSize: fontSize2 = "medium",
25130
+ fontSize = "medium",
25120
25131
  htmlColor,
25121
25132
  inheritViewBox = false,
25122
25133
  titleAccess,
@@ -25126,7 +25137,7 @@ const SvgIcon = /* @__PURE__ */ React$2.forwardRef(function SvgIcon2(inProps, re
25126
25137
  const ownerState = _extends$2({}, props, {
25127
25138
  color: color2,
25128
25139
  component,
25129
- fontSize: fontSize2,
25140
+ fontSize,
25130
25141
  instanceFontSize: inProps.fontSize,
25131
25142
  inheritViewBox,
25132
25143
  viewBox,
@@ -25352,16 +25363,16 @@ var Transition = /* @__PURE__ */ function(_React$Component) {
25352
25363
  };
25353
25364
  _proto.setNextCallback = function setNextCallback(callback) {
25354
25365
  var _this4 = this;
25355
- var active = true;
25366
+ var active2 = true;
25356
25367
  this.nextCallback = function(event) {
25357
- if (active) {
25358
- active = false;
25368
+ if (active2) {
25369
+ active2 = false;
25359
25370
  _this4.nextCallback = null;
25360
25371
  callback(event);
25361
25372
  }
25362
25373
  };
25363
25374
  this.nextCallback.cancel = function() {
25364
- active = false;
25375
+ active2 = false;
25365
25376
  };
25366
25377
  return this.nextCallback;
25367
25378
  };
@@ -30038,7 +30049,7 @@ const useUtilityClasses$1g = (ownerState) => {
30038
30049
  classes,
30039
30050
  color: color2,
30040
30051
  disabled,
30041
- error,
30052
+ error: error2,
30042
30053
  endAdornment,
30043
30054
  focused,
30044
30055
  formControl,
@@ -30051,7 +30062,7 @@ const useUtilityClasses$1g = (ownerState) => {
30051
30062
  type
30052
30063
  } = ownerState;
30053
30064
  const slots = {
30054
- root: ["root", `color${capitalize$1(color2)}`, disabled && "disabled", error && "error", fullWidth && "fullWidth", focused && "focused", formControl && "formControl", size && size !== "medium" && `size${capitalize$1(size)}`, multiline && "multiline", startAdornment && "adornedStart", endAdornment && "adornedEnd", hiddenLabel && "hiddenLabel", readOnly && "readOnly"],
30065
+ root: ["root", `color${capitalize$1(color2)}`, disabled && "disabled", error2 && "error", fullWidth && "fullWidth", focused && "focused", formControl && "formControl", size && size !== "medium" && `size${capitalize$1(size)}`, multiline && "multiline", startAdornment && "adornedStart", endAdornment && "adornedEnd", hiddenLabel && "hiddenLabel", readOnly && "readOnly"],
30055
30066
  input: ["input", disabled && "disabled", type === "search" && "inputTypeSearch", multiline && "inputMultiline", size === "small" && "inputSizeSmall", hiddenLabel && "inputHiddenLabel", startAdornment && "inputAdornedStart", endAdornment && "inputAdornedEnd", readOnly && "readOnly"]
30056
30067
  };
30057
30068
  return composeClasses(slots, getInputBaseUtilityClass, classes);
@@ -33977,7 +33988,7 @@ const FormControl = /* @__PURE__ */ React$2.forwardRef(function FormControl2(inP
33977
33988
  color: color2 = "primary",
33978
33989
  component = "div",
33979
33990
  disabled = false,
33980
- error = false,
33991
+ error: error2 = false,
33981
33992
  focused: visuallyFocused,
33982
33993
  fullWidth = false,
33983
33994
  hiddenLabel = false,
@@ -33990,7 +34001,7 @@ const FormControl = /* @__PURE__ */ React$2.forwardRef(function FormControl2(inP
33990
34001
  color: color2,
33991
34002
  component,
33992
34003
  disabled,
33993
- error,
34004
+ error: error2,
33994
34005
  fullWidth,
33995
34006
  hiddenLabel,
33996
34007
  margin: margin2,
@@ -34040,7 +34051,7 @@ const FormControl = /* @__PURE__ */ React$2.forwardRef(function FormControl2(inP
34040
34051
  setAdornedStart,
34041
34052
  color: color2,
34042
34053
  disabled,
34043
- error,
34054
+ error: error2,
34044
34055
  filled,
34045
34056
  focused,
34046
34057
  fullWidth,
@@ -34062,7 +34073,7 @@ const FormControl = /* @__PURE__ */ React$2.forwardRef(function FormControl2(inP
34062
34073
  required,
34063
34074
  variant
34064
34075
  };
34065
- }, [adornedStart, color2, disabled, error, filled, focused, fullWidth, hiddenLabel, registerEffect, required, size, variant]);
34076
+ }, [adornedStart, color2, disabled, error2, filled, focused, fullWidth, hiddenLabel, registerEffect, required, size, variant]);
34066
34077
  return /* @__PURE__ */ jsx$1(FormControlContext$1.Provider, {
34067
34078
  value: childContext,
34068
34079
  children: /* @__PURE__ */ jsx$1(FormControlRoot, _extends$2({
@@ -34099,13 +34110,13 @@ const useUtilityClasses$10 = (ownerState) => {
34099
34110
  classes,
34100
34111
  disabled,
34101
34112
  labelPlacement,
34102
- error,
34113
+ error: error2,
34103
34114
  required
34104
34115
  } = ownerState;
34105
34116
  const slots = {
34106
- root: ["root", disabled && "disabled", `labelPlacement${capitalize$1(labelPlacement)}`, error && "error", required && "required"],
34117
+ root: ["root", disabled && "disabled", `labelPlacement${capitalize$1(labelPlacement)}`, error2 && "error", required && "required"],
34107
34118
  label: ["label", disabled && "disabled"],
34108
- asterisk: ["asterisk", error && "error"]
34119
+ asterisk: ["asterisk", error2 && "error"]
34109
34120
  };
34110
34121
  return composeClasses(slots, getFormControlLabelUtilityClasses, classes);
34111
34122
  };
@@ -34243,13 +34254,13 @@ const useUtilityClasses$$ = (ownerState) => {
34243
34254
  contained: contained2,
34244
34255
  size,
34245
34256
  disabled,
34246
- error,
34257
+ error: error2,
34247
34258
  filled,
34248
34259
  focused,
34249
34260
  required
34250
34261
  } = ownerState;
34251
34262
  const slots = {
34252
- root: ["root", disabled && "disabled", error && "error", size && `size${capitalize$1(size)}`, contained2 && "contained", focused && "focused", filled && "filled", required && "required"]
34263
+ root: ["root", disabled && "disabled", error2 && "error", size && `size${capitalize$1(size)}`, contained2 && "contained", focused && "focused", filled && "filled", required && "required"]
34253
34264
  };
34254
34265
  return composeClasses(slots, getFormHelperTextUtilityClasses, classes);
34255
34266
  };
@@ -34338,13 +34349,13 @@ const useUtilityClasses$_ = (ownerState) => {
34338
34349
  color: color2,
34339
34350
  focused,
34340
34351
  disabled,
34341
- error,
34352
+ error: error2,
34342
34353
  filled,
34343
34354
  required
34344
34355
  } = ownerState;
34345
34356
  const slots = {
34346
- root: ["root", `color${capitalize$1(color2)}`, disabled && "disabled", error && "error", filled && "filled", focused && "focused", required && "required"],
34347
- asterisk: ["asterisk", error && "error"]
34357
+ root: ["root", `color${capitalize$1(color2)}`, disabled && "disabled", error2 && "error", filled && "filled", focused && "focused", required && "required"],
34358
+ asterisk: ["asterisk", error2 && "error"]
34348
34359
  };
34349
34360
  return composeClasses(slots, getFormLabelUtilityClasses, classes);
34350
34361
  };
@@ -36268,10 +36279,10 @@ const useUtilityClasses$O = (ownerState) => {
36268
36279
  disabled,
36269
36280
  multiple,
36270
36281
  open,
36271
- error
36282
+ error: error2
36272
36283
  } = ownerState;
36273
36284
  const slots = {
36274
- select: ["select", variant, disabled && "disabled", multiple && "multiple", error && "error"],
36285
+ select: ["select", variant, disabled && "disabled", multiple && "multiple", error2 && "error"],
36275
36286
  icon: ["icon", `icon${capitalize$1(variant)}`, open && "iconOpen", disabled && "disabled"]
36276
36287
  };
36277
36288
  return composeClasses(slots, getNativeSelectUtilityClasses, classes);
@@ -36367,7 +36378,7 @@ const NativeSelectInput = /* @__PURE__ */ React$2.forwardRef(function NativeSele
36367
36378
  const {
36368
36379
  className,
36369
36380
  disabled,
36370
- error,
36381
+ error: error2,
36371
36382
  IconComponent,
36372
36383
  inputRef,
36373
36384
  variant = "standard"
@@ -36375,7 +36386,7 @@ const NativeSelectInput = /* @__PURE__ */ React$2.forwardRef(function NativeSele
36375
36386
  const ownerState = _extends$2({}, props, {
36376
36387
  disabled,
36377
36388
  variant,
36378
- error
36389
+ error: error2
36379
36390
  });
36380
36391
  const classes = useUtilityClasses$O(ownerState);
36381
36392
  return /* @__PURE__ */ jsxs(React$2.Fragment, {
@@ -36733,10 +36744,10 @@ const useUtilityClasses$M = (ownerState) => {
36733
36744
  disabled,
36734
36745
  multiple,
36735
36746
  open,
36736
- error
36747
+ error: error2
36737
36748
  } = ownerState;
36738
36749
  const slots = {
36739
- select: ["select", variant, disabled && "disabled", multiple && "multiple", error && "error"],
36750
+ select: ["select", variant, disabled && "disabled", multiple && "multiple", error2 && "error"],
36740
36751
  icon: ["icon", `icon${capitalize$1(variant)}`, open && "iconOpen", disabled && "disabled"],
36741
36752
  nativeInput: ["nativeInput"]
36742
36753
  };
@@ -36755,7 +36766,7 @@ const SelectInput = /* @__PURE__ */ React$2.forwardRef(function SelectInput2(pro
36755
36766
  defaultValue,
36756
36767
  disabled,
36757
36768
  displayEmpty,
36758
- error = false,
36769
+ error: error2 = false,
36759
36770
  IconComponent,
36760
36771
  inputRef: inputRefProp,
36761
36772
  labelId,
@@ -37018,7 +37029,7 @@ const SelectInput = /* @__PURE__ */ React$2.forwardRef(function SelectInput2(pro
37018
37029
  variant,
37019
37030
  value,
37020
37031
  open,
37021
- error
37032
+ error: error2
37022
37033
  });
37023
37034
  const classes = useUtilityClasses$M(ownerState);
37024
37035
  const paperProps = _extends$2({}, MenuProps.PaperProps, (_MenuProps$slotProps = MenuProps.slotProps) == null ? void 0 : _MenuProps$slotProps.paper);
@@ -37048,7 +37059,7 @@ const SelectInput = /* @__PURE__ */ React$2.forwardRef(function SelectInput2(pro
37048
37059
  children: "\u200B"
37049
37060
  })) : display
37050
37061
  })), /* @__PURE__ */ jsx$1(SelectNativeInput, _extends$2({
37051
- "aria-invalid": error,
37062
+ "aria-invalid": error2,
37052
37063
  value: Array.isArray(value) ? value.join(",") : value,
37053
37064
  name,
37054
37065
  ref: inputRef,
@@ -39590,7 +39601,7 @@ const TextField = /* @__PURE__ */ React$2.forwardRef(function TextField2(inProps
39590
39601
  color: color2 = "primary",
39591
39602
  defaultValue,
39592
39603
  disabled = false,
39593
- error = false,
39604
+ error: error2 = false,
39594
39605
  FormHelperTextProps,
39595
39606
  fullWidth = false,
39596
39607
  helperText,
@@ -39620,7 +39631,7 @@ const TextField = /* @__PURE__ */ React$2.forwardRef(function TextField2(inProps
39620
39631
  autoFocus,
39621
39632
  color: color2,
39622
39633
  disabled,
39623
- error,
39634
+ error: error2,
39624
39635
  fullWidth,
39625
39636
  multiline,
39626
39637
  required,
@@ -39669,7 +39680,7 @@ const TextField = /* @__PURE__ */ React$2.forwardRef(function TextField2(inProps
39669
39680
  return /* @__PURE__ */ jsxs(TextFieldRoot, _extends$2({
39670
39681
  className: clsx(classes.root, className),
39671
39682
  disabled,
39672
- error,
39683
+ error: error2,
39673
39684
  fullWidth,
39674
39685
  ref,
39675
39686
  required,
@@ -39770,13 +39781,13 @@ function BackButton({
39770
39781
  action
39771
39782
  }) {
39772
39783
  return /* @__PURE__ */ jsx$1(Box$1, {
39773
- className: "back-button-container",
39784
+ className: styles$b["back-button-container"],
39774
39785
  children: /* @__PURE__ */ jsxs(MUIButton, {
39775
39786
  variant: "outlined",
39776
39787
  onClick: action,
39777
- className: "back-button",
39788
+ className: styles$b["back-button"],
39778
39789
  children: [/* @__PURE__ */ jsx$1(ArrowBack, {
39779
- className: "grayscale"
39790
+ className: styles$b["grayscale"]
39780
39791
  }), /* @__PURE__ */ jsx$1(Typography$1, {
39781
39792
  variant: "body2",
39782
39793
  children: "Volver atras"
@@ -39814,7 +39825,7 @@ function BlackList({
39814
39825
  countryCode
39815
39826
  } = BlackListController(clientId, authorize, inProduction, source2, eventId, countryCodeAllowed, validateVpn, successMessage, alertMessage, dataBlackList);
39816
39827
  return /* @__PURE__ */ jsxs("div", {
39817
- className: `${styles$a["kit-gbc"]} ${styles$a[mode]}`,
39828
+ className: `${styles$b["kit-gbc"]} ${styles$b[mode]}`,
39818
39829
  style: {
39819
39830
  padding: "16px"
39820
39831
  },
@@ -39833,11 +39844,11 @@ function BlackList({
39833
39844
  onSubmit: simpleHandleSubmit(onSendSubmitDocument),
39834
39845
  id: "blacklist",
39835
39846
  children: /* @__PURE__ */ jsxs("div", {
39836
- className: styles$a.sub,
39847
+ className: styles$b.sub,
39837
39848
  children: [showBackButton(status) && /* @__PURE__ */ jsx$1(BackButton, {
39838
39849
  action: clearState
39839
39850
  }), /* @__PURE__ */ jsxs("div", {
39840
- className: styles$a["header-component"],
39851
+ className: styles$b["header-component"],
39841
39852
  children: [/* @__PURE__ */ jsx$1("h4", {
39842
39853
  children: "Lista de sanciones y PEPs"
39843
39854
  }), !lib$1(status) ? /* @__PURE__ */ jsx$1(StatusComponent, {
@@ -40006,12 +40017,12 @@ const DocumentReaderController = (dataDocument, clientId, authorize, eventId, so
40006
40017
  } = res2.data;
40007
40018
  message2 && setStatus(message2);
40008
40019
  setMessage(successMessage ? successMessage : "Documento verificado con \xE9xito");
40009
- } catch (error) {
40010
- console.log(error, "controller");
40020
+ } catch (error2) {
40021
+ console.log(error2, "controller");
40011
40022
  let message2 = "";
40012
40023
  const {
40013
40024
  status: status2
40014
- } = (_a = error == null ? void 0 : error.response) != null ? _a : {
40025
+ } = (_a = error2 == null ? void 0 : error2.response) != null ? _a : {
40015
40026
  status: "Error desconocido"
40016
40027
  };
40017
40028
  const data2 = await saveDataToDB({
@@ -40028,13 +40039,13 @@ const DocumentReaderController = (dataDocument, clientId, authorize, eventId, so
40028
40039
  geolocation
40029
40040
  });
40030
40041
  await dataDocument({
40031
- ...error,
40042
+ ...error2,
40032
40043
  countAttempts: data2.count_try
40033
40044
  });
40034
- if (((_c = (_b = error == null ? void 0 : error.response) == null ? void 0 : _b.data) == null ? void 0 : _c.code) === "020" && data2.count_try > 3)
40045
+ if (((_c = (_b = error2 == null ? void 0 : error2.response) == null ? void 0 : _b.data) == null ? void 0 : _c.code) === "020" && data2.count_try > 3)
40035
40046
  setUploadDocumentByPhone(true);
40036
- if ((_e = (_d = error == null ? void 0 : error.response) == null ? void 0 : _d.data) == null ? void 0 : _e.message) {
40037
- message2 = error.response.data.message;
40047
+ if ((_e = (_d = error2 == null ? void 0 : error2.response) == null ? void 0 : _d.data) == null ? void 0 : _e.message) {
40048
+ message2 = error2.response.data.message;
40038
40049
  } else if (status2 === 500) {
40039
40050
  message2 = {
40040
40051
  limit_of_request
@@ -40043,9 +40054,9 @@ const DocumentReaderController = (dataDocument, clientId, authorize, eventId, so
40043
40054
  setIsLoading(null);
40044
40055
  setMessage(message2);
40045
40056
  setStatus(status2);
40046
- ErrorHandler(error);
40057
+ ErrorHandler(error2);
40047
40058
  }
40048
- } catch (error) {
40059
+ } catch (error2) {
40049
40060
  Q.error("Error - Verificar host con el proveedor");
40050
40061
  } finally {
40051
40062
  setIsLoading(false);
@@ -40416,7 +40427,7 @@ function fileToBase64(file) {
40416
40427
  const reader = new FileReader();
40417
40428
  reader.readAsDataURL(file);
40418
40429
  reader.onload = () => res(reader.result);
40419
- reader.onerror = (error) => rej(error);
40430
+ reader.onerror = (error2) => rej(error2);
40420
40431
  });
40421
40432
  }
40422
40433
  const createCanvasFromSource = (source2) => {
@@ -41194,7 +41205,7 @@ var reactWebcam = { exports: {} };
41194
41205
  this.video.srcObject = stream;
41195
41206
  }
41196
41207
  this.setState({ hasUserMedia: true });
41197
- } catch (error) {
41208
+ } catch (error2) {
41198
41209
  this.setState({
41199
41210
  hasUserMedia: true,
41200
41211
  src: window.URL.createObjectURL(stream)
@@ -41526,8 +41537,8 @@ const useImageCrop = ({
41526
41537
  croppedImage: croppedImageUrl,
41527
41538
  cropArea
41528
41539
  };
41529
- } catch (error) {
41530
- console.error("Error cropping image:", error);
41540
+ } catch (error2) {
41541
+ console.error("Error cropping image:", error2);
41531
41542
  return null;
41532
41543
  }
41533
41544
  }, [cropArea, displayedImageRect]);
@@ -41547,27 +41558,27 @@ const useImageCrop = ({
41547
41558
  };
41548
41559
  };
41549
41560
  var styles$1 = {
41550
- "image-crop-modal": "_image-crop-modal_1j287_1",
41551
- "MuiDialog-paper": "_MuiDialog-paper_1j287_1",
41552
- "image-crop-container": "_image-crop-container_1j287_7",
41553
- "crop-header": "_crop-header_1j287_14",
41554
- "crop-area": "_crop-area_1j287_29",
41555
- "crop-image": "_crop-image_1j287_40",
41556
- "crop-overlay": "_crop-overlay_1j287_48",
41557
- "crop-selection": "_crop-selection_1j287_56",
41558
- "crop-handle": "_crop-handle_1j287_72",
41559
- "handle-nw": "_handle-nw_1j287_100",
41560
- "handle-ne": "_handle-ne_1j287_105",
41561
- "handle-sw": "_handle-sw_1j287_110",
41562
- "handle-se": "_handle-se_1j287_115",
41563
- "crop-grid": "_crop-grid_1j287_120",
41564
- "grid-vertical": "_grid-vertical_1j287_145",
41565
- "crop-actions": "_crop-actions_1j287_158",
41566
- "MuiButton-root": "_MuiButton-root_1j287_166",
41567
- "MuiButton-outlined": "_MuiButton-outlined_1j287_173",
41568
- "crop-preview": "_crop-preview_1j287_176",
41569
- "preview-label": "_preview-label_1j287_183",
41570
- "preview-image": "_preview-image_1j287_188"
41561
+ "image-crop-modal": "_image-crop-modal_13qpu_1",
41562
+ "MuiDialog-paper": "_MuiDialog-paper_13qpu_1",
41563
+ "image-crop-container": "_image-crop-container_13qpu_7",
41564
+ "crop-header": "_crop-header_13qpu_14",
41565
+ "crop-area": "_crop-area_13qpu_29",
41566
+ "crop-image": "_crop-image_13qpu_40",
41567
+ "crop-overlay": "_crop-overlay_13qpu_48",
41568
+ "crop-selection": "_crop-selection_13qpu_56",
41569
+ "crop-handle": "_crop-handle_13qpu_72",
41570
+ "handle-nw": "_handle-nw_13qpu_100",
41571
+ "handle-ne": "_handle-ne_13qpu_105",
41572
+ "handle-sw": "_handle-sw_13qpu_110",
41573
+ "handle-se": "_handle-se_13qpu_115",
41574
+ "crop-grid": "_crop-grid_13qpu_120",
41575
+ "grid-vertical": "_grid-vertical_13qpu_145",
41576
+ "crop-actions": "_crop-actions_13qpu_158",
41577
+ "MuiButton-root": "_MuiButton-root_13qpu_166",
41578
+ "MuiButton-outlined": "_MuiButton-outlined_13qpu_173",
41579
+ "crop-preview": "_crop-preview_13qpu_176",
41580
+ "preview-label": "_preview-label_13qpu_183",
41581
+ "preview-image": "_preview-image_13qpu_188"
41571
41582
  };
41572
41583
  const ImageCropComponent = ({
41573
41584
  image,
@@ -41609,8 +41620,8 @@ const ImageCropComponent = ({
41609
41620
  if (cropData) {
41610
41621
  onCropComplete(cropData);
41611
41622
  }
41612
- } catch (error) {
41613
- console.error("Error al recortar imagen:", error);
41623
+ } catch (error2) {
41624
+ console.error("Error al recortar imagen:", error2);
41614
41625
  } finally {
41615
41626
  setIsLoading(false);
41616
41627
  }
@@ -41661,7 +41672,7 @@ const ImageCropComponent = ({
41661
41672
  open: true,
41662
41673
  onClose: onCancel,
41663
41674
  maxWidth: "lg",
41664
- className: `${styles$1["image-crop-modal"]} ${styles$a["kit-gbc"]}`,
41675
+ className: `${styles$1["image-crop-modal"]} ${styles$b["kit-gbc"]}`,
41665
41676
  children: /* @__PURE__ */ jsx$1(DialogContent$1, {
41666
41677
  sx: {
41667
41678
  maxWidth: "md",
@@ -43801,9 +43812,9 @@ const compressImage = async (file) => {
43801
43812
  try {
43802
43813
  const compressedFile = await imageCompression(file, options);
43803
43814
  return compressedFile;
43804
- } catch (error) {
43805
- console.error("Error al comprimir la imagen:", error);
43806
- throw error;
43815
+ } catch (error2) {
43816
+ console.error("Error al comprimir la imagen:", error2);
43817
+ throw error2;
43807
43818
  }
43808
43819
  };
43809
43820
  const convertFileToBase64 = (file) => {
@@ -43815,8 +43826,8 @@ const convertFileToBase64 = (file) => {
43815
43826
  const base64 = result.split(",")[1];
43816
43827
  resolve(base64);
43817
43828
  };
43818
- reader.onerror = (error) => {
43819
- reject(error);
43829
+ reader.onerror = (error2) => {
43830
+ reject(error2);
43820
43831
  };
43821
43832
  });
43822
43833
  };
@@ -43840,7 +43851,7 @@ const CameraController = () => {
43840
43851
  const [isProcessing, setIsProcessing] = useState(false);
43841
43852
  const [cameraTarget, setCameraTarget] = useState("front");
43842
43853
  const [isLoadingCamera, setIsLoadingCamera] = useState(false);
43843
- const [error, setError] = useState(null);
43854
+ const [error2, setError] = useState(null);
43844
43855
  const [recomendationsReviewed, setRecomendationsReviewed] = useState(false);
43845
43856
  const [frontDocument, setFrontDocument] = useState({
43846
43857
  file: null,
@@ -43920,8 +43931,8 @@ const CameraController = () => {
43920
43931
  if (isCameraOpen && hasPermissions) {
43921
43932
  await openCamera(currentCameraIndex);
43922
43933
  }
43923
- } catch (error2) {
43924
- console.error("Error al reiniciar c\xE1mara:", error2);
43934
+ } catch (error22) {
43935
+ console.error("Error al reiniciar c\xE1mara:", error22);
43925
43936
  setError("No se pudo reiniciar la c\xE1mara. Intenta nuevamente.");
43926
43937
  } finally {
43927
43938
  setIsLoadingCamera(false);
@@ -43935,8 +43946,8 @@ const CameraController = () => {
43935
43946
  return (_a = device2.kind === "videoinput" && device2.label.toLowerCase().includes("back")) != null ? _a : device2.kind === "videoinput";
43936
43947
  });
43937
43948
  setAvailableCameras(videoDevices);
43938
- } catch (error2) {
43939
- console.error("Error obteniendo dispositivos de c\xE1mara:", error2);
43949
+ } catch (error22) {
43950
+ console.error("Error obteniendo dispositivos de c\xE1mara:", error22);
43940
43951
  setAvailableCameras([]);
43941
43952
  }
43942
43953
  };
@@ -43950,11 +43961,11 @@ const CameraController = () => {
43950
43961
  stream.getTracks().forEach((track) => track.stop());
43951
43962
  setHasPermissions(true);
43952
43963
  await getAvailableCameras();
43953
- } catch (error2) {
43954
- console.error("Error solicitando permisos:", error2);
43964
+ } catch (error22) {
43965
+ console.error("Error solicitando permisos:", error22);
43955
43966
  setHasPermissions(false);
43956
43967
  setError("Permisos de c\xE1mara denegados. Permite el acceso para continuar.");
43957
- throw error2;
43968
+ throw error22;
43958
43969
  } finally {
43959
43970
  setIsLoadingCamera(false);
43960
43971
  }
@@ -43997,8 +44008,8 @@ const CameraController = () => {
43997
44008
  });
43998
44009
  setDataClaroPay(dataOfClaroPay);
43999
44010
  navigate("/data-confirmation");
44000
- } catch (error2) {
44001
- console.error("Error al procesar documentos:", error2);
44011
+ } catch (error22) {
44012
+ console.error("Error al procesar documentos:", error22);
44002
44013
  registerOcrError({
44003
44014
  bodyParams: {
44004
44015
  doc_first_image: `data:image/jpeg;base64,${frontDocument.base64}`,
@@ -44076,13 +44087,13 @@ const CameraController = () => {
44076
44087
  }
44077
44088
  } catch (err) {
44078
44089
  console.error("Error abriendo c\xE1mara con fallback:", err);
44079
- const error2 = err;
44080
- if (error2.name === "NotAllowedError") {
44090
+ const error22 = err;
44091
+ if (error22.name === "NotAllowedError") {
44081
44092
  setError("Permisos de c\xE1mara denegados. Permite el acceso a la c\xE1mara.");
44082
44093
  setHasPermissions(false);
44083
- } else if (error2.name === "NotFoundError") {
44094
+ } else if (error22.name === "NotFoundError") {
44084
44095
  setError("No se encontr\xF3 ninguna c\xE1mara en el dispositivo.");
44085
- } else if (error2.name === "NotReadableError") {
44096
+ } else if (error22.name === "NotReadableError") {
44086
44097
  if (retryCount < (isMobile2 ? 1 : 2)) {
44087
44098
  await new Promise((resolve) => setTimeout(resolve, 1500));
44088
44099
  return openCameraWithFallback(retryCount + 1);
@@ -44215,13 +44226,13 @@ const CameraController = () => {
44215
44226
  }
44216
44227
  } catch (err) {
44217
44228
  console.error("Error abriendo c\xE1mara:", err);
44218
- const error2 = err;
44219
- if (error2.name === "NotAllowedError") {
44229
+ const error22 = err;
44230
+ if (error22.name === "NotAllowedError") {
44220
44231
  setError("Permisos de c\xE1mara denegados. Permite el acceso a la c\xE1mara.");
44221
44232
  setHasPermissions(false);
44222
- } else if (error2.name === "NotFoundError") {
44233
+ } else if (error22.name === "NotFoundError") {
44223
44234
  setError("No se encontr\xF3 ninguna c\xE1mara en el dispositivo.");
44224
- } else if (error2.name === "NotReadableError") {
44235
+ } else if (error22.name === "NotReadableError") {
44225
44236
  if (retryCount < (isMobile2 ? 1 : 2)) {
44226
44237
  const retryPause = isMobile2 ? 2e3 : 1e3;
44227
44238
  await new Promise((resolve) => setTimeout(resolve, retryPause));
@@ -44259,7 +44270,7 @@ const CameraController = () => {
44259
44270
  base64,
44260
44271
  error: null
44261
44272
  });
44262
- } catch (error2) {
44273
+ } catch (error22) {
44263
44274
  setDocument({
44264
44275
  file: null,
44265
44276
  preview: null,
@@ -44314,7 +44325,7 @@ const CameraController = () => {
44314
44325
  setCameraTarget,
44315
44326
  isLoadingCamera,
44316
44327
  setIsLoadingCamera,
44317
- error,
44328
+ error: error2,
44318
44329
  setError,
44319
44330
  getAvailableCameras,
44320
44331
  requestPermissions,
@@ -44361,8 +44372,8 @@ const useDocumentCrop = ({ onImageProcessed }) => {
44361
44372
  const croppedFile = new File([blob], fileName, { type: "image/jpeg" });
44362
44373
  onImageProcessed(croppedFile, currentIsFront);
44363
44374
  closeCropModal();
44364
- } catch (error) {
44365
- console.error("Error al procesar imagen recortada:", error);
44375
+ } catch (error2) {
44376
+ console.error("Error al procesar imagen recortada:", error2);
44366
44377
  }
44367
44378
  },
44368
44379
  [originalFile, currentIsFront, onImageProcessed, closeCropModal]
@@ -44437,7 +44448,7 @@ const V2OcrComponent = ({
44437
44448
  handleCameraCapture,
44438
44449
  cameraTarget,
44439
44450
  isLoadingCamera,
44440
- error,
44451
+ error: error2,
44441
44452
  videoRef,
44442
44453
  canvasRef,
44443
44454
  capturePhoto,
@@ -44527,7 +44538,7 @@ const V2OcrComponent = ({
44527
44538
  gutterBottom: true,
44528
44539
  fontWeight: "bold",
44529
44540
  sx: {
44530
- color: "var(--primary)"
44541
+ color: "var(--_primary)"
44531
44542
  },
44532
44543
  textAlign: "left",
44533
44544
  children: "Recomendaciones:"
@@ -44650,12 +44661,12 @@ const V2OcrComponent = ({
44650
44661
  },
44651
44662
  children: isCheckingPermissions ? "Verificando permisos..." : isInitializing ? "Inicializando c\xE1mara..." : "Cargando..."
44652
44663
  })]
44653
- }), error && /* @__PURE__ */ jsxs(Box$1, {
44664
+ }), error2 && /* @__PURE__ */ jsxs(Box$1, {
44654
44665
  className: styles["error-overlay"],
44655
44666
  children: [/* @__PURE__ */ jsx$1(Typography$1, {
44656
44667
  variant: "body1",
44657
44668
  gutterBottom: true,
44658
- children: error
44669
+ children: error2
44659
44670
  }), /* @__PURE__ */ jsx$1(Box$1, {
44660
44671
  sx: {
44661
44672
  display: "flex",
@@ -44715,12 +44726,12 @@ const V2OcrComponent = ({
44715
44726
  children: /* @__PURE__ */ jsx$1(FlipCameraIos, {})
44716
44727
  }), /* @__PURE__ */ jsx$1(MUIIconButton, {
44717
44728
  onClick: capturePhoto,
44718
- disabled: isLoadingCamera || !!error,
44729
+ disabled: isLoadingCamera || !!error2,
44719
44730
  sx: {
44720
- backgroundColor: `var(--primary)`,
44731
+ backgroundColor: `var(--_primary)`,
44721
44732
  color: "white",
44722
44733
  "&:hover": {
44723
- backgroundColor: "var(--primary-hov)"
44734
+ backgroundColor: "var(--_primary-hov)"
44724
44735
  },
44725
44736
  width: "3rem",
44726
44737
  height: "3rem"
@@ -44754,7 +44765,7 @@ const V2OcrComponent = ({
44754
44765
  sx: {
44755
44766
  borderStyle: "dashed",
44756
44767
  "&:hover": {
44757
- borderColor: "var(--primary)",
44768
+ borderColor: "var(--_primary)",
44758
44769
  backgroundColor: "action.hover"
44759
44770
  }
44760
44771
  },
@@ -44863,12 +44874,12 @@ const V2OcrComponent = ({
44863
44874
  },
44864
44875
  children: isInitializing ? "Inicializando c\xE1mara..." : "Cargando..."
44865
44876
  })]
44866
- }), error && /* @__PURE__ */ jsxs(Box$1, {
44877
+ }), error2 && /* @__PURE__ */ jsxs(Box$1, {
44867
44878
  className: styles["error-overlay"],
44868
44879
  children: [/* @__PURE__ */ jsx$1(Typography$1, {
44869
44880
  variant: "body1",
44870
44881
  gutterBottom: true,
44871
- children: error
44882
+ children: error2
44872
44883
  }), /* @__PURE__ */ jsx$1(Box$1, {
44873
44884
  sx: {
44874
44885
  display: "flex",
@@ -44928,12 +44939,12 @@ const V2OcrComponent = ({
44928
44939
  children: /* @__PURE__ */ jsx$1(FlipCameraIos, {})
44929
44940
  }), /* @__PURE__ */ jsx$1(MUIIconButton, {
44930
44941
  onClick: capturePhoto,
44931
- disabled: isLoadingCamera || !!error,
44942
+ disabled: isLoadingCamera || !!error2,
44932
44943
  sx: {
44933
- backgroundColor: `var(--primary)`,
44944
+ backgroundColor: `var(--_primary)`,
44934
44945
  color: "white",
44935
44946
  "&:hover": {
44936
- backgroundColor: "var(--primary-hov)"
44947
+ backgroundColor: "var(--_primary-hov)"
44937
44948
  },
44938
44949
  width: "3rem",
44939
44950
  height: "3rem"
@@ -44967,7 +44978,7 @@ const V2OcrComponent = ({
44967
44978
  sx: {
44968
44979
  borderStyle: "dashed",
44969
44980
  "&:hover": {
44970
- borderColor: "var(--primary)",
44981
+ borderColor: "var(--_primary)",
44971
44982
  backgroundColor: "action.hover"
44972
44983
  }
44973
44984
  },
@@ -45105,7 +45116,7 @@ function DocumentReader({
45105
45116
  alignItems: "center"
45106
45117
  },
45107
45118
  children: /* @__PURE__ */ jsxs("div", {
45108
- className: `${styles$a["kit-gbc"]} ${styles$a[mode]} ${styles$a["without-shadow"]} ${styles$a["ocr"]}`,
45119
+ className: `${styles$b["kit-gbc"]} ${styles$b[mode]} ${styles$b["without-shadow"]} ${styles$b["ocr"]}`,
45109
45120
  children: [/* @__PURE__ */ jsx$1(k$2, {
45110
45121
  className: "kit-gbc-toastify-container",
45111
45122
  position: "top-center",
@@ -45121,9 +45132,9 @@ function DocumentReader({
45121
45132
  onSubmit: simpleHandleSubmit(onSendSubmitDocument),
45122
45133
  id: "document-reader",
45123
45134
  children: /* @__PURE__ */ jsxs("div", {
45124
- className: styles$a.sub,
45135
+ className: styles$b.sub,
45125
45136
  children: [/* @__PURE__ */ jsxs("div", {
45126
- className: styles$a["header-component"],
45137
+ className: styles$b["header-component"],
45127
45138
  children: [/* @__PURE__ */ jsx$1("h4", {
45128
45139
  children: "Lectura del documento"
45129
45140
  }), !lib$1(status) ? /* @__PURE__ */ jsx$1(StatusComponent, {
@@ -45157,7 +45168,7 @@ function DocumentReader({
45157
45168
  }), (source2 !== "secure_link" || validateErrorMessageOCR(message)) && showBackButton(status) && showBackButtonWhenError && /* @__PURE__ */ jsx$1(CustomButton, {
45158
45169
  type: "button",
45159
45170
  onClick: clearState,
45160
- className: styles$a["px-2"],
45171
+ className: styles$b["px-2"],
45161
45172
  children: "Volver a intentar"
45162
45173
  })]
45163
45174
  })
@@ -45197,9 +45208,9 @@ const fetchFaceMatch = async (faceMatch, selfie, inProduction, customHeaders) =>
45197
45208
  try {
45198
45209
  const res = await request2(parseReq);
45199
45210
  return res.data;
45200
- } catch (error) {
45201
- console.log(error);
45202
- throw error;
45211
+ } catch (error2) {
45212
+ console.log(error2);
45213
+ throw error2;
45203
45214
  }
45204
45215
  };
45205
45216
  const FaceMatchController = (dataFaceMatch, clientId, eventId, source2, authorize, inProduction, picBase64, setTakePic, countryCodeAllowed, validateVpn, successMessage, status_token2) => {
@@ -45275,11 +45286,11 @@ const FaceMatchController = (dataFaceMatch, clientId, eventId, source2, authoriz
45275
45286
  } = res2.data;
45276
45287
  message2 && setStatus(message2);
45277
45288
  setMessage(successMessage ? successMessage : "Comparaci\xF3n de rostro procesado con \xE9xito");
45278
- } catch (error) {
45289
+ } catch (error2) {
45279
45290
  let message2 = "";
45280
45291
  const {
45281
45292
  status: status2
45282
- } = (_a = error == null ? void 0 : error.response) != null ? _a : {
45293
+ } = (_a = error2 == null ? void 0 : error2.response) != null ? _a : {
45283
45294
  status: "Error desconocido"
45284
45295
  };
45285
45296
  await saveDataToDB({
@@ -45296,8 +45307,8 @@ const FaceMatchController = (dataFaceMatch, clientId, eventId, source2, authoriz
45296
45307
  clientId,
45297
45308
  geolocation
45298
45309
  });
45299
- if ((_d = (_c = error == null ? void 0 : error.response) == null ? void 0 : _c.data) == null ? void 0 : _d.message) {
45300
- message2 = error.response.data.message;
45310
+ if ((_d = (_c = error2 == null ? void 0 : error2.response) == null ? void 0 : _c.data) == null ? void 0 : _d.message) {
45311
+ message2 = error2.response.data.message;
45301
45312
  } else if (status2 === 500) {
45302
45313
  message2 = {
45303
45314
  limit_of_request
@@ -45306,10 +45317,10 @@ const FaceMatchController = (dataFaceMatch, clientId, eventId, source2, authoriz
45306
45317
  setIsLoading(null);
45307
45318
  setMessage(message2);
45308
45319
  setStatus(status2);
45309
- ErrorHandler(error);
45320
+ ErrorHandler(error2);
45310
45321
  }
45311
- } catch (error) {
45312
- console.log(error);
45322
+ } catch (error2) {
45323
+ console.log(error2);
45313
45324
  Q.error("Error - Verificar host con el proveedor");
45314
45325
  } finally {
45315
45326
  setIsLoading(false);
@@ -45368,7 +45379,7 @@ function FaceMatch({
45368
45379
  facingMode: "user"
45369
45380
  };
45370
45381
  return /* @__PURE__ */ jsxs("div", {
45371
- className: `${styles$a["kit-gbc"]} ${styles$a[mode]}`,
45382
+ className: `${styles$b["kit-gbc"]} ${styles$b[mode]}`,
45372
45383
  style: {
45373
45384
  padding: "16px"
45374
45385
  },
@@ -45387,11 +45398,11 @@ function FaceMatch({
45387
45398
  onSubmit: simpleHandleSubmit(onSendSubmitSelfie),
45388
45399
  id: "face-match",
45389
45400
  children: /* @__PURE__ */ jsxs("div", {
45390
- className: styles$a.sub,
45401
+ className: styles$b.sub,
45391
45402
  children: [showBackButton(status) && /* @__PURE__ */ jsx$1(BackButton, {
45392
45403
  action: clearState
45393
45404
  }), /* @__PURE__ */ jsxs("div", {
45394
- className: styles$a["header-component"],
45405
+ className: styles$b["header-component"],
45395
45406
  children: [/* @__PURE__ */ jsx$1("h4", {
45396
45407
  children: "Comparaci\xF3n de rostro"
45397
45408
  }), !lib$1(status) ? /* @__PURE__ */ jsx$1(StatusComponent, {
@@ -45401,11 +45412,11 @@ function FaceMatch({
45401
45412
  children: "Utilice la c\xE1mara de su dispositivo para capturar una selfie."
45402
45413
  })]
45403
45414
  }), lib$1(status) && /* @__PURE__ */ jsxs("div", {
45404
- className: styles$a["pics-container"],
45415
+ className: styles$b["pics-container"],
45405
45416
  children: [/* @__PURE__ */ jsx$1("div", {
45406
- className: styles$a["box-image"],
45417
+ className: styles$b["box-image"],
45407
45418
  children: lib$1(picBase64) ? /* @__PURE__ */ jsxs("div", {
45408
- className: `${styles$a["upload-document"]} ${styles$a["without-image"]}`,
45419
+ className: `${styles$b["upload-document"]} ${styles$b["without-image"]}`,
45409
45420
  style: {
45410
45421
  backgroundImage: `url(${dummyImage})`
45411
45422
  },
@@ -45413,19 +45424,19 @@ function FaceMatch({
45413
45424
  children: "Imagen no detectada"
45414
45425
  })]
45415
45426
  }) : /* @__PURE__ */ jsx$1("div", {
45416
- className: `${styles$a["upload-document"]} ${styles$a["bg-img-container"]}`,
45427
+ className: `${styles$b["upload-document"]} ${styles$b["bg-img-container"]}`,
45417
45428
  style: {
45418
45429
  backgroundImage: `url(${picBase64})`
45419
45430
  }
45420
45431
  })
45421
45432
  }), /* @__PURE__ */ jsx$1("div", {
45422
- className: styles$a.icon,
45433
+ className: styles$b.icon,
45423
45434
  children: /* @__PURE__ */ jsx$1(CompareArrowsIcon, {})
45424
45435
  }), /* @__PURE__ */ jsx$1("div", {
45425
45436
  children: !takePic ? /* @__PURE__ */ jsx$1("label", {
45426
- className: styles$a["box-image"],
45437
+ className: styles$b["box-image"],
45427
45438
  children: /* @__PURE__ */ jsxs("div", {
45428
- className: `${styles$a["upload-document"]} ${styles$a["without-image"]}`,
45439
+ className: `${styles$b["upload-document"]} ${styles$b["without-image"]}`,
45429
45440
  style: {
45430
45441
  backgroundImage: `url(${dummyImage})`
45431
45442
  },
@@ -45440,7 +45451,7 @@ function FaceMatch({
45440
45451
  })]
45441
45452
  })
45442
45453
  }) : /* @__PURE__ */ jsx$1("div", {
45443
- className: styles$a["box-image"],
45454
+ className: styles$b["box-image"],
45444
45455
  children: !url ? /* @__PURE__ */ jsx$1(Webcam, {
45445
45456
  ref: webcamRef,
45446
45457
  audio: false,
@@ -45451,7 +45462,7 @@ function FaceMatch({
45451
45462
  mirrored: true
45452
45463
  }) : /* @__PURE__ */ jsx$1(Fragment, {
45453
45464
  children: /* @__PURE__ */ jsx$1("div", {
45454
- className: `${styles$a["upload-document"]} ${styles$a["bg-img-container"]}`,
45465
+ className: `${styles$b["upload-document"]} ${styles$b["bg-img-container"]}`,
45455
45466
  style: {
45456
45467
  backgroundImage: `url(${url})`
45457
45468
  }
@@ -45589,11 +45600,11 @@ const LivenessController = (clientId, eventId, source2, inProduction, countryCod
45589
45600
  geolocation
45590
45601
  });
45591
45602
  }) : wrapAndSaveData();
45592
- } catch (error) {
45603
+ } catch (error2) {
45593
45604
  let message2 = "";
45594
45605
  const {
45595
45606
  status: status2
45596
- } = (_a = error == null ? void 0 : error.response) != null ? _a : {
45607
+ } = (_a = error2 == null ? void 0 : error2.response) != null ? _a : {
45597
45608
  status: "Error desconocido"
45598
45609
  };
45599
45610
  saveDataToDB({
@@ -45615,9 +45626,9 @@ const LivenessController = (clientId, eventId, source2, inProduction, countryCod
45615
45626
  }
45616
45627
  setMessage(message2);
45617
45628
  setStatus(status2);
45618
- ErrorHandler(error);
45629
+ ErrorHandler(error2);
45619
45630
  }
45620
- } catch (error) {
45631
+ } catch (error2) {
45621
45632
  Q.error("Error - Verificar host con el proveedor");
45622
45633
  }
45623
45634
  };
@@ -45656,10 +45667,15 @@ const LivenessController = (clientId, eventId, source2, inProduction, countryCod
45656
45667
  similarity
45657
45668
  };
45658
45669
  };
45659
- const primaryColor = getComputedStyle(document.documentElement).getPropertyValue("--primary");
45660
- const primaryColorHover = getComputedStyle(document.documentElement).getPropertyValue("--primary-hov");
45661
- const fontSize = getComputedStyle(document.documentElement).getPropertyValue("--font-size");
45662
- const fontFamily = getComputedStyle(document.documentElement).getPropertyValue("--font-family");
45670
+ function getCssVariables(containerEl) {
45671
+ const el = containerEl != null ? containerEl : document.documentElement;
45672
+ const style2 = getComputedStyle(el);
45673
+ const primaryColor = style2.getPropertyValue("--primary").trim() || "#1976d2";
45674
+ const primaryColorHover = style2.getPropertyValue("--primary-hov").trim() || "#2689ed";
45675
+ const fontSize = style2.getPropertyValue("--font-size").trim() || "14px";
45676
+ const fontFamily = style2.getPropertyValue("--font-family").trim() || "'Poppins', sans-serif";
45677
+ return { primaryColor, primaryColorHover, fontSize, fontFamily };
45678
+ }
45663
45679
  const CustomSpinnerProgress = () => {
45664
45680
  return /* @__PURE__ */ jsx$1("div", {
45665
45681
  className: "custom_spinner_container",
@@ -46823,6 +46839,7 @@ function LivenessCheck({
46823
46839
  validateVpn = false,
46824
46840
  successMessage
46825
46841
  }) {
46842
+ const containerRef = useRef(null);
46826
46843
  const {
46827
46844
  status,
46828
46845
  isLoading,
@@ -46837,6 +46854,12 @@ function LivenessCheck({
46837
46854
  useEffect(() => {
46838
46855
  const component = document.getElementsByTagName("face-liveness")[0];
46839
46856
  if (component) {
46857
+ const {
46858
+ primaryColor,
46859
+ primaryColorHover,
46860
+ fontFamily,
46861
+ fontSize
46862
+ } = getCssVariables(containerRef.current);
46840
46863
  component.settings = {
46841
46864
  locale: "es",
46842
46865
  videoRecording: true,
@@ -46860,7 +46883,8 @@ function LivenessCheck({
46860
46883
  }
46861
46884
  }, []);
46862
46885
  return /* @__PURE__ */ jsx$1("div", {
46863
- className: `${styles$a["kit-gbc"]} ${styles$a["liveness-container"]} ${styles$a[mode]} ${status === "NOT_VERIFY" && styles$a.error}`,
46886
+ ref: containerRef,
46887
+ className: `${styles$b["kit-gbc"]} ${styles$b["liveness-container"]} ${styles$b[mode]} ${status === "NOT_VERIFY" && styles$b.error}`,
46864
46888
  children: /* @__PURE__ */ jsxs("div", {
46865
46889
  id: "liveness-check",
46866
46890
  children: [/* @__PURE__ */ jsx$1(k$2, {
@@ -46875,7 +46899,7 @@ function LivenessCheck({
46875
46899
  draggable: true,
46876
46900
  pauseOnHover: true
46877
46901
  }), isLoading || countryCodeAllowed !== null && !countryCode ? /* @__PURE__ */ jsx$1(BackDropLoader, {}) : null, !lib$1(status) ? /* @__PURE__ */ jsxs("div", {
46878
- className: styles$a.sub,
46902
+ className: styles$b.sub,
46879
46903
  children: [showBackButton(status) && /* @__PURE__ */ jsx$1(BackButton, {
46880
46904
  action: clearState
46881
46905
  }), /* @__PURE__ */ jsx$1("h4", {
@@ -46885,9 +46909,9 @@ function LivenessCheck({
46885
46909
  message
46886
46910
  })]
46887
46911
  }) : lib$1(data2) && faceMatch || faceMatch === null ? /* @__PURE__ */ jsx$1("face-liveness", {
46888
- className: styles$a.liveness
46912
+ className: styles$b.liveness
46889
46913
  }) : /* @__PURE__ */ jsx$1(Box$1, {
46890
- className: `${styles$a["box-liveness"]} ${isMobile_1 && styles$a.responsive}`,
46914
+ className: `${styles$b["box-liveness"]} ${isMobile_1 && styles$b.responsive}`,
46891
46915
  children: similarity === 0 ? /* @__PURE__ */ jsxs(Box$1, {
46892
46916
  display: "flex",
46893
46917
  flexDirection: "column",
@@ -49330,7 +49354,7 @@ function GridEditSingleSelectCell(props) {
49330
49354
  row,
49331
49355
  colDef,
49332
49356
  hasFocus,
49333
- error,
49357
+ error: error2,
49334
49358
  onValueChange,
49335
49359
  initialOpen = rootProps.editMode === GridEditModes.Cell,
49336
49360
  getOptionLabel: getOptionLabelProp,
@@ -49416,7 +49440,7 @@ function GridEditSingleSelectCell(props) {
49416
49440
  MenuProps: _extends$2({
49417
49441
  onClose: handleClose
49418
49442
  }, MenuProps),
49419
- error,
49443
+ error: error2,
49420
49444
  native: isSelectNative,
49421
49445
  fullWidth: true
49422
49446
  }, other, otherBaseSelectProps, {
@@ -53371,14 +53395,14 @@ function GridFilterInputMultipleValue(props) {
53371
53395
  apiRef,
53372
53396
  focusElementRef,
53373
53397
  color: color2,
53374
- error,
53398
+ error: error2,
53375
53399
  helperText,
53376
53400
  size,
53377
53401
  variant
53378
53402
  } = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$h);
53379
53403
  const TextFieldProps = {
53380
53404
  color: color2,
53381
- error,
53405
+ error: error2,
53382
53406
  helperText,
53383
53407
  size,
53384
53408
  variant
@@ -53441,7 +53465,7 @@ function GridFilterInputMultipleSingleSelect(props) {
53441
53465
  apiRef,
53442
53466
  focusElementRef,
53443
53467
  color: color2,
53444
- error,
53468
+ error: error2,
53445
53469
  helperText,
53446
53470
  size,
53447
53471
  variant = "standard",
@@ -53450,7 +53474,7 @@ function GridFilterInputMultipleSingleSelect(props) {
53450
53474
  } = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$g);
53451
53475
  const TextFieldProps = {
53452
53476
  color: color2,
53453
- error,
53477
+ error: error2,
53454
53478
  helperText,
53455
53479
  size,
53456
53480
  variant
@@ -58550,10 +58574,10 @@ const useGridCellEditing = (apiRef, props) => {
58550
58574
  }
58551
58575
  const editingState = gridEditRowsStateSelector(apiRef.current.state);
58552
58576
  const {
58553
- error,
58577
+ error: error2,
58554
58578
  isProcessingProps
58555
58579
  } = editingState[id][field];
58556
- if (error || isProcessingProps) {
58580
+ if (error2 || isProcessingProps) {
58557
58581
  prevCellModesModel.current[id][field].mode = GridCellModes.Edit;
58558
58582
  updateFieldInCellModesModel(id, field, {
58559
58583
  mode: GridCellModes.Edit
@@ -63098,7 +63122,7 @@ function BulkVerification({
63098
63122
  copyFunction
63099
63123
  } = BlackListController(clientId, authorize, inProduction, source2, eventId, countryCodeAllowed, validateVpn, successMessage, alertMessage, dataBulkVerification);
63100
63124
  return /* @__PURE__ */ jsxs("div", {
63101
- className: `${styles$a["kit-gbc"]} ${styles$a[mode]}`,
63125
+ className: `${styles$b["kit-gbc"]} ${styles$b[mode]}`,
63102
63126
  style: {
63103
63127
  padding: "16px"
63104
63128
  },
@@ -63118,11 +63142,11 @@ function BulkVerification({
63118
63142
  onSubmit: handleSubmitCsv(onSubmitCsv),
63119
63143
  id: "bulkverification",
63120
63144
  children: /* @__PURE__ */ jsxs("div", {
63121
- className: styles$a.sub,
63145
+ className: styles$b.sub,
63122
63146
  children: [showBackButton(status) && /* @__PURE__ */ jsx$1(BackButton, {
63123
63147
  action: clearState
63124
63148
  }), /* @__PURE__ */ jsxs("div", {
63125
- className: styles$a["header-component"],
63149
+ className: styles$b["header-component"],
63126
63150
  children: [/* @__PURE__ */ jsx$1("h4", {
63127
63151
  children: "Lista de sanciones y PEP's"
63128
63152
  }), !lib$1(status) ? /* @__PURE__ */ jsxs(Box$1, {
@@ -63130,7 +63154,7 @@ function BulkVerification({
63130
63154
  status,
63131
63155
  message
63132
63156
  }), batchData.batchSize && /* @__PURE__ */ jsx$1(Stack$1, {
63133
- className: styles$a["alert-container"],
63157
+ className: styles$b["alert-container"],
63134
63158
  children: /* @__PURE__ */ jsxs(Alert$1, {
63135
63159
  severity: `${batchData.batchSize != 0 ? "success" : "warning"}`,
63136
63160
  children: [/* @__PURE__ */ jsx$1(AlertTitle$1, {
@@ -63139,7 +63163,7 @@ function BulkVerification({
63139
63163
  },
63140
63164
  children: batchData.batchSize !== 0 ? `\xA1Procesando ${batchData.batchSize} registros!` : `\xA1Se detectaron ${batchData.batchSize} registros!`
63141
63165
  }), batchData.batchSize !== 0 && /* @__PURE__ */ jsxs("div", {
63142
- className: styles$a["copy-button-container"],
63166
+ className: styles$b["copy-button-container"],
63143
63167
  onClick: () => copyFunction(batchData.id),
63144
63168
  children: [/* @__PURE__ */ jsx$1(Typography$1, {
63145
63169
  variant: "body2",
@@ -63152,9 +63176,9 @@ function BulkVerification({
63152
63176
  children: "Suba un archivo CSV para la verificaci\xF3n masiva en las listas de sanciones."
63153
63177
  })]
63154
63178
  }), lib$1(status) && /* @__PURE__ */ jsx$1("div", {
63155
- className: styles$a["wrap-drag-and-drop-file"],
63179
+ className: styles$b["wrap-drag-and-drop-file"],
63156
63180
  children: /* @__PURE__ */ jsxs("label", {
63157
- className: styles$a["upload-document"],
63181
+ className: styles$b["upload-document"],
63158
63182
  style: {
63159
63183
  display: "flex"
63160
63184
  },