@incodetech/web 0.0.0-dev-20260407-4580f1c → 0.0.0-dev-20260407-2c382da
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/AsYouType-D1H_js4X.js +2607 -0
- package/dist/Trans-aTzdT_SA.js +55 -0
- package/dist/addressAutocomplete-C8-wL1j_.js +153 -0
- package/dist/aligndevicelottie-DlQCRPfM.js +29 -0
- package/dist/antifraud/antifraud.es.js +18 -17
- package/dist/antifraud/styles.css +1 -1
- package/dist/authentication/authentication.es.js +50 -28
- package/dist/back-horizontal-hint-CSlf9KI1.js +5 -0
- package/dist/back-tutorial-An9AcMSe.js +29 -0
- package/dist/back-vertical-hint-CNieqiCr.js +5 -0
- package/dist/backdevicelottie-B4NgyWmX.js +29 -0
- package/dist/base.css +67 -327
- package/dist/blurdevicelottie-_BZRug1c.js +29 -0
- package/dist/browser-ponyfill-B6W6hHVY.js +344 -0
- package/dist/button-CE9kRlem.js +184 -0
- package/dist/cameraView-C2X7klNb.js +55 -0
- package/dist/captureOverlay-tCb4R4WE.js +592 -0
- package/dist/checkbox-B5X-mfqq.js +137 -0
- package/dist/chevronDown-DSHaPKbi.js +23 -0
- package/dist/closeIcon-9Hc97omv.js +28 -0
- package/dist/consent/consent.es.js +89 -82
- package/dist/consent/styles.css +1 -1
- package/dist/countries-DfLkrF0x.js +616 -0
- package/dist/curp-validation/curp-validation.es.js +313 -271
- package/dist/curp-validation/styles.css +1 -1
- package/dist/dateInputComposed-C7PCzh-U.js +173 -0
- package/dist/document-capture/styles.css +1 -1
- package/dist/documentCapture-C0mO-RGE.js +692 -0
- package/dist/dropdownComposed-BpinYlrx.js +367 -0
- package/dist/ekyb/styles.css +1 -1
- package/dist/ekybModule-Dr6LJUg-.js +357 -0
- package/dist/ekyc/styles.css +1 -1
- package/dist/ekycModule-C3mswduI.js +291 -0
- package/dist/email/email.es.js +154 -110
- package/dist/email/styles.css +1 -1
- package/dist/errorContent-Cb8nmQAE.js +44 -0
- package/dist/errorIcon-DEARBrGx.js +26 -0
- package/dist/extensibility.es.js +150 -22
- package/dist/face-match/styles.css +73 -147
- package/dist/faceMatch-DbDp7D3d.js +237 -0
- package/dist/fileIcon-CCSvS10T.js +52 -0
- package/dist/flip-animation-COR596wy.js +29 -0
- package/dist/flipAnimation-BqV462TA.js +2059 -0
- package/dist/flow/flow.es.js +2613 -2273
- package/dist/flow/styles.css +73 -432
- package/dist/formField-CP6wDdfA.js +106 -0
- package/dist/front-horizontal-hint-lRLKd7vY.js +7 -0
- package/dist/front-vertical-hint-qQoJXRE3.js +7 -0
- package/dist/frontdevicelottie-KhKxT5n9.js +29 -0
- package/dist/geolocation/geolocation.es.js +832 -852
- package/dist/geolocation/styles.css +1 -1
- package/dist/glaredevicelottie-DLuIStvb.js +29 -0
- package/dist/governmentValidation/governmentValidation.es.js +106 -100
- package/dist/governmentValidation/styles.css +1 -1
- package/dist/id/id.es.js +59 -53
- package/dist/id/styles.css +1 -1
- package/dist/id-laser-h-BBV3r3rz.js +29 -0
- package/dist/id-laser-v-BTHJaSfx.js +29 -0
- package/dist/id-tutorial-B-F5Q28m.js +29 -0
- package/dist/incodeModule-C4XIllao.js +96 -0
- package/dist/index.es.js +25 -4
- package/dist/inputComposed-fUbAGrDy.js +103 -0
- package/dist/instance-BWYzq8dk.js +2163 -0
- package/dist/loadingIcon-DmuPXh70.js +195 -0
- package/dist/mandatoryConsent-5xPI0cor.js +94 -0
- package/dist/manualCaptureButton-BvFmTyJe.js +372 -0
- package/dist/numberedStep-DwUB__mh.js +5 -0
- package/dist/otpInput-BFXhqFRT.js +156 -0
- package/dist/page-SrUl0qtN.js +69 -0
- package/dist/passport-horizontal-hint-BCtpMp1Y.js +5 -0
- package/dist/passport-tutorial-CaYBFTqt.js +29 -0
- package/dist/passport-vertical-hint-GaLnzqHP.js +5 -0
- package/dist/permissions-DT4Fz9MR.js +709 -0
- package/dist/phone/phone.es.js +121 -87
- package/dist/phone/styles.css +1 -1
- package/dist/phoneInput-CGr8TxOO.js +158 -0
- package/dist/phoneInputComposed-Cm9O2Jba.js +206 -0
- package/dist/processing-szVOCQwZ.js +19 -0
- package/dist/redirect-to-mobile/styles.css +1 -1
- package/dist/richText-cspvNz2a.js +1807 -0
- package/dist/selfie/selfie.es.js +50 -29
- package/dist/selfie/styles.css +66 -170
- package/dist/selfieTutorial-Dm_p0ke9.js +29 -0
- package/dist/signature/signature.es.js +707 -557
- package/dist/signature/styles.css +1 -1
- package/dist/spinner-DygONskw.js +60 -0
- package/dist/successIcon-Bjsdc4lF.js +26 -0
- package/dist/tutorial-Cdz1025D.js +473 -0
- package/dist/types/ekyb/styles.d.ts +1 -0
- package/dist/types/ekyc/styles.d.ts +1 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/typography-BDACYR5i.js +14 -0
- package/dist/uiConfig-Dnt-2YWB.js +23 -0
- package/dist/useMediaQuery-lJdQBmC2.js +18 -0
- package/dist/vendor-preact-BoMmvSgn.js +694 -0
- package/dist/warningIcon-DQq_MrOB.js +26 -0
- package/package.json +11 -8
- package/dist/AsYouType-DPWqJvFu.js +0 -2482
- package/dist/addressAutocomplete-B3f6PGTT.js +0 -108
- package/dist/aligndevicelottie-C9xl1spu.js +0 -12757
- package/dist/back-horizontal-hint-Be3dUGk6.js +0 -137
- package/dist/back-tutorial-BNTyW-1N.js +0 -14584
- package/dist/back-vertical-hint-Bz_rnhd-.js +0 -128
- package/dist/backdevicelottie-DBB1YCtW.js +0 -16678
- package/dist/blurdevicelottie-9WvZCZ6C.js +0 -15939
- package/dist/browser-ponyfill-B4Qc6yfW.js +0 -299
- package/dist/button-DhL5eRT3.js +0 -123
- package/dist/checkbox-l8NxPf4o.js +0 -85
- package/dist/countries-y2ydYDhN.js +0 -8323
- package/dist/dateInputComposed-B9WqdYx9.js +0 -2
- package/dist/dateInputComposed-ndsGHX1M.js +0 -94
- package/dist/defineProperty-brqHEHA_.js +0 -39
- package/dist/documentCapture-wDgRLdon.js +0 -784
- package/dist/dropdownComposed-_Ey7wJNG.js +0 -258
- package/dist/ekyb/ekyb.es.js +0 -2
- package/dist/ekybModule-BBOm1y49.js +0 -2
- package/dist/ekybModule-fz6i9ZRt.js +0 -286
- package/dist/ekyc/ekyc.es.js +0 -2
- package/dist/ekycModule-SeTFG3AJ.js +0 -233
- package/dist/ekycModule-hxIcNX8n.js +0 -2
- package/dist/extensibility-DJihqIzM.js +0 -2248
- package/dist/faceMatch-DH8sLx34.js +0 -191
- package/dist/flip-animation-DOJzdXB-.js +0 -6983
- package/dist/formField-BRTbY8w9.js +0 -100
- package/dist/front-horizontal-hint-aGAhadA2.js +0 -380
- package/dist/front-vertical-hint-DZz1VeNp.js +0 -420
- package/dist/frontdevicelottie-DadDp6be.js +0 -17302
- package/dist/glaredevicelottie-BfI84cPw.js +0 -14466
- package/dist/i18n-DZOHbK9q.js +0 -1916
- package/dist/icons-BHbofCgJ.js +0 -245
- package/dist/id-laser-h-BWyU3VgL.js +0 -467
- package/dist/id-laser-v-JiWXUlv0.js +0 -467
- package/dist/id-tutorial-Cc9xg5_J.js +0 -13152
- package/dist/incodeModule-Bf6yJ8RB.js +0 -18
- package/dist/inputComposed-BhbfD8Ru.js +0 -77
- package/dist/loadingIcon-CeQt7Zgb.js +0 -146
- package/dist/mandatoryConsent-LBS8E0rj.js +0 -101
- package/dist/numberedStep-CQVRixRP.js +0 -11
- package/dist/otpInput-CDIG9el7.js +0 -143
- package/dist/page-SvlJWUfz.js +0 -61
- package/dist/passport-horizontal-hint-CFsGs7Dp.js +0 -293
- package/dist/passport-tutorial-z0LN7Hsp.js +0 -11688
- package/dist/passport-vertical-hint-BnCpKWeN.js +0 -267
- package/dist/phoneInput-C9T_8FJt.js +0 -138
- package/dist/phoneInputComposed-B-0zieIW.js +0 -407
- package/dist/processing-B5zhNH6I.js +0 -15
- package/dist/richText-Db0PfpkE.js +0 -1973
- package/dist/rolldown-runtime-CjdbFOpI.js +0 -13
- package/dist/selfieTutorial-B0MIyPrk.js +0 -2676
- package/dist/setup-Dq2bzNKH.js +0 -15
- package/dist/spacer-DCljE53A.js +0 -59
- package/dist/spinner-Bk0YuoLu.js +0 -1
- package/dist/spinner-snIGzmm8.js +0 -41
- package/dist/successIcon-AHrfmJvv.js +0 -17
- package/dist/tutorial-DNOd11tg.js +0 -2780
- package/dist/types/ekyb.d.ts +0 -29
- package/dist/types/ekyc.d.ts +0 -29
- package/dist/typography-BNbFNFek.js +0 -1
- package/dist/typography-DvHeVWfY.js +0 -29
- package/dist/uiConfig-CwpQ-IM6.js +0 -20
- package/dist/vendor-preact-D6SntenC.js +0 -958
- package/dist/warningIcon-Cvj-ayg1.js +0 -17
|
@@ -1,271 +1,313 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import "../
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import "../dateInputComposed-
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
1
|
+
import { b as I, u as e, S as u, I as S, a as N } from "../loadingIcon-DmuPXh70.js";
|
|
2
|
+
import { mexicanStates as G, createCurpValidationManager as R } from "@incodetech/core/curp-validation";
|
|
3
|
+
import { k as y } from "../vendor-preact-BoMmvSgn.js";
|
|
4
|
+
import "@incodetech/core";
|
|
5
|
+
import "../instance-BWYzq8dk.js";
|
|
6
|
+
import { B as h } from "../button-CE9kRlem.js";
|
|
7
|
+
import { E as U } from "../errorIcon-DEARBrGx.js";
|
|
8
|
+
import { S as D } from "../successIcon-Bjsdc4lF.js";
|
|
9
|
+
import { P as p } from "../page-SrUl0qtN.js";
|
|
10
|
+
import { S as k } from "../spinner-DygONskw.js";
|
|
11
|
+
import { r as E } from "../incodeModule-C4XIllao.js";
|
|
12
|
+
import { a as C } from "../inputComposed-fUbAGrDy.js";
|
|
13
|
+
import { D as F } from "../dateInputComposed-C7PCzh-U.js";
|
|
14
|
+
import { D as P } from "../dropdownComposed-BpinYlrx.js";
|
|
15
|
+
const T = ({
|
|
16
|
+
curp: i,
|
|
17
|
+
isValid: d,
|
|
18
|
+
onCurpChange: o,
|
|
19
|
+
onVerify: a,
|
|
20
|
+
onSwitchToGenerate: t,
|
|
21
|
+
disabled: s = !1,
|
|
22
|
+
placeholder: r,
|
|
23
|
+
continueLabel: m,
|
|
24
|
+
dontHaveLabel: n
|
|
25
|
+
}) => {
|
|
26
|
+
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";
|
|
27
|
+
return /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpInput", children: [
|
|
28
|
+
/* @__PURE__ */ e(
|
|
29
|
+
C,
|
|
30
|
+
{
|
|
31
|
+
id: "curp-input",
|
|
32
|
+
label: "",
|
|
33
|
+
value: i,
|
|
34
|
+
onInput: (V) => {
|
|
35
|
+
const L = V.target;
|
|
36
|
+
o(L.value.toUpperCase());
|
|
37
|
+
},
|
|
38
|
+
placeholder: f,
|
|
39
|
+
disabled: s,
|
|
40
|
+
maxLength: 18,
|
|
41
|
+
"aria-label": b
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
/* @__PURE__ */ e(u, {}),
|
|
45
|
+
/* @__PURE__ */ e(
|
|
46
|
+
h,
|
|
47
|
+
{
|
|
48
|
+
type: "button",
|
|
49
|
+
onClick: a,
|
|
50
|
+
disabled: !d || s,
|
|
51
|
+
"data-testid": "curp-verify",
|
|
52
|
+
children: g
|
|
53
|
+
}
|
|
54
|
+
),
|
|
55
|
+
/* @__PURE__ */ e(
|
|
56
|
+
h,
|
|
57
|
+
{
|
|
58
|
+
type: "button",
|
|
59
|
+
onClick: t,
|
|
60
|
+
disabled: s,
|
|
61
|
+
"data-testid": "curp-switch-to-generate",
|
|
62
|
+
class: "IncodeCurpInputDontHaveButton",
|
|
63
|
+
children: l
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] });
|
|
67
|
+
}, w = ({
|
|
68
|
+
form: i,
|
|
69
|
+
isValid: d,
|
|
70
|
+
onFormChange: o,
|
|
71
|
+
onGenerate: a,
|
|
72
|
+
disabled: t = !1,
|
|
73
|
+
labels: s
|
|
74
|
+
}) => {
|
|
75
|
+
const { t: r } = I(), n = { ...{
|
|
76
|
+
firstName: r("curp.labels.firstName") ?? "Your First name",
|
|
77
|
+
firstLast: r("curp.labels.firstLast") ?? "Your First last name",
|
|
78
|
+
secondLast: r("curp.labels.secondLast") ?? "Your Second last name",
|
|
79
|
+
gender: r("curp.labels.genderV2") ?? "Gender",
|
|
80
|
+
genderPlaceholder: r("curp.placeholder.gender") ?? "Choose gender",
|
|
81
|
+
male: r("curp.labels.maleV2") ?? "Male",
|
|
82
|
+
female: r("curp.labels.femaleV2") ?? "Female",
|
|
83
|
+
other: r("curp.labels.other") ?? "Other",
|
|
84
|
+
dob: r("curp.labels.dob") ?? "Date of birth",
|
|
85
|
+
birthState: r("curp.labels.birthState") ?? "State of birth",
|
|
86
|
+
statePlaceholder: r("curp.placeholder.state") ?? "Select state",
|
|
87
|
+
generate: r("curp.generateCta") ?? "Generate CURP"
|
|
88
|
+
}, ...s }, c = (l) => (b) => {
|
|
89
|
+
const v = b.target;
|
|
90
|
+
o({ [l]: v.value });
|
|
91
|
+
}, f = [
|
|
92
|
+
{ value: "H", label: n.male },
|
|
93
|
+
{ value: "M", label: n.female },
|
|
94
|
+
{ value: "X", label: n.other }
|
|
95
|
+
], g = G.map((l) => ({
|
|
96
|
+
value: l.value,
|
|
97
|
+
label: l.label
|
|
98
|
+
}));
|
|
99
|
+
return /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeGenerateCurpForm", children: [
|
|
100
|
+
/* @__PURE__ */ e(
|
|
101
|
+
C,
|
|
102
|
+
{
|
|
103
|
+
id: "curp-first-name",
|
|
104
|
+
label: n.firstName,
|
|
105
|
+
value: i.name,
|
|
106
|
+
onInput: c("name"),
|
|
107
|
+
placeholder: n.firstName,
|
|
108
|
+
disabled: t,
|
|
109
|
+
autoComplete: "given-name"
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
/* @__PURE__ */ e(
|
|
113
|
+
C,
|
|
114
|
+
{
|
|
115
|
+
id: "curp-first-last",
|
|
116
|
+
label: n.firstLast,
|
|
117
|
+
value: i.firstLastName,
|
|
118
|
+
onInput: c("firstLastName"),
|
|
119
|
+
placeholder: n.firstLast,
|
|
120
|
+
disabled: t
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
/* @__PURE__ */ e(
|
|
124
|
+
C,
|
|
125
|
+
{
|
|
126
|
+
id: "curp-second-last",
|
|
127
|
+
label: n.secondLast,
|
|
128
|
+
value: i.secondLastName,
|
|
129
|
+
onInput: c("secondLastName"),
|
|
130
|
+
placeholder: n.secondLast,
|
|
131
|
+
disabled: t
|
|
132
|
+
}
|
|
133
|
+
),
|
|
134
|
+
/* @__PURE__ */ e(
|
|
135
|
+
P,
|
|
136
|
+
{
|
|
137
|
+
id: "curp-gender",
|
|
138
|
+
label: n.gender,
|
|
139
|
+
placeholder: n.genderPlaceholder,
|
|
140
|
+
value: i.gender,
|
|
141
|
+
options: f,
|
|
142
|
+
disabled: t,
|
|
143
|
+
onChange: (l) => o({ gender: l }),
|
|
144
|
+
"data-testid": "curp-gender"
|
|
145
|
+
}
|
|
146
|
+
),
|
|
147
|
+
/* @__PURE__ */ e(
|
|
148
|
+
F,
|
|
149
|
+
{
|
|
150
|
+
id: "curp-birth-date",
|
|
151
|
+
label: n.dob,
|
|
152
|
+
value: i.birthDate,
|
|
153
|
+
onInput: c("birthDate"),
|
|
154
|
+
max: (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
|
|
155
|
+
placeholder: r("curp.placeholder.dob") ?? "mm/dd/yyyy",
|
|
156
|
+
disabled: t,
|
|
157
|
+
"data-testid": "curp-birth-date"
|
|
158
|
+
}
|
|
159
|
+
),
|
|
160
|
+
/* @__PURE__ */ e(
|
|
161
|
+
P,
|
|
162
|
+
{
|
|
163
|
+
id: "curp-birth-state",
|
|
164
|
+
label: n.birthState,
|
|
165
|
+
placeholder: n.statePlaceholder,
|
|
166
|
+
value: i.birthState,
|
|
167
|
+
options: g,
|
|
168
|
+
disabled: t,
|
|
169
|
+
onChange: (l) => o({ birthState: l }),
|
|
170
|
+
"data-testid": "curp-birth-state",
|
|
171
|
+
searchable: !0
|
|
172
|
+
}
|
|
173
|
+
),
|
|
174
|
+
/* @__PURE__ */ e(u, { size: 16 }),
|
|
175
|
+
/* @__PURE__ */ e(
|
|
176
|
+
h,
|
|
177
|
+
{
|
|
178
|
+
type: "button",
|
|
179
|
+
onClick: a,
|
|
180
|
+
disabled: !d || t,
|
|
181
|
+
"data-testid": "curp-generate",
|
|
182
|
+
children: n.generate
|
|
183
|
+
}
|
|
184
|
+
)
|
|
185
|
+
] });
|
|
186
|
+
}, H = ({
|
|
187
|
+
config: i,
|
|
188
|
+
onFinish: d,
|
|
189
|
+
onError: o
|
|
190
|
+
}) => {
|
|
191
|
+
const { t: a } = I(), [t, s] = N(() => {
|
|
192
|
+
if (!i)
|
|
193
|
+
throw new Error("CURP validation config is required");
|
|
194
|
+
return R({ config: i });
|
|
195
|
+
});
|
|
196
|
+
if (t.status === "idle" || t.status === "loading" || t.status === "verifying" || t.status === "generating") {
|
|
197
|
+
const r = t.status === "generating" ? a("curp.status.generating") ?? "Generating..." : a("curp.status.verifying") ?? "Verifying...";
|
|
198
|
+
return /* @__PURE__ */ e(p, { className: "IncodeCurpValidationPage", children: /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpLoading", children: /* @__PURE__ */ e(k, { title: r, fullScreen: !1 }) }) });
|
|
199
|
+
}
|
|
200
|
+
if (t.status === "enterCurp")
|
|
201
|
+
return /* @__PURE__ */ e(
|
|
202
|
+
p,
|
|
203
|
+
{
|
|
204
|
+
className: "IncodeCurpValidationPage",
|
|
205
|
+
title: a("curp.enterCurp") ?? "Enter your CURP",
|
|
206
|
+
children: /* @__PURE__ */ e(
|
|
207
|
+
T,
|
|
208
|
+
{
|
|
209
|
+
curp: t.curp,
|
|
210
|
+
isValid: t.isValid,
|
|
211
|
+
onCurpChange: (r) => s.setCurp(r),
|
|
212
|
+
onVerify: () => s.verify(),
|
|
213
|
+
onSwitchToGenerate: () => s.switchToGenerate(),
|
|
214
|
+
placeholder: a("curp.placeholder.curp") ?? "CURP",
|
|
215
|
+
continueLabel: a("curp.continue") ?? "Continue",
|
|
216
|
+
dontHaveLabel: a("curp.dontHave") ?? "I don't have my CURP"
|
|
217
|
+
}
|
|
218
|
+
)
|
|
219
|
+
}
|
|
220
|
+
);
|
|
221
|
+
if (t.status === "generateCurp")
|
|
222
|
+
return /* @__PURE__ */ e(
|
|
223
|
+
p,
|
|
224
|
+
{
|
|
225
|
+
className: "IncodeCurpValidationPage",
|
|
226
|
+
title: a("curp.generate") ?? "Generate your CURP",
|
|
227
|
+
children: /* @__PURE__ */ e(
|
|
228
|
+
w,
|
|
229
|
+
{
|
|
230
|
+
form: t.form,
|
|
231
|
+
isValid: t.isValid,
|
|
232
|
+
onFormChange: (r) => s.setGenerateForm(r),
|
|
233
|
+
onGenerate: () => s.generate()
|
|
234
|
+
}
|
|
235
|
+
)
|
|
236
|
+
}
|
|
237
|
+
);
|
|
238
|
+
if (t.status === "confirmCurp")
|
|
239
|
+
return /* @__PURE__ */ e(
|
|
240
|
+
p,
|
|
241
|
+
{
|
|
242
|
+
className: "IncodeCurpValidationPage",
|
|
243
|
+
title: a("curp.status.confirm") ?? "Confirm your CURP",
|
|
244
|
+
children: /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpConfirm", children: [
|
|
245
|
+
/* @__PURE__ */ e(
|
|
246
|
+
"input",
|
|
247
|
+
{
|
|
248
|
+
type: "text",
|
|
249
|
+
class: "IncodeCurpConfirmInput",
|
|
250
|
+
value: t.curp,
|
|
251
|
+
readOnly: !0,
|
|
252
|
+
"aria-label": a("curp.status.generatedCurp") ?? "Generated CURP"
|
|
253
|
+
}
|
|
254
|
+
),
|
|
255
|
+
/* @__PURE__ */ e(u, {}),
|
|
256
|
+
/* @__PURE__ */ e(
|
|
257
|
+
h,
|
|
258
|
+
{
|
|
259
|
+
type: "button",
|
|
260
|
+
onClick: () => s.confirmGenerated(),
|
|
261
|
+
"data-testid": "curp-confirm",
|
|
262
|
+
children: a("curp.continue") ?? "Continue"
|
|
263
|
+
}
|
|
264
|
+
)
|
|
265
|
+
] })
|
|
266
|
+
}
|
|
267
|
+
);
|
|
268
|
+
if (t.status === "success")
|
|
269
|
+
return /* @__PURE__ */ e(p, { className: "IncodeCurpValidationPage", children: /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpSuccess", children: [
|
|
270
|
+
/* @__PURE__ */ e(D, { size: 32 }),
|
|
271
|
+
/* @__PURE__ */ e(u, { size: 16 }),
|
|
272
|
+
/* @__PURE__ */ e("h2", { class: "IncodeCurpSuccessTitle", children: a("curp.status.verified") ?? "Verified" })
|
|
273
|
+
] }) });
|
|
274
|
+
if (t.status === "failure" || t.status === "generateError") {
|
|
275
|
+
const r = t.retriesLeft > 0, m = t.status === "failure" ? a("curp.status.notVerified") ?? "Not verified" : a("curp.status.couldntGenerate") ?? "Couldn't generate CURP";
|
|
276
|
+
return /* @__PURE__ */ e(p, { className: "IncodeCurpValidationPage", children: /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpFailure", children: [
|
|
277
|
+
/* @__PURE__ */ e(u, {}),
|
|
278
|
+
/* @__PURE__ */ e(U, { size: 32 }),
|
|
279
|
+
/* @__PURE__ */ e(u, { size: 16 }),
|
|
280
|
+
/* @__PURE__ */ e("h2", { class: "IncodeCurpFailureTitle", children: m }),
|
|
281
|
+
t.status === "generateError" && r && /* @__PURE__ */ e(y, { children: [
|
|
282
|
+
/* @__PURE__ */ e(u, { size: 12 }),
|
|
283
|
+
/* @__PURE__ */ e("p", { class: "IncodeCurpFailureHint", children: a("curp.status.checkInfo") ?? "Please check your information" })
|
|
284
|
+
] }),
|
|
285
|
+
/* @__PURE__ */ e(u, {}),
|
|
286
|
+
r && /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(
|
|
287
|
+
h,
|
|
288
|
+
{
|
|
289
|
+
type: "button",
|
|
290
|
+
onClick: () => s.retry(),
|
|
291
|
+
"data-testid": "curp-retry",
|
|
292
|
+
children: t.status === "failure" ? a("curp.status.tryAgain") ?? "Try again" : a("curp.status.edit") ?? "Edit information"
|
|
293
|
+
}
|
|
294
|
+
) })
|
|
295
|
+
] }) });
|
|
296
|
+
}
|
|
297
|
+
return t.status === "finished" ? (d?.(), null) : (t.status === "closed" && o?.(void 0), null);
|
|
298
|
+
}, z = ({
|
|
299
|
+
config: i,
|
|
300
|
+
onFinish: d,
|
|
301
|
+
onError: o
|
|
302
|
+
}) => /* @__PURE__ */ e(S, { children: i ? /* @__PURE__ */ e(
|
|
303
|
+
H,
|
|
304
|
+
{
|
|
305
|
+
config: i,
|
|
306
|
+
onFinish: d,
|
|
307
|
+
onError: o
|
|
308
|
+
}
|
|
309
|
+
) : null });
|
|
310
|
+
E(z, "incode-curp-validation");
|
|
311
|
+
export {
|
|
312
|
+
z as CurpValidation
|
|
313
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.
|
|
1
|
+
/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties {
|
|
3
3
|
@supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
|
|
4
4
|
*, :before, :after, ::backdrop {
|