@devtron-labs/devtron-fe-common-lib 0.0.26 → 0.0.28-beta-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -424,6 +424,12 @@ exports.DeploymentNodeType = void 0;
424
424
  DeploymentNodeType["POSTCD"] = "POSTCD";
425
425
  DeploymentNodeType["APPROVAL"] = "APPROVAL";
426
426
  })(exports.DeploymentNodeType || (exports.DeploymentNodeType = {}));
427
+ exports.FilterStates = void 0;
428
+ (function (FilterStates) {
429
+ FilterStates[FilterStates["BLOCKED"] = 0] = "BLOCKED";
430
+ FilterStates[FilterStates["ALLOWED"] = 1] = "ALLOWED";
431
+ FilterStates[FilterStates["ERROR"] = 2] = "ERROR";
432
+ })(exports.FilterStates || (exports.FilterStates = {}));
427
433
  exports.DeploymentAppTypes = void 0;
428
434
  (function (DeploymentAppTypes) {
429
435
  DeploymentAppTypes["HELM"] = "helm";
@@ -685,15 +691,15 @@ function styleInject(css, ref) {
685
691
  var css_248z$6 = ".empty-state {\n height: 100%;\n}\n.empty-state img {\n height: 40%;\n max-height: 200px;\n width: auto;\n max-width: 250px;\n}\n.empty-state svg {\n height: 40%;\n max-height: 200px;\n width: auto;\n}\n.empty-state h1,\n.empty-state h2,\n.empty-state h3,\n.empty-state h4,\n.empty-state h5,\n.empty-state h6 {\n color: var(--N900);\n}\n.empty-state .subtitle {\n font-size: 13px;\n width: 300px;\n font-weight: 400;\n text-align: center;\n line-height: 1.5;\n margin-bottom: 20px;\n}\n.empty-state .cta {\n height: 36px;\n}\n.empty-state p {\n width: 300px;\n text-align: center;\n font-size: 13px;\n color: var(--N700);\n}\n.empty-state strong {\n font-size: 16px;\n margin-bottom: 4px;\n color: var(--N900);\n font-weight: normal;\n}\n.empty-state .select-popup {\n height: min-content;\n max-height: 250px;\n overflow: auto;\n padding: 8px 0;\n}\n.empty-state .empty-state__loader {\n width: 34px;\n height: 34px;\n margin-bottom: 16px;\n}\n.empty-state .empty-state__loading-text {\n font-size: 12px;\n width: 200px;\n font-weight: normal;\n font-stretch: normal;\n font-style: normal;\n line-height: 1.5;\n letter-spacing: normal;\n text-align: center;\n color: var(--N900);\n}\n.empty-state .button__icon {\n width: 16px;\n height: 16px;\n margin-left: 8px;\n}";
686
692
  styleInject(css_248z$6);
687
693
 
688
- var _g$5;
689
- 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); }
694
+ var _g$6;
695
+ 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); }
690
696
  var SvgIcProgressing = function SvgIcProgressing(props) {
691
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
697
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
692
698
  xmlns: "http://www.w3.org/2000/svg",
693
699
  viewBox: "0 0 24 24",
694
700
  width: "1em",
695
701
  height: "1em"
696
- }, props), _g$5 || (_g$5 = /*#__PURE__*/React__namespace.createElement("g", {
702
+ }, props), _g$6 || (_g$6 = /*#__PURE__*/React__namespace.createElement("g", {
697
703
  fill: "none"
698
704
  }, /*#__PURE__*/React__namespace.createElement("animateTransform", {
699
705
  attributeName: "transform",
@@ -740,8 +746,8 @@ EmptyState.Loading = Loading;
740
746
 
741
747
  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}
742
748
 
743
- function _extends$h() {
744
- _extends$h = Object.assign || function (target) {
749
+ function _extends$i() {
750
+ _extends$i = Object.assign || function (target) {
745
751
  for (var i = 1; i < arguments.length; i++) {
746
752
  var source = arguments[i];
747
753
 
@@ -755,7 +761,7 @@ function _extends$h() {
755
761
  return target;
756
762
  };
757
763
 
758
- return _extends$h.apply(this, arguments);
764
+ return _extends$i.apply(this, arguments);
759
765
  }
760
766
 
761
767
  function _objectWithoutPropertiesLoose$2(source, excluded) {
@@ -1481,7 +1487,7 @@ function ProgressBar(_ref) {
1481
1487
  isIn = _ref.isIn,
1482
1488
  theme = _ref.theme;
1483
1489
 
1484
- var style = _extends$h({}, userStyle, {
1490
+ var style = _extends$i({}, userStyle, {
1485
1491
  animationDuration: delay + "ms",
1486
1492
  animationPlayState: isRunning ? 'running' : 'paused',
1487
1493
  opacity: hide ? 0 : 1
@@ -1758,9 +1764,9 @@ var ToastContainer = function ToastContainer(props) {
1758
1764
  ,
1759
1765
  id: containerId
1760
1766
  }, getToastToRender(function (position, toastList) {
1761
- var containerStyle = !toastList.length ? _extends$h({}, style, {
1767
+ var containerStyle = !toastList.length ? _extends$i({}, style, {
1762
1768
  pointerEvents: 'none'
1763
- }) : _extends$h({}, style);
1769
+ }) : _extends$i({}, style);
1764
1770
  return React.createElement("div", {
1765
1771
  className: getClassName(position),
1766
1772
  style: containerStyle,
@@ -1867,7 +1873,7 @@ function dispatchToast(content, options) {
1867
1873
 
1868
1874
 
1869
1875
  function mergeOptions(type, options) {
1870
- return _extends$h({}, options, {
1876
+ return _extends$i({}, options, {
1871
1877
  type: options && options.type || type,
1872
1878
  toastId: getToastId(options)
1873
1879
  });
@@ -1884,7 +1890,7 @@ function toast(content, options) {
1884
1890
  }
1885
1891
 
1886
1892
  toast.loading = function (content, options) {
1887
- return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$h({
1893
+ return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$i({
1888
1894
  isLoading: true,
1889
1895
  autoClose: false,
1890
1896
  closeOnClick: false,
@@ -1900,7 +1906,7 @@ function handlePromise(promise, _ref2, options) {
1900
1906
  var id;
1901
1907
 
1902
1908
  if (pending) {
1903
- id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$h({}, options, pending));
1909
+ id = isStr(pending) ? toast.loading(pending, options) : toast.loading(pending.render, _extends$i({}, options, pending));
1904
1910
  }
1905
1911
 
1906
1912
  var resetParams = {
@@ -1919,7 +1925,7 @@ function handlePromise(promise, _ref2, options) {
1919
1925
  return;
1920
1926
  }
1921
1927
 
1922
- var baseParams = _extends$h({
1928
+ var baseParams = _extends$i({
1923
1929
  type: type
1924
1930
  }, resetParams, options, {
1925
1931
  data: result
@@ -1930,10 +1936,10 @@ function handlePromise(promise, _ref2, options) {
1930
1936
  } : input; // if the id is set we know that it's an update
1931
1937
 
1932
1938
  if (id) {
1933
- toast.update(id, _extends$h({}, baseParams, params));
1939
+ toast.update(id, _extends$i({}, baseParams, params));
1934
1940
  } else {
1935
1941
  // using toast.promise without loading
1936
- toast(params.render, _extends$h({}, baseParams, params));
1942
+ toast(params.render, _extends$i({}, baseParams, params));
1937
1943
  }
1938
1944
 
1939
1945
  return result;
@@ -1957,7 +1963,7 @@ toast.warning = /*#__PURE__*/createToastByType(TYPE.WARNING);
1957
1963
  toast.warn = toast.warning;
1958
1964
 
1959
1965
  toast.dark = function (content, options) {
1960
- return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$h({
1966
+ return dispatchToast(content, mergeOptions(TYPE.DEFAULT, _extends$i({
1961
1967
  theme: 'dark'
1962
1968
  }, options)));
1963
1969
  };
@@ -2014,7 +2020,7 @@ toast.update = function (toastId, options) {
2014
2020
  var oldOptions = toast.props,
2015
2021
  oldContent = toast.content;
2016
2022
 
2017
- var nextOptions = _extends$h({}, oldOptions, options, {
2023
+ var nextOptions = _extends$i({}, oldOptions, options, {
2018
2024
  toastId: options.toastId || toastId,
2019
2025
  updateId: generateToastId()
2020
2026
  });
@@ -4109,15 +4115,15 @@ function captureException(exception, captureContext) {
4109
4115
  return getCurrentHub().captureException(exception, { captureContext });
4110
4116
  }
4111
4117
 
4112
- var _g$4;
4113
- 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); }
4118
+ var _g$5;
4119
+ 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); }
4114
4120
  var SvgIcWarning = function SvgIcWarning(props) {
4115
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
4121
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
4116
4122
  xmlns: "http://www.w3.org/2000/svg",
4117
4123
  width: "1em",
4118
4124
  height: "1em",
4119
4125
  viewBox: "0 0 32 32"
4120
- }, props), _g$4 || (_g$4 = /*#__PURE__*/React__namespace.createElement("g", {
4126
+ }, props), _g$5 || (_g$5 = /*#__PURE__*/React__namespace.createElement("g", {
4121
4127
  fill: "none",
4122
4128
  fillRule: "evenodd"
4123
4129
  }, /*#__PURE__*/React__namespace.createElement("path", {
@@ -10232,9 +10238,9 @@ var Modal = function (_a) {
10232
10238
  };
10233
10239
 
10234
10240
  var _path$a;
10235
- 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); }
10241
+ 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); }
10236
10242
  var SvgIcCross = function SvgIcCross(props) {
10237
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
10243
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
10238
10244
  width: "1em",
10239
10245
  height: "1em",
10240
10246
  viewBox: "0 0 24 24",
@@ -14540,9 +14546,9 @@ var index = /*#__PURE__*/forwardRef( /*#__PURE__*/TippyGenerator(tippy));
14540
14546
  var Tippy = index;
14541
14547
 
14542
14548
  var _path$9;
14543
- 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); }
14549
+ 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); }
14544
14550
  var SvgIcHelp = function SvgIcHelp(props) {
14545
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
14551
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
14546
14552
  xmlns: "http://www.w3.org/2000/svg",
14547
14553
  width: "1em",
14548
14554
  height: "1em",
@@ -14555,9 +14561,9 @@ var SvgIcHelp = function SvgIcHelp(props) {
14555
14561
  };
14556
14562
 
14557
14563
  var _path$8;
14558
- 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); }
14564
+ 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); }
14559
14565
  var SvgIcHelpOutline = function SvgIcHelpOutline(props) {
14560
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
14566
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
14561
14567
  xmlns: "http://www.w3.org/2000/svg",
14562
14568
  viewBox: "0 0 17 16",
14563
14569
  width: "1em",
@@ -14615,9 +14621,9 @@ function TippyCustomized(props) {
14615
14621
  }
14616
14622
 
14617
14623
  var _path$7, _circle, _path2$1;
14618
- 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); }
14624
+ 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); }
14619
14625
  var SvgInjectTag = function SvgInjectTag(props) {
14620
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
14626
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
14621
14627
  width: "1em",
14622
14628
  height: "1em",
14623
14629
  viewBox: "0 0 20 20",
@@ -14652,9 +14658,9 @@ function PropagateTagInfo(_a) {
14652
14658
  }
14653
14659
 
14654
14660
  var _path$6;
14655
- 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); }
14661
+ 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); }
14656
14662
  var SvgIcInfoOutlined = function SvgIcInfoOutlined(props) {
14657
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
14663
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
14658
14664
  xmlns: "http://www.w3.org/2000/svg",
14659
14665
  width: "1em",
14660
14666
  height: "1em",
@@ -14888,9 +14894,9 @@ var TagDetails = function (_a) {
14888
14894
  };
14889
14895
 
14890
14896
  var _path$5;
14891
- 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); }
14897
+ 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); }
14892
14898
  var SvgIcAdd = function SvgIcAdd(props) {
14893
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
14899
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
14894
14900
  xmlns: "http://www.w3.org/2000/svg",
14895
14901
  width: "1em",
14896
14902
  height: "1em",
@@ -15013,8 +15019,8 @@ function ForceDeleteDialog(_a) {
15013
15019
  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?" })] }) })) }));
15014
15020
  }
15015
15021
 
15016
- function _extends$9() {
15017
- _extends$9 = Object.assign ? Object.assign.bind() : function (target) {
15022
+ function _extends$a() {
15023
+ _extends$a = Object.assign ? Object.assign.bind() : function (target) {
15018
15024
  for (var i = 1; i < arguments.length; i++) {
15019
15025
  var source = arguments[i];
15020
15026
  for (var key in source) {
@@ -15025,7 +15031,7 @@ function _extends$9() {
15025
15031
  }
15026
15032
  return target;
15027
15033
  };
15028
- return _extends$9.apply(this, arguments);
15034
+ return _extends$a.apply(this, arguments);
15029
15035
  }
15030
15036
 
15031
15037
  /*
@@ -18566,7 +18572,7 @@ var Menu = function Menu(props) {
18566
18572
  getStyles = props.getStyles,
18567
18573
  innerRef = props.innerRef,
18568
18574
  innerProps = props.innerProps;
18569
- return jsx("div", _extends$9({
18575
+ return jsx("div", _extends$a({
18570
18576
  css: getStyles('menu', props),
18571
18577
  className: cx({
18572
18578
  menu: true
@@ -18598,7 +18604,7 @@ var MenuList = function MenuList(props) {
18598
18604
  innerProps = props.innerProps,
18599
18605
  innerRef = props.innerRef,
18600
18606
  isMulti = props.isMulti;
18601
- return jsx("div", _extends$9({
18607
+ return jsx("div", _extends$a({
18602
18608
  css: getStyles('menuList', props),
18603
18609
  className: cx({
18604
18610
  'menu-list': true,
@@ -18629,7 +18635,7 @@ var NoOptionsMessage = function NoOptionsMessage(props) {
18629
18635
  cx = props.cx,
18630
18636
  getStyles = props.getStyles,
18631
18637
  innerProps = props.innerProps;
18632
- return jsx("div", _extends$9({
18638
+ return jsx("div", _extends$a({
18633
18639
  css: getStyles('noOptionsMessage', props),
18634
18640
  className: cx({
18635
18641
  'menu-notice': true,
@@ -18646,7 +18652,7 @@ var LoadingMessage = function LoadingMessage(props) {
18646
18652
  cx = props.cx,
18647
18653
  getStyles = props.getStyles,
18648
18654
  innerProps = props.innerProps;
18649
- return jsx("div", _extends$9({
18655
+ return jsx("div", _extends$a({
18650
18656
  css: getStyles('loadingMessage', props),
18651
18657
  className: cx({
18652
18658
  'menu-notice': true,
@@ -18734,7 +18740,7 @@ var MenuPortal = /*#__PURE__*/function (_Component2) {
18734
18740
  rect: rect
18735
18741
  }; // same wrapper element whether fixed or portalled
18736
18742
 
18737
- var menuWrapper = jsx("div", _extends$9({
18743
+ var menuWrapper = jsx("div", _extends$a({
18738
18744
  css: getStyles('menuPortal', state),
18739
18745
  className: cx({
18740
18746
  'menu-portal': true
@@ -18770,7 +18776,7 @@ var SelectContainer = function SelectContainer(props) {
18770
18776
  innerProps = props.innerProps,
18771
18777
  isDisabled = props.isDisabled,
18772
18778
  isRtl = props.isRtl;
18773
- return jsx("div", _extends$9({
18779
+ return jsx("div", _extends$a({
18774
18780
  css: getStyles('container', props),
18775
18781
  className: cx({
18776
18782
  '--is-disabled': isDisabled,
@@ -18805,7 +18811,7 @@ var ValueContainer = function ValueContainer(props) {
18805
18811
  isMulti = props.isMulti,
18806
18812
  getStyles = props.getStyles,
18807
18813
  hasValue = props.hasValue;
18808
- return jsx("div", _extends$9({
18814
+ return jsx("div", _extends$a({
18809
18815
  css: getStyles('valueContainer', props),
18810
18816
  className: cx({
18811
18817
  'value-container': true,
@@ -18831,7 +18837,7 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
18831
18837
  cx = props.cx,
18832
18838
  innerProps = props.innerProps,
18833
18839
  getStyles = props.getStyles;
18834
- return jsx("div", _extends$9({
18840
+ return jsx("div", _extends$a({
18835
18841
  css: getStyles('indicatorsContainer', props),
18836
18842
  className: cx({
18837
18843
  indicators: true
@@ -18862,7 +18868,7 @@ var Svg = function Svg(_ref) {
18862
18868
  var size = _ref.size,
18863
18869
  props = _objectWithoutProperties(_ref, _excluded$2);
18864
18870
 
18865
- return jsx("svg", _extends$9({
18871
+ return jsx("svg", _extends$a({
18866
18872
  height: size,
18867
18873
  width: size,
18868
18874
  viewBox: "0 0 20 20",
@@ -18873,14 +18879,14 @@ var Svg = function Svg(_ref) {
18873
18879
  };
18874
18880
 
18875
18881
  var CrossIcon = function CrossIcon(props) {
18876
- return jsx(Svg, _extends$9({
18882
+ return jsx(Svg, _extends$a({
18877
18883
  size: 20
18878
18884
  }, props), jsx("path", {
18879
18885
  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"
18880
18886
  }));
18881
18887
  };
18882
18888
  var DownChevron = function DownChevron(props) {
18883
- return jsx(Svg, _extends$9({
18889
+ return jsx(Svg, _extends$a({
18884
18890
  size: 20
18885
18891
  }, props), jsx("path", {
18886
18892
  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"
@@ -18913,7 +18919,7 @@ var DropdownIndicator = function DropdownIndicator(props) {
18913
18919
  cx = props.cx,
18914
18920
  getStyles = props.getStyles,
18915
18921
  innerProps = props.innerProps;
18916
- return jsx("div", _extends$9({
18922
+ return jsx("div", _extends$a({
18917
18923
  css: getStyles('dropdownIndicator', props),
18918
18924
  className: cx({
18919
18925
  indicator: true,
@@ -18928,7 +18934,7 @@ var ClearIndicator$1 = function ClearIndicator(props) {
18928
18934
  cx = props.cx,
18929
18935
  getStyles = props.getStyles,
18930
18936
  innerProps = props.innerProps;
18931
- return jsx("div", _extends$9({
18937
+ return jsx("div", _extends$a({
18932
18938
  css: getStyles('clearIndicator', props),
18933
18939
  className: cx({
18934
18940
  indicator: true,
@@ -18958,7 +18964,7 @@ var IndicatorSeparator = function IndicatorSeparator(props) {
18958
18964
  cx = props.cx,
18959
18965
  getStyles = props.getStyles,
18960
18966
  innerProps = props.innerProps;
18961
- return jsx("span", _extends$9({}, innerProps, {
18967
+ return jsx("span", _extends$a({}, innerProps, {
18962
18968
  css: getStyles('indicatorSeparator', props),
18963
18969
  className: cx({
18964
18970
  'indicator-separator': true
@@ -19013,7 +19019,7 @@ var LoadingIndicator = function LoadingIndicator(props) {
19013
19019
  getStyles = props.getStyles,
19014
19020
  innerProps = props.innerProps,
19015
19021
  isRtl = props.isRtl;
19016
- return jsx("div", _extends$9({
19022
+ return jsx("div", _extends$a({
19017
19023
  css: getStyles('loadingIndicator', props),
19018
19024
  className: cx({
19019
19025
  indicator: true,
@@ -19074,7 +19080,7 @@ var Control = function Control(props) {
19074
19080
  innerRef = props.innerRef,
19075
19081
  innerProps = props.innerProps,
19076
19082
  menuIsOpen = props.menuIsOpen;
19077
- return jsx("div", _extends$9({
19083
+ return jsx("div", _extends$a({
19078
19084
  ref: innerRef,
19079
19085
  css: getStyles('control', props),
19080
19086
  className: cx({
@@ -19106,12 +19112,12 @@ var Group = function Group(props) {
19106
19112
  label = props.label,
19107
19113
  theme = props.theme,
19108
19114
  selectProps = props.selectProps;
19109
- return jsx("div", _extends$9({
19115
+ return jsx("div", _extends$a({
19110
19116
  css: getStyles('group', props),
19111
19117
  className: cx({
19112
19118
  group: true
19113
19119
  }, className)
19114
- }, innerProps), jsx(Heading, _extends$9({}, headingProps, {
19120
+ }, innerProps), jsx(Heading, _extends$a({}, headingProps, {
19115
19121
  selectProps: selectProps,
19116
19122
  theme: theme,
19117
19123
  getStyles: getStyles,
@@ -19143,7 +19149,7 @@ var GroupHeading = function GroupHeading(props) {
19143
19149
  _cleanCommonProps.data;
19144
19150
  var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1$1);
19145
19151
 
19146
- return jsx("div", _extends$9({
19152
+ return jsx("div", _extends$a({
19147
19153
  css: getStyles('groupHeading', props),
19148
19154
  className: cx({
19149
19155
  'group-heading': true
@@ -19219,7 +19225,7 @@ var Input = function Input(props) {
19219
19225
  }, className),
19220
19226
  css: getStyles('input', props),
19221
19227
  "data-value": value || ''
19222
- }, jsx("input", _extends$9({
19228
+ }, jsx("input", _extends$a({
19223
19229
  className: cx({
19224
19230
  input: true
19225
19231
  }, inputClassName),
@@ -19289,7 +19295,7 @@ var MultiValueLabel = MultiValueGeneric;
19289
19295
  function MultiValueRemove$1(_ref5) {
19290
19296
  var children = _ref5.children,
19291
19297
  innerProps = _ref5.innerProps;
19292
- return jsx("div", _extends$9({
19298
+ return jsx("div", _extends$a({
19293
19299
  role: "button"
19294
19300
  }, innerProps), children || jsx(CrossIcon, {
19295
19301
  size: 14
@@ -19378,7 +19384,7 @@ var Option$1 = function Option(props) {
19378
19384
  isSelected = props.isSelected,
19379
19385
  innerRef = props.innerRef,
19380
19386
  innerProps = props.innerProps;
19381
- return jsx("div", _extends$9({
19387
+ return jsx("div", _extends$a({
19382
19388
  css: getStyles('option', props),
19383
19389
  className: cx({
19384
19390
  option: true,
@@ -19410,7 +19416,7 @@ var Placeholder = function Placeholder(props) {
19410
19416
  cx = props.cx,
19411
19417
  getStyles = props.getStyles,
19412
19418
  innerProps = props.innerProps;
19413
- return jsx("div", _extends$9({
19419
+ return jsx("div", _extends$a({
19414
19420
  css: getStyles('placeholder', props),
19415
19421
  className: cx({
19416
19422
  placeholder: true
@@ -19443,7 +19449,7 @@ var SingleValue = function SingleValue(props) {
19443
19449
  getStyles = props.getStyles,
19444
19450
  isDisabled = props.isDisabled,
19445
19451
  innerProps = props.innerProps;
19446
- return jsx("div", _extends$9({
19452
+ return jsx("div", _extends$a({
19447
19453
  css: getStyles('singleValue', props),
19448
19454
  className: cx({
19449
19455
  'single-value': true,
@@ -19691,7 +19697,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
19691
19697
  };
19692
19698
 
19693
19699
  var A11yText = function A11yText(props) {
19694
- return jsx("span", _extends$9({
19700
+ return jsx("span", _extends$a({
19695
19701
  css: _ref
19696
19702
  }, props));
19697
19703
  };
@@ -20227,7 +20233,7 @@ function DummyInput(_ref) {
20227
20233
  var innerRef = _ref.innerRef,
20228
20234
  props = _objectWithoutProperties(_ref, _excluded);
20229
20235
 
20230
- return jsx("input", _extends$9({
20236
+ return jsx("input", _extends$a({
20231
20237
  ref: innerRef
20232
20238
  }, props, {
20233
20239
  css: /*#__PURE__*/css$2({
@@ -21862,7 +21868,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21862
21868
 
21863
21869
  if (!isSearchable) {
21864
21870
  // use a dummy input to maintain focus/blur functionality
21865
- return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$9({
21871
+ return /*#__PURE__*/React__namespace.createElement(DummyInput, _extends$a({
21866
21872
  id: id,
21867
21873
  innerRef: this.getInputRef,
21868
21874
  onBlur: this.onInputBlur,
@@ -21876,7 +21882,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21876
21882
  }, ariaAttributes));
21877
21883
  }
21878
21884
 
21879
- return /*#__PURE__*/React__namespace.createElement(Input, _extends$9({}, commonProps, {
21885
+ return /*#__PURE__*/React__namespace.createElement(Input, _extends$a({}, commonProps, {
21880
21886
  autoCapitalize: "none",
21881
21887
  autoComplete: "off",
21882
21888
  autoCorrect: "off",
@@ -21920,7 +21926,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21920
21926
  isFocused = _this$state5.isFocused;
21921
21927
 
21922
21928
  if (!this.hasValue() || !controlShouldRenderValue) {
21923
- return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$9({}, commonProps, {
21929
+ return inputValue ? null : /*#__PURE__*/React__namespace.createElement(Placeholder, _extends$a({}, commonProps, {
21924
21930
  key: "placeholder",
21925
21931
  isDisabled: isDisabled,
21926
21932
  isFocused: isFocused,
@@ -21934,7 +21940,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21934
21940
  return selectValue.map(function (opt, index) {
21935
21941
  var isOptionFocused = opt === focusedValue;
21936
21942
  var key = "".concat(_this3.getOptionLabel(opt), "-").concat(_this3.getOptionValue(opt));
21937
- return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$9({}, commonProps, {
21943
+ return /*#__PURE__*/React__namespace.createElement(MultiValue, _extends$a({}, commonProps, {
21938
21944
  components: {
21939
21945
  Container: MultiValueContainer,
21940
21946
  Label: MultiValueLabel,
@@ -21966,7 +21972,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21966
21972
  }
21967
21973
 
21968
21974
  var singleValue = selectValue[0];
21969
- return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$9({}, commonProps, {
21975
+ return /*#__PURE__*/React__namespace.createElement(SingleValue, _extends$a({}, commonProps, {
21970
21976
  data: singleValue,
21971
21977
  isDisabled: isDisabled
21972
21978
  }), this.formatOptionLabel(singleValue, 'value'));
@@ -21992,7 +21998,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
21992
21998
  onTouchEnd: this.onClearIndicatorTouchEnd,
21993
21999
  'aria-hidden': 'true'
21994
22000
  };
21995
- return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$9({}, commonProps, {
22001
+ return /*#__PURE__*/React__namespace.createElement(ClearIndicator, _extends$a({}, commonProps, {
21996
22002
  innerProps: innerProps,
21997
22003
  isFocused: isFocused
21998
22004
  }));
@@ -22012,7 +22018,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22012
22018
  var innerProps = {
22013
22019
  'aria-hidden': 'true'
22014
22020
  };
22015
- return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$9({}, commonProps, {
22021
+ return /*#__PURE__*/React__namespace.createElement(LoadingIndicator, _extends$a({}, commonProps, {
22016
22022
  innerProps: innerProps,
22017
22023
  isDisabled: isDisabled,
22018
22024
  isFocused: isFocused
@@ -22030,7 +22036,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22030
22036
  var commonProps = this.commonProps;
22031
22037
  var isDisabled = this.props.isDisabled;
22032
22038
  var isFocused = this.state.isFocused;
22033
- return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$9({}, commonProps, {
22039
+ return /*#__PURE__*/React__namespace.createElement(IndicatorSeparator, _extends$a({}, commonProps, {
22034
22040
  isDisabled: isDisabled,
22035
22041
  isFocused: isFocused
22036
22042
  }));
@@ -22050,7 +22056,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22050
22056
  onTouchEnd: this.onDropdownIndicatorTouchEnd,
22051
22057
  'aria-hidden': 'true'
22052
22058
  };
22053
- return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$9({}, commonProps, {
22059
+ return /*#__PURE__*/React__namespace.createElement(DropdownIndicator, _extends$a({}, commonProps, {
22054
22060
  innerProps: innerProps,
22055
22061
  isDisabled: isDisabled,
22056
22062
  isFocused: isFocused
@@ -22113,7 +22119,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22113
22119
  onMouseOver: onHover,
22114
22120
  tabIndex: -1
22115
22121
  };
22116
- return /*#__PURE__*/React__namespace.createElement(Option, _extends$9({}, commonProps, {
22122
+ return /*#__PURE__*/React__namespace.createElement(Option, _extends$a({}, commonProps, {
22117
22123
  innerProps: innerProps,
22118
22124
  data: data,
22119
22125
  isDisabled: isDisabled,
@@ -22137,7 +22143,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22137
22143
  groupIndex = item.index;
22138
22144
  var groupId = "".concat(_this4.getElementId('group'), "-").concat(groupIndex);
22139
22145
  var headingId = "".concat(groupId, "-heading");
22140
- return /*#__PURE__*/React__namespace.createElement(Group, _extends$9({}, commonProps, {
22146
+ return /*#__PURE__*/React__namespace.createElement(Group, _extends$a({}, commonProps, {
22141
22147
  key: groupId,
22142
22148
  data: _data,
22143
22149
  options: options,
@@ -22176,12 +22182,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22176
22182
  menuPosition: menuPosition,
22177
22183
  menuShouldScrollIntoView: menuShouldScrollIntoView
22178
22184
  };
22179
- var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$9({}, commonProps, menuPlacementProps), function (_ref4) {
22185
+ var menuElement = /*#__PURE__*/React__namespace.createElement(MenuPlacer, _extends$a({}, commonProps, menuPlacementProps), function (_ref4) {
22180
22186
  var ref = _ref4.ref,
22181
22187
  _ref4$placerProps = _ref4.placerProps,
22182
22188
  placement = _ref4$placerProps.placement,
22183
22189
  maxHeight = _ref4$placerProps.maxHeight;
22184
- return /*#__PURE__*/React__namespace.createElement(Menu, _extends$9({}, commonProps, menuPlacementProps, {
22190
+ return /*#__PURE__*/React__namespace.createElement(Menu, _extends$a({}, commonProps, menuPlacementProps, {
22185
22191
  innerRef: ref,
22186
22192
  innerProps: {
22187
22193
  onMouseDown: _this4.onMenuMouseDown,
@@ -22196,7 +22202,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22196
22202
  onBottomArrive: onMenuScrollToBottom,
22197
22203
  lockEnabled: menuShouldBlockScroll
22198
22204
  }, function (scrollTargetRef) {
22199
- return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$9({}, commonProps, {
22205
+ return /*#__PURE__*/React__namespace.createElement(MenuList, _extends$a({}, commonProps, {
22200
22206
  innerRef: function innerRef(instance) {
22201
22207
  _this4.getMenuListRef(instance);
22202
22208
 
@@ -22211,7 +22217,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22211
22217
  // so we use the same component. the actual portalling logic is forked
22212
22218
  // within the component based on `menuPosition`
22213
22219
 
22214
- return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$9({}, commonProps, {
22220
+ return menuPortalTarget || menuPosition === 'fixed' ? /*#__PURE__*/React__namespace.createElement(MenuPortal, _extends$a({}, commonProps, {
22215
22221
  appendTo: menuPortalTarget,
22216
22222
  controlElement: this.controlRef,
22217
22223
  menuPlacement: menuPlacement,
@@ -22276,7 +22282,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22276
22282
  isFocused = _this$state6.isFocused,
22277
22283
  selectValue = _this$state6.selectValue;
22278
22284
  var focusableOptions = this.getFocusableOptions();
22279
- return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$9({}, commonProps, {
22285
+ return /*#__PURE__*/React__namespace.createElement(LiveRegion, _extends$a({}, commonProps, {
22280
22286
  id: this.getElementId('live-region'),
22281
22287
  ariaSelection: ariaSelection,
22282
22288
  focusedOption: focusedOption,
@@ -22302,7 +22308,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22302
22308
  menuIsOpen = _this$props14.menuIsOpen;
22303
22309
  var isFocused = this.state.isFocused;
22304
22310
  var commonProps = this.commonProps = this.getCommonProps();
22305
- return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$9({}, commonProps, {
22311
+ return /*#__PURE__*/React__namespace.createElement(SelectContainer, _extends$a({}, commonProps, {
22306
22312
  className: className,
22307
22313
  innerProps: {
22308
22314
  id: id,
@@ -22310,7 +22316,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22310
22316
  },
22311
22317
  isDisabled: isDisabled,
22312
22318
  isFocused: isFocused
22313
- }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$9({}, commonProps, {
22319
+ }), this.renderLiveRegion(), /*#__PURE__*/React__namespace.createElement(Control, _extends$a({}, commonProps, {
22314
22320
  innerRef: this.getControlRef,
22315
22321
  innerProps: {
22316
22322
  onMouseDown: this.onControlMouseDown,
@@ -22319,9 +22325,9 @@ var Select$1 = /*#__PURE__*/function (_Component) {
22319
22325
  isDisabled: isDisabled,
22320
22326
  isFocused: isFocused,
22321
22327
  menuIsOpen: menuIsOpen
22322
- }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$9({}, commonProps, {
22328
+ }), /*#__PURE__*/React__namespace.createElement(ValueContainer, _extends$a({}, commonProps, {
22323
22329
  isDisabled: isDisabled
22324
- }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$9({}, commonProps, {
22330
+ }), this.renderPlaceholderOrValue(), this.renderInput()), /*#__PURE__*/React__namespace.createElement(IndicatorsContainer, _extends$a({}, commonProps, {
22325
22331
  isDisabled: isDisabled
22326
22332
  }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
22327
22333
  }
@@ -22394,22 +22400,22 @@ Select$1.defaultProps = defaultProps;
22394
22400
 
22395
22401
  var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
22396
22402
  var baseSelectProps = useStateManager(props);
22397
- return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$9({
22403
+ return /*#__PURE__*/React__namespace.createElement(Select$1, _extends$a({
22398
22404
  ref: ref
22399
22405
  }, baseSelectProps));
22400
22406
  });
22401
22407
 
22402
22408
  var Select = StateManagedSelect;
22403
22409
 
22404
- var _g$3;
22405
- 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); }
22410
+ var _g$4;
22411
+ 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); }
22406
22412
  var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
22407
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
22413
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
22408
22414
  xmlns: "http://www.w3.org/2000/svg",
22409
22415
  viewBox: "0 0 28 28",
22410
22416
  width: "1em",
22411
22417
  height: "1em"
22412
- }, props), _g$3 || (_g$3 = /*#__PURE__*/React__namespace.createElement("g", {
22418
+ }, props), _g$4 || (_g$4 = /*#__PURE__*/React__namespace.createElement("g", {
22413
22419
  fill: "none",
22414
22420
  fillRule: "evenodd",
22415
22421
  transform: "translate(2 2)"
@@ -22426,9 +22432,9 @@ var SvgIcAppstatusCancelled = function SvgIcAppstatusCancelled(props) {
22426
22432
  };
22427
22433
 
22428
22434
  var _path$4;
22429
- 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); }
22435
+ 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); }
22430
22436
  var SvgIcCheck = function SvgIcCheck(props) {
22431
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
22437
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
22432
22438
  xmlns: "http://www.w3.org/2000/svg",
22433
22439
  width: "1em",
22434
22440
  height: "1em",
@@ -22444,15 +22450,15 @@ var SvgIcCheck = function SvgIcCheck(props) {
22444
22450
  })));
22445
22451
  };
22446
22452
 
22447
- var _g$2;
22448
- 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); }
22453
+ var _g$3;
22454
+ 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); }
22449
22455
  var SvgIcErrorMedium = function SvgIcErrorMedium(props) {
22450
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
22456
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
22451
22457
  xmlns: "http://www.w3.org/2000/svg",
22452
22458
  width: "1em",
22453
22459
  height: "1em",
22454
22460
  viewBox: "0 0 20 21"
22455
- }, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
22461
+ }, props), _g$3 || (_g$3 = /*#__PURE__*/React__namespace.createElement("g", {
22456
22462
  fill: "none",
22457
22463
  fillRule: "evenodd"
22458
22464
  }, /*#__PURE__*/React__namespace.createElement("path", {
@@ -22567,6 +22573,7 @@ function getUserRole(appName) {
22567
22573
  function setImageTags(request, pipelineId, artifactId) {
22568
22574
  return post("".concat(ROUTES.IMAGE_TAGGING, "/").concat(pipelineId, "/").concat(artifactId), request);
22569
22575
  }
22576
+ // TODO: Add enum for filterState as well
22570
22577
  var getCDMaterials = function (cdMaterialId, stageType, abortSignal, isApprovalNode, imageTag) {
22571
22578
  var URL = (!imageTag) ? "app/cd-pipeline/".concat(cdMaterialId, "/material?stage=").concat(stageMap[stageType]) : "app/cd-pipeline/".concat(cdMaterialId, "/material?stage=").concat(stageMap[stageType], "&search=").concat(imageTag);
22572
22579
  return get(URL, {
@@ -22581,7 +22588,9 @@ var getCDMaterials = function (cdMaterialId, stageType, abortSignal, isApprovalN
22581
22588
  }
22582
22589
  else {
22583
22590
  var materials = artifacts.map(function (material, index) {
22591
+ var _a;
22584
22592
  var artifactStatusValue = '';
22593
+ var filterState = (_a = material.filterState) !== null && _a !== void 0 ? _a : exports.FilterStates.ALLOWED;
22585
22594
  return {
22586
22595
  index: index,
22587
22596
  id: material.id,
@@ -22601,7 +22610,7 @@ var getCDMaterials = function (cdMaterialId, stageType, abortSignal, isApprovalN
22601
22610
  vulnerabilitiesLoading: true,
22602
22611
  scanned: material.scanned,
22603
22612
  scanEnabled: material.scanEnabled,
22604
- isSelected: !material.vulnerable && index === 0,
22613
+ isSelected: !material.vulnerable && filterState === exports.FilterStates.ALLOWED && index === 0,
22605
22614
  vulnerable: material.vulnerable,
22606
22615
  runningOnParentCd: material.runningOnParentCd,
22607
22616
  artifactStatus: artifactStatusValue,
@@ -22628,6 +22637,7 @@ var getCDMaterials = function (cdMaterialId, stageType, abortSignal, isApprovalN
22628
22637
  };
22629
22638
  })
22630
22639
  : [],
22640
+ filterState: filterState,
22631
22641
  };
22632
22642
  });
22633
22643
  return {
@@ -22821,15 +22831,15 @@ exports.ConsequenceAction = void 0;
22821
22831
  ConsequenceAction["ALLOW_FOREVER"] = "ALLOW_FOREVER";
22822
22832
  })(exports.ConsequenceAction || (exports.ConsequenceAction = {}));
22823
22833
 
22824
- var _g$1;
22825
- 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); }
22834
+ var _g$2;
22835
+ 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); }
22826
22836
  var SvgIcInfoFilled = function SvgIcInfoFilled(props) {
22827
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
22837
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
22828
22838
  xmlns: "http://www.w3.org/2000/svg",
22829
22839
  width: "1em",
22830
22840
  height: "1em",
22831
22841
  viewBox: "0 0 32 32"
22832
- }, props), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
22842
+ }, props), _g$2 || (_g$2 = /*#__PURE__*/React__namespace.createElement("g", {
22833
22843
  fill: "none",
22834
22844
  fillRule: "evenodd"
22835
22845
  }, /*#__PURE__*/React__namespace.createElement("path", {
@@ -22904,9 +22914,9 @@ function DeleteComponent(_a) {
22904
22914
  }
22905
22915
 
22906
22916
  var _path$3;
22907
- 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); }
22917
+ 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); }
22908
22918
  var SvgIcPencil = function SvgIcPencil(props) {
22909
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
22919
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
22910
22920
  width: "1em",
22911
22921
  height: "1em",
22912
22922
  viewBox: "0 0 20 20",
@@ -22922,9 +22932,9 @@ var SvgIcPencil = function SvgIcPencil(props) {
22922
22932
  };
22923
22933
 
22924
22934
  var _path$2, _path2, _path3;
22925
- 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); }
22935
+ 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); }
22926
22936
  var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
22927
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
22937
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
22928
22938
  width: "1em",
22929
22939
  height: "1em",
22930
22940
  viewBox: "0 0 12 12",
@@ -22949,9 +22959,9 @@ var SvgIcArrowCounterClockwise = function SvgIcArrowCounterClockwise(props) {
22949
22959
  };
22950
22960
 
22951
22961
  var _path$1;
22952
- 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); }
22962
+ 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); }
22953
22963
  var SvgIcMinus = function SvgIcMinus(props) {
22954
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
22964
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
22955
22965
  xmlns: "http://www.w3.org/2000/svg",
22956
22966
  width: "1em",
22957
22967
  height: "1em",
@@ -22964,15 +22974,15 @@ var SvgIcMinus = function SvgIcMinus(props) {
22964
22974
  })));
22965
22975
  };
22966
22976
 
22967
- var _g;
22968
- 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); }
22977
+ var _g$1;
22978
+ 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); }
22969
22979
  var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
22970
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
22980
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
22971
22981
  xmlns: "http://www.w3.org/2000/svg",
22972
22982
  width: "1em",
22973
22983
  height: "1em",
22974
22984
  viewBox: "0 0 20 20"
22975
- }, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
22985
+ }, props), _g$1 || (_g$1 = /*#__PURE__*/React__namespace.createElement("g", {
22976
22986
  fill: "none",
22977
22987
  fillRule: "evenodd"
22978
22988
  }, /*#__PURE__*/React__namespace.createElement("path", {
@@ -22985,9 +22995,9 @@ var SvgIcErrorExclamation = function SvgIcErrorExclamation(props) {
22985
22995
  };
22986
22996
 
22987
22997
  var _path;
22988
- 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); }
22998
+ 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); }
22989
22999
  var SvgIcEnter = function SvgIcEnter(props) {
22990
- return /*#__PURE__*/React__namespace.createElement("svg", _extends({
23000
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
22991
23001
  width: "1em",
22992
23002
  height: "1em",
22993
23003
  viewBox: "0 0 16 16",
@@ -23353,6 +23363,95 @@ var ResizableTextarea = function (_a) {
23353
23363
  return (jsxRuntime.jsx("textarea", __assign({ "data-testid": dataTestId, ref: function (el) { return (_textRef.current = el); }, value: text, placeholder: placeholder, className: "dc__resizable-textarea ".concat(className), onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, style: { lineHeight: "".concat(lineHeight, "px"), padding: "".concat(padding, "px") }, spellCheck: false, disabled: disabled }, props)));
23354
23364
  };
23355
23365
 
23366
+ function useDebouncedEffect(callback, delay, deps) {
23367
+ if (deps === void 0) { deps = []; }
23368
+ // function will be executed only after the specified time once the user stops firing the event.
23369
+ var firstUpdate = React.useRef(true);
23370
+ React.useEffect(function () {
23371
+ if (firstUpdate.current) {
23372
+ firstUpdate.current = false;
23373
+ return;
23374
+ }
23375
+ var handler = setTimeout(function () {
23376
+ callback();
23377
+ }, delay);
23378
+ return function () {
23379
+ clearTimeout(handler);
23380
+ };
23381
+ }, __spreadArray([delay], __read(deps), false));
23382
+ }
23383
+
23384
+ var _g;
23385
+ 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); }
23386
+ var SvgIcErrorCross = function SvgIcErrorCross(props) {
23387
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
23388
+ xmlns: "http://www.w3.org/2000/svg",
23389
+ width: "1em",
23390
+ height: "1em",
23391
+ viewBox: "0 0 32 32"
23392
+ }, props), _g || (_g = /*#__PURE__*/React__namespace.createElement("g", {
23393
+ transform: "translate(2.667 2.667)",
23394
+ fill: "none",
23395
+ fillRule: "evenodd"
23396
+ }, /*#__PURE__*/React__namespace.createElement("rect", {
23397
+ width: 26.667,
23398
+ height: 26.667,
23399
+ className: "ic-error-cross_svg__fill-color",
23400
+ fill: "#596168",
23401
+ rx: 13.333
23402
+ }), /*#__PURE__*/React__namespace.createElement("path", {
23403
+ fill: "#FFF",
23404
+ fillRule: "nonzero",
23405
+ d: "M8.62 8.62a1.332 1.332 0 0 1 1.885 0l2.828 2.827 2.829-2.828a1.334 1.334 0 0 1 1.777-.097l.108.097a1.333 1.333 0 0 1 0 1.886l-2.828 2.828 2.828 2.829c.486.486.519 1.254.098 1.777l-.098.108a1.332 1.332 0 0 1-1.885 0l-2.83-2.828-2.827 2.828a1.334 1.334 0 0 1-1.777.098l-.109-.098a1.333 1.333 0 0 1 0-1.885l2.828-2.83-2.828-2.827a1.334 1.334 0 0 1-.097-1.777z"
23406
+ }))));
23407
+ };
23408
+
23409
+ /**
23410
+ * @param onSearch - Callback function to be called on search
23411
+ * @param Icon - (Optional) Icon to be shown before the input
23412
+ * @param iconClass - (Optional) Class for the icon
23413
+ * @param children - (Optional) In case we want to add another button or any other element
23414
+ * @param placeholder - (Optional) Placeholder for the input
23415
+ * @param containerClass - (Optional) Class for the container
23416
+ * @param inputClass - (Optional) Class for the input field
23417
+ * @param debounceTimeout - (Optional) Timeout for the debounce with default value of 500ms
23418
+ * @param clearSearch - (Optional) To clear the search text
23419
+ * @param showClearIcon - (Optional) To show the clear icon default value is true
23420
+ */
23421
+ function DebouncedSearch(_a) {
23422
+ var onSearch = _a.onSearch, Icon = _a.Icon, children = _a.children, placeholder = _a.placeholder, _b = _a.containerClass, containerClass = _b === void 0 ? '' : _b, _c = _a.iconClass, iconClass = _c === void 0 ? '' : _c, _d = _a.inputClass, inputClass = _d === void 0 ? '' : _d, _e = _a.debounceTimeout, debounceTimeout = _e === void 0 ? 500 : _e, clearSearch = _a.clearSearch, _f = _a.showClearIcon, showClearIcon = _f === void 0 ? true : _f;
23423
+ var _g = __read(React.useState(''), 2), searchText = _g[0], setSearchText = _g[1];
23424
+ React.useEffect(function () {
23425
+ setSearchText('');
23426
+ }, [clearSearch]);
23427
+ var handleSearchTextChange = function (e) {
23428
+ setSearchText(e.target.value);
23429
+ };
23430
+ var handleClearSearch = function () {
23431
+ setSearchText('');
23432
+ };
23433
+ useDebouncedEffect(function () { return onSearch(searchText); }, debounceTimeout, [searchText, onSearch]);
23434
+ return (jsxRuntime.jsxs("div", __assign({ className: containerClass }, { children: [Icon && jsxRuntime.jsx(Icon, { className: iconClass }), jsxRuntime.jsx("input", { type: "text", className: inputClass, placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : 'Search', value: searchText, onChange: handleSearchTextChange, autoFocus: true, "data-testid": "debounced-search" }), showClearIcon && !!searchText && (jsxRuntime.jsx("button", __assign({ type: "button", className: "dc__outline-none-imp dc__no-border p-0 bc-n50 flex", onClick: handleClearSearch, "data-testid": "clear-search" }, { children: jsxRuntime.jsx(SvgIcErrorCross, { className: "icon-dim-20 icon-n6" }) }))), children] })));
23435
+ }
23436
+
23437
+ // This is meant to be a reusable component that will provide a grid like dynamic layout where xs is the number of columns out of 12 that the item will take up
23438
+ function Grid(_a) {
23439
+ var container = _a.container, _b = _a.spacing, spacing = _b === void 0 ? 0 : _b, item = _a.item, xs = _a.xs, _c = _a.containerClass, containerClass = _c === void 0 ? '' : _c, _d = _a.itemClass, itemClass = _d === void 0 ? '' : _d, children = _a.children;
23440
+ var containerStyles = container ? { gap: spacing + 'px' } : {};
23441
+ if (item) {
23442
+ var getColumnWidth = function () {
23443
+ var percentageWidth = (xs / 12) * 100;
23444
+ // DONT CHANGE IT FROM CALC SINCE CALC CONVERTS TO PX which is needed to handle text overflow
23445
+ return "calc(".concat(percentageWidth, "%)");
23446
+ };
23447
+ var itemStyles = {
23448
+ flex: "1 1 ".concat(getColumnWidth()),
23449
+ };
23450
+ return (jsxRuntime.jsx("div", __assign({ className: "p-0 ".concat(itemClass), style: itemStyles }, { children: children })));
23451
+ }
23452
+ return (jsxRuntime.jsx("div", __assign({ className: "flex-wrap flexbox ".concat(container ? containerClass : ''), style: containerStyles }, { children: children })));
23453
+ }
23454
+
23356
23455
  exports.BreadCrumb = BreadCrumb;
23357
23456
  exports.BreadcrumbStore = Store;
23358
23457
  exports.BuildStageVariable = BuildStageVariable;
@@ -23366,6 +23465,7 @@ exports.CustomSelect = CustomSelect;
23366
23465
  exports.DEFAULT_TAG_DATA = DEFAULT_TAG_DATA;
23367
23466
  exports.DOCUMENTATION = DOCUMENTATION;
23368
23467
  exports.DOCUMENTATION_HOME_PAGE = DOCUMENTATION_HOME_PAGE;
23468
+ exports.DebouncedSearch = DebouncedSearch;
23369
23469
  exports.DeleteComponent = DeleteComponent;
23370
23470
  exports.DeleteDialog = DeleteDialog;
23371
23471
  exports.DetailsProgressing = DetailsProgressing;
@@ -23378,6 +23478,7 @@ exports.ErrorScreenManager = ErrorScreenManager;
23378
23478
  exports.ErrorScreenNotAuthorized = ErrorScreenNotAuthorized;
23379
23479
  exports.ForceDeleteDialog = ForceDeleteDialog;
23380
23480
  exports.GenericEmptyState = GenericEmptyState;
23481
+ exports.Grid = Grid;
23381
23482
  exports.Host = Host;
23382
23483
  exports.ImageTagButton = ImageTagButton;
23383
23484
  exports.ImageTagsContainer = ImageTagsContainer;