@incodetech/web 0.0.0-dev-20260508-6c63ac8 → 0.0.0-dev-20260508-da43840
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/base.css +48 -0
- package/dist/countrySelector-B_dpv3Ku.js +58 -0
- package/dist/ekyb/ekyb.es.js +1 -1
- package/dist/ekybModule-B7UFEkEF.js +2 -0
- package/dist/{ekybModule-C3lXG2tC.js → ekybModule-C-ai_jbO.js} +43 -32
- package/dist/flow/flow.es.js +1 -1
- package/dist/flow/styles.css +2 -0
- package/dist/{useModuleLoader-CuRPfV2k.js → useModuleLoader-Ba3tFoor.js} +2 -2
- package/dist/watchlist-for-business/styles.css +2 -0
- package/dist/{watchlistForBusiness-DjgJnsPT.js → watchlistForBusiness-CmUsOcQQ.js} +5 -2
- package/dist/workflow/workflow.es.js +1 -1
- package/package.json +2 -2
- package/dist/countrySelector-CxwhZU7X.js +0 -52
- package/dist/ekybModule-B92LkG1f.js +0 -2
package/dist/base.css
CHANGED
|
@@ -488,6 +488,11 @@
|
|
|
488
488
|
font-weight: var(--typography-button-m-underlined-weight);
|
|
489
489
|
line-height: var(--typography-button-m-underlined-line-height);
|
|
490
490
|
letter-spacing: var(--typography-button-m-underlined-letter-spacing);
|
|
491
|
+
font-family: var(--typography-button-family);
|
|
492
|
+
font-size: var(--typography-button-m-underlined-size);
|
|
493
|
+
font-weight: var(--typography-button-m-underlined-weight);
|
|
494
|
+
line-height: var(--typography-button-m-underlined-line-height);
|
|
495
|
+
letter-spacing: var(--typography-button-m-underlined-letter-spacing);
|
|
491
496
|
text-decoration-line: underline;
|
|
492
497
|
text-decoration-style: solid;
|
|
493
498
|
text-decoration-thickness: auto;
|
|
@@ -1848,6 +1853,10 @@
|
|
|
1848
1853
|
font-family: inherit;
|
|
1849
1854
|
display: inline-block;
|
|
1850
1855
|
}
|
|
1856
|
+
.IncodeCountrySelector {
|
|
1857
|
+
width: 100%;
|
|
1858
|
+
max-width: 420px;
|
|
1859
|
+
}
|
|
1851
1860
|
.IncodePhoneInputComposed {
|
|
1852
1861
|
width: 100%;
|
|
1853
1862
|
max-width: 420px;
|
|
@@ -3882,6 +3891,45 @@
|
|
|
3882
3891
|
}
|
|
3883
3892
|
}
|
|
3884
3893
|
}
|
|
3894
|
+
@media (min-width: 40rem) {
|
|
3895
|
+
.IncodePageContainer .IncodePageInner {
|
|
3896
|
+
max-width: 40rem;
|
|
3897
|
+
}
|
|
3898
|
+
}
|
|
3899
|
+
@media (min-width: 48rem) {
|
|
3900
|
+
.IncodePageContainer .IncodePageInner {
|
|
3901
|
+
max-width: 48rem;
|
|
3902
|
+
}
|
|
3903
|
+
}
|
|
3904
|
+
@media (min-width: 64rem) {
|
|
3905
|
+
.IncodePageContainer .IncodePageInner {
|
|
3906
|
+
max-width: 64rem;
|
|
3907
|
+
}
|
|
3908
|
+
}
|
|
3909
|
+
@media (min-width: 80rem) {
|
|
3910
|
+
.IncodePageContainer .IncodePageInner {
|
|
3911
|
+
max-width: 80rem;
|
|
3912
|
+
}
|
|
3913
|
+
}
|
|
3914
|
+
@media (min-width: 96rem) {
|
|
3915
|
+
.IncodePageContainer .IncodePageInner {
|
|
3916
|
+
max-width: 96rem;
|
|
3917
|
+
}
|
|
3918
|
+
}
|
|
3919
|
+
@media (min-width: 48rem) {
|
|
3920
|
+
.IncodePageContainer .IncodePageInner {
|
|
3921
|
+
max-height: var(--incode-page-max-h);
|
|
3922
|
+
max-width: var(--incode-page-max-w);
|
|
3923
|
+
}
|
|
3924
|
+
|
|
3925
|
+
@media not all and (min-width: 80rem) {
|
|
3926
|
+
@media (orientation: landscape) {
|
|
3927
|
+
.IncodePageContainer .IncodePageInner {
|
|
3928
|
+
max-height: var(--incode-page-max-h-landscape);
|
|
3929
|
+
}
|
|
3930
|
+
}
|
|
3931
|
+
}
|
|
3932
|
+
}
|
|
3885
3933
|
.IncodePageContainer .IncodePageInner {
|
|
3886
3934
|
width: 100%;
|
|
3887
3935
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { n as e } from "./i18n-BnVa5Y-_.js";
|
|
2
|
+
import { d as t, v as n } from "./vendor-preact-D6SntenC.js";
|
|
3
|
+
import { t as r } from "./dropdownComposed-DFRBG22E.js";
|
|
4
|
+
//#region src/shared/countrySelector/countrySelector.tsx
|
|
5
|
+
var i = [
|
|
6
|
+
"BR",
|
|
7
|
+
"CN",
|
|
8
|
+
"FR",
|
|
9
|
+
"DE",
|
|
10
|
+
"IL",
|
|
11
|
+
"IT",
|
|
12
|
+
"MX",
|
|
13
|
+
"ES",
|
|
14
|
+
"GB",
|
|
15
|
+
"US"
|
|
16
|
+
], a = [
|
|
17
|
+
"CM",
|
|
18
|
+
"KE",
|
|
19
|
+
"NG"
|
|
20
|
+
];
|
|
21
|
+
function o(e) {
|
|
22
|
+
return [...e.toUpperCase()].map((e) => String.fromCodePoint(127462 + e.charCodeAt(0) - 65)).join("");
|
|
23
|
+
}
|
|
24
|
+
function s() {
|
|
25
|
+
if (typeof window > "u") return !1;
|
|
26
|
+
let { hostname: e } = window.location;
|
|
27
|
+
return e === "localhost" || e.includes("stage") || e.includes("demo");
|
|
28
|
+
}
|
|
29
|
+
var c = ({ value: c, onChange: l, label: u, id: d = "country-selector", countryCodes: f = i, devOnlyCountryCodes: p = a, "data-testid": m }) => {
|
|
30
|
+
let { i18n: h } = e(), g = h.language || "en";
|
|
31
|
+
return /* @__PURE__ */ n("div", {
|
|
32
|
+
class: "IncodeCountrySelector",
|
|
33
|
+
children: /* @__PURE__ */ n(r, {
|
|
34
|
+
id: d,
|
|
35
|
+
label: u,
|
|
36
|
+
value: c,
|
|
37
|
+
options: t(() => {
|
|
38
|
+
let e = new Intl.DisplayNames([g, "en"], { type: "region" });
|
|
39
|
+
return (s() ? [...f, ...p] : [...f]).map((t) => {
|
|
40
|
+
let n = e.of(t) ?? t;
|
|
41
|
+
return {
|
|
42
|
+
value: t,
|
|
43
|
+
label: `${o(t)} ${n}`,
|
|
44
|
+
ariaLabel: n
|
|
45
|
+
};
|
|
46
|
+
}).sort((e, t) => e.label.localeCompare(t.label, g));
|
|
47
|
+
}, [
|
|
48
|
+
f,
|
|
49
|
+
p,
|
|
50
|
+
g
|
|
51
|
+
]),
|
|
52
|
+
onChange: l,
|
|
53
|
+
"data-testid": m
|
|
54
|
+
})
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
//#endregion
|
|
58
|
+
export { c as t };
|
package/dist/ekyb/ekyb.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../ekybModule-
|
|
1
|
+
import { t as e } from "../ekybModule-C-ai_jbO.js";
|
|
2
2
|
export { e as EkybModule };
|
|
@@ -12,10 +12,21 @@ import { t as v } from "./dropdownComposed-DFRBG22E.js";
|
|
|
12
12
|
import { t as y } from "./incodeModule-D_r2n18O.js";
|
|
13
13
|
import { n as b, t as x } from "./requiredLabelHint-J9rEJWcF.js";
|
|
14
14
|
import { n as S, t as C } from "./optionAccessibleLabel-BNqnKbwB.js";
|
|
15
|
-
import { t as w } from "./countrySelector-
|
|
16
|
-
import {
|
|
17
|
-
//#region src/modules/ekyb/
|
|
18
|
-
var
|
|
15
|
+
import { t as w } from "./countrySelector-B_dpv3Ku.js";
|
|
16
|
+
import { DEV_ONLY_COUNTRIES as T, SUPPORTED_COUNTRIES as E, computeEkybDisplayErrors as D, createEkybManager as O } from "@incodetech/core/ekyb";
|
|
17
|
+
//#region src/modules/ekyb/countrySelector.tsx
|
|
18
|
+
var k = ({ value: t, onChange: n }) => {
|
|
19
|
+
let { t: r } = e();
|
|
20
|
+
return /* @__PURE__ */ s(w, {
|
|
21
|
+
id: "ekyb-country",
|
|
22
|
+
label: r("ekyb.country"),
|
|
23
|
+
value: t,
|
|
24
|
+
onChange: n,
|
|
25
|
+
countryCodes: E,
|
|
26
|
+
devOnlyCountryCodes: T,
|
|
27
|
+
"data-testid": "ekyb-country-selector"
|
|
28
|
+
});
|
|
29
|
+
}, A = ({ field: t, value: n, error: r, errorParams: i, country: a, labelHint: o, onChange: c, onBlur: l }) => {
|
|
19
30
|
let { t: u } = e();
|
|
20
31
|
return t.type === "dropdown" ? /* @__PURE__ */ s(v, {
|
|
21
32
|
id: `ekyb-${t.name}`,
|
|
@@ -49,7 +60,7 @@ var D = ({ field: t, value: n, error: r, errorParams: i, country: a, labelHint:
|
|
|
49
60
|
onChange: c,
|
|
50
61
|
onBlur: l
|
|
51
62
|
});
|
|
52
|
-
},
|
|
63
|
+
}, j = ({ ubos: t, errors: n, errorParams: r, canAddUbo: i, labelHint: a, onSetField: o, onBlur: c, onAdd: l, onRemove: u }) => {
|
|
53
64
|
let { t: d } = e(), f = (e) => g(d, n[e], r[e]);
|
|
54
65
|
return t.length === 0 ? null : /* @__PURE__ */ s("div", {
|
|
55
66
|
className: "IncodeEkybUbos",
|
|
@@ -101,8 +112,8 @@ var D = ({ field: t, value: n, error: r, errorParams: i, country: a, labelHint:
|
|
|
101
112
|
children: d("ekyb.addAnotherUbo")
|
|
102
113
|
})]
|
|
103
114
|
});
|
|
104
|
-
},
|
|
105
|
-
let { t: i } = e(), [a, o] = l(() =>
|
|
115
|
+
}, M = ({ config: t, onFinish: r }) => {
|
|
116
|
+
let { t: i } = e(), [a, o] = l(() => O({ config: t }));
|
|
106
117
|
return n(() => {
|
|
107
118
|
(a.status === "finished" || a.status === "closed") && r?.();
|
|
108
119
|
}, [a.status, r]), a.status === "finished" || a.status === "closed" ? null : a.status === "loading" ? /* @__PURE__ */ s(m, {
|
|
@@ -118,33 +129,33 @@ var D = ({ field: t, value: n, error: r, errorParams: i, country: a, labelHint:
|
|
|
118
129
|
}) : a.status === "success" ? /* @__PURE__ */ s(m, { status: "success" }) : a.status === "error" ? /* @__PURE__ */ s(m, {
|
|
119
130
|
status: "failure",
|
|
120
131
|
onRetry: () => o.retry()
|
|
121
|
-
}) : a.status === "form" ? /* @__PURE__ */ s(
|
|
132
|
+
}) : a.status === "form" ? /* @__PURE__ */ s(F, {
|
|
122
133
|
state: a,
|
|
123
134
|
manager: o
|
|
124
135
|
}) : null;
|
|
125
|
-
},
|
|
136
|
+
}, N = new Set([
|
|
126
137
|
"street",
|
|
127
138
|
"houseNo",
|
|
128
139
|
"addressLine2",
|
|
129
140
|
"city",
|
|
130
141
|
"state",
|
|
131
142
|
"postalCode"
|
|
132
|
-
]),
|
|
143
|
+
]), P = [
|
|
133
144
|
"street",
|
|
134
145
|
"city",
|
|
135
146
|
"state",
|
|
136
147
|
"postalCode",
|
|
137
148
|
"houseNo"
|
|
138
|
-
],
|
|
139
|
-
let { country: f, fields: m, values: h, errors: g, isValid: _, ubos: v, canAddUbo: y, addressSuggestions: C, submitAttempted:
|
|
149
|
+
], F = ({ state: l, manager: u }) => {
|
|
150
|
+
let { country: f, fields: m, values: h, errors: g, isValid: _, ubos: v, canAddUbo: y, addressSuggestions: C, submitAttempted: w } = l, { t: T } = e(), E = a(null), O = a(null), M = a(void 0), F = c(E, m.length), [I, L] = o({}), R = i((e) => {
|
|
140
151
|
L((t) => t[e] ? t : {
|
|
141
152
|
...t,
|
|
142
153
|
[e]: !0
|
|
143
154
|
});
|
|
144
|
-
}, []), { displayErrors: z, errorParams: B } = r(() =>
|
|
155
|
+
}, []), { displayErrors: z, errorParams: B } = r(() => D(g, I, w, f, m), [
|
|
145
156
|
g,
|
|
146
157
|
I,
|
|
147
|
-
|
|
158
|
+
w,
|
|
148
159
|
f,
|
|
149
160
|
m
|
|
150
161
|
]), V = i((e) => R(e), [R]), H = i((e, t) => {
|
|
@@ -152,7 +163,7 @@ var D = ({ field: t, value: n, error: r, errorParams: i, country: a, labelHint:
|
|
|
152
163
|
}, [u, R]), U = i((e, t, n) => {
|
|
153
164
|
R(`ubo-${e}-${t}`), u.setUboField(e, t, n);
|
|
154
165
|
}, [u, R]), W = i((e) => {
|
|
155
|
-
for (let e of
|
|
166
|
+
for (let e of P) R(e);
|
|
156
167
|
u.selectAddress(e);
|
|
157
168
|
}, [u, R]), G = i((e) => {
|
|
158
169
|
u.removeUbo(e), L((t) => {
|
|
@@ -172,10 +183,10 @@ var D = ({ field: t, value: n, error: r, errorParams: i, country: a, labelHint:
|
|
|
172
183
|
});
|
|
173
184
|
}, [u]);
|
|
174
185
|
n(() => {
|
|
175
|
-
let e = z.postalCode, t =
|
|
176
|
-
if (
|
|
186
|
+
let e = z.postalCode, t = M.current;
|
|
187
|
+
if (M.current = e, !e || t === e) return;
|
|
177
188
|
let n = requestAnimationFrame(() => {
|
|
178
|
-
let e =
|
|
189
|
+
let e = O.current;
|
|
179
190
|
e && (e.querySelector("#postalCode-error") ?? e).scrollIntoView({
|
|
180
191
|
behavior: "smooth",
|
|
181
192
|
block: "nearest"
|
|
@@ -183,22 +194,22 @@ var D = ({ field: t, value: n, error: r, errorParams: i, country: a, labelHint:
|
|
|
183
194
|
});
|
|
184
195
|
return () => cancelAnimationFrame(n);
|
|
185
196
|
}, [z.postalCode]);
|
|
186
|
-
let K = m.filter((e) => !
|
|
197
|
+
let K = m.filter((e) => !N.has(e.name)), q = m.filter((e) => N.has(e.name)), J = r(() => b(m.map((e) => e.required)), [m]), Y = (e) => {
|
|
187
198
|
let t = x(J, e);
|
|
188
|
-
return t ?
|
|
199
|
+
return t ? T(`forms.label.${t}`) : void 0;
|
|
189
200
|
};
|
|
190
201
|
return /* @__PURE__ */ s(d, {
|
|
191
202
|
className: `IncodeEkybPage${F ? " IncodeEkybPageScrollable" : ""}`,
|
|
192
|
-
title:
|
|
203
|
+
title: T("ekyb.title"),
|
|
193
204
|
children: [/* @__PURE__ */ s("div", {
|
|
194
|
-
ref:
|
|
205
|
+
ref: E,
|
|
195
206
|
className: "IncodeEkybForm",
|
|
196
207
|
children: [
|
|
197
|
-
/* @__PURE__ */ s(
|
|
208
|
+
/* @__PURE__ */ s(k, {
|
|
198
209
|
value: f,
|
|
199
210
|
onChange: (e) => u.setCountry(e)
|
|
200
211
|
}),
|
|
201
|
-
K.map((e) => /* @__PURE__ */ s(
|
|
212
|
+
K.map((e) => /* @__PURE__ */ s(A, {
|
|
202
213
|
field: e,
|
|
203
214
|
value: h[e.name] ?? "",
|
|
204
215
|
error: z[e.name],
|
|
@@ -208,7 +219,7 @@ var D = ({ field: t, value: n, error: r, errorParams: i, country: a, labelHint:
|
|
|
208
219
|
onChange: H,
|
|
209
220
|
onBlur: V
|
|
210
221
|
}, e.name)),
|
|
211
|
-
/* @__PURE__ */ s(
|
|
222
|
+
/* @__PURE__ */ s(j, {
|
|
212
223
|
ubos: v,
|
|
213
224
|
errors: z,
|
|
214
225
|
errorParams: B,
|
|
@@ -221,7 +232,7 @@ var D = ({ field: t, value: n, error: r, errorParams: i, country: a, labelHint:
|
|
|
221
232
|
}),
|
|
222
233
|
q.length > 0 && /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s("h3", {
|
|
223
234
|
className: "IncodeEkybSectionHeader",
|
|
224
|
-
children:
|
|
235
|
+
children: T("ekyb.addressDetails")
|
|
225
236
|
}), q.map((e) => e.name === "street" ? /* @__PURE__ */ s(S, {
|
|
226
237
|
label: e.label,
|
|
227
238
|
labelHint: Y(e.required),
|
|
@@ -235,8 +246,8 @@ var D = ({ field: t, value: n, error: r, errorParams: i, country: a, labelHint:
|
|
|
235
246
|
onSelect: W,
|
|
236
247
|
onBlur: () => V("street")
|
|
237
248
|
}, e.name) : /* @__PURE__ */ s("div", {
|
|
238
|
-
ref: e.name === "postalCode" ?
|
|
239
|
-
children: /* @__PURE__ */ s(
|
|
249
|
+
ref: e.name === "postalCode" ? O : void 0,
|
|
250
|
+
children: /* @__PURE__ */ s(A, {
|
|
240
251
|
field: e,
|
|
241
252
|
value: h[e.name] ?? "",
|
|
242
253
|
error: z[e.name],
|
|
@@ -254,14 +265,14 @@ var D = ({ field: t, value: n, error: r, errorParams: i, country: a, labelHint:
|
|
|
254
265
|
onClick: () => u.submit(),
|
|
255
266
|
disabled: !_,
|
|
256
267
|
"data-testid": "ekyb-submit",
|
|
257
|
-
children:
|
|
268
|
+
children: T("ekyb.continue")
|
|
258
269
|
})
|
|
259
270
|
})]
|
|
260
271
|
});
|
|
261
|
-
},
|
|
272
|
+
}, I = ({ config: e, onFinish: t }) => /* @__PURE__ */ s(u, { children: e ? /* @__PURE__ */ s(M, {
|
|
262
273
|
config: e,
|
|
263
274
|
onFinish: t
|
|
264
275
|
}) : null });
|
|
265
|
-
y(
|
|
276
|
+
y(I, "incode-ekyb");
|
|
266
277
|
//#endregion
|
|
267
|
-
export {
|
|
278
|
+
export { I as t };
|
package/dist/flow/flow.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import { o as l } from "../hooks-BVnGysT7.js";
|
|
|
5
5
|
import { t as u } from "../incodeComponent-9ZUPvQgC.js";
|
|
6
6
|
import { t as d } from "../transitionSpinner-av72n-l1.js";
|
|
7
7
|
import { t as f } from "../incodeModule-D_r2n18O.js";
|
|
8
|
-
import { a as p, c as m, d as h, f as g, l as _, m as v, n as y, o as b, r as x, s as S, t as C, u as w } from "../useModuleLoader-
|
|
8
|
+
import { a as p, c as m, d as h, f as g, l as _, m as v, n as y, o as b, r as x, s as S, t as C, u as w } from "../useModuleLoader-Ba3tFoor.js";
|
|
9
9
|
import { getDeviceClass as T } from "@incodetech/core/device";
|
|
10
10
|
import { getRequiredWasmPipelines as E } from "@incodetech/core/flow";
|
|
11
11
|
import { QrValidationError as D, bootstrapSession as O, refreshQrUrlUuid as k } from "@incodetech/core/session";
|
package/dist/flow/styles.css
CHANGED
|
@@ -4366,8 +4366,10 @@
|
|
|
4366
4366
|
|
|
4367
4367
|
.IncodeWatchlistForBusinessPage .IncodeWatchlistForBusinessForm {
|
|
4368
4368
|
margin-top: var(--spacing-32, var(--spacing-32, 32px));
|
|
4369
|
+
align-items: center;
|
|
4369
4370
|
gap: var(--spacing-16, var(--spacing-16, 16px));
|
|
4370
4371
|
flex-direction: column;
|
|
4372
|
+
width: 100%;
|
|
4371
4373
|
height: 100%;
|
|
4372
4374
|
display: flex;
|
|
4373
4375
|
}
|
|
@@ -174,7 +174,7 @@ var j = {
|
|
|
174
174
|
GOVT_VALIDATION_PROVISIONING: () => import("./governmentValidation/governmentValidation.es.js").then((e) => e.GovernmentValidation),
|
|
175
175
|
GEOLOCATION: () => import("./geolocation/geolocation.es.js").then((e) => e.Geolocation),
|
|
176
176
|
EXTERNAL_VERIFICATION: () => import("./ekycModule-DiBt3eF8.js").then((e) => e.EkycModule),
|
|
177
|
-
EKYB: () => import("./ekybModule-
|
|
177
|
+
EKYB: () => import("./ekybModule-B7UFEkEF.js").then((e) => e.EkybModule),
|
|
178
178
|
DOCUMENT_CAPTURE: () => import("./documentCapture-C2ShzJz0.js").then((e) => e.DocumentCapture),
|
|
179
179
|
ADDRESS: () => import("./documentCapture-C2ShzJz0.js").then((e) => e.DocumentCapture),
|
|
180
180
|
COMBINED_CONSENT: () => import("./consent/consent.es.js").then((e) => e.Consent),
|
|
@@ -185,7 +185,7 @@ var j = {
|
|
|
185
185
|
ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((e) => e.Antifraud),
|
|
186
186
|
CUSTOM_FIELDS: () => import("./customFields-DMNKnPeF.js").then((e) => e.CustomFields),
|
|
187
187
|
WATCHLIST: () => import("./watchlist/watchlist.es.js").then((e) => e.Watchlist),
|
|
188
|
-
WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-
|
|
188
|
+
WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-CmUsOcQQ.js").then((e) => e.WatchlistForBusiness),
|
|
189
189
|
INCODE_WATCHLIST: () => import("./customWatchlist-BT1PQfoG.js").then((e) => e.CustomWatchlist),
|
|
190
190
|
AE_SIGNATURE: () => import("./ae-signature/ae-signature.es.js").then((e) => e.AeSignature),
|
|
191
191
|
QE_SIGNATURE: () => import("./qe-signature/qe-signature.es.js").then((e) => e.QeSignature),
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
.IncodeWatchlistForBusinessPage .IncodeWatchlistForBusinessForm {
|
|
7
7
|
margin-top: var(--spacing-32, var(--spacing-32, 32px));
|
|
8
|
+
align-items: center;
|
|
8
9
|
gap: var(--spacing-16, var(--spacing-16, 16px));
|
|
9
10
|
flex-direction: column;
|
|
11
|
+
width: 100%;
|
|
10
12
|
height: 100%;
|
|
11
13
|
display: flex;
|
|
12
14
|
}
|
|
@@ -8,7 +8,7 @@ import { t as c } from "./button-DcCUEn2n.js";
|
|
|
8
8
|
import { t as l } from "./successIcon-DbILeIz_.js";
|
|
9
9
|
import { t as u } from "./inputComposed-APSw8C7o.js";
|
|
10
10
|
import { t as d } from "./incodeModule-D_r2n18O.js";
|
|
11
|
-
import { t as f } from "./countrySelector-
|
|
11
|
+
import { t as f } from "./countrySelector-B_dpv3Ku.js";
|
|
12
12
|
import { t as p } from "./statusPage-BvmC0O1t.js";
|
|
13
13
|
import { createWatchlistForBusinessManager as m } from "@incodetech/core/watchlist-for-business";
|
|
14
14
|
//#region src/modules/watchlist-for-business/watchlistForBusiness.tsx
|
|
@@ -47,8 +47,11 @@ var h = ({ onFinish: a }) => {
|
|
|
47
47
|
autoComplete: "off",
|
|
48
48
|
children: [
|
|
49
49
|
/* @__PURE__ */ r(f, {
|
|
50
|
+
id: "watchlist-for-business-country",
|
|
51
|
+
label: d("watchlistForBusiness.country"),
|
|
50
52
|
value: e?.country ?? "US",
|
|
51
|
-
onChange: (e) => g.setCountry(e)
|
|
53
|
+
onChange: (e) => g.setCountry(e),
|
|
54
|
+
"data-testid": "watchlist-for-business-country-selector"
|
|
52
55
|
}),
|
|
53
56
|
/* @__PURE__ */ r(u, {
|
|
54
57
|
id: "businessName",
|
|
@@ -6,7 +6,7 @@ import { t as l } from "../incodeComponent-9ZUPvQgC.js";
|
|
|
6
6
|
import "../spinner-B4dcie2T.js";
|
|
7
7
|
import { t as u } from "../transitionSpinner-av72n-l1.js";
|
|
8
8
|
import { t as d } from "../incodeModule-D_r2n18O.js";
|
|
9
|
-
import { a as f, h as p, i as m, o as h, p as g, t as _ } from "../useModuleLoader-
|
|
9
|
+
import { a as f, h as p, i as m, o as h, p as g, t as _ } from "../useModuleLoader-Ba3tFoor.js";
|
|
10
10
|
import { resolveWasmConfig as v, upgradeToWasmHttpClient as y, warmupWasm as b } from "@incodetech/core/wasm";
|
|
11
11
|
import { getDeviceClass as x } from "@incodetech/core/device";
|
|
12
12
|
import { QrValidationError as S, refreshQrUrlUuid as C } from "@incodetech/core/session";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "0.0.0-dev-20260508-
|
|
3
|
+
"version": "0.0.0-dev-20260508-da43840",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
"qrcode": "^1.5.4",
|
|
240
240
|
"signature_pad": "^5.1.3",
|
|
241
241
|
"tailwindcss": "^4.1.17",
|
|
242
|
-
"@incodetech/core": "0.0.0-dev-20260508-
|
|
242
|
+
"@incodetech/core": "0.0.0-dev-20260508-da43840"
|
|
243
243
|
},
|
|
244
244
|
"devDependencies": {
|
|
245
245
|
"@microsoft/api-extractor": "^7.53.3",
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./i18n-BnVa5Y-_.js";
|
|
2
|
-
import { d as t, v as n } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { t as r } from "./dropdownComposed-DFRBG22E.js";
|
|
4
|
-
import { DEV_ONLY_COUNTRIES as i, SUPPORTED_COUNTRIES as a } from "@incodetech/core/ekyb";
|
|
5
|
-
//#region src/modules/ekyb/countrySelector.tsx
|
|
6
|
-
function o(e) {
|
|
7
|
-
return [...e.toUpperCase()].map((e) => String.fromCodePoint(127462 + e.charCodeAt(0) - 65)).join("");
|
|
8
|
-
}
|
|
9
|
-
var s = {
|
|
10
|
-
BR: "Brazil",
|
|
11
|
-
CM: "Cameroon",
|
|
12
|
-
CN: "China",
|
|
13
|
-
FR: "France",
|
|
14
|
-
DE: "Germany",
|
|
15
|
-
IL: "Israel",
|
|
16
|
-
IT: "Italy",
|
|
17
|
-
KE: "Kenya",
|
|
18
|
-
MX: "Mexico",
|
|
19
|
-
NG: "Nigeria",
|
|
20
|
-
ES: "Spain",
|
|
21
|
-
GB: "United Kingdom",
|
|
22
|
-
US: "USA"
|
|
23
|
-
};
|
|
24
|
-
function c(e) {
|
|
25
|
-
let t = s[e] ?? e;
|
|
26
|
-
return {
|
|
27
|
-
value: e,
|
|
28
|
-
label: `${o(e)} ${t}`,
|
|
29
|
-
ariaLabel: t
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function l() {
|
|
33
|
-
if (typeof window > "u") return !1;
|
|
34
|
-
let { hostname: e } = window.location;
|
|
35
|
-
return e === "localhost" || e.includes("stage") || e.includes("demo");
|
|
36
|
-
}
|
|
37
|
-
var u = ({ value: o, onChange: s }) => {
|
|
38
|
-
let { t: u } = e(), d = t(() => (l() ? [...a, ...i] : [...a]).map(c).sort((e, t) => e.label.localeCompare(t.label)), []);
|
|
39
|
-
return /* @__PURE__ */ n("div", {
|
|
40
|
-
className: "IncodeEkybCountrySelector",
|
|
41
|
-
children: /* @__PURE__ */ n(r, {
|
|
42
|
-
id: "ekyb-country",
|
|
43
|
-
label: u("ekyb.country"),
|
|
44
|
-
value: o,
|
|
45
|
-
options: d,
|
|
46
|
-
onChange: s,
|
|
47
|
-
"data-testid": "ekyb-country-selector"
|
|
48
|
-
})
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
//#endregion
|
|
52
|
-
export { u as t };
|