@natoora-libs/core 0.2.22-task-management → 0.2.22-task-management-v1

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.
@@ -350,6 +350,7 @@ __export(components_exports, {
350
350
  FilterOptionsCheckboxes: () => FilterOptionsCheckboxes,
351
351
  FilterSimpleSelector: () => FilterSimpleSelector_default,
352
352
  FixedFooter: () => FixedFooter_default,
353
+ HashtagInput: () => HashtagInput,
353
354
  Header: () => Header_default,
354
355
  IconChart: () => IconChart_default,
355
356
  IconCompare: () => IconCompare_default,
@@ -8664,9 +8665,9 @@ var TableDesktop = ({
8664
8665
  };
8665
8666
 
8666
8667
  // src/components/TableDesktopEditableField/TableDesktopEditableField.tsx
8667
- var import_react45 = require("react");
8668
+ var import_react48 = require("react");
8668
8669
  var import_Delete = __toESM(require("@mui/icons-material/Delete"), 1);
8669
- var import_material76 = require("@mui/material");
8670
+ var import_material77 = require("@mui/material");
8670
8671
  var import_x_date_pickers = require("@mui/x-date-pickers");
8671
8672
  var import_moment3 = __toESM(require("moment"), 1);
8672
8673
 
@@ -8778,10 +8779,159 @@ var TableDesktopSmartSelect = ({
8778
8779
  );
8779
8780
  };
8780
8781
 
8781
- // src/components/TableDesktopEditableField/TableDesktopTextField.tsx
8782
+ // src/components/TableDesktopEditableField/TableDesktopTagsField.tsx
8783
+ var import_react46 = require("react");
8784
+
8785
+ // src/components/HashtagInput/HashtagInput.tsx
8782
8786
  var import_react44 = require("react");
8783
8787
  var import_material75 = require("@mui/material");
8784
8788
  var import_jsx_runtime132 = require("react/jsx-runtime");
8789
+ var import_react45 = require("react");
8790
+ var HashtagInput = ({
8791
+ label,
8792
+ placeholder,
8793
+ variant,
8794
+ error,
8795
+ helperText,
8796
+ onCreateTag,
8797
+ onDeleteTag,
8798
+ ...props
8799
+ }) => {
8800
+ const { palette: palette2 } = (0, import_material75.useTheme)();
8801
+ const [inputValue, setInputValue] = (0, import_react44.useState)("");
8802
+ const sanitizeTag = (value) => {
8803
+ return value.toLowerCase().replace(/[^a-z0-9#]/g, "").trim();
8804
+ };
8805
+ const handleKeyDown = (event) => {
8806
+ if ((event.key === " " || event.key === "Enter") && inputValue) {
8807
+ event.preventDefault();
8808
+ event.stopPropagation();
8809
+ const cleaned = sanitizeTag(inputValue);
8810
+ if (!cleaned) return;
8811
+ onCreateTag?.(cleaned);
8812
+ setInputValue("");
8813
+ }
8814
+ };
8815
+ return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
8816
+ import_material75.Autocomplete,
8817
+ {
8818
+ ...props,
8819
+ multiple: true,
8820
+ freeSolo: true,
8821
+ fullWidth: true,
8822
+ disableClearable: true,
8823
+ value: props.value || [],
8824
+ options: [],
8825
+ inputValue: inputValue.toLocaleLowerCase(),
8826
+ onInputChange: (_event, newInputValue) => {
8827
+ setInputValue(sanitizeTag(newInputValue));
8828
+ },
8829
+ onChange: (_event, _newValue, reason, details) => {
8830
+ if (reason === "removeOption" && details?.option) {
8831
+ onDeleteTag?.(details.option);
8832
+ }
8833
+ },
8834
+ renderInput: (params) => /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
8835
+ import_material75.TextField,
8836
+ {
8837
+ ...params,
8838
+ label,
8839
+ placeholder,
8840
+ helperText,
8841
+ variant,
8842
+ error,
8843
+ onKeyDown: handleKeyDown
8844
+ }
8845
+ ),
8846
+ renderValue: (value, getTagProps) => value.map((option, index) => {
8847
+ return /* @__PURE__ */ (0, import_react45.createElement)(
8848
+ import_material75.Chip,
8849
+ {
8850
+ ...getTagProps({ index }),
8851
+ key: option.id,
8852
+ size: "small",
8853
+ label: `#${option.tag ?? option}`,
8854
+ sx: {
8855
+ paddingBlock: 0,
8856
+ color: palette2.primary.main,
8857
+ fontWeight: "bold",
8858
+ backgroundColor: (0, import_material75.alpha)(palette2.primary.main, 0.1)
8859
+ }
8860
+ }
8861
+ );
8862
+ })
8863
+ }
8864
+ );
8865
+ };
8866
+
8867
+ // src/components/TableDesktopEditableField/TableDesktopTagsField.tsx
8868
+ var import_jsx_runtime133 = require("react/jsx-runtime");
8869
+ var TableDesktopTagsField = ({
8870
+ initialValue,
8871
+ inputLabel,
8872
+ columnId,
8873
+ rowId,
8874
+ disabled,
8875
+ variant = "standard",
8876
+ size,
8877
+ onUpdateEditableCell
8878
+ }) => {
8879
+ const [error, setError] = (0, import_react46.useState)();
8880
+ const [values, setValues] = (0, import_react46.useState)([]);
8881
+ const validateTag = (tag) => {
8882
+ if (tag.length >= 30) {
8883
+ return false;
8884
+ }
8885
+ return true;
8886
+ };
8887
+ const handleManageTags = (tag, operation) => {
8888
+ const isRemoving = operation === "REMOVE";
8889
+ const isValid = validateTag(tag);
8890
+ if (!isValid) {
8891
+ setError("Tag must have at most 30 characters");
8892
+ return;
8893
+ }
8894
+ setError(null);
8895
+ const newTags = isRemoving ? values.filter((t) => t !== tag) : [...values, tag];
8896
+ setValues(newTags);
8897
+ };
8898
+ (0, import_react46.useEffect)(() => {
8899
+ setValues((initialValue ?? []).map((val) => val.tag));
8900
+ }, [initialValue]);
8901
+ return /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(import_jsx_runtime133.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
8902
+ HashtagInput,
8903
+ {
8904
+ label: inputLabel,
8905
+ variant,
8906
+ size,
8907
+ disabled,
8908
+ value: values,
8909
+ error: !!error,
8910
+ helperText: error,
8911
+ onCreateTag: (tagName) => {
8912
+ if (!tagName) return;
8913
+ handleManageTags(tagName, "ADD");
8914
+ },
8915
+ onDeleteTag: (tag) => {
8916
+ if (!tag) return;
8917
+ handleManageTags(tag, "REMOVE");
8918
+ },
8919
+ onBlur: () => {
8920
+ onUpdateEditableCell?.({
8921
+ rowId,
8922
+ columnId,
8923
+ value: values,
8924
+ label: values.join(", ")
8925
+ });
8926
+ }
8927
+ }
8928
+ ) });
8929
+ };
8930
+
8931
+ // src/components/TableDesktopEditableField/TableDesktopTextField.tsx
8932
+ var import_react47 = require("react");
8933
+ var import_material76 = require("@mui/material");
8934
+ var import_jsx_runtime134 = require("react/jsx-runtime");
8785
8935
  var TableDesktopTextField = ({
8786
8936
  rowId,
8787
8937
  initialValue,
@@ -8794,13 +8944,13 @@ var TableDesktopTextField = ({
8794
8944
  validateInput,
8795
8945
  onUpdateEditableCell
8796
8946
  }) => {
8797
- const [input, setInput] = (0, import_react44.useState)(initialValue);
8798
- const oldValue = (0, import_react44.useRef)(initialValue);
8799
- const isDirty = (0, import_react44.useMemo)(
8947
+ const [input, setInput] = (0, import_react47.useState)(initialValue);
8948
+ const oldValue = (0, import_react47.useRef)(initialValue);
8949
+ const isDirty = (0, import_react47.useMemo)(
8800
8950
  () => input !== oldValue.current,
8801
8951
  [input, oldValue.current]
8802
8952
  );
8803
- const hasValidationError = (0, import_react44.useMemo)(
8953
+ const hasValidationError = (0, import_react47.useMemo)(
8804
8954
  () => isDirty && validateInput && !validateInput(input),
8805
8955
  [input, validateInput]
8806
8956
  );
@@ -8818,8 +8968,8 @@ var TableDesktopTextField = ({
8818
8968
  commitValue(input);
8819
8969
  }
8820
8970
  };
8821
- return /* @__PURE__ */ (0, import_jsx_runtime132.jsx)(
8822
- import_material75.TextField,
8971
+ return /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
8972
+ import_material76.TextField,
8823
8973
  {
8824
8974
  fullWidth: true,
8825
8975
  variant,
@@ -8851,7 +9001,7 @@ var TableDesktopTextField = ({
8851
9001
  };
8852
9002
 
8853
9003
  // src/components/TableDesktopEditableField/TableDesktopEditableField.tsx
8854
- var import_jsx_runtime133 = require("react/jsx-runtime");
9004
+ var import_jsx_runtime135 = require("react/jsx-runtime");
8855
9005
  var TableDesktopEditableField = ({
8856
9006
  editInitialValue,
8857
9007
  rowId,
@@ -8872,8 +9022,8 @@ var TableDesktopEditableField = ({
8872
9022
  allowBlankSelectOption
8873
9023
  }
8874
9024
  }) => {
8875
- const [parsedFilterOptions, setParsedFilterOptions] = (0, import_react45.useState)();
8876
- (0, import_react45.useEffect)(() => {
9025
+ const [parsedFilterOptions, setParsedFilterOptions] = (0, import_react48.useState)();
9026
+ (0, import_react48.useEffect)(() => {
8877
9027
  if (filterOptions && editableCellType === "select" || editableCellType === "multipleSelect") {
8878
9028
  const parsedOptions = filterOptions?.map(
8879
9029
  (option) => ({
@@ -8885,7 +9035,7 @@ var TableDesktopEditableField = ({
8885
9035
  }
8886
9036
  }, [filterOptions, editableCellType]);
8887
9037
  const editableComponents = {
8888
- select: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
9038
+ select: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
8889
9039
  TableDesktopSmartSelect,
8890
9040
  {
8891
9041
  rowId,
@@ -8903,7 +9053,7 @@ var TableDesktopEditableField = ({
8903
9053
  onUpdateEditableCell
8904
9054
  }
8905
9055
  ),
8906
- multipleSelect: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
9056
+ multipleSelect: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
8907
9057
  TableDesktopSmartMultipleSelect,
8908
9058
  {
8909
9059
  rowId,
@@ -8920,12 +9070,12 @@ var TableDesktopEditableField = ({
8920
9070
  onUpdateEditableCell
8921
9071
  }
8922
9072
  ),
8923
- checkbox: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
8924
- import_material76.FormControlLabel,
9073
+ checkbox: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
9074
+ import_material77.FormControlLabel,
8925
9075
  {
8926
9076
  label: showCheckboxLabel ? inputLabel : "",
8927
- control: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
8928
- import_material76.Checkbox,
9077
+ control: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
9078
+ import_material77.Checkbox,
8929
9079
  {
8930
9080
  disableRipple: true,
8931
9081
  disabled,
@@ -8942,7 +9092,7 @@ var TableDesktopEditableField = ({
8942
9092
  )
8943
9093
  }
8944
9094
  ),
8945
- text: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
9095
+ text: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
8946
9096
  TableDesktopTextField,
8947
9097
  {
8948
9098
  type: "text",
@@ -8957,7 +9107,7 @@ var TableDesktopEditableField = ({
8957
9107
  onUpdateEditableCell
8958
9108
  }
8959
9109
  ),
8960
- numeric: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
9110
+ numeric: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
8961
9111
  TableDesktopTextField,
8962
9112
  {
8963
9113
  type: "numeric",
@@ -8972,7 +9122,7 @@ var TableDesktopEditableField = ({
8972
9122
  onUpdateEditableCell
8973
9123
  }
8974
9124
  ),
8975
- date: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
9125
+ date: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
8976
9126
  import_x_date_pickers.DatePicker,
8977
9127
  {
8978
9128
  defaultValue: editInitialValue ? (0, import_moment3.default)(editInitialValue, "HH:mm:ss") : void 0,
@@ -9001,7 +9151,7 @@ var TableDesktopEditableField = ({
9001
9151
  }
9002
9152
  }
9003
9153
  ),
9004
- time: /* @__PURE__ */ (0, import_jsx_runtime133.jsx)(
9154
+ time: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
9005
9155
  import_x_date_pickers.TimePicker,
9006
9156
  {
9007
9157
  defaultValue: editInitialValue ? (0, import_moment3.default)(editInitialValue, "HH:mm:ss") : void 0,
@@ -9027,6 +9177,18 @@ var TableDesktopEditableField = ({
9027
9177
  }
9028
9178
  }
9029
9179
  }
9180
+ ),
9181
+ tags: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
9182
+ TableDesktopTagsField,
9183
+ {
9184
+ initialValue: editInitialValue,
9185
+ inputLabel,
9186
+ variant,
9187
+ size,
9188
+ onUpdateEditableCell,
9189
+ rowId,
9190
+ columnId
9191
+ }
9030
9192
  )
9031
9193
  };
9032
9194
  if (!editableCellType) {
@@ -9037,8 +9199,8 @@ var TableDesktopEditableField = ({
9037
9199
 
9038
9200
  // src/components/TableDesktopFooter/TableDesktopFooter.tsx
9039
9201
  var import_Refresh = __toESM(require("@mui/icons-material/Refresh"), 1);
9040
- var import_material77 = require("@mui/material");
9041
- var import_jsx_runtime134 = require("react/jsx-runtime");
9202
+ var import_material78 = require("@mui/material");
9203
+ var import_jsx_runtime136 = require("react/jsx-runtime");
9042
9204
  var TableDesktopFooter = ({
9043
9205
  numPages,
9044
9206
  page,
@@ -9049,8 +9211,8 @@ var TableDesktopFooter = ({
9049
9211
  refetchData,
9050
9212
  isFetching
9051
9213
  }) => {
9052
- return /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(
9053
- import_material77.Box,
9214
+ return /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(
9215
+ import_material78.Box,
9054
9216
  {
9055
9217
  sx: {
9056
9218
  py: 1,
@@ -9061,8 +9223,8 @@ var TableDesktopFooter = ({
9061
9223
  borderTop: `1px solid ${colors.neutral300}`
9062
9224
  },
9063
9225
  children: [
9064
- refetchData ? /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
9065
- import_material77.Button,
9226
+ refetchData ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9227
+ import_material78.Button,
9066
9228
  {
9067
9229
  disableRipple: true,
9068
9230
  variant: "text",
@@ -9073,7 +9235,7 @@ var TableDesktopFooter = ({
9073
9235
  ml: 1,
9074
9236
  gap: 1
9075
9237
  },
9076
- children: /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
9238
+ children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9077
9239
  import_Refresh.default,
9078
9240
  {
9079
9241
  fontSize: "small",
@@ -9082,22 +9244,22 @@ var TableDesktopFooter = ({
9082
9244
  )
9083
9245
  }
9084
9246
  ) : null,
9085
- /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material77.Box, { sx: { display: "flex", ml: "auto", py: 1 }, children: [
9086
- pageSize && pageSizeOptions && onPageSizeChange ? /* @__PURE__ */ (0, import_jsx_runtime134.jsxs)(import_material77.Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
9087
- /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material77.Typography, { fontSize: 12, children: "Rows per page:" }),
9088
- /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
9089
- import_material77.Select,
9247
+ /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(import_material78.Box, { sx: { display: "flex", ml: "auto", py: 1 }, children: [
9248
+ pageSize && pageSizeOptions && onPageSizeChange ? /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(import_material78.Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
9249
+ /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(import_material78.Typography, { fontSize: 12, children: "Rows per page:" }),
9250
+ /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9251
+ import_material78.Select,
9090
9252
  {
9091
9253
  value: pageSize,
9092
9254
  onChange: onPageSizeChange,
9093
9255
  size: "small",
9094
9256
  variant: "standard",
9095
- children: pageSizeOptions.map((pageSizeOption) => /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(import_material77.MenuItem, { value: pageSizeOption, children: pageSizeOption }, pageSizeOption))
9257
+ children: pageSizeOptions.map((pageSizeOption) => /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(import_material78.MenuItem, { value: pageSizeOption, children: pageSizeOption }, pageSizeOption))
9096
9258
  }
9097
9259
  )
9098
9260
  ] }) : null,
9099
- /* @__PURE__ */ (0, import_jsx_runtime134.jsx)(
9100
- import_material77.Pagination,
9261
+ /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9262
+ import_material78.Pagination,
9101
9263
  {
9102
9264
  color: "standard",
9103
9265
  count: numPages,
@@ -9112,15 +9274,15 @@ var TableDesktopFooter = ({
9112
9274
  };
9113
9275
 
9114
9276
  // src/components/TableDesktopCell/TableDesktopCell.tsx
9115
- var import_react46 = require("react");
9277
+ var import_react49 = require("react");
9116
9278
  var import_Check3 = __toESM(require("@mui/icons-material/Check"), 1);
9117
9279
  var import_Close = __toESM(require("@mui/icons-material/Close"), 1);
9118
9280
  var import_Edit = __toESM(require("@mui/icons-material/Edit"), 1);
9119
- var import_material78 = require("@mui/material");
9120
- var import_jsx_runtime135 = require("react/jsx-runtime");
9281
+ var import_material79 = require("@mui/material");
9282
+ var import_jsx_runtime137 = require("react/jsx-runtime");
9121
9283
  var getReadOnlyBooleanIcon = (value) => {
9122
9284
  if (value) {
9123
- return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_Check3.default, { sx: { fontSize: 16 } });
9285
+ return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_Check3.default, { sx: { fontSize: 16 } });
9124
9286
  }
9125
9287
  return "-";
9126
9288
  };
@@ -9142,10 +9304,10 @@ var TableDesktopCell = ({
9142
9304
  onCellClick,
9143
9305
  headCell
9144
9306
  }) => {
9145
- const [isCellHovered, setIsCellHovered] = (0, import_react46.useState)(false);
9146
- const [isCellInEditMode, setIsCellInEditMode] = (0, import_react46.useState)(false);
9307
+ const [isCellHovered, setIsCellHovered] = (0, import_react49.useState)(false);
9308
+ const [isCellInEditMode, setIsCellInEditMode] = (0, import_react49.useState)(false);
9147
9309
  const { width, editableCellType } = headCell;
9148
- (0, import_react46.useEffect)(() => {
9310
+ (0, import_react49.useEffect)(() => {
9149
9311
  const handleKeyDown = (e) => {
9150
9312
  if (e.key === "Escape") {
9151
9313
  setIsCellInEditMode(false);
@@ -9163,8 +9325,8 @@ var TableDesktopCell = ({
9163
9325
  setIsCellInEditMode((prev) => !prev);
9164
9326
  };
9165
9327
  const isCellEditable = !!enableEditMode && !!editableCellType && !disabled;
9166
- return /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
9167
- import_material78.TableCell,
9328
+ return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9329
+ import_material79.TableCell,
9168
9330
  {
9169
9331
  align: "left",
9170
9332
  onMouseEnter: () => isCellEditable && setIsCellHovered(true),
@@ -9178,9 +9340,9 @@ var TableDesktopCell = ({
9178
9340
  ":hover": isCellEditable ? getCellBackgroundColor(isCellInEditMode) : void 0,
9179
9341
  background: enableEditMode && isCellInEditMode ? colors.lightBlueBackground : void 0
9180
9342
  },
9181
- children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(DynamicOverflowTooltip, { tooltipDescription: String(readOnlyValue), arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime135.jsxs)(import_jsx_runtime135.Fragment, { children: [
9182
- enableEditMode && isCellHovered ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_material78.Tooltip, { title: isCellInEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
9183
- import_material78.IconButton,
9343
+ children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(DynamicOverflowTooltip, { tooltipDescription: String(readOnlyValue), arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime137.jsxs)(import_jsx_runtime137.Fragment, { children: [
9344
+ enableEditMode && isCellHovered ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_material79.Tooltip, { title: isCellInEditMode ? "" : "Toggle Edit Mode", children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9345
+ import_material79.IconButton,
9184
9346
  {
9185
9347
  onClick: handleEditClick,
9186
9348
  sx: {
@@ -9194,10 +9356,10 @@ var TableDesktopCell = ({
9194
9356
  backgroundColor: isCellInEditMode ? colors.lightBlueBackground : colors.neutral150
9195
9357
  }
9196
9358
  },
9197
- children: isCellInEditMode ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_Close.default, { fontSize: "small", color: "error" }) : /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(import_Edit.default, { fontSize: "small" })
9359
+ children: isCellInEditMode ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_Close.default, { fontSize: "small", color: "error" }) : /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_Edit.default, { fontSize: "small" })
9198
9360
  }
9199
9361
  ) }) : null,
9200
- enableEditMode && isCellInEditMode && editableCellType ? /* @__PURE__ */ (0, import_jsx_runtime135.jsx)(
9362
+ enableEditMode && isCellInEditMode && editableCellType ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9201
9363
  TableDesktopEditableField,
9202
9364
  {
9203
9365
  editInitialValue,
@@ -9213,12 +9375,12 @@ var TableDesktopCell = ({
9213
9375
  };
9214
9376
 
9215
9377
  // src/components/TableDesktopToolbar/TableDesktopToolbar.tsx
9216
- var import_react47 = require("react");
9378
+ var import_react50 = require("react");
9217
9379
  var import_Download = __toESM(require("@mui/icons-material/Download"), 1);
9218
9380
  var import_KeyboardArrowLeft2 = __toESM(require("@mui/icons-material/KeyboardArrowLeft"), 1);
9219
9381
  var import_KeyboardArrowRight2 = __toESM(require("@mui/icons-material/KeyboardArrowRight"), 1);
9220
- var import_material79 = require("@mui/material");
9221
- var import_jsx_runtime136 = require("react/jsx-runtime");
9382
+ var import_material80 = require("@mui/material");
9383
+ var import_jsx_runtime138 = require("react/jsx-runtime");
9222
9384
  var TableDesktopToolbar = ({
9223
9385
  toolbarLabel,
9224
9386
  headCells,
@@ -9241,12 +9403,12 @@ var TableDesktopToolbar = ({
9241
9403
  renderTableColumnConfigurationMenu,
9242
9404
  renderInfoIcons
9243
9405
  }) => {
9244
- const scrollRef = (0, import_react47.useRef)(null);
9245
- const [bulkChanges, setBulkChanges] = (0, import_react47.useState)([]);
9246
- const [isBulkChangesDialogOpen, setIsBulkChangesDialogOpen] = (0, import_react47.useState)(false);
9247
- const [isExportCsvDialogOpen, setIsExportCsvDialogOpen] = (0, import_react47.useState)(false);
9248
- const [resetCounter, setResetCounter] = (0, import_react47.useState)(0);
9249
- const visibleEditableColumns = (0, import_react47.useMemo)(
9406
+ const scrollRef = (0, import_react50.useRef)(null);
9407
+ const [bulkChanges, setBulkChanges] = (0, import_react50.useState)([]);
9408
+ const [isBulkChangesDialogOpen, setIsBulkChangesDialogOpen] = (0, import_react50.useState)(false);
9409
+ const [isExportCsvDialogOpen, setIsExportCsvDialogOpen] = (0, import_react50.useState)(false);
9410
+ const [resetCounter, setResetCounter] = (0, import_react50.useState)(0);
9411
+ const visibleEditableColumns = (0, import_react50.useMemo)(
9250
9412
  () => headCells.filter(
9251
9413
  (headCell) => headCell?.enabled && !!headCell?.editableCellType
9252
9414
  ),
@@ -9272,8 +9434,8 @@ var TableDesktopToolbar = ({
9272
9434
  return [...prev, { field: columnId, value, label }];
9273
9435
  });
9274
9436
  };
9275
- return /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(
9276
- import_material79.Box,
9437
+ return /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(
9438
+ import_material80.Box,
9277
9439
  {
9278
9440
  sx: {
9279
9441
  borderBottom: "1px solid",
@@ -9281,8 +9443,8 @@ var TableDesktopToolbar = ({
9281
9443
  maxWidth: "100%"
9282
9444
  },
9283
9445
  children: [
9284
- /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(
9285
- import_material79.Box,
9446
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(
9447
+ import_material80.Box,
9286
9448
  {
9287
9449
  sx: {
9288
9450
  py: 1,
@@ -9293,8 +9455,8 @@ var TableDesktopToolbar = ({
9293
9455
  background: isBulkChangesMode ? colors.neutral150 : void 0
9294
9456
  },
9295
9457
  children: [
9296
- /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(
9297
- import_material79.Box,
9458
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(
9459
+ import_material80.Box,
9298
9460
  {
9299
9461
  sx: {
9300
9462
  py: 1,
@@ -9304,21 +9466,21 @@ var TableDesktopToolbar = ({
9304
9466
  whiteSpace: "nowrap"
9305
9467
  },
9306
9468
  children: [
9307
- toolbarLabel ? /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(import_jsx_runtime136.Fragment, { children: [
9308
- /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(import_material79.Typography, { variant: "subtitle2", color: "textSecondary", children: toolbarLabel }),
9309
- /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(import_material79.Divider, { orientation: "vertical", sx: { height: 0.75, py: 2.5 } })
9469
+ toolbarLabel ? /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(import_jsx_runtime138.Fragment, { children: [
9470
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_material80.Typography, { variant: "subtitle2", color: "textSecondary", children: toolbarLabel }),
9471
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_material80.Divider, { orientation: "vertical", sx: { height: 0.75, py: 2.5 } })
9310
9472
  ] }) : null,
9311
- renderBulkChangesDialog && refetchData ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9312
- import_material79.Tooltip,
9473
+ renderBulkChangesDialog && refetchData ? /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
9474
+ import_material80.Tooltip,
9313
9475
  {
9314
9476
  title: disableBulkChangesMode ? "Access denied, you don\u2019t have permission to use this feature." : "",
9315
- children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9316
- import_material79.FormControlLabel,
9477
+ children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
9478
+ import_material80.FormControlLabel,
9317
9479
  {
9318
9480
  label: "Bulk Changes Mode",
9319
9481
  disabled: disableBulkChangesMode || !visibleEditableColumns.length,
9320
- control: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9321
- import_material79.Switch,
9482
+ control: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
9483
+ import_material80.Switch,
9322
9484
  {
9323
9485
  size: "small",
9324
9486
  "aria-label": "bulk-changes-mode-switch",
@@ -9332,17 +9494,17 @@ var TableDesktopToolbar = ({
9332
9494
  ]
9333
9495
  }
9334
9496
  ),
9335
- isScrollable && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9336
- import_material79.IconButton,
9497
+ isScrollable && /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
9498
+ import_material80.IconButton,
9337
9499
  {
9338
9500
  "aria-label": "scroll-left",
9339
9501
  sx: { padding: 0, alignSelf: "center" },
9340
9502
  onClick: () => scroll("left"),
9341
- children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(import_KeyboardArrowLeft2.default, {})
9503
+ children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_KeyboardArrowLeft2.default, {})
9342
9504
  }
9343
9505
  ),
9344
- /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9345
- import_material79.Box,
9506
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
9507
+ import_material80.Box,
9346
9508
  {
9347
9509
  ref: scrollRef,
9348
9510
  sx: {
@@ -9359,12 +9521,15 @@ var TableDesktopToolbar = ({
9359
9521
  }
9360
9522
  },
9361
9523
  children: isBulkChangesMode ? visibleEditableColumns.map((headCell) => {
9362
- const { id, width, editableCellType } = headCell;
9363
- return editableCellType && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9364
- import_material79.Box,
9524
+ const { id, width, editableCellType, bulkUpdateDisabled } = headCell;
9525
+ if (bulkUpdateDisabled) {
9526
+ return null;
9527
+ }
9528
+ return editableCellType && /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
9529
+ import_material80.Box,
9365
9530
  {
9366
9531
  sx: { width, flex: "0 0 auto" },
9367
- children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9532
+ children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
9368
9533
  TableDesktopEditableField,
9369
9534
  {
9370
9535
  headCell,
@@ -9380,18 +9545,18 @@ var TableDesktopToolbar = ({
9380
9545
  }) : null
9381
9546
  }
9382
9547
  ),
9383
- isScrollable && /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9384
- import_material79.IconButton,
9548
+ isScrollable && /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
9549
+ import_material80.IconButton,
9385
9550
  {
9386
9551
  "aria-label": "scroll-right",
9387
9552
  sx: { p: 0, alignSelf: "center" },
9388
9553
  onClick: () => scroll("right"),
9389
- children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(import_KeyboardArrowRight2.default, {})
9554
+ children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_KeyboardArrowRight2.default, {})
9390
9555
  }
9391
9556
  ),
9392
- isBulkChangesMode ? /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(import_jsx_runtime136.Fragment, { children: [
9393
- /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9394
- import_material79.Button,
9557
+ isBulkChangesMode ? /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(import_jsx_runtime138.Fragment, { children: [
9558
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
9559
+ import_material80.Button,
9395
9560
  {
9396
9561
  variant: "outlined",
9397
9562
  sx: { borderRadius: 25, alignSelf: "center" },
@@ -9403,8 +9568,8 @@ var TableDesktopToolbar = ({
9403
9568
  children: "RESET"
9404
9569
  }
9405
9570
  ),
9406
- /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9407
- import_material79.Button,
9571
+ /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
9572
+ import_material80.Button,
9408
9573
  {
9409
9574
  variant: "contained",
9410
9575
  "aria-label": "bulk-changes-apply-button",
@@ -9414,26 +9579,26 @@ var TableDesktopToolbar = ({
9414
9579
  children: "APPLY"
9415
9580
  }
9416
9581
  )
9417
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime136.jsxs)(import_material79.Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
9582
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(import_material80.Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
9418
9583
  renderInfoIcons,
9419
- renderExportCsvDialog ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(import_material79.Tooltip, { title: "Download List", children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9420
- import_material79.IconButton,
9584
+ renderExportCsvDialog ? /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_material80.Tooltip, { title: "Download List", children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
9585
+ import_material80.IconButton,
9421
9586
  {
9422
9587
  disableRipple: true,
9423
9588
  disabled: isDataEmpty,
9424
9589
  "aria-label": "export-csv-button",
9425
9590
  onClick: () => setIsExportCsvDialogOpen(true),
9426
- children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(import_Download.default, { fill: colors.neutral750 })
9591
+ children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_Download.default, { fill: colors.neutral750 })
9427
9592
  }
9428
9593
  ) }) }) : null,
9429
- renderTableColumnConfigurationMenu ? /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(import_material79.Tooltip, { title: "Table Column Configuration", children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(
9430
- import_material79.IconButton,
9594
+ renderTableColumnConfigurationMenu ? /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_material80.Tooltip, { title: "Table Column Configuration", children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
9595
+ import_material80.IconButton,
9431
9596
  {
9432
9597
  disableRipple: true,
9433
9598
  "aria-label": "table-column-config-button",
9434
9599
  ref: tableToolbarMenuButtonRef,
9435
9600
  onClick: onClickToolbarMenuOpen,
9436
- children: /* @__PURE__ */ (0, import_jsx_runtime136.jsx)(IconTableEdit_default, { fill: colors.neutral750 })
9601
+ children: /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(IconTableEdit_default, { fill: colors.neutral750 })
9437
9602
  }
9438
9603
  ) }) : null
9439
9604
  ] })
@@ -9466,11 +9631,11 @@ var TableDesktopToolbar = ({
9466
9631
  };
9467
9632
 
9468
9633
  // src/components/TableHeader/TableHeader.tsx
9469
- var import_react48 = require("react");
9634
+ var import_react51 = require("react");
9470
9635
  var import_icons_material9 = require("@mui/icons-material");
9471
- var import_material80 = require("@mui/material");
9636
+ var import_material81 = require("@mui/material");
9472
9637
  var import_mui53 = require("tss-react/mui");
9473
- var import_jsx_runtime137 = require("react/jsx-runtime");
9638
+ var import_jsx_runtime139 = require("react/jsx-runtime");
9474
9639
  var useStyles47 = (0, import_mui53.makeStyles)()(() => ({
9475
9640
  sortLabel: {
9476
9641
  "& .MuiTableSortLabel-icon": {
@@ -9479,9 +9644,9 @@ var useStyles47 = (0, import_mui53.makeStyles)()(() => ({
9479
9644
  }
9480
9645
  }));
9481
9646
  var TableHeader = ({ cells, onSort = null }) => {
9482
- const [sortableCells, setSortableCells] = (0, import_react48.useState)([]);
9647
+ const [sortableCells, setSortableCells] = (0, import_react51.useState)([]);
9483
9648
  const { classes } = useStyles47();
9484
- (0, import_react48.useEffect)(() => {
9649
+ (0, import_react51.useEffect)(() => {
9485
9650
  setSortableCells(cells);
9486
9651
  }, []);
9487
9652
  const getNewSortDirection = (direction) => {
@@ -9515,8 +9680,8 @@ var TableHeader = ({ cells, onSort = null }) => {
9515
9680
  });
9516
9681
  setSortableCells(sortedCells);
9517
9682
  };
9518
- return /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_material80.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_material80.TableRow, { children: sortableCells.map((cell, key) => /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(import_material80.TableCell, { children: cell.isSortable ? /* @__PURE__ */ (0, import_jsx_runtime137.jsx)(
9519
- import_material80.TableSortLabel,
9683
+ return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(import_material81.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(import_material81.TableRow, { children: sortableCells.map((cell, key) => /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(import_material81.TableCell, { children: cell.isSortable ? /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(
9684
+ import_material81.TableSortLabel,
9520
9685
  {
9521
9686
  className: classes.sortLabel,
9522
9687
  direction: cell?.direction || "asc",
@@ -9526,12 +9691,12 @@ var TableHeader = ({ cells, onSort = null }) => {
9526
9691
  }
9527
9692
  ) : cell.label }, cell.label || key)) }) });
9528
9693
  };
9529
- var TableHeader_default = (0, import_react48.memo)(TableHeader);
9694
+ var TableHeader_default = (0, import_react51.memo)(TableHeader);
9530
9695
 
9531
9696
  // src/components/TextDivider/TextDivider.tsx
9532
- var import_material81 = require("@mui/material");
9697
+ var import_material82 = require("@mui/material");
9533
9698
  var import_mui54 = require("tss-react/mui");
9534
- var import_jsx_runtime138 = require("react/jsx-runtime");
9699
+ var import_jsx_runtime140 = require("react/jsx-runtime");
9535
9700
  var useStyles48 = (0, import_mui54.makeStyles)()(() => ({
9536
9701
  icon: {
9537
9702
  fontSize: 20
@@ -9568,19 +9733,19 @@ var TextDivider = ({
9568
9733
  }) => {
9569
9734
  const { classes } = useStyles48();
9570
9735
  const iconColor = color ?? colors.neutral900;
9571
- return /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(
9572
- import_material81.Box,
9736
+ return /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(
9737
+ import_material82.Box,
9573
9738
  {
9574
9739
  display: "flex",
9575
9740
  alignItems: "center",
9576
9741
  justifyContent: "space-between",
9577
9742
  className: classes.container,
9578
9743
  children: [
9579
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_material81.Divider, { className: classes.leftDivider }),
9580
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_material81.Button, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ (0, import_jsx_runtime138.jsxs)(import_material81.Box, { className: classes.center, children: [
9581
- Icon2 && iconPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } }),
9582
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(
9583
- import_material81.Typography,
9744
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material82.Divider, { className: classes.leftDivider }),
9745
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material82.Button, { onClick, disabled: !onClick, className: classes.button, children: /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_material82.Box, { className: classes.center, children: [
9746
+ Icon2 && iconPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } }),
9747
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
9748
+ import_material82.Typography,
9584
9749
  {
9585
9750
  color: "textSecondary",
9586
9751
  className: classes.title,
@@ -9588,9 +9753,9 @@ var TextDivider = ({
9588
9753
  children: title
9589
9754
  }
9590
9755
  ),
9591
- Icon2 && iconPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } })
9756
+ Icon2 && iconPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(Icon2, { className: classes.icon, style: { color: iconColor } })
9592
9757
  ] }) }),
9593
- /* @__PURE__ */ (0, import_jsx_runtime138.jsx)(import_material81.Divider, { className: classes.rightDivider })
9758
+ /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material82.Divider, { className: classes.rightDivider })
9594
9759
  ]
9595
9760
  }
9596
9761
  );
@@ -9602,7 +9767,7 @@ var import_react_dates = require("react-dates");
9602
9767
  var import_mui55 = require("tss-react/mui");
9603
9768
  var import_initialize = require("react-dates/initialize");
9604
9769
  var import_datepicker = require("react-dates/lib/css/_datepicker.css");
9605
- var import_jsx_runtime139 = require("react/jsx-runtime");
9770
+ var import_jsx_runtime141 = require("react/jsx-runtime");
9606
9771
  var useStyles49 = (0, import_mui55.makeStyles)()((theme) => ({
9607
9772
  wrapper: {
9608
9773
  "& .DateRangePicker": {
@@ -9698,15 +9863,15 @@ var ThemedDateRangePicker = ({
9698
9863
  ...props
9699
9864
  }) => {
9700
9865
  const { classes, cx } = useStyles49();
9701
- return /* @__PURE__ */ (0, import_jsx_runtime139.jsx)("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ (0, import_jsx_runtime139.jsx)(import_react_dates.DateRangePicker, { ...props }) });
9866
+ return /* @__PURE__ */ (0, import_jsx_runtime141.jsx)("div", { className: cx(classes.wrapper, className), children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(import_react_dates.DateRangePicker, { ...props }) });
9702
9867
  };
9703
9868
  var ThemedDateRangePicker_default = ThemedDateRangePicker;
9704
9869
 
9705
9870
  // src/components/TheToolbar/TheToolbar.tsx
9706
- var import_react49 = require("react");
9707
- var import_material82 = require("@mui/material");
9871
+ var import_react52 = require("react");
9872
+ var import_material83 = require("@mui/material");
9708
9873
  var import_mui56 = require("tss-react/mui");
9709
- var import_jsx_runtime140 = require("react/jsx-runtime");
9874
+ var import_jsx_runtime142 = require("react/jsx-runtime");
9710
9875
  var useStyles50 = (0, import_mui56.makeStyles)()((theme) => ({
9711
9876
  menuButton: {
9712
9877
  color: theme.palette.primary.contrastText
@@ -9727,9 +9892,9 @@ var TheToolbar = ({
9727
9892
  isAuthenticated = true
9728
9893
  }) => {
9729
9894
  const { classes } = useStyles50();
9730
- return /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_material82.Box, { children: [
9731
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material82.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime140.jsxs)(import_material82.Toolbar, { className: classes.topBar, children: [
9732
- isAuthenticated ? /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
9895
+ return /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material83.Box, { children: [
9896
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material83.AppBar, { children: /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material83.Toolbar, { className: classes.topBar, children: [
9897
+ isAuthenticated ? /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
9733
9898
  RoundButton_default,
9734
9899
  {
9735
9900
  className: classes.menuButton,
@@ -9738,7 +9903,7 @@ var TheToolbar = ({
9738
9903
  onClick: handleOpen
9739
9904
  }
9740
9905
  ) : null,
9741
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(
9906
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
9742
9907
  CompanyLogo_default,
9743
9908
  {
9744
9909
  size: "small",
@@ -9747,31 +9912,31 @@ var TheToolbar = ({
9747
9912
  imageLogoLightSmall
9748
9913
  }
9749
9914
  ),
9750
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material82.Box, { ml: 2, children: leftSection }),
9751
- /* @__PURE__ */ (0, import_jsx_runtime140.jsx)(import_material82.Box, { ml: "auto", children: rightSection })
9915
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material83.Box, { ml: 2, children: leftSection }),
9916
+ /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material83.Box, { ml: "auto", children: rightSection })
9752
9917
  ] }) }),
9753
9918
  LeftDrawer
9754
9919
  ] });
9755
9920
  };
9756
- var TheToolbar_default = (0, import_react49.memo)(TheToolbar);
9921
+ var TheToolbar_default = (0, import_react52.memo)(TheToolbar);
9757
9922
 
9758
9923
  // src/components/ToastMessage/ToastMessage.tsx
9759
- var import_material83 = require("@mui/material");
9760
- var import_jsx_runtime141 = require("react/jsx-runtime");
9924
+ var import_material84 = require("@mui/material");
9925
+ var import_jsx_runtime143 = require("react/jsx-runtime");
9761
9926
  var ToastMessage = ({
9762
9927
  toastType,
9763
9928
  toastMessage,
9764
9929
  open,
9765
9930
  onClose
9766
- }) => /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
9767
- import_material83.Snackbar,
9931
+ }) => /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
9932
+ import_material84.Snackbar,
9768
9933
  {
9769
9934
  open,
9770
9935
  autoHideDuration: 3e3,
9771
9936
  onClose,
9772
9937
  anchorOrigin: { vertical: "top", horizontal: "right" },
9773
- children: /* @__PURE__ */ (0, import_jsx_runtime141.jsx)(
9774
- import_material83.Alert,
9938
+ children: /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
9939
+ import_material84.Alert,
9775
9940
  {
9776
9941
  elevation: 6,
9777
9942
  variant: "filled",
@@ -9797,9 +9962,9 @@ var ToastMessage = ({
9797
9962
  var ToastMessage_default = ToastMessage;
9798
9963
 
9799
9964
  // src/components/TwoButtonDialog/TwoButtonDialog.tsx
9800
- var import_material84 = require("@mui/material");
9965
+ var import_material85 = require("@mui/material");
9801
9966
  var import_mui57 = require("tss-react/mui");
9802
- var import_jsx_runtime142 = require("react/jsx-runtime");
9967
+ var import_jsx_runtime144 = require("react/jsx-runtime");
9803
9968
  var useStyles51 = (0, import_mui57.makeStyles)()((theme) => ({
9804
9969
  paper: {
9805
9970
  padding: theme.spacing(2)
@@ -9829,20 +9994,20 @@ var TwoButtonDialog = ({
9829
9994
  cancelButton
9830
9995
  }) => {
9831
9996
  const { classes } = useStyles51();
9832
- return /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
9833
- import_material84.Dialog,
9997
+ return /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
9998
+ import_material85.Dialog,
9834
9999
  {
9835
10000
  open,
9836
10001
  disableEnforceFocus: true,
9837
10002
  maxWidth: "sm",
9838
10003
  fullWidth: true,
9839
10004
  closeAfterTransition: true,
9840
- BackdropComponent: import_material84.Backdrop,
10005
+ BackdropComponent: import_material85.Backdrop,
9841
10006
  BackdropProps: { timeout: 500 },
9842
- children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material84.Fade, { in: open, children: /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material84.Paper, { className: classes.paper, children: [
9843
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material84.Box, { className: classes.mb, children: [
9844
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material84.Typography, { variant: "h5", component: "div", children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
9845
- import_material84.Box,
10007
+ children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material85.Fade, { in: open, children: /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(import_material85.Paper, { className: classes.paper, children: [
10008
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(import_material85.Box, { className: classes.mb, children: [
10009
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material85.Typography, { variant: "h5", component: "div", children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
10010
+ import_material85.Box,
9846
10011
  {
9847
10012
  sx: {
9848
10013
  fontWeight: 600
@@ -9850,23 +10015,23 @@ var TwoButtonDialog = ({
9850
10015
  children: title
9851
10016
  }
9852
10017
  ) }),
9853
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(
9854
- import_material84.Box,
10018
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(
10019
+ import_material85.Box,
9855
10020
  {
9856
10021
  className: classes.mt,
9857
10022
  sx: {
9858
10023
  fontWeight: 600
9859
10024
  },
9860
10025
  children: [
9861
- subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material84.Typography, { variant: "subtitle1", children: subtitle1 }),
9862
- subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material84.Typography, { variant: "subtitle1", children: subtitle2 })
10026
+ subtitle1 && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material85.Typography, { variant: "subtitle1", children: subtitle1 }),
10027
+ subtitle2 && /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material85.Typography, { variant: "subtitle1", children: subtitle2 })
9863
10028
  ]
9864
10029
  }
9865
10030
  )
9866
10031
  ] }),
9867
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(import_material84.Divider, {}),
9868
- /* @__PURE__ */ (0, import_jsx_runtime142.jsxs)(import_material84.Box, { className: classes.buttonContainer, children: [
9869
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
10032
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(import_material85.Divider, {}),
10033
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsxs)(import_material85.Box, { className: classes.buttonContainer, children: [
10034
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
9870
10035
  FilledButton_default,
9871
10036
  {
9872
10037
  copy: cancelLabel,
@@ -9879,7 +10044,7 @@ var TwoButtonDialog = ({
9879
10044
  }
9880
10045
  }
9881
10046
  ),
9882
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(
10047
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
9883
10048
  FilledButton_default,
9884
10049
  {
9885
10050
  color: "primary",
@@ -9888,7 +10053,7 @@ var TwoButtonDialog = ({
9888
10053
  }
9889
10054
  )
9890
10055
  ] }),
9891
- /* @__PURE__ */ (0, import_jsx_runtime142.jsx)(Loading_default, { isLoading: dialogLoading })
10056
+ /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(Loading_default, { isLoading: dialogLoading })
9892
10057
  ] }) })
9893
10058
  }
9894
10059
  );
@@ -9896,30 +10061,30 @@ var TwoButtonDialog = ({
9896
10061
  var TwoButtonDialog_default = TwoButtonDialog;
9897
10062
 
9898
10063
  // src/components/UserBust/UserBust.tsx
9899
- var import_react50 = require("react");
9900
- var import_material85 = require("@mui/material");
9901
- var import_jsx_runtime143 = require("react/jsx-runtime");
9902
- var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)("div", { children: [
9903
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
9904
- import_material85.Avatar,
10064
+ var import_react53 = require("react");
10065
+ var import_material86 = require("@mui/material");
10066
+ var import_jsx_runtime145 = require("react/jsx-runtime");
10067
+ var UserBust = ({ user, avatarProps, typographyProps }) => /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("div", { children: [
10068
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
10069
+ import_material86.Avatar,
9905
10070
  {
9906
10071
  src: user.profile_picture,
9907
10072
  alt: "user_avatar",
9908
10073
  style: { width: avatarProps.width, height: avatarProps.height }
9909
10074
  }
9910
10075
  ),
9911
- /* @__PURE__ */ (0, import_jsx_runtime143.jsxs)("div", { style: { paddingTop: 16 }, children: [
9912
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material85.Typography, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
9913
- /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(import_material85.Typography, { ...typographyProps.username, children: user.username })
10076
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsxs)("div", { style: { paddingTop: 16 }, children: [
10077
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material86.Typography, { ...typographyProps.name, children: `${user.first_name} ${user.last_name}` }),
10078
+ /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(import_material86.Typography, { ...typographyProps.username, children: user.username })
9914
10079
  ] })
9915
10080
  ] });
9916
- var UserBust_default = (0, import_react50.memo)(UserBust);
10081
+ var UserBust_default = (0, import_react53.memo)(UserBust);
9917
10082
 
9918
10083
  // src/components/icons/IconChart.tsx
9919
- var import_jsx_runtime144 = require("react/jsx-runtime");
10084
+ var import_jsx_runtime146 = require("react/jsx-runtime");
9920
10085
  var SvgIconChart = (props) => {
9921
10086
  const { fill } = props;
9922
- return /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
10087
+ return /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
9923
10088
  "svg",
9924
10089
  {
9925
10090
  width: "20",
@@ -9928,7 +10093,7 @@ var SvgIconChart = (props) => {
9928
10093
  fill: "none",
9929
10094
  xmlns: "http://www.w3.org/2000/svg",
9930
10095
  ...props,
9931
- children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
10096
+ children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
9932
10097
  "path",
9933
10098
  {
9934
10099
  d: "M2.49967 11.6667L2.91634 11.725L6.72467 7.91667C6.57467 7.375 6.71634 6.75833 7.15801 6.325C7.80801 5.66667 8.85801 5.66667 9.50801 6.325C9.94967 6.75833 10.0913 7.375 9.94134 7.91667L12.083 10.0583L12.4997 10C12.6497 10 12.7913 10 12.9163 10.0583L15.8913 7.08333C15.833 6.95833 15.833 6.81667 15.833 6.66667C15.833 6.22464 16.0086 5.80072 16.3212 5.48816C16.6337 5.17559 17.0576 5 17.4997 5C17.9417 5 18.3656 5.17559 18.6782 5.48816C18.9907 5.80072 19.1663 6.22464 19.1663 6.66667C19.1663 7.10869 18.9907 7.53262 18.6782 7.84518C18.3656 8.15774 17.9417 8.33333 17.4997 8.33333C17.3497 8.33333 17.208 8.33333 17.083 8.275L14.108 11.25C14.1663 11.375 14.1663 11.5167 14.1663 11.6667C14.1663 12.1087 13.9907 12.5326 13.6782 12.8452C13.3656 13.1577 12.9417 13.3333 12.4997 13.3333C12.0576 13.3333 11.6337 13.1577 11.3212 12.8452C11.0086 12.5326 10.833 12.1087 10.833 11.6667L10.8913 11.25L8.74967 9.10833C8.48301 9.16667 8.18301 9.16667 7.91634 9.10833L4.10801 12.9167L4.16634 13.3333C4.16634 13.7754 3.99075 14.1993 3.67819 14.5118C3.36563 14.8244 2.9417 15 2.49967 15C2.05765 15 1.63372 14.8244 1.32116 14.5118C1.0086 14.1993 0.833008 13.7754 0.833008 13.3333C0.833008 12.8913 1.0086 12.4674 1.32116 12.1548C1.63372 11.8423 2.05765 11.6667 2.49967 11.6667Z",
@@ -9974,6 +10139,7 @@ var IconChart_default = SvgIconChart;
9974
10139
  FilterOptionsCheckboxes,
9975
10140
  FilterSimpleSelector,
9976
10141
  FixedFooter,
10142
+ HashtagInput,
9977
10143
  Header,
9978
10144
  IconChart,
9979
10145
  IconCompare,