@devtron-labs/devtron-fe-common-lib 0.0.39 → 0.0.40-beta-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/Common/Common.service.d.ts +2 -2
  2. package/dist/Common/Constants.d.ts +1 -0
  3. package/dist/Common/RJSF/Form.d.ts +4 -0
  4. package/dist/Common/RJSF/common/FieldRow.d.ts +3 -0
  5. package/dist/Common/RJSF/common/types.d.ts +8 -0
  6. package/dist/Common/RJSF/config.d.ts +4 -0
  7. package/dist/Common/RJSF/constants.d.ts +5 -0
  8. package/dist/Common/RJSF/index.d.ts +2 -0
  9. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +3 -0
  10. package/dist/Common/RJSF/templates/ArrayFieldTemplate.d.ts +3 -0
  11. package/dist/Common/RJSF/templates/BaseInput.d.ts +3 -0
  12. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +3 -0
  13. package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.d.ts +3 -0
  14. package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.d.ts +3 -0
  15. package/dist/Common/RJSF/templates/ButtonTemplates/index.d.ts +3 -0
  16. package/dist/Common/RJSF/templates/Description.d.ts +3 -0
  17. package/dist/Common/RJSF/templates/Field.d.ts +3 -0
  18. package/dist/Common/RJSF/templates/FieldErrorTemplate.d.ts +3 -0
  19. package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +3 -0
  20. package/dist/Common/RJSF/templates/TitleField.d.ts +3 -0
  21. package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.d.ts +3 -0
  22. package/dist/Common/RJSF/templates/index.d.ts +10 -0
  23. package/dist/Common/RJSF/types.d.ts +3 -0
  24. package/dist/Common/RJSF/utils.d.ts +14 -0
  25. package/dist/Common/RJSF/widgets/Checkbox.d.ts +3 -0
  26. package/dist/Common/RJSF/widgets/Select.d.ts +3 -0
  27. package/dist/Common/RJSF/widgets/index.d.ts +2 -0
  28. package/dist/Common/Types.d.ts +36 -2
  29. package/dist/Common/index.d.ts +1 -0
  30. package/dist/index.js +567 -222
  31. package/package.json +4 -1
  32. package/src/Assets/Icon/ic-chevron-down.svg +5 -0
  33. package/src/Common/Common.service.ts +223 -76
  34. package/src/Common/Constants.ts +1 -0
  35. package/src/Common/ImageTags.tsx +11 -2
  36. package/src/Common/RJSF/Form.tsx +29 -0
  37. package/src/Common/RJSF/common/FieldRow.tsx +31 -0
  38. package/src/Common/RJSF/common/types.ts +9 -0
  39. package/src/Common/RJSF/config.ts +37 -0
  40. package/src/Common/RJSF/constants.ts +5 -0
  41. package/src/Common/RJSF/index.ts +2 -0
  42. package/src/Common/RJSF/rjsfForm.scss +17 -0
  43. package/src/Common/RJSF/templates/ArrayFieldItemTemplate.tsx +33 -0
  44. package/src/Common/RJSF/templates/ArrayFieldTemplate.tsx +77 -0
  45. package/src/Common/RJSF/templates/BaseInput.tsx +16 -0
  46. package/src/Common/RJSF/templates/ButtonTemplates/AddButton.tsx +18 -0
  47. package/src/Common/RJSF/templates/ButtonTemplates/RemoveButton.tsx +10 -0
  48. package/src/Common/RJSF/templates/ButtonTemplates/SubmitButton.tsx +18 -0
  49. package/src/Common/RJSF/templates/ButtonTemplates/index.ts +3 -0
  50. package/src/Common/RJSF/templates/Description.tsx +12 -0
  51. package/src/Common/RJSF/templates/Field.tsx +30 -0
  52. package/src/Common/RJSF/templates/FieldErrorTemplate.tsx +25 -0
  53. package/src/Common/RJSF/templates/ObjectFieldTemplate.tsx +96 -0
  54. package/src/Common/RJSF/templates/TitleField.tsx +9 -0
  55. package/src/Common/RJSF/templates/WrapIfAdditionalTemplate.tsx +51 -0
  56. package/src/Common/RJSF/templates/index.ts +10 -0
  57. package/src/Common/RJSF/types.ts +4 -0
  58. package/src/Common/RJSF/utils.ts +59 -0
  59. package/src/Common/RJSF/widgets/Checkbox.tsx +44 -0
  60. package/src/Common/RJSF/widgets/Select.tsx +76 -0
  61. package/src/Common/RJSF/widgets/index.ts +2 -0
  62. package/src/Common/Types.ts +44 -2
  63. package/src/Common/index.ts +1 -0
package/dist/index.js CHANGED
@@ -4,6 +4,9 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var React = require('react');
5
5
  var ReactDOM = require('react-dom');
6
6
  var reactRouterDom = require('react-router-dom');
7
+ var RJSF = require('@rjsf/core');
8
+ var RJSFValidator = require('@rjsf/validator-ajv8');
9
+ var utils = require('@rjsf/utils');
7
10
 
8
11
  function _interopNamespaceDefault(e) {
9
12
  var n = Object.create(null);
@@ -44,6 +47,7 @@ var ROUTES = {
44
47
  PROJECT_LIST_MIN: 'team/autocomplete',
45
48
  USER_CHECK_ROLE: 'user/check/roles',
46
49
  IMAGE_TAGGING: 'app/image-tagging',
50
+ CD_MATERIAL_GET: 'app/cd-pipeline'
47
51
  };
48
52
  exports.KEY_VALUE = void 0;
49
53
  (function (KEY_VALUE) {
@@ -430,6 +434,24 @@ exports.FilterStates = void 0;
430
434
  FilterStates[FilterStates["BLOCKED"] = 1] = "BLOCKED";
431
435
  FilterStates[FilterStates["ERROR"] = 2] = "ERROR";
432
436
  })(exports.FilterStates || (exports.FilterStates = {}));
437
+ exports.MaterialDataSource = void 0;
438
+ (function (MaterialDataSource) {
439
+ MaterialDataSource["EXTERNAL"] = "ext";
440
+ })(exports.MaterialDataSource || (exports.MaterialDataSource = {}));
441
+ exports.CDMaterialServiceEnum = void 0;
442
+ (function (CDMaterialServiceEnum) {
443
+ CDMaterialServiceEnum["ROLLBACK"] = "rollback";
444
+ CDMaterialServiceEnum["CD_MATERIALS"] = "cd-materials";
445
+ })(exports.CDMaterialServiceEnum || (exports.CDMaterialServiceEnum = {}));
446
+ exports.CDMaterialResourceQuery = void 0;
447
+ (function (CDMaterialResourceQuery) {
448
+ CDMaterialResourceQuery["PENDING_APPROVAL"] = "PENDING_APPROVAL";
449
+ })(exports.CDMaterialResourceQuery || (exports.CDMaterialResourceQuery = {}));
450
+ exports.CDMaterialFilterQuery = void 0;
451
+ (function (CDMaterialFilterQuery) {
452
+ CDMaterialFilterQuery["RESOURCE"] = "ELIGIBLE_RESOURCES";
453
+ CDMaterialFilterQuery["ALL"] = "ALL_RESOURCES";
454
+ })(exports.CDMaterialFilterQuery || (exports.CDMaterialFilterQuery = {}));
433
455
  exports.DeploymentAppTypes = void 0;
434
456
  (function (DeploymentAppTypes) {
435
457
  DeploymentAppTypes["HELM"] = "helm";
@@ -693,13 +715,13 @@ function styleInject(css, ref) {
693
715
  }
694
716
  }
695
717
 
696
- var css_248z$6 = ".empty-state {\n height: 100%;\n}\n.empty-state img {\n height: 40%;\n max-height: 200px;\n width: auto;\n max-width: 250px;\n}\n.empty-state svg {\n height: 40%;\n max-height: 200px;\n width: auto;\n}\n.empty-state h1,\n.empty-state h2,\n.empty-state h3,\n.empty-state h4,\n.empty-state h5,\n.empty-state h6 {\n color: var(--N900);\n}\n.empty-state .subtitle {\n font-size: 13px;\n font-weight: 400;\n text-align: center;\n line-height: 1.5;\n margin-bottom: 6px;\n}\n.empty-state .subtitle--text-start {\n text-align: start;\n}\n.empty-state .cta {\n height: 36px;\n}\n.empty-state p {\n text-align: center;\n font-size: 13px;\n color: var(--N700);\n}\n.empty-state strong {\n font-size: 16px;\n margin-bottom: 4px;\n color: var(--N900);\n font-weight: normal;\n}\n.empty-state .select-popup {\n height: min-content;\n max-height: 250px;\n overflow: auto;\n padding: 8px 0;\n}\n.empty-state .empty-state__loader {\n width: 34px;\n height: 34px;\n margin-bottom: 16px;\n}\n.empty-state .empty-state__loading-text {\n font-size: 12px;\n width: 200px;\n font-weight: normal;\n font-stretch: normal;\n font-style: normal;\n line-height: 1.5;\n letter-spacing: normal;\n text-align: center;\n color: var(--N900);\n}\n.empty-state .button__icon {\n width: 16px;\n height: 16px;\n margin-left: 8px;\n}";
697
- styleInject(css_248z$6);
718
+ var css_248z$7 = ".empty-state {\n height: 100%;\n}\n.empty-state img {\n height: 40%;\n max-height: 200px;\n width: auto;\n max-width: 250px;\n}\n.empty-state svg {\n height: 40%;\n max-height: 200px;\n width: auto;\n}\n.empty-state h1,\n.empty-state h2,\n.empty-state h3,\n.empty-state h4,\n.empty-state h5,\n.empty-state h6 {\n color: var(--N900);\n}\n.empty-state .subtitle {\n font-size: 13px;\n font-weight: 400;\n text-align: center;\n line-height: 1.5;\n margin-bottom: 6px;\n}\n.empty-state .subtitle--text-start {\n text-align: start;\n}\n.empty-state .cta {\n height: 36px;\n}\n.empty-state p {\n text-align: center;\n font-size: 13px;\n color: var(--N700);\n}\n.empty-state strong {\n font-size: 16px;\n margin-bottom: 4px;\n color: var(--N900);\n font-weight: normal;\n}\n.empty-state .select-popup {\n height: min-content;\n max-height: 250px;\n overflow: auto;\n padding: 8px 0;\n}\n.empty-state .empty-state__loader {\n width: 34px;\n height: 34px;\n margin-bottom: 16px;\n}\n.empty-state .empty-state__loading-text {\n font-size: 12px;\n width: 200px;\n font-weight: normal;\n font-stretch: normal;\n font-style: normal;\n line-height: 1.5;\n letter-spacing: normal;\n text-align: center;\n color: var(--N900);\n}\n.empty-state .button__icon {\n width: 16px;\n height: 16px;\n margin-left: 8px;\n}";
719
+ styleInject(css_248z$7);
698
720
 
699
721
  var _g$6;
700
- 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); }
722
+ 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); }
701
723
  var SvgIcProgressing = function SvgIcProgressing(props) {
702
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
724
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
703
725
  xmlns: "http://www.w3.org/2000/svg",
704
726
  viewBox: "0 0 24 24",
705
727
  width: "1em",
@@ -751,8 +773,8 @@ EmptyState.Loading = Loading;
751
773
 
752
774
  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}
753
775
 
