@devtron-labs/devtron-fe-common-lib 0.0.59-beta-11 → 0.0.59

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 (58) hide show
  1. package/dist/Common/Api.d.ts +0 -9
  2. package/dist/Common/Constants.d.ts +0 -14
  3. package/dist/Common/Hooks/index.d.ts +0 -1
  4. package/dist/Common/Types.d.ts +3 -16
  5. package/dist/Common/index.d.ts +0 -1
  6. package/dist/index.d.ts +1 -3
  7. package/dist/index.js +150 -599
  8. package/package.json +1 -1
  9. package/src/Common/Api.ts +0 -21
  10. package/src/Common/Constants.ts +1 -17
  11. package/src/Common/Hooks/index.ts +0 -1
  12. package/src/Common/SearchBar/SearchBar.component.tsx +11 -23
  13. package/src/Common/Types.ts +2 -16
  14. package/src/Common/index.ts +0 -1
  15. package/src/index.ts +1 -3
  16. package/dist/Common/Hooks/useUrlFilters/constants.d.ts +0 -8
  17. package/dist/Common/Hooks/useUrlFilters/index.d.ts +0 -2
  18. package/dist/Common/Hooks/useUrlFilters/types.d.ts +0 -6
  19. package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +0 -32
  20. package/dist/Common/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +0 -18
  21. package/dist/Common/SortableTableHeaderCell/index.d.ts +0 -2
  22. package/dist/Common/SortableTableHeaderCell/types.d.ts +0 -25
  23. package/dist/Pages/GlobalConfigurations/Authorization/constants.d.ts +0 -15
  24. package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +0 -1
  25. package/dist/Pages/GlobalConfigurations/index.d.ts +0 -1
  26. package/dist/Pages/index.d.ts +0 -1
  27. package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +0 -4
  28. package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +0 -4
  29. package/dist/Shared/Components/BulkSelection/UseBulkSelection.d.ts +0 -3
  30. package/dist/Shared/Components/BulkSelection/constants.d.ts +0 -8
  31. package/dist/Shared/Components/BulkSelection/index.d.ts +0 -4
  32. package/dist/Shared/Components/BulkSelection/types.d.ts +0 -51
  33. package/dist/Shared/Components/index.d.ts +0 -1
  34. package/dist/Shared/index.d.ts +0 -1
  35. package/src/Assets/Icon/ic-arrow-up-down.svg +0 -3
  36. package/src/Assets/Icon/ic-check-all.svg +0 -5
  37. package/src/Assets/Icon/ic-check-square.svg +0 -4
  38. package/src/Assets/Icon/ic-close.svg +0 -3
  39. package/src/Assets/Icon/ic-sort-arrow-down.svg +0 -3
  40. package/src/Common/Hooks/useUrlFilters/constants.ts +0 -9
  41. package/src/Common/Hooks/useUrlFilters/index.ts +0 -2
  42. package/src/Common/Hooks/useUrlFilters/types.ts +0 -6
  43. package/src/Common/Hooks/useUrlFilters/useUrlFilters.ts +0 -121
  44. package/src/Common/SortableTableHeaderCell/SortableTableHeaderCell.tsx +0 -44
  45. package/src/Common/SortableTableHeaderCell/index.ts +0 -2
  46. package/src/Common/SortableTableHeaderCell/types.ts +0 -26
  47. package/src/Pages/GlobalConfigurations/Authorization/constants.ts +0 -16
  48. package/src/Pages/GlobalConfigurations/Authorization/index.ts +0 -1
  49. package/src/Pages/GlobalConfigurations/index.ts +0 -1
  50. package/src/Pages/index.ts +0 -1
  51. package/src/Shared/Components/BulkSelection/BulkSelection.tsx +0 -81
  52. package/src/Shared/Components/BulkSelection/BulkSelectionDropdownItems.tsx +0 -31
  53. package/src/Shared/Components/BulkSelection/UseBulkSelection.tsx +0 -99
  54. package/src/Shared/Components/BulkSelection/constants.tsx +0 -12
  55. package/src/Shared/Components/BulkSelection/index.ts +0 -4
  56. package/src/Shared/Components/BulkSelection/types.tsx +0 -61
  57. package/src/Shared/Components/index.ts +0 -1
  58. package/src/Shared/index.ts +0 -1
package/dist/index.js CHANGED
@@ -267,22 +267,7 @@ var MAX_Z_INDEX = 2147483647;
267
267
  var SELECTED_APPROVAL_TAB_STATE = {
268
268
  APPROVAL: 'approval',
269
269
  PENDING: 'pending',
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;
270
+ };
286
271
 
287
272
  /******************************************************************************
288
273
  Copyright (c) Microsoft Corporation.
@@ -444,7 +429,6 @@ exports.CHECKBOX_VALUE = void 0;
444
429
  (function (CHECKBOX_VALUE) {
445
430
  CHECKBOX_VALUE["CHECKED"] = "CHECKED";
446
431
  CHECKBOX_VALUE["INTERMEDIATE"] = "INTERMEDIATE";
447
- CHECKBOX_VALUE["BULK_CHECKED"] = "BULK_CHECKED";
448
432
  })(exports.CHECKBOX_VALUE || (exports.CHECKBOX_VALUE = {}));
449
433
  exports.ImageType = void 0;
450
434
  (function (ImageType) {
@@ -748,22 +732,6 @@ var get = function (url, options) {
748
732
  };
749
733
  var trash = function (url, data, options) {
750
734
  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.';
767
735
  };
768
736
 
769
737
  function styleInject(css, ref) {
@@ -797,9 +765,9 @@ var css_248z$9 = ".empty-state {\n height: 100%;\n}\n.empty-state img {\n heig
797
765
  styleInject(css_248z$9);
798
766
 
799
767
  var _g$7;
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); }
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); }
801
769
  var SvgIcProgressing = function SvgIcProgressing(props) {
802
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
770
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
803
771
  xmlns: "http://www.w3.org/2000/svg",
804
772
  viewBox: "0 0 24 24",
805
773
  width: "1em",
@@ -851,8 +819,8 @@ EmptyState.Loading = Loading;
851
819
 
852
820
  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}
853
821
 
854
- function _extends$s() {
855
- _extends$s = Object.assign || function (target) {
822
+ function _extends$n() {
823
+ _extends$n = Object.assign || function (target) {
856
824
  for (var i = 1; i < arguments.length; i++) {
857
825
  var source = arguments[i];
858
826
 
@@ -866,7 +834,7 @@ function _extends$s() {
866
834
  return target;
867
835
  };
868
836
 
869
- return _extends$s.apply(this, arguments);
837
+ return _extends$n.apply(this, arguments);
870
838
  }
871
839
 
872
840
  function _objectWithoutPropertiesLoose$2(source, excluded) {
@@ -1592,7 +1560,7 @@ function ProgressBar(_ref) {
1592
1560
  isIn = _ref.isIn,
1593
1561
  theme = _ref.theme;
1594
1562
 
1595
- var style = _extends$s({}, userStyle, {
1563
+ var style = _extends$n({}, userStyle, {
1596
1564
  animationDuration: delay + "ms",
1597
1565
  animationPlayState: isRunning ? 'running' : 'paused',
1598
1566
  opacity: hide ? 0 : 1
@@ -1869,9 +1837,9 @@ var ToastContainer = function ToastContainer(props) {
1869
1837
  ,
1870
1838
  id: containerId
1871
1839
  }, getToastToRender(function (position, toastList) {
1872
- var containerStyle = !toastList.length ? _extends$s({}, style, {
1840
+ var containerStyle = !toastList.length ? _extends$n({}, style, {
1873
1841
  pointerEvents: 'none'
1874
- }) : _extends$s({}, style);
1842
+ }) : _extends$n({}, style);
1875
1843
  return React.createElement("div", {
1876
1844
  className: getClassName(position),
1877
1845
  style: containerStyle,
@@ -1978,7 +1946,7 @@ function dispatchToast(content, options) {
1978
1946
 
1979
1947
 
1980
1948
  function mergeOptions(type, options) {
1981
- return _extends$s({}, options, {
1949
+ return _extends$n({}, options, {
1982
1950
  type: options && options.type || type,
1983
1951
  toastId: getToastId(options)
1984
1952
  });
@@ -1995,7 +1963,7 @@ function toast(content, options) {
1995
1963
  }
1996
1964
 
1997
1965
  toast.loading = function (content, options) {
1998
- return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$s({
1966
+ return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$n({
1999
1967
  isLoading: true,
2000
1968
  autoClose: false,
2001
1969
  closeOnClick: false,
@@ -2011,7 +1979,7 @@ function handlePromise(promise, _ref2, options) {
2011
1979
  var id;
2012
1980
 
2013
1981
  if (pending) {
2014
- id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$s({}, options, pending));
1982
+ id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$n({}, options, pending));
2015
1983
  }
2016
1984
 
2017
1985
  var resetParams = {
@@ -2030,7 +1998,7 @@ function handlePromise(promise, _ref2, options) {
2030
1998
  return;
2031
1999
  }
2032
2000
 
2033
- var baseParams = _extends$s({
2001
+ var baseParams = _extends$n({
2034
2002
  type: type
2035
2003
  }, resetParams, options, {
2036
2004
  data: result
@@ -2041,10 +2009,10 @@ function handlePromise(promise, _ref2, options) {
2041
2009
  } : input; // if the id is set we know that it's an update
2042
2010
 
2043
2011
  if (id) {
2044
- toast.update(id, _extends$s({}, baseParams, params));
2012
+ toast.update(id, _extends$n({}, baseParams, params));
2045
2013
  } else {
2046
2014
  // using toast.promise without loading
2047
- toast(params.render, _extends$s({}, baseParams, params));
2015
+ toast(params.render, _extends$n({}, baseParams, params));
2048
2016
  }
2049
2017
 
2050
2018
  return result;
@@ -2068,7 +2036,7 @@ toast.warning = /*#__PURE__*/createToastByType(TYPE.WARNING);
2068
2036
  toast.warn = toast.warning;
