@tsocial/tvweb-sdk 5.38.0 → 5.38.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/build/esm/{chunk-71bc3d31.js → chunk-265525fb.js} +1 -1
  2. package/build/esm/{chunk-37cdf0c6.js → chunk-2a4cb9f5.js} +1 -1
  3. package/build/esm/chunk-2bdac502.js +1 -0
  4. package/build/esm/{chunk-47f573ed.js → chunk-37a2eeaf.js} +1 -1
  5. package/build/esm/{chunk-0e095921.js → chunk-411ea759.js} +1 -1
  6. package/build/esm/{chunk-7b389c71.js → chunk-4377ca3e.js} +1 -1
  7. package/build/esm/{chunk-27a081f0.js → chunk-4552fd9e.js} +1 -1
  8. package/build/esm/{chunk-f003d34d.js → chunk-575fb45a.js} +29 -10
  9. package/build/esm/{chunk-da9e4f99.js → chunk-7b93e41f.js} +1 -1
  10. package/build/esm/{chunk-c74892c9.js → chunk-7fd19a76.js} +1 -1
  11. package/build/esm/{chunk-4bdebcdd.js → chunk-84471c81.js} +1 -1
  12. package/build/esm/{chunk-d8a92cb1.js → chunk-8c9bb671.js} +1 -1
  13. package/build/esm/{chunk-32ffba48.js → chunk-906e840c.js} +1 -1
  14. package/build/esm/{chunk-99247a2f.js → chunk-9d0b0fc7.js} +31 -12
  15. package/build/esm/{chunk-191cab03.js → chunk-9fe80ed2.js} +1 -1
  16. package/build/esm/{chunk-b2a6294d.js → chunk-b8138130.js} +1 -1
  17. package/build/esm/{chunk-61824c72.js → chunk-d15b739a.js} +1 -1
  18. package/build/esm/{chunk-825b5b31.js → chunk-ddb2ebe0.js} +1 -1
  19. package/build/esm/{chunk-60dc6fe1.js → chunk-e2211b41.js} +1 -1
  20. package/build/esm/{chunk-4c5427d3.js → chunk-f703e0a4.js} +1 -1
  21. package/build/esm/chunk-fa315830.js +1 -0
  22. package/build/esm/{chunk-6a6c84e6.js → chunk-fd4614fe.js} +1 -1
  23. package/build/esm/tvweb-sdk.esm.min.js +1 -1
  24. package/build/tvweb-sdk.cjs.min.js +92 -54
  25. package/build/tvweb-sdk.standalone.js +250 -196
  26. package/build/tvweb-sdk.standalone.min.js +89 -51
  27. package/package.json +5 -5
  28. package/build/esm/chunk-0ffdb7d1.js +0 -1
  29. package/build/esm/chunk-17ccf2c0.js +0 -1
@@ -19070,7 +19070,7 @@
19070
19070
  }, cB;
19071
19071
  }();
19072
19072
  function cP() {
19073
- return "5.38.0";
19073
+ return "5.38.1";
19074
19074
  }
19075
19075
  function cR() {
19076
19076
  return {
@@ -22639,55 +22639,55 @@
22639
22639
  }
22640
22640
  return 1 === n && (r += l3(i << 2)), r;
22641
22641
  }
22642
- let l6 = ue;
22643
- function l8() {
22642
+ let l6 = l7, l8 = l7, l9 = ue();
22643
+ for(;;)try {
22644
+ if (-parseInt(l8(190)) / 1 + parseInt(l8(193)) / 2 + -parseInt(l8(195)) / 3 * (-parseInt(l8(185)) / 4) + parseInt(l8(199)) / 5 * (-parseInt(l8(201)) / 6) + parseInt(l8(203)) / 7 + -parseInt(l8(206)) / 8 * (-parseInt(l8(197)) / 9) + parseInt(l8(191)) / 10 === 794474) break;
22645
+ l9.push(l9.shift());
22646
+ } catch (e) {
22647
+ l9.push(l9.shift());
22648
+ }
22649
+ function l7(e, t) {
22650
+ let r = ue();
22651
+ return (l7 = function(e, t) {
22652
+ return r[e -= 180];
22653
+ })(e, t);
22654
+ }
22655
+ function ue() {
22644
22656
  let e = [
22645
- "MfPrcYTM70",
22646
22657
  "ssRdXLZEX8",
22647
- "461248NanRiW",
22648
- "3d02010608",
22649
- "2a8648ce3d",
22650
- "174246GPlAzZ",
22651
- "1942680NIQIoL",
22652
- "189qCupZM",
22653
- "000",
22654
- "+faHkP3QC3",
22655
- "KA==",
22656
- "ytJdcsPxrD",
22657
- "Mjci1ul8mm",
22658
22658
  "MFkwEwYHKo",
22659
- "D9EKOWS+U4",
22660
- "11104432FqfxcP",
22661
- "KoZIzj0DAQ",
22662
- "438008zUrlLF",
22663
- "3059301306",
22664
- "223708VbVjci",
22665
22659
  "0301070342",
22666
- "12344733ABBVHg",
22667
- "10QNKJEG",
22668
- "44P0rKKsZK",
22660
+ "651064QWsjnS",
22661
+ "MfPrcYTM70",
22662
+ "KA==",
22663
+ "3059301306",
22664
+ "KoZIzj0DAQ",
22665
+ "834680GpvGOn",
22666
+ "6434270iLzmIH",
22667
+ "D9EKOWS+U4",
22668
+ "390062DLkYBw",
22669
+ "072a8648ce",
22670
+ "3OSrMBO",
22669
22671
  "ZIzj0CAQYI",
22670
- "cDQgAE9h6Z"
22672
+ "229599vgUIOC",
22673
+ "000",
22674
+ "6595borjDu",
22675
+ "2a8648ce3d",
22676
+ "6438VXYMOz",
22677
+ "cDQgAE9h6Z",
22678
+ "6623708HteEuk",
22679
+ "DepBO8t60S",
22680
+ "Mjci1ul8mm",
22681
+ "344VSgtTk",
22682
+ "3d02010608",
22683
+ "ytJdcsPxrD"
22671
22684
  ];
22672
- return (l8 = function() {
22685
+ return (ue = function() {
22673
22686
  return e;
22674
22687
  })();
22675
22688
  }
22676
- let l9 = ue, l7 = l8();
22677
- for(;;)try {
22678
- if (parseInt(l9(322)) / 1 + parseInt(l9(333)) / 2 + -parseInt(l9(337)) / 3 + parseInt(l9(324)) / 4 * (-parseInt(l9(327)) / 5) + parseInt(l9(336)) / 6 * (parseInt(l9(338)) / 7) + parseInt(l9(346)) / 8 + -parseInt(l9(326)) / 9 === 709742) break;
22679
- l7.push(l7.shift());
22680
- } catch (e) {
22681
- l7.push(l7.shift());
22682
- }
22683
- function ue(e, t) {
22684
- let r = l8();
22685
- return (ue = function(e, t) {
22686
- return r[e -= 321];
22687
- })(e, t);
22688
- }
22689
- l6(323), l6(334), l6(335), l6(325), l6(339);
22690
- let ut = l6(344) + l6(329) + l6(321) + l6(330) + "DepBO8t60S" + l6(342) + l6(340) + l6(328) + l6(343) + l6(345) + l6(331) + l6(332) + l6(341);
22689
+ l6(188), l6(194), l6(180), l6(200), l6(184), l6(198);
22690
+ let ut = l6(183) + l6(196) + l6(189) + l6(202) + l6(204) + l6(181) + "+faHkP3QC344P0rKKsZK" + l6(205) + l6(192) + l6(186) + l6(182) + l6(187);
22691
22691
  function ur(e) {
22692
22692
  let t = atob(e), r = new Uint8Array(t.length);
22693
22693
  for(let e = 0; e < t.length; e++)r[e] = t.charCodeAt(e);
@@ -26733,7 +26733,7 @@
26733
26733
  return this.getKey().getPublicKey();
26734
26734
  }, e.prototype.getPublicKeyB64 = function() {
26735
26735
  return this.getKey().getPublicBaseKeyB64();
26736
- }, e.version = "5.37.0", e;
26736
+ }, e.version = "5.38.0", e;
26737
26737
  }();
26738
26738
  let fx = [
26739
26739
  "-",
@@ -34598,7 +34598,7 @@
34598
34598
  });
34599
34599
  };
34600
34600
 
34601
- var Z, K, Y, J, ee, et, er, eo, en, ei, ea, es, ec, el, ed, eu, ep, ef, eh, em, eg, eb, ev, ew, ek, ey, eC, eB, e_, ex, eP, eS, eE, eT, eD, eI, e$, ej, eM, eO, eR, eA, eL, eF, ez, eN, eV, eW, eU, eq, eQ, eX, eH, eG, eZ, eK, eY, eJ, e3, e2, e5, e0, e1, e8, e9, e4, e6, e7, te, tt, tr, to, tn, ti, ta, ts, tc, tl, td, tu, tp, tf, th, tm, tg, tb, tv, tw, tk, ty, tC, tB, t_, tx, tP, tS, tE, tT, tD, tI, t$, tj, tM, tO, tR, tA, tL, tF, tz, tN, tV, tW, tU, tq, tQ, tX, tH, tG, tZ, tK, tY, tJ, t3, t2, t5, t0, t1, t8, t9, t4, t6, t7, re, rt, rr, ro, rn, ri, ra, rs, rc, rl, rd, ru, rp, rf, rh, rm, rg, rb, rv, rw, rk, ry, rC, rB, r_, rx, rP, rS, rE, rT, rD, rI, r$, rj, rM, rO, rR, rA, rL, rF, rz, rN, rV, rW, rU, rq, rQ, rX, rH, rG, rZ, rK, rY, rJ, r3, r2, r5, r0, r1, r8, r9, r4, r6, r7, oe, ot, or, oo, on, oi, oa, os, oc, ol, od, ou, op, of, oh, om, og, ob, ov, ow, ok, oy, oC, oB, o_, ox, oP, oS, oE, oT, oD, oI, o$, oj, oM, oO, oR, oA, oL, oF, oz, oN, oV, oW, oq, oQ = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};
34601
+ var Z, K, Y, J, ee, et, er, eo, en, ei, ea, es, ec, el, ed, eu, ep, ef, eh, em, eg, eb, ev, ew, ek, ey, eC, eB, e_, ex, eP, eS, eE, eT, eD, e$, eI, ej, eM, eO, eR, eA, eL, eF, ez, eN, eV, eW, eU, eq, eQ, eX, eH, eG, eZ, eK, eY, eJ, e3, e2, e5, e0, e1, e8, e9, e4, e6, e7, te, tt, tr, to, tn, ti, ta, ts, tc, tl, td, tu, tp, tf, th, tm, tg, tb, tv, tw, tk, ty, tC, tB, t_, tx, tP, tS, tE, tT, tD, t$, tI, tj, tM, tO, tR, tA, tL, tF, tz, tN, tV, tW, tU, tq, tQ, tX, tH, tG, tZ, tK, tY, tJ, t3, t2, t5, t0, t1, t8, t9, t4, t6, t7, re, rt, rr, ro, rn, ri, ra, rs, rc, rl, rd, ru, rp, rf, rh, rm, rg, rb, rv, rw, rk, ry, rC, rB, r_, rx, rP, rS, rE, rT, rD, r$, rI, rj, rM, rO, rR, rA, rL, rF, rz, rN, rV, rW, rU, rq, rQ, rX, rH, rG, rZ, rK, rY, rJ, r3, r2, r5, r0, r1, r8, r9, r4, r6, r7, oe, ot, or, oo, on, oi, oa, os, oc, ol, od, ou, op, of, oh, om, og, ob, ov, ow, ok, oy, oC, oB, o_, ox, oP, oS, oE, oT, oD, o$, oI, oj, oM, oO, oR, oA, oL, oF, oz, oN, oV, oW, oq, oQ = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};
34602
34602
  function oX(t) {
34603
34603
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
34604
34604
  }
