@devtron-labs/devtron-fe-common-lib 0.0.10-beta-18 → 0.0.10-beta-20

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.
package/dist/index.js CHANGED
@@ -42,8 +42,6 @@ var URLS = {
42
42
  };
43
43
  var ROUTES = {
44
44
  PROJECT_LIST_MIN: 'team/autocomplete',
45
- USER_CHECK_ROLE: 'user/check/roles',
46
- IMAGE_TAGGING: 'app/image-tagging',
47
45
  };
48
46
  exports.KEY_VALUE = void 0;
49
47
  (function (KEY_VALUE) {
@@ -510,15 +508,15 @@ function styleInject(css, ref) {
510
508
  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 width: 300px;\n font-weight: 400;\n text-align: center;\n line-height: 1.5;\n margin-bottom: 20px;\n}\n.empty-state .cta {\n height: 36px;\n}\n.empty-state p {\n width: 300px;\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}";
511
509
  styleInject(css_248z$6);
512
510
 
513
- var _g$5;
514
- 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); }
511
+ var _g$3;
512
+ 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); }
515
513
  var SvgIcProgressing = function SvgIcProgressing(props) {
516
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
514
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
517
515
  xmlns: "http://www.w3.org/2000/svg",
518
516
  viewBox: "0 0 24 24",
519
517
  width: "1em",
520
518
  height: "1em"
521
- }, props), _g$5 || (_g$5 = /*#__PURE__*/React__namespace.createElement("g", {
519
+ }, props), _g$3 || (_g$3 = /*#__PURE__*/React__namespace.createElement("g", {
522
520
  fill: "none"
523
521
  }, /*#__PURE__*/React__namespace.createElement("animateTransform", {
524
522
  attributeName: "transform",
@@ -565,8 +563,8 @@ EmptyState.Loading = Loading;
565
563
 
566
564
  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}
567
565
 
568
- function _extends$h() {
569
- _extends$h = Object.assign || function (target) {
566
+ function _extends$b() {
567
+ _extends$b = Object.assign || function (target) {
570
568
  for (var i = 1; i < arguments.length; i++) {
571
569
  var source = arguments[i];
572
570
 
@@ -580,7 +578,7 @@ function _extends$h() {
580
578
  return target;
581
579
  };
582
580
 
583
- return _extends$h.apply(this, arguments);
581
+ return _extends$b.apply(this, arguments);
584
582
  }
585
583
 
586
584
  function _objectWithoutPropertiesLoose$2(source, excluded) {
@@ -1306,7 +1304,7 @@ function ProgressBar(_ref) {
1306
1304
  isIn = _ref.isIn,
1307
1305
  theme = _ref.theme;
1308
1306
 
1309
- var style = _extends$h({}, userStyle, {
1307
+ var style = _extends$b({}, userStyle, {
1310
1308
  animationDuration: delay + "ms",
1311
1309
  animationPlayState: isRunning ? 'running' : 'paused',
1312
1310
  opacity: hide ? 0 : 1
@@ -1583,9 +1581,9 @@ var ToastContainer = function ToastContainer(props) {
1583
1581
  ,
1584
1582
  id: containerId
1585
1583
  }, getToastToRender(function (position, toastList) {
1586
- var containerStyle = !toastList.length ? _extends$h({}, style, {
1584
+ var containerStyle = !toastList.length ? _extends$b({}, style, {
1587
1585
  pointerEvents: 'none'
1588
- }) : _extends$h({}, style);
1586
+ }) : _extends$b({}, style);
1589
1587
  return React.createElement("div", {
1590
1588
  className: getClassName(position),
1591
1589
  style: containerStyle,
@@ -1692,7 +1690,7 @@ function dispatchToast(content, options) {
1692
1690
 
1693
1691
 
1694
1692
  function mergeOptions(type, options) {
1695
- return _extends$h({}, options, {
1693
+ return _extends$b({}, options, {
1696
1694
  type: options && options.type || type,
1697
1695
  toastId: getToastId(options)
1698
1696
  });
@@ -1709,7 +1707,7 @@ function toast(content, options) {
1709
1707
  }
1710
1708
 
1711
1709
  toast.loading = function (content, options) {
1712
- return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$h({
1710
+ return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$b({
1713
1711
  isLoading: true,
1714
1712
  autoClose: false,
1715
1713
  closeOnClick: false,
@@ -1725,7 +1723,7 @@ function handlePromise(promise, _ref2, options) {
1725
1723
  var id;
1726
1724
 
1727
1725
  if (pending) {
1728
- id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$h({}, options, pending));
1726
+ id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$b({}, options, pending));
1729
1727
  }
1730
1728
 
1731
1729
  var resetParams = {
@@ -1744,7 +1742,7 @@ function handlePromise(promise, _ref2, options) {
1744
1742
  return;
1745
1743
  }
1746
1744
 
1747
- var baseParams = _extends$h({
1745
+ var baseParams = _extends$b({
1748
1746
  type: type
1749
1747
  }, resetParams, options, {
1750
1748
  data: result
@@ -1755,10 +1753,10 @@ function handlePromise(promise, _ref2, options) {
1755
1753
  } : input; // if the id is set we know that it's an update
1756
1754
 
1757
1755
  if (id) {
1758
- toast.update(id, _extends$h({}, baseParams, params));
1756
+ toast.update(id, _extends$b({}, baseParams, params));
1759
1757
  } else {
1760
1758
  // using toast.promise without loading
1761
- toast(params.render, _extends$h({}, baseParams, params));
1759
+ toast(params.render, _extends$b({}, baseParams, params));
1762
1760
  }
1763
1761
 
1764
1762
  return result;
@@ -1782,7 +1780,7 @@ toast.warning = /*#__PURE__*/createToastByType(TYPE.WARNING);
1782
1780
  toast.warn = toast.warning;
1783
1781
 
1784
1782
  toast.dark = function (content, options) {
1785
- return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$h({
1783
+ return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$b({
1786
1784
  theme: 'dark'
1787
1785
  }, options)));
1788
1786
  };
@@ -1839,7 +1837,7 @@ toast.update = function (toastId, options) {
1839
1837
  var oldOptions = toast.props,
1840
1838
  oldContent = toast.content;
1841
1839
 
1842
- var nextOptions = _extends$h({}, oldOptions, options, {
1840
+ var nextOptions = _extends$b({}, oldOptions, options, {
1843
1841
  toastId: options.toastId || toastId,
1844
1842
  updateId: generateToastId()
1845
1843
  });
@@ -3934,15 +3932,15 @@ function captureException(exception, captureContext) {
3934
3932
  return getCurrentHub().captureException(exception, { captureContext });
3935
3933
  }
3936
3934
 
3937
- var _g$4;
3938
- 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); }
3935
+ var _g$2;
3936
+ 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); }
3939
3937
  var SvgIcWarning = function SvgIcWarning(props) {
3940
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
3938
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
3941
3939
  xmlns: "http://www.w3.org/2000/svg",
3942
3940
  width: "1em",
3943
3941
  height: "1em",
3944
3942
  viewBox: "0 0 32 32"
3945
- }, props), _g$4 || (_g$4 = /*#__PURE__*/React__namespace.createElement("g", {
3943
+ }, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
3946
3944
  fill: "none",
3947
3945
  fillRule: "evenodd"
3948
3946
  }, /*#__PURE__*/React__namespace.createElement("path", {
@@ -10035,16 +10033,16 @@ var Modal = function (_a) {
10035
10033
  }, id: "popup", className: "".concat(rootClassName, " popup ").concat(modal ? 'modal' : ''), style: __assign({}, style) }, { children: children })), document.getElementById('visible-modal'));
10036
10034
  };
10037
10035
 
10038
- var _path$a;
10039
- 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); }
10036
+ var _path$6;
10037
+ 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); }
10040
10038
  var SvgIcCross = function SvgIcCross(props) {
10041
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
10039
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
10042
10040
  width: "1em",
10043
10041
  height: "1em",
10044
10042
  viewBox: "0 0 24 24",
10045
10043
  fill: "none",
10046
10044
  xmlns: "http://www.w3.org/2000/svg"
10047
- }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
10045
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
10048
10046
  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",
10049
10047
  fill: "#596168"
10050
10048
  })));
@@ -10194,7 +10192,8 @@ var RadioGroupItem = /** @class */ (function (_super) {
10194
10192
  RadioGroupItem.prototype.render = function () {
10195
10193
  var _this = this;
10196
10194
  return (jsxRuntime.jsx(RadioGroupContext.Consumer, { children: function (context) {
10197
- return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("label", __assign({ className: context.disabled ? 'form__radio-item disabled' : 'form__radio-item' }, { children: [jsxRuntime.jsx("input", { type: "radio", className: "form__checkbox", name: context.name, disabled: context.disabled, onChange: context.onChange, value: _this.props.value, checked: context.value === _this.props.value, "data-testid": _this.props.dataTestId }), jsxRuntime.jsxs("span", __assign({ className: "form__radio-item-content", "data-testid": "".concat(_this.props.dataTestId, "-span") }, { children: [jsxRuntime.jsx("span", { className: "radio__button" }), jsxRuntime.jsx("span", __assign({ className: "radio__title" }, { children: _this.props.children }))] }))] })) }));
10195
+ var _a;
10196
+ return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: jsxRuntime.jsxs("label", __assign({ className: (_this.props.disabled || context.disabled) ? 'form__radio-item disabled' : 'form__radio-item' }, { children: [jsxRuntime.jsx("input", { type: "radio", className: "form__checkbox", name: context.name, disabled: (_a = context.disabled) !== null && _a !== void 0 ? _a : _this.props.disabled, onChange: context.onChange, value: _this.props.value, checked: context.value === _this.props.value, "data-testid": _this.props.dataTestId }), jsxRuntime.jsxs("span", __assign({ className: "form__radio-item-content", "data-testid": "".concat(_this.props.dataTestId, "-span") }, { children: [jsxRuntime.jsx("span", { className: "radio__button" }), jsxRuntime.jsx("span", __assign({ className: "radio__title" }, { children: _this.props.children }))] }))] })) }));
10198
10197
  } }));
10199
10198
  };
10200
10199
  return RadioGroupItem;
@@ -14343,30 +14342,30 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
14343
14342
 
14344
14343
  var Tippy = index;
14345
14344
 
14346
- var _path$9;
14347
- 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); }
14345
+ var _path$5;
14346
+ 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); }
14348
14347
  var SvgIcHelp = function SvgIcHelp(props) {
14349
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
14348
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
14350
14349
  xmlns: "http://www.w3.org/2000/svg",
14351
14350
  width: "1em",
14352
14351
  height: "1em",
14353
14352
  viewBox: "0 0 24 24"
14354
- }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
14353
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
14355
14354
  fill: "#767D84",
14356
14355
  fillRule: "evenodd",
14357
14356
  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"
14358
14357
  })));
14359
14358
  };
14360
14359
 
14361
- var _path$8;
14362
- 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); }
14360
+ var _path$4;
14361
+ 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); }
14363
14362
  var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
14364
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
14363
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
14365
14364
  xmlns: "http://www.w3.org/2000/svg",
14366
14365
  viewBox: "0 0 17 16",
14367
14366
  width: "1em",
14368
14367
  height: "1em"
14369
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
14368
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
14370
14369
  fill: "#767D84",
14371
14370
  fillRule: "evenodd",
14372
14371
  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"
@@ -14417,16 +14416,16 @@ function TippyCustomized(props) {
14417
14416
  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 })));
