@incodetech/web 0.0.0-dev-20260317-737b25e → 0.0.0-dev-20260318-7837fc0

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 CHANGED
@@ -586,6 +586,60 @@
586
586
  .IncodeInput[type="date"][data-has-value="true"] {
587
587
  color: var(--color-input-text-field-default, var(--input-text-field-default));
588
588
  }
589
+ .IncodeTextArea {
590
+ width: 100%;
591
+ max-width: 420px;
592
+ min-height: 56px;
593
+ font-family: var(--typography-input-dropdown-family);
594
+ font-size: var(--typography-input-dropdown-m-size);
595
+ font-weight: var(--typography-input-dropdown-m-weight);
596
+ line-height: var(--typography-input-dropdown-m-line-height);
597
+ letter-spacing: var(--typography-input-dropdown-m-letter-spacing);
598
+ background-color: var(--color-input-surface-default, var(--input-surface-default));
599
+ color: var(--color-input-text-field-default, var(--input-text-field-default));
600
+ border-radius: var(--radius-input, var(--input-border-radius));
601
+ border-style: var(--tw-border-style);
602
+ border-width: 1px;
603
+ border-color: var(--color-input-border-default, var(--input-border-default));
604
+ padding: var(--spacing-16, var(--spacing-16, 16px));
605
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
606
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));
607
+ transition-duration: var(--tw-duration, var(--default-transition-duration, .15s));
608
+ --tw-duration: .2s;
609
+ --tw-outline-style: none;
610
+ resize: vertical;
611
+ outline-style: none;
612
+ transition-duration: .2s;
613
+ }
614
+ .IncodeTextArea::placeholder {
615
+ color: var(--color-input-text-field-placeholder, var(--input-text-field-placeholder));
616
+ }
617
+ .IncodeTextArea:disabled {
618
+ border-color: var(--color-input-border-disabled, var(--input-border-disabled));
619
+ background-color: var(--color-input-surface-disabled, var(--input-surface-disabled));
620
+ cursor: not-allowed;
621
+ color: var(--color-input-text-field-disabled, var(--input-text-field-disabled));
622
+ resize: none;
623
+ opacity: 1;
624
+ }
625
+ .IncodeTextArea:focus {
626
+ border-style: var(--tw-border-style);
627
+ border-width: 2px;
628
+ border-color: var(--color-input-border-focus, var(--input-border-focus));
629
+ background-color: var(--color-input-surface-active, var(--input-surface-active));
630
+ }
631
+ .IncodeTextArea:active:not(:disabled) {
632
+ border-color: var(--color-input-border-active, var(--input-border-active));
633
+ background-color: var(--color-input-surface-active, var(--input-surface-active));
634
+ }
635
+ .IncodeTextArea[aria-invalid="true"] {
636
+ border-color: var(--color-input-border-negative, var(--input-border-negative));
637
+ }
638
+ .IncodeTextArea[aria-invalid="true"]:focus {
639
+ border-style: var(--tw-border-style);
640
+ border-width: 2px;
641
+ border-color: var(--color-input-border-negative, var(--input-border-negative));
642
+ }
589
643
  .IncodeInputComposed {
590
644
  width: 100%;
591
645
  max-width: 420px;
@@ -659,6 +713,57 @@
659
713
  font-family: inherit;
660
714
  display: inline-block;
661
715
  }