@@ -34706,7 +34706,7 @@
34706
34706
  };
34707
34707
  }
34708
34708
  function o9() {
34709
- if (ej) return e$;
34709
+ if (ej) return eI;
34710
34710
  ej = 1;
34711
34711
  var t = function() {
34712
34712
  if (eT) return eE;
@@ -34737,10 +34737,10 @@
34737
34737
  return eE = function(a) {
34738
34738
  return !(!o(a) || r(a)) && (t(a) ? l : i).test(n(a));
34739
34739
  };
34740
- }(), r = eI ? eD : (eI = 1, eD = function(t, r) {
34740
+ }(), r = e$ ? eD : (e$ = 1, eD = function(t, r) {
34741
34741
  return null == t ? void 0 : t[r];
34742
34742
  });
34743
- return e$ = function(o, n) {
34743
+ return eI = function(o, n) {
34744
34744
  var i = r(o, n);
34745
34745
  return t(i) ? i : void 0;
34746
34746
  };
@@ -34940,8 +34940,8 @@
34940
34940
  if (tO) return tM;
34941
34941
  tO = 1;
34942
34942
  var t = function() {
34943
- if (tI) return tD;
34944
- tI = 1;
34943
+ if (t$) return tD;
34944
+ t$ = 1;
34945
34945
  var t = oK(), r = function() {
34946
34946
  if (eb) return eg;
34947
34947
  eb = 1;
@@ -35014,10 +35014,10 @@
35014
35014
  ] : o(n(i));
35015
35015
  };
35016
35016
  }(), r = function() {
35017
- if (tj) return t$;
35017
+ if (tj) return tI;
35018
35018
  tj = 1;
35019
35019
  var t = o0(), r = 1 / 0;
35020
- return t$ = function(o) {
35020
+ return tI = function(o) {
35021
35021
  if ("string" == typeof o || t(o)) return o;
35022
35022
  var n = o + "";
35023
35023
  return "0" == n && 1 / o == -r ? "-0" : n;
@@ -35402,7 +35402,7 @@
35402
35402
  var t, r;
35403
35403
  if (tz) return nS.exports;
35404
35404
  return tz = 1, t = nS, r = nS.exports, function(o, n) {
35405
- var i = "function", a = "undefined", s = "object", c = "string", l = "major", d = "model", u = "name", p = "type", f = "vendor", h = "version", m = "architecture", g = "console", b = "mobile", v = "tablet", w = "smarttv", k = "wearable", y = "embedded", C = "Amazon", B = "Apple", _ = "ASUS", x = "BlackBerry", P = "Browser", S = "Chrome", E = "Firefox", T = "Google", D = "Huawei", I = "Microsoft", $ = "Motorola", j = "Opera", M = "Samsung", O = "Sharp", R = "Sony", A = "Xiaomi", L = "Zebra", F = "Facebook", z = "Chromium OS", N = "Mac OS", V = function(t, r) {
35405
+ var i = "function", a = "undefined", s = "object", c = "string", l = "major", d = "model", u = "name", p = "type", f = "vendor", h = "version", m = "architecture", g = "console", b = "mobile", v = "tablet", w = "smarttv", k = "wearable", y = "embedded", C = "Amazon", B = "Apple", _ = "ASUS", x = "BlackBerry", P = "Browser", S = "Chrome", E = "Firefox", T = "Google", D = "Huawei", $ = "Microsoft", I = "Motorola", j = "Opera", M = "Samsung", O = "Sharp", R = "Sony", A = "Xiaomi", L = "Zebra", F = "Facebook", z = "Chromium OS", N = "Mac OS", V = function(t, r) {
35406
35406
  var o = {};
35407
35407
  for(var n in t)r[n] && r[n].length % 2 == 0 ? o[n] = r[n].concat(t[n]) : o[n] = t[n];
35408
35408
  return o;
@@ -36205,7 +36205,7 @@
36205
36205
  d,
36206
36206
  [
36207
36207
  f,
36208
- $
36208
+ I
36209
36209
  ],
36210
36210
  [
36211
36211
  p,
@@ -36219,7 +36219,7 @@
36219
36219
  d,
36220
36220
  [
36221
36221
  f,
36222
- $
36222
+ I
36223
36223
  ],
36224
36224
  [
36225
36225
  p,
@@ -36571,7 +36571,7 @@
36571
36571
  d,
36572
36572
  [
36573
36573
  f,
36574
- I
36574
+ $
36575
36575
  ],
36576
36576
  [
36577
36577
  p,
@@ -36923,7 +36923,7 @@
36923
36923
  ],
36924
36924
  [
36925
36925
  f,
36926
- I
36926
+ $
36927
36927
  ],
36928
36928
  [
36929
36929
  p,
@@ -37172,7 +37172,7 @@
37172
37172
  d,
37173
37173
  [
37174
37174
  f,
37175
- I
37175
+ $
37176
37176
  ],
37177
37177
  [
37178
37178
  p,
@@ -37714,7 +37714,7 @@
37714
37714
  for(var o = 0, n = Array(r); o < r; o++)n[o] = t[o];
37715
37715
  return n;
37716
37716
  }
37717
- var _ = "mobile", x = "tablet", P = "smarttv", S = "console", E = "wearable", T = "embedded", D = void 0, I = {
37717
+ var _ = "mobile", x = "tablet", P = "smarttv", S = "console", E = "wearable", T = "embedded", D = void 0, $ = {
37718
37718
  Chrome: "Chrome",
37719
37719
  Firefox: "Firefox",
37720
37720
  Opera: "Opera",
@@ -37728,7 +37728,7 @@
37728
37728
  EdgeChromium: "Edge Chromium",
37729
37729
  MIUI: "MIUI Browser",
37730
37730
  SamsungBrowser: "Samsung Browser"
37731
- }, $ = {
37731
+ }, I = {
37732
37732
  IOS: "iOS",
37733
37733
  Android: "Android",
37734
37734
  WindowsPhone: "Windows Phone",
@@ -37831,43 +37831,43 @@
37831
37831
  }, G = function(t) {
37832
37832
  return O(t.type, "browser");
37833
37833
  }, Z = function(t) {
37834
- return t.name === $.Android;
37834
+ return t.name === I.Android;
37835
37835
  }, K = function(t) {
37836
- return t.name === $.Windows;
37836
+ return t.name === I.Windows;
37837
37837
  }, Y = function(t) {
37838
- return t.name === $.MAC_OS;
37838
+ return t.name === I.MAC_OS;
37839
37839
  }, J = function(t) {
37840
- return t.name === $.WindowsPhone;
37840
+ return t.name === I.WindowsPhone;
37841
37841
  }, ee = function(t) {
37842
- return t.name === $.IOS;
37842
+ return t.name === I.IOS;
37843
37843
  }, et = function(t) {
37844
37844
  return O(t.version);
37845
37845
  }, er = function(t) {
37846
37846
  return O(t.name);
37847
37847
  }, eo = function(t) {
37848
- return t.name === I.Chrome;
37848
+ return t.name === $.Chrome;
37849
37849
  }, en = function(t) {
37850
- return t.name === I.Firefox;
37850
+ return t.name === $.Firefox;
37851
37851
  }, ei = function(t) {
37852
- return t.name === I.Chromium;
37852
+ return t.name === $.Chromium;
37853
37853
  }, ea = function(t) {
37854
- return t.name === I.Edge;
37854
+ return t.name === $.Edge;
37855
37855
  }, es = function(t) {
37856
- return t.name === I.Yandex;
37856
+ return t.name === $.Yandex;
37857
37857
  }, ec = function(t) {
37858
37858
  var r = t.name;
37859
- return r === I.Safari || r === I.MobileSafari;
37859
+ return r === $.Safari || r === $.MobileSafari;
37860
37860
  }, el = function(t) {
37861
- return t.name === I.MobileSafari;
37861
+ return t.name === $.MobileSafari;
37862
37862
  }, ed = function(t) {
37863
- return t.name === I.Opera;
37863
+ return t.name === $.Opera;
37864
37864
  }, eu = function(t) {
37865
37865
  var r = t.name;
37866
- return r === I.InternetExplorer || r === I.Ie;
37866
+ return r === $.InternetExplorer || r === $.Ie;
37867
37867
  }, ep = function(t) {
37868
- return t.name === I.MIUI;
37868
+ return t.name === $.MIUI;
37869
37869
  }, ef = function(t) {
37870
- return t.name === I.SamsungBrowser;
37870
+ return t.name === $.SamsungBrowser;
37871
37871
  }, eh = function(t) {
37872
37872
  return O(t.version);
37873
37873
  }, em = function(t) {
@@ -37943,7 +37943,7 @@
37943
37943
  isSamsungBrowser: ef(n)
37944
37944
  };
37945
37945
  }
37946
- var eS = V(c), eE = q(c), eT = U(c), eD = Q(c), eI = el(a) || eC(), e$ = ei(a), ej = N(c) || eC(), eM = F(c), eO = z(c) || eC(), eR = W(c), eA = W(c), eL = Z(d), eF = J(d), ez = ee(d) || eC(), eN = eo(a), eV = en(a), eW = ec(a), eU = ed(a), eq = eu(a), eQ = et(d), eX = er(d), eH = eh(a), eG = em(a), eZ = eg(a), eK = X(c), eY = H(c), eJ = eb(l), e3 = ev(l), e2 = ex(u), e5 = ea(a) || ek(u), e0 = es(a), e1 = G(c), e8 = ey(), e9 = eC(), e4 = eB(), e6 = e_(), e7 = ew(), te = ek(u), tt = ea(a) && !ek(u), tr = K(d), to = Y(d), tn = ep(a), ti = ef(a);
37946
+ var eS = V(c), eE = q(c), eT = U(c), eD = Q(c), e$ = el(a) || eC(), eI = ei(a), ej = N(c) || eC(), eM = F(c), eO = z(c) || eC(), eR = W(c), eA = W(c), eL = Z(d), eF = J(d), ez = ee(d) || eC(), eN = eo(a), eV = en(a), eW = ec(a), eU = ed(a), eq = eu(a), eQ = et(d), eX = er(d), eH = eh(a), eG = em(a), eZ = eg(a), eK = X(c), eY = H(c), eJ = eb(l), e3 = ev(l), e2 = ex(u), e5 = ea(a) || ek(u), e0 = es(a), e1 = G(c), e8 = ey(), e9 = eC(), e4 = eB(), e6 = e_(), e7 = ew(), te = ek(u), tt = ea(a) && !ek(u), tr = K(d), to = Y(d), tn = ep(a), ti = ef(a);
37947
37947
  function ta(t) {
37948
37948
  return f(t || window.navigator.userAgent);
37949
37949
  }
@@ -37953,7 +37953,7 @@
37953
37953
  "children"
37954
37954
  ]);
37955
37955
  return eL ? n ? o.createElement(React.Fragment, null, i) : o.createElement("div", a, i) : null;
37956
- }, nP.BrowserTypes = I, nP.BrowserView = function(r) {
37956
+ }, nP.BrowserTypes = $, nP.BrowserView = function(r) {
37957
37957
  var n = r.renderWithFragment, i = r.children, a = y(r, [
37958
37958
  "renderWithFragment",
37959
37959
  "children"
@@ -38004,7 +38004,7 @@
38004
38004
  "children"
38005
38005
  ]);
38006
38006
  return ej ? n ? o.createElement(React.Fragment, null, i) : o.createElement("div", a, i) : null;
38007
- }, nP.OsTypes = $, nP.SmartTVView = function(r) {
38007
+ }, nP.OsTypes = I, nP.SmartTVView = function(r) {
38008
38008
  var n = r.renderWithFragment, i = r.children, a = y(r, [
38009
38009
  "renderWithFragment",
38010
38010
  "children"
@@ -38029,9 +38029,9 @@
38029
38029
  ]);
38030
38030
  return eF ? n ? o.createElement(React.Fragment, null, i) : o.createElement("div", a, i) : null;
38031
38031
  }, nP.browserName = eZ, nP.browserVersion = eG, nP.deviceDetect = function(t) {
38032
- var r, o, n, i, a, s, c, l, d, u, p, m, g, b, v, w, k, y, C, B, _, x, P = t ? f(t) : h, S = P.device, E = P.browser, T = P.engine, D = P.os, I = P.ua, $ = M(S.type), j = $.isBrowser, R = $.isMobile, A = $.isTablet, F = $.isSmartTV, z = $.isConsole, N = $.isWearable, V = $.isEmbedded;
38032
+ var r, o, n, i, a, s, c, l, d, u, p, m, g, b, v, w, k, y, C, B, _, x, P = t ? f(t) : h, S = P.device, E = P.browser, T = P.engine, D = P.os, $ = P.ua, I = M(S.type), j = I.isBrowser, R = I.isMobile, A = I.isTablet, F = I.isSmartTV, z = I.isConsole, N = I.isWearable, V = I.isEmbedded;
38033
38033
  if (j) {
38034
- return r = j, o = E, n = T, i = D, a = I, {
38034
+ return r = j, o = E, n = T, i = D, a = $, {
38035
38035
  isBrowser: r,
38036
38036
  browserMajorVersion: O(o.major),
38037
38037
  browserFullVersion: O(o.version),
@@ -38044,7 +38044,7 @@
38044
38044
  };
38045
38045
  }
38046
38046
  if (F) {
38047
- return s = F, c = T, l = D, d = I, {
38047
+ return s = F, c = T, l = D, d = $, {
38048
38048
  isSmartTV: s,
38049
38049
  engineName: O(c.name),
38050
38050
  engineVersion: O(c.version),
@@ -38054,7 +38054,7 @@
38054
38054
  };
38055
38055
  }
38056
38056
  if (z) {
38057
- return u = z, p = T, m = D, g = I, {
38057
+ return u = z, p = T, m = D, g = $, {
38058
38058
  isConsole: u,
38059
38059
  engineName: O(p.name),
38060
38060
  engineVersion: O(p.version),
@@ -38063,9 +38063,9 @@
38063
38063
  userAgent: O(g)
38064
38064
  };
38065
38065
  }
38066
- if (R || A) return L($, S, D, I);
38066
+ if (R || A) return L(I, S, D, $);
38067
38067
  if (N) {
38068
- return b = N, v = T, w = D, k = I, {
38068
+ return b = N, v = T, w = D, k = $, {
38069
38069
  isWearable: b,
38070
38070
  engineName: O(v.name),
38071
38071
  engineVersion: O(v.version),
@@ -38075,7 +38075,7 @@
38075
38075
  };
38076
38076
  }
38077
38077
  if (V) {
38078
- return y = V, C = S, B = T, _ = D, x = I, {
38078
+ return y = V, C = S, B = T, _ = D, x = $, {
38079
38079
  isEmbedded: y,
38080
38080
  vendor: O(C.vendor),
38081
38081
  model: O(C.model),
@@ -38096,7 +38096,7 @@
38096
38096
  engine: r.engine,
38097
38097
  ua: r.ua
38098
38098
  });
38099
- }, nP.getUA = e2, nP.isAndroid = eL, nP.isBrowser = eR, nP.isChrome = eN, nP.isChromium = e$, nP.isConsole = eE, nP.isDesktop = eA, nP.isEdge = e5, nP.isEdgeChromium = te, nP.isElectron = e7, nP.isEmbedded = eD, nP.isFirefox = eV, nP.isIE = eq, nP.isIOS = ez, nP.isIOS13 = e8, nP.isIPad13 = e9, nP.isIPhone13 = e4, nP.isIPod13 = e6, nP.isLegacyEdge = tt, nP.isMIUI = tn, nP.isMacOs = to, nP.isMobile = ej, nP.isMobileOnly = eM, nP.isMobileSafari = eI, nP.isOpera = eU, nP.isSafari = eW, nP.isSamsungBrowser = ti, nP.isSmartTV = eS, nP.isTablet = eO, nP.isWearable = eT, nP.isWinPhone = eF, nP.isWindows = tr, nP.isYandex = e0, nP.mobileModel = eY, nP.mobileVendor = eK, nP.osName = eX, nP.osVersion = eQ, nP.parseUserAgent = f, nP.setUserAgent = function(t) {
38099
+ }, nP.getUA = e2, nP.isAndroid = eL, nP.isBrowser = eR, nP.isChrome = eN, nP.isChromium = eI, nP.isConsole = eE, nP.isDesktop = eA, nP.isEdge = e5, nP.isEdgeChromium = te, nP.isElectron = e7, nP.isEmbedded = eD, nP.isFirefox = eV, nP.isIE = eq, nP.isIOS = ez, nP.isIOS13 = e8, nP.isIPad13 = e9, nP.isIPhone13 = e4, nP.isIPod13 = e6, nP.isLegacyEdge = tt, nP.isMIUI = tn, nP.isMacOs = to, nP.isMobile = ej, nP.isMobileOnly = eM, nP.isMobileSafari = e$, nP.isOpera = eU, nP.isSafari = eW, nP.isSamsungBrowser = ti, nP.isSmartTV = eS, nP.isTablet = eO, nP.isWearable = eT, nP.isWinPhone = eF, nP.isWindows = tr, nP.isYandex = e0, nP.mobileModel = eY, nP.mobileVendor = eK, nP.osName = eX, nP.osVersion = eQ, nP.parseUserAgent = f, nP.setUserAgent = function(t) {
38100
38100
  return p(t);
38101
38101
  }, nP.useDeviceData = ta, nP.useDeviceSelectors = function(t) {
38102
38102
  var r = ta(t || window.navigator.userAgent);
@@ -38240,9 +38240,9 @@
38240
38240
  border-spacing: 0;
38241
38241
  table-layout: auto;
38242
38242
  border-collapse: collapse;
38243
- `, nI = dt$1.div`
38243
+ `, n$ = dt$1.div`
38244
38244
  position: relative;
38245
- `, n$ = Array.from([
38245
+ `, nI = Array.from([
38246
38246
  ,
38247
38247
  ,
38248
38248
  ,
@@ -38256,7 +38256,7 @@
38256
38256
  return oZ.jsx(nD, {
38257
38257
  className: s,
38258
38258
  children: oZ.jsx("tbody", {
38259
- children: n$.map((t, s)=>oZ.jsx("tr", {
38259
+ children: nI.map((t, s)=>oZ.jsx("tr", {
38260
38260
  style: {
38261
38261
  height: 0 === s ? n : "auto"
38262
38262
  },
@@ -38270,7 +38270,7 @@
38270
38270
  height: l ? a : "auto",
38271
38271
  ...!l ? c : {}
38272
38272
  },
38273
- children: l ? oZ.jsx(nI, {
38273
+ children: l ? oZ.jsx(n$, {
38274
38274
  style: {
38275
38275
  width: d,
38276
38276
  height: a
@@ -38689,7 +38689,7 @@
38689
38689
  `;
38690
38690
  function nJ(r) {
38691
38691
  var s, c;
38692
- let l, { checkCameraMode: d, frontCamera: u, onClose: p, children: f, onVideoPlayed: w, flipHorizontal: k, videoSettings: y, refVideo: C, onError: B, closeButton: _, videoClassName: x, scale: P, defaultCameraId: S, onWarning: E } = r, T = reactExports.useRef(), { lang: D } = cl$1.useSDKSettings(), { sendEvent: I } = lL.useSDKTracking(), $ = nN("closeButton.src", "ic_close.svg"), [j, M] = reactExports.useState(""), O = reactExports.useRef(!1), R = reactExports.useRef(!1), A = reactExports.useRef(!1), L = reactExports.useRef(), F = reactExports.useRef([]), z = reactExports.useRef(""), N = gm(), V = reactExports.useCallback((t)=>{
38692
+ let l, { checkCameraMode: d, frontCamera: u, onClose: p, children: f, onVideoPlayed: w, flipHorizontal: k, videoSettings: y, refVideo: C, onError: B, closeButton: _, videoClassName: x, scale: P, defaultCameraId: S, onWarning: E } = r, T = reactExports.useRef(), { lang: D } = cl$1.useSDKSettings(), { sendEvent: $ } = lL.useSDKTracking(), I = nN("closeButton.src", "ic_close.svg"), [j, M] = reactExports.useState(""), O = reactExports.useRef(!1), R = reactExports.useRef(!1), A = reactExports.useRef(!1), L = reactExports.useRef(), F = reactExports.useRef([]), z = reactExports.useRef(""), N = gm(), V = reactExports.useCallback((t)=>{
38693
38693
  B && B(t);
38694
38694
  }, [
38695
38695
  B
@@ -38767,13 +38767,13 @@
38767
38767
  }
38768
38768
  }, p = await navigator.mediaDevices.getUserMedia(n);
38769
38769
  if (await U(), q(), !p) return M(N("not_supported")), V(nQ.not_supported), null;
38770
- a(performance.now(), "end"), window.tv_last_req_camera_complete = !0, c() - s() < 1600 ? I({
38770
+ a(performance.now(), "end"), window.tv_last_req_camera_complete = !0, c() - s() < 1600 ? $({
38771
38771
  tag: "cam_permission",
38772
38772
  event: "user_activity.cam",
38773
38773
  log: {
38774
38774
  already_enable: !0
38775
38775
  }
38776
- }) : I({
38776
+ }) : $({
38777
38777
  tag: "cam_permission",
38778
38778
  event: "user_activity.allow",
38779
38779
  log: {}
@@ -38787,7 +38787,7 @@
38787
38787
  } catch (t) {}
38788
38788
  return p;
38789
38789
  } catch (t) {
38790
- a(performance.now(), "end"), "NotAllowedError" === t.name ? (M(N("no_permission")), V(nQ.no_permission), R.current = !0, I({
38790
+ a(performance.now(), "end"), "NotAllowedError" === t.name ? (M(N("no_permission")), V(nQ.no_permission), R.current = !0, $({
38791
38791
  tag: "cam_permission",
38792
38792
  event: "user_activity.cam",
38793
38793
  log: c() - s() < 1600 ? {
@@ -38808,7 +38808,7 @@
38808
38808
  q,
38809
38809
  N,
38810
38810
  V,
38811
- I
38811
+ $
38812
38812
  ]), X = reactExports.useCallback(async (t = S, r = !1)=>{
38813
38813
  let o = C.current;
38814
38814
  if (o?.srcObject?.id && o?.srcObject?.active && O.current) return;
@@ -38896,7 +38896,7 @@
38896
38896
  N
38897
38897
  ]);
38898
38898
  let H = reactExports.useCallback(()=>{
38899
- W(), p && p(), I({
38899
+ W(), p && p(), $({
38900
38900
  tag: "result",
38901
38901
  event: "user_activity.cancel",
38902
38902
  log: {}
@@ -38904,7 +38904,7 @@
38904
38904
  }, [
38905
38905
  p,
38906
38906
  W,
38907
- I
38907
+ $
38908
38908
  ]);
38909
38909
  return s = C, c = y, l = reactExports.useRef(null), reactExports.useEffect(()=>{
38910
38910
  let t = s.current, r = !1, o = async ()=>{
@@ -38973,7 +38973,7 @@
38973
38973
  onClick: H,
38974
38974
  "data-testid": "close-camera",
38975
38975
  children: oZ.jsx("img", {
38976
- src: $,
38976
+ src: I,
38977
38977
  alt: ""
38978
38978
  })
38979
38979
  })
@@ -39241,7 +39241,7 @@
39241
39241
  }, il = /*#__PURE__*/ reactExports.forwardRef(function(r, a) {
39242
39242
  var s = r.trigger, c = void 0 === s ? null : s, l = r.onOpen, u = void 0 === l ? function() {} : l, p = r.onClose, f = void 0 === p ? function() {} : p, h = r.defaultOpen, m = r.open, g = void 0 === m ? void 0 : m, b = r.disabled, v = void 0 !== b && b, w = r.nested, k = void 0 !== w && w, y = r.closeOnDocumentClick, C = void 0 === y || y, B = r.repositionOnResize, _ = r.closeOnEscape, x = r.on, P = void 0 === x ? [
39243
39243
  "click"
39244
- ] : x, S = r.contentStyle, E = void 0 === S ? {} : S, T = r.arrowStyle, D = void 0 === T ? {} : T, I = r.overlayStyle, $ = r.className, j = void 0 === $ ? "" : $, M = r.position, O = void 0 === M ? "bottom center" : M, R = r.modal, A = void 0 !== R && R, L = r.lockScroll, F = void 0 !== L && L, z = r.arrow, N = void 0 === z || z, V = r.offsetX, W = void 0 === V ? 0 : V, U = r.offsetY, q = void 0 === U ? 0 : U, Q = r.mouseEnterDelay, X = void 0 === Q ? 100 : Q, H = r.mouseLeaveDelay, Z = void 0 === H ? 100 : H, K = r.keepTooltipInside, Y = void 0 !== K && K, J = r.children, ee = reactExports.useState(g || void 0 !== h && h), et = ee[0], er = ee[1], eo = reactExports.useRef(null), en = reactExports.useRef(null), ei = reactExports.useRef(null), ea = reactExports.useRef(null), es = reactExports.useRef("popup-" + ++is), ec = !!A || !c, el = reactExports.useRef(0);
39244
+ ] : x, S = r.contentStyle, E = void 0 === S ? {} : S, T = r.arrowStyle, D = void 0 === T ? {} : T, $ = r.overlayStyle, I = r.className, j = void 0 === I ? "" : I, M = r.position, O = void 0 === M ? "bottom center" : M, R = r.modal, A = void 0 !== R && R, L = r.lockScroll, F = void 0 !== L && L, z = r.arrow, N = void 0 === z || z, V = r.offsetX, W = void 0 === V ? 0 : V, U = r.offsetY, q = void 0 === U ? 0 : U, Q = r.mouseEnterDelay, X = void 0 === Q ? 100 : Q, H = r.mouseLeaveDelay, Z = void 0 === H ? 100 : H, K = r.keepTooltipInside, Y = void 0 !== K && K, J = r.children, ee = reactExports.useState(g || void 0 !== h && h), et = ee[0], er = ee[1], eo = reactExports.useRef(null), en = reactExports.useRef(null), ei = reactExports.useRef(null), ea = reactExports.useRef(null), es = reactExports.useRef("popup-" + ++is), ec = !!A || !c, el = reactExports.useRef(0);
39245
39245
  n6(function() {
39246
39246
  return et ? (ea.current = document.activeElement, ew(), ev(), eg()) : eb(), function() {
39247
39247
  clearTimeout(el.current);
@@ -39356,7 +39356,7 @@
39356
39356
  className: "popup-overlay " + ("" !== j ? j.split(" ").map(function(t) {
39357
39357
  return t + "-overlay";
39358
39358
  }).join(" ") : ""),
39359
- style: n0({}, eB, void 0 === I ? {} : I, {
39359
+ style: n0({}, eB, void 0 === $ ? {} : $, {
39360
39360
  pointerEvents: C && k || ec ? "auto" : "none"
39361
39361
  }),
39362
39362
  onClick: C && k ? eu : void 0,
@@ -39565,7 +39565,6 @@
39565
39565
  borderRadius: sc.DesignToken.CornerRadius.xs,
39566
39566
  color: sc.DesignToken.Color.base.white,
39567
39567
  padding: sc.DesignToken.Spacing.sm,
39568
- bottomOffset: "24px",
39569
39568
  leftOffset: "24px",
39570
39569
  focusOutlineColor: sc.DesignToken.Color.base.white
39571
39570
  },
@@ -39575,7 +39574,6 @@
39575
39574
  borderRadius: sc.DesignToken.CornerRadius.xs,
39576
39575
  fontSize: "14px",
39577
39576
  padding: "10px 16px",
39578
- bottomOffset: "90px",
39579
39577
  maxWidthInset: "48px"
39580
39578
  },
39581
39579
  QRStep: {
@@ -39847,7 +39845,7 @@
39847
39845
  animation-duration: 1000ms;
39848
39846
  animation-timing-function: linear;
39849
39847
  }
39850
- `, iI = nT.isMobile ? 200 : 400, i$ = nT.isMobile ? 150 : 300, ij = {
39848
+ `, i$ = nT.isMobile ? 200 : 400, iI = nT.isMobile ? 150 : 300, ij = {
39851
39849
  ID_CARD: "id_card",
39852
39850
  QR_CODE: "qr_code"
39853
39851
  }, iM = "raw", { Errors: iO } = sc;
@@ -40761,7 +40759,7 @@
40761
40759
  if (void 0 === t) throw Error("useSDKCallback must be used within a SDKCallbackProvider");
40762
40760
  return t;
40763
40761
  }, aD = (t)=>"number" == typeof t && t > 0;
40764
- let aI = class aI {
40762
+ let a$ = class a$ {
40765
40763
  getVideoChunks() {
40766
40764
  return this._videoChunks;
40767
40765
  }
@@ -40840,8 +40838,8 @@
40840
40838
  this._videoChunks = [], this._stream = null, this._stopDrawing = !1, this._animationFrameId = null, this._lastFrameTime = 0, this.MAX_VIDEO_BITRATE = 1e6, this.DEFAULT_VIDEO_FPS = 16, this._mediaRecorder = null, this._resolveSave = null, this._rejectSave = null;
40841
40839
  }
40842
40840
  };
40843
- let a$ = ({ shouldRecord: t })=>{
40844
- let r = reactExports.useRef(!1), i = reactExports.useMemo(()=>new aI, []), s = reactExports.useRef(null), c = reactExports.useRef(null), l = reactExports.useCallback(async (o)=>{
40841
+ let aI = ({ shouldRecord: t })=>{
40842
+ let r = reactExports.useRef(!1), i = reactExports.useMemo(()=>new a$, []), s = reactExports.useRef(null), c = reactExports.useRef(null), l = reactExports.useCallback(async (o)=>{
40845
40843
  if (!r.current && t) try {
40846
40844
  let { mediaRecorder: t } = await i.initiate(o);
40847
40845
  t && (s.current = t, s.current.start()), r.current = !0, c.current = o;
@@ -41104,9 +41102,8 @@
41104
41102
  }
41105
41103
  let aQ = dt$1.button`
41106
41104
  position: fixed;
41107
- bottom: ${nz("IDUploadButton.bottomOffset")};
41108
- left: ${nz("IDUploadButton.leftOffset")};
41109
41105
  z-index: ${1010};
41106
+ left: ${nz("IDUploadButton.leftOffset")};
41110
41107
 
41111
41108
  display: inline-flex;
41112
41109
  align-items: center;
@@ -41121,6 +41118,14 @@
41121
41118
  padding: ${nz("IDUploadButton.padding")};
41122
41119
  cursor: pointer;
41123
41120
 
41121
+ ${({ $yButtonRow: t, $bottomOffset: r })=>nT.isMobile && null != t ? lt$1`
41122
+ top: calc(${t}px + (${nz("IDCapturing.captureIcon.height")} - ${56}px) / 2);
41123
+ ` : lt$1`
41124
+ bottom: calc(
41125
+ ${r}px + (${nz("IDCapturing.captureIcon.height")} - ${56}px) / 2
41126
+ );
41127
+ `}
41128
+
41124
41129
  &:disabled {
41125
41130
  opacity: 0.5;
41126
41131
  cursor: not-allowed;
@@ -41134,12 +41139,14 @@
41134
41139
  width: 32px;
41135
41140
  height: 32px;
41136
41141
  display: block;
41137
- `, aH = ({ onClick: t, label: r, disabled: o = !1 })=>oZ.jsx(aQ, {
41142
+ `, aH = ({ onClick: t, label: r, disabled: o = !1, yButtonRow: n, bottomOffset: i })=>oZ.jsx(aQ, {
41138
41143
  type: "button",
41139
41144
  onClick: t,
41140
41145
  disabled: o,
41141
41146
  "aria-label": r,
41142
41147
  "data-testid": "id-upload-button",
41148
+ $yButtonRow: n,
41149
+ $bottomOffset: i,
41143
41150
  children: oZ.jsx(aX, {
41144
41151
  viewBox: "0 0 32 32",
41145
41152
  fill: "none",
@@ -41296,10 +41303,8 @@
41296
41303
  }) : a3(t, i, a, aK);
41297
41304
  }, a8 = "undefined" != typeof window && "undefined" != typeof HTMLInputElement && "oncancel" in HTMLInputElement.prototype, a9 = dt$1.button`
41298
41305
  position: fixed;
41299
- bottom: ${nz("IDUploadErrorToast.bottomOffset")};
41300
- left: 50%;
41301
- transform: translateX(-50%);
41302
41306
  z-index: ${1011};
41307
+ left: 50%;
41303
41308
 
41304
41309
  max-width: calc(100% - ${nz("IDUploadErrorToast.maxWidthInset")});
41305
41310
  padding: ${nz("IDUploadErrorToast.padding")};
@@ -41311,8 +41316,22 @@
41311
41316
  line-height: 1.4;
41312
41317
  text-align: center;
41313
41318
  cursor: pointer;
41314
- `, a4 = ({ uploadFromDevice: t, uploadFlowAPI: r, scanControl: s, isCaptureInFlight: c, shouldShowSpinner: l })=>{
41315
- let d = gm(), u = !!t?.enable, { inputRef: p, handleUploadClick: f, handleFileChange: h, handleInputCancel: b, isProcessing: v, errorCode: w, dismissError: k } = (({ enabled: t, enableConfirmPopup: r, uploadFlowAPI: s, scanControl: c })=>{
41319
+
41320
+ ${({ $yButtonRow: t, $bottomOffset: r })=>nT.isMobile && null != t ? lt$1`
41321
+ top: calc(
41322
+ ${t}px + (${nz("IDCapturing.captureIcon.height")} - ${56}px) / 2 -
41323
+ ${16}px
41324
+ );
41325
+ transform: translate(-50%, -100%);
41326
+ ` : lt$1`
41327
+ bottom: calc(
41328
+ ${r}px + (${nz("IDCapturing.captureIcon.height")} - ${56}px) / 2 +
41329
+ ${56}px + ${16}px
41330
+ );
41331
+ transform: translateX(-50%);
41332
+ `}
41333
+ `, a4 = ({ uploadFromDevice: t, uploadFlowAPI: r, scanControl: s, isCaptureInFlight: c, shouldShowSpinner: l, yButtonRow: d, bottomOffset: u })=>{
41334
+ let p = gm(), f = !!t?.enable, { inputRef: h, handleUploadClick: b, handleFileChange: v, handleInputCancel: w, isProcessing: k, errorCode: y, dismissError: C } = (({ enabled: t, enableConfirmPopup: r, uploadFlowAPI: s, scanControl: c })=>{
41316
41335
  let l = reactExports.useRef(null), [d, u] = reactExports.useState(!1), [p, f] = reactExports.useState(null), { sendEvent: h } = lL.useSDKTracking();
41317
41336
  reactExports.useEffect(()=>{
41318
41337
  if (null === p) return;
@@ -41423,39 +41442,43 @@
41423
41442
  dismissError: g
41424
41443
  };
41425
41444
  })({
41426
- enabled: u,
41445
+ enabled: f,
41427
41446
  enableConfirmPopup: t?.enableConfirmPopup !== !1,
41428
41447
  uploadFlowAPI: r,
41429
41448
  scanControl: s
41430
41449
  });
41431
41450
  if (reactExports.useEffect(()=>{
41432
- let t = p.current;
41433
- if (t) return t.addEventListener("cancel", b), ()=>t.removeEventListener("cancel", b);
41451
+ let t = h.current;
41452
+ if (t) return t.addEventListener("cancel", w), ()=>t.removeEventListener("cancel", w);
41434
41453
  }, [
41435
- p,
41436
- b
41437
- ]), !u) return null;
41438
- let y = d("upload_button_label"), C = w ? d(w) : "";
41454
+ h,
41455
+ w
41456
+ ]), !f) return null;
41457
+ let B = p("upload_button_label"), _ = y ? p(y) : "";
41439
41458
  return oZ.jsxs(oZ.Fragment, {
41440
41459
  children: [
41441
- w && oZ.jsx(a9, {
41460
+ y && oZ.jsx(a9, {
41442
41461
  type: "button",
41443
- onClick: k,
41462
+ onClick: C,
41444
41463
  "aria-live": "polite",
41445
- "aria-label": C,
41464
+ "aria-label": _,
41446
41465
  "data-testid": "id-upload-error-toast",
41447
- children: C
41466
+ $yButtonRow: d,
41467
+ $bottomOffset: u,
41468
+ children: _
41448
41469
  }),
41449
41470
  oZ.jsx(aH, {
41450
- onClick: f,
41451
- label: y,
41452
- disabled: l || v || c
41471
+ onClick: b,
41472
+ label: B,
41473
+ disabled: l || k || c,
41474
+ yButtonRow: d,
41475
+ bottomOffset: u
41453
41476
  }),
41454
41477
  oZ.jsx("input", {
41455
- ref: p,
41478
+ ref: h,
41456
41479
  type: "file",
41457
41480
  accept: "image/jpeg",
41458
- onChange: h,
41481
+ onChange: v,
41459
41482
  style: {
41460
41483
  display: "none"
41461
41484
  },
@@ -41465,7 +41488,7 @@
41465
41488
  ]
41466
41489
  });
41467
41490
  }, a6 = /*#__PURE__*/ reactExports.forwardRef((t, r)=>{
41468
- let { description: s, usePortraitMask: l, windowAndVideoInfo: u, refVideo: f, frontSide: k, allowedCardTypes: y, settings: B, onCaptureDone: _, onUISpacingChange: S, outputEncryptionSettings: E, isShowingSpinner: T, uploadFromDevice: D, uploadFlowAPI: F } = t, z = nt$2(), [N, V] = reactExports.useState({}), { yMessage: U, yCaptureButton: q, yToggleButton: Q, yInstruction: X, yCountdown: H } = N, G = nN("IDCapturing.captureIcon.src", "ic_camera.svg"), Z = nN("IDCapturing.captureIcon.disabled.src", "ic_camera.svg"), K = nz("IDCapturing.countdown.color")({
41491
+ let { description: s, usePortraitMask: l, windowAndVideoInfo: u, refVideo: f, frontSide: k, allowedCardTypes: y, settings: B, onCaptureDone: _, onUISpacingChange: S, outputEncryptionSettings: E, isShowingSpinner: T, uploadFromDevice: D, uploadFlowAPI: F } = t, z = nt$2(), [N, V] = reactExports.useState({}), { yMessage: U, yButtonRow: q, yToggleButton: Q, yInstruction: X, yCountdown: H } = N, G = nN("IDCapturing.captureIcon.src", "ic_camera.svg"), Z = nN("IDCapturing.captureIcon.disabled.src", "ic_camera.svg"), K = nz("IDCapturing.countdown.color")({
41469
41492
  theme: z
41470
41493
  }), Y = nN("IDCapturing.loadingIcon.src", "ic_loading.gif"), [J, ee] = reactExports.useState(""), et = gm(), [er, eo] = reactExports.useState(null), [en, ei] = reactExports.useState(""), [ea, es] = reactExports.useState(null), { showPopup: ec, popupShown: el, popupType: ed } = au(), eu = reactExports.useContext(aR), [ep, ef] = reactExports.useState(!1), eh = reactExports.useRef(()=>{}), em = reactExports.useCallback((t)=>{
41471
41494
  null === t ? ei("") : ei(et(t?.code, {
@@ -41816,10 +41839,10 @@
41816
41839
  ...S.detectedCard,
41817
41840
  cardType: g?.[0]?.code
41818
41841
  });
41819
- let $ = document.createElement("canvas"), j = $.getContext("2d");
41820
- $.width = T.width, $.height = T.height, j.putImageData(T, 0, 0), S.predictedIdCardCanvas = $;
41842
+ let I = document.createElement("canvas"), j = I.getContext("2d");
41843
+ I.width = T.width, I.height = T.height, j.putImageData(T, 0, 0), S.predictedIdCardCanvas = I;
41821
41844
  let [M, O] = c ? await iA({
41822
- canvas: $,
41845
+ canvas: I,
41823
41846
  glareThreshold: l
41824
41847
  }) : [
41825
41848
  !1
@@ -41830,11 +41853,11 @@
41830
41853
  }, M) return E("glare_detected");
41831
41854
  if (y = d ? await iL({
41832
41855
  blazefaceModel: o,
41833
- predictedIdCardCanvas: $,
41856
+ predictedIdCardCanvas: I,
41834
41857
  frontSide: r
41835
41858
  }) : await iF({
41836
41859
  blazefaceModel: o,
41837
- predictedIdCardCanvas: $,
41860
+ predictedIdCardCanvas: I,
41838
41861
  frontSide: r,
41839
41862
  hasFrontFace: u,
41840
41863
  hasBackFace: p,
@@ -41897,13 +41920,13 @@
41897
41920
  f.recordVideoFps,
41898
41921
  f.recordVideoFrameHeight,
41899
41922
  f.recordVideoFrameWidth
41900
- ]), { startRecording: eu, stopRecording: ep, resetRecording: ef } = a$({
41923
+ ]), { startRecording: eu, stopRecording: ep, resetRecording: ef } = aI({
41901
41924
  shouldRecord: reactExports.useMemo(()=>g ? f.enableRecordCapturingFront : f.enableRecordCapturingBack, [
41902
41925
  g,
41903
41926
  f.enableRecordCapturingBack,
41904
41927
  f.enableRecordCapturingFront
41905
41928
  ])
41906
- }), { startRecording: eh, stopRecording: em, resetRecording: eg } = a$({
41929
+ }), { startRecording: eh, stopRecording: em, resetRecording: eg } = aI({
41907
41930
  shouldRecord: reactExports.useMemo(()=>g ? f.enableRecordFullSessionFront : f.enableRecordFullSessionBack, [
41908
41931
  g,
41909
41932
  f.enableRecordFullSessionBack,
@@ -42072,7 +42095,7 @@
42072
42095
  r,
42073
42096
  k,
42074
42097
  en
42075
- ]), eI = reactExports.useCallback(async ({ blurScore: t, detectedCard: o, glareScore: n, runtime: i })=>{
42098
+ ]), e$ = reactExports.useCallback(async ({ blurScore: t, detectedCard: o, glareScore: n, runtime: i })=>{
42076
42099
  z.current = !0;
42077
42100
  let a = A.current;
42078
42101
  if (f.enableBlurCheck && H.current.push(t), f.enableGlareCheck && G.current.push(n), iW({
@@ -42101,7 +42124,7 @@
42101
42124
  k,
42102
42125
  f,
42103
42126
  en
42104
- ]), e$ = reactExports.useCallback(async ()=>{
42127
+ ]), eI = reactExports.useCallback(async ()=>{
42105
42128
  let { autoCaptureWaitForBestImageTimeMs: t } = f, r = R.current;
42106
42129
  if (null !== r.imageBlob && new Date().getTime() - L.current > t) {
42107
42130
  let t = await eC();
@@ -42193,7 +42216,7 @@
42193
42216
  ek,
42194
42217
  en
42195
42218
  ]), eR = reactExports.useRef(null), eA = reactExports.useRef(null), eL = reactExports.useRef({});
42196
- reactExports.useEffect(()=>(y && (eR.current = document.createElement("canvas"), eR.current.width = iI, eR.current.height = i$, document.body.appendChild(eR.current), eR.current.style.position = "fixed", eR.current.style.bottom = "0", eR.current.style.right = "0", eR.current.style.zIndex = "9999", eA.current = document.createElement("canvas"), eA.current.width = 150, eA.current.height = 170, document.body.appendChild(eA.current), eA.current.style.position = "fixed", eA.current.style.bottom = "0", eA.current.style.left = "0", eA.current.style.zIndex = "9999"), ()=>{
42219
+ reactExports.useEffect(()=>(y && (eR.current = document.createElement("canvas"), eR.current.width = i$, eR.current.height = iI, document.body.appendChild(eR.current), eR.current.style.position = "fixed", eR.current.style.bottom = "0", eR.current.style.right = "0", eR.current.style.zIndex = "9999", eA.current = document.createElement("canvas"), eA.current.width = 150, eA.current.height = 170, document.body.appendChild(eA.current), eA.current.style.position = "fixed", eA.current.style.bottom = "0", eA.current.style.left = "0", eA.current.style.zIndex = "9999"), ()=>{
42197
42220
  y && (document.body.removeChild(eR.current), document.body.removeChild(eA.current));
42198
42221
  }), [
42199
42222
  y
@@ -42240,7 +42263,7 @@
42240
42263
  ...eL.current,
42241
42264
  ...n.blurDebugInfo
42242
42265
  }), n.predictedIdCardCanvas && f.enableScanQRBackground && (g ? f.hasFrontQr : f.hasBackQr) && er(n.predictedIdCardCanvas, p), y) {
42243
- var k, C, B, x, P, S, I, M;
42266
+ var k, C, B, x, P, S, $, M;
42244
42267
  let r, o, i, a = nn(t, "card.label"), f = nn(t, "card.corners");
42245
42268
  eL.current = {
42246
42269
  ...eL.current,
@@ -42250,7 +42273,7 @@
42250
42273
  ...eL.current,
42251
42274
  ...ei()
42252
42275
  }, ho.drawDebugCanvas(eA.current, eL.current);
42253
- let h = iI / p.width, m = eR.current.getContext("2d");
42276
+ let h = i$ / p.width, m = eR.current.getContext("2d");
42254
42277
  m.clearRect(0, 0, eR.current.width, eR.current.height), m.drawImage(l.current, s, c, d, u, 0, 0, p.width * h, p.height * h);
42255
42278
  n.facePredictions && n.bboxes && f && (k = m, C = n.facePredictions, B = n.bboxes, x = f, P = h, r = x.find((t)=>"top-left" === t.label).location, Array.isArray(C) && C.length > 0 && function(t, r, o, n) {
42256
42279
  if (!o) return;
@@ -42261,12 +42284,12 @@
42261
42284
  iU(t.bboxes, "blue", k, P, r);
42262
42285
  }), i = B.filter((t)=>"large" === t.lapType), i.length > 0 && i.forEach((t)=>{
42263
42286
  iU(t.bboxes, "green", k, P, r);
42264
- }), S = x.map((t)=>t.location), I = k, M = P, I && (I.strokeStyle = "red", I.lineWidth = 2, S.forEach((t)=>{
42287
+ }), S = x.map((t)=>t.location), $ = k, M = P, $ && ($.strokeStyle = "red", $.lineWidth = 2, S.forEach((t)=>{
42265
42288
  let r = t.x * M, o = t.y * M;
42266
- I.beginPath(), I.arc(r, o, 5, 0, 2 * Math.PI), I.stroke();
42289
+ $.beginPath(), $.arc(r, o, 5, 0, 2 * Math.PI), $.stroke();
42267
42290
  })));
42268
42291
  }
42269
- m(n.error), !n.error && (F.current && await eI({
42292
+ m(n.error), !n.error && (F.current && await e$({
42270
42293
  blurScore: n.blurScore,
42271
42294
  detectedCard: n.detectedCard,
42272
42295
  glareScore: n.glareScore,
@@ -42276,7 +42299,7 @@
42276
42299
  detectedCard: n.detectedCard,
42277
42300
  glareScore: n.glareScore,
42278
42301
  runtime: n.runtime
42279
- }))), await e$();
42302
+ }))), await eI();
42280
42303
  }
42281
42304
  let O = 180 - (w = Math.floor(performance.now() - w)) > 0 ? 180 - w : 0;
42282
42305
  await new Promise((t)=>setTimeout(t, O)), t === Y.current && (Y.current = window.requestAnimationFrame(v));
@@ -42291,11 +42314,11 @@
42291
42314
  Q,
42292
42315
  el,
42293
42316
  m,
42294
- e$,
42317
+ eI,
42295
42318
  b,
42296
42319
  eE,
42297
42320
  ek,
42298
- eI,
42321
+ e$,
42299
42322
  eD,
42300
42323
  y,
42301
42324
  g,
@@ -42450,7 +42473,7 @@
42450
42473
  ];
42451
42474
  t.length > 0 && (x = t.reduce((t, r, o)=>(t[`hash${o + 1}`] = r, t), {}));
42452
42475
  }
42453
- let P = l?.trackCardCoordinates, T = l?.trackCardCoordinatesMaxLength ?? 150, I = `[${ep.current.slice(-T).toString()}]`, $ = v;
42476
+ let P = l?.trackCardCoordinates, T = l?.trackCardCoordinatesMaxLength ?? 150, $ = `[${ep.current.slice(-T).toString()}]`, I = v;
42454
42477
  if (v?.imageBlob) {
42455
42478
  let { qr_scan_attempts: t, qr_found: r } = eb(), o = await f$.writeCurrentExif({
42456
42479
  imageData: {
@@ -42464,7 +42487,7 @@
42464
42487
  }
42465
42488
  }
42466
42489
  });
42467
- $ = {
42490
+ I = {
42468
42491
  ...v,
42469
42492
  imageBlob: o
42470
42493
  };
@@ -42472,7 +42495,7 @@
42472
42495
  if (f$.addExifData("user_action", {
42473
42496
  start_id_card: N.current,
42474
42497
  end_id_card: Date.now()
42475
- }), f$.addExifData("image_source", "capture"), f$.addExifData("id_detection_settings.blur_check.large_threshold", er), f$.addExifData("id_detection_settings.blur_check.small_threshold", et), f$.addExifData("capture_time", a), f$.addExifData("type", i?.label), k && f$.addExifData("v_cam", x), f$.addExifData("capture_count", s), f$.addExifData("capture_duration", c), f$.addExifData("capture_type", d), P && f$.addExifData("card_tracking", I), _ && (f$.addExifData("model_score.blurry_score", f), f$.addExifData("blur_score_frames", JSON.stringify(ef.current))), C && (f$.addExifData("model_score.glare_score", h), f$.addExifData("glare_score_frames", JSON.stringify(eh.current))), w && f$.addExifData("check_runtime", w), l?.enableScanQRBackground) {
42498
+ }), f$.addExifData("image_source", "capture"), f$.addExifData("id_detection_settings.blur_check.large_threshold", er), f$.addExifData("id_detection_settings.blur_check.small_threshold", et), f$.addExifData("capture_time", a), f$.addExifData("type", i?.label), k && f$.addExifData("v_cam", x), f$.addExifData("capture_count", s), f$.addExifData("capture_duration", c), f$.addExifData("capture_type", d), P && f$.addExifData("card_tracking", $), _ && (f$.addExifData("model_score.blurry_score", f), f$.addExifData("blur_score_frames", JSON.stringify(ef.current))), C && (f$.addExifData("model_score.glare_score", h), f$.addExifData("glare_score_frames", JSON.stringify(eh.current))), w && f$.addExifData("check_runtime", w), l?.enableScanQRBackground) {
42476
42499
  let { qr_scan_attempts: t, qr_found: r } = eb();
42477
42500
  f$.addExifData("scan_qr_background", {
42478
42501
  qr_scan_attempts: t,
@@ -42508,7 +42531,7 @@
42508
42531
  recordedVideos: [],
42509
42532
  fullVideo: m,
42510
42533
  capturingVideo: g,
42511
- qrScannedResults: $
42534
+ qrScannedResults: I
42512
42535
  }), F({
42513
42536
  tag: u ? "id_front" : "id_back",
42514
42537
  event: "user_activity",
@@ -42639,7 +42662,7 @@
42639
42662
  et
42640
42663
  ]),
42641
42664
  outputEncryptionSettings: E
42642
- }), eI = reactExports.useMemo(()=>({
42665
+ }), e$ = reactExports.useMemo(()=>({
42643
42666
  pauseScan: eE,
42644
42667
  resumeScan: eT,
42645
42668
  setUploadInProgress: eD,
@@ -42649,7 +42672,7 @@
42649
42672
  eT,
42650
42673
  eD,
42651
42674
  eB
42652
- ]), e$ = reactExports.useCallback(()=>{
42675
+ ]), eI = reactExports.useCallback(()=>{
42653
42676
  ec({
42654
42677
  popupType: null
42655
42678
  }), e_();
@@ -42657,9 +42680,9 @@
42657
42680
  ec,
42658
42681
  e_
42659
42682
  ]), ej = reactExports.useCallback(async ()=>{
42660
- ef(!1), e$(), await eB();
42683
+ ef(!1), eI(), await eB();
42661
42684
  }, [
42662
- e$,
42685
+ eI,
42663
42686
  eB
42664
42687
  ]);
42665
42688
  eh.current = ej;
@@ -42681,7 +42704,7 @@
42681
42704
  let m = {
42682
42705
  yTitle: t,
42683
42706
  yMessage: n,
42684
- yCaptureButton: r,
42707
+ yButtonRow: r,
42685
42708
  yToggleButton: o,
42686
42709
  yInstruction: s + a / 2 - 100,
42687
42710
  yCountdown: o + 35
@@ -42818,9 +42841,11 @@
42818
42841
  oZ.jsx(a4, {
42819
42842
  uploadFromDevice: D,
42820
42843
  uploadFlowAPI: F,
42821
- scanControl: eI,
42844
+ scanControl: e$,
42822
42845
  isCaptureInFlight: ey,
42823
- shouldShowSpinner: T
42846
+ shouldShowSpinner: T,
42847
+ yButtonRow: q,
42848
+ bottomOffset: 10
42824
42849
  })
42825
42850
  ]
42826
42851
  });
@@ -43194,9 +43219,9 @@
43194
43219
  var _ = n.BitMatrix.createEmpty(r, o), x = null;
43195
43220
  a && (x = n.BitMatrix.createEmpty(r, o));
43196
43221
  for(var g = 0; g < h; g++)for(var b = 0; b < f; b++){
43197
- for(var P, S, E, T, D = (P = b, S = f - 3, P < 2 ? 2 : P > S ? S : P), I = (E = g, T = h - 3, E < 2 ? 2 : E > T ? T : E), v = 0, $ = -2; $ <= 2; $++)for(var j = -2; j <= 2; j++)v += m.get(D + $, I + j);
43198
- for(var M = v / 25, $ = 0; $ < 8; $++)for(var j = 0; j < 8; j++){
43199
- var c = 8 * b + $, l = 8 * g + j, O = s.get(c, l);
43222
+ for(var P, S, E, T, D = (P = b, S = f - 3, P < 2 ? 2 : P > S ? S : P), $ = (E = g, T = h - 3, E < 2 ? 2 : E > T ? T : E), v = 0, I = -2; I <= 2; I++)for(var j = -2; j <= 2; j++)v += m.get(D + I, $ + j);
43223
+ for(var M = v / 25, I = 0; I < 8; I++)for(var j = 0; j < 8; j++){
43224
+ var c = 8 * b + I, l = 8 * g + j, O = s.get(c, l);
43200
43225
  _.set(c, l, O <= M), a && x.set(c, l, !(O <= M));
43201
43226
  }
43202
43227
  }
@@ -53707,17 +53732,17 @@
53707
53732
  bottomLeft: h,
53708
53733
  topLeft: m,
53709
53734
  topRight: g
53710
- }), E = S.topRight, T = S.topLeft, D = S.bottomLeft, I = u(t, C, E, T, D), $ = [];
53711
- I && $.push({
53735
+ }), E = S.topRight, T = S.topLeft, D = S.bottomLeft, $ = u(t, C, E, T, D), I = [];
53736
+ $ && I.push({
53712
53737
  alignmentPattern: {
53713
- x: I.alignmentPattern.x,
53714
- y: I.alignmentPattern.y
53738
+ x: $.alignmentPattern.x,
53739
+ y: $.alignmentPattern.y
53715
53740
  },
53716
53741
  bottomLeft: {
53717
53742
  x: D.x,
53718
53743
  y: D.y
53719
53744
  },
53720
- dimension: I.dimension,
53745
+ dimension: $.dimension,
53721
53746
  topLeft: {
53722
53747
  x: T.x,
53723
53748
  y: T.y
@@ -53728,7 +53753,7 @@
53728
53753
  }
53729
53754
  });
53730
53755
  var j = d(t, E), M = d(t, T), O = d(t, D), R = u(t, C, j, M, O);
53731
- return (R && $.push({
53756
+ return (R && I.push({
53732
53757
  alignmentPattern: {
53733
53758
  x: R.alignmentPattern.x,
53734
53759
  y: R.alignmentPattern.y
@@ -53746,7 +53771,7 @@
53746
53771
  y: j.y
53747
53772
  },
53748
53773
  dimension: R.dimension
53749
- }), 0 === $.length) ? null : $;
53774
+ }), 0 === I.length) ? null : I;
53750
53775
  };
53751
53776
  }
53752
53777
  ]).default;
@@ -54191,7 +54216,7 @@
54191
54216
  var n = o ? t(r.buffer) : r.buffer;
54192
54217
  return new r.constructor(n, r.byteOffset, r.length);
54193
54218
  };
54194
- }(), n = rI ? rD : (rI = 1, rD = function(t, r) {
54219
+ }(), n = r$ ? rD : (r$ = 1, rD = function(t, r) {
54195
54220
  var o = -1, n = t.length;
54196
54221
  for(r || (r = Array(n)); ++o < n;)r[o] = t[o];
54197
54222
  return r;
@@ -54199,10 +54224,10 @@
54199
54224
  if (rN) return rz;
54200
54225
  rN = 1;
54201
54226
  var t = function() {
54202
- if (rj) return r$;
54227
+ if (rj) return rI;
54203
54228
  rj = 1;
54204
54229
  var t = o1(), r = Object.create;
54205
- return r$ = function() {
54230
+ return rI = function() {
54206
54231
  function o() {}
54207
54232
  return function(n) {
54208
54233
  if (!t(n)) return {};
@@ -54318,14 +54343,14 @@
54318
54343
  if (oA) return oR;
54319
54344
  oA = 1;
54320
54345
  var t = function() {
54321
- if (oj) return o$;
54346
+ if (oj) return oI;
54322
54347
  oj = 1;
54323
- var t = oI ? oD : (oI = 1, oD = function(t) {
54348
+ var t = o$ ? oD : (o$ = 1, oD = function(t) {
54324
54349
  return function() {
54325
54350
  return t;
54326
54351
  };
54327
54352
  }), r = s6(), o = ch();
54328
- return o$ = r ? function(o, n) {
54353
+ return oI = r ? function(o, n) {
54329
54354
  return r(o, "toString", {
54330
54355
  configurable: !0,
54331
54356
  enumerable: !1,
@@ -62331,7 +62356,7 @@
62331
62356
  };
62332
62357
  };
62333
62358
 
62334
- const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk/5.38.0/assets";
62359
+ const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk/5.38.1/assets";
62335
62360
  class TVWebSDK extends gE {
62336
62361
  constructor(props){
62337
62362
  super({
@@ -62576,7 +62601,6 @@
62576
62601
  borderRadius: '8px',
62577
62602
  color: '#ffffff',
62578
62603
  padding: '12px',
62579
- bottomOffset: '24px',
62580
62604
  leftOffset: '24px',
62581
62605
  focusOutlineColor: '#ffffff'
62582
62606
  },
@@ -62586,7 +62610,6 @@
62586
62610
  borderRadius: '8px',
62587
62611
  fontSize: '14px',
62588
62612
  padding: '10px 16px',
62589
- bottomOffset: '90px',
62590
62613
  maxWidthInset: '48px'
62591
62614
  },
62592
62615
  QRStep: {
@@ -62808,7 +62831,6 @@
62808
62831
  borderRadius: sc.DesignToken.CornerRadius.xs,
62809
62832
  color: sc.DesignToken.Color.base.white,
62810
62833
  padding: sc.DesignToken.Spacing.sm,
62811
- bottomOffset: '24px',
62812
62834
  leftOffset: '24px',
62813
62835
  focusOutlineColor: sc.DesignToken.Color.base.white
62814
62836
  },
@@ -62818,7 +62840,6 @@
62818
62840
  borderRadius: sc.DesignToken.CornerRadius.xs,
62819
62841
  fontSize: '14px',
62820
62842
  padding: '10px 16px',
62821
- bottomOffset: '90px',
62822
62843
  maxWidthInset: '48px'
62823
62844
  },
62824
62845
  QRStep: {
@@ -69476,11 +69497,15 @@
69476
69497
  });
69477
69498
  };
69478
69499
 
69500
+ // Vertical alignment with CaptureButton. Capture height varies by theme (60px on v1,
69501
+ // 80px on v2), so the centering offset is computed via CSS calc() from the theme value
69502
+ // rather than hardcoded. UploadButton height is locked at icon 32 + Spacing.sm padding * 2.
69503
+ const UPLOAD_BUTTON_HEIGHT = 56;
69504
+ const TOAST_GAP = 16;
69479
69505
  const ButtonWrapper$2 = dt$1.button`
69480
69506
  position: fixed;
69481
- bottom: ${getTheme('IDUploadButton.bottomOffset')};
69482
- left: ${getTheme('IDUploadButton.leftOffset')};
69483
69507
  z-index: ${BASE_Z_INDEX + 10};
69508
+ left: ${getTheme('IDUploadButton.leftOffset')};
69484
69509
 
69485
69510
  display: inline-flex;
69486
69511
  align-items: center;
@@ -69495,6 +69520,14 @@
69495
69520
  padding: ${getTheme('IDUploadButton.padding')};
69496
69521
  cursor: pointer;
69497
69522
 
69523
+ ${({ $yButtonRow, $bottomOffset })=>libExports.isMobile && $yButtonRow != null ? lt$1`
69524
+ top: calc(${$yButtonRow}px + (${getTheme('IDCapturing.captureIcon.height')} - ${UPLOAD_BUTTON_HEIGHT}px) / 2);
69525
+ ` : lt$1`
69526
+ bottom: calc(
69527
+ ${$bottomOffset}px + (${getTheme('IDCapturing.captureIcon.height')} - ${UPLOAD_BUTTON_HEIGHT}px) / 2
69528
+ );
69529
+ `}
69530
+
69498
69531
  &:disabled {
69499
69532
  opacity: 0.5;
69500
69533
  cursor: not-allowed;
@@ -69510,12 +69543,14 @@
69510
69543
  height: 32px;
69511
69544
  display: block;
69512
69545
  `;
69513
- const UploadButton = ({ onClick, label, disabled = false })=>/*#__PURE__*/ jsxRuntimeExports.jsx(ButtonWrapper$2, {
69546
+ const UploadButton = ({ onClick, label, disabled = false, yButtonRow = undefined, bottomOffset })=>/*#__PURE__*/ jsxRuntimeExports.jsx(ButtonWrapper$2, {
69514
69547
  type: "button",
69515
69548
  onClick: onClick,
69516
69549
  disabled: disabled,
69517
69550
  "aria-label": label,
69518
69551
  "data-testid": "id-upload-button",
69552
+ $yButtonRow: yButtonRow,
69553
+ $bottomOffset: bottomOffset,
69519
69554
  children: /*#__PURE__*/ jsxRuntimeExports.jsx(Icon$1, {
69520
69555
  viewBox: "0 0 32 32",
69521
69556
  fill: "none",
@@ -70005,13 +70040,12 @@
70005
70040
  // just above the upload button so the user sees the failure tied to the action they took,
70006
70041
  // without involving the SDK's onError pipeline (which charges billing and may be wired
70007
70042
  // by clients to close the flow). Tap-to-dismiss on mobile; otherwise auto-dismisses on
70008
- // the timer in useUploadFlow.
70043
+ // the timer in useUploadFlow. Tracks the upload button so the gap stays constant as the
70044
+ // camera mask shifts.
70009
70045
  const ErrorToast = dt$1.button`
70010
70046
  position: fixed;
70011
- bottom: ${getTheme('IDUploadErrorToast.bottomOffset')};
70012
- left: 50%;
70013
- transform: translateX(-50%);
70014
70047
  z-index: ${BASE_Z_INDEX + 11};
70048
+ left: 50%;
70015
70049
 
70016
70050
  max-width: calc(100% - ${getTheme('IDUploadErrorToast.maxWidthInset')});
70017
70051
  padding: ${getTheme('IDUploadErrorToast.padding')};
@@ -70023,12 +70057,26 @@
70023
70057
  line-height: 1.4;
70024
70058
  text-align: center;
70025
70059
  cursor: pointer;
70060
+
70061
+ ${({ $yButtonRow, $bottomOffset })=>libExports.isMobile && $yButtonRow != null ? lt$1`
70062
+ top: calc(
70063
+ ${$yButtonRow}px + (${getTheme('IDCapturing.captureIcon.height')} - ${UPLOAD_BUTTON_HEIGHT}px) / 2 -
70064
+ ${TOAST_GAP}px
70065
+ );
70066
+ transform: translate(-50%, -100%);
70067
+ ` : lt$1`
70068
+ bottom: calc(
70069
+ ${$bottomOffset}px + (${getTheme('IDCapturing.captureIcon.height')} - ${UPLOAD_BUTTON_HEIGHT}px) / 2 +
70070
+ ${UPLOAD_BUTTON_HEIGHT}px + ${TOAST_GAP}px
70071
+ );
70072
+ transform: translateX(-50%);
70073
+ `}
70026
70074
  `;
70027
70075
  // Renders the upload button and the hidden file input. Mounted inside IDCardReader (base
70028
70076
  // and the 7 client overrides) so positioning sits next to the camera UI, and the upload
70029
70077
  // flow has direct access to capture-in-flight state from useMainProcess (the button
70030
70078
  // disables itself while a capture is committing).
70031
- const UploadFlowOverlay = ({ uploadFromDevice = undefined, uploadFlowAPI, scanControl, isCaptureInFlight, shouldShowSpinner })=>{
70079
+ const UploadFlowOverlay = ({ uploadFromDevice = undefined, uploadFlowAPI, scanControl, isCaptureInFlight, shouldShowSpinner, yButtonRow = undefined, bottomOffset })=>{
70032
70080
  const t = gm();
70033
70081
  const enabled = Boolean(uploadFromDevice?.enable);
70034
70082
  const enableConfirmPopup = uploadFromDevice?.enableConfirmPopup !== false;
@@ -70062,12 +70110,16 @@
70062
70110
  "aria-live": "polite",
70063
70111
  "aria-label": errorMessage,
70064
70112
  "data-testid": "id-upload-error-toast",
70113
+ $yButtonRow: yButtonRow,
70114
+ $bottomOffset: bottomOffset,
70065
70115
  children: errorMessage
70066
70116
  }),
70067
70117
  /*#__PURE__*/ jsxRuntimeExports.jsx(UploadButton, {
70068
70118
  onClick: handleUploadClick,
70069
70119
  label: buttonLabel,
70070
- disabled: buttonDisabled
70120
+ disabled: buttonDisabled,
70121
+ yButtonRow: yButtonRow,
70122
+ bottomOffset: bottomOffset
70071
70123
  }),
70072
70124
  /*#__PURE__*/ jsxRuntimeExports.jsx("input", {
70073
70125
  ref: inputRef,
@@ -70088,7 +70140,7 @@
70088
70140
  const { description, usePortraitMask, windowAndVideoInfo, refVideo, frontSide, allowedCardTypes, settings, onCaptureDone, onUISpacingChange, outputEncryptionSettings, isShowingSpinner, uploadFromDevice, uploadFlowAPI } = props;
70089
70141
  const theme = nt$2();
70090
70142
  const [uiSpacing, setUISpacing] = reactExports.useState({});
70091
- const { yMessage, yCaptureButton, yToggleButton, yInstruction, yCountdown } = uiSpacing;
70143
+ const { yMessage, yButtonRow, yToggleButton, yInstruction, yCountdown } = uiSpacing;
70092
70144
  const icCamera = useThemeIcon('IDCapturing.captureIcon.src', 'ic_camera.svg');
70093
70145
  const icCameraDisabled = useThemeIcon('IDCapturing.captureIcon.disabled.src', 'ic_camera.svg');
70094
70146
  const timerColor = getTheme('IDCapturing.countdown.color')({
@@ -70194,7 +70246,7 @@
70194
70246
  // eslint-disable-next-line react/prop-types
70195
70247
  const { videoAreaWidth, videoAreaHeight, lostX, lostY, clientHeight } = windowAndVideoInfo;
70196
70248
  let yTitleNew;
70197
- let yCaptureButtonNew;
70249
+ let yButtonRowNew;
70198
70250
  let yToggleButtonNew;
70199
70251
  let yMessageNew;
70200
70252
  let width;
@@ -70207,7 +70259,7 @@
70207
70259
  yTitleNew = y - 70;
70208
70260
  yMessageNew = yTitleNew + 30;
70209
70261
  yToggleButtonNew = showAutoCaptureToggle ? y + height + 20 : y + height;
70210
- yCaptureButtonNew = y + height + 135;
70262
+ yButtonRowNew = y + height + 135;
70211
70263
  } else {
70212
70264
  height = videoAreaHeight - 165;
70213
70265
  width = height * 0.7;
@@ -70215,7 +70267,7 @@
70215
70267
  yTitleNew = y - 70;
70216
70268
  yMessageNew = yTitleNew + 30;
70217
70269
  yToggleButtonNew = showAutoCaptureToggle ? y + height + 20 : y + height;
70218
- yCaptureButtonNew = y + height + 135;
70270
+ yButtonRowNew = y + height + 135;
70219
70271
  }
70220
70272
  const x = Math.floor((videoAreaWidth - width) / 2) + lostX;
70221
70273
  setCropArea({
@@ -70231,7 +70283,7 @@
70231
70283
  yTitle: yTitleNew,
70232
70284
  // yMessage: y + (theme.themeVersion === 'v1' ? 0 : height) + 64,
70233
70285
  yMessage: yMessageNew,
70234
- yCaptureButton: yCaptureButtonNew,
70286
+ yButtonRow: yButtonRowNew,
70235
70287
  yToggleButton: yToggleButtonNew,
70236
70288
  yInstruction: y + height / 2 - 100,
70237
70289
  yCountdown: yToggleButtonNew + 35
@@ -70332,7 +70384,7 @@
70332
70384
  }),
70333
70385
  showCaptureButton && /*#__PURE__*/ jsxRuntimeExports.jsx(CaptureButton, {
70334
70386
  onClick: handleOnClickTakePicture,
70335
- y: `${yCaptureButton}px`,
70387
+ y: `${yButtonRow}px`,
70336
70388
  disabled: // eslint-disable-next-line react/prop-types
70337
70389
  settings?.disableCaptureButtonIfAlert && errorMessage || isAutoCapturing || isPostProcessing || isShowingSpinner,
70338
70390
  children: errorMessage ? /*#__PURE__*/ jsxRuntimeExports.jsx("img", {
@@ -70373,7 +70425,9 @@
70373
70425
  uploadFlowAPI: uploadFlowAPI,
70374
70426
  scanControl: scanControl,
70375
70427
  isCaptureInFlight: isCaptureInFlight,
70376
- shouldShowSpinner: isShowingSpinner
70428
+ shouldShowSpinner: isShowingSpinner,
70429
+ yButtonRow: yButtonRow,
70430
+ bottomOffset: BUTTON_MARGIN_BOTTOM
70377
70431
  })
70378
70432
  ]
70379
70433
  });