gbc-kyc-kit 2.1.5 → 2.2.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.
@@ -38738,9 +38738,6 @@ const showBackButton = (status) => {
38738
38738
  var ArrowBack = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
38739
38739
  d: "M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"
38740
38740
  }), "ArrowBack");
38741
- var ArrowUpward = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
38742
- d: "m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"
38743
- }), "ArrowUpward");
38744
38741
  var CloudUploadIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
38745
38742
  d: "M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"
38746
38743
  }), "CloudUpload");
@@ -38750,9 +38747,6 @@ var CompareArrowsIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
38750
38747
  var ContentCopy = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
38751
38748
  d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"
38752
38749
  }), "ContentCopy");
38753
- var CropRotate = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
38754
- d: "M7.47 21.49C4.2 19.93 1.86 16.76 1.5 13H0c.51 6.16 5.66 11 11.95 11 .23 0 .44-.02.66-.03L8.8 20.15zM12.05 0c-.23 0-.44.02-.66.04l3.81 3.81 1.33-1.33C19.8 4.07 22.14 7.24 22.5 11H24c-.51-6.16-5.66-11-11.95-11M16 14h2V8c0-1.11-.9-2-2-2h-6v2h6zm-8 2V4H6v2H4v2h2v8c0 1.1.89 2 2 2h8v2h2v-2h2v-2z"
38755
- }), "CropRotate");
38756
38750
  var ImageNotSupportedIcon = createSvgIcon(/* @__PURE__ */ jsx$1("path", {
38757
38751
  d: "m21.9 21.9-8.49-8.49-9.82-9.82L2.1 2.1.69 3.51 3 5.83V19c0 1.1.9 2 2 2h13.17l2.31 2.31zM5 18l3.5-4.5 2.5 3.01L12.17 15l3 3zm16 .17L5.83 3H19c1.1 0 2 .9 2 2z"
38758
38752
  }), "ImageNotSupported");
