@tsocial/tvweb-sdk.abb 5.38.3 → 5.38.4

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.
Files changed (29) hide show
  1. package/build/esm/{chunk-624447c2.js → chunk-10888e1b.js} +1 -1
  2. package/build/esm/{chunk-df0745ad.js → chunk-19bb2954.js} +1 -1
  3. package/build/esm/{chunk-fb19d81d.js → chunk-1bad864c.js} +1 -1
  4. package/build/esm/{chunk-18786691.js → chunk-1da9ec44.js} +1 -1
  5. package/build/esm/chunk-2fc65bbb.js +1 -0
  6. package/build/esm/{chunk-6f516c6f.js → chunk-39137e90.js} +1 -1
  7. package/build/esm/{chunk-6a630f60.js → chunk-3ff41049.js} +1 -1
  8. package/build/esm/{chunk-3b3775dc.js → chunk-444dda59.js} +1 -1
  9. package/build/esm/{chunk-9796ecb4.js → chunk-55db9afb.js} +1 -1
  10. package/build/esm/{chunk-9e5ac2de.js → chunk-6f37da98.js} +16 -4
  11. package/build/esm/{chunk-5051bcd8.js → chunk-803c5c89.js} +1 -1
  12. package/build/esm/{chunk-048b2863.js → chunk-83f58cc7.js} +1 -1
  13. package/build/esm/{chunk-11487623.js → chunk-a4de032e.js} +1 -1
  14. package/build/esm/{chunk-36517236.js → chunk-a8305c7c.js} +1 -1
  15. package/build/esm/chunk-ade2a027.js +1 -0
  16. package/build/esm/{chunk-27ca813f.js → chunk-cac3fce4.js} +1 -1
  17. package/build/esm/{chunk-672e4c87.js → chunk-d96dfd2c.js} +1 -1
  18. package/build/esm/{chunk-802213be.js → chunk-d9ee9ddd.js} +1 -1
  19. package/build/esm/{chunk-0d669999.js → chunk-daa22bcb.js} +1 -1
  20. package/build/esm/{chunk-cdff8bf8.js → chunk-dae9cbb9.js} +1 -1
  21. package/build/esm/{chunk-0189d295.js → chunk-e0bf418c.js} +1 -1
  22. package/build/esm/{chunk-665e06e1.js → chunk-e2e11e53.js} +1 -1
  23. package/build/esm/tvweb-sdk.abb.esm.min.js +1 -1
  24. package/build/tvweb-sdk.abb.cjs.min.js +17 -5
  25. package/build/tvweb-sdk.abb.standalone.js +73 -44
  26. package/build/tvweb-sdk.abb.standalone.min.js +17 -5
  27. package/package.json +5 -5
  28. package/build/esm/chunk-2924667a.js +0 -1
  29. package/build/esm/chunk-39747f56.js +0 -1
@@ -19065,7 +19065,7 @@
19065
19065
  }, cB;
19066
19066
  }();
19067
19067
  function cP() {
19068
- return "5.38.3";
19068
+ return "5.38.4";
19069
19069
  }
19070
19070
  function cR() {
19071
19071
  return {
@@ -22634,52 +22634,55 @@
22634
22634
  }
22635
22635
  return 1 === n && (r += l3(i << 2)), r;
22636
22636
  }
