@incodetech/web 2.0.1-rc.0 → 2.1.0-rc.0

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 (253) hide show
  1. package/dist/ae-signature/ae-signature.es.js +15 -13
  2. package/dist/ae-signature/styles.css +3 -17
  3. package/dist/ae-signature/styles2.css +15 -5
  4. package/dist/aligndevicelottie-DY_bX_p8.js +12769 -0
  5. package/dist/antifraud/antifraud.es.js +23 -16
  6. package/dist/authentication/authentication.es.js +42 -27
  7. package/dist/autoFocusTitle-BzkUiELM.js +29 -0
  8. package/dist/{back-horizontal-hint-B8Brxh3U.js → back-horizontal-hint-D_8LptLm.js} +26 -26
  9. package/dist/back-tutorial-vb1MxlrT.js +14597 -0
  10. package/dist/{back-vertical-hint-BBo36dxn.js → back-vertical-hint-C1evxxq2.js} +27 -27
  11. package/dist/backdevicelottie-HypPqBz7.js +16690 -0
  12. package/dist/base.css +1258 -104
  13. package/dist/blurdevicelottie-CBXtBFiJ.js +15951 -0
  14. package/dist/bottomSheet-F1GJfQx_.js +39 -0
  15. package/dist/browser-ponyfill-CLLvZCVg.js +441 -0
  16. package/dist/button-CM_hgyIP.js +35 -0
  17. package/dist/checkbox-BoeLHKgp.js +96 -0
  18. package/dist/consent/consent.es.js +89 -73
  19. package/dist/consent/styles.css +35 -22
  20. package/dist/countrySelector-mSWyHSy4.js +60 -0
  21. package/dist/cpf-ocr/cpf-ocr.es.js +2 -0
  22. package/dist/cpfOcr-MtpRztkG.js +92 -0
  23. package/dist/cpfOcr-jJkYCfsX.js +2 -0
  24. package/dist/cross-document-data-match/cross-document-data-match.es.js +20 -16
  25. package/dist/curp-validation/curp-validation.es.js +247 -203
  26. package/dist/customFields-DXXt9HGM.js +140 -0
  27. package/dist/customWatchlist-DsW04UF6.js +36 -0
  28. package/dist/dateInputComposed-C_mh4XBg.js +69 -0
  29. package/dist/dateInputComposed-Cy6a7ymh.js +1 -0
  30. package/dist/defineProperty-mefzVtTv.js +39 -0
  31. package/dist/document-capture/document-capture.es.js +2 -0
  32. package/dist/document-capture/styles.css +2 -5
  33. package/dist/documentCapture-8ypBJehw.js +2 -0
  34. package/dist/documentCapture-BDV_921m.js +880 -0
  35. package/dist/dropdownComposed-CEWBSdGl.js +1 -0
  36. package/dist/dropdownComposed-_fgAlo_C.js +380 -0
  37. package/dist/dynamic-forms/styles.css +25 -13
  38. package/dist/dynamicForms-DyfnsS7E.js +352 -0
  39. package/dist/ekyb/ekyb.es.js +2 -2
  40. package/dist/ekyb/styles.css +2 -0
  41. package/dist/ekybModule-CIPGmCvD.js +279 -0
  42. package/dist/ekybModule-DFoYpheB.js +2 -0
  43. package/dist/ekyc/ekyc.es.js +2 -2
  44. package/dist/ekyc/styles.css +9 -7
  45. package/dist/ekycModule-BGzwgjl1.js +2 -0
  46. package/dist/ekycModule-BuTaC5ct.js +257 -0
  47. package/dist/electronic-signature/electronic-signature.es.js +2 -2
  48. package/dist/electronic-signature-B-Q7M0wK.js +430 -0
  49. package/dist/email/email.es.js +199 -66
  50. package/dist/emailInput-KZmhjOdZ.js +39 -0
  51. package/dist/errorIcon-DJRZpd8j.js +26 -0
  52. package/dist/expiredId-Q1t6aVpk.js +85 -0
  53. package/dist/extensibility-Cs3KQQdC.js +3070 -0
  54. package/dist/extensibility.es.js +26 -25
  55. package/dist/face-match/face-match.es.js +2 -2
  56. package/dist/face-match/styles.css +0 -4
  57. package/dist/faceMatch--RDHJe4t.js +343 -0
  58. package/dist/faceMatch-yEKPYaym.js +2 -0
  59. package/dist/field-comparison/field-comparison.es.js +2 -0
  60. package/dist/field-comparison/styles.css +16 -0
  61. package/dist/fieldComparison-CAF86bTC.js +88 -0
  62. package/dist/fieldComparison-D0an7T_g.js +2 -0
  63. package/dist/fiscal-qr/fiscal-qr.es.js +224 -0
  64. package/dist/fiscal-qr/styles.css +71 -0
  65. package/dist/{flip-animation-CgwRsEmK.js → flip-animation-BGRvygw9.js} +4221 -4221
  66. package/dist/flow/flow.es.js +619 -484
  67. package/dist/flow/styles.css +378 -418
  68. package/dist/{front-horizontal-hint-DGGGi8e1.js → front-horizontal-hint-Uf5bHCsd.js} +70 -70
  69. package/dist/{front-vertical-hint-CNr5mE6Q.js → front-vertical-hint-DdWNA45v.js} +81 -81
  70. package/dist/frontdevicelottie-CLqitJhG.js +17314 -0
  71. package/dist/geolocation/geolocation.es.js +486 -395
  72. package/dist/glaredevicelottie-BS04U6Fc.js +14478 -0
  73. package/dist/governmentValidation/governmentValidation.es.js +166 -93
  74. package/dist/governmentValidation/styles.css +0 -17
  75. package/dist/homeScreen-BZnIEDrV.js +264 -0
  76. package/dist/hooks-Da_yP_Dr.js +149 -0
  77. package/dist/i18n-CoCO2ZuN.js +2971 -0
  78. package/dist/icons-Dbs9ZfYM.js +360 -0
  79. package/dist/id/id.es.js +583 -414
  80. package/dist/id/styles.css +59 -43
  81. package/dist/id-laser-h-DX8UbVNH.js +467 -0
  82. package/dist/id-laser-v-DhnHdjlB.js +490 -0
  83. package/dist/id-tutorial-lj4iKtYT.js +13165 -0
  84. package/dist/id-verification/id-verification.es.js +21 -17
  85. package/dist/idOcr-CjGbb4dB.js +123 -0
  86. package/dist/identity-reuse/identity-reuse.es.js +311 -182
  87. package/dist/identity-reuse/styles.css +134 -80
  88. package/dist/incode-logo-57XFniXU.js +4 -0
  89. package/dist/incodeComponent-wfnHlnXx.js +63 -0
  90. package/dist/incodeModule-BUDoTwT9.js +13 -0
  91. package/dist/index.es.js +16 -13
  92. package/dist/inputComposed-BEn7_nZd.js +1 -0
  93. package/dist/inputComposed-CQ4AsvZg.js +99 -0
  94. package/dist/loadingIcon-B0ysgiNq.js +148 -0
  95. package/dist/lottie_light-Dp9Bz3mf.js +9031 -0
  96. package/dist/mandatoryConsent-r0PQHmv-.js +107 -0
  97. package/dist/modal-nTSaG7nB.js +139 -0
  98. package/dist/modal.hooks-D2xhIuHA.js +195 -0
  99. package/dist/numberedStep-CEtwZqLp.js +13 -0
  100. package/dist/optionAccessibleLabel-CnA-mNAU.js +202 -0
  101. package/dist/otpInput-_JmtVwa0.js +195 -0
  102. package/dist/page-DxGQj7Gk.js +71 -0
  103. package/dist/{passport-horizontal-hint-Bgquwtac.js → passport-horizontal-hint-Bbm2mvSn.js} +55 -55
  104. package/dist/{passport-tutorial-DwRwtPVX.js → passport-tutorial-zT1ZoA-D.js} +7096 -7084
  105. package/dist/{passport-vertical-hint-BT1D5BrW.js → passport-vertical-hint-DJbCtBiM.js} +49 -49
  106. package/dist/pdf-BZA70WbM.js +22398 -0
  107. package/dist/pdfViewer-BK-yVIve.js +114 -0
  108. package/dist/phone/phone.es.js +214 -70
  109. package/dist/phoneInputComposed-DjNdsmPE.js +12142 -0
  110. package/dist/processing-BM-wT-1W.js +8 -0
  111. package/dist/qe-signature/qe-signature.es.js +15 -13
  112. package/dist/radioGroupComposed-BNuaopVr.js +215 -0
  113. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +2774 -0
  114. package/dist/redirect-to-mobile/styles.css +19 -269
  115. package/dist/registerIncodeElement-77NGCDsy.js +11 -0
  116. package/dist/requiredLabelHint-DEadtiwx.js +17 -0
  117. package/dist/richText-Cf9aMOCk.js +3153 -0
  118. package/dist/rolldown-runtime--E5BIlTp.js +33 -0
  119. package/dist/selfie/selfie.es.js +54 -37
  120. package/dist/selfie/styles.css +0 -4
  121. package/dist/selfieTutorial-CtruLyO2.js +2689 -0
  122. package/dist/signature/signature.es.js +778 -405
  123. package/dist/snackbar-CxepGC3e.js +16 -0
  124. package/dist/spinner-B6RxGFrI.js +1 -0
  125. package/dist/spinner-D8a_2LvW.js +42 -0
  126. package/dist/statusPage-DMYPUwRZ.js +28 -0
  127. package/dist/successIcon-BAyDPT7I.js +30 -0
  128. package/dist/tabs-C8npVBbk.js +103 -0
  129. package/dist/themes/dark.css +5 -0
  130. package/dist/themes/light.css +4 -0
  131. package/dist/transitionSpinner-DRRz-NV8.js +26 -0
  132. package/dist/{tutorial-9vHAHvMK.js → tutorial-D1qaY2Tm.js} +1105 -856
  133. package/dist/types/ae-signature.d.ts +4 -1
  134. package/dist/types/antifraud.d.ts +9 -3
  135. package/dist/types/authentication.d.ts +4 -1
  136. package/dist/types/consent.d.ts +4 -1
  137. package/dist/types/cpf-ocr.d.ts +12 -0
  138. package/dist/types/cross-document-data-match.d.ts +4 -1
  139. package/dist/types/curp-validation.d.ts +9 -3
  140. package/dist/types/document-capture.d.ts +37 -0
  141. package/dist/types/ekyb.d.ts +4 -1
  142. package/dist/types/ekyc.d.ts +4 -1
  143. package/dist/types/electronic-signature.d.ts +4 -1
  144. package/dist/types/email.d.ts +4 -1
  145. package/dist/types/extensibility.d.ts +40 -15
  146. package/dist/types/face-match.d.ts +4 -1
  147. package/dist/types/field-comparison.d.ts +38 -0
  148. package/dist/types/fiscal-qr.d.ts +43 -0
  149. package/dist/types/flow.d.ts +5 -2
  150. package/dist/types/geolocation.d.ts +4 -1
  151. package/dist/types/governmentValidation.d.ts +4 -1
  152. package/dist/types/id-verification.d.ts +4 -1
  153. package/dist/types/id.d.ts +4 -1
  154. package/dist/types/identity-reuse.d.ts +4 -1
  155. package/dist/types/index.d.ts +20 -2
  156. package/dist/types/phone.d.ts +4 -1
  157. package/dist/types/qe-signature.d.ts +4 -1
  158. package/dist/types/redirect-to-mobile.d.ts +17 -0
  159. package/dist/types/selfie.d.ts +4 -1
  160. package/dist/types/signature.d.ts +4 -1
  161. package/dist/types/watchlist.d.ts +4 -1
  162. package/dist/types/workflow.d.ts +55 -11
  163. package/dist/typography-YLgHHuao.js +45 -0
  164. package/dist/uiConfig-D2_wawvr.js +25 -0
  165. package/dist/useModuleLoader-CeJ2jL25.js +672 -0
  166. package/dist/vendor-preact-DThS2ZQ_.js +955 -0
  167. package/dist/verificationResult-Do5SpZ6X.js +64 -0
  168. package/dist/verifiedByIncode-DjXOdCml.js +103 -0
  169. package/dist/watchlist/watchlist.es.js +31 -28
  170. package/dist/watchlistForBusiness-BFFXC9d-.js +80 -0
  171. package/dist/workflow/styles.css +449 -427
  172. package/dist/workflow/workflow.es.js +268 -182
  173. package/package.json +32 -10
  174. package/dist/aligndevicelottie-DoV8xKjh.js +0 -12757
  175. package/dist/autoFocusTitle-QexamZ4i.js +0 -16
  176. package/dist/back-tutorial-1NOQobGO.js +0 -14585
  177. package/dist/backdevicelottie-C_ceuqY7.js +0 -16678
  178. package/dist/blurdevicelottie-UO14Y0WC.js +0 -15939
  179. package/dist/bottomSheet-DE_8TFEC.js +0 -31
  180. package/dist/browser-ponyfill-jOkuz57z.js +0 -299
  181. package/dist/button-DcCUEn2n.js +0 -24
  182. package/dist/checkbox-Cl57ltq_.js +0 -85
  183. package/dist/countrySelector-CE-JgIsv.js +0 -58
  184. package/dist/cpfOcr-D_tbwbvh.js +0 -78
  185. package/dist/customFields-CW38fQUv.js +0 -127
  186. package/dist/customWatchlist-D9_yjEQd.js +0 -33
  187. package/dist/dateInputComposed-BpAGsjN6.js +0 -55
  188. package/dist/dateInputComposed-DU3o6PAV.js +0 -1
  189. package/dist/defineProperty-Dh8nSJpJ.js +0 -39
  190. package/dist/documentCapture-xX-JT7ZY.js +0 -763
  191. package/dist/dropdownComposed-DFRBG22E.js +0 -284
  192. package/dist/dropdownComposed-DwTzc2YU.js +0 -1
  193. package/dist/dynamicForms-CJP1Ia6Q.js +0 -262
  194. package/dist/ekybModule-BSs7mndb.js +0 -280
  195. package/dist/ekybModule-D9M3E2Gm.js +0 -2
  196. package/dist/ekycModule-CU9pt5YN.js +0 -246
  197. package/dist/ekycModule-CZw9cLno.js +0 -2
  198. package/dist/electronic-signature-COYXjGdd.js +0 -410
  199. package/dist/emailInput-DppGf9pv.js +0 -37
  200. package/dist/expiredId-BnmzE8T3.js +0 -70
  201. package/dist/extensibility-CzEJfRwo.js +0 -2586
  202. package/dist/faceMatch-B8j0g0Yo.js +0 -2
  203. package/dist/faceMatch-BV8UD7tj.js +0 -201
  204. package/dist/frontdevicelottie-Bu6f9fDE.js +0 -17302
  205. package/dist/glaredevicelottie-B10axYs_.js +0 -14466
  206. package/dist/homeScreen-DnP1jw9A.js +0 -227
  207. package/dist/hooks-BVnGysT7.js +0 -80
  208. package/dist/i18n-9s4OSqwi.js +0 -2010
  209. package/dist/icons-Cc7zwchP.js +0 -310
  210. package/dist/id-laser-h-mBAzHVOK.js +0 -467
  211. package/dist/id-laser-v-CrFg4bcJ.js +0 -483
  212. package/dist/id-tutorial-BCr42Pnn.js +0 -13153
  213. package/dist/idOcr-CCjfWQvH.js +0 -94
  214. package/dist/incode-logo-DX016usY.js +0 -4
  215. package/dist/incodeComponent-C1o4M0ZK.js +0 -50
  216. package/dist/incodeModule-BqCjVgEI.js +0 -18
  217. package/dist/inputComposed-APSw8C7o.js +0 -89
  218. package/dist/inputComposed-XYrarFxS.js +0 -1
  219. package/dist/loadingIcon-BN5YRQUb.js +0 -104
  220. package/dist/mandatoryConsent-DssKMC3v.js +0 -100
  221. package/dist/modal-NMxsQHAO.js +0 -135
  222. package/dist/modal.hooks-CAjcIFZK.js +0 -126
  223. package/dist/numberedStep-CT-alrK5.js +0 -11
  224. package/dist/optionAccessibleLabel-CzEeX3Q4.js +0 -140
  225. package/dist/otpInput-DqRA_egd.js +0 -145
  226. package/dist/page-C1yT4DLb.js +0 -69
  227. package/dist/pdf-BurGZ08w.js +0 -14967
  228. package/dist/pdfViewer-BGBNL1Ea.js +0 -63
  229. package/dist/phoneInputComposed-bvWhGLFZ.js +0 -11206
  230. package/dist/processing-G_y3o32b.js +0 -6
  231. package/dist/radioGroupComposed-BbmvxmD2.js +0 -177
  232. package/dist/redirectToMobile-C3k1gloW.js +0 -1514
  233. package/dist/requiredLabelHint-BLwgqozE.js +0 -13
  234. package/dist/richText-DbJ5sl2n.js +0 -1973
  235. package/dist/rolldown-runtime-CYMK-g2i.js +0 -20
  236. package/dist/selfieTutorial-BgrlUMXP.js +0 -2677
  237. package/dist/snackbar-BDp8x7Cv.js +0 -14
  238. package/dist/spinner-B4dcie2T.js +0 -1
  239. package/dist/spinner-CKnjVHxw.js +0 -39
  240. package/dist/statusPage-CUI7ApcU.js +0 -28
  241. package/dist/successIcon-DbILeIz_.js +0 -28
  242. package/dist/tabs-DaPyP71c.js +0 -78
  243. package/dist/transitionSpinner-PIEPU2Vx.js +0 -17
  244. package/dist/types/cpf-ocr/styles.d.ts +0 -1
  245. package/dist/types/document-capture/styles.d.ts +0 -1
  246. package/dist/types/redirect-to-mobile/styles.d.ts +0 -1
  247. package/dist/typography-CxjaknHN.js +0 -28
  248. package/dist/uiConfig-CwpQ-IM6.js +0 -20
  249. package/dist/useModuleLoader-BFiVA41N.js +0 -432
  250. package/dist/vendor-preact-D6SntenC.js +0 -958
  251. package/dist/verificationResult-BrVbUJ4U.js +0 -97
  252. package/dist/verifiedByIncode-ChZBpqNy.js +0 -101
  253. package/dist/watchlistForBusiness-BcSNtHCV.js +0 -77
