@commercetools-frontend/experimental-components 6.2.1 → 6.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,5 @@
1
1
  import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
2
2
  import { NO_VALUE_FALLBACK, MC_API_PROXY_TARGETS, GRAPHQL_TARGETS, DOMAINS, SUPPORT_PORTAL_URL } from '@commercetools-frontend/constants';
3
- import { LoadingSpinner, Constraints, Spacings, AsyncSelectInput, Text, SearchIcon, Tooltip, AccessibleHidden, SecondaryIconButton, CloseIcon, usePaginationState, useDataTableSortingState, useToggleState, Link, MoneyInput, SearchSelectInput, AsyncSelectField, SelectField, SelectInput, FlatButton, AngleUpIcon, AngleDownIcon, IconButton, BinLinearIcon, PlusBoldIcon, DateInput, DateTimeInput, LocalizedTextInput, LocalizedMultilineTextInput, SecondaryButton, RevertIcon, Grid, customProperties, SubdirectoryArrowIcon, Tag, EditIcon, FieldLabel, WarningIcon, NumberInput, TextInput, MultilineTextInput, TimeInput, SwitcherIcon, ErrorIcon, DragIcon, Card, SearchSelectField, SelectableSearchInput, FieldErrors, CollapsiblePanel, designTokens, ContentNotification, ListIcon, CheckboxInput, SearchTextInput } from '@commercetools-frontend/ui-kit';
4
- import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
5
- import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
6
3
  import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
7
4
  import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/filter';
8
5
  import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
@@ -10,108 +7,110 @@ import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js-stable/inst
10
7
  import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
11
8
  import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/object/define-properties';
12
9
  import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
10
+ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/esm/objectWithoutProperties';
13
11
  import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
14
12
  import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
13
+ import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
14
+ import _reduceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/reduce';
15
+ import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
16
+ import _Object$entries from '@babel/runtime-corejs3/core-js-stable/object/entries';
17
+ import _parseFloat from '@babel/runtime-corejs3/core-js-stable/parse-float';
18
+ import _valuesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/values';
19
+ import isEmpty$3 from 'lodash/isEmpty';
20
+ import omit from 'lodash/omit';
21
+ import pick from 'lodash/pick';
22
+ import { transformLocalizedFieldToLocalizedString, formatLocalizedString, applyTransformedLocalizedFields, transformLocalizedStringToLocalizedField } from '@commercetools-frontend/l10n';
23
+ import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
15
24
  import React, { useMemo, useState, useCallback, useEffect, PureComponent, Component, useRef, createContext, memo, useContext, forwardRef } from 'react';
25
+ import { useApolloClient, useQuery as useQuery$1 } from '@apollo/client';
26
+ import { useQuery, useApolloClient as useApolloClient$1 } from '@apollo/client/react';
16
27
  import { defineMessages, useIntl, injectIntl, FormattedMessage } from 'react-intl';
17
28
  import { useApplicationContext, ApplicationContext, withApplicationContext } from '@commercetools-frontend/application-shell-connectors';
29
+ import { LoadingSpinner, Constraints, Spacings, AsyncSelectInput, Text, SearchIcon, Tooltip, AccessibleHidden, SecondaryIconButton, CloseIcon, usePaginationState, useDataTableSortingState, useToggleState, Link, MoneyInput, SearchSelectInput, AsyncSelectField, SelectField, SelectInput, FlatButton, AngleUpIcon, AngleDownIcon, IconButton, BinLinearIcon, PlusBoldIcon, DateInput, DateTimeInput, LocalizedTextInput, LocalizedMultilineTextInput, SecondaryButton, RevertIcon, Grid, customProperties, SubdirectoryArrowIcon, Tag, EditIcon, FieldLabel, WarningIcon, NumberInput, TextInput, MultilineTextInput, TimeInput, SwitcherIcon, ErrorIcon, DragIcon, Card, SearchSelectField, SelectableSearchInput, FieldErrors, CollapsiblePanel, designTokens, ContentNotification, ListIcon, CheckboxInput, SearchTextInput } from '@commercetools-frontend/ui-kit';
30
+ import _Map from '@babel/runtime-corejs3/core-js-stable/map';
31
+ import _everyInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/every';
32
+ import _Promise from '@babel/runtime-corejs3/core-js-stable/promise';
33
+ import _setTimeout from '@babel/runtime-corejs3/core-js-stable/set-timeout';
34
+ import { deepEqual } from 'fast-equals';
35
+ import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
36
+ import _trimInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/trim';
37
+ import classnames from 'classnames';
38
+ import camelCase from 'lodash/camelCase';
18
39
  import _Reflect$construct from '@babel/runtime-corejs3/core-js-stable/reflect/construct';
19
40
  import _classCallCheck from '@babel/runtime-corejs3/helpers/esm/classCallCheck';
20
41
  import _createClass from '@babel/runtime-corejs3/helpers/esm/createClass';
21
42
  import _possibleConstructorReturn from '@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn';
22
43
  import _getPrototypeOf from '@babel/runtime-corejs3/helpers/esm/getPrototypeOf';
23
44
  import _inherits from '@babel/runtime-corejs3/helpers/esm/inherits';
24
- import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/esm/objectWithoutProperties';
25
- import _toArray from '@babel/runtime-corejs3/helpers/esm/toArray';
26
- import _reverseInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/reverse';
27
- import _sliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/slice';
28
- import _reduceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/reduce';
29
- import { useApolloClient, useQuery as useQuery$1 } from '@apollo/client';
30
- import { useQuery, useApolloClient as useApolloClient$1 } from '@apollo/client/react';
31
- import { useAsyncDispatch, actions } from '@commercetools-frontend/sdk';
32
- import classnames from 'classnames';
33
- import { deepEqual } from 'fast-equals';
34
- import flowRight from 'lodash/flowRight';
35
- import 'react-required-if';
36
- import _setTimeout from '@babel/runtime-corejs3/core-js-stable/set-timeout';
37
- import Textarea from 'react-textarea-autosize';
38
- import { useShowNotification, useShowApiErrorNotification, useOnActionError, useHideAllPageNotifications } from '@commercetools-frontend/actions-global';
39
- import PropTypes from 'prop-types';
40
- import { useModalState, CustomFormModalPage, PageContentNarrow, ConfirmationDialog, InfoDialog } from '@commercetools-frontend/application-components';
41
- import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
42
- import { transformLocalizedFieldToLocalizedString, formatLocalizedString, applyTransformedLocalizedFields, transformLocalizedStringToLocalizedField } from '@commercetools-frontend/l10n';
43
- import _Object$values from '@babel/runtime-corejs3/core-js-stable/object/values';
44
- import { useLazyQuery, useQuery as useQuery$2 } from '@apollo/client/react/hooks';
45
- import { graphql } from 'msw';
46
- import _sortInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/sort';
47
- import _lastIndexOfInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/last-index-of';
48
- import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
49
- import camelCase from 'lodash/camelCase';
50
- import get from 'lodash/get';
51
- import { useFormikContext, Field, Formik, getIn, FastField } from 'formik';
52
- import _Date$now from '@babel/runtime-corejs3/core-js-stable/date/now';
53
- import { useFeatureToggle, useAdapterStatus } from '@commercetools-frontend/application-shell';
54
- import debounce from 'debounce-promise';
55
- import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
56
- import pick from 'lodash/pick';
57
- import oneLine from 'common-tags/lib/oneLine';
58
- import moment from 'moment';
59
45
  import _someInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/some';
46
+ import oneLine from 'common-tags/lib/oneLine';
60
47
  import moment$1 from 'moment-timezone';
48
+ import { useFormikContext, Field, Formik, getIn, FastField } from 'formik';
61
49
  import isNil$1 from 'lodash/isNil';
62
- import { reportErrorToSentry } from '@commercetools-frontend/sentry';
63
- import _valuesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/values';
64
- import _Object$entries from '@babel/runtime-corejs3/core-js-stable/object/entries';
65
- import _parseFloat from '@babel/runtime-corejs3/core-js-stable/parse-float';
66
- import isEmpty$3 from 'lodash/isEmpty';
67
- import omit from 'lodash/omit';
68
- import _Object$freeze from '@babel/runtime-corejs3/core-js-stable/object/freeze';
69
- import originalOmitDeep from 'omit-deep';
70
- import _parseInt from '@babel/runtime-corejs3/core-js-stable/parse-int';
71
- import _Array$isArray from '@babel/runtime-corejs3/core-js-stable/array/is-array';
72
- import _indexOfInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/index-of';
73
- import omitEmpty from 'omit-empty-es';
74
- import _trimInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/trim';
75
- import _Map from '@babel/runtime-corejs3/core-js-stable/map';
76
- import _everyInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/every';
77
- import _Promise from '@babel/runtime-corejs3/core-js-stable/promise';
78
- import keyBy from 'lodash/keyBy';
79
- import { ErrorMessage } from '@commercetools-frontend/ui-kit/';
80
50
  import omitBy from 'lodash/omitBy';
51
+ import _Array$isArray from '@babel/runtime-corejs3/core-js-stable/array/is-array';
52
+ import _sliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/slice';
53
+ import _lastIndexOfInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/last-index-of';
54
+ import _parseInt from '@babel/runtime-corejs3/core-js-stable/parse-int';
81
55
  import merge from 'lodash/merge';
82
56
  import set from 'lodash/set';
83
57
  import times from 'lodash/times';
84
58
  import { v4 } from 'uuid';
59
+ import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
85
60
  import { defaultMemoize } from 'reselect';
86
61
  import _endsWithInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/ends-with';
62
+ import _toArray from '@babel/runtime-corejs3/helpers/esm/toArray';
63
+ import _reverseInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/reverse';
64
+ import debounce from 'debounce-promise';
65
+ import { useAsyncDispatch, actions } from '@commercetools-frontend/sdk';
66
+ import keyBy from 'lodash/keyBy';
67
+ import { useShowNotification, useShowApiErrorNotification, useOnActionError, useHideAllPageNotifications } from '@commercetools-frontend/actions-global';
68
+ import { useModalState, CustomFormModalPage, PageContentNarrow, ConfirmationDialog, InfoDialog } from '@commercetools-frontend/application-components';
69
+ import { useFeatureToggle, useAdapterStatus } from '@commercetools-frontend/application-shell';
70
+ import { ErrorMessage } from '@commercetools-frontend/ui-kit/';
71
+ import PropTypes from 'prop-types';
87
72
  import { css } from '@emotion/react';
88
- import ReactDOM from 'react-dom';
89
73
  import { Draggable, DragDropContext, Droppable } from 'react-beautiful-dnd';
74
+ import ReactDOM from 'react-dom';
75
+ import _indexOfInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/index-of';
90
76
  import { CustomSelectInputOption } from '@commercetools-uikit/select-utils';
91
- import memoize from 'memoize-one';
92
77
  import { filterDataAttributes as filterDataAttributes$1, filterAriaAttributes } from '@commercetools-uikit/utils';
78
+ import 'react-required-if';
79
+ import _Object$values from '@babel/runtime-corejs3/core-js-stable/object/values';
80
+ import _sortInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/sort';
93
81
  import { oneLineTrim } from 'common-tags';
94
82
  import has from 'lodash/has';
95
83
  import warning from 'tiny-warning';
96
- import { graphql as graphql$1, withApollo } from '@apollo/client/react/hoc';
97
- import flatten from 'lodash/flatten';
98
- import uniqBy from 'lodash/uniqBy';
99
- import invariant from 'tiny-invariant';
100
- import hoistNonReactStatics from 'hoist-non-react-statics';
101
- import { connect } from 'react-redux';
102
84
  import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
103
85
  import _Math$trunc from '@babel/runtime-corejs3/core-js-stable/math/trunc';
104
86
  import _Number$isNaN from '@babel/runtime-corejs3/core-js-stable/number/is-nan';
105
87
  import Cleave from 'cleave.js/react';
106
88
  import isFinite from 'lodash/isFinite';
107
89
  import isUndefined from 'lodash/isUndefined';
90
+ import flowRight from 'lodash/flowRight';
91
+ import Textarea from 'react-textarea-autosize';
108
92
  import _Object$assign from '@babel/runtime-corejs3/core-js-stable/object/assign';
109
93
  import _findIndexInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find-index';
110
- import flatMap from 'lodash/flatMap';
94
+ import moment from 'moment';
95
+ import _Object$freeze from '@babel/runtime-corejs3/core-js-stable/object/freeze';
96
+ import originalOmitDeep from 'omit-deep';
111
97
  import compact from 'lodash/compact';
112
98
  import _Set from '@babel/runtime-corejs3/core-js-stable/set';
99
+ import flatMap from 'lodash/flatMap';
113
100
  import '@babel/runtime-corejs3/helpers/get';
101
+ import _Date$now from '@babel/runtime-corejs3/core-js-stable/date/now';
114
102
  import _spliceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/splice';
103
+ import memoize from 'memoize-one';
104
+ import omitEmpty from 'omit-empty-es';
105
+ import { graphql, withApollo } from '@apollo/client/react/hoc';
106
+ import flatten from 'lodash/flatten';
107
+ import uniqBy from 'lodash/uniqBy';
108
+ import invariant from 'tiny-invariant';
109
+ import hoistNonReactStatics from 'hoist-non-react-statics';
110
+ import { reportErrorToSentry } from '@commercetools-frontend/sentry';
111
+ import { useLazyQuery, useQuery as useQuery$2 } from '@apollo/client/react/hooks';
112
+ import { connect } from 'react-redux';
113
+ import get from 'lodash/get';
115
114
 
116
115
  var styles$k = {
117
116
  "loading-container": "centered-loading-spinner-module__loading-container___3_9-h"
@@ -126,6 +125,7 @@ const CenteredLoadingSpinner = () => jsx("div", {
126
125
  children: jsx(LoadingSpinner, {})
127
126
  });
128
127
  CenteredLoadingSpinner.displayName = 'CenteredLoadingSpinner';
128
+ var CenteredLoadingSpinner$1 = CenteredLoadingSpinner;
129
129
 
130
130
  const QUERY_MAX_LIMIT = 500;
131
131
  const SHOW_TOOLTIP_CHARS_COUNT = 40;
@@ -181,7 +181,7 @@ var pickerMessages$1 = defineMessages({
181
181
  }
182
182
  });
183
183
 
