@incodetech/web 0.0.0-dev-20260608-c8c427ca → 0.0.0-dev-20260609-11ba3e8a

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 (211) hide show
  1. package/dist/ae-signature/ae-signature.es.js +15 -13
  2. package/dist/aligndevicelottie-DY_bX_p8.js +12769 -0
  3. package/dist/antifraud/antifraud.es.js +22 -19
  4. package/dist/authentication/authentication.es.js +42 -33
  5. package/dist/autoFocusTitle-DM6PvgcP.js +29 -0
  6. package/dist/{back-horizontal-hint-DsPhKbR4.js → back-horizontal-hint-BXYix0Wj.js} +26 -26
  7. package/dist/back-tutorial-vb1MxlrT.js +14597 -0
  8. package/dist/{back-vertical-hint-BFJbYQrX.js → back-vertical-hint-DNSh6JNH.js} +27 -27
  9. package/dist/backdevicelottie-HypPqBz7.js +16690 -0
  10. package/dist/base.css +5 -0
  11. package/dist/blurdevicelottie-CBXtBFiJ.js +15951 -0
  12. package/dist/bottomSheet-BuzqNQtG.js +39 -0
  13. package/dist/browser-ponyfill-CLLvZCVg.js +441 -0
  14. package/dist/button-B-qlr4iI.js +35 -0
  15. package/dist/checkbox-CTPETqo5.js +96 -0
  16. package/dist/consent/consent.es.js +75 -64
  17. package/dist/countrySelector-CzyuaDIs.js +60 -0
  18. package/dist/cpf-ocr/cpf-ocr.es.js +2 -2
  19. package/dist/cpfOcr-DQVs3r8N.js +92 -0
  20. package/dist/cpfOcr-WNklFuxT.js +2 -0
  21. package/dist/cross-document-data-match/cross-document-data-match.es.js +20 -17
  22. package/dist/curp-validation/curp-validation.es.js +246 -211
  23. package/dist/customFields-B4MqqDI6.js +140 -0
  24. package/dist/customWatchlist-Dfqw1DQP.js +36 -0
  25. package/dist/dateInputComposed-BsPQHG5o.js +1 -0
  26. package/dist/dateInputComposed-DY97tQVK.js +69 -0
  27. package/dist/defineProperty-mefzVtTv.js +39 -0
  28. package/dist/document-capture/document-capture.es.js +2 -2
  29. package/dist/documentCapture-BE78MIlR.js +876 -0
  30. package/dist/documentCapture-BVfNZL29.js +2 -0
  31. package/dist/dropdownComposed-BF4L-7mJ.js +380 -0
  32. package/dist/dropdownComposed-mvHuRFHn.js +1 -0
  33. package/dist/dynamicForms-BYGGAQoc.js +352 -0
  34. package/dist/ekyb/ekyb.es.js +2 -2
  35. package/dist/ekybModule-BUPX0QhW.js +2 -0
  36. package/dist/ekybModule-CkTXu-4u.js +279 -0
  37. package/dist/ekyc/ekyc.es.js +2 -2
  38. package/dist/ekycModule-BWsVX39d.js +257 -0
  39. package/dist/ekycModule-DNDPqvUc.js +2 -0
  40. package/dist/electronic-signature/electronic-signature.es.js +2 -2
  41. package/dist/electronic-signature-BJSyzex9.js +426 -0
  42. package/dist/email/email.es.js +198 -78
  43. package/dist/emailInput-BHp4Apt4.js +39 -0
  44. package/dist/errorIcon-B0rmz3rw.js +26 -0
  45. package/dist/expiredId-C105HVKv.js +85 -0
  46. package/dist/extensibility-DJwVxojG.js +3070 -0
  47. package/dist/extensibility.es.js +26 -26
  48. package/dist/face-match/face-match.es.js +2 -2
  49. package/dist/faceMatch-BOFGxzzx.js +343 -0
  50. package/dist/faceMatch-CDMcFQwR.js +2 -0
  51. package/dist/field-comparison/field-comparison.es.js +2 -2
  52. package/dist/fieldComparison-BMDmQ8eA.js +88 -0
  53. package/dist/fieldComparison-Z1NleSxD.js +2 -0
  54. package/dist/{flip-animation-CuQ57qTn.js → flip-animation-BGRvygw9.js} +4221 -4221
  55. package/dist/flow/flow.es.js +597 -493
  56. package/dist/flow/styles.css +0 -8
  57. package/dist/{front-horizontal-hint-CKm7PnmS.js → front-horizontal-hint-CLSU0iVo.js} +70 -70
  58. package/dist/{front-vertical-hint-CLHC2qoH.js → front-vertical-hint-BWq-yWQ8.js} +81 -81
  59. package/dist/frontdevicelottie-CLqitJhG.js +17314 -0
  60. package/dist/geolocation/geolocation.es.js +485 -395
  61. package/dist/glaredevicelottie-BS04U6Fc.js +14478 -0
  62. package/dist/governmentValidation/governmentValidation.es.js +145 -64
  63. package/dist/governmentValidation/styles.css +0 -36
  64. package/dist/homeScreen-BsEYyiDB.js +264 -0
  65. package/dist/hooks-BtgmGvba.js +149 -0
  66. package/dist/i18n-gTHArCl9.js +2971 -0
  67. package/dist/icons-DKY3xDkf.js +360 -0
  68. package/dist/id/id.es.js +565 -413
  69. package/dist/id-laser-h-DX8UbVNH.js +467 -0
  70. package/dist/id-laser-v-DhnHdjlB.js +490 -0
  71. package/dist/id-tutorial-lj4iKtYT.js +13165 -0
  72. package/dist/id-verification/id-verification.es.js +21 -18
  73. package/dist/idOcr-BS77o1VC.js +123 -0
  74. package/dist/identity-reuse/identity-reuse.es.js +168 -130
  75. package/dist/incode-logo-57XFniXU.js +4 -0
  76. package/dist/incodeComponent-CDJxFZvS.js +63 -0
  77. package/dist/incodeModule-DkA_yd0X.js +13 -0
  78. package/dist/index.es.js +16 -14
  79. package/dist/inputComposed-5V2nLTqH.js +99 -0
  80. package/dist/inputComposed-BPOYwUBl.js +1 -0
  81. package/dist/loadingIcon-DN62ugKs.js +148 -0
  82. package/dist/lottie_light-Dp9Bz3mf.js +9031 -0
  83. package/dist/mandatoryConsent-DP189TUn.js +107 -0
  84. package/dist/modal-B5QeulDu.js +153 -0
  85. package/dist/modal.hooks-C7K9k_pY.js +202 -0
  86. package/dist/numberedStep-DVAyTPv1.js +13 -0
  87. package/dist/optionAccessibleLabel-Czc2YC8z.js +202 -0
  88. package/dist/otpInput-2IQ-JCK8.js +195 -0
  89. package/dist/page-BZ-0eNWq.js +71 -0
  90. package/dist/{passport-horizontal-hint-C_le0HVU.js → passport-horizontal-hint-DfVsf4Cc.js} +55 -55
  91. package/dist/{passport-tutorial-BYN4T_TE.js → passport-tutorial-zT1ZoA-D.js} +7096 -7084
  92. package/dist/{passport-vertical-hint-H-pyICSv.js → passport-vertical-hint-DVxbTyQp.js} +49 -49
  93. package/dist/pdf-BZA70WbM.js +22398 -0
  94. package/dist/pdfViewer-Dr63sJ51.js +114 -0
  95. package/dist/phone/phone.es.js +214 -87
  96. package/dist/phoneInputComposed-D_IabWKJ.js +12142 -0
  97. package/dist/processing-B_u8wUB7.js +8 -0
  98. package/dist/qe-signature/qe-signature.es.js +15 -13
  99. package/dist/radioGroupComposed-DwYW-Ld-.js +215 -0
  100. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +2099 -859
  101. package/dist/registerIncodeElement-BJJGzVdq.js +11 -0
  102. package/dist/requiredLabelHint-DEadtiwx.js +17 -0
  103. package/dist/richText-C7GUm0WL.js +3153 -0
  104. package/dist/rolldown-runtime--E5BIlTp.js +33 -0
  105. package/dist/selfie/selfie.es.js +54 -42
  106. package/dist/selfieTutorial-CtruLyO2.js +2689 -0
  107. package/dist/signature/signature.es.js +765 -406
  108. package/dist/snackbar-Dz9crm39.js +16 -0
  109. package/dist/spinner-BfBIZkDQ.js +42 -0
  110. package/dist/spinner-DEDtE7Pz.js +1 -0
  111. package/dist/statusPage-CVCoieyd.js +28 -0
  112. package/dist/successIcon-rmzr-pxu.js +30 -0
  113. package/dist/tabs--UMd6eEB.js +103 -0
  114. package/dist/transitionSpinner-CWhGcr7c.js +26 -0
  115. package/dist/{tutorial-QzQ536BL.js → tutorial-Jv0noW4z.js} +832 -578
  116. package/dist/types/extensibility.d.ts +3 -1
  117. package/dist/types/index.d.ts +13 -4
  118. package/dist/typography-BK4AmfKX.js +45 -0
  119. package/dist/uiConfig-sgEkFuuA.js +25 -0
  120. package/dist/useModuleLoader-CuhHtmgr.js +670 -0
  121. package/dist/vendor-preact-BH7vOa2r.js +957 -0
  122. package/dist/verificationResult-CJ0JyV6A.js +64 -0
  123. package/dist/verifiedByIncode-8QBn-kgZ.js +103 -0
  124. package/dist/watchlist/watchlist.es.js +31 -26
  125. package/dist/watchlistForBusiness-RZcnjVDb.js +80 -0
  126. package/dist/workflow/styles.css +0 -8
  127. package/dist/workflow/workflow.es.js +251 -209
  128. package/package.json +4 -2
  129. package/dist/aligndevicelottie-D8KsO77t.js +0 -12757
  130. package/dist/autoFocusTitle-BpYdaSUM.js +0 -16
  131. package/dist/back-tutorial-DhSE2FJo.js +0 -14585
  132. package/dist/backdevicelottie-CJWGVMdw.js +0 -16678
  133. package/dist/blurdevicelottie-Dxt2deEB.js +0 -15939
  134. package/dist/bottomSheet-QrpyatOD.js +0 -31
  135. package/dist/browser-ponyfill-Crda_c5R.js +0 -299
  136. package/dist/button-DcCUEn2n.js +0 -24
  137. package/dist/checkbox-DCCzBAuF.js +0 -86
  138. package/dist/countrySelector-CJ8egQ4C.js +0 -58
  139. package/dist/cpfOcr-Db06i-Lm.js +0 -2
  140. package/dist/cpfOcr-FixhUeMQ.js +0 -79
  141. package/dist/customFields-C1G9xHNX.js +0 -125
  142. package/dist/customWatchlist-IKEblz7u.js +0 -31
  143. package/dist/dateInputComposed-Cg8BvYSK.js +0 -1
  144. package/dist/dateInputComposed-Ddd7HLyM.js +0 -58
  145. package/dist/defineProperty-xczUyn-m.js +0 -39
  146. package/dist/documentCapture-D9I7FjGe.js +0 -2
  147. package/dist/documentCapture-b61wlala.js +0 -765
  148. package/dist/dropdownComposed-B4U0AIak.js +0 -1
  149. package/dist/dropdownComposed-CS2pyn-g.js +0 -293
  150. package/dist/dynamicForms-tYQog0kw.js +0 -298
  151. package/dist/ekybModule-C33C4JES.js +0 -237
  152. package/dist/ekybModule-LON6G2Bz.js +0 -2
  153. package/dist/ekycModule-BJOgtTAh.js +0 -225
  154. package/dist/ekycModule-BSf_DIG7.js +0 -2
  155. package/dist/electronic-signature-OdgTyso4.js +0 -406
  156. package/dist/emailInput-CU7mLB21.js +0 -37
  157. package/dist/errorIcon-DpHzAoAo.js +0 -24
  158. package/dist/expiredId-nfVAZgTL.js +0 -70
  159. package/dist/extensibility-BbNy3mVG.js +0 -2602
  160. package/dist/faceMatch-BIila4kf.js +0 -2
  161. package/dist/faceMatch-DJ7Mqujx.js +0 -206
  162. package/dist/fieldComparison-D2RSFYl-.js +0 -84
  163. package/dist/fieldComparison-DbUyouFd.js +0 -2
  164. package/dist/frontdevicelottie-65Vyfpff.js +0 -17302
  165. package/dist/glaredevicelottie-BEyaqtc6.js +0 -14466
  166. package/dist/homeScreen-CyPddxWl.js +0 -227
  167. package/dist/hooks-MxHtZWTS.js +0 -112
  168. package/dist/i18n-Kzzvkz94.js +0 -2019
  169. package/dist/icons-9I5g9-_1.js +0 -292
  170. package/dist/id-laser-h-iCPbFixz.js +0 -467
  171. package/dist/id-laser-v-CNzwliP2.js +0 -483
  172. package/dist/id-tutorial-CF4nO4oX.js +0 -13153
  173. package/dist/idOcr-DlMLMDqa.js +0 -97
  174. package/dist/incode-logo-DX016usY.js +0 -4
  175. package/dist/incodeComponent-BoFhgK7G.js +0 -50
  176. package/dist/incodeModule-BiCoAJ5k.js +0 -13
  177. package/dist/inputComposed-DAEey9xm.js +0 -94
  178. package/dist/inputComposed-eS4B0Mkh.js +0 -1
  179. package/dist/loadingIcon-BN5YRQUb.js +0 -104
  180. package/dist/lottie_light-DLqSnziX.js +0 -4419
  181. package/dist/mandatoryConsent-DNz2jZ43.js +0 -98
  182. package/dist/modal-ZqAhwiRF.js +0 -135
  183. package/dist/modal.hooks-LdusROLW.js +0 -126
  184. package/dist/numberedStep-CdLWASwL.js +0 -11
  185. package/dist/optionAccessibleLabel-DcygPaME.js +0 -140
  186. package/dist/otpInput-C4pk4BJU.js +0 -157
  187. package/dist/page-DA3R7q0J.js +0 -69
  188. package/dist/pdf-51QeiFSx.js +0 -14967
  189. package/dist/pdfViewer-rKzTHket.js +0 -64
  190. package/dist/phoneInputComposed-CjAxk2Gj.js +0 -11230
  191. package/dist/processing-DPktVde2.js +0 -6
  192. package/dist/radioGroupComposed-DRRxVk9Z.js +0 -178
  193. package/dist/registerIncodeElement-BHWOwdSS.js +0 -7
  194. package/dist/requiredLabelHint-B6FN3v88.js +0 -13
  195. package/dist/richText-6pIbydcz.js +0 -1973
  196. package/dist/rolldown-runtime-CYMK-g2i.js +0 -20
  197. package/dist/selfieTutorial-Yo9AlUoT.js +0 -2677
  198. package/dist/snackbar-CQiiWO4p.js +0 -14
  199. package/dist/spinner-B4dcie2T.js +0 -1
  200. package/dist/spinner-CKnjVHxw.js +0 -39
  201. package/dist/statusPage-B8b3Jg6N.js +0 -28
  202. package/dist/successIcon-SlKgTSty.js +0 -28
  203. package/dist/tabs-D7lGst3Q.js +0 -78
  204. package/dist/transitionSpinner-Di3bOyOu.js +0 -17
  205. package/dist/typography-CxjaknHN.js +0 -28
  206. package/dist/uiConfig-CwpQ-IM6.js +0 -20
  207. package/dist/useModuleLoader-Bqs7fglI.js +0 -517
  208. package/dist/vendor-preact-D6SntenC.js +0 -958
  209. package/dist/verificationResult-DhT3hH1b.js +0 -90
  210. package/dist/verifiedByIncode-DpbxzO0y.js +0 -101
  211. package/dist/watchlistForBusiness-CRXVbH4l.js +0 -75
