@incodetech/web 2.4.1 → 2.5.0-rc.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 (365) hide show
  1. package/THIRD_PARTY_NOTICES.txt +1 -4
  2. package/dist/{GeolocationPermissionDenied-GbB9B3J0.js → GeolocationPermissionDenied-C7oh9rAr.js} +23 -8
  3. package/dist/Password-CV69m5l9.js +212 -0
  4. package/dist/RadioGroup-DmCpmlJN.js +123 -0
  5. package/dist/RequiredLegend-CLQ0HX7d.js +16 -0
  6. package/dist/RequiredMarker-CAqxArxr.js +16 -0
  7. package/dist/TextField-D41q5WTe.js +166 -0
  8. package/dist/ae-signature/ae-signature.es.js +4 -4
  9. package/dist/{af-ZA-Dm5i-KRC.js → af-ZA-Bp16S_5w.js} +135 -881
  10. package/dist/{ageVerification-n-1fouaD.js → ageVerification-BBnJYo9K.js} +10 -8
  11. package/dist/{am-UBTEdpJv.js → am-CWJUWWuF.js} +135 -881
  12. package/dist/antifraud/antifraud.es.js +5 -4
  13. package/dist/applyStudioConfig-20qjppIu.js +126 -0
  14. package/dist/{ar-AE--KjG2EAr.js → ar-AE-O12WV51F.js} +136 -882
  15. package/dist/{ar-RFuhholc.js → ar-DgUYRgR_.js} +135 -881
  16. package/dist/{ar-EG-y8SWJjy1.js → ar-EG-C7LOd56j.js} +135 -881
  17. package/dist/assertClassBrand-F6pL6aIr.js +17 -0
  18. package/dist/authentication/authentication.es.js +9 -6
  19. package/dist/autoFocusTitle-C2Ro8zdn.js +19 -0
  20. package/dist/{az-4Z0ZZq7T.js → az-DusLpWep.js} +135 -881
  21. package/dist/{back-horizontal-hint-BztyPanp.js → back-horizontal-hint-Bci98ivl.js} +1 -1
  22. package/dist/{back-vertical-hint-BSzA4QbJ.js → back-vertical-hint-DyPCItxn.js} +1 -1
  23. package/dist/base.css +1 -1
  24. package/dist/{baseTutorial-BixkM88z.js → baseTutorial-BBwEV7AE.js} +9 -7
  25. package/dist/{bn-CNhjOqja.js → bn-CX4BixDE.js} +135 -881
  26. package/dist/{bottomSheet-B4REej8W.js → bottomSheet-DRRJstLk.js} +3 -3
  27. package/dist/{bs-Culcuxab.js → bs-DTnRhENx.js} +134 -880
  28. package/dist/{ca-h1xwo6CW.js → ca-DBI3m_a_.js} +134 -880
  29. package/dist/cameraOverlay-Bz9UJCHp.js +2 -0
  30. package/dist/{cameraOverlayHeader-D4Bjr6Fw.js → cameraOverlayHeader-VCCUFLoy.js} +9 -8
  31. package/dist/{cameraView-BpdAdfIK.js → cameraView-CKWEmlho.js} +13 -14
  32. package/dist/capture-B6vGKsRf.js +3 -0
  33. package/dist/capture-B_WX2h2H.js +2 -0
  34. package/dist/{tutorial-HfSD-QZ3.js → capture-BszIVhdg.js} +226 -82
  35. package/dist/capture-wy0SZwxu.js +754 -0
  36. package/dist/captureButtonIcon-DhTUlcGq.js +1 -0
  37. package/dist/captureFocusContext-OuX65pCg.js +718 -0
  38. package/dist/captureFooter-5KiLmkNi.js +47 -0
  39. package/dist/{ceb-pTDH3h1x.js → ceb-fG0bt_zV.js} +135 -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-CALR7EFM.js → checkbox-tpW2Q3Zi.js} +4 -4
  44. package/dist/chooser-CqCxdQx8.js +1517 -0
  45. package/dist/connectionError-D67rCsgf.js +100 -0
  46. package/dist/consent/consent.es.js +19 -14
  47. package/dist/consent/styles.css +1 -1
  48. package/dist/consent/styles.css.js +1 -1
  49. package/dist/{countryDefinitions-BO9OSKQO.js → countryDefinitions-UXJ0maPk.js} +6 -0
  50. package/dist/{countryFlag-2Vj85OIZ.js → countryFlag-CjuXF_8C.js} +1 -1
  51. package/dist/{countrySelector-DKvvYxP6.js → countrySelector-mjGgTZBA.js} +6 -5
  52. package/dist/cross-document-data-match/cross-document-data-match.es.js +5 -4
  53. package/dist/{cs-CZ-CiATe8nW.js → cs-CZ-DCggApzq.js} +134 -880
  54. package/dist/{cs-CrQuSSOI.js → cs-DsBY9V_4.js} +134 -880
  55. package/dist/curp-validation/curp-validation.es.js +97 -96
  56. package/dist/curp-validation/styles.css +1 -1
  57. package/dist/curp-validation/styles.css.js +1 -1
  58. package/dist/{customFields-DRwjotY-.js → customFields-COihEvWm.js} +33 -20
  59. package/dist/{customWatchlist-DmROVUfp.js → customWatchlist-CE5WPSMm.js} +11 -9
  60. package/dist/{da-DK-CgrU79mp.js → da-DK-B7LXeFYP.js} +134 -880
  61. package/dist/dashboardTheme-Cxl2WlSK.js +388 -0
  62. package/dist/{dateInputComposed-Bu7vM-M4.js → dateInputComposed-DqOzOxfP.js} +4 -5
  63. package/dist/dateInputComposed-kP5wiNvH.js +1 -0
  64. package/dist/{de-D0xnkswj.js → de-BhQ2hOut.js} +134 -880
  65. package/dist/denied-D4oFpTuV.js +272 -0
  66. package/dist/devWarn-SLn4Qexk.js +1034 -0
  67. package/dist/deviceWallet-CPP5AFbd.js +37 -0
  68. package/dist/{digitalIdRedirect-Dpv37Mbi.js → digitalIdRedirect-DqhYI_sj.js} +4 -4
  69. package/dist/{digitalIdUpload-DKXe-_GE.js → digitalIdUpload-p7Zcbeom.js} +37 -15
  70. package/dist/document-capture/document-capture.es.js +1 -1
  71. package/dist/document-capture/styles.css +1 -1
  72. package/dist/document-capture/styles.css.js +1 -1
  73. package/dist/{documentCapture-DlBMtLvL.js → documentCapture-DXG8TB9t.js} +136 -72
  74. package/dist/documentCapture-DczZSZ4A.js +2 -0
  75. package/dist/dropdownComposed-C3uN_APy.js +1 -0
  76. package/dist/{dropdownComposed-B-qTBcja.js → dropdownComposed-CUBU43V3.js} +8 -6
  77. package/dist/dynamic-forms/dynamic-forms.es.js +62 -35
  78. package/dist/ekyb/ekyb.es.js +1 -1
  79. package/dist/ekyb/styles.css +1 -1
  80. package/dist/ekyb/styles.css.js +1 -1
  81. package/dist/{ekybModule-qkUiNFdJ.js → ekybModule-mGfuTVTJ.js} +109 -89
  82. package/dist/ekybModule-xZtYttfn.js +2 -0
  83. package/dist/ekyc/ekyc.es.js +1 -1
  84. package/dist/ekyc/styles.css +1 -1
  85. package/dist/ekyc/styles.css.js +1 -1
  86. package/dist/ekyc-prefill/ekyc-prefill.es.js +2 -0
  87. package/dist/ekyc-prefill/styles.css +2 -0
  88. package/dist/ekyc-prefill/styles.css.js +1 -0
  89. package/dist/ekycModule-Cp-GdWbC.js +789 -0
  90. package/dist/ekycModule-DXy4cT0v.js +2 -0
  91. package/dist/ekycPrefillModule-BKbRJuek.js +233 -0
  92. package/dist/ekycPrefillModule-Cdu0zr52.js +2 -0
  93. package/dist/{el-B5gLXHxC.js → el-D-zg7VzS.js} +134 -880
  94. package/dist/{el-GR-DPUvlcvr.js → el-GR-D9eldyAW.js} +134 -880
  95. package/dist/electronic-signature/electronic-signature.es.js +1 -1
  96. package/dist/{electronic-signature-Jx8qWrW-.js → electronic-signature-uWLkdb8_.js} +55 -36
  97. package/dist/email/email.es.js +21 -16
  98. package/dist/{emailInput-ClX3Lu8X.js → emailInput-Bd8XECrW.js} +23 -12
  99. package/dist/{en-DG-DOwBuCCl.js → en-DG-CKwP-05W.js} +135 -881
  100. package/dist/{en-DNuMvR7-.js → en-DY1lnV9V.js} +135 -881
  101. package/dist/{errorContent-B_pH1MX7.js → errorContent-CqXgrkbQ.js} +21 -20
  102. package/dist/errorParams-B7BZHaA4.js +37 -0
  103. package/dist/es-419-DCPTzJnF.js +5 -0
  104. package/dist/{es-DNl7ceDm.js → es-BKio8b3N.js} +135 -881
  105. package/dist/{es-ES-BF9vl0Um.js → es-ES-MZM-tZ4f.js} +134 -880
  106. package/dist/{es-MX-Brp4FXN8.js → es-MX-Bwa400AE.js} +134 -880
  107. package/dist/{et-D5pPP4r0.js → et-CxKV1DgL.js} +136 -882
  108. package/dist/expiredId-BGfpQzNG.js +67 -0
  109. package/dist/extensibility.es.js +382 -55
  110. package/dist/{fa-IR-BoyK-lax.js → fa-IR-C1bLFtOi.js} +135 -881
  111. package/dist/face-match/face-match.es.js +1 -1
  112. package/dist/face-match/styles.css +1 -1
  113. package/dist/face-match/styles.css.js +1 -1
  114. package/dist/faceMatch-ClTodgeI.js +2 -0
  115. package/dist/{faceMatch-Dp1AGBtg.js → faceMatch-DpccWhgb.js} +54 -71
  116. package/dist/{fi-FI-mYdAUbtG.js → fi-FI-BC_3lqbM.js} +134 -880
  117. package/dist/field-comparison/field-comparison.es.js +1 -1
  118. package/dist/fieldComparison-CXSUE89Z.js +2 -0
  119. package/dist/fieldComparison-D2c7jots.js +126 -0
  120. package/dist/{fieldLabelHint-CxjArYkQ.js → fieldLabelHint-yMZjXK6p.js} +3 -3
  121. package/dist/{finalSuccessScreen-BgPVGAr4.js → finalSuccessScreen-D1AeAOtK.js} +31 -22
  122. package/dist/fiscal-qr/fiscal-qr.es.js +32 -26
  123. package/dist/flipAnimation-DwvNk514.js +46 -0
  124. package/dist/flipCapturedCardEligibility-C8ppBgP9.js +210 -0
  125. package/dist/flow/flow.es.js +315 -287
  126. package/dist/flow/shell/styles.css +1 -1
  127. package/dist/flow/shell/styles.css.js +1 -1
  128. package/dist/flow/styles.css +1 -1
  129. package/dist/formField-Bum3oh1A.js +49 -0
  130. package/dist/{fr-B4R5fgnm.js → fr-BGr4ZZSw.js} +134 -880
  131. package/dist/{fr-CA-DJSwRuWt.js → fr-CA-COfhYgrk.js} +134 -880
  132. package/dist/{front-horizontal-hint-DEHmtcdg.js → front-horizontal-hint-LxyNVfjy.js} +1 -1
  133. package/dist/{front-vertical-hint-Cb1NO-xT.js → front-vertical-hint-BKEg_DRs.js} +1 -1
  134. package/dist/geolocation/geolocation.es.js +15 -12
  135. package/dist/government-validation/government-validation.es.js +7 -6
  136. package/dist/{he-D2RDlnbd.js → he-BGdP9Cfd.js} +135 -881
  137. package/dist/helpButtonConfig-BFragC_J.js +24 -0
  138. package/dist/{hi-DFXhGN9O.js → hi-B8upUDpu.js} +135 -881
  139. package/dist/{hmn-BlNbfL-D.js → hmn-DOK-cZdX.js} +135 -881
  140. package/dist/{homeScreen-DjzxBrYL.js → homeScreen-CPaZiLqi.js} +26 -14
  141. package/dist/{incodeComponent-B-lwJJCV.js → hooks-C6m_ILVe.js} +256 -280
  142. package/dist/{hr-DArr3n62.js → hr-BjtqyvXa.js} +134 -880
  143. package/dist/{ht-CAd-Hmi1.js → ht-CbbFp5XL.js} +135 -881
  144. package/dist/{hu-CulT8eq_.js → hu-BXk1xFve.js} +135 -881
  145. package/dist/{icons-C2LgNjXy.js → icons-DLZTxOV2.js} +153 -80
  146. package/dist/id/id.es.js +167 -197
  147. package/dist/id/styles.css +1 -1
  148. package/dist/id/styles.css.js +1 -1
  149. package/dist/{id-D2VZL6b-.js → id-BrJu1D4k.js} +134 -880
  150. package/dist/{id-back-of-card-C7Au2tqk.js → id-back-of-card-BhF5T4fC.js} +1 -1
  151. package/dist/{id-back-of-card-vertical-CtQBFw8w.js → id-back-of-card-vertical-BudLiGPR.js} +1 -1
  152. package/dist/{id-front-of-card-BmHL_keG.js → id-front-of-card-CiGcJhVW.js} +1 -1
  153. package/dist/{id-front-of-card-vertical-DkNUn2Vx.js → id-front-of-card-vertical-C_GyecLf.js} +1 -1
  154. package/dist/id-selfie-flow/id-selfie-flow.es.js +13 -11
  155. package/dist/id-selfie-flow/styles.css +1 -1
  156. package/dist/id-verification/id-verification.es.js +12 -6
  157. package/dist/idFlipTransition-DMAbw1_Y.js +154 -0
  158. package/dist/{idOcr-BWG3vj8j.js → idOcr-D9zxy2eU.js} +64 -37
  159. package/dist/identity-reuse/identity-reuse.es.js +38 -25
  160. package/dist/identity-reuse/styles.css.js +1 -0
  161. package/dist/incodeComponent-DPY-ikO3.js +235 -0
  162. package/dist/incodeModule-Dyy5PfM4.js +41 -0
  163. package/dist/index.es.js +4 -3
  164. package/dist/{inputComposed-B35soRFg.js → inputComposed-BG3XgpYE.js} +4 -4
  165. package/dist/{it-fs9OkGbv.js → it-DI-TPE-K.js} +135 -881
  166. package/dist/{ja-BvKVI6Oo.js → ja-3XIFqaXu.js} +135 -881
  167. package/dist/{ja-JP-C5-gDGuX.js → ja-JP-BAeRWiVk.js} +136 -882
  168. package/dist/{jv-CyId7aPo.js → jv-BhjQxxBl.js} +134 -880
  169. package/dist/{ka-pqIPc2el.js → ka-Bx4-RrZ_.js} +135 -881
  170. package/dist/{kk-DK7mWl6k.js → kk-Ct91ZRbP.js} +134 -880
  171. package/dist/{km-BaJYdDrm.js → km-BWQuuNXz.js} +142 -888
  172. package/dist/{ko-CdYIGTH_.js → ko-Cve9iLc7.js} +135 -881
  173. package/dist/{ko-KP-Q3GGdDp3.js → ko-KP-0iLztCuj.js} +135 -881
  174. package/dist/{ky-Bc7ZXIXy.js → ky-DGt4vj88.js} +134 -880
  175. package/dist/kyb-checks/kyb-checks.es.js +2 -0
  176. package/dist/kyb-checks/styles.css +2 -0
  177. package/dist/kyb-checks/styles.css.js +1 -0
  178. package/dist/kybChecksModule-BlLRwSFe.js +2 -0
  179. package/dist/kybChecksModule-DmjxRBhO.js +345 -0
  180. package/dist/{lo-0jgAavCe.js → lo-DPvsfR2F.js} +135 -881
  181. package/dist/{lt-DDEjR6RD.js → lt-BMI5NrHt.js} +134 -880
  182. package/dist/{lv-Ddzb_N3H.js → lv-Bpw5rGRP.js} +135 -881
  183. package/dist/{mandatoryConsent-C21a2d2-.js → mandatoryConsent-Blhxc0KK.js} +23 -16
  184. package/dist/{manualCaptureButton-1KC7N_B-.js → manualCaptureButton-B1hLcNl4.js} +8 -7
  185. package/dist/{manualCaptureButton-C5VMDamt.js → manualCaptureButton-Cr-FQ3-N.js} +16 -12
  186. package/dist/{mk-SJwou4aX.js → mk-C9Z-5xUg.js} +135 -881
  187. package/dist/{mn-7B86xjpb.js → mn-p0zBw-tm.js} +134 -880
  188. package/dist/{ms-Bb-SlQCF.js → ms-CF8aT_Qq.js} +134 -880
  189. package/dist/{my-3ci4RJZY.js → my-CqWwTa_5.js} +135 -881
  190. package/dist/{nb-NO-DpZAni0R.js → nb-NO-C7Hb8Ok5.js} +134 -880
  191. package/dist/{ne-Dncyvxqt.js → ne-B5InVJ21.js} +135 -881
  192. package/dist/{nl-C1mnzCBH.js → nl-aJiBBLFg.js} +134 -880
  193. package/dist/{optionAccessibleLabel-DG8Lks9f.js → optionAccessibleLabel-JFrEz0Ax.js} +27 -11
  194. package/dist/otpInput-Bn8PHFh7.js +245 -0
  195. package/dist/{page-DINsqGIw.js → page-b7Hx6klV.js} +102 -79
  196. package/dist/{incode-logo-B1bl2S0z.js → pageUiConfig-BlsOWl2d.js} +88 -14
  197. package/dist/{passport-horizontal-hint-DgNc6F0-.js → passport-horizontal-hint-Bn18pckF.js} +1 -1
  198. package/dist/{passport-vertical-hint-B-toVsfT.js → passport-vertical-hint-D_bvTNZY.js} +1 -1
  199. package/dist/passwordRequirements-13qw_WSJ.js +49 -0
  200. package/dist/{pdf-BKHLi5Ac.js → pdf-DO_HvE8T.js} +2 -17
  201. package/dist/pdfViewer-BT-O-Zj1.js +2 -0
  202. package/dist/{pdfViewer-C8xHykz1.js → pdfViewer-D_sXx3SF.js} +11 -14
  203. package/dist/permissionInstructionList-CGo9uSeQ.js +43 -0
  204. package/dist/{permissions-B7-lHrFm.js → permissions-CS58hLHp.js} +84 -53
  205. package/dist/phone/phone.es.js +16 -12
  206. package/dist/{phoneInputComposed-Di4acsc0.js → phoneInputComposed-Dc2lHg4Z.js} +49 -12
  207. package/dist/{pl-CWr2fVBg.js → pl-CDmSpQ_-.js} +134 -880
  208. package/dist/preloadableLazy-KWGuHoqn.js +43 -0
  209. package/dist/{processing-z5wuXrKw.js → processing-C5A54RCC.js} +2 -2
  210. package/dist/{progressBar-BcKFaXZR.js → progressBar-CmkJY5xT.js} +2 -2
  211. package/dist/{pt-AGz2XGAK.js → pt-0SO_cPU9.js} +135 -881
  212. package/dist/{pt-BR-CMvTsOqE.js → pt-BR-BEfs5M8G.js} +135 -881
  213. package/dist/{pt-PT-KzIM0vpf.js → pt-PT-ONBmg0BR.js} +135 -881
  214. package/dist/qe-signature/qe-signature.es.js +4 -4
  215. package/dist/realtimeFeedbackConfig-DeZksjlR.js +16 -0
  216. package/dist/redirect-to-mobile/redirect-to-mobile.es.js +66 -62
  217. package/dist/redirect-to-mobile/styles.css +1 -1
  218. package/dist/redirect-to-mobile/styles.css.js +1 -1
  219. package/dist/{registerIncodeElement-D_cn4dSI.js → registerIncodeElement-FoirFu19.js} +1 -1
  220. package/dist/{resendTimer-On_zrMLS.js → resendTimer-B7aR2zn3.js} +2 -2
  221. package/dist/richText-DlHC_sMB.js +1761 -0
  222. package/dist/{ro-DYdJJDKn.js → ro-ChyvDsu3.js} +135 -881
  223. package/dist/{ru-C1cguVi2.js → ru-B_vdxKv-.js} +134 -880
  224. package/dist/{ru-RU-18JeDfwz.js → ru-RU-CrvUlCJj.js} +134 -880
  225. package/dist/{sanitizeSvg-BC-qLUgS.js → sanitizeSvg-IfqLuP1N.js} +1 -1
  226. package/dist/selfie/selfie.es.js +37 -14
  227. package/dist/selfie/styles.css +1 -1
  228. package/dist/selfie/styles.css.js +1 -1
  229. package/dist/signature/signature.es.js +18 -13
  230. package/dist/{sk-CtIcnYOo.js → sk-ljMYKwHQ.js} +136 -882
  231. package/dist/{sl-DS_Gc0Wc.js → sl-BbVJSIEt.js} +135 -881
  232. package/dist/{smsTabContent-vE0WyKtg.js → smsTabContent-BOIszuLx.js} +40 -27
  233. package/dist/{so-dqMTkg5E.js → so-DTymvbrx.js} +135 -881
  234. package/dist/spacer-DQdgPJjU.js +1100 -0
  235. package/dist/spinner-DQf6JseL.js +69 -0
  236. package/dist/{sr-DgHGiiWM.js → sr-JVvblELi.js} +134 -880
  237. package/dist/{sr-Latn-Du7_x_Tr.js → sr-Latn-9I-jEoNt.js} +142 -888
  238. package/dist/sr-YU-AHJXObyx.js +5 -0
  239. package/dist/{sv-SE-Dw61hRjx.js → sv-SE-MhrEy6Di.js} +134 -880
  240. package/dist/{sw-De-Jo8XY.js → sw-2Mtjggv_.js} +135 -881
  241. package/dist/{th-BJixOgsM.js → th-CRCVvVIy.js} +135 -881
  242. package/dist/{th-TH-VyhljC5U.js → th-TH-BJP2vgt1.js} +135 -881
  243. package/dist/themes/dark.css +1 -1
  244. package/dist/themes/light.css +1 -1
  245. package/dist/{tl-DhjdqhA4.js → tl-CI98qs3U.js} +135 -881
  246. package/dist/{tl-PH-D2S2Irx7.js → tl-PH-Bwmbtl_j.js} +135 -881
  247. package/dist/{tr-BJAuvOwN.js → tr-Bjsibm46.js} +135 -881
  248. package/dist/{transitionSpinner-BZO916B1.js → transitionSpinner-BTr1yrwy.js} +7 -7
  249. package/dist/tutorial-DO3fs1fY.js +28 -0
  250. package/dist/types/ae-signature.d.ts +17 -4
  251. package/dist/types/antifraud.d.ts +17 -4
  252. package/dist/types/authentication.d.ts +17 -4
  253. package/dist/types/certificate-issuance.d.ts +17 -4
  254. package/dist/types/consent.d.ts +17 -4
  255. package/dist/types/cross-document-data-match.d.ts +17 -4
  256. package/dist/types/curp-validation.d.ts +17 -4
  257. package/dist/types/document-capture.d.ts +17 -4
  258. package/dist/types/dynamic-forms.d.ts +17 -4
  259. package/dist/types/ekyb.d.ts +17 -4
  260. package/dist/types/ekyc-prefill.d.ts +213 -0
  261. package/dist/types/ekyc.d.ts +17 -4
  262. package/dist/types/electronic-signature.d.ts +17 -4
  263. package/dist/types/email.d.ts +17 -4
  264. package/dist/types/extensibility.d.ts +204 -37
  265. package/dist/types/face-match.d.ts +17 -4
  266. package/dist/types/field-comparison.d.ts +17 -4
  267. package/dist/types/fiscal-qr.d.ts +17 -4
  268. package/dist/types/flow.d.ts +38 -5
  269. package/dist/types/geolocation.d.ts +17 -4
  270. package/dist/types/government-validation.d.ts +17 -4
  271. package/dist/types/id-selfie-flow.d.ts +17 -4
  272. package/dist/types/id-verification.d.ts +17 -4
  273. package/dist/types/id.d.ts +17 -4
  274. package/dist/types/identity-reuse.d.ts +18 -5
  275. package/dist/types/index.d.ts +92 -10
  276. package/dist/types/kyb-checks.d.ts +213 -0
  277. package/dist/types/phone.d.ts +17 -4
  278. package/dist/types/qe-signature.d.ts +17 -4
  279. package/dist/types/redirect-to-mobile.d.ts +1 -1
  280. package/dist/types/selfie.d.ts +17 -4
  281. package/dist/types/signature.d.ts +17 -4
  282. package/dist/types/video-selfie.d.ts +1 -1
  283. package/dist/types/watchlist.d.ts +17 -4
  284. package/dist/types/workflow.d.ts +17 -4
  285. package/dist/{typography-8iwtPQbj.js → typography-CyT20XIA.js} +3 -11
  286. package/dist/{uk-UA-BZR90qDZ.js → uk-UA-DmKAplUk.js} +135 -881
  287. package/dist/{uk-CcU91ee-.js → uk-fCdIfhh5.js} +134 -880
  288. package/dist/{ur-CIXtUYHK.js → ur-Dh9AF1hS.js} +135 -881
  289. package/dist/useCameraPreview-hNLhri73.js +93 -0
  290. package/dist/useCaptureHelpButton-CSuQmlEp.js +43 -0
  291. package/dist/useIsDarkTheme-DoOFy9TN.js +27 -0
  292. package/dist/{useModuleLoader-BdIp6TNQ.js → useModuleLoader-BCYS1xLP.js} +31 -18
  293. package/dist/{uz-CeLVgwAD.js → uz-DYarfGyT.js} +135 -881
  294. package/dist/{vendor-preact-C0jX1Cbq.js → vendor-preact-CjnloSla.js} +147 -5
  295. package/dist/{verificationResult-C2gxbmAo.js → verificationResult-C8jlwbOw.js} +30 -27
  296. package/dist/{vi-CgfGVVLY.js → vi-uK03Bfuc.js} +135 -881
  297. package/dist/video-selfie/styles.css +1 -1
  298. package/dist/video-selfie/styles.css.js +1 -1
  299. package/dist/video-selfie/video-selfie.es.js +120 -77
  300. package/dist/watchlist/watchlist.es.js +12 -9
  301. package/dist/{watchlistForBusiness-eOPtmu7z.js → watchlistForBusiness-DjSYKjVv.js} +63 -22
  302. package/dist/{withEndScreenTexts-aFUEeBgM.js → withEndScreenTexts-TlaaD6Qn.js} +253 -55
  303. package/dist/workflow/styles.css +1 -1
  304. package/dist/workflow/workflow.es.js +36 -28
  305. package/dist/{zh-CN-BOxod1_T.js → zh-CN-BkQoAg2R.js} +136 -882
  306. package/dist/{zh-HANT-zAahQ8nP.js → zh-HANT-DRh68ryN.js} +135 -881
  307. package/dist/{zh-B-kjeCig.js → zh-JlU3mjl9.js} +134 -880
  308. package/dist/{zh-TW-B0v7GYYG.js → zh-TW-ByGAHrvB.js} +135 -881
  309. package/package.json +48 -12
  310. package/dist/autoFocusTitle-Cy0J3lvr.js +0 -32
  311. package/dist/browser-ponyfill-DT11p-Ob.js +0 -441
  312. package/dist/cameraOverlay-DQEG24io.js +0 -2
  313. package/dist/check-icon-BpjpKqhJ.js +0 -48
  314. package/dist/connectionError-Cf6iGFyx.js +0 -45
  315. package/dist/dashboardTheme-CkyISqIs.js +0 -247
  316. package/dist/dateInputComposed-cgZGBSiu.js +0 -1
  317. package/dist/denied-ByGDWkTW.js +0 -1871
  318. package/dist/deviceWallet-C4UT05wN.js +0 -66
  319. package/dist/documentCapture-Dh1ftzGG.js +0 -2
  320. package/dist/dropdownComposed-DmT4s8VM.js +0 -1
  321. package/dist/ekybModule-BHInfPHS.js +0 -2
  322. package/dist/ekycModule-B2cfT3zi.js +0 -2
  323. package/dist/ekycModule-BQPl1KQT.js +0 -300
  324. package/dist/es-419-BU7r2Fvh.js +0 -3193
  325. package/dist/esm-15CISqPe.js +0 -430
  326. package/dist/expiredId-GIHjGAuY.js +0 -80
  327. package/dist/faceMatch-bXhejzhf.js +0 -2
  328. package/dist/fieldComparison-BirXQb7f.js +0 -2
  329. package/dist/fieldComparison-D8PL0eR1.js +0 -109
  330. package/dist/flipAnimation-BgMPQ8Ma.js +0 -3048
  331. package/dist/formField-0k8wVfXl.js +0 -60
  332. package/dist/incodeModule-DiVtqekm.js +0 -68
  333. package/dist/inputComposed-CKujYUSB.js +0 -1
  334. package/dist/numberedStep-CvbL3ht2.js +0 -13
  335. package/dist/otpInput-_B7xEZUU.js +0 -157
  336. package/dist/passwordInputComposed-B3WKjODU.js +0 -74
  337. package/dist/pdfViewer-DcB41xr7.js +0 -2
  338. package/dist/radioGroupComposed-CIbHjX4v.js +0 -160
  339. package/dist/radioGroupComposed-eXNWg1ez.js +0 -1
  340. package/dist/reload-icon-elAFo9-k.js +0 -70
  341. package/dist/richText-aCnLd3j2.js +0 -1549
  342. package/dist/spacer-lcnhSC-5.js +0 -741
  343. package/dist/spinner-B8BswhBb.js +0 -88
  344. package/dist/sr-YU-YuZu7wdb.js +0 -3197
  345. package/dist/statusPage-WIsGgf_m.js +0 -36
  346. package/dist/uiConfig-CwGL3QjP.js +0 -2589
  347. package/dist/useCaptureHelpButton-BTUZs3Ev.js +0 -86
  348. package/dist/useCoverMedia-VLw3OYN_.js +0 -149
  349. /package/dist/{aligndevicelottie-BARt-rhe.js → aligndevicelottie-BEKzL4SB.js} +0 -0
  350. /package/dist/{back-tutorial-CZrMmj1_.js → back-tutorial-B9W63fa-.js} +0 -0
  351. /package/dist/{backdevicelottie-CIM3ekd8.js → backdevicelottie-DsN8QBV3.js} +0 -0
  352. /package/dist/{blurdevicelottie-BRyXfLB6.js → blurdevicelottie-DkV7Kwo4.js} +0 -0
  353. /package/dist/{defineProperty-CjeJoXkx.js → defineProperty-B4FQTz14.js} +0 -0
  354. /package/dist/{flip-animation-BU5LNKYx.js → flip-animation-DJVnWWL5.js} +0 -0
  355. /package/dist/{frontdevicelottie-arpyu_Fz.js → frontdevicelottie-DiW1Wmya.js} +0 -0
  356. /package/dist/{glaredevicelottie-TwTFxe7h.js → glaredevicelottie-CK-fnX_s.js} +0 -0
  357. /package/dist/{id-laser-h-Dr-hBxrq.js → id-laser-h-6Am_cjM8.js} +0 -0
  358. /package/dist/{id-laser-v-D_r0QNY8.js → id-laser-v-DXoF3flH.js} +0 -0
  359. /package/dist/{id-tutorial-DM9Pkfs-.js → id-tutorial-DkKH3eTE.js} +0 -0
  360. /package/dist/{lottie_light-aMg9Q9iO.js → lottie_light-Bam05Bc9.js} +0 -0
  361. /package/dist/{passport-tutorial-CKZZuDf_.js → passport-tutorial-D3Fpk-Tj.js} +0 -0
  362. /package/dist/{pdf.worker.min-BM1b2w9V.js → pdf.worker.min-D0hm-8jN.js} +0 -0
  363. /package/dist/{policyUrls-B3M8nLRh.js → policyUrls-B3TEaluh.js} +0 -0
  364. /package/dist/{purify.es-0fCPkEV1.js → purify.es-DhY3JLdI.js} +0 -0
  365. /package/dist/{selfieTutorial-Dz6lDFMn.js → selfieTutorial-DnsRD1Z9.js} +0 -0