14418
14417
  }
14419
14418
 
14420
- var _path$7, _circle, _path2$1;
14421
- 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); }
14419
+ var _path$3, _circle, _path2;
14420
+ 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); }
14422
14421
  var SvgInjectTag = function SvgInjectTag(props) {
14423
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
14422
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
14424
14423
  width: "1em",
14425
14424
  height: "1em",
14426
14425
  viewBox: "0 0 20 20",
14427
14426
  fill: "none",
14428
14427
  xmlns: "http://www.w3.org/2000/svg"
14429
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
14428
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
14430
14429
  d: "M10 10H3.333",
14431
14430
  stroke: "#596168",
14432
14431
  strokeWidth: 1.5,
@@ -14437,7 +14436,7 @@ var SvgInjectTag = function SvgInjectTag(props) {
14437
14436
  cy: 10,
14438
14437
  r: 1.667,
14439
14438
  fill: "#596168"
14440
- })), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
14439
+ })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
14441
14440
  d: "m4.415 6.403 5.347-3.008a.486.486 0 0 1 .476 0l5.348 3.008a.486.486 0 0 1 .247.424v5.994a.485.485 0 0 1-.247.424l-5.348 3.007a.485.485 0 0 1-.476 0l-5.347-3.007",
14442
14441
  stroke: "#596168",
14443
14442
  strokeWidth: 1.5,
@@ -14454,15 +14453,15 @@ function PropagateTagInfo(_a) {
14454
14453
  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" })] })) })));
14455
14454
  }
14456
14455
 