754
- function _extends$j() {
755
- _extends$j = Object.assign || function (target) {
776
+ function _extends$k() {
777
+ _extends$k = Object.assign || function (target) {
756
778
  for (var i = 1; i < arguments.length; i++) {
757
779
  var source = arguments[i];
758
780
 
@@ -766,7 +788,7 @@ function _extends$j() {
766
788
  return target;
767
789
  };
768
790
 
769
- return _extends$j.apply(this, arguments);
791
+ return _extends$k.apply(this, arguments);
770
792
  }
771
793
 
772
794
  function _objectWithoutPropertiesLoose$2(source, excluded) {
@@ -1492,7 +1514,7 @@ function ProgressBar(_ref) {
1492
1514
  isIn = _ref.isIn,
1493
1515
  theme = _ref.theme;
1494
1516
 
1495
- var style = _extends$j({}, userStyle, {
1517
+ var style = _extends$k({}, userStyle, {
1496
1518
  animationDuration: delay + "ms",
1497
1519
  animationPlayState: isRunning ? 'running' : 'paused',
1498
1520
  opacity: hide ? 0 : 1
@@ -1769,9 +1791,9 @@ var ToastContainer = function ToastContainer(props) {
1769
1791
  ,
1770
1792
  id: containerId
1771
1793
  }, getToastToRender(function (position, toastList) {
1772
- var containerStyle = !toastList.length ? _extends$j({}, style, {
1794
+ var containerStyle = !toastList.length ? _extends$k({}, style, {
1773
1795
  pointerEvents: 'none'
1774
- }) : _extends$j({}, style);
1796
+ }) : _extends$k({}, style);
1775
1797
  return React.createElement("div", {
1776
1798
  className: getClassName(position),
1777
1799
  style: containerStyle,
@@ -1878,7 +1900,7 @@ function dispatchToast(content, options) {
1878
1900
 
1879
1901
 
1880
1902
  function mergeOptions(type, options) {
1881
- return _extends$j({}, options, {
1903
+ return _extends$k({}, options, {
1882
1904
  type: options && options.type || type,
1883
1905
  toastId: getToastId(options)
1884
1906
  });
@@ -1895,7 +1917,7 @@ function toast(content, options) {
1895
1917
  }
1896
1918
 
1897
1919
  toast.loading = function (content, options) {
1898
- return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$j({
1920
+ return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$k({
1899
1921
  isLoading: true,
1900
1922
  autoClose: false,
1901
1923
  closeOnClick: false,
@@ -1911,7 +1933,7 @@ function handlePromise(promise, _ref2, options) {
1911
1933
  var id;
1912
1934
 
1913
1935
  if (pending) {
1914
- id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$j({}, options, pending));
1936
+ id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$k({}, options, pending));
1915
1937
  }
1916
1938
 
1917
1939
  var resetParams = {
@@ -1930,7 +1952,7 @@ function handlePromise(promise, _ref2, options) {
1930
1952
  return;
1931
1953
  }
1932
1954
 
1933
- var baseParams = _extends$j({
1955
+ var baseParams = _extends$k({
1934
1956
  type: type
1935
1957
  }, resetParams, options, {
1936
1958
  data: result
@@ -1941,10 +1963,10 @@ function handlePromise(promise, _ref2, options) {
1941
1963
  } : input; // if the id is set we know that it's an update
1942
1964
 
1943
1965
  if (id) {
1944
- toast.update(id, _extends$j({}, baseParams, params));
1966
+ toast.update(id, _extends$k({}, baseParams, params));
1945
1967
  } else {
1946
1968
  // using toast.promise without loading
1947
- toast(params.render, _extends$j({}, baseParams, params));
1969
+ toast(params.render, _extends$k({}, baseParams, params));
1948
1970
  }
1949
1971
 
1950
1972
  return result;
@@ -1968,7 +1990,7 @@ toast.warning = /*#__PURE__*/createToastByType(TYPE.WARNING);
1968
1990
  toast.warn = toast.warning;
1969
1991
 
1970
1992
  toast.dark = function (content, options) {
1971
- return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$j({
1993
+ return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$k({
1972
1994
  theme: 'dark'
1973
1995
  }, options)));
1974
1996
  };
@@ -2025,7 +2047,7 @@ toast.update = function (toastId, options) {
2025
2047
  var oldOptions = toast.props,
2026
2048
  oldContent = toast.content;
2027
2049
 
2028
- var nextOptions = _extends$j({}, oldOptions, options, {
2050
+ var nextOptions = _extends$k({}, oldOptions, options, {
2029
2051
  toastId: options.toastId || toastId,
2030
2052
  updateId: generateToastId()
2031
2053
  });
@@ -9815,9 +9837,9 @@ function captureException(exception, captureContext) {
9815
9837
  }
9816
9838
 
9817
9839
  var _g$5;
9818
- 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); }
9840
+ 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); }
9819
9841
  var SvgIcWarning = function SvgIcWarning(props) {
9820
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
9842
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
9821
9843
  xmlns: "http://www.w3.org/2000/svg",
9822
9844
  width: "1em",
9823
9845
  height: "1em",
@@ -10280,8 +10302,8 @@ var VisibleModal = /** @class */ (function (_super) {
10280
10302
  return VisibleModal;
10281
10303
  }(React.Component));
10282
10304
 
10283
- var css_248z$5 = ".drawer {\n position: absolute;\n overflow: hidden;\n}\n.drawer.left, .drawer.right {\n top: 0;\n bottom: 0;\n width: 0;\n transition: width 200ms;\n}\n.drawer.left.show, .drawer.right.show {\n min-width: var(--minWidth);\n width: var(--width);\n max-width: var(--maxWidth);\n}\n.drawer.top, .drawer.bottom {\n left: 0;\n right: 0;\n height: 0;\n transition: height 200ms;\n}\n.drawer.top.show, .drawer.bottom.show {\n height: var(--height);\n}\n.drawer.right {\n right: 0;\n}\n.drawer.left {\n left: 0;\n}\n.drawer.top {\n top: 0;\n}\n.drawer.bottom {\n bottom: 0;\n}";
10284
- styleInject(css_248z$5);
10305
+ var css_248z$6 = ".drawer {\n position: absolute;\n overflow: hidden;\n}\n.drawer.left, .drawer.right {\n top: 0;\n bottom: 0;\n width: 0;\n transition: width 200ms;\n}\n.drawer.left.show, .drawer.right.show {\n min-width: var(--minWidth);\n width: var(--width);\n max-width: var(--maxWidth);\n}\n.drawer.top, .drawer.bottom {\n left: 0;\n right: 0;\n height: 0;\n transition: height 200ms;\n}\n.drawer.top.show, .drawer.bottom.show {\n height: var(--height);\n}\n.drawer.right {\n right: 0;\n}\n.drawer.left {\n left: 0;\n}\n.drawer.top {\n top: 0;\n}\n.drawer.bottom {\n bottom: 0;\n}";
10306
+ styleInject(css_248z$6);
10285
10307
 
10286
10308
  var Drawer = function (_a) {
10287
10309
  var children = _a.children, position = _a.position, height = _a.height, width = _a.width, minWidth = _a.minWidth, maxWidth = _a.maxWidth, parentClassName = _a.parentClassName, onEscape = _a.onEscape;
@@ -10355,16 +10377,16 @@ var Modal = function (_a) {
10355
10377
  }, id: "popup", className: "".concat(rootClassName, " popup ").concat(modal ? 'modal' : ''), style: __assign({}, style) }, { children: children })), document.getElementById('visible-modal'));
10356
10378
  };
10357
10379
 
10358
- var _path$b;
10359
- 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); }
10380
+ var _path$c;
10381
+ 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); }
10360
10382
  var SvgIcCross = function SvgIcCross(props) {
10361
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
10383
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
10362
10384
  width: "1em",
10363
10385
  height: "1em",
10364
10386
  viewBox: "0 0 24 24",
10365
10387
  fill: "none",
10366
10388
  xmlns: "http://www.w3.org/2000/svg"
10367
- }, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
10389
+ }, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
10368
10390
  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",
10369
10391
  fill: "#596168"
10370
10392
  })));
@@ -14663,38 +14685,38 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
14663
14685
 
14664
14686
  var Tippy = index;
14665
14687
 
14666
- var _path$a;
14667
- 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); }
14688
+ var _path$b;
14689
+ 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); }
14668
14690
  var SvgIcHelp = function SvgIcHelp(props) {
14669
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
14691
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
14670
14692
  xmlns: "http://www.w3.org/2000/svg",
14671
14693
  width: "1em",
14672
14694
  height: "1em",
14673
14695
  viewBox: "0 0 24 24"
14674
- }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
14696
+ }, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
14675
14697
  fill: "#767D84",
14676
14698
  fillRule: "evenodd",
14677
14699
  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"
14678
14700
  })));
14679
14701
  };
14680
14702
 
14681
- var _path$9;
14682
- 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); }
14703
+ var _path$a;
14704
+ 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); }
14683
14705
  var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
14684
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
14706
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
14685
14707
  xmlns: "http://www.w3.org/2000/svg",
14686
14708
  viewBox: "0 0 17 16",
14687
14709
  width: "1em",
14688
14710
  height: "1em"
14689
- }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
14711
+ }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
14690
14712
  fill: "#767D84",
14691
14713
  fillRule: "evenodd",
14692
14714
  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"
14693
14715
  })));
14694
14716
  };
14695
14717
 
14696
- var css_248z$4 = ".tippy-box[data-animation=shift-toward-subtle][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=top][data-state=hidden]{transform:translateY(-5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=bottom][data-state=hidden]{transform:translateY(5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=left][data-state=hidden]{transform:translateX(-5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=right][data-state=hidden]{transform:translateX(5px)}";
14697
- styleInject(css_248z$4);
14718
+ var css_248z$5 = ".tippy-box[data-animation=shift-toward-subtle][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=top][data-state=hidden]{transform:translateY(-5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=bottom][data-state=hidden]{transform:translateY(5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=left][data-state=hidden]{transform:translateX(-5px)}.tippy-box[data-animation=shift-toward-subtle][data-state=hidden][data-placement^=right][data-state=hidden]{transform:translateX(5px)}";
14719
+ styleInject(css_248z$5);
14698
14720
 
14699
14721
  // This component will handle some of the new tippy designs and interactions
14700
14722
  // So this can be updated to support further for new features or interactions
@@ -14738,16 +14760,16 @@ function TippyCustomized(props) {
14738
14760
  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 })));
14739
14761
  }
14740
14762
 
14741
- var _path$8, _circle, _path2$1;
14742
- 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); }
14763
+ var _path$9, _circle, _path2$1;
14764
+ 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); }
14743
14765
  var SvgInjectTag = function SvgInjectTag(props) {
14744
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
14766
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
14745
14767
  width: "1em",
14746
14768
  height: "1em",
14747
14769
  viewBox: "0 0 20 20",
14748
14770
  fill: "none",
14749
14771
  xmlns: "http://www.w3.org/2000/svg"
14750
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
14772
+ }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
14751
14773
  d: "M10 10H3.333",
14752
14774
  stroke: "#596168",
14753
14775
  strokeWidth: 1.5,
@@ -14775,15 +14797,15 @@ function PropagateTagInfo(_a) {
14775
14797
  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" })] })) })));
14776
14798
  }
14777
14799
 
