synapse-react-client 4.0.2 → 4.0.3

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 (259) hide show
  1. package/dist/SWC.index.js +1 -1
  2. package/dist/assets/icons/AwardScroll.d.ts +5 -0
  3. package/dist/assets/icons/AwardScroll.d.ts.map +1 -0
  4. package/dist/assets/icons/AwardScroll.js +78 -0
  5. package/dist/assets/icons/AwardScroll.js.map +1 -0
  6. package/dist/assets/icons/Baseline.d.ts +5 -0
  7. package/dist/assets/icons/Baseline.d.ts.map +1 -0
  8. package/dist/assets/icons/Baseline.js +43 -0
  9. package/dist/assets/icons/Baseline.js.map +1 -0
  10. package/dist/assets/icons/Challenge.svg +13 -0
  11. package/dist/assets/icons/Challenge.svg.js +7 -0
  12. package/dist/assets/icons/Challenge.svg.js.map +1 -0
  13. package/dist/assets/icons/ClappingHands.d.ts +5 -0
  14. package/dist/assets/icons/ClappingHands.d.ts.map +1 -0
  15. package/dist/assets/icons/ClappingHands.js +106 -0
  16. package/dist/assets/icons/ClappingHands.js.map +1 -0
  17. package/dist/assets/icons/HandWithMoney.d.ts +5 -0
  18. package/dist/assets/icons/HandWithMoney.d.ts.map +1 -0
  19. package/dist/assets/icons/HandWithMoney.js +15 -0
  20. package/dist/assets/icons/HandWithMoney.js.map +1 -0
  21. package/dist/assets/icons/MultiFile.d.ts +5 -0
  22. package/dist/assets/icons/MultiFile.d.ts.map +1 -0
  23. package/dist/assets/icons/MultiFile.js +8 -0
  24. package/dist/assets/icons/MultiFile.js.map +1 -0
  25. package/dist/assets/icons/MultiFile.svg +4 -0
  26. package/dist/assets/icons/MultiFile.svg.js +7 -0
  27. package/dist/assets/icons/MultiFile.svg.js.map +1 -0
  28. package/dist/assets/icons/OpenBook.d.ts +5 -0
  29. package/dist/assets/icons/OpenBook.d.ts.map +1 -0
  30. package/dist/assets/icons/OpenBook.js +99 -0
  31. package/dist/assets/icons/OpenBook.js.map +1 -0
  32. package/dist/assets/icons/Podium.d.ts +5 -0
  33. package/dist/assets/icons/Podium.d.ts.map +1 -0
  34. package/dist/assets/icons/Podium.js +36 -0
  35. package/dist/assets/icons/Podium.js.map +1 -0
  36. package/dist/assets/icons/RosetteRibbon.d.ts +5 -0
  37. package/dist/assets/icons/RosetteRibbon.d.ts.map +1 -0
  38. package/dist/assets/icons/RosetteRibbon.js +36 -0
  39. package/dist/assets/icons/RosetteRibbon.js.map +1 -0
  40. package/dist/assets/icons/StarTrophy.d.ts +5 -0
  41. package/dist/assets/icons/StarTrophy.d.ts.map +1 -0
  42. package/dist/assets/icons/StarTrophy.js +99 -0
  43. package/dist/assets/icons/StarTrophy.js.map +1 -0
  44. package/dist/assets/icons/ThreeStars.d.ts +5 -0
  45. package/dist/assets/icons/ThreeStars.d.ts.map +1 -0
  46. package/dist/assets/icons/ThreeStars.js +71 -0
  47. package/dist/assets/icons/ThreeStars.js.map +1 -0
  48. package/dist/assets/icons/UnpackagableFile.d.ts +5 -0
  49. package/dist/assets/icons/UnpackagableFile.d.ts.map +1 -0
  50. package/dist/assets/icons/UnpackagableFile.js +8 -0
  51. package/dist/assets/icons/UnpackagableFile.js.map +1 -0
  52. package/dist/assets/icons/UnpackagableFile.svg +4 -0
  53. package/dist/assets/icons/UnpackagableFile.svg.js +7 -0
  54. package/dist/assets/icons/UnpackagableFile.svg.js.map +1 -0
  55. package/dist/assets/mui_components/PackagableFile.d.ts.map +1 -1
  56. package/dist/assets/mui_components/PackagableFile.js +5 -4
  57. package/dist/assets/mui_components/PackagableFile.js.map +1 -1
  58. package/dist/assets/mui_components/PackagableFile.svg +3 -0
  59. package/dist/assets/mui_components/PackagableFile.svg.js +7 -0
  60. package/dist/assets/mui_components/PackagableFile.svg.js.map +1 -0
  61. package/dist/assets/themed_icons/index.d.ts +1 -2
  62. package/dist/assets/themed_icons/index.d.ts.map +1 -1
  63. package/dist/assets/themed_icons/index.js +8 -10
  64. package/dist/assets/themed_icons/index.js.map +1 -1
  65. package/dist/components/AcknowledgementsPage/AcknowledgementsPage.js +4 -4
  66. package/dist/components/AcknowledgementsPage/AcknowledgementsPage.js.map +1 -1
  67. package/dist/components/AddToDownloadListV2.js +10 -10
  68. package/dist/components/AddToDownloadListV2.js.map +1 -1
  69. package/dist/components/BasePortalCard/BasePortalCard.css +1 -1
  70. package/dist/components/BasePortalCard/BasePortalCard.d.ts +1 -2
  71. package/dist/components/BasePortalCard/BasePortalCard.d.ts.map +1 -1
  72. package/dist/components/BasePortalCard/BasePortalCard.js +21 -28
  73. package/dist/components/BasePortalCard/BasePortalCard.js.map +1 -1
  74. package/dist/components/BasePortalCard/BasePortalCard.module.scss +7 -1
  75. package/dist/components/BasePortalCard/BasePortalCard.module.scss.js +11 -11
  76. package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.d.ts.map +1 -1
  77. package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.js +24 -24
  78. package/dist/components/BasePortalCard/ColorfulPortalCardWithChips/ColorfulPortalCardWithChips.js.map +1 -1
  79. package/dist/components/CardContainerLogic/CardContainerLogic.d.ts +5 -1
  80. package/dist/components/CardContainerLogic/CardContainerLogic.d.ts.map +1 -1
  81. package/dist/components/CardContainerLogic/CardContainerLogic.js.map +1 -1
  82. package/dist/components/CardContainerLogic/index.d.ts +1 -1
  83. package/dist/components/CardContainerLogic/index.d.ts.map +1 -1
  84. package/dist/components/CardDeck/TableQueryCardDeck.js +12 -9
  85. package/dist/components/CardDeck/TableQueryCardDeck.js.map +1 -1
  86. package/dist/components/ChallengeDataDownload/ChallengeDataDownload.js +33 -33
  87. package/dist/components/ChallengeDataDownload/ChallengeDataDownload.js.map +1 -1
  88. package/dist/components/ChangePassword/useChangePasswordFormState.js +5 -2
  89. package/dist/components/ChangePassword/useChangePasswordFormState.js.map +1 -1
  90. package/dist/components/ComponentCollapse.d.ts +6 -10
  91. package/dist/components/ComponentCollapse.d.ts.map +1 -1
  92. package/dist/components/ComponentCollapse.js +31 -35
  93. package/dist/components/ComponentCollapse.js.map +1 -1
  94. package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.js +12 -9
  95. package/dist/components/CreateOrUpdateAccessRequirementWizard/CreateOrUpdateAccessRequirementWizard.js.map +1 -1
  96. package/dist/components/DataGrid/MergeGridWithSourceTableButton.js +8 -3
  97. package/dist/components/DataGrid/MergeGridWithSourceTableButton.js.map +1 -1
  98. package/dist/components/DataGrid/SynapseGrid.js +8 -3
  99. package/dist/components/DataGrid/SynapseGrid.js.map +1 -1
  100. package/dist/components/DataGrid/components/UploadCsvToGridDialog.js +8 -3
  101. package/dist/components/DataGrid/components/UploadCsvToGridDialog.js.map +1 -1
  102. package/dist/components/DirectDownload/DirectDownload.d.ts.map +1 -1
  103. package/dist/components/DirectDownload/DirectDownload.js +23 -23
  104. package/dist/components/DirectDownload/DirectDownload.js.map +1 -1
  105. package/dist/components/DownloadCart/AvailableForDownloadTable.d.ts +6 -2
  106. package/dist/components/DownloadCart/AvailableForDownloadTable.d.ts.map +1 -1
  107. package/dist/components/DownloadCart/AvailableForDownloadTable.js +10 -8
  108. package/dist/components/DownloadCart/AvailableForDownloadTable.js.map +1 -1
  109. package/dist/components/DownloadCart/CreatePackageV2.css +1 -0
  110. package/dist/components/DownloadCart/CreatePackageV2.d.ts.map +1 -1
  111. package/dist/components/DownloadCart/CreatePackageV2.js +50 -46
  112. package/dist/components/DownloadCart/CreatePackageV2.js.map +1 -1
  113. package/dist/components/DownloadCart/CreatePackageV2.module.scss +38 -0
  114. package/dist/components/DownloadCart/CreatePackageV2.module.scss.js +14 -0
  115. package/dist/components/DownloadCart/CreatePackageV2.module.scss.js.map +1 -0
  116. package/dist/components/DownloadCart/DownloadCartPage.css +1 -0
  117. package/dist/components/DownloadCart/DownloadCartPage.d.ts.map +1 -1
  118. package/dist/components/DownloadCart/DownloadCartPage.js +316 -186
  119. package/dist/components/DownloadCart/DownloadCartPage.js.map +1 -1
  120. package/dist/components/DownloadCart/DownloadCartPage.module.scss +217 -0
  121. package/dist/components/DownloadCart/DownloadCartPage.module.scss.js +48 -0
  122. package/dist/components/DownloadCart/DownloadCartPage.module.scss.js.map +1 -0
  123. package/dist/components/DownloadCart/DownloadDetails.js +1 -1
  124. package/dist/components/DownloadCart/DownloadDetails.js.map +1 -1
  125. package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js +33 -33
  126. package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js.map +1 -1
  127. package/dist/components/DownloadCart/DownloadListTable.d.ts +4 -1
  128. package/dist/components/DownloadCart/DownloadListTable.d.ts.map +1 -1
  129. package/dist/components/DownloadCart/DownloadListTable.js +156 -236
  130. package/dist/components/DownloadCart/DownloadListTable.js.map +1 -1
  131. package/dist/components/DownloadCart/ShowDownloadV2.js +5 -5
  132. package/dist/components/DownloadCart/ShowDownloadV2.js.map +1 -1
  133. package/dist/components/Ecosystem/EcosystemSkeleton.js +8 -3
  134. package/dist/components/Ecosystem/EcosystemSkeleton.js.map +1 -1
  135. package/dist/components/EntityDownloadButton/EntityDownloadButton.js +20 -20
  136. package/dist/components/EntityDownloadButton/EntityDownloadButton.js.map +1 -1
  137. package/dist/components/EntityFinder/details/view/table/AddToDownloadListCell.js +3 -3
  138. package/dist/components/EntityFinder/details/view/table/AddToDownloadListCell.js.map +1 -1
  139. package/dist/components/FeaturedDataTabs/FacetPlotsCard.js +6 -2
  140. package/dist/components/FeaturedDataTabs/FacetPlotsCard.js.map +1 -1
  141. package/dist/components/FeaturedDataTabs/FeaturedDataTabs.js +11 -8
  142. package/dist/components/FeaturedDataTabs/FeaturedDataTabs.js.map +1 -1
  143. package/dist/components/FullWidthAlert/FullWidthAlert.d.ts +2 -2
  144. package/dist/components/FullWidthAlert/FullWidthAlert.js.map +1 -1
  145. package/dist/components/GenericCard/GenericCard.d.ts +5 -5
  146. package/dist/components/GenericCard/GenericCard.d.ts.map +1 -1
  147. package/dist/components/GenericCard/GenericCard.js +117 -103
  148. package/dist/components/GenericCard/GenericCard.js.map +1 -1
  149. package/dist/components/GenericCard/LabelMaybeWithIcon.d.ts +10 -0
  150. package/dist/components/GenericCard/LabelMaybeWithIcon.d.ts.map +1 -0
  151. package/dist/components/GenericCard/LabelMaybeWithIcon.js +33 -0
  152. package/dist/components/GenericCard/LabelMaybeWithIcon.js.map +1 -0
  153. package/dist/components/GenericCard/SynapseCardLabel.d.ts +2 -1
  154. package/dist/components/GenericCard/SynapseCardLabel.d.ts.map +1 -1
  155. package/dist/components/GenericCard/SynapseCardLabel.js +86 -81
  156. package/dist/components/GenericCard/SynapseCardLabel.js.map +1 -1
  157. package/dist/components/GenericCard/TableRowGenericCard.d.ts +7 -1
  158. package/dist/components/GenericCard/TableRowGenericCard.d.ts.map +1 -1
  159. package/dist/components/GenericCard/TableRowGenericCard.js +239 -202
  160. package/dist/components/GenericCard/TableRowGenericCard.js.map +1 -1
  161. package/dist/components/HeaderCard.js +17 -13
  162. package/dist/components/HeaderCard.js.map +1 -1
  163. package/dist/components/Icon/Icon.js +52 -52
  164. package/dist/components/Icon/Icon.js.map +1 -1
  165. package/dist/components/IconSvg/IconSvg.d.ts +1 -1
  166. package/dist/components/IconSvg/IconSvg.d.ts.map +1 -1
  167. package/dist/components/IconSvg/IconSvg.js +215 -171
  168. package/dist/components/IconSvg/IconSvg.js.map +1 -1
  169. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts +1 -0
  170. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts.map +1 -1
  171. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js +103 -102
  172. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js.map +1 -1
  173. package/dist/components/StorybookComponentWrapper.js +6 -3
  174. package/dist/components/StorybookComponentWrapper.js.map +1 -1
  175. package/dist/components/SynapseChat/SynapseChat.d.ts +7 -1
  176. package/dist/components/SynapseChat/SynapseChat.d.ts.map +1 -1
  177. package/dist/components/SynapseChat/SynapseChat.js +76 -67
  178. package/dist/components/SynapseChat/SynapseChat.js.map +1 -1
  179. package/dist/components/SynapseChat/SynapseChatInteraction.d.ts +2 -1
  180. package/dist/components/SynapseChat/SynapseChatInteraction.d.ts.map +1 -1
  181. package/dist/components/SynapseChat/SynapseChatInteraction.js +83 -58
  182. package/dist/components/SynapseChat/SynapseChatInteraction.js.map +1 -1
  183. package/dist/components/SynapseChat/SynapseChatMessage.d.ts +1 -0
  184. package/dist/components/SynapseChat/SynapseChatMessage.d.ts.map +1 -1
  185. package/dist/components/SynapseChat/SynapseChatMessage.js +16 -15
  186. package/dist/components/SynapseChat/SynapseChatMessage.js.map +1 -1
  187. package/dist/components/SynapseChat/SynapsePortalChatDialog.d.ts +12 -0
  188. package/dist/components/SynapseChat/SynapsePortalChatDialog.d.ts.map +1 -0
  189. package/dist/components/SynapseChat/SynapsePortalChatDialog.js +30 -0
  190. package/dist/components/SynapseChat/SynapsePortalChatDialog.js.map +1 -0
  191. package/dist/components/SynapseChat/extractMessageFromTraceEvent.d.ts.map +1 -1
  192. package/dist/components/SynapseChat/extractMessageFromTraceEvent.js +22 -16
  193. package/dist/components/SynapseChat/extractMessageFromTraceEvent.js.map +1 -1
  194. package/dist/components/SynapseChat/index.d.ts +2 -0
  195. package/dist/components/SynapseChat/index.d.ts.map +1 -1
  196. package/dist/components/SynapseChat/index.js +5 -3
  197. package/dist/components/SynapseChat/index.js.map +1 -1
  198. package/dist/components/SynapseChat/useChatState.d.ts +1 -1
  199. package/dist/components/SynapseChat/useChatState.d.ts.map +1 -1
  200. package/dist/components/SynapseChat/useChatState.js +10 -7
  201. package/dist/components/SynapseChat/useChatState.js.map +1 -1
  202. package/dist/components/SynapseNavDrawer/SynapseNavDrawer.js +25 -25
  203. package/dist/components/SynapseNavDrawer/SynapseNavDrawer.js.map +1 -1
  204. package/dist/components/SynapseTable/RowSelection/RowSelectionControls.js +13 -13
  205. package/dist/components/SynapseTable/RowSelection/RowSelectionControls.js.map +1 -1
  206. package/dist/components/SynapseTable/TopLevelControls/TopLevelControlsUtils.js +9 -9
  207. package/dist/components/SynapseTable/TopLevelControls/TopLevelControlsUtils.js.map +1 -1
  208. package/dist/components/TextToComponentCollapse.d.ts +16 -0
  209. package/dist/components/TextToComponentCollapse.d.ts.map +1 -0
  210. package/dist/components/TextToComponentCollapse.js +29 -0
  211. package/dist/components/TextToComponentCollapse.js.map +1 -0
  212. package/dist/components/download_list/AddToDownloadListConfirmationAlert/AddToDownloadListConfirmationAlert.js +8 -3
  213. package/dist/components/download_list/AddToDownloadListConfirmationAlert/AddToDownloadListConfirmationAlert.js.map +1 -1
  214. package/dist/components/download_list/DownloadConfirmationUI.d.ts +1 -1
  215. package/dist/components/download_list/DownloadConfirmationUI.js +22 -22
  216. package/dist/components/download_list/DownloadConfirmationUI.js.map +1 -1
  217. package/dist/components/download_list/DownloadConfirmationUtils.js +4 -4
  218. package/dist/components/download_list/DownloadConfirmationUtils.js.map +1 -1
  219. package/dist/components/index.js +85 -83
  220. package/dist/components/index.js.map +1 -1
  221. package/dist/components/row_renderers/ObservationCard.js +12 -11
  222. package/dist/components/row_renderers/ObservationCard.js.map +1 -1
  223. package/dist/components/row_renderers/utils/CardFooter.d.ts +1 -3
  224. package/dist/components/row_renderers/utils/CardFooter.d.ts.map +1 -1
  225. package/dist/components/row_renderers/utils/CardFooter.js +31 -45
  226. package/dist/components/row_renderers/utils/CardFooter.js.map +1 -1
  227. package/dist/components/table/CsvPreview/CsvPreview.js +8 -3
  228. package/dist/components/table/CsvPreview/CsvPreview.js.map +1 -1
  229. package/dist/components/table/CsvPreview/CsvPreviewDialog.js +8 -3
  230. package/dist/components/table/CsvPreview/CsvPreviewDialog.js.map +1 -1
  231. package/dist/features/curator/GridPage/GridPage.js +8 -3
  232. package/dist/features/curator/GridPage/GridPage.js.map +1 -1
  233. package/dist/features/curator/GridPage/components/GridPageTitle.js +8 -3
  234. package/dist/features/curator/GridPage/components/GridPageTitle.js.map +1 -1
  235. package/dist/index.js +137 -135
  236. package/dist/index.js.map +1 -1
  237. package/dist/style/components/_all.scss +0 -1
  238. package/dist/style/components/_cards.scss +22 -0
  239. package/dist/style/components/_download-list-v2.scss +1 -1
  240. package/dist/style/components/_query-wrapper-plot-nav.scss +13 -0
  241. package/dist/style/main.css +1 -1
  242. package/dist/tsconfig.build.tsbuildinfo +1 -1
  243. package/dist/utils/AppUtils/session/ApplicationSessionManager.d.ts.map +1 -1
  244. package/dist/utils/AppUtils/session/ApplicationSessionManager.js.map +1 -1
  245. package/dist/utils/context/FullContextProvider.js +9 -9
  246. package/dist/utils/context/FullContextProvider.js.map +1 -1
  247. package/dist/utils/context/SynapseContext.d.ts.map +1 -1
  248. package/dist/utils/context/SynapseContext.js +1 -0
  249. package/dist/utils/context/SynapseContext.js.map +1 -1
  250. package/dist/utils/functions/SqlFunctions.d.ts +4 -0
  251. package/dist/utils/functions/SqlFunctions.d.ts.map +1 -1
  252. package/dist/utils/functions/SqlFunctions.js +25 -23
  253. package/dist/utils/functions/SqlFunctions.js.map +1 -1
  254. package/package.json +5 -5
  255. package/dist/assets/themed_icons/Challenge.d.ts +0 -3
  256. package/dist/assets/themed_icons/Challenge.d.ts.map +0 -1
  257. package/dist/assets/themed_icons/Challenge.js +0 -25
  258. package/dist/assets/themed_icons/Challenge.js.map +0 -1
  259. package/dist/style/components/_download-cart-page.scss +0 -204
