@tsocial/tvweb-sdk.tcli 5.34.0 → 5.34.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.
@@ -33783,7 +33783,7 @@
33783
33783
  }, nS$1;
33784
33784
  }();
33785
33785
  function nB$1() {
33786
- return "5.34.0";
33786
+ return "5.34.2";
33787
33787
  }
33788
33788
  function nI$1() {
33789
33789
  return {
@@ -41260,51 +41260,54 @@
41260
41260
  }(), uG);
41261
41261
  }();
41262
41262
  function dm(e, t) {
41263
- let r = dx();
41263
+ let r = d_();
41264
41264
  return (dm = function(e, t) {
41265
- return r[e -= 253];
41265
+ return r[e -= 132];
41266
41266
  })(e, t);
41267
41267
  }
41268
- let dg = dm, dy = dm, db = dx();
41268
+ let dg = dm, dy = dm, db = d_();
41269
41269
  for(;;)try {
41270
- if (parseInt(dy(266)) / 1 + -parseInt(dy(256)) / 2 * (parseInt(dy(270)) / 3) + -parseInt(dy(255)) / 4 * (parseInt(dy(273)) / 5) + -parseInt(dy(275)) / 6 + parseInt(dy(254)) / 7 * (-parseInt(dy(267)) / 8) + parseInt(dy(257)) / 9 + parseInt(dy(264)) / 10 * (parseInt(dy(276)) / 11) === 688691) break;
41270
+ if (parseInt(dy(148)) / 1 + -parseInt(dy(139)) / 2 * (parseInt(dy(145)) / 3) + parseInt(dy(142)) / 4 * (parseInt(dy(152)) / 5) + -parseInt(dy(151)) / 6 * (-parseInt(dy(135)) / 7) + parseInt(dy(153)) / 8 + parseInt(dy(143)) / 9 + parseInt(dy(140)) / 10 * (-parseInt(dy(146)) / 11) === 427361) break;
41271
41271
  db.push(db.shift());
41272
41272
  } catch (e) {
41273
41273
  db.push(db.shift());
41274
41274
  }
