@incodetech/welcome 1.85.0-20251103180248.0 → 1.85.0-20251103190408.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 +266 -265
- package/dist/onBoarding.umd.js +7 -6
- package/package.json +1 -1
package/dist/onBoarding.mjs
CHANGED
|
@@ -8372,7 +8372,7 @@ class MlWasmJSApi {
|
|
|
8372
8372
|
);
|
|
8373
8373
|
}
|
|
8374
8374
|
}
|
|
8375
|
-
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-
|
|
8375
|
+
const MlWasmJSApi$1 = MlWasmJSApi.getInstance(), version$4 = "1.85.0-20251103190408.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"};
|
|
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
|
-
|
|
27770
|
-
|
|
27771
|
-
|
|
27770
|
+
tabIndex: xt,
|
|
27771
|
+
onKeyDown: yt,
|
|
27772
|
+
enterKeyHint: Ct
|
|
27772
27773
|
}, Et) => {
|
|
27773
|
-
const vt = useTokens(), [kt, bt] = useState(!1), wt = useRef(null),
|
|
27774
|
-
|
|
27775
|
-
|
|
27776
|
-
|
|
27777
|
-
|
|
27778
|
-
|
|
27779
|
-
|
|
27780
|
-
|
|
27781
|
-
|
|
27782
|
-
};
|
|
27783
|
-
}, []);
|
|
27784
|
-
const
|
|
27785
|
-
bt(
|
|
27786
|
-
},
|
|
27787
|
-
tt == null || tt(
|
|
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(
|
|
27790
|
-
|
|
27791
|
-
|
|
27792
|
-
|
|
27793
|
-
|
|
27794
|
-
|
|
27795
|
-
|
|
27796
|
-
|
|
27797
|
-
|
|
27798
|
-
|
|
27799
|
-
|
|
27800
|
-
|
|
27801
|
-
|
|
27802
|
-
|
|
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
|
-
|
|
27808
|
-
|
|
27809
|
-
|
|
27810
|
-
|
|
27811
|
-
|
|
27812
|
-
|
|
27813
|
-
|
|
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__ */
|
|
27834
|
-
|
|
27835
|
-
|
|
27836
|
-
|
|
27837
|
-
|
|
27838
|
-
|
|
27839
|
-
|
|
27840
|
-
|
|
27841
|
-
|
|
27842
|
-
|
|
27843
|
-
|
|
27844
|
-
|
|
27845
|
-
|
|
27846
|
-
|
|
27847
|
-
|
|
27848
|
-
|
|
27849
|
-
|
|
27850
|
-
|
|
27851
|
-
|
|
27852
|
-
|
|
27853
|
-
|
|
27854
|
-
|
|
27855
|
-
|
|
27856
|
-
|
|
27857
|
-
|
|
27858
|
-
|
|
27859
|
-
|
|
27860
|
-
|
|
27861
|
-
|
|
27862
|
-
|
|
27863
|
-
|
|
27864
|
-
|
|
27865
|
-
|
|
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:
|
|
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
|
-
|
|
27891
|
-
|
|
27892
|
-
|
|
27893
|
-
|
|
27894
|
-
|
|
27895
|
-
|
|
27896
|
-
|
|
27897
|
-
|
|
27898
|
-
|
|
27899
|
-
|
|
27900
|
-
|
|
27901
|
-
|
|
27902
|
-
|
|
27903
|
-
|
|
27904
|
-
|
|
27905
|
-
|
|
27906
|
-
|
|
27907
|
-
|
|
27908
|
-
|
|
27909
|
-
|
|
27910
|
-
|
|
27911
|
-
|
|
27912
|
-
|
|
27913
|
-
|
|
27914
|
-
|
|
27915
|
-
|
|
27916
|
-
|
|
27917
|
-
|
|
27918
|
-
|
|
27919
|
-
|
|
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)
|
|
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: (
|
|
150321
|
-
ft.current =
|
|
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
|
-
|
|
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
|
)
|
|
@@ -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
|
-
|
|
285145
|
-
|
|
285146
|
-
|
|
285147
|
-
|
|
285148
|
-
|
|
285149
|
-
|
|
285150
|
-
|
|
285151
|
-
|
|
285152
|
-
|
|
285153
|
-
|
|
285154
|
-
|
|
285155
|
-
|
|
285156
|
-
|
|
285157
|
-
|
|
285158
|
-
|
|
285159
|
-
|
|
285160
|
-
|
|
285161
|
-
|
|
285162
|
-
|
|
285163
|
-
|
|
285164
|
-
),
|
|
285165
|
-
|
|
285166
|
-
|
|
285167
|
-
|
|
285168
|
-
|
|
285169
|
-
|
|
285170
|
-
|
|
285171
|
-
|
|
285172
|
-
|
|
285173
|
-
|
|
285174
|
-
|
|
285175
|
-
|
|
285176
|
-
),
|
|
285177
|
-
|
|
285178
|
-
|
|
285179
|
-
|
|
285180
|
-
|
|
285181
|
-
|
|
285182
|
-
|
|
285183
|
-
|
|
285184
|
-
|
|
285185
|
-
|
|
285186
|
-
|
|
285187
|
-
|
|
285188
|
-
|
|
285189
|
-
|
|
285190
|
-
|
|
285191
|
-
{
|
|
285192
|
-
|
|
285193
|
-
|
|
285194
|
-
|
|
285195
|
-
|
|
285196
|
-
|
|
285197
|
-
|
|
285198
|
-
|
|
285199
|
-
|
|
285200
|
-
|
|
285201
|
-
|
|
285202
|
-
|
|
285203
|
-
|
|
285204
|
-
|
|
285205
|
-
),
|
|
285206
|
-
|
|
285207
|
-
|
|
285208
|
-
|
|
285209
|
-
|
|
285210
|
-
|
|
285211
|
-
|
|
285212
|
-
|
|
285213
|
-
|
|
285214
|
-
|
|
285215
|
-
|
|
285216
|
-
|
|
285217
|
-
|
|
285218
|
-
|
|
285219
|
-
|
|
285220
|
-
|
|
285221
|
-
|
|
285222
|
-
|
|
285223
|
-
|
|
285224
|
-
|
|
285225
|
-
|
|
285226
|
-
|
|
285227
|
-
|
|
285228
|
-
|
|
285229
|
-
|
|
285230
|
-
|
|
285231
|
-
|
|
285232
|
-
|
|
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 () => {
|
|
@@ -366726,7 +366727,7 @@ function SelfieModule({
|
|
|
366726
366727
|
}), Et === "PERMISSION_DENIED" && ft({
|
|
366727
366728
|
type: "PERMISSION_DENIED",
|
|
366728
366729
|
message: "Permission denied"
|
|
366729
|
-
});
|
|
366730
|
+
}), gt("process");
|
|
366730
366731
|
},
|
|
366731
366732
|
session: { token: Le },
|
|
366732
366733
|
captureConfig: yt,
|