@tsocial/tvweb-sdk.lotte 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
  "-",
@@ -57385,7 +57388,7 @@
57385
57388
  if (M.current) return ()=>{};
57386
57389
  if (!navigator.mediaDevices || nT.browserName && [
57387
57390
  "facebook"
57388
- ].includes(nT.browserName.toLowerCase()) || nT.getUA.includes("Zalo iOS")) O(z("not_supported")), V(nQ.not_supported);
57391
+ ].includes(nT.browserName.toLowerCase())) O(z("not_supported")), V(nQ.not_supported);
57389
57392
  else if (o) {
57390
57393
  if (S) return X(S), ()=>{};
57391
57394
  nT.isAndroid && !1 === u ? t() : nT.isIOS && u ? r() : X();
@@ -71761,7 +71764,8 @@
71761
71764
  opacity: ${({ showChildren: t })=>+!!t};
71762
71765
  `;
71763
71766
  ({
71764
- onOrientationChange: PropTypes.func
71767
+ onOrientationChange: PropTypes.func,
71768
+ shouldUnmount: PropTypes.bool
71765
71769
  });
71766
71770
  ({
71767
71771
  allowedCardTypes: PropTypes.arrayOf(PropTypes.string),
@@ -76619,8 +76623,7 @@
76619
76623
  if (refVideoPlayed.current) return ()=>{};
76620
76624
  if (!navigator.mediaDevices || libExports.browserName && [
76621
76625
  'facebook'
76622
- ].includes(libExports.browserName.toLowerCase()) || libExports.getUA.includes('Zalo iOS') // to avoid live broadcast screen on Zalo webview
76623
- ) {
76626
+ ].includes(libExports.browserName.toLowerCase())) {
76624
76627
  setErrorMsg(t('not_supported'));
76625
76628
  onError(Errors$a.not_supported);
76626
76629
  } else if (videoEl) {
@@ -88818,7 +88821,7 @@
88818
88821
  opacity: ${({ showChildren })=>showChildren ? 1 : 0};
88819
88822
  `;
88820
88823
  // eslint-disable-next-line react/require-default-props
88821
- function OrientationDetection({ onOrientationChange, children }) {
88824
+ function OrientationDetection({ onOrientationChange, shouldUnmount, children }) {
88822
88825
  const t = gB();
88823
88826
  const { curOrientation } = useDetectOrientation(onOrientationChange);
88824
88827
  const shouldShowChildren = curOrientation === MODE.PORTRAIT || curOrientation === MODE.DESKTOP;
@@ -88830,7 +88833,7 @@
88830
88833
  children: t('wrong_orientation')
88831
88834
  })
88832
88835
  }),
88833
- /*#__PURE__*/ jsxRuntimeExports.jsx(ChildrenWrapper, {
88836
+ (shouldUnmount ? shouldShowChildren : true) && /*#__PURE__*/ jsxRuntimeExports.jsx(ChildrenWrapper, {
88834
88837
  showChildren: shouldShowChildren,
88835
88838
  children: children
88836
88839
  })
@@ -88838,10 +88841,12 @@
88838
88841
  });
88839
88842
  }
88840
88843
  OrientationDetection.defaultProps = {
88841
- onOrientationChange: ()=>{}
88844
+ onOrientationChange: ()=>{},
88845
+ shouldUnmount: false
88842
88846
  };
88843
88847
  OrientationDetection.propTypes = {
88844
- onOrientationChange: PropTypes.func
88848
+ onOrientationChange: PropTypes.func,
88849
+ shouldUnmount: PropTypes.bool
88845
88850
  };
88846
88851
 
88847
88852
  const useEkycSession = ()=>{
@@ -117154,7 +117159,7 @@
117154
117159
  qr_tooltip: 'Đặt mã QR vào khung hình và thử dịch chuyển camera (ra xa hoặc gần) để quét được mã QR'
117155
117160
  };
117156
117161
 
117157
- const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.lotte/5.34.0/assets";
117162
+ const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.lotte/5.34.2/assets";
117158
117163
  class TVWebSDK extends gU {
117159
117164
  constructor(props){
117160
117165
  super({