@devtron-labs/devtron-fe-common-lib 0.0.59-beta-6 → 0.0.59-beta-8

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 (102) hide show
  1. package/dist/Common/Constants.d.ts +14 -1
  2. package/dist/Common/Hooks/index.d.ts +1 -0
  3. package/dist/Common/Hooks/useUrlFilters/constants.d.ts +8 -0
  4. package/dist/Common/Hooks/useUrlFilters/index.d.ts +2 -0
  5. package/dist/Common/Hooks/useUrlFilters/types.d.ts +6 -0
  6. package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +32 -0
  7. package/dist/Common/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +18 -0
  8. package/dist/Common/SortableTableHeaderCell/index.d.ts +2 -0
  9. package/dist/Common/SortableTableHeaderCell/types.d.ts +25 -0
  10. package/dist/Common/Types.d.ts +15 -4
  11. package/dist/Common/index.d.ts +1 -0
  12. package/dist/Pages/GlobalConfigurations/Authorization/constants.d.ts +15 -0
  13. package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +1 -0
  14. package/dist/Pages/GlobalConfigurations/index.d.ts +1 -1
  15. package/dist/index.d.ts +0 -1
  16. package/dist/index.js +346 -1347
  17. package/package.json +1 -1
  18. package/src/Assets/Icon/ic-arrow-up-down.svg +3 -0
  19. package/src/Assets/Icon/ic-sort-arrow-down.svg +3 -0
  20. package/src/Common/BreadCrumb/Types.ts +1 -0
  21. package/src/Common/Checkbox.tsx +0 -1
  22. package/src/Common/Constants.ts +18 -3
  23. package/src/Common/CustomInput/CustomInput.tsx +1 -2
  24. package/src/Common/DraggableWrapper/DraggableWrapper.tsx +1 -3
  25. package/src/Common/Hooks/index.ts +1 -0
  26. package/src/Common/Hooks/useUrlFilters/constants.ts +9 -0
  27. package/src/Common/Hooks/useUrlFilters/index.ts +2 -0
  28. package/src/Common/Hooks/useUrlFilters/types.ts +6 -0
  29. package/src/Common/Hooks/useUrlFilters/useUrlFilters.ts +121 -0
  30. package/src/Common/RJSF/utils.ts +0 -2
  31. package/src/Common/SearchBar/searchBar.scss +1 -1
  32. package/src/Common/SortableTableHeaderCell/SortableTableHeaderCell.tsx +44 -0
  33. package/src/Common/SortableTableHeaderCell/index.ts +2 -0
  34. package/src/Common/SortableTableHeaderCell/types.ts +26 -0
  35. package/src/Common/Types.ts +14 -4
  36. package/src/Common/index.ts +1 -0
  37. package/src/Pages/GlobalConfigurations/Authorization/constants.ts +16 -0
  38. package/src/Pages/GlobalConfigurations/Authorization/index.ts +1 -0
  39. package/src/Pages/GlobalConfigurations/index.ts +1 -1
  40. package/src/index.ts +0 -1
  41. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.d.ts +0 -4
  42. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.d.ts +0 -4
  43. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.d.ts +0 -7
  44. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.d.ts +0 -4
  45. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.d.ts +0 -4
  46. package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +0 -4
  47. package/dist/Pages/GlobalConfigurations/BuildInfra/Footer.d.ts +0 -4
  48. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +0 -50
  49. package/dist/Pages/GlobalConfigurations/BuildInfra/index.d.ts +0 -7
  50. package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +0 -6
  51. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +0 -286
  52. package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +0 -12
  53. package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +0 -4
  54. package/dist/Shared/Components/APIResponseHandler/constants.d.ts +0 -4
  55. package/dist/Shared/Components/APIResponseHandler/index.d.ts +0 -2
  56. package/dist/Shared/Components/APIResponseHandler/types.d.ts +0 -37
  57. package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +0 -4
  58. package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +0 -4
  59. package/dist/Shared/Components/BulkSelection/UseBulkSelection.d.ts +0 -3
  60. package/dist/Shared/Components/BulkSelection/constants.d.ts +0 -8
  61. package/dist/Shared/Components/BulkSelection/index.d.ts +0 -4
  62. package/dist/Shared/Components/BulkSelection/types.d.ts +0 -51
  63. package/dist/Shared/Components/ReactSelect/index.d.ts +0 -1
  64. package/dist/Shared/Components/ReactSelect/utils.d.ts +0 -12
  65. package/dist/Shared/Components/index.d.ts +0 -3
  66. package/dist/Shared/Helpers.d.ts +0 -16
  67. package/dist/Shared/index.d.ts +0 -3
  68. package/dist/Shared/validations.d.ts +0 -8
  69. package/src/Assets/Icon/ic-check-all.svg +0 -5
  70. package/src/Assets/Icon/ic-check-square.svg +0 -4
  71. package/src/Assets/Icon/ic-cpu.svg +0 -4
  72. package/src/Assets/Icon/ic-memory.svg +0 -3
  73. package/src/Assets/Icon/ic-timer.svg +0 -3
  74. package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.tsx +0 -128
  75. package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.tsx +0 -44
  76. package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.tsx +0 -106
  77. package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.tsx +0 -55
  78. package/src/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.tsx +0 -32
  79. package/src/Pages/GlobalConfigurations/BuildInfra/Descriptor.tsx +0 -45
  80. package/src/Pages/GlobalConfigurations/BuildInfra/Footer.tsx +0 -55
  81. package/src/Pages/GlobalConfigurations/BuildInfra/Readme.md +0 -4
  82. package/src/Pages/GlobalConfigurations/BuildInfra/constants.tsx +0 -138
  83. package/src/Pages/GlobalConfigurations/BuildInfra/index.ts +0 -7
  84. package/src/Pages/GlobalConfigurations/BuildInfra/services.tsx +0 -167
  85. package/src/Pages/GlobalConfigurations/BuildInfra/types.tsx +0 -339
  86. package/src/Pages/GlobalConfigurations/BuildInfra/utils.tsx +0 -509
  87. package/src/Shared/Components/APIResponseHandler/APIResponseHandler.tsx +0 -41
  88. package/src/Shared/Components/APIResponseHandler/constants.tsx +0 -5
  89. package/src/Shared/Components/APIResponseHandler/index.ts +0 -2
  90. package/src/Shared/Components/APIResponseHandler/types.tsx +0 -39
  91. package/src/Shared/Components/BulkSelection/BulkSelection.tsx +0 -81
  92. package/src/Shared/Components/BulkSelection/BulkSelectionDropdownItems.tsx +0 -31
  93. package/src/Shared/Components/BulkSelection/UseBulkSelection.tsx +0 -99
  94. package/src/Shared/Components/BulkSelection/constants.tsx +0 -12
  95. package/src/Shared/Components/BulkSelection/index.ts +0 -4
  96. package/src/Shared/Components/BulkSelection/types.tsx +0 -61
  97. package/src/Shared/Components/ReactSelect/index.ts +0 -1
  98. package/src/Shared/Components/ReactSelect/utils.tsx +0 -97
  99. package/src/Shared/Components/index.ts +0 -3
  100. package/src/Shared/Helpers.tsx +0 -29
  101. package/src/Shared/index.ts +0 -3
  102. package/src/Shared/validations.tsx +0 -130
package/dist/index.js CHANGED
@@ -50,8 +50,7 @@ var ROUTES = {
50
50
  USER_CHECK_ROLE: 'user/check/roles',
51
51
  IMAGE_TAGGING: 'app/image-tagging',
52
52
  CD_MATERIAL_GET: 'app/cd-pipeline',
53
- DEPLOYMENT_TEMPLATE_LIST: 'app/template/list',
54
- INFRA_CONFIG_PROFILE: 'infra-config/profile',
53
+ DEPLOYMENT_TEMPLATE_LIST: 'app/template/list'
55
54
  };
56
55
  exports.KEY_VALUE = void 0;
57
56
  (function (KEY_VALUE) {
@@ -268,7 +267,22 @@ var MAX_Z_INDEX = 2147483647;
268
267
  var SELECTED_APPROVAL_TAB_STATE = {
269
268
  APPROVAL: 'approval',
270
269
  PENDING: 'pending',
271
- };
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;
272
286
 
273
287
  /******************************************************************************
274
288
  Copyright (c) Microsoft Corporation.
@@ -430,7 +444,6 @@ exports.CHECKBOX_VALUE = void 0;
430
444
  (function (CHECKBOX_VALUE) {
431
445
  CHECKBOX_VALUE["CHECKED"] = "CHECKED";
432
446
  CHECKBOX_VALUE["INTERMEDIATE"] = "INTERMEDIATE";
433
- CHECKBOX_VALUE["BULK_CHECKED"] = "BULK_CHECKED";
434
447
  })(exports.CHECKBOX_VALUE || (exports.CHECKBOX_VALUE = {}));
435
448
  exports.ImageType = void 0;
436
449
  (function (ImageType) {
@@ -783,9 +796,9 @@ var css_248z$9 = ".empty-state {\n height: 100%;\n}\n.empty-state img {\n heig
783
796
  styleInject(css_248z$9);
784
797
 
785
798
  var _g$7;
786
- 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); }
799
+ 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); }
787
800
  var SvgIcProgressing = function SvgIcProgressing(props) {
788
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
801
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
789
802
  xmlns: "http://www.w3.org/2000/svg",
790
803
  viewBox: "0 0 24 24",
791
804
  width: "1em",
@@ -837,8 +850,8 @@ EmptyState.Loading = Loading;
837
850
 
838
851
  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}
839
852
 
840
- function _extends$s() {
841
- _extends$s = Object.assign || function (target) {
853
+ function _extends$p() {
854
+ _extends$p = Object.assign || function (target) {
842
855
  for (var i = 1; i < arguments.length; i++) {
843
856
  var source = arguments[i];
844
857
 
@@ -852,7 +865,7 @@ function _extends$s() {
852
865
  return target;
853
866
  };
854
867
 
855
- return _extends$s.apply(this, arguments);
868
+ return _extends$p.apply(this, arguments);
856
869
  }
857
870
 
858
871
  function _objectWithoutPropertiesLoose$2(source, excluded) {
@@ -1578,7 +1591,7 @@ function ProgressBar(_ref) {
1578
1591
  isIn = _ref.isIn,
1579
1592
  theme = _ref.theme;
1580
1593
 
1581
- var style = _extends$s({}, userStyle, {
1594
+ var style = _extends$p({}, userStyle, {
1582
1595
  animationDuration: delay + "ms",
1583
1596
  animationPlayState: isRunning ? 'running' : 'paused',
1584
1597
  opacity: hide ? 0 : 1
@@ -1855,9 +1868,9 @@ var ToastContainer = function ToastContainer(props) {
1855
1868
  ,
1856
1869
  id: containerId
1857
1870
  }, getToastToRender(function (position, toastList) {
1858
- var containerStyle = !toastList.length ? _extends$s({}, style, {
1871
+ var containerStyle = !toastList.length ? _extends$p({}, style, {
1859
1872
  pointerEvents: 'none'
1860
- }) : _extends$s({}, style);
1873
+ }) : _extends$p({}, style);
1861
1874
  return React.createElement("div", {
1862
1875
  className: getClassName(position),
1863
1876
  style: containerStyle,
@@ -1964,7 +1977,7 @@ function dispatchToast(content, options) {
1964
1977
 
1965
1978
 
1966
1979
  function mergeOptions(type, options) {
1967
- return _extends$s({}, options, {
1980
+ return _extends$p({}, options, {
1968
1981
  type: options && options.type || type,
1969
1982
  toastId: getToastId(options)
1970
1983
  });
@@ -1981,7 +1994,7 @@ function toast(content, options) {
1981
1994
  }
1982
1995
 
1983
1996
  toast.loading = function (content, options) {
1984
- return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$s({
1997
+ return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$p({
1985
1998
  isLoading: true,
1986
1999
  autoClose: false,
1987
2000
  closeOnClick: false,
@@ -1997,7 +2010,7 @@ function handlePromise(promise, _ref2, options) {
1997
2010
  var id;
1998
2011
 
1999
2012
  if (pending) {
2000
- id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$s({}, options, pending));
2013
+ id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$p({}, options, pending));
2001
2014
  }
2002
2015
 
2003
2016
  var resetParams = {
@@ -2016,7 +2029,7 @@ function handlePromise(promise, _ref2, options) {
2016
2029
  return;
2017
2030
  }
2018
2031
 
2019
- var baseParams = _extends$s({
2032
+ var baseParams = _extends$p({
2020
2033
  type: type
2021
2034
  }, resetParams, options, {
2022
2035
  data: result
@@ -2027,10 +2040,10 @@ function handlePromise(promise, _ref2, options) {
2027
2040
  } : input; // if the id is set we know that it's an update
2028
2041
 
2029
2042
  if (id) {
2030
- toast.update(id, _extends$s({}, baseParams, params));
2043
+ toast.update(id, _extends$p({}, baseParams, params));
2031
2044
  } else {
2032
2045
  // using toast.promise without loading
2033
- toast(params.render, _extends$s({}, baseParams, params));
2046
+ toast(params.render, _extends$p({}, baseParams, params));
2034
2047
  }
2035
2048
 
2036
2049
  return result;
@@ -2054,7 +2067,7 @@ toast.warning = /*#__PURE__*/createToastByType(TYPE.WARNING);
2054
2067
  toast.warn = toast.warning;
2055
2068
 
2056
2069
  toast.dark = function (content, options) {
2057
- return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$s({
2070
+ return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$p({
2058
2071
  theme: 'dark'
2059
2072
  }, options)));
2060
2073
  };
@@ -2111,7 +2124,7 @@ toast.update = function (toastId, options) {
2111
2124
  var oldOptions = toast.props,
2112
2125
  oldContent = toast.content;
2113
2126
 
2114
- var nextOptions = _extends$s({}, oldOptions, options, {
2127
+ var nextOptions = _extends$p({}, oldOptions, options, {
2115
2128
  toastId: options.toastId || toastId,
2116
2129
  updateId: generateToastId()
2117
2130
  });
@@ -12028,16 +12041,16 @@ var Modal = function (_a) {
12028
12041
  }, id: "popup", className: "".concat(rootClassName, " popup ").concat(modal ? 'modal' : ''), style: __assign({}, style) }, { children: children })), document.getElementById('visible-modal'));
12029
12042
  };
12030
12043
 
12031
- var _path$i;
12032
- 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); }
12044
+ var _path$f;
12045
+ 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); }
12033
12046
  var SvgIcCross = function SvgIcCross(props) {
12034
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
12047
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
12035
12048
  width: "1em",
12036
12049
  height: "1em",
12037
12050
  viewBox: "0 0 24 24",
12038
12051
  fill: "none",
12039
12052
  xmlns: "http://www.w3.org/2000/svg"
12040
- }, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
12053
+ }, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
12041
12054
  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",
12042
12055
  fill: "#596168"
12043
12056
  })));
@@ -16336,30 +16349,30 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
16336
16349
 
16337
16350
  var Tippy = index;
16338
16351
 
16339
- var _path$h;
16340
- 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); }
16352
+ var _path$e;
16353
+ 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); }
16341
16354
  var SvgIcHelp = function SvgIcHelp(props) {
16342
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
16355
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
16343
16356
  xmlns: "http://www.w3.org/2000/svg",
16344
16357
  width: "1em",
16345
16358
  height: "1em",
16346
16359
  viewBox: "0 0 24 24"
16347
- }, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
16360
+ }, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
16348
16361
  fill: "#767D84",
16349
16362
  fillRule: "evenodd",
16350
16363
  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"
16351
16364
  })));
16352
16365
  };
16353
16366
 
16354
- var _path$g;
16355
- 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); }
16367
+ var _path$d;
16368
+ 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); }
16356
16369
  var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
16357
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
16370
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
16358
16371
  xmlns: "http://www.w3.org/2000/svg",
16359
16372
  viewBox: "0 0 17 16",
16360
16373
  width: "1em",
16361
16374
  height: "1em"
16362
- }, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
16375
+ }, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
16363
16376
  fill: "#767D84",
16364
16377
  fillRule: "evenodd",
16365
16378
  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"
@@ -16411,16 +16424,16 @@ function TippyCustomized(props) {
16411
16424
  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 })));
16412
16425
  }
16413
16426
 
16414
- var _path$f, _circle, _path2$2;
16415
- 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); }
16427
+ var _path$c, _circle, _path2$1;
16428
+ 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); }
16416
16429
  var SvgInjectTag = function SvgInjectTag(props) {
16417
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
16430
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
16418
16431
  width: "1em",
16419
16432
  height: "1em",
16420
16433
  viewBox: "0 0 20 20",
16421
16434
  fill: "none",
16422
16435
  xmlns: "http://www.w3.org/2000/svg"
16423
- }, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
16436
+ }, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
16424
16437
  d: "M10 10H3.333",
16425
16438
  stroke: "#596168",
16426
16439
  strokeWidth: 1.5,
@@ -16431,7 +16444,7 @@ var SvgInjectTag = function SvgInjectTag(props) {
16431
16444
  cy: 10,
16432
16445
  r: 1.667,
16433
16446
  fill: "#596168"
16434
- })), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
16447
+ })), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
16435
16448
  d: "m4.415 6.403 5.347-3.008a.486.486 0 0 1 .476 0l5.348 3.008a.486.486 0 0 1 .247.424v5.994a.485.485 0 0 1-.247.424l-5.348 3.007a.485.485 0 0 1-.476 0l-5.347-3.007",
16436
16449
  stroke: "#596168",
16437
16450
  strokeWidth: 1.5,
@@ -16448,15 +16461,15 @@ function PropagateTagInfo(_a) {
16448
16461
  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" })] })) })));
16449
16462
  }
16450
16463
 
16451
- var _path$e;
16452
- 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); }
16464
+ var _path$b;
16465
+ 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); }
16453
16466
  var SvgIcInfoOutlined = function SvgIcInfoOutlined(props) {
16454
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
16467
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
16455
16468
  xmlns: "http://www.w3.org/2000/svg",
16456
16469
  width: "1em",
16457
16470
  height: "1em",
16458
16471
  viewBox: "0 0 20 20"
16459
- }, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
16472
+ }, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
16460
16473
  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",
16461
16474
  fill: "#06C",
16462
16475
  fillRule: "evenodd"
@@ -16690,15 +16703,15 @@ var TagDetails = function (_a) {
16690
16703
  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" }) }))] })));
16691
16704
  };
16692
16705
 
16693
- var _path$d;
16694
- 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); }
16706
+ var _path$a;
16707
+ 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); }
16695
16708
  var SvgIcAdd = function SvgIcAdd(props) {
16696
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
16709
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
16697
16710
  xmlns: "http://www.w3.org/2000/svg",
16698
16711
  width: "1em",
16699
16712
  height: "1em",
16700
16713
  viewBox: "0 0 24 24"
16701
- }, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
16714
+ }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
16702
16715
  className: "ic-add_svg__fill-color",
16703
16716
  fill: "#999",
16704
16717
  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"
