@sheerid/jslib-nightly 2.142.0-alpha.0 → 2.143.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/_mysheerid-preview.css +4 -4
  2. package/_mysheerid-preview.js +1825 -1809
  3. package/_mysheerid-preview.js.map +1 -1
  4. package/chunk/EmailLoopPending-CHILFZYc.js +4 -4
  5. package/chunk/EmailLoopPending-Nn_H3cfS.js +4 -4
  6. package/chunk/LicensedProfessionalOrganizationComponent-BYijEfDT.js +4 -4
  7. package/chunk/LicensedProfessionalOrganizationComponent-CiYU-2dW.js +4 -4
  8. package/chunk/Onfido-BX3RMDPu.js +4 -4
  9. package/chunk/StepIDCheckLoopOnfido-CdtGsqUQ.js +4 -4
  10. package/chunk/StepIDCheckLoopOnfido-wDQ56PaN.js +4 -4
  11. package/chunk/StepIDCheckLoopRegula-BHrKTobC.js +4 -4
  12. package/chunk/StepIDCheckLoopRegula-Bxzg0ROh.js +4 -4
  13. package/chunk/StepInactiveMilitaryPersonalInfoComponent-B_SLFztq.js +4 -4
  14. package/chunk/StepInactiveMilitaryPersonalInfoComponent-D5bERGdY.js +4 -4
  15. package/chunk/ar-DgWnOHb0.js +4 -4
  16. package/chunk/bg-BOoVh0N7.js +4 -4
  17. package/chunk/bn-IN-DfQpdb68.js +4 -4
  18. package/chunk/cs-B9lN4RVR.js +4 -4
  19. package/chunk/da-BaOy33h_.js +4 -4
  20. package/chunk/de-uUHs3YXy.js +4 -4
  21. package/chunk/el-xIXJ9sqU.js +4 -4
  22. package/chunk/en-GB-8EI1uDkp.js +4 -4
  23. package/chunk/es-B7SMjWOB.js +4 -4
  24. package/chunk/es-ES-DZwHzn0T.js +4 -4
  25. package/chunk/fi-DdpuBVsY.js +4 -4
  26. package/chunk/fr-CA-CWSDRram.js +4 -4
  27. package/chunk/fr-Crh-QCJ-.js +4 -4
  28. package/chunk/ga-2XNN2X9n.js +4 -4
  29. package/chunk/hi-IN-CXpzvJ5p.js +4 -4
  30. package/chunk/hr-BWFHQt1b.js +4 -4
  31. package/chunk/hu-BQsQ1_1B.js +4 -4
  32. package/chunk/id-D1BredfW.js +4 -4
  33. package/chunk/index-1Cpf6KJI.js +4 -4
  34. package/chunk/index-2ob_KvkC.js +4 -4
  35. package/chunk/index-AHdKDpDe.js +4 -4
  36. package/chunk/index-B0fLWq5B.js +4 -4
  37. package/chunk/{index-dt1aUu5L.js → index-BARZY0Ha.js} +76 -69
  38. package/chunk/index-BARZY0Ha.js.map +1 -0
  39. package/chunk/index-BFhiexXx.js +4 -4
  40. package/chunk/index-BU0HFLKm.js +4 -4
  41. package/chunk/{index-DR8uqKnQ.js → index-BbZgRCJA.js} +76 -69
  42. package/chunk/index-BbZgRCJA.js.map +1 -0
  43. package/chunk/{index-Ab6NJ5Bn.js → index-ByHaYlzv.js} +443 -426
  44. package/chunk/{index-Ab6NJ5Bn.js.map → index-ByHaYlzv.js.map} +1 -1
  45. package/chunk/index-C3XrPBfJ.js +4 -4
  46. package/chunk/index-C4OCK6G0.js +4 -4
  47. package/chunk/index-C6KSFLsT.js +4 -4
  48. package/chunk/index-C8UuTatc.js +4 -4
  49. package/chunk/index-CBk9S5Sk.js +4 -4
  50. package/chunk/index-CRJId5Zv.js +4 -4
  51. package/chunk/index-CVEIzLov.js +4 -4
  52. package/chunk/index-CcE-GFi6.js +4 -4
  53. package/chunk/index-CjcYFvhf.js +4 -4
  54. package/chunk/index-CzOav1ZI.js +4 -4
  55. package/chunk/index-D3gKaa4t.js +4 -4
  56. package/chunk/index-D4FMD-a0.js +4 -4
  57. package/chunk/index-DAE3SOJH.js +4 -4
  58. package/chunk/index-DCTYdT7J.js +4 -4
  59. package/chunk/index-DFajPA-e.js +4 -4
  60. package/chunk/index-DHnJQWxO.js +4 -4
  61. package/chunk/index-DHtYIKVA.js +4 -4
  62. package/chunk/index-DIkWpujR.js +4 -4
  63. package/chunk/index-DJo820YY.js +4 -4
  64. package/chunk/index-DdQD36Ht.js +4 -4
  65. package/chunk/index-Dg1E2EXp.js +4 -4
  66. package/chunk/index-Nrs9NgvW.js +4 -4
  67. package/chunk/index-SwnUiXjr.js +4 -4
  68. package/chunk/index-eFXOIqbw.js +4 -4
  69. package/chunk/index-huf3obhv.js +4 -4
  70. package/chunk/index-n6fChAZJ.js +4 -4
  71. package/chunk/index-oHEY5B58.js +4 -4
  72. package/chunk/index-oagew295.js +4 -4
  73. package/chunk/{index-BKeGcdZT.js → index-xT_pYFTE.js} +443 -426
  74. package/chunk/{index-BKeGcdZT.js.map → index-xT_pYFTE.js.map} +1 -1
  75. package/chunk/index-zX2rojxg.js +4 -4
  76. package/chunk/is-BQ1w_dZd.js +4 -4
  77. package/chunk/it-DWcg5lrp.js +4 -4
  78. package/chunk/iw-CH8pA0K5.js +4 -4
  79. package/chunk/ja-DTB4oZtr.js +4 -4
  80. package/chunk/ko-YjkGeAf9.js +4 -4
  81. package/chunk/lo-BUmUlWoZ.js +4 -4
  82. package/chunk/lt-DyDf6oJm.js +4 -4
  83. package/chunk/ms-CIV35HiR.js +4 -4
  84. package/chunk/nl-BE-qnndQXN-.js +4 -4
  85. package/chunk/nl-BEcCaCBh.js +4 -4
  86. package/chunk/no-6tZgKN0w.js +4 -4
  87. package/chunk/pl-CfngpFII.js +4 -4
  88. package/chunk/pt-BR-BkmnC8r-.js +4 -4
  89. package/chunk/pt-D3Gz8aCi.js +4 -4
  90. package/chunk/ro-SIuDm7Nt.js +4 -4
  91. package/chunk/ru-DrinNLb3.js +4 -4
  92. package/chunk/sk-DK0CgugP.js +4 -4
  93. package/chunk/sl-BSnDNZ_p.js +4 -4
  94. package/chunk/sr-t_C4aOh0.js +4 -4
  95. package/chunk/sv-hjxeMgEO.js +4 -4
  96. package/chunk/sw-Bx_fcZ4c.js +4 -4
  97. package/chunk/th-kkF4cO_F.js +4 -4
  98. package/chunk/tr-Dra2pQ5h.js +4 -4
  99. package/chunk/uk-UEKtnnPj.js +4 -4
  100. package/chunk/ur-COGBRjXF.js +4 -4
  101. package/chunk/useCollectFieldsEndpoint-DFo1yXvN.js +4 -4
  102. package/chunk/useCollectFieldsEndpoint-DPX8CT4Y.js +4 -4
  103. package/chunk/useEmailFirstExperiment-0w7ddaGM.js +4 -4
  104. package/chunk/useEmailFirstExperiment-BT8sb1Ma.js +4 -4
  105. package/chunk/vi-CAhGkrs3.js +4 -4
  106. package/chunk/zh-CobVQtU0.js +4 -4
  107. package/chunk/zh-HK-BuYPE4ck.js +4 -4
  108. package/chunk/zu-LijCPCBd.js +4 -4
  109. package/es6.css +4 -4
  110. package/jslib.js +20 -20
  111. package/lib/{EmailLoopPending-DH_ik79n.js → EmailLoopPending-BnDYLSO9.js} +5 -5
  112. package/lib/{EmailLoopPending-DH_ik79n.js.map → EmailLoopPending-BnDYLSO9.js.map} +1 -1
  113. package/lib/{LicensedProfessionalOrganizationComponent-x_yZ4EmH.js → LicensedProfessionalOrganizationComponent-BKShSJbz.js} +5 -5
  114. package/lib/{LicensedProfessionalOrganizationComponent-x_yZ4EmH.js.map → LicensedProfessionalOrganizationComponent-BKShSJbz.js.map} +1 -1
  115. package/lib/Onfido-BX3RMDPu.js +4 -4
  116. package/lib/StepCollectMilitaryStatusComponent-DjGAzdM3.js +11 -0
  117. package/lib/{StepCollectMilitaryStatusComponent-B6nxZ9PQ.js.map → StepCollectMilitaryStatusComponent-DjGAzdM3.js.map} +1 -1
  118. package/lib/{StepIDCheckLoopOnfido-B1Ix3_Al.js → StepIDCheckLoopOnfido-BHHsIklN.js} +5 -5
  119. package/lib/{StepIDCheckLoopOnfido-B1Ix3_Al.js.map → StepIDCheckLoopOnfido-BHHsIklN.js.map} +1 -1
  120. package/lib/{StepIDCheckLoopRegula-CfRJkrW9.js → StepIDCheckLoopRegula-D5LYuadY.js} +5 -5
  121. package/lib/{StepIDCheckLoopRegula-CfRJkrW9.js.map → StepIDCheckLoopRegula-D5LYuadY.js.map} +1 -1
  122. package/lib/{StepInactiveMilitaryPersonalInfoComponent-BEEtbr02.js → StepInactiveMilitaryPersonalInfoComponent-DYpumpb8.js} +66 -66
  123. package/lib/{StepInactiveMilitaryPersonalInfoComponent-BEEtbr02.js.map → StepInactiveMilitaryPersonalInfoComponent-DYpumpb8.js.map} +1 -1
  124. package/lib/{VerificationApiUtils-1yV8hYw5.js → VerificationApiUtils-DlK8JX1J.js} +5 -5
  125. package/lib/{VerificationApiUtils-1yV8hYw5.js.map → VerificationApiUtils-DlK8JX1J.js.map} +1 -1
  126. package/lib/ar-DgWnOHb0.js +4 -4
  127. package/lib/bg-BOoVh0N7.js +4 -4
  128. package/lib/bn-IN-DfQpdb68.js +4 -4
  129. package/lib/cs-B9lN4RVR.js +4 -4
  130. package/lib/da-BaOy33h_.js +4 -4
  131. package/lib/de-uUHs3YXy.js +4 -4
  132. package/lib/el-xIXJ9sqU.js +4 -4
  133. package/lib/en-GB-8EI1uDkp.js +4 -4
  134. package/lib/es-B7SMjWOB.js +4 -4
  135. package/lib/es-ES-DZwHzn0T.js +4 -4
  136. package/lib/{es6-D1eY1iM7.js → es6-hLz0cQTn.js} +2312 -2296
  137. package/lib/es6-hLz0cQTn.js.map +1 -0
  138. package/lib/fi-DdpuBVsY.js +4 -4
  139. package/lib/fr-CA-CWSDRram.js +4 -4
  140. package/lib/fr-Crh-QCJ-.js +4 -4
  141. package/lib/ga-2XNN2X9n.js +4 -4
  142. package/lib/hi-IN-CXpzvJ5p.js +4 -4
  143. package/lib/hr-BWFHQt1b.js +4 -4
  144. package/lib/hu-BQsQ1_1B.js +4 -4
  145. package/lib/id-D1BredfW.js +4 -4
  146. package/lib/{index-VuNNKOmr.js → index-5ScADjEj.js} +5 -5
  147. package/lib/{index-VuNNKOmr.js.map → index-5ScADjEj.js.map} +1 -1
  148. package/lib/{index-CI_r31Uw.js → index-7VxR6WI5.js} +7 -7
  149. package/lib/{index-CI_r31Uw.js.map → index-7VxR6WI5.js.map} +1 -1
  150. package/lib/{index-BqckhJVS.js → index-7YIcTRAA.js} +42 -35
  151. package/lib/index-7YIcTRAA.js.map +1 -0
  152. package/lib/{index-gEwQn26a.js → index-7mbMbgFf.js} +21 -21
  153. package/lib/{index-gEwQn26a.js.map → index-7mbMbgFf.js.map} +1 -1
  154. package/lib/{index-BNen0NvV.js → index-BEPTMNaN.js} +6 -6
  155. package/lib/{index-BNen0NvV.js.map → index-BEPTMNaN.js.map} +1 -1
  156. package/lib/{index-BslaCqII.js → index-Bc7dn4TB.js} +6 -6
  157. package/lib/{index-BslaCqII.js.map → index-Bc7dn4TB.js.map} +1 -1
  158. package/lib/index-BhyyemZX.js +11 -0
  159. package/lib/index-BhyyemZX.js.map +1 -0
  160. package/lib/index-BiQnlagr.js +11 -0
  161. package/lib/index-BiQnlagr.js.map +1 -0
  162. package/lib/{index-Cl0qwvML.js → index-BsStY8bb.js} +6 -6
  163. package/lib/{index-Cl0qwvML.js.map → index-BsStY8bb.js.map} +1 -1
  164. package/lib/{index-27mhI-22.js → index-BtvKRZe_.js} +9 -9
  165. package/lib/{index-27mhI-22.js.map → index-BtvKRZe_.js.map} +1 -1
  166. package/lib/{index-CT8uMIjB.js → index-CB38EB7B.js} +5 -5
  167. package/lib/{index-CT8uMIjB.js.map → index-CB38EB7B.js.map} +1 -1
  168. package/lib/{index-DBGTWW4T.js → index-CVvT6Abk.js} +5 -5
  169. package/lib/{index-DBGTWW4T.js.map → index-CVvT6Abk.js.map} +1 -1
  170. package/lib/{index-CD__bBXN.js → index-Cgn5YwQZ.js} +6 -6
  171. package/lib/{index-CD__bBXN.js.map → index-Cgn5YwQZ.js.map} +1 -1
  172. package/lib/{index-BW95T9zs.js → index-CgwSBIkx.js} +6 -6
  173. package/lib/{index-BW95T9zs.js.map → index-CgwSBIkx.js.map} +1 -1
  174. package/lib/{index-qKOHC1Ss.js → index-CyKubSWn.js} +10 -10
  175. package/lib/{index-qKOHC1Ss.js.map → index-CyKubSWn.js.map} +1 -1
  176. package/lib/index-D69zvhj4.js +11 -0
  177. package/lib/index-D69zvhj4.js.map +1 -0
  178. package/lib/index-DAOA4i1S.js +11 -0
  179. package/lib/index-DAOA4i1S.js.map +1 -0
  180. package/lib/index-DIkWpujR.js +4 -4
  181. package/lib/{index-W_1d-3IB.js → index-D_RRY_-e.js} +5 -5
  182. package/lib/{index-W_1d-3IB.js.map → index-D_RRY_-e.js.map} +1 -1
  183. package/lib/{index-T0LJvc9d.js → index-Dj5ofyXV.js} +15 -15
  184. package/lib/{index-T0LJvc9d.js.map → index-Dj5ofyXV.js.map} +1 -1
  185. package/lib/{index-MW8fTMBB.js → index-DmmCZGjv.js} +5 -5
  186. package/lib/{index-MW8fTMBB.js.map → index-DmmCZGjv.js.map} +1 -1
  187. package/lib/{index-DbDm-k2z.js → index-IJ1qzoc2.js} +11 -11
  188. package/lib/{index-DbDm-k2z.js.map → index-IJ1qzoc2.js.map} +1 -1
  189. package/lib/{index-DTZnK96J.js → index-LLgqwu1f.js} +5 -5
  190. package/lib/{index-DTZnK96J.js.map → index-LLgqwu1f.js.map} +1 -1
  191. package/lib/{index-Cz8573Oz.js → index-gT7kxzOV.js} +572 -555
  192. package/lib/{index-Cz8573Oz.js.map → index-gT7kxzOV.js.map} +1 -1
  193. package/lib/is-BQ1w_dZd.js +4 -4
  194. package/lib/it-DWcg5lrp.js +4 -4
  195. package/lib/iw-CH8pA0K5.js +4 -4
  196. package/lib/ja-DTB4oZtr.js +4 -4
  197. package/lib/ko-YjkGeAf9.js +4 -4
  198. package/lib/lo-BUmUlWoZ.js +4 -4
  199. package/lib/lt-DyDf6oJm.js +4 -4
  200. package/lib/ms-CIV35HiR.js +4 -4
  201. package/lib/nl-BE-qnndQXN-.js +4 -4
  202. package/lib/nl-BEcCaCBh.js +4 -4
  203. package/lib/no-6tZgKN0w.js +4 -4
  204. package/lib/pl-CfngpFII.js +4 -4
  205. package/lib/pt-BR-BkmnC8r-.js +4 -4
  206. package/lib/pt-D3Gz8aCi.js +4 -4
  207. package/lib/ro-SIuDm7Nt.js +4 -4
  208. package/lib/ru-DrinNLb3.js +4 -4
  209. package/lib/sk-DK0CgugP.js +4 -4
  210. package/lib/sl-BSnDNZ_p.js +4 -4
  211. package/lib/sr-t_C4aOh0.js +4 -4
  212. package/lib/sv-hjxeMgEO.js +4 -4
  213. package/lib/sw-Bx_fcZ4c.js +4 -4
  214. package/lib/th-kkF4cO_F.js +4 -4
  215. package/lib/tr-Dra2pQ5h.js +4 -4
  216. package/lib/uk-UEKtnnPj.js +4 -4
  217. package/lib/ur-COGBRjXF.js +4 -4
  218. package/lib/{useCollectFieldsEndpoint-BHYxAqnF.js → useCollectFieldsEndpoint-DuVXD5XO.js} +6 -6
  219. package/lib/{useCollectFieldsEndpoint-BHYxAqnF.js.map → useCollectFieldsEndpoint-DuVXD5XO.js.map} +1 -1
  220. package/lib/{useEmailFirstExperiment-cQUzqFs1.js → useEmailFirstExperiment-D2glplyp.js} +14 -14
  221. package/lib/{useEmailFirstExperiment-cQUzqFs1.js.map → useEmailFirstExperiment-D2glplyp.js.map} +1 -1
  222. package/lib/vi-CAhGkrs3.js +4 -4
  223. package/lib/zh-CobVQtU0.js +4 -4
  224. package/lib/zh-HK-BuYPE4ck.js +4 -4
  225. package/lib/zu-LijCPCBd.js +4 -4
  226. package/package.json +1 -1
  227. package/sheerid-install.css +4 -4
  228. package/sheerid-install.js +5 -5
  229. package/sheerid.css +4 -4
  230. package/sheerid.js +1889 -1873
  231. package/sheerid.js.map +1 -1
  232. package/src/lib/GoogleAnalytics/ga.d.ts +13 -0
  233. package/types-reference.zip +0 -0
  234. package/chunk/index-DR8uqKnQ.js.map +0 -1
  235. package/chunk/index-dt1aUu5L.js.map +0 -1
  236. package/lib/StepCollectMilitaryStatusComponent-B6nxZ9PQ.js +0 -11
  237. package/lib/es6-D1eY1iM7.js.map +0 -1
  238. package/lib/index-BjfLH9Nq.js +0 -11
  239. package/lib/index-BjfLH9Nq.js.map +0 -1
  240. package/lib/index-BqckhJVS.js.map +0 -1
  241. package/lib/index-CAbWUucN.js +0 -11
  242. package/lib/index-CAbWUucN.js.map +0 -1
  243. package/lib/index-CcCA74P9.js +0 -11
  244. package/lib/index-CcCA74P9.js.map +0 -1
  245. package/lib/index-DRGi9Q4Z.js +0 -11
  246. package/lib/index-DRGi9Q4Z.js.map +0 -1
