@incodetech/web 0.0.0-dev-20260331-55774da → 0.0.0-dev-20260331-b713a7b
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/{captureOverlay-CB8lyLgp.js → captureOverlay-rwQkQuBD.js} +154 -163
- package/dist/{ekycModule-Hi5yRFs3.js → ekycModule-CIb3RYhf.js} +1 -1
- package/dist/email/email.es.js +2 -2
- package/dist/extensibility.es.js +3 -3
- package/dist/{flipAnimation-l8x6CJ9Q.js → flipAnimation-CfOzpxYW.js} +2 -2
- package/dist/flow/flow.es.js +1 -1
- package/dist/id/id.es.js +2 -2
- package/dist/phone/phone.es.js +1 -1
- package/dist/{phoneInputComposed-Dsf9ZDTj.js → phoneInputComposed-Bpmd54ur.js} +74 -68
- package/package.json +2 -2
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { u as t, c as
|
|
2
|
-
import { D as
|
|
1
|
+
import { u as t, c as A, b as w, S as W } from "./button-B2Ewo0rX.js";
|
|
2
|
+
import { D as N, y as h, d as B, A as g, q as $, k as R, P as _, z as k, T as E } from "./vendor-preact-BoMmvSgn.js";
|
|
3
3
|
import { E as M } from "./errorIcon-C-Zd24vb.js";
|
|
4
4
|
import { S as G } from "./successIcon-DyHNp_UT.js";
|
|
5
5
|
import "./uiConfig-DmIn-g8M.js";
|
|
6
6
|
import { b as L, a as S, c as V, C as j } from "./captureFooter-B_3eu8kq.js";
|
|
7
7
|
import { L as q } from "./manualCaptureButton-CUq6VXLb.js";
|
|
8
|
-
const K =
|
|
9
|
-
(
|
|
10
|
-
const { class:
|
|
8
|
+
const K = N(
|
|
9
|
+
(e, a) => {
|
|
10
|
+
const { class: r, rows: i = 4, ...n } = e;
|
|
11
11
|
return /* @__PURE__ */ t(
|
|
12
12
|
"textarea",
|
|
13
13
|
{
|
|
14
14
|
...n,
|
|
15
15
|
ref: a,
|
|
16
16
|
rows: i,
|
|
17
|
-
class:
|
|
17
|
+
class: A("IncodeTextArea", r)
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
20
|
}
|
|
21
|
-
), U =
|
|
21
|
+
), U = N(
|
|
22
22
|
({
|
|
23
|
-
id:
|
|
23
|
+
id: e,
|
|
24
24
|
label: a,
|
|
25
|
-
"aria-label":
|
|
25
|
+
"aria-label": r,
|
|
26
26
|
error: i,
|
|
27
27
|
showErrorIcon: n,
|
|
28
28
|
helper: o,
|
|
29
29
|
showHelperIcon: l,
|
|
30
|
-
required:
|
|
31
|
-
rows:
|
|
32
|
-
class:
|
|
30
|
+
required: d,
|
|
31
|
+
rows: u = 4,
|
|
32
|
+
class: p,
|
|
33
33
|
...b
|
|
34
|
-
},
|
|
35
|
-
const
|
|
36
|
-
return /* @__PURE__ */ t("div", { class:
|
|
34
|
+
}, s) => {
|
|
35
|
+
const f = `${e}-helper`, v = `${e}-error`, T = [o ? f : null, i ? v : null].filter(Boolean).join(" ");
|
|
36
|
+
return /* @__PURE__ */ t("div", { class: A("IncodeTextAreaComposed", p), children: [
|
|
37
37
|
a && /* @__PURE__ */ t(
|
|
38
38
|
"label",
|
|
39
39
|
{
|
|
40
40
|
class: "IncodeTextAreaComposedLabel",
|
|
41
|
-
htmlFor:
|
|
42
|
-
"data-testid": `${
|
|
41
|
+
htmlFor: e,
|
|
42
|
+
"data-testid": `${e}-label`,
|
|
43
43
|
children: [
|
|
44
44
|
a,
|
|
45
|
-
|
|
45
|
+
d && /* @__PURE__ */ t("span", { class: "IncodeTextAreaComposedRequired", children: " *" })
|
|
46
46
|
]
|
|
47
47
|
}
|
|
48
48
|
),
|
|
49
49
|
/* @__PURE__ */ t("div", { class: "IncodeTextAreaComposedWrapper", children: /* @__PURE__ */ t(
|
|
50
50
|
K,
|
|
51
51
|
{
|
|
52
|
-
id:
|
|
53
|
-
rows:
|
|
52
|
+
id: e,
|
|
53
|
+
rows: u,
|
|
54
54
|
...b,
|
|
55
|
-
ref:
|
|
56
|
-
required:
|
|
57
|
-
...!a &&
|
|
58
|
-
"aria-describedby":
|
|
59
|
-
"aria-required":
|
|
55
|
+
ref: s,
|
|
56
|
+
required: d,
|
|
57
|
+
...!a && r ? { "aria-label": r } : {},
|
|
58
|
+
"aria-describedby": T || void 0,
|
|
59
|
+
"aria-required": d ? "true" : void 0,
|
|
60
60
|
"aria-invalid": i ? "true" : void 0
|
|
61
61
|
}
|
|
62
62
|
) }),
|
|
@@ -64,10 +64,10 @@ const K = w(
|
|
|
64
64
|
"div",
|
|
65
65
|
{
|
|
66
66
|
class: "IncodeTextAreaComposedErrorWrapper",
|
|
67
|
-
"data-testid": `${
|
|
67
|
+
"data-testid": `${e}-error-wrapper`,
|
|
68
68
|
children: [
|
|
69
69
|
n && /* @__PURE__ */ t("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ t(M, { size: 17 }) }),
|
|
70
|
-
/* @__PURE__ */ t("p", { id:
|
|
70
|
+
/* @__PURE__ */ t("p", { id: v, class: "IncodeTextAreaComposedError", children: i })
|
|
71
71
|
]
|
|
72
72
|
}
|
|
73
73
|
),
|
|
@@ -75,10 +75,10 @@ const K = w(
|
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
77
|
class: "IncodeTextAreaComposedHelperWrapper",
|
|
78
|
-
"data-testid": `${
|
|
78
|
+
"data-testid": `${e}-helper-wrapper`,
|
|
79
79
|
children: [
|
|
80
80
|
l && /* @__PURE__ */ t("div", { class: "IncodeTextAreaComposedIconWrapper", children: /* @__PURE__ */ t(G, { size: 17 }) }),
|
|
81
|
-
/* @__PURE__ */ t("p", { id:
|
|
81
|
+
/* @__PURE__ */ t("p", { id: f, class: "IncodeTextAreaComposedHelper", children: o })
|
|
82
82
|
]
|
|
83
83
|
}
|
|
84
84
|
)
|
|
@@ -86,7 +86,7 @@ const K = w(
|
|
|
86
86
|
}
|
|
87
87
|
);
|
|
88
88
|
U.displayName = "TextAreaComposed";
|
|
89
|
-
const
|
|
89
|
+
const m = /* @__PURE__ */ new Map();
|
|
90
90
|
let P = !1;
|
|
91
91
|
const y = {
|
|
92
92
|
blur: () => import("./blurdevicelottie-_BZRug1c.js"),
|
|
@@ -95,15 +95,15 @@ const y = {
|
|
|
95
95
|
front: () => import("./frontdevicelottie-KhKxT5n9.js"),
|
|
96
96
|
back: () => import("./backdevicelottie-B4NgyWmX.js")
|
|
97
97
|
};
|
|
98
|
-
function O(
|
|
98
|
+
function O(e) {
|
|
99
99
|
P || (P = !0, Promise.all([
|
|
100
100
|
y.blur(),
|
|
101
101
|
y.glare(),
|
|
102
102
|
y.align(),
|
|
103
103
|
y.front(),
|
|
104
104
|
y.back()
|
|
105
|
-
]).then(([a,
|
|
106
|
-
|
|
105
|
+
]).then(([a, r, i, n, o]) => {
|
|
106
|
+
m.set("blur", a.default), m.set("glare", r.default), m.set("align", i.default), m.set("front", n.default), m.set("back", o.default), e?.();
|
|
107
107
|
}).catch(() => {
|
|
108
108
|
}));
|
|
109
109
|
}
|
|
@@ -115,104 +115,95 @@ function Q() {
|
|
|
115
115
|
J();
|
|
116
116
|
}, []);
|
|
117
117
|
}
|
|
118
|
-
function X(
|
|
119
|
-
const { t:
|
|
118
|
+
function X(e, a) {
|
|
119
|
+
const { t: r } = w(), [, i] = B(0);
|
|
120
120
|
if (h(() => {
|
|
121
121
|
O(() => i((n) => n + 1));
|
|
122
|
-
}, []),
|
|
122
|
+
}, []), e === "blur")
|
|
123
123
|
return {
|
|
124
|
-
title:
|
|
125
|
-
description:
|
|
126
|
-
animationData:
|
|
124
|
+
title: r("idv2.capture.notifications.blur.title"),
|
|
125
|
+
description: r("idv2.capture.notifications.blur.description"),
|
|
126
|
+
animationData: m.get("blur") ?? null
|
|
127
127
|
};
|
|
128
|
-
if (
|
|
128
|
+
if (e === "glare")
|
|
129
129
|
return {
|
|
130
|
-
title:
|
|
131
|
-
description:
|
|
132
|
-
animationData:
|
|
130
|
+
title: r("idv2.capture.notifications.glare.title"),
|
|
131
|
+
description: r("idv2.capture.notifications.glare.description"),
|
|
132
|
+
animationData: m.get("glare") ?? null
|
|
133
133
|
};
|
|
134
|
-
if (
|
|
134
|
+
if (e === "farAway")
|
|
135
135
|
return {
|
|
136
|
-
title:
|
|
137
|
-
description:
|
|
138
|
-
animationData:
|
|
136
|
+
title: r("idv2.capture.notifications.notAligned.title"),
|
|
137
|
+
description: r("idv2.capture.notifications.notAligned.description"),
|
|
138
|
+
animationData: m.get("align") ?? null
|
|
139
139
|
};
|
|
140
|
-
if (
|
|
140
|
+
if (e === "wrongSide") {
|
|
141
141
|
const n = a === "back";
|
|
142
142
|
return {
|
|
143
|
-
title:
|
|
144
|
-
description:
|
|
145
|
-
animationData:
|
|
143
|
+
title: r(n ? "idv2.capture.notifications.showBack.title" : "idv2.capture.notifications.showFront.title"),
|
|
144
|
+
description: r(n ? "idv2.capture.notifications.showBack.description" : "idv2.capture.notifications.showFront.description"),
|
|
145
|
+
animationData: m.get(n ? "back" : "front") ?? null
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
return null;
|
|
149
149
|
}
|
|
150
150
|
const Y = ({
|
|
151
|
-
detectionStatus:
|
|
151
|
+
detectionStatus: e,
|
|
152
152
|
mode: a,
|
|
153
|
-
isCapturing:
|
|
153
|
+
isCapturing: r
|
|
154
154
|
}) => {
|
|
155
|
-
const { t: i } =
|
|
155
|
+
const { t: i } = w(), n = X(e, a), o = g(null), l = g({
|
|
156
156
|
message: "",
|
|
157
157
|
at: 0
|
|
158
|
-
}),
|
|
159
|
-
const
|
|
160
|
-
if (
|
|
161
|
-
l.current = { message:
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
158
|
+
}), d = g(e), u = g(!1), p = g(), b = g(), s = e === "detecting" || e === "idNotDetected" || e === "manualCapture", f = e === "manualCapture", v = e === "wrongSide", T = e === "farAway", H = e === "glare", F = e === "blur", I = $((c) => {
|
|
159
|
+
const z = Date.now(), D = l.current;
|
|
160
|
+
if (c === D.message && z - D.at < 200) return;
|
|
161
|
+
l.current = { message: c, at: z };
|
|
162
|
+
const C = o.current;
|
|
163
|
+
C && (clearTimeout(p.current), C.textContent = "", b.current = setTimeout(() => {
|
|
164
|
+
C.textContent = c, p.current = setTimeout(() => {
|
|
165
|
+
C.textContent = "";
|
|
166
166
|
}, 3e3);
|
|
167
167
|
}, 50));
|
|
168
|
-
}, []),
|
|
168
|
+
}, []), x = $(() => i(a === "passport" ? "idv2.capture.fillFramePassport" : a === "back" ? "idv2.capture.v2.fillFrameBack" : "idv2.capture.v2.fillFrameFront"), [a, i]);
|
|
169
169
|
return h(() => {
|
|
170
|
-
if (
|
|
171
|
-
|
|
170
|
+
if (f) {
|
|
171
|
+
u.current = !1;
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
|
-
if (
|
|
175
|
-
const
|
|
176
|
-
|
|
174
|
+
if (u.current || !s) return;
|
|
175
|
+
const c = setTimeout(() => {
|
|
176
|
+
u.current = !0, I(x());
|
|
177
177
|
}, 500);
|
|
178
|
-
return () => clearTimeout(
|
|
179
|
-
}, [
|
|
180
|
-
const
|
|
181
|
-
|
|
182
|
-
}, [
|
|
183
|
-
if (
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
s(`${i("idv2.capture.notifications.glare.title")}.`);
|
|
195
|
-
return;
|
|
196
|
-
}
|
|
197
|
-
if (H) {
|
|
198
|
-
s(`${i("idv2.capture.notifications.blur.title")}.`);
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
c && p.current && s(F());
|
|
202
|
-
}
|
|
178
|
+
return () => clearTimeout(c);
|
|
179
|
+
}, [s, f, I, x]), h(() => {
|
|
180
|
+
const c = d.current;
|
|
181
|
+
d.current = e, c !== "manualCapture" && f && I(i("idv2.capture.manualCapture.modeSwitchAriaAnnouncement"));
|
|
182
|
+
}, [I, e, f, i]), h(() => {
|
|
183
|
+
if (r) return;
|
|
184
|
+
let c;
|
|
185
|
+
if (v) {
|
|
186
|
+
const C = a === "front" || a === "passport" ? "idv2.capture.notifications.showFront" : "idv2.capture.notifications.showBack";
|
|
187
|
+
c = `${i(`${C}.title`)}. ${i(`${C}.description`)}`;
|
|
188
|
+
} else T ? c = `${i("idv2.capture.notifications.notAligned.title")}.` : H ? c = `${i("idv2.capture.notifications.glare.title")}.` : F ? c = `${i("idv2.capture.notifications.blur.title")}.` : s && u.current && (c = x());
|
|
189
|
+
if (!c) return;
|
|
190
|
+
const z = setTimeout(() => {
|
|
191
|
+
I(c);
|
|
192
|
+
}, 500);
|
|
193
|
+
return () => clearTimeout(z);
|
|
203
194
|
}, [
|
|
204
|
-
|
|
195
|
+
I,
|
|
196
|
+
F,
|
|
197
|
+
r,
|
|
198
|
+
T,
|
|
205
199
|
H,
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
k,
|
|
209
|
-
c,
|
|
210
|
-
m,
|
|
200
|
+
s,
|
|
201
|
+
v,
|
|
211
202
|
a,
|
|
212
203
|
i,
|
|
213
|
-
|
|
204
|
+
x
|
|
214
205
|
]), h(() => () => {
|
|
215
|
-
clearTimeout(b.current), clearTimeout(
|
|
206
|
+
clearTimeout(b.current), clearTimeout(p.current);
|
|
216
207
|
}, []), /* @__PURE__ */ t(R, { children: [
|
|
217
208
|
/* @__PURE__ */ t(
|
|
218
209
|
"div",
|
|
@@ -223,8 +214,8 @@ const Y = ({
|
|
|
223
214
|
"aria-atomic": "true"
|
|
224
215
|
}
|
|
225
216
|
),
|
|
226
|
-
n ? /* @__PURE__ */ t("div", { class:
|
|
227
|
-
/* @__PURE__ */ t("div", { class:
|
|
217
|
+
n ? /* @__PURE__ */ t("div", { class: A("IncodeIdCaptureNotification"), "aria-hidden": "true", children: /* @__PURE__ */ t("div", { class: "IncodeIdCaptureNotificationContent", children: [
|
|
218
|
+
/* @__PURE__ */ t("div", { class: A("IncodeIdCaptureNotificationText"), children: [
|
|
228
219
|
/* @__PURE__ */ t("div", { class: "IncodeIdCaptureNotificationTitle", children: n.title }),
|
|
229
220
|
n.description && /* @__PURE__ */ t("div", { class: "IncodeIdCaptureNotificationDescription", children: n.description })
|
|
230
221
|
] }),
|
|
@@ -232,17 +223,17 @@ const Y = ({
|
|
|
232
223
|
n.animationData && /* @__PURE__ */ t("div", { class: "IncodeIdCaptureNotificationAnimation", children: /* @__PURE__ */ t(q, { animationData: n.animationData, loop: !0 }) })
|
|
233
224
|
] }) }) : null
|
|
234
225
|
] });
|
|
235
|
-
}, Z =
|
|
226
|
+
}, Z = k(
|
|
236
227
|
() => import("./front-horizontal-hint-lRLKd7vY.js")
|
|
237
|
-
), tt =
|
|
228
|
+
), tt = k(
|
|
238
229
|
() => import("./front-vertical-hint-qQoJXRE3.js")
|
|
239
|
-
),
|
|
230
|
+
), et = k(
|
|
240
231
|
() => import("./back-horizontal-hint-CSlf9KI1.js")
|
|
241
|
-
),
|
|
232
|
+
), rt = k(
|
|
242
233
|
() => import("./back-vertical-hint-CNieqiCr.js")
|
|
243
|
-
), it =
|
|
234
|
+
), it = k(
|
|
244
235
|
() => import("./passport-horizontal-hint-BCtpMp1Y.js")
|
|
245
|
-
), nt =
|
|
236
|
+
), nt = k(
|
|
246
237
|
() => import("./passport-vertical-hint-GaLnzqHP.js")
|
|
247
238
|
), at = {
|
|
248
239
|
"front-horizontal": 348,
|
|
@@ -253,98 +244,98 @@ const Y = ({
|
|
|
253
244
|
"back-vertical": 446,
|
|
254
245
|
"passport-vertical": 342
|
|
255
246
|
};
|
|
256
|
-
function ct(
|
|
257
|
-
const n = `${
|
|
258
|
-
if (o) return
|
|
247
|
+
function ct(e, a, r, i) {
|
|
248
|
+
const n = `${e}-${a}`, o = at[n];
|
|
249
|
+
if (o) return r / o;
|
|
259
250
|
const l = ot[n];
|
|
260
251
|
return l ? i / l : 1;
|
|
261
252
|
}
|
|
262
|
-
const
|
|
263
|
-
const
|
|
253
|
+
const st = ({ mode: e, orientation: a }) => {
|
|
254
|
+
const r = g(null), [i, n] = B(1);
|
|
264
255
|
h(() => {
|
|
265
|
-
const l =
|
|
256
|
+
const l = r.current;
|
|
266
257
|
if (!l) return;
|
|
267
|
-
const
|
|
258
|
+
const d = () => {
|
|
268
259
|
n(
|
|
269
|
-
ct(
|
|
260
|
+
ct(e, a, l.clientWidth, l.clientHeight)
|
|
270
261
|
);
|
|
271
262
|
};
|
|
272
|
-
|
|
273
|
-
const
|
|
274
|
-
return
|
|
275
|
-
}, [
|
|
276
|
-
const o = () =>
|
|
263
|
+
d();
|
|
264
|
+
const u = new ResizeObserver(d);
|
|
265
|
+
return u.observe(l), () => u.disconnect();
|
|
266
|
+
}, [e, a]);
|
|
267
|
+
const o = () => e === "front" ? a === "horizontal" ? /* @__PURE__ */ t(Z, {}) : /* @__PURE__ */ t(tt, {}) : e === "back" ? a === "horizontal" ? /* @__PURE__ */ t(et, {}) : /* @__PURE__ */ t(rt, {}) : e === "passport" ? a === "horizontal" ? /* @__PURE__ */ t(it, {}) : /* @__PURE__ */ t(nt, {}) : null;
|
|
277
268
|
return /* @__PURE__ */ t(
|
|
278
269
|
"div",
|
|
279
270
|
{
|
|
280
|
-
ref:
|
|
271
|
+
ref: r,
|
|
281
272
|
class: "IncodeIdHint",
|
|
282
273
|
"aria-hidden": "true",
|
|
283
274
|
role: "presentation",
|
|
284
275
|
children: /* @__PURE__ */ t("div", { class: "IncodeIdHintAnimated", children: /* @__PURE__ */ t(_, { fallback: null, children: /* @__PURE__ */ t("div", { class: "IncodeIdHintSvg", style: { transform: `scale(${i})` }, children: o() }) }) })
|
|
285
276
|
}
|
|
286
277
|
);
|
|
287
|
-
}, It =
|
|
278
|
+
}, It = N(
|
|
288
279
|
({
|
|
289
|
-
mode:
|
|
280
|
+
mode: e,
|
|
290
281
|
orientation: a,
|
|
291
|
-
detectionStatus:
|
|
282
|
+
detectionStatus: r,
|
|
292
283
|
counterValue: i,
|
|
293
284
|
isCapturing: n,
|
|
294
285
|
showManualCapture: o,
|
|
295
286
|
onCapture: l,
|
|
296
|
-
onOpenHelp:
|
|
297
|
-
helpButtonRef:
|
|
298
|
-
captureButtonRef:
|
|
287
|
+
onOpenHelp: d,
|
|
288
|
+
helpButtonRef: u,
|
|
289
|
+
captureButtonRef: p
|
|
299
290
|
}, b) => {
|
|
300
|
-
const { t:
|
|
291
|
+
const { t: s } = w();
|
|
301
292
|
Q(), h(() => {
|
|
302
|
-
o &&
|
|
303
|
-
}, [o,
|
|
304
|
-
const
|
|
305
|
-
if (n ||
|
|
293
|
+
o && p && p.current?.focus();
|
|
294
|
+
}, [o, p]);
|
|
295
|
+
const f = () => n || r === "capturing" ? "capturing" : r === "blur" || r === "glare" || r === "wrongSide" || r === "farAway" ? "error" : "idle", v = E(() => {
|
|
296
|
+
if (n || r === "capturing")
|
|
306
297
|
return {
|
|
307
|
-
title:
|
|
308
|
-
subtitle:
|
|
298
|
+
title: s("idv2.capture.takingPhoto"),
|
|
299
|
+
subtitle: s("idv2.capture.dontMove")
|
|
309
300
|
};
|
|
310
|
-
if (
|
|
311
|
-
const
|
|
312
|
-
return
|
|
313
|
-
title:
|
|
314
|
-
subtitle:
|
|
315
|
-
} :
|
|
316
|
-
title:
|
|
317
|
-
subtitle:
|
|
301
|
+
if (r === "detecting" || r === "idNotDetected" || r === "manualCapture") {
|
|
302
|
+
const c = r === "manualCapture";
|
|
303
|
+
return e === "passport" ? {
|
|
304
|
+
title: s("idv2.capture.fillFramePassport"),
|
|
305
|
+
subtitle: c ? "" : s("idv2.capture.v2.autoCapture")
|
|
306
|
+
} : e === "back" ? {
|
|
307
|
+
title: s("idv2.capture.v2.fillFrameBack"),
|
|
308
|
+
subtitle: c ? "" : s("idv2.capture.v2.autoCapture")
|
|
318
309
|
} : {
|
|
319
|
-
title:
|
|
320
|
-
subtitle:
|
|
310
|
+
title: s("idv2.capture.v2.fillFrameFront"),
|
|
311
|
+
subtitle: c ? "" : s("idv2.capture.v2.autoCapture")
|
|
321
312
|
};
|
|
322
313
|
}
|
|
323
314
|
return null;
|
|
324
|
-
}, [n,
|
|
315
|
+
}, [n, r, e, s]), T = f(), H = e === "passport", F = a !== "vertical" || H, I = F ? "horizontal" : "vertical";
|
|
325
316
|
return /* @__PURE__ */ t(
|
|
326
317
|
j,
|
|
327
318
|
{
|
|
328
|
-
className:
|
|
319
|
+
className: A(
|
|
329
320
|
"IncodeCaptureOverlayId",
|
|
330
|
-
!
|
|
321
|
+
!F && "IncodeCaptureOverlayVertical"
|
|
331
322
|
),
|
|
332
323
|
children: [
|
|
333
324
|
/* @__PURE__ */ t("div", { class: "IncodeCaptureTopSection", children: [
|
|
334
325
|
/* @__PURE__ */ t(
|
|
335
326
|
Y,
|
|
336
327
|
{
|
|
337
|
-
detectionStatus:
|
|
338
|
-
mode:
|
|
328
|
+
detectionStatus: r,
|
|
329
|
+
mode: e,
|
|
339
330
|
isCapturing: n
|
|
340
331
|
}
|
|
341
332
|
),
|
|
342
333
|
/* @__PURE__ */ t(
|
|
343
334
|
L,
|
|
344
335
|
{
|
|
345
|
-
title:
|
|
346
|
-
subtitle:
|
|
347
|
-
visible:
|
|
336
|
+
title: v?.title ?? "",
|
|
337
|
+
subtitle: v?.subtitle,
|
|
338
|
+
visible: v !== null,
|
|
348
339
|
titleId: "id-capture-heading"
|
|
349
340
|
}
|
|
350
341
|
)
|
|
@@ -354,12 +345,12 @@ const lt = ({ mode: r, orientation: a }) => {
|
|
|
354
345
|
{
|
|
355
346
|
ref: b,
|
|
356
347
|
variant: "locked",
|
|
357
|
-
orientation:
|
|
358
|
-
frameState:
|
|
359
|
-
className:
|
|
348
|
+
orientation: I,
|
|
349
|
+
frameState: T,
|
|
350
|
+
className: A(H && "IncodeCaptureFramePassport"),
|
|
360
351
|
children: [
|
|
361
352
|
n && i > 0 && /* @__PURE__ */ t("div", { class: "IncodeCaptureCounter", children: i }),
|
|
362
|
-
|
|
353
|
+
r === "idNotDetected" && /* @__PURE__ */ t(st, { mode: e, orientation: a ?? "horizontal" })
|
|
363
354
|
]
|
|
364
355
|
}
|
|
365
356
|
),
|
|
@@ -367,11 +358,11 @@ const lt = ({ mode: r, orientation: a }) => {
|
|
|
367
358
|
/* @__PURE__ */ t(
|
|
368
359
|
V,
|
|
369
360
|
{
|
|
370
|
-
onOpenHelp:
|
|
361
|
+
onOpenHelp: d,
|
|
371
362
|
onCapture: l,
|
|
372
363
|
isManualCapture: o,
|
|
373
|
-
helpButtonRef:
|
|
374
|
-
captureButtonRef:
|
|
364
|
+
helpButtonRef: u,
|
|
365
|
+
captureButtonRef: p,
|
|
375
366
|
captureAriaDescribedBy: o ? "manual-capture-tooltip" : void 0,
|
|
376
367
|
children: o ? /* @__PURE__ */ t("div", { class: "IncodeIdManualCaptureTooltipContainer", children: /* @__PURE__ */ t(
|
|
377
368
|
"div",
|
|
@@ -380,8 +371,8 @@ const lt = ({ mode: r, orientation: a }) => {
|
|
|
380
371
|
role: "tooltip",
|
|
381
372
|
class: "IncodeIdManualCaptureTooltip",
|
|
382
373
|
children: /* @__PURE__ */ t("ol", { class: "IncodeIdManualCaptureTooltipList", children: [
|
|
383
|
-
/* @__PURE__ */ t("li", { children:
|
|
384
|
-
/* @__PURE__ */ t("li", { children:
|
|
374
|
+
/* @__PURE__ */ t("li", { children: s("idv2.commonIssues.firstStep") }),
|
|
375
|
+
/* @__PURE__ */ t("li", { children: s("idv2.commonIssues.secondStep") })
|
|
385
376
|
] })
|
|
386
377
|
}
|
|
387
378
|
) }) : null
|
|
@@ -10,7 +10,7 @@ import { D as ee } from "./dropdownComposed-DFrqye1c.js";
|
|
|
10
10
|
import { P as T } from "./page-DiscPBzz.js";
|
|
11
11
|
import { S as re } from "./spinner-DfUoOZN4.js";
|
|
12
12
|
import { r as oe } from "./incodeModule-C4XIllao.js";
|
|
13
|
-
import { P as te } from "./phoneInputComposed-
|
|
13
|
+
import { P as te } from "./phoneInputComposed-Bpmd54ur.js";
|
|
14
14
|
const ae = ({ config: p, onFinish: s }) => {
|
|
15
15
|
const { t: l } = $(), [a, d] = G(() => z({ config: p }));
|
|
16
16
|
return q(() => {
|
package/dist/email/email.es.js
CHANGED
|
@@ -9,9 +9,9 @@ import "../uiConfig-DmIn-g8M.js";
|
|
|
9
9
|
import "../typography-zMrvftfB.js";
|
|
10
10
|
import { a as L } from "../inputComposed-CJQTXKNA.js";
|
|
11
11
|
import "../checkbox-CXnQVsbJ.js";
|
|
12
|
-
import "../phoneInputComposed-
|
|
12
|
+
import "../phoneInputComposed-Bpmd54ur.js";
|
|
13
13
|
import "../dateInputComposed-DmlHvCmR.js";
|
|
14
|
-
import "../captureOverlay-
|
|
14
|
+
import "../captureOverlay-rwQkQuBD.js";
|
|
15
15
|
import "../manualCaptureButton-CUq6VXLb.js";
|
|
16
16
|
import "../captureFooter-B_3eu8kq.js";
|
|
17
17
|
import "../countries-DfLkrF0x.js";
|
package/dist/extensibility.es.js
CHANGED
|
@@ -11,11 +11,11 @@ import { C as q, P as z } from "./cameraView-CT9-WWcG.js";
|
|
|
11
11
|
import { I as J, a as K } from "./inputComposed-CJQTXKNA.js";
|
|
12
12
|
import { O as Q } from "./otpInput-CGlYkmvB.js";
|
|
13
13
|
import { C as Y, a as Z } from "./checkbox-CXnQVsbJ.js";
|
|
14
|
-
import { P as $ } from "./phoneInputComposed-
|
|
14
|
+
import { P as $ } from "./phoneInputComposed-Bpmd54ur.js";
|
|
15
15
|
import { D as ra, S as ea } from "./dropdownComposed-DFrqye1c.js";
|
|
16
16
|
import { C as ta, D as sa } from "./dateInputComposed-DmlHvCmR.js";
|
|
17
|
-
import { T as pa, a as ca } from "./captureOverlay-
|
|
18
|
-
import { d as ua, C as ma, b as la, I as Ca, c as da, F as fa, T as Ia, S as xa, V as ha, a as ga } from "./flipAnimation-
|
|
17
|
+
import { T as pa, a as ca } from "./captureOverlay-rwQkQuBD.js";
|
|
18
|
+
import { d as ua, C as ma, b as la, I as Ca, c as da, F as fa, T as Ia, S as xa, V as ha, a as ga } from "./flipAnimation-CfOzpxYW.js";
|
|
19
19
|
import { L as Ta, M as va } from "./manualCaptureButton-CUq6VXLb.js";
|
|
20
20
|
import { a as Ba, C as Fa, b as Pa, d as La, c as Oa, H as ba, L as Ha } from "./captureFooter-B_3eu8kq.js";
|
|
21
21
|
import { A as i, y as u, q as m } from "./vendor-preact-BoMmvSgn.js";
|
|
@@ -7,12 +7,12 @@ import { P as A, C as z } from "./cameraView-CT9-WWcG.js";
|
|
|
7
7
|
import { S as H } from "./spinner-DfUoOZN4.js";
|
|
8
8
|
import { M as w, L as D } from "./manualCaptureButton-CUq6VXLb.js";
|
|
9
9
|
import { L as G } from "./captureFooter-B_3eu8kq.js";
|
|
10
|
-
import { C as N } from "./captureOverlay-
|
|
10
|
+
import { C as N } from "./captureOverlay-rwQkQuBD.js";
|
|
11
11
|
import { B as W } from "./permissions-DbPRF91z.js";
|
|
12
12
|
import "@incodetech/core";
|
|
13
13
|
import "./inputComposed-CJQTXKNA.js";
|
|
14
14
|
import "./checkbox-CXnQVsbJ.js";
|
|
15
|
-
import "./phoneInputComposed-
|
|
15
|
+
import "./phoneInputComposed-Bpmd54ur.js";
|
|
16
16
|
import "./dateInputComposed-DmlHvCmR.js";
|
|
17
17
|
import "./countries-DfLkrF0x.js";
|
|
18
18
|
const $ = ({
|
package/dist/flow/flow.es.js
CHANGED
|
@@ -2003,7 +2003,7 @@ const Pe = () => import("../id/id.es.js").then((e) => e.Id), ke = {
|
|
|
2003
2003
|
(e) => e.GovernmentValidation
|
|
2004
2004
|
),
|
|
2005
2005
|
GEOLOCATION: () => import("../geolocation/geolocation.es.js").then((e) => e.Geolocation),
|
|
2006
|
-
EXTERNAL_VERIFICATION: () => import("../ekycModule-
|
|
2006
|
+
EXTERNAL_VERIFICATION: () => import("../ekycModule-CIb3RYhf.js").then((e) => e.EkycModule),
|
|
2007
2007
|
EKYB: () => import("../ekybModule-Ct3A65tt.js").then((e) => e.EkybModule),
|
|
2008
2008
|
DOCUMENT_CAPTURE: () => import("../documentCapture-DYsIVkcU.js").then(
|
|
2009
2009
|
(e) => e.DocumentCapture
|
package/dist/id/id.es.js
CHANGED
|
@@ -5,8 +5,8 @@ import "@incodetech/core";
|
|
|
5
5
|
import { P as f } from "../permissions-DbPRF91z.js";
|
|
6
6
|
import { r as l } from "../incodeModule-C4XIllao.js";
|
|
7
7
|
import { P as h } from "../processing-De8XWnFp.js";
|
|
8
|
-
import { b as C, T as I, F as a, C as g, c as y, I as F } from "../flipAnimation-
|
|
9
|
-
import "../captureOverlay-
|
|
8
|
+
import { b as C, T as I, F as a, C as g, c as y, I as F } from "../flipAnimation-CfOzpxYW.js";
|
|
9
|
+
import "../captureOverlay-rwQkQuBD.js";
|
|
10
10
|
import "../uiConfig-DmIn-g8M.js";
|
|
11
11
|
import "../typography-zMrvftfB.js";
|
|
12
12
|
const M = c(
|
package/dist/phone/phone.es.js
CHANGED
|
@@ -6,7 +6,7 @@ import "@incodetech/core";
|
|
|
6
6
|
import { C as y } from "../checkbox-CXnQVsbJ.js";
|
|
7
7
|
import { O as k } from "../otpInput-CGlYkmvB.js";
|
|
8
8
|
import { P as g } from "../page-DiscPBzz.js";
|
|
9
|
-
import { P as R } from "../phoneInputComposed-
|
|
9
|
+
import { P as R } from "../phoneInputComposed-Bpmd54ur.js";
|
|
10
10
|
import { r as V } from "../incodeModule-C4XIllao.js";
|
|
11
11
|
const B = ({
|
|
12
12
|
config: i,
|
|
@@ -1,62 +1,68 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { D as J, d as
|
|
1
|
+
import { u as a } from "./button-B2Ewo0rX.js";
|
|
2
|
+
import { D as J, d as L, A as x, T as M, y as Q, q as A } from "./vendor-preact-BoMmvSgn.js";
|
|
3
3
|
import { w as X, g as I, c as j, b as k } from "./countries-DfLkrF0x.js";
|
|
4
4
|
import { D as z } from "./dropdownComposed-DFrqye1c.js";
|
|
5
|
-
import { E as
|
|
6
|
-
import { S as
|
|
5
|
+
import { E as _ } from "./errorIcon-C-Zd24vb.js";
|
|
6
|
+
import { S as q } from "./successIcon-DyHNp_UT.js";
|
|
7
7
|
import { a as e2 } from "./inputComposed-CJQTXKNA.js";
|
|
8
|
-
import { P as n2, p as
|
|
9
|
-
function o2(e, o,
|
|
8
|
+
import { P as n2, p as D, A as g } from "./AsYouType-D1H_js4X.js";
|
|
9
|
+
function o2(e, o, r) {
|
|
10
10
|
if (o[e])
|
|
11
|
-
return new n2(e, o[e],
|
|
11
|
+
return new n2(e, o[e], r);
|
|
12
12
|
}
|
|
13
13
|
function t2() {
|
|
14
14
|
return X(o2, arguments);
|
|
15
15
|
}
|
|
16
16
|
const r2 = { AC: "40123", AD: "312345", AE: "501234567", AF: "701234567", AG: "2684641234", AI: "2642351234", AL: "672123456", AM: "77123456", AO: "923123456", AR: "91123456789", AS: "6847331234", AT: "664123456", AU: "412345678", AW: "5601234", AX: "412345678", AZ: "401234567", BA: "61123456", BB: "2462501234", BD: "1812345678", BE: "470123456", BF: "70123456", BG: "43012345", BH: "36001234", BI: "79561234", BJ: "0195123456", BL: "690001234", BM: "4413701234", BN: "7123456", BO: "71234567", BQ: "3181234", BR: "11961234567", BS: "2423591234", BT: "17123456", BW: "71123456", BY: "294911911", BZ: "6221234", CA: "5062345678", CC: "412345678", CD: "991234567", CF: "70012345", CG: "061234567", CH: "781234567", CI: "0123456789", CK: "71234", CL: "221234567", CM: "671234567", CN: "13123456789", CO: "3211234567", CR: "83123456", CU: "51234567", CV: "9911234", CW: "95181234", CX: "412345678", CY: "96123456", CZ: "601123456", DE: "15123456789", DJ: "77831001", DK: "34412345", DM: "7672251234", DO: "8092345678", DZ: "551234567", EC: "991234567", EE: "51234567", EG: "1001234567", EH: "650123456", ER: "7123456", ES: "612345678", ET: "911234567", FI: "412345678", FJ: "7012345", FK: "51234", FM: "3501234", FO: "211234", FR: "612345678", GA: "06031234", GB: "7400123456", GD: "4734031234", GE: "555123456", GF: "694201234", GG: "7781123456", GH: "231234567", GI: "57123456", GL: "221234", GM: "3012345", GN: "601123456", GP: "690001234", GQ: "222123456", GR: "6912345678", GT: "51234567", GU: "6713001234", GW: "955012345", GY: "6091234", HK: "51234567", HN: "91234567", HR: "921234567", HT: "34101234", HU: "201234567", ID: "812345678", IE: "850123456", IL: "502345678", IM: "7924123456", IN: "8123456789", IO: "3801234", IQ: "7912345678", IR: "9123456789", IS: "6111234", IT: "3123456789", JE: "7797712345", JM: "8762101234", JO: "790123456", JP: "9012345678", KE: "712123456", KG: "700123456", KH: "91234567", KI: "72001234", KM: "3212345", KN: "8697652917", KP: "1921234567", KR: "1020000000", KW: "50012345", KY: "3453231234", KZ: "7710009998", LA: "2023123456", LB: "71123456", LC: "7582845678", LI: "660234567", LK: "712345678", LR: "770123456", LS: "50123456", LT: "61234567", LU: "628123456", LV: "21234567", LY: "912345678", MA: "650123456", MC: "612345678", MD: "62112345", ME: "60123456", MF: "690001234", MG: "321234567", MH: "2351234", MK: "72345678", ML: "65012345", MM: "92123456", MN: "88123456", MO: "66123456", MP: "6702345678", MQ: "696201234", MR: "22123456", MS: "6644923456", MT: "96961234", MU: "52512345", MV: "7712345", MW: "991234567", MX: "2221234567", MY: "123456789", MZ: "821234567", NA: "811234567", NC: "751234", NE: "93123456", NF: "381234", NG: "8021234567", NI: "81234567", NL: "612345678", NO: "40612345", NP: "9841234567", NR: "5551234", NU: "8884012", NZ: "211234567", OM: "92123456", PA: "61234567", PE: "912345678", PF: "87123456", PG: "70123456", PH: "9051234567", PK: "3012345678", PL: "512345678", PM: "551234", PR: "7872345678", PS: "599123456", PT: "912345678", PW: "6201234", PY: "961456789", QA: "33123456", RE: "692123456", RO: "712034567", RS: "601234567", RU: "9123456789", RW: "720123456", SA: "512345678", SB: "7421234", SC: "2510123", SD: "911231234", SE: "701234567", SG: "81234567", SH: "51234", SI: "31234567", SJ: "41234567", SK: "912123456", SL: "25123456", SM: "66661212", SN: "701234567", SO: "71123456", SR: "7412345", SS: "977123456", ST: "9812345", SV: "70123456", SX: "7215205678", SY: "944567890", SZ: "76123456", TA: "8999", TC: "6492311234", TD: "63012345", TG: "90112345", TH: "812345678", TJ: "917123456", TK: "7290", TL: "77212345", TM: "66123456", TN: "20123456", TO: "7715123", TR: "5012345678", TT: "8682911234", TV: "901234", TW: "912345678", TZ: "621234567", UA: "501234567", UG: "712345678", US: "2015550123", UY: "94231234", UZ: "912345678", VA: "3123456789", VC: "7844301234", VE: "4121234567", VG: "2843001234", VI: "3406421234", VN: "912345678", VU: "5912345", WF: "821234", WS: "7212345", XK: "43201234", YE: "712345678", YT: "639012345", ZA: "711234567", ZM: "955123456", ZW: "712345678" };
|
|
17
|
-
function
|
|
18
|
-
return new
|
|
17
|
+
function b(e, o, r) {
|
|
18
|
+
return new g(r).input(`${o}${e}`).replace(o, "").trimStart();
|
|
19
19
|
}
|
|
20
20
|
function s2(e, o) {
|
|
21
|
-
const
|
|
22
|
-
if (
|
|
23
|
-
if (!
|
|
24
|
-
const
|
|
25
|
-
if (
|
|
21
|
+
const r = e.replace(/\D/g, "");
|
|
22
|
+
if (r === o) return e;
|
|
23
|
+
if (!r.endsWith(o)) return null;
|
|
24
|
+
const l = r.length - o.length;
|
|
25
|
+
if (l <= 0) return e;
|
|
26
26
|
let c = 0;
|
|
27
|
-
for (let
|
|
28
|
-
if (/\d/.test(e[
|
|
29
|
-
return e.slice(
|
|
27
|
+
for (let s = 0; s < e.length; s++)
|
|
28
|
+
if (/\d/.test(e[s]) && (c++, c === l))
|
|
29
|
+
return e.slice(s + 1).trimStart();
|
|
30
30
|
return e;
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const
|
|
38
|
-
|
|
32
|
+
const a2 = {
|
|
33
|
+
US: "(123) 456-7890",
|
|
34
|
+
CA: "(123) 456-7890"
|
|
35
|
+
};
|
|
36
|
+
function l2(e) {
|
|
37
|
+
const o = a2[e];
|
|
38
|
+
if (o) return o;
|
|
39
|
+
const r = t2(e, r2);
|
|
40
|
+
if (!r) return "";
|
|
41
|
+
const l = r.formatNational(), c = s2(l, r.nationalNumber);
|
|
42
|
+
if (c) return c;
|
|
43
|
+
const s = `+${k(e)}`;
|
|
44
|
+
return b(r.nationalNumber, s, e);
|
|
39
45
|
}
|
|
40
|
-
const
|
|
46
|
+
const c2 = J(
|
|
41
47
|
({
|
|
42
48
|
id: e,
|
|
43
49
|
label: o,
|
|
44
|
-
countryCode:
|
|
45
|
-
value:
|
|
50
|
+
countryCode: r = "US",
|
|
51
|
+
value: l,
|
|
46
52
|
placeholder: c,
|
|
47
|
-
error:
|
|
53
|
+
error: s,
|
|
48
54
|
helper: h,
|
|
49
|
-
showErrorIcon:
|
|
50
|
-
showHelperIcon:
|
|
51
|
-
disabled:
|
|
52
|
-
disableCountrySelector:
|
|
55
|
+
showErrorIcon: R,
|
|
56
|
+
showHelperIcon: y,
|
|
57
|
+
disabled: E = !1,
|
|
58
|
+
disableCountrySelector: K = !1,
|
|
53
59
|
required: P,
|
|
54
60
|
onChange: S,
|
|
55
61
|
"aria-labelledby": $,
|
|
56
|
-
"data-testid":
|
|
57
|
-
...
|
|
58
|
-
},
|
|
59
|
-
const [d,
|
|
62
|
+
"data-testid": H,
|
|
63
|
+
...W
|
|
64
|
+
}, U) => {
|
|
65
|
+
const [d, N] = L(r), [u, f] = L(""), T = x(!1), F = M(
|
|
60
66
|
() => j.map((t) => ({
|
|
61
67
|
value: t.code,
|
|
62
68
|
label: `${t.emoji} ${t.callingCode} ${t.name}`
|
|
@@ -66,24 +72,24 @@ const l2 = J(
|
|
|
66
72
|
() => I(d) ?? I("US"),
|
|
67
73
|
[d]
|
|
68
74
|
), O = M(
|
|
69
|
-
() => c ??
|
|
75
|
+
() => c ?? l2(d),
|
|
70
76
|
[c, d]
|
|
71
77
|
);
|
|
72
78
|
Q(() => {
|
|
73
|
-
if (
|
|
74
|
-
|
|
75
|
-
const t =
|
|
79
|
+
if (T.current || !l || !i) return;
|
|
80
|
+
T.current = !0;
|
|
81
|
+
const t = l.startsWith("+") ? l : `+${l}`, n = D(t);
|
|
76
82
|
if (n?.isValid() && n.country) {
|
|
77
|
-
n.country !== d &&
|
|
78
|
-
const p = new
|
|
83
|
+
n.country !== d && N(n.country);
|
|
84
|
+
const p = new g(n.country);
|
|
79
85
|
f(p.input(n.nationalNumber));
|
|
80
86
|
}
|
|
81
|
-
}, [
|
|
87
|
+
}, [l, i, d]);
|
|
82
88
|
const C = A(
|
|
83
89
|
(t, n) => {
|
|
84
90
|
const p = `${n.callingCode}${t.replace(/\D/g, "")}`;
|
|
85
91
|
try {
|
|
86
|
-
const Y =
|
|
92
|
+
const Y = D(p, n.code);
|
|
87
93
|
S?.(p, Y?.isValid() ?? !1);
|
|
88
94
|
} catch {
|
|
89
95
|
S?.(p, !1);
|
|
@@ -92,7 +98,7 @@ const l2 = J(
|
|
|
92
98
|
[S]
|
|
93
99
|
), V = A(
|
|
94
100
|
(t) => {
|
|
95
|
-
|
|
101
|
+
N(t);
|
|
96
102
|
const n = I(t);
|
|
97
103
|
n && u && C(u, n);
|
|
98
104
|
},
|
|
@@ -104,7 +110,7 @@ const l2 = J(
|
|
|
104
110
|
f(n);
|
|
105
111
|
return;
|
|
106
112
|
}
|
|
107
|
-
const p =
|
|
113
|
+
const p = b(
|
|
108
114
|
n,
|
|
109
115
|
i.callingCode,
|
|
110
116
|
i.code
|
|
@@ -112,9 +118,9 @@ const l2 = J(
|
|
|
112
118
|
f(p), C(n, i);
|
|
113
119
|
},
|
|
114
120
|
[i, C]
|
|
115
|
-
), v = `${e}-country`, m = `${e}-phone`,
|
|
116
|
-
return /* @__PURE__ */
|
|
117
|
-
o && /* @__PURE__ */
|
|
121
|
+
), v = `${e}-country`, m = `${e}-phone`, G = `${m}-helper`, B = `${m}-error`, w = [h ? G : null, s ? B : null].filter(Boolean).join(" ");
|
|
122
|
+
return /* @__PURE__ */ a("div", { class: "IncodePhoneInputComposed", children: [
|
|
123
|
+
o && /* @__PURE__ */ a(
|
|
118
124
|
"label",
|
|
119
125
|
{
|
|
120
126
|
class: "IncodePhoneInputComposedLabel",
|
|
@@ -122,18 +128,18 @@ const l2 = J(
|
|
|
122
128
|
"data-testid": `${e}-label`,
|
|
123
129
|
children: [
|
|
124
130
|
o,
|
|
125
|
-
P && /* @__PURE__ */
|
|
131
|
+
P && /* @__PURE__ */ a("span", { class: "IncodePhoneInputComposedRequired", children: " *" })
|
|
126
132
|
]
|
|
127
133
|
}
|
|
128
134
|
),
|
|
129
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ a(
|
|
130
136
|
z,
|
|
131
137
|
{
|
|
132
138
|
id: v,
|
|
133
|
-
options:
|
|
139
|
+
options: F,
|
|
134
140
|
value: d,
|
|
135
141
|
onChange: V,
|
|
136
|
-
disabled:
|
|
142
|
+
disabled: E || K,
|
|
137
143
|
required: P,
|
|
138
144
|
searchable: !0,
|
|
139
145
|
searchPlaceholder: "Search countries...",
|
|
@@ -144,56 +150,56 @@ const l2 = J(
|
|
|
144
150
|
return n ? `${n.emoji} ${n.callingCode}` : t.label;
|
|
145
151
|
},
|
|
146
152
|
class: "IncodePhoneInputComposedDropdown",
|
|
147
|
-
siblingElement: /* @__PURE__ */
|
|
153
|
+
siblingElement: /* @__PURE__ */ a(
|
|
148
154
|
e2,
|
|
149
155
|
{
|
|
150
156
|
id: m,
|
|
151
|
-
ref:
|
|
157
|
+
ref: U,
|
|
152
158
|
type: "tel",
|
|
153
159
|
value: u,
|
|
154
160
|
onInput: Z,
|
|
155
161
|
placeholder: O,
|
|
156
|
-
error:
|
|
157
|
-
disabled:
|
|
162
|
+
error: s,
|
|
163
|
+
disabled: E,
|
|
158
164
|
required: P,
|
|
159
165
|
suppressMessages: !0,
|
|
160
166
|
"aria-label": o ? void 0 : "Phone number",
|
|
161
167
|
"aria-labelledby": $,
|
|
162
168
|
"aria-describedby": w || void 0,
|
|
163
|
-
"aria-invalid":
|
|
164
|
-
"data-testid":
|
|
165
|
-
...
|
|
169
|
+
"aria-invalid": s ? "true" : void 0,
|
|
170
|
+
"data-testid": H,
|
|
171
|
+
...W
|
|
166
172
|
}
|
|
167
173
|
)
|
|
168
174
|
}
|
|
169
175
|
),
|
|
170
|
-
|
|
176
|
+
s && /* @__PURE__ */ a(
|
|
171
177
|
"div",
|
|
172
178
|
{
|
|
173
179
|
class: "IncodePhoneInputComposedErrorWrapper",
|
|
174
180
|
role: "alert",
|
|
175
181
|
"data-testid": `${e}-error-wrapper`,
|
|
176
182
|
children: [
|
|
177
|
-
|
|
178
|
-
/* @__PURE__ */
|
|
183
|
+
R && /* @__PURE__ */ a("div", { class: "IncodePhoneInputComposedIconWrapper", children: /* @__PURE__ */ a(_, { size: 16 }) }),
|
|
184
|
+
/* @__PURE__ */ a("p", { id: B, class: "IncodePhoneInputComposedError", children: s })
|
|
179
185
|
]
|
|
180
186
|
}
|
|
181
187
|
),
|
|
182
|
-
h && !
|
|
188
|
+
h && !s && /* @__PURE__ */ a(
|
|
183
189
|
"div",
|
|
184
190
|
{
|
|
185
191
|
class: "IncodePhoneInputComposedHelperWrapper",
|
|
186
192
|
"data-testid": `${e}-helper-wrapper`,
|
|
187
193
|
children: [
|
|
188
|
-
|
|
189
|
-
/* @__PURE__ */
|
|
194
|
+
y && /* @__PURE__ */ a("div", { class: "IncodePhoneInputComposedIconWrapper", children: /* @__PURE__ */ a(q, { size: 16 }) }),
|
|
195
|
+
/* @__PURE__ */ a("p", { id: G, class: "IncodePhoneInputComposedHelper", children: h })
|
|
190
196
|
]
|
|
191
197
|
}
|
|
192
198
|
)
|
|
193
199
|
] });
|
|
194
200
|
}
|
|
195
201
|
);
|
|
196
|
-
|
|
202
|
+
c2.displayName = "PhoneInputComposed";
|
|
197
203
|
export {
|
|
198
|
-
|
|
204
|
+
c2 as P
|
|
199
205
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260331-
|
|
3
|
+
"version": "0.0.0-dev-20260331-b713a7b",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
"preact-markup": "^2.1.1",
|
|
137
137
|
"qrcode": "^1.5.4",
|
|
138
138
|
"tailwindcss": "^4.1.17",
|
|
139
|
-
"@incodetech/core": "0.0.0-dev-20260331-
|
|
139
|
+
"@incodetech/core": "0.0.0-dev-20260331-b713a7b"
|
|
140
140
|
},
|
|
141
141
|
"devDependencies": {
|
|
142
142
|
"@microsoft/api-extractor": "^7.53.3",
|