@incodetech/welcome 1.85.0-20251215155839.0 → 1.85.0-20251216181218.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/dist/onBoarding.mjs
CHANGED
|
@@ -8350,7 +8350,7 @@ class MlWasmJSApi {
|
|
|
8350
8350
|
);
|
|
8351
8351
|
}
|
|
8352
8352
|
}
|
|
8353
|
-
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-
|
|
8353
|
+
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251216181218.0";
|
|
8354
8354
|
function e$2(Be, Le) {
|
|
8355
8355
|
return function(Ye, tt) {
|
|
8356
8356
|
return Object.prototype.hasOwnProperty.call(Ye, tt);
|
|
@@ -26734,7 +26734,7 @@ const FlexCenter = (Be) => /* @__PURE__ */ jsx$1(Flex, { justify: "center", alig
|
|
|
26734
26734
|
border: 1px solid ${(Be) => Be.borderColor || Be.tokens.input.primary.border.default};
|
|
26735
26735
|
border-radius: ${(Be) => Be.borderRadius || Be.tokens.spacing[2]};
|
|
26736
26736
|
color: ${(Be) => Be.color || Be.tokens.input.primary.text.field.default};
|
|
26737
|
-
|
|
26737
|
+
|
|
26738
26738
|
&:disabled {
|
|
26739
26739
|
border: 1px solid ${(Be) => Be.tokens.input.primary.border.disabled};
|
|
26740
26740
|
background-color: ${(Be) => Be.tokens.input.primary.surface.disabled};
|
|
@@ -27857,82 +27857,94 @@ const FlexCenter = (Be) => /* @__PURE__ */ jsx$1(Flex, { justify: "center", alig
|
|
|
27857
27857
|
}
|
|
27858
27858
|
), InputComposed = forwardRef(
|
|
27859
27859
|
({
|
|
27860
|
-
|
|
27861
|
-
|
|
27862
|
-
|
|
27863
|
-
|
|
27864
|
-
|
|
27865
|
-
|
|
27866
|
-
|
|
27867
|
-
|
|
27868
|
-
|
|
27869
|
-
|
|
27860
|
+
id: Be,
|
|
27861
|
+
label: Le,
|
|
27862
|
+
"aria-label": Ye,
|
|
27863
|
+
type: tt,
|
|
27864
|
+
error: nt,
|
|
27865
|
+
showErrorIcon: ft,
|
|
27866
|
+
helper: ht,
|
|
27867
|
+
showHelperIcon: gt,
|
|
27868
|
+
closeButton: At,
|
|
27869
|
+
required: xt,
|
|
27870
|
+
...Et
|
|
27871
|
+
}, yt) => {
|
|
27872
|
+
const Ct = useTokens(), kt = `${Be}-helper`, vt = `${Be}-error`, bt = [ht ? kt : null, nt ? vt : null].filter(Boolean).join(" ");
|
|
27870
27873
|
return /* @__PURE__ */ jsxs(Box, { wFull: !0, maxW: "420px", children: [
|
|
27871
|
-
|
|
27874
|
+
Le && /* @__PURE__ */ jsx$1(
|
|
27872
27875
|
Text$7,
|
|
27873
27876
|
{
|
|
27874
27877
|
fontWeight: 700,
|
|
27875
27878
|
as: "label",
|
|
27876
|
-
color:
|
|
27877
|
-
mb:
|
|
27879
|
+
color: Ct.input.primary.text.label.default,
|
|
27880
|
+
mb: Ct.spacing[2],
|
|
27878
27881
|
display: "inline-block",
|
|
27879
27882
|
fontSize: "14px",
|
|
27880
|
-
|
|
27883
|
+
htmlFor: Be,
|
|
27884
|
+
children: Le
|
|
27881
27885
|
}
|
|
27882
27886
|
),
|
|
27883
27887
|
/* @__PURE__ */ jsxs(Box, { position: "relative", children: [
|
|
27884
27888
|
/* @__PURE__ */ jsx$1(
|
|
27885
27889
|
Input$b,
|
|
27886
27890
|
{
|
|
27887
|
-
|
|
27888
|
-
|
|
27889
|
-
|
|
27890
|
-
|
|
27891
|
-
|
|
27892
|
-
|
|
27891
|
+
id: Be,
|
|
27892
|
+
type: tt,
|
|
27893
|
+
p: Ct.spacing[4],
|
|
27894
|
+
...Et,
|
|
27895
|
+
ref: yt,
|
|
27896
|
+
required: xt,
|
|
27897
|
+
borderColor: nt && Ct.input.primary.border.negative,
|
|
27898
|
+
"data-has-value": !!Et.value && String(Et.value).length > 0,
|
|
27899
|
+
...!Le && Ye ? { "aria-label": Ye } : {},
|
|
27900
|
+
"aria-describedby": bt || void 0,
|
|
27901
|
+
"aria-required": xt ? "true" : void 0,
|
|
27902
|
+
"aria-invalid": nt ? "true" : void 0
|
|
27893
27903
|
}
|
|
27894
27904
|
),
|
|
27895
|
-
(
|
|
27905
|
+
(At == null ? void 0 : At.show) && /* @__PURE__ */ jsx$1(
|
|
27896
27906
|
Box,
|
|
27897
27907
|
{
|
|
27898
27908
|
as: "button",
|
|
27899
27909
|
position: "absolute",
|
|
27900
|
-
right:
|
|
27910
|
+
right: Ct.spacing[6],
|
|
27901
27911
|
top: "50%",
|
|
27902
27912
|
transform: "translateY(-50%)",
|
|
27903
27913
|
backgroundColor: "transparent",
|
|
27904
27914
|
border: "none",
|
|
27905
27915
|
p: 0,
|
|
27906
27916
|
zIndex: 1e4,
|
|
27907
|
-
onClick:
|
|
27917
|
+
onClick: At.onClose,
|
|
27908
27918
|
children: /* @__PURE__ */ jsx$1(XIcon, {})
|
|
27909
27919
|
}
|
|
27910
27920
|
)
|
|
27911
27921
|
] }),
|
|
27912
|
-
|
|
27913
|
-
|
|
27922
|
+
nt && /* @__PURE__ */ jsxs(Flex, { mt: Ct.spacing[2], align: "center", children: [
|
|
27923
|
+
ft && /* @__PURE__ */ jsx$1(Box, { display: "inline-block", mr: Ct.spacing[2], children: /* @__PURE__ */ jsx$1(ErrorIcon$1, { size: "17" }) }),
|
|
27914
27924
|
/* @__PURE__ */ jsx$1(
|
|
27915
27925
|
Text$7,
|
|
27916
27926
|
{
|
|
27927
|
+
id: vt,
|
|
27917
27928
|
display: "inline-block",
|
|
27918
27929
|
as: "p",
|
|
27919
27930
|
my: "auto",
|
|
27920
|
-
color:
|
|
27921
|
-
children:
|
|
27931
|
+
color: Ct.input.primary.text.helper.negative,
|
|
27932
|
+
children: nt
|
|
27922
27933
|
}
|
|
27923
27934
|
)
|
|
27924
27935
|
] }),
|
|
27925
|
-
|
|
27926
|
-
|
|
27936
|
+
ht && /* @__PURE__ */ jsxs(Flex, { mt: Ct.spacing[2], align: "center", children: [
|
|
27937
|
+
gt && /* @__PURE__ */ jsx$1(Box, { display: "inline-block", mr: Ct.spacing[2], children: /* @__PURE__ */ jsx$1(SuccessIcon$1, { size: "17" }) }),
|
|
27927
27938
|
/* @__PURE__ */ jsx$1(
|
|
27928
27939
|
Text$7,
|
|
27929
27940
|
{
|
|
27941
|
+
id: kt,
|
|
27930
27942
|
display: "inline-block",
|
|
27931
27943
|
as: "p",
|
|
27932
27944
|
my: "auto",
|
|
27933
27945
|
fontWeight: 400,
|
|
27934
|
-
color:
|
|
27935
|
-
children:
|
|
27946
|
+
color: Ct.input.primary.text.helper.default,
|
|
27947
|
+
children: ht
|
|
27936
27948
|
}
|
|
27937
27949
|
)
|
|
27938
27950
|
] })
|
|
@@ -28402,11 +28414,11 @@ const isObject$7 = (Be) => typeof Be == "object" && Be !== null && !Array.isArra
|
|
|
28402
28414
|
disabled: Be.gray[300]
|
|
28403
28415
|
},
|
|
28404
28416
|
border: {
|
|
28405
|
-
primary: Be.gray[
|
|
28417
|
+
primary: Be.gray[200],
|
|
28406
28418
|
disabled: Be.gray[300],
|
|
28407
28419
|
focus: Be.gray[500],
|
|
28408
28420
|
accent: Be.brand[500],
|
|
28409
|
-
negative: Be.negative[
|
|
28421
|
+
negative: Be.negative[600],
|
|
28410
28422
|
warning: Be.warn[500],
|
|
28411
28423
|
positive: Be.positive[600]
|
|
28412
28424
|
},
|
|
@@ -28422,7 +28434,7 @@ const isObject$7 = (Be) => typeof Be == "object" && Be !== null && !Array.isArra
|
|
|
28422
28434
|
brandSecondary: Be.brandSecondary[500]
|
|
28423
28435
|
},
|
|
28424
28436
|
status: {
|
|
28425
|
-
negative: Be.negative[
|
|
28437
|
+
negative: Be.negative[600],
|
|
28426
28438
|
warning: Be.warn[500],
|
|
28427
28439
|
positive: Be.positive[600]
|
|
28428
28440
|
}
|
|
@@ -142540,33 +142552,34 @@ const SynchronizedInputGroup = styled.div`
|
|
|
142540
142552
|
]
|
|
142541
142553
|
}
|
|
142542
142554
|
), DateInput = forwardRef(
|
|
142543
|
-
({
|
|
142544
|
-
const
|
|
142545
|
-
|
|
142546
|
-
const
|
|
142547
|
-
if (
|
|
142548
|
-
if (
|
|
142555
|
+
({ id: Be, value: Le, onChange: Ye, label: tt, ...nt }, ft) => {
|
|
142556
|
+
const ht = useRef(null), gt = (At) => {
|
|
142557
|
+
At.preventDefault(), At.stopPropagation();
|
|
142558
|
+
const xt = ht.current;
|
|
142559
|
+
if (xt)
|
|
142560
|
+
if (xt.focus(), "showPicker" in HTMLInputElement.prototype)
|
|
142549
142561
|
try {
|
|
142550
|
-
|
|
142562
|
+
xt.showPicker();
|
|
142551
142563
|
} catch {
|
|
142552
|
-
|
|
142564
|
+
xt.click();
|
|
142553
142565
|
}
|
|
142554
142566
|
else
|
|
142555
|
-
|
|
142567
|
+
xt.click();
|
|
142556
142568
|
};
|
|
142557
142569
|
return /* @__PURE__ */ jsxs(Box, { position: "relative", wFull: !0, maxW: "420px", children: [
|
|
142558
142570
|
/* @__PURE__ */ jsx$1(
|
|
142559
142571
|
InputComposed,
|
|
142560
142572
|
{
|
|
142561
|
-
|
|
142562
|
-
|
|
142573
|
+
id: Be,
|
|
142574
|
+
ref: (At) => {
|
|
142575
|
+
ht.current = At, typeof ft == "function" ? ft(At) : ft && (ft.current = At);
|
|
142563
142576
|
},
|
|
142564
|
-
label:
|
|
142577
|
+
label: tt,
|
|
142565
142578
|
type: "date",
|
|
142566
|
-
value:
|
|
142567
|
-
onChange:
|
|
142568
|
-
"data-has-value": !!
|
|
142569
|
-
...
|
|
142579
|
+
value: Le,
|
|
142580
|
+
onChange: Ye,
|
|
142581
|
+
"data-has-value": !!Le,
|
|
142582
|
+
...nt
|
|
142570
142583
|
}
|
|
142571
142584
|
),
|
|
142572
142585
|
/* @__PURE__ */ jsx$1(
|
|
@@ -142578,8 +142591,8 @@ const SynchronizedInputGroup = styled.div`
|
|
|
142578
142591
|
right: "16px",
|
|
142579
142592
|
top: "65%",
|
|
142580
142593
|
transform: "translateY(-50%)",
|
|
142581
|
-
onClick:
|
|
142582
|
-
onTouchEnd:
|
|
142594
|
+
onClick: gt,
|
|
142595
|
+
onTouchEnd: gt,
|
|
142583
142596
|
style: {
|
|
142584
142597
|
cursor: "pointer",
|
|
142585
142598
|
zIndex: 1,
|
|
@@ -277566,6 +277579,7 @@ const CURP_LENGTH = 18, isValidCurp = (Be) => typeof Be == "string" && Be.length
|
|
|
277566
277579
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
277567
277580
|
InputComposed,
|
|
277568
277581
|
{
|
|
277582
|
+
id: "generated-curp",
|
|
277569
277583
|
label: "",
|
|
277570
277584
|
value: Dt,
|
|
277571
277585
|
readOnly: !0,
|
|
@@ -277602,18 +277616,21 @@ const CURP_LENGTH = 18, isValidCurp = (Be) => typeof Be == "string" && Be.length
|
|
|
277602
277616
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
277603
277617
|
InputComposed,
|
|
277604
277618
|
{
|
|
277619
|
+
id: "first-name",
|
|
277605
277620
|
ref: Nt,
|
|
277606
277621
|
label: ht("curp.labels.firstName"),
|
|
277607
277622
|
placeholder: ht("curp.placeholder.firstName"),
|
|
277608
277623
|
value: gt,
|
|
277609
277624
|
onChange: (zt) => At(zt.target.value),
|
|
277610
277625
|
onKeyDown: (zt) => Gt(zt, Lt),
|
|
277611
|
-
enterKeyHint: "next"
|
|
277626
|
+
enterKeyHint: "next",
|
|
277627
|
+
autoComplete: "given-name"
|
|
277612
277628
|
}
|
|
277613
277629
|
),
|
|
277614
277630
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
277615
277631
|
InputComposed,
|
|
277616
277632
|
{
|
|
277633
|
+
id: "first-last-name",
|
|
277617
277634
|
ref: Lt,
|
|
277618
277635
|
label: ht("curp.labels.firstLast"),
|
|
277619
277636
|
placeholder: ht("curp.placeholder.firstLast"),
|
|
@@ -277626,6 +277643,7 @@ const CURP_LENGTH = 18, isValidCurp = (Be) => typeof Be == "string" && Be.length
|
|
|
277626
277643
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
277627
277644
|
InputComposed,
|
|
277628
277645
|
{
|
|
277646
|
+
id: "second-last-name",
|
|
277629
277647
|
ref: Wt,
|
|
277630
277648
|
label: ht("curp.labels.secondLast"),
|
|
277631
277649
|
placeholder: ht("curp.placeholder.secondLast"),
|
|
@@ -277655,6 +277673,7 @@ const CURP_LENGTH = 18, isValidCurp = (Be) => typeof Be == "string" && Be.length
|
|
|
277655
277673
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
277656
277674
|
DateInput,
|
|
277657
277675
|
{
|
|
277676
|
+
id: "birth-date",
|
|
277658
277677
|
ref: Kt,
|
|
277659
277678
|
label: ht("curp.labels.dob"),
|
|
277660
277679
|
value: bt,
|
|
@@ -277825,6 +277844,7 @@ const CURP_LENGTH = 18, isValidCurp = (Be) => typeof Be == "string" && Be.length
|
|
|
277825
277844
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
277826
277845
|
InputComposed,
|
|
277827
277846
|
{
|
|
277847
|
+
id: "your-curp",
|
|
277828
277848
|
placeholder: nt("curp.placeholder.curp"),
|
|
277829
277849
|
value: ft,
|
|
277830
277850
|
onChange: (wt) => ht(wt.target.value.toUpperCase())
|
|
@@ -354591,20 +354611,21 @@ const CountryWrapper = dt.div`
|
|
|
354591
354611
|
register: nt,
|
|
354592
354612
|
setValue: ft,
|
|
354593
354613
|
trigger: ht,
|
|
354594
|
-
errors: gt
|
|
354614
|
+
errors: gt,
|
|
354615
|
+
optional: At = !1
|
|
354595
354616
|
}) => {
|
|
354596
|
-
var
|
|
354597
|
-
const { t:
|
|
354598
|
-
return Be === "state"
|
|
354617
|
+
var yt, Ct, kt;
|
|
354618
|
+
const { t: xt } = useTranslation$1(), Et = At || OPTIONAL_FIELDS[Be];
|
|
354619
|
+
return Be === "state" ? tt ? /* @__PURE__ */ jsxRuntimeExports.jsx(CountryWrapper, { error: !!((yt = gt == null ? void 0 : gt.state) != null && yt.message), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
354599
354620
|
StateSelector,
|
|
354600
354621
|
{
|
|
354601
354622
|
id: "state",
|
|
354602
|
-
label: (
|
|
354603
|
-
placeholder:
|
|
354604
|
-
searchPlaceholder:
|
|
354623
|
+
label: (Ct = gt == null ? void 0 : gt.state) != null && Ct.message ? (kt = gt == null ? void 0 : gt.state) == null ? void 0 : kt.message : xt("verification.labels.chooseState"),
|
|
354624
|
+
placeholder: xt("common.state.placeholder"),
|
|
354625
|
+
searchPlaceholder: xt("common.state.searchPlaceholder"),
|
|
354605
354626
|
name: "state",
|
|
354606
|
-
onChange: (
|
|
354607
|
-
ft("state",
|
|
354627
|
+
onChange: (vt) => {
|
|
354628
|
+
ft("state", vt), ht("state");
|
|
354608
354629
|
},
|
|
354609
354630
|
value: Ye
|
|
354610
354631
|
},
|
|
@@ -354614,13 +354635,13 @@ const CountryWrapper = dt.div`
|
|
|
354614
354635
|
{
|
|
354615
354636
|
id: Be,
|
|
354616
354637
|
register: nt,
|
|
354617
|
-
onBlur: (
|
|
354618
|
-
ft(Be,
|
|
354638
|
+
onBlur: (vt) => {
|
|
354639
|
+
ft(Be, vt.target.value.trim());
|
|
354619
354640
|
},
|
|
354620
354641
|
registerOpts: {
|
|
354621
|
-
required:
|
|
354642
|
+
required: Et ? "" : xt("ekyb.error.requiredField")
|
|
354622
354643
|
},
|
|
354623
|
-
label:
|
|
354644
|
+
label: xt(`ekyb.${Be}`),
|
|
354624
354645
|
error: formatFieldError(gt[Be])
|
|
354625
354646
|
},
|
|
354626
354647
|
Be
|
|
@@ -354629,18 +354650,18 @@ const CountryWrapper = dt.div`
|
|
|
354629
354650
|
{
|
|
354630
354651
|
id: Be,
|
|
354631
354652
|
register: nt,
|
|
354632
|
-
onBlur: (
|
|
354633
|
-
ft(Be,
|
|
354653
|
+
onBlur: (vt) => {
|
|
354654
|
+
ft(Be, vt.target.value.trim());
|
|
354634
354655
|
},
|
|
354635
354656
|
registerOpts: {
|
|
354636
|
-
required:
|
|
354657
|
+
required: Et ? "" : xt("ekyb.error.requiredField"),
|
|
354637
354658
|
pattern: Be === "taxId" && !COUNTRIES_WITH_CNPJ_VALIDATION.includes(Le) && !COUNTRIES_WITH_SPECIAL_TAX_ID_RULES.includes(Le) ? {
|
|
354638
354659
|
value: /^[a-zA-Z0-9]+$/,
|
|
354639
|
-
message:
|
|
354660
|
+
message: xt("ekyb.error.taxId")
|
|
354640
354661
|
} : void 0,
|
|
354641
|
-
validate: Be === "taxId" && COUNTRIES_WITH_CNPJ_VALIDATION.includes(Le) ? (
|
|
354662
|
+
validate: Be === "taxId" && COUNTRIES_WITH_CNPJ_VALIDATION.includes(Le) ? (vt) => validateCnpjNumber(vt) || "ekyb.error.invalidTaxId" : void 0
|
|
354642
354663
|
},
|
|
354643
|
-
label:
|
|
354664
|
+
label: xt(`ekyb.${Be}`),
|
|
354644
354665
|
error: formatFieldError(gt[Be])
|
|
354645
354666
|
},
|
|
354646
354667
|
Be
|
|
@@ -354648,35 +354669,36 @@ const CountryWrapper = dt.div`
|
|
|
354648
354669
|
}, UboInputs = ({
|
|
354649
354670
|
uboCount: Be,
|
|
354650
354671
|
register: Le,
|
|
354651
|
-
errors: Ye
|
|
354672
|
+
errors: Ye,
|
|
354673
|
+
optional: tt = !1
|
|
354652
354674
|
}) => {
|
|
354653
|
-
const { t:
|
|
354654
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: Array.from({ length: Be }).map((
|
|
354675
|
+
const { t: nt } = useTranslation$1();
|
|
354676
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: Array.from({ length: Be }).map((ft, ht) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
354655
354677
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
354656
354678
|
Input$4,
|
|
354657
354679
|
{
|
|
354658
|
-
id: `uboName-${
|
|
354680
|
+
id: `uboName-${ht + 1}`,
|
|
354659
354681
|
register: Le,
|
|
354660
|
-
label:
|
|
354661
|
-
error: formatFieldError(Ye[`uboName-${
|
|
354682
|
+
label: ht === 0 ? nt("ekyb.uboName") : nt("ekyb.uboNameWithNumber", { number: ht + 1 }),
|
|
354683
|
+
error: formatFieldError(Ye[`uboName-${ht + 1}`]),
|
|
354662
354684
|
registerOpts: {
|
|
354663
|
-
required:
|
|
354685
|
+
required: ht === 0 && !tt ? nt("ekyb.error.requiredField") : ""
|
|
354664
354686
|
}
|
|
354665
354687
|
}
|
|
354666
354688
|
),
|
|
354667
354689
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
354668
354690
|
Input$4,
|
|
354669
354691
|
{
|
|
354670
|
-
id: `uboSurname-${
|
|
354692
|
+
id: `uboSurname-${ht + 1}`,
|
|
354671
354693
|
register: Le,
|
|
354672
|
-
label:
|
|
354673
|
-
error: formatFieldError(Ye[`uboSurname-${
|
|
354694
|
+
label: ht === 0 ? nt("ekyb.uboSurname") : nt("ekyb.uboSurnameWithNumber", { number: ht + 1 }),
|
|
354695
|
+
error: formatFieldError(Ye[`uboSurname-${ht + 1}`]),
|
|
354674
354696
|
registerOpts: {
|
|
354675
|
-
required:
|
|
354697
|
+
required: ht === 0 && !tt ? nt("ekyb.error.requiredField") : ""
|
|
354676
354698
|
}
|
|
354677
354699
|
}
|
|
354678
354700
|
)
|
|
354679
|
-
] }, `ubo-${
|
|
354701
|
+
] }, `ubo-${ht + 1}`)) });
|
|
354680
354702
|
}, useUboManagement = () => {
|
|
354681
354703
|
const [Be, Le] = useState(1);
|
|
354682
354704
|
return {
|
|
@@ -354798,7 +354820,7 @@ const sharedStyle$1 = lt`
|
|
|
354798
354820
|
flow: Ye,
|
|
354799
354821
|
token: tt
|
|
354800
354822
|
}) => {
|
|
354801
|
-
var
|
|
354823
|
+
var $t;
|
|
354802
354824
|
const [nt, ft] = useState(
|
|
354803
354825
|
VERIFICATION_STATES.IDLE
|
|
354804
354826
|
), { uboCount: ht, handleAddUbo: gt, extractUboNames: At } = useUboManagement(), {
|
|
@@ -354834,27 +354856,25 @@ const sharedStyle$1 = lt`
|
|
|
354834
354856
|
screen: "EKYB",
|
|
354835
354857
|
token: tt
|
|
354836
354858
|
});
|
|
354837
|
-
const Dt = Le ? Le.filter((
|
|
354838
|
-
(
|
|
354839
|
-
)
|
|
354840
|
-
|
|
354841
|
-
|
|
354842
|
-
|
|
354843
|
-
const $t = At(Wt), Kt = {
|
|
354844
|
-
...Wt,
|
|
354859
|
+
const Dt = Le ? Le.filter((Kt) => Kt === "ubos-user_input" ? (wt = !0, !1) : !0) : ($t = Ye == null ? void 0 : Ye.modules) == null ? void 0 : $t.filter(
|
|
354860
|
+
(Kt) => Kt.includes("user_input") && !Kt.includes("socure") && Kt !== "ubos-user_input"
|
|
354861
|
+
), Pt = sortModulesByOrder(Dt || [], FIELD_ORDER), Nt = async (Kt) => {
|
|
354862
|
+
ft(VERIFICATION_STATES.VERIFYING);
|
|
354863
|
+
const Vt = At(Kt), Ut = {
|
|
354864
|
+
...Kt,
|
|
354845
354865
|
plugins: ["ekyb"],
|
|
354846
|
-
uboNames:
|
|
354866
|
+
uboNames: Vt
|
|
354847
354867
|
};
|
|
354848
354868
|
try {
|
|
354849
354869
|
await sendEkyb({
|
|
354850
354870
|
token: tt,
|
|
354851
|
-
body:
|
|
354871
|
+
body: Ut
|
|
354852
354872
|
}), ft(VERIFICATION_STATES.SUCCESS);
|
|
354853
354873
|
} catch {
|
|
354854
354874
|
ft(VERIFICATION_STATES.FAILED);
|
|
354855
354875
|
}
|
|
354856
354876
|
Be();
|
|
354857
|
-
};
|
|
354877
|
+
}, Lt = Tt === "GB", Wt = Tt === "GB";
|
|
354858
354878
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(VerificationContainer, { children: [
|
|
354859
354879
|
/* @__PURE__ */ jsxRuntimeExports.jsx(InformationVerificationTitle, { children: It("ekyb.title") }),
|
|
354860
354880
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
@@ -354871,24 +354891,33 @@ const sharedStyle$1 = lt`
|
|
|
354871
354891
|
errors: yt
|
|
354872
354892
|
}
|
|
354873
354893
|
),
|
|
354874
|
-
Pt.map((
|
|
354875
|
-
const
|
|
354894
|
+
Pt.map((Kt) => {
|
|
354895
|
+
const Vt = getFieldName(Kt);
|
|
354876
354896
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
354877
354897
|
FieldInput,
|
|
354878
354898
|
{
|
|
354879
|
-
name:
|
|
354899
|
+
name: Vt,
|
|
354880
354900
|
country: Tt,
|
|
354881
354901
|
state: Rt,
|
|
354882
354902
|
isUnitedStates: Bt,
|
|
354883
354903
|
register: xt,
|
|
354884
354904
|
setValue: Ct,
|
|
354885
354905
|
trigger: vt,
|
|
354886
|
-
errors: yt
|
|
354906
|
+
errors: yt,
|
|
354907
|
+
optional: Wt
|
|
354887
354908
|
},
|
|
354888
|
-
|
|
354909
|
+
Vt
|
|
354889
354910
|
);
|
|
354890
354911
|
}),
|
|
354891
|
-
wt && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
354912
|
+
wt && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
354913
|
+
UboInputs,
|
|
354914
|
+
{
|
|
354915
|
+
uboCount: ht,
|
|
354916
|
+
register: xt,
|
|
354917
|
+
errors: yt,
|
|
354918
|
+
optional: Lt
|
|
354919
|
+
}
|
|
354920
|
+
),
|
|
354892
354921
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(ButtonsContainer$1, { children: [
|
|
354893
354922
|
wt && ht < UBO_INPUT_LIMIT ? /* @__PURE__ */ jsxRuntimeExports.jsx(UBOButton, { type: "button", onClick: gt, children: It("ekyb.addAnotherUbo") }) : null,
|
|
354894
354923
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
@@ -355992,6 +356021,7 @@ function Email$1({ onSuccess: Be, token: Le, otpVerification: Ye }) {
|
|
|
355992
356021
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
355993
356022
|
InputComposed,
|
|
355994
356023
|
{
|
|
356024
|
+
id: "email",
|
|
355995
356025
|
error: ht,
|
|
355996
356026
|
type: "email",
|
|
355997
356027
|
value: Et,
|