@devtron-labs/devtron-fe-common-lib 0.0.62-beta-2 → 0.0.62-beta-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/Common/DraggableWrapper/types.d.ts +4 -1
  2. package/dist/Common/Hooks/useUrlFilters/index.d.ts +1 -1
  3. package/dist/Common/Hooks/useUrlFilters/types.d.ts +19 -1
  4. package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +2 -14
  5. package/dist/Common/Types.d.ts +3 -3
  6. package/dist/Pages/GlobalConfigurations/Authorization/constants.d.ts +1 -1
  7. package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +4 -0
  8. package/dist/Shared/Components/BulkSelection/BulkSelectionDropdownItems.d.ts +4 -0
  9. package/dist/Shared/Components/BulkSelection/BulkSelectionProvider.d.ts +4 -0
  10. package/dist/Shared/Components/BulkSelection/constants.d.ts +9 -0
  11. package/dist/Shared/Components/BulkSelection/index.d.ts +4 -0
  12. package/dist/Shared/Components/BulkSelection/types.d.ts +56 -0
  13. package/dist/Shared/Components/index.d.ts +1 -0
  14. package/dist/Shared/index.d.ts +1 -0
  15. package/dist/index.d.ts +1 -0
  16. package/dist/index.js +462 -167
  17. package/package.json +1 -1
  18. package/src/Assets/Icon/ic-check-all.svg +5 -0
  19. package/src/Assets/Icon/ic-check-square.svg +4 -0
  20. package/src/Assets/Icon/ic-close.svg +9 -0
  21. package/src/Common/DraggableWrapper/types.ts +4 -1
  22. package/src/Common/Helper.tsx +7 -1
  23. package/src/Common/Hooks/useUrlFilters/index.ts +1 -1
  24. package/src/Common/Hooks/useUrlFilters/types.ts +21 -1
  25. package/src/Common/Hooks/useUrlFilters/useUrlFilters.ts +28 -6
  26. package/src/Common/Types.ts +3 -2
  27. package/src/Pages/GlobalConfigurations/Authorization/constants.ts +1 -1
  28. package/src/Shared/Components/BulkSelection/BulkSelection.tsx +77 -0
  29. package/src/Shared/Components/BulkSelection/BulkSelectionDropdownItems.tsx +31 -0
  30. package/src/Shared/Components/BulkSelection/BulkSelectionProvider.tsx +171 -0
  31. package/src/Shared/Components/BulkSelection/constants.tsx +13 -0
  32. package/src/Shared/Components/BulkSelection/index.ts +4 -0
  33. package/src/Shared/Components/BulkSelection/types.tsx +67 -0
  34. package/src/Shared/Components/index.ts +1 -0
  35. package/src/Shared/index.ts +1 -0
  36. package/src/index.ts +1 -0
package/dist/index.js CHANGED
@@ -444,6 +444,7 @@ exports.CHECKBOX_VALUE = void 0;
444
444
  (function (CHECKBOX_VALUE) {
445
445
  CHECKBOX_VALUE["CHECKED"] = "CHECKED";
446
446
  CHECKBOX_VALUE["INTERMEDIATE"] = "INTERMEDIATE";
447
+ CHECKBOX_VALUE["BULK_CHECKED"] = "BULK_CHECKED";
447
448
  })(exports.CHECKBOX_VALUE || (exports.CHECKBOX_VALUE = {}));
448
449
  exports.ImageType = void 0;
