@regulaforensics/idv-face 3.2.297-nightly → 3.2.299-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
@@ -17117,60 +17117,70 @@ const kee = (n) => {
17117
17117
  } catch (r) {
17118
17118
  return !1;
17119
17119
  }
17120
- }, hee = {
17120
+ }, hee = (n) => {
17121
+ const { translationKeysData: r, translationKeysProps: M, locale: a } = n, o = {};
17122
+ let g = null;
17123
+ for (const c in r)
17124
+ o[r[c].key] = c;
17125
+ for (const c in M)
17126
+ o[c] && M[c] && (g ? g[o[c]] = M[c] : g = { [o[c]]: M[c] });
17127
+ return g ? {
17128
+ [a]: g
17129
+ } : {};
17130
+ }, mee = {
17121
17131
  LIVENESS: "LIVENESS"
17122
- }, mee = { fallback: "Make sure there is only one face on the screen.", key: "faceLivenessShowOnlyOneFace" }, vee = { fallback: "Preparing the camera...", key: "strPrepareCamera" }, bee = { fallback: "Allow access to the camera", key: "faceLivenessCameraLayoutVideoStatusMessagesRequesting" }, Uee = { fallback: "Something went wrong", key: "messageUnknownError" }, Qee = { fallback: "No camera with the specified ID found.", key: "InfoScreenIncorrectCameraIdTitle" }, Yee = { fallback: "Check if the specified camera ID is correct.", key: "InfoScreenIncorrectCameraIdSubtitle" }, Pee = { fallback: "Preparing the service...", key: "faceLivenessCameraLayoutPreparingService" }, Ree = { fallback: "Allow access to the camera and reload this page to continue.", key: "statusCameraUnavailableSubtitle" }, _ee = { fallback: "Error!", key: "statusError" }, Gee = { fallback: "Your browser version is not supported", key: "statusBrowserNotSupportedTitle" }, Zee = { fallback: "Update your browser version", key: "statusBrowserNotSupportedSubtitle" }, Bee = { fallback: "A license error has occurred", key: "statusProcMgrBadLicenseTitle" }, Hee = { fallback: "The license cannot be found or has expired", key: "statusProcMgrBadLicenseSubtitle" }, Wee = { fallback: "Portrait orientation only", key: "statusOnlyPortraitTitle" }, Fee = { fallback: "Please turn your device into portrait mode", key: "statusOnlyPortraitSubtitle" }, Vee = { fallback: "Try again", key: "faceLivenessScreenButton" }, Jee = { fallback: "No camera available", key: "InfoScreenNoCameraTitle" }, Xee = { fallback: "Check the camera connection and try again.", key: "faceLivenessInfoScreenNoCameraSubtitle" }, Kee = { fallback: "Neutral facial expression (no smiling, eyes open and mouth closed), no mask, sunglasses or headwear", key: "livenessRetry.text.subject" }, $ee = { fallback: "Ambient lighting is not too bright or too dark and there are no shadows or glare on your face", key: "livenessRetry.text.environment" }, qee = { fallback: "Look straight", key: "hint.lookStraight" }, ete = { fallback: "Center your face", key: "hint.fit2" }, tte = { fallback: "Move closer", key: "hint.moveCloser" }, rte = { fallback: "Move away", key: "hint.moveAway" }, nte = { fallback: "Hold steady", key: "hint.stayStill" }, Mte = { fallback: "Take a photo", key: "hint.takeAPhoto" }, ite = { fallback: "Turn your head a bit", key: "hint.turnHead" }, ate = { fallback: "Remove items covering your face", key: "hint.removeOcclusion" }, ute = { fallback: "Turn head up a bit to look straight", key: "hint.TurnUp" }, ote = { fallback: "Turn head down a bit to look straight", key: "hint.TurnDown" }, Ite = { fallback: "Turn head left a bit to look straight", key: "hint.TurnLeft" }, gte = { fallback: "Turn head right a bit to look straight", key: "hint.TurnRight" }, cte = { fallback: "Blink your eyes", key: "hint.Blink" }, ste = { fallback: "Processing...", key: "livenessProcessing.title.processing" }, Nte = { fallback: "Retry", key: "livenessRetry.action.retry" }, lte = { fallback: "But please follow these guidelines:", key: "livenessRetry.text.guidelines" }, jte = { fallback: "Let’s try that again", key: "livenessRetry.title.tryAgain" }, Dte = { fallback: "Camera unavailable!", key: "noCameraPermission.title.unavailable" }, yte = { fallback: "Go", key: "livenessGuide.button" }, Tte = { fallback: "Center your face, turn your head", key: "livenessGuide.message" }, Ate = { fallback: "Center your face", key: "captureGuide.message" }, dte = { fallback: "Selfie time!", key: "livenessGuide.head" }, xte = { fallback: "Error code:", key: "hint.errorCode" }, Ete = { fallback: "Good illumination.", key: "livenssStart.promptText.illumination" }, zte = { fallback: "Camera at eye level.", key: "livenssStart.promptText.cameraLevel" }, fte = { fallback: "No accessories: glasses, mask, hat, etc.", key: "livenssStart.promptText.noAccessories" }, Lte = { fallback: "Get ready", key: "livenssStart.promptText.getReady" }, Ote = { fallback: "HTTPS not used", key: "livenessHttpNotSupported.subtitle" }, Ste = { fallback: "Web Service not compatible", key: "livenessNotCompatibleWebServer.subtitle" }, pte = { fallback: "Process completed", key: "livenessProcessCompleted.subtitle" }, Cte = {
17123
- showOnlyOneFace: mee,
17124
- preparingCamera: vee,
17125
- allowAccessCamera: bee,
17126
- somethingWentWrong: Uee,
17127
- incorrectCameraId: Qee,
17128
- checkCameraId: Yee,
17129
- preparingService: Pee,
17130
- allowAccessToCamera: Ree,
17131
- error: _ee,
17132
- versionNotSupported: Gee,
17133
- updateBrowser: Zee,
17134
- licenseError: Bee,
17135
- licenseExpired: Hee,
17136
- onlyPortraitOrientation: Wee,
17137
- turnDeviceIntoPortrait: Fee,
17138
- tryAgain: Vee,
17139
- noCameraAvailable: Jee,
17140
- checkCameraConnection: Xee,
17141
- noMaskSunglassesHeaddress: Kee,
17142
- ambientLighting: $ee,
17143
- lookStraight: qee,
17144
- fitYourFace: ete,
17145
- moveCloser: tte,
17146
- moveAway: rte,
17147
- holdSteady: nte,
17148
- takeAPhoto: Mte,
17149
- turnHead: ite,
17150
- removeOcclusion: ate,
17151
- turnHeadUp: ute,
17152
- turnHeadDown: ote,
17153
- turnHeadLeft: Ite,
17154
- turnHeadRight: gte,
17155
- blinkYourEyes: cte,
17156
- processing: ste,
17157
- retryButtonText: Nte,
17158
- followGuidelinesText: lte,
17159
- letsTryAgainTitle: jte,
17160
- noCameraPermission: Dte,
17161
- goButton: yte,
17162
- centerFaceTurnHead: Tte,
17163
- centerFace: Ate,
17164
- selfieTime: dte,
17165
- errorCode: xte,
17166
- illumination: Ete,
17167
- cameraLevel: zte,
17168
- noAccessories: fte,
17169
- getReady: Lte,
17170
- httpNotSupported: Ote,
17171
- webServerNotCompatible: Ste,
17172
- processCompleted: pte
17173
- }, wte = Mt`
17132
+ }, vee = { fallback: "Make sure there is only one face on the screen.", key: "faceLivenessShowOnlyOneFace" }, bee = { fallback: "Preparing the camera...", key: "strPrepareCamera" }, Uee = { fallback: "Allow access to the camera", key: "faceLivenessCameraLayoutVideoStatusMessagesRequesting" }, Qee = { fallback: "Something went wrong", key: "messageUnknownError" }, Yee = { fallback: "No camera with the specified ID found.", key: "InfoScreenIncorrectCameraIdTitle" }, Pee = { fallback: "Check if the specified camera ID is correct.", key: "InfoScreenIncorrectCameraIdSubtitle" }, Ree = { fallback: "Preparing the service...", key: "faceLivenessCameraLayoutPreparingService" }, _ee = { fallback: "Allow access to the camera and reload this page to continue.", key: "statusCameraUnavailableSubtitle" }, Gee = { fallback: "Error!", key: "statusError" }, Zee = { fallback: "Your browser version is not supported", key: "statusBrowserNotSupportedTitle" }, Bee = { fallback: "Update your browser version", key: "statusBrowserNotSupportedSubtitle" }, Hee = { fallback: "A license error has occurred", key: "statusProcMgrBadLicenseTitle" }, Wee = { fallback: "The license cannot be found or has expired", key: "statusProcMgrBadLicenseSubtitle" }, Fee = { fallback: "Portrait orientation only", key: "statusOnlyPortraitTitle" }, Vee = { fallback: "Please turn your device into portrait mode", key: "statusOnlyPortraitSubtitle" }, Jee = { fallback: "Try again", key: "faceLivenessScreenButton" }, Xee = { fallback: "No camera available", key: "InfoScreenNoCameraTitle" }, Kee = { fallback: "Check the camera connection and try again.", key: "faceLivenessInfoScreenNoCameraSubtitle" }, $ee = { fallback: "Neutral facial expression (no smiling, eyes open and mouth closed), no mask, sunglasses or headwear", key: "livenessRetry.text.subject" }, qee = { fallback: "Ambient lighting is not too bright or too dark and there are no shadows or glare on your face", key: "livenessRetry.text.environment" }, ete = { fallback: "Look straight", key: "hint.lookStraight" }, tte = { fallback: "Center your face", key: "hint.fit2" }, rte = { fallback: "Move closer", key: "hint.moveCloser" }, nte = { fallback: "Move away", key: "hint.moveAway" }, Mte = { fallback: "Hold steady", key: "hint.stayStill" }, ite = { fallback: "Take a photo", key: "hint.takeAPhoto" }, ate = { fallback: "Turn your head a bit", key: "hint.turnHead" }, ute = { fallback: "Remove items covering your face", key: "hint.removeOcclusion" }, ote = { fallback: "Turn head up a bit to look straight", key: "hint.TurnUp" }, Ite = { fallback: "Turn head down a bit to look straight", key: "hint.TurnDown" }, gte = { fallback: "Turn head left a bit to look straight", key: "hint.TurnLeft" }, cte = { fallback: "Turn head right a bit to look straight", key: "hint.TurnRight" }, ste = { fallback: "Blink your eyes", key: "hint.Blink" }, Nte = { fallback: "Processing...", key: "livenessProcessing.title.processing" }, lte = { fallback: "Retry", key: "livenessRetry.action.retry" }, jte = { fallback: "But please follow these guidelines:", key: "livenessRetry.text.guidelines" }, Dte = { fallback: "Let’s try that again", key: "livenessRetry.title.tryAgain" }, yte = { fallback: "Camera unavailable!", key: "noCameraPermission.title.unavailable" }, Tte = { fallback: "Go", key: "livenessGuide.button" }, Ate = { fallback: "Center your face, turn your head", key: "livenessGuide.message" }, dte = { fallback: "Center your face", key: "captureGuide.message" }, xte = { fallback: "Selfie time!", key: "livenessGuide.head" }, Ete = { fallback: "Error code:", key: "hint.errorCode" }, zte = { fallback: "Good illumination.", key: "livenssStart.promptText.illumination" }, fte = { fallback: "Camera at eye level.", key: "livenssStart.promptText.cameraLevel" }, Lte = { fallback: "No accessories: glasses, mask, hat, etc.", key: "livenssStart.promptText.noAccessories" }, Ote = { fallback: "Get ready", key: "livenssStart.promptText.getReady" }, Ste = { fallback: "HTTPS not used", key: "livenessHttpNotSupported.subtitle" }, pte = { fallback: "Web Service not compatible", key: "livenessNotCompatibleWebServer.subtitle" }, Cte = { fallback: "Process completed", key: "livenessProcessCompleted.subtitle" }, wte = {
17133
+ showOnlyOneFace: vee,
17134
+ preparingCamera: bee,
17135
+ allowAccessCamera: Uee,
17136
+ somethingWentWrong: Qee,
17137
+ incorrectCameraId: Yee,
17138
+ checkCameraId: Pee,
17139
+ preparingService: Ree,
17140
+ allowAccessToCamera: _ee,
17141
+ error: Gee,
17142
+ versionNotSupported: Zee,
17143
+ updateBrowser: Bee,
17144
+ licenseError: Hee,
17145
+ licenseExpired: Wee,
17146
+ onlyPortraitOrientation: Fee,
17147
+ turnDeviceIntoPortrait: Vee,
17148
+ tryAgain: Jee,
17149
+ noCameraAvailable: Xee,
17150
+ checkCameraConnection: Kee,
17151
+ noMaskSunglassesHeaddress: $ee,
17152
+ ambientLighting: qee,
17153
+ lookStraight: ete,
17154
+ fitYourFace: tte,
17155
+ moveCloser: rte,
17156
+ moveAway: nte,
17157
+ holdSteady: Mte,
17158
+ takeAPhoto: ite,
17159
+ turnHead: ate,
17160
+ removeOcclusion: ute,
17161
+ turnHeadUp: ote,
17162
+ turnHeadDown: Ite,
17163
+ turnHeadLeft: gte,
17164
+ turnHeadRight: cte,
17165
+ blinkYourEyes: ste,
17166
+ processing: Nte,
17167
+ retryButtonText: lte,
17168
+ followGuidelinesText: jte,
17169
+ letsTryAgainTitle: Dte,
17170
+ noCameraPermission: yte,
17171
+ goButton: Tte,
17172
+ centerFaceTurnHead: Ate,
17173
+ centerFace: dte,
17174
+ selfieTime: xte,
17175
+ errorCode: Ete,
17176
+ illumination: zte,
17177
+ cameraLevel: fte,
17178
+ noAccessories: Lte,
17179
+ getReady: Ote,
17180
+ httpNotSupported: Ste,
17181
+ webServerNotCompatible: pte,
17182
+ processCompleted: Cte
17183
+ }, kte = Mt`
17174
17184
  *,
