bry-biometric-collector 3.2.1 → 3.2.3-RC01
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/{DocumentCollector_3a227a66_3.2.1.js → DocumentCollector_bd5774d4_3.2.3-RC01.js} +145 -143
- package/dist/FaceCollector_7c86c909_3.2.3-RC01.js +2353 -0
- package/dist/{ValidationAlert_71ec43a1_3.2.1.js → ValidationAlert_015a3bac_3.2.3-RC01.js} +1 -1
- package/dist/{___vite-browser-external_commonjs-proxy_eec4c905_3.2.1.js → ___vite-browser-external_commonjs-proxy_cb6dfc58_3.2.3-RC01.js} +1 -1
- package/dist/bry-biometric-collector-main.js +2 -2
- package/dist/{fingersApi_c9ee3c26_3.2.1.js → fingersApi_1d1d0ae2_3.2.3-RC01.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{index_3331e50f_3.2.1.js → index_8dec0329_3.2.3-RC01.js} +3 -3
- package/dist/{index_3e3b803e_3.2.1.js → index_fd9c2bdb_3.2.3-RC01.js} +3 -3
- package/dist/{main_f7bde95f_3.2.1.js → main_64b650bb_3.2.3-RC01.js} +34 -35
- package/package.json +1 -1
- package/dist/FaceCollector_aee737a8_3.2.1.js +0 -2350
- /package/dist/{en-us_e83efd5d_3.2.1.js → en-us_e83efd5d_3.2.3-RC01.js} +0 -0
- /package/dist/{es-cl_5939150a_3.2.1.js → es-cl_5939150a_3.2.3-RC01.js} +0 -0
- /package/dist/{face_api_0e3ce8c8_3.2.1.js → face_api_0e3ce8c8_3.2.3-RC01.js} +0 -0
- /package/dist/{index-idlf-detector_39cfdffa_3.2.1.js → index-idlf-detector_39cfdffa_3.2.3-RC01.js} +0 -0
- /package/dist/{index-idlf-detector_a819b3c8_3.2.1.js → index-idlf-detector_a819b3c8_3.2.3-RC01.js} +0 -0
- /package/dist/{pt-br_fae15356_3.2.1.js → pt-br_fae15356_3.2.3-RC01.js} +0 -0
|
@@ -0,0 +1,2353 @@
|
|
|
1
|
+
import { w as jt, S as ft, q as dt, r as ht, t as mt, x as T, y as j, z as w, B as G, C as d, D as H, E as Ke, G as X, H as ze, I as R, J as O, K as We, L as je, M as ce, N as g, O as fe, P as de, Q as he, R as K, T as U, U as N, V as Ki, $ as zi, W as Hi, X as J, Y as Ts, Z as Ve, _ as P, a0 as He, a1 as zt, a2 as b, a3 as B, a4 as Ft, a5 as $e, a6 as Os, a7 as et, a8 as ge, a9 as Rs, aa as Oe, ab as bi, ac as St, ad as vi, ae as Is, af as Be, ag as we, ah as Ds, ai as As, aj as Nt, ak as Pt, al as ue, am as te, an as Ce, ao as pi, ap as tt, aq as Wt, ar as Ls, as as it, at as wi, au as Ci, av as Fs, aw as Ss, ax as Ns, ay as Ps, az as Ws, aA as Bs, aB as Bt, aC as z, j as ct, aD as Mt, aE as Ms, aF as Ei, aG as Us, aH as st, aI as ot, aJ as yi, aK as Vs, aL as at, A as Ut, aM as Ee, aN as js, aO as Me, aP as Ks, aQ as ki, d as Re, aR as Vt, aS as nt, aT as zs, aU as Hs, aV as qs, aW as Js, aX as Qs, aY as Xs, aZ as Gs, a_ as Ue, a$ as Ys, b0 as Zs, b1 as lt, b2 as ne, b3 as _t, b4 as xs, b5 as $s, b6 as eo, b7 as to, b8 as rt, b9 as ae, ba as io, bb as so, bc as Ti, bd as qi, be as ut, bf as oo } from "./main_64b650bb_3.2.3-RC01.js";
|
|
2
|
+
import { W as ao, C as no, V as lo, a as ro } from "./ValidationAlert_015a3bac_3.2.3-RC01.js";
|
|
3
|
+
import { detectSingleFace as co, matchDimensions as uo, resizeResults as fo } from "./face_api_0e3ce8c8_3.2.3-RC01.js";
|
|
4
|
+
const Kt = jt(!1);
|
|
5
|
+
class ho {
|
|
6
|
+
isDevToolsOpen = !1;
|
|
7
|
+
detectionCount = 0;
|
|
8
|
+
checkSizeTimeout = null;
|
|
9
|
+
detectionInterval = null;
|
|
10
|
+
detectDevToolsBySize() {
|
|
11
|
+
const e = window.outerWidth - window.innerWidth > 200, t = window.outerHeight - window.innerHeight > 200;
|
|
12
|
+
return e || t;
|
|
13
|
+
}
|
|
14
|
+
checkForDevTools = () => {
|
|
15
|
+
this.detectDevToolsBySize() ? (this.detectionCount++, this.detectionCount >= 2 && !this.isDevToolsOpen && (this.isDevToolsOpen = !0, Kt.set(this.isDevToolsOpen))) : (this.detectionCount = 0, this.isDevToolsOpen && (this.isDevToolsOpen = !1, Kt.set(this.isDevToolsOpen)));
|
|
16
|
+
};
|
|
17
|
+
startDetection() {
|
|
18
|
+
this.stopDetection(), window.addEventListener("resize", () => {
|
|
19
|
+
this.checkSizeTimeout && clearTimeout(this.checkSizeTimeout), this.checkSizeTimeout = window.setTimeout(this.checkForDevTools, 500);
|
|
20
|
+
}), window.addEventListener("focus", () => setTimeout(this.checkForDevTools, 300)), this.detectionInterval = window.setInterval(this.checkForDevTools, 1e3), this.checkForDevTools();
|
|
21
|
+
}
|
|
22
|
+
stopDetection() {
|
|
23
|
+
this.detectionInterval && (clearInterval(this.detectionInterval), this.detectionInterval = null), this.checkSizeTimeout && (clearTimeout(this.checkSizeTimeout), this.checkSizeTimeout = null);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function Oi(i) {
|
|
27
|
+
let e, t;
|
|
28
|
+
return e = new ao({}), {
|
|
29
|
+
c() {
|
|
30
|
+
fe(e.$$.fragment);
|
|
31
|
+
},
|
|
32
|
+
m(o, a) {
|
|
33
|
+
de(e, o, a), t = !0;
|
|
34
|
+
},
|
|
35
|
+
i(o) {
|
|
36
|
+
t || (H(e.$$.fragment, o), t = !0);
|
|
37
|
+
},
|
|
38
|
+
o(o) {
|
|
39
|
+
X(e.$$.fragment, o), t = !1;
|
|
40
|
+
},
|
|
41
|
+
d(o) {
|
|
42
|
+
he(e, o);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function mo(i) {
|
|
47
|
+
let e, t, o, a = (
|
|
48
|
+
/*showWatermark*/
|
|
49
|
+
i[1] && Oi()
|
|
50
|
+
);
|
|
51
|
+
return {
|
|
52
|
+
c() {
|
|
53
|
+
e = w("div"), a && a.c(), this.c = G, d(e, "id", "face-oval"), d(e, "class", t = "loader " + /*loading*/
|
|
54
|
+
(i[0] ? "loading" : "") + " z-10"), d(
|
|
55
|
+
e,
|
|
56
|
+
"style",
|
|
57
|
+
/*styleVars*/
|
|
58
|
+
i[2]
|
|
59
|
+
);
|
|
60
|
+
},
|
|
61
|
+
m(r, l) {
|
|
62
|
+
T(r, e, l), a && a.m(e, null), o = !0;
|
|
63
|
+
},
|
|
64
|
+
p(r, [l]) {
|
|
65
|
+
/*showWatermark*/
|
|
66
|
+
r[1] ? a ? l & /*showWatermark*/
|
|
67
|
+
2 && H(a, 1) : (a = Oi(), a.c(), H(a, 1), a.m(e, null)) : a && (Ke(), X(a, 1, 1, () => {
|
|
68
|
+
a = null;
|
|
69
|
+
}), ze()), (!o || l & /*loading*/
|
|
70
|
+
1 && t !== (t = "loader " + /*loading*/
|
|
71
|
+
(r[0] ? "loading" : "") + " z-10")) && d(e, "class", t), (!o || l & /*styleVars*/
|
|
72
|
+
4) && d(
|
|
73
|
+
e,
|
|
74
|
+
"style",
|
|
75
|
+
/*styleVars*/
|
|
76
|
+
r[2]
|
|
77
|
+
);
|
|
78
|
+
},
|
|
79
|
+
i(r) {
|
|
80
|
+
o || (H(a), o = !0);
|
|
81
|
+
},
|
|
82
|
+
o(r) {
|
|
83
|
+
X(a), o = !1;
|
|
84
|
+
},
|
|
85
|
+
d(r) {
|
|
86
|
+
r && R(e), a && a.d();
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
const _o = "hsl(var(--p))", go = "hsl(var(--su))";
|
|
91
|
+
function bo(i, e, t) {
|
|
92
|
+
let o, a, r;
|
|
93
|
+
O(i, We, (_) => t(8, a = _)), O(i, je, (_) => t(9, r = _));
|
|
94
|
+
let { loading: l } = e, { showWatermark: n } = e, u, f, c = 0.8, h = 8, m = 0.15;
|
|
95
|
+
return ce() && (c = 0.65, h = 10, m = 0.25), i.$$set = (_) => {
|
|
96
|
+
"loading" in _ && t(0, l = _.loading), "showWatermark" in _ && t(1, n = _.showWatermark);
|
|
97
|
+
}, i.$$.update = () => {
|
|
98
|
+
if (i.$$.dirty & /*$videoStore, percentage, ovalHeight, ovalWidth, $ovalDimensions, captureBarPercentage*/
|
|
99
|
+
952 && r) {
|
|
100
|
+
t(4, f = r.videoHeight * c), t(3, u = f / 1.45), g(We, a.width = u, a), g(We, a.height = f, a), g(We, a.x = (r.videoWidth - a.width) / 2, a);
|
|
101
|
+
let _ = r.videoHeight - r.videoHeight * m;
|
|
102
|
+
g(We, a.y = _ - a.height, a);
|
|
103
|
+
}
|
|
104
|
+
i.$$.dirty & /*ovalWidth, ovalHeight, borderWidth*/
|
|
105
|
+
88 && t(2, o = `
|
|
106
|
+
--oval-width: ${u}px;
|
|
107
|
+
--oval-height: ${f}px;
|
|
108
|
+
--border-color: ${_o};
|
|
109
|
+
--border-color-animation: ${go};
|
|
110
|
+
--oval-border: ${h}px;
|
|
111
|
+
`);
|
|
112
|
+
}, [
|
|
113
|
+
l,
|
|
114
|
+
n,
|
|
115
|
+
o,
|
|
116
|
+
u,
|
|
117
|
+
f,
|
|
118
|
+
c,
|
|
119
|
+
h,
|
|
120
|
+
m,
|
|
121
|
+
a,
|
|
122
|
+
r
|
|
123
|
+
];
|
|
124
|
+
}
|
|
125
|
+
class Ji extends ft {
|
|
126
|
+
constructor(e) {
|
|
127
|
+
super(), dt(
|
|
128
|
+
this,
|
|
129
|
+
{
|
|
130
|
+
target: this.shadowRoot,
|
|
131
|
+
props: mt(this.attributes),
|
|
132
|
+
customElement: !0
|
|
133
|
+
},
|
|
134
|
+
bo,
|
|
135
|
+
mo,
|
|
136
|
+
ht,
|
|
137
|
+
{ loading: 0, showWatermark: 1 },
|
|
138
|
+
null
|
|
139
|
+
), e && (e.target && T(e.target, this, e.anchor), e.props && (this.$set(e.props), j()));
|
|
140
|
+
}
|
|
141
|
+
static get observedAttributes() {
|
|
142
|
+
return ["loading", "showWatermark"];
|
|
143
|
+
}
|
|
144
|
+
get loading() {
|
|
145
|
+
return this.$$.ctx[0];
|
|
146
|
+
}
|
|
147
|
+
set loading(e) {
|
|
148
|
+
this.$$set({ loading: e }), j();
|
|
149
|
+
}
|
|
150
|
+
get showWatermark() {
|
|
151
|
+
return this.$$.ctx[1];
|
|
152
|
+
}
|
|
153
|
+
set showWatermark(e) {
|
|
154
|
+
this.$$set({ showWatermark: e }), j();
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
customElements.define("face-oval", Ji);
|
|
158
|
+
function vo(i) {
|
|
159
|
+
let e;
|
|
160
|
+
return {
|
|
161
|
+
c() {
|
|
162
|
+
e = w("div"), this.c = G, d(e, "class", "video-overlay z-0"), d(
|
|
163
|
+
e,
|
|
164
|
+
"style",
|
|
165
|
+
/*styleVars*/
|
|
166
|
+
i[0]
|
|
167
|
+
);
|
|
168
|
+
},
|
|
169
|
+
m(t, o) {
|
|
170
|
+
T(t, e, o);
|
|
171
|
+
},
|
|
172
|
+
p(t, [o]) {
|
|
173
|
+
o & /*styleVars*/
|
|
174
|
+
1 && d(
|
|
175
|
+
e,
|
|
176
|
+
"style",
|
|
177
|
+
/*styleVars*/
|
|
178
|
+
t[0]
|
|
179
|
+
);
|
|
180
|
+
},
|
|
181
|
+
i: G,
|
|
182
|
+
o: G,
|
|
183
|
+
d(t) {
|
|
184
|
+
t && R(e);
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
function po(i, e, t) {
|
|
189
|
+
let o, a;
|
|
190
|
+
O(i, je, (c) => t(6, a = c));
|
|
191
|
+
let r, l, n = 0.8, { overlayColor: u } = e, { overlayTransparency: f } = e;
|
|
192
|
+
return ce() && (n = 0.65), i.$$set = (c) => {
|
|
193
|
+
"overlayColor" in c && t(1, u = c.overlayColor), "overlayTransparency" in c && t(2, f = c.overlayTransparency);
|
|
194
|
+
}, i.$$.update = () => {
|
|
195
|
+
i.$$.dirty & /*$videoStore, percentage, ovalHeight*/
|
|
196
|
+
112 && a && (t(4, l = a.videoHeight * n), t(3, r = l / 1.45)), i.$$.dirty & /*ovalWidth, ovalHeight, overlayColor, overlayTransparency*/
|
|
197
|
+
30 && t(0, o = `
|
|
198
|
+
--oval-width: ${r}px;
|
|
199
|
+
--oval-height: ${l}px;
|
|
200
|
+
--overlay-color: ${u};
|
|
201
|
+
--overlay-transparency: ${f};
|
|
202
|
+
`);
|
|
203
|
+
}, [
|
|
204
|
+
o,
|
|
205
|
+
u,
|
|
206
|
+
f,
|
|
207
|
+
r,
|
|
208
|
+
l,
|
|
209
|
+
n,
|
|
210
|
+
a
|
|
211
|
+
];
|
|
212
|
+
}
|
|
213
|
+
class Qi extends ft {
|
|
214
|
+
constructor(e) {
|
|
215
|
+
super(), dt(
|
|
216
|
+
this,
|
|
217
|
+
{
|
|
218
|
+
target: this.shadowRoot,
|
|
219
|
+
props: mt(this.attributes),
|
|
220
|
+
customElement: !0
|
|
221
|
+
},
|
|
222
|
+
po,
|
|
223
|
+
vo,
|
|
224
|
+
ht,
|
|
225
|
+
{ overlayColor: 1, overlayTransparency: 2 },
|
|
226
|
+
null
|
|
227
|
+
), e && (e.target && T(e.target, this, e.anchor), e.props && (this.$set(e.props), j()));
|
|
228
|
+
}
|
|
229
|
+
static get observedAttributes() {
|
|
230
|
+
return ["overlayColor", "overlayTransparency"];
|
|
231
|
+
}
|
|
232
|
+
get overlayColor() {
|
|
233
|
+
return this.$$.ctx[1];
|
|
234
|
+
}
|
|
235
|
+
set overlayColor(e) {
|
|
236
|
+
this.$$set({ overlayColor: e }), j();
|
|
237
|
+
}
|
|
238
|
+
get overlayTransparency() {
|
|
239
|
+
return this.$$.ctx[2];
|
|
240
|
+
}
|
|
241
|
+
set overlayTransparency(e) {
|
|
242
|
+
this.$$set({ overlayTransparency: e }), j();
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
customElements.define("overlay-oval", Qi);
|
|
246
|
+
function Ri(i) {
|
|
247
|
+
let e, t, o, a, r, l, n = (
|
|
248
|
+
/*$_*/
|
|
249
|
+
i[2]("faceCollector.obtainingPicture") + ""
|
|
250
|
+
), u;
|
|
251
|
+
return {
|
|
252
|
+
c() {
|
|
253
|
+
e = w("slot"), t = w("div"), o = w("img"), r = N(), l = w("span"), u = P(n), He(o.src, a = zt) || d(o, "src", a), d(o, "alt", "loading gif"), d(o, "class", "m-auto h-[10em] lg:h-[12em]"), d(l, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center"), d(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), d(e, "name", "loading-camera-gif"), d(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
|
|
254
|
+
},
|
|
255
|
+
m(f, c) {
|
|
256
|
+
T(f, e, c), b(e, t), b(t, o), b(t, r), b(t, l), b(l, u);
|
|
257
|
+
},
|
|
258
|
+
p(f, c) {
|
|
259
|
+
c & /*$_*/
|
|
260
|
+
4 && n !== (n = /*$_*/
|
|
261
|
+
f[2]("faceCollector.obtainingPicture") + "") && B(u, n);
|
|
262
|
+
},
|
|
263
|
+
d(f) {
|
|
264
|
+
f && R(e);
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
function Ii(i) {
|
|
269
|
+
let e, t, o, a, r, l;
|
|
270
|
+
function n(c, h) {
|
|
271
|
+
return (
|
|
272
|
+
/*$isLoading*/
|
|
273
|
+
c[5] ? Co : wo
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
let u = n(i), f = u(i);
|
|
277
|
+
return {
|
|
278
|
+
c() {
|
|
279
|
+
e = w("div"), t = w("slot"), o = w("div"), a = w("img"), l = N(), f.c(), He(a.src, r = zt) || d(a, "src", r), d(a, "alt", "loading gif"), d(a, "class", "m-auto h-[10em] lg:h-[12em]"), d(o, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), d(t, "name", "loading-camera-gif"), d(t, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]"), d(e, "class", "bg-white absolute inset-0 z-10 flex items-center justify-center");
|
|
280
|
+
},
|
|
281
|
+
m(c, h) {
|
|
282
|
+
T(c, e, h), b(e, t), b(t, o), b(o, a), b(o, l), f.m(o, null);
|
|
283
|
+
},
|
|
284
|
+
p(c, h) {
|
|
285
|
+
u === (u = n(c)) && f ? f.p(c, h) : (f.d(1), f = u(c), f && (f.c(), f.m(o, null)));
|
|
286
|
+
},
|
|
287
|
+
d(c) {
|
|
288
|
+
c && R(e), f.d();
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
function wo(i) {
|
|
293
|
+
let e, t = (
|
|
294
|
+
/*$_*/
|
|
295
|
+
i[2]("faceCollector.obtainingPicture") + ""
|
|
296
|
+
), o;
|
|
297
|
+
return {
|
|
298
|
+
c() {
|
|
299
|
+
e = w("span"), o = P(t), d(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
|
300
|
+
},
|
|
301
|
+
m(a, r) {
|
|
302
|
+
T(a, e, r), b(e, o);
|
|
303
|
+
},
|
|
304
|
+
p(a, r) {
|
|
305
|
+
r & /*$_*/
|
|
306
|
+
4 && t !== (t = /*$_*/
|
|
307
|
+
a[2]("faceCollector.obtainingPicture") + "") && B(o, t);
|
|
308
|
+
},
|
|
309
|
+
d(a) {
|
|
310
|
+
a && R(e);
|
|
311
|
+
}
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
function Co(i) {
|
|
315
|
+
let e;
|
|
316
|
+
return {
|
|
317
|
+
c() {
|
|
318
|
+
e = w("span"), e.textContent = "Obtaining photo...", d(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
|
319
|
+
},
|
|
320
|
+
m(t, o) {
|
|
321
|
+
T(t, e, o);
|
|
322
|
+
},
|
|
323
|
+
p: G,
|
|
324
|
+
d(t) {
|
|
325
|
+
t && R(e);
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
function Di(i) {
|
|
330
|
+
let e, t, o, a, r;
|
|
331
|
+
function l(f, c) {
|
|
332
|
+
return (
|
|
333
|
+
/*$isLoading*/
|
|
334
|
+
f[5] ? yo : Eo
|
|
335
|
+
);
|
|
336
|
+
}
|
|
337
|
+
let n = l(i), u = n(i);
|
|
338
|
+
return {
|
|
339
|
+
c() {
|
|
340
|
+
e = w("slot"), t = w("div"), o = w("img"), r = N(), u.c(), He(o.src, a = zt) || d(o, "src", a), d(o, "alt", "loading gif"), d(o, "class", "m-auto h-[10em] lg:h-[12em]"), d(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), d(e, "name", "loading-camera-gif"), d(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
|
|
341
|
+
},
|
|
342
|
+
m(f, c) {
|
|
343
|
+
T(f, e, c), b(e, t), b(t, o), b(t, r), u.m(t, null);
|
|
344
|
+
},
|
|
345
|
+
p(f, c) {
|
|
346
|
+
n === (n = l(f)) && u ? u.p(f, c) : (u.d(1), u = n(f), u && (u.c(), u.m(t, null)));
|
|
347
|
+
},
|
|
348
|
+
d(f) {
|
|
349
|
+
f && R(e), u.d();
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
function Eo(i) {
|
|
354
|
+
let e, t = (
|
|
355
|
+
/*$_*/
|
|
356
|
+
i[2]("faceCollector.initiatingCamera") + ""
|
|
357
|
+
), o;
|
|
358
|
+
return {
|
|
359
|
+
c() {
|
|
360
|
+
e = w("span"), o = P(t), d(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
|
361
|
+
},
|
|
362
|
+
m(a, r) {
|
|
363
|
+
T(a, e, r), b(e, o);
|
|
364
|
+
},
|
|
365
|
+
p(a, r) {
|
|
366
|
+
r & /*$_*/
|
|
367
|
+
4 && t !== (t = /*$_*/
|
|
368
|
+
a[2]("faceCollector.initiatingCamera") + "") && B(o, t);
|
|
369
|
+
},
|
|
370
|
+
d(a) {
|
|
371
|
+
a && R(e);
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
function yo(i) {
|
|
376
|
+
let e;
|
|
377
|
+
return {
|
|
378
|
+
c() {
|
|
379
|
+
e = w("span"), e.textContent = "Loading camera...", d(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
|
380
|
+
},
|
|
381
|
+
m(t, o) {
|
|
382
|
+
T(t, e, o);
|
|
383
|
+
},
|
|
384
|
+
p: G,
|
|
385
|
+
d(t) {
|
|
386
|
+
t && R(e);
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
function ko(i) {
|
|
391
|
+
let e = K() && /*waitingIdrndCaptureEvent*/
|
|
392
|
+
i[0], t, o, a = (K() && /*idrndLoading*/
|
|
393
|
+
(i[1] || !/*$ready*/
|
|
394
|
+
i[6]) || !K() && !/*$ready*/
|
|
395
|
+
i[6]) && /*$cameraStatusStore*/
|
|
396
|
+
i[4] === U.OK, r, l = e && Ri(i), n = (
|
|
397
|
+
/*$detectingFace*/
|
|
398
|
+
i[3] && /*$cameraStatusStore*/
|
|
399
|
+
i[4] === U.OK && Ii(i)
|
|
400
|
+
), u = a && Di(i);
|
|
401
|
+
return {
|
|
402
|
+
c() {
|
|
403
|
+
l && l.c(), t = N(), n && n.c(), o = N(), u && u.c(), r = Ki(), this.c = G;
|
|
404
|
+
},
|
|
405
|
+
m(f, c) {
|
|
406
|
+
l && l.m(f, c), T(f, t, c), n && n.m(f, c), T(f, o, c), u && u.m(f, c), T(f, r, c);
|
|
407
|
+
},
|
|
408
|
+
p(f, [c]) {
|
|
409
|
+
c & /*waitingIdrndCaptureEvent*/
|
|
410
|
+
1 && (e = K() && /*waitingIdrndCaptureEvent*/
|
|
411
|
+
f[0]), e ? l ? l.p(f, c) : (l = Ri(f), l.c(), l.m(t.parentNode, t)) : l && (l.d(1), l = null), /*$detectingFace*/
|
|
412
|
+
f[3] && /*$cameraStatusStore*/
|
|
413
|
+
f[4] === U.OK ? n ? n.p(f, c) : (n = Ii(f), n.c(), n.m(o.parentNode, o)) : n && (n.d(1), n = null), c & /*idrndLoading, $ready, $cameraStatusStore*/
|
|
414
|
+
82 && (a = (K() && /*idrndLoading*/
|
|
415
|
+
(f[1] || !/*$ready*/
|
|
416
|
+
f[6]) || !K() && !/*$ready*/
|
|
417
|
+
f[6]) && /*$cameraStatusStore*/
|
|
418
|
+
f[4] === U.OK), a ? u ? u.p(f, c) : (u = Di(f), u.c(), u.m(r.parentNode, r)) : u && (u.d(1), u = null);
|
|
419
|
+
},
|
|
420
|
+
i: G,
|
|
421
|
+
o: G,
|
|
422
|
+
d(f) {
|
|
423
|
+
l && l.d(f), f && R(t), n && n.d(f), f && R(o), u && u.d(f), f && R(r);
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
function To(i, e, t) {
|
|
428
|
+
let o, a, r, l, n;
|
|
429
|
+
O(i, zi, (c) => t(2, o = c)), O(i, Hi, (c) => t(3, a = c)), O(i, J, (c) => t(4, r = c)), O(i, Ts, (c) => t(5, l = c)), O(i, Ve, (c) => t(6, n = c));
|
|
430
|
+
let { waitingIdrndCaptureEvent: u } = e, { idrndLoading: f } = e;
|
|
431
|
+
return i.$$set = (c) => {
|
|
432
|
+
"waitingIdrndCaptureEvent" in c && t(0, u = c.waitingIdrndCaptureEvent), "idrndLoading" in c && t(1, f = c.idrndLoading);
|
|
433
|
+
}, [
|
|
434
|
+
u,
|
|
435
|
+
f,
|
|
436
|
+
o,
|
|
437
|
+
a,
|
|
438
|
+
r,
|
|
439
|
+
l,
|
|
440
|
+
n
|
|
441
|
+
];
|
|
442
|
+
}
|
|
443
|
+
class Xi extends ft {
|
|
444
|
+
constructor(e) {
|
|
445
|
+
super(), dt(
|
|
446
|
+
this,
|
|
447
|
+
{
|
|
448
|
+
target: this.shadowRoot,
|
|
449
|
+
props: mt(this.attributes),
|
|
450
|
+
customElement: !0
|
|
451
|
+
},
|
|
452
|
+
To,
|
|
453
|
+
ko,
|
|
454
|
+
ht,
|
|
455
|
+
{
|
|
456
|
+
waitingIdrndCaptureEvent: 0,
|
|
457
|
+
idrndLoading: 1
|
|
458
|
+
},
|
|
459
|
+
null
|
|
460
|
+
), e && (e.target && T(e.target, this, e.anchor), e.props && (this.$set(e.props), j()));
|
|
461
|
+
}
|
|
462
|
+
static get observedAttributes() {
|
|
463
|
+
return ["waitingIdrndCaptureEvent", "idrndLoading"];
|
|
464
|
+
}
|
|
465
|
+
get waitingIdrndCaptureEvent() {
|
|
466
|
+
return this.$$.ctx[0];
|
|
467
|
+
}
|
|
468
|
+
set waitingIdrndCaptureEvent(e) {
|
|
469
|
+
this.$$set({ waitingIdrndCaptureEvent: e }), j();
|
|
470
|
+
}
|
|
471
|
+
get idrndLoading() {
|
|
472
|
+
return this.$$.ctx[1];
|
|
473
|
+
}
|
|
474
|
+
set idrndLoading(e) {
|
|
475
|
+
this.$$set({ idrndLoading: e }), j();
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
customElements.define("loading-component", Xi);
|
|
479
|
+
function Ai(i, e, t) {
|
|
480
|
+
const o = i.slice();
|
|
481
|
+
return o[120] = e[t], o;
|
|
482
|
+
}
|
|
483
|
+
function Li(i, e, t) {
|
|
484
|
+
const o = i.slice();
|
|
485
|
+
return o[120] = e[t], o;
|
|
486
|
+
}
|
|
487
|
+
function Fi(i) {
|
|
488
|
+
let e, t, o = K(), a, r, l, n, u, f, c, h, m, _, k, p, v, E, I, L, Y, oe = o && Oo(i), q = (
|
|
489
|
+
/*$ready*/
|
|
490
|
+
i[22] && !/*$detectingFace*/
|
|
491
|
+
i[26] && Si(i)
|
|
492
|
+
);
|
|
493
|
+
return _ = new Zs({}), p = new no({
|
|
494
|
+
props: {
|
|
495
|
+
showConfigButton: (
|
|
496
|
+
/*showConfigButton*/
|
|
497
|
+
i[4]
|
|
498
|
+
),
|
|
499
|
+
showAutoCaptureButton: (
|
|
500
|
+
/*showAutoCaptureButton*/
|
|
501
|
+
i[5]
|
|
502
|
+
),
|
|
503
|
+
showCaptureButton: (
|
|
504
|
+
/*showCaptureButton*/
|
|
505
|
+
i[0]
|
|
506
|
+
),
|
|
507
|
+
showCameraButton: (
|
|
508
|
+
/*showCameraButton*/
|
|
509
|
+
i[6]
|
|
510
|
+
),
|
|
511
|
+
enableCaptureButton: (
|
|
512
|
+
/*enableCaptureButton*/
|
|
513
|
+
i[16]
|
|
514
|
+
),
|
|
515
|
+
videoOverlay: (
|
|
516
|
+
/*videoOverlay*/
|
|
517
|
+
i[9]
|
|
518
|
+
),
|
|
519
|
+
videoOverlayTransparency: (
|
|
520
|
+
/*videoOverlayTransparency*/
|
|
521
|
+
i[10]
|
|
522
|
+
),
|
|
523
|
+
idrndClosed: (
|
|
524
|
+
/*idrndClosed*/
|
|
525
|
+
i[18]
|
|
526
|
+
),
|
|
527
|
+
idrndLoading: (
|
|
528
|
+
/*idrndLoading*/
|
|
529
|
+
i[17]
|
|
530
|
+
),
|
|
531
|
+
waitingIdrndCaptureEvent: (
|
|
532
|
+
/*waitingIdrndCaptureEvent*/
|
|
533
|
+
i[19]
|
|
534
|
+
),
|
|
535
|
+
handler: (
|
|
536
|
+
/*capture*/
|
|
537
|
+
i[38]
|
|
538
|
+
)
|
|
539
|
+
}
|
|
540
|
+
}), {
|
|
541
|
+
c() {
|
|
542
|
+
e = w("div"), t = w("div"), oe && oe.c(), a = N(), r = w("video"), n = N(), u = w("canvas"), f = N(), c = w("div"), h = w("div"), q && q.c(), m = N(), fe(_.$$.fragment), k = N(), fe(p.$$.fragment), d(r, "id", "bry-cc-camera-video-tag"), d(r, "class", l = /*$ready*/
|
|
543
|
+
i[22] ? ce() ? "absolute inset-0 -scale-x-100" : "w-full h-full object-cover -scale-x-100" : "w-0 h-0"), r.playsInline = !0, r.muted = !0, r.autoplay = !0, d(u, "id", "bry-ce-detectionsCanvas"), d(u, "class", "absolute top-0 left-0 max-w-full -scale-x-100"), d(t, "class", "overflow-hidden"), lt(
|
|
544
|
+
t,
|
|
545
|
+
"width",
|
|
546
|
+
/*$videoStore*/
|
|
547
|
+
i[25].videoWidth + "px"
|
|
548
|
+
), lt(
|
|
549
|
+
t,
|
|
550
|
+
"height",
|
|
551
|
+
/*$videoStore*/
|
|
552
|
+
i[25].videoHeight + "px"
|
|
553
|
+
), d(h, "class", "flex flex-grow w-full items-center justify-center relative"), d(c, "class", "absolute inset-0 flex flex-col items-center justify-between w-full h-full"), d(e, "class", v = /*$ready*/
|
|
554
|
+
i[22] ? "relative" : "relative w-0 h-0"), e.hidden = E = /*$cameraStatusStore*/
|
|
555
|
+
i[21] !== U.OK || K() && /*idrndLoading*/
|
|
556
|
+
(i[17] || /*idrndClosed*/
|
|
557
|
+
i[18] || /*waitingIdrndCaptureEvent*/
|
|
558
|
+
i[19]);
|
|
559
|
+
},
|
|
560
|
+
m(D, M) {
|
|
561
|
+
T(D, e, M), b(e, t), oe && oe.m(t, null), b(t, a), b(t, r), i[49](r), b(t, n), b(t, u), i[51](u), b(e, f), b(e, c), b(c, h), q && q.m(h, null), b(c, m), de(_, c, null), b(c, k), de(p, c, null), I = !0, L || (Y = [
|
|
562
|
+
ne(
|
|
563
|
+
r,
|
|
564
|
+
"canplay",
|
|
565
|
+
/*canplay_handler*/
|
|
566
|
+
i[50]
|
|
567
|
+
),
|
|
568
|
+
ne(
|
|
569
|
+
r,
|
|
570
|
+
"play",
|
|
571
|
+
/*play*/
|
|
572
|
+
i[11],
|
|
573
|
+
{ once: !0 }
|
|
574
|
+
)
|
|
575
|
+
], L = !0);
|
|
576
|
+
},
|
|
577
|
+
p(D, M) {
|
|
578
|
+
o && oe.p(D, M), (!I || M[0] & /*$ready*/
|
|
579
|
+
4194304 && l !== (l = /*$ready*/
|
|
580
|
+
D[22] ? ce() ? "absolute inset-0 -scale-x-100" : "w-full h-full object-cover -scale-x-100" : "w-0 h-0")) && d(r, "class", l), (!I || M[0] & /*$videoStore*/
|
|
581
|
+
33554432) && lt(
|
|
582
|
+
t,
|
|
583
|
+
"width",
|
|
584
|
+
/*$videoStore*/
|
|
585
|
+
D[25].videoWidth + "px"
|
|
586
|
+
), (!I || M[0] & /*$videoStore*/
|
|
587
|
+
33554432) && lt(
|
|
588
|
+
t,
|
|
589
|
+
"height",
|
|
590
|
+
/*$videoStore*/
|
|
591
|
+
D[25].videoHeight + "px"
|
|
592
|
+
), /*$ready*/
|
|
593
|
+
D[22] && !/*$detectingFace*/
|
|
594
|
+
D[26] ? q ? (q.p(D, M), M[0] & /*$ready, $detectingFace*/
|
|
595
|
+
71303168 && H(q, 1)) : (q = Si(D), q.c(), H(q, 1), q.m(h, null)) : q && (Ke(), X(q, 1, 1, () => {
|
|
596
|
+
q = null;
|
|
597
|
+
}), ze());
|
|
598
|
+
const S = {};
|
|
599
|
+
M[0] & /*showConfigButton*/
|
|
600
|
+
16 && (S.showConfigButton = /*showConfigButton*/
|
|
601
|
+
D[4]), M[0] & /*showAutoCaptureButton*/
|
|
602
|
+
32 && (S.showAutoCaptureButton = /*showAutoCaptureButton*/
|
|
603
|
+
D[5]), M[0] & /*showCaptureButton*/
|
|
604
|
+
1 && (S.showCaptureButton = /*showCaptureButton*/
|
|
605
|
+
D[0]), M[0] & /*showCameraButton*/
|
|
606
|
+
64 && (S.showCameraButton = /*showCameraButton*/
|
|
607
|
+
D[6]), M[0] & /*enableCaptureButton*/
|
|
608
|
+
65536 && (S.enableCaptureButton = /*enableCaptureButton*/
|
|
609
|
+
D[16]), M[0] & /*videoOverlay*/
|
|
610
|
+
512 && (S.videoOverlay = /*videoOverlay*/
|
|
611
|
+
D[9]), M[0] & /*videoOverlayTransparency*/
|
|
612
|
+
1024 && (S.videoOverlayTransparency = /*videoOverlayTransparency*/
|
|
613
|
+
D[10]), M[0] & /*idrndClosed*/
|
|
614
|
+
262144 && (S.idrndClosed = /*idrndClosed*/
|
|
615
|
+
D[18]), M[0] & /*idrndLoading*/
|
|
616
|
+
131072 && (S.idrndLoading = /*idrndLoading*/
|
|
617
|
+
D[17]), M[0] & /*waitingIdrndCaptureEvent*/
|
|
618
|
+
524288 && (S.waitingIdrndCaptureEvent = /*waitingIdrndCaptureEvent*/
|
|
619
|
+
D[19]), p.$set(S), (!I || M[0] & /*$ready*/
|
|
620
|
+
4194304 && v !== (v = /*$ready*/
|
|
621
|
+
D[22] ? "relative" : "relative w-0 h-0")) && d(e, "class", v), (!I || M[0] & /*$cameraStatusStore, idrndLoading, idrndClosed, waitingIdrndCaptureEvent*/
|
|
622
|
+
3014656 && E !== (E = /*$cameraStatusStore*/
|
|
623
|
+
D[21] !== U.OK || K() && /*idrndLoading*/
|
|
624
|
+
(D[17] || /*idrndClosed*/
|
|
625
|
+
D[18] || /*waitingIdrndCaptureEvent*/
|
|
626
|
+
D[19]))) && (e.hidden = E);
|
|
627
|
+
},
|
|
628
|
+
i(D) {
|
|
629
|
+
I || (H(q), H(_.$$.fragment, D), H(p.$$.fragment, D), I = !0);
|
|
630
|
+
},
|
|
631
|
+
o(D) {
|
|
632
|
+
X(q), X(_.$$.fragment, D), X(p.$$.fragment, D), I = !1;
|
|
633
|
+
},
|
|
634
|
+
d(D) {
|
|
635
|
+
D && R(e), oe && oe.d(), i[49](null), i[51](null), q && q.d(), he(_), he(p), L = !1, _t(Y);
|
|
636
|
+
}
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
function Oo(i) {
|
|
640
|
+
let e;
|
|
641
|
+
return {
|
|
642
|
+
c() {
|
|
643
|
+
e = w("idlive-face-capture"), e.hidden = !0, ae(e, "mask_hidden", ""), ae(e, "auto_capture_disabled", ""), ae(e, "auto_close_disabled", ""), ae(
|
|
644
|
+
e,
|
|
645
|
+
"device_id",
|
|
646
|
+
/*$selectedVideoDeviceId*/
|
|
647
|
+
i[23]
|
|
648
|
+
), ae(e, "face_not_centered_check_enabled", ""), ae(e, "sunglasses_detected_check_enabled", ""), ae(e, "mouth_open_check_enabled", ""), ae(e, "face_blurry_check_enabled", ""), ae(e, "dark_image_check_enabled", ""), ae(e, "eyes_closed_check_enabled", "");
|
|
649
|
+
},
|
|
650
|
+
m(t, o) {
|
|
651
|
+
T(t, e, o), i[48](e);
|
|
652
|
+
},
|
|
653
|
+
p(t, o) {
|
|
654
|
+
o[0] & /*$selectedVideoDeviceId*/
|
|
655
|
+
8388608 && ae(
|
|
656
|
+
e,
|
|
657
|
+
"device_id",
|
|
658
|
+
/*$selectedVideoDeviceId*/
|
|
659
|
+
t[23]
|
|
660
|
+
);
|
|
661
|
+
},
|
|
662
|
+
d(t) {
|
|
663
|
+
t && R(e), i[48](null);
|
|
664
|
+
}
|
|
665
|
+
};
|
|
666
|
+
}
|
|
667
|
+
function Si(i) {
|
|
668
|
+
let e, t, o, a, r, l;
|
|
669
|
+
return e = new lo({
|
|
670
|
+
props: {
|
|
671
|
+
isCountingDown: (
|
|
672
|
+
/*isCountingDown*/
|
|
673
|
+
i[15]
|
|
674
|
+
)
|
|
675
|
+
}
|
|
676
|
+
}), o = new Ji({
|
|
677
|
+
props: {
|
|
678
|
+
loading: (
|
|
679
|
+
/*isCountingDown*/
|
|
680
|
+
i[15]
|
|
681
|
+
),
|
|
682
|
+
showWatermark: (
|
|
683
|
+
/*showWatermark*/
|
|
684
|
+
i[8]
|
|
685
|
+
)
|
|
686
|
+
}
|
|
687
|
+
}), r = new Qi({
|
|
688
|
+
props: {
|
|
689
|
+
overlayColor: (
|
|
690
|
+
/*videoOverlay*/
|
|
691
|
+
i[9]
|
|
692
|
+
),
|
|
693
|
+
overlayTransparency: (
|
|
694
|
+
/*videoOverlayTransparency*/
|
|
695
|
+
i[10]
|
|
696
|
+
)
|
|
697
|
+
}
|
|
698
|
+
}), {
|
|
699
|
+
c() {
|
|
700
|
+
fe(e.$$.fragment), t = N(), fe(o.$$.fragment), a = N(), fe(r.$$.fragment);
|
|
701
|
+
},
|
|
702
|
+
m(n, u) {
|
|
703
|
+
de(e, n, u), T(n, t, u), de(o, n, u), T(n, a, u), de(r, n, u), l = !0;
|
|
704
|
+
},
|
|
705
|
+
p(n, u) {
|
|
706
|
+
const f = {};
|
|
707
|
+
u[0] & /*isCountingDown*/
|
|
708
|
+
32768 && (f.isCountingDown = /*isCountingDown*/
|
|
709
|
+
n[15]), e.$set(f);
|
|
710
|
+
const c = {};
|
|
711
|
+
u[0] & /*isCountingDown*/
|
|
712
|
+
32768 && (c.loading = /*isCountingDown*/
|
|
713
|
+
n[15]), u[0] & /*showWatermark*/
|
|
714
|
+
256 && (c.showWatermark = /*showWatermark*/
|
|
715
|
+
n[8]), o.$set(c);
|
|
716
|
+
const h = {};
|
|
717
|
+
u[0] & /*videoOverlay*/
|
|
718
|
+
512 && (h.overlayColor = /*videoOverlay*/
|
|
719
|
+
n[9]), u[0] & /*videoOverlayTransparency*/
|
|
720
|
+
1024 && (h.overlayTransparency = /*videoOverlayTransparency*/
|
|
721
|
+
n[10]), r.$set(h);
|
|
722
|
+
},
|
|
723
|
+
i(n) {
|
|
724
|
+
l || (H(e.$$.fragment, n), H(o.$$.fragment, n), H(r.$$.fragment, n), l = !0);
|
|
725
|
+
},
|
|
726
|
+
o(n) {
|
|
727
|
+
X(e.$$.fragment, n), X(o.$$.fragment, n), X(r.$$.fragment, n), l = !1;
|
|
728
|
+
},
|
|
729
|
+
d(n) {
|
|
730
|
+
he(e, n), n && R(t), he(o, n), n && R(a), he(r, n);
|
|
731
|
+
}
|
|
732
|
+
};
|
|
733
|
+
}
|
|
734
|
+
function Ni(i) {
|
|
735
|
+
let e, t, o = (
|
|
736
|
+
/*$_*/
|
|
737
|
+
i[31]("faceCollector.finish") + ""
|
|
738
|
+
), a, r, l, n, u = (
|
|
739
|
+
/*$_*/
|
|
740
|
+
i[31]("faceCollector.retakePhoto") + ""
|
|
741
|
+
), f, c, h;
|
|
742
|
+
return {
|
|
743
|
+
c() {
|
|
744
|
+
e = w("div"), t = w("button"), a = P(o), l = N(), n = w("button"), f = P(u), t.disabled = r = /*$justification*/
|
|
745
|
+
i[28].length === 0, d(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), d(n, "id", "bry-cc-retake-button"), d(n, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), d(e, "class", "ce-dui-btn-group flex");
|
|
746
|
+
},
|
|
747
|
+
m(m, _) {
|
|
748
|
+
T(m, e, _), b(e, t), b(t, a), b(e, l), b(e, n), b(n, f), c || (h = [
|
|
749
|
+
ne(
|
|
750
|
+
t,
|
|
751
|
+
"click",
|
|
752
|
+
/*click_handler*/
|
|
753
|
+
i[52]
|
|
754
|
+
),
|
|
755
|
+
ne(
|
|
756
|
+
n,
|
|
757
|
+
"click",
|
|
758
|
+
/*click_handler_1*/
|
|
759
|
+
i[53]
|
|
760
|
+
)
|
|
761
|
+
], c = !0);
|
|
762
|
+
},
|
|
763
|
+
p(m, _) {
|
|
764
|
+
_[1] & /*$_*/
|
|
765
|
+
1 && o !== (o = /*$_*/
|
|
766
|
+
m[31]("faceCollector.finish") + "") && B(a, o), _[0] & /*$justification*/
|
|
767
|
+
268435456 && r !== (r = /*$justification*/
|
|
768
|
+
m[28].length === 0) && (t.disabled = r), _[1] & /*$_*/
|
|
769
|
+
1 && u !== (u = /*$_*/
|
|
770
|
+
m[31]("faceCollector.retakePhoto") + "") && B(f, u);
|
|
771
|
+
},
|
|
772
|
+
d(m) {
|
|
773
|
+
m && R(e), c = !1, _t(h);
|
|
774
|
+
}
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
function Ro(i) {
|
|
778
|
+
let e, t;
|
|
779
|
+
return e = new ro({ props: { handler: (
|
|
780
|
+
/*func*/
|
|
781
|
+
i[62]
|
|
782
|
+
) } }), {
|
|
783
|
+
c() {
|
|
784
|
+
fe(e.$$.fragment);
|
|
785
|
+
},
|
|
786
|
+
m(o, a) {
|
|
787
|
+
de(e, o, a), t = !0;
|
|
788
|
+
},
|
|
789
|
+
p: G,
|
|
790
|
+
i(o) {
|
|
791
|
+
t || (H(e.$$.fragment, o), t = !0);
|
|
792
|
+
},
|
|
793
|
+
o(o) {
|
|
794
|
+
X(e.$$.fragment, o), t = !1;
|
|
795
|
+
},
|
|
796
|
+
d(o) {
|
|
797
|
+
he(e, o);
|
|
798
|
+
}
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
function Io(i) {
|
|
802
|
+
let e, t, o, a, r, l, n, u, f;
|
|
803
|
+
const c = [
|
|
804
|
+
So,
|
|
805
|
+
Fo,
|
|
806
|
+
Lo,
|
|
807
|
+
Ao,
|
|
808
|
+
Do
|
|
809
|
+
], h = [];
|
|
810
|
+
function m(_, k) {
|
|
811
|
+
return (
|
|
812
|
+
/*$captured*/
|
|
813
|
+
_[24] ? (
|
|
814
|
+
/*$unconformitiesStore*/
|
|
815
|
+
_[32].isLoading ? 1 : (
|
|
816
|
+
/*$requestResult*/
|
|
817
|
+
_[30] !== z.OK ? 2 : (
|
|
818
|
+
/*$saved*/
|
|
819
|
+
_[27] ? 4 : 3
|
|
820
|
+
)
|
|
821
|
+
)
|
|
822
|
+
) : 0
|
|
823
|
+
);
|
|
824
|
+
}
|
|
825
|
+
return l = m(i), n = h[l] = c[l](i), {
|
|
826
|
+
c() {
|
|
827
|
+
e = w("div"), t = w("img"), r = N(), n.c(), d(t, "class", "m-auto col-start-1 col-end-1 max-h-[23.2em]"), He(t.src, o = /*$dataTypePrefix*/
|
|
828
|
+
i[33] + "," + /*$image*/
|
|
829
|
+
i[29]) || d(t, "src", o), t.hidden = a = !/*$captured*/
|
|
830
|
+
i[24] || !/*$showFaceWhileValidating*/
|
|
831
|
+
i[34] && /*$unconformitiesStore*/
|
|
832
|
+
i[32].isLoading, d(t, "alt", ""), d(e, "class", u = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (!/*$showFaceWhileValidating*/
|
|
833
|
+
i[34] && /*$unconformitiesStore*/
|
|
834
|
+
i[32].isLoading ? "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible" : "grid overflow-hidden"));
|
|
835
|
+
},
|
|
836
|
+
m(_, k) {
|
|
837
|
+
T(_, e, k), b(e, t), b(e, r), h[l].m(e, null), f = !0;
|
|
838
|
+
},
|
|
839
|
+
p(_, k) {
|
|
840
|
+
(!f || k[0] & /*$image*/
|
|
841
|
+
536870912 | k[1] & /*$dataTypePrefix*/
|
|
842
|
+
4 && !He(t.src, o = /*$dataTypePrefix*/
|
|
843
|
+
_[33] + "," + /*$image*/
|
|
844
|
+
_[29])) && d(t, "src", o), (!f || k[0] & /*$captured*/
|
|
845
|
+
16777216 | k[1] & /*$showFaceWhileValidating, $unconformitiesStore*/
|
|
846
|
+
10 && a !== (a = !/*$captured*/
|
|
847
|
+
_[24] || !/*$showFaceWhileValidating*/
|
|
848
|
+
_[34] && /*$unconformitiesStore*/
|
|
849
|
+
_[32].isLoading)) && (t.hidden = a);
|
|
850
|
+
let p = l;
|
|
851
|
+
l = m(_), l === p ? h[l].p(_, k) : (Ke(), X(h[p], 1, 1, () => {
|
|
852
|
+
h[p] = null;
|
|
853
|
+
}), ze(), n = h[l], n ? n.p(_, k) : (n = h[l] = c[l](_), n.c()), H(n, 1), n.m(e, null)), (!f || k[1] & /*$showFaceWhileValidating, $unconformitiesStore*/
|
|
854
|
+
10 && u !== (u = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (!/*$showFaceWhileValidating*/
|
|
855
|
+
_[34] && /*$unconformitiesStore*/
|
|
856
|
+
_[32].isLoading ? "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible" : "grid overflow-hidden"))) && d(e, "class", u);
|
|
857
|
+
},
|
|
858
|
+
i(_) {
|
|
859
|
+
f || (H(n), f = !0);
|
|
860
|
+
},
|
|
861
|
+
o(_) {
|
|
862
|
+
X(n), f = !1;
|
|
863
|
+
},
|
|
864
|
+
d(_) {
|
|
865
|
+
_ && R(e), h[l].d();
|
|
866
|
+
}
|
|
867
|
+
};
|
|
868
|
+
}
|
|
869
|
+
function Do(i) {
|
|
870
|
+
let e, t, o = (
|
|
871
|
+
/*$_*/
|
|
872
|
+
i[31]("faceCollector.captured") + ""
|
|
873
|
+
), a, r, l, n, u, f = (
|
|
874
|
+
/*$_*/
|
|
875
|
+
i[31]("faceCollector.retakePhoto") + ""
|
|
876
|
+
), c, h, m = ct(io).faceStrategy !== so.DISABLED, _, k, p, v = (
|
|
877
|
+
/*$unconformitiesStore*/
|
|
878
|
+
i[32].unconformities.length !== 0 && Pi(i)
|
|
879
|
+
), E = m && No();
|
|
880
|
+
return {
|
|
881
|
+
c() {
|
|
882
|
+
e = w("div"), t = w("h1"), a = P(o), r = N(), v && v.c(), l = N(), n = w("div"), u = w("button"), c = P(f), h = N(), E && E.c(), d(t, "class", "text-3xl font-bold pb-[1em] transition-opacity"), d(u, "id", "bry-cc-retake-button"), d(u, "class", "ce-dui-btn ce-dui-btn-block flex-shrink text-base"), d(n, "class", "flex flex-row"), Ti(n, "ce-dui-btn-group", !/*$exportButtonDisabled*/
|
|
883
|
+
i[35]);
|
|
884
|
+
},
|
|
885
|
+
m(I, L) {
|
|
886
|
+
T(I, e, L), b(e, t), b(t, a), b(e, r), v && v.m(e, null), b(e, l), b(e, n), b(n, u), b(u, c), b(n, h), E && E.m(n, null), _ = !0, k || (p = ne(
|
|
887
|
+
u,
|
|
888
|
+
"click",
|
|
889
|
+
/*click_handler_6*/
|
|
890
|
+
i[61]
|
|
891
|
+
), k = !0);
|
|
892
|
+
},
|
|
893
|
+
p(I, L) {
|
|
894
|
+
(!_ || L[1] & /*$_*/
|
|
895
|
+
1) && o !== (o = /*$_*/
|
|
896
|
+
I[31]("faceCollector.captured") + "") && B(a, o), /*$unconformitiesStore*/
|
|
897
|
+
I[32].unconformities.length !== 0 ? v ? v.p(I, L) : (v = Pi(I), v.c(), v.m(e, l)) : v && (v.d(1), v = null), (!_ || L[1] & /*$_*/
|
|
898
|
+
1) && f !== (f = /*$_*/
|
|
899
|
+
I[31]("faceCollector.retakePhoto") + "") && B(c, f), (!_ || L[1] & /*$exportButtonDisabled*/
|
|
900
|
+
16) && Ti(n, "ce-dui-btn-group", !/*$exportButtonDisabled*/
|
|
901
|
+
I[35]);
|
|
902
|
+
},
|
|
903
|
+
i(I) {
|
|
904
|
+
_ || (H(E), _ = !0);
|
|
905
|
+
},
|
|
906
|
+
o(I) {
|
|
907
|
+
X(E), _ = !1;
|
|
908
|
+
},
|
|
909
|
+
d(I) {
|
|
910
|
+
I && R(e), v && v.d(), E && E.d(), k = !1, p();
|
|
911
|
+
}
|
|
912
|
+
};
|
|
913
|
+
}
|
|
914
|
+
function Ao(i) {
|
|
915
|
+
let e, t, o = (
|
|
916
|
+
/*evaluatePhoto*/
|
|
917
|
+
(i[2] ? (
|
|
918
|
+
/*$unconformitiesStore*/
|
|
919
|
+
i[32].unconformities.length === 0 ? (
|
|
920
|
+
/*$_*/
|
|
921
|
+
i[31]("faceCollector.everythingOk")
|
|
922
|
+
) : (
|
|
923
|
+
/*$_*/
|
|
924
|
+
i[31]("faceCollector.unconformities")
|
|
925
|
+
)
|
|
926
|
+
) : (
|
|
927
|
+
/*$_*/
|
|
928
|
+
i[31]("faceCollector.previewCapture")
|
|
929
|
+
)) + ""
|
|
930
|
+
), a, r, l, n, u, f, c = (
|
|
931
|
+
/*$unconformitiesStore*/
|
|
932
|
+
i[32].unconformities
|
|
933
|
+
), h = [];
|
|
934
|
+
for (let p = 0; p < c.length; p += 1)
|
|
935
|
+
h[p] = Wi(Ai(i, c, p));
|
|
936
|
+
let m = (
|
|
937
|
+
/*evaluatePhoto*/
|
|
938
|
+
i[2] && /*$unconformitiesStore*/
|
|
939
|
+
i[32].unconformities.length == 0 && Bi(i)
|
|
940
|
+
), _ = (
|
|
941
|
+
/*showJustificationField*/
|
|
942
|
+
i[7] && /*$unconformitiesStore*/
|
|
943
|
+
i[32].unconformities.length > 0 && Mi(i)
|
|
944
|
+
), k = (
|
|
945
|
+
/*$captured*/
|
|
946
|
+
i[24] && Ui(i)
|
|
947
|
+
);
|
|
948
|
+
return {
|
|
949
|
+
c() {
|
|
950
|
+
e = w("div"), t = w("h1"), a = P(o), r = N(), l = w("div");
|
|
951
|
+
for (let p = 0; p < h.length; p += 1)
|
|
952
|
+
h[p].c();
|
|
953
|
+
n = N(), m && m.c(), u = N(), _ && _.c(), f = N(), k && k.c(), d(t, "class", "text-3xl font-bold transition-opacity"), d(l, "class", "flex flex-wrap"), d(e, "class", "flex flex-col justify-between");
|
|
954
|
+
},
|
|
955
|
+
m(p, v) {
|
|
956
|
+
T(p, e, v), b(e, t), b(t, a), b(e, r), b(e, l);
|
|
957
|
+
for (let E = 0; E < h.length; E += 1)
|
|
958
|
+
h[E] && h[E].m(l, null);
|
|
959
|
+
b(l, n), m && m.m(l, null), b(e, u), _ && _.m(e, null), b(e, f), k && k.m(e, null);
|
|
960
|
+
},
|
|
961
|
+
p(p, v) {
|
|
962
|
+
if (v[0] & /*evaluatePhoto*/
|
|
963
|
+
4 | v[1] & /*$unconformitiesStore, $_*/
|
|
964
|
+
3 && o !== (o = /*evaluatePhoto*/
|
|
965
|
+
(p[2] ? (
|
|
966
|
+
/*$unconformitiesStore*/
|
|
967
|
+
p[32].unconformities.length === 0 ? (
|
|
968
|
+
/*$_*/
|
|
969
|
+
p[31]("faceCollector.everythingOk")
|
|
970
|
+
) : (
|
|
971
|
+
/*$_*/
|
|
972
|
+
p[31]("faceCollector.unconformities")
|
|
973
|
+
)
|
|
974
|
+
) : (
|
|
975
|
+
/*$_*/
|
|
976
|
+
p[31]("faceCollector.previewCapture")
|
|
977
|
+
)) + "") && B(a, o), v[1] & /*$unconformitiesStore*/
|
|
978
|
+
2) {
|
|
979
|
+
c = /*$unconformitiesStore*/
|
|
980
|
+
p[32].unconformities;
|
|
981
|
+
let E;
|
|
982
|
+
for (E = 0; E < c.length; E += 1) {
|
|
983
|
+
const I = Ai(p, c, E);
|
|
984
|
+
h[E] ? h[E].p(I, v) : (h[E] = Wi(I), h[E].c(), h[E].m(l, n));
|
|
985
|
+
}
|
|
986
|
+
for (; E < h.length; E += 1)
|
|
987
|
+
h[E].d(1);
|
|
988
|
+
h.length = c.length;
|
|
989
|
+
}
|
|
990
|
+
/*evaluatePhoto*/
|
|
991
|
+
p[2] && /*$unconformitiesStore*/
|
|
992
|
+
p[32].unconformities.length == 0 ? m ? m.p(p, v) : (m = Bi(p), m.c(), m.m(l, null)) : m && (m.d(1), m = null), /*showJustificationField*/
|
|
993
|
+
p[7] && /*$unconformitiesStore*/
|
|
994
|
+
p[32].unconformities.length > 0 ? _ ? _.p(p, v) : (_ = Mi(p), _.c(), _.m(e, f)) : _ && (_.d(1), _ = null), /*$captured*/
|
|
995
|
+
p[24] ? k ? k.p(p, v) : (k = Ui(p), k.c(), k.m(e, null)) : k && (k.d(1), k = null);
|
|
996
|
+
},
|
|
997
|
+
i: G,
|
|
998
|
+
o: G,
|
|
999
|
+
d(p) {
|
|
1000
|
+
p && R(e), qi(h, p), m && m.d(), _ && _.d(), k && k.d();
|
|
1001
|
+
}
|
|
1002
|
+
};
|
|
1003
|
+
}
|
|
1004
|
+
function Lo(i) {
|
|
1005
|
+
let e, t, o, a, r = (
|
|
1006
|
+
/*$_*/
|
|
1007
|
+
i[31]("faceCollector.finish") + ""
|
|
1008
|
+
), l, n, u, f = (
|
|
1009
|
+
/*$_*/
|
|
1010
|
+
i[31]("faceCollector.retakePhoto") + ""
|
|
1011
|
+
), c, h, m;
|
|
1012
|
+
function _(v, E) {
|
|
1013
|
+
return (
|
|
1014
|
+
/*$requestResult*/
|
|
1015
|
+
v[30] === z.LIVENESS_DETECTION_FAILURE || /*$requestResult*/
|
|
1016
|
+
v[30] === z.UNKNOWN_LIVENESS_ERROR ? jo : (
|
|
1017
|
+
/*$requestResult*/
|
|
1018
|
+
v[30] === z.LOW_LIVENESS_SCORE ? Vo : (
|
|
1019
|
+
/*$requestResult*/
|
|
1020
|
+
v[30] === z.TEMPLATE_EXTRACTION_ERROR || /*$requestResult*/
|
|
1021
|
+
v[30] === z.UNKNOWN_TEMPLATE_EXTRACTION_ERROR ? Uo : (
|
|
1022
|
+
/*$requestResult*/
|
|
1023
|
+
v[30] === z.UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE ? Mo : (
|
|
1024
|
+
/*$requestResult*/
|
|
1025
|
+
v[30] === z.LIVENESS_EVALUATION_ERROR ? Bo : (
|
|
1026
|
+
/*$requestResult*/
|
|
1027
|
+
v[30] === z.INSUFFICIENT_FACE_QUALITY ? Wo : Po
|
|
1028
|
+
)
|
|
1029
|
+
)
|
|
1030
|
+
)
|
|
1031
|
+
)
|
|
1032
|
+
)
|
|
1033
|
+
);
|
|
1034
|
+
}
|
|
1035
|
+
let k = _(i), p = k(i);
|
|
1036
|
+
return {
|
|
1037
|
+
c() {
|
|
1038
|
+
e = w("div"), p.c(), t = N(), o = w("div"), a = w("button"), l = P(r), n = N(), u = w("button"), c = P(f), a.disabled = !0, d(a, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), d(u, "id", "bry-cc-retake-button"), d(u, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), d(o, "class", "ce-dui-btn-group flex"), d(e, "class", "flex flex-col justify-between");
|
|
1039
|
+
},
|
|
1040
|
+
m(v, E) {
|
|
1041
|
+
T(v, e, E), p.m(e, null), b(e, t), b(e, o), b(o, a), b(a, l), b(o, n), b(o, u), b(u, c), h || (m = [
|
|
1042
|
+
ne(
|
|
1043
|
+
a,
|
|
1044
|
+
"click",
|
|
1045
|
+
/*click_handler_2*/
|
|
1046
|
+
i[55]
|
|
1047
|
+
),
|
|
1048
|
+
ne(
|
|
1049
|
+
u,
|
|
1050
|
+
"click",
|
|
1051
|
+
/*click_handler_3*/
|
|
1052
|
+
i[56]
|
|
1053
|
+
)
|
|
1054
|
+
], h = !0);
|
|
1055
|
+
},
|
|
1056
|
+
p(v, E) {
|
|
1057
|
+
k === (k = _(v)) && p ? p.p(v, E) : (p.d(1), p = k(v), p && (p.c(), p.m(e, t))), E[1] & /*$_*/
|
|
1058
|
+
1 && r !== (r = /*$_*/
|
|
1059
|
+
v[31]("faceCollector.finish") + "") && B(l, r), E[1] & /*$_*/
|
|
1060
|
+
1 && f !== (f = /*$_*/
|
|
1061
|
+
v[31]("faceCollector.retakePhoto") + "") && B(c, f);
|
|
1062
|
+
},
|
|
1063
|
+
i: G,
|
|
1064
|
+
o: G,
|
|
1065
|
+
d(v) {
|
|
1066
|
+
v && R(e), p.d(), h = !1, _t(m);
|
|
1067
|
+
}
|
|
1068
|
+
};
|
|
1069
|
+
}
|
|
1070
|
+
function Fo(i) {
|
|
1071
|
+
let e, t, o = (
|
|
1072
|
+
/*$_*/
|
|
1073
|
+
i[31]("faceCollector.validating") + ""
|
|
1074
|
+
), a, r, l;
|
|
1075
|
+
return {
|
|
1076
|
+
c() {
|
|
1077
|
+
e = w("div"), t = w("h1"), a = P(o), r = N(), l = w("div"), d(t, "class", "inline-block text-3xl font-bold pb-[1em] transition-opacity"), d(l, "class", "ml-6 inline-block dot-typing"), d(e, "class", "min-w-[200px]");
|
|
1078
|
+
},
|
|
1079
|
+
m(n, u) {
|
|
1080
|
+
T(n, e, u), b(e, t), b(t, a), b(e, r), b(e, l);
|
|
1081
|
+
},
|
|
1082
|
+
p(n, u) {
|
|
1083
|
+
u[1] & /*$_*/
|
|
1084
|
+
1 && o !== (o = /*$_*/
|
|
1085
|
+
n[31]("faceCollector.validating") + "") && B(a, o);
|
|
1086
|
+
},
|
|
1087
|
+
i: G,
|
|
1088
|
+
o: G,
|
|
1089
|
+
d(n) {
|
|
1090
|
+
n && R(e);
|
|
1091
|
+
}
|
|
1092
|
+
};
|
|
1093
|
+
}
|
|
1094
|
+
function So(i) {
|
|
1095
|
+
let e;
|
|
1096
|
+
return {
|
|
1097
|
+
c() {
|
|
1098
|
+
e = w("div"), d(e, "class", "");
|
|
1099
|
+
},
|
|
1100
|
+
m(t, o) {
|
|
1101
|
+
T(t, e, o);
|
|
1102
|
+
},
|
|
1103
|
+
p: G,
|
|
1104
|
+
i: G,
|
|
1105
|
+
o: G,
|
|
1106
|
+
d(t) {
|
|
1107
|
+
t && R(e);
|
|
1108
|
+
}
|
|
1109
|
+
};
|
|
1110
|
+
}
|
|
1111
|
+
function Pi(i) {
|
|
1112
|
+
let e, t, o = (
|
|
1113
|
+
/*$_*/
|
|
1114
|
+
i[31]("faceCollector.justification") + ""
|
|
1115
|
+
), a, r, l, n, u;
|
|
1116
|
+
return {
|
|
1117
|
+
c() {
|
|
1118
|
+
e = w("label"), t = w("span"), a = P(o), r = N(), l = w("textarea"), d(t, "class", "ce-dui-label-text text-base"), d(e, "class", "ce-dui-label"), d(e, "for", "justification"), d(l, "contenteditable", ""), d(l, "id", "justification"), d(l, "class", "ce-dui-textarea ce-dui-textarea-bordered textarea-ghost h-[6em] w-full text-base");
|
|
1119
|
+
},
|
|
1120
|
+
m(f, c) {
|
|
1121
|
+
T(f, e, c), b(e, t), b(t, a), T(f, r, c), T(f, l, c), ut(
|
|
1122
|
+
l,
|
|
1123
|
+
/*$justification*/
|
|
1124
|
+
i[28]
|
|
1125
|
+
), n || (u = ne(
|
|
1126
|
+
l,
|
|
1127
|
+
"input",
|
|
1128
|
+
/*textarea_input_handler_1*/
|
|
1129
|
+
i[60]
|
|
1130
|
+
), n = !0);
|
|
1131
|
+
},
|
|
1132
|
+
p(f, c) {
|
|
1133
|
+
c[1] & /*$_*/
|
|
1134
|
+
1 && o !== (o = /*$_*/
|
|
1135
|
+
f[31]("faceCollector.justification") + "") && B(a, o), c[0] & /*$justification*/
|
|
1136
|
+
268435456 && ut(
|
|
1137
|
+
l,
|
|
1138
|
+
/*$justification*/
|
|
1139
|
+
f[28]
|
|
1140
|
+
);
|
|
1141
|
+
},
|
|
1142
|
+
d(f) {
|
|
1143
|
+
f && R(e), f && R(r), f && R(l), n = !1, u();
|
|
1144
|
+
}
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
function No(i) {
|
|
1148
|
+
let e, t;
|
|
1149
|
+
return e = new oo({
|
|
1150
|
+
props: { cssClass: "ce-dui-btn-block flex-shrink" }
|
|
1151
|
+
}), {
|
|
1152
|
+
c() {
|
|
1153
|
+
fe(e.$$.fragment);
|
|
1154
|
+
},
|
|
1155
|
+
m(o, a) {
|
|
1156
|
+
de(e, o, a), t = !0;
|
|
1157
|
+
},
|
|
1158
|
+
i(o) {
|
|
1159
|
+
t || (H(e.$$.fragment, o), t = !0);
|
|
1160
|
+
},
|
|
1161
|
+
o(o) {
|
|
1162
|
+
X(e.$$.fragment, o), t = !1;
|
|
1163
|
+
},
|
|
1164
|
+
d(o) {
|
|
1165
|
+
he(e, o);
|
|
1166
|
+
}
|
|
1167
|
+
};
|
|
1168
|
+
}
|
|
1169
|
+
function Wi(i) {
|
|
1170
|
+
let e, t = (
|
|
1171
|
+
/*unconformity*/
|
|
1172
|
+
i[120] + ""
|
|
1173
|
+
), o;
|
|
1174
|
+
return {
|
|
1175
|
+
c() {
|
|
1176
|
+
e = w("div"), o = P(t), d(e, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] ce-dui-badge-error text-xl pb-[.25em] m-[.5em]");
|
|
1177
|
+
},
|
|
1178
|
+
m(a, r) {
|
|
1179
|
+
T(a, e, r), b(e, o);
|
|
1180
|
+
},
|
|
1181
|
+
p(a, r) {
|
|
1182
|
+
r[1] & /*$unconformitiesStore*/
|
|
1183
|
+
2 && t !== (t = /*unconformity*/
|
|
1184
|
+
a[120] + "") && B(o, t);
|
|
1185
|
+
},
|
|
1186
|
+
d(a) {
|
|
1187
|
+
a && R(e);
|
|
1188
|
+
}
|
|
1189
|
+
};
|
|
1190
|
+
}
|
|
1191
|
+
function Bi(i) {
|
|
1192
|
+
let e, t = (
|
|
1193
|
+
/*$_*/
|
|
1194
|
+
i[31]("faceCollector.noNonconformity") + ""
|
|
1195
|
+
), o;
|
|
1196
|
+
return {
|
|
1197
|
+
c() {
|
|
1198
|
+
e = w("div"), o = P(t), d(e, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] ce-dui-badge-info text-xl pb-[.25em] m-[.5em]");
|
|
1199
|
+
},
|
|
1200
|
+
m(a, r) {
|
|
1201
|
+
T(a, e, r), b(e, o);
|
|
1202
|
+
},
|
|
1203
|
+
p(a, r) {
|
|
1204
|
+
r[1] & /*$_*/
|
|
1205
|
+
1 && t !== (t = /*$_*/
|
|
1206
|
+
a[31]("faceCollector.noNonconformity") + "") && B(o, t);
|
|
1207
|
+
},
|
|
1208
|
+
d(a) {
|
|
1209
|
+
a && R(e);
|
|
1210
|
+
}
|
|
1211
|
+
};
|
|
1212
|
+
}
|
|
1213
|
+
function Mi(i) {
|
|
1214
|
+
let e, t, o, a = (
|
|
1215
|
+
/*$_*/
|
|
1216
|
+
i[31]("faceCollector.provideAReasonForTheLowQualityCapture") + ""
|
|
1217
|
+
), r, l, n, u, f, c, h, m, _ = (
|
|
1218
|
+
/*$_*/
|
|
1219
|
+
i[31]("faceCollector.thisInformationIsRequired") + ""
|
|
1220
|
+
), k, p, v, E;
|
|
1221
|
+
return {
|
|
1222
|
+
c() {
|
|
1223
|
+
e = w("div"), t = w("label"), o = w("span"), r = P(a), l = N(), n = w("textarea"), f = N(), c = w("label"), h = w("span"), m = P("("), k = P(_), p = P(")"), d(o, "class", "ce-dui-label-text text-base"), d(t, "class", "ce-dui-label"), d(t, "for", "justification"), d(n, "contenteditable", ""), d(n, "id", "justification"), d(n, "class", "ce-dui-textarea ce-dui-textarea-bordered h-[6em] text-base"), d(n, "placeholder", u = /*$_*/
|
|
1224
|
+
i[31]("faceCollector.yourJustification")), d(h, "class", "ce-dui-label-text-alt text-base"), d(c, "class", "ce-dui-label"), d(c, "for", "justification"), d(e, "class", "ce-dui-form-control");
|
|
1225
|
+
},
|
|
1226
|
+
m(I, L) {
|
|
1227
|
+
T(I, e, L), b(e, t), b(t, o), b(o, r), b(e, l), b(e, n), ut(
|
|
1228
|
+
n,
|
|
1229
|
+
/*$justification*/
|
|
1230
|
+
i[28]
|
|
1231
|
+
), b(e, f), b(e, c), b(c, h), b(h, m), b(h, k), b(h, p), v || (E = ne(
|
|
1232
|
+
n,
|
|
1233
|
+
"input",
|
|
1234
|
+
/*textarea_input_handler*/
|
|
1235
|
+
i[57]
|
|
1236
|
+
), v = !0);
|
|
1237
|
+
},
|
|
1238
|
+
p(I, L) {
|
|
1239
|
+
L[1] & /*$_*/
|
|
1240
|
+
1 && a !== (a = /*$_*/
|
|
1241
|
+
I[31]("faceCollector.provideAReasonForTheLowQualityCapture") + "") && B(r, a), L[1] & /*$_*/
|
|
1242
|
+
1 && u !== (u = /*$_*/
|
|
1243
|
+
I[31]("faceCollector.yourJustification")) && d(n, "placeholder", u), L[0] & /*$justification*/
|
|
1244
|
+
268435456 && ut(
|
|
1245
|
+
n,
|
|
1246
|
+
/*$justification*/
|
|
1247
|
+
I[28]
|
|
1248
|
+
), L[1] & /*$_*/
|
|
1249
|
+
1 && _ !== (_ = /*$_*/
|
|
1250
|
+
I[31]("faceCollector.thisInformationIsRequired") + "") && B(k, _);
|
|
1251
|
+
},
|
|
1252
|
+
d(I) {
|
|
1253
|
+
I && R(e), v = !1, E();
|
|
1254
|
+
}
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
function Ui(i) {
|
|
1258
|
+
let e, t, o = (
|
|
1259
|
+
/*$_*/
|
|
1260
|
+
i[31]("faceCollector.finish") + ""
|
|
1261
|
+
), a, r, l, n, u = (
|
|
1262
|
+
/*$_*/
|
|
1263
|
+
i[31]("faceCollector.retakePhoto") + ""
|
|
1264
|
+
), f, c, h;
|
|
1265
|
+
return {
|
|
1266
|
+
c() {
|
|
1267
|
+
e = w("div"), t = w("button"), a = P(o), l = N(), n = w("button"), f = P(u), t.disabled = r = /*evaluatePhoto*/
|
|
1268
|
+
i[2] && /*showJustificationField*/
|
|
1269
|
+
i[7] && /*$justification*/
|
|
1270
|
+
i[28].length === 0 && /*$unconformitiesStore*/
|
|
1271
|
+
i[32].unconformities.length !== 0, d(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink text-base"), d(n, "id", "bry-cc-retake-button"), d(n, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink text-base"), d(e, "class", "ce-dui-btn-group flex");
|
|
1272
|
+
},
|
|
1273
|
+
m(m, _) {
|
|
1274
|
+
T(m, e, _), b(e, t), b(t, a), b(e, l), b(e, n), b(n, f), c || (h = [
|
|
1275
|
+
ne(
|
|
1276
|
+
t,
|
|
1277
|
+
"click",
|
|
1278
|
+
/*click_handler_4*/
|
|
1279
|
+
i[58]
|
|
1280
|
+
),
|
|
1281
|
+
ne(
|
|
1282
|
+
n,
|
|
1283
|
+
"click",
|
|
1284
|
+
/*click_handler_5*/
|
|
1285
|
+
i[59]
|
|
1286
|
+
)
|
|
1287
|
+
], c = !0);
|
|
1288
|
+
},
|
|
1289
|
+
p(m, _) {
|
|
1290
|
+
_[1] & /*$_*/
|
|
1291
|
+
1 && o !== (o = /*$_*/
|
|
1292
|
+
m[31]("faceCollector.finish") + "") && B(a, o), _[0] & /*evaluatePhoto, showJustificationField, $justification*/
|
|
1293
|
+
268435588 | _[1] & /*$unconformitiesStore*/
|
|
1294
|
+
2 && r !== (r = /*evaluatePhoto*/
|
|
1295
|
+
m[2] && /*showJustificationField*/
|
|
1296
|
+
m[7] && /*$justification*/
|
|
1297
|
+
m[28].length === 0 && /*$unconformitiesStore*/
|
|
1298
|
+
m[32].unconformities.length !== 0) && (t.disabled = r), _[1] & /*$_*/
|
|
1299
|
+
1 && u !== (u = /*$_*/
|
|
1300
|
+
m[31]("faceCollector.retakePhoto") + "") && B(f, u);
|
|
1301
|
+
},
|
|
1302
|
+
d(m) {
|
|
1303
|
+
m && R(e), c = !1, _t(h);
|
|
1304
|
+
}
|
|
1305
|
+
};
|
|
1306
|
+
}
|
|
1307
|
+
function Po(i) {
|
|
1308
|
+
let e, t = (
|
|
1309
|
+
/*$_*/
|
|
1310
|
+
i[31]("faceCollector.everythingOk") + ""
|
|
1311
|
+
), o;
|
|
1312
|
+
return {
|
|
1313
|
+
c() {
|
|
1314
|
+
e = w("h1"), o = P(t), d(e, "class", "text-3xl font-bold pb-[1em] transition-opacity");
|
|
1315
|
+
},
|
|
1316
|
+
m(a, r) {
|
|
1317
|
+
T(a, e, r), b(e, o);
|
|
1318
|
+
},
|
|
1319
|
+
p(a, r) {
|
|
1320
|
+
r[1] & /*$_*/
|
|
1321
|
+
1 && t !== (t = /*$_*/
|
|
1322
|
+
a[31]("faceCollector.everythingOk") + "") && B(o, t);
|
|
1323
|
+
},
|
|
1324
|
+
d(a) {
|
|
1325
|
+
a && R(e);
|
|
1326
|
+
}
|
|
1327
|
+
};
|
|
1328
|
+
}
|
|
1329
|
+
function Wo(i) {
|
|
1330
|
+
let e, t, o, a, r = (
|
|
1331
|
+
/*$_*/
|
|
1332
|
+
i[31]("liveness.error.faceQualityInsufficient") + ""
|
|
1333
|
+
), l, n = (
|
|
1334
|
+
/*$unconformitiesStore*/
|
|
1335
|
+
i[32].unconformities
|
|
1336
|
+
), u = [];
|
|
1337
|
+
for (let c = 0; c < n.length; c += 1)
|
|
1338
|
+
u[c] = Vi(Li(i, n, c));
|
|
1339
|
+
let f = (
|
|
1340
|
+
/*evaluatePhoto*/
|
|
1341
|
+
i[2] && /*$unconformitiesStore*/
|
|
1342
|
+
i[32].unconformities.length == 0 && ji(i)
|
|
1343
|
+
);
|
|
1344
|
+
return {
|
|
1345
|
+
c() {
|
|
1346
|
+
e = w("div");
|
|
1347
|
+
for (let c = 0; c < u.length; c += 1)
|
|
1348
|
+
u[c].c();
|
|
1349
|
+
t = N(), f && f.c(), o = N(), a = w("h1"), l = P(r), d(e, "class", "flex flex-wrap"), d(a, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1350
|
+
},
|
|
1351
|
+
m(c, h) {
|
|
1352
|
+
T(c, e, h);
|
|
1353
|
+
for (let m = 0; m < u.length; m += 1)
|
|
1354
|
+
u[m] && u[m].m(e, null);
|
|
1355
|
+
b(e, t), f && f.m(e, null), T(c, o, h), T(c, a, h), b(a, l);
|
|
1356
|
+
},
|
|
1357
|
+
p(c, h) {
|
|
1358
|
+
if (h[1] & /*$unconformitiesStore*/
|
|
1359
|
+
2) {
|
|
1360
|
+
n = /*$unconformitiesStore*/
|
|
1361
|
+
c[32].unconformities;
|
|
1362
|
+
let m;
|
|
1363
|
+
for (m = 0; m < n.length; m += 1) {
|
|
1364
|
+
const _ = Li(c, n, m);
|
|
1365
|
+
u[m] ? u[m].p(_, h) : (u[m] = Vi(_), u[m].c(), u[m].m(e, t));
|
|
1366
|
+
}
|
|
1367
|
+
for (; m < u.length; m += 1)
|
|
1368
|
+
u[m].d(1);
|
|
1369
|
+
u.length = n.length;
|
|
1370
|
+
}
|
|
1371
|
+
/*evaluatePhoto*/
|
|
1372
|
+
c[2] && /*$unconformitiesStore*/
|
|
1373
|
+
c[32].unconformities.length == 0 ? f ? f.p(c, h) : (f = ji(c), f.c(), f.m(e, null)) : f && (f.d(1), f = null), h[1] & /*$_*/
|
|
1374
|
+
1 && r !== (r = /*$_*/
|
|
1375
|
+
c[31]("liveness.error.faceQualityInsufficient") + "") && B(l, r);
|
|
1376
|
+
},
|
|
1377
|
+
d(c) {
|
|
1378
|
+
c && R(e), qi(u, c), f && f.d(), c && R(o), c && R(a);
|
|
1379
|
+
}
|
|
1380
|
+
};
|
|
1381
|
+
}
|
|
1382
|
+
function Bo(i) {
|
|
1383
|
+
let e, t = (
|
|
1384
|
+
/*$_*/
|
|
1385
|
+
i[31]("liveness.error.evaluationError") + ""
|
|
1386
|
+
), o;
|
|
1387
|
+
return {
|
|
1388
|
+
c() {
|
|
1389
|
+
e = w("h1"), o = P(t), d(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1390
|
+
},
|
|
1391
|
+
m(a, r) {
|
|
1392
|
+
T(a, e, r), b(e, o);
|
|
1393
|
+
},
|
|
1394
|
+
p(a, r) {
|
|
1395
|
+
r[1] & /*$_*/
|
|
1396
|
+
1 && t !== (t = /*$_*/
|
|
1397
|
+
a[31]("liveness.error.evaluationError") + "") && B(o, t);
|
|
1398
|
+
},
|
|
1399
|
+
d(a) {
|
|
1400
|
+
a && R(e);
|
|
1401
|
+
}
|
|
1402
|
+
};
|
|
1403
|
+
}
|
|
1404
|
+
function Mo(i) {
|
|
1405
|
+
let e, t = (
|
|
1406
|
+
/*$_*/
|
|
1407
|
+
i[31]("faceCollector.unableToCompleteRequest") + ""
|
|
1408
|
+
), o;
|
|
1409
|
+
return {
|
|
1410
|
+
c() {
|
|
1411
|
+
e = w("h1"), o = P(t), d(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1412
|
+
},
|
|
1413
|
+
m(a, r) {
|
|
1414
|
+
T(a, e, r), b(e, o);
|
|
1415
|
+
},
|
|
1416
|
+
p(a, r) {
|
|
1417
|
+
r[1] & /*$_*/
|
|
1418
|
+
1 && t !== (t = /*$_*/
|
|
1419
|
+
a[31]("faceCollector.unableToCompleteRequest") + "") && B(o, t);
|
|
1420
|
+
},
|
|
1421
|
+
d(a) {
|
|
1422
|
+
a && R(e);
|
|
1423
|
+
}
|
|
1424
|
+
};
|
|
1425
|
+
}
|
|
1426
|
+
function Uo(i) {
|
|
1427
|
+
let e, t = (
|
|
1428
|
+
/*$_*/
|
|
1429
|
+
i[31]("faceCollector.lowQualityCapture") + ""
|
|
1430
|
+
), o;
|
|
1431
|
+
return {
|
|
1432
|
+
c() {
|
|
1433
|
+
e = w("h1"), o = P(t), d(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1434
|
+
},
|
|
1435
|
+
m(a, r) {
|
|
1436
|
+
T(a, e, r), b(e, o);
|
|
1437
|
+
},
|
|
1438
|
+
p(a, r) {
|
|
1439
|
+
r[1] & /*$_*/
|
|
1440
|
+
1 && t !== (t = /*$_*/
|
|
1441
|
+
a[31]("faceCollector.lowQualityCapture") + "") && B(o, t);
|
|
1442
|
+
},
|
|
1443
|
+
d(a) {
|
|
1444
|
+
a && R(e);
|
|
1445
|
+
}
|
|
1446
|
+
};
|
|
1447
|
+
}
|
|
1448
|
+
function Vo(i) {
|
|
1449
|
+
let e, t = (
|
|
1450
|
+
/*$_*/
|
|
1451
|
+
i[31]("liveness.error.error") + ""
|
|
1452
|
+
), o, a, r = (
|
|
1453
|
+
/*$_*/
|
|
1454
|
+
i[31]("faceCollector.unaliveCapture") + ""
|
|
1455
|
+
), l;
|
|
1456
|
+
return {
|
|
1457
|
+
c() {
|
|
1458
|
+
e = w("h1"), o = P(t), a = P(": "), l = P(r), d(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1459
|
+
},
|
|
1460
|
+
m(n, u) {
|
|
1461
|
+
T(n, e, u), b(e, o), b(e, a), b(e, l);
|
|
1462
|
+
},
|
|
1463
|
+
p(n, u) {
|
|
1464
|
+
u[1] & /*$_*/
|
|
1465
|
+
1 && t !== (t = /*$_*/
|
|
1466
|
+
n[31]("liveness.error.error") + "") && B(o, t), u[1] & /*$_*/
|
|
1467
|
+
1 && r !== (r = /*$_*/
|
|
1468
|
+
n[31]("faceCollector.unaliveCapture") + "") && B(l, r);
|
|
1469
|
+
},
|
|
1470
|
+
d(n) {
|
|
1471
|
+
n && R(e);
|
|
1472
|
+
}
|
|
1473
|
+
};
|
|
1474
|
+
}
|
|
1475
|
+
function jo(i) {
|
|
1476
|
+
let e, t = (
|
|
1477
|
+
/*$_*/
|
|
1478
|
+
i[31]("liveness.error.error") + ""
|
|
1479
|
+
), o, a, r = (
|
|
1480
|
+
/*$_*/
|
|
1481
|
+
i[31](
|
|
1482
|
+
/*livenessError*/
|
|
1483
|
+
i[20]
|
|
1484
|
+
) + ""
|
|
1485
|
+
), l;
|
|
1486
|
+
return {
|
|
1487
|
+
c() {
|
|
1488
|
+
e = w("h1"), o = P(t), a = P(": "), l = P(r), d(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1489
|
+
},
|
|
1490
|
+
m(n, u) {
|
|
1491
|
+
T(n, e, u), b(e, o), b(e, a), b(e, l);
|
|
1492
|
+
},
|
|
1493
|
+
p(n, u) {
|
|
1494
|
+
u[1] & /*$_*/
|
|
1495
|
+
1 && t !== (t = /*$_*/
|
|
1496
|
+
n[31]("liveness.error.error") + "") && B(o, t), u[0] & /*livenessError*/
|
|
1497
|
+
1048576 | u[1] & /*$_*/
|
|
1498
|
+
1 && r !== (r = /*$_*/
|
|
1499
|
+
n[31](
|
|
1500
|
+
/*livenessError*/
|
|
1501
|
+
n[20]
|
|
1502
|
+
) + "") && B(l, r);
|
|
1503
|
+
},
|
|
1504
|
+
d(n) {
|
|
1505
|
+
n && R(e);
|
|
1506
|
+
}
|
|
1507
|
+
};
|
|
1508
|
+
}
|
|
1509
|
+
function Vi(i) {
|
|
1510
|
+
let e, t = (
|
|
1511
|
+
/*unconformity*/
|
|
1512
|
+
i[120] + ""
|
|
1513
|
+
), o;
|
|
1514
|
+
return {
|
|
1515
|
+
c() {
|
|
1516
|
+
e = w("div"), o = P(t), d(e, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] ce-dui-badge-error text-xl pb-[.25em] m-[.5em]");
|
|
1517
|
+
},
|
|
1518
|
+
m(a, r) {
|
|
1519
|
+
T(a, e, r), b(e, o);
|
|
1520
|
+
},
|
|
1521
|
+
p(a, r) {
|
|
1522
|
+
r[1] & /*$unconformitiesStore*/
|
|
1523
|
+
2 && t !== (t = /*unconformity*/
|
|
1524
|
+
a[120] + "") && B(o, t);
|
|
1525
|
+
},
|
|
1526
|
+
d(a) {
|
|
1527
|
+
a && R(e);
|
|
1528
|
+
}
|
|
1529
|
+
};
|
|
1530
|
+
}
|
|
1531
|
+
function ji(i) {
|
|
1532
|
+
let e, t = (
|
|
1533
|
+
/*$_*/
|
|
1534
|
+
i[31]("faceCollector.noNonconformity") + ""
|
|
1535
|
+
), o;
|
|
1536
|
+
return {
|
|
1537
|
+
c() {
|
|
1538
|
+
e = w("div"), o = P(t), d(e, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] ce-dui-badge-info text-xl pb-[.25em] m-[.5em]");
|
|
1539
|
+
},
|
|
1540
|
+
m(a, r) {
|
|
1541
|
+
T(a, e, r), b(e, o);
|
|
1542
|
+
},
|
|
1543
|
+
p(a, r) {
|
|
1544
|
+
r[1] & /*$_*/
|
|
1545
|
+
1 && t !== (t = /*$_*/
|
|
1546
|
+
a[31]("faceCollector.noNonconformity") + "") && B(o, t);
|
|
1547
|
+
},
|
|
1548
|
+
d(a) {
|
|
1549
|
+
a && R(e);
|
|
1550
|
+
}
|
|
1551
|
+
};
|
|
1552
|
+
}
|
|
1553
|
+
function Ko(i) {
|
|
1554
|
+
let e, t, o, a, r, l, n, u, f, c, h = (
|
|
1555
|
+
/*$videoStore*/
|
|
1556
|
+
i[25] && Fi(i)
|
|
1557
|
+
);
|
|
1558
|
+
a = new Xi({
|
|
1559
|
+
props: {
|
|
1560
|
+
waitingIdrndCaptureEvent: (
|
|
1561
|
+
/*waitingIdrndCaptureEvent*/
|
|
1562
|
+
i[19]
|
|
1563
|
+
),
|
|
1564
|
+
idrndLoading: (
|
|
1565
|
+
/*idrndLoading*/
|
|
1566
|
+
i[17]
|
|
1567
|
+
)
|
|
1568
|
+
}
|
|
1569
|
+
});
|
|
1570
|
+
let m = (
|
|
1571
|
+
/*$captured*/
|
|
1572
|
+
i[24] && Ni(i)
|
|
1573
|
+
);
|
|
1574
|
+
const _ = [Io, Ro], k = [];
|
|
1575
|
+
function p(v, E) {
|
|
1576
|
+
return (!/*idrndClosed*/
|
|
1577
|
+
v[18] || /*$captured*/
|
|
1578
|
+
v[24]) && /*showUnconformities*/
|
|
1579
|
+
v[3] ? 0 : (
|
|
1580
|
+
/*$cameraStatusStore*/
|
|
1581
|
+
v[21] !== U.OK ? 1 : -1
|
|
1582
|
+
);
|
|
1583
|
+
}
|
|
1584
|
+
return ~(n = p(i)) && (u = k[n] = _[n](i)), {
|
|
1585
|
+
c() {
|
|
1586
|
+
e = w("div"), t = w("div"), h && h.c(), o = N(), fe(a.$$.fragment), r = N(), m && m.c(), l = N(), u && u.c(), f = Ki(), this.c = G, d(t, "class", "relative mx-auto"), d(e, "class", "flex flex-col justify-between");
|
|
1587
|
+
},
|
|
1588
|
+
m(v, E) {
|
|
1589
|
+
T(v, e, E), b(e, t), h && h.m(t, null), b(t, o), de(a, t, null), b(t, r), m && m.m(t, null), i[54](e), T(v, l, E), ~n && k[n].m(v, E), T(v, f, E), c = !0;
|
|
1590
|
+
},
|
|
1591
|
+
p(v, E) {
|
|
1592
|
+
/*$videoStore*/
|
|
1593
|
+
v[25] ? h ? (h.p(v, E), E[0] & /*$videoStore*/
|
|
1594
|
+
33554432 && H(h, 1)) : (h = Fi(v), h.c(), H(h, 1), h.m(t, o)) : h && (Ke(), X(h, 1, 1, () => {
|
|
1595
|
+
h = null;
|
|
1596
|
+
}), ze());
|
|
1597
|
+
const I = {};
|
|
1598
|
+
E[0] & /*waitingIdrndCaptureEvent*/
|
|
1599
|
+
524288 && (I.waitingIdrndCaptureEvent = /*waitingIdrndCaptureEvent*/
|
|
1600
|
+
v[19]), E[0] & /*idrndLoading*/
|
|
1601
|
+
131072 && (I.idrndLoading = /*idrndLoading*/
|
|
1602
|
+
v[17]), a.$set(I), /*$captured*/
|
|
1603
|
+
v[24] ? m ? m.p(v, E) : (m = Ni(v), m.c(), m.m(t, null)) : m && (m.d(1), m = null);
|
|
1604
|
+
let L = n;
|
|
1605
|
+
n = p(v), n === L ? ~n && k[n].p(v, E) : (u && (Ke(), X(k[L], 1, 1, () => {
|
|
1606
|
+
k[L] = null;
|
|
1607
|
+
}), ze()), ~n ? (u = k[n], u ? u.p(v, E) : (u = k[n] = _[n](v), u.c()), H(u, 1), u.m(f.parentNode, f)) : u = null);
|
|
1608
|
+
},
|
|
1609
|
+
i(v) {
|
|
1610
|
+
c || (H(h), H(a.$$.fragment, v), H(u), c = !0);
|
|
1611
|
+
},
|
|
1612
|
+
o(v) {
|
|
1613
|
+
X(h), X(a.$$.fragment, v), X(u), c = !1;
|
|
1614
|
+
},
|
|
1615
|
+
d(v) {
|
|
1616
|
+
v && R(e), h && h.d(), he(a), m && m.d(), i[54](null), v && R(l), ~n && k[n].d(v), v && R(f);
|
|
1617
|
+
}
|
|
1618
|
+
};
|
|
1619
|
+
}
|
|
1620
|
+
let zo = 0, Ho = 3e3;
|
|
1621
|
+
function qo() {
|
|
1622
|
+
({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_39cfdffa_3.2.3-RC01.js") : import("./index-idlf-detector_a819b3c8_3.2.3-RC01.js");
|
|
1623
|
+
}
|
|
1624
|
+
function Jo(i, e, t) {
|
|
1625
|
+
let o, a, r, l, n, u, f, c, h, m, _, k, p, v, E, I, L, Y, oe, q, D, M, S, A, ye, $, le, be, Ie, gt, Ht, bt, vt, pt, qt, Jt;
|
|
1626
|
+
O(i, Ft, (s) => t(74, o = s)), O(i, $e, (s) => t(76, r = s)), O(i, J, (s) => t(21, l = s)), O(i, Ve, (s) => t(22, n = s)), O(i, Os, (s) => t(77, u = s)), O(i, et, (s) => t(78, f = s)), O(i, ge, (s) => t(23, c = s)), O(i, Rs, (s) => t(79, h = s)), O(i, Oe, (s) => t(24, m = s)), O(i, bi, (s) => t(80, _ = s)), O(i, St, (s) => t(81, k = s)), O(i, je, (s) => t(25, p = s)), O(i, Hi, (s) => t(26, v = s)), O(i, vi, (s) => t(82, E = s)), O(i, Is, (s) => t(83, I = s)), O(i, Be, (s) => t(84, L = s)), O(i, we, (s) => t(85, Y = s)), O(i, Ds, (s) => t(86, oe = s)), O(i, As, (s) => t(87, q = s)), O(i, Nt, (s) => t(27, D = s)), O(i, Pt, (s) => t(28, M = s)), O(i, ue, (s) => t(29, S = s)), O(i, te, (s) => t(30, A = s)), O(i, zi, (s) => t(31, ye = s)), O(i, Ce, (s) => t(32, $ = s)), O(i, pi, (s) => t(88, be = s)), O(i, tt, (s) => t(89, Ie = s)), O(i, Wt, (s) => t(90, gt = s)), O(i, Ls, (s) => t(91, Ht = s)), O(i, it, (s) => t(92, bt = s)), O(i, wi, (s) => t(93, vt = s)), O(i, Ci, (s) => t(94, pt = s)), O(i, Fs, (s) => t(34, qt = s)), O(i, Ss, (s) => t(35, Jt = s));
|
|
1627
|
+
let F, ie, me, Qt, Xt = !1, De = !1, wt = !1, qe = !1, Ct = (/* @__PURE__ */ new Date()).getTime(), { enableMinutiae: Et } = e, { videoDimensions: yt } = e, { noTabs: kt } = e, { weightsPath: Tt } = e, { evaluatePhoto: _e } = e, { showCaptureButton: Ot } = e, { showUnconformities: Gt } = e, { showConfigButton: Yt } = e, { showAutoCaptureButton: Rt } = e, { showCameraButton: Zt } = e, { showJustificationField: xt } = e, { minEyeToEyeDist: Ae } = e, { showWatermark: $t } = e, { videoOverlay: ei } = e, { videoOverlayTransparency: ti } = e, { faceDetectionSensitivity: It } = e;
|
|
1628
|
+
const Je = jt(!1);
|
|
1629
|
+
O(i, Je, (s) => t(75, a = s));
|
|
1630
|
+
const ke = jt("data:image/png;base64");
|
|
1631
|
+
O(i, ke, (s) => t(33, le = s));
|
|
1632
|
+
let { widgetInstance: Q } = e, ii = new ho(), Le = !1, Dt = !1, Qe = !0, re = !0, Fe = !1, si = 0, ee = "", At = 0, Xe = !0, oi = 0;
|
|
1633
|
+
const Ge = Ns.mixin({
|
|
1634
|
+
toast: !0,
|
|
1635
|
+
position: "bottom-left",
|
|
1636
|
+
timer: 13e3,
|
|
1637
|
+
timerProgressBar: !0
|
|
1638
|
+
});
|
|
1639
|
+
Ps(async () => {
|
|
1640
|
+
if (g(tt, Ie = !0, Ie), g(Ve, n = !1, n), ni(), be)
|
|
1641
|
+
try {
|
|
1642
|
+
await Ws(Tt), Xt = !0, Qt = await Bs();
|
|
1643
|
+
} catch {
|
|
1644
|
+
g(pi, be = !1, be), t(0, Ot = !0);
|
|
1645
|
+
}
|
|
1646
|
+
K() ? (qo(), Gi(), ii.startDetection()) : await ve(), ce() || Yi();
|
|
1647
|
+
});
|
|
1648
|
+
async function ai() {
|
|
1649
|
+
const [s, C] = (yt ?? "")?.replaceAll(" ", "")?.split("x")?.map((y) => y ? parseInt(y) : void 0);
|
|
1650
|
+
!s || !C || (ce() ? (await xs(), g(
|
|
1651
|
+
je,
|
|
1652
|
+
p = {
|
|
1653
|
+
videoWidth: window.innerWidth,
|
|
1654
|
+
videoHeight: window.innerHeight
|
|
1655
|
+
},
|
|
1656
|
+
p
|
|
1657
|
+
)) : g(je, p = { videoWidth: s, videoHeight: C }, p));
|
|
1658
|
+
}
|
|
1659
|
+
function ni() {
|
|
1660
|
+
g($e, r = !1, r), g(Oe, m = !1, m), g(et, f = Bt.FRONT_CAMERA, f), Rt && g(vi, E = !1, E), g(Nt, D = !1, D), g(te, A = z.OK, A), g(Be, L = "", L), g(Ce, $.unconformities = [], $);
|
|
1661
|
+
const s = ct(Mt);
|
|
1662
|
+
s.closedMouth = !1, s.isPersonCloseEnough = !1, s.isPersonTooclose = !0, s.isPersonInFrame = !1, Mt.set(s), g(we, Y = "", Y);
|
|
1663
|
+
}
|
|
1664
|
+
function Gi() {
|
|
1665
|
+
Q.addEventListener("open", (s) => {
|
|
1666
|
+
const C = s.detail[0].video;
|
|
1667
|
+
g(
|
|
1668
|
+
Ci,
|
|
1669
|
+
pt = {
|
|
1670
|
+
width: C.videoWidth,
|
|
1671
|
+
height: C.videoHeight
|
|
1672
|
+
},
|
|
1673
|
+
pt
|
|
1674
|
+
), t(12, F.srcObject = C.srcObject, F), t(17, Qe = !1), Ms(Q);
|
|
1675
|
+
function y() {
|
|
1676
|
+
re || Ue(F, y, !0);
|
|
1677
|
+
}
|
|
1678
|
+
y();
|
|
1679
|
+
}), Q.addEventListener("error", (s) => {
|
|
1680
|
+
console.error(s), s.detail[0].message.toLowerCase().includes("device in use") ? g(J, l = U.CAMERA_IN_USE_ERROR, l) : s.detail[0].message.toLowerCase().includes("permission") ? g(J, l = U.CAMERA_DENIED_ERROR, l) : s.detail[0].message.toLowerCase().includes("not found") && !ce() ? g(J, l = U.DEVICE_NOT_FOUND_ERROR, l) : g(J, l = U.CAMERA_DENIED_ERROR, l), t(17, Qe = !1);
|
|
1681
|
+
}), Q.addEventListener("faceDetection", (s) => {
|
|
1682
|
+
s.detail[0].errors.length > 0 && Ei(s.detail[0].errors);
|
|
1683
|
+
}), Q.addEventListener("detection", (s) => {
|
|
1684
|
+
s.detail[0].errors.length > 0 && Ei(s.detail[0].errors);
|
|
1685
|
+
}), Q.addEventListener("close", async (s) => {
|
|
1686
|
+
m || (Le = !1), t(18, re = !0), t(19, Fe = !1), l === U.OK && g(J, l = U.CAMERA_CLOSED_ERROR, l);
|
|
1687
|
+
}), Q.addEventListener("initialize", async (s) => {
|
|
1688
|
+
Dt = !0, g(wi, vt = !0, vt);
|
|
1689
|
+
try {
|
|
1690
|
+
Q.setLicense(Us, "faceDetector");
|
|
1691
|
+
} catch (C) {
|
|
1692
|
+
console.error("Error setting license:", C);
|
|
1693
|
+
}
|
|
1694
|
+
gt === st.Face && !Le && !m && Dt && await Lt();
|
|
1695
|
+
}), Q.addEventListener("capture", async (s) => {
|
|
1696
|
+
t(20, ee = "");
|
|
1697
|
+
const { encryptedFile: C, photo: y } = s.detail[0];
|
|
1698
|
+
g(it, bt = C, bt);
|
|
1699
|
+
const W = (await ot(y)).split(",");
|
|
1700
|
+
if (t(19, Fe = !1), g(te, A = z.OK, A), g(Ce, $.isLoading = !0, $), g(Oe, m = !0, m), Le = !1, g(ke, le = W[0], le), g(ue, S = W[1], S), g(Be, L = W[1], L), !Ht) {
|
|
1701
|
+
let se, Ne, mi, _i;
|
|
1702
|
+
try {
|
|
1703
|
+
if (!yi(Ae))
|
|
1704
|
+
throw new Error("FACE_TOO_SMALL");
|
|
1705
|
+
const x = Vs();
|
|
1706
|
+
if (x)
|
|
1707
|
+
throw new Error(x);
|
|
1708
|
+
({ bodyParts: se, icaoWarnings: Ne } = await at(L, _e, (await ot(C)).split(",")[1])), window.dispatchEvent(new CustomEvent(
|
|
1709
|
+
"face-unconformities-validated",
|
|
1710
|
+
{
|
|
1711
|
+
detail: {
|
|
1712
|
+
bodyParts: se,
|
|
1713
|
+
icaoWarnings: Ne,
|
|
1714
|
+
status: A
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
));
|
|
1718
|
+
} catch (x) {
|
|
1719
|
+
console.error(x);
|
|
1720
|
+
let pe = Ee.UNKNOWN, Pe = [], gi = [];
|
|
1721
|
+
x instanceof Ut && x.response?.status === 400 ? x.response.data && Array.isArray(x.response.data.bodyParts) ? (Pe = x.response.data.bodyParts, gi = x.response.data.icaoWarnings, mi = x.response.data.invalidLivenessCounter, _i = x.response.data.invalidLivenessLimit, pe = Pe.find((ks) => ks.livenessResult.error)?.livenessResult.error_code, g(te, A = z.LIVENESS_DETECTION_FAILURE, A), t(20, ee = Ee[pe]), console.error("Liveness error:", pe)) : g(te, A = z.TEMPLATE_EXTRACTION_ERROR, A) : x instanceof Error && js.includes(x.message) ? (g(te, A = z.UNKNOWN_LIVENESS_ERROR, A), pe = x.message, t(20, ee = Ee[pe]), Pe = fi(), Pe[0].livenessResult = {
|
|
1722
|
+
error: ee,
|
|
1723
|
+
error_code: pe
|
|
1724
|
+
}) : _e && Ge.fire({
|
|
1725
|
+
icon: "error",
|
|
1726
|
+
title: "Falha ao comunicar com serviço de Liveness"
|
|
1727
|
+
}), g(Ce, $.isLoading = !1, $), window.dispatchEvent(new CustomEvent(
|
|
1728
|
+
"face-unconformities-validated",
|
|
1729
|
+
{
|
|
1730
|
+
detail: {
|
|
1731
|
+
bodyParts: Pe,
|
|
1732
|
+
errorCode: pe,
|
|
1733
|
+
translatedError: ye(ee),
|
|
1734
|
+
status: A,
|
|
1735
|
+
icaoWarnings: gi,
|
|
1736
|
+
invalidLivenessCounter: mi,
|
|
1737
|
+
invalidLivenessLimit: _i
|
|
1738
|
+
}
|
|
1739
|
+
}
|
|
1740
|
+
));
|
|
1741
|
+
return;
|
|
1742
|
+
}
|
|
1743
|
+
if (A !== z.OK) {
|
|
1744
|
+
Ne && Me(Ne), g(Ce, $.isLoading = !1, $);
|
|
1745
|
+
return;
|
|
1746
|
+
}
|
|
1747
|
+
se[0].livenessResult && ri(se[0].livenessResult), se.length !== 0 && se[0].data && g(ue, S = se[0].data, S), Me(Ne);
|
|
1748
|
+
return;
|
|
1749
|
+
}
|
|
1750
|
+
let V, Z;
|
|
1751
|
+
try {
|
|
1752
|
+
Z = await Ks(C), ri(Z.data);
|
|
1753
|
+
} catch (se) {
|
|
1754
|
+
g(te, A = z.UNKNOWN_LIVENESS_ERROR, A), console.error(se), se instanceof Ut && se.response?.status === 400 ? (V = se.response.data.error_code, t(20, ee = Ee[V]), console.error("Liveness error:", V), g(te, A = z.LIVENESS_DETECTION_FAILURE, A)) : Ge.fire({
|
|
1755
|
+
icon: "error",
|
|
1756
|
+
title: "Falha ao comunicar com serviço de Liveness"
|
|
1757
|
+
});
|
|
1758
|
+
}
|
|
1759
|
+
if (A !== z.OK) {
|
|
1760
|
+
g(Ce, $.isLoading = !1, $), window.dispatchEvent(new CustomEvent(
|
|
1761
|
+
"face-unconformities-validated",
|
|
1762
|
+
{
|
|
1763
|
+
detail: {
|
|
1764
|
+
bodyParts: [
|
|
1765
|
+
{
|
|
1766
|
+
bodyPart: "FACE",
|
|
1767
|
+
data: L,
|
|
1768
|
+
livenessBlob: (await ot(C)).split(",")[1],
|
|
1769
|
+
...Z && { livenessResult: Z }
|
|
1770
|
+
}
|
|
1771
|
+
],
|
|
1772
|
+
...V && { errorCode: V },
|
|
1773
|
+
...ee && { translatedError: ye(ee) },
|
|
1774
|
+
status: A
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
));
|
|
1778
|
+
return;
|
|
1779
|
+
}
|
|
1780
|
+
let { bodyParts: Se, icaoWarnings: hi } = await at(L, _e);
|
|
1781
|
+
window.dispatchEvent(new CustomEvent(
|
|
1782
|
+
"face-unconformities-validated",
|
|
1783
|
+
{
|
|
1784
|
+
detail: {
|
|
1785
|
+
bodyParts: Se,
|
|
1786
|
+
icaoWarnings: hi,
|
|
1787
|
+
status: A,
|
|
1788
|
+
errorCode: V,
|
|
1789
|
+
...ee && { translatedError: ye(ee) }
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
)), Se[0].data && g(ue, S = Se[0].data, S), Me(hi);
|
|
1793
|
+
});
|
|
1794
|
+
}
|
|
1795
|
+
async function ve(s) {
|
|
1796
|
+
if (!Xe) {
|
|
1797
|
+
g(J, l = U.CAMERA_ORIENTATION_PORTRAIT, l);
|
|
1798
|
+
return;
|
|
1799
|
+
}
|
|
1800
|
+
await ai(), K() ? Lt() : await ci(p.videoWidth, p.videoHeight, s);
|
|
1801
|
+
}
|
|
1802
|
+
async function Lt() {
|
|
1803
|
+
if (K()) {
|
|
1804
|
+
if (await ai(), !h[0]?.deviceId) {
|
|
1805
|
+
try {
|
|
1806
|
+
await ki(640, 480);
|
|
1807
|
+
} catch (s) {
|
|
1808
|
+
const C = s, y = Re(s) && s.constraint ? s.constraint : "";
|
|
1809
|
+
console.error(C.message, y), Re(C) && "message" in C && C.message.includes("Requested device not found") && g(J, l = U.DEVICE_NOT_FOUND_ERROR, l);
|
|
1810
|
+
}
|
|
1811
|
+
await Vt(), g(ge, c = h[0].deviceId, c);
|
|
1812
|
+
}
|
|
1813
|
+
g(J, l = U.OK, l), Q && "openCamera" in Q && Q.openCamera(), Le = !0, t(18, re = !1), t(17, Qe = !0);
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
async function Ye() {
|
|
1817
|
+
if (be && !Xt)
|
|
1818
|
+
return Ue(F, Ye);
|
|
1819
|
+
if (F) {
|
|
1820
|
+
if (gt !== st.Face && !kt)
|
|
1821
|
+
return Ue(F, Ye);
|
|
1822
|
+
g(Ve, n = !0, n), g(tt, Ie = !1, Ie), be && (a || g(Je, a = !0, a)), Ue(F, Ye);
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
async function li() {
|
|
1826
|
+
if (g(te, A = z.OK, A), K()) {
|
|
1827
|
+
t(19, Fe = !0), Q.takePhoto();
|
|
1828
|
+
return;
|
|
1829
|
+
}
|
|
1830
|
+
let s = null;
|
|
1831
|
+
try {
|
|
1832
|
+
if (be) {
|
|
1833
|
+
const C = await $s(F, It);
|
|
1834
|
+
if (s = C.canvas, g(Oe, m = !0, m), !C.result) {
|
|
1835
|
+
const Z = s.toDataURL("image/jpeg").split(",");
|
|
1836
|
+
throw g(ke, le = Z[0], le), g(ue, S = Z[1], S), new Error("FACE_NOT_FOUND");
|
|
1837
|
+
}
|
|
1838
|
+
const y = s.toDataURL("image/jpeg").split(",");
|
|
1839
|
+
g(ke, le = y[0], le), g(ue, S = y[1], S), g(Be, L = y[1], L);
|
|
1840
|
+
let W, V;
|
|
1841
|
+
if (!yi(Ae))
|
|
1842
|
+
throw new Error("FACE_TOO_SMALL");
|
|
1843
|
+
({ bodyParts: W, icaoWarnings: V } = await at(S, _e)), window.dispatchEvent(new CustomEvent(
|
|
1844
|
+
"face-unconformities-validated",
|
|
1845
|
+
{
|
|
1846
|
+
detail: {
|
|
1847
|
+
bodyParts: W,
|
|
1848
|
+
icaoWarnings: V,
|
|
1849
|
+
status: A
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
)), W.length !== 0 && W[0].data && g(ue, S = W[0].data, S), Me(V);
|
|
1853
|
+
} else {
|
|
1854
|
+
g(Oe, m = !0, m);
|
|
1855
|
+
const C = await Zi();
|
|
1856
|
+
g(ke, le = C[0], le), g(ue, S = C[1], S), g(Be, L = C[1], L);
|
|
1857
|
+
let { bodyParts: y, icaoWarnings: W } = await at(S, _e);
|
|
1858
|
+
window.dispatchEvent(new CustomEvent(
|
|
1859
|
+
"face-unconformities-validated",
|
|
1860
|
+
{
|
|
1861
|
+
detail: {
|
|
1862
|
+
bodyParts: y,
|
|
1863
|
+
icaoWarnings: W,
|
|
1864
|
+
status: A
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1867
|
+
)), y.length !== 0 && y[0].data && g(ue, S = y[0].data, S), Me(W);
|
|
1868
|
+
}
|
|
1869
|
+
} catch (C) {
|
|
1870
|
+
console.error(C);
|
|
1871
|
+
let y = Ee.UNKNOWN, W = [], V = [];
|
|
1872
|
+
if (C instanceof Ut && C.response?.status === 400)
|
|
1873
|
+
if (C.response.data && Array.isArray(C.response.data.bodyParts)) {
|
|
1874
|
+
W = C.response.data.bodyParts, V = C.response.data.icaoWarnings;
|
|
1875
|
+
const Z = W.find((Se) => Se.livenessResult.error);
|
|
1876
|
+
y = Z?.livenessResult.error_code, g(te, A = z.LIVENESS_DETECTION_FAILURE, A), Z?.livenessResult.error_code || g(te, A = z.UNKNOWN_LIVENESS_ERROR, A), t(20, ee = Ee[y]), console.error("Liveness error:", y);
|
|
1877
|
+
} else
|
|
1878
|
+
g(te, A = z.TEMPLATE_EXTRACTION_ERROR, A);
|
|
1879
|
+
else
|
|
1880
|
+
C instanceof Error && ["FACE_NOT_FOUND", "FACE_TOO_SMALL"].includes(C.message) ? (g(te, A = z.LIVENESS_DETECTION_FAILURE, A), y = C.message, t(20, ee = Ee[y]), W = fi()) : (g(te, A = z.UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE, A), _e && Ge.fire({
|
|
1881
|
+
icon: "error",
|
|
1882
|
+
title: "Falha ao comunicar com serviço de Liveness"
|
|
1883
|
+
}));
|
|
1884
|
+
g(Ce, $.isLoading = !1, $), window.dispatchEvent(new CustomEvent(
|
|
1885
|
+
"face-unconformities-validated",
|
|
1886
|
+
{
|
|
1887
|
+
detail: {
|
|
1888
|
+
bodyParts: W,
|
|
1889
|
+
errorCode: y,
|
|
1890
|
+
translatedError: ye(ee),
|
|
1891
|
+
status: A,
|
|
1892
|
+
icaoWarnings: V
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
));
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
function Ze() {
|
|
1899
|
+
const s = {
|
|
1900
|
+
bodyPart: "FACE",
|
|
1901
|
+
data: S,
|
|
1902
|
+
justification: M
|
|
1903
|
+
};
|
|
1904
|
+
g(Nt, D = !0, D), ct(it) && ot(ct(it)).then((C) => {
|
|
1905
|
+
s.livenessBlob = C.split(",")[1];
|
|
1906
|
+
}), window.dispatchEvent(new CustomEvent("export-face", { detail: s }));
|
|
1907
|
+
}
|
|
1908
|
+
function Te() {
|
|
1909
|
+
window.dispatchEvent(new CustomEvent("face-scrapped")), ni(), re && Lt();
|
|
1910
|
+
}
|
|
1911
|
+
function ri(s) {
|
|
1912
|
+
let C = "", y = "success";
|
|
1913
|
+
s.isAlive ? C = `Vivacidade de face (${s.face_liveness.probability.toFixed(2)}) e de captura (${s.capture_liveness.probability}, ${s.capture_liveness.score.toFixed(2)}) verificados!` : s?.face_liveness?.probability && (y = "error", C = `Vivacidade de face (${s.face_liveness.probability.toFixed(2)}) e de captura (${s.capture_liveness.probability}, ${s.capture_liveness.score.toFixed(2)}) insuficientes!`), q && Ge.fire({ icon: y, title: C });
|
|
1914
|
+
}
|
|
1915
|
+
async function ci(s, C, y) {
|
|
1916
|
+
try {
|
|
1917
|
+
const { stream: W, deviceId: V } = await ki(oe.width, oe.height, f, y);
|
|
1918
|
+
g(bi, _ = W, _), g(ge, c = V || h[0].deviceId, c);
|
|
1919
|
+
} catch (W) {
|
|
1920
|
+
const V = W, Z = Re(W) && W.constraint ? W.constraint : "";
|
|
1921
|
+
console.error(V.message, Z), Re(V) && "message" in V && V.message.toLowerCase().includes("permission") ? (console.error("User didn't give permission to use camera!"), g(J, l = U.CAMERA_DENIED_ERROR, l)) : Re(V) && "message" in V && V.message.toLowerCase().includes("not found") && !ce() ? g(J, l = U.DEVICE_NOT_FOUND_ERROR, l) : Z.includes("width") || Z.includes("height") ? (console.error(`Camera does not meet the minimum supported requirements! (${Z})`), g(J, l = U.CAMERA_UNSUPPORTED, l)) : (g(J, l = U.CAMERA_DENIED_ERROR, l), console.error("Unable to open camera!"));
|
|
1922
|
+
}
|
|
1923
|
+
}
|
|
1924
|
+
async function xe() {
|
|
1925
|
+
g(ge, c = "", c), await ve();
|
|
1926
|
+
}
|
|
1927
|
+
function Yi() {
|
|
1928
|
+
navigator.mediaDevices.ondevicechange = async (s) => {
|
|
1929
|
+
s.type == "devicechange" && (await Vt(), l !== U.OK ? await xe() : (!K() && !_.active || K() && !re) && (nt(Q), g(J, l = U.DEVICE_NOT_FOUND_ERROR, l), t(18, re = !0)));
|
|
1930
|
+
};
|
|
1931
|
+
}
|
|
1932
|
+
async function ui() {
|
|
1933
|
+
g($e, r = !1, r);
|
|
1934
|
+
const s = (/* @__PURE__ */ new Date()).getTime();
|
|
1935
|
+
if (s - Ct > 5e3) {
|
|
1936
|
+
Ct = s;
|
|
1937
|
+
try {
|
|
1938
|
+
if (F.width === 0 || F.height === 0)
|
|
1939
|
+
return;
|
|
1940
|
+
const y = await eo(F);
|
|
1941
|
+
if (y < 50) {
|
|
1942
|
+
g(we, Y = "faceCollector.illuminationTooLow", Y);
|
|
1943
|
+
return;
|
|
1944
|
+
}
|
|
1945
|
+
if (y > 180) {
|
|
1946
|
+
g(we, Y = "faceCollector.illuminationTooHigh", Y);
|
|
1947
|
+
return;
|
|
1948
|
+
}
|
|
1949
|
+
} catch (y) {
|
|
1950
|
+
console.warn("An error occurred while getting the video lighting level: ", y);
|
|
1951
|
+
}
|
|
1952
|
+
try {
|
|
1953
|
+
if (await to(F) < 4.5) {
|
|
1954
|
+
g(we, Y = "faceCollector.lowSharpness", Y);
|
|
1955
|
+
return;
|
|
1956
|
+
}
|
|
1957
|
+
} catch (y) {
|
|
1958
|
+
console.warn("An error occurred while getting the video sharpness level: ", y);
|
|
1959
|
+
}
|
|
1960
|
+
g(we, Y = "faceCollector.faceWasNotFound", Y);
|
|
1961
|
+
} else
|
|
1962
|
+
wt || (wt = !0, setTimeout(
|
|
1963
|
+
() => {
|
|
1964
|
+
let y = [
|
|
1965
|
+
"faceCollector.faceWasNotFound",
|
|
1966
|
+
"faceCollector.illuminationTooLow",
|
|
1967
|
+
"faceCollector.lowSharpness",
|
|
1968
|
+
"faceCollector.illuminationTooHigh"
|
|
1969
|
+
];
|
|
1970
|
+
wt = !1, t(16, qe = !1), Y && !y.includes(Y) && g(we, Y = "", Y);
|
|
1971
|
+
},
|
|
1972
|
+
1500
|
|
1973
|
+
));
|
|
1974
|
+
}
|
|
1975
|
+
function fi() {
|
|
1976
|
+
return [
|
|
1977
|
+
{
|
|
1978
|
+
bodyPart: "FACE",
|
|
1979
|
+
data: L,
|
|
1980
|
+
format: "jpg",
|
|
1981
|
+
capturedEyeToEyeDist: I,
|
|
1982
|
+
minEyeToEyeDist: Ae
|
|
1983
|
+
}
|
|
1984
|
+
];
|
|
1985
|
+
}
|
|
1986
|
+
async function Zi() {
|
|
1987
|
+
const s = document.createElement("canvas"), C = s.getContext("2d");
|
|
1988
|
+
return s.width = F.width, s.height = F.height, C?.drawImage(F, 0, 0, s.width, s.height), s.toDataURL("image/jpeg").split(",");
|
|
1989
|
+
}
|
|
1990
|
+
const xi = Mt.subscribe((s) => {
|
|
1991
|
+
let C = "";
|
|
1992
|
+
if (s.isPersonCloseEnough ? s.isPersonTooclose ? C = "faceCollector.moveAwayCamera" : s.isPersonInFrame ? s.closedMouth || (C = "faceCollector.dontOpenMouth") : C = "faceCollector.stayInFrame" : C = "faceCollector.comeCloserCamera", r && zs(C), !m && E && r && !v && !De && s.isPersonInFrame && s.closedMouth && !(!s.isPersonCloseEnough || s.isPersonTooclose)) {
|
|
1993
|
+
t(15, De = !0), oi = (/* @__PURE__ */ new Date()).getTime() + Ho;
|
|
1994
|
+
const y = setInterval(
|
|
1995
|
+
async () => {
|
|
1996
|
+
if (!E || m || v || Fe || K() && re || !s.isPersonCloseEnough || s.isPersonTooclose || !s.closedMouth || !s.isPersonInFrame) {
|
|
1997
|
+
t(15, De = !1), setTimeout(
|
|
1998
|
+
() => {
|
|
1999
|
+
},
|
|
2000
|
+
1500
|
|
2001
|
+
), clearInterval(y);
|
|
2002
|
+
return;
|
|
2003
|
+
}
|
|
2004
|
+
const W = (/* @__PURE__ */ new Date()).getTime();
|
|
2005
|
+
Math.floor((oi - W) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(y), t(15, De = !1), li());
|
|
2006
|
+
},
|
|
2007
|
+
100
|
|
2008
|
+
);
|
|
2009
|
+
}
|
|
2010
|
+
}), $i = Oe.subscribe((s) => {
|
|
2011
|
+
me && (s ? (me.classList.remove("flex"), me.classList.add("hidden")) : (me.classList.add("flex"), me.classList.remove("hidden")));
|
|
2012
|
+
}), es = St.subscribe((s) => {
|
|
2013
|
+
F && s && (console.log("setting null in video srcObject"), t(12, F.srcObject = null, F), t(12, F.src = "", F), g(ge, c = null, c));
|
|
2014
|
+
});
|
|
2015
|
+
Wt.subscribe(async (s) => {
|
|
2016
|
+
s === st.Face && (await Vt(), K() && g(ge, c = h[0]?.deviceId, c));
|
|
2017
|
+
});
|
|
2018
|
+
const ts = ge.subscribe(async (s) => {
|
|
2019
|
+
if (!(!K() && !_ || !s || K() && re))
|
|
2020
|
+
try {
|
|
2021
|
+
if (K()) {
|
|
2022
|
+
await nt(Q), await ve();
|
|
2023
|
+
return;
|
|
2024
|
+
}
|
|
2025
|
+
const C = _?.getVideoTracks()[0]?.getSettings()?.deviceId;
|
|
2026
|
+
C && C !== s && await ci(p.videoWidth, p.videoHeight, s), t(12, F.srcObject = _, F), g(St, k = !1, k), Xe ? g(J, l = U.OK, l) : g(J, l = U.CAMERA_ORIENTATION_PORTRAIT, l), _.getTracks().forEach((y) => {
|
|
2027
|
+
y.readyState === "live" && console.log(`Camera ${y.label} opened successfully!`);
|
|
2028
|
+
}), g(J, l = U.OK, l), Hs(F);
|
|
2029
|
+
} catch (C) {
|
|
2030
|
+
const y = C;
|
|
2031
|
+
t(18, re = !0), Re(y) && "message" in y && y.message.includes("Requested device not found") && g(J, l = U.DEVICE_NOT_FOUND_ERROR, l);
|
|
2032
|
+
}
|
|
2033
|
+
}), is = Wt.subscribe(async (s) => {
|
|
2034
|
+
s === st.Face && K() && !Le && !m && Dt && await ve();
|
|
2035
|
+
}), ss = Je.subscribe(async (s) => {
|
|
2036
|
+
s && di();
|
|
2037
|
+
}), os = qs.subscribe(async (s) => {
|
|
2038
|
+
if (h[0]?.deviceId) {
|
|
2039
|
+
if (!ce() || K()) {
|
|
2040
|
+
const y = (h.findIndex((V) => V.deviceId === c) + 1) % h.length, W = h[y].deviceId;
|
|
2041
|
+
K() ? g(ge, c = W, c) : (nt(), await ve(W));
|
|
2042
|
+
return;
|
|
2043
|
+
}
|
|
2044
|
+
s ? (g(et, f = Bt.REAR_CAMERA, f), await ve()) : (g(et, f = Bt.FRONT_CAMERA, f), await ve());
|
|
2045
|
+
}
|
|
2046
|
+
}), as = Js.subscribe(async (s) => {
|
|
2047
|
+
!s.isSupported || !ce() || u != "FACE" || (Xe = s.orientation.includes("portrait"), Xe ? F && !n ? await xe() : n && g(J, l = U.OK, l) : g(J, l = U.CAMERA_ORIENTATION_PORTRAIT, l));
|
|
2048
|
+
}), ns = Kt.subscribe((s) => {
|
|
2049
|
+
s && window.dispatchEvent(new CustomEvent("console-open-status", { detail: { isOpen: s } }));
|
|
2050
|
+
});
|
|
2051
|
+
async function di() {
|
|
2052
|
+
let s;
|
|
2053
|
+
try {
|
|
2054
|
+
if (At >= zo)
|
|
2055
|
+
if (At = 0, s = await co(F, Qt).withFaceLandmarks().catch((C) => {
|
|
2056
|
+
throw C;
|
|
2057
|
+
}), ie.getContext("2d")?.clearRect(0, 0, ie.width, ie.height), s != null) {
|
|
2058
|
+
const C = uo(ie, F, !0);
|
|
2059
|
+
Qs(ie, F, C);
|
|
2060
|
+
const y = fo(s, C);
|
|
2061
|
+
Xs(y) ? (Gs(y, ie, Et), g($e, r = !0, r), t(16, qe = !0), Ct = (/* @__PURE__ */ new Date()).getTime()) : ui();
|
|
2062
|
+
} else
|
|
2063
|
+
ui();
|
|
2064
|
+
else
|
|
2065
|
+
At++;
|
|
2066
|
+
} catch {
|
|
2067
|
+
t(16, qe = !0);
|
|
2068
|
+
} finally {
|
|
2069
|
+
a && Ue(F, di);
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
Ft.subscribe(async (s) => {
|
|
2073
|
+
s && (Te(), g(Ft, o = !1, o));
|
|
2074
|
+
});
|
|
2075
|
+
const ls = Ve.subscribe((s) => {
|
|
2076
|
+
s && window.dispatchEvent(new CustomEvent("brycc-camera-ready"));
|
|
2077
|
+
}), rs = tt.subscribe((s) => {
|
|
2078
|
+
s && window.dispatchEvent(new CustomEvent("brycc-face-initialized"));
|
|
2079
|
+
});
|
|
2080
|
+
Ys(() => {
|
|
2081
|
+
console.log("Destroying face collector"), nt(Q), $i(), xi(), es(), ts(), is(), clearInterval(si), ss(), os(), as(), ns(), ls(), rs(), si = 0, ii.stopDetection();
|
|
2082
|
+
});
|
|
2083
|
+
function cs(s) {
|
|
2084
|
+
rt[s ? "unshift" : "push"](() => {
|
|
2085
|
+
Q = s, t(1, Q);
|
|
2086
|
+
});
|
|
2087
|
+
}
|
|
2088
|
+
function us(s) {
|
|
2089
|
+
rt[s ? "unshift" : "push"](() => {
|
|
2090
|
+
F = s, t(12, F);
|
|
2091
|
+
});
|
|
2092
|
+
}
|
|
2093
|
+
const fs = () => {
|
|
2094
|
+
K() || (t(12, F.width = p.videoWidth, F), t(12, F.height = p.videoHeight, F), t(13, ie.width = p.videoWidth, ie), t(13, ie.height = p.videoHeight, ie));
|
|
2095
|
+
};
|
|
2096
|
+
function ds(s) {
|
|
2097
|
+
rt[s ? "unshift" : "push"](() => {
|
|
2098
|
+
ie = s, t(13, ie);
|
|
2099
|
+
});
|
|
2100
|
+
}
|
|
2101
|
+
const hs = () => Ze(), ms = () => Te();
|
|
2102
|
+
function _s(s) {
|
|
2103
|
+
rt[s ? "unshift" : "push"](() => {
|
|
2104
|
+
me = s, t(14, me);
|
|
2105
|
+
});
|
|
2106
|
+
}
|
|
2107
|
+
const gs = () => Ze(), bs = () => Te();
|
|
2108
|
+
function vs() {
|
|
2109
|
+
M = this.value, Pt.set(M);
|
|
2110
|
+
}
|
|
2111
|
+
const ps = () => Ze(), ws = () => Te();
|
|
2112
|
+
function Cs() {
|
|
2113
|
+
M = this.value, Pt.set(M);
|
|
2114
|
+
}
|
|
2115
|
+
const Es = () => Te(), ys = async () => {
|
|
2116
|
+
await xe();
|
|
2117
|
+
};
|
|
2118
|
+
return i.$$set = (s) => {
|
|
2119
|
+
"enableMinutiae" in s && t(42, Et = s.enableMinutiae), "videoDimensions" in s && t(43, yt = s.videoDimensions), "noTabs" in s && t(44, kt = s.noTabs), "weightsPath" in s && t(45, Tt = s.weightsPath), "evaluatePhoto" in s && t(2, _e = s.evaluatePhoto), "showCaptureButton" in s && t(0, Ot = s.showCaptureButton), "showUnconformities" in s && t(3, Gt = s.showUnconformities), "showConfigButton" in s && t(4, Yt = s.showConfigButton), "showAutoCaptureButton" in s && t(5, Rt = s.showAutoCaptureButton), "showCameraButton" in s && t(6, Zt = s.showCameraButton), "showJustificationField" in s && t(7, xt = s.showJustificationField), "minEyeToEyeDist" in s && t(46, Ae = s.minEyeToEyeDist), "showWatermark" in s && t(8, $t = s.showWatermark), "videoOverlay" in s && t(9, ei = s.videoOverlay), "videoOverlayTransparency" in s && t(10, ti = s.videoOverlayTransparency), "faceDetectionSensitivity" in s && t(47, It = s.faceDetectionSensitivity), "widgetInstance" in s && t(1, Q = s.widgetInstance);
|
|
2120
|
+
}, [
|
|
2121
|
+
Ot,
|
|
2122
|
+
Q,
|
|
2123
|
+
_e,
|
|
2124
|
+
Gt,
|
|
2125
|
+
Yt,
|
|
2126
|
+
Rt,
|
|
2127
|
+
Zt,
|
|
2128
|
+
xt,
|
|
2129
|
+
$t,
|
|
2130
|
+
ei,
|
|
2131
|
+
ti,
|
|
2132
|
+
Ye,
|
|
2133
|
+
F,
|
|
2134
|
+
ie,
|
|
2135
|
+
me,
|
|
2136
|
+
De,
|
|
2137
|
+
qe,
|
|
2138
|
+
Qe,
|
|
2139
|
+
re,
|
|
2140
|
+
Fe,
|
|
2141
|
+
ee,
|
|
2142
|
+
l,
|
|
2143
|
+
n,
|
|
2144
|
+
c,
|
|
2145
|
+
m,
|
|
2146
|
+
p,
|
|
2147
|
+
v,
|
|
2148
|
+
D,
|
|
2149
|
+
M,
|
|
2150
|
+
S,
|
|
2151
|
+
A,
|
|
2152
|
+
ye,
|
|
2153
|
+
$,
|
|
2154
|
+
le,
|
|
2155
|
+
qt,
|
|
2156
|
+
Jt,
|
|
2157
|
+
Je,
|
|
2158
|
+
ke,
|
|
2159
|
+
li,
|
|
2160
|
+
Ze,
|
|
2161
|
+
Te,
|
|
2162
|
+
xe,
|
|
2163
|
+
Et,
|
|
2164
|
+
yt,
|
|
2165
|
+
kt,
|
|
2166
|
+
Tt,
|
|
2167
|
+
Ae,
|
|
2168
|
+
It,
|
|
2169
|
+
cs,
|
|
2170
|
+
us,
|
|
2171
|
+
fs,
|
|
2172
|
+
ds,
|
|
2173
|
+
hs,
|
|
2174
|
+
ms,
|
|
2175
|
+
_s,
|
|
2176
|
+
gs,
|
|
2177
|
+
bs,
|
|
2178
|
+
vs,
|
|
2179
|
+
ps,
|
|
2180
|
+
ws,
|
|
2181
|
+
Cs,
|
|
2182
|
+
Es,
|
|
2183
|
+
ys
|
|
2184
|
+
];
|
|
2185
|
+
}
|
|
2186
|
+
class Qo extends ft {
|
|
2187
|
+
constructor(e) {
|
|
2188
|
+
super(), dt(
|
|
2189
|
+
this,
|
|
2190
|
+
{
|
|
2191
|
+
target: this.shadowRoot,
|
|
2192
|
+
props: mt(this.attributes),
|
|
2193
|
+
customElement: !0
|
|
2194
|
+
},
|
|
2195
|
+
Jo,
|
|
2196
|
+
Ko,
|
|
2197
|
+
ht,
|
|
2198
|
+
{
|
|
2199
|
+
enableMinutiae: 42,
|
|
2200
|
+
videoDimensions: 43,
|
|
2201
|
+
noTabs: 44,
|
|
2202
|
+
weightsPath: 45,
|
|
2203
|
+
evaluatePhoto: 2,
|
|
2204
|
+
showCaptureButton: 0,
|
|
2205
|
+
showUnconformities: 3,
|
|
2206
|
+
showConfigButton: 4,
|
|
2207
|
+
showAutoCaptureButton: 5,
|
|
2208
|
+
showCameraButton: 6,
|
|
2209
|
+
showJustificationField: 7,
|
|
2210
|
+
minEyeToEyeDist: 46,
|
|
2211
|
+
showWatermark: 8,
|
|
2212
|
+
videoOverlay: 9,
|
|
2213
|
+
videoOverlayTransparency: 10,
|
|
2214
|
+
faceDetectionSensitivity: 47,
|
|
2215
|
+
widgetInstance: 1,
|
|
2216
|
+
play: 11
|
|
2217
|
+
},
|
|
2218
|
+
null,
|
|
2219
|
+
[-1, -1, -1, -1, -1]
|
|
2220
|
+
), e && (e.target && T(e.target, this, e.anchor), e.props && (this.$set(e.props), j()));
|
|
2221
|
+
}
|
|
2222
|
+
static get observedAttributes() {
|
|
2223
|
+
return [
|
|
2224
|
+
"enableMinutiae",
|
|
2225
|
+
"videoDimensions",
|
|
2226
|
+
"noTabs",
|
|
2227
|
+
"weightsPath",
|
|
2228
|
+
"evaluatePhoto",
|
|
2229
|
+
"showCaptureButton",
|
|
2230
|
+
"showUnconformities",
|
|
2231
|
+
"showConfigButton",
|
|
2232
|
+
"showAutoCaptureButton",
|
|
2233
|
+
"showCameraButton",
|
|
2234
|
+
"showJustificationField",
|
|
2235
|
+
"minEyeToEyeDist",
|
|
2236
|
+
"showWatermark",
|
|
2237
|
+
"videoOverlay",
|
|
2238
|
+
"videoOverlayTransparency",
|
|
2239
|
+
"faceDetectionSensitivity",
|
|
2240
|
+
"widgetInstance",
|
|
2241
|
+
"play"
|
|
2242
|
+
];
|
|
2243
|
+
}
|
|
2244
|
+
get enableMinutiae() {
|
|
2245
|
+
return this.$$.ctx[42];
|
|
2246
|
+
}
|
|
2247
|
+
set enableMinutiae(e) {
|
|
2248
|
+
this.$$set({ enableMinutiae: e }), j();
|
|
2249
|
+
}
|
|
2250
|
+
get videoDimensions() {
|
|
2251
|
+
return this.$$.ctx[43];
|
|
2252
|
+
}
|
|
2253
|
+
set videoDimensions(e) {
|
|
2254
|
+
this.$$set({ videoDimensions: e }), j();
|
|
2255
|
+
}
|
|
2256
|
+
get noTabs() {
|
|
2257
|
+
return this.$$.ctx[44];
|
|
2258
|
+
}
|
|
2259
|
+
set noTabs(e) {
|
|
2260
|
+
this.$$set({ noTabs: e }), j();
|
|
2261
|
+
}
|
|
2262
|
+
get weightsPath() {
|
|
2263
|
+
return this.$$.ctx[45];
|
|
2264
|
+
}
|
|
2265
|
+
set weightsPath(e) {
|
|
2266
|
+
this.$$set({ weightsPath: e }), j();
|
|
2267
|
+
}
|
|
2268
|
+
get evaluatePhoto() {
|
|
2269
|
+
return this.$$.ctx[2];
|
|
2270
|
+
}
|
|
2271
|
+
set evaluatePhoto(e) {
|
|
2272
|
+
this.$$set({ evaluatePhoto: e }), j();
|
|
2273
|
+
}
|
|
2274
|
+
get showCaptureButton() {
|
|
2275
|
+
return this.$$.ctx[0];
|
|
2276
|
+
}
|
|
2277
|
+
set showCaptureButton(e) {
|
|
2278
|
+
this.$$set({ showCaptureButton: e }), j();
|
|
2279
|
+
}
|
|
2280
|
+
get showUnconformities() {
|
|
2281
|
+
return this.$$.ctx[3];
|
|
2282
|
+
}
|
|
2283
|
+
set showUnconformities(e) {
|
|
2284
|
+
this.$$set({ showUnconformities: e }), j();
|
|
2285
|
+
}
|
|
2286
|
+
get showConfigButton() {
|
|
2287
|
+
return this.$$.ctx[4];
|
|
2288
|
+
}
|
|
2289
|
+
set showConfigButton(e) {
|
|
2290
|
+
this.$$set({ showConfigButton: e }), j();
|
|
2291
|
+
}
|
|
2292
|
+
get showAutoCaptureButton() {
|
|
2293
|
+
return this.$$.ctx[5];
|
|
2294
|
+
}
|
|
2295
|
+
set showAutoCaptureButton(e) {
|
|
2296
|
+
this.$$set({ showAutoCaptureButton: e }), j();
|
|
2297
|
+
}
|
|
2298
|
+
get showCameraButton() {
|
|
2299
|
+
return this.$$.ctx[6];
|
|
2300
|
+
}
|
|
2301
|
+
set showCameraButton(e) {
|
|
2302
|
+
this.$$set({ showCameraButton: e }), j();
|
|
2303
|
+
}
|
|
2304
|
+
get showJustificationField() {
|
|
2305
|
+
return this.$$.ctx[7];
|
|
2306
|
+
}
|
|
2307
|
+
set showJustificationField(e) {
|
|
2308
|
+
this.$$set({ showJustificationField: e }), j();
|
|
2309
|
+
}
|
|
2310
|
+
get minEyeToEyeDist() {
|
|
2311
|
+
return this.$$.ctx[46];
|
|
2312
|
+
}
|
|
2313
|
+
set minEyeToEyeDist(e) {
|
|
2314
|
+
this.$$set({ minEyeToEyeDist: e }), j();
|
|
2315
|
+
}
|
|
2316
|
+
get showWatermark() {
|
|
2317
|
+
return this.$$.ctx[8];
|
|
2318
|
+
}
|
|
2319
|
+
set showWatermark(e) {
|
|
2320
|
+
this.$$set({ showWatermark: e }), j();
|
|
2321
|
+
}
|
|
2322
|
+
get videoOverlay() {
|
|
2323
|
+
return this.$$.ctx[9];
|
|
2324
|
+
}
|
|
2325
|
+
set videoOverlay(e) {
|
|
2326
|
+
this.$$set({ videoOverlay: e }), j();
|
|
2327
|
+
}
|
|
2328
|
+
get videoOverlayTransparency() {
|
|
2329
|
+
return this.$$.ctx[10];
|
|
2330
|
+
}
|
|
2331
|
+
set videoOverlayTransparency(e) {
|
|
2332
|
+
this.$$set({ videoOverlayTransparency: e }), j();
|
|
2333
|
+
}
|
|
2334
|
+
get faceDetectionSensitivity() {
|
|
2335
|
+
return this.$$.ctx[47];
|
|
2336
|
+
}
|
|
2337
|
+
set faceDetectionSensitivity(e) {
|
|
2338
|
+
this.$$set({ faceDetectionSensitivity: e }), j();
|
|
2339
|
+
}
|
|
2340
|
+
get widgetInstance() {
|
|
2341
|
+
return this.$$.ctx[1];
|
|
2342
|
+
}
|
|
2343
|
+
set widgetInstance(e) {
|
|
2344
|
+
this.$$set({ widgetInstance: e }), j();
|
|
2345
|
+
}
|
|
2346
|
+
get play() {
|
|
2347
|
+
return this.$$.ctx[11];
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
2350
|
+
customElements.define("face-collector", Qo);
|
|
2351
|
+
export {
|
|
2352
|
+
Qo as default
|
|
2353
|
+
};
|