@ekyc_qoobiss/qbs-ect-cmp 2.1.11 → 2.1.13

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.
@@ -5167,120 +5167,6 @@ const Camera = class {
5167
5167
  };
5168
5168
  Camera.style = cameraCss;
5169
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
5170
  const cameraErrorCss = "";
5285
5171
 
5286
5172
  const CameraError = class {
@@ -5307,27 +5193,18 @@ const CameraError = class {
5307
5193
  catch (e) {
5308
5194
  this.apiErrorEvent.emit(e);
5309
5195
  }
5310
- this.demoVideo.src = CameraErrorValues.HowToLink;
5311
- this.demoVideo.play();
5196
+ if (!this.device.isIos) {
5197
+ this.demoVideo.src = CameraErrorValues.HowToLink;
5198
+ this.demoVideo.loop = true;
5199
+ this.demoVideo.play();
5200
+ }
5312
5201
  }
5313
5202
  async buttonClick() {
5314
5203
  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
- }
5204
+ state.flowStatus = FlowStatus.LANDING;
5328
5205
  }
5329
5206
  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))))));
5207
+ 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("div", { hidden: this.device.isIos }, 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
5208
  }
5332
5209
  };
5333
5210
  CameraError.style = cameraErrorCss;
@@ -5514,6 +5391,122 @@ const HowToInfo = class {
5514
5391
  };
5515
5392
  HowToInfo.style = howToInfoCss;
5516
5393
 
5394
+ class Cameras {
5395
+ async GetCameras(deviceInfo) {
5396
+ var allDevices = [];
5397
+ const devices = await navigator.mediaDevices.enumerateDevices();
5398
+ const videoDevices = devices.filter(device => device.kind === 'videoinput');
5399
+ for (const device of videoDevices) {
5400
+ const updatedConstraints = this.GetConstraints(device.deviceId, deviceInfo);
5401
+ const stream = await navigator.mediaDevices.getUserMedia(updatedConstraints);
5402
+ stream.getVideoTracks().forEach(track => {
5403
+ if (deviceInfo.isFirefox) {
5404
+ const settings = track.getSettings();
5405
+ let facingMode = settings.facingMode && settings.facingMode.length > 0 ? settings.facingMode[0] : '';
5406
+ facingMode = facingMode === 'e' ? 'environment' : facingMode;
5407
+ allDevices.push({
5408
+ deviceId: device.deviceId,
5409
+ name: device.label,
5410
+ height: settings.height,
5411
+ width: settings.width,
5412
+ frameRate: Number(settings.frameRate.max),
5413
+ torch: false,
5414
+ recommended: false,
5415
+ facingMode: facingMode,
5416
+ });
5417
+ }
5418
+ else {
5419
+ const capabilities = track.getCapabilities();
5420
+ let facingMode = capabilities.facingMode && capabilities.facingMode.length > 0 ? capabilities.facingMode[0] : '';
5421
+ facingMode = facingMode === 'e' ? 'environment' : facingMode;
5422
+ allDevices.push({
5423
+ deviceId: device.deviceId,
5424
+ name: device.label,
5425
+ height: capabilities.height.max,
5426
+ width: capabilities.width.max,
5427
+ frameRate: Number(capabilities.frameRate.max),
5428
+ torch: capabilities.torch,
5429
+ recommended: false,
5430
+ facingMode: facingMode,
5431
+ });
5432
+ }
5433
+ });
5434
+ stream.getTracks().forEach(track => {
5435
+ track.stop();
5436
+ });
5437
+ }
5438
+ if (allDevices.length > 0) {
5439
+ allDevices = allDevices.sort((a, b) => b.frameRate - a.frameRate);
5440
+ var firstOption = allDevices.find(i => i.name.indexOf('0,') != -1 && i.facingMode === 'environment');
5441
+ if (firstOption) {
5442
+ allDevices[allDevices.indexOf(firstOption)].recommended = true;
5443
+ }
5444
+ else {
5445
+ var firstEnv = allDevices.find(i => i.facingMode === 'environment');
5446
+ if (firstEnv) {
5447
+ allDevices[allDevices.indexOf(firstEnv)].recommended = true;
5448
+ }
5449
+ }
5450
+ }
5451
+ return allDevices;
5452
+ }
5453
+ GetConstraints(selectedDeviceId, device, portrait = false) {
5454
+ let constraints = {
5455
+ audio: false,
5456
+ video: {
5457
+ frameRate: 30,
5458
+ },
5459
+ };
5460
+ if (selectedDeviceId) {
5461
+ constraints.video.deviceId = {
5462
+ exact: selectedDeviceId,
5463
+ };
5464
+ }
5465
+ if (device.isWin) {
5466
+ constraints.video.width = { ideal: 1280 };
5467
+ }
5468
+ else {
5469
+ if (portrait) {
5470
+ constraints.video.facingMode = 'user';
5471
+ constraints.video.width = { ideal: 1280 };
5472
+ constraints.video.height = { ideal: 720 };
5473
+ }
5474
+ else {
5475
+ constraints.video.facingMode = 'environment';
5476
+ constraints.video.width = { ideal: 1280 };
5477
+ constraints.video.aspectRatio = 1;
5478
+ }
5479
+ }
5480
+ return constraints;
5481
+ }
5482
+ GetRecommendedCamera(cameras) {
5483
+ if (cameras && cameras.length > 0) {
5484
+ var recommDevice = cameras.find(c => c.recommended);
5485
+ if (recommDevice) {
5486
+ return recommDevice;
5487
+ }
5488
+ }
5489
+ return null;
5490
+ }
5491
+ static async InitCameras(device) {
5492
+ try {
5493
+ let cam = new Cameras();
5494
+ let cameras = await cam.GetCameras(device);
5495
+ var recommCamera = cam.GetRecommendedCamera(cameras);
5496
+ state.cameraIds = cameras.map(camera => camera.deviceId);
5497
+ state.cameraId = recommCamera.deviceId;
5498
+ return true;
5499
+ }
5500
+ catch (e) {
5501
+ console.log(e);
5502
+ if (e.message.includes('Permission denied') || e.name.includes('NotAllowedError')) {
5503
+ return false;
5504
+ }
5505
+ throw e;
5506
+ }
5507
+ }
5508
+ }
5509
+
5517
5510
  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)}";
