synapse-react-client 4.0.22 → 4.0.23

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 (99) hide show
  1. package/dist/SWC.index.js +1 -1
  2. package/dist/assets/icons/GeneticsIcon.d.ts +3 -0
  3. package/dist/assets/icons/GeneticsIcon.d.ts.map +1 -0
  4. package/dist/assets/icons/GeneticsIcon.js +14 -0
  5. package/dist/assets/icons/GeneticsIcon.js.map +1 -0
  6. package/dist/components/EntityCitation/EntityCitation.d.ts.map +1 -1
  7. package/dist/components/EntityCitation/EntityCitation.js +23 -8
  8. package/dist/components/EntityCitation/EntityCitation.js.map +1 -1
  9. package/dist/components/GenericCard/DuoTermTags/DuoTermTags.d.ts +18 -0
  10. package/dist/components/GenericCard/DuoTermTags/DuoTermTags.d.ts.map +1 -0
  11. package/dist/components/GenericCard/DuoTermTags/DuoTermTags.js +112 -0
  12. package/dist/components/GenericCard/DuoTermTags/DuoTermTags.js.map +1 -0
  13. package/dist/components/GenericCard/DuoTermTags/duoTerms.d.ts +31 -0
  14. package/dist/components/GenericCard/DuoTermTags/duoTerms.d.ts.map +1 -0
  15. package/dist/components/GenericCard/DuoTermTags/duoTerms.js +198 -0
  16. package/dist/components/GenericCard/DuoTermTags/duoTerms.js.map +1 -0
  17. package/dist/components/GenericCard/SynapseCardLabel.d.ts.map +1 -1
  18. package/dist/components/GenericCard/SynapseCardLabel.js +4 -8
  19. package/dist/components/GenericCard/SynapseCardLabel.js.map +1 -1
  20. package/dist/components/GenericCard/TableRowGenericCard.d.ts +6 -0
  21. package/dist/components/GenericCard/TableRowGenericCard.d.ts.map +1 -1
  22. package/dist/components/GenericCard/TableRowGenericCard.js +168 -153
  23. package/dist/components/GenericCard/TableRowGenericCard.js.map +1 -1
  24. package/dist/components/IconSvg/IconSvg.d.ts +1 -1
  25. package/dist/components/IconSvg/IconSvg.d.ts.map +1 -1
  26. package/dist/components/IconSvg/IconSvg.js +19 -18
  27. package/dist/components/IconSvg/IconSvg.js.map +1 -1
  28. package/dist/components/QueryVisualizationWrapper/QueryVisualizationContext.d.ts +21 -0
  29. package/dist/components/QueryVisualizationWrapper/QueryVisualizationContext.d.ts.map +1 -1
  30. package/dist/components/QueryVisualizationWrapper/QueryVisualizationContext.js.map +1 -1
  31. package/dist/components/QueryVisualizationWrapper/QueryVisualizationWrapper.d.ts +10 -0
  32. package/dist/components/QueryVisualizationWrapper/QueryVisualizationWrapper.d.ts.map +1 -1
  33. package/dist/components/QueryVisualizationWrapper/QueryVisualizationWrapper.js +65 -59
  34. package/dist/components/QueryVisualizationWrapper/QueryVisualizationWrapper.js.map +1 -1
  35. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts +1 -1
  36. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts.map +1 -1
  37. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js +2 -0
  38. package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js.map +1 -1
  39. package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.d.ts +33 -6
  40. package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.d.ts.map +1 -1
  41. package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js +93 -55
  42. package/dist/components/SearchQueryWrapper/SearchQueryUseQueryOptions.js.map +1 -1
  43. package/dist/components/SearchQueryWrapper/SearchQueryWrapper.d.ts +3 -0
  44. package/dist/components/SearchQueryWrapper/SearchQueryWrapper.d.ts.map +1 -1
  45. package/dist/components/SearchQueryWrapper/SearchQueryWrapper.js +39 -37
  46. package/dist/components/SearchQueryWrapper/SearchQueryWrapper.js.map +1 -1
  47. package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.d.ts +3 -1
  48. package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.d.ts.map +1 -1
  49. package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.js +4 -0
  50. package/dist/components/SearchQueryWrapperPlotNav/SearchQueryWrapperPlotNav.js.map +1 -1
  51. package/dist/components/entity/page/action_menu/EntityActionMenu.d.ts +5 -2
  52. package/dist/components/entity/page/action_menu/EntityActionMenu.d.ts.map +1 -1
  53. package/dist/components/entity/page/action_menu/EntityActionMenu.js +68 -51
  54. package/dist/components/entity/page/action_menu/EntityActionMenu.js.map +1 -1
  55. package/dist/components/index.d.ts +1 -0
  56. package/dist/components/index.d.ts.map +1 -1
  57. package/dist/components/menu/ComplexMenu.d.ts +8 -1
  58. package/dist/components/menu/ComplexMenu.d.ts.map +1 -1
  59. package/dist/components/menu/ComplexMenu.js +50 -20
  60. package/dist/components/menu/ComplexMenu.js.map +1 -1
  61. package/dist/components/widgets/facet-nav/FacetValueChip.d.ts +25 -0
  62. package/dist/components/widgets/facet-nav/FacetValueChip.d.ts.map +1 -0
  63. package/dist/components/widgets/facet-nav/FacetValueChip.js +40 -0
  64. package/dist/components/widgets/facet-nav/FacetValueChip.js.map +1 -0
  65. package/dist/components/widgets/facet-nav/SelectionCriteriaPill.d.ts +10 -5
  66. package/dist/components/widgets/facet-nav/SelectionCriteriaPill.d.ts.map +1 -1
  67. package/dist/components/widgets/facet-nav/SelectionCriteriaPill.js +10 -17
  68. package/dist/components/widgets/facet-nav/SelectionCriteriaPill.js.map +1 -1
  69. package/dist/components/widgets/facet-nav/SelectionCriteriaPills.d.ts.map +1 -1
  70. package/dist/components/widgets/facet-nav/SelectionCriteriaPills.js +11 -10
  71. package/dist/components/widgets/facet-nav/SelectionCriteriaPills.js.map +1 -1
  72. package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilter.d.ts.map +1 -1
  73. package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilter.js +70 -54
  74. package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilter.js.map +1 -1
  75. package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterOption.d.ts +2 -1
  76. package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterOption.d.ts.map +1 -1
  77. package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterOption.js +17 -1
  78. package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterOption.js.map +1 -1
  79. package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterUI.d.ts +2 -0
  80. package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterUI.d.ts.map +1 -1
  81. package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterUI.js +7 -7
  82. package/dist/components/widgets/query-filter/EnumFacetFilter/EnumFacetFilterUI.js.map +1 -1
  83. package/dist/features/curator/dashboard/components/CurationTaskCard.d.ts.map +1 -1
  84. package/dist/features/curator/dashboard/components/CurationTaskCard.js +99 -45
  85. package/dist/features/curator/dashboard/components/CurationTaskCard.js.map +1 -1
  86. package/dist/features/entity/metadata-task/components/CreateOrUpdateCurationTaskDialog.d.ts.map +1 -1
  87. package/dist/features/entity/metadata-task/components/CreateOrUpdateCurationTaskDialog.js +174 -149
  88. package/dist/features/entity/metadata-task/components/CreateOrUpdateCurationTaskDialog.js.map +1 -1
  89. package/dist/features/entity/metadata-task/utils/constants.d.ts +6 -0
  90. package/dist/features/entity/metadata-task/utils/constants.d.ts.map +1 -1
  91. package/dist/features/entity/metadata-task/utils/constants.js +19 -2
  92. package/dist/features/entity/metadata-task/utils/constants.js.map +1 -1
  93. package/dist/style/components/_total-query-results.scss +10 -34
  94. package/dist/style/main.css +1 -1
  95. package/dist/synapse-queries/curation/task/useCurationTask.d.ts.map +1 -1
  96. package/dist/synapse-queries/curation/task/useCurationTask.js +1 -1
  97. package/dist/synapse-queries/curation/task/useCurationTask.js.map +1 -1
  98. package/dist/tsconfig.build.tsbuildinfo +1 -1
  99. package/package.json +4 -4
