@commercetools-frontend/experimental-components 5.4.5 → 6.0.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.
@@ -14,9 +14,9 @@ var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/obje
14
14
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
15
15
  var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck');
16
16
  var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
17
- var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
18
17
  var _possibleConstructorReturn = require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
19
18
  var _getPrototypeOf = require('@babel/runtime-corejs3/helpers/getPrototypeOf');
19
+ var _inherits = require('@babel/runtime-corejs3/helpers/inherits');
20
20
  var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
21
21
  var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
22
22
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
@@ -234,6 +234,9 @@ const INTERVALS_IN_SECONDS = {
234
234
  };
235
235
  const EXCLUDING_PRODUCTS = 'excludingProducts';
236
236
 
237
+ // TODO: apply a more robust solution to overlaying issues
238
+ const Z_INDEX_DROPDOWN = 30000;
239
+
237
240
  const formats = {
238
241
  en: [',', '.'],
239
242
  de: ['.', ','],
@@ -412,6 +415,11 @@ const messages$K = reactIntl.defineMessages({
412
415
  id: 'Validation.invalid',
413
416
  description: 'An error message to show the id is invalid',
414
417
  defaultMessage: 'The resource id is invalid'
418
+ },
419
+ uuid: {
420
+ id: 'Validation.uuid',
421
+ description: 'An error message to show the id is not a valid uuid',
422
+ defaultMessage: 'Invalid ID format. Please enter a valid ID.'
415
423
  }
416
424
  });
417
425
 
@@ -1674,8 +1682,8 @@ const getData = (code, field) => {
1674
1682
  };
1675
1683
  const getFractionDigit = code => getData(code, 'fractionDigit');
1676
1684
 