17175
17185
  ::after,
17176
17186
  ::before {
@@ -17196,10 +17206,10 @@ const kee = (n) => {
17196
17206
  height: 100%;
17197
17207
  }
17198
17208
  `;
17199
- var kte = Object.defineProperty, hte = Object.getOwnPropertyDescriptor, Yl = (n, r, M, a) => {
17200
- for (var o = a > 1 ? void 0 : a ? hte(r, M) : r, g = n.length - 1, c; g >= 0; g--)
17209
+ var hte = Object.defineProperty, mte = Object.getOwnPropertyDescriptor, Yl = (n, r, M, a) => {
17210
+ for (var o = a > 1 ? void 0 : a ? mte(r, M) : r, g = n.length - 1, c; g >= 0; g--)
17201
17211
  (c = n[g]) && (o = (a ? c(r, M, o) : c(o)) || o);
17202
- return a && o && kte(r, M, o), o;
17212
+ return a && o && hte(r, M, o), o;
17203
17213
  };
17204
17214
  let Ha = class extends _i {
17205
17215
  constructor() {
@@ -17414,20 +17424,10 @@ let Ha = class extends _i {
17414
17424
  }
17415
17425
  `), r;
17416
17426
  }
17417
- _getTranslationKeys(n) {
17418
- const { translationKeysData: r, translationKeysProps: M, locale: a } = n, o = {}, g = {};
17419
- for (const N in r)
17420
- o[r[N].key] = N;
17421
- for (const N in M)
17422
- M[N] && (g[o[N]] = M[N]);
17423
- return {
17424
- [a]: g
17425
- };
17426
- }
17427
17427
  _prepareTranslations(n) {
17428
17428
  const { locale: r, localizationKeys: M } = n, a = r && typeof r == "string" ? r.slice(0, 2).toLowerCase() : "";
17429
- return !a || !M ? null : this._getTranslationKeys({
17430
- translationKeysData: Cte,
17429
+ return !a || !M ? null : hee({
17430
+ translationKeysData: wte,
17431
17431
  translationKeysProps: M,
17432
17432
  locale: a
17433
17433
  });
@@ -17504,13 +17504,13 @@ let Ha = class extends _i {
17504
17504
  ]), this._component.settings = this._prepareSettings(n), this._component.translations = this._prepareTranslations(n);
17505
17505
  }
17506
17506
  updated(n) {
17507
- n.has("props") && (this.props && !this._performType && (this._performType = this.props.moduleProps.stepType === hee.LIVENESS ? Og.FORM : Og.DATA), this._setFaceLivenessProps());
17507
+ n.has("props") && (this.props && !this._performType && (this._performType = this.props.moduleProps.stepType === mee.LIVENESS ? Og.FORM : Og.DATA), this._setFaceLivenessProps());
17508
17508
  }
17509
17509
  render() {
17510
17510
  return JE`<face-liveness @face-liveness="${this._handleFaceLiveness}"></face-liveness>`;
17511
17511
  }
17512
17512
  };
