@richard.fadiora/liveness-detection 5.0.0 → 5.0.2

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/index.js CHANGED
@@ -1,8 +1,671 @@
1
- import { verifyLiveness as i } from "./api-BpiDoGOd.js";
2
- import { L as r, a as v, u as L } from "./LivenessCheck-Cr69CK-6.js";
1
+ import { verifyLiveness as mt } from "./api-BpiDoGOd.js";
2
+ import { L as Z } from "./LivenessEngine-B1aNyAdi.js";
3
+ import { Injectable as W, ViewChild as q, Input as c, Output as j, Component as G, ViewEncapsulation as J, EventEmitter as _ } from "@angular/core";
4
+ import { CommonModule as K } from "@angular/common";
5
+ var E = function(e, r) {
6
+ return E = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, n) {
7
+ t.__proto__ = n;
8
+ } || function(t, n) {
9
+ for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
10
+ }, E(e, r);
11
+ };
12
+ function d(e, r) {
13
+ if (typeof r != "function" && r !== null)
14
+ throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
15
+ E(e, r);
16
+ function t() {
17
+ this.constructor = e;
18
+ }
19
+ e.prototype = r === null ? Object.create(r) : (t.prototype = r.prototype, new t());
20
+ }
21
+ function C(e) {
22
+ var r = typeof Symbol == "function" && Symbol.iterator, t = r && e[r], n = 0;
23
+ if (t) return t.call(e);
24
+ if (e && typeof e.length == "number") return {
25
+ next: function() {
26
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
27
+ }
28
+ };
29
+ throw new TypeError(r ? "Object is not iterable." : "Symbol.iterator is not defined.");
30
+ }
31
+ function O(e, r) {
32
+ var t = typeof Symbol == "function" && e[Symbol.iterator];
33
+ if (!t) return e;
34
+ var n = t.call(e), o, i = [], s;
35
+ try {
36
+ for (; (r === void 0 || r-- > 0) && !(o = n.next()).done; ) i.push(o.value);
37
+ } catch (l) {
38
+ s = { error: l };
39
+ } finally {
40
+ try {
41
+ o && !o.done && (t = n.return) && t.call(n);
42
+ } finally {
43
+ if (s) throw s.error;
44
+ }
45
+ }
46
+ return i;
47
+ }
48
+ function x(e, r, t) {
49
+ if (t || arguments.length === 2) for (var n = 0, o = r.length, i; n < o; n++)
50
+ (i || !(n in r)) && (i || (i = Array.prototype.slice.call(r, 0, n)), i[n] = r[n]);
51
+ return e.concat(i || Array.prototype.slice.call(r));
52
+ }
53
+ function f(e) {
54
+ return typeof e == "function";
55
+ }
56
+ function D(e) {
57
+ var r = function(n) {
58
+ Error.call(n), n.stack = new Error().stack;
59
+ }, t = e(r);
60
+ return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
61
+ }
62
+ var w = D(function(e) {
63
+ return function(t) {
64
+ e(this), this.message = t ? t.length + ` errors occurred during unsubscription:
65
+ ` + t.map(function(n, o) {
66
+ return o + 1 + ") " + n.toString();
67
+ }).join(`
68
+ `) : "", this.name = "UnsubscriptionError", this.errors = t;
69
+ };
70
+ });
71
+ function T(e, r) {
72
+ if (e) {
73
+ var t = e.indexOf(r);
74
+ 0 <= t && e.splice(t, 1);
75
+ }
76
+ }
77
+ var g = function() {
78
+ function e(r) {
79
+ this.initialTeardown = r, this.closed = !1, this._parentage = null, this._finalizers = null;
80
+ }
81
+ return e.prototype.unsubscribe = function() {
82
+ var r, t, n, o, i;
83
+ if (!this.closed) {
84
+ this.closed = !0;
85
+ var s = this._parentage;
86
+ if (s)
87
+ if (this._parentage = null, Array.isArray(s))
88
+ try {
89
+ for (var l = C(s), p = l.next(); !p.done; p = l.next()) {
90
+ var S = p.value;
91
+ S.remove(this);
92
+ }
93
+ } catch (h) {
94
+ r = { error: h };
95
+ } finally {
96
+ try {
97
+ p && !p.done && (t = l.return) && t.call(l);
98
+ } finally {
99
+ if (r) throw r.error;
100
+ }
101
+ }
102
+ else
103
+ s.remove(this);
104
+ var A = this.initialTeardown;
105
+ if (f(A))
106
+ try {
107
+ A();
108
+ } catch (h) {
109
+ i = h instanceof w ? h.errors : [h];
110
+ }
111
+ var M = this._finalizers;
112
+ if (M) {
113
+ this._finalizers = null;
114
+ try {
115
+ for (var y = C(M), v = y.next(); !v.done; v = y.next()) {
116
+ var $ = v.value;
117
+ try {
118
+ I($);
119
+ } catch (h) {
120
+ i = i ?? [], h instanceof w ? i = x(x([], O(i)), O(h.errors)) : i.push(h);
121
+ }
122
+ }
123
+ } catch (h) {
124
+ n = { error: h };
125
+ } finally {
126
+ try {
127
+ v && !v.done && (o = y.return) && o.call(y);
128
+ } finally {
129
+ if (n) throw n.error;
130
+ }
131
+ }
132
+ }
133
+ if (i)
134
+ throw new w(i);
135
+ }
136
+ }, e.prototype.add = function(r) {
137
+ var t;
138
+ if (r && r !== this)
139
+ if (this.closed)
140
+ I(r);
141
+ else {
142
+ if (r instanceof e) {
143
+ if (r.closed || r._hasParent(this))
144
+ return;
145
+ r._addParent(this);
146
+ }
147
+ (this._finalizers = (t = this._finalizers) !== null && t !== void 0 ? t : []).push(r);
148
+ }
149
+ }, e.prototype._hasParent = function(r) {
150
+ var t = this._parentage;
151
+ return t === r || Array.isArray(t) && t.includes(r);
152
+ }, e.prototype._addParent = function(r) {
153
+ var t = this._parentage;
154
+ this._parentage = Array.isArray(t) ? (t.push(r), t) : t ? [t, r] : r;
155
+ }, e.prototype._removeParent = function(r) {
156
+ var t = this._parentage;
157
+ t === r ? this._parentage = null : Array.isArray(t) && T(t, r);
158
+ }, e.prototype.remove = function(r) {
159
+ var t = this._finalizers;
160
+ t && T(t, r), r instanceof e && r._removeParent(this);
161
+ }, e.EMPTY = function() {
162
+ var r = new e();
163
+ return r.closed = !0, r;
164
+ }(), e;
165
+ }(), R = g.EMPTY;
166
+ function F(e) {
167
+ return e instanceof g || e && "closed" in e && f(e.remove) && f(e.add) && f(e.unsubscribe);
168
+ }
169
+ function I(e) {
170
+ f(e) ? e() : e.unsubscribe();
171
+ }
172
+ var Q = {
173
+ Promise: void 0
174
+ }, X = {
175
+ setTimeout: function(e, r) {
176
+ for (var t = [], n = 2; n < arguments.length; n++)
177
+ t[n - 2] = arguments[n];
178
+ return setTimeout.apply(void 0, x([e, r], O(t)));
179
+ },
180
+ clearTimeout: function(e) {
181
+ return clearTimeout(e);
182
+ },
183
+ delegate: void 0
184
+ };
185
+ function z(e) {
186
+ X.setTimeout(function() {
187
+ throw e;
188
+ });
189
+ }
190
+ function U() {
191
+ }
192
+ function m(e) {
193
+ e();
194
+ }
195
+ var k = function(e) {
196
+ d(r, e);
197
+ function r(t) {
198
+ var n = e.call(this) || this;
199
+ return n.isStopped = !1, t ? (n.destination = t, F(t) && t.add(n)) : n.destination = rt, n;
200
+ }
201
+ return r.create = function(t, n, o) {
202
+ return new P(t, n, o);
203
+ }, r.prototype.next = function(t) {
204
+ this.isStopped || this._next(t);
205
+ }, r.prototype.error = function(t) {
206
+ this.isStopped || (this.isStopped = !0, this._error(t));
207
+ }, r.prototype.complete = function() {
208
+ this.isStopped || (this.isStopped = !0, this._complete());
209
+ }, r.prototype.unsubscribe = function() {
210
+ this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
211
+ }, r.prototype._next = function(t) {
212
+ this.destination.next(t);
213
+ }, r.prototype._error = function(t) {
214
+ try {
215
+ this.destination.error(t);
216
+ } finally {
217
+ this.unsubscribe();
218
+ }
219
+ }, r.prototype._complete = function() {
220
+ try {
221
+ this.destination.complete();
222
+ } finally {
223
+ this.unsubscribe();
224
+ }
225
+ }, r;
226
+ }(g), N = function() {
227
+ function e(r) {
228
+ this.partialObserver = r;
229
+ }
230
+ return e.prototype.next = function(r) {
231
+ var t = this.partialObserver;
232
+ if (t.next)
233
+ try {
234
+ t.next(r);
235
+ } catch (n) {
236
+ b(n);
237
+ }
238
+ }, e.prototype.error = function(r) {
239
+ var t = this.partialObserver;
240
+ if (t.error)
241
+ try {
242
+ t.error(r);
243
+ } catch (n) {
244
+ b(n);
245
+ }
246
+ else
247
+ b(r);
248
+ }, e.prototype.complete = function() {
249
+ var r = this.partialObserver;
250
+ if (r.complete)
251
+ try {
252
+ r.complete();
253
+ } catch (t) {
254
+ b(t);
255
+ }
256
+ }, e;
257
+ }(), P = function(e) {
258
+ d(r, e);
259
+ function r(t, n, o) {
260
+ var i = e.call(this) || this, s;
261
+ return f(t) || !t ? s = {
262
+ next: t ?? void 0,
263
+ error: n ?? void 0,
264
+ complete: o ?? void 0
265
+ } : s = t, i.destination = new N(s), i;
266
+ }
267
+ return r;
268
+ }(k);
269
+ function b(e) {
270
+ z(e);
271
+ }
272
+ function tt(e) {
273
+ throw e;
274
+ }
275
+ var rt = {
276
+ closed: !0,
277
+ next: U,
278
+ error: tt,
279
+ complete: U
280
+ }, et = function() {
281
+ return typeof Symbol == "function" && Symbol.observable || "@@observable";
282
+ }();
283
+ function nt(e) {
284
+ return e;
285
+ }
286
+ function ot(e) {
287
+ return e.length === 0 ? nt : e.length === 1 ? e[0] : function(t) {
288
+ return e.reduce(function(n, o) {
289
+ return o(n);
290
+ }, t);
291
+ };
292
+ }
293
+ var B = function() {
294
+ function e(r) {
295
+ r && (this._subscribe = r);
296
+ }
297
+ return e.prototype.lift = function(r) {
298
+ var t = new e();
299
+ return t.source = this, t.operator = r, t;
300
+ }, e.prototype.subscribe = function(r, t, n) {
301
+ var o = this, i = st(r) ? r : new P(r, t, n);
302
+ return m(function() {
303
+ var s = o, l = s.operator, p = s.source;
304
+ i.add(l ? l.call(i, p) : p ? o._subscribe(i) : o._trySubscribe(i));
305
+ }), i;
306
+ }, e.prototype._trySubscribe = function(r) {
307
+ try {
308
+ return this._subscribe(r);
309
+ } catch (t) {
310
+ r.error(t);
311
+ }
312
+ }, e.prototype.forEach = function(r, t) {
313
+ var n = this;
314
+ return t = L(t), new t(function(o, i) {
315
+ var s = new P({
316
+ next: function(l) {
317
+ try {
318
+ r(l);
319
+ } catch (p) {
320
+ i(p), s.unsubscribe();
321
+ }
322
+ },
323
+ error: i,
324
+ complete: o
325
+ });
326
+ n.subscribe(s);
327
+ });
328
+ }, e.prototype._subscribe = function(r) {
329
+ var t;
330
+ return (t = this.source) === null || t === void 0 ? void 0 : t.subscribe(r);
331
+ }, e.prototype[et] = function() {
332
+ return this;
333
+ }, e.prototype.pipe = function() {
334
+ for (var r = [], t = 0; t < arguments.length; t++)
335
+ r[t] = arguments[t];
336
+ return ot(r)(this);
337
+ }, e.prototype.toPromise = function(r) {
338
+ var t = this;
339
+ return r = L(r), new r(function(n, o) {
340
+ var i;
341
+ t.subscribe(function(s) {
342
+ return i = s;
343
+ }, function(s) {
344
+ return o(s);
345
+ }, function() {
346
+ return n(i);
347
+ });
348
+ });
349
+ }, e.create = function(r) {
350
+ return new e(r);
351
+ }, e;
352
+ }();
353
+ function L(e) {
354
+ var r;
355
+ return (r = e ?? Q.Promise) !== null && r !== void 0 ? r : Promise;
356
+ }
357
+ function it(e) {
358
+ return e && f(e.next) && f(e.error) && f(e.complete);
359
+ }
360
+ function st(e) {
361
+ return e && e instanceof k || it(e) && F(e);
362
+ }
363
+ var at = D(function(e) {
364
+ return function() {
365
+ e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
366
+ };
367
+ }), Y = function(e) {
368
+ d(r, e);
369
+ function r() {
370
+ var t = e.call(this) || this;
371
+ return t.closed = !1, t.currentObservers = null, t.observers = [], t.isStopped = !1, t.hasError = !1, t.thrownError = null, t;
372
+ }
373
+ return r.prototype.lift = function(t) {
374
+ var n = new V(this, this);
375
+ return n.operator = t, n;
376
+ }, r.prototype._throwIfClosed = function() {
377
+ if (this.closed)
378
+ throw new at();
379
+ }, r.prototype.next = function(t) {
380
+ var n = this;
381
+ m(function() {
382
+ var o, i;
383
+ if (n._throwIfClosed(), !n.isStopped) {
384
+ n.currentObservers || (n.currentObservers = Array.from(n.observers));
385
+ try {
386
+ for (var s = C(n.currentObservers), l = s.next(); !l.done; l = s.next()) {
387
+ var p = l.value;
388
+ p.next(t);
389
+ }
390
+ } catch (S) {
391
+ o = { error: S };
392
+ } finally {
393
+ try {
394
+ l && !l.done && (i = s.return) && i.call(s);
395
+ } finally {
396
+ if (o) throw o.error;
397
+ }
398
+ }
399
+ }
400
+ });
401
+ }, r.prototype.error = function(t) {
402
+ var n = this;
403
+ m(function() {
404
+ if (n._throwIfClosed(), !n.isStopped) {
405
+ n.hasError = n.isStopped = !0, n.thrownError = t;
406
+ for (var o = n.observers; o.length; )
407
+ o.shift().error(t);
408
+ }
409
+ });
410
+ }, r.prototype.complete = function() {
411
+ var t = this;
412
+ m(function() {
413
+ if (t._throwIfClosed(), !t.isStopped) {
414
+ t.isStopped = !0;
415
+ for (var n = t.observers; n.length; )
416
+ n.shift().complete();
417
+ }
418
+ });
419
+ }, r.prototype.unsubscribe = function() {
420
+ this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
421
+ }, Object.defineProperty(r.prototype, "observed", {
422
+ get: function() {
423
+ var t;
424
+ return ((t = this.observers) === null || t === void 0 ? void 0 : t.length) > 0;
425
+ },
426
+ enumerable: !1,
427
+ configurable: !0
428
+ }), r.prototype._trySubscribe = function(t) {
429
+ return this._throwIfClosed(), e.prototype._trySubscribe.call(this, t);
430
+ }, r.prototype._subscribe = function(t) {
431
+ return this._throwIfClosed(), this._checkFinalizedStatuses(t), this._innerSubscribe(t);
432
+ }, r.prototype._innerSubscribe = function(t) {
433
+ var n = this, o = this, i = o.hasError, s = o.isStopped, l = o.observers;
434
+ return i || s ? R : (this.currentObservers = null, l.push(t), new g(function() {
435
+ n.currentObservers = null, T(l, t);
436
+ }));
437
+ }, r.prototype._checkFinalizedStatuses = function(t) {
438
+ var n = this, o = n.hasError, i = n.thrownError, s = n.isStopped;
439
+ o ? t.error(i) : s && t.complete();
440
+ }, r.prototype.asObservable = function() {
441
+ var t = new B();
442
+ return t.source = this, t;
443
+ }, r.create = function(t, n) {
444
+ return new V(t, n);
445
+ }, r;
446
+ }(B), V = function(e) {
447
+ d(r, e);
448
+ function r(t, n) {
449
+ var o = e.call(this) || this;
450
+ return o.destination = t, o.source = n, o;
451
+ }
452
+ return r.prototype.next = function(t) {
453
+ var n, o;
454
+ (o = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || o === void 0 || o.call(n, t);
455
+ }, r.prototype.error = function(t) {
456
+ var n, o;
457
+ (o = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || o === void 0 || o.call(n, t);
458
+ }, r.prototype.complete = function() {
459
+ var t, n;
460
+ (n = (t = this.destination) === null || t === void 0 ? void 0 : t.complete) === null || n === void 0 || n.call(t);
461
+ }, r.prototype._subscribe = function(t) {
462
+ var n, o;
463
+ return (o = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t)) !== null && o !== void 0 ? o : R;
464
+ }, r;
465
+ }(Y), ut = function(e) {
466
+ d(r, e);
467
+ function r(t) {
468
+ var n = e.call(this) || this;
469
+ return n._value = t, n;
470
+ }
471
+ return Object.defineProperty(r.prototype, "value", {
472
+ get: function() {
473
+ return this.getValue();
474
+ },
475
+ enumerable: !1,
476
+ configurable: !0
477
+ }), r.prototype._subscribe = function(t) {
478
+ var n = e.prototype._subscribe.call(this, t);
479
+ return !n.closed && t.next(this._value), n;
480
+ }, r.prototype.getValue = function() {
481
+ var t = this, n = t.hasError, o = t.thrownError, i = t._value;
482
+ if (n)
483
+ throw o;
484
+ return this._throwIfClosed(), i;
485
+ }, r.prototype.next = function(t) {
486
+ e.prototype.next.call(this, this._value = t);
487
+ }, r;
488
+ }(Y), ct = Object.getOwnPropertyDescriptor, lt = (e, r, t, n) => {
489
+ for (var o = n > 1 ? void 0 : n ? ct(r, t) : r, i = e.length - 1, s; i >= 0; i--)
490
+ (s = e[i]) && (o = s(o) || o);
491
+ return o;
492
+ };
493
+ let H = class {
494
+ constructor(e) {
495
+ this.ngZone = e, this.stateSubject = new ut(null), this.state$ = this.stateSubject.asObservable();
496
+ }
497
+ init(e) {
498
+ this.ngZone.runOutsideAngular(() => {
499
+ this.engine = new Z({
500
+ ...e,
501
+ onStateChange: (r) => {
502
+ this.ngZone.run(() => this.stateSubject.next(r));
503
+ }
504
+ }), this.engine.loadModels();
505
+ });
506
+ }
507
+ attach(e) {
508
+ var r;
509
+ (r = this.engine) == null || r.attachVideo(e);
510
+ }
511
+ start() {
512
+ var e;
513
+ (e = this.engine) == null || e.start();
514
+ }
515
+ reset() {
516
+ var e;
517
+ (e = this.engine) == null || e.reset();
518
+ }
519
+ ngOnDestroy() {
520
+ var e;
521
+ (e = this.engine) == null || e.stop();
522
+ }
523
+ };
524
+ H = lt([
525
+ W({ providedIn: "root" })
526
+ ], H);
527
+ var pt = Object.defineProperty, ht = Object.getOwnPropertyDescriptor, u = (e, r, t, n) => {
528
+ for (var o = n > 1 ? void 0 : n ? ht(r, t) : r, i = e.length - 1, s; i >= 0; i--)
529
+ (s = e[i]) && (o = (n ? s(r, t, o) : s(o)) || o);
530
+ return n && o && pt(r, t, o), o;
531
+ };
532
+ let a = class {
533
+ constructor(e) {
534
+ this.liveness = e, this.duration = 60, this.containerClass = "", this.videoWrapperClass = "", this.videoClass = "", this.timerClass = "", this.stateClass = "", this.challengeTextClass = "", this.buttonClass = "", this.retryButtonClass = "", this.statusOverlayClass = "", this.successMessageClass = "", this.errorMessageClass = "", this.instructionBoxClass = "", this.successMessage = "Verification Successful!", this.errorMessage = "Verification failed. Please try again.", this.retryButtonLabel = "Try Again", this.startButtonLabel = "Start Verification", this.challengeMapping = {
535
+ Smile: "Smile",
536
+ Blink: "Blink",
537
+ Turn_Head: "Turn Head",
538
+ Thumbs_Up: "Thumbs Up"
539
+ // Default with a space
540
+ }, this.onComplete = new _(), this.onError = new _(), this.onStateChange = new _();
541
+ }
542
+ ngOnInit() {
543
+ this.liveness.state$.subscribe((e) => {
544
+ this.onStateChange.emit(e);
545
+ });
546
+ }
547
+ async ngAfterViewInit() {
548
+ try {
549
+ const e = await navigator.mediaDevices.getUserMedia({
550
+ video: { width: 640, height: 480, facingMode: "user" }
551
+ }), r = this.webcamRef.nativeElement;
552
+ r.srcObject = e, r.onloadedmetadata = () => {
553
+ r.play(), this.liveness.init({
554
+ apiUrl: this.apiUrl,
555
+ duration: this.duration,
556
+ smileThreshold: this.smileThreshold,
557
+ blinkThreshold: this.blinkThreshold,
558
+ minturnHeadThreshold: this.minturnHeadThreshold,
559
+ maxturnHeadThreshold: this.maxturnHeadThreshold,
560
+ onComplete: (t) => this.onComplete.emit(t),
561
+ onError: (t) => this.onError.emit(t)
562
+ }), this.liveness.attach(r);
563
+ };
564
+ } catch {
565
+ this.onError.emit({ success: !1, reason: "Camera access denied" });
566
+ }
567
+ }
568
+ ngOnDestroy() {
569
+ var r, t;
570
+ const e = (t = (r = this.webcamRef) == null ? void 0 : r.nativeElement) == null ? void 0 : t.srcObject;
571
+ e == null || e.getTracks().forEach((n) => n.stop());
572
+ }
573
+ };
574
+ u([
575
+ q("webcam")
576
+ ], a.prototype, "webcamRef", 2);
577
+ u([
578
+ c()
579
+ ], a.prototype, "apiUrl", 2);
580
+ u([
581
+ c()
582
+ ], a.prototype, "duration", 2);
583
+ u([
584
+ c()
585
+ ], a.prototype, "smileThreshold", 2);
586
+ u([
587
+ c()
588
+ ], a.prototype, "blinkThreshold", 2);
589
+ u([
590
+ c()
591
+ ], a.prototype, "minturnHeadThreshold", 2);
592
+ u([
593
+ c()
594
+ ], a.prototype, "maxturnHeadThreshold", 2);
595
+ u([
596
+ c()
597
+ ], a.prototype, "containerClass", 2);
598
+ u([
599
+ c()
600
+ ], a.prototype, "videoWrapperClass", 2);
601
+ u([
602
+ c()
603
+ ], a.prototype, "videoClass", 2);
604
+ u([
605
+ c()
606
+ ], a.prototype, "timerClass", 2);
607
+ u([
608
+ c()
609
+ ], a.prototype, "stateClass", 2);
610
+ u([
611
+ c()
612
+ ], a.prototype, "challengeTextClass", 2);
613
+ u([
614
+ c()
615
+ ], a.prototype, "buttonClass", 2);
616
+ u([
617
+ c()
618
+ ], a.prototype, "retryButtonClass", 2);
619
+ u([
620
+ c()
621
+ ], a.prototype, "statusOverlayClass", 2);
622
+ u([
623
+ c()
624
+ ], a.prototype, "successMessageClass", 2);
625
+ u([
626
+ c()
627
+ ], a.prototype, "errorMessageClass", 2);
628
+ u([
629
+ c()
630
+ ], a.prototype, "instructionBoxClass", 2);
631
+ u([
632
+ c()
633
+ ], a.prototype, "successMessage", 2);
634
+ u([
635
+ c()
636
+ ], a.prototype, "errorMessage", 2);
637
+ u([
638
+ c()
639
+ ], a.prototype, "retryButtonLabel", 2);
640
+ u([
641
+ c()
642
+ ], a.prototype, "startButtonLabel", 2);
643
+ u([
644
+ c()
645
+ ], a.prototype, "challengeMapping", 2);
646
+ u([
647
+ j()
648
+ ], a.prototype, "onComplete", 2);
649
+ u([
650
+ j()
651
+ ], a.prototype, "onError", 2);
652
+ u([
653
+ j()
654
+ ], a.prototype, "onStateChange", 2);
655
+ a = u([
656
+ G({
657
+ selector: "LivenessCheck",
658
+ standalone: !0,
659
+ // Make it standalone
660
+ imports: [K],
661
+ // Add CommonModule here to fix NG8002
662
+ templateUrl: "./liveness.component.html",
663
+ encapsulation: J.None
664
+ })
665
+ ], a);
3
666
  export {
4
- r as LivenessEngine,
5
- v as LivenessSDK,
6
- L as useLiveness,
7
- i as verifyLiveness
667
+ a as LivenessComponent,
668
+ Z as LivenessEngine,
669
+ H as LivenessService,
670
+ mt as verifyLiveness
8
671
  };