@devtron-labs/devtron-fe-common-lib 0.0.60 → 0.0.61-beta-1

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 (62) hide show
  1. package/dist/Common/Api.d.ts +9 -0
  2. package/dist/Common/Constants.d.ts +14 -0
  3. package/dist/Common/DraggableWrapper/types.d.ts +4 -1
  4. package/dist/Common/Helper.d.ts +1 -4
  5. package/dist/Common/Hooks/index.d.ts +1 -0
  6. package/dist/Common/Hooks/useUrlFilters/constants.d.ts +8 -0
  7. package/dist/Common/Hooks/useUrlFilters/index.d.ts +2 -0
  8. package/dist/Common/Hooks/useUrlFilters/types.d.ts +19 -0
  9. package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +20 -0
  10. package/dist/Common/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +18 -0
  11. package/dist/Common/SortableTableHeaderCell/index.d.ts +2 -0
  12. package/dist/Common/SortableTableHeaderCell/types.d.ts +25 -0
  13. package/dist/Common/Types.d.ts +16 -3
  14. package/dist/Common/index.d.ts +1 -0
  15. package/dist/Pages/GlobalConfigurations/Authorization/constants.d.ts +15 -0
  16. package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +1 -0
  17. package/dist/Pages/GlobalConfigurations/index.d.ts +1 -0
  18. package/dist/Pages/index.d.ts +1 -0
  19. package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +4 -0
  20. package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +4 -0
  21. package/dist/Shared/Components/BulkSelection/BulkSelectionProvider.d.ts +4 -0
  22. package/dist/Shared/Components/BulkSelection/constants.d.ts +9 -0
  23. package/dist/Shared/Components/BulkSelection/index.d.ts +4 -0
  24. package/dist/Shared/Components/BulkSelection/types.d.ts +54 -0
  25. package/dist/Shared/Components/index.d.ts +1 -0
  26. package/dist/Shared/index.d.ts +1 -0
  27. package/dist/index.d.ts +3 -1
  28. package/dist/index.js +669 -182
  29. package/package.json +1 -1
  30. package/src/Assets/Icon/ic-arrow-up-down.svg +3 -0
  31. package/src/Assets/Icon/ic-check-all.svg +5 -0
  32. package/src/Assets/Icon/ic-check-square.svg +4 -0
  33. package/src/Assets/Icon/ic-close.svg +9 -0
  34. package/src/Assets/Icon/ic-sort-arrow-down.svg +3 -0
  35. package/src/Common/Api.ts +21 -0
  36. package/src/Common/Constants.ts +17 -1
  37. package/src/Common/DraggableWrapper/types.ts +4 -1
  38. package/src/Common/Helper.tsx +16 -30
  39. package/src/Common/Hooks/index.ts +1 -0
  40. package/src/Common/Hooks/useUrlFilters/constants.ts +9 -0
  41. package/src/Common/Hooks/useUrlFilters/index.ts +2 -0
  42. package/src/Common/Hooks/useUrlFilters/types.ts +21 -0
  43. package/src/Common/Hooks/useUrlFilters/useUrlFilters.ts +121 -0
  44. package/src/Common/SearchBar/SearchBar.component.tsx +23 -11
  45. package/src/Common/SortableTableHeaderCell/SortableTableHeaderCell.tsx +44 -0
  46. package/src/Common/SortableTableHeaderCell/index.ts +2 -0
  47. package/src/Common/SortableTableHeaderCell/types.ts +26 -0
  48. package/src/Common/Types.ts +16 -2
  49. package/src/Common/index.ts +1 -0
  50. package/src/Pages/GlobalConfigurations/Authorization/constants.ts +16 -0
  51. package/src/Pages/GlobalConfigurations/Authorization/index.ts +1 -0
  52. package/src/Pages/GlobalConfigurations/index.ts +1 -0
  53. package/src/Pages/index.ts +1 -0
  54. package/src/Shared/Components/BulkSelection/BulkSelection.tsx +77 -0
  55. package/src/Shared/Components/BulkSelection/BulkSelectionDropdownItems.tsx +31 -0
  56. package/src/Shared/Components/BulkSelection/BulkSelectionProvider.tsx +163 -0
  57. package/src/Shared/Components/BulkSelection/constants.tsx +13 -0
  58. package/src/Shared/Components/BulkSelection/index.ts +4 -0
  59. package/src/Shared/Components/BulkSelection/types.tsx +65 -0
  60. package/src/Shared/Components/index.ts +1 -0
  61. package/src/Shared/index.ts +1 -0
  62. package/src/index.ts +3 -1
package/dist/index.js CHANGED
@@ -267,7 +267,22 @@ var MAX_Z_INDEX = 2147483647;
267
267
  var SELECTED_APPROVAL_TAB_STATE = {
268
268
  APPROVAL: 'approval',
269
269
  PENDING: 'pending',
270
- };
270
+ };
271
+ exports.SortingOrder = void 0;
272
+ (function (SortingOrder) {
273
+ /**
274
+ * Ascending order
275
+ */
276
+ SortingOrder["ASC"] = "ASC";
277
+ /**
278
+ * Descending order
279
+ */
280
+ SortingOrder["DESC"] = "DESC";
281
+ })(exports.SortingOrder || (exports.SortingOrder = {}));
282
+ /**
283
+ * Base page size for pagination
284
+ */
285
+ var DEFAULT_BASE_PAGE_SIZE = 20;
271
286
 
272
287
  /******************************************************************************
273
288
  Copyright (c) Microsoft Corporation.
@@ -429,6 +444,7 @@ exports.CHECKBOX_VALUE = void 0;
429
444
  (function (CHECKBOX_VALUE) {
430
445
  CHECKBOX_VALUE["CHECKED"] = "CHECKED";
431
446
  CHECKBOX_VALUE["INTERMEDIATE"] = "INTERMEDIATE";
447
+ CHECKBOX_VALUE["BULK_CHECKED"] = "BULK_CHECKED";
432
448
  })(exports.CHECKBOX_VALUE || (exports.CHECKBOX_VALUE = {}));
433
449
  exports.ImageType = void 0;
434
450
  (function (ImageType) {
@@ -732,6 +748,22 @@ var get = function (url, options) {
732
748
  };
733
749
  var trash = function (url, data, options) {
734
750
  return fetchInTime(url, 'DELETE', data, options);
751
+ };
752
+ /**
753
+ * Aborts the previous request before triggering next request
754
+ */
755
+ var abortPreviousRequests = function (callback, abortControllerRef) {
756
+ abortControllerRef.current.abort();
757
+ // eslint-disable-next-line no-param-reassign
758
+ abortControllerRef.current = new AbortController();
759
+ return callback();
760
+ };
761
+ /**
762
+ * Returns true if the error is due to a aborted request
763
+ */
764
+ var getIsRequestAborted = function (error) {
765
+ // The 0 code is common for aborted and blocked requests
766
+ return error && error.code === 0 && error.message === 'The user aborted a request.';
735
767
  };
736
768
 
