@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.
@@ -12,6 +12,7 @@ interface FieldInputProps {
12
12
  errors: {
13
13
  [key: string]: FieldError;
14
14
  };
15
+ optional?: boolean;
15
16
  }
16
17
  export declare const FieldInput: React.FC<FieldInputProps>;
17
18
  export {};
@@ -7,6 +7,7 @@ interface UboInputsProps {
7
7
  errors: {
8
8
  [key: string]: FieldError;
9
9
  };
10
+ optional?: boolean;
10
11
  }
11
12
  export declare const UboInputs: React.FC<UboInputsProps>;
12
13
  export {};
@@ -8350,7 +8350,7 @@ class MlWasmJSApi {
8350
8350
  );
8351
8351
  }
8352
8352
  }
8353
- const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251215155839.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
- label: Be,
27861
- type: Le,
27862
- error: Ye,
27863
- showErrorIcon: tt,
27864
- helper: nt,
27865
- showHelperIcon: ft,
27866
- closeButton: ht,
27867
- ...gt
27868
- }, At) => {
27869
- const xt = useTokens();
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
- Be && /* @__PURE__ */ jsx$1(
27874
+ Le && /* @__PURE__ */ jsx$1(
27872
27875
  Text$7,
27873
27876
  {
27874
27877
  fontWeight: 700,
27875
27878
  as: "label",
27876
- color: xt.input.primary.text.label.default,
27877
- mb: xt.spacing[2],
27879
+ color: Ct.input.primary.text.label.default,
27880
+ mb: Ct.spacing[2],
27878
27881
  display: "inline-block",
27879
27882
  fontSize: "14px",
27880
- children: Be
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
- type: Le,
27888
- p: xt.spacing[4],
27889
- ...gt,
27890
- ref: At,
27891
- borderColor: Ye && xt.input.primary.border.negative,
27892
- "data-has-value": !!gt.value && String(gt.value).length > 0
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
- (ht == null ? void 0 : ht.show) && /* @__PURE__ */ jsx$1(
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: xt.spacing[6],
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: ht.onClose,
27917
+ onClick: At.onClose,
27908
27918
  children: /* @__PURE__ */ jsx$1(XIcon, {})
27909
27919
  }
27910
27920
  )
27911
27921
  ] }),
27912
- Ye && /* @__PURE__ */ jsxs(Flex, { mt: xt.spacing[2], align: "center", children: [
27913
- tt && /* @__PURE__ */ jsx$1(Box, { display: "inline-block", mr: xt.spacing[2], children: /* @__PURE__ */ jsx$1(ErrorIcon$1, { size: "17" }) }),
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: xt.input.primary.text.helper.negative,
27921
- children: Ye
27931
+ color: Ct.input.primary.text.helper.negative,
27932
+ children: nt
27922
27933
  }
27923
27934
  )
27924
27935
  ] }),
