@tsocial/tvweb-sdk.nbcci 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);
@@ -45323,7 +45326,7 @@
45323
45326
  return this.getKey().getPublicKey();
45324
45327
  }, e.prototype.getPublicKeyB64 = function() {
45325
45328
  return this.getKey().getPublicBaseKeyB64();
45326
- }, e.version = "5.33.0", e;
45329
+ }, e.version = "5.34.1", e;
45327
45330
  }();
45328
45331
  let hO = [
45329
45332
  "-",
@@ -57374,7 +57377,7 @@
57374
57377
  if (M.current) return ()=>{};
57375
57378
  if (!navigator.mediaDevices || nT.browserName && [
57376
57379
  "facebook"
57377
- ].includes(nT.browserName.toLowerCase()) || nT.getUA.includes("Zalo iOS")) O(z("not_supported")), V(nQ.not_supported);
57380
+ ].includes(nT.browserName.toLowerCase())) O(z("not_supported")), V(nQ.not_supported);
57378
57381
  else if (o) {
57379
57382
  if (S) return X(S), ()=>{};
57380
57383
  nT.isAndroid && !1 === u ? t() : nT.isIOS && u ? r() : X();
@@ -71750,7 +71753,8 @@
71750
71753
  opacity: ${({ showChildren: t })=>+!!t};
71751
71754
  `;
71752
71755
  ({
71753
- onOrientationChange: PropTypes.func
71756
+ onOrientationChange: PropTypes.func,
71757
+ shouldUnmount: PropTypes.bool
71754
71758
  });
71755
71759
  ({
71756
71760
  allowedCardTypes: PropTypes.arrayOf(PropTypes.string),
@@ -76608,8 +76612,7 @@
76608
76612
  if (refVideoPlayed.current) return ()=>{};
76609
76613
  if (!navigator.mediaDevices || libExports.browserName && [
76610
76614
  'facebook'
76611
- ].includes(libExports.browserName.toLowerCase()) || libExports.getUA.includes('Zalo iOS') // to avoid live broadcast screen on Zalo webview
76612
- ) {
76615
+ ].includes(libExports.browserName.toLowerCase())) {
76613
76616
  setErrorMsg(t('not_supported'));
76614
76617
  onError(Errors$9.not_supported);
76615
76618
  } else if (videoEl) {
@@ -88745,7 +88748,7 @@
88745
88748
  opacity: ${({ showChildren })=>showChildren ? 1 : 0};
88746
88749
  `;
88747
88750
  // eslint-disable-next-line react/require-default-props
88748
- function OrientationDetection({ onOrientationChange, children }) {
88751
+ function OrientationDetection({ onOrientationChange, shouldUnmount, children }) {
88749
88752
  const t = gB();
88750
88753
  const { curOrientation } = useDetectOrientation(onOrientationChange);
88751
88754
  const shouldShowChildren = curOrientation === MODE.PORTRAIT || curOrientation === MODE.DESKTOP;
@@ -88757,7 +88760,7 @@
88757
88760
  children: t('wrong_orientation')
88758
88761
  })
88759
88762
  }),
88760
- /*#__PURE__*/ jsxRuntimeExports.jsx(ChildrenWrapper, {
88763
+ (shouldUnmount ? shouldShowChildren : true) && /*#__PURE__*/ jsxRuntimeExports.jsx(ChildrenWrapper, {
88761
88764
  showChildren: shouldShowChildren,
88762
88765
  children: children
88763
88766
  })
@@ -88765,10 +88768,12 @@
88765
88768
  });
88766
88769
  }
88767
88770
  OrientationDetection.defaultProps = {
88768
- onOrientationChange: ()=>{}
88771
+ onOrientationChange: ()=>{},
88772
+ shouldUnmount: false
88769
88773
  };
88770
88774
  OrientationDetection.propTypes = {
88771
- onOrientationChange: PropTypes.func
88775
+ onOrientationChange: PropTypes.func,
88776
+ shouldUnmount: PropTypes.bool
88772
88777
  };
88773
88778
 
88774
88779
  const useEkycSession = ()=>{
@@ -113492,7 +113497,7 @@
113492
113497
  };
113493
113498
  };
113494
113499
 
113495
- const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.nbcci/5.34.0/assets";
113500
+ const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.nbcci/5.34.2/assets";
113496
113501
  class TVWebSDK extends gU {
113497
113502
  constructor(props){
113498
113503
  super({