@@ -7,82 +7,87 @@ import "../../../../components/ConfirmationDialog/index.js";
7
7
  import "../../../../components/ToastMessage/index.js";
8
8
  import i from "../../../../components/TextField/TextField.js";
9
9
  import "../../../../components/TextField/index.js";
10
- import te from "../../../../components/UserOrTeamBadge/UserOrTeamBadge.js";
10
+ import { StyledFormControl as te } from "../../../../components/styled/StyledFormControl.js";
11
+ import ne from "../../../../components/UserOrTeamBadge/UserOrTeamBadge.js";
11
12
  import a from "../../../../components/UserSearchBox/UserSearchBox.js";
12
13
  import { VersionSelectionType as o } from "../../../../components/EntityFinder/VersionSelectionType.js";
13
14
  import { FinderScope as s } from "../../../../components/EntityFinder/tree/EntityTree.js";
14
15
  import c from "../../../../components/WizardChoiceButton/WizardChoiceButton.js";
15
- import ne from "../../../../components/WizardChoiceButton/WizardChoiceButtonGroup.js";
16
- import { useCreateCurationTask as re, useDeleteCurationTask as ie, useUpdateCurationTask as ae } from "../../../../synapse-queries/curation/task/useCurationTask.js";
17
- import { ASSIGNEE_TOOLTIP as oe, AUTH_MODE_NONE_TITLE as se, AUTH_MODE_NONE_TOOLTIP as ce, AUTH_MODE_SESSION_OWNER_TITLE as le, AUTH_MODE_SESSION_OWNER_TOOLTIP as ue, AUTH_MODE_SOURCE_BENEFACTOR_TITLE as de, AUTH_MODE_SOURCE_BENEFACTOR_TOOLTIP as fe, COLLABORATORS_TOOLTIP as pe, CREATE_CURATION_TASK_DIALOG_TITLE as me, DELETE_CURATION_TASK_CONFIRMATION_PROMPT as he, DELETE_CURATION_TASK_DIALOG_TITLE as ge, DELETE_CURATION_TASK_ERROR_TOAST_PREFIX as _e, DELETE_CURATION_TASK_GRID_SESSION_WARNING as ve, DELETE_CURATION_TASK_SUCCESS_TOAST as ye, EDIT_CURATION_TASK_DIALOG_TITLE as be, FILE_BASED_FILE_VIEW_INPUT_DESCRIPTION as xe, FILE_BASED_TASK_DESCRIPTION as Se, FILE_BASED_TASK_TITLE as Ce, FILE_BASED_UPLOAD_FOLDER_INPUT_DESCRIPTION as we, FILE_VIEW_FINDER_PROMPT as Te, FILE_VIEW_FINDER_TITLE as Ee, RECORD_BASED_RECORD_SET_INPUT_DESCRIPTION as De, RECORD_BASED_TASK_DESCRIPTION as Oe, RECORD_BASED_TASK_TITLE as ke, RECORD_SET_FINDER_PROMPT as Ae, RECORD_SET_FINDER_TITLE as je, SELECT_TASK_TYPE_DESCRIPTION as Me, TASK_INSTRUCTIONS_INPUT_DESCRIPTION as Ne, TASK_NAME_INPUT_DESCRIPTION as Pe, UPLOAD_FOLDER_FINDER_PROMPT as Fe, UPLOAD_FOLDER_FINDER_TITLE as Ie } from "../utils/constants.js";
16
+ import re from "../../../../components/WizardChoiceButton/WizardChoiceButtonGroup.js";
17
+ import "../../../../components/styled/index.js";
18
+ import { useCreateCurationTask as ie, useDeleteCurationTask as ae, useGetCurationTaskStatus as oe, useUpdateCurationTask as se, useUpdateCurationTaskStatus as ce } from "../../../../synapse-queries/curation/task/useCurationTask.js";
19
+ import { ASSIGNEE_TOOLTIP as le, AUTH_MODE_NONE_TITLE as ue, AUTH_MODE_NONE_TOOLTIP as de, AUTH_MODE_SESSION_OWNER_TITLE as fe, AUTH_MODE_SESSION_OWNER_TOOLTIP as pe, AUTH_MODE_SOURCE_BENEFACTOR_TITLE as me, AUTH_MODE_SOURCE_BENEFACTOR_TOOLTIP as he, COLLABORATORS_TOOLTIP as ge, CREATE_CURATION_TASK_DIALOG_TITLE as _e, DELETE_CURATION_TASK_CONFIRMATION_PROMPT as ve, DELETE_CURATION_TASK_DIALOG_TITLE as ye, DELETE_CURATION_TASK_ERROR_TOAST_PREFIX as be, DELETE_CURATION_TASK_GRID_SESSION_WARNING as xe, DELETE_CURATION_TASK_SUCCESS_TOAST as Se, EDIT_CURATION_TASK_DIALOG_TITLE as Ce, FILE_BASED_FILE_VIEW_INPUT_DESCRIPTION as we, FILE_BASED_TASK_DESCRIPTION as Te, FILE_BASED_TASK_TITLE as Ee, FILE_BASED_UPLOAD_FOLDER_INPUT_DESCRIPTION as De, FILE_VIEW_FINDER_PROMPT as Oe, FILE_VIEW_FINDER_TITLE as ke, RECORD_BASED_RECORD_SET_INPUT_DESCRIPTION as Ae, RECORD_BASED_TASK_DESCRIPTION as je, RECORD_BASED_TASK_TITLE as Me, RECORD_SET_FINDER_PROMPT as Ne, RECORD_SET_FINDER_TITLE as Pe, SELECT_TASK_TYPE_DESCRIPTION as Fe, TASK_INSTRUCTIONS_INPUT_DESCRIPTION as Ie, TASK_NAME_INPUT_DESCRIPTION as Le, TASK_STATUS_CONFIG as Re, UPLOAD_FOLDER_FINDER_PROMPT as ze, UPLOAD_FOLDER_FINDER_TITLE as Be } from "../utils/constants.js";
18
20
  import l from "../../../../components/EntityFinder/EntityIdTextField.js";