@@ -1,517 +0,0 @@
1
- import { a as e, i as t, n, r } from "./i18n-Kzzvkz94.js";
2
- import { _ as i, l as a, p as o, v as s } from "./vendor-preact-D6SntenC.js";
3
- import { t as c } from "./uiConfig-CwpQ-IM6.js";
4
- import { t as l } from "./page-DA3R7q0J.js";
5
- import { t as u } from "./button-DcCUEn2n.js";
6
- import { t as d } from "./errorIcon-DpHzAoAo.js";
7
- import { initializeWasmUtil as f, resolveWasmConfig as p, setWasmConfig as m, upgradeToWasmHttpClient as ee, warmupWasm as h } from "@incodetech/core/wasm";
8
- import { getDeviceClass as g } from "@incodetech/core/device";
9
- import { createOrchestratedFlowManager as te, getFlow as ne, getRequiredWasmPipelines as _ } from "@incodetech/core/flow";
10
- import { getFinishStatus as v, initializeSession as y } from "@incodetech/core/session";
11
- import { api as b } from "@incodetech/core/http";
12
- //#region src/shared/terminalErrorPage/terminalErrorPage.tsx
13
- var x = ({ message: e, onRetry: t }) => {
14
- let { t: r } = n(), o = a(null);
15
- i(() => {
16
- o.current?.focus();
17
- }, []);
18
- let c = () => {
19
- if (t) {
20
- t();
21
- return;
22
- }
23
- typeof window < "u" && window.location.reload();
24
- };
25
- return /* @__PURE__ */ s(l, {
26
- className: "IncodeTerminalErrorPage",
27
- "data-testid": "terminal-error-page",
28
- children: /* @__PURE__ */ s("div", {
29
- class: "IncodeTerminalErrorPageBody",
30
- children: [/* @__PURE__ */ s("div", {
31
- class: "IncodeTerminalErrorPageStatus",
32
- children: [
33
- /* @__PURE__ */ s(d, { size: 64 }),
34
- /* @__PURE__ */ s("h2", {
35
- ref: o,
36
- class: "IncodeTerminalErrorPageTitle",
37
- tabIndex: -1,
38
- children: r("common.somethingWentWrong")
39
- }),
40
- /* @__PURE__ */ s("p", {
41
- class: "IncodeTerminalErrorPageMessage",
42
- children: e ?? r("common.unexpectedError")
43
- })
44
- ]
45
- }), /* @__PURE__ */ s("div", {
46
- class: "IncodeTerminalErrorPageFooter",
47
- children: /* @__PURE__ */ s(u, {
48
- onClick: c,
49
- children: r("common.tryAgain")
50
- })
51
- })]
52
- })
53
- });
54
- };
55
- //#endregion
56
- //#region src/styles/generatePalette.ts
57
- function S(e) {
58
- let t = e.replace("#", "");
59
- t.length === 3 && (t = t.split("").map((e) => e + e).join(""));
60
- let n = /^([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);
61
- if (!n) return null;
62
- let r = Number.parseInt(n[1], 16) / 255, i = Number.parseInt(n[2], 16) / 255, a = Number.parseInt(n[3], 16) / 255, o = Math.max(r, i, a), s = Math.min(r, i, a), c = 0, l = 0, u = (o + s) / 2;
63
- if (o !== s) {
64
- let e = o - s;
65
- switch (l = u > .5 ? e / (2 - o - s) : e / (o + s), o) {
66
- case r:
67
- c = ((i - a) / e + (i < a ? 6 : 0)) / 6;
68
- break;
69
- case i:
70
- c = ((a - r) / e + 2) / 6;
71
- break;
72
- case a:
73
- c = ((r - i) / e + 4) / 6;
74
- break;
75
- }
76
- }
77
- return {
78
- h: c * 360,
79
- s: l * 100,
80
- l: u * 100
81
- };
82
- }
83
- function C(e, t, n) {
84
- let r = e / 360, i = t / 100, a = n / 100, o, s, c;
85
- if (i === 0) o = s = c = a;
86
- else {
87
- let e = (e, t, n) => (n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e), t = a < .5 ? a * (1 + i) : a + i - a * i, n = 2 * a - t;
88
- o = e(n, t, r + 1 / 3), s = e(n, t, r), c = e(n, t, r - 1 / 3);
89
- }
90
- let l = (e) => {
91
- let t = Math.round(e * 255).toString(16);
92
- return t.length === 1 ? `0${t}` : t;
93
- };
94
- return `#${l(o)}${l(s)}${l(c)}`;
95
- }
96
- function re(e) {
97
- let t = S(e);
98
- if (!t) throw Error(`Invalid color format: ${e}`);
99
- return {
100
- 50: C(t.h, t.s, 95),
101
- 200: C(t.h, t.s, 80),
102
- 300: C(t.h, t.s, 65),
103
- 400: C(t.h, t.s, Math.min(100, t.l + 10)),
104
- 500: e,
105
- 600: C(t.h, t.s, Math.max(0, t.l - 10)),
106
- 900: C(t.h, t.s, 20)
107
- };
108
- }
109
- //#endregion
110
- //#region src/styles/applyTheme.ts
111
- function ie(e, t) {
112
- if (typeof document > "u") return;
113
- let n = re(e), r = document.getElementById("incode-theme");
114
- r || (r = document.createElement("style"), r.id = "incode-theme", document.head.appendChild(r));
115
- let i = t || "#ffffff", a = `
116
- :root,
117
- :host {
118
- --primitive-color-brand-50: ${n[50]};
119
- --primitive-color-brand-200: ${n[200]};
120
- --primitive-color-brand-300: ${n[300]};
121
- --primitive-color-brand-400: ${n[400]};
122
- --primitive-color-brand-500: ${n[500]};
123
- --primitive-color-brand-600: ${n[600]};
124
- --primitive-color-brand-900: ${n[900]};
125
- --button-primary-text-default: ${i};
126
- }
127
- `;
128
- r.textContent = a;
129
- }
130
- //#endregion
131
- //#region src/styles/fetchTheme.ts
132
- async function ae() {
133
- return (await b.get("/omni/asset/fetch-all")).data;
134
- }
135
- var w = /* @__PURE__ */ new Map();
136
- async function oe(e) {
137
- if (e.startsWith("data:")) return e;
138
- let t = w.get(e);
139
- if (t) return t;
140
- let n = await (await fetch(e)).blob(), r = await new Promise((e, t) => {
141
- let r = new FileReader();
142
- r.onloadend = () => e(r.result), r.onerror = t, r.readAsDataURL(n);
143
- });
144
- return w.set(e, r), r;
145
- }
146
- async function T() {
147
- let e = await ae();
148
- if (!e.theme) throw Error("Theme URL not found in assets response");
149
- let t = e.theme, n = t.startsWith("http://") || t.startsWith("https://"), r;
150
- if (n) {
151
- let e = await fetch(t);
152
- if (!e.ok) throw Error(`Failed to fetch theme: ${e.statusText}`);
153
- r = await e.json();
154
- } else r = (await b.get(t)).data;
155
- let i = e["logo.png"] || e["logo.svg"] || e["logo.jpg"] || e["logo.jpeg"] || e["logo.webp"] || r.logo, a = i;
156
- return i && (a = await oe(i)), {
157
- ...r,
158
- logo: a
159
- };
160
- }
161
- async function E() {
162
- let e = await T();
163
- return e.main && ie(e.main, e.buttonColor), e;
164
- }
165
- //#endregion
166
- //#region src/modules/flow/flowInit.ts
167
- var D = () => import("./id/id.es.js").then((e) => e.Id), O = () => import("./homeScreen-CyPddxWl.js").then((e) => e.HomeScreen), k, A = new Set(["IP_ADDRESS", "TRUST_GRAPH"]);
168
- function j(e) {
169
- if (e === "IP_ADDRESS") return () => import("@incodetech/core/flow").then((e) => e.noOpFlowModuleMachine);
170
- if (e === "TRUST_GRAPH") return () => import("@incodetech/core/trust-graph").then((e) => e.trustGraphMachine);
171
- if (e === "REDIRECT_TO_MOBILE") return () => import("@incodetech/core/redirect-to-mobile").then((e) => e.redirectToMobileMachine);
172
- if (e === "PHONE") return () => import("@incodetech/core/phone").then((e) => e.phoneMachine);
173
- if (e === "EMAIL") return () => import("@incodetech/core/email").then((e) => e.emailMachine);
174
- if (e === "SELFIE") return () => import("@incodetech/core/selfie").then((e) => e.selfieMachine);
175
- if (e === "AUTHENTICATION") return () => import("@incodetech/core/authentication").then((e) => e.authenticationMachine);
176
- if (e === "ID" || e === "TUTORIAL_ID" || e === "SECOND_ID") return () => import("@incodetech/core/id").then((e) => e.idCaptureMachine);
177
- if (e === "ID_OCR") return () => import("@incodetech/core/id-ocr").then((e) => e.idOcrStateMachine);
178
- if (e === "CPF_OCR") return () => import("@incodetech/core/cpf-ocr").then((e) => e.cpfOcrMachine);
179
- if (e === "FACE_MATCH") return () => import("@incodetech/core/face-match").then((e) => e.faceMatchMachine);
180
- if (e === "CURP_VALIDATION") return () => import("@incodetech/core/curp-validation").then((e) => e.curpValidationMachine);
181
- if (e === "GOVT_VALIDATION_PROVISIONING" || e === "INE_VALIDATION") return () => import("@incodetech/core/government-validation").then((e) => e.governmentValidationMachine);
182
- if (e === "GEOLOCATION") return () => import("@incodetech/core/geolocation").then((e) => e.geolocationMachine);
183
- if (e === "EXTERNAL_VERIFICATION") return () => import("@incodetech/core/ekyc").then((e) => e.ekycMachine);
184
- if (e === "EKYB") return () => import("@incodetech/core/ekyb").then((e) => e.ekybMachine);
185
- if (e === "DOCUMENT_CAPTURE" || e === "ADDRESS") return () => import("@incodetech/core/document-capture").then((e) => e.documentCaptureMachine);
186
- if (e === "COMBINED_CONSENT") return () => import("@incodetech/core/consent").then((e) => e.consentMachine);
187
- if (e === "MANDATORY_CONSENT" || e === "ML_CONSENT") return () => import("@incodetech/core/mandatory-consent").then((e) => e.mandatoryConsentMachine);
188
- if (e === "SIGNATURE") return () => import("@incodetech/core/signature").then((e) => e.signatureMachine);
189
- if (e === "ANTIFRAUD") return () => import("@incodetech/core/antifraud").then((e) => e.antifraudMachine);
190
- if (e === "CUSTOM_FIELDS") return () => import("@incodetech/core/custom-fields").then((e) => e.customFieldsMachine);
191
- if (e === "WATCHLIST") return () => import("@incodetech/core/watchlist").then((e) => e.watchlistMachine);
192
- if (e === "WATCHLIST_BUSINESS") return () => import("@incodetech/core/watchlist-for-business").then((e) => e.watchlistForBusinessMachine);
193
- if (e === "INCODE_WATCHLIST") return () => import("@incodetech/core/custom-watchlist").then((e) => e.customWatchlistMachine);
194
- if (e === "AE_SIGNATURE") return () => import("@incodetech/core/ae-signature").then((e) => e.aeSignatureMachine);
195
- if (e === "QE_SIGNATURE") return () => import("@incodetech/core/qe-signature").then((e) => e.qeSignatureMachine);
196
- if (e === "CROSS_DOCUMENT_DATA_MATCH") return () => import("@incodetech/core/cross-document-data-match").then((e) => e.crossDocumentDataMatchMachine);
197
- if (e === "DYNAMIC_FORMS") return () => import("@incodetech/core/dynamic-forms").then((e) => e.dynamicFormsMachine);
198
- if (e === "FIELD_COMPARISON") return () => import("@incodetech/core/field-comparison").then((e) => e.fieldComparisonMachine);
199
- }
200
- function M(e) {
201
- let t = {};
202
- for (let n of e) {
203
- let e = n.key;
204
- if (t[e]) continue;
205
- let r = j(e);
206
- r && (t[e] = r);
207
- }
208
- return t;
209
- }
210
- var N = {
211
- REDIRECT_TO_MOBILE: () => import("./redirect-to-mobile/redirect-to-mobile.es.js").then((e) => e.RedirectToMobile),
212
- PHONE: () => import("./phone/phone.es.js").then((e) => e.Phone),
213
- EMAIL: () => import("./email/email.es.js").then((e) => e.Email),
214
- SELFIE: () => import("./selfie/selfie.es.js").then((e) => e.Selfie),
215
- AUTHENTICATION: () => import("./authentication/authentication.es.js").then((e) => e.Authentication),
216
- ID: D,
217
- ID_CAPTURE: D,
218
- TUTORIAL_ID: D,
219
- SECOND_ID: D,
220
- FACE_MATCH: () => import("./faceMatch-BIila4kf.js").then((e) => e.FaceMatch),
221
- CURP_VALIDATION: () => import("./curp-validation/curp-validation.es.js").then((e) => e.CurpValidation),
222
- GOVT_VALIDATION_PROVISIONING: () => import("./governmentValidation/governmentValidation.es.js").then((e) => e.GovernmentValidation),
223
- INE_VALIDATION: () => import("./governmentValidation/governmentValidation.es.js").then((e) => e.GovernmentValidation),
224
- GEOLOCATION: () => import("./geolocation/geolocation.es.js").then((e) => e.Geolocation),
225
- EXTERNAL_VERIFICATION: () => import("./ekycModule-BSf_DIG7.js").then((e) => e.EkycModule),
226
- EKYB: () => import("./ekybModule-LON6G2Bz.js").then((e) => e.EkybModule),
227
- DOCUMENT_CAPTURE: () => import("./documentCapture-D9I7FjGe.js").then((e) => e.DocumentCapture),
228
- ADDRESS: () => import("./documentCapture-D9I7FjGe.js").then((e) => e.DocumentCapture),
229
- COMBINED_CONSENT: () => import("./consent/consent.es.js").then((e) => e.Consent),
230
- MANDATORY_CONSENT: () => import("./mandatoryConsent-DNz2jZ43.js").then((e) => e.MandatoryConsent),
231
- ML_CONSENT: () => import("./mandatoryConsent-DNz2jZ43.js").then((e) => e.MandatoryConsent),
232
- SIGNATURE: () => import("./signature/signature.es.js").then((e) => e.Signature),
233
- ID_OCR: () => import("./idOcr-DlMLMDqa.js").then((e) => e.IdOcr),
234
- CPF_OCR: () => import("./cpfOcr-Db06i-Lm.js").then((e) => e.CpfOcr),
235
- ANTIFRAUD: () => import("./antifraud/antifraud.es.js").then((e) => e.Antifraud),
236
- CUSTOM_FIELDS: () => import("./customFields-C1G9xHNX.js").then((e) => e.CustomFields),
237
- WATCHLIST: () => import("./watchlist/watchlist.es.js").then((e) => e.Watchlist),
238
- WATCHLIST_BUSINESS: () => import("./watchlistForBusiness-CRXVbH4l.js").then((e) => e.WatchlistForBusiness),
239
- INCODE_WATCHLIST: () => import("./customWatchlist-IKEblz7u.js").then((e) => e.CustomWatchlist),
240
- AE_SIGNATURE: () => import("./ae-signature/ae-signature.es.js").then((e) => e.AeSignature),
241
- QE_SIGNATURE: () => import("./qe-signature/qe-signature.es.js").then((e) => e.QeSignature),
242
- CROSS_DOCUMENT_DATA_MATCH: () => import("./cross-document-data-match/cross-document-data-match.es.js").then((e) => e.CrossDocumentDataMatch),
243
- DYNAMIC_FORMS: () => import("./dynamicForms-tYQog0kw.js").then((e) => e.DynamicForms),
244
- FIELD_COMPARISON: () => import("./fieldComparison-DbUyouFd.js").then((e) => e.FieldComparison)
245
- };
246
- function P() {
247
- return O();
248
- }
249
- function F() {
250
- k || (k = P(), k.catch(() => {
251
- k = void 0;
252
- }));
253
- }
254
- var I;
255
- function L() {
256
- if (I) return;
257
- let e = N.REDIRECT_TO_MOBILE, t = j("REDIRECT_TO_MOBILE"), n = [];
258
- e && n.push(e()), t && n.push(t()), I = Promise.all(n), I.catch(() => {
259
- I = void 0;
260
- });
261
- }
262
- function R(e = {}) {
263
- let t = {}, n = e.isDesktop ?? g() === "desktop", { enableHome: r, ...i } = e, a = {
264
- endScreenTitle: null,
265
- endScreenText: null
266
- }, o = te({
267
- enableHome: r,
268
- getFlow: async (e) => {
269
- let r = await ne(e, {
270
- ...i,
271
- isDesktop: n
272
- }), a = M(r.flowModules ?? []);
273
- for (let e of Object.keys(t)) delete t[e];
274
- return Object.assign(t, a), r;
275
- },
276
- getFinishStatus: async (e, t) => ({
277
- ...await v(e, t),
278
- ...a
279
- }),
280
- lazyModules: t
281
- });
282
- return Object.assign(o, { setEndScreenTexts(e, t) {
283
- a = {
284
- endScreenTitle: e,
285
- endScreenText: t
286
- };
287
- } });
288
- }
289
- async function z(n) {
290
- await y({ token: n.token }), !r() && t(e(n.lang ? { lang: n.lang } : void 0));
291
- }
292
- async function B(e) {
293
- let { token: t, lang: n, flowManager: r } = e;
294
- await z({
295
- token: t,
296
- lang: n
297
- }), r.load();
298
- }
299
- async function V() {
300
- try {
301
- let e = await E(), t = {
302
- logoSrc: e.logo,
303
- subtitle: e.subtitle,
304
- hideFooterBranding: e.hideFooterBranding
305
- };
306
- return c(t), {
307
- theme: e,
308
- uiConfig: t
309
- };
310
- } catch {
311
- return {};
312
- }
313
- }
314
- function H(e, t) {
315
- if (e.currentStep === "REDIRECT_TO_MOBILE") return;
316
- let n = _(e.flow);
317
- if (n.length > 0) {
318
- let e = p({
319
- ...t ?? {},
320
- pipelines: n
321
- }), r = {
322
- ...e,
323
- pipelines: e.pipelines ? [...e.pipelines] : void 0
324
- };
325
- m(r), h(e).then(() => f(r)).then(() => ee(r)).catch((e) => {
326
- console.error("WASM warmup failed:", e);
327
- });
328
- }
329
- }
330
- function U(e) {
331
- let t = e.currentStep;
332
- if (t) {
333
- let e = N[t];
334
- e && e().catch(() => {});
335
- }
336
- }
337
- //#endregion
338
- //#region src/modules/flow/unsupportedModule.tsx
339
- var se = ({ moduleKey: e, onNext: t }) => /* @__PURE__ */ s("section", {
340
- class: "IncodeUnsupportedModule",
341
- "aria-live": "polite",
342
- children: /* @__PURE__ */ s("div", {
343
- class: "IncodeUnsupportedModuleContent",
344
- children: [
345
- /* @__PURE__ */ s("h2", {
346
- class: "IncodeUnsupportedModuleTitle",
347
- children: "Module not available"
348
- }),
349
- /* @__PURE__ */ s("p", {
350
- class: "IncodeUnsupportedModuleMessage",
351
- children: [
352
- "The \"",
353
- e,
354
- "\" module is not yet supported in this version."
355
- ]
356
- }),
357
- /* @__PURE__ */ s(u, {
358
- onClick: t,
359
- class: "IncodeUnsupportedModuleButton",
360
- "data-testid": "unsupported-module-next-button",
361
- children: "Next"
362
- })
363
- ]
364
- })
365
- });
366
- //#endregion
367
- //#region src/modules/flow/extractIncodeStatus.ts
368
- function W(e) {
369
- if (typeof e == "object" && e && "status" in e && typeof e.status == "number") return e.status;
370
- }
371
- //#endregion
372
- //#region src/shared/selfLoading/resolveApiKey.ts
373
- function G(e) {
374
- return Array.from(new Uint8Array(e), (e) => e.toString(16).padStart(2, "0")).join("");
375
- }
376
- async function K(e) {
377
- let t = globalThis.crypto?.subtle;
378
- if (!t) throw Error("SHA-1 is not available in this environment");
379
- return G(await t.digest("SHA-1", new TextEncoder().encode(e)));
380
- }
381
- async function ce(e) {
382
- if (typeof e.apiKey == "string") return e.apiKey;
383
- if (typeof e.clientId == "string") return K(e.clientId);
384
- throw Error("Self-loading mode requires apiKey or clientId");
385
- }
386
- //#endregion
387
- //#region src/modules/flow/headlessModule.ts
388
- var le = () => null, ue = () => Promise.resolve(le), de = new Set(["IDENTITY_SEARCH"]);
389
- //#endregion
390
- //#region src/modules/flow/useModuleLoader.ts
391
- function fe(e, t) {
392
- return e instanceof Error ? e.message : t;
393
- }
394
- var q = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap();
395
- function Y(e) {
396
- return e;
397
- }
398
- function X(e) {
399
- if (e) return q.get(Y(e));
400
- }
401
- function Z(e) {
402
- let t = Y(e), n = q.get(t);
403
- if (n) return Promise.resolve(n);
404
- let r = J.get(t);
405
- if (r) return r;
406
- let i = e().then((e) => (q.set(t, e), J.delete(t), e)).catch((e) => {
407
- throw J.delete(t), e;
408
- });
409
- return J.set(t, i), i;
410
- }
411
- function Q(e) {
412
- if (!e) return { status: "idle" };
413
- let t = X(e);
414
- return t ? {
415
- status: "loaded",
416
- Component: t
417
- } : { status: "loading" };
418
- }
419
- function pe(e, t, n) {
420
- if (e) return t[e] ?? (n?.has(e) ? ue : void 0);
421
- }
422
- function $(e) {
423
- let { loader: t, onLoading: n, onLoaded: r, onError: s } = e, [c, l] = o(() => Q(t)), u = a(t), d = a(n), f = a(r), p = a(s);
424
- return i(() => {
425
- d.current = n, f.current = r, p.current = s;
426
- }, [
427
- n,
428
- r,
429
- s
430
- ]), u.current !== t && (u.current = t, l(Q(t))), i(() => {
431
- if (!t) return;
432
- if (X(t)) {
433
- f.current?.();
434
- return;
435
- }
436
- d.current?.();
437
- let e = !1;
438
- return Z(t).then((t) => {
439
- e || (l({
440
- status: "loaded",
441
- Component: t
442
- }), f.current?.());
443
- }).catch((t) => {
444
- if (!e) {
445
- let e = fe(t, "Failed to load component");
446
- l({
447
- status: "error",
448
- error: e
449
- }), p.current?.(e);
450
- }
451
- }), () => {
452
- e = !0;
453
- };
454
- }, [t]), c;
455
- }
456
- function me(e) {
457
- let { moduleKey: t, modules: n, headlessModuleKeys: r, onModuleLoading: a, onModuleLoaded: s, onError: c } = e, [l, u] = o(void 0), d = pe(t, n, r), f = $({
458
- loader: d,
459
- onLoading: t ? () => a?.(t) : void 0,
460
- onLoaded: t ? () => s?.(t) : void 0,
461
- onError: t ? (e) => c?.(`Failed to load ${t}: ${e}`) : void 0
462
- });
463
- return i(() => {
464
- if (!t) {
465
- u(void 0);
466
- return;
467
- }
468
- u(d ? void 0 : t);
469
- }, [d, t]), t ? l ? {
470
- status: "unsupported",
471
- moduleKey: l
472
- } : f.status === "idle" || f.status === "loading" ? {
473
- status: "loading",
474
- moduleKey: t
475
- } : f.status === "error" ? {
476
- status: "error",
477
- moduleKey: t,
478
- error: f.error
479
- } : {
480
- status: "loaded",
481
- moduleKey: t,
482
- Component: f.Component
483
- } : { status: "idle" };
484
- }
485
- function he(e) {
486
- let { moduleKey: t, modules: n } = e, r = t ? n[t] : void 0, i = $({ loader: r });
487
- return r != null && i.status === "loaded";
488
- }
489
- function ge(e) {
490
- typeof requestIdleCallback < "u" ? requestIdleCallback(() => {
491
- e();
492
- }) : setTimeout(e, 0);
493
- }
494
- function _e(e, t, n, r) {
495
- let o = a(/* @__PURE__ */ new Set());
496
- i(() => {
497
- if (r && t < e.length - 1) {
498
- let r = e[t + 1];
499
- if (r && !o.current.has(r)) {
500
- o.current.add(r);
501
- let e = n[r];
502
- e && ge(() => {
503
- e().catch(() => {
504
- o.current.delete(r);
505
- });
506
- });
507
- }
508
- }
509
- }, [
510
- e,
511
- t,
512
- n,
513
- r
514
- ]);
515
- }
516
- //#endregion
517
- export { H as _, ce as a, A as c, V as d, B as f, z as g, L as h, de as i, N as l, F as m, he as n, W as o, U as p, _e as r, se as s, me as t, R as u, E as v, x as y };