synapse-react-client 4.0.11 → 4.0.13

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 (137) hide show
  1. package/dist/SWC.index.d.ts +1 -1
  2. package/dist/SWC.index.js +1 -1
  3. package/dist/components/AdaptiveTwoColumnLayout/AdaptiveTwoColumnLayout.d.ts +44 -0
  4. package/dist/components/AdaptiveTwoColumnLayout/AdaptiveTwoColumnLayout.d.ts.map +1 -0
  5. package/dist/components/AdaptiveTwoColumnLayout/AdaptiveTwoColumnLayout.js +46 -0
  6. package/dist/components/AdaptiveTwoColumnLayout/AdaptiveTwoColumnLayout.js.map +1 -0
  7. package/dist/components/DownloadCart/DownloadCartPage.d.ts.map +1 -1
  8. package/dist/components/DownloadCart/DownloadCartPage.js +183 -185
  9. package/dist/components/DownloadCart/DownloadCartPage.js.map +1 -1
  10. package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.d.ts.map +1 -1
  11. package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js +1 -1
  12. package/dist/components/DownloadCart/DownloadIneligibleForPackagingFilesFromListButton.js.map +1 -1
  13. package/dist/components/DraggableDialog/DraggableDialog.js +21 -21
  14. package/dist/components/DraggableDialog/DraggableDialog.js.map +1 -1
  15. package/dist/components/EntityAclEditor/EntityAclEditor.js +8 -8
  16. package/dist/components/EntityAclEditor/EntityAclEditor.js.map +1 -1
  17. package/dist/components/EntityAclEditor/InheritanceMessage.d.ts.map +1 -1
  18. package/dist/components/EntityAclEditor/InheritanceMessage.js +1 -2
  19. package/dist/components/EntityAclEditor/InheritanceMessage.js.map +1 -1
  20. package/dist/components/FullTextSearch/FullTextSearch.d.ts.map +1 -1
  21. package/dist/components/FullTextSearch/FullTextSearch.js +86 -47
  22. package/dist/components/FullTextSearch/FullTextSearch.js.map +1 -1
  23. package/dist/components/GenericCard/TableRowGenericCard.d.ts.map +1 -1
  24. package/dist/components/GenericCard/TableRowGenericCard.js +157 -157
  25. package/dist/components/GenericCard/TableRowGenericCard.js.map +1 -1
  26. package/dist/components/HeaderCard.d.ts.map +1 -1
  27. package/dist/components/HeaderCard.js +131 -130
  28. package/dist/components/HeaderCard.js.map +1 -1
  29. package/dist/components/MailchimpSubscribeSection/MailchimpSubscribeSection.d.ts +4 -1
  30. package/dist/components/MailchimpSubscribeSection/MailchimpSubscribeSection.d.ts.map +1 -1
  31. package/dist/components/MailchimpSubscribeSection/MailchimpSubscribeSection.js +3 -2
  32. package/dist/components/MailchimpSubscribeSection/MailchimpSubscribeSection.js.map +1 -1
  33. package/dist/components/QueryContext/QueryContext.d.ts +6 -0
  34. package/dist/components/QueryContext/QueryContext.d.ts.map +1 -1
  35. package/dist/components/QueryContext/QueryContext.js.map +1 -1
  36. package/dist/components/QueryVisualizationWrapper/QueryVisualizationWrapper.d.ts.map +1 -1
  37. package/dist/components/QueryVisualizationWrapper/QueryVisualizationWrapper.js +12 -11
  38. package/dist/components/QueryVisualizationWrapper/QueryVisualizationWrapper.js.map +1 -1
  39. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts +5 -0
  40. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts.map +1 -1
  41. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js +32 -29
  42. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js.map +1 -1
  43. package/dist/components/QueryWrapperPlotNav/UseRowSet.d.ts.map +1 -1
  44. package/dist/components/QueryWrapperPlotNav/UseRowSet.js +4 -1
  45. package/dist/components/QueryWrapperPlotNav/UseRowSet.js.map +1 -1
  46. package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.d.ts +59 -0
  47. package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.d.ts.map +1 -0
  48. package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js +174 -0
  49. package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js.map +1 -0
  50. package/dist/components/SearchQueryWrapper/SearchQueryWrapper.d.ts +40 -0
  51. package/dist/components/SearchQueryWrapper/SearchQueryWrapper.d.ts.map +1 -0
  52. package/dist/components/SearchQueryWrapper/SearchQueryWrapper.js +100 -0
  53. package/dist/components/SearchQueryWrapper/SearchQueryWrapper.js.map +1 -0
  54. package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.d.ts +56 -0
  55. package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.d.ts.map +1 -0
  56. package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.js +73 -0
  57. package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.js.map +1 -0
  58. package/dist/components/ShareThisPage/ShareThisPage.js +1 -1
  59. package/dist/components/ShareThisPage/ShareThisPage.js.map +1 -1
  60. package/dist/components/SynapseChat/GridAgentChat.d.ts.map +1 -1
  61. package/dist/components/SynapseChat/GridAgentChat.js +20 -14
  62. package/dist/components/SynapseChat/GridAgentChat.js.map +1 -1
  63. package/dist/components/SynapseChat/SynapseChat.d.ts +3 -1
  64. package/dist/components/SynapseChat/SynapseChat.d.ts.map +1 -1
  65. package/dist/components/SynapseChat/SynapseChat.js +51 -36
  66. package/dist/components/SynapseChat/SynapseChat.js.map +1 -1
  67. package/dist/components/SynapseHomepageV2/HotdropsAndNews.css +1 -1
  68. package/dist/components/SynapseHomepageV2/HotdropsAndNews.module.js +8 -7
  69. package/dist/components/SynapseHomepageV2/HotdropsAndNews.module.js.map +1 -1
  70. package/dist/components/SynapseHomepageV2/HotdropsAndNews.module.scss +16 -0
  71. package/dist/components/SynapseHomepageV2/WordPressNews.d.ts +3 -1
  72. package/dist/components/SynapseHomepageV2/WordPressNews.d.ts.map +1 -1
  73. package/dist/components/SynapseHomepageV2/WordPressNews.js +9 -8
  74. package/dist/components/SynapseHomepageV2/WordPressNews.js.map +1 -1
  75. package/dist/components/SynapseHomepageV2/WordPressNewsItem.d.ts +2 -1
  76. package/dist/components/SynapseHomepageV2/WordPressNewsItem.d.ts.map +1 -1
  77. package/dist/components/SynapseHomepageV2/WordPressNewsItem.js +2 -2
  78. package/dist/components/SynapseHomepageV2/WordPressNewsItem.js.map +1 -1
  79. package/dist/components/SynapseTable/SearchV2.d.ts +7 -0
  80. package/dist/components/SynapseTable/SearchV2.d.ts.map +1 -1
  81. package/dist/components/SynapseTable/SearchV2.js.map +1 -1
  82. package/dist/components/SynapseTable/SynapseTableRenderers.d.ts.map +1 -1
  83. package/dist/components/SynapseTable/SynapseTableRenderers.js +1 -1
  84. package/dist/components/SynapseTable/SynapseTableRenderers.js.map +1 -1
  85. package/dist/components/SynapseTable/usePrefetchTableData.d.ts.map +1 -1
  86. package/dist/components/SynapseTable/usePrefetchTableData.js +6 -5
  87. package/dist/components/SynapseTable/usePrefetchTableData.js.map +1 -1
  88. package/dist/components/ToastMessage/ToastMessage.d.ts +1 -1
  89. package/dist/components/ToastMessage/ToastMessage.d.ts.map +1 -1
  90. package/dist/components/ToastMessage/ToastMessage.js +2 -2
  91. package/dist/components/ToastMessage/ToastMessage.js.map +1 -1
  92. package/dist/components/error/ErrorPage.d.ts +0 -4
  93. package/dist/components/error/ErrorPage.d.ts.map +1 -1
  94. package/dist/components/error/ErrorPage.js +25 -30
  95. package/dist/components/error/ErrorPage.js.map +1 -1
  96. package/dist/components/index.d.ts +4 -0
  97. package/dist/components/index.d.ts.map +1 -1
  98. package/dist/components/index.js +41 -39
  99. package/dist/components/widgets/query-filter/FacetFilterControls.d.ts.map +1 -1
  100. package/dist/components/widgets/query-filter/FacetFilterControls.js +2 -2
  101. package/dist/components/widgets/query-filter/FacetFilterControls.js.map +1 -1
  102. package/dist/index.js +52 -50
  103. package/dist/index.js.map +1 -1
  104. package/dist/mocks/entity/index.d.ts.map +1 -1
  105. package/dist/mocks/entity/index.js +18 -16
  106. package/dist/mocks/entity/index.js.map +1 -1
  107. package/dist/mocks/mockSearchQueryData.d.ts +14 -0
  108. package/dist/mocks/mockSearchQueryData.d.ts.map +1 -0
  109. package/dist/mocks/mockSearchQueryData.js +564 -0
  110. package/dist/mocks/mockSearchQueryData.js.map +1 -0
  111. package/dist/mocks/msw/handlers/searchQueryHandlers.d.ts +22 -0
  112. package/dist/mocks/msw/handlers/searchQueryHandlers.d.ts.map +1 -0
  113. package/dist/mocks/msw/handlers/searchQueryHandlers.js +63 -0
  114. package/dist/mocks/msw/handlers/searchQueryHandlers.js.map +1 -0
  115. package/dist/mocks/msw/handlers.d.ts.map +1 -1
  116. package/dist/mocks/msw/handlers.js +9 -7
  117. package/dist/mocks/msw/handlers.js.map +1 -1
  118. package/dist/style/components/_cards.scss +15 -0
  119. package/dist/style/main.css +1 -1
  120. package/dist/synapse-client/SynapseClient.d.ts +7 -1
  121. package/dist/synapse-client/SynapseClient.d.ts.map +1 -1
  122. package/dist/synapse-client/SynapseClient.js +422 -417
  123. package/dist/synapse-client/SynapseClient.js.map +1 -1
  124. package/dist/synapse-client/index.js +3 -3
  125. package/dist/synapse-queries/KeyFactory.d.ts +2 -0
  126. package/dist/synapse-queries/KeyFactory.d.ts.map +1 -1
  127. package/dist/synapse-queries/KeyFactory.js +3 -0
  128. package/dist/synapse-queries/KeyFactory.js.map +1 -1
  129. package/dist/tsconfig.build.tsbuildinfo +1 -1
  130. package/dist/utils/APIConstants.d.ts +2 -0
  131. package/dist/utils/APIConstants.d.ts.map +1 -1
  132. package/dist/utils/APIConstants.js +2 -2
  133. package/dist/utils/APIConstants.js.map +1 -1
  134. package/dist/utils/functions/calculateFriendlyFileSize.d.ts.map +1 -1
  135. package/dist/utils/functions/calculateFriendlyFileSize.js +3 -3
  136. package/dist/utils/functions/calculateFriendlyFileSize.js.map +1 -1
  137. package/package.json +3 -3
