@incodetech/web 0.0.0-dev-20260317-ce5d28b → 0.0.0-dev-20260317-6ffceac
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/{addressAutocomplete-CL7IcYGQ.js → addressAutocomplete-3u5x8ZFs.js} +2 -2
- package/dist/base.css +25 -70
- package/dist/curp-validation/curp-validation.es.js +59 -58
- package/dist/dropdownComposed-B5ZuQS8C.js +345 -0
- package/dist/{ekybModule-CV7jE8qz.js → ekybModule-BKSouMz6.js} +8 -7
- package/dist/{ekycModule-fxKjsL1i.js → ekycModule-CWu3ZTNN.js} +4 -4
- package/dist/email/email.es.js +87 -86
- package/dist/extensibility.es.js +59 -58
- package/dist/flow/flow.es.js +2 -2
- package/dist/{formField-B2HDj15w.js → formField-UWsp-7Fj.js} +1 -1
- package/dist/governmentValidation/governmentValidation.es.js +1 -1
- package/dist/inputComposed-BHi-MSpP.js +102 -0
- package/dist/otpInput-DdkvlvCS.js +107 -0
- package/dist/phone/phone.es.js +58 -64
- package/dist/{phoneInputComposed-D0oBe-el.js → phoneInputComposed-CwtJKvGh.js} +7 -6
- package/package.json +2 -2
- package/dist/dropdownComposed-DBm7cotT.js +0 -440
- package/dist/otpInput-cazUY73p.js +0 -151
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d, y as M, A as H, q as F } from "./vendor-preact-BXf0bkEs.js";
|
|
2
2
|
import { b as K, u as l } from "./button-Ca1tRSTI.js";
|
|
3
3
|
import "./uiConfig-Z6RT23Sl.js";
|
|
4
|
-
import { t as Q } from "./formField-
|
|
5
|
-
import { I as R } from "./
|
|
4
|
+
import { t as Q } from "./formField-UWsp-7Fj.js";
|
|
5
|
+
import { I as R } from "./inputComposed-BHi-MSpP.js";
|
|
6
6
|
import "@incodetech/core";
|
|
7
7
|
import { u as q } from "./useMediaQuery-CiSMgDyi.js";
|
|
8
8
|
function G(c, f) {
|
package/dist/base.css
CHANGED
|
@@ -374,7 +374,13 @@
|
|
|
374
374
|
}
|
|
375
375
|
.IncodeButton.IncodeButtonLink:not(.IncodeButtonLoading):disabled {
|
|
376
376
|
cursor: not-allowed;
|
|
377
|
+
font-family: var(--typography-button-family);
|
|
378
|
+
font-size: var(--typography-button-m-size);
|
|
379
|
+
font-weight: var(--typography-button-m-weight);
|
|
380
|
+
line-height: var(--typography-button-m-line-height);
|
|
381
|
+
letter-spacing: var(--typography-button-m-letter-spacing);
|
|
377
382
|
color: var(--color-button-tertiary-text-disabled, var(--button-tertiary-text-disabled));
|
|
383
|
+
text-decoration-line: none;
|
|
378
384
|
}
|
|
379
385
|
.IncodeButton.IncodeButtonLink.IncodeButtonLoading {
|
|
380
386
|
pointer-events: none;
|
|
@@ -547,6 +553,8 @@
|
|
|
547
553
|
background-color: var(--color-input-surface-active, var(--input-surface-active));
|
|
548
554
|
}
|
|
549
555
|
.IncodeInput[aria-invalid="true"] {
|
|
556
|
+
border-style: var(--tw-border-style);
|
|
557
|
+
border-width: 2px;
|
|
550
558
|
border-color: var(--color-input-border-negative, var(--input-border-negative));
|
|
551
559
|
}
|
|
552
560
|
.IncodeInput[type="date"] {
|
|
@@ -628,15 +636,17 @@
|
|
|
628
636
|
display: flex;
|
|
629
637
|
}
|
|
630
638
|
.IncodeInputComposedIconWrapper {
|
|
631
|
-
margin-right: var(--spacing-
|
|
639
|
+
margin-right: var(--spacing-4, var(--spacing-4, 4px));
|
|
632
640
|
display: inline-block;
|
|
633
641
|
}
|
|
634
642
|
.IncodeInputComposedError {
|
|
635
643
|
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
636
644
|
color: var(--color-input-text-helper-negative, var(--input-text-helper-negative));
|
|
637
|
-
font-
|
|
638
|
-
|
|
639
|
-
font-weight: var(--
|
|
645
|
+
font-family: var(--typography-body-family);
|
|
646
|
+
font-size: var(--typography-body-m-regular-size);
|
|
647
|
+
font-weight: var(--typography-body-m-regular-weight);
|
|
648
|
+
line-height: var(--typography-body-m-regular-line-height);
|
|
649
|
+
letter-spacing: var(--typography-body-m-regular-letter-spacing);
|
|
640
650
|
font-family: inherit;
|
|
641
651
|
display: inline-block;
|
|
642
652
|
}
|
|
@@ -955,64 +965,6 @@
|
|
|
955
965
|
width: 100%;
|
|
956
966
|
display: flex;
|
|
957
967
|
}
|
|
958
|
-
.IncodeOtpInputBoxes {
|
|
959
|
-
justify-content: center;
|
|
960
|
-
gap: var(--spacing-4, var(--spacing-4, 4px));
|
|
961
|
-
max-width: 100%;
|
|
962
|
-
display: flex;
|
|
963
|
-
}
|
|
964
|
-
@media (min-width: 400px) {
|
|
965
|
-
.IncodeOtpInputBoxes {
|
|
966
|
-
gap: var(--spacing-12, var(--spacing-12, 12px));
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
.IncodeOtpInputBox {
|
|
970
|
-
text-align: center;
|
|
971
|
-
width: 48px;
|
|
972
|
-
height: 48px;
|
|
973
|
-
font-size: var(--text-24, var(--primitive-typography-size-24));
|
|
974
|
-
--tw-font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
|
|
975
|
-
font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
|
|
976
|
-
border-radius: var(--radius-small, var(--border-radius-small));
|
|
977
|
-
border-style: var(--tw-border-style);
|
|
978
|
-
border-width: 1px;
|
|
979
|
-
border-color: var(--color-input-border-default, var(--input-border-default));
|
|
980
|
-
background-color: var(--color-input-surface-default, var(--input-surface-default));
|
|
981
|
-
color: var(--color-input-text-field-default, var(--input-text-field-default));
|
|
982
|
-
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
983
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));
|
|
984
|
-
transition-duration: var(--tw-duration, var(--default-transition-duration, .15s));
|
|
985
|
-
--tw-duration: .2s;
|
|
986
|
-
--tw-outline-style: none;
|
|
987
|
-
outline-style: none;
|
|
988
|
-
flex-shrink: 0;
|
|
989
|
-
font-family: inherit;
|
|
990
|
-
transition-duration: .2s;
|
|
991
|
-
}
|
|
992
|
-
@media (min-width: 400px) {
|
|
993
|
-
.IncodeOtpInputBox {
|
|
994
|
-
width: 56px;
|
|
995
|
-
height: 56px;
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
.IncodeOtpInputBoxes:focus-within .IncodeOtpInputBox {
|
|
999
|
-
border-style: var(--tw-border-style);
|
|
1000
|
-
border-width: 2px;
|
|
1001
|
-
border-color: var(--color-input-border-active, var(--input-border-active));
|
|
1002
|
-
background-color: var(--color-input-surface-active, var(--input-surface-active));
|
|
1003
|
-
}
|
|
1004
|
-
.IncodeOtpInputBoxes.IncodeOtpInputBoxesError .IncodeOtpInputBox {
|
|
1005
|
-
border-color: var(--color-input-border-negative, var(--input-border-negative));
|
|
1006
|
-
}
|
|
1007
|
-
.IncodeOtpInputBox::placeholder {
|
|
1008
|
-
color: var(--color-input-text-field-placeholder, var(--input-text-field-placeholder));
|
|
1009
|
-
}
|
|
1010
|
-
.IncodeOtpInputBox:disabled {
|
|
1011
|
-
border-color: var(--color-input-border-disabled, var(--input-border-disabled));
|
|
1012
|
-
background-color: var(--color-input-surface-disabled, var(--input-surface-disabled));
|
|
1013
|
-
cursor: not-allowed;
|
|
1014
|
-
color: var(--color-input-text-field-disabled, var(--input-text-field-disabled));
|
|
1015
|
-
}
|
|
1016
968
|
.IncodeOtpInputError {
|
|
1017
969
|
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
1018
970
|
text-align: center;
|
|
@@ -1027,14 +979,6 @@
|
|
|
1027
979
|
width: 100%;
|
|
1028
980
|
display: flex;
|
|
1029
981
|
}
|
|
1030
|
-
.IncodeOtpInputTimer {
|
|
1031
|
-
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
1032
|
-
text-align: center;
|
|
1033
|
-
font-size: var(--text-18, var(--primitive-typography-size-18));
|
|
1034
|
-
--tw-font-weight: var(--font-weight-normal, 400);
|
|
1035
|
-
font-weight: var(--font-weight-normal, 400);
|
|
1036
|
-
color: var(--color-text-body-tertiary, var(--text-body-300-tertiary));
|
|
1037
|
-
}
|
|
1038
982
|
.IncodeOtpInputResendText {
|
|
1039
983
|
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
1040
984
|
text-align: center;
|
|
@@ -1066,6 +1010,17 @@
|
|
|
1066
1010
|
cursor: not-allowed;
|
|
1067
1011
|
color: var(--color-text-body-tertiary, var(--text-body-300-tertiary));
|
|
1068
1012
|
}
|
|
1013
|
+
.IncodeOtpInputComposed {
|
|
1014
|
+
width: 100%;
|
|
1015
|
+
}
|
|
1016
|
+
.IncodeOtpInputComposed .IncodeOtpSingleInput input {
|
|
1017
|
+
text-align: center;
|
|
1018
|
+
font-family: var(--typography-input-dropdown-family);
|
|
1019
|
+
font-size: var(--typography-input-dropdown-l-size);
|
|
1020
|
+
font-weight: var(--typography-input-dropdown-l-weight);
|
|
1021
|
+
line-height: var(--typography-input-dropdown-l-line-height);
|
|
1022
|
+
letter-spacing: var(--typography-input-dropdown-l-letter-spacing);
|
|
1023
|
+
}
|
|
1069
1024
|
.IncodePageContainer {
|
|
1070
1025
|
background-color: var(--color-surface-neutral-0, var(--surface-neutral-0));
|
|
1071
1026
|
width: 100%;
|
|
@@ -8,20 +8,21 @@ import { S as D } from "../successIcon-BybULRRU.js";
|
|
|
8
8
|
import { P as p } from "../page-BVHG3h0V.js";
|
|
9
9
|
import { S as k } from "../spinner-Cx3FPUCD.js";
|
|
10
10
|
import { r as E } from "../incodeModule-aE-LkKwM.js";
|
|
11
|
-
import { I as C
|
|
11
|
+
import { I as C } from "../inputComposed-BHi-MSpP.js";
|
|
12
12
|
import { D as F } from "../dateInputComposed-CvFmQpJ0.js";
|
|
13
|
+
import { D as P } from "../dropdownComposed-B5ZuQS8C.js";
|
|
13
14
|
const T = ({
|
|
14
15
|
curp: s,
|
|
15
16
|
isValid: d,
|
|
16
17
|
onCurpChange: o,
|
|
17
|
-
onVerify:
|
|
18
|
+
onVerify: a,
|
|
18
19
|
onSwitchToGenerate: t,
|
|
19
|
-
disabled:
|
|
20
|
-
placeholder:
|
|
20
|
+
disabled: i = !1,
|
|
21
|
+
placeholder: r,
|
|
21
22
|
continueLabel: m,
|
|
22
23
|
dontHaveLabel: n
|
|
23
24
|
}) => {
|
|
24
|
-
const { t: c } = I(), f =
|
|
25
|
+
const { t: c } = I(), f = r ?? c("curp.placeholder.curp") ?? "CURP", g = m ?? c("curp.continue") ?? "Continue", l = n ?? c("curp.dontHave") ?? "I don't have my CURP", b = c("curp.placeholder.curp") ?? "CURP";
|
|
25
26
|
return /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpInput", children: [
|
|
26
27
|
/* @__PURE__ */ e(
|
|
27
28
|
C,
|
|
@@ -34,7 +35,7 @@ const T = ({
|
|
|
34
35
|
o(L.value.toUpperCase());
|
|
35
36
|
},
|
|
36
37
|
placeholder: f,
|
|
37
|
-
disabled:
|
|
38
|
+
disabled: i,
|
|
38
39
|
maxLength: 18,
|
|
39
40
|
"aria-label": b
|
|
40
41
|
}
|
|
@@ -44,8 +45,8 @@ const T = ({
|
|
|
44
45
|
h,
|
|
45
46
|
{
|
|
46
47
|
type: "button",
|
|
47
|
-
onClick:
|
|
48
|
-
disabled: !d ||
|
|
48
|
+
onClick: a,
|
|
49
|
+
disabled: !d || i,
|
|
49
50
|
"data-testid": "curp-verify",
|
|
50
51
|
children: g
|
|
51
52
|
}
|
|
@@ -55,10 +56,10 @@ const T = ({
|
|
|
55
56
|
{
|
|
56
57
|
type: "button",
|
|
57
58
|
onClick: t,
|
|
58
|
-
disabled:
|
|
59
|
+
disabled: i,
|
|
59
60
|
"data-testid": "curp-switch-to-generate",
|
|
60
61
|
class: "IncodeCurpInputDontHaveButton",
|
|
61
|
-
children:
|
|
62
|
+
children: l
|
|
62
63
|
}
|
|
63
64
|
)
|
|
64
65
|
] });
|
|
@@ -66,33 +67,33 @@ const T = ({
|
|
|
66
67
|
form: s,
|
|
67
68
|
isValid: d,
|
|
68
69
|
onFormChange: o,
|
|
69
|
-
onGenerate:
|
|
70
|
+
onGenerate: a,
|
|
70
71
|
disabled: t = !1,
|
|
71
|
-
labels:
|
|
72
|
+
labels: i
|
|
72
73
|
}) => {
|
|
73
|
-
const { t:
|
|
74
|
-
firstName:
|
|
75
|
-
firstLast:
|
|
76
|
-
secondLast:
|
|
77
|
-
gender:
|
|
78
|
-
genderPlaceholder:
|
|
79
|
-
male:
|
|
80
|
-
female:
|
|
81
|
-
other:
|
|
82
|
-
dob:
|
|
83
|
-
birthState:
|
|
84
|
-
statePlaceholder:
|
|
85
|
-
generate:
|
|
86
|
-
}, ...
|
|
74
|
+
const { t: r } = I(), n = { ...{
|
|
75
|
+
firstName: r("curp.labels.firstName") ?? "Your First name",
|
|
76
|
+
firstLast: r("curp.labels.firstLast") ?? "Your First last name",
|
|
77
|
+
secondLast: r("curp.labels.secondLast") ?? "Your Second last name",
|
|
78
|
+
gender: r("curp.labels.genderV2") ?? "Gender",
|
|
79
|
+
genderPlaceholder: r("curp.placeholder.gender") ?? "Choose gender",
|
|
80
|
+
male: r("curp.labels.maleV2") ?? "Male",
|
|
81
|
+
female: r("curp.labels.femaleV2") ?? "Female",
|
|
82
|
+
other: r("curp.labels.other") ?? "Other",
|
|
83
|
+
dob: r("curp.labels.dob") ?? "Date of birth",
|
|
84
|
+
birthState: r("curp.labels.birthState") ?? "State of birth",
|
|
85
|
+
statePlaceholder: r("curp.placeholder.state") ?? "Select state",
|
|
86
|
+
generate: r("curp.generateCta") ?? "Generate CURP"
|
|
87
|
+
}, ...i }, c = (l) => (b) => {
|
|
87
88
|
const v = b.target;
|
|
88
|
-
o({ [
|
|
89
|
+
o({ [l]: v.value });
|
|
89
90
|
}, f = [
|
|
90
91
|
{ value: "H", label: n.male },
|
|
91
92
|
{ value: "M", label: n.female },
|
|
92
93
|
{ value: "X", label: n.other }
|
|
93
|
-
], g = G.map((
|
|
94
|
-
value:
|
|
95
|
-
label:
|
|
94
|
+
], g = G.map((l) => ({
|
|
95
|
+
value: l.value,
|
|
96
|
+
label: l.label
|
|
96
97
|
}));
|
|
97
98
|
return /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeGenerateCurpForm", children: [
|
|
98
99
|
/* @__PURE__ */ e(
|
|
@@ -138,7 +139,7 @@ const T = ({
|
|
|
138
139
|
value: s.gender,
|
|
139
140
|
options: f,
|
|
140
141
|
disabled: t,
|
|
141
|
-
onChange: (
|
|
142
|
+
onChange: (l) => o({ gender: l }),
|
|
142
143
|
"data-testid": "curp-gender"
|
|
143
144
|
}
|
|
144
145
|
),
|
|
@@ -150,7 +151,7 @@ const T = ({
|
|
|
150
151
|
value: s.birthDate,
|
|
151
152
|
onInput: c("birthDate"),
|
|
152
153
|
max: (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
|
|
153
|
-
placeholder:
|
|
154
|
+
placeholder: r("curp.placeholder.dob") ?? "mm/dd/yyyy",
|
|
154
155
|
disabled: t,
|
|
155
156
|
"data-testid": "curp-birth-date"
|
|
156
157
|
}
|
|
@@ -164,7 +165,7 @@ const T = ({
|
|
|
164
165
|
value: s.birthState,
|
|
165
166
|
options: g,
|
|
166
167
|
disabled: t,
|
|
167
|
-
onChange: (
|
|
168
|
+
onChange: (l) => o({ birthState: l }),
|
|
168
169
|
"data-testid": "curp-birth-state",
|
|
169
170
|
searchable: !0
|
|
170
171
|
}
|
|
@@ -174,7 +175,7 @@ const T = ({
|
|
|
174
175
|
h,
|
|
175
176
|
{
|
|
176
177
|
type: "button",
|
|
177
|
-
onClick:
|
|
178
|
+
onClick: a,
|
|
178
179
|
disabled: !d || t,
|
|
179
180
|
"data-testid": "curp-generate",
|
|
180
181
|
children: n.generate
|
|
@@ -186,32 +187,32 @@ const T = ({
|
|
|
186
187
|
onFinish: d,
|
|
187
188
|
onError: o
|
|
188
189
|
}) => {
|
|
189
|
-
const { t:
|
|
190
|
+
const { t: a } = I(), [t, i] = N(() => {
|
|
190
191
|
if (!s)
|
|
191
192
|
throw new Error("CURP validation config is required");
|
|
192
193
|
return R({ config: s });
|
|
193
194
|
});
|
|
194
195
|
if (t.status === "idle" || t.status === "loading" || t.status === "verifying" || t.status === "generating") {
|
|
195
|
-
const
|
|
196
|
-
return /* @__PURE__ */ e(p, { className: "IncodeCurpValidationPage", children: /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpLoading", children: /* @__PURE__ */ e(k, { title:
|
|
196
|
+
const r = t.status === "generating" ? a("curp.status.generating") ?? "Generating..." : a("curp.status.verifying") ?? "Verifying...";
|
|
197
|
+
return /* @__PURE__ */ e(p, { className: "IncodeCurpValidationPage", children: /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpLoading", children: /* @__PURE__ */ e(k, { title: r, fullScreen: !1 }) }) });
|
|
197
198
|
}
|
|
198
199
|
if (t.status === "enterCurp")
|
|
199
200
|
return /* @__PURE__ */ e(
|
|
200
201
|
p,
|
|
201
202
|
{
|
|
202
203
|
className: "IncodeCurpValidationPage",
|
|
203
|
-
title:
|
|
204
|
+
title: a("curp.enterCurp") ?? "Enter your CURP",
|
|
204
205
|
children: /* @__PURE__ */ e(
|
|
205
206
|
T,
|
|
206
207
|
{
|
|
207
208
|
curp: t.curp,
|
|
208
209
|
isValid: t.isValid,
|
|
209
|
-
onCurpChange: (
|
|
210
|
-
onVerify: () =>
|
|
211
|
-
onSwitchToGenerate: () =>
|
|
212
|
-
placeholder:
|
|
213
|
-
continueLabel:
|
|
214
|
-
dontHaveLabel:
|
|
210
|
+
onCurpChange: (r) => i.setCurp(r),
|
|
211
|
+
onVerify: () => i.verify(),
|
|
212
|
+
onSwitchToGenerate: () => i.switchToGenerate(),
|
|
213
|
+
placeholder: a("curp.placeholder.curp") ?? "CURP",
|
|
214
|
+
continueLabel: a("curp.continue") ?? "Continue",
|
|
215
|
+
dontHaveLabel: a("curp.dontHave") ?? "I don't have my CURP"
|
|
215
216
|
}
|
|
216
217
|
)
|
|
217
218
|
}
|
|
@@ -221,14 +222,14 @@ const T = ({
|
|
|
221
222
|
p,
|
|
222
223
|
{
|
|
223
224
|
className: "IncodeCurpValidationPage",
|
|
224
|
-
title:
|
|
225
|
+
title: a("curp.generate") ?? "Generate your CURP",
|
|
225
226
|
children: /* @__PURE__ */ e(
|
|
226
227
|
w,
|
|
227
228
|
{
|
|
228
229
|
form: t.form,
|
|
229
230
|
isValid: t.isValid,
|
|
230
|
-
onFormChange: (
|
|
231
|
-
onGenerate: () =>
|
|
231
|
+
onFormChange: (r) => i.setGenerateForm(r),
|
|
232
|
+
onGenerate: () => i.generate()
|
|
232
233
|
}
|
|
233
234
|
)
|
|
234
235
|
}
|
|
@@ -238,7 +239,7 @@ const T = ({
|
|
|
238
239
|
p,
|
|
239
240
|
{
|
|
240
241
|
className: "IncodeCurpValidationPage",
|
|
241
|
-
title:
|
|
242
|
+
title: a("curp.status.confirm") ?? "Confirm your CURP",
|
|
242
243
|
children: /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpConfirm", children: [
|
|
243
244
|
/* @__PURE__ */ e(
|
|
244
245
|
"input",
|
|
@@ -247,7 +248,7 @@ const T = ({
|
|
|
247
248
|
class: "IncodeCurpConfirmInput",
|
|
248
249
|
value: t.curp,
|
|
249
250
|
readOnly: !0,
|
|
250
|
-
"aria-label":
|
|
251
|
+
"aria-label": a("curp.status.generatedCurp") ?? "Generated CURP"
|
|
251
252
|
}
|
|
252
253
|
),
|
|
253
254
|
/* @__PURE__ */ e(u, {}),
|
|
@@ -255,9 +256,9 @@ const T = ({
|
|
|
255
256
|
h,
|
|
256
257
|
{
|
|
257
258
|
type: "button",
|
|
258
|
-
onClick: () =>
|
|
259
|
+
onClick: () => i.confirmGenerated(),
|
|
259
260
|
"data-testid": "curp-confirm",
|
|
260
|
-
children:
|
|
261
|
+
children: a("curp.continue") ?? "Continue"
|
|
261
262
|
}
|
|
262
263
|
)
|
|
263
264
|
] })
|
|
@@ -267,27 +268,27 @@ const T = ({
|
|
|
267
268
|
return /* @__PURE__ */ e(p, { className: "IncodeCurpValidationPage", children: /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpSuccess", children: [
|
|
268
269
|
/* @__PURE__ */ e(D, { size: 32 }),
|
|
269
270
|
/* @__PURE__ */ e(u, { size: 16 }),
|
|
270
|
-
/* @__PURE__ */ e("h2", { class: "IncodeCurpSuccessTitle", children:
|
|
271
|
+
/* @__PURE__ */ e("h2", { class: "IncodeCurpSuccessTitle", children: a("curp.status.verified") ?? "Verified" })
|
|
271
272
|
] }) });
|
|
272
273
|
if (t.status === "failure" || t.status === "generateError") {
|
|
273
|
-
const
|
|
274
|
+
const r = t.retriesLeft > 0, m = t.status === "failure" ? a("curp.status.notVerified") ?? "Not verified" : a("curp.status.couldntGenerate") ?? "Couldn't generate CURP";
|
|
274
275
|
return /* @__PURE__ */ e(p, { className: "IncodeCurpValidationPage", children: /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpFailure", children: [
|
|
275
276
|
/* @__PURE__ */ e(u, {}),
|
|
276
277
|
/* @__PURE__ */ e(U, { size: 32 }),
|
|
277
278
|
/* @__PURE__ */ e(u, { size: 16 }),
|
|
278
279
|
/* @__PURE__ */ e("h2", { class: "IncodeCurpFailureTitle", children: m }),
|
|
279
|
-
t.status === "generateError" &&
|
|
280
|
+
t.status === "generateError" && r && /* @__PURE__ */ e(y, { children: [
|
|
280
281
|
/* @__PURE__ */ e(u, { size: 12 }),
|
|
281
|
-
/* @__PURE__ */ e("p", { class: "IncodeCurpFailureHint", children:
|
|
282
|
+
/* @__PURE__ */ e("p", { class: "IncodeCurpFailureHint", children: a("curp.status.checkInfo") ?? "Please check your information" })
|
|
282
283
|
] }),
|
|
283
284
|
/* @__PURE__ */ e(u, {}),
|
|
284
|
-
|
|
285
|
+
r && /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(
|
|
285
286
|
h,
|
|
286
287
|
{
|
|
287
288
|
type: "button",
|
|
288
|
-
onClick: () =>
|
|
289
|
+
onClick: () => i.retry(),
|
|
289
290
|
"data-testid": "curp-retry",
|
|
290
|
-
children: t.status === "failure" ?
|
|
291
|
+
children: t.status === "failure" ? a("curp.status.tryAgain") ?? "Try again" : a("curp.status.edit") ?? "Edit information"
|
|
291
292
|
}
|
|
292
293
|
) })
|
|
293
294
|
] }) });
|