184
- var messages$K = defineMessages({
184
+ var messages$Q = defineMessages({
185
185
  noChannelsFound: {
186
186
  id: 'Products.ChannelPickerInput.noChannelsFound',
187
187
  description: 'The message to display when no channels were found',
@@ -242,7 +242,7 @@ const ChannelPickerInput = _ref => {
242
242
  return channel;
243
243
  }, [formatLocalizedFieldToString]);
244
244
  const prefixSearchFields = useMemo(() => [`name.${dataLocale}`, 'key'], [dataLocale]);
245
- const loadOptions = useLoadOptions({
245
+ const loadOptions = useLoadOptions$1({
246
246
  query: GetChannelsQuery,
247
247
  variables,
248
248
  prefixSearchFields
@@ -267,8 +267,8 @@ const ChannelPickerInput = _ref => {
267
267
  setLoadingError(error);
268
268
  onError(error);
269
269
  }), [loadOptions, convertChannelToOption, onError]);
270
- const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
271
- const _useHandlers = useHandlers(onChange),
270
+ const loadOptionsDebounced = useDebouncedPromiseCallback$1(handleLoadOptions, 300);
271
+ const _useHandlers = useHandlers$1(onChange),
272
272
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
273
273
  handleInternalInputChange = _useHandlers2[0],
274
274
  handleChange = _useHandlers2[1];
@@ -281,18 +281,18 @@ const ChannelPickerInput = _ref => {
281
281
  if (isCurrentOptionLoadingFailed) onError(currentOption.error);
282
282
  }, [isCurrentOptionLoadingFailed, onError, currentOption]);
283
283
  const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
284
- const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$K.noChannelsFound), [loadingError, formatMessage]);
284
+ const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$Q.noChannelsFound), [loadingError, formatMessage]);
285
285
  const tooltipTitle = currentOption?.data?.label ?? '';
286
286
  return jsx(Constraints.Horizontal, {
287
287
  max: "scale",
288
288
  children: jsxs(Spacings.Stack, {
289
289
  scale: "xs",
290
- children: [jsx(CustomFieldTooltip, {
290
+ children: [jsx(CustomFieldTooltip$1, {
291
291
  title: tooltipTitle,
292
292
  children: jsx(AsyncSelectInput, {
293
293
  id: name,
294
294
  name: name,
295
- placeholder: placeholder ?? formatMessage(messages$K.placeholder),
295
+ placeholder: placeholder ?? formatMessage(messages$Q.placeholder),
296
296
  loadOptions: loadOptionsDebounced,
297
297
  defaultOptions: true,
298
298
  showOptionGroupDivider: true,
@@ -320,6 +320,7 @@ const ChannelPickerInput = _ref => {
320
320
  });
321
321
  };
322
322
  ChannelPickerInput.displayName = 'ChannelPickerInput';
323
+ var ChannelPickerInput$1 = ChannelPickerInput;
323
324
 
324
325
  function _callSuper$9(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$9() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
325
326
  function _isNativeReflectConstruct$9() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$9 = function () { return !!t; })(); }
@@ -347,7 +348,7 @@ let FormattedDateTime = /*#__PURE__*/function (_PureComponent) {
347
348
  FormattedDateTime.displayName = 'FormattedDateTime';
348
349
  var FormattedDateTime$1 = injectIntl(FormattedDateTime);
349
350
 
350
- var messages$J = defineMessages({
351
+ var messages$P = defineMessages({
351
352
  noProductTypesFound: {
352
353
  id: 'Products.ProductTypePickerInput.noProductTypesFound',
353
354
  description: 'The message to display when no product types were found',
@@ -392,7 +393,7 @@ const ProductTypePickerInput = _ref => {
392
393
  _useState2 = _slicedToArray(_useState, 2),
393
394
  loadingError = _useState2[0],
394
395
  setLoadingError = _useState2[1];
395
- const _useProductTypeOption = useProductTypeOptions({
396
+ const _useProductTypeOption = useProductTypeOptions$1({
396
397
  prefixSearchFields
397
398
  }),
398
399
  loadProductTypes = _useProductTypeOption.loadProductTypes;
@@ -412,8 +413,8 @@ const ProductTypePickerInput = _ref => {
412
413
  setLoadingError(error);
413
414
  onError(error);
414
415
  }), [loadProductTypes, onError]);
415
- const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
416
- const _useHandlers = useHandlers(onChange),
416
+ const loadOptionsDebounced = useDebouncedPromiseCallback$1(handleLoadOptions, 300);
417
+ const _useHandlers = useHandlers$1(onChange),
417
418
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
418
419
  handleInternalInputChange = _useHandlers2[0],
419
420
  handleChange = _useHandlers2[1];
@@ -429,14 +430,14 @@ const ProductTypePickerInput = _ref => {
429
430
  const tooltipTitle = currentOption?.data?.label ?? '';
430
431
  return jsx(Constraints.Horizontal, {
431
432
  max: "scale",
432
- children: currentOption.loading ? jsx(CenteredLoadingSpinner, {}) : jsxs(Spacings.Stack, {
433
+ children: currentOption.loading ? jsx(CenteredLoadingSpinner$1, {}) : jsxs(Spacings.Stack, {
433
434
  scale: "xs",
434
- children: [jsx(CustomFieldTooltip, {
435
+ children: [jsx(CustomFieldTooltip$1, {
435
436
  title: tooltipTitle,
436
437
  children: jsx(AsyncSelectInput, {
437
438
  id: name,
438
439
  name: name,
439
- placeholder: formatMessage(messages$J.placeholder),
440
+ placeholder: formatMessage(messages$P.placeholder),
440
441
  loadOptions: loadOptionsDebounced,
441
442
  defaultOptions: [],
442
443
  isClearable: isClearable,
@@ -449,7 +450,7 @@ const ProductTypePickerInput = _ref => {
449
450
  onInputChange: handleInputChange,
450
451
  onBlur: onBlur,
451
452
  value: currentOption.data,
452
- noOptionsMessage: () => loadingError ? null : formatMessage(messages$J.noProductTypesFound),
453
+ noOptionsMessage: () => loadingError ? null : formatMessage(messages$P.noProductTypesFound),
453
454
  hasError: hasError || isLoadingFailed,
454
455
  menuPortalZIndex: Z_INDEX_DROPDOWN,
455
456
  menuPortalTarget: document.body,
@@ -463,8 +464,9 @@ const ProductTypePickerInput = _ref => {
463
464
  });
464
465
  };
465
466
  ProductTypePickerInput.displayName = 'ProductTypePickerInput';
467
+ var ProductTypePickerInput$1 = ProductTypePickerInput;
466
468
 
467
- var messages$I = defineMessages({
469
+ var messages$O = defineMessages({
468
470
  noStatesFound: {
469
471
  id: 'Products.StatePickerInput.noStatesFound',
470
472
  description: 'The message to display when no states were found',
@@ -511,7 +513,7 @@ const StatePickerInput = _ref => {
511
513
  loadingError = _useState2[0],
512
514
  setLoadingError = _useState2[1];
513
515
  const prefixSearchFields = useMemo(() => [`name.${dataLocale}`, 'key'], [dataLocale]);
514
- const loadOptions = useLoadOptions({
516
+ const loadOptions = useLoadOptions$1({
515
517
  query: GetStatesQuery,
516
518
  variables,
517
519
  prefixSearchFields
@@ -534,8 +536,8 @@ const StatePickerInput = _ref => {
534
536
  setLoadingError(error);
535
537
  onError(error);
536
538
  }), [loadOptions, convertStateToOption, onError]);
537
- const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
538
- const _useHandlers = useHandlers(onChange),
539
+ const loadOptionsDebounced = useDebouncedPromiseCallback$1(handleLoadOptions, 300);
540
+ const _useHandlers = useHandlers$1(onChange),
539
541
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
540
542
  handleInternalInputChange = _useHandlers2[0],
541
543
  handleChange = _useHandlers2[1];
@@ -548,19 +550,19 @@ const StatePickerInput = _ref => {
548
550
  if (isCurrentOptionLoadingFailed) onError(currentOption.error);
549
551
  }, [isCurrentOptionLoadingFailed, onError, currentOption]);
550
552
  const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
551
- const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$I.noStatesFound), [loadingError, formatMessage]);
553
+ const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$O.noStatesFound), [loadingError, formatMessage]);
552
554
  const tooltipTitle = currentOption?.data?.label ?? '';
553
555
  return jsx(Constraints.Horizontal, {
554
556
  max: "scale",
555
- children: currentOption.loading ? jsx(CenteredLoadingSpinner, {}) : jsxs(Spacings.Stack, {
557
+ children: currentOption.loading ? jsx(CenteredLoadingSpinner$1, {}) : jsxs(Spacings.Stack, {
556
558
  scale: "xs",
557
- children: [jsx(CustomFieldTooltip, {
559
+ children: [jsx(CustomFieldTooltip$1, {
558
560
  title: tooltipTitle,
559
561
  children: jsx(AsyncSelectInput, {
560
562
  id: name,
561
563
  name: name,
562
564
  horizontalConstraint: "scale",
563
- placeholder: formatMessage(messages$I.placeholder),
565
+ placeholder: formatMessage(messages$O.placeholder),
564
566
  loadOptions: loadOptionsDebounced,
565
567
  defaultOptions: true,
566
568
  showOptionGroupDivider: true,
@@ -588,6 +590,7 @@ const StatePickerInput = _ref => {
588
590
  });
589
591
  };
590
592
  StatePickerInput.displayName = 'StatePickerInput';
593
+ var StatePickerInput$1 = StatePickerInput;
591
594
 
592
595
  function ownKeys$1q(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
593
596
  function _objectSpread$1q(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1q(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1q(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -614,8 +617,9 @@ const CustomFieldTooltip = _ref => {
614
617
  children: children
615
618
  });
616
619
  };
620
+ var CustomFieldTooltip$1 = CustomFieldTooltip;
617
621
 
618
- var messages$H = defineMessages({
622
+ var messages$N = defineMessages({
619
623
  bottomOption: {
620
624
  id: 'Products.Pickers.bottomOption',
621
625
  description: 'The message to display at the end of the options menu',
@@ -627,7 +631,7 @@ function ownKeys$1p(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertyS
627
631
  function _objectSpread$1p(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1p(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1p(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
628
632
  const getBottomOption = formatMessage => ({
629
633
  options: [{
630
- label: formatMessage ? formatMessage(messages$H.bottomOption) : messages$H.bottomOption,
634
+ label: formatMessage ? formatMessage(messages$N.bottomOption) : messages$N.bottomOption,
631
635
  isBottomOption: true,
632
636
  isDisabled: true
633
637
  }]
@@ -662,7 +666,7 @@ const useHandlers = onChange => {
662
666
  const handleInputChange = useCallback(changedValue => {
663
667
  setInputValue(changedValue);
664
668
  }, []);
665
- const handleChange = useEventCallback(event => {
669
+ const handleChange = useEventCallback$1(event => {
666
670
  const eventWithExtractedValue = _objectSpread$1o(_objectSpread$1o({}, event), {}, {
667
671
  target: _objectSpread$1o(_objectSpread$1o({}, event.target), {}, {
668
672
  value: event.target.value?.value
@@ -672,6 +676,7 @@ const useHandlers = onChange => {
672
676
  }, [onChange, inputValue]);
673
677
  return [handleInputChange, handleChange];
674
678
  };
679
+ var useHandlers$1 = useHandlers;
675
680
 
676
681
  const _excluded$3 = ["extraWhere"];
677
682
  function ownKeys$1n(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -704,10 +709,10 @@ const useLoadOptions = _ref => {
704
709
  let inputValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
705
710
  let where;
706
711
  if (inputValue.length) {
707
- if (isUUID(inputValue)) {
712
+ if (isUUID$1(inputValue)) {
708
713
  where = `id = "${inputValue}"`;
709
714
  } else {
710
- const _getPrefixSearchBound = getPrefixSearchBounds(inputValue),
715
+ const _getPrefixSearchBound = getPrefixSearchBounds$1(inputValue),
711
716
  _getPrefixSearchBound2 = _slicedToArray(_getPrefixSearchBound, 2),
712
717
  lowerBound = _getPrefixSearchBound2[0],
713
718
  upperBound = _getPrefixSearchBound2[1];
@@ -733,6 +738,7 @@ const useLoadOptions = _ref => {
733
738
  }, [client, query, variables, prefixSearchFields]);
734
739
  return loadOptions;
735
740
  };
741
+ var useLoadOptions$1 = useLoadOptions;
736
742
 
737
743
  var FetchIndicesExist$1 = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchIndicesExist" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "indicesExist" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "products" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchableIndexExists" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "newInProgress" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "productTypes" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchableIndexExists" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "newInProgress" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 191, source: { body: "query FetchIndicesExist {\n indicesExist {\n products {\n searchableIndexExists\n newInProgress\n }\n productTypes {\n searchableIndexExists\n newInProgress\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
738
744
  const useExecuteGraphQLRequest = () => {
@@ -823,8 +829,8 @@ const constructPrefixSearchPredicate = (prefixSearchFields, lowerBound, upperBou
823
829
  const constructWherePredicate = (inputValue, prefixSearchFields) => {
824
830
  const wherePredicate = function () {
825
831
  if (inputValue.length) {
826
- if (isUUID(inputValue)) return `id = "${inputValue}"`;else {
827
- const _getPrefixSearchBound = getPrefixSearchBounds(inputValue),
832
+ if (isUUID$1(inputValue)) return `id = "${inputValue}"`;else {
833
+ const _getPrefixSearchBound = getPrefixSearchBounds$1(inputValue),
828
834
  _getPrefixSearchBound2 = _slicedToArray(_getPrefixSearchBound, 2),
829
835
  lowerBound = _getPrefixSearchBound2[0],
830
836
  upperBound = _getPrefixSearchBound2[1];
@@ -882,6 +888,7 @@ const useProductTypeOptions = _ref3 => {
882
888
  loadProductTypes: isProjectIndexed ? fetchProductTypesFromPim : fetchProductTypessFromCTP
883
889
  };
884
890
  };
891
+ var useProductTypeOptions$1 = useProductTypeOptions;
885
892
 
886
893
  function useCurrentOption(_ref) {
887
894
  let id = _ref.id,
@@ -933,16 +940,20 @@ const getDisplayName = Component => {
933
940
  }
934
941
  return Component.displayName || Component.name || 'Component';
935
942
  };
943
+ var getDisplayName$1 = getDisplayName;
936
944
 
937
945
  const setDisplayName = nextDisplayName => Component => {
938
946
  // eslint-disable-next-line no-param-reassign
939
947
  Component.displayName = nextDisplayName;
940
948
  return Component;
941
949
  };
950
+ var setDisplayName$1 = setDisplayName;
942
951
 
943
- const keepDisplayName = component => setDisplayName(getDisplayName(component));
952
+ const keepDisplayName = component => setDisplayName$1(getDisplayName$1(component));
953
+ var keepDisplayName$1 = keepDisplayName;
944
954
 
945
- const wrapDisplayName = (BaseComponent, hocName) => `${hocName}(${getDisplayName(BaseComponent)})`;
955
+ const wrapDisplayName = (BaseComponent, hocName) => `${hocName}(${getDisplayName$1(BaseComponent)})`;
956
+ var wrapDisplayName$1 = wrapDisplayName;
946
957
 
947
958
  function ownKeys$1m(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
948
959
  function _objectSpread$1m(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1m(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1m(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -980,9 +991,10 @@ const withMouseOverState = BaseComponent => {
980
991
  }
981
992
  }]);
982
993
  }(Component);
983
- WithMouseOverState.displayName = wrapDisplayName(BaseComponent, 'withMouseOverState');
994
+ WithMouseOverState.displayName = wrapDisplayName$1(BaseComponent, 'withMouseOverState');
984
995
  return WithMouseOverState;
985
996
  };
997
+ var withMouseOverState$1 = withMouseOverState;
986
998
 
987
999
  function ownKeys$1l(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
988
1000
  function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1l(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1l(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -1140,8 +1152,9 @@ ThrottledField.defaultProps = {
1140
1152
  autoFocus: false,
1141
1153
  label: 'Throttled field'
1142
1154
  };
1155
+ var ThrottledField$1 = ThrottledField;
1143
1156
 
1144
- var messages$G = defineMessages({
1157
+ var messages$M = defineMessages({
1145
1158
  buttonLabel: {
1146
1159
  id: 'SearchInput.buttonLabel',
1147
1160
  description: 'Label for "Search" button.',
@@ -1240,13 +1253,13 @@ let SearchInput = /*#__PURE__*/function (_Component) {
1240
1253
  [styles$i['input-container-disabled']]: this.props.disabled && this.props.enableDisabledStyle,
1241
1254
  [styles$i['input-container-granular']]: this.props.isGranular
1242
1255
  }),
1243
- children: jsx(ThrottledField, {
1256
+ children: jsx(ThrottledField$1, {
1244
1257
  style: "primary",
1245
1258
  name: "search-text",
1246
1259
  "data-testid": this.props.testId || 'search-input',
1247
1260
  value: this.state.text,
1248
1261
  label: this.props.label,
1249
- placeholder: this.props.placeholder || this.props.intl.formatMessage(messages$G.placeholder),
1262
+ placeholder: this.props.placeholder || this.props.intl.formatMessage(messages$M.placeholder),
1250
1263
  inputRef: this.props.inputRef || this.setInputRef,
1251
1264
  onChange: this.handleInputChange,
1252
1265
  onEnter: this.handleEnter,
@@ -1301,7 +1314,7 @@ SearchInput.defaultProps = {
1301
1314
  label: 'Search input',
1302
1315
  onChange: () => null
1303
1316
  };
1304
- var searchInput = flowRight(keepDisplayName(SearchInput), withMouseOverState, injectIntl)(SearchInput);
1317
+ var searchInput = flowRight(keepDisplayName$1(SearchInput), withMouseOverState$1, injectIntl)(SearchInput);
1305
1318
 
1306
1319
  function ownKeys$1k(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1307
1320
  function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1k(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1k(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -1325,9 +1338,10 @@ const injectDataTablePaginationState = initialValues => Component => {
1325
1338
  }
1326
1339
  }));
1327
1340
  };
1328
- WithDataTablePaginationState.displayName = wrapDisplayName(WithDataTablePaginationState, 'WithDataTablePaginationState');
1341
+ WithDataTablePaginationState.displayName = wrapDisplayName$1(WithDataTablePaginationState, 'WithDataTablePaginationState');
1329
1342
  return WithDataTablePaginationState;
1330
1343
  };
1344
+ var injectDataTablePaginationState$1 = injectDataTablePaginationState;
1331
1345
 
1332
1346
  function ownKeys$1j(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1333
1347
  function _objectSpread$1j(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1j(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1j(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -1349,10 +1363,11 @@ const injectNotifications = function () {
1349
1363
  [propName]: notifications
1350
1364
  }));
1351
1365
  };
1352
- WrappedComponent.displayName = `withNotifications(${getDisplayName(Component)}`;
1366
+ WrappedComponent.displayName = `withNotifications(${getDisplayName$1(Component)}`;
1353
1367
  return WrappedComponent;
1354
1368
  };
1355
1369
  };
1370
+ var injectNotifications$1 = injectNotifications;
1356
1371
 
1357
1372
  function ownKeys$1i(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1358
1373
  function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1i(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1i(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -1364,9 +1379,10 @@ const withProps = mapProps => Component => {
1364
1379
  const enhancedProps = isPropsMapper(mapProps) ? _objectSpread$1i(_objectSpread$1i({}, ownProps), mapProps(ownProps)) : _objectSpread$1i(_objectSpread$1i({}, ownProps), mapProps);
1365
1380
  return jsx(Component, _objectSpread$1i({}, enhancedProps));
1366
1381
  };
1367
- EnhancedWithProps.displayName = wrapDisplayName(Component, 'withProps');
1382
+ EnhancedWithProps.displayName = wrapDisplayName$1(Component, 'withProps');
1368
1383
  return EnhancedWithProps;
1369
1384
  };
1385
+ var withProps$1 = withProps;
1370
1386
 
1371
1387
  function ownKeys$1h(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1372
1388
  function _objectSpread$1h(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1h(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1h(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -1401,6 +1417,7 @@ const withRedirectTo = options => Component => {
1401
1417
  WithRedirectTo.displayName = 'WithFirstStepRedirect';
1402
1418
  return WithRedirectTo;
1403
1419
  };
1420
+ var withRedirectTo$1 = withRedirectTo;
1404
1421
 
1405
1422
  function ownKeys$1g(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1406
1423
  function _objectSpread$1g(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1g(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1g(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -1408,7 +1425,7 @@ const defaultOptions$4 = {
1408
1425
  propName: 'modalState',
1409
1426
  isInitiallyOpen: false
1410
1427
  };
1411
- const injectModalState$1 = options => Component => {
1428
+ const injectModalState$2 = options => Component => {
1412
1429
  const mergedOptions = _objectSpread$1g(_objectSpread$1g({}, defaultOptions$4), options);
1413
1430
  const WithModalState = props => {
1414
1431
  const modalState = useModalState(mergedOptions.isInitiallyOpen);
@@ -1416,9 +1433,10 @@ const injectModalState$1 = options => Component => {
1416
1433
  [mergedOptions.propName]: modalState
1417
1434
  }));
1418
1435
  };
1419
- WithModalState.displayName = wrapDisplayName(WithModalState, 'WithModalState');
1436
+ WithModalState.displayName = wrapDisplayName$1(WithModalState, 'WithModalState');
1420
1437
  return WithModalState;
1421
1438
  };
1439
+ var injectModalState$3 = injectModalState$2;
1422
1440
 
1423
1441
  function ownKeys$1f(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1424
1442
  function _objectSpread$1f(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1f(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1f(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -1434,9 +1452,10 @@ const injectModalState = options => Component => {
1434
1452
  [mergedOptions.propName]: toggleState
1435
1453
  }));
1436
1454
  };
1437
- WithToggleState.displayName = wrapDisplayName(WithToggleState, 'WithToggleState');
1455
+ WithToggleState.displayName = wrapDisplayName$1(WithToggleState, 'WithToggleState');
1438
1456
  return WithToggleState;
1439
1457
  };
1458
+ var injectModalState$1 = injectModalState;
1440
1459
 
1441
1460
  function ownKeys$1e(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1442
1461
  function _objectSpread$1e(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1e(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1e(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -1500,6 +1519,7 @@ const useStorage = (storageKey, initialStorageValue, options) => {
1500
1519
  }, [actualStorageValue, initialStorageValue, readFromStorage, writeToStorage]);
1501
1520
  return [actualStorageValue, writeToStorage, readFromStorage];
1502
1521
  };
1522
+ var useStorage$1 = useStorage;
1503
1523
 
1504
1524
  function ownKeys$1d(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1505
1525
  function _objectSpread$1d(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$1d(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$1d(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -1517,7 +1537,7 @@ const injectStorage = options => WrappedComponent => {
1517
1537
  */
1518
1538
  const mergedOptions = _objectSpread$1d(_objectSpread$1d({}, defaultOptions$1), options);
1519
1539
  const WithStorage = props => {
1520
- const _useStorage = useStorage(mergedOptions.storageKey(props), mergedOptions.initalStorageValue, mergedOptions.options),
1540
+ const _useStorage = useStorage$1(mergedOptions.storageKey(props), mergedOptions.initalStorageValue, mergedOptions.options),
1521
1541
  _useStorage2 = _slicedToArray(_useStorage, 3),
1522
1542
  actualStorageValue = _useStorage2[0],
1523
1543
  writeToStorage = _useStorage2[1],
@@ -1531,9 +1551,10 @@ const injectStorage = options => WrappedComponent => {
1531
1551
  };
1532
1552
  return jsx(WrappedComponent, _objectSpread$1d(_objectSpread$1d({}, props), storageProp));
1533
1553
  };
1534
- WithStorage.displayName = wrapDisplayName(WrappedComponent, 'WithStorage');
1554
+ WithStorage.displayName = wrapDisplayName$1(WrappedComponent, 'WithStorage');
1535
1555
  return WithStorage;
1536
1556
  };
1557
+ var injectStorage$1 = injectStorage;
1537
1558
 
1538
1559
  /**
1539
1560
  * @returns function with the following parameters
@@ -1686,42 +1707,7 @@ const useIsFieldDuplicated = () => {
1686
1707
  queryIsFieldDuplicated: execute
1687
1708
  };
1688
1709
  };
1689
-
1690
- const graphqlQueries = {
1691
- ASSOCIATE_ROLE: 'associateRoles',
1692
- ATTRIBUTE_GROUP: 'attributeGroups',
1693
- BUSINESS_UNIT: 'businessUnits',
1694
- CART: 'carts',
1695
- CART_DISCOUNT: 'cartDiscounts',
1696
- CATEGORY: 'categories',
1697
- CHANNEL: 'channels',
1698
- CUSTOMER: 'customers',
1699
- CUSTOMER_GROUP: 'customerGroups',
1700
- DISCOUNT_CODE: 'discountCodes',
1701
- INVENTORY_ENTRY: 'inventoryEntries',
1702
- ORDER: 'orders',
1703
- PAYMENT: 'payments',
1704
- PRODUCT: 'products',
1705
- PRODUCT_DISCOUNT: 'productDiscounts',
1706
- PRODUCT_SELECTION: 'productSelections',
1707
- PRODUCT_TYPE: 'productTypes',
1708
- SHIPPING_METHOD: 'shippingMethods',
1709
- STORE: 'stores',
1710
- TAX_CATEGORY: 'taxCategories',
1711
- ZONE: 'zones'
1712
- };
1713
- const handlers$6 = {
1714
- DuplicatedField: {
1715
- total: (total, resourceType) => graphql.query('FetchResourceTypeDuplicatedField', (req, res, ctx) => {
1716
- if (!graphqlQueries[resourceType]) return res(ctx.data({}));
1717
- return res(ctx.data({
1718
- [graphqlQueries[resourceType]]: {
1719
- total
1720
- }
1721
- }));
1722
- })
1723
- }
1724
- };
1710
+ var useIsFieldDuplicated$1 = useIsFieldDuplicated;
1725
1711
 
1726
1712
  const usePrevious = value => {
1727
1713
  const ref = useRef();
@@ -1730,6 +1716,7 @@ const usePrevious = value => {
1730
1716
  }, [value]);
1731
1717
  return ref.current;
1732
1718
  };
1719
+ var usePrevious$1 = usePrevious;
1733
1720
 
1734
1721
  function ownKeys$1b(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1735
1722
  function _objectSpread$1b(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$1b(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$1b(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -1797,59 +1784,7 @@ const useStoresListFetcher = props => {
1797
1784
  }
1798
1785
  };
1799
1786
  };
1800
-
1801
- const extractKeysFromWherePredicateClause = function () {
1802
- let whereClause = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
1803
- return whereClause.substring(_lastIndexOfInstanceProperty(whereClause).call(whereClause, '("') + 1, _lastIndexOfInstanceProperty(whereClause).call(whereClause, '")')).replace(/["]/g, '').split(', ');
1804
- };
1805
- const handlers$5 = {
1806
- StoresList: {
1807
- all: stores => graphql.query('FetchStoresQuery', (req, res, ctx) => {
1808
- // GIVEN req.variables.where is specified
1809
- // THEN return only stores that are being requested (filtering stores based on IDs)
1810
- // ELSE return all the stores (without filtering any)
1811
- if (req.variables.where) {
1812
- var _context;
1813
- const requestedStoreKeys = extractKeysFromWherePredicateClause(req.variables.where);
1814
- const filteredStoreResults = _filterInstanceProperty(_context = stores.results).call(_context, store => _includesInstanceProperty(requestedStoreKeys).call(requestedStoreKeys, store.key));
1815
- return res(ctx.data({
1816
- stores: {
1817
- offset: 0,
1818
- total: filteredStoreResults.length,
1819
- count: filteredStoreResults.length,
1820
- results: filteredStoreResults,
1821
- __typename: 'StoresQueryResult'
1822
- }
1823
- }));
1824
- }
1825
- return res(ctx.data({
1826
- stores
1827
- }));
1828
- }),
1829
- withProductSelections: stores => graphql.query('FetchStoresQuery', (req, res, ctx) => {
1830
- // GIVEN req.variables.where is specified
1831
- // THEN return only stores that are being requested (filtering stores based on IDs)
1832
- // ELSE return all the stores (without filtering any)
1833
- if (req.variables.where) {
1834
- var _context2;
1835
- const requestedStoreKeys = extractKeysFromWherePredicateClause(req.variables.where);
1836
- const filteredStoreResults = _filterInstanceProperty(_context2 = stores.results).call(_context2, store => _includesInstanceProperty(requestedStoreKeys).call(requestedStoreKeys, store.key));
1837
- return res(ctx.data({
1838
- stores: {
1839
- offset: 0,
1840
- total: filteredStoreResults.length,
1841
- count: filteredStoreResults.length,
1842
- results: filteredStoreResults,
1843
- __typename: 'StoresQueryResult'
1844
- }
1845
- }));
1846
- }
1847
- return res(ctx.data({
1848
- stores
1849
- }));
1850
- })
1851
- }
1852
- };
1787
+ var useStoresListFetcher$1 = useStoresListFetcher;
1853
1788
 
1854
1789
  const toPermission = (permission, resourceName) => camelCase(`can ${permission} ${resourceName}`);
1855
1790
  const createPermissionsComposePath = permission =>
@@ -1879,6 +1814,7 @@ const useStoreKeysInDataFences = _ref => {
1879
1814
  });
1880
1815
  return storeKeysInDataFences;
1881
1816
  };
1817
+ var useStoreKeysInDataFences$1 = useStoreKeysInDataFences;
1882
1818
 
1883
1819
  function useDidFormValidationFail() {
1884
1820
  const _useState = useState(false),
@@ -1938,7 +1874,7 @@ const useHasReminderExpired = readReminderInterval => {
1938
1874
  const usePersistedReminder = function () {
1939
1875
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1940
1876
  const mergedOptions = _objectSpread$1a(_objectSpread$1a({}, defaultOptions), options);
1941
- const _useStorage = useStorage(mergedOptions.storageKey, null),
1877
+ const _useStorage = useStorage$1(mergedOptions.storageKey, null),
1942
1878
  _useStorage2 = _slicedToArray(_useStorage, 3),
1943
1879
  initialChosenReminderInterval = _useStorage2[0],
1944
1880
  choseReminderInterval = _useStorage2[1],
@@ -1982,8 +1918,9 @@ const usePersistedReminder = function () {
1982
1918
  }, []);
1983
1919
  return [hasReminderExpired, hasChosenReminderRef, scheduleReminder];
1984
1920
  };
1921
+ var usePersistedReminder$1 = usePersistedReminder;
1985
1922
 
1986
- var messages$F = defineMessages({
1923
+ var messages$L = defineMessages({
1987
1924
  profileUpdated: {
1988
1925
  id: 'NotificationText.profileUpdated',
1989
1926
  description: 'Label for the notification header',
@@ -2020,9 +1957,9 @@ const NotificationText = () => jsxs(Spacings.Stack, {
2020
1957
  children: [jsx(Text.Body, {
2021
1958
  as: "p",
2022
1959
  isBold: true,
2023
- intlMessage: messages$F.profileUpdated
1960
+ intlMessage: messages$L.profileUpdated
2024
1961
  }), jsx(Text.Body, {
2025
- intlMessage: _objectSpread$19(_objectSpread$19({}, messages$F.addMoreInformation), {}, {
1962
+ intlMessage: _objectSpread$19(_objectSpread$19({}, messages$L.addMoreInformation), {}, {
2026
1963
  values: {
2027
1964
  newline: getNewLine
2028
1965
  }
@@ -2031,7 +1968,7 @@ const NotificationText = () => jsxs(Spacings.Stack, {
2031
1968
  }), jsx(Spacings.Stack, {
2032
1969
  scale: "xs",
2033
1970
  children: jsx(Text.Body, {
2034
- intlMessage: _objectSpread$19(_objectSpread$19({}, messages$F.informationAndProfileLink), {}, {
1971
+ intlMessage: _objectSpread$19(_objectSpread$19({}, messages$L.informationAndProfileLink), {}, {
2035
1972
  values: {
2036
1973
  newline: getNewLine,
2037
1974
  link: getLinkToProfile
@@ -2041,6 +1978,7 @@ const NotificationText = () => jsxs(Spacings.Stack, {
2041
1978
  })]
2042
1979
  });
2043
1980
  NotificationText.displayName = 'NotificationText';
1981
+ var NotificationText$1 = NotificationText;
2044
1982
 
2045
1983
  const useRoleNotification = _ref => {
2046
1984
  let dismissNotification = _ref.onDismiss;
@@ -2052,13 +1990,14 @@ const useRoleNotification = _ref => {
2052
1990
  return () => {
2053
1991
  if (isBusinessRoleNotificationEnabled) {
2054
1992
  notification({
2055
- text: jsx(NotificationText, {})
1993
+ text: jsx(NotificationText$1, {})
2056
1994
  }, {
2057
1995
  onDismiss: () => dismissNotification()
2058
1996
  });
2059
1997
  }
2060
1998
  };
2061
1999
  };
2000
+ var useRoleNotification$1 = useRoleNotification;
2062
2001
 
2063
2002
  const useRoleNotificationEffect = () => {
2064
2003
  const _useAdapterStatus = useAdapterStatus(),
@@ -2067,7 +2006,7 @@ const useRoleNotificationEffect = () => {
2067
2006
  const storageKey = 'roleExpiry';
2068
2007
  const userBusinessRole = user.businessRole;
2069
2008
  const scopedStorageKey = [user.id, storageKey].join('/');
2070
- const _usePersistedReminder = usePersistedReminder({
2009
+ const _usePersistedReminder = usePersistedReminder$1({
2071
2010
  storageKey,
2072
2011
  reminderInterval: REMINDER_OPTION_3_DAY
2073
2012
  }),
@@ -2075,7 +2014,7 @@ const useRoleNotificationEffect = () => {
2075
2014
  hasReminderExpired = _usePersistedReminder2[0],
2076
2015
  hasChosenReminderRef = _usePersistedReminder2[1],
2077
2016
  scheduleReminder = _usePersistedReminder2[2];
2078
- const roleNotification = useRoleNotification({
2017
+ const roleNotification = useRoleNotification$1({
2079
2018
  onDismiss: scheduleReminder
2080
2019
  });
2081
2020
  const isFirstTimeUser = !hasChosenReminderRef.current;
@@ -2104,6 +2043,7 @@ const useRoleNotificationEffect = () => {
2104
2043
  // eslint-disable-next-line react-hooks/exhaustive-deps
2105
2044
  [userBusinessRole, hasReminderExpired, isFlopFlipReady]);
2106
2045
  };
2046
+ var useRoleNotificationEffect$1 = useRoleNotificationEffect;
2107
2047
 
2108
2048
  function usePendingRequests() {
2109
2049
  const _useState = useState(0),
@@ -2151,8 +2091,9 @@ const useEventCallback = (fn, dependencies) => {
2151
2091
  return ref.current(...arguments);
2152
2092
  }, [ref]);
2153
2093
  };
2094
+ var useEventCallback$1 = useEventCallback;
2154
2095
 
2155
- var messages$E = defineMessages({
2096
+ var messages$K = defineMessages({
2156
2097
  fallbackHint: {
2157
2098
  id: 'KeyFallback.fallbackHint',
2158
2099
  description: 'key fallback for a specified resource key (e.g name)',
@@ -2176,17 +2117,19 @@ const useLocalizedKeyFallback = () => {
2176
2117
  return values => {
2177
2118
  if (!values.resource) return null;
2178
2119
  const localizedString = values.resource[values.localizedStringFieldName];
2179
- const fallbackHintWithKey = intl.formatMessage(messages$E.fallbackHint, {
2120
+ const fallbackHintWithKey = intl.formatMessage(messages$K.fallbackHint, {
2180
2121
  key: values.resource.key
2181
2122
  });
2182
2123
  if (!localizedString) return fallbackHintWithKey;
2183
2124
  return localizedString[language] || fallbackHintWithKey;
2184
2125
  };
2185
2126
  };
2127
+ var useLocalizedKeyFallback$1 = useLocalizedKeyFallback;
2186
2128
 
2187
2129
  const useDebouncedPromiseCallback = (promiseCallback, wait) =>
2188
2130
  // eslint-disable-next-line testing-library/await-async-utils
2189
2131
  useCallback(debounce(promiseCallback, wait), [promiseCallback]);
2132
+ var useDebouncedPromiseCallback$1 = useDebouncedPromiseCallback;
2190
2133
 
2191
2134
  function ownKeys$18(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2192
2135
  function _objectSpread$18(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$18(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$18(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -2252,7 +2195,7 @@ const usePersistedTableConfiguration = props => {
2252
2195
  displaySettings
2253
2196
  };
2254
2197
  }, [allAvailableColumnsConfiguration, initialVisibleColumnKeys, mutableColumnProps, displaySettings]);
2255
- const _useStorage = useStorage(tableConfigurationStorageKey,
2198
+ const _useStorage = useStorage$1(tableConfigurationStorageKey,
2256
2199
  // initialize with all the available columns
2257
2200
  mappedInitialTableConfiguration, {
2258
2201
  storageType
@@ -2288,6 +2231,7 @@ const usePersistedTableConfiguration = props => {
2288
2231
  })
2289
2232
  };
2290
2233
  };
2234
+ var usePersistedTableConfiguration$1 = usePersistedTableConfiguration;
2291
2235
 
2292
2236
  var FetchProductSelectionsTotal = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchProductSelectionsTotal" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "productSelections" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 74, source: { body: "query FetchProductSelectionsTotal {\n productSelections {\n total\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
2293
2237
  const useProductSelectionsTotalFetcher = props => {
@@ -2303,17 +2247,7 @@ const useProductSelectionsTotalFetcher = props => {
2303
2247
  total: data?.productSelections?.total
2304
2248
  };
2305
2249
  };
2306
-
2307
- const handlers$4 = {
2308
- ProductSelections: {
2309
- total: total => graphql.query('FetchProductSelectionsTotal', (req, res, ctx) => res(ctx.data({
2310
- productSelections: {
2311
- total,
2312
- __typename: 'ProductSelectionQueryResult'
2313
- }
2314
- })))
2315
- }
2316
- };
2250
+ var useProductSelectionsTotalFetcher$1 = useProductSelectionsTotalFetcher;
2317
2251
 
2318
2252
  function ownKeys$17(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2319
2253
  function _objectSpread$17(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$17(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$17(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -2362,14 +2296,7 @@ const useProductSelectionsFetcher = props => {
2362
2296
  refetch
2363
2297
  };
2364
2298
  };
2365
-
2366
- const handlers$3 = {
2367
- ProductSelections: {
2368
- all: productSelections => graphql.query('FetchProductSelections', (req, res, ctx) => res(ctx.data({
2369
- productSelections
2370
- })))
2371
- }
2372
- };
2299
+ var useProductSelectionsFetcher$1 = useProductSelectionsFetcher;
2373
2300
 
2374
2301
  const setToArray = function () {
2375
2302
  let values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
@@ -3780,6 +3707,7 @@ const currencyData = {
3780
3707
  countries: ['Zimbabwe']
3781
3708
  }
3782
3709
  };
3710
+ var currencyData$1 = currencyData;
3783
3711
 
3784
3712
  /* This is is short-term solution that patches fraction digits not being available from the Dashboard backend.
3785
3713
 
@@ -3806,8 +3734,8 @@ SOFTWARE.
3806
3734
 
3807
3735
  const getData = (code, field) => {
3808
3736
  code = code !== undefined && code !== '' ? code.toUpperCase() : code;
3809
- if (currencyData[code] !== undefined) {
3810
- if (field === 'all') return currencyData[code];else return currencyData[code][field];
3737
+ if (currencyData$1[code] !== undefined) {
3738
+ if (field === 'all') return currencyData$1[code];else return currencyData$1[code][field];
3811
3739
  } else return undefined;
3812
3740
  };
3813
3741
  const getFractionDigit = code => getData(code, 'fractionDigit');
@@ -3846,7 +3774,7 @@ function formatMoney$2(moneyValue, intl, options) {
3846
3774
  }, options));
3847
3775
  }
3848
3776
 
3849
- var messages$D = defineMessages({
3777
+ var messages$J = defineMessages({
3850
3778
  booleanYes: {
3851
3779
  id: 'AttributeTypeFormats.boolean.yes',
3852
3780
  description: 'The label for boolean attribute `true` value',
@@ -3928,7 +3856,7 @@ const formatDateTime = _ref7 => {
3928
3856
  const formatBoolean = _ref8 => {
3929
3857
  let value = _ref8.value,
3930
3858
  intl = _ref8.intl;
3931
- return value ? intl.formatMessage(messages$D.booleanYes) : intl.formatMessage(messages$D.booleanNo);
3859
+ return value ? intl.formatMessage(messages$J.booleanYes) : intl.formatMessage(messages$J.booleanNo);
3932
3860
  };
3933
3861
  const formatNilType = _ref9 => {
3934
3862
  let value = _ref9.value,
@@ -4085,6 +4013,7 @@ const getPrefixSearchBounds = input => {
4085
4013
  const getNextCharacter = character => String.fromCharCode(character.charCodeAt() + 1);
4086
4014
  return [input, `${_sliceInstanceProperty(input).call(input, 0, input.length - 1)}${getNextCharacter(_sliceInstanceProperty(input).call(input, input.length - 1))}`];
4087
4015
  };
4016
+ var getPrefixSearchBounds$1 = getPrefixSearchBounds;
4088
4017
 
4089
4018
  const _excluded$2 = ["action"];
4090
4019
  function ownKeys$15(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -4644,6 +4573,7 @@ const extractErrorFromGraphQlResponse = graphQlResponse => {
4644
4573
  };
4645
4574
 
4646
4575
  const isUUID = string => /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/.test(string);
4576
+ var isUUID$1 = isUUID;
4647
4577
 
4648
4578
  const formats = {
4649
4579
  en: [',', '.'],
@@ -5033,7 +4963,7 @@ function uniqueObjects(items) {
5033
4963
 
5034
4964
  */
5035
4965
 
5036
- const messages$C = defineMessages({
4966
+ const messages$I = defineMessages({
5037
4967
  unique: {
5038
4968
  id: 'Validation.unique',
5039
4969
  description: 'An error message to show if the field must be unique',
@@ -5075,6 +5005,7 @@ const messages$C = defineMessages({
5075
5005
  defaultMessage: 'Invalid ID format. Please enter a valid ID.'
5076
5006
  }
5077
5007
  });
5008
+ var validationMessages = messages$I;
5078
5009
 
5079
5010
  function getIndexesOfInvalidValues(values) {
5080
5011
  let invalidValues = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
@@ -5088,6 +5019,7 @@ function getIndexesOfInvalidValues(values) {
5088
5019
  }
5089
5020
 
5090
5021
  const withoutEmptyErrorsByField = errorsByField => omitEmpty(errorsByField);
5022
+ var withoutEmptyErrorsByField$1 = withoutEmptyErrorsByField;
5091
5023
 
5092
5024
  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 } } } };
5093
5025
 
@@ -5157,7 +5089,7 @@ const getWhereClause = function () {
5157
5089
  let searchText = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
5158
5090
  let language = arguments.length > 1 ? arguments[1] : undefined;
5159
5091
  const query = _trimInstanceProperty(_context2 = _JSON$stringify(searchText)).call(_context2);
5160
- const idQuery = isUUID(searchText) && `id = ${query}`;
5092
+ const idQuery = isUUID$1(searchText) && `id = ${query}`;
5161
5093
  const nameQuery = `name(${language} = ${query})`;
5162
5094
  const keyQuery = `key = ${query}`;
5163
5095
  return _filterInstanceProperty(_context3 = [idQuery, nameQuery, keyQuery]).call(_context3, Boolean).join(' or ');
@@ -5224,7 +5156,7 @@ const useReferenceSearchItems = _ref => {
5224
5156
  const putToCache = useCallback(items => {
5225
5157
  _forEachInstanceProperty(items).call(items, item => itemCache.set(item.id, item));
5226
5158
  }, []);
5227
- const prevIds = usePrevious(ids);
5159
+ const prevIds = usePrevious$1(ids);
5228
5160
  useEffect(() => {
5229
5161
  async function loadItems() {
5230
5162
  const loadedItems = ids.length > 0 ? await loadItemsByIds(ids) : [];
@@ -5297,7 +5229,7 @@ function ReferenceSearch(props) {
5297
5229
  children: [areSomeItemsMissing && jsx("div", {
5298
5230
  className: styles$h['missing-label'],
5299
5231
  children: props.referenceIsMissingLabel
5300
- }), jsx(CustomFieldTooltip, {
5232
+ }), jsx(CustomFieldTooltip$1, {
5301
5233
  title: tooltipTitle,
5302
5234
  children: jsxs("div", {
5303
5235
  children: [jsx(AccessibleHidden, {
@@ -5329,7 +5261,7 @@ function ReferenceSearch(props) {
5329
5261
  });
5330
5262
  }
5331
5263
 
5332
- const messages$B = defineMessages({
5264
+ const messages$G = defineMessages({
5333
5265
  placeholder: {
5334
5266
  id: 'CartDiscountReferenceSearch.placeholder',
5335
5267
  description: 'Placeholder for search for a cart discount',
@@ -5356,6 +5288,7 @@ const messages$B = defineMessages({
5356
5288
  defaultMessage: 'Enter search term'
5357
5289
  }
5358
5290
  });
5291
+ var messages$H = messages$G;
5359
5292
 
5360
5293
  function ownKeys$11(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5361
5294
  function _objectSpread$11(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$11(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$11(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -5380,7 +5313,7 @@ function Option$1(props) {
5380
5313
  fallbackOrder: languages
5381
5314
  })
5382
5315
  }), jsxs(Text.Detail, {
5383
- children: [formatMessage(messages$B.key), ": ", cartDiscount.key || NO_VALUE_FALLBACK]
5316
+ children: [formatMessage(messages$H.key), ": ", cartDiscount.key || NO_VALUE_FALLBACK]
5384
5317
  })]
5385
5318
  })
5386
5319
  }));
@@ -5456,10 +5389,10 @@ function CartDiscountReferenceSearch(props) {
5456
5389
  onBlur: props.onBlur,
5457
5390
  onChange: props.onChange,
5458
5391
  value: returnNullIfEmpty(props.value),
5459
- placeholderLabel: formatMessage(messages$B.placeholder),
5460
- searchPromptLabel: formatMessage(messages$B.searchPrompt),
5461
- noResultsLabel: formatMessage(messages$B.noResults),
5462
- referenceIsMissingLabel: formatMessage(messages$B.isMissing),
5392
+ placeholderLabel: formatMessage(messages$H.placeholder),
5393
+ searchPromptLabel: formatMessage(messages$H.searchPrompt),
5394
+ noResultsLabel: formatMessage(messages$H.noResults),
5395
+ referenceIsMissingLabel: formatMessage(messages$H.isMissing),
5463
5396
  mapItemToOption: mapItemToOption,
5464
5397
  loadItemsBySearchTerm: loadItemsBySearchTerm,
5465
5398
  loadItemsByIds: loadItemsByIds,
@@ -5469,7 +5402,7 @@ function CartDiscountReferenceSearch(props) {
5469
5402
  });
5470
5403
  }
5471
5404
 
5472
- const messages$A = defineMessages({
5405
+ const messages$E = defineMessages({
5473
5406
  placeholder: {
5474
5407
  id: 'CategoryReferenceSearch.placeholder',
5475
5408
  description: 'Placeholder for search for a category',
@@ -5501,6 +5434,7 @@ const messages$A = defineMessages({
5501
5434
  defaultMessage: 'Parent Category'
5502
5435
  }
5503
5436
  });
5437
+ var messages$F = messages$E;
5504
5438
 
5505
5439
  function ownKeys$$(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5506
5440
  function _objectSpread$$(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$$(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$$(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -5525,7 +5459,7 @@ function Option(props) {
5525
5459
  fallbackOrder: languages
5526
5460
  })
5527
5461
  }), category.parent && jsx(Text.Detail, {
5528
- children: `${formatMessage(messages$A.parentCategory)}: ${formatLocalizedString(category.parent, {
5462
+ children: `${formatMessage(messages$F.parentCategory)}: ${formatLocalizedString(category.parent, {
5529
5463
  key: 'name',
5530
5464
  locale: language,
5531
5465
  fallbackOrder: languages
@@ -5537,7 +5471,7 @@ function Option(props) {
5537
5471
  fallbackOrder: languages
5538
5472
  })}`
5539
5473
  }), category.externalId && jsx(Text.Detail, {
5540
- children: `${formatMessage(messages$A.externalId)}: ${category.externalId || NO_VALUE_FALLBACK}`
5474
+ children: `${formatMessage(messages$F.externalId)}: ${category.externalId || NO_VALUE_FALLBACK}`
5541
5475
  })]
5542
5476
  })
5543
5477
  }));
@@ -5585,10 +5519,10 @@ function CategoryReferenceSearch(props) {
5585
5519
  onBlur: props.onBlur,
5586
5520
  onChange: props.onChange,
5587
5521
  value: props.value,
5588
- placeholderLabel: formatMessage(messages$A.placeholder),
5589
- searchPromptLabel: formatMessage(messages$A.searchPrompt),
5590
- noResultsLabel: formatMessage(messages$A.noResults),
5591
- referenceIsMissingLabel: formatMessage(messages$A.isMissing),
5522
+ placeholderLabel: formatMessage(messages$F.placeholder),
5523
+ searchPromptLabel: formatMessage(messages$F.searchPrompt),
5524
+ noResultsLabel: formatMessage(messages$F.noResults),
5525
+ referenceIsMissingLabel: formatMessage(messages$F.isMissing),
5592
5526
  mapItemToOption: mapItemToOption,
5593
5527
  loadItemsBySearchTerm: loadItemsBySearchTerm,
5594
5528
  loadItemsByIds: loadItemsByIds,
@@ -5662,8 +5596,9 @@ Button.displayName = 'Button';
5662
5596
  Button.defaultProps = {
5663
5597
  type: 'button'
5664
5598
  };
5599
+ var Button$1 = Button;
5665
5600
 
5666
- var messages$z = defineMessages({
5601
+ var messages$D = defineMessages({
5667
5602
  chooseFile: {
5668
5603
  id: 'ButtonFileInput.chooseFile',
5669
5604
  description: 'The label text of the field for upload local file',
@@ -5692,12 +5627,13 @@ const FileInput = props => jsx("label", {
5692
5627
  });
5693
5628
  FileInput.displayName = 'FileInput';
5694
5629
  FileInput.defaultProps = {
5695
- children: jsx(FormattedMessage, _objectSpread$Y({}, messages$z.chooseFile)),
5630
+ children: jsx(FormattedMessage, _objectSpread$Y({}, messages$D.chooseFile)),
5696
5631
  allowMultiple: false,
5697
5632
  acceptTypes: 'image/png,image/jpeg,image/gif'
5698
5633
  };
5634
+ var FileInput$1 = FileInput;
5699
5635
 
5700
- var messages$y = defineMessages({
5636
+ var messages$C = defineMessages({
5701
5637
  countriesBasicSelectPlaceholder: {
5702
5638
  id: 'CountriesPicker.countriesBasicSelectPlaceholder',
5703
5639
  description: 'Placeholder of the basic field for countries',
@@ -5718,7 +5654,7 @@ var messages$y = defineMessages({
5718
5654
  function ownKeys$X(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5719
5655
  function _objectSpread$X(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context4 = ownKeys$X(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context5 = ownKeys$X(Object(t))).call(_context5, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
5720
5656
  const emptyCountryOption = intl => [{
5721
- label: intl.formatMessage(messages$y.countriesAsyncSelectDropdownTypeAheadPrompt),
5657
+ label: intl.formatMessage(messages$C.countriesAsyncSelectDropdownTypeAheadPrompt),
5722
5658
  value: undefined,
5723
5659
  isDisabled: true
5724
5660
  }];
@@ -5760,7 +5696,7 @@ function CountriesAsyncSelectDropdown(props) {
5760
5696
  var _context3;
5761
5697
  return _findInstanceProperty(_context3 = props.options).call(_context3, country => country.value === countryCode);
5762
5698
  }),
5763
- placeholder: intl.formatMessage(messages$y.countriesAsyncSelectPlaceholder),
5699
+ placeholder: intl.formatMessage(messages$C.countriesAsyncSelectPlaceholder),
5764
5700
  loadOptions: handleLoadOptions,
5765
5701
  onChange: onOptionChange,
5766
5702
  isDisabled: props.isDisabled,
@@ -5780,7 +5716,7 @@ function CountriesBasicSelectDropdown(props) {
5780
5716
  value: props.value,
5781
5717
  isRequired: props.isRequired,
5782
5718
  description: props.description,
5783
- placeholder: intl.formatMessage(messages$y.countriesBasicSelectPlaceholder),
5719
+ placeholder: intl.formatMessage(messages$C.countriesBasicSelectPlaceholder),
5784
5720
  options: props.options,
5785
5721
  onChange: props.onChange,
5786
5722
  isDisabled: props.isDisabled,
@@ -5807,7 +5743,7 @@ CountriesPicker.defaultProps = {
5807
5743
  hasWarning: false
5808
5744
  };
5809
5745
 
5810
- var messages$x = defineMessages({
5746
+ var messages$B = defineMessages({
5811
5747
  noCustomerGroupsFound: {
5812
5748
  id: 'Prices.CustomerGroupPickerInput.noCustomerGroupsFound',
5813
5749
  description: 'The message to display when no customer groups were found',
@@ -5858,7 +5794,7 @@ const CustomerGroupPickerInput = _ref => {
5858
5794
  return customerGroup;
5859
5795
  }, []);
5860
5796
  const prefixSearchFields = useMemo(() => ['name', 'key'], []);
5861
- const loadOptions = useLoadOptions({
5797
+ const loadOptions = useLoadOptions$1({
5862
5798
  query: GetCustomerGroupsQuery,
5863
5799
  variables,
5864
5800
  prefixSearchFields
@@ -5883,8 +5819,8 @@ const CustomerGroupPickerInput = _ref => {
5883
5819
  setLoadingError(error);
5884
5820
  onError(error);
5885
5821
  }), [loadOptions, convertCustomerGroupToOption, onError]);
5886
- const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
5887
- const _useHandlers = useHandlers(onChange),
5822
+ const loadOptionsDebounced = useDebouncedPromiseCallback$1(handleLoadOptions, 300);
5823
+ const _useHandlers = useHandlers$1(onChange),
5888
5824
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
5889
5825
  handleInternalInputChange = _useHandlers2[0],
5890
5826
  handleChange = _useHandlers2[1];
@@ -5897,18 +5833,18 @@ const CustomerGroupPickerInput = _ref => {
5897
5833
  if (isCurrentOptionLoadingFailed) onError(currentOption.error);
5898
5834
  }, [isCurrentOptionLoadingFailed, onError, currentOption]);
5899
5835
  const isLoadingFailed = isCurrentOptionLoadingFailed || Boolean(loadingError);
5900
- const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$x.noCustomerGroupsFound), [loadingError, formatMessage]);
5836
+ const handleNoOptions = useCallback(() => loadingError ? null : formatMessage(messages$B.noCustomerGroupsFound), [loadingError, formatMessage]);
5901
5837
  const tooltipTitle = currentOption?.data?.label ?? '';
5902
5838
  return jsx(Constraints.Horizontal, {
5903
5839
  max: "scale",
5904
5840
  children: jsxs(Spacings.Stack, {
5905
5841
  scale: "xs",
5906
- children: [jsx(CustomFieldTooltip, {
5842
+ children: [jsx(CustomFieldTooltip$1, {
5907
5843
  title: tooltipTitle,
5908
5844
  children: jsx(AsyncSelectInput, {
5909
5845
  id: name,
5910
5846
  name: name,
5911
- placeholder: placeholder ?? formatMessage(messages$x.placeholder),
5847
+ placeholder: placeholder ?? formatMessage(messages$B.placeholder),
5912
5848
  loadOptions: loadOptionsDebounced,
5913
5849
  defaultOptions: true,
5914
5850
  showOptionGroupDivider: true,
@@ -5933,6 +5869,7 @@ const CustomerGroupPickerInput = _ref => {
5933
5869
  });
5934
5870
  };
5935
5871
  CustomerGroupPickerInput.displayName = 'CustomerGroupPickerInput';
5872
+ var CustomerGroupPickerInput$1 = CustomerGroupPickerInput;
5936
5873
 
5937
5874
  var styles$e = {
5938
5875
  "divider": "divider-module__divider___4-vdy",
@@ -6003,13 +5940,14 @@ const CustomFieldErrors = props => {
6003
5940
  const errors = _Array$isArray(props.errors) ? mergeSetItemsErrors(props.errors) : props.errors;
6004
5941
  return jsxs(Fragment, {
6005
5942
  children: [props.isTouched || didFormValidationFail && errors?.missing && jsx(ErrorMessage, {
6006
- intlMessage: messages$C.required
5943
+ intlMessage: validationMessages.required
6007
5944
  }), props.isTouched || didFormValidationFail && errors?.duplicated && jsx(ErrorMessage, {
6008
- intlMessage: messages$C.unique
5945
+ intlMessage: validationMessages.unique
6009
5946
  })]
6010
5947
  });
6011
5948
  };
6012
5949
  CustomFieldErrors.displayName = 'CustomFieldErrors';
5950
+ var CustomFieldErrors$1 = CustomFieldErrors;
6013
5951
 
6014
5952
  const getType = fieldDefinition => {
6015
5953
  const fieldDefinitionType = fieldDefinition.type.name.toLowerCase() === 'set' ? fieldDefinition.type.elementType : fieldDefinition.type;
@@ -6093,6 +6031,7 @@ const ExpandButton = props => props.totalValues > 1 ? jsxs(Spacings.Stack, {
6093
6031
  })]
6094
6032
  }) : null;
6095
6033
  ExpandButton.displayName = 'ExpandButton';
6034
+ var ExpandButton$1 = ExpandButton;
6096
6035
 
6097
6036
  var styles$d = {
6098
6037
  "topAlign": "set-buttons-module__topAlign___3AZwc",
@@ -6121,6 +6060,7 @@ const SetButtons = props => {
6121
6060
  });
6122
6061
  };
6123
6062
  SetButtons.displayName = 'SetButtons';
6063
+ var SetButtons$1 = SetButtons;
6124
6064
 
6125
6065
  function ownKeys$U(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6126
6066
  function _objectSpread$U(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys$U(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys$U(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -6265,7 +6205,7 @@ function CustomInputSet(props) {
6265
6205
  const fieldValue = internalValue[index];
6266
6206
  return jsxs(Spacings.Inline, {
6267
6207
  alignItems: areButtonsTopAligned ? 'flex-start' : 'center',
6268
- children: [jsx(CustomFieldInput, {
6208
+ children: [jsx(CustomFieldInput$1, {
6269
6209
  name: fieldName,
6270
6210
  fieldDefinition: itemFieldDefinition,
6271
6211
  isDisabled: props.isDisabled,
@@ -6278,7 +6218,7 @@ function CustomInputSet(props) {
6278
6218
  WrapperComponent: props.WrapperComponent,
6279
6219
  renderWarnings: props.renderWarnings,
6280
6220
  handleWarningChange: props.handleWarningChange
6281
- }), jsx(SetButtons, {
6221
+ }), jsx(SetButtons$1, {
6282
6222
  index: index,
6283
6223
  isFirstItem: !isExpanded || index === 0,
6284
6224
  onAddItem: addNewItem,
@@ -6288,7 +6228,7 @@ function CustomInputSet(props) {
6288
6228
  isTopAligned: areButtonsTopAligned
6289
6229
  })]
6290
6230
  }, keys[index]);
6291
- }), jsx(ExpandButton, {
6231
+ }), jsx(ExpandButton$1, {
6292
6232
  totalValues: totalAmount,
6293
6233
  isExpanded: isExpanded,
6294
6234
  onExpand: toggleExpansion
@@ -6361,11 +6301,11 @@ const convertTypeValuesToOptions$1 = defaultMemoize(typeValues => _mapInstancePr
6361
6301
  function CustomEnumInput(props) {
6362
6302
  const options = convertTypeValuesToOptions$1(_valuesInstanceProperty(props.fieldDefinition.type));
6363
6303
  const handleChange = makeChangeHandler(rawValue => {
6364
- props.setFieldValue(props.name, rawValue);
6304
+ props.setFieldValue(props.name, !rawValue ? undefined : rawValue);
6365
6305
  props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
6366
6306
  });
6367
6307
  const tooltipTitle = props.value ? _findInstanceProperty(options).call(options, option => option.value === props.value)?.label ?? '' : '';
6368
- return jsx(CustomFieldTooltip, {
6308
+ return jsx(CustomFieldTooltip$1, {
6369
6309
  title: tooltipTitle,
6370
6310
  children: jsx(SelectInput, {
6371
6311
  isClearable: !props.fieldDefinition.required,
@@ -6411,7 +6351,7 @@ function CustomLocalizedEnumInput(props) {
6411
6351
  props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
6412
6352
  });
6413
6353
  const tooltipTitle = props.value ? _findInstanceProperty(options).call(options, option => option.value === props.value)?.label ?? '' : '';
6414
- return jsx(CustomFieldTooltip, {
6354
+ return jsx(CustomFieldTooltip$1, {
6415
6355
  title: tooltipTitle,
6416
6356
  children: jsx(SelectInput, {
6417
6357
  id: props.name,
@@ -6465,7 +6405,7 @@ function CustomLocalizedTextInput(props) {
6465
6405
  });
6466
6406
  const InputComponent = isMultiLine ? LocalizedMultilineTextInput : LocalizedTextInput;
6467
6407
  const tooltipTitle = isMultiLine ? '' : value ? value[language] ?? '' : '';
6468
- return jsx(CustomFieldTooltip, {
6408
+ return jsx(CustomFieldTooltip$1, {
6469
6409
  title: tooltipTitle,
6470
6410
  children: jsx(InputComponent, {
6471
6411
  id: props.name,
@@ -6577,7 +6517,7 @@ function CustomMoneyInput(props) {
6577
6517
  CustomMoneyInput.displayName = 'CustomMoneyInput';
6578
6518
 
6579
6519
  function ownKeys$R(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6580
- function _objectSpread$R(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context6 = ownKeys$R(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context7 = ownKeys$R(Object(t))).call(_context7, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
6520
+ function _objectSpread$R(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context5 = ownKeys$R(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context6 = ownKeys$R(Object(t))).call(_context6, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
6581
6521
  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 } } } };
6582
6522
  const mapAttributeDefinition = definition => {
6583
6523
  var _context, _context2, _context3, _context4;
@@ -6616,15 +6556,14 @@ function useNestedProductType(fieldDefinition) {
6616
6556
  loading = _useQuery.loading,
6617
6557
  error = _useQuery.error;
6618
6558
  if (!loading && !error) {
6619
- var _context5;
6620
- const attributeDefinitions = _mapInstanceProperty(_context5 = data.productType.attributeDefinitions.results).call(_context5, mapAttributeDefinition);
6559
+ const attributeDefinitions = data.productType?.attributeDefinitions.results.map(mapAttributeDefinition);
6621
6560
  return {
6622
6561
  loading: false,
6623
6562
  error: false,
6624
- productType: {
6563
+ productType: data.productType ? {
6625
6564
  name: data.productType.name,
6626
6565
  attributeDefinitions
6627
- }
6566
+ } : null
6628
6567
  };
6629
6568
  }
6630
6569
  return {
@@ -6634,9 +6573,10 @@ function useNestedProductType(fieldDefinition) {
6634
6573
  }
6635
6574
 
6636
6575
  const NestingLevelContext = /*#__PURE__*/createContext(0);
6576
+ var NestingLevelContext$1 = NestingLevelContext;
6637
6577
 
6638
6578
  // eslint-disable-next-line import/prefer-default-export
6639
- const messages$w = defineMessages({
6579
+ const messages$A = defineMessages({
6640
6580
  aboveFifthLevelWarning: {
6641
6581
  id: 'attributeInputByType.nestedAttributes.aboveFifthLevelWarning',
6642
6582
  description: 'Warning message shown when nested attribute are above the fifth level',
@@ -6648,8 +6588,9 @@ const messages$w = defineMessages({
6648
6588
  defaultMessage: 'Empty'
6649
6589
  }
6650
6590
  });
6591
+ var customFieldsMessages = messages$A;
6651
6592
 
6652
- var messages$v = defineMessages({
6593
+ var messages$z = defineMessages({
6653
6594
  updateButton: {
6654
6595
  id: 'NestedAttributes.Details.updateButton',
6655
6596
  description: 'Update button label',
@@ -6734,7 +6675,7 @@ const EditButton = props => {
6734
6675
  formatMessage = _useIntl.formatMessage;
6735
6676
  return jsx(Tooltip, {
6736
6677
  placement: "top",
6737
- title: formatMessage(messages$v.editTooltip),
6678
+ title: formatMessage(messages$z.editTooltip),
6738
6679
  children: jsx(IconButton, {
6739
6680
  label: "Edit",
6740
6681
  isDisabled: props.isDisabled,
@@ -6750,12 +6691,12 @@ const DropChangesConfirmation = props => {
6750
6691
  formatMessage = _useIntl2.formatMessage;
6751
6692
  return jsx(ConfirmationDialog, {
6752
6693
  isOpen: props.isOpen || false,
6753
- title: formatMessage(messages$v.confirmationDialogTitle),
6754
- labelPrimary: formatMessage(messages$v.nestedAttributesConfirmLabel),
6694
+ title: formatMessage(messages$z.confirmationDialogTitle),
6695
+ labelPrimary: formatMessage(messages$z.nestedAttributesConfirmLabel),
6755
6696
  onConfirm: props.onConfirm,
6756
6697
  onCancel: props.onCancel,
6757
6698
  children: jsx(Text.Body, {
6758
- intlMessage: messages$v.confirmationDialogBody
6699
+ intlMessage: messages$z.confirmationDialogBody
6759
6700
  })
6760
6701
  });
6761
6702
  };
@@ -6780,11 +6721,11 @@ const NestedAttributeModalPage = props => {
6780
6721
  children: [jsx(SecondaryButton, {
6781
6722
  isDisabled: !formik.dirty,
6782
6723
  iconLeft: jsx(RevertIcon, {}),
6783
- label: formatMessage(messages$v.cancelButton),
6724
+ label: formatMessage(messages$z.cancelButton),
6784
6725
  onClick: formik.resetForm
6785
6726
  }), jsx(CustomFormModalPage.FormPrimaryButton, {
6786
6727
  isDisabled: !formik.dirty,
6787
- label: formatMessage(messages$v.updateButton),
6728
+ label: formatMessage(messages$z.updateButton),
6788
6729
  onClick: formik.handleSubmit
6789
6730
  })]
6790
6731
  }),
@@ -6814,19 +6755,19 @@ NestedAttributeModalPage.displayName = 'NestedAttributeModalPage';
6814
6755
  const MaxNestingLevelReached = () => jsx(FieldLabel, {
6815
6756
  title: "",
6816
6757
  hint: jsx(Text.Body, {
6817
- intlMessage: messages$w.aboveFifthLevelWarning
6758
+ intlMessage: customFieldsMessages.aboveFifthLevelWarning
6818
6759
  }),
6819
6760
  hintIcon: jsx(WarningIcon, {})
6820
6761
  });
6821
6762
  MaxNestingLevelReached.displayName = 'MaxNestingLevelReached';
6822
6763
  const NestedInputControls = props => {
6823
- const nextNestingLevel = useContext(NestingLevelContext);
6764
+ const nextNestingLevel = useContext(NestingLevelContext$1);
6824
6765
  const _useIntl4 = useIntl(),
6825
6766
  formatMessage = _useIntl4.formatMessage;
6826
6767
  if (nextNestingLevel >= 6) return jsx(MaxNestingLevelReached, {});
6827
6768
  const hasAttributes = props.productType.attributeDefinitions.length > 0;
6828
6769
  if (!hasAttributes) return jsx(Text.Body, {
6829
- intlMessage: messages$v.emptyProductType,
6770
+ intlMessage: messages$z.emptyProductType,
6830
6771
  tone: "secondary"
6831
6772
  });
6832
6773
  return jsxs(Spacings.Inline, {
@@ -6840,7 +6781,7 @@ const NestedInputControls = props => {
6840
6781
  children: props.productType.name
6841
6782
  }), props.isEmpty && jsx("span", {
6842
6783
  children: jsx(Tag, {
6843
- children: formatMessage(messages$w.emptySetItem)
6784
+ children: formatMessage(customFieldsMessages.emptySetItem)
6844
6785
  })
6845
6786
  })]
6846
6787
  }), jsx(EditButton, {
@@ -6862,7 +6803,7 @@ const CustomNestedInput = /*#__PURE__*/memo(props => {
6862
6803
  const parentFormik = useFormikContext();
6863
6804
  const showNotification = useShowNotification();
6864
6805
  const attributesForm = useModalState();
6865
- const nestingLevel = useContext(NestingLevelContext);
6806
+ const nestingLevel = useContext(NestingLevelContext$1);
6866
6807
  const _useNestedProductType = useNestedProductType(props.fieldDefinition),
6867
6808
  productType = _useNestedProductType.productType;
6868
6809
  if (!productType) return null;
@@ -6891,7 +6832,7 @@ const CustomNestedInput = /*#__PURE__*/memo(props => {
6891
6832
  max: "scale",
6892
6833
  children: jsx("div", {
6893
6834
  "data-testid": props.name,
6894
- children: jsx(NestingLevelContext.Provider, {
6835
+ children: jsx(NestingLevelContext$1.Provider, {
6895
6836
  value: nestingLevel + 1,
6896
6837
  children: jsx(Formik, {
6897
6838
  enableReinitialize: true,
@@ -6902,7 +6843,7 @@ const CustomNestedInput = /*#__PURE__*/memo(props => {
6902
6843
  if (nestingLevel !== 0) parentFormik.submitForm();else showNotification({
6903
6844
  kind: 'success',
6904
6845
  domain: DOMAINS.SIDE,
6905
- text: formatMessage(messages$v.attributeUpdateSucceeded)
6846
+ text: formatMessage(messages$z.attributeUpdateSucceeded)
6906
6847
  });
6907
6848
  setSubmitting(false);
6908
6849
  },
@@ -6928,6 +6869,7 @@ const CustomNestedInput = /*#__PURE__*/memo(props => {
6928
6869
  });
6929
6870
  });
6930
6871
  CustomNestedInput.displayName = 'CustomNestedInput';
6872
+ var CustomNestedInput$1 = CustomNestedInput;
6931
6873
 
6932
6874
  function CustomNumberInput(props) {
6933
6875
  const value = props.value ?? '';
@@ -7005,7 +6947,7 @@ CustomCategoryReferenceInput.displayName = 'CustomCategoryReferenceInput';
7005
6947
 
7006
6948
  function CustomChannelReferenceInput(props) {
7007
6949
  const value = props.value?.id || '';
7008
- return jsx(ChannelPickerInput, {
6950
+ return jsx(ChannelPickerInput$1, {
7009
6951
  value: value,
7010
6952
  name: props.name,
7011
6953
  isClearable: !props.fieldDefinition.required,
@@ -7020,7 +6962,7 @@ function CustomChannelReferenceInput(props) {
7020
6962
  }
7021
6963
  CustomChannelReferenceInput.displayName = 'CustomChannelReferenceInput';
7022
6964
 
7023
- var messages$u = defineMessages({
6965
+ var messages$y = defineMessages({
7024
6966
  noProductsFound: {
7025
6967
  id: 'Shared.ProductPickerInput.noProductsFound',
7026
6968
  description: 'The message to display when no products were found',
@@ -7073,7 +7015,7 @@ const ProductPickerInput = _ref => {
7073
7015
  };
7074
7016
  }, [formatLocalizedFieldToString]);
7075
7017
  const prefixSearchFields = useMemo(() => [`masterData.current.name.${dataLocale}`, 'key'], [dataLocale]);
7076
- const loadOptions = useLoadOptions({
7018
+ const loadOptions = useLoadOptions$1({
7077
7019
  query: GetProductsQuery,
7078
7020
  prefixSearchFields
7079
7021
  });
@@ -7094,8 +7036,8 @@ const ProductPickerInput = _ref => {
7094
7036
  setLoadingError(error);
7095
7037
  onError(error);
7096
7038
  }), [loadOptions, onError, convertProductToOption]);
7097
- const loadOptionsDebounced = useDebouncedPromiseCallback(handleLoadOptions, 300);
7098
- const _useHandlers = useHandlers(onChange),
7039
+ const loadOptionsDebounced = useDebouncedPromiseCallback$1(handleLoadOptions, 300);
7040
+ const _useHandlers = useHandlers$1(onChange),
7099
7041
  _useHandlers2 = _slicedToArray(_useHandlers, 2),
7100
7042
  handleInternalInputChange = _useHandlers2[0],
7101
7043
  handleChange = _useHandlers2[1];
@@ -7111,14 +7053,14 @@ const ProductPickerInput = _ref => {
7111
7053
  const tooltipTitle = currentOption?.data?.label ?? '';
7112
7054
  return jsx(Constraints.Horizontal, {
7113
7055
  max: "scale",
7114
- children: currentOption.loading ? jsx(CenteredLoadingSpinner, {}) : jsxs(Spacings.Stack, {
7056
+ children: currentOption.loading ? jsx(CenteredLoadingSpinner$1, {}) : jsxs(Spacings.Stack, {
7115
7057
  scale: "xs",
7116
- children: [jsx(CustomFieldTooltip, {
7058
+ children: [jsx(CustomFieldTooltip$1, {
7117
7059
  title: tooltipTitle,
7118
7060
  children: jsx(AsyncSelectInput, {
7119
7061
  id: name,
7120
7062
  name: name,
7121
- placeholder: formatMessage(messages$u.placeholder),
7063
+ placeholder: formatMessage(messages$y.placeholder),
7122
7064
  loadOptions: loadOptionsDebounced,
7123
7065
  defaultOptions: [],
7124
7066
  isClearable: isClearable,
@@ -7132,7 +7074,7 @@ const ProductPickerInput = _ref => {
7132
7074
  onInputChange: handleInputChange,
7133
7075
  onBlur: onBlur,
7134
7076
  value: currentOption.data,
7135
- noOptionsMessage: () => isLoadingFailed ? null : formatMessage(messages$u.noProductsFound),
7077
+ noOptionsMessage: () => isLoadingFailed ? null : formatMessage(messages$y.noProductsFound),
7136
7078
  hasError: hasError || isLoadingFailed,
7137
7079
  menuPortalZIndex: Z_INDEX_DROPDOWN,
7138
7080
  menuPortalTarget: document.body,
@@ -7146,10 +7088,11 @@ const ProductPickerInput = _ref => {
7146
7088
  });
7147
7089
  };
7148
7090
  ProductPickerInput.displayName = 'ProductPickerInput';
7091
+ var ProductPickerInput$1 = ProductPickerInput;
7149
7092
 
7150
7093
  function CustomProductReferenceInput(props) {
7151
7094
  const value = props.value?.id || '';
7152
- return jsx(ProductPickerInput, {
7095
+ return jsx(ProductPickerInput$1, {
7153
7096
  value: value,
7154
7097
  name: props.name,
7155
7098
  isClearable: !props.fieldDefinition.required,
@@ -7167,7 +7110,7 @@ CustomProductReferenceInput.displayName = 'CustomProductReferenceInput';
7167
7110
 
7168
7111
  function CustomProductTypeReferenceInput(props) {
7169
7112
  const value = props.value?.id || '';
7170
- return jsx(ProductTypePickerInput, {
7113
+ return jsx(ProductTypePickerInput$1, {
7171
7114
  value: value,
7172
7115
  name: props.name,
7173
7116
  isClearable: !props.fieldDefinition.required,
@@ -7184,7 +7127,7 @@ CustomProductTypeReferenceInput.displayName = 'CustomProductTypeReferenceInput';
7184
7127
 
7185
7128
  function CustomRawIdReferenceInput(props) {
7186
7129
  const value = props.value?.id || '';
7187
- return jsx(CustomFieldTooltip, {
7130
+ return jsx(CustomFieldTooltip$1, {
7188
7131
  title: value,
7189
7132
  children: jsx(TextInput, {
7190
7133
  id: props.name,
@@ -7202,7 +7145,7 @@ CustomRawIdReferenceInput.displayName = 'CustomRawIdReferenceInput';
7202
7145
 
7203
7146
  function CustomStateReferenceInput(props) {
7204
7147
  const value = props.value?.id || '';
7205
- return jsx(StatePickerInput, {
7148
+ return jsx(StatePickerInput$1, {
7206
7149
  value: value,
7207
7150
  name: props.name,
7208
7151
  isClearable: !props.fieldDefinition.required,
@@ -7254,7 +7197,7 @@ function CustomTextInput(props) {
7254
7197
  props.renderWarnings && props.handleWarningChange(props.name, props.fieldDefinition, rawValue);
7255
7198
  });
7256
7199
  const tooltipValue = isMultiLine ? '' : value;
7257
- return jsx(CustomFieldTooltip, {
7200
+ return jsx(CustomFieldTooltip$1, {
7258
7201
  title: tooltipValue,
7259
7202
  children: jsx(InputComponent, {
7260
7203
  id: props.name,
@@ -7333,7 +7276,7 @@ const nonSetComponents = {
7333
7276
  [CUSTOM_FIELD_TYPES.time]: CustomTimeInput,
7334
7277
  [CUSTOM_FIELD_TYPES.datetime]: CustomDateTimeInput,
7335
7278
  [CUSTOM_FIELD_TYPES.date]: CustomDateTimeInput,
7336
- [CUSTOM_FIELD_TYPES.nested]: CustomNestedInput
7279
+ [CUSTOM_FIELD_TYPES.nested]: CustomNestedInput$1
7337
7280
  };
7338
7281
  const CustomFieldInput = /*#__PURE__*/memo(props => {
7339
7282
  const InputComponent = useMemo(() => {
@@ -7366,8 +7309,9 @@ const CustomFieldInput = /*#__PURE__*/memo(props => {
7366
7309
  });
7367
7310
  });
7368
7311
  CustomFieldInput.displayName = 'CustomFieldInput';
7312
+ var CustomFieldInput$1 = CustomFieldInput;
7369
7313
 
7370
- var messages$t = defineMessages({
7314
+ var messages$x = defineMessages({
7371
7315
  productReferenceLabel: {
7372
7316
  id: 'CustomFieldsLabel.productReferenceLabel',
7373
7317
  description: 'Label shown above the product picker input.',
@@ -7436,7 +7380,7 @@ const CustomFieldsLabelHint = _ref2 => {
7436
7380
  children: [jsx(WarningIcon, {
7437
7381
  size: "medium",
7438
7382
  color: "warning"
7439
- }), jsx(FormattedMessage, _objectSpread$P({}, messages$t.cartDiscountMoreThan500))]
7383
+ }), jsx(FormattedMessage, _objectSpread$P({}, messages$x.cartDiscountMoreThan500))]
7440
7384
  });
7441
7385
  }
7442
7386
  return formatLocalizedString(fieldDefinition, {
@@ -7450,8 +7394,8 @@ function CustomFieldsProductTypeReferenceSubtitle() {
7450
7394
  formatMessage = _useIntl.formatMessage;
7451
7395
  const _usePimStatus = usePimStatus(),
7452
7396
  isProjectIndexed = _usePimStatus.isProjectIndexed;
7453
- if (isProjectIndexed) return formatMessage(messages$t.productTypeReferenceLabelI);
7454
- return formatMessage(messages$t.productTypeReferenceLabel);
7397
+ if (isProjectIndexed) return formatMessage(messages$x.productTypeReferenceLabelI);
7398
+ return formatMessage(messages$x.productTypeReferenceLabel);
7455
7399
  }
7456
7400
 
7457
7401
  // TODO(pa3): this logic may be misplaced and probably
@@ -7467,7 +7411,7 @@ function CustomFieldsLabelSubtitle(_ref3) {
7467
7411
  const referenceTypeId = type.referenceTypeId;
7468
7412
  const referenceTypeName = capitalizeFirst(referenceTypeId);
7469
7413
  if (_includesInstanceProperty(_context = [SEARCHABLE_REFERENCES.category, SEARCHABLE_REFERENCES.cartDiscount]).call(_context, referenceTypeId)) return referenceTypeName;
7470
- return referenceTypeId === SEARCHABLE_REFERENCES.product ? formatMessage(messages$t.productReferenceLabel) : referenceTypeId === SEARCHABLE_REFERENCES.productType ? jsx(CustomFieldsProductTypeReferenceSubtitle, {}) : referenceTypeId === SEARCHABLE_REFERENCES.channel ? formatMessage(messages$t.channelReferenceLabel) : referenceTypeId === SEARCHABLE_REFERENCES.state ? formatMessage(messages$t.stateReferenceLabel) : `${referenceTypeName} ID`;
7414
+ 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) : `${referenceTypeName} ID`;
7471
7415
  }
7472
7416
  const Portal = props => /*#__PURE__*/ReactDOM.createPortal(props.children, document.body);
7473
7417
  var _ref$1 = process.env.NODE_ENV === "production" ? {
@@ -7485,7 +7429,7 @@ function CustomFieldsCountIndicator(_ref4) {
7485
7429
  const _useIntl3 = useIntl(),
7486
7430
  formatMessage = _useIntl3.formatMessage;
7487
7431
  return assignedAttributeGroups?.length > 1 ? jsx(Tooltip, {
7488
- title: formatMessage(messages$t.attributeGroupCountTooltip, {
7432
+ title: formatMessage(messages$x.attributeGroupCountTooltip, {
7489
7433
  attributeGroups: _mapInstanceProperty(assignedAttributeGroups).call(assignedAttributeGroups, assignedAttributeGroup => formatLocalizedField(assignedAttributeGroup.nameAllLocales)).join(', '),
7490
7434
  count: assignedAttributeGroups.length
7491
7435
  }),
@@ -7540,8 +7484,9 @@ const CustomFieldsLabel = /*#__PURE__*/memo(_ref5 => {
7540
7484
  });
7541
7485
  });
7542
7486
  CustomFieldsLabel.displayName = 'CustomFieldsTitle';
7487
+ var CustomFieldsLabel$1 = CustomFieldsLabel;
7543
7488
 
7544
- var messages$s = defineMessages({
7489
+ var messages$w = defineMessages({
7545
7490
  referencedProductType: {
7546
7491
  id: 'NestedAttributes.referencedProductType',
7547
7492
  description: 'Product type referenced hint',
@@ -7552,7 +7497,7 @@ var messages$s = defineMessages({
7552
7497
  function ownKeys$O(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7553
7498
  function _objectSpread$O(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$O(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$O(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
7554
7499
  function ProductTypeReference(props) {
7555
- const productTypeMessage = _objectSpread$O(_objectSpread$O({}, messages$s.referencedProductType), {}, {
7500
+ const productTypeMessage = _objectSpread$O(_objectSpread$O({}, messages$w.referencedProductType), {}, {
7556
7501
  values: {
7557
7502
  productTypeName: props.productType.name
7558
7503
  }
@@ -7580,7 +7525,7 @@ function CustomNestedFieldInput(props) {
7580
7525
  })]
7581
7526
  });
7582
7527
  if (!productType) return null;
7583
- const InputComponent = isSet ? CustomInputSet : CustomNestedInput;
7528
+ const InputComponent = isSet ? CustomInputSet : CustomNestedInput$1;
7584
7529
  return jsxs(Fragment, {
7585
7530
  children: [jsx(ProductTypeReference, {
7586
7531
  productType: productType
@@ -7804,7 +7749,7 @@ const CustomFieldsInternal = _ref => {
7804
7749
  };
7805
7750
  return undefined;
7806
7751
  };
7807
- const FieldComponent = isNested(fieldDefinition) ? CustomNestedFieldInput : CustomFieldInput;
7752
+ const FieldComponent = isNested(fieldDefinition) ? CustomNestedFieldInput : CustomFieldInput$1;
7808
7753
  const fieldProps = {
7809
7754
  name: fieldName,
7810
7755
  value: value,
@@ -7832,7 +7777,7 @@ const CustomFieldsInternal = _ref => {
7832
7777
  "aria-invalid": _Object$keys(fieldErrors ?? {}).length > 0,
7833
7778
  "aria-errormessage": `${fieldName}-error`,
7834
7779
  id: `${fieldName}-error`,
7835
- children: [jsx(CustomFieldsLabel, {
7780
+ children: [jsx(CustomFieldsLabel$1, {
7836
7781
  name: fieldName,
7837
7782
  fieldDefinition: fieldDefinition
7838
7783
  }), jsxs(Spacings.Stack, {
@@ -7840,7 +7785,7 @@ const CustomFieldsInternal = _ref => {
7840
7785
  alignItems: "stretch",
7841
7786
  children: [WrapperComponent ? jsx(WrapperComponent, {
7842
7787
  children: Field
7843
- }) : Field, props.renderWarnings && status?.warnings[fieldName] && props.renderCustomWarnings(fieldDefinition), jsx(CustomFieldErrors, {
7788
+ }) : Field, props.renderWarnings && status?.warnings[fieldName] && props.renderCustomWarnings(fieldDefinition), jsx(CustomFieldErrors$1, {
7844
7789
  isTouched: isTouched,
7845
7790
  errors: fieldErrors
7846
7791
  })]
@@ -7856,6 +7801,7 @@ CustomFieldsInternal.displayName = 'CustomFieldsInternal';
7856
7801
  CustomFieldsInternal.defaultProps = {
7857
7802
  renderCustomWarnings: () => null
7858
7803
  };
7804
+ var CustomFieldsInternal$1 = CustomFieldsInternal;
7859
7805
 
7860
7806
  function ownKeys$I(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7861
7807
  function _objectSpread$I(e) { for (var r = 1; r < arguments.length; r++) { var _context7, _context8; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context7 = ownKeys$I(Object(t), !0)).call(_context7, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context8 = ownKeys$I(Object(t))).call(_context8, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -7951,7 +7897,7 @@ function ProductAttributes(_ref) {
7951
7897
  max: "scale",
7952
7898
  children: jsx(Spacings.Stack, {
7953
7899
  scale: "xl",
7954
- children: jsx(CustomFieldsInternal, {
7900
+ children: jsx(CustomFieldsInternal$1, {
7955
7901
  name: props.name,
7956
7902
  isReadOnly: props.isReadOnly,
7957
7903
  isDisabled: props.isDisabled,
@@ -7986,7 +7932,7 @@ function ProductAttributeInput(props) {
7986
7932
  // Just don't want to go with another several-weeks long refactoring and
7987
7933
  // will address this step by step.
7988
7934
  return jsx(Formik, {
7989
- children: jsx(CustomFieldInput, {
7935
+ children: jsx(CustomFieldInput$1, {
7990
7936
  value: value,
7991
7937
  name: props.name,
7992
7938
  isDisabled: props.isDisabled,
@@ -8072,7 +8018,7 @@ const emptyStoreOption$1 = intl => [{
8072
8018
  function ProductSelectionsAsyncSelectDropdown(props) {
8073
8019
  const intl = useIntl();
8074
8020
  const enableExcludingProducts = useFeatureToggle(EXCLUDING_PRODUCTS);
8075
- const productSelectionsFetcher = useProductSelectionsFetcher({
8021
+ const productSelectionsFetcher = useProductSelectionsFetcher$1({
8076
8022
  limit: props.upperProductSelectionsLimit
8077
8023
  });
8078
8024
  const _useApplicationContex = useApplicationContext(applicationContext => ({
@@ -8128,7 +8074,7 @@ function ProductSelectionsAsyncSelectDropdown(props) {
8128
8074
  options: emptyStoreOption$1(intl)
8129
8075
  }];
8130
8076
  };
8131
- if (productSelectionsFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
8077
+ if (productSelectionsFetcher.isLoading) return jsx(CenteredLoadingSpinner$1, {});
8132
8078
  return jsx(AsyncSelectField, {
8133
8079
  id: props.id,
8134
8080
  name: props.name,
@@ -8188,7 +8134,7 @@ const mapProductSelectionsToOptions$1 = memoize(function () {
8188
8134
  function ProductSelectionBasicSelectDropdown(props) {
8189
8135
  const intl = useIntl();
8190
8136
  const enableExcludingProducts = useFeatureToggle(EXCLUDING_PRODUCTS);
8191
- const productSelectionsFetcher = useProductSelectionsFetcher({
8137
+ const productSelectionsFetcher = useProductSelectionsFetcher$1({
8192
8138
  limit: props.lowerProductSelectionsLimit
8193
8139
  });
8194
8140
  const _useApplicationContex = useApplicationContext(applicationContext => ({
@@ -8197,7 +8143,7 @@ function ProductSelectionBasicSelectDropdown(props) {
8197
8143
  })),
8198
8144
  projectLanguages = _useApplicationContex.projectLanguages,
8199
8145
  dataLocale = _useApplicationContex.dataLocale;
8200
- if (productSelectionsFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
8146
+ if (productSelectionsFetcher.isLoading) return jsx(CenteredLoadingSpinner$1, {});
8201
8147
  const productSelections = productSelectionsFetcher.productSelections?.results ?? [];
8202
8148
  const filteredProductSelections = _filterInstanceProperty(productSelections).call(productSelections, ps => {
8203
8149
  var _context;
@@ -8256,6 +8202,7 @@ const useProductSelectionsByFieldFetcher = (productSelections, predicateField) =
8256
8202
  isLoading: productSelectionsQuery.loading
8257
8203
  };
8258
8204
  };
8205
+ var useProductSelectionsByFieldFetcher$1 = useProductSelectionsByFieldFetcher;
8259
8206
 
8260
8207
  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: "mode" }, 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 mode\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
8261
8208
  const mapProductSelectionsToOptions = memoize(_ref => {
@@ -8293,7 +8240,7 @@ const createQueryVariables$3 = _ref3 => {
8293
8240
  var _context;
8294
8241
  let searchText = _ref3.searchText;
8295
8242
  const sanitizedSearchText = sanitize(_trimInstanceProperty(searchText).call(searchText, searchText));
8296
- const idQuery = isUUID(sanitizedSearchText) && `id = "${sanitizedSearchText}"`;
8243
+ const idQuery = isUUID$1(sanitizedSearchText) && `id = "${sanitizedSearchText}"`;
8297
8244
  const keyQuery = `key = "${sanitizedSearchText}"`;
8298
8245
  const searchTextQuery = _filterInstanceProperty(_context = [idQuery, keyQuery]).call(_context, Boolean).join(' or ');
8299
8246
  return {
@@ -8315,7 +8262,7 @@ function ProductSelectionsSearchSelectDropdown(props) {
8315
8262
  })),
8316
8263
  projectLanguages = _useApplicationContex.projectLanguages,
8317
8264
  dataLocale = _useApplicationContex.dataLocale;
8318
- const productSelectionsByFieldFetcher = useProductSelectionsByFieldFetcher(props.value, props.renderSelectInputOptionValuesByField);
8265
+ const productSelectionsByFieldFetcher = useProductSelectionsByFieldFetcher$1(props.value, props.renderSelectInputOptionValuesByField);
8319
8266
  const handleLoadOptions = async searchText => {
8320
8267
  const _await$client$query = await client.query({
8321
8268
  query: ProductSelectionsPickerFetcher,
@@ -8348,7 +8295,7 @@ function ProductSelectionsSearchSelectDropdown(props) {
8348
8295
  const currentProductSelection = _findInstanceProperty(productionSelectionResults).call(productionSelectionResults, productSelection => productSelection.id === productSelectionId);
8349
8296
  props.onChange(currentProductSelection);
8350
8297
  };
8351
- if (productSelectionsByFieldFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
8298
+ if (productSelectionsByFieldFetcher.isLoading) return jsx(CenteredLoadingSpinner$1, {});
8352
8299
  return jsx(SearchSelectField, {
8353
8300
  id: props.id,
8354
8301
  name: props.name,
@@ -8409,7 +8356,7 @@ function ModeSelectInputOption(props) {
8409
8356
  function ownKeys$F(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
8410
8357
  function _objectSpread$F(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$F(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$F(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
8411
8358
  function ProductSelectionsPicker(props) {
8412
- const productSelectionsTotalFetcher = useProductSelectionsTotalFetcher();
8359
+ const productSelectionsTotalFetcher = useProductSelectionsTotalFetcher$1();
8413
8360
  const components = useMemo(() => {
8414
8361
  return {
8415
8362
  Option: optionInnerProps => {
@@ -8426,7 +8373,7 @@ function ProductSelectionsPicker(props) {
8426
8373
  }
8427
8374
  };
8428
8375
  }, [props.optionType]);
8429
- if (productSelectionsTotalFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
8376
+ if (productSelectionsTotalFetcher.isLoading) return jsx(CenteredLoadingSpinner$1, {});
8430
8377
  const CustomProductSelectionsPicker = productSelectionsTotalFetcher.total <= props.lowerProductSelectionsLimit ? ProductSelectionBasicSelectDropdown : productSelectionsTotalFetcher.total <= props.upperProductSelectionsLimit ? ProductSelectionsAsyncSelectDropdown : ProductSelectionsSearchSelectDropdown;
8431
8378
  return jsx(Spacings.Stack, {
8432
8379
  children: jsx(CustomProductSelectionsPicker, _objectSpread$F(_objectSpread$F({}, props), {}, {
@@ -8466,6 +8413,7 @@ const RequiredIndicator = _ref => {
8466
8413
  });
8467
8414
  };
8468
8415
  RequiredIndicator.displayName = 'RequiredIndicator';
8416
+ var RequiredIndicator$1 = RequiredIndicator;
8469
8417
 
8470
8418
  const ScrollToFieldError = () => {
8471
8419
  const formik = useFormikContext();
@@ -8501,8 +8449,9 @@ const ScrollToFieldError = () => {
8501
8449
  }, [dataLocale, isValid, submitCount]);
8502
8450
  return null;
8503
8451
  };
8452
+ var ScrollToFieldError$1 = ScrollToFieldError;
8504
8453
 
8505
- var messages$r = defineMessages({
8454
+ var messages$v = defineMessages({
8506
8455
  buttonLabel: {
8507
8456
  id: 'SearchInput.buttonLabel',
8508
8457
  description: 'Label for "Search" button.',
@@ -8556,14 +8505,15 @@ const SelectableFieldSearchInput = props => {
8556
8505
  });
8557
8506
  },
8558
8507
  onReset: props.onReset,
8559
- placeholder: props.placeholder ?? intl.formatMessage(messages$r.placeholder),
8508
+ placeholder: props.placeholder ?? intl.formatMessage(messages$v.placeholder),
8560
8509
  isDisabled: props.disabled
8561
8510
  })
8562
8511
  });
8563
8512
  };
8564
8513
  SelectableFieldSearchInput.displayName = 'SelectableFieldSearchInput';
8514
+ var SelectableFieldSearchInput$1 = SelectableFieldSearchInput;
8565
8515
 
8566
- var messages$q = defineMessages({
8516
+ var messages$u = defineMessages({
8567
8517
  basicSelectInputPlaceholder: {
8568
8518
  id: 'Shared.StoreSelectInput.basicSelectInputPlaceholder',
8569
8519
  description: 'The placeholder shown for basic select input',
@@ -8666,7 +8616,7 @@ const getValueFromOptions$1 = _ref => {
8666
8616
  return _findInstanceProperty(mappedStoresListOptions).call(mappedStoresListOptions, store => currentlySelectedStores === store.value);
8667
8617
  };
8668
8618
  const emptyStoreOption = intl => [{
8669
- label: intl.formatMessage(messages$q.asyncSelectDropdownTypeAheadPrompt),
8619
+ label: intl.formatMessage(messages$u.asyncSelectDropdownTypeAheadPrompt),
8670
8620
  value: undefined,
8671
8621
  isDisabled: true
8672
8622
  }];
@@ -8679,7 +8629,7 @@ const StoresAsyncSelectInput = props => {
8679
8629
  dataLocale = _useApplicationContex.dataLocale,
8680
8630
  projectLanguages = _useApplicationContex.projectLanguages;
8681
8631
  const keysOfStores = props.allAccessibleStoreKeysThroughDataFencePermissions;
8682
- const storesListFetcher = useStoresListFetcher({
8632
+ const storesListFetcher = useStoresListFetcher$1({
8683
8633
  limit: 500,
8684
8634
  offset: 0,
8685
8635
  sort: 'createdAt asc',
@@ -8721,12 +8671,12 @@ const StoresAsyncSelectInput = props => {
8721
8671
  options: emptyStoreOption(intl)
8722
8672
  }];
8723
8673
  };
8724
- if (storesListFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
8674
+ if (storesListFetcher.isLoading) return jsx(CenteredLoadingSpinner$1, {});
8725
8675
  return jsxs(Fragment, {
8726
8676
  children: [jsx(AsyncSelectInput, _objectSpread$E(_objectSpread$E(_objectSpread$E({
8727
8677
  id: props.id,
8728
8678
  name: props.name,
8729
- placeholder: intl.formatMessage(messages$q.basicSelectInputPlaceholder),
8679
+ placeholder: intl.formatMessage(messages$u.basicSelectInputPlaceholder),
8730
8680
  horizontalConstraint: props.horizontalConstraint,
8731
8681
  loadOptions: handleLoadOptions,
8732
8682
  defaultOptions: true,
@@ -8768,6 +8718,7 @@ StoresAsyncSelectInput.displayName = 'StoresAsyncSelectInput';
8768
8718
  StoresAsyncSelectInput.defaultProps = {
8769
8719
  shouldFetchProductSelections: false
8770
8720
  };
8721
+ var StoresAsyncSelectInput$1 = StoresAsyncSelectInput;
8771
8722
 
8772
8723
  function ownKeys$D(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
8773
8724
  function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$D(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$D(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -8784,7 +8735,7 @@ const StoresBasicSelectInput = props => {
8784
8735
  dataLocale = _useApplicationContex.dataLocale,
8785
8736
  projectLanguages = _useApplicationContex.projectLanguages;
8786
8737
  const keysOfStores = props.allAccessibleStoreKeysThroughDataFencePermissions;
8787
- const storesListFetcher = useStoresListFetcher({
8738
+ const storesListFetcher = useStoresListFetcher$1({
8788
8739
  limit: 60,
8789
8740
  offset: 0,
8790
8741
  sort: 'createdAt asc',
@@ -8824,12 +8775,12 @@ const StoresBasicSelectInput = props => {
8824
8775
  });
8825
8776
  }
8826
8777
  };
8827
- if (storesListFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
8778
+ if (storesListFetcher.isLoading) return jsx(CenteredLoadingSpinner$1, {});
8828
8779
  return jsxs(Fragment, {
8829
8780
  children: [jsx(SelectInput, _objectSpread$D(_objectSpread$D(_objectSpread$D({
8830
8781
  id: props.id,
8831
8782
  name: props.name,
8832
- placeholder: props.placeholder || intl.formatMessage(messages$q.basicSelectInputPlaceholder),
8783
+ placeholder: props.placeholder || intl.formatMessage(messages$u.basicSelectInputPlaceholder),
8833
8784
  horizontalConstraint: props.horizontalConstraint,
8834
8785
  options: mappedStoresListOptions,
8835
8786
  isMulti: props.isMulti,
@@ -8865,6 +8816,7 @@ StoresBasicSelectInput.displayName = 'StoresBasicSelectInput';
8865
8816
  StoresBasicSelectInput.defaultProps = {
8866
8817
  shouldFetchProductSelections: false
8867
8818
  };
8819
+ var StoresBasicSelectInput$1 = StoresBasicSelectInput;
8868
8820
 
8869
8821
  var TotalNumberOfStores = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "TotalNumberOfStores" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", alias: { kind: "Name", value: "totalNumberOfStores" }, name: { kind: "Name", value: "stores" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 76, source: { body: "query TotalNumberOfStores {\n totalNumberOfStores: stores {\n total\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
8870
8822
  const useTotalNumberOfStoresFetcher = projectKey => {
@@ -8880,18 +8832,7 @@ const useTotalNumberOfStoresFetcher = projectKey => {
8880
8832
  isLoading: totalNumberOfStoresQuery.loading
8881
8833
  };
8882
8834
  };
8883
-
8884
- const handlers$2 = {
8885
- TotalNumberOfStores: {
8886
- all: total => graphql.query('TotalNumberOfStores', (req, res, ctx) => {
8887
- return res(ctx.data({
8888
- totalNumberOfStores: {
8889
- total
8890
- }
8891
- }));
8892
- })
8893
- }
8894
- };
8835
+ var useTotalNumberOfStoresFetcher$1 = useTotalNumberOfStoresFetcher;
8895
8836
 
8896
8837
  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 } } } };
8897
8838
  const createQueryVariables$2 = (stores, predicateField, shouldFetchProductSelections) => ({
@@ -8919,6 +8860,7 @@ const useStoresByFieldFetcher = function (stores, predicateField, projectKey) {
8919
8860
  isLoading: storesQuery.loading
8920
8861
  };
8921
8862
  };
8863
+ var useStoresByFieldFetcher$1 = useStoresByFieldFetcher;
8922
8864
 
8923
8865
  function ownKeys$C(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
8924
8866
  function _objectSpread$C(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$C(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$C(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -8957,7 +8899,7 @@ const createQueryVariables$1 = _ref => {
8957
8899
  excludeProductSelections: !shouldFetchProductSelections
8958
8900
  };
8959
8901
  }
8960
- const idQuery = isUUID(sanitizedSearchText) && `id = "${sanitizedSearchText}"`;
8902
+ const idQuery = isUUID$1(sanitizedSearchText) && `id = "${sanitizedSearchText}"`;
8961
8903
  const nameQuery = `name(${dataLocale} = "${sanitizedSearchText}")`;
8962
8904
  const searchTextQuery = _filterInstanceProperty(_context2 = [idQuery, nameQuery, keyQuery]).call(_context2, Boolean).join(' or ');
8963
8905
  return {
@@ -9000,7 +8942,7 @@ const StoresSearchSelectInput = props => {
9000
8942
  projectLanguages = _useApplicationContex.projectLanguages;
9001
8943
  const intl = useIntl();
9002
8944
  const client = useApolloClient();
9003
- const storesByFieldFetcher = useStoresByFieldFetcher(props.value, props.renderSelectInputOptionValuesByField, props.projectKey, props.shouldFetchProductSelections);
8945
+ const storesByFieldFetcher = useStoresByFieldFetcher$1(props.value, props.renderSelectInputOptionValuesByField, props.projectKey, props.shouldFetchProductSelections);
9004
8946
  const hasError = AsyncSelectInput.isTouched(props.touched) && hasErrors(props.errors) || props.hasError;
9005
8947
  const handleLoadOptions = searchText => {
9006
8948
  const extractMatchedStores = client.query({
@@ -9042,16 +8984,16 @@ const StoresSearchSelectInput = props => {
9042
8984
  className: styles$9.customLabel,
9043
8985
  children: props?.renderLabel && props?.renderLabel
9044
8986
  }), jsx("div", {
9045
- children: intl.formatMessage(inputValue ? messages$q.searchSelectInputNoOptionsFoundMessage : messages$q.searchSelectInputNoValueMessage)
8987
+ children: intl.formatMessage(inputValue ? messages$u.searchSelectInputNoOptionsFoundMessage : messages$u.searchSelectInputNoValueMessage)
9046
8988
  })]
9047
8989
  });
9048
8990
  };
9049
- if (storesByFieldFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
8991
+ if (storesByFieldFetcher.isLoading) return jsx(CenteredLoadingSpinner$1, {});
9050
8992
  return jsxs(Fragment, {
9051
8993
  children: [jsx(SearchSelectInput, _objectSpread$C(_objectSpread$C({
9052
8994
  id: props.id,
9053
8995
  name: props.name,
9054
- placeholder: intl.formatMessage(messages$q.searchSelectInputPlaceholder),
8996
+ placeholder: intl.formatMessage(messages$u.searchSelectInputPlaceholder),
9055
8997
  horizontalConstraint: props.horizontalConstraint,
9056
8998
  loadOptions: loadOptionsDebounced,
9057
8999
  defaultOptions: false,
@@ -9066,7 +9008,7 @@ const StoresSearchSelectInput = props => {
9066
9008
  }),
9067
9009
  onChange: props.onChange,
9068
9010
  onBlur: props.onBlur,
9069
- loadingMessage: intl.formatMessage(messages$q.searchSelectInputLoadingMessage),
9011
+ loadingMessage: intl.formatMessage(messages$u.searchSelectInputLoadingMessage),
9070
9012
  noOptionsMessage: renderNoOptions,
9071
9013
  isDisabled: props.isDisabled || storesByFieldFetcher.isLoading,
9072
9014
  isReadOnly: props.isReadOnly,
@@ -9095,6 +9037,7 @@ StoresSearchSelectInput.displayName = 'StoresSearchSelectInput';
9095
9037
  StoresSearchSelectInput.defaultProps = {
9096
9038
  shouldFetchProductSelections: false
9097
9039
  };
9040
+ var StoresSearchSelectInput$1 = StoresSearchSelectInput;
9098
9041
 
9099
9042
  function ownKeys$B(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9100
9043
  function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$B(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$B(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -9102,7 +9045,7 @@ var styles$8 = {
9102
9045
  "customOption": "store-select-input-module__customOption___2SC00"
9103
9046
  };
9104
9047
  const StoreSelectInput = props => {
9105
- const totalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher(props.projectKey);
9048
+ const totalNumberOfStoresFetcher = useTotalNumberOfStoresFetcher$1(props.projectKey);
9106
9049
  const components = useMemo(() => {
9107
9050
  return {
9108
9051
  // eslint-disable-next-line react/display-name
@@ -9121,8 +9064,8 @@ const StoreSelectInput = props => {
9121
9064
  }
9122
9065
  };
9123
9066
  }, [props.optionType, totalNumberOfStoresFetcher.total, props.upperStoresLimit]);
9124
- if (totalNumberOfStoresFetcher.isLoading) return jsx(CenteredLoadingSpinner, {});
9125
- const CustomStoreSelectInput = totalNumberOfStoresFetcher.total <= props.lowerStoresLimit ? StoresBasicSelectInput : totalNumberOfStoresFetcher.total <= props.upperStoresLimit ? StoresAsyncSelectInput : StoresSearchSelectInput;
9067
+ if (totalNumberOfStoresFetcher.isLoading) return jsx(CenteredLoadingSpinner$1, {});
9068
+ const CustomStoreSelectInput = totalNumberOfStoresFetcher.total <= props.lowerStoresLimit ? StoresBasicSelectInput$1 : totalNumberOfStoresFetcher.total <= props.upperStoresLimit ? StoresAsyncSelectInput$1 : StoresSearchSelectInput$1;
9126
9069
  return jsx(CustomStoreSelectInput, _objectSpread$B(_objectSpread$B({
9127
9070
  menuIsOpen: props.menuIsOpen,
9128
9071
  placeholder: props.placeholder,
@@ -9167,6 +9110,7 @@ StoreSelectInput.defaultProps = {
9167
9110
  optionType: 'double-property',
9168
9111
  shouldFetchProductSelections: false
9169
9112
  };
9113
+ var StoreSelectInput$1 = StoreSelectInput;
9170
9114
 
9171
9115
  function ownKeys$A(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9172
9116
  function _objectSpread$A(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$A(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$A(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -9183,7 +9127,7 @@ const StoreSelectField = props => {
9183
9127
  htmlFor: props.id,
9184
9128
  hasRequiredIndicator: props.isRequired,
9185
9129
  isBold: true
9186
- }), jsx(StoreSelectInput, _objectSpread$A(_objectSpread$A({
9130
+ }), jsx(StoreSelectInput$1, _objectSpread$A(_objectSpread$A({
9187
9131
  projectKey: props.projectKey,
9188
9132
  id: props.id,
9189
9133
  name: props.name,
@@ -9221,6 +9165,7 @@ StoreSelectField.defaultProps = {
9221
9165
  upperStoresLimit: UPPER_STORES_LIMIT,
9222
9166
  mappedValueField: 'id'
9223
9167
  };
9168
+ var StoreSelectField$1 = StoreSelectField;
9224
9169
 
9225
9170
  function ownKeys$z(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9226
9171
  function _objectSpread$z(e) { for (var r = 1; r < arguments.length; r++) { var _context5, _context6; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context5 = ownKeys$z(Object(t), !0)).call(_context5, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context6 = ownKeys$z(Object(t))).call(_context6, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -9240,7 +9185,7 @@ const validateRequired = value => {
9240
9185
  };
9241
9186
  const VALIDATOR_REQUIRED = {
9242
9187
  name: 'required',
9243
- message: messages$C.required,
9188
+ message: validationMessages.required,
9244
9189
  permanent: true,
9245
9190
  validators: {
9246
9191
  change(value) {
@@ -9254,7 +9199,7 @@ const VALIDATOR_REQUIRED = {
9254
9199
  };
9255
9200
  const VALIDATOR_NUMERIC = {
9256
9201
  name: 'numeric',
9257
- message: messages$C.numeric,
9202
+ message: validationMessages.numeric,
9258
9203
  permanent: false,
9259
9204
  validators: {
9260
9205
  change: v => {
@@ -9269,7 +9214,7 @@ const VALIDATOR_NUMERIC = {
9269
9214
  };
9270
9215
  const VALIDATOR_INTEGER = {
9271
9216
  name: 'integer',
9272
- message: messages$C.integer,
9217
+ message: validationMessages.integer,
9273
9218
  permanent: false,
9274
9219
  validators: {
9275
9220
  change: v => {
@@ -9284,7 +9229,7 @@ const VALIDATOR_INTEGER = {
9284
9229
  };
9285
9230
  ({
9286
9231
  name: 'email',
9287
- message: messages$C.email,
9232
+ message: validationMessages.email,
9288
9233
  permanent: false,
9289
9234
  validators: {
9290
9235
  // Note: it's a bit weird to validate it on every change,
@@ -9570,21 +9515,13 @@ const mapDataToProps = _ref => {
9570
9515
  fetchTypeDefinitionsQuery
9571
9516
  };
9572
9517
  };
9573
- var customFieldDefinitionsConnector = flowRight(graphql$1(FetchTypeDefinitionsQuery, {
9518
+ var customFieldDefinitionsConnector = flowRight(graphql(FetchTypeDefinitionsQuery, {
9574
9519
  skip: ownProps => ownProps.isDisabled,
9575
9520
  name: 'fetchTypeDefinitionsQuery',
9576
9521
  options: mapPropsToOptions,
9577
9522
  props: mapDataToProps
9578
9523
  }))(CustomFieldDefinitionsConnector);
9579
9524
 
9580
- const handlers$1 = {
9581
- TypeDefinitions: {
9582
- all: typeDefinitions => graphql.query('FetchTypeDefinitionsQuery', (req, res, ctx) => res(ctx.data({
9583
- typeDefinitions
9584
- })))
9585
- }
9586
- };
9587
-
9588
9525
  function ownKeys$x(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9589
9526
  function _objectSpread$x(e) { for (var r = 1; r < arguments.length; r++) { var _context4, _context5; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context4 = ownKeys$x(Object(t), !0)).call(_context4, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context5 = ownKeys$x(Object(t))).call(_context5, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
9590
9527
  const restDocToForm = customFieldsFromRestResponse => {
@@ -9712,7 +9649,7 @@ const createGraphQlOptions = ownProps => {
9712
9649
  }
9713
9650
  };
9714
9651
  };
9715
- var CustomFieldTypeDefinitionsConnector$1 = hoistNonReactStatics(graphql$1(FetchTypeDefinitionsWithNamesQuery, {
9652
+ var CustomFieldTypeDefinitionsConnector$1 = hoistNonReactStatics(graphql(FetchTypeDefinitionsWithNamesQuery, {
9716
9653
  name: 'fetchTypeDefinitionsQuery',
9717
9654
  skip: ownProps => ownProps.isDisabled,
9718
9655
  options: createGraphQlOptions
@@ -9729,7 +9666,7 @@ const CustomFields = props => {
9729
9666
  css: /*#__PURE__*/css("min-width:", props.isWidthExpanded ? '100%' : customProperties.constraint11, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:CustomFields;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImN1c3RvbS1maWVsZHMuanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWVjIiwiZmlsZSI6ImN1c3RvbS1maWVsZHMuanN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7IHVzZUZvcm1pa0NvbnRleHQgfSBmcm9tICdmb3JtaWsnO1xuaW1wb3J0IHsgY3VzdG9tUHJvcGVydGllcywgU3BhY2luZ3MgfSBmcm9tICdAY29tbWVyY2V0b29scy1mcm9udGVuZC91aS1raXQnO1xuaW1wb3J0IEN1c3RvbUZpZWxkc0ludGVybmFsIGZyb20gJy4vY3VzdG9tLWZpZWxkcy1pbnRlcm5hbCc7XG5cbmNvbnN0IG5vcENvbnZlcnRlciA9IChmaWVsZE5hbWUsIGZpZWxkVmFsdWUpID0+IGZpZWxkVmFsdWU7XG5cbmNvbnN0IEN1c3RvbUZpZWxkcyA9IChwcm9wcykgPT4ge1xuICBjb25zdCB7IHNldEZpZWxkVmFsdWUgfSA9IHVzZUZvcm1pa0NvbnRleHQoKTtcblxuICAvLyBFbnN1cmUgeW91IHBhc3MgaXNXaWR0aEV4cGFuZGVkPXRydWUgd2hlbiBhZGRpbmcgdGhlIG5ldyBsYXlvdXQgY29tcG9uZW50IHNvIHRoZSBjdXN0b20gZmllbGRzXG4gIC8vIGNhbiBleHBhbmQgdG8gZmlsbCB0aGUgd2lkdGggb2YgdGhlIGxheW91dC5cbiAgcmV0dXJuIChcbiAgICA8ZGl2XG4gICAgICBjc3M9e2Nzc2BcbiAgICAgICAgbWluLXdpZHRoOiAke3Byb3BzLmlzV2lkdGhFeHBhbmRlZFxuICAgICAgICAgID8gJzEwMCUnXG4gICAgICAgICAgOiBjdXN0b21Qcm9wZXJ0aWVzLmNvbnN0cmFpbnQxMX07XG4gICAgICBgfVxuICAgID5cbiAgICAgIDxTcGFjaW5ncy5TdGFjayBzY2FsZT1cInhsXCI+XG4gICAgICAgIDxDdXN0b21GaWVsZHNJbnRlcm5hbFxuICAgICAgICAgIG5hbWU9e3Byb3BzLm5hbWV9XG4gICAgICAgICAgaXNSZWFkT25seT17cHJvcHMuaXNSZWFkT25seX1cbiAgICAgICAgICBpc0Rpc2FibGVkPXtwcm9wcy5pc0Rpc2FibGVkfVxuICAgICAgICAgIGZpZWxkRGVmaW5pdGlvbnM9e3Byb3BzLmZpZWxkRGVmaW5pdGlvbnN9XG4gICAgICAgICAgc2V0RmllbGRWYWx1ZT17c2V0RmllbGRWYWx1ZX1cbiAgICAgICAgICBpbnB1dFZhbHVlc0NvbnZlcnRlcj17bm9wQ29udmVydGVyfVxuICAgICAgICAgIFdyYXBwZXJDb21wb25lbnQ9e3Byb3BzLldyYXBwZXJDb21wb25lbnR9XG4gICAgICAgIC8+XG4gICAgICA8L1NwYWNpbmdzLlN0YWNrPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkN1c3RvbUZpZWxkcy5kaXNwbGF5TmFtZSA9ICdDdXN0b21GaWVsZHMnO1xuQ3VzdG9tRmllbGRzLnByb3BUeXBlcyA9IHtcbiAgaXNXaWR0aEV4cGFuZGVkOiBQcm9wVHlwZXMuYm9vbCxcbiAgaXNSZWFkT25seTogUHJvcFR5cGVzLmJvb2wsXG4gIGlzRGlzYWJsZWQ6IFByb3BUeXBlcy5ib29sLFxuICBuYW1lOiBQcm9wVHlwZXMuc3RyaW5nLFxuICBmaWVsZERlZmluaXRpb25zOiBQcm9wVHlwZXMuYXJyYXlPZihcbiAgICBQcm9wVHlwZXMuc2hhcGUoe1xuICAgICAgbmFtZTogUHJvcFR5cGVzLnN0cmluZyxcbiAgICAgIHJlcXVpcmVkOiBQcm9wVHlwZXMuYm9vbCxcblxuICAgICAgaW5wdXRIaW50OiBQcm9wVHlwZXMuc3RyaW5nLFxuICAgICAgaW5wdXRUaXA6IFByb3BUeXBlcy5vYmplY3QsXG4gICAgICBsYWJlbDogUHJvcFR5cGVzLm9iamVjdE9mKFByb3BUeXBlcy5zdHJpbmcpLFxuXG4gICAgICB0eXBlOiBQcm9wVHlwZXMub25lT2ZUeXBlKFtcbiAgICAgICAgUHJvcFR5cGVzLnNoYXBlKHtcbiAgICAgICAgICB0eXBlOiBQcm9wVHlwZXMuc2hhcGUoe1xuICAgICAgICAgICAgbmFtZTogUHJvcFR5cGVzLnN0cmluZyxcbiAgICAgICAgICB9KSxcbiAgICAgICAgfSksXG4gICAgICAgIC8vIFNldFxuICAgICAgICBQcm9wVHlwZXMuc2hhcGUoe1xuICAgICAgICAgIGVsZW1lbnRUeXBlOiBQcm9wVHlwZXMuc2hhcGUoe1xuICAgICAgICAgICAgdHlwZTogUHJvcFR5cGVzLnNoYXBlKHtcbiAgICAgICAgICAgICAgbmFtZTogUHJvcFR5cGVzLnN0cmluZyxcbiAgICAgICAgICAgIH0pLFxuICAgICAgICAgIH0pLFxuICAgICAgICB9KSxcbiAgICAgIF0pLFxuICAgIH0pXG4gICksXG4gIFdyYXBwZXJDb21wb25lbnQ6IFByb3BUeXBlcy5lbGVtZW50VHlwZSxcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEN1c3RvbUZpZWxkcztcbiJdfQ== */"),
9730
9667
  children: jsx(Spacings.Stack, {
9731
9668
  scale: "xl",
9732
- children: jsx(CustomFieldsInternal, {
9669
+ children: jsx(CustomFieldsInternal$1, {
9733
9670
  name: props.name,
9734
9671
  isReadOnly: props.isReadOnly,
9735
9672
  isDisabled: props.isDisabled,
@@ -9742,6 +9679,7 @@ const CustomFields = props => {
9742
9679
  });
9743
9680
  };
9744
9681
  CustomFields.displayName = 'CustomFields';
9682
+ var CustomFields$1 = CustomFields;
9745
9683
 
9746
9684
  function ownKeys$w(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9747
9685
  function _objectSpread$w(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$w(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$w(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -9814,12 +9752,12 @@ function validations (formValues, language, languages) {
9814
9752
  const errors = _reduceInstanceProperty(fieldDefinitionsToValidate).call(fieldDefinitionsToValidate, (acc, fieldDefinition) => _objectSpread$w(_objectSpread$w({}, acc), {}, {
9815
9753
  [fieldDefinition.name]: _objectSpread$w(_objectSpread$w({}, setMissingIfRequired(formValues, fieldDefinition)), setDuplicatedIfSet(formValues, fieldDefinition, language, languages))
9816
9754
  }), {});
9817
- return withoutEmptyErrorsByField(errors);
9755
+ return withoutEmptyErrorsByField$1(errors);
9818
9756
  }
9819
9757
 
9820
- CustomFields.DndProvider = DndProvider;
9758
+ CustomFields$1.DndProvider = DndProvider;
9821
9759
 
9822
- var messages$p = defineMessages({
9760
+ var messages$t = defineMessages({
9823
9761
  customFieldsError: {
9824
9762
  id: 'CustomFieldsError.Error',
9825
9763
  description: 'The message when there are errors adding custom fields',
@@ -9834,7 +9772,7 @@ const CustomFieldsErrorTextNotification = props => {
9834
9772
  return jsxs(Spacings.Stack, {
9835
9773
  scale: "s",
9836
9774
  children: [jsx(Text.Wrap, {
9837
- intlMessage: _objectSpread$v({}, messages$p.customFieldsError)
9775
+ intlMessage: _objectSpread$v({}, messages$t.customFieldsError)
9838
9776
  }), jsx(Spacings.Stack, {
9839
9777
  scale: "xs",
9840
9778
  children: _mapInstanceProperty(_context = props.formErrors).call(_context, formError => jsx(Text.Detail, {
@@ -9845,8 +9783,9 @@ const CustomFieldsErrorTextNotification = props => {
9845
9783
  });
9846
9784
  };
9847
9785
  CustomFieldsErrorTextNotification.displayName = 'CustomFieldsErrorTextNotification';
9786
+ var CustomFieldsErrorTextNotification$1 = CustomFieldsErrorTextNotification;
9848
9787
 
9849
- var messages$o = defineMessages({
9788
+ var messages$s = defineMessages({
9850
9789
  noCustomFields: {
9851
9790
  id: 'CustomTypesSubform.noCustomFields',
9852
9791
  description: 'The label when there are no custom fields defined',
@@ -10000,20 +9939,20 @@ const CustomFieldsInputWrapper = _ref2 => {
10000
9939
  formValues = _valuesInstanceProperty(_useFormikContext);
10001
9940
  const rootFieldName = createRootFieldName(rootFormStateFieldName);
10002
9941
  if (!typeDefinitionsExist(typeDefinitions)) {
10003
- return jsx(FormattedMessage, _objectSpread$t({}, messages$o.noTypes));
9942
+ return jsx(FormattedMessage, _objectSpread$t({}, messages$s.noTypes));
10004
9943
  }
10005
9944
  if (!typeDefinitionSelected(formValues, rootFieldName)) {
10006
- return jsx(FormattedMessage, _objectSpread$t({}, messages$o.noCustomType));
9945
+ return jsx(FormattedMessage, _objectSpread$t({}, messages$s.noCustomType));
10007
9946
  }
10008
9947
  if (!typeDefinitionContainsFieldDefinitions(formValues, rootFieldName)) {
10009
- return jsx(FormattedMessage, _objectSpread$t({}, messages$o.noCustomFields));
9948
+ return jsx(FormattedMessage, _objectSpread$t({}, messages$s.noCustomFields));
10010
9949
  }
10011
9950
  if (fieldDefinitionsWithValues(formValues, rootFieldName).length === 0 && isReadOnly && hideEmptyFields) {
10012
- return jsx(FormattedMessage, _objectSpread$t({}, messages$o.noInputValues));
9951
+ return jsx(FormattedMessage, _objectSpread$t({}, messages$s.noInputValues));
10013
9952
  }
10014
9953
  return jsx(Constraints.Horizontal, {
10015
9954
  max: "scale",
10016
- children: jsx(CustomFields, {
9955
+ children: jsx(CustomFields$1, {
10017
9956
  isReadOnly: isReadOnly,
10018
9957
  name: `${rootFieldName}.fields`,
10019
9958
  fieldDefinitions: isReadOnly && hideEmptyFields ? fieldDefinitionsWithValues(formValues, rootFieldName) : getIn(formValues, rootFieldName).type.obj.fieldDefinitions
@@ -10021,6 +9960,7 @@ const CustomFieldsInputWrapper = _ref2 => {
10021
9960
  });
10022
9961
  };
10023
9962
  CustomFieldsInputWrapper.displayName = 'CustomFieldsInputWrapper';
9963
+ var CustomFieldsInputWrapper$1 = CustomFieldsInputWrapper;
10024
9964
 
10025
9965
  function ownKeys$s(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10026
9966
  function _objectSpread$s(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$s(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$s(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -10110,7 +10050,7 @@ const CustomTypeSubform = _ref => {
10110
10050
  return jsx(CollapsiblePanel, {
10111
10051
  header: jsx(CollapsiblePanel.Header, {
10112
10052
  isCondensed: isCondensed,
10113
- children: panelTitle || jsx(FormattedMessage, _objectSpread$s({}, messages$o.title))
10053
+ children: panelTitle || jsx(FormattedMessage, _objectSpread$s({}, messages$s.title))
10114
10054
  }),
10115
10055
  headerControls: typeDefinitions.length > 0 && jsx("div", {
10116
10056
  css: /*#__PURE__*/css("min-width:", designTokens.constraint11, ";" + (process.env.NODE_ENV === "production" ? "" : ";label:CustomTypeSubform;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImN1c3RvbS10eXBlLXN1YmZvcm0uanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTBJb0IiLCJmaWxlIjoiY3VzdG9tLXR5cGUtc3ViZm9ybS5qc3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyB1c2VDYWxsYmFjayB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcyc7XG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyB1c2VGb3JtaWtDb250ZXh0LCBnZXRJbiB9IGZyb20gJ2Zvcm1payc7XG5pbXBvcnQgeyBGb3JtYXR0ZWRNZXNzYWdlLCB1c2VJbnRsIH0gZnJvbSAncmVhY3QtaW50bCc7XG5pbXBvcnQgeyB1c2VBcHBsaWNhdGlvbkNvbnRleHQgfSBmcm9tICdAY29tbWVyY2V0b29scy1mcm9udGVuZC9hcHBsaWNhdGlvbi1zaGVsbC1jb25uZWN0b3JzJztcbmltcG9ydCB7IGZvcm1hdExvY2FsaXplZFN0cmluZyB9IGZyb20gJ0Bjb21tZXJjZXRvb2xzLWZyb250ZW5kL2wxMG4nO1xuaW1wb3J0IHtcbiAgQ29sbGFwc2libGVQYW5lbCxcbiAgU2VsZWN0SW5wdXQsXG4gIGRlc2lnblRva2Vucyxcbn0gZnJvbSAnQGNvbW1lcmNldG9vbHMtZnJvbnRlbmQvdWkta2l0JztcbmltcG9ydCBDdXN0b21GaWVsZHNJbnB1dFdyYXBwZXIgZnJvbSAnLi9jdXN0b20tZmllbGRzLWlucHV0LXdyYXBwZXInO1xuaW1wb3J0IG1lc3NhZ2VzIGZyb20gJy4vbWVzc2FnZXMnO1xuaW1wb3J0IHsgY3JlYXRlUm9vdEZpZWxkTmFtZSB9IGZyb20gJy4vdXRpbHMnO1xuXG4vKipcbiAqIE1hcHMgdGhlIHR5cGUgZGVmaW5pdGlvbnMgdG8gb3B0aW9ucyBmb3IgdGhlIGRyb3Bkb3duIHNlbGVjdG9yLlxuICovXG5leHBvcnQgY29uc3QgbWFwVHlwZURlZmluaXRpb25zVG9PcHRpb25zID0gKFxuICB0eXBlRGVmaW5pdGlvbnMsXG4gIGxhbmd1YWdlLFxuICBsYW5ndWFnZXMsXG4gIHNlbGVjdGVkVHlwZURlZmluaXRpb25JZFxuKSA9PiB7XG4gIHJldHVybiB0eXBlRGVmaW5pdGlvbnMubWFwKCh0eXBlRGVmaW5pdGlvbikgPT4gKHtcbiAgICBpc0Rpc2FibGVkOlxuICAgICAgc2VsZWN0ZWRUeXBlRGVmaW5pdGlvbklkICYmXG4gICAgICBzZWxlY3RlZFR5cGVEZWZpbml0aW9uSWQgPT09IHR5cGVEZWZpbml0aW9uLnR5cGUuaWQsXG4gICAgdmFsdWU6IHR5cGVEZWZpbml0aW9uLnR5cGUua2V5LFxuICAgIGxhYmVsOiBmb3JtYXRMb2NhbGl6ZWRTdHJpbmcodHlwZURlZmluaXRpb24udHlwZSwge1xuICAgICAga2V5OiAnbmFtZScsXG4gICAgICBsb2NhbGU6IGxhbmd1YWdlLFxuICAgICAgZmFsbGJhY2tPcmRlcjogbGFuZ3VhZ2VzLFxuICAgIH0pLFxuICB9KSk7XG59O1xuXG4vKipcbiAqIENyZWF0ZXMgYSBuZXcgZm9ybSBzdGF0ZSBiYXNlZCBvbiB0aGUgc2VsZWN0ZWQgdHlwZSBkZWZpbml0aW9uIGZyb20gdGhlIGRyb3Bkb3duLlxuICovXG5jb25zdCBjcmVhdGVGb3JtU3RhdGVGcm9tVHlwZURlZmluaXRpb24gPSAoc2VsZWN0ZWRUeXBlRGVmaW5pdGlvbikgPT4ge1xuICByZXR1cm4ge1xuICAgIHR5cGU6IHtcbiAgICAgIGlkOiBzZWxlY3RlZFR5cGVEZWZpbml0aW9uLnR5cGUuaWQsXG4gICAgICBvYmo6IHtcbiAgICAgICAgZmllbGREZWZpbml0aW9uczogc2VsZWN0ZWRUeXBlRGVmaW5pdGlvbi50eXBlLmZpZWxkRGVmaW5pdGlvbnMsXG4gICAgICAgIGtleTogc2VsZWN0ZWRUeXBlRGVmaW5pdGlvbi50eXBlLmtleSxcbiAgICAgIH0sXG4gICAgfSxcbiAgICBmaWVsZHM6IHt9LFxuICB9O1xufTtcblxuY29uc3QgQ3VzdG9tVHlwZVN1YmZvcm0gPSAoe1xuICB0eXBlRGVmaW5pdGlvbnMsXG4gIGlzUmVhZE9ubHksXG4gIGlzQ29uZGVuc2VkLFxuICBoaWRlRW1wdHlGaWVsZHMsXG4gIHJvb3RGb3JtU3RhdGVGaWVsZE5hbWUsXG4gIHBhbmVsVGl0bGUsXG59KSA9PiB7XG4gIGNvbnN0IHtcbiAgICB2YWx1ZXM6IGZvcm1WYWx1ZXMsXG4gICAgc2V0RmllbGRWYWx1ZSxcbiAgICB2YWxpZGF0ZUZvcm0sXG4gICAgaW5pdGlhbFZhbHVlcyxcbiAgfSA9IHVzZUZvcm1pa0NvbnRleHQoKTtcbiAgY29uc3QgeyBmb3JtYXRNZXNzYWdlIH0gPSB1c2VJbnRsKCk7XG4gIGNvbnN0IHsgbGFuZ3VhZ2UsIGxhbmd1YWdlcyB9ID0gdXNlQXBwbGljYXRpb25Db250ZXh0KFxuICAgIChhcHBsaWNhdGlvbkNvbnRleHQpID0+ICh7XG4gICAgICBsYW5ndWFnZTogYXBwbGljYXRpb25Db250ZXh0LmRhdGFMb2NhbGUsXG4gICAgICBsYW5ndWFnZXM6IGFwcGxpY2F0aW9uQ29udGV4dC5wcm9qZWN0Lmxhbmd1YWdlcyxcbiAgICB9KVxuICApO1xuICBjb25zdCByb290RmllbGROYW1lID0gY3JlYXRlUm9vdEZpZWxkTmFtZShyb290Rm9ybVN0YXRlRmllbGROYW1lKTtcblxuICBjb25zdCBoYW5kbGVUeXBlRGVmaW5pdGlvblNlbGVjdCA9IHVzZUNhbGxiYWNrKFxuICAgIChldmVudCkgPT4ge1xuICAgICAgY29uc3Qgc2VsZWN0ZWRUeXBlRGVmaW5pdGlvbiA9IHR5cGVEZWZpbml0aW9ucy5maW5kKFxuICAgICAgICAodHlwZURlZmluaXRpb24pID0+IHR5cGVEZWZpbml0aW9uLnR5cGUua2V5ID09PSBldmVudC50YXJnZXQudmFsdWVcbiAgICAgICk7XG5cbiAgICAgIGlmIChzZWxlY3RlZFR5cGVEZWZpbml0aW9uKSB7XG4gICAgICAgIGNvbnN0IGluaXRpYWxWYWx1ZUN1c3RvbVR5cGUgPSBpbml0aWFsVmFsdWVzW3Jvb3RGaWVsZE5hbWVdO1xuICAgICAgICBjb25zdCBzZWxlY3RlZEN1c3RvbVR5cGVLZXkgPSBzZWxlY3RlZFR5cGVEZWZpbml0aW9uPy50eXBlLmtleTtcblxuICAgICAgICBsZXQgbmV3RmllbGRWYWx1ZTtcblxuICAgICAgICAvKipcbiAgICAgICAgICogSWYgdGhlIHVzZXIgc2VsZWN0cyB0aGUgc2FtZSBjdXN0b20gdHlwZSB0aGF0IHdhcyBhbHJlYWR5IHNlbGVjdGVkLCB3ZSBuZWVkIHRvIHJlc2V0IHRoZSBgY3VzdG9tYCBmaWVsZFxuICAgICAgICAgKiBiYWNrIHRvIGl0cyBpbml0aWFsIHZhbHVlIHRvIGVuc3VyZSB0aGF0IHRoZSBmb3JtIHN0YXRlIGlzIGNvbnNpc3RlbnQgd2l0aCB0aGUgaW5pdGlhbCB2YWx1ZXMuXG4gICAgICAgICAqL1xuICAgICAgICBpZiAoaW5pdGlhbFZhbHVlQ3VzdG9tVHlwZT8udHlwZT8ub2JqPy5rZXkgPT09IHNlbGVjdGVkQ3VzdG9tVHlwZUtleSkge1xuICAgICAgICAgIG5ld0ZpZWxkVmFsdWUgPSBpbml0aWFsVmFsdWVDdXN0b21UeXBlO1xuICAgICAgICAgIC8qKlxuICAgICAgICAgICAqIE90aGVyd2lzZSwgc2V0IHRoZSBgY3VzdG9tYCBmaWVsZCB0byB0aGUgbmV3IGN1c3RvbSB0eXBlIGRlZmluaXRpb24uXG4gICAgICAgICAgICovXG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgbmV3RmllbGRWYWx1ZSA9IGNyZWF0ZUZvcm1TdGF0ZUZyb21UeXBlRGVmaW5pdGlvbihcbiAgICAgICAgICAgIHNlbGVjdGVkVHlwZURlZmluaXRpb25cbiAgICAgICAgICApO1xuICAgICAgICB9XG5cbiAgICAgICAgc2V0RmllbGRWYWx1ZShyb290RmllbGROYW1lLCBuZXdGaWVsZFZhbHVlKS50aGVuKCgpID0+IHtcbiAgICAgICAgICB2YWxpZGF0ZUZvcm0oKTtcbiAgICAgICAgfSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICAvLyBpZiB0aGUgZHJvcGRvd24gc2VsZWN0b3IgaXMgY2xlYXJlZCwgcmVtb3ZlIHRoZSBgY3VzdG9tYCBmaWVsZCBmcm9tIHRoZSBmb3JtIHN0YXRlIGVudGlyZWx5XG4gICAgICAgIHNldEZpZWxkVmFsdWUocm9vdEZpZWxkTmFtZSwgdW5kZWZpbmVkKS50aGVuKCgpID0+IHtcbiAgICAgICAgICB2YWxpZGF0ZUZvcm0oKTtcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgfSxcbiAgICBbdHlwZURlZmluaXRpb25zLCBzZXRGaWVsZFZhbHVlLCB2YWxpZGF0ZUZvcm0sIHJvb3RGaWVsZE5hbWVdXG4gICk7XG5cbiAgY29uc3QgdHlwZURlZmluaXRpb25TZWxlY3RlZCA9IChmb3JtVmFsdWVzKSA9PiB7XG4gICAgcmV0dXJuIChcbiAgICAgIGdldEluKGZvcm1WYWx1ZXMsIHJvb3RGaWVsZE5hbWUpPy50eXBlICYmXG4gICAgICBnZXRJbihmb3JtVmFsdWVzLCByb290RmllbGROYW1lKT8udHlwZT8ub2JqXG4gICAgKTtcbiAgfTtcblxuICAvLyBpZiB0aGUgdXNlciBoYXMgcmVhZC1vbmx5IHBlcm1pc3Npb25zLCBlbXB0eSBmaWVsZHMgYXJlIGhpZGRlbiwgYW5kIG5vIHR5cGUgZGVmaW5pdGlvbiBpcyBzZWxlY3RlZCwgaGlkZSB0aGUgY29tcG9uZW50XG4gIGlmIChpc1JlYWRPbmx5ICYmIGhpZGVFbXB0eUZpZWxkcyAmJiAhdHlwZURlZmluaXRpb25TZWxlY3RlZChmb3JtVmFsdWVzKSlcbiAgICByZXR1cm4gbnVsbDtcblxuICByZXR1cm4gKFxuICAgIDxDb2xsYXBzaWJsZVBhbmVsXG4gICAgICBoZWFkZXI9e1xuICAgICAgICA8Q29sbGFwc2libGVQYW5lbC5IZWFkZXIgaXNDb25kZW5zZWQ9e2lzQ29uZGVuc2VkfT5cbiAgICAgICAgICB7cGFuZWxUaXRsZSB8fCA8Rm9ybWF0dGVkTWVzc2FnZSB7Li4ubWVzc2FnZXMudGl0bGV9IC8+fVxuICAgICAgICA8L0NvbGxhcHNpYmxlUGFuZWwuSGVhZGVyPlxuICAgICAgfVxuICAgICAgaGVhZGVyQ29udHJvbHM9e1xuICAgICAgICB0eXBlRGVmaW5pdGlvbnMubGVuZ3RoID4gMCAmJiAoXG4gICAgICAgICAgPGRpdlxuICAgICAgICAgICAgY3NzPXtjc3NgXG4gICAgICAgICAgICAgIG1pbi13aWR0aDogJHtkZXNpZ25Ub2tlbnMuY29uc3RyYWludDExfTtcbiAgICAgICAgICAgIGB9XG4gICAgICAgICAgPlxuICAgICAgICAgICAgPFNlbGVjdElucHV0XG4gICAgICAgICAgICAgIGlzQ2xlYXJhYmxlXG4gICAgICAgICAgICAgIGRhdGEtdGVzdGlkPVwiY3VzdG9tLXR5cGUtc2VsZWN0XCJcbiAgICAgICAgICAgICAgbmFtZT17YCR7cm9vdEZpZWxkTmFtZX0udHlwZS5vYmoua2V5YH1cbiAgICAgICAgICAgICAgb3B0aW9ucz17bWFwVHlwZURlZmluaXRpb25zVG9PcHRpb25zKFxuICAgICAgICAgICAgICAgIHR5cGVEZWZpbml0aW9ucyxcbiAgICAgICAgICAgICAgICBsYW5ndWFnZSxcbiAgICAgICAgICAgICAgICBsYW5ndWFnZXMsXG5cbiAgICAgICAgICAgICAgICBnZXRJbihmb3JtVmFsdWVzLCByb290RmllbGROYW1lKT8udHlwZT8uaWRcbiAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgdmFsdWU9e2dldEluKGZvcm1WYWx1ZXMsIHJvb3RGaWVsZE5hbWUpPy50eXBlPy5vYmo/LmtleX1cbiAgICAgICAgICAgICAgb25DaGFuZ2U9e2hhbmRsZVR5cGVEZWZpbml0aW9uU2VsZWN0fVxuICAgICAgICAgICAgICBwbGFjZWhvbGRlcj17Zm9ybWF0TWVzc2FnZShtZXNzYWdlcy50eXBlc1BsYWNlaG9sZGVyKX1cbiAgICAgICAgICAgICAgaXNSZWFkT25seT17aXNSZWFkT25seX1cbiAgICAgICAgICAgIC8+XG4gICAgICAgICAgPC9kaXY+XG4gICAgICAgIClcbiAgICAgIH1cbiAgICAgIGhlYWRlckNvbnRyb2xzQWxpZ25tZW50PVwicmlnaHRcIlxuICAgID5cbiAgICAgIDxDdXN0b21GaWVsZHNJbnB1dFdyYXBwZXJcbiAgICAgICAgdHlwZURlZmluaXRpb25zPXt0eXBlRGVmaW5pdGlvbnN9XG4gICAgICAgIGlzUmVhZE9ubHk9e2lzUmVhZE9ubHl9XG4gICAgICAgIGhpZGVFbXB0eUZpZWxkcz17aGlkZUVtcHR5RmllbGRzfVxuICAgICAgICByb290Rm9ybVN0YXRlRmllbGROYW1lPXtyb290Rm9ybVN0YXRlRmllbGROYW1lfVxuICAgICAgLz5cbiAgICA8L0NvbGxhcHNpYmxlUGFuZWw+XG4gICk7XG59O1xuXG5DdXN0b21UeXBlU3ViZm9ybS5kaXNwbGF5TmFtZSA9ICdDdXN0b21UeXBlU3ViZm9ybSc7XG5DdXN0b21UeXBlU3ViZm9ybS5wcm9wVHlwZXMgPSB7XG4gIHR5cGVEZWZpbml0aW9uczogUHJvcFR5cGVzLmFycmF5LmlzUmVxdWlyZWQsXG4gIGlzUmVhZE9ubHk6IFByb3BUeXBlcy5ib29sLFxuICBpc0NvbmRlbnNlZDogUHJvcFR5cGVzLmJvb2wsXG4gIGhpZGVFbXB0eUZpZWxkczogUHJvcFR5cGVzLmJvb2wsXG4gIHJvb3RGb3JtU3RhdGVGaWVsZE5hbWU6IFByb3BUeXBlcy5zdHJpbmcsXG4gIHBhbmVsVGl0bGU6IFByb3BUeXBlcy5ub2RlLFxufTtcblxuZXhwb3J0IGRlZmF1bHQgQ3VzdG9tVHlwZVN1YmZvcm07XG4iXX0= */"),
@@ -10121,12 +10061,12 @@ const CustomTypeSubform = _ref => {
10121
10061
  options: mapTypeDefinitionsToOptions(typeDefinitions, language, languages, getIn(formValues, rootFieldName)?.type?.id),
10122
10062
  value: getIn(formValues, rootFieldName)?.type?.obj?.key,
10123
10063
  onChange: handleTypeDefinitionSelect,
10124
- placeholder: formatMessage(messages$o.typesPlaceholder),
10064
+ placeholder: formatMessage(messages$s.typesPlaceholder),
10125
10065
  isReadOnly: isReadOnly
10126
10066
  })
10127
10067
  }),
10128
10068
  headerControlsAlignment: "right",
10129
- children: jsx(CustomFieldsInputWrapper, {
10069
+ children: jsx(CustomFieldsInputWrapper$1, {
10130
10070
  typeDefinitions: typeDefinitions,
10131
10071
  isReadOnly: isReadOnly,
10132
10072
  hideEmptyFields: hideEmptyFields,
@@ -10135,6 +10075,7 @@ const CustomTypeSubform = _ref => {
10135
10075
  });
10136
10076
  };
10137
10077
  CustomTypeSubform.displayName = 'CustomTypeSubform';
10078
+ var CustomTypeSubform$1 = CustomTypeSubform;
10138
10079
 
10139
10080
  const CustomFieldsFormField = _ref => {
10140
10081
  let resources = _ref.resources,
@@ -10156,7 +10097,7 @@ const CustomFieldsFormField = _ref => {
10156
10097
  return jsx(LoadingSpinner, {});
10157
10098
  }
10158
10099
  const typeDefinitions = _mapInstanceProperty(_context = customFieldTypeDefinitions.results).call(_context, CustomFieldTypeDefinitionsConnector$1.graphQlDocToForm);
10159
- return jsx(CustomTypeSubform, {
10100
+ return jsx(CustomTypeSubform$1, {
10160
10101
  typeDefinitions: typeDefinitions,
10161
10102
  isReadOnly: isReadOnly,
10162
10103
  isCondensed: isCondensed,
@@ -10169,6 +10110,7 @@ const CustomFieldsFormField = _ref => {
10169
10110
  };
10170
10111
  CustomFieldsFormField.createFormStateFromResource = createFormStateFromResource;
10171
10112
  CustomFieldsFormField.createGraphQlDocFromFormState = createGraphQlDocFromFormState;
10113
+ var CustomFieldsFormField$1 = CustomFieldsFormField;
10172
10114
 
10173
10115
  /**
10174
10116
  * @typedef {object} TPimIndexer
@@ -10194,6 +10136,7 @@ const defaultValue = {
10194
10136
  * @type {import('react').Context<TPimIndexer>}
10195
10137
  */
10196
10138
  const PimIndexerContext = /*#__PURE__*/createContext(defaultValue);
10139
+ var PimIndexerContext$1 = PimIndexerContext;
10197
10140
 
10198
10141
  var FetchIndicesExist = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchIndicesExist" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "indicesExist" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "products" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchableIndexExists" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "newInProgress" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "productTypes" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "searchableIndexExists" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "newInProgress" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 191, source: { body: "query FetchIndicesExist {\n indicesExist {\n products {\n searchableIndexExists\n newInProgress\n }\n productTypes {\n searchableIndexExists\n newInProgress\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
10199
10142
  var fetchPimIndexStatus = (apolloClient, projectKey) => async dispatch => {
@@ -10236,7 +10179,7 @@ var fetchPimIndexStatus = (apolloClient, projectKey) => async dispatch => {
10236
10179
  }
10237
10180
  };
10238
10181
 
10239
- var messages$n = defineMessages({
10182
+ var messages$r = defineMessages({
10240
10183
  indexingSucceed: {
10241
10184
  id: 'Products.PimIndexer.Notifications.indexingSucceed',
10242
10185
  description: 'Message to be shown to user when PIM successfully finishes initial project indexing.',
@@ -10342,7 +10285,7 @@ let PimIndexerProvider = /*#__PURE__*/function (_PureComponent) {
10342
10285
  _this.props.notifications.showNotification({
10343
10286
  kind: 'error',
10344
10287
  domain: DOMAINS.SIDE,
10345
- text: _this.props.intl.formatMessage(messages$n.indexingFailed)
10288
+ text: _this.props.intl.formatMessage(messages$r.indexingFailed)
10346
10289
  });
10347
10290
  };
10348
10291
  _this.getIndexingProgress = async () => {
@@ -10383,7 +10326,7 @@ let PimIndexerProvider = /*#__PURE__*/function (_PureComponent) {
10383
10326
  _this.props.notifications.showNotification({
10384
10327
  kind: 'success',
10385
10328
  domain: DOMAINS.SIDE,
10386
- text: _this.props.intl.formatMessage(messages$n.indexingSucceed)
10329
+ text: _this.props.intl.formatMessage(messages$r.indexingSucceed)
10387
10330
  },
10388
10331
  // because the indexing may take so long, the success notification
10389
10332
  // may be dismissed without being seen by the user. Set `dismissAfter`
@@ -10457,7 +10400,7 @@ let PimIndexerProvider = /*#__PURE__*/function (_PureComponent) {
10457
10400
  }, {
10458
10401
  key: "render",
10459
10402
  value: function render() {
10460
- return jsx(PimIndexerContext.Provider, {
10403
+ return jsx(PimIndexerContext$1.Provider, {
10461
10404
  value: _objectSpread$r(_objectSpread$r({}, this.state), {}, {
10462
10405
  attemptToRefreshProducts: this.attemptToRefreshProducts,
10463
10406
  indexProject: this.indexProject
@@ -10472,11 +10415,11 @@ var pimIndexerProvider = flowRight(withApplicationContext(applicationContext =>
10472
10415
  projectKey: applicationContext.project.key
10473
10416
  })), connect(null, {
10474
10417
  fetchPimIndexStatus
10475
- }), graphql$1(RefreshProductIndices, {
10418
+ }), graphql(RefreshProductIndices, {
10476
10419
  name: 'refreshProductIndicesByIds'
10477
- }), graphql$1(IndexProject, {
10420
+ }), graphql(IndexProject, {
10478
10421
  name: 'indexProject'
10479
- }), withApollo, injectIntl, injectNotifications())(PimIndexerProvider);
10422
+ }), withApollo, injectIntl, injectNotifications$1())(PimIndexerProvider);
10480
10423
 
10481
10424
  function _callSuper$1(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$1() ? _Reflect$construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
10482
10425
  function _isNativeReflectConstruct$1() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$1 = function () { return !!t; })(); }
@@ -10489,31 +10432,32 @@ let WithPimIndexer = /*#__PURE__*/function (_PureComponent) {
10489
10432
  return _createClass(WithPimIndexer, [{
10490
10433
  key: "render",
10491
10434
  value: function render() {
10492
- return jsx(PimIndexerContext.Consumer, {
10435
+ return jsx(PimIndexerContext$1.Consumer, {
10493
10436
  children: pimIndexerProps => this.props.children(pimIndexerProps)
10494
10437
  });
10495
10438
  }
10496
10439
  }]);
10497
10440
  }(PureComponent);
10498
10441
  WithPimIndexer.displayName = 'WithPimIndexer';
10442
+ var WithPimIndexer$1 = WithPimIndexer;
10499
10443
 
10500
10444
  function ownKeys$q(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10501
10445
  function _objectSpread$q(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$q(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$q(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
10502
10446
  var injectPimIndexer = (function () {
10503
10447
  let propName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'pimIndexer';
10504
10448
  return Component => {
10505
- const WrappedComponent = props => jsx(WithPimIndexer, {
10449
+ const WrappedComponent = props => jsx(WithPimIndexer$1, {
10506
10450
  children: pimIndexerProps => jsx(Component, _objectSpread$q(_objectSpread$q({}, props), {}, {
10507
10451
  [propName]: pimIndexerProps
10508
10452
  }))
10509
10453
  });
10510
- WrappedComponent.displayName = wrapDisplayName(Component, 'InjectPimIndexer');
10454
+ WrappedComponent.displayName = wrapDisplayName$1(Component, 'InjectPimIndexer');
10511
10455
  return WrappedComponent;
10512
10456
  };
10513
10457
  });
10514
10458
 
10515
10459
  function usePimIndexer() {
10516
- return useContext(PimIndexerContext);
10460
+ return useContext(PimIndexerContext$1);
10517
10461
  }
10518
10462
 
10519
10463
  // eslint-disable-next-line import/prefer-default-export
@@ -10537,11 +10481,12 @@ const resourcesWithPlatformLimits = _Object$keys(RESOURCES_WITH_PLATFORM_LIMITS)
10537
10481
  const createQueryVariables = platformLimit => _reduceInstanceProperty(resourcesWithPlatformLimits).call(resourcesWithPlatformLimits, (previousIncludedLimits, nextNameOfLimit) => _objectSpread$p({
10538
10482
  [camelCase(`should include ${nextNameOfLimit}`)]: platformLimit ? nextNameOfLimit === platformLimit : true
10539
10483
  }, previousIncludedLimits), {});
10484
+ var createPlatformLimitsQueryVariables = createQueryVariables;
10540
10485
 
10541
10486
  var PlatformLimitsFetcherQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "PlatformLimitsFetcherQuery" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeShoppingLists" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeProductDiscounts" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeCartDiscounts" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeStores" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeCustomers" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeCustomerGroups" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeZones" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeTaxCategories" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeShippingMethods" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeCarts" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeBusinessUnits" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "Boolean" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limits" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "shoppingLists" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeShoppingLists" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limit" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "current" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "lineItems" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limit" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "textLineItems" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limit" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "productDiscounts" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeProductDiscounts" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "totalActive" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limit" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "current" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "cartDiscounts" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeCartDiscounts" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "totalActiveWithoutDiscountCodes" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limit" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "current" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "stores" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeStores" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limit" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "current" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "inventorySupplyChannels" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limit" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "productDistributionChannels" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limit" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "customers" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeCustomers" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limit" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "current" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "customerGroups" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeCustomerGroups" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limit" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "current" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "zones" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeZones" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limit" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "current" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "taxCategories" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeTaxCategories" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limit" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "current" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "shippingMethods" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeShippingMethods" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limit" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "current" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "carts" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeCarts" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limit" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "current" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "businessUnits" }, arguments: [], directives: [{ kind: "Directive", name: { kind: "Name", value: "include" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "if" }, value: { kind: "Variable", name: { kind: "Name", value: "shouldIncludeBusinessUnits" } } }] }], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "maxDivisions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limit" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "maxDepthLimit" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limit" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "maxAssociates" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limit" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "maxAssociateRoles" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "limit" }, arguments: [], directives: [] }] } }] } }] } }] } }], loc: { start: 0, end: 2107, source: { body: "query PlatformLimitsFetcherQuery(\n $shouldIncludeShoppingLists: Boolean!\n $shouldIncludeProductDiscounts: Boolean!\n $shouldIncludeCartDiscounts: Boolean!\n $shouldIncludeStores: Boolean!\n $shouldIncludeCustomers: Boolean!\n $shouldIncludeCustomerGroups: Boolean!\n $shouldIncludeZones: Boolean!\n $shouldIncludeTaxCategories: Boolean!\n $shouldIncludeShippingMethods: Boolean!\n $shouldIncludeCarts: Boolean!\n $shouldIncludeBusinessUnits: Boolean!\n) {\n limits {\n shoppingLists @include(if: $shouldIncludeShoppingLists) {\n total {\n limit\n current\n }\n lineItems {\n limit\n }\n textLineItems {\n limit\n }\n }\n productDiscounts @include(if: $shouldIncludeProductDiscounts) {\n totalActive {\n limit\n current\n }\n }\n cartDiscounts @include(if: $shouldIncludeCartDiscounts) {\n totalActiveWithoutDiscountCodes {\n limit\n current\n }\n }\n stores @include(if: $shouldIncludeStores) {\n total {\n limit\n current\n }\n inventorySupplyChannels {\n limit\n }\n productDistributionChannels {\n limit\n }\n }\n customers @include(if: $shouldIncludeCustomers) {\n total {\n limit\n current\n }\n }\n customerGroups @include(if: $shouldIncludeCustomerGroups) {\n total {\n limit\n current\n }\n }\n zones @include(if: $shouldIncludeZones) {\n total {\n limit\n current\n }\n }\n taxCategories @include(if: $shouldIncludeTaxCategories) {\n total {\n limit\n current\n }\n }\n shippingMethods @include(if: $shouldIncludeShippingMethods) {\n total {\n limit\n current\n }\n }\n carts @include(if: $shouldIncludeCarts) {\n total {\n limit\n current\n }\n }\n businessUnits @include(if: $shouldIncludeBusinessUnits) {\n maxDivisions {\n limit\n }\n maxDepthLimit {\n limit\n }\n maxAssociates {\n limit\n }\n maxAssociateRoles {\n limit\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
10542
10487
  const usePlatformLimitsFetcher = platformLimit => {
10543
10488
  const _useQuery = useQuery(PlatformLimitsFetcherQuery, {
10544
- variables: createQueryVariables(platformLimit),
10489
+ variables: createPlatformLimitsQueryVariables(platformLimit),
10545
10490
  context: {
10546
10491
  target: GRAPHQL_TARGETS.COMMERCETOOLS_PLATFORM
10547
10492
  },
@@ -10559,6 +10504,7 @@ const usePlatformLimitsFetcher = platformLimit => {
10559
10504
  refetch
10560
10505
  };
10561
10506
  };
10507
+ var usePlatformLimitsFetcher$1 = usePlatformLimitsFetcher;
10562
10508
 
10563
10509
  const useLimitsModalState = function () {
10564
10510
  let isInitiallyOpen = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
@@ -10574,6 +10520,7 @@ const useLimitsModalState = function () {
10574
10520
  openModal
10575
10521
  };
10576
10522
  };
10523
+ var useLimitsModalState$1 = useLimitsModalState;
10577
10524
 
10578
10525
  const useInterceptNavigation = hasReachedErrorLimit => {
10579
10526
  const _useState = useState(false),
@@ -10595,8 +10542,9 @@ const useInterceptNavigation = hasReachedErrorLimit => {
10595
10542
  setPlatformLimitToBeNotExceeded
10596
10543
  };
10597
10544
  };
10545
+ var useInterceptNavigation$1 = useInterceptNavigation;
10598
10546
 
10599
- var messages$m = defineMessages({
10547
+ var messages$q = defineMessages({
10600
10548
  shippingMethods: {
10601
10549
  id: 'PlatformLimits.Notifications.shippingMethodsError',
10602
10550
  description: 'error message about platform limit exceeded',
@@ -10636,7 +10584,7 @@ const PlatformLimitErrorNotification = _ref => {
10636
10584
  limit = _ref.limit;
10637
10585
  return jsx(ContentNotification, {
10638
10586
  type: "error",
10639
- children: jsx(FormattedMessage, _objectSpread$o(_objectSpread$o({}, messages$m[resource]), {}, {
10587
+ children: jsx(FormattedMessage, _objectSpread$o(_objectSpread$o({}, messages$q[resource]), {}, {
10640
10588
  values: {
10641
10589
  limit,
10642
10590
  customersupport: getCustomerSupportLink$1
@@ -10648,8 +10596,9 @@ const PlatformLimitErrorNotification = _ref => {
10648
10596
  });
10649
10597
  };
10650
10598
  PlatformLimitErrorNotification.displayName = 'PlatformLimitErrorNotification';
10599
+ var Error$1 = PlatformLimitErrorNotification;
10651
10600
 
10652
- var messages$l = defineMessages({
10601
+ var messages$p = defineMessages({
10653
10602
  shippingMethods: {
10654
10603
  id: 'PlatformLimits.Notifications.shippingMethodsWarning',
10655
10604
  description: 'warning message about platform limit exceeded',
@@ -10689,7 +10638,7 @@ const PlatformLimitWarningNotification = _ref => {
10689
10638
  limit = _ref.limit;
10690
10639
  return jsx(ContentNotification, {
10691
10640
  type: "warning",
10692
- children: jsx(FormattedMessage, _objectSpread$n(_objectSpread$n({}, messages$l[resource]), {}, {
10641
+ children: jsx(FormattedMessage, _objectSpread$n(_objectSpread$n({}, messages$p[resource]), {}, {
10693
10642
  values: {
10694
10643
  limit,
10695
10644
  customersupport: getCustomerSupportLink
@@ -10701,11 +10650,13 @@ const PlatformLimitWarningNotification = _ref => {
10701
10650
  });
10702
10651
  };
10703
10652
  PlatformLimitWarningNotification.displayName = 'PlatformLimitWarningNotification';
10653
+ var Warning = PlatformLimitWarningNotification;
10704
10654
 
10705
10655
  const Notifications = {
10706
- Warning: PlatformLimitWarningNotification,
10707
- Error: PlatformLimitErrorNotification
10656
+ Warning,
10657
+ Error: Error$1
10708
10658
  };
10659
+ var Notifications$1 = Notifications;
10709
10660
 
10710
10661
  function ownKeys$m(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10711
10662
  function _objectSpread$m(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$m(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$m(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -10725,6 +10676,7 @@ const PlatformLimitsStatusText = _ref => {
10725
10676
  });
10726
10677
  };
10727
10678
  PlatformLimitsStatusText.displayName = 'PlatformLimitsStatusText';
10679
+ var StatusText = PlatformLimitsStatusText;
10728
10680
 
10729
10681
  const getHasExceededWarningThreshold = _ref => {
10730
10682
  let limit = _ref.limit,
@@ -10751,7 +10703,7 @@ const getPlatformLimitsStatus = _ref3 => {
10751
10703
  };
10752
10704
 
10753
10705
  const useShippingMethodsPlatformLimitsFetcher = () => {
10754
- const _usePlatformLimitsFet = usePlatformLimitsFetcher(RESOURCES_WITH_PLATFORM_LIMITS.shippingMethods),
10706
+ const _usePlatformLimitsFet = usePlatformLimitsFetcher$1(RESOURCES_WITH_PLATFORM_LIMITS.shippingMethods),
10755
10707
  isLoading = _usePlatformLimitsFet.isLoading,
10756
10708
  error = _usePlatformLimitsFet.error,
10757
10709
  platformLimits = _usePlatformLimitsFet.platformLimits,
@@ -10763,9 +10715,10 @@ const useShippingMethodsPlatformLimitsFetcher = () => {
10763
10715
  refetch
10764
10716
  };
10765
10717
  };
10718
+ var useShippingMethodsPlatformLimitsFetcher$1 = useShippingMethodsPlatformLimitsFetcher;
10766
10719
 
10767
- const useShippingMethodsPlatformLimits = () => {
10768
- const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher(),
10720
+ const useShippingMethodsPlatformLimits$1 = () => {
10721
+ const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher$1(),
10769
10722
  platformLimits = _useShippingMethodsPl.platformLimits;
10770
10723
  if (!platformLimits?.shippingMethods?.total) {
10771
10724
  return {
@@ -10789,24 +10742,25 @@ const useShippingMethodsPlatformLimits = () => {
10789
10742
  hasReachedShippingMethodsErrorLimit
10790
10743
  };
10791
10744
  };
10745
+ var useShippingMethodsPlatformLimitsStatus = useShippingMethodsPlatformLimits$1;
10792
10746
 
10793
10747
  const PlatformLimitsShippingMethodsNotifications = () => {
10794
- const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher(),
10748
+ const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher$1(),
10795
10749
  platformLimits = _useShippingMethodsPl.platformLimits;
10796
- const _useShippingMethodsPl2 = useShippingMethodsPlatformLimits(),
10750
+ const _useShippingMethodsPl2 = useShippingMethodsPlatformLimitsStatus(),
10797
10751
  hasReachedShippingMethodsWarningLimit = _useShippingMethodsPl2.hasReachedShippingMethodsWarningLimit,
10798
10752
  hasReachedShippingMethodsErrorLimit = _useShippingMethodsPl2.hasReachedShippingMethodsErrorLimit;
10799
10753
  if (!platformLimits?.shippingMethods?.total) {
10800
10754
  return null;
10801
10755
  }
10802
10756
  if (hasReachedShippingMethodsErrorLimit) {
10803
- return jsx(Notifications.Error, {
10757
+ return jsx(Notifications$1.Error, {
10804
10758
  resource: RESOURCES_WITH_PLATFORM_LIMITS.shippingMethods,
10805
10759
  limit: platformLimits.shippingMethods.total.limit
10806
10760
  });
10807
10761
  }
10808
10762
  if (hasReachedShippingMethodsWarningLimit) {
10809
- return jsx(Notifications.Warning, {
10763
+ return jsx(Notifications$1.Warning, {
10810
10764
  resource: RESOURCES_WITH_PLATFORM_LIMITS.shippingMethods,
10811
10765
  limit: platformLimits.shippingMethods.total.limit
10812
10766
  });
@@ -10814,8 +10768,9 @@ const PlatformLimitsShippingMethodsNotifications = () => {
10814
10768
  return null;
10815
10769
  };
10816
10770
  PlatformLimitsShippingMethodsNotifications.displayName = 'PlatformLimitsShippingMethodsNotifications';
10771
+ var ShippingMethodsNotification = PlatformLimitsShippingMethodsNotifications;
10817
10772
 
10818
- var messages$k = defineMessages({
10773
+ var messages$o = defineMessages({
10819
10774
  shippingMethodsPlatformLimitReached: {
10820
10775
  id: 'PlatformLimits.Tooltip.shippingMethodsLimitReached',
10821
10776
  description: 'The message for shipping methods platform limit being reached',
@@ -10828,12 +10783,13 @@ function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var _
10828
10783
  const PlatformLimitsShippingMethodsTooltip = props => {
10829
10784
  const intl = useIntl();
10830
10785
  return jsx(Tooltip, _objectSpread$l(_objectSpread$l({}, props), {}, {
10831
- title: intl.formatMessage(messages$k.shippingMethodsPlatformLimitReached)
10786
+ title: intl.formatMessage(messages$o.shippingMethodsPlatformLimitReached)
10832
10787
  }));
10833
10788
  };
10834
10789
  PlatformLimitsShippingMethodsTooltip.displayName = 'PlatformLimitsShippingMethodsTooltip';
10790
+ var ShippingMethodsTooltip = PlatformLimitsShippingMethodsTooltip;
10835
10791
 
10836
- var messages$j = defineMessages({
10792
+ var messages$n = defineMessages({
10837
10793
  shippingMethodsStatus: {
10838
10794
  id: 'PlatformLimits.Status.shippingMethods',
10839
10795
  description: 'The message for shipping methods platform limit values',
@@ -10844,12 +10800,12 @@ var messages$j = defineMessages({
10844
10800
  const PlatformLimitsShippingMethodsStatus = _ref => {
10845
10801
  let total = _ref.total;
10846
10802
  const intl = useIntl();
10847
- const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher(),
10803
+ const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher$1(),
10848
10804
  platformLimits = _useShippingMethodsPl.platformLimits;
10849
10805
  const current = platformLimits?.shippingMethods?.total?.current;
10850
10806
  const limit = platformLimits?.shippingMethods?.total?.limit;
10851
- return jsx(PlatformLimitsStatusText, {
10852
- intlMessage: messages$j.shippingMethodsStatus,
10807
+ return jsx(StatusText, {
10808
+ intlMessage: messages$n.shippingMethodsStatus,
10853
10809
  children: getPlatformLimitsStatus({
10854
10810
  limit,
10855
10811
  current,
@@ -10859,18 +10815,19 @@ const PlatformLimitsShippingMethodsStatus = _ref => {
10859
10815
  });
10860
10816
  };
10861
10817
  PlatformLimitsShippingMethodsStatus.displayName = 'PlatformLimitsShippingMethodsStatus';
10818
+ var ShippingMethodsStatus = PlatformLimitsShippingMethodsStatus;
10862
10819
 
10863
10820
  const useShippingMethodsLimits = () => {
10864
- const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher(),
10821
+ const _useShippingMethodsPl = useShippingMethodsPlatformLimitsFetcher$1(),
10865
10822
  refetch = _useShippingMethodsPl.refetch;
10866
- const _useShippingMethodsPl2 = useShippingMethodsPlatformLimits(),
10823
+ const _useShippingMethodsPl2 = useShippingMethodsPlatformLimitsStatus(),
10867
10824
  hasReachedShippingMethodsWarningLimit = _useShippingMethodsPl2.hasReachedShippingMethodsWarningLimit,
10868
10825
  hasReachedShippingMethodsErrorLimit = _useShippingMethodsPl2.hasReachedShippingMethodsErrorLimit;
10869
10826
  return {
10870
10827
  ShippingMethodsLimits: {
10871
- Notifications: PlatformLimitsShippingMethodsNotifications,
10872
- Status: PlatformLimitsShippingMethodsStatus,
10873
- Tooltip: PlatformLimitsShippingMethodsTooltip
10828
+ Notifications: ShippingMethodsNotification,
10829
+ Status: ShippingMethodsStatus,
10830
+ Tooltip: ShippingMethodsTooltip
10874
10831
  },
10875
10832
  refetchShippingMethodsPlatformLimits: refetch,
10876
10833
  status: {
@@ -10879,23 +10836,25 @@ const useShippingMethodsLimits = () => {
10879
10836
  }
10880
10837
  };
10881
10838
  };
10839
+ var useShippingMethodsPlatformLimits = useShippingMethodsLimits;
10882
10840
 
10883
10841
  function ownKeys$k(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
10884
10842
  function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$k(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$k(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
10885
10843
  const injectShippingMethodsPlatformLimits = () => WrappedComponent => {
10886
10844
  const WithShippingMethodsPlatformLimits = props => {
10887
- const shippingMethodsPlatformLimits = useShippingMethodsLimits();
10845
+ const shippingMethodsPlatformLimits = useShippingMethodsPlatformLimits();
10888
10846
  const shippingMethodsProps = {
10889
10847
  platformLimits: shippingMethodsPlatformLimits
10890
10848
  };
10891
10849
  return jsx(WrappedComponent, _objectSpread$k(_objectSpread$k({}, props), shippingMethodsProps));
10892
10850
  };
10893
- WithShippingMethodsPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithShippingMethodsPlatformLimits');
10851
+ WithShippingMethodsPlatformLimits.displayName = wrapDisplayName$1(WrappedComponent, 'WithShippingMethodsPlatformLimits');
10894
10852
  return WithShippingMethodsPlatformLimits;
10895
10853
  };
10854
+ var injectShippingMethodsPlatformLimits$1 = injectShippingMethodsPlatformLimits;
10896
10855
 
10897
10856
  const useTaxCategoriesPlatformLimitsFetcher = () => {
10898
- const _usePlatformLimitsFet = usePlatformLimitsFetcher(RESOURCES_WITH_PLATFORM_LIMITS.taxCategories),
10857
+ const _usePlatformLimitsFet = usePlatformLimitsFetcher$1(RESOURCES_WITH_PLATFORM_LIMITS.taxCategories),
10899
10858
  isLoading = _usePlatformLimitsFet.isLoading,
10900
10859
  error = _usePlatformLimitsFet.error,
10901
10860
  platformLimits = _usePlatformLimitsFet.platformLimits,
@@ -10907,9 +10866,10 @@ const useTaxCategoriesPlatformLimitsFetcher = () => {
10907
10866
  refetch
10908
10867
  };
10909
10868
  };
10869
+ var useTaxCategoriesPlatformLimitsFetcher$1 = useTaxCategoriesPlatformLimitsFetcher;
10910
10870
 
10911
- const useTaxCategoriesPlatformLimits = () => {
10912
- const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher(),
10871
+ const useTaxCategoriesPlatformLimits$1 = () => {
10872
+ const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher$1(),
10913
10873
  platformLimits = _useTaxCategoriesPlat.platformLimits;
10914
10874
  if (!platformLimits?.taxCategories?.total) {
10915
10875
  return {
@@ -10933,24 +10893,25 @@ const useTaxCategoriesPlatformLimits = () => {
10933
10893
  hasReachedTaxCategoriesErrorLimit
10934
10894
  };
10935
10895
  };
10896
+ var useTaxCategoriesPlatformLimitsStatus = useTaxCategoriesPlatformLimits$1;
10936
10897
 
10937
10898
  const PlatformLimitsTaxCategoriesNotifications = () => {
10938
- const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher(),
10899
+ const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher$1(),
10939
10900
  platformLimits = _useTaxCategoriesPlat.platformLimits;
10940
- const _useTaxCategoriesPlat2 = useTaxCategoriesPlatformLimits(),
10901
+ const _useTaxCategoriesPlat2 = useTaxCategoriesPlatformLimitsStatus(),
10941
10902
  hasReachedTaxCategoriesWarningLimit = _useTaxCategoriesPlat2.hasReachedTaxCategoriesWarningLimit,
10942
10903
  hasReachedTaxCategoriesErrorLimit = _useTaxCategoriesPlat2.hasReachedTaxCategoriesErrorLimit;
10943
10904
  if (!platformLimits?.taxCategories?.total) {
10944
10905
  return null;
10945
10906
  }
10946
10907
  if (hasReachedTaxCategoriesErrorLimit) {
10947
- return jsx(Notifications.Error, {
10908
+ return jsx(Notifications$1.Error, {
10948
10909
  resource: RESOURCES_WITH_PLATFORM_LIMITS.taxCategories,
10949
10910
  limit: platformLimits.taxCategories.total.limit
10950
10911
  });
10951
10912
  }
10952
10913
  if (hasReachedTaxCategoriesWarningLimit) {
10953
- return jsx(Notifications.Warning, {
10914
+ return jsx(Notifications$1.Warning, {
10954
10915
  resource: RESOURCES_WITH_PLATFORM_LIMITS.taxCategories,
10955
10916
  limit: platformLimits.taxCategories.total.limit
10956
10917
  });
@@ -10958,8 +10919,9 @@ const PlatformLimitsTaxCategoriesNotifications = () => {
10958
10919
  return null;
10959
10920
  };
10960
10921
  PlatformLimitsTaxCategoriesNotifications.displayName = 'PlatformLimitsTaxCategoriesNotifications';
10922
+ var TaxCategoriesNotification = PlatformLimitsTaxCategoriesNotifications;
10961
10923
 
10962
- var messages$i = defineMessages({
10924
+ var messages$m = defineMessages({
10963
10925
  taxCategoriesPlatformLimitReached: {
10964
10926
  id: 'PlatformLimits.Tooltip.taxCategoriesLimitReached',
10965
10927
  description: 'The message for tax categories platform limit being reached',
@@ -10972,12 +10934,13 @@ function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var _
10972
10934
  const PlatformLimitsTaxCategoriesTooltip = props => {
10973
10935
  const intl = useIntl();
10974
10936
  return jsx(Tooltip, _objectSpread$j(_objectSpread$j({}, props), {}, {
10975
- title: intl.formatMessage(messages$i.taxCategoriesPlatformLimitReached)
10937
+ title: intl.formatMessage(messages$m.taxCategoriesPlatformLimitReached)
10976
10938
  }));
10977
10939
  };
10978
10940
  PlatformLimitsTaxCategoriesTooltip.displayName = 'PlatformLimitsTaxCategoriesTooltip';
10941
+ var TaxCategoriesTooltip = PlatformLimitsTaxCategoriesTooltip;
10979
10942
 
10980
- var messages$h = defineMessages({
10943
+ var messages$l = defineMessages({
10981
10944
  taxCategoriesStatus: {
10982
10945
  id: 'PlatformLimits.Status.taxCategories',
10983
10946
  description: 'The message for tax categories platform limit values',
@@ -10988,12 +10951,12 @@ var messages$h = defineMessages({
10988
10951
  const PlatformLimitsTaxCategoriesStatus = _ref => {
10989
10952
  let total = _ref.total;
10990
10953
  const intl = useIntl();
10991
- const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher(),
10954
+ const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher$1(),
10992
10955
  platformLimits = _useTaxCategoriesPlat.platformLimits;
10993
10956
  const current = platformLimits?.taxCategories?.total?.current;
10994
10957
  const limit = platformLimits?.taxCategories?.total?.limit;
10995
- return jsx(PlatformLimitsStatusText, {
10996
- intlMessage: messages$h.taxCategoriesStatus,
10958
+ return jsx(StatusText, {
10959
+ intlMessage: messages$l.taxCategoriesStatus,
10997
10960
  children: getPlatformLimitsStatus({
10998
10961
  limit,
10999
10962
  current,
@@ -11003,18 +10966,19 @@ const PlatformLimitsTaxCategoriesStatus = _ref => {
11003
10966
  });
11004
10967
  };
11005
10968
  PlatformLimitsTaxCategoriesStatus.displayName = 'PlatformLimitsTaxCategoriesStatus';
10969
+ var TaxCategoriesStatus = PlatformLimitsTaxCategoriesStatus;
11006
10970
 
11007
10971
  const useTaxCategoriesLimits = () => {
11008
- const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher(),
10972
+ const _useTaxCategoriesPlat = useTaxCategoriesPlatformLimitsFetcher$1(),
11009
10973
  refetch = _useTaxCategoriesPlat.refetch;
11010
- const _useTaxCategoriesPlat2 = useTaxCategoriesPlatformLimits(),
10974
+ const _useTaxCategoriesPlat2 = useTaxCategoriesPlatformLimitsStatus(),
11011
10975
  hasReachedTaxCategoriesWarningLimit = _useTaxCategoriesPlat2.hasReachedTaxCategoriesWarningLimit,
11012
10976
  hasReachedTaxCategoriesErrorLimit = _useTaxCategoriesPlat2.hasReachedTaxCategoriesErrorLimit;
11013
10977
  return {
11014
10978
  TaxCategoriesLimits: {
11015
- Notifications: PlatformLimitsTaxCategoriesNotifications,
11016
- Status: PlatformLimitsTaxCategoriesStatus,
11017
- Tooltip: PlatformLimitsTaxCategoriesTooltip
10979
+ Notifications: TaxCategoriesNotification,
10980
+ Status: TaxCategoriesStatus,
10981
+ Tooltip: TaxCategoriesTooltip
11018
10982
  },
11019
10983
  refetchTaxCategoriesPlatformLimits: refetch,
11020
10984
  status: {
@@ -11023,23 +10987,25 @@ const useTaxCategoriesLimits = () => {
11023
10987
  }
11024
10988
  };
11025
10989
  };
10990
+ var useTaxCategoriesPlatformLimits = useTaxCategoriesLimits;
11026
10991
 
11027
10992
  function ownKeys$i(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11028
10993
  function _objectSpread$i(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$i(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$i(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
11029
10994
  const injectTaxCategoriesPlatformLimits = WrappedComponent => {
11030
10995
  const WithTaxCategoriesPlatformLimits = props => {
11031
- const taxCategoriesPlatformLimits = useTaxCategoriesLimits();
10996
+ const taxCategoriesPlatformLimits = useTaxCategoriesPlatformLimits();
11032
10997
  const taxCategoriesProps = {
11033
10998
  platformLimits: taxCategoriesPlatformLimits
11034
10999
  };
11035
11000
  return jsx(WrappedComponent, _objectSpread$i(_objectSpread$i({}, props), taxCategoriesProps));
11036
11001
  };
11037
- WithTaxCategoriesPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithTaxCategoriesPlatformLimits');
11002
+ WithTaxCategoriesPlatformLimits.displayName = wrapDisplayName$1(WrappedComponent, 'WithTaxCategoriesPlatformLimits');
11038
11003
  return WithTaxCategoriesPlatformLimits;
11039
11004
  };
11005
+ var injectTaxCategoriesPlatformLimits$1 = injectTaxCategoriesPlatformLimits;
11040
11006
 
11041
11007
  const useZonesPlatformLimitsFetcher = () => {
11042
- const _usePlatformLimitsFet = usePlatformLimitsFetcher(RESOURCES_WITH_PLATFORM_LIMITS.zones),
11008
+ const _usePlatformLimitsFet = usePlatformLimitsFetcher$1(RESOURCES_WITH_PLATFORM_LIMITS.zones),
11043
11009
  isLoading = _usePlatformLimitsFet.isLoading,
11044
11010
  error = _usePlatformLimitsFet.error,
11045
11011
  platformLimits = _usePlatformLimitsFet.platformLimits,
@@ -11051,9 +11017,10 @@ const useZonesPlatformLimitsFetcher = () => {
11051
11017
  refetch
11052
11018
  };
11053
11019
  };
11020
+ var useZonesPlatformLimitsFetcher$1 = useZonesPlatformLimitsFetcher;
11054
11021
 
11055
- const useZonesPlatformLimits = () => {
11056
- const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher(),
11022
+ const useZonesPlatformLimits$1 = () => {
11023
+ const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher$1(),
11057
11024
  platformLimits = _useZonesPlatformLimi.platformLimits;
11058
11025
  if (!platformLimits?.zones?.total) {
11059
11026
  return {
@@ -11077,24 +11044,25 @@ const useZonesPlatformLimits = () => {
11077
11044
  hasReachedZonesErrorLimit
11078
11045
  };
11079
11046
  };
11047
+ var useZonesPlatformLimitsStatus = useZonesPlatformLimits$1;
11080
11048
 
11081
11049
  const PlatformLimitsZonesNotifications = () => {
11082
- const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher(),
11050
+ const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher$1(),
11083
11051
  platformLimits = _useZonesPlatformLimi.platformLimits;
11084
- const _useZonesPlatformLimi2 = useZonesPlatformLimits(),
11052
+ const _useZonesPlatformLimi2 = useZonesPlatformLimitsStatus(),
11085
11053
  hasReachedZonesWarningLimit = _useZonesPlatformLimi2.hasReachedZonesWarningLimit,
11086
11054
  hasReachedZonesErrorLimit = _useZonesPlatformLimi2.hasReachedZonesErrorLimit;
11087
11055
  if (!platformLimits?.zones?.total) {
11088
11056
  return null;
11089
11057
  }
11090
11058
  if (hasReachedZonesErrorLimit) {
11091
- return jsx(Notifications.Error, {
11059
+ return jsx(Notifications$1.Error, {
11092
11060
  resource: RESOURCES_WITH_PLATFORM_LIMITS.zones,
11093
11061
  limit: platformLimits.zones.total.limit
11094
11062
  });
11095
11063
  }
11096
11064
  if (hasReachedZonesWarningLimit) {
11097
- return jsx(Notifications.Warning, {
11065
+ return jsx(Notifications$1.Warning, {
11098
11066
  resource: RESOURCES_WITH_PLATFORM_LIMITS.zones,
11099
11067
  limit: platformLimits.zones.total.limit
11100
11068
  });
@@ -11102,8 +11070,9 @@ const PlatformLimitsZonesNotifications = () => {
11102
11070
  return null;
11103
11071
  };
11104
11072
  PlatformLimitsZonesNotifications.displayName = 'PlatformLimitsZonesNotifications';
11073
+ var ZonesNotification = PlatformLimitsZonesNotifications;
11105
11074
 
11106
- var messages$g = defineMessages({
11075
+ var messages$k = defineMessages({
11107
11076
  zonesPlatformLimitReached: {
11108
11077
  id: 'PlatformLimits.Tooltip.zonesLimitReached',
11109
11078
  description: 'The message for zones platform limit being reached',
@@ -11116,12 +11085,13 @@ function _objectSpread$h(e) { for (var r = 1; r < arguments.length; r++) { var _
11116
11085
  const PlatformLimitsZonesTooltip = props => {
11117
11086
  const intl = useIntl();
11118
11087
  return jsx(Tooltip, _objectSpread$h(_objectSpread$h({}, props), {}, {
11119
- title: intl.formatMessage(messages$g.zonesPlatformLimitReached)
11088
+ title: intl.formatMessage(messages$k.zonesPlatformLimitReached)
11120
11089
  }));
11121
11090
  };
11122
11091
  PlatformLimitsZonesTooltip.displayName = 'PlatformLimitsZonesTooltip';
11092
+ var ZonesTooltip = PlatformLimitsZonesTooltip;
11123
11093
 
11124
- var messages$f = defineMessages({
11094
+ var messages$j = defineMessages({
11125
11095
  zonesStatus: {
11126
11096
  id: 'PlatformLimits.Status.zones',
11127
11097
  description: 'The message for zones platform limit values',
@@ -11132,12 +11102,12 @@ var messages$f = defineMessages({
11132
11102
  const PlatformLimitsZonesStatus = _ref => {
11133
11103
  let total = _ref.total;
11134
11104
  const intl = useIntl();
11135
- const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher(),
11105
+ const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher$1(),
11136
11106
  platformLimits = _useZonesPlatformLimi.platformLimits;
11137
11107
  const current = platformLimits?.zones?.total?.current;
11138
11108
  const limit = platformLimits?.zones?.total?.limit;
11139
- return jsx(PlatformLimitsStatusText, {
11140
- intlMessage: messages$f.zonesStatus,
11109
+ return jsx(StatusText, {
11110
+ intlMessage: messages$j.zonesStatus,
11141
11111
  children: getPlatformLimitsStatus({
11142
11112
  limit,
11143
11113
  current,
@@ -11147,18 +11117,19 @@ const PlatformLimitsZonesStatus = _ref => {
11147
11117
  });
11148
11118
  };
11149
11119
  PlatformLimitsZonesStatus.displayName = 'PlatformLimitsZonesStatus';
11120
+ var ZonesStatus = PlatformLimitsZonesStatus;
11150
11121
 
11151
11122
  const useZonesLimits = () => {
11152
- const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher(),
11123
+ const _useZonesPlatformLimi = useZonesPlatformLimitsFetcher$1(),
11153
11124
  refetch = _useZonesPlatformLimi.refetch;
11154
- const _useZonesPlatformLimi2 = useZonesPlatformLimits(),
11125
+ const _useZonesPlatformLimi2 = useZonesPlatformLimitsStatus(),
11155
11126
  hasReachedZonesWarningLimit = _useZonesPlatformLimi2.hasReachedZonesWarningLimit,
11156
11127
  hasReachedZonesErrorLimit = _useZonesPlatformLimi2.hasReachedZonesErrorLimit;
11157
11128
  return {
11158
11129
  ZonesLimits: {
11159
- Notifications: PlatformLimitsZonesNotifications,
11160
- Status: PlatformLimitsZonesStatus,
11161
- Tooltip: PlatformLimitsZonesTooltip
11130
+ Notifications: ZonesNotification,
11131
+ Status: ZonesStatus,
11132
+ Tooltip: ZonesTooltip
11162
11133
  },
11163
11134
  refetchZonesPlatformLimits: refetch,
11164
11135
  status: {
@@ -11167,23 +11138,25 @@ const useZonesLimits = () => {
11167
11138
  }
11168
11139
  };
11169
11140
  };
11141
+ var useZonesPlatformLimits = useZonesLimits;
11170
11142
 
11171
11143
  function ownKeys$g(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11172
11144
  function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$g(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$g(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
11173
11145
  const injectZonesPlatformLimits = () => WrappedComponent => {
11174
11146
  const WithZonesPlatformLimits = props => {
11175
- const zonesPlatformLimits = useZonesLimits();
11147
+ const zonesPlatformLimits = useZonesPlatformLimits();
11176
11148
  const zonesProps = {
11177
11149
  platformLimits: zonesPlatformLimits
11178
11150
  };
11179
11151
  return jsx(WrappedComponent, _objectSpread$g(_objectSpread$g({}, props), zonesProps));
11180
11152
  };
11181
- WithZonesPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithZonesPlatformLimits');
11153
+ WithZonesPlatformLimits.displayName = wrapDisplayName$1(WrappedComponent, 'WithZonesPlatformLimits');
11182
11154
  return WithZonesPlatformLimits;
11183
11155
  };
11156
+ var injectZonesPlatformLimits$1 = injectZonesPlatformLimits;
11184
11157
 
11185
11158
  const useCustomersPlatformLimitsFetcher = () => {
11186
- const _usePlatformLimitsFet = usePlatformLimitsFetcher(RESOURCES_WITH_PLATFORM_LIMITS.customers),
11159
+ const _usePlatformLimitsFet = usePlatformLimitsFetcher$1(RESOURCES_WITH_PLATFORM_LIMITS.customers),
11187
11160
  isLoading = _usePlatformLimitsFet.isLoading,
11188
11161
  error = _usePlatformLimitsFet.error,
11189
11162
  platformLimits = _usePlatformLimitsFet.platformLimits,
@@ -11195,9 +11168,10 @@ const useCustomersPlatformLimitsFetcher = () => {
11195
11168
  refetch
11196
11169
  };
11197
11170
  };
11171
+ var useCustomersPlatformLimitsFetcher$1 = useCustomersPlatformLimitsFetcher;
11198
11172
 
11199
- const useCustomersPlatformLimits$1 = () => {
11200
- const _useCustomersPlatform = useCustomersPlatformLimitsFetcher(),
11173
+ const useCustomersPlatformLimits$2 = () => {
11174
+ const _useCustomersPlatform = useCustomersPlatformLimitsFetcher$1(),
11201
11175
  platformLimits = _useCustomersPlatform.platformLimits;
11202
11176
  if (!platformLimits?.customers?.total) {
11203
11177
  return {
@@ -11221,10 +11195,11 @@ const useCustomersPlatformLimits$1 = () => {
11221
11195
  hasReachedCustomersErrorLimit
11222
11196
  };
11223
11197
  };
11198
+ var useCustomersPlatformLimitsStatus = useCustomersPlatformLimits$2;
11224
11199
 
11225
11200
  const useCustomersPlatormLimitsModalState = () => {
11226
- const customersPlatformLimitsStatus = useCustomersPlatformLimits$1();
11227
- const limitsModalState = useLimitsModalState(false);
11201
+ const customersPlatformLimitsStatus = useCustomersPlatformLimitsStatus();
11202
+ const limitsModalState = useLimitsModalState$1(false);
11228
11203
  useEffect(() => {
11229
11204
  if (customersPlatformLimitsStatus.hasReachedCustomersErrorLimit) {
11230
11205
  limitsModalState.openModal();
@@ -11234,24 +11209,25 @@ const useCustomersPlatormLimitsModalState = () => {
11234
11209
  isModalOpen: limitsModalState.isModalOpen
11235
11210
  };
11236
11211
  };
11212
+ var useCustomersPlatormLimitsModalState$1 = useCustomersPlatormLimitsModalState;
11237
11213
 
11238
11214
  const PlatformLimitsCustomersNotifications = () => {
11239
- const _useCustomersPlatform = useCustomersPlatformLimitsFetcher(),
11215
+ const _useCustomersPlatform = useCustomersPlatformLimitsFetcher$1(),
11240
11216
  platformLimits = _useCustomersPlatform.platformLimits;
11241
- const _useCustomersPlatform2 = useCustomersPlatformLimits$1(),
11217
+ const _useCustomersPlatform2 = useCustomersPlatformLimitsStatus(),
11242
11218
  hasReachedCustomersWarningLimit = _useCustomersPlatform2.hasReachedCustomersWarningLimit,
11243
11219
  hasReachedCustomersErrorLimit = _useCustomersPlatform2.hasReachedCustomersErrorLimit;
11244
11220
  if (!platformLimits?.customers?.total) {
11245
11221
  return jsx("div", {});
11246
11222
  }
11247
11223
  if (hasReachedCustomersErrorLimit) {
11248
- return jsx(Notifications.Error, {
11224
+ return jsx(Notifications$1.Error, {
11249
11225
  resource: RESOURCES_WITH_PLATFORM_LIMITS.customers,
11250
11226
  limit: platformLimits.customers.total.limit
11251
11227
  });
11252
11228
  }
11253
11229
  if (hasReachedCustomersWarningLimit) {
11254
- return jsx(Notifications.Warning, {
11230
+ return jsx(Notifications$1.Warning, {
11255
11231
  resource: RESOURCES_WITH_PLATFORM_LIMITS.customers,
11256
11232
  limit: platformLimits.customers.total.limit
11257
11233
  });
@@ -11259,8 +11235,9 @@ const PlatformLimitsCustomersNotifications = () => {
11259
11235
  return jsx("div", {});
11260
11236
  };
11261
11237
  PlatformLimitsCustomersNotifications.displayName = 'PlatformLimitsCustomersNotifications';
11238
+ var CustomersNotification = PlatformLimitsCustomersNotifications;
11262
11239
 
11263
- var messages$e = defineMessages({
11240
+ var messages$i = defineMessages({
11264
11241
  customersPlatformLimitReached: {
11265
11242
  id: 'PlatformLimits.Tooltip.customersLimitReached',
11266
11243
  description: 'The message for customers platform limit being reached',
@@ -11273,12 +11250,13 @@ function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var _
11273
11250
  const PlatformLimitsCustomersTooltip = props => {
11274
11251
  const intl = useIntl();
11275
11252
  return jsx(Tooltip, _objectSpread$f(_objectSpread$f({}, props), {}, {
11276
- title: intl.formatMessage(messages$e.customersPlatformLimitReached)
11253
+ title: intl.formatMessage(messages$i.customersPlatformLimitReached)
11277
11254
  }));
11278
11255
  };
11279
11256
  PlatformLimitsCustomersTooltip.displayName = 'PlatformLimitsCustomersTooltip';
11257
+ var CustomersTooltip = PlatformLimitsCustomersTooltip;
11280
11258
 
11281
- var messages$d = defineMessages({
11259
+ var messages$h = defineMessages({
11282
11260
  customersStatus: {
11283
11261
  id: 'PlatformLimits.Status.customers',
11284
11262
  description: 'The message for customers platform limit values',
@@ -11293,7 +11271,7 @@ var styles$6 = {
11293
11271
  };
11294
11272
  const PlatformLimitsCustomersStatus = () => {
11295
11273
  const intl = useIntl();
11296
- const _useCustomersPlatform = useCustomersPlatformLimitsFetcher(),
11274
+ const _useCustomersPlatform = useCustomersPlatformLimitsFetcher$1(),
11297
11275
  platformLimits = _useCustomersPlatform.platformLimits;
11298
11276
  if (!platformLimits?.customers?.total) {
11299
11277
  return null;
@@ -11306,7 +11284,7 @@ const PlatformLimitsCustomersStatus = () => {
11306
11284
  children: jsx(Text.Detail, {
11307
11285
  tone: "secondary",
11308
11286
  isInline: true,
11309
- intlMessage: _objectSpread$e(_objectSpread$e({}, messages$d.customersStatus), {}, {
11287
+ intlMessage: _objectSpread$e(_objectSpread$e({}, messages$h.customersStatus), {}, {
11310
11288
  values: {
11311
11289
  current: intl.formatNumber(current),
11312
11290
  limit: intl.formatNumber(limit)
@@ -11316,8 +11294,9 @@ const PlatformLimitsCustomersStatus = () => {
11316
11294
  });
11317
11295
  };
11318
11296
  PlatformLimitsCustomersStatus.displayName = 'PlatformLimitsCustomersStatus';
11297
+ var CustomersStatus = PlatformLimitsCustomersStatus;
11319
11298
 
11320
- var messages$c = defineMessages({
11299
+ var messages$g = defineMessages({
11321
11300
  title: {
11322
11301
  id: 'PlatformLimits.Customers.modalTitle',
11323
11302
  description: 'The modal title for the customer platform limits error',
@@ -11437,20 +11416,20 @@ LimitsReachedErrorGraphic$1.defaultProps = {
11437
11416
  const PlatformLimitsCustomersErrorModal = _ref => {
11438
11417
  let onClose = _ref.onClose;
11439
11418
  const intl = useIntl();
11440
- const customersPlatformLimitsModalState = useCustomersPlatormLimitsModalState();
11419
+ const customersPlatformLimitsModalState = useCustomersPlatormLimitsModalState$1();
11441
11420
  return jsx(InfoDialog, {
11442
11421
  isOpen: customersPlatformLimitsModalState.isModalOpen,
11443
11422
  onClose: onClose,
11444
- title: intl.formatMessage(messages$c.title),
11423
+ title: intl.formatMessage(messages$g.title),
11445
11424
  children: jsxs(Spacings.Stack, {
11446
11425
  scale: "m",
11447
11426
  alignItems: "center",
11448
11427
  children: [jsx(LimitsReachedErrorGraphic$1, {}), jsxs(Spacings.Stack, {
11449
11428
  scale: "l",
11450
11429
  alignItems: "center",
11451
- children: [jsx(PlatformLimitsCustomersNotifications, {}), jsx(FlatButton, {
11430
+ children: [jsx(CustomersNotification, {}), jsx(FlatButton, {
11452
11431
  onClick: onClose,
11453
- label: intl.formatMessage(messages$c.backToList),
11432
+ label: intl.formatMessage(messages$g.backToList),
11454
11433
  icon: jsx(ListIcon, {
11455
11434
  size: "medium",
11456
11435
  color: "primary"
@@ -11461,13 +11440,14 @@ const PlatformLimitsCustomersErrorModal = _ref => {
11461
11440
  });
11462
11441
  };
11463
11442
  PlatformLimitsCustomersErrorModal.displayName = 'PlatformLimitsCustomersErrorModal';
11443
+ var CustomersErrorModal = PlatformLimitsCustomersErrorModal;
11464
11444
 
11465
11445
  var styles$5 = {
11466
11446
  "combined": "platform-limits-customers-combined-module__combined___OszDd"
11467
11447
  };
11468
11448
  const PlatformLimitsCustomersCombined = () => {
11469
11449
  // on the customer create only show the warning message
11470
- const _useCustomersPlatform = useCustomersPlatformLimits$1(),
11450
+ const _useCustomersPlatform = useCustomersPlatformLimitsStatus(),
11471
11451
  hasReachedCustomersErrorLimit = _useCustomersPlatform.hasReachedCustomersErrorLimit,
11472
11452
  hasReachedCustomersWarningLimit = _useCustomersPlatform.hasReachedCustomersWarningLimit;
11473
11453
  return jsx("div", {
@@ -11475,26 +11455,27 @@ const PlatformLimitsCustomersCombined = () => {
11475
11455
  children: jsxs(Spacings.Inline, {
11476
11456
  scale: "xl",
11477
11457
  justifyContent: "space-between",
11478
- children: [hasReachedCustomersWarningLimit && !hasReachedCustomersErrorLimit ? jsx(PlatformLimitsCustomersNotifications, {}) : null, jsx(PlatformLimitsCustomersStatus, {})]
11458
+ children: [hasReachedCustomersWarningLimit && !hasReachedCustomersErrorLimit ? jsx(CustomersNotification, {}) : null, jsx(CustomersStatus, {})]
11479
11459
  })
11480
11460
  });
11481
11461
  };
11482
11462
  PlatformLimitsCustomersCombined.displayName = 'PlatformLimitsCustomersCombined';
11463
+ var CustomersCombined = PlatformLimitsCustomersCombined;
11483
11464
 
11484
11465
  const useCustomersPlatformLimits = () => {
11485
- const _useCustomersPlatform = useCustomersPlatformLimitsFetcher(),
11466
+ const _useCustomersPlatform = useCustomersPlatformLimitsFetcher$1(),
11486
11467
  refetch = _useCustomersPlatform.refetch;
11487
- const _useCustomersPlatform2 = useCustomersPlatformLimits$1(),
11468
+ const _useCustomersPlatform2 = useCustomersPlatformLimitsStatus(),
11488
11469
  hasReachedCustomersWarningLimit = _useCustomersPlatform2.hasReachedCustomersWarningLimit,
11489
11470
  hasReachedCustomersErrorLimit = _useCustomersPlatform2.hasReachedCustomersErrorLimit;
11490
- const interceptNavigation = useInterceptNavigation(hasReachedCustomersErrorLimit);
11471
+ const interceptNavigation = useInterceptNavigation$1(hasReachedCustomersErrorLimit);
11491
11472
  return {
11492
11473
  CustomersLimits: {
11493
- Notifications: PlatformLimitsCustomersNotifications,
11494
- Status: PlatformLimitsCustomersStatus,
11495
- Combined: PlatformLimitsCustomersCombined,
11496
- Tooltip: PlatformLimitsCustomersTooltip,
11497
- ErrorModal: PlatformLimitsCustomersErrorModal
11474
+ Notifications: CustomersNotification,
11475
+ Status: CustomersStatus,
11476
+ Combined: CustomersCombined,
11477
+ Tooltip: CustomersTooltip,
11478
+ ErrorModal: CustomersErrorModal
11498
11479
  },
11499
11480
  refetchCustomersPlatformLimits: refetch,
11500
11481
  interceptNavigation,
@@ -11504,23 +11485,25 @@ const useCustomersPlatformLimits = () => {
11504
11485
  }
11505
11486
  };
11506
11487
  };
11488
+ var useCustomersPlatformLimits$1 = useCustomersPlatformLimits;
11507
11489
 
11508
11490
  function ownKeys$c(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11509
11491
  function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$c(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$c(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
11510
11492
  const injectCustomersPlatformLimits = () => WrappedComponent => {
11511
11493
  const WithCustomersPlatformLimits = props => {
11512
- const CustomersPlatformLimits = useCustomersPlatformLimits();
11494
+ const CustomersPlatformLimits = useCustomersPlatformLimits$1();
11513
11495
  const customersProps = {
11514
11496
  platformLimits: CustomersPlatformLimits
11515
11497
  };
11516
11498
  return jsx(WrappedComponent, _objectSpread$c(_objectSpread$c({}, props), customersProps));
11517
11499
  };
11518
- WithCustomersPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithCustomersPlatformLimits');
11500
+ WithCustomersPlatformLimits.displayName = wrapDisplayName$1(WrappedComponent, 'WithCustomersPlatformLimits');
11519
11501
  return WithCustomersPlatformLimits;
11520
11502
  };
11503
+ var injectCustomersPlatformLimits$1 = injectCustomersPlatformLimits;
11521
11504
 
11522
11505
  const useCustomerGroupsPlatformLimitsFetcher = () => {
11523
- const _usePlatformLimitsFet = usePlatformLimitsFetcher(RESOURCES_WITH_PLATFORM_LIMITS.customerGroups),
11506
+ const _usePlatformLimitsFet = usePlatformLimitsFetcher$1(RESOURCES_WITH_PLATFORM_LIMITS.customerGroups),
11524
11507
  isLoading = _usePlatformLimitsFet.isLoading,
11525
11508
  error = _usePlatformLimitsFet.error,
11526
11509
  platformLimits = _usePlatformLimitsFet.platformLimits,
@@ -11532,9 +11515,10 @@ const useCustomerGroupsPlatformLimitsFetcher = () => {
11532
11515
  refetch
11533
11516
  };
11534
11517
  };
11518
+ var useCustomerGroupsPlatformLimitsFetcher$1 = useCustomerGroupsPlatformLimitsFetcher;
11535
11519
 
11536
11520
  const useCustomerGroupsPlatformLimitsStatus = () => {
11537
- const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher(),
11521
+ const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher$1(),
11538
11522
  platformLimits = _useCustomerGroupsPla.platformLimits;
11539
11523
  if (!platformLimits?.customerGroups?.total) {
11540
11524
  return {
@@ -11558,10 +11542,11 @@ const useCustomerGroupsPlatformLimitsStatus = () => {
11558
11542
  hasReachedCustomerGroupsErrorLimit
11559
11543
  };
11560
11544
  };
11545
+ var useCustomerGroupsPlatformLimitsStatus$1 = useCustomerGroupsPlatformLimitsStatus;
11561
11546
 
11562
11547
  const useCustomerGroupsPlatormLimitsModalState = () => {
11563
- const customerGroupsPlatformLimitsStatus = useCustomerGroupsPlatformLimitsStatus();
11564
- const limitsModalState = useLimitsModalState(false);
11548
+ const customerGroupsPlatformLimitsStatus = useCustomerGroupsPlatformLimitsStatus$1();
11549
+ const limitsModalState = useLimitsModalState$1(false);
11565
11550
  useEffect(() => {
11566
11551
  if (customerGroupsPlatformLimitsStatus.hasReachedCustomerGroupsErrorLimit) {
11567
11552
  limitsModalState.openModal();
@@ -11571,24 +11556,25 @@ const useCustomerGroupsPlatormLimitsModalState = () => {
11571
11556
  isModalOpen: limitsModalState.isModalOpen
11572
11557
  };
11573
11558
  };
11559
+ var useCustomerGroupsPlatormLimitsModalState$1 = useCustomerGroupsPlatormLimitsModalState;
11574
11560
 
11575
11561
  const PlatformLimitsCustomerGroupsNotifications = () => {
11576
- const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher(),
11562
+ const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher$1(),
11577
11563
  platformLimits = _useCustomerGroupsPla.platformLimits;
11578
- const _useCustomerGroupsPla2 = useCustomerGroupsPlatformLimitsStatus(),
11564
+ const _useCustomerGroupsPla2 = useCustomerGroupsPlatformLimitsStatus$1(),
11579
11565
  hasReachedCustomerGroupsWarningLimit = _useCustomerGroupsPla2.hasReachedCustomerGroupsWarningLimit,
11580
11566
  hasReachedCustomerGroupsErrorLimit = _useCustomerGroupsPla2.hasReachedCustomerGroupsErrorLimit;
11581
11567
  if (!platformLimits?.customerGroups?.total) {
11582
11568
  return jsx("div", {});
11583
11569
  }
11584
11570
  if (hasReachedCustomerGroupsErrorLimit) {
11585
- return jsx(Notifications.Error, {
11571
+ return jsx(Notifications$1.Error, {
11586
11572
  resource: RESOURCES_WITH_PLATFORM_LIMITS.customerGroups,
11587
11573
  limit: platformLimits.customerGroups.total.limit
11588
11574
  });
11589
11575
  }
11590
11576
  if (hasReachedCustomerGroupsWarningLimit) {
11591
- return jsx(Notifications.Warning, {
11577
+ return jsx(Notifications$1.Warning, {
11592
11578
  resource: RESOURCES_WITH_PLATFORM_LIMITS.customerGroups,
11593
11579
  limit: platformLimits.customerGroups.total.limit
11594
11580
  });
@@ -11596,8 +11582,9 @@ const PlatformLimitsCustomerGroupsNotifications = () => {
11596
11582
  return jsx("div", {});
11597
11583
  };
11598
11584
  PlatformLimitsCustomerGroupsNotifications.displayName = 'PlatformLimitsCustomerGroupsNotifications';
11585
+ var CustomerGroupsNotification = PlatformLimitsCustomerGroupsNotifications;
11599
11586
 
11600
- var messages$b = defineMessages({
11587
+ var messages$f = defineMessages({
11601
11588
  customerGroupsPlatformLimitReached: {
11602
11589
  id: 'PlatformLimits.Tooltip.customerGroupsLimitReached',
11603
11590
  description: 'The message for custome groups platform limit being reached',
@@ -11610,12 +11597,13 @@ function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var _
11610
11597
  const PlatformLimitsCustomerGroupsTooltip = props => {
11611
11598
  const intl = useIntl();
11612
11599
  return jsx(Tooltip, _objectSpread$b(_objectSpread$b({}, props), {}, {
11613
- title: intl.formatMessage(messages$b.customerGroupsPlatformLimitReached)
11600
+ title: intl.formatMessage(messages$f.customerGroupsPlatformLimitReached)
11614
11601
  }));
11615
11602
  };
11616
11603
  PlatformLimitsCustomerGroupsTooltip.displayName = 'PlatformLimitsCustomerGroupsTooltip';
11604
+ var CustomerGroupsTooltip = PlatformLimitsCustomerGroupsTooltip;
11617
11605
 
11618
- var messages$a = defineMessages({
11606
+ var messages$e = defineMessages({
11619
11607
  customerGroupsStatus: {
11620
11608
  id: 'PlatformLimits.Status.customerGroups',
11621
11609
  description: 'The message for customer groups platform limit values',
@@ -11630,7 +11618,7 @@ var styles$4 = {
11630
11618
  };
11631
11619
  const PlatformLimitsCustomerGroupsStatus = () => {
11632
11620
  const intl = useIntl();
11633
- const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher(),
11621
+ const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher$1(),
11634
11622
  platformLimits = _useCustomerGroupsPla.platformLimits;
11635
11623
  if (!platformLimits?.customerGroups?.total) {
11636
11624
  return null;
@@ -11643,7 +11631,7 @@ const PlatformLimitsCustomerGroupsStatus = () => {
11643
11631
  children: jsx(Text.Detail, {
11644
11632
  tone: "secondary",
11645
11633
  isInline: true,
11646
- intlMessage: _objectSpread$a(_objectSpread$a({}, messages$a.customerGroupsStatus), {}, {
11634
+ intlMessage: _objectSpread$a(_objectSpread$a({}, messages$e.customerGroupsStatus), {}, {
11647
11635
  values: {
11648
11636
  current: intl.formatNumber(current),
11649
11637
  limit: intl.formatNumber(limit)
@@ -11653,8 +11641,9 @@ const PlatformLimitsCustomerGroupsStatus = () => {
11653
11641
  });
11654
11642
  };
11655
11643
  PlatformLimitsCustomerGroupsStatus.displayName = 'PlatformLimitsCustomerGroupsStatus';
11644
+ var CustomerGroupsStatus = PlatformLimitsCustomerGroupsStatus;
11656
11645
 
11657
- var messages$9 = defineMessages({
11646
+ var messages$d = defineMessages({
11658
11647
  title: {
11659
11648
  id: 'PlatformLimits.CustomerGroups.modalTitle',
11660
11649
  description: 'The modal title for the customer groups platform limits error',
@@ -11774,20 +11763,20 @@ LimitsReachedErrorGraphic.defaultProps = {
11774
11763
  const PlatformLimitsCustomerGroupsErrorModal = _ref => {
11775
11764
  let onClose = _ref.onClose;
11776
11765
  const intl = useIntl();
11777
- const customerGroupsPlatformLimitsModalState = useCustomerGroupsPlatormLimitsModalState();
11766
+ const customerGroupsPlatformLimitsModalState = useCustomerGroupsPlatormLimitsModalState$1();
11778
11767
  return jsx(InfoDialog, {
11779
11768
  isOpen: customerGroupsPlatformLimitsModalState.isModalOpen,
11780
11769
  onClose: onClose,
11781
- title: intl.formatMessage(messages$9.title),
11770
+ title: intl.formatMessage(messages$d.title),
11782
11771
  children: jsxs(Spacings.Stack, {
11783
11772
  scale: "m",
11784
11773
  alignItems: "center",
11785
11774
  children: [jsx(LimitsReachedErrorGraphic, {}), jsxs(Spacings.Stack, {
11786
11775
  scale: "l",
11787
11776
  alignItems: "center",
11788
- children: [jsx(PlatformLimitsCustomerGroupsNotifications, {}), jsx(FlatButton, {
11777
+ children: [jsx(CustomerGroupsNotification, {}), jsx(FlatButton, {
11789
11778
  onClick: onClose,
11790
- label: intl.formatMessage(messages$9.backToList),
11779
+ label: intl.formatMessage(messages$d.backToList),
11791
11780
  icon: jsx(ListIcon, {
11792
11781
  size: "medium",
11793
11782
  color: "primary"
@@ -11798,13 +11787,14 @@ const PlatformLimitsCustomerGroupsErrorModal = _ref => {
11798
11787
  });
11799
11788
  };
11800
11789
  PlatformLimitsCustomerGroupsErrorModal.displayName = 'PlatformLimitsCustomerGroupsErrorModal';
11790
+ var CustomerGroupsErrorModal = PlatformLimitsCustomerGroupsErrorModal;
11801
11791
 
11802
11792
  var styles$3 = {
11803
11793
  "combined": "platform-limits-customer-groups-combined-module__combined___WjRoI"
11804
11794
  };
11805
11795
  const PlatformLimitsCustomerGroupsCombined = () => {
11806
11796
  // on the customer create only show the warning message
11807
- const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsStatus(),
11797
+ const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsStatus$1(),
11808
11798
  hasReachedCustomerGroupsErrorLimit = _useCustomerGroupsPla.hasReachedCustomerGroupsErrorLimit,
11809
11799
  hasReachedCustomerGroupsWarningLimit = _useCustomerGroupsPla.hasReachedCustomerGroupsWarningLimit;
11810
11800
  return jsx("div", {
@@ -11812,26 +11802,27 @@ const PlatformLimitsCustomerGroupsCombined = () => {
11812
11802
  children: jsxs(Spacings.Inline, {
11813
11803
  scale: "xl",
11814
11804
  justifyContent: "space-between",
11815
- children: [hasReachedCustomerGroupsWarningLimit && !hasReachedCustomerGroupsErrorLimit ? jsx(PlatformLimitsCustomerGroupsNotifications, {}) : null, jsx(PlatformLimitsCustomerGroupsStatus, {})]
11805
+ children: [hasReachedCustomerGroupsWarningLimit && !hasReachedCustomerGroupsErrorLimit ? jsx(CustomerGroupsNotification, {}) : null, jsx(CustomerGroupsStatus, {})]
11816
11806
  })
11817
11807
  });
11818
11808
  };
11819
11809
  PlatformLimitsCustomerGroupsCombined.displayName = 'PlatformLimitsCustomerGroupsCombined';
11810
+ var CustomerGroupsCombined = PlatformLimitsCustomerGroupsCombined;
11820
11811
 
11821
11812
  const useCustomerGroupsPlatformLimits = () => {
11822
- const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher(),
11813
+ const _useCustomerGroupsPla = useCustomerGroupsPlatformLimitsFetcher$1(),
11823
11814
  refetch = _useCustomerGroupsPla.refetch;
11824
- const _useCustomerGroupsPla2 = useCustomerGroupsPlatformLimitsStatus(),
11815
+ const _useCustomerGroupsPla2 = useCustomerGroupsPlatformLimitsStatus$1(),
11825
11816
  hasReachedCustomerGroupsWarningLimit = _useCustomerGroupsPla2.hasReachedCustomerGroupsWarningLimit,
11826
11817
  hasReachedCustomerGroupsErrorLimit = _useCustomerGroupsPla2.hasReachedCustomerGroupsErrorLimit;
11827
- const interceptNavigation = useInterceptNavigation(hasReachedCustomerGroupsErrorLimit);
11818
+ const interceptNavigation = useInterceptNavigation$1(hasReachedCustomerGroupsErrorLimit);
11828
11819
  return {
11829
11820
  CustomerGroupsLimits: {
11830
- Notifications: PlatformLimitsCustomerGroupsNotifications,
11831
- Status: PlatformLimitsCustomerGroupsStatus,
11832
- Combined: PlatformLimitsCustomerGroupsCombined,
11833
- Tooltip: PlatformLimitsCustomerGroupsTooltip,
11834
- ErrorModal: PlatformLimitsCustomerGroupsErrorModal
11821
+ Notifications: CustomerGroupsNotification,
11822
+ Status: CustomerGroupsStatus,
11823
+ Combined: CustomerGroupsCombined,
11824
+ Tooltip: CustomerGroupsTooltip,
11825
+ ErrorModal: CustomerGroupsErrorModal
11835
11826
  },
11836
11827
  refetchCustomerGroupsPlatformLimits: refetch,
11837
11828
  interceptNavigation,
@@ -11841,30 +11832,24 @@ const useCustomerGroupsPlatformLimits = () => {
11841
11832
  }
11842
11833
  };
11843
11834
  };
11835
+ var useCustomerGroupsPlatformLimits$1 = useCustomerGroupsPlatformLimits;
11844
11836
 
11845
11837
  function ownKeys$8(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11846
11838
  function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$8(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$8(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
11847
11839
  const injectCustomerGroupsPlatformLimits = () => WrappedComponent => {
11848
11840
  const WithCustomerGroupsPlatformLimits = props => {
11849
- const CustomerGroupsPlatformLimits = useCustomerGroupsPlatformLimits();
11841
+ const CustomerGroupsPlatformLimits = useCustomerGroupsPlatformLimits$1();
11850
11842
  const customersProps = {
11851
11843
  platformLimits: CustomerGroupsPlatformLimits
11852
11844
  };
11853
11845
  return jsx(WrappedComponent, _objectSpread$8(_objectSpread$8({}, props), customersProps));
11854
11846
  };
11855
- WithCustomerGroupsPlatformLimits.displayName = wrapDisplayName(WrappedComponent, 'WithCustomerGroupsPlatformLimits');
11847
+ WithCustomerGroupsPlatformLimits.displayName = wrapDisplayName$1(WrappedComponent, 'WithCustomerGroupsPlatformLimits');
11856
11848
  return WithCustomerGroupsPlatformLimits;
11857
11849
  };
11850
+ var injectCustomerGroupsPlatformLimits$1 = injectCustomerGroupsPlatformLimits;
11858
11851
 
11859
- const handlers = {
11860
- PlatformLimits: {
11861
- all: platformLimiits => graphql.query('PlatformLimitsFetcherQuery', (req, res, ctx) => res(ctx.data({
11862
- limits: platformLimiits
11863
- })))
11864
- }
11865
- };
11866
-
11867
- var messages$8 = defineMessages({
11852
+ var messages$c = defineMessages({
11868
11853
  yes: {
11869
11854
  id: 'BooleanField.yes',
11870
11855
  description: 'The label for boolean attribute `true` value',
@@ -11885,8 +11870,8 @@ const valueMapping = {
11885
11870
  const BooleanField = props => {
11886
11871
  let selectedValue;
11887
11872
  if (typeof props.value === 'boolean') selectedValue = getBooleanValue(props.value);else if (props.isMulti && _Array$isArray(props.value) && props.value.length) selectedValue = props.value.length === 2 ? 'all' : getBooleanValue(props.value[0]);
11888
- const yesLabel = props.intl.formatMessage(messages$8.yes);
11889
- const noLabel = props.intl.formatMessage(messages$8.no);
11873
+ const yesLabel = props.intl.formatMessage(messages$c.yes);
11874
+ const noLabel = props.intl.formatMessage(messages$c.no);
11890
11875
  const options = [{
11891
11876
  value: 'yes',
11892
11877
  label: yesLabel
@@ -11924,7 +11909,7 @@ function getBooleanValue(value) {
11924
11909
  return value === false ? 'no' : 'yes';
11925
11910
  }
11926
11911
 
11927
- const messages$7 = defineMessages({
11912
+ const messages$a = defineMessages({
11928
11913
  from: {
11929
11914
  id: 'LabelRange.from',
11930
11915
  description: 'The label for "from" range',
@@ -11936,6 +11921,7 @@ const messages$7 = defineMessages({
11936
11921
  defaultMessage: 'To'
11937
11922
  }
11938
11923
  });
11924
+ var messages$b = messages$a;
11939
11925
 
11940
11926
  function ownKeys$7(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11941
11927
  function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$7(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$7(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -11946,12 +11932,13 @@ const LabelRange = _ref => {
11946
11932
  let type = _ref.type;
11947
11933
  return jsx("label", {
11948
11934
  className: styles$2.label,
11949
- children: jsx(FormattedMessage, _objectSpread$7({}, messages$7[type]))
11935
+ children: jsx(FormattedMessage, _objectSpread$7({}, messages$b[type]))
11950
11936
  });
11951
11937
  };
11952
11938
  LabelRange.displayName = 'LabelRange';
11939
+ var LabelRange$1 = LabelRange;
11953
11940
 
11954
- var messages$6 = defineMessages({
11941
+ var messages$9 = defineMessages({
11955
11942
  label: {
11956
11943
  id: 'MissingValueField.label',
11957
11944
  description: 'The label text for the missing values option',
@@ -11965,13 +11952,14 @@ const MissingValueField = props => jsx(CheckboxInput, {
11965
11952
  name: "missing-value",
11966
11953
  isChecked: props.isChecked,
11967
11954
  onChange: props.onChange,
11968
- children: jsx(FormattedMessage, _objectSpread$6({}, messages$6.label))
11955
+ children: jsx(FormattedMessage, _objectSpread$6({}, messages$9.label))
11969
11956
  });
11970
11957
  MissingValueField.defaultProps = {
11971
11958
  isChecked: false
11972
11959
  };
11960
+ var MissingValueField$1 = MissingValueField;
11973
11961
 
11974
- var messages$5 = defineMessages({
11962
+ var messages$8 = defineMessages({
11975
11963
  filterWholeInput: {
11976
11964
  id: 'MultiValueSearchInput.buttonLabel',
11977
11965
  description: 'Label for "MultiValueSearchInput" filter whole input.',
@@ -12009,7 +11997,7 @@ const MultiValueSelectorDropdown = props => {
12009
11997
  }),
12010
11998
  children: jsx(Text.Body, {
12011
11999
  truncate: true,
12012
- intlMessage: _objectSpread$5(_objectSpread$5({}, messages$5.filterWholeInput), {}, {
12000
+ intlMessage: _objectSpread$5(_objectSpread$5({}, messages$8.filterWholeInput), {}, {
12013
12001
  values: {
12014
12002
  values: `"${props.value}"`
12015
12003
  }
@@ -12022,7 +12010,7 @@ const MultiValueSelectorDropdown = props => {
12022
12010
  }),
12023
12011
  children: jsx(Text.Body, {
12024
12012
  truncate: true,
12025
- intlMessage: _objectSpread$5(_objectSpread$5({}, messages$5.filterSeparateValues), {}, {
12013
+ intlMessage: _objectSpread$5(_objectSpread$5({}, messages$8.filterSeparateValues), {}, {
12026
12014
  values: {
12027
12015
  values: `"${props.multiValue.join('", "')}"` || props.value
12028
12016
  }
@@ -12132,6 +12120,7 @@ const MultiValueSearchInput = props => {
12132
12120
  });
12133
12121
  };
12134
12122
  MultiValueSearchInput.displayName = 'MultiValueSearchInput';
12123
+ var MultiValueSearchInput$1 = MultiValueSearchInput;
12135
12124
 
12136
12125
  function ownKeys$4(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12137
12126
  function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$4(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$4(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -12271,7 +12260,7 @@ const withPropsForMoney = ownProps => ownProps.numberFormatType === 'money' ? {
12271
12260
  },
12272
12261
  numeralDecimalScale: 2
12273
12262
  } : {};
12274
- var numericFormatInput = withProps(withPropsForMoney)(NumericFormatInput);
12263
+ var numericFormatInput = withProps$1(withPropsForMoney)(NumericFormatInput);
12275
12264
 
12276
12265
  /**
12277
12266
  * @param mixed value
@@ -12328,6 +12317,7 @@ const buildSearchQuery = (searchQuery, searchMode, fragments) => {
12328
12317
  }
12329
12318
  return fragments[searchMode].getQuery(trimmedSearchQuery);
12330
12319
  };
12320
+ var buildSearchQuery$1 = buildSearchQuery;
12331
12321
 
12332
12322
  const getBulkNotification = _ref => {
12333
12323
  let counts = _ref.counts,
@@ -12371,10 +12361,12 @@ const businessRoleConstants = {
12371
12361
  SalesAndECommerceManager: 'SalesAndECommerceManager',
12372
12362
  Other: 'Other'
12373
12363
  };
12364
+ var businessRoleConstants$1 = businessRoleConstants;
12374
12365
 
12375
- const businessRoleKeys = _Object$values(businessRoleConstants);
12366
+ const businessRoleKeys = _Object$values(businessRoleConstants$1);
12367
+ var businessRoleKeys$1 = businessRoleKeys;
12376
12368
 
12377
- var messages$4 = defineMessages({
12369
+ var messages$7 = defineMessages({
12378
12370
  ExecutiveManagement: {
12379
12371
  id: 'Shared.businessRoles.executiveManagement',
12380
12372
  description: 'The label for one of the selectable business roles',
@@ -12549,6 +12541,7 @@ const createNextSortDefinition = _ref => {
12549
12541
  };
12550
12542
  }
12551
12543
  };
12544
+ var createNextSortDefinition$1 = createNextSortDefinition;
12552
12545
 
12553
12546
  function ownKeys$3(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12554
12547
  function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys$3(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys$3(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -12968,7 +12961,7 @@ function isEmptyFilter(_ref) {
12968
12961
  });
12969
12962
  }
12970
12963
 
12971
- const messages$3 = defineMessages({
12964
+ const messages$5 = defineMessages({
12972
12965
  inputFieldError: {
12973
12966
  id: 'Search.Filters.validation.customField.inputFieldError',
12974
12967
  description: 'Error message for empty input field ',
@@ -12980,6 +12973,7 @@ const messages$3 = defineMessages({
12980
12973
  defaultMessage: 'Please select an option.'
12981
12974
  }
12982
12975
  });
12976
+ var messages$6 = messages$5;
12983
12977
 
12984
12978
  const hasOptionDropdown = type => {
12985
12979
  var _context;
@@ -12989,14 +12983,14 @@ const validateValue = (value, type, intl) => {
12989
12983
  if (validateSingleFilter({
12990
12984
  value
12991
12985
  })) {
12992
- return intl.formatMessage(messages$3.inputFieldError);
12986
+ return intl.formatMessage(messages$6.inputFieldError);
12993
12987
  }
12994
12988
  if (type === FIELD_TYPES.Money && (validateSingleFilter({
12995
12989
  value: value.currencyCode
12996
12990
  }) || validateSingleFilter({
12997
12991
  value: value.amount
12998
12992
  }))) {
12999
- return intl.formatMessage(messages$3.inputFieldError);
12993
+ return intl.formatMessage(messages$6.inputFieldError);
13000
12994
  }
13001
12995
  return null;
13002
12996
  };
@@ -13004,7 +12998,7 @@ function validateFilter$2(_ref, intl) {
13004
12998
  let value = _ref.value;
13005
12999
  if (!value || !value.type) {
13006
13000
  return {
13007
- type: intl.formatMessage(messages$3.optionFieldError)
13001
+ type: intl.formatMessage(messages$6.optionFieldError)
13008
13002
  };
13009
13003
  }
13010
13004
  const typeName = value.type.name;
@@ -13012,7 +13006,7 @@ function validateFilter$2(_ref, intl) {
13012
13006
  const filterValue = value.value;
13013
13007
  if (hasOption && !value.option) {
13014
13008
  return {
13015
- option: intl.formatMessage(messages$3.optionFieldError)
13009
+ option: intl.formatMessage(messages$6.optionFieldError)
13016
13010
  };
13017
13011
  }
13018
13012
  if (value.option === FILTER_TYPES.range) {
@@ -13031,7 +13025,7 @@ function validateFilter$2(_ref, intl) {
13031
13025
  } : null;
13032
13026
  }
13033
13027
 
13034
- const messages$2 = defineMessages({
13028
+ const messages$3 = defineMessages({
13035
13029
  rangeMissingValue: {
13036
13030
  id: 'Search.Filters.validation.date.rangeMissingValue',
13037
13031
  description: 'error message if missing a value in a range',
@@ -13048,6 +13042,7 @@ const messages$2 = defineMessages({
13048
13042
  defaultMessage: 'Please enter a value for this field.'
13049
13043
  }
13050
13044
  });
13045
+ var messages$4 = messages$3;
13051
13046
 
13052
13047
  function validateFilter$1(_ref, intl) {
13053
13048
  let value = _ref.value,
@@ -13056,30 +13051,30 @@ function validateFilter$1(_ref, intl) {
13056
13051
  if (validateSingleFilter({
13057
13052
  value: value?.from
13058
13053
  })) return {
13059
- from: intl.formatMessage(messages$2.rangeMissingValue)
13054
+ from: intl.formatMessage(messages$4.rangeMissingValue)
13060
13055
  };
13061
13056
  if (validateSingleFilter({
13062
13057
  value: value?.to
13063
13058
  })) return {
13064
- to: intl.formatMessage(messages$2.rangeMissingValue)
13059
+ to: intl.formatMessage(messages$4.rangeMissingValue)
13065
13060
  };
13066
13061
  if (moment(value?.to).isBefore(value?.from)) return {
13067
- from: intl.formatMessage(messages$2.rangeToSmallerThanFrom)
13062
+ from: intl.formatMessage(messages$4.rangeToSmallerThanFrom)
13068
13063
  };
13069
13064
  } else if (type === 'equalTo' || type === 'lessThan' || type === 'moreThan') {
13070
13065
  if (validateSingleFilter({
13071
13066
  value
13072
- })) return intl.formatMessage(messages$2.missingValue);
13067
+ })) return intl.formatMessage(messages$4.missingValue);
13073
13068
  }
13074
13069
  return null;
13075
13070
  }
13076
13071
 
13077
13072
  const validateSingleOptionEnum = (selectedOption, intl) => {
13078
- if (validateSingleFilter(selectedOption)) return intl.formatMessage(messages$C.required);
13073
+ if (validateSingleFilter(selectedOption)) return intl.formatMessage(validationMessages.required);
13079
13074
  return null;
13080
13075
  };
13081
13076
  const validateMultiOptionEnum = (selectedOption, intl) => {
13082
- if (validateSingleFilter(selectedOption) || selectedOption.value.length === 0) return intl.formatMessage(messages$C.required);
13077
+ if (validateSingleFilter(selectedOption) || selectedOption.value.length === 0) return intl.formatMessage(validationMessages.required);
13083
13078
  return null;
13084
13079
  };
13085
13080
 
@@ -13095,6 +13090,7 @@ const messages$1 = defineMessages({
13095
13090
  defaultMessage: 'Please enter the smaller number first.'
13096
13091
  }
13097
13092
  });
13093
+ var messages$2 = messages$1;
13098
13094
 
13099
13095
  function validateFilter(_ref, intl) {
13100
13096
  let value = _ref.value,
@@ -13102,30 +13098,30 @@ function validateFilter(_ref, intl) {
13102
13098
  _ref$allowFloat = _ref.allowFloat,
13103
13099
  allowFloat = _ref$allowFloat === void 0 ? true : _ref$allowFloat;
13104
13100
  if (type !== 'range') {
13105
- if (!allowFloat && !isInteger(value)) return intl.formatMessage(messages$C.integer);
13101
+ if (!allowFloat && !isInteger(value)) return intl.formatMessage(validationMessages.integer);
13106
13102
  return null;
13107
13103
  }
13108
13104
 
13109
13105
  // only range types from here
13110
13106
 
13111
13107
  if (!allowFloat && !isInteger(value.from)) return {
13112
- from: intl.formatMessage(messages$C.integer)
13108
+ from: intl.formatMessage(validationMessages.integer)
13113
13109
  };
13114
13110
  if (!allowFloat && !isInteger(value.to)) return {
13115
- to: intl.formatMessage(messages$C.integer)
13111
+ to: intl.formatMessage(validationMessages.integer)
13116
13112
  };
13117
13113
  if (validateSingleFilter({
13118
13114
  value: value.from
13119
13115
  })) return {
13120
- from: intl.formatMessage(messages$1.rangeMissingValue)
13116
+ from: intl.formatMessage(messages$2.rangeMissingValue)
13121
13117
  };
13122
13118
  if (validateSingleFilter({
13123
13119
  value: value.to
13124
13120
  })) return {
13125
- to: intl.formatMessage(messages$1.rangeMissingValue)
13121
+ to: intl.formatMessage(messages$2.rangeMissingValue)
13126
13122
  };
13127
13123
  if (_parseFloat(value.to) < _parseFloat(value.from)) return {
13128
- from: intl.formatMessage(messages$1.rangeToSmallerThanFrom)
13124
+ from: intl.formatMessage(messages$2.rangeToSmallerThanFrom)
13129
13125
  };
13130
13126
  return null;
13131
13127
  }
@@ -13133,8 +13129,8 @@ function validateFilter(_ref, intl) {
13133
13129
  // eslint-disable-next-line import/prefer-default-export
13134
13130
  const validateText = function (text, intl) {
13135
13131
  let type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
13136
- if (validateSingleFilter(text)) return intl.formatMessage(messages$C.required);
13137
- if (type === 'id' && !isUUID(text.value)) return intl.formatMessage(messages$C.uuid);
13132
+ if (validateSingleFilter(text)) return intl.formatMessage(validationMessages.required);
13133
+ if (type === 'id' && !isUUID$1(text.value)) return intl.formatMessage(validationMessages.uuid);
13138
13134
  return null;
13139
13135
  };
13140
13136
 
@@ -13163,10 +13159,13 @@ function convertRatioToPercentage(ratio) {
13163
13159
  const hasErrorCode = (unmappedApiErrors, errorCode) => {
13164
13160
  return _Array$isArray(unmappedApiErrors) && _someInstanceProperty(unmappedApiErrors).call(unmappedApiErrors, error => error.extensions?.code === errorCode);
13165
13161
  };
13162
+ var hasErrorCode$1 = hasErrorCode;
13166
13163
 
13167
- const hasInvalidInputError = errors => hasErrorCode(errors, ERROR_CODES.invalidInput);
13164
+ const hasInvalidInputError = errors => hasErrorCode$1(errors, ERROR_CODES.invalidInput);
13165
+ var hasInvalidInputError$1 = hasInvalidInputError;
13168
13166
 
13169
- const hasSemanticError = errors => hasErrorCode(errors, ERROR_CODES.semanticError);
13167
+ const hasSemanticError = errors => hasErrorCode$1(errors, ERROR_CODES.semanticError);
13168
+ var hasSemanticError$1 = hasSemanticError;
13170
13169
 
13171
13170
  function minusify(value) {
13172
13171
  const minus = '-';
@@ -13483,6 +13482,7 @@ let RequestCache = /*#__PURE__*/function () {
13483
13482
  }
13484
13483
  }]);
13485
13484
  }();
13485
+ var RequestCache$1 = RequestCache;
13486
13486
 
13487
13487
  // copied from
13488
13488
  // https://github.com/reactjs/react-redux/blob/master/src/utils/shallowEqual.js
@@ -13595,11 +13595,11 @@ function withPendingRequests() {
13595
13595
  };
13596
13596
  return jsx(Component, _objectSpread(_objectSpread({}, props), pendingProp));
13597
13597
  };
13598
- WrappedComponent.displayName = wrapDisplayName(Component, 'withPendingRequests');
13598
+ WrappedComponent.displayName = wrapDisplayName$1(Component, 'withPendingRequests');
13599
13599
  return WrappedComponent;
13600
13600
  };
13601
13601
  }
13602
13602
 
13603
13603
  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 } } } };
13604
13604
 
13605
- export { booleanField as BooleanField, Button, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, CenteredLoadingSpinner, ChannelPickerInput, CountriesPicker, customFieldDefinitionsConnector as CustomFieldDefinitionsConnector, CustomFieldTooltip, CustomFieldTypeDefinitionsConnector$1 as CustomFieldTypeDefinitionsConnector, CustomFields, CustomFieldsErrorTextNotification, CustomFieldsFormField, CustomerGroupPickerInput, DefaultPageSizes, Divider, EMAIL_REGEX, FileInput, FormattedDateTime$1 as FormattedDateTime, LabelRange, MC_RESOURCES_WITH_KEYS, MissingValueField, MultiValueSearchInput, numericFormatInput as NumericFormatInput, Option$2 as Option, PRECISION_TYPES, pimIndexerProvider as PimIndexerProvider, ProductAttributeInput, ProductAttributes, ProductPickerInput, ProductSelectionsPicker as ProductSelectionPicker, RequestCache, RequiredIndicator, ScrollToFieldError, searchInput as SearchInput, SelectableFieldSearchInput, StoreSelectField, StoreSelectInput, ThrottledField, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, WithPimIndexer, allowedProperties, and, attributesMapToNameValuePairs, base64ToString, messages$8 as booleanMessages, buildSearchQuery, businessRoleConstants, messages$4 as businessRoleMessages, businessRoleKeys as businessRoles, capitalizeFirst, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, createGraphQlUpdateActions, createNextSortDefinition, createReducer, createResourceReducer, handlers$1 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$2 as formatMoney, formatMoneyRangeValue, formatMoneyValue, formatPercentage, formatAttribute as formatProductAttribute, getAncestors, getAttributeValueByType, getAttributeValueType, getBottomOption, 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, handlers$6 as isFieldDuplicatedMockHandlers, isUUID, isValidISODate, isValidISODateTime, isValidISOTime, keepDisplayName, mapStoresToOptions, mapTimeZonesToOptions, minusify, messages$6 as missingValueMessages, nameValuePairsToMap, normalizeProductSettings, not, omitDeep, omitSetsOfSets, or, pickerMessages$1 as pickerMessages, handlers as platformLimitsMockHandlers, handlers$3 as productSelectionsFetcherMockHandler, handlers$4 as productSelectionsTotalFetcherMockHandler, range, reorderArrayItems, resolveStatusType, safelyAddFallback, sanitize, searchCategories, messages$G as searchInputMessages, setDisplayName, setToArray, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitVariantAttributesByConstraint, handlers$5 as storesListConnectorMockHandlers, stringToBase64, swapArrayItems, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useCachedCategoryOptions, useCurrentOption, useDnDContext as useCustomFieldsDnDContext, useCustomerGroupsPlatformLimits, useCustomersPlatformLimits, useDebouncedPromiseCallback, useFormatLocalizedFieldToString, useIsFieldDuplicated, useLoadOptions, useLocalizedKeyFallback, usePendingRequests, usePersistedTableConfiguration, usePimIndexer, usePrevious, useProductSelectionsFetcher, useProductSelectionsTotalFetcher, useRoleNotificationEffect, useShippingMethodsLimits as useShippingMethodsPlatformLimits, useStorage, useStoreKeysInDataFences, useStoresListFetcher, useTaxCategoriesLimits as useTaxCategoriesPlatformLimits, useTotalNumberOfStoresFetcher, handlers$2 as useTotalNumberOfStoresFetcherHandlers, validateFilter$2 as validateCustomField, validations as validateCustomFields, validateFilter$1 as validateDate, validateMultiOptionEnum, validateFilter as validateNumber, validateSingleOptionEnum, validateText, validatedInput, messages$C as validationMessages, withPendingRequests, withProps, withRedirectTo, withoutEmptyErrorsByField, wrapDisplayName };
13605
+ export { booleanField as BooleanField, Button$1 as Button, CartDiscountReferenceSearch, CategoryReferenceSearch, CategorySearchPickerOptionFragment, CenteredLoadingSpinner$1 as CenteredLoadingSpinner, ChannelPickerInput$1 as ChannelPickerInput, CountriesPicker, customFieldDefinitionsConnector as CustomFieldDefinitionsConnector, CustomFieldTooltip$1 as CustomFieldTooltip, CustomFieldTypeDefinitionsConnector$1 as CustomFieldTypeDefinitionsConnector, CustomFields$1 as CustomFields, CustomFieldsErrorTextNotification$1 as CustomFieldsErrorTextNotification, CustomFieldsFormField$1 as CustomFieldsFormField, CustomerGroupPickerInput$1 as CustomerGroupPickerInput, DefaultPageSizes, Divider, EMAIL_REGEX, FileInput$1 as FileInput, FormattedDateTime$1 as FormattedDateTime, LabelRange$1 as LabelRange, MC_RESOURCES_WITH_KEYS, MissingValueField$1 as MissingValueField, MultiValueSearchInput$1 as MultiValueSearchInput, numericFormatInput as NumericFormatInput, Option$2 as Option, PRECISION_TYPES, pimIndexerProvider as PimIndexerProvider, ProductAttributeInput, ProductAttributes, ProductPickerInput$1 as ProductPickerInput, ProductSelectionsPicker as ProductSelectionPicker, RequestCache$1 as RequestCache, RequiredIndicator$1 as RequiredIndicator, ScrollToFieldError$1 as ScrollToFieldError, searchInput as SearchInput, SelectableFieldSearchInput$1 as SelectableFieldSearchInput, StoreSelectField$1 as StoreSelectField, StoreSelectInput$1 as StoreSelectInput, ThrottledField$1 as ThrottledField, VALIDATOR_INTEGER, VALIDATOR_NUMERIC, VALIDATOR_REQUIRED, WithPimIndexer$1 as WithPimIndexer, allowedProperties, and, attributesMapToNameValuePairs, base64ToString, messages$c as booleanMessages, buildSearchQuery$1 as buildSearchQuery, businessRoleConstants$1 as businessRoleConstants, messages$7 as businessRoleMessages, businessRoleKeys$1 as businessRoles, capitalizeFirst, clone, coerceToInteger, computedProperties, convertApolloNetworkStatusToLoadingState, convertApolloQueryDataToConnectorData, convertProductSelectionFromGraphQl, convertRatioToPercentage, createGraphQlUpdateActions, createNextSortDefinition$1 as createNextSortDefinition, createReducer, createResourceReducer, customFields as customFieldsTransformer, dateTransformer$1 as dateTransformer, exact, exists, extractErrorFromGraphQlResponse, filterCustomTypeUpdateActionValues, filterDataAttributes, filterEmptyValues, formatCustomField, formatCustomerAddress, formatCustomerName, formatDateRangeValue, formatDateTime$1 as formatDateTime, formatDiscount, formatMoney$2 as formatMoney, formatMoneyRangeValue, formatMoneyValue, formatPercentage, formatAttribute as formatProductAttribute, getAncestors, getAttributeValueByType, getAttributeValueType, getBottomOption, getBulkNotification, getCategoryLevel, getCountsFromBulkSummary, getDiscountValue, getDisplayName$1 as getDisplayName, getFractionedAmount, getIndexesOfInvalidValues, getMinimumPricesByCurrencyCode, getNetUnitPrice, getPathName, getPrefixSearchBounds$1 as 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$1 as hasInvalidInputError, hasSemanticError$1 as hasSemanticError, injectCustomerGroupsPlatformLimits$1 as injectCustomerGroupsPlatformLimits, injectCustomersPlatformLimits$1 as injectCustomersPlatformLimits, injectDataTablePaginationState$1 as injectDataTablePaginationState, injectModalState$3 as injectModalState, injectNotifications$1 as injectNotifications, injectPimIndexer, injectShippingMethodsPlatformLimits$1 as injectShippingMethodsPlatformLimits, injectStorage$1 as injectStorage, injectTaxCategoriesPlatformLimits$1 as injectTaxCategoriesPlatformLimits, injectModalState$1 as injectToggleState, injectZonesPlatformLimits$1 as injectZonesPlatformLimits, isEmptyFilter as isEmpty, isEmptyValue, isUUID$1 as isUUID, isValidISODate, isValidISODateTime, isValidISOTime, keepDisplayName$1 as keepDisplayName, mapStoresToOptions, mapTimeZonesToOptions, minusify, messages$9 as missingValueMessages, nameValuePairsToMap, normalizeProductSettings, not, omitDeep, omitSetsOfSets, or, pickerMessages$1 as pickerMessages, range, reorderArrayItems, resolveStatusType, safelyAddFallback, sanitize, searchCategories, messages$M as searchInputMessages, setDisplayName$1 as setDisplayName, setToArray, shallowEqual, shouldUpdateAttributeInput, slugify, sortDataByIdsArray, sortRequiresLanguage, splitVariantAttributesByConstraint, stringToBase64, swapArrayItems, transformAllToProperNounCase, transformCustomFieldsRawToCustomFields, transformLocalizedFieldsForCategory, truncate, unique, uniqueObjects, useCachedCategoryOptions, useCurrentOption, useDnDContext as useCustomFieldsDnDContext, useCustomerGroupsPlatformLimits$1 as useCustomerGroupsPlatformLimits, useCustomersPlatformLimits$1 as useCustomersPlatformLimits, useDebouncedPromiseCallback$1 as useDebouncedPromiseCallback, useFormatLocalizedFieldToString, useIsFieldDuplicated$1 as useIsFieldDuplicated, useLoadOptions$1 as useLoadOptions, useLocalizedKeyFallback$1 as useLocalizedKeyFallback, usePendingRequests, usePersistedTableConfiguration$1 as usePersistedTableConfiguration, usePimIndexer, usePrevious$1 as usePrevious, useProductSelectionsFetcher$1 as useProductSelectionsFetcher, useProductSelectionsTotalFetcher$1 as useProductSelectionsTotalFetcher, useRoleNotificationEffect$1 as useRoleNotificationEffect, useShippingMethodsPlatformLimits, useStorage$1 as useStorage, useStoreKeysInDataFences$1 as useStoreKeysInDataFences, useStoresListFetcher$1 as useStoresListFetcher, useTaxCategoriesPlatformLimits, useTotalNumberOfStoresFetcher$1 as useTotalNumberOfStoresFetcher, validateFilter$2 as validateCustomField, validations as validateCustomFields, validateFilter$1 as validateDate, validateMultiOptionEnum, validateFilter as validateNumber, validateSingleOptionEnum, validateText, validatedInput, validationMessages, withPendingRequests, withProps$1 as withProps, withRedirectTo$1 as withRedirectTo, withoutEmptyErrorsByField$1 as withoutEmptyErrorsByField, wrapDisplayName$1 as wrapDisplayName };