@devtron-labs/devtron-fe-common-lib 0.0.10-beta-8 → 0.0.10-beta-12

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
@@ -510,15 +510,15 @@ function styleInject(css, ref) {
510
510
  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
511
  styleInject(css_248z$6);
512
512
 
513
- var _g$4;
514
- 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); }
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); }
515
515
  var SvgIcProgressing = function SvgIcProgressing(props) {
516
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
516
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
517
517
  xmlns: "http://www.w3.org/2000/svg",
518
518
  viewBox: "0 0 24 24",
519
519
  width: "1em",
520
520
  height: "1em"
521
- }, props), _g$4 || (_g$4 = /*#__PURE__*/React__namespace.createElement("g", {
521
+ }, props), _g$5 || (_g$5 = /*#__PURE__*/React__namespace.createElement("g", {
522
522
  fill: "none"
523
523
  }, /*#__PURE__*/React__namespace.createElement("animateTransform", {
524
524
  attributeName: "transform",
@@ -565,8 +565,8 @@ EmptyState.Loading = Loading;
565
565
 
566
566
  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
567
 
568
- function _extends$f() {
569
- _extends$f = Object.assign || function (target) {
568
+ function _extends$h() {
569
+ _extends$h = Object.assign || function (target) {
570
570
  for (var i = 1; i < arguments.length; i++) {
571
571
  var source = arguments[i];
572
572
 
@@ -580,7 +580,7 @@ function _extends$f() {
580
580
  return target;
581
581
  };
582
582
 
583
- return _extends$f.apply(this, arguments);
583
+ return _extends$h.apply(this, arguments);
584
584
  }
585
585
 
586
586
  function _objectWithoutPropertiesLoose$2(source, excluded) {
@@ -1306,7 +1306,7 @@ function ProgressBar(_ref) {
1306
1306
  isIn = _ref.isIn,
1307
1307
  theme = _ref.theme;
1308
1308
 
1309
- var style = _extends$f({}, userStyle, {
1309
+ var style = _extends$h({}, userStyle, {
1310
1310
  animationDuration: delay + "ms",
1311
1311
  animationPlayState: isRunning ? 'running' : 'paused',
1312
1312
  opacity: hide ? 0 : 1
@@ -1583,9 +1583,9 @@ var ToastContainer = function ToastContainer(props) {
1583
1583
  ,
1584
1584
  id: containerId
1585
1585
  }, getToastToRender(function (position, toastList) {
1586
- var containerStyle = !toastList.length ? _extends$f({}, style, {
1586
+ var containerStyle = !toastList.length ? _extends$h({}, style, {
1587
1587
  pointerEvents: 'none'
1588
- }) : _extends$f({}, style);
1588
+ }) : _extends$h({}, style);
1589
1589
  return React.createElement("div", {
1590
1590
  className: getClassName(position),
1591
1591
  style: containerStyle,
@@ -1692,7 +1692,7 @@ function dispatchToast(content, options) {
1692
1692
 
1693
1693
 
1694
1694
  function mergeOptions(type, options) {
1695
- return _extends$f({}, options, {
1695
+ return _extends$h({}, options, {
1696
1696
  type: options && options.type || type,
1697
1697
  toastId: getToastId(options)
1698
1698
  });
@@ -1709,7 +1709,7 @@ function toast(content, options) {
1709
1709
  }
1710
1710
 
1711
1711
  toast.loading = function (content, options) {
1712
- return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$f({
1712
+ return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$h({
1713
1713
  isLoading: true,
1714
1714
  autoClose: false,
1715
1715
  closeOnClick: false,
@@ -1725,7 +1725,7 @@ function handlePromise(promise, _ref2, options) {
1725
1725
  var id;
1726
1726
 
1727
1727
  if (pending) {
1728
- id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$f({}, options, pending));
1728
+ id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$h({}, options, pending));
1729
1729
  }
1730
1730
 
1731
1731
  var resetParams = {
@@ -1744,7 +1744,7 @@ function handlePromise(promise, _ref2, options) {
1744
1744
  return;
1745
1745
  }
1746
1746
 
1747
- var baseParams = _extends$f({
1747
+ var baseParams = _extends$h({
1748
1748
  type: type
1749
1749
  }, resetParams, options, {
1750
1750
  data: result
@@ -1755,10 +1755,10 @@ function handlePromise(promise, _ref2, options) {
1755
1755
  } : input; // if the id is set we know that it's an update
1756
1756
 
1757
1757
  if (id) {
1758
- toast.update(id, _extends$f({}, baseParams, params));
1758
+ toast.update(id, _extends$h({}, baseParams, params));
1759
1759
  } else {
1760
1760
  // using toast.promise without loading
1761
- toast(params.render, _extends$f({}, baseParams, params));
1761
+ toast(params.render, _extends$h({}, baseParams, params));
1762
1762
  }
1763
1763
 
1764
1764
  return result;
@@ -1782,7 +1782,7 @@ toast.warning = /*#__PURE__*/createToastByType(TYPE.WARNING);
1782
1782
  toast.warn = toast.warning;
1783
1783
 
1784
1784
  toast.dark = function (content, options) {
1785
- return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$f({
1785
+ return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$h({
1786
1786
  theme: 'dark'
1787
1787
  }, options)));
1788
1788
  };
@@ -1839,7 +1839,7 @@ toast.update = function (toastId, options) {
1839
1839
  var oldOptions = toast.props,
1840
1840
  oldContent = toast.content;
1841
1841
 
1842
- var nextOptions = _extends$f({}, oldOptions, options, {
1842
+ var nextOptions = _extends$h({}, oldOptions, options, {
1843
1843
  toastId: options.toastId || toastId,
1844
1844
  updateId: generateToastId()
1845
1845
  });
@@ -3934,15 +3934,15 @@ function captureException(exception, captureContext) {
3934
3934
  return getCurrentHub().captureException(exception, { captureContext });
3935
3935
  }
3936
3936
 
3937
- var _g$3;
3938
- 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); }
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); }
3939
3939
  var SvgIcWarning = function SvgIcWarning(props) {
3940
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
3940
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
3941
3941
  xmlns: "http://www.w3.org/2000/svg",
3942
3942
  width: "1em",
3943
3943
  height: "1em",
3944
3944
  viewBox: "0 0 32 32"
3945
- }, props), _g$3 || (_g$3 = /*#__PURE__*/React__namespace.createElement("g", {
3945
+ }, props), _g$4 || (_g$4 = /*#__PURE__*/React__namespace.createElement("g", {
3946
3946
  fill: "none",
3947
3947
  fillRule: "evenodd"
3948
3948
  }, /*#__PURE__*/React__namespace.createElement("path", {
@@ -10035,16 +10035,16 @@ var Modal = function (_a) {
10035
10035
  }, id: "popup", className: "".concat(rootClassName, " popup ").concat(modal ? 'modal' : ''), style: __assign({}, style) }, { children: children })), document.getElementById('visible-modal'));
10036
10036
  };
10037
10037
 
10038
- var _path$9;
10039
- 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); }
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); }
10040
10040
  var SvgIcCross = function SvgIcCross(props) {
10041
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
10041
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
10042
10042
  width: "1em",
10043
10043
  height: "1em",
10044
10044
  viewBox: "0 0 24 24",
10045
10045
  fill: "none",
10046
10046
  xmlns: "http://www.w3.org/2000/svg"
10047
- }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
10047
+ }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
10048
10048
  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
10049
  fill: "#596168"
10050
10050
  })));
@@ -14343,30 +14343,30 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
14343
14343
 
14344
14344
  var Tippy = index;
14345
14345
 
14346
- var _path$8;
14347
- 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); }
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); }
14348
14348
  var SvgIcHelp = function SvgIcHelp(props) {
14349
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
14349
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
14350
14350
  xmlns: "http://www.w3.org/2000/svg",
14351
14351
  width: "1em",
14352
14352
  height: "1em",
14353
14353
  viewBox: "0 0 24 24"
14354
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
14354
+ }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
14355
14355
  fill: "#767D84",
14356
14356
  fillRule: "evenodd",
14357
14357
  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
14358
  })));
14359
14359
  };
14360
14360
 
14361
- var _path$7;
14362
- 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); }
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); }
14363
14363
  var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
14364
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
14364
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
14365
14365
  xmlns: "http://www.w3.org/2000/svg",
14366
14366
  viewBox: "0 0 17 16",
14367
14367
  width: "1em",
14368
14368
  height: "1em"
14369
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
14369
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
14370
14370
  fill: "#767D84",
14371
14371
  fillRule: "evenodd",
14372
14372
  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 +14417,16 @@ function TippyCustomized(props) {
14417
14417
  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
14418
  }
14419
14419
 
14420
- var _path$6, _circle, _path2$1;
14421
- 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); }
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); }
14422
14422
  var SvgInjectTag = function SvgInjectTag(props) {
14423
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
14423
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
14424
14424
  width: "1em",
14425
14425
  height: "1em",
14426
14426
  viewBox: "0 0 20 20",
14427
14427
  fill: "none",
14428
14428
  xmlns: "http://www.w3.org/2000/svg"
14429
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
14429
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
14430
14430
  d: "M10 10H3.333",
14431
14431
  stroke: "#596168",
14432
14432
  strokeWidth: 1.5,
@@ -14454,15 +14454,15 @@ function PropagateTagInfo(_a) {
14454
14454
  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
14455
  }
14456
14456
 
14457
- var _path$5;
14458
- 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); }
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); }
14459
14459
  var SvgIcInfoOutlined = function SvgIcInfoOutlined(props) {
14460
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
14460
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
14461
14461
  xmlns: "http://www.w3.org/2000/svg",
14462
14462
  width: "1em",
14463
14463
  height: "1em",
14464
14464
  viewBox: "0 0 20 20"
14465
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
14465
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
14466
14466
  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
14467
  fill: "#06C",
14468
14468
  fillRule: "evenodd"
@@ -14690,15 +14690,15 @@ var TagDetails = function (_a) {
14690
14690
  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
14691
  };
14692
14692
 
14693
- var _path$4;
14694
- 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); }
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); }
14695
14695
  var SvgIcAdd = function SvgIcAdd(props) {
14696
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
14696
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
14697
14697
  xmlns: "http://www.w3.org/2000/svg",
14698
14698
  width: "1em",
14699
14699
  height: "1em",
14700
14700
  viewBox: "0 0 24 24"
14701
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
14701
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
14702
14702
  className: "ic-add_svg__fill-color",
14703
14703
  fill: "#999",
14704
14704
  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 +14816,8 @@ function ForceDeleteDialog(_a) {
14816
14816
  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
14817
  }
14818
14818
 
14819
- function _extends$7() {
14820
- _extends$7 = Object.assign ? Object.assign.bind() : function (target) {
14819
+ function _extends$9() {
14820
+ _extends$9 = Object.assign ? Object.assign.bind() : function (target) {
14821
14821
  for (var i = 1; i < arguments.length; i++) {
14822
14822
  var source = arguments[i];
14823
14823
  for (var key in source) {
@@ -14828,7 +14828,7 @@ function _extends$7() {
14828
14828
  }
14829
14829
  return target;
14830
14830
  };
14831
- return _extends$7.apply(this, arguments);
14831
+ return _extends$9.apply(this, arguments);
14832
14832
  }
14833
14833
 
14834
14834
  /*
@@ -18369,7 +18369,7 @@ var Menu = function Menu(props) {
18369
18369
  getStyles = props.getStyles,
18370
18370
  innerRef = props.innerRef,
18371
18371
  innerProps = props.innerProps;
18372
- return jsx("div", _extends$7({
18372
+ return jsx("div", _extends$9({
18373
18373
  css: getStyles('menu', props),
18374
18374
  className: cx({
18375
18375
  menu: true
@@ -18401,7 +18401,7 @@ var MenuList = function MenuList(props) {
18401
18401
  innerProps = props.innerProps,
18402
18402
  innerRef = props.innerRef,
18403
18403
  isMulti = props.isMulti;
18404
- return jsx("div", _extends$7({
18404
+ return jsx("div", _extends$9({
18405
18405
  css: getStyles('menuList', props),
18406
18406
  className: cx({
18407
18407
  'menu-list': true,
@@ -18432,7 +18432,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
18432
18432
  cx = props.cx,
18433
18433
  getStyles = props.getStyles,
18434
18434
  innerProps = props.innerProps;
18435
- return jsx("div", _extends$7({
18435
+ return jsx("div", _extends$9({
18436
18436
  css: getStyles('noOptionsMessage', props),
18437
18437
  className: cx({
18438
18438
  'menu-notice': true,
@@ -18449,7 +18449,7 @@ var LoadingMessage = function LoadingMessage(props) {
18449
18449
  cx = props.cx,
18450
18450
  getStyles = props.getStyles,
18451
18451
  innerProps = props.innerProps;
18452
- return jsx("div", _extends$7({
18452
+ return jsx("div", _extends$9({
18453
18453
  css: getStyles('loadingMessage', props),
18454
18454
  className: cx({
18455
18455
  'menu-notice': true,
@@ -18537,7 +18537,7 @@ var MenuPortal = /*#__PURE__*/function (_Component2) {
18537
18537
  rect: rect
18538
18538
  }; // same wrapper element whether fixed or portalled
18539
18539
 
18540
- var menuWrapper = jsx("div", _extends$7({
18540
+ var menuWrapper = jsx("div", _extends$9({
18541
18541
  css: getStyles('menuPortal', state),
18542
18542
  className: cx({
18543
18543
  'menu-portal': true
@@ -18573,7 +18573,7 @@ var SelectContainer = function SelectContainer(props) {
18573
18573
  innerProps = props.innerProps,
18574
18574
  isDisabled = props.isDisabled,
18575
18575
  isRtl = props.isRtl;
18576
- return jsx("div", _extends$7({
18576
+ return jsx("div", _extends$9({
18577
18577
  css: getStyles('container', props),
18578
18578
  className: cx({
18579
18579
  '--is-disabled': isDisabled,
@@ -18608,7 +18608,7 @@ var ValueContainer = function ValueContainer(props) {
18608
18608
  isMulti = props.isMulti,
18609
18609
  getStyles = props.getStyles,
18610
18610
  hasValue = props.hasValue;
18611
- return jsx("div", _extends$7({
18611
+ return jsx("div", _extends$9({
18612
18612
  css: getStyles('valueContainer', props),
18613
18613
  className: cx({
18614
18614
  'value-container': true,
@@ -18634,7 +18634,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
18634
18634
  cx = props.cx,
18635
18635
  innerProps = props.innerProps,
18636
18636
  getStyles = props.getStyles;
18637
- return jsx("div", _extends$7({
18637
+ return jsx("div", _extends$9({
18638
18638
  css: getStyles('indicatorsContainer', props),
18639
18639
  className: cx({
18640
18640
  indicators: true
@@ -18644,7 +18644,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
18644
18644
 
18645
18645
  var _templateObject;
18646
18646
 
18647
- var _excluded$2$1 = ["size"];
18647
+ var _excluded$2 = ["size"];
18648
18648
 
18649
18649
  function _EMOTION_STRINGIFIED_CSS_ERROR__$2() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
18650
18650
 
@@ -18663,9 +18663,9 @@ var _ref2$1 = process.env.NODE_ENV === "production" ? {
18663
18663
  // ==============================
18664
18664
  var Svg = function Svg(_ref) {
18665
18665
  var size = _ref.size,
18666
- props = _objectWithoutProperties(_ref, _excluded$2$1);
18666
+ props = _objectWithoutProperties(_ref, _excluded$2);
18667
18667
 
18668
- return jsx("svg", _extends$7({
18668
+ return jsx("svg", _extends$9({
18669
18669
  height: size,
18670
18670
  width: size,
18671
18671
  viewBox: "0 0 20 20",
@@ -18676,14 +18676,14 @@ var Svg = function Svg(_ref) {
18676
18676
  };
18677
18677
 
18678
18678
  var CrossIcon = function CrossIcon(props) {
18679
- return jsx(Svg, _extends$7({
18679
+ return jsx(Svg, _extends$9({
18680
18680
  size: 20
18681
18681
  }, props), jsx("path", {
18682
18682
  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
18683
  }));
18684
18684
  };
18685
18685
  var DownChevron = function DownChevron(props) {
18686
- return jsx(Svg, _extends$7({
18686
+ return jsx(Svg, _extends$9({
18687
18687
  size: 20
18688
18688
  }, props), jsx("path", {
18689
18689
  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 +18716,7 @@ var DropdownIndicator = function DropdownIndicator(props) {
18716
18716
  cx = props.cx,
18717
18717
  getStyles = props.getStyles,
18718
18718
  innerProps = props.innerProps;
18719
- return jsx("div", _extends$7({
18719
+ return jsx("div", _extends$9({
18720
18720
  css: getStyles('dropdownIndicator', props),
18721
18721
  className: cx({
18722
18722
  indicator: true,
@@ -18731,7 +18731,7 @@ var ClearIndicator$1 = function ClearIndicator(props) {
18731
18731
  cx = props.cx,
18732
18732
  getStyles = props.getStyles,
18733
18733
  innerProps = props.innerProps;
18734
- return jsx("div", _extends$7({
18734
+ return jsx("div", _extends$9({
18735
18735
  css: getStyles('clearIndicator', props),
18736
18736
  className: cx({
18737
18737
  indicator: true,
@@ -18761,7 +18761,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
18761
18761
  cx = props.cx,
18762
18762
  getStyles = props.getStyles,
18763
18763
  innerProps = props.innerProps;
18764
- return jsx("span", _extends$7({}, innerProps, {
18764
+ return jsx("span", _extends$9({}, innerProps, {
18765
18765
  css: getStyles('indicatorSeparator', props),
18766
18766
  className: cx({
18767
18767
  'indicator-separator': true
@@ -18816,7 +18816,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
18816
18816
  getStyles = props.getStyles,
18817
18817
  innerProps = props.innerProps,
18818
18818
  isRtl = props.isRtl;
18819
- return jsx("div", _extends$7({
18819
+ return jsx("div", _extends$9({
18820
18820
  css: getStyles('loadingIndicator', props),
18821
18821
  className: cx({
18822
18822
  indicator: true,
@@ -18877,7 +18877,7 @@ var Control = function Control(props) {
18877
18877
  innerRef = props.innerRef,
18878
18878
  innerProps = props.innerProps,
18879
18879
  menuIsOpen = props.menuIsOpen;
18880
- return jsx("div", _extends$7({
18880
+ return jsx("div", _extends$9({
18881
18881
  ref: innerRef,
18882
18882
  css: getStyles('control', props),
18883
18883
  className: cx({
@@ -18909,12 +18909,12 @@ var Group = function Group(props) {
18909
18909
  label = props.label,
18910
18910
  theme = props.theme,
18911
18911
  selectProps = props.selectProps;
18912
- return jsx("div", _extends$7({
18912
+ return jsx("div", _extends$9({
18913
18913
  css: getStyles('group', props),
18914
18914
  className: cx({
18915
18915
  group: true
18916
18916
  }, className)
18917
- }, innerProps), jsx(Heading, _extends$7({}, headingProps, {
18917
+ }, innerProps), jsx(Heading, _extends$9({}, headingProps, {
18918
18918
  selectProps: selectProps,
18919
18919
  theme: theme,
18920
18920
  getStyles: getStyles,
@@ -18946,7 +18946,7 @@ var GroupHeading = function GroupHeading(props) {
18946
18946
  _cleanCommonProps.data;
18947
18947
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
18948
18948
 
18949
- return jsx("div", _extends$7({
18949
+ return jsx("div", _extends$9({
18950
18950
  css: getStyles('groupHeading', props),
18951
18951
  className: cx({
18952
18952
  'group-heading': true
@@ -19022,7 +19022,7 @@ var Input = function Input(props) {
19022
19022
  }, className),
19023
19023
  css: getStyles('input', props),
19024
19024
  "data-value": value || ''
19025
- }, jsx("input", _extends$7({
19025
+ }, jsx("input", _extends$9({
19026
19026
  className: cx({
19027
19027
  input: true
19028
19028
  }, inputClassName),
@@ -19092,7 +19092,7 @@ var MultiValueLabel = MultiValueGeneric;
19092
19092
  function MultiValueRemove$1(_ref5) {
19093
19093
  var children = _ref5.children,
19094
19094
  innerProps = _ref5.innerProps;
19095
- return jsx("div", _extends$7({
19095
+ return jsx("div", _extends$9({
19096
19096
  role: "button"
19097
19097
  }, innerProps), children || jsx(CrossIcon, {
19098
19098
  size: 14
@@ -19181,7 +19181,7 @@ var Option$1 = function Option(props) {
19181
19181
  isSelected = props.isSelected,
19182
19182
  innerRef = props.innerRef,
19183
19183
  innerProps = props.innerProps;
19184
- return jsx("div", _extends$7({
19184
+ return jsx("div", _extends$9({
19185
19185
  css: getStyles('option', props),
19186
19186
  className: cx({
19187
19187
  option: true,
@@ -19213,7 +19213,7 @@ var Placeholder = function Placeholder(props) {
19213
19213
  cx = props.cx,
19214
19214
  getStyles = props.getStyles,
19215
19215
  innerProps = props.innerProps;
19216
- return jsx("div", _extends$7({
19216
+ return jsx("div", _extends$9({
19217
19217
  css: getStyles('placeholder', props),
19218
19218
  className: cx({
19219
19219
  placeholder: true
@@ -19246,7 +19246,7 @@ var SingleValue = function SingleValue(props) {
19246
19246
  getStyles = props.getStyles,
19247
19247
  isDisabled = props.isDisabled,
19248
19248
  innerProps = props.innerProps;
19249
- return jsx("div", _extends$7({
19249
+ return jsx("div", _extends$9({
19250
19250
  css: getStyles('singleValue', props),
19251
19251
  className: cx({
19252
19252
  'single-value': true,
@@ -19341,7 +19341,7 @@ function _slicedToArray(arr, i) {
19341
19341
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
19342
19342
  }
19343
19343
 
19344
- var _excluded$2 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
19344
+ var _excluded$1 = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
19345
19345
  function useStateManager(_ref) {
19346
19346
  var _ref$defaultInputValu = _ref.defaultInputValue,
19347
19347
  defaultInputValue = _ref$defaultInputValu === void 0 ? '' : _ref$defaultInputValu,
@@ -19356,7 +19356,7 @@ function useStateManager(_ref) {
19356
19356
  propsOnMenuClose = _ref.onMenuClose,
19357
19357
  propsOnMenuOpen = _ref.onMenuOpen,
19358
19358
  propsValue = _ref.value,
19359
- restSelectProps = _objectWithoutProperties(_ref, _excluded$2);
19359
+ restSelectProps = _objectWithoutProperties(_ref, _excluded$1);
19360
19360
 
19361
19361
  var _useState = React.useState(propsInputValue !== undefined ? propsInputValue : defaultInputValue),
19362
19362
  _useState2 = _slicedToArray(_useState, 2),
@@ -19494,7 +19494,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
19494
19494
  };
19495
19495
 
19496
19496
  var A11yText = function A11yText(props) {
19497
- return jsx("span", _extends$7({
19497
+ return jsx("span", _extends$9({
19498
19498
  css: _ref
19499
19499
  }, props));
19500
19500
  };
@@ -20025,12 +20025,12 @@ var createFilter = function createFilter(config) {
20025
20025
  };
20026
20026
  };
20027
20027
 
20028
- var _excluded$1 = ["innerRef"];
20028
+ var _excluded = ["innerRef"];
20029
20029
  function DummyInput(_ref) {
20030
20030
  var innerRef = _ref.innerRef,
20031
- props = _objectWithoutProperties(_ref, _excluded$1);
20031
+ props = _objectWithoutProperties(_ref, _excluded);
20032
20032
 
20033
- return jsx("input", _extends$7({
20033
+ return jsx("input", _extends$9({
20034
20034
  ref: innerRef
20035
20035
  }, props, {
20036
20036
  css: /*#__PURE__*/css$2({
@@ -21665,7 +21665,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21665
21665
 
21666
21666
  if (!isSearchable) {
21667
21667
  // use a dummy input to maintain focus/blur functionality
21668
- return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$7({
21668
+ return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$9({
21669
21669
  id: id,
21670
21670
  innerRef: this.getInputRef,
21671
21671
  onBlur: this.onInputBlur,
@@ -21679,7 +21679,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21679
21679
  }, ariaAttributes));
21680
21680
  }
21681
21681
 
21682
- return /*#__PURE__*/React__namespace.createElement(Input, _extends$7({}, commonProps, {
21682
+ return /*#__PURE__*/React__namespace.createElement(Input, _extends$9({}, commonProps, {
21683
21683
  autoCapitalize: "none",
21684
21684
  autoComplete: "off",
21685
21685
  autoCorrect: "off",
@@ -21723,7 +21723,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21723
21723
  isFocused = _this$state5.isFocused;
21724
21724
 
21725
21725
  if (!this.hasValue() || !controlShouldRenderValue) {
21726
- return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$7({}, commonProps, {
21726
+ return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$9({}, commonProps, {
21727
21727
  key: "placeholder",
21728
21728
  isDisabled: isDisabled,
21729
21729
  isFocused: isFocused,
@@ -21737,7 +21737,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21737
21737
  return selectValue.map(function (opt, index) {
21738
21738
  var isOptionFocused = opt === focusedValue;
21739
21739
  var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
21740
- return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$7({}, commonProps, {
21740
+ return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$9({}, commonProps, {
21741
21741
  components: {
21742
21742
  Container: MultiValueContainer,
21743
21743
  Label: MultiValueLabel,
@@ -21769,7 +21769,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21769
21769
  }
21770
21770
 
21771
21771
  var singleValue = selectValue[0];
21772
- return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$7({}, commonProps, {
21772
+ return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$9({}, commonProps, {
21773
21773
  data: singleValue,
21774
21774
  isDisabled: isDisabled
21775
21775
  }), this.formatOptionLabel(singleValue, 'value'));
@@ -21795,7 +21795,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21795
21795
  onTouchEnd: this.onClearIndicatorTouchEnd,
21796
21796
  'aria-hidden': 'true'
21797
21797
  };
21798
- return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$7({}, commonProps, {
21798
+ return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$9({}, commonProps, {
21799
21799
  innerProps: innerProps,
21800
21800
  isFocused: isFocused
21801
21801
  }));
@@ -21815,7 +21815,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21815
21815
  var innerProps = {
21816
21816
  'aria-hidden': 'true'
21817
21817
  };
21818
- return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$7({}, commonProps, {
21818
+ return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$9({}, commonProps, {
21819
21819
  innerProps: innerProps,
21820
21820
  isDisabled: isDisabled,
21821
21821
  isFocused: isFocused
@@ -21833,7 +21833,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21833
21833
  var commonProps = this.commonProps;
21834
21834
  var isDisabled = this.props.isDisabled;
21835
21835
  var isFocused = this.state.isFocused;
21836
- return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$7({}, commonProps, {
21836
+ return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$9({}, commonProps, {
21837
21837
  isDisabled: isDisabled,
21838
21838
  isFocused: isFocused
21839
21839
  }));
@@ -21853,7 +21853,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21853
21853
  onTouchEnd: this.onDropdownIndicatorTouchEnd,
21854
21854
  'aria-hidden': 'true'
21855
21855
  };
21856
- return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$7({}, commonProps, {
21856
+ return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$9({}, commonProps, {
21857
21857
  innerProps: innerProps,
21858
21858
  isDisabled: isDisabled,
21859
21859
  isFocused: isFocused
@@ -21916,7 +21916,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21916
21916
  onMouseOver: onHover,
21917
21917
  tabIndex: -1
21918
21918
  };
21919
- return /*#__PURE__*/React__namespace.createElement(Option, _extends$7({}, commonProps, {
21919
+ return /*#__PURE__*/React__namespace.createElement(Option, _extends$9({}, commonProps, {
21920
21920
  innerProps: innerProps,
21921
21921
  data: data,
21922
21922
  isDisabled: isDisabled,
@@ -21940,7 +21940,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21940
21940
  groupIndex = item.index;
21941
21941
  var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
21942
21942
  var headingId = "".concat(groupId, "-heading");
21943
- return /*#__PURE__*/React__namespace.createElement(Group, _extends$7({}, commonProps, {
21943
+ return /*#__PURE__*/React__namespace.createElement(Group, _extends$9({}, commonProps, {
21944
21944
  key: groupId,
21945
21945
  data: _data,
21946
21946
  options: options,
@@ -21979,12 +21979,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21979
21979
  menuPosition: menuPosition,
21980
21980
  menuShouldScrollIntoView: menuShouldScrollIntoView
21981
21981
  };
21982
- var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$7({}, commonProps, menuPlacementProps), function (_ref4) {
21982
+ var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$9({}, commonProps, menuPlacementProps), function (_ref4) {
21983
21983
  var ref = _ref4.ref,
21984
21984
  _ref4$placerProps = _ref4.placerProps,
21985
21985
  placement = _ref4$placerProps.placement,
21986
21986
  maxHeight = _ref4$placerProps.maxHeight;
21987
- return /*#__PURE__*/React__namespace.createElement(Menu, _extends$7({}, commonProps, menuPlacementProps, {
21987
+ return /*#__PURE__*/React__namespace.createElement(Menu, _extends$9({}, commonProps, menuPlacementProps, {
21988
21988
  innerRef: ref,
21989
21989
  innerProps: {
21990
21990
  onMouseDown: _this4.onMenuMouseDown,
@@ -21999,7 +21999,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21999
21999
  onBottomArrive: onMenuScrollToBottom,
22000
22000
  lockEnabled: menuShouldBlockScroll
22001
22001
  }, function (scrollTargetRef) {
22002
- return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$7({}, commonProps, {
22002
+ return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$9({}, commonProps, {
22003
22003
  innerRef: function innerRef(instance) {
22004
22004
  _this4.getMenuListRef(instance);
22005
22005
 
@@ -22014,7 +22014,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22014
22014
  // so we use the same component. the actual portalling logic is forked
22015
22015
  // within the component based on `menuPosition`
22016
22016
 
22017
- return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$7({}, commonProps, {
22017
+ return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$9({}, commonProps, {
22018
22018
  appendTo: menuPortalTarget,
22019
22019
  controlElement: this.controlRef,
22020
22020
  menuPlacement: menuPlacement,
@@ -22079,7 +22079,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22079
22079
  isFocused = _this$state6.isFocused,
22080
22080
  selectValue = _this$state6.selectValue;
22081
22081
  var focusableOptions = this.getFocusableOptions();
22082
- return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$7({}, commonProps, {
22082
+ return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$9({}, commonProps, {
22083
22083
  id: this.getElementId('live-region'),
22084
22084
  ariaSelection: ariaSelection,
22085
22085
  focusedOption: focusedOption,
@@ -22105,7 +22105,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22105
22105
  menuIsOpen = _this$props14.menuIsOpen;
22106
22106
  var isFocused = this.state.isFocused;
22107
22107
  var commonProps = this.commonProps = this.getCommonProps();
22108
- return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$7({}, commonProps, {
22108
+ return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$9({}, commonProps, {
22109
22109
  className: className,
22110
22110
  innerProps: {
22111
22111
  id: id,
@@ -22113,7 +22113,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22113
22113
  },
22114
22114
  isDisabled: isDisabled,
22115
22115
  isFocused: isFocused
22116
- }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$7({}, commonProps, {
22116
+ }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$9({}, commonProps, {
22117
22117
  innerRef: this.getControlRef,
22118
22118
  innerProps: {
22119
22119
  onMouseDown: this.onControlMouseDown,
@@ -22122,9 +22122,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22122
22122
  isDisabled: isDisabled,
22123
22123
  isFocused: isFocused,
22124
22124
  menuIsOpen: menuIsOpen
22125
- }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$7({}, commonProps, {
22125
+ }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$9({}, commonProps, {
22126
22126
  isDisabled: isDisabled
22127
- }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$7({}, commonProps, {
22127
+ }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$9({}, commonProps, {
22128
22128
  isDisabled: isDisabled
22129
22129
  }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
22130
22130
  }
@@ -22197,22 +22197,22 @@ Select$1.defaultProps = defaultProps;
22197
22197
 
22198
22198
  var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
22199
22199
  var baseSelectProps = useStateManager(props);
22200
- return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$7({
22200
+ return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$9({
22201
22201
  ref: ref
22202
22202
  }, baseSelectProps));
22203
22203
  });
22204
22204
 
22205
22205
  var Select = StateManagedSelect;
22206
22206
 
22207
- var _g$2;
22208
- 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); }
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); }
22209
22209
  var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
22210
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
22210
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
22211
22211
  xmlns: "http://www.w3.org/2000/svg",
22212
22212
  viewBox: "0 0 28 28",
22213
22213
  width: "1em",
22214
22214
  height: "1em"
22215
- }, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
22215
+ }, props), _g$3 || (_g$3 = /*#__PURE__*/React__namespace.createElement("g", {
22216
22216
  fill: "none",
22217
22217
  fillRule: "evenodd",
22218
22218
  transform: "translate(2 2)"
@@ -22228,15 +22228,15 @@ var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
22228
22228
  }))));
22229
22229
  };
22230
22230
 
22231
- var _path$3;
22232
- 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); }
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); }
22233
22233
  var SvgIcCheck = function SvgIcCheck(props) {
22234
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
22234
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
22235
22235
  xmlns: "http://www.w3.org/2000/svg",
22236
22236
  width: "1em",
22237
22237
  height: "1em",
22238
22238
  viewBox: "0 0 24 24"
22239
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
22239
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
22240
22240
  stroke: "#06C",
22241
22241
  strokeLinecap: "round",
22242
22242
  strokeLinejoin: "round",
@@ -22247,15 +22247,15 @@ var SvgIcCheck = function SvgIcCheck(props) {
22247
22247
  })));
22248
22248
  };
22249
22249
 
22250
- var _g$1;
22251
- 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); }
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); }
22252
22252
  var SvgIcErrorMedium = function SvgIcErrorMedium(props) {
22253
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
22253
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
22254
22254
  xmlns: "http://www.w3.org/2000/svg",
22255
22255
  width: "1em",
22256
22256
  height: "1em",
22257
22257
  viewBox: "0 0 20 21"
22258
- }, props), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
22258
+ }, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
22259
22259
  fill: "none",
22260
22260
  fillRule: "evenodd"
22261
22261
  }, /*#__PURE__*/React__namespace.createElement("path", {
@@ -22517,15 +22517,15 @@ exports.ConsequenceAction = void 0;
22517
22517
  ConsequenceAction["ALLOW_FOREVER"] = "ALLOW_FOREVER";
22518
22518
  })(exports.ConsequenceAction || (exports.ConsequenceAction = {}));
22519
22519
 
22520
- var _g;
22521
- 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); }
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
22522
  var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
22523
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
22523
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
22524
22524
  xmlns: "http://www.w3.org/2000/svg",
22525
22525
  width: "1em",
22526
22526
  height: "1em",
22527
22527
  viewBox: "0 0 32 32"
22528
- }, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
22528
+ }, props), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
22529
22529
  fill: "none",
22530
22530
  fillRule: "evenodd"
22531
22531
  }, /*#__PURE__*/React__namespace.createElement("path", {
@@ -22599,118 +22599,16 @@ function DeleteComponent(_a) {
22599
22599
  return (jsxRuntime.jsxs("div", { children: [!showCannotDeleteDialogModal && renderDeleteDialog(), showCannotDeleteDialogModal && renderCannotDeleteDialogModal()] }));
22600
22600
  }
22601
22601
 
22602
- var _excluded = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"];
22603
-
22604
- var compareOption = function compareOption() {
22605
- var inputValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
22606
- var option = arguments.length > 1 ? arguments[1] : undefined;
22607
- var accessors = arguments.length > 2 ? arguments[2] : undefined;
22608
- var candidate = String(inputValue).toLowerCase();
22609
- var optionValue = String(accessors.getOptionValue(option)).toLowerCase();
22610
- var optionLabel = String(accessors.getOptionLabel(option)).toLowerCase();
22611
- return optionValue === candidate || optionLabel === candidate;
22612
- };
22613
-
22614
- var builtins = {
22615
- formatCreateLabel: function formatCreateLabel(inputValue) {
22616
- return "Create \"".concat(inputValue, "\"");
22617
- },
22618
- isValidNewOption: function isValidNewOption(inputValue, selectValue, selectOptions, accessors) {
22619
- return !(!inputValue || selectValue.some(function (option) {
22620
- return compareOption(inputValue, option, accessors);
22621
- }) || selectOptions.some(function (option) {
22622
- return compareOption(inputValue, option, accessors);
22623
- }));
22624
- },
22625
- getNewOptionData: function getNewOptionData(inputValue, optionLabel) {
22626
- return {
22627
- label: optionLabel,
22628
- value: inputValue,
22629
- __isNew__: true
22630
- };
22631
- }
22632
- };
22633
- function useCreatable(_ref) {
22634
- var _ref$allowCreateWhile = _ref.allowCreateWhileLoading,
22635
- allowCreateWhileLoading = _ref$allowCreateWhile === void 0 ? false : _ref$allowCreateWhile,
22636
- _ref$createOptionPosi = _ref.createOptionPosition,
22637
- createOptionPosition = _ref$createOptionPosi === void 0 ? 'last' : _ref$createOptionPosi,
22638
- _ref$formatCreateLabe = _ref.formatCreateLabel,
22639
- formatCreateLabel = _ref$formatCreateLabe === void 0 ? builtins.formatCreateLabel : _ref$formatCreateLabe,
22640
- _ref$isValidNewOption = _ref.isValidNewOption,
22641
- isValidNewOption = _ref$isValidNewOption === void 0 ? builtins.isValidNewOption : _ref$isValidNewOption,
22642
- _ref$getNewOptionData = _ref.getNewOptionData,
22643
- getNewOptionData = _ref$getNewOptionData === void 0 ? builtins.getNewOptionData : _ref$getNewOptionData,
22644
- onCreateOption = _ref.onCreateOption,
22645
- _ref$options = _ref.options,
22646
- propsOptions = _ref$options === void 0 ? [] : _ref$options,
22647
- propsOnChange = _ref.onChange,
22648
- restSelectProps = _objectWithoutProperties(_ref, _excluded);
22649
-
22650
- var _restSelectProps$getO = restSelectProps.getOptionValue,
22651
- getOptionValue$1$1 = _restSelectProps$getO === void 0 ? getOptionValue$1 : _restSelectProps$getO,
22652
- _restSelectProps$getO2 = restSelectProps.getOptionLabel,
22653
- getOptionLabel$1$1 = _restSelectProps$getO2 === void 0 ? getOptionLabel$1 : _restSelectProps$getO2,
22654
- inputValue = restSelectProps.inputValue,
22655
- isLoading = restSelectProps.isLoading,
22656
- isMulti = restSelectProps.isMulti,
22657
- value = restSelectProps.value,
22658
- name = restSelectProps.name;
22659
- var newOption = React.useMemo(function () {
22660
- return isValidNewOption(inputValue, cleanValue(value), propsOptions, {
22661
- getOptionValue: getOptionValue$1$1,
22662
- getOptionLabel: getOptionLabel$1$1
22663
- }) ? getNewOptionData(inputValue, formatCreateLabel(inputValue)) : undefined;
22664
- }, [formatCreateLabel, getNewOptionData, getOptionLabel$1$1, getOptionValue$1$1, inputValue, isValidNewOption, propsOptions, value]);
22665
- var options = React.useMemo(function () {
22666
- return (allowCreateWhileLoading || !isLoading) && newOption ? createOptionPosition === 'first' ? [newOption].concat(_toConsumableArray(propsOptions)) : [].concat(_toConsumableArray(propsOptions), [newOption]) : propsOptions;
22667
- }, [allowCreateWhileLoading, createOptionPosition, isLoading, newOption, propsOptions]);
22668
- var onChange = React.useCallback(function (newValue, actionMeta) {
22669
- if (actionMeta.action !== 'select-option') {
22670
- return propsOnChange(newValue, actionMeta);
22671
- }
22672
-
22673
- var valueArray = Array.isArray(newValue) ? newValue : [newValue];
22674
-
22675
- if (valueArray[valueArray.length - 1] === newOption) {
22676
- if (onCreateOption) onCreateOption(inputValue);else {
22677
- var newOptionData = getNewOptionData(inputValue, inputValue);
22678
- var newActionMeta = {
22679
- action: 'create-option',
22680
- name: name,
22681
- option: newOptionData
22682
- };
22683
- propsOnChange(valueTernary(isMulti, [].concat(_toConsumableArray(cleanValue(value)), [newOptionData]), newOptionData), newActionMeta);
22684
- }
22685
- return;
22686
- }
22687
-
22688
- propsOnChange(newValue, actionMeta);
22689
- }, [getNewOptionData, inputValue, isMulti, name, newOption, onCreateOption, propsOnChange, value]);
22690
- return _objectSpread2(_objectSpread2({}, restSelectProps), {}, {
22691
- options: options,
22692
- onChange: onChange
22693
- });
22694
- }
22695
-
22696
- var CreatableSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
22697
- var creatableProps = useStateManager(props);
22698
- var selectProps = useCreatable(creatableProps);
22699
- return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$7({
22700
- ref: ref
22701
- }, selectProps));
22702
- });
22703
-
22704
- var _path$2;
22705
- 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); }
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); }
22706
22604
  var SvgIcPencil = function SvgIcPencil(props) {
22707
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
22605
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
22708
22606
  width: "1em",
22709
22607
  height: "1em",
22710
22608
  viewBox: "0 0 20 20",
22711
22609
  fill: "none",
22712
22610
  xmlns: "http://www.w3.org/2000/svg"
22713
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
22611
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
22714
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",
22715
22613
  stroke: "#596168",
22716
22614
  strokeWidth: 1.5,
@@ -22719,16 +22617,16 @@ var SvgIcPencil = function SvgIcPencil(props) {
22719
22617
  })));
22720
22618
  };
22721
22619
 
22722
- var _path$1, _path2, _path3;
22723
- 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); }
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); }
22724
22622
  var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
22725
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
22623
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
22726
22624
  width: "1em",
22727
22625
  height: "1em",
22728
22626
  viewBox: "0 0 12 12",
22729
22627
  fill: "none",
22730
22628
  xmlns: "http://www.w3.org/2000/svg"
22731
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
22629
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
22732
22630
  d: "M3.742 4.674h-2.25v-2.25",
22733
22631
  fill: "#767D84"
22734
22632
  })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -22746,15 +22644,15 @@ var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
22746
22644
  })));
22747
22645
  };
22748
22646
 
22749
- var _path;
22750
- 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); }
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); }
22751
22649
  var SvgIcMinus = function SvgIcMinus(props) {
22752
- return /*#__PURE__*/React__namespace.createElement("svg", _extends({
22650
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
22753
22651
  xmlns: "http://www.w3.org/2000/svg",
22754
22652
  width: "1em",
22755
22653
  height: "1em",
22756
22654
  viewBox: "0 0 14 14"
22757
- }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
22655
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
22758
22656
  fill: "#959BA1",
22759
22657
  className: "ic-minus_svg__fill-color",
22760
22658
  fillRule: "evenodd",
@@ -22762,6 +22660,41 @@ var SvgIcMinus = function SvgIcMinus(props) {
22762
22660
  })));
22763
22661
  };
22764
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
+
22765
22698
  var ImageTagsContainer = function (_a) {
22766
22699
  var ciPipelineId = _a.ciPipelineId, artifactId = _a.artifactId, imageComment = _a.imageComment, imageReleaseTags = _a.imageReleaseTags, appReleaseTagNames = _a.appReleaseTagNames, setAppReleaseTagNames = _a.setAppReleaseTagNames, tagsEditable = _a.tagsEditable, setTagsEditable = _a.setTagsEditable, toggleCardMode = _a.toggleCardMode;
22767
22700
  var _b = __read(React.useState(imageReleaseTags ? imageReleaseTags : []), 2), initialTags = _b[0], setInitialTags = _b[1];
@@ -22777,6 +22710,8 @@ var ImageTagsContainer = function (_a) {
22777
22710
  var _m = __read(React.useState([]), 2), hardDeleteTags = _m[0], setHardDeleteTags = _m[1];
22778
22711
  var _o = __read(React.useState(false), 2), isSuperAdmin = _o[0], setSuperAdmin = _o[1];
22779
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];
22780
22715
  React.useEffect(function () {
22781
22716
  initialise();
22782
22717
  }, []);
@@ -22786,6 +22721,12 @@ var ImageTagsContainer = function (_a) {
22786
22721
  React.useEffect(function () {
22787
22722
  setExistingTags(appReleaseTagNames ? appReleaseTagNames : []);
22788
22723
  }, [appReleaseTagNames]);
22724
+ React.useEffect(function () {
22725
+ if (saveData) {
22726
+ handleSave();
22727
+ setSaveData(false);
22728
+ }
22729
+ }, [saveData]);
22789
22730
  function initialise() {
22790
22731
  var _a, _b;
22791
22732
  return __awaiter(this, void 0, void 0, function () {
@@ -22817,11 +22758,6 @@ var ImageTagsContainer = function (_a) {
22817
22758
  setDisplayedTags(imageReleaseTags ? imageReleaseTags : []);
22818
22759
  }
22819
22760
  };
22820
- var CreatableComponents = React.useMemo(function () { return ({
22821
- DropdownIndicator: function () { return null; },
22822
- IndicatorSeparator: function () { return null; },
22823
- Menu: function () { return null; },
22824
- }); }, []);
22825
22761
  var handleEditClick = function () {
22826
22762
  setIsEditing(!isEditing);
22827
22763
  if (typeof toggleCardMode === 'function') {
@@ -22830,7 +22766,9 @@ var ImageTagsContainer = function (_a) {
22830
22766
  };
22831
22767
  var handleDescriptionChange = function (e) {
22832
22768
  var description = e.target.value;
22833
- (description === null || description === void 0 ? void 0 : description.length) > 500 ? setDescriptionValidationMessage('comment length cannot exceed 500 characters') : setDescriptionValidationMessage('');
22769
+ (description === null || description === void 0 ? void 0 : description.length) > 500
22770
+ ? setDescriptionValidationMessage('comment length cannot exceed 500 characters')
22771
+ : setDescriptionValidationMessage('');
22834
22772
  setNewDescription(description);
22835
22773
  };
22836
22774
  var handleCancel = function () {
@@ -22845,8 +22783,11 @@ var ImageTagsContainer = function (_a) {
22845
22783
  };
22846
22784
  var handleTagCreate = function (newValue) {
22847
22785
  var lowercaseValue = newValue.toLowerCase().trim();
22848
- if (lowercaseValue.length == 0 || lowercaseValue.length >= 128 || lowercaseValue[0] == '.' || lowercaseValue[0] == '-') {
22849
- setTagErrorMessage("tag name cannot be empty or exceed 128 characters or cannot start with . or -");
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 -');
22850
22791
  return;
22851
22792
  }
22852
22793
  setTagErrorMessage('');
@@ -22857,7 +22798,7 @@ var ImageTagsContainer = function (_a) {
22857
22798
  isTagExistsInDisplayedTags = true;
22858
22799
  }
22859
22800
  if (isTagExistsInExistingTags || isTagExistsInDisplayedTags || lowercaseValue === 'latest') {
22860
- setTagErrorMessage("This tag ".concat(lowercaseValue, " is already applied on same/another image in this application"));
22801
+ setTagErrorMessage('This tag is already being used in this application');
22861
22802
  return;
22862
22803
  }
22863
22804
  var newTag = {
@@ -22866,10 +22807,12 @@ var ImageTagsContainer = function (_a) {
22866
22807
  appId: 0,
22867
22808
  deleted: false,
22868
22809
  artifactId: 0,
22810
+ duplicateTag: false,
22869
22811
  };
22870
22812
  setCreateTags(__spreadArray(__spreadArray([], __read(createTags), false), [newTag], false));
22871
22813
  setDisplayedTags(__spreadArray(__spreadArray([], __read(displayedTags), false), [newTag], false));
22872
22814
  setShowTagsWarning(true);
22815
+ setTextInput('');
22873
22816
  };
22874
22817
  var handleTagSoftDelete = function (index) {
22875
22818
  var updatedTags = __spreadArray([], __read(displayedTags), false);
@@ -22902,9 +22845,32 @@ var ImageTagsContainer = function (_a) {
22902
22845
  setHardDeleteTags(updatedHardDeleteTags);
22903
22846
  }
22904
22847
  };
22848
+ var errorStateHandling = function (err) {
22849
+ err.forEach(function (_a) {
22850
+ var userMessage = _a.userMessage;
22851
+ var tagList = createTags.map(function (tags) {
22852
+ var _a;
22853
+ if ((_a = userMessage === null || userMessage === void 0 ? void 0 : userMessage.appReleaseTags) === null || _a === void 0 ? void 0 : _a.includes(tags.tagName)) {
22854
+ return __assign(__assign({}, tags), { duplicateTag: true });
22855
+ }
22856
+ return tags;
22857
+ });
22858
+ setCreateTags(tagList);
22859
+ var displayList = displayedTags.map(function (obj) {
22860
+ var matchingTag = tagList.find(function (tag) { return tag.tagName === obj.tagName; });
22861
+ if (matchingTag) {
22862
+ return __assign(__assign({}, obj), { duplicateTag: matchingTag.duplicateTag });
22863
+ }
22864
+ return obj;
22865
+ });
22866
+ setDisplayedTags(displayList);
22867
+ });
22868
+ };
22905
22869
  var handleSave = function () { return __awaiter(void 0, void 0, void 0, function () {
22906
22870
  var payload;
22907
22871
  return __generator(this, function (_a) {
22872
+ if (tagErrorMessage)
22873
+ return [2 /*return*/];
22908
22874
  payload = {
22909
22875
  createTags: createTags,
22910
22876
  softDeleteTags: softDeleteTags,
@@ -22944,46 +22910,81 @@ var ImageTagsContainer = function (_a) {
22944
22910
  setTagErrorMessage('');
22945
22911
  })
22946
22912
  .catch(function (err) {
22947
- showError(err);
22913
+ var _a, _b, _c, _d, _e, _f, _g;
22914
+ // Fix toast message
22915
+ 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) {
22916
+ var customError = __assign(__assign({}, err), { errors: [
22917
+ __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 }),
22918
+ ] });
22919
+ showError(customError);
22920
+ errorStateHandling(err.errors);
22921
+ }
22922
+ else {
22923
+ showError(err);
22924
+ }
22948
22925
  });
22949
22926
  return [2 /*return*/];
22950
22927
  });
22951
22928
  }); };
22952
22929
  var renderInfoCard = function () {
22953
- return (jsxRuntime.jsx(TippyCustomized, __assign({ theme: exports.TippyTheme.white, className: "w-300 h-250 fcv-5 dc__overflow-scroll", placement: "right", Icon: SvgIcHelp, heading: "Release tags", infoText: "Release tags allow you to tag container images with readable and relatable tags eg. v1.0.", 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, {}) })) })));
22930
+ 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, {}) })) })));
22954
22931
  };
22955
22932
  var getBuildContextAdditionalContent = function () {
22956
- return (jsxRuntime.jsx("div", __assign({ className: "p-12 fs-13" }, { children: jsxRuntime.jsxs("ul", { 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." })] }) })));
22933
+ 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." })] }))] })));
22957
22934
  };
22958
22935
  var creatableRef = React.useRef(null);
22959
22936
  if (newDescription === '' && displayedTags.length === 0 && !isEditing) {
22960
- return tagsEditable ? (jsxRuntime.jsx("div", __assign({ className: "bcn-0 mt-8" }, { children: jsxRuntime.jsx(AddImageButton, { handleEditClick: handleEditClick }) }))) : (jsxRuntime.jsx("div", {}));
22937
+ return tagsEditable ? (jsxRuntime.jsx("div", __assign({ className: "bcn-0 mt-8 add-image-button" }, { children: jsxRuntime.jsx(AddImageButton, { handleEditClick: handleEditClick }) }))) : (jsxRuntime.jsx("div", {}));
22961
22938
  }
22962
- 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.jsx("div", __assign({ className: "mt-6", "data-testid": "add-tag-text-area" }, { children: jsxRuntime.jsx(CreatableSelect, { placeholder: "Type a tag and press enter", onCreateOption: handleTagCreate, ref: creatableRef, components: CreatableComponents }) })), 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) {
22939
+ var handleKeydown = function (event) {
22940
+ if (event.key === 'Enter' && event.target.value.trim()) {
22941
+ handleTagCreate(event.target.value.trim());
22942
+ }
22943
+ };
22944
+ var setInputValue = function (e) {
22945
+ setTextInput(e.target.value);
22946
+ };
22947
+ var enterTagCreate = function () {
22948
+ if (textInput.trim()) {
22949
+ handleTagCreate(textInput.trim());
22950
+ }
22951
+ };
22952
+ var onClickSave = function () {
22953
+ if (textInput.trim()) {
22954
+ handleTagCreate(textInput);
22955
+ }
22956
+ setSaveData(true);
22957
+ };
22958
+ 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: {
22959
+ top: '50%',
22960
+ fontFamily: 'monospace',
22961
+ right: '8px',
22962
+ transform: 'translateY(-50%)',
22963
+ } }, { 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) {
22963
22964
  stopPropagation(e);
22964
22965
  handleTagSoftDelete(index);
22965
22966
  }, onHardDeleteClick: function (e) {
22966
22967
  stopPropagation(e);
22967
22968
  handleTagHardDelete(index);
22968
- }, tagId: tag.id, softDeleteTags: softDeleteTags, isSuperAdmin: isSuperAdmin }, 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", "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) {
22969
+ }, tagId: tag.id, softDeleteTags: softDeleteTags, isSuperAdmin: isSuperAdmin, duplicateTag: tag === null || tag === void 0 ? void 0 : tag.duplicateTag }, 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) {
22969
22970
  stopPropagation(e);
22970
22971
  handleCancel();
22971
22972
  } }, { 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) {
22972
22973
  stopPropagation(e);
22973
- handleSave();
22974
+ onClickSave();
22974
22975
  } }, { 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) {
22975
22976
  stopPropagation(e);
22976
22977
  handleTagSoftDelete(index);
22977
22978
  }, onHardDeleteClick: function (e) {
22978
22979
  stopPropagation(e);
22979
22980
  handleTagHardDelete(index);
22980
- }, tagId: tag.id, softDeleteTags: softDeleteTags, isSuperAdmin: isSuperAdmin }, 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) {
22981
+ }, tagId: tag.id, softDeleteTags: softDeleteTags, isSuperAdmin: isSuperAdmin, duplicateTag: tag === null || tag === void 0 ? void 0 : tag.duplicateTag }, 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) {
22981
22982
  stopPropagation(e);
22982
22983
  handleEditClick();
22983
22984
  } })) }))] }))) })));
22984
22985
  };
22985
22986
  var ImageTagButton = function (_a) {
22986
- 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;
22987
+ 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;
22987
22988
  var IconComponent = isSoftDeleted ? SvgIcArrowCounterClockwise : SvgIcMinus;
22988
22989
  var _b = __read(React.useState(false), 2), isHovered = _b[0], setIsHovered = _b[1];
22989
22990
  var handleMouseEnter = function () {
@@ -22998,7 +22999,20 @@ var ImageTagButton = function (_a) {
22998
22999
  };
22999
23000
  var isInSoftDeleteTags = isSoftDeleted && softDeleteTags.some(function (tag) { return tag.tagName === text; });
23000
23001
  var canTagBeHardDelete = tagId === 0 || isSuperAdmin;
23001
- return (jsxRuntime.jsx("div", __assign({ className: "br-4 en-2 bw-1 dc__w-fit-content dc__word-wrap-anywhere mr-8 bcn-0 flex h-24 ".concat(isSoftDeleted ? 'cy-7 bcy-1 dc__strike-through ey-2' : ''), onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave }, { children: jsxRuntime.jsxs("div", __assign({ className: "flex pt-2 pl-8 pr-8 pb-2" }, { children: [isHovered && isEditing && (isInSoftDeleteTags || (tagId !== 0 && !isSoftDeleted)) && (jsxRuntime.jsx(IconComponent, { className: "icon-dim-12 mr-4 cursor ".concat(isSoftDeleted ? 'scn-6' : 'fcn-6'), "data-testid": "".concat(text, "-tag-soft-delete"), onClick: onSoftDeleteClick })), text, isHovered && isEditing && canTagBeHardDelete && (jsxRuntime.jsx(SvgIcCross, { className: "icon-dim-12 ml-4 fcn-6 cn-5 cursor", "data-testid": "".concat(text, "-tag-hard-delete"), onClick: onHardDeleteClick }))] })) })));
23002
+ var tabColor = function () {
23003
+ if (duplicateTag) {
23004
+ return 'cr-5 bcr-1 er-2';
23005
+ }
23006
+ else if (isSoftDeleted) {
23007
+ return 'cy-7 bcy-1 dc__strike-through ey-2';
23008
+ }
23009
+ else {
23010
+ return 'cn-9';
23011
+ }
23012
+ };
23013
+ return (jsxRuntime.jsx("div", __assign({ className: "br-4 en-2 bw-1 dc__w-fit-content dc__word-wrap-anywhere mr-8 bcn-0 flex mb-4 ".concat(tabColor()), onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave }, { children: jsxRuntime.jsxs("div", __assign({ className: "flex pt-2 pl-8 pr-8 pb-2" }, { children: [duplicateTag ? (jsxRuntime.jsx(SvgIcErrorExclamation, { className: "icon-dim-12 mr-4" })) : (isHovered &&
23014
+ isEditing &&
23015
+ (isInSoftDeleteTags || (tagId !== 0 && !isSoftDeleted)) && (jsxRuntime.jsx(Tippy, __assign({ className: "default-tt", arrow: true, placement: "top", content: isInSoftDeleteTags ? 'Restore tag' : 'Soft delete tag' }, { children: jsxRuntime.jsx(IconComponent, { className: "icon-dim-12 mr-4 cursor ".concat(isSoftDeleted ? 'scn-6' : 'fcn-6'), "data-testid": "".concat(text, "-tag-soft-delete"), onClick: onSoftDeleteClick }) })))), text, isHovered && isEditing && canTagBeHardDelete && (jsxRuntime.jsx(Tippy, __assign({ className: "default-tt", arrow: true, placement: "top", content: "Remove tag" }, { children: jsxRuntime.jsx(SvgIcCross, { className: "icon-dim-12 ml-4 fcn-6 cn-5 cursor", "data-testid": "".concat(text, "-tag-hard-delete"), onClick: onHardDeleteClick }) })))] })) })));
23002
23016
  };
23003
23017
  var AddImageButton = function (_a) {
23004
23018
  var handleEditClick = _a.handleEditClick;