@incodetech/web 2.4.1-agentic → 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 (299) hide show
  1. package/THIRD_PARTY_NOTICES.txt +1 -4
  2. package/dist/{GeolocationPermissionDenied-CUt-uebQ.js → GeolocationPermissionDenied-ClGp0a23.js} +13 -8
  3. package/dist/ae-signature/ae-signature.es.js +4 -4
  4. package/dist/{af-ZA-BWKMRc6V.js → af-ZA-BKpmmWDe.js} +75 -865
  5. package/dist/{ageVerification-CMIp0I--.js → ageVerification-CtuJDuRV.js} +11 -8
  6. package/dist/{am-DPyjIvQV.js → am-CW_ro5Ws.js} +75 -865
  7. package/dist/antifraud/antifraud.es.js +5 -4
  8. package/dist/{applyStudioConfig-DxtP9221.js → applyStudioConfig-C6-Ak0q6.js} +5 -4
  9. package/dist/{ar-AE-CxCvbyoW.js → ar-AE-D9h8UMbm.js} +75 -865
  10. package/dist/{ar-10SoqF1i.js → ar-B5ToweVl.js} +75 -865
  11. package/dist/{ar-EG-B1hHB55j.js → ar-EG-DQqE9B26.js} +75 -865
  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-BxsSeMSB.js → autoFocusTitle-CzaCWWW5.js} +2 -2
  16. package/dist/{az-cmuBNn_5.js → az-DAZq-CQj.js} +75 -865
  17. package/dist/{back-horizontal-hint-Dl2C4J4u.js → back-horizontal-hint-qzSaNkEU.js} +1 -1
  18. package/dist/{back-vertical-hint-CM4_HjWk.js → back-vertical-hint-DkYLOege.js} +1 -1
  19. package/dist/base.css +1 -1
  20. package/dist/{baseTutorial-BGU2Gcly.js → baseTutorial-CF6WiVYt.js} +10 -7
  21. package/dist/{bn-CuGYlngZ.js → bn-DRTyq2Y9.js} +75 -865
  22. package/dist/{bottomSheet-x20yd6eP.js → bottomSheet-DylE2INk.js} +3 -3
  23. package/dist/{bs-vwpJzaHm.js → bs-B8q0B86-.js} +75 -865
  24. package/dist/{ca-DXZs5vtr.js → ca-DvsHXRB-.js} +75 -865
  25. package/dist/cameraOverlay-DNf0PEF4.js +2 -0
  26. package/dist/{cameraOverlayHeader-BxutAKy-.js → cameraOverlayHeader-CuVGnyXI.js} +9 -8
  27. package/dist/{cameraView-DVzaEGW8.js → cameraView-D9ZxLKtA.js} +3 -3
  28. package/dist/capture-0jMDSGCE.js +762 -0
  29. package/dist/{tutorial-BKPHj5To.js → capture-BlGlXoTx.js} +13 -36
  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-CmhS_VOs.js → ceb-pvlomXHV.js} +75 -865
  36. package/dist/certificate-issuance/certificate-issuance.es.js +23 -13
  37. package/dist/{check-icon-BWTjhSuA.js → check-icon-BdHltEK6.js} +1 -1
  38. package/dist/{checkbox-BC26Qbxh.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 +16 -12
  42. package/dist/{countryFlag-DXSVHiby.js → countryFlag-CQMfCnE9.js} +1 -1
  43. package/dist/{countrySelector-0PDDFsZF.js → countrySelector-C0OEKMqL.js} +4 -4
  44. package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
  45. package/dist/{cs-CZ-Dg5O-Vom.js → cs-CZ-GgvnJLMj.js} +75 -865
  46. package/dist/{cs-CoJlE7De.js → cs-DB5PLEdt.js} +75 -865
  47. package/dist/curp-validation/curp-validation.es.js +34 -19
  48. package/dist/curp-validation/styles.css +1 -1
  49. package/dist/curp-validation/styles.css.js +1 -1
  50. package/dist/{customFields-COYGTuuK.js → customFields-DQgRumW0.js} +17 -11
  51. package/dist/{customWatchlist-B0wY6Rwb.js → customWatchlist-BbC0fA-6.js} +8 -6
  52. package/dist/{da-DK-C_JAndM-.js → da-DK-ZhpcfE_F.js} +75 -865
  53. package/dist/{dashboardTheme-COBidrbH.js → dashboardTheme-DtXsx9IK.js} +1 -1
  54. package/dist/{dateInputComposed-QkmLGLHg.js → dateInputComposed-1IcnucPq.js} +5 -5
  55. package/dist/dateInputComposed-BFlCk-sg.js +1 -0
  56. package/dist/{de-11hHLedu.js → de-DEBjzaow.js} +75 -865
  57. package/dist/{denied-Btt81vUD.js → denied-CwdVWAUw.js} +12 -9
  58. package/dist/devWarn-CW20j1Qd.js +9 -0
  59. package/dist/{deviceWallet-BeTpokSL.js → deviceWallet-CMjguFJO.js} +4 -4
  60. package/dist/{digitalIdRedirect-BnljwZV3.js → digitalIdRedirect-MNty16-5.js} +4 -4
  61. package/dist/{digitalIdUpload-DNhqqMHT.js → digitalIdUpload-CUzTaoaI.js} +39 -15
  62. package/dist/document-capture/document-capture.es.js +1 -1
  63. package/dist/document-capture/styles.css +1 -1
  64. package/dist/document-capture/styles.css.js +1 -1
  65. package/dist/{documentCapture-uAKPK1U-.js → documentCapture-BUMyJ8vw.js} +94 -32
  66. package/dist/documentCapture-rECLkwpi.js +2 -0
  67. package/dist/dropdownComposed-C9sLQE6i.js +1 -0
  68. package/dist/{dropdownComposed-D_RQd0Z9.js → dropdownComposed-x3ewHxbT.js} +4 -4
  69. package/dist/dynamic-forms/dynamic-forms.es.js +20 -15
  70. package/dist/ekyb/ekyb.es.js +1 -1
  71. package/dist/ekybModule-B5IEiSyi.js +2 -0
  72. package/dist/{ekybModule-Bsqag_MS.js → ekybModule-C5hEBLMs.js} +27 -23
  73. package/dist/ekyc/ekyc.es.js +1 -1
  74. package/dist/ekycModule-B7OFnP3H.js +2 -0
  75. package/dist/{ekycModule-WlhVn8AO.js → ekycModule-TVKk0qdS.js} +26 -20
  76. package/dist/{el-CRGmVrep.js → el-Dplr_D5N.js} +75 -865
  77. package/dist/{el-GR-CjtJiRTo.js → el-GR-IZ4reOR7.js} +75 -865
  78. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  79. package/dist/{electronic-signature-Cm2BEiQu.js → electronic-signature-BMda_cf3.js} +49 -34
  80. package/dist/email/email.es.js +15 -11
  81. package/dist/{emailInput-JmK2JIFS.js → emailInput-BI8gWC0D.js} +4 -4
  82. package/dist/{en-DG-Cruu6Woh.js → en-DG-C6tsWvHi.js} +75 -865
  83. package/dist/{en-CSjoG3e4.js → en-Db1L_u7B.js} +75 -865
  84. package/dist/{errorContent-zY4jb6uY.js → errorContent-pPAgyy2i.js} +10 -7
  85. package/dist/es-419-DxKrJq7W.js +5 -0
  86. package/dist/{es-C_LAY-Yu.js → es-C5unKsaF.js} +75 -865
  87. package/dist/{es-ES-D7O0P5Mg.js → es-ES-sHbsufzT.js} +75 -865
  88. package/dist/{es-MX-DVzFaANh.js → es-MX-Cd_DCR0A.js} +75 -865
  89. package/dist/{et-DdSwjU5d.js → et-BoGq2cx8.js} +76 -866
  90. package/dist/{expiredId-DpbWqSzB.js → expiredId-DWjw94rT.js} +12 -8
  91. package/dist/extensibility.es.js +85 -41
  92. package/dist/{fa-IR-CdK8XLkS.js → fa-IR-DuUxGXrf.js} +75 -865
  93. package/dist/face-match/face-match.es.js +1 -1
  94. package/dist/faceMatch-B2aMz3X2.js +2 -0
  95. package/dist/{faceMatch-B0IzR9_u.js → faceMatch-DV7NxYu_.js} +15 -10
  96. package/dist/{fi-FI-CYlEPu44.js → fi-FI-DMOBNTjA.js} +75 -865
  97. package/dist/field-comparison/field-comparison.es.js +1 -1
  98. package/dist/fieldComparison-BY2XXsp3.js +2 -0
  99. package/dist/{fieldComparison-OwGIeOM5.js → fieldComparison-CFLU1h6n.js} +15 -11
  100. package/dist/{fieldLabelHint-gdoE5nLQ.js → fieldLabelHint-CjrLxBaj.js} +3 -3
  101. package/dist/{finalSuccessScreen-BM9oeJDH.js → finalSuccessScreen-C50L96j9.js} +20 -16
  102. package/dist/fiscal-qr/fiscal-qr.es.js +24 -18
  103. package/dist/flipAnimation-8x-qdtF_.js +33 -0
  104. package/dist/flipCapturedCardEligibility-DLr9F2g2.js +210 -0
  105. package/dist/flow/flow.es.js +183 -167
  106. package/dist/flow/shell/styles.css +1 -1
  107. package/dist/flow/shell/styles.css.js +1 -1
  108. package/dist/flow/styles.css +1 -1
  109. package/dist/{formField-C3MNhFKI.js → formField-CfQKYeGF.js} +3 -3
  110. package/dist/{fr-CA-DD_s9NuV.js → fr-CA-DZ8jlsp3.js} +75 -865
  111. package/dist/{fr-C4cP8ZNE.js → fr-DSR-AP0e.js} +75 -865
  112. package/dist/{front-horizontal-hint-Dol0Lpc6.js → front-horizontal-hint-DOphQZg2.js} +1 -1
  113. package/dist/{front-vertical-hint-CAhAzw92.js → front-vertical-hint-S6PcS9_m.js} +1 -1
  114. package/dist/geolocation/geolocation.es.js +15 -10
  115. package/dist/government-validation/government-validation.es.js +7 -6
  116. package/dist/{he-D3fvMZAl.js → he-N5dfJeyd.js} +75 -865
  117. package/dist/{hi-DLf6_opn.js → hi-JR6K9zbd.js} +75 -865
  118. package/dist/{hmn-DzoODzbN.js → hmn-j2YA7FxW.js} +75 -865
  119. package/dist/{homeScreen-D1Xd93In.js → homeScreen-C3pPw52y.js} +17 -11
  120. package/dist/{incodeComponent-C1Bz5Qou.js → hooks-BFP0WaJM.js} +14 -308
  121. package/dist/{hr-C-jP0DrB.js → hr-8cOdwB0t.js} +75 -865
  122. package/dist/{ht-CVt9koJf.js → ht-DDNL4C__.js} +75 -865
  123. package/dist/{hu-9fSzIeAd.js → hu-CynQQUFQ.js} +75 -865
  124. package/dist/i18n-Dp014ljG.js +942 -0
  125. package/dist/{icons-BdiCuWFP.js → icons-c-hFaG4L.js} +129 -32
  126. package/dist/id/id.es.js +101 -197
  127. package/dist/id/styles.css +1 -1
  128. package/dist/id/styles.css.js +1 -1
  129. package/dist/{id-back-of-card-CHFxXTEq.js → id-back-of-card-Bk6ZQUE9.js} +1 -1
  130. package/dist/{id-back-of-card-vertical-CUBdKGbw.js → id-back-of-card-vertical-BZo00s50.js} +1 -1
  131. package/dist/{id-front-of-card-DplNJr13.js → id-front-of-card-BJ96se7u.js} +1 -1
  132. package/dist/{id-front-of-card-vertical-D1duHEsV.js → id-front-of-card-vertical-DSfJB0lX.js} +1 -1
  133. package/dist/{id-Dgi5uGHK.js → id-o_Yg0n8W.js} +75 -865
  134. package/dist/id-selfie-flow/id-selfie-flow.es.js +12 -11
  135. package/dist/id-selfie-flow/styles.css +1 -1
  136. package/dist/id-verification/id-verification.es.js +6 -5
  137. package/dist/idFlipTransition-DXdtXYza.js +158 -0
  138. package/dist/{idOcr-sknZwQNF.js → idOcr-CjqfkRJ7.js} +18 -14
  139. package/dist/identity-reuse/identity-reuse.es.js +28 -18
  140. package/dist/incodeComponent-DtKh-UUm.js +237 -0
  141. package/dist/{incodeModule-DJToJb00.js → incodeModule-DCHXAeYU.js} +5 -5
  142. package/dist/index.es.js +4 -3
  143. package/dist/{inputComposed-BuE0iZlw.js → inputComposed-CmVsaHOa.js} +4 -4
  144. package/dist/inputComposed-DvGrso7g.js +1 -0
  145. package/dist/{it-CEFstYFG.js → it-BXevrtHn.js} +75 -865
  146. package/dist/{ja-BNdVd9B6.js → ja-DiTXnTx-.js} +75 -865
  147. package/dist/{ja-JP-B5TPMV1q.js → ja-JP-D1IRWR-p.js} +75 -865
  148. package/dist/{jv-CMxkkXUk.js → jv-Us70GzGp.js} +75 -865
  149. package/dist/{ka-C70bUmEK.js → ka-BSsWQ4yU.js} +75 -865
  150. package/dist/{kk-C_55EmWt.js → kk-D5R6r4H7.js} +75 -865
  151. package/dist/{km-D4Ig0NhN.js → km-CCCb2Rnt.js} +79 -869
  152. package/dist/{ko-KP-BwBB8ahu.js → ko-KP-JF4khv1Y.js} +75 -865
  153. package/dist/{ko-DfUa3dzQ.js → ko-kQioCg2w.js} +75 -865
  154. package/dist/{ky-CnJichOm.js → ky-CLOemVjC.js} +75 -865
  155. package/dist/kyb-checks/kyb-checks.es.js +2 -0
  156. package/dist/kyb-checks/styles.css +2 -0
  157. package/dist/kyb-checks/styles.css.js +1 -0
  158. package/dist/kybChecksModule-C6Y9Hxpr.js +329 -0
  159. package/dist/kybChecksModule-r3MIpFhS.js +2 -0
  160. package/dist/{lo-ww1DXVAP.js → lo-tzHUt1CQ.js} +75 -865
  161. package/dist/{lt-IJ8qpluI.js → lt-B2ZI-Cgu.js} +76 -866
  162. package/dist/{lv-DMfsmqyK.js → lv-BJnxtSYw.js} +76 -866
  163. package/dist/{mandatoryConsent-Bp8sQoiu.js → mandatoryConsent-BiQuEZRu.js} +20 -14
  164. package/dist/{manualCaptureButton-Cd-FY05-.js → manualCaptureButton-BRSmPTeR.js} +8 -7
  165. package/dist/{manualCaptureButton-BXOTp2PS.js → manualCaptureButton-Dw0MMSkc.js} +17 -13
  166. package/dist/{mk-ByafmFak.js → mk-Cj7Iw2Q4.js} +75 -865
  167. package/dist/{mn-DjO9p3xN.js → mn-CA_rNxtz.js} +75 -865
  168. package/dist/{ms-3Vf1QpHl.js → ms-BydA1Zjz.js} +75 -865
  169. package/dist/{my-C5hpE5P1.js → my-gFKufKaG.js} +75 -865
  170. package/dist/{nb-NO-DGCWCOul.js → nb-NO-CDsGQbOZ.js} +75 -865
  171. package/dist/{ne-CpJxcVhV.js → ne-Cyfi0vFI.js} +75 -865
  172. package/dist/{nl-R2RykJHB.js → nl-e1gbmAFO.js} +75 -865
  173. package/dist/{numberedStep-CqgNwc_a.js → numberedStep-CeN77hnQ.js} +1 -1
  174. package/dist/{optionAccessibleLabel-BQl8HooZ.js → optionAccessibleLabel-BTUieMxH.js} +6 -6
  175. package/dist/{otpInput-B_iLvmIn.js → otpInput-D3L3QhnR.js} +24 -17
  176. package/dist/{page-utEpSa9Z.js → page-U6jZ7BBI.js} +69 -23
  177. package/dist/{pageUiConfig-rOL18JSI.js → pageUiConfig-Qf6ItVv9.js} +6 -14
  178. package/dist/{passport-horizontal-hint-BfTXA2LB.js → passport-horizontal-hint-Ddsh6fUS.js} +1 -1
  179. package/dist/{passport-vertical-hint-C7dzd2ks.js → passport-vertical-hint-Dukxq6-T.js} +1 -1
  180. package/dist/{passwordInputComposed-NtiseM85.js → passwordInputComposed-CW_1DcB8.js} +5 -5
  181. package/dist/{pdf-BnPw8ZaT.js → pdf-Bd5QplFS.js} +2 -17
  182. package/dist/{pdfViewer-DNMZsDFD.js → pdfViewer-BrqSEtbr.js} +11 -14
  183. package/dist/pdfViewer-rDnnHzmw.js +2 -0
  184. package/dist/{permissions-CCEc9lKM.js → permissions-KUDhffd9.js} +36 -23
  185. package/dist/phone/phone.es.js +16 -12
  186. package/dist/{phoneInputComposed-ByiK_6Hu.js → phoneInputComposed-DlJMTavK.js} +6 -6
  187. package/dist/{pl-B1LgnPj1.js → pl-BSMcCWS-.js} +75 -865
  188. package/dist/preloadableLazy-C8_OYaTC.js +37 -0
  189. package/dist/{processing-Ci_Kl-Rh.js → processing-B5EH7yNg.js} +2 -2
  190. package/dist/{progressBar-Caj-Vu1e.js → progressBar-CSpS29pV.js} +2 -2
  191. package/dist/{pt-CPVeH0hD.js → pt-BNFC2quK.js} +75 -865
  192. package/dist/{pt-BR-DSJDHb-K.js → pt-BR-bH8DC2gH.js} +75 -865
  193. package/dist/{pt-PT-BWJTVPZY.js → pt-PT-B8PXmgwU.js} +75 -865
  194. package/dist/qe-signature/qe-signature.es.js +4 -4
  195. package/dist/{radioGroupComposed-CocqpoKe.js → radioGroupComposed-CW8ElYSR.js} +4 -4
  196. package/dist/radioGroupComposed-flIYNffL.js +1 -0
  197. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +19 -21
  198. package/dist/redirect-to-mobile/styles.css +1 -1
  199. package/dist/redirect-to-mobile/styles.css.js +1 -1
  200. package/dist/{registerIncodeElement-Dtw9dM3O.js → registerIncodeElement-oiLvm6xq.js} +1 -1
  201. package/dist/{reload-icon-BR1POqkD.js → reload-icon-FD2e9Wet.js} +1 -1
  202. package/dist/{resendTimer-ODOCcKyh.js → resendTimer-D1H3gwkI.js} +2 -2
  203. package/dist/richText-sUdTiRDE.js +1761 -0
  204. package/dist/{ro-8gGEWeHO.js → ro-DnN8QNYa.js} +75 -865
  205. package/dist/{ru-C4EVku5S.js → ru-DAwUFXHq.js} +75 -865
  206. package/dist/{ru-RU-Dr0NOGjg.js → ru-RU-Coxt0VCU.js} +75 -865
  207. package/dist/{sanitizeSvg-ilJ8VQmH.js → sanitizeSvg-OdNh1mqY.js} +1 -1
  208. package/dist/selfie/selfie.es.js +30 -14
  209. package/dist/selfie/styles.css +1 -1
  210. package/dist/selfie/styles.css.js +1 -1
  211. package/dist/signature/signature.es.js +18 -13
  212. package/dist/{sk-BSTzMa__.js → sk-AB8sSlNw.js} +77 -867
  213. package/dist/{sl-_HvO-HVX.js → sl-6Dfzfi7s.js} +75 -865
  214. package/dist/{smsTabContent-CWBrtP4u.js → smsTabContent-CBEKgzFv.js} +32 -23
  215. package/dist/{so-pyCaqonl.js → so-X5BdrDvV.js} +75 -865
  216. package/dist/spacer-Jaru_3sb.js +82 -0
  217. package/dist/spinner-51btbot0.js +407 -0
  218. package/dist/{sr-Bpxtt0kk.js → sr-JHjMcbGs.js} +75 -865
  219. package/dist/{sr-Latn-BjueCJSI.js → sr-Latn-DgT7eTG2.js} +80 -870
  220. package/dist/sr-YU-BBhB_G63.js +5 -0
  221. package/dist/{sv-SE-sv5v6ZWe.js → sv-SE-CvX8mC8T.js} +75 -865
  222. package/dist/{sw-BseJSmdR.js → sw-CN0TdnY4.js} +75 -865
  223. package/dist/{th-C2G8Ur12.js → th-BmFntKib.js} +75 -865
  224. package/dist/{th-TH-D0WNW-3l.js → th-TH-CWr4z3JK.js} +75 -865
  225. package/dist/themes/dark.css +1 -1
  226. package/dist/themes/light.css +1 -1
  227. package/dist/{tl-PH-CwafDrED.js → tl-PH-BRIbtBRN.js} +75 -865
  228. package/dist/{tl-CBOmxz5r.js → tl-rzkk5P_n.js} +75 -865
  229. package/dist/{tr-C4iH8UJx.js → tr-DKuVBwqW.js} +76 -866
  230. package/dist/{transitionSpinner-DbrWrpRU.js → transitionSpinner-Di0XBAix.js} +5 -4
  231. package/dist/tutorial-C9psDR2i.js +28 -0
  232. package/dist/types/extensibility.d.ts +6 -1
  233. package/dist/types/index.d.ts +4 -0
  234. package/dist/types/kyb-checks.d.ts +209 -0
  235. package/dist/{typography-BF9d8wEc.js → typography-CiGhKJGx.js} +2 -2
  236. package/dist/uiConfig-BJAuZQWc.js +77 -0
  237. package/dist/{uk-BGYlvKb_.js → uk-CXjqq4lX.js} +75 -865
  238. package/dist/{uk-UA-CbxzkCL_.js → uk-UA-BIE9WByU.js} +75 -865
  239. package/dist/{ur-BQgtsAfv.js → ur-vNGesC3r.js} +75 -865
  240. package/dist/{useCameraPreview-BmkAmzAs.js → useCameraPreview-Bd7AYE9h.js} +1 -1
  241. package/dist/useCaptureHelpButton-Dj-jESrS.js +43 -0
  242. package/dist/{useIsDarkTheme-COJZngNK.js → useIsDarkTheme-Bu9CvKxW.js} +1 -1
  243. package/dist/{useModuleLoader-CceEKjsh.js → useModuleLoader-BBCNkJmc.js} +2 -2
  244. package/dist/{uz-DqOg1Fdv.js → uz-Gmw1XRgv.js} +75 -865
  245. package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-DHGqBGMH.js} +19 -1
  246. package/dist/{verificationResult-m99Ragq6.js → verificationResult-Clxdxm_s.js} +18 -10
  247. package/dist/{vi-COxdKkHn.js → vi-DTxxRUw0.js} +75 -865
  248. package/dist/video-selfie/video-selfie.es.js +50 -33
  249. package/dist/watchlist/watchlist.es.js +8 -6
  250. package/dist/{watchlistForBusiness-C2zxbavl.js → watchlistForBusiness-CpFp2EYX.js} +16 -11
  251. package/dist/{withEndScreenTexts-BwNU-8-X.js → withEndScreenTexts-Bd3mof3s.js} +204 -41
  252. package/dist/workflow/styles.css +1 -1
  253. package/dist/workflow/workflow.es.js +19 -15
  254. package/dist/{zh-CN-DfvYQGdE.js → zh-CN-aB48G_R1.js} +76 -866
  255. package/dist/{zh-CPQoDPxf.js → zh-DjtyfO4e.js} +75 -865
  256. package/dist/{zh-HANT-B4LzHH2y.js → zh-HANT-8p8SH8C3.js} +75 -865
  257. package/dist/{zh-TW-DtvvhBYL.js → zh-TW-CCsz9gKq.js} +75 -865
  258. package/package.json +22 -10
  259. package/dist/browser-ponyfill-CHlXHPpU.js +0 -441
  260. package/dist/cameraOverlay-Be1PFI8S.js +0 -2
  261. package/dist/dateInputComposed-CONPVayx.js +0 -1
  262. package/dist/devWarn-Cr7MglXv.js +0 -2628
  263. package/dist/documentCapture-DGCraCO3.js +0 -2
  264. package/dist/dropdownComposed-DyZXfcTf.js +0 -1
  265. package/dist/ekybModule-D-czIusz.js +0 -2
  266. package/dist/ekycModule-CkBRa6h2.js +0 -2
  267. package/dist/es-419-CTB15v-l.js +0 -3231
  268. package/dist/esm-BTUEHyry.js +0 -430
  269. package/dist/faceMatch-CRbIcwK2.js +0 -2
  270. package/dist/fieldComparison-DKQNK0-r.js +0 -2
  271. package/dist/flipAnimation-D-5tokFC.js +0 -3275
  272. package/dist/inputComposed-5mLbxAZJ.js +0 -1
  273. package/dist/pdfViewer-7FzYV8l3.js +0 -2
  274. package/dist/radioGroupComposed-DlQ-fNrF.js +0 -1
  275. package/dist/richText-CRWB2afV.js +0 -1549
  276. package/dist/spacer-CwyNauIk.js +0 -733
  277. package/dist/spinner-DEZJxLSc.js +0 -88
  278. package/dist/sr-YU-xCb5qxap.js +0 -3235
  279. package/dist/useCaptureHelpButton-D40hYyD7.js +0 -88
  280. /package/dist/{aligndevicelottie-BHWuptBk.js → aligndevicelottie-BEKzL4SB.js} +0 -0
  281. /package/dist/{back-tutorial-BYZr11eV.js → back-tutorial-B9W63fa-.js} +0 -0
  282. /package/dist/{backdevicelottie-JflQKxT_.js → backdevicelottie-DsN8QBV3.js} +0 -0
  283. /package/dist/{blurdevicelottie-CWuMQEHL.js → blurdevicelottie-DkV7Kwo4.js} +0 -0
  284. /package/dist/{countryDefinitions-6FOOLcB2.js → countryDefinitions-RBVGM1D_.js} +0 -0
  285. /package/dist/{defineProperty-CUC2zCmh.js → defineProperty-E9wRIIo9.js} +0 -0
  286. /package/dist/{flip-animation-BqTKEBcW.js → flip-animation-DJVnWWL5.js} +0 -0
  287. /package/dist/{frontdevicelottie-BWD-NCfG.js → frontdevicelottie-DiW1Wmya.js} +0 -0
  288. /package/dist/{glaredevicelottie-Cjy50jGc.js → glaredevicelottie-CK-fnX_s.js} +0 -0
  289. /package/dist/{helpButtonConfig-BFragC_J.js → helpButtonConfig-CjbrBQaV.js} +0 -0
  290. /package/dist/{id-laser-h-By7lMim8.js → id-laser-h-6Am_cjM8.js} +0 -0
  291. /package/dist/{id-laser-v-BCPAN2x5.js → id-laser-v-DXoF3flH.js} +0 -0
  292. /package/dist/{id-tutorial-B9cUQuf0.js → id-tutorial-DkKH3eTE.js} +0 -0
  293. /package/dist/{lottie_light-DywVSPMT.js → lottie_light-B819EhaL.js} +0 -0
  294. /package/dist/{passport-tutorial-TSZzEGqb.js → passport-tutorial-D3Fpk-Tj.js} +0 -0
  295. /package/dist/{pdf.worker.min-D7ZNTVBZ.js → pdf.worker.min-DzBNMoKS.js} +0 -0
  296. /package/dist/{policyUrls-Bpacx_pp.js → policyUrls-Benduf-R.js} +0 -0
  297. /package/dist/{purify.es-DZazHwBu.js → purify.es-CSPoFViI.js} +0 -0
  298. /package/dist/{realtimeFeedbackConfig-DeZksjlR.js → realtimeFeedbackConfig-tBX94SOm.js} +0 -0
  299. /package/dist/{selfieTutorial-CLJAEuXG.js → selfieTutorial-DnsRD1Z9.js} +0 -0