@@ -0,0 +1,1034 @@
1
+ import { S as K, T as k, b as y, f as T, h as d, r as C, v as q, x as u } from "./vendor-preact-CjnloSla.js";
2
+ //#region src/i18n/bundledTranslationLoaders.ts
3
+ var bundledTranslationLoaders = {
4
+ "en": () => import("./en-DY1lnV9V.js"),
5
+ "en-DG": () => import("./en-DG-CKwP-05W.js"),
6
+ "es": () => import("./es-BKio8b3N.js"),
7
+ "es-ES": () => import("./es-ES-MZM-tZ4f.js"),
8
+ "sr": () => import("./sr-JVvblELi.js"),
9
+ "sr-Latn": () => import("./sr-Latn-9I-jEoNt.js"),
10
+ "fr": () => import("./fr-BGr4ZZSw.js"),
11
+ "pt-BR": () => import("./pt-BR-BEfs5M8G.js"),
12
+ "pt": () => import("./pt-0SO_cPU9.js"),
13
+ "bn": () => import("./bn-CX4BixDE.js"),
14
+ "zh": () => import("./zh-JlU3mjl9.js"),
15
+ "hi": () => import("./hi-B8upUDpu.js"),
16
+ "id": () => import("./id-BrJu1D4k.js"),
17
+ "ms": () => import("./ms-CF8aT_Qq.js"),
18
+ "tr": () => import("./tr-Bjsibm46.js"),
19
+ "vi": () => import("./vi-uK03Bfuc.js"),
20
+ "ht": () => import("./ht-CbbFp5XL.js"),
21
+ "it": () => import("./it-DI-TPE-K.js"),
22
+ "de": () => import("./de-BhQ2hOut.js"),
23
+ "nl": () => import("./nl-aJiBBLFg.js"),
24
+ "tl-PH": () => import("./tl-PH-Bwmbtl_j.js"),
25
+ "pl": () => import("./pl-CDmSpQ_-.js"),
26
+ "hu": () => import("./hu-BXk1xFve.js"),
27
+ "ro": () => import("./ro-ChyvDsu3.js"),
28
+ "hmn": () => import("./hmn-DOK-cZdX.js"),
29
+ "so": () => import("./so-DTymvbrx.js"),
30
+ "ca": () => import("./ca-DBI3m_a_.js"),
31
+ "af-ZA": () => import("./af-ZA-Bp16S_5w.js"),
32
+ "ar": () => import("./ar-DgUYRgR_.js"),
33
+ "ar-EG": () => import("./ar-EG-C7LOd56j.js"),
34
+ "ar-AE": () => import("./ar-AE-O12WV51F.js"),
35
+ "zh-CN": () => import("./zh-CN-BkQoAg2R.js"),
36
+ "zh-TW": () => import("./zh-TW-ByGAHrvB.js"),
37
+ "zh-HANT": () => import("./zh-HANT-DRh68ryN.js"),
38
+ "cs-CZ": () => import("./cs-CZ-DCggApzq.js"),
39
+ "da-DK": () => import("./da-DK-B7LXeFYP.js"),
40
+ "fi-FI": () => import("./fi-FI-BC_3lqbM.js"),
41
+ "fr-CA": () => import("./fr-CA-COfhYgrk.js"),
42
+ "el-GR": () => import("./el-GR-D9eldyAW.js"),
43
+ "he": () => import("./he-BGdP9Cfd.js"),
44
+ "ja": () => import("./ja-3XIFqaXu.js"),
45
+ "ja-JP": () => import("./ja-JP-BAeRWiVk.js"),
46
+ "ko-KP": () => import("./ko-KP-0iLztCuj.js"),
47
+ "nb-NO": () => import("./nb-NO-C7Hb8Ok5.js"),
48
+ "fa-IR": () => import("./fa-IR-C1bLFtOi.js"),
49
+ "pt-PT": () => import("./pt-PT-ONBmg0BR.js"),
50
+ "ru-RU": () => import("./ru-RU-CrvUlCJj.js"),
51
+ "sr-YU": () => import("./sr-YU-AHJXObyx.js"),
52
+ "es-419": () => import("./es-419-DCPTzJnF.js"),
53
+ "es-MX": () => import("./es-MX-Bwa400AE.js"),
54
+ "sv-SE": () => import("./sv-SE-MhrEy6Di.js"),
55
+ "th-TH": () => import("./th-TH-BJP2vgt1.js"),
56
+ "uk-UA": () => import("./uk-UA-DmKAplUk.js"),
57
+ "am": () => import("./am-CWJUWWuF.js"),
58
+ "az": () => import("./az-DusLpWep.js"),
59
+ "bs": () => import("./bs-DTnRhENx.js"),
60
+ "my": () => import("./my-CqWwTa_5.js"),
61
+ "ceb": () => import("./ceb-fG0bt_zV.js"),
62
+ "cs": () => import("./cs-DsBY9V_4.js"),
63
+ "et": () => import("./et-CxKV1DgL.js"),
64
+ "ka": () => import("./ka-Bx4-RrZ_.js"),
65
+ "el": () => import("./el-D-zg7VzS.js"),
66
+ "jv": () => import("./jv-BhjQxxBl.js"),
67
+ "kk": () => import("./kk-Ct91ZRbP.js"),
68
+ "km": () => import("./km-BWQuuNXz.js"),
69
+ "ko": () => import("./ko-Cve9iLc7.js"),
70
+ "ky": () => import("./ky-DGt4vj88.js"),
71
+ "lo": () => import("./lo-DPvsfR2F.js"),
72
+ "lv": () => import("./lv-Bpw5rGRP.js"),
73
+ "lt": () => import("./lt-BMI5NrHt.js"),
74
+ "mk": () => import("./mk-C9Z-5xUg.js"),
75
+ "mn": () => import("./mn-p0zBw-tm.js"),
76
+ "ne": () => import("./ne-B5InVJ21.js"),
77
+ "ru": () => import("./ru-B_vdxKv-.js"),
78
+ "sk": () => import("./sk-ljMYKwHQ.js"),
79
+ "sl": () => import("./sl-BbVJSIEt.js"),
80
+ "sw": () => import("./sw-2Mtjggv_.js"),
81
+ "tl": () => import("./tl-CI98qs3U.js"),
82
+ "th": () => import("./th-CRCVvVIy.js"),
83
+ "uk": () => import("./uk-fCdIfhh5.js"),
84
+ "ur": () => import("./ur-Dh9AF1hS.js"),
85
+ "uz": () => import("./uz-DYarfGyT.js"),
86
+ "hr": () => import("./hr-BjtqyvXa.js")
87
+ };
88
+ //#endregion
89
+ //#region src/i18n/bundledTranslationsBackend.ts
90
+ async function loadBundledCatalog(language) {
91
+ const load = bundledTranslationLoaders[language];
92
+ if (!load) throw new Error(`Unsupported bundled language: ${language}`);
93
+ return (await load()).default;
94
+ }
95
+ var supportedLanguages = [
96
+ "en",
97
+ "en-DG",
98
+ "es",
99
+ "es-ES",
100
+ "sr",
101
+ "sr-Latn",
102
+ "fr",
103
+ "pt-BR",
104
+ "pt",
105
+ "bn",
106
+ "zh",
107
+ "hi",
108
+ "id",
109
+ "ms",
110
+ "tr",
111
+ "vi",
112
+ "ht",
113
+ "it",
114
+ "de",
115
+ "nl",
116
+ "tl-PH",
117
+ "pl",
118
+ "hu",
119
+ "ro",
120
+ "hmn",
121
+ "so",
122
+ "ca",
123
+ "af-ZA",
124
+ "ar",
125
+ "ar-EG",
126
+ "ar-AE",
127
+ "zh-CN",
128
+ "zh-TW",
129
+ "zh-HANT",
130
+ "cs-CZ",
131
+ "da-DK",
132
+ "fi-FI",
133
+ "fr-CA",
134
+ "el-GR",
135
+ "he",
136
+ "ja",
137
+ "ja-JP",
138
+ "ko-KP",
139
+ "nb-NO",
140
+ "fa-IR",
141
+ "pt-PT",
142
+ "ru-RU",
143
+ "sr-YU",
144
+ "es-419",
145
+ "es-MX",
146
+ "sv-SE",
147
+ "th-TH",
148
+ "uk-UA",
149
+ "am",
150
+ "az",
151
+ "bs",
152
+ "my",
153
+ "ceb",
154
+ "cs",
155
+ "et",
156
+ "ka",
157
+ "el",
158
+ "jv",
159
+ "kk",
160
+ "km",
161
+ "ko",
162
+ "ky",
163
+ "lo",
164
+ "lv",
165
+ "lt",
166
+ "mk",
167
+ "mn",
168
+ "ne",
169
+ "ru",
170
+ "sk",
171
+ "sl",
172
+ "sw",
173
+ "tl",
174
+ "th",
175
+ "uk",
176
+ "ur",
177
+ "uz",
178
+ "hr"
179
+ ];
180
+ var languageMetadata = {
181
+ en: { emoji: "🇺🇸" },
182
+ "en-DG": { emoji: "🇬🇧" },
183
+ es: { emoji: "🇪🇸" },
184
+ "es-ES": { emoji: "🇪🇸" },
185
+ sr: { emoji: "🇷🇸" },
186
+ "sr-Latn": { emoji: "🇷🇸" },
187
+ fr: { emoji: "🇫🇷" },
188
+ "pt-BR": { emoji: "🇧🇷" },
189
+ pt: { emoji: "🇵🇹" },
190
+ bn: { emoji: "🇧🇩" },
191
+ zh: { emoji: "🇨🇳" },
192
+ hi: { emoji: "🇮🇳" },
193
+ id: { emoji: "🇮🇩" },
194
+ ms: { emoji: "🇲🇾" },
195
+ tr: { emoji: "🇹🇷" },
196
+ vi: { emoji: "🇻🇳" },
197
+ ht: { emoji: "🇭🇹" },
198
+ it: { emoji: "🇮🇹" },
199
+ de: { emoji: "🇩🇪" },
200
+ nl: { emoji: "🇳🇱" },
201
+ "tl-PH": { emoji: "🇵🇭" },
202
+ pl: { emoji: "🇵🇱" },
203
+ hu: { emoji: "🇭🇺" },
204
+ ro: { emoji: "🇷🇴" },
205
+ hmn: { emoji: "🌐" },
206
+ so: { emoji: "🇸🇴" },
207
+ ca: { emoji: "🇪🇸" },
208
+ "af-ZA": { emoji: "🇿🇦" },
209
+ ar: { emoji: "🇸🇦" },
210
+ "ar-EG": { emoji: "🇪🇬" },
211
+ "ar-AE": { emoji: "🇦🇪" },
212
+ "zh-CN": { emoji: "🇨🇳" },
213
+ "zh-TW": { emoji: "🇹🇼" },
214
+ "zh-HANT": { emoji: "🇹🇼" },
215
+ "cs-CZ": { emoji: "🇨🇿" },
216
+ "da-DK": { emoji: "🇩🇰" },
217
+ "fi-FI": { emoji: "🇫🇮" },
218
+ "fr-CA": { emoji: "🇨🇦" },
219
+ "el-GR": { emoji: "🇬🇷" },
220
+ he: { emoji: "🇮🇱" },
221
+ ja: { emoji: "🇯🇵" },
222
+ "ja-JP": { emoji: "🇯🇵" },
223
+ "ko-KP": { emoji: "🇰🇵" },
224
+ "nb-NO": { emoji: "🇳🇴" },
225
+ "fa-IR": { emoji: "🇮🇷" },
226
+ "pt-PT": { emoji: "🇵🇹" },
227
+ "ru-RU": { emoji: "🇷🇺" },
228
+ "sr-YU": { emoji: "🇷🇸" },
229
+ "es-419": { emoji: "🌎" },
230
+ "es-MX": { emoji: "🇲🇽" },
231
+ "sv-SE": { emoji: "🇸🇪" },
232
+ "th-TH": { emoji: "🇹🇭" },
233
+ "uk-UA": { emoji: "🇺🇦" },
234
+ am: { emoji: "🇪🇹" },
235
+ az: { emoji: "🇦🇿" },
236
+ bs: { emoji: "🇧🇦" },
237
+ my: { emoji: "🇲🇲" },
238
+ ceb: { emoji: "🇵🇭" },
239
+ cs: { emoji: "🇨🇿" },
240
+ et: { emoji: "🇪🇪" },
241
+ ka: { emoji: "🇬🇪" },
242
+ el: { emoji: "🇬🇷" },
243
+ jv: { emoji: "🇮🇩" },
244
+ kk: { emoji: "🇰🇿" },
245
+ km: { emoji: "🇰🇭" },
246
+ ko: { emoji: "🇰🇷" },
247
+ ky: { emoji: "🇰🇬" },
248
+ lo: { emoji: "🇱🇦" },
249
+ lv: { emoji: "🇱🇻" },
250
+ lt: { emoji: "🇱🇹" },
251
+ mk: { emoji: "🇲🇰" },
252
+ mn: { emoji: "🇲🇳" },
253
+ ne: { emoji: "🇳🇵" },
254
+ ru: { emoji: "🇷🇺" },
255
+ sk: { emoji: "🇸🇰" },
256
+ sl: { emoji: "🇸🇮" },
257
+ sw: { emoji: "🇹🇿" },
258
+ tl: { emoji: "🇵🇭" },
259
+ th: { emoji: "🇹🇭" },
260
+ uk: { emoji: "🇺🇦" },
261
+ ur: { emoji: "🇵🇰" },
262
+ uz: { emoji: "🇺🇿" },
263
+ hr: { emoji: "🇭🇷" }
264
+ };
265
+ function getLanguageEmoji(language) {
266
+ const directMatch = languageMetadata[language];
267
+ if (directMatch) return directMatch.emoji;
268
+ return languageMetadata[language.split("-")[0] || language]?.emoji ?? "🌐";
269
+ }
270
+ //#endregion
271
+ //#region src/i18n/translator.ts
272
+ /** A failed load the translator retries, like http-backend's `retry` flag. */
273
+ var RetryableLoadError = class extends Error {};
274
+ var MAX_RETRIES = 5;
275
+ var FIRST_RETRY_MS = 350;
276
+ var RTL_LANGUAGES = [
277
+ "ar",
278
+ "he",
279
+ "iw",
280
+ "fa",
281
+ "ur",
282
+ "ps",
283
+ "ug",
284
+ "yi",
285
+ "dv",
286
+ "ckb"
287
+ ];
288
+ var hasOwn = (object, key) => Object.prototype.hasOwnProperty.call(object, key);
289
+ var isPlainValue = (value) => [
290
+ "string",
291
+ "number",
292
+ "boolean"
293
+ ].includes(typeof value);
294
+ function canonical(code) {
295
+ if (!code.includes("-")) return code;
296
+ try {
297
+ return Intl.getCanonicalLocales(code)[0] ?? code;
298
+ } catch {
299
+ return code;
300
+ }
301
+ }
302
+ function scriptPart(code) {
303
+ const parts = code.replace("_", "-").split("-");
304
+ if (parts.length < 3) return null;
305
+ parts.pop();
306
+ if (parts[parts.length - 1]?.toLowerCase() === "x") return null;
307
+ return canonical(parts.join("-"));
308
+ }
309
+ function languagePart(code) {
310
+ const cleaned = code.replace("_", "-");
311
+ return cleaned.includes("-") ? canonical(cleaned.split("-")[0] ?? "") : cleaned;
312
+ }
313
+ /** i18next `getPath`: walks `a.b.c`, stopping at strings and missing keys. */
314
+ function getPath(object, path) {
315
+ let current = object;
316
+ for (let index = 0; index < path.length - 1; index += 1) {
317
+ if (!current || typeof current === "string") return void 0;
318
+ current = hasOwn(current, path[index]) ? current[path[index]] : {};
319
+ }
320
+ if (!current || typeof current === "string") return void 0;
321
+ const last = path[path.length - 1];
322
+ return hasOwn(current, last) ? current[last] : void 0;
323
+ }
324
+ /** i18next `deepFind`: also matches flat keys that contain the separator. */
325
+ function deepFind(object, key) {
326
+ if (!object || typeof object !== "object") return void 0;
327
+ const record = object;
328
+ if (record[key]) return hasOwn(record, key) ? record[key] : void 0;
329
+ const tokens = key.split(".");
330
+ let current = record;
331
+ for (let index = 0; index < tokens.length;) {
332
+ if (!current || typeof current !== "object") return void 0;
333
+ let next;
334
+ let nextPath = "";
335
+ for (let end = index; end < tokens.length; end += 1) {
336
+ nextPath += (end === index ? "" : ".") + tokens[end];
337
+ next = current[nextPath];
338
+ if (next !== void 0) {
339
+ if (isPlainValue(next) && end < tokens.length - 1) continue;
340
+ index = end + 1;
341
+ break;
342
+ }
343
+ }
344
+ current = next;
345
+ }
346
+ return current;
347
+ }
348
+ function lookup(object, key) {
349
+ return getPath(object, key.split(".")) || deepFind(object, key);
350
+ }
351
+ function deepExtend(target, source) {
352
+ for (const prop in source) {
353
+ if (prop === "__proto__" || prop === "constructor") continue;
354
+ const from = source[prop];
355
+ const to = target[prop];
356
+ if (!(prop in target)) target[prop] = from;
357
+ else if (typeof to === "string" || typeof from === "string") target[prop] = from;
358
+ else deepExtend(to, from);
359
+ }
360
+ }
361
+ /** `{{name}}` and `{{- name}}`; a variable not passed keeps its placeholder. */
362
+ function interpolate(text, opt) {
363
+ if (typeof text !== "string") return text;
364
+ const data = opt.replace && typeof opt.replace === "object" ? opt.replace : opt;
365
+ let result = text;
366
+ for (const pattern of [/\{\{-(.+?)\}\}/g, /\{\{(.+?)\}\}/g]) {
367
+ let match;
368
+ let replaces = 0;
369
+ while (match = pattern.exec(result)) {
370
+ const name = (match[1] ?? "").trim();
371
+ let value = lookup(data, name.split(",")[0].trim());
372
+ if (value === void 0) {
373
+ if (!hasOwn(opt, name)) continue;
374
+ value = "";
375
+ }
376
+ const replacement = value == null ? "" : `${value}`;
377
+ result = result.replace(match[0], replacement.replace(/\$/g, "$$$$"));
378
+ pattern.lastIndex += replacement.length - match[0].length;
379
+ replaces += 1;
380
+ if (replaces >= 1e3) break;
381
+ }
382
+ }
383
+ return result;
384
+ }
385
+ var pluralRules = /* @__PURE__ */ new Map();
386
+ function pluralRule(language) {
387
+ const code = language.replace("_", "-");
388
+ if (!pluralRules.has(code)) {
389
+ let rule;
390
+ try {
391
+ rule = new Intl.PluralRules(code);
392
+ } catch {
393
+ rule = /-|_/.test(language) ? pluralRule(languagePart(language)) : null;
394
+ }
395
+ pluralRules.set(code, rule);
396
+ }
397
+ return pluralRules.get(code) ?? null;
398
+ }
399
+ function pluralSuffix(language, count) {
400
+ const rule = pluralRule(language);
401
+ return `_${rule ? rule.select(count) : count === 1 ? "one" : "other"}`;
402
+ }
403
+ /** i18next's default overload: `t(key, 'default', { ...options })`. */
404
+ function toOptions(defaultValueOrOptions, options) {
405
+ if (typeof defaultValueOrOptions === "object") return { ...defaultValueOrOptions };
406
+ const result = {};
407
+ if (typeof defaultValueOrOptions === "string") result.defaultValue = defaultValueOrOptions;
408
+ if (options && typeof options === "object") Object.assign(result, options);
409
+ return result;
410
+ }
411
+ function createTranslator(options) {
412
+ const supported = [...options.supportedLngs, "cimode"];
413
+ const isSupported = (code) => code !== null && supported.includes(code);
414
+ const store = {};
415
+ const loadStates = /* @__PURE__ */ new Map();
416
+ const listeners = /* @__PURE__ */ new Map();
417
+ let changingTo;
418
+ let currentLanguage = "";
419
+ let initialized = false;
420
+ const emit = (event, ...args) => {
421
+ for (const listener of [...listeners.get(event) ?? []]) listener(...args);
422
+ };
423
+ const hasTranslations = (language) => Object.keys(store[language] ?? {}).length > 0;
424
+ function bestMatch(codes) {
425
+ for (const code of codes) if (isSupported(canonical(code))) return canonical(code);
426
+ for (const code of codes) {
427
+ const script = scriptPart(code);
428
+ if (script !== null && isSupported(script)) return script;
429
+ const base = languagePart(code);
430
+ if (isSupported(base)) return base;
431
+ const found = supported.find((candidate) => candidate === base || (candidate.includes("-") || base.includes("-")) && (candidate.indexOf("-") > 0 && !base.includes("-") && candidate.slice(0, candidate.indexOf("-")) === base || candidate.startsWith(base) && base.length > 1));
432
+ if (found) return found;
433
+ }
434
+ return options.fallbackLng;
435
+ }
436
+ function hierarchy(code) {
437
+ const codes = [];
438
+ const add = (candidate) => {
439
+ if (candidate !== null && isSupported(candidate)) codes.push(candidate);
440
+ };
441
+ if (code.includes("-") || code.includes("_")) {
442
+ add(canonical(code));
443
+ if (options.load === "all") {
444
+ add(scriptPart(code));
445
+ add(languagePart(code));
446
+ }
447
+ } else add(code);
448
+ if (!codes.includes(options.fallbackLng)) add(options.fallbackLng);
449
+ return codes;
450
+ }
451
+ async function readCatalog(language) {
452
+ for (let attempt = 0, wait = FIRST_RETRY_MS;; attempt += 1, wait *= 2) try {
453
+ const catalog = await options.loadCatalog(language);
454
+ store[language] = {
455
+ ...store[language],
456
+ ...catalog
457
+ };
458
+ loadStates.set(language, "loaded");
459
+ return;
460
+ } catch (error) {
461
+ if (!(error instanceof RetryableLoadError)) {
462
+ loadStates.set(language, "failed");
463
+ return;
464
+ }
465
+ if (attempt >= MAX_RETRIES) {
466
+ loadStates.set(language, "retryable");
467
+ return;
468
+ }
469
+ await new Promise((resolve) => setTimeout(resolve, wait));
470
+ }
471
+ }
472
+ const pendingLoads = /* @__PURE__ */ new Map();
473
+ /**
474
+ * Like i18next's backend connector: a language with a bundle (even one only
475
+ * from `addResourceBundle`) is not loaded, and a failed load is not retried
476
+ * unless it was retryable. Resolves `undefined` when nothing is left to load.
477
+ */
478
+ function loadLanguage(language) {
479
+ if (language in store) {
480
+ loadStates.set(language, "loaded");
481
+ return;
482
+ }
483
+ if (loadStates.get(language) === "failed") return void 0;
484
+ let pending = pendingLoads.get(language);
485
+ if (!pending) {
486
+ loadStates.set(language, "pending");
487
+ pending = readCatalog(language).finally(() => {
488
+ pendingLoads.delete(language);
489
+ emit("loaded");
490
+ });
491
+ pendingLoads.set(language, pending);
492
+ }
493
+ return pending;
494
+ }
495
+ /** `undefined` when everything is loaded, so the caller finishes at once. */
496
+ function loadResources(language) {
497
+ if (language.toLowerCase() === "cimode") return void 0;
498
+ const loads = hierarchy(language).filter((code) => code !== "cimode").map(loadLanguage).filter((load) => load !== void 0);
499
+ return loads.length > 0 ? Promise.all(loads) : void 0;
500
+ }
501
+ /** Runs `onDone` synchronously when no catalog needs loading, as i18next does. */
502
+ function applyLanguage(requested, onDone) {
503
+ changingTo = requested;
504
+ emit("languageChanging", requested);
505
+ const candidates = requested ? [requested] : options.detector.detect();
506
+ const first = candidates[0];
507
+ const language = first !== void 0 && hasTranslations(first) ? first : bestMatch(candidates);
508
+ if (!currentLanguage) currentLanguage = language;
509
+ options.detector.cacheUserLanguage(language);
510
+ const done = () => {
511
+ if (changingTo === requested) {
512
+ currentLanguage = language;
513
+ changingTo = void 0;
514
+ emit("languageChanged", language);
515
+ }
516
+ onDone();
517
+ };
518
+ const loading = loadResources(language);
519
+ if (loading) loading.then(done);
520
+ else done();
521
+ }
522
+ /** i18next `resolvedLanguage`: the first language in the chain with text. */
523
+ function resolvedLanguage() {
524
+ return hierarchy(currentLanguage).find((code) => code !== "cimode" && hasTranslations(code)) ?? currentLanguage;
525
+ }
526
+ const translator = {
527
+ get isInitialized() {
528
+ return initialized;
529
+ },
530
+ get language() {
531
+ return currentLanguage;
532
+ },
533
+ t: ((keys, defaultValueOrOptions, maybeOptions) => {
534
+ const opt = toOptions(defaultValueOrOptions, maybeOptions);
535
+ if (keys == null) return "";
536
+ const list = Array.isArray(keys) ? keys : [String(keys)];
537
+ const split = (raw) => {
538
+ if (raw.indexOf(":") < 0) return {
539
+ namespace: "default",
540
+ key: raw
541
+ };
542
+ const parts = raw.split(":");
543
+ return {
544
+ namespace: parts.shift(),
545
+ key: parts.join(".")
546
+ };
547
+ };
548
+ const { key } = split(list[list.length - 1]);
549
+ const language = currentLanguage;
550
+ if (language.toLowerCase() === "cimode") return key;
551
+ const count = opt.count;
552
+ const needsPlural = count !== void 0 && typeof count !== "string";
553
+ const zeroLookup = needsPlural && count === 0;
554
+ let found;
555
+ for (const raw of list) {
556
+ if (found != null) break;
557
+ const { namespace, key: candidateKey } = split(raw);
558
+ for (const code of hierarchy(language)) {
559
+ if (found != null) break;
560
+ const finalKeys = [candidateKey];
561
+ if (needsPlural) {
562
+ finalKeys.push(candidateKey + pluralSuffix(code, count));
563
+ if (zeroLookup) finalKeys.push(`${candidateKey}_zero`);
564
+ }
565
+ let possibleKey;
566
+ while ((possibleKey = finalKeys.pop()) && found == null) found = namespace === "default" ? lookup(store[code], possibleKey) : void 0;
567
+ }
568
+ }
569
+ const suffix = needsPlural ? pluralSuffix(language, count) : "";
570
+ const defaultValue = zeroLookup && opt.defaultValue_zero || opt[`defaultValue${suffix}`] || opt.defaultValue;
571
+ const hasDefault = Object.keys(opt).some((name) => name.startsWith("defaultValue") && opt[name] !== void 0);
572
+ const forObjectCheck = !found && hasDefault ? defaultValue : found;
573
+ if (forObjectCheck && !isPlainValue(forObjectCheck) && !["[object Function]", "[object RegExp]"].includes(Object.prototype.toString.call(forObjectCheck))) return `key '${key} (${language})' returned an object instead of string.`;
574
+ let result = found;
575
+ let usedDefault = false;
576
+ let usedKey = false;
577
+ if (result == null && hasDefault) {
578
+ usedDefault = true;
579
+ result = defaultValue;
580
+ }
581
+ if (result == null) {
582
+ usedKey = true;
583
+ result = key;
584
+ }
585
+ result = interpolate(result, opt);
586
+ if (usedKey || usedDefault) return options.parseMissingKeyHandler(key, usedDefault ? result : void 0);
587
+ return result;
588
+ }),
589
+ changeLanguage(requested) {
590
+ return new Promise((resolve) => {
591
+ applyLanguage(requested, () => resolve(translator.t));
592
+ });
593
+ },
594
+ dir(language) {
595
+ const code = language || resolvedLanguage();
596
+ if (!code) return "rtl";
597
+ try {
598
+ const info = new Intl.Locale(code).getTextInfo?.();
599
+ if (info?.direction) return info.direction;
600
+ } catch {}
601
+ if (code.toLowerCase().indexOf("-latn") > 1) return "ltr";
602
+ return RTL_LANGUAGES.includes(languagePart(code)) || code.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
603
+ },
604
+ on(event, listener) {
605
+ if (!listeners.has(event)) listeners.set(event, /* @__PURE__ */ new Set());
606
+ listeners.get(event).add(listener);
607
+ },
608
+ off(event, listener) {
609
+ if (listener) listeners.get(event)?.delete(listener);
610
+ else listeners.delete(event);
611
+ },
612
+ addResourceBundle(language, resources) {
613
+ store[language] ??= {};
614
+ deepExtend(store[language], JSON.parse(JSON.stringify(resources)));
615
+ },
616
+ hasLoadedNamespace() {
617
+ return initialized && hierarchy(currentLanguage).every((code) => loadStates.get(code) !== "pending");
618
+ }
619
+ };
620
+ applyLanguage(options.lng, () => {
621
+ initialized = true;
622
+ emit("initialized");
623
+ });
624
+ return translator;
625
+ }
626
+ //#endregion
627
+ //#region src/i18n/lazyHttpBackend.ts
628
+ /**
629
+ * Loads catalogs from `loadPath` (`{{lng}}` and `{{ns}}` placeholders) with
630
+ * i18next-http-backend's rules: a network error or a 5xx is retried, a 4xx or
631
+ * a body that is not JSON is not.
632
+ */
633
+ function createRemoteCatalogLoader(loadPath) {
634
+ return async (language) => {
635
+ const url = loadPath.replaceAll("{{lng}}", language).replaceAll("{{ns}}", "default");
636
+ let response;
637
+ try {
638
+ response = await fetch(url, {
639
+ mode: "cors",
640
+ credentials: "same-origin",
641
+ cache: "default"
642
+ });
643
+ } catch (error) {
644
+ throw new RetryableLoadError(`failed loading ${url}: ${String(error)}`);
645
+ }
646
+ if (response.status >= 500 && response.status < 600) throw new RetryableLoadError(`failed loading ${url}; status code: ${response.status}`);
647
+ if (!response.ok) throw new Error(`failed loading ${url}; status code: ${response.status}`);
648
+ return await response.json();
649
+ };
650
+ }
651
+ //#endregion
652
+ //#region src/i18n/setup.ts
653
+ var LANGUAGE_STORAGE_KEY = "incode:i18n:language";
654
+ var camelToStartCase = (text) => {
655
+ const result = text.replace(/([A-Z])/g, " $1");
656
+ return result.charAt(0).toUpperCase() + result.slice(1);
657
+ };
658
+ var keyToStartCase = (key, defaultValue) => {
659
+ if (defaultValue) return defaultValue;
660
+ const splitKey = key.split(".");
661
+ const missingKey = splitKey[splitKey.length - 1];
662
+ return camelToStartCase(missingKey || "missing key");
663
+ };
664
+ function readNavigatorLanguage() {
665
+ if (typeof navigator === "undefined") return "en";
666
+ const languageFromBrowser = navigator.language;
667
+ if (!languageFromBrowser) return null;
668
+ if (supportedLanguages.includes(languageFromBrowser)) return languageFromBrowser;
669
+ return languageFromBrowser.split("-")[0];
670
+ }
671
+ function readHtmlLanguage() {
672
+ if (typeof document === "undefined") return null;
673
+ return document.documentElement?.getAttribute("lang") ?? null;
674
+ }
675
+ function createLanguageDetector(skipInitialLanguageCache) {
676
+ let skipNextCache = skipInitialLanguageCache;
677
+ return {
678
+ detect: () => [
679
+ readQueryLanguage(),
680
+ readStoredLanguage(),
681
+ readStorageLanguage(() => sessionStorage),
682
+ readNavigatorLanguage(),
683
+ readHtmlLanguage()
684
+ ].filter((language) => !!language),
685
+ cacheUserLanguage(language) {
686
+ if (skipNextCache) {
687
+ skipNextCache = false;
688
+ return;
689
+ }
690
+ if (language === "cimode") return;
691
+ try {
692
+ localStorage.setItem(LANGUAGE_STORAGE_KEY, language);
693
+ } catch {}
694
+ }
695
+ };
696
+ }
697
+ function applyOverrides(i18nInstance, translations) {
698
+ for (const [langCode, value] of Object.entries(translations)) if (value) i18nInstance.addResourceBundle(langCode, value);
699
+ }
700
+ function readStorageLanguage(getStorage) {
701
+ try {
702
+ return getStorage().getItem(LANGUAGE_STORAGE_KEY);
703
+ } catch {
704
+ return null;
705
+ }
706
+ }
707
+ function readStoredLanguage() {
708
+ return readStorageLanguage(() => localStorage);
709
+ }
710
+ function readQueryLanguage() {
711
+ if (typeof window === "undefined") return null;
712
+ return new URLSearchParams(window.location.search).get("lang") || null;
713
+ }
714
+ /**
715
+ * TODO(form-definitions): temporary. Lists in the console, once each, the keys
716
+ * the SDK asks for that i18nexus doesn't have yet (such as the new eKYC labels
717
+ * and error messages), so they're easy to create. Remove once they exist.
718
+ */
719
+ function createMissingKeyReporter(getInstance) {
720
+ return (key) => {};
721
+ }
722
+ function createI18n(options = {}) {
723
+ const { lang, loadPath, skipRemoteLoad, translations } = options;
724
+ const reportMissingKey = createMissingKeyReporter(() => i18nInstance);
725
+ const queryLang = readQueryLanguage();
726
+ const languageDetector = createLanguageDetector(queryLang !== null);
727
+ const storedLang = readStoredLanguage();
728
+ const resolvedLoadPath = loadPath ?? void 0;
729
+ const remoteLoadEnabled = skipRemoteLoad !== true && resolvedLoadPath !== void 0;
730
+ const i18nInstance = createTranslator({
731
+ lng: queryLang ?? storedLang ?? lang,
732
+ fallbackLng: "en",
733
+ load: remoteLoadEnabled ? "all" : "currentOnly",
734
+ supportedLngs: supportedLanguages,
735
+ detector: languageDetector,
736
+ loadCatalog: remoteLoadEnabled && resolvedLoadPath !== void 0 ? createRemoteCatalogLoader(resolvedLoadPath) : loadBundledCatalog,
737
+ parseMissingKeyHandler: (key, defaultValue) => {
738
+ reportMissingKey(key);
739
+ return keyToStartCase(key, defaultValue);
740
+ }
741
+ });
742
+ if (translations) {
743
+ applyOverrides(i18nInstance, translations);
744
+ i18nInstance.on("loaded", () => {
745
+ applyOverrides(i18nInstance, translations);
746
+ });
747
+ }
748
+ return i18nInstance;
749
+ }
750
+ //#endregion
751
+ //#region src/i18n/instance.ts
752
+ var TRANSLATION_EVENTS = [
753
+ "languageChanged",
754
+ "initialized",
755
+ "loaded"
756
+ ];
757
+ var i18nInstance = null;
758
+ var version = 0;
759
+ var listeners$1 = /* @__PURE__ */ new Set();
760
+ function notify() {
761
+ version += 1;
762
+ for (const listener of listeners$1) listener();
763
+ }
764
+ function bindTranslationEvents(instance) {
765
+ for (const event of TRANSLATION_EVENTS) instance.on(event, notify);
766
+ }
767
+ function unbindTranslationEvents(instance) {
768
+ for (const event of TRANSLATION_EVENTS) instance.off(event, notify);
769
+ }
770
+ function setI18nInstance(instance) {
771
+ if (i18nInstance === instance) return;
772
+ if (i18nInstance) unbindTranslationEvents(i18nInstance);
773
+ i18nInstance = instance;
774
+ bindTranslationEvents(instance);
775
+ notify();
776
+ }
777
+ function hasI18nInstance() {
778
+ return i18nInstance !== null;
779
+ }
780
+ function getI18nInstance() {
781
+ if (!i18nInstance) {
782
+ i18nInstance = createI18n();
783
+ bindTranslationEvents(i18nInstance);
784
+ }
785
+ return i18nInstance;
786
+ }
787
+ function getI18nVersion() {
788
+ return version;
789
+ }
790
+ function subscribeToI18n(listener) {
791
+ listeners$1.add(listener);
792
+ return () => {
793
+ listeners$1.delete(listener);
794
+ };
795
+ }
796
+ //#endregion
797
+ //#region src/shared/icons/arrowIcon.tsx
798
+ var ArrowIcon = ({ class: className }) => /* @__PURE__ */ u("svg", {
799
+ width: "13",
800
+ height: "14",
801
+ viewBox: "0 0 13 14",
802
+ fill: "none",
803
+ xmlns: "http://www.w3.org/2000/svg",
804
+ "aria-hidden": "true",
805
+ class: className,
806
+ children: /* @__PURE__ */ u("path", {
807
+ d: "M0 8.08V5.92h9.198l-4.5-4.05L6.228.34 12.6 6.28v1.422L6.228 13.66l-1.53-1.53 4.5-4.05z",
808
+ fill: "currentColor"
809
+ })
810
+ });
811
+ //#endregion
812
+ //#region src/i18n/useTranslation.ts
813
+ function useTranslation() {
814
+ const i18nInstance = getI18nInstance();
815
+ const [, forceUpdate] = d(0);
816
+ const [ready, setReady] = d(i18nInstance.isInitialized);
817
+ y(() => {
818
+ const handleLanguageChanged = () => {
819
+ forceUpdate((n) => n + 1);
820
+ };
821
+ const handleInitialized = () => {
822
+ setReady(true);
823
+ forceUpdate((n) => n + 1);
824
+ };
825
+ i18nInstance.on("languageChanged", handleLanguageChanged);
826
+ i18nInstance.on("initialized", handleInitialized);
827
+ i18nInstance.on("loaded", handleLanguageChanged);
828
+ if (i18nInstance.isInitialized) setReady(true);
829
+ return () => {
830
+ i18nInstance.off("languageChanged", handleLanguageChanged);
831
+ i18nInstance.off("initialized", handleInitialized);
832
+ i18nInstance.off("loaded", handleLanguageChanged);
833
+ };
834
+ }, [i18nInstance]);
835
+ return {
836
+ t: T(() => i18nInstance.t.bind(i18nInstance), [i18nInstance]),
837
+ ready,
838
+ i18n: i18nInstance
839
+ };
840
+ }
841
+ //#endregion
842
+ //#region src/i18n/Trans.tsx
843
+ var Trans = ({ i18nKey, boldClass = "IncodeTransBold", arrowClass = "IncodeTransArrow", components, defaultValue }) => {
844
+ const { t } = useTranslation();
845
+ const text = defaultValue ? t(i18nKey, { defaultValue }) : t(i18nKey);
846
+ const builtInPattern = "<strong>|<\\/strong>|<br\\s*\\/?>|<arrow\\s*\\/>";
847
+ const componentPattern = components ? Object.keys(components).map((name) => `<${name}>|<\\/${name}>`).join("|") : "";
848
+ const fullPattern = componentPattern ? `${builtInPattern}|${componentPattern}` : builtInPattern;
849
+ const parts = text.split(new RegExp(`(${fullPattern})`, "g"));
850
+ let isBold = false;
851
+ let activeComponent = null;
852
+ return /* @__PURE__ */ u(k, { children: parts.map((part, index) => {
853
+ if (part === "<strong>") {
854
+ isBold = true;
855
+ return null;
856
+ }
857
+ if (part === "</strong>") {
858
+ isBold = false;
859
+ return null;
860
+ }
861
+ if (/^<br\s*\/?>$/.test(part)) return /* @__PURE__ */ u("br", {}, index);
862
+ if (/^<arrow\s*\/>$/.test(part)) return /* @__PURE__ */ u(ArrowIcon, { class: arrowClass }, index);
863
+ if (components) {
864
+ const openMatch = part.match(/^<(\w+)>$/);
865
+ if (openMatch && components[openMatch[1]]) {
866
+ activeComponent = openMatch[1];
867
+ return null;
868
+ }
869
+ const closeMatch = part.match(/^<\/(\w+)>$/);
870
+ if (closeMatch && components[closeMatch[1]]) {
871
+ activeComponent = null;
872
+ return null;
873
+ }
874
+ }
875
+ if (!part) return null;
876
+ if (activeComponent && components) return K(components[activeComponent], { key: index }, part);
877
+ return isBold ? /* @__PURE__ */ u("span", {
878
+ class: boldClass,
879
+ children: part
880
+ }, index) : /* @__PURE__ */ u(k, { children: part }, index);
881
+ }) });
882
+ };
883
+ //#endregion
884
+ //#region src/i18n/translateText.ts
885
+ /**
886
+ * Translates a served text, showing `text` when `key` has no translation.
887
+ *
888
+ * `text` goes in as `defaultValue`, which i18next returns literally. Never use
889
+ * the array form `t([key, text])`: it looks `text` up as a key, so a text
890
+ * with a `.` renders blank and one with a `:` is split as a namespace.
891
+ */
892
+ function translateText(t, served) {
893
+ if (!served) return void 0;
894
+ return t(served.key, {
895
+ ...served.params,
896
+ defaultValue: served.text
897
+ });
898
+ }
899
+ //#endregion
900
+ //#region src/i18n/fallbackTranslations.ts
901
+ /**
902
+ * Last-resort English copy for keys a screen may read before the translation
903
+ * bundle loads (see `useTranslationWithFallback`). One fallback per key,
904
+ * defined once.
905
+ */
906
+ var I18N_LOCAL = {
907
+ "common.close": "Close",
908
+ "unsupportedBrowser.title": "Unsupported browser",
909
+ "unsupportedBrowser.betterExperience": "For a better experience, open this link in",
910
+ "unsupportedBrowser.or": "or",
911
+ "unsupportedBrowser.copyLink": "Copy link",
912
+ "unsupportedBrowser.continueAnyways": "Continue anyway",
913
+ "unsupportedBrowser.linkCopied": "Link copied",
914
+ "connectionError.title": "No internet connection",
915
+ "connectionError.subtitle": "Wait for the internet to return to continue the process or connect to an available network.",
916
+ "connectionError.refresh": "Refresh"
917
+ };
918
+ //#endregion
919
+ //#region src/i18n/useTranslationWithFallback.ts
920
+ /**
921
+ * `useTranslation()`, but a bare `t(key)` picks up its `I18N_LOCAL` fallback
922
+ * automatically. Any explicit second argument is forwarded untouched. Use
923
+ * this only on screens that can render before the bundle loads — see
924
+ * `BrowserNotSupported`.
925
+ */
926
+ function useTranslationWithFallback() {
927
+ const { t, ready, i18n } = useTranslation();
928
+ C(subscribeToI18n, getI18nVersion);
929
+ return {
930
+ t: q((key, defaultValueOrOptions, options) => {
931
+ if (typeof defaultValueOrOptions === "string") return options === void 0 ? t(key, defaultValueOrOptions) : t(key, defaultValueOrOptions, options);
932
+ if (defaultValueOrOptions !== void 0) return t(key, defaultValueOrOptions);
933
+ if (typeof key !== "string") return t(key);
934
+ const fallback = I18N_LOCAL[key];
935
+ return fallback ? t(key, { defaultValue: fallback }) : t(key);
936
+ }, [t]),
937
+ ready,
938
+ i18n
939
+ };
940
+ }
941
+ //#endregion
942
+ //#region src/shared/uiConfig/uiConfig.ts
943
+ /** The one place a fetched theme becomes theme-tier UI config. */
944
+ function toThemeUiConfig(theme) {
945
+ return {
946
+ logoSrc: theme.logo,
947
+ logoDarkSrc: theme.logoDark,
948
+ subtitle: theme.subtitle,
949
+ hideFooterBranding: theme.hideFooterBranding
950
+ };
951
+ }
952
+ /** Tier 1: set by the host via `setup({ uiConfig })` / `setUiConfig`. Wins. */
953
+ var hostUiConfig = {};
954
+ /** Tier 2: derived from the tenant's dashboard theme. Fills the gaps. */
955
+ var themeUiConfig = {};
956
+ /**
957
+ * Cached composition of the two tiers. `useSyncExternalStore` requires
958
+ * `getSnapshot` to return a referentially stable value — composing on every
959
+ * call would hand Preact a new object each time and loop forever — so the
960
+ * merge happens once per write instead.
961
+ */
962
+ var snapshot = {};
963
+ var listeners = /* @__PURE__ */ new Set();
964
+ function withoutUndefined(value) {
965
+ const defined = {};
966
+ for (const key of Object.keys(value)) if (value[key] !== void 0) defined[key] = value[key];
967
+ return defined;
968
+ }
969
+ /**
970
+ * Host fields win over theme fields; a host field left `undefined` counts as
971
+ * "not specified" and lets the theme through, rather than blanking it.
972
+ */
973
+ function publish() {
974
+ snapshot = {
975
+ ...themeUiConfig,
976
+ ...withoutUndefined(hostUiConfig)
977
+ };
978
+ for (const listener of listeners) listener();
979
+ }
980
+ function subscribe(listener) {
981
+ listeners.add(listener);
982
+ return () => {
983
+ listeners.delete(listener);
984
+ };
985
+ }
986
+ function getSnapshot() {
987
+ return snapshot;
988
+ }
989
+ /**
990
+ * Sets global UI configuration defaults for `@incodetech/web`.
991
+ *
992
+ * Replaces (does not merge with) the previous host-supplied config, so omitting
993
+ * a field clears it. The dashboard theme is held separately and is unaffected.
994
+ */
995
+ function setUiConfig(next) {
996
+ hostUiConfig = next;
997
+ publish();
998
+ }
999
+ /**
1000
+ * Merges fields into the host config, leaving unlisted fields as they are.
1001
+ *
1002
+ * Unlike {@link setUiConfig}, which replaces, this applies one source of
1003
+ * config without disturbing what the host set elsewhere — so applying a
1004
+ * Studio export cannot drop a host's `assets` or `spinner`. `undefined`
1005
+ * values are skipped, so an unset field never clears a good one.
1006
+ */
1007
+ function patchUiConfig(partial) {
1008
+ hostUiConfig = {
1009
+ ...hostUiConfig,
1010
+ ...withoutUndefined(partial)
1011
+ };
1012
+ publish();
1013
+ }
1014
+ /**
1015
+ * Internal: publishes the branding fields derived from the tenant's dashboard
1016
+ * theme. Not exported from the package — hosts use {@link setUiConfig}.
1017
+ */
1018
+ function setThemeUiConfig(next) {
1019
+ themeUiConfig = next;
1020
+ publish();
1021
+ }
1022
+ function useUiConfig() {
1023
+ return C(subscribe, getSnapshot);
1024
+ }
1025
+ //#endregion
1026
+ //#region src/shared/devWarn/devWarn.ts
1027
+ /**
1028
+ * Emits a namespaced `console.warn` in development only. Override load
1029
+ * failures and bad catalog keys are non-fatal (we always fall back to a
1030
+ * built-in default), so they must never surface in production consoles.
1031
+ */
1032
+ function devWarn(message, error) {}
1033
+ //#endregion
1034
+ export { supportedLanguages as _, toThemeUiConfig as a, translateText as c, getI18nInstance as d, hasI18nInstance as f, getLanguageEmoji as g, readStoredLanguage as h, setUiConfig as i, Trans as l, createI18n as m, patchUiConfig as n, useUiConfig as o, setI18nInstance as p, setThemeUiConfig as r, useTranslationWithFallback as s, devWarn as t, useTranslation as u };