@incodetech/web 2.0.0-alpha.8 → 2.0.0-rc.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.
Files changed (182) hide show
  1. package/dist/ae-signature/ae-signature.es.js +15 -0
  2. package/dist/ae-signature/styles.css +348 -0
  3. package/dist/ae-signature/styles2.css +107 -0
  4. package/dist/aligndevicelottie-DoV8xKjh.js +12757 -0
  5. package/dist/antifraud/antifraud.es.js +18 -0
  6. package/dist/antifraud/styles.css +2 -0
  7. package/dist/authentication/authentication.es.js +29 -0
  8. package/dist/autoFocusTitle-QexamZ4i.js +16 -0
  9. package/dist/back-horizontal-hint-B8Brxh3U.js +137 -0
  10. package/dist/back-tutorial-1NOQobGO.js +14585 -0
  11. package/dist/back-vertical-hint-BBo36dxn.js +128 -0
  12. package/dist/backdevicelottie-C_ceuqY7.js +16678 -0
  13. package/dist/base.css +5218 -639
  14. package/dist/blurdevicelottie-UO14Y0WC.js +15939 -0
  15. package/dist/bottomSheet-DE_8TFEC.js +31 -0
  16. package/dist/browser-ponyfill-jOkuz57z.js +299 -0
  17. package/dist/button-DcCUEn2n.js +24 -0
  18. package/dist/checkbox-Cl57ltq_.js +85 -0
  19. package/dist/consent/consent.es.js +90 -0
  20. package/dist/consent/styles.css +116 -0
  21. package/dist/countrySelector-CE-JgIsv.js +58 -0
  22. package/dist/cpf-ocr/styles.css +45 -0
  23. package/dist/cpfOcr-D_tbwbvh.js +78 -0
  24. package/dist/cross-document-data-match/cross-document-data-match.es.js +18 -0
  25. package/dist/curp-validation/curp-validation.es.js +279 -0
  26. package/dist/curp-validation/styles.css +82 -0
  27. package/dist/custom-fields/styles.css +22 -0
  28. package/dist/customFields-CW38fQUv.js +127 -0
  29. package/dist/customWatchlist-D9_yjEQd.js +33 -0
  30. package/dist/dateInputComposed-BpAGsjN6.js +55 -0
  31. package/dist/dateInputComposed-DU3o6PAV.js +1 -0
  32. package/dist/defineProperty-Dh8nSJpJ.js +39 -0
  33. package/dist/document-capture/styles.css +367 -0
  34. package/dist/documentCapture-xX-JT7ZY.js +763 -0
  35. package/dist/dropdownComposed-DFRBG22E.js +284 -0
  36. package/dist/dropdownComposed-DwTzc2YU.js +1 -0
  37. package/dist/dynamic-forms/styles.css +36 -0
  38. package/dist/dynamicForms-CJP1Ia6Q.js +262 -0
  39. package/dist/ekyb/ekyb.es.js +2 -0
  40. package/dist/ekyb/styles.css +137 -0
  41. package/dist/ekybModule-BSs7mndb.js +280 -0
  42. package/dist/ekybModule-D9M3E2Gm.js +2 -0
  43. package/dist/ekyc/ekyc.es.js +2 -0
  44. package/dist/ekyc/styles.css +106 -0
  45. package/dist/ekycModule-CU9pt5YN.js +246 -0
  46. package/dist/ekycModule-CZw9cLno.js +2 -0
  47. package/dist/electronic-signature/electronic-signature.es.js +2 -0
  48. package/dist/electronic-signature-COYXjGdd.js +410 -0
  49. package/dist/email/email.es.js +87 -145
  50. package/dist/email/styles.css +5 -116
  51. package/dist/emailInput-DppGf9pv.js +37 -0
  52. package/dist/expiredId-BnmzE8T3.js +70 -0
  53. package/dist/extensibility-CzEJfRwo.js +2586 -0
  54. package/dist/extensibility.es.js +25 -0
  55. package/dist/face-match/face-match.es.js +2 -0
  56. package/dist/face-match/styles.css +910 -0
  57. package/dist/faceMatch-B8j0g0Yo.js +2 -0
  58. package/dist/faceMatch-BV8UD7tj.js +201 -0
  59. package/dist/flip-animation-CgwRsEmK.js +6983 -0
  60. package/dist/flow/flow.es.js +646 -542
  61. package/dist/flow/styles.css +4524 -440
  62. package/dist/front-horizontal-hint-DGGGi8e1.js +380 -0
  63. package/dist/front-vertical-hint-CNr5mE6Q.js +420 -0
  64. package/dist/frontdevicelottie-Bu6f9fDE.js +17302 -0
  65. package/dist/geolocation/geolocation.es.js +857 -0
  66. package/dist/geolocation/styles.css +158 -0
  67. package/dist/glaredevicelottie-B10axYs_.js +14466 -0
  68. package/dist/governmentValidation/governmentValidation.es.js +98 -0
  69. package/dist/governmentValidation/styles.css +58 -0
  70. package/dist/homeScreen-DnP1jw9A.js +227 -0
  71. package/dist/hooks-BVnGysT7.js +80 -0
  72. package/dist/i18n-9s4OSqwi.js +2010 -0
  73. package/dist/icons-Cc7zwchP.js +310 -0
  74. package/dist/id/id.es.js +832 -0
  75. package/dist/id/styles.css +1287 -0
  76. package/dist/id-laser-h-mBAzHVOK.js +467 -0
  77. package/dist/id-laser-v-CrFg4bcJ.js +483 -0
  78. package/dist/id-ocr/styles.css +46 -0
  79. package/dist/id-tutorial-BCr42Pnn.js +13153 -0
  80. package/dist/id-verification/id-verification.es.js +20 -0
  81. package/dist/idOcr-CCjfWQvH.js +94 -0
  82. package/dist/identity-reuse/identity-reuse.es.js +198 -0
  83. package/dist/identity-reuse/styles.css +163 -0
  84. package/dist/incode-logo-DX016usY.js +4 -0
  85. package/dist/incodeComponent-C1o4M0ZK.js +50 -0
  86. package/dist/incodeModule-BqCjVgEI.js +18 -0
  87. package/dist/index.es.js +16 -6
  88. package/dist/inputComposed-APSw8C7o.js +89 -0
  89. package/dist/inputComposed-XYrarFxS.js +1 -0
  90. package/dist/loadingIcon-BN5YRQUb.js +104 -0
  91. package/dist/mandatoryConsent-DssKMC3v.js +100 -0
  92. package/dist/modal-NMxsQHAO.js +135 -0
  93. package/dist/modal.hooks-CAjcIFZK.js +126 -0
  94. package/dist/numberedStep-CT-alrK5.js +11 -0
  95. package/dist/optionAccessibleLabel-CzEeX3Q4.js +140 -0
  96. package/dist/otpInput-DqRA_egd.js +145 -0
  97. package/dist/page-C1yT4DLb.js +69 -0
  98. package/dist/passport-horizontal-hint-Bgquwtac.js +293 -0
  99. package/dist/passport-tutorial-DwRwtPVX.js +11689 -0
  100. package/dist/passport-vertical-hint-BT1D5BrW.js +267 -0
  101. package/dist/pdf-BurGZ08w.js +14967 -0
  102. package/dist/pdfViewer-BGBNL1Ea.js +63 -0
  103. package/dist/phone/phone.es.js +98 -3441
  104. package/dist/phone/styles.css +3 -297
  105. package/dist/phoneInputComposed-bvWhGLFZ.js +11206 -0
  106. package/dist/processing-G_y3o32b.js +6 -0
  107. package/dist/qe-signature/qe-signature.es.js +15 -0
  108. package/dist/radioGroupComposed-BbmvxmD2.js +177 -0
  109. package/dist/redirect-to-mobile/styles.css +588 -0
  110. package/dist/redirectToMobile-C3k1gloW.js +1514 -0
  111. package/dist/requiredLabelHint-BLwgqozE.js +13 -0
  112. package/dist/richText-DbJ5sl2n.js +1973 -0
  113. package/dist/rolldown-runtime-CYMK-g2i.js +20 -0
  114. package/dist/selfie/selfie.es.js +42 -892
  115. package/dist/selfie/styles.css +298 -184
  116. package/dist/selfieTutorial-BgrlUMXP.js +2677 -0
  117. package/dist/signature/signature.es.js +546 -0
  118. package/dist/snackbar-BDp8x7Cv.js +14 -0
  119. package/dist/spinner-B4dcie2T.js +1 -0
  120. package/dist/spinner-CKnjVHxw.js +39 -0
  121. package/dist/statusPage-CUI7ApcU.js +28 -0
  122. package/dist/successIcon-DbILeIz_.js +28 -0
  123. package/dist/tabs-DaPyP71c.js +78 -0
  124. package/dist/themes/dark.css +846 -151
  125. package/dist/themes/light.css +798 -116
  126. package/dist/transitionSpinner-PIEPU2Vx.js +17 -0
  127. package/dist/tutorial-9vHAHvMK.js +2587 -0
  128. package/dist/types/ae-signature.d.ts +40 -0
  129. package/dist/types/antifraud.d.ts +40 -0
  130. package/dist/types/authentication.d.ts +45 -0
  131. package/dist/types/consent.d.ts +41 -0
  132. package/dist/types/cpf-ocr/styles.d.ts +1 -0
  133. package/dist/types/cross-document-data-match.d.ts +34 -0
  134. package/dist/types/curp-validation.d.ts +40 -0
  135. package/dist/types/custom-fields/styles.d.ts +1 -0
  136. package/dist/types/document-capture/styles.d.ts +1 -0
  137. package/dist/types/dynamic-forms/styles.d.ts +1 -0
  138. package/dist/types/ekyb.d.ts +34 -0
  139. package/dist/types/ekyc.d.ts +34 -0
  140. package/dist/types/electronic-signature.d.ts +43 -0
  141. package/dist/types/email.d.ts +14 -4
  142. package/dist/types/extensibility.d.ts +981 -0
  143. package/dist/types/face-match.d.ts +59 -0
  144. package/dist/types/flow.d.ts +81 -13
  145. package/dist/types/geolocation.d.ts +41 -0
  146. package/dist/types/governmentValidation.d.ts +34 -0
  147. package/dist/types/id-ocr/styles.d.ts +1 -0
  148. package/dist/types/id-verification.d.ts +40 -0
  149. package/dist/types/id.d.ts +41 -0
  150. package/dist/types/identity-reuse.d.ts +43 -0
  151. package/dist/types/index.d.ts +6 -12
  152. package/dist/types/mandatory-consent/styles.d.ts +1 -0
  153. package/dist/types/phone.d.ts +14 -4
  154. package/dist/types/qe-signature.d.ts +40 -0
  155. package/dist/types/redirect-to-mobile/styles.d.ts +1 -0
  156. package/dist/types/selfie.d.ts +14 -4
  157. package/dist/types/signature.d.ts +40 -0
  158. package/dist/types/watchlist-for-business/styles.d.ts +1 -0
  159. package/dist/types/watchlist.d.ts +40 -0
  160. package/dist/types/workflow.d.ts +91 -0
  161. package/dist/typography-CxjaknHN.js +28 -0
  162. package/dist/uiConfig-CwpQ-IM6.js +20 -0
  163. package/dist/useModuleLoader-BFiVA41N.js +432 -0
  164. package/dist/vendor-preact-D6SntenC.js +958 -0
  165. package/dist/verificationResult-BrVbUJ4U.js +97 -0
  166. package/dist/verifiedByIncode-ChZBpqNy.js +101 -0
  167. package/dist/watchlist/watchlist.es.js +33 -0
  168. package/dist/watchlist-for-business/styles.css +18 -0
  169. package/dist/watchlistForBusiness-BcSNtHCV.js +77 -0
  170. package/dist/workflow/styles.css +4612 -0
  171. package/dist/workflow/workflow.es.js +244 -0
  172. package/package.json +211 -15
  173. package/dist/browser-ponyfill-B6W6hHVY.js +0 -344
  174. package/dist/incodeModule-Dv8Qllrv.js +0 -254
  175. package/dist/instance-B-q0ZREN.js +0 -2140
  176. package/dist/otpInput-BtoZe0Wz.js +0 -151
  177. package/dist/page-D9ijzlSn.js +0 -234
  178. package/dist/selfieTutorial-C-u5GufD.js +0 -29
  179. package/dist/setup-wNL83jmW.js +0 -20
  180. package/dist/title-BfO5Dlzk.js +0 -25
  181. package/dist/uiConfig-CQ1W9cUD.js +0 -23
  182. package/dist/vendor-preact-CK0WeTOR.js +0 -584
@@ -0,0 +1,137 @@
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
+ }
@@ -0,0 +1,280 @@
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 };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "./ekybModule-BSs7mndb.js";
2
+ export { e as EkybModule };
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../ekycModule-CU9pt5YN.js";
2
+ export { e as EkycModule };
@@ -0,0 +1,106 @@
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
+ }