@@ -1,733 +0,0 @@
1
- import { r as __toESM } from "./rolldown-runtime--E5BIlTp.js";
2
- import { a as useUiConfig, c as useTranslation } from "./devWarn-Cr7MglXv.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-B9cUQuf0.js").then(defaultExport),
49
- a11y: decorative
50
- },
51
- "id.tutorial.back": {
52
- default: () => import("./back-tutorial-BYZr11eV.js").then(defaultExport),
53
- a11y: decorative
54
- },
55
- "id.tutorial.passport": {
56
- default: () => import("./passport-tutorial-TSZzEGqb.js").then(defaultExport),
57
- a11y: decorative
58
- },
59
- "id.flip": {
60
- default: () => import("./flip-animation-BqTKEBcW.js").then(defaultExport),
61
- a11y: decorative
62
- },
63
- "id.processing": {
64
- default: {
65
- horizontal: () => import("./id-laser-h-By7lMim8.js").then(defaultExport),
66
- vertical: () => import("./id-laser-v-BCPAN2x5.js").then(defaultExport)
67
- },
68
- a11y: decorative
69
- },
70
- "selfie.tutorial": {
71
- default: () => import("./selfieTutorial-CLJAEuXG.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/resolveAsset.ts
81
- /**
82
- * Whether a resolved value represents an active override, as opposed to no
83
- * override at all (`type === 'default'`).
84
- */
85
- function isActiveOverride(resolved) {
86
- return resolved !== null && resolved.type !== "default";
87
- }
88
- function warnUnknownKey(key) {
89
- `${key}`;
90
- }
91
- function isValidUrl(url) {
92
- const SCHEME_PREFIX = /^[a-zA-Z][a-zA-Z0-9+.-]*:/;
93
- if (url === "" || /\s/.test(url)) return false;
94
- if (!SCHEME_PREFIX.test(url)) return true;
95
- try {
96
- new URL(url);
97
- return true;
98
- } catch {
99
- return false;
100
- }
101
- }
102
- function normalizeAssetOverride(override) {
103
- if (override === void 0) return null;
104
- if (typeof override === "string") {
105
- const value = override.trim();
106
- if (value === "") return null;
107
- if (value.startsWith("<")) return {
108
- type: "override-raw",
109
- raw: value
110
- };
111
- if (!isValidUrl(value)) return null;
112
- return {
113
- type: "override-url",
114
- url: value
115
- };
116
- }
117
- if ("svg" in override) return {
118
- type: "override-component",
119
- component: override.svg
120
- };
121
- if ("raw" in override) {
122
- const raw = override.raw.trim();
123
- return raw === "" ? null : {
124
- type: "override-raw",
125
- raw
126
- };
127
- }
128
- if ("url" in override) {
129
- const url = override.url.trim();
130
- if (url === "") return null;
131
- if (!isValidUrl(url)) return null;
132
- return {
133
- type: "override-url",
134
- url
135
- };
136
- }
137
- return null;
138
- }
139
- function normalizeAnimationOverride(override) {
140
- if (override === void 0) return null;
141
- if ("url" in override) {
142
- const url = override.url.trim();
143
- if (url === "") return null;
144
- if (!isValidUrl(url)) return null;
145
- return {
146
- type: "override-url",
147
- url
148
- };
149
- }
150
- if ("animationData" in override) return {
151
- type: "override-data",
152
- animationData: override.animationData
153
- };
154
- return {
155
- type: "override-data",
156
- animationData: override
157
- };
158
- }
159
- function resolveAsset(key, scopes = {}) {
160
- scopes.instance;
161
- scopes.global;
162
- const entry = assetRegistry[key];
163
- if (entry === void 0) {
164
- warnUnknownKey(key);
165
- return null;
166
- }
167
- const override = normalizeAssetOverride(scopes.instance?.[key]) ?? normalizeAssetOverride(scopes.global?.[key]);
168
- if (override !== null) return {
169
- ...override,
170
- a11y: entry.a11y
171
- };
172
- return {
173
- type: "default",
174
- a11y: entry.a11y
175
- };
176
- }
177
- function resolveAnimation(key, scopes = {}) {
178
- scopes.instance;
179
- scopes.global;
180
- const entry = animationRegistry[key];
181
- if (entry === void 0) {
182
- warnUnknownKey(key);
183
- return null;
184
- }
185
- const override = normalizeAnimationOverride(scopes.instance?.[key]) ?? normalizeAnimationOverride(scopes.global?.[key]);
186
- if (override !== null) return {
187
- ...override,
188
- a11y: entry.a11y
189
- };
190
- return {
191
- type: "default",
192
- default: entry.default,
193
- a11y: entry.a11y
194
- };
195
- }
196
- //#endregion
197
- //#region src/shared/assets/useAsset.ts
198
- function useAsset(key) {
199
- const instance = useInstanceOverrides();
200
- const uiConfig = useUiConfig();
201
- return T(() => {
202
- return resolveAsset(key, {
203
- instance: instance.assets,
204
- global: uiConfig.assets
205
- });
206
- }, [
207
- key,
208
- instance.assets,
209
- uiConfig.assets
210
- ]);
211
- }
212
- function useAnimation(key) {
213
- const instance = useInstanceOverrides();
214
- const uiConfig = useUiConfig();
215
- return T(() => {
216
- return resolveAnimation(key, {
217
- instance: instance.animations,
218
- global: uiConfig.animations
219
- });
220
- }, [
221
- key,
222
- instance.animations,
223
- uiConfig.animations
224
- ]);
225
- }
226
- //#endregion
227
- //#region src/shared/assets/asset.tsx
228
- function altText(a11y, t) {
229
- return "altKey" in a11y ? t(a11y.altKey) : "";
230
- }
231
- function svgA11y(a11y, t) {
232
- return "altKey" in a11y ? {
233
- role: "img",
234
- "aria-label": t(a11y.altKey)
235
- } : { "aria-hidden": "true" };
236
- }
237
- /**
238
- * Normalizes the call-site `default` into a renderable shape. Trusted (it is a
239
- * bundled SDK asset), so raw markup is not sanitized — unlike a customer raw
240
- * override.
241
- */
242
- function defaultToRenderable(value) {
243
- if (value === void 0) return null;
244
- if (typeof value === "function") return {
245
- kind: "component",
246
- value
247
- };
248
- return value.trim().startsWith("<") ? {
249
- kind: "raw",
250
- value
251
- } : {
252
- kind: "url",
253
- value
254
- };
255
- }
256
- /**
257
- * Sanitizes a raw override with DOMPurify, loaded on first use. Only raw SVG
258
- * overrides need it, and `Asset` renders in every module (the loader
259
- * spinner), so a static import would ship it everywhere. Returns `null` while
260
- * it loads. A failed load counts as markup that sanitizes to nothing, so the
261
- * caller falls back to the built-in default.
262
- */
263
- function useSanitizedSvg(raw) {
264
- const [result, setResult] = d(null);
265
- y(() => {
266
- if (raw === null) return;
267
- let active = true;
268
- import("./sanitizeSvg-ilJ8VQmH.js").then(({ sanitizeSvg }) => sanitizeSvg(raw)).catch(() => ({
269
- markup: "",
270
- strippedHref: false
271
- })).then((svg) => {
272
- if (active) setResult({
273
- raw,
274
- svg
275
- });
276
- });
277
- return () => {
278
- active = false;
279
- };
280
- }, [raw]);
281
- return result?.raw === raw ? result.svg : null;
282
- }
283
- function useAssetContent(key, defaultAsset, onFallback) {
284
- const resolved = useAsset(key);
285
- const [failedUrl, setFailedUrl] = d(null);
286
- const rawOverride = resolved?.type === "override-raw" ? resolved.raw : null;
287
- const sanitizedRaw = useSanitizedSvg(rawOverride);
288
- const urlFailed = resolved?.type === "override-url" && resolved.url === failedUrl;
289
- const rawStripped = sanitizedRaw !== null && (sanitizedRaw.strippedHref || sanitizedRaw.markup.trim() === "");
290
- y(() => {
291
- if (urlFailed || rawStripped) onFallback?.();
292
- }, [
293
- urlFailed,
294
- rawStripped,
295
- onFallback
296
- ]);
297
- if (resolved === null || rawOverride !== null && sanitizedRaw === null) return null;
298
- const useDefault = resolved.type === "default" || urlFailed || rawStripped;
299
- const { a11y } = resolved;
300
- if (!useDefault) switch (resolved.type) {
301
- case "override-component": return {
302
- content: {
303
- kind: "component",
304
- value: resolved.component
305
- },
306
- a11y
307
- };
308
- case "override-url": return {
309
- content: {
310
- kind: "url",
311
- value: resolved.url,
312
- onError: () => setFailedUrl(resolved.url)
313
- },
314
- a11y
315
- };
316
- case "override-raw": return {
317
- content: {
318
- kind: "raw",
319
- value: sanitizedRaw?.markup ?? ""
320
- },
321
- a11y
322
- };
323
- }
324
- const content = defaultToRenderable(defaultAsset);
325
- return content ? {
326
- content,
327
- a11y
328
- } : null;
329
- }
330
- function renderAsset(content, a11y, t, className) {
331
- switch (content.kind) {
332
- case "component": {
333
- const Svg = content.value;
334
- return /* @__PURE__ */ u(Svg, {
335
- class: className,
336
- ...svgA11y(a11y, t)
337
- });
338
- }
339
- case "url": return /* @__PURE__ */ u("img", {
340
- src: content.value,
341
- alt: altText(a11y, t),
342
- "aria-hidden": "altKey" in a11y ? void 0 : "true",
343
- class: className,
344
- onError: content.onError
345
- });
346
- case "raw": return /* @__PURE__ */ u("span", {
347
- class: cn("IncodeAssetRaw", className),
348
- ...svgA11y(a11y, t),
349
- dangerouslySetInnerHTML: { __html: content.value }
350
- });
351
- default: return content;
352
- }
353
- }
354
- /**
355
- * Renders a branded illustration by catalog key, honoring the resolved
356
- * precedence (per-instance → global → built-in default). The built-in default
357
- * is supplied by the call site via `default` (imported on-site).
358
- */
359
- function Asset({ name, class: className, default: defaultAsset, onFallback }) {
360
- const { t } = useTranslation();
361
- const result = useAssetContent(name, defaultAsset, onFallback);
362
- if (result === null) return null;
363
- return renderAsset(result.content, result.a11y, t, className);
364
- }
365
- //#endregion
366
- //#region src/shared/lottie/lottie.tsx
367
- var lottiePromise = null;
368
- async function loadLottie() {
369
- if (lottiePromise) return lottiePromise;
370
- lottiePromise = import("./lottie_light-DywVSPMT.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).then((mod) => mod.default);
371
- return lottiePromise;
372
- }
373
- var AUTO_STOP_AFTER_MS = 5e3;
374
- function Lottie({ animationData, loop = true, autoplay = true, reverse = false, style, className, onComplete, autoStop = false, stopFramePosition }) {
375
- const containerRef = A(null);
376
- const effectiveAutoplay = reverse ? false : autoplay;
377
- const animationOptionsRef = A({
378
- container: containerRef.current,
379
- renderer: "svg",
380
- loop,
381
- autoplay: effectiveAutoplay,
382
- animationData
383
- });
384
- y(() => {
385
- animationOptionsRef.current = {
386
- container: containerRef.current,
387
- renderer: "svg",
388
- loop,
389
- autoplay: effectiveAutoplay,
390
- animationData
391
- };
392
- }, [
393
- animationData,
394
- loop,
395
- effectiveAutoplay
396
- ]);
397
- y(() => {
398
- if (!containerRef.current) return;
399
- let anim;
400
- let stopTimer;
401
- let isMounted = true;
402
- loadLottie().then((lottie) => {
403
- if (!isMounted) return;
404
- anim = lottie.loadAnimation(animationOptionsRef.current);
405
- if (reverse) {
406
- anim.setDirection(-1);
407
- anim.goToAndPlay(anim.totalFrames - 1, true);
408
- }
409
- if (onComplete) anim.addEventListener("complete", onComplete);
410
- if (autoStop) stopTimer = window.setTimeout(() => {
411
- const current = anim;
412
- if (!current) return;
413
- if (!stopFramePosition) {
414
- current.pause();
415
- return;
416
- }
417
- const totalFrames = current.totalFrames;
418
- if (!totalFrames || totalFrames <= 0) {
419
- current.stop();
420
- return;
421
- }
422
- const targetFrame = stopFramePosition === "last" ? Math.max(totalFrames - 1, 0) : stopFramePosition === "first" ? 0 : Math.floor((totalFrames - 1) / 2);
423
- current.goToAndStop(targetFrame, true);
424
- }, AUTO_STOP_AFTER_MS);
425
- });
426
- return () => {
427
- isMounted = false;
428
- if (stopTimer !== void 0) window.clearTimeout(stopTimer);
429
- if (anim) {
430
- if (onComplete) anim.removeEventListener("complete", onComplete);
431
- anim.destroy();
432
- }
433
- };
434
- }, [
435
- onComplete,
436
- reverse,
437
- autoStop,
438
- stopFramePosition
439
- ]);
440
- return /* @__PURE__ */ u("div", {
441
- ref: containerRef,
442
- style,
443
- className,
444
- "aria-hidden": "true"
445
- });
446
- }
447
- //#endregion
448
- //#region src/shared/assets/animatedAsset.tsx
449
- var overrideUrlCache = /* @__PURE__ */ new Map();
450
- function fetchAnimation(url) {
451
- const cached = overrideUrlCache.get(url);
452
- if (cached) return cached;
453
- const pending = fetch(url).then((response) => {
454
- if (!response.ok) throw new Error(`Request for "${url}" failed with status ${response.status}.`);
455
- return response.json();
456
- });
457
- overrideUrlCache.set(url, pending);
458
- pending.catch(() => overrideUrlCache.delete(url));
459
- return pending;
460
- }
461
- function loadAnimationDefault(def, orientation) {
462
- if (def === null) return Promise.resolve(null);
463
- if (typeof def === "function") return def();
464
- return def[orientation]();
465
- }
466
- var defaultCache = /* @__PURE__ */ new Map();
467
- function defaultCacheKey(name, orientation) {
468
- return `${name}|${orientation}`;
469
- }
470
- function loadDefaultCached(name, orientation) {
471
- const cacheKey = defaultCacheKey(name, orientation);
472
- if (defaultCache.has(cacheKey)) return Promise.resolve(defaultCache.get(cacheKey) ?? null);
473
- return loadAnimationDefault(animationRegistry[name]?.default ?? null, orientation).then((value) => {
474
- defaultCache.set(cacheKey, value);
475
- return value;
476
- });
477
- }
478
- /**
479
- * Warms the built-in animation cache for the given catalog keys so a later
480
- * render is synchronous (no flash). Best-effort; call it before the screen
481
- * mounts.
482
- */
483
- function preloadAnimations(keys, orientation = "vertical") {
484
- for (const key of keys) loadDefaultCached(key, orientation).catch(() => {});
485
- }
486
- /**
487
- * Resolves the winning animation to parsed `animationData` plus whether it came
488
- * from a customer override. Reads the default cache synchronously on first
489
- * render, so a preloaded animation shows with no flash. A failed override URL
490
- * silently falls back to the built-in default.
491
- *
492
- * Shared by `AnimatedAsset` and by tutorial surfaces that render Lottie
493
- * themselves (e.g. `BaseTutorial`, which recolors only built-in defaults).
494
- *
495
- * `onFallback`, if given, fires only when a *configured* override actually
496
- * fails to load (never when there was simply no override to begin with) —
497
- * for a caller whose true fallback lives outside this system entirely, so it
498
- * can react to a real failure instead of committing to render this component before
499
- * knowing whether the override will actually work.
500
- */
501
- function useAnimationData(name, orientation = "vertical", onFallback) {
502
- const resolved = useAnimation(name);
503
- const type = resolved?.type;
504
- const isOverride = isActiveOverride(resolved);
505
- const overrideUrl = resolved?.type === "override-url" ? resolved.url : void 0;
506
- const overrideData = resolved?.type === "override-data" ? resolved.animationData : void 0;
507
- const [data, setData] = d(() => {
508
- if (type === "override-data") return overrideData ?? null;
509
- if (type === "default") return defaultCache.get(defaultCacheKey(name, orientation)) ?? null;
510
- return null;
511
- });
512
- const [overrideFailed, setOverrideFailed] = d(false);
513
- y(() => {
514
- let active = true;
515
- setOverrideFailed(false);
516
- if (type === void 0) setData(null);
517
- else if (type === "override-data") setData(overrideData ?? null);
518
- else if (type === "override-url" && overrideUrl !== void 0) fetchAnimation(overrideUrl).then((value) => {
519
- if (active) setData(value);
520
- }, (error) => {
521
- `${name}`;
522
- if (active) {
523
- setOverrideFailed(true);
524
- loadDefaultCached(name, orientation).then((value) => {
525
- if (active) setData(value);
526
- }, () => {});
527
- }
528
- });
529
- else loadDefaultCached(name, orientation).then((value) => {
530
- if (active) setData(value);
531
- }, (error) => {
532
- if (active) {
533
- setData(null);
534
- `${name}`;
535
- }
536
- });
537
- return () => {
538
- active = false;
539
- };
540
- }, [
541
- name,
542
- orientation,
543
- type,
544
- overrideUrl,
545
- overrideData
546
- ]);
547
- y(() => {
548
- if (overrideFailed) onFallback?.();
549
- }, [overrideFailed, onFallback]);
550
- return {
551
- data,
552
- isOverride
553
- };
554
- }
555
- /**
556
- * Renders a Lottie animation by catalog key, honoring the resolved precedence
557
- * (per-instance → global → built-in default). Renders nothing while pending or
558
- * when there is no Lottie to show; the container is `aria-hidden` (all catalog
559
- * animations are decorative).
560
- */
561
- function AnimatedAsset({ name, autoStop, stopFramePosition, orientation = "vertical", loop, reverse, onComplete, class: className, onFallback }) {
562
- const { data } = useAnimationData(name, orientation, onFallback);
563
- if (data === null) return null;
564
- return /* @__PURE__ */ u(Lottie, {
565
- animationData: data,
566
- autoStop,
567
- stopFramePosition,
568
- loop,
569
- reverse,
570
- onComplete,
571
- className
572
- });
573
- }
574
- //#endregion
575
- //#region src/shared/loader/loadingIcon.tsx
576
- /**
577
- * Duration of the CSS spin animation on `.IncodeLoadingIcon`.
578
- * Must stay in sync with the `animation-duration` declared in the stylesheet.
579
- */
580
- var SPIN_DURATION_MS = 1e3;
581
- var SpinnerPrimary = ({ size, className }) => {
582
- return /* @__PURE__ */ u("svg", {
583
- width: size,
584
- height: size,
585
- viewBox: "0 0 31 31",
586
- fill: "none",
587
- xmlns: "http://www.w3.org/2000/svg",
588
- class: cn("IncodeLoadingIconPrimaryIcon", className),
589
- "aria-hidden": "true",
590
- 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" })
591
- });
592
- };
593
- var SpinnerSecondary = ({ size, className }) => {
594
- return /* @__PURE__ */ u("svg", {
595
- width: size,
596
- height: size,
597
- viewBox: "0 0 31 31",
598
- fill: "none",
599
- xmlns: "http://www.w3.org/2000/svg",
600
- class: cn("IncodeLoadingIconSecondaryIcon", className),
601
- "aria-hidden": "true",
602
- 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" })]
603
- });
604
- };
605
- var LoadingIcon = ({ size = 30, secondaryClass, primaryClass }) => {
606
- const ref = A(null);
607
- const overrideRef = A(null);
608
- const animation = useAnimation("loader.spinner");
609
- const svg = useAsset("loader.spinner");
610
- const hasAnimationOverride = isActiveOverride(animation);
611
- const hasSvgOverride = isActiveOverride(svg);
612
- const [overrideFailed, setOverrideFailed] = d(false);
613
- const handleFallback = q(() => setOverrideFailed(true), []);
614
- const hasOverride = (hasAnimationOverride || hasSvgOverride) && !overrideFailed;
615
- /**
616
- * Cross-module loaders (e.g. ID processing → selfie initialising) unmount
617
- * and remount this component as the user moves between flow steps. By
618
- * default each remount restarts the CSS spin animation from frame 0, which
619
- * reads as a visible "stutter" or reset of the spinner during otherwise
620
- * seamless transitions.
621
- *
622
- * To keep the rotation continuous across remounts we anchor the animation
623
- * to a wall-clock offset: `performance.now() % SPIN_DURATION_MS` tells us
624
- * how far into the current spin cycle we are, and applying it as a
625
- * negative `animation-delay` makes the new instance pick up exactly where
626
- * the previous one left off. (Built-in default only.)
627
- */
628
- _(() => {
629
- if (hasOverride || !ref.current) return;
630
- const offsetMs = performance.now() % SPIN_DURATION_MS;
631
- ref.current.style.animationDelay = `-${offsetMs}ms`;
632
- }, [hasOverride]);
633
- _(() => {
634
- if (!overrideRef.current) return;
635
- overrideRef.current.style.width = `${size}px`;
636
- overrideRef.current.style.height = `${size}px`;
637
- }, [size, hasOverride]);
638
- if (hasOverride) return /* @__PURE__ */ u("div", {
639
- ref: overrideRef,
640
- class: "IncodeLoadingIconOverride",
641
- children: hasAnimationOverride ? /* @__PURE__ */ u(AnimatedAsset, {
642
- name: "loader.spinner",
643
- loop: true,
644
- onFallback: handleFallback
645
- }) : /* @__PURE__ */ u(Asset, {
646
- name: "loader.spinner",
647
- onFallback: handleFallback
648
- })
649
- });
650
- return /* @__PURE__ */ u("div", {
651
- ref,
652
- class: "IncodeLoadingIcon",
653
- children: [/* @__PURE__ */ u(SpinnerSecondary, {
654
- size,
655
- className: secondaryClass
656
- }), /* @__PURE__ */ u("div", {
657
- class: "IncodeLoadingIconPrimary",
658
- children: /* @__PURE__ */ u(SpinnerPrimary, {
659
- size,
660
- className: primaryClass
661
- })
662
- })]
663
- });
664
- };
665
- //#endregion
666
- //#region src/shared/spacer/spacer.tsx
667
- var scaleTokens = new Set([
668
- 0,
669
- 2,
670
- 4,
671
- 8,
672
- 12,
673
- 16,
674
- 20,
675
- 24,
676
- 32,
677
- 40,
678
- 48,
679
- 64,
680
- 80,
681
- 96,
682
- 104,
683
- 120,
684
- 200
685
- ]);
686
- var scaleToClassName = (size, direction) => {
687
- if (direction === "horizontal") return {
688
- 0: "IncodeSpacerHorizontal0",
689
- 2: "IncodeSpacerHorizontal2",
690
- 4: "IncodeSpacerHorizontal4",
691
- 8: "IncodeSpacerHorizontal8",
692
- 12: "IncodeSpacerHorizontal12",
693
- 16: "IncodeSpacerHorizontal16",
694
- 20: "IncodeSpacerHorizontal20",
695
- 24: "IncodeSpacerHorizontal24",
696
- 32: "IncodeSpacerHorizontal32",
697
- 40: "IncodeSpacerHorizontal40",
698
- 48: "IncodeSpacerHorizontal48",
699
- 64: "IncodeSpacerHorizontal64",
700
- 80: "IncodeSpacerHorizontal80",
701
- 96: "IncodeSpacerHorizontal96",
702
- 104: "IncodeSpacerHorizontal104",
703
- 120: "IncodeSpacerHorizontal120",
704
- 200: "IncodeSpacerHorizontal200"
705
- }[size];
706
- return {
707
- 0: "IncodeSpacerVertical0",
708
- 2: "IncodeSpacerVertical2",
709
- 4: "IncodeSpacerVertical4",
710
- 8: "IncodeSpacerVertical8",
711
- 12: "IncodeSpacerVertical12",
712
- 16: "IncodeSpacerVertical16",
713
- 20: "IncodeSpacerVertical20",
714
- 24: "IncodeSpacerVertical24",
715
- 32: "IncodeSpacerVertical32",
716
- 40: "IncodeSpacerVertical40",
717
- 48: "IncodeSpacerVertical48",
718
- 64: "IncodeSpacerVertical64",
719
- 80: "IncodeSpacerVertical80",
720
- 96: "IncodeSpacerVertical96",
721
- 104: "IncodeSpacerVertical104",
722
- 120: "IncodeSpacerVertical120",
723
- 200: "IncodeSpacerVertical200"
724
- }[size];
725
- };
726
- var Spacer = ({ size, className, direction = "vertical" }) => {
727
- if (size === void 0) return /* @__PURE__ */ u("div", { class: `IncodeSpacerFlex ${className || ""}` });
728
- if (!(direction === "horizontal" ? "w" : direction === "vertical" ? "h" : void 0)) return /* @__PURE__ */ u("div", { class: `${className || ""}` });
729
- if (typeof size === "number" && scaleTokens.has(size)) return /* @__PURE__ */ u("div", { class: `${scaleToClassName(size, direction)} ${className || ""}` });
730
- return /* @__PURE__ */ u("div", { class: `${className || ""}` });
731
- };
732
- //#endregion
733
- export { useAnimationData as a, InstanceOverridesProvider as c, preloadAnimations as i, useInstanceOverrides as l, LoadingIcon as n, Lottie as o, AnimatedAsset as r, Asset as s, Spacer as t, cn as u };