2069
2037
 
2070
2038
  toast.dark = function (content, options) {
2071
- return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$s({
2039
+ return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$n({
2072
2040
  theme: 'dark'
2073
2041
  }, options)));
2074
2042
  };
@@ -2125,7 +2093,7 @@ toast.update = function (toastId, options) {
2125
2093
  var oldOptions = toast.props,
2126
2094
  oldContent = toast.content;
2127
2095
 
2128
- var nextOptions = _extends$s({}, oldOptions, options, {
2096
+ var nextOptions = _extends$n({}, oldOptions, options, {
2129
2097
  toastId: options.toastId || toastId,
2130
2098
  updateId: generateToastId()
2131
2099
  });
@@ -12042,16 +12010,16 @@ var Modal = function (_a) {
12042
12010
  }, id: "popup", className: "".concat(rootClassName, " popup ").concat(modal ? 'modal' : ''), style: __assign({}, style) }, { children: children })), document.getElementById('visible-modal'));
12043
12011
  };
12044
12012
 
12045
- var _path$i;
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); }
12013
+ var _path$d;
12014
+ 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); }
12047
12015
  var SvgIcCross = function SvgIcCross(props) {
12048
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
12016
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
12049
12017
  width: "1em",
12050
12018
  height: "1em",
12051
12019
  viewBox: "0 0 24 24",
12052
12020
  fill: "none",
12053
12021
  xmlns: "http://www.w3.org/2000/svg"
12054
- }, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
12022
+ }, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
12055
12023
  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",
12056
12024
  fill: "#596168"
12057
12025
  })));
@@ -16350,30 +16318,30 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
16350
16318
 
16351
16319
  var Tippy = index;
16352
16320
 
16353
- var _path$h;
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); }
16321
+ var _path$c;
16322
+ 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); }
16355
16323
  var SvgIcHelp = function SvgIcHelp(props) {
16356
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
16324
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
16357
16325
  xmlns: "http://www.w3.org/2000/svg",
16358
16326
  width: "1em",
16359
16327
  height: "1em",
16360
16328
  viewBox: "0 0 24 24"
16361
- }, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
16329
+ }, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
16362
16330
  fill: "#767D84",
16363
16331
  fillRule: "evenodd",
16364
16332
  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"
16365
16333
  })));
16366
16334
  };
16367
16335
 
16368
- var _path$g;
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); }
16336
+ var _path$b;
16337
+ 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); }
16370
16338
  var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
16371
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
16339
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
16372
16340
  xmlns: "http://www.w3.org/2000/svg",
16373
16341
  viewBox: "0 0 17 16",
16374
16342
  width: "1em",
16375
16343
  height: "1em"
16376
- }, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
16344
+ }, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
16377
16345
  fill: "#767D84",
16378
16346
  fillRule: "evenodd",
16379
16347
  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"
@@ -16425,16 +16393,16 @@ function TippyCustomized(props) {
16425
16393
  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 })));
16426
16394
  }
16427
16395
 
16428
- var _path$f, _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); }
16396
+ var _path$a, _circle, _path2$1;
16397
+ 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); }
16430
16398
  var SvgInjectTag = function SvgInjectTag(props) {
16431
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
16399
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
16432
16400
  width: "1em",
16433
16401
  height: "1em",
16434
16402
  viewBox: "0 0 20 20",
16435
16403
  fill: "none",
16436
16404
  xmlns: "http://www.w3.org/2000/svg"
16437
- }, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
16405
+ }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
16438
16406
  d: "M10 10H3.333",
16439
16407
  stroke: "#596168",
16440
16408
  strokeWidth: 1.5,
@@ -16462,15 +16430,15 @@ function PropagateTagInfo(_a) {
16462
16430
  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" })] })) })));
16463
16431
  }
16464
16432
 
16465
- var _path$e;
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); }
16433
+ var _path$9;
16434
+ 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); }
16467
16435
  var SvgIcInfoOutlined = function SvgIcInfoOutlined(props) {
16468
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
16436
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
16469
16437
  xmlns: "http://www.w3.org/2000/svg",
16470
16438
  width: "1em",
16471
16439
  height: "1em",
16472
16440
  viewBox: "0 0 20 20"
16473
- }, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
16441
+ }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
16474
16442
  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",
16475
16443
  fill: "#06C",
16476
16444
  fillRule: "evenodd"
@@ -16704,15 +16672,15 @@ var TagDetails = function (_a) {
16704
16672
  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" }) }))] })));
16705
16673
  };
16706
16674
 
16707
- var _path$d;
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); }
16675
+ var _path$8;
16676
+ 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); }
16709
16677
  var SvgIcAdd = function SvgIcAdd(props) {
16710
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
16678
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
16711
16679
  xmlns: "http://www.w3.org/2000/svg",
16712
16680
  width: "1em",
16713
16681
  height: "1em",
16714
16682
  viewBox: "0 0 24 24"
16715
- }, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
16683
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
16716
16684
  className: "ic-add_svg__fill-color",
16717
16685
  fill: "#999",
16718
16686
  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"
@@ -16842,8 +16810,8 @@ function ForceDeleteDialog(_a) {
16842
16810
  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?" })] }) })) }));
16843
16811
  }
16844
16812
 
