@tsocial/tvweb-sdk 5.34.3 → 5.34.4

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.3";
33786
+ return "5.34.4";
33787
33787
  }
33788
33788
  function nI$1() {
33789
33789
  return {
@@ -41259,54 +41259,55 @@
41259
41259
  }, uz;
41260
41260
  }(), uG);
41261
41261
  }();
41262
- let dm = dg;
41263
- function dg(e, t) {
41264
- let r = dy();
41265
- return (dg = function(e, t) {
41266
- return r[e -= 367];
41262
+ let dm = db, dg = db, dy = dx();
41263
+ for(;;)try {
41264
+ if (parseInt(dg(458)) / 1 * (parseInt(dg(480)) / 2) + -parseInt(dg(455)) / 3 * (-parseInt(dg(457)) / 4) + -parseInt(dg(471)) / 5 + -parseInt(dg(465)) / 6 + parseInt(dg(463)) / 7 * (-parseInt(dg(477)) / 8) + -parseInt(dg(460)) / 9 * (parseInt(dg(468)) / 10) + -parseInt(dg(476)) / 11 * (-parseInt(dg(473)) / 12) === 233663) break;
41265
+ dy.push(dy.shift());
41266
+ } catch (e) {
41267
+ dy.push(dy.shift());
41268
+ }
41269
+ function db(e, t) {
41270
+ let r = dx();
41271
+ return (db = function(e, t) {
41272
+ return r[e -= 454];
41267
41273
  })(e, t);
41268
41274
  }
41269
- function dy() {
41275
+ let dv = dm(462) + dm(467) + dm(479) + dm(459) + "0301070342" + dm(472), d_ = dm(474) + dm(466) + dm(456) + dm(478) + dm(454) + "ytJdcsPxrD" + dm(461) + dm(464) + "Mjci1ul8mm" + dm(475) + dm(481) + dm(470) + dm(469);
41276
+ function dx() {
41270
41277
  let e = [
41271
- "44P0rKKsZK",
41278
+ "D9EKOWS+U4",
41279
+ "4532icGLnQ",
41280
+ "18448xyLlKj",
41281
+ "cDQgAE9h6Z",
41282
+ "3d02010608",
41283
+ "204126ixklsL",
41272
41284
  "MfPrcYTM70",
41273
- "KoZIzj0DAQ",
41274
- "4507063dEvzaV",
41275
- "072a8648ce",
41276
- "223235rNcaea",
41277
41285
  "DepBO8t60S",
41278
- "ZIzj0CAQYI",
41279
- "52vAzYCl",
41280
- "4102938twVDjD",
41281
- "Mjci1ul8mm",
41286
+ "87nmVtHP",
41287
+ "KoZIzj0DAQ",
41288
+ "55712UVQONf",
41289
+ "2EfgRUw",
41282
41290
  "2a8648ce3d",
41283
- "000",
41284
- "75825zTCCpR",
41285
- "D9EKOWS+U4",
41286
- "9EzrkuM",
41287
- "0301070342",
41288
- "8QVfurr",
41289
- "3d02010608",
41290
- "7975860ZUkdQz",
41291
- "cDQgAE9h6Z",
41292
- "66TBiIus",
41291
+ "136242zgynFf",
41292
+ "+faHkP3QC3",
41293
+ "3059301306",
41294
+ "553JRucLG",
41295
+ "44P0rKKsZK",
41296
+ "879336fcuqSw",
41297
+ "ZIzj0CAQYI",
41298
+ "072a8648ce",
41299
+ "20JpJYZN",
41300
+ "KA==",
41293
41301
  "ssRdXLZEX8",
41294
- "ytJdcsPxrD",
41295
- "937803kIgQTZ",
41296
- "4563906dowYkq"
41302
+ "241645RDykmR",
41303
+ "000",
41304
+ "960aXGJaK",
41305
+ "MFkwEwYHKo"
41297
41306
  ];
41298
- return (dy = function() {
41307
+ return (dx = function() {
41299
41308
  return e;
41300
41309
  })();
41301
41310
  }
41302
- let db = dg, dv = dy();
41303
- for(;;)try {
41304
- if (-parseInt(db(368)) / 1 + -parseInt(db(391)) / 2 * (-parseInt(db(383)) / 3) + -parseInt(db(378)) / 4 * (-parseInt(db(375)) / 5) + parseInt(db(369)) / 6 + -parseInt(db(379)) / 7 * (-parseInt(db(387)) / 8) + parseInt(db(385)) / 9 * (-parseInt(db(389)) / 10) + -parseInt(db(373)) / 11 === 616149) break;
41305
- dv.push(dv.shift());
41306
- } catch (e) {
41307
- dv.push(dv.shift());
41308
- }
41309
- let d_ = "3059301306" + dm(374) + dm(388) + dm(381) + dm(386) + dm(382), dx = "MFkwEwYHKo" + dm(377) + dm(372) + dm(390) + dm(376) + dm(367) + "+faHkP3QC3" + dm(370) + dm(380) + dm(384) + dm(371) + dm(392) + "KA==";
41310
41311
  async function dC(e) {
41311
41312
  let t = new TextEncoder().encode(e);
41312
41313
  return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256", t))).map((e)=>e.toString(16).padStart(2, "0")).join("");
@@ -41411,7 +41412,7 @@
41411
41412
  isValid: !1,
41412
41413
  error: i0$1.invalid_license
41413
41414
  };
41414
- let { mode: a, license: o, signature: s } = dS(e), c = dw(i4$1(o)), l = (r = t || dx, n = i4$1(r).replace(d_, ""), 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 || d_, n = i4$1(r).replace(dv, ""), i = new dp.ec("p256").keyFromPublic(n, "hex"), {
41415
41416
  verifySignature: async (e, t)=>{
41416
41417
  try {
41417
41418
  let r = await dC(e), n = i4$1(t);
@@ -45325,7 +45326,7 @@
45325
45326
  return this.getKey().getPublicKey();
45326
45327
  }, e.prototype.getPublicKeyB64 = function() {
45327
45328
  return this.getKey().getPublicBaseKeyB64();
45328
- }, e.version = "5.34.2", e;
45329
+ }, e.version = "5.34.3", e;
45329
45330
  }();
45330
45331
  let hO = [
45331
45332
  "-",
@@ -110806,8 +110807,8 @@
110806
110807
  const { Errors: Errors$2 } = ra$1;
110807
110808
  // eslint-disable-next-line react/require-default-props
110808
110809
  const ReadIDCardWithApiCall = ({ readIDCardUIOnlyComponent: ReadIDCardUIOnly, ...props })=>{
110809
- const { onError: onErrorFromProp, onStepDone: onStepDoneFromProp, apiCredentials, logCredentials, outputEncryptionSettings, serviceSettings, flowId, ...rest } = props;
110810
- const [clientSettings, setClientSettings] = reactExports.useState(null);
110810
+ const { onError: onErrorFromProp, onStepDone: onStepDoneFromProp, apiCredentials, logCredentials, outputEncryptionSettings, serviceSettings, flowId, clientSettings: propClientSettings, ...rest } = props;
110811
+ const [clientSettings, setClientSettings] = reactExports.useState(propClientSettings);
110811
110812
  const [isClientSettingsFetched, setIsClientSettingsFetched] = reactExports.useState(false);
110812
110813
  const { apiClient } = fU.useApiClient({
110813
110814
  apiCredentials,
@@ -110971,7 +110972,7 @@
110971
110972
  onStepDoneWithBilling,
110972
110973
  outputEncryptionSettings
110973
110974
  ]);
110974
- if (!isClientSettingsFetched) {
110975
+ if (enabledServices.enableGetClientSettings && !isClientSettingsFetched) {
110975
110976
  return null;
110976
110977
  }
110977
110978
  return /*#__PURE__*/ jsxRuntimeExports.jsx(dV.LicenseProvider, {
@@ -111002,7 +111003,8 @@
111002
111003
  outputEncryptionSettings: PropTypes.shape({}),
111003
111004
  readIDCardUIOnlyComponent: PropTypes.func,
111004
111005
  serviceSettings: PropTypes.shape({}),
111005
- flowId: PropTypes.string
111006
+ flowId: PropTypes.string,
111007
+ clientSettings: PropTypes.shape({})
111006
111008
  };
111007
111009
  ReadIDCardWithApiCall.defaultProps = {
111008
111010
  onError: ()=>{},
@@ -111028,7 +111030,8 @@
111028
111030
  enableDetectIDCardTampering: true,
111029
111031
  enableReadIDCardInfo: true
111030
111032
  },
111031
- flowId: ''
111033
+ flowId: '',
111034
+ clientSettings: null
111032
111035
  };
111033
111036
 
111034
111037
  /**
@@ -113620,7 +113623,7 @@
113620
113623
  };
113621
113624
  };
113622
113625
 
113623
- const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk/5.34.3/assets";
113626
+ const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk/5.34.4/assets";
113624
113627
  class TVWebSDK extends gU {
113625
113628
  constructor(props){
113626
113629
  super({