@ekyc_qoobiss/qbs-ect-cmp 2.1.9 → 2.1.11

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.
Files changed (26) hide show
  1. package/dist/cjs/{agreement-check_17.cjs.entry.js → agreement-check_18.cjs.entry.js} +185 -107
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
  4. package/dist/collection/collection-manifest.json +1 -0
  5. package/dist/collection/components/common/camera-error/camera-error.css +0 -0
  6. package/dist/collection/components/common/camera-error/camera-error.js +113 -0
  7. package/dist/collection/components/common/id-back-capture/id-back-capture.js +2 -3
  8. package/dist/collection/components/common/id-capture/id-capture.js +2 -3
  9. package/dist/collection/components/flow/landing-validation/landing-validation.js +5 -0
  10. package/dist/collection/components/identification-component/identification-component.js +3 -0
  11. package/dist/collection/helpers/Cameras.js +17 -0
  12. package/dist/collection/helpers/textValues.js +6 -0
  13. package/dist/collection/models/FlowStatus.js +1 -0
  14. package/dist/collection/models/FlowSteps.js +1 -0
  15. package/dist/esm/{agreement-check_17.entry.js → agreement-check_18.entry.js} +185 -108
  16. package/dist/esm/loader.js +1 -1
  17. package/dist/esm/qbs-ect-cmp.js +1 -1
  18. package/dist/qbs-ect-cmp/{p-91913ea5.entry.js → p-89403315.entry.js} +2 -2
  19. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
  20. package/dist/types/components/common/camera-error/camera-error.d.ts +17 -0
  21. package/dist/types/components.d.ts +20 -0
  22. package/dist/types/helpers/Cameras.d.ts +1 -0
  23. package/dist/types/helpers/textValues.d.ts +6 -0
  24. package/dist/types/models/FlowStatus.d.ts +2 -1
  25. package/dist/types/models/FlowSteps.d.ts +2 -1
  26. package/package.json +1 -1
@@ -12,4 +12,5 @@ export var FlowSteps;
12
12
  FlowSteps[FlowSteps["SelfieHowTo"] = 9] = "SelfieHowTo";
13
13
  FlowSteps[FlowSteps["Selfie"] = 10] = "Selfie";
14
14
  FlowSteps[FlowSteps["End"] = 11] = "End";
15
+ FlowSteps[FlowSteps["CameraError"] = 12] = "CameraError";
15
16
  })(FlowSteps || (FlowSteps = {}));
@@ -211,6 +211,7 @@ var FlowStatus;
211
211
  FlowStatus[FlowStatus["LIVENESS"] = 6] = "LIVENESS";
212
212
  FlowStatus[FlowStatus["COMPLETE"] = 7] = "COMPLETE";
213
213
  FlowStatus[FlowStatus["ERROREND"] = 8] = "ERROREND";
214
+ FlowStatus[FlowStatus["CAMERAERROR"] = 9] = "CAMERAERROR";
214
215
  })(FlowStatus || (FlowStatus = {}));
215
216
 