449
450
  (function (ImageType) {
@@ -796,9 +797,9 @@ var css_248z$9 = ".empty-state {\n height: 100%;\n}\n.empty-state img {\n heig
796
797
  styleInject(css_248z$9);
797
798
 
798
799
  var _g$7;
799
- function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
800
+ function _extends$t() { _extends$t = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$t.apply(this, arguments); }
800
801
  var SvgIcProgressing = function SvgIcProgressing(props) {
801
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
802
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
802
803
  xmlns: "http://www.w3.org/2000/svg",
803
804
  viewBox: "0 0 24 24",
804
805
  width: "1em",
@@ -850,8 +851,8 @@ EmptyState.Loading = Loading;
850
851
 
851
852
  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}
852
853
 
853
- function _extends$p() {
854
- _extends$p = Object.assign || function (target) {
854
+ function _extends$s() {
855
+ _extends$s = Object.assign || function (target) {
855
856
  for (var i = 1; i < arguments.length; i++) {
856
857
  var source = arguments[i];
857
858
 
@@ -865,7 +866,7 @@ function _extends$p() {
865
866
  return target;
866
867
  };
867
868
 
868
- return _extends$p.apply(this, arguments);
869
+ return _extends$s.apply(this, arguments);
869
870
  }
870
871
 
871
872
  function _objectWithoutPropertiesLoose$2(source, excluded) {
@@ -1591,7 +1592,7 @@ function ProgressBar(_ref) {
1591
1592
  isIn = _ref.isIn,
1592
1593
  theme = _ref.theme;
1593
1594
 
1594
- var style = _extends$p({}, userStyle, {
1595
+ var style = _extends$s({}, userStyle, {
1595
1596
  animationDuration: delay + "ms",
1596
1597
  animationPlayState: isRunning ? 'running' : 'paused',
1597
1598
  opacity: hide ? 0 : 1
@@ -1868,9 +1869,9 @@ var ToastContainer = function ToastContainer(props) {
1868
1869
  ,
1869
1870
  id: containerId
1870
1871
  }, getToastToRender(function (position, toastList) {
1871
- var containerStyle = !toastList.length ? _extends$p({}, style, {
1872
+ var containerStyle = !toastList.length ? _extends$s({}, style, {
1872
1873
  pointerEvents: 'none'
1873
- }) : _extends$p({}, style);
1874
+ }) : _extends$s({}, style);
1874
1875
  return React.createElement("div", {
1875
1876
  className: getClassName(position),
1876
1877
  style: containerStyle,
@@ -1977,7 +1978,7 @@ function dispatchToast(content, options) {
1977
1978
 
1978
1979
 
1979
1980
  function mergeOptions(type, options) {
1980
- return _extends$p({}, options, {
1981
+ return _extends$s({}, options, {
1981
1982
  type: options && options.type || type,
1982
1983
  toastId: getToastId(options)
1983
1984
  });
@@ -1994,7 +1995,7 @@ function toast(content, options) {
1994
1995
  }
1995
1996
 
1996
1997
  toast.loading = function (content, options) {
1997
- return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$p({
1998
+ return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$s({
1998
1999
  isLoading: true,
1999
2000
  autoClose: false,
2000
2001
  closeOnClick: false,
@@ -2010,7 +2011,7 @@ function handlePromise(promise, _ref2, options) {
2010
2011
  var id;
2011
2012
 
2012
2013
  if (pending) {
2013
- id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$p({}, options, pending));
2014
+ id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$s({}, options, pending));
2014
2015
  }
2015
2016
 
2016
2017
  var resetParams = {
@@ -2029,7 +2030,7 @@ function handlePromise(promise, _ref2, options) {
2029
2030
  return;
2030
2031
  }
2031
2032
 
2032
- var baseParams = _extends$p({
2033
+ var baseParams = _extends$s({
2033
2034
  type: type
2034
2035
  }, resetParams, options, {
2035
2036
  data: result
@@ -2040,10 +2041,10 @@ function handlePromise(promise, _ref2, options) {
2040
2041
  } : input; // if the id is set we know that it's an update
2041
2042
 
2042
2043
  if (id) {
2043
- toast.update(id, _extends$p({}, baseParams, params));
2044
+ toast.update(id, _extends$s({}, baseParams, params));
2044
2045
  } else {
2045
2046
  // using toast.promise without loading
2046
- toast(params.render, _extends$p({}, baseParams, params));
2047
+ toast(params.render, _extends$s({}, baseParams, params));
2047
2048
  }
2048
2049
 
2049
2050
  return result;
@@ -2067,7 +2068,7 @@ toast.warning = /*#__PURE__*/createToastByType(TYPE.WARNING);
2067
2068
  toast.warn = toast.warning;
2068
2069
 
2069
2070
  toast.dark = function (content, options) {
2070
- return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$p({
2071
+ return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$s({
2071
2072
  theme: 'dark'
2072
2073
  }, options)));
2073
2074
  };
@@ -2124,7 +2125,7 @@ toast.update = function (toastId, options) {
2124
2125
  var oldOptions = toast.props,
2125
2126
  oldContent = toast.content;
2126
2127
 
2127
- var nextOptions = _extends$p({}, oldOptions, options, {
2128
+ var nextOptions = _extends$s({}, oldOptions, options, {
2128
2129
  toastId: options.toastId || toastId,
2129
2130
  updateId: generateToastId()
2130
2131
  });
@@ -11809,7 +11810,14 @@ var getUrlWithSearchParams = function (url, params) {
11809
11810
  var searchParams = new URLSearchParams();
11810
11811
  Object.keys(params).forEach(function (key) {
11811
11812
  if (params[key]) {
11812
- searchParams.append(key, params[key]);
11813
+ if (Array.isArray(params[key])) {
11814
+ params[key].forEach(function (val) {
11815
+ searchParams.append(key, val);
11816
+ });
11817
+ }
11818
+ else {
11819
+ searchParams.set(key, params[key]);
11820
+ }
11813
11821
  }
11814
11822
  });
11815
11823
  var queryString = searchParams.toString();
@@ -12058,16 +12066,16 @@ var Modal = function (_a) {
12058
12066
  }, id: "popup", className: "".concat(rootClassName, " popup ").concat(modal ? 'modal' : ''), style: __assign({}, style) }, { children: children })), document.getElementById('visible-modal'));
12059
12067
  };
12060
12068
 
12061
- var _path$f;
12062
- function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$o.apply(this, arguments); }
12069
+ var _path$h;
12070
+ function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$r.apply(this, arguments); }
12063
12071
  var SvgIcCross = function SvgIcCross(props) {
12064
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
12072
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
12065
12073
  width: "1em",
12066
12074
  height: "1em",
12067
12075
  viewBox: "0 0 24 24",
12068
12076
  fill: "none",
12069
12077
  xmlns: "http://www.w3.org/2000/svg"
12070
- }, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
12078
+ }, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
12071
12079
  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",
12072
12080
  fill: "#596168"
12073
12081
  })));
@@ -16366,30 +16374,30 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
16366
16374
 
16367
16375
  var Tippy = index;
16368
16376
 
16369
- var _path$e;
16370
- function _extends$n() { _extends$n = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$n.apply(this, arguments); }
16377
+ var _path$g;
16378
+ function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
16371
16379
  var SvgIcHelp = function SvgIcHelp(props) {
16372
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
16380
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
16373
16381
  xmlns: "http://www.w3.org/2000/svg",
16374
16382
  width: "1em",
16375
16383
  height: "1em",
16376
16384
  viewBox: "0 0 24 24"
16377
- }, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
16385
+ }, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
16378
16386
  fill: "#767D84",
16379
16387
  fillRule: "evenodd",
16380
16388
  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"
16381
16389
  })));
16382
16390
  };
16383
16391
 
16384
- var _path$d;
16385
- function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$m.apply(this, arguments); }
16392
+ var _path$f;
16393
+ function _extends$p() { _extends$p = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$p.apply(this, arguments); }
16386
16394
  var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
16387
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
16395
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
16388
16396
  xmlns: "http://www.w3.org/2000/svg",
16389
16397
  viewBox: "0 0 17 16",
16390
16398
  width: "1em",
16391
16399
  height: "1em"
16392
- }, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
16400
+ }, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
16393
16401
  fill: "#767D84",
16394
16402
  fillRule: "evenodd",
16395
16403
  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"
@@ -16441,16 +16449,16 @@ function TippyCustomized(props) {
16441
16449
  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 })));
16442
16450
  }
16443
16451
 
16444
- var _path$c, _circle, _path2$1;
16445
- function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$l.apply(this, arguments); }
16452
+ var _path$e, _circle, _path2$1;
16453
+ function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$o.apply(this, arguments); }
16446
16454
  var SvgInjectTag = function SvgInjectTag(props) {
16447
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
16455
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
16448
16456
  width: "1em",
16449
16457
  height: "1em",
16450
16458
  viewBox: "0 0 20 20",
16451
16459
  fill: "none",
16452
16460
  xmlns: "http://www.w3.org/2000/svg"
16453
- }, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
16461
+ }, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
16454
16462
  d: "M10 10H3.333",
16455
16463
  stroke: "#596168",
16456
16464
  strokeWidth: 1.5,
@@ -16478,15 +16486,15 @@ function PropagateTagInfo(_a) {
16478
16486
  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" })] })) })));
16479
16487
  }
16480
16488
 
16481
- var _path$b;
16482
- function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
16489
+ var _path$d;
16490
+ function _extends$n() { _extends$n = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$n.apply(this, arguments); }
16483
16491
  var SvgIcInfoOutlined = function SvgIcInfoOutlined(props) {
16484
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
16492
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
16485
16493
  xmlns: "http://www.w3.org/2000/svg",
16486
16494
  width: "1em",
16487
16495
  height: "1em",
16488
16496
  viewBox: "0 0 20 20"
16489
- }, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
16497
+ }, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
16490
16498
  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",
16491
16499
  fill: "#06C",
16492
16500
  fillRule: "evenodd"
@@ -16720,15 +16728,15 @@ var TagDetails = function (_a) {
16720
16728
  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" }) }))] })));
16721
16729
  };
16722
16730
 
16723
- var _path$a;
16724
- function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
16731
+ var _path$c;
16732
+ function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$m.apply(this, arguments); }
16725
16733
  var SvgIcAdd = function SvgIcAdd(props) {
16726
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
16734
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
16727
16735
  xmlns: "http://www.w3.org/2000/svg",
16728
16736
  width: "1em",
16729
16737
  height: "1em",
16730
16738
  viewBox: "0 0 24 24"
16731
- }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
16739
+ }, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
16732
16740
  className: "ic-add_svg__fill-color",
16733
16741
  fill: "#999",
16734
16742
  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"
@@ -16858,8 +16866,8 @@ function ForceDeleteDialog(_a) {
16858
16866
  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?" })] }) })) }));
16859
16867
  }
16860
16868
 
16861
- function _extends$i() {
16862
- _extends$i = Object.assign ? Object.assign.bind() : function (target) {
16869
+ function _extends$l() {
16870
+ _extends$l = Object.assign ? Object.assign.bind() : function (target) {
16863
16871
  for (var i = 1; i < arguments.length; i++) {
16864
16872
  var source = arguments[i];
16865
16873
  for (var key in source) {
@@ -16870,7 +16878,7 @@ function _extends$i() {
16870
16878
  }
16871
16879
  return target;
16872
16880
  };
16873
- return _extends$i.apply(this, arguments);
16881
+ return _extends$l.apply(this, arguments);
16874
16882
  }
16875
16883
 
16876
16884
  /*
@@ -20411,7 +20419,7 @@ var Menu = function Menu(props) {
20411
20419
  getStyles = props.getStyles,
20412
20420
  innerRef = props.innerRef,
20413
20421
  innerProps = props.innerProps;
20414
- return jsx("div", _extends$i({
20422
+ return jsx("div", _extends$l({
20415
20423
  css: getStyles('menu', props),
20416
20424
  className: cx({
20417
20425
  menu: true
@@ -20443,7 +20451,7 @@ var MenuList$1 = function MenuList(props) {
20443
20451
  innerProps = props.innerProps,
20444
20452
  innerRef = props.innerRef,
20445
20453
  isMulti = props.isMulti;
20446
- return jsx("div", _extends$i({
20454
+ return jsx("div", _extends$l({
20447
20455
  css: getStyles('menuList', props),
20448
20456
  className: cx({
20449
20457
  'menu-list': true,
@@ -20474,7 +20482,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
20474
20482
  cx = props.cx,
20475
20483
  getStyles = props.getStyles,
20476
20484
  innerProps = props.innerProps;
20477
- return jsx("div", _extends$i({
20485
+ return jsx("div", _extends$l({
20478
20486
  css: getStyles('noOptionsMessage', props),
20479
20487
  className: cx({
20480
20488
  'menu-notice': true,
@@ -20491,7 +20499,7 @@ var LoadingMessage = function LoadingMessage(props) {
20491
20499
  cx = props.cx,
20492
20500
  getStyles = props.getStyles,
20493
20501
  innerProps = props.innerProps;
20494
- return jsx("div", _extends$i({
20502
+ return jsx("div", _extends$l({
20495
20503
  css: getStyles('loadingMessage', props),
20496
20504
  className: cx({
20497
20505
  'menu-notice': true,
@@ -20579,7 +20587,7 @@ var MenuPortal = /*#__PURE__*/function (_Component2) {
20579
20587
  rect: rect
20580
20588
  }; // same wrapper element whether fixed or portalled
20581
20589
 
20582
- var menuWrapper = jsx("div", _extends$i({
20590
+ var menuWrapper = jsx("div", _extends$l({
20583
20591
  css: getStyles('menuPortal', state),
20584
20592
  className: cx({
20585
20593
  'menu-portal': true
@@ -20615,7 +20623,7 @@ var SelectContainer = function SelectContainer(props) {
20615
20623
  innerProps = props.innerProps,
20616
20624
  isDisabled = props.isDisabled,
20617
20625
  isRtl = props.isRtl;
20618
- return jsx("div", _extends$i({
20626
+ return jsx("div", _extends$l({
20619
20627
  css: getStyles('container', props),
20620
20628
  className: cx({
20621
20629
  '--is-disabled': isDisabled,
@@ -20650,7 +20658,7 @@ var ValueContainer = function ValueContainer(props) {
20650
20658
  isMulti = props.isMulti,
20651
20659
  getStyles = props.getStyles,
20652
20660
  hasValue = props.hasValue;
20653
- return jsx("div", _extends$i({
20661
+ return jsx("div", _extends$l({
20654
20662
  css: getStyles('valueContainer', props),
20655
20663
  className: cx({
20656
20664
  'value-container': true,
@@ -20676,7 +20684,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
20676
20684
  cx = props.cx,
20677
20685
  innerProps = props.innerProps,
20678
20686
  getStyles = props.getStyles;
20679
- return jsx("div", _extends$i({
20687
+ return jsx("div", _extends$l({
20680
20688
  css: getStyles('indicatorsContainer', props),
20681
20689
  className: cx({
20682
20690
  indicators: true
@@ -20707,7 +20715,7 @@ var Svg = function Svg(_ref) {
20707
20715
  var size = _ref.size,
20708
20716
  props = _objectWithoutProperties(_ref, _excluded$2);
20709
20717
 
20710
- return jsx("svg", _extends$i({
20718
+ return jsx("svg", _extends$l({
20711
20719
  height: size,
20712
20720
  width: size,
20713
20721
  viewBox: "0 0 20 20",
@@ -20718,14 +20726,14 @@ var Svg = function Svg(_ref) {
20718
20726
  };
20719
20727
 
20720
20728
  var CrossIcon = function CrossIcon(props) {
20721
- return jsx(Svg, _extends$i({
20729
+ return jsx(Svg, _extends$l({
20722
20730
  size: 20
20723
20731
  }, props), jsx("path", {
20724
20732
  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"
20725
20733
  }));
20726
20734
  };
20727
20735
  var DownChevron = function DownChevron(props) {
20728
- return jsx(Svg, _extends$i({
20736
+ return jsx(Svg, _extends$l({
20729
20737
  size: 20
20730
20738
  }, props), jsx("path", {
20731
20739
  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"
@@ -20758,7 +20766,7 @@ var DropdownIndicator$1 = function DropdownIndicator(props) {
20758
20766
  cx = props.cx,
20759
20767
  getStyles = props.getStyles,
20760
20768
  innerProps = props.innerProps;
20761
- return jsx("div", _extends$i({
20769
+ return jsx("div", _extends$l({
20762
20770
  css: getStyles('dropdownIndicator', props),
20763
20771
  className: cx({
20764
20772
  indicator: true,
@@ -20773,7 +20781,7 @@ var ClearIndicator$1 = function ClearIndicator(props) {
20773
20781
  cx = props.cx,
20774
20782
  getStyles = props.getStyles,
20775
20783
  innerProps = props.innerProps;
20776
- return jsx("div", _extends$i({
20784
+ return jsx("div", _extends$l({
20777
20785
  css: getStyles('clearIndicator', props),
20778
20786
  className: cx({
20779
20787
  indicator: true,
@@ -20803,7 +20811,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
20803
20811
  cx = props.cx,
20804
20812
  getStyles = props.getStyles,
20805
20813
  innerProps = props.innerProps;
20806
- return jsx("span", _extends$i({}, innerProps, {
20814
+ return jsx("span", _extends$l({}, innerProps, {
20807
20815
  css: getStyles('indicatorSeparator', props),
20808
20816
  className: cx({
20809
20817
  'indicator-separator': true
@@ -20858,7 +20866,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
20858
20866
  getStyles = props.getStyles,
20859
20867
  innerProps = props.innerProps,
20860
20868
  isRtl = props.isRtl;
20861
- return jsx("div", _extends$i({
20869
+ return jsx("div", _extends$l({
20862
20870
  css: getStyles('loadingIndicator', props),
20863
20871
  className: cx({
20864
20872
  indicator: true,
@@ -20919,7 +20927,7 @@ var Control = function Control(props) {
20919
20927
  innerRef = props.innerRef,
20920
20928
  innerProps = props.innerProps,
20921
20929
  menuIsOpen = props.menuIsOpen;
20922
- return jsx("div", _extends$i({
20930
+ return jsx("div", _extends$l({
20923
20931
  ref: innerRef,
20924
20932
  css: getStyles('control', props),
20925
20933
  className: cx({
@@ -20951,12 +20959,12 @@ var Group = function Group(props) {
20951
20959
  label = props.label,
20952
20960
  theme = props.theme,
20953
20961
  selectProps = props.selectProps;
20954
- return jsx("div", _extends$i({
20962
+ return jsx("div", _extends$l({
20955
20963
  css: getStyles('group', props),
20956
20964
  className: cx({
20957
20965
  group: true
20958
20966
  }, className)
20959
- }, innerProps), jsx(Heading, _extends$i({}, headingProps, {
20967
+ }, innerProps), jsx(Heading, _extends$l({}, headingProps, {
20960
20968
  selectProps: selectProps,
20961
20969
  theme: theme,
20962
20970
  getStyles: getStyles,
@@ -20988,7 +20996,7 @@ var GroupHeading = function GroupHeading(props) {
20988
20996
  _cleanCommonProps.data;
20989
20997
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
20990
20998
 
20991
- return jsx("div", _extends$i({
20999
+ return jsx("div", _extends$l({
20992
21000
  css: getStyles('groupHeading', props),
20993
21001
  className: cx({
20994
21002
  'group-heading': true
@@ -21064,7 +21072,7 @@ var Input = function Input(props) {
21064
21072
  }, className),
21065
21073
  css: getStyles('input', props),
21066
21074
  "data-value": value || ''
21067
- }, jsx("input", _extends$i({
21075
+ }, jsx("input", _extends$l({
21068
21076
  className: cx({
21069
21077
  input: true
21070
21078
  }, inputClassName),
@@ -21134,7 +21142,7 @@ var MultiValueLabel = MultiValueGeneric;
21134
21142
  function MultiValueRemove$1(_ref5) {
21135
21143
  var children = _ref5.children,
21136
21144
  innerProps = _ref5.innerProps;
21137
- return jsx("div", _extends$i({
21145
+ return jsx("div", _extends$l({
21138
21146
  role: "button"
21139
21147
  }, innerProps), children || jsx(CrossIcon, {
21140
21148
  size: 14
@@ -21223,7 +21231,7 @@ var Option$1 = function Option(props) {
21223
21231
  isSelected = props.isSelected,
21224
21232
  innerRef = props.innerRef,
21225
21233
  innerProps = props.innerProps;
21226
- return jsx("div", _extends$i({
21234
+ return jsx("div", _extends$l({
21227
21235
  css: getStyles('option', props),
21228
21236
  className: cx({
21229
21237
  option: true,
@@ -21255,7 +21263,7 @@ var Placeholder = function Placeholder(props) {
21255
21263
  cx = props.cx,
21256
21264
  getStyles = props.getStyles,
21257
21265
  innerProps = props.innerProps;
21258
- return jsx("div", _extends$i({
21266
+ return jsx("div", _extends$l({
21259
21267
  css: getStyles('placeholder', props),
21260
21268
  className: cx({
21261
21269
  placeholder: true
@@ -21288,7 +21296,7 @@ var SingleValue = function SingleValue(props) {
21288
21296
  getStyles = props.getStyles,
21289
21297
  isDisabled = props.isDisabled,
21290
21298
  innerProps = props.innerProps;
21291
- return jsx("div", _extends$i({
21299
+ return jsx("div", _extends$l({
21292
21300
  css: getStyles('singleValue', props),
21293
21301
  className: cx({
21294
21302
  'single-value': true,
@@ -21536,7 +21544,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
21536
21544
  };
21537
21545
 
21538
21546
  var A11yText = function A11yText(props) {
21539
- return jsx("span", _extends$i({
21547
+ return jsx("span", _extends$l({
21540
21548
  css: _ref
21541
21549
  }, props));
21542
21550
  };
@@ -22072,7 +22080,7 @@ function DummyInput(_ref) {
22072
22080
  var innerRef = _ref.innerRef,
22073
22081
  props = _objectWithoutProperties(_ref, _excluded);
22074
22082
 
22075
- return jsx("input", _extends$i({
22083
+ return jsx("input", _extends$l({
22076
22084
  ref: innerRef
22077
22085
  }, props, {
22078
22086
  css: /*#__PURE__*/css$2({
@@ -23707,7 +23715,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23707
23715
 
23708
23716
  if (!isSearchable) {
23709
23717
  // use a dummy input to maintain focus/blur functionality
23710
- return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$i({
23718
+ return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$l({
23711
23719
  id: id,
23712
23720
  innerRef: this.getInputRef,
23713
23721
  onBlur: this.onInputBlur,
@@ -23721,7 +23729,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23721
23729
  }, ariaAttributes));
23722
23730
  }
23723
23731
 
23724
- return /*#__PURE__*/React__namespace.createElement(Input, _extends$i({}, commonProps, {
23732
+ return /*#__PURE__*/React__namespace.createElement(Input, _extends$l({}, commonProps, {
23725
23733
  autoCapitalize: "none",
23726
23734
  autoComplete: "off",
23727
23735
  autoCorrect: "off",
@@ -23765,7 +23773,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23765
23773
  isFocused = _this$state5.isFocused;
23766
23774
 
23767
23775
  if (!this.hasValue() || !controlShouldRenderValue) {
23768
- return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$i({}, commonProps, {
23776
+ return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$l({}, commonProps, {
23769
23777
  key: "placeholder",
23770
23778
  isDisabled: isDisabled,
23771
23779
  isFocused: isFocused,
@@ -23779,7 +23787,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23779
23787
  return selectValue.map(function (opt, index) {
23780
23788
  var isOptionFocused = opt === focusedValue;
23781
23789
  var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
23782
- return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$i({}, commonProps, {
23790
+ return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$l({}, commonProps, {
23783
23791
  components: {
23784
23792
  Container: MultiValueContainer,
23785
23793
  Label: MultiValueLabel,
@@ -23811,7 +23819,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23811
23819
  }
23812
23820
 
23813
23821
  var singleValue = selectValue[0];
23814
- return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$i({}, commonProps, {
23822
+ return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$l({}, commonProps, {
23815
23823
  data: singleValue,
23816
23824
  isDisabled: isDisabled
23817
23825
  }), this.formatOptionLabel(singleValue, 'value'));
@@ -23837,7 +23845,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23837
23845
  onTouchEnd: this.onClearIndicatorTouchEnd,
23838
23846
  'aria-hidden': 'true'
23839
23847
  };
23840
- return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$i({}, commonProps, {
23848
+ return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$l({}, commonProps, {
23841
23849
  innerProps: innerProps,
23842
23850
  isFocused: isFocused
23843
23851
  }));
@@ -23857,7 +23865,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23857
23865
  var innerProps = {
23858
23866
  'aria-hidden': 'true'
23859
23867
  };
23860
- return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$i({}, commonProps, {
23868
+ return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$l({}, commonProps, {
23861
23869
  innerProps: innerProps,
23862
23870
  isDisabled: isDisabled,
23863
23871
  isFocused: isFocused
@@ -23875,7 +23883,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23875
23883
  var commonProps = this.commonProps;
23876
23884
  var isDisabled = this.props.isDisabled;
23877
23885
  var isFocused = this.state.isFocused;
23878
- return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$i({}, commonProps, {
23886
+ return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$l({}, commonProps, {
23879
23887
  isDisabled: isDisabled,
23880
23888
  isFocused: isFocused
23881
23889
  }));
@@ -23895,7 +23903,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23895
23903
  onTouchEnd: this.onDropdownIndicatorTouchEnd,
23896
23904
  'aria-hidden': 'true'
23897
23905
  };
23898
- return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$i({}, commonProps, {
23906
+ return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$l({}, commonProps, {
23899
23907
  innerProps: innerProps,
23900
23908
  isDisabled: isDisabled,
23901
23909
  isFocused: isFocused
@@ -23958,7 +23966,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23958
23966
  onMouseOver: onHover,
23959
23967
  tabIndex: -1
23960
23968
  };
23961
- return /*#__PURE__*/React__namespace.createElement(Option, _extends$i({}, commonProps, {
23969
+ return /*#__PURE__*/React__namespace.createElement(Option, _extends$l({}, commonProps, {
23962
23970
  innerProps: innerProps,
23963
23971
  data: data,
23964
23972
  isDisabled: isDisabled,
@@ -23982,7 +23990,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
23982
23990
  groupIndex = item.index;
23983
23991
  var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
23984
23992
  var headingId = "".concat(groupId, "-heading");
23985
- return /*#__PURE__*/React__namespace.createElement(Group, _extends$i({}, commonProps, {
23993
+ return /*#__PURE__*/React__namespace.createElement(Group, _extends$l({}, commonProps, {
23986
23994
  key: groupId,
23987
23995
  data: _data,
23988
23996
  options: options,
@@ -24021,12 +24029,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24021
24029
  menuPosition: menuPosition,
24022
24030
  menuShouldScrollIntoView: menuShouldScrollIntoView
24023
24031
  };
24024
- var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$i({}, commonProps, menuPlacementProps), function (_ref4) {
24032
+ var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$l({}, commonProps, menuPlacementProps), function (_ref4) {
24025
24033
  var ref = _ref4.ref,
24026
24034
  _ref4$placerProps = _ref4.placerProps,
24027
24035
  placement = _ref4$placerProps.placement,
24028
24036
  maxHeight = _ref4$placerProps.maxHeight;
24029
- return /*#__PURE__*/React__namespace.createElement(Menu, _extends$i({}, commonProps, menuPlacementProps, {
24037
+ return /*#__PURE__*/React__namespace.createElement(Menu, _extends$l({}, commonProps, menuPlacementProps, {
24030
24038
  innerRef: ref,
24031
24039
  innerProps: {
24032
24040
  onMouseDown: _this4.onMenuMouseDown,
@@ -24041,7 +24049,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24041
24049
  onBottomArrive: onMenuScrollToBottom,
24042
24050
  lockEnabled: menuShouldBlockScroll
24043
24051
  }, function (scrollTargetRef) {
24044
- return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$i({}, commonProps, {
24052
+ return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$l({}, commonProps, {
24045
24053
  innerRef: function innerRef(instance) {
24046
24054
  _this4.getMenuListRef(instance);
24047
24055
 
@@ -24056,7 +24064,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24056
24064
  // so we use the same component. the actual portalling logic is forked
24057
24065
  // within the component based on `menuPosition`
24058
24066
 
24059
- return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$i({}, commonProps, {
24067
+ return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$l({}, commonProps, {
24060
24068
  appendTo: menuPortalTarget,
24061
24069
  controlElement: this.controlRef,
24062
24070
  menuPlacement: menuPlacement,
@@ -24121,7 +24129,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24121
24129
  isFocused = _this$state6.isFocused,
24122
24130
  selectValue = _this$state6.selectValue;
24123
24131
  var focusableOptions = this.getFocusableOptions();
24124
- return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$i({}, commonProps, {
24132
+ return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$l({}, commonProps, {
24125
24133
  id: this.getElementId('live-region'),
24126
24134
  ariaSelection: ariaSelection,
24127
24135
  focusedOption: focusedOption,
@@ -24147,7 +24155,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24147
24155
  menuIsOpen = _this$props14.menuIsOpen;
24148
24156
  var isFocused = this.state.isFocused;
24149
24157
  var commonProps = this.commonProps = this.getCommonProps();
24150
- return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$i({}, commonProps, {
24158
+ return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$l({}, commonProps, {
24151
24159
  className: className,
24152
24160
  innerProps: {
24153
24161
  id: id,
@@ -24155,7 +24163,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24155
24163
  },
24156
24164
  isDisabled: isDisabled,
24157
24165
  isFocused: isFocused
24158
- }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$i({}, commonProps, {
24166
+ }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$l({}, commonProps, {
24159
24167
  innerRef: this.getControlRef,
24160
24168
  innerProps: {
24161
24169
  onMouseDown: this.onControlMouseDown,
@@ -24164,9 +24172,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
24164
24172
  isDisabled: isDisabled,
24165
24173
  isFocused: isFocused,
24166
24174
  menuIsOpen: menuIsOpen
24167
- }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$i({}, commonProps, {
24175
+ }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$l({}, commonProps, {
24168
24176
  isDisabled: isDisabled
24169
- }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$i({}, commonProps, {
24177
+ }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$l({}, commonProps, {
24170
24178
  isDisabled: isDisabled
24171
24179
  }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
24172
24180
  }
@@ -24239,7 +24247,7 @@ Select$1.defaultProps = defaultProps;
24239
24247
 
24240
24248
  var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
24241
24249
  var baseSelectProps = useStateManager(props);
24242
- return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$i({
24250
+ return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$l({
24243
24251
  ref: ref
24244
24252
  }, baseSelectProps));
24245
24253
  });
@@ -24247,9 +24255,9 @@ var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
24247
24255
  var ReactSelect = StateManagedSelect;
24248
24256
 
24249
24257
  var _g$6;
24250
- function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
24258
+ function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
24251
24259
  var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
24252
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
24260
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
24253
24261
  xmlns: "http://www.w3.org/2000/svg",
24254
24262
  viewBox: "0 0 28 28",
24255
24263
  width: "1em",
@@ -24270,15 +24278,15 @@ var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
24270
24278
  }))));
24271
24279
  };
24272
24280
 
24273
- var _path$9;
24274
- 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); }
24281
+ var _path$b;
24282
+ function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
24275
24283
  var SvgIcCheck = function SvgIcCheck(props) {
24276
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
24284
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
24277
24285
  xmlns: "http://www.w3.org/2000/svg",
24278
24286
  width: "1em",
24279
24287
  height: "1em",
24280
24288
  viewBox: "0 0 24 24"
24281
- }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
24289
+ }, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
24282
24290
  stroke: "#06C",
24283
24291
  strokeLinecap: "round",
24284
24292
  strokeLinejoin: "round",
@@ -24290,9 +24298,9 @@ var SvgIcCheck = function SvgIcCheck(props) {
24290
24298
  };
24291
24299
 
24292
24300
  var _g$5;
24293
- 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); }
24301
+ 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); }
24294
24302
  var SvgIcErrorMedium = function SvgIcErrorMedium(props) {
24295
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
24303
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
24296
24304
  xmlns: "http://www.w3.org/2000/svg",
24297
24305
  width: "1em",
24298
24306
  height: "1em",
@@ -24635,9 +24643,9 @@ var Checkbox$1 = /** @class */ (function (_super) {
24635
24643
  }(React.Component));
24636
24644
 
24637
24645
  var _g$4;
24638
- 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); }
24646
+ function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
24639
24647
  var SvgIcSearch = function SvgIcSearch(props) {
24640
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
24648
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
24641
24649
  xmlns: "http://www.w3.org/2000/svg",
24642
24650
  viewBox: "0 0 24 24",
24643
24651
  width: "1em",
@@ -24654,9 +24662,9 @@ var SvgIcSearch = function SvgIcSearch(props) {
24654
24662
  };
24655
24663
 
24656
24664
  var _g$3;
24657
- 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); }
24665
+ 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); }
24658
24666
  var SvgIcErrorCross = function SvgIcErrorCross(props) {
24659
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
24667
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
24660
24668
  xmlns: "http://www.w3.org/2000/svg",
24661
24669
  width: "1em",
24662
24670
  height: "1em",
@@ -24760,16 +24768,16 @@ var SearchBar = function (_a) {
24760
24768
  return (jsxRuntime.jsx("div", __assign({ className: containerClassName }, { children: jsxRuntime.jsxs("div", __assign({ className: "search-bar bc-n50 focus-within-border-b5 dc__hover-border-n300 dc__block w-100 min-w-200 dc__position-rel en-2 bw-1 br-4 h-32" }, { children: [jsxRuntime.jsx(SvgIcSearch, { className: "search-bar__icon dc__position-abs icon-color-n6 icon-dim-16" }), jsxRuntime.jsx("input", __assign({ placeholder: "Search", "data-testid": "search-bar", type: "text" }, inputProps, { defaultValue: initialSearchText, className: "search-bar__input bc-n50 dc__position-abs w-100 h-100 br-4 dc__no-border pt-6 pr-10 pb-6 pl-30 fs-13 lh-20 fw-4 cn-9 placeholder-cn5 ".concat(showClearButton ? 'pr-30' : 'pr-10'), onChange: handleChange, onKeyDown: handleKeyDown, ref: inputRef })), showClearButton && (jsxRuntime.jsx("button", __assign({ className: "flex search-bar__clear-button dc__position-abs dc__transparent mt-0 mb-0 mr-5 ml-5", type: "button", onClick: clearSearch, "aria-label": "Clear search" }, { children: jsxRuntime.jsx(SvgIcErrorCross, { className: "icon-dim-16 icon-n4 dc__vertical-align-middle" }) })))] })) })));
24761
24769
  };
24762
24770
 
24763
- var _path$8;
24764
- 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); }
24771
+ var _path$a;
24772
+ 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); }
24765
24773
  var SvgIcArrowUpDown = function SvgIcArrowUpDown(props) {
24766
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
24774
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
24767
24775
  xmlns: "http://www.w3.org/2000/svg",
24768
24776
  width: "1em",
24769
24777
  height: "1em",
24770
24778
  viewBox: "0 0 12 12",
24771
24779
  fill: "none"
24772
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
24780
+ }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
24773
24781
  d: "M4.125 8.5 6 10.75 7.875 8.5m-3.75-5L6 1.25 7.875 3.5",
24774
24782
  stroke: "#3B444C",
24775
24783
  strokeWidth: 1.5,
@@ -24778,16 +24786,16 @@ var SvgIcArrowUpDown = function SvgIcArrowUpDown(props) {
24778
24786
  })));
24779
24787
  };
24780
24788
 
24781
- var _path$7;
24782
- 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); }
24789
+ var _path$9;
24790
+ 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); }
24783
24791
  var SvgIcSortArrowDown = function SvgIcSortArrowDown(props) {
24784
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
24792
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
24785
24793
  width: "1em",
24786
24794
  height: "1em",
24787
24795
  viewBox: "0 0 12 12",
24788
24796
  fill: "none",
24789
24797
  xmlns: "http://www.w3.org/2000/svg"
24790
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
24798
+ }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
24791
24799
  d: "M3.5 7.5 6 10m0 0 2.5-2.5M6 10V2",
24792
24800
  stroke: "#596168",
24793
24801
  strokeWidth: 1.5,
@@ -24951,9 +24959,9 @@ exports.ConsequenceAction = void 0;
24951
24959
  })(exports.ConsequenceAction || (exports.ConsequenceAction = {}));
24952
24960
 
24953
24961
  var _g$2;
24954
- 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); }
24962
+ 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); }
24955
24963
  var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
24956
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
24964
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
24957
24965
  xmlns: "http://www.w3.org/2000/svg",
24958
24966
  width: "1em",
24959
24967
  height: "1em",
@@ -25032,16 +25040,16 @@ function DeleteComponent(_a) {
25032
25040
  return (jsxRuntime.jsxs("div", { children: [!showCannotDeleteDialogModal && renderDeleteDialog(), showCannotDeleteDialogModal && renderCannotDeleteDialogModal()] }));
25033
25041
  }
25034
25042
 
25035
- var _path$6;
25036
- 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); }
25043
+ var _path$8;
25044
+ 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); }
25037
25045
  var SvgIcPencil = function SvgIcPencil(props) {
25038
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
25046
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
25039
25047
  width: "1em",
25040
25048
  height: "1em",
25041
25049
  viewBox: "0 0 20 20",
25042
25050
  fill: "none",
25043
25051
  xmlns: "http://www.w3.org/2000/svg"
25044
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
25052
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
25045
25053
  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",
25046
25054
  stroke: "#596168",
25047
25055
  strokeWidth: 1.5,
@@ -25050,16 +25058,16 @@ var SvgIcPencil = function SvgIcPencil(props) {
25050
25058
  })));
25051
25059
  };
25052
25060
 
25053
- var _path$5, _path2, _path3;
25054
- 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); }
25061
+ var _path$7, _path2, _path3;
25062
+ 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); }
25055
25063
  var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
25056
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
25064
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
25057
25065
  width: "1em",
25058
25066
  height: "1em",
25059
25067
  viewBox: "0 0 12 12",
25060
25068
  fill: "none",
25061
25069
  xmlns: "http://www.w3.org/2000/svg"
25062
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
25070
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
25063
25071
  d: "M3.742 4.674h-2.25v-2.25",
25064
25072
  fill: "#767D84"
25065
25073
  })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -25077,15 +25085,15 @@ var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
25077
25085
  })));
25078
25086
  };
25079
25087
 
25080
- var _path$4;
25081
- 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); }
25088
+ var _path$6;
25089
+ 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); }
25082
25090
  var SvgIcMinus = function SvgIcMinus(props) {
25083
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
25091
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
25084
25092
  xmlns: "http://www.w3.org/2000/svg",
25085
25093
  width: "1em",
25086
25094
  height: "1em",
25087
25095
  viewBox: "0 0 14 14"
25088
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
25096
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
25089
25097
  fill: "#959BA1",
25090
25098
  className: "ic-minus_svg__fill-color",
25091
25099
  fillRule: "evenodd",
@@ -25094,9 +25102,9 @@ var SvgIcMinus = function SvgIcMinus(props) {
25094
25102
  };
25095
25103
 
25096
25104
  var _g$1;
25097
- 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); }
25105
+ 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); }
25098
25106
  var SvgIcWarning = function SvgIcWarning(props) {
25099
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
25107
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
25100
25108
  xmlns: "http://www.w3.org/2000/svg",
25101
25109
  width: "1em",
25102
25110
  height: "1em",
@@ -25116,9 +25124,9 @@ var SvgIcWarning = function SvgIcWarning(props) {
25116
25124
  };
25117
25125
 
25118
25126
  var _g;
25119
- 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); }
25127
+ 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); }
25120
25128
  var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
25121
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
25129
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
25122
25130
  xmlns: "http://www.w3.org/2000/svg",
25123
25131
  width: "1em",
25124
25132
  height: "1em",
@@ -25135,16 +25143,16 @@ var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
25135
25143
  }))));
25136
25144
  };
25137
25145
 
25138
- var _path$3;
25139
- 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); }
25146
+ var _path$5;
25147
+ 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); }
25140
25148
  var SvgIcEnter = function SvgIcEnter(props) {
25141
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
25149
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
25142
25150
  width: "1em",
25143
25151
  height: "1em",
25144
25152
  viewBox: "0 0 16 16",
25145
25153
  fill: "none",
25146
25154
  xmlns: "http://www.w3.org/2000/svg"
25147
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
25155
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
25148
25156
  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",
25149
25157
  fill: "#3B444C"
25150
25158
  })));
@@ -25550,15 +25558,15 @@ function Grid(_a) {
25550
25558
  return (jsxRuntime.jsx("div", __assign({ className: "flex-wrap flexbox ".concat(container ? containerClass : ''), style: containerStyles }, containerDivProps, { children: children })));
25551
25559
  }
25552
25560
 
25553
- var _path$2;
25554
- 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); }
25561
+ var _path$4;
25562
+ 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); }
25555
25563
  var SvgIcCopy = function SvgIcCopy(props) {
25556
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
25564
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
25557
25565
  xmlns: "http://www.w3.org/2000/svg",
25558
25566
  width: "1em",
25559
25567
  height: "1em",
25560
25568
  viewBox: "0 0 20 20"
25561
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
25569
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
25562
25570
  fill: "#767D84",
25563
25571
  fillRule: "evenodd",
25564
25572
  d: "M15.833 6.917a2.5 2.5 0 0 1 2.5 2.5v6.416a2.5 2.5 0 0 1-2.5 2.5H9.417a2.5 2.5 0 0 1-2.5-2.5V9.417a2.5 2.5 0 0 1 2.5-2.5zm0 1.666H9.417a.833.833 0 0 0-.834.834v6.416c0 .46.373.834.834.834h6.416c.46 0 .834-.373.834-.834V9.417a.833.833 0 0 0-.834-.834zM10.75 1.667c1.24 0 2.256.968 2.33 2.19l.003.143v.75a.833.833 0 0 1-1.66.097l-.006-.097V4c0-.34-.255-.62-.583-.661l-.084-.006H4c-.34 0-.62.255-.661.583L3.333 4v6.75c0 .34.255.62.583.661l.084.006h.75a.833.833 0 0 1 .097 1.66l-.097.006H4a2.333 2.333 0 0 1-2.33-2.19l-.003-.143V4c0-1.24.968-2.256 2.19-2.33L4 1.668h6.75z"
@@ -25683,7 +25691,7 @@ var PAGE_SIZE = URL_FILTER_KEYS.PAGE_SIZE, PAGE_NUMBER = URL_FILTER_KEYS.PAGE_NU
25683
25691
  *
25684
25692
  */
25685
25693
  var useUrlFilters = function (_a) {
25686
- var _b = _a === void 0 ? {} : _a, initialSortKey = _b.initialSortKey;
25694
+ var _b = _a === void 0 ? {} : _a, initialSortKey = _b.initialSortKey, parseSearchParams = _b.parseSearchParams;
25687
25695
  var location = reactRouterDom.useLocation();
25688
25696
  var history = reactRouterDom.useHistory();
25689
25697
  var searchParams = new URLSearchParams(location.search);
@@ -25696,6 +25704,7 @@ var useUrlFilters = function (_a) {
25696
25704
  var sortByKey = (_sortBy || initialSortKey || '');
25697
25705
  // Fallback to ascending order
25698
25706
  var sortByOrder = Object.values(exports.SortingOrder).includes(_sortOrder) ? _sortOrder : exports.SortingOrder.ASC;
25707
+ var _parsedParams = parseSearchParams ? parseSearchParams(searchParams) : {};
25699
25708
  return {
25700
25709
  pageSize: Number(_pageSize) || DEFAULT_BASE_PAGE_SIZE,
25701
25710
  pageNumber: Number(_pageNumber) || DEFAULT_PAGE_NUMBER,
@@ -25703,8 +25712,9 @@ var useUrlFilters = function (_a) {
25703
25712
  sortBy: sortByKey,
25704
25713
  // sort order should only be applied if the key is available
25705
25714
  sortOrder: (sortByKey ? sortByOrder : ''),
25715
+ parsedParams: _parsedParams,
25706
25716
  };
25707
- }, [searchParams]), pageSize = _c.pageSize, pageNumber = _c.pageNumber, searchKey = _c.searchKey, sortBy = _c.sortBy, sortOrder = _c.sortOrder;
25717
+ }, [searchParams]), pageSize = _c.pageSize, pageNumber = _c.pageNumber, searchKey = _c.searchKey, sortBy = _c.sortBy, sortOrder = _c.sortOrder, parsedParams = _c.parsedParams;
25708
25718
  /**
25709
25719
  * Used for getting the required result from the API
25710
25720
  */
@@ -25746,23 +25756,26 @@ var useUrlFilters = function (_a) {
25746
25756
  _resetPageNumber();
25747
25757
  };
25748
25758
  var clearFilters = function () {
25749
- Object.values(URL_FILTER_KEYS).forEach(function (key) {
25750
- searchParams.delete(key);
25751
- });
25752
- history.replace({ search: searchParams.toString() });
25759
+ history.replace({ search: '' });
25753
25760
  };
25754
- return {
25755
- pageSize: pageSize,
25756
- changePage: changePage,
25757
- changePageSize: changePageSize,
25758
- searchKey: searchKey,
25759
- handleSearch: handleSearch,
25760
- offset: offset,
25761
- sortBy: sortBy,
25762
- sortOrder: sortOrder,
25763
- handleSorting: handleSorting,
25764
- clearFilters: clearFilters,
25761
+ var updateSearchParams = function (paramsToSerialize) {
25762
+ Object.keys(paramsToSerialize).forEach(function (key) {
25763
+ if (paramsToSerialize[key]) {
25764
+ if (Array.isArray(paramsToSerialize[key])) {
25765
+ searchParams.delete(key);
25766
+ paramsToSerialize[key].forEach(function (val) {
25767
+ searchParams.append(key, val);
25768
+ });
25769
+ }
25770
+ else {
25771
+ searchParams.set(key, paramsToSerialize[key]);
25772
+ }
25773
+ }
25774
+ });
25775
+ // Not replacing the params as it is being done by _resetPageNumber
25776
+ _resetPageNumber();
25765
25777
  };
25778
+ return __assign(__assign({ pageSize: pageSize, changePage: changePage, changePageSize: changePageSize, searchKey: searchKey, handleSearch: handleSearch, offset: offset, sortBy: sortBy, sortOrder: sortOrder, handleSorting: handleSorting, clearFilters: clearFilters }, parsedParams), { updateSearchParams: updateSearchParams });
25766
25779
  };
25767
25780
 
25768
25781
  var StatusConstants = {
@@ -28500,15 +28513,15 @@ var getInferredTypeFromValueType = function (value) {
28500
28513
  }
28501
28514
  };
28502
28515
 
28503
- var _path$1;
28504
- 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); }
28516
+ var _path$3;
28517
+ 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); }
28505
28518
  var SvgIcChevronDown = function SvgIcChevronDown(props) {
28506
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
28519
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
28507
28520
  xmlns: "http://www.w3.org/2000/svg",
28508
28521
  width: "1em",
28509
28522
  height: "1em",
28510
28523
  viewBox: "0 0 24 24"
28511
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
28524
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
28512
28525
  fill: "#999",
28513
28526
  className: "ic-chevron-down_svg__fill-color",
28514
28527
  fillRule: "nonzero",
@@ -28567,16 +28580,16 @@ var Form = RJSF.default;
28567
28580
  var validator = RJSFValidator.default;
28568
28581
  var RJSFForm = function (props) { return (jsxRuntime.jsx(Form, __assign({ noHtml5Validate: true, showErrorList: false, autoComplete: "off" }, props, { validator: validator, templates: __assign(__assign({}, templates), props.templates), widgets: __assign(__assign({}, widgets), props.widgets), translateString: translateString }))); };
28569
28582
 
28570
- var _style, _rect;
28571
- 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); }
28583
+ var _style, _rect$2;
28584
+ 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); }
28572
28585
  var SvgIcRotateDevtron = function SvgIcRotateDevtron(props) {
28573
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
28586
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
28574
28587
  width: "1em",
28575
28588
  height: "1em",
28576
28589
  viewBox: "0 0 100 100",
28577
28590
  fill: "none",
28578
28591
  xmlns: "http://www.w3.org/2000/svg"
28579
- }, props), _style || (_style = /*#__PURE__*/React__namespace.createElement("style", null, "@keyframes path-fill{0%,30%,to{fill:#3989d9}45%{fill:#abcff3}}@keyframes top-shape{0%,to{transform:translateX(0) translateY(0) rotate(0deg);transform-origin:center center}30%{transform:translateX(0) translateY(0) rotate(10deg);transform-origin:center center}45%{transform:translateX(-6px) translateY(-6px) rotate(15deg);transform-origin:center center}}@keyframes bottom-shape{0%,to{transform:translateX(0) translateY(0) rotate(0deg);transform-origin:center center}30%{transform:translateX(0) translateY(0) rotate(10deg);transform-origin:center center}45%{transform:translateX(6px) translateY(6px) rotate(15deg);transform-origin:center center}}@keyframes rotate-group{0%,44%{transform:rotate(0deg)}to{transform:rotate(360deg);animation-timing-function:ease-in-out}}")), _rect || (_rect = /*#__PURE__*/React__namespace.createElement("rect", {
28592
+ }, props), _style || (_style = /*#__PURE__*/React__namespace.createElement("style", null, "@keyframes path-fill{0%,30%,to{fill:#3989d9}45%{fill:#abcff3}}@keyframes top-shape{0%,to{transform:translateX(0) translateY(0) rotate(0deg);transform-origin:center center}30%{transform:translateX(0) translateY(0) rotate(10deg);transform-origin:center center}45%{transform:translateX(-6px) translateY(-6px) rotate(15deg);transform-origin:center center}}@keyframes bottom-shape{0%,to{transform:translateX(0) translateY(0) rotate(0deg);transform-origin:center center}30%{transform:translateX(0) translateY(0) rotate(10deg);transform-origin:center center}45%{transform:translateX(6px) translateY(6px) rotate(15deg);transform-origin:center center}}@keyframes rotate-group{0%,44%{transform:rotate(0deg)}to{transform:rotate(360deg);animation-timing-function:ease-in-out}}")), _rect$2 || (_rect$2 = /*#__PURE__*/React__namespace.createElement("rect", {
28580
28593
  width: 100,
28581
28594
  height: 100,
28582
28595
  rx: 20,
@@ -28844,16 +28857,16 @@ function DraggableWrapper(_a) {
28844
28857
  } }, { children: children })) })) })));
28845
28858
  }
28846
28859
 
28847
- var _path;
28848
- 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); }
28860
+ var _path$2;
28861
+ 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); }
28849
28862
  var SvgIcDrag = function SvgIcDrag(props) {
28850
- return /*#__PURE__*/React__namespace.createElement("svg", _extends({
28863
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
28851
28864
  width: "1em",
28852
28865
  height: "1em",
28853
28866
  viewBox: "0 0 16 16",
28854
28867
  fill: "none",
28855
28868
  xmlns: "http://www.w3.org/2000/svg"
28856
- }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
28869
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
28857
28870
  d: "M10.334 9.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5.667 9.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM10.334 5.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5.667 5.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM10.334 13.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5.667 13.333a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",
28858
28871
  fill: "#596168"
28859
28872
  })));
@@ -28990,14 +29003,293 @@ exports.UserStatus = void 0;
28990
29003
  (function (UserStatus) {
28991
29004
  UserStatus["active"] = "active";
28992
29005
  UserStatus["inactive"] = "inactive";
28993
- UserStatus["temporary"] = "temporary";
29006
+ UserStatus["temporary"] = "temporaryAccess";
28994
29007
  })(exports.UserStatus || (exports.UserStatus = {}));
28995
29008
 
29009
+ var BulkSelectionDropdownItems = function (_a) {
29010
+ var locator = _a.locator, label = _a.label, isSelected = _a.isSelected, handleBulkSelection = _a.handleBulkSelection, Icon = _a.icon;
29011
+ var handleSelect = function () {
29012
+ handleBulkSelection({
29013
+ action: locator,
29014
+ });
29015
+ };
29016
+ return (jsxRuntime.jsxs("button", __assign({ "data-testid": "bulk-action-".concat(locator), onClick: handleSelect, className: "dc__no-border dc__outline-none-imp w-100 flexbox h-32 dc__align-items-center pt-6 pr-8 pb-6 pl-8 dc__gap-8 ".concat(isSelected ? 'cb-5 bcb-2 fs-13 fw-6 lh-20' : 'dc__no-background cn-9 fs-13 fw-4 lh-20 dc__hover-n50'), type: "button" }, { children: [jsxRuntime.jsx(Icon, { className: "icon-dim-16" }), label] })));
29017
+ };
29018
+
29019
+ exports.BulkSelectionEvents = void 0;
29020
+ (function (BulkSelectionEvents) {
29021
+ BulkSelectionEvents["CLEAR_ALL_SELECTIONS"] = "CLEAR_ALL_SELECTIONS";
29022
+ BulkSelectionEvents["CLEAR_IDENTIFIERS"] = "CLEAR_IDENTIFIERS";
29023
+ BulkSelectionEvents["SELECT_ALL_ACROSS_PAGES"] = "SELECT_ALL_ACROSS_PAGES";
29024
+ BulkSelectionEvents["SELECT_ALL_ON_PAGE"] = "SELECT_ALL_ON_PAGE";
29025
+ BulkSelectionEvents["SELECT_IDENTIFIER"] = "SELECT_IDENTIFIER";
29026
+ BulkSelectionEvents["CLEAR_IDENTIFIERS_AFTER_ACROSS_SELECTION"] = "CLEAR_IDENTIFIERS_AFTER_ACROSS_SELECTION";
29027
+ BulkSelectionEvents["CLEAR_SELECTIONS_AND_SELECT_ALL_ACROSS_PAGES"] = "CLEAR_SELECTIONS_AND_SELECT_ALL_ACROSS_PAGES";
29028
+ })(exports.BulkSelectionEvents || (exports.BulkSelectionEvents = {}));
29029
+ exports.SelectAllDialogStatus = void 0;
29030
+ (function (SelectAllDialogStatus) {
29031
+ SelectAllDialogStatus["OPEN"] = "OPEN";
29032
+ SelectAllDialogStatus["CLOSED"] = "CLOSED";
29033
+ })(exports.SelectAllDialogStatus || (exports.SelectAllDialogStatus = {}));
29034
+
29035
+ var _a;
29036
+ var BULK_DROPDOWN_TEST_ID = 'bulk-selection-pop-up-menu';
29037
+ var BulkSelectionOptionsLabels = (_a = {},
29038
+ _a[exports.BulkSelectionEvents.SELECT_ALL_ON_PAGE] = 'All on this page',
29039
+ _a[exports.BulkSelectionEvents.SELECT_ALL_ACROSS_PAGES] = 'All across pages',
29040
+ _a[exports.BulkSelectionEvents.CLEAR_ALL_SELECTIONS] = 'Clear selection',
29041
+ _a);
29042
+ // Considering application can not be named as *
29043
+ var SELECT_ALL_ACROSS_PAGES_LOCATOR = '*';
29044
+ var getInvalidActionMessage = function (action) { return "Invalid action ".concat(action, " passed to useBulkSelection"); };
29045
+ var BULK_SELECTION_CONTEXT_ERROR = 'useBulkSelection must be used within BulkSelectionContext';
29046
+
29047
+ // giving type any here since not exporting this context, rather using it through useBulkSelection hook which is typed
29048
+ var BulkSelectionContext = React.createContext({
29049
+ selectedIdentifiers: {},
29050
+ handleBulkSelection: noop$1,
29051
+ isChecked: false,
29052
+ checkboxValue: exports.CHECKBOX_VALUE.CHECKED,
29053
+ isBulkSelectionApplied: false,
29054
+ getSelectedIdentifiersCount: noop$1,
29055
+ });
29056
+ var useBulkSelection = function () {
29057
+ var context = React.useContext(BulkSelectionContext);
29058
+ if (!context) {
29059
+ throw new Error(BULK_SELECTION_CONTEXT_ERROR);
29060
+ }
29061
+ return context;
29062
+ };
29063
+ var BulkSelectionProvider = function (_a) {
29064
+ var children = _a.children, identifiers = _a.identifiers, getSelectAllDialogStatus = _a.getSelectAllDialogStatus;
29065
+ var _b = __read(React.useState({}), 2), selectedIdentifiers = _b[0], setSelectedIdentifiers = _b[1];
29066
+ var isBulkSelectionApplied = selectedIdentifiers[SELECT_ALL_ACROSS_PAGES_LOCATOR];
29067
+ var getSelectedIdentifiersCount = function () { return Object.keys(selectedIdentifiers).length; };
29068
+ var setIdentifiersAfterClear = function (newIdentifiers, selectedIds) {
29069
+ var _newIdentifiers = JSON.parse(JSON.stringify(newIdentifiers));
29070
+ selectedIds.forEach(function (id) {
29071
+ delete _newIdentifiers[id];
29072
+ });
29073
+ setSelectedIdentifiers(_newIdentifiers);
29074
+ };
29075
+ var setIdentifiersAfterPageSelection = function (baseObject) {
29076
+ var _selectedIdentifiers = JSON.parse(JSON.stringify(selectedIdentifiers));
29077
+ // removing bulk selection across pages if present
29078
+ if (isBulkSelectionApplied) {
29079
+ delete _selectedIdentifiers[SELECT_ALL_ACROSS_PAGES_LOCATOR];
29080
+ }
29081
+ setSelectedIdentifiers(__assign(__assign({}, _selectedIdentifiers), baseObject));
29082
+ };
29083
+ var handleBulkSelection = function (_a) {
29084
+ var _b, _c;
29085
+ var _d, _e;
29086
+ var action = _a.action, data = _a.data;
29087
+ var selectedIds = (_d = data === null || data === void 0 ? void 0 : data.identifierIds) !== null && _d !== void 0 ? _d : [];
29088
+ var identifierObject = (_e = data === null || data === void 0 ? void 0 : data.identifierObject) !== null && _e !== void 0 ? _e : {};
29089
+ switch (action) {
29090
+ case exports.BulkSelectionEvents.CLEAR_ALL_SELECTIONS:
29091
+ setSelectedIdentifiers({});
29092
+ break;
29093
+ case exports.BulkSelectionEvents.CLEAR_IDENTIFIERS_AFTER_ACROSS_SELECTION: {
29094
+ setIdentifiersAfterClear(identifiers, selectedIds);
29095
+ break;
29096
+ }
29097
+ case exports.BulkSelectionEvents.CLEAR_IDENTIFIERS: {
29098
+ setIdentifiersAfterClear(selectedIdentifiers, selectedIds);
29099
+ break;
29100
+ }
29101
+ case exports.BulkSelectionEvents.SELECT_ALL_ACROSS_PAGES: {
29102
+ if (isBulkSelectionApplied) {
29103
+ return;
29104
+ }
29105
+ var selectedIdentifiersLength = getSelectedIdentifiersCount();
29106
+ // This is for showing a modal dialog if applicable to confirm if bulk selection is to be applied
29107
+ // Do note that the 'getSelectAllDialogStatus' should be called after the length check explicitly
29108
+ // otherwise the modal will open each time
29109
+ if (selectedIdentifiersLength > 0 && getSelectAllDialogStatus() === exports.SelectAllDialogStatus.OPEN) {
29110
+ return;
29111
+ }
29112
+ setSelectedIdentifiers((_b = {},
29113
+ _b[SELECT_ALL_ACROSS_PAGES_LOCATOR] = true,
29114
+ _b));
29115
+ break;
29116
+ }
29117
+ case exports.BulkSelectionEvents.CLEAR_SELECTIONS_AND_SELECT_ALL_ACROSS_PAGES:
29118
+ setSelectedIdentifiers((_c = {},
29119
+ _c[SELECT_ALL_ACROSS_PAGES_LOCATOR] = true,
29120
+ _c));
29121
+ break;
29122
+ case exports.BulkSelectionEvents.SELECT_ALL_ON_PAGE: {
29123
+ setIdentifiersAfterPageSelection(identifiers);
29124
+ break;
29125
+ }
29126
+ case exports.BulkSelectionEvents.SELECT_IDENTIFIER: {
29127
+ setIdentifiersAfterPageSelection(identifierObject);
29128
+ break;
29129
+ }
29130
+ default:
29131
+ throw new Error(getInvalidActionMessage(action));
29132
+ }
29133
+ };
29134
+ var getBulkSelectionCheckboxValues = function () {
29135
+ var selectedIdentifiersArray = Object.keys(selectedIdentifiers);
29136
+ if (selectedIdentifiersArray.length === 0) {
29137
+ return {
29138
+ isChecked: false,
29139
+ checkboxValue: exports.CHECKBOX_VALUE.CHECKED,
29140
+ };
29141
+ }
29142
+ // if selectedIdentifiers contains select all across pages locator then it means all are selected
29143
+ if (isBulkSelectionApplied) {
29144
+ return {
29145
+ isChecked: true,
29146
+ checkboxValue: exports.CHECKBOX_VALUE.BULK_CHECKED,
29147
+ };
29148
+ }
29149
+ // if all the identifiers are selected then CHECKED else intermediate
29150
+ var areAllPresentIdentifiersSelected = Object.keys(identifiers).every(function (identifierId) { return selectedIdentifiers[identifierId]; });
29151
+ if (areAllPresentIdentifiersSelected) {
29152
+ return {
29153
+ isChecked: true,
29154
+ checkboxValue: exports.CHECKBOX_VALUE.CHECKED,
29155
+ };
29156
+ }
29157
+ return {
29158
+ isChecked: true,
29159
+ checkboxValue: exports.CHECKBOX_VALUE.INTERMEDIATE,
29160
+ };
29161
+ };
29162
+ var _c = getBulkSelectionCheckboxValues(), isChecked = _c.isChecked, checkboxValue = _c.checkboxValue;
29163
+ var value = React.useMemo(function () { return ({
29164
+ selectedIdentifiers: selectedIdentifiers,
29165
+ handleBulkSelection: handleBulkSelection,
29166
+ isChecked: isChecked,
29167
+ checkboxValue: checkboxValue,
29168
+ isBulkSelectionApplied: isBulkSelectionApplied,
29169
+ getSelectedIdentifiersCount: getSelectedIdentifiersCount,
29170
+ }); }, [selectedIdentifiers, handleBulkSelection, isChecked, checkboxValue, getSelectedIdentifiersCount]);
29171
+ return jsxRuntime.jsx(BulkSelectionContext.Provider, __assign({ value: value }, { children: children }));
29172
+ };
29173
+
29174
+ var _rect$1, _path$1;
29175
+ 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); }
29176
+ var SvgIcCheckSquare = function SvgIcCheckSquare(props) {
29177
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
29178
+ width: "1em",
29179
+ height: "1em",
29180
+ viewBox: "0 0 16 16",
29181
+ fill: "none",
29182
+ xmlns: "http://www.w3.org/2000/svg"
29183
+ }, props), _rect$1 || (_rect$1 = /*#__PURE__*/React__namespace.createElement("rect", {
29184
+ x: 2,
29185
+ y: 2,
29186
+ width: 12,
29187
+ height: 12,
29188
+ rx: 2,
29189
+ stroke: "#596168",
29190
+ strokeWidth: 1.5,
29191
+ strokeLinecap: "round",
29192
+ strokeLinejoin: "round"
29193
+ })), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
29194
+ d: "m11.208 5.958-4.083 4.083L5.083 8",
29195
+ stroke: "#596168",
29196
+ strokeWidth: 1.5,
29197
+ strokeLinecap: "round",
29198
+ strokeLinejoin: "round"
29199
+ })));
29200
+ };
29201
+
29202
+ var _rect, _path;
29203
+ 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); }
29204
+ var SvgIcCheckAll = function SvgIcCheckAll(props) {
29205
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
29206
+ width: "1em",
29207
+ height: "1em",
29208
+ viewBox: "0 0 17 17",
29209
+ fill: "none",
29210
+ xmlns: "http://www.w3.org/2000/svg"
29211
+ }, props), _rect || (_rect = /*#__PURE__*/React__namespace.createElement("rect", {
29212
+ x: 2,
29213
+ y: 2,
29214
+ width: 11.2,
29215
+ height: 11.2,
29216
+ rx: 2,
29217
+ stroke: "#596168",
29218
+ strokeWidth: 1.5,
29219
+ strokeLinecap: "round",
29220
+ strokeLinejoin: "round"
29221
+ })), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
29222
+ d: "M15.467 5.866v5.6a4 4 0 0 1-4 4h-5.6M10.35 5.85l-3.5 3.5L5.1 7.6",
29223
+ stroke: "#596168",
29224
+ strokeWidth: 1.5,
29225
+ strokeLinecap: "round",
29226
+ strokeLinejoin: "round"
29227
+ })));
29228
+ };
29229
+
29230
+ var _defs, _use;
29231
+ 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); }
29232
+ var SvgIcClose = function SvgIcClose(props) {
29233
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
29234
+ xmlns: "http://www.w3.org/2000/svg",
29235
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
29236
+ width: "1em",
29237
+ height: "1em",
29238
+ viewBox: "0 0 24 24"
29239
+ }, props), _defs || (_defs = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("path", {
29240
+ id: "ic-close_svg__a",
29241
+ className: "ic-close_svg__stroke-color",
29242
+ d: "M18.295 5.705a.997.997 0 0 0-1.41 0L12 10.59 7.115 5.705a.997.997 0 1 0-1.41 1.41L10.59 12l-4.885 4.885a.997.997 0 1 0 1.41 1.41L12 13.41l4.885 4.885a.997.997 0 0 0 1.41-1.41L13.41 12l4.885-4.885a.997.997 0 0 0 0-1.41z"
29243
+ }))), _use || (_use = /*#__PURE__*/React__namespace.createElement("use", {
29244
+ fill: "#999",
29245
+ xlinkHref: "#ic-close_svg__a",
29246
+ fillRule: "evenodd"
29247
+ })));
29248
+ };
29249
+
29250
+ var BulkSelection = function (_a) {
29251
+ var showPagination = _a.showPagination;
29252
+ var _b = useBulkSelection(), handleBulkSelection = _b.handleBulkSelection, isChecked = _b.isChecked, checkboxValue = _b.checkboxValue, getSelectedIdentifiersCount = _b.getSelectedIdentifiersCount;
29253
+ var areOptionsSelected = getSelectedIdentifiersCount() > 0;
29254
+ var BulkSelectionItems = __spreadArray(__spreadArray([
29255
+ {
29256
+ locator: exports.BulkSelectionEvents.SELECT_ALL_ON_PAGE,
29257
+ label: BulkSelectionOptionsLabels[exports.BulkSelectionEvents.SELECT_ALL_ON_PAGE],
29258
+ isSelected: isChecked && checkboxValue === exports.CHECKBOX_VALUE.CHECKED,
29259
+ icon: SvgIcCheckSquare,
29260
+ }
29261
+ ], __read((showPagination
29262
+ ? [
29263
+ {
29264
+ locator: exports.BulkSelectionEvents.SELECT_ALL_ACROSS_PAGES,
29265
+ label: BulkSelectionOptionsLabels[exports.BulkSelectionEvents.SELECT_ALL_ACROSS_PAGES],
29266
+ isSelected: isChecked && checkboxValue === exports.CHECKBOX_VALUE.BULK_CHECKED,
29267
+ icon: SvgIcCheckAll,
29268
+ },
29269
+ ]
29270
+ : [])), false), __read((areOptionsSelected
29271
+ ? [
29272
+ {
29273
+ locator: exports.BulkSelectionEvents.CLEAR_ALL_SELECTIONS,
29274
+ label: BulkSelectionOptionsLabels[exports.BulkSelectionEvents.CLEAR_ALL_SELECTIONS],
29275
+ isSelected: false,
29276
+ icon: SvgIcClose,
29277
+ },
29278
+ ]
29279
+ : [])), false);
29280
+ return (jsxRuntime.jsxs(PopupMenu, __assign({ autoClose: true }, { children: [jsxRuntime.jsxs(PopupMenu.Button, __assign({ isKebab: true, rootClassName: "h-20 flexbox p-0 dc__no-background dc__no-border dc__outline-none-imp", dataTestId: BULK_DROPDOWN_TEST_ID }, { children: [jsxRuntime.jsx(Checkbox$1, { isChecked: isChecked, onChange: noop$1, rootClassName: "icon-dim-20 m-0", value: checkboxValue }), jsxRuntime.jsx(SvgIcChevronDown, { className: "icon-dim-20 fcn-6 dc__no-shrink" })] })), jsxRuntime.jsx(PopupMenu.Body, __assign({ rootClassName: "dc__top-22 w-150 dc__right-0 pt-4 pb-4 pl-0 pr-0 bcn-0 flex column dc__content-start dc__align-start dc__position-abs bcn-0 dc__border dc__border-radius-4-imp" }, { children: BulkSelectionItems.map(function (item) { return (jsxRuntime.jsx(BulkSelectionDropdownItems, { locator: item.locator, label: item.label, isSelected: item.isSelected, icon: item.icon, handleBulkSelection: handleBulkSelection }, item.locator)); }) }))] })));
29281
+ };
29282
+
28996
29283
  exports.AddCDButton = AddCDButton;
28997
29284
  exports.AppStatus = AppStatus;
29285
+ exports.BULK_DROPDOWN_TEST_ID = BULK_DROPDOWN_TEST_ID;
29286
+ exports.BULK_SELECTION_CONTEXT_ERROR = BULK_SELECTION_CONTEXT_ERROR;
28998
29287
  exports.BreadCrumb = BreadCrumb;
28999
29288
  exports.BreadcrumbStore = Store;
29000
29289
  exports.BuildStageVariable = BuildStageVariable;
29290
+ exports.BulkSelection = BulkSelection;
29291
+ exports.BulkSelectionOptionsLabels = BulkSelectionOptionsLabels;
29292
+ exports.BulkSelectionProvider = BulkSelectionProvider;
29001
29293
  exports.CDModalTab = CDModalTab;
29002
29294
  exports.ChartVersionAndTypeSelector = ChartVersionAndTypeSelector;
29003
29295
  exports.Checkbox = Checkbox$1;
@@ -29055,6 +29347,7 @@ exports.RepositoryAction = RepositoryAction;
29055
29347
  exports.ResizableTagTextArea = ResizableTagTextArea;
29056
29348
  exports.ResizableTextarea = ResizableTextarea;
29057
29349
  exports.SELECTED_APPROVAL_TAB_STATE = SELECTED_APPROVAL_TAB_STATE;
29350
+ exports.SELECT_ALL_ACROSS_PAGES_LOCATOR = SELECT_ALL_ACROSS_PAGES_LOCATOR;
29058
29351
  exports.ScanVulnerabilitiesTable = ScanVulnerabilitiesTable;
29059
29352
  exports.SearchBar = SearchBar;
29060
29353
  exports.ServerError = ServerError;
@@ -29092,6 +29385,7 @@ exports.getCookie = getCookie;
29092
29385
  exports.getEmptyArrayOfLength = getEmptyArrayOfLength;
29093
29386
  exports.getFilteredChartVersions = getFilteredChartVersions;
29094
29387
  exports.getInferredTypeFromValueType = getInferredTypeFromValueType;
29388
+ exports.getInvalidActionMessage = getInvalidActionMessage;
29095
29389
  exports.getIsRequestAborted = getIsRequestAborted;
29096
29390
  exports.getLockedJSON = getLockedJSON;
29097
29391
  exports.getLoginInfo = getLoginInfo;
@@ -29118,6 +29412,7 @@ exports.toastAccessDenied = toastAccessDenied;
29118
29412
  exports.trash = trash;
29119
29413
  exports.useAsync = useAsync;
29120
29414
  exports.useBreadcrumb = useBreadcrumb;
29415
+ exports.useBulkSelection = useBulkSelection;
29121
29416
  exports.useClickOutside = useClickOutside;
29122
29417
  exports.useEffectAfterMount = useEffectAfterMount;
29123
29418
  exports.useForm = useForm;