@incodetech/web 2.4.0 → 2.4.1-agentic.1

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 (345) hide show
  1. package/THIRD_PARTY_NOTICES.txt +1 -4
  2. package/dist/{GeolocationPermissionDenied-NCe8TBk4.js → GeolocationPermissionDenied-ClGp0a23.js} +13 -8
  3. package/dist/ae-signature/ae-signature.es.js +4 -4
  4. package/dist/{af-ZA-BbU0OdlG.js → af-ZA-BKpmmWDe.js} +165 -869
  5. package/dist/{ageVerification-B5ownHdO.js → ageVerification-CtuJDuRV.js} +11 -8
  6. package/dist/{am-BuvQtV50.js → am-CW_ro5Ws.js} +165 -869
  7. package/dist/antifraud/antifraud.es.js +5 -4
  8. package/dist/applyStudioConfig-C6-Ak0q6.js +127 -0
  9. package/dist/{ar-AE-Bdk7NfI2.js → ar-AE-D9h8UMbm.js} +165 -869
  10. package/dist/{ar-Ba-wMBXP.js → ar-B5ToweVl.js} +166 -870
  11. package/dist/{ar-EG-C9FVwsEB.js → ar-EG-DQqE9B26.js} +165 -869
  12. package/dist/assertClassBrand-DJr5K93j.js +17 -0
  13. package/dist/asset-Ctwd_20H.js +355 -0
  14. package/dist/authentication/authentication.es.js +7 -5
  15. package/dist/{autoFocusTitle-BQltp_Nn.js → autoFocusTitle-CzaCWWW5.js} +2 -2
  16. package/dist/{az-DHRJfgCV.js → az-DAZq-CQj.js} +165 -869
  17. package/dist/{back-horizontal-hint-BztyPanp.js → back-horizontal-hint-qzSaNkEU.js} +1 -1
  18. package/dist/{back-vertical-hint-BSzA4QbJ.js → back-vertical-hint-DkYLOege.js} +1 -1
  19. package/dist/base.css +1 -1
  20. package/dist/{baseTutorial-CL2A9XLh.js → baseTutorial-CF6WiVYt.js} +10 -7
  21. package/dist/{bn-BfE2MHPG.js → bn-DRTyq2Y9.js} +165 -869
  22. package/dist/{bottomSheet-DU4SrMOH.js → bottomSheet-DylE2INk.js} +3 -3
  23. package/dist/{bs-Ck9dCVYh.js → bs-B8q0B86-.js} +164 -868
  24. package/dist/{ca-yJUG5zqw.js → ca-DvsHXRB-.js} +164 -868
  25. package/dist/cameraOverlay-DNf0PEF4.js +2 -0
  26. package/dist/{cameraOverlayHeader-Bp7NCrl9.js → cameraOverlayHeader-CuVGnyXI.js} +9 -8
  27. package/dist/{cameraView-CLlWARBI.js → cameraView-D9ZxLKtA.js} +13 -14
  28. package/dist/capture-0jMDSGCE.js +762 -0
  29. package/dist/{tutorial-Bwt7rxfr.js → capture-BlGlXoTx.js} +212 -51
  30. package/dist/capture-DKBA5j5A.js +3 -0
  31. package/dist/capture-D_Dwrj1F.js +2 -0
  32. package/dist/captureButtonIcon-A9kn2E_m.js +1 -0
  33. package/dist/captureFocusContext-9789qOe3.js +729 -0
  34. package/dist/captureFooter-B6WUFQCV.js +47 -0
  35. package/dist/{ceb-oov4R9JM.js → ceb-pvlomXHV.js} +165 -869
  36. package/dist/certificate-issuance/certificate-issuance.es.js +23 -13
  37. package/dist/{check-icon-BpjpKqhJ.js → check-icon-BdHltEK6.js} +1 -1
  38. package/dist/{checkbox-DbYUeTao.js → checkbox-BwUQ0Rs9.js} +4 -4
  39. package/dist/chooser-CmG71-lh.js +1589 -0
  40. package/dist/connectionError-DexRpKWs.js +90 -0
  41. package/dist/consent/consent.es.js +19 -14
  42. package/dist/consent/styles.css +1 -1
  43. package/dist/consent/styles.css.js +1 -1
  44. package/dist/{countryFlag-2Vj85OIZ.js → countryFlag-CQMfCnE9.js} +1 -1
  45. package/dist/{countrySelector-El6_zLMs.js → countrySelector-C0OEKMqL.js} +6 -5
  46. package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
  47. package/dist/{cs-CZ-B9jWzmE_.js → cs-CZ-GgvnJLMj.js} +164 -868
  48. package/dist/{cs-ovOFxGB0.js → cs-DB5PLEdt.js} +164 -868
  49. package/dist/curp-validation/curp-validation.es.js +34 -19
  50. package/dist/curp-validation/styles.css +1 -1
  51. package/dist/curp-validation/styles.css.js +1 -1
  52. package/dist/{customFields-BlYfgYje.js → customFields-DQgRumW0.js} +17 -12
  53. package/dist/{customWatchlist-BsBTzCCN.js → customWatchlist-BbC0fA-6.js} +8 -7
  54. package/dist/{da-DK-C0l5MGWM.js → da-DK-ZhpcfE_F.js} +164 -868
  55. package/dist/{dashboardTheme-MVQerNVn.js → dashboardTheme-DtXsx9IK.js} +22 -23
  56. package/dist/{dateInputComposed-DXCc1HRe.js → dateInputComposed-1IcnucPq.js} +5 -5
  57. package/dist/dateInputComposed-BFlCk-sg.js +1 -0
  58. package/dist/{de-B0IRPjwJ.js → de-DEBjzaow.js} +164 -868
  59. package/dist/{denied-wXsbFjy_.js → denied-CwdVWAUw.js} +12 -9
  60. package/dist/devWarn-CW20j1Qd.js +9 -0
  61. package/dist/deviceWallet-CMjguFJO.js +37 -0
  62. package/dist/{digitalIdRedirect-CF7zG3wS.js → digitalIdRedirect-MNty16-5.js} +4 -4
  63. package/dist/{digitalIdUpload-CbPm090z.js → digitalIdUpload-CUzTaoaI.js} +39 -15
  64. package/dist/document-capture/document-capture.es.js +1 -1
  65. package/dist/document-capture/styles.css +1 -1
  66. package/dist/document-capture/styles.css.js +1 -1
  67. package/dist/{documentCapture-CgpHXm_8.js → documentCapture-BUMyJ8vw.js} +115 -44
  68. package/dist/documentCapture-rECLkwpi.js +2 -0
  69. package/dist/dropdownComposed-C9sLQE6i.js +1 -0
  70. package/dist/{dropdownComposed-qb9GgX5X.js → dropdownComposed-x3ewHxbT.js} +4 -4
  71. package/dist/dynamic-forms/dynamic-forms.es.js +20 -15
  72. package/dist/ekyb/ekyb.es.js +1 -1
  73. package/dist/ekyb/styles.css +1 -1
  74. package/dist/ekyb/styles.css.js +1 -1
  75. package/dist/ekybModule-B5IEiSyi.js +2 -0
  76. package/dist/{ekybModule-BgZIkVVl.js → ekybModule-C5hEBLMs.js} +27 -23
  77. package/dist/ekyc/ekyc.es.js +1 -1
  78. package/dist/ekyc/styles.css +1 -1
  79. package/dist/ekyc/styles.css.js +1 -1
  80. package/dist/ekycModule-B7OFnP3H.js +2 -0
  81. package/dist/{ekycModule-DEVrRrnH.js → ekycModule-TVKk0qdS.js} +71 -44
  82. package/dist/{el-Do7wYurZ.js → el-Dplr_D5N.js} +164 -868
  83. package/dist/{el-GR-BZEKLkvc.js → el-GR-IZ4reOR7.js} +164 -868
  84. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  85. package/dist/{electronic-signature-DE6FJfvu.js → electronic-signature-BMda_cf3.js} +49 -34
  86. package/dist/email/email.es.js +15 -11
  87. package/dist/{emailInput-Cp77LavN.js → emailInput-BI8gWC0D.js} +4 -4
  88. package/dist/{en-DG-Cvwm0nfj.js → en-DG-C6tsWvHi.js} +165 -869
  89. package/dist/{en-CJ6l68pH.js → en-Db1L_u7B.js} +165 -869
  90. package/dist/{errorContent-YeJNVb1U.js → errorContent-pPAgyy2i.js} +10 -7
  91. package/dist/es-419-DxKrJq7W.js +5 -0
  92. package/dist/{es-rayGAvsH.js → es-C5unKsaF.js} +164 -868
  93. package/dist/{es-ES-B8h3jMgN.js → es-ES-sHbsufzT.js} +164 -868
  94. package/dist/{es-MX-DA__jQOC.js → es-MX-Cd_DCR0A.js} +164 -868
  95. package/dist/{et-DvX7tm-R.js → et-BoGq2cx8.js} +165 -869
  96. package/dist/{expiredId-CsKNCK5M.js → expiredId-DWjw94rT.js} +12 -8
  97. package/dist/extensibility.es.js +100 -55
  98. package/dist/{fa-IR-DfrzWcH0.js → fa-IR-DuUxGXrf.js} +165 -869
  99. package/dist/face-match/face-match.es.js +1 -1
  100. package/dist/face-match/styles.css +1 -1
  101. package/dist/face-match/styles.css.js +1 -1
  102. package/dist/faceMatch-B2aMz3X2.js +2 -0
  103. package/dist/{faceMatch-Bqspq0cw.js → faceMatch-DV7NxYu_.js} +15 -20
  104. package/dist/{fi-FI-CcFDkeiE.js → fi-FI-DMOBNTjA.js} +164 -868
  105. package/dist/field-comparison/field-comparison.es.js +1 -1
  106. package/dist/fieldComparison-BY2XXsp3.js +2 -0
  107. package/dist/{fieldComparison-CmQN2MEj.js → fieldComparison-CFLU1h6n.js} +15 -11
  108. package/dist/{fieldLabelHint-CxjArYkQ.js → fieldLabelHint-CjrLxBaj.js} +3 -3
  109. package/dist/{finalSuccessScreen-1Ea3wZWM.js → finalSuccessScreen-C50L96j9.js} +20 -16
  110. package/dist/fiscal-qr/fiscal-qr.es.js +24 -18
  111. package/dist/flipAnimation-8x-qdtF_.js +33 -0
  112. package/dist/flipCapturedCardEligibility-DLr9F2g2.js +210 -0
  113. package/dist/flow/flow.es.js +209 -186
  114. package/dist/flow/shell/styles.css +1 -1
  115. package/dist/flow/shell/styles.css.js +1 -1
  116. package/dist/flow/styles.css +1 -1
  117. package/dist/{formField-DoXWcoL9.js → formField-CfQKYeGF.js} +19 -11
  118. package/dist/{fr-CA-CeL7RQc-.js → fr-CA-DZ8jlsp3.js} +164 -868
  119. package/dist/{fr-DtdqfaF8.js → fr-DSR-AP0e.js} +164 -868
  120. package/dist/{front-horizontal-hint-DEHmtcdg.js → front-horizontal-hint-DOphQZg2.js} +1 -1
  121. package/dist/{front-vertical-hint-Cb1NO-xT.js → front-vertical-hint-S6PcS9_m.js} +1 -1
  122. package/dist/geolocation/geolocation.es.js +15 -12
  123. package/dist/government-validation/government-validation.es.js +7 -6
  124. package/dist/{he-CPeNHo0I.js → he-N5dfJeyd.js} +165 -869
  125. package/dist/helpButtonConfig-CjbrBQaV.js +24 -0
  126. package/dist/{hi-DIbkmie6.js → hi-JR6K9zbd.js} +165 -869
  127. package/dist/{hmn-CscGik4W.js → hmn-j2YA7FxW.js} +165 -869
  128. package/dist/{homeScreen-C0j_8KKD.js → homeScreen-C3pPw52y.js} +24 -13
  129. package/dist/{incodeComponent-CMBg2gpq.js → hooks-BFP0WaJM.js} +192 -262
  130. package/dist/{hr-DWUsAZnf.js → hr-8cOdwB0t.js} +164 -868
  131. package/dist/{ht-DgaboG3c.js → ht-DDNL4C__.js} +165 -869
  132. package/dist/{hu-Lz2qVC3S.js → hu-CynQQUFQ.js} +166 -870
  133. package/dist/i18n-Dp014ljG.js +942 -0
  134. package/dist/{icons-OQDvn5r2.js → icons-c-hFaG4L.js} +153 -56
  135. package/dist/id/id.es.js +101 -197
  136. package/dist/id/styles.css +1 -1
  137. package/dist/id/styles.css.js +1 -1
  138. package/dist/{id-back-of-card-C7Au2tqk.js → id-back-of-card-Bk6ZQUE9.js} +1 -1
  139. package/dist/{id-back-of-card-vertical-CtQBFw8w.js → id-back-of-card-vertical-BZo00s50.js} +1 -1
  140. package/dist/{id-front-of-card-BmHL_keG.js → id-front-of-card-BJ96se7u.js} +1 -1
  141. package/dist/{id-front-of-card-vertical-DkNUn2Vx.js → id-front-of-card-vertical-DSfJB0lX.js} +1 -1
  142. package/dist/{id-C5eOEjgu.js → id-o_Yg0n8W.js} +165 -869
  143. package/dist/id-selfie-flow/id-selfie-flow.es.js +12 -11
  144. package/dist/id-selfie-flow/styles.css +1 -1
  145. package/dist/id-verification/id-verification.es.js +6 -5
  146. package/dist/idFlipTransition-DXdtXYza.js +158 -0
  147. package/dist/{idOcr-C-kHrU_d.js → idOcr-CjqfkRJ7.js} +18 -14
  148. package/dist/identity-reuse/identity-reuse.es.js +28 -18
  149. package/dist/incodeComponent-DtKh-UUm.js +237 -0
  150. package/dist/incodeModule-DCHXAeYU.js +41 -0
  151. package/dist/index.es.js +5 -3
  152. package/dist/{inputComposed-CR1IW-mQ.js → inputComposed-CmVsaHOa.js} +4 -4
  153. package/dist/inputComposed-DvGrso7g.js +1 -0
  154. package/dist/{it-CQGuLrxZ.js → it-BXevrtHn.js} +165 -869
  155. package/dist/{ja-CBD-jOkP.js → ja-DiTXnTx-.js} +165 -869
  156. package/dist/{ja-JP-Dgbzh2aL.js → ja-JP-D1IRWR-p.js} +166 -870
  157. package/dist/{jv-C-E67yDR.js → jv-Us70GzGp.js} +164 -868
  158. package/dist/{ka-CcCqDmzw.js → ka-BSsWQ4yU.js} +165 -869
  159. package/dist/{kk-B_5WgCfa.js → kk-D5R6r4H7.js} +164 -868
  160. package/dist/{km-CucJh4em.js → km-CCCb2Rnt.js} +171 -875
  161. package/dist/{ko-KP-BSjl3hdX.js → ko-KP-JF4khv1Y.js} +165 -869
  162. package/dist/{ko-BEd2Jz4C.js → ko-kQioCg2w.js} +165 -869
  163. package/dist/{ky-Bb9MfmYr.js → ky-CLOemVjC.js} +164 -868
  164. package/dist/kyb-checks/kyb-checks.es.js +2 -0
  165. package/dist/kyb-checks/styles.css +2 -0
  166. package/dist/kyb-checks/styles.css.js +1 -0
  167. package/dist/kybChecksModule-C6Y9Hxpr.js +329 -0
  168. package/dist/kybChecksModule-r3MIpFhS.js +2 -0
  169. package/dist/{lo-CD_Ehkf5.js → lo-tzHUt1CQ.js} +165 -869
  170. package/dist/{lt-DHkwvJ8e.js → lt-B2ZI-Cgu.js} +165 -869
  171. package/dist/{lv-CPuPO_jU.js → lv-BJnxtSYw.js} +165 -869
  172. package/dist/{mandatoryConsent-BHMWyBUp.js → mandatoryConsent-BiQuEZRu.js} +23 -16
  173. package/dist/{manualCaptureButton-D_tGP6tv.js → manualCaptureButton-BRSmPTeR.js} +8 -7
  174. package/dist/{manualCaptureButton-D5XP3Oaf.js → manualCaptureButton-Dw0MMSkc.js} +17 -12
  175. package/dist/{mk-DO85nJp4.js → mk-Cj7Iw2Q4.js} +165 -869
  176. package/dist/{mn-D5fhne6X.js → mn-CA_rNxtz.js} +164 -868
  177. package/dist/{ms-D_FFGDor.js → ms-BydA1Zjz.js} +164 -868
  178. package/dist/{my-D1JKF20F.js → my-gFKufKaG.js} +165 -869
  179. package/dist/{nb-NO-oEMuavpl.js → nb-NO-CDsGQbOZ.js} +164 -868
  180. package/dist/{ne-Ds3QEMQ4.js → ne-Cyfi0vFI.js} +165 -869
  181. package/dist/{nl-DGyLucC1.js → nl-e1gbmAFO.js} +165 -869
  182. package/dist/{numberedStep-CvbL3ht2.js → numberedStep-CeN77hnQ.js} +1 -1
  183. package/dist/{optionAccessibleLabel-SwDCMYKc.js → optionAccessibleLabel-BTUieMxH.js} +8 -7
  184. package/dist/{otpInput-DIUf37GR.js → otpInput-D3L3QhnR.js} +24 -17
  185. package/dist/{page-BGUJaLaG.js → page-U6jZ7BBI.js} +85 -58
  186. package/dist/{incode-logo-BBYHyycP.js → pageUiConfig-Qf6ItVv9.js} +28 -4
  187. package/dist/{passport-horizontal-hint-DgNc6F0-.js → passport-horizontal-hint-Ddsh6fUS.js} +1 -1
  188. package/dist/{passport-vertical-hint-B-toVsfT.js → passport-vertical-hint-Dukxq6-T.js} +1 -1
  189. package/dist/{passwordInputComposed-Cd-3kyua.js → passwordInputComposed-CW_1DcB8.js} +5 -5
  190. package/dist/{pdf-BKHLi5Ac.js → pdf-Bd5QplFS.js} +2 -17
  191. package/dist/{pdfViewer-EDgSzrdc.js → pdfViewer-BrqSEtbr.js} +11 -14
  192. package/dist/pdfViewer-rDnnHzmw.js +2 -0
  193. package/dist/{permissions-Vh-QG2Tj.js → permissions-KUDhffd9.js} +36 -23
  194. package/dist/phone/phone.es.js +16 -12
  195. package/dist/{phoneInputComposed-wZaDiedP.js → phoneInputComposed-DlJMTavK.js} +49 -12
  196. package/dist/{pl-nEtI_VZQ.js → pl-BSMcCWS-.js} +164 -868
  197. package/dist/preloadableLazy-C8_OYaTC.js +37 -0
  198. package/dist/{processing-SzW6Mfrg.js → processing-B5EH7yNg.js} +2 -2
  199. package/dist/{progressBar-KEnpi8uj.js → progressBar-CSpS29pV.js} +2 -2
  200. package/dist/{pt-EmaaUJGm.js → pt-BNFC2quK.js} +165 -869
  201. package/dist/{pt-BR-BkLAWIbx.js → pt-BR-bH8DC2gH.js} +165 -869
  202. package/dist/{pt-PT-Py_4_Z05.js → pt-PT-B8PXmgwU.js} +165 -869
  203. package/dist/qe-signature/qe-signature.es.js +4 -4
  204. package/dist/{radioGroupComposed-CRr_78He.js → radioGroupComposed-CW8ElYSR.js} +4 -4
  205. package/dist/radioGroupComposed-flIYNffL.js +1 -0
  206. package/dist/realtimeFeedbackConfig-tBX94SOm.js +16 -0
  207. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +51 -50
  208. package/dist/redirect-to-mobile/styles.css +1 -1
  209. package/dist/redirect-to-mobile/styles.css.js +1 -1
  210. package/dist/{registerIncodeElement-D_cn4dSI.js → registerIncodeElement-oiLvm6xq.js} +1 -1
  211. package/dist/{reload-icon-elAFo9-k.js → reload-icon-FD2e9Wet.js} +1 -1
  212. package/dist/{resendTimer-EhLnxeID.js → resendTimer-D1H3gwkI.js} +2 -2
  213. package/dist/richText-sUdTiRDE.js +1761 -0
  214. package/dist/{ro-BKmZhZl1.js → ro-DnN8QNYa.js} +165 -869
  215. package/dist/{ru-BYQKvZtn.js → ru-DAwUFXHq.js} +165 -869
  216. package/dist/{ru-RU-BdhCs3uF.js → ru-RU-Coxt0VCU.js} +164 -868
  217. package/dist/{sanitizeSvg-BC-qLUgS.js → sanitizeSvg-OdNh1mqY.js} +1 -1
  218. package/dist/selfie/selfie.es.js +36 -14
  219. package/dist/selfie/styles.css +1 -1
  220. package/dist/selfie/styles.css.js +1 -1
  221. package/dist/signature/signature.es.js +18 -13
  222. package/dist/{sk-CZipa19k.js → sk-AB8sSlNw.js} +166 -870
  223. package/dist/{sl-_sx3gvEv.js → sl-6Dfzfi7s.js} +165 -869
  224. package/dist/{smsTabContent-DHuEgl3E.js → smsTabContent-CBEKgzFv.js} +32 -23
  225. package/dist/{so-D3T7YyfC.js → so-X5BdrDvV.js} +165 -869
  226. package/dist/spacer-Jaru_3sb.js +82 -0
  227. package/dist/spinner-51btbot0.js +407 -0
  228. package/dist/{sr-D0lglPAd.js → sr-JHjMcbGs.js} +164 -868
  229. package/dist/{sr-Latn-Dy2rgSEv.js → sr-Latn-DgT7eTG2.js} +171 -875
  230. package/dist/sr-YU-BBhB_G63.js +5 -0
  231. package/dist/{sv-SE-VsDd4VP5.js → sv-SE-CvX8mC8T.js} +164 -868
  232. package/dist/{sw-D2VfTj6a.js → sw-CN0TdnY4.js} +165 -869
  233. package/dist/{th-BzmKSnbD.js → th-BmFntKib.js} +165 -869
  234. package/dist/{th-TH-BU_NqN97.js → th-TH-CWr4z3JK.js} +165 -869
  235. package/dist/themes/dark.css +1 -1
  236. package/dist/themes/light.css +1 -1
  237. package/dist/{tl-PH-BJJNA9rs.js → tl-PH-BRIbtBRN.js} +165 -869
  238. package/dist/{tl-GXkKKnzb.js → tl-rzkk5P_n.js} +165 -869
  239. package/dist/{tr-C1MJnwIJ.js → tr-DKuVBwqW.js} +166 -870
  240. package/dist/{transitionSpinner-Bkjw-WAJ.js → transitionSpinner-Di0XBAix.js} +5 -4
  241. package/dist/tutorial-C9psDR2i.js +28 -0
  242. package/dist/types/ae-signature.d.ts +10 -1
  243. package/dist/types/antifraud.d.ts +10 -1
  244. package/dist/types/authentication.d.ts +10 -1
  245. package/dist/types/certificate-issuance.d.ts +10 -1
  246. package/dist/types/consent.d.ts +10 -1
  247. package/dist/types/cross-document-data-match.d.ts +10 -1
  248. package/dist/types/curp-validation.d.ts +10 -1
  249. package/dist/types/document-capture.d.ts +10 -1
  250. package/dist/types/dynamic-forms.d.ts +10 -1
  251. package/dist/types/ekyb.d.ts +10 -1
  252. package/dist/types/ekyc.d.ts +10 -1
  253. package/dist/types/electronic-signature.d.ts +10 -1
  254. package/dist/types/email.d.ts +10 -1
  255. package/dist/types/extensibility.d.ts +147 -21
  256. package/dist/types/face-match.d.ts +10 -1
  257. package/dist/types/field-comparison.d.ts +10 -1
  258. package/dist/types/fiscal-qr.d.ts +10 -1
  259. package/dist/types/flow.d.ts +22 -2
  260. package/dist/types/geolocation.d.ts +10 -1
  261. package/dist/types/government-validation.d.ts +10 -1
  262. package/dist/types/id-selfie-flow.d.ts +10 -1
  263. package/dist/types/id-verification.d.ts +10 -1
  264. package/dist/types/id.d.ts +10 -1
  265. package/dist/types/identity-reuse.d.ts +10 -1
  266. package/dist/types/index.d.ts +92 -10
  267. package/dist/types/kyb-checks.d.ts +209 -0
  268. package/dist/types/phone.d.ts +10 -1
  269. package/dist/types/qe-signature.d.ts +10 -1
  270. package/dist/types/redirect-to-mobile.d.ts +1 -1
  271. package/dist/types/selfie.d.ts +10 -1
  272. package/dist/types/signature.d.ts +10 -1
  273. package/dist/types/video-selfie.d.ts +1 -1
  274. package/dist/types/watchlist.d.ts +10 -1
  275. package/dist/types/workflow.d.ts +10 -1
  276. package/dist/{typography-DKXgPZsU.js → typography-CiGhKJGx.js} +2 -2
  277. package/dist/uiConfig-BJAuZQWc.js +77 -0
  278. package/dist/{uk-DFL26I5l.js → uk-CXjqq4lX.js} +164 -868
  279. package/dist/{uk-UA-3o9Xbam-.js → uk-UA-BIE9WByU.js} +165 -869
  280. package/dist/{ur-DXJAfyQA.js → ur-vNGesC3r.js} +165 -869
  281. package/dist/useCameraPreview-Bd7AYE9h.js +93 -0
  282. package/dist/useCaptureHelpButton-Dj-jESrS.js +43 -0
  283. package/dist/useIsDarkTheme-Bu9CvKxW.js +27 -0
  284. package/dist/{useModuleLoader-BdIp6TNQ.js → useModuleLoader-BBCNkJmc.js} +2 -2
  285. package/dist/{uz-BXvj8vlH.js → uz-Gmw1XRgv.js} +165 -869
  286. package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-DHGqBGMH.js} +19 -1
  287. package/dist/{verificationResult-BVrKFRMf.js → verificationResult-Clxdxm_s.js} +18 -10
  288. package/dist/{vi-DRfsxu1a.js → vi-DTxxRUw0.js} +165 -869
  289. package/dist/video-selfie/styles.css +1 -1
  290. package/dist/video-selfie/styles.css.js +1 -1
  291. package/dist/video-selfie/video-selfie.es.js +103 -67
  292. package/dist/watchlist/watchlist.es.js +8 -7
  293. package/dist/{watchlistForBusiness-CyAmoIrv.js → watchlistForBusiness-CpFp2EYX.js} +44 -14
  294. package/dist/{withEndScreenTexts-MHocOODe.js → withEndScreenTexts-Bd3mof3s.js} +225 -45
  295. package/dist/workflow/styles.css +1 -1
  296. package/dist/workflow/workflow.es.js +32 -21
  297. package/dist/{zh-CN-DMfj1_Nh.js → zh-CN-aB48G_R1.js} +164 -868
  298. package/dist/{zh-Ct8GKGhw.js → zh-DjtyfO4e.js} +164 -868
  299. package/dist/{zh-HANT-NZFdeKuE.js → zh-HANT-8p8SH8C3.js} +165 -869
  300. package/dist/{zh-TW-8wkrOHM8.js → zh-TW-CCsz9gKq.js} +165 -869
  301. package/package.json +35 -10
  302. package/dist/browser-ponyfill-DT11p-Ob.js +0 -441
  303. package/dist/cameraOverlay-CBTjtbNP.js +0 -2
  304. package/dist/connectionError-DX3wd4vm.js +0 -45
  305. package/dist/dateInputComposed-BzW0cv1o.js +0 -1
  306. package/dist/deviceWallet-CImevqFB.js +0 -66
  307. package/dist/documentCapture-CmWd-wNL.js +0 -2
  308. package/dist/dropdownComposed-B76j7pz9.js +0 -1
  309. package/dist/ekybModule-Bshc_ANM.js +0 -2
  310. package/dist/ekycModule-MmJYwp1l.js +0 -2
  311. package/dist/es-419-DlCbbvcc.js +0 -3145
  312. package/dist/esm-15CISqPe.js +0 -430
  313. package/dist/faceMatch-BVSCpwmA.js +0 -2
  314. package/dist/fieldComparison-nFj9pSeZ.js +0 -2
  315. package/dist/flipAnimation-DY9K2zel.js +0 -3048
  316. package/dist/incodeModule-D6oey1Mb.js +0 -68
  317. package/dist/inputComposed-45HxIMO0.js +0 -1
  318. package/dist/pdfViewer-CFkuHOV4.js +0 -2
  319. package/dist/radioGroupComposed-DJ71F9KK.js +0 -1
  320. package/dist/richText-aCnLd3j2.js +0 -1549
  321. package/dist/spacer-BvrtrwSF.js +0 -741
  322. package/dist/spinner-CkN8sW0d.js +0 -88
  323. package/dist/sr-YU-UEhyvXZ-.js +0 -3149
  324. package/dist/statusPage-3zRxvkSE.js +0 -36
  325. package/dist/uiConfig-BA7U_zLr.js +0 -2589
  326. package/dist/useCaptureHelpButton-CSG3fO48.js +0 -86
  327. package/dist/useCoverMedia-VLw3OYN_.js +0 -149
  328. /package/dist/{aligndevicelottie-BARt-rhe.js → aligndevicelottie-BEKzL4SB.js} +0 -0
  329. /package/dist/{back-tutorial-CZrMmj1_.js → back-tutorial-B9W63fa-.js} +0 -0
  330. /package/dist/{backdevicelottie-CIM3ekd8.js → backdevicelottie-DsN8QBV3.js} +0 -0
  331. /package/dist/{blurdevicelottie-BRyXfLB6.js → blurdevicelottie-DkV7Kwo4.js} +0 -0
  332. /package/dist/{countryDefinitions-BO9OSKQO.js → countryDefinitions-RBVGM1D_.js} +0 -0
  333. /package/dist/{defineProperty-CjeJoXkx.js → defineProperty-E9wRIIo9.js} +0 -0
  334. /package/dist/{flip-animation-BU5LNKYx.js → flip-animation-DJVnWWL5.js} +0 -0
  335. /package/dist/{frontdevicelottie-arpyu_Fz.js → frontdevicelottie-DiW1Wmya.js} +0 -0
  336. /package/dist/{glaredevicelottie-TwTFxe7h.js → glaredevicelottie-CK-fnX_s.js} +0 -0
  337. /package/dist/{id-laser-h-Dr-hBxrq.js → id-laser-h-6Am_cjM8.js} +0 -0
  338. /package/dist/{id-laser-v-D_r0QNY8.js → id-laser-v-DXoF3flH.js} +0 -0
  339. /package/dist/{id-tutorial-DM9Pkfs-.js → id-tutorial-DkKH3eTE.js} +0 -0
  340. /package/dist/{lottie_light-aMg9Q9iO.js → lottie_light-B819EhaL.js} +0 -0
  341. /package/dist/{passport-tutorial-CKZZuDf_.js → passport-tutorial-D3Fpk-Tj.js} +0 -0
  342. /package/dist/{pdf.worker.min-BM1b2w9V.js → pdf.worker.min-DzBNMoKS.js} +0 -0
  343. /package/dist/{policyUrls-B3M8nLRh.js → policyUrls-Benduf-R.js} +0 -0
  344. /package/dist/{purify.es-0fCPkEV1.js → purify.es-CSPoFViI.js} +0 -0
  345. /package/dist/{selfieTutorial-Dz6lDFMn.js → selfieTutorial-DnsRD1Z9.js} +0 -0
