@incodetech/web 0.0.0-dev-20260608-c8c427ca → 0.0.0-dev-20260608-fe5ac64f

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 (206) 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/blurdevicelottie-CBXtBFiJ.js +15951 -0
  11. package/dist/bottomSheet-BuzqNQtG.js +39 -0
  12. package/dist/browser-ponyfill-CLLvZCVg.js +441 -0
  13. package/dist/button-B-qlr4iI.js +35 -0
  14. package/dist/checkbox-CTPETqo5.js +96 -0
  15. package/dist/consent/consent.es.js +75 -64
  16. package/dist/countrySelector-CzyuaDIs.js +60 -0
  17. package/dist/cpf-ocr/cpf-ocr.es.js +2 -2
  18. package/dist/cpfOcr-7DkO3a4-.js +92 -0
  19. package/dist/cpfOcr-BrpGqevl.js +2 -0
  20. package/dist/cross-document-data-match/cross-document-data-match.es.js +20 -17
  21. package/dist/curp-validation/curp-validation.es.js +246 -211
  22. package/dist/customFields-CJxcEDgu.js +140 -0
  23. package/dist/customWatchlist-BvfsU7r-.js +36 -0
  24. package/dist/dateInputComposed-BsPQHG5o.js +1 -0
  25. package/dist/dateInputComposed-DY97tQVK.js +69 -0
  26. package/dist/defineProperty-mefzVtTv.js +39 -0
  27. package/dist/document-capture/document-capture.es.js +2 -2
  28. package/dist/documentCapture-CQSmWEdd.js +876 -0
  29. package/dist/documentCapture-r1zYPBgS.js +2 -0
  30. package/dist/dropdownComposed-BF4L-7mJ.js +380 -0
  31. package/dist/dropdownComposed-mvHuRFHn.js +1 -0
  32. package/dist/dynamicForms-DranXtuE.js +352 -0
  33. package/dist/ekyb/ekyb.es.js +2 -2
  34. package/dist/ekybModule-DOOUw8h0.js +2 -0
  35. package/dist/ekybModule-DSOvdViS.js +279 -0
  36. package/dist/ekyc/ekyc.es.js +2 -2
  37. package/dist/ekycModule-BYHmHRia.js +2 -0
  38. package/dist/ekycModule-DtzcD2wV.js +257 -0
  39. package/dist/electronic-signature/electronic-signature.es.js +2 -2
  40. package/dist/electronic-signature-B0SDITm5.js +426 -0
  41. package/dist/email/email.es.js +198 -78
  42. package/dist/emailInput-D8qiAdjn.js +39 -0
  43. package/dist/errorIcon-B0rmz3rw.js +26 -0
  44. package/dist/expiredId-Du3HsBaI.js +85 -0
  45. package/dist/extensibility-FK5oOsIJ.js +3070 -0
  46. package/dist/extensibility.es.js +26 -26
  47. package/dist/face-match/face-match.es.js +2 -2
  48. package/dist/faceMatch-C0UL_xA7.js +2 -0
  49. package/dist/faceMatch-DJMba1pt.js +343 -0
  50. package/dist/field-comparison/field-comparison.es.js +2 -2
  51. package/dist/fieldComparison-CcJA6KR5.js +88 -0
  52. package/dist/fieldComparison-CvnNOIWA.js +2 -0
  53. package/dist/{flip-animation-CuQ57qTn.js → flip-animation-BGRvygw9.js} +4221 -4221
  54. package/dist/flow/flow.es.js +597 -493
  55. package/dist/{front-horizontal-hint-CKm7PnmS.js → front-horizontal-hint-CLSU0iVo.js} +70 -70
  56. package/dist/{front-vertical-hint-CLHC2qoH.js → front-vertical-hint-BWq-yWQ8.js} +81 -81
  57. package/dist/frontdevicelottie-CLqitJhG.js +17314 -0
  58. package/dist/geolocation/geolocation.es.js +485 -395
  59. package/dist/glaredevicelottie-BS04U6Fc.js +14478 -0
  60. package/dist/governmentValidation/governmentValidation.es.js +67 -59
  61. package/dist/homeScreen-BsEYyiDB.js +264 -0
  62. package/dist/hooks-BtgmGvba.js +149 -0
  63. package/dist/i18n-gTHArCl9.js +2971 -0
  64. package/dist/icons-DKY3xDkf.js +360 -0
  65. package/dist/id/id.es.js +565 -413
  66. package/dist/id-laser-h-DX8UbVNH.js +467 -0
  67. package/dist/id-laser-v-DhnHdjlB.js +490 -0
  68. package/dist/id-tutorial-lj4iKtYT.js +13165 -0
  69. package/dist/id-verification/id-verification.es.js +21 -18
  70. package/dist/idOcr-CfqkKAZH.js +123 -0
  71. package/dist/identity-reuse/identity-reuse.es.js +168 -130
  72. package/dist/incode-logo-57XFniXU.js +4 -0
  73. package/dist/incodeComponent-CDJxFZvS.js +63 -0
  74. package/dist/incodeModule-DkA_yd0X.js +13 -0
  75. package/dist/index.es.js +16 -14
  76. package/dist/inputComposed-5V2nLTqH.js +99 -0
  77. package/dist/inputComposed-BPOYwUBl.js +1 -0
  78. package/dist/loadingIcon-DN62ugKs.js +148 -0
  79. package/dist/lottie_light-Dp9Bz3mf.js +9031 -0
  80. package/dist/mandatoryConsent-DxL7lmfQ.js +107 -0
  81. package/dist/modal-B5QeulDu.js +153 -0
  82. package/dist/modal.hooks-C7K9k_pY.js +202 -0
  83. package/dist/numberedStep-DVAyTPv1.js +13 -0
  84. package/dist/optionAccessibleLabel-Czc2YC8z.js +202 -0
  85. package/dist/otpInput-2IQ-JCK8.js +195 -0
  86. package/dist/page-6bCuq5Q6.js +70 -0
  87. package/dist/{passport-horizontal-hint-C_le0HVU.js → passport-horizontal-hint-DfVsf4Cc.js} +55 -55
  88. package/dist/{passport-tutorial-BYN4T_TE.js → passport-tutorial-zT1ZoA-D.js} +7096 -7084
  89. package/dist/{passport-vertical-hint-H-pyICSv.js → passport-vertical-hint-DVxbTyQp.js} +49 -49
  90. package/dist/pdf-BZA70WbM.js +22398 -0
  91. package/dist/pdfViewer-Dr63sJ51.js +114 -0
  92. package/dist/phone/phone.es.js +214 -87
  93. package/dist/phoneInputComposed-D_IabWKJ.js +12142 -0
  94. package/dist/processing-B_u8wUB7.js +8 -0
  95. package/dist/qe-signature/qe-signature.es.js +15 -13
  96. package/dist/radioGroupComposed-DwYW-Ld-.js +215 -0
  97. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +2099 -859
  98. package/dist/registerIncodeElement-BJJGzVdq.js +11 -0
  99. package/dist/requiredLabelHint-DEadtiwx.js +17 -0
  100. package/dist/richText-C7GUm0WL.js +3153 -0
  101. package/dist/rolldown-runtime--E5BIlTp.js +33 -0
  102. package/dist/selfie/selfie.es.js +54 -42
  103. package/dist/selfieTutorial-CtruLyO2.js +2689 -0
  104. package/dist/signature/signature.es.js +765 -406
  105. package/dist/snackbar-Dz9crm39.js +16 -0
  106. package/dist/spinner-BfBIZkDQ.js +42 -0
  107. package/dist/spinner-DEDtE7Pz.js +1 -0
  108. package/dist/statusPage-B1Ef7J5K.js +28 -0
  109. package/dist/successIcon-rmzr-pxu.js +30 -0
  110. package/dist/tabs--UMd6eEB.js +103 -0
  111. package/dist/transitionSpinner-CWhGcr7c.js +26 -0
  112. package/dist/{tutorial-QzQ536BL.js → tutorial-y-nq6ZhF.js} +832 -578
  113. package/dist/types/index.d.ts +13 -4
  114. package/dist/typography-BK4AmfKX.js +45 -0
  115. package/dist/uiConfig-sgEkFuuA.js +25 -0
  116. package/dist/useModuleLoader-8LslB-YG.js +670 -0
  117. package/dist/vendor-preact-BH7vOa2r.js +957 -0
  118. package/dist/verificationResult-CbVRf6Kh.js +91 -0
  119. package/dist/verifiedByIncode-8QBn-kgZ.js +103 -0
  120. package/dist/watchlist/watchlist.es.js +31 -26
  121. package/dist/watchlistForBusiness-Dfn1UMow.js +80 -0
  122. package/dist/workflow/workflow.es.js +251 -209
  123. package/package.json +4 -2
  124. package/dist/aligndevicelottie-D8KsO77t.js +0 -12757
  125. package/dist/autoFocusTitle-BpYdaSUM.js +0 -16
  126. package/dist/back-tutorial-DhSE2FJo.js +0 -14585
  127. package/dist/backdevicelottie-CJWGVMdw.js +0 -16678
  128. package/dist/blurdevicelottie-Dxt2deEB.js +0 -15939
  129. package/dist/bottomSheet-QrpyatOD.js +0 -31
  130. package/dist/browser-ponyfill-Crda_c5R.js +0 -299
  131. package/dist/button-DcCUEn2n.js +0 -24
  132. package/dist/checkbox-DCCzBAuF.js +0 -86
  133. package/dist/countrySelector-CJ8egQ4C.js +0 -58
  134. package/dist/cpfOcr-Db06i-Lm.js +0 -2
  135. package/dist/cpfOcr-FixhUeMQ.js +0 -79
  136. package/dist/customFields-C1G9xHNX.js +0 -125
  137. package/dist/customWatchlist-IKEblz7u.js +0 -31
  138. package/dist/dateInputComposed-Cg8BvYSK.js +0 -1
  139. package/dist/dateInputComposed-Ddd7HLyM.js +0 -58
  140. package/dist/defineProperty-xczUyn-m.js +0 -39
  141. package/dist/documentCapture-D9I7FjGe.js +0 -2
  142. package/dist/documentCapture-b61wlala.js +0 -765
  143. package/dist/dropdownComposed-B4U0AIak.js +0 -1
  144. package/dist/dropdownComposed-CS2pyn-g.js +0 -293
  145. package/dist/dynamicForms-tYQog0kw.js +0 -298
  146. package/dist/ekybModule-C33C4JES.js +0 -237
  147. package/dist/ekybModule-LON6G2Bz.js +0 -2
  148. package/dist/ekycModule-BJOgtTAh.js +0 -225
  149. package/dist/ekycModule-BSf_DIG7.js +0 -2
  150. package/dist/electronic-signature-OdgTyso4.js +0 -406
  151. package/dist/emailInput-CU7mLB21.js +0 -37
  152. package/dist/errorIcon-DpHzAoAo.js +0 -24
  153. package/dist/expiredId-nfVAZgTL.js +0 -70
  154. package/dist/extensibility-BbNy3mVG.js +0 -2602
  155. package/dist/faceMatch-BIila4kf.js +0 -2
  156. package/dist/faceMatch-DJ7Mqujx.js +0 -206
  157. package/dist/fieldComparison-D2RSFYl-.js +0 -84
  158. package/dist/fieldComparison-DbUyouFd.js +0 -2
  159. package/dist/frontdevicelottie-65Vyfpff.js +0 -17302
  160. package/dist/glaredevicelottie-BEyaqtc6.js +0 -14466
  161. package/dist/homeScreen-CyPddxWl.js +0 -227
  162. package/dist/hooks-MxHtZWTS.js +0 -112
  163. package/dist/i18n-Kzzvkz94.js +0 -2019
  164. package/dist/icons-9I5g9-_1.js +0 -292
  165. package/dist/id-laser-h-iCPbFixz.js +0 -467
  166. package/dist/id-laser-v-CNzwliP2.js +0 -483
  167. package/dist/id-tutorial-CF4nO4oX.js +0 -13153
  168. package/dist/idOcr-DlMLMDqa.js +0 -97
  169. package/dist/incode-logo-DX016usY.js +0 -4
  170. package/dist/incodeComponent-BoFhgK7G.js +0 -50
  171. package/dist/incodeModule-BiCoAJ5k.js +0 -13
  172. package/dist/inputComposed-DAEey9xm.js +0 -94
  173. package/dist/inputComposed-eS4B0Mkh.js +0 -1
  174. package/dist/loadingIcon-BN5YRQUb.js +0 -104
  175. package/dist/lottie_light-DLqSnziX.js +0 -4419
  176. package/dist/mandatoryConsent-DNz2jZ43.js +0 -98
  177. package/dist/modal-ZqAhwiRF.js +0 -135
  178. package/dist/modal.hooks-LdusROLW.js +0 -126
  179. package/dist/numberedStep-CdLWASwL.js +0 -11
  180. package/dist/optionAccessibleLabel-DcygPaME.js +0 -140
  181. package/dist/otpInput-C4pk4BJU.js +0 -157
  182. package/dist/page-DA3R7q0J.js +0 -69
  183. package/dist/pdf-51QeiFSx.js +0 -14967
  184. package/dist/pdfViewer-rKzTHket.js +0 -64
  185. package/dist/phoneInputComposed-CjAxk2Gj.js +0 -11230
  186. package/dist/processing-DPktVde2.js +0 -6
  187. package/dist/radioGroupComposed-DRRxVk9Z.js +0 -178
  188. package/dist/registerIncodeElement-BHWOwdSS.js +0 -7
  189. package/dist/requiredLabelHint-B6FN3v88.js +0 -13
  190. package/dist/richText-6pIbydcz.js +0 -1973
  191. package/dist/rolldown-runtime-CYMK-g2i.js +0 -20
  192. package/dist/selfieTutorial-Yo9AlUoT.js +0 -2677
  193. package/dist/snackbar-CQiiWO4p.js +0 -14
  194. package/dist/spinner-B4dcie2T.js +0 -1
  195. package/dist/spinner-CKnjVHxw.js +0 -39
  196. package/dist/statusPage-B8b3Jg6N.js +0 -28
  197. package/dist/successIcon-SlKgTSty.js +0 -28
  198. package/dist/tabs-D7lGst3Q.js +0 -78
  199. package/dist/transitionSpinner-Di3bOyOu.js +0 -17
  200. package/dist/typography-CxjaknHN.js +0 -28
  201. package/dist/uiConfig-CwpQ-IM6.js +0 -20
  202. package/dist/useModuleLoader-Bqs7fglI.js +0 -517
  203. package/dist/vendor-preact-D6SntenC.js +0 -958
  204. package/dist/verificationResult-DhT3hH1b.js +0 -90
  205. package/dist/verifiedByIncode-DpbxzO0y.js +0 -101
  206. package/dist/watchlistForBusiness-CRXVbH4l.js +0 -75