1677
- function ownKeys$1p(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1678
- function _objectSpread$1p(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1p(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1p(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
1685
+ function ownKeys$1q(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1686
+ function _objectSpread$1q(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1q(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1q(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
1679
1687
  function formatMoneyRangeValue(value, intl) {
1680
1688
  if (value.from === value.to) return formatMoneyValue(value.from, value.currency, intl);
1681
1689
  if (value.from && value.to) return `${formatMoneyValue(value.from, value.currency, intl)} -
@@ -1685,7 +1693,7 @@ function formatMoneyRangeValue(value, intl) {
1685
1693
  return '';
1686
1694
  }
1687
1695
  function formatMoneyValue(amount, currency, intl) {
1688
- return formatMoney$2(_objectSpread$1p({
1696
+ return formatMoney$2(_objectSpread$1q({
1689
1697
  centAmount: amount,
1690
1698
  fractionDigits: getFractionDigit(currency)
1691
1699
  }, currency ? {
@@ -1701,7 +1709,7 @@ function getFractionedAmount(moneyValue) {
1701
1709
  return amount / 10 ** fractionDigits;
1702
1710
  }
1703
1711
  function formatMoney$2(moneyValue, intl, options) {
1704
- return intl.formatNumber(moneyValue.fractionedAmount ?? getFractionedAmount(moneyValue), _objectSpread$1p({
1712
+ return intl.formatNumber(moneyValue.fractionedAmount ?? getFractionedAmount(moneyValue), _objectSpread$1q({
1705
1713
  style: 'currency',
1706
1714
  currency: moneyValue.currencyCode,
1707
1715
  minimumFractionDigits: moneyValue.fractionDigits
@@ -1948,8 +1956,8 @@ const setDisplayName = nextDisplayName => Component => {
1948
1956
 
1949
1957
  const wrapDisplayName = (BaseComponent, hocName) => `${hocName}(${getDisplayName(BaseComponent)})`;
1950
1958
 
1951
- function ownKeys$1o(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1952
- function _objectSpread$1o(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1o(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1o(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
1959
+ function ownKeys$1p(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1960
+ function _objectSpread$1p(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1p(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1p(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
1953
1961
  const injectDataTablePaginationState = initialValues => Component => {
1954
1962
  const WithDataTablePaginationState = props => {
1955
1963
  const _usePaginationState = uiKit.usePaginationState({
@@ -1962,7 +1970,7 @@ const injectDataTablePaginationState = initialValues => Component => {
1962
1970
  key: initialValues?.tableSorting?.key,
1963
1971
  order: initialValues?.tableSorting?.order
1964
1972
  });
1965
- return jsxRuntime.jsx(Component, _objectSpread$1o(_objectSpread$1o({}, props), {}, {
1973
+ return jsxRuntime.jsx(Component, _objectSpread$1p(_objectSpread$1p({}, props), {}, {
1966
1974
  dataTablePaginationState: {
1967
1975
  page,
1968
1976
  perPage,
@@ -1974,8 +1982,8 @@ const injectDataTablePaginationState = initialValues => Component => {
1974
1982
  return WithDataTablePaginationState;
1975
1983
  };
1976
1984
 
1977
- function ownKeys$1n(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1978
- function _objectSpread$1n(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1n(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1n(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
1985
+ function ownKeys$1o(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
1986
+ function _objectSpread$1o(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1o(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1o(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
1979
1987
  const injectNotifications = function () {
1980
1988
  let propName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'notifications';
1981
1989
  return Component => {
@@ -1990,7 +1998,7 @@ const injectNotifications = function () {
1990
1998
  onActionError,
1991
1999
  hideAllPageNotifications
1992
2000
  };
1993
- return jsxRuntime.jsx(Component, _objectSpread$1n(_objectSpread$1n({}, props), {}, {
2001
+ return jsxRuntime.jsx(Component, _objectSpread$1o(_objectSpread$1o({}, props), {}, {
1994
2002
  [propName]: notifications
1995
2003
  }));
1996
2004
  };
@@ -1999,22 +2007,22 @@ const injectNotifications = function () {
1999
2007
  };
2000
2008
  };
2001
2009
 
2002
- function ownKeys$1m(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2003
- function _objectSpread$1m(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1m(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1m(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2010
+ function ownKeys$1n(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2011
+ function _objectSpread$1n(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1n(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1n(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2004
2012
  function isPropsMapper(mapProps) {
2005
2013
  return typeof mapProps === 'function';
2006
2014
  }
2007
2015
  const withProps = mapProps => Component => {
2008
2016
  const EnhancedWithProps = ownProps => {
2009
- const enhancedProps = isPropsMapper(mapProps) ? _objectSpread$1m(_objectSpread$1m({}, ownProps), mapProps(ownProps)) : _objectSpread$1m(_objectSpread$1m({}, ownProps), mapProps);
2010
- return jsxRuntime.jsx(Component, _objectSpread$1m({}, enhancedProps));
2017
+ const enhancedProps = isPropsMapper(mapProps) ? _objectSpread$1n(_objectSpread$1n({}, ownProps), mapProps(ownProps)) : _objectSpread$1n(_objectSpread$1n({}, ownProps), mapProps);
2018
+ return jsxRuntime.jsx(Component, _objectSpread$1n({}, enhancedProps));
2011
2019
  };
2012
2020
  EnhancedWithProps.displayName = wrapDisplayName(Component, 'withProps');
2013
2021
  return EnhancedWithProps;
2014
2022
  };
2015
2023
 
2016
- function ownKeys$1l(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2017
- function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1l(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1l(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2024
+ function ownKeys$1m(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2025
+ function _objectSpread$1m(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1m(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1m(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2018
2026
  const useRedirectEffect = _ref => {
2019
2027
  let goTo = _ref.goTo;
2020
2028
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -2034,30 +2042,30 @@ const defaultOptions$5 = {
2034
2042
  skip: () => false
2035
2043
  };
2036
2044
  const withRedirectTo = options => Component => {
2037
- const mergedOptions = _objectSpread$1l(_objectSpread$1l({}, defaultOptions$5), options);
2045
+ const mergedOptions = _objectSpread$1m(_objectSpread$1m({}, defaultOptions$5), options);
2038
2046
  const WithRedirectTo = props => {
2039
2047
  if (!mergedOptions.skip(props)) {
2040
2048
  return jsxRuntime.jsx(RedirectTo, {
2041
2049
  goTo: options.selectGoTo(props)
2042
2050
  });
2043
2051
  }
2044
- return jsxRuntime.jsx(Component, _objectSpread$1l({}, props));
2052
+ return jsxRuntime.jsx(Component, _objectSpread$1m({}, props));
2045
2053
  };
2046
2054
  WithRedirectTo.displayName = 'WithFirstStepRedirect';
2047
2055
  return WithRedirectTo;
2048
2056
  };
2049
2057
 
2050
- function ownKeys$1k(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2051
- function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1k(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1k(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2058
+ function ownKeys$1l(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2059
+ function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1l(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1l(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2052
2060
  const defaultOptions$4 = {
2053
2061
  propName: 'modalState',
2054
2062
  isInitiallyOpen: false
2055
2063
  };
2056
2064
  const injectModalState$1 = options => Component => {
2057
- const mergedOptions = _objectSpread$1k(_objectSpread$1k({}, defaultOptions$4), options);
2065
+ const mergedOptions = _objectSpread$1l(_objectSpread$1l({}, defaultOptions$4), options);
2058
2066
  const WithModalState = props => {
2059
2067
  const modalState = applicationComponents.useModalState(mergedOptions.isInitiallyOpen);
2060
- return jsxRuntime.jsx(Component, _objectSpread$1k(_objectSpread$1k({}, props), {}, {
2068
+ return jsxRuntime.jsx(Component, _objectSpread$1l(_objectSpread$1l({}, props), {}, {
2061
2069
  [mergedOptions.propName]: modalState
2062
2070
  }));
2063
2071
  };
@@ -2065,17 +2073,17 @@ const injectModalState$1 = options => Component => {
2065
2073
  return WithModalState;
2066
2074
  };
2067
2075
 
2068
- function ownKeys$1j(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2069
- function _objectSpread$1j(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1j(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1j(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2076
+ function ownKeys$1k(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2077
+ function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1k(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1k(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2070
2078
  const defaultOptions$3 = {
2071
2079
  propName: 'toggleState',
2072
2080
  isInitiallyOpen: false
2073
2081
  };
2074
2082
  const injectModalState = options => Component => {
2075
- const mergedOptions = _objectSpread$1j(_objectSpread$1j({}, defaultOptions$3), options);
2083
+ const mergedOptions = _objectSpread$1k(_objectSpread$1k({}, defaultOptions$3), options);
2076
2084
  const WithToggleState = props => {
2077
2085
  const toggleState = uiKit.useToggleState(mergedOptions.isInitiallyOpen);
2078
- return jsxRuntime.jsx(Component, _objectSpread$1j(_objectSpread$1j({}, props), {}, {
2086
+ return jsxRuntime.jsx(Component, _objectSpread$1k(_objectSpread$1k({}, props), {}, {
2079
2087
  [mergedOptions.propName]: toggleState
2080
2088
  }));
2081
2089
  };
@@ -2083,8 +2091,8 @@ const injectModalState = options => Component => {
2083
2091
  return WithToggleState;
2084
2092
  };
2085
2093
 
2086
- function ownKeys$1i(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2087
- function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1i(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1i(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2094
+ function ownKeys$1j(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2095
+ function _objectSpread$1j(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1j(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1j(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2088
2096
  const defaultOptions$2 = {
2089
2097
  storageType: 'local',
2090
2098
  segregateByUser: true
@@ -2102,7 +2110,7 @@ const getStorage = storageType => storageType === 'session' ? sessionStorage : l
2102
2110
  const isNil = value => typeof value === 'undefined' || value === null;
2103
2111
  const useStorage = (storageKey, initialStorageValue, options) => {
2104
2112
  var _context;
2105
- const mergedOptions = _objectSpread$1i(_objectSpread$1i({}, defaultOptions$2), options);
2113
+ const mergedOptions = _objectSpread$1j(_objectSpread$1j({}, defaultOptions$2), options);
2106
2114
  const userId = applicationShellConnectors.useApplicationContext(context => context.user?.id);
2107
2115
  const scopedStorageKey = _filterInstanceProperty__default["default"](_context = [mergedOptions.segregateByUser && userId, storageKey]).call(_context, Boolean).join('/');
2108
2116
  const readFromStorage = React.useCallback(() => {
@@ -2146,8 +2154,8 @@ const useStorage = (storageKey, initialStorageValue, options) => {
2146
2154
  return [actualStorageValue, writeToStorage, readFromStorage];
2147
2155
  };
2148
2156
 
2149
- function ownKeys$1h(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2150
- function _objectSpread$1h(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1h(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1h(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2157
+ function ownKeys$1i(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2158
+ function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1i(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1i(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2151
2159
  const defaultOptions$1 = {
2152
2160
  propName: 'storage',
2153
2161
  storageKey: '',
@@ -2160,7 +2168,7 @@ const injectStorage = options => WrappedComponent => {
2160
2168
  * Options are being merged by spreading as destructuring and defaulting in
2161
2169
  * argument position does not allow passing specification of option(s).
2162
2170
  */
2163
- const mergedOptions = _objectSpread$1h(_objectSpread$1h({}, defaultOptions$1), options);
2171
+ const mergedOptions = _objectSpread$1i(_objectSpread$1i({}, defaultOptions$1), options);
2164
2172
  const WithStorage = props => {
2165
2173
  const _useStorage = useStorage(mergedOptions.storageKey(props), mergedOptions.initalStorageValue, mergedOptions.options),
2166
2174
  _useStorage2 = _slicedToArray(_useStorage, 3),
@@ -2174,7 +2182,7 @@ const injectStorage = options => WrappedComponent => {
2174
2182
  readFromStorage
2175
2183
  }
2176
2184
  };
2177
- return jsxRuntime.jsx(WrappedComponent, _objectSpread$1h(_objectSpread$1h({}, props), storageProp));
2185
+ return jsxRuntime.jsx(WrappedComponent, _objectSpread$1i(_objectSpread$1i({}, props), storageProp));
2178
2186
  };
2179
2187
  WithStorage.displayName = wrapDisplayName(WrappedComponent, 'WithStorage');
2180
2188
  return WithStorage;
@@ -2218,8 +2226,8 @@ const usePrevious = value => {
2218
2226
  return ref.current;
2219
2227
  };
2220
2228
 
2221
- function ownKeys$1g(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2222
- function _objectSpread$1g(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1g(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1g(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2229
+ function ownKeys$1h(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2230
+ function _objectSpread$1h(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1h(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1h(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2223
2231
  var FetchStoresQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchStoresQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "limit" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "offset" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "sort" } }, type: { kind: "ListType", type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "excludeProductSelections" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "stores" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "Variable", name: { kind: "Name", value: "limit" } } }, { kind: "Argument", name: { kind: "Name", value: "offset" }, value: { kind: "Variable", name: { kind: "Name", value: "offset" } } }, { kind: "Argument", name: { kind: "Name", value: "sort" }, value: { kind: "Variable", name: { kind: "Name", value: "sort" } } }, { kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "count" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "offset" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "StoreBasicInfo" }, directives: [] }, { kind: "Field", name: { kind: "Name", value: "countries" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "code" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "languages" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } } }] }] }, { kind: "Field", name: { kind: "Name", value: "distributionChannelsRef" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "distributionChannels" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "supplyChannels" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeExtendedStoresList" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "productSelections" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeProductSelections" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "active" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "productSelection" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "mode" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "StoreBasicInfo" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Store" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "version" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "createdAt" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "lastModifiedAt" }, arguments: [], directives: [] }] } }], loc: { start: 0, end: 1089, source: { body: "#import '../../utils/graphql/fragments/store-basic-info.ctp.graphql'\n\nquery FetchStoresQuery(\n $limit: Int\n $offset: Int\n $sort: [String!]\n $where: String\n $excludeExtendedStoresList: Boolean!\n $excludeProductSelections: Boolean!\n) {\n stores(limit: $limit, offset: $offset, sort: $sort, where: $where) {\n total\n count\n offset\n results {\n ...StoreBasicInfo\n countries {\n code\n }\n languages @skip(if: $excludeExtendedStoresList)\n distributionChannelsRef {\n id\n }\n distributionChannels @skip(if: $excludeExtendedStoresList) {\n id\n key\n nameAllLocales {\n locale\n value\n }\n }\n supplyChannels @skip(if: $excludeExtendedStoresList) {\n id\n key\n nameAllLocales {\n locale\n value\n }\n }\n productSelections @skip(if: $excludeProductSelections) {\n active\n productSelection {\n id\n mode\n nameAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
2224
2232
  const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
2225
2233
  if (!storesQueryResult) return null;
@@ -2228,7 +2236,7 @@ const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
2228
2236
  count: storesQueryResult.count,
2229
2237
  offset: storesQueryResult.offset,
2230
2238
  results: storesQueryResult.results?.map(store => {
2231
- return _objectSpread$1g(_objectSpread$1g({}, store), {}, {
2239
+ return _objectSpread$1h(_objectSpread$1h({}, store), {}, {
2232
2240
  productSelections: store.productSelections?.filter(productSelectionRef => Boolean(productSelectionRef.productSelection))
2233
2241
  });
2234
2242
  })
@@ -2236,7 +2244,7 @@ const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
2236
2244
  };
2237
2245
  const createQueryVariables$6 = ownProps => {
2238
2246
  var _context;
2239
- return _objectSpread$1g(_objectSpread$1g({
2247
+ return _objectSpread$1h(_objectSpread$1h({
2240
2248
  limit: ownProps.limit,
2241
2249
  offset: ownProps.offset,
2242
2250
  sort: _sortInstanceProperty__default["default"](ownProps)
@@ -2382,8 +2390,8 @@ function useDidFormValidationFail() {
2382
2390
  return Boolean(didFormValidationFail);
2383
2391
  }
2384
2392
 
2385
- function ownKeys$1f(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2386
- function _objectSpread$1f(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1f(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1f(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2393
+ function ownKeys$1g(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2394
+ function _objectSpread$1g(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1g(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1g(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2387
2395
  const TEN_MINUTES_IN_MS = 600000;
2388
2396
  const defaultOptions = {
2389
2397
  reminderInterval: REMINDER_OPTION_1_DAY,
@@ -2411,7 +2419,7 @@ const useHasReminderExpired = readReminderInterval => {
2411
2419
  };
2412
2420
  const usePersistedReminder = function () {
2413
2421
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2414
- const mergedOptions = _objectSpread$1f(_objectSpread$1f({}, defaultOptions), options);
2422
+ const mergedOptions = _objectSpread$1g(_objectSpread$1g({}, defaultOptions), options);
2415
2423
  const _useStorage = useStorage(mergedOptions.storageKey, null),
2416
2424
  _useStorage2 = _slicedToArray(_useStorage, 3),
2417
2425
  initialChosenReminderInterval = _useStorage2[0],
@@ -2475,8 +2483,8 @@ var messages$I = reactIntl.defineMessages({
2475
2483
  }
2476
2484
  });
2477
2485
 
2478
- function ownKeys$1e(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2479
- function _objectSpread$1e(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1e(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1e(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2486
+ function ownKeys$1f(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2487
+ function _objectSpread$1f(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1f(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1f(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2480
2488
  const LinkToProfile = props => {
2481
2489
  return jsxRuntime.jsx(uiKit.Link, {
2482
2490
  to: "/account/profile",
@@ -2496,7 +2504,7 @@ const NotificationText = () => jsxRuntime.jsxs(uiKit.Spacings.Stack, {
2496
2504
  isBold: true,
2497
2505
  intlMessage: messages$I.profileUpdated
2498
2506
  }), jsxRuntime.jsx(uiKit.Text.Body, {
2499
- intlMessage: _objectSpread$1e(_objectSpread$1e({}, messages$I.addMoreInformation), {}, {
2507
+ intlMessage: _objectSpread$1f(_objectSpread$1f({}, messages$I.addMoreInformation), {}, {
2500
2508
  values: {
2501
2509
  newline: getNewLine
2502
2510
  }
@@ -2505,7 +2513,7 @@ const NotificationText = () => jsxRuntime.jsxs(uiKit.Spacings.Stack, {
2505
2513
  }), jsxRuntime.jsx(uiKit.Spacings.Stack, {
2506
2514
  scale: "xs",
2507
2515
  children: jsxRuntime.jsx(uiKit.Text.Body, {
2508
- intlMessage: _objectSpread$1e(_objectSpread$1e({}, messages$I.informationAndProfileLink), {}, {
2516
+ intlMessage: _objectSpread$1f(_objectSpread$1f({}, messages$I.informationAndProfileLink), {}, {
2509
2517
  values: {
2510
2518
  newline: getNewLine,
2511
2519
  link: getLinkToProfile
@@ -2662,8 +2670,8 @@ const useDebouncedPromiseCallback = (promiseCallback, wait) =>
2662
2670
  // eslint-disable-next-line testing-library/await-async-utils
2663
2671
  React.useCallback(debounce__default["default"](promiseCallback, wait), [promiseCallback]);
2664
2672
 
2665
- function ownKeys$1d(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2666
- function _objectSpread$1d(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1d(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1d(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2673
+ function ownKeys$1e(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2674
+ function _objectSpread$1e(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1e(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1e(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2667
2675
  const prepareMutableColumnProps = (columnConfig, mutableColumnProps) => {
2668
2676
  const updatedColumnProps = {};
2669
2677
  _forEachInstanceProperty__default["default"](mutableColumnProps).call(mutableColumnProps, columnProp => {
@@ -2683,14 +2691,14 @@ const retrieveColumnsWithCachedConfiguration = _ref => {
2683
2691
  mutableColumnProps = _ref.mutableColumnProps;
2684
2692
  return _mapInstanceProperty__default["default"](_context = _filterInstanceProperty__default["default"](cachedVisibleTableConfiguration).call(cachedVisibleTableConfiguration, cachedColumn => _findInstanceProperty__default["default"](allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, initialConfig => initialConfig.key === cachedColumn.key))).call(_context, cachedConfig => {
2685
2693
  const initialColumnConfig = _findInstanceProperty__default["default"](allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, initialConfig => initialConfig.key === cachedConfig.key);
2686
- return _objectSpread$1d(_objectSpread$1d({}, initialColumnConfig), prepareMutableColumnProps(cachedConfig, mutableColumnProps));
2694
+ return _objectSpread$1e(_objectSpread$1e({}, initialColumnConfig), prepareMutableColumnProps(cachedConfig, mutableColumnProps));
2687
2695
  });
2688
2696
  };
2689
2697
  const handleCacheUpdate = _ref2 => {
2690
2698
  let update = _ref2.update,
2691
2699
  cachedVisibleTableConfiguration = _ref2.cachedVisibleTableConfiguration,
2692
2700
  updateCachedTableConfiguration = _ref2.updateCachedTableConfiguration;
2693
- return updateCachedTableConfiguration(_objectSpread$1d(_objectSpread$1d({}, pick__default["default"](cachedVisibleTableConfiguration, ['columnsConfig', 'displaySettings'])), update));
2701
+ return updateCachedTableConfiguration(_objectSpread$1e(_objectSpread$1e({}, pick__default["default"](cachedVisibleTableConfiguration, ['columnsConfig', 'displaySettings'])), update));
2694
2702
  };
2695
2703
 
2696
2704
  // Signature:
@@ -2719,7 +2727,7 @@ const usePersistedTableConfiguration = props => {
2719
2727
  return {
2720
2728
  columnsConfig: _mapInstanceProperty__default["default"](initialVisibleColumnKeys).call(initialVisibleColumnKeys, visibleColumnKey => {
2721
2729
  const visibleColumnConfig = _findInstanceProperty__default["default"](allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, columnConfig => columnConfig.key === visibleColumnKey);
2722
- return _objectSpread$1d({
2730
+ return _objectSpread$1e({
2723
2731
  key: visibleColumnKey
2724
2732
  }, prepareMutableColumnProps(visibleColumnConfig, mutableColumnProps));
2725
2733
  }),
@@ -2789,14 +2797,14 @@ const handlers$4 = {
2789
2797
  }
2790
2798
  };
2791
2799
 
2792
- function ownKeys$1c(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2793
- function _objectSpread$1c(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1c(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1c(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2800
+ function ownKeys$1d(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2801
+ function _objectSpread$1d(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1d(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1d(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2794
2802
 
2795
2803
  // eslint-disable-next-line import/prefer-default-export
2796
2804
  const convertProductSelectionsFromGraphQl = productSelections => {
2797
2805
  var _context;
2798
- return productSelections?.results && _objectSpread$1c(_objectSpread$1c({}, productSelections), {}, {
2799
- results: _mapInstanceProperty__default["default"](_context = productSelections.results).call(_context, productSelection => _objectSpread$1c({}, l10n.applyTransformedLocalizedFields(productSelection, [{
2806
+ return productSelections?.results && _objectSpread$1d(_objectSpread$1d({}, productSelections), {}, {
2807
+ results: _mapInstanceProperty__default["default"](_context = productSelections.results).call(_context, productSelection => _objectSpread$1d({}, l10n.applyTransformedLocalizedFields(productSelection, [{
2800
2808
  from: 'nameAllLocales',
2801
2809
  to: 'name'
2802
2810
  }])))
@@ -2932,7 +2940,7 @@ var localizedTextTransformer = (localizedString => {
2932
2940
  return _mapInstanceProperty__default["default"](_context = _Object$keys__default["default"](localizedString)).call(_context, locale => `${locale} = "${localizedString[locale]}"`).join(' and ');
2933
2941
  });
2934
2942
 
2935
- var styles$i = {
2943
+ var styles$j = {
2936
2944
  "loading-container": "centered-loading-spinner-module__loading-container___3_9-h"
2937
2945
  };
2938
2946
  /**
@@ -2940,7 +2948,7 @@ var styles$i = {
2940
2948
  * - the ui-kit Spacings.Stack does not allow for custom styles, nor does it stretch to fill its container's height
2941
2949
  */
2942
2950
  const CenteredLoadingSpinner = () => jsxRuntime.jsx("div", {
2943
- className: styles$i['loading-container'],
2951
+ className: styles$j['loading-container'],
2944
2952
  "data-testid": "centered-loading-spinner",
2945
2953
  children: jsxRuntime.jsx(uiKit.LoadingSpinner, {})
2946
2954
  });
@@ -2972,11 +2980,12 @@ var commonPickerMessages = reactIntl.defineMessages({
2972
2980
  }
2973
2981
  });
2974
2982
 
2975
- function ownKeys$1b(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2976
- function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1b(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1b(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2983
+ function ownKeys$1c(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
2984
+ function _objectSpread$1c(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$1c(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$1c(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
2977
2985
  var GetChannelsQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetChannelsQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "sortByNamePath" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "channels" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }, { kind: "Argument", name: { kind: "Name", value: "sort" }, value: { kind: "ListValue", values: [{ kind: "Variable", name: { kind: "Name", value: "sortByNamePath" } }, { kind: "StringValue", value: "key", block: false }] } }, { kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "IntValue", value: "60" } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PickerInputChannel" }, directives: [] }] } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "PickerInputChannel" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Channel" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 392, source: { body: "fragment PickerInputChannel on Channel {\n id\n key\n nameAllLocales {\n locale\n value\n }\n}\n\nquery GetChannelsQuery($where: String, $sortByNamePath: String!) {\n channels(where: $where, sort: [$sortByNamePath, \"key\"], limit: 60) {\n total\n results {\n ...PickerInputChannel\n }\n }\n}\n\nquery GetChannelQuery($id: String) {\n channel(id: $id) {\n ...PickerInputChannel\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
2978
2986
  var GetChannelQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetChannelQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "channel" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "id" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "PickerInputChannel" }, directives: [] }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "PickerInputChannel" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Channel" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 392, source: { body: "fragment PickerInputChannel on Channel {\n id\n key\n nameAllLocales {\n locale\n value\n }\n}\n\nquery GetChannelsQuery($where: String, $sortByNamePath: String!) {\n channels(where: $where, sort: [$sortByNamePath, \"key\"], limit: 60) {\n total\n results {\n ...PickerInputChannel\n }\n }\n}\n\nquery GetChannelQuery($id: String) {\n channel(id: $id) {\n ...PickerInputChannel\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
2979
2987
  var PickerInputChannel = { kind: "Document", definitions: [{ kind: "FragmentDefinition", name: { kind: "Name", value: "PickerInputChannel" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "Channel" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 392, source: { body: "fragment PickerInputChannel on Channel {\n id\n key\n nameAllLocales {\n locale\n value\n }\n}\n\nquery GetChannelsQuery($where: String, $sortByNamePath: String!) {\n channels(where: $where, sort: [$sortByNamePath, \"key\"], limit: 60) {\n total\n results {\n ...PickerInputChannel\n }\n }\n}\n\nquery GetChannelQuery($id: String) {\n channel(id: $id) {\n ...PickerInputChannel\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
2988
+ const getRolesClause = roles => roles && roles.length > 0 ? `roles contains any (${_mapInstanceProperty__default["default"](roles).call(roles, role => `"${role}"`).join(',')})` : undefined;
2980
2989
  const ChannelPickerInput = _ref => {
2981
2990
  let isClearable = _ref.isClearable,
2982
2991
  isDisabled = _ref.isDisabled,
@@ -2988,16 +2997,20 @@ const ChannelPickerInput = _ref => {
2988
2997
  hasError = _ref.hasError,
2989
2998
  onError = _ref.onError,
2990
2999
  placeholder = _ref.placeholder,
2991
- role = _ref.role;
3000
+ roles = _ref.roles,
3001
+ hasWarning = _ref.hasWarning;
2992
3002
  const formatLocalizedFieldToString = useFormatLocalizedFieldToString();
2993
3003
  const _useIntl = reactIntl.useIntl(),
2994
3004
  formatMessage = _useIntl.formatMessage;
2995
3005
  const dataLocale = applicationShellConnectors.useApplicationContext(applicationContext => applicationContext.dataLocale);
2996
- const variables = React.useMemo(() => _objectSpread$1b({
2997
- sortByNamePath: `name.${dataLocale}`
2998
- }, role && {
2999
- extraWhere: `roles contains any ("${role}")`
3000
- }), [dataLocale, role]);
3006
+ const variables = React.useMemo(() => {
3007
+ const rolesClause = getRolesClause(roles);
3008
+ return _objectSpread$1c({
3009
+ sortByNamePath: `name.${dataLocale}`
3010
+ }, rolesClause && {
3011
+ extraWhere: rolesClause
3012
+ });
3013
+ }, [dataLocale, roles]);
3001
3014
  const _useState = React.useState(),
3002
3015
  _useState2 = _slicedToArray(_useState, 2),
3003
3016
  loadingError = _useState2[0],
@@ -3080,7 +3093,10 @@ const ChannelPickerInput = _ref => {
3080
3093
  onBlur: onBlur,
3081
3094
  value: currentOption.data,
3082
3095
  noOptionsMessage: handleNoOptions,
3083
- hasError: hasError || isLoadingFailed
3096
+ hasError: hasError || isLoadingFailed,
3097
+ menuPortalZIndex: Z_INDEX_DROPDOWN,
3098
+ menuPortalTarget: document.body,
3099
+ hasWarning: hasWarning
3084
3100
  })
3085
3101
  }), isLoadingFailed && jsxRuntime.jsx(uiKit.Text.Body, {
3086
3102
  tone: "negative",
@@ -3091,14 +3107,25 @@ const ChannelPickerInput = _ref => {
3091
3107
  };
3092
3108
  ChannelPickerInput.displayName = 'ChannelPickerInput';
3093
3109
 
3094
- function _createSuper$9(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$9(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3095
- function _isNativeReflectConstruct$9() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
3110
+ function _callSuper$9(_this, derived, args) {
3111
+ function isNativeReflectConstruct() {
3112
+ if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false;
3113
+ if (_Reflect$construct__default["default"].sham) return false;
3114
+ if (typeof Proxy === "function") return true;
3115
+ try {
3116
+ return !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {}));
3117
+ } catch (e) {
3118
+ return false;
3119
+ }
3120
+ }
3121
+ derived = _getPrototypeOf(derived);
3122
+ return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? _Reflect$construct__default["default"](derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
3123
+ }
3096
3124
  let FormattedDateTime = /*#__PURE__*/function (_PureComponent) {
3097
3125
  _inherits(FormattedDateTime, _PureComponent);
3098
- var _super = _createSuper$9(FormattedDateTime);
3099
3126
  function FormattedDateTime() {
3100
3127
  _classCallCheck(this, FormattedDateTime);
3101
- return _super.apply(this, arguments);
3128
+ return _callSuper$9(this, FormattedDateTime, arguments);
3102
3129
  }
3103
3130
  _createClass(FormattedDateTime, [{
3104
3131
  key: "render",
@@ -3121,21 +3148,32 @@ var FormattedDateTime$1 = reactIntl.injectIntl(FormattedDateTime);
3121
3148
 
3122
3149
  const keepDisplayName = component => setDisplayName(getDisplayName(component));
3123
3150
 
3124
- function ownKeys$1a(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
3125
- function _objectSpread$1a(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1a(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1a(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3126
- function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3127
- function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
3151
+ function ownKeys$1b(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
3152
+ function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1b(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1b(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3153
+ function _callSuper$8(_this, derived, args) {
3154
+ function isNativeReflectConstruct() {
3155
+ if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false;
3156
+ if (_Reflect$construct__default["default"].sham) return false;
3157
+ if (typeof Proxy === "function") return true;
3158
+ try {
3159
+ return !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {}));
3160
+ } catch (e) {
3161
+ return false;
3162
+ }
3163
+ }
3164
+ derived = _getPrototypeOf(derived);
3165
+ return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? _Reflect$construct__default["default"](derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
3166
+ }
3128
3167
  const withMouseOverState = BaseComponent => {
3129
3168
  let WithMouseOverState = /*#__PURE__*/function (_Component) {
3130
3169
  _inherits(WithMouseOverState, _Component);
3131
- var _super = _createSuper$8(WithMouseOverState);
3132
3170
  function WithMouseOverState() {
3133
3171
  var _this;
3134
3172
  _classCallCheck(this, WithMouseOverState);
3135
3173
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3136
3174
  args[_key] = arguments[_key];
3137
3175
  }
3138
- _this = _super.call(this, ...args);
3176
+ _this = _callSuper$8(this, WithMouseOverState, [...args]);
3139
3177
  _this.state = {
3140
3178
  isMouseOver: false
3141
3179
  };
@@ -3154,7 +3192,7 @@ const withMouseOverState = BaseComponent => {
3154
3192
  handleMouseOver: this.handleMouseOver,
3155
3193
  handleMouseOut: this.handleMouseOut
3156
3194
  };
3157
- return jsxRuntime.jsx(BaseComponent, _objectSpread$1a({}, _objectSpread$1a(_objectSpread$1a({}, this.props), injectedProps)));
3195
+ return jsxRuntime.jsx(BaseComponent, _objectSpread$1b({}, _objectSpread$1b(_objectSpread$1b({}, this.props), injectedProps)));
3158
3196
  }
3159
3197
  }]);
3160
3198
  return WithMouseOverState;
@@ -3163,11 +3201,23 @@ const withMouseOverState = BaseComponent => {
3163
3201
  return WithMouseOverState;
3164
3202
  };
3165
3203
 
3166
- function ownKeys$19(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
3167
- function _objectSpread$19(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$19(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$19(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3168
- function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3169
- function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
3170
- var styles$h = {
3204
+ function ownKeys$1a(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
3205
+ function _objectSpread$1a(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$1a(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$1a(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3206
+ function _callSuper$7(_this, derived, args) {
3207
+ function isNativeReflectConstruct() {
3208
+ if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false;
3209
+ if (_Reflect$construct__default["default"].sham) return false;
3210
+ if (typeof Proxy === "function") return true;
3211
+ try {
3212
+ return !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {}));
3213
+ } catch (e) {
3214
+ return false;
3215
+ }
3216
+ }
3217
+ derived = _getPrototypeOf(derived);
3218
+ return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? _Reflect$construct__default["default"](derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
3219
+ }
3220
+ var styles$i = {
3171
3221
  "size": "throttled-field-module__size___324jx",
3172
3222
  "input-text": "throttled-field-module__input-text___3zFFp",
3173
3223
  "input-secondary": "throttled-field-module__input-secondary___cFo9e throttled-field-module__input-text___3zFFp throttled-field-module__size___324jx",
@@ -3181,14 +3231,13 @@ var styles$h = {
3181
3231
  };
3182
3232
  let ThrottledField = /*#__PURE__*/function (_PureComponent) {
3183
3233
  _inherits(ThrottledField, _PureComponent);
3184
- var _super = _createSuper$7(ThrottledField);
3185
3234
  function ThrottledField() {
3186
3235
  var _this;
3187
3236
  _classCallCheck(this, ThrottledField);
3188
3237
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3189
3238
  args[_key] = arguments[_key];
3190
3239
  }
3191
- _this = _super.call(this, ...args);
3240
+ _this = _callSuper$7(this, ThrottledField, [...args]);
3192
3241
  _this.state = {
3193
3242
  draftValue: '',
3194
3243
  prevValue: ''
@@ -3256,7 +3305,7 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
3256
3305
  }, {
3257
3306
  key: "render",
3258
3307
  value: function render() {
3259
- const commonProps = _objectSpread$19(_objectSpread$19({
3308
+ const commonProps = _objectSpread$1a(_objectSpread$1a({
3260
3309
  value: this.state.draftValue,
3261
3310
  autoComplete: this.props.autoComplete,
3262
3311
  onChange: this.handleChange,
@@ -3275,23 +3324,23 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
3275
3324
  htmlFor: inputId,
3276
3325
  children: this.props.label
3277
3326
  })
3278
- }), this.props.as === 'textarea' ? jsxRuntime.jsx(Textarea__default["default"], _objectSpread$19(_objectSpread$19({}, commonProps), {}, {
3327
+ }), this.props.as === 'textarea' ? jsxRuntime.jsx(Textarea__default["default"], _objectSpread$1a(_objectSpread$1a({}, commonProps), {}, {
3279
3328
  id: inputId,
3280
- className: classnames__default["default"](styles$h.textarea, styles$h[`textarea-${this.props.style}`], {
3281
- [styles$h.invalid]: !this.props.isValid,
3282
- [styles$h.disabled]: this.props.disabled
3329
+ className: classnames__default["default"](styles$i.textarea, styles$i[`textarea-${this.props.style}`], {
3330
+ [styles$i.invalid]: !this.props.isValid,
3331
+ [styles$i.disabled]: this.props.disabled
3283
3332
  }),
3284
3333
  rows: 1,
3285
3334
  maxRows: this.props.autoSize ? undefined : 1,
3286
3335
  cacheMeasurements: true
3287
- })) : jsxRuntime.jsx("input", _objectSpread$19(_objectSpread$19({}, commonProps), {}, {
3336
+ })) : jsxRuntime.jsx("input", _objectSpread$1a(_objectSpread$1a({}, commonProps), {}, {
3288
3337
  id: inputId,
3289
3338
  ref: this.props.inputRef,
3290
3339
  type: this.props.as,
3291
- className: classnames__default["default"](styles$h[`input-${this.props.style}`], {
3292
- [styles$h.invalid]: !this.props.isValid,
3293
- [styles$h.disabled]: this.props.disabled,
3294
- [styles$h.granular]: this.props.isGranular
3340
+ className: classnames__default["default"](styles$i[`input-${this.props.style}`], {
3341
+ [styles$i.invalid]: !this.props.isValid,
3342
+ [styles$i.disabled]: this.props.disabled,
3343
+ [styles$i.granular]: this.props.isGranular
3295
3344
  })
3296
3345
  }))]
3297
3346
  });
@@ -3335,9 +3384,21 @@ var messages$F = reactIntl.defineMessages({
3335
3384
  }
3336
3385
  });
3337
3386
 
3338
- function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3339
- function _isNativeReflectConstruct$6() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
3340
- var styles$g = {
3387
+ function _callSuper$6(_this, derived, args) {
3388
+ function isNativeReflectConstruct() {
3389
+ if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false;
3390
+ if (_Reflect$construct__default["default"].sham) return false;
3391
+ if (typeof Proxy === "function") return true;
3392
+ try {
3393
+ return !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {}));
3394
+ } catch (e) {
3395
+ return false;
3396
+ }
3397
+ }
3398
+ derived = _getPrototypeOf(derived);
3399
+ return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? _Reflect$construct__default["default"](derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
3400
+ }
3401
+ var styles$h = {
3341
3402
  "block": "search-input-module__block___1uM-y",
3342
3403
  "container": "search-input-module__container___9u6if",
3343
3404
  "input-container": "search-input-module__input-container___mJnyZ",
@@ -3354,14 +3415,13 @@ var styles$g = {
3354
3415
  };
3355
3416
  let SearchInput = /*#__PURE__*/function (_Component) {
3356
3417
  _inherits(SearchInput, _Component);
3357
- var _super = _createSuper$6(SearchInput);
3358
3418
  function SearchInput() {
3359
3419
  var _this;
3360
3420
  _classCallCheck(this, SearchInput);
3361
3421
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
3362
3422
  args[_key] = arguments[_key];
3363
3423
  }
3364
- _this = _super.call(this, ...args);
3424
+ _this = _callSuper$6(this, SearchInput, [...args]);
3365
3425
  _this.state = {
3366
3426
  initialValue: _this.props.initialValue,
3367
3427
  text: _this.props.initialValue || ''
@@ -3413,14 +3473,14 @@ let SearchInput = /*#__PURE__*/function (_Component) {
3413
3473
  key: "render",
3414
3474
  value: function render() {
3415
3475
  return jsxRuntime.jsx("div", {
3416
- className: classnames__default["default"](this.props.blockClassName, styles$g.block),
3476
+ className: classnames__default["default"](this.props.blockClassName, styles$h.block),
3417
3477
  children: jsxRuntime.jsxs("div", {
3418
- className: classnames__default["default"](this.props.containerClassName, styles$g.container),
3478
+ className: classnames__default["default"](this.props.containerClassName, styles$h.container),
3419
3479
  children: [jsxRuntime.jsx("div", {
3420
- className: classnames__default["default"](styles$g['input-container'], {
3421
- [styles$g['input-container-hoverable']]: !this.props.disabled,
3422
- [styles$g['input-container-disabled']]: this.props.disabled && this.props.enableDisabledStyle,
3423
- [styles$g['input-container-granular']]: this.props.isGranular
3480
+ className: classnames__default["default"](styles$h['input-container'], {
3481
+ [styles$h['input-container-hoverable']]: !this.props.disabled,
3482
+ [styles$h['input-container-disabled']]: this.props.disabled && this.props.enableDisabledStyle,
3483
+ [styles$h['input-container-granular']]: this.props.isGranular
3424
3484
  }),
3425
3485
  children: jsxRuntime.jsx(ThrottledField, {
3426
3486
  style: "primary",
@@ -3438,8 +3498,8 @@ let SearchInput = /*#__PURE__*/function (_Component) {
3438
3498
  isGranular: this.props.isGranular
3439
3499
  })
3440
3500
  }), this.state.text && jsxRuntime.jsx(uiKit.SecondaryIconButton, {
3441
- className: classnames__default["default"](styles$g['clear-icon-container'], {
3442
- [styles$g['clear-icon-container-granular']]: this.props.isGranular
3501
+ className: classnames__default["default"](styles$h['clear-icon-container'], {
3502
+ [styles$h['clear-icon-container-granular']]: this.props.isGranular
3443
3503
  }),
3444
3504
  icon: jsxRuntime.jsx(uiKit.CloseIcon, {}),
3445
3505
  size: "medium",
@@ -3447,9 +3507,9 @@ let SearchInput = /*#__PURE__*/function (_Component) {
3447
3507
  onClick: this.handleClear
3448
3508
  }), jsxRuntime.jsx("div", {
3449
3509
  "data-testid": "search-button",
3450
- className: classnames__default["default"](styles$g['search-icon-container'], {
3451
- [styles$g['search-icon-container-hoverable']]: !this.props.disabled,
3452
- [styles$g['search-icon-container-granular']]: this.props.isGranular
3510
+ className: classnames__default["default"](styles$h['search-icon-container'], {
3511
+ [styles$h['search-icon-container-hoverable']]: !this.props.disabled,
3512
+ [styles$h['search-icon-container-granular']]: this.props.isGranular
3453
3513
  }),
3454
3514
  onClick: this.props.disabled ? null : this.handleSubmit,
3455
3515
  label: "search-button",
@@ -3643,8 +3703,8 @@ var messages$E = reactIntl.defineMessages({
3643
3703
  }
3644
3704
  });
3645
3705
 
3646
- function ownKeys$18(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
3647
- function _objectSpread$18(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$18(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$18(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3706
+ function ownKeys$19(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
3707
+ function _objectSpread$19(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$19(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$19(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3648
3708
  const getBottomOption = formatMessage => ({
3649
3709
  options: [{
3650
3710
  label: formatMessage ? formatMessage(messages$E.bottomOption) : messages$E.bottomOption,
@@ -3655,7 +3715,7 @@ const getBottomOption = formatMessage => ({
3655
3715
  const Option$2 = props => {
3656
3716
  const _useIntl = reactIntl.useIntl(),
3657
3717
  formatMessage = _useIntl.formatMessage;
3658
- return jsxRuntime.jsx(uiKit.AsyncSelectInput.Option, _objectSpread$18(_objectSpread$18({}, props), {}, {
3718
+ return jsxRuntime.jsx(uiKit.AsyncSelectInput.Option, _objectSpread$19(_objectSpread$19({}, props), {}, {
3659
3719
  children: props.data.isBottomOption ? jsxRuntime.jsx(uiKit.Text.Detail, {
3660
3720
  tone: "secondary",
3661
3721
  children: formatMessage(props.data.label)
@@ -3672,8 +3732,8 @@ const Option$2 = props => {
3672
3732
  };
3673
3733
  Option$2.displayName = 'Option';
3674
3734
 
3675
- function ownKeys$17(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
3676
- function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$17(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$17(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3735
+ function ownKeys$18(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
3736
+ function _objectSpread$18(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$18(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$18(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3677
3737
  const useHandlers = onChange => {
3678
3738
  const _useState = React.useState(),
3679
3739
  _useState2 = _slicedToArray(_useState, 2),
@@ -3683,8 +3743,8 @@ const useHandlers = onChange => {
3683
3743
  setInputValue(changedValue);
3684
3744
  }, []);
3685
3745
  const handleChange = useEventCallback(event => {
3686
- const eventWithExtractedValue = _objectSpread$17(_objectSpread$17({}, event), {}, {
3687
- target: _objectSpread$17(_objectSpread$17({}, event.target), {}, {
3746
+ const eventWithExtractedValue = _objectSpread$18(_objectSpread$18({}, event), {}, {
3747
+ target: _objectSpread$18(_objectSpread$18({}, event.target), {}, {
3688
3748
  value: event.target.value?.value
3689
3749
  })
3690
3750
  });
@@ -3693,9 +3753,9 @@ const useHandlers = onChange => {
3693
3753
  return [handleInputChange, handleChange];
3694
3754
  };
3695
3755
 
3696
- const _excluded$1 = ["extraWhere"];
3697
- function ownKeys$16(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
3698
- function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$16(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$16(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3756
+ const _excluded$3 = ["extraWhere"];
3757
+ function ownKeys$17(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
3758
+ function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$17(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$17(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
3699
3759
  const constructPrefixSearchPredicate = function () {
3700
3760
  let prefixSearchFields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
3701
3761
  let lowerBound = arguments.length > 1 ? arguments[1] : undefined;
@@ -3736,13 +3796,13 @@ const useLoadOptions = _ref => {
3736
3796
  }
3737
3797
  const _ref2 = variables ?? {},
3738
3798
  extraWhere = _ref2.extraWhere,
3739
- restVariables = _objectWithoutProperties(_ref2, _excluded$1);
3799
+ restVariables = _objectWithoutProperties(_ref2, _excluded$3);
3740
3800
  if (typeof extraWhere === 'string') {
3741
3801
  where = where ? `(${where}) and ${variables.extraWhere}` : variables.extraWhere;
3742
3802
  }
3743
3803
  return client$1.query({
3744
3804
  query,
3745
- variables: _objectSpread$16({
3805
+ variables: _objectSpread$17({
3746
3806
  where
3747
3807
  }, restVariables),
3748
3808
  context: {
@@ -3831,7 +3891,8 @@ const ProductTypePickerInput = _ref => {
3831
3891
  onBlur = _ref.onBlur,
3832
3892
  value = _ref.value,
3833
3893
  hasError = _ref.hasError,
3834
- onError = _ref.onError;
3894
+ onError = _ref.onError,
3895
+ hasWarning = _ref.hasWarning;
3835
3896
  const _useIntl = reactIntl.useIntl(),
3836
3897
  formatMessage = _useIntl.formatMessage;
3837
3898
  const prefixSearchFields = React.useMemo(() => ['name'], []);
@@ -3897,7 +3958,10 @@ const ProductTypePickerInput = _ref => {
3897
3958
  onBlur: onBlur,
3898
3959
  value: currentOption.data,
3899
3960
  noOptionsMessage: () => loadingError ? null : formatMessage(messages$D.noProductTypesFound),
3900
- hasError: hasError || isLoadingFailed
3961
+ hasError: hasError || isLoadingFailed,
3962
+ menuPortalZIndex: Z_INDEX_DROPDOWN,
3963
+ menuPortalTarget: document.body,
3964
+ hasWarning: hasWarning
3901
3965
  })
3902
3966
  }), isLoadingFailed && jsxRuntime.jsx(uiKit.Text.Body, {
3903
3967
  tone: "negative",
@@ -3932,7 +3996,8 @@ const StatePickerInput = _ref => {
3932
3996
  onBlur = _ref.onBlur,
3933
3997
  value = _ref.value,
3934
3998
  hasError = _ref.hasError,
3935
- onError = _ref.onError;
3999
+ onError = _ref.onError,
4000
+ hasWarning = _ref.hasWarning;
3936
4001
  const formatLocalizedFieldToString = useFormatLocalizedFieldToString();
3937
4002
  const _useIntl = reactIntl.useIntl(),
3938
4003
  formatMessage = _useIntl.formatMessage;
@@ -4018,7 +4083,10 @@ const StatePickerInput = _ref => {
4018
4083
  onBlur: onBlur,
4019
4084
  value: currentOption.data,
4020
4085
  noOptionsMessage: handleNoOptions,
4021
- hasError: hasError || isLoadingFailed
4086
+ hasError: hasError || isLoadingFailed,
4087
+ menuPortalZIndex: Z_INDEX_DROPDOWN,
4088
+ menuPortalTarget: document.body,
4089
+ hasWarning: hasWarning
4022
4090
  }, dataLocale)
4023
4091
  }), isLoadingFailed && jsxRuntime.jsx(uiKit.Text.Body, {
4024
4092
  tone: "negative",
@@ -4029,9 +4097,9 @@ const StatePickerInput = _ref => {
4029
4097
  };
4030
4098
  StatePickerInput.displayName = 'StatePickerInput';
4031
4099
 
4032
- function ownKeys$15(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
4033
- function _objectSpread$15(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$15(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$15(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
4034
- const TooltipWrapper = /*#__PURE__*/React__default["default"].forwardRef((props, ref) => jsxRuntime.jsx("div", _objectSpread$15({
4100
+ function ownKeys$16(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
4101
+ function _objectSpread$16(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$16(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$16(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
4102
+ const TooltipWrapper = /*#__PURE__*/React__default["default"].forwardRef((props, ref) => jsxRuntime.jsx("div", _objectSpread$16({
4035
4103
  ref: ref,
4036
4104
  style: {
4037
4105
  display: 'block',
@@ -4168,9 +4236,9 @@ const getPrefixSearchBounds = input => {
4168
4236
  return [input, `${_sliceInstanceProperty__default["default"](input).call(input, 0, input.length - 1)}${getNextCharacter(_sliceInstanceProperty__default["default"](input).call(input, input.length - 1))}`];
4169
4237
  };
4170
4238
 
4171
- const _excluded = ["action"];
4172
- function ownKeys$14(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
4173
- function _objectSpread$14(e) { for (var r = 1; r < arguments.length; r++) { var _context8, _context9; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context8 = ownKeys$14(Object(t), !0)).call(_context8, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context9 = ownKeys$14(Object(t))).call(_context9, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
4239
+ const _excluded$2 = ["action"];
4240
+ function ownKeys$15(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
4241
+ function _objectSpread$15(e) { for (var r = 1; r < arguments.length; r++) { var _context8, _context9; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context8 = ownKeys$15(Object(t), !0)).call(_context8, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context9 = ownKeys$15(Object(t))).call(_context9, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
4174
4242
 
4175
4243
  /**
4176
4244
  * Checks if a value is a LocalizedString
@@ -4192,7 +4260,7 @@ const getIsLocalizedString = maybeLocalizedString => {
4192
4260
  */
4193
4261
  const transformCustomFieldsRawToCustomFields = customFieldsRaw => {
4194
4262
  if (!customFieldsRaw || customFieldsRaw.length === 0) return null;
4195
- return _reduceInstanceProperty__default["default"](customFieldsRaw).call(customFieldsRaw, (customFields, customField) => _objectSpread$14(_objectSpread$14({}, customFields), {}, {
4263
+ return _reduceInstanceProperty__default["default"](customFieldsRaw).call(customFieldsRaw, (customFields, customField) => _objectSpread$15(_objectSpread$15({}, customFields), {}, {
4196
4264
  [customField.name]: customField.value
4197
4265
  }), {});
4198
4266
  };
@@ -4216,7 +4284,7 @@ function transformLocalizedFieldsForCategory(category) {
4216
4284
  const transformedData = l10n.applyTransformedLocalizedFields(category, transformationOptions);
4217
4285
  const parent = category.parent ? transformLocalizedFieldsForCategory(category.parent) : null;
4218
4286
  const ancestors = category.ancestors ? _mapInstanceProperty__default["default"](_context = category.ancestors).call(_context, ancestor => transformLocalizedFieldsForCategory(ancestor)) : null;
4219
- return _objectSpread$14(_objectSpread$14(_objectSpread$14({}, transformedData), parent ? {
4287
+ return _objectSpread$15(_objectSpread$15(_objectSpread$15({}, transformedData), parent ? {
4220
4288
  parent
4221
4289
  } : {}), ancestors ? {
4222
4290
  ancestors
@@ -4307,7 +4375,7 @@ const createAttributeTypeValue = attribute => {
4307
4375
  const formatMoney = valueType => money => {
4308
4376
  if (valueType === 'fixed') {
4309
4377
  return {
4310
- [money.type]: _objectSpread$14({
4378
+ [money.type]: _objectSpread$15({
4311
4379
  centAmount: money.centAmount,
4312
4380
  currencyCode: money.currencyCode
4313
4381
  }, money.type === PRECISION_TYPES.highPrecision && {
@@ -4398,7 +4466,6 @@ const convertAction = (actionName, actionPayload) => {
4398
4466
  }
4399
4467
  };
4400
4468
  case 'setLineItemCustomField':
4401
- case 'setCustomLineItemCustomField':
4402
4469
  return {
4403
4470
  [actionName]: {
4404
4471
  lineItemId: actionPayload.lineItemId,
@@ -4406,6 +4473,14 @@ const convertAction = (actionName, actionPayload) => {
4406
4473
  value: _JSON$stringify__default["default"](actionPayload.value)
4407
4474
  }
4408
4475
  };
4476
+ case 'setCustomLineItemCustomField':
4477
+ return {
4478
+ [actionName]: {
4479
+ customLineItemId: actionPayload.customLineItemId,
4480
+ name: actionPayload.name,
4481
+ value: _JSON$stringify__default["default"](actionPayload.value)
4482
+ }
4483
+ };
4409
4484
  case 'setCustomField':
4410
4485
  return {
4411
4486
  [actionName]: {
@@ -4472,7 +4547,7 @@ const convertAction = (actionName, actionPayload) => {
4472
4547
  case 'addAttributeDefinition':
4473
4548
  return {
4474
4549
  [actionName]: {
4475
- attributeDefinition: _objectSpread$14(_objectSpread$14({}, actionPayload.attribute), {}, {
4550
+ attributeDefinition: _objectSpread$15(_objectSpread$15({}, actionPayload.attribute), {}, {
4476
4551
  label: l10n.transformLocalizedStringToLocalizedField(actionPayload.attribute.label),
4477
4552
  inputTip: l10n.transformLocalizedStringToLocalizedField(actionPayload.attribute.inputTip),
4478
4553
  type: createAttributeTypeValue(actionPayload.attribute)
@@ -4568,7 +4643,7 @@ const convertAction = (actionName, actionPayload) => {
4568
4643
  return {
4569
4644
  [actionName]: {
4570
4645
  attributeName: actionPayload.attributeName,
4571
- value: _objectSpread$14(_objectSpread$14({}, actionPayload.value), {}, {
4646
+ value: _objectSpread$15(_objectSpread$15({}, actionPayload.value), {}, {
4572
4647
  label: l10n.transformLocalizedStringToLocalizedField(actionPayload.value.label)
4573
4648
  })
4574
4649
  }
@@ -4577,7 +4652,7 @@ const convertAction = (actionName, actionPayload) => {
4577
4652
  return {
4578
4653
  [actionName]: {
4579
4654
  attributeName: actionPayload.attributeName,
4580
- newValue: _objectSpread$14(_objectSpread$14({}, actionPayload.newValue), {}, {
4655
+ newValue: _objectSpread$15(_objectSpread$15({}, actionPayload.newValue), {}, {
4581
4656
  label: l10n.transformLocalizedStringToLocalizedField(actionPayload.newValue.label)
4582
4657
  })
4583
4658
  }
@@ -4604,7 +4679,7 @@ const convertAction = (actionName, actionPayload) => {
4604
4679
  name: l10n.transformLocalizedStringToLocalizedField(actionPayload.name),
4605
4680
  taxCategory: actionPayload.taxCategory,
4606
4681
  money: {
4607
- [actionPayload.money.type]: _objectSpread$14({
4682
+ [actionPayload.money.type]: _objectSpread$15({
4608
4683
  centAmount: actionPayload.money.centAmount,
4609
4684
  currencyCode: actionPayload.money.currencyCode
4610
4685
  }, actionPayload.money.type === PRECISION_TYPES.highPrecision && {
@@ -4659,8 +4734,8 @@ const convertAction = (actionName, actionPayload) => {
4659
4734
  fields: customFields
4660
4735
  } : null;
4661
4736
  return {
4662
- [actionName]: _objectSpread$14(_objectSpread$14({}, actionPayload), {}, {
4663
- address: _objectSpread$14(_objectSpread$14({}, omit__default["default"](actionPayload.address, ['__typename'])), {}, {
4737
+ [actionName]: _objectSpread$15(_objectSpread$15({}, actionPayload), {}, {
4738
+ address: _objectSpread$15(_objectSpread$15({}, omit__default["default"](actionPayload.address, ['__typename'])), {}, {
4664
4739
  custom
4665
4740
  })
4666
4741
  })
@@ -4702,7 +4777,7 @@ const convertAction = (actionName, actionPayload) => {
4702
4777
  };
4703
4778
  const createGraphQlUpdateActions = actions => _reduceInstanceProperty__default["default"](actions).call(actions, (previousActions, _ref9) => {
4704
4779
  let actionName = _ref9.action,
4705
- actionPayload = _objectWithoutProperties(_ref9, _excluded);
4780
+ actionPayload = _objectWithoutProperties(_ref9, _excluded$2);
4706
4781
  return [...previousActions, convertAction(actionName, actionPayload)];
4707
4782
  }, []);
4708
4783
  const extractErrorFromGraphQlResponse = graphQlResponse => {
@@ -4735,8 +4810,8 @@ function omitDeep(obj, fieldsToOmit) {
4735
4810
  return originalOmitDeep__default["default"](obj, fieldsToOmit);
4736
4811
  }
4737
4812
 
4738
- function ownKeys$13(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
4739
- function _objectSpread$13(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$13(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$13(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
4813
+ function ownKeys$14(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
4814
+ function _objectSpread$14(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$14(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$14(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
4740
4815
  function getPriceChannelName(price) {
4741
4816
  return price.channel?.name ?? price.channel?.key ?? null;
4742
4817
  }
@@ -4748,11 +4823,11 @@ function getDiscountValue(price) {
4748
4823
  } else if (price.value?.type === PRECISION_TYPES.highPrecision && price.discounted?.value?.type === PRECISION_TYPES.centPrecision) {
4749
4824
  fractionedAmount = getFractionedAmount(price.value) - getFractionedAmount(price.discounted.value);
4750
4825
  }
4751
- return price.discounted ? _objectSpread$13(_objectSpread$13({}, price.value), {}, {
4826
+ return price.discounted ? _objectSpread$14(_objectSpread$14({}, price.value), {}, {
4752
4827
  fractionedAmount,
4753
4828
  centAmount: price.value.centAmount - price.discounted.value.centAmount,
4754
4829
  preciseAmount
4755
- }) : _objectSpread$13(_objectSpread$13({}, price.value), {}, {
4830
+ }) : _objectSpread$14(_objectSpread$14({}, price.value), {}, {
4756
4831
  centAmount: 0
4757
4832
  });
4758
4833
  }
@@ -4776,7 +4851,7 @@ function getNetUnitPrice(_ref) {
4776
4851
  }
4777
4852
  let preciseAmount;
4778
4853
  if (price.value?.type === PRECISION_TYPES.highPrecision) preciseAmount = price.value.preciseAmount / (1 + taxRate.amount);
4779
- return _objectSpread$13(_objectSpread$13({}, price.value), {}, {
4854
+ return _objectSpread$14(_objectSpread$14({}, price.value), {}, {
4780
4855
  centAmount,
4781
4856
  preciseAmount
4782
4857
  });
@@ -4792,7 +4867,7 @@ function getNetUnitPrice(_ref) {
4792
4867
  }
4793
4868
  let preciseAmount;
4794
4869
  if (price.value?.type === PRECISION_TYPES.highPrecision) preciseAmount = price.value.preciseAmount / (1 + lineItem.taxRate.amount);
4795
- return _objectSpread$13(_objectSpread$13({}, price.value), {}, {
4870
+ return _objectSpread$14(_objectSpread$14({}, price.value), {}, {
4796
4871
  centAmount,
4797
4872
  preciseAmount
4798
4873
  });
@@ -4804,7 +4879,7 @@ function getMinimumPricesByCurrencyCode(prices) {
4804
4879
  const currencyCode = price.value.currencyCode;
4805
4880
  const fractionedAmount = getFractionedAmount(price.value);
4806
4881
  if (currencyCode && !isNil__default["default"](fractionedAmount)) {
4807
- if (!minPrices[currencyCode] || fractionedAmount < getFractionedAmount(minPrices[currencyCode])) return _objectSpread$13(_objectSpread$13({}, minPrices), {}, {
4882
+ if (!minPrices[currencyCode] || fractionedAmount < getFractionedAmount(minPrices[currencyCode])) return _objectSpread$14(_objectSpread$14({}, minPrices), {}, {
4808
4883
  [currencyCode]: price.value
4809
4884
  });
4810
4885
  }
@@ -4813,8 +4888,8 @@ function getMinimumPricesByCurrencyCode(prices) {
4813
4888
  return _Object$values__default["default"](minPricesByCurrency);
4814
4889
  }
4815
4890
 
4816
- function ownKeys$12(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
4817
- function _objectSpread$12(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context5 = ownKeys$12(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context6 = ownKeys$12(Object(t))).call(_context6, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
4891
+ function ownKeys$13(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
4892
+ function _objectSpread$13(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context5 = ownKeys$13(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context6 = ownKeys$13(Object(t))).call(_context6, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
4818
4893
  const transformCustomFieldFromGraphQLResponse = resource => {
4819
4894
  var _context, _context4;
4820
4895
  return {
@@ -4829,14 +4904,14 @@ const transformCustomFieldFromGraphQLResponse = resource => {
4829
4904
  return {
4830
4905
  name: fieldDefinition.name,
4831
4906
  required: fieldDefinition.required,
4832
- type: fieldDefinition.type?.elementType?.name === 'LocalizedEnum' ? _objectSpread$12(_objectSpread$12({}, fieldDefinition.type), {}, {
4833
- elementType: _objectSpread$12(_objectSpread$12({}, fieldDefinition.type.elementType), {}, {
4907
+ type: fieldDefinition.type?.elementType?.name === 'LocalizedEnum' ? _objectSpread$13(_objectSpread$13({}, fieldDefinition.type), {}, {
4908
+ elementType: _objectSpread$13(_objectSpread$13({}, fieldDefinition.type.elementType), {}, {
4834
4909
  values: _mapInstanceProperty__default["default"](_context2 = _valuesInstanceProperty__default["default"](fieldDefinition.type.elementType)).call(_context2, value => ({
4835
4910
  key: value.key,
4836
4911
  label: l10n.transformLocalizedFieldToLocalizedString(value.labelAllLocales)
4837
4912
  }))
4838
4913
  })
4839
- }) : fieldDefinition.type?.name === 'LocalizedEnum' ? _objectSpread$12(_objectSpread$12({}, fieldDefinition.type), {}, {
4914
+ }) : fieldDefinition.type?.name === 'LocalizedEnum' ? _objectSpread$13(_objectSpread$13({}, fieldDefinition.type), {}, {
4840
4915
  values: _mapInstanceProperty__default["default"](_context3 = _valuesInstanceProperty__default["default"](fieldDefinition.type)).call(_context3, value => ({
4841
4916
  key: value.key,
4842
4917
  label: l10n.transformLocalizedFieldToLocalizedString(value.labelAllLocales)
@@ -4847,7 +4922,7 @@ const transformCustomFieldFromGraphQLResponse = resource => {
4847
4922
  })
4848
4923
  }
4849
4924
  },
4850
- fields: _reduceInstanceProperty__default["default"](_context4 = resource.custom.customFieldsRaw).call(_context4, (fields, customField) => _objectSpread$12(_objectSpread$12({}, fields), {}, {
4925
+ fields: _reduceInstanceProperty__default["default"](_context4 = resource.custom.customFieldsRaw).call(_context4, (fields, customField) => _objectSpread$13(_objectSpread$13({}, fields), {}, {
4851
4926
  [customField.name]: customField.value
4852
4927
  }), {})
4853
4928
  };
@@ -4859,7 +4934,7 @@ const convertProductSelectionFromGraphQl = productSelection => {
4859
4934
  // Incase the product selection is not missing or if the current project dose not yet have access to the feature,
4860
4935
  // in either case we return null
4861
4936
  if (!productSelection) return null;
4862
- return _objectSpread$12(_objectSpread$12({}, l10n.applyTransformedLocalizedFields(productSelection, [{
4937
+ return _objectSpread$13(_objectSpread$13({}, l10n.applyTransformedLocalizedFields(productSelection, [{
4863
4938
  from: 'nameAllLocales',
4864
4939
  to: 'name'
4865
4940
  }])), {}, {
@@ -4882,8 +4957,8 @@ const transformAllToProperNounCase = text => {
4882
4957
  return _mapInstanceProperty__default["default"](_context = text.split(' ')).call(_context, term => transformToProperNounCase(term)).join(' ');
4883
4958
  };
4884
4959
 
4885
- function ownKeys$11(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
4886
- function _objectSpread$11(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$11(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$11(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
4960
+ function ownKeys$12(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
4961
+ function _objectSpread$12(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$12(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$12(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
4887
4962
  const REGEX_ISO8601 = /(\d{4}-\d{2}-\d{2}[T]\d{2}:\d{2}:\d{2}(\.\d{3}[Z]?))/;
4888
4963
  const REGEX_TIME = /\d{2}:\d{2}/;
4889
4964
  const REGEX_DATE = /\d{4}-\d{2}-\d{2}/;
@@ -4900,7 +4975,7 @@ function filterCustomTypeUpdateActionValues() {
4900
4975
  if (updateAction.action === 'setCustomField' && _Array$isArray__default["default"](updateAction.value)) {
4901
4976
  const definition = _findInstanceProperty__default["default"](fieldDefinitions).call(fieldDefinitions, field => field.name === updateAction.name);
4902
4977
  const definitionName = definition.type.elementType.name;
4903
- return _objectSpread$11(_objectSpread$11({}, updateAction), {}, {
4978
+ return _objectSpread$12(_objectSpread$12({}, updateAction), {}, {
4904
4979
  value: filterNotDefinedValues(updateAction.value, definitionName)
4905
4980
  });
4906
4981
  }
@@ -4974,18 +5049,29 @@ function omitSetsOfSets() {
4974
5049
 
4975
5050
  var GetProductTypesQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetProductTypesQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "productTypes" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 212, source: { body: "query GetProductTypesQuery($where: String) {\n productTypes(where: $where) {\n results {\n id\n name\n }\n }\n}\n\nquery GetProductTypeQuery($id: String) {\n productType(id: $id) {\n id\n name\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
4976
5051
 
4977
- function ownKeys$10(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
4978
- function _objectSpread$10(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context4 = ownKeys$10(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context5 = ownKeys$10(Object(t))).call(_context5, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
4979
- function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
4980
- function _isNativeReflectConstruct$5() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
5052
+ function ownKeys$11(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5053
+ function _objectSpread$11(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context4 = ownKeys$11(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context5 = ownKeys$11(Object(t))).call(_context5, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5054
+ function _callSuper$5(_this, derived, args) {
5055
+ function isNativeReflectConstruct() {
5056
+ if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false;
5057
+ if (_Reflect$construct__default["default"].sham) return false;
5058
+ if (typeof Proxy === "function") return true;
5059
+ try {
5060
+ return !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {}));
5061
+ } catch (e) {
5062
+ return false;
5063
+ }
5064
+ }
5065
+ derived = _getPrototypeOf(derived);
5066
+ return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? _Reflect$construct__default["default"](derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
5067
+ }
4981
5068
  var FetchTypeDefinitionsQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchTypeDefinitionsQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "limit" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "offset" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "typeDefinitions" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }, { kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "Variable", name: { kind: "Name", value: "limit" } } }, { kind: "Argument", name: { kind: "Name", value: "offset" }, value: { kind: "Variable", name: { kind: "Name", value: "offset" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "fieldDefinitions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SetType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "elementType" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "label" }, arguments: [], directives: [] }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "LocalizedEnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "label" }, arguments: [], directives: [] }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "LocalizedEnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ReferenceType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "referenceTypeId" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }], loc: { start: 0, end: 1172, source: { body: "query FetchTypeDefinitionsQuery($where: String, $limit: Int, $offset: Int) {\n typeDefinitions(where: $where, limit: $limit, offset: $offset) {\n results {\n fieldDefinitions {\n type {\n name\n ... on SetType {\n elementType {\n name\n ... on EnumType {\n values {\n key\n label\n }\n }\n ... on LocalizedEnumType {\n values {\n key\n labelAllLocales {\n value\n locale\n }\n }\n }\n }\n }\n ... on EnumType {\n values {\n key\n label\n }\n }\n ... on LocalizedEnumType {\n values {\n key\n labelAllLocales {\n value\n locale\n }\n }\n }\n ... on ReferenceType {\n referenceTypeId\n }\n }\n name\n labelAllLocales {\n value\n locale\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
4982
5069
  const customizableResources$1 = ['asset', 'category', 'channel', 'customer', 'order', 'discount-code', 'cart-discount', 'inventory-entry', 'line-item', 'custom-line-item', 'product-price', 'payment', 'payment-interface-interaction', 'shopping-list', 'shopping-list-text-line-item', 'standalone-price', 'review'];
4983
5070
  let CustomFieldDefinitionsConnector = /*#__PURE__*/function (_Component) {
4984
5071
  _inherits(CustomFieldDefinitionsConnector, _Component);
4985
- var _super = _createSuper$5(CustomFieldDefinitionsConnector);
4986
5072
  function CustomFieldDefinitionsConnector() {
4987
5073
  _classCallCheck(this, CustomFieldDefinitionsConnector);
4988
- return _super.apply(this, arguments);
5074
+ return _callSuper$5(this, CustomFieldDefinitionsConnector, arguments);
4989
5075
  }
4990
5076
  _createClass(CustomFieldDefinitionsConnector, [{
4991
5077
  key: "componentDidMount",
@@ -5035,7 +5121,7 @@ const mapDataToProps = _ref => {
5035
5121
  return {
5036
5122
  fetchTypeDefinitionsQuery: {
5037
5123
  loading: fetchTypeDefinitionsQuery.loading,
5038
- customFieldDefinitions: uniqBy__default["default"](_mapInstanceProperty__default["default"](fieldDefinitionsToOptionsMap).call(fieldDefinitionsToOptionsMap, fieldDefinition => _objectSpread$10({}, l10n.applyTransformedLocalizedFields(omitDeep(fieldDefinition, ['__typename'], {
5124
+ customFieldDefinitions: uniqBy__default["default"](_mapInstanceProperty__default["default"](fieldDefinitionsToOptionsMap).call(fieldDefinitionsToOptionsMap, fieldDefinition => _objectSpread$11({}, l10n.applyTransformedLocalizedFields(omitDeep(fieldDefinition, ['__typename'], {
5039
5125
  isImmutable: true
5040
5126
  }), [{
5041
5127
  from: 'labelAllLocales',
@@ -5063,12 +5149,12 @@ const handlers$2 = {
5063
5149
  }
5064
5150
  };
5065
5151
 
5066
- function ownKeys$$(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5067
- function _objectSpread$$(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context4 = ownKeys$$(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context5 = ownKeys$$(Object(t))).call(_context5, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5152
+ function ownKeys$10(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5153
+ function _objectSpread$10(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context4 = ownKeys$10(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context5 = ownKeys$10(Object(t))).call(_context5, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5068
5154
  const restDocToForm = customFieldsFromRestResponse => {
5069
5155
  return {
5070
5156
  fields: customFieldsFromRestResponse.fields,
5071
- type: _objectSpread$$({
5157
+ type: _objectSpread$10({
5072
5158
  id: customFieldsFromRestResponse.type.id
5073
5159
  }, customFieldsFromRestResponse.type.obj)
5074
5160
  };
@@ -5087,14 +5173,14 @@ const graphQlDocToForm = typeDefinition => {
5087
5173
  name: fieldDefinition.name,
5088
5174
  required: fieldDefinition.required,
5089
5175
  inputHint: fieldDefinition.inputHint,
5090
- type: fieldDefinition.type?.elementType?.name === 'LocalizedEnum' ? _objectSpread$$(_objectSpread$$({}, fieldDefinition.type), {}, {
5091
- elementType: _objectSpread$$(_objectSpread$$({}, fieldDefinition.type.elementType), {}, {
5176
+ type: fieldDefinition.type?.elementType?.name === 'LocalizedEnum' ? _objectSpread$10(_objectSpread$10({}, fieldDefinition.type), {}, {
5177
+ elementType: _objectSpread$10(_objectSpread$10({}, fieldDefinition.type.elementType), {}, {
5092
5178
  values: _mapInstanceProperty__default["default"](_context2 = _valuesInstanceProperty__default["default"](fieldDefinition.type.elementType)).call(_context2, value => ({
5093
5179
  key: value.key,
5094
5180
  label: l10n.transformLocalizedFieldToLocalizedString(value.labelAllLocales)
5095
5181
  }))
5096
5182
  })
5097
- }) : fieldDefinition.type?.name === 'LocalizedEnum' ? _objectSpread$$(_objectSpread$$({}, fieldDefinition.type), {}, {
5183
+ }) : fieldDefinition.type?.name === 'LocalizedEnum' ? _objectSpread$10(_objectSpread$10({}, fieldDefinition.type), {}, {
5098
5184
  values: _mapInstanceProperty__default["default"](_context3 = _valuesInstanceProperty__default["default"](fieldDefinition.type)).call(_context3, value => ({
5099
5185
  key: value.key,
5100
5186
  label: l10n.transformLocalizedFieldToLocalizedString(value.labelAllLocales)
@@ -5110,7 +5196,7 @@ const formToRestDoc = formCustomFields => ({
5110
5196
  type: {
5111
5197
  id: formCustomFields.type.id,
5112
5198
  typeId: 'type',
5113
- obj: _objectSpread$$({}, formCustomFields.type)
5199
+ obj: _objectSpread$10({}, formCustomFields.type)
5114
5200
  },
5115
5201
  fields: formCustomFields.fields
5116
5202
  });
@@ -5118,7 +5204,7 @@ const formToGraphQlDoc = formCustomFields => ({
5118
5204
  type: {
5119
5205
  id: formCustomFields.type.id,
5120
5206
  typeId: 'type',
5121
- obj: _objectSpread$$({}, omit__default["default"](formCustomFields.type, ['id']))
5207
+ obj: _objectSpread$10({}, omit__default["default"](formCustomFields.type, ['id']))
5122
5208
  },
5123
5209
  fields: omitBy__default["default"](formCustomFields.fields || {}, isNil__default["default"])
5124
5210
  });
@@ -5131,10 +5217,22 @@ const createEmptyCustomFields = typeDefinition => ({
5131
5217
  }
5132
5218
  });
5133
5219
 
5134
- function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5135
- function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
5220
+ function _callSuper$4(_this, derived, args) {
5221
+ function isNativeReflectConstruct() {
5222
+ if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false;
5223
+ if (_Reflect$construct__default["default"].sham) return false;
5224
+ if (typeof Proxy === "function") return true;
5225
+ try {
5226
+ return !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {}));
5227
+ } catch (e) {
5228
+ return false;
5229
+ }
5230
+ }
5231
+ derived = _getPrototypeOf(derived);
5232
+ return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? _Reflect$construct__default["default"](derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
5233
+ }
5136
5234
  var FetchTypeDefinitionsWithNamesQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchTypeDefinitionsWithNamesQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NamedType", name: { kind: "Name", value: "String" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "limit" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "offset" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "typeDefinitions" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }, { kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "Variable", name: { kind: "Name", value: "limit" } } }, { kind: "Argument", name: { kind: "Name", value: "offset" }, value: { kind: "Variable", name: { kind: "Name", value: "offset" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "fieldDefinitions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "required" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ReferenceType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "referenceTypeId" }, arguments: [], directives: [] }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SetType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "elementType" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ReferenceType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "referenceTypeId" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "label" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "LocalizedEnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "LocalizedEnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EnumType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "label" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "inputHint" }, arguments: [], directives: [] }] } }] } }] } }] } }], loc: { start: 0, end: 1445, source: { body: "query FetchTypeDefinitionsWithNamesQuery(\n $where: String\n $limit: Int\n $offset: Int\n) {\n typeDefinitions(where: $where, limit: $limit, offset: $offset) {\n results {\n id\n key\n nameAllLocales {\n value\n locale\n }\n fieldDefinitions {\n required\n type {\n name\n ... on ReferenceType {\n referenceTypeId\n }\n ... on SetType {\n elementType {\n name\n ... on ReferenceType {\n referenceTypeId\n name\n }\n ... on EnumType {\n values {\n key\n label\n }\n name\n }\n ... on LocalizedEnumType {\n values {\n key\n labelAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n ... on LocalizedEnumType {\n values {\n key\n labelAllLocales {\n locale\n value\n }\n }\n }\n ... on EnumType {\n values {\n key\n label\n }\n name\n }\n }\n name\n labelAllLocales {\n value\n locale\n }\n inputHint\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
5137
- const customizableResources = ['asset', 'address', 'business-unit', 'category', 'channel', 'customer', 'customer-group', 'order', 'order-delivery', 'store', 'discount-code', 'inventory-entry', 'line-item', 'custom-line-item', 'product-price', 'payment', 'payment-interface-interaction', 'shipping-method', 'shopping-list', 'shopping-list-text-line-item', 'standalone-price', 'review', 'cart-discount', 'product-selection', 'order-return-item'];
5235
+ const customizableResources = ['asset', 'address', 'business-unit', 'category', 'channel', 'customer', 'customer-group', 'order', 'quote', 'order-delivery', 'store', 'discount-code', 'inventory-entry', 'line-item', 'custom-line-item', 'product-price', 'payment', 'payment-interface-interaction', 'shipping-method', 'shopping-list', 'shopping-list-text-line-item', 'standalone-price', 'review', 'cart-discount', 'product-selection', 'order-return-item', 'order-parcel'];
5138
5236
  const emptyTypeDefinitions = {
5139
5237
  total: 0,
5140
5238
  count: 0,
@@ -5142,10 +5240,9 @@ const emptyTypeDefinitions = {
5142
5240
  };
5143
5241
  let CustomFieldTypeDefinitionsConnector = /*#__PURE__*/function (_Component) {
5144
5242
  _inherits(CustomFieldTypeDefinitionsConnector, _Component);
5145
- var _super = _createSuper$4(CustomFieldTypeDefinitionsConnector);
5146
5243
  function CustomFieldTypeDefinitionsConnector() {
5147
5244
  _classCallCheck(this, CustomFieldTypeDefinitionsConnector);
5148
- return _super.apply(this, arguments);
5245
+ return _callSuper$4(this, CustomFieldTypeDefinitionsConnector, arguments);
5149
5246
  }
5150
5247
  _createClass(CustomFieldTypeDefinitionsConnector, [{
5151
5248
  key: "componentDidMount",
@@ -5249,8 +5346,8 @@ const REFERENCED_TYPES = {
5249
5346
  zone: 'zone'
5250
5347
  };
5251
5348
 
5252
- function ownKeys$_(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5253
- function _objectSpread$_(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$_(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$_(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5349
+ function ownKeys$$(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5350
+ function _objectSpread$$(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$$(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$$(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5254
5351
  const extractDuplicatedValues = (values, type, language, languages) => {
5255
5352
  let validatedValues = [];
5256
5353
  if (type.name.toLowerCase() === 'money') {
@@ -5317,14 +5414,14 @@ function validations (formValues, language, languages) {
5317
5414
  var _context2;
5318
5415
  // Collect all required and set type fields
5319
5416
  const fieldDefinitionsToValidate = _filterInstanceProperty__default["default"](_context2 = formValues.custom.type.fieldDefinitions).call(_context2, fieldDefinition => fieldDefinition.required || fieldDefinition.type.name.toLowerCase() === 'set');
5320
- const errors = _reduceInstanceProperty__default["default"](fieldDefinitionsToValidate).call(fieldDefinitionsToValidate, (acc, fieldDefinition) => _objectSpread$_(_objectSpread$_({}, acc), {}, {
5321
- [fieldDefinition.name]: _objectSpread$_(_objectSpread$_({}, setMissingIfRequired(formValues, fieldDefinition)), setDuplicatedIfSet(formValues, fieldDefinition, language, languages))
5417
+ const errors = _reduceInstanceProperty__default["default"](fieldDefinitionsToValidate).call(fieldDefinitionsToValidate, (acc, fieldDefinition) => _objectSpread$$(_objectSpread$$({}, acc), {}, {
5418
+ [fieldDefinition.name]: _objectSpread$$(_objectSpread$$({}, setMissingIfRequired(formValues, fieldDefinition)), setDuplicatedIfSet(formValues, fieldDefinition, language, languages))
5322
5419
  }), {});
5323
5420
  return withoutEmptyErrorsByField(errors);
5324
5421
  }
5325
5422
 
5326
- function ownKeys$Z(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5327
- function _objectSpread$Z(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$Z(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$Z(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5423
+ function ownKeys$_(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5424
+ function _objectSpread$_(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$_(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$_(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5328
5425
  const DroppableWrapper = _ref => {
5329
5426
  let children = _ref.children,
5330
5427
  onDragEnd = _ref.onDragEnd;
@@ -5332,7 +5429,7 @@ const DroppableWrapper = _ref => {
5332
5429
  onDragEnd: onDragEnd,
5333
5430
  children: jsxRuntime.jsx(reactBeautifulDnd.Droppable, {
5334
5431
  droppableId: "droppable",
5335
- children: provided => jsxRuntime.jsxs("div", _objectSpread$Z(_objectSpread$Z({
5432
+ children: provided => jsxRuntime.jsxs("div", _objectSpread$_(_objectSpread$_({
5336
5433
  ref: provided.innerRef
5337
5434
  }, provided.droppableProps), {}, {
5338
5435
  children: [children, provided.placeholder]
@@ -5341,10 +5438,10 @@ const DroppableWrapper = _ref => {
5341
5438
  });
5342
5439
  };
5343
5440
 
5344
- function ownKeys$Y(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5345
- function _objectSpread$Y(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$Y(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$Y(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5441
+ function ownKeys$Z(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5442
+ function _objectSpread$Z(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$Z(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$Z(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5346
5443
  function DragHandle(props) {
5347
- return jsxRuntime.jsx("div", _objectSpread$Y(_objectSpread$Y({}, props), {}, {
5444
+ return jsxRuntime.jsx("div", _objectSpread$Z(_objectSpread$Z({}, props), {}, {
5348
5445
  children: jsxRuntime.jsx(uiKit.IconButton, {
5349
5446
  icon: jsxRuntime.jsx(uiKit.DragIcon, {}),
5350
5447
  size: "medium",
@@ -5354,32 +5451,59 @@ function DragHandle(props) {
5354
5451
  }
5355
5452
  DragHandle.displayName = 'DragHandle';
5356
5453
 
5357
- function ownKeys$X(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5358
- function _objectSpread$X(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$X(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$X(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5359
- const DraggableWrapper = _ref => {
5360
- let children = _ref.children,
5361
- draggableKey = _ref.draggableKey,
5362
- draggableId = _ref.draggableId,
5363
- index = _ref.index;
5454
+ function ownKeys$Y(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5455
+ function _objectSpread$Y(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$Y(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$Y(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5456
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$1() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
5457
+ var _ref$1 = process.env.NODE_ENV === "production" ? {
5458
+ name: "1onfs6j",
5459
+ styles: "z-index:100000!important"
5460
+ } : {
5461
+ name: "4jor1w-child",
5462
+ styles: "z-index:100000!important;label:child;",
5463
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRyYWdnYWJsZS13cmFwcGVyLmpzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF1Q29CIiwiZmlsZSI6ImRyYWdnYWJsZS13cmFwcGVyLmpzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyBEcmFnZ2FibGUgfSBmcm9tICdyZWFjdC1iZWF1dGlmdWwtZG5kJztcbmltcG9ydCBSZWFjdERPTSBmcm9tICdyZWFjdC1kb20nO1xuaW1wb3J0IHsgY3VzdG9tUHJvcGVydGllcywgR3JpZCwgQ2FyZCB9IGZyb20gJ0Bjb21tZXJjZXRvb2xzLWZyb250ZW5kL3VpLWtpdCc7XG5pbXBvcnQgeyBEcmFnSGFuZGxlIH0gZnJvbSAnLi9kcmFnLWhhbmRsZSc7XG5cbmV4cG9ydCBjb25zdCBEcmFnZ2FibGVXcmFwcGVyID0gKHtcbiAgY2hpbGRyZW4sXG4gIGRyYWdnYWJsZUtleSxcbiAgZHJhZ2dhYmxlSWQsXG4gIGluZGV4LFxufSkgPT4ge1xuICBjb25zdCBwb3J0YWwgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCdkaXYnKTtcbiAgcG9ydGFsLmlkID0gJ2RyYWctcmJkLXBvcnRhbCc7XG4gIGRvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQocG9ydGFsKTtcblxuICBjb25zdCBEcmFnZ2luZ0NhcmQgPSAoeyBpc0RyYWdnaW5nLCBjaGlsZHJlbiB9KSA9PiB7XG4gICAgaWYgKGlzRHJhZ2dpbmcpIHtcbiAgICAgIHJldHVybiAoXG4gICAgICAgIDxDYXJkIHRoZW1lPVwibGlnaHRcIiBpbnNldFNjYWxlPVwibVwiPlxuICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgPC9DYXJkPlxuICAgICAgKTtcbiAgICB9IGVsc2Uge1xuICAgICAgcmV0dXJuIGNoaWxkcmVuO1xuICAgIH1cbiAgfTtcbiAgRHJhZ2dpbmdDYXJkLnByb3BUeXBlcyA9IHtcbiAgICBpc0RyYWdnaW5nOiBQcm9wVHlwZXMuYm9vbC5pc1JlcXVpcmVkLFxuICAgIGNoaWxkcmVuOiBQcm9wVHlwZXMubm9kZS5pc1JlcXVpcmVkLFxuICB9O1xuICByZXR1cm4gKFxuICAgIDxEcmFnZ2FibGUga2V5PXtkcmFnZ2FibGVLZXl9IGRyYWdnYWJsZUlkPXtkcmFnZ2FibGVJZH0gaW5kZXg9e2luZGV4fT5cbiAgICAgIHsocHJvdmlkZWQsIHNuYXBzaG90KSA9PiB7XG4gICAgICAgIGNvbnN0IGNoaWxkID0gKFxuICAgICAgICAgIDxkaXZcbiAgICAgICAgICAgIHJlZj17cHJvdmlkZWQuaW5uZXJSZWZ9XG4gICAgICAgICAgICB7Li4ucHJvdmlkZWQuZHJhZ2dhYmxlUHJvcHN9XG4gICAgICAgICAgICBjc3M9e2Nzc2BcbiAgICAgICAgICAgICAgei1pbmRleDogMTAwMDAwICFpbXBvcnRhbnQ7XG4gICAgICAgICAgICBgfVxuICAgICAgICAgID5cbiAgICAgICAgICAgIDxEcmFnZ2luZ0NhcmQgaXNEcmFnZ2luZz17c25hcHNob3QuaXNEcmFnZ2luZ30+XG4gICAgICAgICAgICAgIDxHcmlkXG4gICAgICAgICAgICAgICAgZ3JpZFRlbXBsYXRlQ29sdW1ucz17JzFmciAyMGZyJ31cbiAgICAgICAgICAgICAgICBncmlkVGVtcGxhdGVSb3dzPVwiYXV0byAxZnIgYXV0b1wiXG4gICAgICAgICAgICAgICAgZ3JpZEdhcD17XG4gICAgICAgICAgICAgICAgICBzbmFwc2hvdC5pc0RyYWdnaW5nXG4gICAgICAgICAgICAgICAgICAgID8gY3VzdG9tUHJvcGVydGllcy5zcGFjaW5nU1xuICAgICAgICAgICAgICAgICAgICA6IGN1c3RvbVByb3BlcnRpZXMuc3BhY2luZ01cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICA8R3JpZC5JdGVtPlxuICAgICAgICAgICAgICAgICAgPERyYWdIYW5kbGUgey4uLnByb3ZpZGVkLmRyYWdIYW5kbGVQcm9wc30gLz5cbiAgICAgICAgICAgICAgICA8L0dyaWQuSXRlbT5cbiAgICAgICAgICAgICAgICA8R3JpZC5JdGVtPntjaGlsZHJlbn08L0dyaWQuSXRlbT5cbiAgICAgICAgICAgICAgPC9HcmlkPlxuICAgICAgICAgICAgPC9EcmFnZ2luZ0NhcmQ+XG4gICAgICAgICAgPC9kaXY+XG4gICAgICAgICk7XG5cbiAgICAgICAgaWYgKCFzbmFwc2hvdC5pc0RyYWdnaW5nKSB7XG4gICAgICAgICAgcmV0dXJuIGNoaWxkO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gcmVuZGVyIHRoZSBkcmFnZ2FibGUgaW4gdGhlIHBvcnRhbCB3aGVuIGl0J3MgYmVpbmcgZHJhZ2dlZFxuICAgICAgICByZXR1cm4gUmVhY3RET00uY3JlYXRlUG9ydGFsKDxkaXY+e2NoaWxkfTwvZGl2PiwgcG9ydGFsKTtcbiAgICAgIH19XG4gICAgPC9EcmFnZ2FibGU+XG4gICk7XG59O1xuXG5EcmFnZ2FibGVXcmFwcGVyLnByb3BUeXBlcyA9IHtcbiAgZHJhZ2dhYmxlS2V5OiBQcm9wVHlwZXMuc3RyaW5nLmlzUmVxdWlyZWQsXG4gIGluZGV4OiBQcm9wVHlwZXMubnVtYmVyLmlzUmVxdWlyZWQsXG4gIGRyYWdnYWJsZUlkOiBQcm9wVHlwZXMuc3RyaW5nLmlzUmVxdWlyZWQsXG4gIGNoaWxkcmVuOiBQcm9wVHlwZXMubm9kZS5pc1JlcXVpcmVkLFxufTtcbiJdfQ== */",
5464
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
5465
+ };
5466
+ const DraggableWrapper = _ref2 => {
5467
+ let children = _ref2.children,
5468
+ draggableKey = _ref2.draggableKey,
5469
+ draggableId = _ref2.draggableId,
5470
+ index = _ref2.index;
5364
5471
  const portal = document.createElement('div');
5365
5472
  portal.id = 'drag-rbd-portal';
5366
5473
  document.body.appendChild(portal);
5474
+ const DraggingCard = _ref3 => {
5475
+ let isDragging = _ref3.isDragging,
5476
+ children = _ref3.children;
5477
+ if (isDragging) {
5478
+ return jsxRuntime.jsx(uiKit.Card, {
5479
+ theme: "light",
5480
+ insetScale: "m",
5481
+ children: children
5482
+ });
5483
+ } else {
5484
+ return children;
5485
+ }
5486
+ };
5367
5487
  return jsxRuntime.jsx(reactBeautifulDnd.Draggable, {
5368
5488
  draggableId: draggableId,
5369
5489
  index: index,
5370
5490
  children: (provided, snapshot) => {
5371
- const child = jsxRuntime.jsx("div", _objectSpread$X(_objectSpread$X({
5491
+ const child = jsxRuntime.jsx("div", _objectSpread$Y(_objectSpread$Y({
5372
5492
  ref: provided.innerRef
5373
5493
  }, provided.draggableProps), {}, {
5374
- children: jsxRuntime.jsxs(uiKit.Grid, {
5375
- gridTemplateColumns: '1fr 20fr',
5376
- gridTemplateRows: "auto 1fr auto",
5377
- gridGap: uiKit.customProperties.spacingM,
5378
- children: [jsxRuntime.jsx(uiKit.Grid.Item, {
5379
- children: jsxRuntime.jsx(DragHandle, _objectSpread$X({}, provided.dragHandleProps))
5380
- }), jsxRuntime.jsx(uiKit.Grid.Item, {
5381
- children: children
5382
- })]
5494
+ css: _ref$1,
5495
+ children: jsxRuntime.jsx(DraggingCard, {
5496
+ isDragging: snapshot.isDragging,
5497
+ children: jsxRuntime.jsxs(uiKit.Grid, {
5498
+ gridTemplateColumns: '1fr 20fr',
5499
+ gridTemplateRows: "auto 1fr auto",
5500
+ gridGap: snapshot.isDragging ? uiKit.customProperties.spacingS : uiKit.customProperties.spacingM,
5501
+ children: [jsxRuntime.jsx(uiKit.Grid.Item, {
5502
+ children: jsxRuntime.jsx(DragHandle, _objectSpread$Y({}, provided.dragHandleProps))
5503
+ }), jsxRuntime.jsx(uiKit.Grid.Item, {
5504
+ children: children
5505
+ })]
5506
+ })
5383
5507
  })
5384
5508
  }));
5385
5509
  if (!snapshot.isDragging) {
@@ -5394,8 +5518,8 @@ const DraggableWrapper = _ref => {
5394
5518
  }, draggableKey);
5395
5519
  };
5396
5520
 
5397
- function ownKeys$W(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5398
- function _objectSpread$W(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$W(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$W(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5521
+ function ownKeys$X(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5522
+ function _objectSpread$X(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$X(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$X(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5399
5523
  const DefaultWrapper = _ref => {
5400
5524
  let children = _ref.children;
5401
5525
  return jsxRuntime.jsx(jsxRuntime.Fragment, {
@@ -5416,24 +5540,24 @@ const DndProvider = _ref2 => {
5416
5540
  children = _ref2.children;
5417
5541
  const _useToggleState = uiKit.useToggleState(false),
5418
5542
  _useToggleState2 = _slicedToArray(_useToggleState, 2),
5419
- isDragAndDropMode = _useToggleState2[0],
5420
- setDragAndDropMode = _useToggleState2[1];
5421
- if (isDragAndDropMode) {
5543
+ isDnDMode = _useToggleState2[0],
5544
+ setDnDMode = _useToggleState2[1];
5545
+ if (isDnDMode) {
5422
5546
  return jsxRuntime.jsx(DnDContext.Provider, {
5423
5547
  value: {
5424
5548
  onDragEnd,
5425
5549
  DroppableWrapper,
5426
5550
  DraggableWrapper,
5427
- setDragAndDropMode,
5428
- isDragAndDropMode
5551
+ setDnDMode,
5552
+ isDnDMode
5429
5553
  },
5430
5554
  children: children
5431
5555
  });
5432
5556
  }
5433
5557
  return jsxRuntime.jsx(DnDContext.Provider, {
5434
- value: _objectSpread$W(_objectSpread$W({}, dndContextDefaultValues), {}, {
5435
- isDragAndDropMode,
5436
- setDragAndDropMode
5558
+ value: _objectSpread$X(_objectSpread$X({}, dndContextDefaultValues), {}, {
5559
+ isDnDMode,
5560
+ setDnDMode
5437
5561
  }),
5438
5562
  children: children
5439
5563
  });
@@ -5446,7 +5570,10 @@ function CustomTextInput(props) {
5446
5570
  const isMultiLine = props.fieldDefinition.inputHint === 'MultiLine';
5447
5571
  const InputComponent = isMultiLine ? uiKit.MultilineTextInput : uiKit.TextInput;
5448
5572
  const value = props.value || '';
5449
- const handleChange = makeChangeHandler(rawValue => props.setFieldValue(props.name, rawValue || undefined));
5573
+ const handleChange = makeChangeHandler(rawValue => {
5574
+ props.setFieldValue(props.name, rawValue || undefined);
5575
+ props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
5576
+ });
5450
5577
  const tooltipValue = isMultiLine ? '' : value;
5451
5578
  return jsxRuntime.jsx(CustomFieldTooltip, {
5452
5579
  title: tooltipValue,
@@ -5458,14 +5585,15 @@ function CustomTextInput(props) {
5458
5585
  onBlur: props.onBlur,
5459
5586
  hasError: props.hasError,
5460
5587
  isDisabled: props.isDisabled,
5461
- isReadOnly: props.isReadOnly
5588
+ isReadOnly: props.isReadOnly,
5589
+ hasWarning: props.hasWarning
5462
5590
  })
5463
5591
  });
5464
5592
  }
5465
5593
  CustomTextInput.displayName = 'CustomTextInput';
5466
5594
 
5467
- function ownKeys$V(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5468
- function _objectSpread$V(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$V(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$V(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5595
+ function ownKeys$W(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5596
+ function _objectSpread$W(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$W(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$W(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5469
5597
  const getSubfieldLanguage = subfieldName => {
5470
5598
  const lastDotIndex = _lastIndexOfInstanceProperty__default["default"](subfieldName).call(subfieldName, '.');
5471
5599
  return subfieldName.substring(lastDotIndex + 1);
@@ -5488,11 +5616,12 @@ function CustomLocalizedTextInput(props) {
5488
5616
  // as a whole.
5489
5617
 
5490
5618
  const fieldLanguage = getSubfieldLanguage(subfieldName);
5491
- const newValue = _objectSpread$V(_objectSpread$V({}, props.value), {}, {
5619
+ const newValue = _objectSpread$W(_objectSpread$W({}, props.value), {}, {
5492
5620
  [fieldLanguage]: rawValue
5493
5621
  });
5494
5622
  const nullifiedIfNeeded = uiKit.LocalizedTextInput.isEmpty(newValue) ? undefined : newValue;
5495
5623
  props.setFieldValue(props.name, nullifiedIfNeeded);
5624
+ props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
5496
5625
  });
5497
5626
  const InputComponent = isMultiLine ? uiKit.LocalizedMultilineTextInput : uiKit.LocalizedTextInput;
5498
5627
  const tooltipTitle = isMultiLine ? '' : value ? value[language] ?? '' : '';
@@ -5507,7 +5636,8 @@ function CustomLocalizedTextInput(props) {
5507
5636
  selectedLanguage: language,
5508
5637
  hasError: props.hasError,
5509
5638
  isDisabled: props.isDisabled,
5510
- isReadOnly: props.isReadOnly
5639
+ isReadOnly: props.isReadOnly,
5640
+ hasWarning: props.hasWarning
5511
5641
  })
5512
5642
  });
5513
5643
  }
@@ -5522,7 +5652,10 @@ const options$1 = [{
5522
5652
  }];
5523
5653
  function CustomBooleanInput(props) {
5524
5654
  const value = isNil__default["default"](props.value) ? props.value : String(props.value);
5525
- const handleChange = makeChangeHandler(rawValue => props.setFieldValue(props.name, isNil__default["default"](rawValue) ? undefined : rawValue === 'true'));
5655
+ const handleChange = makeChangeHandler(rawValue => {
5656
+ props.setFieldValue(props.name, isNil__default["default"](rawValue) ? undefined : rawValue === 'true');
5657
+ props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
5658
+ });
5526
5659
  return jsxRuntime.jsx(uiKit.SelectInput, {
5527
5660
  id: props.name,
5528
5661
  name: props.name,
@@ -5533,14 +5666,20 @@ function CustomBooleanInput(props) {
5533
5666
  isClearable: !props.fieldDefinition.required,
5534
5667
  isDisabled: props.isDisabled,
5535
5668
  isReadOnly: props.isReadOnly,
5536
- hasError: props.hasError
5669
+ hasError: props.hasError,
5670
+ menuPortalZIndex: Z_INDEX_DROPDOWN,
5671
+ menuPortalTarget: document.body,
5672
+ hasWarning: props.hasWarning
5537
5673
  });
5538
5674
  }
5539
5675
  CustomBooleanInput.displayName = 'CustomBooleanInput';
5540
5676
 
5541
5677
  function CustomNumberInput(props) {
5542
5678
  const value = props.value ?? '';
5543
- const handleChange = makeChangeHandler(rawValue => props.setFieldValue(props.name, !rawValue ? undefined : Number(rawValue)));
5679
+ const handleChange = makeChangeHandler(rawValue => {
5680
+ props.setFieldValue(props.name, !rawValue ? undefined : Number(rawValue));
5681
+ props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
5682
+ });
5544
5683
  return jsxRuntime.jsx(uiKit.NumberInput, {
5545
5684
  id: props.name,
5546
5685
  name: props.name,
@@ -5549,26 +5688,27 @@ function CustomNumberInput(props) {
5549
5688
  onBlur: props.onBlur,
5550
5689
  hasError: props.hasError,
5551
5690
  isDisabled: props.isDisabled,
5552
- isReadOnly: props.isReadOnly
5691
+ isReadOnly: props.isReadOnly,
5692
+ hasWarning: props.hasWarning
5553
5693
  });
5554
5694
  }
5555
5695
  CustomNumberInput.displayName = 'CustomNumberInput';
5556
5696
 
5557
- function ownKeys$U(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5558
- function _objectSpread$U(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$U(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$U(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5559
- var styles$f = {
5697
+ function ownKeys$V(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5698
+ function _objectSpread$V(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$V(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$V(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5699
+ var styles$g = {
5560
5700
  "container": "custom-money-input-module__container___1fdO2"
5561
5701
  };
5562
5702
  const fixCurrencyCode = (value, currencies) => {
5563
5703
  if (value.currencyCode) return value;
5564
5704
  const firstCurrency = currencies[0];
5565
- return _objectSpread$U(_objectSpread$U({}, value), {}, {
5705
+ return _objectSpread$V(_objectSpread$V({}, value), {}, {
5566
5706
  currencyCode: firstCurrency
5567
5707
  });
5568
5708
  };
5569
5709
  const fixAmount = value => {
5570
5710
  if (!value.amount) {
5571
- return _objectSpread$U(_objectSpread$U({}, value), {}, {
5711
+ return _objectSpread$V(_objectSpread$V({}, value), {}, {
5572
5712
  amount: '0'
5573
5713
  });
5574
5714
  }
@@ -5610,17 +5750,18 @@ function CustomMoneyInput(props) {
5610
5750
  }
5611
5751
  const handleChange = makeChangeHandler((rawValue, subfieldName) => {
5612
5752
  const isAmount = _endsWithInstanceProperty__default["default"](subfieldName).call(subfieldName, 'amount');
5613
- const newValue = _objectSpread$U({}, internalValue.current);
5753
+ const newValue = _objectSpread$V({}, internalValue.current);
5614
5754
  if (isAmount) newValue.amount = rawValue;else newValue.currencyCode = rawValue;
5615
5755
  const fixedValue = fixEnteredValue(newValue, internalValue.current, currencies);
5616
5756
  internalValue.current = fixedValue;
5617
5757
  const converted = uiKit.MoneyInput.convertToMoneyValue(fixedValue, locale);
5618
5758
  props.setFieldValue(props.name, converted || undefined);
5759
+ props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
5619
5760
  });
5620
5761
 
5621
5762
  // TODO(pa3): fix setting proper id in UIKit
5622
5763
  return jsxRuntime.jsxs("div", {
5623
- className: styles$f.container,
5764
+ className: styles$g.container,
5624
5765
  "aria-labelledby": props.name,
5625
5766
  children: [jsxRuntime.jsx(uiKit.AccessibleHidden, {
5626
5767
  children: jsxRuntime.jsx("label", {
@@ -5637,7 +5778,10 @@ function CustomMoneyInput(props) {
5637
5778
  isReadOnly: props.isReadOnly,
5638
5779
  isDisabled: props.isDisabled,
5639
5780
  hasError: props.hasError,
5640
- horizontalConstraint: "scale"
5781
+ horizontalConstraint: "scale",
5782
+ menuPortalZIndex: Z_INDEX_DROPDOWN,
5783
+ menuPortalTarget: document.body,
5784
+ hasWarning: props.hasWarning
5641
5785
  })]
5642
5786
  });
5643
5787
  }
@@ -5663,7 +5807,10 @@ function CustomLocalizedEnumInput(props) {
5663
5807
  languages = _useApplicationContex.languages,
5664
5808
  dataLocale = _useApplicationContex.dataLocale;
5665
5809
  const options = convertTypeValuesToOptions$1(props.fieldDefinition.type, dataLocale, languages);
5666
- const handleChange = makeChangeHandler(rawValue => props.setFieldValue(props.name, rawValue));
5810
+ const handleChange = makeChangeHandler(rawValue => {
5811
+ props.setFieldValue(props.name, rawValue);
5812
+ props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
5813
+ });
5667
5814
  const tooltipTitle = props.value ? _findInstanceProperty__default["default"](options).call(options, option => option.value === props.value)?.label ?? '' : '';
5668
5815
  return jsxRuntime.jsx(CustomFieldTooltip, {
5669
5816
  title: tooltipTitle,
@@ -5677,7 +5824,10 @@ function CustomLocalizedEnumInput(props) {
5677
5824
  isClearable: !props.fieldDefinition.required,
5678
5825
  hasError: props.hasError,
5679
5826
  isDisabled: props.isDisabled,
5680
- isReadOnly: props.isReadOnly
5827
+ isReadOnly: props.isReadOnly,
5828
+ menuPortalZIndex: Z_INDEX_DROPDOWN,
5829
+ menuPortalTarget: document.body,
5830
+ hasWarning: props.hasWarning
5681
5831
  })
5682
5832
  });
5683
5833
  }
@@ -5694,7 +5844,8 @@ function CustomRawIdReferenceInput(props) {
5694
5844
  onBlur: props.onBlur,
5695
5845
  hasError: props.hasError,
5696
5846
  isDisabled: props.isDisabled,
5697
- isReadOnly: props.isReadOnly
5847
+ isReadOnly: props.isReadOnly,
5848
+ hasWarning: props.hasWarning
5698
5849
  })
5699
5850
  });
5700
5851
  }
@@ -5746,7 +5897,7 @@ function getCategoriesByIds(apolloClient, options) {
5746
5897
  });
5747
5898
  }
5748
5899
 
5749
- var styles$e = {
5900
+ var styles$f = {
5750
5901
  "container": "reference-search-module__container___3-iK3",
5751
5902
  "missing-label": "reference-search-module__missing-label___az9AO"
5752
5903
  };
@@ -5853,9 +6004,9 @@ function ReferenceSearch(props) {
5853
6004
  props.onChange(option);
5854
6005
  };
5855
6006
  return jsxRuntime.jsxs("div", {
5856
- className: styles$e.container,
6007
+ className: styles$f.container,
5857
6008
  children: [areSomeItemsMissing && jsxRuntime.jsx("div", {
5858
- className: styles$e['missing-label'],
6009
+ className: styles$f['missing-label'],
5859
6010
  children: props.referenceIsMissingLabel
5860
6011
  }), jsxRuntime.jsx(CustomFieldTooltip, {
5861
6012
  title: tooltipTitle,
@@ -5879,7 +6030,10 @@ function ReferenceSearch(props) {
5879
6030
  isReadOnly: props.isReadOnly,
5880
6031
  onBlur: props.onBlur,
5881
6032
  hasError: props.hasError,
5882
- noOptionsMessage: () => props.noResultsLabel
6033
+ noOptionsMessage: () => props.noResultsLabel,
6034
+ menuPortalZIndex: Z_INDEX_DROPDOWN,
6035
+ menuPortalTarget: document.body,
6036
+ hasWarning: props.hasWarning
5883
6037
  })]
5884
6038
  })
5885
6039
  })]
@@ -5919,8 +6073,8 @@ const messages$B = reactIntl.defineMessages({
5919
6073
  }
5920
6074
  });
5921
6075
 
5922
- function ownKeys$T(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5923
- function _objectSpread$T(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$T(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$T(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
6076
+ function ownKeys$U(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
6077
+ function _objectSpread$U(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$U(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$U(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5924
6078
  function Option$1(props) {
5925
6079
  const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
5926
6080
  language: applicationContext.dataLocale,
@@ -5931,7 +6085,7 @@ function Option$1(props) {
5931
6085
  const _useIntl = reactIntl.useIntl(),
5932
6086
  formatMessage = _useIntl.formatMessage;
5933
6087
  const category = props.data;
5934
- return jsxRuntime.jsx(uiKit.AsyncSelectInput.Option, _objectSpread$T(_objectSpread$T({}, props), {}, {
6088
+ return jsxRuntime.jsx(uiKit.AsyncSelectInput.Option, _objectSpread$U(_objectSpread$U({}, props), {}, {
5935
6089
  children: jsxRuntime.jsxs("div", {
5936
6090
  "data-testid": "category-option",
5937
6091
  children: [jsxRuntime.jsx(uiKit.Text.Body, {
@@ -5960,8 +6114,8 @@ function Option$1(props) {
5960
6114
  }));
5961
6115
  }
5962
6116
 
5963
- function ownKeys$S(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
5964
- function _objectSpread$S(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$S(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$S(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
6117
+ function ownKeys$T(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
6118
+ function _objectSpread$T(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$T(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$T(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
5965
6119
  const filterOption$1 = () => true;
5966
6120
  function CategoryReferenceSearch(props) {
5967
6121
  const _useIntl = reactIntl.useIntl(),
@@ -5973,7 +6127,7 @@ function CategoryReferenceSearch(props) {
5973
6127
  })),
5974
6128
  language = _useApplicationContex.language,
5975
6129
  languages = _useApplicationContex.languages;
5976
- const mapItemToOption = React.useCallback(category => _objectSpread$S(_objectSpread$S({}, category), {}, {
6130
+ const mapItemToOption = React.useCallback(category => _objectSpread$T(_objectSpread$T({}, category), {}, {
5977
6131
  value: category.id,
5978
6132
  label: l10n.formatLocalizedString(category, {
5979
6133
  key: 'name',
@@ -5991,7 +6145,7 @@ function CategoryReferenceSearch(props) {
5991
6145
  }), [apolloClient]);
5992
6146
  return jsxRuntime.jsx(ReferenceSearch, {
5993
6147
  id: props.id,
5994
- components: _objectSpread$S({
6148
+ components: _objectSpread$T({
5995
6149
  Option: Option$1
5996
6150
  }, props.components),
5997
6151
  isClearable: props.isClearable,
@@ -6009,7 +6163,8 @@ function CategoryReferenceSearch(props) {
6009
6163
  mapItemToOption: mapItemToOption,
6010
6164
  loadItemsBySearchTerm: loadItemsBySearchTerm,
6011
6165
  loadItemsByIds: loadItemsByIds,
6012
- filterOption: filterOption$1
6166
+ filterOption: filterOption$1,
6167
+ hasWarning: props.hasWarning
6013
6168
  });
6014
6169
  }
6015
6170
 
@@ -6106,8 +6261,8 @@ const messages$A = reactIntl.defineMessages({
6106
6261
  }
6107
6262
  });
6108
6263
 
6109
- function ownKeys$R(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
6110
- function _objectSpread$R(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$R(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$R(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
6264
+ function ownKeys$S(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
6265
+ function _objectSpread$S(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$S(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$S(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
6111
6266
  function Option(props) {
6112
6267
  const _useApplicationContex = applicationShellConnectors.useApplicationContext(applicationContext => ({
6113
6268
  language: applicationContext.dataLocale,
@@ -6118,7 +6273,7 @@ function Option(props) {
6118
6273
  const _useIntl = reactIntl.useIntl(),
6119
6274
  formatMessage = _useIntl.formatMessage;
6120
6275
  const cartDiscount = props.data;
6121
- return jsxRuntime.jsx(uiKit.AsyncSelectInput.Option, _objectSpread$R(_objectSpread$R({}, props), {}, {
6276
+ return jsxRuntime.jsx(uiKit.AsyncSelectInput.Option, _objectSpread$S(_objectSpread$S({}, props), {}, {
6122
6277
  children: jsxRuntime.jsxs("div", {
6123
6278
  "data-testid": "cart-discount-option",
6124
6279
  children: [jsxRuntime.jsx(uiKit.Text.Detail, {
@@ -6135,8 +6290,8 @@ function Option(props) {
6135
6290
  }));
6136
6291
  }
6137
6292
 
6138
- function ownKeys$Q(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
6139
- function _objectSpread$Q(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$Q(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$Q(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
6293
+ function ownKeys$R(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
6294
+ function _objectSpread$R(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$R(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$R(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
6140
6295
  var CartDiscountsCount$1 = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "CartDiscountsCount" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "cartDiscounts" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 425, source: { body: "query SearchCartDiscount($where: String) {\n cartDiscounts(limit: 500, where: $where) {\n total\n results {\n id\n key\n nameAllLocales {\n locale\n value\n }\n }\n }\n}\n\nquery CartDiscountsCount {\n cartDiscounts {\n total\n }\n}\n\nquery FetchCartDiscountById($cartDiscountId: String!) {\n cartDiscount(id: $cartDiscountId) {\n id\n nameAllLocales {\n locale\n value\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
6141
6296
  const returnNullIfEmpty = value => value && value.id === '' ? null : value;
6142
6297
  const filterOption = (option, text) => {
@@ -6162,7 +6317,7 @@ function CartDiscountReferenceSearch(props) {
6162
6317
  })),
6163
6318
  language = _useApplicationContex.language,
6164
6319
  languages = _useApplicationContex.languages;
6165
- const mapItemToOption = React.useCallback(cartDiscount => _objectSpread$Q(_objectSpread$Q({}, cartDiscount), {}, {
6320
+ const mapItemToOption = React.useCallback(cartDiscount => _objectSpread$R(_objectSpread$R({}, cartDiscount), {}, {
6166
6321
  value: cartDiscount.id,
6167
6322
  key: cartDiscount.key,
6168
6323
  label: l10n.formatLocalizedString(cartDiscount, {
@@ -6212,7 +6367,8 @@ function CartDiscountReferenceSearch(props) {
6212
6367
  mapItemToOption: mapItemToOption,
6213
6368
  loadItemsBySearchTerm: loadItemsBySearchTerm,
6214
6369
  loadItemsByIds: loadItemsByIds,
6215
- filterOption: filterOption
6370
+ filterOption: filterOption,
6371
+ hasWarning: props.hasWarning
6216
6372
  })
6217
6373
  });
6218
6374
  }
@@ -6239,7 +6395,8 @@ function CustomCategoryReferenceInput(props) {
6239
6395
  hasError: props.hasError,
6240
6396
  isReadOnly: props.isReadOnly,
6241
6397
  isDisabled: props.isDisabled,
6242
- isClearable: !props.fieldDefinition.required
6398
+ isClearable: !props.fieldDefinition.required,
6399
+ hasWarning: props.hasWarning
6243
6400
  });
6244
6401
  }
6245
6402
  CustomCategoryReferenceInput.displayName = 'CustomCategoryReferenceInput';
@@ -6265,7 +6422,8 @@ function CustomCartDiscountReferenceInput(props) {
6265
6422
  onBlur: handleBlur,
6266
6423
  hasError: props.hasError,
6267
6424
  isDisabled: props.isDisabled || props.isReadOnly,
6268
- isClearable: !props.fieldDefinition.required
6425
+ isClearable: !props.fieldDefinition.required,
6426
+ hasWarning: props.hasWarning
6269
6427
  });
6270
6428
  }
6271
6429
 
@@ -6298,7 +6456,8 @@ const ProductPickerInput = _ref => {
6298
6456
  value = _ref.value,
6299
6457
  hasError = _ref.hasError,
6300
6458
  onError = _ref.onError,
6301
- showLoadingErrorMessage = _ref.showLoadingErrorMessage;
6459
+ showLoadingErrorMessage = _ref.showLoadingErrorMessage,
6460
+ hasWarning = _ref.hasWarning;
6302
6461
  const formatLocalizedFieldToString = useFormatLocalizedFieldToString();
6303
6462
  const _useIntl = reactIntl.useIntl(),
6304
6463
  formatMessage = _useIntl.formatMessage;
@@ -6381,7 +6540,10 @@ const ProductPickerInput = _ref => {
6381
6540
  onBlur: onBlur,
6382
6541
  value: currentOption.data,
6383
6542
  noOptionsMessage: () => isLoadingFailed ? null : formatMessage(messages$z.noProductsFound),
6384
- hasError: hasError || isLoadingFailed
6543
+ hasError: hasError || isLoadingFailed,
6544
+ menuPortalZIndex: Z_INDEX_DROPDOWN,
6545
+ menuPortalTarget: document.body,
6546
+ hasWarning: hasWarning
6385
6547
  })
6386
6548
  }), isLoadingFailed && showLoadingErrorMessage && jsxRuntime.jsx(uiKit.Text.Body, {
6387
6549
  tone: "negative",
@@ -6404,7 +6566,8 @@ function CustomProductReferenceInput(props) {
6404
6566
  onChange: props.onChange,
6405
6567
  hasError: props.hasError,
6406
6568
  onError: () => null,
6407
- showLoadingErrorMessage: true
6569
+ showLoadingErrorMessage: true,
6570
+ hasWarning: props.hasWarning
6408
6571
  });
6409
6572
  }
6410
6573
  CustomProductReferenceInput.displayName = 'CustomProductReferenceInput';
@@ -6420,7 +6583,8 @@ function CustomProductTypeReferenceInput(props) {
6420
6583
  onBlur: props.onBlur,
6421
6584
  onChange: props.onChange,
6422
6585
  hasError: props.hasError,
6423
- onError: () => null
6586
+ onError: () => null,
6587
+ hasWarning: props.hasWarning
6424
6588
  });
6425
6589
  }
6426
6590
  CustomProductTypeReferenceInput.displayName = 'CustomProductTypeReferenceInput';
@@ -6436,7 +6600,8 @@ function CustomChannelReferenceInput(props) {
6436
6600
  onBlur: props.onBlur,
6437
6601
  onChange: props.onChange,
6438
6602
  hasError: props.hasError,
6439
- onError: () => null
6603
+ onError: () => null,
6604
+ hasWarning: props.hasWarning
6440
6605
  });
6441
6606
  }
6442
6607
  CustomChannelReferenceInput.displayName = 'CustomChannelReferenceInput';
@@ -6452,7 +6617,8 @@ function CustomStateReferenceInput(props) {
6452
6617
  onBlur: props.onBlur,
6453
6618
  onChange: props.onChange,
6454
6619
  hasError: props.hasError,
6455
- onError: () => null
6620
+ onError: () => null,
6621
+ hasWarning: props.hasWarning
6456
6622
  });
6457
6623
  }
6458
6624
  CustomStateReferenceInput.displayName = 'CustomStateReferenceInput';
@@ -6466,6 +6632,7 @@ function CustomReferenceInput(props) {
6466
6632
  typeId: referenceTypeId
6467
6633
  } : undefined;
6468
6634
  props.setFieldValue(props.name, nullifiedIfNeeded);
6635
+ props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
6469
6636
  });
6470
6637
  const ReferenceInputComponent = referenceTypeId === SEARCHABLE_REFERENCES.category ? CustomCategoryReferenceInput : referenceTypeId === SEARCHABLE_REFERENCES.cartDiscount ? CustomCartDiscountReferenceInput : referenceTypeId === SEARCHABLE_REFERENCES.product ? CustomProductReferenceInput : referenceTypeId === SEARCHABLE_REFERENCES.productType ? CustomProductTypeReferenceInput : referenceTypeId === SEARCHABLE_REFERENCES.channel ? CustomChannelReferenceInput : referenceTypeId === SEARCHABLE_REFERENCES.state ? CustomStateReferenceInput : CustomRawIdReferenceInput;
6471
6638
  return jsxRuntime.jsx(ReferenceInputComponent, {
@@ -6478,7 +6645,8 @@ function CustomReferenceInput(props) {
6478
6645
  isReadOnly: props.isReadOnly,
6479
6646
  onBlur: props.onBlur,
6480
6647
  hasError: props.hasError,
6481
- onChange: handleChange
6648
+ onChange: handleChange,
6649
+ hasWarning: props.hasWarning
6482
6650
  });
6483
6651
  }
6484
6652
  CustomReferenceInput.displayName = 'CustomReferenceInput';
@@ -6489,6 +6657,7 @@ function CustomDateTimeInput(props) {
6489
6657
  const typeName = props.fieldDefinition.type.name.toLowerCase();
6490
6658
  const handleChange = makeChangeHandler(rawValue => {
6491
6659
  props.setFieldValue(props.name, rawValue || undefined);
6660
+ props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
6492
6661
  });
6493
6662
  const InputComponent = typeName === 'date' ? uiKit.DateInput : uiKit.DateTimeInput;
6494
6663
  return jsxRuntime.jsx(InputComponent, {
@@ -6500,7 +6669,8 @@ function CustomDateTimeInput(props) {
6500
6669
  timeZone: timeZone,
6501
6670
  hasError: props.hasError,
6502
6671
  isDisabled: props.isDisabled,
6503
- isReadOnly: props.isReadOnly
6672
+ isReadOnly: props.isReadOnly,
6673
+ hasWarning: props.hasWarning
6504
6674
  });
6505
6675
  }
6506
6676
  CustomDateTimeInput.displayName = 'CustomDateTimeInput';
@@ -6535,6 +6705,7 @@ function CustomTimeInput(props) {
6535
6705
  lastValueSentToFormik.current = in24hFormat;
6536
6706
  props.setFieldValue(props.name, in24hFormat);
6537
6707
  }
6708
+ props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
6538
6709
  });
6539
6710
  return jsxRuntime.jsx(uiKit.TimeInput, {
6540
6711
  id: props.name,
@@ -6545,7 +6716,8 @@ function CustomTimeInput(props) {
6545
6716
  timeZone: timeZone,
6546
6717
  hasError: props.hasError,
6547
6718
  isDisabled: props.isDisabled,
6548
- isReadOnly: props.isReadOnly
6719
+ isReadOnly: props.isReadOnly,
6720
+ hasWarning: props.hasWarning
6549
6721
  });
6550
6722
  }
6551
6723
  CustomTimeInput.displayName = 'CustomTimeInput';
@@ -6556,7 +6728,10 @@ const convertTypeValuesToOptions = reselect.defaultMemoize(typeValues => _mapIns
6556
6728
  })));
6557
6729
  function CustomEnumInput(props) {
6558
6730
  const options = convertTypeValuesToOptions(_valuesInstanceProperty__default["default"](props.fieldDefinition.type));
6559
- const handleChange = makeChangeHandler(rawValue => props.setFieldValue(props.name, rawValue));
6731
+ const handleChange = makeChangeHandler(rawValue => {
6732
+ props.setFieldValue(props.name, rawValue);
6733
+ props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
6734
+ });
6560
6735
  const tooltipTitle = props.value ? _findInstanceProperty__default["default"](options).call(options, option => option.value === props.value)?.label ?? '' : '';
6561
6736
  return jsxRuntime.jsx(CustomFieldTooltip, {
6562
6737
  title: tooltipTitle,
@@ -6570,7 +6745,10 @@ function CustomEnumInput(props) {
6570
6745
  options: options,
6571
6746
  hasError: props.hasError,
6572
6747
  isDisabled: props.isDisabled,
6573
- isReadOnly: props.isReadOnly
6748
+ isReadOnly: props.isReadOnly,
6749
+ hasWarning: props.hasWarning,
6750
+ menuPortalZIndex: Z_INDEX_DROPDOWN,
6751
+ menuPortalTarget: document.body
6574
6752
  })
6575
6753
  });
6576
6754
  }
@@ -6619,14 +6797,17 @@ function CustomBooleanInputSet(props) {
6619
6797
  onBlur: props.onBlur,
6620
6798
  isClearable: !props.fieldDefinition.required,
6621
6799
  hasError: props.hasError,
6800
+ hasWarning: props.hasWarning,
6622
6801
  isDisabled: props.isDisabled,
6623
- isReadOnly: props.isReadOnly
6802
+ isReadOnly: props.isReadOnly,
6803
+ menuPortalZIndex: Z_INDEX_DROPDOWN,
6804
+ menuPortalTarget: document.body
6624
6805
  });
6625
6806
  }
6626
6807
  CustomBooleanInputSet.displayName = 'CustomBooleanInputSet';
6627
6808
 
6628
- function ownKeys$P(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
6629
- function _objectSpread$P(e) { for (var r = 1; r < arguments.length; r++) { var _context7, _context8; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context7 = ownKeys$P(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context8 = ownKeys$P(Object(t))).call(_context8, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
6809
+ function ownKeys$Q(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
6810
+ function _objectSpread$Q(e) { for (var r = 1; r < arguments.length; r++) { var _context7, _context8; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context7 = ownKeys$Q(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context8 = ownKeys$Q(Object(t))).call(_context8, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
6630
6811
  const getTypeName = type => type.name.toLowerCase();
6631
6812
  const findLabel = (enumType, key) => {
6632
6813
  var _context;
@@ -6671,12 +6852,13 @@ const attributeDefinitionToFieldDefinition = attributeDefinition => ({
6671
6852
  inputTip: attributeDefinition.inputTip,
6672
6853
  required: attributeDefinition.isRequired,
6673
6854
  type: attributeDefinition.type,
6674
- assignedAttributeGroups: attributeDefinition.assignedAttributeGroups
6855
+ assignedAttributeGroups: attributeDefinition.assignedAttributeGroups,
6856
+ attributeConstraint: attributeDefinition.attributeConstraint
6675
6857
  });
6676
6858
  const nameValuePairsToMap = pairs => _reduceInstanceProperty__default["default"](pairs).call(pairs, (result, _ref2) => {
6677
6859
  let name = _ref2.name,
6678
6860
  value = _ref2.value;
6679
- return _objectSpread$P(_objectSpread$P({}, result), {}, {
6861
+ return _objectSpread$Q(_objectSpread$Q({}, result), {}, {
6680
6862
  [name]: value
6681
6863
  });
6682
6864
  }, {});
@@ -6693,11 +6875,14 @@ const attributesMapToNameValuePairs = map => {
6693
6875
  });
6694
6876
  };
6695
6877
 
6878
+ const _excluded$1 = ["WrapperComponent"];
6696
6879
  const getAttributeShortName = (fullName, attributesPrefix) => {
6697
6880
  if (!attributesPrefix) return fullName;
6698
6881
  return fullName.replace(`${attributesPrefix}.`, '');
6699
6882
  };
6700
- function ProductAttributes(props) {
6883
+ function ProductAttributes(_ref) {
6884
+ let WrapperComponent = _ref.WrapperComponent,
6885
+ props = _objectWithoutProperties(_ref, _excluded$1);
6701
6886
  const formik$1 = formik.useFormikContext();
6702
6887
  const fieldDefinitions = React.useMemo(() => {
6703
6888
  var _context;
@@ -6721,7 +6906,11 @@ function ProductAttributes(props) {
6721
6906
  isDisabled: props.isDisabled,
6722
6907
  fieldDefinitions: fieldDefinitions,
6723
6908
  setFieldValue: setFieldValue,
6724
- inputValuesConverter: convertInputValue
6909
+ inputValuesConverter: convertInputValue,
6910
+ WrapperComponent: WrapperComponent,
6911
+ renderWarnings: props.renderWarnings,
6912
+ renderCustomWarnings: props.renderCustomWarnings,
6913
+ handleWarningChange: props.handleWarningChange
6725
6914
  })
6726
6915
  })
6727
6916
  });
@@ -6773,23 +6962,23 @@ const messages$y = reactIntl.defineMessages({
6773
6962
  }
6774
6963
  });
6775
6964
 
6776
- function ownKeys$O(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
6777
- function _objectSpread$O(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context6 = ownKeys$O(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context7 = ownKeys$O(Object(t))).call(_context7, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
6965
+ function ownKeys$P(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
6966
+ function _objectSpread$P(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context6 = ownKeys$P(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context7 = ownKeys$P(Object(t))).call(_context7, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
6778
6967
  var FetchProductTypeQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchProductTypeQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "productType" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "id" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "attributeDefinitions" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "IntValue", value: "100" } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "isRequired" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "inputHint" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "inputTipAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "SetAttributeDefinitionType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "elementType" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "NestedAttributeDefinitionType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "typeRef" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EnumAttributeDefinitionType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "label" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "LocalizableEnumAttributeDefinitionType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ReferenceAttributeDefinitionType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "referenceTypeId" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ReferenceAttributeDefinitionType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "referenceTypeId" }, arguments: [], directives: [] }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "NestedAttributeDefinitionType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "typeRef" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "EnumAttributeDefinitionType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "label" }, arguments: [], directives: [] }] } }] } }] } }, { kind: "InlineFragment", typeCondition: { kind: "NamedType", name: { kind: "Name", value: "LocalizableEnumAttributeDefinitionType" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "values" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }] } }] } }] } }] } }], loc: { start: 0, end: 1905, source: { body: "query FetchProductTypeQuery($id: String!) {\n productType(id: $id) {\n name\n attributeDefinitions(limit: 100) {\n results {\n name\n isRequired\n inputHint\n inputTipAllLocales {\n value\n locale\n }\n labelAllLocales {\n value\n locale\n }\n type {\n name\n ... on SetAttributeDefinitionType {\n elementType {\n name\n ... on NestedAttributeDefinitionType {\n typeRef {\n id\n }\n }\n ... on EnumAttributeDefinitionType {\n values {\n results {\n key\n label\n }\n }\n }\n ... on LocalizableEnumAttributeDefinitionType {\n values {\n results {\n key\n labelAllLocales {\n locale\n value\n }\n }\n }\n }\n ... on ReferenceAttributeDefinitionType {\n referenceTypeId\n }\n }\n }\n ... on ReferenceAttributeDefinitionType {\n referenceTypeId\n }\n ... on NestedAttributeDefinitionType {\n typeRef {\n id\n }\n }\n ... on EnumAttributeDefinitionType {\n values {\n results {\n key\n label\n }\n }\n }\n ... on LocalizableEnumAttributeDefinitionType {\n values {\n results {\n key\n labelAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
6779
6968
  const mapAttributeDefinition = definition => {
6780
6969
  var _context, _context2, _context3, _context4;
6781
- return _objectSpread$O(_objectSpread$O({}, definition), {}, {
6970
+ return _objectSpread$P(_objectSpread$P({}, definition), {}, {
6782
6971
  required: definition.isRequired,
6783
6972
  inputTip: l10n.transformLocalizedFieldToLocalizedString(definition.inputTipAllLocales),
6784
6973
  label: l10n.transformLocalizedFieldToLocalizedString(definition.labelAllLocales),
6785
- type: _includesInstanceProperty__default["default"](_context = ['enum', 'lenum']).call(_context, definition.type?.elementType?.name) ? _objectSpread$O(_objectSpread$O({}, definition.type), {}, {
6786
- elementType: _objectSpread$O(_objectSpread$O({}, definition.type.elementType), {}, {
6974
+ type: _includesInstanceProperty__default["default"](_context = ['enum', 'lenum']).call(_context, definition.type?.elementType?.name) ? _objectSpread$P(_objectSpread$P({}, definition.type), {}, {
6975
+ elementType: _objectSpread$P(_objectSpread$P({}, definition.type.elementType), {}, {
6787
6976
  values: _mapInstanceProperty__default["default"](_context2 = _valuesInstanceProperty__default["default"](definition.type.elementType).results).call(_context2, value => ({
6788
6977
  key: value.key,
6789
6978
  label: value.label || l10n.transformLocalizedFieldToLocalizedString(value.labelAllLocales)
6790
6979
  }))
6791
6980
  })
6792
- }) : _includesInstanceProperty__default["default"](_context3 = ['enum', 'lenum']).call(_context3, definition.type?.name) ? _objectSpread$O(_objectSpread$O({}, definition.type), {}, {
6981
+ }) : _includesInstanceProperty__default["default"](_context3 = ['enum', 'lenum']).call(_context3, definition.type?.name) ? _objectSpread$P(_objectSpread$P({}, definition.type), {}, {
6793
6982
  values: _mapInstanceProperty__default["default"](_context4 = _valuesInstanceProperty__default["default"](definition.type).results).call(_context4, value => ({
6794
6983
  key: value.key,
6795
6984
  label: value.label || l10n.transformLocalizedFieldToLocalizedString(value.labelAllLocales)
@@ -6910,8 +7099,8 @@ var messages$x = reactIntl.defineMessages({
6910
7099
 
6911
7100
  const NestingLevelContext = /*#__PURE__*/React.createContext(0);
6912
7101
 
6913
- function ownKeys$N(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
6914
- function _objectSpread$N(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$N(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$N(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
7102
+ function ownKeys$O(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
7103
+ function _objectSpread$O(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$O(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$O(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
6915
7104
  const EditButton = props => {
6916
7105
  const _useIntl = reactIntl.useIntl(),
6917
7106
  formatMessage = _useIntl.formatMessage;
@@ -6981,7 +7170,8 @@ const NestedAttributeModalPage = props => {
6981
7170
  children: jsxRuntime.jsx(ProductAttributes, {
6982
7171
  isDisabled: props.isDisabled,
6983
7172
  isReadOnly: props.isReadOnly,
6984
- attributeDefinitions: props.productType.attributeDefinitions
7173
+ attributeDefinitions: props.productType.attributeDefinitions,
7174
+ WrapperComponent: props.WrapperComponent
6985
7175
  })
6986
7176
  })
6987
7177
  })
@@ -7058,13 +7248,13 @@ const CustomNestedInput = /*#__PURE__*/React.memo(props => {
7058
7248
  const valuesAsMap = nameValuePairsToMap(value);
7059
7249
  const initialValues = omitUnknownValues(valuesAsMap, attributeDefinitionsAsMap);
7060
7250
  const openNestedAttributesForm = () => {
7061
- if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$N(_objectSpread$N({}, parentFormik.status), {}, {
7251
+ if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$O(_objectSpread$O({}, parentFormik.status), {}, {
7062
7252
  hideSaveToolbar: true
7063
7253
  }));
7064
7254
  attributesForm.openModal();
7065
7255
  };
7066
7256
  const closeNestedAttributesForm = () => {
7067
- if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$N(_objectSpread$N({}, parentFormik.status), {}, {
7257
+ if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$O(_objectSpread$O({}, parentFormik.status), {}, {
7068
7258
  hideSaveToolbar: false
7069
7259
  }));
7070
7260
  attributesForm.closeModal();
@@ -7100,7 +7290,8 @@ const CustomNestedInput = /*#__PURE__*/React.memo(props => {
7100
7290
  isOpen: attributesForm.isModalOpen,
7101
7291
  title: formTitle,
7102
7292
  onClose: closeNestedAttributesForm,
7103
- productType: productType
7293
+ productType: productType,
7294
+ WrapperComponent: props.WrapperComponent
7104
7295
  })]
7105
7296
  })
7106
7297
  })
@@ -7110,7 +7301,7 @@ const CustomNestedInput = /*#__PURE__*/React.memo(props => {
7110
7301
  });
7111
7302
  CustomNestedInput.displayName = 'CustomNestedInput';
7112
7303
 
7113
- var styles$d = {
7304
+ var styles$e = {
7114
7305
  "divider": "divider-module__divider___4-vdy",
7115
7306
  "divider-horizontal": "divider-module__divider-horizontal___RuUcj",
7116
7307
  "divider-vertical": "divider-module__divider-vertical___32kJG",
@@ -7123,10 +7314,10 @@ function Divider(_ref) {
7123
7314
  orientation = _ref$orientation === void 0 ? 'horizontal' : _ref$orientation;
7124
7315
  return jsxRuntime.jsx("hr", {
7125
7316
  className: classnames__default["default"]({
7126
- [styles$d['divider-solid']]: !isDashed,
7127
- [styles$d['divider-dashed']]: isDashed,
7128
- [styles$d['divider-horizontal']]: orientation === 'horizontal',
7129
- [styles$d['divider-vertical']]: orientation === 'vertical'
7317
+ [styles$e['divider-solid']]: !isDashed,
7318
+ [styles$e['divider-dashed']]: isDashed,
7319
+ [styles$e['divider-horizontal']]: orientation === 'horizontal',
7320
+ [styles$e['divider-vertical']]: orientation === 'vertical'
7130
7321
  })
7131
7322
  });
7132
7323
  }
@@ -7146,7 +7337,7 @@ const ExpandButton = props => props.totalValues > 1 ? jsxRuntime.jsxs(uiKit.Spac
7146
7337
  }) : null;
7147
7338
  ExpandButton.displayName = 'ExpandButton';
7148
7339
 
7149
- var styles$c = {
7340
+ var styles$d = {
7150
7341
  "topAlign": "set-buttons-module__topAlign___3AZwc",
7151
7342
  "gap": "set-buttons-module__gap___38Qr0"
7152
7343
  }; // TODO(pa3): alignment of buttons made in a kinda ugly way (i.e. gap class).
@@ -7167,15 +7358,15 @@ const SetButtons = props => {
7167
7358
  size: "big",
7168
7359
  icon: jsxRuntime.jsx(uiKit.PlusBoldIcon, {})
7169
7360
  }) : jsxRuntime.jsx("div", {
7170
- className: styles$c.gap
7361
+ className: styles$d.gap
7171
7362
  })]
7172
7363
  })
7173
7364
  });
7174
7365
  };
7175
7366
  SetButtons.displayName = 'SetButtons';
7176
7367
 
7177
- function ownKeys$M(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
7178
- function _objectSpread$M(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$M(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$M(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
7368
+ function ownKeys$N(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
7369
+ function _objectSpread$N(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$N(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$N(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
7179
7370
  const getDuplicateErrors = setValues => {
7180
7371
  /* eslint-disable no-plusplus */
7181
7372
  const result = [];
@@ -7229,7 +7420,7 @@ function CustomInputSet(props) {
7229
7420
  touched = _useFormikContext.touched,
7230
7421
  isSubmitting = _useFormikContext.isSubmitting,
7231
7422
  dirty = _useFormikContext.dirty;
7232
- const itemFieldDefinition = _objectSpread$M(_objectSpread$M({}, props.fieldDefinition), {}, {
7423
+ const itemFieldDefinition = _objectSpread$N(_objectSpread$N({}, props.fieldDefinition), {}, {
7233
7424
  type: props.fieldDefinition.type.elementType
7234
7425
  });
7235
7426
  const value = React.useMemo(() => props.value || [undefined], [props.value]);
@@ -7326,7 +7517,11 @@ function CustomInputSet(props) {
7326
7517
  onBlur: props.onBlur,
7327
7518
  setFieldValue: setItemValue,
7328
7519
  value: fieldValue,
7329
- hasError: props.hasError
7520
+ hasError: props.hasError,
7521
+ hasWarning: props.hasWarning,
7522
+ WrapperComponent: props.WrapperComponent,
7523
+ renderWarnings: props.renderWarnings,
7524
+ handleWarningChange: props.handleWarningChange
7330
7525
  }), jsxRuntime.jsx(SetButtons, {
7331
7526
  index: index,
7332
7527
  isFirstItem: !isExpanded || index === 0,
@@ -7389,7 +7584,10 @@ const CustomFieldInput = /*#__PURE__*/React.memo(props => {
7389
7584
  isReadOnly: props.isReadOnly,
7390
7585
  onBlur: props.onBlur,
7391
7586
  setFieldValue: props.setFieldValue,
7392
- hasError: props.hasError
7587
+ hasError: props.hasError,
7588
+ hasWarning: props.hasWarning,
7589
+ handleWarningChange: props.handleWarningChange,
7590
+ renderWarnings: props.renderWarnings
7393
7591
  });
7394
7592
  });
7395
7593
  CustomFieldInput.displayName = 'CustomFieldInput';
@@ -7402,10 +7600,10 @@ var messages$w = reactIntl.defineMessages({
7402
7600
  }
7403
7601
  });
7404
7602
 
7405
- function ownKeys$L(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
7406
- function _objectSpread$L(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$L(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$L(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
7603
+ function ownKeys$M(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
7604
+ function _objectSpread$M(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$M(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$M(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
7407
7605
  function ProductTypeReference(props) {
7408
- const productTypeMessage = _objectSpread$L(_objectSpread$L({}, messages$w.referencedProductType), {}, {
7606
+ const productTypeMessage = _objectSpread$M(_objectSpread$M({}, messages$w.referencedProductType), {}, {
7409
7607
  values: {
7410
7608
  productTypeName: props.productType.name
7411
7609
  }
@@ -7445,15 +7643,18 @@ function CustomNestedFieldInput(props) {
7445
7643
  isDisabled: props.isDisabled,
7446
7644
  isReadOnly: props.isReadOnly,
7447
7645
  setFieldValue: props.setFieldValue,
7448
- onBlur: props.onBlur
7646
+ onBlur: props.onBlur,
7647
+ hasWarning: props.hasWarning,
7648
+ handleWarningChange: props.handleWarningChange,
7649
+ renderWarnings: props.renderWarnings
7449
7650
  })]
7450
7651
  });
7451
7652
  }
7452
7653
  CustomNestedFieldInput.displayName = 'CustomNestedFieldInput';
7453
7654
 
7454
- function ownKeys$K(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
7455
- function _objectSpread$K(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$K(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$K(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
7456
- const mergeSetItemsErrors = errors => _reduceInstanceProperty__default["default"](errors).call(errors, (result, itemErrors) => _objectSpread$K(_objectSpread$K({}, result), itemErrors), {});
7655
+ function ownKeys$L(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
7656
+ function _objectSpread$L(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$L(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$L(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
7657
+ const mergeSetItemsErrors = errors => _reduceInstanceProperty__default["default"](errors).call(errors, (result, itemErrors) => _objectSpread$L(_objectSpread$L({}, result), itemErrors), {});
7457
7658
 
7458
7659
  // TODO(pa3): worth splitting in two components: one of set errors and one for
7459
7660
  // all the other types of fields. So that there will be no isArray check.
@@ -7510,8 +7711,8 @@ var messages$v = reactIntl.defineMessages({
7510
7711
  }
7511
7712
  });
7512
7713
 
7513
- function ownKeys$J(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
7514
- function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$J(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$J(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
7714
+ function ownKeys$K(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
7715
+ function _objectSpread$K(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$K(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$K(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
7515
7716
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
7516
7717
  var CartDiscountsCount = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "CartDiscountsCount" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "cartDiscounts" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 61, source: { body: "query CartDiscountsCount {\n cartDiscounts {\n total\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
7517
7718
  const CustomFieldsLabelHint = _ref2 => {
@@ -7541,7 +7742,7 @@ const CustomFieldsLabelHint = _ref2 => {
7541
7742
  children: [jsxRuntime.jsx(uiKit.WarningIcon, {
7542
7743
  size: "medium",
7543
7744
  color: "warning"
7544
- }), jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$J({}, messages$v.cartDiscountMoreThan500))]
7745
+ }), jsxRuntime.jsx(reactIntl.FormattedMessage, _objectSpread$K({}, messages$v.cartDiscountMoreThan500))]
7545
7746
  });
7546
7747
  }
7547
7748
  return l10n.formatLocalizedString(fieldDefinition, {
@@ -7646,6 +7847,9 @@ const CustomFieldsLabel = /*#__PURE__*/React.memo(_ref5 => {
7646
7847
  });
7647
7848
  CustomFieldsLabel.displayName = 'CustomFieldsTitle';
7648
7849
 
7850
+ const _excluded = ["WrapperComponent"];
7851
+ function ownKeys$J(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
7852
+ function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$J(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$J(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
7649
7853
  const getFieldName = (parentName, fieldName) => {
7650
7854
  if (!parentName) return fieldName;
7651
7855
  return `${parentName}.${fieldName}`;
@@ -7659,24 +7863,31 @@ const isNested = fieldDefinition => {
7659
7863
  }
7660
7864
  return typeName === CUSTOM_FIELD_TYPES.nested;
7661
7865
  };
7662
- const CustomFieldsInternal = props => {
7866
+ const CustomFieldsInternal = _ref => {
7867
+ let WrapperComponent = _ref.WrapperComponent,
7868
+ props = _objectWithoutProperties(_ref, _excluded);
7663
7869
  const _useFormikContext = formik.useFormikContext(),
7664
7870
  errors = _useFormikContext.errors,
7665
7871
  touched = _useFormikContext.touched,
7666
7872
  values = _valuesInstanceProperty__default["default"](_useFormikContext),
7667
- handleBlur = _useFormikContext.handleBlur;
7873
+ handleBlur = _useFormikContext.handleBlur,
7874
+ status = _useFormikContext.status;
7668
7875
  const didFormValidationFail = useDidFormValidationFail();
7669
7876
  const fieldDefinitions = omitSetsOfSets(props.fieldDefinitions);
7670
7877
  const _useDnDContext = useDnDContext(),
7671
7878
  DroppableWrapper = _useDnDContext.DroppableWrapper,
7672
7879
  DraggableWrapper = _useDnDContext.DraggableWrapper,
7673
- isDragAndDropMode = _useDnDContext.isDragAndDropMode;
7880
+ isDnDMode = _useDnDContext.isDnDMode,
7881
+ onDragEnd = _useDnDContext.onDragEnd;
7882
+ const fieldKey = props.isDisabled ? 'disabled' : 'enabled';
7674
7883
  return jsxRuntime.jsx(DroppableWrapper, {
7884
+ onDragEnd: onDragEnd,
7675
7885
  children: _mapInstanceProperty__default["default"](fieldDefinitions).call(fieldDefinitions, (fieldDefinition, index) => {
7676
7886
  const fieldName = getFieldName(props.name, fieldDefinition.name);
7677
7887
  const isTouched = Boolean(formik.getIn(touched, fieldName));
7678
7888
  const fieldErrors = formik.getIn(errors, fieldName);
7679
7889
  const value = props.inputValuesConverter(fieldName, formik.getIn(values, fieldName));
7890
+
7680
7891
  // We want to highlight fields with errors not only after a form submission,
7681
7892
  // but also after manually triggered form validation.
7682
7893
  const hasError = Boolean(fieldErrors) && (isTouched || didFormValidationFail);
@@ -7686,6 +7897,21 @@ const CustomFieldsInternal = props => {
7686
7897
  };
7687
7898
  return undefined;
7688
7899
  };
7900
+ const FieldComponent = isNested(fieldDefinition) ? CustomNestedFieldInput : CustomFieldInput;
7901
+ const fieldProps = {
7902
+ name: fieldName,
7903
+ value: value,
7904
+ fieldDefinition: fieldDefinition,
7905
+ isDisabled: props.isDisabled || isDnDMode,
7906
+ isReadOnly: props.isReadOnly,
7907
+ onBlur: handleBlur,
7908
+ setFieldValue: props.setFieldValue,
7909
+ hasError: hasError,
7910
+ hasWarning: props.renderWarnings && status?.warnings[fieldName],
7911
+ handleWarningChange: props.handleWarningChange,
7912
+ renderWarnings: props.renderWarnings
7913
+ };
7914
+ const Field = jsxRuntime.jsx(FieldComponent, _objectSpread$J({}, fieldProps));
7689
7915
  return jsxRuntime.jsx(formik.FastField, {
7690
7916
  name: fieldName,
7691
7917
  validate: validate,
@@ -7705,24 +7931,9 @@ const CustomFieldsInternal = props => {
7705
7931
  }), jsxRuntime.jsxs(uiKit.Spacings.Stack, {
7706
7932
  scale: "xs",
7707
7933
  alignItems: "stretch",
7708
- children: [isNested(fieldDefinition) ? jsxRuntime.jsx(CustomNestedFieldInput, {
7709
- name: fieldName,
7710
- value: value,
7711
- fieldDefinition: fieldDefinition,
7712
- isDisabled: props.isDisabled || isDragAndDropMode,
7713
- isReadOnly: props.isReadOnly,
7714
- onBlur: handleBlur,
7715
- setFieldValue: props.setFieldValue
7716
- }) : jsxRuntime.jsx(CustomFieldInput, {
7717
- name: fieldName,
7718
- value: value,
7719
- fieldDefinition: fieldDefinition,
7720
- isDisabled: props.isDisabled || isDragAndDropMode,
7721
- isReadOnly: props.isReadOnly,
7722
- onBlur: handleBlur,
7723
- setFieldValue: props.setFieldValue,
7724
- hasError: hasError
7725
- }), jsxRuntime.jsx(CustomFieldErrors, {
7934
+ children: [WrapperComponent ? jsxRuntime.jsx(WrapperComponent, {
7935
+ children: Field
7936
+ }) : Field, props.renderWarnings && status?.warnings[fieldName] && props.renderCustomWarnings(fieldDefinition), jsxRuntime.jsx(CustomFieldErrors, {
7726
7937
  isTouched: isTouched,
7727
7938
  errors: fieldErrors
7728
7939
  })]
@@ -7730,11 +7941,14 @@ const CustomFieldsInternal = props => {
7730
7941
  })
7731
7942
  })
7732
7943
  })
7733
- }, `${fieldName}-${index}`);
7944
+ }, `${fieldName}-${index}-${fieldKey}`);
7734
7945
  })
7735
7946
  });
7736
7947
  };
7737
7948
  CustomFieldsInternal.displayName = 'CustomFieldsInternal';
7949
+ CustomFieldsInternal.defaultProps = {
7950
+ renderCustomWarnings: () => null
7951
+ };
7738
7952
 
7739
7953
  const nopConverter = (fieldName, fieldValue) => fieldValue;
7740
7954
  const CustomFields = props => {
@@ -7744,7 +7958,7 @@ const CustomFields = props => {
7744
7958
  // Ensure you pass isWidthExpanded=true when adding the new layout component so the custom fields
7745
7959
  // can expand to fill the width of the layout.
7746
7960
  return jsxRuntime.jsx("div", {
7747
- css: /*#__PURE__*/react$1.css("min-width:", props.isWidthExpanded ? '100%' : uiKit.customProperties.constraint11, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:CustomFields;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImN1c3RvbS1maWVsZHMuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWVjIiwiZmlsZSI6ImN1c3RvbS1maWVsZHMuanN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IHVzZUZvcm1pa0NvbnRleHQgfSBmcm9tICdmb3JtaWsnO1xuaW1wb3J0IEN1c3RvbUZpZWxkc0ludGVybmFsIGZyb20gJy4vY3VzdG9tLWZpZWxkcy1pbnRlcm5hbCc7XG5pbXBvcnQgeyBjdXN0b21Qcm9wZXJ0aWVzLCBTcGFjaW5ncyB9IGZyb20gJ0Bjb21tZXJjZXRvb2xzLWZyb250ZW5kL3VpLWtpdCc7XG5cbmNvbnN0IG5vcENvbnZlcnRlciA9IChmaWVsZE5hbWUsIGZpZWxkVmFsdWUpID0+IGZpZWxkVmFsdWU7XG5cbmNvbnN0IEN1c3RvbUZpZWxkcyA9IChwcm9wcykgPT4ge1xuICBjb25zdCB7IHNldEZpZWxkVmFsdWUgfSA9IHVzZUZvcm1pa0NvbnRleHQoKTtcblxuICAvLyBFbnN1cmUgeW91IHBhc3MgaXNXaWR0aEV4cGFuZGVkPXRydWUgd2hlbiBhZGRpbmcgdGhlIG5ldyBsYXlvdXQgY29tcG9uZW50IHNvIHRoZSBjdXN0b20gZmllbGRzXG4gIC8vIGNhbiBleHBhbmQgdG8gZmlsbCB0aGUgd2lkdGggb2YgdGhlIGxheW91dC5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICBjc3M9e2Nzc2BcbiAgICAgICAgbWluLXdpZHRoOiAke3Byb3BzLmlzV2lkdGhFeHBhbmRlZFxuICAgICAgICAgID8gJzEwMCUnXG4gICAgICAgICAgOiBjdXN0b21Qcm9wZXJ0aWVzLmNvbnN0cmFpbnQxMX07XG4gICAgICBgfVxuICAgID5cbiAgICAgIDxTcGFjaW5ncy5TdGFjayBzY2FsZT1cInhsXCI+XG4gICAgICAgIDxDdXN0b21GaWVsZHNJbnRlcm5hbFxuICAgICAgICAgIG5hbWU9e3Byb3BzLm5hbWV9XG4gICAgICAgICAgaXNSZWFkT25seT17cHJvcHMuaXNSZWFkT25seX1cbiAgICAgICAgICBpc0Rpc2FibGVkPXtwcm9wcy5pc0Rpc2FibGVkfVxuICAgICAgICAgIGZpZWxkRGVmaW5pdGlvbnM9e3Byb3BzLmZpZWxkRGVmaW5pdGlvbnN9XG4gICAgICAgICAgc2V0RmllbGRWYWx1ZT17c2V0RmllbGRWYWx1ZX1cbiAgICAgICAgICBpbnB1dFZhbHVlc0NvbnZlcnRlcj17bm9wQ29udmVydGVyfVxuICAgICAgICAvPlxuICAgICAgPC9TcGFjaW5ncy5TdGFjaz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG5DdXN0b21GaWVsZHMuZGlzcGxheU5hbWUgPSAnQ3VzdG9tRmllbGRzJztcbkN1c3RvbUZpZWxkcy5wcm9wVHlwZXMgPSB7XG4gIGlzV2lkdGhFeHBhbmRlZDogUHJvcFR5cGVzLmJvb2wsXG4gIGlzUmVhZE9ubHk6IFByb3BUeXBlcy5ib29sLFxuICBpc0Rpc2FibGVkOiBQcm9wVHlwZXMuYm9vbCxcbiAgbmFtZTogUHJvcFR5cGVzLnN0cmluZyxcbiAgZmllbGREZWZpbml0aW9uczogUHJvcFR5cGVzLmFycmF5T2YoXG4gICAgUHJvcFR5cGVzLnNoYXBlKHtcbiAgICAgIG5hbWU6IFByb3BUeXBlcy5zdHJpbmcsXG4gICAgICByZXF1aXJlZDogUHJvcFR5cGVzLmJvb2wsXG5cbiAgICAgIGlucHV0SGludDogUHJvcFR5cGVzLnN0cmluZyxcbiAgICAgIGlucHV0VGlwOiBQcm9wVHlwZXMub2JqZWN0LFxuICAgICAgbGFiZWw6IFByb3BUeXBlcy5vYmplY3RPZihQcm9wVHlwZXMuc3RyaW5nKSxcblxuICAgICAgdHlwZTogUHJvcFR5cGVzLm9uZU9mVHlwZShbXG4gICAgICAgIFByb3BUeXBlcy5zaGFwZSh7XG4gICAgICAgICAgdHlwZTogUHJvcFR5cGVzLnNoYXBlKHtcbiAgICAgICAgICAgIG5hbWU6IFByb3BUeXBlcy5zdHJpbmcsXG4gICAgICAgICAgfSksXG4gICAgICAgIH0pLFxuICAgICAgICAvLyBTZXRcbiAgICAgICAgUHJvcFR5cGVzLnNoYXBlKHtcbiAgICAgICAgICBlbGVtZW50VHlwZTogUHJvcFR5cGVzLnNoYXBlKHtcbiAgICAgICAgICAgIHR5cGU6IFByb3BUeXBlcy5zaGFwZSh7XG4gICAgICAgICAgICAgIG5hbWU6IFByb3BUeXBlcy5zdHJpbmcsXG4gICAgICAgICAgICB9KSxcbiAgICAgICAgICB9KSxcbiAgICAgICAgfSksXG4gICAgICBdKSxcbiAgICB9KVxuICApLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgQ3VzdG9tRmllbGRzO1xuIl19 */"),
7961
+ css: /*#__PURE__*/react$1.css("min-width:", props.isWidthExpanded ? '100%' : uiKit.customProperties.constraint11, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:CustomFields;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImN1c3RvbS1maWVsZHMuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWVjIiwiZmlsZSI6ImN1c3RvbS1maWVsZHMuanN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IHVzZUZvcm1pa0NvbnRleHQgfSBmcm9tICdmb3JtaWsnO1xuaW1wb3J0IEN1c3RvbUZpZWxkc0ludGVybmFsIGZyb20gJy4vY3VzdG9tLWZpZWxkcy1pbnRlcm5hbCc7XG5pbXBvcnQgeyBjdXN0b21Qcm9wZXJ0aWVzLCBTcGFjaW5ncyB9IGZyb20gJ0Bjb21tZXJjZXRvb2xzLWZyb250ZW5kL3VpLWtpdCc7XG5cbmNvbnN0IG5vcENvbnZlcnRlciA9IChmaWVsZE5hbWUsIGZpZWxkVmFsdWUpID0+IGZpZWxkVmFsdWU7XG5cbmNvbnN0IEN1c3RvbUZpZWxkcyA9IChwcm9wcykgPT4ge1xuICBjb25zdCB7IHNldEZpZWxkVmFsdWUgfSA9IHVzZUZvcm1pa0NvbnRleHQoKTtcblxuICAvLyBFbnN1cmUgeW91IHBhc3MgaXNXaWR0aEV4cGFuZGVkPXRydWUgd2hlbiBhZGRpbmcgdGhlIG5ldyBsYXlvdXQgY29tcG9uZW50IHNvIHRoZSBjdXN0b20gZmllbGRzXG4gIC8vIGNhbiBleHBhbmQgdG8gZmlsbCB0aGUgd2lkdGggb2YgdGhlIGxheW91dC5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICBjc3M9e2Nzc2BcbiAgICAgICAgbWluLXdpZHRoOiAke3Byb3BzLmlzV2lkdGhFeHBhbmRlZFxuICAgICAgICAgID8gJzEwMCUnXG4gICAgICAgICAgOiBjdXN0b21Qcm9wZXJ0aWVzLmNvbnN0cmFpbnQxMX07XG4gICAgICBgfVxuICAgID5cbiAgICAgIDxTcGFjaW5ncy5TdGFjayBzY2FsZT1cInhsXCI+XG4gICAgICAgIDxDdXN0b21GaWVsZHNJbnRlcm5hbFxuICAgICAgICAgIG5hbWU9e3Byb3BzLm5hbWV9XG4gICAgICAgICAgaXNSZWFkT25seT17cHJvcHMuaXNSZWFkT25seX1cbiAgICAgICAgICBpc0Rpc2FibGVkPXtwcm9wcy5pc0Rpc2FibGVkfVxuICAgICAgICAgIGZpZWxkRGVmaW5pdGlvbnM9e3Byb3BzLmZpZWxkRGVmaW5pdGlvbnN9XG4gICAgICAgICAgc2V0RmllbGRWYWx1ZT17c2V0RmllbGRWYWx1ZX1cbiAgICAgICAgICBpbnB1dFZhbHVlc0NvbnZlcnRlcj17bm9wQ29udmVydGVyfVxuICAgICAgICAgIFdyYXBwZXJDb21wb25lbnQ9e3Byb3BzLldyYXBwZXJDb21wb25lbnR9XG4gICAgICAgIC8+XG4gICAgICA8L1NwYWNpbmdzLlN0YWNrPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkN1c3RvbUZpZWxkcy5kaXNwbGF5TmFtZSA9ICdDdXN0b21GaWVsZHMnO1xuQ3VzdG9tRmllbGRzLnByb3BUeXBlcyA9IHtcbiAgaXNXaWR0aEV4cGFuZGVkOiBQcm9wVHlwZXMuYm9vbCxcbiAgaXNSZWFkT25seTogUHJvcFR5cGVzLmJvb2wsXG4gIGlzRGlzYWJsZWQ6IFByb3BUeXBlcy5ib29sLFxuICBuYW1lOiBQcm9wVHlwZXMuc3RyaW5nLFxuICBmaWVsZERlZmluaXRpb25zOiBQcm9wVHlwZXMuYXJyYXlPZihcbiAgICBQcm9wVHlwZXMuc2hhcGUoe1xuICAgICAgbmFtZTogUHJvcFR5cGVzLnN0cmluZyxcbiAgICAgIHJlcXVpcmVkOiBQcm9wVHlwZXMuYm9vbCxcblxuICAgICAgaW5wdXRIaW50OiBQcm9wVHlwZXMuc3RyaW5nLFxuICAgICAgaW5wdXRUaXA6IFByb3BUeXBlcy5vYmplY3QsXG4gICAgICBsYWJlbDogUHJvcFR5cGVzLm9iamVjdE9mKFByb3BUeXBlcy5zdHJpbmcpLFxuXG4gICAgICB0eXBlOiBQcm9wVHlwZXMub25lT2ZUeXBlKFtcbiAgICAgICAgUHJvcFR5cGVzLnNoYXBlKHtcbiAgICAgICAgICB0eXBlOiBQcm9wVHlwZXMuc2hhcGUoe1xuICAgICAgICAgICAgbmFtZTogUHJvcFR5cGVzLnN0cmluZyxcbiAgICAgICAgICB9KSxcbiAgICAgICAgfSksXG4gICAgICAgIC8vIFNldFxuICAgICAgICBQcm9wVHlwZXMuc2hhcGUoe1xuICAgICAgICAgIGVsZW1lbnRUeXBlOiBQcm9wVHlwZXMuc2hhcGUoe1xuICAgICAgICAgICAgdHlwZTogUHJvcFR5cGVzLnNoYXBlKHtcbiAgICAgICAgICAgICAgbmFtZTogUHJvcFR5cGVzLnN0cmluZyxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgIH0pLFxuICAgICAgICB9KSxcbiAgICAgIF0pLFxuICAgIH0pXG4gICksXG4gIFdyYXBwZXJDb21wb25lbnQ6IFByb3BUeXBlcy5lbGVtZW50VHlwZSxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEN1c3RvbUZpZWxkcztcbiJdfQ== */"),
7748
7962
  children: jsxRuntime.jsx(uiKit.Spacings.Stack, {
7749
7963
  scale: "xl",
7750
7964
  children: jsxRuntime.jsx(CustomFieldsInternal, {
@@ -7753,7 +7967,8 @@ const CustomFields = props => {
7753
7967
  isDisabled: props.isDisabled,
7754
7968
  fieldDefinitions: props.fieldDefinitions,
7755
7969
  setFieldValue: setFieldValue,
7756
- inputValuesConverter: nopConverter
7970
+ inputValuesConverter: nopConverter,
7971
+ WrapperComponent: props.WrapperComponent
7757
7972
  })
7758
7973
  })
7759
7974
  });
@@ -7866,6 +8081,10 @@ function ProductSelectionBasicSelectDropdown(props) {
7866
8081
  isReadOnly: props.isReadOnly,
7867
8082
  hasWarning: props.hasWarning,
7868
8083
  hasError: props.hasError,
8084
+ errors: {
8085
+ missing: props.hasError
8086
+ },
8087
+ touched: props.touched,
7869
8088
  isClearable: props.isClearable,
7870
8089
  menuPortalTarget: props.menuPortalTarget,
7871
8090
  menuPortalZIndex: props.menuPortalZIndex,
@@ -7985,6 +8204,10 @@ function ProductSelectionsAsyncSelectDropdown(props) {
7985
8204
  defaultOptions: getDefaultOptions(),
7986
8205
  hasWarning: props.hasWarning,
7987
8206
  hasError: props.hasError,
8207
+ errors: {
8208
+ missing: props.hasError
8209
+ },
8210
+ touched: props.touched,
7988
8211
  isClearable: props.isClearable,
7989
8212
  menuPortalTarget: props.menuPortalTarget,
7990
8213
  menuPortalZIndex: props.menuPortalZIndex,
@@ -8129,6 +8352,10 @@ function ProductSelectionsSearchSelectDropdown(props) {
8129
8352
  isDisabled: props.isDisabled || productSelectionsByFieldFetcher.isLoading,
8130
8353
  isReadOnly: props.isReadOnly,
8131
8354
  hasWarning: props.hasWarning,
8355
+ errors: {
8356
+ missing: props.hasError
8357
+ },
8358
+ touched: props.touched,
8132
8359
  isClearable: props.isClearable,
8133
8360
  hasError: props.hasError,
8134
8361
  menuPortalTarget: props.menuPortalTarget,
@@ -8479,6 +8706,11 @@ const getFirst60Options = (storesOptions, currentValues) => {
8479
8706
  const currentValuesLength = _Array$isArray__default["default"](currentValues) ? currentValues.length : 1;
8480
8707
  return _sliceInstanceProperty__default["default"](storesOptions).call(storesOptions, 0, LOWER_STORES_LIMIT + currentValuesLength);
8481
8708
  };
8709
+ const getCustomGroupLabelOption = customLabel => [{
8710
+ label: customLabel,
8711
+ value: '',
8712
+ isDisabled: true
8713
+ }];
8482
8714
 
8483
8715
  var messages$s = reactIntl.defineMessages({
8484
8716
  basicSelectInputPlaceholder: {
@@ -8574,16 +8806,23 @@ const StoresAsyncSelectInput = props => {
8574
8806
  }));
8575
8807
  }, [dataLocale, storesListFetcher.stores, props.renderSelectInputOptionValuesByField]);
8576
8808
  const handleLoadOptions = async searchTerm => {
8577
- if (!searchTerm) return [{
8578
- options: getFirst60Options(mappedStoresListOptions, props.value)
8579
- }, {
8580
- options: emptyStoreOption(intl)
8581
- }];
8809
+ if (!searchTerm) {
8810
+ const result = [...(props.renderLabel ? [{
8811
+ options: getCustomGroupLabelOption(props.renderLabel)
8812
+ }] : []), {
8813
+ options: getFirst60Options(mappedStoresListOptions, props.value)
8814
+ }, {
8815
+ options: emptyStoreOption(intl)
8816
+ }];
8817
+ return result;
8818
+ }
8582
8819
  const filteredOptions = _filterInstanceProperty__default["default"](mappedStoresListOptions).call(mappedStoresListOptions, storeOption => {
8583
8820
  var _context3, _context4;
8584
8821
  return _includesInstanceProperty__default["default"](_context3 = storeOption.label.toLowerCase()).call(_context3, searchTerm.toLowerCase()) || storeOption.key && _includesInstanceProperty__default["default"](_context4 = storeOption.key.toLowerCase()).call(_context4, searchTerm.toLowerCase());
8585
8822
  });
8586
- return [{
8823
+ return [...(props.renderLabel ? [{
8824
+ options: getCustomGroupLabelOption(props.renderLabel)
8825
+ }] : []), {
8587
8826
  options: getFirst60Options(filteredOptions, props.value)
8588
8827
  }, {
8589
8828
  options: emptyStoreOption(intl)
@@ -8591,7 +8830,7 @@ const StoresAsyncSelectInput = props => {
8591
8830
  };
8592
8831
  if (storesListFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
8593
8832
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
8594
- children: [jsxRuntime.jsx(uiKit.AsyncSelectInput, _objectSpread$D(_objectSpread$D({
8833
+ children: [jsxRuntime.jsx(uiKit.AsyncSelectInput, _objectSpread$D(_objectSpread$D(_objectSpread$D({
8595
8834
  id: props.id,
8596
8835
  name: props.name,
8597
8836
  placeholder: intl.formatMessage(messages$s.basicSelectInputPlaceholder),
@@ -8620,9 +8859,12 @@ const StoresAsyncSelectInput = props => {
8620
8859
  maxMenuHeight: props.maxMenuHeight,
8621
8860
  menuPortalTarget: props.menuPortalTarget,
8622
8861
  menuPortalZIndex: props.menuPortalZIndex,
8862
+ menuIsOpen: props.menuIsOpen,
8623
8863
  components: props.components,
8624
8864
  controlShouldRenderValue: props.controlShouldRenderValue
8625
- }, utils.filterDataAttributes(props)), utils.filterAriaAttributes(props))), jsxRuntime.jsx(uiKit.FieldErrors, {
8865
+ }, utils.filterDataAttributes(props)), utils.filterAriaAttributes(props)), props.iconLeft && {
8866
+ iconLeft: props.iconLeft
8867
+ })), jsxRuntime.jsx(uiKit.FieldErrors, {
8626
8868
  errors: props.errors,
8627
8869
  isVisible: hasError,
8628
8870
  renderError: props.renderError
@@ -8659,12 +8901,17 @@ const StoresBasicSelectInput = props => {
8659
8901
  const hasError = uiKit.SelectInput.isTouched(props.touched) && hasErrors$1(props.errors) || props.hasError;
8660
8902
  const mappedStoresListOptions = React.useMemo(() => {
8661
8903
  var _context2;
8662
- return _mapInstanceProperty__default["default"](_context2 = storesListFetcher.stores?.results || []).call(_context2, store => mapStoresToOptions({
8904
+ const results = _mapInstanceProperty__default["default"](_context2 = storesListFetcher.stores?.results || []).call(_context2, store => mapStoresToOptions({
8663
8905
  store,
8664
8906
  dataLocale,
8665
8907
  renderSelectInputOptionValuesByField: props.renderSelectInputOptionValuesByField
8666
8908
  }));
8667
- }, [dataLocale, storesListFetcher.stores, props.renderSelectInputOptionValuesByField]);
8909
+ return props?.renderLabel ? [{
8910
+ options: getCustomGroupLabelOption(props.renderLabel)
8911
+ }, {
8912
+ options: results
8913
+ }] : results;
8914
+ }, [dataLocale, storesListFetcher.stores, props.renderSelectInputOptionValuesByField, props?.renderLabel]);
8668
8915
  const handleChange = event => {
8669
8916
  const value = event.target.value?.value ?? event.target.value;
8670
8917
  const currentStore = _findInstanceProperty__default["default"](mappedStoresListOptions).call(mappedStoresListOptions, store => store.value === value);
@@ -8682,10 +8929,10 @@ const StoresBasicSelectInput = props => {
8682
8929
  };
8683
8930
  if (storesListFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
8684
8931
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
8685
- children: [jsxRuntime.jsx(uiKit.SelectInput, _objectSpread$C(_objectSpread$C({
8932
+ children: [jsxRuntime.jsx(uiKit.SelectInput, _objectSpread$C(_objectSpread$C(_objectSpread$C({
8686
8933
  id: props.id,
8687
8934
  name: props.name,
8688
- placeholder: intl.formatMessage(messages$s.basicSelectInputPlaceholder),
8935
+ placeholder: props.placeholder || intl.formatMessage(messages$s.basicSelectInputPlaceholder),
8689
8936
  horizontalConstraint: props.horizontalConstraint,
8690
8937
  options: mappedStoresListOptions,
8691
8938
  isMulti: props.isMulti,
@@ -8705,9 +8952,12 @@ const StoresBasicSelectInput = props => {
8705
8952
  maxMenuHeight: props.maxMenuHeight,
8706
8953
  menuPortalTarget: props.menuPortalTarget,
8707
8954
  menuPortalZIndex: props.menuPortalZIndex,
8955
+ menuIsOpen: props.menuIsOpen,
8708
8956
  components: props.components,
8709
8957
  controlShouldRenderValue: props.controlShouldRenderValue
8710
- }, utils.filterDataAttributes(props)), utils.filterAriaAttributes(props))), jsxRuntime.jsx(uiKit.FieldErrors, {
8958
+ }, utils.filterDataAttributes(props)), utils.filterAriaAttributes(props)), props.iconLeft && {
8959
+ iconLeft: props.iconLeft
8960
+ })), jsxRuntime.jsx(uiKit.FieldErrors, {
8711
8961
  errors: props.errors,
8712
8962
  isVisible: hasError,
8713
8963
  renderError: props.renderError
@@ -8776,6 +9026,10 @@ const useStoresByFieldFetcher = function (stores, predicateField, projectKey) {
8776
9026
  function ownKeys$B(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
8777
9027
  function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$B(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$B(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
8778
9028
  var FetchStoresByWherePredicate = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchStoresByWherePredicate" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "skipFetchingStores" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "excludeProductSelections" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", alias: { kind: "Name", value: "storesByWherePredicate" }, name: { kind: "Name", value: "stores" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "where" }, value: { kind: "Variable", name: { kind: "Name", value: "where" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "skipFetchingStores" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "productSelections" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "excludeProductSelections" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "active" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "productSelection" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "nameAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }] } }], loc: { start: 0, end: 525, source: { body: "query FetchStoresByWherePredicate(\n $where: String!\n $skipFetchingStores: Boolean!\n $excludeProductSelections: Boolean!\n) {\n storesByWherePredicate: stores(where: $where) @skip(if: $skipFetchingStores) {\n results {\n id\n key\n nameAllLocales {\n locale\n value\n }\n productSelections @skip(if: $excludeProductSelections) {\n active\n productSelection {\n id\n nameAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
9029
+ var styles$c = {
9030
+ "renderLabelContainer": "stores-search-selector-module__renderLabelContainer___3_PBc",
9031
+ "customLabel": "stores-search-selector-module__customLabel___1Xse8"
9032
+ };
8779
9033
  const hasErrors = errors => {
8780
9034
  var _context;
8781
9035
  return errors && _someInstanceProperty__default["default"](_context = _Object$values__default["default"](errors)).call(_context, Boolean);
@@ -8863,15 +9117,33 @@ const StoresSearchSelectInput = props => {
8863
9117
  fetchPolicy: 'network-only'
8864
9118
  }).then(_ref3 => {
8865
9119
  let data = _ref3.data;
8866
- return data.storesByWherePredicate?.results.map(store => mapStoresToOptions({
9120
+ const result = data.storesByWherePredicate?.results.map(store => mapStoresToOptions({
8867
9121
  store,
8868
9122
  dataLocale,
8869
9123
  renderSelectInputOptionValuesByField: props.renderSelectInputOptionValuesByField
8870
9124
  }));
9125
+ if (!props.renderLabel) {
9126
+ return result;
9127
+ }
9128
+ return [...(props.renderLabel && result.length > 0 ? [{
9129
+ options: getCustomGroupLabelOption(props.renderLabel)
9130
+ }] : null), ...result];
8871
9131
  });
8872
9132
  return extractMatchedStores;
8873
9133
  };
8874
9134
  const loadOptionsDebounced = debounce__default["default"](handleLoadOptions, 500);
9135
+ const renderNoOptions = _ref4 => {
9136
+ let inputValue = _ref4.inputValue;
9137
+ return jsxRuntime.jsxs("div", {
9138
+ className: styles$c.renderLabelContainer,
9139
+ children: [jsxRuntime.jsx("div", {
9140
+ className: styles$c.customLabel,
9141
+ children: props?.renderLabel && props?.renderLabel
9142
+ }), jsxRuntime.jsx("div", {
9143
+ children: intl.formatMessage(inputValue ? messages$s.searchSelectInputNoOptionsFoundMessage : messages$s.searchSelectInputNoValueMessage)
9144
+ })]
9145
+ });
9146
+ };
8875
9147
  if (storesByFieldFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
8876
9148
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
8877
9149
  children: [jsxRuntime.jsx(uiKit.SearchSelectInput, _objectSpread$B(_objectSpread$B({
@@ -8892,10 +9164,7 @@ const StoresSearchSelectInput = props => {
8892
9164
  onChange: props.onChange,
8893
9165
  onBlur: props.onBlur,
8894
9166
  loadingMessage: intl.formatMessage(messages$s.searchSelectInputLoadingMessage),
8895
- noOptionsMessage: _ref4 => {
8896
- let inputValue = _ref4.inputValue;
8897
- return intl.formatMessage(inputValue ? messages$s.searchSelectInputNoOptionsFoundMessage : messages$s.searchSelectInputNoValueMessage);
8898
- },
9167
+ noOptionsMessage: renderNoOptions,
8899
9168
  isDisabled: props.isDisabled || storesByFieldFetcher.isLoading,
8900
9169
  isReadOnly: props.isReadOnly,
8901
9170
  isClearable: props.isClearable,
@@ -8909,6 +9178,7 @@ const StoresSearchSelectInput = props => {
8909
9178
  maxMenuHeight: props.maxMenuHeight,
8910
9179
  menuPortalTarget: props.menuPortalTarget,
8911
9180
  menuPortalZIndex: props.menuPortalZIndex,
9181
+ menuIsOpen: props.menuIsOpen,
8912
9182
  components: props.components,
8913
9183
  controlShouldRenderValue: props.controlShouldRenderValue
8914
9184
  }, utils.filterDataAttributes(props)), utils.filterAriaAttributes(props))), jsxRuntime.jsx(uiKit.FieldErrors, {
@@ -8944,6 +9214,9 @@ const StoreSelectInput = props => {
8944
9214
  if (totalNumberOfStoresFetcher.isLoading) return jsxRuntime.jsx(CenteredLoadingSpinner, {});
8945
9215
  const CustomStoreSelectInput = totalNumberOfStoresFetcher.total <= props.lowerStoresLimit ? StoresBasicSelectInput : totalNumberOfStoresFetcher.total <= props.upperStoresLimit ? StoresAsyncSelectInput : StoresSearchSelectInput;
8946
9216
  return jsxRuntime.jsx(CustomStoreSelectInput, _objectSpread$A(_objectSpread$A({
9217
+ menuIsOpen: props.menuIsOpen,
9218
+ placeholder: props.placeholder,
9219
+ iconLeft: props.iconLeft,
8947
9220
  projectKey: props.projectKey,
8948
9221
  id: props.id,
8949
9222
  name: props.name,
@@ -8962,6 +9235,7 @@ const StoreSelectInput = props => {
8962
9235
  hasWarning: props.hasWarning,
8963
9236
  errors: props.errors,
8964
9237
  renderError: props.renderError,
9238
+ renderLabel: props.renderLabel,
8965
9239
  touched: props.touched,
8966
9240
  maxMenuHeight: props.maxMenuHeight,
8967
9241
  menuPortalTarget: props.menuPortalTarget,
@@ -9231,9 +9505,9 @@ function numberTransformer(filterKey, filters) {
9231
9505
  })) return '';
9232
9506
  switch (type) {
9233
9507
  case 'lessThan':
9234
- return `(* to ${value - 1})`;
9508
+ return `(* to ${_parseInt__default["default"](value) - 1})`;
9235
9509
  case 'moreThan':
9236
- return `(${value + 1} to *)`;
9510
+ return `(${_parseInt__default["default"](value) + 1} to *)`;
9237
9511
  case 'equalTo':
9238
9512
  return `(${value} to ${value})`;
9239
9513
  case 'range':
@@ -10909,8 +11183,20 @@ const PimIndexerContext = /*#__PURE__*/React.createContext(defaultValue);
10909
11183
 
10910
11184
  function ownKeys$h(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
10911
11185
  function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys$h(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys$h(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
10912
- function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10913
- function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
11186
+ function _callSuper$3(_this, derived, args) {
11187
+ function isNativeReflectConstruct() {
11188
+ if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false;
11189
+ if (_Reflect$construct__default["default"].sham) return false;
11190
+ if (typeof Proxy === "function") return true;
11191
+ try {
11192
+ return !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {}));
11193
+ } catch (e) {
11194
+ return false;
11195
+ }
11196
+ }
11197
+ derived = _getPrototypeOf(derived);
11198
+ return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? _Reflect$construct__default["default"](derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
11199
+ }
10914
11200
  var RefreshProductIndices = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "RefreshProductIndices" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "ids" } }, type: { kind: "NonNullType", type: { kind: "ListType", type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "refreshProducts" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "ids" }, value: { kind: "Variable", name: { kind: "Name", value: "ids" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updatedDocuments" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "version" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "deletedDocuments" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "notFoundDocuments" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "unchangedDocuments" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "version" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "failedRefreshedDocuments" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "reason" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 1119, source: { body: "mutation RefreshProductIndices($ids: [String!]!) {\n refreshProducts(ids: $ids) {\n updatedDocuments {\n id\n version\n }\n deletedDocuments {\n id\n }\n notFoundDocuments {\n id\n }\n unchangedDocuments {\n id\n version\n }\n failedRefreshedDocuments {\n id\n reason\n }\n }\n}\n\nmutation IndexProject(\n $shouldIndexProducts: Boolean!\n $shouldIndexProductTypes: Boolean!\n) {\n products: reIndexAllProducts @include(if: $shouldIndexProducts) {\n indexingJobId\n existingIndexingJobId\n }\n productTypes: reIndexAllProductTypes @include(if: $shouldIndexProductTypes) {\n indexingJobId\n existingIndexingJobId\n }\n}\n\nquery GetIndexingProgress(\n $productsJobId: String!\n $productTypesJobId: String!\n $shouldIncludeProducts: Boolean!\n $shouldIncludeProductTypes: Boolean!\n) {\n products: getReindexingStatus(id: $productsJobId)\n @include(if: $shouldIncludeProducts) {\n percentCompleted\n completed\n }\n\n productTypes: getReindexingStatus(id: $productTypesJobId)\n @include(if: $shouldIncludeProductTypes) {\n percentCompleted\n completed\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
10915
11201
  var IndexProject = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "IndexProject" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldIndexProducts" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldIndexProductTypes" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", alias: { kind: "Name", value: "products" }, name: { kind: "Name", value: "reIndexAllProducts" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldIndexProducts" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "indexingJobId" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "existingIndexingJobId" }, arguments: [], directives: [] }] } }, { kind: "Field", alias: { kind: "Name", value: "productTypes" }, name: { kind: "Name", value: "reIndexAllProductTypes" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldIndexProductTypes" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "indexingJobId" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "existingIndexingJobId" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 1119, source: { body: "mutation RefreshProductIndices($ids: [String!]!) {\n refreshProducts(ids: $ids) {\n updatedDocuments {\n id\n version\n }\n deletedDocuments {\n id\n }\n notFoundDocuments {\n id\n }\n unchangedDocuments {\n id\n version\n }\n failedRefreshedDocuments {\n id\n reason\n }\n }\n}\n\nmutation IndexProject(\n $shouldIndexProducts: Boolean!\n $shouldIndexProductTypes: Boolean!\n) {\n products: reIndexAllProducts @include(if: $shouldIndexProducts) {\n indexingJobId\n existingIndexingJobId\n }\n productTypes: reIndexAllProductTypes @include(if: $shouldIndexProductTypes) {\n indexingJobId\n existingIndexingJobId\n }\n}\n\nquery GetIndexingProgress(\n $productsJobId: String!\n $productTypesJobId: String!\n $shouldIncludeProducts: Boolean!\n $shouldIncludeProductTypes: Boolean!\n) {\n products: getReindexingStatus(id: $productsJobId)\n @include(if: $shouldIncludeProducts) {\n percentCompleted\n completed\n }\n\n productTypes: getReindexingStatus(id: $productTypesJobId)\n @include(if: $shouldIncludeProductTypes) {\n percentCompleted\n completed\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
10916
11202
  var GetIndexingProgress = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "GetIndexingProgress" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "productsJobId" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "productTypesJobId" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeProducts" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeProductTypes" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", alias: { kind: "Name", value: "products" }, name: { kind: "Name", value: "getReindexingStatus" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "productsJobId" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeProducts" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "percentCompleted" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "completed" }, arguments: [], directives: [] }] } }, { kind: "Field", alias: { kind: "Name", value: "productTypes" }, name: { kind: "Name", value: "getReindexingStatus" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "id" }, value: { kind: "Variable", name: { kind: "Name", value: "productTypesJobId" } } }], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeProductTypes" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "percentCompleted" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "completed" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 1119, source: { body: "mutation RefreshProductIndices($ids: [String!]!) {\n refreshProducts(ids: $ids) {\n updatedDocuments {\n id\n version\n }\n deletedDocuments {\n id\n }\n notFoundDocuments {\n id\n }\n unchangedDocuments {\n id\n version\n }\n failedRefreshedDocuments {\n id\n reason\n }\n }\n}\n\nmutation IndexProject(\n $shouldIndexProducts: Boolean!\n $shouldIndexProductTypes: Boolean!\n) {\n products: reIndexAllProducts @include(if: $shouldIndexProducts) {\n indexingJobId\n existingIndexingJobId\n }\n productTypes: reIndexAllProductTypes @include(if: $shouldIndexProductTypes) {\n indexingJobId\n existingIndexingJobId\n }\n}\n\nquery GetIndexingProgress(\n $productsJobId: String!\n $productTypesJobId: String!\n $shouldIncludeProducts: Boolean!\n $shouldIncludeProductTypes: Boolean!\n) {\n products: getReindexingStatus(id: $productsJobId)\n @include(if: $shouldIncludeProducts) {\n percentCompleted\n completed\n }\n\n productTypes: getReindexingStatus(id: $productTypesJobId)\n @include(if: $shouldIncludeProductTypes) {\n percentCompleted\n completed\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
@@ -10930,14 +11216,13 @@ const getIndexingJobIds = _ref => {
10930
11216
  };
10931
11217
  let PimIndexerProvider = /*#__PURE__*/function (_PureComponent) {
10932
11218
  _inherits(PimIndexerProvider, _PureComponent);
10933
- var _super = _createSuper$3(PimIndexerProvider);
10934
11219
  function PimIndexerProvider() {
10935
11220
  var _this;
10936
11221
  _classCallCheck(this, PimIndexerProvider);
10937
11222
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10938
11223
  args[_key] = arguments[_key];
10939
11224
  }
10940
- _this = _super.call(this, ...args);
11225
+ _this = _callSuper$3(this, PimIndexerProvider, [...args]);
10941
11226
  _this.state = {
10942
11227
  isLoading: true,
10943
11228
  isPimIndexerUnreachable: false,
@@ -11130,14 +11415,25 @@ var pimIndexerProvider = flowRight__default["default"](applicationShellConnector
11130
11415
  name: 'indexProject'
11131
11416
  }), hoc.withApollo, reactIntl.injectIntl, injectNotifications())(PimIndexerProvider);
11132
11417
 
11133
- function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11134
- function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
11418
+ function _callSuper$2(_this, derived, args) {
11419
+ function isNativeReflectConstruct() {
11420
+ if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false;
11421
+ if (_Reflect$construct__default["default"].sham) return false;
11422
+ if (typeof Proxy === "function") return true;
11423
+ try {
11424
+ return !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {}));
11425
+ } catch (e) {
11426
+ return false;
11427
+ }
11428
+ }
11429
+ derived = _getPrototypeOf(derived);
11430
+ return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? _Reflect$construct__default["default"](derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
11431
+ }
11135
11432
  let WithPimIndexer = /*#__PURE__*/function (_PureComponent) {
11136
11433
  _inherits(WithPimIndexer, _PureComponent);
11137
- var _super = _createSuper$2(WithPimIndexer);
11138
11434
  function WithPimIndexer() {
11139
11435
  _classCallCheck(this, WithPimIndexer);
11140
- return _super.apply(this, arguments);
11436
+ return _callSuper$2(this, WithPimIndexer, arguments);
11141
11437
  }
11142
11438
  _createClass(WithPimIndexer, [{
11143
11439
  key: "render",
@@ -11503,8 +11799,20 @@ StoreSelectField.defaultProps = {
11503
11799
 
11504
11800
  function ownKeys$b(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
11505
11801
  function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context5 = ownKeys$b(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context6 = ownKeys$b(Object(t))).call(_context6, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
11506
- function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11507
- function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
11802
+ function _callSuper$1(_this, derived, args) {
11803
+ function isNativeReflectConstruct() {
11804
+ if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false;
11805
+ if (_Reflect$construct__default["default"].sham) return false;
11806
+ if (typeof Proxy === "function") return true;
11807
+ try {
11808
+ return !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {}));
11809
+ } catch (e) {
11810
+ return false;
11811
+ }
11812
+ }
11813
+ derived = _getPrototypeOf(derived);
11814
+ return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? _Reflect$construct__default["default"](derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
11815
+ }
11508
11816
  var styles$3 = {
11509
11817
  "invalid": "validated-input-module__invalid___380EL",
11510
11818
  "container": "validated-input-module__container___3L2KB"
@@ -11616,14 +11924,13 @@ function validatedInput(InnerComponent, validators) {
11616
11924
  });
11617
11925
  let ValidatedInput = /*#__PURE__*/function (_PureComponent) {
11618
11926
  _inherits(ValidatedInput, _PureComponent);
11619
- var _super = _createSuper$1(ValidatedInput);
11620
11927
  function ValidatedInput() {
11621
11928
  var _this;
11622
11929
  _classCallCheck(this, ValidatedInput);
11623
11930
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
11624
11931
  args[_key] = arguments[_key];
11625
11932
  }
11626
- _this = _super.call(this, ...args);
11933
+ _this = _callSuper$1(this, ValidatedInput, [...args]);
11627
11934
  _this.state = {
11628
11935
  validStatus: _initialValidState
11629
11936
  };
@@ -11742,14 +12049,13 @@ function simpleInput(type) {
11742
12049
  var _class2;
11743
12050
  return _class2 = /*#__PURE__*/function (_PureComponent2) {
11744
12051
  _inherits(_class2, _PureComponent2);
11745
- var _super2 = _createSuper$1(_class2);
11746
12052
  function _class2() {
11747
12053
  var _this2;
11748
12054
  _classCallCheck(this, _class2);
11749
12055
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
11750
12056
  args[_key2] = arguments[_key2];
11751
12057
  }
11752
- _this2 = _super2.call(this, ...args);
12058
+ _this2 = _callSuper$1(this, _class2, [...args]);
11753
12059
  _this2.handleBlur = event => {
11754
12060
  if (_this2.props.onBlurValue) _this2.props.onBlurValue(event.target.value);
11755
12061
  };
@@ -11997,8 +12303,20 @@ MultiValueSearchInput.displayName = 'MultiValueSearchInput';
11997
12303
 
11998
12304
  function ownKeys$7(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
11999
12305
  function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys$7(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys$7(Object(t))).call(_context2, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
12000
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct__default["default"](Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12001
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false; if (_Reflect$construct__default["default"].sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {})); return true; } catch (e) { return false; } }
12306
+ function _callSuper(_this, derived, args) {
12307
+ function isNativeReflectConstruct() {
12308
+ if (typeof Reflect === "undefined" || !_Reflect$construct__default["default"]) return false;
12309
+ if (_Reflect$construct__default["default"].sham) return false;
12310
+ if (typeof Proxy === "function") return true;
12311
+ try {
12312
+ return !Boolean.prototype.valueOf.call(_Reflect$construct__default["default"](Boolean, [], function () {}));
12313
+ } catch (e) {
12314
+ return false;
12315
+ }
12316
+ }
12317
+ derived = _getPrototypeOf(derived);
12318
+ return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? _Reflect$construct__default["default"](derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
12319
+ }
12002
12320
  var styles = {
12003
12321
  "invalid": "numeric-format-input-module__invalid___3LcyE",
12004
12322
  "disabled": "numeric-format-input-module__disabled___hb6h4"
@@ -12010,14 +12328,13 @@ Cleave__default["default"].displayName = 'Cleave';
12010
12328
  const isValidValue = value => isFinite__default["default"](value) || isNil__default["default"](value);
12011
12329
  let NumericFormatInput = /*#__PURE__*/function (_PureComponent) {
12012
12330
  _inherits(NumericFormatInput, _PureComponent);
12013
- var _super = _createSuper(NumericFormatInput);
12014
12331
  function NumericFormatInput() {
12015
12332
  var _this;
12016
12333
  _classCallCheck(this, NumericFormatInput);
12017
12334
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
12018
12335
  args[_key] = arguments[_key];
12019
12336
  }
12020
- _this = _super.call(this, ...args);
12337
+ _this = _callSuper(this, NumericFormatInput, [...args]);
12021
12338
  _this.state = {
12022
12339
  parsedValue: _this.props.value
12023
12340
  };
@@ -12512,8 +12829,10 @@ const validateMultiOptionEnum = (selectedOption, intl) => {
12512
12829
  };
12513
12830
 
12514
12831
  // eslint-disable-next-line import/prefer-default-export
12515
- const validateText = (text, intl) => {
12832
+ const validateText = function (text, intl) {
12833
+ let type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
12516
12834
  if (validateSingleFilter(text)) return intl.formatMessage(messages$K.required);
12835
+ if (type === 'id' && !isUUID(text.value)) return intl.formatMessage(messages$K.uuid);
12517
12836
  return null;
12518
12837
  };
12519
12838