@incodetech/welcome 1.85.0-20251103184219.0 → 1.85.0-20251103200526.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.
@@ -8372,7 +8372,7 @@ class MlWasmJSApi {
8372
8372
  );
8373
8373
  }
8374
8374
  }
8375
- const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251103184219.0";
8375
+ const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251103200526.0";
8376
8376
  function e$2(Be, Le) {
8377
8377
  return function(Ye, tt) {
8378
8378
  return Object.prototype.hasOwnProperty.call(Ye, tt);
@@ -26573,7 +26573,7 @@ const FlexCenter = (Be) => /* @__PURE__ */ jsx$1(Flex, { justify: "center", alig
26573
26573
  -webkit-appearance: none;
26574
26574
  -moz-appearance: textfield;
26575
26575
  color: ${(Be) => Be.color || Be.tokens.input.primary.text.field.default};
26576
- padding-right: ${(Be) => Be.tokens.spacing[9] || "44px"}; /* make room for your icon */
26576
+ padding-right: ${(Be) => Be.tokens.spacing[9] || "44px"};
26577
26577
  min-height: 57px;
26578
26578
  }
26579
26579
  &[type='date']::-webkit-calendar-picker-indicator {
@@ -26590,6 +26590,7 @@ const FlexCenter = (Be) => /* @__PURE__ */ jsx$1(Flex, { justify: "center", alig
26590
26590
  &[type='date']:focus,
26591
26591
  &[type='date'][data-has-value='true'] {
26592
26592
  color: ${(Be) => Be.color || Be.tokens.input.primary.text.field.default};
26593
+ outline-color: #3db0f7 !important;
26593
26594
  }
26594
26595
  `, Input$c = forwardRef(
26595
26596
  (Be, Le) => {
@@ -27766,161 +27767,185 @@ const FlexCenter = (Be) => /* @__PURE__ */ jsx$1(Flex, { justify: "center", alig
27766
27767
  helper: ht,
27767
27768
  showErrorIcon: gt,
27768
27769
  showHelperIcon: At,
27769
- enterKeyHint: xt,
27770
- tabIndex: yt,
27771
- onKeyDown: Ct
27770
+ tabIndex: xt,
27771
+ onKeyDown: yt,
27772
+ enterKeyHint: Ct
27772
27773
  }, Et) => {
27773
- const vt = useTokens(), [kt, bt] = useState(!1), wt = useRef(null), It = useRef(null), Tt = useRef(
27774
- null
27775
- ), Rt = nt.find((Dt) => Dt.value === Ye);
27776
- useEffect(() => {
27777
- const Dt = (Ot) => {
27778
- wt.current && !wt.current.contains(Ot.target) && bt(!1);
27779
- };
27780
- return document.addEventListener("mousedown", Dt), document.addEventListener("touchstart", Dt), () => {
27781
- document.removeEventListener("mousedown", Dt), document.removeEventListener("touchstart", Dt);
27782
- };
27783
- }, []);
27784
- const Bt = () => {
27785
- bt(!kt);
27786
- }, Pt = (Dt) => {
27787
- tt == null || tt(Dt), bt(!1);
27774
+ const vt = useTokens(), [kt, bt] = useState(!1), [wt, It] = useState(!1), Tt = useRef(null), Rt = useRef(null), Bt = useRef(null);
27775
+ useImperativeHandle(Et, () => Rt.current), useEffect(() => {
27776
+ kt && Bt.current && setTimeout(() => {
27777
+ var $t;
27778
+ ($t = Bt.current) == null || $t.scrollIntoView({
27779
+ behavior: "smooth",
27780
+ block: "nearest",
27781
+ inline: "nearest"
27782
+ });
27783
+ }, 100);
27784
+ }, [kt]);
27785
+ const Pt = nt.find(($t) => $t.value === Ye), Dt = () => {
27786
+ bt(($t) => !$t);
27787
+ }, Ot = ($t) => {
27788
+ tt == null || tt($t), bt(!1);
27789
+ }, Lt = () => {
27790
+ It(!0);
27788
27791
  };
27789
- return /* @__PURE__ */ jsxs(Box, { wFull: !0, maxW: "420px", ref: wt, position: "relative", children: [
27790
- Be && /* @__PURE__ */ jsx$1(
27791
- Text$8,
27792
- {
27793
- fontWeight: 700,
27794
- as: "label",
27795
- color: vt.input.primary.text.label.default,
27796
- mb: vt.spacing[2],
27797
- display: "inline-block",
27798
- fontSize: "14px",
27799
- children: Be
27800
- }
27801
- ),
27802
- /* @__PURE__ */ jsxs(Box, { position: "relative", children: [
27803
- /* @__PURE__ */ jsxs(Flex, { wFull: !0, position: "relative", align: "center", children: [
27804
- /* @__PURE__ */ jsx$1(
27805
- Box,
27792
+ return /* @__PURE__ */ jsxs(
27793
+ Box,
27794
+ {
27795
+ wFull: !0,
27796
+ maxW: "420px",
27797
+ ref: Tt,
27798
+ position: "relative",
27799
+ onBlur: ($t) => {
27800
+ var qt;
27801
+ It(!1), (qt = Tt.current) != null && qt.contains($t.relatedTarget) || bt(!1);
27802
+ },
27803
+ children: [
27804
+ Be && /* @__PURE__ */ jsx$1(
27805
+ Text$8,
27806
27806
  {
27807
- as: "input",
27808
- ref: (Dt) => {
27809
- Tt.current = Dt, typeof Et == "function" ? Et(Dt) : Et && (Et.current = Dt);
27810
- },
27811
- type: "text",
27812
- readOnly: !0,
27813
- value: (Rt == null ? void 0 : Rt.label) || "",
27814
- placeholder: Le,
27815
- wFull: !0,
27816
- p: vt.spacing[4],
27817
- pr: "48px",
27818
- backgroundColor: ft ? void 0 : vt.input.primary.surface.default,
27819
- borderWidth: "1px",
27820
- borderColor: ft ? vt.input.primary.border.negative : vt.input.primary.border.default,
27821
- borderRadius: vt.spacing[2],
27822
- onClick: Bt,
27823
- onKeyDown: Ct,
27824
- color: Rt ? vt.input.primary.text.field.default : vt.input.primary.text.field.placeholder,
27825
- fontSize: vt.typography.fontSize.lg,
27826
- enterKeyHint: xt,
27827
- tabIndex: yt,
27828
- style: {
27829
- cursor: "pointer"
27830
- }
27807
+ fontWeight: 700,
27808
+ as: "label",
27809
+ color: vt.input.primary.text.label.default,
27810
+ mb: vt.spacing[2],
27811
+ display: "inline-block",
27812
+ fontSize: "14px",
27813
+ children: Be
27831
27814
  }
27832
27815
  ),
27833
- /* @__PURE__ */ jsx$1(
27834
- Box,
27835
- {
27836
- position: "absolute",
27837
- right: vt.spacing[4],
27838
- display: "flex",
27839
- align: "center",
27840
- onClick: Bt,
27841
- style: {
27842
- cursor: "pointer"
27843
- },
27844
- children: kt ? /* @__PURE__ */ jsx$1(UpArrow, {}) : /* @__PURE__ */ jsx$1(DownArrow, {})
27845
- }
27846
- )
27847
- ] }),
27848
- kt && /* @__PURE__ */ jsx$1(
27849
- Flex,
27850
- {
27851
- as: "ul",
27852
- position: "absolute",
27853
- top: "100%",
27854
- left: "0",
27855
- right: "0",
27856
- zIndex: 10,
27857
- direction: "column",
27858
- backgroundColor: vt.input.primary.surface.default,
27859
- borderWidth: "1px",
27860
- borderColor: ft ? vt.input.primary.border.negative : vt.input.primary.border.default,
27861
- overflow: "scroll",
27862
- ref: It,
27863
- maxH: "320px",
27864
- mt: "8px",
27865
- borderRadius: vt.spacing[2],
27866
- children: nt.map((Dt) => {
27867
- const Ot = Ye === Dt.value;
27868
- return /* @__PURE__ */ jsx$1(
27869
- Flex,
27870
- {
27871
- as: "li",
27872
- p: vt.spacing[4],
27873
- backgroundColor: Ot ? vt.color.surface.secondary[100] : "transparent",
27874
- onClick: () => Pt(Dt.value),
27875
- onMouseEnter: (Lt) => {
27876
- Ot || (Lt.currentTarget.style.backgroundColor = vt.color.surface.secondary[50]);
27877
- },
27878
- onMouseLeave: (Lt) => {
27879
- Ot || (Lt.currentTarget.style.backgroundColor = "transparent");
27880
- },
27881
- children: /* @__PURE__ */ jsx$1(
27816
+ /* @__PURE__ */ jsxs(Box, { position: "relative", children: [
27817
+ /* @__PURE__ */ jsxs(
27818
+ "button",
27819
+ {
27820
+ ref: Rt,
27821
+ type: "button",
27822
+ onClick: Dt,
27823
+ onFocus: Lt,
27824
+ onKeyDown: yt,
27825
+ tabIndex: xt ?? 0,
27826
+ "aria-haspopup": "listbox",
27827
+ "aria-expanded": kt,
27828
+ style: {
27829
+ width: "100%",
27830
+ position: "relative",
27831
+ display: "flex",
27832
+ alignItems: "center",
27833
+ padding: vt.spacing[4],
27834
+ paddingRight: "48px",
27835
+ backgroundColor: ft ? "transparent" : wt ? vt.input.primary.surface.active : vt.input.primary.surface.default,
27836
+ border: `1px solid ${ft ? vt.input.primary.border.negative : wt ? "transparent" : vt.input.primary.border.default}`,
27837
+ borderRadius: vt.spacing[2],
27838
+ fontSize: vt.typography.fontSize.lg,
27839
+ color: vt.input.primary.text.field.default,
27840
+ cursor: "pointer",
27841
+ userSelect: "none",
27842
+ textAlign: "left",
27843
+ fontFamily: "inherit",
27844
+ outline: wt ? "2px solid #3db0f7" : "none",
27845
+ outlineOffset: wt ? "2px" : "0"
27846
+ },
27847
+ children: [
27848
+ /* @__PURE__ */ jsx$1(
27882
27849
  Text$8,
27883
27850
  {
27884
- color: vt.input.primary.text.field.default,
27851
+ color: Pt ? vt.input.primary.text.field.default : vt.input.primary.text.field.placeholder,
27885
27852
  fontSize: vt.typography.fontSize.lg,
27886
- children: Dt.label
27853
+ children: (Pt == null ? void 0 : Pt.label) || Le
27854
+ }
27855
+ ),
27856
+ /* @__PURE__ */ jsx$1(
27857
+ Box,
27858
+ {
27859
+ position: "absolute",
27860
+ right: vt.spacing[4],
27861
+ display: "flex",
27862
+ align: "center",
27863
+ style: { pointerEvents: "none" },
27864
+ children: kt ? /* @__PURE__ */ jsx$1(UpArrow, {}) : /* @__PURE__ */ jsx$1(DownArrow, {})
27887
27865
  }
27888
27866
  )
27867
+ ]
27868
+ }
27869
+ ),
27870
+ kt && /* @__PURE__ */ jsx$1(
27871
+ Box,
27872
+ {
27873
+ ref: Bt,
27874
+ position: "absolute",
27875
+ top: "100%",
27876
+ left: "0",
27877
+ right: "0",
27878
+ zIndex: 10,
27879
+ backgroundColor: vt.input.primary.surface.default,
27880
+ borderWidth: "1px",
27881
+ borderColor: ft ? vt.input.primary.border.negative : vt.input.primary.border.default,
27882
+ borderRadius: vt.spacing[2],
27883
+ mt: "8px",
27884
+ maxH: "320px",
27885
+ overflow: "auto",
27886
+ style: {
27887
+ boxShadow: "0 4px 6px rgba(0, 0, 0, 0.1)"
27889
27888
  },
27890
- Dt.value
27891
- );
27892
- })
27893
- }
27894
- )
27895
- ] }),
27896
- ft && /* @__PURE__ */ jsxs(Flex, { mt: vt.spacing[2], align: "center", children: [
27897
- gt && /* @__PURE__ */ jsx$1(Box, { display: "inline-block", mr: vt.spacing[2], children: /* @__PURE__ */ jsx$1(ErrorIcon$1, { size: "17" }) }),
27898
- /* @__PURE__ */ jsx$1(
27899
- Text$8,
27900
- {
27901
- display: "inline-block",
27902
- as: "p",
27903
- my: "auto",
27904
- color: vt.input.primary.text.helper.negative,
27905
- children: ft
27906
- }
27907
- )
27908
- ] }),
27909
- ht && /* @__PURE__ */ jsxs(Flex, { mt: vt.spacing[2], align: "center", children: [
27910
- At && /* @__PURE__ */ jsx$1(Box, { display: "inline-block", mr: vt.spacing[2], children: /* @__PURE__ */ jsx$1(SuccessIcon$1, { size: "17" }) }),
27911
- /* @__PURE__ */ jsx$1(
27912
- Text$8,
27913
- {
27914
- display: "inline-block",
27915
- as: "p",
27916
- my: "auto",
27917
- fontWeight: 400,
27918
- color: vt.input.primary.text.helper.default,
27919
- children: ht
27920
- }
27921
- )
27922
- ] })
27923
- ] });
27889
+ children: nt.map(($t) => /* @__PURE__ */ jsx$1(
27890
+ Box,
27891
+ {
27892
+ p: vt.spacing[4],
27893
+ onClick: () => Ot($t.value),
27894
+ onMouseDown: (qt) => qt.preventDefault(),
27895
+ style: {
27896
+ cursor: "pointer",
27897
+ backgroundColor: Ye === $t.value ? vt.color.surface.secondary[100] : "transparent"
27898
+ },
27899
+ onMouseEnter: (qt) => {
27900
+ Ye !== $t.value && (qt.currentTarget.style.backgroundColor = vt.color.surface.secondary[50]);
27901
+ },
27902
+ onMouseLeave: (qt) => {
27903
+ Ye !== $t.value && (qt.currentTarget.style.backgroundColor = "transparent");
27904
+ },
27905
+ children: /* @__PURE__ */ jsx$1(
27906
+ Text$8,
27907
+ {
27908
+ color: vt.input.primary.text.field.default,
27909
+ fontSize: vt.typography.fontSize.lg,
27910
+ children: $t.label
27911
+ }
27912
+ )
27913
+ },
27914
+ $t.value
27915
+ ))
27916
+ }
27917
+ )
27918
+ ] }),
27919
+ ft && /* @__PURE__ */ jsxs(Flex, { mt: vt.spacing[2], align: "center", children: [
27920
+ gt && /* @__PURE__ */ jsx$1(Box, { display: "inline-block", mr: vt.spacing[2], children: /* @__PURE__ */ jsx$1(ErrorIcon$1, { size: "17" }) }),
27921
+ /* @__PURE__ */ jsx$1(
27922
+ Text$8,
27923
+ {
27924
+ display: "inline-block",
27925
+ as: "p",
27926
+ my: "auto",
27927
+ color: vt.input.primary.text.helper.negative,
27928
+ children: ft
27929
+ }
27930
+ )
27931
+ ] }),
27932
+ ht && /* @__PURE__ */ jsxs(Flex, { mt: vt.spacing[2], align: "center", children: [
27933
+ At && /* @__PURE__ */ jsx$1(Box, { display: "inline-block", mr: vt.spacing[2], children: /* @__PURE__ */ jsx$1(SuccessIcon$1, { size: "17" }) }),
27934
+ /* @__PURE__ */ jsx$1(
27935
+ Text$8,
27936
+ {
27937
+ display: "inline-block",
27938
+ as: "p",
27939
+ my: "auto",
27940
+ fontWeight: 400,
27941
+ color: vt.input.primary.text.helper.default,
27942
+ children: ht
27943
+ }
27944
+ )
27945
+ ] })
27946
+ ]
27947
+ }
27948
+ );
27924
27949
  }
27925
27950
  ), Subtitle$6 = ({ children: Be, ...Le }) => {
27926
27951
  const Ye = useTokens();
@@ -150309,42 +150334,29 @@ const SynchronizedInputGroup = styled.div`
150309
150334
  }
150310
150335
  ), DateInput = forwardRef(
150311
150336
  ({ value: Be, onChange: Le, label: Ye, ...tt }, nt) => {
150312
- const ft = useRef(null), ht = () => {
150313
- var gt, At;
150314
- (gt = ft.current) != null && gt.showPicker ? ft.current.showPicker() : (At = ft.current) == null || At.focus();
150315
- };
150337
+ const ft = useRef(null);
150316
150338
  return /* @__PURE__ */ jsxs(Box, { position: "relative", wFull: !0, maxW: "420px", children: [
150317
150339
  /* @__PURE__ */ jsx$1(
150318
150340
  InputComposed,
150319
150341
  {
150320
- ref: (gt) => {
150321
- ft.current = gt, typeof nt == "function" ? nt(gt) : nt && (nt.current = gt);
150342
+ ref: (ht) => {
150343
+ ft.current = ht, typeof nt == "function" ? nt(ht) : nt && (nt.current = ht);
150322
150344
  },
150323
- className: "ds-date-input",
150324
150345
  label: Ye,
150325
150346
  type: "date",
150326
150347
  value: Be,
150327
150348
  onChange: Le,
150328
- style: { paddingRight: "44px" },
150329
150349
  ...tt
150330
150350
  }
150331
150351
  ),
150332
150352
  /* @__PURE__ */ jsx$1(
150333
150353
  Box,
150334
150354
  {
150335
- as: "button",
150336
- type: "button",
150337
- onClick: ht,
150338
150355
  position: "absolute",
150339
150356
  right: "16px",
150340
150357
  top: "65%",
150341
150358
  transform: "translateY(-50%)",
150342
- background: "transparent",
150343
- border: "none",
150344
- p: 0,
150345
- cursor: "pointer",
150346
- "aria-label": "Open date picker",
150347
- style: { zIndex: 1 },
150359
+ style: { pointerEvents: "none", zIndex: 1 },
150348
150360
  children: /* @__PURE__ */ jsx$1(CalendarIcon, {})
150349
150361
  }
150350
150362
  )
@@ -205153,7 +205165,7 @@ const idHorizontalFrame = "644650346f9f47edf1ca6b31", idVerticalFixedFrame = "64
205153
205165
  var Le, Ye, tt, nt, ft, ht, gt, At, xt, yt, Ct, Et, vt, kt;
205154
205166
  return this.captureConfig ? {
205155
205167
  showTutorial: this.captureConfig.showTutorial,
205156
- captureAttempts: this.captureConfig.captureAttempts,
205168
+ captureAttempts: this.captureConfig.captureAttempts ?? 3,
205157
205169
  enableIdRecording: this.captureConfig.enableIdRecording,
205158
205170
  autoCaptureTimeout: this.captureConfig.autoCaptureTimeout * 1e3,
205159
205171
  enablePassport: this.captureConfig.enablePassport,
@@ -205321,7 +205333,7 @@ class IdFlowManager extends AbstractFlowManager {
205321
205333
  if (Le)
205322
205334
  return {
205323
205335
  showTutorial: Le.showTutorial,
205324
- captureAttempts: Le.captureAttempts,
205336
+ captureAttempts: Le.captureAttempts ?? 3,
205325
205337
  isRecordingEnabled: Le.enableIdRecording,
205326
205338
  autoCaptureTimeout: Le.autoCaptureTimeout * 1e3,
205327
205339
  enablePassport: Le.enablePassport,
@@ -205348,7 +205360,7 @@ class IdFlowManager extends AbstractFlowManager {
205348
205360
  isRecordingEnabled: Ye.enableIdRecording,
205349
205361
  autoCaptureTimeout: Ye.autoCaptureTimeout * 1e3,
205350
205362
  isSecondId: !1,
205351
- captureAttempts: Ye.captureAttempts,
205363
+ captureAttempts: Ye.captureAttempts ?? 3,
205352
205364
  idDetectedTimeout: Ye.deviceIdleTimeout * 1e3,
205353
205365
  ageAssurance: this.flow.ageAssurance,
205354
205366
  mergeSessionRecordings: this.flow.mergeSessionRecordings,
@@ -285140,107 +285152,96 @@ const GenerateCurp = ({
285140
285152
  /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: 10 }),
285141
285153
  /* @__PURE__ */ jsxRuntimeExports.jsx(Title$p, { children: tt("curp.generate") }),
285142
285154
  /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: 8 }),
285143
- /* @__PURE__ */ jsxRuntimeExports.jsxs(
285144
- Flex,
285145
- {
285146
- direction: "column",
285147
- hFull: !0,
285148
- wFull: !0,
285149
- gap: 4,
285150
- align: "center",
285151
- overflow: "auto",
285152
- children: [
285153
- /* @__PURE__ */ jsxRuntimeExports.jsx(
285154
- InputComposed,
285155
- {
285156
- ref: Bt,
285157
- label: tt("curp.labels.firstName"),
285158
- placeholder: tt("curp.placeholder.firstName"),
285159
- value: nt,
285160
- onChange: (Xt) => ft(Xt.target.value),
285161
- onKeyDown: (Xt) => Ft(Xt, Pt),
285162
- enterKeyHint: "next"
285163
- }
285164
- ),
285165
- /* @__PURE__ */ jsxRuntimeExports.jsx(
285166
- InputComposed,
285167
- {
285168
- ref: Pt,
285169
- label: tt("curp.labels.firstLast"),
285170
- placeholder: tt("curp.placeholder.firstLast"),
285171
- value: ht,
285172
- onChange: (Xt) => gt(Xt.target.value),
285173
- onKeyDown: (Xt) => Ft(Xt, Dt),
285174
- enterKeyHint: "next"
285175
- }
285176
- ),
285177
- /* @__PURE__ */ jsxRuntimeExports.jsx(
285178
- InputComposed,
285179
- {
285180
- ref: Dt,
285181
- label: tt("curp.placeholder.firstLast"),
285182
- placeholder: tt("curp.placeholder.secondLast"),
285183
- value: At,
285184
- onChange: (Xt) => xt(Xt.target.value),
285185
- onKeyDown: (Xt) => Ft(Xt, Ot),
285186
- enterKeyHint: "next"
285187
- }
285188
- ),
285189
- /* @__PURE__ */ jsxRuntimeExports.jsx(
285190
- DropdownComposed,
285191
- {
285192
- ref: Ot,
285193
- label: tt("curp.labels.genderV2"),
285194
- placeholder: tt("curp.placeholder.gender"),
285195
- value: yt,
285196
- onChange: Ct,
285197
- options: [
285198
- { value: "H", label: tt("curp.labels.maleV2") },
285199
- { value: "M", label: tt("curp.labels.femaleV2") },
285200
- { value: "X", label: tt("curp.labels.other") }
285201
- ],
285202
- onKeyDown: (Xt) => Ft(Xt, Lt),
285203
- enterKeyHint: "next"
285204
- }
285205
- ),
285206
- /* @__PURE__ */ jsxRuntimeExports.jsx(
285207
- DateInput,
285208
- {
285209
- ref: Lt,
285210
- label: tt("curp.labels.dob"),
285211
- value: Et,
285212
- onChange: (Xt) => vt(Xt.target.value),
285213
- onKeyDown: (Xt) => Ft(Xt, Wt),
285214
- max: formatInputDate((/* @__PURE__ */ new Date()).toISOString()),
285215
- enterKeyHint: "next"
285216
- }
285217
- ),
285218
- /* @__PURE__ */ jsxRuntimeExports.jsx(
285219
- DropdownComposed,
285220
- {
285221
- ref: Wt,
285222
- label: tt("curp.labels.birthState"),
285223
- placeholder: tt("curp.placeholder.state"),
285224
- value: kt,
285225
- onChange: bt,
285226
- options: states,
285227
- onKeyDown: (Xt) => Ft(Xt, null, !0),
285228
- enterKeyHint: "done"
285229
- }
285230
- ),
285231
- /* @__PURE__ */ jsxRuntimeExports.jsx(
285232
- Button$b,
285233
- {
285234
- disabled: !$t,
285235
- onClick: Ht,
285236
- mb: 4,
285237
- type: "button",
285238
- children: tt("curp.generateCta")
285239
- }
285240
- )
285241
- ]
285242
- }
285243
- )
285155
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { direction: "column", hFull: !0, wFull: !0, gap: 4, align: "center", children: [
285156
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
285157
+ InputComposed,
285158
+ {
285159
+ ref: Bt,
285160
+ label: tt("curp.labels.firstName"),
285161
+ placeholder: tt("curp.placeholder.firstName"),
285162
+ value: nt,
285163
+ onChange: (Xt) => ft(Xt.target.value),
285164
+ onKeyDown: (Xt) => Ft(Xt, Pt),
285165
+ enterKeyHint: "next"
285166
+ }
285167
+ ),
285168
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
285169
+ InputComposed,
285170
+ {
285171
+ ref: Pt,
285172
+ label: tt("curp.labels.firstLast"),
285173
+ placeholder: tt("curp.placeholder.firstLast"),
285174
+ value: ht,
285175
+ onChange: (Xt) => gt(Xt.target.value),
285176
+ onKeyDown: (Xt) => Ft(Xt, Dt),
285177
+ enterKeyHint: "next"
285178
+ }
285179
+ ),
285180
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
285181
+ InputComposed,
285182
+ {
285183
+ ref: Dt,
285184
+ label: tt("curp.placeholder.firstLast"),
285185
+ placeholder: tt("curp.placeholder.secondLast"),
285186
+ value: At,
285187
+ onChange: (Xt) => xt(Xt.target.value),
285188
+ onKeyDown: (Xt) => Ft(Xt, Ot),
285189
+ enterKeyHint: "next"
285190
+ }
285191
+ ),
285192
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
285193
+ DropdownComposed,
285194
+ {
285195
+ ref: Ot,
285196
+ label: tt("curp.labels.genderV2"),
285197
+ placeholder: tt("curp.placeholder.gender"),
285198
+ value: yt,
285199
+ onChange: Ct,
285200
+ options: [
285201
+ { value: "H", label: tt("curp.labels.maleV2") },
285202
+ { value: "M", label: tt("curp.labels.femaleV2") },
285203
+ { value: "X", label: tt("curp.labels.other") }
285204
+ ],
285205
+ onKeyDown: (Xt) => Ft(Xt, Lt),
285206
+ enterKeyHint: "next"
285207
+ }
285208
+ ),
285209
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
285210
+ DateInput,
285211
+ {
285212
+ ref: Lt,
285213
+ label: tt("curp.labels.dob"),
285214
+ value: Et,
285215
+ onChange: (Xt) => vt(Xt.target.value),
285216
+ onKeyDown: (Xt) => Ft(Xt, Wt),
285217
+ max: formatInputDate((/* @__PURE__ */ new Date()).toISOString()),
285218
+ enterKeyHint: "next"
285219
+ }
285220
+ ),
285221
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
285222
+ DropdownComposed,
285223
+ {
285224
+ ref: Wt,
285225
+ label: tt("curp.labels.birthState"),
285226
+ placeholder: tt("curp.placeholder.state"),
285227
+ value: kt,
285228
+ onChange: bt,
285229
+ options: states,
285230
+ onKeyDown: (Xt) => Ft(Xt, null, !0),
285231
+ enterKeyHint: "done"
285232
+ }
285233
+ ),
285234
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
285235
+ Button$b,
285236
+ {
285237
+ disabled: !$t,
285238
+ onClick: Ht,
285239
+ mb: 4,
285240
+ type: "button",
285241
+ children: tt("curp.generateCta")
285242
+ }
285243
+ )
285244
+ ] })
285244
285245
  ] }) });
285245
285246
  }, EnterCurpV2 = ({ token: Be, uiConfig: Le = {}, onSuccess: Ye }) => {
285246
285247
  const { t: tt } = useTranslation$1(), [nt, ft] = useState(""), [ht, gt] = useState(!1), [At, xt] = useState("idle"), yt = isValidCurp(nt), Ct = async () => {
@@ -366097,7 +366098,7 @@ function IdModule({
366097
366098
  session: { token: Le },
366098
366099
  captureConfig: {
366099
366100
  showTutorial: Ye.showTutorial,
366100
- captureAttempts: Ye.captureAttempts,
366101
+ captureAttempts: Ye.captureAttempts ?? 3,
366101
366102
  enableIdRecording: Ye.enableIdRecording,
366102
366103
  autoCaptureTimeout: Ye.autoCaptureTimeout,
366103
366104
  enablePassport: Ye.enablePassport,