716
+ .IncodeTextAreaComposed {
717
+ width: 100%;
718
+ max-width: 420px;
719
+ }
720
+ .IncodeTextAreaComposedLabel {
721
+ font-family: var(--typography-label-family);
722
+ font-size: var(--typography-label-m-size);
723
+ font-weight: var(--typography-label-m-weight);
724
+ line-height: var(--typography-label-m-line-height);
725
+ letter-spacing: var(--typography-label-m-letter-spacing);
726
+ color: var(--color-input-text-label-default, var(--input-text-label-default));
727
+ margin: var(--spacing-0, var(--spacing-none, 0px));
728
+ margin-bottom: var(--spacing-8, var(--spacing-8, 8px));
729
+ padding: var(--spacing-0, var(--spacing-none, 0px));
730
+ display: inline-block;
731
+ }
732
+ .IncodeTextAreaComposedRequired {
733
+ color: var(--color-input-text-helper-negative, var(--input-text-helper-negative));
734
+ }
735
+ .IncodeTextAreaComposedWrapper {
736
+ position: relative;
737
+ }
738
+ .IncodeTextAreaComposedErrorWrapper, .IncodeTextAreaComposedHelperWrapper {
739
+ margin-top: var(--spacing-8, var(--spacing-8, 8px));
740
+ align-items: center;
741
+ display: flex;
742
+ }
743
+ .IncodeTextAreaComposedIconWrapper {
744
+ margin-right: var(--spacing-4, var(--spacing-4, 4px));
745
+ display: inline-block;
746
+ }
747
+ .IncodeTextAreaComposedError {
748
+ margin: var(--spacing-0, var(--spacing-none, 0px));
749
+ color: var(--color-input-text-helper-negative, var(--input-text-helper-negative));
750
+ font-family: var(--typography-body-family);
751
+ font-size: var(--typography-body-m-regular-size);
752
+ font-weight: var(--typography-body-m-regular-weight);
753
+ line-height: var(--typography-body-m-regular-line-height);
754
+ letter-spacing: var(--typography-body-m-regular-letter-spacing);
755
+ display: inline-block;
756
+ }
757
+ .IncodeTextAreaComposedHelper {
758
+ margin: var(--spacing-0, var(--spacing-none, 0px));
759
+ color: var(--color-input-text-helper-default, var(--input-text-helper-default));
760
+ font-family: var(--typography-body-family);
761
+ font-size: var(--typography-body-m-regular-size);
762
+ font-weight: var(--typography-body-m-regular-weight);
763
+ line-height: var(--typography-body-m-regular-line-height);
764
+ letter-spacing: var(--typography-body-m-regular-letter-spacing);
765
+ display: inline-block;
766
+ }
662
767
  .IncodeDropdownComposed {
663
768
  width: 100%;
664
769
  max-width: 420px;
@@ -2047,6 +2152,66 @@
2047
2152
  height: 840px;
2048
2153
  }
2049
2154
  }
2155
+ @media (min-width: 40rem) {
2156
+ .IncodePageContainer .IncodePageInner {
2157
+ max-width: 40rem;
2158
+ }
2159
+ }
2160
+ @media (min-width: 48rem) {
2161
+ .IncodePageContainer .IncodePageInner {
2162
+ max-width: 48rem;
2163
+ }
2164
+ }
2165
+ @media (min-width: 64rem) {
2166
+ .IncodePageContainer .IncodePageInner {
2167
+ max-width: 64rem;
2168
+ }
2169
+ }
2170
+ @media (min-width: 80rem) {
2171
+ .IncodePageContainer .IncodePageInner {
2172
+ max-width: 80rem;
2173
+ }
2174
+ }
2175
+ @media (min-width: 96rem) {
2176
+ .IncodePageContainer .IncodePageInner {
2177
+ max-width: 96rem;
2178
+ }
2179
+ }
2180
+ @media (min-width: 48rem) {
2181
+ .IncodePageContainer .IncodePageInner {
2182
+ height: 840px;
2183
+ }
2184
+ }
2185
+ @media (min-width: 40rem) {
2186
+ .IncodePageContainer .IncodePageInner {
2187
+ max-width: 40rem;
2188
+ }
2189
+ }
2190
+ @media (min-width: 48rem) {
2191
+ .IncodePageContainer .IncodePageInner {
2192
+ max-width: 48rem;
2193
+ }
2194
+ }
2195
+ @media (min-width: 64rem) {
2196
+ .IncodePageContainer .IncodePageInner {
2197
+ max-width: 64rem;
2198
+ }
2199
+ }
2200
+ @media (min-width: 80rem) {
2201
+ .IncodePageContainer .IncodePageInner {
2202
+ max-width: 80rem;
2203
+ }
2204
+ }
2205
+ @media (min-width: 96rem) {
2206
+ .IncodePageContainer .IncodePageInner {
2207
+ max-width: 96rem;
2208
+ }
2209
+ }
2210
+ @media (min-width: 48rem) {
2211
+ .IncodePageContainer .IncodePageInner {
2212
+ height: 840px;
2213
+ }
2214
+ }
2050
2215
  .IncodePageContainer .IncodePageInner {
2051
2216
  width: 100%;
2052
2217
  }
