@tsocial/tvweb-sdk.tcli 5.34.3 → 5.34.5
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.
|
|
33786
|
+
return "5.34.5";
|
|
33787
33787
|
}
|
|
33788
33788
|
function nI$1() {
|
|
33789
33789
|
return {
|
|
@@ -41261,52 +41261,49 @@
|
|
|
41261
41261
|
}();
|
|
41262
41262
|
let dm = dg;
|
|
41263
41263
|
function dg(e, t) {
|
|
41264
|
-
let r =
|
|
41264
|
+
let r = dv();
|
|
41265
41265
|
return (dg = function(e, t) {
|
|
41266
|
-
return r[e -=
|
|
41266
|
+
return r[e -= 187];
|
|
41267
41267
|
})(e, t);
|
|
41268
41268
|
}
|
|
41269
|
-
|
|
41269
|
+
let dy = dg, db = dv();
|
|
41270
|
+
for(;;)try {
|
|
41271
|
+
if (-parseInt(dy(192)) / 1 + -parseInt(dy(203)) / 2 * (parseInt(dy(195)) / 3) + parseInt(dy(196)) / 4 + -parseInt(dy(207)) / 5 + -parseInt(dy(190)) / 6 + -parseInt(dy(189)) / 7 * (parseInt(dy(191)) / 8) + parseInt(dy(187)) / 9 === 698852) break;
|
|
41272
|
+
db.push(db.shift());
|
|
41273
|
+
} catch (e) {
|
|
41274
|
+
db.push(db.shift());
|
|
41275
|
+
}
|
|
41276
|
+
function dv() {
|
|
41270
41277
|
let e = [
|
|
41271
|
-
"
|
|
41272
|
-
"
|
|
41278
|
+
"ssRdXLZEX8",
|
|
41279
|
+
"0301070342",
|
|
41273
41280
|
"KoZIzj0DAQ",
|
|
41274
|
-
"
|
|
41275
|
-
"072a8648ce",
|
|
41276
|
-
"223235rNcaea",
|
|
41277
|
-
"DepBO8t60S",
|
|
41281
|
+
"ytJdcsPxrD",
|
|
41278
41282
|
"ZIzj0CAQYI",
|
|
41279
|
-
"
|
|
41280
|
-
"
|
|
41281
|
-
"Mjci1ul8mm",
|
|
41283
|
+
"44P0rKKsZK",
|
|
41284
|
+
"78oZoJhH",
|
|
41282
41285
|
"2a8648ce3d",
|
|
41283
41286
|
"000",
|
|
41284
|
-
"
|
|
41285
|
-
"
|
|
41286
|
-
"
|
|
41287
|
-
"
|
|
41288
|
-
"
|
|
41289
|
-
"
|
|
41290
|
-
"
|
|
41287
|
+
"3059301306",
|
|
41288
|
+
"5437410AYDgCq",
|
|
41289
|
+
"+faHkP3QC3",
|
|
41290
|
+
"Mjci1ul8mm",
|
|
41291
|
+
"37124379gQRvRs",
|
|
41292
|
+
"MFkwEwYHKo",
|
|
41293
|
+
"7ZYIbTa",
|
|
41294
|
+
"4421568SgMIDk",
|
|
41295
|
+
"1587704kuyojg",
|
|
41296
|
+
"850895lAaPpT",
|
|
41297
|
+
"DepBO8t60S",
|
|
41291
41298
|
"cDQgAE9h6Z",
|
|
41292
|
-
"
|
|
41293
|
-
"
|
|
41294
|
-
"ytJdcsPxrD",
|
|
41295
|
-
"937803kIgQTZ",
|
|
41296
|
-
"4563906dowYkq"
|
|
41299
|
+
"48579GCEgeE",
|
|
41300
|
+
"316864rFHuHL"
|
|
41297
41301
|
];
|
|
41298
|
-
return (
|
|
41302
|
+
return (dv = function() {
|
|
41299
41303
|
return e;
|
|
41300
41304
|
})();
|
|
41301
41305
|
}
|
|
41302
|
-
let
|
|
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==";
|
|
41306
|
+
let d_ = dm(206) + "072a8648ce3d02010608" + dm(204) + dm(198) + dm(205), dx = dm(188) + dm(201) + dm(199) + dm(194) + dm(193) + dm(200) + dm(208) + dm(202) + dm(209) + "D9EKOWS+U4MfPrcYTM70" + dm(197) + "KA==";
|
|
41310
41307
|
async function dC(e) {
|
|
41311
41308
|
let t = new TextEncoder().encode(e);
|
|
41312
41309
|
return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256", t))).map((e)=>e.toString(16).padStart(2, "0")).join("");
|
|
@@ -45332,7 +45329,7 @@
|
|
|
45332
45329
|
return this.getKey().getPublicKey();
|
|
45333
45330
|
}, e.prototype.getPublicKeyB64 = function() {
|
|
45334
45331
|
return this.getKey().getPublicBaseKeyB64();
|
|
45335
|
-
}, e.version = "5.34.
|
|
45332
|
+
}, e.version = "5.34.4", e;
|
|
45336
45333
|
}();
|
|
45337
45334
|
let hO = [
|
|
45338
45335
|
"-",
|
|
@@ -110761,13 +110758,11 @@
|
|
|
110761
110758
|
}
|
|
110762
110759
|
return apiClient.detectIDTampering(payload);
|
|
110763
110760
|
}
|
|
110764
|
-
async function readIdCard({ cardType, apiClient,
|
|
110761
|
+
async function readIdCard({ cardType, apiClient, cardImageId, qrImageId }) {
|
|
110765
110762
|
const payload = {
|
|
110766
110763
|
card_type: cardType,
|
|
110767
|
-
image1:
|
|
110768
|
-
id:
|
|
110769
|
-
} : {
|
|
110770
|
-
id: backCardId
|
|
110764
|
+
image1: {
|
|
110765
|
+
id: cardImageId
|
|
110771
110766
|
}
|
|
110772
110767
|
};
|
|
110773
110768
|
if (qrImageId) {
|
|
@@ -110780,10 +110775,6 @@
|
|
|
110780
110775
|
return apiClient.readIDCard(payload);
|
|
110781
110776
|
}
|
|
110782
110777
|
async function handleApiCheck({ image, frontCardId: existingFrontCardId, qrImageId: existingQRImageId, onError, recordedVideos, apiClient, cardType, cardSide, qrScannedResult, outputEncryptionSettings, enabledServices, fullVideo, capturingVideo, previousCapturingVideoId, previousFullVideoId }) {
|
|
110783
|
-
if (cardSide === IDCardSide$2.BACK && !existingFrontCardId) {
|
|
110784
|
-
onError(Errors$3.missing_front_id_card);
|
|
110785
|
-
return;
|
|
110786
|
-
}
|
|
110787
110778
|
const uploadPromises = [
|
|
110788
110779
|
uploadIdCard({
|
|
110789
110780
|
image,
|
|
@@ -110823,15 +110814,6 @@
|
|
|
110823
110814
|
}
|
|
110824
110815
|
const imageId = uploadIdCardResult.data.image_id;
|
|
110825
110816
|
const qrImageId = uploadQrResult?.data?.image_id || existingQRImageId;
|
|
110826
|
-
let frontCardId;
|
|
110827
|
-
let backCardId;
|
|
110828
|
-
const isCapturingFrontSide = cardSide === IDCardSide$2.FRONT;
|
|
110829
|
-
if (isCapturingFrontSide) {
|
|
110830
|
-
frontCardId = imageId;
|
|
110831
|
-
} else {
|
|
110832
|
-
frontCardId = existingFrontCardId;
|
|
110833
|
-
backCardId = imageId;
|
|
110834
|
-
}
|
|
110835
110817
|
const sanityResult = {
|
|
110836
110818
|
data: null
|
|
110837
110819
|
};
|
|
@@ -110857,9 +110839,7 @@
|
|
|
110857
110839
|
const result = await readIdCard({
|
|
110858
110840
|
cardType,
|
|
110859
110841
|
apiClient,
|
|
110860
|
-
|
|
110861
|
-
backCardId,
|
|
110862
|
-
isCapturingFrontSide,
|
|
110842
|
+
cardImageId: imageId,
|
|
110863
110843
|
qrImageId
|
|
110864
110844
|
});
|
|
110865
110845
|
if (result.errors) {
|
|
@@ -110877,6 +110857,20 @@
|
|
|
110877
110857
|
data: null
|
|
110878
110858
|
};
|
|
110879
110859
|
if (enabledServices?.enableDetectIDCardTampering) {
|
|
110860
|
+
// Detect ID Tampering requires front ID card image
|
|
110861
|
+
if (cardSide === IDCardSide$2.BACK && !existingFrontCardId) {
|
|
110862
|
+
onError(Errors$3.missing_front_id_card);
|
|
110863
|
+
return;
|
|
110864
|
+
}
|
|
110865
|
+
let frontCardId;
|
|
110866
|
+
let backCardId;
|
|
110867
|
+
const isCapturingFrontSide = cardSide === IDCardSide$2.FRONT;
|
|
110868
|
+
if (isCapturingFrontSide) {
|
|
110869
|
+
frontCardId = imageId;
|
|
110870
|
+
} else {
|
|
110871
|
+
frontCardId = existingFrontCardId;
|
|
110872
|
+
backCardId = imageId;
|
|
110873
|
+
}
|
|
110880
110874
|
const result = await detectIDTampering({
|
|
110881
110875
|
apiClient,
|
|
110882
110876
|
cardType,
|
|
@@ -110916,8 +110910,8 @@
|
|
|
110916
110910
|
const { Errors: Errors$2 } = ra$1;
|
|
110917
110911
|
// eslint-disable-next-line react/require-default-props
|
|
110918
110912
|
const ReadIDCardWithApiCall$1 = ({ readIDCardUIOnlyComponent: ReadIDCardUIOnly, ...props })=>{
|
|
110919
|
-
const { onError: onErrorFromProp, onStepDone: onStepDoneFromProp, apiCredentials, logCredentials, outputEncryptionSettings, serviceSettings, flowId, ...rest } = props;
|
|
110920
|
-
const [clientSettings, setClientSettings] = reactExports.useState(
|
|
110913
|
+
const { onError: onErrorFromProp, onStepDone: onStepDoneFromProp, apiCredentials, logCredentials, outputEncryptionSettings, serviceSettings, flowId, clientSettings: propClientSettings, ...rest } = props;
|
|
110914
|
+
const [clientSettings, setClientSettings] = reactExports.useState(propClientSettings);
|
|
110921
110915
|
const [isClientSettingsFetched, setIsClientSettingsFetched] = reactExports.useState(false);
|
|
110922
110916
|
const { apiClient } = fU.useApiClient({
|
|
110923
110917
|
apiCredentials,
|
|
@@ -111081,7 +111075,7 @@
|
|
|
111081
111075
|
onStepDoneWithBilling,
|
|
111082
111076
|
outputEncryptionSettings
|
|
111083
111077
|
]);
|
|
111084
|
-
if (!isClientSettingsFetched) {
|
|
111078
|
+
if (enabledServices.enableGetClientSettings && !isClientSettingsFetched) {
|
|
111085
111079
|
return null;
|
|
111086
111080
|
}
|
|
111087
111081
|
return /*#__PURE__*/ jsxRuntimeExports.jsx(dV.LicenseProvider, {
|
|
@@ -111112,7 +111106,8 @@
|
|
|
111112
111106
|
outputEncryptionSettings: PropTypes.shape({}),
|
|
111113
111107
|
readIDCardUIOnlyComponent: PropTypes.func,
|
|
111114
111108
|
serviceSettings: PropTypes.shape({}),
|
|
111115
|
-
flowId: PropTypes.string
|
|
111109
|
+
flowId: PropTypes.string,
|
|
111110
|
+
clientSettings: PropTypes.shape({})
|
|
111116
111111
|
};
|
|
111117
111112
|
ReadIDCardWithApiCall$1.defaultProps = {
|
|
111118
111113
|
onError: ()=>{},
|
|
@@ -111138,7 +111133,8 @@
|
|
|
111138
111133
|
enableDetectIDCardTampering: true,
|
|
111139
111134
|
enableReadIDCardInfo: true
|
|
111140
111135
|
},
|
|
111141
|
-
flowId: ''
|
|
111136
|
+
flowId: '',
|
|
111137
|
+
clientSettings: null
|
|
111142
111138
|
};
|
|
111143
111139
|
|
|
111144
111140
|
/**
|
|
@@ -116356,7 +116352,7 @@
|
|
|
116356
116352
|
display: ${f0.getTheme('closeButton.display')};
|
|
116357
116353
|
`;
|
|
116358
116354
|
|
|
116359
|
-
const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.tcli/5.34.
|
|
116355
|
+
const defaultAssetRoot = "https://vision-cdn.trustingsocial.com/tvweb-sdk.tcli/5.34.5/assets";
|
|
116360
116356
|
class TVWebSDK extends gU {
|
|
116361
116357
|
constructor(props){
|
|
116362
116358
|
super({
|