737
769
  function styleInject(css, ref) {
@@ -765,9 +797,9 @@ var css_248z$9 = ".empty-state {\n height: 100%;\n}\n.empty-state img {\n heig
765
797
  styleInject(css_248z$9);
766
798
 
767
799
  var _g$7;
768
- function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$o.apply(this, arguments); }
800
+ function _extends$t() { _extends$t = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$t.apply(this, arguments); }
769
801
  var SvgIcProgressing = function SvgIcProgressing(props) {
770
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
802
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
771
803
  xmlns: "http://www.w3.org/2000/svg",
772
804
  viewBox: "0 0 24 24",
773
805
  width: "1em",
@@ -819,8 +851,8 @@ EmptyState.Loading = Loading;
819
851
 
820
852
  function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
821
853
 
822
- function _extends$n() {
823
- _extends$n = Object.assign || function (target) {
854
+ function _extends$s() {
855
+ _extends$s = Object.assign || function (target) {
824
856
  for (var i = 1; i < arguments.length; i++) {
825
857
  var source = arguments[i];
826
858
 
@@ -834,7 +866,7 @@ function _extends$n() {
834
866
  return target;
835
867
  };
836
868
 
837
- return _extends$n.apply(this, arguments);
869
+ return _extends$s.apply(this, arguments);
838
870
  }
839
871
 
840
872
  function _objectWithoutPropertiesLoose$2(source, excluded) {
@@ -1560,7 +1592,7 @@ function ProgressBar(_ref) {
1560
1592
  isIn = _ref.isIn,
1561
1593
  theme = _ref.theme;
1562
1594
 
1563
- var style = _extends$n({}, userStyle, {
1595
+ var style = _extends$s({}, userStyle, {
1564
1596
  animationDuration: delay + "ms",
1565
1597
  animationPlayState: isRunning ? 'running' : 'paused',
1566
1598
  opacity: hide ? 0 : 1
@@ -1837,9 +1869,9 @@ var ToastContainer = function ToastContainer(props) {
1837
1869
  ,
1838
1870
  id: containerId
1839
1871
  }, getToastToRender(function (position, toastList) {
1840
- var containerStyle = !toastList.length ? _extends$n({}, style, {
1872
+ var containerStyle = !toastList.length ? _extends$s({}, style, {
1841
1873
  pointerEvents: 'none'
1842
- }) : _extends$n({}, style);
1874
+ }) : _extends$s({}, style);
1843
1875
  return React.createElement("div", {
1844
1876
  className: getClassName(position),
1845
1877
  style: containerStyle,
@@ -1946,7 +1978,7 @@ function dispatchToast(content, options) {
1946
1978
 
1947
1979
 
1948
1980
  function mergeOptions(type, options) {
1949
- return _extends$n({}, options, {
1981
+ return _extends$s({}, options, {
1950
1982
  type: options && options.type || type,
1951
1983
  toastId: getToastId(options)
1952
1984
  });
@@ -1963,7 +1995,7 @@ function toast(content, options) {
1963
1995
  }
1964
1996
 
1965
1997
  toast.loading = function (content, options) {
1966
- return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$n({
1998
+ return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$s({
1967
1999
  isLoading: true,
1968
2000
  autoClose: false,
1969
2001
  closeOnClick: false,
@@ -1979,7 +2011,7 @@ function handlePromise(promise, _ref2, options) {
1979
2011
  var id;
1980
2012
 
1981
2013
  if (pending) {
1982
- id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$n({}, options, pending));
2014
+ id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$s({}, options, pending));
1983
2015
  }
1984
2016
 
1985
2017
  var resetParams = {
@@ -1998,7 +2030,7 @@ function handlePromise(promise, _ref2, options) {
1998
2030
  return;
1999
2031
  }
2000
2032
 
2001
- var baseParams = _extends$n({
2033
+ var baseParams = _extends$s({
2002
2034
  type: type
2003
2035
  }, resetParams, options, {
2004
2036
  data: result
@@ -2009,10 +2041,10 @@ function handlePromise(promise, _ref2, options) {
2009
2041
  } : input; // if the id is set we know that it's an update
2010
2042
 
2011
2043
  if (id) {
2012
- toast.update(id, _extends$n({}, baseParams, params));
2044
+ toast.update(id, _extends$s({}, baseParams, params));
2013
2045
  } else {
2014
2046
  // using toast.promise without loading
2015
- toast(params.render, _extends$n({}, baseParams, params));
2047
+ toast(params.render, _extends$s({}, baseParams, params));
2016
2048
  }
2017
2049
 
2018
2050
  return result;
@@ -2036,7 +2068,7 @@ toast.warning = /*#__PURE__*/createToastByType(TYPE.WARNING);
2036
2068
  toast.warn = toast.warning;
2037
2069
 
2038
2070
  toast.dark = function (content, options) {
2039
- return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$n({
2071
+ return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$s({
2040
2072
  theme: 'dark'
2041
2073
  }, options)));
2042
2074
  };
@@ -2093,7 +2125,7 @@ toast.update = function (toastId, options) {
2093
2125
  var oldOptions = toast.props,
2094
2126
  oldContent = toast.content;
2095
2127
 
2096
- var nextOptions = _extends$n({}, oldOptions, options, {
2128
+ var nextOptions = _extends$s({}, oldOptions, options, {
2097
2129
  toastId: options.toastId || toastId,
2098
2130
  updateId: generateToastId()
2099
2131
  });
@@ -11804,59 +11836,42 @@ var getFilteredChartVersions = function (charts, selectedChartType) {
11804
11836
  chartRefId: item.chartRefId,
11805
11837
  }); });
11806
11838
  };
11807
- function removeEmptyObjectKeysAndNullValues(obj, originaljsonCopy) {
11808
- var _loop_1 = function (key) {
11839
+ function removeEmptyObjectKeysAndNullValues(obj) {
11840
+ // It recursively removes empty object keys and array values that are null
11841
+ for (var key in obj) {
11809
11842
  if (Array.isArray(obj[key])) {
11843
+ if (obj[key].length === 0)
11844
+ continue;
11845
+ obj[key] = obj[key].filter(function (item) { return item !== null; });
11810
11846
  // Check if the array is empty
11811
- if (obj[key].length !== 0) {
11812
- obj[key].forEach(function (element, index) {
11813
- if (element === null || (typeof element === 'object' && Object.keys(element).length === 0))
11814
- obj[key].splice(index, 1);
11815
- else
11816
- removeEmptyObjectKeysAndNullValues(element, originaljsonCopy[key][index]);
11817
- });
11818
- }
11819
- if (obj[key].length === 0 && originaljsonCopy[key].length !== 0) {
11820
- delete obj[key];
11847
+ if (obj[key].length === 0) {
11848
+ delete obj[key]; // Delete the key if the array is empty
11821
11849
  }
11822
11850
  }
11823
11851
  else if (obj[key] && typeof obj[key] === 'object') {
11824
- if (removeEmptyObjectKeysAndNullValues(obj[key], originaljsonCopy[key]) &&
11825
- Object.keys(originaljsonCopy[key]).length !== 0) {
11852
+ if (removeEmptyObjectKeysAndNullValues(obj[key])) {
11826
11853
  delete obj[key];
11827
11854
  }
11828
11855
  }
11829
11856
  else if (obj[key] === undefined) {
11830
11857
  delete obj[key];
11831
11858
  }
11832
- };
11833
- // It recursively removes empty object keys and empty array keys
11834
- for (var key in obj) {
11835
- _loop_1(key);
11836
11859
  }
11837
11860
  return Object.keys(obj).length === 0;
11838
11861
  }
11839
- function getUnlockedJSON(json, jsonPathArray, removeParentKeysAndEmptyArrays) {
11840
- if (removeParentKeysAndEmptyArrays === void 0) { removeParentKeysAndEmptyArrays = false; }
11841
- if (!jsonPathArray.length)
11842
- return { newDocument: json, removedPatches: [] };
11862
+ function getUnlockedJSON(json, jsonPathArray) {
11843
11863
  var jsonCopy = JSON.parse(JSON.stringify(json));
11844
- var originaljsonCopy = JSON.parse(JSON.stringify(json));
11845
- var removedPatches = [];
11846
11864
  var patches = jsonPathArray.flatMap(function (jsonPath) {
11847
11865
  var pathsToRemove = JSONPath({ path: jsonPath, json: jsonCopy, resultType: 'all' });
11848
- //reversing patches to handle correct array index deletion
11849
- pathsToRemove.reverse();
11850
11866
  return pathsToRemove.map(function (result) {
11851
- //storing removed patches to have functionality of undo
11852
- removedPatches.push({ op: 'add', path: result.pointer, value: result.value });
11853
- return { op: 'remove', path: result.pointer };
11867
+ return Array.isArray(result.parent)
11868
+ ? { op: 'replace', path: result.pointer, value: null }
11869
+ : { op: 'remove', path: result.pointer };
11854
11870
  });
11855
11871
  });
11856
11872
  var newDocument = applyPatch(jsonCopy, patches).newDocument;
11857
- if (removeParentKeysAndEmptyArrays)
11858
- removeEmptyObjectKeysAndNullValues(newDocument, originaljsonCopy);
11859
- return { newDocument: newDocument, removedPatches: removedPatches.reverse() };
11873
+ removeEmptyObjectKeysAndNullValues(newDocument);
11874
+ return newDocument;
11860
11875
  }
11861
11876
  function getLockedJSON(json, jsonPathArray) {
11862
11877
  var jsonCopy = JSON.parse(JSON.stringify(json));
@@ -12027,16 +12042,16 @@ var Modal = function (_a) {
12027
12042
  }, id: "popup", className: "".concat(rootClassName, " popup ").concat(modal ? 'modal' : ''), style: __assign({}, style) }, { children: children })), document.getElementById('visible-modal'));
12028
12043
  };
12029
12044
 
12030
- var _path$d;
12031
- function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$m.apply(this, arguments); }
12045
+ var _path$h;
12046
+ function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$r.apply(this, arguments); }
12032
12047
  var SvgIcCross = function SvgIcCross(props) {
12033
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
12048
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
12034
12049
  width: "1em",
12035
12050
  height: "1em",
12036
12051
  viewBox: "0 0 24 24",
12037
12052
  fill: "none",
12038
12053
  xmlns: "http://www.w3.org/2000/svg"
12039
- }, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
12054
+ }, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
12040
12055
  d: "M19.28 5.78a.75.75 0 0 0-1.06-1.06l1.06 1.06ZM4.72 18.22a.75.75 0 1 0 1.06 1.06l-1.06-1.06Zm13.5 1.06a.75.75 0 1 0 1.06-1.06l-1.06 1.06ZM5.78 4.72a.75.75 0 0 0-1.06 1.06l1.06-1.06Zm12.44 0-6.75 6.75 1.06 1.06 6.75-6.75-1.06-1.06Zm-6.75 6.75-6.75 6.75 1.06 1.06 6.75-6.75-1.06-1.06Zm7.81 6.75-6.75-6.75-1.06 1.06 6.75 6.75 1.06-1.06Zm-6.75-6.75L5.78 4.72 4.72 5.78l6.75 6.75 1.06-1.06Z",
12041
12056
  fill: "#596168"
12042
12057
  })));
@@ -16335,30 +16350,30 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
16335
16350
 
16336
16351
  var Tippy = index;
16337
16352
 
16338
- var _path$c;
16339
- function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$l.apply(this, arguments); }
16353
+ var _path$g;
16354
+ function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
16340
16355
  var SvgIcHelp = function SvgIcHelp(props) {
16341
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
16356
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
16342
16357
  xmlns: "http://www.w3.org/2000/svg",
16343
16358
  width: "1em",
16344
16359
  height: "1em",
16345
16360
  viewBox: "0 0 24 24"
16346
- }, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
16361
+ }, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
16347
16362
  fill: "#767D84",
16348
16363
  fillRule: "evenodd",
16349
16364
  d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm-.205 12.868c-.615 0-1.12.505-1.12 1.12 0 .617.505 1.121 1.12 1.121.615 0 1.12-.504 1.12-1.12 0-.616-.506-1.12-1.12-1.12zM11.863 7c-1.667 0-3.197 1.187-3.196 2.527 0 .546.41.833.888.833 1.325 0 .642-1.803 2.39-1.803.82 0 1.311.438 1.311 1.175 0 1.34-2.39 1.708-2.39 3.334 0 .438.287.915.874.915.902 0 .792-.67 1.12-1.148.438-.642 2.473-1.325 2.473-3.101 0-1.927-1.721-2.732-3.47-2.732z"
16350
16365
  })));
16351
16366
  };
16352
16367
 
16353
- var _path$b;
16354
- function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
16368
+ var _path$f;
16369
+ function _extends$p() { _extends$p = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$p.apply(this, arguments); }
16355
16370
  var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
16356
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
16371
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
16357
16372
  xmlns: "http://www.w3.org/2000/svg",
16358
16373
  viewBox: "0 0 17 16",
16359
16374
  width: "1em",
16360
16375
  height: "1em"
16361
- }, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
16376
+ }, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
16362
16377
  fill: "#767D84",
16363
16378
  fillRule: "evenodd",
16364
16379
  d: "M9 1.333a6.667 6.667 0 1 1 0 13.334A6.667 6.667 0 0 1 9 1.333zm0 1.334C6.054 2.667 3.667 5.054 3.667 8S6.054 13.333 9 13.333 14.333 10.946 14.333 8 11.946 2.667 9 2.667zm-.137 7.245c.41 0 .747.337.747.747s-.337.747-.747.747-.747-.336-.747-.747a.75.75 0 0 1 .747-.747zm.046-5.245c1.166 0 2.313.537 2.313 1.82 0 1.185-1.357 1.64-1.648 2.068-.22.319-.146.766-.747.766-.392 0-.583-.319-.583-.61 0-1.085 1.593-1.33 1.593-2.223 0-.492-.327-.783-.873-.783-1.166 0-.711 1.202-1.594 1.202-.319 0-.592-.191-.592-.556 0-.893 1.02-1.684 2.13-1.684z"
@@ -16410,16 +16425,16 @@ function TippyCustomized(props) {
16410
16425
  return (jsxRuntime.jsx(Tippy, __assign({ className: "".concat(isWhiteTheme ? 'tippy-white-container default-white' : 'tippy-black-container default-black', " no-content-padding tippy-shadow ").concat(className), arrow: arrow || false, interactive: interactive || false, placement: placement || 'top', content: getTippyContent(), trigger: trigger || 'mouseenter', onMount: onTippyMount, onClickOutside: closeTippy, showOnCreate: showOnCreate || false, animation: animation || 'fade', duration: duration || 300, visible: props.visible }, { children: children })));
16411
16426
  }
16412
16427
 
16413
- var _path$a, _circle, _path2$1;
16414
- function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
16428
+ var _path$e, _circle, _path2$1;
16429
+ function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$o.apply(this, arguments); }
16415
16430
  var SvgInjectTag = function SvgInjectTag(props) {
16416
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
16431
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
16417
16432
  width: "1em",
16418
16433
  height: "1em",
16419
16434
  viewBox: "0 0 20 20",
16420
16435
  fill: "none",
16421
16436
  xmlns: "http://www.w3.org/2000/svg"
16422
- }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
16437
+ }, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
16423
16438
  d: "M10 10H3.333",
16424
16439
  stroke: "#596168",
16425
16440
  strokeWidth: 1.5,
@@ -16447,15 +16462,15 @@ function PropagateTagInfo(_a) {
16447
16462
  return (jsxRuntime.jsx(TippyCustomized, __assign({ theme: exports.TippyTheme.white, className: "w-300", placement: "top", Icon: SvgInjectTag, heading: 'Propagate tags to K8s resources', infoText: "", additionalContent: additionalInfo(), showCloseButton: true, trigger: "click", interactive: true, documentationLink: isCreateApp ? DOCUMENTATION.APP_TAGS : DOCUMENTATION.APP_OVERVIEW_TAGS, documentationLinkText: "View Documentation" }, { children: jsxRuntime.jsxs("div", __assign({ className: "flexbox cursor" }, { children: [jsxRuntime.jsx(SvgInjectTag, { className: "icon-dim-16 mt-2 mr-4" }), jsxRuntime.jsx("span", { children: "Propagate tags" }), jsxRuntime.jsx(SvgIcHelpOutline, { className: "icon-dim-16 mt-2 ml-4" })] })) })));
16448
16463
  }
16449
16464
 
16450
- var _path$9;
16451
- function _extends$i() { _extends$i = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
16465
+ var _path$d;
16466
+ function _extends$n() { _extends$n = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$n.apply(this, arguments); }
16452
16467
  var SvgIcInfoOutlined = function SvgIcInfoOutlined(props) {
16453
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
16468
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
16454
16469
  xmlns: "http://www.w3.org/2000/svg",
16455
16470
  width: "1em",
16456
16471
  height: "1em",
16457
16472
  viewBox: "0 0 20 20"
16458
- }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
16473
+ }, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
16459
16474
  d: "M10 1.667c4.6 0 8.333 3.733 8.333 8.333S14.6 18.333 10 18.333 1.667 14.6 1.667 10 5.4 1.667 10 1.667zm0 1.666A6.67 6.67 0 0 0 3.333 10 6.67 6.67 0 0 0 10 16.667 6.67 6.67 0 0 0 16.667 10 6.67 6.67 0 0 0 10 3.333zm0 5.834c.46 0 .833.373.833.833v3.333a.834.834 0 1 1-1.666 0V10c0-.46.373-.833.833-.833zm0-3.334A.833.833 0 1 1 10 7.5a.833.833 0 0 1 0-1.667z",
16460
16475
  fill: "#06C",
16461
16476
  fillRule: "evenodd"
@@ -16689,15 +16704,15 @@ var TagDetails = function (_a) {
16689
16704
  return (jsxRuntime.jsxs("div", __assign({ className: "flexbox mb-8" }, { children: [jsxRuntime.jsx("div", __assign({ className: "dc__border h-30 pl-4 pr-4 br-4 mr-8 pointer ".concat(tagData.propagate ? 'bcn-7' : '', " ").concat(tagData.key.startsWith("devtron.ai/") ? 'cursor-not-allowed bcn-1' : ''), onClick: propagateTagToResource, "data-testid": "propagate-tag-".concat(index) }, { children: jsxRuntime.jsx(SvgInjectTag, { className: "icon-dim-20 mt-4 ".concat(tagData.propagate ? 'scn-0' : '') }) })), jsxRuntime.jsx(TagLabelValueSelector, { selectedTagIndex: index, tagData: tagData, setTagData: setTagData, tagInputType: exports.KEY_VALUE.KEY, placeholder: "Enter key", tabIndex: tabIndex - 1, refVar: keyRef, dependentRef: valueRef, tagOptions: suggestedTagsOptions }), jsxRuntime.jsx(TagLabelValueSelector, { selectedTagIndex: index, tagData: tagData, setTagData: setTagData, tagInputType: exports.KEY_VALUE.VALUE, placeholder: "Enter value", tabIndex: tabIndex, refVar: valueRef, dependentRef: keyRef }), jsxRuntime.jsx("div", __assign({ className: "dc__border pl-4 pr-4 dc__right-radius-4 pointer flex top", onClick: deleteTag, "data-testid": "delete-tag-".concat(index) }, { children: jsxRuntime.jsx(SvgIcCross, { className: "icon-dim-20 mt-4" }) }))] })));
16690
16705
  };
16691
16706
 
16692
- var _path$8;
16693
- function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
16707
+ var _path$c;
16708
+ function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$m.apply(this, arguments); }
16694
16709
  var SvgIcAdd = function SvgIcAdd(props) {
16695
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
16710
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
16696
16711
  xmlns: "http://www.w3.org/2000/svg",
16697
16712
  width: "1em",
16698
16713
  height: "1em",
16699
16714
  viewBox: "0 0 24 24"
16700
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
16715
+ }, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
16701
16716
  className: "ic-add_svg__fill-color",
16702
16717
  fill: "#999",
16703
16718
  d: "M18 13h-5v5a1 1 0 0 1-2 0v-5H6a1 1 0 0 1 0-2h5V6a1 1 0 0 1 2 0v5h5a1 1 0 0 1 0 2z"
@@ -16827,8 +16842,8 @@ function ForceDeleteDialog(_a) {
16827
16842
  return (jsxRuntime.jsx("div", { children: jsxRuntime.jsx(DeleteDialog, __assign({ title: forceDeleteDialogTitle, delete: onClickDelete, closeDelete: closeDeleteModal, deletePrefix: "Force " }, { children: jsxRuntime.jsxs(DeleteDialog.Description, { children: [jsxRuntime.jsxs("p", __assign({ className: "mt-12 mb-12 p-8 dc__break-word dc__window-bg" }, { children: ["Error: ", forceDeleteDialogMessage] })), jsxRuntime.jsx("p", { children: "Do you want to force delete?" })] }) })) }));
16828
16843
  }
16829
16844
 
16830
- function _extends$g() {
16831
- _extends$g = Object.assign ? Object.assign.bind() : function (target) {
16845
+ function _extends$l() {
16846
+ _extends$l = Object.assign ? Object.assign.bind() : function (target) {
16832
16847
  for (var i = 1; i < arguments.length; i++) {
16833
16848
  var source = arguments[i];
16834
16849
  for (var key in source) {
@@ -16839,7 +16854,7 @@ function _extends$g() {
16839
16854
  }
16840
16855
  return target;
16841
16856
  };
16842
- return _extends$g.apply(this, arguments);
16857
+ return _extends$l.apply(this, arguments);
16843
16858
  }
16844
16859
 
16845
16860
  /*
@@ -20380,7 +20395,7 @@ var Menu = function Menu(props) {
20380
20395
  getStyles = props.getStyles,
20381
20396
  innerRef = props.innerRef,
20382
20397
  innerProps = props.innerProps;
20383
- return jsx("div", _extends$g({
20398
+ return jsx("div", _extends$l({
20384
20399
  css: getStyles('menu', props),
20385
20400
  className: cx({
20386
20401
  menu: true
@@ -20412,7 +20427,7 @@ var MenuList$1 = function MenuList(props) {
20412
20427
  innerProps = props.innerProps,
20413
20428
  innerRef = props.innerRef,
20414
20429
  isMulti = props.isMulti;
20415
- return jsx("div", _extends$g({
20430
+ return jsx("div", _extends$l({
20416
20431
  css: getStyles('menuList', props),
20417
20432
  className: cx({
20418
20433
  'menu-list': true,
@@ -20443,7 +20458,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
20443
20458
  cx = props.cx,
20444
20459
  getStyles = props.getStyles,
20445
20460
  innerProps = props.innerProps;
20446
- return jsx("div", _extends$g({
20461
+ return jsx("div", _extends$l({
20447
20462
  css: getStyles('noOptionsMessage', props),
20448
20463
  className: cx({
20449
20464
  'menu-notice': true,
@@ -20460,7 +20475,7 @@ var LoadingMessage = function LoadingMessage(props) {
20460
20475
  cx = props.cx,
20461
20476
  getStyles = props.getStyles,
20462
20477
  innerProps = props.innerProps;
20463
- return jsx("div", _extends$g({
20478
+ return jsx("div", _extends$l({
20464
20479
  css: getStyles('loadingMessage', props),
20465
20480
  className: cx({
20466
20481
  'menu-notice': true,
@@ -20548,7 +20563,7 @@ var MenuPortal = /*#__PURE__*/function (_Component2) {
20548
20563
  rect: rect
20549
20564
  }; // same wrapper element whether fixed or portalled
20550
20565
 
20551
- var menuWrapper = jsx("div", _extends$g({
20566
+ var menuWrapper = jsx("div", _extends$l({
20552
20567
  css: getStyles('menuPortal', state),
20553
20568
  className: cx({
20554
20569
  'menu-portal': true
@@ -20584,7 +20599,7 @@ var SelectContainer = function SelectContainer(props) {
20584
20599
  innerProps = props.innerProps,
20585
20600
  isDisabled = props.isDisabled,
20586
20601
  isRtl = props.isRtl;
20587
- return jsx("div", _extends$g({
20602
+ return jsx("div", _extends$l({
20588
20603
  css: getStyles('container', props),
20589
20604
  className: cx({
20590
20605
  '--is-disabled': isDisabled,
@@ -20619,7 +20634,7 @@ var ValueContainer = function ValueContainer(props) {
20619
20634
  isMulti = props.isMulti,
20620
20635
  getStyles = props.getStyles,
20621
20636
  hasValue = props.hasValue;
20622
- return jsx("div", _extends$g({
20637
+ return jsx("div", _extends$l({
20623
20638
  css: getStyles('valueContainer', props),
20624
20639
  className: cx({
20625
20640
  'value-container': true,
@@ -20645,7 +20660,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
20645
20660
  cx = props.cx,
20646
20661
  innerProps = props.innerProps,
20647
20662
  getStyles = props.getStyles;
20648
- return jsx("div", _extends$g({
20663
+ return jsx("div", _extends$l({
20649
20664
  css: getStyles('indicatorsContainer', props),
20650
20665
  className: cx({
20651
20666
  indicators: true
@@ -20676,7 +20691,7 @@ var Svg = function Svg(_ref) {
20676
20691
  var size = _ref.size,
20677
20692
  props = _objectWithoutProperties(_ref, _excluded$2);
20678
20693
 
20679
- return jsx("svg", _extends$g({
20694
+ return jsx("svg", _extends$l({
20680
20695
  height: size,
20681
20696
  width: size,
20682
20697
  viewBox: "0 0 20 20",
@@ -20687,14 +20702,14 @@ var Svg = function Svg(_ref) {
20687
20702
  };
20688
20703
 
20689
20704
  var CrossIcon = function CrossIcon(props) {
20690
- return jsx(Svg, _extends$g({
20705
+ return jsx(Svg, _extends$l({
20691
20706
  size: 20
20692
20707
  }, props), jsx("path", {
20693
20708
  d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
20694
20709
  }));
20695
20710
  };
20696
20711
  var DownChevron = function DownChevron(props) {
20697
- return jsx(Svg, _extends$g({
20712
+ return jsx(Svg, _extends$l({
20698
20713
  size: 20
20699
20714
  }, props), jsx("path", {
20700
20715
  d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
@@ -20727,7 +20742,7 @@ var DropdownIndicator$1 = function DropdownIndicator(props) {
20727
20742
  cx = props.cx,
20728
20743
  getStyles = props.getStyles,
20729
20744
  innerProps = props.innerProps;
20730
- return jsx("div", _extends$g({
20745
+ return jsx("div", _extends$l({
20731
20746
  css: getStyles('dropdownIndicator', props),
20732
20747
  className: cx({
20733
20748
  indicator: true,
@@ -20742,7 +20757,7 @@ var ClearIndicator$1 = function ClearIndicator(props) {
20742
20757
  cx = props.cx,
20743
20758
  getStyles = props.getStyles,
20744
20759
  innerProps = props.innerProps;
20745
- return jsx("div", _extends$g({
20760
+ return jsx("div", _extends$l({
20746
20761
  css: getStyles('clearIndicator', props),
20747
20762
  className: cx({
20748
20763
  indicator: true,
@@ -20772,7 +20787,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
20772
20787
  cx = props.cx,
20773
20788
  getStyles = props.getStyles,
20774
20789
  innerProps = props.innerProps;
20775
- return jsx("span", _extends$g({}, innerProps, {
20790
+ return jsx("span", _extends$l({}, innerProps, {
20776
20791
  css: getStyles('indicatorSeparator', props),
20777
20792
  className: cx({
20778
20793
  'indicator-separator': true
@@ -20827,7 +20842,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
20827
20842
  getStyles = props.getStyles,
20828
20843
  innerProps = props.innerProps,
20829
20844
  isRtl = props.isRtl;
20830
- return jsx("div", _extends$g({
20845
+ return jsx("div", _extends$l({
20831
20846
  css: getStyles('loadingIndicator', props),
20832
20847
  className: cx({
20833
20848
  indicator: true,
@@ -20888,7 +20903,7 @@ var Control = function Control(props) {
20888
20903
  innerRef = props.innerRef,
20889
20904
  innerProps = props.innerProps,
20890
20905
  menuIsOpen = props.menuIsOpen;
20891
- return jsx("div", _extends$g({
20906
+ return jsx("div", _extends$l({
20892
20907
  ref: innerRef,
20893
20908
  css: getStyles('control', props),
20894
20909
  className: cx({
@@ -20920,12 +20935,12 @@ var Group = function Group(props) {
20920
20935
  label = props.label,
20921
20936
  theme = props.theme,
20922
20937
  selectProps = props.selectProps;
20923
- return jsx("div", _extends$g({
20938
+ return jsx("div", _extends$l({
20924
20939
  css: getStyles('group', props),
20925
20940
  className: cx({
20926
20941
  group: true
20927
20942
  }, className)
20928
- }, innerProps), jsx(Heading, _extends$g({}, headingProps, {
20943
+ }, innerProps), jsx(Heading, _extends$l({}, headingProps, {
20929
20944
  selectProps: selectProps,
20930
20945
  theme: theme,
20931
20946
  getStyles: getStyles,
@@ -20957,7 +20972,7 @@ var GroupHeading = function GroupHeading(props) {
20957
20972
  _cleanCommonProps.data;
20958
20973
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
20959
20974
 
20960
- return jsx("div", _extends$g({
20975
+ return jsx("div", _extends$l({
20961
20976
  css: getStyles('groupHeading', props),
20962
20977
  className: cx({
20963
20978
  'group-heading': true
@@ -21033,7 +21048,7 @@ var Input = function Input(props) {
21033
21048
  }, className),
21034
21049
  css: getStyles('input', props),
21035
21050
  "data-value": value || ''
21036
- }, jsx("input", _extends$g({
21051
+ }, jsx("input", _extends$l({
21037
21052
  className: cx({
21038
21053
  input: true
21039
21054
  }, inputClassName),
@@ -21103,7 +21118,7 @@ var MultiValueLabel = MultiValueGeneric;
21103
21118
  function MultiValueRemove$1(_ref5) {
21104
21119
  var children = _ref5.children,
21105
21120
  innerProps = _ref5.innerProps;
21106
- return jsx("div", _extends$g({
21121
+ return jsx("div", _extends$l({
21107
21122
  role: "button"
21108
21123
  }, innerProps), children || jsx(CrossIcon, {
21109
21124
  size: 14
@@ -21192,7 +21207,7 @@ var Option$1 = function Option(props) {
21192
21207
  isSelected = props.isSelected,
21193
21208
  innerRef = props.innerRef,
21194
21209
  innerProps = props.innerProps;
21195
- return jsx("div", _extends$g({
21210
+ return jsx("div", _extends$l({
21196
21211
  css: getStyles('option', props),
21197
21212
  className: cx({
21198
21213
  option: true,
@@ -21224,7 +21239,7 @@ var Placeholder = function Placeholder(props) {
21224
21239
  cx = props.cx,
21225
21240
  getStyles = props.getStyles,
21226
21241
  innerProps = props.innerProps;
21227
- return jsx("div", _extends$g({
21242
+ return jsx("div", _extends$l({
21228
21243
  css: getStyles('placeholder', props),
21229
21244
  className: cx({
21230
21245
  placeholder: true
@@ -21257,7 +21272,7 @@ var SingleValue = function SingleValue(props) {
21257
21272
  getStyles = props.getStyles,
21258
21273
  isDisabled = props.isDisabled,
21259
21274
  innerProps = props.innerProps;
21260
- return jsx("div", _extends$g({
21275
+ return jsx("div", _extends$l({
21261
21276
  css: getStyles('singleValue', props),
21262
21277
  className: cx({
21263
21278
  'single-value': true,
@@ -21505,7 +21520,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
21505
21520
  };
21506
21521
 
21507
21522
  var A11yText = function A11yText(props) {
21508
- return jsx("span", _extends$g({
21523
+ return jsx("span", _extends$l({
21509
21524
  css: _ref
21510
21525
  }, props));
21511
21526
  };
@@ -22041,7 +22056,7 @@ function DummyInput(_ref) {
22041
22056
  var innerRef = _ref.innerRef,
22042
22057
  props = _objectWithoutProperties(_ref, _excluded);
22043
22058
 
22044
- return jsx("input", _extends$g({
22059
+ return jsx("input", _extends$l({
22045
22060
  ref: innerRef
22046
22061
  }, props, {
22047
22062
  css: /*#__PURE__*/css$2({
@@ -23676,7 +23691,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23676
23691
 
23677
23692
  if (!isSearchable) {
23678
23693
  // use a dummy input to maintain focus/blur functionality
23679
- return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$g({
23694
+ return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$l({
23680
23695
  id: id,
23681
23696
  innerRef: this.getInputRef,
23682
23697
  onBlur: this.onInputBlur,
@@ -23690,7 +23705,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23690
23705
  }, ariaAttributes));
23691
23706
  }
23692
23707
 
23693
- return /*#__PURE__*/React__namespace.createElement(Input, _extends$g({}, commonProps, {
23708
+ return /*#__PURE__*/React__namespace.createElement(Input, _extends$l({}, commonProps, {
23694
23709
  autoCapitalize: "none",
23695
23710
  autoComplete: "off",
23696
23711
  autoCorrect: "off",
@@ -23734,7 +23749,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23734
23749
  isFocused = _this$state5.isFocused;
23735
23750
 
23736
23751
  if (!this.hasValue() || !controlShouldRenderValue) {
23737
- return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$g({}, commonProps, {
23752
+ return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$l({}, commonProps, {
23738
23753
  key: "placeholder",
23739
23754
  isDisabled: isDisabled,
23740
23755
  isFocused: isFocused,
@@ -23748,7 +23763,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23748
23763
  return selectValue.map(function (opt, index) {
23749
23764
  var isOptionFocused = opt === focusedValue;
23750
23765
  var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
23751
- return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$g({}, commonProps, {
23766
+ return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$l({}, commonProps, {
23752
23767
  components: {
23753
23768
  Container: MultiValueContainer,
23754
23769
  Label: MultiValueLabel,
@@ -23780,7 +23795,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23780
23795
  }
23781
23796
 
23782
23797
  var singleValue = selectValue[0];
23783
- return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$g({}, commonProps, {
23798
+ return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$l({}, commonProps, {
23784
23799
  data: singleValue,
23785
23800
  isDisabled: isDisabled
23786
23801
  }), this.formatOptionLabel(singleValue, 'value'));
@@ -23806,7 +23821,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23806
23821
  onTouchEnd: this.onClearIndicatorTouchEnd,
23807
23822
  'aria-hidden': 'true'
23808
23823
  };
23809
- return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$g({}, commonProps, {
23824
+ return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$l({}, commonProps, {
23810
23825
  innerProps: innerProps,
23811
23826
  isFocused: isFocused
23812
23827
  }));
@@ -23826,7 +23841,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23826
23841
  var innerProps = {
23827
23842
  'aria-hidden': 'true'
23828
23843
  };
23829
- return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$g({}, commonProps, {
23844
+ return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$l({}, commonProps, {
23830
23845
  innerProps: innerProps,
23831
23846
  isDisabled: isDisabled,
23832
23847
  isFocused: isFocused
@@ -23844,7 +23859,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23844
23859
  var commonProps = this.commonProps;
23845
23860
  var isDisabled = this.props.isDisabled;
23846
23861
  var isFocused = this.state.isFocused;
23847
- return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$g({}, commonProps, {
23862
+ return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$l({}, commonProps, {
23848
23863
  isDisabled: isDisabled,
23849
23864
  isFocused: isFocused
23850
23865
  }));
@@ -23864,7 +23879,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23864
23879
  onTouchEnd: this.onDropdownIndicatorTouchEnd,
23865
23880
  'aria-hidden': 'true'
23866
23881
  };
23867
- return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$g({}, commonProps, {
23882
+ return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$l({}, commonProps, {
23868
23883
  innerProps: innerProps,
23869
23884
  isDisabled: isDisabled,
23870
23885
  isFocused: isFocused
@@ -23927,7 +23942,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23927
23942
  onMouseOver: onHover,
23928
23943
  tabIndex: -1
23929
23944
  };
23930
- return /*#__PURE__*/React__namespace.createElement(Option, _extends$g({}, commonProps, {
23945
+ return /*#__PURE__*/React__namespace.createElement(Option, _extends$l({}, commonProps, {
23931
23946
  innerProps: innerProps,
23932
23947
  data: data,
23933
23948
  isDisabled: isDisabled,
@@ -23951,7 +23966,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23951
23966
  groupIndex = item.index;
23952
23967
  var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
23953
23968
  var headingId = "".concat(groupId, "-heading");
23954
- return /*#__PURE__*/React__namespace.createElement(Group, _extends$g({}, commonProps, {
23969
+ return /*#__PURE__*/React__namespace.createElement(Group, _extends$l({}, commonProps, {
23955
23970
  key: groupId,
23956
23971
  data: _data,
23957
23972
  options: options,
@@ -23990,12 +24005,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23990
24005
  menuPosition: menuPosition,
23991
24006
  menuShouldScrollIntoView: menuShouldScrollIntoView
23992
24007
  };
23993
- var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$g({}, commonProps, menuPlacementProps), function (_ref4) {
24008
+ var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$l({}, commonProps, menuPlacementProps), function (_ref4) {
23994
24009
  var ref = _ref4.ref,
23995
24010
  _ref4$placerProps = _ref4.placerProps,
23996
24011
  placement = _ref4$placerProps.placement,
23997
24012
  maxHeight = _ref4$placerProps.maxHeight;
23998
- return /*#__PURE__*/React__namespace.createElement(Menu, _extends$g({}, commonProps, menuPlacementProps, {
24013
+ return /*#__PURE__*/React__namespace.createElement(Menu, _extends$l({}, commonProps, menuPlacementProps, {
23999
24014
  innerRef: ref,
24000
24015
  innerProps: {
24001
24016
  onMouseDown: _this4.onMenuMouseDown,
@@ -24010,7 +24025,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24010
24025
  onBottomArrive: onMenuScrollToBottom,
24011
24026
  lockEnabled: menuShouldBlockScroll
24012
24027
  }, function (scrollTargetRef) {
24013
- return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$g({}, commonProps, {
24028
+ return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$l({}, commonProps, {
24014
24029
  innerRef: function innerRef(instance) {
24015
24030
  _this4.getMenuListRef(instance);
24016
24031
 
@@ -24025,7 +24040,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24025
24040
  // so we use the same component. the actual portalling logic is forked
24026
24041
  // within the component based on `menuPosition`
24027
24042
 
24028
- return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$g({}, commonProps, {
24043
+ return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$l({}, commonProps, {
24029
24044
  appendTo: menuPortalTarget,
24030
24045
  controlElement: this.controlRef,
24031
24046
  menuPlacement: menuPlacement,
@@ -24090,7 +24105,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24090
24105
  isFocused = _this$state6.isFocused,
24091
24106
  selectValue = _this$state6.selectValue;
24092
24107
  var focusableOptions = this.getFocusableOptions();
24093
- return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$g({}, commonProps, {
24108
+ return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$l({}, commonProps, {
24094
24109
  id: this.getElementId('live-region'),
24095
24110
  ariaSelection: ariaSelection,
24096
24111
  focusedOption: focusedOption,
@@ -24116,7 +24131,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24116
24131
  menuIsOpen = _this$props14.menuIsOpen;
24117
24132
  var isFocused = this.state.isFocused;
24118
24133
  var commonProps = this.commonProps = this.getCommonProps();
24119
- return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$g({}, commonProps, {
24134
+ return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$l({}, commonProps, {
24120
24135
  className: className,
24121
24136
  innerProps: {
24122
24137
  id: id,
@@ -24124,7 +24139,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24124
24139
  },
24125
24140
  isDisabled: isDisabled,
24126
24141
  isFocused: isFocused
24127
- }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$g({}, commonProps, {
24142
+ }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$l({}, commonProps, {
24128
24143
  innerRef: this.getControlRef,
24129
24144
  innerProps: {
24130
24145
  onMouseDown: this.onControlMouseDown,
@@ -24133,9 +24148,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24133
24148
  isDisabled: isDisabled,
24134
24149
  isFocused: isFocused,
24135
24150
  menuIsOpen: menuIsOpen
24136
- }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$g({}, commonProps, {
24151
+ }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$l({}, commonProps, {
24137
24152
  isDisabled: isDisabled
24138
- }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$g({}, commonProps, {
24153
+ }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$l({}, commonProps, {
24139
24154
  isDisabled: isDisabled
24140
24155
  }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
24141
24156
  }
@@ -24208,7 +24223,7 @@ Select$1.defaultProps = defaultProps;
24208
24223
 
24209
24224
  var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
24210
24225
  var baseSelectProps = useStateManager(props);
24211
- return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$g({
24226
+ return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$l({
24212
24227
  ref: ref
24213
24228
  }, baseSelectProps));
24214
24229
  });
@@ -24216,9 +24231,9 @@ var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
24216
24231
  var ReactSelect = StateManagedSelect;
24217
24232
 
24218
24233
  var _g$6;
24219
- function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
24234
+ function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
24220
24235
  var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
24221
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
24236
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
24222
24237
  xmlns: "http://www.w3.org/2000/svg",
24223
24238
  viewBox: "0 0 28 28",
24224
24239
  width: "1em",
@@ -24239,15 +24254,15 @@ var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
24239
24254
  }))));
24240
24255
  };
24241
24256
 
24242
- var _path$7;
24243
- function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
24257
+ var _path$b;
24258
+ function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
24244
24259
  var SvgIcCheck = function SvgIcCheck(props) {
24245
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
24260
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
24246
24261
  xmlns: "http://www.w3.org/2000/svg",
24247
24262
  width: "1em",
24248
24263
  height: "1em",
24249
24264
  viewBox: "0 0 24 24"
24250
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
24265
+ }, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
24251
24266
  stroke: "#06C",
24252
24267
  strokeLinecap: "round",
24253
24268
  strokeLinejoin: "round",
@@ -24259,9 +24274,9 @@ var SvgIcCheck = function SvgIcCheck(props) {
24259
24274
  };
24260
24275
 
24261
24276
  var _g$5;
24262
- function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
24277
+ function _extends$i() { _extends$i = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
24263
24278
  var SvgIcErrorMedium = function SvgIcErrorMedium(props) {
24264
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
24279
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
24265
24280
  xmlns: "http://www.w3.org/2000/svg",
24266
24281
  width: "1em",
24267
24282
  height: "1em",
@@ -24604,9 +24619,9 @@ var Checkbox$1 = /** @class */ (function (_super) {
24604
24619
  }(React.Component));
24605
24620
 
24606
24621
  var _g$4;
24607
- function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
24622
+ function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
24608
24623
  var SvgIcSearch = function SvgIcSearch(props) {
24609
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
24624
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
24610
24625
  xmlns: "http://www.w3.org/2000/svg",
24611
24626
  viewBox: "0 0 24 24",
24612
24627
  width: "1em",
@@ -24623,9 +24638,9 @@ var SvgIcSearch = function SvgIcSearch(props) {
24623
24638
  };
24624
24639
 
24625
24640
  var _g$3;
24626
- function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
24641
+ function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
24627
24642
  var SvgIcErrorCross = function SvgIcErrorCross(props) {
24628
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
24643
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
24629
24644
  xmlns: "http://www.w3.org/2000/svg",
24630
24645
  width: "1em",
24631
24646
  height: "1em",
@@ -24692,6 +24707,21 @@ var SearchBar = function (_a) {
24692
24707
  handleSearchChange,
24693
24708
  debounceTimeout,
24694
24709
  ]);
24710
+ // assuming initialSearchText will change if we are changing history otherwise will be constant and will not change
24711
+ // since on changing history we expect to make api call using useAsync so not applying handleEnter
24712
+ React.useEffect(function () {
24713
+ inputRef.current.value = initialSearchText;
24714
+ setShowClearButton(!!initialSearchText);
24715
+ }, [initialSearchText]);
24716
+ var _applySearch = function (value) {
24717
+ handleSearchChange(value);
24718
+ handleEnter(value);
24719
+ };
24720
+ var clearSearch = function () {
24721
+ inputRef.current.value = '';
24722
+ _applySearch('');
24723
+ setShowClearButton(false);
24724
+ };
24695
24725
  var handleChange = function (e) {
24696
24726
  var value = e.target.value;
24697
24727
  setShowClearButton(!!value);
@@ -24702,23 +24732,71 @@ var SearchBar = function (_a) {
24702
24732
  handleSearchChange(value);
24703
24733
  }
24704
24734
  };
24705
- var _applySearch = function (value) {
24706
- handleSearchChange(value);
24707
- handleEnter(value);
24708
- };
24709
24735
  var handleKeyDown = function (e) {
24710
24736
  var key = e.key;
24711
24737
  if (key === 'Enter') {
24738
+ e.preventDefault();
24712
24739
  var inputTarget = e.target;
24713
24740
  var value = inputTarget.value.trim();
24714
24741
  _applySearch(value);
24715
24742
  }
24716
24743
  };
24717
- var clearSearch = function () {
24718
- inputRef.current.value = '';
24719
- _applySearch('');
24720
- };
24721
- return (jsxRuntime.jsx("div", __assign({ className: containerClassName }, { children: jsxRuntime.jsxs("div", __assign({ className: "search-bar bc-n50 focus-within-border-b5 dc__hover-border-n300 dc__block w-100 min-w-200 dc__position-rel en-2 bw-1 br-4 h-32" }, { children: [jsxRuntime.jsx(SvgIcSearch, { className: "search-bar__icon dc__position-abs icon-color-n6 icon-dim-16" }), jsxRuntime.jsx("input", __assign({ placeholder: "Search", "data-testid": "search-bar", type: "text" }, inputProps, { defaultValue: initialSearchText, className: "search-bar__input dc__position-abs w-100 h-100 br-4 dc__no-border pt-6 pr-10 pb-6 pl-30 fs-13 lh-20 fw-4 cn-9 placeholder-cn5 ".concat(showClearButton ? 'pr-30' : 'pr-10'), onChange: handleChange, onKeyDown: handleKeyDown, ref: inputRef })), showClearButton && (jsxRuntime.jsx("button", __assign({ className: "flex search-bar__clear-button dc__position-abs dc__transparent mt-0 mb-0 mr-5 ml-5", type: "button", onClick: clearSearch, "aria-label": "Clear search" }, { children: jsxRuntime.jsx(SvgIcErrorCross, { className: "icon-dim-16 icon-n4 dc__vertical-align-middle" }) })))] })) })));
24744
+ return (jsxRuntime.jsx("div", __assign({ className: containerClassName }, { children: jsxRuntime.jsxs("div", __assign({ className: "search-bar bc-n50 focus-within-border-b5 dc__hover-border-n300 dc__block w-100 min-w-200 dc__position-rel en-2 bw-1 br-4 h-32" }, { children: [jsxRuntime.jsx(SvgIcSearch, { className: "search-bar__icon dc__position-abs icon-color-n6 icon-dim-16" }), jsxRuntime.jsx("input", __assign({ placeholder: "Search", "data-testid": "search-bar", type: "text" }, inputProps, { defaultValue: initialSearchText, className: "search-bar__input bc-n50 dc__position-abs w-100 h-100 br-4 dc__no-border pt-6 pr-10 pb-6 pl-30 fs-13 lh-20 fw-4 cn-9 placeholder-cn5 ".concat(showClearButton ? 'pr-30' : 'pr-10'), onChange: handleChange, onKeyDown: handleKeyDown, ref: inputRef })), showClearButton && (jsxRuntime.jsx("button", __assign({ className: "flex search-bar__clear-button dc__position-abs dc__transparent mt-0 mb-0 mr-5 ml-5", type: "button", onClick: clearSearch, "aria-label": "Clear search" }, { children: jsxRuntime.jsx(SvgIcErrorCross, { className: "icon-dim-16 icon-n4 dc__vertical-align-middle" }) })))] })) })));
24745
+ };
24746
+
24747
+ var _path$a;
24748
+ function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
24749
+ var SvgIcArrowUpDown = function SvgIcArrowUpDown(props) {
24750
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
24751
+ xmlns: "http://www.w3.org/2000/svg",
24752
+ width: "1em",
24753
+ height: "1em",
24754
+ viewBox: "0 0 12 12",
24755
+ fill: "none"
24756
+ }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
24757
+ d: "M4.125 8.5 6 10.75 7.875 8.5m-3.75-5L6 1.25 7.875 3.5",
24758
+ stroke: "#3B444C",
24759
+ strokeWidth: 1.5,
24760
+ strokeLinecap: "round",
24761
+ strokeLinejoin: "round"
24762
+ })));
24763
+ };
24764
+
24765
+ var _path$9;
24766
+ function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
24767
+ var SvgIcSortArrowDown = function SvgIcSortArrowDown(props) {
24768
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
24769
+ width: "1em",
24770
+ height: "1em",
24771
+ viewBox: "0 0 12 12",
24772
+ fill: "none",
24773
+ xmlns: "http://www.w3.org/2000/svg"
24774
+ }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
24775
+ d: "M3.5 7.5 6 10m0 0 2.5-2.5M6 10V2",
24776
+ stroke: "#596168",
24777
+ strokeWidth: 1.5,
24778
+ strokeLinecap: "round",
24779
+ strokeLinejoin: "round"
24780
+ })));
24781
+ };
24782
+
24783
+ /**
24784
+ * Reusable component for the table header cell with support for sorting icons
24785
+ *
24786
+ * @example Usage
24787
+ * ```tsx
24788
+ * <SortableTableHeaderCell
24789
+ * isSorted={currentSortedCell === 'cell'}
24790
+ * triggerSorting={() => {}}
24791
+ * sortOrder={SortingOrder.ASC}
24792
+ * title="Header Cell"
24793
+ * disabled={isDisabled}
24794
+ * />
24795
+ * ```
24796
+ */
24797
+ var SortableTableHeaderCell = function (_a) {
24798
+ var isSorted = _a.isSorted, triggerSorting = _a.triggerSorting, sortOrder = _a.sortOrder, title = _a.title, disabled = _a.disabled;
24799
+ return (jsxRuntime.jsxs("button", __assign({ type: "button", className: "dc__transparent p-0 bcn-0 cn-7 flex dc__content-start dc__gap-4 cursor", onClick: triggerSorting, disabled: disabled }, { children: [jsxRuntime.jsx("span", __assign({ className: "dc__uppercase dc__ellipsis-right" }, { children: title })), isSorted ? (jsxRuntime.jsx(SvgIcSortArrowDown, { className: "icon-dim-12 mw-12 scn-7 ".concat(sortOrder === exports.SortingOrder.DESC ? 'dc__flip-180' : '') })) : (jsxRuntime.jsx(SvgIcArrowUpDown, { className: "icon-dim-12 mw-12 scn-7" }))] })));
24722
24800
  };
24723
24801
 
24724
24802
  var css_248z$4 = ".toggle__switch {\n position: relative;\n display: inline-block;\n width: 100%;\n height: 100%;\n}\n.toggle__switch.disabled {\n cursor: not-allowed;\n}\n.toggle__switch.disabled .toggle__slider {\n cursor: not-allowed;\n}\n\n/* Hide default HTML checkbox */\n.toggle__switch input {\n opacity: 0;\n width: 0;\n height: 0;\n}\n\n/* The slider */\n.toggle__slider {\n position: absolute;\n cursor: pointer;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #ccc;\n transition: all 0.4s ease;\n}\n.toggle__slider.round {\n border-radius: 34px;\n}\n.toggle__slider.round:before {\n border-radius: 50%;\n}\n.toggle__slider:before {\n position: absolute;\n content: \"\";\n height: calc(100% - 8px);\n width: calc(50% - 4px);\n left: 4px;\n bottom: 4px;\n background-color: white;\n transition: all 0.4s ease;\n}\n.toggle__slider.with-icon {\n background-color: var(--N000) !important;\n}\n.toggle__slider.with-icon svg {\n position: absolute;\n content: \"\";\n top: -1px;\n left: -1px;\n background-color: var(--N300);\n transition: all 0.4s ease;\n}\n\ninput:checked + .toggle__slider {\n background-color: var(--color);\n}\ninput:checked + .toggle__slider:before {\n transform: translateX(100%);\n}\ninput:checked + .toggle__slider.with-icon svg {\n transform: translateX(100%);\n background-color: var(--color);\n}\n\ninput:focus + .toggle__slider {\n box-shadow: 0 0 1px var(--color);\n}";
@@ -24857,9 +24935,9 @@ exports.ConsequenceAction = void 0;
24857
24935
  })(exports.ConsequenceAction || (exports.ConsequenceAction = {}));
24858
24936
 
24859
24937
  var _g$2;
24860
- function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
24938
+ function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
24861
24939
  var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
24862
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
24940
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
24863
24941
  xmlns: "http://www.w3.org/2000/svg",
24864
24942
  width: "1em",
24865
24943
  height: "1em",
@@ -24938,16 +25016,16 @@ function DeleteComponent(_a) {
24938
25016
  return (jsxRuntime.jsxs("div", { children: [!showCannotDeleteDialogModal && renderDeleteDialog(), showCannotDeleteDialogModal && renderCannotDeleteDialogModal()] }));
24939
25017
  }
24940
25018
 
24941
- var _path$6;
24942
- function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
25019
+ var _path$8;
25020
+ function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
24943
25021
  var SvgIcPencil = function SvgIcPencil(props) {
24944
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
25022
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
24945
25023
  width: "1em",
24946
25024
  height: "1em",
24947
25025
  viewBox: "0 0 20 20",
24948
25026
  fill: "none",
24949
25027
  xmlns: "http://www.w3.org/2000/svg"
24950
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
25028
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
24951
25029
  d: "M10.625 5 15 9.375m-7.5 7.5H3.75a.625.625 0 0 1-.625-.625v-3.491a.625.625 0 0 1 .183-.442l9.375-9.375a.625.625 0 0 1 .884 0l3.491 3.491a.625.625 0 0 1 0 .884L7.5 16.875Z",
24952
25030
  stroke: "#596168",
24953
25031
  strokeWidth: 1.5,
@@ -24956,16 +25034,16 @@ var SvgIcPencil = function SvgIcPencil(props) {
24956
25034
  })));
24957
25035
  };
24958
25036
 
24959
- var _path$5, _path2, _path3;
24960
- function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
25037
+ var _path$7, _path2, _path3;
25038
+ function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
24961
25039
  var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
24962
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
25040
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
24963
25041
  width: "1em",
24964
25042
  height: "1em",
24965
25043
  viewBox: "0 0 12 12",
24966
25044
  fill: "none",
24967
25045
  xmlns: "http://www.w3.org/2000/svg"
24968
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
25046
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
24969
25047
  d: "M3.742 4.674h-2.25v-2.25",
24970
25048
  fill: "#767D84"
24971
25049
  })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -24983,15 +25061,15 @@ var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
24983
25061
  })));
24984
25062
  };
24985
25063
 
24986
- var _path$4;
24987
- function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
25064
+ var _path$6;
25065
+ function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
24988
25066
  var SvgIcMinus = function SvgIcMinus(props) {
24989
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
25067
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
24990
25068
  xmlns: "http://www.w3.org/2000/svg",
24991
25069
  width: "1em",
24992
25070
  height: "1em",
24993
25071
  viewBox: "0 0 14 14"
24994
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
25072
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
24995
25073
  fill: "#959BA1",
24996
25074
  className: "ic-minus_svg__fill-color",
24997
25075
  fillRule: "evenodd",
@@ -25000,9 +25078,9 @@ var SvgIcMinus = function SvgIcMinus(props) {
25000
25078
  };
25001
25079
 
25002
25080
  var _g$1;
25003
- function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
25081
+ function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
25004
25082
  var SvgIcWarning = function SvgIcWarning(props) {
25005
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
25083
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
25006
25084
  xmlns: "http://www.w3.org/2000/svg",
25007
25085
  width: "1em",
25008
25086
  height: "1em",
@@ -25022,9 +25100,9 @@ var SvgIcWarning = function SvgIcWarning(props) {
25022
25100
  };
25023
25101
 
25024
25102
  var _g;
25025
- function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
25103
+ function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
25026
25104
  var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
25027
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
25105
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
25028
25106
  xmlns: "http://www.w3.org/2000/svg",
25029
25107
  width: "1em",
25030
25108
  height: "1em",
@@ -25041,16 +25119,16 @@ var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
25041
25119
  }))));
25042
25120
  };
25043
25121
 
25044
- var _path$3;
25045
- function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
25122
+ var _path$5;
25123
+ function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
25046
25124
  var SvgIcEnter = function SvgIcEnter(props) {
25047
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
25125
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
25048
25126
  width: "1em",
25049
25127
  height: "1em",
25050
25128
  viewBox: "0 0 16 16",
25051
25129
  fill: "none",
25052
25130
  xmlns: "http://www.w3.org/2000/svg"
25053
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
25131
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
25054
25132
  d: "M12.667 4a.667.667 0 0 0-.667.667v2.666a.667.667 0 0 1-.667.667H4.94l.867-.86a.67.67 0 1 0-.947-.947l-2 2a.667.667 0 0 0-.14.22.667.667 0 0 0 0 .507c.032.082.08.157.14.22l2 2a.666.666 0 0 0 .947 0 .667.667 0 0 0 0-.947l-.867-.86h6.393a2 2 0 0 0 2-2V4.667A.667.667 0 0 0 12.667 4Z",
25055
25133
  fill: "#3B444C"
25056
25134
  })));
@@ -25456,15 +25534,15 @@ function Grid(_a) {
25456
25534
  return (jsxRuntime.jsx("div", __assign({ className: "flex-wrap flexbox ".concat(container ? containerClass : ''), style: containerStyles }, containerDivProps, { children: children })));
25457
25535
  }
25458
25536
 
25459
- var _path$2;
25460
- function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
25537
+ var _path$4;
25538
+ function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
25461
25539
  var SvgIcCopy = function SvgIcCopy(props) {
25462
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
25540
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
25463
25541
  xmlns: "http://www.w3.org/2000/svg",
25464
25542
  width: "1em",
25465
25543
  height: "1em",
25466
25544
  viewBox: "0 0 20 20"
25467
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
25545
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
25468
25546
  fill: "#767D84",
25469
25547
  fillRule: "evenodd",
25470
25548
  d: "M15.833 6.917a2.5 2.5 0 0 1 2.5 2.5v6.416a2.5 2.5 0 0 1-2.5 2.5H9.417a2.5 2.5 0 0 1-2.5-2.5V9.417a2.5 2.5 0 0 1 2.5-2.5zm0 1.666H9.417a.833.833 0 0 0-.834.834v6.416c0 .46.373.834.834.834h6.416c.46 0 .834-.373.834-.834V9.417a.833.833 0 0 0-.834-.834zM10.75 1.667c1.24 0 2.256.968 2.33 2.19l.003.143v.75a.833.833 0 0 1-1.66.097l-.006-.097V4c0-.34-.255-.62-.583-.661l-.084-.006H4c-.34 0-.62.255-.661.583L3.333 4v6.75c0 .34.255.62.583.661l.084.006h.75a.833.833 0 0 1 .097 1.66l-.097.006H4a2.333 2.333 0 0 1-2.33-2.19l-.003-.143V4c0-1.24.968-2.256 2.19-2.33L4 1.668h6.75z"
@@ -25561,6 +25639,116 @@ var useWindowSize = function () {
25561
25639
  return windowSize;
25562
25640
  };
25563
25641
 
25642
+ var DEFAULT_PAGE_NUMBER = 1;
25643
+ var URL_FILTER_KEYS = {
25644
+ PAGE_SIZE: 'pageSize',
25645
+ PAGE_NUMBER: 'pageNumber',
25646
+ SEARCH_KEY: 'searchKey',
25647
+ SORT_BY: 'sortBy',
25648
+ SORT_ORDER: 'sortOrder',
25649
+ };
25650
+
25651
+ var PAGE_SIZE = URL_FILTER_KEYS.PAGE_SIZE, PAGE_NUMBER = URL_FILTER_KEYS.PAGE_NUMBER, SEARCH_KEY = URL_FILTER_KEYS.SEARCH_KEY, SORT_BY = URL_FILTER_KEYS.SORT_BY, SORT_ORDER = URL_FILTER_KEYS.SORT_ORDER;
25652
+ /**
25653
+ * Generic hook for implementing URL based filters.
25654
+ * eg: pagination, search, sort.
25655
+ *
25656
+ * The exposed handlers can be consumed directly without the need for explicit state management
25657
+ *
25658
+ * @example Default Usage:
25659
+ * ```tsx
25660
+ * const { pageSize, changePage, ...rest } = useUrlFilters()
25661
+ * ```
25662
+ *
25663
+ * @example Usage with custom type for sort keys and initial sort key:
25664
+ * ```tsx
25665
+ * const { sortBy, sortOrder } = useUrlFilters<'email' | 'name'>({ initialSortKey: 'email' })
25666
+ * ```
25667
+ *
25668
+ */
25669
+ var useUrlFilters = function (_a) {
25670
+ var _b = _a === void 0 ? {} : _a, initialSortKey = _b.initialSortKey;
25671
+ var location = reactRouterDom.useLocation();
25672
+ var history = reactRouterDom.useHistory();
25673
+ var searchParams = new URLSearchParams(location.search);
25674
+ var _c = React.useMemo(function () {
25675
+ var _pageSize = searchParams.get(PAGE_SIZE);
25676
+ var _pageNumber = searchParams.get(PAGE_NUMBER);
25677
+ var _searchKey = searchParams.get(SEARCH_KEY);
25678
+ var _sortOrder = searchParams.get(SORT_ORDER);
25679
+ var _sortBy = searchParams.get(SORT_BY);
25680
+ var sortByKey = (_sortBy || initialSortKey || '');
25681
+ // Fallback to ascending order
25682
+ var sortByOrder = Object.values(exports.SortingOrder).includes(_sortOrder) ? _sortOrder : exports.SortingOrder.ASC;
25683
+ return {
25684
+ pageSize: Number(_pageSize) || DEFAULT_BASE_PAGE_SIZE,
25685
+ pageNumber: Number(_pageNumber) || DEFAULT_PAGE_NUMBER,
25686
+ searchKey: _searchKey || '',
25687
+ sortBy: sortByKey,
25688
+ // sort order should only be applied if the key is available
25689
+ sortOrder: (sortByKey ? sortByOrder : ''),
25690
+ };
25691
+ }, [searchParams]), pageSize = _c.pageSize, pageNumber = _c.pageNumber, searchKey = _c.searchKey, sortBy = _c.sortBy, sortOrder = _c.sortOrder;
25692
+ /**
25693
+ * Used for getting the required result from the API
25694
+ */
25695
+ var offset = pageSize * (pageNumber - 1);
25696
+ /**
25697
+ * Update and replace the search params in the URL.
25698
+ *
25699
+ * Note: Currently only primitive data types are supported
25700
+ */
25701
+ var _updateSearchParam = function (key, value) {
25702
+ searchParams.set(key, String(value));
25703
+ history.replace({ search: searchParams.toString() });
25704
+ };
25705
+ var _resetPageNumber = function () {
25706
+ _updateSearchParam(PAGE_NUMBER, DEFAULT_PAGE_NUMBER);
25707
+ };
25708
+ var changePage = function (page) {
25709
+ _updateSearchParam(PAGE_NUMBER, page);
25710
+ };
25711
+ var changePageSize = function (_pageSize) {
25712
+ _updateSearchParam(PAGE_SIZE, _pageSize);
25713
+ _resetPageNumber();
25714
+ };
25715
+ var handleSearch = function (searchTerm) {
25716
+ _updateSearchParam(SEARCH_KEY, searchTerm);
25717
+ _resetPageNumber();
25718
+ };
25719
+ var handleSorting = function (_sortBy) {
25720
+ var order;
25721
+ if (_sortBy === sortBy && sortOrder === exports.SortingOrder.ASC) {
25722
+ order = exports.SortingOrder.DESC;
25723
+ }
25724
+ else {
25725
+ order = exports.SortingOrder.ASC;
25726
+ }
25727
+ _updateSearchParam(SORT_BY, _sortBy);
25728
+ _updateSearchParam(SORT_ORDER, order);
25729
+ // Reset page number on sorting change
25730
+ _resetPageNumber();
25731
+ };
25732
+ var clearFilters = function () {
25733
+ Object.values(URL_FILTER_KEYS).forEach(function (key) {
25734
+ searchParams.delete(key);
25735
+ });
25736
+ history.replace({ search: searchParams.toString() });
25737
+ };
25738
+ return {
25739
+ pageSize: pageSize,
25740
+ changePage: changePage,
25741
+ changePageSize: changePageSize,
25742
+ searchKey: searchKey,
25743
+ handleSearch: handleSearch,
25744
+ offset: offset,
25745
+ sortBy: sortBy,
25746
+ sortOrder: sortOrder,
25747
+ handleSorting: handleSorting,
25748
+ clearFilters: clearFilters,
25749
+ };
25750
+ };
25751
+
25564
25752
  var StatusConstants = {
25565
25753
  NOT_DEPLOYED: {
25566
25754
  noSpaceLower: 'notdeployed',
@@ -28296,15 +28484,15 @@ var getInferredTypeFromValueType = function (value) {
28296
28484
  }
28297
28485
  };
28298
28486
 
28299
- var _path$1;
28300
- function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
28487
+ var _path$3;
28488
+ function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
28301
28489
  var SvgIcChevronDown = function SvgIcChevronDown(props) {
28302
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
28490
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
28303
28491
  xmlns: "http://www.w3.org/2000/svg",
28304
28492
  width: "1em",
28305
28493
  height: "1em",
28306
28494
  viewBox: "0 0 24 24"
28307
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
28495
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
28308
28496
  fill: "#999",
28309
28497
  className: "ic-chevron-down_svg__fill-color",
28310
28498
  fillRule: "nonzero",
@@ -28363,16 +28551,16 @@ var Form = RJSF.default;
28363
28551
  var validator = RJSFValidator.default;
28364
28552
  var RJSFForm = function (props) { return (jsxRuntime.jsx(Form, __assign({ noHtml5Validate: true, showErrorList: false, autoComplete: "off" }, props, { validator: validator, templates: __assign(__assign({}, templates), props.templates), widgets: __assign(__assign({}, widgets), props.widgets), translateString: translateString }))); };
28365
28553
 
28366
- var _style, _rect;
28367
- function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
28554
+ var _style, _rect$2;
28555
+ function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
28368
28556
  var SvgIcRotateDevtron = function SvgIcRotateDevtron(props) {
28369
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
28557
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
28370
28558
  width: "1em",
28371
28559
  height: "1em",
28372
28560
  viewBox: "0 0 100 100",
28373
28561
  fill: "none",
28374
28562
  xmlns: "http://www.w3.org/2000/svg"
28375
- }, props), _style || (_style = /*#__PURE__*/React__namespace.createElement("style", null, "@keyframes path-fill{0%,30%,to{fill:#3989d9}45%{fill:#abcff3}}@keyframes top-shape{0%,to{transform:translateX(0) translateY(0) rotate(0deg);transform-origin:center center}30%{transform:translateX(0) translateY(0) rotate(10deg);transform-origin:center center}45%{transform:translateX(-6px) translateY(-6px) rotate(15deg);transform-origin:center center}}@keyframes bottom-shape{0%,to{transform:translateX(0) translateY(0) rotate(0deg);transform-origin:center center}30%{transform:translateX(0) translateY(0) rotate(10deg);transform-origin:center center}45%{transform:translateX(6px) translateY(6px) rotate(15deg);transform-origin:center center}}@keyframes rotate-group{0%,44%{transform:rotate(0deg)}to{transform:rotate(360deg);animation-timing-function:ease-in-out}}")), _rect || (_rect = /*#__PURE__*/React__namespace.createElement("rect", {
28563
+ }, props), _style || (_style = /*#__PURE__*/React__namespace.createElement("style", null, "@keyframes path-fill{0%,30%,to{fill:#3989d9}45%{fill:#abcff3}}@keyframes top-shape{0%,to{transform:translateX(0) translateY(0) rotate(0deg);transform-origin:center center}30%{transform:translateX(0) translateY(0) rotate(10deg);transform-origin:center center}45%{transform:translateX(-6px) translateY(-6px) rotate(15deg);transform-origin:center center}}@keyframes bottom-shape{0%,to{transform:translateX(0) translateY(0) rotate(0deg);transform-origin:center center}30%{transform:translateX(0) translateY(0) rotate(10deg);transform-origin:center center}45%{transform:translateX(6px) translateY(6px) rotate(15deg);transform-origin:center center}}@keyframes rotate-group{0%,44%{transform:rotate(0deg)}to{transform:rotate(360deg);animation-timing-function:ease-in-out}}")), _rect$2 || (_rect$2 = /*#__PURE__*/React__namespace.createElement("rect", {
28376
28564
  width: 100,
28377
28565
  height: 100,
28378
28566
  rx: 20,
@@ -28640,16 +28828,16 @@ function DraggableWrapper(_a) {
28640
28828
  } }, { children: children })) })) })));
28641
28829
  }
28642
28830
 
28643
- var _path;
28644
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
28831
+ var _path$2;
28832
+ function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
28645
28833
  var SvgIcDrag = function SvgIcDrag(props) {
28646
- return /*#__PURE__*/React__namespace.createElement("svg", _extends({
28834
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
28647
28835
  width: "1em",
28648
28836
  height: "1em",
28649
28837
  viewBox: "0 0 16 16",
28650
28838
  fill: "none",
28651
28839
  xmlns: "http://www.w3.org/2000/svg"
28652
- }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
28840
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
28653
28841
  d: "M10.334 9.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5.667 9.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM10.334 5.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5.667 5.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM10.334 13.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5.667 13.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",
28654
28842
  fill: "#596168"
28655
28843
  })));
@@ -28771,11 +28959,302 @@ var Pagination = function (_a) {
28771
28959
  jsxRuntime.jsxs("div", __assign({ className: rootClassName || '' }, { children: [jsxRuntime.jsxs("div", __assign({ className: "page-number" }, { children: [offset + 1, " - ", lastPageNo, " of ", size] })), jsxRuntime.jsxs("ul", __assign({ className: "pagination" }, { children: [jsxRuntime.jsx("li", __assign({ className: "page" }, { children: jsxRuntime.jsx("button", __assign({ className: "page__button page__button--icon", disabled: !pageNoIndex, onClick: selectPreviousPage, type: "button", "aria-label": "Previous page" }, { children: jsxRuntime.jsx("span", __assign({ className: "left-icon" }, { children: jsxRuntime.jsx("i", { className: "fa fa-chevron-left" }) })) })) })), visiblePages.map(function (page) { return (jsxRuntime.jsx(PageValueItem, { value: page.value, isSelected: page.selected, selectPage: selectPage }, page.value)); }), jsxRuntime.jsx("li", __assign({ className: "page" }, { children: jsxRuntime.jsx("button", __assign({ className: "page__button page__button--icon", disabled: pageNoIndex === pages.length - 1, onClick: selectNextPage, type: "button", "aria-label": "Next page" }, { children: jsxRuntime.jsx("span", __assign({ className: "left-icon" }, { children: jsxRuntime.jsx("i", { className: "fa fa-chevron-right" }) })) })) }))] })), !isPageSizeFix && (jsxRuntime.jsxs("div", __assign({ className: "select" }, { children: [jsxRuntime.jsx("span", __assign({ className: "select__placeholder" }, { children: "Rows per page" })), jsxRuntime.jsx(PageSizeSelector, { pageSizeOptions: pageSizeOptions, pageSize: pageSize, changePageSize: changePageSize })] })))] })));
28772
28960
  };
28773
28961
 
28962
+ /**
28963
+ * User Status received from the API
28964
+ */
28965
+ exports.UserStatusDto = void 0;
28966
+ (function (UserStatusDto) {
28967
+ UserStatusDto["active"] = "active";
28968
+ UserStatusDto["inactive"] = "inactive";
28969
+ })(exports.UserStatusDto || (exports.UserStatusDto = {}));
28970
+ /**
28971
+ * User status for the frontend
28972
+ */
28973
+ exports.UserStatus = void 0;
28974
+ (function (UserStatus) {
28975
+ UserStatus["active"] = "active";
28976
+ UserStatus["inactive"] = "inactive";
28977
+ UserStatus["temporary"] = "temporary";
28978
+ })(exports.UserStatus || (exports.UserStatus = {}));
28979
+
28980
+ var BulkSelectionDropdownItems = function (_a) {
28981
+ var locator = _a.locator, label = _a.label, isSelected = _a.isSelected, handleBulkSelection = _a.handleBulkSelection, Icon = _a.icon;
28982
+ var handleSelect = function () {
28983
+ handleBulkSelection({
28984
+ action: locator,
28985
+ });
28986
+ };
28987
+ return (jsxRuntime.jsxs("button", __assign({ "data-testid": "bulk-action-".concat(locator), onClick: handleSelect, className: "dc__no-border dc__outline-none-imp w-100 flexbox h-32 dc__align-items-center pt-6 pr-8 pb-6 pl-8 dc__gap-8 ".concat(isSelected ? 'cb-5 bcb-2 fs-13 fw-6 lh-20' : 'dc__no-background cn-9 fs-13 fw-4 lh-20 dc__hover-n50'), type: "button" }, { children: [jsxRuntime.jsx(Icon, { className: "icon-dim-16" }), label] })));
28988
+ };
28989
+
28990
+ exports.BulkSelectionEvents = void 0;
28991
+ (function (BulkSelectionEvents) {
28992
+ BulkSelectionEvents["CLEAR_ALL_SELECTIONS"] = "CLEAR_ALL_SELECTIONS";
28993
+ BulkSelectionEvents["CLEAR_IDENTIFIERS"] = "CLEAR_IDENTIFIERS";
28994
+ BulkSelectionEvents["SELECT_ALL_ACROSS_PAGES"] = "SELECT_ALL_ACROSS_PAGES";
28995
+ BulkSelectionEvents["SELECT_ALL_ON_PAGE"] = "SELECT_ALL_ON_PAGE";
28996
+ BulkSelectionEvents["SELECT_IDENTIFIER"] = "SELECT_IDENTIFIER";
28997
+ BulkSelectionEvents["CLEAR_IDENTIFIERS_AFTER_ACROSS_SELECTION"] = "CLEAR_IDENTIFIERS_AFTER_ACROSS_SELECTION";
28998
+ BulkSelectionEvents["CLEAR_SELECTIONS_AND_SELECT_ALL_ACROSS_PAGES"] = "CLEAR_SELECTIONS_AND_SELECT_ALL_ACROSS_PAGES";
28999
+ })(exports.BulkSelectionEvents || (exports.BulkSelectionEvents = {}));
29000
+ exports.SelectAllDialogStatus = void 0;
29001
+ (function (SelectAllDialogStatus) {
29002
+ SelectAllDialogStatus["OPEN"] = "OPEN";
29003
+ SelectAllDialogStatus["CLOSED"] = "CLOSED";
29004
+ })(exports.SelectAllDialogStatus || (exports.SelectAllDialogStatus = {}));
29005
+
29006
+ var _a;
29007
+ var BULK_DROPDOWN_TEST_ID = 'bulk-selection-pop-up-menu';
29008
+ var BulkSelectionOptionsLabels = (_a = {},
29009
+ _a[exports.BulkSelectionEvents.SELECT_ALL_ON_PAGE] = 'All on this page',
29010
+ _a[exports.BulkSelectionEvents.SELECT_ALL_ACROSS_PAGES] = 'All across pages',
29011
+ _a[exports.BulkSelectionEvents.CLEAR_ALL_SELECTIONS] = 'Clear selection',
29012
+ _a);
29013
+ // Considering application can not be named as *
29014
+ var SELECT_ALL_ACROSS_PAGES_LOCATOR = '*';
29015
+ var getInvalidActionMessage = function (action) { return "Invalid action ".concat(action, " passed to useBulkSelection"); };
29016
+ var BULK_SELECTION_CONTEXT_ERROR = 'useBulkSelection must be used within BulkSelectionContext';
29017
+
29018
+ // giving type any here since not exporting this context, rather using it through useBulkSelection hook which is typed
29019
+ var BulkSelectionContext = React.createContext({
29020
+ selectedIdentifiers: {},
29021
+ handleBulkSelection: noop$1,
29022
+ isChecked: false,
29023
+ checkboxValue: exports.CHECKBOX_VALUE.CHECKED,
29024
+ });
29025
+ var useBulkSelection = function () {
29026
+ var context = React.useContext(BulkSelectionContext);
29027
+ if (!context) {
29028
+ throw new Error(BULK_SELECTION_CONTEXT_ERROR);
29029
+ }
29030
+ return context;
29031
+ };
29032
+ var BulkSelectionProvider = function (_a) {
29033
+ var children = _a.children, identifiers = _a.identifiers, getSelectAllDialogStatus = _a.getSelectAllDialogStatus;
29034
+ var _b = __read(React.useState({}), 2), selectedIdentifiers = _b[0], setSelectedIdentifiers = _b[1];
29035
+ var setIdentifiersAfterClear = function (newIdentifiers, selectedIds) {
29036
+ var _newIdentifiers = JSON.parse(JSON.stringify(newIdentifiers));
29037
+ selectedIds.forEach(function (id) {
29038
+ delete _newIdentifiers[id];
29039
+ });
29040
+ setSelectedIdentifiers(_newIdentifiers);
29041
+ };
29042
+ var setIdentifiersAfterPageSelection = function (baseObject) {
29043
+ var _selectedIdentifiers = JSON.parse(JSON.stringify(selectedIdentifiers));
29044
+ // removing bulk selection across pages if present
29045
+ if (_selectedIdentifiers[SELECT_ALL_ACROSS_PAGES_LOCATOR]) {
29046
+ delete _selectedIdentifiers[SELECT_ALL_ACROSS_PAGES_LOCATOR];
29047
+ }
29048
+ setSelectedIdentifiers(__assign(__assign({}, _selectedIdentifiers), baseObject));
29049
+ };
29050
+ var handleBulkSelection = function (_a) {
29051
+ var _b, _c;
29052
+ var _d, _e;
29053
+ var action = _a.action, data = _a.data;
29054
+ var selectedIds = (_d = data === null || data === void 0 ? void 0 : data.identifierIds) !== null && _d !== void 0 ? _d : [];
29055
+ var identifierObject = (_e = data === null || data === void 0 ? void 0 : data.identifierObject) !== null && _e !== void 0 ? _e : {};
29056
+ switch (action) {
29057
+ case exports.BulkSelectionEvents.CLEAR_ALL_SELECTIONS:
29058
+ setSelectedIdentifiers({});
29059
+ break;
29060
+ case exports.BulkSelectionEvents.CLEAR_IDENTIFIERS_AFTER_ACROSS_SELECTION: {
29061
+ setIdentifiersAfterClear(identifiers, selectedIds);
29062
+ break;
29063
+ }
29064
+ case exports.BulkSelectionEvents.CLEAR_IDENTIFIERS: {
29065
+ setIdentifiersAfterClear(selectedIdentifiers, selectedIds);
29066
+ break;
29067
+ }
29068
+ case exports.BulkSelectionEvents.SELECT_ALL_ACROSS_PAGES: {
29069
+ if (selectedIdentifiers[SELECT_ALL_ACROSS_PAGES_LOCATOR]) {
29070
+ return;
29071
+ }
29072
+ var selectedIdentifiersLength = Object.keys(selectedIdentifiers).length;
29073
+ // This is for showing a modal dialog if applicable to confirm if bulk selection is to be applied
29074
+ // Do note that the 'getSelectAllDialogStatus' should be called after the length check explicitly
29075
+ // otherwise the modal will open each time
29076
+ if (selectedIdentifiersLength > 0 && getSelectAllDialogStatus() === exports.SelectAllDialogStatus.OPEN) {
29077
+ return;
29078
+ }
29079
+ setSelectedIdentifiers((_b = {},
29080
+ _b[SELECT_ALL_ACROSS_PAGES_LOCATOR] = true,
29081
+ _b));
29082
+ break;
29083
+ }
29084
+ case exports.BulkSelectionEvents.CLEAR_SELECTIONS_AND_SELECT_ALL_ACROSS_PAGES:
29085
+ setSelectedIdentifiers((_c = {},
29086
+ _c[SELECT_ALL_ACROSS_PAGES_LOCATOR] = true,
29087
+ _c));
29088
+ break;
29089
+ case exports.BulkSelectionEvents.SELECT_ALL_ON_PAGE: {
29090
+ setIdentifiersAfterPageSelection(identifiers);
29091
+ break;
29092
+ }
29093
+ case exports.BulkSelectionEvents.SELECT_IDENTIFIER: {
29094
+ setIdentifiersAfterPageSelection(identifierObject);
29095
+ break;
29096
+ }
29097
+ default:
29098
+ throw new Error(getInvalidActionMessage(action));
29099
+ }
29100
+ };
29101
+ var getBulkSelectionCheckboxValues = function () {
29102
+ var selectedIdentifiersArray = Object.keys(selectedIdentifiers);
29103
+ if (selectedIdentifiersArray.length === 0) {
29104
+ return {
29105
+ isChecked: false,
29106
+ checkboxValue: exports.CHECKBOX_VALUE.CHECKED,
29107
+ };
29108
+ }
29109
+ // if selectedIdentifiers contains select all across pages locator then it means all are selected
29110
+ if (selectedIdentifiers[SELECT_ALL_ACROSS_PAGES_LOCATOR]) {
29111
+ return {
29112
+ isChecked: true,
29113
+ checkboxValue: exports.CHECKBOX_VALUE.BULK_CHECKED,
29114
+ };
29115
+ }
29116
+ // if all the identifiers are selected then CHECKED else intermediate
29117
+ var areAllPresentIdentifiersSelected = Object.keys(identifiers).every(function (identifierId) { return selectedIdentifiers[identifierId]; });
29118
+ if (areAllPresentIdentifiersSelected) {
29119
+ return {
29120
+ isChecked: true,
29121
+ checkboxValue: exports.CHECKBOX_VALUE.CHECKED,
29122
+ };
29123
+ }
29124
+ return {
29125
+ isChecked: true,
29126
+ checkboxValue: exports.CHECKBOX_VALUE.INTERMEDIATE,
29127
+ };
29128
+ };
29129
+ var _c = getBulkSelectionCheckboxValues(), isChecked = _c.isChecked, checkboxValue = _c.checkboxValue;
29130
+ var value = React.useMemo(function () { return ({
29131
+ selectedIdentifiers: selectedIdentifiers,
29132
+ handleBulkSelection: handleBulkSelection,
29133
+ isChecked: isChecked,
29134
+ checkboxValue: checkboxValue,
29135
+ }); }, [selectedIdentifiers, handleBulkSelection, isChecked, checkboxValue]);
29136
+ return jsxRuntime.jsx(BulkSelectionContext.Provider, __assign({ value: value }, { children: children }));
29137
+ };
29138
+
29139
+ var _rect$1, _path$1;
29140
+ function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
29141
+ var SvgIcCheckSquare = function SvgIcCheckSquare(props) {
29142
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
29143
+ width: "1em",
29144
+ height: "1em",
29145
+ viewBox: "0 0 16 16",
29146
+ fill: "none",
29147
+ xmlns: "http://www.w3.org/2000/svg"
29148
+ }, props), _rect$1 || (_rect$1 = /*#__PURE__*/React__namespace.createElement("rect", {
29149
+ x: 2,
29150
+ y: 2,
29151
+ width: 12,
29152
+ height: 12,
29153
+ rx: 2,
29154
+ stroke: "#596168",
29155
+ strokeWidth: 1.5,
29156
+ strokeLinecap: "round",
29157
+ strokeLinejoin: "round"
29158
+ })), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
29159
+ d: "m11.208 5.958-4.083 4.083L5.083 8",
29160
+ stroke: "#596168",
29161
+ strokeWidth: 1.5,
29162
+ strokeLinecap: "round",
29163
+ strokeLinejoin: "round"
29164
+ })));
29165
+ };
29166
+
29167
+ var _rect, _path;
29168
+ function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
29169
+ var SvgIcCheckAll = function SvgIcCheckAll(props) {
29170
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
29171
+ width: "1em",
29172
+ height: "1em",
29173
+ viewBox: "0 0 17 17",
29174
+ fill: "none",
29175
+ xmlns: "http://www.w3.org/2000/svg"
29176
+ }, props), _rect || (_rect = /*#__PURE__*/React__namespace.createElement("rect", {
29177
+ x: 2,
29178
+ y: 2,
29179
+ width: 11.2,
29180
+ height: 11.2,
29181
+ rx: 2,
29182
+ stroke: "#596168",
29183
+ strokeWidth: 1.5,
29184
+ strokeLinecap: "round",
29185
+ strokeLinejoin: "round"
29186
+ })), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
29187
+ d: "M15.467 5.866v5.6a4 4 0 0 1-4 4h-5.6M10.35 5.85l-3.5 3.5L5.1 7.6",
29188
+ stroke: "#596168",
29189
+ strokeWidth: 1.5,
29190
+ strokeLinecap: "round",
29191
+ strokeLinejoin: "round"
29192
+ })));
29193
+ };
29194
+
29195
+ var _defs, _use;
29196
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
29197
+ var SvgIcClose = function SvgIcClose(props) {
29198
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
29199
+ xmlns: "http://www.w3.org/2000/svg",
29200
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
29201
+ width: "1em",
29202
+ height: "1em",
29203
+ viewBox: "0 0 24 24"
29204
+ }, props), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("path", {
29205
+ id: "ic-close_svg__a",
29206
+ className: "ic-close_svg__stroke-color",
29207
+ d: "M18.295 5.705a.997.997 0 0 0-1.41 0L12 10.59 7.115 5.705a.997.997 0 1 0-1.41 1.41L10.59 12l-4.885 4.885a.997.997 0 1 0 1.41 1.41L12 13.41l4.885 4.885a.997.997 0 0 0 1.41-1.41L13.41 12l4.885-4.885a.997.997 0 0 0 0-1.41z"
29208
+ }))), _use || (_use = /*#__PURE__*/React__namespace.createElement("use", {
29209
+ fill: "#999",
29210
+ xlinkHref: "#ic-close_svg__a",
29211
+ fillRule: "evenodd"
29212
+ })));
29213
+ };
29214
+
29215
+ var BulkSelection = function (_a) {
29216
+ var showPagination = _a.showPagination;
29217
+ var _b = useBulkSelection(), handleBulkSelection = _b.handleBulkSelection, selectedIdentifiers = _b.selectedIdentifiers, isChecked = _b.isChecked, checkboxValue = _b.checkboxValue;
29218
+ var areOptionsSelected = Object.keys(selectedIdentifiers).length > 0;
29219
+ var BulkSelectionItems = __spreadArray(__spreadArray([
29220
+ {
29221
+ locator: exports.BulkSelectionEvents.SELECT_ALL_ON_PAGE,
29222
+ label: BulkSelectionOptionsLabels[exports.BulkSelectionEvents.SELECT_ALL_ON_PAGE],
29223
+ isSelected: isChecked && checkboxValue === exports.CHECKBOX_VALUE.CHECKED,
29224
+ icon: SvgIcCheckSquare,
29225
+ }
29226
+ ], __read((showPagination
29227
+ ? [
29228
+ {
29229
+ locator: exports.BulkSelectionEvents.SELECT_ALL_ACROSS_PAGES,
29230
+ label: BulkSelectionOptionsLabels[exports.BulkSelectionEvents.SELECT_ALL_ACROSS_PAGES],
29231
+ isSelected: isChecked && checkboxValue === exports.CHECKBOX_VALUE.BULK_CHECKED,
29232
+ icon: SvgIcCheckAll,
29233
+ },
29234
+ ]
29235
+ : [])), false), __read((areOptionsSelected
29236
+ ? [
29237
+ {
29238
+ locator: exports.BulkSelectionEvents.CLEAR_ALL_SELECTIONS,
29239
+ label: BulkSelectionOptionsLabels[exports.BulkSelectionEvents.CLEAR_ALL_SELECTIONS],
29240
+ isSelected: false,
29241
+ icon: SvgIcClose,
29242
+ },
29243
+ ]
29244
+ : [])), false);
29245
+ return (jsxRuntime.jsxs(PopupMenu, __assign({ autoClose: true }, { children: [jsxRuntime.jsxs(PopupMenu.Button, __assign({ isKebab: true, rootClassName: "h-20 flexbox p-0 dc__no-background dc__no-border dc__outline-none-imp", dataTestId: BULK_DROPDOWN_TEST_ID }, { children: [jsxRuntime.jsx(Checkbox$1, { isChecked: isChecked, onChange: noop$1, rootClassName: "icon-dim-20 m-0", value: checkboxValue }), jsxRuntime.jsx(SvgIcChevronDown, { className: "icon-dim-20 fcn-6 dc__no-shrink" })] })), jsxRuntime.jsx(PopupMenu.Body, __assign({ rootClassName: "dc__top-22 w-150 dc__right-0 pt-4 pb-4 pl-0 pr-0 bcn-0 flex column dc__content-start dc__align-start dc__position-abs bcn-0 dc__border dc__border-radius-4-imp" }, { children: BulkSelectionItems.map(function (item) { return (jsxRuntime.jsx(BulkSelectionDropdownItems, { locator: item.locator, label: item.label, isSelected: item.isSelected, icon: item.icon, handleBulkSelection: handleBulkSelection }, item.locator)); }) }))] })));
29246
+ };
29247
+
28774
29248
  exports.AddCDButton = AddCDButton;
28775
29249
  exports.AppStatus = AppStatus;
29250
+ exports.BULK_DROPDOWN_TEST_ID = BULK_DROPDOWN_TEST_ID;
29251
+ exports.BULK_SELECTION_CONTEXT_ERROR = BULK_SELECTION_CONTEXT_ERROR;
28776
29252
  exports.BreadCrumb = BreadCrumb;
28777
29253
  exports.BreadcrumbStore = Store;
28778
29254
  exports.BuildStageVariable = BuildStageVariable;
29255
+ exports.BulkSelection = BulkSelection;
29256
+ exports.BulkSelectionOptionsLabels = BulkSelectionOptionsLabels;
29257
+ exports.BulkSelectionProvider = BulkSelectionProvider;
28779
29258
  exports.CDModalTab = CDModalTab;
28780
29259
  exports.ChartVersionAndTypeSelector = ChartVersionAndTypeSelector;
28781
29260
  exports.Checkbox = Checkbox$1;
@@ -28785,6 +29264,7 @@ exports.ConditionalWrap = ConditionalWrap;
28785
29264
  exports.ConfirmationDialog = ConfirmationDialog;
28786
29265
  exports.CustomInput = CustomInput;
28787
29266
  exports.CustomSelect = CustomSelect;
29267
+ exports.DEFAULT_BASE_PAGE_SIZE = DEFAULT_BASE_PAGE_SIZE;
28788
29268
  exports.DEFAULT_TAG_DATA = DEFAULT_TAG_DATA;
28789
29269
  exports.DOCUMENTATION = DOCUMENTATION;
28790
29270
  exports.DOCUMENTATION_HOME_PAGE = DOCUMENTATION_HOME_PAGE;
@@ -28832,11 +29312,13 @@ exports.RepositoryAction = RepositoryAction;
28832
29312
  exports.ResizableTagTextArea = ResizableTagTextArea;
28833
29313
  exports.ResizableTextarea = ResizableTextarea;
28834
29314
  exports.SELECTED_APPROVAL_TAB_STATE = SELECTED_APPROVAL_TAB_STATE;
29315
+ exports.SELECT_ALL_ACROSS_PAGES_LOCATOR = SELECT_ALL_ACROSS_PAGES_LOCATOR;
28835
29316
  exports.ScanVulnerabilitiesTable = ScanVulnerabilitiesTable;
28836
29317
  exports.SearchBar = SearchBar;
28837
29318
  exports.ServerError = ServerError;
28838
29319
  exports.ServerErrors = ServerErrors;
28839
29320
  exports.SingleSelectOption = SingleSelectOption;
29321
+ exports.SortableTableHeaderCell = SortableTableHeaderCell;
28840
29322
  exports.SourceTypeMap = SourceTypeMap;
28841
29323
  exports.StyledRadioGroup = RadioGroup;
28842
29324
  exports.TOAST_ACCESS_DENIED = TOAST_ACCESS_DENIED;
@@ -28853,6 +29335,7 @@ exports.TriggerTypeMap = TriggerTypeMap;
28853
29335
  exports.URLS = URLS;
28854
29336
  exports.VisibleModal = VisibleModal;
28855
29337
  exports.VisibleModal2 = VisibleModal2;
29338
+ exports.abortPreviousRequests = abortPreviousRequests;
28856
29339
  exports.closeOnEscKeyPressed = closeOnEscKeyPressed;
28857
29340
  exports.copyToClipboard = copyToClipboard;
28858
29341
  exports.createGitCommitUrl = createGitCommitUrl;
@@ -28867,6 +29350,8 @@ exports.getCookie = getCookie;
28867
29350
  exports.getEmptyArrayOfLength = getEmptyArrayOfLength;
28868
29351
  exports.getFilteredChartVersions = getFilteredChartVersions;
28869
29352
  exports.getInferredTypeFromValueType = getInferredTypeFromValueType;
29353
+ exports.getInvalidActionMessage = getInvalidActionMessage;
29354
+ exports.getIsRequestAborted = getIsRequestAborted;
28870
29355
  exports.getLockedJSON = getLockedJSON;
28871
29356
  exports.getLoginInfo = getLoginInfo;
28872
29357
  exports.getRandomColor = getRandomColor;
@@ -28892,10 +29377,12 @@ exports.toastAccessDenied = toastAccessDenied;
28892
29377
  exports.trash = trash;
28893
29378
  exports.useAsync = useAsync;
28894
29379
  exports.useBreadcrumb = useBreadcrumb;
29380
+ exports.useBulkSelection = useBulkSelection;
28895
29381
  exports.useClickOutside = useClickOutside;
28896
29382
  exports.useEffectAfterMount = useEffectAfterMount;
28897
29383
  exports.useForm = useForm;
28898
29384
  exports.useSearchString = useSearchString;
28899
29385
  exports.useSuperAdmin = useSuperAdmin;
28900
29386
  exports.useThrottledEffect = useThrottledEffect;
29387
+ exports.useUrlFilters = useUrlFilters;
28901
29388
  exports.useWindowSize = useWindowSize;