@@ -4,24 +4,22 @@ import n from "../../synapse-client/index.js";
4
4
  import { ErrorBanner as r } from "../error/ErrorBanner.js";
5
5
  import { useSynapseContext as i } from "../../utils/context/SynapseContext.js";
6
6
  import { useGetDownloadListStatistics as a } from "../../synapse-queries/download/useDownloadList.js";
7
- import { useGetFeatureFlag as o } from "../../synapse-queries/featureflags/useGetFeatureFlag.js";
8
- import s from "../IconSvg/IconSvg.js";
9
- import c from "./DownloadCartPage.module.js";
10
- import { ProgrammaticInstructionsModal as l } from "../ProgrammaticInstructionsModal/ProgrammaticInstructionsModal.js";
11
- import { PYTHON_CLIENT_IMPORT_AND_LOGIN as u } from "./DirectProgrammaticDownload.js";
12
- import d from "./AvailableForDownloadTable.js";
13
- import { CreatePackageV2 as f } from "./CreatePackageV2.js";
14
- import { DownloadIneligibleForPackagingFilesFromListButton as p } from "./DownloadIneligibleForPackagingFilesFromListButton.js";
15
- import { DownloadListActionsRequired as m } from "./DownloadListActionsRequired.js";
16
- import h from "../ComponentCollapse.js";
17
- import { useEffect as g, useRef as _, useState as v } from "react";
18
- import { Button as y, Tooltip as b, Typography as x } from "@mui/material";
19
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
20
- import { FeatureFlagEnum as T } from "@sage-bionetworks/synapse-types";
21
- import { DeleteTwoTone as E } from "@mui/icons-material";
7
+ import o from "../IconSvg/IconSvg.js";
8
+ import s from "./DownloadCartPage.module.js";
9
+ import { ProgrammaticInstructionsModal as c } from "../ProgrammaticInstructionsModal/ProgrammaticInstructionsModal.js";
10
+ import { PYTHON_CLIENT_IMPORT_AND_LOGIN as l } from "./DirectProgrammaticDownload.js";
11
+ import u from "./AvailableForDownloadTable.js";
12
+ import { CreatePackageV2 as d } from "./CreatePackageV2.js";
13
+ import { DownloadIneligibleForPackagingFilesFromListButton as f } from "./DownloadIneligibleForPackagingFilesFromListButton.js";
14
+ import { DownloadListActionsRequired as p } from "./DownloadListActionsRequired.js";
15
+ import m from "../ComponentCollapse.js";
16
+ import { useEffect as h, useRef as g, useState as _ } from "react";
17
+ import { Button as v, Tooltip as y, Typography as b } from "@mui/material";
18
+ import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
19
+ import { DeleteTwoTone as w } from "@mui/icons-material";
22
20
  //#region src/components/DownloadCart/DownloadCartPage.tsx
