@incodetech/web 0.0.0-dev-20260402-728ce7f → 0.0.0-dev-20260403-eccc51c

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.
Files changed (59) hide show
  1. package/dist/{Trans-DiTufE_D.js → Trans-aTzdT_SA.js} +1 -1
  2. package/dist/{addressAutocomplete-BSE71Kua.js → addressAutocomplete-C8-wL1j_.js} +4 -4
  3. package/dist/antifraud/antifraud.es.js +18 -0
  4. package/dist/antifraud/styles.css +2 -0
  5. package/dist/authentication/authentication.es.js +3 -3
  6. package/dist/base.css +8 -0
  7. package/dist/button-CE9kRlem.js +184 -0
  8. package/dist/{cameraView-DXT7CWqE.js → cameraView-C2X7klNb.js} +1 -1
  9. package/dist/{captureOverlay-wQmz2Z5r.js → captureOverlay-tCb4R4WE.js} +18 -17
  10. package/dist/{checkbox-wo8qk7tM.js → checkbox-B5X-mfqq.js} +2 -2
  11. package/dist/{chevronDown-BksFjKhp.js → chevronDown-DSHaPKbi.js} +1 -1
  12. package/dist/{closeIcon-5Xq6MCZa.js → closeIcon-9Hc97omv.js} +1 -1
  13. package/dist/consent/consent.es.js +24 -23
  14. package/dist/curp-validation/curp-validation.es.js +75 -74
  15. package/dist/{dateInputComposed-D5kgh_aC.js → dateInputComposed-C7PCzh-U.js} +3 -3
  16. package/dist/{documentCapture-8ZOwr7xp.js → documentCapture-C0mO-RGE.js} +111 -110
  17. package/dist/{dropdownComposed-CzAsPPqv.js → dropdownComposed-BpinYlrx.js} +4 -4
  18. package/dist/{ekybModule-RZwNRg6E.js → ekybModule-Dr6LJUg-.js} +18 -17
  19. package/dist/{ekycModule-BgFGstuw.js → ekycModule-C3mswduI.js} +10 -9
  20. package/dist/email/email.es.js +41 -38
  21. package/dist/{errorContent-CnY-Deoi.js → errorContent-Cb8nmQAE.js} +14 -13
  22. package/dist/{errorIcon-DOuc6ONw.js → errorIcon-DEARBrGx.js} +1 -1
  23. package/dist/extensibility.es.js +47 -45
  24. package/dist/{faceMatch-DPa3pI88.js → faceMatch-DbDp7D3d.js} +17 -16
  25. package/dist/{fileIcon-DEli4GR_.js → fileIcon-CCSvS10T.js} +1 -1
  26. package/dist/{flipAnimation-r4wJkacO.js → flipAnimation-BqV462TA.js} +34 -33
  27. package/dist/flow/flow.es.js +126 -121
  28. package/dist/{formField-BoozuV2w.js → formField-CP6wDdfA.js} +29 -28
  29. package/dist/geolocation/geolocation.es.js +28 -27
  30. package/dist/governmentValidation/governmentValidation.es.js +8 -8
  31. package/dist/id/id.es.js +12 -11
  32. package/dist/index.es.js +16 -15
  33. package/dist/{inputComposed-QzDneavl.js → inputComposed-fUbAGrDy.js} +4 -4
  34. package/dist/{uiConfig-DmIn-g8M.js → instance-BWYzq8dk.js} +218 -238
  35. package/dist/loadingIcon-DmuPXh70.js +195 -0
  36. package/dist/mandatoryConsent-5xPI0cor.js +94 -0
  37. package/dist/{manualCaptureButton-CPZ2xxEI.js → manualCaptureButton-BvFmTyJe.js} +21 -20
  38. package/dist/{numberedStep-DiiXAKRd.js → numberedStep-DwUB__mh.js} +1 -1
  39. package/dist/otpInput-BFXhqFRT.js +156 -0
  40. package/dist/{page-D4OThpFS.js → page-SrUl0qtN.js} +16 -15
  41. package/dist/{permissions-BeU3HuVB.js → permissions-DT4Fz9MR.js} +14 -13
  42. package/dist/phone/phone.es.js +55 -45
  43. package/dist/{phoneInput-nmmFFaXI.js → phoneInput-CGr8TxOO.js} +2 -2
  44. package/dist/{phoneInputComposed-BAFZQ4Y8.js → phoneInputComposed-Cm9O2Jba.js} +5 -5
  45. package/dist/{processing-Ss26Ad0W.js → processing-szVOCQwZ.js} +3 -3
  46. package/dist/{richText-Bxe6Ywla.js → richText-cspvNz2a.js} +1 -1
  47. package/dist/selfie/selfie.es.js +4 -4
  48. package/dist/signature/signature.es.js +10 -9
  49. package/dist/{spinner-CLwSl2tJ.js → spinner-DygONskw.js} +2 -2
  50. package/dist/{successIcon-BZphSsQr.js → successIcon-Bjsdc4lF.js} +1 -1
  51. package/dist/{tutorial-BcX5EaL9.js → tutorial-Cdz1025D.js} +19 -18
  52. package/dist/types/antifraud.d.ts +35 -0
  53. package/dist/{typography-CBPoLoAP.js → typography-BDACYR5i.js} +1 -1
  54. package/dist/uiConfig-Dnt-2YWB.js +23 -0
  55. package/dist/{warningIcon-xqaHPxjF.js → warningIcon-DQq_MrOB.js} +1 -1
  56. package/package.json +9 -2
  57. package/dist/button-DXIWeie9.js +0 -373
  58. package/dist/mandatoryConsent-fZUmh40x.js +0 -93
  59. package/dist/otpInput-B85heGC5.js +0 -148