5518
5511
 
5519
5512
  const IdBackCapture = class {
@@ -6164,7 +6157,7 @@ function v4(options, buf, offset) {
6164
6157
  }
6165
6158
 
6166
6159
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
6167
- const version$1 = "2.1.11";
6160
+ const version$1 = "2.1.13";
6168
6161
  const description = "Person Identification Component";
6169
6162
  const main = "./dist/index.cjs.js";
6170
6163
  const module = "./dist/index.js";
@@ -6513,9 +6506,11 @@ const LandingValidation = class {
6513
6506
  this.apiErrorEvent = createEvent(this, "apiError", 7);
6514
6507
  this.device = undefined;
6515
6508
  this.warningText = undefined;
6509
+ this.buttonDisabled = undefined;
6516
6510
  }
6517
6511
  async componentWillLoad() {
6518
6512
  this.apiCall = new ApiCall();
6513
+ this.buttonDisabled = false;
6519
6514
  await this.initRequest();
6520
6515
  }
6521
6516
  async componentDidLoad() {
@@ -6538,6 +6533,7 @@ const LandingValidation = class {
6538
6533
  }
6539
6534
  async startFlow() {
6540
6535
  if (state.initialised) {
6536
+ this.buttonDisabled = true;
6541
6537
  if (!(await Cameras.InitCameras(this.device))) {
6542
6538
  state.flowStatus = FlowStatus.CAMERAERROR;
6543
6539
  return;
@@ -6554,6 +6550,8 @@ const LandingValidation = class {
6554
6550
  }
6555
6551
  }
6556
6552
  async leaveFlow() {
6553
+ if (this.buttonDisabled)
6554
+ return;
6557
6555
  state.initialised = false;
6558
6556
  try {
6559
6557
  await this.apiCall.AbortRequest();
@@ -6565,7 +6563,7 @@ const LandingValidation = class {
6565
6563
  }
6566
6564
  }
6567
6565
  render() {
6568
- return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, LandingValues.Title), h("div", { class: "d-flex space-between align-center" }, h("p", { class: "main-text font-size-2" }, LandingValues.Description), h("div", { class: "img-info" }, h("div", { class: "i-effect" }), h("img", { src: infoSvg })))), h("div", { class: "info-container" }, h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idSvg })), h("h3", null, LandingValues.IdInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: deviceSvg })), h("h3", null, LandingValues.DeviceInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: validationSvg })), h("h3", null, LandingValues.SmsInfo))), h("div", { class: "terms-container" }, h("h3", { class: "font-size-2 mb-1 text-center" }, this.warningText)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: !state.initialised, onClick: () => this.startFlow() }, LandingValues.Button), h("p", { class: "main-text font-size-2 link-text mb-0", onClick: () => this.leaveFlow() }, LandingValues.ButtonLeave), h("p", { class: "main-text font-size-18 text-right mb-0" }, LandingValues.FooterText))))));
6566
+ return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, LandingValues.Title), h("div", { class: "d-flex space-between align-center" }, h("p", { class: "main-text font-size-2" }, LandingValues.Description), h("div", { class: "img-info" }, h("div", { class: "i-effect" }), h("img", { src: infoSvg })))), h("div", { class: "info-container" }, h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idSvg })), h("h3", null, LandingValues.IdInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: deviceSvg })), h("h3", null, LandingValues.DeviceInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: validationSvg })), h("h3", null, LandingValues.SmsInfo))), h("div", { class: "terms-container" }, h("h3", { class: "font-size-2 mb-1 text-center" }, this.warningText)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: !state.initialised && this.buttonDisabled, onClick: () => this.startFlow() }, LandingValues.Button), h("p", { class: "main-text font-size-2 link-text mb-0", onClick: () => this.leaveFlow() }, LandingValues.ButtonLeave), h("p", { class: "main-text font-size-18 text-right mb-0" }, LandingValues.FooterText))))));
6569
6567
  }
6570
6568
  };
6571
6569
  LandingValidation.style = landingValidationCss;
@@ -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_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);
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],"buttonDisabled":[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_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);
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],"buttonDisabled":[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
  });