@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.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: zle,
10190
- AxiosError: Gle,
10191
- CanceledError: Wle,
10192
- isCancel: $le,
10193
- CancelToken: Kle,
10194
- VERSION: qle,
10195
- all: Yle,
10196
- Cancel: Qle,
10197
- isAxiosError: Xle,
10198
- spread: Jle,
10199
- toFormData: ece,
10200
- AxiosHeaders: tce,
10201
- HttpStatusCode: rce,
10202
- formToJSON: nce,
10203
- getAdapter: ice,
10204
- mergeConfig: ace
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
- }, L3e = { fallback: "Preparing the camera...", key: "strPrepareCamera" }, Z3e = { fallback: "Timeout", key: "strTimeout" }, j3e = { fallback: "No camera focus", key: "strNoFocus" }, F3e = { fallback: "Something went wrong", key: "messageUnknownError" }, U3e = { fallback: "No camera with the specified ID found.", key: "InfoScreenIncorrectCameraIdTitle" }, B3e = { fallback: "Done!", key: "strDoneMessage" }, z3e = { fallback: "Camera unavailable!", key: "statusCameraUnavailableTitle" }, G3e = { fallback: "Your browser version is not supported", key: "statusBrowserNotSupportedTitle" }, W3e = { fallback: "HTTPS not used", key: "statusBrowserHTTPNotSupportedSubtitle" }, $3e = { fallback: "Insecure context", key: "statusBrowserInsecurePageContextSubtitle" }, K3e = { fallback: "The license cannot be found or has expired", key: "statusProcMgrBadLicenseSubtitle" }, q3e = { fallback: "This file is corrupt or not supported", key: "statusIncorrectDataTitle" }, Y3e = { fallback: "This file is too large to be uploaded", key: "statusLargeDataTitle" }, Q3e = { fallback: "Fit the document into the frame", key: "strPlaceDocumentInFrame" }, X3e = { fallback: "Hold the document straight", key: "strHoldDocumentStraight" }, J3e = { fallback: "Avoid glare on the document", key: "strGlaresOnDocument" }, ele = { fallback: "Try again", key: "faceLivenessScreenButton" }, tle = { fallback: "No camera available", key: "InfoScreenNoCameraTitle" }, rle = { fallback: "Position the document in the center", key: "documentReaderDocumentReaderLayoutDocumentCenter" }, nle = { fallback: "Upload a photo", key: "cameraCaptureCameraCaptureStartScreenTitle" }, ile = { fallback: "Move closer", key: "hint.moveCloser" }, ale = { fallback: "Hold the device still", key: "strKeepDeviceStill" }, ole = { fallback: "Camera", key: "strCamera" }, sle = { fallback: "Switch to mobile", key: "switchToMobile" }, lle = { fallback: "Open the camera on your mobile device, scan the QR code, and follow the link", key: "openPhoneCamera" }, cle = { fallback: "Please wait...", key: "strPleaseWait" }, ule = { fallback: "Mobile device", key: "mobileDevice" }, fle = { fallback: "Identity document verification", key: "verifyYourIdentity" }, dle = { fallback: "Capture a document using the computer’s camera, upload it from files, or scan it on a mobile device", key: "fromCameraFilesMobileDesktop" }, hle = { fallback: "Capture a document using the computer’s camera or upload it from files", key: "fromCameraFilesDesktop" }, ple = { fallback: "Capture a document using the computer’s camera or scan it on a mobile device", key: "fromCameraMobileDesktop" }, mle = { fallback: "Upload a document from files or scan it on a mobile device", key: "fromFilesMobileDesktop" }, gle = { fallback: "Use the computer's camera to capture a document", key: "fromCameraDesktop" }, vle = { fallback: "Pick a document from files and upload it", key: "fromFilesDesktop" }, ble = { fallback: "Use your mobile camera to capture a document", key: "fromMobileDesktop" }, _le = { fallback: "Capture a document using the mobile's camera or upload it from gallery", key: "fromCameraGalleryMobile" }, yle = { fallback: "Pick a document from the gallery and upload it", key: "fromGalleryMobile" }, wle = { fallback: "Gallery", key: "gallery" }, Cle = { fallback: "Files", key: "files" }, Hle = { fallback: "Return to the computer", key: "returnToComputer" }, Vle = { fallback: "Your document has been captured", key: "documentCaptured" }, Ele = { fallback: "or", key: "strOr" }, kle = { fallback: "Click here to continue in browser", key: "continueInBrowser" }, Sle = { fallback: "Skip", key: "strSkip" }, Mle = { fallback: "Flip the document", key: "documentReaderDocumentReaderLayoutFlipDocument" }, Ale = { fallback: "Tilt the document", key: "strTiltDocument" }, Rle = {
21007
- preparingCamera: L3e,
21008
- timeout: Z3e,
21009
- noFocus: j3e,
21010
- somethingWentWrong: F3e,
21011
- incorrectCameraId: U3e,
21012
- done: B3e,
21013
- cameraUnavailable: z3e,
21014
- versionNotSupported: G3e,
21015
- httpNotSupported: W3e,
21016
- insecurePageContext: $3e,
21017
- badLicense: K3e,
21018
- fileCorrupt: q3e,
21019
- largeFile: Y3e,
21020
- placeDocumentIntoFrame: Q3e,
21021
- holdDocumentStraight: X3e,
21022
- glaresOnDocument: J3e,
21023
- tryAgain: ele,
21024
- noCameraAvailable: tle,
21025
- positionDocumentCenter: rle,
21026
- uploadPhoto: nle,
21027
- moveCloser: ile,
21028
- keepDeviceStill: ale,
21029
- camera: ole,
21030
- switchToMobile: sle,
21031
- openPhoneCamera: lle,
21032
- pleaseWait: cle,
21033
- mobileDevice: ule,
21034
- verifyYourIdentity: fle,
21035
- fromCameraFilesMobileDesktop: dle,
21036
- fromCameraFilesDesktop: hle,
21037
- fromCameraMobileDesktop: ple,
21038
- fromFilesMobileDesktop: mle,
21039
- fromCameraDesktop: gle,
21040
- fromFilesDesktop: vle,
21041
- fromMobileDesktop: ble,
21042
- fromCameraGalleryMobile: _le,
21043
- fromGalleryMobile: yle,
21044
- gallery: wle,
21045
- files: Cle,
21046
- returnToComputer: Hle,
21047
- documentCaptured: Vle,
21048
- or: Ele,
21049
- continueInBrowser: kle,
21050
- skip: Sle,
21051
- flipTheDocument: Mle,
21052
- tiltTheDocument: Ale
21053
- }, Ile = Wt`
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 Tle = Object.defineProperty, Ole = Object.getOwnPropertyDescriptor, P5 = (e, t, r, n) => {
21080
- for (var i = n > 1 ? void 0 : n ? Ole(t, r) : t, a = e.length - 1, o; a >= 0; a--)
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 && Tle(t, r, i), 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 : this._getTranslationKeys({
21205
- translationKeysData: Rle,
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 === N3e.DOCREADER ? Sa.FORM : Sa.DATA), this._setDocReaderProps());
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 = [Ile];
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 Ple = Wt`
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
- `, Dle = Cn`<svg
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>`, xle = Cn` <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>`, Nle = Cn`<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 Lle = Object.defineProperty, Zle = Object.getOwnPropertyDescriptor, D5 = (e, t, r, n) => {
21462
- for (var i = n > 1 ? void 0 : n ? Zle(t, r) : t, a = e.length - 1, o; a >= 0; a--)
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 && Lle(t, r, i), 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">${Dle}</button>
21575
+ <button @click="${this._handleCloseClick}" class="close-btn">${xle}</button>
21576
21576
  </div>
21577
- <button @click="${this._handleUploadClick}" class="btn">${xle}</button>
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>${Nle} </a>
21586
+ <a href>${Lle} </a>
21587
21587
  </div>
21588
21588
  </div>`;
21589
21589
  }
21590
21590
  };
21591
- _2.styles = [Ple];
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 jle = Object.defineProperty, Fle = (e, t, r, n) => {
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 && jle(t, r, i), 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
- Fle([
21659
+ Ule([
21660
21660
  oy({ attribute: !1 })
21661
21661
  ], hy.prototype, "props");
21662
- let Ule = hy;
21663
- S3e(g2, Ule);
21662
+ let Ble = hy;
21663
+ S3e(g2, Ble);
21664
21664
  export {
21665
- Ule as DocumentIdv
21665
+ Ble as DocumentIdv
21666
21666
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-document",
3
- "version": "3.2.296-nightly",
3
+ "version": "3.2.298-nightly",
4
4
  "description": "Regula framework agnostic web components to work with document idv",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/main.iife.js",