gbc-kyc-kit 3.3.0 → 3.3.2

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);
@@ -18549,14 +18549,14 @@ const sub = "_sub_hz5b4_182";
18549
18549
  const ready = "_ready_hz5b4_204";
18550
18550
  const front = "_front_hz5b4_204";
18551
18551
  const back = "_back_hz5b4_98";
18552
- const icon = "_icon_hz5b4_333";
18552
+ const icon$1 = "_icon_hz5b4_333";
18553
18553
  const accordion = "_accordion_hz5b4_400";
18554
18554
  const description = "_description_hz5b4_404";
18555
18555
  const birth_place_section = "_birth_place_section_hz5b4_418";
18556
18556
  const authority = "_authority_hz5b4_419";
18557
18557
  const others = "_others_hz5b4_420";
18558
18558
  const dark$1 = "_dark_hz5b4_433";
18559
- var styles$a = {
18559
+ var styles$b = {
18560
18560
  "kit-gbc": "_kit-gbc_hz5b4_2",
18561
18561
  "px-2": "_px-2_hz5b4_32",
18562
18562
  "m-0": "_m-0_hz5b4_36",
@@ -18586,7 +18586,7 @@ var styles$a = {
18586
18586
  "box-image": "_box-image_hz5b4_258",
18587
18587
  "without-image": "_without-image_hz5b4_318",
18588
18588
  "bg-img-container": "_bg-img-container_hz5b4_318",
18589
- icon,
18589
+ icon: icon$1,
18590
18590
  "detail-component": "_detail-component_hz5b4_338",
18591
18591
  "country-select": "_country-select_hz5b4_361",
18592
18592
  accordion,
@@ -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,13 @@ 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)",
44735
+ opacity: 0.8
44724
44736
  },
44725
44737
  width: "3rem",
44726
44738
  height: "3rem"
@@ -44754,7 +44766,7 @@ const V2OcrComponent = ({
44754
44766
  sx: {
44755
44767
  borderStyle: "dashed",
44756
44768
  "&:hover": {
44757
- borderColor: "var(--primary)",
44769
+ borderColor: "var(--_primary)",
44758
44770
  backgroundColor: "action.hover"
44759
44771
  }
44760
44772
  },
@@ -44863,12 +44875,12 @@ const V2OcrComponent = ({
44863
44875
  },
44864
44876
  children: isInitializing ? "Inicializando c\xE1mara..." : "Cargando..."
44865
44877
  })]
44866
- }), error && /* @__PURE__ */ jsxs(Box$1, {
44878
+ }), error2 && /* @__PURE__ */ jsxs(Box$1, {
44867
44879
  className: styles["error-overlay"],
44868
44880
  children: [/* @__PURE__ */ jsx$1(Typography$1, {
44869
44881
  variant: "body1",
44870
44882
  gutterBottom: true,
44871
- children: error
44883
+ children: error2
44872
44884
  }), /* @__PURE__ */ jsx$1(Box$1, {
44873
44885
  sx: {
44874
44886
  display: "flex",
@@ -44928,12 +44940,13 @@ const V2OcrComponent = ({
44928
44940
  children: /* @__PURE__ */ jsx$1(FlipCameraIos, {})
44929
44941
  }), /* @__PURE__ */ jsx$1(MUIIconButton, {
44930
44942
  onClick: capturePhoto,
44931
- disabled: isLoadingCamera || !!error,
44943
+ disabled: isLoadingCamera || !!error2,
44932
44944
  sx: {
44933
- backgroundColor: `var(--primary)`,
44945
+ backgroundColor: `var(--_primary)`,
44934
44946
  color: "white",
44935
44947
  "&:hover": {
44936
- backgroundColor: "var(--primary-hov)"
44948
+ backgroundColor: "var(--_primary)",
44949
+ opacity: 0.8
44937
44950
  },
44938
44951
  width: "3rem",
44939
44952
  height: "3rem"
@@ -44967,7 +44980,7 @@ const V2OcrComponent = ({
44967
44980
  sx: {
44968
44981
  borderStyle: "dashed",
44969
44982
  "&:hover": {
44970
- borderColor: "var(--primary)",
44983
+ borderColor: "var(--_primary)",
44971
44984
  backgroundColor: "action.hover"
44972
44985
  }
44973
44986
  },
@@ -45105,7 +45118,7 @@ function DocumentReader({
45105
45118
  alignItems: "center"
45106
45119
  },
45107
45120
  children: /* @__PURE__ */ jsxs("div", {
45108
- className: `${styles$a["kit-gbc"]} ${styles$a[mode]} ${styles$a["without-shadow"]} ${styles$a["ocr"]}`,
45121
+ className: `${styles$b["kit-gbc"]} ${styles$b[mode]} ${styles$b["without-shadow"]} ${styles$b["ocr"]}`,
45109
45122
  children: [/* @__PURE__ */ jsx$1(k$2, {
45110
45123
  className: "kit-gbc-toastify-container",
45111
45124
  position: "top-center",
@@ -45121,9 +45134,9 @@ function DocumentReader({
45121
45134
  onSubmit: simpleHandleSubmit(onSendSubmitDocument),
45122
45135
  id: "document-reader",
45123
45136
  children: /* @__PURE__ */ jsxs("div", {
45124
- className: styles$a.sub,
45137
+ className: styles$b.sub,
45125
45138
  children: [/* @__PURE__ */ jsxs("div", {
45126
- className: styles$a["header-component"],
45139
+ className: styles$b["header-component"],
45127
45140
  children: [/* @__PURE__ */ jsx$1("h4", {
45128
45141
  children: "Lectura del documento"
45129
45142
  }), !lib$1(status) ? /* @__PURE__ */ jsx$1(StatusComponent, {
@@ -45157,7 +45170,7 @@ function DocumentReader({
45157
45170
  }), (source2 !== "secure_link" || validateErrorMessageOCR(message)) && showBackButton(status) && showBackButtonWhenError && /* @__PURE__ */ jsx$1(CustomButton, {
45158
45171
  type: "button",
45159
45172
  onClick: clearState,
45160
- className: styles$a["px-2"],
45173
+ className: styles$b["px-2"],
45161
45174
  children: "Volver a intentar"
45162
45175
  })]
45163
45176
  })
@@ -45197,9 +45210,9 @@ const fetchFaceMatch = async (faceMatch, selfie, inProduction, customHeaders) =>
45197
45210
  try {
45198
45211
  const res = await request2(parseReq);
45199
45212
  return res.data;
45200
- } catch (error) {
45201
- console.log(error);
45202
- throw error;
45213
+ } catch (error2) {
45214
+ console.log(error2);
45215
+ throw error2;
45203
45216
  }
45204
45217
  };
45205
45218
  const FaceMatchController = (dataFaceMatch, clientId, eventId, source2, authorize, inProduction, picBase64, setTakePic, countryCodeAllowed, validateVpn, successMessage, status_token2) => {
@@ -45275,11 +45288,11 @@ const FaceMatchController = (dataFaceMatch, clientId, eventId, source2, authoriz
45275
45288
  } = res2.data;
45276
45289
  message2 && setStatus(message2);
45277
45290
  setMessage(successMessage ? successMessage : "Comparaci\xF3n de rostro procesado con \xE9xito");
45278
- } catch (error) {
45291
+ } catch (error2) {
45279
45292
  let message2 = "";
45280
45293
  const {
45281
45294
  status: status2
45282
- } = (_a = error == null ? void 0 : error.response) != null ? _a : {
45295
+ } = (_a = error2 == null ? void 0 : error2.response) != null ? _a : {
45283
45296
  status: "Error desconocido"
45284
45297
  };
45285
45298
  await saveDataToDB({
@@ -45296,8 +45309,8 @@ const FaceMatchController = (dataFaceMatch, clientId, eventId, source2, authoriz
45296
45309
  clientId,
45297
45310
  geolocation
45298
45311
  });
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;
45312
+ if ((_d = (_c = error2 == null ? void 0 : error2.response) == null ? void 0 : _c.data) == null ? void 0 : _d.message) {
45313
+ message2 = error2.response.data.message;
45301
45314
  } else if (status2 === 500) {
45302
45315
  message2 = {
45303
45316
  limit_of_request
@@ -45306,10 +45319,10 @@ const FaceMatchController = (dataFaceMatch, clientId, eventId, source2, authoriz
45306
45319
  setIsLoading(null);
45307
45320
  setMessage(message2);
45308
45321
  setStatus(status2);
45309
- ErrorHandler(error);
45322
+ ErrorHandler(error2);
45310
45323
  }
45311
- } catch (error) {
45312
- console.log(error);
45324
+ } catch (error2) {
45325
+ console.log(error2);
45313
45326
  Q.error("Error - Verificar host con el proveedor");
45314
45327
  } finally {
45315
45328
  setIsLoading(false);
@@ -45368,7 +45381,7 @@ function FaceMatch({
45368
45381
  facingMode: "user"
45369
45382
  };
45370
45383
  return /* @__PURE__ */ jsxs("div", {
45371
- className: `${styles$a["kit-gbc"]} ${styles$a[mode]}`,
45384
+ className: `${styles$b["kit-gbc"]} ${styles$b[mode]}`,
45372
45385
  style: {
45373
45386
  padding: "16px"
45374
45387
  },
@@ -45387,11 +45400,11 @@ function FaceMatch({
45387
45400
  onSubmit: simpleHandleSubmit(onSendSubmitSelfie),
45388
45401
  id: "face-match",
45389
45402
  children: /* @__PURE__ */ jsxs("div", {
45390
- className: styles$a.sub,
45403
+ className: styles$b.sub,
45391
45404
  children: [showBackButton(status) && /* @__PURE__ */ jsx$1(BackButton, {
45392
45405
  action: clearState
45393
45406
  }), /* @__PURE__ */ jsxs("div", {
45394
- className: styles$a["header-component"],
45407
+ className: styles$b["header-component"],
45395
45408
  children: [/* @__PURE__ */ jsx$1("h4", {
45396
45409
  children: "Comparaci\xF3n de rostro"
45397
45410
  }), !lib$1(status) ? /* @__PURE__ */ jsx$1(StatusComponent, {
@@ -45401,11 +45414,11 @@ function FaceMatch({
45401
45414
  children: "Utilice la c\xE1mara de su dispositivo para capturar una selfie."
45402
45415
  })]
45403
45416
  }), lib$1(status) && /* @__PURE__ */ jsxs("div", {
45404
- className: styles$a["pics-container"],
45417
+ className: styles$b["pics-container"],
45405
45418
  children: [/* @__PURE__ */ jsx$1("div", {
45406
- className: styles$a["box-image"],
45419
+ className: styles$b["box-image"],
45407
45420
  children: lib$1(picBase64) ? /* @__PURE__ */ jsxs("div", {
45408
- className: `${styles$a["upload-document"]} ${styles$a["without-image"]}`,
45421
+ className: `${styles$b["upload-document"]} ${styles$b["without-image"]}`,
45409
45422
  style: {
45410
45423
  backgroundImage: `url(${dummyImage})`
45411
45424
  },
@@ -45413,19 +45426,19 @@ function FaceMatch({
45413
45426
  children: "Imagen no detectada"
45414
45427
  })]
45415
45428
  }) : /* @__PURE__ */ jsx$1("div", {
45416
- className: `${styles$a["upload-document"]} ${styles$a["bg-img-container"]}`,
45429
+ className: `${styles$b["upload-document"]} ${styles$b["bg-img-container"]}`,
45417
45430
  style: {
45418
45431
  backgroundImage: `url(${picBase64})`
45419
45432
  }
45420
45433
  })
45421
45434
  }), /* @__PURE__ */ jsx$1("div", {
45422
- className: styles$a.icon,
45435
+ className: styles$b.icon,
45423
45436
  children: /* @__PURE__ */ jsx$1(CompareArrowsIcon, {})
45424
45437
  }), /* @__PURE__ */ jsx$1("div", {
45425
45438
  children: !takePic ? /* @__PURE__ */ jsx$1("label", {
45426
- className: styles$a["box-image"],
45439
+ className: styles$b["box-image"],
45427
45440
  children: /* @__PURE__ */ jsxs("div", {
45428
- className: `${styles$a["upload-document"]} ${styles$a["without-image"]}`,
45441
+ className: `${styles$b["upload-document"]} ${styles$b["without-image"]}`,
45429
45442
  style: {
45430
45443
  backgroundImage: `url(${dummyImage})`
45431
45444
  },
@@ -45440,7 +45453,7 @@ function FaceMatch({
45440
45453
  })]
45441
45454
  })
45442
45455
  }) : /* @__PURE__ */ jsx$1("div", {
45443
- className: styles$a["box-image"],
45456
+ className: styles$b["box-image"],
45444
45457
  children: !url ? /* @__PURE__ */ jsx$1(Webcam, {
45445
45458
  ref: webcamRef,
45446
45459
  audio: false,
@@ -45451,7 +45464,7 @@ function FaceMatch({
45451
45464
  mirrored: true
45452
45465
  }) : /* @__PURE__ */ jsx$1(Fragment, {
45453
45466
  children: /* @__PURE__ */ jsx$1("div", {
45454
- className: `${styles$a["upload-document"]} ${styles$a["bg-img-container"]}`,
45467
+ className: `${styles$b["upload-document"]} ${styles$b["bg-img-container"]}`,
45455
45468
  style: {
45456
45469
  backgroundImage: `url(${url})`
45457
45470
  }
@@ -45589,11 +45602,11 @@ const LivenessController = (clientId, eventId, source2, inProduction, countryCod
45589
45602
  geolocation
45590
45603
  });
45591
45604
  }) : wrapAndSaveData();
45592
- } catch (error) {
45605
+ } catch (error2) {
45593
45606
  let message2 = "";
45594
45607
  const {
45595
45608
  status: status2
45596
- } = (_a = error == null ? void 0 : error.response) != null ? _a : {
45609
+ } = (_a = error2 == null ? void 0 : error2.response) != null ? _a : {
45597
45610
  status: "Error desconocido"
45598
45611
  };
45599
45612
  saveDataToDB({
@@ -45615,9 +45628,9 @@ const LivenessController = (clientId, eventId, source2, inProduction, countryCod
45615
45628
  }
45616
45629
  setMessage(message2);
45617
45630
  setStatus(status2);
45618
- ErrorHandler(error);
45631
+ ErrorHandler(error2);
45619
45632
  }
45620
- } catch (error) {
45633
+ } catch (error2) {
45621
45634
  Q.error("Error - Verificar host con el proveedor");
45622
45635
  }
45623
45636
  };
@@ -45656,10 +45669,15 @@ const LivenessController = (clientId, eventId, source2, inProduction, countryCod
45656
45669
  similarity
45657
45670
  };
45658
45671
  };
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");
45672
+ function getCssVariables(containerEl) {
45673
+ const el = containerEl != null ? containerEl : document.documentElement;
45674
+ const style2 = getComputedStyle(el);
45675
+ const primaryColor = style2.getPropertyValue("--primary").trim() || "#1976d2";
45676
+ const primaryColorHover = style2.getPropertyValue("--primary-hov").trim() || "#2689ed";
45677
+ const fontSize = style2.getPropertyValue("--font-size").trim() || "14px";
45678
+ const fontFamily = style2.getPropertyValue("--font-family").trim() || "'Poppins', sans-serif";
45679
+ return { primaryColor, primaryColorHover, fontSize, fontFamily };
45680
+ }
45663
45681
  const CustomSpinnerProgress = () => {
45664
45682
  return /* @__PURE__ */ jsx$1("div", {
45665
45683
  className: "custom_spinner_container",
@@ -46823,6 +46841,7 @@ function LivenessCheck({
46823
46841
  validateVpn = false,
46824
46842
  successMessage
46825
46843
  }) {
46844
+ const containerRef = useRef(null);
46826
46845
  const {
46827
46846
  status,
46828
46847
  isLoading,
@@ -46837,6 +46856,12 @@ function LivenessCheck({
46837
46856
  useEffect(() => {
46838
46857
  const component = document.getElementsByTagName("face-liveness")[0];
46839
46858
  if (component) {
46859
+ const {
46860
+ primaryColor,
46861
+ primaryColorHover,
46862
+ fontFamily,
46863
+ fontSize
46864
+ } = getCssVariables(containerRef.current);
46840
46865
  component.settings = {
46841
46866
  locale: "es",
46842
46867
  videoRecording: true,
@@ -46860,7 +46885,8 @@ function LivenessCheck({
46860
46885
  }
46861
46886
  }, []);
46862
46887
  return /* @__PURE__ */ jsx$1("div", {
46863
- className: `${styles$a["kit-gbc"]} ${styles$a["liveness-container"]} ${styles$a[mode]} ${status === "NOT_VERIFY" && styles$a.error}`,
46888
+ ref: containerRef,
46889
+ className: `${styles$b["kit-gbc"]} ${styles$b["liveness-container"]} ${styles$b[mode]} ${status === "NOT_VERIFY" && styles$b.error}`,
46864
46890
  children: /* @__PURE__ */ jsxs("div", {
46865
46891
  id: "liveness-check",
46866
46892
  children: [/* @__PURE__ */ jsx$1(k$2, {
@@ -46875,7 +46901,7 @@ function LivenessCheck({
46875
46901
  draggable: true,
46876
46902
  pauseOnHover: true
46877
46903
  }), isLoading || countryCodeAllowed !== null && !countryCode ? /* @__PURE__ */ jsx$1(BackDropLoader, {}) : null, !lib$1(status) ? /* @__PURE__ */ jsxs("div", {
46878
- className: styles$a.sub,
46904
+ className: styles$b.sub,
46879
46905
  children: [showBackButton(status) && /* @__PURE__ */ jsx$1(BackButton, {
46880
46906
  action: clearState
46881
46907
  }), /* @__PURE__ */ jsx$1("h4", {
@@ -46885,9 +46911,9 @@ function LivenessCheck({
46885
46911
  message
46886
46912
  })]
46887
46913
  }) : lib$1(data2) && faceMatch || faceMatch === null ? /* @__PURE__ */ jsx$1("face-liveness", {
46888
- className: styles$a.liveness
46914
+ className: styles$b.liveness
46889
46915
  }) : /* @__PURE__ */ jsx$1(Box$1, {
46890
- className: `${styles$a["box-liveness"]} ${isMobile_1 && styles$a.responsive}`,
46916
+ className: `${styles$b["box-liveness"]} ${isMobile_1 && styles$b.responsive}`,
46891
46917
  children: similarity === 0 ? /* @__PURE__ */ jsxs(Box$1, {
46892
46918
  display: "flex",
46893
46919
  flexDirection: "column",
@@ -49330,7 +49356,7 @@ function GridEditSingleSelectCell(props) {
49330
49356
  row,
49331
49357
  colDef,
49332
49358
  hasFocus,
49333
- error,
49359
+ error: error2,
49334
49360
  onValueChange,
49335
49361
  initialOpen = rootProps.editMode === GridEditModes.Cell,
49336
49362
  getOptionLabel: getOptionLabelProp,
@@ -49416,7 +49442,7 @@ function GridEditSingleSelectCell(props) {
49416
49442
  MenuProps: _extends$2({
49417
49443
  onClose: handleClose
49418
49444
  }, MenuProps),
49419
- error,
49445
+ error: error2,
49420
49446
  native: isSelectNative,
49421
49447
  fullWidth: true
49422
49448
  }, other, otherBaseSelectProps, {
@@ -53371,14 +53397,14 @@ function GridFilterInputMultipleValue(props) {
53371
53397
  apiRef,
53372
53398
  focusElementRef,
53373
53399
  color: color2,
53374
- error,
53400
+ error: error2,
53375
53401
  helperText,
53376
53402
  size,
53377
53403
  variant
53378
53404
  } = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$h);
53379
53405
  const TextFieldProps = {
53380
53406
  color: color2,
53381
- error,
53407
+ error: error2,
53382
53408
  helperText,
53383
53409
  size,
53384
53410
  variant
@@ -53441,7 +53467,7 @@ function GridFilterInputMultipleSingleSelect(props) {
53441
53467
  apiRef,
53442
53468
  focusElementRef,
53443
53469
  color: color2,
53444
- error,
53470
+ error: error2,
53445
53471
  helperText,
53446
53472
  size,
53447
53473
  variant = "standard",
@@ -53450,7 +53476,7 @@ function GridFilterInputMultipleSingleSelect(props) {
53450
53476
  } = props, other = _objectWithoutPropertiesLoose$1(props, _excluded$g);
53451
53477
  const TextFieldProps = {
53452
53478
  color: color2,
53453
- error,
53479
+ error: error2,
53454
53480
  helperText,
53455
53481
  size,
53456
53482
  variant
@@ -58550,10 +58576,10 @@ const useGridCellEditing = (apiRef, props) => {
58550
58576
  }
58551
58577
  const editingState = gridEditRowsStateSelector(apiRef.current.state);
58552
58578
  const {
58553
- error,
58579
+ error: error2,
58554
58580
  isProcessingProps
58555
58581
  } = editingState[id][field];
58556
- if (error || isProcessingProps) {
58582
+ if (error2 || isProcessingProps) {
58557
58583
  prevCellModesModel.current[id][field].mode = GridCellModes.Edit;
58558
58584
  updateFieldInCellModesModel(id, field, {
58559
58585
  mode: GridCellModes.Edit
@@ -63098,7 +63124,7 @@ function BulkVerification({
63098
63124
  copyFunction
63099
63125
  } = BlackListController(clientId, authorize, inProduction, source2, eventId, countryCodeAllowed, validateVpn, successMessage, alertMessage, dataBulkVerification);
63100
63126
  return /* @__PURE__ */ jsxs("div", {
63101
- className: `${styles$a["kit-gbc"]} ${styles$a[mode]}`,
63127
+ className: `${styles$b["kit-gbc"]} ${styles$b[mode]}`,
63102
63128
  style: {
63103
63129
  padding: "16px"
63104
63130
  },
@@ -63118,11 +63144,11 @@ function BulkVerification({
63118
63144
  onSubmit: handleSubmitCsv(onSubmitCsv),
63119
63145
  id: "bulkverification",
63120
63146
  children: /* @__PURE__ */ jsxs("div", {
63121
- className: styles$a.sub,
63147
+ className: styles$b.sub,
63122
63148
  children: [showBackButton(status) && /* @__PURE__ */ jsx$1(BackButton, {
63123
63149
  action: clearState
63124
63150
  }), /* @__PURE__ */ jsxs("div", {
63125
- className: styles$a["header-component"],
63151
+ className: styles$b["header-component"],
63126
63152
  children: [/* @__PURE__ */ jsx$1("h4", {
63127
63153
  children: "Lista de sanciones y PEP's"
63128
63154
  }), !lib$1(status) ? /* @__PURE__ */ jsxs(Box$1, {
@@ -63130,7 +63156,7 @@ function BulkVerification({
63130
63156
  status,
63131
63157
  message
63132
63158
  }), batchData.batchSize && /* @__PURE__ */ jsx$1(Stack$1, {
63133
- className: styles$a["alert-container"],
63159
+ className: styles$b["alert-container"],
63134
63160
  children: /* @__PURE__ */ jsxs(Alert$1, {
63135
63161
  severity: `${batchData.batchSize != 0 ? "success" : "warning"}`,
63136
63162
  children: [/* @__PURE__ */ jsx$1(AlertTitle$1, {
@@ -63139,7 +63165,7 @@ function BulkVerification({
63139
63165
  },
63140
63166
  children: batchData.batchSize !== 0 ? `\xA1Procesando ${batchData.batchSize} registros!` : `\xA1Se detectaron ${batchData.batchSize} registros!`
63141
63167
  }), batchData.batchSize !== 0 && /* @__PURE__ */ jsxs("div", {
63142
- className: styles$a["copy-button-container"],
63168
+ className: styles$b["copy-button-container"],
63143
63169
  onClick: () => copyFunction(batchData.id),
63144
63170
  children: [/* @__PURE__ */ jsx$1(Typography$1, {
63145
63171
  variant: "body2",
@@ -63152,9 +63178,9 @@ function BulkVerification({
63152
63178
  children: "Suba un archivo CSV para la verificaci\xF3n masiva en las listas de sanciones."
63153
63179
  })]
63154
63180
  }), lib$1(status) && /* @__PURE__ */ jsx$1("div", {
63155
- className: styles$a["wrap-drag-and-drop-file"],
63181
+ className: styles$b["wrap-drag-and-drop-file"],
63156
63182
  children: /* @__PURE__ */ jsxs("label", {
63157
- className: styles$a["upload-document"],
63183
+ className: styles$b["upload-document"],
63158
63184
  style: {
63159
63185
  display: "flex"
63160
63186
  },