@@ -2,7 +2,6 @@
2
2
  @layer properties {
3
3
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
4
4
  *, :before, :after, ::backdrop {
5
- --tw-font-weight: initial;
6
5
  --tw-border-style: solid;
7
6
  --tw-duration: initial;
8
7
  }
@@ -25,130 +24,185 @@
25
24
  animation: .4s ease-out fadeIn;
26
25
  }
27
26
 
28
- .IncodeIdentityReuseContent {
27
+ .IncodeIdentityReusePage .IncodeIdentityReuseBody {
28
+ padding-top: var(--spacing-32);
29
29
  flex-direction: column;
30
30
  flex: 1;
31
- justify-content: center;
32
- align-items: center;
33
31
  display: flex;
34
32
  }
35
33
 
36
- .IncodeIdentityReuseVisualization {
37
- justify-content: center;
38
- align-items: center;
34
+ .IncodeIdentityReusePage .IncodeIdentityReuseList {
39
35
  gap: var(--spacing-8, var(--spacing-8, 8px));
36
+ flex-direction: column;
40
37
  width: 100%;
41
38
  display: flex;
42
39
  }
43
40
 
44
- .IncodeIdentityReuseCircleWrapper {
45
- flex: 1;
46
- justify-content: center;
47
- align-items: center;
41
+ .IncodeIdentityReusePage .IncodeIdentityReuseCard {
42
+ cursor: pointer;
43
+ border-radius: var(--radius-medium, var(--border-radius-medium));
44
+ border-style: var(--tw-border-style);
45
+ width: 100%;
46
+ padding: var(--spacing-16, var(--spacing-16, 16px));
47
+ text-align: left;
48
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
49
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));
50
+ transition-duration: var(--tw-duration, var(--default-transition-duration, .15s));
51
+ --tw-duration: .2s;
52
+ background-color: var(--surface-neutral-0);
53
+ border-width: 1px;
54
+ border-color: var(--border-neutral-100);
55
+ flex-direction: column;
56
+ align-items: stretch;
57
+ transition-duration: .2s;
48
58
  display: flex;
49
59
  }
50
60
 
51
- .IncodeIdentityReuseCircle {
52
- aspect-ratio: 1;
53
- border-radius: var(--radius-full, var(--border-radius-full));
61
+ .IncodeIdentityReusePage .IncodeIdentityReuseCard:hover {
62
+ border-color: var(--border-neutral-200);
63
+ }
64
+
65
+ .IncodeIdentityReusePage .IncodeIdentityReuseCard:focus-visible {
66
+ outline: var(--focus-outline-width) solid var(--border-status-focus);
67
+ outline-offset: var(--focus-outline-width);
68
+ }
69
+
70
+ .IncodeIdentityReusePage .IncodeIdentityReuseCardSelected, .IncodeIdentityReusePage .IncodeIdentityReuseCardSelected:hover {
54
71
  background-color: var(--surface-brand-50);
55
- justify-content: center;
56
- align-items: center;
57
- width: 100%;
58
- max-width: 180px;
59
- display: flex;
72
+ border-color: var(--border-brand-500);
60
73
  }
61
74
 
62
- .IncodeIdentityReuseCircleText {
63
- padding-inline: var(--spacing-16, var(--spacing-16, 16px));
64
- text-align: center;
65
- font-size: var(--text-18, var(--primitive-typography-size-18));
66
- --tw-font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
67
- font-weight: var(--font-weight-bold, var(--primitive-typography-weight-bold));
68
- color: var(--surface-brand-500);
75
+ .IncodeIdentityReusePage .IncodeIdentityReuseCardBody {
76
+ gap: var(--spacing-8, var(--spacing-8, 8px));
77
+ flex-direction: column;
78
+ flex: 1;
79
+ display: flex;
69
80
  }
70
81
 
71
- .IncodeIdentityReuseArrowWrapper {
72
- justify-content: center;
82
+ .IncodeIdentityReusePage .IncodeIdentityReuseCardHeader {
83
+ justify-content: space-between;
73
84
  align-items: center;
74
- width: 10%;
85
+ width: 100%;
75
86
  display: flex;
76
87
  }
77
88
 
78
- .IncodeIdentityReuseArrow {
79
- width: 100%;
80
- color: var(--text-body-800-secondary);
89
+ .IncodeIdentityReusePage .IncodeIdentityReuseCardHeaderLeft {
90
+ align-items: center;
91
+ gap: var(--spacing-12, var(--spacing-12, 12px));
92
+ display: flex;
81
93
  }
82
94
 
83
- .IncodeIdentityReuseDescription {
84
- margin: var(--spacing-0, var(--spacing-none, 0px));
85
- margin-top: var(--spacing-24, var(--spacing-24, 24px));
86
- text-align: center;
87
- font-size: var(--text-16, var(--primitive-typography-size-16));
88
- color: var(--text-body-800-secondary);
95
+ .IncodeIdentityReusePage .IncodeIdentityReuseCardTypeLabel {
96
+ font-family: var(--typography-body-family);
97
+ font-size: var(--typography-body-m-regular-size);
98
+ font-weight: var(--typography-body-m-regular-weight);
99
+ line-height: var(--typography-body-m-regular-line-height);
100
+ letter-spacing: var(--typography-body-m-regular-letter-spacing);
101
+ color: var(--text-body-800-primary);
89
102
  }
90
103
 
91
- .IncodeIdentityReuseActions {
104
+ .IncodeIdentityReusePage .IncodeIdentityReuseCardIdentifier {
105
+ margin: var(--spacing-0, var(--spacing-none, 0px));
106
+ align-items: center;
92
107
  gap: var(--spacing-8, var(--spacing-8, 8px));
93
- flex-direction: column;
108
+ font-family: var(--typography-headline-family);
109
+ font-size: var(--typography-headline-h5-size);
110
+ font-weight: var(--typography-headline-h5-weight);
111
+ line-height: var(--typography-headline-h5-line-height);
112
+ letter-spacing: var(--typography-headline-h5-letter-spacing);
113
+ color: var(--text-body-800-primary);
94
114
  display: flex;
95
115
  }
96
116
 
97
- .IncodeIdentityReuseCandidateList {
98
- gap: var(--spacing-8, var(--spacing-8, 8px));
99
- flex-direction: column;
100
- width: 100%;
101
- display: flex;
117
+ .IncodeIdentityReusePage .IncodeIdentityReuseCardVerified {
118
+ margin: var(--spacing-0, var(--spacing-none, 0px));
119
+ font-family: var(--typography-body-family);
120
+ font-size: var(--typography-body-m-regular-size);
121
+ font-weight: var(--typography-body-m-regular-weight);
122
+ line-height: var(--typography-body-m-regular-line-height);
123
+ letter-spacing: var(--typography-body-m-regular-letter-spacing);
124
+ color: var(--text-body-500-secondary);
125
+ }
126
+
127
+ .IncodeIdentityReusePage .IncodeIdentityReuseBadgeRecommended {
128
+ border-radius: var(--radius-x-small, var(--border-radius-x-small));
129
+ padding-inline: var(--spacing-4, var(--spacing-4, 4px));
130
+ padding-block: var(--spacing-2, var(--spacing-2, 2px));
131
+ font-family: var(--typography-body-family);
132
+ font-size: var(--typography-body-s-regular-size);
133
+ font-weight: var(--typography-body-s-regular-weight);
134
+ line-height: var(--typography-body-s-regular-line-height);
135
+ letter-spacing: var(--typography-body-s-regular-letter-spacing);
136
+ background-color: var(--surface-brand-500-static);
137
+ color: var(--text-body-0-static);
138
+ align-items: center;
139
+ display: inline-flex;
102
140
  }
103
141
 
104
- .IncodeIdentityReuseCandidateItem {
105
- cursor: pointer;
106
- border-radius: var(--radius-medium, var(--border-radius-medium));
142
+ .IncodeIdentityReusePage .IncodeIdentityReuseBadgeSlowest {
143
+ border-radius: var(--radius-x-small, var(--border-radius-x-small));
107
144
  border-style: var(--tw-border-style);
108
- width: 100%;
109
- padding-inline: var(--spacing-16, var(--spacing-16, 16px));
110
- padding-block: var(--spacing-16, var(--spacing-16, 16px));
111
- transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
112
- transition-timing-function: var(--tw-ease, var(--default-transition-timing-function, cubic-bezier(.4, 0, .2, 1)));
113
- transition-duration: var(--tw-duration, var(--default-transition-duration, .15s));
114
- --tw-duration: .2s;
115
- background-color: var(--surface-brand-50);
145
+ padding-inline: var(--spacing-4, var(--spacing-4, 4px));
146
+ padding-block: var(--spacing-2, var(--spacing-2, 2px));
147
+ font-family: var(--typography-body-family);
148
+ font-size: var(--typography-body-s-regular-size);
149
+ font-weight: var(--typography-body-s-regular-weight);
150
+ line-height: var(--typography-body-s-regular-line-height);
151
+ letter-spacing: var(--typography-body-s-regular-letter-spacing);
152
+ background-color: var(--surface-neutral-50);
116
153
  border-width: 1px;
117
- border-color: var(--surface-brand-50);
118
- justify-content: space-between;
154
+ border-color: var(--border-neutral-200);
155
+ color: var(--text-body-800-primary);
119
156
  align-items: center;
120
- transition-duration: .2s;
121
- display: flex;
157
+ display: inline-flex;
122
158
  }
123
159
 
124
- .IncodeIdentityReuseCandidateItem:hover {
125
- border-color: var(--surface-brand-500);
160
+ .IncodeIdentityReusePage .IncodeIdentityReuseScanNewCard {
161
+ align-items: center;
162
+ gap: var(--spacing-20);
163
+ flex-direction: row;
126
164
  }
127
165
 
128
- .IncodeIdentityReuseCandidateItem:focus-visible {
129
- --tw-outline-style: none;
130
- border-color: var(--border-status-focus);
131
- box-shadow: 0 0 0 2px var(--border-status-focus);
132
- outline-style: none;
166
+ .IncodeIdentityReusePage .IncodeIdentityReuseScanNewBody {
167
+ align-items: center;
168
+ gap: var(--spacing-12, var(--spacing-12, 12px));
169
+ flex: 1;
170
+ display: flex;
133
171
  }
134
172
 
135
- .IncodeIdentityReuseCandidateItemName {
136
- font-size: var(--text-16, var(--primitive-typography-size-16));
137
- --tw-font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
138
- font-weight: var(--font-weight-medium, var(--primitive-typography-weight-medium));
139
- color: var(--text-body-800-primary);
173
+ .IncodeIdentityReusePage .IncodeIdentityReuseRadio {
174
+ border-radius: var(--radius-full, var(--border-radius-full));
175
+ border-style: var(--tw-border-style);
176
+ width: var(--spacing-24);
177
+ height: var(--spacing-24);
178
+ background-color: var(--surface-neutral-50);
179
+ border-width: 1px;
180
+ border-color: var(--border-neutral-200);
181
+ flex-shrink: 0;
182
+ justify-content: center;
183
+ align-items: center;
184
+ display: inline-flex;
140
185
  }
141
186
 
142
- .IncodeIdentityReuseCandidateItemChevron {
143
- width: var(--spacing-24, var(--spacing-24, 24px));
144
- height: var(--spacing-24, var(--spacing-24, 24px));
145
- color: var(--text-body-800-secondary);
146
- flex-shrink: 0;
187
+ .IncodeIdentityReusePage .IncodeIdentityReuseRadioChecked {
188
+ background-color: var(--surface-brand-500-static);
189
+ border-color: var(--surface-brand-500-static);
147
190
  }
148
191
 
149
- @property --tw-font-weight {
150
- syntax: "*";
151
- inherits: false
192
+ .IncodeIdentityReusePage .IncodeIdentityReuseRadioInner {
193
+ border-radius: var(--radius-full, var(--border-radius-full));
194
+ width: var(--spacing-8);
195
+ height: var(--spacing-8);
196
+ background-color: var(--surface-neutral-0-static);
197
+ display: block;
198
+ }
199
+
200
+ .IncodeIdentityReusePage .IncodeIdentityReuseActions {
201
+ gap: var(--spacing-12, var(--spacing-12, 12px));
202
+ padding-top: var(--spacing-16);
203
+ flex-direction: column;
204
+ margin-top: auto;
205
+ display: flex;
152
206
  }
153
207
 
154
208
  @property --tw-border-style {
@@ -0,0 +1,4 @@
1
+ //#region src/shared/page/incode-logo.svg
2
+ var incode_logo_default = "data:image/svg+xml,%3csvg%20width='76'%20height='20'%20viewBox='0%200%2076%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M40.1687%206.01811C42.2312%206.01811%2043.7927%206.59655%2044.8446%207.76024C45.8919%208.91831%2046.4126%2010.5865%2046.4126%2012.7583C46.4126%2014.93%2045.8748%2016.6105%2044.794%2017.7944C43.7102%2018.9815%2042.1729%2019.5735%2040.1937%2019.5735C38.1479%2019.5735%2036.5973%2018.99%2035.5546%2017.8187L35.4273%2017.6701C34.4729%2016.5101%2033.9984%2014.871%2033.9984%2012.7583C33.9984%208.28671%2036.0703%206.01811%2040.1687%206.01811ZM69.1127%206.01781C71.1144%206.01781%2072.5953%206.66904%2073.5373%207.97333C74.4288%209.2077%2074.8837%2010.9053%2074.9066%2013.0629L74.9058%2013.5242H66.1149C66.2174%2014.6334%2066.5602%2015.4734%2067.141%2016.0538C67.7488%2016.662%2068.6195%2016.9679%2069.7639%2016.9679C70.5188%2016.9679%2071.2373%2016.8742%2071.921%2016.6862C72.6048%2016.4995%2073.2105%2016.2581%2073.735%2015.9646L73.9814%2015.8267V18.666L73.8821%2018.7093C72.5607%2019.286%2071.0464%2019.5732%2069.3379%2019.5732C67.4088%2019.5732%2065.8853%2018.986%2064.7769%2017.8093C63.6699%2016.6348%2063.1183%2014.9722%2063.1183%2012.833C63.1183%2010.6451%2063.6389%208.96055%2064.6862%207.78517C65.7359%206.60632%2067.2157%206.01781%2069.1127%206.01781ZM60.3976%201.06738V16.3832C60.3976%2017.0998%2060.0996%2017.7092%2059.5124%2018.198C58.9425%2018.6724%2058.2282%2019.0207%2057.3718%2019.2435C56.5257%2019.4635%2055.6531%2019.5731%2054.7534%2019.5731C52.9298%2019.5731%2051.4237%2019.056%2050.2406%2018.0202C49.0485%2016.9752%2048.4588%2015.1678%2048.4588%2012.6072C48.4588%2010.5545%2048.9627%208.9421%2049.9753%207.77411C50.9938%206.60175%2052.4982%206.01774%2054.4782%206.01774C54.9416%206.01774%2055.4735%206.07665%2056.0742%206.19449C56.582%206.296%2057.0453%206.43849%2057.4648%206.62252V1.06738H60.3976ZM27.911%206.04223C29.2828%206.04223%2030.5881%206.29619%2031.8264%206.80393L31.9291%206.84604V9.55797L31.6992%209.46109C30.4503%208.93473%2029.3127%208.67257%2028.2863%208.67257C27.0102%208.67257%2026.0684%208.98809%2025.4521%209.61162C24.8366%2010.2352%2024.5242%2011.2397%2024.5242%2012.6331C24.5242%2014.0959%2024.8298%2015.1535%2025.4314%2015.8092C26.029%2016.4619%2027.002%2016.7923%2028.3613%2016.7923C29.4706%2016.7923%2030.589%2016.5234%2031.7164%2015.9842L31.9534%2015.8708V18.5903L31.8552%2018.634C30.6349%2019.1773%2029.3283%2019.4483%2027.936%2019.4483C26.2154%2019.4483%2024.7637%2018.9753%2023.5868%2018.0285L23.4123%2017.8829L23.2796%2017.7636C22.1516%2016.7067%2021.5914%2015.0592%2021.5914%2012.8332C21.5914%2010.4557%2022.186%208.72379%2023.3849%207.64725C24.5757%206.57726%2026.0871%206.04223%2027.911%206.04223ZM4.11045%206.39262L4.13613%2019.1987H1.15293V6.39262H4.11045ZM13.5766%206.0423C15.365%206.0423%2016.6948%206.41948%2017.5636%207.18368C18.4372%207.95269%2018.8706%209.13902%2018.8706%2010.7331V19.1984H15.9127V11.0838C15.9127%209.42945%2014.9988%208.62337%2013.1013%208.62337C12.3086%208.62337%2011.5458%208.73548%2010.8133%208.95959L10.5401%209.04888V19.1984H7.58147V7.40579L7.67177%207.35974C8.43481%206.97061%209.36013%206.65415%2010.4506%206.40815L10.8116%206.33134C11.7692%206.13867%2012.6905%206.0423%2013.5766%206.0423ZM40.1687%208.5477C39.0014%208.5477%2038.1814%208.89722%2037.6896%209.59114C37.1869%2010.3012%2036.932%2011.3564%2036.932%2012.7583C36.932%2014.1602%2037.1948%2015.223%2037.7142%2015.9499C38.2224%2016.6613%2039.0345%2017.0182%2040.1687%2017.0182C42.3685%2017.0182%2043.4555%2015.6249%2043.4555%2012.7583C43.4555%2011.325%2043.1888%2010.2632%2042.6636%209.57056C42.1472%208.89036%2041.3203%208.5477%2040.1687%208.5477ZM54.8535%208.59807C52.5835%208.59807%2051.4659%209.9271%2051.4659%2012.6579C51.4659%2014.0276%2051.7253%2015.0917%2052.2391%2015.8527C52.7378%2016.5945%2053.6185%2016.9678%2054.9035%2016.9678C55.6556%2016.9678%2056.2834%2016.8792%2056.7876%2016.7028C57.2156%2016.553%2057.4279%2016.378%2057.4604%2016.186L57.4648%2016.1332V9.25404L57.2778%209.15611C56.9611%208.99923%2056.6189%208.87406%2056.2512%208.78123C55.7705%208.65917%2055.3045%208.59807%2054.8535%208.59807ZM69.0377%208.49888C68.192%208.49888%2067.5412%208.71795%2067.0743%209.15366C66.6631%209.5374%2066.3731%2010.1684%2066.2101%2011.0498L66.1771%2011.2425H71.8784L71.8489%2011.0453C71.7111%2010.208%2071.4421%209.58986%2071.0461%209.18626C70.5969%208.72981%2069.9303%208.49888%2069.0377%208.49888ZM4.21085%201.94156V4.64764H1.07715V1.94156H4.21085Z'%20fill='%23006AFF'/%3e%3c/svg%3e";
3
+ //#endregion
4
+ export { incode_logo_default as t };
@@ -0,0 +1,63 @@
1
+ import { n as useTranslation } from "./i18n-CoCO2ZuN.js";
2
+ import { _ as y, l as A, p as d, r as $, v as u } from "./vendor-preact-DThS2ZQ_.js";
3
+ import { s as useScreenOrientation } from "./hooks-Da_yP_Dr.js";
4
+ import { isIPad } from "@incodetech/core/device";
5
+ //#region src/shared/icons/rotate-icon.svg
6
+ var rotate_icon_default = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='90'%20height='90'%20viewBox='0%200%2090%2090'%3e%3cg%20fill='%2320263D'%3e%3cpath%20d='M84.12%2027.54l-2.58-2.58L65.036%208.456l-2.58-2.58c-3.127-3.127-8.58-2.764-12.157.81L6.69%2050.306c-3.574%203.574-3.938%209.027-.81%2012.158l21.66%2021.66c3.128%203.127%208.58%202.764%2012.157-.81l43.617-43.616c3.574-3.578%203.937-9.03.806-12.158zm-5.524%208.617l-42.439%2042.44c-1.3%201.3-3.28%201.432-4.42.296l-20.63-20.63c-1.14-1.14-1.008-3.12.297-4.42l42.438-42.44c1.302-1.3%203.282-1.432%204.422-.296l1.031%201.032c1.14%201.14%201.009%203.12-.296%204.421-1.302%201.301-1.433%203.281-.297%204.421L69.02%2031.297c1.14%201.14%203.12%201.01%204.421-.296%201.301-1.301%203.281-1.432%204.421-.296l1.031%201.031c1.137%201.14%201.005%203.12-.296%204.421zM51.885%2090a3.135%203.135%200%2001-2.22-5.351l8.925-8.925a3.138%203.138%200%20014.646.233l3.308%204.046c10.114-5.374%2017.081-15.994%2017.178-28.14a3.136%203.136%200%20013.136-3.113h.026a3.14%203.14%200%20013.112%203.161C89.835%2072.746%2072.746%2089.835%2051.911%2090h-.026zM38.115%200a3.135%203.135%200%20012.22%205.351l-8.925%208.925a3.125%203.125%200%2001-2.378.915%203.138%203.138%200%2001-2.272-1.147l-3.308-4.046C13.34%2015.37%206.373%2025.99%206.274%2038.138a3.14%203.14%200%2001-3.139%203.112h-.026a3.139%203.139%200%2001-3.11-3.161C.166%2017.254%2017.255.165%2038.09%200h.026z'/%3e%3c/g%3e%3c/svg%3e";
7
+ //#endregion
8
+ //#region src/shared/landscapeBlocker/landscapeBlocker.tsx
9
+ function usePortalContainer() {
10
+ const [container, setContainer] = d(null);
11
+ const containerRef = A(null);
12
+ y(() => {
13
+ const el = document.createElement("div");
14
+ el.setAttribute("data-incode-landscape-portal", "");
15
+ document.body.appendChild(el);
16
+ containerRef.current = el;
17
+ setContainer(el);
18
+ return () => {
19
+ el.remove();
20
+ containerRef.current = null;
21
+ };
22
+ }, []);
23
+ return container;
24
+ }
25
+ function LandscapeBlocker() {
26
+ const { t } = useTranslation();
27
+ const container = usePortalContainer();
28
+ if (!container) return null;
29
+ return $(/* @__PURE__ */ u("div", {
30
+ class: "IncodeLandscapeBlocker",
31
+ children: [
32
+ /* @__PURE__ */ u("img", {
33
+ class: "IncodeLandscapeBlocker-icon",
34
+ src: rotate_icon_default,
35
+ alt: "",
36
+ "aria-hidden": true
37
+ }),
38
+ /* @__PURE__ */ u("p", {
39
+ class: "IncodeLandscapeBlocker-text",
40
+ children: t("common.landscape")
41
+ }),
42
+ /* @__PURE__ */ u("p", {
43
+ class: "IncodeLandscapeBlocker-text",
44
+ children: isIPad() ? t("common.rotateIpad") : t("common.rotate")
45
+ })
46
+ ]
47
+ }), container);
48
+ }
49
+ //#endregion
50
+ //#region src/shared/componentRoot/incodeComponent.tsx
51
+ /**
52
+ * Wraps UI modules with the standard container.
53
+ * Shows a landscape blocker overlay on mobile (excluding iPad) when device is rotated to landscape.
54
+ */
55
+ function IncodeComponent({ children }) {
56
+ const { isLandscapeMobile } = useScreenOrientation();
57
+ return /* @__PURE__ */ u("div", {
58
+ class: "IncodeComponent",
59
+ children: [children, isLandscapeMobile ? /* @__PURE__ */ u(LandscapeBlocker, {}) : null]
60
+ });
61
+ }
62
+ //#endregion
63
+ export { LandscapeBlocker as n, IncodeComponent as t };
@@ -0,0 +1,13 @@
1
+ import { t as registerIncodeElement } from "./registerIncodeElement-77NGCDsy.js";
2
+ //#region src/shared/webComponent/incodeModule.ts
3
+ var incodeModulePropKeys = [
4
+ "config",
5
+ "manager",
6
+ "onFinish",
7
+ "onError"
8
+ ];
9
+ function registerIncodeModuleElement(component, tagName) {
10
+ registerIncodeElement(component, tagName, incodeModulePropKeys);
11
+ }
12
+ //#endregion
13
+ export { registerIncodeModuleElement as t };
package/dist/index.es.js CHANGED
@@ -1,16 +1,19 @@
1
- import { i as e, r as t } from "./i18n-9s4OSqwi.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-CoCO2ZuN.js";
2
+ import { t as setUiConfig } from "./uiConfig-D2_wawvr.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, i18n: l, uiConfig: u }) {
7
- u && n(u), await i({
8
- apiURL: r,
9
- token: a,
10
- customHeaders: o,
11
- timeout: s,
12
- wasm: c
13
- }), t(e(l));
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));
14
17
  }
15
18
  //#endregion
16
- export { r as DEFAULT_WASM_VERSION, n as setUiConfig, a as setup };
19
+ export { DEFAULT_WASM_VERSION, createI18n, setI18nInstance, setUiConfig, setup };
@@ -0,0 +1 @@
1
+ import "./inputComposed-CQ4AsvZg.js";
@@ -0,0 +1,99 @@
1
+ import { a as D, v as u } from "./vendor-preact-DThS2ZQ_.js";
2
+ import { n as cn } from "./loadingIcon-B0ysgiNq.js";
3
+ import { t as ErrorIcon } from "./errorIcon-DJRZpd8j.js";
4
+ import { o as CloseIcon } from "./icons-Dbs9ZfYM.js";
5
+ import { t as SuccessIcon } from "./successIcon-BAyDPT7I.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,148 @@
1
+ import { f as _, l as A, v as u } from "./vendor-preact-DThS2ZQ_.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 };