package/dist/index.es.js CHANGED
@@ -1,17 +1,19 @@
1
- import { a as e, i as t } from "./i18n-Kzzvkz94.js";
2
- import { t as n } from "./uiConfig-CwpQ-IM6.js";
3
- import { DEFAULT_WASM_VERSION as r } from "@incodetech/core/wasm";
4
- import { setup as i } from "@incodetech/core";
1
+ import { a as createI18n, i as setI18nInstance } from "./i18n-gTHArCl9.js";
2
+ import { t as setUiConfig } from "./uiConfig-sgEkFuuA.js";
3
+ import { DEFAULT_WASM_VERSION } from "@incodetech/core/wasm";
4
+ import { setup as setup$1 } from "@incodetech/core";
5
5
  //#region src/setup.ts
6
- async function a({ apiURL: r, token: a, customHeaders: o, timeout: s, wasm: c, ipLookup: l, i18n: u, uiConfig: d }) {
7
- d && n(d), await i({
8
- apiURL: r,
9
- token: a,
10
- customHeaders: o,
11
- timeout: s,
12
- wasm: c,
13
- ipLookup: l
14
- }), t(e(u));
6
+ async function setup({ apiURL, token, customHeaders, timeout, wasm, ipLookup, i18n, uiConfig }) {
7
+ if (uiConfig) setUiConfig(uiConfig);
8
+ await setup$1({
9
+ apiURL,
10
+ token,
11
+ customHeaders,
12
+ timeout,
13
+ wasm,
14
+ ipLookup
15
+ });
16
+ setI18nInstance(createI18n(i18n));
15
17
  }
16
18
  //#endregion
17
- export { r as DEFAULT_WASM_VERSION, e as createI18n, t as setI18nInstance, n as setUiConfig, a as setup };
19
+ export { DEFAULT_WASM_VERSION, createI18n, setI18nInstance, setUiConfig, setup };
@@ -0,0 +1,99 @@
1
+ import { a as D, v as u } from "./vendor-preact-BH7vOa2r.js";
2
+ import { n as cn } from "./loadingIcon-DN62ugKs.js";
3
+ import { t as ErrorIcon } from "./errorIcon-B0rmz3rw.js";
4
+ import { o as CloseIcon } from "./icons-DKY3xDkf.js";
5
+ import { t as SuccessIcon } from "./successIcon-rmzr-pxu.js";
6
+ //#region src/shared/input/input.tsx
7
+ var Input = D((props, ref) => {
8
+ const { class: className, type = "text", ...restProps } = props;
9
+ return /* @__PURE__ */ u("input", {
10
+ ...restProps,
11
+ ref,
12
+ type,
13
+ class: cn("IncodeInput", className)
14
+ });
15
+ });
16
+ //#endregion
17
+ //#region src/shared/inputComposed/inputComposed.tsx
18
+ var InputComposed = D(({ id, label, labelHint, "aria-label": ariaLabel, "aria-describedby": externalDescribedBy, type, error, showErrorIcon, helper, showHelperIcon, closeButton, rightIcon, required, suppressMessages = false, class: className, value, ...restProps }, ref) => {
19
+ const helperId = `${id}-helper`;
20
+ const errorId = `${id}-error`;
21
+ const describedByIds = [
22
+ !suppressMessages && helper ? helperId : null,
23
+ !suppressMessages && error ? errorId : null,
24
+ externalDescribedBy
25
+ ].filter(Boolean).join(" ") || void 0;
26
+ return /* @__PURE__ */ u("div", {
27
+ class: cn("IncodeInputComposed", className),
28
+ children: [
29
+ label && /* @__PURE__ */ u("label", {
30
+ class: "IncodeInputComposedLabel",
31
+ htmlFor: id,
32
+ "data-testid": `${id}-label`,
33
+ children: [label, labelHint && /* @__PURE__ */ u("span", {
34
+ class: "IncodeInputComposedLabelHint",
35
+ "data-testid": `${id}-label-hint`,
36
+ children: labelHint
37
+ })]
38
+ }),
39
+ /* @__PURE__ */ u("div", {
40
+ class: "IncodeInputComposedWrapper",
41
+ children: [
42
+ /* @__PURE__ */ u(Input, {
43
+ id,
44
+ type,
45
+ ...restProps,
46
+ ref,
47
+ required,
48
+ "data-has-value": !!(value && String(value).length > 0),
49
+ ...!label && ariaLabel ? { "aria-label": ariaLabel } : {},
50
+ "aria-describedby": describedByIds,
51
+ "aria-required": required ? "true" : void 0,
52
+ "aria-invalid": error ? "true" : void 0,
53
+ value
54
+ }),
55
+ rightIcon,
56
+ closeButton?.show && /* @__PURE__ */ u("button", {
57
+ type: "button",
58
+ "aria-label": "Clear",
59
+ class: "IncodeInputComposedClearButton",
60
+ onClick: closeButton.onClose,
61
+ "data-testid": `${id}-clear`,
62
+ children: /* @__PURE__ */ u(CloseIcon, {
63
+ width: 24,
64
+ height: 24,
65
+ fillColor: "var(--icon-neutral-500)"
66
+ })
67
+ })
68
+ ]
69
+ }),
70
+ !suppressMessages && error && /* @__PURE__ */ u("div", {
71
+ class: "IncodeInputComposedErrorWrapper",
72
+ role: "alert",
73
+ "data-testid": `${id}-error-wrapper`,
74
+ children: [showErrorIcon && /* @__PURE__ */ u("div", {
75
+ class: "IncodeInputComposedIconWrapper",
76
+ children: /* @__PURE__ */ u(ErrorIcon, { size: 17 })
77
+ }), /* @__PURE__ */ u("p", {
78
+ id: errorId,
79
+ class: "IncodeInputComposedError",
80
+ children: error
81
+ })]
82
+ }),
83
+ !suppressMessages && helper && !error && /* @__PURE__ */ u("div", {
84
+ class: "IncodeInputComposedHelperWrapper",
85
+ "data-testid": `${id}-helper-wrapper`,
86
+ children: [showHelperIcon && /* @__PURE__ */ u("div", {
87
+ class: "IncodeInputComposedIconWrapper",
88
+ children: /* @__PURE__ */ u(SuccessIcon, { size: 17 })
89
+ }), /* @__PURE__ */ u("p", {
90
+ id: helperId,
91
+ class: "IncodeInputComposedHelper",
92
+ children: helper
93
+ })]
94
+ })
95
+ ]
96
+ });
97
+ });
98
+ //#endregion
99
+ export { Input as n, InputComposed as t };
@@ -0,0 +1 @@
1
+ import "./inputComposed-5V2nLTqH.js";
@@ -0,0 +1,148 @@
1
+ import { f as _, l as A, v as u } from "./vendor-preact-BH7vOa2r.js";
2
+ //#region src/shared/spacer/spacer.tsx
3
+ var scaleTokens = new Set([
4
+ 0,
5
+ 2,
6
+ 4,
7
+ 8,
8
+ 12,
9
+ 16,
10
+ 20,
11
+ 24,
12
+ 32,
13
+ 40,
14
+ 48,
15
+ 64,
16
+ 80,
17
+ 96,
18
+ 104,
19
+ 120,
20
+ 200
21
+ ]);
22
+ var scaleToClassName = (size, direction) => {
23
+ if (direction === "horizontal") return {
24
+ 0: "IncodeSpacerHorizontal0",
25
+ 2: "IncodeSpacerHorizontal2",
26
+ 4: "IncodeSpacerHorizontal4",
27
+ 8: "IncodeSpacerHorizontal8",
28
+ 12: "IncodeSpacerHorizontal12",
29
+ 16: "IncodeSpacerHorizontal16",
30
+ 20: "IncodeSpacerHorizontal20",
31
+ 24: "IncodeSpacerHorizontal24",
32
+ 32: "IncodeSpacerHorizontal32",
33
+ 40: "IncodeSpacerHorizontal40",
34
+ 48: "IncodeSpacerHorizontal48",
35
+ 64: "IncodeSpacerHorizontal64",
36
+ 80: "IncodeSpacerHorizontal80",
37
+ 96: "IncodeSpacerHorizontal96",
38
+ 104: "IncodeSpacerHorizontal104",
39
+ 120: "IncodeSpacerHorizontal120",
40
+ 200: "IncodeSpacerHorizontal200"
41
+ }[size];
42
+ return {
43
+ 0: "IncodeSpacerVertical0",
44
+ 2: "IncodeSpacerVertical2",
45
+ 4: "IncodeSpacerVertical4",
46
+ 8: "IncodeSpacerVertical8",
47
+ 12: "IncodeSpacerVertical12",
48
+ 16: "IncodeSpacerVertical16",
49
+ 20: "IncodeSpacerVertical20",
50
+ 24: "IncodeSpacerVertical24",
51
+ 32: "IncodeSpacerVertical32",
52
+ 40: "IncodeSpacerVertical40",
53
+ 48: "IncodeSpacerVertical48",
54
+ 64: "IncodeSpacerVertical64",
55
+ 80: "IncodeSpacerVertical80",
56
+ 96: "IncodeSpacerVertical96",
57
+ 104: "IncodeSpacerVertical104",
58
+ 120: "IncodeSpacerVertical120",
59
+ 200: "IncodeSpacerVertical200"
60
+ }[size];
61
+ };
62
+ var Spacer = ({ size, className, direction = "vertical" }) => {
63
+ if (size === void 0) return /* @__PURE__ */ u("div", { class: `IncodeSpacerFlex ${className || ""}` });
64
+ if (!(direction === "horizontal" ? "w" : direction === "vertical" ? "h" : void 0)) return /* @__PURE__ */ u("div", { class: `${className || ""}` });
65
+ if (typeof size === "number" && scaleTokens.has(size)) return /* @__PURE__ */ u("div", { class: `${scaleToClassName(size, direction)} ${className || ""}` });
66
+ return /* @__PURE__ */ u("div", { class: `${className || ""}` });
67
+ };
68
+ //#endregion
69
+ //#region src/styles/cn.tsx
70
+ var cn = (...classes) => {
71
+ const result = [];
72
+ for (const cls of classes) {
73
+ if (!cls) continue;
74
+ if (typeof cls === "string") result.push(cls);
75
+ else if (typeof cls === "object") {
76
+ for (const [key, value] of Object.entries(cls)) if (value) result.push(key);
77
+ }
78
+ }
79
+ return result.join(" ");
80
+ };
81
+ //#endregion
82
+ //#region src/shared/loader/loadingIcon.tsx
83
+ /**
84
+ * Duration of the CSS spin animation on `.IncodeLoadingIcon`.
85
+ * Must stay in sync with the `animation-duration` declared in the stylesheet.
86
+ */
87
+ var SPIN_DURATION_MS = 1e3;
88
+ var SpinnerPrimary = ({ size, className }) => {
89
+ return /* @__PURE__ */ u("svg", {
90
+ width: size,
91
+ height: size,
92
+ viewBox: "0 0 31 31",
93
+ fill: "none",
94
+ xmlns: "http://www.w3.org/2000/svg",
95
+ class: cn("IncodeLoadingIconPrimaryIcon", className),
96
+ "aria-hidden": "true",
97
+ children: /* @__PURE__ */ u("path", { d: "M28.1614 15.2837C29.453 15.2837 30.5186 14.2304 30.3181 12.9545C30.1344 11.7862 29.8129 10.6411 29.3582 9.54344C28.6044 7.72356 27.4995 6.06997 26.1066 4.67709C24.7137 3.28421 23.0601 2.17932 21.2403 1.4255C20.1426 0.970841 18.9974 0.649265 17.8292 0.46563C16.5533 0.265073 15.5 1.33073 15.5 2.62232C15.5 3.91391 16.5601 4.93461 17.8187 5.22473C18.3748 5.35291 18.9206 5.52729 19.4503 5.74672C20.7028 6.26548 21.8407 7.02585 22.7993 7.98441C23.7578 8.94296 24.5182 10.0809 25.037 11.3333C25.2564 11.8631 25.4308 12.4089 25.559 12.965C25.8491 14.2236 26.8698 15.2837 28.1614 15.2837Z" })
98
+ });
99
+ };
100
+ var SpinnerSecondary = ({ size, className }) => {
101
+ return /* @__PURE__ */ u("svg", {
102
+ width: size,
103
+ height: size,
104
+ viewBox: "0 0 31 31",
105
+ fill: "none",
106
+ xmlns: "http://www.w3.org/2000/svg",
107
+ class: cn("IncodeLoadingIconSecondaryIcon", className),
108
+ "aria-hidden": "true",
109
+ children: [/* @__PURE__ */ u("title", { children: "Spinner Outer part" }), /* @__PURE__ */ u("path", { d: "M30.5 15.2837C30.5 23.568 23.7843 30.2837 15.5 30.2837C7.21573 30.2837 0.5 23.568 0.5 15.2837C0.5 6.99942 7.21573 0.283691 15.5 0.283691C23.7843 0.283691 30.5 6.99942 30.5 15.2837ZM5.17725 15.2837C5.17725 20.9848 9.7989 25.6064 15.5 25.6064C21.2011 25.6064 25.8227 20.9848 25.8227 15.2837C25.8227 9.5826 21.2011 4.96095 15.5 4.96095C9.7989 4.96095 5.17725 9.5826 5.17725 15.2837Z" })]
110
+ });
111
+ };
112
+ var LoadingIcon = ({ size = 30, secondaryClass, primaryClass }) => {
113
+ const ref = A(null);
114
+ /**
115
+ * Cross-module loaders (e.g. ID processing → selfie initialising) unmount
116
+ * and remount this component as the user moves between flow steps. By
117
+ * default each remount restarts the CSS spin animation from frame 0, which
118
+ * reads as a visible "stutter" or reset of the spinner during otherwise
119
+ * seamless transitions.
120
+ *
121
+ * To keep the rotation continuous across remounts we anchor the animation
122
+ * to a wall-clock offset: `performance.now() % SPIN_DURATION_MS` tells us
123
+ * how far into the current spin cycle we are, and applying it as a
124
+ * negative `animation-delay` makes the new instance pick up exactly where
125
+ * the previous one left off.
126
+ */
127
+ _(() => {
128
+ if (!ref.current) return;
129
+ const offsetMs = performance.now() % SPIN_DURATION_MS;
130
+ ref.current.style.animationDelay = `-${offsetMs}ms`;
131
+ }, []);
132
+ return /* @__PURE__ */ u("div", {
133
+ ref,
134
+ class: "IncodeLoadingIcon",
135
+ children: [/* @__PURE__ */ u(SpinnerSecondary, {
136
+ size,
137
+ className: secondaryClass
138
+ }), /* @__PURE__ */ u("div", {
139
+ class: "IncodeLoadingIconPrimary",
140
+ children: /* @__PURE__ */ u(SpinnerPrimary, {
141
+ size,
142
+ className: primaryClass
143
+ })
144
+ })]
145
+ });
146
+ };
147
+ //#endregion
148
+ export { cn as n, Spacer as r, LoadingIcon as t };