@incodetech/web 0.0.0-dev-20260316-0522f9e → 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 +80 -72
- 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-CmD1wsRS.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-CwtJKvGh.js +160 -0
- package/dist/types/extensibility.d.ts +10 -2
- package/package.json +2 -2
- package/dist/dropdownComposed-DBm7cotT.js +0 -440
- package/dist/otpInput-cazUY73p.js +0 -151
- package/dist/phoneInputComposed-B1gXoSzr.js +0 -107
|
@@ -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
|
}
|
|
@@ -882,13 +892,66 @@
|
|
|
882
892
|
font-family: inherit;
|
|
883
893
|
display: inline-block;
|
|
884
894
|
}
|
|
885
|
-
.IncodePhoneInputComposed
|
|
895
|
+
.IncodePhoneInputComposed {
|
|
896
|
+
width: 100%;
|
|
897
|
+
max-width: 420px;
|
|
898
|
+
position: relative;
|
|
899
|
+
}
|
|
900
|
+
.IncodePhoneInputComposedLabel {
|
|
901
|
+
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
902
|
+
margin-bottom: var(--spacing-8, var(--spacing-8, 8px));
|
|
903
|
+
font-family: var(--typography-label-family);
|
|
904
|
+
font-size: var(--typography-label-m-size);
|
|
905
|
+
font-weight: var(--typography-label-m-weight);
|
|
906
|
+
line-height: var(--typography-label-m-line-height);
|
|
907
|
+
letter-spacing: var(--typography-label-m-letter-spacing);
|
|
908
|
+
display: inline-block;
|
|
909
|
+
}
|
|
910
|
+
.IncodePhoneInputComposedRequired {
|
|
911
|
+
color: var(--color-input-text-helper-negative, var(--input-text-helper-negative));
|
|
912
|
+
}
|
|
913
|
+
.IncodePhoneInputComposedDropdown {
|
|
914
|
+
max-width: none;
|
|
915
|
+
}
|
|
916
|
+
.IncodePhoneInputComposedDropdown .IncodeDropdownComposedTrigger {
|
|
886
917
|
flex-shrink: 0;
|
|
887
918
|
width: auto;
|
|
919
|
+
min-width: 120px;
|
|
888
920
|
}
|
|
889
|
-
.
|
|
921
|
+
.IncodePhoneInputComposedDropdown .IncodeDropdownComposedSibling .IncodeInputComposed, .IncodePhoneInputComposedDropdown .IncodeDropdownComposedSibling .IncodeInput {
|
|
890
922
|
max-width: none;
|
|
891
923
|
}
|
|
924
|
+
.IncodePhoneInputComposedErrorWrapper, .IncodePhoneInputComposedHelperWrapper {
|
|
925
|
+
margin-top: var(--spacing-8, var(--spacing-8, 8px));
|
|
926
|
+
align-items: center;
|
|
927
|
+
display: flex;
|
|
928
|
+
}
|
|
929
|
+
.IncodePhoneInputComposedIconWrapper {
|
|
930
|
+
margin-right: var(--spacing-8, var(--spacing-8, 8px));
|
|
931
|
+
justify-content: center;
|
|
932
|
+
align-items: center;
|
|
933
|
+
display: flex;
|
|
934
|
+
}
|
|
935
|
+
.IncodePhoneInputComposedError {
|
|
936
|
+
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
937
|
+
font-family: var(--typography-body-family);
|
|
938
|
+
font-size: var(--typography-body-m-regular-size);
|
|
939
|
+
font-weight: var(--typography-body-m-regular-weight);
|
|
940
|
+
line-height: var(--typography-body-m-regular-line-height);
|
|
941
|
+
letter-spacing: var(--typography-body-m-regular-letter-spacing);
|
|
942
|
+
color: var(--color-input-text-helper-negative, var(--input-text-helper-negative));
|
|
943
|
+
display: inline-block;
|
|
944
|
+
}
|
|
945
|
+
.IncodePhoneInputComposedHelper {
|
|
946
|
+
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
947
|
+
font-family: var(--typography-body-family);
|
|
948
|
+
font-size: var(--typography-body-m-regular-size);
|
|
949
|
+
font-weight: var(--typography-body-m-regular-weight);
|
|
950
|
+
line-height: var(--typography-body-m-regular-line-height);
|
|
951
|
+
letter-spacing: var(--typography-body-m-regular-letter-spacing);
|
|
952
|
+
color: var(--color-input-text-helper-default, var(--input-text-helper-default));
|
|
953
|
+
display: inline-block;
|
|
954
|
+
}
|
|
892
955
|
.IncodeOtpInput {
|
|
893
956
|
flex-direction: column;
|
|
894
957
|
flex: 1;
|
|
@@ -902,64 +965,6 @@
|
|
|
902
965
|
width: 100%;
|
|
903
966
|
display: flex;
|
|
904
967
|
}
|
|
905
|
-
.IncodeOtpInputBoxes {
|
|
906
|
-
justify-content: center;
|
|
907
|
-
gap: var(--spacing-4, var(--spacing-4, 4px));
|
|
908
|
-
max-width: 100%;
|
|
909
|
-
display: flex;
|
|
910
|
-
}
|
|
911
|
-
@media (min-width: 400px) {
|
|
912
|
-
.IncodeOtpInputBoxes {
|
|
913
|
-
gap: var(--spacing-12, var(--spacing-12, 12px));
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
.IncodeOtpInputBox {
|
|
917
|
-
text-align: center;
|
|
918
|
-
width: 48px;
|
|
919
|
-
height: 48px;
|
|
920
|
-
font-size: var(--text-24, var(--primitive-typography-size-24));
|
|
921
|
-
--tw-font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
|
|
922
|
-
font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
|
|
923
|
-
border-radius: var(--radius-small, var(--border-radius-small));
|
|
924
|
-
border-style: var(--tw-border-style);
|
|
925
|
-
border-width: 1px;
|
|
926
|
-
border-color: var(--color-input-border-default, var(--input-border-default));
|
|
927
|
-
background-color: var(--color-input-surface-default, var(--input-surface-default));
|
|
928
|
-
color: var(--color-input-text-field-default, var(--input-text-field-default));
|
|
929
|
-
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
|
|
930
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));
|
|
931
|
-
transition-duration: var(--tw-duration, var(--default-transition-duration, .15s));
|
|
932
|
-
--tw-duration: .2s;
|
|
933
|
-
--tw-outline-style: none;
|
|
934
|
-
outline-style: none;
|
|
935
|
-
flex-shrink: 0;
|
|
936
|
-
font-family: inherit;
|
|
937
|
-
transition-duration: .2s;
|
|
938
|
-
}
|
|
939
|
-
@media (min-width: 400px) {
|
|
940
|
-
.IncodeOtpInputBox {
|
|
941
|
-
width: 56px;
|
|
942
|
-
height: 56px;
|
|
943
|
-
}
|
|
944
|
-
}
|
|
945
|
-
.IncodeOtpInputBoxes:focus-within .IncodeOtpInputBox {
|
|
946
|
-
border-style: var(--tw-border-style);
|
|
947
|
-
border-width: 2px;
|
|
948
|
-
border-color: var(--color-input-border-active, var(--input-border-active));
|
|
949
|
-
background-color: var(--color-input-surface-active, var(--input-surface-active));
|
|
950
|
-
}
|
|
951
|
-
.IncodeOtpInputBoxes.IncodeOtpInputBoxesError .IncodeOtpInputBox {
|
|
952
|
-
border-color: var(--color-input-border-negative, var(--input-border-negative));
|
|
953
|
-
}
|
|
954
|
-
.IncodeOtpInputBox::placeholder {
|
|
955
|
-
color: var(--color-input-text-field-placeholder, var(--input-text-field-placeholder));
|
|
956
|
-
}
|
|
957
|
-
.IncodeOtpInputBox:disabled {
|
|
958
|
-
border-color: var(--color-input-border-disabled, var(--input-border-disabled));
|
|
959
|
-
background-color: var(--color-input-surface-disabled, var(--input-surface-disabled));
|
|
960
|
-
cursor: not-allowed;
|
|
961
|
-
color: var(--color-input-text-field-disabled, var(--input-text-field-disabled));
|
|
962
|
-
}
|
|
963
968
|
.IncodeOtpInputError {
|
|
964
969
|
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
965
970
|
text-align: center;
|
|
@@ -974,14 +979,6 @@
|
|
|
974
979
|
width: 100%;
|
|
975
980
|
display: flex;
|
|
976
981
|
}
|
|
977
|
-
.IncodeOtpInputTimer {
|
|
978
|
-
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
979
|
-
text-align: center;
|
|
980
|
-
font-size: var(--text-18, var(--primitive-typography-size-18));
|
|
981
|
-
--tw-font-weight: var(--font-weight-normal, 400);
|
|
982
|
-
font-weight: var(--font-weight-normal, 400);
|
|
983
|
-
color: var(--color-text-body-tertiary, var(--text-body-300-tertiary));
|
|
984
|
-
}
|
|
985
982
|
.IncodeOtpInputResendText {
|
|
986
983
|
margin: var(--spacing-0, var(--spacing-none, 0px));
|
|
987
984
|
text-align: center;
|
|
@@ -1013,6 +1010,17 @@
|
|
|
1013
1010
|
cursor: not-allowed;
|
|
1014
1011
|
color: var(--color-text-body-tertiary, var(--text-body-300-tertiary));
|
|
1015
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
|
+
}
|
|
1016
1024
|
.IncodePageContainer {
|
|
1017
1025
|
background-color: var(--color-surface-neutral-0, var(--surface-neutral-0));
|
|
1018
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
|
] }) });
|