19
21
  import { useState as u } from "react";
20
- import { Alert as d, Box as f, Button as p, FormControl as Le, FormControlLabel as m, FormLabel as Re, Grid as h, IconButton as ze, InputLabel as g, Radio as _, RadioGroup as Be, Stack as v, Tooltip as y, Typography as b } from "@mui/material";
22
+ import { Alert as d, Box as f, Button as p, FormControl as Ve, FormControlLabel as m, FormLabel as He, Grid as h, IconButton as Ue, InputLabel as g, MenuItem as We, Radio as _, RadioGroup as Ge, Select as Ke, Stack as v, Tooltip as y, Typography as b } from "@mui/material";
21
23
  import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
22
- import { TYPE_FILTER as Ve } from "@sage-bionetworks/synapse-types";
23
- import { EntityType as w, FileBasedMetadataTaskPropertiesConcreteTypeEnum as T, RecordBasedMetadataTaskPropertiesConcreteTypeEnum as E } from "@sage-bionetworks/synapse-client";
24
- import { HelpTwoTone as D } from "@mui/icons-material";
25
- import He from "lodash-es/noop";
26
- import Ue from "@mui/icons-material/Close";
24
+ import { TYPE_FILTER as w } from "@sage-bionetworks/synapse-types";
25
+ import { EntityType as T, FileBasedMetadataTaskPropertiesConcreteTypeEnum as E, RecordBasedMetadataTaskPropertiesConcreteTypeEnum as D, TaskStatusStateEnum as qe } from "@sage-bionetworks/synapse-client";
26
+ import { HelpTwoTone as O } from "@mui/icons-material";
27
+ import k from "lodash-es/noop";
28
+ import Je from "@mui/icons-material/Close";
27
29
  //#region src/features/entity/metadata-task/components/CreateOrUpdateCurationTaskDialog.tsx
