@commercetools-frontend/experimental-components 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,8 +30,8 @@ import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/insta
30
30
  import _sliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/slice';
31
31
  import _sortInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/sort';
32
32
  import _indexOfInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/index-of';
33
- import { defineMessages, useIntl, injectIntl, FormattedMessage } from 'react-intl';
34
33
  import { deepEqual } from 'fast-equals';
34
+ import { defineMessages, useIntl, injectIntl, FormattedMessage } from 'react-intl';
35
35
  import omitEmpty from 'omit-empty-es';
36
36
  import _taggedTemplateLiteral from '@babel/runtime-corejs3/helpers/esm/taggedTemplateLiteral';
37
37
  import oneLine from 'common-tags/lib/oneLine';
@@ -41,11 +41,11 @@ 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, FlatButton, AngleUpIcon, AngleDownIcon, IconButton, BinFilledIcon, BinLinearIcon, PlusBoldIcon, ErrorIcon, FieldLabel, WarningIcon, InformationIcon, customProperties, SecondaryButton, RevertIcon, Grid, SubdirectoryArrowIcon, Tag, EditIcon, Card, SelectField, AsyncSelectField, SearchSelectField, FieldErrors, SelectableSearchInput, DataTable, Pagination, Stamp, ContentNotification, ListIcon, CheckboxInput, 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, FlatButton, AngleUpIcon, AngleDownIcon, IconButton, BinFilledIcon, BinLinearIcon, PlusBoldIcon, ErrorIcon, FieldLabel, WarningIcon, InformationIcon, customProperties, SecondaryButton, RevertIcon, Grid, SubdirectoryArrowIcon, Tag, EditIcon, Card, SelectField, AsyncSelectField, SearchSelectField, FieldErrors, ContentNotification, ListIcon, CheckboxInput, SelectableSearchInput, SearchTextInput } 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';
48
- import { useModalState, CustomFormModalPage, PageContentNarrow, ConfirmationDialog, PageContentFull, InfoDialog } from '@commercetools-frontend/application-components';
48
+ import { useModalState, CustomFormModalPage, PageContentNarrow, ConfirmationDialog, InfoDialog } from '@commercetools-frontend/application-components';
49
49
  import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
50
50
  import { useApplicationContext, ApplicationContext, withApplicationContext } from '@commercetools-frontend/application-shell-connectors';
51
51
  import { useQuery, useApolloClient } from '@apollo/client/react';
@@ -97,8 +97,6 @@ import { ErrorMessage } from '@commercetools-frontend/ui-kit/';
97
97
  import { CustomSelectInputOption } from '@commercetools-uikit/select-utils';
98
98
  import memoize from 'memoize-one';
99
99
  import { filterAriaAttributes, filterDataAttributes as filterDataAttributes$1 } from '@commercetools-uikit/utils';
100
- import differenceBy from 'lodash/differenceBy';
101
- import intersectionBy from 'lodash/intersectionBy';
102
100
  import _parseFloat from '@babel/runtime-corejs3/core-js-stable/parse-float';
103
101
  import flatMap from 'lodash/flatMap';
104
102
  import { connect } from 'react-redux';
@@ -151,6 +149,7 @@ const INTERVALS_IN_SECONDS = {
151
149
  [REMINDER_OPTION_7_DAY]: 604800,
152
150
  [REMINDER_OPTION_10_DAY]: 864000
153
151
  };
152
+ const EXCLUDING_PRODUCTS = 'excludingProducts';
154
153
 
155
154
  const formats = {
156
155
  en: [',', '.'],
@@ -194,44 +193,6 @@ function filterDataAttributes(obj) {
194
193
  }, {});
195
194
  }
196
195
 
197
- const messages$O = defineMessages({
198
- unique: {
199
- id: 'Validation.unique',
200
- description: 'An error message to show if the field must be unique',
201
- defaultMessage: 'The value you have entered already exists in this list of ' + 'values. Please add only unique values to this list.'
202
- },
203
- required: {
204
- id: 'Validation.required',
205
- description: 'An error message to show if the field is required',
206
- defaultMessage: 'Please fill in this required field.'
207
- },
208
- numeric: {
209
- id: 'Validation.numeric',
210
- description: 'An error message to show if the field must be numeric',
211
- defaultMessage: 'Please enter only numbers (0 - 9) and decimal ' + 'separators in this field.'
212
- },
213
- integer: {
214
- id: 'Validation.integer',
215
- description: 'An error message to show if the field must be integer',
216
- defaultMessage: 'Please enter only numbers (0 - 9) in this field.'
217
- },
218
- email: {
219
- id: 'Validation.email',
220
- description: 'An error message to show if the field must be a ' + 'valid email address',
221
- defaultMessage: 'Please enter a valid email address.'
222
- },
223
- notFound: {
224
- id: 'Validation.notFound',
225
- description: 'An error message to show a resource id was not found',
226
- defaultMessage: 'The resource was not found'
227
- },
228
- invalid: {
229
- id: 'Validation.invalid',
230
- description: 'An error message to show the id is invalid',
231
- defaultMessage: 'The resource id is invalid'
232
- }
233
- });
234
-
235
196
  /**
236
197
  * This takes in an array of values or objects and returns an array of values
237
198
  * that are duplicated in the original array. If the properties param is
@@ -334,6 +295,44 @@ function uniqueObjects(items) {
334
295
 
335
296
  */
336
297
 
