@incodetech/web 2.4.1-agentic → 2.4.1-agentic.10

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 (352) hide show
  1. package/THIRD_PARTY_NOTICES.txt +1 -4
  2. package/dist/{GeolocationPermissionDenied-CUt-uebQ.js → GeolocationPermissionDenied-Dag9fchQ.js} +23 -8
  3. package/dist/Password-4ht2vsqv.js +212 -0
  4. package/dist/RadioGroup-Cf6xDIm5.js +123 -0
  5. package/dist/RequiredLegend-DwaAzhid.js +16 -0
  6. package/dist/RequiredMarker-CGQR8lsb.js +16 -0
  7. package/dist/TextField-o3qwE7KD.js +166 -0
  8. package/dist/ae-signature/ae-signature.es.js +4 -4
  9. package/dist/{af-ZA-BWKMRc6V.js → af-ZA-CdJRBJEg.js} +107 -881
  10. package/dist/{ageVerification-CMIp0I--.js → ageVerification-u2zo-WUl.js} +10 -8
  11. package/dist/{am-DPyjIvQV.js → am-Df9uoE6e.js} +107 -881
  12. package/dist/antifraud/antifraud.es.js +5 -4
  13. package/dist/{applyStudioConfig-DxtP9221.js → applyStudioConfig-Deh55YNW.js} +2 -2
  14. package/dist/{ar-AE-CxCvbyoW.js → ar-AE-CAoWsgnA.js} +107 -881
  15. package/dist/{ar-EG-B1hHB55j.js → ar-EG-CXi0p-DV.js} +107 -881
  16. package/dist/{ar-10SoqF1i.js → ar-hyEIwsq9.js} +108 -882
  17. package/dist/assertClassBrand-CuHX5JcR.js +17 -0
  18. package/dist/authentication/authentication.es.js +7 -5
  19. package/dist/autoFocusTitle-CNeT8ydU.js +19 -0
  20. package/dist/{az-cmuBNn_5.js → az-CUehzrK3.js} +107 -881
  21. package/dist/{back-horizontal-hint-Dl2C4J4u.js → back-horizontal-hint-D5xvRtEe.js} +1 -1
  22. package/dist/{back-vertical-hint-CM4_HjWk.js → back-vertical-hint-DoKJSQhY.js} +1 -1
  23. package/dist/base.css +1 -1
  24. package/dist/{baseTutorial-BGU2Gcly.js → baseTutorial-xDkp34JC.js} +9 -7
  25. package/dist/{bn-CuGYlngZ.js → bn-DStUscj0.js} +107 -881
  26. package/dist/{bottomSheet-x20yd6eP.js → bottomSheet-COrgITc6.js} +3 -3
  27. package/dist/{bs-vwpJzaHm.js → bs-Lq1FPKJj.js} +107 -881
  28. package/dist/{ca-DXZs5vtr.js → ca-K83Ys4Fe.js} +107 -881
  29. package/dist/cameraOverlay-Bciqav_0.js +2 -0
  30. package/dist/{cameraOverlayHeader-BxutAKy-.js → cameraOverlayHeader-C7Pi5eIm.js} +9 -8
  31. package/dist/{cameraView-DVzaEGW8.js → cameraView-B7l40Opf.js} +3 -3
  32. package/dist/capture-D7HVD1ht.js +754 -0
  33. package/dist/capture-Do7z-u0d.js +3 -0
  34. package/dist/{tutorial-BKPHj5To.js → capture-I1enj-0M.js} +28 -68
  35. package/dist/capture-WaSNv1Wn.js +2 -0
  36. package/dist/captureButtonIcon-DVbAZ8TK.js +1 -0
  37. package/dist/captureFocusContext-CNtkY3Lk.js +718 -0
  38. package/dist/captureFooter-CucCxqz-.js +47 -0
  39. package/dist/{ceb-CmhS_VOs.js → ceb-NR8sWgTh.js} +107 -881
  40. package/dist/certificate-issuance/certificate-issuance.es.js +68 -41
  41. package/dist/certificate-issuance/styles.css +1 -1
  42. package/dist/certificate-issuance/styles.css.js +1 -1
  43. package/dist/{checkbox-BC26Qbxh.js → checkbox-C5k2pepr.js} +4 -4
  44. package/dist/chooser-CNm0MKQl.js +1517 -0
  45. package/dist/connectionError-Bs3TO2RP.js +100 -0
  46. package/dist/consent/consent.es.js +16 -12
  47. package/dist/{countryFlag-DXSVHiby.js → countryFlag-CZUyZ06G.js} +1 -1
  48. package/dist/{countrySelector-0PDDFsZF.js → countrySelector-CPgaMT7n.js} +4 -4
  49. package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
  50. package/dist/{cs-CZ-Dg5O-Vom.js → cs-CZ-KpSXcWZT.js} +107 -881
  51. package/dist/{cs-CoJlE7De.js → cs-UYoUjOrG.js} +107 -881
  52. package/dist/curp-validation/curp-validation.es.js +97 -96
  53. package/dist/curp-validation/styles.css +1 -1
  54. package/dist/curp-validation/styles.css.js +1 -1
  55. package/dist/{customFields-COYGTuuK.js → customFields-BcubL9au.js} +33 -19
  56. package/dist/{customWatchlist-B0wY6Rwb.js → customWatchlist-D4RK0ow6.js} +11 -8
  57. package/dist/{da-DK-C_JAndM-.js → da-DK-Bds8n-Rj.js} +107 -881
  58. package/dist/dashboardTheme-DQaxmEq3.js +383 -0
  59. package/dist/dateInputComposed-BrpUtswb.js +1 -0
  60. package/dist/{dateInputComposed-QkmLGLHg.js → dateInputComposed-BzCDzTM3.js} +4 -5
  61. package/dist/{de-11hHLedu.js → de-CZlvE1Xz.js} +107 -881
  62. package/dist/denied-BeVKpBem.js +272 -0
  63. package/dist/devWarn-B4kGEiva.js +1056 -0
  64. package/dist/{deviceWallet-BeTpokSL.js → deviceWallet-7b1VpcGm.js} +4 -4
  65. package/dist/{digitalIdRedirect-BnljwZV3.js → digitalIdRedirect-CG9jzrQh.js} +4 -4
  66. package/dist/{digitalIdUpload-DNhqqMHT.js → digitalIdUpload-BUJcgYY5.js} +37 -15
  67. package/dist/document-capture/document-capture.es.js +1 -1
  68. package/dist/document-capture/styles.css +1 -1
  69. package/dist/document-capture/styles.css.js +1 -1
  70. package/dist/documentCapture-BdEStEoH.js +2 -0
  71. package/dist/{documentCapture-uAKPK1U-.js → documentCapture-JcxukEgT.js} +113 -59
  72. package/dist/dropdownComposed-C36c9ZOm.js +1 -0
  73. package/dist/{dropdownComposed-D_RQd0Z9.js → dropdownComposed-yNmLuHxU.js} +8 -6
  74. package/dist/dynamic-forms/dynamic-forms.es.js +62 -35
  75. package/dist/ekyb/ekyb.es.js +1 -1
  76. package/dist/{ekybModule-Bsqag_MS.js → ekybModule-Cp-7fs23.js} +109 -89
  77. package/dist/ekybModule-ccZRVb7E.js +2 -0
  78. package/dist/ekyc/ekyc.es.js +1 -1
  79. package/dist/ekyc-prefill/ekyc-prefill.es.js +2 -0
  80. package/dist/ekyc-prefill/styles.css +2 -0
  81. package/dist/ekyc-prefill/styles.css.js +1 -0
  82. package/dist/ekycModule-CcZTIgGK.js +2 -0
  83. package/dist/ekycModule-DKUZp3Ww.js +358 -0
  84. package/dist/ekycPrefillModule-Bou_Ig42.js +2 -0
  85. package/dist/ekycPrefillModule-DJoeviHP.js +233 -0
  86. package/dist/{el-CRGmVrep.js → el-C6tFl9i9.js} +107 -881
  87. package/dist/{el-GR-CjtJiRTo.js → el-GR-BLkQ_dbO.js} +107 -881
  88. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  89. package/dist/{electronic-signature-Cm2BEiQu.js → electronic-signature-D-4uTJdE.js} +55 -36
  90. package/dist/email/email.es.js +21 -16
  91. package/dist/{emailInput-JmK2JIFS.js → emailInput-C5VHG66O.js} +23 -12
  92. package/dist/{en-DG-Cruu6Woh.js → en-DG-BEuiDKtl.js} +107 -881
  93. package/dist/{en-CSjoG3e4.js → en-DNBypQuu.js} +107 -881
  94. package/dist/{errorContent-zY4jb6uY.js → errorContent-BC8mDFld.js} +21 -20
  95. package/dist/{formField-C3MNhFKI.js → errorParams-W7NX72mI.js} +2 -33
  96. package/dist/es-419-BCIRYhZK.js +5 -0
  97. package/dist/{es-C_LAY-Yu.js → es-DjQEM4f9.js} +108 -882
  98. package/dist/{es-ES-D7O0P5Mg.js → es-ES-Q6nMptUM.js} +107 -881
  99. package/dist/{es-MX-DVzFaANh.js → es-MX-Df5g3bAX.js} +107 -881
  100. package/dist/{et-DdSwjU5d.js → et-BYRhgB8X.js} +108 -882
  101. package/dist/expiredId-BVa13c9u.js +67 -0
  102. package/dist/extensibility.es.js +368 -42
  103. package/dist/{fa-IR-CdK8XLkS.js → fa-IR-DP-FPc-r.js} +107 -881
  104. package/dist/face-match/face-match.es.js +1 -1
  105. package/dist/face-match/styles.css +1 -1
  106. package/dist/face-match/styles.css.js +1 -1
  107. package/dist/faceMatch-B2n0FPIm.js +2 -0
  108. package/dist/{faceMatch-B0IzR9_u.js → faceMatch-C5QmR3Vt.js} +44 -53
  109. package/dist/{fi-FI-CYlEPu44.js → fi-FI-rnIjEC7X.js} +107 -881
  110. package/dist/field-comparison/field-comparison.es.js +1 -1
  111. package/dist/fieldComparison-CDGiqzsu.js +126 -0
  112. package/dist/fieldComparison-D-LmR1LR.js +2 -0
  113. package/dist/{fieldLabelHint-gdoE5nLQ.js → fieldLabelHint-eF42wLDJ.js} +3 -3
  114. package/dist/{finalSuccessScreen-BM9oeJDH.js → finalSuccessScreen-vOR061dK.js} +31 -22
  115. package/dist/fiscal-qr/fiscal-qr.es.js +25 -22
  116. package/dist/flipAnimation-CGP9Fu9J.js +46 -0
  117. package/dist/flipCapturedCardEligibility-C8wQ0_No.js +210 -0
  118. package/dist/flow/flow.es.js +216 -191
  119. package/dist/flow/shell/styles.css +1 -1
  120. package/dist/flow/shell/styles.css.js +1 -1
  121. package/dist/flow/styles.css +1 -1
  122. package/dist/formField-DrSwXufE.js +49 -0
  123. package/dist/{fr-CA-DD_s9NuV.js → fr-CA-vPsubqTC.js} +107 -881
  124. package/dist/{fr-C4cP8ZNE.js → fr-P8YbBMxT.js} +107 -881
  125. package/dist/{front-horizontal-hint-Dol0Lpc6.js → front-horizontal-hint-CDHj9LQF.js} +1 -1
  126. package/dist/{front-vertical-hint-CAhAzw92.js → front-vertical-hint-B_pU27Iv.js} +1 -1
  127. package/dist/geolocation/geolocation.es.js +15 -10
  128. package/dist/government-validation/government-validation.es.js +7 -6
  129. package/dist/{he-D3fvMZAl.js → he-DfptjOXC.js} +107 -881
  130. package/dist/{hi-DLf6_opn.js → hi-C7tSzMcB.js} +107 -881
  131. package/dist/{hmn-DzoODzbN.js → hmn-jKsUYgaq.js} +107 -881
  132. package/dist/{homeScreen-D1Xd93In.js → homeScreen-C1b8yg4y.js} +21 -14
  133. package/dist/{incodeComponent-C1Bz5Qou.js → hooks-COiwxC3h.js} +39 -325
  134. package/dist/{hr-C-jP0DrB.js → hr-ehtrddz3.js} +107 -881
  135. package/dist/{ht-CVt9koJf.js → ht-CA5NNkri.js} +107 -881
  136. package/dist/{hu-9fSzIeAd.js → hu-DYgOdNXH.js} +107 -881
  137. package/dist/{icons-BdiCuWFP.js → icons-CLoob8B-.js} +129 -56
  138. package/dist/id/id.es.js +166 -197
  139. package/dist/id/styles.css +1 -1
  140. package/dist/id/styles.css.js +1 -1
  141. package/dist/{id-Dgi5uGHK.js → id-CMBxWcTV.js} +107 -881
  142. package/dist/{id-back-of-card-CHFxXTEq.js → id-back-of-card-BEAthtU0.js} +1 -1
  143. package/dist/{id-back-of-card-vertical-CUBdKGbw.js → id-back-of-card-vertical-Ce0d7tp5.js} +1 -1
  144. package/dist/{id-front-of-card-DplNJr13.js → id-front-of-card-DS0lS9jP.js} +1 -1
  145. package/dist/{id-front-of-card-vertical-D1duHEsV.js → id-front-of-card-vertical-BLWn85NX.js} +1 -1
  146. package/dist/id-selfie-flow/id-selfie-flow.es.js +13 -11
  147. package/dist/id-selfie-flow/styles.css +1 -1
  148. package/dist/id-verification/id-verification.es.js +6 -5
  149. package/dist/idFlipTransition-3z8Lqcab.js +154 -0
  150. package/dist/{idOcr-sknZwQNF.js → idOcr-qPEZSG5D.js} +64 -37
  151. package/dist/identity-reuse/identity-reuse.es.js +36 -24
  152. package/dist/incodeComponent-CxWTvgqz.js +235 -0
  153. package/dist/{incodeModule-DJToJb00.js → incodeModule-BQVPjhJE.js} +5 -5
  154. package/dist/index.es.js +3 -3
  155. package/dist/{inputComposed-BuE0iZlw.js → inputComposed-oWeKvdES.js} +4 -4
  156. package/dist/{it-CEFstYFG.js → it-DNcyH3GL.js} +107 -881
  157. package/dist/{ja-BNdVd9B6.js → ja-BkVsn7yw.js} +107 -881
  158. package/dist/{ja-JP-B5TPMV1q.js → ja-JP-BI4iShf-.js} +108 -882
  159. package/dist/{jv-CMxkkXUk.js → jv-Bpp0lYl-.js} +107 -881
  160. package/dist/{ka-C70bUmEK.js → ka-__y8BNrb.js} +107 -881
  161. package/dist/{kk-C_55EmWt.js → kk-C8RZv7Y9.js} +107 -881
  162. package/dist/{km-D4Ig0NhN.js → km-CdNpEVlv.js} +114 -888
  163. package/dist/{ko-DfUa3dzQ.js → ko-Db8jh_Pq.js} +107 -881
  164. package/dist/{ko-KP-BwBB8ahu.js → ko-KP-Cn4RuF_b.js} +107 -881
  165. package/dist/{ky-CnJichOm.js → ky-DljlRCIf.js} +107 -881
  166. package/dist/kyb-checks/kyb-checks.es.js +2 -0
  167. package/dist/kyb-checks/styles.css +2 -0
  168. package/dist/kyb-checks/styles.css.js +1 -0
  169. package/dist/kybChecksModule-B2nSWMuy.js +2 -0
  170. package/dist/kybChecksModule-DGXAS1Sc.js +345 -0
  171. package/dist/{lo-ww1DXVAP.js → lo-DXJI47k7.js} +107 -881
  172. package/dist/{lt-IJ8qpluI.js → lt-CUHwdgrq.js} +107 -881
  173. package/dist/{lv-DMfsmqyK.js → lv-BFrYWmGH.js} +107 -881
  174. package/dist/{mandatoryConsent-Bp8sQoiu.js → mandatoryConsent-Dc0PQou0.js} +20 -14
  175. package/dist/{manualCaptureButton-Cd-FY05-.js → manualCaptureButton-DIlebb4i.js} +8 -7
  176. package/dist/{manualCaptureButton-BXOTp2PS.js → manualCaptureButton-t0b_hCKH.js} +15 -12
  177. package/dist/{mk-ByafmFak.js → mk-BRpnPevj.js} +107 -881
  178. package/dist/{mn-DjO9p3xN.js → mn-tly7Lz7o.js} +107 -881
  179. package/dist/{ms-3Vf1QpHl.js → ms-DFpRACK3.js} +107 -881
  180. package/dist/{my-C5hpE5P1.js → my-G2jJl4tA.js} +107 -881
  181. package/dist/{nb-NO-DGCWCOul.js → nb-NO-CaDPgzxb.js} +107 -881
  182. package/dist/{ne-CpJxcVhV.js → ne-BaCq8Imv.js} +107 -881
  183. package/dist/{nl-R2RykJHB.js → nl-BK-jT4yQ.js} +107 -881
  184. package/dist/{optionAccessibleLabel-BQl8HooZ.js → optionAccessibleLabel-CDKKh7c3.js} +25 -10
  185. package/dist/otpInput-B4mH5be-.js +245 -0
  186. package/dist/{page-utEpSa9Z.js → page-5CklyQnq.js} +86 -44
  187. package/dist/{pageUiConfig-rOL18JSI.js → pageUiConfig-DZQHreIo.js} +67 -25
  188. package/dist/{passport-horizontal-hint-BfTXA2LB.js → passport-horizontal-hint-JdWoLKa5.js} +1 -1
  189. package/dist/{passport-vertical-hint-C7dzd2ks.js → passport-vertical-hint-BgtJXbvC.js} +1 -1
  190. package/dist/passwordRequirements-bbbHZACR.js +49 -0
  191. package/dist/{pdf-BnPw8ZaT.js → pdf-CLcY9ugT.js} +2 -17
  192. package/dist/pdfViewer-2NTW2bZn.js +2 -0
  193. package/dist/{pdfViewer-DNMZsDFD.js → pdfViewer-D4xu2J13.js} +11 -14
  194. package/dist/permissionInstructionList-Dmy2y4cX.js +43 -0
  195. package/dist/{permissions-CCEc9lKM.js → permissions-BPh2QNoI.js} +84 -53
  196. package/dist/phone/phone.es.js +16 -12
  197. package/dist/{phoneInputComposed-ByiK_6Hu.js → phoneInputComposed-Dzt9xdrF.js} +6 -6
  198. package/dist/{pl-B1LgnPj1.js → pl-CoWZGdbr.js} +107 -881
  199. package/dist/preloadableLazy-2hqV2Q8z.js +43 -0
  200. package/dist/{processing-Ci_Kl-Rh.js → processing-DStiN9XK.js} +2 -2
  201. package/dist/{progressBar-Caj-Vu1e.js → progressBar-CJqJXzAh.js} +2 -2
  202. package/dist/{pt-CPVeH0hD.js → pt-BDByRgpr.js} +107 -881
  203. package/dist/{pt-BR-DSJDHb-K.js → pt-BR-BRMyrqIN.js} +107 -881
  204. package/dist/{pt-PT-BWJTVPZY.js → pt-PT-CfwlYo6V.js} +107 -881
  205. package/dist/qe-signature/qe-signature.es.js +4 -4
  206. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +34 -33
  207. package/dist/redirect-to-mobile/styles.css +1 -1
  208. package/dist/redirect-to-mobile/styles.css.js +1 -1
  209. package/dist/{registerIncodeElement-Dtw9dM3O.js → registerIncodeElement-B5W7SqS3.js} +1 -1
  210. package/dist/{resendTimer-ODOCcKyh.js → resendTimer-COMRdeDC.js} +2 -2
  211. package/dist/richText-BMvr5dhl.js +1761 -0
  212. package/dist/{ro-8gGEWeHO.js → ro-ju058j4P.js} +107 -881
  213. package/dist/{ru-C4EVku5S.js → ru-DYwhf4Hw.js} +107 -881
  214. package/dist/{ru-RU-Dr0NOGjg.js → ru-RU-BAvJW-vp.js} +107 -881
  215. package/dist/{sanitizeSvg-ilJ8VQmH.js → sanitizeSvg-BZoCoRr0.js} +1 -1
  216. package/dist/selfie/selfie.es.js +30 -14
  217. package/dist/selfie/styles.css +1 -1
  218. package/dist/selfie/styles.css.js +1 -1
  219. package/dist/signature/signature.es.js +18 -13
  220. package/dist/{sk-BSTzMa__.js → sk-Cl6F-Kaz.js} +108 -882
  221. package/dist/{sl-_HvO-HVX.js → sl-BxsNneWx.js} +107 -881
  222. package/dist/{smsTabContent-CWBrtP4u.js → smsTabContent-BLJM1Hbk.js} +40 -27
  223. package/dist/{so-pyCaqonl.js → so-D8izvKPD.js} +107 -881
  224. package/dist/spacer-NanHQwzu.js +1100 -0
  225. package/dist/spinner-bRH4yw9e.js +69 -0
  226. package/dist/{sr-Bpxtt0kk.js → sr-BtsYxFKz.js} +107 -881
  227. package/dist/{sr-Latn-BjueCJSI.js → sr-Latn-BTn5o62j.js} +112 -886
  228. package/dist/sr-YU-BNViLYA5.js +5 -0
  229. package/dist/step-up/step-up.es.js +483 -0
  230. package/dist/step-up/styles.css +2 -0
  231. package/dist/{sv-SE-sv5v6ZWe.js → sv-SE-f5R8i8ue.js} +107 -881
  232. package/dist/{sw-BseJSmdR.js → sw-BgHNoEGs.js} +107 -881
  233. package/dist/{th-TH-D0WNW-3l.js → th-TH-DmfU-a6A.js} +107 -881
  234. package/dist/{th-C2G8Ur12.js → th-aFkhFNxp.js} +107 -881
  235. package/dist/themes/dark.css +1 -1
  236. package/dist/themes/light.css +1 -1
  237. package/dist/{tl-CBOmxz5r.js → tl-CA42NVfv.js} +107 -881
  238. package/dist/{tl-PH-CwafDrED.js → tl-PH-DMCUe7pP.js} +107 -881
  239. package/dist/{tr-C4iH8UJx.js → tr-BVjID0jl.js} +108 -882
  240. package/dist/{transitionSpinner-DbrWrpRU.js → transitionSpinner-MclJtdHE.js} +5 -5
  241. package/dist/tutorial-fC2iei2v.js +28 -0
  242. package/dist/types/ae-signature.d.ts +7 -3
  243. package/dist/types/antifraud.d.ts +7 -3
  244. package/dist/types/authentication.d.ts +7 -3
  245. package/dist/types/certificate-issuance.d.ts +7 -3
  246. package/dist/types/consent.d.ts +7 -3
  247. package/dist/types/cross-document-data-match.d.ts +7 -3
  248. package/dist/types/curp-validation.d.ts +7 -3
  249. package/dist/types/document-capture.d.ts +7 -3
  250. package/dist/types/dynamic-forms.d.ts +7 -3
  251. package/dist/types/ekyb.d.ts +7 -3
  252. package/dist/types/ekyc-prefill.d.ts +213 -0
  253. package/dist/types/ekyc.d.ts +7 -3
  254. package/dist/types/electronic-signature.d.ts +7 -3
  255. package/dist/types/email.d.ts +7 -3
  256. package/dist/types/extensibility.d.ts +63 -17
  257. package/dist/types/face-match.d.ts +7 -3
  258. package/dist/types/field-comparison.d.ts +7 -3
  259. package/dist/types/fiscal-qr.d.ts +7 -3
  260. package/dist/types/flow.d.ts +16 -3
  261. package/dist/types/geolocation.d.ts +7 -3
  262. package/dist/types/government-validation.d.ts +7 -3
  263. package/dist/types/id-selfie-flow.d.ts +7 -3
  264. package/dist/types/id-verification.d.ts +7 -3
  265. package/dist/types/id.d.ts +7 -3
  266. package/dist/types/identity-reuse.d.ts +7 -3
  267. package/dist/types/index.d.ts +4 -0
  268. package/dist/types/kyb-checks.d.ts +213 -0
  269. package/dist/types/phone.d.ts +7 -3
  270. package/dist/types/qe-signature.d.ts +7 -3
  271. package/dist/types/selfie.d.ts +7 -3
  272. package/dist/types/signature.d.ts +7 -3
  273. package/dist/types/step-up.d.ts +85 -0
  274. package/dist/types/watchlist.d.ts +7 -3
  275. package/dist/types/workflow.d.ts +7 -3
  276. package/dist/{typography-BF9d8wEc.js → typography-Dncyo-3D.js} +3 -11
  277. package/dist/{uk-BGYlvKb_.js → uk-HjZTXCOA.js} +107 -881
  278. package/dist/{uk-UA-CbxzkCL_.js → uk-UA-ChpoWDcU.js} +108 -882
  279. package/dist/{ur-BQgtsAfv.js → ur-CZkQHBM4.js} +107 -881
  280. package/dist/{useCameraPreview-BmkAmzAs.js → useCameraPreview-DrteOjaq.js} +1 -1
  281. package/dist/useCaptureHelpButton-B5zEGcaB.js +43 -0
  282. package/dist/{useIsDarkTheme-COJZngNK.js → useIsDarkTheme-DAs5RhsW.js} +1 -1
  283. package/dist/{useModuleLoader-CceEKjsh.js → useModuleLoader-C2fbLotc.js} +8 -3
  284. package/dist/{uz-DqOg1Fdv.js → uz-BCp_m_Om.js} +107 -881
  285. package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-HIccnts1.js} +19 -1
  286. package/dist/{verificationResult-m99Ragq6.js → verificationResult-sh4xut0K.js} +30 -27
  287. package/dist/{vi-COxdKkHn.js → vi-BvxcvDgc.js} +107 -881
  288. package/dist/video-selfie/styles.css +1 -1
  289. package/dist/video-selfie/styles.css.js +1 -1
  290. package/dist/video-selfie/video-selfie.es.js +64 -42
  291. package/dist/watchlist/watchlist.es.js +12 -8
  292. package/dist/{watchlistForBusiness-C2zxbavl.js → watchlistForBusiness-DnS1r-Ml.js} +38 -22
  293. package/dist/{withEndScreenTexts-BwNU-8-X.js → withEndScreenTexts-CHWofhk5.js} +212 -46
  294. package/dist/workflow/styles.css +1 -1
  295. package/dist/workflow/workflow.es.js +1 -530
  296. package/dist/workflow-DBS9eyu4.js +533 -0
  297. package/dist/{zh-CN-DfvYQGdE.js → zh-CN-DZRia1ir.js} +108 -882
  298. package/dist/{zh-CPQoDPxf.js → zh-DN_kUZaR.js} +107 -881
  299. package/dist/{zh-HANT-B4LzHH2y.js → zh-HANT-DisU_Tal.js} +107 -881
  300. package/dist/{zh-TW-DtvvhBYL.js → zh-TW-BJzCsdPP.js} +107 -881
  301. package/package.json +44 -12
  302. package/dist/autoFocusTitle-BxsSeMSB.js +0 -32
  303. package/dist/browser-ponyfill-CHlXHPpU.js +0 -441
  304. package/dist/cameraOverlay-Be1PFI8S.js +0 -2
  305. package/dist/check-icon-BWTjhSuA.js +0 -48
  306. package/dist/dashboardTheme-COBidrbH.js +0 -246
  307. package/dist/dateInputComposed-CONPVayx.js +0 -1
  308. package/dist/denied-Btt81vUD.js +0 -1871
  309. package/dist/devWarn-Cr7MglXv.js +0 -2628
  310. package/dist/documentCapture-DGCraCO3.js +0 -2
  311. package/dist/dropdownComposed-DyZXfcTf.js +0 -1
  312. package/dist/ekybModule-D-czIusz.js +0 -2
  313. package/dist/ekycModule-CkBRa6h2.js +0 -2
  314. package/dist/ekycModule-WlhVn8AO.js +0 -321
  315. package/dist/es-419-CTB15v-l.js +0 -3231
  316. package/dist/esm-BTUEHyry.js +0 -430
  317. package/dist/expiredId-DpbWqSzB.js +0 -80
  318. package/dist/faceMatch-CRbIcwK2.js +0 -2
  319. package/dist/fieldComparison-DKQNK0-r.js +0 -2
  320. package/dist/fieldComparison-OwGIeOM5.js +0 -109
  321. package/dist/flipAnimation-D-5tokFC.js +0 -3275
  322. package/dist/inputComposed-5mLbxAZJ.js +0 -1
  323. package/dist/numberedStep-CqgNwc_a.js +0 -13
  324. package/dist/otpInput-B_iLvmIn.js +0 -157
  325. package/dist/passwordInputComposed-NtiseM85.js +0 -74
  326. package/dist/pdfViewer-7FzYV8l3.js +0 -2
  327. package/dist/radioGroupComposed-CocqpoKe.js +0 -160
  328. package/dist/radioGroupComposed-DlQ-fNrF.js +0 -1
  329. package/dist/reload-icon-BR1POqkD.js +0 -70
  330. package/dist/richText-CRWB2afV.js +0 -1549
  331. package/dist/spacer-CwyNauIk.js +0 -733
  332. package/dist/spinner-DEZJxLSc.js +0 -88
  333. package/dist/sr-YU-xCb5qxap.js +0 -3235
  334. package/dist/useCaptureHelpButton-D40hYyD7.js +0 -88
  335. /package/dist/{aligndevicelottie-BHWuptBk.js → aligndevicelottie-DroBRtbt.js} +0 -0
  336. /package/dist/{back-tutorial-BYZr11eV.js → back-tutorial-ydxRtY-Y.js} +0 -0
  337. /package/dist/{backdevicelottie-JflQKxT_.js → backdevicelottie-hv8vbwYH.js} +0 -0
  338. /package/dist/{blurdevicelottie-CWuMQEHL.js → blurdevicelottie-Cgu4hKn7.js} +0 -0
  339. /package/dist/{countryDefinitions-6FOOLcB2.js → countryDefinitions-DlsV3Tf8.js} +0 -0
  340. /package/dist/{defineProperty-CUC2zCmh.js → defineProperty-CRYuXE79.js} +0 -0
  341. /package/dist/{flip-animation-BqTKEBcW.js → flip-animation-CJhh7l_J.js} +0 -0
  342. /package/dist/{frontdevicelottie-BWD-NCfG.js → frontdevicelottie-vyO3BJJe.js} +0 -0
  343. /package/dist/{glaredevicelottie-Cjy50jGc.js → glaredevicelottie-DrgkRjFh.js} +0 -0
  344. /package/dist/{id-laser-h-By7lMim8.js → id-laser-h-CUz29uFc.js} +0 -0
  345. /package/dist/{id-laser-v-BCPAN2x5.js → id-laser-v-Bnf10QJp.js} +0 -0
  346. /package/dist/{id-tutorial-B9cUQuf0.js → id-tutorial-DGwvKAMs.js} +0 -0
  347. /package/dist/{lottie_light-DywVSPMT.js → lottie_light-BXXuEKyZ.js} +0 -0
  348. /package/dist/{passport-tutorial-TSZzEGqb.js → passport-tutorial-DoqqyBXo.js} +0 -0
  349. /package/dist/{pdf.worker.min-D7ZNTVBZ.js → pdf.worker.min-Cm2oniEB.js} +0 -0
  350. /package/dist/{policyUrls-Bpacx_pp.js → policyUrls-Hvb4jPfF.js} +0 -0
  351. /package/dist/{purify.es-DZazHwBu.js → purify.es-DIIgrZ-E.js} +0 -0
  352. /package/dist/{selfieTutorial-CLJAEuXG.js → selfieTutorial-BTewRjM5.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 };