@@ -1,15 +1,15 @@
1
1
 
2
2
  /**
3
- * VERSION: 2.142.0-alpha.0
4
- * BUILD_TIMESTAMP: 1761090499030
5
- * BUILD_DATE: Tue Oct 21 2025 23:48:19 GMT+0000 (Coordinated Universal Time)
6
- * BUILD_COMMIT: 0b88937d0476ddf334877cc2bc4be0bc80e18cb3
3
+ * VERSION: 2.143.0-alpha.0
4
+ * BUILD_TIMESTAMP: 1761172105160
5
+ * BUILD_DATE: Wed Oct 22 2025 22:28:25 GMT+0000 (Coordinated Universal Time)
6
+ * BUILD_COMMIT: fda5a0c829e048ad725ead16b45f8c05b094edf5
7
7
  */
8
- import { aY as K, aZ as q, a_ as It, a$ as h, j as t, b0 as n, aP as u, at as ye, aD as Et, e as vt, b1 as Ut, i as jt, b2 as We, t as Dt, A as _t, b3 as At, b4 as wt, b5 as Rt, B as Ft, b6 as Nt, b7 as Tt, b8 as Ot, q as Ct, l as Le, V as Ie, b9 as St, ba as Lt, bb as Mt, bc as kt, r as Ge, bd as Pt, be as Bt } from "./es6-D1eY1iM7.js";
9
- import * as Ue from "react";
10
- import Yt, { forwardRef as Ht, useImperativeHandle as zt, Fragment as Vt, useMemo as Ee, useRef as Me, useReducer as Wt, useEffect as $e, useCallback as N, useState as ne } from "react";
11
- import { FormattedHTMLMessage as m, injectIntl as Gt } from "react-intl";
12
- var $t = /* @__PURE__ */ new Map([
8
+ import { aY as ee, aZ as te, a_ as vt, a$ as h, j as t, b0 as n, aP as u, av as Ee, aD as Ut, e as jt, b1 as Dt, i as _t, b2 as Ge, t as At, A as wt, b3 as Rt, b4 as Ft, b5 as Nt, B as Ot, b6 as Tt, b7 as Ct, b8 as St, q as Lt, l as Le, V as ve, aj as $e, ak as Ke, b9 as Mt, ba as kt, bb as Pt, bc as Bt, r as qe, bd as Yt, be as Ht } from "./es6-hLz0cQTn.js";
9
+ import * as De from "react";
10
+ import zt, { forwardRef as Vt, useImperativeHandle as Wt, Fragment as Gt, useMemo as Ue, useRef as Me, useReducer as $t, useEffect as Ze, useCallback as N, useState as ce } from "react";
11
+ import { FormattedHTMLMessage as m, injectIntl as Kt } from "react-intl";
12
+ var qt = /* @__PURE__ */ new Map([
13
13
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
14
14
  ["aac", "audio/aac"],
15
15
  ["abw", "application/x-abiword"],
@@ -91,23 +91,23 @@ var $t = /* @__PURE__ */ new Map([
91
91
  ["mov", "video/quicktime"],
92
92
  ["msg", "application/vnd.ms-outlook"]
93
93
  ]);
94
- function se(e, o) {
95
- var a = Kt(e);
96
- if (typeof a.path != "string") {
94
+ function pe(e, a) {
95
+ var o = Zt(e);
96
+ if (typeof o.path != "string") {
97
97
  var r = e.webkitRelativePath;
98
- Object.defineProperty(a, "path", {
99
- value: typeof o == "string" ? o : typeof r == "string" && r.length > 0 ? r : e.name,
98
+ Object.defineProperty(o, "path", {
99
+ value: typeof a == "string" ? a : typeof r == "string" && r.length > 0 ? r : e.name,
100
100
  writable: !1,
101
101
  configurable: !1,
102
102
  enumerable: !0
103
103
  });
104
104
  }
105
- return a;
105
+ return o;
106
106
  }
107
- function Kt(e) {
108
- var o = e.name, a = o && o.lastIndexOf(".") !== -1;
109
- if (a && !e.type) {
110
- var r = o.split(".").pop().toLowerCase(), s = $t.get(r);
107
+ function Zt(e) {
108
+ var a = e.name, o = a && a.lastIndexOf(".") !== -1;
109
+ if (o && !e.type) {
110
+ var r = a.split(".").pop().toLowerCase(), s = qt.get(r);
111
111
  s && Object.defineProperty(e, "type", {
112
112
  value: s,
113
113
  writable: !1,
@@ -117,134 +117,134 @@ function Kt(e) {
117
117
  }
118
118
  return e;
119
119
  }
120
- var qt = [
120
+ var Qt = [
121
121
  // Thumbnail cache files for macOS and Windows
122
122
  ".DS_Store",
123
123
  "Thumbs.db"
124
124
  // Windows
125
125
  ];
126
- function Zt(e) {
127
- return K(this, void 0, void 0, function() {
128
- return q(this, function(o) {
129
- return je(e) && Qt(e) ? [2, to(e.dataTransfer, e.type)] : Xt(e) ? [2, Jt(e)] : Array.isArray(e) && e.every(function(a) {
130
- return "getFile" in a && typeof a.getFile == "function";
131
- }) ? [2, eo(e)] : [2, []];
126
+ function Xt(e) {
127
+ return ee(this, void 0, void 0, function() {
128
+ return te(this, function(a) {
129
+ return _e(e) && Jt(e) ? [2, oa(e.dataTransfer, e.type)] : ea(e) ? [2, ta(e)] : Array.isArray(e) && e.every(function(o) {
130
+ return "getFile" in o && typeof o.getFile == "function";
131
+ }) ? [2, aa(e)] : [2, []];
132
132
  });
133
133
  });
134
134
  }
135
- function Qt(e) {
136
- return je(e.dataTransfer);
135
+ function Jt(e) {
136
+ return _e(e.dataTransfer);
137
137
  }
138
- function Xt(e) {
139
- return je(e) && je(e.target);
138
+ function ea(e) {
139
+ return _e(e) && _e(e.target);
140
140
  }
141
- function je(e) {
141
+ function _e(e) {
142
142
  return typeof e == "object" && e !== null;
143
143
  }
144
- function Jt(e) {
145
- return Pe(e.target.files).map(function(o) {
146
- return se(o);
144
+ function ta(e) {
145
+ return Pe(e.target.files).map(function(a) {
146
+ return pe(a);
147
147
  });
148
148
  }
149
- function eo(e) {
150
- return K(this, void 0, void 0, function() {
151
- var o;
152
- return q(this, function(a) {
153
- switch (a.label) {
149
+ function aa(e) {
150
+ return ee(this, void 0, void 0, function() {
151
+ var a;
152
+ return te(this, function(o) {
153
+ switch (o.label) {
154
154
  case 0:
155
155
  return [4, Promise.all(e.map(function(r) {
156
156
  return r.getFile();
157
157
  }))];
158
158
  case 1:
159
- return o = a.sent(), [2, o.map(function(r) {
160
- return se(r);
159
+ return a = o.sent(), [2, a.map(function(r) {
160
+ return pe(r);
161
161
  })];
162
162
  }
163
163
  });
164
164
  });
165
165
  }
166
- function to(e, o) {
167
- return K(this, void 0, void 0, function() {
168
- var a, r;
169
- return q(this, function(s) {
166
+ function oa(e, a) {
167
+ return ee(this, void 0, void 0, function() {
168
+ var o, r;
169
+ return te(this, function(s) {
170
170
  switch (s.label) {
171
171
  case 0:
172
- return e === null ? [2, []] : e.items ? (a = Pe(e.items).filter(function(d) {
172
+ return e === null ? [2, []] : e.items ? (o = Pe(e.items).filter(function(d) {
173
173
  return d.kind === "file";
174
- }), o !== "drop" ? [2, a] : [4, Promise.all(a.map(oo))]) : [3, 2];
174
+ }), a !== "drop" ? [2, o] : [4, Promise.all(o.map(ra))]) : [3, 2];
175
175
  case 1:
176
- return r = s.sent(), [2, Ke(lt(r))];
176
+ return r = s.sent(), [2, Qe(pt(r))];
177
177
  case 2:
178
- return [2, Ke(Pe(e.files).map(function(d) {
179
- return se(d);
178
+ return [2, Qe(Pe(e.files).map(function(d) {
179
+ return pe(d);
180
180
  }))];
181
181
  }
182
182
  });
183
183
  });
184
184
  }
185
- function Ke(e) {
186
- return e.filter(function(o) {
187
- return qt.indexOf(o.name) === -1;
185
+ function Qe(e) {
186
+ return e.filter(function(a) {
187
+ return Qt.indexOf(a.name) === -1;
188
188
  });
189
189
  }
190
190
  function Pe(e) {
191
191
  if (e === null)
192
192
  return [];
193
- for (var o = [], a = 0; a < e.length; a++) {
194
- var r = e[a];
195
- o.push(r);
193
+ for (var a = [], o = 0; o < e.length; o++) {
194
+ var r = e[o];
195
+ a.push(r);
196
196
  }
197
- return o;
197
+ return a;
198
198
  }
199
- function oo(e) {
199
+ function ra(e) {
200
200
  if (typeof e.webkitGetAsEntry != "function")
201
- return qe(e);
202
- var o = e.webkitGetAsEntry();
203
- return o && o.isDirectory ? dt(o) : qe(e);
201
+ return Xe(e);
202
+ var a = e.webkitGetAsEntry();
203
+ return a && a.isDirectory ? ut(a) : Xe(e);
204
204
  }
205
- function lt(e) {
206
- return e.reduce(function(o, a) {
207
- return It(o, Array.isArray(a) ? lt(a) : [a]);
205
+ function pt(e) {
206
+ return e.reduce(function(a, o) {
207
+ return vt(a, Array.isArray(o) ? pt(o) : [o]);
208
208
  }, []);
209
209
  }
210
- function qe(e) {
211
- var o = e.getAsFile();
212
- if (!o)
210
+ function Xe(e) {
211
+ var a = e.getAsFile();
212
+ if (!a)
213
213
  return Promise.reject(e + " is not a File");
214
- var a = se(o);
215
- return Promise.resolve(a);
214
+ var o = pe(a);
215
+ return Promise.resolve(o);
216
216
  }
217
- function ao(e) {
218
- return K(this, void 0, void 0, function() {
219
- return q(this, function(o) {
220
- return [2, e.isDirectory ? dt(e) : ro(e)];
217
+ function na(e) {
218
+ return ee(this, void 0, void 0, function() {
219
+ return te(this, function(a) {
220
+ return [2, e.isDirectory ? ut(e) : sa(e)];
221
221
  });
222
222
  });
223
223
  }
224
- function dt(e) {
225
- var o = e.createReader();
226
- return new Promise(function(a, r) {
224
+ function ut(e) {
225
+ var a = e.createReader();
226
+ return new Promise(function(o, r) {
227
227
  var s = [];
228
228
  function d() {
229
229
  var f = this;
230
- o.readEntries(function(c) {
231
- return K(f, void 0, void 0, function() {
232
- var E, g, A;
233
- return q(this, function(j) {
234
- switch (j.label) {
230
+ a.readEntries(function(c) {
231
+ return ee(f, void 0, void 0, function() {
232
+ var v, w, O;
233
+ return te(this, function(U) {
234
+ switch (U.label) {
235
235
  case 0:
236
236
  if (c.length) return [3, 5];
237
- j.label = 1;
237
+ U.label = 1;
238
238
  case 1:
239
- return j.trys.push([1, 3, , 4]), [4, Promise.all(s)];
239
+ return U.trys.push([1, 3, , 4]), [4, Promise.all(s)];
240
240
  case 2:
241
- return E = j.sent(), a(E), [3, 4];
241
+ return v = U.sent(), o(v), [3, 4];
242
242
  case 3:
243
- return g = j.sent(), r(g), [3, 4];
243
+ return w = U.sent(), r(w), [3, 4];
244
244
  case 4:
245
245
  return [3, 6];
246
246
  case 5:
247
- A = Promise.all(c.map(ao)), s.push(A), d(), j.label = 6;
247
+ O = Promise.all(c.map(na)), s.push(O), d(), U.label = 6;
248
248
  case 6:
249
249
  return [
250
250
  2
@@ -260,13 +260,13 @@ function dt(e) {
260
260
  d();
261
261
  });
262
262
  }
263
- function ro(e) {
264
- return K(this, void 0, void 0, function() {
265
- return q(this, function(o) {
266
- return [2, new Promise(function(a, r) {
263
+ function sa(e) {
264
+ return ee(this, void 0, void 0, function() {
265
+ return te(this, function(a) {
266
+ return [2, new Promise(function(o, r) {
267
267
  e.file(function(s) {
268
- var d = se(s, e.fullPath);
269
- a(d);
268
+ var d = pe(s, e.fullPath);
269
+ o(d);
270
270
  }, function(s) {
271
271
  r(s);
272
272
  });
@@ -274,76 +274,76 @@ function ro(e) {
274
274
  });
275
275
  });
276
276
  }
277
- var no = function(e, o) {
278
- if (e && o) {
279
- var a = Array.isArray(o) ? o : o.split(",");
280
- if (a.length === 0)
277
+ var ia = function(e, a) {
278
+ if (e && a) {
279
+ var o = Array.isArray(a) ? a : a.split(",");
280
+ if (o.length === 0)
281
281
  return !0;
282
282
  var r = e.name || "", s = (e.type || "").toLowerCase(), d = s.replace(/\/.*$/, "");
283
- return a.some(function(f) {
283
+ return o.some(function(f) {
284
284
  var c = f.trim().toLowerCase();
285
285
  return c.charAt(0) === "." ? r.toLowerCase().endsWith(c) : c.endsWith("/*") ? d === c.replace(/\/.*$/, "") : s === c;
286
286
  });
287
287
  }
288
288
  return !0;
289
289
  };
290
- function Ze(e, o) {
291
- var a = Object.keys(e);
290
+ function Je(e, a) {
291
+ var o = Object.keys(e);
292
292
  if (Object.getOwnPropertySymbols) {
293
293
  var r = Object.getOwnPropertySymbols(e);
294
- o && (r = r.filter(function(s) {
294
+ a && (r = r.filter(function(s) {
295
295
  return Object.getOwnPropertyDescriptor(e, s).enumerable;
296
- })), a.push.apply(a, r);
296
+ })), o.push.apply(o, r);
297
297
  }
298
- return a;
298
+ return o;
299
299
  }
300
- function Qe(e) {
301
- for (var o = 1; o < arguments.length; o++) {
302
- var a = arguments[o] != null ? arguments[o] : {};
303
- o % 2 ? Ze(Object(a), !0).forEach(function(r) {
304
- ct(e, r, a[r]);
305
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : Ze(Object(a)).forEach(function(r) {
306
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
300
+ function et(e) {
301
+ for (var a = 1; a < arguments.length; a++) {
302
+ var o = arguments[a] != null ? arguments[a] : {};
303
+ a % 2 ? Je(Object(o), !0).forEach(function(r) {
304
+ ft(e, r, o[r]);
305
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : Je(Object(o)).forEach(function(r) {
306
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(o, r));
307
307
  });
308
308
  }
309
309
  return e;
310
310
  }
311
- function ct(e, o, a) {
312
- return o in e ? Object.defineProperty(e, o, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : e[o] = a, e;
311
+ function ft(e, a, o) {
312
+ return a in e ? Object.defineProperty(e, a, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = o, e;
313
313
  }
314
- function Xe(e, o) {
315
- return co(e) || lo(e, o) || io(e, o) || so();
314
+ function tt(e, a) {
315
+ return pa(e) || ca(e, a) || da(e, a) || la();
316
316
  }
317
- function so() {
317
+ function la() {
318
318
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
319
319
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
320
320
  }
321
- function io(e, o) {
321
+ function da(e, a) {
322
322
  if (e) {
323
- if (typeof e == "string") return Je(e, o);
324
- var a = Object.prototype.toString.call(e).slice(8, -1);
325
- if (a === "Object" && e.constructor && (a = e.constructor.name), a === "Map" || a === "Set") return Array.from(e);
326
- if (a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)) return Je(e, o);
323
+ if (typeof e == "string") return at(e, a);
324
+ var o = Object.prototype.toString.call(e).slice(8, -1);
325
+ if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e);
326
+ if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return at(e, a);
327
327
  }
328
328
  }
329
- function Je(e, o) {
330
- (o == null || o > e.length) && (o = e.length);
331
- for (var a = 0, r = new Array(o); a < o; a++)
332
- r[a] = e[a];
329
+ function at(e, a) {
330
+ (a == null || a > e.length) && (a = e.length);
331
+ for (var o = 0, r = new Array(a); o < a; o++)
332
+ r[o] = e[o];
333
333
  return r;
334
334
  }
335
- function lo(e, o) {
336
- var a = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
337
- if (a != null) {
335
+ function ca(e, a) {
336
+ var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
337
+ if (o != null) {
338
338
  var r = [], s = !0, d = !1, f, c;
339
339
  try {
340
- for (a = a.call(e); !(s = (f = a.next()).done) && (r.push(f.value), !(o && r.length === o)); s = !0)
340
+ for (o = o.call(e); !(s = (f = o.next()).done) && (r.push(f.value), !(a && r.length === a)); s = !0)
341
341
  ;
342
- } catch (E) {
343
- d = !0, c = E;
342
+ } catch (v) {
343
+ d = !0, c = v;
344
344
  } finally {
345
345
  try {
346
- !s && a.return != null && a.return();
346
+ !s && o.return != null && o.return();
347
347
  } finally {
348
348
  if (d) throw c;
349
349
  }
@@ -351,148 +351,148 @@ function lo(e, o) {
351
351
  return r;
352
352
  }
353
353
  }
354
- function co(e) {
354
+ function pa(e) {
355
355
  if (Array.isArray(e)) return e;
356
356
  }
357
- var po = "file-invalid-type", uo = "file-too-large", fo = "file-too-small", mo = "too-many-files", ho = function(o) {
358
- o = Array.isArray(o) && o.length === 1 ? o[0] : o;
359
- var a = Array.isArray(o) ? "one of ".concat(o.join(", ")) : o;
357
+ var ua = "file-invalid-type", fa = "file-too-large", ma = "file-too-small", ha = "too-many-files", ga = function(a) {
358
+ a = Array.isArray(a) && a.length === 1 ? a[0] : a;
359
+ var o = Array.isArray(a) ? "one of ".concat(a.join(", ")) : a;
360
360
  return {
361
- code: po,
362
- message: "File type must be ".concat(a)
361
+ code: ua,
362
+ message: "File type must be ".concat(o)
363
363
  };
364
- }, et = function(o) {
364
+ }, ot = function(a) {
365
365
  return {
366
- code: uo,
367
- message: "File is larger than ".concat(o, " ").concat(o === 1 ? "byte" : "bytes")
366
+ code: fa,
367
+ message: "File is larger than ".concat(a, " ").concat(a === 1 ? "byte" : "bytes")
368
368
  };
369
- }, tt = function(o) {
369
+ }, rt = function(a) {
370
370
  return {
371
- code: fo,
372
- message: "File is smaller than ".concat(o, " ").concat(o === 1 ? "byte" : "bytes")
371
+ code: ma,
372
+ message: "File is smaller than ".concat(a, " ").concat(a === 1 ? "byte" : "bytes")
373
373
  };
374
- }, go = {
375
- code: mo,
374
+ }, xa = {
375
+ code: ha,
376
376
  message: "Too many files"
377
377
  };
378
- function pt(e, o) {
379
- var a = e.type === "application/x-moz-file" || no(e, o);
380
- return [a, a ? null : ho(o)];
378
+ function mt(e, a) {
379
+ var o = e.type === "application/x-moz-file" || ia(e, a);
380
+ return [o, o ? null : ga(a)];
381
381
  }
382
- function ut(e, o, a) {
383
- if (ae(e.size))
384
- if (ae(o) && ae(a)) {
385
- if (e.size > a) return [!1, et(a)];
386
- if (e.size < o) return [!1, tt(o)];
382
+ function ht(e, a, o) {
383
+ if (le(e.size))
384
+ if (le(a) && le(o)) {
385
+ if (e.size > o) return [!1, ot(o)];
386
+ if (e.size < a) return [!1, rt(a)];
387
387
  } else {
388
- if (ae(o) && e.size < o) return [!1, tt(o)];
389
- if (ae(a) && e.size > a) return [!1, et(a)];
388
+ if (le(a) && e.size < a) return [!1, rt(a)];
389
+ if (le(o) && e.size > o) return [!1, ot(o)];
390
390
  }
391
391
  return [!0, null];
392
392
  }
393
- function ae(e) {
393
+ function le(e) {
394
394
  return e != null;
395
395
  }
396
- function xo(e) {
397
- var o = e.files, a = e.accept, r = e.minSize, s = e.maxSize, d = e.multiple, f = e.maxFiles;
398
- return !d && o.length > 1 || d && f >= 1 && o.length > f ? !1 : o.every(function(c) {
399
- var E = pt(c, a), g = Xe(E, 1), A = g[0], j = ut(c, r, s), T = Xe(j, 1), L = T[0];
400
- return A && L;
396
+ function ba(e) {
397
+ var a = e.files, o = e.accept, r = e.minSize, s = e.maxSize, d = e.multiple, f = e.maxFiles;
398
+ return !d && a.length > 1 || d && f >= 1 && a.length > f ? !1 : a.every(function(c) {
399
+ var v = mt(c, o), w = tt(v, 1), O = w[0], U = ht(c, r, s), x = tt(U, 1), T = x[0];
400
+ return O && T;
401
401
  });
402
402
  }
403
- function De(e) {
403
+ function Ae(e) {
404
404
  return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
405
405
  }
406
- function ve(e) {
407
- return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(o) {
408
- return o === "Files" || o === "application/x-moz-file";
406
+ function je(e) {
407
+ return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(a) {
408
+ return a === "Files" || a === "application/x-moz-file";
409
409
  }) : !!e.target && !!e.target.files;
410
410
  }
411
- function ot(e) {
411
+ function nt(e) {
412
412
  e.preventDefault();
413
413
  }
414
- function bo(e) {
414
+ function ya(e) {
415
415
  return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
416
416
  }
417
- function yo(e) {
417
+ function Ia(e) {
418
418
  return e.indexOf("Edge/") !== -1;
419
419
  }
420
- function Io() {
420
+ function Ea() {
421
421
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
422
- return bo(e) || yo(e);
422
+ return ya(e) || Ia(e);
423
423
  }
424
- function C() {
425
- for (var e = arguments.length, o = new Array(e), a = 0; a < e; a++)
426
- o[a] = arguments[a];
424
+ function L() {
425
+ for (var e = arguments.length, a = new Array(e), o = 0; o < e; o++)
426
+ a[o] = arguments[o];
427
427
  return function(r) {
428
428
  for (var s = arguments.length, d = new Array(s > 1 ? s - 1 : 0), f = 1; f < s; f++)
429
429
  d[f - 1] = arguments[f];
430
- return o.some(function(c) {
431
- return !De(r) && c && c.apply(void 0, [r].concat(d)), De(r);
430
+ return a.some(function(c) {
431
+ return !Ae(r) && c && c.apply(void 0, [r].concat(d)), Ae(r);
432
432
  });
433
433
  };
434
434
  }
435
- function at() {
435
+ function st() {
436
436
  return "showOpenFilePicker" in window;
437
437
  }
438
- function Eo(e) {
438
+ function va(e) {
439
439
  return e = typeof e == "string" ? e.split(",") : e, [{
440
440
  description: "everything",
441
441
  // TODO: Need to handle filtering more elegantly than this!
442
- accept: Array.isArray(e) ? e.filter(function(o) {
443
- return o === "audio/*" || o === "video/*" || o === "image/*" || o === "text/*" || /\w+\/[-+.\w]+/g.test(o);
444
- }).reduce(function(o, a) {
445
- return Qe(Qe({}, o), {}, ct({}, a, []));
442
+ accept: Array.isArray(e) ? e.filter(function(a) {
443
+ return a === "audio/*" || a === "video/*" || a === "image/*" || a === "text/*" || /\w+\/[-+.\w]+/g.test(a);
444
+ }).reduce(function(a, o) {
445
+ return et(et({}, a), {}, ft({}, o, []));
446
446
  }, {}) : {}
447
447
  }];
448
448
  }
449
- var vo = ["children"], Uo = ["open"], jo = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Do = ["refKey", "onChange", "onClick"];
450
- function _o(e) {
451
- return Ro(e) || wo(e) || ft(e) || Ao();
449
+ var Ua = ["children"], ja = ["open"], Da = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], _a = ["refKey", "onChange", "onClick"];
450
+ function Aa(e) {
451
+ return Fa(e) || Ra(e) || gt(e) || wa();
452
452
  }
453
- function Ao() {
453
+ function wa() {
454
454
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
455
455
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
456
456
  }
457
- function wo(e) {
457
+ function Ra(e) {
458
458
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
459
459
  }
460
- function Ro(e) {
460
+ function Fa(e) {
461
461
  if (Array.isArray(e)) return Be(e);
462
462
  }
463
- function ke(e, o) {
464
- return To(e) || No(e, o) || ft(e, o) || Fo();
463
+ function ke(e, a) {
464
+ return Ta(e) || Oa(e, a) || gt(e, a) || Na();
465
465
  }
466
- function Fo() {
466
+ function Na() {
467
467
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
468
468
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
469
469
  }
470
- function ft(e, o) {
470
+ function gt(e, a) {
471
471
  if (e) {
472
- if (typeof e == "string") return Be(e, o);
473
- var a = Object.prototype.toString.call(e).slice(8, -1);
474
- if (a === "Object" && e.constructor && (a = e.constructor.name), a === "Map" || a === "Set") return Array.from(e);
475
- if (a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)) return Be(e, o);
472
+ if (typeof e == "string") return Be(e, a);
473
+ var o = Object.prototype.toString.call(e).slice(8, -1);
474
+ if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e);
475
+ if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return Be(e, a);
476
476
  }
477
477
  }
478
- function Be(e, o) {
479
- (o == null || o > e.length) && (o = e.length);
480
- for (var a = 0, r = new Array(o); a < o; a++)
481
- r[a] = e[a];
478
+ function Be(e, a) {
479
+ (a == null || a > e.length) && (a = e.length);
480
+ for (var o = 0, r = new Array(a); o < a; o++)
481
+ r[o] = e[o];
482
482
  return r;
483
483
  }
484
- function No(e, o) {
485
- var a = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
486
- if (a != null) {
484
+ function Oa(e, a) {
485
+ var o = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
486
+ if (o != null) {
487
487
  var r = [], s = !0, d = !1, f, c;
488
488
  try {
489
- for (a = a.call(e); !(s = (f = a.next()).done) && (r.push(f.value), !(o && r.length === o)); s = !0)
489
+ for (o = o.call(e); !(s = (f = o.next()).done) && (r.push(f.value), !(a && r.length === a)); s = !0)
490
490
  ;
491
- } catch (E) {
492
- d = !0, c = E;
491
+ } catch (v) {
492
+ d = !0, c = v;
493
493
  } finally {
494
494
  try {
495
- !s && a.return != null && a.return();
495
+ !s && o.return != null && o.return();
496
496
  } finally {
497
497
  if (d) throw c;
498
498
  }
@@ -500,64 +500,64 @@ function No(e, o) {
500
500
  return r;
501
501
  }
502
502
  }
503
- function To(e) {
503
+ function Ta(e) {
504
504
  if (Array.isArray(e)) return e;
505
505
  }
506
- function rt(e, o) {
507
- var a = Object.keys(e);
506
+ function it(e, a) {
507
+ var o = Object.keys(e);
508
508
  if (Object.getOwnPropertySymbols) {
509
509
  var r = Object.getOwnPropertySymbols(e);
510
- o && (r = r.filter(function(s) {
510
+ a && (r = r.filter(function(s) {
511
511
  return Object.getOwnPropertyDescriptor(e, s).enumerable;
512
- })), a.push.apply(a, r);
512
+ })), o.push.apply(o, r);
513
513
  }
514
- return a;
514
+ return o;
515
515
  }
516
- function x(e) {
517
- for (var o = 1; o < arguments.length; o++) {
518
- var a = arguments[o] != null ? arguments[o] : {};
519
- o % 2 ? rt(Object(a), !0).forEach(function(r) {
520
- Ye(e, r, a[r]);
521
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : rt(Object(a)).forEach(function(r) {
522
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(a, r));
516
+ function g(e) {
517
+ for (var a = 1; a < arguments.length; a++) {
518
+ var o = arguments[a] != null ? arguments[a] : {};
519
+ a % 2 ? it(Object(o), !0).forEach(function(r) {
520
+ Ye(e, r, o[r]);
521
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : it(Object(o)).forEach(function(r) {
522
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(o, r));
523
523
  });
524
524
  }
525
525
  return e;
526
526
  }
527
- function Ye(e, o, a) {
528
- return o in e ? Object.defineProperty(e, o, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : e[o] = a, e;
527
+ function Ye(e, a, o) {
528
+ return a in e ? Object.defineProperty(e, a, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = o, e;
529
529
  }
530
- function _e(e, o) {
530
+ function we(e, a) {
531
531
  if (e == null) return {};
532
- var a = Oo(e, o), r, s;
532
+ var o = Ca(e, a), r, s;
533
533
  if (Object.getOwnPropertySymbols) {
534
534
  var d = Object.getOwnPropertySymbols(e);
535
535
  for (s = 0; s < d.length; s++)
536
- r = d[s], !(o.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
536
+ r = d[s], !(a.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
537
537
  }
538
- return a;
538
+ return o;
539
539
  }
540
- function Oo(e, o) {
540
+ function Ca(e, a) {
541
541
  if (e == null) return {};
542
- var a = {}, r = Object.keys(e), s, d;
542
+ var o = {}, r = Object.keys(e), s, d;
543
543
  for (d = 0; d < r.length; d++)
544
- s = r[d], !(o.indexOf(s) >= 0) && (a[s] = e[s]);
545
- return a;
544
+ s = r[d], !(a.indexOf(s) >= 0) && (o[s] = e[s]);
545
+ return o;
546
546
  }
547
- var ie = /* @__PURE__ */ Ht(function(e, o) {
548
- var a = e.children, r = _e(e, vo), s = Co(r), d = s.open, f = _e(s, Uo);
549
- return zt(o, function() {
547
+ var ue = /* @__PURE__ */ Vt(function(e, a) {
548
+ var o = e.children, r = we(e, Ua), s = Sa(r), d = s.open, f = we(s, ja);
549
+ return Wt(a, function() {
550
550
  return {
551
551
  open: d
552
552
  };
553
- }, [d]), /* @__PURE__ */ Yt.createElement(Vt, null, a(x(x({}, f), {}, {
553
+ }, [d]), /* @__PURE__ */ zt.createElement(Gt, null, o(g(g({}, f), {}, {
554
554
  open: d
555
555
  })));
556
556
  });
557
- ie.displayName = "Dropzone";
558
- var mt = {
557
+ ue.displayName = "Dropzone";
558
+ var xt = {
559
559
  disabled: !1,
560
- getFilesFromEvent: Zt,
560
+ getFilesFromEvent: Xt,
561
561
  maxSize: 1 / 0,
562
562
  minSize: 0,
563
563
  multiple: !0,
@@ -570,8 +570,8 @@ var mt = {
570
570
  validator: null,
571
571
  useFsAccessApi: !1
572
572
  };
573
- ie.defaultProps = mt;
574
- ie.propTypes = {
573
+ ue.defaultProps = xt;
574
+ ue.propTypes = {
575
575
  /**
576
576
  * Render function that exposes the dropzone state and prop getter fns
577
577
  *
@@ -741,247 +741,247 @@ var He = {
741
741
  acceptedFiles: [],
742
742
  fileRejections: []
743
743
  };
744
- function Co() {
745
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = x(x({}, mt), e), a = o.accept, r = o.disabled, s = o.getFilesFromEvent, d = o.maxSize, f = o.minSize, c = o.multiple, E = o.maxFiles, g = o.onDragEnter, A = o.onDragLeave, j = o.onDragOver, T = o.onDrop, L = o.onDropAccepted, S = o.onDropRejected, H = o.onFileDialogCancel, B = o.onFileDialogOpen, Y = o.useFsAccessApi, Z = o.preventDropOnDocument, le = o.noClick, y = o.noKeyboard, de = o.noDrag, v = o.noDragEventsBubbling, ce = o.validator, O = Ee(function() {
746
- return typeof B == "function" ? B : nt;
747
- }, [B]), M = Ee(function() {
748
- return typeof H == "function" ? H : nt;
749
- }, [H]), U = Me(null), w = Me(null), pe = Wt(So, He), Ae = ke(pe, 2), z = Ae[0], D = Ae[1], we = z.isFocused, Q = z.isFileDialogActive, X = z.draggedFiles, ue = function() {
750
- Q && setTimeout(function() {
751
- if (w.current) {
752
- var p = w.current.files;
753
- p.length || (D({
744
+ function Sa() {
745
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = g(g({}, xt), e), o = a.accept, r = a.disabled, s = a.getFilesFromEvent, d = a.maxSize, f = a.minSize, c = a.multiple, v = a.maxFiles, w = a.onDragEnter, O = a.onDragLeave, U = a.onDragOver, x = a.onDrop, T = a.onDropAccepted, ae = a.onDropRejected, B = a.onFileDialogCancel, z = a.onFileDialogOpen, C = a.useFsAccessApi, V = a.preventDropOnDocument, W = a.noClick, G = a.noKeyboard, fe = a.noDrag, M = a.noDragEventsBubbling, b = a.validator, oe = Ue(function() {
746
+ return typeof z == "function" ? z : lt;
747
+ }, [z]), A = Ue(function() {
748
+ return typeof B == "function" ? B : lt;
749
+ }, [B]), _ = Me(null), y = Me(null), re = $t(La, He), ne = ke(re, 2), $ = ne[0], j = ne[1], ze = $.isFocused, me = $.isFileDialogActive, he = $.draggedFiles, ge = function() {
750
+ me && setTimeout(function() {
751
+ if (y.current) {
752
+ var p = y.current.files;
753
+ p.length || (j({
754
754
  type: "closeDialog"
755
- }), M());
755
+ }), A());
756
756
  }
757
757
  }, 300);
758
758
  };
759
- $e(function() {
760
- return Y && at() ? function() {
761
- } : (window.addEventListener("focus", ue, !1), function() {
762
- window.removeEventListener("focus", ue, !1);
759
+ Ze(function() {
760
+ return C && st() ? function() {
761
+ } : (window.addEventListener("focus", ge, !1), function() {
762
+ window.removeEventListener("focus", ge, !1);
763
763
  });
764
- }, [w, Q, M, Y]);
765
- var k = Me([]), V = function(p) {
766
- U.current && U.current.contains(p.target) || (p.preventDefault(), k.current = []);
764
+ }, [y, me, A, C]);
765
+ var k = Me([]), se = function(p) {
766
+ _.current && _.current.contains(p.target) || (p.preventDefault(), k.current = []);
767
767
  };
768
- $e(function() {
769
- return Z && (document.addEventListener("dragover", ot, !1), document.addEventListener("drop", V, !1)), function() {
770
- Z && (document.removeEventListener("dragover", ot), document.removeEventListener("drop", V));
768
+ Ze(function() {
769
+ return V && (document.addEventListener("dragover", nt, !1), document.addEventListener("drop", se, !1)), function() {
770
+ V && (document.removeEventListener("dragover", nt), document.removeEventListener("drop", se));
771
771
  };
772
- }, [U, Z]);
773
- var fe = N(function(l) {
774
- l.preventDefault(), l.persist(), xe(l), k.current = [].concat(_o(k.current), [l.target]), ve(l) && Promise.resolve(s(l)).then(function(p) {
775
- De(l) && !v || (D({
772
+ }, [_, V]);
773
+ var xe = N(function(i) {
774
+ i.preventDefault(), i.persist(), R(i), k.current = [].concat(Aa(k.current), [i.target]), je(i) && Promise.resolve(s(i)).then(function(p) {
775
+ Ae(i) && !M || (j({
776
776
  draggedFiles: p,
777
777
  isDragActive: !0,
778
778
  type: "setDraggedFiles"
779
- }), g && g(l));
779
+ }), w && w(i));
780
780
  });
781
- }, [s, g, v]), me = N(function(l) {
782
- l.preventDefault(), l.persist(), xe(l);
783
- var p = ve(l);
784
- if (p && l.dataTransfer)
781
+ }, [s, w, M]), be = N(function(i) {
782
+ i.preventDefault(), i.persist(), R(i);
783
+ var p = je(i);
784
+ if (p && i.dataTransfer)
785
785
  try {
786
- l.dataTransfer.dropEffect = "copy";
786
+ i.dataTransfer.dropEffect = "copy";
787
787
  } catch {
788
788
  }
789
- return p && j && j(l), !1;
790
- }, [j, v]), he = N(function(l) {
791
- l.preventDefault(), l.persist(), xe(l);
792
- var p = k.current.filter(function(_) {
793
- return U.current && U.current.contains(_);
794
- }), I = p.indexOf(l.target);
795
- I !== -1 && p.splice(I, 1), k.current = p, !(p.length > 0) && (D({
789
+ return p && U && U(i), !1;
790
+ }, [U, M]), K = N(function(i) {
791
+ i.preventDefault(), i.persist(), R(i);
792
+ var p = k.current.filter(function(D) {
793
+ return _.current && _.current.contains(D);
794
+ }), E = p.indexOf(i.target);
795
+ E !== -1 && p.splice(E, 1), k.current = p, !(p.length > 0) && (j({
796
796
  isDragActive: !1,
797
797
  type: "setDraggedFiles",
798
798
  draggedFiles: []
799
- }), ve(l) && A && A(l));
800
- }, [U, A, v]), P = N(function(l, p) {
801
- var I = [], _ = [];
802
- l.forEach(function(F) {
803
- var oe = pt(F, a), $ = ke(oe, 2), Re = $[0], Fe = $[1], Ne = ut(F, f, d), be = ke(Ne, 2), Te = be[0], Oe = be[1], Ce = ce ? ce(F) : null;
804
- if (Re && Te && !Ce)
805
- I.push(F);
799
+ }), je(i) && O && O(i));
800
+ }, [_, O, M]), q = N(function(i, p) {
801
+ var E = [], D = [];
802
+ i.forEach(function(F) {
803
+ var ie = mt(F, o), J = ke(ie, 2), Re = J[0], Fe = J[1], Ne = ht(F, f, d), Ie = ke(Ne, 2), Oe = Ie[0], Te = Ie[1], Ce = b ? b(F) : null;
804
+ if (Re && Oe && !Ce)
805
+ E.push(F);
806
806
  else {
807
- var Se = [Fe, Oe];
808
- Ce && (Se = Se.concat(Ce)), _.push({
807
+ var Se = [Fe, Te];
808
+ Ce && (Se = Se.concat(Ce)), D.push({
809
809
  file: F,
810
- errors: Se.filter(function(yt) {
811
- return yt;
810
+ errors: Se.filter(function(Et) {
811
+ return Et;
812
812
  })
813
813
  });
814
814
  }
815
- }), (!c && I.length > 1 || c && E >= 1 && I.length > E) && (I.forEach(function(F) {
816
- _.push({
815
+ }), (!c && E.length > 1 || c && v >= 1 && E.length > v) && (E.forEach(function(F) {
816
+ D.push({
817
817
  file: F,
818
- errors: [go]
818
+ errors: [xa]
819
819
  });
820
- }), I.splice(0)), D({
821
- acceptedFiles: I,
822
- fileRejections: _,
820
+ }), E.splice(0)), j({
821
+ acceptedFiles: E,
822
+ fileRejections: D,
823
823
  type: "setFiles"
824
- }), T && T(I, _, p), _.length > 0 && S && S(_, p), I.length > 0 && L && L(I, p);
825
- }, [D, c, a, f, d, E, T, L, S, ce]), i = N(function(l) {
826
- l.preventDefault(), l.persist(), xe(l), k.current = [], ve(l) && Promise.resolve(s(l)).then(function(p) {
827
- De(l) && !v || P(p, l);
828
- }), D({
824
+ }), x && x(E, D, p), D.length > 0 && ae && ae(D, p), E.length > 0 && T && T(E, p);
825
+ }, [j, c, o, f, d, v, x, T, ae, b]), Z = N(function(i) {
826
+ i.preventDefault(), i.persist(), R(i), k.current = [], je(i) && Promise.resolve(s(i)).then(function(p) {
827
+ Ae(i) && !M || q(p, i);
828
+ }), j({
829
829
  type: "reset"
830
830
  });
831
- }, [s, P, v]), b = N(function() {
832
- if (Y && at()) {
833
- D({
831
+ }, [s, q, M]), Y = N(function() {
832
+ if (C && st()) {
833
+ j({
834
834
  type: "openDialog"
835
- }), O();
836
- var l = {
835
+ }), oe();
836
+ var i = {
837
837
  multiple: c,
838
- types: Eo(a)
838
+ types: va(o)
839
839
  };
840
- window.showOpenFilePicker(l).then(function(p) {
840
+ window.showOpenFilePicker(i).then(function(p) {
841
841
  return s(p);
842
842
  }).then(function(p) {
843
- return P(p, null);
843
+ return q(p, null);
844
844
  }).catch(function(p) {
845
- return M(p);
845
+ return A(p);
846
846
  }).finally(function() {
847
- return D({
847
+ return j({
848
848
  type: "closeDialog"
849
849
  });
850
850
  });
851
851
  return;
852
852
  }
853
- w.current && (D({
853
+ y.current && (j({
854
854
  type: "openDialog"
855
- }), O(), w.current.value = null, w.current.click());
856
- }, [D, O, M, Y, P, a, c]), J = N(function(l) {
857
- !U.current || !U.current.isEqualNode(l.target) || (l.keyCode === 32 || l.keyCode === 13) && (l.preventDefault(), b());
858
- }, [U, w, b]), W = N(function() {
859
- D({
855
+ }), oe(), y.current.value = null, y.current.click());
856
+ }, [j, oe, A, C, q, o, c]), Q = N(function(i) {
857
+ !_.current || !_.current.isEqualNode(i.target) || (i.keyCode === 32 || i.keyCode === 13) && (i.preventDefault(), Y());
858
+ }, [_, y, Y]), l = N(function() {
859
+ j({
860
860
  type: "focus"
861
861
  });
862
- }, []), ee = N(function() {
863
- D({
862
+ }, []), I = N(function() {
863
+ j({
864
864
  type: "blur"
865
865
  });
866
- }, []), te = N(function() {
867
- le || (Io() ? setTimeout(b, 0) : b());
868
- }, [w, le, b]), R = function(p) {
866
+ }, []), P = N(function() {
867
+ W || (Ea() ? setTimeout(Y, 0) : Y());
868
+ }, [y, W, Y]), S = function(p) {
869
869
  return r ? null : p;
870
- }, G = function(p) {
871
- return y ? null : R(p);
872
- }, ge = function(p) {
873
- return de ? null : R(p);
874
- }, xe = function(p) {
875
- v && p.stopPropagation();
876
- }, ht = Ee(function() {
870
+ }, X = function(p) {
871
+ return G ? null : S(p);
872
+ }, H = function(p) {
873
+ return fe ? null : S(p);
874
+ }, R = function(p) {
875
+ M && p.stopPropagation();
876
+ }, ye = Ue(function() {
877
877
  return function() {
878
- var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, I = p === void 0 ? "ref" : p, _ = l.role, F = l.onKeyDown, oe = l.onFocus, $ = l.onBlur, Re = l.onClick, Fe = l.onDragEnter, Ne = l.onDragOver, be = l.onDragLeave, Te = l.onDrop, Oe = _e(l, jo);
879
- return x(x(Ye({
880
- onKeyDown: G(C(F, J)),
881
- onFocus: G(C(oe, W)),
882
- onBlur: G(C($, ee)),
883
- onClick: R(C(Re, te)),
884
- onDragEnter: ge(C(Fe, fe)),
885
- onDragOver: ge(C(Ne, me)),
886
- onDragLeave: ge(C(be, he)),
887
- onDrop: ge(C(Te, i)),
888
- role: typeof _ == "string" && _ !== "" ? _ : "button"
889
- }, I, U), !r && !y ? {
878
+ var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = i.refKey, E = p === void 0 ? "ref" : p, D = i.role, F = i.onKeyDown, ie = i.onFocus, J = i.onBlur, Re = i.onClick, Fe = i.onDragEnter, Ne = i.onDragOver, Ie = i.onDragLeave, Oe = i.onDrop, Te = we(i, Da);
879
+ return g(g(Ye({
880
+ onKeyDown: X(L(F, Q)),
881
+ onFocus: X(L(ie, l)),
882
+ onBlur: X(L(J, I)),
883
+ onClick: S(L(Re, P)),
884
+ onDragEnter: H(L(Fe, xe)),
885
+ onDragOver: H(L(Ne, be)),
886
+ onDragLeave: H(L(Ie, K)),
887
+ onDrop: H(L(Oe, Z)),
888
+ role: typeof D == "string" && D !== "" ? D : "button"
889
+ }, E, _), !r && !G ? {
890
890
  tabIndex: 0
891
- } : {}), Oe);
891
+ } : {}), Te);
892
892
  };
893
- }, [U, J, W, ee, te, fe, me, he, i, y, de, r]), gt = N(function(l) {
894
- l.stopPropagation();
895
- }, []), xt = Ee(function() {
893
+ }, [_, Q, l, I, P, xe, be, K, Z, G, fe, r]), bt = N(function(i) {
894
+ i.stopPropagation();
895
+ }, []), yt = Ue(function() {
896
896
  return function() {
897
- var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = l.refKey, I = p === void 0 ? "ref" : p, _ = l.onChange, F = l.onClick, oe = _e(l, Do), $ = Ye({
898
- accept: a,
897
+ var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, p = i.refKey, E = p === void 0 ? "ref" : p, D = i.onChange, F = i.onClick, ie = we(i, _a), J = Ye({
898
+ accept: o,
899
899
  multiple: c,
900
900
  type: "file",
901
901
  style: {
902
902
  display: "none"
903
903
  },
904
- onChange: R(C(_, i)),
905
- onClick: R(C(F, gt)),
904
+ onChange: S(L(D, Z)),
905
+ onClick: S(L(F, bt)),
906
906
  autoComplete: "off",
907
907
  tabIndex: -1
908
- }, I, w);
909
- return x(x({}, $), oe);
908
+ }, E, y);
909
+ return g(g({}, J), ie);
910
910
  };
911
- }, [w, a, c, i, r]), ze = X.length, Ve = ze > 0 && xo({
912
- files: X,
913
- accept: a,
911
+ }, [y, o, c, Z, r]), Ve = he.length, We = Ve > 0 && ba({
912
+ files: he,
913
+ accept: o,
914
914
  minSize: f,
915
915
  maxSize: d,
916
916
  multiple: c,
917
- maxFiles: E
918
- }), bt = ze > 0 && !Ve;
919
- return x(x({}, z), {}, {
920
- isDragAccept: Ve,
921
- isDragReject: bt,
922
- isFocused: we && !r,
923
- getRootProps: ht,
924
- getInputProps: xt,
925
- rootRef: U,
926
- inputRef: w,
927
- open: R(b)
917
+ maxFiles: v
918
+ }), It = Ve > 0 && !We;
919
+ return g(g({}, $), {}, {
920
+ isDragAccept: We,
921
+ isDragReject: It,
922
+ isFocused: ze && !r,
923
+ getRootProps: ye,
924
+ getInputProps: yt,
925
+ rootRef: _,
926
+ inputRef: y,
927
+ open: S(Y)
928
928
  });
929
929
  }
930
- function So(e, o) {
931
- switch (o.type) {
930
+ function La(e, a) {
931
+ switch (a.type) {
932
932
  case "focus":
933
- return x(x({}, e), {}, {
933
+ return g(g({}, e), {}, {
934
934
  isFocused: !0
935
935
  });
936
936
  case "blur":
937
- return x(x({}, e), {}, {
937
+ return g(g({}, e), {}, {
938
938
  isFocused: !1
939
939
  });
940
940
  case "openDialog":
941
- return x(x({}, He), {}, {
941
+ return g(g({}, He), {}, {
942
942
  isFileDialogActive: !0
943
943
  });
944
944
  case "closeDialog":
945
- return x(x({}, e), {}, {
945
+ return g(g({}, e), {}, {
946
946
  isFileDialogActive: !1
947
947
  });
948
948
  case "setDraggedFiles":
949
- var a = o.isDragActive, r = o.draggedFiles;
950
- return x(x({}, e), {}, {
949
+ var o = a.isDragActive, r = a.draggedFiles;
950
+ return g(g({}, e), {}, {
951
951
  draggedFiles: r,
952
- isDragActive: a
952
+ isDragActive: o
953
953
  });
954
954
  case "setFiles":
955
- return x(x({}, e), {}, {
956
- acceptedFiles: o.acceptedFiles,
957
- fileRejections: o.fileRejections
955
+ return g(g({}, e), {}, {
956
+ acceptedFiles: a.acceptedFiles,
957
+ fileRejections: a.fileRejections
958
958
  });
959
959
  case "reset":
960
- return x({}, He);
960
+ return g({}, He);
961
961
  default:
962
962
  return e;
963
963
  }
964
964
  }
965
- function nt() {
965
+ function lt() {
966
966
  }
967
- function re({
967
+ function de({
968
968
  title: e,
969
- children: o,
970
- id: a,
969
+ children: a,
970
+ id: o,
971
971
  defaultState: r = "closed"
972
972
  }) {
973
- const [s, d] = ne(r === "open"), f = `${a}-region`, c = () => d(!s);
973
+ const [s, d] = ce(r === "open"), f = `${o}-region`, c = () => d(!s);
974
974
  return /* @__PURE__ */ t.jsxs(
975
975
  "section",
976
976
  {
977
- className: `sid-expanding-section sid-expanding-section-${a} sid-l-space-top-sm sid-l-space-btm-sm`,
977
+ className: `sid-expanding-section sid-expanding-section-${o} sid-l-space-top-sm sid-l-space-btm-sm`,
978
978
  children: [
979
979
  /* @__PURE__ */ t.jsx("header", { children: /* @__PURE__ */ t.jsxs(
980
980
  "button",
981
981
  {
982
982
  "aria-controls": f,
983
983
  "aria-expanded": s,
984
- id: a,
984
+ id: o,
985
985
  type: "button",
986
986
  className: "sid-expanding-section__title",
987
987
  onClick: c,
@@ -996,12 +996,12 @@ function re({
996
996
  ]
997
997
  }
998
998
  ) }),
999
- /* @__PURE__ */ t.jsx("div", { id: f, role: "region", "aria-labelledby": a, children: s && /* @__PURE__ */ t.jsx("div", { className: "sid-expanding-section__children", children: o }) })
999
+ /* @__PURE__ */ t.jsx("div", { id: f, role: "region", "aria-labelledby": o, children: s && /* @__PURE__ */ t.jsx("div", { className: "sid-expanding-section__children", children: a }) })
1000
1000
  ]
1001
1001
  }
1002
1002
  );
1003
1003
  }
1004
- const Lo = {
1004
+ const Ma = {
1005
1005
  [u.STUDENT]: [
1006
1006
  "step.docUpload.acceptableUploads.student.idCard",
1007
1007
  "step.docUpload.acceptableUploads.student.classSchedule",
@@ -1057,7 +1057,7 @@ const Lo = {
1057
1057
  "step.docUpload.acceptableUploads.lowIncome.programApprovalScreenshot",
1058
1058
  "step.docUpload.acceptableUploads.lowIncome.programBankStatement"
1059
1059
  ]
1060
- }, Mo = {
1060
+ }, ka = {
1061
1061
  [n.ACTIVE_DUTY]: [
1062
1062
  "step.docUpload.acceptableUploads.military.active.leaveEarningStatement",
1063
1063
  "step.docUpload.acceptableUploads.military.active.uniformedServicesId"
@@ -1126,7 +1126,7 @@ const Lo = {
1126
1126
  [n.NUTRITION_PROFESSIONAL]: [
1127
1127
  "step.docUpload.acceptableUploads.licensedProfessional.license"
1128
1128
  ]
1129
- }, ko = {
1129
+ }, Pa = {
1130
1130
  [u.STUDENT]: [
1131
1131
  "step.docUpload.uploadInfo.fullName",
1132
1132
  "step.docUpload.uploadInfo.institutionName",
@@ -1184,7 +1184,7 @@ const Lo = {
1184
1184
  "step.docUpload.uploadInfo.fullName",
1185
1185
  "step.docUpload.uploadInfo.lowIncome.validDate"
1186
1186
  ]
1187
- }, Po = {
1187
+ }, Ba = {
1188
1188
  [n.ACTIVE_DUTY]: ["step.docUpload.uploadInfo.military.activeDuty.status"],
1189
1189
  [n.VETERAN]: ["step.docUpload.uploadInfo.military.veteran.status"],
1190
1190
  [n.RESERVIST]: ["step.docUpload.uploadInfo.military.reservist.status"],
@@ -1213,37 +1213,37 @@ const Lo = {
1213
1213
  [n.ARCHITECT]: [],
1214
1214
  [n.GENERAL_CONTRACTOR]: [],
1215
1215
  [n.NUTRITION_PROFESSIONAL]: []
1216
- }, Bo = {
1216
+ }, Ya = {
1217
1217
  // MILITARY_FAMILY is overridden to not show branch of service.
1218
1218
  [n.MILITARY_FAMILY]: [
1219
1219
  "step.docUpload.uploadInfo.fullName",
1220
1220
  "step.docUpload.uploadInfo.military.militaryFamily.status"
1221
1221
  ]
1222
1222
  };
1223
- function Yo(e, o) {
1223
+ function Ha(e, a) {
1224
1224
  return [
1225
1225
  .../* @__PURE__ */ new Set([
1226
- ...Mo[o] || [],
1227
- ...Lo[e] || []
1226
+ ...ka[a] || [],
1227
+ ...Ma[e] || []
1228
1228
  ])
1229
1229
  ];
1230
1230
  }
1231
- function Ho(e, o) {
1232
- return Bo[o] || [
1231
+ function za(e, a) {
1232
+ return Ya[a] || [
1233
1233
  .../* @__PURE__ */ new Set([
1234
- ...Po[o] || [],
1235
- ...ko[e] || []
1234
+ ...Ba[a] || [],
1235
+ ...Pa[e] || []
1236
1236
  ])
1237
1237
  ];
1238
1238
  }
1239
- const zo = ({
1239
+ const Va = ({
1240
1240
  options: e,
1241
- selected: o,
1242
- onChange: a,
1241
+ selected: a,
1242
+ onChange: o,
1243
1243
  showError: r
1244
1244
  }) => {
1245
1245
  const s = (d, f) => {
1246
- f.target.checked ? a(o.concat(d)) : a(o.filter((c) => c !== d));
1246
+ f.target.checked ? o(a.concat(d)) : o(a.filter((c) => c !== d));
1247
1247
  };
1248
1248
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1249
1249
  /* @__PURE__ */ t.jsx("h2", { className: "sid-header__subtitle sid-l-space-top-md sid-l-space-btm-md", children: /* @__PURE__ */ t.jsx(
@@ -1263,14 +1263,14 @@ const zo = ({
1263
1263
  type: "checkbox",
1264
1264
  name: "requirements",
1265
1265
  value: d,
1266
- checked: o.includes(d),
1266
+ checked: a.includes(d),
1267
1267
  onChange: s.bind(null, d),
1268
- "aria-invalid": r && !o.includes(d)
1268
+ "aria-invalid": r && !a.includes(d)
1269
1269
  }
1270
1270
  ),
1271
1271
  /* @__PURE__ */ t.jsxs("div", { className: "sid-l-space-btm-md", children: [
1272
1272
  /* @__PURE__ */ t.jsx(m, { id: d }),
1273
- r && !o.includes(d) && /* @__PURE__ */ t.jsx("div", { className: "sid-field-error", children: /* @__PURE__ */ t.jsx(
1273
+ r && !a.includes(d) && /* @__PURE__ */ t.jsx("div", { className: "sid-field-error", children: /* @__PURE__ */ t.jsx(
1274
1274
  m,
1275
1275
  {
1276
1276
  id: "step.docUpload.confirm",
@@ -1281,16 +1281,16 @@ const zo = ({
1281
1281
  ] })
1282
1282
  )) })
1283
1283
  ] });
1284
- }, Vo = ({ children: e }) => /* @__PURE__ */ t.jsxs("div", { className: "sid-named-divider", children: [
1284
+ }, Wa = ({ children: e }) => /* @__PURE__ */ t.jsxs("div", { className: "sid-named-divider", children: [
1285
1285
  /* @__PURE__ */ t.jsx("hr", { className: "sid-named-divider__rule" }),
1286
1286
  /* @__PURE__ */ t.jsx("p", { className: "sid-named-divider__text", children: e })
1287
1287
  ] });
1288
- function Wo({
1288
+ function Ga({
1289
1289
  title: e,
1290
- titleId: o,
1291
- ...a
1290
+ titleId: a,
1291
+ ...o
1292
1292
  }, r) {
1293
- return /* @__PURE__ */ Ue.createElement("svg", Object.assign({
1293
+ return /* @__PURE__ */ De.createElement("svg", Object.assign({
1294
1294
  xmlns: "http://www.w3.org/2000/svg",
1295
1295
  fill: "none",
1296
1296
  viewBox: "0 0 24 24",
@@ -1299,16 +1299,16 @@ function Wo({
1299
1299
  "aria-hidden": "true",
1300
1300
  "data-slot": "icon",
1301
1301
  ref: r,
1302
- "aria-labelledby": o
1303
- }, a), e ? /* @__PURE__ */ Ue.createElement("title", {
1304
- id: o
1305
- }, e) : null, /* @__PURE__ */ Ue.createElement("path", {
1302
+ "aria-labelledby": a
1303
+ }, o), e ? /* @__PURE__ */ De.createElement("title", {
1304
+ id: a
1305
+ }, e) : null, /* @__PURE__ */ De.createElement("path", {
1306
1306
  strokeLinecap: "round",
1307
1307
  strokeLinejoin: "round",
1308
1308
  d: "M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
1309
1309
  }));
1310
1310
  }
1311
- const Go = /* @__PURE__ */ Ue.forwardRef(Wo), $o = (e) => /* @__PURE__ */ t.jsxs(
1311
+ const $a = /* @__PURE__ */ De.forwardRef(Ga), Ka = (e) => /* @__PURE__ */ t.jsxs(
1312
1312
  "svg",
1313
1313
  {
1314
1314
  xmlns: "http://www.w3.org/2000/svg",
@@ -1396,7 +1396,7 @@ const Go = /* @__PURE__ */ Ue.forwardRef(Wo), $o = (e) => /* @__PURE__ */ t.jsxs
1396
1396
  )
1397
1397
  ]
1398
1398
  }
1399
- ), st = (e) => /* @__PURE__ */ t.jsxs(
1399
+ ), dt = (e) => /* @__PURE__ */ t.jsxs(
1400
1400
  "svg",
1401
1401
  {
1402
1402
  xmlns: "http://www.w3.org/2000/svg",
@@ -1476,7 +1476,7 @@ const Go = /* @__PURE__ */ Ue.forwardRef(Wo), $o = (e) => /* @__PURE__ */ t.jsxs
1476
1476
  )
1477
1477
  ]
1478
1478
  }
1479
- ), Ko = (e) => /* @__PURE__ */ t.jsxs(
1479
+ ), qa = (e) => /* @__PURE__ */ t.jsxs(
1480
1480
  "svg",
1481
1481
  {
1482
1482
  xmlns: "http://www.w3.org/2000/svg",
@@ -1541,7 +1541,7 @@ const Go = /* @__PURE__ */ Ue.forwardRef(Wo), $o = (e) => /* @__PURE__ */ t.jsxs
1541
1541
  )
1542
1542
  ]
1543
1543
  }
1544
- ), qo = (e) => /* @__PURE__ */ t.jsxs(
1544
+ ), Za = (e) => /* @__PURE__ */ t.jsxs(
1545
1545
  "svg",
1546
1546
  {
1547
1547
  xmlns: "http://www.w3.org/2000/svg",
@@ -1605,21 +1605,21 @@ const Go = /* @__PURE__ */ Ue.forwardRef(Wo), $o = (e) => /* @__PURE__ */ t.jsxs
1605
1605
  )
1606
1606
  ]
1607
1607
  }
1608
- ), Zo = ["ID_CARD", "SCHEDULE"];
1609
- function Qo(e, o) {
1610
- return e === "ID_CARD" && o === "large" ? $o : e === "ID_CARD" && o === "small" ? st : e === "SCHEDULE" && o === "large" ? Ko : e === "SCHEDULE" && o === "small" ? qo : st;
1608
+ ), Qa = ["ID_CARD", "SCHEDULE"];
1609
+ function Xa(e, a) {
1610
+ return e === "ID_CARD" && a === "large" ? Ka : e === "ID_CARD" && a === "small" ? dt : e === "SCHEDULE" && a === "large" ? qa : e === "SCHEDULE" && a === "small" ? Za : dt;
1611
1611
  }
1612
- const Xo = ({ onFileDrop: e, type: o, style: a = "small" }) => {
1613
- const r = Qo(o, a);
1614
- return /* @__PURE__ */ t.jsx(ie, { onDrop: (s) => e(s, o), children: ({ getRootProps: s, getInputProps: d }) => /* @__PURE__ */ t.jsxs("section", { ...s(), className: "sid-document-type-attachment-wrap", children: [
1612
+ const Ja = ({ onFileDrop: e, type: a, style: o = "small" }) => {
1613
+ const r = Xa(a, o);
1614
+ return /* @__PURE__ */ t.jsx(ue, { onDrop: (s) => e(s, a), children: ({ getRootProps: s, getInputProps: d }) => /* @__PURE__ */ t.jsxs("section", { ...s(), className: "sid-document-type-attachment-wrap", children: [
1615
1615
  /* @__PURE__ */ t.jsx("input", { ...d() }),
1616
- a === "small" ? /* @__PURE__ */ t.jsxs("button", { className: "sid-document-type-attachment", type: "button", children: [
1616
+ o === "small" ? /* @__PURE__ */ t.jsxs("button", { className: "sid-document-type-attachment", type: "button", children: [
1617
1617
  /* @__PURE__ */ t.jsx(r, { className: "sid-document-type-attachment__icon-small" }),
1618
1618
  /* @__PURE__ */ t.jsxs("span", { className: "sid-document-type-attachment__text", children: [
1619
- o === "ID_CARD" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Dated School ID card" }),
1620
- o === "SCHEDULE" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Class Schedule" })
1619
+ a === "ID_CARD" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Dated School ID card" }),
1620
+ a === "SCHEDULE" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Class Schedule" })
1621
1621
  ] }),
1622
- /* @__PURE__ */ t.jsx(Go, { className: "sid-document-type-attachment__plus" })
1622
+ /* @__PURE__ */ t.jsx($a, { className: "sid-document-type-attachment__plus" })
1623
1623
  ] }) : /* @__PURE__ */ t.jsxs(
1624
1624
  "button",
1625
1625
  {
@@ -1628,14 +1628,14 @@ const Xo = ({ onFileDrop: e, type: o, style: a = "small" }) => {
1628
1628
  children: [
1629
1629
  /* @__PURE__ */ t.jsx(r, { className: "sid-document-type-attachment__icon-large" }),
1630
1630
  /* @__PURE__ */ t.jsxs("span", { className: "sid-document-type-attachment__text-large", children: [
1631
- o === "ID_CARD" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Add your dated school ID card" }),
1632
- o === "SCHEDULE" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Add your class schedule" })
1631
+ a === "ID_CARD" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Add your dated school ID card" }),
1632
+ a === "SCHEDULE" && /* @__PURE__ */ t.jsx(t.Fragment, { children: "Add your class schedule" })
1633
1633
  ] })
1634
1634
  ]
1635
1635
  }
1636
1636
  )
1637
1637
  ] }) });
1638
- }, Jo = {
1638
+ }, eo = {
1639
1639
  [u.STUDENT]: [
1640
1640
  "step.docUpload.uploadInfo.fullName",
1641
1641
  "step.docUpload.uploadInfo.student.school",
@@ -1698,7 +1698,7 @@ const Xo = ({ onFileDrop: e, type: o, style: a = "small" }) => {
1698
1698
  "step.docUpload.uploadInfo.recentMover.address",
1699
1699
  "step.docUpload.uploadInfo.recentMover.validDate"
1700
1700
  ]
1701
- }, ea = {
1701
+ }, to = {
1702
1702
  [n.ACTIVE_DUTY]: [],
1703
1703
  [n.VETERAN]: [],
1704
1704
  [n.RESERVIST]: [],
@@ -1727,120 +1727,137 @@ const Xo = ({ onFileDrop: e, type: o, style: a = "small" }) => {
1727
1727
  [n.ARCHITECT]: [],
1728
1728
  [n.GENERAL_CONTRACTOR]: [],
1729
1729
  [n.NUTRITION_PROFESSIONAL]: []
1730
- }, ta = {
1730
+ }, ao = {
1731
1731
  // MILITARY_FAMILY is overridden to not show branch of service.
1732
1732
  [n.MILITARY_FAMILY]: [
1733
1733
  "step.docUpload.uploadInfo.military.uploadInstructionsDependent"
1734
1734
  ]
1735
1735
  };
1736
- function oa(e, o) {
1737
- return ta[o] || [
1738
- ...ea[o] || [],
1739
- ...Jo[e] || []
1736
+ function oo(e, a) {
1737
+ return ao[a] || [
1738
+ ...to[a] || [],
1739
+ ...eo[e] || []
1740
1740
  ];
1741
1741
  }
1742
- const it = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e ? /* @__PURE__ */ t.jsxs("div", { className: "sid-field-error sid-field-error-redesign__doc-upload", children: [
1742
+ const ct = ({ errorId: e, erroredFileNames: a, fieldValidationErrors: o }) => e ? /* @__PURE__ */ t.jsxs("div", { className: "sid-field-error sid-field-error-redesign__doc-upload", children: [
1743
1743
  /* @__PURE__ */ t.jsx(
1744
1744
  m,
1745
1745
  {
1746
- id: `errorId.${a.docUpload}`,
1746
+ id: `errorId.${o.docUpload}`,
1747
1747
  defaultMessage: "No valid files"
1748
1748
  }
1749
1749
  ),
1750
- o ? o.map((r) => /* @__PURE__ */ t.jsx("div", { className: "sid-field-error-redesign__doc-upload__span", children: r }, `error-${r}`)) : null
1751
- ] }) : null, aa = ({ verificationService: e, intl: o }) => {
1752
- const [a, r] = ne(!1), s = e.verificationResponse, { rejectionReasons: d, segment: f, subSegment: c } = s, { programTheme: E } = e, g = e.viewModel, { fieldValidationErrors: A } = e, { overrideEnabled: j } = e.programTheme, T = ye("doc-upload-redesign-use-legacy-message-keys"), L = ye("doc-upload-considerations"), S = (T ? oa : Ho)(
1750
+ a ? a.map((r) => /* @__PURE__ */ t.jsx("div", { className: "sid-field-error-redesign__doc-upload__span", children: r }, `error-${r}`)) : null
1751
+ ] }) : null, ro = ({ verificationService: e, intl: a }) => {
1752
+ const [o, r] = ce(!1), s = e.verificationResponse, { rejectionReasons: d, segment: f, subSegment: c, verificationId: v, locale: w } = s, { programTheme: O, programId: U } = e, x = e.viewModel, { fieldValidationErrors: T } = e, { overrideEnabled: ae } = e.programTheme, B = Ee("doc-upload-redesign-use-legacy-message-keys"), z = Ee("doc-upload-considerations"), C = (B ? oo : za)(
1753
1753
  f,
1754
1754
  c
1755
- ), H = e.verificationResponse.country === "US", B = (i) => ({
1756
- name: i.name,
1757
- url: i.type.includes("image") ? URL.createObjectURL(i) : ""
1758
- }), [Y, Z] = ne({}), { userDidConvert: le } = Et({ segment: f }), y = [], de = ye("doc-upload-may24"), v = s.segment === "student" && s.locale === "en-US" ? de : "default", O = ye("docUpload-assertion-checklist") === "checklist", [M, U] = ne([]), [w, pe] = ne(!1);
1759
- vt(Ut) && y.push({
1755
+ ), V = e.verificationResponse.country === "US", W = (l) => ({
1756
+ name: l.name,
1757
+ url: l.type.includes("image") ? URL.createObjectURL(l) : ""
1758
+ }), [G, fe] = ce({}), { userDidConvert: M } = Ut({ segment: f }), b = [], oe = Ee("doc-upload-may24"), A = s.segment === "student" && s.locale === "en-US" ? oe : "default", y = Ee("docUpload-assertion-checklist") === "checklist", [re, ne] = ce([]), [$, j] = ce(!1);
1759
+ jt(Dt) && b.push({
1760
1760
  name: "myFile.png",
1761
1761
  url: ""
1762
1762
  });
1763
- const z = o.formatMessage({
1763
+ const me = a.formatMessage({
1764
1764
  id: "step.docUpload.addFile",
1765
1765
  defaultMessage: "Add documents"
1766
1766
  });
1767
- g.file1 && g.file1.name && y.push(B(g.file1)), g.file2 && g.file2.name && y.push(B(g.file2)), g.file3 && g.file3.name && y.push(B(g.file3));
1768
- const D = y.map((i) => Y[i.name]), we = (i, b) => {
1769
- r(!1), e.updateViewModel(Bt(g, i, b));
1770
- }, Q = (i) => {
1771
- const b = i + 1;
1772
- r(!1), U([]), pe(!1), e.updateViewModel(St(g, b));
1773
- }, X = A.docUpload || jt(() => e.verificationResponse.errorIds[0], void 0), ue = (i, b) => {
1774
- const J = [], W = [], ee = [];
1775
- for (const R of i) {
1776
- const G = Pt(
1777
- Ie.docUpload,
1767
+ x.file1 && x.file1.name && b.push(W(x.file1)), x.file2 && x.file2.name && b.push(W(x.file2)), x.file3 && x.file3.name && b.push(W(x.file3));
1768
+ const he = b.map((l) => G[l.name]), ge = (l, I) => {
1769
+ const P = {
1770
+ eventName: $e.DOC_UPLOAD_ADD_FILES,
1771
+ params: {
1772
+ programId: U,
1773
+ locale: w,
1774
+ verificationId: v
1775
+ }
1776
+ };
1777
+ Ke(P), r(!1), e.updateViewModel(Ht(x, l, I));
1778
+ }, k = (l) => {
1779
+ const I = {
1780
+ eventName: $e.DOC_UPLOAD_REMOVE_FILES,
1781
+ params: {
1782
+ programId: U,
1783
+ locale: w,
1784
+ verificationId: v
1785
+ }
1786
+ };
1787
+ Ke(I);
1788
+ const P = l + 1;
1789
+ r(!1), ne([]), j(!1), e.updateViewModel(Mt(x, P));
1790
+ }, se = T.docUpload || _t(() => e.verificationResponse.errorIds[0], void 0), xe = (l, I) => {
1791
+ const P = [], S = [], X = [];
1792
+ for (const R of l) {
1793
+ const ye = Yt(
1794
+ ve.docUpload,
1778
1795
  R,
1779
1796
  e.formValidationOptions
1780
1797
  );
1781
- G === void 0 ? (b && Z({ ...Y, [R.name]: b }), J.push(R)) : (ee.push(R.name), W.push(G));
1798
+ ye === void 0 ? (I && fe({ ...G, [R.name]: I }), P.push(R)) : (X.push(R.name), S.push(ye));
1782
1799
  }
1783
- let te;
1784
- W && (te = Ge(A, (R) => {
1785
- R.docUpload = W[0];
1786
- })), e.updateFieldValidationErrors(te), we(J, ee);
1787
- }, k = () => {
1788
- Le.info("StepDocUploadComponent submitting form"), pe(!0), (O && S.every((i) => M.includes(i)) || !O) && (e.submitStep(
1789
- Ie.docUpload,
1790
- g,
1800
+ let H;
1801
+ S && (H = qe(T, (R) => {
1802
+ R.docUpload = S[0];
1803
+ })), e.updateFieldValidationErrors(H), ge(P, X);
1804
+ }, be = () => {
1805
+ Le.info("StepDocUploadComponent submitting form"), j(!0), (y && C.every((l) => re.includes(l)) || !y) && (e.submitStep(
1806
+ ve.docUpload,
1807
+ x,
1791
1808
  e.verificationResponse
1792
- ), le(Mt, kt));
1793
- }, V = (i, b) => {
1794
- i.length > 0 ? ue(i, b) : i.length <= 0 && Le.error(
1809
+ ), M(Pt, Bt));
1810
+ }, K = (l, I) => {
1811
+ l.length > 0 ? xe(l, I) : l.length <= 0 && Le.error(
1795
1812
  "No files were accepted or rejected. Unknown error.",
1796
- Ie.docUpload
1813
+ ve.docUpload
1797
1814
  );
1798
- }, fe = (i) => {
1799
- V(Array.from(i.target.files));
1800
- }, me = (i) => {
1801
- const b = Lt("addFile");
1802
- (i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), b.click());
1803
- }, he = async () => {
1815
+ }, q = (l) => {
1816
+ K(Array.from(l.target.files));
1817
+ }, Z = (l) => {
1818
+ const I = kt("addFile");
1819
+ (l.key === "Enter" || l.key === " ") && (l.preventDefault(), l.stopPropagation(), I.click());
1820
+ }, Y = async () => {
1804
1821
  Le.info("StepDocUploadComponent submitting form after skipping document upload");
1805
- const i = Ge(g, () => {
1822
+ const l = qe(x, () => {
1806
1823
  });
1807
1824
  e.submitStep(
1808
- Ie.cancelDocUpload,
1809
- i,
1825
+ ve.cancelDocUpload,
1826
+ l,
1810
1827
  e.verificationResponse
1811
1828
  );
1812
- }, P = /* @__PURE__ */ t.jsx("div", { className: "sid-upload-wrap sid-l-space-top-md sid-l-space-btm-md", children: v === "doc-type-icons" ? /* @__PURE__ */ t.jsx(t.Fragment, { children: Zo.map(
1813
- (i) => !D.includes(i) && /* @__PURE__ */ t.jsx(
1814
- Xo,
1829
+ }, Q = /* @__PURE__ */ t.jsx("div", { className: "sid-upload-wrap sid-l-space-top-md sid-l-space-btm-md", children: A === "doc-type-icons" ? /* @__PURE__ */ t.jsx(t.Fragment, { children: Qa.map(
1830
+ (l) => !he.includes(l) && /* @__PURE__ */ t.jsx(
1831
+ Ja,
1815
1832
  {
1816
- onFileDrop: V,
1817
- type: i,
1818
- style: i === "ID_CARD" && y.length === 0 ? "large" : "small"
1833
+ onFileDrop: K,
1834
+ type: l,
1835
+ style: l === "ID_CARD" && b.length === 0 ? "large" : "small"
1819
1836
  }
1820
1837
  )
1821
1838
  ) }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1822
1839
  /* @__PURE__ */ t.jsx(
1823
- it,
1840
+ ct,
1824
1841
  {
1825
- fieldValidationErrors: A,
1826
- errorId: X,
1827
- erroredFileNames: g.erroredFileNames
1842
+ fieldValidationErrors: T,
1843
+ errorId: se,
1844
+ erroredFileNames: x.erroredFileNames
1828
1845
  }
1829
1846
  ),
1830
- /* @__PURE__ */ t.jsx("div", { className: "sid-docdrop-wrap", children: /* @__PURE__ */ t.jsx(ie, { onDrop: (i) => V(i), accept: We.join(","), children: ({ getRootProps: i, getInputProps: b }) => /* @__PURE__ */ t.jsxs(
1847
+ /* @__PURE__ */ t.jsx("div", { className: "sid-docdrop-wrap", children: /* @__PURE__ */ t.jsx(ue, { onDrop: (l) => K(l), accept: Ge.join(","), children: ({ getRootProps: l, getInputProps: I }) => /* @__PURE__ */ t.jsxs(
1831
1848
  "div",
1832
1849
  {
1833
- ...i(),
1850
+ ...l(),
1834
1851
  className: "sid-docdrop-wrap__dropzone sid-docdrop-wrap__dropzone_height",
1835
1852
  children: [
1836
- /* @__PURE__ */ t.jsx("input", { ...b({ accept: We.join(",") }) }),
1853
+ /* @__PURE__ */ t.jsx("input", { ...I({ accept: Ge.join(",") }) }),
1837
1854
  /* @__PURE__ */ t.jsx(
1838
1855
  "button",
1839
1856
  {
1840
1857
  tabIndex: -1,
1841
1858
  className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
1842
1859
  type: "button",
1843
- "aria-label": z,
1860
+ "aria-label": me,
1844
1861
  children: /* @__PURE__ */ t.jsx(
1845
1862
  m,
1846
1863
  {
@@ -1858,13 +1875,13 @@ const it = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
1858
1875
  "div",
1859
1876
  {
1860
1877
  id: "sid-step-doc-upload",
1861
- className: `sid-doc-upload-redesign-container sid-l-container sid-may24-variation__${v}`,
1878
+ className: `sid-doc-upload-redesign-container sid-l-container sid-may24-variation__${A}`,
1862
1879
  children: [
1863
1880
  /* @__PURE__ */ t.jsxs("div", { role: "main", children: [
1864
1881
  /* @__PURE__ */ t.jsxs("div", { className: "sid-header sid-l-space-top-md", children: [
1865
- /* @__PURE__ */ t.jsx("div", { className: "sid-doc-upload-logo-container sid-l-horz-center", children: /* @__PURE__ */ t.jsx(Dt, { verificationService: e }) }),
1866
- /* @__PURE__ */ t.jsx(_t, { align: "start", children: /* @__PURE__ */ t.jsx(m, { id: "step.docUpload.title", tagName: "h1" }) }),
1867
- /* @__PURE__ */ t.jsx(At, { verificationService: e }),
1882
+ /* @__PURE__ */ t.jsx("div", { className: "sid-doc-upload-logo-container sid-l-horz-center", children: /* @__PURE__ */ t.jsx(At, { verificationService: e }) }),
1883
+ /* @__PURE__ */ t.jsx(wt, { align: "start", children: /* @__PURE__ */ t.jsx(m, { id: "step.docUpload.title", tagName: "h1" }) }),
1884
+ /* @__PURE__ */ t.jsx(Rt, { verificationService: e }),
1868
1885
  d && d.length > 0 && /* @__PURE__ */ t.jsxs("div", { className: "sid-upload-rejection__wrapper", children: [
1869
1886
  /* @__PURE__ */ t.jsx("div", { className: "sid-header__subtitle-doc-upload-rejected", children: /* @__PURE__ */ t.jsx(
1870
1887
  m,
@@ -1873,13 +1890,13 @@ const it = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
1873
1890
  defaultMessage: "We were unable to confirm your eligibility due to:"
1874
1891
  }
1875
1892
  ) }),
1876
- /* @__PURE__ */ t.jsx("ul", { className: "sid-upload-rejection-list", children: d.map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-upload-rejection-list__li", children: /* @__PURE__ */ t.jsx(
1893
+ /* @__PURE__ */ t.jsx("ul", { className: "sid-upload-rejection-list", children: d.map((l) => /* @__PURE__ */ t.jsx("li", { className: "sid-upload-rejection-list__li", children: /* @__PURE__ */ t.jsx(
1877
1894
  m,
1878
1895
  {
1879
- id: `step.docUpload.rejectionReasons.${i}`,
1880
- defaultMessage: `${i}`
1896
+ id: `step.docUpload.rejectionReasons.${l}`,
1897
+ defaultMessage: `${l}`
1881
1898
  }
1882
- ) }, i)) }),
1899
+ ) }, l)) }),
1883
1900
  /* @__PURE__ */ t.jsx("div", { className: "sid-upload-rejection__next-step", children: /* @__PURE__ */ t.jsx(
1884
1901
  m,
1885
1902
  {
@@ -1889,26 +1906,26 @@ const it = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
1889
1906
  ) })
1890
1907
  ] })
1891
1908
  ] }),
1892
- v === "doc-type-icons" && /* @__PURE__ */ t.jsx("p", { children: "Documents must be dated within the current academic year OR no more than 90 days from today" }),
1893
- (O && y.length === 0 || !O) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1909
+ A === "doc-type-icons" && /* @__PURE__ */ t.jsx("p", { children: "Documents must be dated within the current academic year OR no more than 90 days from today" }),
1910
+ (y && b.length === 0 || !y) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1894
1911
  /* @__PURE__ */ t.jsx("h2", { className: "sid-header__subtitle sid-l-space-btm-md sid-l-space-top-md", children: /* @__PURE__ */ t.jsx(
1895
1912
  m,
1896
1913
  {
1897
- id: T ? "step.docUpload.uploadInstructions" : "step.docUpload.documentsMustInclude",
1914
+ id: B ? "step.docUpload.uploadInstructions" : "step.docUpload.documentsMustInclude",
1898
1915
  defaultMessage: "Your documents must include:"
1899
1916
  }
1900
1917
  ) }),
1901
- /* @__PURE__ */ t.jsx("ul", { className: "sid-doc-upload-requirements", children: S.map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-doc-upload-requirements__definition", children: /* @__PURE__ */ t.jsx(m, { id: i }) }, i)) })
1918
+ /* @__PURE__ */ t.jsx("ul", { className: "sid-doc-upload-requirements", children: C.map((l) => /* @__PURE__ */ t.jsx("li", { className: "sid-doc-upload-requirements__definition", children: /* @__PURE__ */ t.jsx(m, { id: l }) }, l)) })
1902
1919
  ] }),
1903
- y.length === 0 && P,
1904
- y.length > 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1920
+ b.length === 0 && Q,
1921
+ b.length > 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1905
1922
  /* @__PURE__ */ t.jsxs("div", { className: "sid-file-list sid-l-space-top-md", children: [
1906
- y.map((i, b) => /* @__PURE__ */ t.jsxs("div", { className: "sid-file-list__file", children: [
1907
- /* @__PURE__ */ t.jsx("div", { className: "sid-file-list__thumbnail-wrapper", children: i.url ? /* @__PURE__ */ t.jsx(
1923
+ b.map((l, I) => /* @__PURE__ */ t.jsxs("div", { className: "sid-file-list__file", children: [
1924
+ /* @__PURE__ */ t.jsx("div", { className: "sid-file-list__thumbnail-wrapper", children: l.url ? /* @__PURE__ */ t.jsx(
1908
1925
  "img",
1909
1926
  {
1910
1927
  className: "sid-file-list__thumbnail border-radius",
1911
- src: i.url,
1928
+ src: l.url,
1912
1929
  alt: "File thumbnail"
1913
1930
  }
1914
1931
  ) : /* @__PURE__ */ t.jsx("div", { className: "sid-file-list__no-thumbnail", children: /* @__PURE__ */ t.jsx(
@@ -1919,30 +1936,30 @@ const it = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
1919
1936
  }
1920
1937
  ) }) }),
1921
1938
  /* @__PURE__ */ t.jsxs("div", { className: "sid-file-list__name-wrapper", children: [
1922
- /* @__PURE__ */ t.jsx("div", { className: "sid-file-list__name", title: i.name, children: i.name }),
1939
+ /* @__PURE__ */ t.jsx("div", { className: "sid-file-list__name", title: l.name, children: l.name }),
1923
1940
  /* @__PURE__ */ t.jsx(
1924
1941
  "div",
1925
1942
  {
1926
1943
  role: "button",
1927
1944
  tabIndex: 0,
1928
- "aria-label": `Remove file ${i.name}`,
1945
+ "aria-label": `Remove file ${l.name}`,
1929
1946
  className: "sid-file-list__remove-btn",
1930
- onClick: () => Q(b),
1931
- onKeyPress: () => Q(b)
1947
+ onClick: () => k(I),
1948
+ onKeyPress: () => k(I)
1932
1949
  }
1933
1950
  )
1934
1951
  ] })
1935
- ] }, i.name)),
1936
- y.length < wt && v !== "doc-type-icons" && /* @__PURE__ */ t.jsx(t.Fragment, { children: a ? /* @__PURE__ */ t.jsx("div", { className: "sid-add-more-files", children: P }) : /* @__PURE__ */ t.jsx("div", { className: "sid-file-list__file", children: /* @__PURE__ */ t.jsx("div", { className: "sid-file-list__thumbnail-wrapper thumbnail_wrapper_width", children: /* @__PURE__ */ t.jsxs(
1952
+ ] }, l.name)),
1953
+ b.length < Ft && A !== "doc-type-icons" && /* @__PURE__ */ t.jsx(t.Fragment, { children: o ? /* @__PURE__ */ t.jsx("div", { className: "sid-add-more-files", children: Q }) : /* @__PURE__ */ t.jsx("div", { className: "sid-file-list__file", children: /* @__PURE__ */ t.jsx("div", { className: "sid-file-list__thumbnail-wrapper thumbnail_wrapper_width", children: /* @__PURE__ */ t.jsxs(
1937
1954
  "label",
1938
1955
  {
1939
1956
  className: "sid-docdrop-wrap__dropzone thumbnail_wrapper",
1940
1957
  htmlFor: "sid-take-photo-input",
1941
1958
  role: "button",
1942
- onKeyUp: (i) => me(i),
1959
+ onKeyUp: (l) => Z(l),
1943
1960
  tabIndex: 0,
1944
1961
  children: [
1945
- /* @__PURE__ */ t.jsx(Rt, { className: "sid-uploadzone__icon", width: "16px" }),
1962
+ /* @__PURE__ */ t.jsx(Nt, { className: "sid-uploadzone__icon", width: "16px" }),
1946
1963
  /* @__PURE__ */ t.jsx("p", { className: "sid-docdrop-wrap__instructions thumbnail_wrapper-text", children: /* @__PURE__ */ t.jsx(
1947
1964
  m,
1948
1965
  {
@@ -1953,13 +1970,13 @@ const it = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
1953
1970
  /* @__PURE__ */ t.jsx(
1954
1971
  "input",
1955
1972
  {
1956
- onChange: fe,
1973
+ onChange: q,
1957
1974
  type: "file",
1958
1975
  id: "sid-take-photo-input",
1959
1976
  hidden: !0,
1960
1977
  accept: "image/jpeg,image/png,application/pdf",
1961
1978
  multiple: !0,
1962
- ref: (i) => Ft("addFile", i)
1979
+ ref: (l) => Ot("addFile", l)
1963
1980
  }
1964
1981
  )
1965
1982
  ]
@@ -1967,31 +1984,31 @@ const it = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
1967
1984
  ) }) }) })
1968
1985
  ] }),
1969
1986
  /* @__PURE__ */ t.jsx(
1970
- it,
1987
+ ct,
1971
1988
  {
1972
- fieldValidationErrors: A,
1973
- errorId: X,
1974
- erroredFileNames: g.erroredFileNames
1989
+ fieldValidationErrors: T,
1990
+ errorId: se,
1991
+ erroredFileNames: x.erroredFileNames
1975
1992
  }
1976
1993
  ),
1977
- O && y.length >= 1 && /* @__PURE__ */ t.jsx(
1978
- zo,
1994
+ y && b.length >= 1 && /* @__PURE__ */ t.jsx(
1995
+ Va,
1979
1996
  {
1980
- options: S,
1981
- selected: M,
1982
- onChange: U,
1983
- showError: w
1997
+ options: C,
1998
+ selected: re,
1999
+ onChange: ne,
2000
+ showError: $
1984
2001
  }
1985
2002
  ),
1986
2003
  /* @__PURE__ */ t.jsx("div", { className: "sid-submit sid-doc-upload-submit sid-l-space-top-md sid-submit-doc-upload_pb", children: /* @__PURE__ */ t.jsx(
1987
2004
  "button",
1988
2005
  {
1989
2006
  id: "sid-submit-doc-upload",
1990
- onClick: k,
2007
+ onClick: be,
1991
2008
  type: "submit",
1992
2009
  className: "sid-btn sid-btn--dark sid-doc-upload-submit-btn sid-submit__continue border-radius",
1993
- "aria-disabled": y.length <= 0 || O && !S.every((i) => M.includes(i)),
1994
- children: v === "doc-type-icons" ? /* @__PURE__ */ t.jsx(
2010
+ "aria-disabled": b.length <= 0 || y && !C.every((l) => re.includes(l)),
2011
+ children: A === "doc-type-icons" ? /* @__PURE__ */ t.jsx(
1995
2012
  m,
1996
2013
  {
1997
2014
  id: "_EXPERIMENTAL-VARIATION.step.docUpload.submitButtonLabel",
@@ -2000,29 +2017,29 @@ const it = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
2000
2017
  two {documents}
2001
2018
  other {documents}
2002
2019
  }`,
2003
- values: { count: y.length }
2020
+ values: { count: b.length }
2004
2021
  }
2005
2022
  ) : /* @__PURE__ */ t.jsx(
2006
2023
  m,
2007
2024
  {
2008
2025
  id: "step.docUpload.submitButtonLabel",
2009
2026
  defaultMessage: "Submit",
2010
- values: { count: y.length }
2027
+ values: { count: b.length }
2011
2028
  }
2012
2029
  )
2013
2030
  }
2014
2031
  ) })
2015
2032
  ] }) : null,
2016
- v === "doc-type-icons" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2017
- y.length > 0 && y.length < 2 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2018
- /* @__PURE__ */ t.jsx(Vo, { children: "Add another document" }),
2019
- P
2033
+ A === "doc-type-icons" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2034
+ b.length > 0 && b.length < 2 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2035
+ /* @__PURE__ */ t.jsx(Wa, { children: "Add another document" }),
2036
+ Q
2020
2037
  ] }),
2021
2038
  /* @__PURE__ */ t.jsx("h3", { children: "FAQ" }),
2022
- /* @__PURE__ */ t.jsx(re, { id: "suggestedDocs", title: "What information is needed?", children: /* @__PURE__ */ t.jsx("ul", { className: "sid-doc-upload-requirements", children: S.map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-doc-upload-requirements__definition", children: /* @__PURE__ */ t.jsx(m, { id: i }) }, i)) }) })
2039
+ /* @__PURE__ */ t.jsx(de, { id: "suggestedDocs", title: "What information is needed?", children: /* @__PURE__ */ t.jsx("ul", { className: "sid-doc-upload-requirements", children: C.map((l) => /* @__PURE__ */ t.jsx("li", { className: "sid-doc-upload-requirements__definition", children: /* @__PURE__ */ t.jsx(m, { id: l }) }, l)) }) })
2023
2040
  ] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2024
- L === "add-doc-considerations" && H && (c === "activeDuty" || c === "reservist") && /* @__PURE__ */ t.jsx(
2025
- re,
2041
+ z === "add-doc-considerations" && V && (c === "activeDuty" || c === "reservist") && /* @__PURE__ */ t.jsx(
2042
+ de,
2026
2043
  {
2027
2044
  id: "docConsiderations",
2028
2045
  title: /* @__PURE__ */ t.jsx(
@@ -2053,7 +2070,7 @@ const it = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
2053
2070
  }
2054
2071
  ),
2055
2072
  /* @__PURE__ */ t.jsxs(
2056
- re,
2073
+ de,
2057
2074
  {
2058
2075
  id: "suggestedDocs",
2059
2076
  title: /* @__PURE__ */ t.jsx(
@@ -2063,17 +2080,17 @@ const it = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
2063
2080
  defaultMessage: "Suggested document types"
2064
2081
  }
2065
2082
  ),
2066
- defaultState: v === "checkbox-requirements" ? "closed" : "open",
2083
+ defaultState: A === "checkbox-requirements" ? "closed" : "open",
2067
2084
  children: [
2068
- T && /* @__PURE__ */ t.jsx(m, { id: "step.docUpload.acceptableUploadExamples" }),
2085
+ B && /* @__PURE__ */ t.jsx(m, { id: "step.docUpload.acceptableUploadExamples" }),
2069
2086
  /* @__PURE__ */ t.jsxs("ul", { className: "sid-acceptable-document-types", children: [
2070
- (T ? Nt : Yo)(
2087
+ (B ? Tt : Ha)(
2071
2088
  f,
2072
2089
  c
2073
- ).map((i) => /* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(m, { id: i }) }, i)),
2090
+ ).map((l) => /* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(m, { id: l }) }, l)),
2074
2091
  /* @__PURE__ */ t.jsx("li", { className: "sid-acceptable-document-types__item", children: /* @__PURE__ */ t.jsx(m, { id: "step.docUpload.acceptedTypes" }) })
2075
2092
  ] }),
2076
- L !== "add-doc-considerations" && H && (c === "activeDuty" || c === "reservist") && /* @__PURE__ */ t.jsx("div", { className: "sid-acceptable-document-types", children: /* @__PURE__ */ t.jsxs("p", { children: [
2093
+ z !== "add-doc-considerations" && V && (c === "activeDuty" || c === "reservist") && /* @__PURE__ */ t.jsx("div", { className: "sid-acceptable-document-types", children: /* @__PURE__ */ t.jsxs("p", { children: [
2077
2094
  /* @__PURE__ */ t.jsx("span", { className: "display-block", children: /* @__PURE__ */ t.jsx("strong", { children: /* @__PURE__ */ t.jsx(
2078
2095
  m,
2079
2096
  {
@@ -2094,7 +2111,7 @@ const it = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
2094
2111
  )
2095
2112
  ] }),
2096
2113
  /* @__PURE__ */ t.jsxs(
2097
- re,
2114
+ de,
2098
2115
  {
2099
2116
  id: "whatHappensNext",
2100
2117
  title: /* @__PURE__ */ t.jsx(
@@ -2126,16 +2143,16 @@ const it = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
2126
2143
  id: "step.docUpload.reviewTime",
2127
2144
  defaultMessage: "Expected review time is {estimatedWaitTime}.",
2128
2145
  values: {
2129
- estimatedWaitTime: Tt(s, E, o).estReviewTime
2146
+ estimatedWaitTime: Ct(s, O, a).estReviewTime
2130
2147
  }
2131
2148
  }
2132
2149
  ) }),
2133
- /* @__PURE__ */ t.jsx("p", { children: /* @__PURE__ */ t.jsx(Ot, { verificationService: e }) })
2150
+ /* @__PURE__ */ t.jsx("p", { children: /* @__PURE__ */ t.jsx(St, { verificationService: e }) })
2134
2151
  ]
2135
2152
  }
2136
2153
  ),
2137
2154
  /* @__PURE__ */ t.jsx(
2138
- re,
2155
+ de,
2139
2156
  {
2140
2157
  id: "canIFinishLater",
2141
2158
  title: /* @__PURE__ */ t.jsx(
@@ -2154,12 +2171,12 @@ const it = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
2154
2171
  ) })
2155
2172
  }
2156
2173
  ),
2157
- j && /* @__PURE__ */ t.jsx("div", { className: "sid-submit sid-override-submit sid-l-space-top-sm", children: /* @__PURE__ */ t.jsx(
2174
+ ae && /* @__PURE__ */ t.jsx("div", { className: "sid-submit sid-override-submit sid-l-space-top-sm", children: /* @__PURE__ */ t.jsx(
2158
2175
  "a",
2159
2176
  {
2160
2177
  href: "#",
2161
2178
  className: "sid-link sid-override-link",
2162
- onClick: () => he(),
2179
+ onClick: () => Y(),
2163
2180
  role: "button",
2164
2181
  children: /* @__PURE__ */ t.jsx(
2165
2182
  m,
@@ -2171,11 +2188,11 @@ const it = ({ errorId: e, erroredFileNames: o, fieldValidationErrors: a }) => e
2171
2188
  }
2172
2189
  ) })
2173
2190
  ] }),
2174
- /* @__PURE__ */ t.jsx(Ct, { verificationService: e, showShield: !1 })
2191
+ /* @__PURE__ */ t.jsx(Lt, { verificationService: e, showShield: !1 })
2175
2192
  ]
2176
2193
  }
2177
2194
  );
2178
- }, ia = Gt(aa);
2195
+ }, lo = Kt(ro);
2179
2196
  export {
2180
- ia as default
2197
+ lo as default
2181
2198
  };