UNPKG

bry-biometric-collector

Version:

BRy web-collector component for biometric capture.

1,608 lines 51.1 kB
import { S as H, q as P, r as F, t as G, x as M, y as S, z as I, B as T, C as h, I as g, J as E, X as we, $ as le, bo as Y, bp as $, T as B, bg as O, U as p, _ as L, bq as x, a2 as b, br as Q, a3 as C, b2 as R, a0 as pe, a6 as ie, V as X, a9 as ve, aV as re, N as ee, ad as se, E as V, G as k, H as Z, D as z, L as Ae, bj as ae, Z as Le, ao as _e, M as q, b1 as U, bh as te, bs as Ie, O as J, P as W, Q as K, R as oe, ag as Ce } from "./main_f7bde95f_3.2.1.js"; function ke(i) { let e, s, a, t, l = ( /*$_*/ i[2]("cameraStatus.deviceMustBeInLandscape") + "" ), u, o, n, f = ( /*$_*/ i[2]("cameraStatus.rotateDevice") + "" ), c, D = [ { class: "text-[8em] mx-auto" }, { xmlns: "http://www.w3.org/2000/svg" }, { width: "1em" }, { height: "1em" }, { viewBox: "0 0 24 24" }, /*$$props*/ i[3] ], d = {}; for (let m = 0; m < D.length; m += 1) d = Y(d, D[m]); return { c() { e = O("svg"), s = O("path"), a = p(), t = I("span"), u = L(l), o = p(), n = I("span"), c = L(f), h(s, "fill", "currentColor"), h(s, "d", "M9 1H3a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2m0 14H3V3h6zm12-2h-8v2h8v6H9v-1H6v1a2 2 0 0 0 2 2h13a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2m2-3l-4-2l1.91-.91A7.52 7.52 0 0 0 14 2.5V1a9 9 0 0 1 9 9"), x(e, d), h(t, "class", "text-xl font-bold text-center"), h(n, "class", "m-auto text-base block text-center"); }, m(m, j) { M(m, e, j), b(e, s), M(m, a, j), M(m, t, j), b(t, u), M(m, o, j), M(m, n, j), b(n, c); }, p(m, j) { x(e, d = Q(D, [ { class: "text-[8em] mx-auto" }, { xmlns: "http://www.w3.org/2000/svg" }, { width: "1em" }, { height: "1em" }, { viewBox: "0 0 24 24" }, j & /*$$props*/ 8 && /*$$props*/ m[3] ])), j & /*$_*/ 4 && l !== (l = /*$_*/ m[2]("cameraStatus.deviceMustBeInLandscape") + "") && C(u, l), j & /*$_*/ 4 && f !== (f = /*$_*/ m[2]("cameraStatus.rotateDevice") + "") && C(c, f); }, d(m) { m && g(e), m && g(a), m && g(t), m && g(o), m && g(n); } }; } function ye(i) { let e, s, a, t, l = ( /*$_*/ i[2]("cameraStatus.deviceMustBeInPortrait") + "" ), u, o, n, f = ( /*$_*/ i[2]("cameraStatus.rotateDevice") + "" ), c, D = [ { class: "text-[8em] mx-auto" }, { xmlns: "http://www.w3.org/2000/svg" }, { width: "1em" }, { height: "1em" }, { viewBox: "0 0 24 24" }, /*$$props*/ i[3] ], d = {}; for (let m = 0; m < D.length; m += 1) d = Y(d, D[m]); return { c() { e = O("svg"), s = O("path"), a = p(), t = I("span"), u = L(l), o = p(), n = I("span"), c = L(f), h(s, "fill", "currentColor"), h(s, "d", "M9 1H3a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h1v-3H3V3h6v8h2V3a2 2 0 0 0-2-2m14 20v-6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h13a2 2 0 0 0 2-2M9 21v-6h12v6zm14-11h-1.5c0-3-1.81-5.73-4.58-6.91L16 5l-2-4a9 9 0 0 1 9 9"), x(e, d), h(t, "class", "text-xl font-bold text-center"), h(n, "class", "m-auto text-base block text-center"); }, m(m, j) { M(m, e, j), b(e, s), M(m, a, j), M(m, t, j), b(t, u), M(m, o, j), M(m, n, j), b(n, c); }, p(m, j) { x(e, d = Q(D, [ { class: "text-[8em] mx-auto" }, { xmlns: "http://www.w3.org/2000/svg" }, { width: "1em" }, { height: "1em" }, { viewBox: "0 0 24 24" }, j & /*$$props*/ 8 && /*$$props*/ m[3] ])), j & /*$_*/ 4 && l !== (l = /*$_*/ m[2]("cameraStatus.deviceMustBeInPortrait") + "") && C(u, l), j & /*$_*/ 4 && f !== (f = /*$_*/ m[2]("cameraStatus.rotateDevice") + "") && C(c, f); }, d(m) { m && g(e), m && g(a), m && g(t), m && g(o), m && g(n); } }; } function Se(i) { let e, s, a, t, l = ( /*$_*/ i[2]("cameraStatus.biometricCapture") + "" ), u, o, n, f = ( /*$_*/ i[2]("cameraStatus.startCapture") + "" ), c, D, d, m = [ { class: "text-[8em] mx-auto" }, { xmlns: "http://www.w3.org/2000/svg" }, { width: "1em" }, { height: "1em" }, { viewBox: "0 0 24 24" }, /*$$props*/ i[3] ], j = {}; for (let w = 0; w < m.length; w += 1) j = Y(j, m[w]); return { c() { e = O("svg"), s = O("path"), a = p(), t = I("span"), u = L(l), o = p(), n = I("button"), c = L(f), h(s, "fill", "currentColor"), h(s, "d", "M16 2H8a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3m1 17a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-1h10Zm-5-5a3 3 0 0 1 2.82 2H9.18A3 3 0 0 1 12 14m-1-3a1 1 0 1 1 1 1a1 1 0 0 1-1-1m6 5h-.1a5 5 0 0 0-2.42-3.32A3 3 0 0 0 15 11a3 3 0 0 0-6 0a3 3 0 0 0 .52 1.68A5 5 0 0 0 7.1 16H7V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1ZM12 5a1 1 0 1 0 1 1a1 1 0 0 0-1-1"), x(e, j), h(t, "class", "text-xl font-bold text-center"), h(n, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto"); }, m(w, v) { M(w, e, v), b(e, s), M(w, a, v), M(w, t, v), b(t, u), M(w, o, v), M(w, n, v), b(n, c), D || (d = R( n, "click", /*click_handler_5*/ i[9] ), D = !0); }, p(w, v) { x(e, j = Q(m, [ { class: "text-[8em] mx-auto" }, { xmlns: "http://www.w3.org/2000/svg" }, { width: "1em" }, { height: "1em" }, { viewBox: "0 0 24 24" }, v & /*$$props*/ 8 && /*$$props*/ w[3] ])), v & /*$_*/ 4 && l !== (l = /*$_*/ w[2]("cameraStatus.biometricCapture") + "") && C(u, l), v & /*$_*/ 4 && f !== (f = /*$_*/ w[2]("cameraStatus.startCapture") + "") && C(c, f); }, d(w) { w && g(e), w && g(a), w && g(t), w && g(o), w && g(n), D = !1, d(); } }; } function Te(i) { let e, s, a, t, l = ( /*$_*/ i[2]("cameraStatus.cameraNotSupported") + "" ), u, o, n, f = ( /*$_*/ i[2]("cameraStatus.connectAnotherCamera") + "" ), c, D, d, m = ( /*$_*/ i[2]("cameraStatus.restart") + "" ), j, w, v, y = [ { class: "text-[8em] mx-auto" }, { xmlns: "http://www.w3.org/2000/svg" }, { width: "1em" }, { height: "1em" }, { viewBox: "0 0 256 256" }, /*$$props*/ i[3] ], A = {}; for (let r = 0; r < y.length; r += 1) A = Y(A, y[r]); return { c() { e = O("svg"), s = O("path"), a = p(), t = I("span"), u = L(l), o = p(), n = I("span"), c = L(f), D = p(), d = I("button"), j = L(m), h(s, "fill", "currentColor"), h(s, "d", "M249.45 69.31a12 12 0 0 0-12.51 1L212 88.43V72a20 20 0 0 0-20-20h-68.12a12 12 0 0 0 0 24H188v68a12 12 0 0 0 4.46 9.33c.15.13.31.25.48.38l44 32A12 12 0 0 0 256 176V80a12 12 0 0 0-6.55-10.69M232 152.43l-20-14.54v-19.78l20-14.54ZM56.88 31.93a12 12 0 1 0-17.76 16.14L42.69 52H32a20 20 0 0 0-20 20v112a20 20 0 0 0 20 20h148.87l18.25 20.07a12 12 0 0 0 17.76-16.14ZM36 180V76h28.51l94.55 104Z"), x(e, A), h(t, "class", "text-xl font-bold text-center"), h(n, "class", "m-auto text-base block text-center"), h(d, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto"); }, m(r, N) { M(r, e, N), b(e, s), M(r, a, N), M(r, t, N), b(t, u), M(r, o, N), M(r, n, N), b(n, c), M(r, D, N), M(r, d, N), b(d, j), w || (v = R( d, "click", /*click_handler_4*/ i[8] ), w = !0); }, p(r, N) { x(e, A = Q(y, [ { class: "text-[8em] mx-auto" }, { xmlns: "http://www.w3.org/2000/svg" }, { width: "1em" }, { height: "1em" }, { viewBox: "0 0 256 256" }, N & /*$$props*/ 8 && /*$$props*/ r[3] ])), N & /*$_*/ 4 && l !== (l = /*$_*/ r[2]("cameraStatus.cameraNotSupported") + "") && C(u, l), N & /*$_*/ 4 && f !== (f = /*$_*/ r[2]("cameraStatus.connectAnotherCamera") + "") && C(c, f), N & /*$_*/ 4 && m !== (m = /*$_*/ r[2]("cameraStatus.restart") + "") && C(j, m); }, d(r) { r && g(e), r && g(a), r && g(t), r && g(o), r && g(n), r && g(D), r && g(d), w = !1, v(); } }; } function Ee(i) { let e, s, a, t, l = ( /*$_*/ i[2]("cameraStatus.stayOnSameTab") + "" ), u, o, n, f = ( /*$_*/ i[2]("cameraStatus.clickRestartToRecapture") + "" ), c, D, d, m = ( /*$_*/ i[2]("cameraStatus.restart") + "" ), j, w, v, y = [ { class: "text-[8em] mx-auto" }, { xmlns: "http://www.w3.org/2000/svg" }, { width: "1em" }, { height: "1em" }, { viewBox: "0 0 256 256" }, /*$$props*/ i[3] ], A = {}; for (let r = 0; r < y.length; r += 1) A = Y(A, y[r]); return { c() { e = O("svg"), s = O("path"), a = p(), t = I("span"), u = L(l), o = p(), n = I("span"), c = L(f), D = p(), d = I("button"), j = L(m), h(s, "fill", "currentColor"), h(s, "d", "M236.8 188.09L149.35 36.22a24.76 24.76 0 0 0-42.7 0L19.2 188.09a23.51 23.51 0 0 0 0 23.72A24.35 24.35 0 0 0 40.55 224h174.9a24.35 24.35 0 0 0 21.33-12.19a23.51 23.51 0 0 0 .02-23.72m-13.87 15.71a8.5 8.5 0 0 1-7.48 4.2H40.55a8.5 8.5 0 0 1-7.48-4.2a7.59 7.59 0 0 1 0-7.72l87.45-151.87a8.75 8.75 0 0 1 15 0l87.45 151.87a7.59 7.59 0 0 1-.04 7.72M120 144v-40a8 8 0 0 1 16 0v40a8 8 0 0 1-16 0m20 36a12 12 0 1 1-12-12a12 12 0 0 1 12 12"), x(e, A), h(t, "class", "text-xl font-bold text-center"), h(n, "class", "m-auto text-base block text-center"), h(d, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto"); }, m(r, N) { M(r, e, N), b(e, s), M(r, a, N), M(r, t, N), b(t, u), M(r, o, N), M(r, n, N), b(n, c), M(r, D, N), M(r, d, N), b(d, j), w || (v = R( d, "click", /*click_handler_3*/ i[7] ), w = !0); }, p(r, N) { x(e, A = Q(y, [ { class: "text-[8em] mx-auto" }, { xmlns: "http://www.w3.org/2000/svg" }, { width: "1em" }, { height: "1em" }, { viewBox: "0 0 256 256" }, N & /*$$props*/ 8 && /*$$props*/ r[3] ])), N & /*$_*/ 4 && l !== (l = /*$_*/ r[2]("cameraStatus.stayOnSameTab") + "") && C(u, l), N & /*$_*/ 4 && f !== (f = /*$_*/ r[2]("cameraStatus.clickRestartToRecapture") + "") && C(c, f), N & /*$_*/ 4 && m !== (m = /*$_*/ r[2]("cameraStatus.restart") + "") && C(j, m); }, d(r) { r && g(e), r && g(a), r && g(t), r && g(o), r && g(n), r && g(D), r && g(d), w = !1, v(); } }; } function Oe(i) { let e, s, a, t, l = ( /*$_*/ i[2]("cameraStatus.cameraInUse") + "" ), u, o, n, f = ( /*$_*/ i[2]("cameraStatus.ensureCameraNotInUse") + "" ), c, D, d, m = ( /*$_*/ i[2]("cameraStatus.restart") + "" ), j, w, v, y = [ { class: "text-[8em] mx-auto" }, { xmlns: "http://www.w3.org/2000/svg" }, { width: "1em" }, { height: "1em" }, { viewBox: "0 0 256 256" }, /*$$props*/ i[3] ], A = {}; for (let r = 0; r < y.length; r += 1) A = Y(A, y[r]); return { c() { e = O("svg"), s = O("path"), a = p(), t = I("span"), u = L(l), o = p(), n = I("span"), c = L(f), D = p(), d = I("button"), j = L(m), h(s, "fill", "currentColor"), h(s, "d", "M56.88 31.93a12 12 0 1 0-17.76 16.14l4 4.37A28 28 0 0 0 20 80v112a28 28 0 0 0 28 28h147.42l3.7 4.07a12 12 0 0 0 17.76-16.14Zm49.35 90L136 154.64a24 24 0 0 1-29.77-32.75ZM48 196a4 4 0 0 1-4-4V80a4 4 0 0 1 4-4h16.51l24.92 27.41a48 48 0 0 0 63.34 69.67L173.6 196ZM236 80v94.14a12 12 0 0 1-24 0V80a4 4 0 0 0-4-4h-32a12 12 0 0 1-10-5.34L153.57 52h-51.51a12 12 0 0 1 0-24H160a12 12 0 0 1 10 5.34L182.42 52H208a28 28 0 0 1 28 28"), x(e, A), h(t, "class", "text-xl font-bold text-center"), h(n, "class", "m-auto text-base block text-center"), h(d, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto"); }, m(r, N) { M(r, e, N), b(e, s), M(r, a, N), M(r, t, N), b(t, u), M(r, o, N), M(r, n, N), b(n, c), M(r, D, N), M(r, d, N), b(d, j), w || (v = R( d, "click", /*click_handler_2*/ i[6] ), w = !0); }, p(r, N) { x(e, A = Q(y, [ { class: "text-[8em] mx-auto" }, { xmlns: "http://www.w3.org/2000/svg" }, { width: "1em" }, { height: "1em" }, { viewBox: "0 0 256 256" }, N & /*$$props*/ 8 && /*$$props*/ r[3] ])), N & /*$_*/ 4 && l !== (l = /*$_*/ r[2]("cameraStatus.cameraInUse") + "") && C(u, l), N & /*$_*/ 4 && f !== (f = /*$_*/ r[2]("cameraStatus.ensureCameraNotInUse") + "") && C(c, f), N & /*$_*/ 4 && m !== (m = /*$_*/ r[2]("cameraStatus.restart") + "") && C(j, m); }, d(r) { r && g(e), r && g(a), r && g(t), r && g(o), r && g(n), r && g(D), r && g(d), w = !1, v(); } }; } function xe(i) { let e, s, a, t, l = ( /*$_*/ i[2]("cameraStatus.cameraNotDetected") + "" ), u, o, n, f = ( /*$_*/ i[2]("cameraStatus.connectCameraAndRestart") + "" ), c, D, d, m = ( /*$_*/ i[2]("cameraStatus.restart") + "" ), j, w, v, y = [ { class: "text-[8em] mx-auto" }, { xmlns: "http://www.w3.org/2000/svg" }, { width: "1em" }, { height: "1em" }, { viewBox: "0 0 256 256" }, /*$$props*/ i[3] ], A = {}; for (let r = 0; r < y.length; r += 1) A = Y(A, y[r]); return { c() { e = O("svg"), s = O("path"), a = p(), t = I("span"), u = L(l), o = p(), n = I("span"), c = L(f), D = p(), d = I("button"), j = L(m), h(s, "fill", "currentColor"), h(s, "d", "m137 168l11.52-11.51a12 12 0 0 0-17-17L120 151l-15-15l11.52-11.51a12 12 0 0 0-17-17L88 119l-15.51-15.49a12 12 0 0 0-17 17L59 124l-20.46 20.49a36 36 0 0 0 0 50.91l2.55 2.54l-25.58 25.57a12 12 0 0 0 17 17l25.57-25.58l2.54 2.55a36.06 36.06 0 0 0 50.91 0L132 197l3.51 3.52a12 12 0 0 0 17-17Zm-42.46 32.49a12 12 0 0 1-17 0l-22.03-22.06a12 12 0 0 1 0-17L76 141l39 39Zm146-185a12 12 0 0 0-17 0l-25.6 25.6l-2.54-2.55a36.05 36.05 0 0 0-50.91 0L124 59l-3.51-3.52a12 12 0 0 0-17 17l80 80a12 12 0 0 0 17-17L197 132l20.49-20.49a36 36 0 0 0 0-50.91l-2.55-2.54l25.58-25.57a12 12 0 0 0-.03-16.98Zm-40 79L180 115l-39-39l20.49-20.49a12 12 0 0 1 17 0l22.06 22.06a12 12 0 0 1 0 17Z"), x(e, A), h(t, "class", "text-xl font-bold text-center"), h(n, "class", "m-auto text-base block text-center"), h(d, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto"); }, m(r, N) { M(r, e, N), b(e, s), M(r, a, N), M(r, t, N), b(t, u), M(r, o, N), M(r, n, N), b(n, c), M(r, D, N), M(r, d, N), b(d, j), w || (v = R( d, "click", /*click_handler_1*/ i[5] ), w = !0); }, p(r, N) { x(e, A = Q(y, [ { class: "text-[8em] mx-auto" }, { xmlns: "http://www.w3.org/2000/svg" }, { width: "1em" }, { height: "1em" }, { viewBox: "0 0 256 256" }, N & /*$$props*/ 8 && /*$$props*/ r[3] ])), N & /*$_*/ 4 && l !== (l = /*$_*/ r[2]("cameraStatus.cameraNotDetected") + "") && C(u, l), N & /*$_*/ 4 && f !== (f = /*$_*/ r[2]("cameraStatus.connectCameraAndRestart") + "") && C(c, f), N & /*$_*/ 4 && m !== (m = /*$_*/ r[2]("cameraStatus.restart") + "") && C(j, m); }, d(r) { r && g(e), r && g(a), r && g(t), r && g(o), r && g(n), r && g(D), r && g(d), w = !1, v(); } }; } function Ye(i) { let e, s, a, t, l = ( /*$_*/ i[2]("cameraStatus.cameraPermission") + "" ), u, o, n, f = ( /*$_*/ i[2]("cameraStatus.clickRestartButton") + "" ), c, D, d, m = ( /*$_*/ i[2]("cameraStatus.restart") + "" ), j, w, v, y = [ { class: "text-[8em] mx-auto" }, { xmlns: "http://www.w3.org/2000/svg" }, { width: "1em" }, { height: "1em" }, { viewBox: "0 0 256 256" }, /*$$props*/ i[3] ], A = {}; for (let r = 0; r < y.length; r += 1) A = Y(A, y[r]); return { c() { e = O("svg"), s = O("path"), a = p(), t = I("span"), u = L(l), o = p(), n = I("span"), c = L(f), D = p(), d = I("button"), j = L(m), h(s, "fill", "currentColor"), h(s, "d", "M249.45 69.31a12 12 0 0 0-12.51 1L212 88.43V72a20 20 0 0 0-20-20h-68.12a12 12 0 0 0 0 24H188v68a12 12 0 0 0 4.46 9.33c.15.13.31.25.48.38l44 32A12 12 0 0 0 256 176V80a12 12 0 0 0-6.55-10.69M232 152.43l-20-14.54v-19.78l20-14.54ZM56.88 31.93a12 12 0 1 0-17.76 16.14L42.69 52H32a20 20 0 0 0-20 20v112a20 20 0 0 0 20 20h148.87l18.25 20.07a12 12 0 0 0 17.76-16.14ZM36 180V76h28.51l94.55 104Z"), x(e, A), h(t, "class", "text-xl font-bold text-center"), h(n, "class", "m-auto text-base block text-center"), h(d, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto"); }, m(r, N) { M(r, e, N), b(e, s), M(r, a, N), M(r, t, N), b(t, u), M(r, o, N), M(r, n, N), b(n, c), M(r, D, N), M(r, d, N), b(d, j), w || (v = R( d, "click", /*click_handler*/ i[4] ), w = !0); }, p(r, N) { x(e, A = Q(y, [ { class: "text-[8em] mx-auto" }, { xmlns: "http://www.w3.org/2000/svg" }, { width: "1em" }, { height: "1em" }, { viewBox: "0 0 256 256" }, N & /*$$props*/ 8 && /*$$props*/ r[3] ])), N & /*$_*/ 4 && l !== (l = /*$_*/ r[2]("cameraStatus.cameraPermission") + "") && C(u, l), N & /*$_*/ 4 && f !== (f = /*$_*/ r[2]("cameraStatus.clickRestartButton") + "") && C(c, f), N & /*$_*/ 4 && m !== (m = /*$_*/ r[2]("cameraStatus.restart") + "") && C(j, m); }, d(r) { r && g(e), r && g(a), r && g(t), r && g(o), r && g(n), r && g(D), r && g(d), w = !1, v(); } }; } function Be(i) { let e; function s(l, u) { if ( /*$cameraStatusStore*/ l[1] === B.CAMERA_DENIED_ERROR ) return Ye; if ( /*$cameraStatusStore*/ l[1] === B.DEVICE_NOT_FOUND_ERROR ) return xe; if ( /*$cameraStatusStore*/ l[1] === B.CAMERA_IN_USE_ERROR ) return Oe; if ( /*$cameraStatusStore*/ l[1] === B.CAMERA_CLOSED_ERROR ) return Ee; if ( /*$cameraStatusStore*/ l[1] === B.CAMERA_UNSUPPORTED ) return Te; if ( /*$cameraStatusStore*/ l[1] === B.CAMERA_NOT_STARTED ) return Se; if ( /*$cameraStatusStore*/ l[1] === B.CAMERA_ORIENTATION_PORTRAIT ) return ye; if ( /*$cameraStatusStore*/ l[1] === B.CAMERA_ORIENTATION_LANDSCAPE ) return ke; } let a = s(i), t = a && a(i); return { c() { e = I("div"), t && t.c(), this.c = T, h(e, "class", "flex flex-col gap-4 justify-center items-center relative overflow-visible p-4"); }, m(l, u) { M(l, e, u), t && t.m(e, null); }, p(l, [u]) { a === (a = s(l)) && t ? t.p(l, u) : (t && t.d(1), t = a && a(l), t && (t.c(), t.m(e, null))); }, i: T, o: T, d(l) { l && g(e), t && t.d(); } }; } function Ue(i, e, s) { let a, t; E(i, we, (d) => s(1, a = d)), E(i, le, (d) => s(2, t = d)); let { handler: l = () => { } } = e; const u = () => { l(), console.log("canicna", l); }, o = () => { l(), console.log("canicna", l); }, n = () => { l(), console.log("canicna", l); }, f = () => { l(); }, c = () => { l(); }, D = () => { l(); }; return i.$$set = (d) => { s(3, e = Y(Y({}, e), $(d))), "handler" in d && s(0, l = d.handler); }, e = $(e), [ l, a, t, e, u, o, n, f, c, D ]; } class Qe extends H { constructor(e) { super(), P( this, { target: this.shadowRoot, props: G(this.attributes), customElement: !0 }, Ue, Be, F, { handler: 0 }, null ), e && (e.target && M(e.target, this, e.anchor), e.props && (this.$set(e.props), S())); } static get observedAttributes() { return ["handler"]; } get handler() { return this.$$.ctx[0]; } set handler(e) { this.$$set({ handler: e }), S(); } } customElements.define("camera-status", Qe); const Re = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjgiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCA4NSAyNSIgZmlsbD0ibm9uZSIgb3BhY2l0eT0iMC4zNSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTI4LjMzNiAyMFY1LjdIMzQuMjc2QzM1LjIyMjcgNS43IDM2LjA0OTMgNS44NTMzMyAzNi43NTYgNi4xNkMzNy40NjI3IDYuNDY2NjcgMzguMDA5MyA2LjkgMzguMzk2IDcuNDZDMzguNzgyNyA4LjAyIDM4Ljk3NiA4LjY4IDM4Ljk3NiA5LjQ0QzM4Ljk3NiAxMC4xMzMzIDM4Ljc4MjcgMTAuNzUzMyAzOC4zOTYgMTEuM0MzOC4wMDkzIDExLjgzMzMgMzcuNDYyNyAxMi4yNTMzIDM2Ljc1NiAxMi41NkMzNi4wNDkzIDEyLjg2NjcgMzUuMjIyNyAxMy4wMiAzNC4yNzYgMTMuMDJIMzEuMjM2VjEySDM0LjQ1NkMzNS40ODI3IDEy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1IDEgNi4xMzI5NVY4LjQ3OTE5TTE0LjQzNzYgNEgxNi43ODM4QzE3Ljk2MTggNCAxOC45MTY3IDQuOTU0OTUgMTguOTE2NyA2LjEzMjk1VjguNDc5MTlNMTguOTE2NyAxNy40Mzc2VjE5Ljc4MzhDMTguOTE2NyAyMC45NjE4IDE3Ljk2MTggMjEuOTE2NyAxNi43ODM4IDIxLjkxNjdIMTQuNDM3Nk01LjQ3OTE5IDIxLjkxNjdIMy4xMzI5NUMxLjk1NDk1IDIxLjkxNjcgMSAyMC45NjE4IDEgMTkuNzgzOFYxNy40Mzc2IiBzdHJva2U9IndoaXRlIi8+Cjwvc3ZnPgo="; function Ve(i) { let e, s, a, t; return { c() { e = I("div"), s = I("img"), this.c = T, pe(s.src, a = Re) || h(s, "src", a), h(s, "alt", "BryID"), h(e, "class", t = /*$collectorSelect*/ i[0] === "DOCUMENT" ? "absolute inset-0 flex justify-end items-end mb-2 mr-2" : "absolute inset-0 flex justify-center items-end mb-4"); }, m(l, u) { M(l, e, u), b(e, s); }, p(l, [u]) { u & /*$collectorSelect*/ 1 && t !== (t = /*$collectorSelect*/ l[0] === "DOCUMENT" ? "absolute inset-0 flex justify-end items-end mb-2 mr-2" : "absolute inset-0 flex justify-center items-end mb-4") && h(e, "class", t); }, i: T, o: T, d(l) { l && g(e); } }; } function Ze(i, e, s) { let a; return E(i, ie, (t) => s(0, a = t)), [a]; } class He extends H { constructor(e) { super(), P( this, { target: this.shadowRoot, props: G(this.attributes), customElement: !0 }, Ze, Ve, F, {}, null ), e && e.target && M(e.target, this, e.anchor); } } customElements.define("water-mark", He); function Pe(i) { let e; return { c() { e = I("div"), h(e, "class", "w-16"); }, m(s, a) { M(s, e, a); }, p: T, d(s) { s && g(e); } }; } function Fe(i) { let e, s, a, t, l, u, o, n = [ { xmlns: "http://www.w3.org/2000/svg" }, { width: "2em" }, { height: "2em" }, { viewBox: "0 0 256 256" }, /*$$props*/ i[3] ], f = {}; for (let c = 0; c < n.length; c += 1) f = Y(f, n[c]); return { c() { e = I("div"), s = I("label"), a = O("svg"), t = O("path"), h(t, "fill", "hsl(var(--n))"), h(t, "d", "M208 56h-27.72l-13.63-20.44A8 8 0 0 0 160 32H96a8 8 0 0 0-6.65 3.56L75.71 56H48a24 24 0 0 0-24 24v112a24 24 0 0 0 24 24h160a24 24 0 0 0 24-24V80a24 24 0 0 0-24-24m-51.19 110.4A48.21 48.21 0 0 1 96 163.77V168a8 8 0 0 1-16 0v-24a8 8 0 0 1 8-8h24a8 8 0 0 1 0 16h-5.15a32.12 32.12 0 0 0 40.34 1.61a8 8 0 0 1 9.62 12.79M176 120a8 8 0 0 1-8 8h-24a8 8 0 0 1 0-16h5.15a32.12 32.12 0 0 0-40.34-1.61a8 8 0 0 1-9.62-12.79a48.21 48.21 0 0 1 60.81 2.63V96a8 8 0 0 1 16 0Z"), x(a, f), h(s, "tabindex", "0"), s.hidden = l = /*$cameraDevicesStore*/ i[1].length <= 1, h(s, "class", "ce-dui-btn ce-dui-btn-ghost w-16"); }, m(c, D) { M(c, e, D), b(e, s), b(s, a), b(a, t), u || (o = R( e, "click", /*click_handler*/ i[4] ), u = !0); }, p(c, D) { x(a, f = Q(n, [ { xmlns: "http://www.w3.org/2000/svg" }, { width: "2em" }, { height: "2em" }, { viewBox: "0 0 256 256" }, D & /*$$props*/ 8 && /*$$props*/ c[3] ])), D & /*$cameraDevicesStore*/ 2 && l !== (l = /*$cameraDevicesStore*/ c[1].length <= 1) && (s.hidden = l); }, d(c) { c && g(e), u = !1, o(); } }; } function Ge(i) { let e; function s(l, u) { return ( /*show*/ l[0] && /*$cameraDevicesStore*/ l[1].length > 1 ? Fe : Pe ); } let a = s(i), t = a(i); return { c() { t.c(), e = X(), this.c = T; }, m(l, u) { t.m(l, u), M(l, e, u); }, p(l, [u]) { a === (a = s(l)) && t ? t.p(l, u) : (t.d(1), t = a(l), t && (t.c(), t.m(e.parentNode, e))); }, i: T, o: T, d(l) { t.d(l), l && g(e); } }; } function Je(i, e, s) { let a, t; E(i, ve, (o) => s(1, a = o)), E(i, re, (o) => s(2, t = o)); let { show: l } = e; const u = () => { ee(re, t = !t, t); }; return i.$$set = (o) => { s(3, e = Y(Y({}, e), $(o))), "show" in o && s(0, l = o.show); }, e = $(e), [l, a, t, e, u]; } class ue extends H { constructor(e) { super(), P( this, { target: this.shadowRoot, props: G(this.attributes), customElement: !0 }, Je, Ge, F, { show: 0 }, null ), e && (e.target && M(e.target, this, e.anchor), e.props && (this.$set(e.props), S())); } static get observedAttributes() { return ["show"]; } get show() { return this.$$.ctx[0]; } set show(e) { this.$$set({ show: e }), S(); } } customElements.define("camera-btn", ue); function We(i) { let e, s = ( /*$_*/ i[0]("buttons.startCapture") + "" ), a, t, l; return { c() { e = I("button"), a = L(s), this.c = T, h(e, "class", "bg-primary text-white font-medium h-12 px-4 rounded-3xl text-xl transition-colors duration-500 hover:bg-primary-focus"); }, m(u, o) { M(u, e, o), b(e, a), t || (l = R( e, "click", /*click_handler*/ i[2] ), t = !0); }, p(u, [o]) { o & /*$_*/ 1 && s !== (s = /*$_*/ u[0]("buttons.startCapture") + "") && C(a, s); }, i: T, o: T, d(u) { u && g(e), t = !1, l(); } }; } function Ke(i, e, s) { let a, t; E(i, se, (o) => s(3, a = o)), E(i, le, (o) => s(0, t = o)); function l() { ee(se, a = !0, a); } return [t, l, () => l()]; } class ze extends H { constructor(e) { super(), P( this, { target: this.shadowRoot, props: G(this.attributes), customElement: !0 }, Ke, We, F, {}, null ), e && e.target && M(e.target, this, e.anchor); } } customElements.define("start-auto-capture-btn", ze); function Xe(i) { let e, s = ( /*$_*/ i[3]("faceCollector.capture") + "" ), a, t, l; return { c() { e = I("button"), a = L(s), this.c = T, e.disabled = /*disabled*/ i[1], e.hidden = /*hidden*/ i[2], h(e, "class", "bg-primary text-white font-medium h-12 px-4 rounded-3xl text-xl transition-colors duration-200 hover:bg-primary-focus disabled:bg-gray-300 disabled:hover:bg-gray-300 disabled:opacity-60"); }, m(u, o) { M(u, e, o), b(e, a), t || (l = R( e, "click", /*click_handler*/ i[4] ), t = !0); }, p(u, [o]) { o & /*$_*/ 8 && s !== (s = /*$_*/ u[3]("faceCollector.capture") + "") && C(a, s), o & /*disabled*/ 2 && (e.disabled = /*disabled*/ u[1]), o & /*hidden*/ 4 && (e.hidden = /*hidden*/ u[2]); }, i: T, o: T, d(u) { u && g(e), t = !1, l(); } }; } function qe(i, e, s) { let a; E(i, le, (n) => s(3, a = n)); let { handler: t = () => { } } = e, { disabled: l = !1 } = e, { hidden: u = !1 } = e; const o = () => !l && t(); return i.$$set = (n) => { "handler" in n && s(0, t = n.handler), "disabled" in n && s(1, l = n.disabled), "hidden" in n && s(2, u = n.hidden); }, [t, l, u, a, o]; } class ne extends H { constructor(e) { super(), P( this, { target: this.shadowRoot, props: G(this.attributes), customElement: !0 }, qe, Xe, F, { handler: 0, disabled: 1, hidden: 2 }, null ), e && (e.target && M(e.target, this, e.anchor), e.props && (this.$set(e.props), S())); } static get observedAttributes() { return ["handler", "disabled", "hidden"]; } get handler() { return this.$$.ctx[0]; } set handler(e) { this.$$set({ handler: e }), S(); } get disabled() { return this.$$.ctx[1]; } set disabled(e) { this.$$set({ disabled: e }), S(); } get hidden() { return this.$$.ctx[2]; } set hidden(e) { this.$$set({ hidden: e }), S(); } } customElements.define("take-picture-btn", ne); function $e(i) { let e, s, a, t, l = ( /*$ready*/ i[13] && fe(i) ), u = ( /*$ready*/ i[13] && ce(i) ), o = ( /*$ready*/ i[13] && Me(i) ); return { c() { e = I("div"), l && l.c(), s = p(), u && u.c(), a = p(), o && o.c(), h(e, "class", "w-full flex justify-between items-center px-2"), U(e, "background-color", "rgba(" + te( /*videoOverlay*/ i[5] ) + ", " + (1 - /*videoOverlayTransparency*/ i[6] / 100) + ")"), U( e, "height", /*$captureBarHeight*/ i[11] + "px" ), U( e, "max-height", /*$captureBarHeight*/ i[11] + "px" ); }, m(n, f) { M(n, e, f), l && l.m(e, null), b(e, s), u && u.m(e, null), b(e, a), o && o.m(e, null), t = !0; }, p(n, f) { /*$ready*/ n[13] ? l ? (l.p(n, f), f & /*$ready*/ 8192 && z(l, 1)) : (l = fe(n), l.c(), z(l, 1), l.m(e, s)) : l && (V(), k(l, 1, 1, () => { l = null; }), Z()), /*$ready*/ n[13] ? u ? (u.p(n, f), f & /*$ready*/ 8192 && z(u, 1)) : (u = ce(n), u.c(), z(u, 1), u.m(e, a)) : u && (V(), k(u, 1, 1, () => { u = null; }), Z()), /*$ready*/ n[13] ? o ? (o.p(n, f), f & /*$ready*/ 8192 && z(o, 1)) : (o = Me(n), o.c(), z(o, 1), o.m(e, null)) : o && (V(), k(o, 1, 1, () => { o = null; }), Z()), (!t || f & /*videoOverlay, videoOverlayTransparency*/ 96) && U(e, "background-color", "rgba(" + te( /*videoOverlay*/ n[5] ) + ", " + (1 - /*videoOverlayTransparency*/ n[6] / 100) + ")"), (!t || f & /*$captureBarHeight*/ 2048) && U( e, "height", /*$captureBarHeight*/ n[11] + "px" ), (!t || f & /*$captureBarHeight*/ 2048) && U( e, "max-height", /*$captureBarHeight*/ n[11] + "px" ); }, i(n) { t || (z(l), z(u), z(o), t = !0); }, o(n) { k(l), k(u), k(o), t = !1; }, d(n) { n && g(e), l && l.d(), u && u.d(), o && o.d(); } }; } function et(i) { let e, s, a, t, l, u = ( /*$ready*/ i[13] && me(i) ), o = ( /*showAutoCaptureButton*/ i[1] && !/*$automaticCapture*/ i[14] && !/*showCaptureButton*/ i[2] && /*$ready*/ i[13] && ge() ), n = ( /*showCaptureButton*/ i[2] && /*$ready*/ i[13] && Ne(i) ), f = ( /*$ready*/ i[13] && de(i) ); return { c() { e = I("div"), u && u.c(), s = p(), o && o.c(), a = p(), n && n.c(), t = p(), f && f.c(), h(e, "class", "w-full flex justify-between items-center px-2"), U(e, "background-color", "rgba(" + te( /*videoOverlay*/ i[5] ) + ", " + (1 - /*videoOverlayTransparency*/ i[6] / 100) + ")"), U( e, "height", /*$captureBarHeight*/ i[11] + "px" ), U( e, "max-height", /*$captureBarHeight*/ i[11] + "px" ); }, m(c, D) { M(c, e, D), u && u.m(e, null), b(e, s), o && o.m(e, null), b(e, a), n && n.m(e, null), b(e, t), f && f.m(e, null), l = !0; }, p(c, D) { /*$ready*/ c[13] ? u ? (u.p(c, D), D & /*$ready*/ 8192 && z(u, 1)) : (u = me(c), u.c(), z(u, 1), u.m(e, s)) : u && (V(), k(u, 1, 1, () => { u = null; }), Z()), /*showAutoCaptureButton*/ c[1] && !/*$automaticCapture*/ c[14] && !/*showCaptureButton*/ c[2] && /*$ready*/ c[13] ? o ? D & /*showAutoCaptureButton, $automaticCapture, showCaptureButton, $ready*/ 24582 && z(o, 1) : (o = ge(), o.c(), z(o, 1), o.m(e, a)) : o && (V(), k(o, 1, 1, () => { o = null; }), Z()), /*showCaptureButton*/ c[2] && /*$ready*/ c[13] ? n ? (n.p(c, D), D & /*showCaptureButton, $ready*/ 8196 && z(n, 1)) : (n = Ne(c), n.c(), z(n, 1), n.m(e, t)) : n && (V(), k(n, 1, 1, () => { n = null; }), Z()), /*$ready*/ c[13] ? f ? (f.p(c, D), D & /*$ready*/ 8192 && z(f, 1)) : (f = de(c), f.c(), z(f, 1), f.m(e, null)) : f && (V(), k(f, 1, 1, () => { f = null; }), Z()), (!l || D & /*videoOverlay, videoOverlayTransparency*/ 96) && U(e, "background-color", "rgba(" + te( /*videoOverlay*/ c[5] ) + ", " + (1 - /*videoOverlayTransparency*/ c[6] / 100) + ")"), (!l || D & /*$captureBarHeight*/ 2048) && U( e, "height", /*$captureBarHeight*/ c[11] + "px" ), (!l || D & /*$captureBarHeight*/ 2048) && U( e, "max-height", /*$captureBarHeight*/ c[11] + "px" ); }, i(c) { l || (z(u), z(o), z(n), z(f), l = !0); }, o(c) { k(u), k(o), k(n), k(f), l = !1; }, d(c) { c && g(e), u && u.d(), o && o.d(), n && n.d(), f && f.d(); } }; } function fe(i) { let e, s; return e = new Ie({ props: { show: ( /*showConfigButton*/ i[0] ) } }), { c() { J(e.$$.fragment); }, m(a, t) { W(e, a, t), s = !0; }, p(a, t) { const l = {}; t & /*showConfigButton*/ 1 && (l.show = /*showConfigButton*/ a[0]), e.$set(l); }, i(a) { s || (z(e.$$.fragment, a), s = !0); }, o(a) { k(e.$$.fragment, a), s = !1; }, d(a) { K(e, a); } }; } function ce(i) { let e, s; return e = new ne({ props: { hidden: ( /*$cameraStatusStore*/ i[16] !== B.OK ), handler: ( /*handler*/ i[10] ) } }), { c() { J(e.$$.fragment); }, m(a, t) { W(e, a, t), s = !0; }, p(a, t) { const l = {}; t & /*$cameraStatusStore*/ 65536 && (l.hidden = /*$cameraStatusStore*/ a[16] !== B.OK), t & /*handler*/ 1024 && (l.handler = /*handler*/ a[10]), e.$set(l); }, i(a) { s || (z(e.$$.fragment, a), s = !0); }, o(a) { k(e.$$.fragment, a), s = !1; }, d(a) { K(e, a); } }; } function Me(i) { let e, s; return e = new ue({ props: { show: ( /*showCameraButton*/ i[3] ) } }), { c() { J(e.$$.fragment); }, m(a, t) { W(e, a, t), s = !0; }, p(a, t) { const l = {}; t & /*showCameraButton*/ 8 && (l.show = /*showCameraButton*/ a[3]), e.$set(l); }, i(a) { s || (z(e.$$.fragment, a), s = !0); }, o(a) { k(e.$$.fragment, a), s = !1; }, d(a) { K(e, a); } }; } function me(i) { let e, s; return e = new Ie({ props: { show: ( /*showConfigButton*/ i[0] ) } }), { c() { J(e.$$.fragment); }, m(a, t) { W(e, a, t), s = !0; }, p(a, t) { const l = {}; t & /*showConfigButton*/ 1 && (l.show = /*showConfigButton*/ a[0]), e.$set(l); }, i(a) { s || (z(e.$$.fragment, a), s = !0); }, o(a) { k(e.$$.fragment, a), s = !1; }, d(a) { K(e, a); } }; } function ge(i) { let e, s; return e = new ze({}), { c() { J(e.$$.fragment); }, m(a, t) { W(e, a, t), s = !0; }, i(a) { s || (z(e.$$.fragment, a), s = !0); }, o(a) { k(e.$$.fragment, a), s = !1; }, d(a) { K(e, a); } }; } function Ne(i) { let e, s; return e = new ne({ props: { disabled: !/*enableCaptureButton*/ i[4] && /*$enableFaceApi*/ i[15] || !/*$ready*/ i[13] && !/*$enableFaceApi*/ i[15], hidden: ( /*$cameraStatusStore*/ i[16] !== B.OK || oe() && /*idrndLoading*/ (i[8] || /*idrndClosed*/ i[7] || /*waitingIdrndCaptureEvent*/ i[9]) ), handler: ( /*handler*/ i[10] ) } }), { c() { J(e.$$.fragment); }, m(a, t) { W(e, a, t), s = !0; }, p(a, t) { const l = {}; t & /*enableCaptureButton, $enableFaceApi, $ready*/ 40976 && (l.disabled = !/*enableCaptureButton*/ a[4] && /*$enableFaceApi*/ a[15] || !/*$ready*/ a[13] && !/*$enableFaceApi*/ a[15]), t & /*$cameraStatusStore, idrndLoading, idrndClosed, waitingIdrndCaptureEvent*/ 66432 && (l.hidden = /*$cameraStatusStore*/ a[16] !== B.OK || oe() && /*idrndLoading*/ (a[8] || /*idrndClosed*/ a[7] || /*waitingIdrndCaptureEvent*/ a[9])), t & /*handler*/ 1024 && (l.handler = /*handler*/ a[10]), e.$set(l); }, i(a) { s || (z(e.$$.fragment, a), s = !0); }, o(a) { k(e.$$.fragment, a), s = !1; }, d(a) { K(e, a); } }; } function de(i) { let e, s; return e = new ue({ props: { show: ( /*showCameraButton*/ i[3] ) } }), { c() { J(e.$$.fragment); }, m(a, t) { W(e, a, t), s = !0; }, p(a, t) { const l = {}; t & /*showCameraButton*/ 8 && (l.show = /*showCameraButton*/ a[3]), e.$set(l); }, i(a) { s || (z(e.$$.fragment, a), s = !0); }, o(a) { k(e.$$.fragment, a), s = !1; }, d(a) { K(e, a); } }; } function tt(i) { let e, s, a, t; const l = [et, $e], u = []; function o(n, f) { return ( /*$collectorSelect*/ n[12] === "FACE" || /*$collectorSelect*/ n[12] === "BOTH" ? 0 : ( /*$collectorSelect*/ n[12] === "DOCUMENT" ? 1 : -1 ) ); } return ~(e = o(i)) && (s = u[e] = l[e](i)), { c() { s && s.c(), a = X(), this.c = T; }, m(n, f) { ~e && u[e].m(n, f), M(n, a, f), t = !0; }, p(n, [f]) { let c = e; e = o(n), e === c ? ~e && u[e].p(n, f) : (s && (V(), k(u[c], 1, 1, () => { u[c] = null; }), Z()), ~e ? (s = u[e], s ? s.p(n, f) : (s = u[e] = l[e](n), s.c()), z(s, 1), s.m(a.parentNode, a)) : s = null); }, i(n) { t || (z(s), t = !0); }, o(n) { k(s), t = !1; }, d(n) { ~e && u[e].d(n), n && g(a); } }; } function lt(i, e, s) { let a, t, l, u, o, n, f; E(i, Ae, (_) => s(17, a = _)), E(i, ae, (_) => s(11, t = _)), E(i, ie, (_) => s(12, l = _)), E(i, Le, (_) => s(13, u = _)), E(i, se, (_) => s(14, o = _)), E(i, _e, (_) => s(15, n = _)), E(i, we, (_) => s(16, f = _)); let { showConfigButton: c = null } = e, { showAutoCaptureButton: D = null } = e, { showCaptureButton: d = null } = e, { showCameraButton: m = null } = e, { enableCaptureButton: j = null } = e, { videoOverlay: w = "" } = e, { videoOverlayTransparency: v = 100 } = e, { idrndClosed: y = null } = e, { idrndLoading: A = null } = e, { waitingIdrndCaptureEvent: r = null } = e, { handler: N = () => { } } = e; return i.$$set = (_) => { "showConfigButton" in _ && s(0, c = _.showConfigButton), "showAutoCaptureButton" in _ && s(1, D = _.showAutoCaptureButton), "showCaptureButton" in _ && s(2, d = _.showCaptureButton), "showCameraButton" in _ && s(3, m = _.showCameraButton), "enableCaptureButton" in _ && s(4, j = _.enableCaptureButton), "videoOverlay" in _ && s(5, w = _.videoOverlay), "videoOverlayTransparency" in _ && s(6, v = _.videoOverlayTransparency), "idrndClosed" in _ && s(7, y = _.idrndClosed), "idrndLoading" in _ && s(8, A = _.idrndLoading), "waitingIdrndCaptureEvent" in _ && s(9, r = _.waitingIdrndCaptureEvent), "handler" in _ && s(10, N = _.handler); }, i.$$.update = () => { i.$$.dirty & /*$videoStore*/ 131072 && a && (q() ? ee(ae, t = Math.round(a.videoHeight * 0.25), t) : ee(ae, t = Math.round(a.videoHeight * 0.15), t)); }, [ c, D, d, m, j, w, v, y, A, r, N, t, l, u, o, n, f, a ]; } class at extends H { constructor(e) { super(), P( this, { target: this.shadowRoot, props: G(this.attributes), customElement: !0 }, lt, tt, F, { showConfigButton: 0, showAutoCaptureButton: 1, showCaptureButton: 2, showCameraButton: 3, enableCaptureButton: 4, videoOverlay: 5, videoOverlayTransparency: 6, idrndClosed: 7, idrndLoading: 8, waitingIdrndCaptureEvent: 9, handler: 10 }, null ), e && (e.target && M(e.target, this, e.anchor), e.props && (this.$set(e.props), S())); } static get observedAttributes() { return [ "showConfigButton", "showAutoCaptureButton", "showCaptureButton", "showCameraButton", "enableCaptureButton", "videoOverlay", "videoOverlayTransparency", "idrndClosed", "idrndLoading", "waitingIdrndCaptureEvent", "handler" ]; } get showConfigButton() { return this.$$.ctx[0]; } set showConfigButton(e) { this.$$set({ showConfigButton: e }), S(); } get showAutoCaptureButton() { return this.$$.ctx[1]; } set showAutoCaptureButton(e) { this.$$set({ showAutoCaptureButton: e }), S(); } get showCaptureButton() { return this.$$.ctx[2]; } set showCaptureButton(e) { this.$$set({ showCaptureButton: e }), S(); } get showCameraButton() { return this.$$.ctx[3]; } set showCameraButton(e) { this.$$set({ showCameraButton: e }), S(); } get enableCaptureButton() { return this.$$.ctx[4]; } set enableCaptureButton(e) { this.$$set({ enableCaptureButton: e }), S(); } get videoOverlay() { return this.$$.ctx[5]; } set videoOverlay(e) { this.$$set({ videoOverlay: e }), S(); } get videoOverlayTransparency() { return this.$$.ctx[6]; } set videoOverlayTransparency(e) { this.$$set({ videoOverlayTransparency: e }), S(); } get idrndClosed() { return this.$$.ctx[7]; } set idrndClosed(e) { this.$$set({ idrndClosed: e }), S(); } get idrndLoading() { return this.$$.ctx[8]; } set idrndLoading(e) { this.$$set({ idrndLoading: e }), S(); } get waitingIdrndCaptureEvent() { return this.$$.ctx[9]; } set waitingIdrndCaptureEvent(e) { this.$$set({ waitingIdrndCaptureEvent: e }), S(); } get handler() { return this.$$.ctx[10]; } set handler(e) { this.$$set({ handler: e }), S(); } } customElements.define("capture-bar", at); function st(i) { let e, s, a = ( /*isCountingDown*/ i[0] && he(i) ), t = ( /*$enableFaceApi*/ i[3] && !/*isCountingDown*/ i[0] && /*$faceValidationAlert*/ i[4] && De(i) ); return { c() { a && a.c(), e = p(), t && t.c(), s = X(); }, m(l, u) { a && a.m(l, u), M(l, e, u), t && t.m(l, u), M(l, s, u); }, p(l, u) { /*isCountingDown*/ l[0] ? a ? a.p(l, u) : (a = he(l), a.c(), a.m(e.parentNode, e)) : a && (a.d(1), a = null), /*$enableFaceApi*/ l[3] && !/*isCountingDown*/ l[0] && /*$faceValidationAlert*/ l[4] ? t ? t.p(l, u) : (t = De(l), t.c(), t.m(s.parentNode, s)) : t && (t.d(1), t = null); }, d(l) { a && a.d(l), l && g(e), t && t.d(l), l && g(s); } }; } function it(i) { let e, s, a = ( /*isCountingDown*/ i[0] && je(i) ), t = ( /*$enableFaceApi*/ i[3] && !/*isCountingDown*/ i[0] && /*$faceValidationAlert*/ i[4] && be(i) ); return { c() { a && a.c(), e = p(), t && t.c(), s = X(); }, m(l, u) { a && a.m(l, u), M(l, e, u), t && t.m(l, u), M(l, s, u); }, p(l, u) { /*isCountingDown*/ l[0] ? a ? a.p(l, u) : (a = je(l), a.c(), a.m(e.parentNode, e)) : a && (a.d(1), a = null), /*$enableFaceApi*/ l[3] && !/*isCountingDown*/ l[0] && /*$faceValidationAlert*/ l[4] ? t ? t.p(l, u) : (t = be(l), t.c(), t.m(s.parentNode, s)) : t && (t.d(1), t = null); }, d(l) { a && a.d(l), l && g(e), t && t.d(l), l && g(s); } }; } function he(i) { let e, s = ( /*$_*/ i[2]("faceCollector.stayStill") + "" ), a; return { c() { e = I("span"), a = L(s), h(e, "class", "absolute flex items-center justify-center h-[2em] bg-[#202327] text-white rounded-3xl text-xl xl:text-base px-4 min-w-[10em] max-w-[20em] z-50 " + (q() ? "top-[6%]" : "top-[4.5%]")); }, m(t, l) { M(t, e, l), b(e, a); }, p(t, l) { l & /*$_*/ 4 && s !== (s = /*$_*/ t[2]("faceCollector.stayStill") + "") && C(a, s); }, d(t) { t && g(e); } }; } function De(i) { let e, s = ( /*$_*/ i[2](`${/*$faceValidationAlert*/ i[4]}`) + "" ), a; return { c() { e = I("span"), a = L(s), h(e, "class", "absolute flex items-center justify-center h-[2em] bg-[#202327] text-white rounded-3xl text-xl xl:text-base px-4 min-w-[10em] max-w-[20em] z-50 " + (q() ? "top-[6%]" : "top-[4.5%]")); }, m(t, l) { M(t, e, l), b(e, a); }, p(t, l) { l & /*$_, $faceValidationAlert*/ 20 && s !== (s = /*$_*/ t[2](`${/*$faceValidationAlert*/ t[4]}`) + "") && C(a, s); }, d(t) { t && g(e); } }; } function je(i) { let e, s = ( /*$_*/ i[2]("faceCollector.stayStill") + "" ), a; return { c() { e = I("span"), a = L(s), h(e, "class", "absolute flex items-center justify-center h-[2em] bg-[#202327] text-white rounded-3xl text-xl xl:text-base px-4 min-w-[10em] max-w-[20em] z-50 " + (q() ? "top-[6.5%]" : "top-[3%]")); }, m(t, l) { M(t, e, l), b(e, a); }, p(t, l) { l & /*$_*/ 4 && s !== (s = /*$_*/ t[2]("faceCollector.stayStill") + "") && C(a, s); }, d(t) { t && g(e); } }; } function be(i) { let e, s = ( /*$_*/ i[2](`${/*$faceValidationAlert*/ i[4]}`) + "" ), a; return { c() { e = I("span"), a = L(s), h(e, "class", "absolute flex items-center justify-center h-[2em] bg-[#202327] text-white rounded-3xl text-xl xl:text-base px-4 min-w-[10em] max-w-[20em] z-50 " + (q() ? "top-[6.5%]" : "top-[3%]")); }, m(t, l) { M(t, e, l), b(e, a); }, p(t, l) { l & /*$_, $faceValidationAlert*/ 20 && s !== (s = /*$_*/ t[2](`${/*$faceValidationAlert*/ t[4]}`) + "") && C(a, s); }, d(t) { t && g(e); } }; } function ut(i) { let e; function s(l, u) { if ( /*$collectorSelect*/ l[1] === "FACE" ) return it; if ( /*$collectorSelect*/ l[1] === "DOCUMENT" ) return st; } let a = s(i), t = a && a(i); return { c() { t && t.c(), e = X(), this.c = T; }, m(l, u) { t && t.m(l, u), M(l, e, u); }, p(l, [u]) { a === (a = s(l)) && t ? t.p(l, u) : (t && t.d(1), t = a && a(l