@incodetech/web 0.0.0-dev-20260403-10f7d94 → 0.0.0-dev-20260403-eccc51c
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/{Trans-DiTufE_D.js → Trans-aTzdT_SA.js} +1 -1
- package/dist/{addressAutocomplete-BSE71Kua.js → addressAutocomplete-C8-wL1j_.js} +4 -4
- package/dist/antifraud/antifraud.es.js +18 -0
- package/dist/antifraud/styles.css +2 -0
- package/dist/authentication/authentication.es.js +3 -3
- package/dist/button-CE9kRlem.js +184 -0
- package/dist/{cameraView-DXT7CWqE.js → cameraView-C2X7klNb.js} +1 -1
- package/dist/{captureOverlay-wQmz2Z5r.js → captureOverlay-tCb4R4WE.js} +18 -17
- package/dist/{checkbox-wo8qk7tM.js → checkbox-B5X-mfqq.js} +2 -2
- package/dist/{chevronDown-BksFjKhp.js → chevronDown-DSHaPKbi.js} +1 -1
- package/dist/{closeIcon-5Xq6MCZa.js → closeIcon-9Hc97omv.js} +1 -1
- package/dist/consent/consent.es.js +24 -23
- package/dist/curp-validation/curp-validation.es.js +75 -74
- package/dist/{dateInputComposed-D5kgh_aC.js → dateInputComposed-C7PCzh-U.js} +3 -3
- package/dist/{documentCapture-8ZOwr7xp.js → documentCapture-C0mO-RGE.js} +111 -110
- package/dist/{dropdownComposed-CzAsPPqv.js → dropdownComposed-BpinYlrx.js} +4 -4
- package/dist/{ekybModule-RZwNRg6E.js → ekybModule-Dr6LJUg-.js} +18 -17
- package/dist/{ekycModule-BgFGstuw.js → ekycModule-C3mswduI.js} +10 -9
- package/dist/email/email.es.js +23 -22
- package/dist/{errorContent-CnY-Deoi.js → errorContent-Cb8nmQAE.js} +14 -13
- package/dist/{errorIcon-DOuc6ONw.js → errorIcon-DEARBrGx.js} +1 -1
- package/dist/extensibility.es.js +47 -45
- package/dist/{faceMatch-DPa3pI88.js → faceMatch-DbDp7D3d.js} +17 -16
- package/dist/{fileIcon-DEli4GR_.js → fileIcon-CCSvS10T.js} +1 -1
- package/dist/{flipAnimation-r4wJkacO.js → flipAnimation-BqV462TA.js} +34 -33
- package/dist/flow/flow.es.js +126 -121
- package/dist/{formField-BoozuV2w.js → formField-CP6wDdfA.js} +29 -28
- package/dist/geolocation/geolocation.es.js +28 -27
- package/dist/governmentValidation/governmentValidation.es.js +8 -8
- package/dist/id/id.es.js +12 -11
- package/dist/index.es.js +16 -15
- package/dist/{inputComposed-QzDneavl.js → inputComposed-fUbAGrDy.js} +4 -4
- package/dist/{uiConfig-DmIn-g8M.js → instance-BWYzq8dk.js} +218 -238
- package/dist/loadingIcon-DmuPXh70.js +195 -0
- package/dist/mandatoryConsent-5xPI0cor.js +94 -0
- package/dist/{manualCaptureButton-CPZ2xxEI.js → manualCaptureButton-BvFmTyJe.js} +21 -20
- package/dist/{numberedStep-DiiXAKRd.js → numberedStep-DwUB__mh.js} +1 -1
- package/dist/{otpInput-CMi5-n2O.js → otpInput-BFXhqFRT.js} +20 -19
- package/dist/{page-D4OThpFS.js → page-SrUl0qtN.js} +16 -15
- package/dist/{permissions-BeU3HuVB.js → permissions-DT4Fz9MR.js} +14 -13
- package/dist/phone/phone.es.js +12 -11
- package/dist/{phoneInput-nmmFFaXI.js → phoneInput-CGr8TxOO.js} +2 -2
- package/dist/{phoneInputComposed-BAFZQ4Y8.js → phoneInputComposed-Cm9O2Jba.js} +5 -5
- package/dist/{processing-Ss26Ad0W.js → processing-szVOCQwZ.js} +3 -3
- package/dist/{richText-Bxe6Ywla.js → richText-cspvNz2a.js} +1 -1
- package/dist/selfie/selfie.es.js +4 -4
- package/dist/signature/signature.es.js +10 -9
- package/dist/{spinner-CLwSl2tJ.js → spinner-DygONskw.js} +2 -2
- package/dist/{successIcon-BZphSsQr.js → successIcon-Bjsdc4lF.js} +1 -1
- package/dist/{tutorial-BcX5EaL9.js → tutorial-Cdz1025D.js} +19 -18
- package/dist/types/antifraud.d.ts +35 -0
- package/dist/{typography-CBPoLoAP.js → typography-BDACYR5i.js} +1 -1
- package/dist/uiConfig-Dnt-2YWB.js +23 -0
- package/dist/{warningIcon-xqaHPxjF.js → warningIcon-DQq_MrOB.js} +1 -1
- package/package.json +9 -2
- package/dist/button-DXIWeie9.js +0 -373
- package/dist/mandatoryConsent-fZUmh40x.js +0 -93
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { d as s, y as p, l as I, T as S, $ as h, A as g } from "./vendor-preact-BoMmvSgn.js";
|
|
2
|
+
import { isIPad as v } from "@incodetech/core";
|
|
3
|
+
import { g as m, u as C } from "./instance-BWYzq8dk.js";
|
|
4
|
+
function $(e, n = {}) {
|
|
5
|
+
const { autoLoad: c = !0, manageLifecycle: a = !0 } = n, [t] = s(e), [l, i] = s(
|
|
6
|
+
() => t.getState()
|
|
7
|
+
);
|
|
8
|
+
return p(() => {
|
|
9
|
+
const r = t.subscribe(i);
|
|
10
|
+
return a && c && t.load && t.load(), () => {
|
|
11
|
+
r(), a && t.stop?.();
|
|
12
|
+
};
|
|
13
|
+
}, [t, c, a]), [l, t];
|
|
14
|
+
}
|
|
15
|
+
var w = 0;
|
|
16
|
+
function o(e, n, c, a, t, l) {
|
|
17
|
+
n || (n = {});
|
|
18
|
+
var i, r, d = n;
|
|
19
|
+
if ("ref" in d) for (r in d = {}, n) r == "ref" ? i = n[r] : d[r] = n[r];
|
|
20
|
+
var u = { type: e, props: d, key: c, ref: i, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --w, __i: -1, __u: 0, __source: t, __self: l };
|
|
21
|
+
if (typeof e == "function" && (i = e.defaultProps)) for (r in i) d[r] === void 0 && (d[r] = i[r]);
|
|
22
|
+
return I.vnode && I.vnode(u), u;
|
|
23
|
+
}
|
|
24
|
+
function z() {
|
|
25
|
+
const e = m(), [, n] = s(0), [c, a] = s(e.isInitialized);
|
|
26
|
+
return p(() => {
|
|
27
|
+
const l = () => {
|
|
28
|
+
n((r) => r + 1);
|
|
29
|
+
}, i = () => {
|
|
30
|
+
a(!0), n((r) => r + 1);
|
|
31
|
+
};
|
|
32
|
+
return e.on("languageChanged", l), e.on("initialized", i), e.on("loaded", l), () => {
|
|
33
|
+
e.off("languageChanged", l), e.off("initialized", i), e.off("loaded", l);
|
|
34
|
+
};
|
|
35
|
+
}, [e]), { t: S(
|
|
36
|
+
() => e.t.bind(e),
|
|
37
|
+
[e]
|
|
38
|
+
), ready: c, i18n: e };
|
|
39
|
+
}
|
|
40
|
+
const _ = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='90'%20height='90'%20viewBox='0%200%2090%2090'%3e%3cg%20fill='%2320263D'%3e%3cpath%20d='M84.12%2027.54l-2.58-2.58L65.036%208.456l-2.58-2.58c-3.127-3.127-8.58-2.764-12.157.81L6.69%2050.306c-3.574%203.574-3.938%209.027-.81%2012.158l21.66%2021.66c3.128%203.127%208.58%202.764%2012.157-.81l43.617-43.616c3.574-3.578%203.937-9.03.806-12.158zm-5.524%208.617l-42.439%2042.44c-1.3%201.3-3.28%201.432-4.42.296l-20.63-20.63c-1.14-1.14-1.008-3.12.297-4.42l42.438-42.44c1.302-1.3%203.282-1.432%204.422-.296l1.031%201.032c1.14%201.14%201.009%203.12-.296%204.421-1.302%201.301-1.433%203.281-.297%204.421L69.02%2031.297c1.14%201.14%203.12%201.01%204.421-.296%201.301-1.301%203.281-1.432%204.421-.296l1.031%201.031c1.137%201.14%201.005%203.12-.296%204.421zM51.885%2090a3.135%203.135%200%2001-2.22-5.351l8.925-8.925a3.138%203.138%200%20014.646.233l3.308%204.046c10.114-5.374%2017.081-15.994%2017.178-28.14a3.136%203.136%200%20013.136-3.113h.026a3.14%203.14%200%20013.112%203.161C89.835%2072.746%2072.746%2089.835%2051.911%2090h-.026zM38.115%200a3.135%203.135%200%20012.22%205.351l-8.925%208.925a3.125%203.125%200%2001-2.378.915%203.138%203.138%200%2001-2.272-1.147l-3.308-4.046C13.34%2015.37%206.373%2025.99%206.274%2038.138a3.14%203.14%200%2001-3.139%203.112h-.026a3.139%203.139%200%2001-3.11-3.161C.166%2017.254%2017.255.165%2038.09%200h.026z'/%3e%3c/g%3e%3c/svg%3e";
|
|
41
|
+
function L() {
|
|
42
|
+
const [e, n] = s(null), c = g(null);
|
|
43
|
+
return p(() => {
|
|
44
|
+
const a = document.createElement("div");
|
|
45
|
+
return a.setAttribute("data-incode-landscape-portal", ""), document.body.appendChild(a), c.current = a, n(a), () => {
|
|
46
|
+
a.remove(), c.current = null;
|
|
47
|
+
};
|
|
48
|
+
}, []), e;
|
|
49
|
+
}
|
|
50
|
+
function y() {
|
|
51
|
+
const { t: e } = z(), n = L();
|
|
52
|
+
return n ? h(
|
|
53
|
+
/* @__PURE__ */ o("div", { class: "IncodeLandscapeBlocker", children: [
|
|
54
|
+
/* @__PURE__ */ o(
|
|
55
|
+
"img",
|
|
56
|
+
{
|
|
57
|
+
class: "IncodeLandscapeBlocker-icon",
|
|
58
|
+
src: _,
|
|
59
|
+
alt: "",
|
|
60
|
+
"aria-hidden": !0
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
/* @__PURE__ */ o("p", { class: "IncodeLandscapeBlocker-text", children: e("common.landscape") }),
|
|
64
|
+
/* @__PURE__ */ o("p", { class: "IncodeLandscapeBlocker-text", children: v() ? e("common.rotateIpad") : e("common.rotate") })
|
|
65
|
+
] }),
|
|
66
|
+
n
|
|
67
|
+
) : null;
|
|
68
|
+
}
|
|
69
|
+
function P({ children: e }) {
|
|
70
|
+
const { isLandscapeMobile: n } = C();
|
|
71
|
+
return /* @__PURE__ */ o("div", { class: "IncodeComponent", children: [
|
|
72
|
+
e,
|
|
73
|
+
n ? /* @__PURE__ */ o(y, {}) : null
|
|
74
|
+
] });
|
|
75
|
+
}
|
|
76
|
+
const H = /* @__PURE__ */ new Set([
|
|
77
|
+
0,
|
|
78
|
+
2,
|
|
79
|
+
4,
|
|
80
|
+
8,
|
|
81
|
+
12,
|
|
82
|
+
16,
|
|
83
|
+
20,
|
|
84
|
+
24,
|
|
85
|
+
32,
|
|
86
|
+
40,
|
|
87
|
+
48,
|
|
88
|
+
64,
|
|
89
|
+
80,
|
|
90
|
+
96,
|
|
91
|
+
104,
|
|
92
|
+
120,
|
|
93
|
+
200
|
|
94
|
+
]), V = (e, n) => n === "horizontal" ? {
|
|
95
|
+
0: "IncodeSpacerHorizontal0",
|
|
96
|
+
2: "IncodeSpacerHorizontal2",
|
|
97
|
+
4: "IncodeSpacerHorizontal4",
|
|
98
|
+
8: "IncodeSpacerHorizontal8",
|
|
99
|
+
12: "IncodeSpacerHorizontal12",
|
|
100
|
+
16: "IncodeSpacerHorizontal16",
|
|
101
|
+
20: "IncodeSpacerHorizontal20",
|
|
102
|
+
24: "IncodeSpacerHorizontal24",
|
|
103
|
+
32: "IncodeSpacerHorizontal32",
|
|
104
|
+
40: "IncodeSpacerHorizontal40",
|
|
105
|
+
48: "IncodeSpacerHorizontal48",
|
|
106
|
+
64: "IncodeSpacerHorizontal64",
|
|
107
|
+
80: "IncodeSpacerHorizontal80",
|
|
108
|
+
96: "IncodeSpacerHorizontal96",
|
|
109
|
+
104: "IncodeSpacerHorizontal104",
|
|
110
|
+
120: "IncodeSpacerHorizontal120",
|
|
111
|
+
200: "IncodeSpacerHorizontal200"
|
|
112
|
+
}[e] : {
|
|
113
|
+
0: "IncodeSpacerVertical0",
|
|
114
|
+
2: "IncodeSpacerVertical2",
|
|
115
|
+
4: "IncodeSpacerVertical4",
|
|
116
|
+
8: "IncodeSpacerVertical8",
|
|
117
|
+
12: "IncodeSpacerVertical12",
|
|
118
|
+
16: "IncodeSpacerVertical16",
|
|
119
|
+
20: "IncodeSpacerVertical20",
|
|
120
|
+
24: "IncodeSpacerVertical24",
|
|
121
|
+
32: "IncodeSpacerVertical32",
|
|
122
|
+
40: "IncodeSpacerVertical40",
|
|
123
|
+
48: "IncodeSpacerVertical48",
|
|
124
|
+
64: "IncodeSpacerVertical64",
|
|
125
|
+
80: "IncodeSpacerVertical80",
|
|
126
|
+
96: "IncodeSpacerVertical96",
|
|
127
|
+
104: "IncodeSpacerVertical104",
|
|
128
|
+
120: "IncodeSpacerVertical120",
|
|
129
|
+
200: "IncodeSpacerVertical200"
|
|
130
|
+
}[e], T = ({
|
|
131
|
+
size: e,
|
|
132
|
+
className: n,
|
|
133
|
+
direction: c = "vertical"
|
|
134
|
+
}) => e === void 0 ? /* @__PURE__ */ o("div", { class: `IncodeSpacerFlex ${n || ""}` }) : (c === "horizontal" ? "w" : c === "vertical" ? "h" : void 0) ? typeof e == "number" && H.has(e) ? /* @__PURE__ */ o("div", { class: `${V(e, c)} ${n || ""}` }) : /* @__PURE__ */ o("div", { class: `${n || ""}` }) : /* @__PURE__ */ o("div", { class: `${n || ""}` }), f = (...e) => {
|
|
135
|
+
const n = [];
|
|
136
|
+
for (const c of e)
|
|
137
|
+
if (c) {
|
|
138
|
+
if (typeof c == "string")
|
|
139
|
+
n.push(c);
|
|
140
|
+
else if (typeof c == "object")
|
|
141
|
+
for (const [a, t] of Object.entries(c))
|
|
142
|
+
t && n.push(a);
|
|
143
|
+
}
|
|
144
|
+
return n.join(" ");
|
|
145
|
+
}, b = ({
|
|
146
|
+
size: e,
|
|
147
|
+
className: n
|
|
148
|
+
}) => /* @__PURE__ */ o(
|
|
149
|
+
"svg",
|
|
150
|
+
{
|
|
151
|
+
width: e,
|
|
152
|
+
height: e,
|
|
153
|
+
viewBox: "0 0 31 31",
|
|
154
|
+
fill: "none",
|
|
155
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
156
|
+
class: f("IncodeLoadingIconPrimaryIcon", n),
|
|
157
|
+
"aria-hidden": "true",
|
|
158
|
+
children: /* @__PURE__ */ o("path", { d: "M28.1614 15.2837C29.453 15.2837 30.5186 14.2304 30.3181 12.9545C30.1344 11.7862 29.8129 10.6411 29.3582 9.54344C28.6044 7.72356 27.4995 6.06997 26.1066 4.67709C24.7137 3.28421 23.0601 2.17932 21.2403 1.4255C20.1426 0.970841 18.9974 0.649265 17.8292 0.46563C16.5533 0.265073 15.5 1.33073 15.5 2.62232C15.5 3.91391 16.5601 4.93461 17.8187 5.22473C18.3748 5.35291 18.9206 5.52729 19.4503 5.74672C20.7028 6.26548 21.8407 7.02585 22.7993 7.98441C23.7578 8.94296 24.5182 10.0809 25.037 11.3333C25.2564 11.8631 25.4308 12.4089 25.559 12.965C25.8491 14.2236 26.8698 15.2837 28.1614 15.2837Z" })
|
|
159
|
+
}
|
|
160
|
+
), x = ({
|
|
161
|
+
size: e,
|
|
162
|
+
className: n
|
|
163
|
+
}) => /* @__PURE__ */ o(
|
|
164
|
+
"svg",
|
|
165
|
+
{
|
|
166
|
+
width: e,
|
|
167
|
+
height: e,
|
|
168
|
+
viewBox: "0 0 31 31",
|
|
169
|
+
fill: "none",
|
|
170
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
171
|
+
class: f("IncodeLoadingIconSecondaryIcon", n),
|
|
172
|
+
"aria-hidden": "true",
|
|
173
|
+
children: [
|
|
174
|
+
/* @__PURE__ */ o("title", { children: "Spinner Outer part" }),
|
|
175
|
+
/* @__PURE__ */ o("path", { d: "M30.5 15.2837C30.5 23.568 23.7843 30.2837 15.5 30.2837C7.21573 30.2837 0.5 23.568 0.5 15.2837C0.5 6.99942 7.21573 0.283691 15.5 0.283691C23.7843 0.283691 30.5 6.99942 30.5 15.2837ZM5.17725 15.2837C5.17725 20.9848 9.7989 25.6064 15.5 25.6064C21.2011 25.6064 25.8227 20.9848 25.8227 15.2837C25.8227 9.5826 21.2011 4.96095 15.5 4.96095C9.7989 4.96095 5.17725 9.5826 5.17725 15.2837Z" })
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
), j = ({
|
|
179
|
+
size: e = 30,
|
|
180
|
+
secondaryClass: n,
|
|
181
|
+
primaryClass: c
|
|
182
|
+
}) => /* @__PURE__ */ o("div", { class: "IncodeLoadingIcon", children: [
|
|
183
|
+
/* @__PURE__ */ o(x, { size: e, className: n }),
|
|
184
|
+
/* @__PURE__ */ o("div", { class: "IncodeLoadingIconPrimary", children: /* @__PURE__ */ o(b, { size: e, className: c }) })
|
|
185
|
+
] });
|
|
186
|
+
export {
|
|
187
|
+
P as I,
|
|
188
|
+
y as L,
|
|
189
|
+
T as S,
|
|
190
|
+
$ as a,
|
|
191
|
+
z as b,
|
|
192
|
+
f as c,
|
|
193
|
+
j as d,
|
|
194
|
+
o as u
|
|
195
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { u as t, I as u, b as C, a as h } from "./loadingIcon-DmuPXh70.js";
|
|
2
|
+
import { createMandatoryConsentManager as b } from "@incodetech/core/mandatory-consent";
|
|
3
|
+
import { y as g } from "./vendor-preact-BoMmvSgn.js";
|
|
4
|
+
import "@incodetech/core";
|
|
5
|
+
import "./instance-BWYzq8dk.js";
|
|
6
|
+
import { B as d } from "./button-CE9kRlem.js";
|
|
7
|
+
import { C as p } from "./checkbox-B5X-mfqq.js";
|
|
8
|
+
import { P as l } from "./page-SrUl0qtN.js";
|
|
9
|
+
import { R as f } from "./richText-cspvNz2a.js";
|
|
10
|
+
import { S as I } from "./spinner-DygONskw.js";
|
|
11
|
+
import { r as y } from "./incodeModule-C4XIllao.js";
|
|
12
|
+
const k = ({
|
|
13
|
+
config: o,
|
|
14
|
+
manager: s,
|
|
15
|
+
onFinish: i,
|
|
16
|
+
onError: e
|
|
17
|
+
}) => {
|
|
18
|
+
const { t: c } = C(), [n, r] = h(
|
|
19
|
+
() => s ?? b({ config: o }),
|
|
20
|
+
{ manageLifecycle: !s }
|
|
21
|
+
);
|
|
22
|
+
if (g(() => {
|
|
23
|
+
if (n.status === "finished") {
|
|
24
|
+
i?.();
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (n.status === "closed") {
|
|
28
|
+
e?.(void 0);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
n.status === "error" && e?.(n.error);
|
|
32
|
+
}, [n, i, e]), n.status === "finished" || n.status === "closed" || n.status === "error")
|
|
33
|
+
return null;
|
|
34
|
+
if (n.status === "idle" || n.status === "loading")
|
|
35
|
+
return /* @__PURE__ */ t(l, { className: "IncodeConsentPage", children: /* @__PURE__ */ t("div", { class: "IncodeConsentCentered", children: /* @__PURE__ */ t(I, {}) }) });
|
|
36
|
+
const m = n.text.split(`
|
|
37
|
+
`).filter((a) => a.trim().length > 0).join(" ");
|
|
38
|
+
return /* @__PURE__ */ t(l, { className: "IncodeConsentPage", hideFooterBranding: !0, hideHeader: !0, children: /* @__PURE__ */ t("div", { class: "IncodeConsentContent", children: [
|
|
39
|
+
/* @__PURE__ */ t("div", { class: "IncodeConsentBody", children: [
|
|
40
|
+
/* @__PURE__ */ t("h1", { id: "mandatory-consent-title", class: "IncodeConsentTitle", children: n.title }),
|
|
41
|
+
/* @__PURE__ */ t("p", { class: "IncodeConsentSubtitle", children: c("biometricConsent.subtitle") }),
|
|
42
|
+
/* @__PURE__ */ t("div", { class: "IncodeConsentCheckboxList", children: /* @__PURE__ */ t(
|
|
43
|
+
p,
|
|
44
|
+
{
|
|
45
|
+
id: "mandatory-consent-checkbox",
|
|
46
|
+
class: "IncodeConsentCheckbox",
|
|
47
|
+
checked: n.isSigned,
|
|
48
|
+
onChange: () => r.toggle(),
|
|
49
|
+
label: /* @__PURE__ */ t(
|
|
50
|
+
"span",
|
|
51
|
+
{
|
|
52
|
+
class: "IncodeConsentCheckboxLabel",
|
|
53
|
+
onClick: (a) => {
|
|
54
|
+
a.target.closest("a") && a.stopPropagation();
|
|
55
|
+
},
|
|
56
|
+
children: /* @__PURE__ */ t(f, { content: m, class: "IncodeRichText" })
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
}
|
|
60
|
+
) })
|
|
61
|
+
] }),
|
|
62
|
+
/* @__PURE__ */ t("div", { class: "IncodeConsentActions", children: [
|
|
63
|
+
/* @__PURE__ */ t(
|
|
64
|
+
d,
|
|
65
|
+
{
|
|
66
|
+
"data-testid": "mandatory-consent-submit",
|
|
67
|
+
class: "IncodeConsentButton",
|
|
68
|
+
onClick: () => r.submit(),
|
|
69
|
+
disabled: !n.canSubmit,
|
|
70
|
+
isLoading: n.status === "submitting",
|
|
71
|
+
children: c("biometricConsent.button.continue")
|
|
72
|
+
}
|
|
73
|
+
),
|
|
74
|
+
/* @__PURE__ */ t(d, { variant: "link", onClick: () => r.cancel(), children: c("biometricConsent.button.cancel") })
|
|
75
|
+
] })
|
|
76
|
+
] }) });
|
|
77
|
+
}, x = ({
|
|
78
|
+
config: o,
|
|
79
|
+
manager: s,
|
|
80
|
+
onFinish: i,
|
|
81
|
+
onError: e
|
|
82
|
+
}) => /* @__PURE__ */ t(u, { children: o ? /* @__PURE__ */ t(
|
|
83
|
+
k,
|
|
84
|
+
{
|
|
85
|
+
config: o,
|
|
86
|
+
manager: s,
|
|
87
|
+
onFinish: i,
|
|
88
|
+
onError: e
|
|
89
|
+
}
|
|
90
|
+
) : null });
|
|
91
|
+
y(x, "incode-mandatory-consent");
|
|
92
|
+
export {
|
|
93
|
+
x as MandatoryConsent
|
|
94
|
+
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { u as r, c as u, b as D
|
|
2
|
-
import { d as S, y as f, Q as
|
|
3
|
-
import { C as
|
|
4
|
-
import "./
|
|
1
|
+
import { u as r, c as u, b as D } from "./loadingIcon-DmuPXh70.js";
|
|
2
|
+
import { d as S, y as f, Q as x, H as k, K as R, t as w, a as _, A as M, q as P, T as q, $ as F, b as H, D as O } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
+
import { C as j } from "./closeIcon-9Hc97omv.js";
|
|
4
|
+
import "./instance-BWYzq8dk.js";
|
|
5
|
+
import { B as K } from "./button-CE9kRlem.js";
|
|
5
6
|
const y = "IncodeModalScrollLock", L = "data-incode-modal-initial-focus", h = [
|
|
6
7
|
"button:not([disabled])",
|
|
7
8
|
"[href]",
|
|
@@ -107,9 +108,9 @@ function z(e, t) {
|
|
|
107
108
|
return document.addEventListener("keydown", o), () => document.removeEventListener("keydown", o);
|
|
108
109
|
}, [e, t]);
|
|
109
110
|
}
|
|
110
|
-
const g =
|
|
111
|
+
const g = x(null);
|
|
111
112
|
function A() {
|
|
112
|
-
const e =
|
|
113
|
+
const e = H(g);
|
|
113
114
|
if (!e)
|
|
114
115
|
throw new Error("Modal compound components must be used within Modal.Root");
|
|
115
116
|
return e;
|
|
@@ -124,9 +125,9 @@ function Q({
|
|
|
124
125
|
hasBackdrop: a = !0,
|
|
125
126
|
manageInitialFocus: i = !0
|
|
126
127
|
}) {
|
|
127
|
-
const d = V(e, c ?? void 0), [C, s] = S(!1), m = M(null), p =
|
|
128
|
+
const d = V(e, c ?? void 0), [C, s] = S(!1), m = M(null), p = P(() => {
|
|
128
129
|
n && o?.(!1);
|
|
129
|
-
}, [n, o]), E =
|
|
130
|
+
}, [n, o]), E = q(
|
|
130
131
|
() => ({
|
|
131
132
|
setHasDescription: s,
|
|
132
133
|
dismissible: n,
|
|
@@ -134,7 +135,7 @@ function Q({
|
|
|
134
135
|
}),
|
|
135
136
|
[n, p]
|
|
136
137
|
), b = e && !!d;
|
|
137
|
-
return Z(e), U(e, n, p), $(b, m, i), z(b, m), !d || !e ? null :
|
|
138
|
+
return Z(e), U(e, n, p), $(b, m, i), z(b, m), !d || !e ? null : F(
|
|
138
139
|
/* @__PURE__ */ r(g.Provider, { value: E, children: /* @__PURE__ */ r("div", { class: u("IncodeModalRoot", l), "data-incode-modal": "", children: [
|
|
139
140
|
a && /* @__PURE__ */ r(
|
|
140
141
|
"div",
|
|
@@ -189,7 +190,7 @@ function J({
|
|
|
189
190
|
"aria-label": e,
|
|
190
191
|
title: t,
|
|
191
192
|
onClick: a,
|
|
192
|
-
children: /* @__PURE__ */ r(
|
|
193
|
+
children: /* @__PURE__ */ r(j, { height: 32, width: 32, fillColor: "var(--icon-neutral-300)" })
|
|
193
194
|
}
|
|
194
195
|
);
|
|
195
196
|
}
|
|
@@ -219,7 +220,7 @@ function Y({ children: e, ref: t, class: o }) {
|
|
|
219
220
|
}
|
|
220
221
|
function ee({ children: e, class: t }) {
|
|
221
222
|
const { setHasDescription: o } = A();
|
|
222
|
-
return
|
|
223
|
+
return _(() => (o(!0), () => o(!1)), [o]), /* @__PURE__ */ r(
|
|
223
224
|
"h5",
|
|
224
225
|
{
|
|
225
226
|
id: "incode-modal-description",
|
|
@@ -236,20 +237,20 @@ function ne({
|
|
|
236
237
|
class: t,
|
|
237
238
|
orientation: o = "vertical"
|
|
238
239
|
}) {
|
|
239
|
-
const n = o === "vertical" ? "IncodeModalActionsVertical" : "IncodeModalActionsHorizontal", c =
|
|
240
|
+
const n = o === "vertical" ? "IncodeModalActionsVertical" : "IncodeModalActionsHorizontal", c = k(e), l = [];
|
|
240
241
|
for (let a = 0; a < c.length; a++) {
|
|
241
242
|
const i = c[a];
|
|
242
243
|
if (te(i))
|
|
243
244
|
return /* @__PURE__ */ r("div", { class: u(n, t), role: "group", children: e });
|
|
244
245
|
l.push(
|
|
245
|
-
w(i) && a === 0 ?
|
|
246
|
+
w(i) && a === 0 ? R(i, {
|
|
246
247
|
[L]: ""
|
|
247
248
|
}) : i
|
|
248
249
|
);
|
|
249
250
|
}
|
|
250
251
|
return /* @__PURE__ */ r("div", { class: u(n, t), role: "group", children: l });
|
|
251
252
|
}
|
|
252
|
-
const
|
|
253
|
+
const ue = {
|
|
253
254
|
Root: Q,
|
|
254
255
|
Content: G,
|
|
255
256
|
Close: J,
|
|
@@ -266,7 +267,7 @@ function oe() {
|
|
|
266
267
|
o.src = "https://cdn.jsdelivr.net/npm/lottie-web@5.13.0/build/player/lottie_light.min.js", o.onload = () => e(window.lottie), o.onerror = t, document.head.appendChild(o);
|
|
267
268
|
}), v);
|
|
268
269
|
}
|
|
269
|
-
function
|
|
270
|
+
function de({
|
|
270
271
|
animationData: e,
|
|
271
272
|
loop: t = !0,
|
|
272
273
|
autoplay: o = !0,
|
|
@@ -345,12 +346,12 @@ const re = () => /* @__PURE__ */ r("div", { class: "IncodeCameraButton", childre
|
|
|
345
346
|
)
|
|
346
347
|
]
|
|
347
348
|
}
|
|
348
|
-
) }),
|
|
349
|
+
) }), fe = O(({ onClick: e, disabled: t }, o) => {
|
|
349
350
|
const { t: n } = D();
|
|
350
351
|
return /* @__PURE__ */ r("div", { class: "IncodeSelfieManualCapture", "data-testid": "manual-capture-button", children: [
|
|
351
352
|
/* @__PURE__ */ r("p", { id: "manual-capture-instructions", class: "IncodeSelfieManualCaptureText", children: n("selfiev2.manualCapture.instructions") }),
|
|
352
353
|
/* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(
|
|
353
|
-
|
|
354
|
+
K,
|
|
354
355
|
{
|
|
355
356
|
ref: o,
|
|
356
357
|
id: "manual-capture-button",
|
|
@@ -365,7 +366,7 @@ const re = () => /* @__PURE__ */ r("div", { class: "IncodeCameraButton", childre
|
|
|
365
366
|
] });
|
|
366
367
|
});
|
|
367
368
|
export {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
369
|
+
de as L,
|
|
370
|
+
ue as M,
|
|
371
|
+
fe as a
|
|
371
372
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as e } from "./
|
|
1
|
+
import { u as e } from "./loadingIcon-DmuPXh70.js";
|
|
2
2
|
const t = ({ number: r }) => /* @__PURE__ */ e("div", { class: "IncodeNumberedStep", children: /* @__PURE__ */ e("span", { class: "IncodeNumberedStepText", children: r }) });
|
|
3
3
|
export {
|
|
4
4
|
t as N
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { b as B, u as r, S as A
|
|
2
|
-
import { d as
|
|
3
|
-
import {
|
|
4
|
-
import "./
|
|
5
|
-
|
|
1
|
+
import { b as B, u as r, S as A } from "./loadingIcon-DmuPXh70.js";
|
|
2
|
+
import { d as M, A as s, q as y, y as C } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
+
import { B as N } from "./button-CE9kRlem.js";
|
|
4
|
+
import { a as E } from "./inputComposed-fUbAGrDy.js";
|
|
5
|
+
import "./instance-BWYzq8dk.js";
|
|
6
|
+
const i = 6, G = (o) => {
|
|
6
7
|
const c = Math.floor(o / 60), l = o % 60;
|
|
7
8
|
return `${c}:${l.toString().padStart(2, "0")}`;
|
|
8
|
-
}, b = (o) => o.replace(/[^a-zA-Z0-9]/g, "").toUpperCase().slice(0,
|
|
9
|
+
}, b = (o) => o.replace(/[^a-zA-Z0-9]/g, "").toUpperCase().slice(0, i), Y = ({
|
|
9
10
|
resendTimer: o,
|
|
10
11
|
canResend: c,
|
|
11
12
|
error: l,
|
|
@@ -16,7 +17,7 @@ const u = 6, G = (o) => {
|
|
|
16
17
|
disabled: f = !1,
|
|
17
18
|
isLoading: p = !1
|
|
18
19
|
}) => {
|
|
19
|
-
const { t: n } = B(), [a, m] =
|
|
20
|
+
const { t: n } = B(), [a, m] = M(""), x = s(null), S = s(0), d = s(null), T = s(null), k = s(c), v = s(!1), O = s(), u = y((t) => {
|
|
20
21
|
const e = T.current;
|
|
21
22
|
e && (clearTimeout(O.current), e.textContent = "", O.current = setTimeout(() => {
|
|
22
23
|
e.textContent = t;
|
|
@@ -24,8 +25,8 @@ const u = 6, G = (o) => {
|
|
|
24
25
|
}, []);
|
|
25
26
|
C(() => {
|
|
26
27
|
const t = !k.current;
|
|
27
|
-
return k.current = c, t && c &&
|
|
28
|
-
}, [c,
|
|
28
|
+
return k.current = c, t && c && u(n("otp.resendCodeAvailable")), () => clearTimeout(O.current);
|
|
29
|
+
}, [c, u, n]), C(() => {
|
|
29
30
|
l && (d.current = null, setTimeout(() => {
|
|
30
31
|
x.current?.focus();
|
|
31
32
|
}, 0));
|
|
@@ -33,13 +34,13 @@ const u = 6, G = (o) => {
|
|
|
33
34
|
const h = y(
|
|
34
35
|
(t) => {
|
|
35
36
|
const e = b(t);
|
|
36
|
-
e.length !==
|
|
37
|
+
e.length !== i || p || d.current !== e && (d.current = e, g(e));
|
|
37
38
|
},
|
|
38
39
|
[p, g]
|
|
39
40
|
);
|
|
40
41
|
C(() => {
|
|
41
42
|
if (!a) return;
|
|
42
|
-
const t = a.length ===
|
|
43
|
+
const t = a.length === i && S.current < i;
|
|
43
44
|
S.current = a.length, t && h(a);
|
|
44
45
|
}, [a, h]);
|
|
45
46
|
const R = (t) => {
|
|
@@ -48,7 +49,7 @@ const u = 6, G = (o) => {
|
|
|
48
49
|
}, $ = (t) => {
|
|
49
50
|
t.preventDefault();
|
|
50
51
|
const e = t.clipboardData?.getData("text") || "", I = b(e);
|
|
51
|
-
I && (m(I), I.length ===
|
|
52
|
+
I && (m(I), I.length === i && h(I));
|
|
52
53
|
};
|
|
53
54
|
C(() => {
|
|
54
55
|
if (c || o <= 0) {
|
|
@@ -56,11 +57,11 @@ const u = 6, G = (o) => {
|
|
|
56
57
|
return;
|
|
57
58
|
}
|
|
58
59
|
if (!v.current) {
|
|
59
|
-
v.current = !0,
|
|
60
|
+
v.current = !0, u(n("otp.timerStarted", { time: String(o) }));
|
|
60
61
|
return;
|
|
61
62
|
}
|
|
62
|
-
o === 10 ?
|
|
63
|
-
}, [o, c,
|
|
63
|
+
o === 10 ? u(n("otp.timerTenSeconds")) : o === 5 && u(n("otp.timerFiveSeconds"));
|
|
64
|
+
}, [o, c, u, n]);
|
|
64
65
|
const w = () => {
|
|
65
66
|
if (!c && o > 0)
|
|
66
67
|
return /* @__PURE__ */ r("div", { class: "IncodeOtpInputActions", children: /* @__PURE__ */ r("p", { class: "IncodeOtpInputTimerText", "data-testid": "otp-timer", children: n("otp.resendCountdown", { time: G(o) }) }) });
|
|
@@ -120,7 +121,7 @@ const u = 6, G = (o) => {
|
|
|
120
121
|
type: "text",
|
|
121
122
|
inputMode: "text",
|
|
122
123
|
ref: x,
|
|
123
|
-
maxLength:
|
|
124
|
+
maxLength: i,
|
|
124
125
|
value: a,
|
|
125
126
|
error: l,
|
|
126
127
|
onInput: R,
|
|
@@ -135,12 +136,12 @@ const u = 6, G = (o) => {
|
|
|
135
136
|
),
|
|
136
137
|
/* @__PURE__ */ r(A, {}),
|
|
137
138
|
/* @__PURE__ */ r(
|
|
138
|
-
|
|
139
|
+
N,
|
|
139
140
|
{
|
|
140
141
|
onClick: () => {
|
|
141
142
|
h(a);
|
|
142
143
|
},
|
|
143
|
-
disabled: a.length <
|
|
144
|
+
disabled: a.length < i || p,
|
|
144
145
|
isLoading: p,
|
|
145
146
|
"data-testid": "otp-submit",
|
|
146
147
|
children: n("common.continue")
|
|
@@ -151,5 +152,5 @@ const u = 6, G = (o) => {
|
|
|
151
152
|
] });
|
|
152
153
|
};
|
|
153
154
|
export {
|
|
154
|
-
|
|
155
|
+
Y as O
|
|
155
156
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as
|
|
3
|
-
|
|
1
|
+
import { u as e, S as i } from "./loadingIcon-DmuPXh70.js";
|
|
2
|
+
import { A as f, y as m, k as r } from "./vendor-preact-BoMmvSgn.js";
|
|
3
|
+
import { u as p, V as S, i as v } from "./button-CE9kRlem.js";
|
|
4
|
+
const x = ({
|
|
4
5
|
title: a,
|
|
5
6
|
titleId: s,
|
|
6
|
-
subtitle:
|
|
7
|
+
subtitle: o,
|
|
7
8
|
className: c,
|
|
8
9
|
logo: l,
|
|
9
10
|
children: t,
|
|
@@ -12,16 +13,16 @@ const L = ({
|
|
|
12
13
|
"data-testid": u,
|
|
13
14
|
"data-permission-status": I
|
|
14
15
|
}) => {
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
const d = f(null);
|
|
17
|
+
m(() => {
|
|
18
|
+
d.current?.focus();
|
|
18
19
|
}, []);
|
|
19
|
-
const n =
|
|
20
|
+
const n = p({
|
|
20
21
|
hideHeader: g,
|
|
21
22
|
hideFooterBranding: h,
|
|
22
23
|
logo: l,
|
|
23
|
-
defaultLogoSrc:
|
|
24
|
-
}), P = a ||
|
|
24
|
+
defaultLogoSrc: v
|
|
25
|
+
}), P = a || o;
|
|
25
26
|
return /* @__PURE__ */ e(
|
|
26
27
|
"div",
|
|
27
28
|
{
|
|
@@ -44,25 +45,25 @@ const L = ({
|
|
|
44
45
|
a ? /* @__PURE__ */ e(
|
|
45
46
|
"h2",
|
|
46
47
|
{
|
|
47
|
-
ref:
|
|
48
|
+
ref: d,
|
|
48
49
|
id: s,
|
|
49
50
|
class: "IncodePageTitle",
|
|
50
51
|
tabIndex: -1,
|
|
51
52
|
children: a
|
|
52
53
|
}
|
|
53
54
|
) : null,
|
|
54
|
-
|
|
55
|
+
o ? /* @__PURE__ */ e(r, { children: [
|
|
55
56
|
/* @__PURE__ */ e(i, { size: 12 }),
|
|
56
|
-
/* @__PURE__ */ e("p", { class: "IncodePageSubtitle", children:
|
|
57
|
+
/* @__PURE__ */ e("p", { class: "IncodePageSubtitle", children: o })
|
|
57
58
|
] }) : null
|
|
58
59
|
] })
|
|
59
60
|
] }) : null,
|
|
60
61
|
/* @__PURE__ */ e("div", { class: "IncodePageContent", children: t }),
|
|
61
|
-
n.hideFooterBranding ? null : /* @__PURE__ */ e("div", { class: "IncodePageFooter", children: /* @__PURE__ */ e("div", { class: "IncodePageFooterInner", children: /* @__PURE__ */ e(
|
|
62
|
+
n.hideFooterBranding ? null : /* @__PURE__ */ e("div", { class: "IncodePageFooter", children: /* @__PURE__ */ e("div", { class: "IncodePageFooterInner", children: /* @__PURE__ */ e(S, {}) }) })
|
|
62
63
|
] })
|
|
63
64
|
}
|
|
64
65
|
);
|
|
65
66
|
};
|
|
66
67
|
export {
|
|
67
|
-
|
|
68
|
+
x as P
|
|
68
69
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { u as C, c as S,
|
|
2
|
-
import {
|
|
3
|
-
import { P as
|
|
1
|
+
import { u as C, c as S, b as c } from "./loadingIcon-DmuPXh70.js";
|
|
2
|
+
import { B as L } from "./button-CE9kRlem.js";
|
|
3
|
+
import { L as P, M as a } from "./manualCaptureButton-BvFmTyJe.js";
|
|
4
|
+
import { P as f } from "./page-SrUl0qtN.js";
|
|
4
5
|
import { _ as i, k as I, A as _, y as H } from "./vendor-preact-BoMmvSgn.js";
|
|
5
6
|
import { getBrowser as F, getDeviceClass as b } from "@incodetech/core";
|
|
6
7
|
import { u as E } from "./useMediaQuery-lJdQBmC2.js";
|
|
7
|
-
import "./
|
|
8
|
-
import { S as T } from "./spinner-
|
|
9
|
-
import { c as V, T as x, d as D } from "./typography-
|
|
10
|
-
import { T as O } from "./Trans-
|
|
11
|
-
import { N as U } from "./numberedStep-
|
|
12
|
-
import { W as A } from "./warningIcon-
|
|
13
|
-
const
|
|
8
|
+
import "./instance-BWYzq8dk.js";
|
|
9
|
+
import { S as T } from "./spinner-DygONskw.js";
|
|
10
|
+
import { c as V, T as x, d as D } from "./typography-BDACYR5i.js";
|
|
11
|
+
import { T as O } from "./Trans-aTzdT_SA.js";
|
|
12
|
+
import { N as U } from "./numberedStep-DwUB__mh.js";
|
|
13
|
+
import { W as A } from "./warningIcon-DQq_MrOB.js";
|
|
14
|
+
const H1 = ({
|
|
14
15
|
className: e = "",
|
|
15
16
|
animationData: t,
|
|
16
17
|
title: n,
|
|
@@ -639,7 +640,7 @@ function a1({
|
|
|
639
640
|
}
|
|
640
641
|
);
|
|
641
642
|
}
|
|
642
|
-
const
|
|
643
|
+
const x1 = ({
|
|
643
644
|
manager: e,
|
|
644
645
|
permissionStatus: t
|
|
645
646
|
}) => {
|
|
@@ -703,6 +704,6 @@ const H1 = ({
|
|
|
703
704
|
);
|
|
704
705
|
};
|
|
705
706
|
export {
|
|
706
|
-
|
|
707
|
-
|
|
707
|
+
H1 as B,
|
|
708
|
+
x1 as P
|
|
708
709
|
};
|