@regulaforensics/idv-capture-web 3.10.572-nightly → 3.10.574-nightly
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.
- package/dist/main.iife.js +6 -6
- package/dist/main.js +45 -28
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -3769,7 +3769,7 @@ var $i = () => {
|
|
|
3769
3769
|
osVersion: `${$r.osVersion}`,
|
|
3770
3770
|
hostAppId: $i(),
|
|
3771
3771
|
host: $i(),
|
|
3772
|
-
sdkVersion: (t = "3.10.
|
|
3772
|
+
sdkVersion: (t = "3.10.574-nightly") == null ? void 0 : t.trim(),
|
|
3773
3773
|
name: navigator.userAgent,
|
|
3774
3774
|
deviceModel: `${$r.osName}/${$r.osVersion} ${$r.browserName}/${$r.fullBrowserVersion}`,
|
|
3775
3775
|
hostAppVersion: `${$r.browserName}/${$r.fullBrowserVersion}`,
|
|
@@ -4049,7 +4049,7 @@ function _a(e, t) {
|
|
|
4049
4049
|
let e = t.getSupportedTemplates();
|
|
4050
4050
|
console.log(`${t == null ? void 0 : t.displayName} supported templates: ${e.join(", ")}`);
|
|
4051
4051
|
} else console.error("Missed \"getSupportedTemplates\" method when register module");
|
|
4052
|
-
if (t.initialize && typeof t.initialize == "function" || console.error(`${t == null ? void 0 : t.displayName} "initialize" method was not implemented`), t.deinitialize && typeof t.deinitialize == "function" || console.error(`${t == null ? void 0 : t.displayName} "deinitialize" method was not implemented`), t.isReady && typeof t.isReady == "function" || console.error(`${t == null ? void 0 : t.displayName} "isReady" method was not implemented`), t.getIdentifier && typeof t.getIdentifier == "function") {
|
|
4052
|
+
if (t.initialize && typeof t.initialize == "function" || console.error(`${t == null ? void 0 : t.displayName} "initialize" method was not implemented`), t.deinitialize && typeof t.deinitialize == "function" || console.error(`${t == null ? void 0 : t.displayName} "deinitialize" method was not implemented`), t.cancel && typeof t.cancel == "function" || console.error(`${t == null ? void 0 : t.displayName} "cancel" method was not implemented`), t.isReady && typeof t.isReady == "function" || console.error(`${t == null ? void 0 : t.displayName} "isReady" method was not implemented`), t.getIdentifier && typeof t.getIdentifier == "function") {
|
|
4053
4053
|
let e = t.getIdentifier();
|
|
4054
4054
|
console.log(`Module id: ${e}`);
|
|
4055
4055
|
} else console.error("Missed \"getIdentifier\" when register module");
|
|
@@ -10284,6 +10284,7 @@ var Md, Nd = !1, Pd = ({ children: e, locale: t, direction: n }) => /* @__PURE__
|
|
|
10284
10284
|
connectedCallback() {
|
|
10285
10285
|
this.render(), this._mounted = !0;
|
|
10286
10286
|
}
|
|
10287
|
+
static cancel() {}
|
|
10287
10288
|
render() {
|
|
10288
10289
|
if (!this.props) return "";
|
|
10289
10290
|
if (this.shadowRoot) {
|
|
@@ -14141,31 +14142,31 @@ var hp = (e, t) => ({
|
|
|
14141
14142
|
}(),
|
|
14142
14143
|
_prepareScreenConfigAndShowStep: function() {
|
|
14143
14144
|
var n = S(function* (n) {
|
|
14144
|
-
var r, i, a;
|
|
14145
|
+
var r, i, a, o;
|
|
14145
14146
|
if (!n) return e(() => ({ currentScreenConfig: null }));
|
|
14146
|
-
let
|
|
14147
|
-
if (!
|
|
14148
|
-
let
|
|
14149
|
-
if (typeof (
|
|
14150
|
-
var
|
|
14151
|
-
|
|
14152
|
-
templateId:
|
|
14153
|
-
dataSource: (
|
|
14154
|
-
properties:
|
|
14155
|
-
stepType:
|
|
14147
|
+
let s = t().workflow;
|
|
14148
|
+
if (!s) return e(() => ({ currentScreenConfig: null }));
|
|
14149
|
+
let c = t().sessionProperties, l = null, u = t()._findStepById(n);
|
|
14150
|
+
if (typeof (u == null || (r = u.client) == null ? void 0 : r.templateId) == "string") {
|
|
14151
|
+
var d;
|
|
14152
|
+
l = P(P({}, u.client), {}, {
|
|
14153
|
+
templateId: u.client.templateId,
|
|
14154
|
+
dataSource: (d = u.dataSource) == null ? null : d,
|
|
14155
|
+
properties: c,
|
|
14156
|
+
stepType: u.type,
|
|
14156
14157
|
locale: t().locale
|
|
14157
14158
|
});
|
|
14158
14159
|
}
|
|
14159
|
-
if (
|
|
14160
|
-
var
|
|
14161
|
-
|
|
14160
|
+
if (l) {
|
|
14161
|
+
var f;
|
|
14162
|
+
l.sessionId = (f = t().currentSessionData) == null ? void 0 : f.sessionId, l.serviceToken = t().serviceToken;
|
|
14162
14163
|
}
|
|
14163
|
-
if (
|
|
14164
|
-
let e =
|
|
14165
|
-
t && (
|
|
14164
|
+
if (l && qi(u == null || (i = u.client) == null ? void 0 : i.templateLayout)) {
|
|
14165
|
+
let e = s.client.layout, t = ji(u.client.templateLayout, e);
|
|
14166
|
+
t && (l.templateLayout = t);
|
|
14166
14167
|
}
|
|
14167
|
-
let
|
|
14168
|
-
if (
|
|
14168
|
+
let p = Ii(t().externalModules, s.steps, n);
|
|
14169
|
+
if (l === null || !p) {
|
|
14169
14170
|
let n = new Va({
|
|
14170
14171
|
errorCode: ci.UNKNOWN_STEP,
|
|
14171
14172
|
message: "Unsupported step template"
|
|
@@ -14173,16 +14174,32 @@ var hp = (e, t) => ({
|
|
|
14173
14174
|
t().workflowSessionCompletion({ error: n }), e(() => ({ currentScreenConfig: null })), t().resetSession();
|
|
14174
14175
|
return;
|
|
14175
14176
|
}
|
|
14176
|
-
mp.clearFailedAssets(),
|
|
14177
|
-
let
|
|
14178
|
-
if (
|
|
14177
|
+
mp.clearFailedAssets(), l = ya(l);
|
|
14178
|
+
let m = t().externalModules.find((e) => e.id === "idv-gui"), h = !!(!(m == null || (a = m.supportedTemplates) == null) && a.includes(l.templateId)), g = yield mp.warmupModuleImages(l, h);
|
|
14179
|
+
if (h) {
|
|
14179
14180
|
let e = t().fetchService;
|
|
14180
|
-
|
|
14181
|
+
l = P(P({}, l), {}, {
|
|
14181
14182
|
uploadFileToTemp: e == null ? void 0 : e.uploadFileToTemp.bind(e),
|
|
14182
14183
|
abortRequest: e == null ? void 0 : e.abortRequest.bind(e)
|
|
14183
14184
|
});
|
|
14184
14185
|
}
|
|
14185
|
-
|
|
14186
|
+
l = P(P({}, l), {}, { failedAssets: g });
|
|
14187
|
+
let _ = (o = t().currentScreenConfig) == null ? void 0 : o.templateId;
|
|
14188
|
+
if (typeof _ == "string") {
|
|
14189
|
+
let e = t().externalModules.find((e) => e.supportedTemplates.includes(_));
|
|
14190
|
+
try {
|
|
14191
|
+
var v;
|
|
14192
|
+
typeof (e == null || (v = e.component) == null ? void 0 : v.cancel) == "function" && e.component.cancel();
|
|
14193
|
+
} catch (t) {
|
|
14194
|
+
var y, b;
|
|
14195
|
+
H.logSessionEvent({
|
|
14196
|
+
module: "IDV",
|
|
14197
|
+
logLevel: B.DEBUG,
|
|
14198
|
+
message: `Failed to cancel previous module (${(y = e == null || (b = e.component) == null ? void 0 : b.displayName) == null ? "unknown" : y}): ${V(t)}`
|
|
14199
|
+
});
|
|
14200
|
+
}
|
|
14201
|
+
}
|
|
14202
|
+
e(() => ({ currentScreenConfig: l }));
|
|
14186
14203
|
});
|
|
14187
14204
|
return function(e) {
|
|
14188
14205
|
return n.apply(this, arguments);
|
|
@@ -15542,7 +15559,7 @@ var vp = Hr((...e) => P(P(P({}, ha(...e)), lp(...e)), hp(...e))), yp = (e) => /^
|
|
|
15542
15559
|
return (!this._currentScreenElement || !this._isTheSameModuleAndScreen(e)) && (this._currentScreenElement = bp(e.id, t), this._currentScreenModuleId = e.id, this._currentScreenConfig = this.currentScreenConfig), this._currentScreenElement;
|
|
15543
15560
|
}
|
|
15544
15561
|
get version() {
|
|
15545
|
-
return "3.10.
|
|
15562
|
+
return "3.10.574-nightly";
|
|
15546
15563
|
}
|
|
15547
15564
|
disconnectedCallback() {
|
|
15548
15565
|
var e;
|
|
@@ -15661,7 +15678,7 @@ var Ep = class {
|
|
|
15661
15678
|
}
|
|
15662
15679
|
get version() {
|
|
15663
15680
|
var e;
|
|
15664
|
-
return (e = "3.10.
|
|
15681
|
+
return (e = "3.10.574-nightly") == null ? "Version unavailable. Something went wrong" : e;
|
|
15665
15682
|
}
|
|
15666
15683
|
get currentSessionId() {
|
|
15667
15684
|
return vp.getState().getCurrentSessionId();
|
package/package.json
CHANGED