41275
- let dv = dg(259) + dg(265) + dg(260) + dg(262) + "0301070342" + dg(272), d_ = dg(274) + dg(268) + dg(253) + dg(258) + dg(269) + dg(263) + "+faHkP3QC3" + dg(261) + "Mjci1ul8mm" + dg(277) + dg(271) + "ssRdXLZEX8KA==";
41276
- function dx() {
41275
+ let dv = "3059301306" + dg(155) + dg(158) + dg(149) + dg(141) + dg(138);
41276
+ function d_() {
41277
41277
  let e = [
41278
- "D9EKOWS+U4",
41279
- "KoZIzj0DAQ",
41280
- "35LjMmQl",
41281
- "77156uGIESC",
41282
- "190508oefdBp",
41283
- "11280618PQfwNT",
41284
- "cDQgAE9h6Z",
41285
- "3059301306",
41286
- "3d02010608",
41287
- "44P0rKKsZK",
41288
- "2a8648ce3d",
41289
- "ytJdcsPxrD",
41290
- "10JzyKyv",
41291
- "072a8648ce",
41292
- "712832CUVhDz",
41293
- "2152528SbwDRB",
41294
- "ZIzj0CAQYI",
41295
41278
  "DepBO8t60S",
41296
- "9mSroPf",
41297
- "MfPrcYTM70",
41279
+ "+faHkP3QC3",
41298
41280
  "000",
41299
- "225bWuBcu",
41281
+ "31908xDrygd",
41282
+ "2930470GEgndS",
41283
+ "0301070342",
41284
+ "307984TfAgvv",
41285
+ "1093680AINEzz",
41300
41286
  "MFkwEwYHKo",
41301
- "6250770KoXIrQ",
41302
- "24896839XBOetl"
41287
+ "141ReoysE",
41288
+ "11VpLjnk",
41289
+ "ZIzj0CAQYI",
41290
+ "357620EnNCAn",
41291
+ "2a8648ce3d",
41292
+ "ytJdcsPxrD",
41293
+ "7698TiAaFt",
41294
+ "20wWFtwC",
41295
+ "4767024oXzIYB",
41296
+ "ssRdXLZEX8",
41297
+ "072a8648ce",
41298
+ "Mjci1ul8mm",
41299
+ "D9EKOWS+U4",
41300
+ "3d02010608",
41301
+ "KA==",
41302
+ "44P0rKKsZK",
41303
+ "cDQgAE9h6Z",
41304
+ "476iEpigw"
41303
41305
  ];
41304
- return (dx = function() {
41306
+ return (d_ = function() {
41305
41307
  return e;
41306
41308
  })();
41307
41309
  }
41310
+ let dx = dg(144) + dg(147) + "KoZIzj0DAQ" + dg(134) + dg(136) + dg(150) + dg(137) + dg(133) + dg(156) + dg(157) + "MfPrcYTM70" + dg(154) + dg(132);
41308
41311
  async function dC(e) {
41309
41312
  let t = new TextEncoder().encode(e);
41310
41313
  return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256", t))).map((e)=>e.toString(16).padStart(2, "0")).join("");
@@ -41409,7 +41412,7 @@
41409
41412
  isValid: !1,
41410
41413
  error: i0$1.invalid_license
41411
41414
  };
41412
- let { mode: a, license: o, signature: s } = dS(e), c = dw(i4$1(o)), l = (r = t || d_, n = i4$1(r).replace(dv, ""), i = new dp.ec("p256").keyFromPublic(n, "hex"), {
41415
+ let { mode: a, license: o, signature: s } = dS(e), c = dw(i4$1(o)), l = (r = t || dx, n = i4$1(r).replace(dv, ""), i = new dp.ec("p256").keyFromPublic(n, "hex"), {
41413
41416
  verifySignature: async (e, t)=>{
41414
41417
  try {
41415
41418
  let r = await dC(e), n = i4$1(t);
@@ -45330,7 +45333,7 @@
45330
45333
  return this.getKey().getPublicKey();
45331
45334
  }, e.prototype.getPublicKeyB64 = function() {
45332
45335
  return this.getKey().getPublicBaseKeyB64();
45333
- }, e.version = "5.33.0", e;
45336
+ }, e.version = "5.34.1", e;
45334
45337
  }();
45335
45338
  let hO = [
45336
45339
  "-",
@@ -57392,7 +57395,7 @@
57392
57395
  if (M.current) return ()=>{};
57393
57396
  if (!navigator.mediaDevices || nT.browserName && [
57394
57397
  "facebook"
57395
- ].includes(nT.browserName.toLowerCase()) || nT.getUA.includes("Zalo iOS")) O(z("not_supported")), V(nQ.not_supported);
57398
+ ].includes(nT.browserName.toLowerCase())) O(z("not_supported")), V(nQ.not_supported);
57396
57399
  else if (o) {
57397
57400
  if (S) return X(S), ()=>{};
57398
57401
  nT.isAndroid && !1 === u ? t() : nT.isIOS && u ? r() : X();
@@ -71768,7 +71771,8 @@
71768
71771
  opacity: ${({ showChildren: t })=>+!!t};
71769
71772
  `;
71770
71773
  ({
71771
- onOrientationChange: PropTypes.func
71774
+ onOrientationChange: PropTypes.func,
71775
+ shouldUnmount: PropTypes.bool
71772
71776
  });
71773
71777
  ({
71774
71778
  allowedCardTypes: PropTypes.arrayOf(PropTypes.string),
@@ -76626,8 +76630,7 @@
76626
76630
  if (refVideoPlayed.current) return ()=>{};
76627
76631
  if (!navigator.mediaDevices || libExports.browserName && [
76628
76632
  'facebook'
76629
- ].includes(libExports.browserName.toLowerCase()) || libExports.getUA.includes('Zalo iOS') // to avoid live broadcast screen on Zalo webview
76630
- ) {
76633
+ ].includes(libExports.browserName.toLowerCase())) {
76631
76634
  setErrorMsg(t('not_supported'));
76632
76635
  onError(Errors$9.not_supported);
76633
76636
  } else if (videoEl) {
@@ -88825,7 +88828,7 @@
88825
88828
  opacity: ${({ showChildren })=>showChildren ? 1 : 0};
88826
88829
  `;
88827
88830
  // eslint-disable-next-line react/require-default-props
88828
- function OrientationDetection({ onOrientationChange, children }) {
88831
+ function OrientationDetection({ onOrientationChange, shouldUnmount, children }) {
88829
88832
  const t = gB();
88830
88833
  const { curOrientation } = useDetectOrientation(onOrientationChange);
88831
88834
  const shouldShowChildren = curOrientation === MODE.PORTRAIT || curOrientation === MODE.DESKTOP;
@@ -88837,7 +88840,7 @@
88837
88840
  children: t('wrong_orientation')
88838
88841
  })
88839
88842
  }),
88840
- /*#__PURE__*/ jsxRuntimeExports.jsx(ChildrenWrapper, {
88843
+ (shouldUnmount ? shouldShowChildren : true) && /*#__PURE__*/ jsxRuntimeExports.jsx(ChildrenWrapper, {
88841
88844
  showChildren: shouldShowChildren,
88842
88845
  children: children
88843
88846
  })
@@ -88845,10 +88848,12 @@
88845
88848
  });
88846
88849
  }
88847
88850
  OrientationDetection.defaultProps = {
88848
- onOrientationChange: ()=>{}
88851
+ onOrientationChange: ()=>{},
88852
+ shouldUnmount: false
88849
88853
  };
88850
88854
  OrientationDetection.propTypes = {
88851
- onOrientationChange: PropTypes.func
88855
+ onOrientationChange: PropTypes.func,
88856
+ shouldUnmount: PropTypes.bool
88852
88857
  };
88853
88858
 
88854
88859
  const useEkycSession = ()=>{
@@ -115492,11 +115497,13 @@
115492
115497
  }));
115493
115498
  function ReadIDCardUIOnly(props) {
115494
115499
  const { steps = defaultTCBReadIDCardSteps } = props;
115495
- // eslint-disable-next-line react/jsx-props-no-spreading
115496
- return /*#__PURE__*/ jsxRuntimeExports.jsx(ReadIDCardUIOnly$2, {
115497
- ...props,
115498
- uiOnlyComponent: ReadIDCardUIOnly$1,
115499
- steps: steps
115500
+ return /*#__PURE__*/ jsxRuntimeExports.jsx(OrientationDetection, {
115501
+ shouldUnmount: true,
115502
+ children: /*#__PURE__*/ jsxRuntimeExports.jsx(ReadIDCardUIOnly$2, {
115503
+ ...props,
115504
+ uiOnlyComponent: ReadIDCardUIOnly$1,
115505
+ steps: steps
115506
+ })
115500
115507
  });
115501
115508
  }
115502
115509
 
@@ -116236,7 +116243,7 @@
116236
116243
  display: ${f0.getTheme('closeButton.display')};
116237
116244
  `;
116238
116245
 
116239
- const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.tcli/5.34.0/assets";
116246
+ const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.tcli/5.34.2/assets";
116240
116247
  class TVWebSDK extends gU {
116241
116248
  constructor(props){
116242
116249
  super({