14457
- var _path$6;
14458
- 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); }
14456
+ var _path$2;
14457
+ 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); }
14459
14458
  var SvgIcInfoOutlined = function SvgIcInfoOutlined(props) {
14460
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
14459
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
14461
14460
  xmlns: "http://www.w3.org/2000/svg",
14462
14461
  width: "1em",
14463
14462
  height: "1em",
14464
14463
  viewBox: "0 0 20 20"
14465
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
14464
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
14466
14465
  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",
14467
14466
  fill: "#06C",
14468
14467
  fillRule: "evenodd"
@@ -14690,15 +14689,15 @@ var TagDetails = function (_a) {
14690
14689
  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" }) }))] })));
14691
14690
  };
14692
14691
 
14693
- var _path$5;
14694
- 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); }
14692
+ var _path$1;
14693
+ 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); }
14695
14694
  var SvgIcAdd = function SvgIcAdd(props) {
14696
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
14695
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
14697
14696
  xmlns: "http://www.w3.org/2000/svg",
14698
14697
  width: "1em",
14699
14698
  height: "1em",
14700
14699
  viewBox: "0 0 24 24"
14701
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
14700
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
14702
14701
  className: "ic-add_svg__fill-color",
14703
14702
  fill: "#999",
14704
14703
  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"
@@ -14816,8 +14815,8 @@ function ForceDeleteDialog(_a) {
14816
14815
  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?" })] }) })) }));
14817
14816
  }
14818
14817
 
14819
- function _extends$9() {
14820
- _extends$9 = Object.assign ? Object.assign.bind() : function (target) {
14818
+ function _extends$3() {
14819
+ _extends$3 = Object.assign ? Object.assign.bind() : function (target) {
14821
14820
  for (var i = 1; i < arguments.length; i++) {
14822
14821
  var source = arguments[i];
14823
14822
  for (var key in source) {
@@ -14828,7 +14827,7 @@ function _extends$9() {
14828
14827
  }
14829
14828
  return target;
14830
14829
  };
14831
- return _extends$9.apply(this, arguments);
14830
+ return _extends$3.apply(this, arguments);
14832
14831
  }
14833
14832
 
14834
14833
  /*
@@ -18369,7 +18368,7 @@ var Menu = function Menu(props) {
18369
18368
  getStyles = props.getStyles,
18370
18369
  innerRef = props.innerRef,
18371
18370
  innerProps = props.innerProps;
18372
- return jsx("div", _extends$9({
18371
+ return jsx("div", _extends$3({
18373
18372
  css: getStyles('menu', props),
18374
18373
  className: cx({
18375
18374
  menu: true
@@ -18401,7 +18400,7 @@ var MenuList = function MenuList(props) {
18401
18400
  innerProps = props.innerProps,
18402
18401
  innerRef = props.innerRef,
18403
18402
  isMulti = props.isMulti;
18404
- return jsx("div", _extends$9({
18403
+ return jsx("div", _extends$3({
18405
18404
  css: getStyles('menuList', props),
18406
18405
  className: cx({
18407
18406
  'menu-list': true,
@@ -18432,7 +18431,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
18432
18431
  cx = props.cx,
18433
18432
  getStyles = props.getStyles,
18434
18433
  innerProps = props.innerProps;
18435
- return jsx("div", _extends$9({
18434
+ return jsx("div", _extends$3({
18436
18435
  css: getStyles('noOptionsMessage', props),
18437
18436
  className: cx({
18438
18437
  'menu-notice': true,
@@ -18449,7 +18448,7 @@ var LoadingMessage = function LoadingMessage(props) {
18449
18448
  cx = props.cx,
18450
18449
  getStyles = props.getStyles,
18451
18450
  innerProps = props.innerProps;
18452
- return jsx("div", _extends$9({
18451
+ return jsx("div", _extends$3({
18453
18452
  css: getStyles('loadingMessage', props),
18454
18453
  className: cx({
18455
18454
  'menu-notice': true,
@@ -18537,7 +18536,7 @@ var MenuPortal = /*#__PURE__*/function (_Component2) {
18537
18536
  rect: rect
18538
18537
  }; // same wrapper element whether fixed or portalled
18539
18538
 
18540
- var menuWrapper = jsx("div", _extends$9({
18539
+ var menuWrapper = jsx("div", _extends$3({
18541
18540
  css: getStyles('menuPortal', state),
18542
18541
  className: cx({
18543
18542
  'menu-portal': true
@@ -18573,7 +18572,7 @@ var SelectContainer = function SelectContainer(props) {
18573
18572
  innerProps = props.innerProps,
18574
18573
  isDisabled = props.isDisabled,
18575
18574
  isRtl = props.isRtl;
18576
- return jsx("div", _extends$9({
18575
+ return jsx("div", _extends$3({
18577
18576
  css: getStyles('container', props),
18578
18577
  className: cx({
18579
18578
  '--is-disabled': isDisabled,
@@ -18608,7 +18607,7 @@ var ValueContainer = function ValueContainer(props) {
18608
18607
  isMulti = props.isMulti,
18609
18608
  getStyles = props.getStyles,
18610
18609
  hasValue = props.hasValue;
18611
- return jsx("div", _extends$9({
18610
+ return jsx("div", _extends$3({
18612
18611
  css: getStyles('valueContainer', props),
18613
18612
  className: cx({
18614
18613
  'value-container': true,
@@ -18634,7 +18633,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
18634
18633
  cx = props.cx,
18635
18634
  innerProps = props.innerProps,
18636
18635
  getStyles = props.getStyles;
18637
- return jsx("div", _extends$9({
18636
+ return jsx("div", _extends$3({
18638
18637
  css: getStyles('indicatorsContainer', props),
18639
18638
  className: cx({
18640
18639
  indicators: true
@@ -18665,7 +18664,7 @@ var Svg = function Svg(_ref) {
18665
18664
  var size = _ref.size,
18666
18665
  props = _objectWithoutProperties(_ref, _excluded$2);
18667
18666
 
18668
- return jsx("svg", _extends$9({
18667
+ return jsx("svg", _extends$3({
18669
18668
  height: size,
18670
18669
  width: size,
18671
18670
  viewBox: "0 0 20 20",
@@ -18676,14 +18675,14 @@ var Svg = function Svg(_ref) {
18676
18675
  };
18677
18676
 
18678
18677
  var CrossIcon = function CrossIcon(props) {
18679
- return jsx(Svg, _extends$9({
18678
+ return jsx(Svg, _extends$3({
18680
18679
  size: 20
18681
18680
  }, props), jsx("path", {
18682
18681
  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"
18683
18682
  }));
18684
18683
  };
18685
18684
  var DownChevron = function DownChevron(props) {
18686
- return jsx(Svg, _extends$9({
18685
+ return jsx(Svg, _extends$3({
18687
18686
  size: 20
18688
18687
  }, props), jsx("path", {
18689
18688
  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"
@@ -18716,7 +18715,7 @@ var DropdownIndicator = function DropdownIndicator(props) {
18716
18715
  cx = props.cx,
18717
18716
  getStyles = props.getStyles,
18718
18717
  innerProps = props.innerProps;
18719
- return jsx("div", _extends$9({
18718
+ return jsx("div", _extends$3({
18720
18719
  css: getStyles('dropdownIndicator', props),
18721
18720
  className: cx({
18722
18721
  indicator: true,
@@ -18731,7 +18730,7 @@ var ClearIndicator$1 = function ClearIndicator(props) {
18731
18730
  cx = props.cx,
18732
18731
  getStyles = props.getStyles,
18733
18732
  innerProps = props.innerProps;
18734
- return jsx("div", _extends$9({
18733
+ return jsx("div", _extends$3({
18735
18734
  css: getStyles('clearIndicator', props),
18736
18735
  className: cx({
18737
18736
  indicator: true,
@@ -18761,7 +18760,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
18761
18760
  cx = props.cx,
18762
18761
  getStyles = props.getStyles,
18763
18762
  innerProps = props.innerProps;
18764
- return jsx("span", _extends$9({}, innerProps, {
18763
+ return jsx("span", _extends$3({}, innerProps, {
18765
18764
  css: getStyles('indicatorSeparator', props),
18766
18765
  className: cx({
18767
18766
  'indicator-separator': true
@@ -18816,7 +18815,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
18816
18815
  getStyles = props.getStyles,
18817
18816
  innerProps = props.innerProps,
18818
18817
  isRtl = props.isRtl;
18819
- return jsx("div", _extends$9({
18818
+ return jsx("div", _extends$3({
18820
18819
  css: getStyles('loadingIndicator', props),
18821
18820
  className: cx({
18822
18821
  indicator: true,
@@ -18877,7 +18876,7 @@ var Control = function Control(props) {
18877
18876
  innerRef = props.innerRef,
18878
18877
  innerProps = props.innerProps,
18879
18878
  menuIsOpen = props.menuIsOpen;
18880
- return jsx("div", _extends$9({
18879
+ return jsx("div", _extends$3({
18881
18880
  ref: innerRef,
18882
18881
  css: getStyles('control', props),
18883
18882
  className: cx({
@@ -18909,12 +18908,12 @@ var Group = function Group(props) {
18909
18908
  label = props.label,
18910
18909
  theme = props.theme,
18911
18910
  selectProps = props.selectProps;
18912
- return jsx("div", _extends$9({
18911
+ return jsx("div", _extends$3({
18913
18912
  css: getStyles('group', props),
18914
18913
  className: cx({
18915
18914
  group: true
18916
18915
  }, className)
18917
- }, innerProps), jsx(Heading, _extends$9({}, headingProps, {
18916
+ }, innerProps), jsx(Heading, _extends$3({}, headingProps, {
18918
18917
  selectProps: selectProps,
18919
18918
  theme: theme,
18920
18919
  getStyles: getStyles,
@@ -18946,7 +18945,7 @@ var GroupHeading = function GroupHeading(props) {
18946
18945
  _cleanCommonProps.data;
18947
18946
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
18948
18947
 
18949
- return jsx("div", _extends$9({
18948
+ return jsx("div", _extends$3({
18950
18949
  css: getStyles('groupHeading', props),
18951
18950
  className: cx({
18952
18951
  'group-heading': true
@@ -19022,7 +19021,7 @@ var Input = function Input(props) {
19022
19021
  }, className),
19023
19022
  css: getStyles('input', props),
19024
19023
  "data-value": value || ''
19025
- }, jsx("input", _extends$9({
19024
+ }, jsx("input", _extends$3({
19026
19025
  className: cx({
19027
19026
  input: true
19028
19027
  }, inputClassName),
@@ -19092,7 +19091,7 @@ var MultiValueLabel = MultiValueGeneric;
19092
19091
  function MultiValueRemove$1(_ref5) {
19093
19092
  var children = _ref5.children,
19094
19093
  innerProps = _ref5.innerProps;
19095
- return jsx("div", _extends$9({
19094
+ return jsx("div", _extends$3({
19096
19095
  role: "button"
19097
19096
  }, innerProps), children || jsx(CrossIcon, {
19098
19097
  size: 14
@@ -19181,7 +19180,7 @@ var Option$1 = function Option(props) {
19181
19180
  isSelected = props.isSelected,
19182
19181
  innerRef = props.innerRef,
19183
19182
  innerProps = props.innerProps;
19184
- return jsx("div", _extends$9({
19183
+ return jsx("div", _extends$3({
19185
19184
  css: getStyles('option', props),
19186
19185
  className: cx({
19187
19186
  option: true,
@@ -19213,7 +19212,7 @@ var Placeholder = function Placeholder(props) {
19213
19212
  cx = props.cx,
19214
19213
  getStyles = props.getStyles,
19215
19214
  innerProps = props.innerProps;
19216
- return jsx("div", _extends$9({
19215
+ return jsx("div", _extends$3({
19217
19216
  css: getStyles('placeholder', props),
19218
19217
  className: cx({
19219
19218
  placeholder: true
@@ -19246,7 +19245,7 @@ var SingleValue = function SingleValue(props) {
19246
19245
  getStyles = props.getStyles,
19247
19246
  isDisabled = props.isDisabled,
19248
19247
  innerProps = props.innerProps;
19249
- return jsx("div", _extends$9({
19248
+ return jsx("div", _extends$3({
19250
19249
  css: getStyles('singleValue', props),
19251
19250
  className: cx({
19252
19251
  'single-value': true,
@@ -19494,7 +19493,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
19494
19493
  };
19495
19494
 
19496
19495
  var A11yText = function A11yText(props) {
19497
- return jsx("span", _extends$9({
19496
+ return jsx("span", _extends$3({
19498
19497
  css: _ref
19499
19498
  }, props));
19500
19499
  };
@@ -20030,7 +20029,7 @@ function DummyInput(_ref) {
20030
20029
  var innerRef = _ref.innerRef,
20031
20030
  props = _objectWithoutProperties(_ref, _excluded);
20032
20031
 
20033
- return jsx("input", _extends$9({
20032
+ return jsx("input", _extends$3({
20034
20033
  ref: innerRef
20035
20034
  }, props, {
20036
20035
  css: /*#__PURE__*/css$2({
@@ -21665,7 +21664,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21665
21664
 
21666
21665
  if (!isSearchable) {
21667
21666
  // use a dummy input to maintain focus/blur functionality
21668
- return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$9({
21667
+ return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$3({
21669
21668
  id: id,
21670
21669
  innerRef: this.getInputRef,
21671
21670
  onBlur: this.onInputBlur,
@@ -21679,7 +21678,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21679
21678
  }, ariaAttributes));
21680
21679
  }
21681
21680
 
21682
- return /*#__PURE__*/React__namespace.createElement(Input, _extends$9({}, commonProps, {
21681
+ return /*#__PURE__*/React__namespace.createElement(Input, _extends$3({}, commonProps, {
21683
21682
  autoCapitalize: "none",
21684
21683
  autoComplete: "off",
21685
21684
  autoCorrect: "off",
@@ -21723,7 +21722,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21723
21722
  isFocused = _this$state5.isFocused;
21724
21723
 
21725
21724
  if (!this.hasValue() || !controlShouldRenderValue) {
21726
- return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$9({}, commonProps, {
21725
+ return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$3({}, commonProps, {
21727
21726
  key: "placeholder",
21728
21727
  isDisabled: isDisabled,
21729
21728
  isFocused: isFocused,
@@ -21737,7 +21736,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21737
21736
  return selectValue.map(function (opt, index) {
21738
21737
  var isOptionFocused = opt === focusedValue;
21739
21738
  var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
21740
- return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$9({}, commonProps, {
21739
+ return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$3({}, commonProps, {
21741
21740
  components: {
21742
21741
  Container: MultiValueContainer,
21743
21742
  Label: MultiValueLabel,
@@ -21769,7 +21768,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21769
21768
  }
21770
21769
 
21771
21770
  var singleValue = selectValue[0];
21772
- return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$9({}, commonProps, {
21771
+ return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$3({}, commonProps, {
21773
21772
  data: singleValue,
21774
21773
  isDisabled: isDisabled
21775
21774
  }), this.formatOptionLabel(singleValue, 'value'));
@@ -21795,7 +21794,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21795
21794
  onTouchEnd: this.onClearIndicatorTouchEnd,
21796
21795
  'aria-hidden': 'true'
21797
21796
  };
21798
- return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$9({}, commonProps, {
21797
+ return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$3({}, commonProps, {
21799
21798
  innerProps: innerProps,
21800
21799
  isFocused: isFocused
21801
21800
  }));
@@ -21815,7 +21814,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21815
21814
  var innerProps = {
21816
21815
  'aria-hidden': 'true'
21817
21816
  };
21818
- return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$9({}, commonProps, {
21817
+ return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$3({}, commonProps, {
21819
21818
  innerProps: innerProps,
21820
21819
  isDisabled: isDisabled,
21821
21820
  isFocused: isFocused
@@ -21833,7 +21832,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21833
21832
  var commonProps = this.commonProps;
21834
21833
  var isDisabled = this.props.isDisabled;
21835
21834
  var isFocused = this.state.isFocused;
21836
- return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$9({}, commonProps, {
21835
+ return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$3({}, commonProps, {
21837
21836
  isDisabled: isDisabled,
21838
21837
  isFocused: isFocused
21839
21838
  }));
@@ -21853,7 +21852,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21853
21852
  onTouchEnd: this.onDropdownIndicatorTouchEnd,
21854
21853
  'aria-hidden': 'true'
21855
21854
  };
21856
- return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$9({}, commonProps, {
21855
+ return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$3({}, commonProps, {
21857
21856
  innerProps: innerProps,
21858
21857
  isDisabled: isDisabled,
21859
21858
  isFocused: isFocused
@@ -21916,7 +21915,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21916
21915
  onMouseOver: onHover,
21917
21916
  tabIndex: -1
21918
21917
  };
21919
- return /*#__PURE__*/React__namespace.createElement(Option, _extends$9({}, commonProps, {
21918
+ return /*#__PURE__*/React__namespace.createElement(Option, _extends$3({}, commonProps, {
21920
21919
  innerProps: innerProps,
21921
21920
  data: data,
21922
21921
  isDisabled: isDisabled,
@@ -21940,7 +21939,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21940
21939
  groupIndex = item.index;
21941
21940
  var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
21942
21941
  var headingId = "".concat(groupId, "-heading");
21943
- return /*#__PURE__*/React__namespace.createElement(Group, _extends$9({}, commonProps, {
21942
+ return /*#__PURE__*/React__namespace.createElement(Group, _extends$3({}, commonProps, {
21944
21943
  key: groupId,
21945
21944
  data: _data,
21946
21945
  options: options,
@@ -21979,12 +21978,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21979
21978
  menuPosition: menuPosition,
21980
21979
  menuShouldScrollIntoView: menuShouldScrollIntoView
21981
21980
  };
21982
- var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$9({}, commonProps, menuPlacementProps), function (_ref4) {
21981
+ var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$3({}, commonProps, menuPlacementProps), function (_ref4) {
21983
21982
  var ref = _ref4.ref,
21984
21983
  _ref4$placerProps = _ref4.placerProps,
21985
21984
  placement = _ref4$placerProps.placement,
21986
21985
  maxHeight = _ref4$placerProps.maxHeight;
21987
- return /*#__PURE__*/React__namespace.createElement(Menu, _extends$9({}, commonProps, menuPlacementProps, {
21986
+ return /*#__PURE__*/React__namespace.createElement(Menu, _extends$3({}, commonProps, menuPlacementProps, {
21988
21987
  innerRef: ref,
21989
21988
  innerProps: {
21990
21989
  onMouseDown: _this4.onMenuMouseDown,
@@ -21999,7 +21998,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21999
21998
  onBottomArrive: onMenuScrollToBottom,
22000
21999
  lockEnabled: menuShouldBlockScroll
22001
22000
  }, function (scrollTargetRef) {
22002
- return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$9({}, commonProps, {
22001
+ return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$3({}, commonProps, {
22003
22002
  innerRef: function innerRef(instance) {
22004
22003
  _this4.getMenuListRef(instance);
22005
22004
 
@@ -22014,7 +22013,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22014
22013
  // so we use the same component. the actual portalling logic is forked
22015
22014
  // within the component based on `menuPosition`
22016
22015
 
22017
- return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$9({}, commonProps, {
22016
+ return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$3({}, commonProps, {
22018
22017
  appendTo: menuPortalTarget,
22019
22018
  controlElement: this.controlRef,
22020
22019
  menuPlacement: menuPlacement,
@@ -22079,7 +22078,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22079
22078
  isFocused = _this$state6.isFocused,
22080
22079
  selectValue = _this$state6.selectValue;
22081
22080
  var focusableOptions = this.getFocusableOptions();
22082
- return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$9({}, commonProps, {
22081
+ return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$3({}, commonProps, {
22083
22082
  id: this.getElementId('live-region'),
22084
22083
  ariaSelection: ariaSelection,
22085
22084
  focusedOption: focusedOption,
@@ -22105,7 +22104,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22105
22104
  menuIsOpen = _this$props14.menuIsOpen;
22106
22105
  var isFocused = this.state.isFocused;
22107
22106
  var commonProps = this.commonProps = this.getCommonProps();
22108
- return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$9({}, commonProps, {
22107
+ return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$3({}, commonProps, {
22109
22108
  className: className,
22110
22109
  innerProps: {
22111
22110
  id: id,
@@ -22113,7 +22112,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22113
22112
  },
22114
22113
  isDisabled: isDisabled,
22115
22114
  isFocused: isFocused
22116
- }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$9({}, commonProps, {
22115
+ }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$3({}, commonProps, {
22117
22116
  innerRef: this.getControlRef,
22118
22117
  innerProps: {
22119
22118
  onMouseDown: this.onControlMouseDown,
@@ -22122,9 +22121,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22122
22121
  isDisabled: isDisabled,
22123
22122
  isFocused: isFocused,
22124
22123
  menuIsOpen: menuIsOpen
22125
- }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$9({}, commonProps, {
22124
+ }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$3({}, commonProps, {
22126
22125
  isDisabled: isDisabled
22127
- }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$9({}, commonProps, {
22126
+ }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$3({}, commonProps, {
22128
22127
  isDisabled: isDisabled
22129
22128
  }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
22130
22129
  }
@@ -22197,22 +22196,22 @@ Select$1.defaultProps = defaultProps;
22197
22196
 
22198
22197
  var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
22199
22198
  var baseSelectProps = useStateManager(props);
22200
- return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$9({
22199
+ return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$3({
22201
22200
  ref: ref
22202
22201
  }, baseSelectProps));
22203
22202
  });
22204
22203
 
22205
22204
  var Select = StateManagedSelect;
22206
22205
 
22207
- var _g$3;
22208
- 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); }
22206
+ var _g$1;
22207
+ 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); }
22209
22208
  var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
22210
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
22209
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
22211
22210
  xmlns: "http://www.w3.org/2000/svg",
22212
22211
  viewBox: "0 0 28 28",
22213
22212
  width: "1em",
22214
22213
  height: "1em"
22215
- }, props), _g$3 || (_g$3 = /*#__PURE__*/React__namespace.createElement("g", {
22214
+ }, props), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
22216
22215
  fill: "none",
22217
22216
  fillRule: "evenodd",
22218
22217
  transform: "translate(2 2)"
@@ -22228,15 +22227,15 @@ var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
22228
22227
  }))));
22229
22228
  };
22230
22229
 
22231
- var _path$4;
22232
- 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); }
22230
+ var _path;
22231
+ 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); }
22233
22232
  var SvgIcCheck = function SvgIcCheck(props) {
22234
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
22233
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
22235
22234
  xmlns: "http://www.w3.org/2000/svg",
22236
22235
  width: "1em",
22237
22236
  height: "1em",
22238
22237
  viewBox: "0 0 24 24"
22239
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
22238
+ }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
22240
22239
  stroke: "#06C",
22241
22240
  strokeLinecap: "round",
22242
22241
  strokeLinejoin: "round",
@@ -22247,15 +22246,15 @@ var SvgIcCheck = function SvgIcCheck(props) {
22247
22246
  })));
22248
22247
  };
22249
22248
 
22250
- var _g$2;
22251
- 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); }
22249
+ var _g;
22250
+ 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); }
22252
22251
  var SvgIcErrorMedium = function SvgIcErrorMedium(props) {
22253
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
22252
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
22254
22253
  xmlns: "http://www.w3.org/2000/svg",
22255
22254
  width: "1em",
22256
22255
  height: "1em",
22257
22256
  viewBox: "0 0 20 21"
22258
- }, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
22257
+ }, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
22259
22258
  fill: "none",
22260
22259
  fillRule: "evenodd"
22261
22260
  }, /*#__PURE__*/React__namespace.createElement("path", {
@@ -22352,13 +22351,7 @@ var getTeamListMin = function () {
22352
22351
  result: list,
22353
22352
  };
22354
22353
  });
22355
- };
22356
- function getUserRole(appName) {
22357
- return get("".concat(ROUTES.USER_CHECK_ROLE).concat(appName ? "?appName=".concat(appName) : ''));
22358
- }
22359
- function setImageTags(request, pipelineId, artifactId) {
22360
- return post("".concat(ROUTES.IMAGE_TAGGING, "/").concat(pipelineId, "/").concat(artifactId), request);
22361
- }
22354
+ };
22362
22355
 
22363
22356
  /*
22364
22357
  Valid States of Checkbox:
@@ -22517,27 +22510,6 @@ exports.ConsequenceAction = void 0;
22517
22510
  ConsequenceAction["ALLOW_FOREVER"] = "ALLOW_FOREVER";
22518
22511
  })(exports.ConsequenceAction || (exports.ConsequenceAction = {}));
22519
22512
 
22520
- var _g$1;
22521
- 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); }
22522
- var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
22523
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
22524
- xmlns: "http://www.w3.org/2000/svg",
22525
- width: "1em",
22526
- height: "1em",
22527
- viewBox: "0 0 32 32"
22528
- }, props), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
22529
- fill: "none",
22530
- fillRule: "evenodd"
22531
- }, /*#__PURE__*/React__namespace.createElement("path", {
22532
- d: "M0 0h32v32H0z"
22533
- }), /*#__PURE__*/React__namespace.createElement("path", {
22534
- fill: "#06C",
22535
- d: "M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667z"
22536
- }), /*#__PURE__*/React__namespace.createElement("path", {
22537
- fill: "#FFF",
22538
- d: "M16 14.667c.736 0 1.333.597 1.333 1.333v5.333a1.333 1.333 0 1 1-2.666 0V16c0-.736.597-1.333 1.333-1.333zm0-5.334A1.333 1.333 0 1 1 16 12a1.333 1.333 0 0 1 0-2.667z"
22539
- }))));
22540
- };
22541
22513
  var info = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2032%2032%22%3E%20%20%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%200h32v32H0z%22%2F%3E%20%20%20%20%20%20%20%20%3Cpath%20fill%3D%22%2306C%22%20d%3D%22M16%202.667C8.64%202.667%202.667%208.64%202.667%2016S8.64%2029.333%2016%2029.333%2029.333%2023.36%2029.333%2016%2023.36%202.667%2016%202.667z%22%2F%3E%20%20%20%20%20%20%20%20%3Cpath%20fill%3D%22%23FFF%22%20d%3D%22M16%2014.667c.736%200%201.333.597%201.333%201.333v5.333a1.333%201.333%200%201%201-2.666%200V16c0-.736.597-1.333%201.333-1.333zm0-5.334A1.333%201.333%200%201%201%2016%2012a1.333%201.333%200%200%201%200-2.667z%22%2F%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
22542
22514
 
22543
22515
  function DeleteComponent(_a) {
@@ -22599,425 +22571,6 @@ function DeleteComponent(_a) {
22599
22571
  return (jsxRuntime.jsxs("div", { children: [!showCannotDeleteDialogModal && renderDeleteDialog(), showCannotDeleteDialogModal && renderCannotDeleteDialogModal()] }));
22600
22572
  }
22601
22573
 
22602
- var _path$3;
22603
- 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); }
22604
- var SvgIcPencil = function SvgIcPencil(props) {
22605
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
22606
- width: "1em",
22607
- height: "1em",
22608
- viewBox: "0 0 20 20",
22609
- fill: "none",
22610
- xmlns: "http://www.w3.org/2000/svg"
22611
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
22612
- 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",
22613
- stroke: "#596168",
22614
- strokeWidth: 1.5,
22615
- strokeLinecap: "round",
22616
- strokeLinejoin: "round"
22617
- })));
22618
- };
22619
-
22620
- var _path$2, _path2, _path3;
22621
- 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); }
22622
- var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
22623
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
22624
- width: "1em",
22625
- height: "1em",
22626
- viewBox: "0 0 12 12",
22627
- fill: "none",
22628
- xmlns: "http://www.w3.org/2000/svg"
22629
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
22630
- d: "M3.742 4.674h-2.25v-2.25",
22631
- fill: "#767D84"
22632
- })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
22633
- d: "M3.742 4.674h-2.25v-2.25",
22634
- stroke: "#596168",
22635
- strokeWidth: 1.5,
22636
- strokeLinecap: "round",
22637
- strokeLinejoin: "round"
22638
- })), _path3 || (_path3 = /*#__PURE__*/React__namespace.createElement("path", {
22639
- d: "M3.083 8.917a4.125 4.125 0 1 0 0-5.834l-1.59 1.591",
22640
- stroke: "#596168",
22641
- strokeWidth: 1.5,
22642
- strokeLinecap: "round",
22643
- strokeLinejoin: "round"
22644
- })));
22645
- };
22646
-
22647
- var _path$1;
22648
- 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); }
22649
- var SvgIcMinus = function SvgIcMinus(props) {
22650
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
22651
- xmlns: "http://www.w3.org/2000/svg",
22652
- width: "1em",
22653
- height: "1em",
22654
- viewBox: "0 0 14 14"
22655
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
22656
- fill: "#959BA1",
22657
- className: "ic-minus_svg__fill-color",
22658
- fillRule: "evenodd",
22659
- d: "M10.5 7.583h-7a.582.582 0 1 1 0-1.166h7a.582.582 0 1 1 0 1.166z"
22660
- })));
22661
- };
22662
-
22663
- var _g;
22664
- 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); }
22665
- var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
22666
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
22667
- xmlns: "http://www.w3.org/2000/svg",
22668
- width: "1em",
22669
- height: "1em",
22670
- viewBox: "0 0 20 20"
22671
- }, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
22672
- fill: "none",
22673
- fillRule: "evenodd"
22674
- }, /*#__PURE__*/React__namespace.createElement("path", {
22675
- fill: "#FFF",
22676
- d: "M5 5h10v10H5z"
22677
- }), /*#__PURE__*/React__namespace.createElement("path", {
22678
- fill: "#F33E3E",
22679
- d: "M10 18.333c-4.6 0-8.333-3.733-8.333-8.333S5.4 1.667 10 1.667 18.333 5.4 18.333 10 14.6 18.333 10 18.333zm0-12.5a.833.833 0 0 0-.833.834V10a.833.833 0 0 0 1.666 0V6.667A.834.834 0 0 0 10 5.833zm0 6.667a.833.833 0 1 0 0 1.666.833.833 0 0 0 0-1.666z"
22680
- }))));
22681
- };
22682
-
22683
- var _path;
22684
- 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); }
22685
- var SvgIcEnter = function SvgIcEnter(props) {
22686
- return /*#__PURE__*/React__namespace.createElement("svg", _extends({
22687
- width: "1em",
22688
- height: "1em",
22689
- viewBox: "0 0 16 16",
22690
- fill: "none",
22691
- xmlns: "http://www.w3.org/2000/svg"
22692
- }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
22693
- 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",
22694
- fill: "#3B444C"
22695
- })));
22696
- };
22697
-
22698
- var ImageTagsContainer = function (_a) {
22699
- 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;
22700
- var _b = __read(React.useState(imageReleaseTags ? imageReleaseTags : []), 2), initialTags = _b[0], setInitialTags = _b[1];
22701
- var _c = __read(React.useState(imageComment ? imageComment.comment : ''), 2), initialDescription = _c[0], setInitialDescription = _c[1];
22702
- var _d = __read(React.useState(appReleaseTagNames ? appReleaseTagNames : []), 2), existingTags = _d[0], setExistingTags = _d[1];
22703
- var _e = __read(React.useState(imageComment ? imageComment.comment : ''), 2), newDescription = _e[0], setNewDescription = _e[1];
22704
- var _f = __read(React.useState(false), 2), isEditing = _f[0], setIsEditing = _f[1];
22705
- var _g = __read(React.useState(false), 2), showTagsWarning = _g[0], setShowTagsWarning = _g[1];
22706
- var _h = __read(React.useState(imageReleaseTags ? imageReleaseTags : []), 2), displayedTags = _h[0], setDisplayedTags = _h[1];
22707
- var _j = __read(React.useState(''), 2), tagErrorMessage = _j[0], setTagErrorMessage = _j[1];
22708
- var _k = __read(React.useState([]), 2), createTags = _k[0], setCreateTags = _k[1];
22709
- var _l = __read(React.useState([]), 2), softDeleteTags = _l[0], setSoftDeleteTags = _l[1];
22710
- var _m = __read(React.useState([]), 2), hardDeleteTags = _m[0], setHardDeleteTags = _m[1];
22711
- var _o = __read(React.useState(false), 2), isSuperAdmin = _o[0], setSuperAdmin = _o[1];
22712
- var _p = __read(React.useState(''), 2), descriptionValidationMessage = _p[0], setDescriptionValidationMessage = _p[1];
22713
- var _q = __read(React.useState(''), 2), textInput = _q[0], setTextInput = _q[1];
22714
- var _r = __read(React.useState(false), 2), saveData = _r[0], setSaveData = _r[1];
22715
- React.useEffect(function () {
22716
- initialise();
22717
- }, []);
22718
- React.useEffect(function () {
22719
- reInitState();
22720
- }, [imageReleaseTags, imageComment, tagsEditable]);
22721
- React.useEffect(function () {
22722
- setExistingTags(appReleaseTagNames ? appReleaseTagNames : []);
22723
- }, [appReleaseTagNames]);
22724
- React.useEffect(function () {
22725
- if (saveData) {
22726
- handleSave();
22727
- setSaveData(false);
22728
- }
22729
- }, [saveData]);
22730
- function initialise() {
22731
- var _a, _b;
22732
- return __awaiter(this, void 0, void 0, function () {
22733
- var userRole, superAdmin, err_1;
22734
- return __generator(this, function (_c) {
22735
- switch (_c.label) {
22736
- case 0:
22737
- _c.trys.push([0, 2, , 3]);
22738
- return [4 /*yield*/, getUserRole()];
22739
- case 1:
22740
- userRole = _c.sent();
22741
- superAdmin = (_b = (_a = userRole === null || userRole === void 0 ? void 0 : userRole.result) === null || _a === void 0 ? void 0 : _a.roles) === null || _b === void 0 ? void 0 : _b.includes('role:super-admin___');
22742
- setSuperAdmin(superAdmin);
22743
- return [3 /*break*/, 3];
22744
- case 2:
22745
- err_1 = _c.sent();
22746
- showError(err_1);
22747
- return [3 /*break*/, 3];
22748
- case 3: return [2 /*return*/];
22749
- }
22750
- });
22751
- });
22752
- }
22753
- var reInitState = function () {
22754
- if (forceReInit || !isEditing) {
22755
- setInitialTags(imageReleaseTags ? imageReleaseTags : []);
22756
- setInitialDescription(imageComment ? imageComment.comment : '');
22757
- setNewDescription(imageComment ? imageComment.comment : '');
22758
- setDisplayedTags(imageReleaseTags ? imageReleaseTags : []);
22759
- setIsEditing(false);
22760
- }
22761
- };
22762
- var handleEditClick = function () {
22763
- setIsEditing(!isEditing);
22764
- if (typeof toggleCardMode === 'function') {
22765
- toggleCardMode(artifactId);
22766
- }
22767
- };
22768
- var handleDescriptionChange = function (e) {
22769
- var description = e.target.value;
22770
- (description === null || description === void 0 ? void 0 : description.length) > 500
22771
- ? setDescriptionValidationMessage('comment length cannot exceed 500 characters')
22772
- : setDescriptionValidationMessage('');
22773
- setNewDescription(description);
22774
- };
22775
- var handleCancel = function () {
22776
- setDisplayedTags(initialTags);
22777
- setNewDescription(initialDescription);
22778
- setCreateTags([]);
22779
- setSoftDeleteTags([]);
22780
- setHardDeleteTags([]);
22781
- handleEditClick();
22782
- setShowTagsWarning(false);
22783
- setTagErrorMessage('');
22784
- };
22785
- var validateTag = function (lowercaseValue) {
22786
- if (lowercaseValue.length == 0 ||
22787
- lowercaseValue.length >= 128 ||
22788
- lowercaseValue[0] == '.' ||
22789
- lowercaseValue[0] == '-') {
22790
- setTagErrorMessage('tag name cannot be empty or exceed 128 characters or cannot start with . or -');
22791
- return;
22792
- }
22793
- setTagErrorMessage('');
22794
- var isTagExistsInExistingTags = existingTags.includes(lowercaseValue);
22795
- var isTagExistsInDisplayedTags = false;
22796
- for (var i = 0; i < (displayedTags === null || displayedTags === void 0 ? void 0 : displayedTags.length); i++) {
22797
- if (displayedTags[i].tagName.toLowerCase() === lowercaseValue)
22798
- isTagExistsInDisplayedTags = true;
22799
- }
22800
- if (isTagExistsInExistingTags || isTagExistsInDisplayedTags || lowercaseValue === 'latest') {
22801
- setTagErrorMessage('This tag is already being used in this application');
22802
- return;
22803
- }
22804
- };
22805
- var handleTagCreate = function (newValue) {
22806
- var lowercaseValue = newValue.toLowerCase().trim();
22807
- validateTag(lowercaseValue);
22808
- var newTag = {
22809
- id: 0,
22810
- tagName: lowercaseValue,
22811
- appId: 0,
22812
- deleted: false,
22813
- artifactId: 0,
22814
- duplicateTag: false,
22815
- };
22816
- setCreateTags(__spreadArray(__spreadArray([], __read(createTags), false), [newTag], false));
22817
- setDisplayedTags(__spreadArray(__spreadArray([], __read(displayedTags), false), [newTag], false));
22818
- setShowTagsWarning(true);
22819
- setTextInput('');
22820
- };
22821
- var handleTagSoftDelete = function (index) {
22822
- var updatedTags = __spreadArray([], __read(displayedTags), false);
22823
- updatedTags[index] = __assign(__assign({}, updatedTags[index]), { deleted: !updatedTags[index].deleted });
22824
- var updatedTag = updatedTags[index];
22825
- var updatedSoftDeleteTags = __spreadArray([], __read(softDeleteTags), false);
22826
- var tagIndex = updatedSoftDeleteTags.findIndex(function (tag) { return tag.tagName === updatedTag.tagName; });
22827
- if (tagIndex !== -1) {
22828
- // Tag already exists in softDeleteTags array, remove it
22829
- updatedSoftDeleteTags.splice(tagIndex, 1);
22830
- }
22831
- else {
22832
- // Tag doesn't exist in softDeleteTags array, add it
22833
- updatedSoftDeleteTags.push(updatedTag);
22834
- }
22835
- setDisplayedTags(updatedTags);
22836
- setSoftDeleteTags(updatedSoftDeleteTags);
22837
- };
22838
- var handleTagHardDelete = function (index) {
22839
- var deletedTag = displayedTags[index];
22840
- var updatedCreateTags = createTags.filter(function (tag) { return tag.tagName !== deletedTag.tagName; });
22841
- setCreateTags(updatedCreateTags);
22842
- var updatedDisplayedTags = __spreadArray([], __read(displayedTags), false);
22843
- updatedDisplayedTags.splice(index, 1);
22844
- setDisplayedTags(updatedDisplayedTags);
22845
- var updatedExistingTags = existingTags.filter(function (tag) { return tag.toLowerCase() !== deletedTag.tagName.toLowerCase(); });
22846
- setExistingTags(updatedExistingTags);
22847
- if (deletedTag.id !== 0) {
22848
- var updatedHardDeleteTags = __spreadArray(__spreadArray([], __read(hardDeleteTags), false), [deletedTag], false);
22849
- setHardDeleteTags(updatedHardDeleteTags);
22850
- }
22851
- };
22852
- var errorStateHandling = function (err) {
22853
- err.forEach(function (_a) {
22854
- var userMessage = _a.userMessage;
22855
- var tagList = createTags.map(function (tags) {
22856
- var _a;
22857
- if ((_a = userMessage === null || userMessage === void 0 ? void 0 : userMessage.appReleaseTags) === null || _a === void 0 ? void 0 : _a.includes(tags.tagName)) {
22858
- return __assign(__assign({}, tags), { duplicateTag: true });
22859
- }
22860
- return tags;
22861
- });
22862
- setCreateTags(tagList);
22863
- var displayList = displayedTags.map(function (obj) {
22864
- var matchingTag = tagList.find(function (tag) { return tag.tagName === obj.tagName; });
22865
- if (matchingTag) {
22866
- return __assign(__assign({}, obj), { duplicateTag: matchingTag.duplicateTag });
22867
- }
22868
- return obj;
22869
- });
22870
- setDisplayedTags(displayList);
22871
- });
22872
- };
22873
- var handleSave = function () { return __awaiter(void 0, void 0, void 0, function () {
22874
- var payload;
22875
- return __generator(this, function (_a) {
22876
- if (tagErrorMessage)
22877
- return [2 /*return*/];
22878
- payload = {
22879
- createTags: createTags,
22880
- softDeleteTags: softDeleteTags,
22881
- imageComment: {
22882
- id: 0,
22883
- comment: newDescription.trim(),
22884
- artifactId: 0,
22885
- },
22886
- hardDeleteTags: hardDeleteTags,
22887
- };
22888
- // set loading state true
22889
- setImageTags(payload, ciPipelineId, artifactId)
22890
- .then(function (res) {
22891
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
22892
- 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 ({
22893
- id: tag.id,
22894
- tagName: tag.tagName,
22895
- deleted: tag.deleted,
22896
- appId: 0,
22897
- artifactId: 0,
22898
- }); });
22899
- if (setAppReleaseTagNames) {
22900
- setAppReleaseTagNames((_c = res.result) === null || _c === void 0 ? void 0 : _c.appReleaseTags);
22901
- }
22902
- if (setTagsEditable) {
22903
- setTagsEditable((_d = res.result) === null || _d === void 0 ? void 0 : _d.tagsEditable);
22904
- }
22905
- setInitialTags(tags);
22906
- setInitialDescription((_f = (_e = res.result) === null || _e === void 0 ? void 0 : _e.imageComment) === null || _f === void 0 ? void 0 : _f.comment);
22907
- setDisplayedTags(tags);
22908
- setNewDescription((_h = (_g = res.result) === null || _g === void 0 ? void 0 : _g.imageComment) === null || _h === void 0 ? void 0 : _h.comment);
22909
- setCreateTags([]);
22910
- setSoftDeleteTags([]);
22911
- setHardDeleteTags([]);
22912
- handleEditClick();
22913
- setShowTagsWarning(false);
22914
- setTagErrorMessage('');
22915
- if (updateCurrentAppMaterial)
22916
- updateCurrentAppMaterial(artifactId, tags, (_j = res.result) === null || _j === void 0 ? void 0 : _j.imageComment);
22917
- })
22918
- .catch(function (err) {
22919
- var _a, _b, _c, _d, _e, _f, _g;
22920
- // Fix toast message
22921
- if ((_d = (_c = (_b = (_a = err.errors) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.userMessage) === null || _c === void 0 ? void 0 : _c.appReleaseTags) === null || _d === void 0 ? void 0 : _d.length) {
22922
- var customError = __assign(__assign({}, err), { errors: [
22923
- __assign(__assign({}, (_e = err.errors) === null || _e === void 0 ? void 0 : _e[0]), { userMessage: (_g = (_f = err.errors) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.internalMessage }),
22924
- ] });
22925
- toast.error(customError);
22926
- errorStateHandling(err.errors);
22927
- }
22928
- else {
22929
- showError(err);
22930
- }
22931
- });
22932
- return [2 /*return*/];
22933
- });
22934
- }); };
22935
- var renderInfoCard = function () {
22936
- return (jsxRuntime.jsx(TippyCustomized, __assign({ theme: exports.TippyTheme.white, className: "w-300 fcv-5", placement: "right", Icon: SvgIcHelp, heading: "Release tags", showCloseButton: true, trigger: "click", interactive: true, documentationLinkText: "View Documentation", additionalContent: getBuildContextAdditionalContent() }, { children: jsxRuntime.jsx("div", __assign({ className: "icon-dim-16 fcn-5 ml-8 cursor" }, { children: jsxRuntime.jsx(SvgIcHelpOutline, {}) })) })));
22937
- };
22938
- var getBuildContextAdditionalContent = function () {
22939
- return (jsxRuntime.jsxs("div", __assign({ className: "h-250 fs-13 dc__overflow-scroll p-12" }, { children: [jsxRuntime.jsx("div", { children: "Release tags allow you to tag container images with readable and relatable tags eg. v1.0." }), jsxRuntime.jsxs("ul", __assign({ className: "pl-20 mt-8" }, { children: [jsxRuntime.jsx("li", { children: "A release tag can only be added if a workflow has CD pipelines deploying to Production environments." }), jsxRuntime.jsx("li", { children: "Multiple tags can be added to an image." }), jsxRuntime.jsx("li", { children: "Multiple images in an application cannot have the same tag." }), jsxRuntime.jsx("li", { children: "Tags cannot be deleted once saved. Although, you can soft delete a tag if an unwanted tag has been added." })] }))] })));
22940
- };
22941
- var creatableRef = React.useRef(null);
22942
- if (newDescription === '' && displayedTags.length === 0 && !isEditing) {
22943
- return tagsEditable ? (jsxRuntime.jsx("div", __assign({ className: "bcn-0 mt-8 add-image-button" }, { children: jsxRuntime.jsx(AddImageButton, { handleEditClick: handleEditClick }) }))) : (jsxRuntime.jsx("div", {}));
22944
- }
22945
- var handleKeydown = function (event) {
22946
- if (event.key === 'Enter' && event.target.value.trim()) {
22947
- handleTagCreate(event.target.value.trim());
22948
- }
22949
- };
22950
- var setInputValue = function (e) {
22951
- e.target.value && validateTag(e.target.value);
22952
- setTextInput(e.target.value);
22953
- };
22954
- var enterTagCreate = function (e) {
22955
- stopPropagation(e);
22956
- if (textInput.trim()) {
22957
- handleTagCreate(textInput.trim());
22958
- }
22959
- };
22960
- var onClickSave = function () {
22961
- if (textInput.trim()) {
22962
- handleTagCreate(textInput);
22963
- }
22964
- setSaveData(true);
22965
- };
22966
- return (jsxRuntime.jsx("div", __assign({ className: "mt-8" }, { children: isEditing && tagsEditable ? (jsxRuntime.jsxs("div", __assign({ className: "bcn-0 dc__border-top-n1 " }, { children: [jsxRuntime.jsxs("div", __assign({ className: "cn-7 mt-12 flex left" }, { children: [jsxRuntime.jsx("span", { children: "Release tags (eg. v1.0)" }), jsxRuntime.jsx("div", __assign({ className: "flex row ml-0" }, { children: renderInfoCard() }))] })), jsxRuntime.jsxs("div", __assign({ className: "mt-6 dc__position-rel-imp", "data-testid": "add-tag-text-area" }, { children: [jsxRuntime.jsx("input", { className: "form__input", value: textInput, onChange: setInputValue, placeholder: "Type a tag and press enter", onKeyDown: handleKeydown, ref: creatableRef }), textInput.length > 0 && (jsxRuntime.jsxs("div", __assign({ onClick: enterTagCreate, className: "dc__position-abs bcn-0 flex cursor pt-2 pb-2 pr-4 pl-4 br-2 cn-7 dc__border dc__border-bottom-2", style: {
22967
- top: '50%',
22968
- fontFamily: 'monospace',
22969
- right: '8px',
22970
- transform: 'translateY(-50%)',
22971
- } }, { children: [jsxRuntime.jsx(SvgIcEnter, { className: "icon-dim-16 mr-4" }), "Enter"] })))] })), tagErrorMessage && (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: tagErrorMessage }))] }))), jsxRuntime.jsx("div", __assign({ className: "flex-wrap mt-8 flex left" }, { children: displayedTags === null || displayedTags === void 0 ? void 0 : displayedTags.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) {
22972
- stopPropagation(e);
22973
- handleTagSoftDelete(index);
22974
- }, onHardDeleteClick: function (e) {
22975
- stopPropagation(e);
22976
- handleTagHardDelete(index);
22977
- }, 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", 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) {
22978
- stopPropagation(e);
22979
- handleCancel();
22980
- } }, { 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) {
22981
- stopPropagation(e);
22982
- onClickSave();
22983
- } }, { 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", { children: [initialDescription && jsxRuntime.jsx("div", __assign({ className: "mb-6 fs-13" }, { 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) {
22984
- stopPropagation(e);
22985
- handleTagSoftDelete(index);
22986
- }, onHardDeleteClick: function (e) {
22987
- stopPropagation(e);
22988
- handleTagHardDelete(index);
22989
- }, tagId: tag.id, softDeleteTags: softDeleteTags, isSuperAdmin: isSuperAdmin, duplicateTag: tag === null || tag === void 0 ? void 0 : tag.duplicateTag, hideHardDelete: hideHardDelete }, tag === null || tag === void 0 ? void 0 : tag.id)); }) }))] }) })), jsxRuntime.jsx("div", __assign({ className: "mt-8 mr-6 icon-dim-16" }, { children: tagsEditable && (jsxRuntime.jsx(SvgIcPencil, { className: "icon-dim-16 image-tags-container-edit__icon cursor", "data-testid": "edit-tags-icon", onClick: function (e) {
22990
- stopPropagation(e);
22991
- handleEditClick();
22992
- } })) }))] }))) })));
22993
- };
22994
- var ImageTagButton = function (_a) {
22995
- var text = _a.text, isSoftDeleted = _a.isSoftDeleted, isEditing = _a.isEditing, onSoftDeleteClick = _a.onSoftDeleteClick, onHardDeleteClick = _a.onHardDeleteClick, tagId = _a.tagId, softDeleteTags = _a.softDeleteTags, isSuperAdmin = _a.isSuperAdmin, duplicateTag = _a.duplicateTag, hideHardDelete = _a.hideHardDelete;
22996
- var IconComponent = isSoftDeleted ? SvgIcArrowCounterClockwise : SvgIcMinus;
22997
- var isInSoftDeleteTags = isSoftDeleted && softDeleteTags.some(function (tag) { return tag.tagName === text; });
22998
- var canTagBeHardDelete = tagId === 0 || (isSuperAdmin && !hideHardDelete);
22999
- var tabColor = function () {
23000
- if (duplicateTag) {
23001
- return 'cr-5 bcr-1 er-2';
23002
- }
23003
- else if (isSoftDeleted) {
23004
- return 'cy-7 bcy-1 dc__strike-through ey-2';
23005
- }
23006
- else {
23007
- return 'cn-9';
23008
- }
23009
- };
23010
- return (jsxRuntime.jsxs("div", __assign({ className: "br-4 en-2 bw-1 mr-8 bcn-0 mb-4 pt-2 pr-8 pb-2 pl-8 tag-class flex ".concat(isEditing ? 'icon-hover' : '', " ").concat(tabColor()) }, { children: [duplicateTag ? (jsxRuntime.jsx(SvgIcErrorExclamation, { className: "icon-dim-12 mr-4" })) : (jsxRuntime.jsx(Tippy, __assign({ className: "default-tt", arrow: true, placement: "top", content: isInSoftDeleteTags ? 'Restore tag' : 'Soft delete tag' }, { children: jsxRuntime.jsx("div", __assign({ className: "action-icon mr-4 lh-16 pt-3 ".concat(isInSoftDeleteTags || (tagId !== 0 && !isSoftDeleted) ? 'show-icon' : '') }, { children: jsxRuntime.jsx(IconComponent, { className: "icon-dim-12 cursor".concat(isSoftDeleted ? 'scn-6' : 'fcn-6', " "), "data-testid": "".concat(text, "-tag-soft-delete"), onClick: onSoftDeleteClick }) })) }))), text, jsxRuntime.jsx(Tippy, __assign({ className: "default-tt", arrow: true, placement: "top", content: "Remove tag" }, { children: jsxRuntime.jsx("div", __assign({ className: "action-icon ml-4 lh-16 pt-3 ".concat(canTagBeHardDelete ? 'show-icon' : '') }, { children: jsxRuntime.jsx(SvgIcCross, { className: "icon-dim-12 fcn-6 cursor", "data-testid": "".concat(text, "-tag-hard-delete"), onClick: onHardDeleteClick }) })) }))] })));
23011
- };
23012
- var AddImageButton = function (_a) {
23013
- var handleEditClick = _a.handleEditClick;
23014
- var handleClick = function (e) {
23015
- stopPropagation(e);
23016
- handleEditClick();
23017
- };
23018
- return (jsxRuntime.jsx("div", __assign({ className: "add-tag-button flex pt-12 pr-12", "data-testid": "add-tags-button", onClick: handleClick }, { children: jsxRuntime.jsxs("div", __assign({ className: "lh-16 flex" }, { children: [jsxRuntime.jsx(SvgIcAdd, { className: "icon-dim-16 cn-6" }), jsxRuntime.jsx("span", __assign({ className: "cn-7" }, { children: "Add tags/comment" }))] })) })));
23019
- };
23020
-
23021
22574
  exports.BreadCrumb = BreadCrumb;
23022
22575
  exports.BreadcrumbStore = Store;
23023
22576
  exports.BuildStageVariable = BuildStageVariable;
@@ -23044,8 +22597,6 @@ exports.ErrorScreenNotAuthorized = ErrorScreenNotAuthorized;
23044
22597
  exports.ForceDeleteDialog = ForceDeleteDialog;
23045
22598
  exports.GenericEmptyState = GenericEmptyState;
23046
22599
  exports.Host = Host;
23047
- exports.ImageTagButton = ImageTagButton;
23048
- exports.ImageTagsContainer = ImageTagsContainer;
23049
22600
  exports.InfoColourBar = InfoColourBar;
23050
22601
  exports.Modal = Modal;
23051
22602
  exports.MultiValueChipContainer = MultiValueChipContainer;
@@ -23089,14 +22640,12 @@ exports.getEmptyArrayOfLength = getEmptyArrayOfLength;
23089
22640
  exports.getLoginInfo = getLoginInfo;
23090
22641
  exports.getRandomColor = getRandomColor;
23091
22642
  exports.getTeamListMin = getTeamListMin;
23092
- exports.getUserRole = getUserRole;
23093
22643
  exports.handleUTCTime = handleUTCTime;
23094
22644
  exports.multiSelectStyles = multiSelectStyles;
23095
22645
  exports.noop = noop$1;
23096
22646
  exports.not = not;
23097
22647
  exports.post = post;
23098
22648
  exports.put = put;
23099
- exports.setImageTags = setImageTags;
23100
22649
  exports.showError = showError;
23101
22650
  exports.sortCallback = sortCallback;
23102
22651
  exports.stopPropagation = stopPropagation;