gbc-kyc-kit 1.9.3 → 1.10.0

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.
@@ -25222,7 +25222,7 @@ const internal_processStyles = (tag, processor) => {
25222
25222
  tag.__emotion_styles = processor(tag.__emotion_styles);
25223
25223
  }
25224
25224
  };
25225
- const _excluded$g = ["values", "unit", "step"];
25225
+ const _excluded$h = ["values", "unit", "step"];
25226
25226
  const sortBreakpointsValues = (values2) => {
25227
25227
  const breakpointsAsArray = Object.keys(values2).map((key) => ({
25228
25228
  key,
@@ -25246,7 +25246,7 @@ function createBreakpoints(breakpoints) {
25246
25246
  },
25247
25247
  unit = "px",
25248
25248
  step = 5
25249
- } = breakpoints, other = _objectWithoutPropertiesLoose(breakpoints, _excluded$g);
25249
+ } = breakpoints, other = _objectWithoutPropertiesLoose(breakpoints, _excluded$h);
25250
25250
  const sortedValues = sortBreakpointsValues(values2);
25251
25251
  const keys2 = Object.keys(sortedValues);
25252
25252
  function up(key) {
@@ -26148,14 +26148,14 @@ function unstable_createStyleFunctionSx() {
26148
26148
  const styleFunctionSx = unstable_createStyleFunctionSx();
26149
26149
  styleFunctionSx.filterProps = ["sx"];
26150
26150
  var styleFunctionSx$1 = styleFunctionSx;
26151
- const _excluded$f = ["breakpoints", "palette", "spacing", "shape"];
26151
+ const _excluded$g = ["breakpoints", "palette", "spacing", "shape"];
26152
26152
  function createTheme$1(options = {}, ...args) {
26153
26153
  const {
26154
26154
  breakpoints: breakpointsInput = {},
26155
26155
  palette: paletteInput = {},
26156
26156
  spacing: spacingInput,
26157
26157
  shape: shapeInput = {}
26158
- } = options, other = _objectWithoutPropertiesLoose(options, _excluded$f);
26158
+ } = options, other = _objectWithoutPropertiesLoose(options, _excluded$g);
26159
26159
  const breakpoints = createBreakpoints(breakpointsInput);
26160
26160
  const spacing = createSpacing(spacingInput);
26161
26161
  let muiTheme = deepmerge({
@@ -26189,7 +26189,7 @@ const systemDefaultTheme$1 = createTheme$1();
26189
26189
  function useTheme$1(defaultTheme2 = systemDefaultTheme$1) {
26190
26190
  return useTheme$2(defaultTheme2);
26191
26191
  }
26192
- const _excluded$e = ["sx"];
26192
+ const _excluded$f = ["sx"];
26193
26193
  const splitProps = (props) => {
26194
26194
  var _props$theme$unstable, _props$theme;
26195
26195
  const result = {
@@ -26209,7 +26209,7 @@ const splitProps = (props) => {
26209
26209
  function extendSxProp(props) {
26210
26210
  const {
26211
26211
  sx: inSx
26212
- } = props, other = _objectWithoutPropertiesLoose(props, _excluded$e);
26212
+ } = props, other = _objectWithoutPropertiesLoose(props, _excluded$f);
26213
26213
  const {
26214
26214
  systemProps,
26215
26215
  otherProps
@@ -26250,7 +26250,7 @@ function clsx() {
26250
26250
  (e2 = arguments[f2++]) && (t2 = r(e2)) && (n2 && (n2 += " "), n2 += t2);
26251
26251
  return n2;
26252
26252
  }
26253
- const _excluded$d = ["className", "component"];
26253
+ const _excluded$e = ["className", "component"];
26254
26254
  function createBox(options = {}) {
26255
26255
  const {
26256
26256
  themeId,
@@ -26266,7 +26266,7 @@ function createBox(options = {}) {
26266
26266
  const _extendSxProp = extendSxProp(inProps), {
26267
26267
  className,
26268
26268
  component = "div"
26269
- } = _extendSxProp, other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$d);
26269
+ } = _extendSxProp, other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$e);
26270
26270
  return /* @__PURE__ */ jsx(BoxRoot, _extends({
26271
26271
  as: component,
26272
26272
  ref,
@@ -26276,14 +26276,14 @@ function createBox(options = {}) {
26276
26276
  });
26277
26277
  return Box2;
26278
26278
  }
26279
- const _excluded$c = ["variant"];
26279
+ const _excluded$d = ["variant"];
26280
26280
  function isEmpty$1(string2) {
26281
26281
  return string2.length === 0;
26282
26282
  }
26283
26283
  function propsToClassKey(props) {
26284
26284
  const {
26285
26285
  variant
26286
- } = props, other = _objectWithoutPropertiesLoose(props, _excluded$c);
26286
+ } = props, other = _objectWithoutPropertiesLoose(props, _excluded$d);
26287
26287
  let classKey = variant || "";
26288
26288
  Object.keys(other).sort().forEach((key) => {
26289
26289
  if (key === "color") {
@@ -26294,7 +26294,7 @@ function propsToClassKey(props) {
26294
26294
  });
26295
26295
  return classKey;
26296
26296
  }
26297
- const _excluded$b = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
26297
+ const _excluded$c = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
26298
26298
  function isEmpty(obj) {
26299
26299
  return Object.keys(obj).length === 0;
26300
26300
  }
@@ -26388,7 +26388,7 @@ function createStyled2(input = {}) {
26388
26388
  skipVariantsResolver: inputSkipVariantsResolver,
26389
26389
  skipSx: inputSkipSx,
26390
26390
  overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))
26391
- } = inputOptions, options = _objectWithoutPropertiesLoose(inputOptions, _excluded$b);
26391
+ } = inputOptions, options = _objectWithoutPropertiesLoose(inputOptions, _excluded$c);
26392
26392
  const skipVariantsResolver = inputSkipVariantsResolver !== void 0 ? inputSkipVariantsResolver : componentSlot && componentSlot !== "Root" && componentSlot !== "root" || false;
26393
26393
  const skipSx = inputSkipSx || false;
26394
26394
  let label;
@@ -26661,7 +26661,7 @@ function createMixins(breakpoints, mixins) {
26661
26661
  }
26662
26662
  }, mixins);
26663
26663
  }
26664
- const _excluded$a = ["mode", "contrastThreshold", "tonalOffset"];
26664
+ const _excluded$b = ["mode", "contrastThreshold", "tonalOffset"];
26665
26665
  const light = {
26666
26666
  text: {
26667
26667
  primary: "rgba(0, 0, 0, 0.87)",
@@ -26815,7 +26815,7 @@ function createPalette(palette) {
26815
26815
  mode = "light",
26816
26816
  contrastThreshold = 3,
26817
26817
  tonalOffset = 0.2
26818
- } = palette, other = _objectWithoutPropertiesLoose(palette, _excluded$a);
26818
+ } = palette, other = _objectWithoutPropertiesLoose(palette, _excluded$b);
26819
26819
  const primary = palette.primary || getDefaultPrimary(mode);
26820
26820
  const secondary = palette.secondary || getDefaultSecondary(mode);
26821
26821
  const error = palette.error || getDefaultError(mode);
@@ -26892,7 +26892,7 @@ function createPalette(palette) {
26892
26892
  }, modes[mode]), other);
26893
26893
  return paletteOutput;
26894
26894
  }
26895
- const _excluded$9 = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
26895
+ const _excluded$a = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
26896
26896
  function round$2(value) {
26897
26897
  return Math.round(value * 1e5) / 1e5;
26898
26898
  }
@@ -26911,7 +26911,7 @@ function createTypography(palette, typography) {
26911
26911
  htmlFontSize = 16,
26912
26912
  allVariants,
26913
26913
  pxToRem: pxToRem2
26914
- } = _ref, other = _objectWithoutPropertiesLoose(_ref, _excluded$9);
26914
+ } = _ref, other = _objectWithoutPropertiesLoose(_ref, _excluded$a);
26915
26915
  const coef = fontSize2 / 14;
26916
26916
  const pxToRem = pxToRem2 || ((size) => `${size / htmlFontSize * coef}rem`);
26917
26917
  const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends({
@@ -26965,7 +26965,7 @@ function createShadow(...px) {
26965
26965
  }
26966
26966
  const shadows = ["none", createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
26967
26967
  var shadows$1 = shadows;
26968
- const _excluded$8 = ["duration", "easing", "delay"];
26968
+ const _excluded$9 = ["duration", "easing", "delay"];
26969
26969
  const easing = {
26970
26970
  easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
26971
26971
  easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
@@ -27000,7 +27000,7 @@ function createTransitions(inputTransitions) {
27000
27000
  easing: easingOption = mergedEasing.easeInOut,
27001
27001
  delay = 0
27002
27002
  } = options;
27003
- _objectWithoutPropertiesLoose(options, _excluded$8);
27003
+ _objectWithoutPropertiesLoose(options, _excluded$9);
27004
27004
  return (Array.isArray(props) ? props : [props]).map((animatedProp) => `${animatedProp} ${typeof durationOption === "string" ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === "string" ? delay : formatMs(delay)}`).join(",");
27005
27005
  };
27006
27006
  return _extends({
@@ -27022,14 +27022,14 @@ const zIndex = {
27022
27022
  tooltip: 1500
27023
27023
  };
27024
27024
  var zIndex$1 = zIndex;
27025
- const _excluded$7 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
27025
+ const _excluded$8 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
27026
27026
  function createTheme(options = {}, ...args) {
27027
27027
  const {
27028
27028
  mixins: mixinsInput = {},
27029
27029
  palette: paletteInput = {},
27030
27030
  transitions: transitionsInput = {},
27031
27031
  typography: typographyInput = {}
27032
- } = options, other = _objectWithoutPropertiesLoose(options, _excluded$7);
27032
+ } = options, other = _objectWithoutPropertiesLoose(options, _excluded$8);
27033
27033
  if (options.vars) {
27034
27034
  throw new Error(formatMuiErrorMessage(18));
27035
27035
  }
@@ -27082,8 +27082,8 @@ function getSvgIconUtilityClass(slot) {
27082
27082
  return generateUtilityClass("MuiSvgIcon", slot);
27083
27083
  }
27084
27084
  generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
27085
- const _excluded$6 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
27086
- const useUtilityClasses$2 = (ownerState) => {
27085
+ const _excluded$7 = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
27086
+ const useUtilityClasses$3 = (ownerState) => {
27087
27087
  const {
27088
27088
  color: color2,
27089
27089
  fontSize: fontSize2,
@@ -27146,7 +27146,7 @@ const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref)
27146
27146
  inheritViewBox = false,
27147
27147
  titleAccess,
27148
27148
  viewBox = "0 0 24 24"
27149
- } = props, other = _objectWithoutPropertiesLoose(props, _excluded$6);
27149
+ } = props, other = _objectWithoutPropertiesLoose(props, _excluded$7);
27150
27150
  const hasSvgAsChild = /* @__PURE__ */ React.isValidElement(children) && children.type === "svg";
27151
27151
  const ownerState = _extends({}, props, {
27152
27152
  color: color2,
@@ -27161,7 +27161,7 @@ const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref)
27161
27161
  if (!inheritViewBox) {
27162
27162
  more.viewBox = viewBox;
27163
27163
  }
27164
- const classes = useUtilityClasses$2(ownerState);
27164
+ const classes = useUtilityClasses$3(ownerState);
27165
27165
  return /* @__PURE__ */ jsxs(SvgIconRoot, _extends({
27166
27166
  as: component,
27167
27167
  className: clsx(classes.root, className),
@@ -27476,6 +27476,115 @@ function getTransitionProps(props, options) {
27476
27476
  delay: style2.transitionDelay
27477
27477
  };
27478
27478
  }
27479
+ function getTypographyUtilityClass(slot) {
27480
+ return generateUtilityClass("MuiTypography", slot);
27481
+ }
27482
+ generateUtilityClasses("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
27483
+ const _excluded$6 = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
27484
+ const useUtilityClasses$2 = (ownerState) => {
27485
+ const {
27486
+ align,
27487
+ gutterBottom,
27488
+ noWrap,
27489
+ paragraph,
27490
+ variant,
27491
+ classes
27492
+ } = ownerState;
27493
+ const slots = {
27494
+ root: ["root", variant, ownerState.align !== "inherit" && `align${capitalize(align)}`, gutterBottom && "gutterBottom", noWrap && "noWrap", paragraph && "paragraph"]
27495
+ };
27496
+ return composeClasses(slots, getTypographyUtilityClass, classes);
27497
+ };
27498
+ const TypographyRoot = styled$1("span", {
27499
+ name: "MuiTypography",
27500
+ slot: "Root",
27501
+ overridesResolver: (props, styles2) => {
27502
+ const {
27503
+ ownerState
27504
+ } = props;
27505
+ return [styles2.root, ownerState.variant && styles2[ownerState.variant], ownerState.align !== "inherit" && styles2[`align${capitalize(ownerState.align)}`], ownerState.noWrap && styles2.noWrap, ownerState.gutterBottom && styles2.gutterBottom, ownerState.paragraph && styles2.paragraph];
27506
+ }
27507
+ })(({
27508
+ theme,
27509
+ ownerState
27510
+ }) => _extends({
27511
+ margin: 0
27512
+ }, ownerState.variant === "inherit" && {
27513
+ font: "inherit"
27514
+ }, ownerState.variant !== "inherit" && theme.typography[ownerState.variant], ownerState.align !== "inherit" && {
27515
+ textAlign: ownerState.align
27516
+ }, ownerState.noWrap && {
27517
+ overflow: "hidden",
27518
+ textOverflow: "ellipsis",
27519
+ whiteSpace: "nowrap"
27520
+ }, ownerState.gutterBottom && {
27521
+ marginBottom: "0.35em"
27522
+ }, ownerState.paragraph && {
27523
+ marginBottom: 16
27524
+ }));
27525
+ const defaultVariantMapping = {
27526
+ h1: "h1",
27527
+ h2: "h2",
27528
+ h3: "h3",
27529
+ h4: "h4",
27530
+ h5: "h5",
27531
+ h6: "h6",
27532
+ subtitle1: "h6",
27533
+ subtitle2: "h6",
27534
+ body1: "p",
27535
+ body2: "p",
27536
+ inherit: "p"
27537
+ };
27538
+ const colorTransformations = {
27539
+ primary: "primary.main",
27540
+ textPrimary: "text.primary",
27541
+ secondary: "secondary.main",
27542
+ textSecondary: "text.secondary",
27543
+ error: "error.main"
27544
+ };
27545
+ const transformDeprecatedColors = (color2) => {
27546
+ return colorTransformations[color2] || color2;
27547
+ };
27548
+ const Typography = /* @__PURE__ */ React.forwardRef(function Typography2(inProps, ref) {
27549
+ const themeProps = useThemeProps({
27550
+ props: inProps,
27551
+ name: "MuiTypography"
27552
+ });
27553
+ const color2 = transformDeprecatedColors(themeProps.color);
27554
+ const props = extendSxProp(_extends({}, themeProps, {
27555
+ color: color2
27556
+ }));
27557
+ const {
27558
+ align = "inherit",
27559
+ className,
27560
+ component,
27561
+ gutterBottom = false,
27562
+ noWrap = false,
27563
+ paragraph = false,
27564
+ variant = "body1",
27565
+ variantMapping = defaultVariantMapping
27566
+ } = props, other = _objectWithoutPropertiesLoose(props, _excluded$6);
27567
+ const ownerState = _extends({}, props, {
27568
+ align,
27569
+ color: color2,
27570
+ className,
27571
+ component,
27572
+ gutterBottom,
27573
+ noWrap,
27574
+ paragraph,
27575
+ variant,
27576
+ variantMapping
27577
+ });
27578
+ const Component = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
27579
+ const classes = useUtilityClasses$2(ownerState);
27580
+ return /* @__PURE__ */ jsx(TypographyRoot, _extends({
27581
+ as: Component,
27582
+ ref,
27583
+ ownerState,
27584
+ className: clsx(classes.root, className)
27585
+ }, other));
27586
+ });
27587
+ var Typography$1 = Typography;
27479
27588
  function isHostComponent(element) {
27480
27589
  return typeof element === "string";
27481
27590
  }
@@ -31231,7 +31340,7 @@ FaceMatch.propTypes = {
31231
31340
  source: propTypes.exports.PropTypes.string,
31232
31341
  validateVpn: propTypes.exports.PropTypes.bool
31233
31342
  };
31234
- const LivenessController = (clientId, eventId, source2, inProduction, countryCodeAllowed, faceMatch, dataLiveness, validateVpn) => {
31343
+ const LivenessController = (clientId, eventId, source2, inProduction, countryCodeAllowed, faceMatch, dataLiveness, validateVpn, successMessage) => {
31235
31344
  const [isLoading, setIsLoading] = useState(false);
31236
31345
  const [token2, setToken] = useState("");
31237
31346
  const [status, setStatus] = useState(clientId === void 0 ? "CLIENTID" : token2 === void 0 ? "TOKEN" : "");
@@ -31307,6 +31416,7 @@ const LivenessController = (clientId, eventId, source2, inProduction, countryCod
31307
31416
  await request2(parseReq);
31308
31417
  faceMatch ? await fetchFaceMatch(faceMatch, `data:image/jpeg;base64,${data2.images[0]}`, inProduction, customHeaders).then((res) => {
31309
31418
  setSimilarity(res.data.similarity);
31419
+ setMessage(successMessage ? successMessage : "Verificaci\xF3n de identidad completada");
31310
31420
  saveDataToDB({
31311
31421
  data: {
31312
31422
  similarity: res.data.similarity,
@@ -31345,13 +31455,26 @@ const LivenessController = (clientId, eventId, source2, inProduction, countryCod
31345
31455
  clearState,
31346
31456
  message,
31347
31457
  countryCode,
31348
- setToken
31458
+ setToken,
31459
+ data: data2,
31460
+ similarity
31349
31461
  };
31350
31462
  };
31351
31463
  const primaryColor = getComputedStyle(document.documentElement).getPropertyValue("--primary");
31352
31464
  const primaryColorHover = getComputedStyle(document.documentElement).getPropertyValue("--primary-hov");
31353
31465
  const fontSize = getComputedStyle(document.documentElement).getPropertyValue("--font-size");
31354
31466
  const fontFamily = getComputedStyle(document.documentElement).getPropertyValue("--font-family");
31467
+ const CustomSpinnerProgress = () => {
31468
+ return /* @__PURE__ */ jsx("div", {
31469
+ className: "custom_spinner_container",
31470
+ children: /* @__PURE__ */ jsx("div", {
31471
+ className: "box_spinner",
31472
+ children: /* @__PURE__ */ jsx("div", {
31473
+ className: "spinner"
31474
+ })
31475
+ })
31476
+ });
31477
+ };
31355
31478
  function LivenessCheck({
31356
31479
  mode,
31357
31480
  clientId,
@@ -31362,7 +31485,8 @@ function LivenessCheck({
31362
31485
  countryCodeAllowed,
31363
31486
  faceMatch,
31364
31487
  dataLiveness,
31365
- validateVpn
31488
+ validateVpn,
31489
+ successMessage
31366
31490
  }) {
31367
31491
  const {
31368
31492
  status,
@@ -31371,8 +31495,10 @@ function LivenessCheck({
31371
31495
  clearState,
31372
31496
  message,
31373
31497
  countryCode,
31374
- setToken
31375
- } = LivenessController(clientId, eventId, source2, inProduction, countryCodeAllowed, faceMatch, dataLiveness, validateVpn);
31498
+ setToken,
31499
+ data: data2,
31500
+ similarity
31501
+ } = LivenessController(clientId, eventId, source2, inProduction, countryCodeAllowed, faceMatch, dataLiveness, validateVpn, successMessage);
31376
31502
  useEffect(() => {
31377
31503
  const component = document.getElementsByTagName("face-liveness")[0];
31378
31504
  if (component) {
@@ -31423,8 +31549,27 @@ function LivenessCheck({
31423
31549
  status,
31424
31550
  message
31425
31551
  })]
31426
- }) : /* @__PURE__ */ jsx("face-liveness", {
31552
+ }) : lib(data2) && faceMatch || faceMatch === null ? /* @__PURE__ */ jsx("face-liveness", {
31427
31553
  class: "liveness"
31554
+ }) : /* @__PURE__ */ jsx(Box$1, {
31555
+ className: "box-liveness",
31556
+ children: similarity === 0 ? /* @__PURE__ */ jsxs(Box$1, {
31557
+ display: "flex",
31558
+ flexDirection: "column",
31559
+ justifyContent: "center",
31560
+ alignItems: "center",
31561
+ children: [/* @__PURE__ */ jsx(CustomSpinnerProgress, {}), /* @__PURE__ */ jsx(Typography$1, {
31562
+ variant: "caption",
31563
+ style: {
31564
+ fontSize: "0.875em",
31565
+ paddingTop: "0.875em",
31566
+ color: "#000000"
31567
+ },
31568
+ children: "Comparando rostro..."
31569
+ })]
31570
+ }) : /* @__PURE__ */ jsx(SuccessAnimation, {
31571
+ message
31572
+ })
31428
31573
  })]
31429
31574
  })
31430
31575
  });