@@ -1,107 +1,109 @@
1
- import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
- import * as P from "../../synapse-client/SynapseClient.js";
1
+ import { jsx as e, jsxs as a, Fragment as $ } from "react/jsx-runtime";
2
+ import i from "./DownloadCartPage.module.scss.js";
3
+ import * as B from "../../synapse-client/SynapseClient.js";
3
4
  import "@sage-bionetworks/synapse-client/generated/models/ErrorResponseCode";
4
5
  import "@sage-bionetworks/synapse-client/generated/models/TwoFactorAuthErrorResponse";
5
6
  import "@sage-bionetworks/synapse-client/util/SynapseClientError";
6
- import { FeatureFlagEnum as S } from "@sage-bionetworks/synapse-types";
7
+ import { FeatureFlagEnum as q } from "@sage-bionetworks/synapse-types";
7
8
  import "../../utils/functions/EntityTypeUtils.js";
8
9
  import "../../utils/SynapseConstants.js";
9
10
  import "lodash-es";
10
11
  import "@sage-bionetworks/synapse-client/util/synapseClientFetch";
11
- import { useGetDownloadListStatistics as x } from "../../synapse-queries/download/useDownloadList.js";
12
- import { useGetFeatureFlag as O } from "../../synapse-queries/featureflags/useGetFeatureFlag.js";
13
- import { useSynapseContext as T } from "../../utils/context/SynapseContext.js";
14
- import { DeleteTwoTone as E } from "@mui/icons-material";
15
- import { Tooltip as g, Button as c, Typography as l } from "@mui/material";
16
- import { useState as r, useEffect as w } from "react";
17
- import { ErrorBanner as L } from "../error/ErrorBanner.js";
18
- import q from "../FullWidthAlert/FullWidthAlert.js";
19
- import { HelpPopover as b } from "../HelpPopover/HelpPopover.js";
20
- import t from "../IconSvg/IconSvg.js";
21
- import { ProgrammaticInstructionsModal as _ } from "../ProgrammaticInstructionsModal/ProgrammaticInstructionsModal.js";
22
- import R from "./AvailableForDownloadTable.js";
23
- import { CreatePackageV2 as B } from "./CreatePackageV2.js";
24
- import { PYTHON_CLIENT_IMPORT_AND_LOGIN as G } from "./DirectProgrammaticDownload.js";
25
- import { DownloadIneligibleForPackagingFilesFromListButton as W } from "./DownloadIneligibleForPackagingFilesFromListButton.js";
26
- import { DownloadListActionsRequired as z } from "./DownloadListActionsRequired.js";
27
- const H = `${G}
28
- dl_list_file_entities = syn.get_download_list()`, M = "synapse get-download-list";
29
- function ue(v) {
30
- const { accessToken: y } = T(), [o, d] = r(0), [D, k] = r(!1), [F, h] = r(!1), [C, p] = r(!1), [f, A] = r(), N = O(
31
- S.DOWNLOAD_CART_INELIGIBLE_FILE_DOWNLOADS
12
+ import { useGetDownloadListStatistics as z } from "../../synapse-queries/download/useDownloadList.js";
13
+ import { useGetFeatureFlag as H } from "../../synapse-queries/featureflags/useGetFeatureFlag.js";
14
+ import { useSynapseContext as M } from "../../utils/context/SynapseContext.js";
15
+ import { DeleteTwoTone as G } from "@mui/icons-material";
16
+ import { Tooltip as g, Button as h, Typography as n } from "@mui/material";
17
+ import { useState as c, useRef as Z, useEffect as v } from "react";
18
+ import { ErrorBanner as V } from "../error/ErrorBanner.js";
19
+ import Y from "../FullWidthAlert/FullWidthAlert.js";
20
+ import d from "../IconSvg/IconSvg.js";
21
+ import { ProgrammaticInstructionsModal as U } from "../ProgrammaticInstructionsModal/ProgrammaticInstructionsModal.js";
22
+ import W from "./AvailableForDownloadTable.js";
23
+ import { CreatePackageV2 as j } from "./CreatePackageV2.js";
24
+ import { PYTHON_CLIENT_IMPORT_AND_LOGIN as J } from "./DirectProgrammaticDownload.js";
25
+ import { calculateFriendlyFileSize as K } from "../../utils/functions/calculateFriendlyFileSize.js";
26
+ import { DownloadIneligibleForPackagingFilesFromListButton as Q } from "./DownloadIneligibleForPackagingFilesFromListButton.js";
27
+ import { DownloadListActionsRequired as X } from "./DownloadListActionsRequired.js";
28
+ import w from "../ComponentCollapse.js";
29
+ const ee = `${J}
30
+ dl_list_file_entities = syn.get_download_list()`, ie = "synapse get-download-list", I = [
31
+ { label: "All Files", filter: void 0 },
32
+ { label: "Files included in ZIP", filter: "eligibleForPackaging" },
33
+ { label: "Files not included in ZIP", filter: "ineligibleForPackaging" }
34
+ ];
35
+ function xe(S) {
36
+ const { accessToken: A } = M(), [t, p] = c(0), [u, x] = c(0), F = I[u].filter, [b, D] = c(!1), N = Z(null);
37
+ v(() => {
38
+ b && N.current?.scrollIntoView({
39
+ behavior: "smooth",
40
+ block: "center"
41
+ });
42
+ }, [b]);
43
+ const [P, y] = c(!1), [O, C] = c(!1), [k, T] = c(), L = H(
44
+ q.DOWNLOAD_CART_INELIGIBLE_FILE_DOWNLOADS
32
45
  ), {
33
- data: i,
34
- isLoading: s,
35
- isError: n,
36
- error: m,
37
- refetch: u
38
- } = x();
39
- if (w(() => {
40
- n && m && A(m);
41
- }, [n, m]), w(() => {
42
- i && i.numberOfFilesRequiringAction == 0 && d(1);
43
- }, [i]), f)
44
- return /* @__PURE__ */ e(L, { error: f });
45
- const I = async () => {
46
- await P.clearDownloadListV2(y), u();
46
+ data: l,
47
+ isLoading: m,
48
+ isError: r,
49
+ error: f,
50
+ refetch: E
51
+ } = z();
52
+ v(() => {
53
+ r && f && T(f);
54
+ }, [r, f]);
55
+ const _ = (o, s) => s === void 0 ? o.numberOfFilesAvailableForDownload : s === "eligibleForPackaging" ? o.numberOfFilesAvailableForDownloadAndEligibleForPackaging : o.numberOfFilesAvailableForDownload - o.numberOfFilesAvailableForDownloadAndEligibleForPackaging;
56
+ if (v(() => {
57
+ l && l.numberOfFilesRequiringAction == 0 && p(1), l && l.numberOfFilesAvailableForDownloadAndEligibleForPackaging === 0 && D(!1);
58
+ }, [l]), k)
59
+ return /* @__PURE__ */ e(V, { error: k });
60
+ const R = async () => {
61
+ await B.clearDownloadListV2(A), E();
47
62
  };
48
- return /* @__PURE__ */ a("div", { className: "DownloadCartPage", children: [
49
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ a("div", { className: "pageHeader", children: [
50
- /* @__PURE__ */ a("div", { className: "grid", children: [
51
- /* @__PURE__ */ e("h3", { className: "pageHeaderTitle", children: "Your Download Cart" }),
52
- /* @__PURE__ */ e(
53
- g,
54
- {
55
- title: "Immediately removes all items from your download cart",
56
- enterNextDelay: 300,
57
- placement: "right",
58
- children: /* @__PURE__ */ e(
59
- c,
60
- {
61
- onClick: () => {
62
- I();
63
- },
64
- variant: "text",
65
- color: "primary",
66
- startIcon: /* @__PURE__ */ e(E, {}),
67
- children: "Clear Your Download Cart"
68
- }
69
- )
70
- }
71
- )
72
- ] }),
63
+ return /* @__PURE__ */ a("div", { className: i.DownloadCartPage, children: [
64
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: `${i.pageHeader}`, children: /* @__PURE__ */ e("div", { className: "container", children: /* @__PURE__ */ a("div", { className: i.grid, children: [
65
+ /* @__PURE__ */ e("h3", { className: "pageHeaderTitle", children: "Your Download List" }),
73
66
  /* @__PURE__ */ e(
74
- l,
67
+ g,
75
68
  {
76
- className: "description",
77
- variant: "body1",
78
- sx: {
79
- display: { xs: "none", md: "block" }
80
- },
81
- children: "Your added files can be found in the tabs below. Files requiring actions before download are listed in the Access Actions Required tab, while those ready for download can be found in the Download List tab."
69
+ title: "Immediately removes all items from your download list",
70
+ enterNextDelay: 300,
71
+ placement: "right",
72
+ children: /* @__PURE__ */ e(
73
+ h,
74
+ {
75
+ onClick: () => {
76
+ R();
77
+ },
78
+ variant: "text",
79
+ color: "primary",
80
+ startIcon: /* @__PURE__ */ e(G, {}),
81
+ children: "Clear Your Download List"
82
+ }
83
+ )
82
84
  }
83
85
  )
84
- ] }) }),
85
- /* @__PURE__ */ e("div", { className: "tabs-container", children: /* @__PURE__ */ e("div", { className: "container", children: /* @__PURE__ */ a("ul", { className: "nav nav-tabs", children: [
86
+ ] }) }) }) }),
87
+ /* @__PURE__ */ e("div", { className: i.tabsContainer, children: /* @__PURE__ */ e("div", { className: "container", children: /* @__PURE__ */ a("ul", { className: i.navTabs, children: [
86
88
  /* @__PURE__ */ e(
87
89
  "li",
88
90
  {
89
- className: `nav-item ${o == 0 ? "active" : ""}`,
90
- "aria-selected": o == 0,
91
- children: /* @__PURE__ */ a("button", { onClick: () => d(0), children: [
91
+ className: `${i.navItem}${t == 0 ? ` ${i.active}` : ""}`,
92
+ "aria-selected": t == 0,
93
+ children: /* @__PURE__ */ a("button", { onClick: () => p(0), children: [
92
94
  "Access Actions Required",
93
- !n && !s && i && /* @__PURE__ */ e("span", { className: "fileCount", children: i.totalNumberOfFiles - i.numberOfFilesAvailableForDownload })
95
+ !r && !m && l && /* @__PURE__ */ e("span", { className: i.fileCount, children: l.totalNumberOfFiles - l.numberOfFilesAvailableForDownload })
94
96
  ] })
95
97
  }
96
98
  ),
97
99
  /* @__PURE__ */ e(
98
100
  "li",
99
101
  {
100
- className: `nav-item ${o == 1 ? "active" : ""}`,
101
- "aria-selected": o == 1,
102
- children: /* @__PURE__ */ a("button", { onClick: () => d(1), children: [
102
+ className: `${i.navItem}${t == 1 ? ` ${i.active}` : ""}`,
103
+ "aria-selected": t == 1,
104
+ children: /* @__PURE__ */ a("button", { onClick: () => p(1), children: [
103
105
  "Download List",
104
- !n && !s && i && /* @__PURE__ */ e("span", { className: "fileCount", children: i.numberOfFilesAvailableForDownload })
106
+ !r && !m && l && /* @__PURE__ */ e("span", { className: i.fileCount, children: l.numberOfFilesAvailableForDownload })
105
107
  ] })
106
108
  }
107
109
  )
@@ -109,173 +111,301 @@ function ue(v) {
109
111
  /* @__PURE__ */ a(
110
112
  "div",
111
113
  {
112
- style: {
114
+ className: (
113
115
  /*
114
116
  The DownloadListActionsRequired component stores actions in local state to track which actions are completed.
115
117
 
116
118
  Mount the actions required component and hide it with style to ensure actions stored in component state are persisted as the user switches tabs
117
119
  */
118
- display: o == 0 && !n && !s && i ? "block" : "none"
119
- },
120
+ t == 0 && !r && !m && l ? void 0 : i.hidden
121
+ ),
120
122
  children: [
121
- i?.numberOfFilesRequiringAction && i.numberOfFilesRequiringAction > 0 && // Unmount instead of hiding the DownloadListActionsRequired component when there are 0 actions required
123
+ l?.numberOfFilesRequiringAction && l.numberOfFilesRequiringAction > 0 && // Unmount instead of hiding the DownloadListActionsRequired component when there are 0 actions required
122
124
  // The DownloadListActionsRequired cannot discern between a fulfilled action and an action that is no longer required because the
123
125
  // file was removed from the download cart.
124
126
  // In the typical case where the download cart is cleared, unmounting the component ensures that the actions are cleared out.
125
- /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "actionsRequiredContainer container", children: /* @__PURE__ */ e(z, { ...v }) }) }),
126
- i?.numberOfFilesRequiringAction === 0 && /* @__PURE__ */ e("div", { className: "placeholder", children: /* @__PURE__ */ e("div", { children: "No actions are currently required." }) })
127
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "container", children: /* @__PURE__ */ e(X, { ...S }) }) }),
128
+ l?.numberOfFilesRequiringAction === 0 && /* @__PURE__ */ e("div", { className: i.placeholder, children: /* @__PURE__ */ e("div", { children: "No actions are currently required." }) })
127
129
  ]
128
130
  }
129
131
  ),
130
- o == 1 && !n && !s && i && /* @__PURE__ */ a("div", { children: [
131
- i.numberOfFilesAvailableForDownload > 0 && /* @__PURE__ */ a("div", { className: "DownloadListTabContent", children: [
132
- /* @__PURE__ */ e("div", { className: "subSectionOverviewContainer", children: /* @__PURE__ */ a("div", { className: "subSectionOverview container", children: [
133
- /* @__PURE__ */ a("div", { children: [
134
- /* @__PURE__ */ a("div", { className: "headlineWithHelp", children: [
135
- /* @__PURE__ */ a(l, { variant: "headline3", sx: { mb: 2 }, children: [
136
- /* @__PURE__ */ e(t, { icon: "packagableFile" }),
137
- " Web Download"
132
+ t == 1 && !r && !m && l && /* @__PURE__ */ a("div", { children: [
133
+ l.numberOfFilesAvailableForDownload > 0 && /* @__PURE__ */ a("div", { className: `container ${i.DownloadListTabContent}`, children: [
134
+ /* @__PURE__ */ a("h3", { className: `${i.sectionTitle} pageHeaderTitle`, children: [
135
+ "Bulk Download Options",
136
+ l.sumOfFileSizesAvailableForDownload != null && /* @__PURE__ */ e(
137
+ g,
138
+ {
139
+ placement: "right",
140
+ title: /* @__PURE__ */ a($, { children: [
141
+ "Total file size",
142
+ /* @__PURE__ */ e("br", {}),
143
+ "Does not include files hosted outside Synapse"
138
144
  ] }),
139
- /* @__PURE__ */ e(
140
- b,
141
- {
142
- markdownText: "This will allow you to create a .zip file that contains eligible files. Files greater that 100 MB, external links, or files which are not stored on Synapse native storage are ineligible. In most cases, ineligible files can be downloaded individually. External links will require navigation to an external site, which may require a separate login process.",
143
- helpUrl: "https://help.synapse.org/docs/Downloading-Data-From-the-Synapse-UI.2004254837.html"
144
- }
145
- )
145
+ slotProps: { tooltip: { sx: { maxWidth: 400 } } },
146
+ children: /* @__PURE__ */ a("span", { className: i.totalFileSize, children: [
147
+ K(
148
+ l.sumOfFileSizesAvailableForDownload
149
+ ),
150
+ " ",
151
+ "total*"
152
+ ] })
153
+ }
154
+ )
155
+ ] }),
156
+ /* @__PURE__ */ e("div", { children: /* @__PURE__ */ a("div", { className: i.subSectionOverview, children: [
157
+ /* @__PURE__ */ a("div", { className: i.subSection, children: [
158
+ /* @__PURE__ */ a("div", { className: i.subSectionHeader, children: [
159
+ /* @__PURE__ */ e("div", { className: i.headline, children: /* @__PURE__ */ a(n, { variant: "headline3", children: [
160
+ /* @__PURE__ */ e(d, { icon: "packagableFile" }),
161
+ " Web Download (.ZIP)"
162
+ ] }) }),
163
+ /* @__PURE__ */ a("div", { className: i.subSectionActions, children: [
164
+ l.numberOfFilesAvailableForDownloadAndEligibleForPackaging > 0 && /* @__PURE__ */ e(
165
+ h,
166
+ {
167
+ variant: "contained",
168
+ onClick: () => {
169
+ D(!0);
170
+ },
171
+ startIcon: /* @__PURE__ */ e(d, { icon: "download", wrap: !1 }),
172
+ children: "Download Packages"
173
+ }
174
+ ),
175
+ l.numberOfFilesAvailableForDownloadAndEligibleForPackaging == 0 && /* @__PURE__ */ e(
176
+ g,
177
+ {
178
+ title: "You cannot create a .zip package because there are no eligible files.",
179
+ enterNextDelay: 300,
180
+ placement: "top",
181
+ children: /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
182
+ h,
183
+ {
184
+ variant: "contained",
185
+ disabled: !0,
186
+ startIcon: /* @__PURE__ */ e(d, { icon: "download", wrap: !1 }),
187
+ children: "Download Packages"
188
+ }
189
+ ) })
190
+ }
191
+ )
192
+ ] })
146
193
  ] }),
147
194
  /* @__PURE__ */ e(
148
- l,
195
+ w,
149
196
  {
150
- variant: "body1",
151
- component: "div",
152
- sx: {
153
- mb: 2,
154
- display: { xs: "none", md: "block" }
197
+ component: /* @__PURE__ */ a(n, { variant: "body1", component: "div", children: [
198
+ "Only some files may be eligible for packaging as ZIP. Use the Individual Downloads tab, below, to download non-packageable files. ",
199
+ /* @__PURE__ */ e(
200
+ "a",
201
+ {
202
+ href: "https://help.synapse.org/docs/Downloading-Data-From-the-Synapse-UI.2004254837.html",
203
+ target: "_blank",
204
+ rel: "noopener noreferrer",
205
+ children: "More Information."
206
+ }
207
+ )
208
+ ] }),
209
+ collapseBoxSx: {
210
+ backgroundColor: "transparent",
211
+ p: 0,
212
+ mt: "15px"
155
213
  },
156
- children: /* @__PURE__ */ a("ul", { children: [
157
- /* @__PURE__ */ e("li", { children: "Eligible files will be added to .ZIP packages of up to 1GB in size" }),
158
- /* @__PURE__ */ e("li", { children: "If you have more than 1GB, you can create multiple packages" }),
159
- /* @__PURE__ */ e("li", { children: "Packages will only include files which are hosted on Synapse native storage" }),
160
- /* @__PURE__ */ e("li", { children: "Packages include a CSV manifest that contains file annotations and other information for each file" })
161
- ] })
162
- }
163
- ),
164
- i.numberOfFilesAvailableForDownloadAndEligibleForPackaging > 0 && /* @__PURE__ */ e(
165
- c,
166
- {
167
- variant: "contained",
168
- onClick: () => {
169
- k(!0);
214
+ componentContainerSx: {
215
+ backgroundColor: "transparent",
216
+ p: 0
170
217
  },
171
- startIcon: /* @__PURE__ */ e(t, { icon: "download", wrap: !1 }),
172
- children: "Download As .Zip Packages"
173
- }
174
- ),
175
- i.numberOfFilesAvailableForDownloadAndEligibleForPackaging == 0 && /* @__PURE__ */ e(
176
- g,
177
- {
178
- title: "You cannot create a .zip package because there are no eligible files.",
179
- enterNextDelay: 300,
180
- placement: "top",
181
- children: /* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
182
- c,
218
+ iconSx: { width: "25px", height: "25px" },
219
+ children: /* @__PURE__ */ e(
220
+ n,
183
221
  {
184
- variant: "contained",
185
- disabled: !0,
186
- startIcon: /* @__PURE__ */ e(t, { icon: "download", wrap: !1 }),
187
- children: "Download As .Zip Packages"
222
+ variant: "body1",
223
+ component: "div",
224
+ sx: { marginBottom: "15px" },
225
+ children: /* @__PURE__ */ a("ul", { children: [
226
+ /* @__PURE__ */ e("li", { children: "Files are bundled into .ZIPs up to 1 GB each." }),
227
+ /* @__PURE__ */ e("li", { children: "Larger selections are split into multiple packages." }),
228
+ /* @__PURE__ */ e("li", { children: "Includes only files stored in Synapse native storage." }),
229
+ /* @__PURE__ */ e("li", { children: "Each package contains a CSV manifest with file annotations and metadata." })
230
+ ] })
188
231
  }
189
- ) })
232
+ )
190
233
  }
191
- ),
192
- N && i.numberOfFilesAvailableForDownloadAndEligibleForPackaging < i.numberOfFilesAvailableForDownload && /* @__PURE__ */ e("div", { style: { marginTop: "1rem" }, children: /* @__PURE__ */ e(W, {}) })
234
+ )
193
235
  ] }),
194
- /* @__PURE__ */ a("div", { children: [
195
- /* @__PURE__ */ a("div", { className: "headlineWithHelp", children: [
196
- /* @__PURE__ */ a(l, { variant: "headline3", sx: { mb: 2 }, children: [
197
- /* @__PURE__ */ e(t, { icon: "code" }),
236
+ /* @__PURE__ */ a("div", { className: i.subSection, children: [
237
+ /* @__PURE__ */ a("div", { className: i.subSectionHeader, children: [
238
+ /* @__PURE__ */ e("div", { className: i.headline, children: /* @__PURE__ */ a(n, { variant: "headline3", children: [
239
+ /* @__PURE__ */ e(d, { icon: "code" }),
198
240
  " Programmatic Download"
199
- ] }),
200
- /* @__PURE__ */ e(
201
- b,
241
+ ] }) }),
242
+ /* @__PURE__ */ e("div", { className: i.subSectionActions, children: /* @__PURE__ */ e(
243
+ h,
202
244
  {
203
- markdownText: "This will provide syntax which you can enter into your programmatic client. It is suitable for large files (>100 MB), for packages > 1GB, and for files which aren’t stored on Synapse native storage (e.g. in a special AWS S3 or Google Cloud bucket). External links will require navigation to an external site, which may require a separate login process.",
204
- helpUrl: "https://help.synapse.org/docs/Downloading-Data-Programmatically.2003796248.html"
245
+ variant: "contained",
246
+ onClick: () => {
247
+ y(!0);
248
+ },
249
+ startIcon: /* @__PURE__ */ e(d, { icon: "download", wrap: !1 }),
250
+ children: "Get R / Python / CLI Code"
205
251
  }
206
- )
252
+ ) })
207
253
  ] }),
208
254
  /* @__PURE__ */ e(
209
- l,
255
+ w,
210
256
  {
211
- variant: "body1",
212
- component: "div",
213
- sx: {
214
- mb: 2,
215
- display: { xs: "none", md: "block" }
257
+ component: /* @__PURE__ */ a(n, { variant: "body1", component: "div", children: [
258
+ "Use our Python, R, or command line clients to download files quickly. ",
259
+ /* @__PURE__ */ e(
260
+ "a",
261
+ {
262
+ href: "https://help.synapse.org/docs/Downloading-Data-Programmatically.2003796248.html",
263
+ target: "_blank",
264
+ rel: "noopener noreferrer",
265
+ children: "More Information."
266
+ }
267
+ )
268
+ ] }),
269
+ collapseBoxSx: {
270
+ backgroundColor: "transparent",
271
+ p: 0,
272
+ mt: "15px"
216
273
  },
217
- children: /* @__PURE__ */ a("ul", { children: [
218
- /* @__PURE__ */ e("li", { children: "Requires installation of a programmatic client (R, Python, CLI)" }),
219
- /* @__PURE__ */ e("li", { children: "No limit to the file size or the size of the package that can be downloaded" }),
220
- /* @__PURE__ */ e("li", { children: "Will include files which are hosted on and off Synapse native storage" }),
221
- /* @__PURE__ */ e("li", { children: "Packages include a CSV manifest that contains file annotations and other information for each file" })
222
- ] })
274
+ componentContainerSx: {
275
+ backgroundColor: "transparent",
276
+ p: 0
277
+ },
278
+ iconSx: { width: "25px", height: "25px" },
279
+ children: /* @__PURE__ */ e(
280
+ n,
281
+ {
282
+ variant: "body1",
283
+ component: "div",
284
+ sx: { marginBottom: "15px" },
285
+ children: /* @__PURE__ */ a("ul", { children: [
286
+ /* @__PURE__ */ e("li", { children: "Requires a client (R, Python, or CLI)." }),
287
+ /* @__PURE__ */ e("li", { children: "No limits on individual file size or total download size." }),
288
+ /* @__PURE__ */ e("li", { children: "Includes files stored both on and off Synapse native storage." }),
289
+ /* @__PURE__ */ e("li", { children: "Downloads include a CSV manifest with file annotations and metadata." })
290
+ ] })
291
+ }
292
+ )
223
293
  }
224
- ),
294
+ )
295
+ ] }),
296
+ L && l.numberOfFilesAvailableForDownloadAndEligibleForPackaging < l.numberOfFilesAvailableForDownload && /* @__PURE__ */ a("div", { className: i.subSection, children: [
297
+ /* @__PURE__ */ a("div", { className: i.subSectionHeader, children: [
298
+ /* @__PURE__ */ e("div", { className: i.headline, children: /* @__PURE__ */ a(n, { variant: "headline3", children: [
299
+ /* @__PURE__ */ e(d, { icon: "multiFile" }),
300
+ " Multi-file Download"
301
+ ] }) }),
302
+ /* @__PURE__ */ e("div", { className: i.subSectionActions, children: /* @__PURE__ */ e("div", { className: i.ineligibleDownloadContainer, children: /* @__PURE__ */ e(Q, {}) }) })
303
+ ] }),
225
304
  /* @__PURE__ */ e(
226
- c,
305
+ w,
227
306
  {
228
- variant: "contained",
229
- onClick: () => {
230
- h(!0);
307
+ component: /* @__PURE__ */ a(n, { variant: "body1", component: "div", children: [
308
+ "Files which ",
309
+ /* @__PURE__ */ e("strong", { children: "aren't" }),
310
+ " included in a ZIP package may be downloaded as a multi-file download. "
311
+ ] }),
312
+ collapseBoxSx: {
313
+ backgroundColor: "transparent",
314
+ p: 0,
315
+ mt: "15px"
316
+ },
317
+ componentContainerSx: {
318
+ backgroundColor: "transparent",
319
+ p: 0
231
320
  },
232
- startIcon: /* @__PURE__ */ e(t, { icon: "code", wrap: !1 }),
233
- children: "Create Programmatic Package"
321
+ iconSx: { width: "25px", height: "25px" },
322
+ children: /* @__PURE__ */ a(
323
+ n,
324
+ {
325
+ variant: "body1",
326
+ component: "div",
327
+ sx: { marginBottom: "15px" },
328
+ children: [
329
+ "Clicking “Start Multi-file Download” initiates a download of all files in your Download List that can’t be bundled into a ZIP—such as large files or external links—in one step. Files are saved one by one with clear progress updates, automatic handling of duplicate names, and retry support if something fails. You can cancel anytime.",
330
+ /* @__PURE__ */ e("br", {}),
331
+ /* @__PURE__ */ e("br", {}),
332
+ "Note: in some browsers, files download individually to your default Downloads folder instead of a selected location."
333
+ ]
334
+ }
335
+ )
234
336
  }
235
337
  )
236
338
  ] })
237
339
  ] }) }),
238
- /* @__PURE__ */ a("div", { className: "availableForDownloadTableContainer container", children: [
239
- D && /* @__PURE__ */ e(
240
- B,
340
+ /* @__PURE__ */ a("div", { children: [
341
+ b && /* @__PURE__ */ e("div", { ref: N, children: /* @__PURE__ */ e(
342
+ j,
241
343
  {
242
344
  onPackageCreation: () => {
243
- p(!0), u();
345
+ C(!0);
244
346
  }
245
347
  }
246
- ),
247
- /* @__PURE__ */ e(R, {})
348
+ ) }),
349
+ /* @__PURE__ */ e("h3", { className: `${i.sectionTitle} pageHeaderTitle`, children: "Download Individual Files" }),
350
+ /* @__PURE__ */ e("div", { className: i.tabsContainer, children: /* @__PURE__ */ a("ul", { className: i.navTabs, children: [
351
+ /* @__PURE__ */ e("li", { className: i.navLabel, children: "View:" }),
352
+ I.map((o, s) => /* @__PURE__ */ e(
353
+ "li",
354
+ {
355
+ className: `${i.navItem}${u === s ? ` ${i.active}` : ""}`,
356
+ "aria-selected": u === s,
357
+ children: /* @__PURE__ */ a(
358
+ "button",
359
+ {
360
+ onClick: () => x(s),
361
+ children: [
362
+ o.label,
363
+ !r && !m && l && /* @__PURE__ */ e("span", { className: i.fileCount, children: _(l, o.filter) })
364
+ ]
365
+ }
366
+ )
367
+ },
368
+ o.label
369
+ ))
370
+ ] }) }),
371
+ /* @__PURE__ */ e("div", { className: i.availableForDownloadTableContainer, children: /* @__PURE__ */ e(
372
+ W,
373
+ {
374
+ filter: F
375
+ },
376
+ F ?? "all"
377
+ ) })
248
378
  ] })
249
379
  ] }),
250
- i.numberOfFilesAvailableForDownload === 0 && /* @__PURE__ */ e("div", { className: "placeholder", children: /* @__PURE__ */ e("div", { children: "Your Download Cart is currently empty." }) })
380
+ l.numberOfFilesAvailableForDownload === 0 && /* @__PURE__ */ e("div", { className: i.placeholder, children: /* @__PURE__ */ e(n, { variant: "body1Italic", children: "Your Download List is currently empty." }) })
251
381
  ] }),
252
382
  /* @__PURE__ */ e(
253
- q,
383
+ Y,
254
384
  {
255
- show: C,
385
+ show: O,
256
386
  variant: "success",
257
387
  title: "Package Created",
258
388
  description: "A package has been created with eligible files. The items contained in this .zip file have been removed from your list. If your package is over 1GB, you will need to create multiple packages.",
259
389
  autoCloseAfterDelayInSeconds: 10,
260
390
  onClose: () => {
261
- p(!1);
391
+ C(!1);
262
392
  }
263
393
  }
264
394
  ),
265
- F && /* @__PURE__ */ e(
266
- _,
395
+ P && /* @__PURE__ */ e(
396
+ U,
267
397
  {
268
398
  show: !0,
269
- onClose: () => h(!1),
399
+ onClose: () => y(!1),
270
400
  title: "Download Programmatically",
271
- pythonCode: H,
272
- cliCode: M
401
+ pythonCode: ee,
402
+ cliCode: ie
273
403
  }
274
404
  )
275
405
  ] });
276
406
  }
277
407
  export {
278
- ue as DownloadCartPage,
279
- ue as default
408
+ xe as DownloadCartPage,
409
+ xe as default
280
410
  };
281
411
  //# sourceMappingURL=DownloadCartPage.js.map