@incodetech/web 0.0.0-dev-20260506-722f09e → 0.0.0-dev-20260506-135ee70

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 (103) hide show
  1. package/dist/ae-signature/ae-signature.es.js +1 -1
  2. package/dist/antifraud/antifraud.es.js +1 -1
  3. package/dist/authentication/authentication.es.js +2 -2
  4. package/dist/base.css +58 -15
  5. package/dist/checkbox-Cl57ltq_.js +85 -0
  6. package/dist/consent/consent.es.js +64 -57
  7. package/dist/consent/styles.css +0 -6
  8. package/dist/{countrySelector-DtU2ZHxe.js → countrySelector-6tyguJJ3.js} +2 -2
  9. package/dist/{cpfOcr-DpCBM-HI.js → cpfOcr-C1NNPNiv.js} +2 -2
  10. package/dist/cross-document-data-match/cross-document-data-match.es.js +1 -1
  11. package/dist/curp-validation/curp-validation.es.js +155 -138
  12. package/dist/{customFields-dNMVPlgo.js → customFields-IrNw7FK_.js} +6 -6
  13. package/dist/{customWatchlist-B2gLvTsb.js → customWatchlist-DBKYqZFo.js} +3 -3
  14. package/dist/dateInputComposed-B4IHGFn2.js +1 -0
  15. package/dist/{dateInputComposed-qlXTsQnl.js → dateInputComposed-YUmNQwOo.js} +2 -2
  16. package/dist/{documentCapture-B_Bj-0tz.js → documentCapture-5sArwFr_.js} +4 -4
  17. package/dist/dropdownComposed-BP11clgh.js +284 -0
  18. package/dist/dropdownComposed-D3Pd7_tT.js +1 -0
  19. package/dist/ekyb/ekyb.es.js +1 -1
  20. package/dist/ekybModule-Dgc00cCc.js +267 -0
  21. package/dist/ekybModule-fSRpSP1j.js +2 -0
  22. package/dist/ekyc/ekyc.es.js +1 -1
  23. package/dist/{ekycModule-D6yEQ-XW.js → ekycModule-CNu2fPZW.js} +108 -92
  24. package/dist/ekycModule-DR5NfJjJ.js +2 -0
  25. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  26. package/dist/{electronic-signature-y4qlJvEG.js → electronic-signature-DZNQCizH.js} +5 -5
  27. package/dist/email/email.es.js +6 -5
  28. package/dist/{extensibility-B2KNmlEo.js → extensibility-C5wHEamm.js} +49 -48
  29. package/dist/extensibility.es.js +14 -14
  30. package/dist/face-match/face-match.es.js +1 -1
  31. package/dist/{faceMatch-DiANHfmh.js → faceMatch-Bv8Sa132.js} +4 -4
  32. package/dist/faceMatch-DNnR3D9Y.js +2 -0
  33. package/dist/flow/flow.es.js +5 -5
  34. package/dist/flow/styles.css +0 -6
  35. package/dist/{formField-Dmko6c1g.js → formField-DVxrqXxH.js} +7 -5
  36. package/dist/geolocation/geolocation.es.js +2 -2
  37. package/dist/governmentValidation/governmentValidation.es.js +4 -4
  38. package/dist/{homeScreen--quzu3aX.js → homeScreen-erBPunoI.js} +3 -3
  39. package/dist/{i18n-ntrVdqVv.js → i18n-D6pCC7RL.js} +1 -1
  40. package/dist/id/id.es.js +9 -9
  41. package/dist/idOcr-cqvEUFU7.js +94 -0
  42. package/dist/identity-reuse/identity-reuse.es.js +2 -2
  43. package/dist/{incodeComponent-CD-xTOQN.js → incodeComponent-BRtpx7iO.js} +1 -1
  44. package/dist/index.es.js +1 -1
  45. package/dist/{inputComposed-CWgsRItD.js → inputComposed-APSw8C7o.js} +29 -28
  46. package/dist/inputComposed-XYrarFxS.js +1 -0
  47. package/dist/{mandatoryConsent-D-hucnom.js → mandatoryConsent-CUkwi7Am.js} +4 -4
  48. package/dist/{optionAccessibleLabel-CTJTLHGK.js → optionAccessibleLabel-BNmB1NZB.js} +47 -45
  49. package/dist/{otpInput-DXxk8wtw.js → otpInput-C28CqSoT.js} +4 -3
  50. package/dist/phone/phone.es.js +5 -5
  51. package/dist/{phoneInputComposed-DROsAfHw.js → phoneInputComposed-G97ecK_X.js} +515 -514
  52. package/dist/{processing-xz4eQJM1.js → processing-Byt0PHxP.js} +1 -1
  53. package/dist/qe-signature/qe-signature.es.js +1 -1
  54. package/dist/radioGroupComposed-B74fc1L3.js +135 -0
  55. package/dist/{redirectToMobile-C9hoSS87.js → redirectToMobile-B34StIWz.js} +7 -7
  56. package/dist/requiredLabelHint-J9rEJWcF.js +13 -0
  57. package/dist/selfie/selfie.es.js +5 -5
  58. package/dist/signature/signature.es.js +4 -4
  59. package/dist/{transitionSpinner-BQEhWa_s.js → transitionSpinner-DHelnP9m.js} +1 -1
  60. package/dist/{tutorial-D0qvM_3A.js → tutorial-n8Rcb2Xw.js} +3 -3
  61. package/dist/types/extensibility.d.ts +13 -1
  62. package/dist/{useModuleLoader-CqiAflGr.js → useModuleLoader-Wx57i1Nv.js} +14 -14
  63. package/dist/{verificationResult-DpTgAV4I.js → verificationResult-Zcgwq6Cv.js} +1 -1
  64. package/dist/watchlist/watchlist.es.js +3 -3
  65. package/dist/{watchlistForBusiness-CLmL1LzM.js → watchlistForBusiness-BbKEWVqz.js} +5 -5
  66. package/dist/workflow/styles.css +0 -6
  67. package/dist/workflow/workflow.es.js +5 -5
  68. package/package.json +2 -2
  69. package/dist/checkbox-D58_nRQr.js +0 -85
  70. package/dist/dateInputComposed-Blh3T6p7.js +0 -1
  71. package/dist/dropdownComposed-CKXfKA3w.js +0 -1
  72. package/dist/dropdownComposed-D3-uHt2M.js +0 -283
  73. package/dist/ekybModule-C47vti4G.js +0 -2
  74. package/dist/ekybModule-CUcUHEdN.js +0 -257
  75. package/dist/ekycModule-B0uRMzfy.js +0 -2
  76. package/dist/faceMatch-BMYDyoIS.js +0 -2
  77. package/dist/idOcr-BDNOfIzG.js +0 -91
  78. package/dist/inputComposed-CwIApjvr.js +0 -1
  79. package/dist/radioGroupComposed-CFld7dzQ.js +0 -135
  80. /package/dist/{aligndevicelottie-DyGJbfIE.js → aligndevicelottie-xrVoNCX1.js} +0 -0
  81. /package/dist/{autoFocusTitle-CZoNkxcF.js → autoFocusTitle-C01okScG.js} +0 -0
  82. /package/dist/{back-horizontal-hint-Dftn3Q4p.js → back-horizontal-hint-CafoL5Hr.js} +0 -0
  83. /package/dist/{back-tutorial-CxQIbwMV.js → back-tutorial-D8gxTBif.js} +0 -0
  84. /package/dist/{back-vertical-hint-Br7YQ62I.js → back-vertical-hint-vsXVE8cE.js} +0 -0
  85. /package/dist/{backdevicelottie-BJMD8fm6.js → backdevicelottie-D6ViC7os.js} +0 -0
  86. /package/dist/{blurdevicelottie-B7h0sSvw.js → blurdevicelottie-XvW-0MTp.js} +0 -0
  87. /package/dist/{browser-ponyfill-DRrmY6DO.js → browser-ponyfill-Dqca0y49.js} +0 -0
  88. /package/dist/{flip-animation-CAoCCNZF.js → flip-animation-C6-P7Ueu.js} +0 -0
  89. /package/dist/{front-horizontal-hint-CR71MdeU.js → front-horizontal-hint-B-ym65-G.js} +0 -0
  90. /package/dist/{front-vertical-hint-BGci40sf.js → front-vertical-hint-D7fluj79.js} +0 -0
  91. /package/dist/{frontdevicelottie-B8Qy4pSa.js → frontdevicelottie-C0TbU3F-.js} +0 -0
  92. /package/dist/{glaredevicelottie-DWxI3Pww.js → glaredevicelottie-z5dv0nBA.js} +0 -0
  93. /package/dist/{id-laser-h-ld67NZgZ.js → id-laser-h-BniGIPai.js} +0 -0
  94. /package/dist/{id-laser-v-Buftc8XI.js → id-laser-v-DFo-b0WI.js} +0 -0
  95. /package/dist/{id-tutorial-V5VMnD_c.js → id-tutorial-CKackIBs.js} +0 -0
  96. /package/dist/{passport-horizontal-hint-CVL4ijpt.js → passport-horizontal-hint-DXy5C55p.js} +0 -0
  97. /package/dist/{passport-tutorial-D8ghyCv5.js → passport-tutorial-DwhO4uTV.js} +0 -0
  98. /package/dist/{passport-vertical-hint-BP1gMsLD.js → passport-vertical-hint-D0iTF_ih.js} +0 -0
  99. /package/dist/{pdf-C_oSlcAO.js → pdf-CERc26GI.js} +0 -0
  100. /package/dist/{selfieTutorial-D8I_4Oam.js → selfieTutorial-CmGGVE4q.js} +0 -0
  101. /package/dist/{snackbar-BJLPgsIn.js → snackbar-B3hIVhgk.js} +0 -0
  102. /package/dist/{statusPage-4TZ4tQGq.js → statusPage-DXmurxxX.js} +0 -0
  103. /package/dist/{tabs-Cz-0e7rl.js → tabs-D-xvkepW.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { v as e } from "../vendor-preact-D6SntenC.js";
2
- import { n as t } from "../electronic-signature-y4qlJvEG.js";
2
+ import { n as t } from "../electronic-signature-DZNQCizH.js";
3
3
  import { t as n } from "../incodeModule-D_r2n18O.js";
4
4
  //#region src/modules/ae-signature/ae-signature.tsx
5
5
  var r = ({ config: n, onFinish: r, onError: i }) => /* @__PURE__ */ e(t, {
@@ -1,6 +1,6 @@
1
1
  import { _ as e, v as t } from "../vendor-preact-D6SntenC.js";
2
2
  import { o as n } from "../hooks-BVnGysT7.js";
3
- import { t as r } from "../incodeComponent-CD-xTOQN.js";
3
+ import { t as r } from "../incodeComponent-BRtpx7iO.js";
4
4
  import { t as i } from "../spinner-CKnjVHxw.js";
5
5
  import { t as a } from "../incodeModule-D_r2n18O.js";
6
6
  import { createAntifraudManager as o } from "@incodetech/core/antifraud";
@@ -1,7 +1,7 @@
1
1
  import { v as e } from "../vendor-preact-D6SntenC.js";
2
2
  import { o as t } from "../hooks-BVnGysT7.js";
3
- import { t as n } from "../incodeComponent-CD-xTOQN.js";
4
- import { n as r, r as i, t as a } from "../tutorial-D0qvM_3A.js";
3
+ import { t as n } from "../incodeComponent-BRtpx7iO.js";
4
+ import { n as r, r as i, t as a } from "../tutorial-n8Rcb2Xw.js";
5
5
  import { t as o } from "../incodeModule-D_r2n18O.js";
6
6
  import { createAuthenticationManager as s } from "@incodetech/core/authentication";
7
7
  //#region src/modules/authentication/authentication.tsx
package/dist/base.css CHANGED
@@ -797,9 +797,12 @@
797
797
  .IncodeCheckboxTextDisabled {
798
798
  color: var(--color-checkbox-text-disabled, var(--checkbox-text-disabled));
799
799
  }
800
- .IncodeCheckboxRequired {
801
- color: var(--color-text-status-negative, var(--text-status-negative));
800
+ .IncodeCheckboxLabelHint {
802
801
  margin-left: var(--spacing-4, var(--spacing-4, 4px));
802
+ font-size: var(--text-14, var(--primitive-typography-size-14));
803
+ --tw-font-weight: var(--font-weight-normal, 400);
804
+ font-weight: var(--font-weight-normal, 400);
805
+ color: var(--color-text-body-secondary, var(--text-body-500-secondary));
803
806
  }
804
807
  .IncodeCheckboxMessageWrapper {
805
808
  margin-top: var(--spacing-8, var(--spacing-8, 8px));
@@ -927,9 +930,16 @@
927
930
  .IncodeRadioButton .IncodeRadioButtonTextDisabled {
928
931
  color: var(--color-radio-button-text-disabled, var(--radio-button-text-disabled));
929
932
  }
930
- .IncodeRadioButton .IncodeRadioButtonRequired {
931
- color: var(--color-text-status-negative, var(--text-status-negative));
933
+ .IncodeRadioButton .IncodeRadioButtonLabelHint {
932
934
  margin-left: var(--spacing-4, var(--spacing-4, 4px));
935
+ font-family: var(--typography-checkbox-radio-family);
936
+ font-size: var(--typography-checkbox-radio-m-size);
937
+ font-weight: var(--typography-checkbox-radio-m-weight);
938
+ line-height: var(--typography-checkbox-radio-m-line-height);
939
+ letter-spacing: var(--typography-checkbox-radio-m-letter-spacing);
940
+ --tw-font-weight: var(--font-weight-normal, 400);
941
+ font-weight: var(--font-weight-normal, 400);
942
+ color: var(--color-text-body-secondary, var(--text-body-500-secondary));
933
943
  }
934
944
  .IncodeRadioButton .IncodeRadioButtonMessageWrapper {
935
945
  margin-top: var(--spacing-8, var(--spacing-8, 8px));
@@ -978,9 +988,16 @@
978
988
  line-height: 1;
979
989
  display: block;
980
990
  }
981
- .IncodeRadioGroupComposed .IncodeRadioGroupComposedRequired {
991
+ .IncodeRadioGroupComposed .IncodeRadioGroupComposedLabelHint {
982
992
  margin-left: var(--spacing-4, var(--spacing-4, 4px));
983
- color: var(--color-text-status-negative, var(--text-status-negative));
993
+ font-family: var(--typography-label-family);
994
+ font-size: var(--typography-label-m-size);
995
+ font-weight: var(--typography-label-m-weight);
996
+ line-height: var(--typography-label-m-line-height);
997
+ letter-spacing: var(--typography-label-m-letter-spacing);
998
+ --tw-font-weight: var(--font-weight-normal, 400);
999
+ font-weight: var(--font-weight-normal, 400);
1000
+ color: var(--color-text-body-secondary, var(--text-body-500-secondary));
984
1001
  }
985
1002
  .IncodeRadioGroupComposed .IncodeRadioGroupComposedOptions {
986
1003
  display: flex;
@@ -1180,14 +1197,16 @@
1180
1197
  padding: var(--spacing-0, var(--spacing-none, 0px));
1181
1198
  display: inline-block;
1182
1199
  }
1183
- .IncodeInputComposedAsterics {
1184
- margin-right: var(--spacing-2, var(--spacing-2, 2px));
1200
+ .IncodeInputComposedLabelHint {
1201
+ margin-left: var(--spacing-4, var(--spacing-4, 4px));
1185
1202
  font-family: var(--typography-label-family);
1186
1203
  font-size: var(--typography-label-m-size);
1187
1204
  font-weight: var(--typography-label-m-weight);
1188
1205
  line-height: var(--typography-label-m-line-height);
1189
1206
  letter-spacing: var(--typography-label-m-letter-spacing);
1190
- color: var(--color-input-text-label-default, var(--input-text-label-default));
1207
+ --tw-font-weight: var(--font-weight-normal, 400);
1208
+ font-weight: var(--font-weight-normal, 400);
1209
+ color: var(--color-input-text-helper-default, var(--input-text-helper-default));
1191
1210
  }
1192
1211
  .IncodeInputComposedWrapper {
1193
1212
  position: relative;
@@ -1304,8 +1323,16 @@
1304
1323
  padding: var(--spacing-0, var(--spacing-none, 0px));
1305
1324
  display: inline-block;
1306
1325
  }
1307
- .IncodeTextAreaComposedRequired {
1308
- color: var(--color-input-text-helper-negative, var(--input-text-helper-negative));
1326
+ .IncodeTextAreaComposedLabelHint {
1327
+ margin-left: var(--spacing-4, var(--spacing-4, 4px));
1328
+ font-family: var(--typography-label-family);
1329
+ font-size: var(--typography-label-m-size);
1330
+ font-weight: var(--typography-label-m-weight);
1331
+ line-height: var(--typography-label-m-line-height);
1332
+ letter-spacing: var(--typography-label-m-letter-spacing);
1333
+ --tw-font-weight: var(--font-weight-normal, 400);
1334
+ font-weight: var(--font-weight-normal, 400);
1335
+ color: var(--color-input-text-helper-default, var(--input-text-helper-default));
1309
1336
  }
1310
1337
  .IncodeTextAreaComposedWrapper {
1311
1338
  position: relative;
@@ -1358,8 +1385,16 @@
1358
1385
  color: var(--color-dropdown-text-label-default, var(--dropdown-text-label-default));
1359
1386
  display: inline-block;
1360
1387
  }
1361
- .IncodeDropdownComposedRequired {
1362
- color: var(--color-dropdown-text-helper-negative, var(--dropdown-text-helper-negative));
1388
+ .IncodeDropdownComposedLabelHint {
1389
+ margin-left: var(--spacing-4, var(--spacing-4, 4px));
1390
+ font-family: var(--typography-label-family);
1391
+ font-size: var(--typography-label-m-size);
1392
+ font-weight: var(--typography-label-m-weight);
1393
+ line-height: var(--typography-label-m-line-height);
1394
+ letter-spacing: var(--typography-label-m-letter-spacing);
1395
+ --tw-font-weight: var(--font-weight-normal, 400);
1396
+ font-weight: var(--font-weight-normal, 400);
1397
+ color: var(--color-dropdown-text-helper-default, var(--dropdown-text-helper-default));
1363
1398
  }
1364
1399
  .IncodeDropdownComposedWrapper {
1365
1400
  position: relative;
@@ -1634,8 +1669,16 @@
1634
1669
  letter-spacing: var(--typography-label-m-letter-spacing);
1635
1670
  display: inline-block;
1636
1671
  }
1637
- .IncodePhoneInputComposedRequired {
1638
- color: var(--color-input-text-helper-negative, var(--input-text-helper-negative));
1672
+ .IncodePhoneInputComposedLabelHint {
1673
+ margin-left: var(--spacing-4, var(--spacing-4, 4px));
1674
+ font-family: var(--typography-label-family);
1675
+ font-size: var(--typography-label-m-size);
1676
+ font-weight: var(--typography-label-m-weight);
1677
+ line-height: var(--typography-label-m-line-height);
1678
+ letter-spacing: var(--typography-label-m-letter-spacing);
1679
+ --tw-font-weight: var(--font-weight-normal, 400);
1680
+ font-weight: var(--font-weight-normal, 400);
1681
+ color: var(--color-input-text-helper-default, var(--input-text-helper-default));
1639
1682
  }
1640
1683
  .IncodePhoneInputComposedDropdown {
1641
1684
  max-width: none;
@@ -0,0 +1,85 @@
1
+ import { a as e, p as t, v as n } from "./vendor-preact-D6SntenC.js";
2
+ import { n as r } from "./loadingIcon-BN5YRQUb.js";
3
+ import { d as i, g as a } from "./icons-Cc7zwchP.js";
4
+ //#region src/shared/checkbox/checkbox.tsx
5
+ var o = e(({ id: e, label: o, labelHint: s, size: c = "m", checked: l, defaultChecked: u, disabled: d = !1, required: f = !1, name: p, value: m, onChange: h, error: g, helper: _, showErrorIcon: v = !0, class: y, "aria-label": b, "aria-labelledby": x, "aria-describedby": S, "aria-invalid": C, ...w }, T) => {
6
+ let [E, D] = t(!!u), O = l !== void 0, k = O ? !!l : E, A = !!d, j = !!f, M = typeof y == "string" ? y : void 0, N = (e) => {
7
+ O || D(e.target.checked), h?.(e);
8
+ }, P = _ ? `${e}-helper` : void 0, F = g ? `${e}-error` : void 0, I = [
9
+ S,
10
+ F,
11
+ P
12
+ ].filter(Boolean).join(" ") || void 0;
13
+ return /* @__PURE__ */ n("div", {
14
+ class: r("IncodeCheckbox", M),
15
+ children: [
16
+ /* @__PURE__ */ n("label", {
17
+ class: r("IncodeCheckboxLabel", { IncodeCheckboxLabelDisabled: A }),
18
+ htmlFor: e,
19
+ children: [/* @__PURE__ */ n("div", {
20
+ class: "relative inline-flex",
21
+ children: [/* @__PURE__ */ n("input", {
22
+ ref: T,
23
+ type: "checkbox",
24
+ class: "IncodeCheckboxInput",
25
+ id: e,
26
+ name: p,
27
+ value: m,
28
+ ...O ? { checked: l } : { defaultChecked: u },
29
+ disabled: d,
30
+ required: f,
31
+ onChange: N,
32
+ "aria-label": b,
33
+ "aria-labelledby": x,
34
+ "aria-describedby": I,
35
+ "aria-invalid": C || !!g,
36
+ "aria-required": j,
37
+ ...w
38
+ }), /* @__PURE__ */ n("div", {
39
+ class: r("IncodeCheckboxVisual", {
40
+ IncodeCheckboxVisualChecked: k,
41
+ IncodeCheckboxVisualDisabled: A,
42
+ IncodeCheckboxVisualError: !!g
43
+ }),
44
+ children: k && /* @__PURE__ */ n(i, { size: 28 })
45
+ })]
46
+ }), o && /* @__PURE__ */ n("span", {
47
+ class: r("IncodeCheckboxText", {
48
+ IncodeCheckboxTextS: c === "s",
49
+ IncodeCheckboxTextM: c === "m",
50
+ IncodeCheckboxTextDisabled: A
51
+ }),
52
+ "aria-hidden": x ? "true" : void 0,
53
+ children: [o, s && /* @__PURE__ */ n("span", {
54
+ class: "IncodeCheckboxLabelHint",
55
+ "data-testid": `${e}-label-hint`,
56
+ children: s
57
+ })]
58
+ })]
59
+ }),
60
+ g && /* @__PURE__ */ n("div", {
61
+ class: "IncodeCheckboxMessageWrapper",
62
+ "data-testid": `${e}-error-wrapper`,
63
+ children: [v && /* @__PURE__ */ n("div", {
64
+ class: "IncodeCheckboxIconWrapper",
65
+ children: /* @__PURE__ */ n(a, { size: 17 })
66
+ }), /* @__PURE__ */ n("p", {
67
+ id: F,
68
+ class: "IncodeCheckboxErrorText",
69
+ children: g
70
+ })]
71
+ }),
72
+ _ && !g && /* @__PURE__ */ n("div", {
73
+ class: "IncodeCheckboxMessageWrapper",
74
+ "data-testid": `${e}-helper-wrapper`,
75
+ children: /* @__PURE__ */ n("p", {
76
+ id: P,
77
+ class: "IncodeCheckboxHelperText",
78
+ children: _
79
+ })
80
+ })
81
+ ]
82
+ });
83
+ });
84
+ //#endregion
85
+ export { o as t };
@@ -1,83 +1,90 @@
1
- import { n as e } from "../i18n-ntrVdqVv.js";
2
- import { _ as t, l as n, v as r } from "../vendor-preact-D6SntenC.js";
3
- import { o as i } from "../hooks-BVnGysT7.js";
4
- import { t as a } from "../incodeComponent-CD-xTOQN.js";
5
- import { t as o } from "../page-DCsXSlHl.js";
6
- import { n as s } from "../typography-CxjaknHN.js";
7
- import { t as c } from "../transitionSpinner-BQEhWa_s.js";
8
- import { t as l } from "../button-DcCUEn2n.js";
9
- import { t as u } from "../checkbox-D58_nRQr.js";
10
- import { t as d } from "../incodeModule-D_r2n18O.js";
11
- import { t as f } from "../richText-gJTUJEMX.js";
12
- import { createConsentManager as p } from "@incodetech/core/consent";
1
+ import { n as e } from "../i18n-D6pCC7RL.js";
2
+ import { _ as t, d as n, l as r, v as i } from "../vendor-preact-D6SntenC.js";
3
+ import { o as a } from "../hooks-BVnGysT7.js";
4
+ import { t as o } from "../incodeComponent-BRtpx7iO.js";
5
+ import { t as s } from "../page-DCsXSlHl.js";
6
+ import { n as c } from "../typography-CxjaknHN.js";
7
+ import { t as l } from "../transitionSpinner-DHelnP9m.js";
8
+ import { t as u } from "../button-DcCUEn2n.js";
9
+ import { t as d } from "../checkbox-Cl57ltq_.js";
10
+ import { t as f } from "../incodeModule-D_r2n18O.js";
11
+ import { t as p } from "../richText-gJTUJEMX.js";
12
+ import { n as m, t as h } from "../requiredLabelHint-J9rEJWcF.js";
13
+ import { createConsentManager as g } from "@incodetech/core/consent";
13
14
  //#region src/modules/consent/consent.tsx
14
- var m = ({ config: a, manager: d, onFinish: m, onError: h }) => {
15
- let { t: g } = e(), _ = n(null), [v, y] = i(() => {
16
- if (d) return d;
17
- if (!a) throw Error("Consent config is required");
18
- return p({ config: a });
19
- }, { manageLifecycle: !d });
20
- return t(() => {
21
- v.status === "display" && _.current?.focus();
22
- }, [v.status]), v.status === "finished" ? (m?.(), null) : v.status === "error" ? (h?.(v.error), null) : v.status === "idle" || v.status === "loading" ? /* @__PURE__ */ r(c, { hideText: !0 }) : /* @__PURE__ */ r(o, {
15
+ var _ = ({ config: o, manager: f, onFinish: _, onError: v }) => {
16
+ let { t: y } = e(), b = r(null), [x, S] = a(() => {
17
+ if (f) return f;
18
+ if (!o) throw Error("Consent config is required");
19
+ return g({ config: o });
20
+ }, { manageLifecycle: !f });
21
+ t(() => {
22
+ x.status === "display" && b.current?.focus();
23
+ }, [x.status]);
24
+ let C = "checkboxes" in x ? x.checkboxes : void 0, w = n(() => m(C?.map((e) => e.required) ?? []), [C]);
25
+ return x.status === "finished" ? (_?.(), null) : x.status === "error" ? (v?.(x.error), null) : x.status === "idle" || x.status === "loading" ? /* @__PURE__ */ i(l, { hideText: !0 }) : /* @__PURE__ */ i(s, {
23
26
  className: "IncodeConsentPage",
24
27
  hideFooterBranding: !0,
25
28
  hideHeader: !0,
26
- children: /* @__PURE__ */ r("div", {
29
+ children: /* @__PURE__ */ i("div", {
27
30
  class: "IncodeConsentContent",
28
- children: [/* @__PURE__ */ r("div", {
31
+ children: [/* @__PURE__ */ i("div", {
29
32
  class: "IncodeConsentBody",
30
33
  children: [
31
- /* @__PURE__ */ r(s, {
32
- ref: _,
34
+ /* @__PURE__ */ i(c, {
35
+ ref: b,
33
36
  className: "IncodeConsentTitle",
34
37
  tabIndex: -1,
35
- children: v.title
38
+ children: x.title
36
39
  }),
37
- /* @__PURE__ */ r(f, {
38
- content: v.richText,
40
+ /* @__PURE__ */ i(p, {
41
+ content: x.richText,
39
42
  class: "IncodeRichText"
40
43
  }),
41
- /* @__PURE__ */ r("div", {
44
+ /* @__PURE__ */ i("div", {
42
45
  class: "IncodeConsentCheckboxList",
43
46
  role: "group",
44
- "aria-label": g("biometricConsent.consentOptions"),
45
- children: v.checkboxes.map((e) => /* @__PURE__ */ r(u, {
46
- id: `consent-checkbox-${e.id}`,
47
- class: "IncodeConsentCheckbox",
48
- size: "s",
49
- checked: e.checked,
50
- required: e.required,
51
- onChange: () => y.toggleCheckbox(e.id),
52
- label: /* @__PURE__ */ r("span", {
53
- class: "IncodeConsentCheckboxLabel",
54
- onClick: (e) => {
55
- e.target.closest("a") && e.stopPropagation();
56
- },
57
- children: /* @__PURE__ */ r(f, {
58
- content: e.label,
59
- class: "IncodeRichText",
60
- disallowedTags: ["img"]
47
+ "aria-label": y("biometricConsent.consentOptions"),
48
+ children: x.checkboxes.map((e) => {
49
+ let t = h(w, e.required), n = t ? y(`forms.label.${t}`) : void 0;
50
+ return /* @__PURE__ */ i(d, {
51
+ id: `consent-checkbox-${e.id}`,
52
+ class: "IncodeConsentCheckbox",
53
+ size: "s",
54
+ checked: e.checked,
55
+ required: e.required,
56
+ labelHint: n,
57
+ onChange: () => S.toggleCheckbox(e.id),
58
+ label: /* @__PURE__ */ i("span", {
59
+ class: "IncodeConsentCheckboxLabel",
60
+ onClick: (e) => {
61
+ e.target.closest("a") && e.stopPropagation();
62
+ },
63
+ children: /* @__PURE__ */ i(p, {
64
+ content: e.label,
65
+ class: "IncodeRichText",
66
+ disallowedTags: ["img"]
67
+ })
61
68
  })
62
- })
63
- }, e.id))
69
+ }, e.id);
70
+ })
64
71
  })
65
72
  ]
66
- }), /* @__PURE__ */ r(l, {
73
+ }), /* @__PURE__ */ i(u, {
67
74
  "data-testid": "consent-submit",
68
- onClick: () => y.submit(),
69
- disabled: !v.canSubmit,
70
- isLoading: v.status === "submitting",
71
- children: g("biometricConsent.button.continue")
75
+ onClick: () => S.submit(),
76
+ disabled: !x.canSubmit,
77
+ isLoading: x.status === "submitting",
78
+ children: y("biometricConsent.button.continue")
72
79
  })]
73
80
  })
74
81
  }, "ready");
75
- }, h = ({ config: e, manager: t, onFinish: n, onError: i }) => /* @__PURE__ */ r(a, { children: e ? /* @__PURE__ */ r(m, {
82
+ }, v = ({ config: e, manager: t, onFinish: n, onError: r }) => /* @__PURE__ */ i(o, { children: e ? /* @__PURE__ */ i(_, {
76
83
  config: e,
77
84
  manager: t,
78
85
  onFinish: n,
79
- onError: i
86
+ onError: r
80
87
  }) : null });
81
- d(h, "incode-consent");
88
+ f(v, "incode-consent");
82
89
  //#endregion
83
- export { h as Consent };
90
+ export { v as Consent };
@@ -103,12 +103,6 @@
103
103
  color: var(--color-surface-brand-600, var(--surface-brand-600-static));
104
104
  }
105
105
 
106
- .IncodeConsentPage .IncodeCheckboxRequired {
107
- margin-left: var(--spacing-0, var(--spacing-none, 0px));
108
- color: var(--color-text-body-primary, var(--text-body-800-primary));
109
- white-space: nowrap;
110
- }
111
-
112
106
  .IncodeConsentPage .IncodeConsentButton {
113
107
  width: 100%;
114
108
  }
@@ -1,6 +1,6 @@
1
- import { n as e } from "./i18n-ntrVdqVv.js";
1
+ import { n as e } from "./i18n-D6pCC7RL.js";
2
2
  import { d as t, v as n } from "./vendor-preact-D6SntenC.js";
3
- import { t as r } from "./dropdownComposed-D3-uHt2M.js";
3
+ import { t as r } from "./dropdownComposed-BP11clgh.js";
4
4
  import { DEV_ONLY_COUNTRIES as i, SUPPORTED_COUNTRIES as a } from "@incodetech/core/ekyb";
5
5
  //#region src/modules/ekyb/countrySelector.tsx
6
6
  function o(e) {
@@ -5,8 +5,8 @@ import { t as a } from "./page-DCsXSlHl.js";
5
5
  import { t as o } from "./spinner-CKnjVHxw.js";
6
6
  import "./spinner-B4dcie2T.js";
7
7
  import { t as s } from "./button-DcCUEn2n.js";
8
- import { t as c } from "./verificationResult-DpTgAV4I.js";
9
- import { t as l } from "./inputComposed-CWgsRItD.js";
8
+ import { t as c } from "./verificationResult-Zcgwq6Cv.js";
9
+ import { t as l } from "./inputComposed-APSw8C7o.js";
10
10
  import { createCpfOcrManager as u } from "@incodetech/core/cpf-ocr";
11
11
  //#region src/modules/cpf-ocr/cpfOcr.tsx
12
12
  var d = (e) => e.status === "inputting" ? {
@@ -1,6 +1,6 @@
1
1
  import { _ as e, v as t } from "../vendor-preact-D6SntenC.js";
2
2
  import { o as n } from "../hooks-BVnGysT7.js";
3
- import { t as r } from "../incodeComponent-CD-xTOQN.js";
3
+ import { t as r } from "../incodeComponent-BRtpx7iO.js";
4
4
  import { t as i } from "../spinner-CKnjVHxw.js";
5
5
  import { t as a } from "../incodeModule-D_r2n18O.js";
6
6
  import { createCrossDocumentDataMatchManager as o } from "@incodetech/core/cross-document-data-match";