@@ -8,6 +8,10 @@
8
8
  }
9
9
  }
10
10
 
11
+ .IncodeEkybSpinner {
12
+ flex: 1;
13
+ }
14
+
11
15
  .IncodeEkybPage {
12
16
  max-width: 480px;
13
17
  margin-inline: auto;
@@ -1,18 +1,19 @@
1
- import { b as v, u as o, I as X, a as J, B as Q } from "./button-Ca1tRSTI.js";
2
- import { SUPPORTED_COUNTRIES as M, DEV_ONLY_COUNTRIES as Z, computeEkybDisplayErrors as x, createEkybManager as ee } from "@incodetech/core/ekyb";
3
- import { T as q, y as V, A as P, d as te, q as S, k as oe } from "./vendor-preact-BXf0bkEs.js";
1
+ import { b as v, u as o, I as J, a as Q, B as Z } from "./button-Ca1tRSTI.js";
2
+ import { SUPPORTED_COUNTRIES as M, DEV_ONLY_COUNTRIES as x, computeEkybDisplayErrors as ee, createEkybManager as te } from "@incodetech/core/ekyb";
3
+ import { T as q, y as V, A as D, d as oe, q as S, k as re } from "./vendor-preact-BXf0bkEs.js";
4
4
  import "./uiConfig-Z6RT23Sl.js";
5
5
  import "@incodetech/core";
6
- import { u as re, A as se } from "./addressAutocomplete-DetZGxBZ.js";
7
- import { P as ne } from "./page-BVHG3h0V.js";
8
- import { t as K, F as ae, V as A } from "./formField-FeX9N4c8.js";
9
- import { r as ue } from "./incodeModule-aE-LkKwM.js";
10
- import { D as G } from "./dropdownComposed-B5ZuQS8C.js";
6
+ import { u as ne, A as se } from "./addressAutocomplete-DetZGxBZ.js";
7
+ import { P as K } from "./page-BVHG3h0V.js";
8
+ import { S as ae } from "./spinner-Cx3FPUCD.js";
9
+ import { t as G, F as ce, V as P } from "./formField-FeX9N4c8.js";
10
+ import { r as le } from "./incodeModule-aE-LkKwM.js";
11
+ import { D as Y } from "./dropdownComposed-B5ZuQS8C.js";
11
12
  import { I as _ } from "./inputComposed-BHi-MSpP.js";
12
- function ce(t) {
13
+ function ue(t) {
13
14
  return [...t.toUpperCase()].map((r) => String.fromCodePoint(127462 + r.charCodeAt(0) - 65)).join("");
14
15
  }
15
- const le = {
16
+ const ie = {
16
17
  BR: "Brazil",
17
18
  CM: "Cameroon",
18
19
  CN: "China",
@@ -27,27 +28,27 @@ const le = {
27
28
  GB: "United Kingdom",
28
29
  US: "USA"
29
30
  };
30
- function ie(t) {
31
- const r = le[t] ?? t;
32
- return { value: t, label: `${ce(t)} ${r}` };
31
+ function me(t) {
32
+ const r = ie[t] ?? t;
33
+ return { value: t, label: `${ue(t)} ${r}` };
33
34
  }
34
- function me() {
35
+ function de() {
35
36
  if (typeof window > "u") return !1;
36
37
  const { hostname: t } = window.location;
37
38
  return t === "localhost" || t.includes("stage") || t.includes("demo");
38
39
  }
39
- const de = ({
40
+ const be = ({
40
41
  value: t,
41
42
  onChange: r
42
43
  }) => {
43
- const { t: u } = v(), s = q(() => (me() ? [...M, ...Z] : [...M]).map(ie).sort((c, d) => c.label.localeCompare(d.label)), []);
44
+ const { t: c } = v(), n = q(() => (de() ? [...M, ...x] : [...M]).map(me).sort((l, d) => l.label.localeCompare(d.label)), []);
44
45
  return /* @__PURE__ */ o("div", { className: "IncodeEkybCountrySelector", children: /* @__PURE__ */ o(
45
- G,
46
+ Y,
46
47
  {
47
48
  id: "ekyb-country",
48
- label: u("ekyb.country"),
49
+ label: c("ekyb.country"),
49
50
  value: t,
50
- options: s,
51
+ options: n,
51
52
  onChange: r,
52
53
  "data-testid": "ekyb-country-selector"
53
54
  }
@@ -55,126 +56,133 @@ const de = ({
55
56
  }, B = ({
56
57
  field: t,
57
58
  value: r,
58
- error: u,
59
- errorParams: s,
59
+ error: c,
60
+ errorParams: n,
60
61
  country: i,
61
- onChange: c,
62
+ onChange: l,
62
63
  onBlur: d
63
64
  }) => {
64
- const { t: b } = v(), l = !t.required, h = b(t.label);
65
+ const { t: b } = v(), u = !t.required, h = b(t.label);
65
66
  if (t.type === "dropdown") {
66
- const m = l ? `${h} (${b("common.optional")})` : h, n = t.name === "state" ? b("ekyb.selectState") : void 0;
67
+ const m = u ? `${h} (${b("common.optional")})` : h, s = t.name === "state" ? b("ekyb.selectState") : void 0;
67
68
  return /* @__PURE__ */ o(
68
- G,
69
+ Y,
69
70
  {
70
71
  id: `ekyb-${t.name}`,
71
72
  label: m,
72
- placeholder: n,
73
+ placeholder: s,
73
74
  value: r,
74
75
  options: (t.options ?? []).map((p) => ({
75
76
  ...p,
76
77
  label: b(p.label)
77
78
  })),
78
- error: K(b, u, s),
79
+ error: G(b, c, n),
79
80
  searchable: !0,
80
- onChange: (p) => c(t.name, p),
81
+ onChange: (p) => l(t.name, p),
81
82
  onBlur: d ? () => d(t.name) : void 0,
82
83
  "data-testid": `ekyb-field-${t.name}`
83
84
  }
84
85
  );
85
86
  }
86
87
  return /* @__PURE__ */ o(
87
- ae,
88
+ ce,
88
89
  {
89
90
  name: t.name,
90
91
  label: t.label,
91
92
  value: r,
92
- error: u,
93
- errorParams: s,
93
+ error: c,
94
+ errorParams: n,
94
95
  required: t.required,
95
- optional: l,
96
- onChange: c,
96
+ optional: u,
97
+ onChange: l,
97
98
  onBlur: d
98
99
  }
99
100
  );
100
- }, be = ({
101
+ }, pe = ({
101
102
  ubos: t,
102
103
  errors: r,
103
- errorParams: u,
104
- canAddUbo: s,
104
+ errorParams: c,
105
+ canAddUbo: n,
105
106
  onSetField: i,
106
- onBlur: c,
107
+ onBlur: l,
107
108
  onAdd: d,
108
109
  onRemove: b
109
110
  }) => {
110
- const { t: l } = v(), h = (m) => K(l, r[m], u[m]);
111
+ const { t: u } = v(), h = (m) => G(u, r[m], c[m]);
111
112
  return t.length === 0 ? null : /* @__PURE__ */ o("div", { className: "IncodeEkybUbos", children: [
112
- t.map((m, n) => {
113
- const p = n === 0 ? l("ekyb.uboName") : l("ekyb.uboNameWithNumber", { number: n + 1 }), f = n === 0 ? l("ekyb.uboSurname") : l("ekyb.uboSurnameWithNumber", { number: n + 1 }), N = n === 0;
113
+ t.map((m, s) => {
114
+ const p = s === 0 ? u("ekyb.uboName") : u("ekyb.uboNameWithNumber", { number: s + 1 }), f = s === 0 ? u("ekyb.uboSurname") : u("ekyb.uboSurnameWithNumber", { number: s + 1 }), N = s === 0;
114
115
  return /* @__PURE__ */ o("div", { className: "IncodeEkybUboEntry", children: [
115
116
  /* @__PURE__ */ o(
116
117
  _,
117
118
  {
118
- id: `ubo-${n}-name`,
119
+ id: `ubo-${s}-name`,
119
120
  label: p,
120
- name: `ubo-${n}-name`,
121
+ name: `ubo-${s}-name`,
121
122
  value: m.name,
122
- error: h(`ubo-${n}-name`),
123
- onInput: (I) => i(n, "name", I.target.value),
124
- onBlur: c ? () => c(`ubo-${n}-name`) : void 0,
125
- "data-testid": `ekyb-ubo-${n}-name`
123
+ error: h(`ubo-${s}-name`),
124
+ onInput: (I) => i(s, "name", I.target.value),
125
+ onBlur: l ? () => l(`ubo-${s}-name`) : void 0,
126
+ "data-testid": `ekyb-ubo-${s}-name`
126
127
  }
127
128
  ),
128
129
  /* @__PURE__ */ o(
129
130
  _,
130
131
  {
131
- id: `ubo-${n}-surname`,
132
+ id: `ubo-${s}-surname`,
132
133
  label: f,
133
- name: `ubo-${n}-surname`,
134
+ name: `ubo-${s}-surname`,
134
135
  value: m.surname,
135
- error: h(`ubo-${n}-surname`),
136
+ error: h(`ubo-${s}-surname`),
136
137
  onInput: (I) => i(
137
- n,
138
+ s,
138
139
  "surname",
139
140
  I.target.value
140
141
  ),
141
- onBlur: c ? () => c(`ubo-${n}-surname`) : void 0,
142
- "data-testid": `ekyb-ubo-${n}-surname`
142
+ onBlur: l ? () => l(`ubo-${s}-surname`) : void 0,
143
+ "data-testid": `ekyb-ubo-${s}-surname`
143
144
  }
144
145
  ),
145
146
  !N && /* @__PURE__ */ o(
146
147
  "button",
147
148
  {
148
149
  className: "IncodeEkybRemoveUbo",
149
- onClick: () => b(n),
150
+ onClick: () => b(s),
150
151
  type: "button",
151
- children: l("common.remove")
152
+ children: u("common.remove")
152
153
  }
153
154
  )
154
155
  ] }, m.id);
155
156
  }),
156
- s && /* @__PURE__ */ o(
157
+ n && /* @__PURE__ */ o(
157
158
  "button",
158
159
  {
159
160
  className: "IncodeEkybAddUbo",
160
161
  onClick: d,
161
162
  type: "button",
162
163
  "data-testid": "ekyb-add-ubo",
163
- children: l("ekyb.addAnotherUbo")
164
+ children: u("ekyb.addAnotherUbo")
164
165
  }
165
166
  )
166
167
  ] });
167
- }, pe = ({ config: t, onFinish: r }) => {
168
- const { t: u } = v(), [s, i] = J(() => ee({ config: t }));
168
+ }, ye = ({ config: t, onFinish: r }) => {
169
+ const { t: c } = v(), [n, i] = Q(() => te({ config: t }));
169
170
  return V(() => {
170
- (s.status === "finished" || s.status === "closed") && r?.();
171
- }, [s.status, r]), s.status === "finished" || s.status === "closed" ? null : s.status === "loading" ? /* @__PURE__ */ o(
172
- A,
171
+ (n.status === "finished" || n.status === "closed") && r?.();
172
+ }, [n.status, r]), n.status === "finished" || n.status === "closed" ? null : n.status === "loading" ? /* @__PURE__ */ o(
173
+ P,
173
174
  {
174
175
  status: "submitting",
175
- submittingTitle: u("common.loading")
176
+ submittingTitle: c("common.loading")
177
+ }
178
+ ) : n.status === "submitting" ? /* @__PURE__ */ o(K, { children: /* @__PURE__ */ o(
179
+ ae,
180
+ {
181
+ fullScreen: !1,
182
+ title: c("common.processing"),
183
+ className: "IncodeEkybSpinner"
176
184
  }
177
- ) : s.status === "submitting" ? /* @__PURE__ */ o(A, { status: "submitting" }) : s.status === "success" ? /* @__PURE__ */ o(A, { status: "success" }) : s.status === "error" ? /* @__PURE__ */ o(A, { status: "failure", onRetry: () => i.retry() }) : s.status === "form" ? /* @__PURE__ */ o(he, { state: s, manager: i }) : null;
185
+ ) }) : n.status === "success" ? /* @__PURE__ */ o(P, { status: "success" }) : n.status === "error" ? /* @__PURE__ */ o(P, { status: "failure", onRetry: () => i.retry() }) : n.status === "form" ? /* @__PURE__ */ o(ke, { state: n, manager: i }) : null;
178
186
  }, O = /* @__PURE__ */ new Set([
179
187
  "street",
180
188
  "houseNo",
@@ -182,61 +190,61 @@ const de = ({
182
190
  "city",
183
191
  "state",
184
192
  "postalCode"
185
- ]), ye = ["street", "city", "state", "postalCode", "houseNo"], he = ({ state: t, manager: r }) => {
193
+ ]), he = ["street", "city", "state", "postalCode", "houseNo"], ke = ({ state: t, manager: r }) => {
186
194
  const {
187
- country: u,
188
- fields: s,
195
+ country: c,
196
+ fields: n,
189
197
  values: i,
190
- errors: c,
198
+ errors: l,
191
199
  isValid: d,
192
200
  ubos: b,
193
- canAddUbo: l,
201
+ canAddUbo: u,
194
202
  addressSuggestions: h,
195
203
  submitAttempted: m
196
- } = t, { t: n } = v(), p = P(null), f = P(null), N = P(void 0), I = re(p, s.length), [w, T] = te({}), y = S((e) => {
204
+ } = t, { t: s } = v(), p = D(null), f = D(null), N = D(void 0), I = ne(p, n.length), [w, T] = oe({}), y = S((e) => {
197
205
  T((a) => a[e] ? a : { ...a, [e]: !0 });
198
206
  }, []), { displayErrors: E, errorParams: F } = q(
199
- () => x(
200
- c,
207
+ () => ee(
208
+ l,
201
209
  w,
202
210
  m,
203
- u,
204
- s
211
+ c,
212
+ n
205
213
  ),
206
- [c, w, m, u, s]
214
+ [l, w, m, c, n]
207
215
  ), $ = S(
208
216
  (e) => y(e),
209
217
  [y]
210
- ), U = S(
218
+ ), A = S(
211
219
  (e, a) => {
212
220
  y(e), r.setField(e, a);
213
221
  },
214
222
  [r, y]
215
- ), Y = S(
223
+ ), j = S(
216
224
  (e, a, k) => {
217
225
  y(`ubo-${e}-${a}`), r.setUboField(e, a, k);
218
226
  },
219
227
  [r, y]
220
- ), j = S(
228
+ ), W = S(
221
229
  (e) => {
222
- for (const a of ye) y(a);
230
+ for (const a of he) y(a);
223
231
  r.selectAddress(e);
224
232
  },
225
233
  [r, y]
226
- ), W = S(
234
+ ), z = S(
227
235
  (e) => {
228
236
  r.removeUbo(e), T((a) => {
229
237
  const k = {};
230
- for (const [C, R] of Object.entries(a)) {
231
- const D = C.match(/^ubo-(\d+)-(name|surname)$/);
232
- if (!D) {
233
- k[C] = R;
238
+ for (const [C, U] of Object.entries(a)) {
239
+ const R = C.match(/^ubo-(\d+)-(name|surname)$/);
240
+ if (!R) {
241
+ k[C] = U;
234
242
  continue;
235
243
  }
236
- const g = Number(D[1]);
244
+ const g = Number(R[1]);
237
245
  if (g === e) continue;
238
- const H = g > e ? g - 1 : g;
239
- k[`ubo-${H}-${D[2]}`] = R;
246
+ const X = g > e ? g - 1 : g;
247
+ k[`ubo-${X}-${R[2]}`] = U;
240
248
  }
241
249
  return k;
242
250
  });
@@ -257,44 +265,44 @@ const de = ({
257
265
  });
258
266
  return () => cancelAnimationFrame(k);
259
267
  }, [E.postalCode]);
260
- const z = s.filter((e) => !O.has(e.name)), L = s.filter((e) => O.has(e.name));
261
- return /* @__PURE__ */ o(ne, { className: `IncodeEkybPage${I ? " IncodeEkybPageScrollable" : ""}`, title: n("ekyb.title"), children: [
268
+ const H = n.filter((e) => !O.has(e.name)), L = n.filter((e) => O.has(e.name));
269
+ return /* @__PURE__ */ o(K, { className: `IncodeEkybPage${I ? " IncodeEkybPageScrollable" : ""}`, title: s("ekyb.title"), children: [
262
270
  /* @__PURE__ */ o("div", { ref: p, className: "IncodeEkybForm", children: [
263
271
  /* @__PURE__ */ o(
264
- de,
272
+ be,
265
273
  {
266
- value: u,
274
+ value: c,
267
275
  onChange: (e) => r.setCountry(e)
268
276
  }
269
277
  ),
270
- z.map((e) => /* @__PURE__ */ o(
278
+ H.map((e) => /* @__PURE__ */ o(
271
279
  B,
272
280
  {
273
281
  field: e,
274
282
  value: i[e.name] ?? "",
275
283
  error: E[e.name],
276
284
  errorParams: F[e.name],
277
- country: u,
278
- onChange: U,
285
+ country: c,
286
+ onChange: A,
279
287
  onBlur: $
280
288
  },
281
289
  e.name
282
290
  )),
283
291
  /* @__PURE__ */ o(
284
- be,
292
+ pe,
285
293
  {
286
294
  ubos: b,
287
295
  errors: E,
288
296
  errorParams: F,
289
- canAddUbo: l,
290
- onSetField: Y,
297
+ canAddUbo: u,
298
+ onSetField: j,
291
299
  onBlur: $,
292
300
  onAdd: () => r.addUbo(),
293
- onRemove: W
301
+ onRemove: z
294
302
  }
295
303
  ),
296
- L.length > 0 && /* @__PURE__ */ o(oe, { children: [
297
- /* @__PURE__ */ o("h3", { className: "IncodeEkybSectionHeader", children: n("ekyb.addressDetails") }),
304
+ L.length > 0 && /* @__PURE__ */ o(re, { children: [
305
+ /* @__PURE__ */ o("h3", { className: "IncodeEkybSectionHeader", children: s("ekyb.addressDetails") }),
298
306
  L.map((e) => e.name === "street" ? /* @__PURE__ */ o(
299
307
  se,
300
308
  {
@@ -304,9 +312,9 @@ const de = ({
304
312
  errorParams: F.street,
305
313
  suggestions: h,
306
314
  optional: !e.required,
307
- onChange: (a) => U("street", a),
315
+ onChange: (a) => A("street", a),
308
316
  onSearch: (a) => r.searchAddress(a),
309
- onSelect: j,
317
+ onSelect: W,
310
318
  onBlur: () => $("street")
311
319
  },
312
320
  e.name
@@ -321,8 +329,8 @@ const de = ({
321
329
  value: i[e.name] ?? "",
322
330
  error: E[e.name],
323
331
  errorParams: F[e.name],
324
- country: u,
325
- onChange: U,
332
+ country: c,
333
+ onChange: A,
326
334
  onBlur: $
327
335
  }
328
336
  )
@@ -332,17 +340,17 @@ const de = ({
332
340
  ] })
333
341
  ] }),
334
342
  /* @__PURE__ */ o("div", { className: "IncodeEkybFooter", children: /* @__PURE__ */ o(
335
- Q,
343
+ Z,
336
344
  {
337
345
  onClick: () => r.submit(),
338
346
  disabled: !d,
339
347
  "data-testid": "ekyb-submit",
340
- children: n("ekyb.continue")
348
+ children: s("ekyb.continue")
341
349
  }
342
350
  ) })
343
351
  ] });
344
- }, ke = ({ config: t, onFinish: r }) => /* @__PURE__ */ o(X, { children: t ? /* @__PURE__ */ o(pe, { config: t, onFinish: r }) : null });
345
- ue(ke, "incode-ekyb");
352
+ }, Ee = ({ config: t, onFinish: r }) => /* @__PURE__ */ o(J, { children: t ? /* @__PURE__ */ o(ye, { config: t, onFinish: r }) : null });
353
+ le(Ee, "incode-ekyb");
346
354
  export {
347
- ke as EkybModule
355
+ Ee as EkybModule
348
356
  };
@@ -9,6 +9,10 @@
9
9
  }
10
10
  }
11
11
 
12
+ .IncodeEkycSpinner {
13
+ flex: 1;
14
+ }
15
+
12
16
  .IncodeEkycPage {
13
17
  max-width: 480px;
14
18
  margin-inline: auto;