22637
- function l6(e, t) {
22638
- let r = l8();
22639
- return (l6 = function(e, t) {
22640
- return r[e -= 320];
22637
+ let l6 = l7, l8 = l7, l9 = ue();
22638
+ for(;;)try {
22639
+ if (-parseInt(l8(238)) / 1 * (-parseInt(l8(220)) / 2) + -parseInt(l8(229)) / 3 * (parseInt(l8(213)) / 4) + -parseInt(l8(225)) / 5 * (parseInt(l8(232)) / 6) + -parseInt(l8(223)) / 7 * (-parseInt(l8(231)) / 8) + -parseInt(l8(217)) / 9 * (-parseInt(l8(222)) / 10) + parseInt(l8(215)) / 11 + parseInt(l8(235)) / 12 * (-parseInt(l8(233)) / 13) === 482126) break;
22640
+ l9.push(l9.shift());
22641
+ } catch (e) {
22642
+ l9.push(l9.shift());
22643
+ }
22644
+ function l7(e, t) {
22645
+ let r = ue();
22646
+ return (l7 = function(e, t) {
22647
+ return r[e -= 213];
22641
22648
  })(e, t);
22642
22649
  }
22643
- function l8() {
22650
+ function ue() {
22644
22651
  let e = [
22645
- "44P0rKKsZK",
22646
- "2a8648ce3d",
22647
22652
  "3059301306",
22653
+ "240peaVBL",
22654
+ "072a8648ce",
22655
+ "2820653Pqkoum",
22656
+ "KA==",
22657
+ "72wcsCtS",
22658
+ "D9EKOWS+U4",
22648
22659
  "cDQgAE9h6Z",
22649
- "2106423NMPbNA",
22650
- "52818NZJIuA",
22651
- "1523216PSJWWK",
22652
- "ytJdcsPxrD",
22653
- "26pSGkYd",
22654
- "Mjci1ul8mm",
22655
- "5267088cfiBtj",
22656
- "MFkwEwYHKo",
22660
+ "84790BpvkRV",
22661
+ "MfPrcYTM70",
22662
+ "937210KoqoNi",
22663
+ "14vUeOjS",
22657
22664
  "000",
22658
- "DepBO8t60S",
22659
- "D9EKOWS+U4",
22660
- "2745777vSmWXY",
22661
- "3d02010608",
22665
+ "2130415NUxqWk",
22666
+ "MFkwEwYHKo",
22667
+ "44P0rKKsZK",
22662
22668
  "ssRdXLZEX8",
22663
- "MfPrcYTM70",
22664
- "6BgdjEW",
22665
- "KA==",
22666
- "4314410sjoVYQ",
22667
- "1778350yctlbb",
22668
- "0301070342"
22669
+ "21303UESToA",
22670
+ "0301070342",
22671
+ "2867944nddemC",
22672
+ "6ymZARY",
22673
+ "17693WALCtX",
22674
+ "3d02010608",
22675
+ "9036vvXkAE",
22676
+ "ytJdcsPxrD",
22677
+ "Mjci1ul8mm",
22678
+ "15ZyRmYG"
22669
22679
  ];
22670
- return (l8 = function() {
22680
+ return (ue = function() {
22671
22681
  return e;
22672
22682
  })();
22673
22683
  }
22674
- let l9 = l6, l7 = l6, ue = l8();
22675
- for(;;)try {
22676
- if (-parseInt(l7(332)) / 1 * (-parseInt(l7(335)) / 2) + parseInt(l7(342)) / 3 + -parseInt(l7(333)) / 4 + parseInt(l7(324)) / 5 * (-parseInt(l7(322)) / 6) + -parseInt(l7(325)) / 7 + parseInt(l7(337)) / 8 + -parseInt(l7(331)) / 9 === 528496) break;
22677
- ue.push(ue.shift());
22678
- } catch (e) {
22679
- ue.push(ue.shift());
22680
- }
22681
- l9(329), l9(343), l9(328), l9(326), l9(339);
22682
- let ut = l9(338) + "ZIzj0CAQYIKoZIzj0DAQ" + l9(330) + l9(340) + l9(334) + "+faHkP3QC3" + l9(327) + l9(336) + l9(341) + l9(321) + l9(320) + l9(323);
22684
+ l6(239), l6(214), l6(234), l6(230), l6(224);
22685
+ let ut = l6(226) + "ZIzj0CAQYIKoZIzj0DAQ" + l6(219) + "DepBO8t60S" + l6(236) + "+faHkP3QC3" + l6(227) + l6(237) + l6(218) + l6(221) + l6(228) + l6(216);
22683
22686
  function ur(e) {
22684
22687
  let t = atob(e), r = new Uint8Array(t.length);
22685
22688
  for(let e = 0; e < t.length; e++)r[e] = t.charCodeAt(e);
@@ -38666,6 +38669,11 @@
38666
38669
  display: ${nz("closeButton.display")};
38667
38670
  width: ${nz("closeButton.width")};
38668
38671
  height: ${nz("closeButton.height")};
38672
+ // Optional theme-controlled hit-area padding. Defaults to '0', so clients that
38673
+ // don't set closeButton.padding render exactly as before. content-box ensures
38674
+ // the padding grows the tap target without shrinking the icon.
38675
+ box-sizing: content-box;
38676
+ padding: ${nz("closeButton.padding", "0")};
38669
38677
  `, nK = dt$1.div`
38670
38678
  z-index: ${1020};
38671
38679
  position: absolute;
@@ -58465,6 +58473,11 @@
58465
58473
  display: ${getTheme('closeButton.display')};
58466
58474
  width: ${getTheme('closeButton.width')};
58467
58475
  height: ${getTheme('closeButton.height')};
58476
+ // Optional theme-controlled hit-area padding. Defaults to '0', so clients that
58477
+ // don't set closeButton.padding render exactly as before. content-box ensures
58478
+ // the padding grows the tap target without shrinking the icon.
58479
+ box-sizing: content-box;
58480
+ padding: ${getTheme('closeButton.padding', '0')};
58468
58481
  `;
58469
58482
  const Error$1 = dt$1.div`
58470
58483
  z-index: ${BASE_Z_INDEX + 20};
@@ -62418,14 +62431,23 @@
62418
62431
  ...props
62419
62432
  });
62420
62433
  };
62434
+ // The 28px icon sits inside an invisible 18px padding ring so the clickable
62435
+ // hit-area is 64x64 (28 + 18*2), much easier to tap on small screens. The box
62436
+ // is anchored to the top-left corner (top/left: 0) so the full 64x64 target
62437
+ // stays on-screen — the padding (18px) is larger than the previous 12px offset,
62438
+ // so a corner anchor is required. box-sizing: content-box guarantees the
62439
+ // padding grows the box instead of shrinking the icon (the SDK has no global
62440
+ // border-box reset, but we set it explicitly to be safe).
62421
62441
  const FlashLivenessCloseIcon = dt$1(FlashLivenessCloseIconComponent)`
62422
62442
  z-index: 1010;
62423
62443
  cursor: pointer;
62424
62444
  position: fixed;
62425
- top: 12px;
62426
- left: 12px;
62445
+ top: 0;
62446
+ left: 0;
62427
62447
  width: 28px;
62428
62448
  height: 28px;
62449
+ box-sizing: content-box;
62450
+ padding: 18px;
62429
62451
  `;
62430
62452
 
62431
62453
  const StyledOverlay = dt$1.div`
@@ -62546,7 +62568,7 @@
62546
62568
  id_detector_back_no_cards: 'Không nhận diện được giấy tờ'
62547
62569
  };
62548
62570
 
62549
- const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.abb/5.38.3/assets";
62571
+ const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.abb/5.38.4/assets";
62550
62572
  // ABB brand colors for the Flash Liveness oval mask border.
62551
62573
  // `strokeColor` is the normal/idle border; `strokeColorError` is shown during
62552
62574
  // the FAR_FACE / CLOSE_FACE steps when a face-positioning error is detected.
@@ -62582,9 +62604,15 @@
62582
62604
  // would render with a black fill and a 1px border.
62583
62605
  const ID_CARD_MASK_STROKE_WIDTH = 3;
62584
62606
  // ABB Read ID Card theme overrides:
62585
- // - Close button moved to the top-left corner (SDK default is top-right). The
62586
- // icon resolves to assets/v2/ic_close.svg via the Camera default close button
62587
- // (useThemeIcon fallback); only the position needs overriding.
62607
+ // - Close button anchored to the top-left corner (SDK default is top-right)
62608
+ // with a 20px hit-area padding so the clickable target is 64x64 (the 24px
62609
+ // icon + 20px padding on each side), easier to tap on small screens. The box
62610
+ // is pinned to the corner (top/left: 0) so the full 64x64 target stays
62611
+ // on-screen — the padding (20px) is larger than the previous 12px offset, so
62612
+ // a corner anchor is required. The padding is consumed by the shared Camera
62613
+ // CloseButton via the closeButton.padding theme token (default '0', so other
62614
+ // clients are unaffected). The icon resolves to assets/v2/ic_close.svg via the
62615
+ // Camera default close button (useThemeIcon fallback).
62588
62616
  // - Rounded-rectangle mask border uses the ABB brand green (#00BC3C) normally
62589
62617
  // and brand red (#E60A32) on a card-validation error.
62590
62618
  // useMergeTheme deep-merges customTheme and getTheme falls back to the v2
@@ -62597,10 +62625,11 @@
62597
62625
  customTheme: {
62598
62626
  ...props.customTheme,
62599
62627
  closeButton: {
62600
- top: "12px",
62601
- left: "12px",
62628
+ top: "0px",
62629
+ left: "0px",
62602
62630
  right: "auto",
62603
62631
  bottom: "auto",
62632
+ padding: "20px",
62604
62633
  ...props.customTheme?.closeButton
62605
62634
  },
62606
62635
  IDCapturing: {