@incodetech/web 0.0.0-dev-20260313-486e658 → 0.0.0-dev-20260313-bc2dab4
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-BtKe6-rC.js → AsYouType-CpH-Rmtj.js} +1 -1
- package/dist/{Trans-C2X8WLEu.js → Trans-CA9a3vKp.js} +1 -1
- package/dist/authentication/authentication.es.js +25 -20
- package/dist/base.css +9 -4
- package/dist/{browser-ponyfill-CLXJUgvu.js → browser-ponyfill-B6W6hHVY.js} +49 -46
- package/dist/{incodeModule-DLGHhn9E.js → button-Ca1tRSTI.js} +153 -239
- package/dist/{captureFooter-C2Yrou50.js → captureFooter-X2qN1773.js} +72 -70
- package/dist/{chevronDown-D5uHEaU-.js → chevronDown-BUaOuf9J.js} +1 -1
- package/dist/{closeIcon-BMPoRQCd.js → closeIcon-BM7WLbKp.js} +1 -1
- package/dist/{countries-3p5tkqcx.js → countries-C9bhJe4u.js} +3 -3
- package/dist/curp-validation/curp-validation.es.js +26 -25
- package/dist/{dateInputComposed-CqHIiKPV.js → dateInputComposed-CvFmQpJ0.js} +11 -10
- package/dist/document-capture/styles.css +1 -0
- package/dist/{documentCapture-CzGmGxzA.js → documentCapture-PdKA2frR.js} +113 -157
- package/dist/{dropdownComposed-BgGKKaXv.js → dropdownComposed-DBm7cotT.js} +8 -6
- package/dist/{ekybModule-Bttpjr3j.js → ekybModule-DiFpO2sE.js} +16 -14
- package/dist/ekycModule-DdD1iChB.js +370 -0
- package/dist/email/email.es.js +86 -63
- package/dist/{errorContent-6xl4ArMV.js → errorContent-yUAdbZ5o.js} +5 -5
- package/dist/{errorIcon-Cxcv4ISP.js → errorIcon-BL647nVh.js} +1 -1
- package/dist/extensibility.es.js +290 -0
- package/dist/face-match/styles.css +8 -0
- package/dist/{faceMatch-DKqzUCml.js → faceMatch-BjdNG_e0.js} +12 -11
- package/dist/fileIcon-DOyMcRWU.js +52 -0
- package/dist/flipAnimation-DoMQoFPb.js +1355 -0
- package/dist/flow/flow.es.js +157 -157
- package/dist/flow/styles.css +15 -3
- package/dist/formField-C91ckby4.js +94 -0
- package/dist/geolocation/geolocation.es.js +15 -14
- package/dist/governmentValidation/governmentValidation.es.js +19 -18
- package/dist/id/id.es.js +30 -1354
- package/dist/id/styles.css +2 -0
- package/dist/incodeModule-aE-LkKwM.js +96 -0
- package/dist/index.es.js +7 -7
- package/dist/{otpInput-BT0ZXrAt.js → otpInput-cazUY73p.js} +1 -1
- package/dist/{page-BJDfLRpO.js → page-BVHG3h0V.js} +1 -1
- package/dist/permissions-DwF2Ez1N.js +754 -0
- package/dist/phone/phone.es.js +53 -30
- package/dist/{phoneInput-d3sq4X5R.js → phoneInput-Duuochsh.js} +4 -4
- package/dist/phoneInputComposed-B1gXoSzr.js +107 -0
- package/dist/{processing-CGb_3dSE.js → processing-CDgOueI3.js} +3 -3
- package/dist/selfie/selfie.es.js +29 -18
- package/dist/selfie/styles.css +12 -3
- package/dist/{spinner--i134wYq.js → spinner-Cx3FPUCD.js} +13 -11
- package/dist/{successIcon-1BcPFhum.js → successIcon-BybULRRU.js} +1 -1
- package/dist/{tutorial-DXgOS41l.js → tutorial-Dagmccxh.js} +21 -21
- package/dist/types/authentication.d.ts +10 -3
- package/dist/types/curp-validation.d.ts +5 -1
- package/dist/types/email.d.ts +8 -3
- package/dist/types/extensibility.d.ts +671 -0
- package/dist/types/flow.d.ts +5 -1
- package/dist/types/geolocation.d.ts +5 -1
- package/dist/types/governmentValidation.d.ts +5 -1
- package/dist/types/id.d.ts +8 -3
- package/dist/types/phone.d.ts +8 -3
- package/dist/types/selfie.d.ts +8 -3
- package/dist/{uiConfig-DisZ_yFB.js → uiConfig-Z6RT23Sl.js} +3 -3
- package/dist/useFormScrollable-3O3GeT4m.js +15 -0
- package/dist/{warningIcon-WqI5X7cK.js → warningIcon-DyoKeqDd.js} +1 -1
- package/package.json +6 -2
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
- package/dist/baseTutorial-hbezn8sT.js +0 -755
- package/dist/ekycModule-DfwZMKdL.js +0 -467
- package/dist/verificationResult-CKZqPXb9.js +0 -106
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as e, d, S as s, b as C, B as u } from "./
|
|
2
|
-
import {
|
|
3
|
-
import "./uiConfig-
|
|
1
|
+
import { u as e, d, S as s, b as C, B as u } from "./button-Ca1tRSTI.js";
|
|
2
|
+
import { k as h, D as p, A as v, y as m } from "./vendor-preact-BXf0bkEs.js";
|
|
3
|
+
import "./uiConfig-Z6RT23Sl.js";
|
|
4
4
|
const I = ({
|
|
5
|
-
className:
|
|
5
|
+
className: a
|
|
6
6
|
}) => /* @__PURE__ */ e(
|
|
7
7
|
"svg",
|
|
8
8
|
{
|
|
@@ -11,7 +11,7 @@ const I = ({
|
|
|
11
11
|
viewBox: "0 0 68 68",
|
|
12
12
|
fill: "none",
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
-
class:
|
|
14
|
+
class: a,
|
|
15
15
|
"aria-hidden": "true",
|
|
16
16
|
children: [
|
|
17
17
|
/* @__PURE__ */ e(
|
|
@@ -26,7 +26,7 @@ const I = ({
|
|
|
26
26
|
/* @__PURE__ */ e("circle", { cx: "33.5926", cy: "33.9996", r: "25.4187", fill: "white" })
|
|
27
27
|
]
|
|
28
28
|
}
|
|
29
|
-
), w = ({ className:
|
|
29
|
+
), w = ({ className: a }) => /* @__PURE__ */ e(
|
|
30
30
|
"svg",
|
|
31
31
|
{
|
|
32
32
|
width: "30",
|
|
@@ -34,7 +34,7 @@ const I = ({
|
|
|
34
34
|
viewBox: "0 0 30 30",
|
|
35
35
|
fill: "none",
|
|
36
36
|
xmlns: "http://www.w3.org/2000/svg",
|
|
37
|
-
class:
|
|
37
|
+
class: a,
|
|
38
38
|
"aria-hidden": "true",
|
|
39
39
|
children: [
|
|
40
40
|
/* @__PURE__ */ e(
|
|
@@ -57,7 +57,7 @@ const I = ({
|
|
|
57
57
|
)
|
|
58
58
|
]
|
|
59
59
|
}
|
|
60
|
-
), f = ({ className:
|
|
60
|
+
), f = ({ className: a }) => /* @__PURE__ */ e(
|
|
61
61
|
"svg",
|
|
62
62
|
{
|
|
63
63
|
width: "16",
|
|
@@ -65,7 +65,7 @@ const I = ({
|
|
|
65
65
|
viewBox: "0 0 16 16",
|
|
66
66
|
fill: "none",
|
|
67
67
|
xmlns: "http://www.w3.org/2000/svg",
|
|
68
|
-
class:
|
|
68
|
+
class: a,
|
|
69
69
|
"aria-hidden": "true",
|
|
70
70
|
children: /* @__PURE__ */ e(
|
|
71
71
|
"path",
|
|
@@ -76,34 +76,8 @@ const I = ({
|
|
|
76
76
|
)
|
|
77
77
|
}
|
|
78
78
|
), H = ({
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
videoRef: l,
|
|
82
|
-
className: c,
|
|
83
|
-
...i
|
|
84
|
-
}) => {
|
|
85
|
-
const o = h(null), t = (n) => {
|
|
86
|
-
o.current = n, typeof l == "function" ? l(n) : l && (l.current = n);
|
|
87
|
-
};
|
|
88
|
-
return p(() => {
|
|
89
|
-
o.current && r && (o.current.srcObject = r, o.current.play().catch(() => {
|
|
90
|
-
}));
|
|
91
|
-
}, [r]), /* @__PURE__ */ e("div", { class: d("IncodeCameraView", c), ...i, children: [
|
|
92
|
-
/* @__PURE__ */ e("div", { class: "IncodeCameraViewVideo", children: /* @__PURE__ */ e(
|
|
93
|
-
"video",
|
|
94
|
-
{
|
|
95
|
-
ref: t,
|
|
96
|
-
autoplay: !0,
|
|
97
|
-
playsInline: !0,
|
|
98
|
-
muted: !0,
|
|
99
|
-
class: "IncodeCameraViewVideoElement"
|
|
100
|
-
}
|
|
101
|
-
) }),
|
|
102
|
-
a
|
|
103
|
-
] });
|
|
104
|
-
}, b = ({
|
|
105
|
-
progress: r,
|
|
106
|
-
label: a,
|
|
79
|
+
progress: a,
|
|
80
|
+
label: r,
|
|
107
81
|
className: l
|
|
108
82
|
}) => /* @__PURE__ */ e("div", { class: d("IncodeProgressBarContainer", l), children: [
|
|
109
83
|
/* @__PURE__ */ e(
|
|
@@ -111,21 +85,21 @@ const I = ({
|
|
|
111
85
|
{
|
|
112
86
|
class: "IncodeProgressBar",
|
|
113
87
|
role: "progressbar",
|
|
114
|
-
"aria-valuenow":
|
|
88
|
+
"aria-valuenow": a,
|
|
115
89
|
"aria-valuemin": 0,
|
|
116
90
|
"aria-valuemax": 100,
|
|
117
|
-
"aria-label":
|
|
118
|
-
children: /* @__PURE__ */ e("div", { class: "IncodeProgressBarFill", style: { width: `${
|
|
91
|
+
"aria-label": r,
|
|
92
|
+
children: /* @__PURE__ */ e("div", { class: "IncodeProgressBarFill", style: { width: `${a}%` } })
|
|
119
93
|
}
|
|
120
94
|
),
|
|
121
|
-
|
|
95
|
+
r ? /* @__PURE__ */ e(h, { children: [
|
|
122
96
|
/* @__PURE__ */ e(s, { size: 24 }),
|
|
123
|
-
/* @__PURE__ */ e("p", { class: "IncodeProgressBarLabel", children:
|
|
97
|
+
/* @__PURE__ */ e("p", { class: "IncodeProgressBarLabel", children: r })
|
|
124
98
|
] }) : null
|
|
125
|
-
] }),
|
|
99
|
+
] }), b = p(
|
|
126
100
|
({
|
|
127
|
-
variant:
|
|
128
|
-
aspectRatio:
|
|
101
|
+
variant: a,
|
|
102
|
+
aspectRatio: r,
|
|
129
103
|
orientation: l = "horizontal",
|
|
130
104
|
frameState: c = "idle",
|
|
131
105
|
className: i,
|
|
@@ -138,25 +112,25 @@ const I = ({
|
|
|
138
112
|
ref: t,
|
|
139
113
|
class: d(
|
|
140
114
|
"IncodeCameraFrame",
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
115
|
+
a === "fill" && "IncodeCameraFrameFill",
|
|
116
|
+
a === "locked" && "IncodeCameraFrameLocked",
|
|
117
|
+
a === "locked" && l === "horizontal" && "IncodeCameraFrameHorizontal",
|
|
118
|
+
a === "locked" && l === "vertical" && "IncodeCameraFrameVertical",
|
|
145
119
|
n,
|
|
146
120
|
i
|
|
147
121
|
),
|
|
148
|
-
style:
|
|
122
|
+
style: r ? { aspectRatio: r } : void 0,
|
|
149
123
|
"aria-hidden": !0,
|
|
150
124
|
children: o
|
|
151
125
|
}
|
|
152
126
|
);
|
|
153
127
|
}
|
|
154
|
-
),
|
|
155
|
-
children:
|
|
156
|
-
className:
|
|
157
|
-
}) => /* @__PURE__ */ e("div", { class: d("IncodeCameraOverlay",
|
|
158
|
-
title:
|
|
159
|
-
subtitle:
|
|
128
|
+
), B = ({
|
|
129
|
+
children: a,
|
|
130
|
+
className: r
|
|
131
|
+
}) => /* @__PURE__ */ e("div", { class: d("IncodeCameraOverlay", r), children: a }), V = ({
|
|
132
|
+
title: a,
|
|
133
|
+
subtitle: r,
|
|
160
134
|
visible: l = !0,
|
|
161
135
|
className: c
|
|
162
136
|
}) => /* @__PURE__ */ e(
|
|
@@ -168,13 +142,39 @@ const I = ({
|
|
|
168
142
|
c
|
|
169
143
|
),
|
|
170
144
|
children: [
|
|
171
|
-
/* @__PURE__ */ e("div", { class: "IncodeCameraOverlayHeaderTitle", children:
|
|
172
|
-
/* @__PURE__ */ e("div", { class: "IncodeCameraOverlayHeaderSubtitle", children:
|
|
145
|
+
/* @__PURE__ */ e("div", { class: "IncodeCameraOverlayHeaderTitle", children: a || " " }),
|
|
146
|
+
/* @__PURE__ */ e("div", { class: "IncodeCameraOverlayHeaderSubtitle", children: r || " " })
|
|
173
147
|
]
|
|
174
148
|
}
|
|
175
|
-
),
|
|
176
|
-
|
|
177
|
-
|
|
149
|
+
), k = ({
|
|
150
|
+
stream: a,
|
|
151
|
+
children: r,
|
|
152
|
+
videoRef: l,
|
|
153
|
+
className: c,
|
|
154
|
+
...i
|
|
155
|
+
}) => {
|
|
156
|
+
const o = v(null), t = (n) => {
|
|
157
|
+
o.current = n, typeof l == "function" ? l(n) : l && (l.current = n);
|
|
158
|
+
};
|
|
159
|
+
return m(() => {
|
|
160
|
+
o.current && a && (o.current.srcObject = a, o.current.play().catch(() => {
|
|
161
|
+
}));
|
|
162
|
+
}, [a]), /* @__PURE__ */ e("div", { class: d("IncodeCameraView", c), ...i, children: [
|
|
163
|
+
/* @__PURE__ */ e("div", { class: "IncodeCameraViewVideo", children: /* @__PURE__ */ e(
|
|
164
|
+
"video",
|
|
165
|
+
{
|
|
166
|
+
ref: t,
|
|
167
|
+
autoplay: !0,
|
|
168
|
+
playsInline: !0,
|
|
169
|
+
muted: !0,
|
|
170
|
+
class: "IncodeCameraViewVideoElement"
|
|
171
|
+
}
|
|
172
|
+
) }),
|
|
173
|
+
r
|
|
174
|
+
] });
|
|
175
|
+
}, O = ({
|
|
176
|
+
onOpenHelp: a,
|
|
177
|
+
onCapture: r,
|
|
178
178
|
isManualCapture: l,
|
|
179
179
|
captureAriaLabel: c,
|
|
180
180
|
helpAriaLabel: i,
|
|
@@ -187,14 +187,14 @@ const I = ({
|
|
|
187
187
|
/* @__PURE__ */ e(f, { className: "IncodeCaptureFooterEncryptionIcon" }),
|
|
188
188
|
/* @__PURE__ */ e("span", { children: o ?? n("v2.capture.label") })
|
|
189
189
|
] }),
|
|
190
|
-
l &&
|
|
190
|
+
l && r ? /* @__PURE__ */ e("div", { class: "IncodeCaptureFooterCaptureSection", children: [
|
|
191
191
|
t,
|
|
192
192
|
/* @__PURE__ */ e(
|
|
193
193
|
"button",
|
|
194
194
|
{
|
|
195
195
|
type: "button",
|
|
196
196
|
class: "IncodeCaptureFooterCaptureButton",
|
|
197
|
-
onClick:
|
|
197
|
+
onClick: r,
|
|
198
198
|
"aria-label": c ?? n("manualCapture.ariaLabel"),
|
|
199
199
|
"data-testid": "capture-button",
|
|
200
200
|
children: /* @__PURE__ */ e(I, {})
|
|
@@ -205,7 +205,7 @@ const I = ({
|
|
|
205
205
|
u,
|
|
206
206
|
{
|
|
207
207
|
variant: "link",
|
|
208
|
-
onClick:
|
|
208
|
+
onClick: a,
|
|
209
209
|
"aria-label": i ?? n("idv2.needHelp.open"),
|
|
210
210
|
class: "IncodeCaptureFooterHelpButton",
|
|
211
211
|
children: /* @__PURE__ */ e(w, {})
|
|
@@ -214,11 +214,13 @@ const I = ({
|
|
|
214
214
|
] });
|
|
215
215
|
};
|
|
216
216
|
export {
|
|
217
|
-
|
|
217
|
+
B as C,
|
|
218
|
+
w as H,
|
|
218
219
|
f as L,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
220
|
+
H as P,
|
|
221
|
+
b as a,
|
|
222
|
+
k as b,
|
|
223
|
+
V as c,
|
|
224
|
+
O as d,
|
|
225
|
+
I as e
|
|
224
226
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { b as I, u as e, S as u, B as h,
|
|
2
|
-
import { mexicanStates as
|
|
1
|
+
import { b as I, u as e, S as u, B as h, I as S, a as N } from "../button-Ca1tRSTI.js";
|
|
2
|
+
import { mexicanStates as G, createCurpValidationManager as R } from "@incodetech/core/curp-validation";
|
|
3
3
|
import { k as y } from "../vendor-preact-BXf0bkEs.js";
|
|
4
4
|
import "@incodetech/core";
|
|
5
|
-
import "../uiConfig-
|
|
6
|
-
import { E as
|
|
7
|
-
import { S as
|
|
8
|
-
import { P as p } from "../page-
|
|
9
|
-
import { S as
|
|
10
|
-
import {
|
|
11
|
-
import { D as
|
|
5
|
+
import "../uiConfig-Z6RT23Sl.js";
|
|
6
|
+
import { E as U } from "../errorIcon-BL647nVh.js";
|
|
7
|
+
import { S as D } from "../successIcon-BybULRRU.js";
|
|
8
|
+
import { P as p } from "../page-BVHG3h0V.js";
|
|
9
|
+
import { S as k } from "../spinner-Cx3FPUCD.js";
|
|
10
|
+
import { r as E } from "../incodeModule-aE-LkKwM.js";
|
|
11
|
+
import { I as C, D as P } from "../dropdownComposed-DBm7cotT.js";
|
|
12
|
+
import { D as F } from "../dateInputComposed-CvFmQpJ0.js";
|
|
12
13
|
const T = ({
|
|
13
14
|
curp: s,
|
|
14
15
|
isValid: d,
|
|
@@ -17,13 +18,13 @@ const T = ({
|
|
|
17
18
|
onSwitchToGenerate: t,
|
|
18
19
|
disabled: l = !1,
|
|
19
20
|
placeholder: a,
|
|
20
|
-
continueLabel:
|
|
21
|
+
continueLabel: m,
|
|
21
22
|
dontHaveLabel: n
|
|
22
23
|
}) => {
|
|
23
|
-
const { t: c } = I(), f = a ?? c("curp.placeholder.curp") ?? "CURP", g =
|
|
24
|
+
const { t: c } = I(), f = a ?? c("curp.placeholder.curp") ?? "CURP", g = m ?? c("curp.continue") ?? "Continue", i = n ?? c("curp.dontHave") ?? "I don't have my CURP", b = c("curp.placeholder.curp") ?? "CURP";
|
|
24
25
|
return /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpInput", children: [
|
|
25
26
|
/* @__PURE__ */ e(
|
|
26
|
-
|
|
27
|
+
C,
|
|
27
28
|
{
|
|
28
29
|
id: "curp-input",
|
|
29
30
|
label: "",
|
|
@@ -89,13 +90,13 @@ const T = ({
|
|
|
89
90
|
{ value: "H", label: n.male },
|
|
90
91
|
{ value: "M", label: n.female },
|
|
91
92
|
{ value: "X", label: n.other }
|
|
92
|
-
], g =
|
|
93
|
+
], g = G.map((i) => ({
|
|
93
94
|
value: i.value,
|
|
94
95
|
label: i.label
|
|
95
96
|
}));
|
|
96
97
|
return /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeGenerateCurpForm", children: [
|
|
97
98
|
/* @__PURE__ */ e(
|
|
98
|
-
|
|
99
|
+
C,
|
|
99
100
|
{
|
|
100
101
|
id: "curp-first-name",
|
|
101
102
|
label: n.firstName,
|
|
@@ -107,7 +108,7 @@ const T = ({
|
|
|
107
108
|
}
|
|
108
109
|
),
|
|
109
110
|
/* @__PURE__ */ e(
|
|
110
|
-
|
|
111
|
+
C,
|
|
111
112
|
{
|
|
112
113
|
id: "curp-first-last",
|
|
113
114
|
label: n.firstLast,
|
|
@@ -118,7 +119,7 @@ const T = ({
|
|
|
118
119
|
}
|
|
119
120
|
),
|
|
120
121
|
/* @__PURE__ */ e(
|
|
121
|
-
|
|
122
|
+
C,
|
|
122
123
|
{
|
|
123
124
|
id: "curp-second-last",
|
|
124
125
|
label: n.secondLast,
|
|
@@ -185,14 +186,14 @@ const T = ({
|
|
|
185
186
|
onFinish: d,
|
|
186
187
|
onError: o
|
|
187
188
|
}) => {
|
|
188
|
-
const { t: r } = I(), [t, l] =
|
|
189
|
+
const { t: r } = I(), [t, l] = N(() => {
|
|
189
190
|
if (!s)
|
|
190
191
|
throw new Error("CURP validation config is required");
|
|
191
|
-
return
|
|
192
|
+
return R({ config: s });
|
|
192
193
|
});
|
|
193
194
|
if (t.status === "idle" || t.status === "loading" || t.status === "verifying" || t.status === "generating") {
|
|
194
195
|
const a = t.status === "generating" ? r("curp.status.generating") ?? "Generating..." : r("curp.status.verifying") ?? "Verifying...";
|
|
195
|
-
return /* @__PURE__ */ e(p, { className: "IncodeCurpValidationPage", children: /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpLoading", children: /* @__PURE__ */ e(
|
|
196
|
+
return /* @__PURE__ */ e(p, { className: "IncodeCurpValidationPage", children: /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpLoading", children: /* @__PURE__ */ e(k, { title: a, fullScreen: !1 }) }) });
|
|
196
197
|
}
|
|
197
198
|
if (t.status === "enterCurp")
|
|
198
199
|
return /* @__PURE__ */ e(
|
|
@@ -264,17 +265,17 @@ const T = ({
|
|
|
264
265
|
);
|
|
265
266
|
if (t.status === "success")
|
|
266
267
|
return /* @__PURE__ */ e(p, { className: "IncodeCurpValidationPage", children: /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpSuccess", children: [
|
|
267
|
-
/* @__PURE__ */ e(
|
|
268
|
+
/* @__PURE__ */ e(D, { size: 32 }),
|
|
268
269
|
/* @__PURE__ */ e(u, { size: 16 }),
|
|
269
270
|
/* @__PURE__ */ e("h2", { class: "IncodeCurpSuccessTitle", children: r("curp.status.verified") ?? "Verified" })
|
|
270
271
|
] }) });
|
|
271
272
|
if (t.status === "failure" || t.status === "generateError") {
|
|
272
|
-
const a = t.retriesLeft > 0,
|
|
273
|
+
const a = t.retriesLeft > 0, m = t.status === "failure" ? r("curp.status.notVerified") ?? "Not verified" : r("curp.status.couldntGenerate") ?? "Couldn't generate CURP";
|
|
273
274
|
return /* @__PURE__ */ e(p, { className: "IncodeCurpValidationPage", children: /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpFailure", children: [
|
|
274
275
|
/* @__PURE__ */ e(u, {}),
|
|
275
|
-
/* @__PURE__ */ e(
|
|
276
|
+
/* @__PURE__ */ e(U, { size: 32 }),
|
|
276
277
|
/* @__PURE__ */ e(u, { size: 16 }),
|
|
277
|
-
/* @__PURE__ */ e("h2", { class: "IncodeCurpFailureTitle", children:
|
|
278
|
+
/* @__PURE__ */ e("h2", { class: "IncodeCurpFailureTitle", children: m }),
|
|
278
279
|
t.status === "generateError" && a && /* @__PURE__ */ e(y, { children: [
|
|
279
280
|
/* @__PURE__ */ e(u, { size: 12 }),
|
|
280
281
|
/* @__PURE__ */ e("p", { class: "IncodeCurpFailureHint", children: r("curp.status.checkInfo") ?? "Please check your information" })
|
|
@@ -296,7 +297,7 @@ const T = ({
|
|
|
296
297
|
config: s,
|
|
297
298
|
onFinish: d,
|
|
298
299
|
onError: o
|
|
299
|
-
}) => /* @__PURE__ */ e(
|
|
300
|
+
}) => /* @__PURE__ */ e(S, { children: s ? /* @__PURE__ */ e(
|
|
300
301
|
H,
|
|
301
302
|
{
|
|
302
303
|
config: s,
|
|
@@ -304,7 +305,7 @@ const T = ({
|
|
|
304
305
|
onError: o
|
|
305
306
|
}
|
|
306
307
|
) : null });
|
|
307
|
-
|
|
308
|
+
E(z, "incode-curp-validation");
|
|
308
309
|
export {
|
|
309
310
|
z as CurpValidation
|
|
310
311
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as e, d as E } from "./
|
|
1
|
+
import { u as e, d as E } from "./button-Ca1tRSTI.js";
|
|
2
2
|
import { g as W, D as Z, A as $ } from "./vendor-preact-BXf0bkEs.js";
|
|
3
|
-
import { E as g } from "./errorIcon-
|
|
4
|
-
import { S as x } from "./successIcon-
|
|
3
|
+
import { E as g } from "./errorIcon-BL647nVh.js";
|
|
4
|
+
import { S as x } from "./successIcon-BybULRRU.js";
|
|
5
5
|
const B = ({ class: o }) => {
|
|
6
6
|
const t = W();
|
|
7
7
|
return /* @__PURE__ */ e(
|
|
@@ -60,7 +60,7 @@ const B = ({ class: o }) => {
|
|
|
60
60
|
({
|
|
61
61
|
id: o,
|
|
62
62
|
label: t,
|
|
63
|
-
value:
|
|
63
|
+
value: p,
|
|
64
64
|
onInput: m,
|
|
65
65
|
min: f,
|
|
66
66
|
max: v,
|
|
@@ -71,7 +71,7 @@ const B = ({ class: o }) => {
|
|
|
71
71
|
showHelperIcon: R,
|
|
72
72
|
suppressMessages: r = !1,
|
|
73
73
|
disabled: i,
|
|
74
|
-
required:
|
|
74
|
+
required: s,
|
|
75
75
|
class: w,
|
|
76
76
|
"data-testid": H,
|
|
77
77
|
...V
|
|
@@ -100,7 +100,7 @@ const B = ({ class: o }) => {
|
|
|
100
100
|
"data-testid": `${o}-label`,
|
|
101
101
|
children: [
|
|
102
102
|
t,
|
|
103
|
-
|
|
103
|
+
s && /* @__PURE__ */ e("span", { class: "IncodeDateInputComposedRequired", children: " *" })
|
|
104
104
|
]
|
|
105
105
|
}
|
|
106
106
|
),
|
|
@@ -112,17 +112,17 @@ const B = ({ class: o }) => {
|
|
|
112
112
|
id: o,
|
|
113
113
|
type: "date",
|
|
114
114
|
class: "IncodeDateInputComposedInput",
|
|
115
|
-
value:
|
|
115
|
+
value: p,
|
|
116
116
|
onInput: m,
|
|
117
117
|
min: f,
|
|
118
118
|
max: v,
|
|
119
119
|
placeholder: D,
|
|
120
120
|
disabled: i,
|
|
121
|
-
required:
|
|
122
|
-
"data-has-value": !!
|
|
121
|
+
required: s,
|
|
122
|
+
"data-has-value": !!p,
|
|
123
123
|
"data-testid": H,
|
|
124
124
|
"aria-describedby": b || void 0,
|
|
125
|
-
"aria-required":
|
|
125
|
+
"aria-required": s ? "true" : void 0,
|
|
126
126
|
"aria-invalid": n ? "true" : void 0,
|
|
127
127
|
...V
|
|
128
128
|
}
|
|
@@ -168,5 +168,6 @@ const B = ({ class: o }) => {
|
|
|
168
168
|
);
|
|
169
169
|
M.displayName = "DateInputComposed";
|
|
170
170
|
export {
|
|
171
|
+
B as C,
|
|
171
172
|
M as D
|
|
172
173
|
};
|
|
@@ -349,6 +349,7 @@
|
|
|
349
349
|
align-items: flex-start;
|
|
350
350
|
gap: var(--spacing-16, var(--spacing-16, 16px));
|
|
351
351
|
background-color: var(--color-surface-neutral-50, var(--surface-neutral-50));
|
|
352
|
+
padding: var(--spacing-16, var(--spacing-16, 16px));
|
|
352
353
|
border-radius: 12px;
|
|
353
354
|
display: flex;
|
|
354
355
|
}
|