16845
- function _extends$l() {
16846
- _extends$l = Object.assign ? Object.assign.bind() : function (target) {
16813
+ function _extends$g() {
16814
+ _extends$g = Object.assign ? Object.assign.bind() : function (target) {
16847
16815
  for (var i = 1; i < arguments.length; i++) {
16848
16816
  var source = arguments[i];
16849
16817
  for (var key in source) {
@@ -16854,7 +16822,7 @@ function _extends$l() {
16854
16822
  }
16855
16823
  return target;
16856
16824
  };
16857
- return _extends$l.apply(this, arguments);
16825
+ return _extends$g.apply(this, arguments);
16858
16826
  }
16859
16827
 
16860
16828
  /*
@@ -20395,7 +20363,7 @@ var Menu = function Menu(props) {
20395
20363
  getStyles = props.getStyles,
20396
20364
  innerRef = props.innerRef,
20397
20365
  innerProps = props.innerProps;
20398
- return jsx("div", _extends$l({
20366
+ return jsx("div", _extends$g({
20399
20367
  css: getStyles('menu', props),
20400
20368
  className: cx({
20401
20369
  menu: true
@@ -20427,7 +20395,7 @@ var MenuList$1 = function MenuList(props) {
20427
20395
  innerProps = props.innerProps,
20428
20396
  innerRef = props.innerRef,
20429
20397
  isMulti = props.isMulti;
20430
- return jsx("div", _extends$l({
20398
+ return jsx("div", _extends$g({
20431
20399
  css: getStyles('menuList', props),
20432
20400
  className: cx({
20433
20401
  'menu-list': true,
@@ -20458,7 +20426,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
20458
20426
  cx = props.cx,
20459
20427
  getStyles = props.getStyles,
20460
20428
  innerProps = props.innerProps;
20461
- return jsx("div", _extends$l({
20429
+ return jsx("div", _extends$g({
20462
20430
  css: getStyles('noOptionsMessage', props),
20463
20431
  className: cx({
20464
20432
  'menu-notice': true,
@@ -20475,7 +20443,7 @@ var LoadingMessage = function LoadingMessage(props) {
20475
20443
  cx = props.cx,
20476
20444
  getStyles = props.getStyles,
20477
20445
  innerProps = props.innerProps;
20478
- return jsx("div", _extends$l({
20446
+ return jsx("div", _extends$g({
20479
20447
  css: getStyles('loadingMessage', props),
20480
20448
  className: cx({
20481
20449
  'menu-notice': true,
@@ -20563,7 +20531,7 @@ var MenuPortal = /*#__PURE__*/function (_Component2) {
20563
20531
  rect: rect
20564
20532
  }; // same wrapper element whether fixed or portalled
20565
20533
 
20566
- var menuWrapper = jsx("div", _extends$l({
20534
+ var menuWrapper = jsx("div", _extends$g({
20567
20535
  css: getStyles('menuPortal', state),
20568
20536
  className: cx({
20569
20537
  'menu-portal': true
@@ -20599,7 +20567,7 @@ var SelectContainer = function SelectContainer(props) {
20599
20567
  innerProps = props.innerProps,
20600
20568
  isDisabled = props.isDisabled,
20601
20569
  isRtl = props.isRtl;
20602
- return jsx("div", _extends$l({
20570
+ return jsx("div", _extends$g({
20603
20571
  css: getStyles('container', props),
20604
20572
  className: cx({
20605
20573
  '--is-disabled': isDisabled,
@@ -20634,7 +20602,7 @@ var ValueContainer = function ValueContainer(props) {
20634
20602
  isMulti = props.isMulti,
20635
20603
  getStyles = props.getStyles,
20636
20604
  hasValue = props.hasValue;
20637
- return jsx("div", _extends$l({
20605
+ return jsx("div", _extends$g({
20638
20606
  css: getStyles('valueContainer', props),
20639
20607
  className: cx({
20640
20608
  'value-container': true,
@@ -20660,7 +20628,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
20660
20628
  cx = props.cx,
20661
20629
  innerProps = props.innerProps,
20662
20630
  getStyles = props.getStyles;
20663
- return jsx("div", _extends$l({
20631
+ return jsx("div", _extends$g({
20664
20632
  css: getStyles('indicatorsContainer', props),
20665
20633
  className: cx({
20666
20634
  indicators: true
@@ -20691,7 +20659,7 @@ var Svg = function Svg(_ref) {
20691
20659
  var size = _ref.size,
20692
20660
  props = _objectWithoutProperties(_ref, _excluded$2);
20693
20661
 
20694
- return jsx("svg", _extends$l({
20662
+ return jsx("svg", _extends$g({
20695
20663
  height: size,
20696
20664
  width: size,
20697
20665
  viewBox: "0 0 20 20",
@@ -20702,14 +20670,14 @@ var Svg = function Svg(_ref) {
20702
20670
  };
20703
20671
 
20704
20672
  var CrossIcon = function CrossIcon(props) {
20705
- return jsx(Svg, _extends$l({
20673
+ return jsx(Svg, _extends$g({
20706
20674
  size: 20
20707
20675
  }, props), jsx("path", {
20708
20676
  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"
20709
20677
  }));
20710
20678
  };
20711
20679
  var DownChevron = function DownChevron(props) {
20712
- return jsx(Svg, _extends$l({
20680
+ return jsx(Svg, _extends$g({
20713
20681
  size: 20
20714
20682
  }, props), jsx("path", {
20715
20683
  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"
@@ -20742,7 +20710,7 @@ var DropdownIndicator$1 = function DropdownIndicator(props) {
20742
20710
  cx = props.cx,
20743
20711
  getStyles = props.getStyles,
20744
20712
  innerProps = props.innerProps;
20745
- return jsx("div", _extends$l({
20713
+ return jsx("div", _extends$g({
20746
20714
  css: getStyles('dropdownIndicator', props),
20747
20715
  className: cx({
20748
20716
  indicator: true,
@@ -20757,7 +20725,7 @@ var ClearIndicator$1 = function ClearIndicator(props) {
20757
20725
  cx = props.cx,
20758
20726
  getStyles = props.getStyles,
20759
20727
  innerProps = props.innerProps;
20760
- return jsx("div", _extends$l({
20728
+ return jsx("div", _extends$g({
20761
20729
  css: getStyles('clearIndicator', props),
20762
20730
  className: cx({
20763
20731
  indicator: true,
@@ -20787,7 +20755,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
20787
20755
  cx = props.cx,
20788
20756
  getStyles = props.getStyles,
20789
20757
  innerProps = props.innerProps;
20790
- return jsx("span", _extends$l({}, innerProps, {
20758
+ return jsx("span", _extends$g({}, innerProps, {
20791
20759
  css: getStyles('indicatorSeparator', props),
20792
20760
  className: cx({
20793
20761
  'indicator-separator': true
@@ -20842,7 +20810,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
20842
20810
  getStyles = props.getStyles,
20843
20811
  innerProps = props.innerProps,
20844
20812
  isRtl = props.isRtl;
20845
- return jsx("div", _extends$l({
20813
+ return jsx("div", _extends$g({
20846
20814
  css: getStyles('loadingIndicator', props),
20847
20815
  className: cx({
20848
20816
  indicator: true,
@@ -20903,7 +20871,7 @@ var Control = function Control(props) {
20903
20871
  innerRef = props.innerRef,
20904
20872
  innerProps = props.innerProps,
20905
20873
  menuIsOpen = props.menuIsOpen;
20906
- return jsx("div", _extends$l({
20874
+ return jsx("div", _extends$g({
20907
20875
  ref: innerRef,
20908
20876
  css: getStyles('control', props),
20909
20877
  className: cx({
@@ -20935,12 +20903,12 @@ var Group = function Group(props) {
20935
20903
  label = props.label,
20936
20904
  theme = props.theme,
20937
20905
  selectProps = props.selectProps;
20938
- return jsx("div", _extends$l({
20906
+ return jsx("div", _extends$g({
20939
20907
  css: getStyles('group', props),
20940
20908
  className: cx({
20941
20909
  group: true
20942
20910
  }, className)
20943
- }, innerProps), jsx(Heading, _extends$l({}, headingProps, {
20911
+ }, innerProps), jsx(Heading, _extends$g({}, headingProps, {
20944
20912
  selectProps: selectProps,
20945
20913
  theme: theme,
20946
20914
  getStyles: getStyles,
@@ -20972,7 +20940,7 @@ var GroupHeading = function GroupHeading(props) {
20972
20940
  _cleanCommonProps.data;
20973
20941
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
20974
20942
 
20975
- return jsx("div", _extends$l({
20943
+ return jsx("div", _extends$g({
20976
20944
  css: getStyles('groupHeading', props),
20977
20945
  className: cx({
20978
20946
  'group-heading': true
@@ -21048,7 +21016,7 @@ var Input = function Input(props) {
21048
21016
  }, className),
21049
21017
  css: getStyles('input', props),
21050
21018
  "data-value": value || ''
21051
- }, jsx("input", _extends$l({
21019
+ }, jsx("input", _extends$g({
21052
21020
  className: cx({
21053
21021
  input: true
21054
21022
  }, inputClassName),
@@ -21118,7 +21086,7 @@ var MultiValueLabel = MultiValueGeneric;
21118
21086
  function MultiValueRemove$1(_ref5) {
21119
21087
  var children = _ref5.children,
21120
21088
  innerProps = _ref5.innerProps;
21121
- return jsx("div", _extends$l({
21089
+ return jsx("div", _extends$g({
21122
21090
  role: "button"
21123
21091
  }, innerProps), children || jsx(CrossIcon, {
21124
21092
  size: 14
@@ -21207,7 +21175,7 @@ var Option$1 = function Option(props) {
21207
21175
  isSelected = props.isSelected,
21208
21176
  innerRef = props.innerRef,
21209
21177
  innerProps = props.innerProps;
21210
- return jsx("div", _extends$l({
21178
+ return jsx("div", _extends$g({
21211
21179
  css: getStyles('option', props),
21212
21180
  className: cx({
21213
21181
  option: true,
@@ -21239,7 +21207,7 @@ var Placeholder = function Placeholder(props) {
21239
21207
  cx = props.cx,
21240
21208
  getStyles = props.getStyles,
21241
21209
  innerProps = props.innerProps;
21242
- return jsx("div", _extends$l({
21210
+ return jsx("div", _extends$g({
21243
21211
  css: getStyles('placeholder', props),
21244
21212
  className: cx({
21245
21213
  placeholder: true
@@ -21272,7 +21240,7 @@ var SingleValue = function SingleValue(props) {
21272
21240
  getStyles = props.getStyles,
21273
21241
  isDisabled = props.isDisabled,
21274
21242
  innerProps = props.innerProps;
21275
- return jsx("div", _extends$l({
21243
+ return jsx("div", _extends$g({
21276
21244
  css: getStyles('singleValue', props),
21277
21245
  className: cx({
21278
21246
  'single-value': true,
@@ -21520,7 +21488,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
21520
21488
  };
21521
21489
 
21522
21490
  var A11yText = function A11yText(props) {
21523
- return jsx("span", _extends$l({
21491
+ return jsx("span", _extends$g({
21524
21492
  css: _ref
21525
21493
  }, props));
21526
21494
  };
@@ -22056,7 +22024,7 @@ function DummyInput(_ref) {
22056
22024
  var innerRef = _ref.innerRef,
22057
22025
  props = _objectWithoutProperties(_ref, _excluded);
22058
22026
 
22059
- return jsx("input", _extends$l({
22027
+ return jsx("input", _extends$g({
22060
22028
  ref: innerRef
22061
22029
  }, props, {
22062
22030
  css: /*#__PURE__*/css$2({
@@ -23691,7 +23659,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23691
23659
 
23692
23660
  if (!isSearchable) {
23693
23661
  // use a dummy input to maintain focus/blur functionality
23694
- return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$l({
23662
+ return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$g({
23695
23663
  id: id,
23696
23664
  innerRef: this.getInputRef,
23697
23665
  onBlur: this.onInputBlur,
@@ -23705,7 +23673,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23705
23673
  }, ariaAttributes));
23706
23674
  }
23707
23675
 
23708
- return /*#__PURE__*/React__namespace.createElement(Input, _extends$l({}, commonProps, {
23676
+ return /*#__PURE__*/React__namespace.createElement(Input, _extends$g({}, commonProps, {
23709
23677
  autoCapitalize: "none",
23710
23678
  autoComplete: "off",
23711
23679
  autoCorrect: "off",
@@ -23749,7 +23717,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23749
23717
  isFocused = _this$state5.isFocused;
23750
23718
 
23751
23719
  if (!this.hasValue() || !controlShouldRenderValue) {
23752
- return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$l({}, commonProps, {
23720
+ return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$g({}, commonProps, {
23753
23721
  key: "placeholder",
23754
23722
  isDisabled: isDisabled,
23755
23723
  isFocused: isFocused,
@@ -23763,7 +23731,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23763
23731
  return selectValue.map(function (opt, index) {
23764
23732
  var isOptionFocused = opt === focusedValue;
23765
23733
  var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
23766
- return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$l({}, commonProps, {
23734
+ return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$g({}, commonProps, {
23767
23735
  components: {
23768
23736
  Container: MultiValueContainer,
23769
23737
  Label: MultiValueLabel,
@@ -23795,7 +23763,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23795
23763
  }
23796
23764
 
23797
23765
  var singleValue = selectValue[0];
23798
- return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$l({}, commonProps, {
23766
+ return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$g({}, commonProps, {
23799
23767
  data: singleValue,
23800
23768
  isDisabled: isDisabled
23801
23769
  }), this.formatOptionLabel(singleValue, 'value'));
@@ -23821,7 +23789,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23821
23789
  onTouchEnd: this.onClearIndicatorTouchEnd,
23822
23790
  'aria-hidden': 'true'
23823
23791
  };
23824
- return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$l({}, commonProps, {
23792
+ return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$g({}, commonProps, {
23825
23793
  innerProps: innerProps,
23826
23794
  isFocused: isFocused
23827
23795
  }));
@@ -23841,7 +23809,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23841
23809
  var innerProps = {
23842
23810
  'aria-hidden': 'true'
23843
23811
  };
23844
- return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$l({}, commonProps, {
23812
+ return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$g({}, commonProps, {
23845
23813
  innerProps: innerProps,
23846
23814
  isDisabled: isDisabled,
23847
23815
  isFocused: isFocused
@@ -23859,7 +23827,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23859
23827
  var commonProps = this.commonProps;
23860
23828
  var isDisabled = this.props.isDisabled;
23861
23829
  var isFocused = this.state.isFocused;
23862
- return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$l({}, commonProps, {
23830
+ return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$g({}, commonProps, {
23863
23831
  isDisabled: isDisabled,
23864
23832
  isFocused: isFocused
23865
23833
  }));
@@ -23879,7 +23847,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23879
23847
  onTouchEnd: this.onDropdownIndicatorTouchEnd,
23880
23848
  'aria-hidden': 'true'
23881
23849
  };
23882
- return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$l({}, commonProps, {
23850
+ return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$g({}, commonProps, {
23883
23851
  innerProps: innerProps,
23884
23852
  isDisabled: isDisabled,
23885
23853
  isFocused: isFocused
@@ -23942,7 +23910,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23942
23910
  onMouseOver: onHover,
23943
23911
  tabIndex: -1
23944
23912
  };
23945
- return /*#__PURE__*/React__namespace.createElement(Option, _extends$l({}, commonProps, {
23913
+ return /*#__PURE__*/React__namespace.createElement(Option, _extends$g({}, commonProps, {
23946
23914
  innerProps: innerProps,
23947
23915
  data: data,
23948
23916
  isDisabled: isDisabled,
@@ -23966,7 +23934,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23966
23934
  groupIndex = item.index;
23967
23935
  var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
23968
23936
  var headingId = "".concat(groupId, "-heading");
23969
- return /*#__PURE__*/React__namespace.createElement(Group, _extends$l({}, commonProps, {
23937
+ return /*#__PURE__*/React__namespace.createElement(Group, _extends$g({}, commonProps, {
23970
23938
  key: groupId,
23971
23939
  data: _data,
23972
23940
  options: options,
@@ -24005,12 +23973,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24005
23973
  menuPosition: menuPosition,
24006
23974
  menuShouldScrollIntoView: menuShouldScrollIntoView
24007
23975
  };
24008
- var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$l({}, commonProps, menuPlacementProps), function (_ref4) {
23976
+ var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$g({}, commonProps, menuPlacementProps), function (_ref4) {
24009
23977
  var ref = _ref4.ref,
24010
23978
  _ref4$placerProps = _ref4.placerProps,
24011
23979
  placement = _ref4$placerProps.placement,
24012
23980
  maxHeight = _ref4$placerProps.maxHeight;
24013
- return /*#__PURE__*/React__namespace.createElement(Menu, _extends$l({}, commonProps, menuPlacementProps, {
23981
+ return /*#__PURE__*/React__namespace.createElement(Menu, _extends$g({}, commonProps, menuPlacementProps, {
24014
23982
  innerRef: ref,
24015
23983
  innerProps: {
24016
23984
  onMouseDown: _this4.onMenuMouseDown,
@@ -24025,7 +23993,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24025
23993
  onBottomArrive: onMenuScrollToBottom,
24026
23994
  lockEnabled: menuShouldBlockScroll
24027
23995
  }, function (scrollTargetRef) {
24028
- return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$l({}, commonProps, {
23996
+ return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$g({}, commonProps, {
24029
23997
  innerRef: function innerRef(instance) {
24030
23998
  _this4.getMenuListRef(instance);
24031
23999
 
@@ -24040,7 +24008,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24040
24008
  // so we use the same component. the actual portalling logic is forked
24041
24009
  // within the component based on `menuPosition`
24042
24010
 
24043
- return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$l({}, commonProps, {
24011
+ return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$g({}, commonProps, {
24044
24012
  appendTo: menuPortalTarget,
24045
24013
  controlElement: this.controlRef,
24046
24014
  menuPlacement: menuPlacement,
@@ -24105,7 +24073,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24105
24073
  isFocused = _this$state6.isFocused,
24106
24074
  selectValue = _this$state6.selectValue;
24107
24075
  var focusableOptions = this.getFocusableOptions();
24108
- return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$l({}, commonProps, {
24076
+ return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$g({}, commonProps, {
24109
24077
  id: this.getElementId('live-region'),
24110
24078
  ariaSelection: ariaSelection,
24111
24079
  focusedOption: focusedOption,
@@ -24131,7 +24099,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24131
24099
  menuIsOpen = _this$props14.menuIsOpen;
24132
24100
  var isFocused = this.state.isFocused;
24133
24101
  var commonProps = this.commonProps = this.getCommonProps();
24134
- return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$l({}, commonProps, {
24102
+ return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$g({}, commonProps, {
24135
24103
  className: className,
24136
24104
  innerProps: {
24137
24105
  id: id,
@@ -24139,7 +24107,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24139
24107
  },
24140
24108
  isDisabled: isDisabled,
24141
24109
  isFocused: isFocused
24142
- }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$l({}, commonProps, {
24110
+ }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$g({}, commonProps, {
24143
24111
  innerRef: this.getControlRef,
24144
24112
  innerProps: {
24145
24113
  onMouseDown: this.onControlMouseDown,
@@ -24148,9 +24116,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24148
24116
  isDisabled: isDisabled,
24149
24117
  isFocused: isFocused,
24150
24118
  menuIsOpen: menuIsOpen
24151
- }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$l({}, commonProps, {
24119
+ }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$g({}, commonProps, {
24152
24120
  isDisabled: isDisabled
24153
- }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$l({}, commonProps, {
24121
+ }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$g({}, commonProps, {
24154
24122
  isDisabled: isDisabled
24155
24123
  }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
24156
24124
  }
@@ -24223,7 +24191,7 @@ Select$1.defaultProps = defaultProps;
24223
24191
 
24224
24192
  var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
24225
24193
  var baseSelectProps = useStateManager(props);
24226
- return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$l({
24194
+ return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$g({
24227
24195
  ref: ref
24228
24196
  }, baseSelectProps));
24229
24197
  });
@@ -24231,9 +24199,9 @@ var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
24231
24199
  var ReactSelect = StateManagedSelect;
24232
24200
 
24233
24201
  var _g$6;
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); }
24202
+ 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); }
24235
24203
  var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
24236
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
24204
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
24237
24205
  xmlns: "http://www.w3.org/2000/svg",
24238
24206
  viewBox: "0 0 28 28",
24239
24207
  width: "1em",
@@ -24254,15 +24222,15 @@ var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
24254
24222
  }))));
24255
24223
  };
24256
24224
 
24257
- var _path$c;
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); }
24225
+ var _path$7;
24226
+ 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); }
24259
24227
  var SvgIcCheck = function SvgIcCheck(props) {
24260
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
24228
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
24261
24229
  xmlns: "http://www.w3.org/2000/svg",
24262
24230
  width: "1em",
24263
24231
  height: "1em",
24264
24232
  viewBox: "0 0 24 24"
24265
- }, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
24233
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
24266
24234
  stroke: "#06C",
24267
24235
  strokeLinecap: "round",
24268
24236
  strokeLinejoin: "round",
@@ -24274,9 +24242,9 @@ var SvgIcCheck = function SvgIcCheck(props) {
24274
24242
  };
24275
24243
 
24276
24244
  var _g$5;
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); }
24245
+ 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); }
24278
24246
  var SvgIcErrorMedium = function SvgIcErrorMedium(props) {
24279
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
24247
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
24280
24248
  xmlns: "http://www.w3.org/2000/svg",
24281
24249
  width: "1em",
24282
24250
  height: "1em",
@@ -24619,9 +24587,9 @@ var Checkbox$1 = /** @class */ (function (_super) {
24619
24587
  }(React.Component));
24620
24588
 
24621
24589
  var _g$4;
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); }
24590
+ 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); }
24623
24591
  var SvgIcSearch = function SvgIcSearch(props) {
24624
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
24592
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
24625
24593
  xmlns: "http://www.w3.org/2000/svg",
24626
24594
  viewBox: "0 0 24 24",
24627
24595
  width: "1em",
@@ -24638,9 +24606,9 @@ var SvgIcSearch = function SvgIcSearch(props) {
24638
24606
  };
24639
24607
 
24640
24608
  var _g$3;
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); }
24609
+ 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); }
24642
24610
  var SvgIcErrorCross = function SvgIcErrorCross(props) {
24643
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
24611
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
24644
24612
  xmlns: "http://www.w3.org/2000/svg",
24645
24613
  width: "1em",
24646
24614
  height: "1em",
@@ -24707,21 +24675,6 @@ var SearchBar = function (_a) {
24707
24675
  handleSearchChange,
24708
24676
  debounceTimeout,
24709
24677
  ]);
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
- };
24725
24678
  var handleChange = function (e) {
24726
24679
  var value = e.target.value;
24727
24680
  setShowClearButton(!!value);
@@ -24732,71 +24685,23 @@ var SearchBar = function (_a) {
24732
24685
  handleSearchChange(value);
24733
24686
  }
24734
24687
  };
24688
+ var _applySearch = function (value) {
24689
+ handleSearchChange(value);
24690
+ handleEnter(value);
24691
+ };
24735
24692
  var handleKeyDown = function (e) {
24736
24693
  var key = e.key;
24737
24694
  if (key === 'Enter') {
24738
- e.preventDefault();
24739
24695
  var inputTarget = e.target;
24740
24696
  var value = inputTarget.value.trim();
24741
24697
  _applySearch(value);
24742
24698
  }
24743
24699
  };
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$b;
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$b || (_path$b = /*#__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$a;
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$a || (_path$a = /*#__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" }))] })));
24700
+ var clearSearch = function () {
24701
+ inputRef.current.value = '';
24702
+ _applySearch('');
24703
+ };
24704
+ 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" }) })))] })) })));
24800
24705
  };
24801
24706
 
24802
24707
  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}";
@@ -24935,9 +24840,9 @@ exports.ConsequenceAction = void 0;
24935
24840
  })(exports.ConsequenceAction || (exports.ConsequenceAction = {}));
24936
24841
 
24937
24842
  var _g$2;
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); }
24843
+ 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); }
24939
24844
  var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
24940
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
24845
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
24941
24846
  xmlns: "http://www.w3.org/2000/svg",
24942
24847
  width: "1em",
24943
24848
  height: "1em",
@@ -25016,16 +24921,16 @@ function DeleteComponent(_a) {
25016
24921
  return (jsxRuntime.jsxs("div", { children: [!showCannotDeleteDialogModal && renderDeleteDialog(), showCannotDeleteDialogModal && renderCannotDeleteDialogModal()] }));
25017
24922
  }
25018
24923
 
25019
- var _path$9;
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); }
24924
+ var _path$6;
24925
+ 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); }
25021
24926
  var SvgIcPencil = function SvgIcPencil(props) {
25022
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
24927
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
25023
24928
  width: "1em",
25024
24929
  height: "1em",
25025
24930
  viewBox: "0 0 20 20",
25026
24931
  fill: "none",
25027
24932
  xmlns: "http://www.w3.org/2000/svg"
25028
- }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
24933
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
25029
24934
  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",
25030
24935
  stroke: "#596168",
25031
24936
  strokeWidth: 1.5,
@@ -25034,16 +24939,16 @@ var SvgIcPencil = function SvgIcPencil(props) {
25034
24939
  })));
25035
24940
  };
25036
24941
 
25037
- var _path$8, _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); }
24942
+ var _path$5, _path2, _path3;
24943
+ 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); }
25039
24944
  var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
25040
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
24945
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
25041
24946
  width: "1em",
25042
24947
  height: "1em",
25043
24948
  viewBox: "0 0 12 12",
25044
24949
  fill: "none",
25045
24950
  xmlns: "http://www.w3.org/2000/svg"
25046
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
24951
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
25047
24952
  d: "M3.742 4.674h-2.25v-2.25",
25048
24953
  fill: "#767D84"
25049
24954
  })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -25061,15 +24966,15 @@ var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
25061
24966
  })));
25062
24967
  };
25063
24968
 
25064
- var _path$7;
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); }
24969
+ var _path$4;
24970
+ 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); }
25066
24971
  var SvgIcMinus = function SvgIcMinus(props) {
25067
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
24972
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
25068
24973
  xmlns: "http://www.w3.org/2000/svg",
25069
24974
  width: "1em",
25070
24975
  height: "1em",
25071
24976
  viewBox: "0 0 14 14"
25072
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
24977
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
25073
24978
  fill: "#959BA1",
25074
24979
  className: "ic-minus_svg__fill-color",
25075
24980
  fillRule: "evenodd",
@@ -25078,9 +24983,9 @@ var SvgIcMinus = function SvgIcMinus(props) {
25078
24983
  };
25079
24984
 
25080
24985
  var _g$1;
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); }
24986
+ 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); }
25082
24987
  var SvgIcWarning = function SvgIcWarning(props) {
25083
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
24988
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
25084
24989
  xmlns: "http://www.w3.org/2000/svg",
25085
24990
  width: "1em",
25086
24991
  height: "1em",
@@ -25100,9 +25005,9 @@ var SvgIcWarning = function SvgIcWarning(props) {
25100
25005
  };
25101
25006
 
25102
25007
  var _g;
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); }
25008
+ 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); }
25104
25009
  var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
25105
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
25010
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
25106
25011
  xmlns: "http://www.w3.org/2000/svg",
25107
25012
  width: "1em",
25108
25013
  height: "1em",
@@ -25119,16 +25024,16 @@ var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
25119
25024
  }))));
25120
25025
  };
25121
25026
 
25122
- var _path$6;
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); }
25027
+ var _path$3;
25028
+ 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); }
25124
25029
  var SvgIcEnter = function SvgIcEnter(props) {
25125
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
25030
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
25126
25031
  width: "1em",
25127
25032
  height: "1em",
25128
25033
  viewBox: "0 0 16 16",
25129
25034
  fill: "none",
25130
25035
  xmlns: "http://www.w3.org/2000/svg"
25131
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
25036
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
25132
25037
  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",
25133
25038
  fill: "#3B444C"
25134
25039
  })));
@@ -25534,15 +25439,15 @@ function Grid(_a) {
25534
25439
  return (jsxRuntime.jsx("div", __assign({ className: "flex-wrap flexbox ".concat(container ? containerClass : ''), style: containerStyles }, containerDivProps, { children: children })));
25535
25440
  }
25536
25441
 
25537
- var _path$5;
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); }
25442
+ var _path$2;
25443
+ 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); }
25539
25444
  var SvgIcCopy = function SvgIcCopy(props) {
25540
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
25445
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
25541
25446
  xmlns: "http://www.w3.org/2000/svg",
25542
25447
  width: "1em",
25543
25448
  height: "1em",
25544
25449
  viewBox: "0 0 20 20"
25545
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
25450
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
25546
25451
  fill: "#767D84",
25547
25452
  fillRule: "evenodd",
25548
25453
  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"
@@ -25639,116 +25544,6 @@ var useWindowSize = function () {
25639
25544
  return windowSize;
25640
25545
  };
25641
25546
 
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
-
25752
25547
  var StatusConstants = {
25753
25548
  NOT_DEPLOYED: {
25754
25549
  noSpaceLower: 'notdeployed',
@@ -28484,15 +28279,15 @@ var getInferredTypeFromValueType = function (value) {
28484
28279
  }
28485
28280
  };
28486
28281
 
28487
- var _path$4;
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); }
28282
+ var _path$1;
28283
+ 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); }
28489
28284
  var SvgIcChevronDown = function SvgIcChevronDown(props) {
28490
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
28285
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
28491
28286
  xmlns: "http://www.w3.org/2000/svg",
28492
28287
  width: "1em",
28493
28288
  height: "1em",
28494
28289
  viewBox: "0 0 24 24"
28495
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
28290
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
28496
28291
  fill: "#999",
28497
28292
  className: "ic-chevron-down_svg__fill-color",
28498
28293
  fillRule: "nonzero",
@@ -28551,16 +28346,16 @@ var Form = RJSF.default;
28551
28346
  var validator = RJSFValidator.default;
28552
28347
  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 }))); };
28553
28348
 
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); }
28349
+ var _style, _rect;
28350
+ 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); }
28556
28351
  var SvgIcRotateDevtron = function SvgIcRotateDevtron(props) {
28557
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
28352
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
28558
28353
  width: "1em",
28559
28354
  height: "1em",
28560
28355
  viewBox: "0 0 100 100",
28561
28356
  fill: "none",
28562
28357
  xmlns: "http://www.w3.org/2000/svg"
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", {
28358
+ }, 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", {
28564
28359
  width: 100,
28565
28360
  height: 100,
28566
28361
  rx: 20,
@@ -28828,16 +28623,16 @@ function DraggableWrapper(_a) {
28828
28623
  } }, { children: children })) })) })));
28829
28624
  }
28830
28625
 
28831
- var _path$3;
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); }
28626
+ var _path;
28627
+ 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); }
28833
28628
  var SvgIcDrag = function SvgIcDrag(props) {
28834
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
28629
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
28835
28630
  width: "1em",
28836
28631
  height: "1em",
28837
28632
  viewBox: "0 0 16 16",
28838
28633
  fill: "none",
28839
28634
  xmlns: "http://www.w3.org/2000/svg"
28840
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
28635
+ }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
28841
28636
  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",
28842
28637
  fill: "#596168"
28843
28638
  })));
@@ -28959,247 +28754,11 @@ var Pagination = function (_a) {
28959
28754
  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 })] })))] })));
28960
28755
  };
28961
28756
 
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
-
29017
- var _rect$1, _path$2;
29018
- 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); }
29019
- var SvgIcCheckSquare = function SvgIcCheckSquare(props) {
29020
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
29021
- width: "1em",
29022
- height: "1em",
29023
- viewBox: "0 0 16 16",
29024
- fill: "none",
29025
- xmlns: "http://www.w3.org/2000/svg"
29026
- }, props), _rect$1 || (_rect$1 = /*#__PURE__*/React__namespace.createElement("rect", {
29027
- x: 2,
29028
- y: 2,
29029
- width: 12,
29030
- height: 12,
29031
- rx: 2,
29032
- stroke: "#596168",
29033
- strokeWidth: 1.5,
29034
- strokeLinecap: "round",
29035
- strokeLinejoin: "round"
29036
- })), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
29037
- d: "m11.208 5.958-4.083 4.083L5.083 8",
29038
- stroke: "#596168",
29039
- strokeWidth: 1.5,
29040
- strokeLinecap: "round",
29041
- strokeLinejoin: "round"
29042
- })));
29043
- };
29044
-
29045
- var _rect, _path$1;
29046
- 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); }
29047
- var SvgIcCheckAll = function SvgIcCheckAll(props) {
29048
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
29049
- width: "1em",
29050
- height: "1em",
29051
- viewBox: "0 0 17 17",
29052
- fill: "none",
29053
- xmlns: "http://www.w3.org/2000/svg"
29054
- }, props), _rect || (_rect = /*#__PURE__*/React__namespace.createElement("rect", {
29055
- x: 2,
29056
- y: 2,
29057
- width: 11.2,
29058
- height: 11.2,
29059
- rx: 2,
29060
- stroke: "#596168",
29061
- strokeWidth: 1.5,
29062
- strokeLinecap: "round",
29063
- strokeLinejoin: "round"
29064
- })), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
29065
- d: "M15.467 5.866v5.6a4 4 0 0 1-4 4h-5.6M10.35 5.85l-3.5 3.5L5.1 7.6",
29066
- stroke: "#596168",
29067
- strokeWidth: 1.5,
29068
- strokeLinecap: "round",
29069
- strokeLinejoin: "round"
29070
- })));
29071
- };
29072
-
29073
- var _path;
29074
- 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); }
29075
- var SvgIcClose = function SvgIcClose(props) {
29076
- return /*#__PURE__*/React__namespace.createElement("svg", _extends({
29077
- width: "1em",
29078
- height: "1em",
29079
- viewBox: "0 0 10 10",
29080
- fill: "none",
29081
- xmlns: "http://www.w3.org/2000/svg"
29082
- }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
29083
- d: "M8.333 1.667 1.667 8.334m6.666 0L1.667 1.667",
29084
- stroke: "#596168",
29085
- strokeWidth: 1.5,
29086
- strokeLinecap: "round",
29087
- strokeLinejoin: "round"
29088
- })));
29089
- };
29090
-
29091
- var BulkSelection = function (_a) {
29092
- var checkboxValue = _a.checkboxValue, isChecked = _a.isChecked, selectedIdentifiers = _a.selectedIdentifiers, handleBulkSelection = _a.handleBulkSelection, showPagination = _a.showPagination;
29093
- var areOptionsSelected = Object.keys(selectedIdentifiers).length > 0;
29094
- var BulkSelectionItems = __spreadArray(__spreadArray([
29095
- {
29096
- locator: exports.BulkSelectionEvents.SELECT_ALL_ON_PAGE,
29097
- label: BulkSelectionOptionsLabels[exports.BulkSelectionEvents.SELECT_ALL_ON_PAGE],
29098
- isSelected: isChecked && checkboxValue === exports.CHECKBOX_VALUE.CHECKED,
29099
- icon: SvgIcCheckSquare,
29100
- }
29101
- ], __read((showPagination
29102
- ? [
29103
- {
29104
- locator: exports.BulkSelectionEvents.SELECT_ALL_ACROSS_PAGES,
29105
- label: BulkSelectionOptionsLabels[exports.BulkSelectionEvents.SELECT_ALL_ACROSS_PAGES],
29106
- isSelected: isChecked && checkboxValue === exports.CHECKBOX_VALUE.BULK_CHECKED,
29107
- icon: SvgIcCheckAll,
29108
- },
29109
- ]
29110
- : [])), false), __read((areOptionsSelected
29111
- ? [
29112
- {
29113
- locator: exports.BulkSelectionEvents.CLEAR_ALL_SELECTIONS,
29114
- label: BulkSelectionOptionsLabels[exports.BulkSelectionEvents.CLEAR_ALL_SELECTIONS],
29115
- isSelected: false,
29116
- icon: SvgIcClose,
29117
- },
29118
- ]
29119
- : [])), false);
29120
- 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", value: checkboxValue }), jsxRuntime.jsx(SvgIcChevronDown, { className: "icon-dim-20 icon-n6" })] })), 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)); }) }))] })));
29121
- };
29122
-
29123
- var useBulkSelection = function (_a) {
29124
- var identifiers = _a.identifiers, getSelectAllDialogStatus = _a.getSelectAllDialogStatus;
29125
- var _b = __read(React.useState({}), 2), selectedIdentifiers = _b[0], setSelectedIdentifiers = _b[1];
29126
- var setIdentifiersAfterClear = function (newIdentifiers, selectedIds) {
29127
- var _newIdentifiers = JSON.parse(JSON.stringify(newIdentifiers));
29128
- selectedIds.forEach(function (id) {
29129
- delete _newIdentifiers[id];
29130
- });
29131
- setSelectedIdentifiers(_newIdentifiers);
29132
- };
29133
- var setIdentifiersAfterPageSelection = function (baseObject) {
29134
- var _selectedIdentifiers = JSON.parse(JSON.stringify(selectedIdentifiers));
29135
- // removing bulk selection across pages if present
29136
- if (_selectedIdentifiers[SELECT_ALL_ACROSS_PAGES_LOCATOR]) {
29137
- delete _selectedIdentifiers[SELECT_ALL_ACROSS_PAGES_LOCATOR];
29138
- }
29139
- setSelectedIdentifiers(__assign(__assign({}, _selectedIdentifiers), baseObject));
29140
- };
29141
- var handleBulkSelection = function (_a) {
29142
- var _b, _c;
29143
- var _d, _e;
29144
- var action = _a.action, data = _a.data;
29145
- var selectedIds = (_d = data === null || data === void 0 ? void 0 : data.identifierIds) !== null && _d !== void 0 ? _d : [];
29146
- var identifierObject = (_e = data === null || data === void 0 ? void 0 : data.identifierObject) !== null && _e !== void 0 ? _e : {};
29147
- switch (action) {
29148
- case exports.BulkSelectionEvents.CLEAR_ALL_SELECTIONS:
29149
- setSelectedIdentifiers({});
29150
- break;
29151
- case exports.BulkSelectionEvents.CLEAR_IDENTIFIERS_AFTER_ACROSS_SELECTION: {
29152
- setIdentifiersAfterClear(identifiers, selectedIds);
29153
- break;
29154
- }
29155
- case exports.BulkSelectionEvents.CLEAR_IDENTIFIERS: {
29156
- setIdentifiersAfterClear(selectedIdentifiers, selectedIds);
29157
- break;
29158
- }
29159
- case exports.BulkSelectionEvents.SELECT_ALL_ACROSS_PAGES: {
29160
- if (selectedIdentifiers[SELECT_ALL_ACROSS_PAGES_LOCATOR]) {
29161
- return;
29162
- }
29163
- var selectedIdentifiersLength = Object.keys(selectedIdentifiers).length;
29164
- if (selectedIdentifiersLength > 0 && getSelectAllDialogStatus() === exports.SelectAllDialogStatus.OPEN) {
29165
- return;
29166
- }
29167
- setSelectedIdentifiers((_b = {},
29168
- _b[SELECT_ALL_ACROSS_PAGES_LOCATOR] = true,
29169
- _b));
29170
- break;
29171
- }
29172
- case exports.BulkSelectionEvents.CLEAR_SELECTIONS_AND_SELECT_ALL_ACROSS_PAGES:
29173
- setSelectedIdentifiers((_c = {},
29174
- _c[SELECT_ALL_ACROSS_PAGES_LOCATOR] = true,
29175
- _c));
29176
- break;
29177
- case exports.BulkSelectionEvents.SELECT_ALL_ON_PAGE: {
29178
- setIdentifiersAfterPageSelection(identifiers);
29179
- break;
29180
- }
29181
- case exports.BulkSelectionEvents.SELECT_IDENTIFIER: {
29182
- setIdentifiersAfterPageSelection(identifierObject);
29183
- break;
29184
- }
29185
- default:
29186
- throw new Error(getInvalidActionMessage(action));
29187
- }
29188
- };
29189
- return {
29190
- handleBulkSelection: handleBulkSelection,
29191
- selectedIdentifiers: selectedIdentifiers,
29192
- };
29193
- };
29194
-
29195
28757
  exports.AddCDButton = AddCDButton;
29196
28758
  exports.AppStatus = AppStatus;
29197
- exports.BULK_DROPDOWN_TEST_ID = BULK_DROPDOWN_TEST_ID;
29198
28759
  exports.BreadCrumb = BreadCrumb;
29199
28760
  exports.BreadcrumbStore = Store;
29200
28761
  exports.BuildStageVariable = BuildStageVariable;
29201
- exports.BulkSelection = BulkSelection;
29202
- exports.BulkSelectionOptionsLabels = BulkSelectionOptionsLabels;
29203
28762
  exports.CDModalTab = CDModalTab;
29204
28763
  exports.ChartVersionAndTypeSelector = ChartVersionAndTypeSelector;
29205
28764
  exports.Checkbox = Checkbox$1;
@@ -29209,7 +28768,6 @@ exports.ConditionalWrap = ConditionalWrap;
29209
28768
  exports.ConfirmationDialog = ConfirmationDialog;
29210
28769
  exports.CustomInput = CustomInput;
29211
28770
  exports.CustomSelect = CustomSelect;
29212
- exports.DEFAULT_BASE_PAGE_SIZE = DEFAULT_BASE_PAGE_SIZE;
29213
28771
  exports.DEFAULT_TAG_DATA = DEFAULT_TAG_DATA;
29214
28772
  exports.DOCUMENTATION = DOCUMENTATION;
29215
28773
  exports.DOCUMENTATION_HOME_PAGE = DOCUMENTATION_HOME_PAGE;
@@ -29257,13 +28815,11 @@ exports.RepositoryAction = RepositoryAction;
29257
28815
  exports.ResizableTagTextArea = ResizableTagTextArea;
29258
28816
  exports.ResizableTextarea = ResizableTextarea;
29259
28817
  exports.SELECTED_APPROVAL_TAB_STATE = SELECTED_APPROVAL_TAB_STATE;
29260
- exports.SELECT_ALL_ACROSS_PAGES_LOCATOR = SELECT_ALL_ACROSS_PAGES_LOCATOR;
29261
28818
  exports.ScanVulnerabilitiesTable = ScanVulnerabilitiesTable;
29262
28819
  exports.SearchBar = SearchBar;
29263
28820
  exports.ServerError = ServerError;
29264
28821
  exports.ServerErrors = ServerErrors;
29265
28822
  exports.SingleSelectOption = SingleSelectOption;
29266
- exports.SortableTableHeaderCell = SortableTableHeaderCell;
29267
28823
  exports.SourceTypeMap = SourceTypeMap;
29268
28824
  exports.StyledRadioGroup = RadioGroup;
29269
28825
  exports.TOAST_ACCESS_DENIED = TOAST_ACCESS_DENIED;
@@ -29280,7 +28836,6 @@ exports.TriggerTypeMap = TriggerTypeMap;
29280
28836
  exports.URLS = URLS;
29281
28837
  exports.VisibleModal = VisibleModal;
29282
28838
  exports.VisibleModal2 = VisibleModal2;
29283
- exports.abortPreviousRequests = abortPreviousRequests;
29284
28839
  exports.closeOnEscKeyPressed = closeOnEscKeyPressed;
29285
28840
  exports.copyToClipboard = copyToClipboard;
29286
28841
  exports.createGitCommitUrl = createGitCommitUrl;
@@ -29295,8 +28850,6 @@ exports.getCookie = getCookie;
29295
28850
  exports.getEmptyArrayOfLength = getEmptyArrayOfLength;
29296
28851
  exports.getFilteredChartVersions = getFilteredChartVersions;
29297
28852
  exports.getInferredTypeFromValueType = getInferredTypeFromValueType;
29298
- exports.getInvalidActionMessage = getInvalidActionMessage;
29299
- exports.getIsRequestAborted = getIsRequestAborted;
29300
28853
  exports.getLockedJSON = getLockedJSON;
29301
28854
  exports.getLoginInfo = getLoginInfo;
29302
28855
  exports.getRandomColor = getRandomColor;
@@ -29322,12 +28875,10 @@ exports.toastAccessDenied = toastAccessDenied;
29322
28875
  exports.trash = trash;
29323
28876
  exports.useAsync = useAsync;
29324
28877
  exports.useBreadcrumb = useBreadcrumb;
29325
- exports.useBulkSelection = useBulkSelection;
29326
28878
  exports.useClickOutside = useClickOutside;
29327
28879
  exports.useEffectAfterMount = useEffectAfterMount;
29328
28880
  exports.useForm = useForm;
29329
28881
  exports.useSearchString = useSearchString;
29330
28882
  exports.useSuperAdmin = useSuperAdmin;
29331
28883
  exports.useThrottledEffect = useThrottledEffect;
29332
- exports.useUrlFilters = useUrlFilters;
29333
28884
  exports.useWindowSize = useWindowSize;