28
- var O = T.org_sagebionetworks_repo_model_curation_metadata_FileBasedMetadataTaskProperties, k = E.org_sagebionetworks_repo_model_curation_metadata_RecordBasedMetadataTaskProperties;
29
- function We(e) {
30
+ var A = E.org_sagebionetworks_repo_model_curation_metadata_FileBasedMetadataTaskProperties, j = D.org_sagebionetworks_repo_model_curation_metadata_RecordBasedMetadataTaskProperties;
31
+ function Ye(e) {
30
32
  return e === "SESSION_OWNER" || e === "SOURCE_BENEFACTOR" ? e : "NONE";
31
33
  }
32
- function A(T) {
33
- let { open: E, onCancel: A, onSuccess: j, onDeleteSuccess: Ge = He, projectId: M, task: N } = T, P = N !== void 0, { data: Ke } = n(M), qe = Ke?.canDelete && P && N?.taskId != null && T.onDeleteSuccess != null, [Je, F] = u(!1), [I, L] = u(() => N ? "COMMON_MUTABLE_FIELDS" : "SELECT_TYPE"), [R, z] = u(() => {
34
- let e = N?.taskProperties?.concreteType;
35
- return e === O || e === k ? e : null;
36
- }), [B, Ye] = u(() => N?.dataType ?? ""), [V, Xe] = u(() => N?.instructions ?? ""), [H, Ze] = u(() => N?.assigneePrincipalId), U = We(N?.taskProperties?.suggestedAuthorizationMode), [W, Qe] = u(U), [$e] = u(U), [G, et] = u(() => {
37
- let e = N?.taskProperties;
38
- return e?.concreteType === O ? e.uploadFolderId ?? "" : "";
39
- }), [K, tt] = u(() => {
40
- let e = N?.taskProperties;
41
- return e?.concreteType === O ? e.fileViewId ?? "" : "";
42
- }), [q, nt] = u(() => {
43
- let e = N?.taskProperties;
44
- return e?.concreteType === k ? e.recordSetId ?? "" : "";
45
- }), [J, rt] = u(() => N?.taskProperties?.collaboratorPrincipalIds ?? []), [Y, it] = u(null), { mutate: at, isPending: ot, error: st } = re({ onSuccess: (e) => {
46
- j(e);
47
- } }), { mutate: ct, isPending: lt, error: ut } = ae({ onSuccess: (e) => {
48
- j(e);
49
- } }), { mutate: dt, isPending: ft } = ie({
34
+ function M(E) {
35
+ let { open: D, onCancel: M, onSuccess: N, onDeleteSuccess: Xe = k, projectId: P, task: F } = E, I = F !== void 0, { data: Ze } = n(P), Qe = Ze?.canDelete && I && F?.taskId != null && E.onDeleteSuccess != null, [$e, L] = u(!1), [R, z] = u(() => F ? "COMMON_MUTABLE_FIELDS" : "SELECT_TYPE"), [B, V] = u(() => {
36
+ let e = F?.taskProperties?.concreteType;
37
+ return e === A || e === j ? e : null;
38
+ }), [et, tt] = u(() => F?.dataType ?? ""), [nt, rt] = u(() => F?.instructions ?? ""), [it, at] = u(() => F?.assigneePrincipalId), ot = Ye(F?.taskProperties?.suggestedAuthorizationMode), [H, st] = u(ot), [ct] = u(ot), [U, lt] = u(() => {
39
+ let e = F?.taskProperties;
40
+ return e?.concreteType === A ? e.uploadFolderId ?? "" : "";
41
+ }), [W, ut] = u(() => {
42
+ let e = F?.taskProperties;
43
+ return e?.concreteType === A ? e.fileViewId ?? "" : "";
44
+ }), [G, dt] = u(() => {
45
+ let e = F?.taskProperties;
46
+ return e?.concreteType === j ? e.recordSetId ?? "" : "";
47
+ }), [K, ft] = u(() => F?.taskProperties?.collaboratorPrincipalIds ?? []), [q, pt] = u(null), { data: J, isFetching: mt } = oe(F?.taskId ?? 0, { enabled: I && F?.taskId != null }), [Y, ht] = u(void 0), gt = Y ?? J?.state, { mutateAsync: _t, isPending: vt, error: yt } = ie(), { mutateAsync: bt, isPending: xt, error: St } = se(), { mutateAsync: Ct, isPending: wt, error: Tt } = ce(), { mutate: Et, isPending: Dt } = ae({
50
48
  onSuccess: () => {
51
- e(ye, "success"), F(!1), Ge();
49
+ e(Se, "success"), L(!1), Xe();
52
50
  },
53
51
  onError: (t) => {
54
- e(_e + t.message, "danger");
52
+ e(be + t.message, "danger");
55
53
  }
56
- }), X = ot || lt || ft, Z = st ?? ut, pt = R === O && G && K || R === k && q;
57
- function mt() {
58
- let e = W === "NONE" ? void 0 : W, t = R, n, r = J.length > 0 ? J : void 0;
59
- return n = t === O ? {
60
- concreteType: O,
61
- uploadFolderId: G || void 0,
62
- fileViewId: K || void 0,
54
+ }), X = vt || xt || Dt || wt, Z = yt ?? St ?? Tt, Ot = B === A && U && W || B === j && G;
55
+ function kt() {
56
+ let e = H === "NONE" ? void 0 : H, t = B, n, r = K.length > 0 ? K : void 0;
57
+ return n = t === A ? {
58
+ concreteType: A,
59
+ uploadFolderId: U || void 0,
60
+ fileViewId: W || void 0,
63
61
  suggestedAuthorizationMode: e,
64
62
  collaboratorPrincipalIds: r
65
63
  } : {
66
- concreteType: k,
67
- recordSetId: q || void 0,
64
+ concreteType: j,
65
+ recordSetId: G || void 0,
68
66
  suggestedAuthorizationMode: e,
69
67
  collaboratorPrincipalIds: r
70
68
  }, {
71
- ...P ? N : {},
72
- projectId: M,
73
- dataType: B || void 0,
74
- instructions: V || void 0,
75
- assigneePrincipalId: H || void 0,
69
+ ...I ? F : {},
70
+ projectId: P,
71
+ dataType: et || void 0,
72
+ instructions: nt || void 0,
73
+ assigneePrincipalId: it || void 0,
76
74
  taskProperties: n
77
75
  };
78
76
  }
79
- function ht() {
80
- let e = mt();
81
- P ? ct(e) : at(e);
77
+ async function At() {
78
+ let e = kt();
79
+ if (I) {
80
+ let t = await bt(e);
81
+ Y !== void 0 && Y !== J?.state && J != null && await Ct({
82
+ ...J,
83
+ state: Y,
84
+ etag: t.etag
85
+ }), N(t);
86
+ } else N(await _t(e));
82
87
  }
83
- let gt = P && W !== $e, _t = /* @__PURE__ */ C(Le, { children: [/* @__PURE__ */ S(Re, { children: "Authorization Mode" }), /* @__PURE__ */ C(Be, {
84
- value: W,
85
- onChange: (e, t) => Qe(t),
88
+ let jt = I && H !== ct, Mt = /* @__PURE__ */ C(Ve, { children: [/* @__PURE__ */ S(He, { children: "Authorization Mode" }), /* @__PURE__ */ C(Ge, {
89
+ value: H,
90
+ onChange: (e, t) => st(t),
86
91
  children: [
87
92
  /* @__PURE__ */ S(m, {
88
93
  value: "NONE",
@@ -95,10 +100,10 @@ function A(T) {
95
100
  },
96
101
  children: [/* @__PURE__ */ S(b, {
97
102
  variant: "body1",
98
- children: se
103
+ children: ue
99
104
  }), /* @__PURE__ */ S(y, {
100
- title: ce,
101
- children: /* @__PURE__ */ S(D, { sx: { color: "grey.700" } })
105
+ title: de,
106
+ children: /* @__PURE__ */ S(O, { sx: { color: "grey.700" } })
102
107
  })]
103
108
  })
104
109
  }),
@@ -113,10 +118,10 @@ function A(T) {
113
118
  },
114
119
  children: [/* @__PURE__ */ S(b, {
115
120
  variant: "body1",
116
- children: le
121
+ children: fe
117
122
  }), /* @__PURE__ */ S(y, {
118
- title: ue,
119
- children: /* @__PURE__ */ S(D, { sx: { color: "grey.700" } })
123
+ title: pe,
124
+ children: /* @__PURE__ */ S(O, { sx: { color: "grey.700" } })
120
125
  })]
121
126
  })
122
127
  }),
@@ -131,15 +136,15 @@ function A(T) {
131
136
  },
132
137
  children: [/* @__PURE__ */ S(b, {
133
138
  variant: "body1",
134
- children: de
139
+ children: me
135
140
  }), /* @__PURE__ */ S(y, {
136
- title: fe,
137
- children: /* @__PURE__ */ S(D, { sx: { color: "grey.700" } })
141
+ title: he,
142
+ children: /* @__PURE__ */ S(O, { sx: { color: "grey.700" } })
138
143
  })]
139
144
  })
140
145
  })
141
146
  ]
142
- })] }), vt = /* @__PURE__ */ C(f, { children: [/* @__PURE__ */ C(f, {
147
+ })] }), Nt = /* @__PURE__ */ C(f, { children: [/* @__PURE__ */ C(f, {
143
148
  sx: {
144
149
  display: "flex",
145
150
  alignItems: "center",
@@ -149,33 +154,33 @@ function A(T) {
149
154
  htmlFor: "dlg-set-task-assignee",
150
155
  children: "Assignee"
151
156
  }), /* @__PURE__ */ S(y, {
152
- title: oe,
153
- children: /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(D, { sx: { color: "grey.700" } }) })
157
+ title: le,
158
+ children: /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(O, { sx: { color: "grey.700" } }) })
154
159
  })]
155
160
  }), /* @__PURE__ */ S(a, {
156
161
  inputId: "dlg-set-task-assignee",
157
- defaultValue: H,
158
- onChange: (e) => Ze(e ?? void 0),
159
- typeFilter: Ve.ALL
160
- }, E.toString())] }), yt = /* @__PURE__ */ C(v, {
162
+ defaultValue: it,
163
+ onChange: (e) => at(e ?? void 0),
164
+ typeFilter: w.ALL
165
+ }, D.toString())] }), Pt = /* @__PURE__ */ C(v, {
161
166
  gap: 2,
162
167
  children: [
163
168
  /* @__PURE__ */ S(i, {
164
169
  label: "Task Name",
165
170
  fullWidth: !0,
166
- value: B,
167
- onChange: (e) => Ye(e.target.value),
171
+ value: et,
172
+ onChange: (e) => tt(e.target.value),
168
173
  required: !0,
169
- description: Pe
174
+ description: Le
170
175
  }),
171
176
  /* @__PURE__ */ S(i, {
172
177
  label: "Instructions",
173
178
  fullWidth: !0,
174
179
  multiline: !0,
175
180
  minRows: 3,
176
- value: V,
177
- onChange: (e) => Xe(e.target.value),
178
- description: Ne
181
+ value: nt,
182
+ onChange: (e) => rt(e.target.value),
183
+ description: Ie
179
184
  }),
180
185
  /* @__PURE__ */ C(f, {
181
186
  display: "none",
@@ -186,8 +191,8 @@ function A(T) {
186
191
  gap: .5
187
192
  },
188
193
  children: [/* @__PURE__ */ S(g, { children: "Collaborators" }), /* @__PURE__ */ S(y, {
189
- title: pe,
190
- children: /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(D, { sx: { color: "grey.700" } }) })
194
+ title: ge,
195
+ children: /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(O, { sx: { color: "grey.700" } }) })
191
196
  })]
192
197
  }), /* @__PURE__ */ C(v, {
193
198
  gap: 1,
@@ -198,43 +203,43 @@ function A(T) {
198
203
  children: [/* @__PURE__ */ S(f, {
199
204
  flex: 1,
200
205
  children: /* @__PURE__ */ S(a, {
201
- value: Y,
202
- onChange: (e) => it(e),
203
- typeFilter: Ve.ALL,
206
+ value: q,
207
+ onChange: (e) => pt(e),
208
+ typeFilter: w.ALL,
204
209
  placeholder: "Search for a user or team"
205
210
  })
206
211
  }), /* @__PURE__ */ S(p, {
207
212
  variant: "outlined",
208
213
  onClick: () => {
209
- Y && !J.includes(Y) && rt((e) => [...e, Y]), it(null);
214
+ q && !K.includes(q) && ft((e) => [...e, q]), pt(null);
210
215
  },
211
- disabled: !Y,
216
+ disabled: !q,
212
217
  children: "Add"
213
218
  })]
214
- }), J.map((e) => /* @__PURE__ */ C(v, {
219
+ }), K.map((e) => /* @__PURE__ */ C(v, {
215
220
  direction: "row",
216
221
  alignItems: "center",
217
222
  justifyContent: "space-between",
218
- children: [/* @__PURE__ */ S(te, { principalId: e }), /* @__PURE__ */ S(ze, {
223
+ children: [/* @__PURE__ */ S(ne, { principalId: e }), /* @__PURE__ */ S(Ue, {
219
224
  size: "small",
220
- onClick: () => rt((t) => t.filter((t) => t !== e)),
221
- children: /* @__PURE__ */ S(Ue, { fontSize: "small" })
225
+ onClick: () => ft((t) => t.filter((t) => t !== e)),
226
+ children: /* @__PURE__ */ S(Je, { fontSize: "small" })
222
227
  })]
223
228
  }, e))]
224
229
  })]
225
230
  })