@@ -16828,8 +16841,8 @@ function ForceDeleteDialog(_a) {
16828
16841
  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?" })] }) })) }));
16829
16842
  }
16830
16843
 
16831
- function _extends$l() {
16832
- _extends$l = Object.assign ? Object.assign.bind() : function (target) {
16844
+ function _extends$i() {
16845
+ _extends$i = Object.assign ? Object.assign.bind() : function (target) {
16833
16846
  for (var i = 1; i < arguments.length; i++) {
16834
16847
  var source = arguments[i];
16835
16848
  for (var key in source) {
@@ -16840,7 +16853,7 @@ function _extends$l() {
16840
16853
  }
16841
16854
  return target;
16842
16855
  };
16843
- return _extends$l.apply(this, arguments);
16856
+ return _extends$i.apply(this, arguments);
16844
16857
  }
16845
16858
 
16846
16859
  /*
@@ -20381,7 +20394,7 @@ var Menu = function Menu(props) {
20381
20394
  getStyles = props.getStyles,
20382
20395
  innerRef = props.innerRef,
20383
20396
  innerProps = props.innerProps;
20384
- return jsx("div", _extends$l({
20397
+ return jsx("div", _extends$i({
20385
20398
  css: getStyles('menu', props),
20386
20399
  className: cx({
20387
20400
  menu: true
@@ -20413,7 +20426,7 @@ var MenuList$1 = function MenuList(props) {
20413
20426
  innerProps = props.innerProps,
20414
20427
  innerRef = props.innerRef,
20415
20428
  isMulti = props.isMulti;
20416
- return jsx("div", _extends$l({
20429
+ return jsx("div", _extends$i({
20417
20430
  css: getStyles('menuList', props),
20418
20431
  className: cx({
20419
20432
  'menu-list': true,
@@ -20444,7 +20457,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
20444
20457
  cx = props.cx,
20445
20458
  getStyles = props.getStyles,
20446
20459
  innerProps = props.innerProps;
20447
- return jsx("div", _extends$l({
20460
+ return jsx("div", _extends$i({
20448
20461
  css: getStyles('noOptionsMessage', props),
20449
20462
  className: cx({
20450
20463
  'menu-notice': true,
@@ -20461,7 +20474,7 @@ var LoadingMessage = function LoadingMessage(props) {
20461
20474
  cx = props.cx,
20462
20475
  getStyles = props.getStyles,
20463
20476
  innerProps = props.innerProps;
20464
- return jsx("div", _extends$l({
20477
+ return jsx("div", _extends$i({
20465
20478
  css: getStyles('loadingMessage', props),
20466
20479
  className: cx({
20467
20480
  'menu-notice': true,
@@ -20549,7 +20562,7 @@ var MenuPortal = /*#__PURE__*/function (_Component2) {
20549
20562
  rect: rect
20550
20563
  }; // same wrapper element whether fixed or portalled
20551
20564
 
20552
- var menuWrapper = jsx("div", _extends$l({
20565
+ var menuWrapper = jsx("div", _extends$i({
20553
20566
  css: getStyles('menuPortal', state),
20554
20567
  className: cx({
20555
20568
  'menu-portal': true
@@ -20585,7 +20598,7 @@ var SelectContainer = function SelectContainer(props) {
20585
20598
  innerProps = props.innerProps,
20586
20599
  isDisabled = props.isDisabled,
20587
20600
  isRtl = props.isRtl;
20588
- return jsx("div", _extends$l({
20601
+ return jsx("div", _extends$i({
20589
20602
  css: getStyles('container', props),
20590
20603
  className: cx({
20591
20604
  '--is-disabled': isDisabled,
@@ -20620,7 +20633,7 @@ var ValueContainer = function ValueContainer(props) {
20620
20633
  isMulti = props.isMulti,
20621
20634
  getStyles = props.getStyles,
20622
20635
  hasValue = props.hasValue;
20623
- return jsx("div", _extends$l({
20636
+ return jsx("div", _extends$i({
20624
20637
  css: getStyles('valueContainer', props),
20625
20638
  className: cx({
20626
20639
  'value-container': true,
@@ -20646,7 +20659,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
20646
20659
  cx = props.cx,
20647
20660
  innerProps = props.innerProps,
20648
20661
  getStyles = props.getStyles;
20649
- return jsx("div", _extends$l({
20662
+ return jsx("div", _extends$i({
20650
20663
  css: getStyles('indicatorsContainer', props),
20651
20664
  className: cx({
20652
20665
  indicators: true
@@ -20677,7 +20690,7 @@ var Svg = function Svg(_ref) {
20677
20690
  var size = _ref.size,
20678
20691
  props = _objectWithoutProperties(_ref, _excluded$2);
20679
20692
 
20680
- return jsx("svg", _extends$l({
20693
+ return jsx("svg", _extends$i({
20681
20694
  height: size,
20682
20695
  width: size,
20683
20696
  viewBox: "0 0 20 20",
@@ -20688,14 +20701,14 @@ var Svg = function Svg(_ref) {
20688
20701
  };
20689
20702
 
20690
20703
  var CrossIcon = function CrossIcon(props) {
20691
- return jsx(Svg, _extends$l({
20704
+ return jsx(Svg, _extends$i({
20692
20705
  size: 20
20693
20706
  }, props), jsx("path", {
20694
20707
  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"
20695
20708
  }));
20696
20709
  };
20697
20710
  var DownChevron = function DownChevron(props) {
20698
- return jsx(Svg, _extends$l({
20711
+ return jsx(Svg, _extends$i({
20699
20712
  size: 20
20700
20713
  }, props), jsx("path", {
20701
20714
  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"
@@ -20728,7 +20741,7 @@ var DropdownIndicator$1 = function DropdownIndicator(props) {
20728
20741
  cx = props.cx,
20729
20742
  getStyles = props.getStyles,
20730
20743
  innerProps = props.innerProps;
20731
- return jsx("div", _extends$l({
20744
+ return jsx("div", _extends$i({
20732
20745
  css: getStyles('dropdownIndicator', props),
20733
20746
  className: cx({
20734
20747
  indicator: true,
@@ -20743,7 +20756,7 @@ var ClearIndicator$1 = function ClearIndicator(props) {
20743
20756
  cx = props.cx,
20744
20757
  getStyles = props.getStyles,
20745
20758
  innerProps = props.innerProps;
20746
- return jsx("div", _extends$l({
20759
+ return jsx("div", _extends$i({
20747
20760
  css: getStyles('clearIndicator', props),
20748
20761
  className: cx({
20749
20762
  indicator: true,
@@ -20773,7 +20786,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
20773
20786
  cx = props.cx,
20774
20787
  getStyles = props.getStyles,
20775
20788
  innerProps = props.innerProps;
20776
- return jsx("span", _extends$l({}, innerProps, {
20789
+ return jsx("span", _extends$i({}, innerProps, {
20777
20790
  css: getStyles('indicatorSeparator', props),
20778
20791
  className: cx({
20779
20792
  'indicator-separator': true
@@ -20828,7 +20841,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
20828
20841
  getStyles = props.getStyles,
20829
20842
  innerProps = props.innerProps,
20830
20843
  isRtl = props.isRtl;
20831
- return jsx("div", _extends$l({
20844
+ return jsx("div", _extends$i({
20832
20845
  css: getStyles('loadingIndicator', props),
20833
20846
  className: cx({
20834
20847
  indicator: true,
@@ -20889,7 +20902,7 @@ var Control = function Control(props) {
20889
20902
  innerRef = props.innerRef,
20890
20903
  innerProps = props.innerProps,
20891
20904
  menuIsOpen = props.menuIsOpen;
20892
- return jsx("div", _extends$l({
20905
+ return jsx("div", _extends$i({
20893
20906
  ref: innerRef,
20894
20907
  css: getStyles('control', props),
20895
20908
  className: cx({
@@ -20921,12 +20934,12 @@ var Group = function Group(props) {
20921
20934
  label = props.label,
20922
20935
  theme = props.theme,
20923
20936
  selectProps = props.selectProps;
20924
- return jsx("div", _extends$l({
20937
+ return jsx("div", _extends$i({
20925
20938
  css: getStyles('group', props),
20926
20939
  className: cx({
20927
20940
  group: true
20928
20941
  }, className)
20929
- }, innerProps), jsx(Heading, _extends$l({}, headingProps, {
20942
+ }, innerProps), jsx(Heading, _extends$i({}, headingProps, {
20930
20943
  selectProps: selectProps,
20931
20944
  theme: theme,
20932
20945
  getStyles: getStyles,
@@ -20958,7 +20971,7 @@ var GroupHeading = function GroupHeading(props) {
20958
20971
  _cleanCommonProps.data;
20959
20972
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
20960
20973
 
20961
- return jsx("div", _extends$l({
20974
+ return jsx("div", _extends$i({
20962
20975
  css: getStyles('groupHeading', props),
20963
20976
  className: cx({
20964
20977
  'group-heading': true
@@ -21034,7 +21047,7 @@ var Input = function Input(props) {
21034
21047
  }, className),
21035
21048
  css: getStyles('input', props),
21036
21049
  "data-value": value || ''
21037
- }, jsx("input", _extends$l({
21050
+ }, jsx("input", _extends$i({
21038
21051
  className: cx({
21039
21052
  input: true
21040
21053
  }, inputClassName),
@@ -21104,7 +21117,7 @@ var MultiValueLabel = MultiValueGeneric;
21104
21117
  function MultiValueRemove$1(_ref5) {
21105
21118
  var children = _ref5.children,
21106
21119
  innerProps = _ref5.innerProps;
21107
- return jsx("div", _extends$l({
21120
+ return jsx("div", _extends$i({
21108
21121
  role: "button"
21109
21122
  }, innerProps), children || jsx(CrossIcon, {
21110
21123
  size: 14
@@ -21193,7 +21206,7 @@ var Option$1 = function Option(props) {
21193
21206
  isSelected = props.isSelected,
21194
21207
  innerRef = props.innerRef,
21195
21208
  innerProps = props.innerProps;
21196
- return jsx("div", _extends$l({
21209
+ return jsx("div", _extends$i({
21197
21210
  css: getStyles('option', props),
21198
21211
  className: cx({
21199
21212
  option: true,
@@ -21225,7 +21238,7 @@ var Placeholder = function Placeholder(props) {
21225
21238
  cx = props.cx,
21226
21239
  getStyles = props.getStyles,
21227
21240
  innerProps = props.innerProps;
21228
- return jsx("div", _extends$l({
21241
+ return jsx("div", _extends$i({
21229
21242
  css: getStyles('placeholder', props),
21230
21243
  className: cx({
21231
21244
  placeholder: true
@@ -21258,7 +21271,7 @@ var SingleValue = function SingleValue(props) {
21258
21271
  getStyles = props.getStyles,
21259
21272
  isDisabled = props.isDisabled,
21260
21273
  innerProps = props.innerProps;
21261
- return jsx("div", _extends$l({
21274
+ return jsx("div", _extends$i({
21262
21275
  css: getStyles('singleValue', props),
21263
21276
  className: cx({
21264
21277
  'single-value': true,
@@ -21506,7 +21519,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
21506
21519
  };
21507
21520
 
21508
21521
  var A11yText = function A11yText(props) {
21509
- return jsx("span", _extends$l({
21522
+ return jsx("span", _extends$i({
21510
21523
  css: _ref
21511
21524
  }, props));
21512
21525
  };
@@ -22042,7 +22055,7 @@ function DummyInput(_ref) {
22042
22055
  var innerRef = _ref.innerRef,
22043
22056
  props = _objectWithoutProperties(_ref, _excluded);
22044
22057
 
22045
- return jsx("input", _extends$l({
22058
+ return jsx("input", _extends$i({
22046
22059
  ref: innerRef
22047
22060
  }, props, {
22048
22061
  css: /*#__PURE__*/css$2({
@@ -23677,7 +23690,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23677
23690
 
23678
23691
  if (!isSearchable) {
23679
23692
  // use a dummy input to maintain focus/blur functionality
23680
- return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$l({
23693
+ return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$i({
23681
23694
  id: id,
23682
23695
  innerRef: this.getInputRef,
23683
23696
  onBlur: this.onInputBlur,
@@ -23691,7 +23704,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23691
23704
  }, ariaAttributes));
23692
23705
  }
23693
23706
 
23694
- return /*#__PURE__*/React__namespace.createElement(Input, _extends$l({}, commonProps, {
23707
+ return /*#__PURE__*/React__namespace.createElement(Input, _extends$i({}, commonProps, {
23695
23708
  autoCapitalize: "none",
23696
23709
  autoComplete: "off",
23697
23710
  autoCorrect: "off",
@@ -23735,7 +23748,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23735
23748
  isFocused = _this$state5.isFocused;
23736
23749
 
23737
23750
  if (!this.hasValue() || !controlShouldRenderValue) {
23738
- return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$l({}, commonProps, {
23751
+ return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$i({}, commonProps, {
23739
23752
  key: "placeholder",
23740
23753
  isDisabled: isDisabled,
23741
23754
  isFocused: isFocused,
@@ -23749,7 +23762,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23749
23762
  return selectValue.map(function (opt, index) {
23750
23763
  var isOptionFocused = opt === focusedValue;
23751
23764
  var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
23752
- return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$l({}, commonProps, {
23765
+ return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$i({}, commonProps, {
23753
23766
  components: {
23754
23767
  Container: MultiValueContainer,
23755
23768
  Label: MultiValueLabel,
@@ -23781,7 +23794,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23781
23794
  }
23782
23795
 
23783
23796
  var singleValue = selectValue[0];
23784
- return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$l({}, commonProps, {
23797
+ return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$i({}, commonProps, {
23785
23798
  data: singleValue,
23786
23799
  isDisabled: isDisabled
23787
23800
  }), this.formatOptionLabel(singleValue, 'value'));
@@ -23807,7 +23820,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23807
23820
  onTouchEnd: this.onClearIndicatorTouchEnd,
23808
23821
  'aria-hidden': 'true'
23809
23822
  };
23810
- return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$l({}, commonProps, {
23823
+ return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$i({}, commonProps, {
23811
23824
  innerProps: innerProps,
23812
23825
  isFocused: isFocused
23813
23826
  }));
@@ -23827,7 +23840,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23827
23840
  var innerProps = {
23828
23841
  'aria-hidden': 'true'
23829
23842
  };
23830
- return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$l({}, commonProps, {
23843
+ return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$i({}, commonProps, {
23831
23844
  innerProps: innerProps,
23832
23845
  isDisabled: isDisabled,
23833
23846
  isFocused: isFocused
@@ -23845,7 +23858,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23845
23858
  var commonProps = this.commonProps;
23846
23859
  var isDisabled = this.props.isDisabled;
23847
23860
  var isFocused = this.state.isFocused;
23848
- return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$l({}, commonProps, {
23861
+ return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$i({}, commonProps, {
23849
23862
  isDisabled: isDisabled,
23850
23863
  isFocused: isFocused
23851
23864
  }));
@@ -23865,7 +23878,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23865
23878
  onTouchEnd: this.onDropdownIndicatorTouchEnd,
23866
23879
  'aria-hidden': 'true'
23867
23880
  };
23868
- return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$l({}, commonProps, {
23881
+ return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$i({}, commonProps, {
23869
23882
  innerProps: innerProps,
23870
23883
  isDisabled: isDisabled,
23871
23884
  isFocused: isFocused
@@ -23928,7 +23941,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23928
23941
  onMouseOver: onHover,
23929
23942
  tabIndex: -1
23930
23943
  };
23931
- return /*#__PURE__*/React__namespace.createElement(Option, _extends$l({}, commonProps, {
23944
+ return /*#__PURE__*/React__namespace.createElement(Option, _extends$i({}, commonProps, {
23932
23945
  innerProps: innerProps,
23933
23946
  data: data,
23934
23947
  isDisabled: isDisabled,
@@ -23952,7 +23965,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23952
23965
  groupIndex = item.index;
23953
23966
  var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
23954
23967
  var headingId = "".concat(groupId, "-heading");
23955
- return /*#__PURE__*/React__namespace.createElement(Group, _extends$l({}, commonProps, {
23968
+ return /*#__PURE__*/React__namespace.createElement(Group, _extends$i({}, commonProps, {
23956
23969
  key: groupId,
23957
23970
  data: _data,
23958
23971
  options: options,
@@ -23991,12 +24004,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23991
24004
  menuPosition: menuPosition,
23992
24005
  menuShouldScrollIntoView: menuShouldScrollIntoView
23993
24006
  };
23994
- var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$l({}, commonProps, menuPlacementProps), function (_ref4) {
24007
+ var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$i({}, commonProps, menuPlacementProps), function (_ref4) {
23995
24008
  var ref = _ref4.ref,
23996
24009
  _ref4$placerProps = _ref4.placerProps,
23997
24010
  placement = _ref4$placerProps.placement,
23998
24011
  maxHeight = _ref4$placerProps.maxHeight;
23999
- return /*#__PURE__*/React__namespace.createElement(Menu, _extends$l({}, commonProps, menuPlacementProps, {
24012
+ return /*#__PURE__*/React__namespace.createElement(Menu, _extends$i({}, commonProps, menuPlacementProps, {
24000
24013
  innerRef: ref,
24001
24014
  innerProps: {
24002
24015
  onMouseDown: _this4.onMenuMouseDown,
@@ -24011,7 +24024,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24011
24024
  onBottomArrive: onMenuScrollToBottom,
24012
24025
  lockEnabled: menuShouldBlockScroll
24013
24026
  }, function (scrollTargetRef) {
24014
- return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$l({}, commonProps, {
24027
+ return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$i({}, commonProps, {
24015
24028
  innerRef: function innerRef(instance) {
24016
24029
  _this4.getMenuListRef(instance);
24017
24030
 
@@ -24026,7 +24039,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24026
24039
  // so we use the same component. the actual portalling logic is forked
24027
24040
  // within the component based on `menuPosition`
24028
24041
 
24029
- return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$l({}, commonProps, {
24042
+ return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$i({}, commonProps, {
24030
24043
  appendTo: menuPortalTarget,
24031
24044
  controlElement: this.controlRef,
24032
24045
  menuPlacement: menuPlacement,
@@ -24091,7 +24104,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24091
24104
  isFocused = _this$state6.isFocused,
24092
24105
  selectValue = _this$state6.selectValue;
24093
24106
  var focusableOptions = this.getFocusableOptions();
24094
- return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$l({}, commonProps, {
24107
+ return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$i({}, commonProps, {
24095
24108
  id: this.getElementId('live-region'),
24096
24109
  ariaSelection: ariaSelection,
24097
24110
  focusedOption: focusedOption,
@@ -24117,7 +24130,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24117
24130
  menuIsOpen = _this$props14.menuIsOpen;
24118
24131
  var isFocused = this.state.isFocused;
24119
24132
  var commonProps = this.commonProps = this.getCommonProps();
24120
- return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$l({}, commonProps, {
24133
+ return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$i({}, commonProps, {
24121
24134
  className: className,
24122
24135
  innerProps: {
24123
24136
  id: id,
@@ -24125,7 +24138,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24125
24138
  },
24126
24139
  isDisabled: isDisabled,
24127
24140
  isFocused: isFocused
24128
- }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$l({}, commonProps, {
24141
+ }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$i({}, commonProps, {
24129
24142
  innerRef: this.getControlRef,
24130
24143
  innerProps: {
24131
24144
  onMouseDown: this.onControlMouseDown,
@@ -24134,9 +24147,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24134
24147
  isDisabled: isDisabled,
24135
24148
  isFocused: isFocused,
24136
24149
  menuIsOpen: menuIsOpen
24137
- }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$l({}, commonProps, {
24150
+ }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$i({}, commonProps, {
24138
24151
  isDisabled: isDisabled
24139
- }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$l({}, commonProps, {
24152
+ }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$i({}, commonProps, {
24140
24153
  isDisabled: isDisabled
24141
24154
  }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
24142
24155
  }
@@ -24209,7 +24222,7 @@ Select$1.defaultProps = defaultProps;
24209
24222
 
24210
24223
  var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
24211
24224
  var baseSelectProps = useStateManager(props);
24212
- return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$l({
24225
+ return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$i({
24213
24226
  ref: ref
24214
24227
  }, baseSelectProps));
24215
24228
  });
@@ -24217,9 +24230,9 @@ var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
24217
24230
  var ReactSelect = StateManagedSelect;
24218
24231
 
24219
24232
  var _g$6;
24220
- 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); }
24233
+ 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); }
24221
24234
  var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
24222
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
24235
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
24223
24236
  xmlns: "http://www.w3.org/2000/svg",
24224
24237
  viewBox: "0 0 28 28",
24225
24238
  width: "1em",
@@ -24240,15 +24253,15 @@ var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
24240
24253
  }))));
24241
24254
  };
24242
24255
 
24243
- var _path$c;
24244
- 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); }
24256
+ var _path$9;
24257
+ 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); }
24245
24258
  var SvgIcCheck = function SvgIcCheck(props) {
24246
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
24259
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
24247
24260
  xmlns: "http://www.w3.org/2000/svg",
24248
24261
  width: "1em",
24249
24262
  height: "1em",
24250
24263
  viewBox: "0 0 24 24"
24251
- }, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
24264
+ }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
24252
24265
  stroke: "#06C",
24253
24266
  strokeLinecap: "round",
24254
24267
  strokeLinejoin: "round",
@@ -24260,9 +24273,9 @@ var SvgIcCheck = function SvgIcCheck(props) {
24260
24273
  };
24261
24274
 
24262
24275
  var _g$5;
24263
- 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); }
24276
+ 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); }
24264
24277
  var SvgIcErrorMedium = function SvgIcErrorMedium(props) {
24265
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
24278
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
24266
24279
  xmlns: "http://www.w3.org/2000/svg",
24267
24280
  width: "1em",
24268
24281
  height: "1em",
@@ -24591,7 +24604,6 @@ Valid States of Checkbox:
24591
24604
  5. disabled: false, checked: true, value: INTERMIDIATE
24592
24605
  6. disabled: false, checked: true, value: CHECKED
24593
24606
  */
24594
- // TODO: Associate label with input element
24595
24607
  var Checkbox$1 = /** @class */ (function (_super) {
24596
24608
  __extends$1(Checkbox, _super);
24597
24609
  function Checkbox() {
@@ -24606,9 +24618,9 @@ var Checkbox$1 = /** @class */ (function (_super) {
24606
24618
  }(React.Component));
24607
24619
 
24608
24620
  var _g$4;
24609
- 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); }
24621
+ 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); }
24610
24622
  var SvgIcSearch = function SvgIcSearch(props) {
24611
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
24623
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
24612
24624
  xmlns: "http://www.w3.org/2000/svg",
24613
24625
  viewBox: "0 0 24 24",
24614
24626
  width: "1em",
@@ -24625,9 +24637,9 @@ var SvgIcSearch = function SvgIcSearch(props) {
24625
24637
  };
24626
24638
 
24627
24639
  var _g$3;
24628
- 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); }
24640
+ 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); }
24629
24641
  var SvgIcErrorCross = function SvgIcErrorCross(props) {
24630
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
24642
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
24631
24643
  xmlns: "http://www.w3.org/2000/svg",
24632
24644
  width: "1em",
24633
24645
  height: "1em",
@@ -24649,7 +24661,7 @@ var SvgIcErrorCross = function SvgIcErrorCross(props) {
24649
24661
  }))));
24650
24662
  };
24651
24663
 
24652
- var css_248z$5 = ".search-bar:focus, .search-bar:focus-within {\n outline: none;\n border: solid 1px var(--B500) !important;\n}\n.search-bar__input:focus, .search-bar__input:focus-visible {\n border: none;\n outline: none;\n}\n.search-bar__icon {\n z-index: 1;\n top: 50%;\n left: 8px;\n transform: translateY(-50%);\n}\n.search-bar__clear-button {\n right: 0;\n top: 50%;\n transform: translateY(-50%);\n z-index: 1;\n}";
24664
+ var css_248z$5 = ".search-bar:focus, .search-bar:focus-within {\n outline: none;\n border: solid 1px var(--B500);\n}\n.search-bar__input:focus, .search-bar__input:focus-visible {\n border: none;\n outline: none;\n}\n.search-bar__icon {\n z-index: 1;\n top: 50%;\n left: 8px;\n transform: translateY(-50%);\n}\n.search-bar__clear-button {\n right: 0;\n top: 50%;\n transform: translateY(-50%);\n z-index: 1;\n}";
24653
24665
  styleInject(css_248z$5);
24654
24666
 
24655
24667
  /**
@@ -24731,6 +24743,61 @@ var SearchBar = function (_a) {
24731
24743
  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" }) })))] })) })));
24732
24744
  };
24733
24745
 
24746
+ var _path$8;
24747
+ 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); }
24748
+ var SvgIcArrowUpDown = function SvgIcArrowUpDown(props) {
24749
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
24750
+ xmlns: "http://www.w3.org/2000/svg",
24751
+ width: "1em",
24752
+ height: "1em",
24753
+ viewBox: "0 0 12 12",
24754
+ fill: "none"
24755
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
24756
+ d: "M4.125 8.5 6 10.75 7.875 8.5m-3.75-5L6 1.25 7.875 3.5",
24757
+ stroke: "#3B444C",
24758
+ strokeWidth: 1.5,
24759
+ strokeLinecap: "round",
24760
+ strokeLinejoin: "round"
24761
+ })));
24762
+ };
24763
+
24764
+ var _path$7;
24765
+ 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); }
24766
+ var SvgIcSortArrowDown = function SvgIcSortArrowDown(props) {
24767
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
24768
+ width: "1em",
24769
+ height: "1em",
24770
+ viewBox: "0 0 12 12",
24771
+ fill: "none",
24772
+ xmlns: "http://www.w3.org/2000/svg"
24773
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
24774
+ d: "M3.5 7.5 6 10m0 0 2.5-2.5M6 10V2",
24775
+ stroke: "#596168",
24776
+ strokeWidth: 1.5,
24777
+ strokeLinecap: "round",
24778
+ strokeLinejoin: "round"
24779
+ })));
24780
+ };
24781
+
24782
+ /**
24783
+ * Reusable component for the table header cell with support for sorting icons
24784
+ *
24785
+ * @example Usage
24786
+ * ```tsx
24787
+ * <SortableTableHeaderCell
24788
+ * isSorted={currentSortedCell === 'cell'}
24789
+ * triggerSorting={() => {}}
24790
+ * sortOrder={SortingOrder.ASC}
24791
+ * title="Header Cell"
24792
+ * disabled={isDisabled}
24793
+ * />
24794
+ * ```
24795
+ */
24796
+ var SortableTableHeaderCell = function (_a) {
24797
+ var isSorted = _a.isSorted, triggerSorting = _a.triggerSorting, sortOrder = _a.sortOrder, title = _a.title, disabled = _a.disabled;
24798
+ 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" }))] })));
24799
+ };
24800
+
24734
24801
  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}";
24735
24802
  styleInject(css_248z$4);
24736
24803
 
@@ -24867,9 +24934,9 @@ exports.ConsequenceAction = void 0;
24867
24934
  })(exports.ConsequenceAction || (exports.ConsequenceAction = {}));
24868
24935
 
24869
24936
  var _g$2;
24870
- 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); }
24937
+ 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); }
24871
24938
  var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
24872
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
24939
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
24873
24940
  xmlns: "http://www.w3.org/2000/svg",
24874
24941
  width: "1em",
24875
24942
  height: "1em",
@@ -24948,16 +25015,16 @@ function DeleteComponent(_a) {
24948
25015
  return (jsxRuntime.jsxs("div", { children: [!showCannotDeleteDialogModal && renderDeleteDialog(), showCannotDeleteDialogModal && renderCannotDeleteDialogModal()] }));
24949
25016
  }
24950
25017
 
24951
- var _path$b;
24952
- 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); }
25018
+ var _path$6;
25019
+ 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); }
24953
25020
  var SvgIcPencil = function SvgIcPencil(props) {
24954
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
25021
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
24955
25022
  width: "1em",
24956
25023
  height: "1em",
24957
25024
  viewBox: "0 0 20 20",
24958
25025
  fill: "none",
24959
25026
  xmlns: "http://www.w3.org/2000/svg"
24960
- }, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
25027
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
24961
25028
  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",
24962
25029
  stroke: "#596168",
24963
25030
  strokeWidth: 1.5,
@@ -24966,19 +25033,19 @@ var SvgIcPencil = function SvgIcPencil(props) {
24966
25033
  })));
24967
25034
  };
24968
25035
 
24969
- var _path$a, _path2$1, _path3;
24970
- 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); }
25036
+ var _path$5, _path2, _path3;
25037
+ 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); }
24971
25038
  var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
24972
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
25039
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
24973
25040
  width: "1em",
24974
25041
  height: "1em",
24975
25042
  viewBox: "0 0 12 12",
24976
25043
  fill: "none",
24977
25044
  xmlns: "http://www.w3.org/2000/svg"
24978
- }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
25045
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
24979
25046
  d: "M3.742 4.674h-2.25v-2.25",
24980
25047
  fill: "#767D84"
24981
- })), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
25048
+ })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
24982
25049
  d: "M3.742 4.674h-2.25v-2.25",
24983
25050
  stroke: "#596168",
24984
25051
  strokeWidth: 1.5,
@@ -24993,15 +25060,15 @@ var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
24993
25060
  })));
24994
25061
  };
24995
25062
 
24996
- var _path$9;
24997
- 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); }
25063
+ var _path$4;
25064
+ 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); }
24998
25065
  var SvgIcMinus = function SvgIcMinus(props) {
24999
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
25066
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
25000
25067
  xmlns: "http://www.w3.org/2000/svg",
25001
25068
  width: "1em",
25002
25069
  height: "1em",
25003
25070
  viewBox: "0 0 14 14"
25004
- }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
25071
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
25005
25072
  fill: "#959BA1",
25006
25073
  className: "ic-minus_svg__fill-color",
25007
25074
  fillRule: "evenodd",
@@ -25010,9 +25077,9 @@ var SvgIcMinus = function SvgIcMinus(props) {
25010
25077
  };
25011
25078
 
25012
25079
  var _g$1;
25013
- 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); }
25080
+ 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); }
25014
25081
  var SvgIcWarning = function SvgIcWarning(props) {
25015
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
25082
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
25016
25083
  xmlns: "http://www.w3.org/2000/svg",
25017
25084
  width: "1em",
25018
25085
  height: "1em",
@@ -25032,9 +25099,9 @@ var SvgIcWarning = function SvgIcWarning(props) {
25032
25099
  };
25033
25100
 
25034
25101
  var _g;
25035
- 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); }
25102
+ 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); }
25036
25103
  var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
25037
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
25104
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
25038
25105
  xmlns: "http://www.w3.org/2000/svg",
25039
25106
  width: "1em",
25040
25107
  height: "1em",
@@ -25051,16 +25118,16 @@ var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
25051
25118
  }))));
25052
25119
  };
25053
25120
 
25054
- var _path$8;
25055
- 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); }
25121
+ var _path$3;
25122
+ 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); }
25056
25123
  var SvgIcEnter = function SvgIcEnter(props) {
25057
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
25124
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
25058
25125
  width: "1em",
25059
25126
  height: "1em",
25060
25127
  viewBox: "0 0 16 16",
25061
25128
  fill: "none",
25062
25129
  xmlns: "http://www.w3.org/2000/svg"
25063
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
25130
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
25064
25131
  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",
25065
25132
  fill: "#3B444C"
25066
25133
  })));
@@ -25466,15 +25533,15 @@ function Grid(_a) {
25466
25533
  return (jsxRuntime.jsx("div", __assign({ className: "flex-wrap flexbox ".concat(container ? containerClass : ''), style: containerStyles }, containerDivProps, { children: children })));
25467
25534
  }
25468
25535
 
25469
- var _path$7;
25470
- 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); }
25536
+ var _path$2;
25537
+ 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); }
25471
25538
  var SvgIcCopy = function SvgIcCopy(props) {
25472
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
25539
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
25473
25540
  xmlns: "http://www.w3.org/2000/svg",
25474
25541
  width: "1em",
25475
25542
  height: "1em",
25476
25543
  viewBox: "0 0 20 20"
25477
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
25544
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
25478
25545
  fill: "#767D84",
25479
25546
  fillRule: "evenodd",
25480
25547
  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"
@@ -25571,6 +25638,116 @@ var useWindowSize = function () {
25571
25638
  return windowSize;
25572
25639
  };
25573
25640
 
25641
+ var DEFAULT_PAGE_NUMBER = 1;
25642
+ var URL_FILTER_KEYS = {
25643
+ PAGE_SIZE: 'pageSize',
25644
+ PAGE_NUMBER: 'pageNumber',
25645
+ SEARCH_KEY: 'searchKey',
25646
+ SORT_BY: 'sortBy',
25647
+ SORT_ORDER: 'sortOrder',
25648
+ };
25649
+
25650
+ 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;
25651
+ /**
25652
+ * Generic hook for implementing URL based filters.
25653
+ * eg: pagination, search, sort.
25654
+ *
25655
+ * The exposed handlers can be consumed directly without the need for explicit state management
25656
+ *
25657
+ * @example Default Usage:
25658
+ * ```tsx
25659
+ * const { pageSize, changePage, ...rest } = useUrlFilters()
25660
+ * ```
25661
+ *
25662
+ * @example Usage with custom type for sort keys and initial sort key:
25663
+ * ```tsx
25664
+ * const { sortBy, sortOrder } = useUrlFilters<'email' | 'name'>({ initialSortKey: 'email' })
25665
+ * ```
25666
+ *
25667
+ */
25668
+ var useUrlFilters = function (_a) {
25669
+ var _b = _a === void 0 ? {} : _a, initialSortKey = _b.initialSortKey;
25670
+ var location = reactRouterDom.useLocation();
25671
+ var history = reactRouterDom.useHistory();
25672
+ var searchParams = new URLSearchParams(location.search);
25673
+ var _c = React.useMemo(function () {
25674
+ var _pageSize = searchParams.get(PAGE_SIZE);
25675
+ var _pageNumber = searchParams.get(PAGE_NUMBER);
25676
+ var _searchKey = searchParams.get(SEARCH_KEY);
25677
+ var _sortOrder = searchParams.get(SORT_ORDER);
25678
+ var _sortBy = searchParams.get(SORT_BY);
25679
+ var sortByKey = (_sortBy || initialSortKey || '');
25680
+ // Fallback to ascending order
25681
+ var sortByOrder = Object.values(exports.SortingOrder).includes(_sortOrder) ? _sortOrder : exports.SortingOrder.ASC;
25682
+ return {
25683
+ pageSize: Number(_pageSize) || DEFAULT_BASE_PAGE_SIZE,
25684
+ pageNumber: Number(_pageNumber) || DEFAULT_PAGE_NUMBER,
25685
+ searchKey: _searchKey || '',
25686
+ sortBy: sortByKey,
25687
+ // sort order should only be applied if the key is available
25688
+ sortOrder: (sortByKey ? sortByOrder : ''),
25689
+ };
25690
+ }, [searchParams]), pageSize = _c.pageSize, pageNumber = _c.pageNumber, searchKey = _c.searchKey, sortBy = _c.sortBy, sortOrder = _c.sortOrder;
25691
+ /**
25692
+ * Used for getting the required result from the API
25693
+ */
25694
+ var offset = pageSize * (pageNumber - 1);
25695
+ /**
25696
+ * Update and replace the search params in the URL.
25697
+ *
25698
+ * Note: Currently only primitive data types are supported
25699
+ */
25700
+ var _updateSearchParam = function (key, value) {
25701
+ searchParams.set(key, String(value));
25702
+ history.replace({ search: searchParams.toString() });
25703
+ };
25704
+ var _resetPageNumber = function () {
25705
+ _updateSearchParam(PAGE_NUMBER, DEFAULT_PAGE_NUMBER);
25706
+ };
25707
+ var changePage = function (page) {
25708
+ _updateSearchParam(PAGE_NUMBER, page);
25709
+ };
25710
+ var changePageSize = function (_pageSize) {
25711
+ _updateSearchParam(PAGE_SIZE, _pageSize);
25712
+ _resetPageNumber();
25713
+ };
25714
+ var handleSearch = function (searchTerm) {
25715
+ _updateSearchParam(SEARCH_KEY, searchTerm);
25716
+ _resetPageNumber();
25717
+ };
25718
+ var handleSorting = function (_sortBy) {
25719
+ var order;
25720
+ if (_sortBy === sortBy && sortOrder === exports.SortingOrder.ASC) {
25721
+ order = exports.SortingOrder.DESC;
25722
+ }
25723
+ else {
25724
+ order = exports.SortingOrder.ASC;
25725
+ }
25726
+ _updateSearchParam(SORT_BY, _sortBy);
25727
+ _updateSearchParam(SORT_ORDER, order);
25728
+ // Reset page number on sorting change
25729
+ _resetPageNumber();
25730
+ };
25731
+ var clearFilters = function () {
25732
+ Object.values(URL_FILTER_KEYS).forEach(function (key) {
25733
+ searchParams.delete(key);
25734
+ });
25735
+ history.replace({ search: searchParams.toString() });
25736
+ };
25737
+ return {
25738
+ pageSize: pageSize,
25739
+ changePage: changePage,
25740
+ changePageSize: changePageSize,
25741
+ searchKey: searchKey,
25742
+ handleSearch: handleSearch,
25743
+ offset: offset,
25744
+ sortBy: sortBy,
25745
+ sortOrder: sortOrder,
25746
+ handleSorting: handleSorting,
25747
+ clearFilters: clearFilters,
25748
+ };
25749
+ };
25750
+
25574
25751
  var StatusConstants = {
25575
25752
  NOT_DEPLOYED: {
25576
25753
  noSpaceLower: 'notdeployed',
@@ -28254,9 +28431,9 @@ var translateString = function (stringToTranslate, params) {
28254
28431
  return utils.englishStringTranslator(stringToTranslate, params);
28255
28432
  }
28256
28433
  };
28257
- var getCommonSelectStyle$1 = function (styleOverrides) {
28434
+ var getCommonSelectStyle = function (styleOverrides) {
28258
28435
  if (styleOverrides === void 0) { styleOverrides = {}; }
28259
- return __assign({ menuList: function (base) { return (__assign(__assign({}, base), { paddingTop: 0, paddingBottom: 0, cursor: 'pointer' })); }, control: function (base, state) { return (__assign(__assign({}, base), { minHeight: '32px', boxShadow: 'none', backgroundColor: 'var(--N50)', border: state.isFocused ? '1px solid var(--B500)' : '1px solid var(--N200)', cursor: 'pointer' })); }, option: function (base, state) { return (__assign(__assign({}, base), { color: 'var(--N900)', backgroundColor: state.isFocused ? 'var(--N100)' : 'white', padding: '10px 12px', cursor: 'pointer' })); }, dropdownIndicator: function (base, state) { return (__assign(__assign({}, base), { color: 'var(--N400)', padding: '0 8px', transition: 'all .2s ease', transform: state.selectProps.menuIsOpen ? 'rotate(180deg)' : 'rotate(0deg)' })); }, valueContainer: function (base, state) { return (__assign(__assign({}, base), { padding: '0 8px', fontWeight: '400', color: state.selectProps.menuIsOpen ? 'var(--N500)' : base.color })); }, loadingMessage: function (base) { return (__assign(__assign({}, base), { color: 'var(--N600)' })); }, noOptionsMessage: function (base) { return (__assign(__assign({}, base), { color: 'var(--N600)' })); }, multiValue: function (base, state) {
28436
+ return __assign({ menuList: function (base) { return (__assign(__assign({}, base), { paddingTop: 0, paddingBottom: 0 })); }, control: function (base, state) { return (__assign(__assign({}, base), { minHeight: '32px', boxShadow: 'none', backgroundColor: 'var(--N50)', border: state.isFocused ? '1px solid var(--B500)' : '1px solid var(--N200)', cursor: 'pointer' })); }, option: function (base, state) { return (__assign(__assign({}, base), { color: 'var(--N900)', backgroundColor: state.isFocused ? 'var(--N100)' : 'white', padding: '10px 12px' })); }, dropdownIndicator: function (base, state) { return (__assign(__assign({}, base), { color: 'var(--N400)', padding: '0 8px', transition: 'all .2s ease', transform: state.selectProps.menuIsOpen ? 'rotate(180deg)' : 'rotate(0deg)' })); }, valueContainer: function (base, state) { return (__assign(__assign({}, base), { padding: '0 8px', fontWeight: '400', color: state.selectProps.menuIsOpen ? 'var(--N500)' : base.color })); }, loadingMessage: function (base) { return (__assign(__assign({}, base), { color: 'var(--N600)' })); }, noOptionsMessage: function (base) { return (__assign(__assign({}, base), { color: 'var(--N600)' })); }, multiValue: function (base, state) {
28260
28437
  return __assign(__assign({}, base), { border: "1px solid var(--N200)", borderRadius: "4px", background: 'white', height: '28px', marginRight: '8px', padding: '2px', fontSize: '12px' });
28261
28438
  } }, styleOverrides);
28262
28439
  };
@@ -28306,15 +28483,15 @@ var getInferredTypeFromValueType = function (value) {
28306
28483
  }
28307
28484
  };
28308
28485
 
28309
- var _path$6;
28310
- 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); }
28486
+ var _path$1;
28487
+ 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); }
28311
28488
  var SvgIcChevronDown = function SvgIcChevronDown(props) {
28312
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
28489
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
28313
28490
  xmlns: "http://www.w3.org/2000/svg",
28314
28491
  width: "1em",
28315
28492
  height: "1em",
28316
28493
  viewBox: "0 0 24 24"
28317
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
28494
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
28318
28495
  fill: "#999",
28319
28496
  className: "ic-chevron-down_svg__fill-color",
28320
28497
  fillRule: "nonzero",
@@ -28322,7 +28499,7 @@ var SvgIcChevronDown = function SvgIcChevronDown(props) {
28322
28499
  })));
28323
28500
  };
28324
28501
 
28325
- var commonStyles = getCommonSelectStyle$1();
28502
+ var commonStyles = getCommonSelectStyle();
28326
28503
  var MenuList = function (_a) {
28327
28504
  var children = _a.children, props = __rest(_a, ["children"]);
28328
28505
  return (jsxRuntime.jsx(components.MenuList, __assign({}, props, { children: Array.isArray(children) ? children.slice(0, 20) : children })));
@@ -28373,16 +28550,16 @@ var Form = RJSF.default;
28373
28550
  var validator = RJSFValidator.default;
28374
28551
  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 }))); };
28375
28552
 
28376
- var _style, _rect$2;
28377
- 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); }
28553
+ var _style, _rect;
28554
+ 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); }
28378
28555
  var SvgIcRotateDevtron = function SvgIcRotateDevtron(props) {
28379
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
28556
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
28380
28557
  width: "1em",
28381
28558
  height: "1em",
28382
28559
  viewBox: "0 0 100 100",
28383
28560
  fill: "none",
28384
28561
  xmlns: "http://www.w3.org/2000/svg"
28385
- }, 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", {
28562
+ }, 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", {
28386
28563
  width: 100,
28387
28564
  height: 100,
28388
28565
  rx: 20,
@@ -28511,9 +28688,8 @@ var handleAddCD = function (_a) {
28511
28688
  handleCDSelect(workflowId, ciPipelineId, pipelineType, startNode.id, isWebhookCD, endNodeId, addPipelineType);
28512
28689
  };
28513
28690
 
28514
- // TODO: label association with input
28515
28691
  function CustomInput(_a) {
28516
- var name = _a.name, value = _a.value, error = _a.error, onChange = _a.onChange, _b = _a.onFocus, onFocus = _b === void 0 ? function (e) { } : _b, label = _a.label, _c = _a.type, type = _c === void 0 ? 'text' : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.labelClassName, labelClassName = _e === void 0 ? '' : _e, _f = _a.placeholder, placeholder = _f === void 0 ? '' : _f, _g = _a.tabIndex, tabIndex = _g === void 0 ? 0 : _g, _h = _a.dataTestid, dataTestid = _h === void 0 ? '' : _h, _j = _a.isRequiredField, isRequiredField = _j === void 0 ? false : _j, _k = _a.autoFocus, autoFocus = _k === void 0 ? false : _k, _l = _a.rootClassName, rootClassName = _l === void 0 ? '' : _l, _m = _a.autoComplete, autoComplete = _m === void 0 ? 'off' : _m, _o = _a.helperText, helperText = _o === void 0 ? '' : _o, handleOnBlur = _a.handleOnBlur, _p = _a.readOnly, readOnly = _p === void 0 ? false : _p, _q = _a.noTrim, noTrim = _q === void 0 ? false : _q, ref = _a.ref, onKeyPress = _a.onKeyPress, defaultValue = _a.defaultValue, onKeyDown = _a.onKeyDown, required = _a.required, additionalErrorInfo = _a.additionalErrorInfo, _r = _a.inputWrapClassName, inputWrapClassName = _r === void 0 ? '' : _r, _s = _a.inputProps, inputProps = _s === void 0 ? {} : _s;
28692
+ var name = _a.name, value = _a.value, error = _a.error, onChange = _a.onChange, _b = _a.onFocus, onFocus = _b === void 0 ? function (e) { } : _b, label = _a.label, _c = _a.type, type = _c === void 0 ? 'text' : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.labelClassName, labelClassName = _e === void 0 ? '' : _e, _f = _a.placeholder, placeholder = _f === void 0 ? '' : _f, _g = _a.tabIndex, tabIndex = _g === void 0 ? 1 : _g, _h = _a.dataTestid, dataTestid = _h === void 0 ? '' : _h, _j = _a.isRequiredField, isRequiredField = _j === void 0 ? false : _j, _k = _a.autoFocus, autoFocus = _k === void 0 ? false : _k, _l = _a.rootClassName, rootClassName = _l === void 0 ? '' : _l, _m = _a.autoComplete, autoComplete = _m === void 0 ? 'off' : _m, _o = _a.helperText, helperText = _o === void 0 ? '' : _o, handleOnBlur = _a.handleOnBlur, _p = _a.readOnly, readOnly = _p === void 0 ? false : _p, _q = _a.noTrim, noTrim = _q === void 0 ? false : _q, ref = _a.ref, onKeyPress = _a.onKeyPress, defaultValue = _a.defaultValue, onKeyDown = _a.onKeyDown, required = _a.required, additionalErrorInfo = _a.additionalErrorInfo, _r = _a.inputWrapClassName, inputWrapClassName = _r === void 0 ? '' : _r, _s = _a.inputProps, inputProps = _s === void 0 ? {} : _s;
28517
28693
  function handleError(error) {
28518
28694
  if (!Array.isArray(error)) {
28519
28695
  return [error];
@@ -28644,26 +28820,23 @@ function DraggableWrapper(_a) {
28644
28820
  y: data.y,
28645
28821
  });
28646
28822
  }
28647
- return (
28648
- // Since we are using position fixed so we need to disable click on the div so that it does not interfere with the click of other elements
28649
- jsxRuntime.jsx("div", __assign({ className: "dc__position-fixed dc__disable-click", style: {
28823
+ return (jsxRuntime.jsx("div", __assign({ className: "dc__position-fixed", style: {
28650
28824
  zIndex: zIndex,
28651
28825
  } }, { children: jsxRuntime.jsx(Draggable, __assign({ handle: dragSelector, nodeRef: nodeRef, position: position, onDrag: handlePositionChange }, { children: jsxRuntime.jsx("div", __assign({ ref: nodeRef }, childDivProps, { style: {
28652
28826
  zIndex: zIndex,
28653
- pointerEvents: 'auto',
28654
28827
  } }, { children: children })) })) })));
28655
28828
  }
28656
28829
 
28657
- var _path$5;
28658
- 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); }
28830
+ var _path;
28831
+ 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); }
28659
28832
  var SvgIcDrag = function SvgIcDrag(props) {
28660
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
28833
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
28661
28834
  width: "1em",
28662
28835
  height: "1em",
28663
28836
  viewBox: "0 0 16 16",
28664
28837
  fill: "none",
28665
28838
  xmlns: "http://www.w3.org/2000/svg"
28666
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
28839
+ }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
28667
28840
  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",
28668
28841
  fill: "#596168"
28669
28842
  })));
@@ -28785,1187 +28958,30 @@ var Pagination = function (_a) {
28785
28958
  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 })] })))] })));
28786
28959
  };
28787
28960
 
28788
- var _path$4, _path2;
28789
- 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); }
28790
- var SvgIcCpu = function SvgIcCpu(props) {
28791
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
28792
- xmlns: "http://www.w3.org/2000/svg",
28793
- width: "1em",
28794
- height: "1em",
28795
- viewBox: "0 0 20 20",
28796
- fill: "none"
28797
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
28798
- d: "M12.5 5.625h-5m5 2.5h-5m8.125-5v13.75c0 .345-.28.625-.625.625H5a.625.625 0 0 1-.625-.625V3.125c0-.345.28-.625.625-.625h10c.345 0 .625.28.625.625Z",
28799
- stroke: "#596168",
28800
- strokeWidth: 1.5,
28801
- strokeLinecap: "round",
28802
- strokeLinejoin: "round"
28803
- })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
28804
- d: "M10 15a.937.937 0 1 0 0-1.875A.937.937 0 0 0 10 15Z",
28805
- fill: "#596168"
28806
- })));
28807
- };
28808
-
28809
- var _path$3;
28810
- 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); }
28811
- var SvgIcMemory = function SvgIcMemory(props) {
28812
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
28813
- xmlns: "http://www.w3.org/2000/svg",
28814
- width: "1em",
28815
- height: "1em",
28816
- viewBox: "0 0 20 20",
28817
- fill: "none"
28818
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
28819
- d: "M16.25 8.125h1.875m-1.875 3.75h1.875m-16.25-3.75H3.75m-1.875 3.75H3.75m8.125 4.375v1.875m-3.75-1.875v1.875m3.75-16.25V3.75m-3.75-1.875V3.75m-.313 4.063h4.375v4.375H7.814V7.811ZM4.376 3.75h11.25c.345 0 .625.28.625.625v11.25c0 .345-.28.625-.625.625H4.375a.625.625 0 0 1-.625-.625V4.375c0-.345.28-.625.625-.625Z",
28820
- stroke: "#596168",
28821
- strokeWidth: 1.5,
28822
- strokeLinecap: "round",
28823
- strokeLinejoin: "round"
28824
- })));
28825
- };
28826
-
28827
- var _path$2;
28828
- 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); }
28829
- var SvgIcTimer = function SvgIcTimer(props) {
28830
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
28831
- xmlns: "http://www.w3.org/2000/svg",
28832
- width: "1em",
28833
- height: "1em",
28834
- viewBox: "0 0 20 20",
28835
- fill: "none"
28836
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
28837
- d: "m10 11.041 3.094-3.093M8.125 1.666h3.75m5 9.376a6.875 6.875 0 1 1-13.75 0 6.875 6.875 0 0 1 13.75 0Z",
28838
- stroke: "#596168",
28839
- strokeWidth: 1.5,
28840
- strokeLinecap: "round",
28841
- strokeLinejoin: "round"
28842
- })));
28843
- };
28844
-
28845
- var _a$2;
28846
- /**
28847
- * Unique actions that will be dispatched and,
28848
- * Keeping some values (cpu_limit, etc) in sync with backend
28849
- */
28850
- exports.BuildInfraConfigTypes = void 0;
28851
- (function (BuildInfraConfigTypes) {
28852
- BuildInfraConfigTypes["CPU_LIMIT"] = "cpu_limit";
28853
- BuildInfraConfigTypes["CPU_REQUEST"] = "cpu_request";
28854
- BuildInfraConfigTypes["MEMORY_LIMIT"] = "memory_limit";
28855
- BuildInfraConfigTypes["MEMORY_REQUEST"] = "memory_request";
28856
- BuildInfraConfigTypes["BUILD_TIMEOUT"] = "timeout";
28857
- })(exports.BuildInfraConfigTypes || (exports.BuildInfraConfigTypes = {}));
28858
28961
  /**
28859
- * Combination of BuildInfraConfigTypes and BuildInfraMetaConfigTypes is going to derive error state and actions(actions will also be derived with BuildInfraInheritActions)
28962
+ * User Status received from the API
28860
28963
  */
28861
- exports.BuildInfraMetaConfigTypes = void 0;
28862
- (function (BuildInfraMetaConfigTypes) {
28863
- BuildInfraMetaConfigTypes["NAME"] = "name";
28864
- BuildInfraMetaConfigTypes["DESCRIPTION"] = "description";
28865
- })(exports.BuildInfraMetaConfigTypes || (exports.BuildInfraMetaConfigTypes = {}));
28964
+ exports.UserStatusDto = void 0;
28965
+ (function (UserStatusDto) {
28966
+ UserStatusDto["active"] = "active";
28967
+ UserStatusDto["inactive"] = "inactive";
28968
+ })(exports.UserStatusDto || (exports.UserStatusDto = {}));
28866
28969
  /**
28867
- * Would be used as key for few components and would be appending activate and de_activate actions to it
28970
+ * User status for the frontend
28868
28971
  */
28869
- exports.BuildInfraLocators = void 0;
28870
- (function (BuildInfraLocators) {
28871
- BuildInfraLocators["CPU"] = "cpu";
28872
- BuildInfraLocators["MEMORY"] = "memory";
28873
- // This name can be also different from BuildInfraConfigTypes[BUILD_TIMEOUT] in case we want to show different label
28874
- BuildInfraLocators["BUILD_TIMEOUT"] = "timeout";
28875
- })(exports.BuildInfraLocators || (exports.BuildInfraLocators = {}));
28876
- // FIXME: Derive this from BuildInfraLocators
28877
- // Appending the locators from above
28878
- exports.BuildInfraInheritActions = void 0;
28879
- (function (BuildInfraInheritActions) {
28880
- BuildInfraInheritActions["ACTIVATE_CPU"] = "activate_cpu";
28881
- BuildInfraInheritActions["DE_ACTIVATE_CPU"] = "de_activate_cpu";
28882
- BuildInfraInheritActions["ACTIVATE_MEMORY"] = "activate_memory";
28883
- BuildInfraInheritActions["DE_ACTIVATE_MEMORY"] = "de_activate_memory";
28884
- BuildInfraInheritActions["ACTIVATE_BUILD_TIMEOUT"] = "activate_timeout";
28885
- BuildInfraInheritActions["DE_ACTIVATE_BUILD_TIMEOUT"] = "de_activate_timeout";
28886
- })(exports.BuildInfraInheritActions || (exports.BuildInfraInheritActions = {}));
28887
- var BuildInfraConfigActionMap = (_a$2 = {},
28888
- _a$2[exports.BuildInfraConfigTypes.BUILD_TIMEOUT] = exports.BuildInfraLocators.BUILD_TIMEOUT,
28889
- _a$2[exports.BuildInfraConfigTypes.CPU_LIMIT] = exports.BuildInfraLocators.CPU,
28890
- _a$2[exports.BuildInfraConfigTypes.CPU_REQUEST] = exports.BuildInfraLocators.CPU,
28891
- _a$2[exports.BuildInfraConfigTypes.MEMORY_LIMIT] = exports.BuildInfraLocators.MEMORY,
28892
- _a$2[exports.BuildInfraConfigTypes.MEMORY_REQUEST] = exports.BuildInfraLocators.MEMORY,
28893
- _a$2);
28894
- exports.BuildInfraProfileVariants = void 0;
28895
- (function (BuildInfraProfileVariants) {
28896
- BuildInfraProfileVariants["DEFAULT"] = "DEFAULT";
28897
- BuildInfraProfileVariants["NORMAL"] = "NORMAL";
28898
- BuildInfraProfileVariants["CUSTOM"] = "CUSTOM";
28899
- })(exports.BuildInfraProfileVariants || (exports.BuildInfraProfileVariants = {}));
28900
-
28901
- var _a$1;
28902
- var BUILD_INFRA_INPUT_CONSTRAINTS = {
28903
- STEP: 'any',
28904
- MIN: 0,
28905
- DECIMAL_PLACES: 2,
28906
- };
28907
- var BUILD_INFRA_TEXT = {
28908
- HEADING: 'Build Infra Configuration',
28909
- EDIT_SUBMIT: 'Save changes',
28910
- SAVE_SUBMIT: 'Save',
28911
- EDIT_CANCEL: 'Cancel',
28912
- EDIT_DEFAULT_TOOLTIP: 'Efficiently control infrastructure settings such as CPU, Memory, and Build timeout for your build pipelines. Streamline resource management to optimise build time and cost effortlessly.',
28913
- DESCRIPTION_LABEL: 'Description',
28914
- DESCRIPTION_PLACEHOLDER: 'Enter a description here',
28915
- PROFILE_LABEL: 'Profile name',
28916
- PROFILE_PLACEHOLDER: 'Eg. java or node',
28917
- INHERITING_HEADING_DESCRIPTION: 'Inheriting from default',
28918
- SUBMIT_BUTTON_TIPPY: {
28919
- INVALID_INPUT: 'Valid input is required for all mandatory fields.',
28920
- REQUEST_IN_PROGRESS: 'Request in progress.',
28921
- },
28922
- VALIDATE_REQUEST_LIMIT: {
28923
- REQUEST_LESS_THAN_LIMIT: 'Request should be less than or equal to limit.',
28924
- CAN_NOT_COMPUTE: 'Request and limit value diff are too high to validate.',
28925
- REQUEST_DECIMAL_PLACES: "Request should be upto ".concat(BUILD_INFRA_INPUT_CONSTRAINTS.DECIMAL_PLACES, " decimal places."),
28926
- LIMIT_DECIMAL_PLACES: "Limit should be upto ".concat(BUILD_INFRA_INPUT_CONSTRAINTS.DECIMAL_PLACES, " decimal places."),
28927
- },
28928
- getInvalidActionMessage: function (action) { return "Invalid action type: ".concat(action); },
28929
- getSubmitSuccessMessage: function (profileName, isEdited) {
28930
- return "".concat(profileName, " profile is ").concat(isEdited ? 'updated' : 'created');
28931
- },
28932
- PROFILE_NOT_FOUND: {
28933
- title: 'Profile not found',
28934
- subTitle: 'The profile you are looking for does not exist.',
28935
- },
28936
- INVALID_FORM_MESSAGE: 'Valid input is required for all mandatory fields.',
28937
- };
28938
- var BUILD_INFRA_BREADCRUMB = {
28939
- alias: {
28940
- 'global-config': null,
28941
- 'build-infra': {
28942
- component: jsxRuntime.jsx("h2", __assign({ className: "m-0 cn-9 fs-16 fw-6 lh-32" }, { children: BUILD_INFRA_TEXT.HEADING })),
28943
- linked: false,
28944
- },
28945
- },
28946
- };
28947
- // TODO: move heading to component itself
28948
- var BUILD_INFRA_FORM_FIELDS = [
28949
- {
28950
- heading: jsxRuntime.jsx("h3", __assign({ className: "m-0 cn-9 fs-13 fw-6 lh-20 w-240 dc__no-shrink" }, { children: "CPU (Request - Limit)" })),
28951
- marker: SvgIcCpu,
28952
- actions: [
28953
- {
28954
- actionType: exports.BuildInfraConfigTypes.CPU_REQUEST,
28955
- label: 'Request',
28956
- placeholder: 'Type CPU request',
28957
- },
28958
- {
28959
- actionType: exports.BuildInfraConfigTypes.CPU_LIMIT,
28960
- label: 'Limit',
28961
- placeholder: 'Type CPU limit',
28962
- },
28963
- ],
28964
- locator: exports.BuildInfraLocators.CPU,
28965
- },
28966
- {
28967
- heading: jsxRuntime.jsx("h3", __assign({ className: "m-0 cn-9 fs-13 fw-6 lh-20 w-240 dc__no-shrink" }, { children: "Memory (Request - Limit)" })),
28968
- marker: SvgIcMemory,
28969
- actions: [
28970
- {
28971
- actionType: exports.BuildInfraConfigTypes.MEMORY_REQUEST,
28972
- label: 'Request',
28973
- placeholder: 'Type memory request',
28974
- },
28975
- {
28976
- actionType: exports.BuildInfraConfigTypes.MEMORY_LIMIT,
28977
- label: 'Limit',
28978
- placeholder: 'Type memory limit',
28979
- },
28980
- ],
28981
- locator: exports.BuildInfraLocators.MEMORY,
28982
- },
28983
- {
28984
- heading: jsxRuntime.jsx("h3", __assign({ className: "m-0 cn-9 fs-13 fw-6 lh-20 w-240 dc__no-shrink" }, { children: "Build timeout" })),
28985
- marker: SvgIcTimer,
28986
- actions: [
28987
- {
28988
- actionType: exports.BuildInfraConfigTypes.BUILD_TIMEOUT,
28989
- label: 'Timeout',
28990
- placeholder: 'Type build timeout',
28991
- },
28992
- ],
28993
- locator: exports.BuildInfraLocators.BUILD_TIMEOUT,
28994
- },
28995
- ];
28996
- var PROFILE_INPUT_ERROR_FIELDS = Object.fromEntries(Object.values(__assign(__assign({}, exports.BuildInfraConfigTypes), exports.BuildInfraMetaConfigTypes)).map(function (value) { return [value, null]; }));
28997
- // fields required to be filled before submitting the form in create view, since we pre-populate the form with default values so no need in configs
28998
- var CREATE_MODE_REQUIRED_INPUT_FIELDS = [exports.BuildInfraMetaConfigTypes.NAME];
28999
- var DEFAULT_PROFILE_NAME = 'default';
29000
- var CREATE_PROFILE_BASE_VALUE = {
29001
- name: '',
29002
- description: '',
29003
- type: exports.BuildInfraProfileVariants.NORMAL,
29004
- appCount: 0,
29005
- };
29006
- var CREATE_VIEW_CHECKED_CONFIGS = (_a$1 = {},
29007
- _a$1[exports.BuildInfraConfigTypes.CPU_REQUEST] = true,
29008
- _a$1[exports.BuildInfraConfigTypes.CPU_LIMIT] = true,
29009
- _a$1);
29010
- var BUILD_INFRA_TEST_IDS = {
29011
- SUBMIT_BUTTON: 'build-infra-submit-button',
29012
- CANCEL_BUTTON: 'build-infra-cancel-button',
29013
- };
29014
-
29015
- var Descriptor = function (_a) {
29016
- var additionalContainerClasses = _a.additionalContainerClasses, breadCrumbs = _a.breadCrumbs, children = _a.children, tippyInfoText = _a.tippyInfoText, tippyAdditionalContent = _a.tippyAdditionalContent;
29017
- return (jsxRuntime.jsxs("div", __assign({ className: "flexbox dc__content-space dc__align-items-center w-100 ".concat(additionalContainerClasses !== null && additionalContainerClasses !== void 0 ? additionalContainerClasses : '') }, { children: [jsxRuntime.jsxs("div", __assign({ className: "flexbox dc__align-items-center dc__gap-4" }, { children: [jsxRuntime.jsx(BreadCrumb, { breadcrumbs: breadCrumbs }), jsxRuntime.jsx(TippyCustomized, __assign({ theme: exports.TippyTheme.white, className: "w-300 h-100 dc__align-left", placement: "right", Icon: SvgIcHelp, iconClass: "fcv-5", infoText: tippyInfoText !== null && tippyInfoText !== void 0 ? tippyInfoText : BUILD_INFRA_TEXT.EDIT_DEFAULT_TOOLTIP, additionalContent: tippyAdditionalContent, heading: BUILD_INFRA_TEXT.HEADING, showCloseButton: true, trigger: "click", interactive: true }, { children: jsxRuntime.jsx("button", __assign({ className: "p-0 h-20 dc__no-background dc__no-border dc__tab-focus", type: "button", "aria-label": "build-infra-info" }, { children: jsxRuntime.jsx(SvgIcHelpOutline, { className: "icon-dim-20" }) })) }))] })), children] })));
29018
- };
29019
-
29020
- var Footer = function (_a) {
29021
- var disabled = _a.disabled, handleCancel = _a.handleCancel, editProfile = _a.editProfile, loading = _a.loading;
29022
- var disableMessage = disabled
29023
- ? BUILD_INFRA_TEXT.SUBMIT_BUTTON_TIPPY.INVALID_INPUT
29024
- : BUILD_INFRA_TEXT.SUBMIT_BUTTON_TIPPY.REQUEST_IN_PROGRESS;
29025
- var getButtonText = function () {
29026
- if (editProfile) {
29027
- return BUILD_INFRA_TEXT.EDIT_SUBMIT;
29028
- }
29029
- return BUILD_INFRA_TEXT.SAVE_SUBMIT;
29030
- };
29031
- var renderTippy = function (children) { return (jsxRuntime.jsx(Tippy, __assign({ content: disableMessage, placement: "top", className: "default-tt", arrow: false }, { children: children }))); };
29032
- return (jsxRuntime.jsxs("div", __assign({ className: "flex pl pr pb pt h-64 dc__gap-12 dc__border-top dc__content-start" }, { children: [jsxRuntime.jsx(ConditionalWrap, __assign({ condition: disabled || loading, wrap: renderTippy }, { children: jsxRuntime.jsx("div", __assign({ className: "flexbox dc__align-items-center" }, { children: jsxRuntime.jsx("button", __assign({ type: "submit", className: "cta submit h-32 flex", disabled: disabled || loading, "data-testid": BUILD_INFRA_TEST_IDS.SUBMIT_BUTTON }, { children: loading ? jsxRuntime.jsx(Progressing, { size: 16 }) : getButtonText() })) })) })), handleCancel && (jsxRuntime.jsx("button", __assign({ type: "button", className: "cta cancel h-32 flex", "data-testid": BUILD_INFRA_TEST_IDS.CANCEL_BUTTON, onClick: handleCancel }, { children: BUILD_INFRA_TEXT.EDIT_CANCEL })))] })));
29033
- };
29034
-
29035
- var getBaseProfileObject = function (fromCreateView, profile) {
29036
- if (fromCreateView) {
29037
- return CREATE_PROFILE_BASE_VALUE;
29038
- }
29039
- return {
29040
- id: profile.id,
29041
- name: profile.name,
29042
- description: profile.description,
29043
- type: profile.type,
29044
- appCount: profile.appCount,
29045
- };
29046
- };
29047
- // Would receive a single profile and return transformed response
29048
- var getTransformedBuildInfraProfileResponse = function (_a) {
29049
- var _b, _c, _d;
29050
- var configurationUnits = _a.configurationUnits, defaultConfigurations = _a.defaultConfigurations, profile = _a.profile, fromCreateView = _a.fromCreateView;
29051
- // Assuming would contain all the keys
29052
- var defaultConfigurationsMap = (_b = defaultConfigurations === null || defaultConfigurations === void 0 ? void 0 : defaultConfigurations.reduce(function (acc, configuration) {
29053
- acc[configuration.key] = configuration;
29054
- return acc;
29055
- }, {})) !== null && _b !== void 0 ? _b : {};
29056
- var profileConfigurations = (_d = (_c = profile === null || profile === void 0 ? void 0 : profile.configurations) === null || _c === void 0 ? void 0 : _c.reduce(function (acc, configuration) {
29057
- acc[configuration.key] = configuration;
29058
- return acc;
29059
- }, {})) !== null && _d !== void 0 ? _d : {};
29060
- var configurations = Object.keys(defaultConfigurationsMap).reduce(function (acc, key) {
29061
- var _a, _b;
29062
- var defaultConfiguration = defaultConfigurationsMap[key];
29063
- var profileConfiguration = ((_a = profileConfigurations[key]) === null || _a === void 0 ? void 0 : _a.profileName) === (profile === null || profile === void 0 ? void 0 : profile.name) ? profileConfigurations[key] : null;
29064
- // Pushing default value in configurations in case we de-activate the configuration
29065
- var defaultValue = {
29066
- value: defaultConfiguration.value,
29067
- unit: defaultConfiguration.unit,
29068
- };
29069
- if (fromCreateView) {
29070
- acc[key] = {
29071
- key: key,
29072
- value: defaultConfiguration.value,
29073
- unit: defaultConfiguration.unit,
29074
- active: (_b = CREATE_VIEW_CHECKED_CONFIGS[key]) !== null && _b !== void 0 ? _b : false,
29075
- defaultValue: defaultValue,
29076
- };
29077
- return acc;
29078
- }
29079
- if (profileConfiguration) {
29080
- acc[key] = __assign(__assign({}, profileConfiguration), { defaultValue: defaultValue });
29081
- return acc;
29082
- }
29083
- // Removing id from it since we do not have a configuration
29084
- // While generating payload, we will check on the basis of id and active flag.
29085
- acc[key] = {
29086
- key: key,
29087
- value: defaultConfiguration.value,
29088
- // saving profile name as undefined and this would be a check, if we are deriving from default or not
29089
- unit: defaultConfiguration.unit,
29090
- active: false,
29091
- defaultValue: defaultValue,
29092
- };
29093
- return acc;
29094
- }, {});
29095
- return {
29096
- configurationUnits: configurationUnits,
29097
- profile: __assign(__assign({}, (profile && getBaseProfileObject(fromCreateView, profile))), { configurations: configurations }),
29098
- };
29099
- };
29100
- var getBuildInfraProfileByName = function (_a) {
29101
- var name = _a.name, fromCreateView = _a.fromCreateView;
29102
- return __awaiter(void 0, void 0, void 0, function () {
29103
- var response, _b, configurationUnits, defaultConfigurations, profile, error_1;
29104
- return __generator(this, function (_c) {
29105
- switch (_c.label) {
29106
- case 0:
29107
- _c.trys.push([0, 2, , 3]);
29108
- return [4 /*yield*/, get("".concat(ROUTES.INFRA_CONFIG_PROFILE, "/").concat(name))];
29109
- case 1:
29110
- response = _c.sent();
29111
- _b = response.result, configurationUnits = _b.configurationUnits, defaultConfigurations = _b.defaultConfigurations, profile = _b.profile;
29112
- return [2 /*return*/, getTransformedBuildInfraProfileResponse({
29113
- configurationUnits: configurationUnits,
29114
- defaultConfigurations: defaultConfigurations,
29115
- profile: profile,
29116
- fromCreateView: fromCreateView,
29117
- })];
29118
- case 2:
29119
- error_1 = _c.sent();
29120
- showError(error_1);
29121
- throw error_1;
29122
- case 3: return [2 /*return*/];
29123
- }
29124
- });
29125
- });
29126
- };
29127
- var getBuildInfraProfilePayload = function (profileInput) {
29128
- var currentConfigurations = profileInput.configurations;
29129
- var configurationKeys = Object.keys(currentConfigurations);
29130
- // would only keep the configurations with id or active flag as true
29131
- var configurations = configurationKeys.reduce(function (acc, key) {
29132
- var configuration = currentConfigurations[key];
29133
- if (configuration.id || configuration.active) {
29134
- acc.push({
29135
- id: configuration.id,
29136
- key: key,
29137
- value: Number(configuration.value),
29138
- unit: configuration.unit,
29139
- active: configuration.active,
29140
- });
29141
- }
29142
- return acc;
29143
- }, []);
29144
- var payload = {
29145
- name: profileInput.name,
29146
- description: profileInput.description,
29147
- type: profileInput.type,
29148
- configurations: configurations,
29149
- };
29150
- return payload;
29151
- };
29152
- var updateBuildInfraProfile = function (_a) {
29153
- var name = _a.name, profileInput = _a.profileInput;
29154
- var payload = getBuildInfraProfilePayload(profileInput);
29155
- return put("".concat(ROUTES.INFRA_CONFIG_PROFILE, "/").concat(name), payload);
29156
- };
29157
- var createBuildInfraProfile = function (_a) {
29158
- var profileInput = _a.profileInput;
29159
- return __awaiter(void 0, void 0, void 0, function () {
29160
- var payload;
29161
- return __generator(this, function (_b) {
29162
- payload = getBuildInfraProfilePayload(profileInput);
29163
- return [2 /*return*/, post(ROUTES.INFRA_CONFIG_PROFILE, payload)];
29164
- });
29165
- });
29166
- };
29167
-
29168
- // eslint-disable-next-line import/prefer-default-export
29169
- var NOT_FOUND_DEFAULT_TEXT = {
29170
- title: 'Resource not found',
29171
- subTitle: 'The resource you are looking for does not exist',
29172
- };
29173
-
29174
- var APIResponseHandler = function (_a) {
29175
- var _b, _c;
29176
- var isLoading = _a.isLoading, progressingProps = _a.progressingProps, error = _a.error, notAuthorized = _a.notAuthorized, notFoundText = _a.notFoundText, reloadProps = _a.reloadProps, children = _a.children;
29177
- // keeping it above loading since, not expected to send a call if not authorized
29178
- if (notAuthorized) {
29179
- return jsxRuntime.jsx(ErrorScreenNotAuthorized, {});
29180
- }
29181
- if (isLoading) {
29182
- return jsxRuntime.jsx(Progressing, __assign({}, progressingProps));
29183
- }
29184
- if (error) {
29185
- // TODO: Can extend ErrorScreenNotFound
29186
- if ((error === null || error === void 0 ? void 0 : error.code) === 404) {
29187
- return (jsxRuntime.jsx(GenericEmptyState, { title: (_b = notFoundText === null || notFoundText === void 0 ? void 0 : notFoundText.title) !== null && _b !== void 0 ? _b : NOT_FOUND_DEFAULT_TEXT.title, subTitle: (_c = notFoundText === null || notFoundText === void 0 ? void 0 : notFoundText.subTitle) !== null && _c !== void 0 ? _c : NOT_FOUND_DEFAULT_TEXT.subTitle }));
29188
- }
29189
- return jsxRuntime.jsx(Reload, __assign({}, reloadProps));
29190
- }
29191
- // Had to add this since while using it is throwing ts error
29192
- // eslint-disable-next-line react/jsx-no-useless-fragment
29193
- return jsxRuntime.jsx(jsxRuntime.Fragment, { children: children });
29194
- };
29195
-
29196
- var getCommonSelectStyle = function (styleOverrides) {
29197
- if (styleOverrides === void 0) { styleOverrides = {}; }
29198
- return (__assign({ menuList: function (base) { return (__assign(__assign({}, base), { paddingTop: 0, paddingBottom: 0 })); }, control: function (base, state) { return (__assign(__assign({}, base), { minHeight: '32px', boxShadow: 'none', backgroundColor: 'var(--N50)', border: state.isFocused ? '1px solid var(--B500)' : '1px solid var(--N200)', cursor: 'pointer' })); }, option: function (base, state) { return (__assign(__assign({}, base), { color: 'var(--N900)', backgroundColor: state.isFocused ? 'var(--N100)' : 'white', padding: '10px 12px' })); }, dropdownIndicator: function (base, state) { return (__assign(__assign({}, base), { color: 'var(--N400)', padding: '0 8px', transition: 'all .2s ease', transform: state.selectProps.menuIsOpen ? 'rotate(180deg)' : 'rotate(0deg)' })); }, valueContainer: function (base) { return (__assign(__assign({}, base), { padding: '0 8px', fontWeight: '400' })); }, loadingMessage: function (base) { return (__assign(__assign({}, base), { color: 'var(--N600)' })); }, noOptionsMessage: function (base) { return (__assign(__assign({}, base), { color: 'var(--N600)' })); } }, styleOverrides));
29199
- };
29200
- var getCustomOptionBackgroundColor = function (isSelected, isFocused) {
29201
- if (isSelected) {
29202
- return 'var(--B100)';
29203
- }
29204
- if (isFocused) {
29205
- return 'var(--N50)';
29206
- }
29207
- return 'var(--white)';
29208
- };
29209
- var getCustomOptionSelectionStyle = function (styleOverrides) {
29210
- if (styleOverrides === void 0) { styleOverrides = {}; }
29211
- return function (base, state) { return (__assign(__assign(__assign({}, base), { backgroundColor: getCustomOptionBackgroundColor(state.isSelected, state.isFocused), color: state.isSelected ? 'var(--B500)' : 'var(--N900)', textOverflow: 'ellipsis', fontWeight: '500', overflow: 'hidden', textAlign: 'left', whiteSpace: 'nowrap', cursor: 'pointer', fontSize: '13px' }), styleOverrides)); };
29212
- };
29213
- var SelectOption = function (props) {
29214
- var selectProps = props.selectProps, data = props.data, showTippy = props.showTippy, style = props.style, placement = props.placement, tippyContent = props.tippyContent, tippyClass = props.tippyClass;
29215
- selectProps.styles.option = getCustomOptionSelectionStyle(style);
29216
- var getOption = function () { return (jsxRuntime.jsx("div", __assign({ onClick: stopPropagation }, { children: jsxRuntime.jsx(components.Option, __assign({}, props)) }))); };
29217
- return showTippy ? (jsxRuntime.jsx(Tippy, __assign({ className: tippyClass || 'default-white', arrow: false, placement: placement || 'right', content: tippyContent || data.label }, { children: getOption() }))) : (getOption());
29218
- };
29219
-
29220
- var BulkSelectionDropdownItems = function (_a) {
29221
- var locator = _a.locator, label = _a.label, isSelected = _a.isSelected, handleBulkSelection = _a.handleBulkSelection, Icon = _a.icon;
29222
- var handleSelect = function () {
29223
- handleBulkSelection({
29224
- action: locator,
29225
- });
29226
- };
29227
- 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] })));
29228
- };
29229
-
29230
- exports.BulkSelectionEvents = void 0;
29231
- (function (BulkSelectionEvents) {
29232
- BulkSelectionEvents["CLEAR_ALL_SELECTIONS"] = "CLEAR_ALL_SELECTIONS";
29233
- BulkSelectionEvents["CLEAR_IDENTIFIERS"] = "CLEAR_IDENTIFIERS";
29234
- BulkSelectionEvents["SELECT_ALL_ACROSS_PAGES"] = "SELECT_ALL_ACROSS_PAGES";
29235
- BulkSelectionEvents["SELECT_ALL_ON_PAGE"] = "SELECT_ALL_ON_PAGE";
29236
- BulkSelectionEvents["SELECT_IDENTIFIER"] = "SELECT_IDENTIFIER";
29237
- BulkSelectionEvents["CLEAR_IDENTIFIERS_AFTER_ACROSS_SELECTION"] = "CLEAR_IDENTIFIERS_AFTER_ACROSS_SELECTION";
29238
- BulkSelectionEvents["CLEAR_SELECTIONS_AND_SELECT_ALL_ACROSS_PAGES"] = "CLEAR_SELECTIONS_AND_SELECT_ALL_ACROSS_PAGES";
29239
- })(exports.BulkSelectionEvents || (exports.BulkSelectionEvents = {}));
29240
- exports.SelectAllDialogStatus = void 0;
29241
- (function (SelectAllDialogStatus) {
29242
- SelectAllDialogStatus["OPEN"] = "OPEN";
29243
- SelectAllDialogStatus["CLOSED"] = "CLOSED";
29244
- })(exports.SelectAllDialogStatus || (exports.SelectAllDialogStatus = {}));
29245
-
29246
- var _a;
29247
- var BULK_DROPDOWN_TEST_ID = 'bulk-selection-pop-up-menu';
29248
- var BulkSelectionOptionsLabels = (_a = {},
29249
- _a[exports.BulkSelectionEvents.SELECT_ALL_ON_PAGE] = 'All on this page',
29250
- _a[exports.BulkSelectionEvents.SELECT_ALL_ACROSS_PAGES] = 'All across pages',
29251
- _a[exports.BulkSelectionEvents.CLEAR_ALL_SELECTIONS] = 'Clear all selections',
29252
- _a);
29253
- // Considering application can not be named as *
29254
- var SELECT_ALL_ACROSS_PAGES_LOCATOR = '*';
29255
- var getInvalidActionMessage = function (action) { return "Invalid action ".concat(action, " passed to useBulkSelection"); };
29256
-
29257
- var _rect$1, _path$1;
29258
- 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); }
29259
- var SvgIcCheckSquare = function SvgIcCheckSquare(props) {
29260
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
29261
- width: "1em",
29262
- height: "1em",
29263
- viewBox: "0 0 16 16",
29264
- fill: "none",
29265
- xmlns: "http://www.w3.org/2000/svg"
29266
- }, props), _rect$1 || (_rect$1 = /*#__PURE__*/React__namespace.createElement("rect", {
29267
- x: 2,
29268
- y: 2,
29269
- width: 12,
29270
- height: 12,
29271
- rx: 2,
29272
- stroke: "#596168",
29273
- strokeWidth: 1.5,
29274
- strokeLinecap: "round",
29275
- strokeLinejoin: "round"
29276
- })), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
29277
- d: "m11.208 5.958-4.083 4.083L5.083 8",
29278
- stroke: "#596168",
29279
- strokeWidth: 1.5,
29280
- strokeLinecap: "round",
29281
- strokeLinejoin: "round"
29282
- })));
29283
- };
29284
-
29285
- var _rect, _path;
29286
- 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); }
29287
- var SvgIcCheckAll = function SvgIcCheckAll(props) {
29288
- return /*#__PURE__*/React__namespace.createElement("svg", _extends({
29289
- width: "1em",
29290
- height: "1em",
29291
- viewBox: "0 0 17 17",
29292
- fill: "none",
29293
- xmlns: "http://www.w3.org/2000/svg"
29294
- }, props), _rect || (_rect = /*#__PURE__*/React__namespace.createElement("rect", {
29295
- x: 2,
29296
- y: 2,
29297
- width: 11.2,
29298
- height: 11.2,
29299
- rx: 2,
29300
- stroke: "#596168",
29301
- strokeWidth: 1.5,
29302
- strokeLinecap: "round",
29303
- strokeLinejoin: "round"
29304
- })), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
29305
- d: "M15.467 5.866v5.6a4 4 0 0 1-4 4h-5.6M10.35 5.85l-3.5 3.5L5.1 7.6",
29306
- stroke: "#596168",
29307
- strokeWidth: 1.5,
29308
- strokeLinecap: "round",
29309
- strokeLinejoin: "round"
29310
- })));
29311
- };
29312
-
29313
- var BulkSelection = function (_a) {
29314
- var checkboxValue = _a.checkboxValue, isChecked = _a.isChecked, selectedIdentifiers = _a.selectedIdentifiers, handleBulkSelection = _a.handleBulkSelection, showPagination = _a.showPagination;
29315
- var areOptionsSelected = Object.keys(selectedIdentifiers).length > 0;
29316
- var BulkSelectionItems = __spreadArray(__spreadArray([
29317
- {
29318
- locator: exports.BulkSelectionEvents.SELECT_ALL_ON_PAGE,
29319
- label: BulkSelectionOptionsLabels[exports.BulkSelectionEvents.SELECT_ALL_ON_PAGE],
29320
- isSelected: isChecked && checkboxValue === exports.CHECKBOX_VALUE.CHECKED,
29321
- icon: SvgIcCheckSquare,
29322
- }
29323
- ], __read((showPagination
29324
- ? [
29325
- {
29326
- locator: exports.BulkSelectionEvents.SELECT_ALL_ACROSS_PAGES,
29327
- label: BulkSelectionOptionsLabels[exports.BulkSelectionEvents.SELECT_ALL_ACROSS_PAGES],
29328
- isSelected: isChecked && checkboxValue === exports.CHECKBOX_VALUE.BULK_CHECKED,
29329
- icon: SvgIcCheckAll,
29330
- },
29331
- ]
29332
- : [])), false), __read((areOptionsSelected
29333
- ? [
29334
- {
29335
- locator: exports.BulkSelectionEvents.CLEAR_ALL_SELECTIONS,
29336
- label: BulkSelectionOptionsLabels[exports.BulkSelectionEvents.CLEAR_ALL_SELECTIONS],
29337
- isSelected: false,
29338
- icon: SvgIcCross,
29339
- },
29340
- ]
29341
- : [])), false);
29342
- 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)); }) }))] })));
29343
- };
29344
-
29345
- var useBulkSelection = function (_a) {
29346
- var identifiers = _a.identifiers, getSelectAllDialogStatus = _a.getSelectAllDialogStatus;
29347
- var _b = __read(React.useState({}), 2), selectedIdentifiers = _b[0], setSelectedIdentifiers = _b[1];
29348
- var setIdentifiersAfterClear = function (newIdentifiers, selectedIds) {
29349
- var _newIdentifiers = JSON.parse(JSON.stringify(newIdentifiers));
29350
- selectedIds.forEach(function (id) {
29351
- delete _newIdentifiers[id];
29352
- });
29353
- setSelectedIdentifiers(_newIdentifiers);
29354
- };
29355
- var setIdentifiersAfterPageSelection = function (baseObject) {
29356
- var _selectedIdentifiers = JSON.parse(JSON.stringify(selectedIdentifiers));
29357
- // removing bulk selection across pages if present
29358
- if (_selectedIdentifiers[SELECT_ALL_ACROSS_PAGES_LOCATOR]) {
29359
- delete _selectedIdentifiers[SELECT_ALL_ACROSS_PAGES_LOCATOR];
29360
- }
29361
- setSelectedIdentifiers(__assign(__assign({}, _selectedIdentifiers), baseObject));
29362
- };
29363
- var handleBulkSelection = function (_a) {
29364
- var _b, _c;
29365
- var _d, _e;
29366
- var action = _a.action, data = _a.data;
29367
- var selectedIds = (_d = data === null || data === void 0 ? void 0 : data.identifierIds) !== null && _d !== void 0 ? _d : [];
29368
- var identifierObject = (_e = data === null || data === void 0 ? void 0 : data.identifierObject) !== null && _e !== void 0 ? _e : {};
29369
- switch (action) {
29370
- case exports.BulkSelectionEvents.CLEAR_ALL_SELECTIONS:
29371
- setSelectedIdentifiers({});
29372
- break;
29373
- case exports.BulkSelectionEvents.CLEAR_IDENTIFIERS_AFTER_ACROSS_SELECTION: {
29374
- setIdentifiersAfterClear(identifiers, selectedIds);
29375
- break;
29376
- }
29377
- case exports.BulkSelectionEvents.CLEAR_IDENTIFIERS: {
29378
- setIdentifiersAfterClear(selectedIdentifiers, selectedIds);
29379
- break;
29380
- }
29381
- case exports.BulkSelectionEvents.SELECT_ALL_ACROSS_PAGES: {
29382
- if (selectedIdentifiers[SELECT_ALL_ACROSS_PAGES_LOCATOR]) {
29383
- return;
29384
- }
29385
- var selectedIdentifiersLength = Object.keys(selectedIdentifiers).length;
29386
- if (selectedIdentifiersLength > 0 && getSelectAllDialogStatus() === exports.SelectAllDialogStatus.OPEN) {
29387
- return;
29388
- }
29389
- setSelectedIdentifiers((_b = {},
29390
- _b[SELECT_ALL_ACROSS_PAGES_LOCATOR] = true,
29391
- _b));
29392
- break;
29393
- }
29394
- case exports.BulkSelectionEvents.CLEAR_SELECTIONS_AND_SELECT_ALL_ACROSS_PAGES:
29395
- setSelectedIdentifiers((_c = {},
29396
- _c[SELECT_ALL_ACROSS_PAGES_LOCATOR] = true,
29397
- _c));
29398
- break;
29399
- case exports.BulkSelectionEvents.SELECT_ALL_ON_PAGE: {
29400
- setIdentifiersAfterPageSelection(identifiers);
29401
- break;
29402
- }
29403
- case exports.BulkSelectionEvents.SELECT_IDENTIFIER: {
29404
- setIdentifiersAfterPageSelection(identifierObject);
29405
- break;
29406
- }
29407
- default:
29408
- throw new Error(getInvalidActionMessage(action));
29409
- }
29410
- };
29411
- return {
29412
- handleBulkSelection: handleBulkSelection,
29413
- selectedIdentifiers: selectedIdentifiers,
29414
- };
29415
- };
29416
-
29417
- var MESSAGES = {
29418
- PROVIDE_A_NUMBER: 'Please provide a number',
29419
- LOWERCASE_ALPHANUMERIC: 'Only lowercase alphanumeric characters, -, _ or . allowed',
29420
- CAN_NOT_START_END_WITH_SEPARATORS: 'Cannot start/end with -, _ or .',
29421
- getMinMaxCharMessage: function (min, max) { return "Minimum ".concat(min, " and maximum ").concat(max, " characters allowed"); },
29422
- getMaxCharMessage: function (max) { return "Maximum ".concat(max, " characters are allowed"); },
29423
- VALID_POSITIVE_NUMBER: 'This field should be a valid positive number',
29424
- VALID_POSITIVE_INTEGER: 'This field should be a valid positive integer',
29425
- MAX_SAFE_INTEGER: "Maximum allowed value is ".concat(Number.MAX_SAFE_INTEGER),
29426
- };
29427
- var MAX_DESCRIPTION_LENGTH = 300;
29428
- var validateName = function (name) {
29429
- if (!/^.{3,50}$/.test(name)) {
29430
- return {
29431
- isValid: false,
29432
- message: MESSAGES.getMinMaxCharMessage(3, 50),
29433
- };
29434
- }
29435
- if (!/^[a-z0-9-._]+$/.test(name)) {
29436
- return {
29437
- isValid: false,
29438
- message: MESSAGES.LOWERCASE_ALPHANUMERIC,
29439
- };
29440
- }
29441
- if (!/^(?![-._]).*[^-._]$/.test(name)) {
29442
- return {
29443
- isValid: false,
29444
- message: MESSAGES.CAN_NOT_START_END_WITH_SEPARATORS,
29445
- };
29446
- }
29447
- return {
29448
- isValid: true,
29449
- };
29450
- };
29451
- var validateDescription = function (description) {
29452
- if ((description === null || description === void 0 ? void 0 : description.length) > MAX_DESCRIPTION_LENGTH) {
29453
- return {
29454
- isValid: false,
29455
- message: MESSAGES.getMaxCharMessage(MAX_DESCRIPTION_LENGTH),
29456
- };
29457
- }
29458
- return {
29459
- isValid: true,
29460
- };
29461
- };
29462
- var validateRequiredPositiveNumber = function (value) {
29463
- if (!value) {
29464
- return {
29465
- isValid: false,
29466
- message: MESSAGES.PROVIDE_A_NUMBER,
29467
- };
29468
- }
29469
- // TODO: Look if regex is available for this, since 0002 is not a valid number
29470
- if (!/^\d+(\.\d+)?$/.test(value.toString())) {
29471
- return {
29472
- isValid: false,
29473
- message: MESSAGES.VALID_POSITIVE_NUMBER,
29474
- };
29475
- }
29476
- var numericValue = Number(value);
29477
- if (numericValue > Number.MAX_SAFE_INTEGER) {
29478
- return {
29479
- isValid: false,
29480
- message: MESSAGES.MAX_SAFE_INTEGER,
29481
- };
29482
- }
29483
- if (Number(value) <= 0) {
29484
- return {
29485
- isValid: false,
29486
- message: MESSAGES.VALID_POSITIVE_NUMBER,
29487
- };
29488
- }
29489
- return {
29490
- isValid: true,
29491
- };
29492
- };
29493
- var validatePositiveInteger = function (value) {
29494
- if (!value) {
29495
- return {
29496
- isValid: false,
29497
- message: MESSAGES.PROVIDE_A_NUMBER,
29498
- };
29499
- }
29500
- if (!/^\d+$/.test(value.toString())) {
29501
- return {
29502
- isValid: false,
29503
- message: MESSAGES.VALID_POSITIVE_INTEGER,
29504
- };
29505
- }
29506
- var numericValue = Number(value);
29507
- if (numericValue > Number.MAX_SAFE_INTEGER) {
29508
- return {
29509
- isValid: false,
29510
- message: MESSAGES.MAX_SAFE_INTEGER,
29511
- };
29512
- }
29513
- if (Number(value) <= 0) {
29514
- return {
29515
- isValid: false,
29516
- message: MESSAGES.VALID_POSITIVE_INTEGER,
29517
- };
29518
- }
29519
- return {
29520
- isValid: true,
29521
- };
29522
- };
29523
-
29524
- // Disabling default export since this is a helper function and we would have to export a lot of functions in future.
29525
- // eslint-disable-next-line import/prefer-default-export
29526
- var highlightSearchText = function (_a) {
29527
- var searchText = _a.searchText, text = _a.text, highlightClasses = _a.highlightClasses;
29528
- if (!searchText) {
29529
- return text;
29530
- }
29531
- try {
29532
- var regex = new RegExp(searchText, 'gi');
29533
- return text.replace(regex, function (match) { return "<span class=\"".concat(highlightClasses, "\">").concat(match, "</span>"); });
29534
- }
29535
- catch (error) {
29536
- return text;
29537
- }
29538
- };
29539
-
29540
- var validateRequestLimit = function (_a) {
29541
- var _b, _c, _d, _e, _f, _g;
29542
- var request = _a.request, limit = _a.limit, unitsMap = _a.unitsMap;
29543
- // Request <= Limit
29544
- // Request and Limit should be numbers can be decimals
29545
- // Request and Limit should be positive numbers
29546
- // Request and Limit should be less than Number.MAX_SAFE_INTEGER
29547
- // Request and Limit should can have at most BUILD_INFRA_INPUT_CONSTRAINTS.DECIMAL_PLACES
29548
- // Both request and limit should be there
29549
- var requestNumber = Number(request.value);
29550
- var limitNumber = Number(limit.value);
29551
- var requestUnit = Number((_b = unitsMap[request.unit]) === null || _b === void 0 ? void 0 : _b.conversionFactor);
29552
- var limitUnit = Number((_c = unitsMap[limit.unit]) === null || _c === void 0 ? void 0 : _c.conversionFactor);
29553
- var requestLimitValidationResponse = {
29554
- request: {
29555
- isValid: true,
29556
- },
29557
- limit: {
29558
- isValid: true,
29559
- },
29560
- };
29561
- var requestValidationMessage = validateRequiredPositiveNumber(request.value).message;
29562
- var limitValidationMessage = validateRequiredPositiveNumber(limit.value).message;
29563
- if (requestValidationMessage) {
29564
- requestLimitValidationResponse.request = {
29565
- message: requestValidationMessage,
29566
- isValid: false,
29567
- };
29568
- }
29569
- if (limitValidationMessage) {
29570
- requestLimitValidationResponse.limit = {
29571
- message: limitValidationMessage,
29572
- isValid: false,
29573
- };
29574
- }
29575
- if (limitValidationMessage || requestValidationMessage) {
29576
- return requestLimitValidationResponse;
29577
- }
29578
- // only two decimal places are allowed
29579
- var requestDecimalPlaces = (_e = (_d = String(request.value).split('.')[1]) === null || _d === void 0 ? void 0 : _d.length) !== null && _e !== void 0 ? _e : 0;
29580
- var limitDecimalPlaces = (_g = (_f = String(limit.value).split('.')[1]) === null || _f === void 0 ? void 0 : _f.length) !== null && _g !== void 0 ? _g : 0;
29581
- if (requestDecimalPlaces > BUILD_INFRA_INPUT_CONSTRAINTS.DECIMAL_PLACES) {
29582
- requestLimitValidationResponse.request = {
29583
- message: BUILD_INFRA_TEXT.VALIDATE_REQUEST_LIMIT.REQUEST_DECIMAL_PLACES,
29584
- isValid: false,
29585
- };
29586
- return requestLimitValidationResponse;
29587
- }
29588
- if (limitDecimalPlaces > BUILD_INFRA_INPUT_CONSTRAINTS.DECIMAL_PLACES) {
29589
- requestLimitValidationResponse.limit = {
29590
- message: BUILD_INFRA_TEXT.VALIDATE_REQUEST_LIMIT.LIMIT_DECIMAL_PLACES,
29591
- isValid: false,
29592
- };
29593
- return requestLimitValidationResponse;
29594
- }
29595
- // Assuming requestUnit and requestNumber are not 0
29596
- // TODO: Communicate this assumption to the backend
29597
- var limitRequestUnitFactor = limitUnit / requestUnit;
29598
- var limitRequestFactor = limitNumber / requestNumber;
29599
- var isDifferenceBigNumber = limitRequestUnitFactor * limitRequestFactor <= Number.MAX_SAFE_INTEGER;
29600
- if (!isDifferenceBigNumber) {
29601
- requestLimitValidationResponse.request = {
29602
- message: BUILD_INFRA_TEXT.VALIDATE_REQUEST_LIMIT.CAN_NOT_COMPUTE,
29603
- isValid: false,
29604
- };
29605
- return requestLimitValidationResponse;
29606
- }
29607
- if (limitRequestUnitFactor * limitRequestFactor < 1) {
29608
- requestLimitValidationResponse.request = {
29609
- message: BUILD_INFRA_TEXT.VALIDATE_REQUEST_LIMIT.REQUEST_LESS_THAN_LIMIT,
29610
- isValid: false,
29611
- };
29612
- return requestLimitValidationResponse;
29613
- }
29614
- return requestLimitValidationResponse;
29615
- };
29616
- var getInitialProfileInputErrors = function (fromCreateView) {
29617
- if (fromCreateView) {
29618
- var initialProfileInputErrors_1 = __assign({}, PROFILE_INPUT_ERROR_FIELDS);
29619
- CREATE_MODE_REQUIRED_INPUT_FIELDS.forEach(function (field) {
29620
- initialProfileInputErrors_1[field] = '';
29621
- });
29622
- return initialProfileInputErrors_1;
29623
- }
29624
- return __assign({}, PROFILE_INPUT_ERROR_FIELDS);
29625
- };
29626
- var useBuildInfraForm = function (_a) {
29627
- var name = _a.name, editProfile = _a.editProfile, handleSuccessRedirection = _a.handleSuccessRedirection;
29628
- var fromCreateView = !name;
29629
- var _b = __read(useAsync(function () {
29630
- return getBuildInfraProfileByName({
29631
- name: name !== null && name !== void 0 ? name : DEFAULT_PROFILE_NAME,
29632
- fromCreateView: fromCreateView,
29633
- });
29634
- }, [name]), 4), isLoading = _b[0], profileResponse = _b[1], responseError = _b[2], reloadRequest = _b[3];
29635
- // If configuration is existing and is active then use it else use default from profileResponse
29636
- var _c = __read(React.useState(null), 2), profileInput = _c[0], setProfileInput = _c[1];
29637
- var _d = __read(React.useState(__assign({}, PROFILE_INPUT_ERROR_FIELDS)), 2), profileInputErrors = _d[0], setProfileInputErrors = _d[1];
29638
- var _e = __read(React.useState(false), 2), loadingActionRequest = _e[0], setLoadingActionRequest = _e[1];
29639
- React.useEffect(function () {
29640
- if (!isLoading && (profileResponse === null || profileResponse === void 0 ? void 0 : profileResponse.configurationUnits) && (profileResponse === null || profileResponse === void 0 ? void 0 : profileResponse.profile)) {
29641
- setProfileInput(__assign({}, profileResponse.profile));
29642
- setProfileInputErrors(getInitialProfileInputErrors(fromCreateView));
29643
- }
29644
- }, [profileResponse, isLoading]);
29645
- // NOTE: Currently sending and receiving values as string, but will parse it to number for payload
29646
- var handleProfileInputChange = function (_a) {
29647
- var action = _a.action, data = _a.data;
29648
- var currentInput = __assign({}, profileInput);
29649
- var currentInputErrors = __assign({}, profileInputErrors);
29650
- var lastSavedConfiguration = profileResponse.profile.configurations;
29651
- var currentConfiguration = currentInput.configurations;
29652
- var _b = data !== null && data !== void 0 ? data : { value: null, unit: null }, value = _b.value, unit = _b.unit;
29653
- switch (action) {
29654
- case exports.BuildInfraMetaConfigTypes.DESCRIPTION:
29655
- currentInput.description = value;
29656
- currentInputErrors.description = validateDescription(value).message;
29657
- break;
29658
- case exports.BuildInfraMetaConfigTypes.NAME:
29659
- currentInput.name = value;
29660
- currentInputErrors.name = validateName(value).message;
29661
- break;
29662
- case exports.BuildInfraConfigTypes.CPU_LIMIT: {
29663
- currentConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT]), { value: value, unit: unit });
29664
- var _c = validateRequestLimit({
29665
- request: {
29666
- value: currentConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST].value,
29667
- unit: currentConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST].unit,
29668
- },
29669
- limit: {
29670
- value: value,
29671
- unit: unit,
29672
- },
29673
- unitsMap: profileResponse.configurationUnits[exports.BuildInfraConfigTypes.CPU_LIMIT],
29674
- }), request = _c.request, limit = _c.limit;
29675
- currentInputErrors[exports.BuildInfraConfigTypes.CPU_LIMIT] = limit.message;
29676
- currentInputErrors[exports.BuildInfraConfigTypes.CPU_REQUEST] = request.message;
29677
- break;
29678
- }
29679
- case exports.BuildInfraConfigTypes.CPU_REQUEST: {
29680
- currentConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST]), { value: value, unit: unit });
29681
- var _d = validateRequestLimit({
29682
- request: {
29683
- value: value,
29684
- unit: unit,
29685
- },
29686
- limit: {
29687
- value: currentConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT].value,
29688
- unit: currentConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT].unit,
29689
- },
29690
- unitsMap: profileResponse.configurationUnits[exports.BuildInfraConfigTypes.CPU_LIMIT],
29691
- }), request = _d.request, limit = _d.limit;
29692
- currentInputErrors[exports.BuildInfraConfigTypes.CPU_LIMIT] = limit.message;
29693
- currentInputErrors[exports.BuildInfraConfigTypes.CPU_REQUEST] = request.message;
29694
- break;
29695
- }
29696
- case exports.BuildInfraConfigTypes.MEMORY_LIMIT: {
29697
- currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT]), { value: value, unit: unit });
29698
- var _e = validateRequestLimit({
29699
- request: {
29700
- value: currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST].value,
29701
- unit: currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST].unit,
29702
- },
29703
- limit: {
29704
- value: value,
29705
- unit: unit,
29706
- },
29707
- unitsMap: profileResponse.configurationUnits[exports.BuildInfraConfigTypes.MEMORY_LIMIT],
29708
- }), request = _e.request, limit = _e.limit;
29709
- currentInputErrors[exports.BuildInfraConfigTypes.MEMORY_LIMIT] = limit.message;
29710
- currentInputErrors[exports.BuildInfraConfigTypes.MEMORY_REQUEST] = request.message;
29711
- break;
29712
- }
29713
- case exports.BuildInfraConfigTypes.MEMORY_REQUEST: {
29714
- currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST]), { value: value, unit: unit });
29715
- var _f = validateRequestLimit({
29716
- request: {
29717
- value: value,
29718
- unit: unit,
29719
- },
29720
- limit: {
29721
- value: currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT].value,
29722
- unit: currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT].unit,
29723
- },
29724
- unitsMap: profileResponse.configurationUnits[exports.BuildInfraConfigTypes.MEMORY_LIMIT],
29725
- }), request = _f.request, limit = _f.limit;
29726
- currentInputErrors[exports.BuildInfraConfigTypes.MEMORY_LIMIT] = limit.message;
29727
- currentInputErrors[exports.BuildInfraConfigTypes.MEMORY_REQUEST] = request.message;
29728
- break;
29729
- }
29730
- case exports.BuildInfraConfigTypes.BUILD_TIMEOUT: {
29731
- currentConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT]), { value: value, unit: unit });
29732
- currentInputErrors[exports.BuildInfraConfigTypes.BUILD_TIMEOUT] = validatePositiveInteger(value).message;
29733
- break;
29734
- }
29735
- case exports.BuildInfraInheritActions.ACTIVATE_CPU:
29736
- currentConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT] = __assign(__assign({}, lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT].value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT].unit, active: true });
29737
- currentConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST] = __assign(__assign({}, lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST].value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST].unit, active: true });
29738
- currentInputErrors[exports.BuildInfraConfigTypes.CPU_LIMIT] = null;
29739
- currentInputErrors[exports.BuildInfraConfigTypes.CPU_REQUEST] = null;
29740
- break;
29741
- case exports.BuildInfraInheritActions.ACTIVATE_MEMORY:
29742
- currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT] = __assign(__assign({}, lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT].value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT].unit, active: true });
29743
- currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST] = __assign(__assign({}, lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST].value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST].unit, active: true });
29744
- currentInputErrors[exports.BuildInfraConfigTypes.MEMORY_LIMIT] = null;
29745
- currentInputErrors[exports.BuildInfraConfigTypes.MEMORY_REQUEST] = null;
29746
- break;
29747
- case exports.BuildInfraInheritActions.ACTIVATE_BUILD_TIMEOUT:
29748
- currentConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT] = __assign(__assign({}, lastSavedConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT].value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT].unit, active: true });
29749
- currentInputErrors[exports.BuildInfraConfigTypes.BUILD_TIMEOUT] = null;
29750
- break;
29751
- case exports.BuildInfraInheritActions.DE_ACTIVATE_BUILD_TIMEOUT:
29752
- // Reverting the value and unit to defaultValues
29753
- currentConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT].defaultValue.value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.BUILD_TIMEOUT].defaultValue.unit, active: false });
29754
- currentInputErrors[exports.BuildInfraConfigTypes.BUILD_TIMEOUT] = null;
29755
- break;
29756
- case exports.BuildInfraInheritActions.DE_ACTIVATE_CPU:
29757
- currentConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT].defaultValue.value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_LIMIT].defaultValue.unit, active: false });
29758
- currentConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST].defaultValue.value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.CPU_REQUEST].defaultValue.unit, active: false });
29759
- currentInputErrors[exports.BuildInfraConfigTypes.CPU_LIMIT] = null;
29760
- currentInputErrors[exports.BuildInfraConfigTypes.CPU_REQUEST] = null;
29761
- break;
29762
- case exports.BuildInfraInheritActions.DE_ACTIVATE_MEMORY:
29763
- currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT].defaultValue.value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_LIMIT].defaultValue.unit, active: false });
29764
- currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST] = __assign(__assign({}, currentConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST]), { value: lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST].defaultValue.value, unit: lastSavedConfiguration[exports.BuildInfraConfigTypes.MEMORY_REQUEST].defaultValue.unit, active: false });
29765
- currentInputErrors[exports.BuildInfraConfigTypes.MEMORY_LIMIT] = null;
29766
- currentInputErrors[exports.BuildInfraConfigTypes.MEMORY_REQUEST] = null;
29767
- break;
29768
- default:
29769
- throw new Error(BUILD_INFRA_TEXT.getInvalidActionMessage(action));
29770
- }
29771
- setProfileInput(currentInput);
29772
- setProfileInputErrors(currentInputErrors);
29773
- };
29774
- var handleSubmit = function (e) { return __awaiter(void 0, void 0, void 0, function () {
29775
- var hasErrors, err_1;
29776
- return __generator(this, function (_a) {
29777
- switch (_a.label) {
29778
- case 0:
29779
- e.preventDefault();
29780
- hasErrors = Object.keys(profileInputErrors).filter(function (item) { return profileInputErrors[item] !== null && profileInputErrors[item] !== undefined; }).length > 0;
29781
- if (hasErrors) {
29782
- toast.error(BUILD_INFRA_TEXT.INVALID_FORM_MESSAGE);
29783
- return [2 /*return*/];
29784
- }
29785
- setLoadingActionRequest(true);
29786
- _a.label = 1;
29787
- case 1:
29788
- _a.trys.push([1, 6, , 7]);
29789
- if (!editProfile) return [3 /*break*/, 3];
29790
- return [4 /*yield*/, updateBuildInfraProfile({ name: name, profileInput: profileInput })];
29791
- case 2:
29792
- _a.sent();
29793
- return [3 /*break*/, 5];
29794
- case 3: return [4 /*yield*/, createBuildInfraProfile({ profileInput: profileInput })];
29795
- case 4:
29796
- _a.sent();
29797
- _a.label = 5;
29798
- case 5:
29799
- setLoadingActionRequest(false);
29800
- toast.success(BUILD_INFRA_TEXT.getSubmitSuccessMessage(profileInput.name, editProfile));
29801
- if (handleSuccessRedirection) {
29802
- handleSuccessRedirection();
29803
- }
29804
- else {
29805
- reloadRequest();
29806
- }
29807
- return [3 /*break*/, 7];
29808
- case 6:
29809
- err_1 = _a.sent();
29810
- showError(err_1);
29811
- setLoadingActionRequest(false);
29812
- return [3 /*break*/, 7];
29813
- case 7: return [2 /*return*/];
29814
- }
29815
- });
29816
- }); };
29817
- return {
29818
- isLoading: isLoading,
29819
- profileResponse: profileResponse,
29820
- responseError: responseError,
29821
- reloadRequest: reloadRequest,
29822
- profileInput: profileInput,
29823
- profileInputErrors: profileInputErrors,
29824
- handleProfileInputChange: handleProfileInputChange,
29825
- loadingActionRequest: loadingActionRequest,
29826
- handleSubmit: handleSubmit,
29827
- };
29828
- };
29829
- var getOptionBackgroundColor = function (isFocused, isSelected) {
29830
- if (isSelected) {
29831
- return 'var(--B100)';
29832
- }
29833
- if (isFocused) {
29834
- return 'var(--N50)';
29835
- }
29836
- return 'var(--white)';
29837
- };
29838
- var unitSelectorStyles = function () {
29839
- return getCommonSelectStyle({
29840
- control: function (base, state) { return (__assign(__assign({}, base), { borderRadius: 0, backgroundColor: 'var(--N0)', border: state.isFocused ? '1px solid var(--B500) !important' : '1px solid var(--N200)', alignItems: 'center', cursor: 'pointer', borderTopRightRadius: '4px', borderBottomRightRadius: '4px', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', outline: 'none', boxShadow: 'none', '&:hover': {
29841
- border: '1px solid var(--N400)',
29842
- } })); },
29843
- indicatorContainer: function (base) { return (__assign(__assign({}, base), { padding: '0px' })); },
29844
- dropdownIndicator: function (base, state) { return (__assign(__assign({}, base), { color: 'var(--N600)', transition: 'all .2s ease', transform: state.selectProps.menuIsOpen ? 'rotate(180deg)' : 'rotate(0deg)' })); },
29845
- option: function (base, state) { return (__assign(__assign({}, base), { padding: '4px 12px', backgroundColor: getOptionBackgroundColor(state.isFocused, state.isSelected), color: 'var(--N900)', cursor: 'pointer', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', height: '36px' })); },
29846
- valueContainer: function (base) { return (__assign(__assign({}, base), { color: 'var(--N900)', fontSize: '13px', fontWeight: '400', lineHeight: '20px' })); },
29847
- menuList: function (base) { return (__assign(__assign({}, base), { maxHeight: '164px', height: '100%' })); },
29848
- });
29849
- };
29850
-
29851
- /**
29852
- * In case need arise for variants break this CustomInput and Select as a separate component
29853
- */
29854
- var BuildInfraFormAction = function (_a) {
29855
- var actionType = _a.actionType, label = _a.label, placeholder = _a.placeholder, error = _a.error, isRequired = _a.isRequired, profileUnitsMap = _a.profileUnitsMap, handleProfileInputChange = _a.handleProfileInputChange, currentUnitName = _a.currentUnitName, currentValue = _a.currentValue;
29856
- var handleUnitChange = function (selectedUnit) {
29857
- var data = {
29858
- unit: selectedUnit.label,
29859
- value: currentValue,
29860
- };
29861
- handleProfileInputChange({ action: actionType, data: data });
29862
- };
29863
- var handleInputChange = function (e) {
29864
- var data = {
29865
- unit: currentUnitName,
29866
- value: e.currentTarget.value,
29867
- };
29868
- handleProfileInputChange({ action: actionType, data: data });
29869
- };
29870
- var unitOptions = React.useMemo(function () {
29871
- var _a, _b;
29872
- var units = (_b = (_a = Object.values(profileUnitsMap)) === null || _a === void 0 ? void 0 : _a.map(function (unit) { return ({
29873
- label: unit.name,
29874
- value: String(unit.conversionFactor),
29875
- }); })) !== null && _b !== void 0 ? _b : [];
29876
- return units.sort(function (a, b) { return Number(a.value) - Number(b.value); });
29877
- }, [profileUnitsMap]);
29878
- var currentUnit = React.useMemo(function () { return unitOptions.find(function (unit) { return unit.label === currentUnitName; }); }, [unitOptions, currentUnitName]);
29879
- return (jsxRuntime.jsxs("div", __assign({ className: "flexbox-col dc__gap-4 dc__mxw-420 w-100 dc__align-start" }, { children: [jsxRuntime.jsx("label", __assign({ htmlFor: "".concat(actionType, "-input"), className: "fs-13 fw-4 lh-20 cn-7 ".concat(isRequired ? 'dc__required-field' : '') }, { children: label })), jsxRuntime.jsxs("div", __assign({ className: "w-100 flexbox dc__align-items-center" }, { children: [jsxRuntime.jsx("div", __assign({ className: "flex-grow-1" }, { children: jsxRuntime.jsx("input", { "data-testid": "".concat(actionType, "-input-field"), name: actionType, type: "number", step: BUILD_INFRA_INPUT_CONSTRAINTS.STEP, min: BUILD_INFRA_INPUT_CONSTRAINTS.MIN, className: "form__input dc__no-right-border dc__no-right-radius", placeholder: placeholder, value: currentValue, onChange: handleInputChange, required: isRequired, autoComplete: "off", id: "".concat(actionType, "-input") }) })), profileUnitsMap && (jsxRuntime.jsx(ReactSelect, { name: "".concat(actionType, "-unit"), className: "bcn-0 dc__mxw-120", options: unitOptions, value: currentUnit, onChange: handleUnitChange, isSearchable: false, components: {
29880
- IndicatorSeparator: null,
29881
- ClearIndicator: null,
29882
- }, styles: unitSelectorStyles() }))] })), error && (jsxRuntime.jsxs("div", __assign({ className: "form__error" }, { children: [jsxRuntime.jsx(SvgIcWarning, { className: "form__icon form__icon--error" }), error] })))] })));
29883
- };
29884
-
29885
- var BuildInfraFormItem = function (_a) {
29886
- var heading = _a.heading, Marker = _a.marker, children = _a.children, isInheriting = _a.isInheriting, showDivider = _a.showDivider, handleProfileInputChange = _a.handleProfileInputChange, locator = _a.locator, isDefaultProfile = _a.isDefaultProfile;
29887
- var handleActivationChange = function (e) {
29888
- var checked = e.currentTarget.checked;
29889
- var action = (checked ? "activate_".concat(locator) : "de_activate_".concat(locator));
29890
- handleProfileInputChange({ action: action });
29891
- };
29892
- var renderMarker = function () {
29893
- if (isDefaultProfile) {
29894
- return jsxRuntime.jsx(Marker, { className: "icon-dim-20 dc__no-shrink" });
29895
- }
29896
- return (jsxRuntime.jsx(Checkbox$1, { onChange: handleActivationChange, isChecked: !isInheriting, value: exports.CHECKBOX_VALUE.CHECKED, dataTestId: "".concat(locator, "_marker") }));
29897
- };
29898
- // If in configuration active is false, means it is inheriting values from other profile
29899
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("div", __assign({ className: "flexbox-col dc__gap-8 w-100" }, { children: jsxRuntime.jsxs("div", __assign({ className: "flexbox dc__gap-12 dc__align-start w-100" }, { children: [renderMarker(), jsxRuntime.jsxs("div", __assign({ className: "flexbox-col dc__gap-8 w-100" }, { children: [heading, !isInheriting && children] }))] })) })), showDivider && jsxRuntime.jsx("div", { className: "w-100 dc__border-bottom-n1" })] }));
29900
- };
29901
-
29902
- var BuildInfraProfileDescriptionField = function (_a) {
29903
- var handleProfileInputChange = _a.handleProfileInputChange, currentValue = _a.currentValue, error = _a.error;
29904
- var handleChange = function (e) {
29905
- handleProfileInputChange({
29906
- action: exports.BuildInfraMetaConfigTypes.DESCRIPTION,
29907
- data: { value: e.currentTarget.value },
29908
- });
29909
- };
29910
- return (jsxRuntime.jsxs("div", __assign({ className: "flexbox-col dc__gap-4 w-100 dc__align-start" }, { children: [jsxRuntime.jsx("label", __assign({ htmlFor: "build-infra-profile-description", className: "m-0 fs-13 fw-4 lh-20 cn-7" }, { children: BUILD_INFRA_TEXT.DESCRIPTION_LABEL })), jsxRuntime.jsx("textarea", { "data-testid": "build-infra-profile-description", name: "profile-description", className: "form__textarea mxh-140 dc__hover-border-n300", id: "build-infra-profile-description", placeholder: BUILD_INFRA_TEXT.DESCRIPTION_PLACEHOLDER, value: currentValue, onChange: handleChange }), error && (jsxRuntime.jsxs("div", __assign({ className: "form__error" }, { children: [jsxRuntime.jsx(SvgIcWarning, { className: "form__icon form__icon--error" }), error] })))] })));
29911
- };
29912
-
29913
- var BuildInfraProfileNameField = function (_a) {
29914
- var handleProfileInputChange = _a.handleProfileInputChange, currentValue = _a.currentValue, error = _a.error;
29915
- var handleChange = function (e) {
29916
- handleProfileInputChange({ action: exports.BuildInfraMetaConfigTypes.NAME, data: { value: e.currentTarget.value } });
29917
- };
29918
- return (jsxRuntime.jsx("div", __assign({ className: "flexbox-col dc__gap-4 w-100 dc__align-start" }, { children: jsxRuntime.jsx(CustomInput, { name: "profile-name", label: BUILD_INFRA_TEXT.PROFILE_LABEL, labelClassName: "m-0 dc__required-field fs-13 fw-4 lh-20 cn-7", placeholder: BUILD_INFRA_TEXT.PROFILE_PLACEHOLDER, value: currentValue, onChange: handleChange, error: error, required: true, inputWrapClassName: "w-100" }) })));
29919
- };
29920
-
29921
- var InheritingHeader = function (_a) {
29922
- var defaultHeading = _a.defaultHeading, inheritingData = _a.inheritingData, isInheriting = _a.isInheriting, isDefaultProfile = _a.isDefaultProfile;
29923
- var inheritingDataString = inheritingData.map(function (data) { var _a; return "".concat(data.value, " ").concat((_a = data.unit) !== null && _a !== void 0 ? _a : ''); }).join(' - ');
29924
- if (isDefaultProfile || !isInheriting) {
29925
- // For typing issues
29926
- // eslint-disable-next-line react/jsx-no-useless-fragment
29927
- return jsxRuntime.jsx(jsxRuntime.Fragment, { children: defaultHeading });
29928
- }
29929
- return (jsxRuntime.jsxs("div", __assign({ className: "flexbox dc__align-items-center dc__content-space w-100" }, { children: [defaultHeading, jsxRuntime.jsxs("div", __assign({ className: "flexbox dc__content-space w-100" }, { children: [jsxRuntime.jsx("span", __assign({ className: "m-0 pt-0 pb-0 pl-4 pr-4 fs-13 lh-20 fw-4 cn-9 dc__ellipsis-right dc__word-break-all flex-grow-1" }, { children: inheritingDataString })), jsxRuntime.jsx("p", __assign({ className: "m-0 cn-7 fs-13 fw-4 lh-20 dc__no-shrink" }, { children: BUILD_INFRA_TEXT.INHERITING_HEADING_DESCRIPTION }))] }))] })));
29930
- };
29931
- var BuildInfraConfigForm = function (_a) {
29932
- var profileInput = _a.profileInput, profileInputErrors = _a.profileInputErrors, handleProfileInputChange = _a.handleProfileInputChange, isDefaultProfile = _a.isDefaultProfile, unitsMap = _a.unitsMap, configurationContainerLabel = _a.configurationContainerLabel;
29933
- var currentConfigurations = profileInput === null || profileInput === void 0 ? void 0 : profileInput.configurations;
29934
- // will get the desired configuration from the currentConfigurations and then check if it is active or not
29935
- var isInheritingProfileValues = function (actions) {
29936
- return actions.some(function (action) { return !currentConfigurations[action.actionType].active; });
29937
- };
29938
- // Had to show loader for an instance due to batching of state updates not working as expected :/
29939
- if (!currentConfigurations) {
29940
- return jsxRuntime.jsx(Progressing, { pageLoader: true });
29941
- }
29942
- return (jsxRuntime.jsxs("div", __assign({ className: "flexbox-col dc__mxw-920 dc__gap-16" }, { children: [!isDefaultProfile && (jsxRuntime.jsxs("div", __assign({ className: "flexbox-col dc__gap-12" }, { children: [jsxRuntime.jsx(BuildInfraProfileNameField, { handleProfileInputChange: handleProfileInputChange, currentValue: profileInput.name, error: profileInputErrors.name }), jsxRuntime.jsx(BuildInfraProfileDescriptionField, { handleProfileInputChange: handleProfileInputChange, currentValue: profileInput.description, error: profileInputErrors.description })] }))), jsxRuntime.jsxs("div", __assign({ className: "flexbox-col dc__gap-12" }, { children: [configurationContainerLabel, jsxRuntime.jsx("div", __assign({ className: "w-100 flexbox-col dc__gap-16 br-4 dc__border-n1 p-16" }, { children: BUILD_INFRA_FORM_FIELDS.map(function (field, index) { return (jsxRuntime.jsx(BuildInfraFormItem, __assign({ marker: field.marker, heading: jsxRuntime.jsx(InheritingHeader, { defaultHeading: field.heading, inheritingData: field.actions.map(function (action) { return currentConfigurations[action.actionType]; }), isInheriting: isInheritingProfileValues(field.actions), isDefaultProfile: isDefaultProfile }), showDivider: index !== BUILD_INFRA_FORM_FIELDS.length - 1, isInheriting: isInheritingProfileValues(field.actions), handleProfileInputChange: handleProfileInputChange, locator: field.locator, isDefaultProfile: isDefaultProfile }, { children: jsxRuntime.jsx("div", __assign({ className: "w-50 flexbox dc__gap-12 w-100 dc__align-start" }, { children: field.actions.map(function (action) { return (jsxRuntime.jsx(BuildInfraFormAction, { actionType: action.actionType, label: action.label, placeholder: action.placeholder, error: profileInputErrors[action.actionType],
29943
- // Assumption is for default profiles all input fields are required
29944
- isRequired: true, profileUnitsMap: unitsMap[action.actionType], handleProfileInputChange: handleProfileInputChange, currentUnitName: currentConfigurations[action.actionType].unit, currentValue: currentConfigurations[action.actionType].value }, action.actionType)); }) })) }), field.locator)); }) }))] }))] })));
29945
- };
28972
+ exports.UserStatus = void 0;
28973
+ (function (UserStatus) {
28974
+ UserStatus["active"] = "active";
28975
+ UserStatus["inactive"] = "inactive";
28976
+ UserStatus["temporary"] = "temporary";
28977
+ })(exports.UserStatus || (exports.UserStatus = {}));
29946
28978
 
29947
- exports.APIResponseHandler = APIResponseHandler;
29948
28979
  exports.AddCDButton = AddCDButton;
29949
28980
  exports.AppStatus = AppStatus;
29950
- exports.BUILD_INFRA_BREADCRUMB = BUILD_INFRA_BREADCRUMB;
29951
- exports.BUILD_INFRA_FORM_FIELDS = BUILD_INFRA_FORM_FIELDS;
29952
- exports.BUILD_INFRA_INPUT_CONSTRAINTS = BUILD_INFRA_INPUT_CONSTRAINTS;
29953
- exports.BUILD_INFRA_TEST_IDS = BUILD_INFRA_TEST_IDS;
29954
- exports.BUILD_INFRA_TEXT = BUILD_INFRA_TEXT;
29955
- exports.BULK_DROPDOWN_TEST_ID = BULK_DROPDOWN_TEST_ID;
29956
28981
  exports.BreadCrumb = BreadCrumb;
29957
28982
  exports.BreadcrumbStore = Store;
29958
- exports.BuildInfraConfigActionMap = BuildInfraConfigActionMap;
29959
- exports.BuildInfraConfigForm = BuildInfraConfigForm;
29960
- exports.BuildInfraDescriptor = Descriptor;
29961
- exports.BuildInfraFooter = Footer;
29962
28983
  exports.BuildStageVariable = BuildStageVariable;
29963
- exports.BulkSelection = BulkSelection;
29964
- exports.BulkSelectionOptionsLabels = BulkSelectionOptionsLabels;
29965
28984
  exports.CDModalTab = CDModalTab;
29966
- exports.CREATE_MODE_REQUIRED_INPUT_FIELDS = CREATE_MODE_REQUIRED_INPUT_FIELDS;
29967
- exports.CREATE_PROFILE_BASE_VALUE = CREATE_PROFILE_BASE_VALUE;
29968
- exports.CREATE_VIEW_CHECKED_CONFIGS = CREATE_VIEW_CHECKED_CONFIGS;
29969
28985
  exports.ChartVersionAndTypeSelector = ChartVersionAndTypeSelector;
29970
28986
  exports.Checkbox = Checkbox$1;
29971
28987
  exports.ClearIndicator = ClearIndicator;
@@ -29974,7 +28990,7 @@ exports.ConditionalWrap = ConditionalWrap;
29974
28990
  exports.ConfirmationDialog = ConfirmationDialog;
29975
28991
  exports.CustomInput = CustomInput;
29976
28992
  exports.CustomSelect = CustomSelect;
29977
- exports.DEFAULT_PROFILE_NAME = DEFAULT_PROFILE_NAME;
28993
+ exports.DEFAULT_BASE_PAGE_SIZE = DEFAULT_BASE_PAGE_SIZE;
29978
28994
  exports.DEFAULT_TAG_DATA = DEFAULT_TAG_DATA;
29979
28995
  exports.DOCUMENTATION = DOCUMENTATION;
29980
28996
  exports.DOCUMENTATION_HOME_PAGE = DOCUMENTATION_HOME_PAGE;
@@ -30008,7 +29024,6 @@ exports.MultiValueRemove = MultiValueRemove;
30008
29024
  exports.OpaqueModal = OpaqueModal;
30009
29025
  exports.Option = Option;
30010
29026
  exports.PATTERNS = PATTERNS;
30011
- exports.PROFILE_INPUT_ERROR_FIELDS = PROFILE_INPUT_ERROR_FIELDS;
30012
29027
  exports.Pagination = Pagination;
30013
29028
  exports.PopupMenu = PopupMenu;
30014
29029
  exports.Progressing = Progressing;
@@ -30023,13 +29038,12 @@ exports.RepositoryAction = RepositoryAction;
30023
29038
  exports.ResizableTagTextArea = ResizableTagTextArea;
30024
29039
  exports.ResizableTextarea = ResizableTextarea;
30025
29040
  exports.SELECTED_APPROVAL_TAB_STATE = SELECTED_APPROVAL_TAB_STATE;
30026
- exports.SELECT_ALL_ACROSS_PAGES_LOCATOR = SELECT_ALL_ACROSS_PAGES_LOCATOR;
30027
29041
  exports.ScanVulnerabilitiesTable = ScanVulnerabilitiesTable;
30028
29042
  exports.SearchBar = SearchBar;
30029
- exports.SelectOption = SelectOption;
30030
29043
  exports.ServerError = ServerError;
30031
29044
  exports.ServerErrors = ServerErrors;
30032
29045
  exports.SingleSelectOption = SingleSelectOption;
29046
+ exports.SortableTableHeaderCell = SortableTableHeaderCell;
30033
29047
  exports.SourceTypeMap = SourceTypeMap;
30034
29048
  exports.StyledRadioGroup = RadioGroup;
30035
29049
  exports.TOAST_ACCESS_DENIED = TOAST_ACCESS_DENIED;
@@ -30049,7 +29063,6 @@ exports.VisibleModal2 = VisibleModal2;
30049
29063
  exports.abortPreviousRequests = abortPreviousRequests;
30050
29064
  exports.closeOnEscKeyPressed = closeOnEscKeyPressed;
30051
29065
  exports.copyToClipboard = copyToClipboard;
30052
- exports.createBuildInfraProfile = createBuildInfraProfile;
30053
29066
  exports.createGitCommitUrl = createGitCommitUrl;
30054
29067
  exports.customStyles = customStyles;
30055
29068
  exports.debounce = debounce$2;
@@ -30058,27 +29071,21 @@ exports.fetchChartTemplateVersions = fetchChartTemplateVersions;
30058
29071
  exports.genericCDMaterialsService = genericCDMaterialsService;
30059
29072
  exports.get = get;
30060
29073
  exports.getAlphabetIcon = getAlphabetIcon;
30061
- exports.getBuildInfraProfileByName = getBuildInfraProfileByName;
30062
- exports.getCommonSelectStyle = getCommonSelectStyle;
30063
29074
  exports.getCookie = getCookie;
30064
- exports.getCustomOptionSelectionStyle = getCustomOptionSelectionStyle;
30065
29075
  exports.getEmptyArrayOfLength = getEmptyArrayOfLength;
30066
29076
  exports.getFilteredChartVersions = getFilteredChartVersions;
30067
29077
  exports.getInferredTypeFromValueType = getInferredTypeFromValueType;
30068
- exports.getInvalidActionMessage = getInvalidActionMessage;
30069
29078
  exports.getIsRequestAborted = getIsRequestAborted;
30070
29079
  exports.getLockedJSON = getLockedJSON;
30071
29080
  exports.getLoginInfo = getLoginInfo;
30072
29081
  exports.getRandomColor = getRandomColor;
30073
29082
  exports.getRedirectionProps = getRedirectionProps;
30074
29083
  exports.getTeamListMin = getTeamListMin;
30075
- exports.getTransformedBuildInfraProfileResponse = getTransformedBuildInfraProfileResponse;
30076
29084
  exports.getUnlockedJSON = getUnlockedJSON;
30077
29085
  exports.getUrlWithSearchParams = getUrlWithSearchParams;
30078
29086
  exports.getUserRole = getUserRole;
30079
29087
  exports.handleAddCD = handleAddCD;
30080
29088
  exports.handleUTCTime = handleUTCTime;
30081
- exports.highlightSearchText = highlightSearchText;
30082
29089
  exports.logExceptionToSentry = logExceptionToSentry;
30083
29090
  exports.multiSelectStyles = multiSelectStyles;
30084
29091
  exports.noop = noop$1;
@@ -30092,21 +29099,13 @@ exports.sortCallback = sortCallback;
30092
29099
  exports.stopPropagation = stopPropagation;
30093
29100
  exports.toastAccessDenied = toastAccessDenied;
30094
29101
  exports.trash = trash;
30095
- exports.unitSelectorStyles = unitSelectorStyles;
30096
- exports.updateBuildInfraProfile = updateBuildInfraProfile;
30097
29102
  exports.useAsync = useAsync;
30098
29103
  exports.useBreadcrumb = useBreadcrumb;
30099
- exports.useBuildInfraForm = useBuildInfraForm;
30100
- exports.useBulkSelection = useBulkSelection;
30101
29104
  exports.useClickOutside = useClickOutside;
30102
29105
  exports.useEffectAfterMount = useEffectAfterMount;
30103
29106
  exports.useForm = useForm;
30104
29107
  exports.useSearchString = useSearchString;
30105
29108
  exports.useSuperAdmin = useSuperAdmin;
30106
29109
  exports.useThrottledEffect = useThrottledEffect;
29110
+ exports.useUrlFilters = useUrlFilters;
30107
29111
  exports.useWindowSize = useWindowSize;
30108
- exports.validateDescription = validateDescription;
30109
- exports.validateName = validateName;
30110
- exports.validatePositiveInteger = validatePositiveInteger;
30111
- exports.validateRequestLimit = validateRequestLimit;
30112
- exports.validateRequiredPositiveNumber = validateRequiredPositiveNumber;