@tsocial/tvweb-sdk 5.38.0 → 5.38.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/build/esm/chunk-05ac2e29.js +1 -0
  2. package/build/esm/{chunk-c74892c9.js → chunk-148a64eb.js} +1 -1
  3. package/build/esm/{chunk-71bc3d31.js → chunk-18c2104b.js} +1 -1
  4. package/build/esm/{chunk-0e095921.js → chunk-26f22aaa.js} +1 -1
  5. package/build/esm/{chunk-da9e4f99.js → chunk-2f00d703.js} +1 -1
  6. package/build/esm/chunk-30941db8.js +1 -0
  7. package/build/esm/{chunk-99247a2f.js → chunk-4588a2bc.js} +31 -12
  8. package/build/esm/{chunk-32ffba48.js → chunk-4dbeaf6f.js} +1 -1
  9. package/build/esm/{chunk-6a6c84e6.js → chunk-5952fbfb.js} +1 -1
  10. package/build/esm/{chunk-d8a92cb1.js → chunk-67dba361.js} +1 -1
  11. package/build/esm/{chunk-7b389c71.js → chunk-69854c99.js} +1 -1
  12. package/build/esm/{chunk-47f573ed.js → chunk-7a1034f3.js} +1 -1
  13. package/build/esm/{chunk-b2a6294d.js → chunk-94b9613e.js} +1 -1
  14. package/build/esm/{chunk-27a081f0.js → chunk-95585c1a.js} +1 -1
  15. package/build/esm/{chunk-4c5427d3.js → chunk-a9d5f5ae.js} +1 -1
  16. package/build/esm/{chunk-f003d34d.js → chunk-bb5383fa.js} +29 -10
  17. package/build/esm/{chunk-60dc6fe1.js → chunk-d436b362.js} +1 -1
  18. package/build/esm/{chunk-61824c72.js → chunk-d6a3ff5a.js} +1 -1
  19. package/build/esm/{chunk-37cdf0c6.js → chunk-d7808881.js} +1 -1
  20. package/build/esm/{chunk-191cab03.js → chunk-df438efe.js} +1 -1
  21. package/build/esm/{chunk-825b5b31.js → chunk-e2249d38.js} +1 -1
  22. package/build/esm/{chunk-4bdebcdd.js → chunk-f253519c.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 +235 -182
  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.2";
19074
19074
  }
19075
19075
  function cR() {
19076
19076
  return {
@@ -22642,32 +22642,31 @@
22642
22642
  let l6 = ue;
22643
22643
  function l8() {
22644
22644
  let e = [
22645
- "MfPrcYTM70",
22646
- "ssRdXLZEX8",
22647
- "461248NanRiW",
22648
- "3d02010608",
22649
- "2a8648ce3d",
22650
- "174246GPlAzZ",
22651
- "1942680NIQIoL",
22652
- "189qCupZM",
22653
- "000",
22654
- "+faHkP3QC3",
22655
- "KA==",
22656
- "ytJdcsPxrD",
22657
- "Mjci1ul8mm",
22658
- "MFkwEwYHKo",
22645
+ "750306Shrwab",
22646
+ "4uODdaD",
22647
+ "DepBO8t60S",
22659
22648
  "D9EKOWS+U4",
22660
- "11104432FqfxcP",
22649
+ "33204hbdxQO",
22650
+ "000",
22651
+ "0301070342",
22652
+ "7YxzDzj",
22661
22653
  "KoZIzj0DAQ",
22662
- "438008zUrlLF",
22654
+ "ZIzj0CAQYI",
22655
+ "458200mHXShu",
22656
+ "1206007CRqKKC",
22657
+ "210549ZdPQOA",
22663
22658
  "3059301306",
22664
- "223708VbVjci",
22665
- "0301070342",
22666
- "12344733ABBVHg",
22667
- "10QNKJEG",
22659
+ "cDQgAE9h6Z",
22660
+ "298465fwTbcM",
22661
+ "10FjsIOP",
22662
+ "15OhZIRF",
22663
+ "MfPrcYTM70",
22664
+ "39tXZPZM",
22665
+ "2a8648ce3d",
22666
+ "5512ovVbow",
22668
22667
  "44P0rKKsZK",
22669
- "ZIzj0CAQYI",
22670
- "cDQgAE9h6Z"
22668
+ "27uevhLS",
22669
+ "ssRdXLZEX8"
22671
22670
  ];
22672
22671
  return (l8 = function() {
22673
22672
  return e;
@@ -22675,7 +22674,7 @@
22675
22674
  }
22676
22675
  let l9 = ue, l7 = l8();
22677
22676
  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;
22677
+ if (parseInt(l9(438)) / 1 * (parseInt(l9(442)) / 2) + -parseInt(l9(458)) / 3 * (-parseInt(l9(447)) / 4) + parseInt(l9(461)) / 5 + -parseInt(l9(446)) / 6 * (parseInt(l9(453)) / 7) + -parseInt(l9(456)) / 8 * (-parseInt(l9(444)) / 9) + -parseInt(l9(437)) / 10 * (parseInt(l9(457)) / 11) + parseInt(l9(450)) / 12 * (-parseInt(l9(440)) / 13) === 100052) break;
22679
22678
  l7.push(l7.shift());
22680
22679
  } catch (e) {
22681
22680
  l7.push(l7.shift());
@@ -22683,11 +22682,11 @@
22683
22682
  function ue(e, t) {
22684
22683
  let r = l8();
22685
22684
  return (ue = function(e, t) {
22686
- return r[e -= 321];
22685
+ return r[e -= 437];
22687
22686
  })(e, t);
22688
22687
  }
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);
22688
+ l6(459), l6(441), l6(452), l6(451);
22689
+ let ut = "MFkwEwYHKo" + l6(455) + l6(454) + l6(460) + l6(448) + "ytJdcsPxrD+faHkP3QC3" + l6(443) + "Mjci1ul8mm" + l6(449) + l6(439) + l6(445) + "KA==";
22691
22690
  function ur(e) {
22692
22691
  let t = atob(e), r = new Uint8Array(t.length);
22693
22692
  for(let e = 0; e < t.length; e++)r[e] = t.charCodeAt(e);
@@ -26733,7 +26732,7 @@
26733
26732
  return this.getKey().getPublicKey();
26734
26733
  }, e.prototype.getPublicKeyB64 = function() {
26735
26734
  return this.getKey().getPublicBaseKeyB64();
26736
- }, e.version = "5.37.0", e;
26735
+ }, e.version = "5.38.1", e;
26737
26736
  }();
26738
26737
  let fx = [
26739
26738
  "-",
@@ -34598,7 +34597,7 @@
34598
34597
  });
34599
34598
  };
34600
34599
 
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 : {};
34600
+ 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
34601
  function oX(t) {
34603
34602
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
34604
34603
  }
@@ -34706,7 +34705,7 @@
34706
34705
  };
34707
34706
  }