298
+ const messages$K = defineMessages({
299
+ unique: {
300
+ id: 'Validation.unique',
301
+ description: 'An error message to show if the field must be unique',
302
+ defaultMessage: 'The value you have entered already exists in this list of ' + 'values. Please add only unique values to this list.'
303
+ },
304
+ required: {
305
+ id: 'Validation.required',
306
+ description: 'An error message to show if the field is required',
307
+ defaultMessage: 'Please fill in this required field.'
308
+ },
309
+ numeric: {
310
+ id: 'Validation.numeric',
311
+ description: 'An error message to show if the field must be numeric',
312
+ defaultMessage: 'Please enter only numbers (0 - 9) and decimal ' + 'separators in this field.'
313
+ },
314
+ integer: {
315
+ id: 'Validation.integer',
316
+ description: 'An error message to show if the field must be integer',
317
+ defaultMessage: 'Please enter only numbers (0 - 9) in this field.'
318
+ },
319
+ email: {
320
+ id: 'Validation.email',
321
+ description: 'An error message to show if the field must be a ' + 'valid email address',
322
+ defaultMessage: 'Please enter a valid email address.'
323
+ },
324
+ notFound: {
325
+ id: 'Validation.notFound',
326
+ description: 'An error message to show a resource id was not found',
327
+ defaultMessage: 'The resource was not found'
328
+ },
329
+ invalid: {
330
+ id: 'Validation.invalid',
331
+ description: 'An error message to show the id is invalid',
332
+ defaultMessage: 'The resource id is invalid'
333
+ }
334
+ });
335
+
337
336
  function getIndexesOfInvalidValues(values) {
338
337
  let invalidValues = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
339
338
  if (invalidValues.length === 0) return [];
@@ -1591,8 +1590,8 @@ const getData = (code, field) => {
1591
1590
  };
1592
1591
  const getFractionDigit = code => getData(code, 'fractionDigit');
1593
1592
 
1594
- function ownKeys$1q(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; }
1595
- function _objectSpread$1q(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1q(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$1q(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1593
+ 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; }
1594
+ 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; }
1596
1595
  function formatMoneyRangeValue(value, intl) {
1597
1596
  var _context;
1598
1597
  if (value.from === value.to) return formatMoneyValue(value.from, value.currency, intl);
@@ -1602,7 +1601,7 @@ function formatMoneyRangeValue(value, intl) {
1602
1601
  return '';
1603
1602
  }
1604
1603
  function formatMoneyValue(amount, currency, intl) {
1605
- return formatMoney$1(_objectSpread$1q({
1604
+ return formatMoney$1(_objectSpread$1k({
1606
1605
  centAmount: amount,
1607
1606
  fractionDigits: getFractionDigit(currency)
1608
1607
  }, currency ? {
@@ -1619,14 +1618,14 @@ function getFractionedAmount(moneyValue) {
1619
1618
  }
1620
1619
  function formatMoney$1(moneyValue, intl, options) {
1621
1620
  var _moneyValue$fractione;
1622
- return intl.formatNumber((_moneyValue$fractione = moneyValue.fractionedAmount) !== null && _moneyValue$fractione !== void 0 ? _moneyValue$fractione : getFractionedAmount(moneyValue), _objectSpread$1q({
1621
+ return intl.formatNumber((_moneyValue$fractione = moneyValue.fractionedAmount) !== null && _moneyValue$fractione !== void 0 ? _moneyValue$fractione : getFractionedAmount(moneyValue), _objectSpread$1k({
1623
1622
  style: 'currency',
1624
1623
  currency: moneyValue.currencyCode,
1625
1624
  minimumFractionDigits: moneyValue.fractionDigits
1626
1625
  }, options));
1627
1626
  }
1628
1627
 
1629
- var messages$N = defineMessages({
1628
+ var messages$J = defineMessages({
1630
1629
  booleanYes: {
1631
1630
  id: 'AttributeTypeFormats.boolean.yes',
1632
1631
  description: 'The label for boolean attribute `true` value',
@@ -1702,14 +1701,16 @@ const formatDateTime = _ref7 => {
1702
1701
  const time = intl.formatTime(Date.parse(value), {
1703
1702
  hour: 'numeric',
1704
1703
  minute: 'numeric',
1705
- second: 'numeric'
1704
+ second: 'numeric',
1705
+ // defaults to utc if timeZone is not provided
1706
+ timeZone: userTimeZone || 'utc'
1706
1707
  });
1707
1708
  return _concatInstanceProperty(_context3 = "".concat(date, " (")).call(_context3, time, ")");
1708
1709
  };
1709
1710
  const formatBoolean = _ref8 => {
1710
1711
  let value = _ref8.value,
1711
1712
  intl = _ref8.intl;
1712
- return value ? intl.formatMessage(messages$N.booleanYes) : intl.formatMessage(messages$N.booleanNo);
1713
+ return value ? intl.formatMessage(messages$J.booleanYes) : intl.formatMessage(messages$J.booleanNo);
1713
1714
  };
1714
1715
  const formatNilType = _ref9 => {
1715
1716
  let value = _ref9.value,
@@ -1871,8 +1872,8 @@ const wrapDisplayName = (BaseComponent, hocName) => {
1871
1872
  return _concatInstanceProperty(_context = "".concat(hocName, "(")).call(_context, getDisplayName(BaseComponent), ")");
1872
1873
  };
1873
1874
 
1874
- function ownKeys$1p(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$1p(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1p(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1p(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1875
+ 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; }
1876
+ 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
1877
  const injectDataTablePaginationState = initialValues => Component => {
1877
1878
  const WithDataTablePaginationState = props => {
1878
1879
  var _initialValues$tableS, _initialValues$tableS2;
@@ -1886,7 +1887,7 @@ const injectDataTablePaginationState = initialValues => Component => {
1886
1887
  key: initialValues === null || initialValues === void 0 ? void 0 : (_initialValues$tableS = initialValues.tableSorting) === null || _initialValues$tableS === void 0 ? void 0 : _initialValues$tableS.key,
1887
1888
  order: initialValues === null || initialValues === void 0 ? void 0 : (_initialValues$tableS2 = initialValues.tableSorting) === null || _initialValues$tableS2 === void 0 ? void 0 : _initialValues$tableS2.order
1888
1889
  });
1889
- return jsx(Component, _objectSpread$1p(_objectSpread$1p({}, props), {}, {
1890
+ return jsx(Component, _objectSpread$1j(_objectSpread$1j({}, props), {}, {
1890
1891
  dataTablePaginationState: {
1891
1892
  page,
1892
1893
  perPage,
@@ -1898,8 +1899,8 @@ const injectDataTablePaginationState = initialValues => Component => {
1898
1899
  return WithDataTablePaginationState;
1899
1900
  };
1900
1901
 
1901
- function ownKeys$1o(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$1o(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1o(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1o(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1902
+ 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; }
1903
+ 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
1904
  const injectNotifications = function () {
1904
1905
  let propName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'notifications';
1905
1906
  return Component => {
@@ -1914,7 +1915,7 @@ const injectNotifications = function () {
1914
1915
  onActionError,
1915
1916
  hideAllPageNotifications
1916
1917
  };
1917
- return jsx(Component, _objectSpread$1o(_objectSpread$1o({}, props), {}, {
1918
+ return jsx(Component, _objectSpread$1i(_objectSpread$1i({}, props), {}, {
1918
1919
  [propName]: notifications
1919
1920
  }));
1920
1921
  };
@@ -1923,22 +1924,22 @@ const injectNotifications = function () {
1923
1924
  };
1924
1925
  };
1925
1926
 
1926
- function ownKeys$1n(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$1n(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1n(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1n(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1927
+ 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; }
1928
+ 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
1929
  function isPropsMapper(mapProps) {
1929
1930
  return typeof mapProps === 'function';
1930
1931
  }
1931
1932
  const withProps = mapProps => Component => {
1932
1933
  const EnhancedWithProps = ownProps => {
1933
- const enhancedProps = isPropsMapper(mapProps) ? _objectSpread$1n(_objectSpread$1n({}, ownProps), mapProps(ownProps)) : _objectSpread$1n(_objectSpread$1n({}, ownProps), mapProps);
1934
- return jsx(Component, _objectSpread$1n({}, enhancedProps));
1934
+ const enhancedProps = isPropsMapper(mapProps) ? _objectSpread$1h(_objectSpread$1h({}, ownProps), mapProps(ownProps)) : _objectSpread$1h(_objectSpread$1h({}, ownProps), mapProps);
1935
+ return jsx(Component, _objectSpread$1h({}, enhancedProps));
1935
1936
  };
1936
1937
  EnhancedWithProps.displayName = wrapDisplayName(Component, 'withProps');
1937
1938
  return EnhancedWithProps;
1938
1939
  };
1939
1940
 
1940
- function ownKeys$1m(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$1m(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1m(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1m(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1941
+ 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; }
1942
+ 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
1943
  const useRedirectEffect = _ref => {
1943
1944
  let goTo = _ref.goTo;
1944
1945
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -1958,30 +1959,30 @@ const defaultOptions$5 = {
1958
1959
  skip: () => false
1959
1960
  };
1960
1961
  const withRedirectTo = options => Component => {
1961
- const mergedOptions = _objectSpread$1m(_objectSpread$1m({}, defaultOptions$5), options);
1962
+ const mergedOptions = _objectSpread$1g(_objectSpread$1g({}, defaultOptions$5), options);
1962
1963
  const WithRedirectTo = props => {
1963
1964
  if (!mergedOptions.skip(props)) {
1964
1965
  return jsx(RedirectTo, {
1965
1966
  goTo: options.selectGoTo(props)
1966
1967
  });
1967
1968
  }
1968
- return jsx(Component, _objectSpread$1m({}, props));
1969
+ return jsx(Component, _objectSpread$1g({}, props));
1969
1970
  };
1970
1971
  WithRedirectTo.displayName = 'WithFirstStepRedirect';
1971
1972
  return WithRedirectTo;
1972
1973
  };
1973
1974
 
1974
- function ownKeys$1l(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$1l(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1l(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1l(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1975
+ 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; }
1976
+ 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
1977
  const defaultOptions$4 = {
1977
1978
  propName: 'modalState',
1978
1979
  isInitiallyOpen: false
1979
1980
  };
1980
1981
  const injectModalState$1 = options => Component => {
1981
- const mergedOptions = _objectSpread$1l(_objectSpread$1l({}, defaultOptions$4), options);
1982
+ const mergedOptions = _objectSpread$1f(_objectSpread$1f({}, defaultOptions$4), options);
1982
1983
  const WithModalState = props => {
1983
1984
  const modalState = useModalState(mergedOptions.isInitiallyOpen);
1984
- return jsx(Component, _objectSpread$1l(_objectSpread$1l({}, props), {}, {
1985
+ return jsx(Component, _objectSpread$1f(_objectSpread$1f({}, props), {}, {
1985
1986
  [mergedOptions.propName]: modalState
1986
1987
  }));
1987
1988
  };
@@ -1989,17 +1990,17 @@ const injectModalState$1 = options => Component => {
1989
1990
  return WithModalState;
1990
1991
  };
1991
1992
 
1992
- 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; }
1993
- function _objectSpread$1k(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1k(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1k(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
1993
+ 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; }
1994
+ 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
1995
  const defaultOptions$3 = {
1995
1996
  propName: 'toggleState',
1996
1997
  isInitiallyOpen: false
1997
1998
  };
1998
1999
  const injectModalState = options => Component => {
1999
- const mergedOptions = _objectSpread$1k(_objectSpread$1k({}, defaultOptions$3), options);
2000
+ const mergedOptions = _objectSpread$1e(_objectSpread$1e({}, defaultOptions$3), options);
2000
2001
  const WithToggleState = props => {
2001
2002
  const toggleState = useToggleState(mergedOptions.isInitiallyOpen);
2002
- return jsx(Component, _objectSpread$1k(_objectSpread$1k({}, props), {}, {
2003
+ return jsx(Component, _objectSpread$1e(_objectSpread$1e({}, props), {}, {
2003
2004
  [mergedOptions.propName]: toggleState
2004
2005
  }));
2005
2006
  };
@@ -2007,8 +2008,8 @@ const injectModalState = options => Component => {
2007
2008
  return WithToggleState;
2008
2009
  };
2009
2010
 
2010
- 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; }
2011
- function _objectSpread$1j(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1j(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$1j(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2011
+ 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; }
2012
+ 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
2013
  const defaultOptions$2 = {
2013
2014
  storageType: 'local',
2014
2015
  segregateByUser: true
@@ -2026,7 +2027,7 @@ const getStorage = storageType => storageType === 'session' ? sessionStorage : l
2026
2027
  const isNil = value => typeof value === 'undefined' || value === null;
2027
2028
  const useStorage = (storageKey, initialStorageValue, options) => {
2028
2029
  var _context;
2029
- const mergedOptions = _objectSpread$1j(_objectSpread$1j({}, defaultOptions$2), options);
2030
+ const mergedOptions = _objectSpread$1d(_objectSpread$1d({}, defaultOptions$2), options);
2030
2031
  const userId = useApplicationContext(context => {
2031
2032
  var _context$user;
2032
2033
  return (_context$user = context.user) === null || _context$user === void 0 ? void 0 : _context$user.id;
@@ -2074,8 +2075,8 @@ const useStorage = (storageKey, initialStorageValue, options) => {
2074
2075
  return [actualStorageValue, writeToStorage, readFromStorage];
2075
2076
  };
2076
2077
 
2077
- 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; }
2078
- 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; }
2078
+ 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; }
2079
+ 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
2080
  const defaultOptions$1 = {
2080
2081
  propName: 'storage',
2081
2082
  storageKey: '',
@@ -2088,7 +2089,7 @@ const injectStorage = options => WrappedComponent => {
2088
2089
  * Options are being merged by spreading as destructuring and defaulting in
2089
2090
  * argument position does not allow passing specification of option(s).
2090
2091
  */
2091
- const mergedOptions = _objectSpread$1i(_objectSpread$1i({}, defaultOptions$1), options);
2092
+ const mergedOptions = _objectSpread$1c(_objectSpread$1c({}, defaultOptions$1), options);
2092
2093
  const WithStorage = props => {
2093
2094
  const _useStorage = useStorage(mergedOptions.storageKey(props), mergedOptions.initalStorageValue, mergedOptions.options),
2094
2095
  _useStorage2 = _slicedToArray(_useStorage, 3),
@@ -2102,7 +2103,7 @@ const injectStorage = options => WrappedComponent => {
2102
2103
  readFromStorage
2103
2104
  }
2104
2105
  };
2105
- return jsx(WrappedComponent, _objectSpread$1i(_objectSpread$1i({}, props), storageProp));
2106
+ return jsx(WrappedComponent, _objectSpread$1c(_objectSpread$1c({}, props), storageProp));
2106
2107
  };
2107
2108
  WithStorage.displayName = wrapDisplayName(WrappedComponent, 'WithStorage');
2108
2109
  return WithStorage;
@@ -2146,9 +2147,9 @@ const usePrevious = value => {
2146
2147
  return ref.current;
2147
2148
  };
2148
2149
 
2149
- 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; }
2150
- function _objectSpread$1h(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1h(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$1h(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
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: "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: 1074, 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 nameAllLocales {\n locale\n value\n }\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
2150
+ 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; }
2151
+ 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; }
2152
+ 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
2153
  const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
2153
2154
  var _storesQueryResult$re;
2154
2155
  if (!storesQueryResult) return null;
@@ -2158,15 +2159,15 @@ const filterStoresOutdatedDanglingProductSelections = storesQueryResult => {
2158
2159
  offset: storesQueryResult.offset,
2159
2160
  results: (_storesQueryResult$re = storesQueryResult.results) === null || _storesQueryResult$re === void 0 ? void 0 : _mapInstanceProperty(_storesQueryResult$re).call(_storesQueryResult$re, store => {
2160
2161
  var _store$productSelecti;
2161
- return _objectSpread$1h(_objectSpread$1h({}, store), {}, {
2162
+ return _objectSpread$1b(_objectSpread$1b({}, store), {}, {
2162
2163
  productSelections: (_store$productSelecti = store.productSelections) === null || _store$productSelecti === void 0 ? void 0 : _filterInstanceProperty(_store$productSelecti).call(_store$productSelecti, productSelectionRef => Boolean(productSelectionRef.productSelection))
2163
2164
  });
2164
2165
  })
2165
2166
  };
2166
2167
  };
2167
- const createQueryVariables$9 = ownProps => {
2168
+ const createQueryVariables$6 = ownProps => {
2168
2169
  var _context;
2169
- return _objectSpread$1h(_objectSpread$1h({
2170
+ return _objectSpread$1b(_objectSpread$1b({
2170
2171
  limit: ownProps.limit,
2171
2172
  offset: ownProps.offset,
2172
2173
  sort: _sortInstanceProperty(ownProps)
@@ -2180,7 +2181,7 @@ const createQueryVariables$9 = ownProps => {
2180
2181
  const useStoresListFetcher = props => {
2181
2182
  const excludeExtendedStoresList = props.excludeExtendedStoresList || false;
2182
2183
  const excludeProductSelections = props.excludeProductSelections || false;
2183
- const queryVariables = createQueryVariables$9({
2184
+ const queryVariables = createQueryVariables$6({
2184
2185
  limit: props.limit,
2185
2186
  offset: props.offset,
2186
2187
  sort: _sortInstanceProperty(props),
@@ -2222,7 +2223,7 @@ const extractKeysFromWherePredicateClause = function () {
2222
2223
  let whereClause = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
2223
2224
  return whereClause.substring(_lastIndexOfInstanceProperty(whereClause).call(whereClause, '("') + 1, _lastIndexOfInstanceProperty(whereClause).call(whereClause, '")')).replace(/["]/g, '').split(', ');
2224
2225
  };
2225
- const handlers$7 = {
2226
+ const handlers$5 = {
2226
2227
  StoresList: {
2227
2228
  all: stores => graphql.query('FetchStoresQuery', (req, res, ctx) => {
2228
2229
  // GIVEN req.variables.where is specified
@@ -2321,8 +2322,8 @@ function useDidFormValidationFail() {
2321
2322
  return Boolean(didFormValidationFail);
2322
2323
  }
2323
2324
 
2324
- 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; }
2325
- 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; }
2325
+ 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; }
2326
+ 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
2327
  const TEN_MINUTES_IN_MS = 600000;
2327
2328
  const defaultOptions = {
2328
2329
  reminderInterval: REMINDER_OPTION_1_DAY,
@@ -2350,7 +2351,7 @@ const useHasReminderExpired = readReminderInterval => {
2350
2351
  };
2351
2352
  const usePersistedReminder = function () {
2352
2353
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2353
- const mergedOptions = _objectSpread$1g(_objectSpread$1g({}, defaultOptions), options);
2354
+ const mergedOptions = _objectSpread$1a(_objectSpread$1a({}, defaultOptions), options);
2354
2355
  const _useStorage = useStorage(mergedOptions.storageKey, null),
2355
2356
  _useStorage2 = _slicedToArray(_useStorage, 3),
2356
2357
  initialChosenReminderInterval = _useStorage2[0],
@@ -2396,7 +2397,7 @@ const usePersistedReminder = function () {
2396
2397
  return [hasReminderExpired, hasChosenReminderRef, scheduleReminder];
2397
2398
  };
2398
2399
 
2399
- var messages$M = defineMessages({
2400
+ var messages$I = defineMessages({
2400
2401
  profileUpdated: {
2401
2402
  id: 'NotificationText.profileUpdated',
2402
2403
  description: 'Label for the notification header',
@@ -2414,8 +2415,8 @@ var messages$M = defineMessages({
2414
2415
  }
2415
2416
  });
2416
2417
 
2417
- 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; }
2418
- 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; }
2418
+ 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; }
2419
+ 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
2420
  const LinkToProfile = props => {
2420
2421
  return jsx(Link, {
2421
2422
  to: "/account/profile",
@@ -2433,9 +2434,9 @@ const NotificationText = () => jsxs(Spacings.Stack, {
2433
2434
  children: [jsx(Text.Body, {
2434
2435
  as: "p",
2435
2436
  isBold: true,
2436
- intlMessage: messages$M.profileUpdated
2437
+ intlMessage: messages$I.profileUpdated
2437
2438
  }), jsx(Text.Body, {
2438
- intlMessage: _objectSpread$1f(_objectSpread$1f({}, messages$M.addMoreInformation), {}, {
2439
+ intlMessage: _objectSpread$19(_objectSpread$19({}, messages$I.addMoreInformation), {}, {
2439
2440
  values: {
2440
2441
  newline: getNewLine
2441
2442
  }
@@ -2444,7 +2445,7 @@ const NotificationText = () => jsxs(Spacings.Stack, {
2444
2445
  }), jsx(Spacings.Stack, {
2445
2446
  scale: "xs",
2446
2447
  children: jsx(Text.Body, {
2447
- intlMessage: _objectSpread$1f(_objectSpread$1f({}, messages$M.informationAndProfileLink), {}, {
2448
+ intlMessage: _objectSpread$19(_objectSpread$19({}, messages$I.informationAndProfileLink), {}, {
2448
2449
  values: {
2449
2450
  newline: getNewLine,
2450
2451
  link: getLinkToProfile
@@ -2565,7 +2566,7 @@ const useEventCallback = (fn, dependencies) => {
2565
2566
  }, [ref]);
2566
2567
  };
2567
2568
 
2568
- var messages$L = defineMessages({
2569
+ var messages$H = defineMessages({
2569
2570
  fallbackHint: {
2570
2571
  id: 'KeyFallback.fallbackHint',
2571
2572
  description: 'key fallback for a specified resource key (e.g name)',
@@ -2589,7 +2590,7 @@ const useLocalizedKeyFallback = () => {
2589
2590
  return values => {
2590
2591
  if (!values.resource) return null;
2591
2592
  const localizedString = values.resource[values.localizedStringFieldName];
2592
- const fallbackHintWithKey = intl.formatMessage(messages$L.fallbackHint, {
2593
+ const fallbackHintWithKey = intl.formatMessage(messages$H.fallbackHint, {
2593
2594
  key: values.resource.key
2594
2595
  });
2595
2596
  if (!localizedString) return fallbackHintWithKey;
@@ -2601,8 +2602,8 @@ const useDebouncedPromiseCallback = (promiseCallback, wait) =>
2601
2602
  // eslint-disable-next-line testing-library/await-async-utils
2602
2603
  useCallback(debounce(promiseCallback, wait), [promiseCallback]);
2603
2604
 
2604
- 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; }
2605
- function _objectSpread$1e(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1e(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$1e(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2605
+ 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; }
2606
+ 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
2607
  const prepareMutableColumnProps = (columnConfig, mutableColumnProps) => {
2607
2608
  const updatedColumnProps = {};
2608
2609
  _forEachInstanceProperty(mutableColumnProps).call(mutableColumnProps, columnProp => {
@@ -2622,14 +2623,14 @@ const retrieveColumnsWithCachedConfiguration = _ref => {
2622
2623
  mutableColumnProps = _ref.mutableColumnProps;
2623
2624
  return _mapInstanceProperty(_context = _filterInstanceProperty(cachedVisibleTableConfiguration).call(cachedVisibleTableConfiguration, cachedColumn => _findInstanceProperty(allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, initialConfig => initialConfig.key === cachedColumn.key))).call(_context, cachedConfig => {
2624
2625
  const initialColumnConfig = _findInstanceProperty(allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, initialConfig => initialConfig.key === cachedConfig.key);
2625
- return _objectSpread$1e(_objectSpread$1e({}, initialColumnConfig), prepareMutableColumnProps(cachedConfig, mutableColumnProps));
2626
+ return _objectSpread$18(_objectSpread$18({}, initialColumnConfig), prepareMutableColumnProps(cachedConfig, mutableColumnProps));
2626
2627
  });
2627
2628
  };
2628
2629
  const handleCacheUpdate = _ref2 => {
2629
2630
  let update = _ref2.update,
2630
2631
  cachedVisibleTableConfiguration = _ref2.cachedVisibleTableConfiguration,
2631
2632
  updateCachedTableConfiguration = _ref2.updateCachedTableConfiguration;
2632
- return updateCachedTableConfiguration(_objectSpread$1e(_objectSpread$1e({}, pick(cachedVisibleTableConfiguration, ['columnsConfig', 'displaySettings'])), update));
2633
+ return updateCachedTableConfiguration(_objectSpread$18(_objectSpread$18({}, pick(cachedVisibleTableConfiguration, ['columnsConfig', 'displaySettings'])), update));
2633
2634
  };
2634
2635
 
2635
2636
  // Signature:
@@ -2658,7 +2659,7 @@ const usePersistedTableConfiguration = props => {
2658
2659
  return {
2659
2660
  columnsConfig: _mapInstanceProperty(initialVisibleColumnKeys).call(initialVisibleColumnKeys, visibleColumnKey => {
2660
2661
  const visibleColumnConfig = _findInstanceProperty(allAvailableColumnsConfiguration).call(allAvailableColumnsConfiguration, columnConfig => columnConfig.key === visibleColumnKey);
2661
- return _objectSpread$1e({
2662
+ return _objectSpread$18({
2662
2663
  key: visibleColumnKey
2663
2664
  }, prepareMutableColumnProps(visibleColumnConfig, mutableColumnProps));
2664
2665
  }),
@@ -2718,7 +2719,7 @@ const useProductSelectionsTotalFetcher = props => {
2718
2719
  };
2719
2720
  };
2720
2721
 
2721
- const handlers$6 = {
2722
+ const handlers$4 = {
2722
2723
  ProductSelections: {
2723
2724
  total: total => graphql.query('FetchProductSelectionsTotal', (req, res, ctx) => res(ctx.data({
2724
2725
  productSelections: {
@@ -2729,14 +2730,14 @@ const handlers$6 = {
2729
2730
  }
2730
2731
  };
2731
2732
 
2732
- 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; }
2733
- 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; }
2733
+ 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; }
2734
+ 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
2735
 
2735
2736
  // eslint-disable-next-line import/prefer-default-export
2736
2737
  const convertProductSelectionsFromGraphQl = productSelections => {
2737
2738
  var _context;
2738
- return (productSelections === null || productSelections === void 0 ? void 0 : productSelections.results) && _objectSpread$1d(_objectSpread$1d({}, productSelections), {}, {
2739
- results: _mapInstanceProperty(_context = productSelections.results).call(_context, productSelection => _objectSpread$1d({}, applyTransformedLocalizedFields(productSelection, [{
2739
+ return (productSelections === null || productSelections === void 0 ? void 0 : productSelections.results) && _objectSpread$17(_objectSpread$17({}, productSelections), {}, {
2740
+ results: _mapInstanceProperty(_context = productSelections.results).call(_context, productSelection => _objectSpread$17({}, applyTransformedLocalizedFields(productSelection, [{
2740
2741
  from: 'nameAllLocales',
2741
2742
  to: 'name'
2742
2743
  }])))
@@ -2744,7 +2745,7 @@ const convertProductSelectionsFromGraphQl = productSelections => {
2744
2745
  };
2745
2746
 
2746
2747
  var FetchProductSelections = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchProductSelections" }, 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: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "productSelections" }, 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" } } }], 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: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "version" }, 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: "createdAt" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "lastModifiedAt" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "type" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 341, source: { body: "query FetchProductSelections($limit: Int, $offset: Int, $sort: [String!]) {\n productSelections(limit: $limit, offset: $offset, sort: $sort) {\n total\n count\n offset\n results {\n id\n version\n key\n nameAllLocales {\n locale\n value\n }\n createdAt\n lastModifiedAt\n type\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
2747
- const createQueryVariables$8 = ownProps => ({
2748
+ const createQueryVariables$5 = ownProps => ({
2748
2749
  limit: ownProps.limit,
2749
2750
  offset: ownProps.offset,
2750
2751
  sort: _sortInstanceProperty(ownProps)
@@ -2756,7 +2757,7 @@ const emptyProductSelections = {
2756
2757
  results: []
2757
2758
  };
2758
2759
  const useProductSelectionsFetcher = props => {
2759
- const queryVariables = createQueryVariables$8(props);
2760
+ const queryVariables = createQueryVariables$5(props);
2760
2761
  const _useQuery = useQuery$1(FetchProductSelections, {
2761
2762
  context: {
2762
2763
  target: GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM
@@ -2774,7 +2775,7 @@ const useProductSelectionsFetcher = props => {
2774
2775
  };
2775
2776
  };
2776
2777
 
2777
- const handlers$5 = {
2778
+ const handlers$3 = {
2778
2779
  ProductSelections: {
2779
2780
  all: productSelections => graphql.query('FetchProductSelections', (req, res, ctx) => res(ctx.data({
2780
2781
  productSelections
@@ -2886,7 +2887,7 @@ const CenteredLoadingSpinner = () => jsx("div", {
2886
2887
  });
2887
2888
  CenteredLoadingSpinner.displayName = 'CenteredLoadingSpinner';
2888
2889
 
2889
- var messages$K = defineMessages({
2890
+ var messages$G = defineMessages({
2890
2891
  noChannelsFound: {
2891
2892
  id: 'Products.ChannelPickerInput.noChannelsFound',
2892
2893
  description: 'The message to display when no channels were found',
@@ -2912,8 +2913,8 @@ var commonPickerMessages = defineMessages({
2912
2913
  }
2913
2914
  });
2914
2915
 
2915
- 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; }
2916
- function _objectSpread$1c(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1c(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$1c(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
2916
+ 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; }
2917
+ 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
2918
  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
2919
  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
2920
  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 +2935,7 @@ const ChannelPickerInput = _ref => {
2934
2935
  const _useIntl = useIntl(),
2935
2936
  formatMessage = _useIntl.formatMessage;
2936
2937
  const dataLocale = useApplicationContext(applicationContext => applicationContext.dataLocale);
2937
- const variables = useMemo(() => _objectSpread$1c({
2938
+ const variables = useMemo(() => _objectSpread$16({
2938
2939
  sortByNamePath: "name.".concat(dataLocale)
2939
2940
  }, role && {
2940
2941
  where: "roles contains any (\"".concat(role, "\")")
@@ -2995,7 +2996,7 @@ const ChannelPickerInput = _ref => {
2995
2996
  if (isCurrentOptionLoadingFailed) onError(currentOption.error);
2996
2997
  }, [isCurrentOptionLoadingFailed, onError, currentOption]);
2997
2998
  const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
2998
- const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$K.noChannelsFound), [loadingError, formatMessage]);
2999
+ const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$G.noChannelsFound), [loadingError, formatMessage]);
2999
3000
  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 : '';
3000
3001
  return jsx(Constraints.Horizontal, {
3001
3002
  max: "scale",
@@ -3006,7 +3007,7 @@ const ChannelPickerInput = _ref => {
3006
3007
  children: jsx(AsyncSelectInput, {
3007
3008
  id: name,
3008
3009
  name: name,
3009
- placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : formatMessage(messages$K.placeholder),
3010
+ placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : formatMessage(messages$G.placeholder),
3010
3011
  loadOptions: loadOptionsDebounced,
3011
3012
  defaultOptions: true,
3012
3013
  showOptionGroupDivider: true,
@@ -3063,8 +3064,8 @@ var FormattedDateTime$1 = injectIntl(FormattedDateTime);
3063
3064
 
3064
3065
  const keepDisplayName = component => setDisplayName(getDisplayName(component));
3065
3066
 
3066
- 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; }
3067
- function _objectSpread$1b(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$1b(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$1b(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
3067
+ 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; }
3068
+ 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
3069
  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
3070
  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
3071
  const withMouseOverState = BaseComponent => {
@@ -3096,7 +3097,7 @@ const withMouseOverState = BaseComponent => {
3096
3097
  handleMouseOver: this.handleMouseOver,
3097
3098
  handleMouseOut: this.handleMouseOut
3098
3099
  };
3099
- return jsx(BaseComponent, _objectSpread$1b({}, _objectSpread$1b(_objectSpread$1b({}, this.props), injectedProps)));
3100
+ return jsx(BaseComponent, _objectSpread$15({}, _objectSpread$15(_objectSpread$15({}, this.props), injectedProps)));
3100
3101
  }
3101
3102
  }]);
3102
3103
  return WithMouseOverState;
@@ -3105,8 +3106,8 @@ const withMouseOverState = BaseComponent => {
3105
3106
  return WithMouseOverState;
3106
3107
  };
3107
3108
 
3108
- 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; }
3109
- 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; }
3109
+ 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; }
3110
+ 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
3111
  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
3112
  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
3113
  var styles$i = {
@@ -3217,7 +3218,7 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
3217
3218
  }, {
3218
3219
  key: "render",
3219
3220
  value: function render() {
3220
- const commonProps = _objectSpread$1a(_objectSpread$1a({
3221
+ const commonProps = _objectSpread$14(_objectSpread$14({
3221
3222
  value: this.state.draftValue,
3222
3223
  autoComplete: this.props.autoComplete,
3223
3224
  onChange: this.handleChange,
@@ -3236,7 +3237,7 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
3236
3237
  htmlFor: inputId,
3237
3238
  children: this.props.label
3238
3239
  })
3239
- }), this.props.as === 'textarea' ? jsx(Textarea, _objectSpread$1a(_objectSpread$1a({}, commonProps), {}, {
3240
+ }), this.props.as === 'textarea' ? jsx(Textarea, _objectSpread$14(_objectSpread$14({}, commonProps), {}, {
3240
3241
  id: inputId,
3241
3242
  className: classnames(styles$i.textarea, styles$i["textarea-".concat(this.props.style)], {
3242
3243
  [styles$i.invalid]: !this.props.isValid,
@@ -3245,7 +3246,7 @@ let ThrottledField = /*#__PURE__*/function (_PureComponent) {
3245
3246
  rows: 1,
3246
3247
  maxRows: this.props.autoSize ? undefined : 1,
3247
3248
  cacheMeasurements: true
3248
- })) : jsx("input", _objectSpread$1a(_objectSpread$1a({}, commonProps), {}, {
3249
+ })) : jsx("input", _objectSpread$14(_objectSpread$14({}, commonProps), {}, {
3249
3250
  id: inputId,
3250
3251
  ref: this.props.inputRef,
3251
3252
  type: this.props.as,
@@ -3272,7 +3273,7 @@ ThrottledField.defaultProps = {
3272
3273
  label: 'Throttled field'
3273
3274
  };
3274
3275
 
3275
- var messages$J = defineMessages({
3276
+ var messages$F = defineMessages({
3276
3277
  buttonLabel: {
3277
3278
  id: 'SearchInput.buttonLabel',
3278
3279
  description: 'Label for "Search" button.',
@@ -3379,7 +3380,7 @@ let SearchInput = /*#__PURE__*/function (_Component) {
3379
3380
  "data-testid": this.props.testId || 'search-input',
3380
3381
  value: this.state.text,
3381
3382
  label: this.props.label,
3382
- placeholder: this.props.placeholder || this.props.intl.formatMessage(messages$J.placeholder),
3383
+ placeholder: this.props.placeholder || this.props.intl.formatMessage(messages$F.placeholder),
3383
3384
  inputRef: this.props.inputRef || this.setInputRef,
3384
3385
  onChange: this.handleInputChange,
3385
3386
  onEnter: this.handleEnter,
@@ -3594,7 +3595,7 @@ const useProductTypeOptions = _ref3 => {
3594
3595
  };
3595
3596
  };
3596
3597
 
3597
- var messages$I = defineMessages({
3598
+ var messages$E = defineMessages({
3598
3599
  bottomOption: {
3599
3600
  id: 'Products.Pickers.bottomOption',
3600
3601
  description: 'The message to display at the end of the options menu',
@@ -3602,11 +3603,11 @@ var messages$I = defineMessages({
3602
3603
  }
3603
3604
  });
3604
3605
 
3605
- 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; }
3606
- 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; }
3606
+ 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; }
3607
+ 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
3608
  const getBottomOption = () => ({
3608
3609
  options: [{
3609
- label: messages$I.bottomOption,
3610
+ label: messages$E.bottomOption,
3610
3611
  isBottomOption: true,
3611
3612
  isDisabled: true
3612
3613
  }]
@@ -3614,7 +3615,7 @@ const getBottomOption = () => ({
3614
3615
  const Option$2 = props => {
3615
3616
  const _useIntl = useIntl(),
3616
3617
  formatMessage = _useIntl.formatMessage;
3617
- return jsx(AsyncSelectInput.Option, _objectSpread$19(_objectSpread$19({}, props), {}, {
3618
+ return jsx(AsyncSelectInput.Option, _objectSpread$13(_objectSpread$13({}, props), {}, {
3618
3619
  children: props.data.isBottomOption ? jsx(Text.Detail, {
3619
3620
  tone: "secondary",
3620
3621
  children: formatMessage(props.data.label)
@@ -3631,8 +3632,8 @@ const Option$2 = props => {
3631
3632
  };
3632
3633
  Option$2.displayName = 'Option';
3633
3634
 
3634
- 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; }
3635
- 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; }
3635
+ 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; }
3636
+ 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
3637
  const useHandlers = onChange => {
3637
3638
  const _useState = useState(),
3638
3639
  _useState2 = _slicedToArray(_useState, 2),
@@ -3643,8 +3644,8 @@ const useHandlers = onChange => {
3643
3644
  }, []);
3644
3645
  const handleChange = useEventCallback(event => {
3645
3646
  var _event$target$value;
3646
- const eventWithExtractedValue = _objectSpread$18(_objectSpread$18({}, event), {}, {
3647
- target: _objectSpread$18(_objectSpread$18({}, event.target), {}, {
3647
+ const eventWithExtractedValue = _objectSpread$12(_objectSpread$12({}, event), {}, {
3648
+ target: _objectSpread$12(_objectSpread$12({}, event.target), {}, {
3648
3649
  value: (_event$target$value = event.target.value) === null || _event$target$value === void 0 ? void 0 : _event$target$value.value
3649
3650
  })
3650
3651
  });
@@ -3653,8 +3654,8 @@ const useHandlers = onChange => {
3653
3654
  return [handleInputChange, handleChange];
3654
3655
  };
3655
3656
 
3656
- 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; }
3657
- function _objectSpread$17(target) { for (var i = 1; i < arguments.length; i++) { var _context6, _context7; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context6 = ownKeys$17(Object(source), !0)).call(_context6, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context7 = ownKeys$17(Object(source))).call(_context7, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
3657
+ 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; }
3658
+ 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
3659
  const constructPrefixSearchPredicate = function () {
3659
3660
  let prefixSearchFields = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
3660
3661
  let lowerBound = arguments.length > 1 ? arguments[1] : undefined;
@@ -3697,7 +3698,7 @@ const useLoadOptions = _ref => {
3697
3698
  }();
3698
3699
  return client.query({
3699
3700
  query,
3700
- variables: _objectSpread$17({
3701
+ variables: _objectSpread$11({
3701
3702
  where
3702
3703
  }, variables),
3703
3704
  context: {
@@ -3751,7 +3752,7 @@ function useCurrentOption(_ref) {
3751
3752
  };
3752
3753
  }
3753
3754
 
3754
- var messages$H = defineMessages({
3755
+ var messages$D = defineMessages({
3755
3756
  noProductTypesFound: {
3756
3757
  id: 'Products.ProductTypePickerInput.noProductTypesFound',
3757
3758
  description: 'The message to display when no product types were found',
@@ -3841,7 +3842,7 @@ const ProductTypePickerInput = _ref => {
3841
3842
  children: jsx(AsyncSelectInput, {
3842
3843
  id: name,
3843
3844
  name: name,
3844
- placeholder: formatMessage(messages$H.placeholder),
3845
+ placeholder: formatMessage(messages$D.placeholder),
3845
3846
  loadOptions: loadOptionsDebounced,
3846
3847
  defaultOptions: [],
3847
3848
  isClearable: isClearable,
@@ -3854,7 +3855,7 @@ const ProductTypePickerInput = _ref => {
3854
3855
  onInputChange: handleInputChange,
3855
3856
  onBlur: onBlur,
3856
3857
  value: currentOption.data,
3857
- noOptionsMessage: () => loadingError ? null : formatMessage(messages$H.noProductTypesFound),
3858
+ noOptionsMessage: () => loadingError ? null : formatMessage(messages$D.noProductTypesFound),
3858
3859
  hasError: hasError || isLoadingFailed
3859
3860
  })
3860
3861
  }), isLoadingFailed && jsx(Text.Body, {
@@ -3866,7 +3867,7 @@ const ProductTypePickerInput = _ref => {
3866
3867
  };
3867
3868
  ProductTypePickerInput.displayName = 'ProductTypePickerInput';
3868
3869
 
3869
- var messages$G = defineMessages({
3870
+ var messages$C = defineMessages({
3870
3871
  noStatesFound: {
3871
3872
  id: 'Products.StatePickerInput.noStatesFound',
3872
3873
  description: 'The message to display when no states were found',
@@ -3950,7 +3951,7 @@ const StatePickerInput = _ref => {
3950
3951
  if (isCurrentOptionLoadingFailed) onError(currentOption.error);
3951
3952
  }, [isCurrentOptionLoadingFailed, onError, currentOption]);
3952
3953
  const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
3953
- const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$G.noStatesFound), [loadingError, formatMessage]);
3954
+ const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$C.noStatesFound), [loadingError, formatMessage]);
3954
3955
  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 : '';
3955
3956
  return jsx(Constraints.Horizontal, {
3956
3957
  max: "scale",
@@ -3962,7 +3963,7 @@ const StatePickerInput = _ref => {
3962
3963
  id: name,
3963
3964
  name: name,
3964
3965
  horizontalConstraint: "scale",
3965
- placeholder: formatMessage(messages$G.placeholder),
3966
+ placeholder: formatMessage(messages$C.placeholder),
3966
3967
  loadOptions: loadOptionsDebounced,
3967
3968
  defaultOptions: true,
3968
3969
  showOptionGroupDivider: true,
@@ -3988,9 +3989,9 @@ const StatePickerInput = _ref => {
3988
3989
  };
3989
3990
  StatePickerInput.displayName = 'StatePickerInput';
3990
3991
 
3991
- 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; }
3992
- function _objectSpread$16(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys$16(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys$16(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$16({
3992
+ 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; }
3993
+ 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; }
3994
+ const TooltipWrapper = /*#__PURE__*/React.forwardRef((props, ref) => jsx("div", _objectSpread$10({
3994
3995
  ref: ref,
3995
3996
  style: {
3996
3997
  display: 'block',
@@ -4128,8 +4129,8 @@ const getPrefixSearchBounds = input => {
4128
4129
  };
4129
4130
 
4130
4131
  const _excluded = ["action"];
4131
- 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; }
4132
- function _objectSpread$15(target) { for (var i = 1; i < arguments.length; i++) { var _context8, _context9; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context8 = ownKeys$15(Object(source), !0)).call(_context8, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context9 = ownKeys$15(Object(source))).call(_context9, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
4132
+ 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; }
4133
+ 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
4134
 
4134
4135
  /**
4135
4136
  * Checks if a value is a LocalizedString
@@ -4151,7 +4152,7 @@ const getIsLocalizedString = maybeLocalizedString => {
4151
4152
  */
4152
4153
  const transformCustomFieldsRawToCustomFields = customFieldsRaw => {
4153
4154
  if (!customFieldsRaw || customFieldsRaw.length === 0) return null;
4154
- return _reduceInstanceProperty(customFieldsRaw).call(customFieldsRaw, (customFields, customField) => _objectSpread$15(_objectSpread$15({}, customFields), {}, {
4155
+ return _reduceInstanceProperty(customFieldsRaw).call(customFieldsRaw, (customFields, customField) => _objectSpread$$(_objectSpread$$({}, customFields), {}, {
4155
4156
  [customField.name]: customField.value
4156
4157
  }), {});
4157
4158
  };
@@ -4175,7 +4176,7 @@ function transformLocalizedFieldsForCategory(category) {
4175
4176
  const transformedData = applyTransformedLocalizedFields(category, transformationOptions);
4176
4177
  const parent = category.parent ? transformLocalizedFieldsForCategory(category.parent) : null;
4177
4178
  const ancestors = category.ancestors ? _mapInstanceProperty(_context = category.ancestors).call(_context, ancestor => transformLocalizedFieldsForCategory(ancestor)) : null;
4178
- return _objectSpread$15(_objectSpread$15(_objectSpread$15({}, transformedData), parent ? {
4179
+ return _objectSpread$$(_objectSpread$$(_objectSpread$$({}, transformedData), parent ? {
4179
4180
  parent
4180
4181
  } : {}), ancestors ? {
4181
4182
  ancestors
@@ -4389,7 +4390,7 @@ const convertAction = (actionName, actionPayload) => {
4389
4390
  case 'addAttributeDefinition':
4390
4391
  return {
4391
4392
  [actionName]: {
4392
- attributeDefinition: _objectSpread$15(_objectSpread$15({}, actionPayload.attribute), {}, {
4393
+ attributeDefinition: _objectSpread$$(_objectSpread$$({}, actionPayload.attribute), {}, {
4393
4394
  label: transformLocalizedStringToLocalizedField(actionPayload.attribute.label),
4394
4395
  inputTip: transformLocalizedStringToLocalizedField(actionPayload.attribute.inputTip),
4395
4396
  type: createAttributeTypeValue(actionPayload.attribute)
@@ -4485,7 +4486,7 @@ const convertAction = (actionName, actionPayload) => {
4485
4486
  return {
4486
4487
  [actionName]: {
4487
4488
  attributeName: actionPayload.attributeName,
4488
- value: _objectSpread$15(_objectSpread$15({}, actionPayload.value), {}, {
4489
+ value: _objectSpread$$(_objectSpread$$({}, actionPayload.value), {}, {
4489
4490
  label: transformLocalizedStringToLocalizedField(actionPayload.value.label)
4490
4491
  })
4491
4492
  }
@@ -4494,7 +4495,7 @@ const convertAction = (actionName, actionPayload) => {
4494
4495
  return {
4495
4496
  [actionName]: {
4496
4497
  attributeName: actionPayload.attributeName,
4497
- newValue: _objectSpread$15(_objectSpread$15({}, actionPayload.newValue), {}, {
4498
+ newValue: _objectSpread$$(_objectSpread$$({}, actionPayload.newValue), {}, {
4498
4499
  label: transformLocalizedStringToLocalizedField(actionPayload.newValue.label)
4499
4500
  })
4500
4501
  }
@@ -4521,7 +4522,7 @@ const convertAction = (actionName, actionPayload) => {
4521
4522
  name: transformLocalizedStringToLocalizedField(actionPayload.name),
4522
4523
  taxCategory: actionPayload.taxCategory,
4523
4524
  money: {
4524
- [actionPayload.money.type]: _objectSpread$15({
4525
+ [actionPayload.money.type]: _objectSpread$$({
4525
4526
  centAmount: actionPayload.money.centAmount,
4526
4527
  currencyCode: actionPayload.money.currencyCode
4527
4528
  }, actionPayload.money.type === PRECISION_TYPES.highPrecision && {
@@ -4576,8 +4577,8 @@ const convertAction = (actionName, actionPayload) => {
4576
4577
  fields: customFields
4577
4578
  } : null;
4578
4579
  return {
4579
- [actionName]: _objectSpread$15(_objectSpread$15({}, actionPayload), {}, {
4580
- address: _objectSpread$15(_objectSpread$15({}, omit(actionPayload.address, ['__typename'])), {}, {
4580
+ [actionName]: _objectSpread$$(_objectSpread$$({}, actionPayload), {}, {
4581
+ address: _objectSpread$$(_objectSpread$$({}, omit(actionPayload.address, ['__typename'])), {}, {
4581
4582
  custom
4582
4583
  })
4583
4584
  })
@@ -4653,8 +4654,8 @@ function omitDeep(obj, fieldsToOmit) {
4653
4654
  return originalOmitDeep(obj, fieldsToOmit);
4654
4655
  }
4655
4656
 
4656
- 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; }
4657
- 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; }
4657
+ 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; }
4658
+ 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; }
4658
4659
  function getPriceChannelName(price) {
4659
4660
  var _ref, _price$channel$name, _price$channel, _price$channel2;
4660
4661
  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;
@@ -4668,11 +4669,11 @@ function getDiscountValue(price) {
4668
4669
  } 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) {
4669
4670
  fractionedAmount = getFractionedAmount(price.value) - getFractionedAmount(price.discounted.value);
4670
4671
  }
4671
- return price.discounted ? _objectSpread$14(_objectSpread$14({}, price.value), {}, {
4672
+ return price.discounted ? _objectSpread$_(_objectSpread$_({}, price.value), {}, {
4672
4673
  fractionedAmount,
4673
4674
  centAmount: price.value.centAmount - price.discounted.value.centAmount,
4674
4675
  preciseAmount
4675
- }) : _objectSpread$14(_objectSpread$14({}, price.value), {}, {
4676
+ }) : _objectSpread$_(_objectSpread$_({}, price.value), {}, {
4676
4677
  centAmount: 0
4677
4678
  });
4678
4679
  }
@@ -4693,7 +4694,7 @@ function getNetUnitPrice(_ref2) {
4693
4694
  }
4694
4695
  let preciseAmount;
4695
4696
  if (((_price$value4 = price.value) === null || _price$value4 === void 0 ? void 0 : _price$value4.type) === PRECISION_TYPES.highPrecision) preciseAmount = price.value.preciseAmount / (1 + lineItem.taxRate.amount);
4696
- return _objectSpread$14(_objectSpread$14({}, price.value), {}, {
4697
+ return _objectSpread$_(_objectSpread$_({}, price.value), {}, {
4697
4698
  centAmount,
4698
4699
  preciseAmount
4699
4700
  });
@@ -4705,7 +4706,7 @@ function getMinimumPricesByCurrencyCode(prices) {
4705
4706
  const currencyCode = price.value.currencyCode;
4706
4707
  const fractionedAmount = getFractionedAmount(price.value);
4707
4708
  if (currencyCode && !isNil$1(fractionedAmount)) {
4708
- if (!minPrices[currencyCode] || fractionedAmount < getFractionedAmount(minPrices[currencyCode])) return _objectSpread$14(_objectSpread$14({}, minPrices), {}, {
4709
+ if (!minPrices[currencyCode] || fractionedAmount < getFractionedAmount(minPrices[currencyCode])) return _objectSpread$_(_objectSpread$_({}, minPrices), {}, {
4709
4710
  [currencyCode]: price.value
4710
4711
  });
4711
4712
  }
@@ -4714,8 +4715,8 @@ function getMinimumPricesByCurrencyCode(prices) {
4714
4715
  return _Object$values(minPricesByCurrency);
4715
4716
  }
4716
4717
 
4717
- 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; }
4718
- function _objectSpread$13(target) { for (var i = 1; i < arguments.length; i++) { var _context5, _context6; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context5 = ownKeys$13(Object(source), !0)).call(_context5, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context6 = ownKeys$13(Object(source))).call(_context6, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
4718
+ 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; }
4719
+ 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; }
4719
4720
  const transformCustomFieldFromGraphQLResponse = resource => {
4720
4721
  var _context, _context4;
4721
4722
  return {
@@ -4730,14 +4731,14 @@ const transformCustomFieldFromGraphQLResponse = resource => {
4730
4731
  return {
4731
4732
  name: fieldDefinition.name,
4732
4733
  required: fieldDefinition.required,
4733
- 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$13(_objectSpread$13({}, fieldDefinition.type), {}, {
4734
- elementType: _objectSpread$13(_objectSpread$13({}, fieldDefinition.type.elementType), {}, {
4734
+ 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$Z(_objectSpread$Z({}, fieldDefinition.type), {}, {
4735
+ elementType: _objectSpread$Z(_objectSpread$Z({}, fieldDefinition.type.elementType), {}, {
4735
4736
  values: _mapInstanceProperty(_context2 = _valuesInstanceProperty(fieldDefinition.type.elementType)).call(_context2, value => ({
4736
4737
  key: value.key,
4737
4738
  label: transformLocalizedFieldToLocalizedString(value.labelAllLocales)
4738
4739
  }))
4739
4740
  })
4740
- }) : ((_fieldDefinition$type3 = fieldDefinition.type) === null || _fieldDefinition$type3 === void 0 ? void 0 : _fieldDefinition$type3.name) === 'LocalizedEnum' ? _objectSpread$13(_objectSpread$13({}, fieldDefinition.type), {}, {
4741
+ }) : ((_fieldDefinition$type3 = fieldDefinition.type) === null || _fieldDefinition$type3 === void 0 ? void 0 : _fieldDefinition$type3.name) === 'LocalizedEnum' ? _objectSpread$Z(_objectSpread$Z({}, fieldDefinition.type), {}, {
4741
4742
  values: _mapInstanceProperty(_context3 = _valuesInstanceProperty(fieldDefinition.type)).call(_context3, value => ({
4742
4743
  key: value.key,
4743
4744
  label: transformLocalizedFieldToLocalizedString(value.labelAllLocales)
@@ -4748,7 +4749,7 @@ const transformCustomFieldFromGraphQLResponse = resource => {
4748
4749
  })
4749
4750
  }
4750
4751
  },
4751
- fields: _reduceInstanceProperty(_context4 = resource.custom.customFieldsRaw).call(_context4, (fields, customField) => _objectSpread$13(_objectSpread$13({}, fields), {}, {
4752
+ fields: _reduceInstanceProperty(_context4 = resource.custom.customFieldsRaw).call(_context4, (fields, customField) => _objectSpread$Z(_objectSpread$Z({}, fields), {}, {
4752
4753
  [customField.name]: customField.value
4753
4754
  }), {})
4754
4755
  };
@@ -4760,7 +4761,7 @@ const convertProductSelectionFromGraphQl = productSelection => {
4760
4761
  // Incase the product selection is not missing or if the current project dose not yet have access to the feature,
4761
4762
  // in either case we return null
4762
4763
  if (!productSelection) return null;
4763
- return _objectSpread$13(_objectSpread$13({}, applyTransformedLocalizedFields(productSelection, [{
4764
+ return _objectSpread$Z(_objectSpread$Z({}, applyTransformedLocalizedFields(productSelection, [{
4764
4765
  from: 'nameAllLocales',
4765
4766
  to: 'name'
4766
4767
  }])), {}, {
@@ -4783,8 +4784,8 @@ const transformAllToProperNounCase = text => {
4783
4784
  return _mapInstanceProperty(_context = text.split(' ')).call(_context, term => transformToProperNounCase(term)).join(' ');
4784
4785
  };
4785
4786
 
4786
- 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; }
4787
- function _objectSpread$12(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys$12(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys$12(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
4787
+ 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; }
4788
+ 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; }
4788
4789
  const REGEX_ISO8601 = /(\d{4}-\d{2}-\d{2}[T]\d{2}:\d{2}:\d{2}(\.\d{3}[Z]?))/;
4789
4790
  const REGEX_TIME = /\d{2}:\d{2}/;
4790
4791
  const REGEX_DATE = /\d{4}-\d{2}-\d{2}/;
@@ -4801,7 +4802,7 @@ function filterCustomTypeUpdateActionValues() {
4801
4802
  if (updateAction.action === 'setCustomField' && _Array$isArray(updateAction.value)) {
4802
4803
  const definition = _findInstanceProperty(fieldDefinitions).call(fieldDefinitions, field => field.name === updateAction.name);
4803
4804
  const definitionName = definition.type.elementType.name;
4804
- return _objectSpread$12(_objectSpread$12({}, updateAction), {}, {
4805
+ return _objectSpread$Y(_objectSpread$Y({}, updateAction), {}, {
4805
4806
  value: filterNotDefinedValues(updateAction.value, definitionName)
4806
4807
  });
4807
4808
  }
@@ -4875,8 +4876,8 @@ function omitSetsOfSets() {
4875
4876
 
4876
4877
  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 } } } };
4877
4878
 
4878
- 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; }
4879
- function _objectSpread$11(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context4 = ownKeys$11(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context5 = ownKeys$11(Object(source))).call(_context5, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
4879
+ 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; }
4880
+ 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; }
4880
4881
  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); }; }
4881
4882
  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; } }
4882
4883
  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 } } } };
@@ -4936,7 +4937,7 @@ const mapDataToProps = _ref => {
4936
4937
  return {
4937
4938
  fetchTypeDefinitionsQuery: {
4938
4939
  loading: fetchTypeDefinitionsQuery.loading,
4939
- customFieldDefinitions: uniqBy(_mapInstanceProperty(fieldDefinitionsToOptionsMap).call(fieldDefinitionsToOptionsMap, fieldDefinition => _objectSpread$11({}, applyTransformedLocalizedFields(omitDeep(fieldDefinition, ['__typename'], {
4940
+ customFieldDefinitions: uniqBy(_mapInstanceProperty(fieldDefinitionsToOptionsMap).call(fieldDefinitionsToOptionsMap, fieldDefinition => _objectSpread$X({}, applyTransformedLocalizedFields(omitDeep(fieldDefinition, ['__typename'], {
4940
4941
  isImmutable: true
4941
4942
  }), [{
4942
4943
  from: 'labelAllLocales',
@@ -4956,7 +4957,7 @@ var customFieldDefinitionsConnector = flowRight(graphql$1(FetchTypeDefinitionsQu
4956
4957
  props: mapDataToProps
4957
4958
  }))(CustomFieldDefinitionsConnector);
4958
4959
 
4959
- const handlers$4 = {
4960
+ const handlers$2 = {
4960
4961
  TypeDefinitions: {
4961
4962
  all: typeDefinitions => graphql.query('FetchTypeDefinitionsQuery', (req, res, ctx) => res(ctx.data({
4962
4963
  typeDefinitions
@@ -4964,12 +4965,12 @@ const handlers$4 = {
4964
4965
  }
4965
4966
  };
4966
4967
 
4967
- 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; }
4968
- function _objectSpread$10(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context4 = ownKeys$10(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context5 = ownKeys$10(Object(source))).call(_context5, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
4968
+ 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; }
4969
+ 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; }
4969
4970
  const restDocToForm = customFieldsFromRestResponse => {
4970
4971
  return {
4971
4972
  fields: customFieldsFromRestResponse.fields,
4972
- type: _objectSpread$10({
4973
+ type: _objectSpread$W({
4973
4974
  id: customFieldsFromRestResponse.type.id
4974
4975
  }, customFieldsFromRestResponse.type.obj)
4975
4976
  };
@@ -4988,14 +4989,14 @@ const graphQlDocToForm = typeDefinition => {
4988
4989
  name: fieldDefinition.name,
4989
4990
  required: fieldDefinition.required,
4990
4991
  inputHint: fieldDefinition.inputHint,
4991
- 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$10(_objectSpread$10({}, fieldDefinition.type), {}, {
4992
- elementType: _objectSpread$10(_objectSpread$10({}, fieldDefinition.type.elementType), {}, {
4992
+ 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$W(_objectSpread$W({}, fieldDefinition.type), {}, {
4993
+ elementType: _objectSpread$W(_objectSpread$W({}, fieldDefinition.type.elementType), {}, {
4993
4994
  values: _mapInstanceProperty(_context2 = _valuesInstanceProperty(fieldDefinition.type.elementType)).call(_context2, value => ({
4994
4995
  key: value.key,
4995
4996
  label: transformLocalizedFieldToLocalizedString(value.labelAllLocales)
4996
4997
  }))
4997
4998
  })
4998
- }) : ((_fieldDefinition$type3 = fieldDefinition.type) === null || _fieldDefinition$type3 === void 0 ? void 0 : _fieldDefinition$type3.name) === 'LocalizedEnum' ? _objectSpread$10(_objectSpread$10({}, fieldDefinition.type), {}, {
4999
+ }) : ((_fieldDefinition$type3 = fieldDefinition.type) === null || _fieldDefinition$type3 === void 0 ? void 0 : _fieldDefinition$type3.name) === 'LocalizedEnum' ? _objectSpread$W(_objectSpread$W({}, fieldDefinition.type), {}, {
4999
5000
  values: _mapInstanceProperty(_context3 = _valuesInstanceProperty(fieldDefinition.type)).call(_context3, value => ({
5000
5001
  key: value.key,
5001
5002
  label: transformLocalizedFieldToLocalizedString(value.labelAllLocales)
@@ -5011,7 +5012,7 @@ const formToRestDoc = formCustomFields => ({
5011
5012
  type: {
5012
5013
  id: formCustomFields.type.id,
5013
5014
  typeId: 'type',
5014
- obj: _objectSpread$10({}, formCustomFields.type)
5015
+ obj: _objectSpread$W({}, formCustomFields.type)
5015
5016
  },
5016
5017
  fields: formCustomFields.fields
5017
5018
  });
@@ -5019,7 +5020,7 @@ const formToGraphQlDoc = formCustomFields => ({
5019
5020
  type: {
5020
5021
  id: formCustomFields.type.id,
5021
5022
  typeId: 'type',
5022
- obj: _objectSpread$10({}, omit(formCustomFields.type, ['id']))
5023
+ obj: _objectSpread$W({}, omit(formCustomFields.type, ['id']))
5023
5024
  },
5024
5025
  fields: omitBy(formCustomFields.fields || {}, isNil$1)
5025
5026
  });
@@ -5035,7 +5036,7 @@ const createEmptyCustomFields = typeDefinition => ({
5035
5036
  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); }; }
5036
5037
  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; } }
5037
5038
  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 } } } };
5038
- const customizableResources = ['asset', 'address', 'business-unit', 'category', 'channel', 'customer', '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'];
5039
+ 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'];
5039
5040
  const emptyTypeDefinitions = {
5040
5041
  total: 0,
5041
5042
  count: 0,
@@ -5099,7 +5100,7 @@ var customFieldTypeDefinitionsConnector = hoistNonReactStatics(graphql$1(FetchTy
5099
5100
  options: createGraphQlOptions
5100
5101
  })(CustomFieldTypeDefinitionsConnector), CustomFieldTypeDefinitionsConnector);
5101
5102
 
5102
- const getType = fieldDefinition => {
5103
+ const getType$1 = fieldDefinition => {
5103
5104
  const fieldDefinitionType = fieldDefinition.type.name.toLowerCase() === 'set' ? fieldDefinition.type.elementType : fieldDefinition.type;
5104
5105
  return fieldDefinitionType;
5105
5106
  };
@@ -5150,8 +5151,8 @@ const REFERENCED_TYPES = {
5150
5151
  zone: 'zone'
5151
5152
  };
5152
5153
 
5153
- 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; }
5154
- function _objectSpread$$(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys$$(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys$$(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5154
+ 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; }
5155
+ 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; }
5155
5156
  const extractDuplicatedValues = (values, type, language, languages) => {
5156
5157
  let validatedValues = [];
5157
5158
  if (type.name.toLowerCase() === 'money') {
@@ -5164,7 +5165,7 @@ const extractDuplicatedValues = (values, type, language, languages) => {
5164
5165
  const setDuplicatedIfSet = (formValues, fieldDefinition, language, languages) => {
5165
5166
  const fieldValue = formValues.custom.fields[fieldDefinition.name];
5166
5167
  if (fieldDefinition.type.name.toLowerCase() === 'set' && _Array$isArray(fieldValue)) {
5167
- const duplicatedValues = extractDuplicatedValues(fieldValue, getType(fieldDefinition), language, languages);
5168
+ const duplicatedValues = extractDuplicatedValues(fieldValue, getType$1(fieldDefinition), language, languages);
5168
5169
  return {
5169
5170
  duplicated: {
5170
5171
  // although this is mixing concerns, we pass down `duplicatedValues` to the form.
@@ -5218,8 +5219,8 @@ function validations (formValues, language, languages) {
5218
5219
  var _context2;
5219
5220
  // Collect all required and set type fields
5220
5221
  const fieldDefinitionsToValidate = _filterInstanceProperty(_context2 = formValues.custom.type.fieldDefinitions).call(_context2, fieldDefinition => fieldDefinition.required || fieldDefinition.type.name.toLowerCase() === 'set');
5221
- const errors = _reduceInstanceProperty(fieldDefinitionsToValidate).call(fieldDefinitionsToValidate, (acc, fieldDefinition) => _objectSpread$$(_objectSpread$$({}, acc), {}, {
5222
- [fieldDefinition.name]: _objectSpread$$(_objectSpread$$({}, setMissingIfRequired(formValues, fieldDefinition)), setDuplicatedIfSet(formValues, fieldDefinition, language, languages))
5222
+ const errors = _reduceInstanceProperty(fieldDefinitionsToValidate).call(fieldDefinitionsToValidate, (acc, fieldDefinition) => _objectSpread$V(_objectSpread$V({}, acc), {}, {
5223
+ [fieldDefinition.name]: _objectSpread$V(_objectSpread$V({}, setMissingIfRequired(formValues, fieldDefinition)), setDuplicatedIfSet(formValues, fieldDefinition, language, languages))
5223
5224
  }), {});
5224
5225
  return withoutEmptyErrorsByField(errors);
5225
5226
  }
@@ -5246,8 +5247,8 @@ function CustomTextInput(props) {
5246
5247
  }
5247
5248
  CustomTextInput.displayName = 'CustomTextInput';
5248
5249
 
5249
- 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; }
5250
- 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; }
5250
+ 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; }
5251
+ 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; }
5251
5252
  const getSubfieldLanguage = subfieldName => {
5252
5253
  const lastDotIndex = _lastIndexOfInstanceProperty(subfieldName).call(subfieldName, '.');
5253
5254
  return subfieldName.substring(lastDotIndex + 1);
@@ -5271,7 +5272,7 @@ function CustomLocalizedTextInput(props) {
5271
5272
  // as a whole.
5272
5273
 
5273
5274
  const fieldLanguage = getSubfieldLanguage(subfieldName);
5274
- const newValue = _objectSpread$_(_objectSpread$_({}, props.value), {}, {
5275
+ const newValue = _objectSpread$U(_objectSpread$U({}, props.value), {}, {
5275
5276
  [fieldLanguage]: rawValue
5276
5277
  });
5277
5278
  const nullifiedIfNeeded = LocalizedTextInput.isEmpty(newValue) ? undefined : newValue;
@@ -5338,21 +5339,21 @@ function CustomNumberInput(props) {
5338
5339
  }
5339
5340
  CustomNumberInput.displayName = 'CustomNumberInput';
5340
5341
 
5341
- 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; }
5342
- 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; }
5342
+ 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; }
5343
+ 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; }
5343
5344
  var styles$g = {
5344
5345
  "container": "custom-money-input-module__container___1fdO2"
5345
5346
  };
5346
5347
  const fixCurrencyCode = (value, currencies) => {
5347
5348
  if (value.currencyCode) return value;
5348
5349
  const firstCurrency = currencies[0];
5349
- return _objectSpread$Z(_objectSpread$Z({}, value), {}, {
5350
+ return _objectSpread$T(_objectSpread$T({}, value), {}, {
5350
5351
  currencyCode: firstCurrency
5351
5352
  });
5352
5353
  };
5353
5354
  const fixAmount = value => {
5354
5355
  if (!value.amount) {
5355
- return _objectSpread$Z(_objectSpread$Z({}, value), {}, {
5356
+ return _objectSpread$T(_objectSpread$T({}, value), {}, {
5356
5357
  amount: '0'
5357
5358
  });
5358
5359
  }
@@ -5394,7 +5395,7 @@ function CustomMoneyInput(props) {
5394
5395
  }
5395
5396
  const handleChange = makeChangeHandler((rawValue, subfieldName) => {
5396
5397
  const isAmount = _endsWithInstanceProperty(subfieldName).call(subfieldName, 'amount');
5397
- const newValue = _objectSpread$Z({}, internalValue.current);
5398
+ const newValue = _objectSpread$T({}, internalValue.current);
5398
5399
  if (isAmount) newValue.amount = rawValue;else newValue.currencyCode = rawValue;
5399
5400
  const fixedValue = fixEnteredValue(newValue, internalValue.current, currencies);
5400
5401
  internalValue.current = fixedValue;
@@ -5675,7 +5676,7 @@ function ReferenceSearch(props) {
5675
5676
  });
5676
5677
  }
5677
5678
 
5678
- const messages$F = defineMessages({
5679
+ const messages$B = defineMessages({
5679
5680
  placeholder: {
5680
5681
  id: 'CategoryReferenceSearch.placeholder',
5681
5682
  description: 'Placeholder for search for a category',
@@ -5708,8 +5709,8 @@ const messages$F = defineMessages({
5708
5709
  }
5709
5710
  });
5710
5711
 
5711
- 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; }
5712
- 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; }
5712
+ 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; }
5713
+ 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; }
5713
5714
  function Option$1(props) {
5714
5715
  var _context, _context2;
5715
5716
  const _useApplicationContex = useApplicationContext(applicationContext => ({
@@ -5721,7 +5722,7 @@ function Option$1(props) {
5721
5722
  const _useIntl = useIntl(),
5722
5723
  formatMessage = _useIntl.formatMessage;
5723
5724
  const category = props.data;
5724
- return jsx(AsyncSelectInput.Option, _objectSpread$Y(_objectSpread$Y({}, props), {}, {
5725
+ return jsx(AsyncSelectInput.Option, _objectSpread$S(_objectSpread$S({}, props), {}, {
5725
5726
  children: jsxs("div", {
5726
5727
  "data-testid": "category-option",
5727
5728
  children: [jsx(Text.Body, {
@@ -5732,7 +5733,7 @@ function Option$1(props) {
5732
5733
  fallbackOrder: languages
5733
5734
  })
5734
5735
  }), category.parent && jsx(Text.Detail, {
5735
- children: _concatInstanceProperty(_context = "".concat(formatMessage(messages$F.parentCategory), ": ")).call(_context, formatLocalizedString(category.parent, {
5736
+ children: _concatInstanceProperty(_context = "".concat(formatMessage(messages$B.parentCategory), ": ")).call(_context, formatLocalizedString(category.parent, {
5736
5737
  key: 'name',
5737
5738
  locale: language,
5738
5739
  fallbackOrder: languages
@@ -5744,14 +5745,14 @@ function Option$1(props) {
5744
5745
  fallbackOrder: languages
5745
5746
  }))
5746
5747
  }), category.externalId && jsx(Text.Detail, {
5747
- children: _concatInstanceProperty(_context2 = "".concat(formatMessage(messages$F.externalId), ": ")).call(_context2, category.externalId || NO_VALUE_FALLBACK)
5748
+ children: _concatInstanceProperty(_context2 = "".concat(formatMessage(messages$B.externalId), ": ")).call(_context2, category.externalId || NO_VALUE_FALLBACK)
5748
5749
  })]
5749
5750
  })
5750
5751
  }));
5751
5752
  }
5752
5753
 
5753
- 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; }
5754
- 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; }
5754
+ 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; }
5755
+ 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; }
5755
5756
  const filterOption$1 = () => true;
5756
5757
  function CategoryReferenceSearch(props) {
5757
5758
  const _useIntl = useIntl(),
@@ -5763,7 +5764,7 @@ function CategoryReferenceSearch(props) {
5763
5764
  })),
5764
5765
  language = _useApplicationContex.language,
5765
5766
  languages = _useApplicationContex.languages;
5766
- const mapItemToOption = useCallback(category => _objectSpread$X(_objectSpread$X({}, category), {}, {
5767
+ const mapItemToOption = useCallback(category => _objectSpread$R(_objectSpread$R({}, category), {}, {
5767
5768
  value: category.id,
5768
5769
  label: formatLocalizedString(category, {
5769
5770
  key: 'name',
@@ -5781,7 +5782,7 @@ function CategoryReferenceSearch(props) {
5781
5782
  }), [apolloClient]);
5782
5783
  return jsx(ReferenceSearch, {
5783
5784
  id: props.id,
5784
- components: _objectSpread$X({
5785
+ components: _objectSpread$R({
5785
5786
  Option: Option$1
5786
5787
  }, props.components),
5787
5788
  isClearable: props.isClearable,
@@ -5792,10 +5793,10 @@ function CategoryReferenceSearch(props) {
5792
5793
  onBlur: props.onBlur,
5793
5794
  onChange: props.onChange,
5794
5795
  value: props.value,
5795
- placeholderLabel: formatMessage(messages$F.placeholder),
5796
- searchPromptLabel: formatMessage(messages$F.searchPrompt),
5797
- noResultsLabel: formatMessage(messages$F.noResults),
5798
- referenceIsMissingLabel: formatMessage(messages$F.isMissing),
5796
+ placeholderLabel: formatMessage(messages$B.placeholder),
5797
+ searchPromptLabel: formatMessage(messages$B.searchPrompt),
5798
+ noResultsLabel: formatMessage(messages$B.noResults),
5799
+ referenceIsMissingLabel: formatMessage(messages$B.isMissing),
5799
5800
  mapItemToOption: mapItemToOption,
5800
5801
  loadItemsBySearchTerm: loadItemsBySearchTerm,
5801
5802
  loadItemsByIds: loadItemsByIds,
@@ -5871,7 +5872,7 @@ function getCartDiscountById(apolloClient, options) {
5871
5872
  });
5872
5873
  }
5873
5874
 
5874
- const messages$E = defineMessages({
5875
+ const messages$A = defineMessages({
5875
5876
  placeholder: {
5876
5877
  id: 'CartDiscountReferenceSearch.placeholder',
5877
5878
  description: 'Placeholder for search for a cart discount',
@@ -5899,8 +5900,8 @@ const messages$E = defineMessages({
5899
5900
  }
5900
5901
  });
5901
5902
 
5902
- 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; }
5903
- 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; }
5903
+ 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; }
5904
+ 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; }
5904
5905
  function Option(props) {
5905
5906
  const _useApplicationContex = useApplicationContext(applicationContext => ({
5906
5907
  language: applicationContext.dataLocale,
@@ -5911,7 +5912,7 @@ function Option(props) {
5911
5912
  const _useIntl = useIntl(),
5912
5913
  formatMessage = _useIntl.formatMessage;
5913
5914
  const cartDiscount = props.data;
5914
- return jsx(AsyncSelectInput.Option, _objectSpread$W(_objectSpread$W({}, props), {}, {
5915
+ return jsx(AsyncSelectInput.Option, _objectSpread$Q(_objectSpread$Q({}, props), {}, {
5915
5916
  children: jsxs("div", {
5916
5917
  "data-testid": "cart-discount-option",
5917
5918
  children: [jsx(Text.Detail, {
@@ -5922,14 +5923,14 @@ function Option(props) {
5922
5923
  fallbackOrder: languages
5923
5924
  })
5924
5925
  }), jsxs(Text.Detail, {
5925
- children: [formatMessage(messages$E.key), ": ", cartDiscount.key || NO_VALUE_FALLBACK]
5926
+ children: [formatMessage(messages$A.key), ": ", cartDiscount.key || NO_VALUE_FALLBACK]
5926
5927
  })]
5927
5928
  })
5928
5929
  }));
5929
5930
  }
5930
5931
 
5931
- 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; }
5932
- function _objectSpread$V(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$V(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$V(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
5932
+ 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; }
5933
+ 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; }
5933
5934
  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 } } } };
5934
5935
  const returnNullIfEmpty = value => value && value.id === '' ? null : value;
5935
5936
  const filterOption = (option, text) => {
@@ -5955,7 +5956,7 @@ function CartDiscountReferenceSearch(props) {
5955
5956
  })),
5956
5957
  language = _useApplicationContex.language,
5957
5958
  languages = _useApplicationContex.languages;
5958
- const mapItemToOption = useCallback(cartDiscount => _objectSpread$V(_objectSpread$V({}, cartDiscount), {}, {
5959
+ const mapItemToOption = useCallback(cartDiscount => _objectSpread$P(_objectSpread$P({}, cartDiscount), {}, {
5959
5960
  value: cartDiscount.id,
5960
5961
  key: cartDiscount.key,
5961
5962
  label: formatLocalizedString(cartDiscount, {
@@ -5998,10 +5999,10 @@ function CartDiscountReferenceSearch(props) {
5998
5999
  onBlur: props.onBlur,
5999
6000
  onChange: props.onChange,
6000
6001
  value: returnNullIfEmpty(props.value),
6001
- placeholderLabel: formatMessage(messages$E.placeholder),
6002
- searchPromptLabel: formatMessage(messages$E.searchPrompt),
6003
- noResultsLabel: formatMessage(messages$E.noResults),
6004
- referenceIsMissingLabel: formatMessage(messages$E.isMissing),
6002
+ placeholderLabel: formatMessage(messages$A.placeholder),
6003
+ searchPromptLabel: formatMessage(messages$A.searchPrompt),
6004
+ noResultsLabel: formatMessage(messages$A.noResults),
6005
+ referenceIsMissingLabel: formatMessage(messages$A.isMissing),
6005
6006
  mapItemToOption: mapItemToOption,
6006
6007
  loadItemsBySearchTerm: loadItemsBySearchTerm,
6007
6008
  loadItemsByIds: loadItemsByIds,
@@ -6062,7 +6063,7 @@ function CustomCartDiscountReferenceInput(props) {
6062
6063
  });
6063
6064
  }
6064
6065
 
6065
- var messages$D = defineMessages({
6066
+ var messages$z = defineMessages({
6066
6067
  noProductsFound: {
6067
6068
  id: 'Shared.ProductPickerInput.noProductsFound',
6068
6069
  description: 'The message to display when no products were found',
@@ -6161,7 +6162,7 @@ const ProductPickerInput = _ref => {
6161
6162
  children: jsx(AsyncSelectInput, {
6162
6163
  id: name,
6163
6164
  name: name,
6164
- placeholder: formatMessage(messages$D.placeholder),
6165
+ placeholder: formatMessage(messages$z.placeholder),
6165
6166
  loadOptions: loadOptionsDebounced,
6166
6167
  defaultOptions: [],
6167
6168
  isClearable: isClearable,
@@ -6175,7 +6176,7 @@ const ProductPickerInput = _ref => {
6175
6176
  onInputChange: handleInputChange,
6176
6177
  onBlur: onBlur,
6177
6178
  value: currentOption.data,
6178
- noOptionsMessage: () => isLoadingFailed ? null : formatMessage(messages$D.noProductsFound),
6179
+ noOptionsMessage: () => isLoadingFailed ? null : formatMessage(messages$z.noProductsFound),
6179
6180
  hasError: hasError || isLoadingFailed
6180
6181
  })
6181
6182
  }), isLoadingFailed && showLoadingErrorMessage && jsx(Text.Body, {
@@ -6493,8 +6494,8 @@ const SetButtons = props => {
6493
6494
  };
6494
6495
  SetButtons.displayName = 'SetButtons';
6495
6496
 
6496
- 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; }
6497
- function _objectSpread$U(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys$U(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys$U(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
6497
+ 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; }
6498
+ function _objectSpread$O(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys$O(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys$O(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
6498
6499
  const getDuplicateErrors = setValues => {
6499
6500
  /* eslint-disable no-plusplus */
6500
6501
  const result = [];
@@ -6551,7 +6552,7 @@ function CustomInputSet(props) {
6551
6552
  touched = _useFormikContext.touched,
6552
6553
  isSubmitting = _useFormikContext.isSubmitting,
6553
6554
  dirty = _useFormikContext.dirty;
6554
- const itemFieldDefinition = _objectSpread$U(_objectSpread$U({}, props.fieldDefinition), {}, {
6555
+ const itemFieldDefinition = _objectSpread$O(_objectSpread$O({}, props.fieldDefinition), {}, {
6555
6556
  type: props.fieldDefinition.type.elementType
6556
6557
  });
6557
6558
  const value = useMemo(() => props.value || [undefined], [props.value]);
@@ -6609,7 +6610,7 @@ function CustomInputSet(props) {
6609
6610
  // TODO(pa3): I don't like this bool. Feels like decision should happen
6610
6611
  // in <CustomFieldComponent /> where proper component for given field/attribute
6611
6612
  // type is selected.
6612
- const type = getType(props.fieldDefinition);
6613
+ const type = getType$1(props.fieldDefinition);
6613
6614
  const typeName = type === null || type === void 0 ? void 0 : type.name.toLowerCase();
6614
6615
  const areButtonsTopAligned = _includesInstanceProperty(_context2 = [CUSTOM_FIELD_TYPES.lenum, CUSTOM_FIELD_TYPES.localizedenum, CUSTOM_FIELD_TYPES.localizedstring, CUSTOM_FIELD_TYPES.string, CUSTOM_FIELD_TYPES.text, CUSTOM_FIELD_TYPES.ltext, CUSTOM_FIELD_TYPES.reference]).call(_context2, typeName);
6615
6616
  return jsxs(Fragment, {
@@ -6663,7 +6664,7 @@ function CustomInputSet(props) {
6663
6664
  });
6664
6665
  }
6665
6666
 
6666
- var messages$C = defineMessages({
6667
+ var messages$y = defineMessages({
6667
6668
  referencedProductType: {
6668
6669
  id: 'NestedAttributes.referencedProductType',
6669
6670
  description: 'Product type referenced hint',
@@ -6671,10 +6672,10 @@ var messages$C = defineMessages({
6671
6672
  }
6672
6673
  });
6673
6674
 
6674
- 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; }
6675
- 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; }
6675
+ 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; }
6676
+ 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; }
6676
6677
  function ProductTypeReference(props) {
6677
- const productTypeMessage = _objectSpread$T(_objectSpread$T({}, messages$C.referencedProductType), {}, {
6678
+ const productTypeMessage = _objectSpread$N(_objectSpread$N({}, messages$y.referencedProductType), {}, {
6678
6679
  values: {
6679
6680
  productTypeName: props.productType.name
6680
6681
  }
@@ -6685,23 +6686,23 @@ function ProductTypeReference(props) {
6685
6686
  }
6686
6687
  ProductTypeReference.displayName = 'ProductTypeReference';
6687
6688
 
6688
- 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; }
6689
- function _objectSpread$S(target) { for (var i = 1; i < arguments.length; i++) { var _context6, _context7; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context6 = ownKeys$S(Object(source), !0)).call(_context6, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context7 = ownKeys$S(Object(source))).call(_context7, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
6689
+ 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; }
6690
+ function _objectSpread$M(target) { for (var i = 1; i < arguments.length; i++) { var _context6, _context7; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context6 = ownKeys$M(Object(source), !0)).call(_context6, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context7 = ownKeys$M(Object(source))).call(_context7, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
6690
6691
  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 } } } };
6691
6692
  const mapAttributeDefinition = definition => {
6692
6693
  var _context, _definition$type, _definition$type$elem, _context2, _context3, _definition$type2, _context4;
6693
- return _objectSpread$S(_objectSpread$S({}, definition), {}, {
6694
+ return _objectSpread$M(_objectSpread$M({}, definition), {}, {
6694
6695
  required: definition.isRequired,
6695
6696
  inputTip: transformLocalizedFieldToLocalizedString(definition.inputTipAllLocales),
6696
6697
  label: transformLocalizedFieldToLocalizedString(definition.labelAllLocales),
6697
- 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$S(_objectSpread$S({}, definition.type), {}, {
6698
- elementType: _objectSpread$S(_objectSpread$S({}, definition.type.elementType), {}, {
6698
+ 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$M(_objectSpread$M({}, definition.type), {}, {
6699
+ elementType: _objectSpread$M(_objectSpread$M({}, definition.type.elementType), {}, {
6699
6700
  values: _mapInstanceProperty(_context2 = _valuesInstanceProperty(definition.type.elementType).results).call(_context2, value => ({
6700
6701
  key: value.key,
6701
6702
  label: value.label || transformLocalizedFieldToLocalizedString(value.labelAllLocales)
6702
6703
  }))
6703
6704
  })
6704
- }) : _includesInstanceProperty(_context3 = ['enum', 'lenum']).call(_context3, (_definition$type2 = definition.type) === null || _definition$type2 === void 0 ? void 0 : _definition$type2.name) ? _objectSpread$S(_objectSpread$S({}, definition.type), {}, {
6705
+ }) : _includesInstanceProperty(_context3 = ['enum', 'lenum']).call(_context3, (_definition$type2 = definition.type) === null || _definition$type2 === void 0 ? void 0 : _definition$type2.name) ? _objectSpread$M(_objectSpread$M({}, definition.type), {}, {
6705
6706
  values: _mapInstanceProperty(_context4 = _valuesInstanceProperty(definition.type).results).call(_context4, value => ({
6706
6707
  key: value.key,
6707
6708
  label: value.label || transformLocalizedFieldToLocalizedString(value.labelAllLocales)
@@ -6777,9 +6778,9 @@ function CustomNestedFieldInput(props) {
6777
6778
  }
6778
6779
  CustomNestedFieldInput.displayName = 'CustomNestedFieldInput';
6779
6780
 
6780
- 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; }
6781
- 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; }
6782
- const mergeSetItemsErrors = errors => _reduceInstanceProperty(errors).call(errors, (result, itemErrors) => _objectSpread$R(_objectSpread$R({}, result), itemErrors), {});
6781
+ 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; }
6782
+ 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; }
6783
+ const mergeSetItemsErrors = errors => _reduceInstanceProperty(errors).call(errors, (result, itemErrors) => _objectSpread$L(_objectSpread$L({}, result), itemErrors), {});
6783
6784
 
6784
6785
  // TODO(pa3): worth splitting in two components: one of set errors and one for
6785
6786
  // all the other types of fields. So that there will be no isArray check.
@@ -6790,15 +6791,15 @@ const CustomFieldErrors = props => {
6790
6791
  const errors = _Array$isArray(props.errors) ? mergeSetItemsErrors(props.errors) : props.errors;
6791
6792
  return jsxs(Fragment, {
6792
6793
  children: [props.isTouched || didFormValidationFail && (errors === null || errors === void 0 ? void 0 : errors.missing) && jsx(ErrorMessage, {
6793
- intlMessage: messages$O.required
6794
+ intlMessage: messages$K.required
6794
6795
  }), props.isTouched || didFormValidationFail && (errors === null || errors === void 0 ? void 0 : errors.duplicated) && jsx(ErrorMessage, {
6795
- intlMessage: messages$O.unique
6796
+ intlMessage: messages$K.unique
6796
6797
  })]
6797
6798
  });
6798
6799
  };
6799
6800
  CustomFieldErrors.displayName = 'CustomFieldErrors';
6800
6801
 
6801
- var messages$B = defineMessages({
6802
+ var messages$x = defineMessages({
6802
6803
  productReferenceLabel: {
6803
6804
  id: 'CustomFieldsLabel.productReferenceLabel',
6804
6805
  description: 'Label shown above the product picker input.',
@@ -6831,13 +6832,13 @@ var messages$B = defineMessages({
6831
6832
  }
6832
6833
  });
6833
6834
 
6834
- 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; }
6835
- function _objectSpread$Q(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$Q(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$Q(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
6835
+ 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; }
6836
+ function _objectSpread$K(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$K(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$K(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
6836
6837
  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 } } } };
6837
6838
  const CustomFieldsLabelHint = _ref => {
6838
6839
  var _type$name;
6839
6840
  let fieldDefinition = _ref.fieldDefinition;
6840
- const type = getType(fieldDefinition);
6841
+ const type = getType$1(fieldDefinition);
6841
6842
  const _useTheme = useTheme(),
6842
6843
  isNewTheme = _useTheme.isNewTheme;
6843
6844
  const isReference = ((_type$name = type.name) === null || _type$name === void 0 ? void 0 : _type$name.toLowerCase()) === 'reference';
@@ -6864,14 +6865,14 @@ const CustomFieldsLabelHint = _ref => {
6864
6865
  children: [jsx(WarningIcon, {
6865
6866
  size: "medium",
6866
6867
  color: "warning"
6867
- }), jsx(FormattedMessage, _objectSpread$Q({}, messages$B.cartDiscountMoreThan500))]
6868
+ }), jsx(FormattedMessage, _objectSpread$K({}, messages$x.cartDiscountMoreThan500))]
6868
6869
  }) : jsx(Spacings.Inset, {
6869
6870
  scale: "xs",
6870
6871
  children: jsxs(Spacings.Inline, {
6871
6872
  alignItems: "flex-start",
6872
6873
  children: [jsx(InformationIcon, {
6873
6874
  size: "medium"
6874
- }), jsx(FormattedMessage, _objectSpread$Q({}, messages$B.cartDiscountMoreThan500))]
6875
+ }), jsx(FormattedMessage, _objectSpread$K({}, messages$x.cartDiscountMoreThan500))]
6875
6876
  })
6876
6877
  });
6877
6878
  }
@@ -6886,8 +6887,8 @@ function CustomFieldsProductTypeReferenceSubtitle() {
6886
6887
  formatMessage = _useIntl.formatMessage;
6887
6888
  const _usePimStatus = usePimStatus(),
6888
6889
  isProjectIndexed = _usePimStatus.isProjectIndexed;
6889
- if (isProjectIndexed) return formatMessage(messages$B.productTypeReferenceLabelI);
6890
- return formatMessage(messages$B.productTypeReferenceLabel);
6890
+ if (isProjectIndexed) return formatMessage(messages$x.productTypeReferenceLabelI);
6891
+ return formatMessage(messages$x.productTypeReferenceLabel);
6891
6892
  }
6892
6893
 
6893
6894
  // TODO(pa3): this logic may be misplaced and probably
@@ -6897,13 +6898,13 @@ function CustomFieldsLabelSubtitle(_ref2) {
6897
6898
  let fieldDefinition = _ref2.fieldDefinition;
6898
6899
  const _useIntl2 = useIntl(),
6899
6900
  formatMessage = _useIntl2.formatMessage;
6900
- const type = getType(fieldDefinition);
6901
+ const type = getType$1(fieldDefinition);
6901
6902
  const isReference = ((_type$name2 = type.name) === null || _type$name2 === void 0 ? void 0 : _type$name2.toLowerCase()) === 'reference';
6902
6903
  if (!isReference) return null;
6903
6904
  const referenceTypeId = type.referenceTypeId;
6904
6905
  const referenceTypeName = capitalizeFirst(referenceTypeId);
6905
6906
  if (_includesInstanceProperty(_context = [SEARCHABLE_REFERENCES.category, SEARCHABLE_REFERENCES.cartDiscount]).call(_context, referenceTypeId)) return referenceTypeName;
6906
- return referenceTypeId === SEARCHABLE_REFERENCES.product ? formatMessage(messages$B.productReferenceLabel) : referenceTypeId === SEARCHABLE_REFERENCES.productType ? jsx(CustomFieldsProductTypeReferenceSubtitle, {}) : referenceTypeId === SEARCHABLE_REFERENCES.channel ? formatMessage(messages$B.channelReferenceLabel) : referenceTypeId === SEARCHABLE_REFERENCES.state ? formatMessage(messages$B.stateReferenceLabel) : "".concat(referenceTypeName, " ID");
6907
+ return referenceTypeId === SEARCHABLE_REFERENCES.product ? formatMessage(messages$x.productReferenceLabel) : referenceTypeId === SEARCHABLE_REFERENCES.productType ? jsx(CustomFieldsProductTypeReferenceSubtitle, {}) : referenceTypeId === SEARCHABLE_REFERENCES.channel ? formatMessage(messages$x.channelReferenceLabel) : referenceTypeId === SEARCHABLE_REFERENCES.state ? formatMessage(messages$x.stateReferenceLabel) : "".concat(referenceTypeName, " ID");
6907
6908
  }
6908
6909
  const CustomFieldsLabel = /*#__PURE__*/memo(_ref3 => {
6909
6910
  let name = _ref3.name,
@@ -7011,8 +7012,8 @@ const ThemedCustomFieldsInternal = props => {
7011
7012
  };
7012
7013
  ThemedCustomFieldsInternal.displayName = 'ThemedCustomFieldsInternal';
7013
7014
 
7014
- 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; }
7015
- function _objectSpread$P(target) { for (var i = 1; i < arguments.length; i++) { var _context7, _context8; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context7 = ownKeys$P(Object(source), !0)).call(_context7, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context8 = ownKeys$P(Object(source))).call(_context8, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
7015
+ 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; }
7016
+ function _objectSpread$J(target) { for (var i = 1; i < arguments.length; i++) { var _context7, _context8; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context7 = ownKeys$J(Object(source), !0)).call(_context7, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context8 = ownKeys$J(Object(source))).call(_context8, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
7016
7017
  const getTypeName = type => type.name.toLowerCase();
7017
7018
  const findLabel = (enumType, key) => {
7018
7019
  var _enumType$values$find, _enumType$values$find2, _context;
@@ -7061,7 +7062,7 @@ const attributeDefinitionToFieldDefinition = attributeDefinition => ({
7061
7062
  const nameValuePairsToMap = pairs => _reduceInstanceProperty(pairs).call(pairs, (result, _ref2) => {
7062
7063
  let name = _ref2.name,
7063
7064
  value = _ref2.value;
7064
- return _objectSpread$P(_objectSpread$P({}, result), {}, {
7065
+ return _objectSpread$J(_objectSpread$J({}, result), {}, {
7065
7066
  [name]: value
7066
7067
  });
7067
7068
  }, {});
@@ -7154,7 +7155,7 @@ function ProductAttributeInput(props) {
7154
7155
  ProductAttributeInput.displayName = 'ProductAttributeInput';
7155
7156
 
7156
7157
  // eslint-disable-next-line import/prefer-default-export
7157
- const customFieldsMessages = defineMessages({
7158
+ const messages$w = defineMessages({
7158
7159
  aboveFifthLevelWarning: {
7159
7160
  id: 'attributeInputByType.nestedAttributes.aboveFifthLevelWarning',
7160
7161
  description: 'Warning message shown when nested attribute are above the fifth level',
@@ -7167,7 +7168,7 @@ const customFieldsMessages = defineMessages({
7167
7168
  }
7168
7169
  });
7169
7170
 
7170
- var messages$A = defineMessages({
7171
+ var messages$v = defineMessages({
7171
7172
  updateButton: {
7172
7173
  id: 'NestedAttributes.Details.updateButton',
7173
7174
  description: 'Update button label',
@@ -7247,14 +7248,14 @@ var messages$A = defineMessages({
7247
7248
 
7248
7249
  const NestingLevelContext = /*#__PURE__*/createContext(0);
7249
7250
 
7250
- 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; }
7251
- 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; }
7251
+ 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; }
7252
+ 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; }
7252
7253
  const EditButton = props => {
7253
7254
  const _useIntl = useIntl(),
7254
7255
  formatMessage = _useIntl.formatMessage;
7255
7256
  return jsx(Tooltip, {
7256
7257
  placement: "top",
7257
- title: formatMessage(messages$A.editTooltip),
7258
+ title: formatMessage(messages$v.editTooltip),
7258
7259
  children: jsx(IconButton, {
7259
7260
  label: "Edit",
7260
7261
  isDisabled: props.isDisabled,
@@ -7270,12 +7271,12 @@ const DropChangesConfirmation = props => {
7270
7271
  formatMessage = _useIntl2.formatMessage;
7271
7272
  return jsx(ConfirmationDialog, {
7272
7273
  isOpen: props.isOpen || false,
7273
- title: formatMessage(messages$A.confirmationDialogTitle),
7274
- labelPrimary: formatMessage(messages$A.nestedAttributesConfirmLabel),
7274
+ title: formatMessage(messages$v.confirmationDialogTitle),
7275
+ labelPrimary: formatMessage(messages$v.nestedAttributesConfirmLabel),
7275
7276
  onConfirm: props.onConfirm,
7276
7277
  onCancel: props.onCancel,
7277
7278
  children: jsx(Text.Body, {
7278
- intlMessage: messages$A.confirmationDialogBody
7279
+ intlMessage: messages$v.confirmationDialogBody
7279
7280
  })
7280
7281
  });
7281
7282
  };
@@ -7304,11 +7305,11 @@ const NestedAttributeModalPage = props => {
7304
7305
  children: [jsx(SecondaryButton, {
7305
7306
  isDisabled: !formik.dirty,
7306
7307
  iconLeft: jsx(RevertIcon, {}),
7307
- label: formatMessage(messages$A.cancelButton),
7308
+ label: formatMessage(messages$v.cancelButton),
7308
7309
  onClick: formik.resetForm
7309
7310
  }), jsx(CustomFormModalPage.FormPrimaryButton, {
7310
7311
  isDisabled: !formik.dirty,
7311
- label: formatMessage(messages$A.updateButton),
7312
+ label: formatMessage(messages$v.updateButton),
7312
7313
  onClick: formik.handleSubmit
7313
7314
  })]
7314
7315
  }),
@@ -7337,7 +7338,7 @@ NestedAttributeModalPage.displayName = 'NestedAttributeModalPage';
7337
7338
  const MaxNestingLevelReached = () => jsx(FieldLabel, {
7338
7339
  title: "",
7339
7340
  hint: jsx(Text.Body, {
7340
- intlMessage: customFieldsMessages.aboveFifthLevelWarning
7341
+ intlMessage: messages$w.aboveFifthLevelWarning
7341
7342
  }),
7342
7343
  hintIcon: jsx(WarningIcon, {})
7343
7344
  });
@@ -7349,7 +7350,7 @@ const NestedInputControls = props => {
7349
7350
  if (nextNestingLevel >= 6) return jsx(MaxNestingLevelReached, {});
7350
7351
  const hasAttributes = props.productType.attributeDefinitions.length > 0;
7351
7352
  if (!hasAttributes) return jsx(Text.Body, {
7352
- intlMessage: messages$A.emptyProductType,
7353
+ intlMessage: messages$v.emptyProductType,
7353
7354
  tone: "secondary"
7354
7355
  });
7355
7356
  return jsxs(Spacings.Inline, {
@@ -7363,7 +7364,7 @@ const NestedInputControls = props => {
7363
7364
  children: props.productType.name
7364
7365
  }), props.isEmpty && jsx("span", {
7365
7366
  children: jsx(Tag, {
7366
- children: formatMessage(customFieldsMessages.emptySetItem)
7367
+ children: formatMessage(messages$w.emptySetItem)
7367
7368
  })
7368
7369
  })]
7369
7370
  }), jsx(EditButton, {
@@ -7399,13 +7400,13 @@ const CustomNestedInput = /*#__PURE__*/memo(props => {
7399
7400
  const valuesAsMap = nameValuePairsToMap(value);
7400
7401
  const initialValues = omitUnknownValues(valuesAsMap, attributeDefinitionsAsMap);
7401
7402
  const openNestedAttributesForm = () => {
7402
- if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$O(_objectSpread$O({}, parentFormik.status), {}, {
7403
+ if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$I(_objectSpread$I({}, parentFormik.status), {}, {
7403
7404
  hideSaveToolbar: true
7404
7405
  }));
7405
7406
  attributesForm.openModal();
7406
7407
  };
7407
7408
  const closeNestedAttributesForm = () => {
7408
- if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$O(_objectSpread$O({}, parentFormik.status), {}, {
7409
+ if (nestingLevel === 0) parentFormik.setStatus(_objectSpread$I(_objectSpread$I({}, parentFormik.status), {}, {
7409
7410
  hideSaveToolbar: false
7410
7411
  }));
7411
7412
  attributesForm.closeModal();
@@ -7425,7 +7426,7 @@ const CustomNestedInput = /*#__PURE__*/memo(props => {
7425
7426
  if (nestingLevel !== 0) parentFormik.submitForm();else showNotification({
7426
7427
  kind: 'success',
7427
7428
  domain: DOMAINS.SIDE,
7428
- text: formatMessage(messages$A.attributeUpdateSucceeded)
7429
+ text: formatMessage(messages$v.attributeUpdateSucceeded)
7429
7430
  });
7430
7431
  setSubmitting(false);
7431
7432
  },
@@ -7477,7 +7478,7 @@ const CustomFieldInput = /*#__PURE__*/memo(props => {
7477
7478
  // Boolean is the only set element with peculiarities (i.e. way more
7478
7479
  // convenient for user to work with it as with select input with three values:
7479
7480
  // [true], [false] and [true, false]).
7480
- if (((_getSetElementType = getType(props.fieldDefinition)) === null || _getSetElementType === void 0 ? void 0 : _getSetElementType.name.toLowerCase()) === CUSTOM_FIELD_TYPES.boolean) {
7481
+ if (((_getSetElementType = getType$1(props.fieldDefinition)) === null || _getSetElementType === void 0 ? void 0 : _getSetElementType.name.toLowerCase()) === CUSTOM_FIELD_TYPES.boolean) {
7481
7482
  return CustomBooleanInputSet;
7482
7483
  }
7483
7484
  // All the rest sets are just a fancy wrapper around single-item components
@@ -7651,24 +7652,53 @@ var pickerMessages = defineMessages({
7651
7652
  }
7652
7653
  });
7653
7654
 
7655
+ 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; }
7656
+ 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; }
7657
+ const PRODUCT_SELECTION_TYPES = {
7658
+ INCLUSION: 'individual',
7659
+ EXCLUSION: 'individual exclusion'
7660
+ };
7661
+ const PRODUCT_SELECTION_TYPES_LABELS = {
7662
+ INCLUSION: 'inclusion',
7663
+ EXCLUSION: 'exclusion'
7664
+ };
7665
+ const getType = type => type === PRODUCT_SELECTION_TYPES.INCLUSION || type === PRODUCT_SELECTION_TYPES_LABELS.INCLUSION ? 'inclusion' : 'exclusion';
7666
+ const addTypeToLabel = function (ps) {
7667
+ var _context;
7668
+ let enableExcludingProducts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
7669
+ if (!ps) return undefined;
7670
+ return _objectSpread$H(_objectSpread$H({}, ps), {}, {
7671
+ 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), ")") : '')
7672
+ });
7673
+ };
7674
+
7654
7675
  const mapProductSelectionsToOptions$1 = memoize(function () {
7655
7676
  let productSelections = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
7656
7677
  let dataLocale = arguments.length > 1 ? arguments[1] : undefined;
7657
7678
  let projectLanguages = arguments.length > 2 ? arguments[2] : undefined;
7658
- return _mapInstanceProperty(productSelections).call(productSelections, productSelection => ({
7659
- id: productSelection.id,
7660
- value: productSelection.id,
7661
- label: formatLocalizedString(productSelection, {
7679
+ let selectedPS = arguments.length > 3 ? arguments[3] : undefined;
7680
+ let enableExcludingProducts = arguments.length > 4 ? arguments[4] : undefined;
7681
+ const selectedPSList = _Array$isArray(selectedPS) ? selectedPS : [selectedPS];
7682
+ return _mapInstanceProperty(productSelections).call(productSelections, productSelection => {
7683
+ var _context;
7684
+ const label = formatLocalizedString(productSelection, {
7662
7685
  key: 'name',
7663
7686
  locale: dataLocale,
7664
7687
  fallbackOrder: projectLanguages
7665
- }),
7666
- key: productSelection.key
7667
- }));
7688
+ });
7689
+ return {
7690
+ id: productSelection.id,
7691
+ value: productSelection.id,
7692
+ label: _concatInstanceProperty(_context = "".concat(label)).call(_context, _includesInstanceProperty(selectedPSList).call(selectedPSList, productSelection.id) && enableExcludingProducts ? " (type: ".concat(getType(productSelection.type), ")") : ''),
7693
+ key: productSelection.key,
7694
+ type: getType(productSelection.type)
7695
+ };
7696
+ });
7668
7697
  });
7669
7698
  function ProductSelectionBasicSelectDropdown(props) {
7670
7699
  var _productSelectionsFet, _productSelectionsFet2;
7671
7700
  const intl = useIntl();
7701
+ const enableExcludingProducts = useFeatureToggle(EXCLUDING_PRODUCTS);
7672
7702
  const productSelectionsFetcher = useProductSelectionsFetcher({
7673
7703
  limit: props.lowerProductSelectionsLimit
7674
7704
  });
@@ -7681,8 +7711,8 @@ function ProductSelectionBasicSelectDropdown(props) {
7681
7711
  if (productSelectionsFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
7682
7712
  const productSelections = (_productSelectionsFet = (_productSelectionsFet2 = productSelectionsFetcher.productSelections) === null || _productSelectionsFet2 === void 0 ? void 0 : _productSelectionsFet2.results) !== null && _productSelectionsFet !== void 0 ? _productSelectionsFet : [];
7683
7713
  const filteredProductSelections = _filterInstanceProperty(productSelections).call(productSelections, ps => {
7684
- var _context;
7685
- return !_includesInstanceProperty(_context = props.excludedProductSelectionIds).call(_context, ps.id);
7714
+ var _context2;
7715
+ return !_includesInstanceProperty(_context2 = props.excludedProductSelectionIds).call(_context2, ps.id);
7686
7716
  });
7687
7717
  const onOptionClick = event => {
7688
7718
  const productSelectionId = event.target.value;
@@ -7698,7 +7728,7 @@ function ProductSelectionBasicSelectDropdown(props) {
7698
7728
  isRequired: props.isRequired,
7699
7729
  description: props.description,
7700
7730
  placeholder: intl.formatMessage(pickerMessages.productSelectionsBasicSelectPlaceholder),
7701
- options: mapProductSelectionsToOptions$1(filteredProductSelections, dataLocale, projectLanguages),
7731
+ options: mapProductSelectionsToOptions$1(filteredProductSelections, dataLocale, projectLanguages, props.value, enableExcludingProducts),
7702
7732
  components: props.components,
7703
7733
  onChange: onOptionClick,
7704
7734
  onBlur: props.onBlur,
@@ -7716,11 +7746,13 @@ function ProductSelectionBasicSelectDropdown(props) {
7716
7746
 
7717
7747
  const LOWER_PRODUCT_SELECTIONS_LIMIT = 60;
7718
7748
  const UPPER_PRODUCT_SELECTIONS_LIMIT = 500;
7749
+ const TYPE_PROPERTY = 'type-property';
7719
7750
 
7720
7751
  const getValueFromOptions$3 = _ref => {
7721
7752
  let currentlySelectedProductSelections = _ref.currentlySelectedProductSelections,
7722
7753
  allProductSelectionOptions = _ref.allProductSelectionOptions,
7723
- isMulti = _ref.isMulti;
7754
+ isMulti = _ref.isMulti,
7755
+ enableExcludingProducts = _ref.enableExcludingProducts;
7724
7756
  // return value as undefined if no options is yet selected. It is needed for cases where users sets initial values as empty string
7725
7757
  if (!currentlySelectedProductSelections) {
7726
7758
  return undefined;
@@ -7728,11 +7760,12 @@ const getValueFromOptions$3 = _ref => {
7728
7760
 
7729
7761
  // handle async-select-field value transformation
7730
7762
  if (isMulti) {
7731
- return _filterInstanceProperty(allProductSelectionOptions).call(allProductSelectionOptions, ps => currentlySelectedProductSelections === null || currentlySelectedProductSelections === void 0 ? void 0 : _includesInstanceProperty(currentlySelectedProductSelections).call(currentlySelectedProductSelections, ps.value));
7763
+ var _context;
7764
+ return _mapInstanceProperty(_context = _filterInstanceProperty(allProductSelectionOptions).call(allProductSelectionOptions, ps => currentlySelectedProductSelections === null || currentlySelectedProductSelections === void 0 ? void 0 : _includesInstanceProperty(currentlySelectedProductSelections).call(currentlySelectedProductSelections, ps.value))).call(_context, ps => addTypeToLabel(ps, enableExcludingProducts));
7732
7765
  }
7733
7766
 
7734
7767
  // in case it is not multiselect, then a single valued async-select-input is being requested and the value should have proper format
7735
- return _findInstanceProperty(allProductSelectionOptions).call(allProductSelectionOptions, ps => currentlySelectedProductSelections === ps.value);
7768
+ return addTypeToLabel(_findInstanceProperty(allProductSelectionOptions).call(allProductSelectionOptions, ps => currentlySelectedProductSelections === ps.value), enableExcludingProducts);
7736
7769
  };
7737
7770
  const emptyStoreOption$1 = intl => [{
7738
7771
  label: intl.formatMessage(pickerMessages.asyncSelectDropdownTypeAheadPrompt),
@@ -7742,6 +7775,7 @@ const emptyStoreOption$1 = intl => [{
7742
7775
  function ProductSelectionsAsyncSelectDropdown(props) {
7743
7776
  var _productSelectionsFet3;
7744
7777
  const intl = useIntl();
7778
+ const enableExcludingProducts = useFeatureToggle(EXCLUDING_PRODUCTS);
7745
7779
  const productSelectionsFetcher = useProductSelectionsFetcher({
7746
7780
  limit: props.upperProductSelectionsLimit
7747
7781
  });
@@ -7757,8 +7791,8 @@ function ProductSelectionsAsyncSelectDropdown(props) {
7757
7791
  return (_productSelectionsFet = (_productSelectionsFet2 = productSelectionsFetcher.productSelections) === null || _productSelectionsFet2 === void 0 ? void 0 : _productSelectionsFet2.results) !== null && _productSelectionsFet !== void 0 ? _productSelectionsFet : [];
7758
7792
  }, [(_productSelectionsFet3 = productSelectionsFetcher.productSelections) === null || _productSelectionsFet3 === void 0 ? void 0 : _productSelectionsFet3.results]);
7759
7793
  const filteredProductSelections = _filterInstanceProperty(productSelections).call(productSelections, ps => {
7760
- var _context;
7761
- return !_includesInstanceProperty(_context = props.excludedProductSelectionIds).call(_context, ps.id);
7794
+ var _context2;
7795
+ return !_includesInstanceProperty(_context2 = props.excludedProductSelectionIds).call(_context2, ps.id);
7762
7796
  });
7763
7797
  const onOptionClick = event => {
7764
7798
  var _event$target$value;
@@ -7777,7 +7811,8 @@ function ProductSelectionsAsyncSelectDropdown(props) {
7777
7811
  label: localizedName,
7778
7812
  value: productSelection.id,
7779
7813
  name: localizedName,
7780
- key: productSelection.key
7814
+ key: productSelection.key,
7815
+ type: getType(productSelection.type)
7781
7816
  };
7782
7817
  });
7783
7818
  }, [dataLocale, projectLanguages, filteredProductSelections]);
@@ -7791,8 +7826,8 @@ function ProductSelectionsAsyncSelectDropdown(props) {
7791
7826
  const handleLoadOptions = async searchTerm => {
7792
7827
  const productSelectionOptions = allProductSelectionOptions;
7793
7828
  const filteredOptions = _filterInstanceProperty(productSelectionOptions).call(productSelectionOptions, productSelection => {
7794
- var _context2, _context3;
7795
- return _includesInstanceProperty(_context2 = productSelection.label.toLowerCase()).call(_context2, searchTerm.toLowerCase()) || productSelection.key && _includesInstanceProperty(_context3 = productSelection.key.toLowerCase()).call(_context3, searchTerm.toLowerCase());
7829
+ var _context3, _context4;
7830
+ return _includesInstanceProperty(_context3 = productSelection.label.toLowerCase()).call(_context3, searchTerm.toLowerCase()) || productSelection.key && _includesInstanceProperty(_context4 = productSelection.key.toLowerCase()).call(_context4, searchTerm.toLowerCase());
7796
7831
  });
7797
7832
  const finalOptions = searchTerm ? _sliceInstanceProperty(filteredOptions).call(filteredOptions, 0, LOWER_PRODUCT_SELECTIONS_LIMIT) : _sliceInstanceProperty(productSelectionOptions).call(productSelectionOptions, 0, LOWER_PRODUCT_SELECTIONS_LIMIT);
7798
7833
  return [{
@@ -7813,7 +7848,8 @@ function ProductSelectionsAsyncSelectDropdown(props) {
7813
7848
  value: getValueFromOptions$3({
7814
7849
  currentlySelectedProductSelections: props.value,
7815
7850
  allProductSelectionOptions,
7816
- isMulti: props.isMulti
7851
+ isMulti: props.isMulti,
7852
+ enableExcludingProducts
7817
7853
  }),
7818
7854
  onChange: onOptionClick,
7819
7855
  onBlur: props.onBlur,
@@ -7831,8 +7867,8 @@ function ProductSelectionsAsyncSelectDropdown(props) {
7831
7867
  });
7832
7868
  }
7833
7869
 
7834
- var ProductSelectionsPickerFetcher$1 = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "ProductSelectionsPickerFetcher" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "productSelections" }, 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: "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: [] }] } }] } }] } }] } }], loc: { start: 0, end: 212, source: { body: "query ProductSelectionsPickerFetcher($where: String!) {\n productSelections(where: $where) {\n results {\n id\n key\n version\n nameAllLocales {\n locale\n value\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
7835
- const createQueryVariables$7 = (productSelections, predicateField) => {
7870
+ var ProductSelectionsPickerFetcher$1 = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "ProductSelectionsPickerFetcher" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "productSelections" }, 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: "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: "type" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 223, source: { body: "query ProductSelectionsPickerFetcher($where: String!) {\n productSelections(where: $where) {\n results {\n id\n key\n version\n nameAllLocales {\n locale\n value\n }\n type\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
7871
+ const createQueryVariables$4 = (productSelections, predicateField) => {
7836
7872
  var _context;
7837
7873
  return {
7838
7874
  where: _concatInstanceProperty(_context = "".concat(predicateField, " in (")).call(_context, _mapInstanceProperty(productSelections).call(productSelections, ps => "\"".concat(ps, "\"")).join(', '), ")"),
@@ -7846,7 +7882,7 @@ const useProductSelectionsByFieldFetcher = (productSelections, predicateField) =
7846
7882
  context: {
7847
7883
  target: GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM
7848
7884
  },
7849
- variables: createQueryVariables$7(productSelectionList, predicateField),
7885
+ variables: createQueryVariables$4(productSelectionList, predicateField),
7850
7886
  skip: productSelectionList.length === 0
7851
7887
  });
7852
7888
  return {
@@ -7855,7 +7891,7 @@ const useProductSelectionsByFieldFetcher = (productSelections, predicateField) =
7855
7891
  };
7856
7892
  };
7857
7893
 
7858
- var ProductSelectionsPickerFetcher = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "ProductSelectionsPickerFetcher" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "productSelections" }, 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: "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: [] }] } }] } }] } }] } }], loc: { start: 0, end: 212, source: { body: "query ProductSelectionsPickerFetcher($where: String!) {\n productSelections(where: $where) {\n results {\n id\n key\n version\n nameAllLocales {\n locale\n value\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
7894
+ var ProductSelectionsPickerFetcher = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "ProductSelectionsPickerFetcher" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "productSelections" }, 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: "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: "type" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 223, source: { body: "query ProductSelectionsPickerFetcher($where: String!) {\n productSelections(where: $where) {\n results {\n id\n key\n version\n nameAllLocales {\n locale\n value\n }\n type\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
7859
7895
  const mapProductSelectionsToOptions = memoize(_ref => {
7860
7896
  let _ref$productSelection = _ref.productSelections,
7861
7897
  productSelections = _ref$productSelection === void 0 ? [] : _ref$productSelection,
@@ -7869,23 +7905,25 @@ const mapProductSelectionsToOptions = memoize(_ref => {
7869
7905
  locale: dataLocale,
7870
7906
  fallbackOrder: projectLanguages
7871
7907
  }),
7872
- key: productSelection.key
7908
+ key: productSelection.key,
7909
+ type: getType(productSelection.type)
7873
7910
  }));
7874
7911
  });
7875
7912
  const getValueFromOptions$2 = _ref2 => {
7876
7913
  let isMulti = _ref2.isMulti,
7877
7914
  currentlySelectedProductSelections = _ref2.currentlySelectedProductSelections,
7878
- productSelectionFieldOptions = _ref2.productSelectionFieldOptions;
7915
+ productSelectionFieldOptions = _ref2.productSelectionFieldOptions,
7916
+ enableExcludingProducts = _ref2.enableExcludingProducts;
7879
7917
  if (!currentlySelectedProductSelections) {
7880
7918
  return undefined;
7881
7919
  }
7882
7920
  if (isMulti) {
7883
- return productSelectionFieldOptions;
7921
+ return _mapInstanceProperty(productSelectionFieldOptions).call(productSelectionFieldOptions, ps => addTypeToLabel(ps, enableExcludingProducts));
7884
7922
  }
7885
7923
  // if the input is not multiselect, the AsyncSearchSelect is expecting an object rather than array
7886
- return productSelectionFieldOptions[0];
7924
+ return addTypeToLabel(productSelectionFieldOptions[0], enableExcludingProducts);
7887
7925
  };
7888
- const createQueryVariables$6 = _ref3 => {
7926
+ const createQueryVariables$3 = _ref3 => {
7889
7927
  var _context;
7890
7928
  let searchText = _ref3.searchText;
7891
7929
  const sanitizedSearchText = sanitize(_trimInstanceProperty(searchText).call(searchText, searchText));
@@ -7899,6 +7937,7 @@ const createQueryVariables$6 = _ref3 => {
7899
7937
  function ProductSelectionsSearchSelectDropdown(props) {
7900
7938
  var _context3;
7901
7939
  const intl = useIntl();
7940
+ const enableExcludingProducts = useFeatureToggle(EXCLUDING_PRODUCTS);
7902
7941
  const _useState = useState([]),
7903
7942
  _useState2 = _slicedToArray(_useState, 2),
7904
7943
  productionSelectionResults = _useState2[0],
@@ -7915,7 +7954,7 @@ function ProductSelectionsSearchSelectDropdown(props) {
7915
7954
  var _data$productSelectio, _data$productSelectio2;
7916
7955
  const _await$client$query = await client.query({
7917
7956
  query: ProductSelectionsPickerFetcher,
7918
- variables: createQueryVariables$6({
7957
+ variables: createQueryVariables$3({
7919
7958
  searchText
7920
7959
  }),
7921
7960
  context: {
@@ -7958,7 +7997,8 @@ function ProductSelectionsSearchSelectDropdown(props) {
7958
7997
  projectLanguages,
7959
7998
  renderSelectInputOptionValuesByField: props.renderSelectInputOptionValuesByField
7960
7999
  }),
7961
- isMulti: props.isMulti
8000
+ isMulti: props.isMulti,
8001
+ enableExcludingProducts
7962
8002
  }),
7963
8003
  description: props.description,
7964
8004
  isRequired: props.isRequired,
@@ -7978,15 +8018,38 @@ function ProductSelectionsSearchSelectDropdown(props) {
7978
8018
  });
7979
8019
  }
7980
8020
 
7981
- 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; }
7982
- 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; }
8021
+ 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; }
8022
+ 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; }
8023
+ function TypeSelectInputOption(props) {
8024
+ const data = props.data;
8025
+ const noValueFallback = props.noValueFallback || NO_VALUE_FALLBACK;
8026
+ return jsx(SelectInput.Option, _objectSpread$G(_objectSpread$G({}, props), {}, {
8027
+ children: jsxs(Spacings.Stack, {
8028
+ scale: "xs",
8029
+ children: [jsx(Text.Detail, {
8030
+ isBold: true,
8031
+ children: (data === null || data === void 0 ? void 0 : data.label) || noValueFallback
8032
+ }), jsxs(Text.Detail, {
8033
+ children: ["Key: ", (data === null || data === void 0 ? void 0 : data.key) || noValueFallback]
8034
+ }), jsxs(Text.Detail, {
8035
+ children: ["Type: ", (data === null || data === void 0 ? void 0 : data.type) || noValueFallback]
8036
+ })]
8037
+ })
8038
+ }));
8039
+ }
8040
+
8041
+ 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; }
8042
+ 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; }
7983
8043
  function ProductSelectionsPicker(props) {
7984
8044
  const productSelectionsTotalFetcher = useProductSelectionsTotalFetcher();
7985
8045
  const components = useMemo(() => {
7986
8046
  return {
7987
8047
  Option: optionInnerProps => {
7988
8048
  if (optionInnerProps.isDisabled) {
7989
- return jsx(SelectInput.Option, _objectSpread$N({}, optionInnerProps));
8049
+ return jsx(SelectInput.Option, _objectSpread$F({}, optionInnerProps));
8050
+ }
8051
+ if (props.optionType === TYPE_PROPERTY) {
8052
+ return jsx(TypeSelectInputOption, _objectSpread$F({}, optionInnerProps));
7990
8053
  }
7991
8054
  return jsx(CustomSelectInputOption, {
7992
8055
  optionType: props.optionType,
@@ -7998,7 +8061,7 @@ function ProductSelectionsPicker(props) {
7998
8061
  if (productSelectionsTotalFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
7999
8062
  const CustomProductSelectionsPicker = productSelectionsTotalFetcher.total <= props.lowerProductSelectionsLimit ? ProductSelectionBasicSelectDropdown : productSelectionsTotalFetcher.total <= props.upperProductSelectionsLimit ? ProductSelectionsAsyncSelectDropdown : ProductSelectionsSearchSelectDropdown;
8000
8063
  return jsx(Spacings.Stack, {
8001
- children: jsx(CustomProductSelectionsPicker, _objectSpread$N(_objectSpread$N({}, props), {}, {
8064
+ children: jsx(CustomProductSelectionsPicker, _objectSpread$F(_objectSpread$F({}, props), {}, {
8002
8065
  components: components
8003
8066
  }))
8004
8067
  });
@@ -8021,7 +8084,7 @@ ProductSelectionsPicker.defaultProps = {
8021
8084
 
8022
8085
  const COUNTRIES_ASYNC_LOADING_LIMIT = 60;
8023
8086
 
8024
- var messages$z = defineMessages({
8087
+ var messages$u = defineMessages({
8025
8088
  countriesBasicSelectPlaceholder: {
8026
8089
  id: 'CountriesPicker.countriesBasicSelectPlaceholder',
8027
8090
  description: 'Placeholder of the basic field for countries',
@@ -8049,7 +8112,7 @@ function CountriesBasicSelectDropdown(props) {
8049
8112
  value: props.value,
8050
8113
  isRequired: props.isRequired,
8051
8114
  description: props.description,
8052
- placeholder: intl.formatMessage(messages$z.countriesBasicSelectPlaceholder),
8115
+ placeholder: intl.formatMessage(messages$u.countriesBasicSelectPlaceholder),
8053
8116
  options: props.options,
8054
8117
  onChange: props.onChange,
8055
8118
  isDisabled: props.isDisabled,
@@ -8059,10 +8122,10 @@ function CountriesBasicSelectDropdown(props) {
8059
8122
  });
8060
8123
  }
8061
8124
 
8062
- 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; }
8063
- function _objectSpread$M(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context4 = ownKeys$M(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context5 = ownKeys$M(Object(source))).call(_context5, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
8125
+ 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; }
8126
+ 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; }
8064
8127
  const emptyCountryOption = intl => [{
8065
- label: intl.formatMessage(messages$z.countriesAsyncSelectDropdownTypeAheadPrompt),
8128
+ label: intl.formatMessage(messages$u.countriesAsyncSelectDropdownTypeAheadPrompt),
8066
8129
  value: undefined,
8067
8130
  isDisabled: true
8068
8131
  }];
@@ -8087,7 +8150,7 @@ function CountriesAsyncSelectDropdown(props) {
8087
8150
  const onOptionChange = event => {
8088
8151
  const countries = event.target.value;
8089
8152
  props.onChange({
8090
- target: _objectSpread$M(_objectSpread$M({}, event.target), {}, {
8153
+ target: _objectSpread$E(_objectSpread$E({}, event.target), {}, {
8091
8154
  value: _mapInstanceProperty(countries).call(countries, country => {
8092
8155
  var _country$value;
8093
8156
  return (_country$value = country === null || country === void 0 ? void 0 : country.value) !== null && _country$value !== void 0 ? _country$value : country;
@@ -8108,7 +8171,7 @@ function CountriesAsyncSelectDropdown(props) {
8108
8171
  var _context3;
8109
8172
  return _findInstanceProperty(_context3 = props.options).call(_context3, country => country.value === countryCode);
8110
8173
  }),
8111
- placeholder: intl.formatMessage(messages$z.countriesAsyncSelectPlaceholder),
8174
+ placeholder: intl.formatMessage(messages$u.countriesAsyncSelectPlaceholder),
8112
8175
  loadOptions: handleLoadOptions,
8113
8176
  onChange: onOptionChange,
8114
8177
  isDisabled: props.isDisabled,
@@ -8118,13 +8181,13 @@ function CountriesAsyncSelectDropdown(props) {
8118
8181
  });
8119
8182
  }
8120
8183
 
8121
- 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; }
8122
- 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; }
8184
+ 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; }
8185
+ 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; }
8123
8186
  function CountriesPicker(props) {
8124
8187
  var _props$options;
8125
8188
  const CustomCountriesPicker = ((_props$options = props.options) === null || _props$options === void 0 ? void 0 : _props$options.length) <= props.countriesAsyncLoadingLimit ? CountriesBasicSelectDropdown : CountriesAsyncSelectDropdown;
8126
8189
  return jsx(Spacings.Stack, {
8127
- children: jsx(CustomCountriesPicker, _objectSpread$L({}, props))
8190
+ children: jsx(CustomCountriesPicker, _objectSpread$D({}, props))
8128
8191
  });
8129
8192
  }
8130
8193
  CountriesPicker.defaultProps = {
@@ -8134,7 +8197,7 @@ CountriesPicker.defaultProps = {
8134
8197
  hasWarning: false
8135
8198
  };
8136
8199
 
8137
- var messages$y = defineMessages({
8200
+ var messages$t = defineMessages({
8138
8201
  noCustomerGroupsFound: {
8139
8202
  id: 'Prices.CustomerGroupPickerInput.noCustomerGroupsFound',
8140
8203
  description: 'The message to display when no customer groups were found',
@@ -8225,7 +8288,7 @@ const CustomerGroupPickerInput = _ref => {
8225
8288
  if (isCurrentOptionLoadingFailed) onError(currentOption.error);
8226
8289
  }, [isCurrentOptionLoadingFailed, onError, currentOption]);
8227
8290
  const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
8228
- const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$y.noCustomerGroupsFound), [loadingError, formatMessage]);
8291
+ const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$t.noCustomerGroupsFound), [loadingError, formatMessage]);
8229
8292
  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 : '';
8230
8293
  return jsx(Constraints.Horizontal, {
8231
8294
  max: "scale",
@@ -8236,7 +8299,7 @@ const CustomerGroupPickerInput = _ref => {
8236
8299
  children: jsx(AsyncSelectInput, {
8237
8300
  id: name,
8238
8301
  name: name,
8239
- placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : formatMessage(messages$y.placeholder),
8302
+ placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : formatMessage(messages$t.placeholder),
8240
8303
  loadOptions: loadOptionsDebounced,
8241
8304
  defaultOptions: true,
8242
8305
  showOptionGroupDivider: true,
@@ -8301,12 +8364,12 @@ const mapStoresToOptions = _ref => {
8301
8364
  };
8302
8365
 
8303
8366
  // get the first 60 options
8304
- const getFirst60Options$1 = (storesOptions, currentValues) => {
8367
+ const getFirst60Options = (storesOptions, currentValues) => {
8305
8368
  const currentValuesLength = _Array$isArray(currentValues) ? currentValues.length : 1;
8306
8369
  return _sliceInstanceProperty(storesOptions).call(storesOptions, 0, LOWER_STORES_LIMIT + currentValuesLength);
8307
8370
  };
8308
8371
 
8309
- var messages$x = defineMessages({
8372
+ var messages$s = defineMessages({
8310
8373
  basicSelectInputPlaceholder: {
8311
8374
  id: 'Shared.StoreSelectInput.basicSelectInputPlaceholder',
8312
8375
  description: 'The placeholder shown for basic select input',
@@ -8339,10 +8402,10 @@ var messages$x = defineMessages({
8339
8402
  }
8340
8403
  });
8341
8404
 
8342
- 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; }
8343
- function _objectSpread$K(target) { for (var i = 1; i < arguments.length; i++) { var _context5, _context6; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context5 = ownKeys$K(Object(source), !0)).call(_context5, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context6 = ownKeys$K(Object(source))).call(_context6, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
8344
- const hasErrors$5 = errors => {
8345
- var _context;
8405
+ 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; }
8406
+ 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; }
8407
+ const hasErrors$2 = errors => {
8408
+ var _context;
8346
8409
  return errors && _someInstanceProperty(_context = _Object$values(errors)).call(_context, Boolean);
8347
8410
  };
8348
8411
 
@@ -8365,7 +8428,7 @@ const getValueFromOptions$1 = _ref => {
8365
8428
  return _findInstanceProperty(mappedStoresListOptions).call(mappedStoresListOptions, store => currentlySelectedStores === store.value);
8366
8429
  };
8367
8430
  const emptyStoreOption = intl => [{
8368
- label: intl.formatMessage(messages$x.asyncSelectDropdownTypeAheadPrompt),
8431
+ label: intl.formatMessage(messages$s.asyncSelectDropdownTypeAheadPrompt),
8369
8432
  value: undefined,
8370
8433
  isDisabled: true
8371
8434
  }];
@@ -8385,7 +8448,7 @@ const StoresAsyncSelectInput = props => {
8385
8448
  stores: (keysOfStores === null || keysOfStores === void 0 ? void 0 : keysOfStores.length) && keysOfStores,
8386
8449
  projectKey: props.projectKey
8387
8450
  });
8388
- const hasError = AsyncSelectInput.isTouched(props.touched) && hasErrors$5(props.errors);
8451
+ const hasError = AsyncSelectInput.isTouched(props.touched) && hasErrors$2(props.errors);
8389
8452
  const mappedStoresListOptions = useMemo(() => {
8390
8453
  var _context2, _storesListFetcher$st;
8391
8454
  return _mapInstanceProperty(_context2 = ((_storesListFetcher$st = storesListFetcher.stores) === null || _storesListFetcher$st === void 0 ? void 0 : _storesListFetcher$st.results) || []).call(_context2, store => mapStoresToOptions({
@@ -8396,7 +8459,7 @@ const StoresAsyncSelectInput = props => {
8396
8459
  }, [dataLocale, storesListFetcher.stores, props.renderSelectInputOptionValuesByField]);
8397
8460
  const handleLoadOptions = async searchTerm => {
8398
8461
  if (!searchTerm) return [{
8399
- options: getFirst60Options$1(mappedStoresListOptions, props.value)
8462
+ options: getFirst60Options(mappedStoresListOptions, props.value)
8400
8463
  }, {
8401
8464
  options: emptyStoreOption(intl)
8402
8465
  }];
@@ -8405,17 +8468,17 @@ const StoresAsyncSelectInput = props => {
8405
8468
  return _includesInstanceProperty(_context3 = storeOption.label.toLowerCase()).call(_context3, searchTerm.toLowerCase()) || storeOption.key && _includesInstanceProperty(_context4 = storeOption.key.toLowerCase()).call(_context4, searchTerm.toLowerCase());
8406
8469
  });
8407
8470
  return [{
8408
- options: getFirst60Options$1(filteredOptions, props.value)
8471
+ options: getFirst60Options(filteredOptions, props.value)
8409
8472
  }, {
8410
8473
  options: emptyStoreOption(intl)
8411
8474
  }];
8412
8475
  };
8413
8476
  if (storesListFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
8414
8477
  return jsxs(Fragment, {
8415
- children: [jsx(AsyncSelectInput, _objectSpread$K(_objectSpread$K({
8478
+ children: [jsx(AsyncSelectInput, _objectSpread$C(_objectSpread$C({
8416
8479
  id: props.id,
8417
8480
  name: props.name,
8418
- placeholder: intl.formatMessage(messages$x.basicSelectInputPlaceholder),
8481
+ placeholder: intl.formatMessage(messages$s.basicSelectInputPlaceholder),
8419
8482
  horizontalConstraint: props.horizontalConstraint,
8420
8483
  loadOptions: handleLoadOptions,
8421
8484
  defaultOptions: true,
@@ -8441,7 +8504,8 @@ const StoresAsyncSelectInput = props => {
8441
8504
  maxMenuHeight: props.maxMenuHeight,
8442
8505
  menuPortalTarget: props.menuPortalTarget,
8443
8506
  menuPortalZIndex: props.menuPortalZIndex,
8444
- components: props.components
8507
+ components: props.components,
8508
+ controlShouldRenderValue: props.controlShouldRenderValue
8445
8509
  }, filterDataAttributes$1(props)), filterAriaAttributes(props))), jsx(FieldErrors, {
8446
8510
  errors: props.errors,
8447
8511
  isVisible: hasError,
@@ -8454,9 +8518,9 @@ StoresAsyncSelectInput.defaultProps = {
8454
8518
  shouldFetchProductSelections: false
8455
8519
  };
8456
8520
 
8457
- 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; }
8458
- 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; }
8459
- const hasErrors$4 = errors => {
8521
+ 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; }
8522
+ 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; }
8523
+ const hasErrors$1 = errors => {
8460
8524
  var _context;
8461
8525
  return errors && _someInstanceProperty(_context = _Object$values(errors)).call(_context, Boolean);
8462
8526
  };
@@ -8476,7 +8540,7 @@ const StoresBasicSelectInput = props => {
8476
8540
  stores: (keysOfStores === null || keysOfStores === void 0 ? void 0 : keysOfStores.length) && keysOfStores,
8477
8541
  projectKey: props.projectKey
8478
8542
  });
8479
- const hasError = SelectInput.isTouched(props.touched) && (hasErrors$4(props.errors) || props.hasError);
8543
+ const hasError = SelectInput.isTouched(props.touched) && (hasErrors$1(props.errors) || props.hasError);
8480
8544
  const mappedStoresListOptions = useMemo(() => {
8481
8545
  var _context2, _storesListFetcher$st;
8482
8546
  return _mapInstanceProperty(_context2 = ((_storesListFetcher$st = storesListFetcher.stores) === null || _storesListFetcher$st === void 0 ? void 0 : _storesListFetcher$st.results) || []).call(_context2, store => mapStoresToOptions({
@@ -8503,10 +8567,10 @@ const StoresBasicSelectInput = props => {
8503
8567
  };
8504
8568
  if (storesListFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
8505
8569
  return jsxs(Fragment, {
8506
- children: [jsx(SelectInput, _objectSpread$J(_objectSpread$J({
8570
+ children: [jsx(SelectInput, _objectSpread$B(_objectSpread$B({
8507
8571
  id: props.id,
8508
8572
  name: props.name,
8509
- placeholder: intl.formatMessage(messages$x.basicSelectInputPlaceholder),
8573
+ placeholder: intl.formatMessage(messages$s.basicSelectInputPlaceholder),
8510
8574
  horizontalConstraint: props.horizontalConstraint,
8511
8575
  options: mappedStoresListOptions,
8512
8576
  isMulti: props.isMulti,
@@ -8526,7 +8590,8 @@ const StoresBasicSelectInput = props => {
8526
8590
  maxMenuHeight: props.maxMenuHeight,
8527
8591
  menuPortalTarget: props.menuPortalTarget,
8528
8592
  menuPortalZIndex: props.menuPortalZIndex,
8529
- components: props.components
8593
+ components: props.components,
8594
+ controlShouldRenderValue: props.controlShouldRenderValue
8530
8595
  }, filterDataAttributes$1(props)), filterAriaAttributes(props))), jsx(FieldErrors, {
8531
8596
  errors: props.errors,
8532
8597
  isVisible: hasError,
@@ -8555,7 +8620,7 @@ const useTotalNumberOfStoresFetcher = projectKey => {
8555
8620
  };
8556
8621
  };
8557
8622
 
8558
- const handlers$3 = {
8623
+ const handlers$1 = {
8559
8624
  TotalNumberOfStores: {
8560
8625
  all: total => graphql.query('TotalNumberOfStores', (req, res, ctx) => {
8561
8626
  return res(ctx.data({
@@ -8567,8 +8632,8 @@ const handlers$3 = {
8567
8632
  }
8568
8633
  };
8569
8634
 
8570
- var FetchStoresByField = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchStoresByField" }, 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: "excludeProductSelections" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", alias: { kind: "Name", value: "storesByField" }, name: { kind: "Name", value: "stores" }, 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: "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: 439, source: { body: "query FetchStoresByField($where: String!, $excludeProductSelections: Boolean!) {\n storesByField: stores(where: $where) {\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 } } } };
8571
- const createQueryVariables$5 = (stores, predicateField, shouldFetchProductSelections) => {
8635
+ var FetchStoresByField = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchStoresByField" }, 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: "excludeProductSelections" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "limit" } }, type: { kind: "NamedType", name: { kind: "Name", value: "Int" } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", alias: { kind: "Name", value: "storesByField" }, name: { kind: "Name", value: "stores" }, 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" } } }], 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: "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: 473, source: { body: "query FetchStoresByField(\n $where: String!\n $excludeProductSelections: Boolean!\n $limit: Int\n) {\n storesByField: stores(where: $where, limit: $limit) {\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 } } } };
8636
+ const createQueryVariables$2 = (stores, predicateField, shouldFetchProductSelections) => {
8572
8637
  var _context;
8573
8638
  return {
8574
8639
  where: _concatInstanceProperty(_context = "".concat(predicateField, " in (")).call(_context, _mapInstanceProperty(stores).call(stores, store => "\"".concat(store, "\"")).join(', '), ")"),
@@ -8589,7 +8654,7 @@ const useStoresByFieldFetcher = function (stores, predicateField, projectKey) {
8589
8654
  target: GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM,
8590
8655
  projectKey
8591
8656
  },
8592
- variables: createQueryVariables$5(storesList, predicateField, shouldFetchProductSelections),
8657
+ variables: createQueryVariables$2(storesList, predicateField, shouldFetchProductSelections),
8593
8658
  skip: storesList.length === 0
8594
8659
  });
8595
8660
  return {
@@ -8598,14 +8663,14 @@ const useStoresByFieldFetcher = function (stores, predicateField, projectKey) {
8598
8663
  };
8599
8664
  };
8600
8665
 
8601
- 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; }
8602
- function _objectSpread$I(target) { for (var i = 1; i < arguments.length; i++) { var _context6, _context7; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context6 = ownKeys$I(Object(source), !0)).call(_context6, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context7 = ownKeys$I(Object(source))).call(_context7, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
8666
+ 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; }
8667
+ 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; }
8603
8668
  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 } } } };
8604
- const hasErrors$3 = errors => {
8669
+ const hasErrors = errors => {
8605
8670
  var _context;
8606
8671
  return errors && _someInstanceProperty(_context = _Object$values(errors)).call(_context, Boolean);
8607
8672
  };
8608
- const createQueryVariables$4 = _ref => {
8673
+ const createQueryVariables$1 = _ref => {
8609
8674
  var _context2, _context3;
8610
8675
  let searchText = _ref.searchText,
8611
8676
  dataLocale = _ref.dataLocale,
@@ -8672,11 +8737,11 @@ const StoresSearchSelectInput = props => {
8672
8737
  const intl = useIntl();
8673
8738
  const client = useApolloClient$1();
8674
8739
  const storesByFieldFetcher = useStoresByFieldFetcher(props.value, props.renderSelectInputOptionValuesByField, props.projectKey, props.shouldFetchProductSelections);
8675
- const hasError = AsyncSelectInput.isTouched(props.touched) && hasErrors$3(props.errors);
8740
+ const hasError = AsyncSelectInput.isTouched(props.touched) && hasErrors(props.errors);
8676
8741
  const handleLoadOptions = searchText => {
8677
8742
  const extractMatchedStores = client.query({
8678
8743
  query: FetchStoresByWherePredicate,
8679
- variables: createQueryVariables$4({
8744
+ variables: createQueryVariables$1({
8680
8745
  searchText,
8681
8746
  dataLocale,
8682
8747
  allAccessibleStoreKeysThroughDataFencePermissions: props.allAccessibleStoreKeysThroughDataFencePermissions,
@@ -8701,10 +8766,10 @@ const StoresSearchSelectInput = props => {
8701
8766
  const loadOptionsDebounced = debounce(handleLoadOptions, 500);
8702
8767
  if (storesByFieldFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
8703
8768
  return jsxs(Fragment, {
8704
- children: [jsx(SearchSelectInput, _objectSpread$I(_objectSpread$I({
8769
+ children: [jsx(SearchSelectInput, _objectSpread$A(_objectSpread$A({
8705
8770
  id: props.id,
8706
8771
  name: props.name,
8707
- placeholder: intl.formatMessage(messages$x.searchSelectInputPlaceholder),
8772
+ placeholder: intl.formatMessage(messages$s.searchSelectInputPlaceholder),
8708
8773
  horizontalConstraint: props.horizontalConstraint,
8709
8774
  loadOptions: loadOptionsDebounced,
8710
8775
  defaultOptions: false,
@@ -8718,8 +8783,8 @@ const StoresSearchSelectInput = props => {
8718
8783
  }),
8719
8784
  onChange: props.onChange,
8720
8785
  onBlur: props.onBlur,
8721
- loadingMessage: intl.formatMessage(messages$x.searchSelectInputLoadingMessage),
8722
- noOptionsMessage: () => intl.formatMessage(messages$x.searchSelectInputNoOptionsFoundMessage),
8786
+ loadingMessage: intl.formatMessage(messages$s.searchSelectInputLoadingMessage),
8787
+ noOptionsMessage: () => intl.formatMessage(messages$s.searchSelectInputNoOptionsFoundMessage),
8723
8788
  isDisabled: props.isDisabled || storesByFieldFetcher.isLoading,
8724
8789
  isReadOnly: props.isReadOnly,
8725
8790
  isClearable: props.isClearable,
@@ -8733,7 +8798,8 @@ const StoresSearchSelectInput = props => {
8733
8798
  maxMenuHeight: props.maxMenuHeight,
8734
8799
  menuPortalTarget: props.menuPortalTarget,
8735
8800
  menuPortalZIndex: props.menuPortalZIndex,
8736
- components: props.components
8801
+ components: props.components,
8802
+ controlShouldRenderValue: props.controlShouldRenderValue
8737
8803
  }, filterDataAttributes$1(props)), filterAriaAttributes(props))), jsx(FieldErrors, {
8738
8804
  errors: props.errors,
8739
8805
  isVisible: hasError,
@@ -8746,8 +8812,8 @@ StoresSearchSelectInput.defaultProps = {
8746
8812
  shouldFetchProductSelections: false
8747
8813
  };
8748
8814
 
8749
- 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; }
8750
- 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; }
8815
+ 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; }
8816
+ 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; }
8751
8817
  const StoreSelectInput = props => {
8752
8818
  const totalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher(props.projectKey);
8753
8819
  const components = useMemo(() => {
@@ -8755,7 +8821,7 @@ const StoreSelectInput = props => {
8755
8821
  // eslint-disable-next-line react/display-name
8756
8822
  Option: optionInnerProps => {
8757
8823
  if (optionInnerProps.isDisabled) {
8758
- return jsx(SelectInput.Option, _objectSpread$H({}, optionInnerProps));
8824
+ return jsx(SelectInput.Option, _objectSpread$z({}, optionInnerProps));
8759
8825
  }
8760
8826
  return jsx(CustomSelectInputOption, {
8761
8827
  optionType: props.optionType,
@@ -8766,7 +8832,7 @@ const StoreSelectInput = props => {
8766
8832
  }, [props.optionType]);
8767
8833
  if (totalNumberOfStoresFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
8768
8834
  const CustomStoreSelectInput = totalNumberOfStoresFetcher.total <= props.lowerStoresLimit ? StoresBasicSelectInput : totalNumberOfStoresFetcher.total <= props.upperStoresLimit ? StoresAsyncSelectInput : StoresSearchSelectInput;
8769
- return jsx(CustomStoreSelectInput, _objectSpread$H(_objectSpread$H({
8835
+ return jsx(CustomStoreSelectInput, _objectSpread$z(_objectSpread$z({
8770
8836
  projectKey: props.projectKey,
8771
8837
  id: props.id,
8772
8838
  name: props.name,
@@ -8789,1129 +8855,70 @@ const StoreSelectInput = props => {
8789
8855
  maxMenuHeight: props.maxMenuHeight,
8790
8856
  menuPortalTarget: props.menuPortalTarget,
8791
8857
  menuPortalZIndex: props.menuPortalZIndex,
8792
- renderSelectInputOptionValuesByField: props.renderSelectInputOptionValuesByField,
8793
- lowerStoresLimit: props.lowerStoresLimit,
8794
- upperStoresLimit: props.upperStoresLimit,
8795
- allAccessibleStoreKeysThroughDataFencePermissions: props.allAccessibleStoreKeysThroughDataFencePermissions,
8796
- shouldFetchProductSelections: props.shouldFetchProductSelections
8797
- }, filterDataAttributes$1(props)), filterAriaAttributes(props)));
8798
- };
8799
- StoreSelectInput.displayName = 'StoreSelectInput';
8800
- StoreSelectInput.defaultProps = {
8801
- lowerStoresLimit: LOWER_STORES_LIMIT,
8802
- upperStoresLimit: UPPER_STORES_LIMIT,
8803
- renderSelectInputOptionValuesByField: 'id',
8804
- optionType: 'double-property',
8805
- shouldFetchProductSelections: false
8806
- };
8807
-
8808
- 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; }
8809
- 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; }
8810
- var FetchBusinessUnitsListQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchBusinessUnitsListQuery" }, 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: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "businessUnits" }, 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: "BusinessUnitBasicInfo" }, directives: [] }] } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "BusinessUnitBasicInfo" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BusinessUnit" } }, 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: "name" }, arguments: [], directives: [] }] } }], loc: { start: 0, end: 340, source: { body: "query FetchBusinessUnitsListQuery(\n $limit: Int\n $offset: Int\n $sort: [String!]\n $where: String\n) {\n businessUnits(limit: $limit, offset: $offset, sort: $sort, where: $where) {\n total\n count\n offset\n results {\n ...BusinessUnitBasicInfo\n }\n }\n}\n\nfragment BusinessUnitBasicInfo on BusinessUnit {\n id\n key\n name\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
8811
- const createQueryVariables$3 = ownProps => {
8812
- var _context;
8813
- return _objectSpread$G(_objectSpread$G({
8814
- limit: ownProps.limit,
8815
- offset: ownProps.offset,
8816
- sort: _sortInstanceProperty(ownProps)
8817
- }, Boolean(ownProps.businessUnits) && {
8818
- where: "key in (".concat(_mapInstanceProperty(_context = ownProps.businessUnits).call(_context, businessUnit => "\"".concat(businessUnit, "\"")).join(', '), ")")
8819
- }), {}, {
8820
- businessUnits: ownProps.businessUnits,
8821
- where: ownProps.where
8822
- });
8823
- };
8824
- const emptyBusinessUnits = {
8825
- total: 0,
8826
- count: 0,
8827
- offset: 0,
8828
- results: []
8829
- };
8830
- const useBusinessUnitsListFetcher = props => {
8831
- const queryVariables = createQueryVariables$3({
8832
- limit: props.limit,
8833
- offset: props.offset,
8834
- sort: _sortInstanceProperty(props),
8835
- businessUnits: props.businessUnits,
8836
- where: props.where
8837
- });
8838
- const _useQuery = useQuery(FetchBusinessUnitsListQuery, {
8839
- variables: queryVariables,
8840
- context: {
8841
- target: GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM
8842
- },
8843
- fetchPolicy: 'network-only',
8844
- onError: graphqlErrorResponse => {
8845
- var _props$onError;
8846
- return (_props$onError = props.onError) === null || _props$onError === void 0 ? void 0 : _props$onError.call(props, graphqlErrorResponse);
8847
- }
8848
- }),
8849
- data = _useQuery.data,
8850
- refetch = _useQuery.refetch,
8851
- loading = _useQuery.loading;
8852
- return {
8853
- isLoading: loading,
8854
- businessUnits: (data === null || data === void 0 ? void 0 : data.businessUnits) || emptyBusinessUnits,
8855
- refetch
8856
- };
8857
- };
8858
-
8859
- const handlers$2 = {
8860
- BusinessUnits: {
8861
- all: businessUnits => graphql.query('FetchBusinessUnitsListQuery', (req, res, ctx) => res(ctx.data({
8862
- businessUnits,
8863
- isLoading: false
8864
- })))
8865
- }
8866
- };
8867
-
8868
- const LOWER_BUSINESS_UNITS_LIMIT = 60;
8869
- const UPPER_BUSINESS_UNITS_LIMIT = 500;
8870
-
8871
- const mapBusinessUnitsToOptions = _ref => {
8872
- let businessUnit = _ref.businessUnit,
8873
- renderSelectInputOptionValuesByField = _ref.renderSelectInputOptionValuesByField;
8874
- return {
8875
- label: businessUnit.name || "".concat(businessUnit.key, " (key)"),
8876
- name: businessUnit.name || "".concat(businessUnit.key, " (key)"),
8877
- value: renderSelectInputOptionValuesByField === 'key' ? businessUnit.key : businessUnit.id,
8878
- key: businessUnit.key
8879
- };
8880
- };
8881
- const getFirst60Options = (businessUnitOptions, currentValues) => {
8882
- const currentValuesLength = _Array$isArray(currentValues) ? currentValues.length : 1;
8883
- return _sliceInstanceProperty(businessUnitOptions).call(businessUnitOptions, 0, LOWER_BUSINESS_UNITS_LIMIT + currentValuesLength);
8884
- };
8885
-
8886
- var messages$w = defineMessages({
8887
- asyncSelectInputPlaceholder: {
8888
- id: 'Shared.BusinessUnitSelectInput.asyncSelectInputPlaceholder',
8889
- description: 'The placeholder shown for async select input',
8890
- defaultMessage: 'Select or type a business unit key'
8891
- },
8892
- basicSelectInputPlaceholder: {
8893
- id: 'Shared.BusinessUnitSelectInput.basicSelectInputPlaceholder',
8894
- description: 'The placeholder shown for basic select input',
8895
- defaultMessage: 'Select or type a business unit key'
8896
- },
8897
- searchSelectInputPlaceholder: {
8898
- id: 'Shared.BusinessUnitSelectInput.searchSelectInputPlaceholder',
8899
- description: 'The placeholder shown for search select input',
8900
- defaultMessage: 'Type an exact business unit key'
8901
- },
8902
- searchSelectInputLoadingMessage: {
8903
- id: 'Shared.BusinessUnitSelectInput.searchSelectInputLoadingMessage',
8904
- description: 'The loading message shown for search select input',
8905
- defaultMessage: 'Loading exact matches'
8906
- },
8907
- searchSelectInputNoOptionsFoundMessage: {
8908
- id: 'Shared.BusinessUnitSelectInput.searchSelectInputNoOptionsFoundMessage',
8909
- description: 'The message shown in search select input when matches are found',
8910
- defaultMessage: 'No matches found for your search term'
8911
- }
8912
- });
8913
-
8914
- 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; }
8915
- function _objectSpread$F(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context4 = ownKeys$F(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context5 = ownKeys$F(Object(source))).call(_context5, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
8916
- const hasErrors$2 = errors => {
8917
- var _context;
8918
- return errors && _someInstanceProperty(_context = _Object$values(errors)).call(_context, Boolean);
8919
- };
8920
- const BusinessUnitAsyncSelectInput = props => {
8921
- var _businessUnitsListFet;
8922
- const intl = useIntl();
8923
- const businessUnitsListFetcher = useBusinessUnitsListFetcher({
8924
- limit: UPPER_BUSINESS_UNITS_LIMIT,
8925
- sort: 'createdAt asc',
8926
- where: props === null || props === void 0 ? void 0 : props.where
8927
- });
8928
- const hasError = AsyncSelectInput.isTouched(props.touched) && hasErrors$2(props.errors);
8929
- const businessUnits = useMemo(() => businessUnitsListFetcher.businessUnits.results, [(_businessUnitsListFet = businessUnitsListFetcher.businessUnits) === null || _businessUnitsListFet === void 0 ? void 0 : _businessUnitsListFet.results]);
8930
- const mappedBusinessUnitsOptions = useMemo(() => _mapInstanceProperty(businessUnits).call(businessUnits, businessUnit => mapBusinessUnitsToOptions({
8931
- businessUnit,
8932
- renderSelectInputOptionValuesByField: props.renderSelectInputOptionValuesByField
8933
- })), [businessUnits, props.renderSelectInputOptionValuesByField]);
8934
- const handleLoadOptions = async searchTerm => {
8935
- if (!searchTerm) return [{
8936
- options: getFirst60Options(mappedBusinessUnitsOptions, props.value)
8937
- }];
8938
- const filteredOptions = _filterInstanceProperty(mappedBusinessUnitsOptions).call(mappedBusinessUnitsOptions, businessUnitOption => {
8939
- var _context2, _context3;
8940
- return _includesInstanceProperty(_context2 = businessUnitOption.label.toLowerCase()).call(_context2, searchTerm.toLowerCase()) || businessUnitOption.key && _includesInstanceProperty(_context3 = businessUnitOption.key.toLowerCase()).call(_context3, searchTerm.toLowerCase());
8941
- });
8942
- return [{
8943
- options: getFirst60Options(filteredOptions, props.value)
8944
- }];
8945
- };
8946
- const handleChange = event => {
8947
- var _event$target$value$v, _event$target$value;
8948
- const businessUnitKey = (_event$target$value$v = (_event$target$value = event.target.value) === null || _event$target$value === void 0 ? void 0 : _event$target$value.value) !== null && _event$target$value$v !== void 0 ? _event$target$value$v : event.target.value;
8949
- const currentBusinessUnit = _findInstanceProperty(businessUnits).call(businessUnits, businessUnit => businessUnit.key === businessUnitKey);
8950
- props.onChange(currentBusinessUnit);
8951
- };
8952
- const getDefaultOptions = () => {
8953
- return _sliceInstanceProperty(mappedBusinessUnitsOptions).call(mappedBusinessUnitsOptions, 0, LOWER_BUSINESS_UNITS_LIMIT);
8954
- };
8955
- if (businessUnitsListFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
8956
- return jsxs(Fragment, {
8957
- children: [jsx(AsyncSelectInput, _objectSpread$F(_objectSpread$F({
8958
- id: props.id,
8959
- name: props.name,
8960
- placeholder: props.placeholder || intl.formatMessage(messages$w.asyncSelectInputPlaceholder),
8961
- horizontalConstraint: props.horizontalConstraint,
8962
- loadOptions: handleLoadOptions,
8963
- defaultOptions: getDefaultOptions(),
8964
- value: props.value,
8965
- onChange: handleChange,
8966
- onBlur: props.onBlur,
8967
- isDisabled: props.isDisabled || businessUnitsListFetcher.isLoading,
8968
- isReadOnly: props.isReadOnly,
8969
- isClearable: props.isClearable,
8970
- isSearchable: props.isSearchable,
8971
- backspaceRemovesValue: props.backspaceRemovesValue,
8972
- hasError: hasError,
8973
- hasWarning: props.hasWarning,
8974
- errors: props.errors,
8975
- renderError: props.renderError,
8976
- touched: props.touched,
8977
- maxMenuHeight: props.maxMenuHeight,
8978
- menuPortalTarget: props.menuPortalTarget,
8979
- menuPortalZIndex: props.menuPortalZIndex,
8980
- components: props.components
8981
- }, filterDataAttributes$1(props)), filterAriaAttributes(props))), jsx(FieldErrors, {
8982
- errors: props.errors,
8983
- isVisible: hasError,
8984
- renderError: props.renderError
8985
- })]
8986
- });
8987
- };
8988
- BusinessUnitAsyncSelectInput.displayName = 'BusinessUnitAsyncSelectInput';
8989
- BusinessUnitAsyncSelectInput.defaultProps = {
8990
- shouldFetchProductSelections: false
8991
- };
8992
-
8993
- 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; }
8994
- 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; }
8995
- const hasErrors$1 = errors => {
8996
- var _context;
8997
- return errors && _someInstanceProperty(_context = _Object$values(errors)).call(_context, Boolean);
8998
- };
8999
- const BusinessUnitBasicSelectInput = props => {
9000
- var _businessUnitsListFet, _props$value;
9001
- const intl = useIntl();
9002
- const businessUnitsListFetcher = useBusinessUnitsListFetcher({
9003
- limit: LOWER_BUSINESS_UNITS_LIMIT,
9004
- sort: 'createdAt asc',
9005
- where: props === null || props === void 0 ? void 0 : props.where
9006
- });
9007
- const hasError = SelectInput.isTouched(props.touched) && (hasErrors$1(props.errors) || props.hasError);
9008
- const businessUnits = useMemo(() => businessUnitsListFetcher.businessUnits.results, [(_businessUnitsListFet = businessUnitsListFetcher.businessUnits) === null || _businessUnitsListFet === void 0 ? void 0 : _businessUnitsListFet.results]);
9009
- const mappedBusinessUnitsOptions = useMemo(() => _mapInstanceProperty(businessUnits).call(businessUnits, businessUnit => mapBusinessUnitsToOptions({
9010
- businessUnit,
9011
- renderSelectInputOptionValuesByField: props.renderSelectInputOptionValuesByField
9012
- })), [businessUnits, props.renderSelectInputOptionValuesByField]);
9013
- const handleChange = event => {
9014
- var _event$target$value$v, _event$target$value;
9015
- const businessUnitKey = (_event$target$value$v = (_event$target$value = event.target.value) === null || _event$target$value === void 0 ? void 0 : _event$target$value.value) !== null && _event$target$value$v !== void 0 ? _event$target$value$v : event.target.value;
9016
- const currentBusinessUnit = _findInstanceProperty(businessUnits).call(businessUnits, businessUnit => businessUnit.key === businessUnitKey);
9017
- props.onChange(currentBusinessUnit);
9018
- };
9019
- if (businessUnitsListFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
9020
- return jsxs(Fragment, {
9021
- children: [jsx(SelectInput, _objectSpread$E(_objectSpread$E({
9022
- id: props.id,
9023
- name: props.name,
9024
- placeholder: props.placeholder || intl.formatMessage(messages$w.basicSelectInputPlaceholder),
9025
- horizontalConstraint: props.horizontalConstraint,
9026
- options: mappedBusinessUnitsOptions,
9027
- value: (_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.value,
9028
- onChange: handleChange,
9029
- onBlur: props.onBlur,
9030
- isDisabled: props.isDisabled || businessUnitsListFetcher.isLoading,
9031
- isReadOnly: props.isReadOnly,
9032
- isClearable: props.isClearable,
9033
- isSearchable: props.isSearchable,
9034
- backspaceRemovesValue: props.backspaceRemovesValue,
9035
- hasError: hasError,
9036
- hasWarning: props.hasWarning,
9037
- errors: props.errors,
9038
- renderError: props.renderError,
9039
- touched: props.touched,
9040
- maxMenuHeight: props.maxMenuHeight,
9041
- menuPortalTarget: props.menuPortalTarget,
9042
- menuPortalZIndex: props.menuPortalZIndex,
9043
- components: props.components
9044
- }, filterDataAttributes$1(props)), filterAriaAttributes(props))), jsx(FieldErrors, {
9045
- errors: props.errors,
9046
- isVisible: hasError,
9047
- renderError: props.renderError
9048
- })]
9049
- });
9050
- };
9051
- BusinessUnitBasicSelectInput.displayName = 'BusinessUnitBasicSelectInput';
9052
-
9053
- var FetchBusinessUnitsByField = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchBusinessUnitsByField" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", alias: { kind: "Name", value: "businessUnitsByField" }, name: { kind: "Name", value: "businessUnits" }, 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: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 162, source: { body: "query FetchBusinessUnitsByField($where: String!) {\n businessUnitsByField: businessUnits(where: $where) {\n results {\n id\n key\n name\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
9054
- const createQueryVariables$2 = (businessUnits, predicateField) => {
9055
- var _context;
9056
- return {
9057
- where: _concatInstanceProperty(_context = "".concat(predicateField, " in (")).call(_context, _mapInstanceProperty(businessUnits).call(businessUnits, businessUnit => "\"".concat(businessUnit, "\"")).join(', '), ")"),
9058
- limit: 500
9059
- };
9060
- };
9061
- const emptyBusinessUnitsQueryResult = {
9062
- results: []
9063
- };
9064
- const useBusinessUnitsByFieldFetcher = (businessUnits, predicateField) => {
9065
- var _businessUnitsQuery$d;
9066
- const businessUnitsList = _Array$isArray(businessUnits) ? businessUnits : [businessUnits];
9067
- const businessUnitsQuery = useQuery(FetchBusinessUnitsByField, {
9068
- context: {
9069
- target: GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM
9070
- },
9071
- variables: createQueryVariables$2(businessUnitsList, predicateField),
9072
- skip: businessUnitsList.length === 0
9073
- });
9074
- return {
9075
- businessUnits: ((_businessUnitsQuery$d = businessUnitsQuery.data) === null || _businessUnitsQuery$d === void 0 ? void 0 : _businessUnitsQuery$d.businessUnitsByField) || emptyBusinessUnitsQueryResult,
9076
- isLoading: businessUnitsQuery.loading
9077
- };
9078
- };
9079
-
9080
- var TotalNumberOfBusinessUnits = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "TotalNumberOfBusinessUnits" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", alias: { kind: "Name", value: "totalNumberOfBusinessUnits" }, name: { kind: "Name", value: "businessUnits" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 97, source: { body: "query TotalNumberOfBusinessUnits {\n totalNumberOfBusinessUnits: businessUnits {\n total\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
9081
- const useTotalNumberOfBusinessUnitsFetcher = () => {
9082
- var _totalNumberOfBusines;
9083
- const totalNumberOfBusinessUnitsQuery = useQuery(TotalNumberOfBusinessUnits, {
9084
- context: {
9085
- target: GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM
9086
- },
9087
- fetchPolicy: 'network-only'
9088
- });
9089
- return {
9090
- total: (_totalNumberOfBusines = totalNumberOfBusinessUnitsQuery.data) === null || _totalNumberOfBusines === void 0 ? void 0 : _totalNumberOfBusines.totalNumberOfBusinessUnits.total,
9091
- isLoading: totalNumberOfBusinessUnitsQuery.loading
9092
- };
9093
- };
9094
-
9095
- const handlers$1 = {
9096
- TotalNumberOfBusinessUnits: {
9097
- all: total => graphql.query('TotalNumberOfBusinessUnits', (req, res, ctx) => {
9098
- return res(ctx.data({
9099
- totalNumberOfBusinessUnits: {
9100
- total
9101
- },
9102
- isLoading: false
9103
- }));
9104
- })
9105
- }
9106
- };
9107
-
9108
- 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; }
9109
- function _objectSpread$D(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context4 = ownKeys$D(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context5 = ownKeys$D(Object(source))).call(_context5, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9110
- var FetchBusinessUnitsByWherePredicate = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchBusinessUnitsByWherePredicate" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "where" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", alias: { kind: "Name", value: "businessUnitsByWherePredicate" }, name: { kind: "Name", value: "businessUnits" }, 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: "key" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 180, source: { body: "query FetchBusinessUnitsByWherePredicate($where: String!) {\n businessUnitsByWherePredicate: businessUnits(where: $where) {\n results {\n id\n key\n name\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
9111
- const hasErrors = errors => {
9112
- var _context;
9113
- return errors && _someInstanceProperty(_context = _Object$values(errors)).call(_context, Boolean);
9114
- };
9115
- const createQueryVariables$1 = _ref => {
9116
- var _context2;
9117
- let searchText = _ref.searchText;
9118
- const sanitizedSearchText = sanitize(_trimInstanceProperty(searchText).call(searchText, searchText));
9119
- const keyQuery = "key = \"".concat(sanitizedSearchText, "\"");
9120
- const idQuery = isUUID(sanitizedSearchText) && "id = \"".concat(sanitizedSearchText, "\"");
9121
- const nameQuery = "name = \"".concat(sanitizedSearchText, "\"");
9122
- const searchTextQuery = _filterInstanceProperty(_context2 = [idQuery, nameQuery, keyQuery]).call(_context2, Boolean).join(' or ');
9123
- return {
9124
- where: searchTextQuery
9125
- };
9126
- };
9127
- const BusinessUnitSearchSelectInput = props => {
9128
- const intl = useIntl();
9129
- const client = useApolloClient$1();
9130
- const businessUnitsByFieldFetcher = useBusinessUnitsByFieldFetcher(props.value);
9131
- const hasError = AsyncSelectInput.isTouched(props.touched) && hasErrors(props.errors);
9132
- const handleLoadOptions = searchText => {
9133
- const extractMatchedBusinessUnits = client.query({
9134
- query: FetchBusinessUnitsByWherePredicate,
9135
- variables: createQueryVariables$1({
9136
- searchText
9137
- }),
9138
- context: {
9139
- target: GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM
9140
- },
9141
- fetchPolicy: 'network-only'
9142
- }).then(_ref2 => {
9143
- var _data$businessUnitsBy, _context3;
9144
- let data = _ref2.data;
9145
- return (_data$businessUnitsBy = data.businessUnitsByWherePredicate) === null || _data$businessUnitsBy === void 0 ? void 0 : _mapInstanceProperty(_context3 = _data$businessUnitsBy.results).call(_context3, businessUnit => mapBusinessUnitsToOptions({
9146
- businessUnit,
9147
- renderSelectInputOptionValuesByField: props.renderSelectInputOptionValuesByField
9148
- }));
9149
- });
9150
- return extractMatchedBusinessUnits;
9151
- };
9152
- const handleChange = event => {
9153
- props.onChange(event.target.value);
9154
- };
9155
- const loadOptionsDebounced = debounce(handleLoadOptions, 500);
9156
- if (businessUnitsByFieldFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
9157
- return jsxs(Fragment, {
9158
- children: [jsx(SearchSelectInput, _objectSpread$D(_objectSpread$D({
9159
- id: props.id,
9160
- name: props.name,
9161
- placeholder: props.placeholder || intl.formatMessage(messages$w.searchSelectInputPlaceholder),
9162
- horizontalConstraint: props.horizontalConstraint,
9163
- loadOptions: loadOptionsDebounced,
9164
- defaultOptions: false,
9165
- value: props.value,
9166
- onChange: handleChange,
9167
- onBlur: props.onBlur,
9168
- loadingMessage: intl.formatMessage(messages$w.searchSelectInputLoadingMessage),
9169
- noOptionsMessage: () => intl.formatMessage(messages$w.searchSelectInputNoOptionsFoundMessage),
9170
- isDisabled: props.isDisabled || businessUnitsByFieldFetcher.isLoading,
9171
- isReadOnly: props.isReadOnly,
9172
- isClearable: props.isClearable,
9173
- isSearchable: props.isSearchable,
9174
- backspaceRemovesValue: props.backspaceRemovesValue,
9175
- hasError: hasError,
9176
- hasWarning: props.hasWarning,
9177
- errors: props.errors,
9178
- renderError: props.renderError,
9179
- touched: props.touched,
9180
- maxMenuHeight: props.maxMenuHeight,
9181
- menuPortalTarget: props.menuPortalTarget,
9182
- menuPortalZIndex: props.menuPortalZIndex,
9183
- components: props.components
9184
- }, filterDataAttributes$1(props)), filterAriaAttributes(props))), jsx(FieldErrors, {
9185
- errors: props.errors,
9186
- isVisible: hasError,
9187
- renderError: props.renderError
9188
- })]
9189
- });
9190
- };
9191
- BusinessUnitSearchSelectInput.displayName = 'BusinessUnitSearchSelectInput';
9192
- BusinessUnitSearchSelectInput.defaultProps = {
9193
- shouldFetchProductSelections: false
9194
- };
9195
-
9196
- 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; }
9197
- 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; }
9198
- const BusinessUnitSelectInput = props => {
9199
- const totalNumberOfBusinessUnitsFetcher = useTotalNumberOfBusinessUnitsFetcher();
9200
- const components = useMemo(() => {
9201
- return {
9202
- // eslint-disable-next-line react/display-name
9203
- Option: optionInnerProps => {
9204
- if (optionInnerProps.isDisabled) {
9205
- return jsx(SelectInput.Option, _objectSpread$C({}, optionInnerProps));
9206
- }
9207
- return jsx(CustomSelectInputOption, {
9208
- optionType: props.optionType,
9209
- optionInnerProps: optionInnerProps
9210
- });
9211
- }
9212
- };
9213
- }, [props.optionType]);
9214
- if (totalNumberOfBusinessUnitsFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
9215
- const CustomSelectInput = totalNumberOfBusinessUnitsFetcher.total <= props.lowerBusinessUnitsLimit ? BusinessUnitBasicSelectInput : totalNumberOfBusinessUnitsFetcher.total <= props.upperBusinessUnitsLimit ? BusinessUnitAsyncSelectInput : BusinessUnitSearchSelectInput;
9216
- return jsx(CustomSelectInput, _objectSpread$C(_objectSpread$C({
9217
- id: props.id,
9218
- name: props.name,
9219
- components: components,
9220
- horizontalConstraint: props.horizontalConstraint,
9221
- value: props.value,
9222
- onChange: props.onChange,
9223
- onBlur: props.onBlur,
9224
- isDisabled: props.isDisabled,
9225
- isReadOnly: props.isReadOnly,
9226
- isClearable: props.isClearable,
9227
- isSearchable: props.isSearchable,
9228
- backspaceRemovesValue: props.backspaceRemovesValue,
9229
- hasError: props.hasError,
9230
- hasWarning: props.hasWarning,
9231
- errors: props.errors,
9232
- renderError: props.renderError,
9233
- touched: props.touched,
9234
- title: props.title,
9235
- maxMenuHeight: props.maxMenuHeight,
9236
- menuPortalTarget: props.menuPortalTarget,
9237
- menuPortalZIndex: props.menuPortalZIndex,
9238
- renderSelectInputOptionValuesByField: props.renderSelectInputOptionValuesByField,
9239
- lowerBusinessUnitsLimit: props.lowerBusinessUnitsLimit,
9240
- upperBusinessUnitsLimit: props.upperBusinessUnitsLimit,
9241
- where: props.where,
9242
- placeholder: props.placeholder
9243
- }, filterDataAttributes$1(props)), filterAriaAttributes(props)));
9244
- };
9245
- BusinessUnitSelectInput.displayName = 'BusinessUnitSelectInput';
9246
- BusinessUnitSelectInput.defaultProps = {
9247
- lowerBusinessUnitsLimit: LOWER_BUSINESS_UNITS_LIMIT,
9248
- upperBusinessUnitsLimit: UPPER_BUSINESS_UNITS_LIMIT,
9249
- renderSelectInputOptionValuesByField: 'id',
9250
- optionType: 'double-property'
9251
- };
9252
-
9253
- // Keys have to match enum values on core ws
9254
- // https://github.com/sphereio/sphere-backend/blob/master/ws/core/users.md#-businessrole
9255
- const businessRoleKeys = ['ExecutiveManagement', 'BusinessIntelligence', 'BuyingPlanningAndInventoryManagement', 'DataQualityAndContentManagement', 'CustomerService', 'FinanceAndAccounting', 'LegalAndPeople', 'LogisticsAndSupplyChain', 'FulfillmentAndOperationsManagement', 'OfflineRetailStore', 'Marketing', 'BusinessDevSalesAndAccountManagement', 'UXUIDesign', 'TechProductManagement', 'TechProjectAndProgramManagement', 'SoftwareDevelopmentAndSolutionsArchitect', 'OperationsITAndSupportEngineering', 'Other'];
9256
-
9257
- var messages$v = defineMessages({
9258
- ExecutiveManagement: {
9259
- id: 'Shared.businessRoles.executiveManagement',
9260
- description: 'The label for one of the selectable business roles',
9261
- defaultMessage: 'Executive Management'
9262
- },
9263
- BusinessIntelligence: {
9264
- id: 'Shared.businessRoles.businessIntelligence',
9265
- description: 'The label for one of the selectable business roles',
9266
- defaultMessage: 'Business Intelligence'
9267
- },
9268
- BuyingPlanningAndInventoryManagement: {
9269
- id: 'Shared.businessRoles.buyingPlanningInventoryManagement',
9270
- description: 'The label for one of the selectable business roles',
9271
- defaultMessage: 'Buying, Planning & Instock Management Buying, Planning & Inventory Management'
9272
- },
9273
- DataQualityAndContentManagement: {
9274
- id: 'Shared.businessRoles.dataQualityContentManagement',
9275
- description: 'The label for one of the selectable business roles',
9276
- defaultMessage: 'Data Quality & Content Management'
9277
- },
9278
- CustomerService: {
9279
- id: 'Shared.businessRoles.customerService',
9280
- description: 'The label for one of the selectable business roles',
9281
- defaultMessage: 'Customer Service'
9282
- },
9283
- FinanceAndAccounting: {
9284
- id: 'Shared.businessRoles.financeAccounting',
9285
- description: 'The label for one of the selectable business roles',
9286
- defaultMessage: 'Finance & Accounting'
9287
- },
9288
- LegalAndPeople: {
9289
- id: 'Shared.businessRoles.legalPeople',
9290
- description: 'The label for one of the selectable business roles',
9291
- defaultMessage: 'Legal & People'
9292
- },
9293
- LogisticsAndSupplyChain: {
9294
- id: 'Shared.businessRoles.logisticsSupplyChain',
9295
- description: 'The label for one of the selectable business roles',
9296
- defaultMessage: 'Logistics & Supply Chain'
9297
- },
9298
- FulfillmentAndOperationsManagement: {
9299
- id: 'Shared.businessRoles.fulfillmentOperationsManagement',
9300
- description: 'The label for one of the selectable business roles',
9301
- defaultMessage: 'Fulfillment & Operations Management'
9302
- },
9303
- OfflineRetailStore: {
9304
- id: 'Shared.businessRoles.offlineRetailStore',
9305
- description: 'The label for one of the selectable business roles',
9306
- defaultMessage: 'Offline Retail Store'
9307
- },
9308
- Marketing: {
9309
- id: 'Shared.businessRoles.marketing',
9310
- description: 'The label for one of the selectable business roles',
9311
- defaultMessage: 'Marketing'
9312
- },
9313
- BusinessDevSalesAndAccountManagement: {
9314
- id: 'Shared.businessRoles.businessDevSalesAccountManagement',
9315
- description: 'The label for one of the selectable business roles',
9316
- defaultMessage: 'Business Dev, Sales & Account Management'
9317
- },
9318
- UXUIDesign: {
9319
- id: 'Shared.businessRoles.uxUiDesign',
9320
- description: 'The label for one of the selectable business roles',
9321
- defaultMessage: 'UX/UI Design'
9322
- },
9323
- TechProductManagement: {
9324
- id: 'Shared.businessRoles.productManagementTech',
9325
- description: 'The label for one of the selectable business roles',
9326
- defaultMessage: 'Product Management (Tech)'
9327
- },
9328
- TechProjectAndProgramManagement: {
9329
- id: 'Shared.businessRoles.projectProgramManagementTech',
9330
- description: 'The label for one of the selectable business roles',
9331
- defaultMessage: 'Project & Program Management (Tech)'
9332
- },
9333
- SoftwareDevelopmentAndSolutionsArchitect: {
9334
- id: 'Shared.businessRoles.softwareDevelopmentSolutionsArchitect',
9335
- description: 'The label for one of the selectable business roles',
9336
- defaultMessage: 'Software Development & Solutions Architect'
9337
- },
9338
- OperationsITAndSupportEngineering: {
9339
- id: 'Shared.businessRoles.operationsItSupportEngineering',
9340
- description: 'The label for one of the selectable business roles',
9341
- defaultMessage: 'Operations, IT & Support Engineering'
9342
- },
9343
- Other: {
9344
- id: 'Shared.businessRoles.other',
9345
- description: 'The label for one of the selectable business roles',
9346
- defaultMessage: 'Other'
9347
- }
9348
- });
9349
-
9350
- const safelyAddFallback = function (string) {
9351
- let fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : NO_VALUE_FALLBACK;
9352
- return string === '' ? fallback : string !== null && string !== void 0 ? string : fallback;
9353
- };
9354
-
9355
- const ENABLE_BUSINESS_UNITS_ASSOCIATE_ROLES = 'businessUnitsAssociateRoles';
9356
-
9357
- const ASSOCIATE_ROLE_SOURCES = {
9358
- EXPLICIT: 'Explicit',
9359
- INHERITED: 'Inherited'
9360
- };
9361
- const SEARCH_FIELDS = {
9362
- ALL_FIELDS: 'allFields',
9363
- NAME: 'name',
9364
- EMAIL: 'email'
9365
- };
9366
-
9367
- var messages$u = defineMessages({
9368
- allFieldsFilterOption: {
9369
- id: 'BusinessUnitAssociatesListSearch.filterOption.allFields',
9370
- description: 'Label for the filter option all fields',
9371
- defaultMessage: 'All fields'
9372
- },
9373
- allFieldsFilterPlaceholder: {
9374
- id: 'BusinessUnitAssociatesListSearch.filterPlaceholder.allFields',
9375
- description: 'Label for the searchbar placeholder for all fields option',
9376
- defaultMessage: 'Search by name or email'
9377
- },
9378
- emailFilterOption: {
9379
- id: 'BusinessUnitAssociatesListSearch.filterOption.email',
9380
- description: 'Label for the filter option email',
9381
- defaultMessage: 'Email'
9382
- },
9383
- emailFilterPlaceholder: {
9384
- id: 'BusinessUnitAssociatesListSearch.filterPlaceholder.email',
9385
- description: 'Label for the searchbar placeholder for all fields option',
9386
- defaultMessage: 'Search by email'
9387
- },
9388
- nameFilterOption: {
9389
- id: 'BusinessUnitAssociatesListSearch.filterOption.name',
9390
- description: 'Label for the filter option name',
9391
- defaultMessage: 'Name'
9392
- },
9393
- nameFilterPlaceholder: {
9394
- id: 'BusinessUnitAssociatesListSearch.filterPlaceholder.name',
9395
- description: 'Label for the searchbar placeholder for name option',
9396
- defaultMessage: 'Search by name'
9397
- }
9398
- });
9399
-
9400
- 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; }
9401
- function _objectSpread$B(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys$B(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys$B(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9402
- const BusinessUnitAssociatesSearchbar = props => {
9403
- const intl = useIntl();
9404
- const searchOptions = useMemo(() => [{
9405
- value: SEARCH_FIELDS.ALL_FIELDS,
9406
- label: intl.formatMessage(messages$u["".concat(SEARCH_FIELDS.ALL_FIELDS, "FilterOption")])
9407
- }, {
9408
- value: SEARCH_FIELDS.NAME,
9409
- label: intl.formatMessage(messages$u["".concat(SEARCH_FIELDS.NAME, "FilterOption")])
9410
- }, {
9411
- value: SEARCH_FIELDS.EMAIL,
9412
- label: intl.formatMessage(messages$u["".concat(SEARCH_FIELDS.EMAIL, "FilterOption")])
9413
- }], [intl]);
9414
- const seachPlaceholderMessages = useMemo(() => ({
9415
- [SEARCH_FIELDS.ALL_FIELDS]: intl.formatMessage(messages$u["".concat(SEARCH_FIELDS.ALL_FIELDS, "FilterPlaceholder")]),
9416
- [SEARCH_FIELDS.EMAIL]: intl.formatMessage(messages$u["".concat(SEARCH_FIELDS.EMAIL, "FilterPlaceholder")]),
9417
- [SEARCH_FIELDS.NAME]: intl.formatMessage(messages$u["".concat(SEARCH_FIELDS.NAME, "FilterPlaceholder")])
9418
- }), [intl]);
9419
- const _useState = useState({
9420
- option: SEARCH_FIELDS.ALL_FIELDS,
9421
- text: ''
9422
- }),
9423
- _useState2 = _slicedToArray(_useState, 2),
9424
- searchValue = _useState2[0],
9425
- setSearchValue = _useState2[1];
9426
- return jsx(SelectableSearchInput, {
9427
- horizontalConstraint: 15,
9428
- isDisabled: props.isDisabled,
9429
- onChange: event => {
9430
- var _context;
9431
- if (_endsWithInstanceProperty(_context = event.target.id).call(_context, 'dropdown')) {
9432
- setSearchValue(_objectSpread$B(_objectSpread$B({}, searchValue), {}, {
9433
- option: event.target.value
9434
- }));
9435
- } else {
9436
- setSearchValue(_objectSpread$B(_objectSpread$B({}, searchValue), {}, {
9437
- text: event.target.value
9438
- }));
9439
- }
9440
- },
9441
- onReset: () => {
9442
- setSearchValue({
9443
- option: SEARCH_FIELDS.ALL_FIELDS,
9444
- text: ''
9445
- });
9446
- props.onSubmit({
9447
- option: SEARCH_FIELDS.ALL_FIELDS,
9448
- text: ''
9449
- });
9450
- },
9451
- onSubmit: props.onSubmit,
9452
- options: searchOptions,
9453
- placeholder: seachPlaceholderMessages[searchValue.option],
9454
- value: searchValue
9455
- });
9456
- };
9457
- BusinessUnitAssociatesSearchbar.displayName = 'BusinessUnitAssociatesSearchbar';
9458
-
9459
- var messages$t = defineMessages({
9460
- addAnAssociate: {
9461
- id: 'Shared.BusinessUnitAssociates.EmptyListMessage.addAnAssociate',
9462
- description: 'The label for add an associate link button',
9463
- defaultMessage: 'Add an associate'
9464
- },
9465
- noAssociates: {
9466
- id: 'Shared.BusinessUnitAssociates.EmptyListMessage.noAssociates',
9467
- description: 'The message displayed when there are no associates available',
9468
- defaultMessage: 'There are no associates.'
9469
- }
9470
- });
9471
-
9472
- const EmptyListMessage = props => {
9473
- const intl = useIntl();
9474
- return jsxs(Spacings.Inset, {
9475
- scale: "xs",
9476
- children: [jsxs(Spacings.Stack, {
9477
- scale: "l",
9478
- children: [jsx(Divider, {
9479
- size: "m"
9480
- }), jsx(Text.Body, {
9481
- intlMessage: messages$t.noAssociates
9482
- })]
9483
- }), jsx(FlatButton, {
9484
- isDisabled: !props.canManageBusinessUnits,
9485
- label: intl.formatMessage(messages$t.addAnAssociate),
9486
- onClick: props.onAddAssociateClick,
9487
- tone: "primary"
9488
- })]
9489
- });
9490
- };
9491
- EmptyListMessage.displayName = 'EmptyListMessage';
9492
-
9493
- var messages$s = defineMessages({
9494
- noResultsTitle: {
9495
- id: 'Shared.BusinessUnitAssociates.emptySearchResultsMessage.noResultsTitle',
9496
- description: 'Message for no search result for customers.',
9497
- defaultMessage: 'There are no results that match your search and/or filter combination.'
9498
- },
9499
- noResultsSuggestionsTitle: {
9500
- id: 'Shared.BusinessUnitAssociates.emptySearchResultsMessage.noResultsSuggestionsTitle',
9501
- description: 'Suggestions title',
9502
- defaultMessage: 'Suggestions:'
9503
- },
9504
- noResultsSuggestion1: {
9505
- id: 'Shared.BusinessUnitAssociates.emptySearchResultsMessage.noResultsSuggestion1',
9506
- description: 'One of suggestions when no results are found.',
9507
- defaultMessage: 'Make sure to select the search field in the dropdown next to the search input.'
9508
- },
9509
- noResultsSuggestion2: {
9510
- id: 'Shared.BusinessUnitAssociates.emptySearchResultsMessage.noResultsSuggestion2',
9511
- description: 'One of suggestions when no results are found.',
9512
- defaultMessage: 'Check the spelling, search by entering the exact value.'
9513
- },
9514
- noResultsSuggestion3: {
9515
- id: 'Shared.BusinessUnitAssociates.emptySearchResultsMessage.noResultsSuggestion3',
9516
- description: 'One of suggestions when no results are found.',
9517
- defaultMessage: 'Use the filter to search for further values.'
9518
- }
9519
- });
9520
-
9521
- const EmptySearchResultsMessage = () => jsx(Spacings.Inset, {
9522
- scale: "xs",
9523
- children: jsxs(Spacings.Stack, {
9524
- scale: "s",
9525
- children: [jsx(Text.Body, {
9526
- tone: "secondary",
9527
- intlMessage: messages$s.noResultsTitle,
9528
- isBold: true
9529
- }), jsx(Text.Body, {
9530
- tone: "secondary",
9531
- intlMessage: messages$s.noResultsSuggestionsTitle
9532
- }), jsxs("ul", {
9533
- children: [jsx("li", {
9534
- children: jsx(Text.Body, {
9535
- intlMessage: messages$s.noResultsSuggestion1,
9536
- tone: "secondary"
9537
- })
9538
- }), jsx("li", {
9539
- children: jsx(Text.Body, {
9540
- intlMessage: messages$s.noResultsSuggestion2,
9541
- tone: "secondary"
9542
- })
9543
- }), jsx("li", {
9544
- children: jsx(Text.Body, {
9545
- intlMessage: messages$s.noResultsSuggestion3,
9546
- tone: "secondary"
9547
- })
9548
- })]
9549
- })]
9550
- })
9551
- });
9552
- EmptySearchResultsMessage.displayName = 'EmptySearchResultsMessage';
9553
-
9554
- const filterByAllFields = (associates, searchValue) => {
9555
- const searchTextTerms = searchValue.text.toLowerCase().split(' ');
9556
- return _filterInstanceProperty(associates).call(associates, associate => {
9557
- return _someInstanceProperty(searchTextTerms).call(searchTextTerms, term => {
9558
- var _context, _context2, _context3;
9559
- return _includesInstanceProperty(_context = associate.customer.firstName.toLowerCase()).call(_context, term) || _includesInstanceProperty(_context2 = associate.customer.lastName.toLowerCase()).call(_context2, term) || _includesInstanceProperty(_context3 = associate.customer.email.toLowerCase()).call(_context3, term);
9560
- });
9561
- });
9562
- };
9563
- const filterByEmail = (associates, searchValue) => {
9564
- const searchTextTerms = searchValue.text.toLowerCase().split(' ');
9565
- return _filterInstanceProperty(associates).call(associates, associate => _someInstanceProperty(searchTextTerms).call(searchTextTerms, term => {
9566
- var _context4;
9567
- return _includesInstanceProperty(_context4 = associate.customer.email.toLowerCase()).call(_context4, term);
9568
- }));
9569
- };
9570
- const filterByName = (associates, searchValue) => {
9571
- const searchTextTerms = searchValue.text.toLowerCase().split(' ');
9572
- return _filterInstanceProperty(associates).call(associates, associate => {
9573
- return _someInstanceProperty(searchTextTerms).call(searchTextTerms, term => {
9574
- var _context5, _context6;
9575
- return _includesInstanceProperty(_context5 = associate.customer.firstName.toLowerCase()).call(_context5, term) || _includesInstanceProperty(_context6 = associate.customer.lastName.toLowerCase()).call(_context6, term);
9576
- });
9577
- });
9578
- };
9579
- const FILTER_FUNCTIONS = {
9580
- [SEARCH_FIELDS.ALL_FIELDS]: filterByAllFields,
9581
- [SEARCH_FIELDS.EMAIL]: filterByEmail,
9582
- [SEARCH_FIELDS.NAME]: filterByName
9583
- };
9584
- const filterAssociates = (associates, searchValue) => FILTER_FUNCTIONS[searchValue.option](associates, searchValue);
9585
-
9586
- const mergeOverwritten = (inherited, explicit) => {
9587
- var _context;
9588
- const onlyExplicit = differenceBy(explicit.associateRoleAssignments, inherited.associateRoleAssignments, 'associateRole.key') || [];
9589
- const onlyInherited = differenceBy(inherited.associateRoleAssignments, explicit.associateRoleAssignments, 'associateRole.key') || [];
9590
- const overwritten = intersectionBy(inherited.associateRoleAssignments, explicit.associateRoleAssignments, 'associateRole.key') || [];
9591
- const allExplicit = _mapInstanceProperty(_context = _concatInstanceProperty(onlyExplicit).call(onlyExplicit, overwritten)).call(_context, _ref => {
9592
- let associateRole = _ref.associateRole;
9593
- return {
9594
- name: associateRole.name || associateRole.key,
9595
- source: ASSOCIATE_ROLE_SOURCES.EXPLICIT
9596
- };
9597
- });
9598
- const allInherited = _mapInstanceProperty(onlyInherited).call(onlyInherited, _ref2 => {
9599
- let associateRole = _ref2.associateRole;
9600
- return {
9601
- name: associateRole.name || associateRole.key,
9602
- source: ASSOCIATE_ROLE_SOURCES.INHERITED
9603
- };
9604
- });
9605
- return {
9606
- id: inherited.customer.id,
9607
- customer: inherited.customer,
9608
- roles: _concatInstanceProperty(allExplicit).call(allExplicit, allInherited)
9609
- };
9610
- };
9611
- const mergeAssociates = businessUnit => {
9612
- var _businessUnit$associa, _businessUnit$inherit, _context2;
9613
- const associates = businessUnit === null || businessUnit === void 0 ? void 0 : (_businessUnit$associa = businessUnit.associates) === null || _businessUnit$associa === void 0 ? void 0 : _filterInstanceProperty(_businessUnit$associa).call(_businessUnit$associa, associate => associate === null || associate === void 0 ? void 0 : associate.customer);
9614
- const inheritedAssociates = businessUnit === null || businessUnit === void 0 ? void 0 : (_businessUnit$inherit = businessUnit.inheritedAssociates) === null || _businessUnit$inherit === void 0 ? void 0 : _filterInstanceProperty(_businessUnit$inherit).call(_businessUnit$inherit, inheritedAssociate => inheritedAssociate === null || inheritedAssociate === void 0 ? void 0 : inheritedAssociate.customer);
9615
- const overwrittenOnExplicit = intersectionBy(associates, inheritedAssociates, 'customer.id') || [];
9616
- const overwrittenOnInherited = intersectionBy(inheritedAssociates, associates, 'customer.id') || [];
9617
- const onlyExplicit = differenceBy(associates, inheritedAssociates, 'customer.id') || [];
9618
- const onlyInherited = differenceBy(inheritedAssociates, associates, 'customer.id') || [];
9619
- const explicit = _mapInstanceProperty(onlyExplicit).call(onlyExplicit, associate => {
9620
- var _associate$associateR;
9621
- return {
9622
- id: associate.customer.id,
9623
- customer: associate.customer,
9624
- roles: (_associate$associateR = associate.associateRoleAssignments) === null || _associate$associateR === void 0 ? void 0 : _mapInstanceProperty(_associate$associateR).call(_associate$associateR, _ref3 => {
9625
- let associateRole = _ref3.associateRole;
9626
- return {
9627
- name: associateRole.name || associateRole.key,
9628
- source: ASSOCIATE_ROLE_SOURCES.EXPLICIT
9629
- };
9630
- })
9631
- };
9632
- });
9633
- const inherited = _mapInstanceProperty(onlyInherited).call(onlyInherited, associate => {
9634
- var _associate$associateR2;
9635
- return {
9636
- id: associate.customer.id,
9637
- customer: associate.customer,
9638
- roles: (_associate$associateR2 = associate.associateRoleAssignments) === null || _associate$associateR2 === void 0 ? void 0 : _mapInstanceProperty(_associate$associateR2).call(_associate$associateR2, _ref4 => {
9639
- let associateRole = _ref4.associateRole;
9640
- return {
9641
- name: associateRole.name || associateRole.key,
9642
- source: ASSOCIATE_ROLE_SOURCES.INHERITED
9643
- };
9644
- })
9645
- };
9646
- });
9647
- const overwritten = _mapInstanceProperty(overwrittenOnInherited).call(overwrittenOnInherited, inherited => {
9648
- const explicit = _findInstanceProperty(overwrittenOnExplicit).call(overwrittenOnExplicit, explicitAssociate => explicitAssociate.customer.id === inherited.customer.id);
9649
- return mergeOverwritten(inherited, explicit);
9650
- });
9651
- return _concatInstanceProperty(_context2 = _concatInstanceProperty(explicit).call(explicit, inherited)).call(_context2, overwritten);
8858
+ renderSelectInputOptionValuesByField: props.renderSelectInputOptionValuesByField,
8859
+ lowerStoresLimit: props.lowerStoresLimit,
8860
+ upperStoresLimit: props.upperStoresLimit,
8861
+ allAccessibleStoreKeysThroughDataFencePermissions: props.allAccessibleStoreKeysThroughDataFencePermissions,
8862
+ shouldFetchProductSelections: props.shouldFetchProductSelections,
8863
+ controlShouldRenderValue: props.controlShouldRenderValue
8864
+ }, filterDataAttributes$1(props)), filterAriaAttributes(props)));
8865
+ };
8866
+ StoreSelectInput.displayName = 'StoreSelectInput';
8867
+ StoreSelectInput.defaultProps = {
8868
+ lowerStoresLimit: LOWER_STORES_LIMIT,
8869
+ upperStoresLimit: UPPER_STORES_LIMIT,
8870
+ renderSelectInputOptionValuesByField: 'id',
8871
+ optionType: 'double-property',
8872
+ shouldFetchProductSelections: false
9652
8873
  };
9653
8874
 
8875
+ // Keys have to match enum values on core ws
8876
+ // https://github.com/sphereio/sphere-backend/blob/master/ws/core/users.md#-businessrole
8877
+ const businessRoleKeys = ['ExecutiveManagement', 'Architect', 'Engineer', 'ProductProjectManagerOrOwner', 'Marketing', 'CustomerService', 'SalesAndECommerceManager', 'Other'];
8878
+
9654
8879
  var messages$r = defineMessages({
9655
- columnFirstName: {
9656
- id: 'Shared.BusinessUnitAssociates.columnFirstName',
9657
- description: 'The column label (First name)',
9658
- defaultMessage: 'First name'
9659
- },
9660
- columnLastName: {
9661
- id: 'Shared.BusinessUnitAssociates.columnLastName',
9662
- description: 'The column label (Last name)',
9663
- defaultMessage: 'Last name'
9664
- },
9665
- columnRole: {
9666
- id: 'Shared.BusinessUnitAssociates.columnRole',
9667
- description: 'The column label (Role)',
9668
- defaultMessage: 'Role'
9669
- },
9670
- columnEmail: {
9671
- id: 'Shared.BusinessUnitAssociates.columnEmail',
9672
- description: 'The column label (Email)',
9673
- defaultMessage: 'Email'
9674
- },
9675
- companyUnitType: {
9676
- id: 'Shared.BusinessUnitAssociates.unitType.company',
9677
- description: 'Label for the business unit type company',
9678
- defaultMessage: 'Company'
9679
- },
9680
- divisionUnitType: {
9681
- id: 'Shared.BusinessUnitAssociates.unitType.division',
9682
- description: 'Label for the business unit type division',
9683
- defaultMessage: 'Division'
9684
- },
9685
- labelExplicit: {
9686
- id: 'Shared.BusinessUnitAssociates.labelExplicit',
9687
- description: 'Label for explicit roles',
9688
- defaultMessage: 'Explicit'
9689
- },
9690
- labelInherited: {
9691
- id: 'Shared.BusinessUnitAssociates.labelInherited',
9692
- description: 'Label for explicit roles',
9693
- defaultMessage: 'Inherited'
9694
- },
9695
- roleEnumAdmin: {
9696
- id: 'Shared.BusinessUnitAssociates.associateRole.admin',
9697
- description: 'Label for the business unit associate rol Admin',
9698
- defaultMessage: 'Admin'
9699
- },
9700
- roleEnumBuyer: {
9701
- id: 'Shared.BusinessUnitAssociates.associateRole.buyer',
9702
- description: 'Label for the business unit associate rol Buyer',
9703
- defaultMessage: 'Buyer'
9704
- },
9705
- searchResultsCount: {
9706
- id: 'Shared.BusinessUnitAssociates.searchResultsCount',
9707
- description: 'Total results coming from search',
9708
- defaultMessage: '{totalResults} results'
8880
+ ExecutiveManagement: {
8881
+ id: 'Shared.businessRoles.executiveManagement',
8882
+ description: 'The label for one of the selectable business roles',
8883
+ defaultMessage: 'Executive Management'
8884
+ },
8885
+ Architect: {
8886
+ id: 'Shared.businessRoles.architect',
8887
+ description: 'The label for one of the selectable business roles',
8888
+ defaultMessage: 'Architect'
8889
+ },
8890
+ Engineer: {
8891
+ id: 'Shared.businessRoles.engineer',
8892
+ description: 'The label for one of the selectable business roles',
8893
+ defaultMessage: 'Engineer'
8894
+ },
8895
+ ProductProjectManagerOrOwner: {
8896
+ id: 'Shared.businessRoles.productProjectManagerOwner',
8897
+ description: 'The label for one of the selectable business roles',
8898
+ defaultMessage: 'Product/Project Manager or Owner'
8899
+ },
8900
+ Marketing: {
8901
+ id: 'Shared.businessRoles.marketing',
8902
+ description: 'The label for one of the selectable business roles',
8903
+ defaultMessage: 'Marketing'
8904
+ },
8905
+ CustomerService: {
8906
+ id: 'Shared.businessRoles.customerService',
8907
+ description: 'The label for one of the selectable business roles',
8908
+ defaultMessage: 'Customer Service'
8909
+ },
8910
+ SalesAndECommerceManager: {
8911
+ id: 'Shared.businessRoles.salesEcommerceManager',
8912
+ description: 'The label for one of the selectable business roles',
8913
+ defaultMessage: 'Sales/E-commerce Manager'
8914
+ },
8915
+ Other: {
8916
+ id: 'Shared.businessRoles.other',
8917
+ description: 'The label for one of the selectable business roles',
8918
+ defaultMessage: 'Other'
9709
8919
  }
9710
8920
  });
9711
8921
 
9712
- 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; }
9713
- function _objectSpread$A(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys$A(Object(source), !0)).call(_context3, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys$A(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
9714
- const BusinessUnitAssociatesListView = props => {
9715
- var _props$values, _props$values$associa, _props$values2, _props$values2$inheri;
9716
- const intl = useIntl();
9717
- const businessUnitsAssociateRolesFeatureEnabled = useFeatureToggle(ENABLE_BUSINESS_UNITS_ASSOCIATE_ROLES);
9718
- const totalAssociates = ((_props$values = _valuesInstanceProperty(props)) === null || _props$values === void 0 ? void 0 : (_props$values$associa = _props$values.associates) === null || _props$values$associa === void 0 ? void 0 : _props$values$associa.length) + (((_props$values2 = _valuesInstanceProperty(props)) === null || _props$values2 === void 0 ? void 0 : (_props$values2$inheri = _props$values2.inheritedAssociates) === null || _props$values2$inheri === void 0 ? void 0 : _props$values2$inheri.length) || 0);
9719
- const isBusinessUnitCreation = !isUUID(props.businessUnitId);
9720
- const _usePaginationState = usePaginationState({
9721
- perPage: 20
9722
- }),
9723
- page = _usePaginationState.page,
9724
- perPage = _usePaginationState.perPage;
9725
- const _useState = useState({
9726
- option: SEARCH_FIELDS.ALL_FIELDS,
9727
- text: ''
9728
- }),
9729
- _useState2 = _slicedToArray(_useState, 2),
9730
- searchValue = _useState2[0],
9731
- setSearchValue = _useState2[1];
9732
- const associates = useMemo(() => {
9733
- var _props$values3, _context, _context2;
9734
- return businessUnitsAssociateRolesFeatureEnabled ? mergeAssociates(_valuesInstanceProperty(props)) : (_props$values3 = _valuesInstanceProperty(props)) === null || _props$values3 === void 0 ? void 0 : _mapInstanceProperty(_context = _filterInstanceProperty(_context2 = _props$values3.associates).call(_context2, associate => associate === null || associate === void 0 ? void 0 : associate.customer)).call(_context, associate => _objectSpread$A(_objectSpread$A({}, associate), {}, {
9735
- id: associate.customer.id
9736
- }));
9737
- }, [_valuesInstanceProperty(props), businessUnitsAssociateRolesFeatureEnabled]);
9738
- const tableColumns = useMemo(() => [{
9739
- key: 'firstName',
9740
- label: jsx(FormattedMessage, _objectSpread$A({}, messages$r.columnFirstName)),
9741
- shouldIgnoreRowClick: isBusinessUnitCreation
9742
- }, {
9743
- key: 'lastName',
9744
- label: jsx(FormattedMessage, _objectSpread$A({}, messages$r.columnLastName)),
9745
- shouldIgnoreRowClick: isBusinessUnitCreation
9746
- }, {
9747
- key: 'roles',
9748
- label: jsx(FormattedMessage, _objectSpread$A({}, messages$r.columnRole)),
9749
- shouldIgnoreRowClick: isBusinessUnitCreation,
9750
- width: 'max-content'
9751
- }, {
9752
- key: 'email',
9753
- label: jsx(FormattedMessage, _objectSpread$A({}, messages$r.columnEmail)),
9754
- shouldIgnoreRowClick: isBusinessUnitCreation
9755
- }], [isBusinessUnitCreation]);
9756
- const filteredAssociates = useMemo(() => {
9757
- return filterAssociates(associates, searchValue);
9758
- }, [associates, searchValue]);
9759
- const associatesToShow = useMemo(() => {
9760
- const from = (page.value - 1) * perPage.value;
9761
- const to = from + perPage.value;
9762
- return _sliceInstanceProperty(filteredAssociates).call(filteredAssociates, from, to);
9763
- }, [filteredAssociates, perPage.value, page.value]);
9764
- const renderAssociate = (associate, _ref) => {
9765
- let columnKey = _ref.key;
9766
- let formattedValue;
9767
- if (!(associate !== null && associate !== void 0 && associate.customer)) return null;
9768
- switch (columnKey) {
9769
- case 'roles':
9770
- const roles = associate[columnKey];
9771
- formattedValue = jsx(Fragment, {
9772
- children: (roles === null || roles === void 0 ? void 0 : roles.length) > 0 ? businessUnitsAssociateRolesFeatureEnabled ? jsx(Grid, {
9773
- gridGap: customProperties.spacingM,
9774
- gridTemplateColumns: "repeat(2, 1fr)",
9775
- children: roles === null || roles === void 0 ? void 0 : _mapInstanceProperty(roles).call(roles, (associateRole, index) => {
9776
- return jsxs(Fragment, {
9777
- children: [jsx(Grid.Item, {
9778
- children: jsx(Text.Detail, {
9779
- children: associateRole.name
9780
- }, associateRole.name)
9781
- }, "role-grid-item-".concat(index)), jsx(Grid.Item, {
9782
- children: jsx(Stamp, {
9783
- isCondensed: true,
9784
- label: intl.formatMessage(messages$r["label".concat(associateRole.source)]),
9785
- tone: associateRole.source === ASSOCIATE_ROLE_SOURCES.EXPLICIT ? 'information' : 'secondary'
9786
- })
9787
- }, "".concat(associateRole.name, "-source"))]
9788
- });
9789
- })
9790
- }) : jsx(Spacings.Inline, {
9791
- children: roles === null || roles === void 0 ? void 0 : _mapInstanceProperty(roles).call(roles, role => jsx(Stamp, {
9792
- isCondensed: true,
9793
- label: intl.formatMessage(messages$r["roleEnum".concat(role)]),
9794
- tone: "primary"
9795
- }, role))
9796
- }) : NO_VALUE_FALLBACK
9797
- });
9798
- break;
9799
- default:
9800
- formattedValue = associate.customer[columnKey] || NO_VALUE_FALLBACK;
9801
- }
9802
- return safelyAddFallback(formattedValue);
9803
- };
9804
- return jsx(PageContentFull, {
9805
- children: jsx(Spacings.Stack, {
9806
- scale: "m",
9807
- children: totalAssociates ? jsxs(Spacings.Stack, {
9808
- scale: "s",
9809
- children: [jsxs(Spacings.Inline, {
9810
- alignItems: "center",
9811
- scale: "l",
9812
- children: [jsx(BusinessUnitAssociatesSearchbar, {
9813
- onSubmit: setSearchValue
9814
- }), searchValue.text.length > 0 && jsx(Text.Body, {
9815
- intlMessage: _objectSpread$A(_objectSpread$A({}, messages$r.searchResultsCount), {}, {
9816
- values: {
9817
- totalResults: filteredAssociates.length
9818
- }
9819
- })
9820
- })]
9821
- }), filteredAssociates.length ? jsxs(Spacings.Stack, {
9822
- scale: "xxxl",
9823
- children: [jsx(Constraints.Horizontal, {
9824
- max: "scale",
9825
- children: jsx(DataTable, {
9826
- columns: tableColumns,
9827
- itemRenderer: renderAssociate,
9828
- maxHeight: "calc(100vh - (".concat(customProperties.constraint7, " + 240px))"),
9829
- onRowClick: (_, rowIndex) => {
9830
- var _associate$customer;
9831
- const associate = associates[rowIndex];
9832
- if (isBusinessUnitCreation || !(associate !== null && associate !== void 0 && associate.id) || !(associate !== null && associate !== void 0 && (_associate$customer = associate.customer) !== null && _associate$customer !== void 0 && _associate$customer.id)) return;
9833
- props.onAssociateRowClick({
9834
- customerId: associate.customer.id
9835
- });
9836
- },
9837
- rows: associatesToShow,
9838
- wrapHeaderLabels: false
9839
- })
9840
- }), jsx(Pagination, {
9841
- onPageChange: page.onChange,
9842
- onPerPageChange: perPage.onChange,
9843
- page: page.value,
9844
- perPage: perPage.value,
9845
- perPageRange: "m",
9846
- totalItems: filteredAssociates.length
9847
- })]
9848
- }) : jsx(EmptySearchResultsMessage, {})]
9849
- }) : jsx(EmptyListMessage, {
9850
- canManageBusinessUnits: props.canManageBusinessUnits,
9851
- onAddAssociateClick: props.onAddAssociateClick
9852
- })
9853
- })
9854
- });
9855
- };
9856
- BusinessUnitAssociatesListView.displayName = 'BusinessUnitAssociatesListView';
9857
-
9858
- var BusinessUnitAssociatesQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "BusinessUnitAssociatesQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "id" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldExcludeRoles" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldExcludeAssociateRoleAssignmentsRoles" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "businessUnit" }, 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: "BusinessUnitAssociatesFragment" }, directives: [] }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "BusinessUnitAssociatesFragment" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "BusinessUnit" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "associates" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "roles" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldExcludeRoles" } } }] }] }, { kind: "Field", name: { kind: "Name", value: "associateRoleAssignments" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldExcludeAssociateRoleAssignmentsRoles" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "associateRole" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "inheritance" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "customer" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "email" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "firstName" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "lastName" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "inheritedAssociates" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "associateRoleAssignments" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "skip" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldExcludeAssociateRoleAssignmentsRoles" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "associateRole" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "key" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "customer" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "email" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "firstName" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "lastName" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "__typename" }, arguments: [], directives: [] }] } }], loc: { start: 0, end: 849, source: { body: "fragment BusinessUnitAssociatesFragment on BusinessUnit {\n id\n associates {\n roles @skip(if: $shouldExcludeRoles)\n associateRoleAssignments\n @skip(if: $shouldExcludeAssociateRoleAssignmentsRoles) {\n associateRole {\n name\n key\n }\n inheritance\n }\n customer {\n id\n email\n firstName\n lastName\n }\n }\n inheritedAssociates {\n associateRoleAssignments\n @skip(if: $shouldExcludeAssociateRoleAssignmentsRoles) {\n associateRole {\n name\n key\n }\n }\n customer {\n id\n email\n firstName\n lastName\n }\n }\n __typename\n}\n\nquery BusinessUnitAssociatesQuery(\n $id: String!\n $shouldExcludeRoles: Boolean!\n $shouldExcludeAssociateRoleAssignmentsRoles: Boolean!\n) {\n businessUnit(id: $id) {\n ...BusinessUnitAssociatesFragment\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
9859
- const useBusinessUnitAssociatesFetcher = _ref => {
9860
- let id = _ref.id,
9861
- shouldExcludeRoles = _ref.shouldExcludeRoles,
9862
- shouldExcludeAssociateRoleAssignmentsRoles = _ref.shouldExcludeAssociateRoleAssignmentsRoles;
9863
- const _useQuery = useQuery$1(BusinessUnitAssociatesQuery, {
9864
- context: {
9865
- target: GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM
9866
- },
9867
- variables: {
9868
- id,
9869
- shouldExcludeRoles,
9870
- shouldExcludeAssociateRoleAssignmentsRoles
9871
- }
9872
- }),
9873
- loading = _useQuery.loading,
9874
- data = _useQuery.data;
9875
- return {
9876
- isLoading: loading,
9877
- businessUnit: data === null || data === void 0 ? void 0 : data.businessUnit
9878
- };
9879
- };
9880
-
9881
- const useBusinessUnitAssociates = _ref => {
9882
- let businessUnitId = _ref.businessUnitId,
9883
- businessUnitsAssociateRolesFeatureEnabled = _ref.businessUnitsAssociateRolesFeatureEnabled;
9884
- const businessUnitAssociatesFetcher = useBusinessUnitAssociatesFetcher({
9885
- id: businessUnitId,
9886
- shouldExcludeRoles: businessUnitsAssociateRolesFeatureEnabled,
9887
- shouldExcludeAssociateRoleAssignmentsRoles: !businessUnitsAssociateRolesFeatureEnabled
9888
- });
9889
- return {
9890
- businessUnitAssociatesFetcher: {
9891
- isLoading: businessUnitAssociatesFetcher.isLoading,
9892
- businessUnit: businessUnitAssociatesFetcher.businessUnit
9893
- }
9894
- };
9895
- };
9896
-
9897
- const BusinessUnitAssociatesList = props => {
9898
- const businessUnitsAssociateRolesFeatureEnabled = useFeatureToggle(ENABLE_BUSINESS_UNITS_ASSOCIATE_ROLES);
9899
- const _useBusinessUnitAssoc = useBusinessUnitAssociates({
9900
- businessUnitId: props.businessUnitId,
9901
- businessUnitsAssociateRolesFeatureEnabled
9902
- }),
9903
- businessUnitAssociatesFetcher = _useBusinessUnitAssoc.businessUnitAssociatesFetcher;
9904
- if (businessUnitAssociatesFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
9905
- return jsx(BusinessUnitAssociatesListView, {
9906
- businessUnitId: props.businessUnitId,
9907
- canManageBusinessUnits: props.canManageBusinessUnits,
9908
- onAddAssociateClick: props.onAddAssociateClick,
9909
- onAssociateRowClick: props.onAssociateRowClick,
9910
- values: businessUnitAssociatesFetcher === null || businessUnitAssociatesFetcher === void 0 ? void 0 : businessUnitAssociatesFetcher.businessUnit
9911
- });
9912
- };
9913
- BusinessUnitAssociatesList.displayName = 'BusinessUnitAssociatesList';
9914
-
9915
8922
  function formatDiscount(discount, currencyCode, intl) {
9916
8923
  var _context;
9917
8924
  if (discount.type === 'relative') return "".concat(discount.permyriad / 100, "%");
@@ -9939,6 +8946,7 @@ const messages$q = defineMessages({
9939
8946
  defaultMessage: 'Please select an option.'
9940
8947
  }
9941
8948
  });
8949
+
9942
8950
  const hasOptionDropdown = type => {
9943
8951
  var _context;
9944
8952
  return _includesInstanceProperty(_context = [FIELD_TYPES.Money, FIELD_TYPES.Number, FIELD_TYPES.Date, FIELD_TYPES.DateTime, FIELD_TYPES.Time]).call(_context, type);
@@ -10006,6 +9014,7 @@ const messages$p = defineMessages({
10006
9014
  defaultMessage: 'Please enter a value for this field.'
10007
9015
  }
10008
9016
  });
9017
+
10009
9018
  function validateFilter$1(_ref, intl) {
10010
9019
  let value = _ref.value,
10011
9020
  type = _ref.type;
@@ -10043,23 +9052,24 @@ const messages$o = defineMessages({
10043
9052
  defaultMessage: 'Please enter the smaller number first.'
10044
9053
  }
10045
9054
  });
9055
+
10046
9056
  function validateFilter(_ref, intl) {
10047
9057
  let value = _ref.value,
10048
9058
  type = _ref.type,
10049
9059
  _ref$allowFloat = _ref.allowFloat,
10050
9060
  allowFloat = _ref$allowFloat === void 0 ? true : _ref$allowFloat;
10051
9061
  if (type !== 'range') {
10052
- if (!allowFloat && !isInteger(value)) return intl.formatMessage(messages$O.integer);
9062
+ if (!allowFloat && !isInteger(value)) return intl.formatMessage(messages$K.integer);
10053
9063
  return null;
10054
9064
  }
10055
9065
 
10056
9066
  // only range types from here
10057
9067
 
10058
9068
  if (!allowFloat && !isInteger(value.from)) return {
10059
- from: intl.formatMessage(messages$O.integer)
9069
+ from: intl.formatMessage(messages$K.integer)
10060
9070
  };
10061
9071
  if (!allowFloat && !isInteger(value.to)) return {
10062
- to: intl.formatMessage(messages$O.integer)
9072
+ to: intl.formatMessage(messages$K.integer)
10063
9073
  };
10064
9074
  if (validateSingleFilter({
10065
9075
  value: value.from
@@ -10366,10 +9376,10 @@ const RESOURCES_WITH_PLATFORM_LIMITS = {
10366
9376
  carts: 'carts'
10367
9377
  };
10368
9378
 
10369
- 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; }
10370
- 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; }
9379
+ 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; }
9380
+ 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; }
10371
9381
  const resourcesWithPlatformLimits = _Object$keys(RESOURCES_WITH_PLATFORM_LIMITS);
10372
- const createQueryVariables = platformLimit => _reduceInstanceProperty(resourcesWithPlatformLimits).call(resourcesWithPlatformLimits, (previousIncludedLimits, nextNameOfLimit) => _objectSpread$z({
9382
+ const createQueryVariables = platformLimit => _reduceInstanceProperty(resourcesWithPlatformLimits).call(resourcesWithPlatformLimits, (previousIncludedLimits, nextNameOfLimit) => _objectSpread$y({
10373
9383
  [camelCase("should include ".concat(nextNameOfLimit))]: platformLimit ? nextNameOfLimit === platformLimit : true
10374
9384
  }, previousIncludedLimits), {});
10375
9385
 
@@ -10459,8 +9469,8 @@ var messages$n = defineMessages({
10459
9469
  }
10460
9470
  });
10461
9471
 
10462
- 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; }
10463
- 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; }
9472
+ 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; }
9473
+ 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; }
10464
9474
  const getCustomerSupportLink$1 = msg => jsx(Link, {
10465
9475
  isExternal: true,
10466
9476
  to: SUPPORT_PORTAL_URL,
@@ -10471,7 +9481,7 @@ const PlatformLimitWarningNotification = _ref => {
10471
9481
  limit = _ref.limit;
10472
9482
  return jsx(ContentNotification, {
10473
9483
  type: "warning",
10474
- children: jsx(FormattedMessage, _objectSpread$y(_objectSpread$y({}, messages$n[resource]), {}, {
9484
+ children: jsx(FormattedMessage, _objectSpread$x(_objectSpread$x({}, messages$n[resource]), {}, {
10475
9485
  values: {
10476
9486
  limit,
10477
9487
  customersupport: getCustomerSupportLink$1
@@ -10512,8 +9522,8 @@ var messages$m = defineMessages({
10512
9522
  }
10513
9523
  });
10514
9524
 
10515
- 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; }
10516
- 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; }
9525
+ 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; }
9526
+ 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; }
10517
9527
  const getCustomerSupportLink = msg => jsx(Link, {
10518
9528
  isExternal: true,
10519
9529
  to: SUPPORT_PORTAL_URL,
@@ -10524,7 +9534,7 @@ const PlatformLimitErrorNotification = _ref => {
10524
9534
  limit = _ref.limit;
10525
9535
  return jsx(ContentNotification, {
10526
9536
  type: "error",
10527
- children: jsx(FormattedMessage, _objectSpread$x(_objectSpread$x({}, messages$m[resource]), {}, {
9537
+ children: jsx(FormattedMessage, _objectSpread$w(_objectSpread$w({}, messages$m[resource]), {}, {
10528
9538
  values: {
10529
9539
  limit,
10530
9540
  customersupport: getCustomerSupportLink
@@ -10542,8 +9552,8 @@ const Notifications = {
10542
9552
  Error: PlatformLimitErrorNotification
10543
9553
  };
10544
9554
 
10545
- 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; }
10546
- 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; }
9555
+ 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; }
9556
+ 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; }
10547
9557
  const PlatformLimitsStatusText = _ref => {
10548
9558
  let intlMessage = _ref.intlMessage,
10549
9559
  children = _ref.children;
@@ -10552,7 +9562,7 @@ const PlatformLimitsStatusText = _ref => {
10552
9562
  children: jsxs(Spacings.Inline, {
10553
9563
  size: "xs",
10554
9564
  children: [jsx("span", {
10555
- children: intlMessage && jsx(FormattedMessage, _objectSpread$w({}, intlMessage))
9565
+ children: intlMessage && jsx(FormattedMessage, _objectSpread$v({}, intlMessage))
10556
9566
  }), jsx("span", {
10557
9567
  children: children
10558
9568
  })]
@@ -10661,11 +9671,11 @@ var messages$l = defineMessages({
10661
9671
  }
10662
9672
  });
10663
9673
 
10664
- 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; }
10665
- 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; }
9674
+ 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; }
9675
+ 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; }
10666
9676
  const PlatformLimitsShippingMethodsTooltip = props => {
10667
9677
  const intl = useIntl();
10668
- return jsx(Tooltip, _objectSpread$v(_objectSpread$v({}, props), {}, {
9678
+ return jsx(Tooltip, _objectSpread$u(_objectSpread$u({}, props), {}, {
10669
9679
  title: intl.formatMessage(messages$l.shippingMethodsPlatformLimitReached)
10670
9680
  }));
10671
9681
  };
@@ -10719,15 +9729,15 @@ const useShippingMethodsLimits = () => {
10719
9729
  };
10720
9730
  };
10721
9731
 
10722
- 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; }
10723
- 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; }
9732
+ 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; }
9733
+ 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; }
10724
9734
  const injectShippingMethodsPlatformLimits = () => WrappedComponent => {
10725
9735
  const WithShippingMethodsPlatformLimits = props => {
10726
9736
  const shippingMethodsPlatformLimits = useShippingMethodsLimits();
10727
9737
  const shippingMethodsProps = {
10728
9738
  platformLimits: shippingMethodsPlatformLimits
10729
9739
  };
10730
- return jsx(WrappedComponent, _objectSpread$u(_objectSpread$u({}, props), shippingMethodsProps));
9740
+ return jsx(WrappedComponent, _objectSpread$t(_objectSpread$t({}, props), shippingMethodsProps));
10731
9741
  };
10732
9742
  WithShippingMethodsPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithShippingMethodsPlatformLimits');
10733
9743
  return WithShippingMethodsPlatformLimits;
@@ -10808,11 +9818,11 @@ var messages$j = defineMessages({
10808
9818
  }
10809
9819
  });
10810
9820
 
10811
- 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; }
10812
- 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; }
9821
+ 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; }
9822
+ 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; }
10813
9823
  const PlatformLimitsTaxCategoriesTooltip = props => {
10814
9824
  const intl = useIntl();
10815
- return jsx(Tooltip, _objectSpread$t(_objectSpread$t({}, props), {}, {
9825
+ return jsx(Tooltip, _objectSpread$s(_objectSpread$s({}, props), {}, {
10816
9826
  title: intl.formatMessage(messages$j.taxCategoriesPlatformLimitReached)
10817
9827
  }));
10818
9828
  };
@@ -10866,15 +9876,15 @@ const useTaxCategoriesLimits = () => {
10866
9876
  };
10867
9877
  };
10868
9878
 
10869
- 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; }
10870
- 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; }
9879
+ 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; }
9880
+ 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; }
10871
9881
  const injectTaxCategoriesPlatformLimits = WrappedComponent => {
10872
9882
  const WithTaxCategoriesPlatformLimits = props => {
10873
9883
  const taxCategoriesPlatformLimits = useTaxCategoriesLimits();
10874
9884
  const taxCategoriesProps = {
10875
9885
  platformLimits: taxCategoriesPlatformLimits
10876
9886
  };
10877
- return jsx(WrappedComponent, _objectSpread$s(_objectSpread$s({}, props), taxCategoriesProps));
9887
+ return jsx(WrappedComponent, _objectSpread$r(_objectSpread$r({}, props), taxCategoriesProps));
10878
9888
  };
10879
9889
  WithTaxCategoriesPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithTaxCategoriesPlatformLimits');
10880
9890
  return WithTaxCategoriesPlatformLimits;
@@ -10955,11 +9965,11 @@ var messages$h = defineMessages({
10955
9965
  }
10956
9966
  });
10957
9967
 
10958
- 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; }
10959
- 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; }
9968
+ 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; }
9969
+ 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; }
10960
9970
  const PlatformLimitsZonesTooltip = props => {
10961
9971
  const intl = useIntl();
10962
- return jsx(Tooltip, _objectSpread$r(_objectSpread$r({}, props), {}, {
9972
+ return jsx(Tooltip, _objectSpread$q(_objectSpread$q({}, props), {}, {
10963
9973
  title: intl.formatMessage(messages$h.zonesPlatformLimitReached)
10964
9974
  }));
10965
9975
  };
@@ -11013,15 +10023,15 @@ const useZonesLimits = () => {
11013
10023
  };
11014
10024
  };
11015
10025
 
11016
- 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; }
11017
- 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; }
10026
+ 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; }
10027
+ 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; }
11018
10028
  const injectZonesPlatformLimits = () => WrappedComponent => {
11019
10029
  const WithZonesPlatformLimits = props => {
11020
10030
  const zonesPlatformLimits = useZonesLimits();
11021
10031
  const zonesProps = {
11022
10032
  platformLimits: zonesPlatformLimits
11023
10033
  };
11024
- return jsx(WrappedComponent, _objectSpread$q(_objectSpread$q({}, props), zonesProps));
10034
+ return jsx(WrappedComponent, _objectSpread$p(_objectSpread$p({}, props), zonesProps));
11025
10035
  };
11026
10036
  WithZonesPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithZonesPlatformLimits');
11027
10037
  return WithZonesPlatformLimits;
@@ -11115,11 +10125,11 @@ var messages$f = defineMessages({
11115
10125
  }
11116
10126
  });
11117
10127
 
11118
- 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; }
11119
- 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; }
10128
+ 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; }
10129
+ 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; }
11120
10130
  const PlatformLimitsCustomersTooltip = props => {
11121
10131
  const intl = useIntl();
11122
- return jsx(Tooltip, _objectSpread$p(_objectSpread$p({}, props), {}, {
10132
+ return jsx(Tooltip, _objectSpread$o(_objectSpread$o({}, props), {}, {
11123
10133
  title: intl.formatMessage(messages$f.customersPlatformLimitReached)
11124
10134
  }));
11125
10135
  };
@@ -11133,8 +10143,8 @@ var messages$e = defineMessages({
11133
10143
  }
11134
10144
  });
11135
10145
 
11136
- 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; }
11137
- 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; }
10146
+ 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; }
10147
+ 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; }
11138
10148
  var styles$c = {
11139
10149
  "status": "platform-limits-customers-status-module__status___3rXYM"
11140
10150
  };
@@ -11154,7 +10164,7 @@ const PlatformLimitsCustomersStatus = () => {
11154
10164
  children: jsx(Text.Detail, {
11155
10165
  tone: "secondary",
11156
10166
  isInline: true,
11157
- intlMessage: _objectSpread$o(_objectSpread$o({}, messages$e.customersStatus), {}, {
10167
+ intlMessage: _objectSpread$n(_objectSpread$n({}, messages$e.customersStatus), {}, {
11158
10168
  values: {
11159
10169
  current: intl.formatNumber(current),
11160
10170
  limit: intl.formatNumber(limit)
@@ -11178,10 +10188,10 @@ var messages$d = defineMessages({
11178
10188
  }
11179
10189
  });
11180
10190
 
11181
- 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; }
11182
- 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; }
10191
+ 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; }
10192
+ 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; }
11183
10193
  var LimitsReachedErrorGraphic$1 = function LimitsReachedErrorGraphic(props) {
11184
- return jsxs("svg", _objectSpread$n(_objectSpread$n({}, props), {}, {
10194
+ return jsxs("svg", _objectSpread$m(_objectSpread$m({}, props), {}, {
11185
10195
  children: [jsx("defs", {
11186
10196
  children: jsx("path", {
11187
10197
  id: "a",
@@ -11355,15 +10365,15 @@ const useCustomersPlatformLimits = () => {
11355
10365
  };
11356
10366
  };
11357
10367
 
11358
- 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; }
11359
- 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; }
10368
+ 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; }
10369
+ 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; }
11360
10370
  const injectCustomersPlatformLimits = () => WrappedComponent => {
11361
10371
  const WithCustomersPlatformLimits = props => {
11362
10372
  const CustomersPlatformLimits = useCustomersPlatformLimits();
11363
10373
  const customersProps = {
11364
10374
  platformLimits: CustomersPlatformLimits
11365
10375
  };
11366
- return jsx(WrappedComponent, _objectSpread$m(_objectSpread$m({}, props), customersProps));
10376
+ return jsx(WrappedComponent, _objectSpread$l(_objectSpread$l({}, props), customersProps));
11367
10377
  };
11368
10378
  WithCustomersPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithCustomersPlatformLimits');
11369
10379
  return WithCustomersPlatformLimits;
@@ -11457,11 +10467,11 @@ var messages$c = defineMessages({
11457
10467
  }
11458
10468
  });
11459
10469
 
11460
- 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; }
11461
- 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; }
10470
+ 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; }
10471
+ 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; }
11462
10472
  const PlatformLimitsCustomerGroupsTooltip = props => {
11463
10473
  const intl = useIntl();
11464
- return jsx(Tooltip, _objectSpread$l(_objectSpread$l({}, props), {}, {
10474
+ return jsx(Tooltip, _objectSpread$k(_objectSpread$k({}, props), {}, {
11465
10475
  title: intl.formatMessage(messages$c.customerGroupsPlatformLimitReached)
11466
10476
  }));
11467
10477
  };
@@ -11475,8 +10485,8 @@ var messages$b = defineMessages({
11475
10485
  }
11476
10486
  });
11477
10487
 
11478
- 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; }
11479
- 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; }
10488
+ 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; }
10489
+ 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; }
11480
10490
  var styles$a = {
11481
10491
  "status": "platform-limits-customer-groups-status-module__status___6099G"
11482
10492
  };
@@ -11496,7 +10506,7 @@ const PlatformLimitsCustomerGroupsStatus = () => {
11496
10506
  children: jsx(Text.Detail, {
11497
10507
  tone: "secondary",
11498
10508
  isInline: true,
11499
- intlMessage: _objectSpread$k(_objectSpread$k({}, messages$b.customerGroupsStatus), {}, {
10509
+ intlMessage: _objectSpread$j(_objectSpread$j({}, messages$b.customerGroupsStatus), {}, {
11500
10510
  values: {
11501
10511
  current: intl.formatNumber(current),
11502
10512
  limit: intl.formatNumber(limit)
@@ -11520,10 +10530,10 @@ var messages$a = defineMessages({
11520
10530
  }
11521
10531
  });
11522
10532
 
11523
- 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; }
11524
- 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; }
10533
+ 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; }
10534
+ 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; }
11525
10535
  var LimitsReachedErrorGraphic = function LimitsReachedErrorGraphic(props) {
11526
- return jsxs("svg", _objectSpread$j(_objectSpread$j({}, props), {}, {
10536
+ return jsxs("svg", _objectSpread$i(_objectSpread$i({}, props), {}, {
11527
10537
  children: [jsx("defs", {
11528
10538
  children: jsx("path", {
11529
10539
  id: "a",
@@ -11697,15 +10707,15 @@ const useCustomerGroupsPlatformLimits = () => {
11697
10707
  };
11698
10708
  };
11699
10709
 
11700
- 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; }
11701
- 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; }
10710
+ 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; }
10711
+ 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; }
11702
10712
  const injectCustomerGroupsPlatformLimits = () => WrappedComponent => {
11703
10713
  const WithCustomerGroupsPlatformLimits = props => {
11704
10714
  const CustomerGroupsPlatformLimits = useCustomerGroupsPlatformLimits();
11705
10715
  const customersProps = {
11706
10716
  platformLimits: CustomerGroupsPlatformLimits
11707
10717
  };
11708
- return jsx(WrappedComponent, _objectSpread$i(_objectSpread$i({}, props), customersProps));
10718
+ return jsx(WrappedComponent, _objectSpread$h(_objectSpread$h({}, props), customersProps));
11709
10719
  };
11710
10720
  WithCustomerGroupsPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithCustomerGroupsPlatformLimits');
11711
10721
  return WithCustomerGroupsPlatformLimits;
@@ -11798,8 +10808,8 @@ const defaultValue = {
11798
10808
  */
11799
10809
  const PimIndexerContext = /*#__PURE__*/createContext(defaultValue);
11800
10810
 
11801
- 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; }
11802
- 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; }
10811
+ 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; }
10812
+ 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; }
11803
10813
  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); }; }
11804
10814
  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; } }
11805
10815
  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 } } } };
@@ -11975,7 +10985,7 @@ let PimIndexerProvider = /*#__PURE__*/function (_PureComponent) {
11975
10985
  shouldIndexProductTypes: isIndexingProductTypes
11976
10986
  }
11977
10987
  });
11978
- _this.setState(_objectSpread$h(_objectSpread$h({
10988
+ _this.setState(_objectSpread$g(_objectSpread$g({
11979
10989
  isLoading: false,
11980
10990
  isProjectBeingIndexedByPim: true
11981
10991
  }, getIndexingJobIds(indexMutationResult)), {}, {
@@ -12000,7 +11010,7 @@ let PimIndexerProvider = /*#__PURE__*/function (_PureComponent) {
12000
11010
  key: "render",
12001
11011
  value: function render() {
12002
11012
  return jsx(PimIndexerContext.Provider, {
12003
- value: _objectSpread$h(_objectSpread$h({}, this.state), {}, {
11013
+ value: _objectSpread$g(_objectSpread$g({}, this.state), {}, {
12004
11014
  attemptToRefreshProducts: this.attemptToRefreshProducts,
12005
11015
  indexProject: this.indexProject
12006
11016
  }),
@@ -12042,13 +11052,13 @@ let WithPimIndexer = /*#__PURE__*/function (_PureComponent) {
12042
11052
  }(PureComponent);
12043
11053
  WithPimIndexer.displayName = 'WithPimIndexer';
12044
11054
 
12045
- 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; }
12046
- 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; }
11055
+ 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; }
11056
+ 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; }
12047
11057
  var injectPimIndexer = (function () {
12048
11058
  let propName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'pimIndexer';
12049
11059
  return Component => {
12050
11060
  const WrappedComponent = props => jsx(WithPimIndexer, {
12051
- children: pimIndexerProps => jsx(Component, _objectSpread$g(_objectSpread$g({}, props), {}, {
11061
+ children: pimIndexerProps => jsx(Component, _objectSpread$f(_objectSpread$f({}, props), {}, {
12052
11062
  [propName]: pimIndexerProps
12053
11063
  }))
12054
11064
  });
@@ -12130,20 +11140,20 @@ var messages$7 = defineMessages({
12130
11140
  }
12131
11141
  });
12132
11142
 
12133
- 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; }
12134
- 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; }
11143
+ 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; }
11144
+ 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; }
12135
11145
  const MissingValueField = props => jsx(CheckboxInput, {
12136
11146
  name: "missing-value",
12137
11147
  isChecked: props.isChecked,
12138
11148
  onChange: props.onChange,
12139
- children: jsx(FormattedMessage, _objectSpread$f({}, messages$7.label))
11149
+ children: jsx(FormattedMessage, _objectSpread$e({}, messages$7.label))
12140
11150
  });
12141
11151
  MissingValueField.defaultProps = {
12142
11152
  isChecked: false
12143
11153
  };
12144
11154
 
12145
- 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; }
12146
- 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; }
11155
+ 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; }
11156
+ 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; }
12147
11157
  var styles$8 = {
12148
11158
  "button": "button-module__button___1OzVf",
12149
11159
  "cancel": "button-module__cancel___1-jYL button-module__button___1OzVf",
@@ -12177,7 +11187,7 @@ const Button = props => {
12177
11187
 
12178
11188
  // Pass only `data-*` props
12179
11189
  const dataProps = filterDataAttributes(props);
12180
- return jsx("button", _objectSpread$e(_objectSpread$e({
11190
+ return jsx("button", _objectSpread$d(_objectSpread$d({
12181
11191
  onClick: isDisabled ? null : onClick,
12182
11192
  type: props.type,
12183
11193
  className: classnames(styles$8.button, isDisabled ? styles$8.disabled : null, className),
@@ -12200,8 +11210,8 @@ var messages$6 = defineMessages({
12200
11210
  }
12201
11211
  });
12202
11212
 
12203
- 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; }
12204
- 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; }
11213
+ 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; }
11214
+ 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; }
12205
11215
  var styles$7 = {
12206
11216
  "button": "file-input-module__button___2KypN",
12207
11217
  "input": "file-input-module__input___3MP4D"
@@ -12221,13 +11231,13 @@ const FileInput = props => jsx("label", {
12221
11231
  });
12222
11232
  FileInput.displayName = 'FileInput';
12223
11233
  FileInput.defaultProps = {
12224
- children: jsx(FormattedMessage, _objectSpread$d({}, messages$6.chooseFile)),
11234
+ children: jsx(FormattedMessage, _objectSpread$c({}, messages$6.chooseFile)),
12225
11235
  allowMultiple: false,
12226
11236
  acceptTypes: 'image/png,image/jpeg,image/gif'
12227
11237
  };
12228
11238
 
12229
- 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; }
12230
- 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; }
11239
+ 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; }
11240
+ 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; }
12231
11241
  var styles$6 = {
12232
11242
  "button": "button-module__button___1OzVf",
12233
11243
  "cancel": "button-module__cancel___1-jYL button-module__button___1OzVf",
@@ -12294,7 +11304,7 @@ function ButtonTyped (name, options) {
12294
11304
  }, isAlternativeStyle ? styles$6["".concat(type, "-alt")] : styles$6[type], className);
12295
11305
  const computedLabel = label || defaultLabel;
12296
11306
  const dataAttrs = filterDataAttributes(props);
12297
- return jsx(Button, _objectSpread$c(_objectSpread$c({
11307
+ return jsx(Button, _objectSpread$b(_objectSpread$b({
12298
11308
  onClick: isDisabled ? null : onClick,
12299
11309
  url: url,
12300
11310
  isDisabled: isDisabled,
@@ -12319,8 +11329,6 @@ function ButtonTyped (name, options) {
12319
11329
  return ButtonTyped;
12320
11330
  }
12321
11331
 
12322
- 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; }
12323
- 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; }
12324
11332
  const messages$5 = defineMessages({
12325
11333
  cancel: {
12326
11334
  id: 'Button.cancel',
@@ -12339,23 +11347,21 @@ const messages$5 = defineMessages({
12339
11347
  }
12340
11348
  });
12341
11349
 
12342
- // @redesign cleanup
12343
- // All these exports and corresponding component can be deleted once the design is completed
12344
- // as they are used only in the legacy version of save toolbar component.
12345
-
11350
+ 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; }
11351
+ 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; }
12346
11352
  const ButtonCancel = ButtonTyped('ButtonCancel', {
12347
11353
  type: 'cancel',
12348
- defaultLabel: jsx(FormattedMessage, _objectSpread$b({}, messages$5.cancel)),
11354
+ defaultLabel: jsx(FormattedMessage, _objectSpread$a({}, messages$5.cancel)),
12349
11355
  hasAlternativeStyle: true
12350
11356
  });
12351
11357
  const ButtonConfirm = ButtonTyped('ButtonConfirm', {
12352
11358
  type: 'confirm',
12353
- defaultLabel: jsx(FormattedMessage, _objectSpread$b({}, messages$5.confirm)),
11359
+ defaultLabel: jsx(FormattedMessage, _objectSpread$a({}, messages$5.confirm)),
12354
11360
  hasAlternativeStyle: true
12355
11361
  });
12356
11362
  const ButtonSave = ButtonTyped('ButtonSave', {
12357
11363
  type: 'save',
12358
- defaultLabel: jsx(FormattedMessage, _objectSpread$b({}, messages$5.save)),
11364
+ defaultLabel: jsx(FormattedMessage, _objectSpread$a({}, messages$5.save)),
12359
11365
  hasAlternativeStyle: true
12360
11366
  });
12361
11367
 
@@ -12463,8 +11469,8 @@ const SelectableFieldSearchInput = props => {
12463
11469
  };
12464
11470
  SelectableFieldSearchInput.displayName = 'SelectableFieldSearchInput';
12465
11471
 
12466
- 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; }
12467
- 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; }
11472
+ 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; }
11473
+ 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; }
12468
11474
  const StoreSelectField = props => {
12469
11475
  return jsx(Constraints.Horizontal, {
12470
11476
  max: props.horizontalConstraint,
@@ -12478,7 +11484,7 @@ const StoreSelectField = props => {
12478
11484
  htmlFor: props.id,
12479
11485
  hasRequiredIndicator: props.isRequired,
12480
11486
  isBold: true
12481
- }), jsx(StoreSelectInput, _objectSpread$a(_objectSpread$a({
11487
+ }), jsx(StoreSelectInput, _objectSpread$9(_objectSpread$9({
12482
11488
  projectKey: props.projectKey,
12483
11489
  id: props.id,
12484
11490
  name: props.name,
@@ -12504,7 +11510,8 @@ const StoreSelectField = props => {
12504
11510
  renderSelectInputOptionValuesByField: props.renderSelectInputOptionValuesByField,
12505
11511
  lowerStoresLimit: props.lowerStoresLimit,
12506
11512
  upperStoresLimit: props.upperStoresLimit,
12507
- allAccessibleStoreKeysThroughDataFencePermissions: props.allAccessibleStoreKeysThroughDataFencePermissions
11513
+ allAccessibleStoreKeysThroughDataFencePermissions: props.allAccessibleStoreKeysThroughDataFencePermissions,
11514
+ controlShouldRenderValue: props.controlShouldRenderValue
12508
11515
  }, filterDataAttributes$1(props)), filterAriaAttributes(props)))]
12509
11516
  })
12510
11517
  });
@@ -12516,60 +11523,6 @@ StoreSelectField.defaultProps = {
12516
11523
  mappedValueField: 'id'
12517
11524
  };
12518
11525
 
12519
- 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; }
12520
- 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; }
12521
- const BusinessUnitSelectField = props => {
12522
- return jsx(Constraints.Horizontal, {
12523
- max: props.horizontalConstraint,
12524
- children: jsxs(Spacings.Stack, {
12525
- scale: "xs",
12526
- children: [jsx(FieldLabel, {
12527
- title: props.title,
12528
- hint: props.hint,
12529
- description: props.description,
12530
- hintIcon: props.hintIcon,
12531
- htmlFor: props.id,
12532
- hasRequiredIndicator: props.isRequired,
12533
- isBold: props.isBold
12534
- }), jsx(BusinessUnitSelectInput, _objectSpread$9(_objectSpread$9(_objectSpread$9({
12535
- id: props.id,
12536
- name: props.name,
12537
- horizontalConstraint: props.horizontalConstraint,
12538
- value: props.value,
12539
- onChange: props.onChange,
12540
- onBlur: props.onBlur,
12541
- isDisabled: props.isDisabled,
12542
- isReadOnly: props.isReadOnly,
12543
- isClearable: props.isClearable,
12544
- isSearchable: props.isSearchable,
12545
- backspaceRemovesValue: props.backspaceRemovesValue,
12546
- hasError: props.hasError,
12547
- hasWarning: props.hasWarning,
12548
- errors: props.errors,
12549
- renderError: props.renderError,
12550
- touched: props.touched,
12551
- title: props.title,
12552
- maxMenuHeight: props.maxMenuHeight,
12553
- menuPortalTarget: props.menuPortalTarget,
12554
- menuPortalZIndex: props.menuPortalZIndex,
12555
- optionType: props.optionType,
12556
- renderSelectInputOptionValuesByField: props.renderSelectInputOptionValuesByField,
12557
- lowerBusinessUnitsLimit: props.lowerBusinessUnitsLimit,
12558
- upperBusinessUnitsLimit: props.upperBusinessUnitsLimit
12559
- }, filterDataAttributes$1(props)), filterAriaAttributes(props)), {}, {
12560
- where: props.where,
12561
- placeholder: props.placeholder
12562
- }))]
12563
- })
12564
- });
12565
- };
12566
- BusinessUnitSelectField.displayName = 'BusinessUnitSelectField';
12567
- BusinessUnitSelectField.defaultProps = {
12568
- lowerBusinessUnitsLimit: LOWER_BUSINESS_UNITS_LIMIT,
12569
- upperBusinessUnitsLimit: UPPER_BUSINESS_UNITS_LIMIT,
12570
- mappedValueField: 'id'
12571
- };
12572
-
12573
11526
  var _templateObject;
12574
11527
  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; }
12575
11528
  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; }
@@ -12589,7 +11542,7 @@ const validateRequired = value => {
12589
11542
  };
12590
11543
  const VALIDATOR_REQUIRED = {
12591
11544
  name: 'required',
12592
- message: messages$O.required,
11545
+ message: messages$K.required,
12593
11546
  permanent: true,
12594
11547
  validators: {
12595
11548
  change(value) {
@@ -12603,7 +11556,7 @@ const VALIDATOR_REQUIRED = {
12603
11556
  };
12604
11557
  const VALIDATOR_NUMERIC = {
12605
11558
  name: 'numeric',
12606
- message: messages$O.numeric,
11559
+ message: messages$K.numeric,
12607
11560
  permanent: false,
12608
11561
  validators: {
12609
11562
  change: v => {
@@ -12618,7 +11571,7 @@ const VALIDATOR_NUMERIC = {
12618
11571
  };
12619
11572
  const VALIDATOR_INTEGER = {
12620
11573
  name: 'integer',
12621
- message: messages$O.integer,
11574
+ message: messages$K.integer,
12622
11575
  permanent: false,
12623
11576
  validators: {
12624
11577
  change: v => {
@@ -12633,7 +11586,7 @@ const VALIDATOR_INTEGER = {
12633
11586
  };
12634
11587
  ({
12635
11588
  name: 'email',
12636
- message: messages$O.email,
11589
+ message: messages$K.email,
12637
11590
  permanent: false,
12638
11591
  validators: {
12639
11592
  // Note: it's a bit weird to validate it on every change,
@@ -12873,11 +11826,6 @@ const CustomFieldsErrorTextNotification = props => {
12873
11826
  };
12874
11827
  CustomFieldsErrorTextNotification.displayName = 'CustomFieldsErrorTextNotification';
12875
11828
 
12876
- 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; }
12877
- 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; }
12878
- var styles$2 = {
12879
- "label": "label-range-module__label___3Tb0p"
12880
- };
12881
11829
  const messages$2 = defineMessages({
12882
11830
  from: {
12883
11831
  id: 'LabelRange.from',
@@ -12890,6 +11838,12 @@ const messages$2 = defineMessages({
12890
11838
  defaultMessage: 'To'
12891
11839
  }
12892
11840
  });
11841
+
11842
+ 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; }
11843
+ 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; }
11844
+ var styles$2 = {
11845
+ "label": "label-range-module__label___3Tb0p"
11846
+ };
12893
11847
  const LabelRange = _ref => {
12894
11848
  let type = _ref.type;
12895
11849
  return jsx("label", {
@@ -13569,17 +12523,17 @@ function isValidISODateTime(_ref3) {
13569
12523
  }
13570
12524
 
13571
12525
  const validateSingleOptionEnum = (selectedOption, intl) => {
13572
- if (validateSingleFilter(selectedOption)) return intl.formatMessage(messages$O.required);
12526
+ if (validateSingleFilter(selectedOption)) return intl.formatMessage(messages$K.required);
13573
12527
  return null;
13574
12528
  };
13575
12529
  const validateMultiOptionEnum = (selectedOption, intl) => {
13576
- if (validateSingleFilter(selectedOption) || selectedOption.value.length === 0) return intl.formatMessage(messages$O.required);
12530
+ if (validateSingleFilter(selectedOption) || selectedOption.value.length === 0) return intl.formatMessage(messages$K.required);
13577
12531
  return null;
13578
12532
  };
13579
12533
 
13580
12534
  // eslint-disable-next-line import/prefer-default-export
13581
12535
  const validateText = (text, intl) => {
13582
- if (validateSingleFilter(text)) return intl.formatMessage(messages$O.required);
12536
+ if (validateSingleFilter(text)) return intl.formatMessage(messages$K.required);
13583
12537
  return null;
13584
12538
  };
13585
12539
 
@@ -13661,6 +12615,11 @@ const not = function () {
13661
12615
  };
13662
12616
  };
13663
12617
 
12618
+ const safelyAddFallback = function (string) {
12619
+ let fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : NO_VALUE_FALLBACK;
12620
+ return string === '' ? fallback : string !== null && string !== void 0 ? string : fallback;
12621
+ };
12622
+
13664
12623
  var messages = defineMessages({
13665
12624
  booleanAttributeTrue: {
13666
12625
  id: 'Products.ProductList.column.booleanTrue',
@@ -14026,4 +12985,4 @@ function withPendingRequests() {
14026
12985
 
14027
12986
  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 } } } };
14028
12987
 
14029
- export { booleanField as BooleanField, BusinessUnitAssociatesList, BusinessUnitAssociatesListView, BusinessUnitSelectField, BusinessUnitSelectInput, Button, ButtonCancel, ButtonConfirm, ButtonSave, 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$8 as booleanMessages, buildSearchQuery, messages$v as businessRoleMessages, businessRoleKeys as businessRoles, capitalizeFirst, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, createGraphQlUpdateActions, createNextSortDefinition, createReducer, createResourceReducer, handlers$4 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, mapTimeZonesToOptions, minusify, messages$7 as missingValueMessages, nameValuePairsToMap, normalizeProductSettings, not, omitDeep, omitSetsOfSets, or, commonPickerMessages as pickerMessages, handlers as platformLimitsMockHandlers, handlers$5 as productSelectionsFetcherMockHandler, handlers$6 as productSelectionsTotalFetcherMockHandler, range, reorderArrayItems, resolveStatusType, safelyAddFallback, sanitize, searchCategories, messages$J as searchInputMessages, setDisplayName, setToArray, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitVariantAttributesByConstraint, handlers$7 as storesListConnectorMockHandlers, stringToBase64, swapArrayItems, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, handlers$2 as useBusinessUnitsListFetcherMockHandler, useCachedCategoryOptions, useCustomerGroupsPlatformLimits, useCustomersPlatformLimits, useDebouncedPromiseCallback, useFormatLocalizedFieldToString, useLocalizedKeyFallback, usePendingRequests, usePersistedTableConfiguration, usePimIndexer, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, useRoleNotificationEffect, useShippingMethodsLimits as useShippingMethodsPlatformLimits, useStorage, useStoreKeysInDataFences, useStoresListFetcher, useTaxCategoriesLimits as useTaxCategoriesPlatformLimits, handlers$1 as useTotalNumberOfBusinessUnitsFetcherHandlers, useTotalNumberOfStoresFetcher, handlers$3 as useTotalNumberOfStoresFetcherHandlers, validateFilter$2 as validateCustomField, validations as validateCustomFields, validateFilter$1 as validateDate, validateMultiOptionEnum, validateFilter as validateNumber, validateSingleOptionEnum, validateText, validatedInput, messages$O as validationMessages, withPendingRequests, withProps, withRedirectTo, withoutEmptyErrorsByField, wrapDisplayName };
12988
+ export { booleanField as BooleanField, Button, ButtonCancel, ButtonConfirm, ButtonSave, 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$8 as booleanMessages, buildSearchQuery, 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, 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 };