@@ -1,41 +1,42 @@
1
- import { b as I, u as e, S as u, B as h, I as S, a as N } from "../button-DXIWeie9.js";
1
+ import { b as I, u as e, S as u, I as S, a as N } from "../loadingIcon-DmuPXh70.js";
2
2
  import { mexicanStates as G, createCurpValidationManager as R } from "@incodetech/core/curp-validation";
3
3
  import { k as y } from "../vendor-preact-BoMmvSgn.js";
4
4
  import "@incodetech/core";
5
- import "../uiConfig-DmIn-g8M.js";
6
- import { E as U } from "../errorIcon-DOuc6ONw.js";
7
- import { S as D } from "../successIcon-BZphSsQr.js";
8
- import { P as p } from "../page-D4OThpFS.js";
9
- import { S as k } from "../spinner-CLwSl2tJ.js";
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";
10
11
  import { r as E } from "../incodeModule-C4XIllao.js";
11
- import { a as C } from "../inputComposed-QzDneavl.js";
12
- import { D as F } from "../dateInputComposed-D5kgh_aC.js";
13
- import { D as P } from "../dropdownComposed-CzAsPPqv.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";
14
15
  const T = ({
15
- curp: s,
16
+ curp: i,
16
17
  isValid: d,
17
18
  onCurpChange: o,
18
- onVerify: r,
19
+ onVerify: a,
19
20
  onSwitchToGenerate: t,
20
- disabled: i = !1,
21
- placeholder: a,
21
+ disabled: s = !1,
22
+ placeholder: r,
22
23
  continueLabel: m,
23
24
  dontHaveLabel: n
24
25
  }) => {
25
- const { t: c } = I(), f = a ?? 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";
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";
26
27
  return /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpInput", children: [
27
28
  /* @__PURE__ */ e(
28
29
  C,
29
30
  {
30
31
  id: "curp-input",
31
32
  label: "",
32
- value: s,
33
+ value: i,
33
34
  onInput: (V) => {
34
35
  const L = V.target;
35
36
  o(L.value.toUpperCase());
36
37
  },
37
38
  placeholder: f,
38
- disabled: i,
39
+ disabled: s,
39
40
  maxLength: 18,
40
41
  "aria-label": b
41
42
  }
@@ -45,8 +46,8 @@ const T = ({
45
46
  h,
46
47
  {
47
48
  type: "button",
48
- onClick: r,
49
- disabled: !d || i,
49
+ onClick: a,
50
+ disabled: !d || s,
50
51
  "data-testid": "curp-verify",
51
52
  children: g
52
53
  }
@@ -56,7 +57,7 @@ const T = ({
56
57
  {
57
58
  type: "button",
58
59
  onClick: t,
59
- disabled: i,
60
+ disabled: s,
60
61
  "data-testid": "curp-switch-to-generate",
61
62
  class: "IncodeCurpInputDontHaveButton",
62
63
  children: l
@@ -64,27 +65,27 @@ const T = ({
64
65
  )
65
66
  ] });
66
67
  }, w = ({
67
- form: s,
68
+ form: i,
68
69
  isValid: d,
69
70
  onFormChange: o,
70
- onGenerate: r,
71
+ onGenerate: a,
71
72
  disabled: t = !1,
72
- labels: i
73
+ labels: s
73
74
  }) => {
74
- const { t: a } = I(), n = { ...{
75
- firstName: a("curp.labels.firstName") ?? "Your First name",
76
- firstLast: a("curp.labels.firstLast") ?? "Your First last name",
77
- secondLast: a("curp.labels.secondLast") ?? "Your Second last name",
78
- gender: a("curp.labels.genderV2") ?? "Gender",
79
- genderPlaceholder: a("curp.placeholder.gender") ?? "Choose gender",
80
- male: a("curp.labels.maleV2") ?? "Male",
81
- female: a("curp.labels.femaleV2") ?? "Female",
82
- other: a("curp.labels.other") ?? "Other",
83
- dob: a("curp.labels.dob") ?? "Date of birth",
84
- birthState: a("curp.labels.birthState") ?? "State of birth",
85
- statePlaceholder: a("curp.placeholder.state") ?? "Select state",
86
- generate: a("curp.generateCta") ?? "Generate CURP"
87
- }, ...i }, c = (l) => (b) => {
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) => {
88
89
  const v = b.target;
89
90
  o({ [l]: v.value });
90
91
  }, f = [
@@ -101,7 +102,7 @@ const T = ({
101
102
  {
102
103
  id: "curp-first-name",
103
104
  label: n.firstName,
104
- value: s.name,
105
+ value: i.name,
105
106
  onInput: c("name"),
106
107
  placeholder: n.firstName,
107
108
  disabled: t,
@@ -113,7 +114,7 @@ const T = ({
113
114
  {
114
115
  id: "curp-first-last",
115
116
  label: n.firstLast,
116
- value: s.firstLastName,
117
+ value: i.firstLastName,
117
118
  onInput: c("firstLastName"),
118
119
  placeholder: n.firstLast,
119
120
  disabled: t
@@ -124,7 +125,7 @@ const T = ({
124
125
  {
125
126
  id: "curp-second-last",
126
127
  label: n.secondLast,
127
- value: s.secondLastName,
128
+ value: i.secondLastName,
128
129
  onInput: c("secondLastName"),
129
130
  placeholder: n.secondLast,
130
131
  disabled: t
@@ -136,7 +137,7 @@ const T = ({
136
137
  id: "curp-gender",
137
138
  label: n.gender,
138
139
  placeholder: n.genderPlaceholder,
139
- value: s.gender,
140
+ value: i.gender,
140
141
  options: f,
141
142
  disabled: t,
142
143
  onChange: (l) => o({ gender: l }),
@@ -148,10 +149,10 @@ const T = ({
148
149
  {
149
150
  id: "curp-birth-date",
150
151
  label: n.dob,
151
- value: s.birthDate,
152
+ value: i.birthDate,
152
153
  onInput: c("birthDate"),
153
154
  max: (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
154
- placeholder: a("curp.placeholder.dob") ?? "mm/dd/yyyy",
155
+ placeholder: r("curp.placeholder.dob") ?? "mm/dd/yyyy",
155
156
  disabled: t,
156
157
  "data-testid": "curp-birth-date"
157
158
  }
@@ -162,7 +163,7 @@ const T = ({
162
163
  id: "curp-birth-state",
163
164
  label: n.birthState,
164
165
  placeholder: n.statePlaceholder,
165
- value: s.birthState,
166
+ value: i.birthState,
166
167
  options: g,
167
168
  disabled: t,
168
169
  onChange: (l) => o({ birthState: l }),
@@ -175,7 +176,7 @@ const T = ({
175
176
  h,
176
177
  {
177
178
  type: "button",
178
- onClick: r,
179
+ onClick: a,
179
180
  disabled: !d || t,
180
181
  "data-testid": "curp-generate",
181
182
  children: n.generate
@@ -183,36 +184,36 @@ const T = ({
183
184
  )
184
185
  ] });
185
186
  }, H = ({
186
- config: s,
187
+ config: i,
187
188
  onFinish: d,
188
189
  onError: o
189
190
  }) => {
190
- const { t: r } = I(), [t, i] = N(() => {
191
- if (!s)
191
+ const { t: a } = I(), [t, s] = N(() => {
192
+ if (!i)
192
193
  throw new Error("CURP validation config is required");
193
- return R({ config: s });
194
+ return R({ config: i });
194
195
  });
195
196
  if (t.status === "idle" || t.status === "loading" || t.status === "verifying" || t.status === "generating") {
196
- const a = t.status === "generating" ? r("curp.status.generating") ?? "Generating..." : r("curp.status.verifying") ?? "Verifying...";
197
- return /* @__PURE__ */ e(p, { className: "IncodeCurpValidationPage", children: /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpLoading", children: /* @__PURE__ */ e(k, { title: a, fullScreen: !1 }) }) });
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 }) }) });
198
199
  }
199
200
  if (t.status === "enterCurp")
200
201
  return /* @__PURE__ */ e(
201
202
  p,
202
203
  {
203
204
  className: "IncodeCurpValidationPage",
204
- title: r("curp.enterCurp") ?? "Enter your CURP",
205
+ title: a("curp.enterCurp") ?? "Enter your CURP",
205
206
  children: /* @__PURE__ */ e(
206
207
  T,
207
208
  {
208
209
  curp: t.curp,
209
210
  isValid: t.isValid,
210
- onCurpChange: (a) => i.setCurp(a),
211
- onVerify: () => i.verify(),
212
- onSwitchToGenerate: () => i.switchToGenerate(),
213
- placeholder: r("curp.placeholder.curp") ?? "CURP",
214
- continueLabel: r("curp.continue") ?? "Continue",
215
- dontHaveLabel: r("curp.dontHave") ?? "I don't have my CURP"
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"
216
217
  }
217
218
  )
218
219
  }
@@ -222,14 +223,14 @@ const T = ({
222
223
  p,
223
224
  {
224
225
  className: "IncodeCurpValidationPage",
225
- title: r("curp.generate") ?? "Generate your CURP",
226
+ title: a("curp.generate") ?? "Generate your CURP",
226
227
  children: /* @__PURE__ */ e(
227
228
  w,
228
229
  {
229
230
  form: t.form,
230
231
  isValid: t.isValid,
231
- onFormChange: (a) => i.setGenerateForm(a),
232
- onGenerate: () => i.generate()
232
+ onFormChange: (r) => s.setGenerateForm(r),
233
+ onGenerate: () => s.generate()
233
234
  }
234
235
  )
235
236
  }
@@ -239,7 +240,7 @@ const T = ({
239
240
  p,
240
241
  {
241
242
  className: "IncodeCurpValidationPage",
242
- title: r("curp.status.confirm") ?? "Confirm your CURP",
243
+ title: a("curp.status.confirm") ?? "Confirm your CURP",
243
244
  children: /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpConfirm", children: [
244
245
  /* @__PURE__ */ e(
245
246
  "input",
@@ -248,7 +249,7 @@ const T = ({
248
249
  class: "IncodeCurpConfirmInput",
249
250
  value: t.curp,
250
251
  readOnly: !0,
251
- "aria-label": r("curp.status.generatedCurp") ?? "Generated CURP"
252
+ "aria-label": a("curp.status.generatedCurp") ?? "Generated CURP"
252
253
  }
253
254
  ),
254
255
  /* @__PURE__ */ e(u, {}),
@@ -256,9 +257,9 @@ const T = ({
256
257
  h,
257
258
  {
258
259
  type: "button",
259
- onClick: () => i.confirmGenerated(),
260
+ onClick: () => s.confirmGenerated(),
260
261
  "data-testid": "curp-confirm",
261
- children: r("curp.continue") ?? "Continue"
262
+ children: a("curp.continue") ?? "Continue"
262
263
  }
263
264
  )
264
265
  ] })
@@ -268,40 +269,40 @@ const T = ({
268
269
  return /* @__PURE__ */ e(p, { className: "IncodeCurpValidationPage", children: /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpSuccess", children: [
269
270
  /* @__PURE__ */ e(D, { size: 32 }),
270
271
  /* @__PURE__ */ e(u, { size: 16 }),
271
- /* @__PURE__ */ e("h2", { class: "IncodeCurpSuccessTitle", children: r("curp.status.verified") ?? "Verified" })
272
+ /* @__PURE__ */ e("h2", { class: "IncodeCurpSuccessTitle", children: a("curp.status.verified") ?? "Verified" })
272
273
  ] }) });
273
274
  if (t.status === "failure" || t.status === "generateError") {
274
- const a = t.retriesLeft > 0, m = t.status === "failure" ? r("curp.status.notVerified") ?? "Not verified" : r("curp.status.couldntGenerate") ?? "Couldn't generate CURP";
275
+ const r = t.retriesLeft > 0, m = t.status === "failure" ? a("curp.status.notVerified") ?? "Not verified" : a("curp.status.couldntGenerate") ?? "Couldn't generate CURP";
275
276
  return /* @__PURE__ */ e(p, { className: "IncodeCurpValidationPage", children: /* @__PURE__ */ e("div", { class: "IncodeCurpValidation IncodeCurpFailure", children: [
276
277
  /* @__PURE__ */ e(u, {}),
277
278
  /* @__PURE__ */ e(U, { size: 32 }),
278
279
  /* @__PURE__ */ e(u, { size: 16 }),
279
280
  /* @__PURE__ */ e("h2", { class: "IncodeCurpFailureTitle", children: m }),
280
- t.status === "generateError" && a && /* @__PURE__ */ e(y, { children: [
281
+ t.status === "generateError" && r && /* @__PURE__ */ e(y, { children: [
281
282
  /* @__PURE__ */ e(u, { size: 12 }),
282
- /* @__PURE__ */ e("p", { class: "IncodeCurpFailureHint", children: r("curp.status.checkInfo") ?? "Please check your information" })
283
+ /* @__PURE__ */ e("p", { class: "IncodeCurpFailureHint", children: a("curp.status.checkInfo") ?? "Please check your information" })
283
284
  ] }),
284
285
  /* @__PURE__ */ e(u, {}),
285
- a && /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(
286
+ r && /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(
286
287
  h,
287
288
  {
288
289
  type: "button",
289
- onClick: () => i.retry(),
290
+ onClick: () => s.retry(),
290
291
  "data-testid": "curp-retry",
291
- children: t.status === "failure" ? r("curp.status.tryAgain") ?? "Try again" : r("curp.status.edit") ?? "Edit information"
292
+ children: t.status === "failure" ? a("curp.status.tryAgain") ?? "Try again" : a("curp.status.edit") ?? "Edit information"
292
293
  }
293
294
  ) })
294
295
  ] }) });
295
296
  }
296
297
  return t.status === "finished" ? (d?.(), null) : (t.status === "closed" && o?.(void 0), null);
297
298
  }, z = ({
298
- config: s,
299
+ config: i,
299
300
  onFinish: d,
300
301
  onError: o
301
- }) => /* @__PURE__ */ e(S, { children: s ? /* @__PURE__ */ e(
302
+ }) => /* @__PURE__ */ e(S, { children: i ? /* @__PURE__ */ e(
302
303
  H,
303
304
  {
304
- config: s,
305
+ config: i,
305
306
  onFinish: d,
306
307
  onError: o
307
308
  }
@@ -1,7 +1,7 @@
1
- import { u as e, c as E } from "./button-DXIWeie9.js";
1
+ import { u as e, c as E } from "./loadingIcon-DmuPXh70.js";
2
2
  import { g as W, D as Z, A as $ } from "./vendor-preact-BoMmvSgn.js";
3
- import { E as g } from "./errorIcon-DOuc6ONw.js";
4
- import { S as x } from "./successIcon-BZphSsQr.js";
3
+ import { E as g } from "./errorIcon-DEARBrGx.js";
4
+ import { S as x } from "./successIcon-Bjsdc4lF.js";
5
5
  const B = ({ class: o }) => {
6
6
  const t = W();
7
7
  return /* @__PURE__ */ e(