17513
- Ha.styles = [wte];
17513
+ Ha.styles = [kte];
17514
17514
  Yl([
17515
17515
  lL()
17516
17516
  ], Ha.prototype, "props", 2);
@@ -17520,10 +17520,10 @@ Yl([
17520
17520
  Ha = Yl([
17521
17521
  NL("face-liveness-verification")
17522
17522
  ], Ha);
17523
- var mte = Object.defineProperty, vte = (n, r, M, a) => {
17523
+ var vte = Object.defineProperty, bte = (n, r, M, a) => {
17524
17524
  for (var o = void 0, g = n.length - 1, c; g >= 0; g--)
17525
17525
  (c = n[g]) && (o = c(r, M, o) || o);
17526
- return o && mte(r, M, o), o;
17526
+ return o && vte(r, M, o), o;
17527
17527
  };
17528
17528
  let JN = !1;
17529
17529
  const Pa = class Pa extends _i {
@@ -17549,7 +17549,7 @@ const Pa = class Pa extends _i {
17549
17549
  };
17550
17550
  Pa.getSupportedTemplates = () => [$E.LIVENESS], Pa.getIdentifier = () => Za, Pa.displayName = Za;
17551
17551
  let Co = Pa;
17552
- vte([
17552
+ bte([
17553
17553
  KE({ attribute: !1 })
17554
17554
  ], Co.prototype, "props");
17555
17555
  cL(Za, Co);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-face",
3
- "version": "3.2.297-nightly",
3
+ "version": "3.2.299-nightly",
4
4
  "description": "Regula framework agnostic web components to work with face idv",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/main.js",