23
- var D = `${u}
24
- dl_list_file_entities = syn.get_download_list()`, O = "synapse get-download-list", k = [
21
+ var T = `${l}
22
+ dl_list_file_entities = syn.get_download_list()`, E = "synapse get-download-list", D = [
25
23
  {
26
24
  label: "All Files",
27
25
  filter: void 0
@@ -35,150 +33,150 @@ dl_list_file_entities = syn.get_download_list()`, O = "synapse get-download-list
35
33
  filter: "ineligibleForPackaging"
36
34
  }
37
35
  ];
38
- function A(u) {
39
- let { accessToken: A } = i(), [j, M] = v(0), [N, P] = v(0), F = k[N].filter, [I, L] = v(!1), R = _(null);
40
- g(() => {
41
- I && R.current?.scrollIntoView({
36
+ function O(l) {
37
+ let { accessToken: O } = i(), [k, A] = _(0), [j, M] = _(0), N = D[j].filter, [P, F] = _(!1), I = g(null);
38
+ h(() => {
39
+ P && I.current?.scrollIntoView({
42
40
  behavior: "smooth",
43
41
  block: "center"
44
42
  });
45
- }, [I]);
46
- let [z, B] = v(!1), [V, H] = v(!1), [U, W] = v(), G = o(T.DOWNLOAD_CART_INELIGIBLE_FILE_DOWNLOADS), { data: K, isLoading: q, isError: J, error: Y, refetch: X } = a();
47
- g(() => {
48
- J && Y && W(Y);
49
- }, [J, Y]);
50
- let Z = (e, t) => t === void 0 ? e.numberOfFilesAvailableForDownload : t === "eligibleForPackaging" ? e.numberOfFilesAvailableForDownloadAndEligibleForPackaging : e.numberOfFilesAvailableForDownload - e.numberOfFilesAvailableForDownloadAndEligibleForPackaging;
51
- if (g(() => {
52
- K && K.numberOfFilesRequiringAction == 0 && M(1), K && K.numberOfFilesAvailableForDownloadAndEligibleForPackaging === 0 && L(!1);
53
- }, [K]), U) return /* @__PURE__ */ C(r, { error: U });
54
- let Q = async () => {
55
- await n.clearDownloadListV2(A), X();
43
+ }, [P]);
44
+ let [L, R] = _(!1), [z, B] = _(!1), [V, H] = _(), { data: U, isLoading: W, isError: G, error: K, refetch: q } = a();
45
+ h(() => {
46
+ G && K && H(K);
47
+ }, [G, K]);
48
+ let J = (e, t) => t === void 0 ? e.numberOfFilesAvailableForDownload : t === "eligibleForPackaging" ? e.numberOfFilesAvailableForDownloadAndEligibleForPackaging : e.numberOfFilesAvailableForDownload - e.numberOfFilesAvailableForDownloadAndEligibleForPackaging;
49
+ if (h(() => {
50
+ U && U.numberOfFilesRequiringAction == 0 && A(1), U && U.numberOfFilesAvailableForDownloadAndEligibleForPackaging === 0 && F(!1);
51
+ }, [U]), V) return /* @__PURE__ */ S(r, { error: V });
52
+ let Y = async () => {
53
+ await n.clearDownloadListV2(O), q();
56
54
  };
57
- return /* @__PURE__ */ w("div", {
58
- className: c.DownloadCartPage,
55
+ return /* @__PURE__ */ C("div", {
56
+ className: s.DownloadCartPage,
59
57
  children: [
60
- /* @__PURE__ */ C("div", { children: /* @__PURE__ */ C("div", {
61
- className: `${c.pageHeader}`,
62
- children: /* @__PURE__ */ C("div", {
58
+ /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S("div", {
59
+ className: `${s.pageHeader}`,
60
+ children: /* @__PURE__ */ S("div", {
63
61
  className: "container",
64
- children: /* @__PURE__ */ w("div", {
65
- className: c.grid,
66
- children: [/* @__PURE__ */ C("h3", {
62
+ children: /* @__PURE__ */ C("div", {
63
+ className: s.grid,
64
+ children: [/* @__PURE__ */ S("h3", {
67
65
  className: "pageHeaderTitle",
68
66
  children: "Your Download List"
69
- }), /* @__PURE__ */ C(b, {
67
+ }), /* @__PURE__ */ S(y, {
70
68
  title: "Immediately removes all items from your download list",
71
69
  enterNextDelay: 300,
72
70
  placement: "right",
73
- children: /* @__PURE__ */ C(y, {
71
+ children: /* @__PURE__ */ S(v, {
74
72
  onClick: () => {
75
- Q();
73
+ Y();
76
74
  },
77
75
  variant: "text",
78
76
  color: "primary",
79
- startIcon: /* @__PURE__ */ C(E, {}),
77
+ startIcon: /* @__PURE__ */ S(w, {}),
80
78
  children: "Clear Your Download List"
81
79
  })
82
80
  })]
83
81
  })
84
82
  })
85
83
  }) }),
86
- /* @__PURE__ */ C("div", {
87
- className: c.tabsContainer,
88
- children: /* @__PURE__ */ C("div", {
84
+ /* @__PURE__ */ S("div", {
85
+ className: s.tabsContainer,
86
+ children: /* @__PURE__ */ S("div", {
89
87
  className: "container",
90
- children: /* @__PURE__ */ w("ul", {
91
- className: c.navTabs,
92
- children: [/* @__PURE__ */ C("li", {
93
- className: `${c.navItem}${j == 0 ? ` ${c.active}` : ""}`,
94
- "aria-selected": j == 0,
95
- children: /* @__PURE__ */ w("button", {
96
- onClick: () => M(0),
97
- children: ["Access Actions Required", !J && !q && K && /* @__PURE__ */ C("span", {
98
- className: c.fileCount,
99
- children: K.totalNumberOfFiles - K.numberOfFilesAvailableForDownload
88
+ children: /* @__PURE__ */ C("ul", {
89
+ className: s.navTabs,
90
+ children: [/* @__PURE__ */ S("li", {
91
+ className: `${s.navItem}${k == 0 ? ` ${s.active}` : ""}`,
92
+ "aria-selected": k == 0,
93
+ children: /* @__PURE__ */ C("button", {
94
+ onClick: () => A(0),
95
+ children: ["Access Actions Required", !G && !W && U && /* @__PURE__ */ S("span", {
96
+ className: s.fileCount,
97
+ children: U.totalNumberOfFiles - U.numberOfFilesAvailableForDownload
100
98
  })]
101
99
  })
102
- }), /* @__PURE__ */ C("li", {
103
- className: `${c.navItem}${j == 1 ? ` ${c.active}` : ""}`,
104
- "aria-selected": j == 1,
105
- children: /* @__PURE__ */ w("button", {
106
- onClick: () => M(1),
107
- children: ["Download List", !J && !q && K && /* @__PURE__ */ C("span", {
108
- className: c.fileCount,
109
- children: K.numberOfFilesAvailableForDownload
100
+ }), /* @__PURE__ */ S("li", {
101
+ className: `${s.navItem}${k == 1 ? ` ${s.active}` : ""}`,
102
+ "aria-selected": k == 1,
103
+ children: /* @__PURE__ */ C("button", {
104
+ onClick: () => A(1),
105
+ children: ["Download List", !G && !W && U && /* @__PURE__ */ S("span", {
106
+ className: s.fileCount,
107
+ children: U.numberOfFilesAvailableForDownload
110
108
  })]
111
109
  })
112
110
  })]
113
111
  })
114
112
  })
115
113
  }),
116
- /* @__PURE__ */ w("div", {
117
- className: j == 0 && !J && !q && K ? void 0 : c.hidden,
118
- children: [K?.numberOfFilesRequiringAction && K.numberOfFilesRequiringAction > 0 && /* @__PURE__ */ C("div", { children: /* @__PURE__ */ C("div", {
114
+ /* @__PURE__ */ C("div", {
115
+ className: k == 0 && !G && !W && U ? void 0 : s.hidden,
116
+ children: [U?.numberOfFilesRequiringAction && U.numberOfFilesRequiringAction > 0 && /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S("div", {
119
117
  className: "container",
120
- children: /* @__PURE__ */ C(m, { ...u })
121
- }) }), K?.numberOfFilesRequiringAction === 0 && /* @__PURE__ */ C("div", {
122
- className: c.placeholder,
123
- children: /* @__PURE__ */ C("div", { children: "No actions are currently required." })
118
+ children: /* @__PURE__ */ S(p, { ...l })
119
+ }) }), U?.numberOfFilesRequiringAction === 0 && /* @__PURE__ */ S("div", {
120
+ className: s.placeholder,
121
+ children: /* @__PURE__ */ S("div", { children: "No actions are currently required." })
124
122
  })]
125
123
  }),
126
- j == 1 && !J && !q && K && /* @__PURE__ */ w("div", { children: [K.numberOfFilesAvailableForDownload > 0 && /* @__PURE__ */ w("div", {
127
- className: `container ${c.DownloadListTabContent}`,
124
+ k == 1 && !G && !W && U && /* @__PURE__ */ C("div", { children: [U.numberOfFilesAvailableForDownload > 0 && /* @__PURE__ */ C("div", {
125
+ className: `container ${s.DownloadListTabContent}`,
128
126
  children: [
129
- /* @__PURE__ */ w("h3", {
130
- className: `${c.sectionTitle} pageHeaderTitle`,
131
- children: ["Bulk Download Options", K.sumOfFileSizesAvailableForDownload != null && /* @__PURE__ */ C(b, {
127
+ /* @__PURE__ */ C("h3", {
128
+ className: `${s.sectionTitle} pageHeaderTitle`,
129
+ children: ["Bulk Download Options", U.sumOfFileSizesAvailableForDownload != null && /* @__PURE__ */ S(y, {
132
130
  placement: "right",
133
- title: /* @__PURE__ */ w(S, { children: [
131
+ title: /* @__PURE__ */ C(x, { children: [
134
132
  "Total file size",
135
- /* @__PURE__ */ C("br", {}),
133
+ /* @__PURE__ */ S("br", {}),
136
134
  "Does not include files hosted outside Synapse"
137
135
  ] }),
138
136
  slotProps: { tooltip: { sx: { maxWidth: 400 } } },
139
- children: /* @__PURE__ */ w("span", {
140
- className: c.totalFileSize,
137
+ children: /* @__PURE__ */ C("span", {
138
+ className: s.totalFileSize,
141
139
  children: [
142
- t(K.sumOfFileSizesAvailableForDownload),
140
+ t(U.sumOfFileSizesAvailableForDownload),
143
141
  " ",
144
142
  "total*"
145
143
  ]
146
144
  })
147
145
  })]
148
146
  }),
149
- /* @__PURE__ */ C("div", { children: /* @__PURE__ */ w("div", {
150
- className: c.subSectionOverview,
147
+ /* @__PURE__ */ S("div", { children: /* @__PURE__ */ C("div", {
148
+ className: s.subSectionOverview,
151
149
  children: [
152
- /* @__PURE__ */ w("div", {
153
- className: c.subSection,
154
- children: [/* @__PURE__ */ w("div", {
155
- className: c.subSectionHeader,
156
- children: [/* @__PURE__ */ C("div", {
157
- className: c.headline,
158
- children: /* @__PURE__ */ w(x, {
150
+ /* @__PURE__ */ C("div", {
151
+ className: s.subSection,
152
+ children: [/* @__PURE__ */ C("div", {
153
+ className: s.subSectionHeader,
154
+ children: [/* @__PURE__ */ S("div", {
155
+ className: s.headline,
156
+ children: /* @__PURE__ */ C(b, {
159
157
  variant: "headline3",
160
- children: [/* @__PURE__ */ C(s, { icon: "packagableFile" }), " Web Download (.ZIP)"]
158
+ children: [/* @__PURE__ */ S(o, { icon: "packagableFile" }), " Web Download (.ZIP)"]
161
159
  })
162
- }), /* @__PURE__ */ w("div", {
163
- className: c.subSectionActions,
164
- children: [K.numberOfFilesAvailableForDownloadAndEligibleForPackaging > 0 && /* @__PURE__ */ C(y, {
160
+ }), /* @__PURE__ */ C("div", {
161
+ className: s.subSectionActions,
162
+ children: [U.numberOfFilesAvailableForDownloadAndEligibleForPackaging > 0 && /* @__PURE__ */ S(v, {
165
163
  variant: "contained",
166
164
  onClick: () => {
167
- L(!0);
165
+ F(!0);
168
166
  },
169
- startIcon: /* @__PURE__ */ C(s, {
167
+ startIcon: /* @__PURE__ */ S(o, {
170
168
  icon: "download",
171
169
  wrap: !1
172
170
  }),
173
171
  children: "Download Packages"
174
- }), K.numberOfFilesAvailableForDownloadAndEligibleForPackaging == 0 && /* @__PURE__ */ C(b, {
172
+ }), U.numberOfFilesAvailableForDownloadAndEligibleForPackaging == 0 && /* @__PURE__ */ S(y, {
175
173
  title: "You cannot create a .zip package because there are no eligible files.",
176
174
  enterNextDelay: 300,
177
175
  placement: "top",
178
- children: /* @__PURE__ */ C("span", { children: /* @__PURE__ */ C(y, {
176
+ children: /* @__PURE__ */ S("span", { children: /* @__PURE__ */ S(v, {
179
177
  variant: "contained",
180
178
  disabled: !0,
181
- startIcon: /* @__PURE__ */ C(s, {
179
+ startIcon: /* @__PURE__ */ S(o, {
182
180
  icon: "download",
183
181
  wrap: !1
184
182
  }),
@@ -186,11 +184,11 @@ function A(u) {
186
184
  }) })
187
185
  })]
188
186
  })]
189
- }), /* @__PURE__ */ C(h, {
190
- component: /* @__PURE__ */ w(x, {
187
+ }), /* @__PURE__ */ S(m, {
188
+ component: /* @__PURE__ */ C(b, {
191
189
  variant: "body1",
192
190
  component: "div",
193
- children: ["Only some files may be eligible for packaging as ZIP. Use the Individual Downloads tab, below, to download non-packageable files.\xA0", /* @__PURE__ */ C("a", {
191
+ children: ["Only some files may be eligible for packaging as ZIP. Use the Individual Downloads tab, below, to download non-packageable files.\xA0", /* @__PURE__ */ S("a", {
194
192
  href: "https://help.synapse.org/docs/Downloading-Data-From-the-Synapse-UI.2004254837.html",
195
193
  target: "_blank",
196
194
  rel: "noopener noreferrer",
@@ -210,48 +208,48 @@ function A(u) {
210
208
  width: "25px",
211
209
  height: "25px"
212
210
  },
213
- children: /* @__PURE__ */ C(x, {
211
+ children: /* @__PURE__ */ S(b, {
214
212
  variant: "body1",
215
213
  component: "div",
216
214
  sx: { marginBottom: "15px" },
217
- children: /* @__PURE__ */ w("ul", { children: [
218
- /* @__PURE__ */ C("li", { children: "Files are bundled into .ZIPs up to 1 GB each." }),
219
- /* @__PURE__ */ C("li", { children: "Larger selections are split into multiple packages." }),
220
- /* @__PURE__ */ C("li", { children: "Includes only files stored in Synapse native storage." }),
221
- /* @__PURE__ */ C("li", { children: "Each package contains a CSV manifest with file annotations and metadata." })
215
+ children: /* @__PURE__ */ C("ul", { children: [
216
+ /* @__PURE__ */ S("li", { children: "Files are bundled into .ZIPs up to 1 GB each." }),
217
+ /* @__PURE__ */ S("li", { children: "Larger selections are split into multiple packages." }),
218
+ /* @__PURE__ */ S("li", { children: "Includes only files stored in Synapse native storage." }),
219
+ /* @__PURE__ */ S("li", { children: "Each package contains a CSV manifest with file annotations and metadata." })
222
220
  ] })
223
221
  })
224
222
  })]
225
223
  }),
226
- /* @__PURE__ */ w("div", {
227
- className: c.subSection,
228
- children: [/* @__PURE__ */ w("div", {
229
- className: c.subSectionHeader,
230
- children: [/* @__PURE__ */ C("div", {
231
- className: c.headline,
232
- children: /* @__PURE__ */ w(x, {
224
+ /* @__PURE__ */ C("div", {
225
+ className: s.subSection,
226
+ children: [/* @__PURE__ */ C("div", {
227
+ className: s.subSectionHeader,
228
+ children: [/* @__PURE__ */ S("div", {
229
+ className: s.headline,
230
+ children: /* @__PURE__ */ C(b, {
233
231
  variant: "headline3",
234
- children: [/* @__PURE__ */ C(s, { icon: "code" }), " Programmatic Download"]
232
+ children: [/* @__PURE__ */ S(o, { icon: "code" }), " Programmatic Download"]
235
233
  })
236
- }), /* @__PURE__ */ C("div", {
237
- className: c.subSectionActions,
238
- children: /* @__PURE__ */ C(y, {
234
+ }), /* @__PURE__ */ S("div", {
235
+ className: s.subSectionActions,
236
+ children: /* @__PURE__ */ S(v, {
239
237
  variant: "contained",
240
238
  onClick: () => {
241
- B(!0);
239
+ R(!0);
242
240
  },
243
- startIcon: /* @__PURE__ */ C(s, {
241
+ startIcon: /* @__PURE__ */ S(o, {
244
242
  icon: "download",
245
243
  wrap: !1
246
244
  }),
247
245
  children: "Get R / Python / CLI Code"
248
246
  })
249
247
  })]
250
- }), /* @__PURE__ */ C(h, {
251
- component: /* @__PURE__ */ w(x, {
248
+ }), /* @__PURE__ */ S(m, {
249
+ component: /* @__PURE__ */ C(b, {
252
250
  variant: "body1",
253
251
  component: "div",
254
- children: ["Use our Python, R, or command line clients to download files quickly.\xA0", /* @__PURE__ */ C("a", {
252
+ children: ["Use our Python, R, or command line clients to download files quickly.\xA0", /* @__PURE__ */ S("a", {
255
253
  href: "https://help.synapse.org/docs/Downloading-Data-Programmatically.2003796248.html",
256
254
  target: "_blank",
257
255
  rel: "noopener noreferrer",
@@ -271,43 +269,43 @@ function A(u) {
271
269
  width: "25px",
272
270
  height: "25px"
273
271
  },
274
- children: /* @__PURE__ */ C(x, {
272
+ children: /* @__PURE__ */ S(b, {
275
273
  variant: "body1",
276
274
  component: "div",
277
275
  sx: { marginBottom: "15px" },
278
- children: /* @__PURE__ */ w("ul", { children: [
279
- /* @__PURE__ */ C("li", { children: "Requires a client (R, Python, or CLI)." }),
280
- /* @__PURE__ */ C("li", { children: "No limits on individual file size or total download size." }),
281
- /* @__PURE__ */ C("li", { children: "Includes files stored both on and off Synapse native storage." }),
282
- /* @__PURE__ */ C("li", { children: "Downloads include a CSV manifest with file annotations and metadata." })
276
+ children: /* @__PURE__ */ C("ul", { children: [
277
+ /* @__PURE__ */ S("li", { children: "Requires a client (R, Python, or CLI)." }),
278
+ /* @__PURE__ */ S("li", { children: "No limits on individual file size or total download size." }),
279
+ /* @__PURE__ */ S("li", { children: "Includes files stored both on and off Synapse native storage." }),
280
+ /* @__PURE__ */ S("li", { children: "Downloads include a CSV manifest with file annotations and metadata." })
283
281
  ] })
284
282
  })
285
283
  })]
286
284
  }),
287
- G && K.numberOfFilesAvailableForDownloadAndEligibleForPackaging < K.numberOfFilesAvailableForDownload && /* @__PURE__ */ w("div", {
288
- className: c.subSection,
289
- children: [/* @__PURE__ */ w("div", {
290
- className: c.subSectionHeader,
291
- children: [/* @__PURE__ */ C("div", {
292
- className: c.headline,
293
- children: /* @__PURE__ */ w(x, {
285
+ U.numberOfFilesAvailableForDownloadAndEligibleForPackaging < U.numberOfFilesAvailableForDownload && /* @__PURE__ */ C("div", {
286
+ className: s.subSection,
287
+ children: [/* @__PURE__ */ C("div", {
288
+ className: s.subSectionHeader,
289
+ children: [/* @__PURE__ */ S("div", {
290
+ className: s.headline,
291
+ children: /* @__PURE__ */ C(b, {
294
292
  variant: "headline3",
295
- children: [/* @__PURE__ */ C(s, { icon: "multiFile" }), " Multi-file Download"]
293
+ children: [/* @__PURE__ */ S(o, { icon: "multiFile" }), " Multi-file Download"]
296
294
  })
297
- }), /* @__PURE__ */ C("div", {
298
- className: c.subSectionActions,
299
- children: /* @__PURE__ */ C("div", {
300
- className: c.ineligibleDownloadContainer,
301
- children: /* @__PURE__ */ C(p, {})
295
+ }), /* @__PURE__ */ S("div", {
296
+ className: s.subSectionActions,
297
+ children: /* @__PURE__ */ S("div", {
298
+ className: s.ineligibleDownloadContainer,
299
+ children: /* @__PURE__ */ S(f, {})
302
300
  })
303
301
  })]
304
- }), /* @__PURE__ */ C(h, {
305
- component: /* @__PURE__ */ w(x, {
302
+ }), /* @__PURE__ */ S(m, {
303
+ component: /* @__PURE__ */ C(b, {
306
304
  variant: "body1",
307
305
  component: "div",
308
306
  children: [
309
307
  "Files which ",
310
- /* @__PURE__ */ C("strong", { children: "aren't" }),
308
+ /* @__PURE__ */ S("strong", { children: "aren't" }),
311
309
  " included in a ZIP package may be downloaded as a multi-file download.\xA0"
312
310
  ]
313
311
  }),
@@ -324,14 +322,14 @@ function A(u) {
324
322
  width: "25px",
325
323
  height: "25px"
326
324
  },
327
- children: /* @__PURE__ */ w(x, {
325
+ children: /* @__PURE__ */ C(b, {
328
326
  variant: "body1",
329
327
  component: "div",
330
328
  sx: { marginBottom: "15px" },
331
329
  children: [
332
330
  "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.",
333
- /* @__PURE__ */ C("br", {}),
334
- /* @__PURE__ */ C("br", {}),
331
+ /* @__PURE__ */ S("br", {}),
332
+ /* @__PURE__ */ S("br", {}),
335
333
  "Note: in some browsers, files download individually to your default Downloads folder instead of a selected location."
336
334
  ]
337
335
  })
@@ -339,71 +337,71 @@ function A(u) {
339
337
  })
340
338
  ]
341
339
  }) }),
342
- /* @__PURE__ */ w("div", { children: [
343
- I && /* @__PURE__ */ C("div", {
344
- ref: R,
345
- children: /* @__PURE__ */ C(f, { onPackageCreation: () => {
346
- H(!0);
340
+ /* @__PURE__ */ C("div", { children: [
341
+ P && /* @__PURE__ */ S("div", {
342
+ ref: I,
343
+ children: /* @__PURE__ */ S(d, { onPackageCreation: () => {
344
+ B(!0);
347
345
  } })
348
346
  }),
349
- /* @__PURE__ */ C("h3", {
350
- className: `${c.sectionTitle} pageHeaderTitle`,
347
+ /* @__PURE__ */ S("h3", {
348
+ className: `${s.sectionTitle} pageHeaderTitle`,
351
349
  children: "Download Individual Files"
352
350
  }),
353
- /* @__PURE__ */ C("div", {
354
- className: c.tabsContainer,
355
- children: /* @__PURE__ */ w("ul", {
356
- className: c.navTabs,
357
- children: [/* @__PURE__ */ C("li", {
358
- className: c.navLabel,
351
+ /* @__PURE__ */ S("div", {
352
+ className: s.tabsContainer,
353
+ children: /* @__PURE__ */ C("ul", {
354
+ className: s.navTabs,
355
+ children: [/* @__PURE__ */ S("li", {
356
+ className: s.navLabel,
359
357
  children: "View:"
360
- }), k.map((e, t) => /* @__PURE__ */ C("li", {
361
- className: `${c.navItem}${N === t ? ` ${c.active}` : ""}`,
362
- "aria-selected": N === t,
363
- children: /* @__PURE__ */ w("button", {
364
- onClick: () => P(t),
365
- children: [e.label, !J && !q && K && /* @__PURE__ */ C("span", {
366
- className: c.fileCount,
367
- children: Z(K, e.filter)
358
+ }), D.map((e, t) => /* @__PURE__ */ S("li", {
359
+ className: `${s.navItem}${j === t ? ` ${s.active}` : ""}`,
360
+ "aria-selected": j === t,
361
+ children: /* @__PURE__ */ C("button", {
362
+ onClick: () => M(t),
363
+ children: [e.label, !G && !W && U && /* @__PURE__ */ S("span", {
364
+ className: s.fileCount,
365
+ children: J(U, e.filter)
368
366
  })]
369
367
  })
370
368
  }, e.label))]
371
369
  })
372
370
  }),
373
- /* @__PURE__ */ C("div", {
374
- className: c.availableForDownloadTableContainer,
375
- children: /* @__PURE__ */ C(d, { filter: F }, F ?? "all")
371
+ /* @__PURE__ */ S("div", {
372
+ className: s.availableForDownloadTableContainer,
373
+ children: /* @__PURE__ */ S(u, { filter: N }, N ?? "all")
376
374
  })
377
375
  ] })
378
376
  ]
379
- }), K.numberOfFilesAvailableForDownload === 0 && /* @__PURE__ */ C("div", {
380
- className: c.placeholder,
381
- children: /* @__PURE__ */ C(x, {
377
+ }), U.numberOfFilesAvailableForDownload === 0 && /* @__PURE__ */ S("div", {
378
+ className: s.placeholder,
379
+ children: /* @__PURE__ */ S(b, {
382
380
  variant: "body1Italic",
383
381
  children: "Your Download List is currently empty."
384
382
  })
385
383
  })] }),
386
- /* @__PURE__ */ C(e, {
387
- show: V,
384
+ /* @__PURE__ */ S(e, {
385
+ show: z,
388
386
  variant: "success",
389
387
  title: "Package Created",
390
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.",
391
389
  autoCloseAfterDelayInSeconds: 10,
392
390
  onClose: () => {
393
- H(!1);
391
+ B(!1);
394
392
  }
395
393
  }),
396
- z && /* @__PURE__ */ C(l, {
394
+ L && /* @__PURE__ */ S(c, {
397
395
  show: !0,
398
- onClose: () => B(!1),
396
+ onClose: () => R(!1),
399
397
  title: "Download Programmatically",
400
- pythonCode: D,
401
- cliCode: O
398
+ pythonCode: T,
399
+ cliCode: E
402
400
  })
403
401
  ]
404
402
  });
405
403
  }
406
404
  //#endregion
407
- export { A as DownloadCartPage, A as default };
405
+ export { O as DownloadCartPage, O as default };
408
406
 
409
407
  //# sourceMappingURL=DownloadCartPage.js.map