216
217
  class GlobalValues {
@@ -349,7 +350,13 @@ MobileRedirectValues.InfoTop = 'Pentru a continua scanați codul de mai jos cu u
349
350
  MobileRedirectValues.InfoBottom = 'Sau introduceți un număr de telefon pentru a primi link-ul pe smartphone.';
350
351
  MobileRedirectValues.Validation = 'Număr de telefon invalid!';
351
352
  MobileRedirectValues.InfoWaiting = 'Așteptăm finalizarea procesului pe smartphone.';
352
- MobileRedirectValues.InfoAborted = 'Procesului de pe smartphone a fost amanat.';
353
+ MobileRedirectValues.InfoAborted = 'Procesului de pe smartphone a fost amanat.';
354
+ class CameraErrorValues extends GlobalValues {
355
+ }
356
+ CameraErrorValues.Title = 'Procesul de indetificare nu poate continua.';
357
+ CameraErrorValues.Description = 'Nu am putut detecta nicio camera. Cel mai probabil nu ai acordat drept de acces acestui site, Te rugam sa dai acces si sa apesi butonul de mai jos dupa aceea.';
358
+ CameraErrorValues.Button = 'Reincep procesul';
359
+ CameraErrorValues.HowToLink = 'https://ekyc.blob.core.windows.net/$web/animations/enable_permissions_sm.mp4';
353
360
 
354
361
  const { state, onChange } = createStore({
355
362
  flowStatus: FlowStatus.LANDING,
@@ -406,6 +413,7 @@ var FlowSteps;
406
413
  FlowSteps[FlowSteps["SelfieHowTo"] = 9] = "SelfieHowTo";
407
414
  FlowSteps[FlowSteps["Selfie"] = 10] = "Selfie";
408
415
  FlowSteps[FlowSteps["End"] = 11] = "End";
416
+ FlowSteps[FlowSteps["CameraError"] = 12] = "CameraError";
409
417
  })(FlowSteps || (FlowSteps = {}));
410
418
 
411
419
  class ApiCall {
@@ -5159,6 +5167,171 @@ const Camera = class {
5159
5167
  };
5160
5168
  Camera.style = cameraCss;
5161
5169
 
5170
+ class Cameras {
5171
+ async GetCameras(deviceInfo) {
5172
+ var allDevices = [];
5173
+ const devices = await navigator.mediaDevices.enumerateDevices();
5174
+ const videoDevices = devices.filter(device => device.kind === 'videoinput');
5175
+ for (const device of videoDevices) {
5176
+ const updatedConstraints = this.GetConstraints(device.deviceId, deviceInfo);
5177
+ const stream = await navigator.mediaDevices.getUserMedia(updatedConstraints);
5178
+ stream.getVideoTracks().forEach(track => {
5179
+ if (deviceInfo.isFirefox) {
5180
+ const settings = track.getSettings();
5181
+ let facingMode = settings.facingMode && settings.facingMode.length > 0 ? settings.facingMode[0] : '';
5182
+ facingMode = facingMode === 'e' ? 'environment' : facingMode;
5183
+ allDevices.push({
5184
+ deviceId: device.deviceId,
5185
+ name: device.label,
5186
+ height: settings.height,
5187
+ width: settings.width,
5188
+ frameRate: Number(settings.frameRate.max),
5189
+ torch: false,
5190
+ recommended: false,
5191
+ facingMode: facingMode,
5192
+ });
5193
+ }
5194
+ else {
5195
+ const capabilities = track.getCapabilities();
5196
+ let facingMode = capabilities.facingMode && capabilities.facingMode.length > 0 ? capabilities.facingMode[0] : '';
5197
+ facingMode = facingMode === 'e' ? 'environment' : facingMode;
5198
+ allDevices.push({
5199
+ deviceId: device.deviceId,
5200
+ name: device.label,
5201
+ height: capabilities.height.max,
5202
+ width: capabilities.width.max,
5203
+ frameRate: Number(capabilities.frameRate.max),
5204
+ torch: capabilities.torch,
5205
+ recommended: false,
5206
+ facingMode: facingMode,
5207
+ });
5208
+ }
5209
+ });
5210
+ stream.getTracks().forEach(track => {
5211
+ track.stop();
5212
+ });
5213
+ }
5214
+ if (allDevices.length > 0) {
5215
+ allDevices = allDevices.sort((a, b) => b.frameRate - a.frameRate);
5216
+ var firstOption = allDevices.find(i => i.name.indexOf('0,') != -1 && i.facingMode === 'environment');
5217
+ if (firstOption) {
5218
+ allDevices[allDevices.indexOf(firstOption)].recommended = true;
5219
+ }
5220
+ else {
5221
+ var firstEnv = allDevices.find(i => i.facingMode === 'environment');
5222
+ if (firstEnv) {
5223
+ allDevices[allDevices.indexOf(firstEnv)].recommended = true;
5224
+ }
5225
+ }
5226
+ }
5227
+ return allDevices;
5228
+ }
5229
+ GetConstraints(selectedDeviceId, device, portrait = false) {
5230
+ let constraints = {
5231
+ audio: false,
5232
+ video: {
5233
+ frameRate: 30,
5234
+ },
5235
+ };
5236
+ if (selectedDeviceId) {
5237
+ constraints.video.deviceId = {
5238
+ exact: selectedDeviceId,
5239
+ };
5240
+ }
5241
+ if (device.isWin) {
5242
+ constraints.video.width = { ideal: 1280 };
5243
+ }
5244
+ else {
5245
+ if (portrait) {
5246
+ constraints.video.facingMode = 'user';
5247
+ constraints.video.width = { ideal: 1280 };
5248
+ constraints.video.height = { ideal: 720 };
5249
+ }
5250
+ else {
5251
+ constraints.video.facingMode = 'environment';
5252
+ constraints.video.width = { ideal: 1280 };
5253
+ constraints.video.aspectRatio = 1;
5254
+ }
5255
+ }
5256
+ return constraints;
5257
+ }
5258
+ GetRecommendedCamera(cameras) {
5259
+ if (cameras && cameras.length > 0) {
5260
+ var recommDevice = cameras.find(c => c.recommended);
5261
+ if (recommDevice) {
5262
+ return recommDevice;
5263
+ }
5264
+ }
5265
+ return null;
5266
+ }
5267
+ static async InitCameras(device) {
5268
+ try {
5269
+ let cam = new Cameras();
5270
+ let cameras = await cam.GetCameras(device);
5271
+ var recommCamera = cam.GetRecommendedCamera(cameras);
5272
+ state.cameraIds = cameras.map(camera => camera.deviceId);
5273
+ state.cameraId = recommCamera;
5274
+ return true;
5275
+ }
5276
+ catch (e) {
5277
+ console.log(e);
5278
+ if (e.message.includes('Permission denied') || e.name.includes('NotAllowedError')) ;
5279
+ }
5280
+ return false;
5281
+ }
5282
+ }
5283
+
5284
+ const cameraErrorCss = "";
5285
+
5286
+ const CameraError = class {
5287
+ constructor(hostRef) {
5288
+ registerInstance(this, hostRef);
5289
+ this.apiErrorEvent = createEvent(this, "apiError", 7);
5290
+ this.device = undefined;
5291
+ this.title = undefined;
5292
+ this.description = undefined;
5293
+ this.buttonDisabled = undefined;
5294
+ this.demoVideo = undefined;
5295
+ this.apiCall = new ApiCall();
5296
+ }
5297
+ async componentWillLoad() {
5298
+ this.buttonDisabled = false;
5299
+ this.title = CameraErrorValues.Title;
5300
+ this.description = CameraErrorValues.Description;
5301
+ this.buttonText = CameraErrorValues.Button;
5302
+ }
5303
+ async componentDidLoad() {
5304
+ try {
5305
+ await this.apiCall.AddStep(FlowSteps.CameraError);
5306
+ }
5307
+ catch (e) {
5308
+ this.apiErrorEvent.emit(e);
5309
+ }
5310
+ this.demoVideo.src = CameraErrorValues.HowToLink;
5311
+ this.demoVideo.play();
5312
+ }
5313
+ async buttonClick() {
5314
+ this.buttonDisabled = true;
5315
+ if (!(await Cameras.InitCameras(this.device))) {
5316
+ this.buttonDisabled = false;
5317
+ return;
5318
+ }
5319
+ if (state.agreementsValidation) {
5320
+ state.flowStatus = FlowStatus.AGREEMENT;
5321
+ }
5322
+ else if (state.phoneValidation) {
5323
+ state.flowStatus = FlowStatus.PHONE;
5324
+ }
5325
+ else {
5326
+ state.flowStatus = FlowStatus.ID;
5327
+ }
5328
+ }
5329
+ render() {
5330
+ return (h("div", { class: "container" }, h("div", { class: "row" }, h("h1", { class: "color-red" }, this.title), h("div", null, h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.description)), h("video", { id: "howtoPermissions", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" })), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: this.buttonDisabled, onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, CameraErrorValues.FooterText))))));
5331
+ }
5332
+ };
5333
+ CameraError.style = cameraErrorCss;
5334
+
5162
5335
  const captureErrorCss = "";
5163
5336
 
5164
5337
  const CaptureError = class {
@@ -5341,105 +5514,6 @@ const HowToInfo = class {
5341
5514
  };
5342
5515
  HowToInfo.style = howToInfoCss;
5343
5516
 
5344
- class Cameras {
5345
- async GetCameras(deviceInfo) {
5346
- var allDevices = [];
5347
- const devices = await navigator.mediaDevices.enumerateDevices();
5348
- const videoDevices = devices.filter(device => device.kind === 'videoinput');
5349
- for (const device of videoDevices) {
5350
- const updatedConstraints = this.GetConstraints(device.deviceId, deviceInfo);
5351
- const stream = await navigator.mediaDevices.getUserMedia(updatedConstraints);
5352
- stream.getVideoTracks().forEach(track => {
5353
- if (deviceInfo.isFirefox) {
5354
- const settings = track.getSettings();
5355
- let facingMode = settings.facingMode && settings.facingMode.length > 0 ? settings.facingMode[0] : '';
5356
- facingMode = facingMode === 'e' ? 'environment' : facingMode;
5357
- allDevices.push({
5358
- deviceId: device.deviceId,
5359
- name: device.label,
5360
- height: settings.height,
5361
- width: settings.width,
5362
- frameRate: Number(settings.frameRate.max),
5363
- torch: false,
5364
- recommended: false,
5365
- facingMode: facingMode,
5366
- });
5367
- }
5368
- else {
5369
- const capabilities = track.getCapabilities();
5370
- let facingMode = capabilities.facingMode && capabilities.facingMode.length > 0 ? capabilities.facingMode[0] : '';
5371
- facingMode = facingMode === 'e' ? 'environment' : facingMode;
5372
- allDevices.push({
5373
- deviceId: device.deviceId,
5374
- name: device.label,
5375
- height: capabilities.height.max,
5376
- width: capabilities.width.max,
5377
- frameRate: Number(capabilities.frameRate.max),
5378
- torch: capabilities.torch,
5379
- recommended: false,
5380
- facingMode: facingMode,
5381
- });
5382
- }
5383
- });
5384
- stream.getTracks().forEach(track => {
5385
- track.stop();
5386
- });
5387
- }
5388
- if (allDevices.length > 0) {
5389
- allDevices = allDevices.sort((a, b) => b.frameRate - a.frameRate);
5390
- var firstOption = allDevices.find(i => i.name.indexOf('0,') != -1 && i.facingMode === 'environment');
5391
- if (firstOption) {
5392
- allDevices[allDevices.indexOf(firstOption)].recommended = true;
5393
- }
5394
- else {
5395
- var firstEnv = allDevices.find(i => i.facingMode === 'environment');
5396
- if (firstEnv) {
5397
- allDevices[allDevices.indexOf(firstEnv)].recommended = true;
5398
- }
5399
- }
5400
- }
5401
- return allDevices;
5402
- }
5403
- GetConstraints(selectedDeviceId, device, portrait = false) {
5404
- let constraints = {
5405
- audio: false,
5406
- video: {
5407
- frameRate: 30,
5408
- },
5409
- };
5410
- if (selectedDeviceId) {
5411
- constraints.video.deviceId = {
5412
- exact: selectedDeviceId,
5413
- };
5414
- }
5415
- if (device.isWin) {
5416
- constraints.video.width = { ideal: 1280 };
5417
- }
5418
- else {
5419
- if (portrait) {
5420
- constraints.video.facingMode = 'user';
5421
- constraints.video.width = { ideal: 1280 };
5422
- constraints.video.height = { ideal: 720 };
5423
- }
5424
- else {
5425
- constraints.video.facingMode = 'environment';
5426
- constraints.video.width = { ideal: 1280 };
5427
- constraints.video.aspectRatio = 1;
5428
- }
5429
- }
5430
- return constraints;
5431
- }
5432
- GetRecommendedCamera(cameras) {
5433
- if (cameras && cameras.length > 0) {
5434
- var recommDevice = cameras.find(c => c.recommended);
5435
- if (recommDevice) {
5436
- return recommDevice;
5437
- }
5438
- }
5439
- return null;
5440
- }
5441
- }
5442
-
5443
5517
  const idBackCaptureCss = ".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";
5444
5518
 
5445
5519
  const IdBackCapture = class {
@@ -5496,9 +5570,7 @@ const IdBackCapture = class {
5496
5570
  this.openCamera();
5497
5571
  }
5498
5572
  async openCamera() {
5499
- let _cameras = await this.cameras.GetCameras(this.device);
5500
- var recommCamera = this.cameras.GetRecommendedCamera(_cameras);
5501
- var constraints = this.cameras.GetConstraints(recommCamera === null || recommCamera === void 0 ? void 0 : recommCamera.deviceId, this.device);
5573
+ var constraints = this.cameras.GetConstraints(state.cameraId, this.device);
5502
5574
  setTimeout(() => {
5503
5575
  navigator.mediaDevices
5504
5576
  .getUserMedia(constraints)
@@ -5609,9 +5681,7 @@ const IdCapture = class {
5609
5681
  this.openCamera();
5610
5682
  }
5611
5683
  async openCamera() {
5612
- let _cameras = await this.cameras.GetCameras(this.device);
5613
- var recommCamera = this.cameras.GetRecommendedCamera(_cameras);
5614
- var constraints = this.cameras.GetConstraints(recommCamera === null || recommCamera === void 0 ? void 0 : recommCamera.deviceId, this.device);
5684
+ var constraints = this.cameras.GetConstraints(state.cameraId, this.device);
5615
5685
  setTimeout(() => {
5616
5686
  navigator.mediaDevices
5617
5687
  .getUserMedia(constraints)
@@ -6094,7 +6164,7 @@ function v4(options, buf, offset) {
6094
6164
  }
6095
6165
 
6096
6166
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
6097
- const version$1 = "2.1.9";
6167
+ const version$1 = "2.1.11";
6098
6168
  const description = "Person Identification Component";
6099
6169
  const main = "./dist/index.cjs.js";
6100
6170
  const module = "./dist/index.js";
@@ -6411,6 +6481,9 @@ const IdentificationComponent = class {
6411
6481
  if (state.flowStatus == FlowStatus.ERROREND) {
6412
6482
  currentBlock = h("error-end", { errorTitle: this.errorTitle, message: this.errorMessage });
6413
6483
  }
6484
+ if (state.flowStatus == FlowStatus.CAMERAERROR) {
6485
+ currentBlock = h("camera-error", { device: this.device });
6486
+ }
6414
6487
  return h("div", null, currentBlock);
6415
6488
  }
6416
6489
  static get watchers() { return {
@@ -6465,6 +6538,10 @@ const LandingValidation = class {
6465
6538
  }
6466
6539
  async startFlow() {
6467
6540
  if (state.initialised) {
6541
+ if (!(await Cameras.InitCameras(this.device))) {
6542
+ state.flowStatus = FlowStatus.CAMERAERROR;
6543
+ return;
6544
+ }
6468
6545
  if (state.agreementsValidation) {
6469
6546
  state.flowStatus = FlowStatus.AGREEMENT;
6470
6547
  }
@@ -9817,4 +9894,4 @@ const UserLiveness = class {
9817
9894
  };
9818
9895
  UserLiveness.style = userLivenessCss;
9819
9896
 
9820
- export { AgreementCheck as agreement_check, AgreementInfo as agreement_info, Camera as camera_comp, CaptureError as capture_error, EndRedirect as end_redirect, ErrorEnd as error_end, HowToInfo as how_to_info, IdBackCapture as id_back_capture, IdCapture as id_capture, IdDoubleSide as id_double_side, IdSingleSide as id_single_side, IdentificationComponent as identification_component, LandingValidation as landing_validation, MobileRedirect as mobile_redirect, SelfieCapture as selfie_capture, SmsCodeValidation as sms_code_validation, UserLiveness as user_liveness };
9897
+ export { AgreementCheck as agreement_check, AgreementInfo as agreement_info, Camera as camera_comp, CameraError as camera_error, CaptureError as capture_error, EndRedirect as end_redirect, ErrorEnd as error_end, HowToInfo as how_to_info, IdBackCapture as id_back_capture, IdCapture as id_capture, IdDoubleSide as id_double_side, IdSingleSide as id_single_side, IdentificationComponent as identification_component, LandingValidation as landing_validation, MobileRedirect as mobile_redirect, SelfieCapture as selfie_capture, SmsCodeValidation as sms_code_validation, UserLiveness as user_liveness };
@@ -11,7 +11,7 @@ const patchEsm = () => {
11
11
  const defineCustomElements = (win, options) => {
12
12
  if (typeof window === 'undefined') return Promise.resolve();
13
13
  return patchEsm().then(() => {
14
- return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["agreement-check_17",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"device":[16],"showTimeout":[32],"showInvalid":[32],"showHowTo":[32],"front":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{"device":[16],"showTimeout":[32],"showHowTo":[32],"idFlow":[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"device":[16],"showError":[32],"showHowTo":[32],"selfieFlow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"device":[16],"warningText":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{"device":[16],"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32]}],[0,"id-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{"type":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32],"buttonEnabled":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
14
+ return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["agreement-check_18",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"device":[16],"showTimeout":[32],"showInvalid":[32],"showHowTo":[32],"front":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{"device":[16],"showTimeout":[32],"showHowTo":[32],"idFlow":[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"device":[16],"showError":[32],"showHowTo":[32],"selfieFlow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{"device":[16],"title":[32],"description":[32],"buttonDisabled":[32],"demoVideo":[32]}],[0,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"device":[16],"warningText":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{"device":[16],"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32]}],[0,"id-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{"type":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32],"buttonEnabled":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
15
15
  });
16
16
  };
17
17
 
@@ -14,5 +14,5 @@ const patchBrowser = () => {
14
14
  };
15
15
 
16
16
  patchBrowser().then(options => {
17
- return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["agreement-check_17",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"device":[16],"showTimeout":[32],"showInvalid":[32],"showHowTo":[32],"front":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{"device":[16],"showTimeout":[32],"showHowTo":[32],"idFlow":[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"device":[16],"showError":[32],"showHowTo":[32],"selfieFlow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"device":[16],"warningText":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{"device":[16],"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32]}],[0,"id-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{"type":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32],"buttonEnabled":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
17
+ return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["agreement-check_18",[[1,"identification-component",{"token":[1537],"order_id":[1537],"api_url":[1537],"env":[1537],"redirect_id":[1537],"phone_number":[1537],"idSide":[32],"errorMessage":[32],"errorTitle":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"],[0,"apiError","apiErrorEmitter"]]],[0,"id-double-side",{"device":[16],"showTimeout":[32],"showInvalid":[32],"showHowTo":[32],"front":[32],"flow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoIdCapture","captureIdImage"],[0,"photoIdBackCapture","captureIdBackImage"],[0,"recordingIdCapture","capturedIdRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"id-single-side",{"device":[16],"showTimeout":[32],"showHowTo":[32],"idFlow":[32]},[[0,"captureErrorDone","captureErrorDone"],[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"photoIdCapture","captureIdImage"],[0,"verificationFinished","verificationFinished"],[0,"recordingIdCapture","capturedIdRecording"]]],[0,"user-liveness",{"device":[16],"showError":[32],"showHowTo":[32],"selfieFlow":[32]},[[0,"howToInfoDone","howToDone"],[0,"timeElapsed","timeElapsed"],[0,"captureErrorDone","captureErrorDone"],[0,"photoSelfieCapture","captureSelfieImage"],[0,"recordingSelfieCapture","capturedSelfieRecording"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-info",{"agreementsChecked":[32],"termsChecked":[32],"openAgreements":[32],"openTerms":[32]},[[0,"agreementAcceptance","agreementAcceptanceEmitted"]]],[0,"camera-error",{"device":[16],"title":[32],"description":[32],"buttonDisabled":[32],"demoVideo":[32]}],[0,"end-redirect"],[0,"error-end",{"message":[1],"errorTitle":[1,"error-title"]}],[0,"landing-validation",{"device":[16],"warningText":[32]}],[0,"mobile-redirect",{"infoTextTop":[32],"infoTextBottom":[32],"contact":[32],"invalidValue":[32],"waitingMobile":[32],"orderStatus":[32],"redirectLink":[32],"qrCode":[32],"prefilledPhone":[32]}],[0,"sms-code-validation",{"title":[32],"details":[32],"buttonText":[32],"phoneNumber":[32],"code":[32],"prefilledPhone":[32],"canSend":[32]}],[0,"id-back-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"verificationFinished","verificationFinished"],[0,"takePhoto","takePhoto"]]],[0,"selfie-capture",{"device":[16],"videoStarted":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"demoEnded":[32],"demoVideo":[32],"uploadingLink":[32],"captureHeight":[32],"captureWidth":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"agreement-check",{"agreementType":[1,"agreement-type"],"htmlContent":[32],"buttonEnabled":[32]}],[0,"id-capture",{"device":[16],"videoStarted":[32],"cameraSize":[32],"captureTaken":[32],"verified":[32],"titleMesage":[32],"showDemo":[32],"demoVideo":[32]},[[0,"changeTitle","eventChangeTitle"],[0,"videoStarted","eventVideoStarted"],[0,"takePhoto","takePhoto"],[0,"verificationFinished","verificationFinished"]]],[0,"capture-error",{"type":[1],"buttonEnabled":[32],"buttonText":[32]}],[0,"how-to-info",{"idSide":[1,"id-side"],"topTitle":[32],"subTitle":[32],"imagePath":[32],"buttonText":[32],"buttonEnabled":[32]}],[0,"camera-comp",{"modelPath":[1,"model-path"],"device":[16],"probabilityThreshold":[2,"probability-threshold"],"captureMode":[1,"capture-mode"]}]]]], options);
18
18
  });