@@ -1,741 +0,0 @@
1
- import { r as __toESM } from "./rolldown-runtime--E5BIlTp.js";
2
- import { o as useTranslation, r as useUiConfig } from "./uiConfig-BA7U_zLr.js";
3
- import { _ as y, b as Q, c as A, d as _, f as d, g as x, h as q, u as T, v as u } from "./vendor-preact-C0jX1Cbq.js";
4
- //#region src/styles/cn.tsx
5
- var cn = (...classes) => {
6
- const result = [];
7
- for (const cls of classes) {
8
- if (!cls) continue;
9
- if (typeof cls === "string") result.push(cls);
10
- else if (typeof cls === "object") {
11
- for (const [key, value] of Object.entries(cls)) if (value) result.push(key);
12
- }
13
- }
14
- return result.join(" ");
15
- };
16
- //#endregion
17
- //#region src/shared/assets/instanceOverrides.ts
18
- var InstanceOverridesContext = Q({});
19
- var InstanceOverridesProvider = InstanceOverridesContext.Provider;
20
- function useInstanceOverrides() {
21
- return x(InstanceOverridesContext);
22
- }
23
- //#endregion
24
- //#region src/shared/assets/assetRegistry.ts
25
- var defaultExport = (module) => module.default;
26
- var decorative = { ariaHidden: true };
27
- var assetRegistry = {
28
- "faceMatch.success": { a11y: decorative },
29
- "faceMatch.fail": { a11y: decorative },
30
- "documentCapture.tutorial": { a11y: decorative },
31
- "id.uploadScreen": { a11y: decorative },
32
- "id.ageVerification.dob": { a11y: decorative },
33
- "id.ageVerification.scan": { a11y: decorative },
34
- "id.ageVerification.privacy": { a11y: decorative },
35
- "videoSelfie.success": { a11y: decorative },
36
- "videoSelfie.fail": { a11y: decorative },
37
- "videoSelfie.tutorial.permission": { a11y: decorative },
38
- "videoSelfie.tutorial.selfie": { a11y: decorative },
39
- "videoSelfie.tutorial.frontId": { a11y: decorative },
40
- "videoSelfie.tutorial.backId": { a11y: decorative },
41
- "videoSelfie.tutorial.poa": { a11y: decorative },
42
- "videoSelfie.tutorial.questions": { a11y: decorative },
43
- "videoSelfie.tutorial.speech": { a11y: decorative },
44
- "loader.spinner": { a11y: decorative }
45
- };
46
- var animationRegistry = {
47
- "id.tutorial.front": {
48
- default: () => import("./id-tutorial-DM9Pkfs-.js").then(defaultExport),
49
- a11y: decorative
50
- },
51
- "id.tutorial.back": {
52
- default: () => import("./back-tutorial-CZrMmj1_.js").then(defaultExport),
53
- a11y: decorative
54
- },
55
- "id.tutorial.passport": {
56
- default: () => import("./passport-tutorial-CKZZuDf_.js").then(defaultExport),
57
- a11y: decorative
58
- },
59
- "id.flip": {
60
- default: () => import("./flip-animation-BU5LNKYx.js").then(defaultExport),
61
- a11y: decorative
62
- },
63
- "id.processing": {
64
- default: {
65
- horizontal: () => import("./id-laser-h-Dr-hBxrq.js").then(defaultExport),
66
- vertical: () => import("./id-laser-v-D_r0QNY8.js").then(defaultExport)
67
- },
68
- a11y: decorative
69
- },
70
- "selfie.tutorial": {
71
- default: () => import("./selfieTutorial-Dz6lDFMn.js").then(defaultExport),
72
- a11y: decorative
73
- },
74
- "loader.spinner": {
75
- default: null,
76
- a11y: decorative
77
- }
78
- };
79
- //#endregion
80
- //#region src/shared/assets/devWarn.ts
81
- /**
82
- * Emits a namespaced `console.warn` in development only. Override load
83
- * failures and bad catalog keys are non-fatal (we always fall back to a
84
- * built-in default), so they must never surface in production consoles.
85
- */
86
- function devWarn(message, error) {}
87
- //#endregion
88
- //#region src/shared/assets/resolveAsset.ts
89
- /**
90
- * Whether a resolved value represents an active override, as opposed to no
91
- * override at all (`type === 'default'`).
92
- */
93
- function isActiveOverride(resolved) {
94
- return resolved !== null && resolved.type !== "default";
95
- }
96
- function warnUnknownKey(key) {
97
- `${key}`;
98
- }
99
- function isValidUrl(url) {
100
- const SCHEME_PREFIX = /^[a-zA-Z][a-zA-Z0-9+.-]*:/;
101
- if (url === "" || /\s/.test(url)) return false;
102
- if (!SCHEME_PREFIX.test(url)) return true;
103
- try {
104
- new URL(url);
105
- return true;
106
- } catch {
107
- return false;
108
- }
109
- }
110
- function normalizeAssetOverride(override) {
111
- if (override === void 0) return null;
112
- if (typeof override === "string") {
113
- const value = override.trim();
114
- if (value === "") return null;
115
- if (value.startsWith("<")) return {
116
- type: "override-raw",
117
- raw: value
118
- };
119
- if (!isValidUrl(value)) return null;
120
- return {
121
- type: "override-url",
122
- url: value
123
- };
124
- }
125
- if ("svg" in override) return {
126
- type: "override-component",
127
- component: override.svg
128
- };
129
- if ("raw" in override) {
130
- const raw = override.raw.trim();
131
- return raw === "" ? null : {
132
- type: "override-raw",
133
- raw
134
- };
135
- }
136
- if ("url" in override) {
137
- const url = override.url.trim();
138
- if (url === "") return null;
139
- if (!isValidUrl(url)) return null;
140
- return {
141
- type: "override-url",
142
- url
143
- };
144
- }
145
- return null;
146
- }
147
- function normalizeAnimationOverride(override) {
148
- if (override === void 0) return null;
149
- if ("url" in override) {
150
- const url = override.url.trim();
151
- if (url === "") return null;
152
- if (!isValidUrl(url)) return null;
153
- return {
154
- type: "override-url",
155
- url
156
- };
157
- }
158
- if ("animationData" in override) return {
159
- type: "override-data",
160
- animationData: override.animationData
161
- };
162
- return {
163
- type: "override-data",
164
- animationData: override
165
- };
166
- }
167
- function resolveAsset(key, scopes = {}) {
168
- scopes.instance;
169
- scopes.global;
170
- const entry = assetRegistry[key];
171
- if (entry === void 0) {
172
- warnUnknownKey(key);
173
- return null;
174
- }
175
- const override = normalizeAssetOverride(scopes.instance?.[key]) ?? normalizeAssetOverride(scopes.global?.[key]);
176
- if (override !== null) return {
177
- ...override,
178
- a11y: entry.a11y
179
- };
180
- return {
181
- type: "default",
182
- a11y: entry.a11y
183
- };
184
- }
185
- function resolveAnimation(key, scopes = {}) {
186
- scopes.instance;
187
- scopes.global;
188
- const entry = animationRegistry[key];
189
- if (entry === void 0) {
190
- warnUnknownKey(key);
191
- return null;
192
- }
193
- const override = normalizeAnimationOverride(scopes.instance?.[key]) ?? normalizeAnimationOverride(scopes.global?.[key]);
194
- if (override !== null) return {
195
- ...override,
196
- a11y: entry.a11y
197
- };
198
- return {
199
- type: "default",
200
- default: entry.default,
201
- a11y: entry.a11y
202
- };
203
- }
204
- //#endregion
205
- //#region src/shared/assets/useAsset.ts
206
- function useAsset(key) {
207
- const instance = useInstanceOverrides();
208
- const uiConfig = useUiConfig();
209
- return T(() => {
210
- return resolveAsset(key, {
211
- instance: instance.assets,
212
- global: uiConfig.assets
213
- });
214
- }, [
215
- key,
216
- instance.assets,
217
- uiConfig.assets
218
- ]);
219
- }
220
- function useAnimation(key) {
221
- const instance = useInstanceOverrides();
222
- const uiConfig = useUiConfig();
223
- return T(() => {
224
- return resolveAnimation(key, {
225
- instance: instance.animations,
226
- global: uiConfig.animations
227
- });
228
- }, [
229
- key,
230
- instance.animations,
231
- uiConfig.animations
232
- ]);
233
- }
234
- //#endregion
235
- //#region src/shared/assets/asset.tsx
236
- function altText(a11y, t) {
237
- return "altKey" in a11y ? t(a11y.altKey) : "";
238
- }
239
- function svgA11y(a11y, t) {
240
- return "altKey" in a11y ? {
241
- role: "img",
242
- "aria-label": t(a11y.altKey)
243
- } : { "aria-hidden": "true" };
244
- }
245
- /**
246
- * Normalizes the call-site `default` into a renderable shape. Trusted (it is a
247
- * bundled SDK asset), so raw markup is not sanitized — unlike a customer raw
248
- * override.
249
- */
250
- function defaultToRenderable(value) {
251
- if (value === void 0) return null;
252
- if (typeof value === "function") return {
253
- kind: "component",
254
- value
255
- };
256
- return value.trim().startsWith("<") ? {
257
- kind: "raw",
258
- value
259
- } : {
260
- kind: "url",
261
- value
262
- };
263
- }
264
- /**
265
- * Sanitizes a raw override with DOMPurify, loaded on first use. Only raw SVG
266
- * overrides need it, and `Asset` renders in every module (the loader
267
- * spinner), so a static import would ship it everywhere. Returns `null` while
268
- * it loads. A failed load counts as markup that sanitizes to nothing, so the
269
- * caller falls back to the built-in default.
270
- */
271
- function useSanitizedSvg(raw) {
272
- const [result, setResult] = d(null);
273
- y(() => {
274
- if (raw === null) return;
275
- let active = true;
276
- import("./sanitizeSvg-BC-qLUgS.js").then(({ sanitizeSvg }) => sanitizeSvg(raw)).catch(() => ({
277
- markup: "",
278
- strippedHref: false
279
- })).then((svg) => {
280
- if (active) setResult({
281
- raw,
282
- svg
283
- });
284
- });
285
- return () => {
286
- active = false;
287
- };
288
- }, [raw]);
289
- return result?.raw === raw ? result.svg : null;
290
- }
291
- function useAssetContent(key, defaultAsset, onFallback) {
292
- const resolved = useAsset(key);
293
- const [failedUrl, setFailedUrl] = d(null);
294
- const rawOverride = resolved?.type === "override-raw" ? resolved.raw : null;
295
- const sanitizedRaw = useSanitizedSvg(rawOverride);
296
- const urlFailed = resolved?.type === "override-url" && resolved.url === failedUrl;
297
- const rawStripped = sanitizedRaw !== null && (sanitizedRaw.strippedHref || sanitizedRaw.markup.trim() === "");
298
- y(() => {
299
- if (urlFailed || rawStripped) onFallback?.();
300
- }, [
301
- urlFailed,
302
- rawStripped,
303
- onFallback
304
- ]);
305
- if (resolved === null || rawOverride !== null && sanitizedRaw === null) return null;
306
- const useDefault = resolved.type === "default" || urlFailed || rawStripped;
307
- const { a11y } = resolved;
308
- if (!useDefault) switch (resolved.type) {
309
- case "override-component": return {
310
- content: {
311
- kind: "component",
312
- value: resolved.component
313
- },
314
- a11y
315
- };
316
- case "override-url": return {
317
- content: {
318
- kind: "url",
319
- value: resolved.url,
320
- onError: () => setFailedUrl(resolved.url)
321
- },
322
- a11y
323
- };
324
- case "override-raw": return {
325
- content: {
326
- kind: "raw",
327
- value: sanitizedRaw?.markup ?? ""
328
- },
329
- a11y
330
- };
331
- }
332
- const content = defaultToRenderable(defaultAsset);
333
- return content ? {
334
- content,
335
- a11y
336
- } : null;
337
- }
338
- function renderAsset(content, a11y, t, className) {
339
- switch (content.kind) {
340
- case "component": {
341
- const Svg = content.value;
342
- return /* @__PURE__ */ u(Svg, {
343
- class: className,
344
- ...svgA11y(a11y, t)
345
- });
346
- }
347
- case "url": return /* @__PURE__ */ u("img", {
348
- src: content.value,
349
- alt: altText(a11y, t),
350
- "aria-hidden": "altKey" in a11y ? void 0 : "true",
351
- class: className,
352
- onError: content.onError
353
- });
354
- case "raw": return /* @__PURE__ */ u("span", {
355
- class: cn("IncodeAssetRaw", className),
356
- ...svgA11y(a11y, t),
357
- dangerouslySetInnerHTML: { __html: content.value }
358
- });
359
- default: return content;
360
- }
361
- }
362
- /**
363
- * Renders a branded illustration by catalog key, honoring the resolved
364
- * precedence (per-instance → global → built-in default). The built-in default
365
- * is supplied by the call site via `default` (imported on-site).
366
- */
367
- function Asset({ name, class: className, default: defaultAsset, onFallback }) {
368
- const { t } = useTranslation();
369
- const result = useAssetContent(name, defaultAsset, onFallback);
370
- if (result === null) return null;
371
- return renderAsset(result.content, result.a11y, t, className);
372
- }
373
- //#endregion
374
- //#region src/shared/lottie/lottie.tsx
375
- var lottiePromise = null;
376
- async function loadLottie() {
377
- if (lottiePromise) return lottiePromise;
378
- lottiePromise = import("./lottie_light-aMg9Q9iO.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).then((mod) => mod.default);
379
- return lottiePromise;
380
- }
381
- var AUTO_STOP_AFTER_MS = 5e3;
382
- function Lottie({ animationData, loop = true, autoplay = true, reverse = false, style, className, onComplete, autoStop = false, stopFramePosition }) {
383
- const containerRef = A(null);
384
- const effectiveAutoplay = reverse ? false : autoplay;
385
- const animationOptionsRef = A({
386
- container: containerRef.current,
387
- renderer: "svg",
388
- loop,
389
- autoplay: effectiveAutoplay,
390
- animationData
391
- });
392
- y(() => {
393
- animationOptionsRef.current = {
394
- container: containerRef.current,
395
- renderer: "svg",
396
- loop,
397
- autoplay: effectiveAutoplay,
398
- animationData
399
- };
400
- }, [
401
- animationData,
402
- loop,
403
- effectiveAutoplay
404
- ]);
405
- y(() => {
406
- if (!containerRef.current) return;
407
- let anim;
408
- let stopTimer;
409
- let isMounted = true;
410
- loadLottie().then((lottie) => {
411
- if (!isMounted) return;
412
- anim = lottie.loadAnimation(animationOptionsRef.current);
413
- if (reverse) {
414
- anim.setDirection(-1);
415
- anim.goToAndPlay(anim.totalFrames - 1, true);
416
- }
417
- if (onComplete) anim.addEventListener("complete", onComplete);
418
- if (autoStop) stopTimer = window.setTimeout(() => {
419
- const current = anim;
420
- if (!current) return;
421
- if (!stopFramePosition) {
422
- current.pause();
423
- return;
424
- }
425
- const totalFrames = current.totalFrames;
426
- if (!totalFrames || totalFrames <= 0) {
427
- current.stop();
428
- return;
429
- }
430
- const targetFrame = stopFramePosition === "last" ? Math.max(totalFrames - 1, 0) : stopFramePosition === "first" ? 0 : Math.floor((totalFrames - 1) / 2);
431
- current.goToAndStop(targetFrame, true);
432
- }, AUTO_STOP_AFTER_MS);
433
- });
434
- return () => {
435
- isMounted = false;
436
- if (stopTimer !== void 0) window.clearTimeout(stopTimer);
437
- if (anim) {
438
- if (onComplete) anim.removeEventListener("complete", onComplete);
439
- anim.destroy();
440
- }
441
- };
442
- }, [
443
- onComplete,
444
- reverse,
445
- autoStop,
446
- stopFramePosition
447
- ]);
448
- return /* @__PURE__ */ u("div", {
449
- ref: containerRef,
450
- style,
451
- className,
452
- "aria-hidden": "true"
453
- });
454
- }
455
- //#endregion
456
- //#region src/shared/assets/animatedAsset.tsx
457
- var overrideUrlCache = /* @__PURE__ */ new Map();
458
- function fetchAnimation(url) {
459
- const cached = overrideUrlCache.get(url);
460
- if (cached) return cached;
461
- const pending = fetch(url).then((response) => {
462
- if (!response.ok) throw new Error(`Request for "${url}" failed with status ${response.status}.`);
463
- return response.json();
464
- });
465
- overrideUrlCache.set(url, pending);
466
- pending.catch(() => overrideUrlCache.delete(url));
467
- return pending;
468
- }
469
- function loadAnimationDefault(def, orientation) {
470
- if (def === null) return Promise.resolve(null);
471
- if (typeof def === "function") return def();
472
- return def[orientation]();
473
- }
474
- var defaultCache = /* @__PURE__ */ new Map();
475
- function defaultCacheKey(name, orientation) {
476
- return `${name}|${orientation}`;
477
- }
478
- function loadDefaultCached(name, orientation) {
479
- const cacheKey = defaultCacheKey(name, orientation);
480
- if (defaultCache.has(cacheKey)) return Promise.resolve(defaultCache.get(cacheKey) ?? null);
481
- return loadAnimationDefault(animationRegistry[name]?.default ?? null, orientation).then((value) => {
482
- defaultCache.set(cacheKey, value);
483
- return value;
484
- });
485
- }
486
- /**
487
- * Warms the built-in animation cache for the given catalog keys so a later
488
- * render is synchronous (no flash). Best-effort; call it before the screen
489
- * mounts.
490
- */
491
- function preloadAnimations(keys, orientation = "vertical") {
492
- for (const key of keys) loadDefaultCached(key, orientation).catch(() => {});
493
- }
494
- /**
495
- * Resolves the winning animation to parsed `animationData` plus whether it came
496
- * from a customer override. Reads the default cache synchronously on first
497
- * render, so a preloaded animation shows with no flash. A failed override URL
498
- * silently falls back to the built-in default.
499
- *
500
- * Shared by `AnimatedAsset` and by tutorial surfaces that render Lottie
501
- * themselves (e.g. `BaseTutorial`, which recolors only built-in defaults).
502
- *
503
- * `onFallback`, if given, fires only when a *configured* override actually
504
- * fails to load (never when there was simply no override to begin with) —
505
- * for a caller whose true fallback lives outside this system entirely, so it
506
- * can react to a real failure instead of committing to render this component before
507
- * knowing whether the override will actually work.
508
- */
509
- function useAnimationData(name, orientation = "vertical", onFallback) {
510
- const resolved = useAnimation(name);
511
- const type = resolved?.type;
512
- const isOverride = isActiveOverride(resolved);
513
- const overrideUrl = resolved?.type === "override-url" ? resolved.url : void 0;
514
- const overrideData = resolved?.type === "override-data" ? resolved.animationData : void 0;
515
- const [data, setData] = d(() => {
516
- if (type === "override-data") return overrideData ?? null;
517
- if (type === "default") return defaultCache.get(defaultCacheKey(name, orientation)) ?? null;
518
- return null;
519
- });
520
- const [overrideFailed, setOverrideFailed] = d(false);
521
- y(() => {
522
- let active = true;
523
- setOverrideFailed(false);
524
- if (type === void 0) setData(null);
525
- else if (type === "override-data") setData(overrideData ?? null);
526
- else if (type === "override-url" && overrideUrl !== void 0) fetchAnimation(overrideUrl).then((value) => {
527
- if (active) setData(value);
528
- }, (error) => {
529
- `${name}`;
530
- if (active) {
531
- setOverrideFailed(true);
532
- loadDefaultCached(name, orientation).then((value) => {
533
- if (active) setData(value);
534
- }, () => {});
535
- }
536
- });
537
- else loadDefaultCached(name, orientation).then((value) => {
538
- if (active) setData(value);
539
- }, (error) => {
540
- if (active) {
541
- setData(null);
542
- `${name}`;
543
- }
544
- });
545
- return () => {
546
- active = false;
547
- };
548
- }, [
549
- name,
550
- orientation,
551
- type,
552
- overrideUrl,
553
- overrideData
554
- ]);
555
- y(() => {
556
- if (overrideFailed) onFallback?.();
557
- }, [overrideFailed, onFallback]);
558
- return {
559
- data,
560
- isOverride
561
- };
562
- }
563
- /**
564
- * Renders a Lottie animation by catalog key, honoring the resolved precedence
565
- * (per-instance → global → built-in default). Renders nothing while pending or
566
- * when there is no Lottie to show; the container is `aria-hidden` (all catalog
567
- * animations are decorative).
568
- */
569
- function AnimatedAsset({ name, autoStop, stopFramePosition, orientation = "vertical", loop, reverse, onComplete, class: className, onFallback }) {
570
- const { data } = useAnimationData(name, orientation, onFallback);
571
- if (data === null) return null;
572
- return /* @__PURE__ */ u(Lottie, {
573
- animationData: data,
574
- autoStop,
575
- stopFramePosition,
576
- loop,
577
- reverse,
578
- onComplete,
579
- className
580
- });
581
- }
582
- //#endregion
583
- //#region src/shared/loader/loadingIcon.tsx
584
- /**
585
- * Duration of the CSS spin animation on `.IncodeLoadingIcon`.
586
- * Must stay in sync with the `animation-duration` declared in the stylesheet.
587
- */
588
- var SPIN_DURATION_MS = 1e3;
589
- var SpinnerPrimary = ({ size, className }) => {
590
- return /* @__PURE__ */ u("svg", {
591
- width: size,
592
- height: size,
593
- viewBox: "0 0 31 31",
594
- fill: "none",
595
- xmlns: "http://www.w3.org/2000/svg",
596
- class: cn("IncodeLoadingIconPrimaryIcon", className),
597
- "aria-hidden": "true",
598
- children: /* @__PURE__ */ u("path", { d: "M28.161 15.284c1.292 0 2.358-1.054 2.157-2.33A15 15 0 0 0 17.83.466c-1.276-.2-2.329.865-2.329 2.156s1.06 2.313 2.319 2.603a10.32 10.32 0 0 1 7.74 7.74c.29 1.259 1.31 2.319 2.602 2.319Z" })
599
- });
600
- };
601
- var SpinnerSecondary = ({ size, className }) => {
602
- return /* @__PURE__ */ u("svg", {
603
- width: size,
604
- height: size,
605
- viewBox: "0 0 31 31",
606
- fill: "none",
607
- xmlns: "http://www.w3.org/2000/svg",
608
- class: cn("IncodeLoadingIconSecondaryIcon", className),
609
- "aria-hidden": "true",
610
- children: [/* @__PURE__ */ u("title", { children: "Spinner Outer part" }), /* @__PURE__ */ u("path", { d: "M30.5 15.284c0 8.284-6.716 15-15 15s-15-6.716-15-15c0-8.285 6.716-15 15-15s15 6.715 15 15Zm-25.323 0c0 5.7 4.622 10.322 10.323 10.322s10.323-4.621 10.323-10.322S21.2 4.96 15.5 4.96 5.177 9.583 5.177 15.284Z" })]
611
- });
612
- };
613
- var LoadingIcon = ({ size = 30, secondaryClass, primaryClass }) => {
614
- const ref = A(null);
615
- const overrideRef = A(null);
616
- const animation = useAnimation("loader.spinner");
617
- const svg = useAsset("loader.spinner");
618
- const hasAnimationOverride = isActiveOverride(animation);
619
- const hasSvgOverride = isActiveOverride(svg);
620
- const [overrideFailed, setOverrideFailed] = d(false);
621
- const handleFallback = q(() => setOverrideFailed(true), []);
622
- const hasOverride = (hasAnimationOverride || hasSvgOverride) && !overrideFailed;
623
- /**
624
- * Cross-module loaders (e.g. ID processing → selfie initialising) unmount
625
- * and remount this component as the user moves between flow steps. By
626
- * default each remount restarts the CSS spin animation from frame 0, which
627
- * reads as a visible "stutter" or reset of the spinner during otherwise
628
- * seamless transitions.
629
- *
630
- * To keep the rotation continuous across remounts we anchor the animation
631
- * to a wall-clock offset: `performance.now() % SPIN_DURATION_MS` tells us
632
- * how far into the current spin cycle we are, and applying it as a
633
- * negative `animation-delay` makes the new instance pick up exactly where
634
- * the previous one left off. (Built-in default only.)
635
- */
636
- _(() => {
637
- if (hasOverride || !ref.current) return;
638
- const offsetMs = performance.now() % SPIN_DURATION_MS;
639
- ref.current.style.animationDelay = `-${offsetMs}ms`;
640
- }, [hasOverride]);
641
- _(() => {
642
- if (!overrideRef.current) return;
643
- overrideRef.current.style.width = `${size}px`;
644
- overrideRef.current.style.height = `${size}px`;
645
- }, [size, hasOverride]);
646
- if (hasOverride) return /* @__PURE__ */ u("div", {
647
- ref: overrideRef,
648
- class: "IncodeLoadingIconOverride",
649
- children: hasAnimationOverride ? /* @__PURE__ */ u(AnimatedAsset, {
650
- name: "loader.spinner",
651
- loop: true,
652
- onFallback: handleFallback
653
- }) : /* @__PURE__ */ u(Asset, {
654
- name: "loader.spinner",
655
- onFallback: handleFallback
656
- })
657
- });
658
- return /* @__PURE__ */ u("div", {
659
- ref,
660
- class: "IncodeLoadingIcon",
661
- children: [/* @__PURE__ */ u(SpinnerSecondary, {
662
- size,
663
- className: secondaryClass
664
- }), /* @__PURE__ */ u("div", {
665
- class: "IncodeLoadingIconPrimary",
666
- children: /* @__PURE__ */ u(SpinnerPrimary, {
667
- size,
668
- className: primaryClass
669
- })
670
- })]
671
- });
672
- };
673
- //#endregion
674
- //#region src/shared/spacer/spacer.tsx
675
- var scaleTokens = new Set([
676
- 0,
677
- 2,
678
- 4,
679
- 8,
680
- 12,
681
- 16,
682
- 20,
683
- 24,
684
- 32,
685
- 40,
686
- 48,
687
- 64,
688
- 80,
689
- 96,
690
- 104,
691
- 120,
692
- 200
693
- ]);
694
- var scaleToClassName = (size, direction) => {
695
- if (direction === "horizontal") return {
696
- 0: "IncodeSpacerHorizontal0",
697
- 2: "IncodeSpacerHorizontal2",
698
- 4: "IncodeSpacerHorizontal4",
699
- 8: "IncodeSpacerHorizontal8",
700
- 12: "IncodeSpacerHorizontal12",
701
- 16: "IncodeSpacerHorizontal16",
702
- 20: "IncodeSpacerHorizontal20",
703
- 24: "IncodeSpacerHorizontal24",
704
- 32: "IncodeSpacerHorizontal32",
705
- 40: "IncodeSpacerHorizontal40",
706
- 48: "IncodeSpacerHorizontal48",
707
- 64: "IncodeSpacerHorizontal64",
708
- 80: "IncodeSpacerHorizontal80",
709
- 96: "IncodeSpacerHorizontal96",
710
- 104: "IncodeSpacerHorizontal104",
711
- 120: "IncodeSpacerHorizontal120",
712
- 200: "IncodeSpacerHorizontal200"
713
- }[size];
714
- return {
715
- 0: "IncodeSpacerVertical0",
716
- 2: "IncodeSpacerVertical2",
717
- 4: "IncodeSpacerVertical4",
718
- 8: "IncodeSpacerVertical8",
719
- 12: "IncodeSpacerVertical12",
720
- 16: "IncodeSpacerVertical16",
721
- 20: "IncodeSpacerVertical20",
722
- 24: "IncodeSpacerVertical24",
723
- 32: "IncodeSpacerVertical32",
724
- 40: "IncodeSpacerVertical40",
725
- 48: "IncodeSpacerVertical48",
726
- 64: "IncodeSpacerVertical64",
727
- 80: "IncodeSpacerVertical80",
728
- 96: "IncodeSpacerVertical96",
729
- 104: "IncodeSpacerVertical104",
730
- 120: "IncodeSpacerVertical120",
731
- 200: "IncodeSpacerVertical200"
732
- }[size];
733
- };
734
- var Spacer = ({ size, className, direction = "vertical" }) => {
735
- if (size === void 0) return /* @__PURE__ */ u("div", { class: `IncodeSpacerFlex ${className || ""}` });
736
- if (!(direction === "horizontal" ? "w" : direction === "vertical" ? "h" : void 0)) return /* @__PURE__ */ u("div", { class: `${className || ""}` });
737
- if (typeof size === "number" && scaleTokens.has(size)) return /* @__PURE__ */ u("div", { class: `${scaleToClassName(size, direction)} ${className || ""}` });
738
- return /* @__PURE__ */ u("div", { class: `${className || ""}` });
739
- };
740
- //#endregion
741
- export { useAnimationData as a, devWarn as c, cn as d, preloadAnimations as i, InstanceOverridesProvider as l, LoadingIcon as n, Lottie as o, AnimatedAsset as r, Asset as s, Spacer as t, useInstanceOverrides as u };