@regulaforensics/idv-document 3.2.296-nightly → 3.2.298-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 +15 -15
- package/dist/main.js +99 -99
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -10186,22 +10186,22 @@ $e.getAdapter = mb.getAdapter;
|
|
|
10186
10186
|
$e.HttpStatusCode = t1;
|
|
10187
10187
|
$e.default = $e;
|
|
10188
10188
|
const {
|
|
10189
|
-
Axios:
|
|
10190
|
-
AxiosError:
|
|
10191
|
-
CanceledError:
|
|
10192
|
-
isCancel:
|
|
10193
|
-
CancelToken:
|
|
10194
|
-
VERSION:
|
|
10195
|
-
all:
|
|
10196
|
-
Cancel:
|
|
10197
|
-
isAxiosError:
|
|
10198
|
-
spread:
|
|
10199
|
-
toFormData:
|
|
10200
|
-
AxiosHeaders:
|
|
10201
|
-
HttpStatusCode:
|
|
10202
|
-
formToJSON:
|
|
10203
|
-
getAdapter:
|
|
10204
|
-
mergeConfig:
|
|
10189
|
+
Axios: Gle,
|
|
10190
|
+
AxiosError: Wle,
|
|
10191
|
+
CanceledError: $le,
|
|
10192
|
+
isCancel: Kle,
|
|
10193
|
+
CancelToken: qle,
|
|
10194
|
+
VERSION: Yle,
|
|
10195
|
+
all: Qle,
|
|
10196
|
+
Cancel: Xle,
|
|
10197
|
+
isAxiosError: Jle,
|
|
10198
|
+
spread: ece,
|
|
10199
|
+
toFormData: tce,
|
|
10200
|
+
AxiosHeaders: rce,
|
|
10201
|
+
HttpStatusCode: nce,
|
|
10202
|
+
formToJSON: ice,
|
|
10203
|
+
getAdapter: ace,
|
|
10204
|
+
mergeConfig: oce
|
|
10205
10205
|
} = $e, ar = "https://api.regulaforensics.com".replace(/\/+$/, "");
|
|
10206
10206
|
class lo {
|
|
10207
10207
|
constructor(t, r = ar, n = $e) {
|
|
@@ -21001,56 +21001,66 @@ function x3e(e, t, r) {
|
|
|
21001
21001
|
});
|
|
21002
21002
|
});
|
|
21003
21003
|
}
|
|
21004
|
-
const N3e = {
|
|
21004
|
+
const N3e = (e) => {
|
|
21005
|
+
const { translationKeysData: t, translationKeysProps: r, locale: n } = e, i = {};
|
|
21006
|
+
let a = null;
|
|
21007
|
+
for (const o in t)
|
|
21008
|
+
i[t[o].key] = o;
|
|
21009
|
+
for (const o in r)
|
|
21010
|
+
i[o] && r[o] && (a ? a[i[o]] = r[o] : a = { [i[o]]: r[o] });
|
|
21011
|
+
return a ? {
|
|
21012
|
+
[n]: a
|
|
21013
|
+
} : {};
|
|
21014
|
+
}, L3e = {
|
|
21005
21015
|
DOCREADER: "DOCREADER"
|
|
21006
|
-
},
|
|
21007
|
-
preparingCamera:
|
|
21008
|
-
timeout:
|
|
21009
|
-
noFocus:
|
|
21010
|
-
somethingWentWrong:
|
|
21011
|
-
incorrectCameraId:
|
|
21012
|
-
done:
|
|
21013
|
-
cameraUnavailable:
|
|
21014
|
-
versionNotSupported:
|
|
21015
|
-
httpNotSupported:
|
|
21016
|
-
insecurePageContext:
|
|
21017
|
-
badLicense:
|
|
21018
|
-
fileCorrupt:
|
|
21019
|
-
largeFile:
|
|
21020
|
-
placeDocumentIntoFrame:
|
|
21021
|
-
holdDocumentStraight:
|
|
21022
|
-
glaresOnDocument:
|
|
21023
|
-
tryAgain:
|
|
21024
|
-
noCameraAvailable:
|
|
21025
|
-
positionDocumentCenter:
|
|
21026
|
-
uploadPhoto:
|
|
21027
|
-
moveCloser:
|
|
21028
|
-
keepDeviceStill:
|
|
21029
|
-
camera:
|
|
21030
|
-
switchToMobile:
|
|
21031
|
-
openPhoneCamera:
|
|
21032
|
-
pleaseWait:
|
|
21033
|
-
mobileDevice:
|
|
21034
|
-
verifyYourIdentity:
|
|
21035
|
-
fromCameraFilesMobileDesktop:
|
|
21036
|
-
fromCameraFilesDesktop:
|
|
21037
|
-
fromCameraMobileDesktop:
|
|
21038
|
-
fromFilesMobileDesktop:
|
|
21039
|
-
fromCameraDesktop:
|
|
21040
|
-
fromFilesDesktop:
|
|
21041
|
-
fromMobileDesktop:
|
|
21042
|
-
fromCameraGalleryMobile:
|
|
21043
|
-
fromGalleryMobile:
|
|
21044
|
-
gallery:
|
|
21045
|
-
files:
|
|
21046
|
-
returnToComputer:
|
|
21047
|
-
documentCaptured:
|
|
21048
|
-
or:
|
|
21049
|
-
continueInBrowser:
|
|
21050
|
-
skip:
|
|
21051
|
-
flipTheDocument:
|
|
21052
|
-
tiltTheDocument:
|
|
21053
|
-
},
|
|
21016
|
+
}, Z3e = { fallback: "Preparing the camera...", key: "strPrepareCamera" }, j3e = { fallback: "Timeout", key: "strTimeout" }, F3e = { fallback: "No camera focus", key: "strNoFocus" }, U3e = { fallback: "Something went wrong", key: "messageUnknownError" }, B3e = { fallback: "No camera with the specified ID found.", key: "InfoScreenIncorrectCameraIdTitle" }, z3e = { fallback: "Done!", key: "strDoneMessage" }, G3e = { fallback: "Camera unavailable!", key: "statusCameraUnavailableTitle" }, W3e = { fallback: "Your browser version is not supported", key: "statusBrowserNotSupportedTitle" }, $3e = { fallback: "HTTPS not used", key: "statusBrowserHTTPNotSupportedSubtitle" }, K3e = { fallback: "Insecure context", key: "statusBrowserInsecurePageContextSubtitle" }, q3e = { fallback: "The license cannot be found or has expired", key: "statusProcMgrBadLicenseSubtitle" }, Y3e = { fallback: "This file is corrupt or not supported", key: "statusIncorrectDataTitle" }, Q3e = { fallback: "This file is too large to be uploaded", key: "statusLargeDataTitle" }, X3e = { fallback: "Fit the document into the frame", key: "strPlaceDocumentInFrame" }, J3e = { fallback: "Hold the document straight", key: "strHoldDocumentStraight" }, ele = { fallback: "Avoid glare on the document", key: "strGlaresOnDocument" }, tle = { fallback: "Try again", key: "faceLivenessScreenButton" }, rle = { fallback: "No camera available", key: "InfoScreenNoCameraTitle" }, nle = { fallback: "Position the document in the center", key: "documentReaderDocumentReaderLayoutDocumentCenter" }, ile = { fallback: "Upload a photo", key: "cameraCaptureCameraCaptureStartScreenTitle" }, ale = { fallback: "Move closer", key: "hint.moveCloser" }, ole = { fallback: "Hold the device still", key: "strKeepDeviceStill" }, sle = { fallback: "Camera", key: "strCamera" }, lle = { fallback: "Switch to mobile", key: "switchToMobile" }, cle = { fallback: "Open the camera on your mobile device, scan the QR code, and follow the link", key: "openPhoneCamera" }, ule = { fallback: "Please wait...", key: "strPleaseWait" }, fle = { fallback: "Mobile device", key: "mobileDevice" }, dle = { fallback: "Identity document verification", key: "verifyYourIdentity" }, hle = { fallback: "Capture a document using the computer’s camera, upload it from files, or scan it on a mobile device", key: "fromCameraFilesMobileDesktop" }, ple = { fallback: "Capture a document using the computer’s camera or upload it from files", key: "fromCameraFilesDesktop" }, mle = { fallback: "Capture a document using the computer’s camera or scan it on a mobile device", key: "fromCameraMobileDesktop" }, gle = { fallback: "Upload a document from files or scan it on a mobile device", key: "fromFilesMobileDesktop" }, vle = { fallback: "Use the computer's camera to capture a document", key: "fromCameraDesktop" }, ble = { fallback: "Pick a document from files and upload it", key: "fromFilesDesktop" }, _le = { fallback: "Use your mobile camera to capture a document", key: "fromMobileDesktop" }, yle = { fallback: "Capture a document using the mobile's camera or upload it from gallery", key: "fromCameraGalleryMobile" }, wle = { fallback: "Pick a document from the gallery and upload it", key: "fromGalleryMobile" }, Cle = { fallback: "Gallery", key: "gallery" }, Hle = { fallback: "Files", key: "files" }, Vle = { fallback: "Return to the computer", key: "returnToComputer" }, Ele = { fallback: "Your document has been captured", key: "documentCaptured" }, kle = { fallback: "or", key: "strOr" }, Sle = { fallback: "Click here to continue in browser", key: "continueInBrowser" }, Mle = { fallback: "Skip", key: "strSkip" }, Ale = { fallback: "Flip the document", key: "documentReaderDocumentReaderLayoutFlipDocument" }, Rle = { fallback: "Tilt the document", key: "strTiltDocument" }, Ile = {
|
|
21017
|
+
preparingCamera: Z3e,
|
|
21018
|
+
timeout: j3e,
|
|
21019
|
+
noFocus: F3e,
|
|
21020
|
+
somethingWentWrong: U3e,
|
|
21021
|
+
incorrectCameraId: B3e,
|
|
21022
|
+
done: z3e,
|
|
21023
|
+
cameraUnavailable: G3e,
|
|
21024
|
+
versionNotSupported: W3e,
|
|
21025
|
+
httpNotSupported: $3e,
|
|
21026
|
+
insecurePageContext: K3e,
|
|
21027
|
+
badLicense: q3e,
|
|
21028
|
+
fileCorrupt: Y3e,
|
|
21029
|
+
largeFile: Q3e,
|
|
21030
|
+
placeDocumentIntoFrame: X3e,
|
|
21031
|
+
holdDocumentStraight: J3e,
|
|
21032
|
+
glaresOnDocument: ele,
|
|
21033
|
+
tryAgain: tle,
|
|
21034
|
+
noCameraAvailable: rle,
|
|
21035
|
+
positionDocumentCenter: nle,
|
|
21036
|
+
uploadPhoto: ile,
|
|
21037
|
+
moveCloser: ale,
|
|
21038
|
+
keepDeviceStill: ole,
|
|
21039
|
+
camera: sle,
|
|
21040
|
+
switchToMobile: lle,
|
|
21041
|
+
openPhoneCamera: cle,
|
|
21042
|
+
pleaseWait: ule,
|
|
21043
|
+
mobileDevice: fle,
|
|
21044
|
+
verifyYourIdentity: dle,
|
|
21045
|
+
fromCameraFilesMobileDesktop: hle,
|
|
21046
|
+
fromCameraFilesDesktop: ple,
|
|
21047
|
+
fromCameraMobileDesktop: mle,
|
|
21048
|
+
fromFilesMobileDesktop: gle,
|
|
21049
|
+
fromCameraDesktop: vle,
|
|
21050
|
+
fromFilesDesktop: ble,
|
|
21051
|
+
fromMobileDesktop: _le,
|
|
21052
|
+
fromCameraGalleryMobile: yle,
|
|
21053
|
+
fromGalleryMobile: wle,
|
|
21054
|
+
gallery: Cle,
|
|
21055
|
+
files: Hle,
|
|
21056
|
+
returnToComputer: Vle,
|
|
21057
|
+
documentCaptured: Ele,
|
|
21058
|
+
or: kle,
|
|
21059
|
+
continueInBrowser: Sle,
|
|
21060
|
+
skip: Mle,
|
|
21061
|
+
flipTheDocument: Ale,
|
|
21062
|
+
tiltTheDocument: Rle
|
|
21063
|
+
}, Tle = Wt`
|
|
21054
21064
|
*,
|
|
21055
21065
|
::after,
|
|
21056
21066
|
::before {
|
|
@@ -21076,10 +21086,10 @@ const N3e = {
|
|
|
21076
21086
|
height: 100%;
|
|
21077
21087
|
}
|
|
21078
21088
|
`;
|
|
21079
|
-
var
|
|
21080
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
21089
|
+
var Ole = Object.defineProperty, Ple = Object.getOwnPropertyDescriptor, P5 = (e, t, r, n) => {
|
|
21090
|
+
for (var i = n > 1 ? void 0 : n ? Ple(t, r) : t, a = e.length - 1, o; a >= 0; a--)
|
|
21081
21091
|
(o = e[a]) && (i = (n ? o(t, r, i) : o(i)) || i);
|
|
21082
|
-
return n && i &&
|
|
21092
|
+
return n && i && Ole(t, r, i), i;
|
|
21083
21093
|
};
|
|
21084
21094
|
let b2 = class extends xn {
|
|
21085
21095
|
constructor() {
|
|
@@ -21189,20 +21199,10 @@ let b2 = class extends xn {
|
|
|
21189
21199
|
}
|
|
21190
21200
|
`), t;
|
|
21191
21201
|
}
|
|
21192
|
-
_getTranslationKeys(e) {
|
|
21193
|
-
const { translationKeysData: t, translationKeysProps: r, locale: n } = e, i = {}, a = {};
|
|
21194
|
-
for (const l in t)
|
|
21195
|
-
i[t[l].key] = l;
|
|
21196
|
-
for (const l in r)
|
|
21197
|
-
r[l] && (a[i[l]] = r[l]);
|
|
21198
|
-
return {
|
|
21199
|
-
[n]: a
|
|
21200
|
-
};
|
|
21201
|
-
}
|
|
21202
21202
|
_prepareTranslations(e) {
|
|
21203
21203
|
const { locale: t, localizationKeys: r } = e, n = t && typeof t == "string" ? t.slice(0, 2).toLowerCase() : "";
|
|
21204
|
-
return !n || !r ? null :
|
|
21205
|
-
translationKeysData:
|
|
21204
|
+
return !n || !r ? null : N3e({
|
|
21205
|
+
translationKeysData: Ile,
|
|
21206
21206
|
translationKeysProps: r,
|
|
21207
21207
|
locale: n
|
|
21208
21208
|
});
|
|
@@ -21304,7 +21304,7 @@ let b2 = class extends xn {
|
|
|
21304
21304
|
]), this._component.settings = this._prepareSettings({ copyright: a, customization: n, functionality: r, locale: l }), this._component.translations = this._prepareTranslations(e);
|
|
21305
21305
|
}
|
|
21306
21306
|
updated(e) {
|
|
21307
|
-
e.has("props") && (this.props && !this._performType && (this._performType = this.props.moduleProps.stepType ===
|
|
21307
|
+
e.has("props") && (this.props && !this._performType && (this._performType = this.props.moduleProps.stepType === L3e.DOCREADER ? Sa.FORM : Sa.DATA), this._setDocReaderProps());
|
|
21308
21308
|
}
|
|
21309
21309
|
render() {
|
|
21310
21310
|
var e, t;
|
|
@@ -21315,7 +21315,7 @@ let b2 = class extends xn {
|
|
|
21315
21315
|
></document-reader>`;
|
|
21316
21316
|
}
|
|
21317
21317
|
};
|
|
21318
|
-
b2.styles = [
|
|
21318
|
+
b2.styles = [Tle];
|
|
21319
21319
|
P5([
|
|
21320
21320
|
ly()
|
|
21321
21321
|
], b2.prototype, "props", 2);
|
|
@@ -21325,7 +21325,7 @@ P5([
|
|
|
21325
21325
|
b2 = P5([
|
|
21326
21326
|
sy("document-reader-camera")
|
|
21327
21327
|
], b2);
|
|
21328
|
-
const
|
|
21328
|
+
const Dle = Wt`
|
|
21329
21329
|
.gallery-root {
|
|
21330
21330
|
display: flex;
|
|
21331
21331
|
width: 100%;
|
|
@@ -21386,7 +21386,7 @@ const Ple = Wt`
|
|
|
21386
21386
|
align-items: center;
|
|
21387
21387
|
justify-content: center;
|
|
21388
21388
|
}
|
|
21389
|
-
`,
|
|
21389
|
+
`, xle = Cn`<svg
|
|
21390
21390
|
xmlns="http://www.w3.org/2000/svg"
|
|
21391
21391
|
viewBox="0 0 24 24"
|
|
21392
21392
|
width="24"
|
|
@@ -21394,7 +21394,7 @@ const Ple = Wt`
|
|
|
21394
21394
|
fill="rgba(0,0,0,0.6)"
|
|
21395
21395
|
>
|
|
21396
21396
|
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" />
|
|
21397
|
-
</svg>`,
|
|
21397
|
+
</svg>`, Nle = Cn` <svg
|
|
21398
21398
|
width="40"
|
|
21399
21399
|
height="40"
|
|
21400
21400
|
viewBox="0 0 23 22"
|
|
@@ -21425,7 +21425,7 @@ const Ple = Wt`
|
|
|
21425
21425
|
<rect width="22" height="22" fill="white" transform="translate(0.5 1.90735e-05)" />
|
|
21426
21426
|
</clipPath>
|
|
21427
21427
|
</defs>
|
|
21428
|
-
</svg>`,
|
|
21428
|
+
</svg>`, Lle = Cn`<svg
|
|
21429
21429
|
width="113"
|
|
21430
21430
|
height="16"
|
|
21431
21431
|
viewBox="0 0 113 16"
|
|
@@ -21458,10 +21458,10 @@ const Ple = Wt`
|
|
|
21458
21458
|
fill="#BD7DFF"
|
|
21459
21459
|
/>
|
|
21460
21460
|
</svg>`;
|
|
21461
|
-
var
|
|
21462
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
21461
|
+
var Zle = Object.defineProperty, jle = Object.getOwnPropertyDescriptor, D5 = (e, t, r, n) => {
|
|
21462
|
+
for (var i = n > 1 ? void 0 : n ? jle(t, r) : t, a = e.length - 1, o; a >= 0; a--)
|
|
21463
21463
|
(o = e[a]) && (i = (n ? o(t, r, i) : o(i)) || i);
|
|
21464
|
-
return n && i &&
|
|
21464
|
+
return n && i && Zle(t, r, i), i;
|
|
21465
21465
|
};
|
|
21466
21466
|
const $i = Sa.FORM;
|
|
21467
21467
|
let _2 = class extends xn {
|
|
@@ -21572,9 +21572,9 @@ let _2 = class extends xn {
|
|
|
21572
21572
|
style="background: ${uy((a = (i = this.props) == null ? void 0 : i.moduleProps) == null ? void 0 : a.backgroundColor)}"
|
|
21573
21573
|
>
|
|
21574
21574
|
<div class="header">
|
|
21575
|
-
<button @click="${this._handleCloseClick}" class="close-btn">${
|
|
21575
|
+
<button @click="${this._handleCloseClick}" class="close-btn">${xle}</button>
|
|
21576
21576
|
</div>
|
|
21577
|
-
<button @click="${this._handleUploadClick}" class="btn">${
|
|
21577
|
+
<button @click="${this._handleUploadClick}" class="btn">${Nle}</button>
|
|
21578
21578
|
<input
|
|
21579
21579
|
@change="${this._handleInputChange}"
|
|
21580
21580
|
id="file-input"
|
|
@@ -21583,12 +21583,12 @@ let _2 = class extends xn {
|
|
|
21583
21583
|
accept="image/png, image/jpeg, image/bmp, image/webp, image/gif, .jpg, .jpeg"
|
|
21584
21584
|
/>
|
|
21585
21585
|
<div class="footer">
|
|
21586
|
-
<a href>${
|
|
21586
|
+
<a href>${Lle} </a>
|
|
21587
21587
|
</div>
|
|
21588
21588
|
</div>`;
|
|
21589
21589
|
}
|
|
21590
21590
|
};
|
|
21591
|
-
_2.styles = [
|
|
21591
|
+
_2.styles = [Dle];
|
|
21592
21592
|
D5([
|
|
21593
21593
|
ly()
|
|
21594
21594
|
], _2.prototype, "props", 2);
|
|
@@ -21598,10 +21598,10 @@ D5([
|
|
|
21598
21598
|
_2 = D5([
|
|
21599
21599
|
sy("document-reader-gallery")
|
|
21600
21600
|
], _2);
|
|
21601
|
-
var
|
|
21601
|
+
var Fle = Object.defineProperty, Ule = (e, t, r, n) => {
|
|
21602
21602
|
for (var i = void 0, a = e.length - 1, o; a >= 0; a--)
|
|
21603
21603
|
(o = e[a]) && (i = o(t, r, i) || i);
|
|
21604
|
-
return i &&
|
|
21604
|
+
return i && Fle(t, r, i), i;
|
|
21605
21605
|
};
|
|
21606
21606
|
let Lu = !1;
|
|
21607
21607
|
var Nn;
|
|
@@ -21656,11 +21656,11 @@ const hy = (Nn = class extends xn {
|
|
|
21656
21656
|
])}`;
|
|
21657
21657
|
}
|
|
21658
21658
|
}, Nn.displayName = g2, Nn);
|
|
21659
|
-
|
|
21659
|
+
Ule([
|
|
21660
21660
|
oy({ attribute: !1 })
|
|
21661
21661
|
], hy.prototype, "props");
|
|
21662
|
-
let
|
|
21663
|
-
S3e(g2,
|
|
21662
|
+
let Ble = hy;
|
|
21663
|
+
S3e(g2, Ble);
|
|
21664
21664
|
export {
|
|
21665
|
-
|
|
21665
|
+
Ble as DocumentIdv
|
|
21666
21666
|
};
|
package/package.json
CHANGED