@regulaforensics/idv-interfaces 3.6.420-nightly → 3.6.421-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.js +140 -122
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,130 +1,148 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
E.call(e, t) && h(r, t, e[t]);
|
|
10
|
-
return r;
|
|
11
|
-
};
|
|
12
|
-
class o {
|
|
13
|
-
constructor({
|
|
14
|
-
errorCode: e,
|
|
15
|
-
errorCodeKey: t,
|
|
16
|
-
message: i,
|
|
17
|
-
underlyingError: n,
|
|
18
|
-
underlyingBaseError: a,
|
|
19
|
-
domain: d,
|
|
20
|
-
module: s,
|
|
21
|
-
errorEnumName: l,
|
|
22
|
-
shortDomainCode: f
|
|
23
|
-
}) {
|
|
24
|
-
this.errorCode = e, this.errorCodeKey = t, this.message = i, this.underlyingError = n, this.underlyingBaseError = a, this.module = s, this.domain = d, this.errorEnumName = l, this.shortDomainCode = f;
|
|
25
|
-
}
|
|
26
|
-
static getErrorKey(e, t) {
|
|
27
|
-
const i = Object.keys(t).find((n) => t[n] === e);
|
|
28
|
-
if (!i)
|
|
29
|
-
throw new Error(`Invalid errorCode: ${e} in enum`);
|
|
30
|
-
return i;
|
|
31
|
-
}
|
|
32
|
-
get lastUnderlyingError() {
|
|
33
|
-
let e = this.underlyingBaseError;
|
|
34
|
-
for (; (e == null ? void 0 : e.underlyingBaseError) instanceof o; )
|
|
35
|
-
e = e.underlyingBaseError;
|
|
36
|
-
return e == null ? void 0 : e.underlyingError;
|
|
37
|
-
}
|
|
38
|
-
toObject() {
|
|
39
|
-
const e = {
|
|
40
|
-
errorCode: this.errorCode,
|
|
41
|
-
errorCodeKey: this.errorCodeKey,
|
|
42
|
-
errorEnumName: this.errorEnumName,
|
|
43
|
-
message: this.message,
|
|
44
|
-
module: this.module,
|
|
45
|
-
underlyingError: this.underlyingError,
|
|
46
|
-
lastUnderlineError: this.lastUnderlyingError
|
|
47
|
-
};
|
|
48
|
-
return this.underlyingBaseError && this.underlyingBaseError instanceof o && (e.underlyingBaseError = this.underlyingBaseError.toObject()), e;
|
|
49
|
-
}
|
|
50
|
-
get shortChain() {
|
|
51
|
-
let e = `${this.shortDomainCode}:${this.errorCode}${this.underlyingError ? "-" + this.underlyingError : ""}`;
|
|
52
|
-
return this.underlyingBaseError instanceof o && (e += `-${this.underlyingBaseError.shortChain}`), e;
|
|
53
|
-
}
|
|
54
|
-
get fullChain() {
|
|
55
|
-
let e = `${this.module}.${this.domain}:${this.errorCodeKey}${this.underlyingError ? "-" + this.underlyingError : ""}`;
|
|
56
|
-
return this.underlyingBaseError instanceof o && (e += `-${this.underlyingBaseError.fullChain}`), e;
|
|
57
|
-
}
|
|
1
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/typeof.js
|
|
2
|
+
function e(t) {
|
|
3
|
+
"@babel/helpers - typeof";
|
|
4
|
+
return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
5
|
+
return typeof e;
|
|
6
|
+
} : function(e) {
|
|
7
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
8
|
+
}, e(t);
|
|
58
9
|
}
|
|
59
|
-
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPrimitive.js
|
|
12
|
+
function t(t, n) {
|
|
13
|
+
if (e(t) != "object" || !t) return t;
|
|
14
|
+
var r = t[Symbol.toPrimitive];
|
|
15
|
+
if (r !== void 0) {
|
|
16
|
+
var i = r.call(t, n || "default");
|
|
17
|
+
if (e(i) != "object") return i;
|
|
18
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
19
|
+
}
|
|
20
|
+
return (n === "string" ? String : Number)(t);
|
|
60
21
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
console.error('Missed "getSupportedTemplates" method when register module');
|
|
67
|
-
if (e.initialize && typeof e.initialize == "function" || console.error(`${e == null ? void 0 : e.displayName} "initialize" method was not implemented`), e.deinitialize && typeof e.deinitialize == "function" || console.error(`${e == null ? void 0 : e.displayName} "deinitialize" method was not implemented`), e.isReady && typeof e.isReady == "function" || console.error(`${e == null ? void 0 : e.displayName} "isReady" method was not implemented`), e.getIdentifier && typeof e.getIdentifier == "function") {
|
|
68
|
-
const t = e.getIdentifier();
|
|
69
|
-
console.log(`Module id: ${t}`);
|
|
70
|
-
} else
|
|
71
|
-
console.error('Missed "getIdentifier" when register module');
|
|
72
|
-
customElements.get(e.getIdentifier()) ? console.log(`Module ${r} has already registered`) : customElements.define(r, e), console.log("-------");
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/toPropertyKey.js
|
|
24
|
+
function n(n) {
|
|
25
|
+
var r = t(n, "string");
|
|
26
|
+
return e(r) == "symbol" ? r : r + "";
|
|
73
27
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
return c(c({}, i), r.web);
|
|
84
|
-
} else
|
|
85
|
-
return r.web;
|
|
86
|
-
const t = {};
|
|
87
|
-
for (const [i, n] of Object.entries(e))
|
|
88
|
-
t[i] = m(n);
|
|
89
|
-
return t;
|
|
90
|
-
}
|
|
91
|
-
return r;
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/defineProperty.js
|
|
30
|
+
function r(e, t, r) {
|
|
31
|
+
return (t = n(t)) in e ? Object.defineProperty(e, t, {
|
|
32
|
+
value: r,
|
|
33
|
+
enumerable: !0,
|
|
34
|
+
configurable: !0,
|
|
35
|
+
writable: !0
|
|
36
|
+
}) : e[t] = r, e;
|
|
92
37
|
}
|
|
93
|
-
|
|
94
|
-
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region \0@oxc-project+runtime@0.133.0/helpers/esm/objectSpread2.js
|
|
40
|
+
function i(e, t) {
|
|
41
|
+
var n = Object.keys(e);
|
|
42
|
+
if (Object.getOwnPropertySymbols) {
|
|
43
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
44
|
+
t && (r = r.filter(function(t) {
|
|
45
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
46
|
+
})), n.push.apply(n, r);
|
|
47
|
+
}
|
|
48
|
+
return n;
|
|
95
49
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
50
|
+
function a(e) {
|
|
51
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
52
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
53
|
+
t % 2 ? i(Object(n), !0).forEach(function(t) {
|
|
54
|
+
r(e, t, n[t]);
|
|
55
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : i(Object(n)).forEach(function(t) {
|
|
56
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return e;
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/index.ts
|
|
63
|
+
var o = class e {
|
|
64
|
+
constructor({ errorCode: e, errorCodeKey: t, message: n, underlyingError: r, underlyingBaseError: i, domain: a, module: o, errorEnumName: s, shortDomainCode: c }) {
|
|
65
|
+
this.errorCode = e, this.errorCodeKey = t, this.message = n, this.underlyingError = r, this.underlyingBaseError = i, this.module = o, this.domain = a, this.errorEnumName = s, this.shortDomainCode = c;
|
|
66
|
+
}
|
|
67
|
+
static getErrorKey(e, t) {
|
|
68
|
+
let n = Object.keys(t).find((n) => t[n] === e);
|
|
69
|
+
if (!n) throw Error(`Invalid errorCode: ${e} in enum`);
|
|
70
|
+
return n;
|
|
71
|
+
}
|
|
72
|
+
get lastUnderlyingError() {
|
|
73
|
+
let t = this.underlyingBaseError;
|
|
74
|
+
for (; (t == null ? void 0 : t.underlyingBaseError) instanceof e;) t = t.underlyingBaseError;
|
|
75
|
+
return t == null ? void 0 : t.underlyingError;
|
|
76
|
+
}
|
|
77
|
+
toObject() {
|
|
78
|
+
let t = {
|
|
79
|
+
errorCode: this.errorCode,
|
|
80
|
+
errorCodeKey: this.errorCodeKey,
|
|
81
|
+
errorEnumName: this.errorEnumName,
|
|
82
|
+
message: this.message,
|
|
83
|
+
module: this.module,
|
|
84
|
+
underlyingError: this.underlyingError,
|
|
85
|
+
lastUnderlineError: this.lastUnderlyingError
|
|
86
|
+
};
|
|
87
|
+
return this.underlyingBaseError && this.underlyingBaseError instanceof e && (t.underlyingBaseError = this.underlyingBaseError.toObject()), t;
|
|
88
|
+
}
|
|
89
|
+
get shortChain() {
|
|
90
|
+
let t = `${this.shortDomainCode}:${this.errorCode}${this.underlyingError ? "-" + this.underlyingError : ""}`;
|
|
91
|
+
return this.underlyingBaseError instanceof e && (t += `-${this.underlyingBaseError.shortChain}`), t;
|
|
92
|
+
}
|
|
93
|
+
get fullChain() {
|
|
94
|
+
let t = `${this.module}.${this.domain}:${this.errorCodeKey}${this.underlyingError ? "-" + this.underlyingError : ""}`;
|
|
95
|
+
return this.underlyingBaseError instanceof e && (t += `-${this.underlyingBaseError.fullChain}`), t;
|
|
96
|
+
}
|
|
97
|
+
}, s = class extends HTMLElement {};
|
|
98
|
+
function c(e, t) {
|
|
99
|
+
if (t.displayName ? console.log(`Register module: ${t.displayName}`) : console.error("Missed \"displayName\" when register module"), t.getSupportedTemplates && typeof t.getSupportedTemplates == "function") {
|
|
100
|
+
let e = t.getSupportedTemplates();
|
|
101
|
+
console.log(`${t == null ? void 0 : t.displayName} supported templates: ${e.join(", ")}`);
|
|
102
|
+
} else console.error("Missed \"getSupportedTemplates\" method when register module");
|
|
103
|
+
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") {
|
|
104
|
+
let e = t.getIdentifier();
|
|
105
|
+
console.log(`Module id: ${e}`);
|
|
106
|
+
} else console.error("Missed \"getIdentifier\" when register module");
|
|
107
|
+
customElements.get(t.getIdentifier()) ? console.log(`Module ${e} has already registered`) : customElements.define(e, t), console.log("-------");
|
|
102
108
|
}
|
|
103
|
-
var
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
109
|
+
var l = (e) => typeof e == "object" && !!e && !Array.isArray(e);
|
|
110
|
+
function u(e) {
|
|
111
|
+
if (Array.isArray(e)) return e.map(u);
|
|
112
|
+
if (l(e)) {
|
|
113
|
+
let t = a({}, e);
|
|
114
|
+
if (delete t.ios, delete t.android, delete t.web, "web" in e) return l(e.web) ? a(a({}, u(t)), e.web) : e.web;
|
|
115
|
+
let n = {};
|
|
116
|
+
for (let [e, r] of Object.entries(t)) n[e] = u(r);
|
|
117
|
+
return n;
|
|
118
|
+
}
|
|
119
|
+
return e;
|
|
120
|
+
}
|
|
121
|
+
function d(e) {
|
|
122
|
+
return Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0));
|
|
123
|
+
}
|
|
124
|
+
var f = {
|
|
125
|
+
FORM: "form",
|
|
126
|
+
DATA: "data"
|
|
117
127
|
};
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
function p(e) {
|
|
129
|
+
return new Promise((t) => setTimeout(t, e));
|
|
130
|
+
}
|
|
131
|
+
var m = /* @__PURE__ */ function(e) {
|
|
132
|
+
return e.RTL = "rtl", e.LTR = "ltr", e;
|
|
133
|
+
}({}), h = ["ar", "he"], g = (e) => {
|
|
134
|
+
var t;
|
|
135
|
+
let n = e ? (t = e.substring(0, 2)) == null ? void 0 : t.toLowerCase() : "";
|
|
136
|
+
return h.includes(n) ? "rtl" : "ltr";
|
|
137
|
+
}, _ = (e, t) => e.base64 && !(t != null && t.base64.has(e.base64)) ? e.base64 : e.imageURL && !(t != null && t.imageURL.has(e.imageURL)) ? e.imageURL : "", v = (e, t, n) => {
|
|
138
|
+
var r;
|
|
139
|
+
if (!t) return;
|
|
140
|
+
let i = (r = e == null ? void 0 : e.idvAsset) == null ? null : r;
|
|
141
|
+
for (; i;) {
|
|
142
|
+
let e = _(i, n);
|
|
143
|
+
if (e) return e;
|
|
144
|
+
i = i.failurePolicy === "placeholderImage" && i.placeholderImage || null;
|
|
145
|
+
}
|
|
130
146
|
};
|
|
147
|
+
//#endregion
|
|
148
|
+
export { o as BaseError, s as BaseModule, m as DirectionType, f as PerformTypes, h as RTL_LANGUAGES, d as cleanObjectFromUndefined, g as getLayoutDirectionFromLocale, u as parseWebSpecificFields, c as registerModule, v as resolveRenderableImageSrc, p as wait };
|
package/package.json
CHANGED