@incodetech/web 0.0.0-dev-20260313-d658d3a → 0.0.0-dev-20260313-573a40c
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-BnPbhF6c.js → Trans-CVsR_Mce.js} +1 -1
- package/dist/authentication/authentication.es.js +3 -3
- package/dist/base.css +26 -1
- package/dist/{baseTutorial-g5NWjgBD.js → baseTutorial-DmtD23I-.js} +196 -158
- package/dist/{captureFooter-qhkTSzDA.js → captureFooter-CokUs1te.js} +1 -1
- package/dist/{chevronDown-BZNPUs4a.js → chevronDown-DYJNV1QK.js} +1 -1
- package/dist/{closeIcon-B5HxSoNj.js → closeIcon-DQDl1mpN.js} +1 -1
- package/dist/curp-validation/curp-validation.es.js +6 -6
- package/dist/{dateInputComposed-R0ZEgvu9.js → dateInputComposed-BzMiH4hO.js} +2 -2
- package/dist/{documentCapture-CtF0FPAF.js → documentCapture-BxRw-eCN.js} +6 -6
- package/dist/{dropdownComposed-BlSDt04F.js → dropdownComposed-DEUeG49j.js} +4 -4
- package/dist/{ekybModule-ChD0rtCB.js → ekybModule-C3Ujm2Yw.js} +4 -4
- package/dist/{ekycModule-CDUkXo7h.js → ekycModule-BSb0VO0K.js} +5 -5
- package/dist/email/email.es.js +3 -3
- package/dist/errorContent-DsXEhW_F.js +43 -0
- package/dist/{faceMatch-BAu-4UO1.js → faceMatch-BvQGLKCA.js} +2 -2
- package/dist/flow/flow.es.js +7 -7
- package/dist/flow/styles.css +100 -16
- package/dist/geolocation/geolocation.es.js +3 -3
- package/dist/governmentValidation/governmentValidation.es.js +6 -6
- package/dist/id/id.es.js +6 -6
- package/dist/{incodeModule-7zNv7YeX.js → incodeModule-C-yBwl3V.js} +112 -110
- package/dist/{otpInput-DWZ7I1PN.js → otpInput-DTGm8I2x.js} +1 -1
- package/dist/{page-DoIWDQTP.js → page-DoaUg40Q.js} +55 -40
- package/dist/phone/phone.es.js +4 -4
- package/dist/{processing-D6kl543t.js → processing-BIuFpDjr.js} +2 -2
- package/dist/selfie/selfie.es.js +14 -7
- package/dist/selfie/styles.css +28 -16
- package/dist/spinner-EHZM4eN1.js +64 -0
- package/dist/{successIcon-mP1PQQrr.js → successIcon-CMUvDv_Z.js} +1 -1
- package/dist/{tutorial-Ct-q8YeM.js → tutorial-DkmCNA8p.js} +250 -173
- package/dist/{verificationResult-6jqSfF6-.js → verificationResult-7tUMuDVH.js} +5 -5
- package/dist/{warningIcon-C9TCAUlH.js → warningIcon-m0tjjxQl.js} +1 -1
- package/package.json +2 -2
- package/dist/errorContent-BCqdWSgy.js +0 -30
- package/dist/spinner-BknkxcID.js +0 -48
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import { isIPad as
|
|
3
|
-
import { g as
|
|
4
|
-
function
|
|
5
|
-
const { autoLoad: t = !0 } = n, [o] =
|
|
1
|
+
import { d as p, y as v, l as _, D as B, k as b, $ as k, A as x, _ as u, J as V, G as g, K as y } from "./vendor-preact-DP-hbKuj.js";
|
|
2
|
+
import { isIPad as M } from "@incodetech/core";
|
|
3
|
+
import { g as O, a as E } from "./uiConfig-B8PUPgHY.js";
|
|
4
|
+
function ce(e, n = {}) {
|
|
5
|
+
const { autoLoad: t = !0 } = n, [o] = p(e), [c, r] = p(
|
|
6
6
|
() => o.getState()
|
|
7
7
|
);
|
|
8
|
-
return
|
|
8
|
+
return v(() => {
|
|
9
9
|
const a = o.subscribe(r);
|
|
10
10
|
return t && o.load && o.load(), () => {
|
|
11
11
|
a(), o.stop?.();
|
|
12
12
|
};
|
|
13
13
|
}, [o, t]), [c, o];
|
|
14
14
|
}
|
|
15
|
-
var
|
|
15
|
+
var P = 0;
|
|
16
16
|
function i(e, n, t, o, c, r) {
|
|
17
17
|
n || (n = {});
|
|
18
18
|
var a, s, l = n;
|
|
19
19
|
if ("ref" in l) for (s in l = {}, n) s == "ref" ? a = n[s] : l[s] = n[s];
|
|
20
|
-
var d = { type: e, props: l, key: t, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
20
|
+
var d = { type: e, props: l, key: t, ref: a, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --P, __i: -1, __u: 0, __source: c, __self: r };
|
|
21
21
|
if (typeof e == "function" && (a = e.defaultProps)) for (s in a) l[s] === void 0 && (l[s] = a[s]);
|
|
22
|
-
return
|
|
22
|
+
return _.vnode && _.vnode(d), d;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
const e =
|
|
26
|
-
return
|
|
24
|
+
function j() {
|
|
25
|
+
const e = O(), [, n] = p(0), [t, o] = p(e.isInitialized);
|
|
26
|
+
return v(() => {
|
|
27
27
|
const c = () => {
|
|
28
28
|
n((a) => a + 1);
|
|
29
29
|
}, r = () => {
|
|
@@ -38,7 +38,7 @@ function E() {
|
|
|
38
38
|
i18n: e
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const $ = /* @__PURE__ */ new Set([
|
|
42
42
|
0,
|
|
43
43
|
2,
|
|
44
44
|
4,
|
|
@@ -56,7 +56,7 @@ const P = /* @__PURE__ */ new Set([
|
|
|
56
56
|
104,
|
|
57
57
|
120,
|
|
58
58
|
200
|
|
59
|
-
]),
|
|
59
|
+
]), A = (e, n) => n === "horizontal" ? {
|
|
60
60
|
0: "IncodeSpacerHorizontal0",
|
|
61
61
|
2: "IncodeSpacerHorizontal2",
|
|
62
62
|
4: "IncodeSpacerHorizontal4",
|
|
@@ -92,11 +92,11 @@ const P = /* @__PURE__ */ new Set([
|
|
|
92
92
|
104: "IncodeSpacerVertical104",
|
|
93
93
|
120: "IncodeSpacerVertical120",
|
|
94
94
|
200: "IncodeSpacerVertical200"
|
|
95
|
-
}[e],
|
|
95
|
+
}[e], ie = ({
|
|
96
96
|
size: e,
|
|
97
97
|
className: n,
|
|
98
98
|
direction: t = "vertical"
|
|
99
|
-
}) => e === void 0 ? /* @__PURE__ */ i("div", { class: `IncodeSpacerFlex ${n || ""}` }) : (t === "horizontal" ? "w" : t === "vertical" ? "h" : void 0) ? typeof e == "number" &&
|
|
99
|
+
}) => e === void 0 ? /* @__PURE__ */ i("div", { class: `IncodeSpacerFlex ${n || ""}` }) : (t === "horizontal" ? "w" : t === "vertical" ? "h" : void 0) ? typeof e == "number" && $.has(e) ? /* @__PURE__ */ i("div", { class: `${A(e, t)} ${n || ""}` }) : /* @__PURE__ */ i("div", { class: `${n || ""}` }) : /* @__PURE__ */ i("div", { class: `${n || ""}` }), S = (...e) => {
|
|
100
100
|
const n = [];
|
|
101
101
|
for (const t of e)
|
|
102
102
|
if (t) {
|
|
@@ -107,7 +107,7 @@ const P = /* @__PURE__ */ new Set([
|
|
|
107
107
|
c && n.push(o);
|
|
108
108
|
}
|
|
109
109
|
return n.join(" ");
|
|
110
|
-
},
|
|
110
|
+
}, T = ({
|
|
111
111
|
size: e,
|
|
112
112
|
className: n
|
|
113
113
|
}) => /* @__PURE__ */ i(
|
|
@@ -118,13 +118,11 @@ const P = /* @__PURE__ */ new Set([
|
|
|
118
118
|
viewBox: "0 0 31 31",
|
|
119
119
|
fill: "none",
|
|
120
120
|
xmlns: "http://www.w3.org/2000/svg",
|
|
121
|
-
class:
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
/* @__PURE__ */ i("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" })
|
|
125
|
-
]
|
|
121
|
+
class: S("IncodeLoadingIconPrimaryIcon", n),
|
|
122
|
+
"aria-hidden": "true",
|
|
123
|
+
children: /* @__PURE__ */ i("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" })
|
|
126
124
|
}
|
|
127
|
-
),
|
|
125
|
+
), F = ({
|
|
128
126
|
size: e,
|
|
129
127
|
className: n
|
|
130
128
|
}) => /* @__PURE__ */ i(
|
|
@@ -135,93 +133,97 @@ const P = /* @__PURE__ */ new Set([
|
|
|
135
133
|
viewBox: "0 0 31 31",
|
|
136
134
|
fill: "none",
|
|
137
135
|
xmlns: "http://www.w3.org/2000/svg",
|
|
138
|
-
class:
|
|
136
|
+
class: S("IncodeLoadingIconSecondaryIcon", n),
|
|
137
|
+
"aria-hidden": "true",
|
|
139
138
|
children: [
|
|
140
139
|
/* @__PURE__ */ i("title", { children: "Spinner Outer part" }),
|
|
141
140
|
/* @__PURE__ */ i("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" })
|
|
142
141
|
]
|
|
143
142
|
}
|
|
144
|
-
),
|
|
143
|
+
), N = ({
|
|
145
144
|
size: e = 30,
|
|
146
145
|
secondaryClass: n,
|
|
147
146
|
primaryClass: t
|
|
148
147
|
}) => /* @__PURE__ */ i("div", { class: "IncodeLoadingIcon", children: [
|
|
149
|
-
/* @__PURE__ */ i(
|
|
150
|
-
/* @__PURE__ */ i("div", { class: "IncodeLoadingIconPrimary", children: /* @__PURE__ */ i(
|
|
151
|
-
] }),
|
|
148
|
+
/* @__PURE__ */ i(F, { size: e, className: n }),
|
|
149
|
+
/* @__PURE__ */ i("div", { class: "IncodeLoadingIconPrimary", children: /* @__PURE__ */ i(T, { size: e, className: t }) })
|
|
150
|
+
] }), R = 30, Z = {
|
|
152
151
|
primary: "IncodeButtonPrimary",
|
|
153
152
|
secondary: "IncodeButtonSecondary",
|
|
154
153
|
link: "IncodeButtonLink"
|
|
155
|
-
},
|
|
154
|
+
}, D = {
|
|
156
155
|
L: "IncodeButtonL",
|
|
157
156
|
M: "IncodeButtonM",
|
|
158
157
|
S: "IncodeButtonS"
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
158
|
+
}, se = B(
|
|
159
|
+
(e, n) => {
|
|
160
|
+
const {
|
|
161
|
+
isLoading: t = !1,
|
|
162
|
+
variant: o = "primary",
|
|
163
|
+
size: c = "L",
|
|
164
|
+
icon: r,
|
|
165
|
+
class: a,
|
|
166
|
+
type: s = "button",
|
|
167
|
+
children: l,
|
|
168
|
+
disabled: d,
|
|
169
|
+
...h
|
|
170
|
+
} = e, f = !l && !!r, I = t && c === "L", H = () => I ? /* @__PURE__ */ i(N, { size: R }) : f ? r : r ? /* @__PURE__ */ i(b, { children: [
|
|
171
|
+
l,
|
|
172
|
+
r
|
|
173
|
+
] }) : l;
|
|
174
|
+
return /* @__PURE__ */ i(
|
|
175
|
+
"button",
|
|
176
|
+
{
|
|
177
|
+
ref: n,
|
|
178
|
+
...h,
|
|
179
|
+
class: S(
|
|
180
|
+
"IncodeButton",
|
|
181
|
+
Z[o],
|
|
182
|
+
D[c],
|
|
183
|
+
I ? "IncodeButtonLoading" : "",
|
|
184
|
+
f ? "IncodeButtonIconOnly" : "",
|
|
185
|
+
a
|
|
186
|
+
),
|
|
187
|
+
disabled: d || I,
|
|
188
|
+
type: s,
|
|
189
|
+
children: H()
|
|
190
|
+
}
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
), U = "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";
|
|
194
|
+
function K() {
|
|
195
|
+
const [e, n] = p(null), t = x(null);
|
|
196
|
+
return v(() => {
|
|
195
197
|
const o = document.createElement("div");
|
|
196
198
|
return o.setAttribute("data-incode-landscape-portal", ""), document.body.appendChild(o), t.current = o, n(o), () => {
|
|
197
199
|
o.remove(), t.current = null;
|
|
198
200
|
};
|
|
199
201
|
}, []), e;
|
|
200
202
|
}
|
|
201
|
-
function
|
|
202
|
-
const { t: e } =
|
|
203
|
-
return n ?
|
|
203
|
+
function G() {
|
|
204
|
+
const { t: e } = j(), n = K();
|
|
205
|
+
return n ? k(
|
|
204
206
|
/* @__PURE__ */ i("div", { class: "IncodeLandscapeBlocker", children: [
|
|
205
207
|
/* @__PURE__ */ i(
|
|
206
208
|
"img",
|
|
207
209
|
{
|
|
208
210
|
class: "IncodeLandscapeBlocker-icon",
|
|
209
|
-
src:
|
|
211
|
+
src: U,
|
|
210
212
|
alt: "",
|
|
211
213
|
"aria-hidden": !0
|
|
212
214
|
}
|
|
213
215
|
),
|
|
214
216
|
/* @__PURE__ */ i("p", { class: "IncodeLandscapeBlocker-text", children: e("common.landscape") }),
|
|
215
|
-
/* @__PURE__ */ i("p", { class: "IncodeLandscapeBlocker-text", children:
|
|
217
|
+
/* @__PURE__ */ i("p", { class: "IncodeLandscapeBlocker-text", children: M() ? e("common.rotateIpad") : e("common.rotate") })
|
|
216
218
|
] }),
|
|
217
219
|
n
|
|
218
220
|
) : null;
|
|
219
221
|
}
|
|
220
|
-
function
|
|
221
|
-
const { isLandscapeMobile: n } =
|
|
222
|
+
function le({ children: e }) {
|
|
223
|
+
const { isLandscapeMobile: n } = E();
|
|
222
224
|
return /* @__PURE__ */ i("div", { class: "IncodeComponent", children: [
|
|
223
225
|
e,
|
|
224
|
-
n && /* @__PURE__ */ i(
|
|
226
|
+
n && /* @__PURE__ */ i(G, {})
|
|
225
227
|
] });
|
|
226
228
|
}
|
|
227
229
|
function m() {
|
|
@@ -233,21 +235,21 @@ function m() {
|
|
|
233
235
|
return e;
|
|
234
236
|
}, m.apply(this, arguments);
|
|
235
237
|
}
|
|
236
|
-
function
|
|
238
|
+
function L(e, n) {
|
|
237
239
|
if (e == null) return {};
|
|
238
240
|
var t, o, c = {}, r = Object.keys(e);
|
|
239
241
|
for (o = 0; o < r.length; o++) n.indexOf(t = r[o]) >= 0 || (c[t] = e[t]);
|
|
240
242
|
return c;
|
|
241
243
|
}
|
|
242
|
-
var
|
|
243
|
-
function
|
|
244
|
+
var J = ["context", "children"], q = ["useFragment"];
|
|
245
|
+
function Q(e, n, t, o) {
|
|
244
246
|
function c() {
|
|
245
247
|
var r, a = Reflect.construct(HTMLElement, [], c);
|
|
246
248
|
return a._vdomComponent = e, o && o.shadow ? (a._root = a.attachShadow({ mode: o.mode || "open", serializable: (r = o.serializable) != null && r }), o.adoptedStyleSheets && (a._root.adoptedStyleSheets = o.adoptedStyleSheets)) : a._root = a, a;
|
|
247
249
|
}
|
|
248
250
|
return (c.prototype = Object.create(HTMLElement.prototype)).constructor = c, c.prototype.connectedCallback = function() {
|
|
249
|
-
|
|
250
|
-
}, c.prototype.attributeChangedCallback =
|
|
251
|
+
X.call(this, o);
|
|
252
|
+
}, c.prototype.attributeChangedCallback = Y, c.prototype.disconnectedCallback = ee, t = t || e.observedAttributes || Object.keys(e.propTypes || {}), c.observedAttributes = t, e.formAssociated && (c.formAssociated = !0), t.forEach(function(r) {
|
|
251
253
|
Object.defineProperty(c.prototype, r, { get: function() {
|
|
252
254
|
return this._vdom ? this._vdom.props[r] : this._props[r];
|
|
253
255
|
}, set: function(a) {
|
|
@@ -257,68 +259,68 @@ function J(e, n, t, o) {
|
|
|
257
259
|
} });
|
|
258
260
|
}), customElements.define(n || e.tagName || e.displayName || e.name, c), c;
|
|
259
261
|
}
|
|
260
|
-
function
|
|
262
|
+
function W(e) {
|
|
261
263
|
this.getChildContext = function() {
|
|
262
264
|
return e.context;
|
|
263
265
|
};
|
|
264
|
-
var n = e.children, t =
|
|
265
|
-
return
|
|
266
|
+
var n = e.children, t = L(e, J);
|
|
267
|
+
return y(n, t);
|
|
266
268
|
}
|
|
267
|
-
function
|
|
269
|
+
function X(e) {
|
|
268
270
|
var n = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
|
|
269
|
-
this.dispatchEvent(n), this._vdom =
|
|
271
|
+
this.dispatchEvent(n), this._vdom = u(W, m({}, this._props, { context: n.detail.context }), z(this, this._vdomComponent, e)), (this.hasAttribute("hydrate") ? V : g)(this._vdom, this._root);
|
|
270
272
|
}
|
|
271
|
-
function
|
|
273
|
+
function w(e) {
|
|
272
274
|
return e.replace(/-(\w)/g, function(n, t) {
|
|
273
275
|
return t ? t.toUpperCase() : "";
|
|
274
276
|
});
|
|
275
277
|
}
|
|
276
|
-
function
|
|
278
|
+
function Y(e, n, t) {
|
|
277
279
|
if (this._vdom) {
|
|
278
280
|
var o = {};
|
|
279
|
-
o[e] = t = t ?? void 0, o[
|
|
281
|
+
o[e] = t = t ?? void 0, o[w(e)] = t, this._vdom = y(this._vdom, o), g(this._vdom, this._root);
|
|
280
282
|
}
|
|
281
283
|
}
|
|
282
|
-
function
|
|
283
|
-
|
|
284
|
+
function ee() {
|
|
285
|
+
g(this._vdom = null, this._root);
|
|
284
286
|
}
|
|
285
|
-
function
|
|
286
|
-
var t = this, o = e.useFragment, c =
|
|
287
|
-
return
|
|
287
|
+
function C(e, n) {
|
|
288
|
+
var t = this, o = e.useFragment, c = L(e, q);
|
|
289
|
+
return u(o ? b : "slot", m({}, c, { ref: function(r) {
|
|
288
290
|
r ? (t.ref = r, t._listener || (t._listener = function(a) {
|
|
289
291
|
a.stopPropagation(), a.detail.context = n;
|
|
290
292
|
}, r.addEventListener("_preact", t._listener))) : t.ref.removeEventListener("_preact", t._listener);
|
|
291
293
|
} }));
|
|
292
294
|
}
|
|
293
|
-
function
|
|
295
|
+
function z(e, n, t) {
|
|
294
296
|
if (e.nodeType === 3) return e.data;
|
|
295
297
|
if (e.nodeType !== 1) return null;
|
|
296
298
|
var o = [], c = {}, r = 0, a = e.attributes, s = e.childNodes;
|
|
297
|
-
for (r = a.length; r--; ) a[r].name !== "slot" && (c[a[r].name] = a[r].value, c[
|
|
299
|
+
for (r = a.length; r--; ) a[r].name !== "slot" && (c[a[r].name] = a[r].value, c[w(a[r].name)] = a[r].value);
|
|
298
300
|
for (r = s.length; r--; ) {
|
|
299
|
-
var l =
|
|
300
|
-
d ? c[d] =
|
|
301
|
+
var l = z(s[r], null, t), d = s[r].slot;
|
|
302
|
+
d ? c[d] = u(C, { name: d }, l) : o[r] = l;
|
|
301
303
|
}
|
|
302
|
-
var
|
|
303
|
-
return !
|
|
304
|
+
var h = !(!t || !t.shadow), f = n ? u(C, { useFragment: !h }, o) : o;
|
|
305
|
+
return !h && n && (e.innerHTML = ""), u(n || e.nodeName.toLowerCase(), c, f);
|
|
304
306
|
}
|
|
305
|
-
function
|
|
306
|
-
|
|
307
|
+
function ne(e, n, t) {
|
|
308
|
+
Q(e, n, [...t], {
|
|
307
309
|
shadow: !1
|
|
308
310
|
});
|
|
309
311
|
}
|
|
310
|
-
const
|
|
311
|
-
function
|
|
312
|
-
|
|
312
|
+
const te = ["config", "onFinish", "onError"];
|
|
313
|
+
function de(e, n) {
|
|
314
|
+
ne(e, n, te);
|
|
313
315
|
}
|
|
314
316
|
export {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
317
|
+
se as B,
|
|
318
|
+
le as I,
|
|
319
|
+
N as L,
|
|
320
|
+
ie as S,
|
|
321
|
+
ce as a,
|
|
322
|
+
j as b,
|
|
323
|
+
S as c,
|
|
324
|
+
de as r,
|
|
323
325
|
i as u
|
|
324
326
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { u as C, S as
|
|
2
|
-
import { u as
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
1
|
+
import { u as C, S as r } from "./incodeModule-C-yBwl3V.js";
|
|
2
|
+
import { A as V, y as u, k as l } from "./vendor-preact-DP-hbKuj.js";
|
|
3
|
+
import { u as M } from "./uiConfig-B8PUPgHY.js";
|
|
4
|
+
const Z = "data:image/svg+xml,%3csvg%20width='76'%20height='20'%20viewBox='0%200%2076%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.1687%206.01811C42.2312%206.01811%2043.7927%206.59655%2044.8446%207.76024C45.8919%208.91831%2046.4126%2010.5865%2046.4126%2012.7583C46.4126%2014.93%2045.8748%2016.6105%2044.794%2017.7944C43.7102%2018.9815%2042.1729%2019.5735%2040.1937%2019.5735C38.1479%2019.5735%2036.5973%2018.99%2035.5546%2017.8187L35.4273%2017.6701C34.4729%2016.5101%2033.9984%2014.871%2033.9984%2012.7583C33.9984%208.28671%2036.0703%206.01811%2040.1687%206.01811ZM69.1127%206.01781C71.1144%206.01781%2072.5953%206.66904%2073.5373%207.97333C74.4288%209.2077%2074.8837%2010.9053%2074.9066%2013.0629L74.9058%2013.5242H66.1149C66.2174%2014.6334%2066.5602%2015.4734%2067.141%2016.0538C67.7488%2016.662%2068.6195%2016.9679%2069.7639%2016.9679C70.5188%2016.9679%2071.2373%2016.8742%2071.921%2016.6862C72.6048%2016.4995%2073.2105%2016.2581%2073.735%2015.9646L73.9814%2015.8267V18.666L73.8821%2018.7093C72.5607%2019.286%2071.0464%2019.5732%2069.3379%2019.5732C67.4088%2019.5732%2065.8853%2018.986%2064.7769%2017.8093C63.6699%2016.6348%2063.1183%2014.9722%2063.1183%2012.833C63.1183%2010.6451%2063.6389%208.96055%2064.6862%207.78517C65.7359%206.60632%2067.2157%206.01781%2069.1127%206.01781ZM60.3976%201.06738V16.3832C60.3976%2017.0998%2060.0996%2017.7092%2059.5124%2018.198C58.9425%2018.6724%2058.2282%2019.0207%2057.3718%2019.2435C56.5257%2019.4635%2055.6531%2019.5731%2054.7534%2019.5731C52.9298%2019.5731%2051.4237%2019.056%2050.2406%2018.0202C49.0485%2016.9752%2048.4588%2015.1678%2048.4588%2012.6072C48.4588%2010.5545%2048.9627%208.9421%2049.9753%207.77411C50.9938%206.60175%2052.4982%206.01774%2054.4782%206.01774C54.9416%206.01774%2055.4735%206.07665%2056.0742%206.19449C56.582%206.296%2057.0453%206.43849%2057.4648%206.62252V1.06738H60.3976ZM27.911%206.04223C29.2828%206.04223%2030.5881%206.29619%2031.8264%206.80393L31.9291%206.84604V9.55797L31.6992%209.46109C30.4503%208.93473%2029.3127%208.67257%2028.2863%208.67257C27.0102%208.67257%2026.0684%208.98809%2025.4521%209.61162C24.8366%2010.2352%2024.5242%2011.2397%2024.5242%2012.6331C24.5242%2014.0959%2024.8298%2015.1535%2025.4314%2015.8092C26.029%2016.4619%2027.002%2016.7923%2028.3613%2016.7923C29.4706%2016.7923%2030.589%2016.5234%2031.7164%2015.9842L31.9534%2015.8708V18.5903L31.8552%2018.634C30.6349%2019.1773%2029.3283%2019.4483%2027.936%2019.4483C26.2154%2019.4483%2024.7637%2018.9753%2023.5868%2018.0285L23.4123%2017.8829L23.2796%2017.7636C22.1516%2016.7067%2021.5914%2015.0592%2021.5914%2012.8332C21.5914%2010.4557%2022.186%208.72379%2023.3849%207.64725C24.5757%206.57726%2026.0871%206.04223%2027.911%206.04223ZM4.11045%206.39262L4.13613%2019.1987H1.15293V6.39262H4.11045ZM13.5766%206.0423C15.365%206.0423%2016.6948%206.41948%2017.5636%207.18368C18.4372%207.95269%2018.8706%209.13902%2018.8706%2010.7331V19.1984H15.9127V11.0838C15.9127%209.42945%2014.9988%208.62337%2013.1013%208.62337C12.3086%208.62337%2011.5458%208.73548%2010.8133%208.95959L10.5401%209.04888V19.1984H7.58147V7.40579L7.67177%207.35974C8.43481%206.97061%209.36013%206.65415%2010.4506%206.40815L10.8116%206.33134C11.7692%206.13867%2012.6905%206.0423%2013.5766%206.0423ZM40.1687%208.5477C39.0014%208.5477%2038.1814%208.89722%2037.6896%209.59114C37.1869%2010.3012%2036.932%2011.3564%2036.932%2012.7583C36.932%2014.1602%2037.1948%2015.223%2037.7142%2015.9499C38.2224%2016.6613%2039.0345%2017.0182%2040.1687%2017.0182C42.3685%2017.0182%2043.4555%2015.6249%2043.4555%2012.7583C43.4555%2011.325%2043.1888%2010.2632%2042.6636%209.57056C42.1472%208.89036%2041.3203%208.5477%2040.1687%208.5477ZM54.8535%208.59807C52.5835%208.59807%2051.4659%209.9271%2051.4659%2012.6579C51.4659%2014.0276%2051.7253%2015.0917%2052.2391%2015.8527C52.7378%2016.5945%2053.6185%2016.9678%2054.9035%2016.9678C55.6556%2016.9678%2056.2834%2016.8792%2056.7876%2016.7028C57.2156%2016.553%2057.4279%2016.378%2057.4604%2016.186L57.4648%2016.1332V9.25404L57.2778%209.15611C56.9611%208.99923%2056.6189%208.87406%2056.2512%208.78123C55.7705%208.65917%2055.3045%208.59807%2054.8535%208.59807ZM69.0377%208.49888C68.192%208.49888%2067.5412%208.71795%2067.0743%209.15366C66.6631%209.5374%2066.3731%2010.1684%2066.2101%2011.0498L66.1771%2011.2425H71.8784L71.8489%2011.0453C71.7111%2010.208%2071.4421%209.58986%2071.0461%209.18626C70.5969%208.72981%2069.9303%208.49888%2069.0377%208.49888ZM4.21085%201.94156V4.64764H1.07715V1.94156H4.21085Z'%20fill='%23006AFF'/%3e%3c/svg%3e";
|
|
5
5
|
function d(e) {
|
|
6
6
|
for (const o of e)
|
|
7
7
|
if (o !== void 0) return o;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function v(e) {
|
|
10
10
|
if (!e) return;
|
|
11
11
|
if (/^\d+$/.test(e)) return Number(e);
|
|
12
12
|
const o = e.match(/^(\d+)px$/);
|
|
13
13
|
if (o) return Number(o[1]);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function p(e) {
|
|
16
16
|
const o = d([
|
|
17
17
|
e.logo?.height,
|
|
18
18
|
e.uiConfig.logoHeight
|
|
@@ -24,14 +24,14 @@ function u(e) {
|
|
|
24
24
|
e.uiConfig.hideFooterBranding
|
|
25
25
|
]) ?? !1,
|
|
26
26
|
logoSrc: d([e.logo?.src, e.uiConfig.logoSrc]) ?? e.defaultLogoSrc,
|
|
27
|
-
logoHeightPx:
|
|
27
|
+
logoHeightPx: v(o) ?? 80
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
const o =
|
|
32
|
-
return
|
|
30
|
+
function y(e) {
|
|
31
|
+
const o = M();
|
|
32
|
+
return p({ ...e, uiConfig: o });
|
|
33
33
|
}
|
|
34
|
-
const
|
|
34
|
+
const x = () => /* @__PURE__ */ C(
|
|
35
35
|
"svg",
|
|
36
36
|
{
|
|
37
37
|
width: "121",
|
|
@@ -39,6 +39,7 @@ const Z = () => /* @__PURE__ */ C(
|
|
|
39
39
|
viewBox: "0 0 121 15",
|
|
40
40
|
fill: "none",
|
|
41
41
|
xmlns: "http://www.w3.org/2000/svg",
|
|
42
|
+
"aria-hidden": "true",
|
|
42
43
|
children: [
|
|
43
44
|
/* @__PURE__ */ C("title", { children: "Verified by Incode" }),
|
|
44
45
|
/* @__PURE__ */ C(
|
|
@@ -131,55 +132,69 @@ const Z = () => /* @__PURE__ */ C(
|
|
|
131
132
|
) }) })
|
|
132
133
|
]
|
|
133
134
|
}
|
|
134
|
-
),
|
|
135
|
+
), I = ({
|
|
135
136
|
title: e,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
"data-
|
|
137
|
+
titleId: o,
|
|
138
|
+
subtitle: n,
|
|
139
|
+
className: a,
|
|
140
|
+
logo: c,
|
|
141
|
+
children: s,
|
|
142
|
+
hideHeader: h,
|
|
143
|
+
hideFooterBranding: H,
|
|
144
|
+
"data-testid": L,
|
|
145
|
+
"data-permission-status": g
|
|
144
146
|
}) => {
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
147
|
+
const t = V(null);
|
|
148
|
+
u(() => {
|
|
149
|
+
t.current?.focus();
|
|
150
|
+
}, []);
|
|
151
|
+
const i = y({
|
|
152
|
+
hideHeader: h,
|
|
153
|
+
hideFooterBranding: H,
|
|
154
|
+
logo: c,
|
|
155
|
+
defaultLogoSrc: Z
|
|
156
|
+
}), f = e || n;
|
|
151
157
|
return /* @__PURE__ */ C(
|
|
152
158
|
"div",
|
|
153
159
|
{
|
|
154
|
-
class: `IncodePageContainer ${
|
|
155
|
-
"data-testid":
|
|
156
|
-
"data-permission-status":
|
|
160
|
+
class: `IncodePageContainer ${a ?? ""}`,
|
|
161
|
+
"data-testid": L,
|
|
162
|
+
"data-permission-status": g,
|
|
157
163
|
children: /* @__PURE__ */ C("div", { class: "IncodePageInner", children: [
|
|
158
164
|
!i.hideHeader && /* @__PURE__ */ C("header", { class: "IncodePageHeader", children: /* @__PURE__ */ C(
|
|
159
165
|
"img",
|
|
160
166
|
{
|
|
161
167
|
src: i.logoSrc,
|
|
162
168
|
height: i.logoHeightPx,
|
|
163
|
-
|
|
164
|
-
|
|
169
|
+
class: "IncodePageLogo",
|
|
170
|
+
"aria-hidden": "true"
|
|
165
171
|
}
|
|
166
172
|
) }),
|
|
167
|
-
|
|
168
|
-
/* @__PURE__ */ C(
|
|
173
|
+
f ? /* @__PURE__ */ C(l, { children: [
|
|
174
|
+
/* @__PURE__ */ C(r, { size: i.hideHeader ? 40 : 24 }),
|
|
169
175
|
/* @__PURE__ */ C("div", { class: "IncodePageTitleContainer", children: [
|
|
170
|
-
e ? /* @__PURE__ */ C(
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
176
|
+
e ? /* @__PURE__ */ C(
|
|
177
|
+
"h2",
|
|
178
|
+
{
|
|
179
|
+
ref: t,
|
|
180
|
+
id: o,
|
|
181
|
+
class: "IncodePageTitle",
|
|
182
|
+
tabIndex: -1,
|
|
183
|
+
children: e
|
|
184
|
+
}
|
|
185
|
+
) : null,
|
|
186
|
+
n ? /* @__PURE__ */ C(l, { children: [
|
|
187
|
+
/* @__PURE__ */ C(r, { size: 12 }),
|
|
188
|
+
/* @__PURE__ */ C("p", { class: "IncodePageSubtitle", children: n })
|
|
174
189
|
] }) : null
|
|
175
190
|
] })
|
|
176
191
|
] }) : null,
|
|
177
|
-
/* @__PURE__ */ C("div", { class: "IncodePageContent", children:
|
|
178
|
-
i.hideFooterBranding ? null : /* @__PURE__ */ C("div", { class: "IncodePageFooter", children: /* @__PURE__ */ C("div", { class: "IncodePageFooterInner", children: /* @__PURE__ */ C(
|
|
192
|
+
/* @__PURE__ */ C("div", { class: "IncodePageContent", children: s }),
|
|
193
|
+
i.hideFooterBranding ? null : /* @__PURE__ */ C("div", { class: "IncodePageFooter", children: /* @__PURE__ */ C("div", { class: "IncodePageFooterInner", children: /* @__PURE__ */ C(x, {}) }) })
|
|
179
194
|
] })
|
|
180
195
|
}
|
|
181
196
|
);
|
|
182
197
|
};
|
|
183
198
|
export {
|
|
184
|
-
|
|
199
|
+
I as P
|
|
185
200
|
};
|
package/dist/phone/phone.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { u as n, S, r as R, I as W, a as F, B as L } from "../incodeModule-
|
|
1
|
+
import { u as n, S, r as R, I as W, a as F, B as L } from "../incodeModule-C-yBwl3V.js";
|
|
2
2
|
import { createPhoneManager as M } from "@incodetech/core/phone";
|
|
3
3
|
import { d as P, A as T, y as w, k } from "../vendor-preact-DP-hbKuj.js";
|
|
4
4
|
import "@incodetech/core";
|
|
5
|
-
import { O as G } from "../otpInput-
|
|
6
|
-
import { P as D } from "../page-
|
|
5
|
+
import { O as G } from "../otpInput-DTGm8I2x.js";
|
|
6
|
+
import { P as D } from "../page-DoaUg40Q.js";
|
|
7
7
|
import { g as $, c as b, p as N, A as V } from "../countries-DDCxQhGs.js";
|
|
8
|
-
import { C as U } from "../chevronDown-
|
|
8
|
+
import { C as U } from "../chevronDown-DYJNV1QK.js";
|
|
9
9
|
const j = ({
|
|
10
10
|
countryCode: i,
|
|
11
11
|
prefilledPhone: d,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as i, u as t } from "./incodeModule-
|
|
2
|
-
import { S as e } from "./spinner-
|
|
1
|
+
import { b as i, u as t } from "./incodeModule-C-yBwl3V.js";
|
|
2
|
+
import { S as e } from "./spinner-EHZM4eN1.js";
|
|
3
3
|
import "./uiConfig-B8PUPgHY.js";
|
|
4
4
|
import "./vendor-preact-DP-hbKuj.js";
|
|
5
5
|
const s = () => {
|
package/dist/selfie/selfie.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as a, u as r, I as o, a as u } from "../incodeModule-C-yBwl3V.js";
|
|
2
2
|
import { createSelfieManager as l } from "@incodetech/core/selfie";
|
|
3
3
|
import "../vendor-preact-DP-hbKuj.js";
|
|
4
4
|
import "@incodetech/core";
|
|
5
|
-
import { P as m } from "../baseTutorial-
|
|
6
|
-
import { P as f } from "../processing-
|
|
7
|
-
import { T as p, C as c } from "../tutorial-
|
|
5
|
+
import { P as m } from "../baseTutorial-DmtD23I-.js";
|
|
6
|
+
import { P as f } from "../processing-BIuFpDjr.js";
|
|
7
|
+
import { T as p, C as c } from "../tutorial-DkmCNA8p.js";
|
|
8
8
|
const d = ({
|
|
9
9
|
config: e,
|
|
10
10
|
onFinish: i,
|
|
11
11
|
onError: s
|
|
12
12
|
}) => {
|
|
13
|
-
const [t, n] =
|
|
13
|
+
const [t, n] = u(() => l({ config: e }));
|
|
14
14
|
return t.status === "idle" || t.status === "loading" ? null : t.status === "tutorial" ? /* @__PURE__ */ r(p, { manager: n }) : t.status === "permissions" ? /* @__PURE__ */ r(
|
|
15
15
|
m,
|
|
16
16
|
{
|
|
@@ -18,8 +18,15 @@ const d = ({
|
|
|
18
18
|
permissionStatus: t.permissionStatus
|
|
19
19
|
}
|
|
20
20
|
) : t.status === "capture" ? /* @__PURE__ */ r(c, { manager: n, state: t }) : t.status === "processing" ? /* @__PURE__ */ r(f, {}) : t.status === "finished" ? (i?.(), null) : t.status === "closed" ? (s?.(void 0), null) : (t.status === "error" && s?.(t.error), null);
|
|
21
|
-
}, g = ({ config: e, onFinish: i, onError: s }) => /* @__PURE__ */ r(o, { children:
|
|
22
|
-
|
|
21
|
+
}, g = ({ config: e, onFinish: i, onError: s }) => /* @__PURE__ */ r(o, { children: /* @__PURE__ */ r("main", { class: "IncodeSelfieMain", children: e ? /* @__PURE__ */ r(
|
|
22
|
+
d,
|
|
23
|
+
{
|
|
24
|
+
config: e,
|
|
25
|
+
onFinish: i,
|
|
26
|
+
onError: s
|
|
27
|
+
}
|
|
28
|
+
) : null }) });
|
|
29
|
+
a(g, "incode-selfie");
|
|
23
30
|
export {
|
|
24
31
|
g as Selfie
|
|
25
32
|
};
|