@incodetech/web 2.0.0-rc.0 → 2.0.0
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/package.json +3 -3
- package/dist/ae-signature/ae-signature.es.js +0 -15
- package/dist/ae-signature/styles.css +0 -348
- package/dist/ae-signature/styles2.css +0 -107
- package/dist/aligndevicelottie-DoV8xKjh.js +0 -12757
- package/dist/antifraud/antifraud.es.js +0 -18
- package/dist/antifraud/styles.css +0 -2
- package/dist/authentication/authentication.es.js +0 -29
- package/dist/autoFocusTitle-QexamZ4i.js +0 -16
- package/dist/back-horizontal-hint-B8Brxh3U.js +0 -137
- package/dist/back-tutorial-1NOQobGO.js +0 -14585
- package/dist/back-vertical-hint-BBo36dxn.js +0 -128
- package/dist/backdevicelottie-C_ceuqY7.js +0 -16678
- package/dist/base.css +0 -5818
- package/dist/blurdevicelottie-UO14Y0WC.js +0 -15939
- package/dist/bottomSheet-DE_8TFEC.js +0 -31
- package/dist/browser-ponyfill-jOkuz57z.js +0 -299
- package/dist/button-DcCUEn2n.js +0 -24
- package/dist/checkbox-Cl57ltq_.js +0 -85
- package/dist/consent/consent.es.js +0 -90
- package/dist/consent/styles.css +0 -116
- package/dist/countrySelector-CE-JgIsv.js +0 -58
- package/dist/cpf-ocr/styles.css +0 -45
- package/dist/cpfOcr-D_tbwbvh.js +0 -78
- package/dist/cross-document-data-match/cross-document-data-match.es.js +0 -18
- package/dist/curp-validation/curp-validation.es.js +0 -279
- package/dist/curp-validation/styles.css +0 -82
- package/dist/custom-fields/styles.css +0 -22
- package/dist/customFields-CW38fQUv.js +0 -127
- package/dist/customWatchlist-D9_yjEQd.js +0 -33
- package/dist/dateInputComposed-BpAGsjN6.js +0 -55
- package/dist/dateInputComposed-DU3o6PAV.js +0 -1
- package/dist/defineProperty-Dh8nSJpJ.js +0 -39
- package/dist/document-capture/styles.css +0 -367
- package/dist/documentCapture-xX-JT7ZY.js +0 -763
- package/dist/dropdownComposed-DFRBG22E.js +0 -284
- package/dist/dropdownComposed-DwTzc2YU.js +0 -1
- package/dist/dynamic-forms/styles.css +0 -36
- package/dist/dynamicForms-CJP1Ia6Q.js +0 -262
- package/dist/ekyb/ekyb.es.js +0 -2
- package/dist/ekyb/styles.css +0 -137
- package/dist/ekybModule-BSs7mndb.js +0 -280
- package/dist/ekybModule-D9M3E2Gm.js +0 -2
- package/dist/ekyc/ekyc.es.js +0 -2
- package/dist/ekyc/styles.css +0 -106
- package/dist/ekycModule-CU9pt5YN.js +0 -246
- package/dist/ekycModule-CZw9cLno.js +0 -2
- package/dist/electronic-signature/electronic-signature.es.js +0 -2
- package/dist/electronic-signature-COYXjGdd.js +0 -410
- package/dist/email/email.es.js +0 -87
- package/dist/email/styles.css +0 -12
- package/dist/emailInput-DppGf9pv.js +0 -37
- package/dist/expiredId-BnmzE8T3.js +0 -70
- package/dist/extensibility-CzEJfRwo.js +0 -2586
- package/dist/extensibility.es.js +0 -25
- package/dist/face-match/face-match.es.js +0 -2
- package/dist/face-match/styles.css +0 -910
- package/dist/faceMatch-B8j0g0Yo.js +0 -2
- package/dist/faceMatch-BV8UD7tj.js +0 -201
- package/dist/flip-animation-CgwRsEmK.js +0 -6983
- package/dist/flow/flow.es.js +0 -661
- package/dist/flow/styles.css +0 -5205
- package/dist/front-horizontal-hint-DGGGi8e1.js +0 -380
- package/dist/front-vertical-hint-CNr5mE6Q.js +0 -420
- package/dist/frontdevicelottie-Bu6f9fDE.js +0 -17302
- package/dist/geolocation/geolocation.es.js +0 -857
- package/dist/geolocation/styles.css +0 -158
- package/dist/glaredevicelottie-B10axYs_.js +0 -14466
- package/dist/governmentValidation/governmentValidation.es.js +0 -98
- package/dist/governmentValidation/styles.css +0 -58
- package/dist/homeScreen-DnP1jw9A.js +0 -227
- package/dist/hooks-BVnGysT7.js +0 -80
- package/dist/i18n-9s4OSqwi.js +0 -2010
- package/dist/icons-Cc7zwchP.js +0 -310
- package/dist/id/id.es.js +0 -832
- package/dist/id/styles.css +0 -1287
- package/dist/id-laser-h-mBAzHVOK.js +0 -467
- package/dist/id-laser-v-CrFg4bcJ.js +0 -483
- package/dist/id-ocr/styles.css +0 -46
- package/dist/id-tutorial-BCr42Pnn.js +0 -13153
- package/dist/id-verification/id-verification.es.js +0 -20
- package/dist/idOcr-CCjfWQvH.js +0 -94
- package/dist/identity-reuse/identity-reuse.es.js +0 -198
- package/dist/identity-reuse/styles.css +0 -163
- package/dist/incode-logo-DX016usY.js +0 -4
- package/dist/incodeComponent-C1o4M0ZK.js +0 -50
- package/dist/incodeModule-BqCjVgEI.js +0 -18
- package/dist/index.es.js +0 -16
- package/dist/inputComposed-APSw8C7o.js +0 -89
- package/dist/inputComposed-XYrarFxS.js +0 -1
- package/dist/loadingIcon-BN5YRQUb.js +0 -104
- package/dist/mandatoryConsent-DssKMC3v.js +0 -100
- package/dist/modal-NMxsQHAO.js +0 -135
- package/dist/modal.hooks-CAjcIFZK.js +0 -126
- package/dist/numberedStep-CT-alrK5.js +0 -11
- package/dist/optionAccessibleLabel-CzEeX3Q4.js +0 -140
- package/dist/otpInput-DqRA_egd.js +0 -145
- package/dist/page-C1yT4DLb.js +0 -69
- package/dist/passport-horizontal-hint-Bgquwtac.js +0 -293
- package/dist/passport-tutorial-DwRwtPVX.js +0 -11689
- package/dist/passport-vertical-hint-BT1D5BrW.js +0 -267
- package/dist/pdf-BurGZ08w.js +0 -14967
- package/dist/pdfViewer-BGBNL1Ea.js +0 -63
- package/dist/phone/phone.es.js +0 -98
- package/dist/phone/styles.css +0 -11
- package/dist/phoneInputComposed-bvWhGLFZ.js +0 -11206
- package/dist/processing-G_y3o32b.js +0 -6
- package/dist/qe-signature/qe-signature.es.js +0 -15
- package/dist/radioGroupComposed-BbmvxmD2.js +0 -177
- package/dist/redirect-to-mobile/styles.css +0 -588
- package/dist/redirectToMobile-C3k1gloW.js +0 -1514
- package/dist/requiredLabelHint-BLwgqozE.js +0 -13
- package/dist/richText-DbJ5sl2n.js +0 -1973
- package/dist/rolldown-runtime-CYMK-g2i.js +0 -20
- package/dist/selfie/selfie.es.js +0 -43
- package/dist/selfie/styles.css +0 -706
- package/dist/selfieTutorial-BgrlUMXP.js +0 -2677
- package/dist/signature/signature.es.js +0 -546
- package/dist/snackbar-BDp8x7Cv.js +0 -14
- package/dist/spinner-B4dcie2T.js +0 -1
- package/dist/spinner-CKnjVHxw.js +0 -39
- package/dist/statusPage-CUI7ApcU.js +0 -28
- package/dist/successIcon-DbILeIz_.js +0 -28
- package/dist/tabs-DaPyP71c.js +0 -78
- package/dist/themes/dark.css +0 -1347
- package/dist/themes/light.css +0 -1225
- package/dist/transitionSpinner-PIEPU2Vx.js +0 -17
- package/dist/tutorial-9vHAHvMK.js +0 -2587
- package/dist/types/ae-signature.d.ts +0 -40
- package/dist/types/antifraud.d.ts +0 -40
- package/dist/types/authentication.d.ts +0 -45
- package/dist/types/base.d.ts +0 -1
- package/dist/types/consent.d.ts +0 -41
- package/dist/types/cpf-ocr/styles.d.ts +0 -1
- package/dist/types/cross-document-data-match.d.ts +0 -34
- package/dist/types/curp-validation.d.ts +0 -40
- package/dist/types/custom-fields/styles.d.ts +0 -1
- package/dist/types/dark.d.ts +0 -1
- package/dist/types/document-capture/styles.d.ts +0 -1
- package/dist/types/dynamic-forms/styles.d.ts +0 -1
- package/dist/types/ekyb.d.ts +0 -34
- package/dist/types/ekyc.d.ts +0 -34
- package/dist/types/electronic-signature.d.ts +0 -43
- package/dist/types/email.d.ts +0 -67
- package/dist/types/extensibility.d.ts +0 -981
- package/dist/types/face-match.d.ts +0 -59
- package/dist/types/flow.d.ts +0 -137
- package/dist/types/geolocation.d.ts +0 -41
- package/dist/types/governmentValidation.d.ts +0 -34
- package/dist/types/id-ocr/styles.d.ts +0 -1
- package/dist/types/id-verification.d.ts +0 -40
- package/dist/types/id.d.ts +0 -41
- package/dist/types/identity-reuse.d.ts +0 -43
- package/dist/types/index.d.ts +0 -32
- package/dist/types/light.d.ts +0 -1
- package/dist/types/mandatory-consent/styles.d.ts +0 -1
- package/dist/types/phone.d.ts +0 -68
- package/dist/types/qe-signature.d.ts +0 -40
- package/dist/types/redirect-to-mobile/styles.d.ts +0 -1
- package/dist/types/selfie.d.ts +0 -41
- package/dist/types/signature.d.ts +0 -40
- package/dist/types/styles.d.ts +0 -1
- package/dist/types/themes/dark.d.ts +0 -1
- package/dist/types/themes/light.d.ts +0 -1
- package/dist/types/watchlist-for-business/styles.d.ts +0 -1
- package/dist/types/watchlist.d.ts +0 -40
- package/dist/types/workflow.d.ts +0 -91
- package/dist/typography-CxjaknHN.js +0 -28
- package/dist/uiConfig-CwpQ-IM6.js +0 -20
- package/dist/useModuleLoader-BFiVA41N.js +0 -432
- package/dist/vendor-preact-D6SntenC.js +0 -958
- package/dist/verificationResult-BrVbUJ4U.js +0 -97
- package/dist/verifiedByIncode-ChZBpqNy.js +0 -101
- package/dist/watchlist/watchlist.es.js +0 -33
- package/dist/watchlist-for-business/styles.css +0 -18
- package/dist/watchlistForBusiness-BcSNtHCV.js +0 -77
- package/dist/workflow/styles.css +0 -4612
- package/dist/workflow/workflow.es.js +0 -244
package/dist/ekyb/styles.css
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
|
|
2
|
-
@layer properties {
|
|
3
|
-
@supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
|
|
4
|
-
*, :before, :after, ::backdrop {
|
|
5
|
-
--tw-border-style: solid;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.IncodeEkybPage {
|
|
11
|
-
margin-inline: auto;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.IncodeEkybPage .IncodeEkybSpinner {
|
|
15
|
-
flex: 1;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.IncodeEkybPage .IncodeEkybForm {
|
|
19
|
-
margin-top: var(--spacing-32, var(--spacing-32, 32px));
|
|
20
|
-
gap: var(--spacing-16, var(--spacing-16, 16px));
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
width: 100%;
|
|
23
|
-
display: flex;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.IncodeEkybPage .IncodeEkybForm .IncodeInputComposed, .IncodeEkybPage .IncodeEkybForm .IncodeDropdownComposed, .IncodeEkybPage .IncodeEkybForm .IncodeCountrySelector, .IncodeEkybPage .IncodeEkybForm .IncodeFormField {
|
|
27
|
-
margin-inline: auto;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.IncodeEkybPage .IncodeEkybForm .IncodeFormField {
|
|
31
|
-
margin-bottom: var(--spacing-0, var(--spacing-none, 0px));
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.IncodeEkybPage .IncodeEkybForm .IncodeAddressAutocomplete {
|
|
35
|
-
margin-inline: auto;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.IncodeEkybPage .IncodeEkybCountrySelector {
|
|
39
|
-
width: 100%;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.IncodeEkybPage .IncodeEkybUbos, .IncodeEkybPage .IncodeEkybUboEntry {
|
|
43
|
-
gap: var(--spacing-16, var(--spacing-16, 16px));
|
|
44
|
-
flex-direction: column;
|
|
45
|
-
display: flex;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.IncodeEkybPage .IncodeEkybRemoveUbo {
|
|
49
|
-
cursor: pointer;
|
|
50
|
-
border-style: var(--tw-border-style);
|
|
51
|
-
border-width: var(--border-width-none, var(--primitive-border-width-0));
|
|
52
|
-
--tw-border-style: none;
|
|
53
|
-
padding: var(--spacing-0, var(--spacing-none, 0px));
|
|
54
|
-
font-family: var(--typography-body-family);
|
|
55
|
-
font-size: var(--typography-body-s-regular-size);
|
|
56
|
-
font-weight: var(--typography-body-s-regular-weight);
|
|
57
|
-
line-height: var(--typography-body-s-regular-line-height);
|
|
58
|
-
letter-spacing: var(--typography-body-s-regular-letter-spacing);
|
|
59
|
-
color: var(--color-text-status-negative, var(--text-status-negative));
|
|
60
|
-
background-color: #0000;
|
|
61
|
-
border-style: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.IncodeEkybPage .IncodeEkybAddUbo {
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
border-style: var(--tw-border-style);
|
|
67
|
-
border-width: var(--border-width-none, var(--primitive-border-width-0));
|
|
68
|
-
--tw-border-style: none;
|
|
69
|
-
padding-block: var(--spacing-8, var(--spacing-8, 8px));
|
|
70
|
-
text-align: center;
|
|
71
|
-
font-family: var(--typography-button-family);
|
|
72
|
-
font-size: var(--typography-button-m-underlined-size);
|
|
73
|
-
font-weight: var(--typography-button-m-underlined-weight);
|
|
74
|
-
line-height: var(--typography-button-m-underlined-line-height);
|
|
75
|
-
letter-spacing: var(--typography-button-m-underlined-letter-spacing);
|
|
76
|
-
-webkit-text-decoration-skip-ink: none;
|
|
77
|
-
text-decoration-skip-ink: none;
|
|
78
|
-
color: var(--color-button-primary-surface-default, var(--button-primary-surface-default));
|
|
79
|
-
background-color: #0000;
|
|
80
|
-
border-style: none;
|
|
81
|
-
text-decoration-line: underline;
|
|
82
|
-
text-decoration-style: solid;
|
|
83
|
-
text-decoration-thickness: auto;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.IncodeEkybPage .IncodeEkybAddUbo:hover {
|
|
87
|
-
opacity: .8;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.IncodeEkybPage .IncodeEkybSectionHeader {
|
|
91
|
-
font-family: var(--typography-headline-family);
|
|
92
|
-
font-size: var(--typography-headline-h3-size);
|
|
93
|
-
font-weight: var(--typography-headline-h3-weight);
|
|
94
|
-
line-height: var(--typography-headline-h3-line-height);
|
|
95
|
-
letter-spacing: var(--typography-headline-h3-letter-spacing);
|
|
96
|
-
color: var(--color-input-text-label-default, var(--input-text-label-default));
|
|
97
|
-
margin-inline: auto;
|
|
98
|
-
margin-top: var(--spacing-16, var(--spacing-16, 16px));
|
|
99
|
-
width: 100%;
|
|
100
|
-
max-width: 420px;
|
|
101
|
-
padding-block: var(--spacing-12, var(--spacing-12, 12px));
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.IncodeEkybPage .IncodeEkybFooter {
|
|
105
|
-
margin-top: var(--spacing-24, var(--spacing-24, 24px));
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
@media (min-width: 768px) {
|
|
109
|
-
.IncodeEkybPage.IncodePageContainer {
|
|
110
|
-
margin-top: var(--spacing-0, var(--spacing-none, 0px));
|
|
111
|
-
max-height: none;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.IncodeEkybPage.IncodeEkybPageScrollable {
|
|
115
|
-
max-width: 500px;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.IncodeEkybPage .IncodePageContent {
|
|
119
|
-
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.IncodeEkybPage .IncodeEkybForm {
|
|
123
|
-
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
124
|
-
padding-bottom: var(--spacing-8, var(--spacing-8, 8px));
|
|
125
|
-
overflow-y: auto;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.IncodeEkybPage .IncodeEkybFooter {
|
|
129
|
-
flex-shrink: 0;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
@property --tw-border-style {
|
|
134
|
-
syntax: "*";
|
|
135
|
-
inherits: false;
|
|
136
|
-
initial-value: solid;
|
|
137
|
-
}
|
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./i18n-9s4OSqwi.js";
|
|
2
|
-
import { S as t, _ as n, d as r, h as i, l as a, p as o, v as s } from "./vendor-preact-D6SntenC.js";
|
|
3
|
-
import { i as c, o as l } from "./hooks-BVnGysT7.js";
|
|
4
|
-
import { t as u } from "./incodeComponent-C1o4M0ZK.js";
|
|
5
|
-
import { r as d } from "./loadingIcon-BN5YRQUb.js";
|
|
6
|
-
import { t as f } from "./page-C1yT4DLb.js";
|
|
7
|
-
import "./extensibility-CzEJfRwo.js";
|
|
8
|
-
import { t as p } from "./spinner-CKnjVHxw.js";
|
|
9
|
-
import { t as m } from "./button-DcCUEn2n.js";
|
|
10
|
-
import { t as h } from "./verificationResult-BrVbUJ4U.js";
|
|
11
|
-
import { t as g } from "./inputComposed-APSw8C7o.js";
|
|
12
|
-
import { i as _, r as v } from "./radioGroupComposed-BbmvxmD2.js";
|
|
13
|
-
import { t as y } from "./dropdownComposed-DFRBG22E.js";
|
|
14
|
-
import { t as b } from "./incodeModule-BqCjVgEI.js";
|
|
15
|
-
import { n as x, t as S } from "./requiredLabelHint-BLwgqozE.js";
|
|
16
|
-
import { n as C, t as w } from "./optionAccessibleLabel-CzEeX3Q4.js";
|
|
17
|
-
import { t as T } from "./countrySelector-CE-JgIsv.js";
|
|
18
|
-
import { DEV_ONLY_COUNTRIES as E, SUPPORTED_COUNTRIES as D, computeEkybDisplayErrors as O, createEkybManager as k } from "@incodetech/core/ekyb";
|
|
19
|
-
//#region src/modules/ekyb/countrySelector.tsx
|
|
20
|
-
var A = ({ value: t, onChange: n }) => {
|
|
21
|
-
let { t: r } = e();
|
|
22
|
-
return /* @__PURE__ */ s(T, {
|
|
23
|
-
id: "ekyb-country",
|
|
24
|
-
label: r("ekyb.country"),
|
|
25
|
-
value: t,
|
|
26
|
-
onChange: n,
|
|
27
|
-
countryCodes: D,
|
|
28
|
-
devOnlyCountryCodes: E,
|
|
29
|
-
"data-testid": "ekyb-country-selector"
|
|
30
|
-
});
|
|
31
|
-
}, j = ({ field: t, value: n, error: r, errorParams: i, country: a, labelHint: o, onChange: c, onBlur: l }) => {
|
|
32
|
-
let { t: u } = e();
|
|
33
|
-
return t.type === "dropdown" ? /* @__PURE__ */ s(y, {
|
|
34
|
-
id: `ekyb-${t.name}`,
|
|
35
|
-
label: u(t.label),
|
|
36
|
-
labelHint: o,
|
|
37
|
-
placeholder: t.placeholder ? u(t.placeholder) : void 0,
|
|
38
|
-
value: n,
|
|
39
|
-
options: (t.options ?? []).map((e) => {
|
|
40
|
-
let t = u(e.label);
|
|
41
|
-
return {
|
|
42
|
-
...e,
|
|
43
|
-
label: t,
|
|
44
|
-
ariaLabel: w(t)
|
|
45
|
-
};
|
|
46
|
-
}),
|
|
47
|
-
error: _(u, r, i),
|
|
48
|
-
required: t.required,
|
|
49
|
-
searchable: !0,
|
|
50
|
-
onChange: (e) => c(t.name, e),
|
|
51
|
-
onBlur: l ? () => l(t.name) : void 0,
|
|
52
|
-
"data-testid": `ekyb-field-${t.name}`
|
|
53
|
-
}) : /* @__PURE__ */ s(v, {
|
|
54
|
-
name: t.name,
|
|
55
|
-
label: t.label,
|
|
56
|
-
displayLabel: t.displayLabel,
|
|
57
|
-
value: n,
|
|
58
|
-
error: r,
|
|
59
|
-
errorParams: i,
|
|
60
|
-
required: t.required,
|
|
61
|
-
labelHint: o,
|
|
62
|
-
onChange: c,
|
|
63
|
-
onBlur: l
|
|
64
|
-
});
|
|
65
|
-
}, M = ({ ubos: t, errors: n, errorParams: r, canAddUbo: i, labelHint: a, onSetField: o, onBlur: c, onAdd: l, onRemove: u }) => {
|
|
66
|
-
let { t: d } = e(), f = (e) => _(d, n[e], r[e]);
|
|
67
|
-
return t.length === 0 ? null : /* @__PURE__ */ s("div", {
|
|
68
|
-
className: "IncodeEkybUbos",
|
|
69
|
-
children: [t.map((e, t) => {
|
|
70
|
-
let n = t === 0 ? d("ekyb.uboName") : d("ekyb.uboNameWithNumber", { number: t + 1 }), r = t === 0 ? d("ekyb.uboSurname") : d("ekyb.uboSurnameWithNumber", { number: t + 1 }), i = t === 0;
|
|
71
|
-
return /* @__PURE__ */ s("div", {
|
|
72
|
-
className: "IncodeEkybUboEntry",
|
|
73
|
-
role: "group",
|
|
74
|
-
"aria-label": `UBO ${t + 1}`,
|
|
75
|
-
children: [
|
|
76
|
-
/* @__PURE__ */ s(g, {
|
|
77
|
-
id: `ubo-${t}-name`,
|
|
78
|
-
label: n,
|
|
79
|
-
labelHint: a,
|
|
80
|
-
name: `ubo-${t}-name`,
|
|
81
|
-
value: e.name,
|
|
82
|
-
error: f(`ubo-${t}-name`),
|
|
83
|
-
required: !0,
|
|
84
|
-
onInput: (e) => o(t, "name", e.target.value),
|
|
85
|
-
onBlur: c ? () => c(`ubo-${t}-name`) : void 0,
|
|
86
|
-
"data-testid": `ekyb-ubo-${t}-name`
|
|
87
|
-
}),
|
|
88
|
-
/* @__PURE__ */ s(g, {
|
|
89
|
-
id: `ubo-${t}-surname`,
|
|
90
|
-
label: r,
|
|
91
|
-
labelHint: a,
|
|
92
|
-
name: `ubo-${t}-surname`,
|
|
93
|
-
value: e.surname,
|
|
94
|
-
error: f(`ubo-${t}-surname`),
|
|
95
|
-
required: !0,
|
|
96
|
-
onInput: (e) => o(t, "surname", e.target.value),
|
|
97
|
-
onBlur: c ? () => c(`ubo-${t}-surname`) : void 0,
|
|
98
|
-
"data-testid": `ekyb-ubo-${t}-surname`
|
|
99
|
-
}),
|
|
100
|
-
!i && /* @__PURE__ */ s("button", {
|
|
101
|
-
className: "IncodeEkybRemoveUbo",
|
|
102
|
-
onClick: () => u(t),
|
|
103
|
-
type: "button",
|
|
104
|
-
"aria-label": `${d("common.remove")} UBO ${t + 1}`,
|
|
105
|
-
children: d("common.remove")
|
|
106
|
-
})
|
|
107
|
-
]
|
|
108
|
-
}, e.id);
|
|
109
|
-
}), i && /* @__PURE__ */ s("button", {
|
|
110
|
-
className: "IncodeEkybAddUbo",
|
|
111
|
-
onClick: l,
|
|
112
|
-
type: "button",
|
|
113
|
-
"data-testid": "ekyb-add-ubo",
|
|
114
|
-
children: d("ekyb.addAnotherUbo")
|
|
115
|
-
})]
|
|
116
|
-
});
|
|
117
|
-
}, N = ({ config: t, onFinish: r }) => {
|
|
118
|
-
let { t: i } = e(), [a, o] = l(() => k({ config: t }));
|
|
119
|
-
return n(() => {
|
|
120
|
-
(a.status === "finished" || a.status === "closed") && r?.();
|
|
121
|
-
}, [a.status, r]), a.status === "finished" || a.status === "closed" ? null : a.status === "loading" ? /* @__PURE__ */ s(h, {
|
|
122
|
-
status: "submitting",
|
|
123
|
-
submittingTitle: i("common.loading")
|
|
124
|
-
}) : a.status === "submitting" ? /* @__PURE__ */ s(f, {
|
|
125
|
-
className: "IncodeEkybPage",
|
|
126
|
-
children: /* @__PURE__ */ s(p, {
|
|
127
|
-
fullScreen: !1,
|
|
128
|
-
title: i("common.processing"),
|
|
129
|
-
className: "IncodeEkybSpinner"
|
|
130
|
-
})
|
|
131
|
-
}) : a.status === "success" ? /* @__PURE__ */ s(h, { status: "success" }) : a.status === "error" ? /* @__PURE__ */ s(h, {
|
|
132
|
-
status: "failure",
|
|
133
|
-
onRetry: () => o.retry()
|
|
134
|
-
}) : a.status === "form" ? /* @__PURE__ */ s(I, {
|
|
135
|
-
state: a,
|
|
136
|
-
manager: o
|
|
137
|
-
}) : null;
|
|
138
|
-
}, P = new Set([
|
|
139
|
-
"street",
|
|
140
|
-
"houseNo",
|
|
141
|
-
"addressLine2",
|
|
142
|
-
"city",
|
|
143
|
-
"state",
|
|
144
|
-
"postalCode"
|
|
145
|
-
]), F = [
|
|
146
|
-
"street",
|
|
147
|
-
"city",
|
|
148
|
-
"state",
|
|
149
|
-
"postalCode",
|
|
150
|
-
"houseNo"
|
|
151
|
-
], I = ({ state: l, manager: u }) => {
|
|
152
|
-
let { country: p, fields: h, values: g, errors: _, isValid: v, ubos: y, canAddUbo: b, addressSuggestions: w, submitAttempted: T } = l, { t: E } = e(), D = a(null), k = a(null), N = a(void 0), I = c(D, h.length), [L, R] = o({}), z = i((e) => {
|
|
153
|
-
R((t) => t[e] ? t : {
|
|
154
|
-
...t,
|
|
155
|
-
[e]: !0
|
|
156
|
-
});
|
|
157
|
-
}, []), { displayErrors: B, errorParams: V } = r(() => O(_, L, T, p, h), [
|
|
158
|
-
_,
|
|
159
|
-
L,
|
|
160
|
-
T,
|
|
161
|
-
p,
|
|
162
|
-
h
|
|
163
|
-
]), H = i((e) => z(e), [z]), U = i((e, t) => {
|
|
164
|
-
z(e), u.setField(e, t);
|
|
165
|
-
}, [u, z]), W = i((e, t, n) => {
|
|
166
|
-
z(`ubo-${e}-${t}`), u.setUboField(e, t, n);
|
|
167
|
-
}, [u, z]), G = i((e) => {
|
|
168
|
-
for (let e of F) z(e);
|
|
169
|
-
u.selectAddress(e);
|
|
170
|
-
}, [u, z]), K = i((e) => {
|
|
171
|
-
u.removeUbo(e), R((t) => {
|
|
172
|
-
let n = {};
|
|
173
|
-
for (let [r, i] of Object.entries(t)) {
|
|
174
|
-
let t = r.match(/^ubo-(\d+)-(name|surname)$/);
|
|
175
|
-
if (!t) {
|
|
176
|
-
n[r] = i;
|
|
177
|
-
continue;
|
|
178
|
-
}
|
|
179
|
-
let a = Number(t[1]);
|
|
180
|
-
if (a === e) continue;
|
|
181
|
-
let o = a > e ? a - 1 : a;
|
|
182
|
-
n[`ubo-${o}-${t[2]}`] = i;
|
|
183
|
-
}
|
|
184
|
-
return n;
|
|
185
|
-
});
|
|
186
|
-
}, [u]);
|
|
187
|
-
n(() => {
|
|
188
|
-
let e = B.postalCode, t = N.current;
|
|
189
|
-
if (N.current = e, !e || t === e) return;
|
|
190
|
-
let n = requestAnimationFrame(() => {
|
|
191
|
-
let e = k.current;
|
|
192
|
-
e && (e.querySelector("#postalCode-error") ?? e).scrollIntoView({
|
|
193
|
-
behavior: "smooth",
|
|
194
|
-
block: "nearest"
|
|
195
|
-
});
|
|
196
|
-
});
|
|
197
|
-
return () => cancelAnimationFrame(n);
|
|
198
|
-
}, [B.postalCode]);
|
|
199
|
-
let q = h.filter((e) => !P.has(e.name)), J = h.filter((e) => P.has(e.name)), Y = r(() => x(h.map((e) => e.required)), [h]), X = (e) => {
|
|
200
|
-
let t = S(Y, e);
|
|
201
|
-
return t ? E(`forms.label.${t}`) : void 0;
|
|
202
|
-
};
|
|
203
|
-
return /* @__PURE__ */ s(f, {
|
|
204
|
-
className: `IncodeEkybPage${I ? " IncodeEkybPageScrollable" : ""}`,
|
|
205
|
-
title: E("ekyb.title"),
|
|
206
|
-
children: [/* @__PURE__ */ s("div", {
|
|
207
|
-
ref: D,
|
|
208
|
-
className: "IncodeEkybForm",
|
|
209
|
-
children: [
|
|
210
|
-
/* @__PURE__ */ s(A, {
|
|
211
|
-
value: p,
|
|
212
|
-
onChange: (e) => u.setCountry(e)
|
|
213
|
-
}),
|
|
214
|
-
q.map((e) => /* @__PURE__ */ s(j, {
|
|
215
|
-
field: e,
|
|
216
|
-
value: g[e.name] ?? "",
|
|
217
|
-
error: B[e.name],
|
|
218
|
-
errorParams: V[e.name],
|
|
219
|
-
country: p,
|
|
220
|
-
labelHint: X(e.required),
|
|
221
|
-
onChange: U,
|
|
222
|
-
onBlur: H
|
|
223
|
-
}, e.name)),
|
|
224
|
-
/* @__PURE__ */ s(M, {
|
|
225
|
-
ubos: y,
|
|
226
|
-
errors: B,
|
|
227
|
-
errorParams: V,
|
|
228
|
-
canAddUbo: b,
|
|
229
|
-
labelHint: X(!0),
|
|
230
|
-
onSetField: W,
|
|
231
|
-
onBlur: H,
|
|
232
|
-
onAdd: () => u.addUbo(),
|
|
233
|
-
onRemove: K
|
|
234
|
-
}),
|
|
235
|
-
J.length > 0 && /* @__PURE__ */ s(t, { children: [/* @__PURE__ */ s("h3", {
|
|
236
|
-
className: "IncodeEkybSectionHeader",
|
|
237
|
-
children: E("ekyb.addressDetails")
|
|
238
|
-
}), J.map((e) => e.name === "street" ? /* @__PURE__ */ s(C, {
|
|
239
|
-
label: e.label,
|
|
240
|
-
labelHint: X(e.required),
|
|
241
|
-
value: g.street ?? "",
|
|
242
|
-
error: B.street,
|
|
243
|
-
errorParams: V.street,
|
|
244
|
-
suggestions: w,
|
|
245
|
-
required: e.required,
|
|
246
|
-
onChange: (e) => U("street", e),
|
|
247
|
-
onSearch: (e) => u.searchAddress(e),
|
|
248
|
-
onSelect: G,
|
|
249
|
-
onBlur: () => H("street")
|
|
250
|
-
}, e.name) : /* @__PURE__ */ s("div", {
|
|
251
|
-
ref: e.name === "postalCode" ? k : void 0,
|
|
252
|
-
children: /* @__PURE__ */ s(j, {
|
|
253
|
-
field: e,
|
|
254
|
-
value: g[e.name] ?? "",
|
|
255
|
-
error: B[e.name],
|
|
256
|
-
errorParams: V[e.name],
|
|
257
|
-
country: p,
|
|
258
|
-
labelHint: X(e.required),
|
|
259
|
-
onChange: U,
|
|
260
|
-
onBlur: H
|
|
261
|
-
})
|
|
262
|
-
}, e.name))] })
|
|
263
|
-
]
|
|
264
|
-
}), /* @__PURE__ */ s("div", {
|
|
265
|
-
className: "IncodeEkybFooter",
|
|
266
|
-
children: [/* @__PURE__ */ s(m, {
|
|
267
|
-
onClick: () => u.submit(),
|
|
268
|
-
disabled: !v,
|
|
269
|
-
"data-testid": "ekyb-submit",
|
|
270
|
-
children: E("ekyb.continue")
|
|
271
|
-
}), /* @__PURE__ */ s(d, { size: 16 })]
|
|
272
|
-
})]
|
|
273
|
-
});
|
|
274
|
-
}, L = ({ config: e, onFinish: t }) => /* @__PURE__ */ s(u, { children: e ? /* @__PURE__ */ s(N, {
|
|
275
|
-
config: e,
|
|
276
|
-
onFinish: t
|
|
277
|
-
}) : null });
|
|
278
|
-
b(L, "incode-ekyb");
|
|
279
|
-
//#endregion
|
|
280
|
-
export { L as t };
|
package/dist/ekyc/ekyc.es.js
DELETED
package/dist/ekyc/styles.css
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
|
|
2
|
-
.IncodeEkycPage {
|
|
3
|
-
max-width: 480px;
|
|
4
|
-
margin-inline: auto;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@media (min-width: 48rem) {
|
|
8
|
-
.IncodeEkycPage .IncodePageInner {
|
|
9
|
-
padding-inline: var(--spacing-0, var(--spacing-none, 0px));
|
|
10
|
-
padding-block: var(--spacing-0, var(--spacing-none, 0px));
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.IncodeEkycPage .IncodeEkycSpinner {
|
|
15
|
-
flex: 1;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.IncodeEkycPage .IncodeEkycForm {
|
|
19
|
-
margin-top: var(--spacing-32, var(--spacing-32, 32px));
|
|
20
|
-
gap: var(--spacing-16, var(--spacing-16, 16px));
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
width: 100%;
|
|
23
|
-
display: flex;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.IncodeEkycPage .IncodeEkycForm .IncodeInputComposed, .IncodeEkycPage .IncodeEkycForm .IncodeDropdownComposed, .IncodeEkycPage .IncodeEkycForm .IncodeDateInputComposed, .IncodeEkycPage .IncodeEkycForm .IncodePhoneInputComposed, .IncodeEkycPage .IncodeEkycForm .IncodeAddressAutocomplete {
|
|
27
|
-
margin-inline: auto;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.IncodeEkycPage .IncodeEkycForm .IncodeFormField {
|
|
31
|
-
margin-bottom: var(--spacing-0, var(--spacing-none, 0px));
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.IncodeEkycPage .IncodeEkycSectionHeader {
|
|
35
|
-
font-family: var(--typography-headline-family);
|
|
36
|
-
font-size: var(--typography-headline-h3-size);
|
|
37
|
-
font-weight: var(--typography-headline-h3-weight);
|
|
38
|
-
line-height: var(--typography-headline-h3-line-height);
|
|
39
|
-
letter-spacing: var(--typography-headline-h3-letter-spacing);
|
|
40
|
-
color: var(--color-input-text-label-default, var(--input-text-label-default));
|
|
41
|
-
margin-inline: auto;
|
|
42
|
-
margin-top: var(--spacing-16, var(--spacing-16, 16px));
|
|
43
|
-
width: 100%;
|
|
44
|
-
max-width: 420px;
|
|
45
|
-
padding-block: var(--spacing-12, var(--spacing-12, 12px));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.IncodeEkycPage .IncodeEkycRadioGroup {
|
|
49
|
-
width: 100%;
|
|
50
|
-
max-width: 420px;
|
|
51
|
-
margin-inline: auto;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.IncodeEkycPage .IncodeEkycFooter {
|
|
55
|
-
margin-top: var(--spacing-24, var(--spacing-24, 24px));
|
|
56
|
-
align-items: center;
|
|
57
|
-
gap: var(--spacing-12, var(--spacing-12, 12px));
|
|
58
|
-
flex-direction: column;
|
|
59
|
-
display: flex;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.IncodeEkycPage .IncodeEkycFooter .IncodeEkycSubmitError {
|
|
63
|
-
margin-bottom: var(--spacing-12, var(--spacing-12, 12px));
|
|
64
|
-
text-align: center;
|
|
65
|
-
font-family: var(--typography-headline-family);
|
|
66
|
-
font-size: var(--typography-headline-h5-size);
|
|
67
|
-
font-weight: var(--typography-headline-h5-weight);
|
|
68
|
-
line-height: var(--typography-headline-h5-line-height);
|
|
69
|
-
letter-spacing: var(--typography-headline-h5-letter-spacing);
|
|
70
|
-
color: var(--color-input-text-helper-negative, var(--input-text-helper-negative));
|
|
71
|
-
margin-top: 0;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
@media (min-width: 768px) {
|
|
75
|
-
.IncodeEkycPage.IncodePageContainer {
|
|
76
|
-
height: 100dvh;
|
|
77
|
-
max-height: none;
|
|
78
|
-
margin-top: var(--spacing-0, var(--spacing-none, 0px));
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.IncodeEkycPage .IncodePageInner {
|
|
82
|
-
height: 100%;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.IncodeEkycPage.IncodeEkycPageScrollable {
|
|
86
|
-
max-width: 500px;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.IncodeEkycPage .IncodePageContent {
|
|
90
|
-
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.IncodeEkycPage .IncodeEkycForm {
|
|
94
|
-
min-height: var(--spacing-0, var(--spacing-none, 0px));
|
|
95
|
-
padding-bottom: var(--spacing-8, var(--spacing-8, 8px));
|
|
96
|
-
overflow-y: auto;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.IncodeEkycPage.IncodeEkycPageScrollable .IncodeEkycForm {
|
|
100
|
-
margin-left: var(--spacing-8, var(--spacing-8, 8px));
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.IncodeEkycPage .IncodeEkycFooter {
|
|
104
|
-
flex-shrink: 0;
|
|
105
|
-
}
|
|
106
|
-
}
|