@ekyc_qoobiss/qbs-ect-cmp 2.1.9 → 2.1.10
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/cjs/{agreement-check_17.cjs.entry.js → agreement-check_18.cjs.entry.js} +181 -107
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/common/camera-error/camera-error.css +0 -0
- package/dist/collection/components/common/camera-error/camera-error.js +109 -0
- package/dist/collection/components/common/id-back-capture/id-back-capture.js +2 -3
- package/dist/collection/components/common/id-capture/id-capture.js +2 -3
- package/dist/collection/components/flow/landing-validation/landing-validation.js +5 -0
- package/dist/collection/components/identification-component/identification-component.js +3 -0
- package/dist/collection/helpers/Cameras.js +17 -0
- package/dist/collection/helpers/textValues.js +5 -0
- package/dist/collection/models/FlowStatus.js +1 -0
- package/dist/collection/models/FlowSteps.js +1 -0
- package/dist/esm/{agreement-check_17.entry.js → agreement-check_18.entry.js} +181 -108
- package/dist/esm/loader.js +1 -1
- package/dist/esm/qbs-ect-cmp.js +1 -1
- package/dist/qbs-ect-cmp/{p-91913ea5.entry.js → p-b6054117.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/common/camera-error/camera-error.d.ts +16 -0
- package/dist/types/components.d.ts +20 -0
- package/dist/types/helpers/Cameras.d.ts +1 -0
- package/dist/types/helpers/textValues.d.ts +5 -0
- package/dist/types/models/FlowStatus.d.ts +2 -1
- package/dist/types/models/FlowSteps.d.ts +2 -1
- package/package.json +1 -1
|
@@ -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,12 @@ 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';
|
|
353
359
|
|
|
354
360
|
const { state, onChange } = createStore({
|
|
355
361
|
flowStatus: FlowStatus.LANDING,
|
|
@@ -406,6 +412,7 @@ var FlowSteps;
|
|
|
406
412
|
FlowSteps[FlowSteps["SelfieHowTo"] = 9] = "SelfieHowTo";
|
|
407
413
|
FlowSteps[FlowSteps["Selfie"] = 10] = "Selfie";
|
|
408
414
|
FlowSteps[FlowSteps["End"] = 11] = "End";
|
|
415
|
+
FlowSteps[FlowSteps["CameraError"] = 12] = "CameraError";
|
|
409
416
|
})(FlowSteps || (FlowSteps = {}));
|
|
410
417
|
|
|
411
418
|
class ApiCall {
|
|
@@ -5159,6 +5166,168 @@ const Camera = class {
|
|
|
5159
5166
|
};
|
|
5160
5167
|
Camera.style = cameraCss;
|
|
5161
5168
|
|
|
5169
|
+
class Cameras {
|
|
5170
|
+
async GetCameras(deviceInfo) {
|
|
5171
|
+
var allDevices = [];
|
|
5172
|
+
const devices = await navigator.mediaDevices.enumerateDevices();
|
|
5173
|
+
const videoDevices = devices.filter(device => device.kind === 'videoinput');
|
|
5174
|
+
for (const device of videoDevices) {
|
|
5175
|
+
const updatedConstraints = this.GetConstraints(device.deviceId, deviceInfo);
|
|
5176
|
+
const stream = await navigator.mediaDevices.getUserMedia(updatedConstraints);
|
|
5177
|
+
stream.getVideoTracks().forEach(track => {
|
|
5178
|
+
if (deviceInfo.isFirefox) {
|
|
5179
|
+
const settings = track.getSettings();
|
|
5180
|
+
let facingMode = settings.facingMode && settings.facingMode.length > 0 ? settings.facingMode[0] : '';
|
|
5181
|
+
facingMode = facingMode === 'e' ? 'environment' : facingMode;
|
|
5182
|
+
allDevices.push({
|
|
5183
|
+
deviceId: device.deviceId,
|
|
5184
|
+
name: device.label,
|
|
5185
|
+
height: settings.height,
|
|
5186
|
+
width: settings.width,
|
|
5187
|
+
frameRate: Number(settings.frameRate.max),
|
|
5188
|
+
torch: false,
|
|
5189
|
+
recommended: false,
|
|
5190
|
+
facingMode: facingMode,
|
|
5191
|
+
});
|
|
5192
|
+
}
|
|
5193
|
+
else {
|
|
5194
|
+
const capabilities = track.getCapabilities();
|
|
5195
|
+
let facingMode = capabilities.facingMode && capabilities.facingMode.length > 0 ? capabilities.facingMode[0] : '';
|
|
5196
|
+
facingMode = facingMode === 'e' ? 'environment' : facingMode;
|
|
5197
|
+
allDevices.push({
|
|
5198
|
+
deviceId: device.deviceId,
|
|
5199
|
+
name: device.label,
|
|
5200
|
+
height: capabilities.height.max,
|
|
5201
|
+
width: capabilities.width.max,
|
|
5202
|
+
frameRate: Number(capabilities.frameRate.max),
|
|
5203
|
+
torch: capabilities.torch,
|
|
5204
|
+
recommended: false,
|
|
5205
|
+
facingMode: facingMode,
|
|
5206
|
+
});
|
|
5207
|
+
}
|
|
5208
|
+
});
|
|
5209
|
+
stream.getTracks().forEach(track => {
|
|
5210
|
+
track.stop();
|
|
5211
|
+
});
|
|
5212
|
+
}
|
|
5213
|
+
if (allDevices.length > 0) {
|
|
5214
|
+
allDevices = allDevices.sort((a, b) => b.frameRate - a.frameRate);
|
|
5215
|
+
var firstOption = allDevices.find(i => i.name.indexOf('0,') != -1 && i.facingMode === 'environment');
|
|
5216
|
+
if (firstOption) {
|
|
5217
|
+
allDevices[allDevices.indexOf(firstOption)].recommended = true;
|
|
5218
|
+
}
|
|
5219
|
+
else {
|
|
5220
|
+
var firstEnv = allDevices.find(i => i.facingMode === 'environment');
|
|
5221
|
+
if (firstEnv) {
|
|
5222
|
+
allDevices[allDevices.indexOf(firstEnv)].recommended = true;
|
|
5223
|
+
}
|
|
5224
|
+
}
|
|
5225
|
+
}
|
|
5226
|
+
return allDevices;
|
|
5227
|
+
}
|
|
5228
|
+
GetConstraints(selectedDeviceId, device, portrait = false) {
|
|
5229
|
+
let constraints = {
|
|
5230
|
+
audio: false,
|
|
5231
|
+
video: {
|
|
5232
|
+
frameRate: 30,
|
|
5233
|
+
},
|
|
5234
|
+
};
|
|
5235
|
+
if (selectedDeviceId) {
|
|
5236
|
+
constraints.video.deviceId = {
|
|
5237
|
+
exact: selectedDeviceId,
|
|
5238
|
+
};
|
|
5239
|
+
}
|
|
5240
|
+
if (device.isWin) {
|
|
5241
|
+
constraints.video.width = { ideal: 1280 };
|
|
5242
|
+
}
|
|
5243
|
+
else {
|
|
5244
|
+
if (portrait) {
|
|
5245
|
+
constraints.video.facingMode = 'user';
|
|
5246
|
+
constraints.video.width = { ideal: 1280 };
|
|
5247
|
+
constraints.video.height = { ideal: 720 };
|
|
5248
|
+
}
|
|
5249
|
+
else {
|
|
5250
|
+
constraints.video.facingMode = 'environment';
|
|
5251
|
+
constraints.video.width = { ideal: 1280 };
|
|
5252
|
+
constraints.video.aspectRatio = 1;
|
|
5253
|
+
}
|
|
5254
|
+
}
|
|
5255
|
+
return constraints;
|
|
5256
|
+
}
|
|
5257
|
+
GetRecommendedCamera(cameras) {
|
|
5258
|
+
if (cameras && cameras.length > 0) {
|
|
5259
|
+
var recommDevice = cameras.find(c => c.recommended);
|
|
5260
|
+
if (recommDevice) {
|
|
5261
|
+
return recommDevice;
|
|
5262
|
+
}
|
|
5263
|
+
}
|
|
5264
|
+
return null;
|
|
5265
|
+
}
|
|
5266
|
+
static async InitCameras(device) {
|
|
5267
|
+
try {
|
|
5268
|
+
let cam = new Cameras();
|
|
5269
|
+
let cameras = await cam.GetCameras(device);
|
|
5270
|
+
var recommCamera = cam.GetRecommendedCamera(cameras);
|
|
5271
|
+
state.cameraIds = cameras.map(camera => camera.deviceId);
|
|
5272
|
+
state.cameraId = recommCamera;
|
|
5273
|
+
return true;
|
|
5274
|
+
}
|
|
5275
|
+
catch (e) {
|
|
5276
|
+
console.log(e);
|
|
5277
|
+
if (e.message.includes('NotAllowedError: Permission denied')) ;
|
|
5278
|
+
}
|
|
5279
|
+
return false;
|
|
5280
|
+
}
|
|
5281
|
+
}
|
|
5282
|
+
|
|
5283
|
+
const cameraErrorCss = "";
|
|
5284
|
+
|
|
5285
|
+
const CameraError = class {
|
|
5286
|
+
constructor(hostRef) {
|
|
5287
|
+
registerInstance(this, hostRef);
|
|
5288
|
+
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
5289
|
+
this.device = undefined;
|
|
5290
|
+
this.title = undefined;
|
|
5291
|
+
this.description = undefined;
|
|
5292
|
+
this.buttonDisabled = undefined;
|
|
5293
|
+
this.apiCall = new ApiCall();
|
|
5294
|
+
}
|
|
5295
|
+
async componentWillLoad() {
|
|
5296
|
+
this.buttonDisabled = false;
|
|
5297
|
+
this.title = CameraErrorValues.Title;
|
|
5298
|
+
this.description = CameraErrorValues.Description;
|
|
5299
|
+
this.buttonText = CameraErrorValues.Button;
|
|
5300
|
+
}
|
|
5301
|
+
async componentDidLoad() {
|
|
5302
|
+
try {
|
|
5303
|
+
await this.apiCall.AddStep(FlowSteps.CameraError);
|
|
5304
|
+
}
|
|
5305
|
+
catch (e) {
|
|
5306
|
+
this.apiErrorEvent.emit(e);
|
|
5307
|
+
}
|
|
5308
|
+
}
|
|
5309
|
+
async buttonClick() {
|
|
5310
|
+
this.buttonDisabled = true;
|
|
5311
|
+
if (!(await Cameras.InitCameras(this.device))) {
|
|
5312
|
+
this.buttonDisabled = false;
|
|
5313
|
+
return;
|
|
5314
|
+
}
|
|
5315
|
+
if (state.agreementsValidation) {
|
|
5316
|
+
state.flowStatus = FlowStatus.AGREEMENT;
|
|
5317
|
+
}
|
|
5318
|
+
else if (state.phoneValidation) {
|
|
5319
|
+
state.flowStatus = FlowStatus.PHONE;
|
|
5320
|
+
}
|
|
5321
|
+
else {
|
|
5322
|
+
state.flowStatus = FlowStatus.ID;
|
|
5323
|
+
}
|
|
5324
|
+
}
|
|
5325
|
+
render() {
|
|
5326
|
+
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", { 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))))));
|
|
5327
|
+
}
|
|
5328
|
+
};
|
|
5329
|
+
CameraError.style = cameraErrorCss;
|
|
5330
|
+
|
|
5162
5331
|
const captureErrorCss = "";
|
|
5163
5332
|
|
|
5164
5333
|
const CaptureError = class {
|
|
@@ -5341,105 +5510,6 @@ const HowToInfo = class {
|
|
|
5341
5510
|
};
|
|
5342
5511
|
HowToInfo.style = howToInfoCss;
|
|
5343
5512
|
|
|
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
5513
|
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
5514
|
|
|
5445
5515
|
const IdBackCapture = class {
|
|
@@ -5496,9 +5566,7 @@ const IdBackCapture = class {
|
|
|
5496
5566
|
this.openCamera();
|
|
5497
5567
|
}
|
|
5498
5568
|
async openCamera() {
|
|
5499
|
-
|
|
5500
|
-
var recommCamera = this.cameras.GetRecommendedCamera(_cameras);
|
|
5501
|
-
var constraints = this.cameras.GetConstraints(recommCamera === null || recommCamera === void 0 ? void 0 : recommCamera.deviceId, this.device);
|
|
5569
|
+
var constraints = this.cameras.GetConstraints(state.cameraId, this.device);
|
|
5502
5570
|
setTimeout(() => {
|
|
5503
5571
|
navigator.mediaDevices
|
|
5504
5572
|
.getUserMedia(constraints)
|
|
@@ -5609,9 +5677,7 @@ const IdCapture = class {
|
|
|
5609
5677
|
this.openCamera();
|
|
5610
5678
|
}
|
|
5611
5679
|
async openCamera() {
|
|
5612
|
-
|
|
5613
|
-
var recommCamera = this.cameras.GetRecommendedCamera(_cameras);
|
|
5614
|
-
var constraints = this.cameras.GetConstraints(recommCamera === null || recommCamera === void 0 ? void 0 : recommCamera.deviceId, this.device);
|
|
5680
|
+
var constraints = this.cameras.GetConstraints(state.cameraId, this.device);
|
|
5615
5681
|
setTimeout(() => {
|
|
5616
5682
|
navigator.mediaDevices
|
|
5617
5683
|
.getUserMedia(constraints)
|
|
@@ -6094,7 +6160,7 @@ function v4(options, buf, offset) {
|
|
|
6094
6160
|
}
|
|
6095
6161
|
|
|
6096
6162
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
6097
|
-
const version$1 = "2.1.
|
|
6163
|
+
const version$1 = "2.1.10";
|
|
6098
6164
|
const description = "Person Identification Component";
|
|
6099
6165
|
const main = "./dist/index.cjs.js";
|
|
6100
6166
|
const module = "./dist/index.js";
|
|
@@ -6411,6 +6477,9 @@ const IdentificationComponent = class {
|
|
|
6411
6477
|
if (state.flowStatus == FlowStatus.ERROREND) {
|
|
6412
6478
|
currentBlock = h("error-end", { errorTitle: this.errorTitle, message: this.errorMessage });
|
|
6413
6479
|
}
|
|
6480
|
+
if (state.flowStatus == FlowStatus.CAMERAERROR) {
|
|
6481
|
+
currentBlock = h("camera-error", { device: this.device });
|
|
6482
|
+
}
|
|
6414
6483
|
return h("div", null, currentBlock);
|
|
6415
6484
|
}
|
|
6416
6485
|
static get watchers() { return {
|
|
@@ -6465,6 +6534,10 @@ const LandingValidation = class {
|
|
|
6465
6534
|
}
|
|
6466
6535
|
async startFlow() {
|
|
6467
6536
|
if (state.initialised) {
|
|
6537
|
+
if (!(await Cameras.InitCameras(this.device))) {
|
|
6538
|
+
state.flowStatus = FlowStatus.CAMERAERROR;
|
|
6539
|
+
return;
|
|
6540
|
+
}
|
|
6468
6541
|
if (state.agreementsValidation) {
|
|
6469
6542
|
state.flowStatus = FlowStatus.AGREEMENT;
|
|
6470
6543
|
}
|
|
@@ -9817,4 +9890,4 @@ const UserLiveness = class {
|
|
|
9817
9890
|
};
|
|
9818
9891
|
UserLiveness.style = userLivenessCss;
|
|
9819
9892
|
|
|
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 };
|
|
9893
|
+
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 };
|
package/dist/esm/loader.js
CHANGED
|
@@ -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-
|
|
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]}],[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
|
|
package/dist/esm/qbs-ect-cmp.js
CHANGED
|
@@ -14,5 +14,5 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
return bootstrapLazy([["loader-dots",[[1,"loader-dots"]]],["agreement-
|
|
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]}],[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
|
});
|