@@ -39259,8 +39253,8 @@ function SideDocsSelector({
39259
39253
  children: /* @__PURE__ */ jsxs(Box$1, {
39260
39254
  display: "flex",
39261
39255
  flexDirection: "column",
39262
- justifyContent: "space-evenly",
39263
- alignItems: "center",
39256
+ justifyContent: "flex-start",
39257
+ alignItems: "flex-start",
39264
39258
  width: "100%",
39265
39259
  children: [base64.firstImage ? /* @__PURE__ */ jsxs("div", {
39266
39260
  className: "img-container",
@@ -39275,7 +39269,7 @@ function SideDocsSelector({
39275
39269
  alt: "thumbnail",
39276
39270
  style: {
39277
39271
  width: "100%",
39278
- height: "auto"
39272
+ height: "100%"
39279
39273
  }
39280
39274
  }), /* @__PURE__ */ jsxs(Box$1, {
39281
39275
  style: {
@@ -39287,7 +39281,7 @@ function SideDocsSelector({
39287
39281
  zIndex: 20
39288
39282
  },
39289
39283
  children: [/* @__PURE__ */ jsx$1(Box$1, {
39290
- className: "rotate-button",
39284
+ className: "zoom-button",
39291
39285
  onClick: toggleZoom,
39292
39286
  sx: {
39293
39287
  backgroundColor: "rgba(255, 255, 255, 0.7)",
@@ -39363,8 +39357,8 @@ function SideDocsSelector({
39363
39357
  children: /* @__PURE__ */ jsxs(Box$1, {
39364
39358
  display: "flex",
39365
39359
  flexDirection: "column",
39366
- justifyContent: "space-evenly",
39367
- alignItems: "center",
39360
+ justifyContent: "flex-start",
39361
+ alignItems: "flex-start",
39368
39362
  width: "100%",
39369
39363
  children: [base64.secondImage ? /* @__PURE__ */ jsxs("div", {
39370
39364
  className: "img-container",
@@ -39379,7 +39373,7 @@ function SideDocsSelector({
39379
39373
  alt: "thumbnail",
39380
39374
  style: {
39381
39375
  width: "100%",
39382
- height: "auto"
39376
+ height: "100%"
39383
39377
  }
39384
39378
  }), /* @__PURE__ */ jsxs(Box$1, {
39385
39379
  style: {
@@ -39391,7 +39385,7 @@ function SideDocsSelector({
39391
39385
  zIndex: 20
39392
39386
  },
39393
39387
  children: [/* @__PURE__ */ jsx$1(Box$1, {
39394
- className: "rotate-button",
39388
+ className: "zoom-button",
39395
39389
  onClick: toggleZoom,
39396
39390
  sx: {
39397
39391
  backgroundColor: "rgba(255, 255, 255, 0.7)",
@@ -39406,7 +39400,7 @@ function SideDocsSelector({
39406
39400
  title: "Girar",
39407
39401
  placement: "right",
39408
39402
  arrow: true,
39409
- children: /* @__PURE__ */ jsx$1(CropRotate, {
39403
+ children: /* @__PURE__ */ jsx$1(ZoomInTwoTone, {
39410
39404
  sx: {
39411
39405
  width: "18px"
39412
39406
  }
@@ -39449,7 +39443,7 @@ function SideDocsSelector({
39449
39443
  type: "button",
39450
39444
  onClick: () => onUploadImage("secondImage"),
39451
39445
  children: "Capturar"
39452
- }), !status && Object.keys(base64).length > 0 && !activateCamera && lib$1(status) && (!dualModeRequired && base64.secondImage || dualModeRequired && base64.firstImage && base64.secondImage) && /* @__PURE__ */ jsx$1(CustomButton, {
39446
+ }), !status && Object.keys(base64).length > 0 && !activateCamera && lib$1(status) && (!dualModeRequired && base64.secondImage && base64.firstImage || dualModeRequired && base64.firstImage && base64.secondImage) && /* @__PURE__ */ jsx$1(CustomButton, {
39453
39447
  type: "submit",
39454
39448
  children: "Procesar"
39455
39449
  })]
@@ -39470,52 +39464,24 @@ function SideDocsSelector({
39470
39464
  alignItems: "center",
39471
39465
  zIndex: 999
39472
39466
  },
39473
- children: /* @__PURE__ */ jsxs(Box$1, {
39467
+ children: /* @__PURE__ */ jsx$1(Box$1, {
39474
39468
  display: "flex",
39475
39469
  justifyContent: "center",
39476
39470
  alignItems: "center",
39477
39471
  position: "relative",
39478
39472
  height: 525,
39479
- children: [/* @__PURE__ */ jsx$1(Box$1, {
39480
- className: "delete-button",
39481
- onClick: toggleZoom,
39482
- sx: {
39483
- width: "30px",
39484
- height: "30px",
39485
- backgroundColor: "#202124",
39486
- borderRadius: "50%",
39487
- cursor: "pointer",
39488
- display: "flex",
39489
- alignItems: "center",
39490
- justifyContent: "center",
39491
- position: "absolute",
39492
- color: "red",
39493
- zIndex: 111111,
39494
- bottom: 10,
39495
- right: 55
39496
- },
39497
- children: /* @__PURE__ */ jsx$1(MUITooltip, {
39498
- title: "Vaciar",
39499
- placement: "right",
39500
- arrow: true,
39501
- children: /* @__PURE__ */ jsx$1(ArrowUpward, {
39502
- sx: {
39503
- color: "white"
39504
- }
39505
- })
39506
- })
39507
- }), /* @__PURE__ */ jsx$1("img", {
39473
+ children: /* @__PURE__ */ jsx$1("img", {
39508
39474
  src: value === 0 ? base64.firstImage : base64.secondImage,
39509
39475
  alt: "zoomed",
39510
39476
  onClick: toggleZoom,
39511
39477
  style: {
39478
+ overflow: "auto",
39512
39479
  maxWidth: showZoom ? "140%" : "100%",
39513
39480
  maxHeight: "90%",
39514
39481
  objectFit: "contain",
39515
- borderRadius: "5px",
39516
- transform: showZoom ? "rotate(90deg)" : "none"
39482
+ borderRadius: "5px"
39517
39483
  }
39518
- })]
39484
+ })
39519
39485
  })
39520
39486
  })]
39521
39487
  });
@@ -39945,7 +39911,7 @@ function DocumentReader({
39945
39911
  setBase64
39946
39912
  } = DocumentReaderController(dataDocument, clientId, authorize, eventId, source2, inProduction, countryCodeAllowed, validateVpn, successMessage, dualModeRequired);
39947
39913
  return /* @__PURE__ */ jsxs("div", {
39948
- className: `kit-gbc ${mode}`,
39914
+ className: `kit-gbc ${mode} without-shadow`,
39949
39915
  children: [/* @__PURE__ */ jsx$1(k$2, {
39950
39916
  position: "top-center",
39951
39917
  autoClose: 5e3,