226
231
  ]
227
- }), bt = /* @__PURE__ */ C(v, {
232
+ }), Ft = /* @__PURE__ */ C(v, {
228
233
  gap: 2,
229
234
  children: [/* @__PURE__ */ S(l, {
230
235
  label: "Upload Folder ID",
231
- value: G,
232
- description: we,
233
- onChange: et,
234
- disabled: P,
236
+ value: U,
237
+ description: De,
238
+ onChange: lt,
239
+ disabled: I,
235
240
  entityFinderModalProps: {
236
- title: Ie,
237
- promptCopy: Fe,
241
+ title: Be,
242
+ promptCopy: ze,
238
243
  confirmButtonCopy: "Select",
239
244
  configuration: {
240
245
  initialScope: s.ALL_PROJECTS,
@@ -247,13 +252,13 @@ function A(T) {
247
252
  }
248
253
  }), /* @__PURE__ */ S(l, {
249
254
  label: "File View ID",
250
- value: K,
251
- description: xe,
252
- onChange: tt,
253
- disabled: P,
255
+ value: W,
256
+ description: we,
257
+ onChange: ut,
258
+ disabled: I,
254
259
  entityFinderModalProps: {
255
- title: Ee,
256
- promptCopy: Te,
260
+ title: ke,
261
+ promptCopy: Oe,
257
262
  confirmButtonCopy: "Select",
258
263
  configuration: {
259
264
  initialScope: s.ALL_PROJECTS,
@@ -261,19 +266,19 @@ function A(T) {
261
266
  selectMultiple: !1,
262
267
  treeOnly: !1,
263
268
  versionSelection: o.DISALLOWED,
264
- selectableTypes: [w.entityview]
269
+ selectableTypes: [T.entityview]
265
270
  }
266
271
  }
267
272
  })]
268
- }), xt = /* @__PURE__ */ S(l, {
273
+ }), It = /* @__PURE__ */ S(l, {
269
274
  label: "Record Set ID",
270
- value: q,
271
- description: De,
272
- onChange: nt,
273
- disabled: P,
275
+ value: G,
276
+ description: Ae,
277
+ onChange: dt,
278
+ disabled: I,
274
279
  entityFinderModalProps: {
275
- title: je,
276
- promptCopy: Ae,
280
+ title: Pe,
281
+ promptCopy: Ne,
277
282
  confirmButtonCopy: "Select",
278
283
  configuration: {
279
284
  initialScope: s.ALL_PROJECTS,
@@ -281,31 +286,31 @@ function A(T) {
281
286
  selectMultiple: !1,
282
287
  treeOnly: !1,
283
288
  versionSelection: o.DISALLOWED,
284
- selectableTypes: [w.recordset]
289
+ selectableTypes: [T.recordset]
285
290
  }
286
291
  }
287
- }), St = /* @__PURE__ */ C(v, {
292
+ }), Lt = /* @__PURE__ */ C(v, {
288
293
  gap: 2,
289
294
  children: [/* @__PURE__ */ S(b, {
290
295
  variant: "body1",
291
- children: Me
292
- }), /* @__PURE__ */ C(ne, { children: [/* @__PURE__ */ S(c, {
293
- title: Ce,
294
- description: Se,
296
+ children: Fe
297
+ }), /* @__PURE__ */ C(re, { children: [/* @__PURE__ */ S(c, {
298
+ title: Ee,
299
+ description: Te,
295
300
  onClick: () => {
296
- z(O), L("TYPE_SPECIFIC_FIELDS");
301
+ V(A), z("TYPE_SPECIFIC_FIELDS");
297
302
  }
298
303
  }), /* @__PURE__ */ S(c, {
299
- title: ke,
300
- description: Oe,
304
+ title: Me,
305
+ description: je,
301
306
  onClick: () => {
302
- z(k), L("TYPE_SPECIFIC_FIELDS");
307
+ V(j), z("TYPE_SPECIFIC_FIELDS");
303
308
  }
304
309
  })] })]
305
- }), Ct = /* @__PURE__ */ C(v, {
310
+ }), Rt = /* @__PURE__ */ C(v, {
306
311
  gap: 2,
307
- children: [R === O && bt, R === k && xt]
308
- }), wt = /* @__PURE__ */ C(v, {
312
+ children: [B === A && Ft, B === j && It]
313
+ }), zt = /* @__PURE__ */ C(v, {
309
314
  gap: 3,
310
315
  children: [
311
316
  /* @__PURE__ */ C(h, {
@@ -319,7 +324,7 @@ function A(T) {
319
324
  },
320
325
  children: /* @__PURE__ */ S(v, {
321
326
  gap: 2,
322
- children: yt
327
+ children: Pt
323
328
  })
324
329
  }), /* @__PURE__ */ S(h, {
325
330
  size: {
@@ -328,15 +333,35 @@ function A(T) {
328
333
  },
329
334
  children: /* @__PURE__ */ C(v, {
330
335
  gap: 3,
331
- children: [vt, _t]
336
+ children: [
337
+ I && /* @__PURE__ */ C(te, {
338
+ fullWidth: !0,
339
+ children: [/* @__PURE__ */ S(g, {
340
+ id: "dlg-task-status-label",
341
+ children: "Status"
342
+ }), /* @__PURE__ */ S(Ke, {
343
+ labelId: "dlg-task-status-label",
344
+ value: gt ?? "",
345
+ label: "Status",
346
+ disabled: mt || J == null,
347
+ onChange: (e) => ht(e.target.value),
348
+ children: Object.values(qe).map((e) => /* @__PURE__ */ S(We, {
349
+ value: e,
350
+ children: Re[e].label
351
+ }, e))
352
+ })]
353
+ }),
354
+ Nt,
355
+ Mt
356
+ ]
332
357
  })
333
358
  })]
334
359
  }),
335
- P && R === null && /* @__PURE__ */ S(d, {
360
+ I && B === null && /* @__PURE__ */ S(d, {
336
361
  severity: "error",
337
362
  children: "This task has an unrecognized task type and cannot be edited here."
338
363
  }),
339
- gt && /* @__PURE__ */ S(d, {
364
+ jt && /* @__PURE__ */ S(d, {
340
365
  severity: "warning",
341
366
  children: "Changing the Authorization Mode will clear the active session ID on this task. Any in-progress grid session linked to this task will no longer be associated with it."
342
367
  }),
@@ -345,56 +370,56 @@ function A(T) {
345
370
  children: Z.reason ?? "An error occurred. Please try again."
346
371
  })
347
372
  ]
348
- }), Tt = P ? be : me, Q = null;
349
- switch (I) {
373
+ }), Bt = I ? Ce : _e, Q = null;
374
+ switch (R) {
350
375
  case "SELECT_TYPE":
351
- Q = St;
376
+ Q = Lt;
352
377
  break;
353
378
  case "TYPE_SPECIFIC_FIELDS":
354
- Q = Ct;
379
+ Q = Rt;
355
380
  break;
356
381
  case "COMMON_MUTABLE_FIELDS":
357
- Q = wt;
382
+ Q = zt;
358
383
  break;
359
384
  }
360
385
  let $ = null;
361
- switch (I) {
386
+ switch (R) {
362
387
  case "SELECT_TYPE":
363
388
  $ = null;
364
389
  break;
365
390
  case "TYPE_SPECIFIC_FIELDS":
366
391
  $ = /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(p, {
367
392
  variant: "outlined",
368
- onClick: () => L("SELECT_TYPE"),
393
+ onClick: () => z("SELECT_TYPE"),
369
394
  disabled: X,
370
395
  children: "Back"
371
396
  }), /* @__PURE__ */ S(p, {
372
397
  variant: "contained",
373
- onClick: () => L("COMMON_MUTABLE_FIELDS"),
374
- disabled: X || !pt,
398
+ onClick: () => z("COMMON_MUTABLE_FIELDS"),
399
+ disabled: X || !Ot,
375
400
  children: "Next"
376
401
  })] });
377
402
  break;
378
403
  case "COMMON_MUTABLE_FIELDS":
379
- $ = /* @__PURE__ */ C(x, { children: [!P && /* @__PURE__ */ S(p, {
404
+ $ = /* @__PURE__ */ C(x, { children: [!I && /* @__PURE__ */ S(p, {
380
405
  variant: "outlined",
381
- onClick: () => L("TYPE_SPECIFIC_FIELDS"),
406
+ onClick: () => z("TYPE_SPECIFIC_FIELDS"),
382
407
  disabled: X,
383
408
  children: "Back"
384
409
  }), /* @__PURE__ */ S(p, {
385
410
  variant: "contained",
386
- onClick: ht,
387
- disabled: X || R === null,
411
+ onClick: () => void At().catch(k),
412
+ disabled: X || B === null,
388
413
  children: "Save"
389
414
  })] });
390
415
  break;
391
416
  }
392
417
  return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(r, {
393
- open: E,
394
- title: Tt,
418
+ open: D,
419
+ title: Bt,
395
420
  maxWidth: "md",
396
421
  fullWidth: !0,
397
- onCancel: A,
422
+ onCancel: M,
398
423
  content: Q,
399
424
  actions: /* @__PURE__ */ C(v, {
400
425
  direction: "row",
@@ -402,10 +427,10 @@ function A(T) {
402
427
  justifyContent: "space-between",
403
428
  alignItems: "center",
404
429
  width: "100%",
405
- children: [/* @__PURE__ */ S(f, { children: qe && /* @__PURE__ */ S(p, {
430
+ children: [/* @__PURE__ */ S(f, { children: Qe && /* @__PURE__ */ S(p, {
406
431
  variant: "outlined",
407
432
  color: "error",
408
- onClick: () => F(!0),
433
+ onClick: () => L(!0),
409
434
  disabled: X,
410
435
  children: "Delete"
411
436
  }) }), /* @__PURE__ */ S(v, {
@@ -415,30 +440,30 @@ function A(T) {
415
440
  })]
416
441
  })
417
442
  }), /* @__PURE__ */ S(ee, {
418
- title: ge,
419
- open: Je,
443
+ title: ye,
444
+ open: $e,
420
445
  content: /* @__PURE__ */ C(v, {
421
446
  gap: 2,
422
447
  children: [/* @__PURE__ */ S(b, {
423
448
  variant: "body1",
424
- children: he
449
+ children: ve
425
450
  }), /* @__PURE__ */ S(d, {
426
451
  severity: "warning",
427
- children: ve
452
+ children: xe
428
453
  })]
429
454
  }),
430
455
  confirmButtonProps: {
431
456
  children: "Delete",
432
457
  color: "error",
433
- loading: ft
458
+ loading: Dt
434
459
  },
435
460
  onConfirm: () => {
436
- N?.taskId != null && dt(N.taskId);
461
+ F?.taskId != null && Et(F.taskId);
437
462
  },
438
- onCancel: () => F(!1)
463
+ onCancel: () => L(!1)
439
464
  })] });
440
465
  }
441
466
  //#endregion
442
- export { A as default };
467
+ export { M as default };
443
468
 
444
469
  //# sourceMappingURL=CreateOrUpdateCurationTaskDialog.js.map