@incodetech/welcome 1.85.0-20251218163752.0 → 1.85.0-20251218170039.0
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.
|
@@ -11,4 +11,6 @@ type SardineContext = {
|
|
|
11
11
|
};
|
|
12
12
|
export declare const getSardineContext: () => SardineContext | null;
|
|
13
13
|
export declare const enableDeviceRiskModule: ({ token, isSandbox, interviewId, }: EnableDeviceRiskModuleParams) => Promise<SardineContext>;
|
|
14
|
+
export declare const getDwnContext: () => any | null;
|
|
15
|
+
export declare const createDwnContext: () => any;
|
|
14
16
|
export {};
|
package/dist/onBoarding.mjs
CHANGED
|
@@ -8287,7 +8287,7 @@ class MlWasmJSApi {
|
|
|
8287
8287
|
);
|
|
8288
8288
|
}
|
|
8289
8289
|
}
|
|
8290
|
-
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-
|
|
8290
|
+
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251218170039.0";
|
|
8291
8291
|
function e$2(Be, Le) {
|
|
8292
8292
|
return function(Ye, tt) {
|
|
8293
8293
|
return Object.prototype.hasOwnProperty.call(Ye, tt);
|
|
@@ -151366,6 +151366,13 @@ const getCustomFields = ({ token: Be }) => api.get("/omni/get/custom-fields", {
|
|
|
151366
151366
|
const nt = document.getElementsByTagName("script")[0];
|
|
151367
151367
|
nt.parentNode.insertBefore(Ye, nt);
|
|
151368
151368
|
});
|
|
151369
|
+
}, loadDwnSDK = async () => {
|
|
151370
|
+
const Be = document.createElement("script");
|
|
151371
|
+
return Be.type = "text/javascript", Be.async = !0, Be.src = "https://demo-aps.incodesmile.com/dwn_profiling.js", new Promise((Le) => {
|
|
151372
|
+
Be.onload = () => Le();
|
|
151373
|
+
const Ye = document.getElementsByTagName("script")[0];
|
|
151374
|
+
Ye.parentNode.insertBefore(Be, Ye);
|
|
151375
|
+
});
|
|
151369
151376
|
};
|
|
151370
151377
|
let sardineContext = null;
|
|
151371
151378
|
const getSardineContext = () => sardineContext, createSardineContextFromSardine = ({
|
|
@@ -151388,6 +151395,7 @@ const getSardineContext = () => sardineContext, createSardineContextFromSardine
|
|
|
151388
151395
|
addEvent({
|
|
151389
151396
|
code: "externalRiskSDKInitialized",
|
|
151390
151397
|
payload: {
|
|
151398
|
+
riskService: "sardine",
|
|
151391
151399
|
sardineData: {
|
|
151392
151400
|
deviceId: ht.deviceId,
|
|
151393
151401
|
uuid: ht.uuid
|
|
@@ -151416,6 +151424,7 @@ const getSardineContext = () => sardineContext, createSardineContextFromSardine
|
|
|
151416
151424
|
addEvent({
|
|
151417
151425
|
code: "externalRiskSDKInitialized",
|
|
151418
151426
|
payload: {
|
|
151427
|
+
riskService: "sardine",
|
|
151419
151428
|
sardineData: {
|
|
151420
151429
|
deviceId: nt.deviceId,
|
|
151421
151430
|
uuid: nt.uuid
|
|
@@ -151438,7 +151447,7 @@ const getSardineContext = () => sardineContext, createSardineContextFromSardine
|
|
|
151438
151447
|
SardineUserID: void 0
|
|
151439
151448
|
}
|
|
151440
151449
|
}));
|
|
151441
|
-
shouldDoSardineContextFromSardine(tt) && (await loadSardineSDK(Le), sardineContext = createSardineContextFromSardine({
|
|
151450
|
+
await loadDwnSDK(), dwnContext = createDwnContext(), shouldDoSardineContextFromSardine(tt) && (await loadSardineSDK(Le), sardineContext = createSardineContextFromSardine({
|
|
151442
151451
|
sardineClientId: tt.SardineClientID,
|
|
151443
151452
|
sardineSessionKey: tt.SardineSessionKey,
|
|
151444
151453
|
sardineUserId: tt.SardineUserID,
|
|
@@ -151453,6 +151462,14 @@ const getSardineContext = () => sardineContext, createSardineContextFromSardine
|
|
|
151453
151462
|
token: Be,
|
|
151454
151463
|
interviewId: Ye
|
|
151455
151464
|
})), sardineContext;
|
|
151465
|
+
};
|
|
151466
|
+
let dwnContext = null;
|
|
151467
|
+
const getDwnContext = () => dwnContext, createDwnContext = () => {
|
|
151468
|
+
var Be;
|
|
151469
|
+
return dwnContext = (Be = window == null ? void 0 : window.dwn) == null ? void 0 : Be.start({
|
|
151470
|
+
geo_location_enabled: !1,
|
|
151471
|
+
mouse: !0
|
|
151472
|
+
}), dwnContext;
|
|
151456
151473
|
}, eventModuleNames = {
|
|
151457
151474
|
selfie: "SELFIE",
|
|
151458
151475
|
authFace: "AUTH_FACE",
|
|
@@ -365846,6 +365863,7 @@ function FlowRenderer({
|
|
|
365846
365863
|
}
|
|
365847
365864
|
if (!At) return null;
|
|
365848
365865
|
const Tt = At.flowModules, Rt = Tt[yt], Bt = async () => {
|
|
365866
|
+
var Nt, Lt;
|
|
365849
365867
|
const Dt = Tt.length;
|
|
365850
365868
|
bt.stepCompleted(Rt.key, yt, Dt);
|
|
365851
365869
|
const Pt = yt + 1;
|
|
@@ -365853,8 +365871,17 @@ function FlowRenderer({
|
|
|
365853
365871
|
bt.stepStarted(Tt[Pt].key, Pt, Dt), Ct(Pt);
|
|
365854
365872
|
else {
|
|
365855
365873
|
vt(!0);
|
|
365856
|
-
const { redirectionUrl:
|
|
365857
|
-
|
|
365874
|
+
const { redirectionUrl: Wt } = await getFinishStatus(void 0, { token: Be });
|
|
365875
|
+
(Lt = (Nt = getDwnContext()) == null ? void 0 : Nt.collect()) == null || Lt.then(($t) => {
|
|
365876
|
+
addEvent({
|
|
365877
|
+
code: "externalRiskSDKInitialized",
|
|
365878
|
+
payload: {
|
|
365879
|
+
riskService: "dwn",
|
|
365880
|
+
dwnData: { blob: $t }
|
|
365881
|
+
},
|
|
365882
|
+
token: Be
|
|
365883
|
+
});
|
|
365884
|
+
}).catch(console.error), bt.flowCompleted(Dt), Ye({ redirectionUrl: Wt });
|
|
365858
365885
|
}
|
|
365859
365886
|
};
|
|
365860
365887
|
return kt ? /* @__PURE__ */ jsxRuntimeExports.jsx(Spinner$6, {}) : It ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|