@commercetools-frontend/experimental-components 5.0.3 → 5.1.0

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.
@@ -41,7 +41,7 @@ import { NO_VALUE_FALLBACK, GRAPHQL_TARGETS, DOMAINS, MC_API_PROXY_TARGETS, SUPP
41
41
  import { reportErrorToSentry } from '@commercetools-frontend/sentry';
42
42
  import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
43
43
  import _valuesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/values';
44
- import { usePaginationState, useDataTableSortingState, useToggleState, Spacings, Text, Link, LoadingSpinner, Constraints, AsyncSelectInput, AccessibleHidden, SecondaryIconButton, CloseIcon, SearchIcon, Tooltip, MoneyInput, TextInput, MultilineTextInput, LocalizedTextInput, LocalizedMultilineTextInput, SelectInput, NumberInput, SearchSelectInput, DateInput, DateTimeInput, TimeInput, SecondaryButton, RevertIcon, Grid, customProperties, SubdirectoryArrowIcon, Tag, IconButton, EditIcon, FieldLabel, WarningIcon, FlatButton, AngleUpIcon, AngleDownIcon, BinLinearIcon, PlusBoldIcon, ErrorIcon, SelectField, AsyncSelectField, SearchSelectField, FieldErrors, ContentNotification, ListIcon, CheckboxInput, SelectableSearchInput, SearchTextInput } from '@commercetools-frontend/ui-kit';
44
+ import { usePaginationState, useDataTableSortingState, useToggleState, Spacings, Text, Link, LoadingSpinner, Constraints, AsyncSelectInput, AccessibleHidden, SecondaryIconButton, CloseIcon, SearchIcon, Tooltip, MoneyInput, TextInput, MultilineTextInput, LocalizedTextInput, LocalizedMultilineTextInput, SelectInput, NumberInput, SearchSelectInput, DateInput, DateTimeInput, TimeInput, SecondaryButton, RevertIcon, Grid, customProperties, SubdirectoryArrowIcon, Tag, IconButton, EditIcon, FieldLabel, WarningIcon, FlatButton, AngleUpIcon, AngleDownIcon, BinLinearIcon, PlusBoldIcon, ErrorIcon, SelectField, AsyncSelectField, SearchSelectField, FieldErrors, ContentNotification, ListIcon, CheckboxInput, SelectableSearchInput, SearchTextInput, CollapsiblePanel, designTokens } from '@commercetools-frontend/ui-kit';
45
45
  import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
46
46
  import { useShowNotification, useShowApiErrorNotification, useOnActionError, useHideAllPageNotifications } from '@commercetools-frontend/actions-global';
47
47
  import PropTypes from 'prop-types';
@@ -294,7 +294,7 @@ function uniqueObjects(items) {
294
294
 
295
295
  */
296
296
 
297
- const messages$J = defineMessages({
297
+ const messages$K = defineMessages({
298
298
  unique: {
299
299
  id: 'Validation.unique',
300
300
  description: 'An error message to show if the field must be unique',
@@ -1589,8 +1589,8 @@ const getData = (code, field) => {
1589
1589
  };
1590
1590
  const getFractionDigit = code => getData(code, 'fractionDigit');
1591
1591
 
1592
- function ownKeys$1i(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1593
- function _objectSpread$1i(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1i(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$1i(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1592
+ function ownKeys$1k(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1593
+ function _objectSpread$1k(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1k(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$1k(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1594
1594
  function formatMoneyRangeValue(value, intl) {
1595
1595
  var _context;
1596
1596
  if (value.from === value.to) return formatMoneyValue(value.from, value.currency, intl);
@@ -1600,7 +1600,7 @@ function formatMoneyRangeValue(value, intl) {
1600
1600
  return '';
1601
1601
  }
1602
1602
  function formatMoneyValue(amount, currency, intl) {
1603
- return formatMoney$1(_objectSpread$1i({
1603
+ return formatMoney$1(_objectSpread$1k({
1604
1604
  centAmount: amount,
1605
1605
  fractionDigits: getFractionDigit(currency)
1606
1606
  }, currency ? {
@@ -1617,14 +1617,14 @@ function getFractionedAmount(moneyValue) {
1617
1617
  }
1618
1618
  function formatMoney$1(moneyValue, intl, options) {
1619
1619
  var _moneyValue$fractione;
1620
- return intl.formatNumber((_moneyValue$fractione = moneyValue.fractionedAmount) !== null && _moneyValue$fractione !== void 0 ? _moneyValue$fractione : getFractionedAmount(moneyValue), _objectSpread$1i({
1620
+ return intl.formatNumber((_moneyValue$fractione = moneyValue.fractionedAmount) !== null && _moneyValue$fractione !== void 0 ? _moneyValue$fractione : getFractionedAmount(moneyValue), _objectSpread$1k({
1621
1621
  style: 'currency',
1622
1622
  currency: moneyValue.currencyCode,
1623
1623
  minimumFractionDigits: moneyValue.fractionDigits
1624
1624
  }, options));
1625
1625
  }
1626
1626
 
1627
- var messages$I = defineMessages({
1627
+ var messages$J = defineMessages({
1628
1628
  booleanYes: {
1629
1629
  id: 'AttributeTypeFormats.boolean.yes',
1630
1630
  description: 'The label for boolean attribute `true` value',
@@ -1709,7 +1709,7 @@ const formatDateTime = _ref7 => {
1709
1709
  const formatBoolean = _ref8 => {
1710
1710
  let value = _ref8.value,
1711
1711
  intl = _ref8.intl;
1712
- return value ? intl.formatMessage(messages$I.booleanYes) : intl.formatMessage(messages$I.booleanNo);
1712
+ return value ? intl.formatMessage(messages$J.booleanYes) : intl.formatMessage(messages$J.booleanNo);
1713
1713
  };
1714
1714
  const formatNilType = _ref9 => {
1715
1715
  let value = _ref9.value,
@@ -1871,8 +1871,8 @@ const wrapDisplayName = (BaseComponent, hocName) => {
1871
1871
  return _concatInstanceProperty(_context = "".concat(hocName, "(")).call(_context, getDisplayName(BaseComponent), ")");
1872
1872
  };
1873
1873
 
1874
- function ownKeys$1h(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1875
- function _objectSpread$1h(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1h(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1h(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1874
+ function ownKeys$1j(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1875
+ function _objectSpread$1j(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1j(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1j(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1876
1876
  const injectDataTablePaginationState = initialValues => Component => {
1877
1877
  const WithDataTablePaginationState = props => {
1878
1878
  var _initialValues$tableS, _initialValues$tableS2;
@@ -1883,10 +1883,10 @@ const injectDataTablePaginationState = initialValues => Component => {
1883
1883
  page = _usePaginationState.page,
1884
1884
  perPage = _usePaginationState.perPage;
1885
1885
  const tableSorting = useDataTableSortingState({
1886
- key: initialValues === null || initialValues === void 0 ? void 0 : (_initialValues$tableS = initialValues.tableSorting) === null || _initialValues$tableS === void 0 ? void 0 : _initialValues$tableS.key,
1887
- order: initialValues === null || initialValues === void 0 ? void 0 : (_initialValues$tableS2 = initialValues.tableSorting) === null || _initialValues$tableS2 === void 0 ? void 0 : _initialValues$tableS2.order
1886
+ key: initialValues === null || initialValues === void 0 || (_initialValues$tableS = initialValues.tableSorting) === null || _initialValues$tableS === void 0 ? void 0 : _initialValues$tableS.key,
1887
+ order: initialValues === null || initialValues === void 0 || (_initialValues$tableS2 = initialValues.tableSorting) === null || _initialValues$tableS2 === void 0 ? void 0 : _initialValues$tableS2.order
1888
1888
  });
1889
- return jsx(Component, _objectSpread$1h(_objectSpread$1h({}, props), {}, {
1889
+ return jsx(Component, _objectSpread$1j(_objectSpread$1j({}, props), {}, {
1890
1890
  dataTablePaginationState: {
1891
1891
  page,
1892
1892
  perPage,
@@ -1898,8 +1898,8 @@ const injectDataTablePaginationState = initialValues => Component => {
1898
1898
  return WithDataTablePaginationState;
1899
1899
  };
1900
1900
 
1901
- function ownKeys$1g(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1902
- function _objectSpread$1g(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1g(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1g(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1901
+ function ownKeys$1i(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1902
+ function _objectSpread$1i(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1i(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1i(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1903
1903
  const injectNotifications = function () {
1904
1904
  let propName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'notifications';
1905
1905
  return Component => {
@@ -1914,7 +1914,7 @@ const injectNotifications = function () {
1914
1914
  onActionError,
1915
1915
  hideAllPageNotifications
1916
1916
  };
1917
- return jsx(Component, _objectSpread$1g(_objectSpread$1g({}, props), {}, {
1917
+ return jsx(Component, _objectSpread$1i(_objectSpread$1i({}, props), {}, {
1918
1918
  [propName]: notifications
1919
1919
  }));
1920
1920
  };
@@ -1923,22 +1923,22 @@ const injectNotifications = function () {
1923
1923
  };
1924
1924
  };
1925
1925
 
1926
- function ownKeys$1f(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1927
- function _objectSpread$1f(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1f(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1f(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1926
+ function ownKeys$1h(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1927
+ function _objectSpread$1h(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1h(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1h(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1928
1928
  function isPropsMapper(mapProps) {
1929
1929
  return typeof mapProps === 'function';
1930
1930
  }
1931
1931
  const withProps = mapProps => Component => {
1932
1932
  const EnhancedWithProps = ownProps => {
1933
- const enhancedProps = isPropsMapper(mapProps) ? _objectSpread$1f(_objectSpread$1f({}, ownProps), mapProps(ownProps)) : _objectSpread$1f(_objectSpread$1f({}, ownProps), mapProps);
1934
- return jsx(Component, _objectSpread$1f({}, enhancedProps));
1933
+ const enhancedProps = isPropsMapper(mapProps) ? _objectSpread$1h(_objectSpread$1h({}, ownProps), mapProps(ownProps)) : _objectSpread$1h(_objectSpread$1h({}, ownProps), mapProps);
1934
+ return jsx(Component, _objectSpread$1h({}, enhancedProps));
1935
1935
  };
1936
1936
  EnhancedWithProps.displayName = wrapDisplayName(Component, 'withProps');
1937
1937
  return EnhancedWithProps;
1938
1938
  };
1939
1939
 
1940
- function ownKeys$1e(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1941
- function _objectSpread$1e(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1e(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1e(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1940
+ function ownKeys$1g(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1941
+ function _objectSpread$1g(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1g(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1g(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1942
1942
  const useRedirectEffect = _ref => {
1943
1943
  let goTo = _ref.goTo;
1944
1944
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -1958,30 +1958,30 @@ const defaultOptions$5 = {
1958
1958
  skip: () => false
1959
1959
  };
1960
1960
  const withRedirectTo = options => Component => {
1961
- const mergedOptions = _objectSpread$1e(_objectSpread$1e({}, defaultOptions$5), options);
1961
+ const mergedOptions = _objectSpread$1g(_objectSpread$1g({}, defaultOptions$5), options);
1962
1962
  const WithRedirectTo = props => {
1963
1963
  if (!mergedOptions.skip(props)) {
1964
1964
  return jsx(RedirectTo, {
1965
1965
  goTo: options.selectGoTo(props)
1966
1966
  });
1967
1967
  }
1968
- return jsx(Component, _objectSpread$1e({}, props));
1968
+ return jsx(Component, _objectSpread$1g({}, props));
1969
1969
  };
1970
1970
  WithRedirectTo.displayName = 'WithFirstStepRedirect';
1971
1971
  return WithRedirectTo;
1972
1972
  };
1973
1973
 
1974
- function ownKeys$1d(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1975
- function _objectSpread$1d(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1d(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1d(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1974
+ function ownKeys$1f(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1975
+ function _objectSpread$1f(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1f(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1f(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1976
1976
  const defaultOptions$4 = {
1977
1977
  propName: 'modalState',
1978
1978
  isInitiallyOpen: false
1979
1979
  };
1980
1980
  const injectModalState$1 = options => Component => {
1981
- const mergedOptions = _objectSpread$1d(_objectSpread$1d({}, defaultOptions$4), options);
1981
+ const mergedOptions = _objectSpread$1f(_objectSpread$1f({}, defaultOptions$4), options);
1982
1982
  const WithModalState = props => {
1983
1983
  const modalState = useModalState(mergedOptions.isInitiallyOpen);
1984
- return jsx(Component, _objectSpread$1d(_objectSpread$1d({}, props), {}, {
1984
+ return jsx(Component, _objectSpread$1f(_objectSpread$1f({}, props), {}, {
1985
1985
  [mergedOptions.propName]: modalState
1986
1986
  }));
1987
1987
  };
@@ -1989,17 +1989,17 @@ const injectModalState$1 = options => Component => {
1989
1989
  return WithModalState;
1990
1990
  };
1991
1991
 
1992
- function ownKeys$1c(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1993
- function _objectSpread$1c(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1c(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1c(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1992
+ function ownKeys$1e(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1993
+ function _objectSpread$1e(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1e(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1e(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1994
1994
  const defaultOptions$3 = {
1995
1995
  propName: 'toggleState',
1996
1996
  isInitiallyOpen: false
1997
1997
  };
1998
1998
  const injectModalState = options => Component => {
1999
- const mergedOptions = _objectSpread$1c(_objectSpread$1c({}, defaultOptions$3), options);
1999
+ const mergedOptions = _objectSpread$1e(_objectSpread$1e({}, defaultOptions$3), options);
2000
2000
  const WithToggleState = props => {
2001
2001
  const toggleState = useToggleState(mergedOptions.isInitiallyOpen);
2002
- return jsx(Component, _objectSpread$1c(_objectSpread$1c({}, props), {}, {
2002
+ return jsx(Component, _objectSpread$1e(_objectSpread$1e({}, props), {}, {
2003
2003
  [mergedOptions.propName]: toggleState
2004
2004
  }));
2005
2005
  };
@@ -2007,8 +2007,8 @@ const injectModalState = options => Component => {
2007
2007
  return WithToggleState;
2008
2008
  };
2009
2009
 
2010
- function ownKeys$1b(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2011
- function _objectSpread$1b(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1b(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$1b(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2010
+ function ownKeys$1d(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2011
+ function _objectSpread$1d(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1d(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$1d(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2012
2012
  const defaultOptions$2 = {
2013
2013
  storageType: 'local',
2014
2014
  segregateByUser: true
@@ -2026,7 +2026,7 @@ const getStorage = storageType => storageType === 'session' ? sessionStorage : l
2026
2026
  const isNil = value => typeof value === 'undefined' || value === null;
2027
2027
  const useStorage = (storageKey, initialStorageValue, options) => {
2028
2028
  var _context;
2029
- const mergedOptions = _objectSpread$1b(_objectSpread$1b({}, defaultOptions$2), options);
2029
+ const mergedOptions = _objectSpread$1d(_objectSpread$1d({}, defaultOptions$2), options);
2030
2030
  const userId = useApplicationContext(context => {
2031
2031
  var _context$user;
2032
2032
  return (_context$user = context.user) === null || _context$user === void 0 ? void 0 : _context$user.id;
@@ -2074,8 +2074,8 @@ const useStorage = (storageKey, initialStorageValue, options) => {
2074
2074
  return [actualStorageValue, writeToStorage, readFromStorage];
2075
2075
  };
2076
2076
 
2077
- function ownKeys$1a(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2078
- function _objectSpread$1a(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1a(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1a(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2077
+ function ownKeys$1c(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2078
+ function _objectSpread$1c(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1c(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1c(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2079
2079
  const defaultOptions$1 = {
2080
2080
  propName: 'storage',
2081
2081
  storageKey: '',
@@ -2088,7 +2088,7 @@ const injectStorage = options => WrappedComponent => {
2088
2088
  * Options are being merged by spreading as destructuring and defaulting in
2089
2089
  * argument position does not allow passing specification of option(s).
2090
2090
  */
2091
- const mergedOptions = _objectSpread$1a(_objectSpread$1a({}, defaultOptions$1), options);
2091
+ const mergedOptions = _objectSpread$1c(_objectSpread$1c({}, defaultOptions$1), options);
2092
2092
  const WithStorage = props => {
2093
2093
  const _useStorage = useStorage(mergedOptions.storageKey(props), mergedOptions.initalStorageValue, mergedOptions.options),
2094
2094
  _useStorage2 = _slicedToArray(_useStorage, 3),
@@ -2102,7 +2102,7 @@ const injectStorage = options => WrappedComponent => {
2102
2102
  readFromStorage
2103
2103
  }
2104
2104
  };
2105
- return jsx(WrappedComponent, _objectSpread$1a(_objectSpread$1a({}, props), storageProp));
2105
+ return jsx(WrappedComponent, _objectSpread$1c(_objectSpread$1c({}, props), storageProp));
2106
2106
  };
2107
2107
  WithStorage.displayName = wrapDisplayName(WrappedComponent, 'WithStorage');
2108
2108
  return WithStorage;
@@ -2146,8 +2146,8 @@ const usePrevious = value => {
2146
2146
  return ref.current;
2147
2147
  };
2148
2148
 
2149
- function ownKeys$19(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2150
- function _objectSpread$19(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$19(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$19(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2149
+ function ownKeys$1b(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2150
+ function _objectSpread$1b(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1b(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$1b(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2151
2151
  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: "type" }, 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 type\n nameAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
2152
2152
  const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
2153
2153
  var _storesQueryResult$re;
@@ -2158,7 +2158,7 @@ const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
2158
2158
  offset: storesQueryResult.offset,
2159
2159
  results: (_storesQueryResult$re = storesQueryResult.results) === null || _storesQueryResult$re === void 0 ? void 0 : _mapInstanceProperty(_storesQueryResult$re).call(_storesQueryResult$re, store => {
2160
2160
  var _store$productSelecti;
2161
- return _objectSpread$19(_objectSpread$19({}, store), {}, {
2161
+ return _objectSpread$1b(_objectSpread$1b({}, store), {}, {
2162
2162
  productSelections: (_store$productSelecti = store.productSelections) === null || _store$productSelecti === void 0 ? void 0 : _filterInstanceProperty(_store$productSelecti).call(_store$productSelecti, productSelectionRef => Boolean(productSelectionRef.productSelection))
2163
2163
  });
2164
2164
  })
@@ -2166,7 +2166,7 @@ const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
2166
2166
  };
2167
2167
  const createQueryVariables$6 = ownProps => {
2168
2168
  var _context;
2169
- return _objectSpread$19(_objectSpread$19({
2169
+ return _objectSpread$1b(_objectSpread$1b({
2170
2170
  limit: ownProps.limit,
2171
2171
  offset: ownProps.offset,
2172
2172
  sort: _sortInstanceProperty(ownProps)
@@ -2321,8 +2321,8 @@ function useDidFormValidationFail() {
2321
2321
  return Boolean(didFormValidationFail);
2322
2322
  }
2323
2323
 
2324
- function ownKeys$18(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2325
- function _objectSpread$18(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$18(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$18(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2324
+ function ownKeys$1a(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2325
+ function _objectSpread$1a(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1a(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1a(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2326
2326
  const TEN_MINUTES_IN_MS = 600000;
2327
2327
  const defaultOptions = {
2328
2328
  reminderInterval: REMINDER_OPTION_1_DAY,
@@ -2350,7 +2350,7 @@ const useHasReminderExpired = readReminderInterval => {
2350
2350
  };
2351
2351
  const usePersistedReminder = function () {
2352
2352
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2353
- const mergedOptions = _objectSpread$18(_objectSpread$18({}, defaultOptions), options);
2353
+ const mergedOptions = _objectSpread$1a(_objectSpread$1a({}, defaultOptions), options);
2354
2354
  const _useStorage = useStorage(mergedOptions.storageKey, null),
2355
2355
  _useStorage2 = _slicedToArray(_useStorage, 3),
2356
2356
  initialChosenReminderInterval = _useStorage2[0],
@@ -2396,7 +2396,7 @@ const usePersistedReminder = function () {
2396
2396
  return [hasReminderExpired, hasChosenReminderRef, scheduleReminder];
2397
2397
  };
2398
2398
 
2399
- var messages$H = defineMessages({
2399
+ var messages$I = defineMessages({
2400
2400
  profileUpdated: {
2401
2401
  id: 'NotificationText.profileUpdated',
2402
2402
  description: 'Label for the notification header',
@@ -2414,8 +2414,8 @@ var messages$H = defineMessages({
2414
2414
  }
2415
2415
  });
2416
2416
 
2417
- function ownKeys$17(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2418
- function _objectSpread$17(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$17(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$17(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2417
+ function ownKeys$19(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2418
+ function _objectSpread$19(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$19(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$19(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2419
2419
  const LinkToProfile = props => {
2420
2420
  return jsx(Link, {
2421
2421
  to: "/account/profile",
@@ -2433,9 +2433,9 @@ const NotificationText = () => jsxs(Spacings.Stack, {
2433
2433
  children: [jsx(Text.Body, {
2434
2434
  as: "p",
2435
2435
  isBold: true,
2436
- intlMessage: messages$H.profileUpdated
2436
+ intlMessage: messages$I.profileUpdated
2437
2437
  }), jsx(Text.Body, {
2438
- intlMessage: _objectSpread$17(_objectSpread$17({}, messages$H.addMoreInformation), {}, {
2438
+ intlMessage: _objectSpread$19(_objectSpread$19({}, messages$I.addMoreInformation), {}, {
2439
2439
  values: {
2440
2440
  newline: getNewLine
2441
2441
  }
@@ -2444,7 +2444,7 @@ const NotificationText = () => jsxs(Spacings.Stack, {
2444
2444
  }), jsx(Spacings.Stack, {
2445
2445
  scale: "xs",
2446
2446
  children: jsx(Text.Body, {
2447
- intlMessage: _objectSpread$17(_objectSpread$17({}, messages$H.informationAndProfileLink), {}, {
2447
+ intlMessage: _objectSpread$19(_objectSpread$19({}, messages$I.informationAndProfileLink), {}, {
2448
2448
  values: {
2449
2449
  newline: getNewLine,
2450
2450
  link: getLinkToProfile
@@ -2565,7 +2565,7 @@ const useEventCallback = (fn, dependencies) => {
2565
2565
  }, [ref]);
2566
2566
  };
2567
2567
 
2568
- var messages$G = defineMessages({
2568
+ var messages$H = defineMessages({
2569
2569
  fallbackHint: {
2570
2570
  id: 'KeyFallback.fallbackHint',
2571
2571
  description: 'key fallback for a specified resource key (e.g name)',
@@ -2589,7 +2589,7 @@ const useLocalizedKeyFallback = () => {
2589
2589
  return values => {
2590
2590
  if (!values.resource) return null;
2591
2591
  const localizedString = values.resource[values.localizedStringFieldName];
2592
- const fallbackHintWithKey = intl.formatMessage(messages$G.fallbackHint, {
2592
+ const fallbackHintWithKey = intl.formatMessage(messages$H.fallbackHint, {
2593
2593
  key: values.resource.key
2594
2594
  });
2595
2595
  if (!localizedString) return fallbackHintWithKey;
@@ -2601,8 +2601,8 @@ const useDebouncedPromiseCallback = (promiseCallback, wait) =>
2601
2601
  // eslint-disable-next-line testing-library/await-async-utils
2602
2602
  useCallback(debounce(promiseCallback, wait), [promiseCallback]);
2603
2603
 
2604
- function ownKeys$16(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2605
- function _objectSpread$16(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$16(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$16(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2604
+ function ownKeys$18(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2605
+ function _objectSpread$18(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$18(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$18(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2606
2606
  const prepareMutableColumnProps = (columnConfig, mutableColumnProps) => {
2607
2607
  const updatedColumnProps = {};
2608
2608
  _forEachInstanceProperty(mutableColumnProps).call(mutableColumnProps, columnProp => {
@@ -2622,14 +2622,14 @@ const retrieveColumnsWithCachedConfiguration = _ref => {
2622
2622
  mutableColumnProps = _ref.mutableColumnProps;
2623
2623
  return _mapInstanceProperty(_context = _filterInstanceProperty(cachedVisibleTableConfiguration).call(cachedVisibleTableConfiguration, cachedColumn => _findInstanceProperty(allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, initialConfig => initialConfig.key === cachedColumn.key))).call(_context, cachedConfig => {
2624
2624
  const initialColumnConfig = _findInstanceProperty(allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, initialConfig => initialConfig.key === cachedConfig.key);
2625
- return _objectSpread$16(_objectSpread$16({}, initialColumnConfig), prepareMutableColumnProps(cachedConfig, mutableColumnProps));
2625
+ return _objectSpread$18(_objectSpread$18({}, initialColumnConfig), prepareMutableColumnProps(cachedConfig, mutableColumnProps));
2626
2626
  });
2627
2627
  };
2628
2628
  const handleCacheUpdate = _ref2 => {
2629
2629
  let update = _ref2.update,
2630
2630
  cachedVisibleTableConfiguration = _ref2.cachedVisibleTableConfiguration,
2631
2631
  updateCachedTableConfiguration = _ref2.updateCachedTableConfiguration;
2632
- return updateCachedTableConfiguration(_objectSpread$16(_objectSpread$16({}, pick(cachedVisibleTableConfiguration, ['columnsConfig', 'displaySettings'])), update));
2632
+ return updateCachedTableConfiguration(_objectSpread$18(_objectSpread$18({}, pick(cachedVisibleTableConfiguration, ['columnsConfig', 'displaySettings'])), update));
2633
2633
  };
2634
2634
 
2635
2635
  // Signature:
@@ -2658,7 +2658,7 @@ const usePersistedTableConfiguration = props => {
2658
2658
  return {
2659
2659
  columnsConfig: _mapInstanceProperty(initialVisibleColumnKeys).call(initialVisibleColumnKeys, visibleColumnKey => {
2660
2660
  const visibleColumnConfig = _findInstanceProperty(allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, columnConfig => columnConfig.key === visibleColumnKey);
2661
- return _objectSpread$16({
2661
+ return _objectSpread$18({
2662
2662
  key: visibleColumnKey
2663
2663
  }, prepareMutableColumnProps(visibleColumnConfig, mutableColumnProps));
2664
2664
  }),
@@ -2714,7 +2714,7 @@ const useProductSelectionsTotalFetcher = props => {
2714
2714
  data = _useQuery.data;
2715
2715
  return {
2716
2716
  isLoading: loading,
2717
- total: data === null || data === void 0 ? void 0 : (_data$productSelectio = data.productSelections) === null || _data$productSelectio === void 0 ? void 0 : _data$productSelectio.total
2717
+ total: data === null || data === void 0 || (_data$productSelectio = data.productSelections) === null || _data$productSelectio === void 0 ? void 0 : _data$productSelectio.total
2718
2718
  };
2719
2719
  };
2720
2720
 
@@ -2729,14 +2729,14 @@ const handlers$4 = {
2729
2729
  }
2730
2730
  };
2731
2731
 
2732
- function ownKeys$15(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2733
- function _objectSpread$15(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$15(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$15(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2732
+ function ownKeys$17(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2733
+ function _objectSpread$17(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$17(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$17(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2734
2734
 
2735
2735
  // eslint-disable-next-line import/prefer-default-export
2736
2736
  const convertProductSelectionsFromGraphQl = productSelections => {
2737
2737
  var _context;
2738
- return (productSelections === null || productSelections === void 0 ? void 0 : productSelections.results) && _objectSpread$15(_objectSpread$15({}, productSelections), {}, {
2739
- results: _mapInstanceProperty(_context = productSelections.results).call(_context, productSelection => _objectSpread$15({}, applyTransformedLocalizedFields(productSelection, [{
2738
+ return (productSelections === null || productSelections === void 0 ? void 0 : productSelections.results) && _objectSpread$17(_objectSpread$17({}, productSelections), {}, {
2739
+ results: _mapInstanceProperty(_context = productSelections.results).call(_context, productSelection => _objectSpread$17({}, applyTransformedLocalizedFields(productSelection, [{
2740
2740
  from: 'nameAllLocales',
2741
2741
  to: 'name'
2742
2742
  }])))
@@ -2886,7 +2886,7 @@ const CenteredLoadingSpinner = () => jsx("div", {
2886
2886
  });
2887
2887
  CenteredLoadingSpinner.displayName = 'CenteredLoadingSpinner';
2888
2888
 
2889
- var messages$F = defineMessages({
2889
+ var messages$G = defineMessages({
2890
2890
  noChannelsFound: {
2891
2891
  id: 'Products.ChannelPickerInput.noChannelsFound',
2892
2892
  description: 'The message to display when no channels were found',
@@ -2912,8 +2912,8 @@ var commonPickerMessages = defineMessages({
2912
2912
  }
2913
2913
  });
2914
2914
 
2915
- function ownKeys$14(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2916
- function _objectSpread$14(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$14(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$14(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2915
+ function ownKeys$16(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2916
+ function _objectSpread$16(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$16(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$16(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2917
2917
  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 } } } };
2918
2918
  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 } } } };
2919
2919
  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 } } } };
@@ -2934,7 +2934,7 @@ const ChannelPickerInput = _ref => {
2934
2934
  const _useIntl = useIntl(),
2935
2935
  formatMessage = _useIntl.formatMessage;
2936
2936
  const dataLocale = useApplicationContext(applicationContext => applicationContext.dataLocale);
2937
- const variables = useMemo(() => _objectSpread$14({
2937
+ const variables = useMemo(() => _objectSpread$16({
2938
2938
  sortByNamePath: "name.".concat(dataLocale)
2939
2939
  }, role && {
2940
2940
  where: "roles contains any (\"".concat(role, "\")")
@@ -2995,8 +2995,8 @@ const ChannelPickerInput = _ref => {
2995
2995
  if (isCurrentOptionLoadingFailed) onError(currentOption.error);
2996
2996
  }, [isCurrentOptionLoadingFailed, onError, currentOption]);
2997
2997
  const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
2998
- const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$F.noChannelsFound), [loadingError, formatMessage]);
2999
- const tooltipTitle = (_currentOption$data$l = currentOption === null || currentOption === void 0 ? void 0 : (_currentOption$data = currentOption.data) === null || _currentOption$data === void 0 ? void 0 : _currentOption$data.label) !== null && _currentOption$data$l !== void 0 ? _currentOption$data$l : '';
2998
+ const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$G.noChannelsFound), [loadingError, formatMessage]);
2999
+ const tooltipTitle = (_currentOption$data$l = currentOption === null || currentOption === void 0 || (_currentOption$data = currentOption.data) === null || _currentOption$data === void 0 ? void 0 : _currentOption$data.label) !== null && _currentOption$data$l !== void 0 ? _currentOption$data$l : '';
3000
3000
  return jsx(Constraints.Horizontal, {
3001
3001
  max: "scale",
3002
3002
  children: jsxs(Spacings.Stack, {
@@ -3006,7 +3006,7 @@ const ChannelPickerInput = _ref => {
3006
3006
  children: jsx(AsyncSelectInput, {
3007
3007
  id: name,
3008
3008
  name: name,
3009
- placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : formatMessage(messages$F.placeholder),
3009
+ placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : formatMessage(messages$G.placeholder),
3010
3010
  loadOptions: loadOptionsDebounced,
3011
3011
  defaultOptions: true,
3012
3012
  showOptionGroupDivider: true,
@@ -3049,7 +3049,7 @@ let FormattedDateTime = /*#__PURE__*/function (_PureComponent) {
3049
3049
  var _this$props;
3050
3050
  let user = _ref.user;
3051
3051
  return formatDateTime$1(this.props.type, this.props.value, {
3052
- timeZone: (this === null || this === void 0 ? void 0 : (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.timeZone) || (user === null || user === void 0 ? void 0 : user.timeZone),
3052
+ timeZone: (this === null || this === void 0 || (_this$props = this.props) === null || _this$props === void 0 ? void 0 : _this$props.timeZone) || (user === null || user === void 0 ? void 0 : user.timeZone),
3053
3053
  locale: this.props.intl.locale
3054
3054
  });
3055
3055
  }
@@ -3063,8 +3063,8 @@ var FormattedDateTime$1 = injectIntl(FormattedDateTime);
3063
3063
 
3064
3064
  const keepDisplayName = component => setDisplayName(getDisplayName(component));
3065
3065
 
3066
- function ownKeys$13(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3067
- function _objectSpread$13(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$13(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$13(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
3066
+ function ownKeys$15(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3067
+ function _objectSpread$15(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$15(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$15(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
3068
3068
  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(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3069
3069
  function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
3070
3070
  const withMouseOverState = BaseComponent => {
@@ -3096,7 +3096,7 @@ const withMouseOverState = BaseComponent => {
3096
3096
  handleMouseOver: this.handleMouseOver,
3097
3097
  handleMouseOut: this.handleMouseOut
3098
3098
  };
3099
- return jsx(BaseComponent, _objectSpread$13({}, _objectSpread$13(_objectSpread$13({}, this.props), injectedProps)));
3099
+ return jsx(BaseComponent, _objectSpread$15({}, _objectSpread$15(_objectSpread$15({}, this.props), injectedProps)));
3100
3100
  }
3101
3101
  }]);
3102
3102
  return WithMouseOverState;
@@ -3105,8 +3105,8 @@ const withMouseOverState = BaseComponent => {
3105
3105
  return WithMouseOverState;
3106
3106
  };
3107
3107
 
3108
- function ownKeys$12(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3109
- function _objectSpread$12(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$12(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$12(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
3108
+ function ownKeys$14(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3109
+ function _objectSpread$14(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$14(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$14(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
3110
3110
  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(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
3111
3111
  function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
3112
3112
  var styles$h = {
@@ -3217,7 +3217,7 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
3217
3217
  }, {
3218
3218
  key: "render",
3219
3219
  value: function render() {
3220
- const commonProps = _objectSpread$12(_objectSpread$12({
3220
+ const commonProps = _objectSpread$14(_objectSpread$14({
3221
3221
  value: this.state.draftValue,
3222
3222
  autoComplete: this.props.autoComplete,
3223
3223
  onChange: this.handleChange,
@@ -3236,7 +3236,7 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
3236
3236
  htmlFor: inputId,
3237
3237
  children: this.props.label
3238
3238
  })
3239
- }), this.props.as === 'textarea' ? jsx(Textarea, _objectSpread$12(_objectSpread$12({}, commonProps), {}, {
3239
+ }), this.props.as === 'textarea' ? jsx(Textarea, _objectSpread$14(_objectSpread$14({}, commonProps), {}, {
3240
3240
  id: inputId,
3241
3241
  className: classnames(styles$h.textarea, styles$h["textarea-".concat(this.props.style)], {
3242
3242
  [styles$h.invalid]: !this.props.isValid,
@@ -3245,7 +3245,7 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
3245
3245
  rows: 1,
3246
3246
  maxRows: this.props.autoSize ? undefined : 1,
3247
3247
  cacheMeasurements: true
3248
- })) : jsx("input", _objectSpread$12(_objectSpread$12({}, commonProps), {}, {
3248
+ })) : jsx("input", _objectSpread$14(_objectSpread$14({}, commonProps), {}, {
3249
3249
  id: inputId,
3250
3250
  ref: this.props.inputRef,
3251
3251
  type: this.props.as,
@@ -3272,7 +3272,7 @@ ThrottledField.defaultProps = {
3272
3272
  label: 'Throttled field'
3273
3273
  };
3274
3274
 
3275
- var messages$E = defineMessages({
3275
+ var messages$F = defineMessages({
3276
3276
  buttonLabel: {
3277
3277
  id: 'SearchInput.buttonLabel',
3278
3278
  description: 'Label for "Search" button.',
@@ -3379,7 +3379,7 @@ let SearchInput = /*#__PURE__*/function (_Component) {
3379
3379
  "data-testid": this.props.testId || 'search-input',
3380
3380
  value: this.state.text,
3381
3381
  label: this.props.label,
3382
- placeholder: this.props.placeholder || this.props.intl.formatMessage(messages$E.placeholder),
3382
+ placeholder: this.props.placeholder || this.props.intl.formatMessage(messages$F.placeholder),
3383
3383
  inputRef: this.props.inputRef || this.setInputRef,
3384
3384
  onChange: this.handleInputChange,
3385
3385
  onEnter: this.handleEnter,
@@ -3472,7 +3472,7 @@ const useFetchProductTypesFromPIM = _ref => {
3472
3472
  const fetchProductTypesFromPim = useCallback(async searchTerm => {
3473
3473
  var _result$hits$map, _result$hits;
3474
3474
  const result = await dispatch(createSearchProductsFromPIMAction(searchTerm, projectKey));
3475
- const ids = (_result$hits$map = result === null || result === void 0 ? void 0 : (_result$hits = result.hits) === null || _result$hits === void 0 ? void 0 : _mapInstanceProperty(_result$hits).call(_result$hits, hit => hit.id)) !== null && _result$hits$map !== void 0 ? _result$hits$map : [];
3475
+ const ids = (_result$hits$map = result === null || result === void 0 || (_result$hits = result.hits) === null || _result$hits === void 0 ? void 0 : _mapInstanceProperty(_result$hits).call(_result$hits, hit => hit.id)) !== null && _result$hits$map !== void 0 ? _result$hits$map : [];
3476
3476
  // Avoid sending any requests if it's clear that nothing is found
3477
3477
  if (ids.length === 0) {
3478
3478
  return {
@@ -3555,7 +3555,7 @@ const useFetchProductTypessFromCTP = _ref2 => {
3555
3555
  }, [prefixSearchFields, executeGraphQLRequest]);
3556
3556
  };
3557
3557
  const usePimStatus = () => {
3558
- var _data$indicesExist, _data$indicesExist$pr;
3558
+ var _data$indicesExist;
3559
3559
  const _useQuery = useQuery(FetchIndicesExist$1, {
3560
3560
  context: {
3561
3561
  target: GRAPHQL_TARGETS.PIM_INDEXER
@@ -3565,7 +3565,7 @@ const usePimStatus = () => {
3565
3565
  data = _useQuery.data;
3566
3566
  return {
3567
3567
  data,
3568
- isProjectIndexed: Boolean(data === null || data === void 0 ? void 0 : (_data$indicesExist = data.indicesExist) === null || _data$indicesExist === void 0 ? void 0 : (_data$indicesExist$pr = _data$indicesExist.productTypes) === null || _data$indicesExist$pr === void 0 ? void 0 : _data$indicesExist$pr.searchableIndexExists)
3568
+ isProjectIndexed: Boolean(data === null || data === void 0 || (_data$indicesExist = data.indicesExist) === null || _data$indicesExist === void 0 || (_data$indicesExist = _data$indicesExist.productTypes) === null || _data$indicesExist === void 0 ? void 0 : _data$indicesExist.searchableIndexExists)
3569
3569
  };
3570
3570
  };
3571
3571
  const useProductTypeOptions = _ref3 => {
@@ -3594,7 +3594,7 @@ const useProductTypeOptions = _ref3 => {
3594
3594
  };
3595
3595
  };
3596
3596
 
3597
- var messages$D = defineMessages({
3597
+ var messages$E = defineMessages({
3598
3598
  bottomOption: {
3599
3599
  id: 'Products.Pickers.bottomOption',
3600
3600
  description: 'The message to display at the end of the options menu',
@@ -3602,11 +3602,11 @@ var messages$D = defineMessages({
3602
3602
  }
3603
3603
  });
3604
3604
 
3605
- function ownKeys$11(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3606
- function _objectSpread$11(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$11(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$11(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
3605
+ function ownKeys$13(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3606
+ function _objectSpread$13(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$13(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$13(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
3607
3607
  const getBottomOption = formatMessage => ({
3608
3608
  options: [{
3609
- label: formatMessage ? formatMessage(messages$D.bottomOption) : messages$D.bottomOption,
3609
+ label: formatMessage ? formatMessage(messages$E.bottomOption) : messages$E.bottomOption,
3610
3610
  isBottomOption: true,
3611
3611
  isDisabled: true
3612
3612
  }]
@@ -3614,7 +3614,7 @@ const getBottomOption = formatMessage => ({
3614
3614
  const Option$2 = props => {
3615
3615
  const _useIntl = useIntl(),
3616
3616
  formatMessage = _useIntl.formatMessage;
3617
- return jsx(AsyncSelectInput.Option, _objectSpread$11(_objectSpread$11({}, props), {}, {
3617
+ return jsx(AsyncSelectInput.Option, _objectSpread$13(_objectSpread$13({}, props), {}, {
3618
3618
  children: props.data.isBottomOption ? jsx(Text.Detail, {
3619
3619
  tone: "secondary",
3620
3620
  children: formatMessage(props.data.label)
@@ -3631,8 +3631,8 @@ const Option$2 = props => {
3631
3631
  };
3632
3632
  Option$2.displayName = 'Option';
3633
3633
 
3634
- function ownKeys$10(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3635
- function _objectSpread$10(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$10(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$10(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
3634
+ function ownKeys$12(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3635
+ function _objectSpread$12(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$12(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$12(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
3636
3636
  const useHandlers = onChange => {
3637
3637
  const _useState = useState(),
3638
3638
  _useState2 = _slicedToArray(_useState, 2),
@@ -3643,8 +3643,8 @@ const useHandlers = onChange => {
3643
3643
  }, []);
3644
3644
  const handleChange = useEventCallback(event => {
3645
3645
  var _event$target$value;
3646
- const eventWithExtractedValue = _objectSpread$10(_objectSpread$10({}, event), {}, {
3647
- target: _objectSpread$10(_objectSpread$10({}, event.target), {}, {
3646
+ const eventWithExtractedValue = _objectSpread$12(_objectSpread$12({}, event), {}, {
3647
+ target: _objectSpread$12(_objectSpread$12({}, event.target), {}, {
3648
3648
  value: (_event$target$value = event.target.value) === null || _event$target$value === void 0 ? void 0 : _event$target$value.value
3649
3649
  })
3650
3650
  });
@@ -3653,8 +3653,8 @@ const useHandlers = onChange => {
3653
3653
  return [handleInputChange, handleChange];
3654
3654
  };
3655
3655
 
3656
- function ownKeys$$(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3657
- function _objectSpread$$(target) { for (var i = 1; i < arguments.length; i++) { var _context6, _context7; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context6 = ownKeys$$(Object(source), !0)).call(_context6, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context7 = ownKeys$$(Object(source))).call(_context7, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
3656
+ function ownKeys$11(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3657
+ function _objectSpread$11(target) { for (var i = 1; i < arguments.length; i++) { var _context6, _context7; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context6 = ownKeys$11(Object(source), !0)).call(_context6, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context7 = ownKeys$11(Object(source))).call(_context7, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
3658
3658
  const constructPrefixSearchPredicate = function () {
3659
3659
  let prefixSearchFields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
3660
3660
  let lowerBound = arguments.length > 1 ? arguments[1] : undefined;
@@ -3697,7 +3697,7 @@ const useLoadOptions = _ref => {
3697
3697
  }();
3698
3698
  return client.query({
3699
3699
  query,
3700
- variables: _objectSpread$$({
3700
+ variables: _objectSpread$11({
3701
3701
  where
3702
3702
  }, variables),
3703
3703
  context: {
@@ -3751,7 +3751,7 @@ function useCurrentOption(_ref) {
3751
3751
  };
3752
3752
  }
3753
3753
 
3754
- var messages$C = defineMessages({
3754
+ var messages$D = defineMessages({
3755
3755
  noProductTypesFound: {
3756
3756
  id: 'Products.ProductTypePickerInput.noProductTypesFound',
3757
3757
  description: 'The message to display when no product types were found',
@@ -3831,7 +3831,7 @@ const ProductTypePickerInput = _ref => {
3831
3831
  if (isCurrentOptionLoadingFailed) onError(currentOption.error);
3832
3832
  }, [isCurrentOptionLoadingFailed, onError, currentOption]);
3833
3833
  const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
3834
- const tooltipTitle = (_currentOption$data$l = currentOption === null || currentOption === void 0 ? void 0 : (_currentOption$data = currentOption.data) === null || _currentOption$data === void 0 ? void 0 : _currentOption$data.label) !== null && _currentOption$data$l !== void 0 ? _currentOption$data$l : '';
3834
+ const tooltipTitle = (_currentOption$data$l = currentOption === null || currentOption === void 0 || (_currentOption$data = currentOption.data) === null || _currentOption$data === void 0 ? void 0 : _currentOption$data.label) !== null && _currentOption$data$l !== void 0 ? _currentOption$data$l : '';
3835
3835
  return jsx(Constraints.Horizontal, {
3836
3836
  max: "scale",
3837
3837
  children: currentOption.loading ? jsx(CenteredLoadingSpinner, {}) : jsxs(Spacings.Stack, {
@@ -3841,7 +3841,7 @@ const ProductTypePickerInput = _ref => {
3841
3841
  children: jsx(AsyncSelectInput, {
3842
3842
  id: name,
3843
3843
  name: name,
3844
- placeholder: formatMessage(messages$C.placeholder),
3844
+ placeholder: formatMessage(messages$D.placeholder),
3845
3845
  loadOptions: loadOptionsDebounced,
3846
3846
  defaultOptions: [],
3847
3847
  isClearable: isClearable,
@@ -3854,7 +3854,7 @@ const ProductTypePickerInput = _ref => {
3854
3854
  onInputChange: handleInputChange,
3855
3855
  onBlur: onBlur,
3856
3856
  value: currentOption.data,
3857
- noOptionsMessage: () => loadingError ? null : formatMessage(messages$C.noProductTypesFound),
3857
+ noOptionsMessage: () => loadingError ? null : formatMessage(messages$D.noProductTypesFound),
3858
3858
  hasError: hasError || isLoadingFailed
3859
3859
  })
3860
3860
  }), isLoadingFailed && jsx(Text.Body, {
@@ -3866,7 +3866,7 @@ const ProductTypePickerInput = _ref => {
3866
3866
  };
3867
3867
  ProductTypePickerInput.displayName = 'ProductTypePickerInput';
3868
3868
 
3869
- var messages$B = defineMessages({
3869
+ var messages$C = defineMessages({
3870
3870
  noStatesFound: {
3871
3871
  id: 'Products.StatePickerInput.noStatesFound',
3872
3872
  description: 'The message to display when no states were found',
@@ -3950,8 +3950,8 @@ const StatePickerInput = _ref => {
3950
3950
  if (isCurrentOptionLoadingFailed) onError(currentOption.error);
3951
3951
  }, [isCurrentOptionLoadingFailed, onError, currentOption]);
3952
3952
  const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
3953
- const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$B.noStatesFound), [loadingError, formatMessage]);
3954
- const tooltipTitle = (_currentOption$data$l = currentOption === null || currentOption === void 0 ? void 0 : (_currentOption$data = currentOption.data) === null || _currentOption$data === void 0 ? void 0 : _currentOption$data.label) !== null && _currentOption$data$l !== void 0 ? _currentOption$data$l : '';
3953
+ const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$C.noStatesFound), [loadingError, formatMessage]);
3954
+ const tooltipTitle = (_currentOption$data$l = currentOption === null || currentOption === void 0 || (_currentOption$data = currentOption.data) === null || _currentOption$data === void 0 ? void 0 : _currentOption$data.label) !== null && _currentOption$data$l !== void 0 ? _currentOption$data$l : '';
3955
3955
  return jsx(Constraints.Horizontal, {
3956
3956
  max: "scale",
3957
3957
  children: currentOption.loading ? jsx(CenteredLoadingSpinner, {}) : jsxs(Spacings.Stack, {
@@ -3962,7 +3962,7 @@ const StatePickerInput = _ref => {
3962
3962
  id: name,
3963
3963
  name: name,
3964
3964
  horizontalConstraint: "scale",
3965
- placeholder: formatMessage(messages$B.placeholder),
3965
+ placeholder: formatMessage(messages$C.placeholder),
3966
3966
  loadOptions: loadOptionsDebounced,
3967
3967
  defaultOptions: true,
3968
3968
  showOptionGroupDivider: true,
@@ -3988,9 +3988,9 @@ const StatePickerInput = _ref => {
3988
3988
  };
3989
3989
  StatePickerInput.displayName = 'StatePickerInput';
3990
3990
 
3991
- function ownKeys$_(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3992
- function _objectSpread$_(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$_(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$_(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
3993
- const TooltipWrapper = /*#__PURE__*/React.forwardRef((props, ref) => jsx("div", _objectSpread$_({
3991
+ function ownKeys$10(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3992
+ function _objectSpread$10(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$10(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$10(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
3993
+ const TooltipWrapper = /*#__PURE__*/React.forwardRef((props, ref) => jsx("div", _objectSpread$10({
3994
3994
  ref: ref,
3995
3995
  style: {
3996
3996
  display: 'block',
@@ -4128,8 +4128,8 @@ const getPrefixSearchBounds = input => {
4128
4128
  };
4129
4129
 
4130
4130
  const _excluded = ["action"];
4131
- function ownKeys$Z(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4132
- function _objectSpread$Z(target) { for (var i = 1; i < arguments.length; i++) { var _context8, _context9; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context8 = ownKeys$Z(Object(source), !0)).call(_context8, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context9 = ownKeys$Z(Object(source))).call(_context9, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
4131
+ function ownKeys$$(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4132
+ function _objectSpread$$(target) { for (var i = 1; i < arguments.length; i++) { var _context8, _context9; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context8 = ownKeys$$(Object(source), !0)).call(_context8, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context9 = ownKeys$$(Object(source))).call(_context9, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
4133
4133
 
4134
4134
  /**
4135
4135
  * Checks if a value is a LocalizedString
@@ -4151,7 +4151,7 @@ const getIsLocalizedString = maybeLocalizedString => {
4151
4151
  */
4152
4152
  const transformCustomFieldsRawToCustomFields = customFieldsRaw => {
4153
4153
  if (!customFieldsRaw || customFieldsRaw.length === 0) return null;
4154
- return _reduceInstanceProperty(customFieldsRaw).call(customFieldsRaw, (customFields, customField) => _objectSpread$Z(_objectSpread$Z({}, customFields), {}, {
4154
+ return _reduceInstanceProperty(customFieldsRaw).call(customFieldsRaw, (customFields, customField) => _objectSpread$$(_objectSpread$$({}, customFields), {}, {
4155
4155
  [customField.name]: customField.value
4156
4156
  }), {});
4157
4157
  };
@@ -4175,7 +4175,7 @@ function transformLocalizedFieldsForCategory(category) {
4175
4175
  const transformedData = applyTransformedLocalizedFields(category, transformationOptions);
4176
4176
  const parent = category.parent ? transformLocalizedFieldsForCategory(category.parent) : null;
4177
4177
  const ancestors = category.ancestors ? _mapInstanceProperty(_context = category.ancestors).call(_context, ancestor => transformLocalizedFieldsForCategory(ancestor)) : null;
4178
- return _objectSpread$Z(_objectSpread$Z(_objectSpread$Z({}, transformedData), parent ? {
4178
+ return _objectSpread$$(_objectSpread$$(_objectSpread$$({}, transformedData), parent ? {
4179
4179
  parent
4180
4180
  } : {}), ancestors ? {
4181
4181
  ancestors
@@ -4400,7 +4400,7 @@ const convertAction = (actionName, actionPayload) => {
4400
4400
  case 'addAttributeDefinition':
4401
4401
  return {
4402
4402
  [actionName]: {
4403
- attributeDefinition: _objectSpread$Z(_objectSpread$Z({}, actionPayload.attribute), {}, {
4403
+ attributeDefinition: _objectSpread$$(_objectSpread$$({}, actionPayload.attribute), {}, {
4404
4404
  label: transformLocalizedStringToLocalizedField(actionPayload.attribute.label),
4405
4405
  inputTip: transformLocalizedStringToLocalizedField(actionPayload.attribute.inputTip),
4406
4406
  type: createAttributeTypeValue(actionPayload.attribute)
@@ -4496,7 +4496,7 @@ const convertAction = (actionName, actionPayload) => {
4496
4496
  return {
4497
4497
  [actionName]: {
4498
4498
  attributeName: actionPayload.attributeName,
4499
- value: _objectSpread$Z(_objectSpread$Z({}, actionPayload.value), {}, {
4499
+ value: _objectSpread$$(_objectSpread$$({}, actionPayload.value), {}, {
4500
4500
  label: transformLocalizedStringToLocalizedField(actionPayload.value.label)
4501
4501
  })
4502
4502
  }
@@ -4505,7 +4505,7 @@ const convertAction = (actionName, actionPayload) => {
4505
4505
  return {
4506
4506
  [actionName]: {
4507
4507
  attributeName: actionPayload.attributeName,
4508
- newValue: _objectSpread$Z(_objectSpread$Z({}, actionPayload.newValue), {}, {
4508
+ newValue: _objectSpread$$(_objectSpread$$({}, actionPayload.newValue), {}, {
4509
4509
  label: transformLocalizedStringToLocalizedField(actionPayload.newValue.label)
4510
4510
  })
4511
4511
  }
@@ -4532,7 +4532,7 @@ const convertAction = (actionName, actionPayload) => {
4532
4532
  name: transformLocalizedStringToLocalizedField(actionPayload.name),
4533
4533
  taxCategory: actionPayload.taxCategory,
4534
4534
  money: {
4535
- [actionPayload.money.type]: _objectSpread$Z({
4535
+ [actionPayload.money.type]: _objectSpread$$({
4536
4536
  centAmount: actionPayload.money.centAmount,
4537
4537
  currencyCode: actionPayload.money.currencyCode
4538
4538
  }, actionPayload.money.type === PRECISION_TYPES.highPrecision && {
@@ -4567,7 +4567,7 @@ const convertAction = (actionName, actionPayload) => {
4567
4567
  case 'addAddress':
4568
4568
  case 'changeAddress':
4569
4569
  {
4570
- var _actionPayload$addres, _context6, _actionPayload$addres2, _actionPayload$addres3, _actionPayload$addres4;
4570
+ var _actionPayload$addres, _context6, _actionPayload$addres2;
4571
4571
  const _ref3 = ((_actionPayload$addres = actionPayload.address) === null || _actionPayload$addres === void 0 ? void 0 : _actionPayload$addres.custom) || {},
4572
4572
  _ref3$fields = _ref3.fields,
4573
4573
  fields = _ref3$fields === void 0 ? {} : _ref3$fields;
@@ -4580,15 +4580,15 @@ const convertAction = (actionName, actionPayload) => {
4580
4580
  value: _JSON$stringify(value)
4581
4581
  };
4582
4582
  });
4583
- const custom = (_actionPayload$addres2 = actionPayload.address) !== null && _actionPayload$addres2 !== void 0 && (_actionPayload$addres3 = _actionPayload$addres2.custom) !== null && _actionPayload$addres3 !== void 0 && (_actionPayload$addres4 = _actionPayload$addres3.type) !== null && _actionPayload$addres4 !== void 0 && _actionPayload$addres4.id ? {
4583
+ const custom = (_actionPayload$addres2 = actionPayload.address) !== null && _actionPayload$addres2 !== void 0 && (_actionPayload$addres2 = _actionPayload$addres2.custom) !== null && _actionPayload$addres2 !== void 0 && (_actionPayload$addres2 = _actionPayload$addres2.type) !== null && _actionPayload$addres2 !== void 0 && _actionPayload$addres2.id ? {
4584
4584
  type: {
4585
4585
  id: actionPayload.address.custom.type.id
4586
4586
  },
4587
4587
  fields: customFields
4588
4588
  } : null;
4589
4589
  return {
4590
- [actionName]: _objectSpread$Z(_objectSpread$Z({}, actionPayload), {}, {
4591
- address: _objectSpread$Z(_objectSpread$Z({}, omit(actionPayload.address, ['__typename'])), {}, {
4590
+ [actionName]: _objectSpread$$(_objectSpread$$({}, actionPayload), {}, {
4591
+ address: _objectSpread$$(_objectSpread$$({}, omit(actionPayload.address, ['__typename'])), {}, {
4592
4592
  custom
4593
4593
  })
4594
4594
  })
@@ -4634,8 +4634,8 @@ const createGraphQlUpdateActions = actions => _reduceInstanceProperty(actions).c
4634
4634
  return [...previousActions, convertAction(actionName, actionPayload)];
4635
4635
  }, []);
4636
4636
  const extractErrorFromGraphQlResponse = graphQlResponse => {
4637
- var _graphQlResponse$netw, _graphQlResponse$netw2, _graphQlResponse$netw3, _graphQlResponse$grap;
4638
- if (((_graphQlResponse$netw = graphQlResponse.networkError) === null || _graphQlResponse$netw === void 0 ? void 0 : (_graphQlResponse$netw2 = _graphQlResponse$netw.result) === null || _graphQlResponse$netw2 === void 0 ? void 0 : (_graphQlResponse$netw3 = _graphQlResponse$netw2.errors) === null || _graphQlResponse$netw3 === void 0 ? void 0 : _graphQlResponse$netw3.length) > 0) {
4637
+ var _graphQlResponse$netw, _graphQlResponse$grap;
4638
+ if (((_graphQlResponse$netw = graphQlResponse.networkError) === null || _graphQlResponse$netw === void 0 || (_graphQlResponse$netw = _graphQlResponse$netw.result) === null || _graphQlResponse$netw === void 0 || (_graphQlResponse$netw = _graphQlResponse$netw.errors) === null || _graphQlResponse$netw === void 0 ? void 0 : _graphQlResponse$netw.length) > 0) {
4639
4639
  return graphQlResponse.networkError.result.errors;
4640
4640
  }
4641
4641
  if (((_graphQlResponse$grap = graphQlResponse.graphQLErrors) === null || _graphQlResponse$grap === void 0 ? void 0 : _graphQlResponse$grap.length) > 0) {
@@ -4664,26 +4664,26 @@ function omitDeep(obj, fieldsToOmit) {
4664
4664
  return originalOmitDeep(obj, fieldsToOmit);
4665
4665
  }
4666
4666
 
4667
- function ownKeys$Y(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4668
- function _objectSpread$Y(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$Y(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$Y(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
4667
+ function ownKeys$_(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4668
+ function _objectSpread$_(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$_(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$_(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
4669
4669
  function getPriceChannelName(price) {
4670
4670
  var _ref, _price$channel$name, _price$channel, _price$channel2;
4671
4671
  return (_ref = (_price$channel$name = (_price$channel = price.channel) === null || _price$channel === void 0 ? void 0 : _price$channel.name) !== null && _price$channel$name !== void 0 ? _price$channel$name : (_price$channel2 = price.channel) === null || _price$channel2 === void 0 ? void 0 : _price$channel2.key) !== null && _ref !== void 0 ? _ref : null;
4672
4672
  }
4673
4673
  function getDiscountValue(price) {
4674
- var _price$value, _price$value2, _price$discounted, _price$discounted$val;
4674
+ var _price$value, _price$value2, _price$discounted;
4675
4675
  let preciseAmount;
4676
4676
  let fractionedAmount;
4677
4677
  if (((_price$value = price.value) === null || _price$value === void 0 ? void 0 : _price$value.type) === PRECISION_TYPES.highPrecision && price.discounted.value.type === PRECISION_TYPES.highPrecision) {
4678
4678
  preciseAmount = price.value.preciseAmount - price.discounted.value.preciseAmount;
4679
- } else if (((_price$value2 = price.value) === null || _price$value2 === void 0 ? void 0 : _price$value2.type) === PRECISION_TYPES.highPrecision && ((_price$discounted = price.discounted) === null || _price$discounted === void 0 ? void 0 : (_price$discounted$val = _price$discounted.value) === null || _price$discounted$val === void 0 ? void 0 : _price$discounted$val.type) === PRECISION_TYPES.centPrecision) {
4679
+ } else if (((_price$value2 = price.value) === null || _price$value2 === void 0 ? void 0 : _price$value2.type) === PRECISION_TYPES.highPrecision && ((_price$discounted = price.discounted) === null || _price$discounted === void 0 || (_price$discounted = _price$discounted.value) === null || _price$discounted === void 0 ? void 0 : _price$discounted.type) === PRECISION_TYPES.centPrecision) {
4680
4680
  fractionedAmount = getFractionedAmount(price.value) - getFractionedAmount(price.discounted.value);
4681
4681
  }
4682
- return price.discounted ? _objectSpread$Y(_objectSpread$Y({}, price.value), {}, {
4682
+ return price.discounted ? _objectSpread$_(_objectSpread$_({}, price.value), {}, {
4683
4683
  fractionedAmount,
4684
4684
  centAmount: price.value.centAmount - price.discounted.value.centAmount,
4685
4685
  preciseAmount
4686
- }) : _objectSpread$Y(_objectSpread$Y({}, price.value), {}, {
4686
+ }) : _objectSpread$_(_objectSpread$_({}, price.value), {}, {
4687
4687
  centAmount: 0
4688
4688
  });
4689
4689
  }
@@ -4691,17 +4691,17 @@ function getSelectedPrice(price) {
4691
4691
  return price.discounted ? price.discounted : price;
4692
4692
  }
4693
4693
  function getNetUnitPrice(_ref2) {
4694
- var _lineItem$perMethodTa, _filteredPerMethodTax, _filteredPerMethodTax2;
4694
+ var _lineItem$perMethodTa, _filteredPerMethodTax;
4695
4695
  let lineItem = _ref2.lineItem,
4696
4696
  shouldRoundAmount = _ref2.shouldRoundAmount;
4697
4697
  const price = getSelectedPrice(lineItem.price);
4698
- const filteredPerMethodTaxRate = lineItem === null || lineItem === void 0 ? void 0 : (_lineItem$perMethodTa = lineItem.perMethodTaxRate) === null || _lineItem$perMethodTa === void 0 ? void 0 : _filterInstanceProperty(_lineItem$perMethodTa).call(_lineItem$perMethodTa, perMethodTax => {
4699
- var _lineItem$shippingDet, _lineItem$shippingDet2;
4700
- return (lineItem === null || lineItem === void 0 ? void 0 : (_lineItem$shippingDet = lineItem.shippingDetails) === null || _lineItem$shippingDet === void 0 ? void 0 : (_lineItem$shippingDet2 = _lineItem$shippingDet.targets) === null || _lineItem$shippingDet2 === void 0 ? void 0 : _findIndexInstanceProperty(_lineItem$shippingDet2).call(_lineItem$shippingDet2, target => (target === null || target === void 0 ? void 0 : target.shippingMethodKey) === (perMethodTax === null || perMethodTax === void 0 ? void 0 : perMethodTax.shippingMethodKey))) >= 0;
4698
+ const filteredPerMethodTaxRate = lineItem === null || lineItem === void 0 || (_lineItem$perMethodTa = lineItem.perMethodTaxRate) === null || _lineItem$perMethodTa === void 0 ? void 0 : _filterInstanceProperty(_lineItem$perMethodTa).call(_lineItem$perMethodTa, perMethodTax => {
4699
+ var _lineItem$shippingDet;
4700
+ return (lineItem === null || lineItem === void 0 || (_lineItem$shippingDet = lineItem.shippingDetails) === null || _lineItem$shippingDet === void 0 || (_lineItem$shippingDet = _lineItem$shippingDet.targets) === null || _lineItem$shippingDet === void 0 ? void 0 : _findIndexInstanceProperty(_lineItem$shippingDet).call(_lineItem$shippingDet, target => (target === null || target === void 0 ? void 0 : target.shippingMethodKey) === (perMethodTax === null || perMethodTax === void 0 ? void 0 : perMethodTax.shippingMethodKey))) >= 0;
4701
4701
  });
4702
4702
 
4703
4703
  // when shipping mode is multi with the same tax rate
4704
- if ((filteredPerMethodTaxRate === null || filteredPerMethodTaxRate === void 0 ? void 0 : filteredPerMethodTaxRate.length) > 0 && (_filteredPerMethodTax = filteredPerMethodTaxRate[0]) !== null && _filteredPerMethodTax !== void 0 && (_filteredPerMethodTax2 = _filteredPerMethodTax.taxRate) !== null && _filteredPerMethodTax2 !== void 0 && _filteredPerMethodTax2.includedInPrice) {
4704
+ if ((filteredPerMethodTaxRate === null || filteredPerMethodTaxRate === void 0 ? void 0 : filteredPerMethodTaxRate.length) > 0 && (_filteredPerMethodTax = filteredPerMethodTaxRate[0]) !== null && _filteredPerMethodTax !== void 0 && (_filteredPerMethodTax = _filteredPerMethodTax.taxRate) !== null && _filteredPerMethodTax !== void 0 && _filteredPerMethodTax.includedInPrice) {
4705
4705
  var _price$value3, _price$value4;
4706
4706
  const taxRate = filteredPerMethodTaxRate[0].taxRate;
4707
4707
  let centAmount;
@@ -4712,7 +4712,7 @@ function getNetUnitPrice(_ref2) {
4712
4712
  }
4713
4713
  let preciseAmount;
4714
4714
  if (((_price$value4 = price.value) === null || _price$value4 === void 0 ? void 0 : _price$value4.type) === PRECISION_TYPES.highPrecision) preciseAmount = price.value.preciseAmount / (1 + taxRate.amount);
4715
- return _objectSpread$Y(_objectSpread$Y({}, price.value), {}, {
4715
+ return _objectSpread$_(_objectSpread$_({}, price.value), {}, {
4716
4716
  centAmount,
4717
4717
  preciseAmount
4718
4718
  });
@@ -4729,7 +4729,7 @@ function getNetUnitPrice(_ref2) {
4729
4729
  }
4730
4730
  let preciseAmount;
4731
4731
  if (((_price$value6 = price.value) === null || _price$value6 === void 0 ? void 0 : _price$value6.type) === PRECISION_TYPES.highPrecision) preciseAmount = price.value.preciseAmount / (1 + lineItem.taxRate.amount);
4732
- return _objectSpread$Y(_objectSpread$Y({}, price.value), {}, {
4732
+ return _objectSpread$_(_objectSpread$_({}, price.value), {}, {
4733
4733
  centAmount,
4734
4734
  preciseAmount
4735
4735
  });
@@ -4741,7 +4741,7 @@ function getMinimumPricesByCurrencyCode(prices) {
4741
4741
  const currencyCode = price.value.currencyCode;
4742
4742
  const fractionedAmount = getFractionedAmount(price.value);
4743
4743
  if (currencyCode && !isNil$1(fractionedAmount)) {
4744
- if (!minPrices[currencyCode] || fractionedAmount < getFractionedAmount(minPrices[currencyCode])) return _objectSpread$Y(_objectSpread$Y({}, minPrices), {}, {
4744
+ if (!minPrices[currencyCode] || fractionedAmount < getFractionedAmount(minPrices[currencyCode])) return _objectSpread$_(_objectSpread$_({}, minPrices), {}, {
4745
4745
  [currencyCode]: price.value
4746
4746
  });
4747
4747
  }
@@ -4750,8 +4750,8 @@ function getMinimumPricesByCurrencyCode(prices) {
4750
4750
  return _Object$values(minPricesByCurrency);
4751
4751
  }
4752
4752
 
4753
- function ownKeys$X(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4754
- function _objectSpread$X(target) { for (var i = 1; i < arguments.length; i++) { var _context5, _context6; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context5 = ownKeys$X(Object(source), !0)).call(_context5, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context6 = ownKeys$X(Object(source))).call(_context6, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
4753
+ function ownKeys$Z(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4754
+ function _objectSpread$Z(target) { for (var i = 1; i < arguments.length; i++) { var _context5, _context6; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context5 = ownKeys$Z(Object(source), !0)).call(_context5, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context6 = ownKeys$Z(Object(source))).call(_context6, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
4755
4755
  const transformCustomFieldFromGraphQLResponse = resource => {
4756
4756
  var _context, _context4;
4757
4757
  return {
@@ -4762,18 +4762,18 @@ const transformCustomFieldFromGraphQLResponse = resource => {
4762
4762
  key: resource.custom.type.key,
4763
4763
  name: transformLocalizedFieldToLocalizedString(resource.custom.type.nameAllLocales),
4764
4764
  fieldDefinitions: _mapInstanceProperty(_context = resource.custom.type.fieldDefinitions).call(_context, fieldDefinition => {
4765
- var _fieldDefinition$type, _fieldDefinition$type2, _context2, _fieldDefinition$type3, _context3;
4765
+ var _fieldDefinition$type, _context2, _fieldDefinition$type2, _context3;
4766
4766
  return {
4767
4767
  name: fieldDefinition.name,
4768
4768
  required: fieldDefinition.required,
4769
- type: ((_fieldDefinition$type = fieldDefinition.type) === null || _fieldDefinition$type === void 0 ? void 0 : (_fieldDefinition$type2 = _fieldDefinition$type.elementType) === null || _fieldDefinition$type2 === void 0 ? void 0 : _fieldDefinition$type2.name) === 'LocalizedEnum' ? _objectSpread$X(_objectSpread$X({}, fieldDefinition.type), {}, {
4770
- elementType: _objectSpread$X(_objectSpread$X({}, fieldDefinition.type.elementType), {}, {
4769
+ type: ((_fieldDefinition$type = fieldDefinition.type) === null || _fieldDefinition$type === void 0 || (_fieldDefinition$type = _fieldDefinition$type.elementType) === null || _fieldDefinition$type === void 0 ? void 0 : _fieldDefinition$type.name) === 'LocalizedEnum' ? _objectSpread$Z(_objectSpread$Z({}, fieldDefinition.type), {}, {
4770
+ elementType: _objectSpread$Z(_objectSpread$Z({}, fieldDefinition.type.elementType), {}, {
4771
4771
  values: _mapInstanceProperty(_context2 = _valuesInstanceProperty(fieldDefinition.type.elementType)).call(_context2, value => ({
4772
4772
  key: value.key,
4773
4773
  label: transformLocalizedFieldToLocalizedString(value.labelAllLocales)
4774
4774
  }))
4775
4775
  })
4776
- }) : ((_fieldDefinition$type3 = fieldDefinition.type) === null || _fieldDefinition$type3 === void 0 ? void 0 : _fieldDefinition$type3.name) === 'LocalizedEnum' ? _objectSpread$X(_objectSpread$X({}, fieldDefinition.type), {}, {
4776
+ }) : ((_fieldDefinition$type2 = fieldDefinition.type) === null || _fieldDefinition$type2 === void 0 ? void 0 : _fieldDefinition$type2.name) === 'LocalizedEnum' ? _objectSpread$Z(_objectSpread$Z({}, fieldDefinition.type), {}, {
4777
4777
  values: _mapInstanceProperty(_context3 = _valuesInstanceProperty(fieldDefinition.type)).call(_context3, value => ({
4778
4778
  key: value.key,
4779
4779
  label: transformLocalizedFieldToLocalizedString(value.labelAllLocales)
@@ -4784,7 +4784,7 @@ const transformCustomFieldFromGraphQLResponse = resource => {
4784
4784
  })
4785
4785
  }
4786
4786
  },
4787
- fields: _reduceInstanceProperty(_context4 = resource.custom.customFieldsRaw).call(_context4, (fields, customField) => _objectSpread$X(_objectSpread$X({}, fields), {}, {
4787
+ fields: _reduceInstanceProperty(_context4 = resource.custom.customFieldsRaw).call(_context4, (fields, customField) => _objectSpread$Z(_objectSpread$Z({}, fields), {}, {
4788
4788
  [customField.name]: customField.value
4789
4789
  }), {})
4790
4790
  };
@@ -4796,7 +4796,7 @@ const convertProductSelectionFromGraphQl = productSelection => {
4796
4796
  // Incase the product selection is not missing or if the current project dose not yet have access to the feature,
4797
4797
  // in either case we return null
4798
4798
  if (!productSelection) return null;
4799
- return _objectSpread$X(_objectSpread$X({}, applyTransformedLocalizedFields(productSelection, [{
4799
+ return _objectSpread$Z(_objectSpread$Z({}, applyTransformedLocalizedFields(productSelection, [{
4800
4800
  from: 'nameAllLocales',
4801
4801
  to: 'name'
4802
4802
  }])), {}, {
@@ -4819,8 +4819,8 @@ const transformAllToProperNounCase = text => {
4819
4819
  return _mapInstanceProperty(_context = text.split(' ')).call(_context, term => transformToProperNounCase(term)).join(' ');
4820
4820
  };
4821
4821
 
4822
- function ownKeys$W(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4823
- function _objectSpread$W(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys$W(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys$W(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
4822
+ function ownKeys$Y(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4823
+ function _objectSpread$Y(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys$Y(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys$Y(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
4824
4824
  const REGEX_ISO8601 = /(\d{4}-\d{2}-\d{2}[T]\d{2}:\d{2}:\d{2}(\.\d{3}[Z]?))/;
4825
4825
  const REGEX_TIME = /\d{2}:\d{2}/;
4826
4826
  const REGEX_DATE = /\d{4}-\d{2}-\d{2}/;
@@ -4837,7 +4837,7 @@ function filterCustomTypeUpdateActionValues() {
4837
4837
  if (updateAction.action === 'setCustomField' && _Array$isArray(updateAction.value)) {
4838
4838
  const definition = _findInstanceProperty(fieldDefinitions).call(fieldDefinitions, field => field.name === updateAction.name);
4839
4839
  const definitionName = definition.type.elementType.name;
4840
- return _objectSpread$W(_objectSpread$W({}, updateAction), {}, {
4840
+ return _objectSpread$Y(_objectSpread$Y({}, updateAction), {}, {
4841
4841
  value: filterNotDefinedValues(updateAction.value, definitionName)
4842
4842
  });
4843
4843
  }
@@ -4911,8 +4911,8 @@ function omitSetsOfSets() {
4911
4911
 
4912
4912
  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 } } } };
4913
4913
 
4914
- function ownKeys$V(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4915
- function _objectSpread$V(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context4 = ownKeys$V(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context5 = ownKeys$V(Object(source))).call(_context5, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
4914
+ function ownKeys$X(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4915
+ function _objectSpread$X(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context4 = ownKeys$X(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context5 = ownKeys$X(Object(source))).call(_context5, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
4916
4916
  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(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
4917
4917
  function _isNativeReflectConstruct$5() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
4918
4918
  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 } } } };
@@ -4972,7 +4972,7 @@ const mapDataToProps = _ref => {
4972
4972
  return {
4973
4973
  fetchTypeDefinitionsQuery: {
4974
4974
  loading: fetchTypeDefinitionsQuery.loading,
4975
- customFieldDefinitions: uniqBy(_mapInstanceProperty(fieldDefinitionsToOptionsMap).call(fieldDefinitionsToOptionsMap, fieldDefinition => _objectSpread$V({}, applyTransformedLocalizedFields(omitDeep(fieldDefinition, ['__typename'], {
4975
+ customFieldDefinitions: uniqBy(_mapInstanceProperty(fieldDefinitionsToOptionsMap).call(fieldDefinitionsToOptionsMap, fieldDefinition => _objectSpread$X({}, applyTransformedLocalizedFields(omitDeep(fieldDefinition, ['__typename'], {
4976
4976
  isImmutable: true
4977
4977
  }), [{
4978
4978
  from: 'labelAllLocales',
@@ -5000,12 +5000,12 @@ const handlers$2 = {
5000
5000
  }
5001
5001
  };
5002
5002
 
5003
- function ownKeys$U(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5004
- function _objectSpread$U(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context4 = ownKeys$U(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context5 = ownKeys$U(Object(source))).call(_context5, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5003
+ function ownKeys$W(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5004
+ function _objectSpread$W(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context4 = ownKeys$W(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context5 = ownKeys$W(Object(source))).call(_context5, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5005
5005
  const restDocToForm = customFieldsFromRestResponse => {
5006
5006
  return {
5007
5007
  fields: customFieldsFromRestResponse.fields,
5008
- type: _objectSpread$U({
5008
+ type: _objectSpread$W({
5009
5009
  id: customFieldsFromRestResponse.type.id
5010
5010
  }, customFieldsFromRestResponse.type.obj)
5011
5011
  };
@@ -5019,19 +5019,19 @@ const graphQlDocToForm = typeDefinition => {
5019
5019
  key: typeDefinition.key,
5020
5020
  name: transformLocalizedFieldToLocalizedString(typeDefinition.nameAllLocales),
5021
5021
  fieldDefinitions: _mapInstanceProperty(_context = typeDefinition.fieldDefinitions).call(_context, fieldDefinition => {
5022
- var _fieldDefinition$type, _fieldDefinition$type2, _context2, _fieldDefinition$type3, _context3;
5022
+ var _fieldDefinition$type, _context2, _fieldDefinition$type2, _context3;
5023
5023
  return {
5024
5024
  name: fieldDefinition.name,
5025
5025
  required: fieldDefinition.required,
5026
5026
  inputHint: fieldDefinition.inputHint,
5027
- type: ((_fieldDefinition$type = fieldDefinition.type) === null || _fieldDefinition$type === void 0 ? void 0 : (_fieldDefinition$type2 = _fieldDefinition$type.elementType) === null || _fieldDefinition$type2 === void 0 ? void 0 : _fieldDefinition$type2.name) === 'LocalizedEnum' ? _objectSpread$U(_objectSpread$U({}, fieldDefinition.type), {}, {
5028
- elementType: _objectSpread$U(_objectSpread$U({}, fieldDefinition.type.elementType), {}, {
5027
+ type: ((_fieldDefinition$type = fieldDefinition.type) === null || _fieldDefinition$type === void 0 || (_fieldDefinition$type = _fieldDefinition$type.elementType) === null || _fieldDefinition$type === void 0 ? void 0 : _fieldDefinition$type.name) === 'LocalizedEnum' ? _objectSpread$W(_objectSpread$W({}, fieldDefinition.type), {}, {
5028
+ elementType: _objectSpread$W(_objectSpread$W({}, fieldDefinition.type.elementType), {}, {
5029
5029
  values: _mapInstanceProperty(_context2 = _valuesInstanceProperty(fieldDefinition.type.elementType)).call(_context2, value => ({
5030
5030
  key: value.key,
5031
5031
  label: transformLocalizedFieldToLocalizedString(value.labelAllLocales)
5032
5032
  }))
5033
5033
  })
5034
- }) : ((_fieldDefinition$type3 = fieldDefinition.type) === null || _fieldDefinition$type3 === void 0 ? void 0 : _fieldDefinition$type3.name) === 'LocalizedEnum' ? _objectSpread$U(_objectSpread$U({}, fieldDefinition.type), {}, {
5034
+ }) : ((_fieldDefinition$type2 = fieldDefinition.type) === null || _fieldDefinition$type2 === void 0 ? void 0 : _fieldDefinition$type2.name) === 'LocalizedEnum' ? _objectSpread$W(_objectSpread$W({}, fieldDefinition.type), {}, {
5035
5035
  values: _mapInstanceProperty(_context3 = _valuesInstanceProperty(fieldDefinition.type)).call(_context3, value => ({
5036
5036
  key: value.key,
5037
5037
  label: transformLocalizedFieldToLocalizedString(value.labelAllLocales)
@@ -5047,7 +5047,7 @@ const formToRestDoc = formCustomFields => ({
5047
5047
  type: {
5048
5048
  id: formCustomFields.type.id,
5049
5049
  typeId: 'type',
5050
- obj: _objectSpread$U({}, formCustomFields.type)
5050
+ obj: _objectSpread$W({}, formCustomFields.type)
5051
5051
  },
5052
5052
  fields: formCustomFields.fields
5053
5053
  });
@@ -5055,7 +5055,7 @@ const formToGraphQlDoc = formCustomFields => ({
5055
5055
  type: {
5056
5056
  id: formCustomFields.type.id,
5057
5057
  typeId: 'type',
5058
- obj: _objectSpread$U({}, omit(formCustomFields.type, ['id']))
5058
+ obj: _objectSpread$W({}, omit(formCustomFields.type, ['id']))
5059
5059
  },
5060
5060
  fields: omitBy(formCustomFields.fields || {}, isNil$1)
5061
5061
  });
@@ -5071,7 +5071,7 @@ const createEmptyCustomFields = typeDefinition => ({
5071
5071
  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(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
5072
5072
  function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
5073
5073
  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 } } } };
5074
- const customizableResources = ['asset', 'address', 'business-unit', 'category', 'channel', 'customer', 'customer-group', 'order', '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'];
5074
+ 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'];
5075
5075
  const emptyTypeDefinitions = {
5076
5076
  total: 0,
5077
5077
  count: 0,
@@ -5129,7 +5129,7 @@ const createGraphQlOptions = ownProps => {
5129
5129
  }
5130
5130
  };
5131
5131
  };
5132
- var customFieldTypeDefinitionsConnector = hoistNonReactStatics(graphql$1(FetchTypeDefinitionsWithNamesQuery, {
5132
+ var CustomFieldTypeDefinitionsConnector$1 = hoistNonReactStatics(graphql$1(FetchTypeDefinitionsWithNamesQuery, {
5133
5133
  name: 'fetchTypeDefinitionsQuery',
5134
5134
  skip: ownProps => ownProps.isDisabled,
5135
5135
  options: createGraphQlOptions
@@ -5186,8 +5186,8 @@ const REFERENCED_TYPES = {
5186
5186
  zone: 'zone'
5187
5187
  };
5188
5188
 
5189
- function ownKeys$T(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5190
- function _objectSpread$T(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys$T(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys$T(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5189
+ function ownKeys$V(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5190
+ function _objectSpread$V(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys$V(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys$V(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5191
5191
  const extractDuplicatedValues = (values, type, language, languages) => {
5192
5192
  let validatedValues = [];
5193
5193
  if (type.name.toLowerCase() === 'money') {
@@ -5254,8 +5254,8 @@ function validations (formValues, language, languages) {
5254
5254
  var _context2;
5255
5255
  // Collect all required and set type fields
5256
5256
  const fieldDefinitionsToValidate = _filterInstanceProperty(_context2 = formValues.custom.type.fieldDefinitions).call(_context2, fieldDefinition => fieldDefinition.required || fieldDefinition.type.name.toLowerCase() === 'set');
5257
- const errors = _reduceInstanceProperty(fieldDefinitionsToValidate).call(fieldDefinitionsToValidate, (acc, fieldDefinition) => _objectSpread$T(_objectSpread$T({}, acc), {}, {
5258
- [fieldDefinition.name]: _objectSpread$T(_objectSpread$T({}, setMissingIfRequired(formValues, fieldDefinition)), setDuplicatedIfSet(formValues, fieldDefinition, language, languages))
5257
+ const errors = _reduceInstanceProperty(fieldDefinitionsToValidate).call(fieldDefinitionsToValidate, (acc, fieldDefinition) => _objectSpread$V(_objectSpread$V({}, acc), {}, {
5258
+ [fieldDefinition.name]: _objectSpread$V(_objectSpread$V({}, setMissingIfRequired(formValues, fieldDefinition)), setDuplicatedIfSet(formValues, fieldDefinition, language, languages))
5259
5259
  }), {});
5260
5260
  return withoutEmptyErrorsByField(errors);
5261
5261
  }
@@ -5282,8 +5282,8 @@ function CustomTextInput(props) {
5282
5282
  }
5283
5283
  CustomTextInput.displayName = 'CustomTextInput';
5284
5284
 
5285
- function ownKeys$S(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5286
- function _objectSpread$S(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$S(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$S(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5285
+ function ownKeys$U(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5286
+ function _objectSpread$U(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$U(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$U(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5287
5287
  const getSubfieldLanguage = subfieldName => {
5288
5288
  const lastDotIndex = _lastIndexOfInstanceProperty(subfieldName).call(subfieldName, '.');
5289
5289
  return subfieldName.substring(lastDotIndex + 1);
@@ -5307,7 +5307,7 @@ function CustomLocalizedTextInput(props) {
5307
5307
  // as a whole.
5308
5308
 
5309
5309
  const fieldLanguage = getSubfieldLanguage(subfieldName);
5310
- const newValue = _objectSpread$S(_objectSpread$S({}, props.value), {}, {
5310
+ const newValue = _objectSpread$U(_objectSpread$U({}, props.value), {}, {
5311
5311
  [fieldLanguage]: rawValue
5312
5312
  });
5313
5313
  const nullifiedIfNeeded = LocalizedTextInput.isEmpty(newValue) ? undefined : newValue;
@@ -5374,21 +5374,21 @@ function CustomNumberInput(props) {
5374
5374
  }
5375
5375
  CustomNumberInput.displayName = 'CustomNumberInput';
5376
5376
 
5377
- function ownKeys$R(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5378
- function _objectSpread$R(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$R(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$R(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5377
+ function ownKeys$T(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5378
+ function _objectSpread$T(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$T(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$T(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5379
5379
  var styles$f = {
5380
5380
  "container": "custom-money-input-module__container___1fdO2"
5381
5381
  };
5382
5382
  const fixCurrencyCode = (value, currencies) => {
5383
5383
  if (value.currencyCode) return value;
5384
5384
  const firstCurrency = currencies[0];
5385
- return _objectSpread$R(_objectSpread$R({}, value), {}, {
5385
+ return _objectSpread$T(_objectSpread$T({}, value), {}, {
5386
5386
  currencyCode: firstCurrency
5387
5387
  });
5388
5388
  };
5389
5389
  const fixAmount = value => {
5390
5390
  if (!value.amount) {
5391
- return _objectSpread$R(_objectSpread$R({}, value), {}, {
5391
+ return _objectSpread$T(_objectSpread$T({}, value), {}, {
5392
5392
  amount: '0'
5393
5393
  });
5394
5394
  }
@@ -5430,7 +5430,7 @@ function CustomMoneyInput(props) {
5430
5430
  }
5431
5431
  const handleChange = makeChangeHandler((rawValue, subfieldName) => {
5432
5432
  const isAmount = _endsWithInstanceProperty(subfieldName).call(subfieldName, 'amount');
5433
- const newValue = _objectSpread$R({}, internalValue.current);
5433
+ const newValue = _objectSpread$T({}, internalValue.current);
5434
5434
  if (isAmount) newValue.amount = rawValue;else newValue.currencyCode = rawValue;
5435
5435
  const fixedValue = fixEnteredValue(newValue, internalValue.current, currencies);
5436
5436
  internalValue.current = fixedValue;
@@ -5711,7 +5711,7 @@ function ReferenceSearch(props) {
5711
5711
  });
5712
5712
  }
5713
5713
 
5714
- const messages$A = defineMessages({
5714
+ const messages$B = defineMessages({
5715
5715
  placeholder: {
5716
5716
  id: 'CategoryReferenceSearch.placeholder',
5717
5717
  description: 'Placeholder for search for a category',
@@ -5744,8 +5744,8 @@ const messages$A = defineMessages({
5744
5744
  }
5745
5745
  });
5746
5746
 
5747
- function ownKeys$Q(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5748
- function _objectSpread$Q(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys$Q(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys$Q(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5747
+ function ownKeys$S(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5748
+ function _objectSpread$S(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys$S(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys$S(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5749
5749
  function Option$1(props) {
5750
5750
  var _context, _context2;
5751
5751
  const _useApplicationContex = useApplicationContext(applicationContext => ({
@@ -5757,7 +5757,7 @@ function Option$1(props) {
5757
5757
  const _useIntl = useIntl(),
5758
5758
  formatMessage = _useIntl.formatMessage;
5759
5759
  const category = props.data;
5760
- return jsx(AsyncSelectInput.Option, _objectSpread$Q(_objectSpread$Q({}, props), {}, {
5760
+ return jsx(AsyncSelectInput.Option, _objectSpread$S(_objectSpread$S({}, props), {}, {
5761
5761
  children: jsxs("div", {
5762
5762
  "data-testid": "category-option",
5763
5763
  children: [jsx(Text.Body, {
@@ -5768,7 +5768,7 @@ function Option$1(props) {
5768
5768
  fallbackOrder: languages
5769
5769
  })
5770
5770
  }), category.parent && jsx(Text.Detail, {
5771
- children: _concatInstanceProperty(_context = "".concat(formatMessage(messages$A.parentCategory), ": ")).call(_context, formatLocalizedString(category.parent, {
5771
+ children: _concatInstanceProperty(_context = "".concat(formatMessage(messages$B.parentCategory), ": ")).call(_context, formatLocalizedString(category.parent, {
5772
5772
  key: 'name',
5773
5773
  locale: language,
5774
5774
  fallbackOrder: languages
@@ -5780,14 +5780,14 @@ function Option$1(props) {
5780
5780
  fallbackOrder: languages
5781
5781
  }))
5782
5782
  }), category.externalId && jsx(Text.Detail, {
5783
- children: _concatInstanceProperty(_context2 = "".concat(formatMessage(messages$A.externalId), ": ")).call(_context2, category.externalId || NO_VALUE_FALLBACK)
5783
+ children: _concatInstanceProperty(_context2 = "".concat(formatMessage(messages$B.externalId), ": ")).call(_context2, category.externalId || NO_VALUE_FALLBACK)
5784
5784
  })]
5785
5785
  })
5786
5786
  }));
5787
5787
  }
5788
5788
 
5789
- function ownKeys$P(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5790
- function _objectSpread$P(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$P(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$P(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5789
+ function ownKeys$R(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5790
+ function _objectSpread$R(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$R(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$R(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5791
5791
  const filterOption$1 = () => true;
5792
5792
  function CategoryReferenceSearch(props) {
5793
5793
  const _useIntl = useIntl(),
@@ -5799,7 +5799,7 @@ function CategoryReferenceSearch(props) {
5799
5799
  })),
5800
5800
  language = _useApplicationContex.language,
5801
5801
  languages = _useApplicationContex.languages;
5802
- const mapItemToOption = useCallback(category => _objectSpread$P(_objectSpread$P({}, category), {}, {
5802
+ const mapItemToOption = useCallback(category => _objectSpread$R(_objectSpread$R({}, category), {}, {
5803
5803
  value: category.id,
5804
5804
  label: formatLocalizedString(category, {
5805
5805
  key: 'name',
@@ -5817,7 +5817,7 @@ function CategoryReferenceSearch(props) {
5817
5817
  }), [apolloClient]);
5818
5818
  return jsx(ReferenceSearch, {
5819
5819
  id: props.id,
5820
- components: _objectSpread$P({
5820
+ components: _objectSpread$R({
5821
5821
  Option: Option$1
5822
5822
  }, props.components),
5823
5823
  isClearable: props.isClearable,
@@ -5828,10 +5828,10 @@ function CategoryReferenceSearch(props) {
5828
5828
  onBlur: props.onBlur,
5829
5829
  onChange: props.onChange,
5830
5830
  value: props.value,
5831
- placeholderLabel: formatMessage(messages$A.placeholder),
5832
- searchPromptLabel: formatMessage(messages$A.searchPrompt),
5833
- noResultsLabel: formatMessage(messages$A.noResults),
5834
- referenceIsMissingLabel: formatMessage(messages$A.isMissing),
5831
+ placeholderLabel: formatMessage(messages$B.placeholder),
5832
+ searchPromptLabel: formatMessage(messages$B.searchPrompt),
5833
+ noResultsLabel: formatMessage(messages$B.noResults),
5834
+ referenceIsMissingLabel: formatMessage(messages$B.isMissing),
5835
5835
  mapItemToOption: mapItemToOption,
5836
5836
  loadItemsBySearchTerm: loadItemsBySearchTerm,
5837
5837
  loadItemsByIds: loadItemsByIds,
@@ -5907,7 +5907,7 @@ function getCartDiscountById(apolloClient, options) {
5907
5907
  });
5908
5908
  }
5909
5909
 
5910
- const messages$z = defineMessages({
5910
+ const messages$A = defineMessages({
5911
5911
  placeholder: {
5912
5912
  id: 'CartDiscountReferenceSearch.placeholder',
5913
5913
  description: 'Placeholder for search for a cart discount',
@@ -5935,8 +5935,8 @@ const messages$z = defineMessages({
5935
5935
  }
5936
5936
  });
5937
5937
 
5938
- function ownKeys$O(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5939
- function _objectSpread$O(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$O(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$O(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5938
+ function ownKeys$Q(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5939
+ function _objectSpread$Q(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$Q(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$Q(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5940
5940
  function Option(props) {
5941
5941
  const _useApplicationContex = useApplicationContext(applicationContext => ({
5942
5942
  language: applicationContext.dataLocale,
@@ -5947,7 +5947,7 @@ function Option(props) {
5947
5947
  const _useIntl = useIntl(),
5948
5948
  formatMessage = _useIntl.formatMessage;
5949
5949
  const cartDiscount = props.data;
5950
- return jsx(AsyncSelectInput.Option, _objectSpread$O(_objectSpread$O({}, props), {}, {
5950
+ return jsx(AsyncSelectInput.Option, _objectSpread$Q(_objectSpread$Q({}, props), {}, {
5951
5951
  children: jsxs("div", {
5952
5952
  "data-testid": "cart-discount-option",
5953
5953
  children: [jsx(Text.Detail, {
@@ -5958,14 +5958,14 @@ function Option(props) {
5958
5958
  fallbackOrder: languages
5959
5959
  })
5960
5960
  }), jsxs(Text.Detail, {
5961
- children: [formatMessage(messages$z.key), ": ", cartDiscount.key || NO_VALUE_FALLBACK]
5961
+ children: [formatMessage(messages$A.key), ": ", cartDiscount.key || NO_VALUE_FALLBACK]
5962
5962
  })]
5963
5963
  })
5964
5964
  }));
5965
5965
  }
5966
5966
 
5967
- function ownKeys$N(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5968
- function _objectSpread$N(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$N(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$N(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5967
+ function ownKeys$P(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
5968
+ function _objectSpread$P(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$P(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$P(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5969
5969
  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 } } } };
5970
5970
  const returnNullIfEmpty = value => value && value.id === '' ? null : value;
5971
5971
  const filterOption = (option, text) => {
@@ -5991,7 +5991,7 @@ function CartDiscountReferenceSearch(props) {
5991
5991
  })),
5992
5992
  language = _useApplicationContex.language,
5993
5993
  languages = _useApplicationContex.languages;
5994
- const mapItemToOption = useCallback(cartDiscount => _objectSpread$N(_objectSpread$N({}, cartDiscount), {}, {
5994
+ const mapItemToOption = useCallback(cartDiscount => _objectSpread$P(_objectSpread$P({}, cartDiscount), {}, {
5995
5995
  value: cartDiscount.id,
5996
5996
  key: cartDiscount.key,
5997
5997
  label: formatLocalizedString(cartDiscount, {
@@ -6034,10 +6034,10 @@ function CartDiscountReferenceSearch(props) {
6034
6034
  onBlur: props.onBlur,
6035
6035
  onChange: props.onChange,
6036
6036
  value: returnNullIfEmpty(props.value),
6037
- placeholderLabel: formatMessage(messages$z.placeholder),
6038
- searchPromptLabel: formatMessage(messages$z.searchPrompt),
6039
- noResultsLabel: formatMessage(messages$z.noResults),
6040
- referenceIsMissingLabel: formatMessage(messages$z.isMissing),
6037
+ placeholderLabel: formatMessage(messages$A.placeholder),
6038
+ searchPromptLabel: formatMessage(messages$A.searchPrompt),
6039
+ noResultsLabel: formatMessage(messages$A.noResults),
6040
+ referenceIsMissingLabel: formatMessage(messages$A.isMissing),
6041
6041
  mapItemToOption: mapItemToOption,
6042
6042
  loadItemsBySearchTerm: loadItemsBySearchTerm,
6043
6043
  loadItemsByIds: loadItemsByIds,
@@ -6098,7 +6098,7 @@ function CustomCartDiscountReferenceInput(props) {
6098
6098
  });
6099
6099
  }
6100
6100
 
6101
- var messages$y = defineMessages({
6101
+ var messages$z = defineMessages({
6102
6102
  noProductsFound: {
6103
6103
  id: 'Shared.ProductPickerInput.noProductsFound',
6104
6104
  description: 'The message to display when no products were found',
@@ -6187,7 +6187,7 @@ const ProductPickerInput = _ref => {
6187
6187
  if (isCurrentOptionLoadingFailed) onError(currentOption.error);
6188
6188
  }, [isCurrentOptionLoadingFailed, onError, currentOption]);
6189
6189
  const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
6190
- const tooltipTitle = (_currentOption$data$l = currentOption === null || currentOption === void 0 ? void 0 : (_currentOption$data = currentOption.data) === null || _currentOption$data === void 0 ? void 0 : _currentOption$data.label) !== null && _currentOption$data$l !== void 0 ? _currentOption$data$l : '';
6190
+ const tooltipTitle = (_currentOption$data$l = currentOption === null || currentOption === void 0 || (_currentOption$data = currentOption.data) === null || _currentOption$data === void 0 ? void 0 : _currentOption$data.label) !== null && _currentOption$data$l !== void 0 ? _currentOption$data$l : '';
6191
6191
  return jsx(Constraints.Horizontal, {
6192
6192
  max: "scale",
6193
6193
  children: currentOption.loading ? jsx(CenteredLoadingSpinner, {}) : jsxs(Spacings.Stack, {
@@ -6197,7 +6197,7 @@ const ProductPickerInput = _ref => {
6197
6197
  children: jsx(AsyncSelectInput, {
6198
6198
  id: name,
6199
6199
  name: name,
6200
- placeholder: formatMessage(messages$y.placeholder),
6200
+ placeholder: formatMessage(messages$z.placeholder),
6201
6201
  loadOptions: loadOptionsDebounced,
6202
6202
  defaultOptions: [],
6203
6203
  isClearable: isClearable,
@@ -6211,7 +6211,7 @@ const ProductPickerInput = _ref => {
6211
6211
  onInputChange: handleInputChange,
6212
6212
  onBlur: onBlur,
6213
6213
  value: currentOption.data,
6214
- noOptionsMessage: () => isLoadingFailed ? null : formatMessage(messages$y.noProductsFound),
6214
+ noOptionsMessage: () => isLoadingFailed ? null : formatMessage(messages$z.noProductsFound),
6215
6215
  hasError: hasError || isLoadingFailed
6216
6216
  })
6217
6217
  }), isLoadingFailed && showLoadingErrorMessage && jsx(Text.Body, {
@@ -6461,8 +6461,8 @@ function CustomBooleanInputSet(props) {
6461
6461
  }
6462
6462
  CustomBooleanInputSet.displayName = 'CustomBooleanInputSet';
6463
6463
 
6464
- function ownKeys$M(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6465
- function _objectSpread$M(target) { for (var i = 1; i < arguments.length; i++) { var _context7, _context8; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context7 = ownKeys$M(Object(source), !0)).call(_context7, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context8 = ownKeys$M(Object(source))).call(_context8, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
6464
+ function ownKeys$O(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6465
+ function _objectSpread$O(target) { for (var i = 1; i < arguments.length; i++) { var _context7, _context8; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context7 = ownKeys$O(Object(source), !0)).call(_context7, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context8 = ownKeys$O(Object(source))).call(_context8, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
6466
6466
  const getTypeName = type => type.name.toLowerCase();
6467
6467
  const findLabel = (enumType, key) => {
6468
6468
  var _enumType$values$find, _enumType$values$find2, _context;
@@ -6511,7 +6511,7 @@ const attributeDefinitionToFieldDefinition = attributeDefinition => ({
6511
6511
  const nameValuePairsToMap = pairs => _reduceInstanceProperty(pairs).call(pairs, (result, _ref2) => {
6512
6512
  let name = _ref2.name,
6513
6513
  value = _ref2.value;
6514
- return _objectSpread$M(_objectSpread$M({}, result), {}, {
6514
+ return _objectSpread$O(_objectSpread$O({}, result), {}, {
6515
6515
  [name]: value
6516
6516
  });
6517
6517
  }, {});
@@ -6595,7 +6595,7 @@ function ProductAttributeInput(props) {
6595
6595
  ProductAttributeInput.displayName = 'ProductAttributeInput';
6596
6596
 
6597
6597
  // eslint-disable-next-line import/prefer-default-export
6598
- const messages$x = defineMessages({
6598
+ const messages$y = defineMessages({
6599
6599
  aboveFifthLevelWarning: {
6600
6600
  id: 'attributeInputByType.nestedAttributes.aboveFifthLevelWarning',
6601
6601
  description: 'Warning message shown when nested attribute are above the fifth level',
@@ -6608,23 +6608,23 @@ const messages$x = defineMessages({
6608
6608
  }
6609
6609
  });
6610
6610
 
6611
- function ownKeys$L(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6612
- function _objectSpread$L(target) { for (var i = 1; i < arguments.length; i++) { var _context6, _context7; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context6 = ownKeys$L(Object(source), !0)).call(_context6, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context7 = ownKeys$L(Object(source))).call(_context7, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
6611
+ function ownKeys$N(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6612
+ function _objectSpread$N(target) { for (var i = 1; i < arguments.length; i++) { var _context6, _context7; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context6 = ownKeys$N(Object(source), !0)).call(_context6, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context7 = ownKeys$N(Object(source))).call(_context7, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
6613
6613
  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 } } } };
6614
6614
  const mapAttributeDefinition = definition => {
6615
- var _context, _definition$type, _definition$type$elem, _context2, _context3, _definition$type2, _context4;
6616
- return _objectSpread$L(_objectSpread$L({}, definition), {}, {
6615
+ var _context, _definition$type, _context2, _context3, _definition$type2, _context4;
6616
+ return _objectSpread$N(_objectSpread$N({}, definition), {}, {
6617
6617
  required: definition.isRequired,
6618
6618
  inputTip: transformLocalizedFieldToLocalizedString(definition.inputTipAllLocales),
6619
6619
  label: transformLocalizedFieldToLocalizedString(definition.labelAllLocales),
6620
- type: _includesInstanceProperty(_context = ['enum', 'lenum']).call(_context, (_definition$type = definition.type) === null || _definition$type === void 0 ? void 0 : (_definition$type$elem = _definition$type.elementType) === null || _definition$type$elem === void 0 ? void 0 : _definition$type$elem.name) ? _objectSpread$L(_objectSpread$L({}, definition.type), {}, {
6621
- elementType: _objectSpread$L(_objectSpread$L({}, definition.type.elementType), {}, {
6620
+ type: _includesInstanceProperty(_context = ['enum', 'lenum']).call(_context, (_definition$type = definition.type) === null || _definition$type === void 0 || (_definition$type = _definition$type.elementType) === null || _definition$type === void 0 ? void 0 : _definition$type.name) ? _objectSpread$N(_objectSpread$N({}, definition.type), {}, {
6621
+ elementType: _objectSpread$N(_objectSpread$N({}, definition.type.elementType), {}, {
6622
6622
  values: _mapInstanceProperty(_context2 = _valuesInstanceProperty(definition.type.elementType).results).call(_context2, value => ({
6623
6623
  key: value.key,
6624
6624
  label: value.label || transformLocalizedFieldToLocalizedString(value.labelAllLocales)
6625
6625
  }))
6626
6626
  })
6627
- }) : _includesInstanceProperty(_context3 = ['enum', 'lenum']).call(_context3, (_definition$type2 = definition.type) === null || _definition$type2 === void 0 ? void 0 : _definition$type2.name) ? _objectSpread$L(_objectSpread$L({}, definition.type), {}, {
6627
+ }) : _includesInstanceProperty(_context3 = ['enum', 'lenum']).call(_context3, (_definition$type2 = definition.type) === null || _definition$type2 === void 0 ? void 0 : _definition$type2.name) ? _objectSpread$N(_objectSpread$N({}, definition.type), {}, {
6628
6628
  values: _mapInstanceProperty(_context4 = _valuesInstanceProperty(definition.type).results).call(_context4, value => ({
6629
6629
  key: value.key,
6630
6630
  label: value.label || transformLocalizedFieldToLocalizedString(value.labelAllLocales)
@@ -6665,7 +6665,7 @@ function useNestedProductType(fieldDefinition) {
6665
6665
  };
6666
6666
  }
6667
6667
 
6668
- var messages$w = defineMessages({
6668
+ var messages$x = defineMessages({
6669
6669
  updateButton: {
6670
6670
  id: 'NestedAttributes.Details.updateButton',
6671
6671
  description: 'Update button label',
@@ -6745,14 +6745,14 @@ var messages$w = defineMessages({
6745
6745
 
6746
6746
  const NestingLevelContext = /*#__PURE__*/createContext(0);
6747
6747
 
6748
- function ownKeys$K(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6749
- function _objectSpread$K(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$K(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$K(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
6748
+ function ownKeys$M(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6749
+ function _objectSpread$M(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$M(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$M(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
6750
6750
  const EditButton = props => {
6751
6751
  const _useIntl = useIntl(),
6752
6752
  formatMessage = _useIntl.formatMessage;
6753
6753
  return jsx(Tooltip, {
6754
6754
  placement: "top",
6755
- title: formatMessage(messages$w.editTooltip),
6755
+ title: formatMessage(messages$x.editTooltip),
6756
6756
  children: jsx(IconButton, {
6757
6757
  label: "Edit",
6758
6758
  isDisabled: props.isDisabled,
@@ -6768,12 +6768,12 @@ const DropChangesConfirmation = props => {
6768
6768
  formatMessage = _useIntl2.formatMessage;
6769
6769
  return jsx(ConfirmationDialog, {
6770
6770
  isOpen: props.isOpen || false,
6771
- title: formatMessage(messages$w.confirmationDialogTitle),
6772
- labelPrimary: formatMessage(messages$w.nestedAttributesConfirmLabel),
6771
+ title: formatMessage(messages$x.confirmationDialogTitle),
6772
+ labelPrimary: formatMessage(messages$x.nestedAttributesConfirmLabel),
6773
6773
  onConfirm: props.onConfirm,
6774
6774
  onCancel: props.onCancel,
6775
6775
  children: jsx(Text.Body, {
6776
- intlMessage: messages$w.confirmationDialogBody
6776
+ intlMessage: messages$x.confirmationDialogBody
6777
6777
  })
6778
6778
  });
6779
6779
  };
@@ -6798,11 +6798,11 @@ const NestedAttributeModalPage = props => {
6798
6798
  children: [jsx(SecondaryButton, {
6799
6799
  isDisabled: !formik.dirty,
6800
6800
  iconLeft: jsx(RevertIcon, {}),
6801
- label: formatMessage(messages$w.cancelButton),
6801
+ label: formatMessage(messages$x.cancelButton),
6802
6802
  onClick: formik.resetForm
6803
6803
  }), jsx(CustomFormModalPage.FormPrimaryButton, {
6804
6804
  isDisabled: !formik.dirty,
6805
- label: formatMessage(messages$w.updateButton),
6805
+ label: formatMessage(messages$x.updateButton),
6806
6806
  onClick: formik.handleSubmit
6807
6807
  })]
6808
6808
  }),
@@ -6831,7 +6831,7 @@ NestedAttributeModalPage.displayName = 'NestedAttributeModalPage';
6831
6831
  const MaxNestingLevelReached = () => jsx(FieldLabel, {
6832
6832
  title: "",
6833
6833
  hint: jsx(Text.Body, {
6834
- intlMessage: messages$x.aboveFifthLevelWarning
6834
+ intlMessage: messages$y.aboveFifthLevelWarning
6835
6835
  }),
6836
6836
  hintIcon: jsx(WarningIcon, {})
6837
6837
  });
@@ -6843,7 +6843,7 @@ const NestedInputControls = props => {
6843
6843
  if (nextNestingLevel >= 6) return jsx(MaxNestingLevelReached, {});
6844
6844
  const hasAttributes = props.productType.attributeDefinitions.length > 0;
6845
6845
  if (!hasAttributes) return jsx(Text.Body, {
6846
- intlMessage: messages$w.emptyProductType,
6846
+ intlMessage: messages$x.emptyProductType,
6847
6847
  tone: "secondary"
6848
6848
  });
6849
6849
  return jsxs(Spacings.Inline, {
@@ -6857,7 +6857,7 @@ const NestedInputControls = props => {
6857
6857
  children: props.productType.name
6858
6858
  }), props.isEmpty && jsx("span", {
6859
6859
  children: jsx(Tag, {
6860
- children: formatMessage(messages$x.emptySetItem)
6860
+ children: formatMessage(messages$y.emptySetItem)
6861
6861
  })
6862
6862
  })]
6863
6863
  }), jsx(EditButton, {
@@ -6893,13 +6893,13 @@ const CustomNestedInput = /*#__PURE__*/memo(props => {
6893
6893
  const valuesAsMap = nameValuePairsToMap(value);
6894
6894
  const initialValues = omitUnknownValues(valuesAsMap, attributeDefinitionsAsMap);
6895
6895
  const openNestedAttributesForm = () => {
6896
- if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$K(_objectSpread$K({}, parentFormik.status), {}, {
6896
+ if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$M(_objectSpread$M({}, parentFormik.status), {}, {
6897
6897
  hideSaveToolbar: true
6898
6898
  }));
6899
6899
  attributesForm.openModal();
6900
6900
  };
6901
6901
  const closeNestedAttributesForm = () => {
6902
- if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$K(_objectSpread$K({}, parentFormik.status), {}, {
6902
+ if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$M(_objectSpread$M({}, parentFormik.status), {}, {
6903
6903
  hideSaveToolbar: false
6904
6904
  }));
6905
6905
  attributesForm.closeModal();
@@ -6919,7 +6919,7 @@ const CustomNestedInput = /*#__PURE__*/memo(props => {
6919
6919
  if (nestingLevel !== 0) parentFormik.submitForm();else showNotification({
6920
6920
  kind: 'success',
6921
6921
  domain: DOMAINS.SIDE,
6922
- text: formatMessage(messages$w.attributeUpdateSucceeded)
6922
+ text: formatMessage(messages$x.attributeUpdateSucceeded)
6923
6923
  });
6924
6924
  setSubmitting(false);
6925
6925
  },
@@ -7003,8 +7003,8 @@ const SetButtons = props => {
7003
7003
  };
7004
7004
  SetButtons.displayName = 'SetButtons';
7005
7005
 
7006
- function ownKeys$J(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7007
- function _objectSpread$J(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys$J(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys$J(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
7006
+ function ownKeys$L(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7007
+ function _objectSpread$L(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys$L(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys$L(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
7008
7008
  const getDuplicateErrors = setValues => {
7009
7009
  /* eslint-disable no-plusplus */
7010
7010
  const result = [];
@@ -7061,7 +7061,7 @@ function CustomInputSet(props) {
7061
7061
  touched = _useFormikContext.touched,
7062
7062
  isSubmitting = _useFormikContext.isSubmitting,
7063
7063
  dirty = _useFormikContext.dirty;
7064
- const itemFieldDefinition = _objectSpread$J(_objectSpread$J({}, props.fieldDefinition), {}, {
7064
+ const itemFieldDefinition = _objectSpread$L(_objectSpread$L({}, props.fieldDefinition), {}, {
7065
7065
  type: props.fieldDefinition.type.elementType
7066
7066
  });
7067
7067
  const value = useMemo(() => props.value || [undefined], [props.value]);
@@ -7221,7 +7221,7 @@ const CustomFieldInput = /*#__PURE__*/memo(props => {
7221
7221
  });
7222
7222
  CustomFieldInput.displayName = 'CustomFieldInput';
7223
7223
 
7224
- var messages$v = defineMessages({
7224
+ var messages$w = defineMessages({
7225
7225
  referencedProductType: {
7226
7226
  id: 'NestedAttributes.referencedProductType',
7227
7227
  description: 'Product type referenced hint',
@@ -7229,10 +7229,10 @@ var messages$v = defineMessages({
7229
7229
  }
7230
7230
  });
7231
7231
 
7232
- function ownKeys$I(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7233
- function _objectSpread$I(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$I(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$I(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
7232
+ function ownKeys$K(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7233
+ function _objectSpread$K(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$K(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$K(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
7234
7234
  function ProductTypeReference(props) {
7235
- const productTypeMessage = _objectSpread$I(_objectSpread$I({}, messages$v.referencedProductType), {}, {
7235
+ const productTypeMessage = _objectSpread$K(_objectSpread$K({}, messages$w.referencedProductType), {}, {
7236
7236
  values: {
7237
7237
  productTypeName: props.productType.name
7238
7238
  }
@@ -7278,9 +7278,9 @@ function CustomNestedFieldInput(props) {
7278
7278
  }
7279
7279
  CustomNestedFieldInput.displayName = 'CustomNestedFieldInput';
7280
7280
 
7281
- function ownKeys$H(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7282
- function _objectSpread$H(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$H(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$H(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
7283
- const mergeSetItemsErrors = errors => _reduceInstanceProperty(errors).call(errors, (result, itemErrors) => _objectSpread$H(_objectSpread$H({}, result), itemErrors), {});
7281
+ function ownKeys$J(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7282
+ function _objectSpread$J(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$J(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$J(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
7283
+ const mergeSetItemsErrors = errors => _reduceInstanceProperty(errors).call(errors, (result, itemErrors) => _objectSpread$J(_objectSpread$J({}, result), itemErrors), {});
7284
7284
 
7285
7285
  // TODO(pa3): worth splitting in two components: one of set errors and one for
7286
7286
  // all the other types of fields. So that there will be no isArray check.
@@ -7291,15 +7291,15 @@ const CustomFieldErrors = props => {
7291
7291
  const errors = _Array$isArray(props.errors) ? mergeSetItemsErrors(props.errors) : props.errors;
7292
7292
  return jsxs(Fragment, {
7293
7293
  children: [props.isTouched || didFormValidationFail && (errors === null || errors === void 0 ? void 0 : errors.missing) && jsx(ErrorMessage, {
7294
- intlMessage: messages$J.required
7294
+ intlMessage: messages$K.required
7295
7295
  }), props.isTouched || didFormValidationFail && (errors === null || errors === void 0 ? void 0 : errors.duplicated) && jsx(ErrorMessage, {
7296
- intlMessage: messages$J.unique
7296
+ intlMessage: messages$K.unique
7297
7297
  })]
7298
7298
  });
7299
7299
  };
7300
7300
  CustomFieldErrors.displayName = 'CustomFieldErrors';
7301
7301
 
7302
- var messages$u = defineMessages({
7302
+ var messages$v = defineMessages({
7303
7303
  productReferenceLabel: {
7304
7304
  id: 'CustomFieldsLabel.productReferenceLabel',
7305
7305
  description: 'Label shown above the product picker input.',
@@ -7332,8 +7332,8 @@ var messages$u = defineMessages({
7332
7332
  }
7333
7333
  });
7334
7334
 
7335
- function ownKeys$G(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7336
- function _objectSpread$G(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$G(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$G(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
7335
+ function ownKeys$I(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7336
+ function _objectSpread$I(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$I(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$I(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
7337
7337
  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 } } } };
7338
7338
  const CustomFieldsLabelHint = _ref => {
7339
7339
  var _type$name;
@@ -7363,7 +7363,7 @@ const CustomFieldsLabelHint = _ref => {
7363
7363
  children: [jsx(WarningIcon, {
7364
7364
  size: "medium",
7365
7365
  color: "warning"
7366
- }), jsx(FormattedMessage, _objectSpread$G({}, messages$u.cartDiscountMoreThan500))]
7366
+ }), jsx(FormattedMessage, _objectSpread$I({}, messages$v.cartDiscountMoreThan500))]
7367
7367
  });
7368
7368
  }
7369
7369
  return formatLocalizedString(fieldDefinition, {
@@ -7377,8 +7377,8 @@ function CustomFieldsProductTypeReferenceSubtitle() {
7377
7377
  formatMessage = _useIntl.formatMessage;
7378
7378
  const _usePimStatus = usePimStatus(),
7379
7379
  isProjectIndexed = _usePimStatus.isProjectIndexed;
7380
- if (isProjectIndexed) return formatMessage(messages$u.productTypeReferenceLabelI);
7381
- return formatMessage(messages$u.productTypeReferenceLabel);
7380
+ if (isProjectIndexed) return formatMessage(messages$v.productTypeReferenceLabelI);
7381
+ return formatMessage(messages$v.productTypeReferenceLabel);
7382
7382
  }
7383
7383
 
7384
7384
  // TODO(pa3): this logic may be misplaced and probably
@@ -7394,7 +7394,7 @@ function CustomFieldsLabelSubtitle(_ref2) {
7394
7394
  const referenceTypeId = type.referenceTypeId;
7395
7395
  const referenceTypeName = capitalizeFirst(referenceTypeId);
7396
7396
  if (_includesInstanceProperty(_context = [SEARCHABLE_REFERENCES.category, SEARCHABLE_REFERENCES.cartDiscount]).call(_context, referenceTypeId)) return referenceTypeName;
7397
- return referenceTypeId === SEARCHABLE_REFERENCES.product ? formatMessage(messages$u.productReferenceLabel) : referenceTypeId === SEARCHABLE_REFERENCES.productType ? jsx(CustomFieldsProductTypeReferenceSubtitle, {}) : referenceTypeId === SEARCHABLE_REFERENCES.channel ? formatMessage(messages$u.channelReferenceLabel) : referenceTypeId === SEARCHABLE_REFERENCES.state ? formatMessage(messages$u.stateReferenceLabel) : "".concat(referenceTypeName, " ID");
7397
+ return referenceTypeId === SEARCHABLE_REFERENCES.product ? formatMessage(messages$v.productReferenceLabel) : referenceTypeId === SEARCHABLE_REFERENCES.productType ? jsx(CustomFieldsProductTypeReferenceSubtitle, {}) : referenceTypeId === SEARCHABLE_REFERENCES.channel ? formatMessage(messages$v.channelReferenceLabel) : referenceTypeId === SEARCHABLE_REFERENCES.state ? formatMessage(messages$v.stateReferenceLabel) : "".concat(referenceTypeName, " ID");
7398
7398
  }
7399
7399
  const CustomFieldsLabel = /*#__PURE__*/memo(_ref3 => {
7400
7400
  let name = _ref3.name,
@@ -7549,8 +7549,8 @@ var pickerMessages = defineMessages({
7549
7549
  }
7550
7550
  });
7551
7551
 
7552
- function ownKeys$F(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7553
- function _objectSpread$F(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$F(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$F(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
7552
+ function ownKeys$H(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7553
+ function _objectSpread$H(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$H(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$H(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
7554
7554
  const PRODUCT_SELECTION_TYPES = {
7555
7555
  INCLUSION: 'individual',
7556
7556
  EXCLUSION: 'individual exclusion'
@@ -7564,7 +7564,7 @@ const addTypeToLabel = function (ps) {
7564
7564
  var _context;
7565
7565
  let enableExcludingProducts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
7566
7566
  if (!ps) return undefined;
7567
- return _objectSpread$F(_objectSpread$F({}, ps), {}, {
7567
+ return _objectSpread$H(_objectSpread$H({}, ps), {}, {
7568
7568
  label: _concatInstanceProperty(_context = "".concat(ps === null || ps === void 0 ? void 0 : ps.label)).call(_context, enableExcludingProducts ? " (type: ".concat(getType(ps === null || ps === void 0 ? void 0 : ps.type), ")") : '')
7569
7569
  });
7570
7570
  };
@@ -7860,7 +7860,7 @@ function ProductSelectionsSearchSelectDropdown(props) {
7860
7860
  fetchPolicy: 'network-only'
7861
7861
  }),
7862
7862
  data = _await$client$query.data;
7863
- const matchedProductSelections = (_data$productSelectio = data === null || data === void 0 ? void 0 : (_data$productSelectio2 = data.productSelections) === null || _data$productSelectio2 === void 0 ? void 0 : _data$productSelectio2.results) !== null && _data$productSelectio !== void 0 ? _data$productSelectio : [];
7863
+ const matchedProductSelections = (_data$productSelectio = data === null || data === void 0 || (_data$productSelectio2 = data.productSelections) === null || _data$productSelectio2 === void 0 ? void 0 : _data$productSelectio2.results) !== null && _data$productSelectio !== void 0 ? _data$productSelectio : [];
7864
7864
  const updatedProductSelections = _mapInstanceProperty(matchedProductSelections).call(matchedProductSelections, convertProductSelectionFromGraphQl);
7865
7865
  const filteredProductSelections = _filterInstanceProperty(updatedProductSelections).call(updatedProductSelections, ps => {
7866
7866
  var _context2;
@@ -7915,12 +7915,12 @@ function ProductSelectionsSearchSelectDropdown(props) {
7915
7915
  });
7916
7916
  }
7917
7917
 
7918
- function ownKeys$E(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7919
- function _objectSpread$E(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$E(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$E(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
7918
+ function ownKeys$G(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7919
+ function _objectSpread$G(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$G(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$G(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
7920
7920
  function TypeSelectInputOption(props) {
7921
7921
  const data = props.data;
7922
7922
  const noValueFallback = props.noValueFallback || NO_VALUE_FALLBACK;
7923
- return jsx(SelectInput.Option, _objectSpread$E(_objectSpread$E({}, props), {}, {
7923
+ return jsx(SelectInput.Option, _objectSpread$G(_objectSpread$G({}, props), {}, {
7924
7924
  children: jsxs(Spacings.Stack, {
7925
7925
  scale: "xs",
7926
7926
  children: [jsx(Text.Detail, {
@@ -7935,18 +7935,18 @@ function TypeSelectInputOption(props) {
7935
7935
  }));
7936
7936
  }
7937
7937
 
7938
- function ownKeys$D(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7939
- function _objectSpread$D(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$D(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$D(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
7938
+ function ownKeys$F(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7939
+ function _objectSpread$F(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$F(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$F(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
7940
7940
  function ProductSelectionsPicker(props) {
7941
7941
  const productSelectionsTotalFetcher = useProductSelectionsTotalFetcher();
7942
7942
  const components = useMemo(() => {
7943
7943
  return {
7944
7944
  Option: optionInnerProps => {
7945
7945
  if (optionInnerProps.isDisabled) {
7946
- return jsx(SelectInput.Option, _objectSpread$D({}, optionInnerProps));
7946
+ return jsx(SelectInput.Option, _objectSpread$F({}, optionInnerProps));
7947
7947
  }
7948
7948
  if (props.optionType === TYPE_PROPERTY) {
7949
- return jsx(TypeSelectInputOption, _objectSpread$D({}, optionInnerProps));
7949
+ return jsx(TypeSelectInputOption, _objectSpread$F({}, optionInnerProps));
7950
7950
  }
7951
7951
  return jsx(CustomSelectInputOption, {
7952
7952
  optionType: props.optionType,
@@ -7958,7 +7958,7 @@ function ProductSelectionsPicker(props) {
7958
7958
  if (productSelectionsTotalFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
7959
7959
  const CustomProductSelectionsPicker = productSelectionsTotalFetcher.total <= props.lowerProductSelectionsLimit ? ProductSelectionBasicSelectDropdown : productSelectionsTotalFetcher.total <= props.upperProductSelectionsLimit ? ProductSelectionsAsyncSelectDropdown : ProductSelectionsSearchSelectDropdown;
7960
7960
  return jsx(Spacings.Stack, {
7961
- children: jsx(CustomProductSelectionsPicker, _objectSpread$D(_objectSpread$D({}, props), {}, {
7961
+ children: jsx(CustomProductSelectionsPicker, _objectSpread$F(_objectSpread$F({}, props), {}, {
7962
7962
  components: components
7963
7963
  }))
7964
7964
  });
@@ -7981,7 +7981,7 @@ ProductSelectionsPicker.defaultProps = {
7981
7981
 
7982
7982
  const COUNTRIES_ASYNC_LOADING_LIMIT = 60;
7983
7983
 
7984
- var messages$t = defineMessages({
7984
+ var messages$u = defineMessages({
7985
7985
  countriesBasicSelectPlaceholder: {
7986
7986
  id: 'CountriesPicker.countriesBasicSelectPlaceholder',
7987
7987
  description: 'Placeholder of the basic field for countries',
@@ -8009,7 +8009,7 @@ function CountriesBasicSelectDropdown(props) {
8009
8009
  value: props.value,
8010
8010
  isRequired: props.isRequired,
8011
8011
  description: props.description,
8012
- placeholder: intl.formatMessage(messages$t.countriesBasicSelectPlaceholder),
8012
+ placeholder: intl.formatMessage(messages$u.countriesBasicSelectPlaceholder),
8013
8013
  options: props.options,
8014
8014
  onChange: props.onChange,
8015
8015
  isDisabled: props.isDisabled,
@@ -8019,10 +8019,10 @@ function CountriesBasicSelectDropdown(props) {
8019
8019
  });
8020
8020
  }
8021
8021
 
8022
- function ownKeys$C(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8023
- function _objectSpread$C(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context4 = ownKeys$C(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context5 = ownKeys$C(Object(source))).call(_context5, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
8022
+ function ownKeys$E(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8023
+ function _objectSpread$E(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context4 = ownKeys$E(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context5 = ownKeys$E(Object(source))).call(_context5, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
8024
8024
  const emptyCountryOption = intl => [{
8025
- label: intl.formatMessage(messages$t.countriesAsyncSelectDropdownTypeAheadPrompt),
8025
+ label: intl.formatMessage(messages$u.countriesAsyncSelectDropdownTypeAheadPrompt),
8026
8026
  value: undefined,
8027
8027
  isDisabled: true
8028
8028
  }];
@@ -8047,7 +8047,7 @@ function CountriesAsyncSelectDropdown(props) {
8047
8047
  const onOptionChange = event => {
8048
8048
  const countries = event.target.value;
8049
8049
  props.onChange({
8050
- target: _objectSpread$C(_objectSpread$C({}, event.target), {}, {
8050
+ target: _objectSpread$E(_objectSpread$E({}, event.target), {}, {
8051
8051
  value: _mapInstanceProperty(countries).call(countries, country => {
8052
8052
  var _country$value;
8053
8053
  return (_country$value = country === null || country === void 0 ? void 0 : country.value) !== null && _country$value !== void 0 ? _country$value : country;
@@ -8068,7 +8068,7 @@ function CountriesAsyncSelectDropdown(props) {
8068
8068
  var _context3;
8069
8069
  return _findInstanceProperty(_context3 = props.options).call(_context3, country => country.value === countryCode);
8070
8070
  }),
8071
- placeholder: intl.formatMessage(messages$t.countriesAsyncSelectPlaceholder),
8071
+ placeholder: intl.formatMessage(messages$u.countriesAsyncSelectPlaceholder),
8072
8072
  loadOptions: handleLoadOptions,
8073
8073
  onChange: onOptionChange,
8074
8074
  isDisabled: props.isDisabled,
@@ -8078,13 +8078,13 @@ function CountriesAsyncSelectDropdown(props) {
8078
8078
  });
8079
8079
  }
8080
8080
 
8081
- function ownKeys$B(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8082
- function _objectSpread$B(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$B(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$B(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
8081
+ function ownKeys$D(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8082
+ function _objectSpread$D(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$D(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$D(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
8083
8083
  function CountriesPicker(props) {
8084
8084
  var _props$options;
8085
8085
  const CustomCountriesPicker = ((_props$options = props.options) === null || _props$options === void 0 ? void 0 : _props$options.length) <= props.countriesAsyncLoadingLimit ? CountriesBasicSelectDropdown : CountriesAsyncSelectDropdown;
8086
8086
  return jsx(Spacings.Stack, {
8087
- children: jsx(CustomCountriesPicker, _objectSpread$B({}, props))
8087
+ children: jsx(CustomCountriesPicker, _objectSpread$D({}, props))
8088
8088
  });
8089
8089
  }
8090
8090
  CountriesPicker.defaultProps = {
@@ -8094,7 +8094,7 @@ CountriesPicker.defaultProps = {
8094
8094
  hasWarning: false
8095
8095
  };
8096
8096
 
8097
- var messages$s = defineMessages({
8097
+ var messages$t = defineMessages({
8098
8098
  noCustomerGroupsFound: {
8099
8099
  id: 'Prices.CustomerGroupPickerInput.noCustomerGroupsFound',
8100
8100
  description: 'The message to display when no customer groups were found',
@@ -8185,8 +8185,8 @@ const CustomerGroupPickerInput = _ref => {
8185
8185
  if (isCurrentOptionLoadingFailed) onError(currentOption.error);
8186
8186
  }, [isCurrentOptionLoadingFailed, onError, currentOption]);
8187
8187
  const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
8188
- const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$s.noCustomerGroupsFound), [loadingError, formatMessage]);
8189
- const tooltipTitle = (_currentOption$data$l = currentOption === null || currentOption === void 0 ? void 0 : (_currentOption$data = currentOption.data) === null || _currentOption$data === void 0 ? void 0 : _currentOption$data.label) !== null && _currentOption$data$l !== void 0 ? _currentOption$data$l : '';
8188
+ const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$t.noCustomerGroupsFound), [loadingError, formatMessage]);
8189
+ const tooltipTitle = (_currentOption$data$l = currentOption === null || currentOption === void 0 || (_currentOption$data = currentOption.data) === null || _currentOption$data === void 0 ? void 0 : _currentOption$data.label) !== null && _currentOption$data$l !== void 0 ? _currentOption$data$l : '';
8190
8190
  return jsx(Constraints.Horizontal, {
8191
8191
  max: "scale",
8192
8192
  children: jsxs(Spacings.Stack, {
@@ -8196,7 +8196,7 @@ const CustomerGroupPickerInput = _ref => {
8196
8196
  children: jsx(AsyncSelectInput, {
8197
8197
  id: name,
8198
8198
  name: name,
8199
- placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : formatMessage(messages$s.placeholder),
8199
+ placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : formatMessage(messages$t.placeholder),
8200
8200
  loadOptions: loadOptionsDebounced,
8201
8201
  defaultOptions: true,
8202
8202
  showOptionGroupDivider: true,
@@ -8266,7 +8266,7 @@ const getFirst60Options = (storesOptions, currentValues) => {
8266
8266
  return _sliceInstanceProperty(storesOptions).call(storesOptions, 0, LOWER_STORES_LIMIT + currentValuesLength);
8267
8267
  };
8268
8268
 
8269
- var messages$r = defineMessages({
8269
+ var messages$s = defineMessages({
8270
8270
  basicSelectInputPlaceholder: {
8271
8271
  id: 'Shared.StoreSelectInput.basicSelectInputPlaceholder',
8272
8272
  description: 'The placeholder shown for basic select input',
@@ -8292,6 +8292,11 @@ var messages$r = defineMessages({
8292
8292
  description: 'The message shown in search select input when matches are found',
8293
8293
  defaultMessage: 'No matches found for your search term'
8294
8294
  },
8295
+ searchSelectInputNoValueMessage: {
8296
+ id: 'Shared.StoreSelectInput.searchSelectInputNoValueMessage',
8297
+ description: 'The message shown in search select input when value of the input is empty',
8298
+ defaultMessage: 'No autosuggestions available. Start typing to load results based on case-sensitive exact matches'
8299
+ },
8295
8300
  asyncSelectDropdownTypeAheadPrompt: {
8296
8301
  id: 'Shared.StoreSelectInput.asyncSelectDropdownTypeAheadPrompt',
8297
8302
  description: 'Message shown telling the user to start typing to load more channels',
@@ -8299,8 +8304,8 @@ var messages$r = defineMessages({
8299
8304
  }
8300
8305
  });
8301
8306
 
8302
- function ownKeys$A(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8303
- function _objectSpread$A(target) { for (var i = 1; i < arguments.length; i++) { var _context5, _context6; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context5 = ownKeys$A(Object(source), !0)).call(_context5, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context6 = ownKeys$A(Object(source))).call(_context6, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
8307
+ function ownKeys$C(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8308
+ function _objectSpread$C(target) { for (var i = 1; i < arguments.length; i++) { var _context5, _context6; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context5 = ownKeys$C(Object(source), !0)).call(_context5, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context6 = ownKeys$C(Object(source))).call(_context6, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
8304
8309
  const hasErrors$2 = errors => {
8305
8310
  var _context;
8306
8311
  return errors && _someInstanceProperty(_context = _Object$values(errors)).call(_context, Boolean);
@@ -8325,7 +8330,7 @@ const getValueFromOptions$1 = _ref => {
8325
8330
  return _findInstanceProperty(mappedStoresListOptions).call(mappedStoresListOptions, store => currentlySelectedStores === store.value);
8326
8331
  };
8327
8332
  const emptyStoreOption = intl => [{
8328
- label: intl.formatMessage(messages$r.asyncSelectDropdownTypeAheadPrompt),
8333
+ label: intl.formatMessage(messages$s.asyncSelectDropdownTypeAheadPrompt),
8329
8334
  value: undefined,
8330
8335
  isDisabled: true
8331
8336
  }];
@@ -8372,10 +8377,10 @@ const StoresAsyncSelectInput = props => {
8372
8377
  };
8373
8378
  if (storesListFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
8374
8379
  return jsxs(Fragment, {
8375
- children: [jsx(AsyncSelectInput, _objectSpread$A(_objectSpread$A({
8380
+ children: [jsx(AsyncSelectInput, _objectSpread$C(_objectSpread$C({
8376
8381
  id: props.id,
8377
8382
  name: props.name,
8378
- placeholder: intl.formatMessage(messages$r.basicSelectInputPlaceholder),
8383
+ placeholder: intl.formatMessage(messages$s.basicSelectInputPlaceholder),
8379
8384
  horizontalConstraint: props.horizontalConstraint,
8380
8385
  loadOptions: handleLoadOptions,
8381
8386
  defaultOptions: true,
@@ -8415,8 +8420,8 @@ StoresAsyncSelectInput.defaultProps = {
8415
8420
  shouldFetchProductSelections: false
8416
8421
  };
8417
8422
 
8418
- function ownKeys$z(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8419
- function _objectSpread$z(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys$z(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys$z(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
8423
+ function ownKeys$B(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8424
+ function _objectSpread$B(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys$B(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys$B(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
8420
8425
  const hasErrors$1 = errors => {
8421
8426
  var _context;
8422
8427
  return errors && _someInstanceProperty(_context = _Object$values(errors)).call(_context, Boolean);
@@ -8464,10 +8469,10 @@ const StoresBasicSelectInput = props => {
8464
8469
  };
8465
8470
  if (storesListFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
8466
8471
  return jsxs(Fragment, {
8467
- children: [jsx(SelectInput, _objectSpread$z(_objectSpread$z({
8472
+ children: [jsx(SelectInput, _objectSpread$B(_objectSpread$B({
8468
8473
  id: props.id,
8469
8474
  name: props.name,
8470
- placeholder: intl.formatMessage(messages$r.basicSelectInputPlaceholder),
8475
+ placeholder: intl.formatMessage(messages$s.basicSelectInputPlaceholder),
8471
8476
  horizontalConstraint: props.horizontalConstraint,
8472
8477
  options: mappedStoresListOptions,
8473
8478
  isMulti: props.isMulti,
@@ -8560,8 +8565,8 @@ const useStoresByFieldFetcher = function (stores, predicateField, projectKey) {
8560
8565
  };
8561
8566
  };
8562
8567
 
8563
- function ownKeys$y(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8564
- function _objectSpread$y(target) { for (var i = 1; i < arguments.length; i++) { var _context6, _context7; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context6 = ownKeys$y(Object(source), !0)).call(_context6, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context7 = ownKeys$y(Object(source))).call(_context7, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
8568
+ function ownKeys$A(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8569
+ function _objectSpread$A(target) { for (var i = 1; i < arguments.length; i++) { var _context6, _context7; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context6 = ownKeys$A(Object(source), !0)).call(_context6, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context7 = ownKeys$A(Object(source))).call(_context7, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
8565
8570
  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 } } } };
8566
8571
  const hasErrors = errors => {
8567
8572
  var _context;
@@ -8663,10 +8668,10 @@ const StoresSearchSelectInput = props => {
8663
8668
  const loadOptionsDebounced = debounce(handleLoadOptions, 500);
8664
8669
  if (storesByFieldFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
8665
8670
  return jsxs(Fragment, {
8666
- children: [jsx(SearchSelectInput, _objectSpread$y(_objectSpread$y({
8671
+ children: [jsx(SearchSelectInput, _objectSpread$A(_objectSpread$A({
8667
8672
  id: props.id,
8668
8673
  name: props.name,
8669
- placeholder: intl.formatMessage(messages$r.searchSelectInputPlaceholder),
8674
+ placeholder: intl.formatMessage(messages$s.searchSelectInputPlaceholder),
8670
8675
  horizontalConstraint: props.horizontalConstraint,
8671
8676
  loadOptions: loadOptionsDebounced,
8672
8677
  defaultOptions: false,
@@ -8680,8 +8685,11 @@ const StoresSearchSelectInput = props => {
8680
8685
  }),
8681
8686
  onChange: props.onChange,
8682
8687
  onBlur: props.onBlur,
8683
- loadingMessage: intl.formatMessage(messages$r.searchSelectInputLoadingMessage),
8684
- noOptionsMessage: () => intl.formatMessage(messages$r.searchSelectInputNoOptionsFoundMessage),
8688
+ loadingMessage: intl.formatMessage(messages$s.searchSelectInputLoadingMessage),
8689
+ noOptionsMessage: _ref4 => {
8690
+ let inputValue = _ref4.inputValue;
8691
+ return intl.formatMessage(inputValue ? messages$s.searchSelectInputNoOptionsFoundMessage : messages$s.searchSelectInputNoValueMessage);
8692
+ },
8685
8693
  isDisabled: props.isDisabled || storesByFieldFetcher.isLoading,
8686
8694
  isReadOnly: props.isReadOnly,
8687
8695
  isClearable: props.isClearable,
@@ -8709,8 +8717,8 @@ StoresSearchSelectInput.defaultProps = {
8709
8717
  shouldFetchProductSelections: false
8710
8718
  };
8711
8719
 
8712
- function ownKeys$x(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8713
- function _objectSpread$x(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$x(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$x(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
8720
+ function ownKeys$z(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8721
+ function _objectSpread$z(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$z(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$z(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
8714
8722
  const StoreSelectInput = props => {
8715
8723
  const totalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher(props.projectKey);
8716
8724
  const components = useMemo(() => {
@@ -8718,7 +8726,7 @@ const StoreSelectInput = props => {
8718
8726
  // eslint-disable-next-line react/display-name
8719
8727
  Option: optionInnerProps => {
8720
8728
  if (optionInnerProps.isDisabled) {
8721
- return jsx(SelectInput.Option, _objectSpread$x({}, optionInnerProps));
8729
+ return jsx(SelectInput.Option, _objectSpread$z({}, optionInnerProps));
8722
8730
  }
8723
8731
  return jsx(CustomSelectInputOption, {
8724
8732
  optionType: props.optionType,
@@ -8729,7 +8737,7 @@ const StoreSelectInput = props => {
8729
8737
  }, [props.optionType]);
8730
8738
  if (totalNumberOfStoresFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
8731
8739
  const CustomStoreSelectInput = totalNumberOfStoresFetcher.total <= props.lowerStoresLimit ? StoresBasicSelectInput : totalNumberOfStoresFetcher.total <= props.upperStoresLimit ? StoresAsyncSelectInput : StoresSearchSelectInput;
8732
- return jsx(CustomStoreSelectInput, _objectSpread$x(_objectSpread$x({
8740
+ return jsx(CustomStoreSelectInput, _objectSpread$z(_objectSpread$z({
8733
8741
  projectKey: props.projectKey,
8734
8742
  id: props.id,
8735
8743
  name: props.name,
@@ -8784,7 +8792,7 @@ const businessRoleConstants = {
8784
8792
 
8785
8793
  const businessRoleKeys = _Object$values(businessRoleConstants);
8786
8794
 
8787
- var messages$q = defineMessages({
8795
+ var messages$r = defineMessages({
8788
8796
  ExecutiveManagement: {
8789
8797
  id: 'Shared.businessRoles.executiveManagement',
8790
8798
  description: 'The label for one of the selectable business roles',
@@ -8842,7 +8850,7 @@ function convertRatioToPercentage(ratio) {
8842
8850
  return _parseFloat((ratio * 100).toFixed(2));
8843
8851
  }
8844
8852
 
8845
- const messages$p = defineMessages({
8853
+ const messages$q = defineMessages({
8846
8854
  inputFieldError: {
8847
8855
  id: 'Search.Filters.validation.customField.inputFieldError',
8848
8856
  description: 'Error message for empty input field ',
@@ -8863,14 +8871,14 @@ const validateValue = (value, type, intl) => {
8863
8871
  if (validateSingleFilter({
8864
8872
  value
8865
8873
  })) {
8866
- return intl.formatMessage(messages$p.inputFieldError);
8874
+ return intl.formatMessage(messages$q.inputFieldError);
8867
8875
  }
8868
8876
  if (type === FIELD_TYPES.Money && (validateSingleFilter({
8869
8877
  value: value.currencyCode
8870
8878
  }) || validateSingleFilter({
8871
8879
  value: value.amount
8872
8880
  }))) {
8873
- return intl.formatMessage(messages$p.inputFieldError);
8881
+ return intl.formatMessage(messages$q.inputFieldError);
8874
8882
  }
8875
8883
  return null;
8876
8884
  };
@@ -8878,7 +8886,7 @@ function validateFilter$2(_ref, intl) {
8878
8886
  let value = _ref.value;
8879
8887
  if (!value || !value.type) {
8880
8888
  return {
8881
- type: intl.formatMessage(messages$p.optionFieldError)
8889
+ type: intl.formatMessage(messages$q.optionFieldError)
8882
8890
  };
8883
8891
  }
8884
8892
  const typeName = value.type.name;
@@ -8886,7 +8894,7 @@ function validateFilter$2(_ref, intl) {
8886
8894
  const filterValue = value.value;
8887
8895
  if (hasOption && !value.option) {
8888
8896
  return {
8889
- option: intl.formatMessage(messages$p.optionFieldError)
8897
+ option: intl.formatMessage(messages$q.optionFieldError)
8890
8898
  };
8891
8899
  }
8892
8900
  if (value.option === FILTER_TYPES.range) {
@@ -8905,7 +8913,7 @@ function validateFilter$2(_ref, intl) {
8905
8913
  } : null;
8906
8914
  }
8907
8915
 
8908
- const messages$o = defineMessages({
8916
+ const messages$p = defineMessages({
8909
8917
  rangeMissingValue: {
8910
8918
  id: 'Search.Filters.validation.date.rangeMissingValue',
8911
8919
  description: 'error message if missing a value in a range',
@@ -8930,25 +8938,25 @@ function validateFilter$1(_ref, intl) {
8930
8938
  if (validateSingleFilter({
8931
8939
  value: value === null || value === void 0 ? void 0 : value.from
8932
8940
  })) return {
8933
- from: intl.formatMessage(messages$o.rangeMissingValue)
8941
+ from: intl.formatMessage(messages$p.rangeMissingValue)
8934
8942
  };
8935
8943
  if (validateSingleFilter({
8936
8944
  value: value === null || value === void 0 ? void 0 : value.to
8937
8945
  })) return {
8938
- to: intl.formatMessage(messages$o.rangeMissingValue)
8946
+ to: intl.formatMessage(messages$p.rangeMissingValue)
8939
8947
  };
8940
8948
  if (moment$1(value === null || value === void 0 ? void 0 : value.to).isBefore(value === null || value === void 0 ? void 0 : value.from)) return {
8941
- from: intl.formatMessage(messages$o.rangeToSmallerThanFrom)
8949
+ from: intl.formatMessage(messages$p.rangeToSmallerThanFrom)
8942
8950
  };
8943
8951
  } else if (type === 'equalTo' || type === 'lessThan' || type === 'moreThan') {
8944
8952
  if (validateSingleFilter({
8945
8953
  value
8946
- })) return intl.formatMessage(messages$o.missingValue);
8954
+ })) return intl.formatMessage(messages$p.missingValue);
8947
8955
  }
8948
8956
  return null;
8949
8957
  }
8950
8958
 
8951
- const messages$n = defineMessages({
8959
+ const messages$o = defineMessages({
8952
8960
  rangeMissingValue: {
8953
8961
  id: 'Search.Filters.validation.number.rangeMissingValue',
8954
8962
  description: 'error message if missing a value in a range',
@@ -8967,30 +8975,30 @@ function validateFilter(_ref, intl) {
8967
8975
  _ref$allowFloat = _ref.allowFloat,
8968
8976
  allowFloat = _ref$allowFloat === void 0 ? true : _ref$allowFloat;
8969
8977
  if (type !== 'range') {
8970
- if (!allowFloat && !isInteger(value)) return intl.formatMessage(messages$J.integer);
8978
+ if (!allowFloat && !isInteger(value)) return intl.formatMessage(messages$K.integer);
8971
8979
  return null;
8972
8980
  }
8973
8981
 
8974
8982
  // only range types from here
8975
8983
 
8976
8984
  if (!allowFloat && !isInteger(value.from)) return {
8977
- from: intl.formatMessage(messages$J.integer)
8985
+ from: intl.formatMessage(messages$K.integer)
8978
8986
  };
8979
8987
  if (!allowFloat && !isInteger(value.to)) return {
8980
- to: intl.formatMessage(messages$J.integer)
8988
+ to: intl.formatMessage(messages$K.integer)
8981
8989
  };
8982
8990
  if (validateSingleFilter({
8983
8991
  value: value.from
8984
8992
  })) return {
8985
- from: intl.formatMessage(messages$n.rangeMissingValue)
8993
+ from: intl.formatMessage(messages$o.rangeMissingValue)
8986
8994
  };
8987
8995
  if (validateSingleFilter({
8988
8996
  value: value.to
8989
8997
  })) return {
8990
- to: intl.formatMessage(messages$n.rangeMissingValue)
8998
+ to: intl.formatMessage(messages$o.rangeMissingValue)
8991
8999
  };
8992
9000
  if (_parseFloat(value.to) < _parseFloat(value.from)) return {
8993
- from: intl.formatMessage(messages$n.rangeToSmallerThanFrom)
9001
+ from: intl.formatMessage(messages$o.rangeToSmallerThanFrom)
8994
9002
  };
8995
9003
  return null;
8996
9004
  }
@@ -9284,10 +9292,10 @@ const RESOURCES_WITH_PLATFORM_LIMITS = {
9284
9292
  carts: 'carts'
9285
9293
  };
9286
9294
 
9287
- function ownKeys$w(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9288
- function _objectSpread$w(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$w(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$w(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9295
+ function ownKeys$y(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9296
+ function _objectSpread$y(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$y(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$y(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9289
9297
  const resourcesWithPlatformLimits = _Object$keys(RESOURCES_WITH_PLATFORM_LIMITS);
9290
- const createQueryVariables = platformLimit => _reduceInstanceProperty(resourcesWithPlatformLimits).call(resourcesWithPlatformLimits, (previousIncludedLimits, nextNameOfLimit) => _objectSpread$w({
9298
+ const createQueryVariables = platformLimit => _reduceInstanceProperty(resourcesWithPlatformLimits).call(resourcesWithPlatformLimits, (previousIncludedLimits, nextNameOfLimit) => _objectSpread$y({
9291
9299
  [camelCase("should include ".concat(nextNameOfLimit))]: platformLimit ? nextNameOfLimit === platformLimit : true
9292
9300
  }, previousIncludedLimits), {});
9293
9301
 
@@ -9349,7 +9357,7 @@ const useInterceptNavigation = hasReachedErrorLimit => {
9349
9357
  };
9350
9358
  };
9351
9359
 
9352
- var messages$m = defineMessages({
9360
+ var messages$n = defineMessages({
9353
9361
  shippingMethods: {
9354
9362
  id: 'PlatformLimits.Notifications.shippingMethodsWarning',
9355
9363
  description: 'warning message about platform limit exceeded',
@@ -9377,8 +9385,8 @@ var messages$m = defineMessages({
9377
9385
  }
9378
9386
  });
9379
9387
 
9380
- function ownKeys$v(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9381
- function _objectSpread$v(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$v(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$v(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9388
+ function ownKeys$x(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9389
+ function _objectSpread$x(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$x(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$x(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9382
9390
  const getCustomerSupportLink$1 = msg => jsx(Link, {
9383
9391
  isExternal: true,
9384
9392
  to: SUPPORT_PORTAL_URL,
@@ -9389,7 +9397,7 @@ const PlatformLimitWarningNotification = _ref => {
9389
9397
  limit = _ref.limit;
9390
9398
  return jsx(ContentNotification, {
9391
9399
  type: "warning",
9392
- children: jsx(FormattedMessage, _objectSpread$v(_objectSpread$v({}, messages$m[resource]), {}, {
9400
+ children: jsx(FormattedMessage, _objectSpread$x(_objectSpread$x({}, messages$n[resource]), {}, {
9393
9401
  values: {
9394
9402
  limit,
9395
9403
  customersupport: getCustomerSupportLink$1
@@ -9402,7 +9410,7 @@ const PlatformLimitWarningNotification = _ref => {
9402
9410
  };
9403
9411
  PlatformLimitWarningNotification.displayName = 'PlatformLimitWarningNotification';
9404
9412
 
9405
- var messages$l = defineMessages({
9413
+ var messages$m = defineMessages({
9406
9414
  shippingMethods: {
9407
9415
  id: 'PlatformLimits.Notifications.shippingMethodsError',
9408
9416
  description: 'error message about platform limit exceeded',
@@ -9430,8 +9438,8 @@ var messages$l = defineMessages({
9430
9438
  }
9431
9439
  });
9432
9440
 
9433
- function ownKeys$u(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9434
- function _objectSpread$u(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$u(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$u(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9441
+ function ownKeys$w(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9442
+ function _objectSpread$w(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$w(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$w(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9435
9443
  const getCustomerSupportLink = msg => jsx(Link, {
9436
9444
  isExternal: true,
9437
9445
  to: SUPPORT_PORTAL_URL,
@@ -9442,7 +9450,7 @@ const PlatformLimitErrorNotification = _ref => {
9442
9450
  limit = _ref.limit;
9443
9451
  return jsx(ContentNotification, {
9444
9452
  type: "error",
9445
- children: jsx(FormattedMessage, _objectSpread$u(_objectSpread$u({}, messages$l[resource]), {}, {
9453
+ children: jsx(FormattedMessage, _objectSpread$w(_objectSpread$w({}, messages$m[resource]), {}, {
9446
9454
  values: {
9447
9455
  limit,
9448
9456
  customersupport: getCustomerSupportLink
@@ -9460,8 +9468,8 @@ const Notifications = {
9460
9468
  Error: PlatformLimitErrorNotification
9461
9469
  };
9462
9470
 
9463
- function ownKeys$t(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9464
- function _objectSpread$t(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$t(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$t(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9471
+ function ownKeys$v(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9472
+ function _objectSpread$v(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$v(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$v(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9465
9473
  const PlatformLimitsStatusText = _ref => {
9466
9474
  let intlMessage = _ref.intlMessage,
9467
9475
  children = _ref.children;
@@ -9470,7 +9478,7 @@ const PlatformLimitsStatusText = _ref => {
9470
9478
  children: jsxs(Spacings.Inline, {
9471
9479
  size: "xs",
9472
9480
  children: [jsx("span", {
9473
- children: intlMessage && jsx(FormattedMessage, _objectSpread$t({}, intlMessage))
9481
+ children: intlMessage && jsx(FormattedMessage, _objectSpread$v({}, intlMessage))
9474
9482
  }), jsx("span", {
9475
9483
  children: children
9476
9484
  })]
@@ -9571,7 +9579,7 @@ const PlatformLimitsShippingMethodsNotifications = () => {
9571
9579
  };
9572
9580
  PlatformLimitsShippingMethodsNotifications.displayName = 'PlatformLimitsShippingMethodsNotifications';
9573
9581
 
9574
- var messages$k = defineMessages({
9582
+ var messages$l = defineMessages({
9575
9583
  shippingMethodsPlatformLimitReached: {
9576
9584
  id: 'PlatformLimits.Tooltip.shippingMethodsLimitReached',
9577
9585
  description: 'The message for shipping methods platform limit being reached',
@@ -9579,17 +9587,17 @@ var messages$k = defineMessages({
9579
9587
  }
9580
9588
  });
9581
9589
 
9582
- function ownKeys$s(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9583
- function _objectSpread$s(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$s(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$s(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9590
+ function ownKeys$u(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9591
+ function _objectSpread$u(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$u(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$u(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9584
9592
  const PlatformLimitsShippingMethodsTooltip = props => {
9585
9593
  const intl = useIntl();
9586
- return jsx(Tooltip, _objectSpread$s(_objectSpread$s({}, props), {}, {
9587
- title: intl.formatMessage(messages$k.shippingMethodsPlatformLimitReached)
9594
+ return jsx(Tooltip, _objectSpread$u(_objectSpread$u({}, props), {}, {
9595
+ title: intl.formatMessage(messages$l.shippingMethodsPlatformLimitReached)
9588
9596
  }));
9589
9597
  };
9590
9598
  PlatformLimitsShippingMethodsTooltip.displayName = 'PlatformLimitsShippingMethodsTooltip';
9591
9599
 
9592
- var messages$j = defineMessages({
9600
+ var messages$k = defineMessages({
9593
9601
  shippingMethodsStatus: {
9594
9602
  id: 'PlatformLimits.Status.shippingMethods',
9595
9603
  description: 'The message for shipping methods platform limit values',
@@ -9598,15 +9606,15 @@ var messages$j = defineMessages({
9598
9606
  });
9599
9607
 
9600
9608
  const PlatformLimitsShippingMethodsStatus = _ref => {
9601
- var _platformLimits$shipp, _platformLimits$shipp2, _platformLimits$shipp3, _platformLimits$shipp4;
9609
+ var _platformLimits$shipp, _platformLimits$shipp2;
9602
9610
  let total = _ref.total;
9603
9611
  const intl = useIntl();
9604
9612
  const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher(),
9605
9613
  platformLimits = _useShippingMethodsPl.platformLimits;
9606
- const current = platformLimits === null || platformLimits === void 0 ? void 0 : (_platformLimits$shipp = platformLimits.shippingMethods) === null || _platformLimits$shipp === void 0 ? void 0 : (_platformLimits$shipp2 = _platformLimits$shipp.total) === null || _platformLimits$shipp2 === void 0 ? void 0 : _platformLimits$shipp2.current;
9607
- const limit = platformLimits === null || platformLimits === void 0 ? void 0 : (_platformLimits$shipp3 = platformLimits.shippingMethods) === null || _platformLimits$shipp3 === void 0 ? void 0 : (_platformLimits$shipp4 = _platformLimits$shipp3.total) === null || _platformLimits$shipp4 === void 0 ? void 0 : _platformLimits$shipp4.limit;
9614
+ const current = platformLimits === null || platformLimits === void 0 || (_platformLimits$shipp = platformLimits.shippingMethods) === null || _platformLimits$shipp === void 0 || (_platformLimits$shipp = _platformLimits$shipp.total) === null || _platformLimits$shipp === void 0 ? void 0 : _platformLimits$shipp.current;
9615
+ const limit = platformLimits === null || platformLimits === void 0 || (_platformLimits$shipp2 = platformLimits.shippingMethods) === null || _platformLimits$shipp2 === void 0 || (_platformLimits$shipp2 = _platformLimits$shipp2.total) === null || _platformLimits$shipp2 === void 0 ? void 0 : _platformLimits$shipp2.limit;
9608
9616
  return jsx(PlatformLimitsStatusText, {
9609
- intlMessage: messages$j.shippingMethodsStatus,
9617
+ intlMessage: messages$k.shippingMethodsStatus,
9610
9618
  children: getPlatformLimitsStatus({
9611
9619
  limit,
9612
9620
  current,
@@ -9637,15 +9645,15 @@ const useShippingMethodsLimits = () => {
9637
9645
  };
9638
9646
  };
9639
9647
 
9640
- function ownKeys$r(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9641
- function _objectSpread$r(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$r(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$r(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9648
+ function ownKeys$t(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9649
+ function _objectSpread$t(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$t(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$t(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9642
9650
  const injectShippingMethodsPlatformLimits = () => WrappedComponent => {
9643
9651
  const WithShippingMethodsPlatformLimits = props => {
9644
9652
  const shippingMethodsPlatformLimits = useShippingMethodsLimits();
9645
9653
  const shippingMethodsProps = {
9646
9654
  platformLimits: shippingMethodsPlatformLimits
9647
9655
  };
9648
- return jsx(WrappedComponent, _objectSpread$r(_objectSpread$r({}, props), shippingMethodsProps));
9656
+ return jsx(WrappedComponent, _objectSpread$t(_objectSpread$t({}, props), shippingMethodsProps));
9649
9657
  };
9650
9658
  WithShippingMethodsPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithShippingMethodsPlatformLimits');
9651
9659
  return WithShippingMethodsPlatformLimits;
@@ -9718,7 +9726,7 @@ const PlatformLimitsTaxCategoriesNotifications = () => {
9718
9726
  };
9719
9727
  PlatformLimitsTaxCategoriesNotifications.displayName = 'PlatformLimitsTaxCategoriesNotifications';
9720
9728
 
9721
- var messages$i = defineMessages({
9729
+ var messages$j = defineMessages({
9722
9730
  taxCategoriesPlatformLimitReached: {
9723
9731
  id: 'PlatformLimits.Tooltip.taxCategoriesLimitReached',
9724
9732
  description: 'The message for tax categories platform limit being reached',
@@ -9726,17 +9734,17 @@ var messages$i = defineMessages({
9726
9734
  }
9727
9735
  });
9728
9736
 
9729
- function ownKeys$q(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9730
- function _objectSpread$q(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$q(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$q(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9737
+ function ownKeys$s(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9738
+ function _objectSpread$s(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$s(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$s(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9731
9739
  const PlatformLimitsTaxCategoriesTooltip = props => {
9732
9740
  const intl = useIntl();
9733
- return jsx(Tooltip, _objectSpread$q(_objectSpread$q({}, props), {}, {
9734
- title: intl.formatMessage(messages$i.taxCategoriesPlatformLimitReached)
9741
+ return jsx(Tooltip, _objectSpread$s(_objectSpread$s({}, props), {}, {
9742
+ title: intl.formatMessage(messages$j.taxCategoriesPlatformLimitReached)
9735
9743
  }));
9736
9744
  };
9737
9745
  PlatformLimitsTaxCategoriesTooltip.displayName = 'PlatformLimitsTaxCategoriesTooltip';
9738
9746
 
9739
- var messages$h = defineMessages({
9747
+ var messages$i = defineMessages({
9740
9748
  taxCategoriesStatus: {
9741
9749
  id: 'PlatformLimits.Status.taxCategories',
9742
9750
  description: 'The message for tax categories platform limit values',
@@ -9745,15 +9753,15 @@ var messages$h = defineMessages({
9745
9753
  });
9746
9754
 
9747
9755
  const PlatformLimitsTaxCategoriesStatus = _ref => {
9748
- var _platformLimits$taxCa, _platformLimits$taxCa2, _platformLimits$taxCa3, _platformLimits$taxCa4;
9756
+ var _platformLimits$taxCa, _platformLimits$taxCa2;
9749
9757
  let total = _ref.total;
9750
9758
  const intl = useIntl();
9751
9759
  const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher(),
9752
9760
  platformLimits = _useTaxCategoriesPlat.platformLimits;
9753
- const current = platformLimits === null || platformLimits === void 0 ? void 0 : (_platformLimits$taxCa = platformLimits.taxCategories) === null || _platformLimits$taxCa === void 0 ? void 0 : (_platformLimits$taxCa2 = _platformLimits$taxCa.total) === null || _platformLimits$taxCa2 === void 0 ? void 0 : _platformLimits$taxCa2.current;
9754
- const limit = platformLimits === null || platformLimits === void 0 ? void 0 : (_platformLimits$taxCa3 = platformLimits.taxCategories) === null || _platformLimits$taxCa3 === void 0 ? void 0 : (_platformLimits$taxCa4 = _platformLimits$taxCa3.total) === null || _platformLimits$taxCa4 === void 0 ? void 0 : _platformLimits$taxCa4.limit;
9761
+ const current = platformLimits === null || platformLimits === void 0 || (_platformLimits$taxCa = platformLimits.taxCategories) === null || _platformLimits$taxCa === void 0 || (_platformLimits$taxCa = _platformLimits$taxCa.total) === null || _platformLimits$taxCa === void 0 ? void 0 : _platformLimits$taxCa.current;
9762
+ const limit = platformLimits === null || platformLimits === void 0 || (_platformLimits$taxCa2 = platformLimits.taxCategories) === null || _platformLimits$taxCa2 === void 0 || (_platformLimits$taxCa2 = _platformLimits$taxCa2.total) === null || _platformLimits$taxCa2 === void 0 ? void 0 : _platformLimits$taxCa2.limit;
9755
9763
  return jsx(PlatformLimitsStatusText, {
9756
- intlMessage: messages$h.taxCategoriesStatus,
9764
+ intlMessage: messages$i.taxCategoriesStatus,
9757
9765
  children: getPlatformLimitsStatus({
9758
9766
  limit,
9759
9767
  current,
@@ -9784,15 +9792,15 @@ const useTaxCategoriesLimits = () => {
9784
9792
  };
9785
9793
  };
9786
9794
 
9787
- function ownKeys$p(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9788
- function _objectSpread$p(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$p(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$p(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9795
+ function ownKeys$r(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9796
+ function _objectSpread$r(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$r(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$r(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9789
9797
  const injectTaxCategoriesPlatformLimits = WrappedComponent => {
9790
9798
  const WithTaxCategoriesPlatformLimits = props => {
9791
9799
  const taxCategoriesPlatformLimits = useTaxCategoriesLimits();
9792
9800
  const taxCategoriesProps = {
9793
9801
  platformLimits: taxCategoriesPlatformLimits
9794
9802
  };
9795
- return jsx(WrappedComponent, _objectSpread$p(_objectSpread$p({}, props), taxCategoriesProps));
9803
+ return jsx(WrappedComponent, _objectSpread$r(_objectSpread$r({}, props), taxCategoriesProps));
9796
9804
  };
9797
9805
  WithTaxCategoriesPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithTaxCategoriesPlatformLimits');
9798
9806
  return WithTaxCategoriesPlatformLimits;
@@ -9865,7 +9873,7 @@ const PlatformLimitsZonesNotifications = () => {
9865
9873
  };
9866
9874
  PlatformLimitsZonesNotifications.displayName = 'PlatformLimitsZonesNotifications';
9867
9875
 
9868
- var messages$g = defineMessages({
9876
+ var messages$h = defineMessages({
9869
9877
  zonesPlatformLimitReached: {
9870
9878
  id: 'PlatformLimits.Tooltip.zonesLimitReached',
9871
9879
  description: 'The message for zones platform limit being reached',
@@ -9873,17 +9881,17 @@ var messages$g = defineMessages({
9873
9881
  }
9874
9882
  });
9875
9883
 
9876
- function ownKeys$o(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9877
- function _objectSpread$o(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$o(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$o(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9884
+ function ownKeys$q(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9885
+ function _objectSpread$q(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$q(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$q(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9878
9886
  const PlatformLimitsZonesTooltip = props => {
9879
9887
  const intl = useIntl();
9880
- return jsx(Tooltip, _objectSpread$o(_objectSpread$o({}, props), {}, {
9881
- title: intl.formatMessage(messages$g.zonesPlatformLimitReached)
9888
+ return jsx(Tooltip, _objectSpread$q(_objectSpread$q({}, props), {}, {
9889
+ title: intl.formatMessage(messages$h.zonesPlatformLimitReached)
9882
9890
  }));
9883
9891
  };
9884
9892
  PlatformLimitsZonesTooltip.displayName = 'PlatformLimitsZonesTooltip';
9885
9893
 
9886
- var messages$f = defineMessages({
9894
+ var messages$g = defineMessages({
9887
9895
  zonesStatus: {
9888
9896
  id: 'PlatformLimits.Status.zones',
9889
9897
  description: 'The message for zones platform limit values',
@@ -9892,15 +9900,15 @@ var messages$f = defineMessages({
9892
9900
  });
9893
9901
 
9894
9902
  const PlatformLimitsZonesStatus = _ref => {
9895
- var _platformLimits$zones, _platformLimits$zones2, _platformLimits$zones3, _platformLimits$zones4;
9903
+ var _platformLimits$zones, _platformLimits$zones2;
9896
9904
  let total = _ref.total;
9897
9905
  const intl = useIntl();
9898
9906
  const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher(),
9899
9907
  platformLimits = _useZonesPlatformLimi.platformLimits;
9900
- const current = platformLimits === null || platformLimits === void 0 ? void 0 : (_platformLimits$zones = platformLimits.zones) === null || _platformLimits$zones === void 0 ? void 0 : (_platformLimits$zones2 = _platformLimits$zones.total) === null || _platformLimits$zones2 === void 0 ? void 0 : _platformLimits$zones2.current;
9901
- const limit = platformLimits === null || platformLimits === void 0 ? void 0 : (_platformLimits$zones3 = platformLimits.zones) === null || _platformLimits$zones3 === void 0 ? void 0 : (_platformLimits$zones4 = _platformLimits$zones3.total) === null || _platformLimits$zones4 === void 0 ? void 0 : _platformLimits$zones4.limit;
9908
+ const current = platformLimits === null || platformLimits === void 0 || (_platformLimits$zones = platformLimits.zones) === null || _platformLimits$zones === void 0 || (_platformLimits$zones = _platformLimits$zones.total) === null || _platformLimits$zones === void 0 ? void 0 : _platformLimits$zones.current;
9909
+ const limit = platformLimits === null || platformLimits === void 0 || (_platformLimits$zones2 = platformLimits.zones) === null || _platformLimits$zones2 === void 0 || (_platformLimits$zones2 = _platformLimits$zones2.total) === null || _platformLimits$zones2 === void 0 ? void 0 : _platformLimits$zones2.limit;
9902
9910
  return jsx(PlatformLimitsStatusText, {
9903
- intlMessage: messages$f.zonesStatus,
9911
+ intlMessage: messages$g.zonesStatus,
9904
9912
  children: getPlatformLimitsStatus({
9905
9913
  limit,
9906
9914
  current,
@@ -9931,15 +9939,15 @@ const useZonesLimits = () => {
9931
9939
  };
9932
9940
  };
9933
9941
 
9934
- function ownKeys$n(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9935
- function _objectSpread$n(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$n(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$n(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9942
+ function ownKeys$p(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9943
+ function _objectSpread$p(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$p(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$p(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9936
9944
  const injectZonesPlatformLimits = () => WrappedComponent => {
9937
9945
  const WithZonesPlatformLimits = props => {
9938
9946
  const zonesPlatformLimits = useZonesLimits();
9939
9947
  const zonesProps = {
9940
9948
  platformLimits: zonesPlatformLimits
9941
9949
  };
9942
- return jsx(WrappedComponent, _objectSpread$n(_objectSpread$n({}, props), zonesProps));
9950
+ return jsx(WrappedComponent, _objectSpread$p(_objectSpread$p({}, props), zonesProps));
9943
9951
  };
9944
9952
  WithZonesPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithZonesPlatformLimits');
9945
9953
  return WithZonesPlatformLimits;
@@ -10025,7 +10033,7 @@ const PlatformLimitsCustomersNotifications = () => {
10025
10033
  };
10026
10034
  PlatformLimitsCustomersNotifications.displayName = 'PlatformLimitsCustomersNotifications';
10027
10035
 
10028
- var messages$e = defineMessages({
10036
+ var messages$f = defineMessages({
10029
10037
  customersPlatformLimitReached: {
10030
10038
  id: 'PlatformLimits.Tooltip.customersLimitReached',
10031
10039
  description: 'The message for customers platform limit being reached',
@@ -10033,17 +10041,17 @@ var messages$e = defineMessages({
10033
10041
  }
10034
10042
  });
10035
10043
 
10036
- function ownKeys$m(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10037
- function _objectSpread$m(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$m(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$m(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10044
+ function ownKeys$o(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10045
+ function _objectSpread$o(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$o(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$o(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10038
10046
  const PlatformLimitsCustomersTooltip = props => {
10039
10047
  const intl = useIntl();
10040
- return jsx(Tooltip, _objectSpread$m(_objectSpread$m({}, props), {}, {
10041
- title: intl.formatMessage(messages$e.customersPlatformLimitReached)
10048
+ return jsx(Tooltip, _objectSpread$o(_objectSpread$o({}, props), {}, {
10049
+ title: intl.formatMessage(messages$f.customersPlatformLimitReached)
10042
10050
  }));
10043
10051
  };
10044
10052
  PlatformLimitsCustomersTooltip.displayName = 'PlatformLimitsCustomersTooltip';
10045
10053
 
10046
- var messages$d = defineMessages({
10054
+ var messages$e = defineMessages({
10047
10055
  customersStatus: {
10048
10056
  id: 'PlatformLimits.Status.customers',
10049
10057
  description: 'The message for customers platform limit values',
@@ -10051,8 +10059,8 @@ var messages$d = defineMessages({
10051
10059
  }
10052
10060
  });
10053
10061
 
10054
- function ownKeys$l(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10055
- function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$l(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$l(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10062
+ function ownKeys$n(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10063
+ function _objectSpread$n(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$n(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$n(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10056
10064
  var styles$b = {
10057
10065
  "status": "platform-limits-customers-status-module__status___3rXYM"
10058
10066
  };
@@ -10072,7 +10080,7 @@ const PlatformLimitsCustomersStatus = () => {
10072
10080
  children: jsx(Text.Detail, {
10073
10081
  tone: "secondary",
10074
10082
  isInline: true,
10075
- intlMessage: _objectSpread$l(_objectSpread$l({}, messages$d.customersStatus), {}, {
10083
+ intlMessage: _objectSpread$n(_objectSpread$n({}, messages$e.customersStatus), {}, {
10076
10084
  values: {
10077
10085
  current: intl.formatNumber(current),
10078
10086
  limit: intl.formatNumber(limit)
@@ -10083,7 +10091,7 @@ const PlatformLimitsCustomersStatus = () => {
10083
10091
  };
10084
10092
  PlatformLimitsCustomersStatus.displayName = 'PlatformLimitsCustomersStatus';
10085
10093
 
10086
- var messages$c = defineMessages({
10094
+ var messages$d = defineMessages({
10087
10095
  title: {
10088
10096
  id: 'PlatformLimits.Customers.modalTitle',
10089
10097
  description: 'The modal title for the customer platform limits error',
@@ -10096,10 +10104,10 @@ var messages$c = defineMessages({
10096
10104
  }
10097
10105
  });
10098
10106
 
10099
- function ownKeys$k(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10100
- function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$k(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$k(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10107
+ function ownKeys$m(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10108
+ function _objectSpread$m(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$m(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$m(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10101
10109
  var LimitsReachedErrorGraphic$1 = function LimitsReachedErrorGraphic(props) {
10102
- return jsxs("svg", _objectSpread$k(_objectSpread$k({}, props), {}, {
10110
+ return jsxs("svg", _objectSpread$m(_objectSpread$m({}, props), {}, {
10103
10111
  children: [jsx("defs", {
10104
10112
  children: jsx("path", {
10105
10113
  id: "a",
@@ -10207,7 +10215,7 @@ const PlatformLimitsCustomersErrorModal = _ref => {
10207
10215
  return jsx(InfoDialog, {
10208
10216
  isOpen: customersPlatformLimitsModalState.isModalOpen,
10209
10217
  onClose: onClose,
10210
- title: intl.formatMessage(messages$c.title),
10218
+ title: intl.formatMessage(messages$d.title),
10211
10219
  children: jsxs(Spacings.Stack, {
10212
10220
  scale: "m",
10213
10221
  alignItems: "center",
@@ -10216,7 +10224,7 @@ const PlatformLimitsCustomersErrorModal = _ref => {
10216
10224
  alignItems: "center",
10217
10225
  children: [jsx(PlatformLimitsCustomersNotifications, {}), jsx(FlatButton, {
10218
10226
  onClick: onClose,
10219
- label: intl.formatMessage(messages$c.backToList),
10227
+ label: intl.formatMessage(messages$d.backToList),
10220
10228
  icon: jsx(ListIcon, {
10221
10229
  size: "medium",
10222
10230
  color: "primary"
@@ -10271,15 +10279,15 @@ const useCustomersPlatformLimits = () => {
10271
10279
  };
10272
10280
  };
10273
10281
 
10274
- function ownKeys$j(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10275
- function _objectSpread$j(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$j(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$j(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10282
+ function ownKeys$l(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10283
+ function _objectSpread$l(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$l(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$l(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10276
10284
  const injectCustomersPlatformLimits = () => WrappedComponent => {
10277
10285
  const WithCustomersPlatformLimits = props => {
10278
10286
  const CustomersPlatformLimits = useCustomersPlatformLimits();
10279
10287
  const customersProps = {
10280
10288
  platformLimits: CustomersPlatformLimits
10281
10289
  };
10282
- return jsx(WrappedComponent, _objectSpread$j(_objectSpread$j({}, props), customersProps));
10290
+ return jsx(WrappedComponent, _objectSpread$l(_objectSpread$l({}, props), customersProps));
10283
10291
  };
10284
10292
  WithCustomersPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithCustomersPlatformLimits');
10285
10293
  return WithCustomersPlatformLimits;
@@ -10365,7 +10373,7 @@ const PlatformLimitsCustomerGroupsNotifications = () => {
10365
10373
  };
10366
10374
  PlatformLimitsCustomerGroupsNotifications.displayName = 'PlatformLimitsCustomerGroupsNotifications';
10367
10375
 
10368
- var messages$b = defineMessages({
10376
+ var messages$c = defineMessages({
10369
10377
  customerGroupsPlatformLimitReached: {
10370
10378
  id: 'PlatformLimits.Tooltip.customerGroupsLimitReached',
10371
10379
  description: 'The message for custome groups platform limit being reached',
@@ -10373,17 +10381,17 @@ var messages$b = defineMessages({
10373
10381
  }
10374
10382
  });
10375
10383
 
10376
- function ownKeys$i(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10377
- function _objectSpread$i(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$i(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$i(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10384
+ function ownKeys$k(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10385
+ function _objectSpread$k(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$k(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$k(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10378
10386
  const PlatformLimitsCustomerGroupsTooltip = props => {
10379
10387
  const intl = useIntl();
10380
- return jsx(Tooltip, _objectSpread$i(_objectSpread$i({}, props), {}, {
10381
- title: intl.formatMessage(messages$b.customerGroupsPlatformLimitReached)
10388
+ return jsx(Tooltip, _objectSpread$k(_objectSpread$k({}, props), {}, {
10389
+ title: intl.formatMessage(messages$c.customerGroupsPlatformLimitReached)
10382
10390
  }));
10383
10391
  };
10384
10392
  PlatformLimitsCustomerGroupsTooltip.displayName = 'PlatformLimitsCustomerGroupsTooltip';
10385
10393
 
10386
- var messages$a = defineMessages({
10394
+ var messages$b = defineMessages({
10387
10395
  customerGroupsStatus: {
10388
10396
  id: 'PlatformLimits.Status.customerGroups',
10389
10397
  description: 'The message for customer groups platform limit values',
@@ -10391,8 +10399,8 @@ var messages$a = defineMessages({
10391
10399
  }
10392
10400
  });
10393
10401
 
10394
- function ownKeys$h(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10395
- function _objectSpread$h(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$h(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$h(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10402
+ function ownKeys$j(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10403
+ function _objectSpread$j(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$j(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$j(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10396
10404
  var styles$9 = {
10397
10405
  "status": "platform-limits-customer-groups-status-module__status___6099G"
10398
10406
  };
@@ -10412,7 +10420,7 @@ const PlatformLimitsCustomerGroupsStatus = () => {
10412
10420
  children: jsx(Text.Detail, {
10413
10421
  tone: "secondary",
10414
10422
  isInline: true,
10415
- intlMessage: _objectSpread$h(_objectSpread$h({}, messages$a.customerGroupsStatus), {}, {
10423
+ intlMessage: _objectSpread$j(_objectSpread$j({}, messages$b.customerGroupsStatus), {}, {
10416
10424
  values: {
10417
10425
  current: intl.formatNumber(current),
10418
10426
  limit: intl.formatNumber(limit)
@@ -10423,7 +10431,7 @@ const PlatformLimitsCustomerGroupsStatus = () => {
10423
10431
  };
10424
10432
  PlatformLimitsCustomerGroupsStatus.displayName = 'PlatformLimitsCustomerGroupsStatus';
10425
10433
 
10426
- var messages$9 = defineMessages({
10434
+ var messages$a = defineMessages({
10427
10435
  title: {
10428
10436
  id: 'PlatformLimits.CustomerGroups.modalTitle',
10429
10437
  description: 'The modal title for the customer groups platform limits error',
@@ -10436,10 +10444,10 @@ var messages$9 = defineMessages({
10436
10444
  }
10437
10445
  });
10438
10446
 
10439
- function ownKeys$g(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10440
- function _objectSpread$g(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$g(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$g(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10447
+ function ownKeys$i(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10448
+ function _objectSpread$i(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$i(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$i(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10441
10449
  var LimitsReachedErrorGraphic = function LimitsReachedErrorGraphic(props) {
10442
- return jsxs("svg", _objectSpread$g(_objectSpread$g({}, props), {}, {
10450
+ return jsxs("svg", _objectSpread$i(_objectSpread$i({}, props), {}, {
10443
10451
  children: [jsx("defs", {
10444
10452
  children: jsx("path", {
10445
10453
  id: "a",
@@ -10547,7 +10555,7 @@ const PlatformLimitsCustomerGroupsErrorModal = _ref => {
10547
10555
  return jsx(InfoDialog, {
10548
10556
  isOpen: customerGroupsPlatformLimitsModalState.isModalOpen,
10549
10557
  onClose: onClose,
10550
- title: intl.formatMessage(messages$9.title),
10558
+ title: intl.formatMessage(messages$a.title),
10551
10559
  children: jsxs(Spacings.Stack, {
10552
10560
  scale: "m",
10553
10561
  alignItems: "center",
@@ -10556,7 +10564,7 @@ const PlatformLimitsCustomerGroupsErrorModal = _ref => {
10556
10564
  alignItems: "center",
10557
10565
  children: [jsx(PlatformLimitsCustomerGroupsNotifications, {}), jsx(FlatButton, {
10558
10566
  onClick: onClose,
10559
- label: intl.formatMessage(messages$9.backToList),
10567
+ label: intl.formatMessage(messages$a.backToList),
10560
10568
  icon: jsx(ListIcon, {
10561
10569
  size: "medium",
10562
10570
  color: "primary"
@@ -10611,15 +10619,15 @@ const useCustomerGroupsPlatformLimits = () => {
10611
10619
  };
10612
10620
  };
10613
10621
 
10614
- function ownKeys$f(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10615
- function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$f(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$f(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10622
+ function ownKeys$h(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10623
+ function _objectSpread$h(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$h(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$h(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10616
10624
  const injectCustomerGroupsPlatformLimits = () => WrappedComponent => {
10617
10625
  const WithCustomerGroupsPlatformLimits = props => {
10618
10626
  const CustomerGroupsPlatformLimits = useCustomerGroupsPlatformLimits();
10619
10627
  const customersProps = {
10620
10628
  platformLimits: CustomerGroupsPlatformLimits
10621
10629
  };
10622
- return jsx(WrappedComponent, _objectSpread$f(_objectSpread$f({}, props), customersProps));
10630
+ return jsx(WrappedComponent, _objectSpread$h(_objectSpread$h({}, props), customersProps));
10623
10631
  };
10624
10632
  WithCustomerGroupsPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithCustomerGroupsPlatformLimits');
10625
10633
  return WithCustomerGroupsPlatformLimits;
@@ -10674,7 +10682,7 @@ var fetchPimIndexStatus = ((apolloClient, projectKey) => async dispatch => {
10674
10682
  }
10675
10683
  });
10676
10684
 
10677
- var messages$8 = defineMessages({
10685
+ var messages$9 = defineMessages({
10678
10686
  indexingSucceed: {
10679
10687
  id: 'Products.PimIndexer.Notifications.indexingSucceed',
10680
10688
  description: 'Message to be shown to user when PIM successfully finishes initial project indexing.',
@@ -10712,8 +10720,8 @@ const defaultValue = {
10712
10720
  */
10713
10721
  const PimIndexerContext = /*#__PURE__*/createContext(defaultValue);
10714
10722
 
10715
- function ownKeys$e(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10716
- function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$e(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$e(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10723
+ function ownKeys$g(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10724
+ function _objectSpread$g(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$g(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$g(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10717
10725
  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(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10718
10726
  function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10719
10727
  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 } } } };
@@ -10799,7 +10807,7 @@ let PimIndexerProvider = /*#__PURE__*/function (_PureComponent) {
10799
10807
  _this.props.notifications.showNotification({
10800
10808
  kind: 'error',
10801
10809
  domain: DOMAINS.SIDE,
10802
- text: _this.props.intl.formatMessage(messages$8.indexingFailed)
10810
+ text: _this.props.intl.formatMessage(messages$9.indexingFailed)
10803
10811
  });
10804
10812
  };
10805
10813
  _this.getIndexingProgress = async () => {
@@ -10840,7 +10848,7 @@ let PimIndexerProvider = /*#__PURE__*/function (_PureComponent) {
10840
10848
  _this.props.notifications.showNotification({
10841
10849
  kind: 'success',
10842
10850
  domain: DOMAINS.SIDE,
10843
- text: _this.props.intl.formatMessage(messages$8.indexingSucceed)
10851
+ text: _this.props.intl.formatMessage(messages$9.indexingSucceed)
10844
10852
  },
10845
10853
  // because the indexing may take so long, the success notification
10846
10854
  // may be dismissed without being seen by the user. Set `dismissAfter`
@@ -10889,7 +10897,7 @@ let PimIndexerProvider = /*#__PURE__*/function (_PureComponent) {
10889
10897
  shouldIndexProductTypes: isIndexingProductTypes
10890
10898
  }
10891
10899
  });
10892
- _this.setState(_objectSpread$e(_objectSpread$e({
10900
+ _this.setState(_objectSpread$g(_objectSpread$g({
10893
10901
  isLoading: false,
10894
10902
  isProjectBeingIndexedByPim: true
10895
10903
  }, getIndexingJobIds(indexMutationResult)), {}, {
@@ -10914,7 +10922,7 @@ let PimIndexerProvider = /*#__PURE__*/function (_PureComponent) {
10914
10922
  key: "render",
10915
10923
  value: function render() {
10916
10924
  return jsx(PimIndexerContext.Provider, {
10917
- value: _objectSpread$e(_objectSpread$e({}, this.state), {}, {
10925
+ value: _objectSpread$g(_objectSpread$g({}, this.state), {}, {
10918
10926
  attemptToRefreshProducts: this.attemptToRefreshProducts,
10919
10927
  indexProject: this.indexProject
10920
10928
  }),
@@ -10956,13 +10964,13 @@ let WithPimIndexer = /*#__PURE__*/function (_PureComponent) {
10956
10964
  }(PureComponent);
10957
10965
  WithPimIndexer.displayName = 'WithPimIndexer';
10958
10966
 
10959
- function ownKeys$d(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10960
- function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$d(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$d(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10967
+ function ownKeys$f(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10968
+ function _objectSpread$f(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$f(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$f(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
10961
10969
  var injectPimIndexer = (function () {
10962
10970
  let propName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'pimIndexer';
10963
10971
  return Component => {
10964
10972
  const WrappedComponent = props => jsx(WithPimIndexer, {
10965
- children: pimIndexerProps => jsx(Component, _objectSpread$d(_objectSpread$d({}, props), {}, {
10973
+ children: pimIndexerProps => jsx(Component, _objectSpread$f(_objectSpread$f({}, props), {}, {
10966
10974
  [propName]: pimIndexerProps
10967
10975
  }))
10968
10976
  });
@@ -10975,7 +10983,7 @@ function usePimIndexer() {
10975
10983
  return useContext(PimIndexerContext);
10976
10984
  }
10977
10985
 
10978
- var messages$7 = defineMessages({
10986
+ var messages$8 = defineMessages({
10979
10987
  yes: {
10980
10988
  id: 'BooleanField.yes',
10981
10989
  description: 'The label for boolean attribute `true` value',
@@ -10997,8 +11005,8 @@ const BooleanField = props => {
10997
11005
  var _context;
10998
11006
  let selectedValue;
10999
11007
  if (typeof props.value === 'boolean') selectedValue = getBooleanValue(props.value);else if (props.isMulti && _Array$isArray(props.value) && props.value.length) selectedValue = props.value.length === 2 ? 'all' : getBooleanValue(props.value[0]);
11000
- const yesLabel = props.intl.formatMessage(messages$7.yes);
11001
- const noLabel = props.intl.formatMessage(messages$7.no);
11008
+ const yesLabel = props.intl.formatMessage(messages$8.yes);
11009
+ const noLabel = props.intl.formatMessage(messages$8.no);
11002
11010
  const options = [{
11003
11011
  value: 'yes',
11004
11012
  label: yesLabel
@@ -11036,7 +11044,7 @@ function getBooleanValue(value) {
11036
11044
  return value === false ? 'no' : 'yes';
11037
11045
  }
11038
11046
 
11039
- var messages$6 = defineMessages({
11047
+ var messages$7 = defineMessages({
11040
11048
  label: {
11041
11049
  id: 'MissingValueField.label',
11042
11050
  description: 'The label text for the missing values option',
@@ -11044,20 +11052,20 @@ var messages$6 = defineMessages({
11044
11052
  }
11045
11053
  });
11046
11054
 
11047
- function ownKeys$c(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11048
- function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$c(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$c(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
11055
+ function ownKeys$e(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11056
+ function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$e(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$e(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
11049
11057
  const MissingValueField = props => jsx(CheckboxInput, {
11050
11058
  name: "missing-value",
11051
11059
  isChecked: props.isChecked,
11052
11060
  onChange: props.onChange,
11053
- children: jsx(FormattedMessage, _objectSpread$c({}, messages$6.label))
11061
+ children: jsx(FormattedMessage, _objectSpread$e({}, messages$7.label))
11054
11062
  });
11055
11063
  MissingValueField.defaultProps = {
11056
11064
  isChecked: false
11057
11065
  };
11058
11066
 
11059
- function ownKeys$b(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11060
- function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$b(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$b(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
11067
+ function ownKeys$d(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11068
+ function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$d(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$d(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
11061
11069
  var styles$7 = {
11062
11070
  "button": "button-module__button___1OzVf",
11063
11071
  "cancel": "button-module__cancel___1-jYL button-module__button___1OzVf",
@@ -11091,7 +11099,7 @@ const Button = props => {
11091
11099
 
11092
11100
  // Pass only `data-*` props
11093
11101
  const dataProps = filterDataAttributes(props);
11094
- return jsx("button", _objectSpread$b(_objectSpread$b({
11102
+ return jsx("button", _objectSpread$d(_objectSpread$d({
11095
11103
  onClick: isDisabled ? null : onClick,
11096
11104
  type: props.type,
11097
11105
  className: classnames(styles$7.button, isDisabled ? styles$7.disabled : null, className),
@@ -11106,7 +11114,7 @@ Button.defaultProps = {
11106
11114
  type: 'button'
11107
11115
  };
11108
11116
 
11109
- var messages$5 = defineMessages({
11117
+ var messages$6 = defineMessages({
11110
11118
  chooseFile: {
11111
11119
  id: 'ButtonFileInput.chooseFile',
11112
11120
  description: 'The label text of the field for upload local file',
@@ -11114,8 +11122,8 @@ var messages$5 = defineMessages({
11114
11122
  }
11115
11123
  });
11116
11124
 
11117
- function ownKeys$a(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11118
- function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$a(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$a(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
11125
+ function ownKeys$c(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11126
+ function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$c(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$c(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
11119
11127
  var styles$6 = {
11120
11128
  "button": "file-input-module__button___2KypN",
11121
11129
  "input": "file-input-module__input___3MP4D"
@@ -11135,7 +11143,7 @@ const FileInput = props => jsx("label", {
11135
11143
  });
11136
11144
  FileInput.displayName = 'FileInput';
11137
11145
  FileInput.defaultProps = {
11138
- children: jsx(FormattedMessage, _objectSpread$a({}, messages$5.chooseFile)),
11146
+ children: jsx(FormattedMessage, _objectSpread$c({}, messages$6.chooseFile)),
11139
11147
  allowMultiple: false,
11140
11148
  acceptTypes: 'image/png,image/jpeg,image/gif'
11141
11149
  };
@@ -11182,7 +11190,7 @@ const ScrollToFieldError = () => {
11182
11190
  return null;
11183
11191
  };
11184
11192
 
11185
- var messages$4 = defineMessages({
11193
+ var messages$5 = defineMessages({
11186
11194
  buttonLabel: {
11187
11195
  id: 'SearchInput.buttonLabel',
11188
11196
  description: 'Label for "Search" button.',
@@ -11237,15 +11245,15 @@ const SelectableFieldSearchInput = props => {
11237
11245
  });
11238
11246
  },
11239
11247
  onReset: props.onReset,
11240
- placeholder: (_props$placeholder = props.placeholder) !== null && _props$placeholder !== void 0 ? _props$placeholder : intl.formatMessage(messages$4.placeholder),
11248
+ placeholder: (_props$placeholder = props.placeholder) !== null && _props$placeholder !== void 0 ? _props$placeholder : intl.formatMessage(messages$5.placeholder),
11241
11249
  isDisabled: props.disabled
11242
11250
  })
11243
11251
  });
11244
11252
  };
11245
11253
  SelectableFieldSearchInput.displayName = 'SelectableFieldSearchInput';
11246
11254
 
11247
- function ownKeys$9(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11248
- function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$9(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$9(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
11255
+ function ownKeys$b(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11256
+ function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$b(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$b(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
11249
11257
  const StoreSelectField = props => {
11250
11258
  return jsx(Constraints.Horizontal, {
11251
11259
  max: props.horizontalConstraint,
@@ -11259,7 +11267,7 @@ const StoreSelectField = props => {
11259
11267
  htmlFor: props.id,
11260
11268
  hasRequiredIndicator: props.isRequired,
11261
11269
  isBold: true
11262
- }), jsx(StoreSelectInput, _objectSpread$9(_objectSpread$9({
11270
+ }), jsx(StoreSelectInput, _objectSpread$b(_objectSpread$b({
11263
11271
  projectKey: props.projectKey,
11264
11272
  id: props.id,
11265
11273
  name: props.name,
@@ -11299,8 +11307,8 @@ StoreSelectField.defaultProps = {
11299
11307
  };
11300
11308
 
11301
11309
  var _templateObject;
11302
- function ownKeys$8(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11303
- function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var _context5, _context6; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context5 = ownKeys$8(Object(source), !0)).call(_context5, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context6 = ownKeys$8(Object(source))).call(_context6, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
11310
+ function ownKeys$a(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11311
+ function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var _context5, _context6; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context5 = ownKeys$a(Object(source), !0)).call(_context5, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context6 = ownKeys$a(Object(source))).call(_context6, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
11304
11312
  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(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11305
11313
  function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11306
11314
  var styles$3 = {
@@ -11317,7 +11325,7 @@ const validateRequired = value => {
11317
11325
  };
11318
11326
  const VALIDATOR_REQUIRED = {
11319
11327
  name: 'required',
11320
- message: messages$J.required,
11328
+ message: messages$K.required,
11321
11329
  permanent: true,
11322
11330
  validators: {
11323
11331
  change(value) {
@@ -11331,7 +11339,7 @@ const VALIDATOR_REQUIRED = {
11331
11339
  };
11332
11340
  const VALIDATOR_NUMERIC = {
11333
11341
  name: 'numeric',
11334
- message: messages$J.numeric,
11342
+ message: messages$K.numeric,
11335
11343
  permanent: false,
11336
11344
  validators: {
11337
11345
  change: v => {
@@ -11346,7 +11354,7 @@ const VALIDATOR_NUMERIC = {
11346
11354
  };
11347
11355
  const VALIDATOR_INTEGER = {
11348
11356
  name: 'integer',
11349
- message: messages$J.integer,
11357
+ message: messages$K.integer,
11350
11358
  permanent: false,
11351
11359
  validators: {
11352
11360
  change: v => {
@@ -11361,7 +11369,7 @@ const VALIDATOR_INTEGER = {
11361
11369
  };
11362
11370
  ({
11363
11371
  name: 'email',
11364
- message: messages$J.email,
11372
+ message: messages$K.email,
11365
11373
  permanent: false,
11366
11374
  validators: {
11367
11375
  // Note: it's a bit weird to validate it on every change,
@@ -11450,7 +11458,7 @@ function validatedInput(InnerComponent, validators) {
11450
11458
  * so it must be an invalid numeric value
11451
11459
  */
11452
11460
  _this.handleInvalid = () => {
11453
- const nextValidStatus = _objectSpread$8({}, _this.state.validStatus);
11461
+ const nextValidStatus = _objectSpread$a({}, _this.state.validStatus);
11454
11462
  if (has(nextValidStatus, 'numeric')) {
11455
11463
  nextValidStatus.numeric = false;
11456
11464
  _this.conditionalSetValidStatus(nextValidStatus);
@@ -11484,10 +11492,10 @@ function validatedInput(InnerComponent, validators) {
11484
11492
  process.env.NODE_ENV !== "production" ? warning(hasWarned, warningMessage) : void 0;
11485
11493
  hasWarned = true;
11486
11494
  }
11487
- // eslint-disable-next-line camelcase
11488
11495
  }, {
11489
- key: "UNSAFE_componentWillReceiveProps",
11490
- value: function UNSAFE_componentWillReceiveProps(nextProps) {
11496
+ key: "componentDidUpdate",
11497
+ value: function componentDidUpdate() {
11498
+ const nextProps = this.props;
11491
11499
  if (nextProps.attribute && nextProps.attribute.value || nextProps.value) {
11492
11500
  this.resetValidity();
11493
11501
  this.handleChange(nextProps.value, {
@@ -11502,7 +11510,7 @@ function validatedInput(InnerComponent, validators) {
11502
11510
  if (prev) return this.state.validStatus[v.name];
11503
11511
  return prev;
11504
11512
  }, true);
11505
- const componentProps = _objectSpread$8(_objectSpread$8({}, this.props), {}, {
11513
+ const componentProps = _objectSpread$a(_objectSpread$a({}, this.props), {}, {
11506
11514
  [blurHandler || 'onBlurValue']: this.handleBlur,
11507
11515
  [changeHandler || 'onChange']: this.handleChange,
11508
11516
  onInvalidValue: this.handleInvalid,
@@ -11519,7 +11527,7 @@ function validatedInput(InnerComponent, validators) {
11519
11527
  components: {
11520
11528
  WrapperComponent: ToolTipWrapperComponent
11521
11529
  },
11522
- children: jsx(_InnerComponent, _objectSpread$8({}, componentProps))
11530
+ children: jsx(_InnerComponent, _objectSpread$a({}, componentProps))
11523
11531
  })
11524
11532
  });
11525
11533
  }
@@ -11574,7 +11582,7 @@ function simpleInput(type) {
11574
11582
  }, _class;
11575
11583
  }
11576
11584
 
11577
- var messages$3 = defineMessages({
11585
+ var messages$4 = defineMessages({
11578
11586
  customFieldsError: {
11579
11587
  id: 'CustomFieldsError.Error',
11580
11588
  description: 'The message when there are errors adding custom fields',
@@ -11582,14 +11590,14 @@ var messages$3 = defineMessages({
11582
11590
  }
11583
11591
  });
11584
11592
 
11585
- function ownKeys$7(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11586
- function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$7(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$7(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
11593
+ function ownKeys$9(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11594
+ function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$9(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$9(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
11587
11595
  const CustomFieldsErrorTextNotification = props => {
11588
11596
  var _context;
11589
11597
  return jsxs(Spacings.Stack, {
11590
11598
  scale: "s",
11591
11599
  children: [jsx(Text.Wrap, {
11592
- intlMessage: _objectSpread$7({}, messages$3.customFieldsError)
11600
+ intlMessage: _objectSpread$9({}, messages$4.customFieldsError)
11593
11601
  }), jsx(Spacings.Stack, {
11594
11602
  scale: "xs",
11595
11603
  children: _mapInstanceProperty(_context = props.formErrors).call(_context, formError => jsx(Text.Detail, {
@@ -11601,7 +11609,7 @@ const CustomFieldsErrorTextNotification = props => {
11601
11609
  };
11602
11610
  CustomFieldsErrorTextNotification.displayName = 'CustomFieldsErrorTextNotification';
11603
11611
 
11604
- const messages$2 = defineMessages({
11612
+ const messages$3 = defineMessages({
11605
11613
  from: {
11606
11614
  id: 'LabelRange.from',
11607
11615
  description: 'The label for "from" range',
@@ -11614,8 +11622,8 @@ const messages$2 = defineMessages({
11614
11622
  }
11615
11623
  });
11616
11624
 
11617
- function ownKeys$6(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11618
- function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$6(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$6(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
11625
+ function ownKeys$8(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11626
+ function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$8(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$8(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
11619
11627
  var styles$2 = {
11620
11628
  "label": "label-range-module__label___3Tb0p"
11621
11629
  };
@@ -11623,12 +11631,12 @@ const LabelRange = _ref => {
11623
11631
  let type = _ref.type;
11624
11632
  return jsx("label", {
11625
11633
  className: styles$2.label,
11626
- children: jsx(FormattedMessage, _objectSpread$6({}, messages$2[type]))
11634
+ children: jsx(FormattedMessage, _objectSpread$8({}, messages$3[type]))
11627
11635
  });
11628
11636
  };
11629
11637
  LabelRange.displayName = 'LabelRange';
11630
11638
 
11631
- var messages$1 = defineMessages({
11639
+ var messages$2 = defineMessages({
11632
11640
  filterWholeInput: {
11633
11641
  id: 'MultiValueSearchInput.buttonLabel',
11634
11642
  description: 'Label for "MultiValueSearchInput" filter whole input.',
@@ -11641,8 +11649,8 @@ var messages$1 = defineMessages({
11641
11649
  }
11642
11650
  });
11643
11651
 
11644
- function ownKeys$5(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11645
- function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$5(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$5(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
11652
+ function ownKeys$7(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11653
+ function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$7(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$7(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
11646
11654
  var styles$1 = {
11647
11655
  "container": "multi-value-search-input-module__container___2u64d",
11648
11656
  "searchInput": "multi-value-search-input-module__searchInput___363nj",
@@ -11666,7 +11674,7 @@ const MultiValueSelectorDropdown = props => {
11666
11674
  }),
11667
11675
  children: jsx(Text.Body, {
11668
11676
  truncate: true,
11669
- intlMessage: _objectSpread$5(_objectSpread$5({}, messages$1.filterWholeInput), {}, {
11677
+ intlMessage: _objectSpread$7(_objectSpread$7({}, messages$2.filterWholeInput), {}, {
11670
11678
  values: {
11671
11679
  values: "\"".concat(props.value, "\"")
11672
11680
  }
@@ -11679,7 +11687,7 @@ const MultiValueSelectorDropdown = props => {
11679
11687
  }),
11680
11688
  children: jsx(Text.Body, {
11681
11689
  truncate: true,
11682
- intlMessage: _objectSpread$5(_objectSpread$5({}, messages$1.filterSeparateValues), {}, {
11690
+ intlMessage: _objectSpread$7(_objectSpread$7({}, messages$2.filterSeparateValues), {}, {
11683
11691
  values: {
11684
11692
  values: "\"".concat(props.multiValue.join('", "'), "\"") || props.value
11685
11693
  }
@@ -11790,8 +11798,8 @@ const MultiValueSearchInput = props => {
11790
11798
  };
11791
11799
  MultiValueSearchInput.displayName = 'MultiValueSearchInput';
11792
11800
 
11793
- function ownKeys$4(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11794
- function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$4(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$4(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
11801
+ function ownKeys$6(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11802
+ function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$6(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$6(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
11795
11803
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11796
11804
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11797
11805
  var styles = {
@@ -11854,7 +11862,7 @@ let NumericFormatInput = /*#__PURE__*/function (_PureComponent) {
11854
11862
  value: function render() {
11855
11863
  const separators = getSeparatorsForLocale(this.props.numberFormat);
11856
11864
  const dataAttributes = filterDataAttributes(this.props);
11857
- return jsx(Cleave, _objectSpread$4({
11865
+ return jsx(Cleave, _objectSpread$6({
11858
11866
  placeholder: this.props.placeholder,
11859
11867
  htmlRef: this.registerInputRef,
11860
11868
  options: {
@@ -12150,8 +12158,8 @@ const createNextSortDefinition = _ref => {
12150
12158
  }
12151
12159
  };
12152
12160
 
12153
- function ownKeys$3(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12154
- function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$3(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$3(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
12161
+ function ownKeys$5(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12162
+ function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$5(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$5(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
12155
12163
  /**
12156
12164
  * Creates reducer
12157
12165
  * @param {Object} initialState
@@ -12167,13 +12175,13 @@ function createReducer(initialState, actionHandlers) {
12167
12175
 
12168
12176
  // In case reducer ignored action, avoid creating new object
12169
12177
  const newSubstate = reduce(newState, action);
12170
- if (newSubstate) return _objectSpread$3(_objectSpread$3({}, newState), newSubstate);
12178
+ if (newSubstate) return _objectSpread$5(_objectSpread$5({}, newState), newSubstate);
12171
12179
  return newState;
12172
12180
  };
12173
12181
  }
12174
12182
 
12175
- function ownKeys$2(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12176
- function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$2(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$2(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
12183
+ function ownKeys$4(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12184
+ function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$4(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$4(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
12177
12185
  function updateStatusInList(mergeData) {
12178
12186
  return (state, _ref) => {
12179
12187
  let payload = _ref.payload;
@@ -12182,15 +12190,15 @@ function updateStatusInList(mergeData) {
12182
12190
  results[index] = mergeData(payload, results[index]);
12183
12191
  results[index].checked = false;
12184
12192
  return {
12185
- currentQueryResult: _objectSpread$2(_objectSpread$2({}, state.currentQueryResult), {}, {
12193
+ currentQueryResult: _objectSpread$4(_objectSpread$4({}, state.currentQueryResult), {}, {
12186
12194
  results
12187
12195
  })
12188
12196
  };
12189
12197
  };
12190
12198
  }
12191
12199
 
12192
- function ownKeys$1(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12193
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
12200
+ function ownKeys$3(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12201
+ function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$3(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$3(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
12194
12202
  const identity = value => value;
12195
12203
  function createResourceReducer(options) {
12196
12204
  const _options$constantsPre = options.constantsPrefix,
@@ -12200,7 +12208,7 @@ function createResourceReducer(options) {
12200
12208
  _options$initialState = options.initialState,
12201
12209
  extendInitialState = _options$initialState === void 0 ? {} : _options$initialState;
12202
12210
  const mergeData = options.mergeData || identity;
12203
- const initialState = _objectSpread$1({
12211
+ const initialState = _objectSpread$3({
12204
12212
  currentQueryResult: {
12205
12213
  count: 0,
12206
12214
  offset: 0,
@@ -12220,7 +12228,7 @@ function createResourceReducer(options) {
12220
12228
  let payload = _ref.payload;
12221
12229
  const results = state.currentQueryResult.results;
12222
12230
  return {
12223
- currentQueryResult: _objectSpread$1(_objectSpread$1({}, state.currentQueryResult), {}, {
12231
+ currentQueryResult: _objectSpread$3(_objectSpread$3({}, state.currentQueryResult), {}, {
12224
12232
  results: _filterInstanceProperty(results).call(results, _ref2 => {
12225
12233
  let id = _ref2.id;
12226
12234
  return id !== payload.id;
@@ -12298,17 +12306,17 @@ function isValidISODateTime(_ref3) {
12298
12306
  }
12299
12307
 
12300
12308
  const validateSingleOptionEnum = (selectedOption, intl) => {
12301
- if (validateSingleFilter(selectedOption)) return intl.formatMessage(messages$J.required);
12309
+ if (validateSingleFilter(selectedOption)) return intl.formatMessage(messages$K.required);
12302
12310
  return null;
12303
12311
  };
12304
12312
  const validateMultiOptionEnum = (selectedOption, intl) => {
12305
- if (validateSingleFilter(selectedOption) || selectedOption.value.length === 0) return intl.formatMessage(messages$J.required);
12313
+ if (validateSingleFilter(selectedOption) || selectedOption.value.length === 0) return intl.formatMessage(messages$K.required);
12306
12314
  return null;
12307
12315
  };
12308
12316
 
12309
12317
  // eslint-disable-next-line import/prefer-default-export
12310
12318
  const validateText = (text, intl) => {
12311
- if (validateSingleFilter(text)) return intl.formatMessage(messages$J.required);
12319
+ if (validateSingleFilter(text)) return intl.formatMessage(messages$K.required);
12312
12320
  return null;
12313
12321
  };
12314
12322
 
@@ -12395,7 +12403,7 @@ const safelyAddFallback = function (string) {
12395
12403
  return string === '' ? fallback : string !== null && string !== void 0 ? string : fallback;
12396
12404
  };
12397
12405
 
12398
- var messages = defineMessages({
12406
+ var messages$1 = defineMessages({
12399
12407
  booleanAttributeTrue: {
12400
12408
  id: 'Products.ProductList.column.booleanTrue',
12401
12409
  description: 'The message to show to user for displaying boolean attribute value of true',
@@ -12588,7 +12596,7 @@ const getAttributeValueByType = _ref12 => {
12588
12596
  case 'boolean':
12589
12597
  {
12590
12598
  if (isNil$1(value)) return NO_VALUE_FALLBACK;
12591
- return value ? intl.formatMessage(messages.booleanAttributeTrue) : intl.formatMessage(messages.booleanAttributeFalse);
12599
+ return value ? intl.formatMessage(messages$1.booleanAttributeTrue) : intl.formatMessage(messages$1.booleanAttributeFalse);
12592
12600
  }
12593
12601
  case 'reference':
12594
12602
  return value.id || NO_VALUE_FALLBACK;
@@ -12724,8 +12732,8 @@ const getTimeZoneId = memoize((selectedTimeZone, timeZones) => {
12724
12732
  } else {
12725
12733
  var _context3;
12726
12734
  const fallbackTimeZoneId = _findInstanceProperty(_context3 = _Object$keys(timeZones)).call(_context3, timeZoneId => {
12727
- var _timeZones$timeZoneId, _timeZones$timeZoneId2;
12728
- return (_timeZones$timeZoneId = timeZones[timeZoneId]) === null || _timeZones$timeZoneId === void 0 ? void 0 : (_timeZones$timeZoneId2 = _timeZones$timeZoneId.translationFor) === null || _timeZones$timeZoneId2 === void 0 ? void 0 : _someInstanceProperty(_timeZones$timeZoneId2).call(_timeZones$timeZoneId2, fallbackTimeZone => fallbackTimeZone === selectedTimeZone);
12735
+ var _timeZones$timeZoneId;
12736
+ return (_timeZones$timeZoneId = timeZones[timeZoneId]) === null || _timeZones$timeZoneId === void 0 || (_timeZones$timeZoneId = _timeZones$timeZoneId.translationFor) === null || _timeZones$timeZoneId === void 0 ? void 0 : _someInstanceProperty(_timeZones$timeZoneId).call(_timeZones$timeZoneId, fallbackTimeZone => fallbackTimeZone === selectedTimeZone);
12729
12737
  });
12730
12738
  if (fallbackTimeZoneId !== null && fallbackTimeZoneId !== void 0 && fallbackTimeZoneId.length) {
12731
12739
  return fallbackTimeZoneId.toString();
@@ -12741,8 +12749,8 @@ const getTimeZoneLabel = memoize((selectedTimeZone, timeZones) => {
12741
12749
  return _concatInstanceProperty(_context4 = "(GMT ".concat(timeZoneData.offset, ") ")).call(_context4, timeZoneData.name);
12742
12750
  });
12743
12751
 
12744
- function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12745
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
12752
+ function ownKeys$2(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12753
+ function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$2(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$2(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
12746
12754
  function withPendingRequests() {
12747
12755
  let propName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'pendingRequests';
12748
12756
  return Component => {
@@ -12751,13 +12759,184 @@ function withPendingRequests() {
12751
12759
  const pendingProp = {
12752
12760
  [propName]: pendingRequests
12753
12761
  };
12754
- return jsx(Component, _objectSpread(_objectSpread({}, props), pendingProp));
12762
+ return jsx(Component, _objectSpread$2(_objectSpread$2({}, props), pendingProp));
12755
12763
  };
12756
12764
  WrappedComponent.displayName = wrapDisplayName(Component, 'withPendingRequests');
12757
12765
  return WrappedComponent;
12758
12766
  };
12759
12767
  }
12760
12768
 
12769
+ var messages = defineMessages({
12770
+ noCustomFields: {
12771
+ id: 'CustomTypesSubform.noCustomFields',
12772
+ description: 'The label when there are no custom fields defined',
12773
+ defaultMessage: 'There are no custom fields related to this type.'
12774
+ },
12775
+ noCustomType: {
12776
+ id: 'CustomTypesSubform.noCustomType',
12777
+ description: 'The label when there is no custom type selected',
12778
+ defaultMessage: 'No custom type is selected. Please select a custom type from the dropdown.'
12779
+ },
12780
+ noTypes: {
12781
+ id: 'CustomTypesSubform.noTypes',
12782
+ description: 'The label when there is no custom type defined in the project',
12783
+ defaultMessage: 'There are no custom types defined. To extend the information, create custom types through the API first.'
12784
+ },
12785
+ title: {
12786
+ id: 'CustomTypesSubform.title',
12787
+ description: 'Fallback title for the subform',
12788
+ defaultMessage: 'Custom fields'
12789
+ },
12790
+ typesPlaceholder: {
12791
+ id: 'CustomTypesSubform.typesPlaceholder',
12792
+ description: 'The placeholder for the types',
12793
+ defaultMessage: 'Select...'
12794
+ }
12795
+ });
12796
+
12797
+ function ownKeys$1(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12798
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
12799
+ const typeDefinitionsExist = typeDefinitions => {
12800
+ return typeDefinitions.length > 0;
12801
+ };
12802
+ const typeDefinitionSelected = formValues => {
12803
+ var _formValues$FIELD_NAM, _formValues$FIELD_NAM2;
12804
+ return ((_formValues$FIELD_NAM = formValues[FIELD_NAME]) === null || _formValues$FIELD_NAM === void 0 ? void 0 : _formValues$FIELD_NAM.type) && ((_formValues$FIELD_NAM2 = formValues[FIELD_NAME]) === null || _formValues$FIELD_NAM2 === void 0 || (_formValues$FIELD_NAM2 = _formValues$FIELD_NAM2.type) === null || _formValues$FIELD_NAM2 === void 0 ? void 0 : _formValues$FIELD_NAM2.obj);
12805
+ };
12806
+ const typeDefinitionContainsFieldDefinitions = formValues => {
12807
+ return formValues[FIELD_NAME].type.obj.key && formValues[FIELD_NAME].type.obj.fieldDefinitions.length > 0;
12808
+ };
12809
+ const CustomFieldsInputWrapper = _ref => {
12810
+ let typeDefinitions = _ref.typeDefinitions,
12811
+ isReadOnly = _ref.isReadOnly;
12812
+ const _useFormikContext = useFormikContext(),
12813
+ formValues = _valuesInstanceProperty(_useFormikContext);
12814
+ if (!typeDefinitionsExist(typeDefinitions)) {
12815
+ return jsx(FormattedMessage, _objectSpread$1({}, messages.noTypes));
12816
+ }
12817
+ if (!typeDefinitionSelected(formValues)) {
12818
+ return jsx(FormattedMessage, _objectSpread$1({}, messages.noCustomType));
12819
+ }
12820
+ if (!typeDefinitionContainsFieldDefinitions(formValues)) {
12821
+ return jsx(FormattedMessage, _objectSpread$1({}, messages.noCustomFields));
12822
+ }
12823
+ return jsx(Constraints.Horizontal, {
12824
+ max: "scale",
12825
+ children: jsx(CustomFields, {
12826
+ isReadOnly: isReadOnly,
12827
+ name: "".concat(FIELD_NAME, ".fields"),
12828
+ fieldDefinitions: formValues[FIELD_NAME].type.obj.fieldDefinitions
12829
+ })
12830
+ });
12831
+ };
12832
+ CustomFieldsInputWrapper.displayName = 'CustomFieldsInputWrapper';
12833
+
12834
+ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12835
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
12836
+ const FIELD_NAME = 'custom';
12837
+
12838
+ // Creates dropdown options
12839
+ const mapTypeDefinitionsToOptions = (typeDefinitions, language, languages, selectedTypeDefinitionId) => {
12840
+ return _mapInstanceProperty(typeDefinitions).call(typeDefinitions, typeDefinition => ({
12841
+ isDisabled: selectedTypeDefinitionId && selectedTypeDefinitionId === typeDefinition.type.id,
12842
+ value: typeDefinition.type.key,
12843
+ label: formatLocalizedString(typeDefinition.type, {
12844
+ key: 'name',
12845
+ locale: language,
12846
+ fallbackOrder: languages
12847
+ })
12848
+ }));
12849
+ };
12850
+
12851
+ // Used to generate form state when the user selects a type definition from the dropdown
12852
+ const createFormStateFromTypeDefinition = selectedTypeDefinition => {
12853
+ return {
12854
+ type: {
12855
+ id: selectedTypeDefinition.type.id,
12856
+ obj: {
12857
+ fieldDefinitions: selectedTypeDefinition.type.fieldDefinitions,
12858
+ key: selectedTypeDefinition.type.key
12859
+ }
12860
+ },
12861
+ fields: {}
12862
+ };
12863
+ };
12864
+ const CustomTypeSubform = _ref => {
12865
+ var _formValues$FIELD_NAM, _formValues$FIELD_NAM2;
12866
+ let typeDefinitions = _ref.typeDefinitions,
12867
+ isReadOnly = _ref.isReadOnly;
12868
+ const _useFormikContext = useFormikContext(),
12869
+ formValues = _valuesInstanceProperty(_useFormikContext),
12870
+ setFieldValue = _useFormikContext.setFieldValue;
12871
+ const _useIntl = useIntl(),
12872
+ formatMessage = _useIntl.formatMessage;
12873
+ const _useApplicationContex = useApplicationContext(applicationContext => ({
12874
+ language: applicationContext.dataLocale,
12875
+ languages: applicationContext.project.languages
12876
+ })),
12877
+ language = _useApplicationContex.language,
12878
+ languages = _useApplicationContex.languages;
12879
+ const handleTypeDefinitionSelect = useCallback(event => {
12880
+ const selectedTypeDefinition = _findInstanceProperty(typeDefinitions).call(typeDefinitions, typeDefinition => typeDefinition.type.key === event.target.value);
12881
+ if (selectedTypeDefinition) {
12882
+ const nextCustom = createFormStateFromTypeDefinition(selectedTypeDefinition);
12883
+ setFieldValue(FIELD_NAME, nextCustom);
12884
+ } else {
12885
+ // if the dropdown selector is cleared
12886
+ const emptyFormState = CustomFieldTypeDefinitionsConnector$1.createEmptyCustomFields(formValues[FIELD_NAME].type);
12887
+ setFieldValue(FIELD_NAME, emptyFormState);
12888
+ }
12889
+ }, [typeDefinitions, setFieldValue, formValues]);
12890
+ return jsx(CollapsiblePanel, {
12891
+ header: jsx(CollapsiblePanel.Header, {
12892
+ children: jsx(FormattedMessage, _objectSpread({}, messages.title))
12893
+ }),
12894
+ headerControls: typeDefinitions.length > 0 && jsx("div", {
12895
+ css: /*#__PURE__*/css("min-width:", designTokens.constraint10, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:CustomTypeSubform;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImN1c3RvbS10eXBlLXN1YmZvcm0uanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWtHb0IiLCJmaWxlIjoiY3VzdG9tLXR5cGUtc3ViZm9ybS5qc3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB1c2VDYWxsYmFjayB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5pbXBvcnQgeyB1c2VGb3JtaWtDb250ZXh0IH0gZnJvbSAnZm9ybWlrJztcbmltcG9ydCB7IEZvcm1hdHRlZE1lc3NhZ2UsIHVzZUludGwgfSBmcm9tICdyZWFjdC1pbnRsJztcbmltcG9ydCB7IHVzZUFwcGxpY2F0aW9uQ29udGV4dCB9IGZyb20gJ0Bjb21tZXJjZXRvb2xzLWZyb250ZW5kL2FwcGxpY2F0aW9uLXNoZWxsLWNvbm5lY3RvcnMnO1xuaW1wb3J0IEN1c3RvbUZpZWxkVHlwZURlZmluaXRpb25zQ29ubmVjdG9yIGZyb20gJy4uL2N1c3RvbS1maWVsZC10eXBlLWRlZmluaXRpb25zLWNvbm5lY3Rvcic7XG5pbXBvcnQgeyBmb3JtYXRMb2NhbGl6ZWRTdHJpbmcgfSBmcm9tICdAY29tbWVyY2V0b29scy1mcm9udGVuZC9sMTBuJztcbmltcG9ydCB7XG4gIENvbGxhcHNpYmxlUGFuZWwsXG4gIFNlbGVjdElucHV0LFxuICBkZXNpZ25Ub2tlbnMsXG59IGZyb20gJ0Bjb21tZXJjZXRvb2xzLWZyb250ZW5kL3VpLWtpdCc7XG5pbXBvcnQgbWVzc2FnZXMgZnJvbSAnLi9tZXNzYWdlcyc7XG5pbXBvcnQgQ3VzdG9tRmllbGRzSW5wdXRXcmFwcGVyIGZyb20gJy4vY3VzdG9tLWZpZWxkcy1pbnB1dC13cmFwcGVyJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gVE9ETzogbWFrZSBjb25maWd1cmFibGUgYnkgY29uc3VtZXJzP1xuZXhwb3J0IGNvbnN0IEZJRUxEX05BTUUgPSAnY3VzdG9tJztcblxuLy8gQ3JlYXRlcyBkcm9wZG93biBvcHRpb25zXG5leHBvcnQgY29uc3QgbWFwVHlwZURlZmluaXRpb25zVG9PcHRpb25zID0gKFxuICB0eXBlRGVmaW5pdGlvbnMsXG4gIGxhbmd1YWdlLFxuICBsYW5ndWFnZXMsXG4gIHNlbGVjdGVkVHlwZURlZmluaXRpb25JZFxuKSA9PiB7XG4gIHJldHVybiB0eXBlRGVmaW5pdGlvbnMubWFwKCh0eXBlRGVmaW5pdGlvbikgPT4gKHtcbiAgICBpc0Rpc2FibGVkOlxuICAgICAgc2VsZWN0ZWRUeXBlRGVmaW5pdGlvbklkICYmXG4gICAgICBzZWxlY3RlZFR5cGVEZWZpbml0aW9uSWQgPT09IHR5cGVEZWZpbml0aW9uLnR5cGUuaWQsXG4gICAgdmFsdWU6IHR5cGVEZWZpbml0aW9uLnR5cGUua2V5LFxuICAgIGxhYmVsOiBmb3JtYXRMb2NhbGl6ZWRTdHJpbmcodHlwZURlZmluaXRpb24udHlwZSwge1xuICAgICAga2V5OiAnbmFtZScsXG4gICAgICBsb2NhbGU6IGxhbmd1YWdlLFxuICAgICAgZmFsbGJhY2tPcmRlcjogbGFuZ3VhZ2VzLFxuICAgIH0pLFxuICB9KSk7XG59O1xuXG4vLyBVc2VkIHRvIGdlbmVyYXRlIGZvcm0gc3RhdGUgd2hlbiB0aGUgdXNlciBzZWxlY3RzIGEgdHlwZSBkZWZpbml0aW9uIGZyb20gdGhlIGRyb3Bkb3duXG5jb25zdCBjcmVhdGVGb3JtU3RhdGVGcm9tVHlwZURlZmluaXRpb24gPSAoc2VsZWN0ZWRUeXBlRGVmaW5pdGlvbikgPT4ge1xuICByZXR1cm4ge1xuICAgIHR5cGU6IHtcbiAgICAgIGlkOiBzZWxlY3RlZFR5cGVEZWZpbml0aW9uLnR5cGUuaWQsXG4gICAgICBvYmo6IHtcbiAgICAgICAgZmllbGREZWZpbml0aW9uczogc2VsZWN0ZWRUeXBlRGVmaW5pdGlvbi50eXBlLmZpZWxkRGVmaW5pdGlvbnMsXG4gICAgICAgIGtleTogc2VsZWN0ZWRUeXBlRGVmaW5pdGlvbi50eXBlLmtleSxcbiAgICAgIH0sXG4gICAgfSxcbiAgICBmaWVsZHM6IHt9LFxuICB9O1xufTtcblxuY29uc3QgQ3VzdG9tVHlwZVN1YmZvcm0gPSAoeyB0eXBlRGVmaW5pdGlvbnMsIGlzUmVhZE9ubHkgfSkgPT4ge1xuICBjb25zdCB7IHZhbHVlczogZm9ybVZhbHVlcywgc2V0RmllbGRWYWx1ZSB9ID0gdXNlRm9ybWlrQ29udGV4dCgpO1xuICBjb25zdCB7IGZvcm1hdE1lc3NhZ2UgfSA9IHVzZUludGwoKTtcbiAgY29uc3QgeyBsYW5ndWFnZSwgbGFuZ3VhZ2VzIH0gPSB1c2VBcHBsaWNhdGlvbkNvbnRleHQoXG4gICAgKGFwcGxpY2F0aW9uQ29udGV4dCkgPT4gKHtcbiAgICAgIGxhbmd1YWdlOiBhcHBsaWNhdGlvbkNvbnRleHQuZGF0YUxvY2FsZSxcbiAgICAgIGxhbmd1YWdlczogYXBwbGljYXRpb25Db250ZXh0LnByb2plY3QubGFuZ3VhZ2VzLFxuICAgIH0pXG4gICk7XG5cbiAgY29uc3QgaGFuZGxlVHlwZURlZmluaXRpb25TZWxlY3QgPSB1c2VDYWxsYmFjayhcbiAgICAoZXZlbnQpID0+IHtcbiAgICAgIGNvbnN0IHNlbGVjdGVkVHlwZURlZmluaXRpb24gPSB0eXBlRGVmaW5pdGlvbnMuZmluZChcbiAgICAgICAgKHR5cGVEZWZpbml0aW9uKSA9PiB0eXBlRGVmaW5pdGlvbi50eXBlLmtleSA9PT0gZXZlbnQudGFyZ2V0LnZhbHVlXG4gICAgICApO1xuXG4gICAgICBpZiAoc2VsZWN0ZWRUeXBlRGVmaW5pdGlvbikge1xuICAgICAgICBjb25zdCBuZXh0Q3VzdG9tID0gY3JlYXRlRm9ybVN0YXRlRnJvbVR5cGVEZWZpbml0aW9uKFxuICAgICAgICAgIHNlbGVjdGVkVHlwZURlZmluaXRpb25cbiAgICAgICAgKTtcblxuICAgICAgICBzZXRGaWVsZFZhbHVlKEZJRUxEX05BTUUsIG5leHRDdXN0b20pO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgLy8gaWYgdGhlIGRyb3Bkb3duIHNlbGVjdG9yIGlzIGNsZWFyZWRcbiAgICAgICAgY29uc3QgZW1wdHlGb3JtU3RhdGUgPVxuICAgICAgICAgIEN1c3RvbUZpZWxkVHlwZURlZmluaXRpb25zQ29ubmVjdG9yLmNyZWF0ZUVtcHR5Q3VzdG9tRmllbGRzKFxuICAgICAgICAgICAgZm9ybVZhbHVlc1tGSUVMRF9OQU1FXS50eXBlXG4gICAgICAgICAgKTtcblxuICAgICAgICBzZXRGaWVsZFZhbHVlKEZJRUxEX05BTUUsIGVtcHR5Rm9ybVN0YXRlKTtcbiAgICAgIH1cbiAgICB9LFxuICAgIFt0eXBlRGVmaW5pdGlvbnMsIHNldEZpZWxkVmFsdWUsIGZvcm1WYWx1ZXNdXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8Q29sbGFwc2libGVQYW5lbFxuICAgICAgaGVhZGVyPXtcbiAgICAgICAgPENvbGxhcHNpYmxlUGFuZWwuSGVhZGVyPlxuICAgICAgICAgIDxGb3JtYXR0ZWRNZXNzYWdlIHsuLi5tZXNzYWdlcy50aXRsZX0gLz5cbiAgICAgICAgPC9Db2xsYXBzaWJsZVBhbmVsLkhlYWRlcj5cbiAgICAgIH1cbiAgICAgIGhlYWRlckNvbnRyb2xzPXtcbiAgICAgICAgdHlwZURlZmluaXRpb25zLmxlbmd0aCA+IDAgJiYgKFxuICAgICAgICAgIDxkaXZcbiAgICAgICAgICAgIGNzcz17Y3NzYFxuICAgICAgICAgICAgICBtaW4td2lkdGg6ICR7ZGVzaWduVG9rZW5zLmNvbnN0cmFpbnQxMH07XG4gICAgICAgICAgICBgfVxuICAgICAgICAgID5cbiAgICAgICAgICAgIDxTZWxlY3RJbnB1dFxuICAgICAgICAgICAgICBpc0NsZWFyYWJsZVxuICAgICAgICAgICAgICBkYXRhLXRlc3RpZD1cImN1c3RvbS10eXBlLXNlbGVjdFwiXG4gICAgICAgICAgICAgIG5hbWU9e2Ake0ZJRUxEX05BTUV9LnR5cGUub2JqLmtleWB9XG4gICAgICAgICAgICAgIG9wdGlvbnM9e21hcFR5cGVEZWZpbml0aW9uc1RvT3B0aW9ucyhcbiAgICAgICAgICAgICAgICB0eXBlRGVmaW5pdGlvbnMsXG4gICAgICAgICAgICAgICAgbGFuZ3VhZ2UsXG4gICAgICAgICAgICAgICAgbGFuZ3VhZ2VzLFxuICAgICAgICAgICAgICAgIGZvcm1WYWx1ZXNbRklFTERfTkFNRV0/LnR5cGU/LmlkXG4gICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgIHZhbHVlPXtmb3JtVmFsdWVzW0ZJRUxEX05BTUVdPy50eXBlPy5vYmo/LmtleX1cbiAgICAgICAgICAgICAgb25DaGFuZ2U9e2hhbmRsZVR5cGVEZWZpbml0aW9uU2VsZWN0fVxuICAgICAgICAgICAgICBwbGFjZWhvbGRlcj17Zm9ybWF0TWVzc2FnZShtZXNzYWdlcy50eXBlc1BsYWNlaG9sZGVyKX1cbiAgICAgICAgICAgICAgaXNSZWFkT25seT17aXNSZWFkT25seX1cbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgPC9kaXY+XG4gICAgICAgIClcbiAgICAgIH1cbiAgICAgIGhlYWRlckNvbnRyb2xzQWxpZ25tZW50PVwibGVmdFwiXG4gICAgPlxuICAgICAgPEN1c3RvbUZpZWxkc0lucHV0V3JhcHBlclxuICAgICAgICB0eXBlRGVmaW5pdGlvbnM9e3R5cGVEZWZpbml0aW9uc31cbiAgICAgICAgaXNSZWFkT25seT17aXNSZWFkT25seX1cbiAgICAgIC8+XG4gICAgPC9Db2xsYXBzaWJsZVBhbmVsPlxuICApO1xufTtcblxuQ3VzdG9tVHlwZVN1YmZvcm0uZGlzcGxheU5hbWUgPSAnQ3VzdG9tVHlwZVN1YmZvcm0nO1xuQ3VzdG9tVHlwZVN1YmZvcm0ucHJvcFR5cGVzID0ge1xuICB0eXBlRGVmaW5pdGlvbnM6IFByb3BUeXBlcy5hcnJheS5pc1JlcXVpcmVkLFxuICBpc1JlYWRPbmx5OiBQcm9wVHlwZXMuYm9vbCxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEN1c3RvbVR5cGVTdWJmb3JtO1xuIl19 */"),
12896
+ children: jsx(SelectInput, {
12897
+ isClearable: true,
12898
+ "data-testid": "custom-type-select",
12899
+ name: "".concat(FIELD_NAME, ".type.obj.key"),
12900
+ options: mapTypeDefinitionsToOptions(typeDefinitions, language, languages, (_formValues$FIELD_NAM = formValues[FIELD_NAME]) === null || _formValues$FIELD_NAM === void 0 || (_formValues$FIELD_NAM = _formValues$FIELD_NAM.type) === null || _formValues$FIELD_NAM === void 0 ? void 0 : _formValues$FIELD_NAM.id),
12901
+ value: (_formValues$FIELD_NAM2 = formValues[FIELD_NAME]) === null || _formValues$FIELD_NAM2 === void 0 || (_formValues$FIELD_NAM2 = _formValues$FIELD_NAM2.type) === null || _formValues$FIELD_NAM2 === void 0 || (_formValues$FIELD_NAM2 = _formValues$FIELD_NAM2.obj) === null || _formValues$FIELD_NAM2 === void 0 ? void 0 : _formValues$FIELD_NAM2.key,
12902
+ onChange: handleTypeDefinitionSelect,
12903
+ placeholder: formatMessage(messages.typesPlaceholder),
12904
+ isReadOnly: isReadOnly
12905
+ })
12906
+ }),
12907
+ headerControlsAlignment: "left",
12908
+ children: jsx(CustomFieldsInputWrapper, {
12909
+ typeDefinitions: typeDefinitions,
12910
+ isReadOnly: isReadOnly
12911
+ })
12912
+ });
12913
+ };
12914
+ CustomTypeSubform.displayName = 'CustomTypeSubform';
12915
+
12916
+ const CustomFieldsFormField = _ref => {
12917
+ let resources = _ref.resources,
12918
+ isReadOnly = _ref.isReadOnly;
12919
+ const projectKey = useApplicationContext(applicationContext => applicationContext.project.key);
12920
+ return jsx(CustomFieldTypeDefinitionsConnector$1, {
12921
+ resources: resources,
12922
+ projectKey: projectKey,
12923
+ children: _ref2 => {
12924
+ var _context;
12925
+ let _ref2$customFieldType = _ref2.customFieldTypeDefinitionsFetcher,
12926
+ isLoading = _ref2$customFieldType.isLoading,
12927
+ customFieldTypeDefinitions = _ref2$customFieldType.customFieldTypeDefinitions;
12928
+ if (isLoading) {
12929
+ return jsx(LoadingSpinner, {});
12930
+ }
12931
+ const typeDefinitions = _mapInstanceProperty(_context = customFieldTypeDefinitions.results).call(_context, CustomFieldTypeDefinitionsConnector$1.graphQlDocToForm);
12932
+ return jsx(CustomTypeSubform, {
12933
+ typeDefinitions: typeDefinitions,
12934
+ isReadOnly: isReadOnly
12935
+ });
12936
+ }
12937
+ });
12938
+ };
12939
+
12761
12940
  var CategorySearchPickerOptionFragment = { kind: "Document", definitions: [{ kind: "FragmentDefinition", name: { kind: "Name", value: "CategorySearchPickerOptionFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "CategorySearch" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "externalId" }, 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: "slugAllLocales" }, 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: "parent" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ 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: "ancestors" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ 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: 685, source: { body: "query SearchCategoryReference($locale: Locale!, $text: String!) {\n categories: categoryAutocomplete(locale: $locale, text: $text) {\n results {\n ...CategorySearchPickerOptionFragment\n }\n }\n}\n\nquery FetchCategoriesByIds($where: String!) {\n categories(where: $where) {\n results {\n id\n nameAllLocales {\n locale\n value\n }\n }\n }\n}\n\nfragment CategorySearchPickerOptionFragment on CategorySearch {\n id\n externalId\n nameAllLocales {\n locale\n value\n }\n slugAllLocales {\n locale\n value\n }\n parent {\n nameAllLocales {\n locale\n value\n }\n }\n ancestors {\n nameAllLocales {\n locale\n value\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
12762
12941
 
12763
- export { booleanField as BooleanField, Button, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, CenteredLoadingSpinner, ChannelPickerInput, CountriesPicker, customFieldDefinitionsConnector as CustomFieldDefinitionsConnector, customFieldTypeDefinitionsConnector as CustomFieldTypeDefinitionsConnector, CustomFields, CustomFieldsErrorTextNotification, CustomerGroupPickerInput, DefaultPageSizes, Divider, EMAIL_REGEX, FileInput, FormattedDateTime$1 as FormattedDateTime, LabelRange, MissingValueField, MultiValueSearchInput, numericFormatInput as NumericFormatInput, PRECISION_TYPES, pimIndexerProvider as PimIndexerProvider, ProductAttributeInput, ProductAttributes, ProductPickerInput, ProductSelectionsPicker as ProductSelectionPicker, RequestCache, RequiredIndicator, ScrollToFieldError, searchInput as SearchInput, SelectableFieldSearchInput, StoreSelectField, StoreSelectInput, ThrottledField, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, WithPimIndexer, allowedProperties, and, attributesMapToNameValuePairs, base64ToString, messages$7 as booleanMessages, buildSearchQuery, businessRoleConstants, messages$q as businessRoleMessages, businessRoleKeys as businessRoles, capitalizeFirst, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, createGraphQlUpdateActions, createNextSortDefinition, createReducer, createResourceReducer, handlers$2 as customFieldDefinitionsMockHanders, customFields as customFieldsTransformer, dateTransformer$1 as dateTransformer, exact, exists, extractErrorFromGraphQlResponse, filterCustomTypeUpdateActionValues, filterDataAttributes, filterEmptyValues, formatCustomField, formatCustomerAddress, formatCustomerName, formatDateRangeValue, formatDateTime$1 as formatDateTime, formatDiscount, formatMoney$1 as formatMoney, formatMoneyRangeValue, formatMoneyValue, formatPercentage, formatAttribute as formatProductAttribute, getAncestors, getAttributeValueByType, getAttributeValueType, getBulkNotification, getCategoryLevel, getCountsFromBulkSummary, getDiscountValue, getDisplayName, getFractionedAmount, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds, getPriceChannelName, getReferenceTypeId, getSelectedPrice, getTimeZoneId, getTimeZoneLabel, getTypeNameOfType, graphqlCategoryLevelTransformer, dateTransformer as graphqlDateTransformer, missingLocaleTransformer as graphqlMissingLocaleTransformer, missingTransformer as graphqlMissingTransformer, numberTransformer as graphqlNumberTransformer, graphqlQueryBuilder, referenceTransformer as graphqlReferenceTransformer, textTransformer as graphqlTextTransformer, hasInvalidInputError, hasSemanticError, injectCustomerGroupsPlatformLimits, injectCustomersPlatformLimits, injectDataTablePaginationState, injectModalState$1 as injectModalState, injectNotifications, injectPimIndexer, injectShippingMethodsPlatformLimits, injectStorage, injectTaxCategoriesPlatformLimits, injectModalState as injectToggleState, injectZonesPlatformLimits, isEmptyFilter as isEmpty, isEmptyValue, isUUID, isValidISODate, isValidISODateTime, isValidISOTime, keepDisplayName, mapStoresToOptions, mapTimeZonesToOptions, minusify, messages$6 as missingValueMessages, nameValuePairsToMap, normalizeProductSettings, not, omitDeep, omitSetsOfSets, or, commonPickerMessages as pickerMessages, handlers as platformLimitsMockHandlers, handlers$3 as productSelectionsFetcherMockHandler, handlers$4 as productSelectionsTotalFetcherMockHandler, range, reorderArrayItems, resolveStatusType, safelyAddFallback, sanitize, searchCategories, messages$E as searchInputMessages, setDisplayName, setToArray, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitVariantAttributesByConstraint, handlers$5 as storesListConnectorMockHandlers, stringToBase64, swapArrayItems, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useCachedCategoryOptions, useCustomerGroupsPlatformLimits, useCustomersPlatformLimits, useDebouncedPromiseCallback, useFormatLocalizedFieldToString, useLocalizedKeyFallback, usePendingRequests, usePersistedTableConfiguration, usePimIndexer, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, useRoleNotificationEffect, useShippingMethodsLimits as useShippingMethodsPlatformLimits, useStorage, useStoreKeysInDataFences, useStoresListFetcher, useTaxCategoriesLimits as useTaxCategoriesPlatformLimits, useTotalNumberOfStoresFetcher, handlers$1 as useTotalNumberOfStoresFetcherHandlers, validateFilter$2 as validateCustomField, validations as validateCustomFields, validateFilter$1 as validateDate, validateMultiOptionEnum, validateFilter as validateNumber, validateSingleOptionEnum, validateText, validatedInput, messages$J as validationMessages, withPendingRequests, withProps, withRedirectTo, withoutEmptyErrorsByField, wrapDisplayName };
12942
+ export { booleanField as BooleanField, Button, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, CenteredLoadingSpinner, ChannelPickerInput, CountriesPicker, customFieldDefinitionsConnector as CustomFieldDefinitionsConnector, CustomFieldTypeDefinitionsConnector$1 as CustomFieldTypeDefinitionsConnector, CustomFields, CustomFieldsErrorTextNotification, CustomFieldsFormField, CustomerGroupPickerInput, DefaultPageSizes, Divider, EMAIL_REGEX, FileInput, FormattedDateTime$1 as FormattedDateTime, LabelRange, MissingValueField, MultiValueSearchInput, numericFormatInput as NumericFormatInput, PRECISION_TYPES, pimIndexerProvider as PimIndexerProvider, ProductAttributeInput, ProductAttributes, ProductPickerInput, ProductSelectionsPicker as ProductSelectionPicker, RequestCache, RequiredIndicator, ScrollToFieldError, searchInput as SearchInput, SelectableFieldSearchInput, StoreSelectField, StoreSelectInput, ThrottledField, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, WithPimIndexer, allowedProperties, and, attributesMapToNameValuePairs, base64ToString, messages$8 as booleanMessages, buildSearchQuery, businessRoleConstants, messages$r as businessRoleMessages, businessRoleKeys as businessRoles, capitalizeFirst, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, createGraphQlUpdateActions, createNextSortDefinition, createReducer, createResourceReducer, handlers$2 as customFieldDefinitionsMockHanders, customFields as customFieldsTransformer, dateTransformer$1 as dateTransformer, exact, exists, extractErrorFromGraphQlResponse, filterCustomTypeUpdateActionValues, filterDataAttributes, filterEmptyValues, formatCustomField, formatCustomerAddress, formatCustomerName, formatDateRangeValue, formatDateTime$1 as formatDateTime, formatDiscount, formatMoney$1 as formatMoney, formatMoneyRangeValue, formatMoneyValue, formatPercentage, formatAttribute as formatProductAttribute, getAncestors, getAttributeValueByType, getAttributeValueType, getBulkNotification, getCategoryLevel, getCountsFromBulkSummary, getDiscountValue, getDisplayName, getFractionedAmount, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds, getPriceChannelName, getReferenceTypeId, getSelectedPrice, getTimeZoneId, getTimeZoneLabel, getTypeNameOfType, graphqlCategoryLevelTransformer, dateTransformer as graphqlDateTransformer, missingLocaleTransformer as graphqlMissingLocaleTransformer, missingTransformer as graphqlMissingTransformer, numberTransformer as graphqlNumberTransformer, graphqlQueryBuilder, referenceTransformer as graphqlReferenceTransformer, textTransformer as graphqlTextTransformer, hasInvalidInputError, hasSemanticError, injectCustomerGroupsPlatformLimits, injectCustomersPlatformLimits, injectDataTablePaginationState, injectModalState$1 as injectModalState, injectNotifications, injectPimIndexer, injectShippingMethodsPlatformLimits, injectStorage, injectTaxCategoriesPlatformLimits, injectModalState as injectToggleState, injectZonesPlatformLimits, isEmptyFilter as isEmpty, isEmptyValue, isUUID, isValidISODate, isValidISODateTime, isValidISOTime, keepDisplayName, mapStoresToOptions, mapTimeZonesToOptions, minusify, messages$7 as missingValueMessages, nameValuePairsToMap, normalizeProductSettings, not, omitDeep, omitSetsOfSets, or, commonPickerMessages as pickerMessages, handlers as platformLimitsMockHandlers, handlers$3 as productSelectionsFetcherMockHandler, handlers$4 as productSelectionsTotalFetcherMockHandler, range, reorderArrayItems, resolveStatusType, safelyAddFallback, sanitize, searchCategories, messages$F as searchInputMessages, setDisplayName, setToArray, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitVariantAttributesByConstraint, handlers$5 as storesListConnectorMockHandlers, stringToBase64, swapArrayItems, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useCachedCategoryOptions, useCustomerGroupsPlatformLimits, useCustomersPlatformLimits, useDebouncedPromiseCallback, useFormatLocalizedFieldToString, useLocalizedKeyFallback, usePendingRequests, usePersistedTableConfiguration, usePimIndexer, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, useRoleNotificationEffect, useShippingMethodsLimits as useShippingMethodsPlatformLimits, useStorage, useStoreKeysInDataFences, useStoresListFetcher, useTaxCategoriesLimits as useTaxCategoriesPlatformLimits, useTotalNumberOfStoresFetcher, handlers$1 as useTotalNumberOfStoresFetcherHandlers, validateFilter$2 as validateCustomField, validations as validateCustomFields, validateFilter$1 as validateDate, validateMultiOptionEnum, validateFilter as validateNumber, validateSingleOptionEnum, validateText, validatedInput, messages$K as validationMessages, withPendingRequests, withProps, withRedirectTo, withoutEmptyErrorsByField, wrapDisplayName };