27925
- nt && /* @__PURE__ */ jsxs(Flex, { mt: xt.spacing[2], align: "center", children: [
27926
- ft && /* @__PURE__ */ jsx$1(Box, { display: "inline-block", mr: xt.spacing[2], children: /* @__PURE__ */ jsx$1(SuccessIcon$1, { size: "17" }) }),
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: xt.input.primary.text.helper.default,
27935
- children: nt
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[100],
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[500],
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[500],
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
- ({ value: Be, onChange: Le, label: Ye, ...tt }, nt) => {
142544
- const ft = useRef(null), ht = (gt) => {
142545
- gt.preventDefault(), gt.stopPropagation();
142546
- const At = ft.current;
142547
- if (At)
142548
- if (At.focus(), "showPicker" in HTMLInputElement.prototype)
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
- At.showPicker();
142562
+ xt.showPicker();
142551
142563
  } catch {
142552
- At.click();
142564
+ xt.click();
142553
142565
  }
142554
142566
  else
142555
- At.click();
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
- ref: (gt) => {
142562
- ft.current = gt, typeof nt == "function" ? nt(gt) : nt && (nt.current = gt);
142573
+ id: Be,
142574
+ ref: (At) => {
142575
+ ht.current = At, typeof ft == "function" ? ft(At) : ft && (ft.current = At);
142563
142576
  },
142564
- label: Ye,
142577
+ label: tt,
142565
142578
  type: "date",
142566
- value: Be,
142567
- onChange: Le,
142568
- "data-has-value": !!Be,
142569
- ...tt
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: ht,
142582
- onTouchEnd: ht,
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 xt, Et, yt;
354597
- const { t: At } = useTranslation$1();
354598
- return Be === "state" && console.info("State errors:", gt[Be]), Be === "state" ? tt ? /* @__PURE__ */ jsxRuntimeExports.jsx(CountryWrapper, { error: !!((xt = gt == null ? void 0 : gt.state) != null && xt.message), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
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: (Et = gt == null ? void 0 : gt.state) != null && Et.message ? (yt = gt == null ? void 0 : gt.state) == null ? void 0 : yt.message : At("verification.labels.chooseState"),
354603
- placeholder: At("common.state.placeholder"),
354604
- searchPlaceholder: At("common.state.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: (Ct) => {
354607
- ft("state", Ct), ht("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: (Ct) => {
354618
- ft(Be, Ct.target.value.trim());
354638
+ onBlur: (vt) => {
354639
+ ft(Be, vt.target.value.trim());
354619
354640
  },
354620
354641
  registerOpts: {
354621
- required: OPTIONAL_FIELDS[Be] ? "" : At("ekyb.error.requiredField")
354642
+ required: Et ? "" : xt("ekyb.error.requiredField")
354622
354643
  },
354623
- label: At(`ekyb.${Be}`),
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: (Ct) => {
354633
- ft(Be, Ct.target.value.trim());
354653
+ onBlur: (vt) => {
354654
+ ft(Be, vt.target.value.trim());
354634
354655
  },
354635
354656
  registerOpts: {
354636
- required: OPTIONAL_FIELDS[Be] ? "" : At("ekyb.error.requiredField"),
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: At("ekyb.error.taxId")
354660
+ message: xt("ekyb.error.taxId")
354640
354661
  } : void 0,
354641
- validate: Be === "taxId" && COUNTRIES_WITH_CNPJ_VALIDATION.includes(Le) ? (Ct) => validateCnpjNumber(Ct) || "ekyb.error.invalidTaxId" : void 0
354662
+ validate: Be === "taxId" && COUNTRIES_WITH_CNPJ_VALIDATION.includes(Le) ? (vt) => validateCnpjNumber(vt) || "ekyb.error.invalidTaxId" : void 0
354642
354663
  },
354643
- label: At(`ekyb.${Be}`),
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: tt } = useTranslation$1();
354654
- return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: Array.from({ length: Be }).map((nt, ft) => /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
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-${ft + 1}`,
354680
+ id: `uboName-${ht + 1}`,
354659
354681
  register: Le,
354660
- label: ft === 0 ? tt("ekyb.uboName") : tt("ekyb.uboNameWithNumber", { number: ft + 1 }),
354661
- error: formatFieldError(Ye[`uboName-${ft + 1}`]),
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: ft === 0 ? tt("ekyb.error.requiredField") : ""
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-${ft + 1}`,
354692
+ id: `uboSurname-${ht + 1}`,
354671
354693
  register: Le,
354672
- label: ft === 0 ? tt("ekyb.uboSurname") : tt("ekyb.uboSurnameWithNumber", { number: ft + 1 }),
354673
- error: formatFieldError(Ye[`uboSurname-${ft + 1}`]),
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: ft === 0 ? tt("ekyb.error.requiredField") : ""
354697
+ required: ht === 0 && !tt ? nt("ekyb.error.requiredField") : ""
354676
354698
  }
354677
354699
  }
354678
354700
  )
354679
- ] }, `ubo-${ft + 1}`)) });
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 Lt;
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((Wt) => Wt === "ubos-user_input" ? (wt = !0, !1) : !0) : (Lt = Ye == null ? void 0 : Ye.modules) == null ? void 0 : Lt.filter(
354838
- (Wt) => Wt.includes("user_input") && !Wt.includes("socure") && Wt !== "ubos-user_input"
354839
- );
354840
- console.log("modules", Dt);
354841
- const Pt = sortModulesByOrder(Dt || [], FIELD_ORDER), Nt = async (Wt) => {
354842
- console.log("data here pls jaja", Wt), ft(VERIFICATION_STATES.VERIFYING);
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: $t
354866
+ uboNames: Vt
354847
354867
  };
354848
354868
  try {
354849
354869
  await sendEkyb({
354850
354870
  token: tt,
354851
- body: Kt
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((Wt) => {
354875
- const $t = getFieldName(Wt);
354894
+ Pt.map((Kt) => {
354895
+ const Vt = getFieldName(Kt);
354876
354896
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
354877
354897
  FieldInput,
354878
354898
  {
354879
- name: $t,
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
- $t
354909
+ Vt
354889
354910
  );
354890
354911
  }),
354891
- wt && /* @__PURE__ */ jsxRuntimeExports.jsx(UboInputs, { uboCount: ht, register: xt, errors: yt }),
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,