14778
- var _path$7;
14779
- 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); }
14800
+ var _path$8;
14801
+ 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); }
14780
14802
  var SvgIcInfoOutlined = function SvgIcInfoOutlined(props) {
14781
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
14803
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
14782
14804
  xmlns: "http://www.w3.org/2000/svg",
14783
14805
  width: "1em",
14784
14806
  height: "1em",
14785
14807
  viewBox: "0 0 20 20"
14786
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
14808
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
14787
14809
  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",
14788
14810
  fill: "#06C",
14789
14811
  fillRule: "evenodd"
@@ -15017,15 +15039,15 @@ var TagDetails = function (_a) {
15017
15039
  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" }) }))] })));
15018
15040
  };
15019
15041
 
15020
- var _path$6;
15021
- 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); }
15042
+ var _path$7;
15043
+ 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); }
15022
15044
  var SvgIcAdd = function SvgIcAdd(props) {
15023
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
15045
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
15024
15046
  xmlns: "http://www.w3.org/2000/svg",
15025
15047
  width: "1em",
15026
15048
  height: "1em",
15027
15049
  viewBox: "0 0 24 24"
15028
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
15050
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
15029
15051
  className: "ic-add_svg__fill-color",
15030
15052
  fill: "#999",
15031
15053
  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"
@@ -15143,8 +15165,8 @@ function ForceDeleteDialog(_a) {
15143
15165
  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?" })] }) })) }));
15144
15166
  }
15145
15167
 
15146
- function _extends$b() {
15147
- _extends$b = Object.assign ? Object.assign.bind() : function (target) {
15168
+ function _extends$c() {
15169
+ _extends$c = Object.assign ? Object.assign.bind() : function (target) {
15148
15170
  for (var i = 1; i < arguments.length; i++) {
15149
15171
  var source = arguments[i];
15150
15172
  for (var key in source) {
@@ -15155,7 +15177,7 @@ function _extends$b() {
15155
15177
  }
15156
15178
  return target;
15157
15179
  };
15158
- return _extends$b.apply(this, arguments);
15180
+ return _extends$c.apply(this, arguments);
15159
15181
  }
15160
15182
 
15161
15183
  /*
@@ -18696,7 +18718,7 @@ var Menu = function Menu(props) {
18696
18718
  getStyles = props.getStyles,
18697
18719
  innerRef = props.innerRef,
18698
18720
  innerProps = props.innerProps;
18699
- return jsx("div", _extends$b({
18721
+ return jsx("div", _extends$c({
18700
18722
  css: getStyles('menu', props),
18701
18723
  className: cx({
18702
18724
  menu: true
@@ -18720,7 +18742,7 @@ var menuListCSS = function menuListCSS(_ref4) {
18720
18742
  WebkitOverflowScrolling: 'touch'
18721
18743
  };
18722
18744
  };
18723
- var MenuList = function MenuList(props) {
18745
+ var MenuList$1 = function MenuList(props) {
18724
18746
  var children = props.children,
18725
18747
  className = props.className,
18726
18748
  cx = props.cx,
@@ -18728,7 +18750,7 @@ var MenuList = function MenuList(props) {
18728
18750
  innerProps = props.innerProps,
18729
18751
  innerRef = props.innerRef,
18730
18752
  isMulti = props.isMulti;
18731
- return jsx("div", _extends$b({
18753
+ return jsx("div", _extends$c({
18732
18754
  css: getStyles('menuList', props),
18733
18755
  className: cx({
18734
18756
  'menu-list': true,
@@ -18759,7 +18781,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
18759
18781
  cx = props.cx,
18760
18782
  getStyles = props.getStyles,
18761
18783
  innerProps = props.innerProps;
18762
- return jsx("div", _extends$b({
18784
+ return jsx("div", _extends$c({
18763
18785
  css: getStyles('noOptionsMessage', props),
18764
18786
  className: cx({
18765
18787
  'menu-notice': true,
@@ -18776,7 +18798,7 @@ var LoadingMessage = function LoadingMessage(props) {
18776
18798
  cx = props.cx,
18777
18799
  getStyles = props.getStyles,
18778
18800
  innerProps = props.innerProps;
18779
- return jsx("div", _extends$b({
18801
+ return jsx("div", _extends$c({
18780
18802
  css: getStyles('loadingMessage', props),
18781
18803
  className: cx({
18782
18804
  'menu-notice': true,
@@ -18864,7 +18886,7 @@ var MenuPortal = /*#__PURE__*/function (_Component2) {
18864
18886
  rect: rect
18865
18887
  }; // same wrapper element whether fixed or portalled
18866
18888
 
18867
- var menuWrapper = jsx("div", _extends$b({
18889
+ var menuWrapper = jsx("div", _extends$c({
18868
18890
  css: getStyles('menuPortal', state),
18869
18891
  className: cx({
18870
18892
  'menu-portal': true
@@ -18900,7 +18922,7 @@ var SelectContainer = function SelectContainer(props) {
18900
18922
  innerProps = props.innerProps,
18901
18923
  isDisabled = props.isDisabled,
18902
18924
  isRtl = props.isRtl;
18903
- return jsx("div", _extends$b({
18925
+ return jsx("div", _extends$c({
18904
18926
  css: getStyles('container', props),
18905
18927
  className: cx({
18906
18928
  '--is-disabled': isDisabled,
@@ -18935,7 +18957,7 @@ var ValueContainer = function ValueContainer(props) {
18935
18957
  isMulti = props.isMulti,
18936
18958
  getStyles = props.getStyles,
18937
18959
  hasValue = props.hasValue;
18938
- return jsx("div", _extends$b({
18960
+ return jsx("div", _extends$c({
18939
18961
  css: getStyles('valueContainer', props),
18940
18962
  className: cx({
18941
18963
  'value-container': true,
@@ -18961,7 +18983,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
18961
18983
  cx = props.cx,
18962
18984
  innerProps = props.innerProps,
18963
18985
  getStyles = props.getStyles;
18964
- return jsx("div", _extends$b({
18986
+ return jsx("div", _extends$c({
18965
18987
  css: getStyles('indicatorsContainer', props),
18966
18988
  className: cx({
18967
18989
  indicators: true
@@ -18992,7 +19014,7 @@ var Svg = function Svg(_ref) {
18992
19014
  var size = _ref.size,
18993
19015
  props = _objectWithoutProperties(_ref, _excluded$2);
18994
19016
 
18995
- return jsx("svg", _extends$b({
19017
+ return jsx("svg", _extends$c({
18996
19018
  height: size,
18997
19019
  width: size,
18998
19020
  viewBox: "0 0 20 20",
@@ -19003,14 +19025,14 @@ var Svg = function Svg(_ref) {
19003
19025
  };
19004
19026
 
19005
19027
  var CrossIcon = function CrossIcon(props) {
19006
- return jsx(Svg, _extends$b({
19028
+ return jsx(Svg, _extends$c({
19007
19029
  size: 20
19008
19030
  }, props), jsx("path", {
19009
19031
  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"
19010
19032
  }));
19011
19033
  };
19012
19034
  var DownChevron = function DownChevron(props) {
19013
- return jsx(Svg, _extends$b({
19035
+ return jsx(Svg, _extends$c({
19014
19036
  size: 20
19015
19037
  }, props), jsx("path", {
19016
19038
  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"
@@ -19037,13 +19059,13 @@ var baseCSS = function baseCSS(_ref3) {
19037
19059
  };
19038
19060
 
19039
19061
  var dropdownIndicatorCSS = baseCSS;
19040
- var DropdownIndicator = function DropdownIndicator(props) {
19062
+ var DropdownIndicator$1 = function DropdownIndicator(props) {
19041
19063
  var children = props.children,
19042
19064
  className = props.className,
19043
19065
  cx = props.cx,
19044
19066
  getStyles = props.getStyles,
19045
19067
  innerProps = props.innerProps;
19046
- return jsx("div", _extends$b({
19068
+ return jsx("div", _extends$c({
19047
19069
  css: getStyles('dropdownIndicator', props),
19048
19070
  className: cx({
19049
19071
  indicator: true,
@@ -19058,7 +19080,7 @@ var ClearIndicator$1 = function ClearIndicator(props) {
19058
19080
  cx = props.cx,
19059
19081
  getStyles = props.getStyles,
19060
19082
  innerProps = props.innerProps;
19061
- return jsx("div", _extends$b({
19083
+ return jsx("div", _extends$c({
19062
19084
  css: getStyles('clearIndicator', props),
19063
19085
  className: cx({
19064
19086
  indicator: true,
@@ -19088,7 +19110,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
19088
19110
  cx = props.cx,
19089
19111
  getStyles = props.getStyles,
19090
19112
  innerProps = props.innerProps;
19091
- return jsx("span", _extends$b({}, innerProps, {
19113
+ return jsx("span", _extends$c({}, innerProps, {
19092
19114
  css: getStyles('indicatorSeparator', props),
19093
19115
  className: cx({
19094
19116
  'indicator-separator': true
@@ -19143,7 +19165,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
19143
19165
  getStyles = props.getStyles,
19144
19166
  innerProps = props.innerProps,
19145
19167
  isRtl = props.isRtl;
19146
- return jsx("div", _extends$b({
19168
+ return jsx("div", _extends$c({
19147
19169
  css: getStyles('loadingIndicator', props),
19148
19170
  className: cx({
19149
19171
  indicator: true,
@@ -19204,7 +19226,7 @@ var Control = function Control(props) {
19204
19226
  innerRef = props.innerRef,
19205
19227
  innerProps = props.innerProps,
19206
19228
  menuIsOpen = props.menuIsOpen;
19207
- return jsx("div", _extends$b({
19229
+ return jsx("div", _extends$c({
19208
19230
  ref: innerRef,
19209
19231
  css: getStyles('control', props),
19210
19232
  className: cx({
@@ -19236,12 +19258,12 @@ var Group = function Group(props) {
19236
19258
  label = props.label,
19237
19259
  theme = props.theme,
19238
19260
  selectProps = props.selectProps;
19239
- return jsx("div", _extends$b({
19261
+ return jsx("div", _extends$c({
19240
19262
  css: getStyles('group', props),
19241
19263
  className: cx({
19242
19264
  group: true
19243
19265
  }, className)
19244
- }, innerProps), jsx(Heading, _extends$b({}, headingProps, {
19266
+ }, innerProps), jsx(Heading, _extends$c({}, headingProps, {
19245
19267
  selectProps: selectProps,
19246
19268
  theme: theme,
19247
19269
  getStyles: getStyles,
@@ -19273,7 +19295,7 @@ var GroupHeading = function GroupHeading(props) {
19273
19295
  _cleanCommonProps.data;
19274
19296
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
19275
19297
 
19276
- return jsx("div", _extends$b({
19298
+ return jsx("div", _extends$c({
19277
19299
  css: getStyles('groupHeading', props),
19278
19300
  className: cx({
19279
19301
  'group-heading': true
@@ -19349,7 +19371,7 @@ var Input = function Input(props) {
19349
19371
  }, className),
19350
19372
  css: getStyles('input', props),
19351
19373
  "data-value": value || ''
19352
- }, jsx("input", _extends$b({
19374
+ }, jsx("input", _extends$c({
19353
19375
  className: cx({
19354
19376
  input: true
19355
19377
  }, inputClassName),
@@ -19419,7 +19441,7 @@ var MultiValueLabel = MultiValueGeneric;
19419
19441
  function MultiValueRemove$1(_ref5) {
19420
19442
  var children = _ref5.children,
19421
19443
  innerProps = _ref5.innerProps;
19422
- return jsx("div", _extends$b({
19444
+ return jsx("div", _extends$c({
19423
19445
  role: "button"
19424
19446
  }, innerProps), children || jsx(CrossIcon, {
19425
19447
  size: 14
@@ -19508,7 +19530,7 @@ var Option$1 = function Option(props) {
19508
19530
  isSelected = props.isSelected,
19509
19531
  innerRef = props.innerRef,
19510
19532
  innerProps = props.innerProps;
19511
- return jsx("div", _extends$b({
19533
+ return jsx("div", _extends$c({
19512
19534
  css: getStyles('option', props),
19513
19535
  className: cx({
19514
19536
  option: true,
@@ -19540,7 +19562,7 @@ var Placeholder = function Placeholder(props) {
19540
19562
  cx = props.cx,
19541
19563
  getStyles = props.getStyles,
19542
19564
  innerProps = props.innerProps;
19543
- return jsx("div", _extends$b({
19565
+ return jsx("div", _extends$c({
19544
19566
  css: getStyles('placeholder', props),
19545
19567
  className: cx({
19546
19568
  placeholder: true
@@ -19573,7 +19595,7 @@ var SingleValue = function SingleValue(props) {
19573
19595
  getStyles = props.getStyles,
19574
19596
  isDisabled = props.isDisabled,
19575
19597
  innerProps = props.innerProps;
19576
- return jsx("div", _extends$b({
19598
+ return jsx("div", _extends$c({
19577
19599
  css: getStyles('singleValue', props),
19578
19600
  className: cx({
19579
19601
  'single-value': true,
@@ -19585,7 +19607,7 @@ var SingleValue = function SingleValue(props) {
19585
19607
  var components = {
19586
19608
  ClearIndicator: ClearIndicator$1,
19587
19609
  Control: Control,
19588
- DropdownIndicator: DropdownIndicator,
19610
+ DropdownIndicator: DropdownIndicator$1,
19589
19611
  DownChevron: DownChevron,
19590
19612
  CrossIcon: CrossIcon,
19591
19613
  Group: Group,
@@ -19595,7 +19617,7 @@ var components = {
19595
19617
  Input: Input,
19596
19618
  LoadingIndicator: LoadingIndicator,
19597
19619
  Menu: Menu,
19598
- MenuList: MenuList,
19620
+ MenuList: MenuList$1,
19599
19621
  MenuPortal: MenuPortal,
19600
19622
  LoadingMessage: LoadingMessage,
19601
19623
  NoOptionsMessage: NoOptionsMessage,
@@ -19821,7 +19843,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
19821
19843
  };
19822
19844
 
19823
19845
  var A11yText = function A11yText(props) {
19824
- return jsx("span", _extends$b({
19846
+ return jsx("span", _extends$c({
19825
19847
  css: _ref
19826
19848
  }, props));
19827
19849
  };
@@ -20357,7 +20379,7 @@ function DummyInput(_ref) {
20357
20379
  var innerRef = _ref.innerRef,
20358
20380
  props = _objectWithoutProperties(_ref, _excluded);
20359
20381
 
20360
- return jsx("input", _extends$b({
20382
+ return jsx("input", _extends$c({
20361
20383
  ref: innerRef
20362
20384
  }, props, {
20363
20385
  css: /*#__PURE__*/css$2({
@@ -21992,7 +22014,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21992
22014
 
21993
22015
  if (!isSearchable) {
21994
22016
  // use a dummy input to maintain focus/blur functionality
21995
- return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$b({
22017
+ return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$c({
21996
22018
  id: id,
21997
22019
  innerRef: this.getInputRef,
21998
22020
  onBlur: this.onInputBlur,
@@ -22006,7 +22028,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22006
22028
  }, ariaAttributes));
22007
22029
  }
22008
22030
 
22009
- return /*#__PURE__*/React__namespace.createElement(Input, _extends$b({}, commonProps, {
22031
+ return /*#__PURE__*/React__namespace.createElement(Input, _extends$c({}, commonProps, {
22010
22032
  autoCapitalize: "none",
22011
22033
  autoComplete: "off",
22012
22034
  autoCorrect: "off",
@@ -22050,7 +22072,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22050
22072
  isFocused = _this$state5.isFocused;
22051
22073
 
22052
22074
  if (!this.hasValue() || !controlShouldRenderValue) {
22053
- return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$b({}, commonProps, {
22075
+ return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$c({}, commonProps, {
22054
22076
  key: "placeholder",
22055
22077
  isDisabled: isDisabled,
22056
22078
  isFocused: isFocused,
@@ -22064,7 +22086,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22064
22086
  return selectValue.map(function (opt, index) {
22065
22087
  var isOptionFocused = opt === focusedValue;
22066
22088
  var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
22067
- return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$b({}, commonProps, {
22089
+ return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$c({}, commonProps, {
22068
22090
  components: {
22069
22091
  Container: MultiValueContainer,
22070
22092
  Label: MultiValueLabel,
@@ -22096,7 +22118,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22096
22118
  }
22097
22119
 
22098
22120
  var singleValue = selectValue[0];
22099
- return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$b({}, commonProps, {
22121
+ return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$c({}, commonProps, {
22100
22122
  data: singleValue,
22101
22123
  isDisabled: isDisabled
22102
22124
  }), this.formatOptionLabel(singleValue, 'value'));
@@ -22122,7 +22144,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22122
22144
  onTouchEnd: this.onClearIndicatorTouchEnd,
22123
22145
  'aria-hidden': 'true'
22124
22146
  };
22125
- return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$b({}, commonProps, {
22147
+ return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$c({}, commonProps, {
22126
22148
  innerProps: innerProps,
22127
22149
  isFocused: isFocused
22128
22150
  }));
@@ -22142,7 +22164,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22142
22164
  var innerProps = {
22143
22165
  'aria-hidden': 'true'
22144
22166
  };
22145
- return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$b({}, commonProps, {
22167
+ return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$c({}, commonProps, {
22146
22168
  innerProps: innerProps,
22147
22169
  isDisabled: isDisabled,
22148
22170
  isFocused: isFocused
@@ -22160,7 +22182,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22160
22182
  var commonProps = this.commonProps;
22161
22183
  var isDisabled = this.props.isDisabled;
22162
22184
  var isFocused = this.state.isFocused;
22163
- return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$b({}, commonProps, {
22185
+ return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$c({}, commonProps, {
22164
22186
  isDisabled: isDisabled,
22165
22187
  isFocused: isFocused
22166
22188
  }));
@@ -22180,7 +22202,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22180
22202
  onTouchEnd: this.onDropdownIndicatorTouchEnd,
22181
22203
  'aria-hidden': 'true'
22182
22204
  };
22183
- return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$b({}, commonProps, {
22205
+ return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$c({}, commonProps, {
22184
22206
  innerProps: innerProps,
22185
22207
  isDisabled: isDisabled,
22186
22208
  isFocused: isFocused
@@ -22243,7 +22265,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22243
22265
  onMouseOver: onHover,
22244
22266
  tabIndex: -1
22245
22267
  };
22246
- return /*#__PURE__*/React__namespace.createElement(Option, _extends$b({}, commonProps, {
22268
+ return /*#__PURE__*/React__namespace.createElement(Option, _extends$c({}, commonProps, {
22247
22269
  innerProps: innerProps,
22248
22270
  data: data,
22249
22271
  isDisabled: isDisabled,
@@ -22267,7 +22289,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22267
22289
  groupIndex = item.index;
22268
22290
  var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
22269
22291
  var headingId = "".concat(groupId, "-heading");
22270
- return /*#__PURE__*/React__namespace.createElement(Group, _extends$b({}, commonProps, {
22292
+ return /*#__PURE__*/React__namespace.createElement(Group, _extends$c({}, commonProps, {
22271
22293
  key: groupId,
22272
22294
  data: _data,
22273
22295
  options: options,
@@ -22306,12 +22328,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22306
22328
  menuPosition: menuPosition,
22307
22329
  menuShouldScrollIntoView: menuShouldScrollIntoView
22308
22330
  };
22309
- var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$b({}, commonProps, menuPlacementProps), function (_ref4) {
22331
+ var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$c({}, commonProps, menuPlacementProps), function (_ref4) {
22310
22332
  var ref = _ref4.ref,
22311
22333
  _ref4$placerProps = _ref4.placerProps,
22312
22334
  placement = _ref4$placerProps.placement,
22313
22335
  maxHeight = _ref4$placerProps.maxHeight;
22314
- return /*#__PURE__*/React__namespace.createElement(Menu, _extends$b({}, commonProps, menuPlacementProps, {
22336
+ return /*#__PURE__*/React__namespace.createElement(Menu, _extends$c({}, commonProps, menuPlacementProps, {
22315
22337
  innerRef: ref,
22316
22338
  innerProps: {
22317
22339
  onMouseDown: _this4.onMenuMouseDown,
@@ -22326,7 +22348,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22326
22348
  onBottomArrive: onMenuScrollToBottom,
22327
22349
  lockEnabled: menuShouldBlockScroll
22328
22350
  }, function (scrollTargetRef) {
22329
- return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$b({}, commonProps, {
22351
+ return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$c({}, commonProps, {
22330
22352
  innerRef: function innerRef(instance) {
22331
22353
  _this4.getMenuListRef(instance);
22332
22354
 
@@ -22341,7 +22363,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22341
22363
  // so we use the same component. the actual portalling logic is forked
22342
22364
  // within the component based on `menuPosition`
22343
22365
 
22344
- return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$b({}, commonProps, {
22366
+ return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$c({}, commonProps, {
22345
22367
  appendTo: menuPortalTarget,
22346
22368
  controlElement: this.controlRef,
22347
22369
  menuPlacement: menuPlacement,
@@ -22406,7 +22428,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22406
22428
  isFocused = _this$state6.isFocused,
22407
22429
  selectValue = _this$state6.selectValue;
22408
22430
  var focusableOptions = this.getFocusableOptions();
22409
- return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$b({}, commonProps, {
22431
+ return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$c({}, commonProps, {
22410
22432
  id: this.getElementId('live-region'),
22411
22433
  ariaSelection: ariaSelection,
22412
22434
  focusedOption: focusedOption,
@@ -22432,7 +22454,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22432
22454
  menuIsOpen = _this$props14.menuIsOpen;
22433
22455
  var isFocused = this.state.isFocused;
22434
22456
  var commonProps = this.commonProps = this.getCommonProps();
22435
- return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$b({}, commonProps, {
22457
+ return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$c({}, commonProps, {
22436
22458
  className: className,
22437
22459
  innerProps: {
22438
22460
  id: id,
@@ -22440,7 +22462,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22440
22462
  },
22441
22463
  isDisabled: isDisabled,
22442
22464
  isFocused: isFocused
22443
- }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$b({}, commonProps, {
22465
+ }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$c({}, commonProps, {
22444
22466
  innerRef: this.getControlRef,
22445
22467
  innerProps: {
22446
22468
  onMouseDown: this.onControlMouseDown,
@@ -22449,9 +22471,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22449
22471
  isDisabled: isDisabled,
22450
22472
  isFocused: isFocused,
22451
22473
  menuIsOpen: menuIsOpen
22452
- }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$b({}, commonProps, {
22474
+ }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$c({}, commonProps, {
22453
22475
  isDisabled: isDisabled
22454
- }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$b({}, commonProps, {
22476
+ }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$c({}, commonProps, {
22455
22477
  isDisabled: isDisabled
22456
22478
  }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
22457
22479
  }
@@ -22524,17 +22546,17 @@ Select$1.defaultProps = defaultProps;
22524
22546
 
22525
22547
  var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
22526
22548
  var baseSelectProps = useStateManager(props);
22527
- return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$b({
22549
+ return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$c({
22528
22550
  ref: ref
22529
22551
  }, baseSelectProps));
22530
22552
  });
22531
22553
 
22532
- var Select = StateManagedSelect;
22554
+ var ReactSelect = StateManagedSelect;
22533
22555
 
22534
22556
  var _g$4;
22535
- 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); }
22557
+ 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); }
22536
22558
  var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
22537
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
22559
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
22538
22560
  xmlns: "http://www.w3.org/2000/svg",
22539
22561
  viewBox: "0 0 28 28",
22540
22562
  width: "1em",
@@ -22555,15 +22577,15 @@ var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
22555
22577
  }))));
22556
22578
  };
22557
22579
 
22558
- var _path$5;
22559
- 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); }
22580
+ var _path$6;
22581
+ 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); }
22560
22582
  var SvgIcCheck = function SvgIcCheck(props) {
22561
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
22583
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
22562
22584
  xmlns: "http://www.w3.org/2000/svg",
22563
22585
  width: "1em",
22564
22586
  height: "1em",
22565
22587
  viewBox: "0 0 24 24"
22566
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
22588
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
22567
22589
  stroke: "#06C",
22568
22590
  strokeLinecap: "round",
22569
22591
  strokeLinejoin: "round",
@@ -22575,9 +22597,9 @@ var SvgIcCheck = function SvgIcCheck(props) {
22575
22597
  };
22576
22598
 
22577
22599
  var _g$3;
22578
- 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); }
22600
+ 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); }
22579
22601
  var SvgIcErrorMedium = function SvgIcErrorMedium(props) {
22580
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
22602
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
22581
22603
  xmlns: "http://www.w3.org/2000/svg",
22582
22604
  width: "1em",
22583
22605
  height: "1em",
@@ -22639,11 +22661,11 @@ var multiSelectStyles = {
22639
22661
  valueContainer: function (base, state) { return (__assign(__assign({}, base), { color: state.selectProps.menuIsOpen ? 'var(--N500)' : base.color })); },
22640
22662
  };
22641
22663
  var CustomSelect = function (props) {
22642
- return jsxRuntime.jsx(Select, __assign({}, props));
22664
+ return jsxRuntime.jsx(ReactSelect, __assign({}, props));
22643
22665
  };
22644
22666
 
22645
- var css_248z$3 = ".info-bar-container .info_text .success {\n background-color: var(--G100);\n}\n.info-bar-container .warn {\n background: var(--Y100);\n border: solid var(--Y200);\n}\n.info-bar-container .warn .warning-icon path:nth-child(2) {\n fill: var(--Y700);\n}\n.info-bar-container .info_bar {\n background-color: var(--B100);\n border: 1px solid var(--B200);\n}\n.info-bar-container .error_bar {\n background-color: var(--R100);\n border: 1px solid var(--R200);\n}\n.info-bar-container .question-bar {\n background-color: var(--V100);\n border: 1px solid var(--V200);\n}";
22646
- styleInject(css_248z$3);
22667
+ var css_248z$4 = ".info-bar-container .info_text .success {\n background-color: var(--G100);\n}\n.info-bar-container .warn {\n background: var(--Y100);\n border: solid var(--Y200);\n}\n.info-bar-container .warn .warning-icon path:nth-child(2) {\n fill: var(--Y700);\n}\n.info-bar-container .info_bar {\n background-color: var(--B100);\n border: 1px solid var(--B200);\n}\n.info-bar-container .error_bar {\n background-color: var(--R100);\n border: 1px solid var(--R200);\n}\n.info-bar-container .question-bar {\n background-color: var(--V100);\n border: 1px solid var(--V200);\n}";
22668
+ styleInject(css_248z$4);
22647
22669
 
22648
22670
  function InfoColourBar(_a) {
22649
22671
  var message = _a.message, classname = _a.classname, Icon = _a.Icon, iconClass = _a.iconClass, iconSize = _a.iconSize, renderActionButton = _a.renderActionButton, linkText = _a.linkText, redirectLink = _a.redirectLink, linkOnClick = _a.linkOnClick, linkClass = _a.linkClass, internalLink = _a.internalLink, styles = _a.styles;
@@ -22697,77 +22719,170 @@ function getUserRole(appName) {
22697
22719
  function setImageTags(request, pipelineId, artifactId) {
22698
22720
  return post("".concat(ROUTES.IMAGE_TAGGING, "/").concat(pipelineId, "/").concat(artifactId), request);
22699
22721
  }
22700
- // FIXME: This is only returning materials to cater the case of search in approval but it should be a common function service coming from dashboard.
22701
- var getCDMaterials = function (cdMaterialId, stageType, abortSignal, isApprovalNode, imageTag) {
22702
- var URL = (!imageTag) ? "app/cd-pipeline/".concat(cdMaterialId, "/material?stage=").concat(stageMap[stageType]) : "app/cd-pipeline/".concat(cdMaterialId, "/material?stage=").concat(stageMap[stageType], "&search=").concat(imageTag);
22703
- return get(URL, {
22704
- signal: abortSignal,
22705
- }).then(function (response) {
22706
- var _a;
22707
- var artifacts = (_a = response.result.ci_artifacts) !== null && _a !== void 0 ? _a : [];
22708
- if (!response.result) {
22709
- return {
22710
- materials: [],
22711
- };
22722
+ var processURL = function (url, params) {
22723
+ var validParams = Object.keys(params).filter(function (key) {
22724
+ return params[key] != null;
22725
+ });
22726
+ if (!validParams.length) {
22727
+ return url;
22728
+ }
22729
+ var queryString = validParams
22730
+ .map(function (key) {
22731
+ if (Array.isArray(params[key])) {
22732
+ return "".concat(key, "=").concat(params[key].join(','));
22712
22733
  }
22713
- else {
22714
- var materials = artifacts.map(function (material, index) {
22715
- var _a;
22716
- var artifactStatusValue = '';
22717
- var filterState = (_a = material.filterState) !== null && _a !== void 0 ? _a : exports.FilterStates.ALLOWED;
22718
- return {
22719
- index: index,
22720
- id: material.id,
22721
- deployedTime: material.deployed_time
22722
- ? moment(material.deployed_time).format('ddd, DD MMM YYYY, hh:mm A')
22723
- : 'Not Deployed',
22724
- deployedBy: material.deployedBy,
22725
- wfrId: material.wfrId,
22726
- image: extractImage(material.image),
22727
- showChanges: false,
22728
- vulnerabilities: [],
22729
- buildTime: material.build_time || '',
22730
- tab: CDModalTab.Changes,
22731
- showSourceInfo: false,
22732
- deployed: material.deployed || false,
22733
- latest: material.latest || false,
22734
- vulnerabilitiesLoading: true,
22735
- scanned: material.scanned,
22736
- scanEnabled: material.scanEnabled,
22737
- isSelected: !material.vulnerable && filterState === exports.FilterStates.ALLOWED && index === 0,
22738
- vulnerable: material.vulnerable,
22739
- runningOnParentCd: material.runningOnParentCd,
22740
- artifactStatus: artifactStatusValue,
22741
- userApprovalMetadata: material.userApprovalMetadata,
22742
- triggeredBy: material.triggeredBy,
22743
- isVirtualEnvironment: material.isVirtualEnvironment,
22744
- imageComment: material.imageComment,
22745
- imageReleaseTags: material.imageReleaseTags,
22746
- materialInfo: material.material_info
22747
- ? material.material_info.map(function (mat) {
22748
- return {
22749
- modifiedTime: mat.modifiedTime ? moment(mat.modifiedTime).format("ddd, DD MMM YYYY, hh:mm A") : '',
22750
- commitLink: createGitCommitUrl(mat.url, mat.revision),
22751
- author: mat.author || '',
22752
- message: mat.message || '',
22753
- revision: mat.revision || '',
22754
- tag: mat.tag || '',
22755
- webhookData: mat.webhookData || '',
22756
- url: mat.url || '',
22757
- branch: (material.ciConfigureSourceType === SourceTypeMap.WEBHOOK
22758
- ? material.ciConfigureSourceValue
22759
- : mat.branch) || '',
22760
- type: material.ciConfigureSourceType || '',
22761
- };
22762
- })
22763
- : [],
22764
- filterState: filterState,
22765
- };
22766
- });
22767
- return {
22768
- materials: materials
22769
- };
22734
+ return "".concat(key, "=").concat(params[key]);
22735
+ })
22736
+ .join('&');
22737
+ return "".concat(url, "?").concat(queryString);
22738
+ };
22739
+ var cdMaterialListModal = function (artifacts, offset, artifactId, artifactStatus) {
22740
+ if (!artifacts || !artifacts.length)
22741
+ return [];
22742
+ var markFirstSelected = offset === 0;
22743
+ var startIndex = offset;
22744
+ var isImageMarked = false;
22745
+ var materials = artifacts.map(function (material, index) {
22746
+ var _a, _b, _c, _d, _e, _f;
22747
+ var artifactStatusValue = '';
22748
+ var filterState = (_a = material.filterState) !== null && _a !== void 0 ? _a : exports.FilterStates.ALLOWED;
22749
+ if (artifactId && artifactStatus && material.id === artifactId) {
22750
+ artifactStatusValue = artifactStatus;
22770
22751
  }
22752
+ var selectImage = !isImageMarked && markFirstSelected && filterState === exports.FilterStates.ALLOWED ? !material.vulnerable : false;
22753
+ if (selectImage) {
22754
+ isImageMarked = true;
22755
+ }
22756
+ return {
22757
+ index: startIndex + index,
22758
+ id: material.id,
22759
+ deployedTime: material.deployed_time
22760
+ ? moment(material.deployed_time).format('ddd, DD MMM YYYY, hh:mm A')
22761
+ : 'Not Deployed',
22762
+ deployedBy: material.deployedBy,
22763
+ wfrId: material.wfrId,
22764
+ tab: CDModalTab.Changes,
22765
+ image: extractImage(material.image),
22766
+ showChanges: false,
22767
+ vulnerabilities: [],
22768
+ buildTime: material.build_time || '',
22769
+ isSelected: selectImage,
22770
+ showSourceInfo: false,
22771
+ deployed: material.deployed || false,
22772
+ latest: material.latest || false,
22773
+ vulnerabilitiesLoading: true,
22774
+ scanned: material.scanned,
22775
+ scanEnabled: material.scanEnabled,
22776
+ vulnerable: material.vulnerable,
22777
+ runningOnParentCd: material.runningOnParentCd,
22778
+ artifactStatus: artifactStatusValue,
22779
+ userApprovalMetadata: material.userApprovalMetadata,
22780
+ triggeredBy: material.triggeredBy,
22781
+ isVirtualEnvironment: material.isVirtualEnvironment,
22782
+ imageComment: material.imageComment,
22783
+ imageReleaseTags: material.imageReleaseTags,
22784
+ // It is going to be null but required in type so can't remove
22785
+ lastExecution: material.lastExecution,
22786
+ materialInfo: material.material_info
22787
+ ? material.material_info.map(function (mat) {
22788
+ return {
22789
+ modifiedTime: mat.modifiedTime
22790
+ ? moment(mat.modifiedTime).format('ddd, DD MMM YYYY, hh:mm A')
22791
+ : '',
22792
+ commitLink: createGitCommitUrl(mat.url, mat.revision),
22793
+ author: mat.author || '',
22794
+ message: mat.message || '',
22795
+ revision: mat.revision || '',
22796
+ tag: mat.tag || '',
22797
+ webhookData: mat.webhookData || '',
22798
+ url: mat.url || '',
22799
+ branch: (material.ciConfigureSourceType === SourceTypeMap.WEBHOOK
22800
+ ? material.ciConfigureSourceValue
22801
+ : mat.branch) || '',
22802
+ type: material.ciConfigureSourceType || '',
22803
+ };
22804
+ })
22805
+ : [],
22806
+ filterState: filterState,
22807
+ appliedFiltersTimestamp: (_b = material.appliedFiltersTimestamp) !== null && _b !== void 0 ? _b : '',
22808
+ appliedFilters: (_c = material.appliedFilters) !== null && _c !== void 0 ? _c : [],
22809
+ appliedFiltersState: (_d = material.appliedFiltersState) !== null && _d !== void 0 ? _d : exports.FilterStates.ALLOWED,
22810
+ createdTime: (_e = material.createdTime) !== null && _e !== void 0 ? _e : '',
22811
+ dataSource: (_f = material.data_source) !== null && _f !== void 0 ? _f : '',
22812
+ };
22813
+ });
22814
+ return materials;
22815
+ };
22816
+ var processCDMaterialsApprovalInfo = function (enableApproval, cdMaterialsResult) {
22817
+ if (!enableApproval) {
22818
+ return {
22819
+ approvalUsers: [],
22820
+ userApprovalConfig: null,
22821
+ requestedUserId: 0,
22822
+ };
22823
+ }
22824
+ return {
22825
+ approvalUsers: cdMaterialsResult.approvalUsers,
22826
+ userApprovalConfig: cdMaterialsResult.userApprovalConfig,
22827
+ requestedUserId: cdMaterialsResult.requestedUserId,
22828
+ };
22829
+ };
22830
+ var processCDMaterialsMetaInfo = function (cdMaterialsResult) {
22831
+ var _a, _b, _c, _d;
22832
+ if (!cdMaterialsResult) {
22833
+ return {
22834
+ tagsEditable: false,
22835
+ appReleaseTagNames: [],
22836
+ hideImageTaggingHardDelete: false,
22837
+ resourceFilters: [],
22838
+ totalCount: 0,
22839
+ canApproverDeploy: (_a = cdMaterialsResult.canApproverDeploy) !== null && _a !== void 0 ? _a : false,
22840
+ };
22841
+ }
22842
+ return {
22843
+ appReleaseTagNames: cdMaterialsResult.appReleaseTagNames,
22844
+ tagsEditable: cdMaterialsResult.tagsEditable,
22845
+ hideImageTaggingHardDelete: cdMaterialsResult.hideImageTaggingHardDelete,
22846
+ resourceFilters: (_b = cdMaterialsResult.resourceFilters) !== null && _b !== void 0 ? _b : [],
22847
+ totalCount: (_c = cdMaterialsResult.totalCount) !== null && _c !== void 0 ? _c : 0,
22848
+ canApproverDeploy: (_d = cdMaterialsResult.canApproverDeploy) !== null && _d !== void 0 ? _d : false,
22849
+ };
22850
+ };
22851
+ var processCDMaterialServiceResponse = function (cdMaterialsResult, stage, offset, filter) {
22852
+ if (!cdMaterialsResult) {
22853
+ return __assign(__assign({ materials: [] }, processCDMaterialsMetaInfo(cdMaterialsResult)), processCDMaterialsApprovalInfo(false, cdMaterialsResult));
22854
+ }
22855
+ var materials = cdMaterialListModal(cdMaterialsResult.ci_artifacts, offset !== null && offset !== void 0 ? offset : 0, cdMaterialsResult.latest_wf_artifact_id, cdMaterialsResult.latest_wf_artifact_status);
22856
+ var approvalInfo = processCDMaterialsApprovalInfo(stage === exports.DeploymentNodeType.CD || stage === exports.DeploymentNodeType.APPROVAL, cdMaterialsResult);
22857
+ var metaInfo = processCDMaterialsMetaInfo(cdMaterialsResult);
22858
+ // TODO: On update of service would remove from here
22859
+ var filteredMaterials = filter && filter === exports.CDMaterialFilterQuery.RESOURCE
22860
+ ? materials.filter(function (material) {
22861
+ return material.filterState === exports.FilterStates.ALLOWED;
22862
+ })
22863
+ : materials;
22864
+ return __assign(__assign({ materials: filteredMaterials }, approvalInfo), metaInfo);
22865
+ };
22866
+ var getSanitizedQueryParams = function (queryParams) {
22867
+ queryParams.filter; var rest = __rest(queryParams, ["filter"]);
22868
+ return rest;
22869
+ };
22870
+ var genericCDMaterialsService = function (serviceType, cdMaterialID, stage, signal, queryParams) {
22871
+ if (queryParams === void 0) { queryParams = {}; }
22872
+ // TODO: On update of service would remove from here
22873
+ var manipulatedParams = getSanitizedQueryParams(queryParams);
22874
+ var URL;
22875
+ switch (serviceType) {
22876
+ case exports.CDMaterialServiceEnum.ROLLBACK:
22877
+ URL = processURL("".concat(ROUTES.CD_MATERIAL_GET, "/").concat(cdMaterialID, "/material/rollback"), manipulatedParams);
22878
+ break;
22879
+ // Meant for handling getCDMaterialList
22880
+ default:
22881
+ URL = processURL("".concat(ROUTES.CD_MATERIAL_GET, "/").concat(cdMaterialID, "/material"), __assign(__assign({}, manipulatedParams), { stage: stageMap[stage] }));
22882
+ break;
22883
+ }
22884
+ return get(URL, { signal: signal }).then(function (response) {
22885
+ return processCDMaterialServiceResponse(response.result, stage, queryParams.offset, queryParams.filter);
22771
22886
  });
22772
22887
  };
22773
22888
  function extractImage(image) {
@@ -22807,7 +22922,7 @@ Valid States of Checkbox:
22807
22922
  5. disabled: false, checked: true, value: INTERMIDIATE
22808
22923
  6. disabled: false, checked: true, value: CHECKED
22809
22924
  */
22810
- var Checkbox = /** @class */ (function (_super) {
22925
+ var Checkbox$1 = /** @class */ (function (_super) {
22811
22926
  __extends(Checkbox, _super);
22812
22927
  function Checkbox() {
22813
22928
  return _super !== null && _super.apply(this, arguments) || this;
@@ -22820,8 +22935,8 @@ var Checkbox = /** @class */ (function (_super) {
22820
22935
  return Checkbox;
22821
22936
  }(React.Component));
22822
22937
 
22823
- var css_248z$2 = ".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}";
22824
- styleInject(css_248z$2);
22938
+ var css_248z$3 = ".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}";
22939
+ styleInject(css_248z$3);
22825
22940
 
22826
22941
  var Toggle = function (_a) {
22827
22942
  var _b;
@@ -22845,8 +22960,8 @@ var Toggle = function (_a) {
22845
22960
  return (jsxRuntime.jsxs("label", __assign({}, props, { className: "".concat(rootClassName, " toggle__switch ").concat(disabled ? 'disabled' : ''), style: (_b = {}, _b['--color'] = color, _b) }, { children: [jsxRuntime.jsx("input", { type: "checkbox", checked: !!active, onChange: handleClick, className: "toggle__input" }), jsxRuntime.jsx("span", __assign({ className: "toggle__slider ".concat(Icon ? 'with-icon br-4 dc__border' : 'round'), "data-testid": dataTestId }, { children: Icon && jsxRuntime.jsx(Icon, { className: "icon-dim-20 br-4 p-2 ".concat(iconClass) }) }))] })));
22846
22961
  };
22847
22962
 
22848
- var css_248z$1 = ".modal-body--scan-details {\n position: fixed;\n top: 0;\n right: 0;\n background: var(--N000);\n width: 800px;\n}\n\n.security-tab__table {\n width: 100%;\n}\n\n.security-tab__table-header {\n border-bottom: solid 1px var(--N200);\n}\n\n.security-cell-header {\n font-size: 12px;\n font-weight: 600;\n line-height: 1.5;\n letter-spacing: normal;\n text-transform: uppercase;\n color: var(--N500);\n}\n\n.dc__security-tab__table-row {\n font-size: 13px;\n font-weight: normal;\n line-height: 1.54;\n letter-spacing: normal;\n color: var(--N900);\n box-shadow: inset 0 -1px 0 0 #f5f5f5;\n}\n\n.security-tab__cell-cve,\n.security-tab__cell-severity,\n.security-tab__cell-package,\n.security-tab__cell-current-ver,\n.security-tab__cell-fixed-ver,\n.security-tab__cell-policy {\n padding: 10px;\n max-width: 120px;\n word-wrap: break-word;\n}\n\n.security-tab__cell-cve {\n padding-left: 0px;\n text-align: left;\n width: 20%;\n}\n\n.security-tab__cell-policy {\n padding-right: 0px;\n}\n\n.security-tab__cell-policy--whitelist,\n.security-tab__cell-policy--whitelisted {\n color: var(--G500);\n text-transform: capitalize;\n}\n\n.security-tab__cell-policy--block {\n color: var(--R500);\n text-transform: capitalize;\n}\n\n.scanned-object__results {\n margin: 0 20px;\n}";
22849
- styleInject(css_248z$1);
22963
+ var css_248z$2 = ".modal-body--scan-details {\n position: fixed;\n top: 0;\n right: 0;\n background: var(--N000);\n width: 800px;\n}\n\n.security-tab__table {\n width: 100%;\n}\n\n.security-tab__table-header {\n border-bottom: solid 1px var(--N200);\n}\n\n.security-cell-header {\n font-size: 12px;\n font-weight: 600;\n line-height: 1.5;\n letter-spacing: normal;\n text-transform: uppercase;\n color: var(--N500);\n}\n\n.dc__security-tab__table-row {\n font-size: 13px;\n font-weight: normal;\n line-height: 1.54;\n letter-spacing: normal;\n color: var(--N900);\n box-shadow: inset 0 -1px 0 0 #f5f5f5;\n}\n\n.security-tab__cell-cve,\n.security-tab__cell-severity,\n.security-tab__cell-package,\n.security-tab__cell-current-ver,\n.security-tab__cell-fixed-ver,\n.security-tab__cell-policy {\n padding: 10px;\n max-width: 120px;\n word-wrap: break-word;\n}\n\n.security-tab__cell-cve {\n padding-left: 0px;\n text-align: left;\n width: 20%;\n}\n\n.security-tab__cell-policy {\n padding-right: 0px;\n}\n\n.security-tab__cell-policy--whitelist,\n.security-tab__cell-policy--whitelisted {\n color: var(--G500);\n text-transform: capitalize;\n}\n\n.security-tab__cell-policy--block {\n color: var(--R500);\n text-transform: capitalize;\n}\n\n.scanned-object__results {\n margin: 0 20px;\n}";
22964
+ styleInject(css_248z$2);
22850
22965
 
22851
22966
  function ScanVulnerabilitiesTable(_a) {
22852
22967
  var vulnerabilities = _a.vulnerabilities;
@@ -22861,8 +22976,8 @@ function ScanVulnerabilitiesTable(_a) {
22861
22976
  })] }) })));
22862
22977
  }
22863
22978
 
22864
- var css_248z = ".radio-group {\n height: 30px;\n background: white;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 4px;\n border-radius: 4px;\n}\n.radio-group .label,\n.radio-group .radio,\n.radio-group .checkbox {\n margin: 0;\n}\n.radio-group .radio {\n height: 100%;\n width: auto;\n color: var(--N400);\n display: flex;\n align-items: center;\n}\n.radio-group .radio + .radio {\n margin-top: 0;\n}\n.radio-group input[type=checkbox] {\n display: contents;\n overflow: hidden;\n max-width: 0px;\n height: 0;\n opacity: 0;\n margin: unset;\n}\n.radio-group input + .radio__item-label {\n padding: 4px 6px;\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n transition: all 0.5s;\n cursor: pointer;\n}\n.radio-group input[type=checkbox]:checked + .radio__item-label {\n background: #2c3354;\n color: white;\n border-radius: 4px;\n}";
22865
- styleInject(css_248z);
22979
+ var css_248z$1 = ".radio-group {\n height: 30px;\n background: white;\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 4px;\n border-radius: 4px;\n}\n.radio-group .label,\n.radio-group .radio,\n.radio-group .checkbox {\n margin: 0;\n}\n.radio-group .radio {\n height: 100%;\n width: auto;\n color: var(--N400);\n display: flex;\n align-items: center;\n}\n.radio-group .radio + .radio {\n margin-top: 0;\n}\n.radio-group input[type=checkbox] {\n display: contents;\n overflow: hidden;\n max-width: 0px;\n height: 0;\n opacity: 0;\n margin: unset;\n}\n.radio-group input + .radio__item-label {\n padding: 4px 6px;\n height: 100%;\n width: 100%;\n display: flex;\n align-items: center;\n transition: all 0.5s;\n cursor: pointer;\n}\n.radio-group input[type=checkbox]:checked + .radio__item-label {\n background: #2c3354;\n color: white;\n border-radius: 4px;\n}";
22980
+ styleInject(css_248z$1);
22866
22981
 
22867
22982
  var RadioContext = React.createContext(null);
22868
22983
  function useRadioContext() {
@@ -22956,9 +23071,9 @@ exports.ConsequenceAction = void 0;
22956
23071
  })(exports.ConsequenceAction || (exports.ConsequenceAction = {}));
22957
23072
 
22958
23073
  var _g$2;
22959
- 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); }
23074
+ 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); }
22960
23075
  var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
22961
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
23076
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
22962
23077
  xmlns: "http://www.w3.org/2000/svg",
22963
23078
  width: "1em",
22964
23079
  height: "1em",
@@ -23037,16 +23152,16 @@ function DeleteComponent(_a) {
23037
23152
  return (jsxRuntime.jsxs("div", { children: [!showCannotDeleteDialogModal && renderDeleteDialog(), showCannotDeleteDialogModal && renderCannotDeleteDialogModal()] }));
23038
23153
  }
23039
23154
 
23040
- var _path$4;
23041
- 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); }
23155
+ var _path$5;
23156
+ 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); }
23042
23157
  var SvgIcPencil = function SvgIcPencil(props) {
23043
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
23158
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
23044
23159
  width: "1em",
23045
23160
  height: "1em",
23046
23161
  viewBox: "0 0 20 20",
23047
23162
  fill: "none",
23048
23163
  xmlns: "http://www.w3.org/2000/svg"
23049
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
23164
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
23050
23165
  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",
23051
23166
  stroke: "#596168",
23052
23167
  strokeWidth: 1.5,
@@ -23055,16 +23170,16 @@ var SvgIcPencil = function SvgIcPencil(props) {
23055
23170
  })));
23056
23171
  };
23057
23172
 
23058
- var _path$3, _path2, _path3;
23059
- 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); }
23173
+ var _path$4, _path2, _path3;
23174
+ 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); }
23060
23175
  var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
23061
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
23176
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
23062
23177
  width: "1em",
23063
23178
  height: "1em",
23064
23179
  viewBox: "0 0 12 12",
23065
23180
  fill: "none",
23066
23181
  xmlns: "http://www.w3.org/2000/svg"
23067
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
23182
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
23068
23183
  d: "M3.742 4.674h-2.25v-2.25",
23069
23184
  fill: "#767D84"
23070
23185
  })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -23082,15 +23197,15 @@ var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
23082
23197
  })));
23083
23198
  };
23084
23199
 
23085
- var _path$2;
23086
- 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); }
23200
+ var _path$3;
23201
+ 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); }
23087
23202
  var SvgIcMinus = function SvgIcMinus(props) {
23088
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
23203
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
23089
23204
  xmlns: "http://www.w3.org/2000/svg",
23090
23205
  width: "1em",
23091
23206
  height: "1em",
23092
23207
  viewBox: "0 0 14 14"
23093
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
23208
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
23094
23209
  fill: "#959BA1",
23095
23210
  className: "ic-minus_svg__fill-color",
23096
23211
  fillRule: "evenodd",
@@ -23099,9 +23214,9 @@ var SvgIcMinus = function SvgIcMinus(props) {
23099
23214
  };
23100
23215
 
23101
23216
  var _g$1;
23102
- 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); }
23217
+ 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); }
23103
23218
  var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
23104
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
23219
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
23105
23220
  xmlns: "http://www.w3.org/2000/svg",
23106
23221
  width: "1em",
23107
23222
  height: "1em",
@@ -23118,23 +23233,25 @@ var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
23118
23233
  }))));
23119
23234
  };
23120
23235
 
23121
- var _path$1;
23122
- 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); }
23236
+ var _path$2;
23237
+ 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); }
23123
23238
  var SvgIcEnter = function SvgIcEnter(props) {
23124
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
23239
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
23125
23240
  width: "1em",
23126
23241
  height: "1em",
23127
23242
  viewBox: "0 0 16 16",
23128
23243
  fill: "none",
23129
23244
  xmlns: "http://www.w3.org/2000/svg"
23130
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
23245
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
23131
23246
  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",
23132
23247
  fill: "#3B444C"
23133
23248
  })));
23134
23249
  };
23135
23250
 
23136
23251
  var ImageTagsContainer = function (_a) {
23137
- var ciPipelineId = _a.ciPipelineId, artifactId = _a.artifactId, imageComment = _a.imageComment, imageReleaseTags = _a.imageReleaseTags, updateCurrentAppMaterial = _a.updateCurrentAppMaterial, appReleaseTagNames = _a.appReleaseTagNames, setAppReleaseTagNames = _a.setAppReleaseTagNames, tagsEditable = _a.tagsEditable, setTagsEditable = _a.setTagsEditable, toggleCardMode = _a.toggleCardMode, hideHardDelete = _a.hideHardDelete, forceReInit = _a.forceReInit, isSuperAdmin = _a.isSuperAdmin;
23252
+ var
23253
+ // Setting it to zero in case of external pipeline
23254
+ ciPipelineId = _a.ciPipelineId, artifactId = _a.artifactId, imageComment = _a.imageComment, imageReleaseTags = _a.imageReleaseTags, updateCurrentAppMaterial = _a.updateCurrentAppMaterial, appReleaseTagNames = _a.appReleaseTagNames, setAppReleaseTagNames = _a.setAppReleaseTagNames, tagsEditable = _a.tagsEditable, setTagsEditable = _a.setTagsEditable, toggleCardMode = _a.toggleCardMode, hideHardDelete = _a.hideHardDelete, forceReInit = _a.forceReInit, isSuperAdmin = _a.isSuperAdmin;
23138
23255
  var _b = __read(React.useState(imageReleaseTags ? imageReleaseTags : []), 2), initialTags = _b[0], setInitialTags = _b[1];
23139
23256
  var _c = __read(React.useState(imageComment ? imageComment.comment : ''), 2), initialDescription = _c[0], setInitialDescription = _c[1];
23140
23257
  var _d = __read(React.useState(appReleaseTagNames ? appReleaseTagNames : []), 2), existingTags = _d[0], setExistingTags = _d[1];
@@ -23148,6 +23265,7 @@ var ImageTagsContainer = function (_a) {
23148
23265
  var _m = __read(React.useState([]), 2), hardDeleteTags = _m[0], setHardDeleteTags = _m[1];
23149
23266
  var _o = __read(React.useState(''), 2), descriptionValidationMessage = _o[0], setDescriptionValidationMessage = _o[1];
23150
23267
  var _p = __read(React.useState(''), 2), textInput = _p[0], setTextInput = _p[1];
23268
+ var _q = __read(React.useState(false), 2), loading = _q[0], setLoading = _q[1];
23151
23269
  React.useEffect(function () {
23152
23270
  reInitState();
23153
23271
  }, [imageReleaseTags, imageComment, tagsEditable]);
@@ -23295,7 +23413,8 @@ var ImageTagsContainer = function (_a) {
23295
23413
  hardDeleteTags: hardDeleteTags,
23296
23414
  };
23297
23415
  // set loading state true
23298
- setImageTags(payload, ciPipelineId, artifactId)
23416
+ setLoading(true);
23417
+ setImageTags(payload, ciPipelineId !== null && ciPipelineId !== void 0 ? ciPipelineId : 0, artifactId)
23299
23418
  .then(function (res) {
23300
23419
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
23301
23420
  var tags = (_b = (_a = res.result) === null || _a === void 0 ? void 0 : _a.imageReleaseTags) === null || _b === void 0 ? void 0 : _b.map(function (tag) { return ({
@@ -23334,6 +23453,9 @@ var ImageTagsContainer = function (_a) {
23334
23453
  else {
23335
23454
  showError(err);
23336
23455
  }
23456
+ })
23457
+ .finally(function () {
23458
+ setLoading(false);
23337
23459
  });
23338
23460
  return [2 /*return*/];
23339
23461
  });
@@ -23384,10 +23506,10 @@ var ImageTagsContainer = function (_a) {
23384
23506
  }, tagId: tag.id, softDeleteTags: softDeleteTags, isSuperAdmin: isSuperAdmin, duplicateTag: tag === null || tag === void 0 ? void 0 : tag.duplicateTag, hideHardDelete: hideHardDelete }, tag.id)); }) })), showTagsWarning && (jsxRuntime.jsxs("div", __assign({ className: "cn-7 mb-8 flex left" }, { children: [jsxRuntime.jsx(SvgIcInfoFilled, { className: "form__icon--info icon-dim-16 mr-2" }), "Tags cannot be edited/removed later"] }))), jsxRuntime.jsx("div", __assign({ className: "cn-7 mt-12" }, { children: "Comment" })), jsxRuntime.jsx("div", __assign({ className: "flex left flex-wrap dc__gap-8 w-100 mt-6 mb-12", "data-testid": "add-image-comment-text-area" }, { children: jsxRuntime.jsx("textarea", { value: newDescription, onChange: handleDescriptionChange, className: "flex left flex-wrap dc__gap-8 dc__description-textarea fs-13", style: { height: '90px !important' } }) })), descriptionValidationMessage !== '' && (jsxRuntime.jsxs("div", __assign({ className: "flex left" }, { children: [jsxRuntime.jsx(SvgIcWarning, { className: "form__icon form__icon--error" }), jsxRuntime.jsx("div", __assign({ className: "form__error" }, { children: descriptionValidationMessage }))] }))), jsxRuntime.jsxs("div", __assign({ className: "w-100 flex right mt-12" }, { children: [jsxRuntime.jsx("button", __assign({ className: "cta flex cancel h-32 lh-32-imp", type: "button", onClick: function (e) {
23385
23507
  stopPropagation(e);
23386
23508
  handleCancel();
23387
- } }, { children: "Cancel" })), jsxRuntime.jsx("button", __assign({ className: "cta flex h-32 lh-32-imp ml-12", "data-testid": "save-tags-button", type: "button", onClick: function (e) {
23509
+ }, disabled: loading }, { children: "Cancel" })), jsxRuntime.jsx("button", __assign({ className: "cta flex h-32 lh-32-imp ml-12", "data-testid": "save-tags-button", type: "button", onClick: function (e) {
23388
23510
  stopPropagation(e);
23389
23511
  onClickSave();
23390
- } }, { children: "Save" }))] }))] }))) : (jsxRuntime.jsxs("div", __assign({ className: "top br-4 bcn-0 image-tags-container flexbox" }, { children: [jsxRuntime.jsx("div", __assign({ className: "flex left image-tag-left-border w-100 mt-8 mb-8 pr-10 pl-10", "data-testid": "image-tags-container-hover" }, { children: jsxRuntime.jsxs("div", __assign({ className: 'w-100' }, { children: [initialDescription && jsxRuntime.jsx("div", __assign({ className: "mb-6 fs-13 lh-20 dc__word-break-all" }, { children: initialDescription })), jsxRuntime.jsx("div", __assign({ className: "flex-wrap flex left" }, { children: initialTags === null || initialTags === void 0 ? void 0 : initialTags.map(function (tag, index) { return (jsxRuntime.jsx(ImageTagButton, { text: tag === null || tag === void 0 ? void 0 : tag.tagName, isSoftDeleted: tag === null || tag === void 0 ? void 0 : tag.deleted, isEditing: isEditing, onSoftDeleteClick: function (e) {
23512
+ }, disabled: loading }, { children: loading ? jsxRuntime.jsx(Progressing, {}) : 'Save' }))] }))] }))) : (jsxRuntime.jsxs("div", __assign({ className: "top br-4 bcn-0 image-tags-container flexbox" }, { children: [jsxRuntime.jsx("div", __assign({ className: "flex left image-tag-left-border w-100 mt-8 mb-8 pr-10 pl-10", "data-testid": "image-tags-container-hover" }, { children: jsxRuntime.jsxs("div", __assign({ className: 'w-100' }, { children: [initialDescription && jsxRuntime.jsx("div", __assign({ className: "mb-6 fs-13 lh-20 dc__word-break-all" }, { children: initialDescription })), jsxRuntime.jsx("div", __assign({ className: "flex-wrap flex left" }, { children: initialTags === null || initialTags === void 0 ? void 0 : initialTags.map(function (tag, index) { return (jsxRuntime.jsx(ImageTagButton, { text: tag === null || tag === void 0 ? void 0 : tag.tagName, isSoftDeleted: tag === null || tag === void 0 ? void 0 : tag.deleted, isEditing: isEditing, onSoftDeleteClick: function (e) {
23391
23513
  stopPropagation(e);
23392
23514
  handleTagSoftDelete(index);
23393
23515
  }, onHardDeleteClick: function (e) {
@@ -23479,9 +23601,9 @@ function useDebouncedEffect(callback, delay, deps) {
23479
23601
  }
23480
23602
 
23481
23603
  var _g;
23482
- 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); }
23604
+ 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); }
23483
23605
  var SvgIcErrorCross = function SvgIcErrorCross(props) {
23484
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
23606
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
23485
23607
  xmlns: "http://www.w3.org/2000/svg",
23486
23608
  width: "1em",
23487
23609
  height: "1em",
@@ -23549,15 +23671,15 @@ function Grid(_a) {
23549
23671
  return (jsxRuntime.jsx("div", __assign({ className: "flex-wrap flexbox ".concat(container ? containerClass : ''), style: containerStyles }, { children: children })));
23550
23672
  }
23551
23673
 
23552
- var _path;
23553
- 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); }
23674
+ var _path$1;
23675
+ 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); }
23554
23676
  var SvgIcCopy = function SvgIcCopy(props) {
23555
- return /*#__PURE__*/React__namespace.createElement("svg", _extends({
23677
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
23556
23678
  xmlns: "http://www.w3.org/2000/svg",
23557
23679
  width: "1em",
23558
23680
  height: "1em",
23559
23681
  viewBox: "0 0 20 20"
23560
- }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
23682
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
23561
23683
  fill: "#767D84",
23562
23684
  fillRule: "evenodd",
23563
23685
  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"
@@ -23725,12 +23847,234 @@ function AppStatus(_a) {
23725
23847
  return hideStatusMessage ? (iconClass || isVirtualEnv ? (jsxRuntime.jsx(Tippy, __assign({ className: "default-tt", arrow: false, placement: "top", content: textContent }, { children: jsxRuntime.jsx("div", __assign({ className: "flex" }, { children: renderIcon() })) }))) : (renderIcon())) : (jsxRuntime.jsxs("div", __assign({ className: "flex left" }, { children: [jsxRuntime.jsx("div", __assign({ className: "flex mr-6" }, { children: renderIcon() })), jsxRuntime.jsx("p", __assign({ "data-testid": "".concat(status, "-app-status"), className: "dc__truncate-text dc__first-letter-capitalize cn-6 m-0" }, { children: textContent }))] })));
23726
23848
  }
23727
23849
 
23850
+ var FieldRowWithLabel = function (_a) {
23851
+ var showLabel = _a.showLabel, label = _a.label, required = _a.required, children = _a.children, id = _a.id, _b = _a.shouldAlignCenter, shouldAlignCenter = _b === void 0 ? true : _b;
23852
+ return (jsxRuntime.jsxs("div", __assign({ className: showLabel
23853
+ ? "display-grid dc__gap-12 rjsf-form-template__field ".concat(shouldAlignCenter ? 'flex-align-center' : '')
23854
+ : '' }, { children: [showLabel && (jsxRuntime.jsx("label", __assign({ className: "cn-7 fs-13 lh-32 fw-4 flexbox mb-0", htmlFor: id }, { children: !!label && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx("span", __assign({ className: "dc__ellipsis-right" }, { children: label })), required && jsxRuntime.jsx("span", __assign({ className: "cr-5" }, { children: "\u00A0*" }))] })) }))), children] })));
23855
+ };
23856
+
23857
+ var ActionButton = function (_a) {
23858
+ var canAdd = _a.canAdd, onAddClick = _a.onAddClick, disabled = _a.disabled, readonly = _a.readonly, uiSchema = _a.uiSchema, registry = _a.registry;
23859
+ var AddButton = registry.templates.ButtonTemplates.AddButton;
23860
+ return (canAdd && (jsxRuntime.jsx(AddButton, { onClick: onAddClick, disabled: disabled || readonly, uiSchema: uiSchema, registry: registry })));
23861
+ };
23862
+ var ArrayFieldTemplate = function (_a) {
23863
+ var canAdd = _a.canAdd, className = _a.className, disabled = _a.disabled, idSchema = _a.idSchema, uiSchema = _a.uiSchema, items = _a.items, onAddClick = _a.onAddClick, readonly = _a.readonly, registry = _a.registry, required = _a.required, title = _a.title;
23864
+ var uiOptions = utils.getUiOptions(uiSchema);
23865
+ var ArrayFieldItemTemplate = utils.getTemplate('ArrayFieldItemTemplate', registry, uiOptions);
23866
+ var label = uiOptions.title || title;
23867
+ return (jsxRuntime.jsx("fieldset", __assign({ className: className, id: idSchema.$id }, { children: items.length ? (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [items.map(function (_a, index) {
23868
+ var key = _a.key, itemProps = __rest(_a, ["key"]);
23869
+ // Show the title as the label for the first field
23870
+ var children = __assign(__assign({}, itemProps.children), { props: __assign(__assign({}, itemProps.children.props), { name: index === 0 ? label : '' }) });
23871
+ return (jsxRuntime.jsx(ArrayFieldItemTemplate, __assign({}, itemProps, { children: children }), key));
23872
+ }), jsxRuntime.jsx(ActionButton, { canAdd: canAdd, onAddClick: onAddClick, disabled: disabled, readonly: readonly, uiSchema: uiSchema, registry: registry })] })) : (jsxRuntime.jsx(FieldRowWithLabel, __assign({ label: label, required: required, showLabel: true, id: idSchema.$id }, { children: jsxRuntime.jsx(ActionButton, { canAdd: canAdd, onAddClick: onAddClick, disabled: disabled, readonly: readonly, uiSchema: uiSchema, registry: registry }) }))) })));
23873
+ };
23874
+
23875
+ var ArrayFieldItemTemplate = function (_a) {
23876
+ var children = _a.children; _a.className; var disabled = _a.disabled, hasToolbar = _a.hasToolbar, hasRemove = _a.hasRemove, index = _a.index, onDropIndexClick = _a.onDropIndexClick, readonly = _a.readonly, registry = _a.registry, uiSchema = _a.uiSchema;
23877
+ var RemoveButton = registry.templates.ButtonTemplates.RemoveButton;
23878
+ return (jsxRuntime.jsxs("div", __assign({ className: "display-grid rjsf-form-template__array-field-item flex-align-center dc__gap-8 mb-12" }, { children: [children, hasToolbar && hasRemove && (jsxRuntime.jsx("div", { children: jsxRuntime.jsx(RemoveButton, { disabled: disabled || readonly, onClick: onDropIndexClick(index), uiSchema: uiSchema, registry: registry }) }))] })));
23879
+ };
23880
+
23881
+ var PLACEHOLDERS = {
23882
+ SELECT: 'Please select an option',
23883
+ INPUT: 'Please enter an input',
23884
+ OBJECT_KEY: 'Please enter a value for the key',
23885
+ };
23886
+
23887
+ var BaseInputTemplate = RJSF.getDefaultRegistry().templates.BaseInputTemplate;
23888
+ var BaseInput = function (_a) {
23889
+ var placeholder = _a.placeholder, props = __rest(_a, ["placeholder"]);
23890
+ return (jsxRuntime.jsx(BaseInputTemplate, __assign({ placeholder: placeholder || PLACEHOLDERS.INPUT }, props, { className: "form__input cn-9 fs-13 lh-20 fw-4" })));
23891
+ };
23892
+
23893
+ var AddButton = function (_a) {
23894
+ _a.icon; _a.iconType; _a.registry; _a.uiSchema; var props = __rest(_a, ["icon", "iconType", "registry", "uiSchema"]);
23895
+ return (jsxRuntime.jsx("div", __assign({ className: "flexbox flex-justify-end" }, { children: jsxRuntime.jsxs("button", __assign({}, props, { type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex dc__gap-4 cursor", title: "Add" }, { children: [jsxRuntime.jsx(SvgIcAdd, { className: "icon-dim-16 fcb-5" }), jsxRuntime.jsx("span", __assign({ className: "cb-5 fs-13 lh-20" }, { children: "Add" }))] })) })));
23896
+ };
23897
+
23898
+ var RemoveButton = function (_a) {
23899
+ _a.icon; _a.iconType; _a.registry; _a.uiSchema; var props = __rest(_a, ["icon", "iconType", "registry", "uiSchema"]);
23900
+ return (jsxRuntime.jsx("button", __assign({}, props, { type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove" }, { children: jsxRuntime.jsx(SvgIcCross, { className: "icon-dim-16 fcr-5" }) })));
23901
+ };
23902
+
23903
+ var SubmitButton = function (_a) {
23904
+ var uiSchema = _a.uiSchema;
23905
+ var _b = utils.getSubmitButtonOptions(uiSchema), submitText = _b.submitText, norender = _b.norender, _c = _b.props, submitButtonProps = _c === void 0 ? {} : _c;
23906
+ return norender ? null : (jsxRuntime.jsx("div", __assign({ className: "flexbox flex-justify-end" }, { children: jsxRuntime.jsx("button", __assign({ type: "submit" }, submitButtonProps, { className: "cta ".concat(submitButtonProps.className || '') }, { children: submitText })) })));
23907
+ };
23908
+
23909
+ var Description = function (_a) {
23910
+ var id = _a.id, description = _a.description;
23911
+ return description && (jsxRuntime.jsxs("div", __assign({ id: id, className: "flex left flex-align-center mt-4 dc__gap-4" }, { children: [jsxRuntime.jsx(SvgIcInfoFilled, { className: "icon-dim-16 mw-16 info-icon-n5" }), jsxRuntime.jsx("span", __assign({ className: "cn-7 fs-11 fw-4 dc__ellipsis-right" }, { children: description }))] })));
23912
+ };
23913
+
23914
+ var Field$1 = function (props) {
23915
+ var id = props.id, label = props.label, children = props.children, errors = props.errors, hidden = props.hidden, required = props.required, displayLabel = props.displayLabel, registry = props.registry, uiSchema = props.uiSchema, classNames = props.classNames, schema = props.schema, description = props.description;
23916
+ var uiOptions = utils.getUiOptions(uiSchema);
23917
+ var WrapIfAdditionalTemplate = utils.getTemplate('WrapIfAdditionalTemplate', registry, uiOptions);
23918
+ // Object type fields have additional properties for key/value pairs
23919
+ var hasAdditionalProperties = utils.ADDITIONAL_PROPERTY_FLAG in schema;
23920
+ // Label is not displayed for boolean fields by default and hide for object type fields
23921
+ var showLabel = (displayLabel || schema.type === 'boolean') && !hasAdditionalProperties;
23922
+ return hidden ? (jsxRuntime.jsx("div", __assign({ className: "hidden" }, { children: children }))) : (jsxRuntime.jsxs("div", __assign({ className: "".concat(classNames, " mb-12") }, { children: [jsxRuntime.jsx(FieldRowWithLabel, __assign({ label: label, showLabel: showLabel, id: id, required: required }, { children: jsxRuntime.jsx(WrapIfAdditionalTemplate, __assign({}, props, { children: children })) })), description, errors] })));
23923
+ };
23924
+
23925
+ var FieldErrorTemplate = function (_a) {
23926
+ var _b = _a.errors, errors = _b === void 0 ? [] : _b, idSchema = _a.idSchema;
23927
+ var id = utils.errorId(idSchema);
23928
+ return (errors.length > 0 && (jsxRuntime.jsx("span", __assign({ id: id }, { children: errors
23929
+ .filter(function (elem) { return !!elem; })
23930
+ .map(function (error, index) {
23931
+ return (jsxRuntime.jsxs("span", __assign({ className: "form__error" }, { children: [jsxRuntime.jsx(SvgIcWarning, { className: "form__icon form__icon--error" }), error] }), index));
23932
+ }) }))));
23933
+ };
23934
+
23935
+ var Field = function (_a) {
23936
+ var disabled = _a.disabled, formData = _a.formData, idSchema = _a.idSchema, onAddClick = _a.onAddClick, properties = _a.properties, readonly = _a.readonly, registry = _a.registry, required = _a.required, schema = _a.schema, title = _a.title, uiSchema = _a.uiSchema;
23937
+ var AddButton = registry.templates.ButtonTemplates.AddButton;
23938
+ var hasAdditionalProperties = !!schema.additionalProperties;
23939
+ var ActionButton = utils.canExpand(schema, uiSchema, formData) && (jsxRuntime.jsx(AddButton, { className: "object-property-expand", onClick: onAddClick(schema), disabled: disabled || readonly, uiSchema: uiSchema, registry: registry }));
23940
+ var Properties = properties.map(function (prop) { return prop.content; });
23941
+ if (hasAdditionalProperties) {
23942
+ if (properties.length) {
23943
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(FieldRowWithLabel, __assign({ label: title, required: required, showLabel: true, id: idSchema.$id, shouldAlignCenter: false }, { children: jsxRuntime.jsx("div", { children: Properties }) })), ActionButton] }));
23944
+ }
23945
+ else {
23946
+ return (jsxRuntime.jsx(FieldRowWithLabel, __assign({ label: title, required: required, showLabel: true, id: idSchema.$id }, { children: ActionButton })));
23947
+ }
23948
+ }
23949
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [Properties, ActionButton] }));
23950
+ };
23951
+ var ObjectFieldTemplate = function (props) {
23952
+ var idSchema = props.idSchema, registry = props.registry, required = props.required, schema = props.schema, title = props.title, uiSchema = props.uiSchema;
23953
+ var options = utils.getUiOptions(uiSchema);
23954
+ var TitleFieldTemplate = utils.getTemplate('TitleFieldTemplate', registry, options);
23955
+ var hasAdditionalProperties = !!schema.additionalProperties;
23956
+ var showTitle = title && !hasAdditionalProperties;
23957
+ return (jsxRuntime.jsxs("fieldset", __assign({ id: idSchema.$id }, { children: [showTitle && (jsxRuntime.jsx(TitleFieldTemplate, { id: utils.titleId(idSchema), title: title, required: required, schema: schema, uiSchema: uiSchema, registry: registry })), jsxRuntime.jsx(Field, __assign({}, props))] })));
23958
+ };
23959
+
23960
+ var TitleField = function (_a) {
23961
+ var id = _a.id, title = _a.title, required = _a.required;
23962
+ return (jsxRuntime.jsxs("legend", __assign({ className: "fs-13 fw-6 cn-9 lh-20 pb-8 dc__border-bottom en-1 mb-12", id: id }, { children: [jsxRuntime.jsx("span", { children: title }), required && jsxRuntime.jsx("span", __assign({ className: "cr-5" }, { children: "\u00A0*" }))] })));
23963
+ };
23964
+
23965
+ var WrapIfAdditionalTemplate = function (_a) {
23966
+ var id = _a.id, disabled = _a.disabled, label = _a.label, onKeyChange = _a.onKeyChange, onDropPropertyClick = _a.onDropPropertyClick, readonly = _a.readonly, schema = _a.schema, children = _a.children, uiSchema = _a.uiSchema, registry = _a.registry;
23967
+ var templates = registry.templates;
23968
+ var RemoveButton = templates.ButtonTemplates.RemoveButton;
23969
+ var additional = utils.ADDITIONAL_PROPERTY_FLAG in schema;
23970
+ return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: additional ? (jsxRuntime.jsxs("div", __assign({ className: "rjsf-form-template__additional-fields display-grid dc__gap-8 flex-align-center" }, { children: [jsxRuntime.jsx("div", { children: jsxRuntime.jsx("input", { type: "text", className: "form__input cn-9 fs-13 lh-20 fw-4", id: "".concat(id, "-key"), onBlur: function (event) { return onKeyChange(event.target.value); }, placeholder: PLACEHOLDERS.OBJECT_KEY, defaultValue: label }) }), jsxRuntime.jsx("div", { children: children }), jsxRuntime.jsx("div", { children: jsxRuntime.jsx(RemoveButton, { disabled: disabled || readonly, onClick: onDropPropertyClick(label), uiSchema: uiSchema, registry: registry }) })] }))) : (children) }));
23971
+ };
23972
+
23973
+ var Checkbox = function (_a) {
23974
+ var id = _a.id, onChange = _a.onChange, value = _a.value, required = _a.required, disabled = _a.disabled, readonly = _a.readonly, autofocus = _a.autofocus, onBlur = _a.onBlur, onFocus = _a.onFocus;
23975
+ var handleEvent = function (e, type) {
23976
+ var _a = e.target, id = _a.id, checked = _a.checked;
23977
+ if (type === 'blur') {
23978
+ onBlur(id, checked);
23979
+ }
23980
+ else if (type === 'focus') {
23981
+ onFocus(id, checked);
23982
+ }
23983
+ };
23984
+ var isSelected = typeof value === 'undefined' ? false : value;
23985
+ return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(Toggle, { selected: isSelected, onSelect: onChange, id: id, name: id, required: required, disabled: disabled || readonly, autoFocus: autofocus, rootClassName: "w-32 mb-0 dc__height-inherit", onBlur: function (e) { return handleEvent(e, 'blur'); }, onFocus: function (e) { return handleEvent(e, 'focus'); } }), jsxRuntime.jsx("span", __assign({ className: "dc__capitalize ml-8" }, { children: isSelected.toString() }))] }));
23986
+ };
23987
+
23988
+ /**
23989
+ * Override for the TranslatableString from RJSF
23990
+ */
23991
+ var translateString = function (stringToTranslate, params) {
23992
+ switch (stringToTranslate) {
23993
+ case utils.TranslatableString.NewStringDefault:
23994
+ // Use an empty string for the new additionalProperties string default value
23995
+ return '';
23996
+ default:
23997
+ return utils.englishStringTranslator(stringToTranslate, params);
23998
+ }
23999
+ };
24000
+ var getCommonSelectStyle = function (styleOverrides) {
24001
+ if (styleOverrides === void 0) { styleOverrides = {}; }
24002
+ 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);
24003
+ };
24004
+
24005
+ var _path;
24006
+ 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); }
24007
+ var SvgIcChevronDown = function SvgIcChevronDown(props) {
24008
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
24009
+ xmlns: "http://www.w3.org/2000/svg",
24010
+ width: "1em",
24011
+ height: "1em",
24012
+ viewBox: "0 0 24 24"
24013
+ }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
24014
+ fill: "#999",
24015
+ className: "ic-chevron-down_svg__fill-color",
24016
+ fillRule: "nonzero",
24017
+ d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
24018
+ })));
24019
+ };
24020
+
24021
+ var commonStyles = getCommonSelectStyle();
24022
+ var MenuList = function (_a) {
24023
+ var children = _a.children, props = __rest(_a, ["children"]);
24024
+ return (jsxRuntime.jsx(components.MenuList, __assign({}, props, { children: Array.isArray(children) ? children.slice(0, 20) : children })));
24025
+ };
24026
+ var DropdownIndicator = function (props) { return (jsxRuntime.jsx(components.DropdownIndicator, __assign({}, props, { children: jsxRuntime.jsx(SvgIcChevronDown, { className: "icon-dim-20 icon-n5", "data-testid": "overview-project-edit-dropdown" }) }))); };
24027
+ var Select = function (props) {
24028
+ var id = props.id, _a = props.multiple, multiple = _a === void 0 ? false : _a, options = props.options, value = props.value, disabled = props.disabled, readonly = props.readonly, _b = props.autofocus, autofocus = _b === void 0 ? false : _b, onChange = props.onChange, onBlur = props.onBlur, onFocus = props.onFocus, placeholder = props.placeholder;
24029
+ var _c = options.enumOptions, selectOptions = _c === void 0 ? [] : _c;
24030
+ var emptyValue = multiple ? [] : '';
24031
+ var handleChange = function (option) {
24032
+ onChange(multiple ? option.map(function (o) { return o.value; }) : option.value);
24033
+ };
24034
+ var getOption = function (value) {
24035
+ return multiple
24036
+ ? selectOptions.filter(function (option) { return value.includes(option.value); })
24037
+ : selectOptions.find(function (option) { return option.value === value; });
24038
+ };
24039
+ return (jsxRuntime.jsx(ReactSelect, { id: id, name: id, isMulti: multiple, value: typeof value === 'undefined' ? emptyValue : getOption(value), autoFocus: autofocus, onChange: handleChange, options: selectOptions, onBlur: function () { return onBlur(id, value); }, onFocus: function () { return onFocus(id, value); }, placeholder: placeholder || PLACEHOLDERS.SELECT, isDisabled: disabled || readonly, styles: __assign(__assign({}, commonStyles), { control: function (base) { return (__assign(__assign(__assign({}, base), commonStyles.control), { backgroundColor: 'var(--N50)' })); } }), components: {
24040
+ IndicatorSeparator: null,
24041
+ DropdownIndicator: DropdownIndicator,
24042
+ MenuList: MenuList,
24043
+ }, menuPlacement: "auto" }));
24044
+ };
24045
+
24046
+ var widgets = {
24047
+ CheckboxWidget: Checkbox,
24048
+ SelectWidget: Select,
24049
+ };
24050
+ var templates = {
24051
+ ArrayFieldItemTemplate: ArrayFieldItemTemplate,
24052
+ ArrayFieldTemplate: ArrayFieldTemplate,
24053
+ BaseInputTemplate: BaseInput,
24054
+ ButtonTemplates: { AddButton: AddButton, RemoveButton: RemoveButton, SubmitButton: SubmitButton },
24055
+ DescriptionFieldTemplate: Description,
24056
+ FieldTemplate: Field$1,
24057
+ FieldErrorTemplate: FieldErrorTemplate,
24058
+ ObjectFieldTemplate: ObjectFieldTemplate,
24059
+ TitleFieldTemplate: TitleField,
24060
+ WrapIfAdditionalTemplate: WrapIfAdditionalTemplate,
24061
+ };
24062
+
24063
+ var css_248z = ".rjsf-form-template__field {\n grid-template-columns: 250px 1fr;\n}\n.rjsf-form-template__additional-fields {\n grid-template-columns: 1fr 1fr minmax(20px, auto);\n}\n.rjsf-form-template__array-field-item {\n grid-template-columns: 1fr auto;\n}\n.rjsf-form-template__array-field-item :first-child {\n margin: 0;\n}";
24064
+ styleInject(css_248z);
24065
+
24066
+ // Need to use this way because the default import was not working as expected
24067
+ // The default import resolves to an object intead of a function
24068
+ var Form = RJSF.default;
24069
+ var validator = RJSFValidator.default;
24070
+ 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 }))); };
24071
+
23728
24072
  exports.AppStatus = AppStatus;
23729
24073
  exports.BreadCrumb = BreadCrumb;
23730
24074
  exports.BreadcrumbStore = Store;
23731
24075
  exports.BuildStageVariable = BuildStageVariable;
23732
24076
  exports.CDModalTab = CDModalTab;
23733
- exports.Checkbox = Checkbox;
24077
+ exports.Checkbox = Checkbox$1;
23734
24078
  exports.ClearIndicator = ClearIndicator;
23735
24079
  exports.ClipboardButton = ClipboardButton;
23736
24080
  exports.ConditionalWrap = ConditionalWrap;
@@ -23769,6 +24113,7 @@ exports.PopupMenu = PopupMenu;
23769
24113
  exports.Progressing = Progressing;
23770
24114
  exports.PropagateTagInfo = PropagateTagInfo;
23771
24115
  exports.REGISTRY_TYPE_MAP = REGISTRY_TYPE_MAP;
24116
+ exports.RJSFForm = RJSFForm;
23772
24117
  exports.ROUTES = ROUTES;
23773
24118
  exports.RadioGroup = RadioGroup$1;
23774
24119
  exports.RadioGroupItem = RadioGroupItem;
@@ -23801,9 +24146,9 @@ exports.closeOnEscKeyPressed = closeOnEscKeyPressed;
23801
24146
  exports.copyToClipboard = copyToClipboard;
23802
24147
  exports.createGitCommitUrl = createGitCommitUrl;
23803
24148
  exports.extractImage = extractImage;
24149
+ exports.genericCDMaterialsService = genericCDMaterialsService;
23804
24150
  exports.get = get;
23805
24151
  exports.getAlphabetIcon = getAlphabetIcon;
23806
- exports.getCDMaterials = getCDMaterials;
23807
24152
  exports.getCookie = getCookie;
23808
24153
  exports.getEmptyArrayOfLength = getEmptyArrayOfLength;
23809
24154
  exports.getLoginInfo = getLoginInfo;