34708
34707
  function o9() {
34709
- if (ej) return e$;
34708
+ if (ej) return eI;
34710
34709
  ej = 1;
34711
34710
  var t = function() {
34712
34711
  if (eT) return eE;
@@ -34737,10 +34736,10 @@
34737
34736
  return eE = function(a) {
34738
34737
  return !(!o(a) || r(a)) && (t(a) ? l : i).test(n(a));
34739
34738
  };
34740
- }(), r = eI ? eD : (eI = 1, eD = function(t, r) {
34739
+ }(), r = e$ ? eD : (e$ = 1, eD = function(t, r) {
34741
34740
  return null == t ? void 0 : t[r];
34742
34741
  });
34743
- return e$ = function(o, n) {
34742
+ return eI = function(o, n) {
34744
34743
  var i = r(o, n);
34745
34744
  return t(i) ? i : void 0;
34746
34745
  };
@@ -34940,8 +34939,8 @@
34940
34939
  if (tO) return tM;
34941
34940
  tO = 1;
34942
34941
  var t = function() {
34943
- if (tI) return tD;
34944
- tI = 1;
34942
+ if (t$) return tD;
34943
+ t$ = 1;
34945
34944
  var t = oK(), r = function() {
34946
34945
  if (eb) return eg;
34947
34946
  eb = 1;
@@ -35014,10 +35013,10 @@
35014
35013
  ] : o(n(i));
35015
35014
  };
35016
35015
  }(), r = function() {
35017
- if (tj) return t$;
35016
+ if (tj) return tI;
35018
35017
  tj = 1;
35019
35018
  var t = o0(), r = 1 / 0;
35020
- return t$ = function(o) {
35019
+ return tI = function(o) {
35021
35020
  if ("string" == typeof o || t(o)) return o;
35022
35021
  var n = o + "";
35023
35022
  return "0" == n && 1 / o == -r ? "-0" : n;
@@ -35402,7 +35401,7 @@
35402
35401
  var t, r;
35403
35402
  if (tz) return nS.exports;
35404
35403
  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) {
35404
+ 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
35405
  var o = {};
35407
35406
  for(var n in t)r[n] && r[n].length % 2 == 0 ? o[n] = r[n].concat(t[n]) : o[n] = t[n];
35408
35407
  return o;
@@ -36205,7 +36204,7 @@
36205
36204
  d,
36206
36205
  [
36207
36206
  f,
36208
- $
36207
+ I
36209
36208
  ],
36210
36209
  [
36211
36210
  p,
@@ -36219,7 +36218,7 @@
36219
36218
  d,
36220
36219
  [
36221
36220
  f,
36222
- $
36221
+ I
36223
36222
  ],
36224
36223
  [
36225
36224
  p,
@@ -36571,7 +36570,7 @@
36571
36570
  d,
36572
36571
  [
36573
36572
  f,
36574
- I
36573
+ $
36575
36574
  ],
36576
36575
  [
36577
36576
  p,
@@ -36923,7 +36922,7 @@
36923
36922
  ],
36924
36923
  [
36925
36924
  f,
36926
- I
36925
+ $
36927
36926
  ],
36928
36927
  [
36929
36928
  p,
@@ -37172,7 +37171,7 @@
37172
37171
  d,
37173
37172
  [
37174
37173
  f,
37175
- I
37174
+ $
37176
37175
  ],
37177
37176
  [
37178
37177
  p,
@@ -37714,7 +37713,7 @@
37714
37713
  for(var o = 0, n = Array(r); o < r; o++)n[o] = t[o];
37715
37714
  return n;
37716
37715
  }
37717
- var _ = "mobile", x = "tablet", P = "smarttv", S = "console", E = "wearable", T = "embedded", D = void 0, I = {
37716
+ var _ = "mobile", x = "tablet", P = "smarttv", S = "console", E = "wearable", T = "embedded", D = void 0, $ = {
37718
37717
  Chrome: "Chrome",
37719
37718
  Firefox: "Firefox",
37720
37719
  Opera: "Opera",
@@ -37728,7 +37727,7 @@
37728
37727
  EdgeChromium: "Edge Chromium",
37729
37728
  MIUI: "MIUI Browser",
37730
37729
  SamsungBrowser: "Samsung Browser"
37731
- }, $ = {
37730
+ }, I = {
37732
37731
  IOS: "iOS",
37733
37732
  Android: "Android",
37734
37733
  WindowsPhone: "Windows Phone",
@@ -37831,43 +37830,43 @@
37831
37830
  }, G = function(t) {
37832
37831
  return O(t.type, "browser");
37833
37832
  }, Z = function(t) {
37834
- return t.name === $.Android;
37833
+ return t.name === I.Android;
37835
37834
  }, K = function(t) {
37836
- return t.name === $.Windows;
37835
+ return t.name === I.Windows;
37837
37836
  }, Y = function(t) {
37838
- return t.name === $.MAC_OS;
37837
+ return t.name === I.MAC_OS;
37839
37838
  }, J = function(t) {
37840
- return t.name === $.WindowsPhone;
37839
+ return t.name === I.WindowsPhone;
37841
37840
  }, ee = function(t) {
37842
- return t.name === $.IOS;
37841
+ return t.name === I.IOS;
37843
37842
  }, et = function(t) {
37844
37843
  return O(t.version);
37845
37844
  }, er = function(t) {
37846
37845
  return O(t.name);
37847
37846
  }, eo = function(t) {
37848
- return t.name === I.Chrome;
37847
+ return t.name === $.Chrome;
37849
37848
  }, en = function(t) {
37850
- return t.name === I.Firefox;
37849
+ return t.name === $.Firefox;
37851
37850
  }, ei = function(t) {
37852
- return t.name === I.Chromium;
37851
+ return t.name === $.Chromium;
37853
37852
  }, ea = function(t) {
37854
- return t.name === I.Edge;
37853
+ return t.name === $.Edge;
37855
37854
  }, es = function(t) {
37856
- return t.name === I.Yandex;
37855
+ return t.name === $.Yandex;
37857
37856
  }, ec = function(t) {
37858
37857
  var r = t.name;
37859
- return r === I.Safari || r === I.MobileSafari;
37858
+ return r === $.Safari || r === $.MobileSafari;
37860
37859
  }, el = function(t) {
37861
- return t.name === I.MobileSafari;
37860
+ return t.name === $.MobileSafari;
37862
37861
  }, ed = function(t) {
37863
- return t.name === I.Opera;
37862
+ return t.name === $.Opera;
37864
37863
  }, eu = function(t) {
37865
37864
  var r = t.name;
37866
- return r === I.InternetExplorer || r === I.Ie;
37865
+ return r === $.InternetExplorer || r === $.Ie;
37867
37866
  }, ep = function(t) {
37868
- return t.name === I.MIUI;
37867
+ return t.name === $.MIUI;
37869
37868
  }, ef = function(t) {
37870
- return t.name === I.SamsungBrowser;
37869
+ return t.name === $.SamsungBrowser;
37871
37870
  }, eh = function(t) {
37872
37871
  return O(t.version);
37873
37872
  }, em = function(t) {
@@ -37943,7 +37942,7 @@
37943
37942
  isSamsungBrowser: ef(n)
37944
37943
  };
37945
37944
  }
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);
37945
+ 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
37946
  function ta(t) {
37948
37947
  return f(t || window.navigator.userAgent);
37949
37948
  }
@@ -37953,7 +37952,7 @@
37953
37952
  "children"
37954
37953
  ]);
37955
37954
  return eL ? n ? o.createElement(React.Fragment, null, i) : o.createElement("div", a, i) : null;
37956
- }, nP.BrowserTypes = I, nP.BrowserView = function(r) {
37955
+ }, nP.BrowserTypes = $, nP.BrowserView = function(r) {
37957
37956
  var n = r.renderWithFragment, i = r.children, a = y(r, [
37958
37957
  "renderWithFragment",
37959
37958
  "children"
@@ -38004,7 +38003,7 @@
38004
38003
  "children"
38005
38004
  ]);
38006
38005
  return ej ? n ? o.createElement(React.Fragment, null, i) : o.createElement("div", a, i) : null;
38007
- }, nP.OsTypes = $, nP.SmartTVView = function(r) {
38006
+ }, nP.OsTypes = I, nP.SmartTVView = function(r) {
38008
38007
  var n = r.renderWithFragment, i = r.children, a = y(r, [
38009
38008
  "renderWithFragment",
38010
38009
  "children"
@@ -38029,9 +38028,9 @@
38029
38028
  ]);
38030
38029
  return eF ? n ? o.createElement(React.Fragment, null, i) : o.createElement("div", a, i) : null;
38031
38030
  }, 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;
38031
+ 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
38032
  if (j) {
38034
- return r = j, o = E, n = T, i = D, a = I, {
38033
+ return r = j, o = E, n = T, i = D, a = $, {
38035
38034
  isBrowser: r,
38036
38035
  browserMajorVersion: O(o.major),
38037
38036
  browserFullVersion: O(o.version),
@@ -38044,7 +38043,7 @@
38044
38043
  };
38045
38044
  }
38046
38045
  if (F) {
38047
- return s = F, c = T, l = D, d = I, {
38046
+ return s = F, c = T, l = D, d = $, {
38048
38047
  isSmartTV: s,
38049
38048
  engineName: O(c.name),
38050
38049
  engineVersion: O(c.version),
@@ -38054,7 +38053,7 @@
38054
38053
  };
38055
38054
  }
38056
38055
  if (z) {
38057
- return u = z, p = T, m = D, g = I, {
38056
+ return u = z, p = T, m = D, g = $, {
38058
38057
  isConsole: u,
38059
38058
  engineName: O(p.name),
38060
38059
  engineVersion: O(p.version),
@@ -38063,9 +38062,9 @@
38063
38062
  userAgent: O(g)
38064
38063
  };
38065
38064
  }
38066
- if (R || A) return L($, S, D, I);
38065
+ if (R || A) return L(I, S, D, $);
38067
38066
  if (N) {
38068
- return b = N, v = T, w = D, k = I, {
38067
+ return b = N, v = T, w = D, k = $, {
38069
38068
  isWearable: b,
38070
38069
  engineName: O(v.name),
38071
38070
  engineVersion: O(v.version),
@@ -38075,7 +38074,7 @@
38075
38074
  };
38076
38075
  }
38077
38076
  if (V) {
38078
- return y = V, C = S, B = T, _ = D, x = I, {
38077
+ return y = V, C = S, B = T, _ = D, x = $, {
38079
38078
  isEmbedded: y,
38080
38079
  vendor: O(C.vendor),
38081
38080
  model: O(C.model),
@@ -38096,7 +38095,7 @@
38096
38095
  engine: r.engine,
38097
38096
  ua: r.ua
38098
38097
  });
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) {
38098
+ }, 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
38099
  return p(t);
38101
38100
  }, nP.useDeviceData = ta, nP.useDeviceSelectors = function(t) {
38102
38101
  var r = ta(t || window.navigator.userAgent);
@@ -38240,9 +38239,9 @@
38240
38239
  border-spacing: 0;
38241
38240
  table-layout: auto;
38242
38241
  border-collapse: collapse;
38243
- `, nI = dt$1.div`
38242
+ `, n$ = dt$1.div`
38244
38243
  position: relative;
38245
- `, n$ = Array.from([
38244
+ `, nI = Array.from([
38246
38245
  ,
38247
38246
  ,
38248
38247
  ,
@@ -38256,7 +38255,7 @@
38256
38255
  return oZ.jsx(nD, {
38257
38256
  className: s,
38258
38257
  children: oZ.jsx("tbody", {
38259
- children: n$.map((t, s)=>oZ.jsx("tr", {
38258
+ children: nI.map((t, s)=>oZ.jsx("tr", {
38260
38259
  style: {
38261
38260
  height: 0 === s ? n : "auto"
38262
38261
  },
@@ -38270,7 +38269,7 @@
38270
38269
  height: l ? a : "auto",
38271
38270
  ...!l ? c : {}
38272
38271
  },
38273
- children: l ? oZ.jsx(nI, {
38272
+ children: l ? oZ.jsx(n$, {
38274
38273
  style: {
38275
38274
  width: d,
38276
38275
  height: a
@@ -38689,7 +38688,7 @@
38689
38688
  `;
38690
38689
  function nJ(r) {
38691
38690
  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)=>{
38691
+ 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
38692
  B && B(t);
38694
38693
  }, [
38695
38694
  B
@@ -38767,13 +38766,13 @@
38767
38766
  }
38768
38767
  }, p = await navigator.mediaDevices.getUserMedia(n);
38769
38768
  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({
38769
+ a(performance.now(), "end"), window.tv_last_req_camera_complete = !0, c() - s() < 1600 ? $({
38771
38770
  tag: "cam_permission",
38772
38771
  event: "user_activity.cam",
38773
38772
  log: {
38774
38773
  already_enable: !0
38775
38774
  }
38776
- }) : I({
38775
+ }) : $({
38777
38776
  tag: "cam_permission",
38778
38777
  event: "user_activity.allow",
38779
38778
  log: {}
@@ -38787,7 +38786,7 @@
38787
38786
  } catch (t) {}
38788
38787
  return p;
38789
38788
  } catch (t) {
38790
- a(performance.now(), "end"), "NotAllowedError" === t.name ? (M(N("no_permission")), V(nQ.no_permission), R.current = !0, I({
38789
+ a(performance.now(), "end"), "NotAllowedError" === t.name ? (M(N("no_permission")), V(nQ.no_permission), R.current = !0, $({
38791
38790
  tag: "cam_permission",
38792
38791
  event: "user_activity.cam",
38793
38792
  log: c() - s() < 1600 ? {
@@ -38808,7 +38807,7 @@
38808
38807
  q,
38809
38808
  N,
38810
38809
  V,
38811
- I
38810
+ $
38812
38811
  ]), X = reactExports.useCallback(async (t = S, r = !1)=>{
38813
38812
  let o = C.current;
38814
38813
  if (o?.srcObject?.id && o?.srcObject?.active && O.current) return;
@@ -38896,7 +38895,7 @@
38896
38895
  N
38897
38896
  ]);
38898
38897
  let H = reactExports.useCallback(()=>{
38899
- W(), p && p(), I({
38898
+ W(), p && p(), $({
38900
38899
  tag: "result",
38901
38900
  event: "user_activity.cancel",
38902
38901
  log: {}
@@ -38904,7 +38903,7 @@
38904
38903
  }, [
38905
38904
  p,
38906
38905
  W,
38907
- I
38906
+ $
38908
38907
  ]);
38909
38908
  return s = C, c = y, l = reactExports.useRef(null), reactExports.useEffect(()=>{
38910
38909
  let t = s.current, r = !1, o = async ()=>{
@@ -38973,7 +38972,7 @@
38973
38972
  onClick: H,
38974
38973
  "data-testid": "close-camera",
38975
38974
  children: oZ.jsx("img", {
38976
- src: $,
38975
+ src: I,
38977
38976
  alt: ""
38978
38977
  })
38979
38978
  })
@@ -39241,7 +39240,7 @@
39241
39240
  }, il = /*#__PURE__*/ reactExports.forwardRef(function(r, a) {
39242
39241
  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
39242
  "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);
39243
+ ] : 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
39244
  n6(function() {
39246
39245
  return et ? (ea.current = document.activeElement, ew(), ev(), eg()) : eb(), function() {
39247
39246
  clearTimeout(el.current);
@@ -39356,7 +39355,7 @@
39356
39355
  className: "popup-overlay " + ("" !== j ? j.split(" ").map(function(t) {
39357
39356
  return t + "-overlay";
39358
39357
  }).join(" ") : ""),
39359
- style: n0({}, eB, void 0 === I ? {} : I, {
39358
+ style: n0({}, eB, void 0 === $ ? {} : $, {
39360
39359
  pointerEvents: C && k || ec ? "auto" : "none"
39361
39360
  }),
39362
39361
  onClick: C && k ? eu : void 0,
@@ -39565,7 +39564,6 @@
39565
39564
  borderRadius: sc.DesignToken.CornerRadius.xs,
39566
39565
  color: sc.DesignToken.Color.base.white,
39567
39566
  padding: sc.DesignToken.Spacing.sm,
39568
- bottomOffset: "24px",
39569
39567
  leftOffset: "24px",
39570
39568
  focusOutlineColor: sc.DesignToken.Color.base.white
39571
39569
  },
@@ -39575,7 +39573,6 @@
39575
39573
  borderRadius: sc.DesignToken.CornerRadius.xs,
39576
39574
  fontSize: "14px",
39577
39575
  padding: "10px 16px",
39578
- bottomOffset: "90px",
39579
39576
  maxWidthInset: "48px"
39580
39577
  },
39581
39578
  QRStep: {
@@ -39847,7 +39844,7 @@
39847
39844
  animation-duration: 1000ms;
39848
39845
  animation-timing-function: linear;
39849
39846
  }
39850
- `, iI = nT.isMobile ? 200 : 400, i$ = nT.isMobile ? 150 : 300, ij = {
39847
+ `, i$ = nT.isMobile ? 200 : 400, iI = nT.isMobile ? 150 : 300, ij = {
39851
39848
  ID_CARD: "id_card",
39852
39849
  QR_CODE: "qr_code"
39853
39850
  }, iM = "raw", { Errors: iO } = sc;
@@ -40761,7 +40758,7 @@
40761
40758
  if (void 0 === t) throw Error("useSDKCallback must be used within a SDKCallbackProvider");
40762
40759
  return t;
40763
40760
  }, aD = (t)=>"number" == typeof t && t > 0;
40764
- let aI = class aI {
40761
+ let a$ = class a$ {
40765
40762
  getVideoChunks() {
40766
40763
  return this._videoChunks;
40767
40764
  }
@@ -40840,8 +40837,8 @@
40840
40837
  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
40838
  }
40842
40839
  };
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)=>{
40840
+ let aI = ({ shouldRecord: t })=>{
40841
+ let r = reactExports.useRef(!1), i = reactExports.useMemo(()=>new a$, []), s = reactExports.useRef(null), c = reactExports.useRef(null), l = reactExports.useCallback(async (o)=>{
40845
40842
  if (!r.current && t) try {
40846
40843
  let { mediaRecorder: t } = await i.initiate(o);
40847
40844
  t && (s.current = t, s.current.start()), r.current = !0, c.current = o;
@@ -41104,9 +41101,8 @@
41104
41101
  }
41105
41102
  let aQ = dt$1.button`
41106
41103
  position: fixed;
41107
- bottom: ${nz("IDUploadButton.bottomOffset")};
41108
- left: ${nz("IDUploadButton.leftOffset")};
41109
41104
  z-index: ${1010};
41105
+ left: ${nz("IDUploadButton.leftOffset")};
41110
41106
 
41111
41107
  display: inline-flex;
41112
41108
  align-items: center;
@@ -41121,6 +41117,14 @@
41121
41117
  padding: ${nz("IDUploadButton.padding")};
41122
41118
  cursor: pointer;
41123
41119
 
41120
+ ${({ $yButtonRow: t, $bottomOffset: r })=>nT.isMobile && null != t ? lt$1`
41121
+ top: calc(${t}px + (${nz("IDCapturing.captureIcon.height")} - ${56}px) / 2);
41122
+ ` : lt$1`
41123
+ bottom: calc(
41124
+ ${r}px + (${nz("IDCapturing.captureIcon.height")} - ${56}px) / 2
41125
+ );
41126
+ `}
41127
+
41124
41128
  &:disabled {
41125
41129
  opacity: 0.5;
41126
41130
  cursor: not-allowed;
@@ -41134,12 +41138,14 @@
41134
41138
  width: 32px;
41135
41139
  height: 32px;
41136
41140
  display: block;
41137
- `, aH = ({ onClick: t, label: r, disabled: o = !1 })=>oZ.jsx(aQ, {
41141
+ `, aH = ({ onClick: t, label: r, disabled: o = !1, yButtonRow: n, bottomOffset: i })=>oZ.jsx(aQ, {
41138
41142
  type: "button",
41139
41143
  onClick: t,
41140
41144
  disabled: o,
41141
41145
  "aria-label": r,
41142
41146
  "data-testid": "id-upload-button",
41147
+ $yButtonRow: n,
41148
+ $bottomOffset: i,
41143
41149
  children: oZ.jsx(aX, {
41144
41150
  viewBox: "0 0 32 32",
41145
41151
  fill: "none",
@@ -41296,10 +41302,8 @@
41296
41302
  }) : a3(t, i, a, aK);
41297
41303
  }, a8 = "undefined" != typeof window && "undefined" != typeof HTMLInputElement && "oncancel" in HTMLInputElement.prototype, a9 = dt$1.button`
41298
41304
  position: fixed;
41299
- bottom: ${nz("IDUploadErrorToast.bottomOffset")};
41300
- left: 50%;
41301
- transform: translateX(-50%);
41302
41305
  z-index: ${1011};
41306
+ left: 50%;
41303
41307
 
41304
41308
  max-width: calc(100% - ${nz("IDUploadErrorToast.maxWidthInset")});
41305
41309
  padding: ${nz("IDUploadErrorToast.padding")};
@@ -41311,8 +41315,22 @@
41311
41315
  line-height: 1.4;
41312
41316
  text-align: center;
41313
41317
  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 })=>{
41318
+
41319
+ ${({ $yButtonRow: t, $bottomOffset: r })=>nT.isMobile && null != t ? lt$1`
41320
+ top: calc(
41321
+ ${t}px + (${nz("IDCapturing.captureIcon.height")} - ${56}px) / 2 -
41322
+ ${16}px
41323
+ );
41324
+ transform: translate(-50%, -100%);
41325
+ ` : lt$1`
41326
+ bottom: calc(
41327
+ ${r}px + (${nz("IDCapturing.captureIcon.height")} - ${56}px) / 2 +
41328
+ ${56}px + ${16}px
41329
+ );
41330
+ transform: translateX(-50%);
41331
+ `}
41332
+ `, a4 = ({ uploadFromDevice: t, uploadFlowAPI: r, scanControl: s, isCaptureInFlight: c, shouldShowSpinner: l, yButtonRow: d, bottomOffset: u })=>{
41333
+ 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
41334
  let l = reactExports.useRef(null), [d, u] = reactExports.useState(!1), [p, f] = reactExports.useState(null), { sendEvent: h } = lL.useSDKTracking();
41317
41335
  reactExports.useEffect(()=>{
41318
41336
  if (null === p) return;
@@ -41423,39 +41441,43 @@
41423
41441
  dismissError: g
41424
41442
  };
41425
41443
  })({
41426
- enabled: u,
41444
+ enabled: f,
41427
41445
  enableConfirmPopup: t?.enableConfirmPopup !== !1,
41428
41446
  uploadFlowAPI: r,
41429
41447
  scanControl: s
41430
41448
  });
41431
41449
  if (reactExports.useEffect(()=>{
41432
- let t = p.current;
41433
- if (t) return t.addEventListener("cancel", b), ()=>t.removeEventListener("cancel", b);
41450
+ let t = h.current;
41451
+ if (t) return t.addEventListener("cancel", w), ()=>t.removeEventListener("cancel", w);
41434
41452
  }, [
41435
- p,
41436
- b
41437
- ]), !u) return null;
41438
- let y = d("upload_button_label"), C = w ? d(w) : "";
41453
+ h,
41454
+ w
41455
+ ]), !f) return null;
41456
+ let B = p("upload_button_label"), _ = y ? p(y) : "";
41439
41457
  return oZ.jsxs(oZ.Fragment, {
41440
41458
  children: [
41441
- w && oZ.jsx(a9, {
41459
+ y && oZ.jsx(a9, {
41442
41460
  type: "button",
41443
- onClick: k,
41461
+ onClick: C,
41444
41462
  "aria-live": "polite",
41445
- "aria-label": C,
41463
+ "aria-label": _,
41446
41464
  "data-testid": "id-upload-error-toast",
41447
- children: C
41465
+ $yButtonRow: d,
41466
+ $bottomOffset: u,
41467
+ children: _
41448
41468
  }),
41449
41469
  oZ.jsx(aH, {
41450
- onClick: f,
41451
- label: y,
41452
- disabled: l || v || c
41470
+ onClick: b,
41471
+ label: B,
41472
+ disabled: l || k || c,
41473
+ yButtonRow: d,
41474
+ bottomOffset: u
41453
41475
  }),
41454
41476
  oZ.jsx("input", {
41455
- ref: p,
41477
+ ref: h,
41456
41478
  type: "file",
41457
41479
  accept: "image/jpeg",
41458
- onChange: h,
41480
+ onChange: v,
41459
41481
  style: {
41460
41482
  display: "none"
41461
41483
  },
@@ -41465,7 +41487,7 @@
41465
41487
  ]
41466
41488
  });
41467
41489
  }, 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")({
41490
+ 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
41491
  theme: z
41470
41492
  }), 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
41493
  null === t ? ei("") : ei(et(t?.code, {
@@ -41816,10 +41838,10 @@
41816
41838
  ...S.detectedCard,
41817
41839
  cardType: g?.[0]?.code
41818
41840
  });
41819
- let $ = document.createElement("canvas"), j = $.getContext("2d");
41820
- $.width = T.width, $.height = T.height, j.putImageData(T, 0, 0), S.predictedIdCardCanvas = $;
41841
+ let I = document.createElement("canvas"), j = I.getContext("2d");
41842
+ I.width = T.width, I.height = T.height, j.putImageData(T, 0, 0), S.predictedIdCardCanvas = I;
41821
41843
  let [M, O] = c ? await iA({
41822
- canvas: $,
41844
+ canvas: I,
41823
41845
  glareThreshold: l
41824
41846
  }) : [
41825
41847
  !1
@@ -41830,11 +41852,11 @@
41830
41852
  }, M) return E("glare_detected");
41831
41853
  if (y = d ? await iL({
41832
41854
  blazefaceModel: o,
41833
- predictedIdCardCanvas: $,
41855
+ predictedIdCardCanvas: I,
41834
41856
  frontSide: r
41835
41857
  }) : await iF({
41836
41858
  blazefaceModel: o,
41837
- predictedIdCardCanvas: $,
41859
+ predictedIdCardCanvas: I,
41838
41860
  frontSide: r,
41839
41861
  hasFrontFace: u,
41840
41862
  hasBackFace: p,
@@ -41897,13 +41919,13 @@
41897
41919
  f.recordVideoFps,
41898
41920
  f.recordVideoFrameHeight,
41899
41921
  f.recordVideoFrameWidth
41900
- ]), { startRecording: eu, stopRecording: ep, resetRecording: ef } = a$({
41922
+ ]), { startRecording: eu, stopRecording: ep, resetRecording: ef } = aI({
41901
41923
  shouldRecord: reactExports.useMemo(()=>g ? f.enableRecordCapturingFront : f.enableRecordCapturingBack, [
41902
41924
  g,
41903
41925
  f.enableRecordCapturingBack,
41904
41926
  f.enableRecordCapturingFront
41905
41927
  ])
41906
- }), { startRecording: eh, stopRecording: em, resetRecording: eg } = a$({
41928
+ }), { startRecording: eh, stopRecording: em, resetRecording: eg } = aI({
41907
41929
  shouldRecord: reactExports.useMemo(()=>g ? f.enableRecordFullSessionFront : f.enableRecordFullSessionBack, [
41908
41930
  g,
41909
41931
  f.enableRecordFullSessionBack,
@@ -42072,7 +42094,7 @@
42072
42094
  r,
42073
42095
  k,
42074
42096
  en
42075
- ]), eI = reactExports.useCallback(async ({ blurScore: t, detectedCard: o, glareScore: n, runtime: i })=>{
42097
+ ]), e$ = reactExports.useCallback(async ({ blurScore: t, detectedCard: o, glareScore: n, runtime: i })=>{
42076
42098
  z.current = !0;
42077
42099
  let a = A.current;
42078
42100
  if (f.enableBlurCheck && H.current.push(t), f.enableGlareCheck && G.current.push(n), iW({
@@ -42101,7 +42123,7 @@
42101
42123
  k,
42102
42124
  f,
42103
42125
  en
42104
- ]), e$ = reactExports.useCallback(async ()=>{
42126
+ ]), eI = reactExports.useCallback(async ()=>{
42105
42127
  let { autoCaptureWaitForBestImageTimeMs: t } = f, r = R.current;
42106
42128
  if (null !== r.imageBlob && new Date().getTime() - L.current > t) {
42107
42129
  let t = await eC();
@@ -42193,7 +42215,7 @@
42193
42215
  ek,
42194
42216
  en
42195
42217
  ]), 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"), ()=>{
42218
+ 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
42219
  y && (document.body.removeChild(eR.current), document.body.removeChild(eA.current));
42198
42220
  }), [
42199
42221
  y
@@ -42240,7 +42262,7 @@
42240
42262
  ...eL.current,
42241
42263
  ...n.blurDebugInfo
42242
42264
  }), n.predictedIdCardCanvas && f.enableScanQRBackground && (g ? f.hasFrontQr : f.hasBackQr) && er(n.predictedIdCardCanvas, p), y) {
42243
- var k, C, B, x, P, S, I, M;
42265
+ var k, C, B, x, P, S, $, M;
42244
42266
  let r, o, i, a = nn(t, "card.label"), f = nn(t, "card.corners");
42245
42267
  eL.current = {
42246
42268
  ...eL.current,
@@ -42250,7 +42272,7 @@
42250
42272
  ...eL.current,
42251
42273
  ...ei()
42252
42274
  }, ho.drawDebugCanvas(eA.current, eL.current);
42253
- let h = iI / p.width, m = eR.current.getContext("2d");
42275
+ let h = i$ / p.width, m = eR.current.getContext("2d");
42254
42276
  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
42277
  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
42278
  if (!o) return;
@@ -42261,12 +42283,12 @@
42261
42283
  iU(t.bboxes, "blue", k, P, r);
42262
42284
  }), i = B.filter((t)=>"large" === t.lapType), i.length > 0 && i.forEach((t)=>{
42263
42285
  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)=>{
42286
+ }), S = x.map((t)=>t.location), $ = k, M = P, $ && ($.strokeStyle = "red", $.lineWidth = 2, S.forEach((t)=>{
42265
42287
  let r = t.x * M, o = t.y * M;
42266
- I.beginPath(), I.arc(r, o, 5, 0, 2 * Math.PI), I.stroke();
42288
+ $.beginPath(), $.arc(r, o, 5, 0, 2 * Math.PI), $.stroke();
42267
42289
  })));
42268
42290
  }
42269
- m(n.error), !n.error && (F.current && await eI({
42291
+ m(n.error), !n.error && (F.current && await e$({
42270
42292
  blurScore: n.blurScore,
42271
42293
  detectedCard: n.detectedCard,
42272
42294
  glareScore: n.glareScore,
@@ -42276,7 +42298,7 @@
42276
42298
  detectedCard: n.detectedCard,
42277
42299
  glareScore: n.glareScore,
42278
42300
  runtime: n.runtime
42279
- }))), await e$();
42301
+ }))), await eI();
42280
42302
  }
42281
42303
  let O = 180 - (w = Math.floor(performance.now() - w)) > 0 ? 180 - w : 0;
42282
42304
  await new Promise((t)=>setTimeout(t, O)), t === Y.current && (Y.current = window.requestAnimationFrame(v));
@@ -42291,11 +42313,11 @@
42291
42313
  Q,
42292
42314
  el,
42293
42315
  m,
42294
- e$,
42316
+ eI,
42295
42317
  b,
42296
42318
  eE,
42297
42319
  ek,
42298
- eI,
42320
+ e$,
42299
42321
  eD,
42300
42322
  y,
42301
42323
  g,
@@ -42450,7 +42472,7 @@
42450
42472
  ];
42451
42473
  t.length > 0 && (x = t.reduce((t, r, o)=>(t[`hash${o + 1}`] = r, t), {}));
42452
42474
  }
42453
- let P = l?.trackCardCoordinates, T = l?.trackCardCoordinatesMaxLength ?? 150, I = `[${ep.current.slice(-T).toString()}]`, $ = v;
42475
+ let P = l?.trackCardCoordinates, T = l?.trackCardCoordinatesMaxLength ?? 150, $ = `[${ep.current.slice(-T).toString()}]`, I = v;
42454
42476
  if (v?.imageBlob) {
42455
42477
  let { qr_scan_attempts: t, qr_found: r } = eb(), o = await f$.writeCurrentExif({
42456
42478
  imageData: {
@@ -42464,7 +42486,7 @@
42464
42486
  }
42465
42487
  }
42466
42488
  });
42467
- $ = {
42489
+ I = {
42468
42490
  ...v,
42469
42491
  imageBlob: o
42470
42492
  };
@@ -42472,7 +42494,7 @@
42472
42494
  if (f$.addExifData("user_action", {
42473
42495
  start_id_card: N.current,
42474
42496
  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) {
42497
+ }), 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
42498
  let { qr_scan_attempts: t, qr_found: r } = eb();
42477
42499
  f$.addExifData("scan_qr_background", {
42478
42500
  qr_scan_attempts: t,
@@ -42508,7 +42530,7 @@
42508
42530
  recordedVideos: [],
42509
42531
  fullVideo: m,
42510
42532
  capturingVideo: g,
42511
- qrScannedResults: $
42533
+ qrScannedResults: I
42512
42534
  }), F({
42513
42535
  tag: u ? "id_front" : "id_back",
42514
42536
  event: "user_activity",
@@ -42639,7 +42661,7 @@
42639
42661
  et
42640
42662
  ]),
42641
42663
  outputEncryptionSettings: E
42642
- }), eI = reactExports.useMemo(()=>({
42664
+ }), e$ = reactExports.useMemo(()=>({
42643
42665
  pauseScan: eE,
42644
42666
  resumeScan: eT,
42645
42667
  setUploadInProgress: eD,
@@ -42649,7 +42671,7 @@
42649
42671
  eT,
42650
42672
  eD,
42651
42673
  eB
42652
- ]), e$ = reactExports.useCallback(()=>{
42674
+ ]), eI = reactExports.useCallback(()=>{
42653
42675
  ec({
42654
42676
  popupType: null
42655
42677
  }), e_();
@@ -42657,9 +42679,9 @@
42657
42679
  ec,
42658
42680
  e_
42659
42681
  ]), ej = reactExports.useCallback(async ()=>{
42660
- ef(!1), e$(), await eB();
42682
+ ef(!1), eI(), await eB();
42661
42683
  }, [
42662
- e$,
42684
+ eI,
42663
42685
  eB
42664
42686
  ]);
42665
42687
  eh.current = ej;
@@ -42681,7 +42703,7 @@
42681
42703
  let m = {
42682
42704
  yTitle: t,
42683
42705
  yMessage: n,
42684
- yCaptureButton: r,
42706
+ yButtonRow: r,
42685
42707
  yToggleButton: o,
42686
42708
  yInstruction: s + a / 2 - 100,
42687
42709
  yCountdown: o + 35
@@ -42818,9 +42840,11 @@
42818
42840
  oZ.jsx(a4, {
42819
42841
  uploadFromDevice: D,
42820
42842
  uploadFlowAPI: F,
42821
- scanControl: eI,
42843
+ scanControl: e$,
42822
42844
  isCaptureInFlight: ey,
42823
- shouldShowSpinner: T
42845
+ shouldShowSpinner: T,
42846
+ yButtonRow: q,
42847
+ bottomOffset: 10
42824
42848
  })
42825
42849
  ]
42826
42850
  });
@@ -43194,9 +43218,9 @@
43194
43218
  var _ = n.BitMatrix.createEmpty(r, o), x = null;
43195
43219
  a && (x = n.BitMatrix.createEmpty(r, o));
43196
43220
  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);
43221
+ 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);
43222
+ for(var M = v / 25, I = 0; I < 8; I++)for(var j = 0; j < 8; j++){
43223
+ var c = 8 * b + I, l = 8 * g + j, O = s.get(c, l);
43200
43224
  _.set(c, l, O <= M), a && x.set(c, l, !(O <= M));
43201
43225
  }
43202
43226
  }
@@ -53707,17 +53731,17 @@
53707
53731
  bottomLeft: h,
53708
53732
  topLeft: m,
53709
53733
  topRight: g
53710
- }), E = S.topRight, T = S.topLeft, D = S.bottomLeft, I = u(t, C, E, T, D), $ = [];
53711
- I && $.push({
53734
+ }), E = S.topRight, T = S.topLeft, D = S.bottomLeft, $ = u(t, C, E, T, D), I = [];
53735
+ $ && I.push({
53712
53736
  alignmentPattern: {
53713
- x: I.alignmentPattern.x,
53714
- y: I.alignmentPattern.y
53737
+ x: $.alignmentPattern.x,
53738
+ y: $.alignmentPattern.y
53715
53739
  },
53716
53740
  bottomLeft: {
53717
53741
  x: D.x,
53718
53742
  y: D.y
53719
53743
  },
53720
- dimension: I.dimension,
53744
+ dimension: $.dimension,
53721
53745
  topLeft: {
53722
53746
  x: T.x,
53723
53747
  y: T.y
@@ -53728,7 +53752,7 @@
53728
53752
  }
53729
53753
  });
53730
53754
  var j = d(t, E), M = d(t, T), O = d(t, D), R = u(t, C, j, M, O);
53731
- return (R && $.push({
53755
+ return (R && I.push({
53732
53756
  alignmentPattern: {
53733
53757
  x: R.alignmentPattern.x,
53734
53758
  y: R.alignmentPattern.y
@@ -53746,7 +53770,7 @@
53746
53770
  y: j.y
53747
53771
  },
53748
53772
  dimension: R.dimension
53749
- }), 0 === $.length) ? null : $;
53773
+ }), 0 === I.length) ? null : I;
53750
53774
  };
53751
53775
  }
53752
53776
  ]).default;
@@ -54191,7 +54215,7 @@
54191
54215
  var n = o ? t(r.buffer) : r.buffer;
54192
54216
  return new r.constructor(n, r.byteOffset, r.length);
54193
54217
  };
54194
- }(), n = rI ? rD : (rI = 1, rD = function(t, r) {
54218
+ }(), n = r$ ? rD : (r$ = 1, rD = function(t, r) {
54195
54219
  var o = -1, n = t.length;
54196
54220
  for(r || (r = Array(n)); ++o < n;)r[o] = t[o];
54197
54221
  return r;
@@ -54199,10 +54223,10 @@
54199
54223
  if (rN) return rz;
54200
54224
  rN = 1;
54201
54225
  var t = function() {
54202
- if (rj) return r$;
54226
+ if (rj) return rI;
54203
54227
  rj = 1;
54204
54228
  var t = o1(), r = Object.create;
54205
- return r$ = function() {
54229
+ return rI = function() {
54206
54230
  function o() {}
54207
54231
  return function(n) {
54208
54232
  if (!t(n)) return {};
@@ -54318,14 +54342,14 @@
54318
54342
  if (oA) return oR;
54319
54343
  oA = 1;
54320
54344
  var t = function() {
54321
- if (oj) return o$;
54345
+ if (oj) return oI;
54322
54346
  oj = 1;
54323
- var t = oI ? oD : (oI = 1, oD = function(t) {
54347
+ var t = o$ ? oD : (o$ = 1, oD = function(t) {
54324
54348
  return function() {
54325
54349
  return t;
54326
54350
  };
54327
54351
  }), r = s6(), o = ch();
54328
- return o$ = r ? function(o, n) {
54352
+ return oI = r ? function(o, n) {
54329
54353
  return r(o, "toString", {
54330
54354
  configurable: !0,
54331
54355
  enumerable: !1,
@@ -62331,7 +62355,7 @@
62331
62355
  };
62332
62356
  };
62333
62357
 
62334
- const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk/5.38.0/assets";
62358
+ const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk/5.38.2/assets";
62335
62359
  class TVWebSDK extends gE {
62336
62360
  constructor(props){
62337
62361
  super({
@@ -62576,7 +62600,6 @@
62576
62600
  borderRadius: '8px',
62577
62601
  color: '#ffffff',
62578
62602
  padding: '12px',
62579
- bottomOffset: '24px',
62580
62603
  leftOffset: '24px',
62581
62604
  focusOutlineColor: '#ffffff'
62582
62605
  },
@@ -62586,7 +62609,6 @@
62586
62609
  borderRadius: '8px',
62587
62610
  fontSize: '14px',
62588
62611
  padding: '10px 16px',
62589
- bottomOffset: '90px',
62590
62612
  maxWidthInset: '48px'
62591
62613
  },
62592
62614
  QRStep: {
@@ -62808,7 +62830,6 @@
62808
62830
  borderRadius: sc.DesignToken.CornerRadius.xs,
62809
62831
  color: sc.DesignToken.Color.base.white,
62810
62832
  padding: sc.DesignToken.Spacing.sm,
62811
- bottomOffset: '24px',
62812
62833
  leftOffset: '24px',
62813
62834
  focusOutlineColor: sc.DesignToken.Color.base.white
62814
62835
  },
@@ -62818,7 +62839,6 @@
62818
62839
  borderRadius: sc.DesignToken.CornerRadius.xs,
62819
62840
  fontSize: '14px',
62820
62841
  padding: '10px 16px',
62821
- bottomOffset: '90px',
62822
62842
  maxWidthInset: '48px'
62823
62843
  },
62824
62844
  QRStep: {
@@ -69476,11 +69496,15 @@
69476
69496
  });
69477
69497
  };
69478
69498
 
69499
+ // Vertical alignment with CaptureButton. Capture height varies by theme (60px on v1,
69500
+ // 80px on v2), so the centering offset is computed via CSS calc() from the theme value
69501
+ // rather than hardcoded. UploadButton height is locked at icon 32 + Spacing.sm padding * 2.
69502
+ const UPLOAD_BUTTON_HEIGHT = 56;
69503
+ const TOAST_GAP = 16;
69479
69504
  const ButtonWrapper$2 = dt$1.button`
69480
69505
  position: fixed;
69481
- bottom: ${getTheme('IDUploadButton.bottomOffset')};
69482
- left: ${getTheme('IDUploadButton.leftOffset')};
69483
69506
  z-index: ${BASE_Z_INDEX + 10};
69507
+ left: ${getTheme('IDUploadButton.leftOffset')};
69484
69508
 
69485
69509
  display: inline-flex;
69486
69510
  align-items: center;
@@ -69495,6 +69519,14 @@
69495
69519
  padding: ${getTheme('IDUploadButton.padding')};
69496
69520
  cursor: pointer;
69497
69521
 
69522
+ ${({ $yButtonRow, $bottomOffset })=>libExports.isMobile && $yButtonRow != null ? lt$1`
69523
+ top: calc(${$yButtonRow}px + (${getTheme('IDCapturing.captureIcon.height')} - ${UPLOAD_BUTTON_HEIGHT}px) / 2);
69524
+ ` : lt$1`
69525
+ bottom: calc(
69526
+ ${$bottomOffset}px + (${getTheme('IDCapturing.captureIcon.height')} - ${UPLOAD_BUTTON_HEIGHT}px) / 2
69527
+ );
69528
+ `}
69529
+
69498
69530
  &:disabled {
69499
69531
  opacity: 0.5;
69500
69532
  cursor: not-allowed;
@@ -69510,12 +69542,14 @@
69510
69542
  height: 32px;
69511
69543
  display: block;
69512
69544
  `;
69513
- const UploadButton = ({ onClick, label, disabled = false })=>/*#__PURE__*/ jsxRuntimeExports.jsx(ButtonWrapper$2, {
69545
+ const UploadButton = ({ onClick, label, disabled = false, yButtonRow = undefined, bottomOffset })=>/*#__PURE__*/ jsxRuntimeExports.jsx(ButtonWrapper$2, {
69514
69546
  type: "button",
69515
69547
  onClick: onClick,
69516
69548
  disabled: disabled,
69517
69549
  "aria-label": label,
69518
69550
  "data-testid": "id-upload-button",
69551
+ $yButtonRow: yButtonRow,
69552
+ $bottomOffset: bottomOffset,
69519
69553
  children: /*#__PURE__*/ jsxRuntimeExports.jsx(Icon$1, {
69520
69554
  viewBox: "0 0 32 32",
69521
69555
  fill: "none",
@@ -70005,13 +70039,12 @@
70005
70039
  // just above the upload button so the user sees the failure tied to the action they took,
70006
70040
  // without involving the SDK's onError pipeline (which charges billing and may be wired
70007
70041
  // by clients to close the flow). Tap-to-dismiss on mobile; otherwise auto-dismisses on
70008
- // the timer in useUploadFlow.
70042
+ // the timer in useUploadFlow. Tracks the upload button so the gap stays constant as the
70043
+ // camera mask shifts.
70009
70044
  const ErrorToast = dt$1.button`
70010
70045
  position: fixed;
70011
- bottom: ${getTheme('IDUploadErrorToast.bottomOffset')};
70012
- left: 50%;
70013
- transform: translateX(-50%);
70014
70046
  z-index: ${BASE_Z_INDEX + 11};
70047
+ left: 50%;
70015
70048
 
70016
70049
  max-width: calc(100% - ${getTheme('IDUploadErrorToast.maxWidthInset')});
70017
70050
  padding: ${getTheme('IDUploadErrorToast.padding')};
@@ -70023,12 +70056,26 @@
70023
70056
  line-height: 1.4;
70024
70057
  text-align: center;
70025
70058
  cursor: pointer;
70059
+
70060
+ ${({ $yButtonRow, $bottomOffset })=>libExports.isMobile && $yButtonRow != null ? lt$1`
70061
+ top: calc(
70062
+ ${$yButtonRow}px + (${getTheme('IDCapturing.captureIcon.height')} - ${UPLOAD_BUTTON_HEIGHT}px) / 2 -
70063
+ ${TOAST_GAP}px
70064
+ );
70065
+ transform: translate(-50%, -100%);
70066
+ ` : lt$1`
70067
+ bottom: calc(
70068
+ ${$bottomOffset}px + (${getTheme('IDCapturing.captureIcon.height')} - ${UPLOAD_BUTTON_HEIGHT}px) / 2 +
70069
+ ${UPLOAD_BUTTON_HEIGHT}px + ${TOAST_GAP}px
70070
+ );
70071
+ transform: translateX(-50%);
70072
+ `}
70026
70073
  `;
70027
70074
  // Renders the upload button and the hidden file input. Mounted inside IDCardReader (base
70028
70075
  // and the 7 client overrides) so positioning sits next to the camera UI, and the upload
70029
70076
  // flow has direct access to capture-in-flight state from useMainProcess (the button
70030
70077
  // disables itself while a capture is committing).
70031
- const UploadFlowOverlay = ({ uploadFromDevice = undefined, uploadFlowAPI, scanControl, isCaptureInFlight, shouldShowSpinner })=>{
70078
+ const UploadFlowOverlay = ({ uploadFromDevice = undefined, uploadFlowAPI, scanControl, isCaptureInFlight, shouldShowSpinner, yButtonRow = undefined, bottomOffset })=>{
70032
70079
  const t = gm();
70033
70080
  const enabled = Boolean(uploadFromDevice?.enable);
70034
70081
  const enableConfirmPopup = uploadFromDevice?.enableConfirmPopup !== false;
@@ -70062,12 +70109,16 @@
70062
70109
  "aria-live": "polite",
70063
70110
  "aria-label": errorMessage,
70064
70111
  "data-testid": "id-upload-error-toast",
70112
+ $yButtonRow: yButtonRow,
70113
+ $bottomOffset: bottomOffset,
70065
70114
  children: errorMessage
70066
70115
  }),
70067
70116
  /*#__PURE__*/ jsxRuntimeExports.jsx(UploadButton, {
70068
70117
  onClick: handleUploadClick,
70069
70118
  label: buttonLabel,
70070
- disabled: buttonDisabled
70119
+ disabled: buttonDisabled,
70120
+ yButtonRow: yButtonRow,
70121
+ bottomOffset: bottomOffset
70071
70122
  }),
70072
70123
  /*#__PURE__*/ jsxRuntimeExports.jsx("input", {
70073
70124
  ref: inputRef,
@@ -70088,7 +70139,7 @@
70088
70139
  const { description, usePortraitMask, windowAndVideoInfo, refVideo, frontSide, allowedCardTypes, settings, onCaptureDone, onUISpacingChange, outputEncryptionSettings, isShowingSpinner, uploadFromDevice, uploadFlowAPI } = props;
70089
70140
  const theme = nt$2();
70090
70141
  const [uiSpacing, setUISpacing] = reactExports.useState({});
70091
- const { yMessage, yCaptureButton, yToggleButton, yInstruction, yCountdown } = uiSpacing;
70142
+ const { yMessage, yButtonRow, yToggleButton, yInstruction, yCountdown } = uiSpacing;
70092
70143
  const icCamera = useThemeIcon('IDCapturing.captureIcon.src', 'ic_camera.svg');
70093
70144
  const icCameraDisabled = useThemeIcon('IDCapturing.captureIcon.disabled.src', 'ic_camera.svg');
70094
70145
  const timerColor = getTheme('IDCapturing.countdown.color')({
@@ -70194,7 +70245,7 @@
70194
70245
  // eslint-disable-next-line react/prop-types
70195
70246
  const { videoAreaWidth, videoAreaHeight, lostX, lostY, clientHeight } = windowAndVideoInfo;
70196
70247
  let yTitleNew;
70197
- let yCaptureButtonNew;
70248
+ let yButtonRowNew;
70198
70249
  let yToggleButtonNew;
70199
70250
  let yMessageNew;
70200
70251
  let width;
@@ -70207,7 +70258,7 @@
70207
70258
  yTitleNew = y - 70;
70208
70259
  yMessageNew = yTitleNew + 30;
70209
70260
  yToggleButtonNew = showAutoCaptureToggle ? y + height + 20 : y + height;
70210
- yCaptureButtonNew = y + height + 135;
70261
+ yButtonRowNew = y + height + 135;
70211
70262
  } else {
70212
70263
  height = videoAreaHeight - 165;
70213
70264
  width = height * 0.7;
@@ -70215,7 +70266,7 @@
70215
70266
  yTitleNew = y - 70;
70216
70267
  yMessageNew = yTitleNew + 30;
70217
70268
  yToggleButtonNew = showAutoCaptureToggle ? y + height + 20 : y + height;
70218
- yCaptureButtonNew = y + height + 135;
70269
+ yButtonRowNew = y + height + 135;
70219
70270
  }
70220
70271
  const x = Math.floor((videoAreaWidth - width) / 2) + lostX;
70221
70272
  setCropArea({
@@ -70231,7 +70282,7 @@
70231
70282
  yTitle: yTitleNew,
70232
70283
  // yMessage: y + (theme.themeVersion === 'v1' ? 0 : height) + 64,
70233
70284
  yMessage: yMessageNew,
70234
- yCaptureButton: yCaptureButtonNew,
70285
+ yButtonRow: yButtonRowNew,
70235
70286
  yToggleButton: yToggleButtonNew,
70236
70287
  yInstruction: y + height / 2 - 100,
70237
70288
  yCountdown: yToggleButtonNew + 35
@@ -70332,7 +70383,7 @@
70332
70383
  }),
70333
70384
  showCaptureButton && /*#__PURE__*/ jsxRuntimeExports.jsx(CaptureButton, {
70334
70385
  onClick: handleOnClickTakePicture,
70335
- y: `${yCaptureButton}px`,
70386
+ y: `${yButtonRow}px`,
70336
70387
  disabled: // eslint-disable-next-line react/prop-types
70337
70388
  settings?.disableCaptureButtonIfAlert && errorMessage || isAutoCapturing || isPostProcessing || isShowingSpinner,
70338
70389
  children: errorMessage ? /*#__PURE__*/ jsxRuntimeExports.jsx("img", {
@@ -70373,7 +70424,9 @@
70373
70424
  uploadFlowAPI: uploadFlowAPI,
70374
70425
  scanControl: scanControl,
70375
70426
  isCaptureInFlight: isCaptureInFlight,
70376
- shouldShowSpinner: isShowingSpinner
70427
+ shouldShowSpinner: isShowingSpinner,
70428
+ yButtonRow: yButtonRow,
70429
+ bottomOffset: BUTTON_MARGIN_BOTTOM
70377
70430
  })
70378
70431
  ]
70379
70432
  });